@shiyuphan/follow-me 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/README.md +8 -3
  2. package/dist/src/cli.js +54 -19
  3. package/dist/src/comments.js +70 -3
  4. package/dist/src/coverage.js +147 -23
  5. package/dist/src/refs.js +239 -0
  6. package/dist/ui/dist/assets/{abnfDiagram-WEYOIA3C-Bp14ygmz.js → abnfDiagram-WEYOIA3C-DztIEwNE.js} +1 -1
  7. package/dist/ui/dist/assets/{arc-DUR6uzhI.js → arc-DUYh-EqZ.js} +1 -1
  8. package/dist/ui/dist/assets/{architecture-WOLXFQ4H-CyfnP65O.js → architecture-WOLXFQ4H-BQYTB92_.js} +1 -1
  9. package/dist/ui/dist/assets/{architectureDiagram-ZHVYKT53-dJTicIk2.js → architectureDiagram-ZHVYKT53-Dl7095A5.js} +1 -1
  10. package/dist/ui/dist/assets/{blockDiagram-RJAE7QA3-BYiqh5Ib.js → blockDiagram-RJAE7QA3-QDZ5kE1J.js} +1 -1
  11. package/dist/ui/dist/assets/{c4Diagram-XDPPPE54-DHHPQ7xE.js → c4Diagram-XDPPPE54-CKJZ1xOw.js} +1 -1
  12. package/dist/ui/dist/assets/channel-DF08Hd8f.js +1 -0
  13. package/dist/ui/dist/assets/{chunk-2E7WHVMD-BODm_awL.js → chunk-2E7WHVMD-BXBjaqd1.js} +1 -1
  14. package/dist/ui/dist/assets/{chunk-4EMNKR2T-CpZfjf2T.js → chunk-4EMNKR2T-DPzfVuke.js} +1 -1
  15. package/dist/ui/dist/assets/{chunk-55XCU76K-CoP2pJTQ.js → chunk-55XCU76K-B33Sj3w8.js} +1 -1
  16. package/dist/ui/dist/assets/{chunk-7S6XSTFO-CaQcUvXY.js → chunk-7S6XSTFO-B_u7dS03.js} +1 -1
  17. package/dist/ui/dist/assets/{chunk-AQDTSKZB-BZ9Czvbu.js → chunk-AQDTSKZB-B4EzH5gx.js} +1 -1
  18. package/dist/ui/dist/assets/{chunk-DSNLSHJZ-CNjUo110.js → chunk-DSNLSHJZ-CfWeHABr.js} +1 -1
  19. package/dist/ui/dist/assets/{chunk-HAGFOTED-BTmBE_D3.js → chunk-HAGFOTED-B8G8PjLZ.js} +1 -1
  20. package/dist/ui/dist/assets/{chunk-HNE4Q36P-D2cDuT0C.js → chunk-HNE4Q36P-BA-PqoTF.js} +1 -1
  21. package/dist/ui/dist/assets/{chunk-NQOKRVIF-AZcemFgG.js → chunk-NQOKRVIF-JvhuFcnR.js} +1 -1
  22. package/dist/ui/dist/assets/{chunk-UHW7PFBP-BszwjUqG.js → chunk-UHW7PFBP-BrfL5CGY.js} +1 -1
  23. package/dist/ui/dist/assets/{chunk-VQ5W62QI-vFSenYSe.js → chunk-VQ5W62QI-dBJqgdDy.js} +1 -1
  24. package/dist/ui/dist/assets/{chunk-WQQL4CDK-DZR6is1Q.js → chunk-WQQL4CDK-dfqd3k_P.js} +1 -1
  25. package/dist/ui/dist/assets/{chunk-XXDRQBXY-CACFh-si.js → chunk-XXDRQBXY-kViWdB9M.js} +1 -1
  26. package/dist/ui/dist/assets/{chunk-YZO67HFG-DRRTjGuW.js → chunk-YZO67HFG-ukfs4wT3.js} +1 -1
  27. package/dist/ui/dist/assets/{chunk-ZAUX2LTX-Bxuy-Roa.js → chunk-ZAUX2LTX-BxZHki81.js} +1 -1
  28. package/dist/ui/dist/assets/{chunk-ZCHMQSOR-rYXk__1o.js → chunk-ZCHMQSOR-PjluhR_E.js} +1 -1
  29. package/dist/ui/dist/assets/{classDiagram-v2-4MYWR3UA-RiF44tTz.js → classDiagram-v2-4MYWR3UA-Ct89LJec.js} +1 -1
  30. package/dist/ui/dist/assets/{cose-bilkent-JH36ORCC-0oiQoThS.js → cose-bilkent-JH36ORCC-BnQceGmB.js} +1 -1
  31. package/dist/ui/dist/assets/{cynefin-EF2NZ3EQ-BAssFK5K.js → cynefin-EF2NZ3EQ-D6WkCVE8.js} +1 -1
  32. package/dist/ui/dist/assets/{cynefinDiagram-WF24UDRP-Bmd05bak.js → cynefinDiagram-WF24UDRP-dn6DUPAb.js} +1 -1
  33. package/dist/ui/dist/assets/{dagre-NK4GIZVX-QJkLjPxj.js → dagre-NK4GIZVX-BtZSlLk7.js} +1 -1
  34. package/dist/ui/dist/assets/{diagram-CBK3MWTC-PSaSiYXz.js → diagram-CBK3MWTC-Ds4_tv6X.js} +1 -1
  35. package/dist/ui/dist/assets/{diagram-I5XIIV2D-BmU5X_hr.js → diagram-I5XIIV2D-DcoVkg45.js} +1 -1
  36. package/dist/ui/dist/assets/{diagram-ODIL2UCW-AAV39kUu.js → diagram-ODIL2UCW-T47FAA3k.js} +1 -1
  37. package/dist/ui/dist/assets/{diagram-PFBEJUXE-DWlV-oxd.js → diagram-PFBEJUXE-CRZcaVKP.js} +1 -1
  38. package/dist/ui/dist/assets/{diagram-RJA3I4VV-D8wHRCNX.js → diagram-RJA3I4VV-D6KXeUPg.js} +1 -1
  39. package/dist/ui/dist/assets/{diagram-TYUNFSNR-B_JQEsNY.js → diagram-TYUNFSNR-BHEIVyNN.js} +1 -1
  40. package/dist/ui/dist/assets/{dist-DxQIK_Ay.js → dist-DLlKIWBp.js} +1 -1
  41. package/dist/ui/dist/assets/{ebnfDiagram-V4P3TTPT-D83qV8mv.js → ebnfDiagram-V4P3TTPT-nUDvYRBV.js} +1 -1
  42. package/dist/ui/dist/assets/{elk-QONTBCTQ-BKFAKVSD.js → elk-QONTBCTQ-D21BcRzc.js} +1 -1
  43. package/dist/ui/dist/assets/{erDiagram-KYQIGQAA-CHYRd4aM.js → erDiagram-KYQIGQAA-CTpHuftU.js} +1 -1
  44. package/dist/ui/dist/assets/{eventmodeling-K75KTNOO-BDJDv3Zf.js → eventmodeling-K75KTNOO-B6JaKuDY.js} +1 -1
  45. package/dist/ui/dist/assets/flowDiagram-IUGLLWBU-BTeOUR-p.js +1 -0
  46. package/dist/ui/dist/assets/{ganttDiagram-R7GPNTJY-gTHjYkFj.js → ganttDiagram-R7GPNTJY-D2-pMcnC.js} +1 -1
  47. package/dist/ui/dist/assets/{gitGraph-VSP46ZUC-D4cWkxKB.js → gitGraph-VSP46ZUC-B2yxwhEo.js} +1 -1
  48. package/dist/ui/dist/assets/{gitGraphDiagram-PDYL7XHY-D3M9wYMr.js → gitGraphDiagram-PDYL7XHY-DnrhBMH1.js} +1 -1
  49. package/dist/ui/dist/assets/index-D74Skifa.css +1 -0
  50. package/dist/ui/dist/assets/index-Dnte9tPd.js +136 -0
  51. package/dist/ui/dist/assets/{info-OHQRW6UA-B9y0ksVq.js → info-OHQRW6UA-D8oh6gvs.js} +1 -1
  52. package/dist/ui/dist/assets/{infoDiagram-MVDRKAX5-s4FMwb8r.js → infoDiagram-MVDRKAX5-BLSZjjgB.js} +1 -1
  53. package/dist/ui/dist/assets/{ishikawaDiagram-HPEHV2GE-CnQdxybf.js → ishikawaDiagram-HPEHV2GE-BXiznLSn.js} +1 -1
  54. package/dist/ui/dist/assets/{journeyDiagram-BOSHW7O7-I-9OpDWY.js → journeyDiagram-BOSHW7O7-BSYmVcO_.js} +1 -1
  55. package/dist/ui/dist/assets/{kanban-definition-FNSA4HC5-DqUbIdH4.js → kanban-definition-FNSA4HC5-COthkkzK.js} +1 -1
  56. package/dist/ui/dist/assets/{line-BELSui4d.js → line-6ND8OaOL.js} +1 -1
  57. package/dist/ui/dist/assets/{linear-77hmn2iQ.js → linear-DbWEPFJX.js} +1 -1
  58. package/dist/ui/dist/assets/{mermaid-parser.core-Bxa71wW-.js → mermaid-parser.core-Btsk294z.js} +3 -3
  59. package/dist/ui/dist/assets/{mermaid.core-DBI9F4bh.js → mermaid.core-B4llDSFO.js} +4 -4
  60. package/dist/ui/dist/assets/{mindmap-definition-6OY57UG3-BxXMOapP.js → mindmap-definition-6OY57UG3-hv2PfX-x.js} +1 -1
  61. package/dist/ui/dist/assets/{packet-JDAUHWVQ-DTT77cQh.js → packet-JDAUHWVQ-Dr4vBgjt.js} +1 -1
  62. package/dist/ui/dist/assets/{pegDiagram-ECIUJNBX-HzrOQPT5.js → pegDiagram-ECIUJNBX-DvlFov3N.js} +1 -1
  63. package/dist/ui/dist/assets/{pie-XZMESJXO-iHwL1Qw-.js → pie-XZMESJXO-C9QsqC4n.js} +1 -1
  64. package/dist/ui/dist/assets/{pieDiagram-GNMPY74T-DZ1tLVjw.js → pieDiagram-GNMPY74T-CrrHOj67.js} +1 -1
  65. package/dist/ui/dist/assets/{prism-core-NtO0YF9C.js → prism-core-Cc8H7LPG.js} +1 -1
  66. package/dist/ui/dist/assets/{quadrantDiagram-D57K4MC3-BjTi9H5L.js → quadrantDiagram-D57K4MC3-DQ7J6-ti.js} +1 -1
  67. package/dist/ui/dist/assets/{radar-ABXABTNO-D2hYgXSB.js → radar-ABXABTNO-BBBPaujh.js} +1 -1
  68. package/dist/ui/dist/assets/{railroad-I3PHUGI6-DpakXN74.js → railroad-I3PHUGI6-C-P6Igaz.js} +1 -1
  69. package/dist/ui/dist/assets/{railroad-abnf-LNEFI6M7-B8ZFR3iy.js → railroad-abnf-LNEFI6M7-CAkorRLs.js} +1 -1
  70. package/dist/ui/dist/assets/{railroad-ebnf-DWYD2UWJ-S1XUyTsC.js → railroad-ebnf-DWYD2UWJ-D8Hz6gCf.js} +1 -1
  71. package/dist/ui/dist/assets/{railroad-peg-JR7BVNR7-BbeHC_6K.js → railroad-peg-JR7BVNR7-D-XNMkOs.js} +1 -1
  72. package/dist/ui/dist/assets/{railroadDiagram-Y72NRBL7-fd-2iyBo.js → railroadDiagram-Y72NRBL7-DE9LwxJQ.js} +1 -1
  73. package/dist/ui/dist/assets/{requirementDiagram-EQYSW5RA-B9-HHKH-.js → requirementDiagram-EQYSW5RA-FrKFY6NJ.js} +1 -1
  74. package/dist/ui/dist/assets/{sankeyDiagram-SY24JHO5-CeQN1ZEG.js → sankeyDiagram-SY24JHO5-BDxI6RDX.js} +1 -1
  75. package/dist/ui/dist/assets/{sequenceDiagram-BLEHNHQU-Vff7tx4t.js → sequenceDiagram-BLEHNHQU-pV1XcKX7.js} +1 -1
  76. package/dist/ui/dist/assets/{src-D5-ZzLwt.js → src-snNJTXXq.js} +1 -1
  77. package/dist/ui/dist/assets/{stateDiagram-v2-A6IESKWZ-Bzn_ma9c.js → stateDiagram-v2-A6IESKWZ-BSc_5aAf.js} +1 -1
  78. package/dist/ui/dist/assets/{swimlanes-B3ENRKFQ-CevqLchV.js → swimlanes-B3ENRKFQ-DC6qUXLh.js} +1 -1
  79. package/dist/ui/dist/assets/swimlanesDiagram-AYQRV4AK-F1HykV3o.js +8 -0
  80. package/dist/ui/dist/assets/{timeline-definition-JXYKGLGB-D9jSDGJI.js → timeline-definition-JXYKGLGB-C8L0Dxtu.js} +1 -1
  81. package/dist/ui/dist/assets/{treeView-D4JQ5SDB-CoXKj11m.js → treeView-D4JQ5SDB-DDyZIG5T.js} +1 -1
  82. package/dist/ui/dist/assets/{treemap-SAJKECNS-cHsansGe.js → treemap-SAJKECNS-CUaLgge0.js} +1 -1
  83. package/dist/ui/dist/assets/{usecaseDiagram-WPOLBNNX-CW9i3bW6.js → usecaseDiagram-WPOLBNNX-BHRBd5pV.js} +1 -1
  84. package/dist/ui/dist/assets/{vennDiagram-Q3Y3IDCW-DuU3qEKJ.js → vennDiagram-Q3Y3IDCW-Du4iwwkh.js} +1 -1
  85. package/dist/ui/dist/assets/{wardley-7MLQ67FV-dl9RgHUI.js → wardley-7MLQ67FV-DUgENI0s.js} +1 -1
  86. package/dist/ui/dist/assets/{wardleyDiagram-IVAIDKWA-BOXhrK-a.js → wardleyDiagram-IVAIDKWA-B86zOdke.js} +1 -1
  87. package/dist/ui/dist/assets/{xychartDiagram-4URNHDU4-CLQNGrh4.js → xychartDiagram-4URNHDU4-twq9irqO.js} +1 -1
  88. package/dist/ui/dist/index.html +2 -2
  89. package/package.json +1 -1
  90. package/skills/follow-me/SKILL.md +4 -4
  91. package/dist/ui/dist/assets/channel-CY2cQobm.js +0 -1
  92. package/dist/ui/dist/assets/flowDiagram-IUGLLWBU-Bke3CfUH.js +0 -1
  93. package/dist/ui/dist/assets/index-BUOFihod.js +0 -134
  94. package/dist/ui/dist/assets/index-DLNJT0VS.css +0 -1
  95. package/dist/ui/dist/assets/swimlanesDiagram-AYQRV4AK-Bkv8hAmN.js +0 -8
@@ -1,134 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-DBI9F4bh.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-D5-ZzLwt.js","assets/chunk-DSNLSHJZ-CNjUo110.js","assets/chunk-7S6XSTFO-CaQcUvXY.js","assets/dist-DxQIK_Ay.js","assets/chunk-YZO67HFG-DRRTjGuW.js","assets/chunk-AQDTSKZB-BZ9Czvbu.js","assets/chunk-DUW6YSOI-Dgx8z5s3.js","assets/chunk-UHW7PFBP-BszwjUqG.js","assets/chunk-HAGFOTED-BTmBE_D3.js","assets/chunk-J5ZVWO5B-oDCd-gWO.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-ZAUX2LTX-Bxuy-Roa.js","assets/chunk-WQQL4CDK-DZR6is1Q.js","assets/line-BELSui4d.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/chunk-HNE4Q36P-D2cDuT0C.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,t.exports),e=null),t.exports),s=(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},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),l=(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 u=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 ee(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function ne(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 j(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,j(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+A(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(te,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(ee(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+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+A(a,u),c+=j(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+A(a,u++),c+=j(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return j(ne(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 M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function re(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 ie=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 ae(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,ie)}catch(e){ie(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function oe(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 ae(oe.bind(null,e))}var se={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!ee(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=se,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=oe,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=ee,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:re}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=ae,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.1`})),d=o(((e,t)=>{t.exports=u()})),f=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&&te(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&&te(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 ee=new MessageChannel,k=ee.port2;ee.port1.onmessage=D,O=function(){k.postMessage(null)}}else O=function(){_(D,0)};function te(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,te(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}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();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.1`})),h=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=m()})),g=o((e=>{var t=p(),n=d(),r=h();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 f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function m(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)&&m(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(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=g(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`),ee=Symbol.for(`react.transitional.element`),k=Symbol.for(`react.portal`),te=Symbol.for(`react.fragment`),A=Symbol.for(`react.strict_mode`),ne=Symbol.for(`react.profiler`),j=Symbol.for(`react.consumer`),M=Symbol.for(`react.context`),re=Symbol.for(`react.forward_ref`),ie=Symbol.for(`react.suspense`),ae=Symbol.for(`react.suspense_list`),oe=Symbol.for(`react.memo`),se=Symbol.for(`react.lazy`),ce=Symbol.for(`react.activity`),N=Symbol.for(`react.legacy_hidden`),le=Symbol.for(`react.memo_cache_sentinel`),ue=Symbol.for(`react.view_transition`),de=Symbol.for(`react.recoverable`),fe=Symbol.iterator;function pe(e){return typeof e!=`object`||!e?null:(e=fe&&e[fe]||e[`@@iterator`],typeof e==`function`?e:null)}var me=Symbol.for(`react.client.reference`);function he(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case te:return`Fragment`;case ne:return`Profiler`;case A:return`StrictMode`;case ie:return`Suspense`;case ae:return`SuspenseList`;case ce:return`Activity`;case ue:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case k:return`Portal`;case M:return e.displayName||`Context`;case j:return(e._context.displayName||`Context`)+`.Consumer`;case re:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case oe:return t=e.displayName||null,t===null?he(e.type)||`Memo`:t;case se:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}var ge=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_e={pending:!1,data:null,method:null,action:null},ve=[],ye=-1;function be(e){return{current:e}}function xe(e){0>ye||(e.current=ve[ye],ve[ye]=null,ye--)}function Se(e,t){ye++,ve[ye]=e.current,e.current=t}var Ce=be(null),we=be(null),Te=be(null),Ee=be(null);function De(e,t){switch(Se(Te,t),Se(we,e),Se(Ce,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mp(t),e=hp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}xe(Ce),Se(Ce,e)}function Oe(){xe(Ce),xe(we),xe(Te)}function ke(e){var t=e.memoizedState;t!==null&&(lh._currentValue=t.memoizedState,Se(Ee,e)),t=Ce.current;var n=hp(t,e.type);t!==n&&(Se(we,e),Se(Ce,n))}function Ae(e){we.current===e&&(xe(Ce),xe(we)),Ee.current===e&&(xe(Ee),lh._currentValue=_e)}var je,Me;function Ne(e){if(je===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);je=t&&t[1]||``,Me=-1<e.stack.indexOf(`
3
- at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
- `+je+e+Me}var Pe=!1;function Fe(e,t){if(!e||Pe)return``;Pe=!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{Pe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ne(n):``}function Ie(e,t){switch(e.tag){case 26:case 27:case 5:return Ne(e.type);case 16:return Ne(`Lazy`);case 13:return e.child!==t&&t!==null?Ne(`Suspense Fallback`):Ne(`Suspense`);case 19:return Ne(`SuspenseList`);case 0:case 15:return Fe(e.type,!1);case 11:return Fe(e.type.render,!1);case 1:return Fe(e.type,!0);case 31:return Ne(`Activity`);case 30:return Ne(`ViewTransition`);default:return``}}function Le(e){try{var t=``,n=null;do t+=Ie(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8
- Error generating stack: `+e.message+`
9
- `+e.stack}}var Re=Object.prototype.hasOwnProperty,ze=t.unstable_scheduleCallback,Be=t.unstable_cancelCallback,Ve=t.unstable_shouldYield,He=t.unstable_requestPaint,Ue=t.unstable_now,We=t.unstable_getCurrentPriorityLevel,Ge=t.unstable_ImmediatePriority,Ke=t.unstable_UserBlockingPriority,qe=t.unstable_NormalPriority,Je=t.unstable_LowPriority,Ye=t.unstable_IdlePriority,Xe=t.log,Ze=t.unstable_setDisableYieldValue,Qe=null,$e=null;function et(e){if(typeof Xe==`function`&&Ze(e),$e&&typeof $e.setStrictMode==`function`)try{$e.setStrictMode(Qe,e)}catch{}}var tt=Math.clz32?Math.clz32:it,nt=Math.log,rt=Math.LN2;function it(e){return e>>>=0,e===0?32:31-(nt(e)/rt|0)|0}var at=256,ot=262144,st=4194304;function ct(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 lt(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=ct(n))):i=ct(o):i=ct(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ct(n))):i=ct(o)):i=ct(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 ut(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function dt(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-tt(n),i=1<<r;t|=e[r],n&=~i}return t}function ft(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 pt(){var e=st;return st<<=1,!(st&62914560)&&(st=4194304),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ht(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function gt(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-tt(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&&_t(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function _t(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-tt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-tt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function yt(e,t){var n=t&-t;return n=n&42?1:bt(n),(n&(e.suspendedLanes|t))===0?n:0}function bt(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 xt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function St(){var e=F.p;return e===0?(e=window.event,e===void 0?32:wh(e.type)):e}function Ct(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var I=Math.random().toString(36).slice(2),wt=`__reactFiber$`+I,Tt=`__reactProps$`+I,Et=`__reactContainer$`+I,Dt=`__reactEvents$`+I,L=`__reactListeners$`+I,Ot=`__reactHandles$`+I,kt=`__reactResources$`+I,At=`__reactMarker$`+I,jt=`__reactLoad$`+I;function Mt(e){delete e[wt],delete e[Tt],delete e[L],delete e[Ot]}function Nt(e){var t;if(t=e[wt])return t;for(var n=e.parentNode;n;){if(t=n[Et]||n[wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hm(e);e!==null;){if(n=e[wt])return n;e=hm(e)}return t}e=n,n=e.parentNode}return null}function Pt(e){if(e=e[wt]||e[Et]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ft(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function It(e){var t=e[kt];return t||=e[kt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Lt(e){e[At]=!0}function Rt(e){e[jt]=void 0}var zt=new Set,Bt={};function Vt(e,t){Ht(e,t),Ht(e+`Capture`,t)}function Ht(e,t){for(Bt[e]=t,e=0;e<t.length;e++)zt.add(t[e])}var Ut=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]*$`),Wt={},Gt={};function Kt(e){return Re.call(Gt,e)?!0:Re.call(Wt,e)?!1:Ut.test(e)?Gt[e]=!0:(Wt[e]=!0,!1)}var R=!1;function qt(){var e=R;return R=!1,e}function z(e,t,n){if(Kt(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 Jt(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 Yt(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 B(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Xt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Zt(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 Qt(e){if(!e._valueTracker){var t=Xt(e)?`checked`:`value`;e._valueTracker=Zt(e,t,``+e[t])}}function $t(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Xt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var en=/[\n"\\]/g;function tn(e){return e.replace(en,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function nn(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=``+B(t)):e.value!==``+B(t)&&(e.value=``+B(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):an(e,B(n)):o===`number`&&e.value==t?an(e,B(e.value)):an(e,B(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=``+B(s):e.removeAttribute(`name`)}function rn(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)){Qt(e);return}n=n==null?``:``+B(n),t=t==null?n:``+B(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),Qt(e)}function an(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function on(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=``+B(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 sn(e,t,n){t!=null&&(t=``+B(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+B(n)}function cn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ge(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=B(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Qt(e)}function ln(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var un=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 dn(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||un.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function fn(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]=``,R=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(dn(e,a,r),R=!0)}else for(var o in t)t.hasOwnProperty(o)&&dn(e,o,t[o])}function pn(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 mn=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`]]),hn=/^[\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 gn(e){return hn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function _n(){}var vn=null;function yn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bn=null,xn=null;function Sn(e){var t=Pt(e);if(t&&(e=t.stateNode)){var n=e[Tt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(nn(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="`+tn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Tt]||null;if(!a)throw Error(i(90));nn(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&&$t(r)}break a;case`textarea`:sn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&on(e,!!n.multiple,t,!1)}}}var Cn=!1;function wn(e,t,n){if(Cn)return e(t,n);Cn=!0;try{return e(t)}finally{if(Cn=!1,(bn!==null||xn!==null)&&(J(),bn&&(t=bn,e=xn,xn=bn=null,Sn(t),e)))for(t=0;t<e.length;t++)Sn(e[t])}}function V(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Tt]||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){bn?xn?xn.push(r):xn=[r]:bn=r,t=Zf(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){Wf(e,0)}function Er(e){if($t(Ft(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,yn(e)),wn(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(!Re.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=Zf(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),Vt(t,[e])}var mi=0;function hi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Cd.identifierPrefix;var n=mi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function gi(e){if(e==null||typeof e==`string`)return e;var t=null,n=jd;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 _i(e,t){return e=gi(e),t=gi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var vi=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)},yi=[],bi=0,xi=0;function Si(){for(var e=bi,t=xi=bi=0;t<e;){var n=yi[t];yi[t++]=null;var r=yi[t];yi[t++]=null;var i=yi[t];yi[t++]=null;var a=yi[t];if(yi[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&&Ei(n,i,a)}}function Ci(e,t,n,r){yi[bi++]=e,yi[bi++]=t,yi[bi++]=n,yi[bi++]=r,xi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function wi(e,t,n,r){return Ci(e,t,n,r),Di(e)}function Ti(e,t){return Ci(e,null,null,t),Di(e)}function Ei(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-tt(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Di(e){if(50<Md)throw Md=0,Nd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Oi={};function ki(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 Ai(e,t,n,r){return new ki(e,t,n,r)}function ji(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mi(e,t){var n=e.alternate;return n===null?(n=Ai(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 Ni(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 Pi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)ji(r)&&(s=1);else if(typeof r==`string`)s=Ym(e,n,Ce.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ce:return e=Ai(31,n,t,a),e.elementType=ce,e.lanes=o,e;case te:return Fi(n.children,a,o,t);case A:s=8,a|=24;break;case ne:return e=Ai(12,n,t,a|2),e.elementType=ne,e.lanes=o,e;case ie:return e=Ai(13,n,t,a),e.elementType=ie,e.lanes=o,e;case ae:return e=Ai(19,n,t,a),e.elementType=ae,e.lanes=o,e;case N:case ue:return e=a|32,e=Ai(30,n,t,e),e.elementType=ue,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case M:s=10;break a;case j:s=9;break a;case re:s=11;break a;case oe:s=14;break a;case se:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ai(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Fi(e,t,n,r){return e=Ai(7,e,r,t),e.lanes=n,e}function Ii(e,t,n){return e=Ai(6,e,null,t),e.lanes=n,e}function Li(e){var t=Ai(18,null,null,0);return t.stateNode=e,t}function Ri(e,t,n){return t=Ai(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zi=new WeakMap;function Bi(e,t){if(typeof e==`object`&&e){var n=zi.get(e);return n===void 0?(t={value:e,source:t,stack:Le(t)},zi.set(e,t),t):n}return{value:e,source:t,stack:Le(t)}}var Vi=[],Hi=0,Ui=null,Wi=0,Gi=[],Ki=0,qi=null,Ji=1,Yi=``;function Xi(e,t){Vi[Hi++]=Wi,Vi[Hi++]=Ui,Ui=e,Wi=t}function Zi(e,t,n){Gi[Ki++]=Ji,Gi[Ki++]=Yi,Gi[Ki++]=qi,qi=e;var r=Ji;e=Yi;var i=32-tt(r)-1;r&=~(1<<i),n+=1;var a=32-tt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ji=1<<32-tt(t)+i|n<<i|r,Yi=a+e}else Ji=1<<a|n<<i|r,Yi=e}function Qi(e){e.return!==null&&(Xi(e,1),Zi(e,1,0))}function $i(e){for(;e===Ui;)Ui=Vi[--Hi],Vi[Hi]=null,Wi=Vi[--Hi],Vi[Hi]=null;for(;e===qi;)qi=Gi[--Ki],Gi[Ki]=null,Yi=Gi[--Ki],Gi[Ki]=null,Ji=Gi[--Ki],Gi[Ki]=null}function ea(e,t){Gi[Ki++]=Ji,Gi[Ki++]=Yi,Gi[Ki++]=qi,Ji=t.id,Yi=t.overflow,qi=e}var ta=null,na=null,H=!1,ra=null,ia=!1,aa=Error(i(519));function oa(e){throw fa(Bi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),aa}function sa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[wt]=e,t[Tt]=r,n){case`dialog`:Y(`cancel`,t),Y(`close`,t);break;case`iframe`:case`object`:case`embed`:Y(`load`,t);break;case`video`:case`audio`:for(n=0;n<Hf.length;n++)Y(Hf[n],t);break;case`source`:Y(`error`,t);break;case`img`:case`image`:case`link`:Y(`error`,t),Y(`load`,t);break;case`details`:Y(`toggle`,t);break;case`input`:Y(`invalid`,t),rn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Y(`invalid`,t);break;case`textarea`:Y(`invalid`,t),cn(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||rp(t.textContent,n)?(r.popover!=null&&(Y(`beforetoggle`,t),Y(`toggle`,t)),r.onScroll!=null&&Y(`scroll`,t),r.onScrollEnd!=null&&Y(`scrollend`,t),r.onClick!=null&&(t.onclick=_n),t=!0):t=!1,t||oa(e,!0)}function ca(e){for(ta=e.return;ta;)switch(ta.tag){case 5:case 31:case 13:ia=!1;return;case 27:case 3:ia=!0;return;default:ta=ta.return}}function la(e){if(e!==ta)return!1;if(!H)return ca(e),H=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||_p(e.type,e.memoizedProps)),n=!n),n&&na&&oa(e),ca(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));na=mm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));na=mm(e)}else t===27?(t=na,Tp(e.type)?(e=pm,pm=null,na=e):na=t):na=ta?fm(e.stateNode.nextSibling):null;return!0}function ua(){na=ta=null,H=!1}function da(){var e=ra;return e!==null&&(hd===null?hd=e:hd.push.apply(hd,e),ra=null),e}function fa(e){ra===null?ra=[e]:ra.push(e)}var pa=be(null),ma=null,ha=null;function ga(e,t,n){Se(pa,t._currentValue),t._currentValue=n}function _a(e){e._currentValue=pa.current,xe(pa)}function va(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 ya(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),va(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),va(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),va(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 ba(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===Ee.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&&ya(t,e,n,r),t.flags|=262144,e!==null}function xa(e){for(e=e.firstContext;e!==null;){if(!zr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){ma=e,ha=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ca(e){return Ta(ma,e)}function wa(e,t){return ma===null&&Sa(e),Ta(e,t)}function Ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ha===null){if(e===null)throw Error(i(308));ha=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ha=ha.next=t;return n}var Ea=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()})}},Da=t.unstable_scheduleCallback,Oa=t.unstable_NormalPriority,ka={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Aa(){return{controller:new Ea,data:new Map,refCount:0}}function ja(e){e.refCount--,e.refCount===0&&Da(Oa,function(){e.controller.abort()})}function Ma(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 Na=null;function Pa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Fa=null,Ia=0,La=0,Ra=null;function za(e,t){if(Fa===null){var n=Fa=[];Ia=0,La=Lf(),Ra={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ia++,t.then(Ba,Ba),t}function Ba(){if(--Ia===0&&(Na=null,Fa!==null)){Ra!==null&&(Ra.status=`fulfilled`);var e=Fa;Fa=null,La=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Va(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 Ha=P.S;P.S=function(e,t){if(vd=Ue(),typeof t==`object`&&t&&typeof t.then==`function`&&za(e,t),Na!==null)for(var n=Cf;n!==null;)Ma(n,Na),n=n.next;if(n=e.types,n!==null){for(var r=Cf;r!==null;)Ma(r,n),r=r.next;if(La!==0){r=Na,r===null&&(r=Na=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ha!==null&&Ha(e,t)};var Ua=be(null);function Wa(){var e=Ua.current;return e===null?nd.pooledCache:e}function Ga(e,t){t===null?Se(Ua,Ua.current):Se(Ua,t.pool)}function Ka(){var e=Wa();return e===null?null:{parent:ka._currentValue,pool:e}}var qa=Error(i(460)),Ja=Error(i(474)),Ya=Error(i(542)),Xa={then:function(){}};function Za(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(_n,_n),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,no(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(_n,_n);else{if(e=nd,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,no(e),e}throw eo=t,qa}}function $a(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(eo=e,qa):e}}var eo=null;function to(){if(eo===null)throw Error(i(459));var e=eo;return eo=null,e}function no(e){if(e===qa||e===Ya)throw Error(i(483))}var ro=null,io=0;function ao(e){var t=io;return io+=1,ro===null&&(ro=[]),Qa(ro,e,t)}function oo(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function so(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 co(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=Mi(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=Ii(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===te?(e=d(e,t,n.props.children,r,n.key),oo(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===se&&$a(i)===t.type)?(t=a(t,n.props),oo(t,n),t.return=e,t):(t=Pi(n.type,n.key,n.props,null,e.mode,r),oo(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=Ri(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=Fi(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=Ii(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case ee:return n=Pi(t.type,t.key,t.props,null,e.mode,n),oo(n,t),n.return=e,n;case k:return t=Ri(t,e.mode,n),t.return=e,t;case se:return t=$a(t),f(e,t,n)}if(ge(t)||pe(t))return t=Fi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ao(t),n);if(t.$$typeof===M)return f(e,wa(e,t),n);so(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 ee:return n.key===i?l(e,t,n,r):null;case k:return n.key===i?u(e,t,n,r):null;case se:return n=$a(n),p(e,t,n,r)}if(ge(n)||pe(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ao(n),r);if(n.$$typeof===M)return p(e,t,wa(e,n),r);so(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 ee:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case k:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case se:return r=$a(r),m(e,t,n,r,i)}if(ge(r)||pe(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,ao(r),i);if(r.$$typeof===M)return m(e,t,n,wa(t,r),i);so(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),H&&Xi(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 H&&Xi(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)}),H&&Xi(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),H&&Xi(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 H&&Xi(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)}),H&&Xi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===te&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case ee:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===te){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),oo(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===se&&$a(l)===r.type){n(e,r.sibling),c=a(r,o.props),oo(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===te?(c=Fi(o.props.children,e.mode,c,o.key),oo(c,o),c.return=e,e=c):(c=Pi(o.type,o.key,o.props,null,e.mode,c),oo(c,o),c.return=e,e=c)}return s(e);case k: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=Ri(o,e.mode,c),c.return=e,e=c}return s(e);case se:return o=$a(o),_(e,r,o,c)}if(ge(o))return h(e,r,o,c);if(pe(o)){if(l=pe(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,ao(o),c);if(o.$$typeof===M)return _(e,r,wa(e,o),c);so(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=Ii(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{io=0;var i=_(e,t,n,r);return ro=null,i}catch(t){if(t===qa||t===Ya)throw t;var a=Ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var lo=co(!0),uo=co(!1),fo=!1;function po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mo(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 ho(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function go(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Di(e),Ei(e,null,n),t}return Ci(e,r,t,n),Di(e)}function _o(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,vt(e,n)}}function vo(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 yo=!1;function bo(){if(yo){var e=Ra;if(e!==null)throw e}}function xo(e,t,n,r){yo=!1;var i=e.updateQueue;fo=!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?(K&f)===f:(r&f)===f){f!==0&&f===La&&(yo=!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:fo=!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),ld|=o,e.lanes=o,e.memoizedState=d}}function So(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Co(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)So(n[e],t)}var wo=be(null),To=be(0);function Eo(e,t){e=cd,Se(To,e),Se(wo,t),cd=e|t.baseLanes}function Do(){Se(To,cd),Se(wo,wo.current)}function Oo(){cd=To.current,xe(wo),xe(To)}var ko=be(null),Ao=null;function jo(e){var t=e.alternate;Se(Io,Io.current&1),Se(ko,e),Ao===null&&(t===null||wo.current!==null||t.memoizedState!==null)&&(Ao=e)}function Mo(e){Se(Io,Io.current),Se(ko,e),Ao===null&&(Ao=e)}function No(e){e.tag===22?(Se(Io,Io.current),Se(ko,e),Ao===null&&(Ao=e)):Po()}function Po(){Se(Io,Io.current),Se(ko,ko.current)}function Fo(e){xe(ko),Ao===e&&(Ao=null),xe(Io)}var Io=be(0);function Lo(e,t){Se(ko,ko.current),Se(Io,t)}function Ro(e){xe(Io),xe(ko),Ao===e&&(Ao=null)}function zo(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 Bo=0,U=null,Vo=null,Ho=null,Uo=!1,Wo=!1,Go=!1,Ko=0,qo=0,Jo=null,Yo=0;function Xo(){throw Error(i(321))}function Zo(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 Bo=a,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?hc:gc,Go=!1,a=n(r,i),Go=!1,Wo&&(a=es(t,n,r,i)),$o(e),a}function $o(e){P.H=mc;var t=Vo!==null&&Vo.next!==null;if(Bo=0,Ho=Vo=U=null,Uo=!1,qo=0,Jo=null,t)throw Error(i(300));e===null||Nc||(e=e.dependencies,e!==null&&xa(e)&&(Nc=!0))}function es(e,t,n,r){U=e;var a=0;do{if(Wo&&(Jo=null),qo=0,Wo=!1,25<=a)throw Error(i(301));if(a+=1,Ho=Vo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=_c,o=t(n,r)}while(Wo);return o}function ts(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?cs(t):t,e=e.useState()[0],(Vo===null?null:Vo.memoizedState)!==e&&(U.flags|=1024),t}function ns(){var e=Ko!==0;return Ko=0,e}function rs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function is(e){if(Uo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Uo=!1}Bo=0,Ho=Vo=U=null,Wo=!1,qo=Ko=0,Jo=null}function as(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ho===null?U.memoizedState=Ho=e:Ho=Ho.next=e,Ho}function os(){if(Vo===null){var e=U.alternate;e=e===null?null:e.memoizedState}else e=Vo.next;var t=Ho===null?U.memoizedState:Ho.next;if(t!==null)Ho=t,Vo=e;else{if(e===null)throw U.alternate===null?Error(i(467)):Error(i(310));Vo=e,e={memoizedState:Vo.memoizedState,baseState:Vo.baseState,baseQueue:Vo.baseQueue,queue:Vo.queue,next:null},Ho===null?U.memoizedState=Ho=e:Ho=Ho.next=e}return Ho}function ss(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cs(e){var t=qo;return qo+=1,Jo===null&&(Jo=[]),e=Qa(Jo,e,t),t=U,(Ho===null?t.memoizedState:Ho.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?hc:gc),e}function ls(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return cs(e);if(e.$$typeof===de)return;if(e.$$typeof===M)return Ca(e)}throw Error(i(438,String(e)))}function us(e){var t=null,n=U.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=U.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=ss(),U.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]=le;return t.index++,n}function ds(e,t){return typeof t==`function`?t(e):t}function fs(e){return ps(os(),Vo,e)}function ps(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?(Bo&f)===f:(K&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===La&&(d=!0);else if((Bo&p)===p){u=u.next,p===La&&(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,U.lanes|=p,ld|=p;f=u.action,Go&&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,U.lanes|=f,ld|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!zr(o,e.memoizedState)&&(Nc=!0,d&&(n=Ra,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 ms(e){var t=os(),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)||(Nc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function hs(e,t,n){var r=U,a=os(),o=H;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!zr((Vo||a).memoizedState,n);if(s&&(a.memoizedState=n,Nc=!0),a=a.queue,Bs(vs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Ho!==null&&!!(Ho.memoizedState.tag&1),Fs(e?9:8,{destroy:void 0},_s.bind(null,r,a,n,t),null),e){if(r.flags|=2048,nd===null)throw Error(i(349));o||Bo&127||gs(r,t,n)}return n}function gs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=U.updateQueue,t===null?(t=ss(),U.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _s(e,t,n,r){t.value=n,t.getSnapshot=r,ys(t)&&bs(e)}function vs(e,t,n){return n(function(){ys(t)&&bs(e)})}function ys(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zr(e,n)}catch{return!0}}function bs(e){var t=Ti(e,2);t!==null&&Ld(t,e,2)}function xs(e){var t=as();if(typeof e==`function`){var n=e;if(e=n(),Go){et(!0);try{n()}finally{et(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:e},t}function Ss(e,t,n,r){return e.baseState=n,ps(e,Vo,typeof r==`function`?r:ds)}function Cs(e,t,n,r,a){if(dc(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)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,ws(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ws(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};o.types=a===null?null:a.types,P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),Ts(e,t,s)}catch(n){Ds(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),Ts(e,t,a)}catch(n){Ds(e,t,n)}}function Ts(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Es(e,t,n)},function(n){return Ds(e,t,n)}):Es(e,t,n)}function Es(e,t,n){t.status=`fulfilled`,t.value=n,Os(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ws(e,n)))}function Ds(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Os(t),t=t.next;while(t!==r)}e.action=null}function Os(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ks(e,t){return t}function As(e,t){if(H){var n=nd.formState;if(n!==null){a:{var r=U;if(H){if(na){b:{for(var i=na,a=ia;i.nodeType!==8;)if(!a||(i=fm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){na=fm(i.nextSibling),r=i.data===`F!`;break a}}oa(r)}r=!1}r&&(t=n[0])}}return n=as(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:t},n.queue=r,n=cc.bind(null,U,r),r.dispatch=n,r=xs(!1),a=uc.bind(null,U,!1,r.queue),r=as(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Cs.bind(null,U,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function js(e){return Ms(os(),Vo,e)}function Ms(e,t,n){if(t=ps(e,t,ks)[0],e=fs(ds)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=cs(t)}catch(e){throw e===qa?Ya:e}else r=t;t=os();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(U.flags|=2048,Fs(9,{destroy:void 0},Ns.bind(null,i,n),null)),[r,a,e]}function Ns(e,t){e.action=t}function Ps(e){var t=os(),n=Vo;if(n!==null)return Ms(t,n,e);os(),t=t.memoizedState,n=os();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Fs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=U.updateQueue,t===null&&(t=ss(),U.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 Is(){return os().memoizedState}function Ls(e,t,n,r){var i=as();U.flags|=e,i.memoizedState=Fs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Rs(e,t,n,r){var i=os();r=r===void 0?null:r;var a=i.memoizedState.inst;Vo!==null&&r!==null&&Zo(r,Vo.memoizedState.deps)?i.memoizedState=Fs(t,a,n,r):(U.flags|=e,i.memoizedState=Fs(1|t,a,n,r))}function zs(e,t){Ls(8390656,8,e,t)}function Bs(e,t){Rs(2048,8,e,t)}function Vs(e){U.flags|=4;var t=U.updateQueue;if(t===null)t=ss(),U.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Hs(e){var t=os().memoizedState;return Vs({ref:t,nextImpl:e}),function(){if(W&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Us(e,t){return Rs(4,2,e,t)}function Ws(e,t){return Rs(4,4,e,t)}function Gs(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 Ks(e,t,n){n=n==null?null:n.concat([e]),Rs(4,4,Gs.bind(null,t,e),n)}function qs(){}function Js(e,t){var n=os();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Zo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ys(e,t){var n=os();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Zo(t,r[1]))return r[0];if(r=e(),Go){et(!0);try{e()}finally{et(!1)}}return n.memoizedState=[r,t],r}function Xs(e,t,n){return n===void 0||Bo&1073741824&&!(K&261930)?e.memoizedState=t:(e.memoizedState=n,e=Fd(),U.lanes|=e,ld|=e,n)}function Zs(e,t,n,r){return zr(n,t)?n:wo.current===null?!(Bo&106)||Bo&1073741824&&!(K&261930)?(Nc=!0,e.memoizedState=n):(e=Fd(),U.lanes|=e,ld|=e,t):(e=Xs(e,n,r),zr(e,t)||(Nc=!0),e)}function Qs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};s.types=o===null?null:o.types,P.T=s,uc(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?lc(e,t,Va(c,r),Pd(e)):lc(e,t,r,Pd(e))}catch(n){lc(e,t,{then:function(){},status:`rejected`,reason:n},Pd())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function $s(){}function ec(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=tc(e).queue;Qs(e,a,t,_e,n===null?$s:function(){return nc(e),n(r)})}function tc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:_e,baseState:_e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:_e},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function nc(e){var t=tc(e);t.next===null&&(t=e.alternate.memoizedState),lc(e,t.next.queue,{},Pd())}function rc(){return Ca(lh)}function ic(){return os().memoizedState}function ac(){return os().memoizedState}function oc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Pd();e=ho(n);var r=go(t,e,n);r!==null&&(Ld(r,t,n),_o(r,t,n)),t={cache:Aa()},e.payload=t;return}t=t.return}}function sc(e,t,n){var r=Pd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},dc(e)?fc(t,n):(n=wi(e,t,n,r),n!==null&&(Ld(n,e,r),pc(n,t,r)))}function cc(e,t,n){lc(e,t,n,Pd())}function lc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(dc(e))fc(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 Ci(e,t,i,0),nd===null&&Si(),!1}catch{}if(n=wi(e,t,i,r),n!==null)return Ld(n,e,r),pc(n,t,r),!0}return!1}function uc(e,t,n,r){if(r={lane:2,revertLane:Lf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},dc(e)){if(t)throw Error(i(479))}else t=wi(e,n,r,2),t!==null&&Ld(t,e,2)}function dc(e){var t=e.alternate;return e===U||t!==null&&t===U}function fc(e,t){Wo=Uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vt(e,n)}}var mc={readContext:Ca,use:ls,useCallback:Xo,useContext:Xo,useEffect:Xo,useImperativeHandle:Xo,useLayoutEffect:Xo,useInsertionEffect:Xo,useMemo:Xo,useReducer:Xo,useRef:Xo,useState:Xo,useDebugValue:Xo,useDeferredValue:Xo,useTransition:Xo,useSyncExternalStore:Xo,useId:Xo,useHostTransitionStatus:Xo,useFormState:Xo,useActionState:Xo,useOptimistic:Xo,useMemoCache:Xo,useCacheRefresh:Xo,useEffectEvent:Xo},hc={readContext:Ca,use:ls,useCallback:function(e,t){return as().memoizedState=[e,t===void 0?null:t],e},useContext:Ca,useEffect:zs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ls(4194308,4,Gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){Ls(4,2,e,t)},useMemo:function(e,t){var n=as();t=t===void 0?null:t;var r=e();if(Go){et(!0);try{e()}finally{et(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=as();if(n!==void 0){var i=n(t);if(Go){et(!0);try{n(t)}finally{et(!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=sc.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=as();return e={current:e},t.memoizedState=e},useState:function(e){e=xs(e);var t=e.queue,n=cc.bind(null,U,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:qs,useDeferredValue:function(e,t){return Xs(as(),e,t)},useTransition:function(){var e=xs(!1);return e=Qs.bind(null,U,e.queue,!0,!1),as().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=U,a=as();if(H){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),nd===null)throw Error(i(349));K&127||gs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,zs(vs.bind(null,r,o,e),[e]),r.flags|=2048,Fs(9,{destroy:void 0},_s.bind(null,r,o,n,t),null),n},useId:function(){var e=as(),t=nd.identifierPrefix;if(H){var n=Yi,r=Ji;n=(r&~(1<<32-tt(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ko++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Yo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:rc,useFormState:As,useActionState:As,useOptimistic:function(e){var t=as();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=uc.bind(null,U,!0,n),n.dispatch=t,[e,t]},useMemoCache:us,useCacheRefresh:function(){return as().memoizedState=oc.bind(null,U)},useEffectEvent:function(e){var t=as(),n={impl:e};return t.memoizedState=n,function(){if(W&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},gc={readContext:Ca,use:ls,useCallback:Js,useContext:Ca,useEffect:Bs,useImperativeHandle:Ks,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Ys,useReducer:fs,useRef:Is,useState:function(){return fs(ds)},useDebugValue:qs,useDeferredValue:function(e,t){return Zs(os(),Vo.memoizedState,e,t)},useTransition:function(){var e=fs(ds)[0],t=os().memoizedState;return[typeof e==`boolean`?e:cs(e),t]},useSyncExternalStore:hs,useId:ic,useHostTransitionStatus:rc,useFormState:js,useActionState:js,useOptimistic:function(e,t){return Ss(os(),Vo,e,t)},useMemoCache:us,useCacheRefresh:ac,useEffectEvent:Hs},_c={readContext:Ca,use:ls,useCallback:Js,useContext:Ca,useEffect:Bs,useImperativeHandle:Ks,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Ys,useReducer:ms,useRef:Is,useState:function(){return ms(ds)},useDebugValue:qs,useDeferredValue:function(e,t){var n=os();return Vo===null?Xs(n,e,t):Zs(n,Vo.memoizedState,e,t)},useTransition:function(){var e=ms(ds)[0],t=os().memoizedState;return[typeof e==`boolean`?e:cs(e),t]},useSyncExternalStore:hs,useId:ic,useHostTransitionStatus:rc,useFormState:Ps,useActionState:Ps,useOptimistic:function(e,t){var n=os();return Vo===null?(n.baseState=e,[e,n.queue.dispatch]):Ss(n,Vo,e,t)},useMemoCache:us,useCacheRefresh:ac,useEffectEvent:Hs};function vc(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 yc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pd(),i=ho(r);i.payload=t,n!=null&&(i.callback=n),t=go(e,i,r),t!==null&&(Ld(t,e,r),_o(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pd(),i=ho(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=go(e,i,r),t!==null&&(Ld(t,e,r),_o(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pd(),r=ho(n);r.tag=2,t!=null&&(r.callback=t),t=go(e,r,n),t!==null&&(Ld(t,e,n),_o(t,e,n))}};function bc(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 xc(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&&yc.enqueueReplaceState(t,t.state,null)}function Sc(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 Cc(e){vi(e)}function wc(e){console.error(e)}function Tc(e){vi(e)}function Ec(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Dc(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 Oc(e,t,n){return n=ho(n),n.tag=3,n.payload={element:null},n.callback=function(){Ec(e,t)},n}function kc(e){return e=ho(e),e.tag=3,e}function Ac(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(){Dc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Dc(t,n,r),typeof i!=`function`&&(xd===null?xd=new Set([this]):xd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function jc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ba(t,n,a,!0),n=ko.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Ao===null?Jd():n.alternate===null&&q===0&&(q=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Xa?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===Xa?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(H)return t=ko.current,t===null?(r!==aa&&(t=Error(i(423),{cause:r}),fa(Bi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Bi(r,n),a=Oc(e.stateNode,r,a),vo(e,a),q!==4&&(q=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==aa&&(e=Error(i(422),{cause:r}),fa(Bi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Bi(o,n),md===null?md=[o]:md.push(o),q!==4&&(q=2),t===null)return!0;r=Bi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Oc(n.stateNode,r,e),vo(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`&&(xd===null||!xd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=kc(a),Ac(a,e,n,r),vo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Mc=Error(i(461)),Nc=!1;function Pc(e,t,n,r){t.child=e===null?uo(t,null,n,r):lo(t,e.child,n,r)}function Fc(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 Sa(t),r=Qo(e,t,n,o,a,i),s=ns(),e!==null&&!Nc?(rs(e,t,i),ll(e,t,i)):(H&&s&&Qi(t),t.flags|=1,Pc(e,t,r,i),t.child)}function Ic(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ji(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Lc(e,t,a,r,i)):(e=Pi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ul(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Br:n,n(o,r)&&e.ref===t.ref)return ll(e,t,i)}return t.flags|=1,e=Mi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Lc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Br(a,r)&&e.ref===t.ref){if(Nc=!1,t.pendingProps=r=a,ul(e,i))e.flags&131072&&(Nc=!0);else return t.lanes=e.lanes,ll(e,t,i)}}return Gc(e,t,n,r,i)}function Rc(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 Bc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ga(t,a===null?null:a.cachePool),a===null?Do():Eo(t,a),No(t);else return r=t.lanes=536870912,Bc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ga(t,null),Do(),Po()):(Ga(t,a.cachePool),Eo(t,a),Po(),t.memoizedState=null);return Pc(e,t,i,n),t.child}function zc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Bc(e,t,n,r,i){var a=Wa();return a=a===null?null:{parent:ka._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ga(t,null),Do(),No(t),e!==null&&ba(e,t,r,!0),t.childLanes=i,null}function Vc(e,t){return t=el({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Hc(e,t,n){return lo(t,e.child,null,n),e=Vc(t,t.pendingProps),e.flags|=2,Fo(t),t.memoizedState=null,e}function Uc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(H){if(r.mode===`hidden`)return e=Vc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},zc(null,e);if(Mo(t),(e=na)?(e=cm(e,ia),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:qi===null?null:{id:Ji,overflow:Yi},retryLane:536870912,hydrationErrors:null},n=Li(e),n.return=t,t.child=n,ta=t,na=null)):e=null,e===null)throw oa(t);return t.lanes=536870912,null}return Vc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Mo(t),a){if(t.flags&256)t.flags&=-257,t=Hc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Nc||ba(e,t,n,!1),a=(n&e.childLanes)!==0,Nc||a){if(wo.current===null){if(r=nd,r!==null&&(s=yt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Ti(e,s),Ld(r,e,s),Mc;Jd()}t=Hc(e,t,n)}else e=o.treeContext,na=fm(s.nextSibling),ta=t,H=!0,ra=null,ia=!1,e!==null&&ea(t,e),t=Vc(t,r),t.flags|=134221824;return t}return e=Mi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Wc(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 Gc(e,t,n,r,i){return Sa(t),n=Qo(e,t,n,r,void 0,i),r=ns(),e!==null&&!Nc?(rs(e,t,i),ll(e,t,i)):(H&&r&&Qi(t),t.flags|=1,Pc(e,t,n,i),t.child)}function Kc(e,t,n,r,i,a){return Sa(t),t.updateQueue=null,n=es(t,r,n,i),$o(e),r=ns(),e!==null&&!Nc?(rs(e,t,a),ll(e,t,a)):(H&&r&&Qi(t),t.flags|=1,Pc(e,t,n,a),t.child)}function qc(e,t,n,r,i){if(Sa(t),t.stateNode===null){var a=Oi,o=n.contextType;typeof o==`object`&&o&&(a=Ca(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=yc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},po(t),o=n.contextType,a.context=typeof o==`object`&&o?Ca(o):Oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(vc(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&&yc.enqueueReplaceState(a,a.state,null),xo(t,r,a,i),bo(),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=Sc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Oi,typeof u==`object`&&u&&(o=Ca(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)&&xc(t,a,r,o),fo=!1;var f=t.memoizedState;a.state=f,xo(t,r,a,i),bo(),l=t.memoizedState,s||f!==l||fo?(typeof d==`function`&&(vc(t,n,d,r),l=t.memoizedState),(c=fo||bc(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,mo(e,t),o=t.memoizedProps,u=Sc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Oi,typeof l==`object`&&l&&(c=Ca(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)&&xc(t,a,r,c),fo=!1,f=t.memoizedState,a.state=f,xo(t,r,a,i),bo();var p=t.memoizedState;o!==d||f!==p||fo||e!==null&&e.dependencies!==null&&xa(e.dependencies)?(typeof s==`function`&&(vc(t,n,s,r),p=t.memoizedState),(u=fo||bc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&xa(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,Wc(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=lo(t,e.child,null,i),t.child=lo(t,null,n,i)):Pc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=ll(e,t,i),e}function Jc(e,t,n,r){return ua(),t.flags|=256,Pc(e,t,n,r),t.child}var Yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xc(e){return{baseLanes:e,cachePool:Ka()}}function Zc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=fd),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:!!(Io.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(H){if(i?jo(t):Po(),(e=na)?(e=cm(e,ia),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:qi===null?null:{id:Ji,overflow:Yi},retryLane:536870912,hydrationErrors:null},n=Li(e),n.return=t,t.child=n,ta=t,na=null)):e=null,e===null)throw oa(t);return t.lanes=um(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Po(),i=t.mode,a=el({mode:`hidden`,children:a},i),r=Fi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Xc(n),r.childLanes=Zc(e,o,n),t.memoizedState=Yc,zc(null,r)):(jo(t),$c(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return nl(e,t,a,o,r,c,s,n)}return i?(Po(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Mi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Fi(i,a,n,null),i.flags|=2):i=Mi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,zc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Xc(n):(a=i.cachePool,a===null?a=Ka():(s=ka._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Zc(e,o,n),t.memoizedState=Yc,zc(e.child,r)):(jo(t),n=e.child,e=n.sibling,n=Mi(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 $c(e,t){return t=el({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function el(e,t){return e=Ai(22,e,null,t),e.lanes=0,e}function tl(e,t,n){return lo(t,e.child,null,n),e=$c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(jo(t),t.flags&=-257,tl(e,t,c)):t.memoizedState===null?(Po(),o=a.fallback,s=t.mode,a=el({mode:`visible`,children:a.children},s),o=Fi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,lo(t,e.child,null,c),a=t.child,a.memoizedState=Xc(c),a.childLanes=Zc(e,r,c),t.memoizedState=Yc,zc(null,a)):(Po(),t.child=e.child,t.flags|=128,null);if(jo(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,fa({value:a,source:null,stack:null})),tl(e,t,c)}if(Nc||ba(e,t,c,!1),r=(c&e.childLanes)!==0,Nc||r){if(wo.current!==null)return tl(e,t,c);if(r=nd,r!==null&&(a=yt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ti(e,a),Ld(r,e,a),Mc;return lm(o)||Jd(),tl(e,t,c)}return lm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,na=fm(o.nextSibling),ta=t,H=!0,ra=null,ia=!1,e!==null&&ea(t,e),t=$c(t,a.children),t.flags|=134221824,t)}function rl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),va(e.return,t,n)}function il(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&zo(n)===null&&(t=e),e=e.sibling}return t}function al(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 ol(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 sl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Io.current;if(t.flags&128)return Lo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Lo(t,o),i===`backwards`&&e!==null?(ol(e),Pc(e,t,r,n),ol(e)):Pc(e,t,r,n),r=H?Wi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rl(e,n,t);else if(e.tag===19)rl(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=il(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,ol(t)),al(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&&zo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}al(t,!0,n,null,a,r);break;case`together`:al(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=il(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),al(t,!1,i,n,a,r)}return t.child}function cl(e,t,n){var r=t.pendingProps;return ga(t,t.type,r.value),Pc(e,t,r.children,n),t.child}function ll(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ld|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ba(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=Mi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ul(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&xa(e)))}function dl(e,t,n){switch(t.tag){case 3:De(t,t.stateNode.containerInfo),ga(t,ka,e.memoizedState.cache),ua();break;case 27:case 5:ke(t);break;case 4:De(t,t.stateNode.containerInfo);break;case 10:ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Mo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return jo(t),t.flags|=128,null;r=ba(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Qc(e,t,n):(jo(t),e=ll(e,t,n),e===null?null:e.sibling)}jo(t);break;case 19:if(t.flags&128)return sl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ba(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return sl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Lo(t,Io.current),r)break;return null;case 22:return t.lanes=0,Rc(e,t,n,t.pendingProps);case 24:ga(t,ka,e.memoizedState.cache)}return ll(e,t,n)}function fl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Nc=!0;else{if(!ul(e,n)&&!(t.flags&128))return Nc=!1,dl(e,t,n);Nc=!!(e.flags&131072)}}else Nc=!1,H&&t.flags&1048576&&Zi(t,Wi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=$a(t.elementType),t.type=e,typeof e==`function`)ji(e)?(r=Sc(e,r),t.tag=1,t=qc(null,t,e,r,n)):(t.tag=0,t=Gc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===re){t.tag=11,t=Fc(null,t,e,r,n);break a}if(a===oe){t.tag=14,t=Ic(null,t,e,r,n);break a}if(a===M){t.tag=10,t.type=e,t=cl(null,t,n);break a}}throw t=he(e)||e,Error(i(306,t,``))}}return t;case 0:return Gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Sc(r,t.pendingProps),qc(e,t,r,a,n);case 3:a:{if(De(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,mo(e,t),xo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ga(t,ka,r),r!==o.cache&&ya(t,[ka],n,!0),bo(),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=Jc(e,t,r,n);break a}if(r!==a){a=Bi(Error(i(424)),t),fa(a),t=Jc(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(na=fm(e.firstChild),ta=t,H=!0,ra=null,ia=!0,n=uo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ua(),r===a){t=ll(e,t,n);break a}Pc(e,t,r,n)}t=t.child}return t;case 26:return Wc(e,t),e===null?(n=Fm(t.type,null,t.pendingProps,null))?t.memoizedState=n:H||(t.stateNode=gp(t.type,t.pendingProps,Te.current,t)):t.memoizedState=Fm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ke(t),e===null&&H&&(r=t.stateNode=vm(t.type,t.pendingProps,Te.current),ta=t,ia=!0,a=na,Tp(t.type)?(pm=a,na=fm(r.firstChild)):na=a),Pc(e,t,t.pendingProps.children,n),Wc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&H&&((a=r=na)&&(r=om(r,t.type,t.pendingProps,ia),r===null?a=!1:(t.stateNode=r,ta=t,na=fm(r.firstChild),ia=!1,a=!0)),a||oa(t)),ke(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,_p(a,o)?r=null:s!==null&&_p(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Qo(e,t,ts,null,null,n),lh._currentValue=a),Wc(e,t),Pc(e,t,r,n),t.child;case 6:return e===null&&H&&((e=n=na)&&(n=sm(n,t.pendingProps,ia),n===null?e=!1:(t.stateNode=n,ta=t,na=null,e=!0)),e||oa(t)),null;case 13:return Qc(e,t,n);case 4:return De(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=lo(t,null,r,n):Pc(e,t,r,n),t.child;case 11:return Fc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Wc(e,t),Pc(e,t,r,n),t.child;case 8:return Pc(e,t,t.pendingProps.children,n),t.child;case 12:return Pc(e,t,t.pendingProps.children,n),t.child;case 10:return cl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,Sa(t),a=Ca(a),r=r(a),t.flags|=1,Pc(e,t,r,n),t.child;case 14:return Ic(e,t,t.type,t.pendingProps,n);case 15:return Lc(e,t,t.type,t.pendingProps,n);case 19:return sl(e,t,n);case 31:return Uc(e,t,n);case 22:return Rc(e,t,n,t.pendingProps);case 24:return Sa(t),r=Ca(ka),e===null?(a=Wa(),a===null&&(a=nd,o=Aa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},po(t),ga(t,ka,a)):((e.lanes&n)!==0&&(mo(e,t),xo(t,null,null,n),bo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ga(t,ka,r),r!==a.cache&&ya(t,[ka],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ga(t,ka,r))),Pc(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:H&&Qi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Wc(e,t),Pc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function pl(e){e.flags|=4}function ml(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 eo=Xa,Ja}}else e.flags&=-16777217}function hl(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 eo=Xa,Ja}}function gl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:pt(),e.lanes|=t,pd|=t)}function _l(e,t){if(!H)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 vl(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 yl(e,t,n){var r=t.pendingProps;switch($i(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vl(t),null;case 1:return vl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_a(ka),Oe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(la(t)?pl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,da())),vl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(pl(t),o===null?(vl(t),ml(t,a,null,r,n)):(vl(t),hl(t,o))):o?o===e.memoizedState?(vl(t),t.flags&=-16777217):(pl(t),vl(t),hl(t,o)):(e=e.memoizedProps,e!==r&&pl(t),vl(t),ml(t,a,e,r,n)),null;case 27:if(Ae(t),n=Te.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&pl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return vl(t),t.subtreeFlags&=-33554433,null}e=Ce.current,la(t)?sa(t,e):(e=vm(a,r,n),t.stateNode=e,pl(t))}return vl(t),t.subtreeFlags&=-33554433,null;case 5:if(Ae(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&pl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return vl(t),t.subtreeFlags&=-33554433,null}if(o=Ce.current,la(t))sa(t,o);else{var s=pp(Te.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[wt]=t,o[Tt]=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(op(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&&pl(t)}}return vl(t),t.subtreeFlags&=-33554433,ml(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&pl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Te.current,la(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ta,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[wt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||rp(e.nodeValue,n)),e||oa(t,!0)}else e=pp(e).createTextNode(r),e[wt]=t,t.stateNode=e}return vl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=la(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[wt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vl(t),e=!1}else n=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Fo(t),t):(Fo(t),null);if(t.flags&128)throw Error(i(558))}return vl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=la(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[wt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vl(t),a=!1}else a=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Fo(t),t):(Fo(t),null)}return Fo(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),gl(t,t.updateQueue),vl(t),null);case 4:return Oe(),e===null&&qf(t.stateNode.containerInfo),t.flags|=67108864,vl(t),null;case 10:return _a(t.type),vl(t),null;case 19:if(Ro(t),r=t.memoizedState,r===null)return vl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)_l(r,!1);else{if(q!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=zo(e),o!==null){for(t.flags|=128,_l(r,!1),e=o.updateQueue,t.updateQueue=e,gl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ni(n,e),n=n.sibling;return Lo(t,Io.current&1|2),H&&Xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ue()>yd&&(t.flags|=128,a=!0,_l(r,!1),t.lanes=4194304)}}else{if(!a){if(e=zo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,gl(t,e),_l(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!H)return vl(t),null}else 2*Ue()-r.renderingStartTime>yd&&n!==536870912&&(t.flags|=128,a=!0,_l(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=Ue(),e.sibling=null,o=Io.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||H?Lo(t,o):(n=o,Se(ko,t),Se(Io,n),Ao===null&&(Ao=t)),H&&Xi(t,r.treeForkCount),e}return vl(t),null;case 22:case 23:return Fo(t),Oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(vl(t),t.subtreeFlags&6&&(t.flags|=8192)):vl(t),n=t.updateQueue,n!==null&&gl(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&&xe(Ua),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_a(ka),vl(t),null;case 25:return null;case 30:return t.flags|=33554432,vl(t),null}throw Error(i(156,t.tag))}function bl(e,t){switch($i(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _a(ka),Oe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ae(t),null;case 31:if(t.memoizedState!==null){if(Fo(t),t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Fo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ro(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 Oe(),null;case 10:return _a(t.type),null;case 22:case 23:return Fo(t),Oo(),e!==null&&xe(Ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _a(ka),null;case 25:return null;default:return null}}function xl(e,t){switch($i(t),t.tag){case 3:_a(ka),Oe();break;case 26:case 27:case 5:Ae(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&Fo(t);break;case 13:Fo(t);break;case 19:Ro(t);break;case 10:_a(t.type);break;case 22:case 23:Fo(t),Oo(),e!==null&&xe(Ua);break;case 24:_a(ka)}}function Sl(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 Cl(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 wl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Co(t,n)}catch(t){gf(e,e.return,t)}}}function Tl(e,t,n){n.props=Sc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){gf(e,t,n)}}function El(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=hi(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);m(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 Dl(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 Ol(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 kl(e){for(var t=e.return;t!==null&&(Ml(t)&&rm(e.stateNode,t.stateNode),!jl(t));)t=t.return}function Al(e){for(var t=e.return;t!==null&&(Ml(t)&&im(e.stateNode,t.stateNode),!jl(t));)t=t.return}function jl(e){return e.tag===5||e.tag===3||e.tag===27}function Ml(e){return e&&e.tag===7&&e.stateNode!==null}function Nl(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 Pl(e,t,n){try{var r=e.stateNode;cp(r,e.type,n,t),r[Tt]=t}catch(t){gf(e,e.return,t)}}function Fl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tp(e.type)||e.tag===4}function Il(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Fl(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 Ll(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=_n)),Ol(e,r),R=!0;else if(i!==4&&(i===27&&(Ol(e,r),r=null,Tp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Ll(e,t,n,r),e=e.sibling;e!==null;)Ll(e,t,n,r),e=e.sibling}function Rl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Ol(e,r),R=!0;else if(i!==4&&(i===27&&(Ol(e,r),r=null,Tp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Rl(e,t,n,r),e=e.sibling;e!==null;)Rl(e,t,n,r),e=e.sibling}function zl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);op(t,r,n),t[wt]=e,t[Tt]=n}catch(t){gf(e,e.return,t)}}var Bl=!1,Vl=null;function Hl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Bl=!0)}var Ul=null;function Wl(){var e=Ul;return Ul=null,e}var Gl=0;function Kl(e,t,n,r,i){return Gl=0,ql(e.child,t,n,r,i)}function ql(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);Bl=!0,Op(o,Gl===0?t:t+`_`+Gl,n),Gl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||ql(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Jl(e,t){for(;e!==null;)e.tag===5?kp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Jl(e.child,t)),e=e.sibling}function Yl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Yl(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=_i(t.default,t.share),t!==`none`&&(Kl(e,n,t,null,!1)||Jl(e.child,!1))}e=e.sibling}}function Xl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=hi(r,n),a=_i(r.default,n.paired?r.share:r.enter);a===`none`?Yl(e):Kl(e,i,a,null,!1)?(Yl(e),n.paired||t||Id(e,r.onEnter)):Jl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e,t),e=e.sibling;else Yl(e)}function Zl(e){if(Vl!==null&&Vl.size!==0){var t=Vl;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=_i(n.default,n.share);if(a!==`none`&&(Kl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Id(e,n.onShare)):Jl(e.child,!1)),t.delete(r),t.size===0)break}}}Zl(e)}e=e.sibling}}}function Ql(e){if(e.tag===30){var t=e.memoizedProps,n=hi(t,e.stateNode),r=Vl===null?void 0:Vl.get(n),i=_i(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Kl(e,n,i,null,!1)?r===void 0?Id(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Vl.delete(n),Id(e,t.onShare)):Jl(e.child,!1)),Vl!==null&&Zl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Ql(e),e=e.sibling;else Vl!==null&&Zl(e)}function $l(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=hi(t,e.stateNode);t=_i(t.default,t.update),e.flags&=-5,t!==`none`&&Kl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&$l(e);e=e.sibling}}function eu(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,Jl(e.child,!1))}eu(e)}e=e.sibling}}function tu(e){if(e.tag===30)e.stateNode.paired=null,Jl(e.child,!1),eu(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)tu(e),e=e.sibling;else eu(e)}function nu(e){for(e=e.child;e!==null;)e.tag===30?Jl(e.child,!1):e.subtreeFlags&33554432&&nu(e),e=e.sibling}function ru(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Gl<a.length){var l=a[Gl],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,Gl===0?n:n+`_`+Gl,i),s&&e.flags&4||(Ul===null&&(Ul=[]),Ul.push(c,Gl===0?r:r+`_`+Gl,t.memoizedProps)),Gl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:ru(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function iu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=hi(n,r),a=_i(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;Gl=0,i=ru(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Id(e,n.onUpdate))}else e.subtreeFlags&33554432&&iu(e,t);e=e.sibling}}var au=!1,ou=!1,su=!1,cu=!1,lu=typeof WeakSet==`function`?WeakSet:Set,uu=null,du=!1,fu=!1,pu=!1,mu=!1;function hu(e,t,n){if(e=e.containerInfo,dp=_h,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(fp={focusedElem:e,selectionRange:r},_h=!1,n=(n&335544064)===n,uu=t,t=n?9270:1024;uu!==null;){if(e=uu,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&&Hl(e),gu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Ql(r),gu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Hl(e),gu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,uu=r):(n&&$l(e),gu(n))}}Vl=null}function gu(e){for(;uu!==null;){var t=uu,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=Sc(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=hi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=_i(a.default,a.update),a!==`none`&&Kl(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,uu=r;break}uu=t.return}}function _u(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Lu(e,n),r&4&&Sl(5,n);break;case 1:if(Lu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){gf(n,n.return,e)}else{var i=Sc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){gf(n,n.return,e)}}}r&64&&wl(n),r&512&&El(n,n.return);break;case 3:if(Lu(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{Co(e,t)}catch(e){gf(n,n.return,e)}}break;case 27:t===null&&r&4&&zl(n);case 26:case 5:Lu(e,n),t===null&&r&4&&Nl(n),r&512&&El(n,n.return);break;case 12:Lu(e,n);break;case 31:Lu(e,n),r&4&&Eu(e,n);break;case 13:Lu(e,n),r&4&&Du(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=bf.bind(null,n),dm(e,n))));break;case 22:if(r=n.memoizedState!==null||au,!r){var a=t!==null&&t.memoizedState!==null||ou;t=au,i=ou,au=r,(ou=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),zu(e,n,r)):Lu(e,n),au=t,ou=i}break;case 30:Lu(e,n),r&512&&El(n,n.return);break;case 7:r&512&&El(n,n.return);default:Lu(e,n)}}function vu(e,t){for(e=e.child;e!==null;)yu(e,t),e=e.sibling}function yu(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)}bu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,R=!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&&vu(e,t);break;default:vu(e,t)}}function bu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:yu(n,r);break a;case 22:n.memoizedState===null&&bu(n,r);break a;default:bu(n,r)}}e=e.sibling}}function xu(e){var t=e.alternate;t!==null&&(e.alternate=null,xu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Mt(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 Su=null,Cu=!1;function wu(e,t,n){for(n=n.child;n!==null;)Tu(e,t,n),n=n.sibling}function Tu(e,t,n){if($e&&typeof $e.onCommitFiberUnmount==`function`)try{$e.onCommitFiberUnmount(Qe,n)}catch{}switch(n.tag){case 26:ou||Dl(n,t),wu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ou&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ou||Dl(n,t),Al(n);var r=Su,i=Cu;Tp(n.type)&&(Su=n.stateNode,Cu=!1),wu(e,t,n),ym(n.stateNode,n.type,n.memoizedProps),Su=r,Cu=i;break;case 5:ou||Dl(n,t),Al(n);case 6:if(n.tag===6&&Al(n),r=Su,i=Cu,Su=null,wu(e,t,n),Su=r,Cu=i,Su!==null){if(Cu)try{(Su.nodeType===9?Su.body:Su.nodeName===`HTML`?Su.ownerDocument.body:Su).removeChild(n.stateNode),R=!0}catch(e){gf(n,t,e)}else try{Su.removeChild(n.stateNode),R=!0}catch(e){gf(n,t,e)}}break;case 18:Su!==null&&(Cu?(e=Su,Ep(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Uh(e)):Ep(Su,n.stateNode));break;case 4:r=Su,i=Cu,Su=n.stateNode.containerInfo,Cu=!0,wu(e,t,n),Su=r,Cu=i;break;case 0:case 11:case 14:case 15:Cl(2,n,t),ou||Cl(4,n,t),wu(e,t,n);break;case 1:ou||(Dl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Tl(n,t,r)),wu(e,t,n);break;case 21:wu(e,t,n);break;case 22:ou=(r=ou)||n.memoizedState!==null,wu(e,t,n),ou=r;break;case 30:Dl(n,t),wu(e,t,n);break;case 7:ou||Dl(n,t),wu(e,t,n);break;default:wu(e,t,n)}}function Eu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Uh(e)}catch(e){gf(t,t.return,e)}}}function Du(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Uh(e)}catch(e){gf(t,t.return,e)}}function Ou(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new lu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lu),t;default:throw Error(i(435,e.tag))}}function ku(e,t){var n=Ou(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=xf.bind(null,e,t);t.then(r,r)}})}function Au(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)){Su=l.stateNode,Cu=!1;break a}break;case 5:Su=l.stateNode,Cu=!1;break a;case 3:case 4:Su=l.stateNode.containerInfo,Cu=!0;break a}l=l.return}if(Su===null)throw Error(i(160));Tu(s,c,o),Su=null,Cu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Mu(t,e,n),t=t.sibling}var ju=null;function Mu(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}Au(t,e,n),Nu(e),a&4&&(Cl(3,e,e.return),Sl(3,e),Cl(5,e,e.return));break;case 1:Au(t,e,n),Nu(e),a&512&&(ou||r===null||Dl(r,r.return)),a&64&&au&&(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=ju,Au(t,e,n),Nu(e),a&512&&(ou||r===null||Dl(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(au)e.stateNode=gp(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[At]||r[wt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),op(r,t,n),r[wt]=e,Lt(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),op(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),op(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[wt]=e,Lt(r),t=r}e.stateNode=t}}else au||Jm(o,e.type,e.stateNode)}else e.stateNode=Hm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Pl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||ou||t.parentNode.removeChild(t)):a.count--,n===null?au||Jm(o,e.type,e.stateNode):Hm(o,n,e.memoizedProps))}break;case 27:Au(t,e,n),Nu(e),a&512&&(ou||r===null||Dl(r,r.return)),r!==null&&a&4&&Pl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=su,su=!1,Au(t,e,n),su=o,Nu(e),a&512&&(ou||r===null||Dl(r,r.return)),e.flags&32){t=e.stateNode;try{ln(t,``),R=!0}catch(t){gf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Pl(e,t,r===null?t:r.memoizedProps)),a&1024&&(cu=!0);break;case 6:if(Au(t,e,n),Nu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,R=!0}catch(t){gf(e,e.return,t)}}break;case 3:if(R=!1,Km=null,o=ju,ju=Sm(t.containerInfo),Au(t,e,n),ju=o,Nu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Uh(t.containerInfo)}catch(t){gf(e,e.return,t)}cu&&(cu=!1,Pu(e)),R=!1;break;case 4:a=su,su=au,r=qt(),o=ju,ju=Sm(e.stateNode.containerInfo),Au(t,e,n),Nu(e),ju=o,R&&fu&&(pu=!0),R=r,su=a;break;case 12:Au(t,e,n),Nu(e);break;case 31:Au(t,e,n),Nu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 13:Au(t,e,n),Nu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(_d=Ue()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=au,l=ou,u=su;au=c||o,su=u||o,ou=l||s,Au(t,e,n),ou=l,su=u,au=c,Nu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||au||ou||(t=s||ou,n=au,r=ou,au=o||au,ou=t,Ru(e,2),au=n,ou=r),!o&&su||vu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,ku(e,n))));break;case 19:Au(t,e,n),Nu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 30:a&512&&(ou||r===null||Dl(r,r.return)),a=qt(),o=fu,s=(n&335544064)===n,c=e.memoizedProps,fu=s&&_i(c.default,c.update)!==`none`,Au(t,e,n),Nu(e),s&&r!==null&&R&&(e.flags|=4),fu=o,R=a;break;case 21:break;case 7:a&512&&(ou||r===null||Dl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Au(t,e,n),Nu(e)}}function Nu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Fl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Ml(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(jl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Rl(e,Il(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(ln(l,``),n.flags&=-33),Rl(e,Il(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Ll(e,Il(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 Pu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Pu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,_h=!0,t.reset(),_h=!1),e=e.sibling}}function Fu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Iu(t,e),t=t.sibling;else iu(t,!1)}function Iu(e,t){var n=e.alternate;if(n===null)Xl(e,!1);else switch(e.tag){case 3:if(mu=du=!1,Wl(),Fu(t,e),!du&&!pu){if(e=Ul,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`})),mu=!0}Ul=null;break;case 5:Fu(t,e);break;case 4:r=du,du=!1,Fu(t,e),du&&(pu=!0),du=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Fu(t,e):Xl(e,!1));break;case 30:r=du,i=Wl(),du=!1,Fu(t,e),du&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=hi(a,o),o=hi(n.memoizedProps,o);var s=_i(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Gl=0,t=ru(e,n,t,o,s,a,!0),Gl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Id(e,e.memoizedProps.onUpdate),Ul=i):i!==null&&(i.push.apply(i,Ul),Ul=i),du=e.flags&32?!0:r;break;default:Fu(t,e)}}function Lu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_u(e,t.alternate,t),t=t.sibling}function Ru(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Cl(4,n,n.return),Ru(n,r);break;case 1:Dl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Tl(n,n.return,i),Ru(n,r);break;case 27:r&2&&ym(n.stateNode,n.type,n.memoizedProps);case 5:Dl(n,n.return),n.tag!==5&&n.tag!==27||Al(n),Ru(n,r);break;case 6:Al(n);break;case 26:Dl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||ou||i.parentNode.removeChild(i),Ru(n,r);break;case 22:n.memoizedState===null&&Ru(n,r);break;case 30:Dl(n,n.return),Ru(n,r);break;case 7:Dl(n,n.return);default:Ru(n,r)}e=e.sibling}}function zu(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:zu(i,a,n),Sl(4,a);break;case 1:if(zu(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++)So(l[i],c)}catch(e){gf(r,r.return,e)}}s&&o&64&&wl(a),El(a,a.return);break;case 27:n&2&&zl(a);case 5:a.tag!==5&&a.tag!==27||kl(a),zu(i,a,n),s&&r===null&&o&4&&Nl(a),El(a,a.return);break;case 6:kl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||au||Jm(Sm(c.ownerDocument),a.type,c),zu(i,a,n),s&&r===null&&o&4&&Nl(a),El(a,a.return);break;case 12:zu(i,a,n);break;case 31:zu(i,a,n),s&&o&4&&Eu(i,a);break;case 13:zu(i,a,n),s&&o&4&&Du(i,a);break;case 22:a.memoizedState===null&&zu(i,a,n),El(a,a.return);break;case 30:zu(i,a,n),El(a,a.return);break;case 7:El(a,a.return);default:zu(i,a,n)}t=t.sibling}}function Bu(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&&ja(n))}function Vu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ja(e))}function Hu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Uu(e,t,n,r),t=t.sibling;else i&&nu(t)}function Uu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&tu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Hu(e,t,n,r),a&2048&&Sl(9,t);break;case 1:Hu(e,t,n,r);break;case 3:Hu(e,t,n,r),i&&mu&&(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&&ja(a)));break;case 12:if(a&2048){Hu(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 Hu(e,t,n,r);break;case 31:Hu(e,t,n,r);break;case 13:Hu(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&&tu(t),o._visibility&2?Hu(e,t,n,r):(o._visibility|=2,Wu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&tu(s),o._visibility&2?Hu(e,t,n,r):Gu(e,t)),a&2048&&Bu(s,t);break;case 24:Hu(e,t,n,r),a&2048&&Vu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Jl(a.child,!0),Jl(t.child,!0))),Hu(e,t,n,r);break;default:Hu(e,t,n,r)}}function Wu(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:Wu(a,o,s,c,i),Sl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Wu(a,o,s,c,i)):u._visibility&2?Wu(a,o,s,c,i):Gu(a,o),i&&l&2048&&Bu(o.alternate,o);break;case 24:Wu(a,o,s,c,i),i&&l&2048&&Vu(o.alternate,o);break;default:Wu(a,o,s,c,i)}t=t.sibling}}function Gu(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:Gu(n,r),i&2048&&Bu(r.alternate,r);break;case 24:Gu(n,r),i&2048&&Vu(r.alternate,r);break;default:Gu(n,r)}t=t.sibling}}var Ku=8192;function qu(e,t,n){if(e.subtreeFlags&Ku)for(e=e.child;e!==null;)Ju(e,t,n),e=e.sibling}function Ju(e,t,n){switch(e.tag){case 26:qu(e,t,n),e.flags&Ku&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&$m(n,e)):eh(n,ju,e.memoizedState,e.memoizedProps));break;case 5:qu(e,t,n),e.flags&Ku&&(e=e.stateNode,(t&335544128)===t&&$m(n,e));break;case 3:case 4:var r=ju;ju=Sm(e.stateNode.containerInfo),qu(e,t,n),ju=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ku,Ku=16777216,qu(e,t,n),Ku=r):qu(e,t,n));break;case 30:if((e.flags&Ku)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Vl===null&&(Vl=new Map),Vl.set(r,i)}qu(e,t,n);break;default:qu(e,t,n)}}function Yu(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 Xu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];uu=r,$u(r,e)}Yu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zu(e),e=e.sibling}function Zu(e){switch(e.tag){case 0:case 11:case 15:Xu(e),e.flags&2048&&Cl(9,e,e.return);break;case 3:Xu(e);break;case 12:Xu(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)):Xu(e);break;default:Xu(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];uu=r,$u(r,e)}Yu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Cl(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 $u(e,t){for(;uu!==null;){var n=uu;switch(n.tag){case 0:case 11:case 15:Cl(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:ja(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,uu=r;else a:for(n=e;uu!==null;){r=uu;var i=r.sibling,a=r.return;if(xu(r),r===n){uu=null;break a}if(i!==null){i.return=a,uu=i;break a}uu=a}}}var ed={getCacheForType:function(e){var t=Ca(ka),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ca(ka).controller.signal}},td=typeof WeakMap==`function`?WeakMap:Map,W=0,nd=null,G=null,K=0,rd=0,id=null,ad=!1,od=!1,sd=!1,cd=0,q=0,ld=0,ud=0,dd=0,fd=0,pd=0,md=null,hd=null,gd=!1,_d=0,vd=0,yd=1/0,bd=null,xd=null,Sd=0,Cd=null,wd=null,Td=0,Ed=0,Dd=null,Od=null,kd=null,Ad=null,jd=null,Md=0,Nd=null;function Pd(){return W&2&&K!==0?K&-K:P.T===null?St():Lf()}function Fd(){if(fd===0){if(!(K&536870912)||H){var e=ot;ot<<=1,!(ot&3932160)&&(ot=262144),fd=e}else fd=536870912}return e=ko.current,e!==null&&(e.flags|=32),fd}function Id(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Lp(hi(e.memoizedProps,n))),Ad===null&&(Ad=[]),Ad.push(t.bind(null,r))}}function Ld(e,t,n){(e===nd&&(rd===2||rd===9)||e.cancelPendingCommit!==null)&&(Ud(e,0),Vd(e,K,fd,!1)),ht(e,n),(!(W&2)||e!==nd)&&(e===nd&&(!(W&2)&&(ud|=n),q===4&&Vd(e,K,fd,!1)),kf(e))}function Rd(e,t,n){if(W&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||ut(e,t),a=r?Zd(e,t):Yd(e,t,!0),o=r;do{if(a===0){od&&!r&&Vd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Bd(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=md;var l=c.current.memoizedState.isDehydrated;if(l&&(Ud(c,s).flags|=256),s=Yd(c,s,!1),s!==2&&s!==6){if(sd&&!l){c.errorRecoveryDisabledLanes|=o,ud|=o,a=4;break a}o=hd,hd=a,o!==null&&(hd===null?hd=o:hd.push.apply(hd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Ud(e,0),Vd(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:Vd(r,t,fd,!ad);break a;case 2:hd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=_d+300-Ue(),10<a)){if(Vd(r,t,fd,!ad),lt(r,0,!0)!==0)break a;Td=t,r.timeoutHandle=yp(zd.bind(null,r,n,hd,bd,gd,t,fd,ud,pd,ad,o,`Throttled`,-0,0),a);break a}zd(r,n,hd,bd,gd,t,fd,ud,pd,ad,o,null,-0,0)}break}}while(1);kf(e)}function zd(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:_n},Vl=null,Ju(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?_d-Ue():(a&4194048)===a?vd-Ue():0,m=nh(d,m),m!==null)?(Td=a,e.cancelPendingCommit=m(af.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Vd(e,a,o,!l)):af(e,t,a,n,r,i,o,s,c,l,u,d)}function Bd(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 Vd(e,t,n,r){t=dt(e,t),t&=~dd,t&=~ud,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-tt(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&_t(e,n,t)}function J(){return W&6?!0:(Af(0,!1),!1)}function Hd(){if(G!==null){if(rd===0)var e=G.return;else e=G,ha=ma=null,is(e),ro=null,io=0,e=G;for(;e!==null;)xl(e.alternate,e),e=e.return;G=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()),Td=0,Hd(),nd=e,G=n=Mi(e.current,null),K=t,rd=0,id=null,ad=!1,od=ut(e,t),sd=!1,pd=fd=dd=ud=ld=q=0,hd=md=null,gd=!1,cd=dt(e,t),Si(),n}function Wd(e,t){U=null,P.H=mc,t===qa||t===Ya?(t=to(),rd=3):t===Ja?(t=to(),rd=4):rd=t===Mc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,id=t,G===null&&(q=1,Ec(e,Bi(t,e.current)))}function Gd(){var e=ko.current;return e===null?!0:(K&4194048)===K?Ao===null:(K&62914560)===K||K&536870912?e===Ao:!1}function Kd(){var e=P.H;return P.H=mc,e===null?mc:e}function qd(){var e=P.A;return P.A=ed,e}function Jd(){q=4,ad||(K&4194048)!==K&&ko.current!==null||(od=!0),!(ld&134217727)&&!(ud&134217727)||nd===null||Vd(nd,K,fd,!1)}function Yd(e,t,n){var r=W;W|=2;var i=Kd(),a=qd();(nd!==e||K!==t)&&(bd=null,Ud(e,t)),t=!1;var o=q;a:do try{if(rd!==0&&G!==null){var s=G,c=id;switch(rd){case 8:Hd(),o=6;break a;case 3:case 2:case 9:case 6:ko.current===null&&(t=!0);var l=rd;if(rd=0,id=null,tf(e,s,c,l),n&&od){o=0;break a}break;default:l=rd,rd=0,id=null,tf(e,s,c,l)}}Xd(),o=q;break}catch(t){Wd(e,t)}while(1);return t&&e.shellSuspendCounter++,ha=ma=null,W=r,P.H=i,P.A=a,G===null&&(nd=null,K=0,Si()),o}function Xd(){for(;G!==null;)$d(G)}function Zd(e,t){var n=W;W|=2;var r=Kd(),a=qd();nd!==e||K!==t?(bd=null,yd=Ue()+500,Ud(e,t)):od=ut(e,t);a:do try{if(rd!==0&&G!==null){t=G;var o=id;b:switch(rd){case 1:rd=0,id=null,tf(e,t,o,1);break;case 2:case 9:if(Za(o)){rd=0,id=null,ef(t);break}t=function(){rd!==2&&rd!==9||nd!==e||(rd=7),kf(e)},o.then(t,t);break a;case 3:rd=7;break a;case 4:rd=5;break a;case 7:Za(o)?(rd=0,id=null,ef(t)):(rd=0,id=null,tf(e,t,o,7));break;case 5:var s=null;switch(G.tag){case 26:s=G.memoizedState;case 5:case 27:var c=G;if(s?Zm(s):c.stateNode.complete){rd=0,id=null;var l=c.sibling;if(l!==null)G=l;else{var u=c.return;u===null?G=null:(G=u,nf(u))}break b}}rd=0,id=null,tf(e,t,o,5);break;case 6:rd=0,id=null,tf(e,t,o,6);break;case 8:Hd(),q=6;break a;default:throw Error(i(462))}}Qd();break}catch(t){Wd(e,t)}while(1);return ha=ma=null,P.H=r,P.A=a,W=n,G===null?(nd=null,K=0,Si(),q):0}function Qd(){for(;G!==null&&!Ve();)$d(G)}function $d(e){var t=fl(e.alternate,e,cd);e.memoizedProps=e.pendingProps,t===null?nf(e):G=t}function ef(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Kc(n,t,t.pendingProps,t.type,void 0,K);break;case 11:t=Kc(n,t,t.pendingProps,t.type.render,t.ref,K);break;case 5:is(t);var r=t;r===ta&&(H?(ca(r),r.tag===5&&r.stateNode!=null&&(na=r.stateNode)):(ca(r),H=!0));default:xl(n,t),t=G=Ni(t,cd),t=fl(n,t,cd)}e.memoizedProps=e.pendingProps,t===null?nf(e):G=t}function tf(e,t,n,r){ha=ma=null,is(t),ro=null,io=0;var i=t.return;try{if(jc(e,i,t,n,K)){q=1,Ec(e,Bi(n,e.current)),G=null;return}}catch(t){if(i!==null)throw G=i,t;q=1,Ec(e,Bi(n,e.current)),G=null;return}t.flags&32768?(H||r===1?e=!0:od||K&536870912?e=!1:(ad=e=!0,(r===2||r===9||r===3||r===6)&&(r=ko.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,ad);return}e=t.return;var n=yl(t.alternate,t,cd);if(n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);q===0&&(q=5)}function rf(e,t){do{var n=bl(e.alternate,e);if(n!==null){n.flags&=32767,G=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){G=e;return}G=e=n}while(e!==null);q=6,G=null}function af(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do pf();while(Sd!==0);if(W&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===nd&&(G=nd=null,K=0),wd=t,Cd=e,Td=n,Dd=a,Od=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(Ed=s,s|=xi,gt(e,n,s,r,i,a),Ad=null,(n&335544064)===n?(jd=Pa(e),r=10262):(jd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Sf(qe,function(){return mf(),null})):(e.callbackNode=null,e.callbackPriority=0),Bl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=P.T,P.T=null,i=F.p,F.p=2,a=W,W|=4;try{hu(e,t,n)}finally{W=a,F.p=i,P.T=r}}Sd=1,Bl?kd=Fp(o,e.containerInfo,jd,lf,uf,cf,df,mf,sf,null,null):(lf(),uf(),df())}function sf(e){if(Sd!==0){var t=Cd.onRecoverableError;t(e,{componentStack:null})}}function cf(){Sd===3&&(Sd=0,Iu(wd,Cd),Sd=4)}function lf(){if(Sd===1){Sd=0;var e=Cd,t=wd,n=Td,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=P.T,P.T=null;var i=F.p;F.p=2;var a=W;W|=4;try{fu=pu=!1,Mu(t,e,n),n=fp;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}}_h=!!dp,fp=dp=null}finally{W=a,F.p=i,P.T=r}}e.current=t,Sd=2}}function uf(){if(Sd===2){Sd=0;var e=Cd,t=wd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=W;W|=4;try{_u(e,t.alternate,t)}finally{W=i,F.p=r,P.T=n}}Sd=3}}function df(){if(Sd===4||Sd===3){Sd=0;var e=kd;kd=null,He();var t=Cd,n=wd,r=Td,i=Od,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Sd=5:(Sd=0,wd=Cd=null,ff(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(xd=null),xt(r),n=n.stateNode,$e&&typeof $e.onCommitFiberRoot==`function`)try{$e.onCommitFiberRoot(Qe,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=P.T,a=F.p,F.p=2,P.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{P.T=n,F.p=a}}if(i=Ad,o=jd,jd=null,i!==null&&(Ad=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);Td&3&&pf(),kf(t),a=t.pendingLanes,r&261930&&a&42?t===Nd?Md++:(Md=0,Nd=t):(Md=0,Nd=null),Af(0,!1)}}function ff(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ja(t)))}function pf(){return kd!==null&&(kd.skipTransition(),kd=null),lf(),uf(),df(),mf()}function mf(){if(Sd!==5)return!1;var e=Cd,t=Ed;Ed=0;var n=xt(Td),r=P.T,a=F.p;try{F.p=32>n?32:n,P.T=null,n=Dd,Dd=null;var o=Cd,s=Td;if(Sd=0,wd=Cd=null,Td=0,W&6)throw Error(i(331));var c=W;if(W|=4,Zu(o.current),Uu(o,o.current,s,n),W=c,Af(0,!1),$e&&typeof $e.onPostCommitFiberRoot==`function`)try{$e.onPostCommitFiberRoot(Qe,o)}catch{}return!0}finally{F.p=a,P.T=r,ff(e,t)}}function hf(e,t,n){t=Bi(n,t),t=Oc(e.stateNode,t,2),e=go(e,t,2),e!==null&&(ht(e,2),kf(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`&&(xd===null||!xd.has(r))){e=Bi(n,e),n=kc(2),r=go(t,n,2),r!==null&&(Ac(n,r,t,e),ht(r,2),kf(r));break}}t=t.return}}function _f(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new td;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)||(sd=!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,nd===e&&(K&n)===n&&(q===4||q===3&&(K&62914560)===K&&300>Ue()-_d?W&2?dd|=n:Ud(e,0):dd|=n,pd===K&&(pd=0)),kf(e)}function yf(e,t){t===0&&(t=pt()),e=Ti(e,t),e!==null&&(ht(e,t),kf(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 ze(e,t)}var Cf=null,wf=null,Tf=!1,Ef=!1,Df=!1,Of=0;function kf(e){e!==wf&&e.next===null&&(wf===null?Cf=wf=e:wf=wf.next=e),Ef=!0,Tf||(Tf=!0,If())}function Af(e,t){if(!Df&&Ef){Df=!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-tt(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Ff(r,a))}else a=K,a=lt(r,r===nd?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ut(r,a)||(n=!0,Ff(r,a))}r=r.next}while(n);Df=!1}}function jf(){Mf()}function Mf(){Ef=Tf=!1;var e=0;Of!==0&&X()&&(e=Of);for(var t=Ue(),n=null,r=Cf;r!==null;){var i=r.next,a=Nf(r,t);a===0?(r.next=null,n===null?Cf=i:n.next=i,i===null&&(wf=n)):(n=r,(e!==0||a&3)&&(Ef=!0)),r=i}Sd!==0&&Sd!==5||Af(e,!1),Of!==0&&(Of=0)}function Nf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-tt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ft(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=nd,n=K,n=lt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(rd===2||rd===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Be(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ut(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Be(r),xt(n)){case 2:case 8:n=Ke;break;case 32:n=qe;break;case 268435456:n=Ye;break;default:n=qe}return r=Pf.bind(null,e),n=ze(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Be(r),e.callbackPriority=2,e.callbackNode=null,2}function Pf(e,t){if(Sd!==0&&Sd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(pf()&&e.callbackNode!==n)return null;var r=K;return r=lt(e,e===nd?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Rd(e,r,t),Nf(e,Ue()),e.callbackNode!=null&&e.callbackNode===n?Pf.bind(null,e):null)}function Ff(e,t){if(pf())return null;Rd(e,t,!0)}function If(){Cp(function(){W&6?ze(Ge,jf):Mf()})}function Lf(){if(Of===0){var e=La;e===0&&(e=at,at<<=1,!(at&261888)&&(at=256)),Of=e}return Of}function Rf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:gn(e)}function zf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Rf((i[Tt]||null).action),o=r.submitter;o&&(t=(t=o[Tt]||null)?Rf(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(Of!==0){var e=new FormData(i,o);ec(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),ec(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Bf=0;Bf<fi.length;Bf++){var Vf=fi[Bf];pi(Vf.toLowerCase(),`on`+(Vf[0].toUpperCase()+Vf.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`),Ht(`onMouseEnter`,[`mouseout`,`mouseover`]),Ht(`onMouseLeave`,[`mouseout`,`mouseover`]),Ht(`onPointerEnter`,[`pointerout`,`pointerover`]),Ht(`onPointerLeave`,[`pointerout`,`pointerover`]),Vt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Vt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Vt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Vt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Vt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Vt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Hf=`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(` `),Uf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Hf));function Wf(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){vi(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){vi(e)}i.currentTarget=null,a=c}}}}function Y(e,t){var n=t[Dt];n===void 0&&(n=t[Dt]=new Set);var r=e+`__bubble`;n.has(r)||(Jf(t,e,2,!1),n.add(r))}function Gf(e,t,n){var r=0;t&&(r|=4),Jf(n,e,r,t)}var Kf=`_reactListening`+Math.random().toString(36).slice(2);function qf(e){if(!e[Kf]){e[Kf]=!0,zt.forEach(function(t){t!==`selectionchange`&&(Uf.has(t)||Gf(t,!1,e),Gf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kf]||(t[Kf]=!0,Gf(`selectionchange`,!1,t))}}function Jf(e,t,n,r){switch(wh(t)){case 2:var i=vh;break;case 8:i=yh;break;default:i=bh}n=i.bind(null,t,n,e),i=void 0,!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 Yf(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=Nt(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}wn(function(){var r=a,i=yn(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=V(m,p),g!=null&&d.push(Xf(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!==vn&&(u=n.relatedTarget||n.fromElement)&&(Nt(u)||u[Et]))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?Nt(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:Ft(c),h=l==null?u:Ft(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Nt(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,Qf):null,c!==null&&$f(s,u,c,d,!1),l!==null&&f!==null&&$f(s,f,l,d,!0)))}a:{if(c=r?Ft(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&&pn(r.elementType)&&(_=Dr):_=Ir;if(_&&=_(e,r)){Sr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Ft(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=Zf(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=Zf(r,`onBeforeInput`),0<b.length&&(v=new Yn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),zf(s,e,r,n,i)}Wf(s,t)})}function Xf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zf(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=V(e,n),i!=null&&r.unshift(Xf(e,i,a)),i=V(e,t),i!=null&&r.push(Xf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Qf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $f(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=V(n,a),l!=null&&o.unshift(Xf(n,l,c))):i||(l=V(n,a),l!=null&&o.push(Xf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ep=/\r\n?/g,tp=/\u0000|\uFFFD/g;function np(e){return(typeof e==`string`?e:``+e).replace(ep,`
10
- `).replace(tp,``)}function rp(e,t){return t=np(t),np(e)===t}function ip(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||ln(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&ln(e,``+r);else return;break;case`className`:Jt(e,`class`,r);break;case`tabIndex`:Jt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Jt(e,n,r);break;case`style`:fn(e,r,o);return;case`data`:if(t!==`object`){Jt(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=gn(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`&&ip(e,t,`name`,a.name,a,null),ip(e,t,`formEncType`,a.formEncType,a,null),ip(e,t,`formMethod`,a.formMethod,a,null),ip(e,t,`formTarget`,a.formTarget,a,null)):(ip(e,t,`encType`,a.encType,a,null),ip(e,t,`method`,a.method,a,null),ip(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=gn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=_n);return;case`onScroll`:r!=null&&Y(`scroll`,e);return;case`onScrollEnd`:r!=null&&Y(`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=gn(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`:Y(`beforetoggle`,e),Y(`toggle`,e),z(e,`popover`,r);break;case`xlinkActuate`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:z(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=mn.get(n)||n,z(e,n,r);else return}R=!0}function ap(e,t,n,r,a,o){switch(n){case`style`:fn(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`)ln(e,r);else if(typeof r==`number`||typeof r==`bigint`)ln(e,``+r);else return;break;case`onScroll`:r!=null&&Y(`scroll`,e);return;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=_n);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Bt.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[Tt]||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}R=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):z(e,n,r)}return}R=!0}function op(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Y(`error`,e),Y(`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:ip(e,t,o,s,n,null)}}a&&ip(e,t,`srcSet`,n.srcSet,n,null),r&&ip(e,t,`src`,n.src,n,null);return;case`input`:Y(`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:ip(e,t,r,d,n,null)}}rn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Y(`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:ip(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&on(e,!!r,n,!0):on(e,!!r,t,!1);return;case`textarea`:for(s in Y(`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:ip(e,t,s,c,n,null)}cn(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:ip(e,t,l,r,n,null)}return;case`dialog`:Y(`beforetoggle`,e),Y(`toggle`,e),Y(`cancel`,e),Y(`close`,e);break;case`iframe`:case`object`:Y(`load`,e);break;case`video`:case`audio`:for(r=0;r<Hf.length;r++)Y(Hf[r],e);break;case`image`:Y(`error`,e),Y(`load`,e);break;case`details`:Y(`toggle`,e);break;case`embed`:case`source`:case`link`:Y(`error`,e),Y(`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:ip(e,t,u,r,n,null)}return;default:if(pn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&ap(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ip(e,t,c,r,n,null))}var sp={};function cp(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)||ip(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&&(R=!0),o=m;break;case`name`:m!==f&&(R=!0),a=m;break;case`checked`:m!==f&&(R=!0),u=m;break;case`defaultChecked`:m!==f&&(R=!0),d=m;break;case`value`:m!==f&&(R=!0),s=m;break;case`defaultValue`:m!==f&&(R=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&ip(e,t,p,m,r,f)}}nn(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)||ip(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&&(R=!0),p=o;break;case`defaultValue`:o!==l&&(R=!0),c=o;break;case`multiple`:o!==l&&(R=!0),s=o;default:o!==l&&ip(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?on(e,!!n,n?[]:``,!1):on(e,!!n,t,!0)):on(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:ip(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&&(R=!0),p=a;break;case`defaultValue`:a!==o&&(R=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&ip(e,t,s,a,r,o)}sn(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:ip(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&&(R=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ip(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)&&ip(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:ip(e,t,u,p,r,m)}return;default:if(pn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&ap(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||ap(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ip(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||ip(e,t,f,p,r,m)}function lp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function up(){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&&lp(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&&lp(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 dp=null,fp=null;function pp(e){return e.nodeType===9?e:e.ownerDocument}function mp(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 hp(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 gp(e,t,n,r){return n=pp(n).createElement(e),n[wt]=r,n[Tt]=t,op(n,e,t),Lt(n),n}function _p(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 vp=null;function X(){var e=window.event;return e&&e.type===`popstate`?e!==vp&&(vp=e,!0):(vp=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),Uh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)bm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,bm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[At]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&bm(e.ownerDocument.body)}n=i}while(n);Uh(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}),m(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),m(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=g(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){m(this._fragmentFiber.child,!0,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag!==6&&(e=b(e),gm(e,t))}Rp.prototype.focusLast=function(e){var t=[];m(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=g(this._fragmentFiber);e!==null&&(e=b(e),e=pp(e).activeElement,e!==null&&m(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),m(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),m(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,_m(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 m(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=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Rp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(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=Nt(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=g(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:(m(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:(m(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=[];m(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]||g(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),Mt(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[At])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=fm(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=fm(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=fm(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 dm(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 fm(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 pm=null;function mm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return fm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hm(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 gm(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 _m(e){Sp(function(){Sp(function(t){return e(t)})})}function vm(e,t,n){switch(t=pp(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 ym(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ip(e,t,r,null,sp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===_n&&(e.onclick=null),Mt(e)}function bm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Mt(e)}var Z=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=F.d;F.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=J();return e||t}function Tm(e){var t=Pt(e);t!==null&&t.tag===5&&t.type===`form`?nc(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=tn(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`),op(t,`link`,e),Lt(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="`+tn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+tn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+tn(n.imageSizes)+`"]`)):i+=`[href="`+tn(e)+`"]`;var a=i;switch(t){case`style`:a=Im(e);break;case`script`:a=Bm(e)}if(!(Z.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Z.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Lm(a))||t===`script`&&r.querySelector(Vm(a))))){var o=r.createElement(`link`);op(o,`link`,e),t===`style`&&(o[jt]=!0,o.onload=o.onerror=function(){Rt(o)}),Lt(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="`+tn(r)+`"][href="`+tn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Bm(e)}if(!Z.has(a)&&(e=D({rel:`modulepreload`,href:e},t),Z.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`),op(r,`link`,e),Lt(r),n.head.appendChild(r)}}}function Mm(e,t,n){Cm.S(e,t,n);var r=Em;if(r&&e){var i=It(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=Z.get(a))&&Wm(e,n);var c=o=r.createElement(`link`);Lt(c),op(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=It(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=D({src:e,async:!0},t),(t=Z.get(i))&&Gm(e,t),a=n.createElement(`script`),Lt(a),op(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=It(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=Z.get(i))&&Gm(e,t),a=n.createElement(`script`),Lt(a),op(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=Te.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=It(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=It(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=Z.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},Z.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=It(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="`+tn(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[jt]){r.loading=1;return}}else t=e.createElement(`link`),t[jt]=!0,t.onload=t.onerror=Rt.bind(null,t),op(t,`link`,n),Lt(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="`+tn(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~="`+tn(n.href)+`"]`);if(r)return t.instance=r,Lt(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`),Lt(r),op(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,Lt(o),o;r=Rm(n),(a=Z.get(a))&&Wm(r,a),o=(e.ownerDocument||e).createElement(`link`),Lt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),op(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,Lt(a),a):(r=n,(a=Z.get(o))&&(r=D({},n),Gm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Lt(a),op(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[At]||a[wt]||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,Lt(a);return}a=t.ownerDocument||t,r=Rm(r),(i=Z.get(i))&&Wm(r,i),a=a.createElement(`link`),Lt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),op(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*up());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:M,Provider:null,Consumer:null,_currentValue:_e,_currentValue2:_e,_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=mt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.hiddenUpdates=mt(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=Ai(3,null,null,t),e.current=a,a.stateNode=e,t=Aa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},po(a),e}function Q(e){return e?(e=Oi,e):Oi}function fh(e,t,n,r,i,a){i=Q(i),r.context===null?r.context=i:r.pendingContext=i,r=ho(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=go(e,r,t),n!==null&&(Ld(n,e,t),_o(n,e,t))}function ph(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mh(e,t){ph(e,t),(e=e.alternate)&&ph(e,t)}function hh(e){if(e.tag===13||e.tag===31){var t=Ti(e,67108864);t!==null&&Ld(t,e,67108864),mh(e,67108864)}}function gh(e){if(e.tag===13||e.tag===31){var t=Pd();t=bt(t);var n=Ti(e,t);n!==null&&Ld(n,e,t),mh(e,t)}}var _h=!0;function vh(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,bh(e,t,n,r)}finally{F.p=a,P.T=i}}function yh(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,bh(e,t,n,r)}finally{F.p=a,P.T=i}}function bh(e,t,n,r){if(_h){var i=xh(r);if(i===null)Yf(e,t,r,Sh,n),Nh(e,r);else if(Fh(i,e,t,n,r))r.stopPropagation();else if(Nh(e,r),t&4&&-1<Mh.indexOf(e)){for(;i!==null;){var a=Pt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ct(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-tt(o);s.entanglements[1]|=c,o&=~c}kf(a),!(W&6)&&(yd=Ue()+500,Af(0,!1))}}break;case 31:case 13:s=Ti(a,2),s!==null&&Ld(s,a,2),J(),mh(a,2)}if(a=xh(r),a===null&&Yf(e,t,r,Sh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Yf(e,t,r,null,n)}}function xh(e){return e=yn(e),Ch(e)}var Sh=null;function Ch(e){if(Sh=null,e=Nt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Sh=e,null}function wh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(We()){case Ge:return 2;case Ke:return 8;case qe:case Je:return 32;case Ye:return 268435456;default:return 32}default:return 32}}var Th=!1,Eh=null,Dh=null,Oh=null,kh=new Map,Ah=new Map,jh=[],Mh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Nh(e,t){switch(e){case`focusin`:case`focusout`:Eh=null;break;case`dragenter`:case`dragleave`:Dh=null;break;case`mouseover`:case`mouseout`:Oh=null;break;case`pointerover`:case`pointerout`:kh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ah.delete(t.pointerId)}}function Ph(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Pt(t),t!==null&&hh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Fh(e,t,n,r,i){switch(t){case`focusin`:return Eh=Ph(Eh,e,t,n,r,i),!0;case`dragenter`:return Dh=Ph(Dh,e,t,n,r,i),!0;case`mouseover`:return Oh=Ph(Oh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return kh.set(a,Ph(kh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ah.set(a,Ph(Ah.get(a)||null,e,t,n,r,i)),!0}return!1}function Ih(e){var t=Nt(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,Ct(e.priority,function(){gh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Ct(e.priority,function(){gh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);vn=r,n.target.dispatchEvent(r),vn=null}else return t=Pt(n),t!==null&&hh(t),e.blockedOn=n,!1;t.shift()}return!0}function Rh(e,t,n){Lh(e)&&n.delete(t)}function zh(){Th=!1,Eh!==null&&Lh(Eh)&&(Eh=null),Dh!==null&&Lh(Dh)&&(Dh=null),Oh!==null&&Lh(Oh)&&(Oh=null),kh.forEach(Rh),Ah.forEach(Rh)}function Bh(e,n){e.blockedOn===n&&(e.blockedOn=null,Th||(Th=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,zh)))}var Vh=null;function Hh(e){Vh!==e&&(Vh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Vh===e&&(Vh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Ch(r||n)===null)continue;break}var a=Pt(n);a!==null&&(e.splice(t,3),t-=3,ec(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Uh(e){function t(t){return Bh(t,e)}Eh!==null&&Bh(Eh,e),Dh!==null&&Bh(Dh,e),Oh!==null&&Bh(Oh,e),kh.forEach(t),Ah.forEach(t);for(var n=0;n<jh.length;n++){var r=jh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<jh.length&&(n=jh[0],n.blockedOn===null);)Ih(n),n.blockedOn===null&&jh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Tt]||null;if(typeof a==`function`)o||Hh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Tt]||null)s=o.formAction;else if(Ch(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Hh(n)}}}function Wh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Gh(e){this._internalRoot=e}Kh.prototype.render=Gh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;fh(n,Pd(),e,t,null,null)},Kh.prototype.unmount=Gh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fh(e.current,2,null,e,null,null),J(),t[Et]=null}};function Kh(e){this._internalRoot=e}Kh.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jh.length&&t!==0&&t<jh[n].priority;n++);jh.splice(n,0,e),n===0&&Ih(e)}};var qh=n.version;if(qh!==`19.3.1`)throw Error(i(527,qh,`19.3.1`));F.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:f(e),e=e===null?null:e.stateNode,e};var Jh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Yh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yh.isDisabled&&Yh.supportsFiber)try{Qe=Yh.inject(Jh),$e=Yh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Cc,s=wc,c=Tc;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,Wh),e[Et]=t.current,qf(e),new Gh(t)}})),_=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=g()})),v=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function y(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:v(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var b=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},x=e=>{let t=b(e);return t.charAt(0).toUpperCase()+t.slice(1)},S=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),C={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 w(e){return e!=null}function T(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??C.width,a=e.size??e.height??C.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?S(...c):S(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??C[`stroke-width`])*Number(e.size??e.width??C.width)/Number(t.size??t.width??C.width):t.strokeWidth??C[`stroke-width`];return[`svg`,{...Object.entries(C).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&w(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&w(t.width)&&{[r(`width`)]:t.width},...`height`in t&&w(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 E(e,t={}){return T(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var D=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},O=c(d(),1),ee=(0,O.createContext)({}),k=()=>(0,O.useContext)(ee),te=(0,O.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=``}=k()??{},y=!!c||D(d),[b,x,C=[]]=E(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:S(v,s),hasA11yProp:y,attributes:d});return(0,O.createElement)(b,{ref:f,...x},[...C.map(([e,t])=>(0,O.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function A(e,t=[],n=[]){let r=typeof e==`string`?y(e,t,n):e,i=(0,O.forwardRef)(({className:e,...t},n)=>(0,O.createElement)(te,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=x(r.name)),i}var ne={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};ne.node;var j=A(ne),M={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`}]]};M.node;var re=A(M),ie={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};ie.node;var ae=A(ie),oe={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};oe.node;var se=A(oe),ce={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};ce.node;var N=A(ce),le={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};le.node;var ue=A(le),de={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`}]]};de.node;var fe=A(de),pe={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`}]]};pe.node;var me=A(pe),he={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};he.node;var ge=A(he),P={name:`maximize-2`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]};P.node;var F=A(P),_e={name:`message-circle-question-mark`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`message-circle-question`]};_e.node;var ve=A(_e),ye={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};ye.node;var be=A(ye),xe={name:`workflow`,size:24,node:[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]};xe.node;var Se=A(xe),Ce={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Ce.node;var we=A(Ce),Te=_();function Ee(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=Ee(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function De(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ee(e))&&(r&&(r+=` `),r+=t);return r}var Oe=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,ke=De,Ae=(e,t)=>n=>{if(t?.variants==null)return ke(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=Oe(t)||Oe(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 ke(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)},je=48,Me=(e,t=0)=>{let n=new Int32Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r)-je-t;return n},Ne=e=>{let t=new Int32Array(e.length+1);for(let n=0;n<e.length;n++)t[n+1]=t[n]+e[n];return t},Pe=e=>{let t=new Int32Array(e.length),n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r)-je;n+=i>>>1^-(i&1),t[r]=n}return t},Fe=384,Ie=[],Le=Ne(Me(`E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010`)),Re=Ne(Me(`:11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3`)),ze=`@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom`,Be=(()=>{let e=Le.length-1,t=new Int32Array(e);for(let n=e-1;n>=0;n--){let e=1,r=n+1;for(let i=Le[n];i<Le[n+1];i++)e+=t[r],r+=t[r];t[n]=e}let n=new Int32Array(Le[e]),r=0;for(let i=0;i<e;i++){let e=i+1;for(let a=Le[i];a<Le[i+1];a++)n[r++]=e,e+=t[e]}return n})(),Ve=Me(`02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000…ŏ000ˆ0000ŏ0000000000—0000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000`,1),He=Ne(Me(`123333359346463635126536711576`)),Ue=Me(`93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032`),We=Me(`012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199`),Ge=Pe(`020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200`),Ke=(()=>{let e=new Int32Array(319).fill(-1),t=Pe(`02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222`),n=Pe(`02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222`);for(let r=0;r<t.length;r++)e[t[r]]=n[r];return e})(),qe=`container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform`.split(`|`).map(e=>{let t=e.split(` `),n=t.shift();for(let e=0;e<t.length;e++)t[e]=n+t[e];return t}),Je=Pe(`0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422`),Ye=Pe(`ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622`),Xe=Pe(`02222222222222222222222222222222222222222222222222222222222222222202022222222222EH2200IL021042222Y\\222IL0cf2e10j2222U00X202[^2y0000120|{~‚22…ˆ‡:22|22222222222G000q†OVI00000}š2›>40000ŒB00000I¨©000¬00000000000000021M®­00°“000000000000000000000–222›HGHa1º222¿2À2222ÉÌ000­°2±`),Ze=new Int32Array(995),Qe=new Int32Array(995),$e=new Int32Array(995),et=``,tt=new Int32Array(1038);{let e=new Map,t=0,n=0;for(let r=0;r<Je.length;r++)for(let i of qe[Xe[r]]){let a=e.get(i);a===void 0&&(a=t++,e.set(i,a),tt[a*2]=et.length,tt[a*2+1]=i.length,et+=i),Ze[n]=Je[r],Qe[n]=Ye[r],$e[n]=a,n++}}var nt=Pe(`0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p`),rt=Ne(Me(`1::24444432:442:44:44>222222:44:4421322511111311111114`)),it=Pe(`2Š4A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅҜ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=„ƧNž2Đå242L222290000f22500ɛ000ǘ222`),at=Me(`ij`),ot=Me(`—`),st=Me(`1`),ct={GROUP_COUNT:Fe,customValidatorNames:Ie,edgeStart:Le,labelStart:Re,labelText:ze,edgeTarget:Be,nodeGroup:Ve,nodeVlist:Ke,vlistPat:He,vlistOps:Ue,vlistRef:We,vlistGroup:Ge,litAnchor:Ze,litGroup:Qe,litPool:$e,poolOffsets:tt,poolText:et,adjGid:nt,adjStart:rt,adjTgt:it,patGid:at,patTgt:ot,postfixLookupGroups:st,orderSensitiveModifiers:`* ** after backdrop before details-content file first-letter first-line marker placeholder selection`},lt=`line`in Error(),ut=-1,dt=-1,ft=(e,t,n)=>{let r=2166136261;for(let i=t;i<n;i++)r=Math.imul(r^e.charCodeAt(i),16777619);return r},pt=(e,t,n)=>{let r=n-t,i=Math.imul(r,2654435761)^e.charCodeAt(t);if(r>3){let a=r>>2,o=r>>1;i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+a),2246822507),i=Math.imul(i^e.charCodeAt(t+o)<<8^e.charCodeAt(t+o+a)<<16^e.charCodeAt(n-3),3266489909),i^=e.charCodeAt(n-2)<<8^e.charCodeAt(n-1)<<16;for(let r=t+3,a=n-4;r<t+8&&r<a;r++,a--)i=Math.imul(i^e.charCodeAt(r)^e.charCodeAt(a)<<8,16777619)}return i^i>>>15},mt=(e,t,n={})=>{let{GROUP_COUNT:r,edgeStart:i,labelStart:a,labelText:o,edgeTarget:s,nodeGroup:c,nodeVlist:l,vlistPat:u,vlistOps:d,vlistRef:f,vlistGroup:p,litAnchor:m,litGroup:h,litPool:g,poolOffsets:_,poolText:v,adjGid:y,adjStart:b,adjTgt:x,patGid:S,patTgt:C,postfixLookupGroups:w,customValidatorNames:T,orderSensitiveModifiers:E}=e,D=new Int32Array(r).fill(-1);for(let e=0;e<y.length;e++)D[y[e]]=e;let O=0;for(let e=0;e+1<b.length;e++){let t=b[e+1]-b[e];t>O&&(O=t)}let ee=32;for(;ee<2*(1+O+S.length);)ee<<=1;let k=new Int32Array(f.length+1);for(let e=0;e<f.length;e++)k[e+1]=k[e]+u[f[e]+1]-u[f[e]];let te=new Uint8Array(r);for(let e=0;e<w.length;e++)te[w[e]]=1;let A=i.length-1,ne=new Uint8Array(A),j=0,M=!0;for(let e=0;e<m.length;e++){ne[m[e]]=1;let t=_[g[e]*2+1];t>j&&(j=t);let n=v.charCodeAt(_[g[e]*2]);(n===91||n===40)&&(M=!1)}let re=1;for(;re<m.length*2;)re<<=1;let ie=new Int32Array(re).fill(-1);for(let e=0;e<m.length;e++){let t=_[g[e]*2],n=(ft(v,t,t+_[g[e]*2+1])^Math.imul(m[e],2654435761)|0)&re-1;for(;ie[n]!==-1;)n=n+1&re-1;ie[n]=e}let ae=(e,t,n,r)=>{let i=(ft(t,n,r)^Math.imul(e,2654435761)|0)&re-1,a=r-n;for(;;){let r=ie[i];if(r===-1)return-1;if(m[r]===e&&_[g[r]*2+1]===a){let e=_[g[r]*2],i=!0;for(let r=0;r<a;r++)if(v.charCodeAt(e+r)!==t.charCodeAt(n+r)){i=!1;break}if(i)return h[r]}i=i+1&re-1}},oe=n.cacheSize??8192,se=n.prefix??e.prefix??``,ce=se===``?``:se+`:`,N=ce.length,le=(T??[]).map(e=>{let n=t&&t[e];if(!n)throw Error(`cn: missing validator `+e);return n}),ue=/\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$/,de=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,me=0,he=-1,ge=-1,P=-1,F=-1,_e=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===95,ve=e=>/\s/.test(String.fromCharCode(e)),ye=(e,t,n)=>{if(me=0,he=-1,n-t<3)return;let r=e.charCodeAt(t),i=e.charCodeAt(n-1);if(r===91&&i===93)me=1;else if(r===40&&i===41)me=2;else return;P=t+1,F=n-1;let a=t+1;if(_e(e.charCodeAt(a))){for(a++;a<n-1;){let t=e.charCodeAt(a);if(!_e(t)&&t!==45)break;a++}a<n-2&&e.charCodeAt(a)===58&&(he=t+1,ge=a,P=a+1)}},be=(e,t,n,r)=>{if(n-t!==r.length)return!1;for(let n=0;n<r.length;n++)if(e.charCodeAt(t+n)!==r.charCodeAt(n))return!1;return!0},xe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Se=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ce=e=>!!e&&!Number.isNaN(Number(e)),we=(e,t,n)=>{if(n-t<11||!be(e,t,t+10,`@container`))return!1;if(e.charCodeAt(t+10)===47)return n-t>=12;let r=e.charCodeAt(t+11);return r===115&&n-t>=17&&be(e,t+10,t+16,`-size/`)||r===110&&n-t>=19&&be(e,t+10,t+18,`-normal/`)},Te=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],Ee=`length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight`.split(`|`).map(e=>e.split(` `)),De=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],Oe=(e,t,n,r)=>{if(e>=10){if(e>=25)return le[e-25](t.slice(n,r));let i=e-10;if(me!==Te[i])return!1;if(he>=0){for(let e of Ee[i])if(be(t,he,ge,e))return!0;return!1}switch(De[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(P,F);return ue.test(e)&&!de.test(e)}case 3:return Ce(t.slice(P,F));case 4:return pe.test(t.slice(P,F));default:return fe.test(t.slice(P,F))}}switch(e){case 0:return!0;case 1:return me===0;case 2:return me===1;case 3:return me===2;case 4:return xe.test(t.slice(n,r));case 5:return Ce(t.slice(n,r));case 6:{let e=t.slice(n,r);return!!e&&Number.isInteger(Number(e))}case 7:return r>n&&t.charCodeAt(r-1)===37&&Ce(t.slice(n,r-1));case 8:return Se.test(t.slice(n,r));default:return we(t,n,r)}},ke=new Set(typeof E==`string`?E.split(` `):E),Ae=(e,t,n,r,i,a)=>{let o=ft(t,n,r)^(i?2654435769:0),s=e.get(o);if(s!==void 0)outer:for(let e=0;e<s.length;e++){let a=s[e];if(a.imp===i&&a.k.length===r-n){for(let e=0;e<a.k.length;e++)if(a.k.charCodeAt(e)!==t.charCodeAt(n+e))continue outer;return a.id}}else e.set(o,s=[]);let c=t.slice(n,r),l=a(c);return s.push({k:c,imp:i,id:l}),l},je=new Map,Me=new Map,Ne=2,Pe=4096,Fe=(e,t)=>{let n=[],r=0,i=0,a=0;for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);r===0&&i===0&&o===58?(n.push(e.slice(a,t)),a=t+1):o===91?r++:o===93?r--:o===40?i++:o===41&&i--}n.push(e.slice(a));let o=n[0];if(n.length>1){let e=[],t=[];for(let r of n)r.charCodeAt(0)===91||ke.has(r)?(t.length&&(e.push(...t.sort()),t=[]),e.push(r)):t.push(r);t.length&&e.push(...t.sort()),o=e.join(`:`)}let s=t?o+` !`:o,c=Me.get(s);return c===void 0&&Me.set(s,c=Ne++),c},Ie=new Map,Le=r,Re=r+4096,ze=()=>Le++,Be=2097152,Ve=8192,He=new Int32Array(Ve),Ue=Array(Ve).fill(null),We=new Int32Array(Ve),Ge=new Int32Array(Ve),Ke=new Uint8Array(Ve),qe=0,Je=(e,t,n,r,i,a,o,s)=>{let c=e;if(Ue[e]!==null){if(Ue[e|1]===null)c=e|1;else if(!(qe++&3))c=e|qe>>2&1;else return}Ue[c]=t.slice(n,r),He[c]=i,We[c]=a,Ge[c]=o,Ke[c]=s},Ye=()=>Ue.fill(null),Xe=256,Ze=[new Int32Array(Xe),new Int32Array(Xe),new Int32Array(Xe),new Int32Array(Xe)],[Qe,$e,et,tt]=Ze,nt=new Uint8Array(Xe),rt=new Uint8Array(Xe),it=()=>{Xe*=2,Ze=Ze.map(e=>{let t=new Int32Array(Xe);return t.set(e),t}),[Qe,$e,et,tt]=Ze;let e=new Uint8Array(Xe);e.set(nt),nt=e,rt=new Uint8Array(Xe)},at=64,ot=new Int32Array(at),st=new Int32Array(at),ct=new Int32Array(r),mt=2048,ht=21,gt=new Float64Array(mt),vt=new Int32Array(mt),yt=0,bt=(e,t)=>{if(e===0&&t<r)return ct[t]===yt?1:(ct[t]=yt,0);let n=e*2097152+t+1,i=Math.imul(n,2654435761)>>>ht;for(;vt[i]===yt;){if(gt[i]===n)return 1;i=i+1&mt-1}return gt[i]=n,vt[i]=yt,0},xt=(e,t,n,r,i)=>{if(n-t>=2&&e.charCodeAt(t)===91&&e.charCodeAt(n-1)===93){let r=-1;for(let i=t+1;i<n-1;i++)if(e.charCodeAt(i)===58){r=i;break}return r===-1||r===t+1?ut:Ae(Ie,e,t+1,r,0,ze)}if(r>=0&&c[r]>=0)return c[r];for(let t=i-1;t>=0;t--){let r=st[t];if(r>n)continue;let i=ot[t],a=n-r;if(ne[i]===1&&a>0&&a<=j){let t=e.charCodeAt(r);if(M===!1||t!==91&&t!==40){let t=ae(i,e,r,n);if(t>=0)return t}}let o=l[i];if(o<0)continue;let s=f[o],c=u[s],m=u[s+1];if(c===m)continue;ye(e,r,n);let h=k[o]-c;for(let t=c;t<m;t++)if(Oe(d[t],e,r,n))return p[h+t]}return ut},St=e=>{let t=e.length,n=0,c=0,u=!1;(Ne>Pe||je.size>Pe)&&(je=new Map,Me=new Map,Ne=2,Ye()),Le>Re&&(Ie=new Map,Le=r,Ye());let d=0;for(;d<t;){let f=e.charCodeAt(d);if(f===32||f>=9&&f<=13||f>=160&&ve(f)){f!==32&&(u=!0),d++;continue}let p=d,m=0;for(;d<t;){if(f=e.charCodeAt(d),f<=32){if(f===32)break;if(f>=9&&f<=13){u=!0;break}}else if(f>=160&&ve(f)){u=!0;break}m=Math.imul(m^f,16777619),d++}let h=d,g=h-p;n===Xe&&it();let _=n++;Qe[_]=p,$e[_]=h,c+=g,m^=Math.imul(g,2654435761);let v=m^m>>>15,y=v&8190;{let t=-1;if(He[y]===v&&Ue[y]!==null&&Ue[y].length===g?t=y:He[y|1]===v&&Ue[y|1]!==null&&Ue[y|1].length===g&&(t=y|1),t>=0){let n=Ue[t],r=!0;for(let t=0;t<g;t++)if(n.charCodeAt(t)!==e.charCodeAt(p+t)){r=!1;break}if(r){et[_]=We[t],tt[_]=Ge[t],nt[_]=Ke[t];continue}}}let b=p;if(N!==0){if(h-p<=N||!e.startsWith(ce,p)){et[_]=ut,Je(y,e,p,h,v,ut,0,0);continue}b=p+N}let x=0,S=0,C=-1,w=-1;for(let t=b;t<h;t++){let n=e.charCodeAt(t);if(x===0&&S===0){if(n===58){C=t;continue}if(n===47){w=t;continue}}n===91?x++:n===93?x--:n===40?S++:n===41&&S--}let T=C>=b?C+1:b,E=T,D=h,O=!1,ee=0;D>E&&e.charCodeAt(D-1)===33?(O=!0,D--):D>E&&e.charCodeAt(E)===33&&(O=!0,E++,ee=1);let k=-1;w>T&&(k=w+ee,k>=D&&(k=-1));let A=E;D-E>1&&e.charCodeAt(E)===45&&(A=E+1);let j=0,M=0,re=0,ie=-1,ae=0;(l[0]>=0||ne[0]===1)&&(ot[0]=0,st[0]=A,ae=1);let oe=dt,se=0;for(let t=A;t<D;t++)if(t===k&&(oe=M<re?dt:j,se=ae),j!==dt){let n=e.charCodeAt(t),r=-1;if(M<re)o.charCodeAt(M)===n?(M++,M===re&&(r=j=ie)):j=dt;else{let e=i[j],t=i[j+1],c=dt;for(let i=e;i<t;i++){let e=a[i];if(o.charCodeAt(e)===n){a[i+1]-e===1?r=c=s[i]:(M=e+1,re=a[i+1],ie=s[i],c=j);break}}j=c}if(r>=0&&(l[r]>=0||ne[r]===1)&&t+1<D&&e.charCodeAt(t+1)===45){if(ae===at){at*=2;let e=new Int32Array(at);e.set(ot),ot=e;let t=new Int32Array(at);t.set(st),st=t}ot[ae]=r,st[ae]=t+2,ae++}}k===D&&(oe=M<re?dt:j,se=ae);let le=M<re?dt:j,ue,de=!1;if(k>=0){if(de=!0,ue=xt(e,E,k,oe,se),ue!==ut&&ue<r&&te[ue]){let t=xt(e,E,D,le,ae);t!==ut&&t!==ue&&(ue=t,de=!1)}else ue===ut&&(ue=xt(e,E,D,le,ae),de=!1)}else ue=xt(e,E,D,le,ae);let fe=0,pe=0;ue===ut?et[_]=ut:(pe=+!!de,fe=b>=C?+!!O:Ae(je,e,b,C,+!!O,e=>Fe(e,O)),et[_]=ue,nt[_]=pe,tt[_]=fe),Je(y,e,p,h,v,ue,fe,pe)}if(n===0)return``;if(n===1)return Qe[0]===0&&$e[0]===t?e:e.slice(Qe[0],$e[0]);if(n*ee>mt){for(;n*ee>mt;)mt<<=1,ht--;gt=new Float64Array(mt),vt=new Int32Array(mt)}if(Ne>=Be||Le>=Be)throw Error(`cn: too many distinct classes in one merge`);yt=yt+1|0,yt===0&&(ct.fill(0),vt.fill(0),yt=1);let f=!1;for(let e=n-1;e>=0;e--){let t=et[e];if(t===ut){rt[e]=1;continue}let n=tt[e];if(bt(n,t)===1)rt[e]=0,f=!0;else if(rt[e]=1,t<r){let r=D[t];if(r>=0)for(let e=b[r];e<b[r+1];e++)bt(n,x[e]);if(nt[e]&1)for(let e=0;e<S.length;e++)S[e]===t&&bt(n,C[e])}}if(!f&&!u&&t===c+n-1)return e;let p=``,m=0;for(;m<n;){if(!rt[m]){m++;continue}let t=Qe[m],r=$e[m],i=m+1;for(;i<n&&rt[i]&&Qe[i]===r+1&&e.charCodeAt(r)===32;)r=$e[i],i++;p.length>0&&(p+=` `),p+=e.slice(t,r),m=i}return p},Ct=16384,I=new Int32Array(Ct*2),wt=0,Tt=1,Et=Object.create(null),Dt=Object.create(null),L=new Map,Ot=new Map,kt=0,At=0,jt=()=>{wt^=Ct,Tt=Tt+1|0,At=0},Mt=e=>{let t=Et[e];if(t!==void 0)return t;let n=pt(e,0,e.length),r=(n&16383)+wt,i=I[r]===(n^Tt)||I[r^Ct]===(n^Tt-1);return i&&(t=Dt[e],t!==void 0)?(Et[e]=t,t):(t=St(e),i?(Et[e]=t,++kt>oe&&(kt=0,Dt=Et,Et=Object.create(null),jt())):(I[r]=n^Tt,++At>Ct&&jt()),t)},Nt=e=>{let t=L.get(e);if(t!==void 0)return t;let n=pt(e,0,e.length),r=(n&16383)+wt,i=I[r]===(n^Tt)||I[r^Ct]===(n^Tt-1);return i&&(t=Ot.get(e),t!==void 0)?(L.set(e,t),t):(t=St(e),i?(L.set(e,t),++kt>oe&&(kt=0,Ot=L,L=new Map,jt())):(I[r]=n^Tt,++At>Ct&&jt()),t)},Pt=e=>{let t=pt(e,0,e.length),n=(t&16383)+wt;return I[n]===(t^Tt)||I[n^Ct]===(t^Tt-1)||(I[n]=t^Tt,++At>Ct&&jt(),!1)},Ft=oe===0?St:lt?e=>{let t=L.get(e);return t===void 0?Nt(e):t}:Mt;return{merge:function(){return arguments.length===1&&typeof arguments[0]==`string`?Ft(arguments[0]):Ft(_t.apply(null,arguments))},mergeString:Ft,seenBefore:oe===0?()=>!1:Pt,mergeUncached:St}},ht=(e,t)=>{if(!e)return``;if(typeof e==`string`)return e;let n=``;if(typeof e.length==`number`&&(!t||Array.isArray(e))){let r=e;for(let e=0;e<r.length;e++){let i=r[e];if(!i)continue;let a=typeof i==`string`?i:ht(i,t);a&&(n&&(n+=` `),n+=a)}return n}if(t){if(typeof e==`number`)return``+e;if(typeof e==`object`)for(let t in e)e[t]&&(n&&(n+=` `),n+=t)}return n},gt=(e,t)=>{let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(!i)continue;let a=typeof i==`string`?i:ht(i,t);a&&(n&&(n+=` `),n+=a)}return n},_t=function(){return gt(arguments,!1)},vt=256,yt=16,bt=1024,xt=4096,St=(e,t)=>{let n=t===void 0?()=>!0:t.seenBefore,r=t===void 0?e:t.mergeUncached,i=new Map,a=new Map,o=0,s=null,c=null,l=[],u=[],d=0,f=(t,n,r)=>{c===null&&(c=Array(xt).fill(``),l=Array(xt).fill(``),u=Array(xt).fill(``));let i=pt(t,0,t.length)&4094;if(c[i]===t&&l[i]===n)return u[i];if(c[i|1]===t&&l[i|1]===n)return u[i|1];let a=e(r?n+` `+t:t),o=c[i]===``?i:i|(c[i|1]===``?1:d++&1);return c[o]=t,l[o]=n,u[o]=a,a},p=(e,t,n,r)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(n){if(n!==(i===0?e.a0:e.a1))return!1;i++}if(r){if(r!==(i===0?e.a0:i===1?e.a1:e.a2))return!1;i++}return i===e.t},m=(e,t)=>{let n=e.a,r=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==n[r])return!1;r++}}return r===e.t},h=(t,c)=>{let l=t.length,u=s===null?null:s.n;if(!c){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let d=``,p=-1,h=0,g=!1;for(let e=0;e<l;e++){let n=t[e];if(n){if(typeof n!=`string`){if(n=t[e]=ht(n,!0),!n)continue;g=!0}p<0&&(d=n,p=e),h++}}if(h===0)return``;if(h===1)return e(d);if(g){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let _=i.get(d);_===void 0&&(_=a.get(d),_!==void 0&&i.set(d,_));let v=null;if(_!==void 0){if(_.skip>0){_.skip--,s=null;let e=d;for(let n=p+1;n<l;n++){let r=t[n];r&&(e+=` `+r)}return f(e,``,!1)}let e=_.e;outer:for(let n=0;n<e.length;n++){let r=e[n];if(r.t!==h)continue;let i=r.a,a=1;for(let e=p+1;e<l;e++){let n=t[e];if(n&&n!==i[a++])continue outer}v=r;break}v!==null&&(_.miss=0)}if(v===null){let s=d,c=[d];for(let e=p+1;e<l;e++){let n=t[e];n&&(s+=` `+n,c.push(n))}if(!n(s))return r(s);v={r:e(s),t:c.length,a0:c[0],a1:c[1],a2:c[2]??``,a:c,n:null},_===void 0?i.set(d,_={e:[],miss:0,skip:0,at:0}):++_.miss>yt&&(_.miss=yt,_.skip=bt,_.e.length=0,_.at=0);let u=_.e;u.length<vt?u.push(v):(u[_.at]=v,_.at=_.at+1&255),++o>1e3&&(o=0,a=i,i=new Map)}return s!==null&&s!==v&&(s.n=v),s=v,v.r},g=t=>Array.isArray(t)?h(t.slice(),!1):e(ht(t,!0));return function(t,n,r){let a=arguments.length;if((a|1)==3){let e=s;if(e!==null){let i=e.n;if(i!==null&&p(i,t,n,r))return s=i,i.r;if(e!==i&&p(e,t,n,r))return e.r}if(a===2&&typeof n==`string`&&n!==``){let e=i.get(t);if(e!==void 0&&e.skip>0)return e.skip--,s=null,f(n,t,!0)}return h([t,n,r],!0)}if(a===1)return typeof t==`string`?e(t):g(t);let o=s;if(o!==null){let e=o.n;if(e!==null){let t=e.a,n=0,r=!0;for(let e=0;e<a;e++){let i=arguments[e];if(i){if(i!==t[n]){r=!1;break}n++}}if(r&&n===e.t)return s=e,e.r}if(o!==e){let e=o.a,t=0,n=!0;for(let r=0;r<a;r++){let i=arguments[r];if(i){if(i!==e[t]){n=!1;break}t++}}if(n&&t===o.t)return o.r}}let c=[];for(let e=0;e<a;e++)c.push(arguments[e]);return h(c,!0)}},Ct=mt(ct),I=St(Ct.mergeString,Ct);Ct.merge;var wt=Object.defineProperty,Tt=(e,t)=>wt(e,`name`,{value:t,configurable:!0});function Et(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Tt(Et,`setRef`);function Dt(...e){return t=>{let n=!1,r=e.map(e=>{let r=Et(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():Et(e[t],null)}}}}Tt(Dt,`composeRefs`);function L(...e){return O.useCallback(Dt(...e),e)}Tt(L,`useComposedRefs`);var Ot=Object.defineProperty,kt=(e,t)=>Ot(e,`name`,{value:t,configurable:!0});function At(e){let t=O.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=Vt(r),O.Children.forEach(r,e=>{if(Lt(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;zt(n)&&typeof Gt==`function`;)n=Gt(n._payload);a=Pt(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=O.cloneElement(a,void 0,s):!o&&O.Children.count(r)===1&&O.isValidElement(r)&&(a=r);let c=a?It(a):void 0,l=L(n,c);if(!a){if(r||r===0)throw Error(o?Wt(e):Ut(e));return r}let u=Ft(i,a.props??{});return a.type!==O.Fragment&&(u.ref=n?l:c),O.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}kt(At,`createSlot`);var jt=At(`Slot`),Mt=Symbol.for(`radix.slottable`);function Nt(e){let t=kt(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=Mt,t}kt(Nt,`createSlottable`);var Pt=kt((e,t)=>`child`in e.props?O.isValidElement(t)?O.cloneElement(t,void 0,e.props.children(t.props.children)):null:O.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function Ft(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]=Ht(a,i))}return{...e,...n}}kt(Ft,`mergeProps`);function It(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)}kt(It,`getElementRef`);function Lt(e){return O.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Mt}kt(Lt,`isSlottable`);var Rt=Symbol.for(`react.lazy`);function zt(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Rt&&`_payload`in e&&Bt(e._payload)}kt(zt,`isLazyComponent`);function Bt(e){return typeof e==`object`&&!!e&&`then`in e}kt(Bt,`isPromiseLike`);function Vt(e){let t=e;for(;zt(t)&&typeof Gt==`function`;)t=Gt(t._payload);return t}kt(Vt,`useUnwrappedLazy`);function Ht(...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}kt(Ht,`concatAriaDescribedby`);var Ut=kt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Wt=kt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Gt=O.use,Kt=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})),R=o(((e,t)=>{t.exports=Kt()})),qt=c(h(),1),z=R(),Jt=Object.defineProperty,Yt=(e,t)=>Jt(e,`name`,{value:t,configurable:!0}),B=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=At(`Primitive.${t}`),r=O.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,z.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Xt(e,t){e&&qt.flushSync(()=>e.dispatchEvent(t))}Yt(Xt,`dispatchDiscreteCustomEvent`);var Zt=Object.defineProperty,Qt=(e,t)=>Zt(e,`name`,{value:t,configurable:!0}),$t=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`}),en=O.forwardRef(Qt(function(e,t){return(0,z.jsx)(B.span,{...e,ref:t,style:{...$t,...e.style}})},`VisuallyHidden`)),tn=Object.defineProperty,nn=(e,t)=>tn(e,`name`,{value:t,configurable:!0});function rn(e,t){let n=O.createContext(t);n.displayName=e+`Context`;let r=nn(e=>{let{children:t,...r}=e,i=O.useMemo(()=>r,Object.values(r));return(0,z.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=O.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return nn(i,`useContext`),[r,i]}nn(rn,`createContext`);function an(e,t=[]){let n=[];function r(t,r){let i=O.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=nn(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=O.useMemo(()=>o,Object.values(o));return(0,z.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=O.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return nn(s,`useContext`),[o,s]}nn(r,`createContext`);let i=nn(()=>{let t=n.map(e=>O.createContext(e));return nn(function(n){let r=n?.[e]||t;return O.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,on(i,...t)]}nn(an,`createContextScope`);function on(...e){let t=e[0];if(e.length===1)return t;let n=nn(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return nn(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return O.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}nn(on,`composeContextScopes`);var sn=globalThis?.document?O.useLayoutEffect:()=>{},cn=Object.defineProperty,ln=(e,t)=>cn(e,`name`,{value:t,configurable:!0});function un(e){let t=e+`CollectionProvider`,[n,r]=an(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=ln(e=>{let{scope:t,children:n}=e,r=O.useRef(null),a=O.useRef(new Map).current;return(0,z.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=At(s),l=O.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=L(t,a(s,n).collectionRef);return(0,z.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=At(u),p=O.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=O.useRef(null),s=L(t,o),c=a(u,n);return O.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,z.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return O.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 ln(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}ln(un,`createCollection`);var dn=new WeakMap,fn=class e extends Map{static{ln(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],dn.set(this,!0)}set(e,t){return dn.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=hn(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=pn(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=pn(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return pn(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 pn(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=mn(e,t);return n===-1?void 0:e[n]}ln(pn,`at`);function mn(e,t){let n=e.length,r=hn(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}ln(mn,`toSafeIndex`);function hn(e){return e!==e||e===0?0:Math.trunc(e)}ln(hn,`toSafeInteger`);function gn(e){let t=e+`CollectionProvider`,[n,r]=an(t),[i,a]=n(t);i.displayName=e+`CollectionStableContextProvider`;let[o,s]=n(t);o.displayName=e+`CollectionStatefulContextProvider`;let c=ln(({state:e,...t})=>e?(0,z.jsx)(u,{...t,state:e}):(0,z.jsx)(l,{...t}),`CollectionProvider`);c.displayName=t;let l=ln(e=>{let t=_();return(0,z.jsx)(u,{...e,state:t})},`CollectionInit`);l.displayName=e+`CollectionInit`;let u=ln(e=>{let{scope:t,children:n,state:r}=e,a=O.useRef(null),[s,c]=O.useState(null),l=L(a,c),[u,d]=r,f=O.useRef(new fn),p=O.useCallback(()=>{let e=f.current;return yn(e)||e.sort(bn),e},[]);return O.useEffect(()=>{if(!s)return;let e=xn(()=>{d(e=>{let t=e.toSorted(bn);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s,d]),(0,z.jsx)(i,{scope:t,collectionElementRef:l,collectionElementRefObject:a,getCollection:p,setCollection:d,registryRef:f,children:(0,z.jsx)(o,{scope:t,collectionElement:s,collection:u,children:n})})},`CollectionProviderImpl`);u.displayName=e+`CollectionProviderImpl`;let d=e+`CollectionSlot`,f=At(d),p=O.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=L(t,a(d,n).collectionElementRef);return(0,z.jsx)(f,{ref:i,children:r})});p.displayName=d;let m=e+`CollectionItemSlot`,h=At(m),g=O.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=O.useRef(null),{setCollection:s,registryRef:c}=a(m,n),l=O.useRef(i);_n(l.current,i)||(l.current=i);let u=l.current,d=L(t,O.useCallback(e=>{let t=c.current;e?t.set(e,{...l.current,element:e}):o.current&&t.delete(o.current)},[c]),o);sn(()=>{let e=o.current,t=c.current;e&&t.has(e)&&t.set(e,{...u,element:e})},[u,c]);let f=O.useRef(null);return O.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 fn(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...u,element:e}),r.sort(bn)}))}),O.useEffect(()=>()=>{let e=f.current;f.current=null,e&&s(t=>{if(!t.has(e.element))return t;let n=new fn(t);return n.delete(e.element),n})},[s]),(0,z.jsx)(h,{"data-radix-collection-item":``,ref:d,children:r})});g.displayName=m;function _(){return O.useState(new fn)}ln(_,`useInitCollection`);function v(t){let{collection:n}=s(e+`CollectionConsumer`,t);return n}ln(v,`useCollection`);function y(t){let{getCollection:n}=a(e+`CollectionConsumer`,t);return n}return ln(y,`useGetCollection`),[{Provider:c,Slot:p,ItemSlot:g},{createCollectionScope:r,useCollection:v,useGetCollection:y,useInitCollection:_}]}ln(gn,`createCollection`);function _n(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}ln(_n,`shallowEqual`);function vn(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}ln(vn,`isElementPreceding`);function yn(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}ln(yn,`isInDocumentOrder`);function bn(e,t){return!e[1].element||!t[1].element?0:vn(e[1].element,t[1].element)?-1:1}ln(bn,`sortByDocumentPosition`);function xn(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}ln(xn,`getChildListObserver`);var Sn=Object.defineProperty,Cn=(e,t)=>Sn(e,`name`,{value:t,configurable:!0}),wn=!!(typeof window<`u`&&window.document&&window.document.createElement);function V(e,t,{checkForDefaultPrevented:n=!0}={}){return Cn(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Cn(V,`composeEventHandlers`);function Tn(e){if(!wn)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Cn(Tn,`getOwnerWindow`);function En(e){if(!wn)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Cn(En,`getOwnerDocument`);function Dn(e,t=!1){let{activeElement:n}=En(e);if(!n?.nodeName)return null;if(On(n)&&n.contentDocument)return Dn(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=En(n).getElementById(e);if(t)return t}}return n}Cn(Dn,`getActiveElement`);function On(e){return e.tagName===`IFRAME`}Cn(On,`isFrame`);var kn=Object.defineProperty,An=(e,t)=>kn(e,`name`,{value:t,configurable:!0}),jn=O.useEffectEvent,Mn=O.useInsertionEffect;function Nn(e){if(typeof jn==`function`)return jn(e);let t=O.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Mn==`function`?Mn(()=>{t.current=e}):sn(()=>{t.current=e}),O.useMemo(()=>((...e)=>t.current?.(...e)),[])}An(Nn,`useEffectEvent`);var Pn=Object.defineProperty,Fn=(e,t)=>Pn(e,`name`,{value:t,configurable:!0}),In=O.useInsertionEffect||sn;function Ln({prop:e,defaultProp:t,onChange:n=Fn(()=>{},`onChange`),caller:r}){let[i,a,o]=Rn({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,O.useCallback(t=>{if(s){let n=zn(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Fn(Ln,`useControllableState`);function Rn({defaultProp:e,onChange:t}){let[n,r]=O.useState(e),i=O.useRef(n),a=O.useRef(t);return In(()=>{a.current=t},[t]),O.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Fn(Rn,`useUncontrolledState`);function zn(e){return typeof e==`function`}Fn(zn,`isFunction`);var Bn=Symbol(`RADIX:SYNC_STATE`);function Vn(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Nn(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=O.useReducer((t,n)=>{if(n.type===Bn)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=O.useRef(p);O.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=O.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return O.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Bn,state:i})},[i,d.state,c]),[h,f]}Fn(Vn,`useControllableStateReducer`);var Hn=Object.defineProperty,Un=(e,t)=>Hn(e,`name`,{value:t,configurable:!0});function Wn(e,t){return O.useReducer((e,n)=>t[e][n]??e,e)}Un(Wn,`useStateMachine`);var Gn=Un(e=>{let{present:t,children:n}=e,r=Kn(t),i=typeof n==`function`?n({present:r.isPresent}):O.Children.only(n),a=Jn(r.ref,Xn(i));return typeof n==`function`||r.isPresent?O.cloneElement(i,{ref:a}):null},`Presence`);function Kn(e){let[t,n]=O.useState(),r=O.useRef(null),i=O.useRef(e),a=O.useRef(`none`),o=O.useRef(void 0),[s,c]=Wn(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return O.useEffect(()=>{s===`mounted`?(a.current=o.current??Yn(r.current),o.current=void 0):a.current=`none`},[s]),sn(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Yn(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]),sn(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=Un(a=>{let o=Yn(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=Un(e=>{e.target===t&&(a.current=Yn(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:O.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Yn(t)}else r.current=null;n(e)},[])}}Un(Kn,`usePresence`);function qn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Un(qn,`setRef`);function Jn(...e){let t=O.useRef(e);return t.current=e,O.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=qn(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():qn(n[e],null)}}},[])}Un(Jn,`useStableComposedRefs`);function Yn(e){return e?.animationName||`none`}Un(Yn,`getAnimationName`);function Xn(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)}Un(Xn,`getElementRef`);var Zn=Object.defineProperty,Qn=(e,t)=>Zn(e,`name`,{value:t,configurable:!0}),$n=O.useId||(()=>void 0),er=0;function tr(e){let[t,n]=O.useState($n());return sn(()=>{e||n(e=>e??String(er++))},[e]),e||(t?`radix-${t}`:``)}Qn(tr,`useId`);var nr=Object.defineProperty,rr=(e,t)=>nr(e,`name`,{value:t,configurable:!0}),ir={LTR:`ltr`,RTL:`rtl`},ar=O.createContext(void 0);function or(e){let t=O.useContext(ar);return e||t||ir.LTR}rr(or,`useDirection`);var sr=Object.defineProperty,cr=(e,t)=>sr(e,`name`,{value:t,configurable:!0}),lr=O.useInsertionEffect;function ur(e){let t=O.useRef(e);return typeof lr==`function`?lr(()=>{t.current=e}):sn(()=>{t.current=e}),O.useMemo(()=>((...e)=>t.current?.(...e)),[])}cr(ur,`useCallbackRef`);var dr=Object.defineProperty,fr=(e,t)=>dr(e,`name`,{value:t,configurable:!0}),pr=`dismissableLayer.update`,mr=`dismissableLayer.pointerDownOutside`,hr=`dismissableLayer.focusOutside`,gr,_r=O.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),vr=O.forwardRef(fr(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=O.useContext(_r),[d,f]=O.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=O.useState({}),h=L(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=O.useRef(!1),C=xr(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:O.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=Sr(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=ur(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return O.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),O.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(gr=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Cr(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=gr))}},[d,p,n,u]),O.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Cr())},[d,u]),O.useEffect(()=>{let e=fr(()=>m({}),`handleUpdate`);return document.addEventListener(pr,e),()=>document.removeEventListener(pr,e)},[]),(0,z.jsx)(B.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:V(e.onFocusCapture,w.onFocusCapture),onBlurCapture:V(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,C.onPointerDownCapture)})},`DismissableLayer`));function yr(){let e=O.useContext(_r),[t,n]=O.useState(null);return O.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}fr(yr,`useDismissableLayerSurface`);var br=fr(()=>!0,`IS_TRUE`);function xr(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=br}=t,s=ur(e),c=O.useRef(!1),l=O.useRef(!1),u=O.useRef(new Map),d=O.useRef(()=>{});return O.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}fr(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}fr(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)}fr(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}fr(p,`handleInteractionBubble`);let m=fr(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||wr(mr,s,p,{discrete:!0})};if(fr(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:fr(()=>c.current=!0,`onPointerDownCapture`)}}fr(xr,`usePointerDownOutside`);function Sr(e,t=globalThis?.document){let n=ur(e),r=O.useRef(!1);return O.useEffect(()=>{let e=fr(e=>{e.target&&!r.current&&wr(hr,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:fr(()=>r.current=!0,`onFocusCapture`),onBlurCapture:fr(()=>r.current=!1,`onBlurCapture`)}}fr(Sr,`useFocusOutside`);function Cr(){let e=new CustomEvent(pr);document.dispatchEvent(e)}fr(Cr,`dispatchUpdate`);function wr(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?Xt(i,a):i.dispatchEvent(a)}fr(wr,`handleAndDispatchCustomEvent`);var Tr=Object.defineProperty,Er=(e,t)=>Tr(e,`name`,{value:t,configurable:!0}),Dr=`focusScope.autoFocusOnMount`,Or=`focusScope.autoFocusOnUnmount`,kr={bubbles:!1,cancelable:!0},Ar=O.forwardRef(Er(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=O.useState(null),u=ur(a),d=ur(o),f=O.useRef(null),p=L(t,l),m=O.useRef(i);O.useEffect(()=>{m.current=i});let h=O.useCallback(e=>e?c?.contains(e)?!0:!!m.current?.some(t=>t.contains(e)):!1,[c]),g=O.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;O.useEffect(()=>{if(r){let e=function(e){if(g.paused||!c)return;let t=e.target;h(t)?f.current=t:Vr(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;t!==null&&(h(t)||Vr(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Vr(c)};Er(e,`handleFocusIn`),Er(t,`handleFocusOut`),Er(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]),O.useEffect(()=>{if(c){Hr.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(Dr,kr);c.addEventListener(Dr,u),c.dispatchEvent(t),t.defaultPrevented||(Fr(Gr(Lr(c)),{select:!0}),document.activeElement===e&&Vr(c))}return()=>{c.removeEventListener(Dr,u);let t=c.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(Or,kr);c.addEventListener(Or,d),c.dispatchEvent(r),r.defaultPrevented||Vr(e??t.body,{select:!0}),c.removeEventListener(Or,d),Hr.remove(g)},0)}}},[c,u,d,g]);let _=O.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]=Ir(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Vr(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Vr(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,z.jsx)(B.div,{tabIndex:-1,...s,ref:p,onKeyDown:_})},`FocusScope`)),jr=O.createContext(null);function Mr({registry:e,children:t}){return e?(0,z.jsx)(jr.Provider,{value:e,children:t}):t}Er(Mr,`FocusScopeBranchProvider`);function Nr(){let[e,t]=O.useState([]);return{nodes:e,registry:O.useMemo(()=>({add:Er(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:Er(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}Er(Nr,`useFocusScopeBranchRegistry`);function Pr(e){let t=O.useContext(jr);O.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}Er(Pr,`useFocusScopeBranch`);function Fr(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Vr(r,{select:t}),document.activeElement!==n)return}Er(Fr,`focusFirst`);function Ir(e){let t=Lr(e);return[Rr(t,e),Rr(t.reverse(),e)]}Er(Ir,`getTabbableEdges`);function Lr(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Er(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}Er(Lr,`getTabbableCandidates`);function Rr(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):zr(r,{upTo:t})))return r}Er(Rr,`findVisible`);function zr(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}Er(zr,`isHidden`);function Br(e){return e.tagName===`INPUT`&&typeof e.select==`function`}Er(Br,`isSelectableInput`);function Vr(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&Br(e)&&t&&e.select()}}Er(Vr,`focus`);var Hr=Ur();function Ur(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Wr(e,t),e.unshift(t)},remove(t){e=Wr(e,t),e[0]?.resume()}}}Er(Ur,`createFocusScopesStack`);function Wr(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Er(Wr,`arrayRemove`);function Gr(e){return e.filter(e=>e.tagName!==`A`)}Er(Gr,`removeLinks`);var Kr=Object.defineProperty,qr=O.forwardRef(((e,t)=>Kr(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=O.useState(!1);sn(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?qt.createPortal((0,z.jsx)(B.div,{...r,ref:t}),o):null},`Portal`)),Jr=Object.defineProperty,Yr=(e,t)=>Jr(e,`name`,{value:t,configurable:!0}),Xr=0,Zr=null;function Qr(e){return $r(),e.children}Yr(Qr,`FocusGuards`);function $r(){O.useEffect(()=>{Zr||={start:ei(),end:ei()};let{start:e,end:t}=Zr;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Xr++,()=>{Xr===1&&(Zr?.start.remove(),Zr?.end.remove(),Zr=null),Xr=Math.max(0,Xr-1)}},[])}Yr($r,`useFocusGuards`);function ei(){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}Yr(ei,`createFocusGuard`);var ti=function(){return ti=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},ti.apply(this,arguments)};function ni(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 ri(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 ii=`right-scroll-bar-position`,ai=`width-before-scroll-bar`,oi=`with-scroll-bars-hidden`,si=`--removed-body-scroll-bar-size`;function ci(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function li(e,t){var n=(0,O.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 ui=typeof window<`u`?O.useLayoutEffect:O.useEffect,di=new WeakMap;function fi(e,t){var n=li(t||null,function(t){return e.forEach(function(e){return ci(e,t)})});return ui(function(){var t=di.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||ci(e,null)}),i.forEach(function(e){r.has(e)||ci(e,a)})}di.set(n,e)},[e]),n}function pi(e){return e}function mi(e,t){t===void 0&&(t=pi);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 hi(e){e===void 0&&(e={});var t=mi(null);return t.options=ti({async:!0,ssr:!1},e),t}var gi=function(e){var t=e.sideCar,n=ni(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 O.createElement(r,ti({},n))};gi.isSideCarExport=!0;function _i(e,t){return e.useMedium(t),gi}var vi=hi(),yi=function(){},bi=O.forwardRef(function(e,t){var n=O.useRef(null),r=O.useState({onScrollCapture:yi,onWheelCapture:yi,onTouchMoveCapture:yi}),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`:_,y=e.gapMode,b=ni(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=fi([n,t]),C=ti(ti({},b),i);return O.createElement(O.Fragment,null,u&&O.createElement(x,{sideCar:vi,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?O.cloneElement(O.Children.only(s),ti(ti({},C),{ref:S})):O.createElement(v,ti({},C,{className:c,ref:S}),s))});bi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},bi.classNames={fullWidth:ai,zeroRight:ii};var xi=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Si(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=xi();return t&&e.setAttribute(`nonce`,t),e}function Ci(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function wi(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Ti=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Si())&&(Ci(t,n),wi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ei=function(){var e=Ti();return function(t,n){O.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Di=function(){var e=Ei();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Oi={left:0,top:0,right:0,gap:0},ki=function(e){return parseInt(e||``,10)||0},Ai=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[ki(n),ki(r),ki(i)]},ji=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Oi;var t=Ai(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])}},Mi=Di(),Ni=`data-scroll-locked`,Pi=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
11
- .${oi} {
12
- overflow: hidden ${r};
13
- padding-right: ${s}px ${r};
14
- }
15
- body[${Ni}] {
16
- overflow: hidden ${r};
17
- overscroll-behavior: contain;
18
- ${[t&&`position: relative ${r};`,n===`margin`&&`
19
- padding-left: ${i}px;
20
- padding-top: ${a}px;
21
- padding-right: ${o}px;
22
- margin-left:0;
23
- margin-top:0;
24
- margin-right: ${s}px ${r};
25
- `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
26
- }
27
-
28
- .${ii} {
29
- right: ${s}px ${r};
30
- }
31
-
32
- .${ai} {
33
- margin-right: ${s}px ${r};
34
- }
35
-
36
- .${ii} .${ii} {
37
- right: 0 ${r};
38
- }
39
-
40
- .${ai} .${ai} {
41
- margin-right: 0 ${r};
42
- }
43
-
44
- body[${Ni}] {
45
- ${si}: ${s}px;
46
- }
47
- `},Fi=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Ii=function(){O.useEffect(function(){return document.body.setAttribute(Ni,(Fi()+1).toString()),function(){var e=Fi()-1;e<=0?document.body.removeAttribute(Ni):document.body.setAttribute(Ni,e.toString())}},[])},Li=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Ii();var a=O.useMemo(function(){return ji(i)},[i]);return O.createElement(Mi,{styles:Pi(a,!t,i,n?``:`!important`)})},Ri=!1;if(typeof window<`u`)try{var zi=Object.defineProperty({},"passive",{get:function(){return Ri=!0,!0}});window.addEventListener(`test`,zi,zi),window.removeEventListener(`test`,zi,zi)}catch{Ri=!1}var Bi=Ri?{passive:!1}:!1,Vi=function(e){return e.tagName===`TEXTAREA`},Hi=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Vi(e)&&n[t]===`visible`)},Ui=function(e){return Hi(e,`overflowY`)},Wi=function(e){return Hi(e,`overflowX`)},Gi=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Ji(e,r)){var i=Yi(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ki=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},qi=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Ji=function(e,t){return e===`v`?Ui(t):Wi(t)},Yi=function(e,t){return e===`v`?Ki(t):qi(t)},Xi=function(e,t){return e===`h`&&t===`rtl`?-1:1},Zi=function(e,t,n,r,i){var a=Xi(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=Yi(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Ji(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},Qi=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$i=function(e){return[e.deltaX,e.deltaY]},ea=function(e){return e&&`current`in e?e.current:e},ta=function(e,t){return e[0]===t[0]&&e[1]===t[1]},na=function(e){return`
48
- .block-interactivity-${e} {pointer-events: none;}
49
- .allow-interactivity-${e} {pointer-events: all;}
50
- `},H=0,ra=[];function ia(e){var t=O.useRef([]),n=O.useRef([0,0]),r=O.useRef(),i=O.useState(H++)[0],a=O.useState(Di)[0],o=O.useRef(e);O.useEffect(function(){o.current=e},[e]),O.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=ri([e.lockRef.current],(e.shards||[]).map(ea),!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=O.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Qi(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=Gi(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Gi(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 Zi(h,t,e,h===`h`?s:c,!0)},[]),c=O.useCallback(function(e){var n=e;if(ra.length&&ra[ra.length-1]===a){var r=`deltaY`in n?$i(n):Qi(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&ta(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(ea).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=O.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:aa(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=O.useCallback(function(e){n.current=Qi(e),r.current=void 0},[]),d=O.useCallback(function(t){l(t.type,$i(t),t.target,s(t,e.lockRef.current))},[]),f=O.useCallback(function(t){l(t.type,Qi(t),t.target,s(t,e.lockRef.current))},[]);O.useEffect(function(){return ra.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Bi),document.addEventListener(`touchmove`,c,Bi),document.addEventListener(`touchstart`,u,Bi),function(){ra=ra.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Bi),document.removeEventListener(`touchmove`,c,Bi),document.removeEventListener(`touchstart`,u,Bi)}},[]);var p=e.removeScrollBar,m=e.inert;return O.createElement(O.Fragment,null,m?O.createElement(a,{styles:na(i)}):null,p?O.createElement(Li,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function aa(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var oa=_i(vi,ia),sa=O.forwardRef(function(e,t){return O.createElement(bi,ti({},e,{ref:t,sideCar:oa}))});sa.classNames=bi.classNames;var ca=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},la=new WeakMap,ua=new WeakMap,da={},fa=0,pa=function(e){return e&&(e.host||pa(e.parentNode))},ma=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=pa(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})},ha=function(e,t,n,r){var i=ma(t,Array.isArray(e)?e:[e]);da[n]||(da[n]=new WeakMap);var a=da[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=(la.get(e)||0)+1,l=(a.get(e)||0)+1;la.set(e,c),a.set(e,l),o.push(e),c===1&&i&&ua.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(),fa++,function(){o.forEach(function(e){var t=la.get(e)-1,i=a.get(e)-1;la.set(e,t),a.set(e,i),t||(ua.has(e)||e.removeAttribute(r),ua.delete(e)),i||e.removeAttribute(n)}),fa--,fa||(la=new WeakMap,la=new WeakMap,ua=new WeakMap,da={})}},ga=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||ca(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),ha(r,i,n,`aria-hidden`)):function(){return null}},_a=Object.defineProperty,va=(e,t)=>_a(e,`name`,{value:t,configurable:!0}),ya=`Dialog`,[ba,xa]=an(ya),[Sa,Ca]=ba(ya),wa=va(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=O.useRef(null),c=O.useRef(null),{nodes:l,registry:u}=Nr(),[d,f]=Ln({prop:r,defaultProp:i??!1,onChange:a,caller:ya}),[p,m]=O.useState(0),[h,g]=O.useState(0);return(0,z.jsx)(Sa,{scope:t,triggerRef:s,contentRef:c,contentId:tr(),titleId:tr(),descriptionId:tr(),titlePresent:p>0,descriptionPresent:h>0,setTitleCount:m,setDescriptionCount:g,open:d,onOpenChange:f,onOpenToggle:O.useCallback(()=>f(e=>!e),[f]),modal:o,branchNodes:l,branchRegistry:u,children:n})},`Dialog`),Ta=`DialogPortal`,[Ea,Da]=ba(Ta,{forceMount:void 0}),Oa=va(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Ca(Ta,t);return(0,z.jsx)(Ea,{scope:t,forceMount:n,children:O.Children.map(r,e=>(0,z.jsx)(Gn,{present:n||a.open,children:(0,z.jsx)(qr,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),ka=`DialogOverlay`,Aa=O.forwardRef(va(function(e,t){let n=Da(ka,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Ca(ka,e.__scopeDialog);return a.modal?(0,z.jsx)(Gn,{present:r||a.open,children:(0,z.jsx)(Ma,{...i,ref:t})}):null},`DialogOverlay`)),ja=At(`DialogOverlay.RemoveScroll`),Ma=O.forwardRef(va(function(e,t){let{__scopeDialog:n,...r}=e,i=Ca(ka,n),a=L(t,yr());return(0,z.jsx)(sa,{as:ja,allowPinchZoom:!0,shards:O.useMemo(()=>[i.contentRef,...i.branchNodes.map(e=>({current:e}))],[i.contentRef,i.branchNodes]),children:(0,z.jsx)(B.div,{"data-state":Ua(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),Na=`DialogContent`,Pa=O.forwardRef(va(function(e,t){let n=Da(Na,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Ca(Na,e.__scopeDialog);return(0,z.jsx)(Gn,{present:r||a.open,children:a.modal?(0,z.jsx)(Fa,{...i,ref:t}):(0,z.jsx)(Ia,{...i,ref:t})})},`DialogContent`)),Fa=O.forwardRef(va(function(e,t){let n=Ca(Na,e.__scopeDialog),r=O.useRef(null),i=L(t,n.contentRef,r);return O.useEffect(()=>{let e=r.current;if(e)return ga(e)},[]),(0,z.jsx)(La,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),Ia=O.forwardRef(va(function(e,t){let n=Ca(Na,e.__scopeDialog),r=O.useRef(!1),i=O.useRef(!1);return(0,z.jsx)(La,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),La=O.forwardRef(va(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=Ca(Na,n);return $r(),(0,z.jsx)(Mr,{registry:l.branchRegistry,children:(0,z.jsx)(Ar,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,z.jsx)(vr,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?Ha(o,l.descriptionId):o,"data-state":Ua(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),Ra=O.forwardRef(va(function(e,t){let{__scopeDialog:n,...r}=e,i=Ca(`DialogTitle`,n),{setTitleCount:a}=i;return sn(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,z.jsx)(B.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),za=O.forwardRef(va(function(e,t){let{__scopeDialog:n,...r}=e,i=Ca(`DialogDescription`,n),{setDescriptionCount:a}=i;return sn(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,z.jsx)(B.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),Ba=`DialogClose`,Va=O.forwardRef(va(function(e,t){let{__scopeDialog:n,...r}=e,i=Ca(Ba,n);return(0,z.jsx)(B.button,{type:`button`,...r,ref:t,onClick:V(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function Ha(...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}va(Ha,`concatAriaDescribedby`);function Ua(e){return e?`open`:`closed`}va(Ua,`getState`);var Wa=Object.defineProperty,Ga=(e,t)=>Wa(e,`name`,{value:t,configurable:!0});function Ka(e){let[t,n]=O.useState(void 0);return sn(()=>{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}Ga(Ka,`useSize`);var qa=Object.defineProperty,Ja=(e,t)=>qa(e,`name`,{value:t,configurable:!0}),Ya=`Checkbox`,[Xa,Za]=an(Ya),[Qa,$a]=Xa(Ya);function eo(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=Ln({prop:n,defaultProp:i??!1,onChange:c,caller:Ya}),[m,h]=O.useState(null),[g,_]=O.useState(null),[v,y]=O.useState(null),b=!m||!!o||!!m.closest(`form`),x={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,userClick:v,onUserClick:y,required:l,defaultChecked:!lo(i)&&i,isFormControl:b,bubbleInput:g,setBubbleInput:_};return(0,z.jsx)(Qa,{scope:t,...x,children:co(d)?d(x):r})}Ja(eo,`CheckboxProvider`);var to=`CheckboxTrigger`,no=O.forwardRef(Ja(function({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i){let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,onUserClick:f,isFormControl:p,bubbleInput:m}=$a(to,e),h=L(i,u),g=O.useRef(c);return O.useEffect(()=>{let e=a?.form;if(e){let t=Ja(()=>d(g.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,z.jsx)(B.button,{type:`button`,role:`checkbox`,"aria-checked":lo(c)?`mixed`:c,"aria-required":l,"data-state":uo(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:h,onKeyDown:V(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:V(n,e=>{let t=e.isPropagationStopped();f({requestedChecked:lo(c)?!0:!c,hasConsumerStoppedPropagation:t}),d(e=>lo(e)?!0:!e),m&&p&&(t||e.stopPropagation())})})},`CheckboxTrigger`)),ro=O.forwardRef(Ja(function(e,t){let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,z.jsx)(eo,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(no,{...d,ref:t,__scopeCheckbox:n}),e&&(0,z.jsx)(so,{__scopeCheckbox:n})]})})},`Checkbox`)),io=`CheckboxIndicator`,ao=O.forwardRef(Ja(function(e,t){let{__scopeCheckbox:n,forceMount:r,...i}=e,a=$a(io,n);return(0,z.jsx)(Gn,{present:r||lo(a.checked)||a.checked===!0,children:(0,z.jsx)(B.span,{"data-state":uo(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})},`CheckboxIndicator`)),oo=`CheckboxBubbleInput`,so=O.forwardRef(Ja(function({__scopeCheckbox:e,onClick:t,...n},r){let{control:i,userClick:a,checked:o,defaultChecked:s,required:c,disabled:l,name:u,value:d,form:f,bubbleInput:p,setBubbleInput:m}=$a(oo,e),h=L(r,m),g=Ka(i),_=O.useRef(!1),v=O.useRef(o),y=O.useRef(a),b=O.useRef(null);O.useEffect(()=>{let e=p;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set;if(!n)return;let r=v.current!==o;v.current=o;let i=a!==null&&a!==y.current;if(y.current=a,i)b.current=r?null:a,r&&(e.indeterminate=lo(o),n.call(e,!lo(o)&&o)),e.dispatchEvent(new Event(`click`,{bubbles:!a.hasConsumerStoppedPropagation}));else if(r){let t=b.current;b.current=null;let r=t?.requestedChecked===o;_.current=!0,e.indeterminate=lo(o),n.call(e,!lo(o)&&o),e.dispatchEvent(new Event(`click`,{bubbles:!(r&&t.hasConsumerStoppedPropagation)})),_.current=!1}},[p,o,a]);let x=O.useRef(!lo(o)&&o);return(0,z.jsx)(B.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:s??x.current,required:c,disabled:l,name:u,value:d,form:f,...n,tabIndex:-1,ref:h,onClick:V(t,e=>{_.current&&e.stopPropagation()}),style:{...n.style,...g,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`CheckboxBubbleInput`));function co(e){return typeof e==`function`}Ja(co,`isFunction`);function lo(e){return e===`indeterminate`}Ja(lo,`isIndeterminate`);function uo(e){return lo(e)?`indeterminate`:e?`checked`:`unchecked`}Ja(uo,`getState`);var fo=[`top`,`right`,`bottom`,`left`],po=Math.min,mo=Math.max,ho=Math.round,go=Math.floor,_o=e=>({x:e,y:e}),vo={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function yo(e,t,n){return mo(e,po(t,n))}function bo(e,t){return typeof e==`function`?e(t):e}function xo(e){return e.split(`-`)[0]}function So(e){return e.split(`-`)[1]}function Co(e){return e===`x`?`y`:`x`}function wo(e){return e===`y`?`height`:`width`}function To(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Eo(e){return Co(To(e))}function Do(e,t,n){n===void 0&&(n=!1);let r=So(e),i=Eo(e),a=wo(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Io(o)),[o,Io(o)]}function Oo(e){let t=Io(e);return[ko(e),t,ko(t)]}function ko(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ao=[`left`,`right`],jo=[`right`,`left`],Mo=[`top`,`bottom`],No=[`bottom`,`top`];function Po(e,t,n){switch(e){case`top`:case`bottom`:return n?t?jo:Ao:t?Ao:jo;case`left`:case`right`:return t?Mo:No;default:return[]}}function Fo(e,t,n,r){let i=So(e),a=Po(xo(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ko)))),a}function Io(e){let t=xo(e);return vo[t]+e.slice(t.length)}function Lo(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Ro(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Lo(e)}function zo(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 Bo(e,t,n){let{reference:r,floating:i}=e,a=To(t),o=Eo(t),s=wo(o),c=xo(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=So(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function U(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}=bo(t,e),p=Ro(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=zo(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=zo(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 Vo=50,Ho=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:U},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Bo(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<Vo&&(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}=Bo(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Uo=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}=bo(e,t)||{};if(l==null)return{};let d=Ro(u),f={x:n,y:r},p=Eo(i),m=wo(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=po(d[_],T),D=po(d[v],T),O=C-h[m]-D,ee=C/2-h[m]/2+w,k=yo(E,ee,O),te=!c.arrow&&So(i)!=null&&ee!==k&&a.reference[m]/2-(ee<E?E:D)-h[m]/2<0,A=te?ee<E?ee-E:ee-O:0;return{[p]:f[p]+A,data:{[p]:k,centerOffset:ee-k-A,...te&&{alignmentOffset:A}},reset:te}}}),Wo=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}=bo(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=xo(r),_=To(o),v=xo(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Io(o)]:Oo(o)),x=p!==`none`;!d&&x&&b.push(...Fo(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=Do(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`||_===To(t)||T.every(e=>To(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=To(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 Go(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ko(e){return fo.some(t=>e[t]>=0)}var qo=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=bo(e,t);switch(i){case`referenceHidden`:{let e=Go(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ko(e)}}}case`escaped`:{let e=Go(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ko(e)}}}default:return{}}}}},Jo=new Set([`left`,`top`]);async function Yo(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=xo(n),s=So(n),c=To(n)===`y`,l=Jo.has(o)?-1:1,u=a&&c?-1:1,d=bo(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 Xo=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 Yo(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}}}}},Zo=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}=bo(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=To(i),p=Co(f),m=u[p],h=u[f],g=(e,t)=>yo(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}}}}}},Qo=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}=bo(e,t),u={x:n,y:r},d=To(i),f=Co(d),p=u[f],m=u[d],h=bo(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=Jo.has(xo(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}}}},$o=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}=bo(e,t),c=await i.detectOverflow(t,s),l=xo(n),u=So(n),d=To(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=po(p-c[m],g),y=po(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*mo(c.left,c.right):S=p-2*mo(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 es(){return typeof window<`u`}function ts(e){return is(e)?(e.nodeName||``).toLowerCase():`#document`}function ns(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rs(e){return((is(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function is(e){return es()?e instanceof Node||e instanceof ns(e).Node:!1}function as(e){return es()?e instanceof Element||e instanceof ns(e).Element:!1}function os(e){return es()?e instanceof HTMLElement||e instanceof ns(e).HTMLElement:!1}function ss(e){return!es()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof ns(e).ShadowRoot}function cs(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ys(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ls(e){return/^(table|td|th)$/.test(ts(e))}function us(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ds=/transform|translate|scale|rotate|perspective|filter/,fs=/paint|layout|strict|content/,ps=e=>!!e&&e!==`none`,ms;function hs(e){let t=as(e)?ys(e):e;return ps(t.transform)||ps(t.translate)||ps(t.scale)||ps(t.rotate)||ps(t.perspective)||!_s()&&(ps(t.backdropFilter)||ps(t.filter))||ds.test(t.willChange||``)||fs.test(t.contain||``)}function gs(e){let t=xs(e);for(;os(t)&&!vs(t);){if(hs(t))return t;if(us(t))return null;t=xs(t)}return null}function _s(){return ms??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ms}function vs(e){return/^(html|body|#document)$/.test(ts(e))}function ys(e){return ns(e).getComputedStyle(e)}function bs(e){return as(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xs(e){if(ts(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ss(e)&&e.host||rs(e);return ss(t)?t.host:t}function Ss(e){let t=xs(e);return vs(t)?(e.ownerDocument||e).body:os(t)&&cs(t)?t:Ss(t)}function Cs(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ss(e),i=r===e.ownerDocument?.body,a=ns(r);if(i){let e=ws(a);return t.concat(a,a.visualViewport||[],cs(r)?r:[],e&&n?Cs(e):[])}return t.concat(r,Cs(r,[],n))}function ws(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ts(e){let t=ys(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=os(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ho(n)!==a||ho(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Es(e){return as(e)?e:e.contextElement}function Ds(e){let t=Es(e);if(!os(t))return _o(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ts(t),o=(a?ho(n.width):n.width)/r,s=(a?ho(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Os=_o(0);function ks(e){let t=ns(e);return!_s()||!t.visualViewport?Os:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function As(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===ns(e)}function js(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Es(e),o=_o(1);t&&(r?as(r)&&(o=Ds(r)):o=Ds(e));let s=As(a,n,r)?ks(a):_o(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=ns(a),t=as(r)?ns(r):r,n=e,i=ws(n);for(;i&&t!==n;){let e=Ds(i),t=i.getBoundingClientRect(),r=ys(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=ns(i),i=ws(n)}}return zo({width:u,height:d,x:c,y:l})}function Ms(e,t){let n=bs(e).scrollLeft;return t?t.left+n:js(rs(e)).left+n}function Ns(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ms(e,n),y:n.top+t.scrollTop}}function Ps(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=rs(r),s=t?us(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=_o(1),u=_o(0),d=os(r);if((d||!a)&&((ts(r)!==`body`||cs(o))&&(c=bs(r)),d)){let e=js(r);l=Ds(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ns(o,c):_o(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 Fs(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Is(e){let t=bs(e),n=e.ownerDocument.body,r=mo(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=mo(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Ms(e),o=-t.scrollTop;return ys(n).direction===`rtl`&&(a+=mo(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Ls=25;function Rs(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=ns(e),a=rs(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!_s()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Ms(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<=Ls&&(s-=o)}return{width:s,height:c,x:l,y:u}}function zs(e,t){let n=js(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ds(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Bs(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Rs(e,n,t);else if(t===`document`)r=Is(rs(e));else if(as(t))r=zs(t,n);else{let n=ks(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return zo(r)}function Vs(e,t){let n=t.get(e);if(n)return n;let r=Cs(e,[],!1).filter(e=>as(e)&&ts(e)!==`body`),i=null,a=ys(e).position===`fixed`,o=a?xs(e):e;for(;as(o)&&!vs(o);){let e=ys(o),t=hs(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=xs(o)}return t.set(e,r),r}function Hs(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?us(t)?[]:Vs(t,this._c):[].concat(n),r],o=Bs(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=Bs(t,a[e],i);s=mo(n.top,s),c=po(n.right,c),l=po(n.bottom,l),u=mo(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Us(e){let{width:t,height:n}=Ts(e);return{width:t,height:n}}function Ws(e,t,n){let r=os(t),i=rs(t),a=n===`fixed`,o=js(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=_o(0);if((r||!a)&&((ts(t)!==`body`||cs(i))&&(s=bs(t)),r)){let e=js(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Ms(i));let l=i&&!r&&!a?Ns(i,s):_o(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 Gs(e){return ys(e).position===`static`}function Ks(e,t){if(!os(e)||ys(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return rs(e)===n&&(n=n.ownerDocument.body),n}function qs(e,t){let n=ns(e);if(us(e))return n;if(!os(e)){let t=xs(e);for(;t&&!vs(t);){if(as(t)&&!Gs(t))return t;t=xs(t)}return n}let r=Ks(e,t);for(;r&&ls(r)&&Gs(r);)r=Ks(r,t);return r&&vs(r)&&Gs(r)&&!hs(r)?n:r||gs(e)||n}var Js=async function(e){let t=this.getOffsetParent||qs,n=this.getDimensions,r=await n(e.floating);return{reference:Ws(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ys(e){return ys(e).direction===`rtl`}var Xs={convertOffsetParentRelativeRectToViewportRelativeRect:Ps,getDocumentElement:rs,getClippingRect:Hs,getOffsetParent:qs,getElementRects:Js,getClientRects:Fs,getDimensions:Us,getScale:Ds,isElement:as,isRTL:Ys};function Zs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Qs(e,t,n){let r=null,i,a=rs(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=go(d),h=go(a.clientWidth-(u+f)),g=go(a.clientHeight-(d+p)),_=go(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:mo(0,po(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Zs(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=ns(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function $s(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=Es(e),u=i||a?[...l?Cs(l):[],...t?Cs(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Qs(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?js(e):null;c&&g();function g(){let t=js(e);h&&!Zs(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 ec=Xo,tc=Zo,nc=Wo,rc=$o,ic=qo,ac=Uo,oc=Qo,sc=(e,t,n)=>{let r=new Map,i=n??{},a={...Xs,...i.platform,_c:r};return Ho(e,t,{...i,platform:a})},cc=typeof document<`u`?O.useLayoutEffect:function(){};function lc(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(!lc(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)&&!lc(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function uc(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dc(e,t){let n=uc(e);return Math.round(t*n)/n}function fc(e){let t=O.useRef(e);return cc(()=>{t.current=e}),t}function pc(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]=O.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=O.useState(r);lc(f,r)||p(r);let[m,h]=O.useState(null),[g,_]=O.useState(null),v=O.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=O.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=O.useRef(null),C=O.useRef(null),w=O.useRef(u),T=c!=null,E=fc(c),D=fc(i),ee=fc(l),k=O.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),sc(S.current,C.current,e).then(e=>{let t={...e,isPositioned:ee.current!==!1};te.current&&!lc(w.current,t)&&(w.current=t,qt.flushSync(()=>{d(t)}))})},[f,t,n,D,ee]);cc(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let te=O.useRef(!1);cc(()=>(te.current=!0,()=>{te.current=!1}),[]),cc(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let A=O.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),ne=O.useMemo(()=>({reference:b,floating:x}),[b,x]),j=O.useMemo(()=>{let e={position:n,left:0,top:0};if(!ne.floating)return e;let t=dc(ne.floating,u.x),r=dc(ne.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...uc(ne.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,ne.floating,u.x,u.y]);return O.useMemo(()=>({...u,update:k,refs:A,elements:ne,floatingStyles:j}),[u,k,A,ne,j])}var mc=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?{}:ac({element:r.current,padding:i}).fn(n):r?ac({element:r,padding:i}).fn(n):{}}}},hc=(e,t)=>{let n=ec(e);return{name:n.name,fn:n.fn,options:[e,t]}},gc=(e,t)=>{let n=tc(e);return{name:n.name,fn:n.fn,options:[e,t]}},_c=(e,t)=>({fn:oc(e).fn,options:[e,t]}),vc=(e,t)=>{let n=nc(e);return{name:n.name,fn:n.fn,options:[e,t]}},yc=(e,t)=>{let n=rc(e);return{name:n.name,fn:n.fn,options:[e,t]}},bc=(e,t)=>{let n=ic(e);return{name:n.name,fn:n.fn,options:[e,t]}},xc=(e,t)=>{let n=mc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sc=Object.defineProperty,Cc=O.forwardRef(((e,t)=>Sc(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,z.jsx)(B.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,z.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),wc=Object.defineProperty,Tc=(e,t)=>wc(e,`name`,{value:t,configurable:!0}),Ec={Partial:`partial`,Always:`always`},Dc={Optimized:`optimized`,Always:`always`},Oc=`Popper`,[kc,Ac]=an(Oc),[jc,Mc]=kc(Oc),Nc=Tc(e=>{let{__scopePopper:t,children:n}=e,[r,i]=O.useState(null),[a,o]=O.useState(void 0);return(0,z.jsx)(jc,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Pc=`PopperAnchor`,Fc=O.forwardRef(Tc(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Mc(Pc,n),o=O.useRef(null),s=a.onAnchorChange,c=L(t,O.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=O.useRef(null);O.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Gc(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,z.jsx)(B.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),Ic=`PopperContent`,[Lc,Rc]=kc(Ic),zc=O.forwardRef(Tc(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=Ec.Partial,hideWhenDetached:f=!1,updatePositionStrategy:p=Dc.Optimized,onPlaced:m,...h}=e,g=Mc(Ic,n),[_,v]=O.useState(null),y=L(t,v),[b,x]=O.useState(null),S=Ka(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],ee=D.length>0,k={padding:E,boundary:D.filter(Uc),altBoundary:ee},{refs:te,floatingStyles:A,placement:ne,isPositioned:j,middlewareData:M}=pc({strategy:`fixed`,placement:T,whileElementsMounted:Tc((...e)=>$s(...e,{animationFrame:p===Dc.Always}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[hc({mainAxis:i+w,alignmentAxis:o}),c&&gc({mainAxis:!0,crossAxis:!1,...d===Ec.Partial?{limiter:_c()}:{},...k}),c&&vc({...k}),yc({...k,apply:Tc(({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`)}),b&&xc({element:b,padding:s}),Wc({arrowWidth:C,arrowHeight:w}),f&&bc(ee?{strategy:`referenceHidden`,...k}:{strategy:`referenceHidden`,padding:k.padding,altBoundary:k.altBoundary})]}),re=g.setPlacementState;sn(()=>(re(ne),()=>{re(void 0)}),[ne,re]);let[ie,ae]=Gc(ne),oe=ur(m);sn(()=>{j&&oe?.()},[j,oe]);let se=M.arrow?.x,ce=M.arrow?.y,N=M.arrow?.centerOffset!==0,[le,ue]=O.useState();return sn(()=>{_&&ue(window.getComputedStyle(_).zIndex)},[_]),(0,z.jsx)(`div`,{ref:te.setFloating,"data-radix-popper-content-wrapper":``,style:{...A,transform:j?A.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:le,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(` `),...M.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,z.jsx)(Lc,{scope:n,placedSide:ie,placedAlign:ae,onArrowChange:x,arrowX:se,arrowY:ce,shouldHideArrow:N,children:(0,z.jsx)(B.div,{"data-side":ie,"data-align":ae,...h,ref:y,style:{...h.style,animation:j?h.style?.animation:`none`}})})})},`PopperContent`)),Bc=`PopperArrow`,Vc={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Hc=O.forwardRef(Tc(function(e,t){let{__scopePopper:n,...r}=e,i=Rc(Bc,n),a=Vc[i.placedSide];return(0,z.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,z.jsx)(Cc,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function Uc(e){return e!==null}Tc(Uc,`isNotNull`);var Wc=Tc(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]=Gc(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 Gc(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Tc(Gc,`getSideAndAlignFromPlacement`);var Kc=Object.defineProperty,qc=(e,t)=>Kc(e,`name`,{value:t,configurable:!0}),Jc=!1;function Yc(){let[e,t]=O.useState(Jc);return O.useEffect(()=>{Jc||(Jc=!0,t(!0))},[]),e}qc(Yc,`useIsHydrated`);var Xc=O.useSyncExternalStore;function Zc(){return()=>{}}qc(Zc,`subscribe`);function Qc(){return Xc(Zc,()=>!0,()=>!1)}qc(Qc,`useIsHydratedModern`);var $c=typeof Xc==`function`?Qc:Yc,el=Object.defineProperty,tl=(e,t)=>el(e,`name`,{value:t,configurable:!0}),nl=`rovingFocusGroup.onEntryFocus`,rl={bubbles:!1,cancelable:!0},il=`RovingFocusGroup`,[al,ol,sl]=un(il),[cl,ll]=an(il,[sl]),ul={Vertical:`vertical`,Horizontal:`horizontal`},dl={LTR:`ltr`,RTL:`rtl`},[fl,pl]=cl(il),ml=O.forwardRef(tl(function(e,t){return(0,z.jsx)(al.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,z.jsx)(al.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,z.jsx)(hl,{...e,ref:t})})})},`RovingFocusGroup`)),hl=O.forwardRef(tl(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=O.useRef(null),p=L(t,f),m=or(a),[h,g]=Ln({prop:o,defaultProp:s??null,onChange:c,caller:il}),[_,v]=O.useState(!1),y=ur(l),b=ol(n),x=O.useRef(!1),[S,C]=O.useState(0);return O.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(nl,y),()=>e.removeEventListener(nl,y)},[y]),(0,z.jsx)(fl,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:O.useCallback(e=>g(e),[g]),onItemShiftTab:O.useCallback(()=>v(!0),[]),onFocusableItemAdd:O.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:O.useCallback(()=>C(e=>e-1),[]),children:(0,z.jsx)(B.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:V(e.onMouseDown,()=>{x.current=!0}),onFocus:V(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(nl,rl);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);xl([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:V(e.onBlur,()=>v(!1))})})},`RovingFocusGroupImpl`)),gl=`RovingFocusGroupItem`,_l=O.forwardRef(tl(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=tr(),l=a||c,u=pl(gl,n),d=u.currentTabStopId===l,f=ol(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=$c();return sn(()=>{if(g&&r)return p(),()=>m()},[g,r,p,m]),O.useEffect(()=>{if(!g&&r)return p(),()=>m()},[g,r,p,m]),(0,z.jsx)(al.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,z.jsx)(B.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:V(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:V(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:V(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=bl(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?Sl(n,r+1):n.slice(r+1)}setTimeout(()=>xl(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),vl={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function yl(e,t){return t===dl.RTL?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}tl(yl,`getDirectionAwareKey`);function bl(e,t,n){let r=yl(e.key,n);if(!(t===ul.Vertical&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===ul.Horizontal&&[`ArrowUp`,`ArrowDown`].includes(r)))return vl[r]}tl(bl,`getFocusIntent`);function xl(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}tl(xl,`focusFirst`);function Sl(e,t){return e.map((n,r)=>e[(t+r)%e.length])}tl(Sl,`wrapArray`);var Cl=Object.defineProperty,wl=(e,t)=>Cl(e,`name`,{value:t,configurable:!0}),Tl=[`Enter`,` `],El=[`ArrowDown`,`PageUp`,`Home`],Dl=[`ArrowUp`,`PageDown`,`End`],Ol=[...El,...Dl];[...Tl],[...Tl];var kl=`Menu`,[Al,jl,Ml]=un(kl),[Nl,Pl]=an(kl,[Ml,Ac,ll]),Fl=Ac(),Il=ll(),[Ll,Rl]=Nl(kl),[zl,Bl]=Nl(kl),Vl=wl(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Fl(t),[c,l]=O.useState(null),u=O.useRef(!1),d=ur(a),f=or(i);return O.useEffect(()=>{let e=wl(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=wl(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),O.useEffect(()=>{if(!n)return;let e=wl(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,z.jsx)(Nc,{...s,children:(0,z.jsx)(Ll,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,z.jsx)(zl,{scope:t,onClose:O.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),Hl=O.forwardRef(wl(function(e,t){let{__scopeMenu:n,...r}=e,i=Fl(n);return(0,z.jsx)(Fc,{...i,...r,ref:t})},`MenuAnchor`)),Ul=`MenuPortal`,[Wl,Gl]=Nl(Ul,{forceMount:void 0}),Kl=wl(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Rl(Ul,t);return(0,z.jsx)(Wl,{scope:t,forceMount:n,children:(0,z.jsx)(Gn,{present:n||a.open,children:(0,z.jsx)(qr,{asChild:!0,container:i,children:r})})})},`MenuPortal`),ql=`MenuContent`,[Jl,Yl]=Nl(ql),Xl=O.forwardRef(wl(function(e,t){let n=Gl(ql,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Rl(ql,e.__scopeMenu),o=Bl(ql,e.__scopeMenu);return(0,z.jsx)(Al.Provider,{scope:e.__scopeMenu,children:(0,z.jsx)(Gn,{present:r||a.open,children:(0,z.jsx)(Al.Slot,{scope:e.__scopeMenu,children:o.modal?(0,z.jsx)(Zl,{...i,ref:t}):(0,z.jsx)(Ql,{...i,ref:t})})})})},`MenuContent`)),Zl=O.forwardRef(wl(function(e,t){let n=Rl(ql,e.__scopeMenu),r=O.useRef(null),i=L(t,r);return O.useEffect(()=>{let e=r.current;if(e)return ga(e)},[]),(0,z.jsx)(eu,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),Ql=O.forwardRef(wl(function(e,t){let n=Rl(ql,e.__scopeMenu);return(0,z.jsx)(eu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),$l=At(`MenuContent.ScrollLock`),eu=O.forwardRef(wl(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=Rl(ql,n),_=Bl(ql,n),v=Fl(n),y=Il(n),b=jl(n),[x,S]=O.useState(null),C=O.useRef(null),[w,T]=O.useState(null);Pr(w);let{nodes:E,registry:D}=Nr(),ee=!!(i||m),k=L(t,C,g.onContentChange,T),te=O.useRef(0),A=O.useRef(``),ne=O.useRef(0),j=O.useRef(null),M=O.useRef(`right`),re=O.useRef(0),ie=O.useMemo(()=>m?[C,...E.map(e=>({current:e}))]:[],[C,E,m]),ae=m?sa:O.Fragment,oe=m?{as:$l,allowPinchZoom:!0,shards:ie}:void 0,se=wl(e=>{let t=A.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=yu(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;function s(e){A.current=e,window.clearTimeout(te.current),e!==``&&(te.current=window.setTimeout(()=>s(``),1e3))}wl(s,`updateSearch`),s(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);O.useEffect(()=>()=>window.clearTimeout(te.current),[]),$r();let ce=O.useCallback(e=>M.current===j.current?.side&&xu(e,j.current?.area),[]);return(0,z.jsx)(Jl,{scope:n,searchRef:A,onItemEnter:O.useCallback(e=>{ce(e)&&e.preventDefault()},[ce]),onItemLeave:O.useCallback(e=>{ce(e)||(C.current?.focus(),S(null))},[ce]),onTriggerLeave:O.useCallback(e=>{ce(e)&&e.preventDefault()},[ce]),pointerGraceTimerRef:ne,onPointerGraceIntentChange:O.useCallback(e=>{j.current=e},[]),children:(0,z.jsx)(Mr,{registry:ee?D:null,children:(0,z.jsx)(ae,{...oe,children:(0,z.jsx)(Ar,{asChild:!0,trapped:i,branches:E,onMountAutoFocus:V(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,z.jsx)(vr,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,z.jsx)(ml,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:V(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,z.jsx)(zc,{role:`menu`,"aria-orientation":`vertical`,"data-state":mu(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:k,style:{outline:`none`,...h.style},onKeyDown:V(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&se(e.key));let i=C.current;if(e.target!==i||!Ol.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);Dl.includes(e.key)&&a.reverse(),_u(a)}),onBlur:V(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(te.current),A.current=``)}),onPointerMove:V(e.onPointerMove,Su(e=>{let t=e.target,n=re.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>re.current?`right`:`left`;M.current=t,re.current=e.clientX}}))})})})})})})})},`MenuContentImpl`)),tu=`MenuItem`,nu=`menu.itemSelect`,ru=O.forwardRef(wl(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=O.useRef(null),o=Bl(tu,e.__scopeMenu),s=Yl(tu,e.__scopeMenu),c=L(t,a),l=O.useRef(!1),u=wl(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(nu,{bubbles:!0,cancelable:!0});e.addEventListener(nu,e=>r?.(e),{once:!0}),Xt(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,z.jsx)(iu,{...i,ref:c,disabled:n,onClick:V(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:V(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&Tl.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),iu=O.forwardRef(wl(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Yl(tu,n),s=Il(n),c=O.useRef(null),l=L(t,c),[u,d]=O.useState(!1),[f,p]=O.useState(``);return O.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,z.jsx)(Al.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,z.jsx)(_l,{asChild:!0,...s,focusable:!r,children:(0,z.jsx)(B.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:V(e.onPointerMove,Su(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,Su(e=>o.onItemLeave(e))),onFocus:V(e.onFocus,()=>d(!0)),onBlur:V(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),au=O.forwardRef(wl(function(e,t){let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,z.jsx)(lu,{scope:e.__scopeMenu,checked:n,children:(0,z.jsx)(ru,{role:`menuitemcheckbox`,"aria-checked":hu(n)?`mixed`:n,...i,ref:t,"data-state":gu(n),onSelect:V(i.onSelect,()=>r?.(hu(n)?!0:!n),{checkForDefaultPrevented:!1})})})},`MenuCheckboxItem`)),[ou,su]=Nl(`MenuRadioGroup`,{value:void 0,onValueChange:wl(()=>{},`onValueChange`)}),cu=`MenuItemIndicator`,[lu,uu]=Nl(cu,{checked:!1}),du=O.forwardRef(wl(function(e,t){let{__scopeMenu:n,forceMount:r,...i}=e,a=uu(cu,n);return(0,z.jsx)(Gn,{present:r||hu(a.checked)||a.checked===!0,children:(0,z.jsx)(B.span,{...i,ref:t,"data-state":gu(a.checked)})})},`MenuItemIndicator`)),[fu,pu]=Nl(`MenuSub`);function mu(e){return e?`open`:`closed`}wl(mu,`getOpenState`);function hu(e){return e===`indeterminate`}wl(hu,`isIndeterminate`);function gu(e){return hu(e)?`indeterminate`:e?`checked`:`unchecked`}wl(gu,`getCheckedState`);function _u(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}wl(_u,`focusFirst`);function vu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}wl(vu,`wrapArray`);function yu(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=vu(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}wl(yu,`getNextMatch`);function bu(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}wl(bu,`isPointInPolygon`);function xu(e,t){return t?bu({x:e.clientX,y:e.clientY},t):!1}wl(xu,`isPointerInGraceArea`);function Su(e){return t=>t.pointerType===`mouse`?e(t):void 0}wl(Su,`whenMouse`);var Cu=Object.defineProperty,wu=(e,t)=>Cu(e,`name`,{value:t,configurable:!0}),Tu=`DropdownMenu`,[Eu,Du]=an(Tu,[Pl]),Ou=Pl(),[ku,Au]=Eu(Tu),ju=wu(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=Ou(t),l=O.useRef(null),[u,d]=Ln({prop:i,defaultProp:a??!1,onChange:o,caller:Tu});return(0,z.jsx)(ku,{scope:t,triggerId:tr(),triggerRef:l,contentId:tr(),open:u,onOpenChange:d,onOpenToggle:O.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,z.jsx)(Vl,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),Mu=`DropdownMenuTrigger`,Nu=O.forwardRef(wu(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Au(Mu,n),o=Ou(n),s=L(t,a.triggerRef);return(0,z.jsx)(Hl,{asChild:!0,...o,children:(0,z.jsx)(B.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:V(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:V(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),Pu=wu(e=>{let{__scopeDropdownMenu:t,...n}=e,r=Ou(t);return(0,z.jsx)(Kl,{...r,...n})},`DropdownMenuPortal`),Fu=`DropdownMenuContent`,Iu=O.forwardRef(wu(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Au(Fu,n),a=Ou(n),o=O.useRef(!1);return(0,z.jsx)(Xl,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:V(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),Lu=O.forwardRef(wu(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Ou(n);return(0,z.jsx)(ru,{...i,...r,ref:t})},`DropdownMenuItem`)),Ru=O.forwardRef(wu(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Ou(n);return(0,z.jsx)(au,{...i,...r,ref:t})},`DropdownMenuCheckboxItem`)),zu=O.forwardRef(wu(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Ou(n);return(0,z.jsx)(du,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),Bu=Object.defineProperty,Vu=(e,t)=>Bu(e,`name`,{value:t,configurable:!0}),Hu=`Popover`,[Uu,Wu]=an(Hu,[Ac]),Gu=Ac(),[Ku,qu]=Uu(Hu),Ju=Vu(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Gu(t),c=O.useRef(null),[l,u]=O.useState(!1),[d,f]=O.useState(0),[p,m]=O.useState(0),[h,g]=Ln({prop:r,defaultProp:i??!1,onChange:a,caller:Hu});return(0,z.jsx)(Nc,{...s,children:(0,z.jsx)(Ku,{scope:t,contentId:tr(),titleId:tr(),descriptionId:tr(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,triggerRef:c,open:h,onOpenChange:g,onOpenToggle:O.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:l,onCustomAnchorAdd:O.useCallback(()=>u(!0),[]),onCustomAnchorRemove:O.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),Yu=`PopoverAnchor`,Xu=O.forwardRef(Vu(function(e,t){let{__scopePopover:n,...r}=e,i=qu(Yu,n),a=Gu(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return O.useEffect(()=>(o(),()=>s()),[o,s]),(0,z.jsx)(Fc,{...a,...r,ref:t})},`PopoverAnchor`)),Zu=`PopoverTrigger`,Qu=O.forwardRef(Vu(function(e,t){let{__scopePopover:n,...r}=e,i=qu(Zu,n),a=Gu(n),o=L(t,i.triggerRef),s=(0,z.jsx)(B.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":od(i.open),...r,ref:o,onClick:V(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,z.jsx)(Fc,{asChild:!0,...a,children:s})},`PopoverTrigger`)),$u=`PopoverPortal`,[ed,td]=Uu($u,{forceMount:void 0}),W=Vu(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=qu($u,t);return(0,z.jsx)(ed,{scope:t,forceMount:n,children:(0,z.jsx)(Gn,{present:n||a.open,children:(0,z.jsx)(qr,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),nd=`PopoverContent`,G=O.forwardRef(Vu(function(e,t){let n=td(nd,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=qu(nd,e.__scopePopover);return(0,z.jsx)(Gn,{present:r||a.open,children:a.modal?(0,z.jsx)(rd,{...i,ref:t}):(0,z.jsx)(id,{...i,ref:t})})},`PopoverContent`)),K=At(`PopoverContent.RemoveScroll`),rd=O.forwardRef(Vu(function(e,t){let n=qu(nd,e.__scopePopover),r=O.useRef(null),i=L(t,r),a=O.useRef(!1),{nodes:o,registry:s}=Nr();return O.useEffect(()=>{let e=r.current;if(e)return ga(e)},[]),(0,z.jsx)(sa,{as:K,allowPinchZoom:!0,shards:O.useMemo(()=>[r,...o.map(e=>({current:e}))],[r,o]),children:(0,z.jsx)(ad,{...e,ref:i,branchNodes:o,branchRegistry:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),id=O.forwardRef(Vu(function(e,t){let n=qu(nd,e.__scopePopover),r=O.useRef(!1),i=O.useRef(!1);return(0,z.jsx)(ad,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),ad=O.forwardRef(Vu(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,"aria-describedby":d,branchNodes:f,branchRegistry:p,...m}=e,h=qu(nd,n),g=Gu(n),[_,v]=O.useState(null),y=L(t,v);return Pr(_),$r(),(0,z.jsx)(Mr,{registry:p,children:(0,z.jsx)(Ar,{asChild:!0,loop:!0,trapped:r,branches:f,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,z.jsx)(vr,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,z.jsx)(zc,{"data-state":od(h.open),role:`dialog`,id:h.contentId,"aria-labelledby":h.titlePresent?h.titleId:void 0,"aria-describedby":h.descriptionPresent?sd(d,h.descriptionId):d,...g,...m,ref:y,style:{...m.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})})},`PopoverContentImpl`));function od(e){return e?`open`:`closed`}Vu(od,`getState`);function sd(...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}Vu(sd,`concatAriaDescribedby`);var cd=Object.defineProperty,q=(e,t)=>cd(e,`name`,{value:t,configurable:!0}),[ld,ud]=an(`Tooltip`,[Ac]),dd=Ac(),fd=`TooltipProvider`,pd=700,md=`tooltip.open`,[hd,gd]=ld(fd),_d=q(e=>{let{__scopeTooltip:t,delayDuration:n=pd,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=O.useRef(!0),s=O.useRef(!1),c=O.useRef(0);return O.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,z.jsx)(hd,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:O.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:O.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:O.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),vd=`Tooltip`,[yd,bd]=ld(vd),xd=q(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=gd(vd,e.__scopeTooltip),l=dd(t),[u,d]=O.useState(null),[f,p]=O.useState(void 0),m=tr(),h=O.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,v=O.useRef(!1),[y,b]=Ln({prop:r,defaultProp:i??!1,onChange:q(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(md))):c.onClose(),a?.(e)},`onChange`),caller:vd}),x=O.useMemo(()=>y?v.current?`delayed-open`:`instant-open`:`closed`,[y]),S=O.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,b(!0)},[b]),C=O.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),w=O.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,b(!0),h.current=0},_)},[_,b]);O.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let T=f??m;return(0,z.jsx)(Nc,{...l,children:(0,z.jsx)(yd,{scope:t,contentId:T,setContentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:O.useCallback(()=>{c.isOpenDelayedRef.current?w():S()},[c.isOpenDelayedRef,w,S]),onTriggerLeave:O.useCallback(()=>{g?C():(window.clearTimeout(h.current),h.current=0)},[C,g]),onOpen:S,onClose:C,disableHoverableContent:g,children:n})})},`Tooltip`),Sd=`TooltipTrigger`,Cd=O.forwardRef(q(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=bd(Sd,n),o=gd(Sd,n),s=dd(n),c=L(t,O.useRef(null),a.onTriggerChange),l=O.useRef(!1),u=O.useRef(!1),d=O.useCallback(()=>l.current=!1,[]);return O.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,z.jsx)(Fc,{asChild:!0,...s,children:(0,z.jsx)(B.button,{"aria-describedby":a.open?Bd(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:c,onPointerMove:V(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:V(e.onPointerDown,()=>{a.open&&a.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:V(e.onFocus,()=>{l.current||a.onOpen()}),onBlur:V(e.onBlur,a.onClose),onClick:V(e.onClick,a.onClose)})})},`TooltipTrigger`)),wd=`TooltipPortal`,[Td,Ed]=ld(wd,{forceMount:void 0}),Dd=q(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=bd(wd,t);return(0,z.jsx)(Td,{scope:t,forceMount:n,children:(0,z.jsx)(Gn,{present:n||a.open,children:(0,z.jsx)(qr,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),Od=`TooltipContent`,kd=O.forwardRef(q(function(e,t){let n=Ed(Od,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=bd(Od,e.__scopeTooltip);return(0,z.jsx)(Gn,{present:r||o.open,children:o.disableHoverableContent?(0,z.jsx)(Md,{side:i,...a,ref:t}):(0,z.jsx)(Ad,{side:i,...a,ref:t})})},`TooltipContent`)),Ad=O.forwardRef(q(function(e,t){let n=bd(Od,e.__scopeTooltip),r=gd(Od,e.__scopeTooltip),i=O.useRef(null),a=L(t,i),[o,s]=O.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=O.useCallback(()=>{s(null),d(!1)},[d]),p=O.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Fd(r,Pd(r,n.getBoundingClientRect())),a=Id(t.getBoundingClientRect()),o=Rd([...i,...a]);s(o),d(!0)},[d]);return O.useEffect(()=>()=>f(),[f]),O.useEffect(()=>{if(c&&u){let e=q(e=>p(e,u),`handleTriggerLeave`),t=q(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]),O.useEffect(()=>{if(o){let e=q(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Ld(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,z.jsx)(Md,{...e,ref:a})},`TooltipContentHoverable`)),jd=Nt(`TooltipContent`),Md=O.forwardRef(q(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=bd(Od,n),u=dd(n),{onClose:d}=l,[f,p]=O.useState(null),m=L(t,p);Pr(f),O.useEffect(()=>(document.addEventListener(md,d),()=>document.removeEventListener(md,d)),[d]),O.useEffect(()=>{if(l.trigger){let e=q(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 sn(()=>(h(a),()=>{h(void 0)}),[a,h]),(0,z.jsx)(vr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,z.jsxs)(zc,{"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,z.jsx)(jd,{children:r}),i?(0,z.jsx)(en,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),Nd=O.forwardRef(q(function(e,t){let{__scopeTooltip:n,...r}=e,i=dd(n);return(0,z.jsx)(Hc,{...i,...r,ref:t})},`TooltipArrow`));function Pd(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`)}}q(Pd,`getExitSideFromRect`);function Fd(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}q(Fd,`getPaddedExitPoints`);function Id(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}]}q(Id,`getPointsFromRect`);function Ld(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}q(Ld,`isPointInPolygon`);function Rd(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)),zd(t)}q(Rd,`getHull`);function zd(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)}q(zd,`getHullPresorted`);function Bd(...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}q(Bd,`concatAriaDescribedby`);var Vd=Ae(`group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function J({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?jt:`button`;return(0,z.jsx)(a,{"data-slot":`button`,"data-variant":t,"data-size":n,className:I(Vd({variant:t,size:n,className:e})),...i})}var Hd=/^\/s\/[^/]+/.exec(location.pathname)?.[0]??``,Ud=class extends Error{status;constructor(e,t){super(t),this.status=e}},Wd=400;async function Gd(e,t,n,r=!1){let i=await fetch(`${Hd}${t}`,{method:e,headers:n===void 0?{}:{"content-type":`application/json`},...n===void 0?{}:{body:JSON.stringify(n)}});if(i.status===409&&e!==`GET`&&!r)return await new Promise(e=>setTimeout(e,Wd)),Gd(e,t,n,!0);let a=await i.text();if(!i.ok)throw new Ud(i.status,Kd(a)??`${e} ${t} failed with ${i.status}`);return JSON.parse(a===``?`{}`:a)}function Kd(e){try{let t=JSON.parse(e);return typeof t==`object`&&t&&`error`in t?String(t.error):null}catch{return null}}var qd={state:()=>Gd(`GET`,`/api/state`),comment:async e=>{let t=await Gd(`POST`,`/api/comments`,e);return e.kind===`question`&&await Gd(`POST`,`/api/excluded`,{comment:t.id,excluded:!0}).catch(()=>void 0),t},reply:(e,t)=>Gd(`POST`,`/api/comments/${e}/replies`,{author:`reviewer`,body:t}),decide:(e,t,n)=>Gd(`POST`,`/api/concerns/${e}`,{decision:t,...n===void 0?{}:{severity:n}}),resolve:(e,t)=>Gd(`POST`,`/api/resolved`,{comment:e,resolved:t}),submit:e=>Gd(`POST`,`/api/submit`,e.trim()===``?{}:{summary:e}),exclude:(e,t)=>Gd(`POST`,`/api/excluded`,{[e.startsWith(`k_`)?`concern`:`comment`]:e,excluded:t}),dismissOffer:e=>Gd(`POST`,`/api/offers/${encodeURIComponent(e)}/dismiss`),report:()=>Gd(`GET`,`/api/report?format=json`),end:()=>Gd(`POST`,`/api/end`),coverage:()=>Gd(`GET`,`/api/coverage`).catch(e=>{if(e instanceof Ud&&e.status===404)return null;throw e}),definition:(e,t)=>Gd(`GET`,`/api/definition?${new URLSearchParams({name:e,from:t})}`)};function Jd(e){if(e.path===null)return null;let t=e.newLine===null?e.oldLine===null?null:{end:e.oldLine,start:e.startOldLine,label:`old`}:{end:e.newLine,start:e.startNewLine,label:`new`};if(t===null)return e.path;let n=t.start===null||t.start===t.end?`${t.end}`:`${t.start}-${t.end}`;return`${e.path}:${n} (${t.label})`}function Yd(e,t,n){return(n===null?void 0:t.get(n))??!e.excluded}var Xd=`
51
-
52
- <details><summary>Answer</summary>
53
-
54
- `;function Zd(e){let t=e.indexOf(Xd);return t===-1?{said:e,answer:null}:{said:e.slice(0,t),answer:e.slice(t+38).replace(/\n\n<\/details>\s*$/,``)}}function Qd(e,t){let{id:n}=e;if(n!==void 0)return{id:n,comment:t.comments.find(e=>e.id===n)??t.carried?.find(e=>e.comment.id===n)?.comment??null};if(e.kind===`concern`){let n=t.commits.flatMap(e=>e.concerns??[]).find(t=>e.body.includes(t.text));return n===void 0?null:{id:n.id,comment:null}}let{said:r}=Zd(e.body),i=t.comments.find(t=>t.author!==`agent`&&t.kind===`question`==(e.kind===`question`)&&(r===t.body||r.endsWith(`\n\n${t.body}`)));return i===void 0?null:{id:i.id,comment:i}}function $d(e){return`${e.map(e=>`**${Jd(e)??`General`}**\n\n${e.body.trim()}`).join(`
55
-
56
- ---
57
-
58
- `)}\n`}function ef(e){return e.changed===void 0?null:`code ${e.changed.gone?`gone`:`changed`} after v${e.changed.since}`}function tf(e){return e.endsWith(`/report`)?`report`:`review`}function nf(e){history.pushState(null,``,`${Hd}/${e===`report`?`report`:``}`),window.dispatchEvent(new PopStateEvent(`popstate`)),window.scrollTo(0,0)}function rf(){let[e,t]=(0,O.useState)(()=>tf(location.pathname));return(0,O.useEffect)(()=>{let e=()=>t(tf(location.pathname));return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),e}function af(e,t){if(e.select.kind===`rest`||t===null)return!0;let n=new Set(e.select.changes);return t.some(e=>n.has(e))}function of(e,t,n){let r=t?.at;if(r!==void 0&&r.commit>=1&&r.commit<=n.length)return{commit:r.commit-1,unit:r.unit??null,continues:[]};let{anchor:i}=e;if(i.kind!==`hunk`)return null;let[a,...o]=n.flatMap((e,t)=>e.refs.some(e=>e.unit===i.unit&&af(e,i.changes))?[t]:[]);return a===void 0?null:{commit:a,unit:i.unit,continues:o}}function sf(e,t,n,r=new Set){return e===null?[]:e.comments.filter(e=>e.kind===`question`&&!r.has(e.id)).map(r=>{let i=e.responses.find(e=>e.comment===r.id)??null;return{id:r.id,comment:r,response:i,resolved:t.includes(r.id),place:of(r,i,n)}})}function cf(e,t,n,r){return e.filter(e=>e.place===null||e.place.commit!==t?!1:(e.place.unit!==null&&r.includes(e.place.unit)?e.place.unit:null)===n)}function lf(e,t){let{anchor:n,context:r}=e.comment,i=e.place?.commit??0,a={kind:`plan`};return n.kind===`hunk`&&e.place?.unit?a={kind:`hunk`,unit:e.place.unit,commit:i,changes:n.changes}:(n.kind===`message`||n.kind===`position`)&&(a={kind:n.kind,commit:i}),{anchor:a,context:r,body:t,kind:`question`,follows:e.id}}function uf(e){if(e===null)return{answered:0,asked:0};let t=new Set(e.comments.filter(e=>e.kind===`question`).map(e=>e.id));return{answered:e.responses.filter(e=>e.status===`answered`&&t.has(e.comment)).length,asked:t.size}}function df(e){return e.split(`
59
- `)[0]??``}function ff(e){return e.split(`
60
- `).slice(1).join(`
61
- `).trim()}var pf=e=>e.replace(/\s+/g,` `).trim().toLowerCase();function mf(e){let t=e.narration?.trim()??``;if(t===``)return null;let n=ff(e.message);return n!==``&&pf(n)===pf(t)?null:t}function hf(e,t){let n=new Map;for(let r of e.refs){let e=t.get(r.unit);if(e===void 0)continue;let i=n.get(e.path)??[];i.push({ref:r,unit:e}),n.set(e.path,i)}return[...n].map(([e,t])=>({path:e,parts:t.sort((e,t)=>gf(e.unit)-gf(t.unit))}))}function gf(e){return e.kind===`hunk`?e.oldStart:-1}function _f(e){return JSON.stringify(e.refs.map(e=>[e.unit,e.select]))}function vf(e){let t=e.flatMap(e=>e.old===null?[]:[e.old]),n=e.flatMap(e=>e.new===null?[]:[e.new]),r=e=>`${e[0]??0},${e.length}`;return`@@ -${r(t)} +${r(n)} @@`}var yf={story:`The story`,steps:`The steps`,details:`The details`,wiring:`Wiring`};function bf(e){return e.section??null}function xf(e){return yf[e]}function Sf(e){let t=new Map;for(let n of e)for(let e of n.refs){if(e.select.kind!==`lines`)continue;let r=t.get(e.unit)??new Map;for(let t of e.select.changes)r.set(t,n.index);t.set(e.unit,r)}return t}function Cf(e,t){let n=t.get(e.id);return Array.from({length:e.changeCount},(e,t)=>n?.get(t))}function wf(e,t,n){let r=[];return e.forEach((e,i)=>{let a=e.op===` `?void 0:t[e.change];if(e.op===` `||a===void 0||a===n){r.push({kind:`line`,line:i,mine:a===n});return}let o=a>n;if(e.op===`-`?o:!o){r.push({kind:`line`,line:i,mine:!1});return}if(e.op===`-`)return;let s=r.at(-1);s?.kind===`fold`&&s.commit===a?r[r.length-1]={...s,lines:[...s.lines,i]}:r.push({kind:`fold`,lines:[i],commit:a})}),r}function Tf(e){let t=new Map,n=e.flatMap(e=>e.kind===`hunk`?[e]:[]),r=new Map;for(let e of[...n].sort((e,t)=>e.oldStart-t.oldStart)){let n=e.oldStart+1,i=e.oldStart+1+(r.get(e.path)??0);t.set(e.id,e.body.map(e=>e.op===`-`?{old:n++,new:null}:e.op===`+`?{old:null,new:i++}:{old:n++,new:i++}));let a=e.body.reduce((e,t)=>e+(t.op===`+`?1:t.op===`-`?-1:0),0);r.set(e.path,(r.get(e.path)??0)+a)}return t}var Ef=/^\s*(?:export\s+)?(?:default\s+)?(?:async\s+)?(?:function\*?|class|def|fn|func|interface|struct|enum|impl|trait|module)\s+([A-Za-z_$][\w$]*)/;function Df(e,t){for(let n=t;n>=0;--n){let t=e[n];if(t===void 0||t.op===`-`)continue;let r=Ef.exec(t.text)?.[1];if(r!==void 0)return r}return null}function Of(e){let t=[];for(let n of e){let e=t.at(-1);e!==void 0&&n===e[1]+1?e[1]=n:t.push([n,n])}return t.map(([e,t])=>e===t?`${e}`:`${e}-${t}`).join(`, `)}function kf(e,t,n){let r=[...new Set(n)].sort((e,t)=>e-t),i=[],a=[];for(let n of r){let r=t[n];e[n]?.op===`-`?r?.old!=null&&a.push(r.old):r?.new!=null&&i.push(r.new)}let o=i.length+a.length>1,s=[];if(i.length>0&&s.push(`${o?`lines`:`line`} ${Of(i)}`),a.length>0){let e=i.length>0?`old`:o?`old lines`:`old line`;s.push(`${e} ${Of(a)}`)}return s.join(`, `)}function Af(e,t,n){let r=0,i=0;for(let a of e.refs){let o=t.get(a.unit);if(o?.kind!==`hunk`)continue;let s=Cf(o,n);for(let t of o.body)t.op!==` `&&s[t.change]===e.index&&(t.op===`+`?r+=1:i+=1)}return{added:r,removed:i}}function jf(e,t,n){let[r,i]=t<=n?[t,n]:[n,t];return e.filter(e=>e>=r&&e<=i)}function Mf(e,t,n,r){return r&&t!==null?{from:t.from,lines:jf(e,t.from,n)}:t!==null&&t.lines.length===1&&t.lines[0]===n?null:{from:n,lines:[n]}}function Nf(e,t,n){let r=e.indexOf(t);return r===-1?e[0]??t:e[Math.max(0,Math.min(e.length-1,r+n))]??t}function Pf(e,t){let n=[...new Set(t)].sort((e,t)=>e-t),r=n.flatMap(t=>{let n=e.body[t];return n===void 0||n.op===` `||e.owners[n.change]!==e.commit?[]:[n.change]});return{kind:`hunk`,unit:e.id,commit:e.commit,changes:r,offsets:n}}function Ff(e,t){return[...t].sort((e,t)=>e-t).flatMap(t=>{let n=e[t];return n===void 0?[]:[n.text.replace(/\n$/,``)]})}function If(e,t){let n=new Set(t);return e.flatMap((e,t)=>e.op!==` `&&n.has(e.change)?[t]:[])}function Lf(e,t){return e.offsets===void 0?e.changes===null?[]:If(t,e.changes):e.offsets.filter(e=>e<t.length)}function Rf(e,t){return e.filter(e=>t.has(e)).at(-1)??null}function zf(e,t,n){return t===null||n===null?null:{from:t,lines:jf(e,t,n)}}function Bf(e,t,n){return If(t,e??[]).filter(e=>n.includes(e)).at(-1)??n.at(-1)??null}function Vf(e,t){return e.flatMap(e=>e.refs.some(e=>e.unit===t)?[e.index]:[])}function Hf(e,t,n){return n===null?null:e.filter(e=>e.refs.some(e=>t.get(e.unit)?.path===n)).at(-1)?.index??null}function Uf(e,t,n){if(n===null)return[];let r=-1,i=1/0;for(let[a,o]of e.entries()){let e=t[a]?.new;o.op!==`-`&&e!=null&&Math.abs(e-n)<i&&(r=a,i=Math.abs(e-n))}return r===-1?[]:[r]}function Wf(e,t){let n=df(t);return n===``?null:e.find(e=>df(e.message)===n)?.index??null}function Y(e,t){let n=null,r=1/0;for(let i of t)for(let t of e)Math.abs(i-t)<r&&(n=i,r=Math.abs(i-t));return n}function Gf(e){let{carried:t=[],commits:n}=e,r=new Map(e.units.map(e=>[e.id,e])),i=Sf(n),a=Tf(e.units);return t.flatMap(e=>{let{comment:t}=e,{anchor:o}=t;if(o.kind===`plan`)return[{comment:t,carried:e,kind:`same`,commit:null,unit:null,row:null}];let s=Wf(n,t.context.commitMessage);if(o.kind!==`hunk`){let r=n.at(-1)?.index??null;return[{comment:t,carried:e,kind:`same`,commit:s??(r===null?null:Math.min(o.commit,r)),unit:null,row:null}]}let c=e.unit===null?void 0:r.get(e.unit);if(e.unit===null||c===void 0)return[{comment:t,carried:e,kind:`gone`,commit:Hf(n,r,e.path),unit:null,row:null}];let l=e.changed?`changed`:`same`,u=Vf(n,c.id),d=s!==null&&u.includes(s)?s:void 0;if(c.kind!==`hunk`)return[{comment:t,carried:e,kind:l,commit:d??u[0]??Hf(n,r,e.path),unit:null,row:null}];let f=e.offsets??Uf(c.body,a.get(c.id)??[],e.newLine),p=Cf(c,i),m=u.find(e=>f.some(t=>{let n=c.body[t];return n!==void 0&&n.op!==` `&&p[n.change]===e}))??d??u[0]??null;if(m===null)return[{comment:t,carried:e,kind:`gone`,commit:Hf(n,r,e.path),unit:null,row:null}];let h=wf(c.body,p,m).flatMap(e=>e.kind===`line`?[e.line]:[]),g=f.length===0?h.at(-1)??null:Rf(f,new Set(h))??Y(f,h);return[{comment:t,carried:e,kind:l,commit:m,unit:c.id,row:g}]})}function Kf(e,t){let n=t.filter(e=>e.comment.anchor.kind===`hunk`&&(e.changed||e.unit===null)).length;return n===0?`Plan v${e} arrived`:`Plan v${e} arrived: ${n} thread${n===1?``:`s`} moved to changed code`}function qf(e,t,n){let r=e.files[t],i=r?.lines[n];if(r===void 0||i===void 0)return null;let a=r.branches?.[n]??null;return{kind:i===0?`uncovered`:a!==null&&a[0]<a[1]?`partly`:`covered`,hits:i,branches:a,stale:e.stale.includes(t)}}var Jf=e=>e===1?`1 hit`:`${e} hits`;function Yf(e){let t=e.kind===`uncovered`?`not covered`:e.kind===`partly`?`partly covered, ${Jf(e.hits)}, ${e.branches?.[0]} of ${e.branches?.[1]} branches`:`covered, ${Jf(e.hits)}`;return e.stale?`${t}, coverage is stale`:t}var Xf={total:0,run:0,partly:0};function Zf(e,t){return{total:e.total+1,run:e.run+(t.kind===`uncovered`?0:1),partly:e.partly+ +(t.kind===`partly`)}}function Qf(e){return e.total===0?100:Math.floor(100*e.run/e.total)}function $f(e){return e.run<e.total?`uncovered`:e.partly>0?`partly`:`covered`}var ep=(e,t)=>`${e}|${t}`;function tp(e,t,n,r,i){let a=new Map;for(let t of n.values()){if(t.kind!==`hunk`)continue;let n=new Map;(i.get(t.id)??[]).forEach((r,i)=>{let a=r.new===null?null:qf(e,t.path,r.new);a!==null&&n.set(i,a)}),n.size>0&&a.set(t.id,n)}let o=new Map,s=[],c=Xf,l=t.map(e=>{let t=Xf;for(let i of hf(e,n))for(let{unit:n}of i.parts)if(n.kind===`hunk`)for(let l of wf(n.body,Cf(n,r),e.index)){if(l.kind!==`line`||!l.mine||n.body[l.line]?.op!==`+`)continue;let r=a.get(n.id)?.get(l.line);if(r===void 0)continue;t=Zf(t,r),c=Zf(c,r);let u=ep(e.index,i.path);o.set(u,Zf(o.get(u)??Xf,r)),r.kind===`uncovered`&&s.push({commit:e.index,path:i.path,unit:n.id,row:l.line})}return t});return{tip:e.tip,takenAt:e.takenAt,marks:a,commits:l,files:o,branch:c,uncovered:s,stale:new Set(e.stale),tests:e.tests}}function np(e,t){let n=e.length;if(n===0)return null;let r=e.indexOf(`at`);if(r!==-1)return(r+t+n)%n;if(t===1){let t=e.indexOf(`below`);return t===-1?0:t}let i=e.lastIndexOf(`above`);return i===-1?n-1:i}function rp(e,t,n){return e===void 0?null:Object.entries(e).filter(([,e])=>e.lines[t]?.includes(n)??!1).map(([e,t])=>({id:e,at:t.at??null,preview:t.preview??null})).sort((e,t)=>e.id.localeCompare(t.id))}function ip(e,t,n,r,i){for(let a of n.values()){if(a.kind!==`hunk`||a.path!==e.path)continue;let n=(i.get(a.id)??[]).findIndex(t=>t.new!==null&&t.new>=e.start&&t.new<=e.end),o=a.body[n];if(o===void 0)continue;let s=(o.op===` `?void 0:Cf(a,r)[o.change])??t.find(e=>e.refs.some(e=>e.unit===a.id))?.index;if(s!==void 0)return{unit:a.id,row:n,commit:s}}return null}function ap(e,t,n=[]){return{path:e.path,newLine:e.start,kind:`other`,unit:t?.unit??null,row:t?.row??null,commit:t?.commit??null,preview:n}}function op(e){let t=new Date(e);if(Number.isNaN(t.getTime()))return e;let n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`}function sp(e,t){return`Missing test: no test runs ${e}:${t}.`}var cp=/^[A-Za-z_$][\w$]*$/;function lp(e){let t=e.split(`::`),n=t.at(-1)??e;return{path:t.length>1?t[0]??null:null,name:cp.test(n)?n:null}}function up(e,t){let n=e.findIndex(e=>e.id===t.id);return n===-1?[...e,t]:e.map((e,r)=>r===n?t:e)}function dp(e,t){let n=Math.max(e.seq,t.seq),r=t=>({...e,...t,seq:n});switch(t.type){case`comment`:case`comment-updated`:{let n=e.comments.find(e=>e.id===t.comment.id),i=t.comment.replies??n?.replies,a=i===void 0?t.comment:{...t.comment,replies:i};return r({comments:up(e.comments,a)})}case`comment-deleted`:return r({comments:e.comments.filter(e=>e.id!==t.id)});case`reply`:{let n=e=>e.id===t.commentId?{...e,replies:up(e.replies??[],t.reply)}:e;return r({comments:e.comments.map(n),...e.previous===null?{}:{previous:{...e.previous,comments:e.previous.comments.map(n)}},...e.carried===void 0?{}:{carried:e.carried.map(e=>({...e,comment:n(e.comment)}))}})}case`concern`:{let{concernId:n,seq:i,type:a,...o}=t;return r({concerns:[...e.concerns.filter(e=>e.concern!==n),{concern:n,...o}]})}case`resolved`:{let n=e.resolved.filter(e=>e!==t.commentId);return r({resolved:t.resolved?[...n,t.commentId]:n})}case`offer-dismissed`:return r({dismissedOffers:[...(e.dismissedOffers??[]).filter(e=>e!==t.offer),t.offer]});default:return r({})}}var fp=80;function pp(e){let t=e.replace(/\s+/g,` `).trim();return t.length<=fp?t:`${t.slice(0,fp).trimEnd()}…`}function mp(e){switch(e.type){case`reply`:return e.reply.author===`agent`?{key:`reply:${e.reply.id}`,kind:`reply`,thread:e.commentId,preview:pp(e.reply.body)}:null;case`comment`:return e.comment.author===`agent`?{key:`explain:${e.comment.id}`,kind:`explain`,thread:e.comment.id,preview:pp(e.comment.body)}:null;case`version`:{let t=(e.carried??[]).filter(e=>e.changed||e.unit===null);return t.length===0?null:{key:`version:${e.version}`,kind:`version`,thread:t[0]?.comment.id??null,preview:`Plan v${e.version}`,version:Number(e.version),moved:t.length}}default:return null}}function hp(e,t){let n=new Map;for(let r of t){let t=mp(r);t!==null&&!e.has(t.key)&&!n.has(t.key)&&n.set(t.key,t)}return[...n.values()]}function gp(e,t){let{anchor:n,context:r}=e;if(n.kind===`plan`)return`the branch`;if(n.kind!==`hunk`)return`commit ${n.commit+1}`;let i=r.path??t.units.find(e=>e.id===n.unit)?.path??`the code`,a=t.carried?.find(t=>t.comment.id===e.id),o=Tf(t.units).get(n.unit),s=n.offsets?.at(-1),c=s===void 0?void 0:o?.[s],l=a===void 0?c?.new??c?.old??null:a.newLine;return l==null?i:`${i}:${l}`}function _p(e,t){if(e.kind===`version`){let t=e.moved??0;return`Plan v${e.version} arrived, ${t} thread${t===1?``:`s`} moved`}let n=[...t.comments,...(t.carried??[]).map(e=>e.comment)].find(t=>t.id===e.thread),r=e.kind===`reply`?`replied on`:`explained`;return n===void 0?`Agent ${e.kind===`reply`?`replied`:`explained`}`:`Agent ${r} ${gp(n,t)}`}var vp=(0,O.createContext)(null);function X(){let e=(0,O.useContext)(vp);if(e===null)throw Error(`useReview outside ReviewProvider`);return e}var yp=2e3,bp=44;function xp(e){let t=null;for(let n of document.querySelectorAll(`section[data-commit]`)){let r=n.getBoundingClientRect().top,i=e.commits[Number(n.dataset.commit)];if(i!==void 0){if(t!==null&&r>45)break;t={title:df(i.message),offset:r-bp}}}return t}function Sp(e,t){let n=e.commits.find(e=>df(e.message)===t.title);if(n===void 0)return;let r=document.getElementById(`commit-${n.index+1}`);r!==null&&window.scrollBy(0,r.getBoundingClientRect().top-bp-t.offset)}function Cp({initial:e,children:t}){let[n,r]=(0,O.useState)(e),[i,a]=(0,O.useState)(!1),[o,s]=(0,O.useState)(null),[c,l]=(0,O.useState)(!1),[u,d]=(0,O.useState)(null),[f,p]=(0,O.useState)([]),[m,h]=(0,O.useState)(new Set),g=(0,O.useRef)(e.seq);g.current=n.seq;let _=(0,O.useRef)(n);_.current=n;let v=(0,O.useRef)(null),[y,b]=(0,O.useState)(null),x=(0,O.useCallback)(()=>{qd.coverage().then(b).catch(()=>void 0)},[]);(0,O.useEffect)(x,[x]);let S=(0,O.useCallback)(async()=>{let e=await qd.state();r(e)},[]);(0,O.useEffect)(()=>{if(i)return;let e=null,t,n=!1,o=()=>{e=new EventSource(`${Hd}/api/events/stream?since=${g.current}`),e.onmessage=e=>{let t=JSON.parse(e.data);r(e=>dp(e,t)),mp(t)!==null&&p(e=>[...e,t]),t.type===`version`&&(v.current=xp(_.current),S().then(()=>d(`v${t.version}`))),(t.type===`coverage`||t.type===`version`)&&x(),t.type===`ended`&&a(!0)},e.onopen=()=>l(!1),e.onerror=()=>{if(n||(l(!0),e?.readyState!==EventSource.CLOSED))return;let r=()=>{S().then(()=>{x(),l(!1),o()}).catch(e=>{e instanceof Ud&&e.status===404?a(!0):t=setTimeout(r,yp)})};t=setTimeout(r,yp)}};return o(),()=>{n=!0,clearTimeout(t),e?.close()}},[i,S,x]);let C=n.version;(0,O.useLayoutEffect)(()=>{let e=v.current;v.current=null,e!==null&&Sp(_.current,e)},[C]);let w=(0,O.useCallback)(async e=>{try{return s(null),await e(),!0}catch(e){return s(e instanceof Error?e.message:String(e)),!1}},[]),T=(0,O.useMemo)(()=>hp(m,f),[m,f]),E=(0,O.useCallback)(e=>h(t=>new Set([...t,...e])),[]),D=(0,O.useMemo)(()=>({state:n,ended:i,error:o,reconnecting:c,run:w,refresh:S,arrived:u===null?null:Kf(n.version,n.carried??[]),dismissArrived:()=>d(null),events:f,unread:T,markSeen:E,coverage:y}),[n,i,o,c,w,S,u,f,T,E,y]);return(0,z.jsx)(vp,{value:D,children:t})}function wp(){let{state:e}=X(),{units:t,commits:n}=e;return(0,O.useMemo)(()=>({units:new Map(t.map(e=>[e.id,e])),owners:Sf(n),numbers:Tf(t)}),[t,n])}function Tp(){let{state:e,coverage:t}=X(),{units:n,owners:r,numbers:i}=wp();return(0,O.useMemo)(()=>t===null?null:tp(t,e.commits,n,r,i),[t,e.commits,n,r,i])}function Ep(){let{state:e}=X(),{previous:t,resolved:n,commits:r,carried:i}=e;return(0,O.useMemo)(()=>sf(t,n,r,new Set((i??[]).map(e=>e.comment.id))),[t,n,r,i])}function Dp(){let{state:e}=X();return(0,O.useMemo)(()=>Gf(e),[e.previous,e.carried,e.commits,e.units])}function Op({className:e,...t}){return(0,z.jsx)(ro,{"data-slot":`checkbox`,className:I(`peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary`,e),...t,children:(0,z.jsx)(ao,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none [&>svg]:size-3.5`,children:(0,z.jsx)(ae,{})})})}function kp({checked:e,onChange:t,name:n,children:r,className:i}){let a=(0,O.useId)();return(0,z.jsxs)(`span`,{className:I(`flex shrink-0 items-center gap-2 text-muted-foreground text-xs`,i),children:[(0,z.jsx)(Op,{id:a,checked:e,onCheckedChange:e=>t(e===!0),"aria-label":n}),(0,z.jsx)(`label`,{htmlFor:a,className:`cursor-pointer`,children:r})]})}function Ap(e,t){this.v=e,this.k=t}function jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mp(e){if(Array.isArray(e))return e}function Np(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Pp(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
62
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fp(e,t){return Mp(e)||Np(e,t)||Ip(e,t)||Pp()}function Ip(e,t){if(e){if(typeof e==`string`)return jp(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jp(e,t):void 0}}function Lp(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof Ap;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}Lp.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},Lp.prototype.next=function(e){return this._invoke(`next`,e)},Lp.prototype.throw=function(e){return this._invoke(`throw`,e)},Lp.prototype.return=function(e){return this._invoke(`return`,e)};var Rp=Object.entries,zp=Object.setPrototypeOf,Bp=Object.isFrozen,Vp=Object.getPrototypeOf,Hp=Object.getOwnPropertyDescriptor,Up=Object.freeze,Wp=Object.seal,Gp=Object.create,Kp=typeof Reflect<`u`&&Reflect,qp=Kp.apply,Jp=Kp.construct;Up||=function(e){return e},Wp||=function(e){return e},qp||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Jp||=function(e){return new e(...[...arguments].slice(1))};var Yp=ym(Array.prototype.forEach);Array.prototype.indexOf;var Xp=ym(Array.prototype.lastIndexOf),Zp=ym(Array.prototype.pop),Qp=ym(Array.prototype.push),$p=ym(Array.prototype.slice),em=ym(Array.prototype.splice),tm=Array.isArray,nm=bm(Set),rm=ym(Set.prototype.add),im=ym(Set.prototype.has),am=ym(String.prototype.toLowerCase),om=ym(String.prototype.toString),sm=ym(String.prototype.match),cm=ym(String.prototype.replace),lm=ym(String.prototype.indexOf),um=ym(String.prototype.trim),dm=ym(Number.prototype.toString),fm=ym(Boolean.prototype.toString),pm=typeof BigInt>`u`?null:ym(BigInt.prototype.toString),mm=typeof Symbol>`u`?null:ym(Symbol.prototype.toString),hm=ym(Object.prototype.hasOwnProperty),gm=ym(Object.prototype.toString),_m=ym(RegExp.prototype.test),vm=bm(TypeError);function ym(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return qp(e,t,n)}}function bm(e){return function(){return Jp(e,[...arguments])}}function Z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:am;if(zp&&zp(e,null),!tm(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Bp(t)||(t[r]=e),i=e)}e[i]=!0}return e}function xm(e){for(let t=0;t<e.length;t++)hm(e,t)||(e[t]=null);return e}function Sm(e){let t=Gp(null);for(let r of Rp(e)){var n=Fp(r,2);let i=n[0],a=n[1];hm(e,i)&&(t[i]=tm(a)?xm(a):a&&typeof a==`object`&&a.constructor===Object?Sm(a):a)}return t}function Cm(e){switch(typeof e){case`string`:return e;case`number`:return dm(e);case`boolean`:return fm(e);case`bigint`:return pm?pm(e):`0`;case`symbol`:return mm?mm(e):`Symbol()`;case`undefined`:return gm(e);case`function`:case`object`:{if(e===null)return gm(e);let t=e,n=wm(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:gm(e)}return gm(e)}default:return gm(e)}}function wm(e,t){for(;e!==null;){let n=Hp(e,t);if(n){if(n.get)return ym(n.get);if(typeof n.value==`function`)return ym(n.value)}e=Vp(e)}function n(){return null}return n}function Tm(e,t){for(;e!==null;){let n=Hp(e,t);if(n)return n.get?ym(n.get):null;e=Vp(e)}return null}function Em(e){try{return _m(e,``),!0}catch{return!1}}var Dm=Up(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Om=Up(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),km=Up([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Am=Up([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),jm=Up(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Mm=Up([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Nm=Up([`#text`]),Pm=Up(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Fm=Up(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Im=Up(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Lm=Up([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Rm=Wp(/{{[\w\W]*|^[\w\W]*}}/g),zm=Wp(/<%[\w\W]*|^[\w\W]*%>/g),Bm=Wp(/\${[\w\W]*/g),Vm=Wp(/^data-[\-\w.\u00B7-\uFFFF]+$/),Hm=Wp(/^aria-[\-\w]+$/),Um=Wp(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Wm=Wp(/^(?:\w+script|data):/i),Gm=Wp(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Km=Wp(/^html$/i),qm=Wp(/^[a-z][.\w]*(-[.\w]+)+$/i),Jm=Wp(/<[/\w!]/g),Ym=Wp(/<[/\w]/g),Xm=Wp(/<\/no(script|embed|frames)/i),Zm=Wp(/\/>/i),Qm={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},$m=Up(Z({},[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`])),eh=function(){return typeof window>`u`?null:window},th=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},nh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},rh=function(e,t,n,r){return hm(e,t)&&tm(e[t])?Z(r.base?Sm(r.base):{},e[t],r.transform):n},ih=function(e,t,n){let r=hm(e,t)?e[t]:void 0;return r&&typeof r==`object`?Sm(r):n()};function ah(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eh(),t=e=>ah(e);if(t.version=`3.4.17`,t.removed=[],!e||!e.document||e.document.nodeType!==Qm.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=wm(d,`cloneNode`),p=wm(d,`remove`),m=wm(d,`removeAttributeNode`),h=wm(d,`nextSibling`),g=wm(d,`childNodes`),_=wm(d,`parentNode`),v=wm(d,`shadowRoot`),y=wm(d,`attributes`),b=o&&o.prototype?wm(o.prototype,`nodeType`):null,x=o&&o.prototype?wm(o.prototype,`nodeName`):null,S=o&&o.prototype?wm(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},w=function(e){return x?x(e):e.nodeName},T=Tm(d,`namespaceURI`),E=function(e){return T?T(e):e.namespaceURI};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let D,O=``,ee,k=!1,te=0,A=function(){if(te>0)throw vm(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},ne=function(e){A(),te++;try{return D.createHTML(e)}finally{te--}},j=function(e){A(),te++;try{return D.createScriptURL(e)}finally{te--}},M=function(){return k||=(ee=th(u,i),!0),ee},re=n,ie=re.implementation,ae=re.createNodeIterator,oe=re.createDocumentFragment,se=re.getElementsByTagName,ce=r.importNode,N=nh();t.isSupported=typeof Rp==`function`&&typeof _==`function`&&ie&&ie.createHTMLDocument!==void 0;let le=Rm,ue=zm,de=Bm,fe=Vm,pe=Hm,me=Wm,he=Gm,ge=qm,P=Um,F=null,_e=Z({},[...Dm,...Om,...km,...jm,...Nm]),ve=null,ye=Z({},[...Pm,...Fm,...Im,...Lm]),be=Object.seal(Gp(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Se=null,Ce=Object.seal(Gp(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),we=!0,Te=!0,Ee=!1,De=!0,Oe=!1,ke=!0,Ae=!1,je=!1,Me=null,Ne=null,Pe=!1,Fe=!1,Ie=!1,Le=!1,Re=!0,ze=!1,Be=`user-content-`,Ve=!0,He=!1,Ue=null,We={},Ge=null,Ke=Z({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),qe=null,Je=Z({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ye=null,Xe=Z({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ze=`http://www.w3.org/1998/Math/MathML`,Qe=`http://www.w3.org/2000/svg`,$e=`http://www.w3.org/1999/xhtml`,et=$e,tt=!1,nt=null,rt=Z({},[Ze,Qe,$e],om),it=Up([`mi`,`mo`,`mn`,`ms`,`mtext`]),at=Z({},it),ot=Up([`annotation-xml`]),st=Z({},ot),ct=Z({},[`title`,`style`,`font`,`a`,`script`]),lt=null,ut=[`application/xhtml+xml`,`text/html`],dt=null,ft=null,pt=n.createElement(`form`),mt=function(e){return e instanceof RegExp||e instanceof Function},ht=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ft&&ft===e)return;(!e||typeof e!=`object`)&&(e={}),e=Sm(e),lt=ut.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,dt=lt===`application/xhtml+xml`?om:am,F=rh(e,`ALLOWED_TAGS`,_e,{transform:dt}),ve=rh(e,`ALLOWED_ATTR`,ye,{transform:dt}),nt=rh(e,`ALLOWED_NAMESPACES`,rt,{transform:om}),Ye=rh(e,`ADD_URI_SAFE_ATTR`,Xe,{transform:dt,base:Xe}),qe=rh(e,`ADD_DATA_URI_TAGS`,Je,{transform:dt,base:Je}),Ge=rh(e,`FORBID_CONTENTS`,Ke,{transform:dt}),xe=rh(e,`FORBID_TAGS`,Sm({}),{transform:dt}),Se=rh(e,`FORBID_ATTR`,Sm({}),{transform:dt}),We=hm(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Sm(e.USE_PROFILES):e.USE_PROFILES:!1,we=e.ALLOW_ARIA_ATTR!==!1,Te=e.ALLOW_DATA_ATTR!==!1,Ee=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Oe=e.SAFE_FOR_TEMPLATES||!1,ke=e.SAFE_FOR_XML!==!1,Ae=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,Ie=e.RETURN_DOM_FRAGMENT||!1,Le=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Re=e.SANITIZE_DOM!==!1,ze=e.SANITIZE_NAMED_PROPS||!1,Ve=e.KEEP_CONTENT!==!1,He=e.IN_PLACE||!1,P=Em(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Um,et=typeof e.NAMESPACE==`string`?e.NAMESPACE:$e,at=ih(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Z({},it)),st=ih(e,`HTML_INTEGRATION_POINTS`,()=>Z({},ot));let t=ih(e,`CUSTOM_ELEMENT_HANDLING`,()=>Gp(null));if(be=Gp(null),hm(t,`tagNameCheck`)&&mt(t.tagNameCheck)&&(be.tagNameCheck=t.tagNameCheck),hm(t,`attributeNameCheck`)&&mt(t.attributeNameCheck)&&(be.attributeNameCheck=t.attributeNameCheck),hm(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(be.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Wp(be),Oe&&(Te=!1),Ie&&(Fe=!0),We&&(F=Z({},Nm),ve=Gp(null),We.html===!0&&(Z(F,Dm),Z(ve,Pm)),We.svg===!0&&(Z(F,Om),Z(ve,Fm),Z(ve,Lm)),We.svgFilters===!0&&(Z(F,km),Z(ve,Fm),Z(ve,Lm)),We.mathMl===!0&&(Z(F,jm),Z(ve,Im),Z(ve,Lm))),Ce.tagCheck=null,Ce.attributeCheck=null,hm(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Ce.tagCheck=e.ADD_TAGS:tm(e.ADD_TAGS)&&(F===_e&&(F=Sm(F)),Z(F,e.ADD_TAGS,dt))),hm(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Ce.attributeCheck=e.ADD_ATTR:tm(e.ADD_ATTR)&&(ve===ye&&(ve=Sm(ve)),Z(ve,e.ADD_ATTR,dt))),hm(e,`ADD_FORBID_CONTENTS`)&&tm(e.ADD_FORBID_CONTENTS)&&(Ge===Ke&&(Ge=Sm(Ge)),Z(Ge,e.ADD_FORBID_CONTENTS,dt)),Ve&&(F[`#text`]=!0),Ae&&Z(F,[`html`,`head`,`body`]),F.table&&(Z(F,[`tbody`]),delete xe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw vm(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw vm(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=D;D=e.TRUSTED_TYPES_POLICY;try{O=ne(``)}catch(e){throw D=t,e}}else e.TRUSTED_TYPES_POLICY===null?(D=void 0,O=``):(D===void 0&&(D=M()),D&&typeof O==`string`&&(O=ne(``)));Up&&Up(e),ft=e},gt=Z({},[...Om,...km,...Am]),_t=Z({},[...jm,...Mm]),vt=function(e,t,n){return t.namespaceURI===$e?e===`svg`:t.namespaceURI===Ze?e===`svg`&&(n===`annotation-xml`||at[n]):!!gt[e]},yt=function(e,t,n){return t.namespaceURI===$e?e===`math`:t.namespaceURI===Qe?e===`math`&&st[n]:!!_t[e]},bt=function(e,t,n){return t.namespaceURI===Qe&&!st[n]||t.namespaceURI===Ze&&!at[n]?!1:!_t[e]&&(ct[e]||!gt[e])},xt=function(e){let t=E(e),n=am(w(e)),r=_(e),i,a;return r&&C(r)===Qm.element?(i={namespaceURI:E(r)},a=am(w(r))):(i={namespaceURI:et},a=`template`),nt[t]?t===Qe?vt(n,i,a):t===Ze?yt(n,i,a):t===$e?bt(n,i,a):!!(lt===`application/xhtml+xml`&&nt[t]):!1},St=function(e){Qp(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw vm(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Ct=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},I=function(e){Dt(e);let t=g(e);t&&Yp($p(t),e=>{try{p(e)}catch{}});let n=C(e)===Qm.element?y(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&Ct(e,r,i)}},wt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Qp(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Fe||Ie)try{St(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},Tt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||ve[dt(i)]||Ct(e,r,i)}},Et=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(t(e)===!1)continue;if(n&&C(e)===Qm.element){let t=v(e);Vt(t)&&r.push(t)}let i=g(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},Dt=function(e){Et(e,e=>{C(e)===Qm.element&&Tt(e)})},L=function(e){let t=[];return Et(e,e=>{t.push(e)},!0),t},Ot=function(e,t){let n=nm();Yp(L(e),e=>{C(e)===Qm.element&&rm(n,e)}),Yp(t,e=>{C(e)===Qm.element&&!im(n,e)&&Tt(e)})},kt=function(e,n){let r=!1;return Yp(t.removed,t=>{t.element&&(r||=t.element===e,Dt(t.element))}),Ot(e,n),r},At=function(e,t){let n=Ue,r=null,i=()=>(r||(r=nm(),Yp(t,e=>{rm(r,e)})),r);for(let t=0;;t++){let r=L(e),a=[e],o=!1;if(Yp(r,e=>{C(e)===Qm.documentFragment?Qp(a,e):!o&&!im(n,e)&&(o=im(i(),e))}),!o)return;if(t>=8)throw vm(`the tree kept changing during in-place sanitization; refusing to return it`);Yp(a,(t,n)=>{jt(t,n>0,e,i())})}},jt=function(e,t,n,r){let i=It(e),a;for(;a=i.nextNode();)im(r,a)&&!im(Ue,a)&&(t&&Ut(N.uponSanitizeShadowNode,a,null),z(a,n),$t(a,n),Vt(a.content)&&en(a.content))},Mt=function(e){Ue&&rm(Ue,e)},Nt=function(e,t){return ke?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Pt=function(e){ke&&Et(e,e=>{let t=C(e);if(t===Qm.processingInstruction||t===Qm.comment&&_m(Ym,e.data)){try{p(e)}catch{}return!1}if(t===Qm.element){let t=e,n=dt(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Nt(`for`,n)&&t.removeAttribute(`for`)}catch{}}return!0})},Ft=function(e){let t=null,r=null;if(Pe)e=`<remove></remove>`+e;else{let t=sm(e,/^[\r\n\t ]+/);r=t&&t[0]}lt===`application/xhtml+xml`&&et===$e&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=D?ne(e):e;if(et===$e)try{t=new l().parseFromString(i,lt)}catch{}if(!t||!t.documentElement){t=ie.createDocument(et,`template`,null);try{t.documentElement.innerHTML=tt?O:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),et===$e?se.call(t,Ae?`html`:`body`)[0]:Ae?t.documentElement:a},It=function(e){let t=S?S(e):e.ownerDocument;return ae.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Lt=function(e){return e=cm(e,le,` `),e=cm(e,ue,` `),e=cm(e,de,` `),e},Rt=function(e){zt(e);let t=e.querySelectorAll?.call(e,`template`);t&&Yp(t,e=>{Vt(e.content)&&Rt(e.content)})},zt=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=ae.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Lt(r.data),r=n.nextNode()},Bt=function(e){let t=x?x(e):null;return typeof t!=`string`||dt(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Vt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===Qm.documentFragment}catch{return!1}},Ht=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Ut(e,n,r){e.length!==0&&Yp(e,e=>{e.call(t,n,r,ft)})}let Wt=function(e,t){return!!(ke&&e.hasChildNodes()&&!Ht(e.firstElementChild)&&_m(Jm,e.textContent)&&_m(Jm,e.innerHTML)||ke&&$m[t]&&C(e)===Qm.element&&E(e)===$e&&(Ht(e.firstElementChild)||typeof e.textContent==`string`&&_m(Jm,e.textContent))||e.nodeType===Qm.processingInstruction||ke&&e.nodeType===Qm.comment&&_m(Ym,e.data))},Gt=function(e,t){return e instanceof RegExp?_m(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Kt=function(e,t,n){if(!xe[t]&&B(t)&&Gt(be.tagNameCheck,t))return!1;if(Ve&&!Ge[t]&&!Ge[am(t)]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return St(e),!0},R=function(e,t,n,r){return e.length===0?t:t===n||t===r?Sm(t):t},qt=function(e,t){return e===t||_(e)!==null?!1:(He&&Dt(e),!0)},z=function(e,n){if(Mt(e),Ut(N.beforeSanitizeElements,e,null),qt(e,n))return!0;if(Bt(e))return St(e),!0;let r=dt(w(e));if(F=R(N.uponSanitizeElement,F,_e,Me),Ut(N.uponSanitizeElement,e,{tagName:r,allowedTags:F}),qt(e,n))return!0;if(Wt(e,r))return St(e),!0;if(xe[r]||!(Ce.tagCheck instanceof Function&&Ce.tagCheck(r))&&!F[r]){let t=Kt(e,r,n);return t===!1&&(Ut(N.afterSanitizeElements,e,null),qt(e,n))?!0:t}if(C(e)===Qm.element&&!xt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&_m(Xm,e.innerHTML))return St(e),!0;if(Oe&&e.nodeType===Qm.text){let n=Lt(e.textContent);e.textContent!==n&&(Qp(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Ut(N.afterSanitizeElements,e,null),qt(e,n)},Jt=function(e,t,r){if(Se[t]||Nt(t,e)||Re&&(t===`id`||t===`name`)&&(r in n||r in pt))return!1;let i=ve[t]||Ce.attributeCheck instanceof Function&&Ce.attributeCheck(t,e);return Te&&_m(fe,t)||we&&_m(pe,t)?!0:i?Ye[t]||_m(P,cm(r,he,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&lm(r,`data:`)===0&&qe[e]||Ee&&!_m(me,cm(r,he,``))?!0:!r:B(e)&&Gt(be.tagNameCheck,e)&&Gt(be.attributeNameCheck,t,e)||t===`is`&&be.allowCustomizedBuiltInElements&&Gt(be.tagNameCheck,r)},Yt=Z({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),B=function(e){return!Yt[am(e)]&&_m(ge,e)},Xt=function(e,t,n,r){if(D&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ne(r);case`TrustedScriptURL`:return j(r)}return r},Zt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Bt(e)||(St(e),!1)}catch{return wt(t,e),!1}},Qt=function(e,t){return ke&&_m(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t)?!0:am(e)===`attributename`&&sm(t,`href`)!==null},$t=function(e,n){if(Ut(N.beforeSanitizeAttributes,e,null),qt(e,n))return;let r=e.attributes;if(!r||Bt(e))return;ve=R(N.uponSanitizeAttribute,ve,ye,Ne);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:ve,forceKeepAttr:void 0},a=r.length,o=dt(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=dt(s),d=l,f=s===`value`?d:um(d),p=!1;i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Ut(N.uponSanitizeAttribute,e,i),f=i.attrValue,ze&&(u===`id`||u===`name`)&&lm(f,Be)!==0&&(wt(s,e,n),f=Be+f,p=!0),Qt(s,f)?wt(s,e,n):i.forceKeepAttr||(i.keepAttr?!De&&_m(Zm,f)?wt(s,e,n):(Oe&&(f=Lt(f)),Jt(o,u,f)?(f=Xt(o,u,c,f),f!==d&&Zt(e,s,c,f)&&p&&Zp(t.removed)):wt(s,e,n)):wt(s,e,n))}Ut(N.afterSanitizeAttributes,e,null),qt(e,n)},en=function(e){let t=null,n=It(e);for(Ut(N.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Ut(N.uponSanitizeShadowNode,t,null),z(t,e),$t(t,e),Vt(t.content)&&en(t.content),C(t)===Qm.element){let e=v(t);Vt(e)&&(tn(e),en(e))}Oe&&zt(e),Ut(N.afterSanitizeShadowDOM,e,null)},tn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){en(e.shadow);continue}let n=e.node,r=C(n)===Qm.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&dt(e)===`template`){let e=n.content;Vt(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Vt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(tt=!e,tt&&(e=`<!-->`),typeof e!=`string`&&!Ht(e)&&(e=Cm(e),typeof e!=`string`))throw vm(`dirty is not a string, aborting`);if(!t.isSupported)return e;je?(F=Me,ve=Ne):ht(n),(N.uponSanitizeElement.length>0||N.uponSanitizeAttribute.length>0)&&(F=Sm(F)),N.uponSanitizeAttribute.length>0&&(ve=Sm(ve)),t.removed=[];let c=He&&typeof e!=`string`&&Ht(e),l=[],u=Ue;if(c){Pt(e);let t=w(e);if(typeof t==`string`){let n=dt(t);if(!F[n]||xe[n])throw I(e),vm(`root node is forbidden and cannot be sanitized in-place`)}if(Bt(e))throw I(e),vm(`root node is clobbered and cannot be sanitized in-place`);l=L(e),Ue=nm()}else if(Ht(e))i=Ft(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Qm.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),tn(i);else{if(!Fe&&!Oe&&!Ae&&e.indexOf(`<`)===-1)return D&&Le?ne(e):e;if(i=Ft(e),!i)return Fe?null:Le?O:``}i&&Pe&&St(i.firstChild);let d=c?e:i;try{c&&tn(e);let t=It(d);for(;o=t.nextNode();)z(o,d),$t(o,d),Vt(o.content)&&en(o.content);c&&At(e,l)}catch(t){throw c&&(I(e),kt(e,l)),t}finally{Ue=u}if(c){if(kt(e,l))throw vm(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Oe&&Rt(e),e}if(Fe){if(Oe&&Rt(i),Ie)for(s=oe.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(ve.shadowroot||ve.shadowrootmode)&&(s=ce.call(r,s,!0)),s}let f=Ae?i.outerHTML:i.innerHTML;return Ae&&F[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&_m(Km,i.ownerDocument.doctype.name)&&(f=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
63
- `+f),Oe&&(f=Lt(f)),D&&Le?ne(f):f},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ht(e),je=!0,Me=F,Ne=ve},t.clearConfig=function(){ft=null,je=!1,Me=null,Ne=null,D=ee,O=``},t.isValidAttribute=function(e,t,n){ft||ht({});let r=dt(e),i=dt(t);return typeof n==`string`&&(Qt(t,n)||!De&&_m(Zm,n))?!1:Jt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&hm(N,e)&&Qp(N[e],t)},t.removeHook=function(e,t){if(hm(N,e)){if(t!==void 0){let n=Xp(N[e],t);return n===-1?void 0:em(N[e],n,1)[0]}return Zp(N[e])}},t.removeHooks=function(e){hm(N,e)&&(N[e]=[])},t.removeAllHooks=function(){N=nh()},t}var oh=ah();function sh(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ch=sh();function lh(e){ch=e}var uh={exec:()=>null};function dh(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function Q(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(ph.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var fh=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),ph={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:dh(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:dh(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:dh(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:dh(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:dh(e=>RegExp(`^ {0,${e}}(?:</?(?:${Oh})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,`i`)),blockquoteBeginRegex:dh(e=>RegExp(`^ {0,${e}}>`))},mh=/^(?:[ \t]*(?:\n|$))+/,hh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,gh=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,_h=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,vh=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,yh=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,bh=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,xh=Q(bh).replace(/bull/g,yh).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Sh=Q(bh).replace(/bull/g,yh).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ch=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,wh=/^[^\n]+/,Th=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Eh=Q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Th).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Dh=Q(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,yh).getRegex(),Oh=`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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,kh=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ah=Q(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,kh).replace(`tag`,Oh).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),jh=e=>Q(Ch).replace(`hr`,_h).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,Oh).getRegex(),Mh=jh(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Nh=jh(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Ph={blockquote:Q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Nh).getRegex(),code:hh,def:Eh,fences:gh,heading:vh,hr:_h,html:Ah,lheading:xh,list:Dh,newline:mh,paragraph:Mh,table:uh,text:wh},Fh=Q(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,_h).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,Oh).getRegex(),Ih={...Ph,lheading:Sh,table:Fh,paragraph:Q(Ch).replace(`hr`,_h).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Fh).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,Oh).getRegex()},Lh={...Ph,html:Q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,kh).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:uh,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Q(Ch).replace(`hr`,_h).replace(`heading`,` *#{1,6} *[^
64
- ]`).replace(`lheading`,xh).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Rh=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,zh=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bh=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,Vh=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Hh=/[\p{P}\p{S}]/u,Uh=/[\s\p{P}\p{S}]/u,Wh=/[^\s\p{P}\p{S}]/u,Gh=Q(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,Uh).getRegex(),Kh=/[\p{Pi}\p{Ps}"']/u,qh=/(?!~)[\p{P}\p{S}]/u,Jh=/(?!~)[\s\p{P}\p{S}]/u,Yh=/(?:[^\s\p{P}\p{S}]|~)/u,Xh=Q(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,fh?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Zh=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Qh=Q(Zh,`u`).replace(/punct/g,Hh).getRegex(),$h=Q(Zh,`u`).replace(/punct/g,qh).getRegex(),eg=Q(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,Kh).replace(/punct/g,Hh).getRegex(),tg=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,ng=Q(tg,`gu`).replace(/notPunctSpace/g,Wh).replace(/punctSpace/g,Uh).replace(/punct/g,Hh).getRegex(),rg=Q(tg,`gu`).replace(/notPunctSpace/g,Yh).replace(/punctSpace/g,Jh).replace(/punct/g,qh).getRegex(),ig=Q(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Wh).replace(/punctSpace/g,Uh).replace(/punct/g,Hh).getRegex(),ag=Q(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Wh).replace(/punctSpace/g,Uh).replace(/punct/g,Hh).getRegex(),og=Q(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Wh).replace(/punctSpace/g,Uh).replace(/punct/g,Hh).getRegex(),sg=Q(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,Hh).getRegex(),cg=Q(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Wh).replace(/punctSpace/g,Uh).replace(/punct/g,Hh).getRegex(),lg=Q(/\\(punct)/,`gu`).replace(/punct/g,Hh).getRegex(),ug=Q(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/,`gu`).replace(/punct/g,Hh).getRegex(),dg=Q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),fg=Q(kh).replace(`(?:-->|$)`,`-->`).getRegex(),pg=Q(`^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,fg).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),mg=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,hg=Q(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace(`brackets`,mg).getRegex(),gg=Q(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace(`label`,hg).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),_g=Q(/^!?\[(label)\]\[(ref)\]/).replace(`label`,hg).replace(`ref`,Th).getRegex(),vg=Q(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Th).getRegex(),yg=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,bg=Q(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace(`brackets`,mg).getRegex(),xg=Q(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Q(/^!?\[(label)\]\[(ref)\]/).replace(`label`,bg).replace(`ref`,yg).getRegex()).replace(`nolink`,Q(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,yg).getRegex()).getRegex(),Sg=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Cg=Q(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),wg={_backpedal:uh,anyPunctuation:lg,anyPunctuationOutsideCode:ug,autolink:dg,blockSkip:Xh,br:Bh,code:zh,del:uh,delLDelim:uh,delRDelim:uh,emStrongLDelim:Qh,emStrongRDelimAst:ng,emStrongRDelimUnd:ag,escape:Rh,link:gg,nolink:vg,punctuation:Gh,reflink:_g,reflinkSearch:xg,tag:pg,text:Vh,url:uh},Tg={...wg,emStrongLDelim:eg,emStrongRDelimAst:ig,emStrongRDelimUnd:og,link:Q(/^!?\[(label)\]\((.*?)\)/).replace(`label`,hg).getRegex(),reflink:Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,hg).getRegex()},Eg={...wg,emStrongRDelimAst:rg,emStrongLDelim:$h,delLDelim:sg,delRDelim:cg,url:Q(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`emailProtocol`,Cg).replace(`protocol`,Sg).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Q(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace(`protocol`,Sg).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},Dg={...Eg,br:Q(Bh).replace(`{2,}`,`*`).getRegex(),text:Q(Eg.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Og={normal:Ph,gfm:Ih,pedantic:Lh},kg={normal:wg,gfm:Eg,breaks:Dg,pedantic:Tg},Ag={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},jg=e=>Ag[e];function Mg(e,t){if(t){if(ph.escapeTest.test(e))return e.replace(ph.escapeReplace,jg)}else if(ph.escapeTestNoEncode.test(e))return e.replace(ph.escapeReplaceNoEncode,jg);return e}function Ng(e){return ph.numericCharacterReference.test(e)?e.replace(ph.numericCharacterReferenceOrAmpersand,(e,t,n)=>{if(t===void 0&&n===void 0)return`&amp;`;let r=t===void 0?Number.parseInt(n,16):Number.parseInt(t,10);return r===0||r>1114111||r>=55296&&r<=57343?`�`:r===38?`&amp;`:String.fromCodePoint(r)}):e}function Pg(e){try{e=encodeURI(e).replace(ph.percentDecode,`%`)}catch{return null}return e}function Fg(e,t){let n=e.replace(ph.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(ph.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(ph.slashPipe,`|`);return n}function Ig(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Lg(e){let t=e.split(`
65
- `),n=t.length-1;for(;n>=0&&ph.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
66
- `)}function Rg(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function zg(e,t){if(e.indexOf(t[0])===-1&&e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Bg(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function Vg(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`,l=r.state.inLink,u=r.state.linkEmitted,d=r.state.inRawBlock;r.state.inLink=!0,r.state.linkEmitted=!1;let f=r.inlineTokens(s),p=r.state.linkEmitted;if(r.state.linkEmitted=u,r.state.inLink=l,!c){if(p){r.state.inRawBlock=d;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:f}}function Hg(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
67
- `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return e.slice(Math.min(r.length,i.length))}).join(`
68
- `)}function Ug(e,t,n,r){if(!t.includes(`<`))return!1;for(let i=0;i<t.length;i++){if(t[i]===`\\`){i++;continue}if(t[i]==="`"){let e=r.inline.code.exec(t.slice(i));if(e){i+=e[0].length-1;continue}}if(t[i]!==`<`)continue;let a=e.slice(n+i),o=r.inline.tag.exec(a)||r.inline.autolink.exec(a);if(o){if(o[0].length>t.length-i)return!0;i+=o[0].length-1}}return!1}var Wg=class{options;rules;lexer;constructor(e){this.options=e||ch}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:Lg(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Hg(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Ig(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceTabChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:Ig(t[0],`
69
- `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Ig(t[0],`
70
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Ig(t[0],`
71
- `).split(`
72
- `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
73
- `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
74
- $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
75
- ${s}`:s,r=r?`${r}
76
- ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`||u?.type===`heading`||u?.type===`hr`||u?.type===`html`)break;if(u?.type===`blockquote`){let t=u,a=e.join(`
77
- `),o=t.raw+`
78
- `+a.replace(this.rules.other.blockquoteSetextReplace2,``),s=this.blockquote(o);i[i.length-1]=s;let c=o.substring(s.raw.length).replace(/^\n/,``),l=c?c.split(`
79
- `).length:0,d=l?e.slice(0,-l):e;d.length>0&&(n=`${n}
80
- ${d.join(`
81
- `)}`),r=r.substring(0,r.length-t.text.length)+s.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
82
- `+e.join(`
83
- `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
84
- `)}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=e,r=()=>n.length-e.length,i=t[1].trim(),a=i.length>1,o={type:`list`,raw:``,ordered:a,start:a?+i.slice(0,-1):``,loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:`[*+-]`);let s=this.rules.other.listItemRegex(i),c=!1;for(;e;){let i=!1,a=``;if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;let l=r();e=e.substring(t[0].length);let u=t[2].split(`
85
- `,1)[0],d=t[1].length,f=this.options.pedantic?Bg(u,d):u.replace(this.rules.other.leadingSpaceTab,e=>Bg(e,d)),p=e.split(`
86
- `,1)[0],m=!f.trim(),h=0;if(this.options.pedantic?(h=2,a=f.trimStart()):m?h=d+1:(h=f.search(this.rules.other.nonSpaceChar),h=h>4?1:h,a=f.slice(h),h+=d),m&&this.rules.other.blankLine.test(p)&&(e=e.substring(p.length+1),i=!0),!i){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),r=this.rules.other.fencesBeginRegex(h),i=this.rules.other.headingBeginRegex(h),o=this.rules.other.htmlBeginRegex(h),s=this.rules.other.blockquoteBeginRegex(h);for(;e;){let c=e.split(`
87
- `,1)[0],l;if(p=c,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting,` `),l=p):l=p.replace(this.rules.other.leadingSpaceTab,e=>Bg(e)),r.test(p)||i.test(p)||o.test(p)||s.test(p)||t.test(p)||n.test(p))break;if(l.search(this.rules.other.nonSpaceChar)>=h||!p.trim())a+=`
88
- `+l.slice(h);else{if(m||f.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||r.test(f)||i.test(f)||n.test(f))break;a+=`
89
- `+p}m=!p.trim(),e=e.substring(c.length+1),f=l.slice(h)}}let g=n.slice(l,r());o.loose||(c?o.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(c=!0)),o.items.push({type:`list_item`,raw:g,task:!!this.options.gfm&&this.rules.other.listIsTask.test(a),loose:!1,text:a,tokens:[]})}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=n.slice(0,r()).trimEnd();for(let e of o.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!o.loose){let t=e.tokens.filter(e=>e.type===`space`);o.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of o.items){let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,o.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1}if(o.loose)for(let e of o.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Lg(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){if(!this.rules.other.startAngleBracket.test(t[2])&&zg(t[2],`()`)!==-1)return;let e=Rg(t[1]).replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:Ig(t[0],`
90
- `),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Fg(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
91
- `):[],a={type:`table`,raw:Ig(t[0],`
92
- `),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Fg(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:Ig(t[0],`
93
- `),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
94
- `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){if(this.lexer.state.linkParenPossible===!1)return;let t=this.rules.inline.link.exec(e);if(t){let n=t[0].charAt(0)===`!`?2:1;if(!this.options.pedantic&&Ug(e,t[1],n,this.rules))return;let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let e=Ig(r.slice(0,-1),`\\`);if((r.length-e.length)%2==0)return}else{let e=zg(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let i=t[2],a=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(i);e&&(i=e[1],a=e[3])}else a=t[3]?t[3].slice(1,-1):``;return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(i=this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i.slice(1):i.slice(1,-1)),Vg(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,`$1`),title:a&&a.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=n[0].charAt(0)===`!`?2:1;if(!this.options.pedantic&&Ug(e,n[1],r,this.rules))return;let i=t[Rg((n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `))];if(!i){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Vg(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:e?t[0]:Ng(t[0]),escaped:e}}}},Gg=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ch,this.options.tokenizer=this.options.tokenizer||new Wg,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,linkParenPossible:!0,top:!0};let t={other:ph,block:Og.normal,inline:kg.normal};this.options.pedantic?(t.block=Og.pedantic,t.inline=kg.pedantic):this.options.gfm&&(t.block=Og.gfm,t.inline=this.options.breaks?kg.breaks:kg.gfm),this.tokenizer.rules=t}static get rules(){return{block:Og,inline:kg}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(ph.carriageReturn,`
95
- `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(ph.tabCharGlobal,` `).replace(ph.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
96
- `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
97
- `)?``:`
98
- `)+i.raw,n.text+=`
99
- `+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if((i=this.tokenizer.fences(e))||(i=this.tokenizer.heading(e))||(i=this.tokenizer.hr(e))||(i=this.tokenizer.blockquote(e))||(i=this.tokenizer.list(e))||(i=this.tokenizer.html(e))){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
100
- `)?``:`
101
- `)+i.raw,n.text+=`
102
- `+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if((i=this.tokenizer.table(e))||(i=this.tokenizer.lheading(e))){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
103
- `)?``:`
104
- `)+i.raw,r.text+=`
105
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length)}else if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
106
- `)?``:`
107
- `)+i.raw,n.text+=`
108
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i)}else if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes(`[`))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!==`!`)return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf(`[`);if(e.charAt(0)!==`!`&&Object.hasOwn(this.tokens.links,Rg(e.slice(n+1,-1)))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=this.state.linkParenPossible;this.state.linkParenPossible=n&&e.includes(`)`);try{return this.#e(e,t)}finally{this.state.linkParenPossible=n}}#e(e,t){let n=e;if(this.tokens.links&&e.includes(`[`)){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf(`[`);if(!Object.hasOwn(this.tokens.links,Rg(n.slice(r+1,-1))))return n;if(r>1&&n.charAt(0)!==`!`){let i=n.slice(1,r-1);if(this.linkInText(i))return`[`+i.replace(e,t)+`][`+`a`.repeat(n.length-r-2)+`]`}return`[`+`a`.repeat(n.length-2)+`]`};n=n.replace(e,t)}n=n.replace(this.tokenizer.rules.inline.anyPunctuationOutsideCode,(e,t,n)=>n?`+`.repeat(e.length):t?t+e.slice(t.length,-t.length).replace(/`/g,`+`)+t:e),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=``),r=!1;let o;if(this.options.extensions?.inline?.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if((o=this.tokenizer.escape(e))||(o=this.tokenizer.tag(e))||(o=this.tokenizer.link(e))){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if((o=this.tokenizer.emStrong(e,n,i))||(o=this.tokenizer.codespan(e))||(o=this.tokenizer.br(e))||(o=this.tokenizer.del(e,n,i))||(o=this.tokenizer.autolink(e))||!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o)}else if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},Kg=class{options;parser;constructor(e){this.options=e||ch}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(ph.notSpaceStart)?.[0],i=e?e.replace(ph.endingNewline,``)+`
109
- `:``;return r?`<pre><code class="language-`+Mg(r)+`">`+(n?i:Mg(i,!0))+`</code></pre>
110
- `:`<pre><code>`+(n?i:Mg(i,!0))+`</code></pre>
111
- `}blockquote({tokens:e}){return`<blockquote>
112
- ${this.parser.parse(e)}</blockquote>
113
- `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
114
- `}hr(e){return`<hr>
115
- `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
116
- `+r+`</`+i+`>
117
- `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
118
- `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
119
- `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
120
- <thead>
121
- `+t+`</thead>
122
- `+r+`</table>
123
- `}tablerow({text:e}){return`<tr>
124
- ${e}</tr>
125
- `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
126
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Mg(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let a=i?Mg(n,!0):this.parser.parseInline(r),o=Pg(e);if(o===null)return a;e=Mg(o,i);let s=`<a href="`+e+`"`;return t&&(s+=` title="`+Mg(t)+`"`),s+=`>`+a+`</a>`,s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Pg(e);if(i===null)return Mg(n);e=i;let a=`<img src="${Mg(e)}" alt="${Mg(n)}"`;return t&&(a+=` title="${Mg(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Mg(e.text)}},qg=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},Jg=class e{options;renderer;textRenderer;constructor(e){this.options=e||ch,this.options.renderer=this.options.renderer||new Kg,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new qg}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Yg=class{options;block;constructor(e){this.options=e||ch}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Gg.lex:Gg.lexInline}provideParser(e=this.block){return e?Jg.parse:Jg.parseInline}};function Xg(e,t){if(Array.isArray(t))for(let n=0;n<t.length;n++)e.push(t[n]);else e.push(t)}var Zg=class{defaults=sh();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Jg;Renderer=Kg;TextRenderer=qg;Lexer=Gg;Tokenizer=Wg;Hooks=Yg;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(Xg(n,t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)Xg(n,this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)Xg(n,this.walkTokens(e.tokens,t));break}case`list`:{let e=r;Xg(n,this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);Xg(n,this.walkTokens(i,t))}):e.tokens&&Xg(n,this.walkTokens(e.tokens,t))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Kg(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Wg(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Yg;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=Yg.passThroughHooks.has(n)?e=>{if(this.defaults.async&&Yg.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&Xg(n,t.call(this,e)),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Gg.lex(e,t??this.defaults)}parser(e,t){return Jg.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Gg.lex:Gg.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?Jg.parse:Jg.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Gg.lex:Gg.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?Jg.parse:Jg.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
127
- Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Mg(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Qg=new Zg;function $g(e,t){return Qg.parse(e,t)}$g.options=$g.setOptions=function(e){return Qg.setOptions(e),$g.defaults=Qg.defaults,lh($g.defaults),$g},$g.getDefaults=sh,$g.defaults=ch;function e_(...e){return Qg.use(...e),$g.defaults=Qg.defaults,lh($g.defaults),$g}$g.use=e_,$g.walkTokens=function(e,t){return Qg.walkTokens(e,t)},$g.parseInline=Qg.parseInline,$g.Parser=Jg,$g.parser=Jg.parse,$g.Renderer=Kg,$g.TextRenderer=qg,$g.Lexer=Gg,$g.lexer=Gg.lex,$g.Tokenizer=Wg,$g.Hooks=Yg,$g.parse=$g,$g.options,$g.setOptions,$g.walkTokens,$g.parseInline,Jg.parse,Gg.lex;var t_=e=>e.replace(/[&<>"']/g,e=>`&#${e.charCodeAt(0)};`),n_=new Zg({gfm:!0,renderer:{html:({text:e})=>t_(e),image:({text:e})=>t_(e)}}),r_=[`p`,`br`,`hr`,`strong`,`em`,`del`,`code`,`pre`,`blockquote`,`a`,`ul`,`ol`,`li`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`table`,`thead`,`tbody`,`tr`,`th`,`td`];function i_(e,t){let n=Object.assign([...e],{links:t}),r=n_.parser(n);return oh.sanitize(r,{ALLOWED_TAGS:r_,ALLOWED_ATTR:[`href`,`title`,`align`],ALLOWED_URI_REGEXP:/^(?:https?:|mailto:|#)/i})}function a_(e){let t=n_.lexer(e),n=[],r=[],i=()=>{r.length>0&&n.push({kind:`html`,html:i_(r,t.links)}),r=[]};for(let e of t)e.type===`code`&&`lang`in e&&e.lang?.trim()===`mermaid`&&`text`in e?(i(),n.push({kind:`mermaid`,source:String(e.text)})):r.push(e);return i(),n}function o_({...e}){return(0,z.jsx)(wa,{"data-slot":`dialog`,...e})}function s_({...e}){return(0,z.jsx)(Oa,{"data-slot":`dialog-portal`,...e})}function c_({className:e,...t}){return(0,z.jsx)(Aa,{"data-slot":`dialog-overlay`,className:I(`fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function l_({className:e,children:t,showCloseButton:n=!0,...r}){return(0,z.jsxs)(s_,{children:[(0,z.jsx)(c_,{}),(0,z.jsxs)(Pa,{"data-slot":`dialog-content`,className:I(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[t,n&&(0,z.jsx)(Va,{"data-slot":`dialog-close`,asChild:!0,children:(0,z.jsxs)(J,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`,children:[(0,z.jsx)(we,{}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})]})]})}function u_({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`dialog-header`,className:I(`flex flex-col gap-2`,e),...t})}function d_({className:e,showCloseButton:t=!1,children:n,...r}){return(0,z.jsxs)(`div`,{"data-slot":`dialog-footer`,className:I(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,z.jsx)(Va,{asChild:!0,children:(0,z.jsx)(J,{variant:`outline`,children:`Close`})})]})}function f_({className:e,...t}){return(0,z.jsx)(Ra,{"data-slot":`dialog-title`,className:I(`font-heading text-base leading-none font-medium`,e),...t})}function p_({className:e,...t}){return(0,z.jsx)(za,{"data-slot":`dialog-description`,className:I(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}var m_=`modulepreload`,h_=function(e){return`/`+e},g_={},__=function(e){return e.pathname.endsWith(`.css`)},v_=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},$=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=h_(t,n);let r=s(t),i=__(r);return v_(g_,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`:m_,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)})},y_=null,b_=0;function x_(){return y_??=$(async()=>{let{default:e}=await import(`./mermaid.core-DBI9F4bh.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])).then(({default:e})=>(e.initialize({startOnLoad:!1,securityLevel:`strict`,suppressErrorRendering:!0,theme:document.documentElement.classList.contains(`dark`)?`dark`:`default`}),e)),y_}async function S_(e){let t=await x_();b_+=1;let{svg:n}=await t.render(`follow-me-diagram-${b_}`,e);return n}var C_=`flex justify-center [&_svg]:h-auto [&_svg]:max-h-[360px] [&_svg]:max-w-full xl:[&_svg]:max-h-[480px]`;function w_(e){return`key`in e&&e.key!==`Enter`&&e.key!==` `?null:e.target instanceof Element?e.target.closest(`[data-pick]`):null}function T_({source:e,title:t,picks:n}){let[r,i]=(0,O.useState)(null),[a,o]=(0,O.useState)(null),[s,c]=(0,O.useState)(!1),[l,u]=(0,O.useState)(!1),d=(0,O.useRef)(null),f=(0,O.useRef)(!1);(0,O.useEffect)(()=>{let t=!0;return S_(e).then(e=>t&&i(e)).catch(e=>t&&o(e instanceof Error?e.message:String(e))),()=>{t=!1}},[e]);let p=n?.decorate;(0,O.useLayoutEffect)(()=>{r!==null&&d.current!==null&&p?.(d.current)},[r,p]);let m=(0,O.useCallback)(e=>{e!==null&&r!==null&&p?.(e)},[r,p]),h=e=>{let t=w_(e);t===null?e.type===`click`&&c(!0):(e.preventDefault(),n?.onPick(t.getAttribute(`data-pick`)??``,t))},g=e=>{let t=w_(e);if(t===null)return;e.preventDefault();let r=t.getAttribute(`data-pick`)??``;f.current=!0,c(!1),requestAnimationFrame(()=>{let e=d.current?.querySelector(`[data-pick="${CSS.escape(r)}"]`)??d.current;e!==null&&n?.onPick(r,e)})};if(a!==null)return(0,z.jsxs)(`figure`,{className:`rounded-lg border border-dashed p-3 text-sm`,children:[(0,z.jsxs)(`figcaption`,{className:`mb-1 text-muted-foreground text-xs`,children:[`The diagram did not render: `,a]}),(0,z.jsx)(`pre`,{className:`overflow-x-auto font-mono text-xs`,children:e})]});let _=r===null?(0,z.jsx)(`div`,{className:`h-24 animate-pulse rounded bg-muted`}):(0,z.jsx)(`div`,{ref:d,className:C_,dangerouslySetInnerHTML:{__html:r}});return(0,z.jsxs)(z.Fragment,{children:[n===void 0?(0,z.jsx)(`button`,{type:`button`,"aria-label":`Enlarge ${t}`,disabled:r===null,onClick:()=>c(!0),className:`block w-full cursor-zoom-in rounded-lg border bg-card p-3 transition-colors hover:border-ring`,children:_}):(0,z.jsxs)(`div`,{className:`relative cursor-zoom-in rounded-lg border bg-card p-3`,onClick:h,onKeyDown:h,children:[_,(0,z.jsx)(J,{variant:`ghost`,size:`icon-xs`,className:`absolute top-2 right-2`,"aria-label":`Enlarge ${t}`,disabled:r===null,onClick:e=>{e.stopPropagation(),c(!0)},children:(0,z.jsx)(F,{})})]}),(0,z.jsx)(o_,{open:s,onOpenChange:c,children:(0,z.jsxs)(l_,{className:`flex h-[90vh] w-[95vw] max-w-none flex-col sm:max-w-none`,onCloseAutoFocus:e=>{f.current&&(f.current=!1,e.preventDefault())},children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 pr-10`,children:[(0,z.jsx)(f_,{className:`text-sm`,children:t}),(0,z.jsxs)(`div`,{className:`ml-auto flex gap-1`,children:[(0,z.jsx)(J,{size:`xs`,variant:l?`ghost`:`secondary`,onClick:()=>u(!1),children:`Fit`}),(0,z.jsx)(J,{size:`xs`,variant:l?`secondary`:`ghost`,onClick:()=>u(!0),children:`Actual size`})]})]}),(0,z.jsx)(`div`,{ref:m,onClick:n===void 0?void 0:g,onKeyDown:n===void 0?void 0:g,className:I(`min-h-0 flex-1 overflow-auto rounded-md bg-background`,l?`[&_svg]:max-w-none!`:`flex items-center justify-center [&_svg]:h-full! [&_svg]:max-h-full [&_svg]:w-full [&_svg]:max-w-full!`),dangerouslySetInnerHTML:{__html:r??``}})]})})]})}function E_({text:e,title:t=`Diagram`}){let n=(0,O.useMemo)(()=>a_(e),[e]);return(0,z.jsx)(`div`,{className:`space-y-2`,children:n.map((e,n)=>e.kind===`mermaid`?(0,z.jsx)(T_,{source:e.source,title:t},n):(0,z.jsx)(`div`,{className:`prose-fm max-w-[72ch]`,dangerouslySetInnerHTML:{__html:e.html}},n))})}var D_=[`blocker`,`major`,`minor`],O_={blocker:`bg-rose-500/15 text-rose-700 dark:text-rose-300`,major:`bg-amber-500/15 text-amber-800 dark:text-amber-300`,minor:`bg-slate-500/15 text-slate-700 dark:text-slate-300`};function k_({severity:e,className:t}){return(0,z.jsx)(`span`,{className:I(`rounded-full px-2 py-px font-medium text-xs`,O_[e],t),children:e})}function A_({value:e,onChange:t}){return(0,z.jsxs)(`fieldset`,{className:`flex items-center gap-1`,children:[(0,z.jsx)(`legend`,{className:`sr-only`,children:`Severity`}),D_.map(n=>(0,z.jsx)(`button`,{type:`button`,"aria-pressed":e===n,onClick:()=>t(e===n?null:n),className:I(`rounded-full px-2 py-px text-xs ring-1 ring-border transition-colors`,e===n?O_[n]:`text-muted-foreground hover:bg-muted`),children:n},n))]})}var j_=`follow-me report --json`;function M_({text:e,label:t}){let[n,r]=(0,O.useState)(!1);return(0,z.jsxs)(J,{variant:`ghost`,size:`xs`,onClick:()=>void navigator.clipboard.writeText(e).then(()=>{r(!0),setTimeout(()=>r(!1),1200)}),children:[(0,z.jsx)(fe,{}),n?`Copied`:t]})}var N_={flag:`Flag`,question:`Question`,concern:`Kept concern`};function P_({item:e,included:t,onInclude:n,lines:r,toggleable:i}){let a=Jd(e),o=ef(e),{said:s,answer:c}=Zd(e.body),l=e.thread.filter(e=>c===null||e.body.trim()!==c.trim());return(0,z.jsxs)(`article`,{"aria-label":`${N_[e.kind]} ${a??`on the branch`}`,className:I(`rounded-lg border bg-card p-4 text-sm`,!t&&`opacity-60`),children:[(0,z.jsxs)(`div`,{className:`mb-2 flex flex-wrap items-center gap-2`,children:[i?(0,z.jsx)(kp,{checked:t,onChange:n,name:`Include ${a??N_[e.kind]}`,children:`Include`}):null,e.kind===`question`&&!e.resolved?(0,z.jsx)(`span`,{className:`text-amber-700 text-xs dark:text-amber-300`,children:`still open`}):null,(0,z.jsx)(`span`,{className:`font-mono text-xs`,children:a??`General`}),e.severity===null?null:(0,z.jsx)(k_,{severity:e.severity}),(0,z.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:N_[e.kind]}),e.resolved?(0,z.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:`✓ resolved`}):null,o===null?null:(0,z.jsx)(`span`,{className:`text-amber-700 text-xs dark:text-amber-300`,children:o}),(0,z.jsxs)(`span`,{className:`ml-auto flex gap-1`,children:[(0,z.jsx)(M_,{text:e.body,label:`Copy comment`}),a===null?null:(0,z.jsx)(M_,{text:a.replace(/ \((new|old)\)$/,``),label:`Copy path:line`})]})]}),r.length>0?(0,z.jsx)(`pre`,{className:`mb-2 overflow-x-auto rounded bg-muted px-2 py-1 font-mono text-xs`,children:r.join(`
128
- `)}):null,(0,z.jsx)(E_,{text:s.replace(/^\*\*(blocker|major|minor)\*\*\n\n/,``)}),c===null?null:(0,z.jsxs)(`div`,{className:`mt-3 border-sky-500/60 border-l-2 pl-3`,children:[(0,z.jsx)(`div`,{className:`mb-1 font-medium text-xs`,children:`Agent`}),(0,z.jsx)(E_,{text:c})]}),l.length===0?null:(0,z.jsxs)(`details`,{className:`mt-3 text-muted-foreground`,children:[(0,z.jsxs)(`summary`,{className:`cursor-pointer text-xs`,children:[l.length,` more in the thread`]}),(0,z.jsx)(`div`,{className:`mt-2 space-y-2`,children:l.map((e,t)=>(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`font-medium text-foreground text-xs`,children:e.author===`agent`?`Agent`:`You`}),(0,z.jsx)(E_,{text:e.body})]},t))})]})]})}function F_(){let{state:e,run:t,ended:n}=X(),[r,i]=(0,O.useState)(null),[a,o]=(0,O.useState)(null),[s,c]=(0,O.useState)(new Map),[l,u]=(0,O.useState)(!1);(0,O.useEffect)(()=>{qd.report().then(i).catch(e=>o(e instanceof Error?e.message:String(e)))},[]);let d=(r??[]).map(t=>Qd(t,e)),f=(r??[]).filter((e,t)=>Yd(e,s,d[t]?.id??null)),p=async(e,n)=>{c(t=>new Map(t).set(e,n)),await t(()=>qd.exclude(e,!n))||c(t=>new Map(t).set(e,!n))},m=async()=>{await t(()=>qd.end())&&u(!0)},h=new Map;(r??[]).forEach((e,t)=>{let n=e.path??``;h.set(n,[...h.get(n)??[],t])});let g=[...h].sort(([e],[t])=>e===``?1:t===``?-1:0);return(0,z.jsxs)(`div`,{className:`min-h-screen`,children:[(0,z.jsx)(`header`,{className:`sticky top-0 z-30 h-11 border-b bg-background/95 backdrop-blur`,children:(0,z.jsxs)(`div`,{className:`mx-auto flex h-full max-w-[1232px] items-center gap-3 px-6 text-sm`,children:[(0,z.jsx)(`strong`,{children:`follow-me`}),(0,z.jsxs)(`span`,{className:`min-w-0 truncate text-muted-foreground`,children:[`· `,e.anchor.branch,` → `,e.anchor.baseRef,` · plan v`,e.version,` · hand-off`]}),n||l?null:(0,z.jsxs)(J,{variant:`ghost`,size:`sm`,className:`ml-auto`,onClick:()=>nf(`review`),children:[(0,z.jsx)(j,{}),`Back to review`]})]})}),(0,z.jsxs)(`main`,{className:`mx-auto max-w-[920px] space-y-6 px-6 py-8`,children:[(0,z.jsxs)(`section`,{className:`space-y-3`,children:[(0,z.jsx)(`h1`,{className:`font-semibold text-xl`,children:`Carry the review to the merge request`}),(0,z.jsx)(`p`,{className:`max-w-[72ch] text-muted-foreground text-sm`,children:`Lines are the original branch's, so they match the merge request against the same base. Flags and kept concerns go by default; tick a question to ask the author too.`}),r===null?null:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-sm`,children:[(0,z.jsxs)(`span`,{className:`font-medium`,children:[f.length,` included · `,r.length-f.length,` excluded`]}),(0,z.jsx)(`span`,{className:`ml-auto`}),(0,z.jsx)(M_,{text:$d(f),label:`Copy all as markdown`}),(0,z.jsx)(J,{variant:`ghost`,size:`xs`,asChild:!0,children:(0,z.jsxs)(`a`,{href:`${Hd}/api/report?format=json`,download:`report.json`,children:[(0,z.jsx)(me,{}),`report.json`]})})]}),(0,z.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border bg-muted/40 px-3 py-2 text-sm`,children:[(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`Or ask your agent to run`}),(0,z.jsx)(`code`,{className:`font-mono`,children:j_}),(0,z.jsx)(`span`,{className:`ml-auto`,children:(0,z.jsx)(M_,{text:j_,label:`Copy`})})]})]}),a===null?null:(0,z.jsxs)(`p`,{role:`alert`,className:`text-rose-700 text-sm dark:text-rose-300`,children:[`The report did not load: `,a]}),r!==null&&r.length===0?(0,z.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:`Nothing to carry over: no flags, kept concerns or questions.`}):null,g.map(([e,t])=>(0,z.jsxs)(`section`,{className:`space-y-2`,"aria-label":e===``?`General`:e,children:[(0,z.jsx)(`h2`,{className:`font-medium font-mono text-sm`,children:e===``?`General`:e}),t.map(e=>{let t=r?.[e];if(t===void 0)return null;let n=d[e]??null;return(0,z.jsx)(P_,{item:t,lines:n?.comment?.context.lines??[],toggleable:n!==null,included:Yd(t,s,n?.id??null),onInclude:e=>n!==null&&void p(n.id,e)},n?.id??`item-${e}`)})]},e)),(0,z.jsx)(`section`,{className:`flex items-center gap-3 border-t pt-6 text-sm`,children:n||l?(0,z.jsxs)(`p`,{className:`text-muted-foreground`,children:[`The review is handed back. Your agent reads it with`,` `,(0,z.jsx)(`code`,{className:`font-mono`,children:j_}),`.`]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`Done here? Ending the review hands it back to your agent.`}),(0,z.jsx)(J,{className:`ml-auto`,onClick:()=>void m(),children:`End review`})]})})]})]})}function I_(e){let t=[];for(let n of e){let e=bf(n),r=t.at(-1);r!==void 0&&r.section===e?r.commits.push(n):t.push({section:e,commits:[n]})}return t}var L_=(e,t,n)=>`${e} ${e===1?t:n}`;function R_(e,t){let n=[`${e.index+1}`,df(e.message)];return t.viewed&&n.push(`viewed`),t.open>0&&n.push(L_(t.open,`open thread`,`open threads`)),t.unread>0&&n.push(L_(t.unread,`unread agent reply`,`unread agent replies`)),t.undecided>0&&n.push(L_(t.undecided,`agent concern`,`agent concerns`)),t.coverage!==void 0&&t.coverage.total>0&&n.push(`${Qf(t.coverage)}% of new lines covered`),n.join(` · `)}function z_(e){let t=e.filter(e=>e.viewed).length,n=e.reduce((e,t)=>e+t.open,0),r=`${t} of ${e.length} viewed`;return n===0?r:`${r} · ${L_(n,`open thread`,`open threads`)}`}function B_(e,t){let n=new Map;for(let r of e){if(r.kind===`version`||r.thread===null)continue;let e=t.get(r.thread);e!==void 0&&n.set(e,(n.get(e)??0)+1)}return n}var V_=1280;function H_(e,t){return e.has(`open`)?!0:!e.has(`closed`)&&t>=V_}function U_(e){try{let t=JSON.parse(localStorage.getItem(`follow-me:${Hd}:${e}`)??`[]`);return new Set(Array.isArray(t)?t.filter(e=>typeof e==`string`):[])}catch{return new Set}}function W_(e,t){localStorage.setItem(`follow-me:${Hd}:${e}`,JSON.stringify([...t]))}var G_=(0,O.createContext)(null);function K_(){let e=(0,O.useContext)(G_);if(e===null)throw Error(`usePage outside PageProvider`);return e}function q_(){let e=Tp();return K_().coverageOn?e:null}function J_(e){document.getElementById(`commit-${e+1}`)?.scrollIntoView({block:`start`})}function Y_(){let e={commit:0,offset:0};for(let t of document.querySelectorAll(`section[data-commit]`)){let n=t.getBoundingClientRect().top;if(n>45)break;e={commit:Number(t.dataset.commit),offset:44-n}}return e}function X_(e){let t=document.getElementById(`commit-${e.commit+1}`);t!==null&&window.scrollBy(0,t.getBoundingClientRect().top-44+e.offset)}function Z_(){let[e,t]=(0,O.useState)(0);return(0,O.useEffect)(()=>{let e=0,n=()=>{e=0;let n=44+(window.innerHeight-44)/3,r=document.querySelectorAll(`section[data-commit]`),i=0;for(let e of r){if(e.getBoundingClientRect().top>n)break;i=Number(e.dataset.commit)}t(i)},r=()=>{e===0&&(e=requestAnimationFrame(n))};return n(),window.addEventListener(`scroll`,r,{passive:!0}),()=>{window.removeEventListener(`scroll`,r),cancelAnimationFrame(e)}},[]),e}function Q_({children:e}){let{state:t}=X(),n=Z_(),[r,i]=(0,O.useState)(()=>U_(`viewed`)),[a,o]=(0,O.useState)(()=>U_(`resolved`)),[s,c]=(0,O.useState)(null),[l,u]=(0,O.useState)(null),d=(0,O.useCallback)((e,t)=>u(e===null?null:{kind:e,body:t??null}),[]),[f,p]=(0,O.useState)(()=>U_(`prefs`).has(`notify`)&&`Notification`in window&&Notification.permission===`granted`),m=(0,O.useCallback)(async e=>{let t=e&&`Notification`in window&&await Notification.requestPermission()===`granted`;p(t),W_(`prefs`,new Set(t?[`notify`]:[]))},[]),[h,g]=(0,O.useState)(()=>H_(U_(`index`),window.innerWidth)),_=(0,O.useCallback)(e=>{g(e),W_(`index`,new Set([e?`open`:`closed`]))},[]),[v,y]=(0,O.useState)(()=>!U_(`coverage`).has(`off`)),b=(0,O.useCallback)(e=>{y(e),W_(`coverage`,new Set(e?[]:[`off`]))},[]),[x,S]=(0,O.useState)(new Set),C=(0,O.useCallback)((e,t)=>S(n=>new Set([...n,`${e}`,`${e}|${t}`])),[]),w=(0,O.useCallback)(e=>{c(e),e===null&&u(null)},[]),T=(0,O.useCallback)((e,t)=>{o(n=>{let r=new Set(n);return t?r.add(e):r.delete(e),W_(`resolved`,r),r})},[]),E=(0,O.useCallback)((e,t)=>{i(n=>{let r=new Set(n);return t?r.add(e):r.delete(e),W_(`viewed`,r),r})},[]),D=(0,O.useMemo)(()=>{let e=(e,t)=>`${_f(e)}|${t}`;return{current:n,isViewed:e=>r.has(_f(e)),setViewed:(e,n)=>{if(E(_f(e),n),!n)return;let i=t.commits.find(t=>t.index>e.index&&!r.has(_f(t)));i!==void 0&&requestAnimationFrame(()=>J_(i.index))},isFileViewed:(t,n)=>r.has(e(t,n)),setFileViewed:(t,n,r)=>E(e(t,n),r),resolved:new Set([...t.resolved,...a]),setLocallyResolved:T,pick:s,setPick:w,box:s===null?null:l?.kind??null,boxBody:s===null?null:l?.body??null,setBox:d,notify:f,setNotify:m,indexOpen:h,setIndexOpen:_,isRevealed:(e,t)=>x.has(t===void 0?`${e}`:`${e}|${t}`),reveal:C,coverageOn:v,setCoverageOn:b}},[n,r,E,t.commits,t.resolved,a,T,s,w,l,d,f,m,h,_,x,C,v,b]);return(0,z.jsx)(G_,{value:D,children:e})}function $_({...e}){return(0,z.jsx)(Ju,{"data-slot":`popover`,...e})}function ev({...e}){return(0,z.jsx)(Qu,{"data-slot":`popover-trigger`,...e})}function tv({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,z.jsx)(W,{children:(0,z.jsx)(G,{"data-slot":`popover-content`,align:t,sideOffset:n,className:I(`z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r})})}function nv({...e}){return(0,z.jsx)(Xu,{"data-slot":`popover-anchor`,...e})}function rv(e,t,n){return{anchor:e,context:t,body:n.body,...n.kind===`ask`?{kind:`question`}:{},...n.severity===null?{}:{severity:n.severity}}}function iv({...e}){return(0,z.jsx)(ju,{"data-slot":`dropdown-menu`,...e})}function av({...e}){return(0,z.jsx)(Nu,{"data-slot":`dropdown-menu-trigger`,...e})}function ov({className:e,align:t=`start`,sideOffset:n=4,...r}){return(0,z.jsx)(Pu,{children:(0,z.jsx)(Iu,{"data-slot":`dropdown-menu-content`,sideOffset:n,align:t,className:I(`z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r})})}function sv({className:e,inset:t,variant:n=`default`,...r}){return(0,z.jsx)(Lu,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:I(`group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive`,e),...r})}function cv({className:e,children:t,checked:n,inset:r,...i}){return(0,z.jsxs)(Ru,{"data-slot":`dropdown-menu-checkbox-item`,"data-inset":r,className:I(`relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),checked:n,...i,children:[(0,z.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`,"data-slot":`dropdown-menu-checkbox-item-indicator`,children:(0,z.jsx)(zu,{children:(0,z.jsx)(ae,{})})}),t]})}function lv({className:e,...t}){return(0,z.jsx)(`textarea`,{"data-slot":`textarea`,className:I(`flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...t})}var uv=[`ask`,`flag`];function dv({kind:e,label:t,placeholder:n,actions:r,onCancel:i,kinds:a=!0,className:o,initialBody:s=``}){let[c,l]=(0,O.useState)(s),u=(0,O.useRef)(!1),[d,f]=(0,O.useState)(e),[p,m]=(0,O.useState)(null),[h,g]=(0,O.useState)(!1),_=r(d),v=async e=>{if(e===void 0||c.trim()===``||h)return;g(!0);let t=await e.run({body:c.trim(),kind:d,severity:d===`flag`?p:null});g(!1),t&&i()};return(0,z.jsxs)(`div`,{className:I(`space-y-2 rounded-lg border bg-card p-3 font-sans shadow-sm`,o),children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-muted-foreground text-xs`,children:[(0,z.jsx)(`span`,{children:t}),a?(0,z.jsxs)(`fieldset`,{className:`ml-auto flex rounded-md bg-muted p-0.5`,children:[(0,z.jsx)(`legend`,{className:`sr-only`,children:`Kind`}),uv.map(e=>(0,z.jsx)(`button`,{type:`button`,"aria-pressed":d===e,onClick:()=>f(e),className:I(`rounded px-2 py-0.5 text-xs`,d===e?`bg-background text-foreground shadow-sm`:`text-muted-foreground`),children:e===`ask`?`Ask`:`Flag`},e))]}):null]}),(0,z.jsx)(lv,{autoFocus:!0,"aria-label":t,value:c,onFocus:e=>{if(u.current)return;u.current=!0;let t=e.currentTarget.value.length;e.currentTarget.setSelectionRange(t,t)},placeholder:n??(d===`ask`?`What would you like to know?`:`What should change?`),onChange:e=>l(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&!e.shiftKey?(e.preventDefault(),v(_.find(e=>e.primary)??_[0])):e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),i())}}),(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[d===`flag`&&a?(0,z.jsx)(A_,{value:p,onChange:m}):null,(0,z.jsx)(`span`,{className:`ml-auto`}),(0,z.jsx)(J,{variant:`ghost`,size:`sm`,onClick:i,children:`Cancel`}),_.map(e=>(0,z.jsx)(J,{size:`sm`,variant:e.primary?`default`:`outline`,disabled:h||c.trim()===``,onClick:()=>void v(e),children:e.label},e.label))]})]})}var fv={kind:`unknown`,run:0,total:0,tests:[]};function pv(e,t){if(e===null||t.some(t=>e.stale.includes(t.path)))return fv;let n=0,r=0,i=!1,a=new Set;for(let o of t)for(let t=o.start;t<=o.end;t+=1){let s=qf(e,o.path,t);if(s!==null&&(r+=1,s.kind!==`uncovered`)){n+=1,s.kind===`partly`&&(i=!0);for(let n of rp(e.tests,o.path,t)??[])a.add(n.id)}}return r===0?fv:{kind:n===0?`uncovered`:n<r||i?`partly`:`covered`,run:n,total:r,tests:[...a].sort()}}var mv={covered:`✓`,partly:`◐`,uncovered:`✕`,unknown:``},hv={covered:`covered`,partly:`partly covered`,uncovered:`not covered`,unknown:`coverage unknown`};function gv(e){if(e.kind===`unknown`)return hv.unknown;let t=e.total===1?`line`:`lines`;return`${hv[e.kind]}, ${e.run} of ${e.total} ${t}`}function _v(e){let t=Object.entries(e.states).map(([e,t])=>({key:`s:${e}`,kind:`state`,name:e,event:null,at:t})),n=(e.transitions??[]).map((e,t)=>({key:`t:${t}`,kind:`move`,name:`${e.from} → ${e.to}`,event:e.event??null,at:e.at}));return[...t,...n]}function vv(e){return`${e.path}:${e.start}${e.end>e.start?`-${e.end}`:``}`}function yv(e,t,n,r,i){let a=new Set;return e.flatMap(e=>{let o=ap(e,ip(e,t,n,r,i)),s=o.unit===null?`${e.path}:${e.start}`:`${o.commit}|${o.unit}|${o.row}`;return a.has(s)?[]:(a.add(s),[o])})}var bv=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);function xv(e,t,n){let r=new Map;for(let i of n){let n=RegExp(`^${bv(e)}-state-${bv(i)}-\\d+$`),a=t.find(e=>n.test(e.id))??t.find(t=>t.id.startsWith(`${e}-state-`)&&t.text.trim()===i);a!==void 0&&r.set(i,a.id)}return r}var Sv=/[A-Za-z0-9_$]/,Cv=/[0-9]/;function wv(e,t){let n=Sv.test(e[t]??``)?t:Sv.test(e[t-1]??``)?t-1:-1;if(n<0)return null;let r=n;for(;r>0&&Sv.test(e[r-1]??``);)--r;let i=n+1;for(;i<e.length&&Sv.test(e[i]??``);)i+=1;let a=e.slice(r,i);return Cv.test(a[0]??``)?null:{name:a,start:r,end:i}}function Tv(e){return/mac|iphone|ipad/i.test(e)}function Ev(e,t){return t?e.metaKey:e.ctrlKey}function Dv(e){return e.unit!==null&&e.commit!==null}function Ov(e,t){let n=`${e.path}:${e.newLine}`;if(e.commit===null)return{place:n,where:`outside this branch`};let r=t[e.commit],i=r===void 0?null:bf(r),a=`in commit ${e.commit+1}`;return{place:n,where:i===null?a:`${a} · ${xf(i)}`}}function kv(e){let[t,...n]=e;return t===void 0?{kind:`none`}:n.length>0?{kind:`choose`,candidates:e}:Dv(t)?{kind:`jump`,candidate:t}:{kind:`peek`,candidate:t}}function Av(e,t){return[...e,t].slice(-20)}function jv(e){let t=e.at(-1);return t===void 0?null:{spot:t.spot,rest:e.slice(0,-1)}}function Mv(e){let t=e.at(-1);return t===void 0?null:`Back to commit ${t.from+1}`}var Nv=1600;function Pv(e,t=`thread-flash`){e.classList.remove(t),e.getBoundingClientRect(),e.classList.add(t),setTimeout(()=>e.classList.remove(t),Nv)}function Fv(e){let t=document.querySelector(`[data-thread-id="${CSS.escape(e)}"]`);return t!==null&&(t.scrollIntoView({block:`center`}),Pv(t),!0)}var Iv=new Map([[`js`,`javascript`],[`mjs`,`javascript`],[`cjs`,`javascript`],[`jsx`,`jsx`],[`ts`,`typescript`],[`tsx`,`tsx`],[`json`,`json`],[`md`,`markdown`],[`css`,`css`],[`html`,`markup`],[`sh`,`bash`],[`bash`,`bash`],[`py`,`python`],[`go`,`go`],[`rs`,`rust`],[`rb`,`ruby`],[`java`,`java`],[`kt`,`kotlin`],[`c`,`c`],[`cpp`,`cpp`],[`h`,`c`],[`yaml`,`yaml`],[`yml`,`yaml`],[`toml`,`toml`],[`sql`,`sql`],[`swift`,`swift`],[`php`,`php`]]);function Lv(e){let t=e.slice(e.lastIndexOf(`/`)+1),n=t.lastIndexOf(`.`);return n<=0?null:Iv.get(t.slice(n+1).toLowerCase())??null}var Rv=new Map([[`comment`,`comment`],[`prolog`,`comment`],[`doctype`,`comment`],[`cdata`,`comment`],[`keyword`,`keyword`],[`atrule`,`keyword`],[`important`,`keyword`],[`string`,`string`],[`char`,`string`],[`attr-value`,`string`],[`template-string`,`string`],[`url`,`string`],[`regex`,`string`],[`number`,`number`],[`boolean`,`number`],[`constant`,`number`],[`symbol`,`number`],[`unit`,`number`],[`function`,`function`],[`class-name`,`type`],[`builtin`,`type`],[`namespace`,`type`],[`property`,`property`],[`attr-name`,`property`],[`variable`,`property`],[`parameter`,`property`],[`tag`,`tag`],[`selector`,`tag`],[`entity`,`tag`]]);function zv(e){for(let t of e){let e=Rv.get(t);if(e!==void 0)return e}return null}function Bv(e){return typeof e==`object`&&!!e&&`type`in e&&`content`in e}function Vv(e,t,n){for(let r of e)if(typeof r==`string`)n.push({text:r,types:t});else if(Bv(r)){let e=[r.alias].flat().filter(e=>typeof e==`string`),i=[r.type,...e,...t];Vv(Array.isArray(r.content)?r.content:[r.content],i,n)}}function Hv(e){let t=[];Vv(e,[],t);let n=[[]];for(let e of t){let t=zv(e.types);e.text.split(`
129
- `).forEach((e,r)=>{r>0&&n.push([]);let i=n.at(-1);if(i===void 0||e===``)return;let a=i.at(-1);a?.tone===t?a.text+=e:i.push({text:e,tone:t})})}return n}function Uv(e,t){let n=n=>{let r=e.flatMap((e,t)=>n(e)?[t]:[]),i=r.map(t=>(e[t]?.text??``).replace(/\n$/,``));if(i.length===0)return new Map;let a=Hv(t(i.join(`
130
- `)));return a.length===i.length&&a.every((e,t)=>e.map(e=>e.text).join(``)===i[t])?new Map(r.map((e,t)=>[e,a[t]??[]])):null},r=n(e=>e.op!==`+`),i=n(e=>e.op!==`-`);return r===null||i===null?null:e.map((e,t)=>(e.op===`-`?r.get(t):i.get(t))??[])}var Wv={javascript:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-javascript-BnO-swvr.js`),[])],jsx:[()=>$(()=>import(`./prism-markup-Cp04rIa1.js`),[]),()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-javascript-BnO-swvr.js`),[]),()=>$(()=>import(`./prism-jsx-D-D0NWtC.js`),[])],typescript:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-javascript-BnO-swvr.js`),[]),()=>$(()=>import(`./prism-typescript-BMqONzxf.js`),[])],tsx:[()=>$(()=>import(`./prism-markup-Cp04rIa1.js`),[]),()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-javascript-BnO-swvr.js`),[]),()=>$(()=>import(`./prism-jsx-D-D0NWtC.js`),[]),()=>$(()=>import(`./prism-typescript-BMqONzxf.js`),[]),()=>$(()=>import(`./prism-tsx-p6J2Kc_4.js`),[])],json:[()=>$(()=>import(`./prism-json-Dp_-W-Hv.js`),[])],markdown:[()=>$(()=>import(`./prism-markup-Cp04rIa1.js`),[]),()=>$(()=>import(`./prism-markdown-Bc9-36OC.js`),[])],css:[()=>$(()=>import(`./prism-css-CPgOzxXp.js`),[])],markup:[()=>$(()=>import(`./prism-markup-Cp04rIa1.js`),[]),()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-javascript-BnO-swvr.js`),[]),()=>$(()=>import(`./prism-css-CPgOzxXp.js`),[])],bash:[()=>$(()=>import(`./prism-bash-D6zCJ74D.js`),[])],python:[()=>$(()=>import(`./prism-python-CfiSVtM6.js`),[])],go:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-go-C_8qAH5n.js`),[])],rust:[()=>$(()=>import(`./prism-rust-Bu9N8X3N.js`),[])],ruby:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-ruby-DFCASkuD.js`),[])],java:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-java-6wtusvIl.js`),[])],kotlin:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-kotlin-BUlJgC-o.js`),[])],c:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-c-04YixN25.js`),[])],cpp:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-c-04YixN25.js`),[]),()=>$(()=>import(`./prism-cpp-C-lJbC-6.js`),[])],yaml:[()=>$(()=>import(`./prism-yaml-C0JHu8gr.js`),[])],toml:[()=>$(()=>import(`./prism-toml-DKb54GAT.js`),[])],sql:[()=>$(()=>import(`./prism-sql-CYhVDMEE.js`),[])],swift:[()=>$(()=>import(`./prism-swift-B0kWc-ne.js`),[])],php:[()=>$(()=>import(`./prism-markup-Cp04rIa1.js`),[]),()=>$(()=>import(`./prism-markup-templating-KkSMBj6Y.js`),[]),()=>$(()=>import(`./prism-php-Co4fM40K.js`),[])]},Gv=null,Kv=new Map;function qv(){return Gv??=$(()=>import(`./prism-core-NtO0YF9C.js`).then(e=>c(e.default,1)).then(e=>e.default),[]),Gv}function Jv(e){let t=Wv[e];if(t===void 0)return Promise.resolve(null);let n=Kv.get(e);return n===void 0&&(n=(async()=>{try{let e=await qv();for(let e of t)await e();return e}catch{return null}})(),Kv.set(e,n)),n}function Yv(e,t){let[n,r]=(0,O.useState)(null);return(0,O.useEffect)(()=>{let n=Lv(e);if(n===null)return;let i=!0;return Jv(n).then(e=>{let a=e?.languages[n];i&&e!==null&&a!==void 0&&r(Uv(t,t=>e.tokenize(t,a)))}),()=>{i=!1}},[e,t]),n}function Xv(e){return Yv(e.path,e.body)}var Zv=Tv(navigator.platform),Qv=`definition`,$v=120,ey=/\btok-(string|comment|keyword|number)\b/;function ty(e,t,n){let r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),i=document.createRange(),a=0,o=!1;for(let e=r.nextNode();e!==null;e=r.nextNode()){let r=e.textContent?.length??0;if(!o&&t<=a+r&&(i.setStart(e,t-a),o=!0),o&&n<=a+r)return i.setEnd(e,n-a),i;a+=r}return null}function ny(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function ry(e,t){let n=document.caretPositionFromPoint(e,t),r=n?.offsetNode;if(n==null||!(r instanceof Text))return null;let i=r.parentElement,a=i?.closest(`[data-code]`),o=a?.closest(`[data-path]`)?.dataset.path;if(i===null||a==null||o===void 0||ey.test(i.className))return null;let s=document.createRange();s.setStart(a,0),s.setEnd(r,n.offset);let c=wv(a.textContent??``,s.toString().length),l=c===null?null:ty(a,c.start,c.end);return c===null||l===null||![...l.getClientRects()].some(n=>ny(n,e,t))?null:{code:a,token:c,range:l,path:o}}function iy(){let{state:e}=X(),t=(0,O.useRef)(new Map),n=(0,O.useRef)(new Map),r=e.planHash,i=(0,O.useCallback)((e,t)=>`${r}\0${t}\0${e}`,[r]);return{lookup:(0,O.useCallback)((e,r)=>{let a=i(e,r),o=n.current.get(a);if(o!==void 0)return o;let s=qd.definition(e,r).then(e=>e.candidates).catch(()=>[]).then(e=>(t.current.set(a,e),e));return n.current.set(a,s),s},[i]),cached:(0,O.useCallback)((e,n)=>t.current.get(i(e,n)),[i])}}var ay=(0,O.createContext)(null),oy=ay.Provider;function sy(){let e=(0,O.useContext)(ay);if(e===null)throw Error(`useGoTo outside GoToProvider`);return e}function cy(){return sy().goTo}function ly(){return sy().goToPlaces}function uy(){let{state:e}=X(),{units:t}=wp(),{reveal:n}=K_(),{lookup:r,cached:i}=iy(),[a,o]=(0,O.useState)([]),[s,c]=(0,O.useState)(null),l=(0,O.useRef)(null),u=(0,O.useCallback)((e,r)=>{let{unit:i,commit:a}=e;if(i===null||a===null)return;let s=Y_();o(e=>Av(e,{spot:s,from:r})),(0,qt.flushSync)(()=>n(a,t.get(i)?.path??e.path));let c=document.getElementById(`commit-${a+1}`),l=c?.querySelector(`[data-unit="${CSS.escape(i)}"]`),u=e.row===null?null:l?.querySelector(`[data-row="${e.row}"]`);(u??l??c)?.scrollIntoView({block:`center`}),u==null?l!=null&&Pv(l):Pv(u,`row-flash`)},[n,t]),d=(0,O.useCallback)(()=>{c(null),o(e=>{let t=jv(e);return t===null?e:(requestAnimationFrame(()=>X_(t.spot)),t.rest)})},[]),f=(0,O.useCallback)((e,t,n,r)=>{c(null),Dv(e)?u(e,n):c({kind:`peek`,name:t,from:n,candidate:e,...r?{subject:r}:{}})},[u]),p=(0,O.useCallback)((e,t,n,r,i)=>{l.current=r,c(null),Dv(e)?u(e,n):c({kind:`peek`,name:t,from:n,candidate:e,...i?{subject:i}:{}})},[u]),m=(0,O.useCallback)((e,t,n,r,i)=>{l.current=r;let a=kv(e);a.kind===`choose`?c({kind:`choose`,name:t,from:n,candidates:e,...i?{subject:i}:{}}):a.kind!==`none`&&p(a.candidate,t,n,r,i)},[p]);(0,O.useEffect)(()=>{let e=!1,t=null,n=null,a,o=()=>{clearTimeout(a),CSS.highlights.delete(Qv),n?.code.style.removeProperty(`cursor`),n=null},s=e=>{CSS.highlights.set(Qv,new Highlight(e.range)),e.code.style.cursor=`pointer`},f=()=>{if(!e||t===null)return o();let c=ry(t.x,t.y);if(c===null)return o();if(n?.code===c.code&&n.start===c.token.start)return;o();let l={code:c.code,start:c.token.start};n=l;let{name:u}=c.token,d=i(u,c.path);d===void 0?a=setTimeout(()=>{r(u,c.path).then(t=>{n===l&&e&&t.length>0&&s(c)})},$v):d.length>0&&s(c)},p=t=>{if(e=Ev(t,Zv),f(),t.type!==`keydown`||!t.altKey||t.key!==`ArrowLeft`)return;let n=t.target;n instanceof HTMLElement&&n.closest(`input, textarea, [contenteditable]`)||(t.preventDefault(),d())},m=n=>{t={x:n.clientX,y:n.clientY},e=Ev(n,Zv),f()},h=()=>{e=!1,o()},g=e=>{Ev(e,Zv)&&ry(e.clientX,e.clientY)!==null&&e.preventDefault()},_=e=>{if(e.button!==0||!Ev(e,Zv))return;let t=ry(e.clientX,e.clientY);if(t===null)return;e.preventDefault(),e.stopPropagation();let{range:n}=t,{name:i}=t.token,a=Number(t.code.closest(`section[data-commit]`)?.dataset.commit);r(i,t.path).then(e=>{let t=kv(e);l.current={getBoundingClientRect:()=>n.getBoundingClientRect()},t.kind===`jump`?u(t.candidate,a):t.kind===`peek`?c({kind:`peek`,name:i,from:a,candidate:t.candidate}):t.kind===`choose`&&c({kind:`choose`,name:i,from:a,candidates:t.candidates})})};return window.addEventListener(`keydown`,p),window.addEventListener(`keyup`,p),window.addEventListener(`blur`,h),document.addEventListener(`pointermove`,m,{passive:!0}),window.addEventListener(`scroll`,f,{passive:!0}),document.addEventListener(`mousedown`,g,!0),document.addEventListener(`click`,_,!0),()=>{o(),window.removeEventListener(`keydown`,p),window.removeEventListener(`keyup`,p),window.removeEventListener(`blur`,h),document.removeEventListener(`pointermove`,m),window.removeEventListener(`scroll`,f),document.removeEventListener(`mousedown`,g,!0),document.removeEventListener(`click`,_,!0)}},[i,r,u,d]);let h=Mv(a);return{back:h===null?null:(0,z.jsxs)(J,{variant:`secondary`,size:`sm`,onClick:d,title:`${h} (${Zv?`⌥←`:`Alt+←`})`,children:[(0,z.jsx)(j,{}),h]}),layer:(0,z.jsxs)($_,{open:s!==null,onOpenChange:e=>e?void 0:c(null),children:[(0,z.jsx)(nv,{virtualRef:l}),s===null?null:(0,z.jsx)(tv,{align:`start`,className:`w-[min(600px,90vw)] gap-0 p-0`,"aria-label":s.kind===`choose`?`${s.subject===void 0?`Definitions`:`Places`} of ${s.name}`:`${s.subject?.title??`Definition`} of ${s.name} at ${Ov(s.candidate,e.commits).place}`,children:s.kind===`choose`?(0,z.jsx)(fy,{name:s.name,what:s.subject===void 0?`definitions`:`places`,candidates:s.candidates,onPick:e=>f(e,s.name,s.from,s.subject)}):(0,z.jsx)(py,{candidate:s.candidate,kind:s.subject?.kind??s.candidate.kind,empty:s.subject?.empty??`The server sent no lines for this place.`})})]}),goTo:p,goToPlaces:m}}function dy(e){let t=e.key===`ArrowDown`?1:e.key===`ArrowUp`?-1:0;if(t===0)return;let n=[...e.currentTarget.querySelectorAll(`button`)],r=n.findIndex(e=>e.matches(`:focus`));e.preventDefault(),n[Math.max(0,Math.min(n.length-1,r+t))]?.focus()}function fy({name:e,what:t,candidates:n,onPick:r}){let{state:i}=X();return(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(`div`,{className:`border-b px-3 py-1.5 text-muted-foreground text-xs`,children:[n.length,` `,t,` of `,(0,z.jsx)(`code`,{className:`font-mono`,children:e})]}),(0,z.jsx)(`ul`,{className:`max-h-72 overflow-y-auto py-1`,onKeyDown:dy,children:n.map(e=>{let t=Ov(e,i.commits);return(0,z.jsx)(`li`,{children:(0,z.jsxs)(`button`,{type:`button`,className:`flex w-full items-baseline gap-3 px-3 py-1 text-left text-sm outline-none hover:bg-muted focus-visible:bg-muted`,onClick:()=>r(e),children:[(0,z.jsx)(`span`,{className:`font-mono text-xs`,children:t.place}),(0,z.jsx)(`span`,{className:`ml-auto shrink-0 text-muted-foreground text-xs`,children:t.where})]})},`${t.place}-${e.kind}`)})})]})}function py({candidate:e,kind:t,empty:n}){let{state:r}=X(),i=Ov(e,r.commits),a=(0,O.useMemo)(()=>e.preview.map(e=>({op:` `,text:e})),[e]),o=Yv(e.path,a);return(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(`div`,{className:`flex items-baseline gap-2 border-b px-3 py-1.5 text-xs`,children:[(0,z.jsx)(`span`,{className:`font-medium font-mono`,children:i.place}),(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:t}),(0,z.jsx)(`span`,{className:`ml-auto text-muted-foreground`,children:i.where})]}),e.preview.length===0?(0,z.jsx)(`p`,{className:`px-3 py-2 text-muted-foreground text-xs`,children:n}):null,(0,z.jsx)(`pre`,{className:`max-h-72 overflow-auto py-1.5 font-mono text-[12.5px] leading-5 empty:hidden`,children:e.preview.map((t,n)=>(0,z.jsxs)(`div`,{className:`flex`,children:[(0,z.jsx)(`span`,{className:`w-12 shrink-0 select-none pr-3 text-right text-muted-foreground/70`,children:e.newLine+n}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 whitespace-pre-wrap pr-3 [overflow-wrap:anywhere]`,children:o?.[n]?.map((e,t)=>(0,z.jsx)(`span`,{className:e.tone===null?void 0:`tok-${e.tone}`,children:e.text},t))??(t||` `)})]},n))})]})}var my=`http://www.w3.org/2000/svg`,hy={title:`State`,kind:`state`,empty:`This branch does not change these lines, so the page has none to show.`},gy=4,_y=7;function vy(e,t){let n=document.createElementNS(my,e);for(let[e,r]of Object.entries(t))n.setAttribute(e,String(r));return n.classList.add(`sm-added`),n}var yy={covered:`var(--cov-covered)`,partly:`var(--cov-partly)`,uncovered:`var(--cov-uncovered)`};function by(e,t){let n=(t,n,r)=>vy(`rect`,{class:n,x:e.x-t,y:e.y-t,width:e.width+2*t,height:e.height+2*t,rx:6+t,style:`fill: none; pointer-events: none; ${r}`}),r=n(8,`sm-ring`,`stroke: var(--ring); stroke-width: 2px`);if(t===`unknown`)return[r];let i=(e,n=`none`)=>`stroke: ${yy[t]}; stroke-width: ${e}px; stroke-dasharray: ${n}`;return t===`uncovered`?[r,n(3,`sm-outline`,i(1.5)),n(6,`sm-outline`,i(1.5))]:[r,n(gy,`sm-outline`,t===`partly`?i(2,`5 3`):i(2))]}function xy(e,t){if(t===`unknown`)return null;let n=yy[t],r=e.x+e.width+gy,i=e.y-gy,a=vy(`g`,{"aria-hidden":`true`,style:`pointer-events: none`}),o=t===`partly`?`var(--background)`:n;if(a.append(vy(`circle`,{cx:r,cy:i,r:_y,style:`fill: ${o}; stroke: ${n}; stroke-width: 1.5px`})),t===`partly`){let e=`M ${r} ${i-_y} A ${_y} ${_y} 0 0 0 ${r} ${i+_y} Z`;return a.append(vy(`path`,{d:e,style:`fill: ${n}; stroke: none`})),a}let s=vy(`text`,{x:r,y:i,"text-anchor":`middle`,"dominant-baseline":`central`,style:`fill: #fff; font-size: 9px; font-weight: 700; stroke: none`});return s.textContent=mv[t],a.append(s),a}function Sy(e,t){let n=t.tests.length===0?``:`\nReached by: ${t.tests.join(`, `)}`;return`${e}: ${gv(t)}${n}`}function Cy(e,t){let n=e.querySelector(`svg`);if(n===null)return;for(let e of n.querySelectorAll(`.sm-added`))e.remove();let r=[...n.querySelectorAll(`g.node[id]`)].map(e=>({id:e.id,text:e.textContent??``})),i=new Set;for(let[e,a]of xv(n.id,r,[...t.keys()])){let r=n.querySelector(`#${CSS.escape(a)}`),o=t.get(e);if(!(r instanceof SVGGElement)||o===void 0||i.has(a))continue;i.add(a),r.setAttribute(`data-pick`,e),r.setAttribute(`data-mark`,o.kind),r.setAttribute(`role`,`button`),r.setAttribute(`tabindex`,`0`),r.setAttribute(`aria-label`,`${e}, ${gv(o)}`);let s=r.getBBox(),c=vy(`title`,{});c.textContent=Sy(e,o),r.prepend(c),r.append(...by(s,o.kind));let l=xy(s,o.kind);l!==null&&r.append(l)}}function wy({kind:e}){return e===`unknown`?null:(0,z.jsx)(`span`,{"aria-hidden":!0,"data-mark":e,className:`sm-chip`,children:e===`partly`?null:mv[e]})}var Ty={covered:`covered`,partly:`partly`,uncovered:`not covered`,unknown:`unknown`};function Ey({source:e,map:t,from:n,title:r}){let{state:i,coverage:a}=X(),{coverageOn:o}=K_(),{units:s,owners:c,numbers:l}=wp(),u=ly(),d=o?a:null,f=(0,O.useMemo)(()=>_v(t),[t]),p=(0,O.useMemo)(()=>new Map(f.map(e=>[e.key,pv(d,e.at)])),[f,d]),m=(0,O.useMemo)(()=>new Map(Object.keys(t.states).map(e=>[e,p.get(`s:${e}`)])),[t,p]),h=(0,O.useCallback)((e,t,r)=>u(yv(t,i.commits,s,c,l),e,n,r,hy),[u,i.commits,s,c,l,n]),g=(0,O.useCallback)(e=>{let t=new Map;for(let[e,n]of m)n!==void 0&&t.set(e,n);Cy(e,t)},[m]),_=(0,O.useMemo)(()=>({decorate:g,onPick:(e,n)=>h(e,t.states[e]??[],n)}),[g,h,t]),v=e=>{let[t]=yv([e],i.commits,s,c,l);return t?.commit===null||t===void 0?`outside this branch`:`in commit ${t.commit+1}`},y=e=>e.at.length===0?(0,z.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:`not mapped`}):(0,z.jsx)(`span`,{className:`flex flex-col items-start`,children:e.at.map(t=>(0,z.jsxs)(`button`,{type:`button`,className:`rounded text-left font-mono text-xs underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ring`,onClick:n=>h(e.name,[t],n.currentTarget),children:[vv(t),` `,(0,z.jsx)(`span`,{className:`font-sans text-muted-foreground`,children:v(t)})]},vv(t)))}),b=d!==null&&f.some(e=>e.at.some(e=>d.stale.includes(e.path)));return(0,z.jsxs)(`div`,{children:[(0,z.jsx)(T_,{source:e,title:r,picks:_}),(0,z.jsxs)(`p`,{className:`mt-2 flex flex-wrap items-center gap-x-1.5 text-muted-foreground text-xs`,children:[(0,z.jsx)(wy,{kind:`covered`}),` covered · `,(0,z.jsx)(wy,{kind:`partly`}),` partly ·`,` `,(0,z.jsx)(wy,{kind:`uncovered`}),` not covered · plain unknown ·`,` `,d===null?`no test run yet`:(0,z.jsxs)(`span`,{children:[`from tests at `,(0,z.jsx)(`code`,{className:`font-mono`,children:d.tip.slice(0,7)}),b?`; files changed since read unknown`:``]})]}),(0,z.jsxs)(`table`,{className:`mt-3 w-full border-collapse text-sm`,children:[(0,z.jsxs)(`caption`,{className:`sr-only`,children:[`States and moves of `,r]}),(0,z.jsx)(`thead`,{className:`text-left text-muted-foreground text-xs`,children:(0,z.jsxs)(`tr`,{children:[(0,z.jsx)(`th`,{className:`py-1 pr-3 font-medium`,children:`State or move`}),(0,z.jsx)(`th`,{className:`hidden py-1 pr-3 font-medium xl:table-cell`,children:`Code`}),(0,z.jsx)(`th`,{className:`py-1 font-medium`,children:`Coverage`})]})}),(0,z.jsx)(`tbody`,{children:f.map(e=>{let t=p.get(e.key)??pv(null,[]);return(0,z.jsxs)(`tr`,{className:`border-t align-top`,children:[(0,z.jsxs)(`td`,{className:`py-1.5 pr-3`,children:[e.at.length===0?(0,z.jsx)(`span`,{children:e.name}):(0,z.jsx)(`button`,{type:`button`,className:I(`rounded text-left outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ring`,e.kind===`state`&&`font-medium`),onClick:t=>h(e.name,e.at,t.currentTarget),children:e.name}),e.event===null?null:(0,z.jsxs)(`span`,{className:`ml-1.5 text-muted-foreground text-xs`,children:[`on `,e.event]}),(0,z.jsx)(`div`,{className:`mt-0.5 xl:hidden`,children:y(e)})]}),(0,z.jsx)(`td`,{className:`hidden py-1.5 pr-3 xl:table-cell`,children:y(e)}),(0,z.jsxs)(`td`,{className:`whitespace-nowrap py-1.5 text-xs`,title:t.tests.length===0?void 0:`Reached by: ${t.tests.join(`, `)}`,children:[(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,z.jsx)(wy,{kind:t.kind}),Ty[t.kind],t.kind===`unknown`?null:(0,z.jsxs)(`span`,{className:`text-muted-foreground tabular-nums`,children:[t.run,`/`,t.total]})]}),t.tests.length===0?null:(0,z.jsx)(`span`,{className:`block text-muted-foreground`,children:t.tests.length===1?`1 test`:`${t.tests.length} tests`})]})]},e.key)})})]})]})}function Dy(e){return e.split(`
131
- `)[0]??``}function Oy({children:e,className:t,label:n,open:r=!1,threadId:i}){return(0,z.jsx)(`article`,{"aria-label":n,"data-open-thread":r?``:void 0,"data-thread-id":i,className:I(`my-2 ml-24 max-w-[760px] rounded-lg border bg-card p-3 font-sans text-sm shadow-xs`,t),children:e})}function ky({children:e}){return(0,z.jsx)(`p`,{className:`max-w-[72ch] whitespace-pre-wrap leading-6`,children:e})}function Ay({author:e,text:t}){return t.trim()===``?null:e===`agent`?(0,z.jsx)(E_,{text:t}):(0,z.jsx)(ky,{children:t})}function jy(e){return e.author===`agent`?`Agent`:e.kind===`question`?`You asked`:`You flagged`}function My({comment:e,className:t,chip:n,extra:r,label:i}){let{run:a}=X(),{resolved:o,setLocallyResolved:s}=K_(),[c,l]=(0,O.useState)(!1),{unread:u,markSeen:d}=X(),f=u.filter(t=>t.thread===e.id).map(e=>e.key),p=f.join();return(0,O.useEffect)(()=>{if(f.length===0)return;let t=document.querySelector(`[data-thread-id="${CSS.escape(e.id)}"]`);if(t===null)return;let n=new IntersectionObserver(e=>{!document.hidden&&e.some(e=>e.isIntersecting)&&d(f)},{threshold:.6});return n.observe(t),()=>n.disconnect()},[p,e.id,d]),o.has(e.id)?(0,z.jsxs)(Oy,{label:`Resolved thread`,threadId:e.id,className:`flex items-center gap-2 py-1.5 text-muted-foreground`,children:[(0,z.jsxs)(`span`,{className:`min-w-0 truncate`,children:[`✓ Resolved · `,Dy(e.body)]}),(0,z.jsx)(J,{variant:`link`,size:`xs`,className:`ml-auto`,onClick:()=>s(e.id,!1),children:`Reopen`})]}):(0,z.jsxs)(Oy,{label:i??(e.kind===`question`?`Question thread`:`Thread`),className:t,threadId:e.id,open:!0,children:[(0,z.jsxs)(`div`,{className:`mb-1 flex items-center gap-2 text-muted-foreground text-xs`,children:[(0,z.jsx)(`span`,{className:`font-medium text-foreground`,children:jy(e)}),e.severity===void 0?null:(0,z.jsx)(k_,{severity:e.severity}),n]}),(0,z.jsx)(Ay,{author:e.author??`reviewer`,text:e.body}),e.diagram===void 0?null:(0,z.jsx)(`div`,{className:I(e.body.trim()!==``&&`mt-2`),children:(0,z.jsx)(T_,{source:e.diagram,title:`The agent's diagram`})}),r,(e.replies??[]).map(t=>(0,z.jsxs)(`div`,{className:I(`mt-3 border-l-2 pl-3`,t.author===`agent`&&`border-sky-500/60`),children:[(0,z.jsx)(`div`,{className:`mb-1 font-medium text-xs`,children:t.author===`agent`?`Agent`:`You`}),(0,z.jsx)(Ay,{author:t.author,text:t.body}),t.diagram===void 0?null:(0,z.jsx)(`div`,{className:I(t.body.trim()!==``&&`mt-2`),children:t.map===void 0?(0,z.jsx)(T_,{source:t.diagram,title:`The agent's diagram`}):(0,z.jsx)(Ey,{source:t.diagram,map:t.map,from:e.anchor.kind===`plan`?0:e.anchor.commit,title:`The agent's state machine`})})]},t.id)),c?(0,z.jsx)(dv,{className:`mt-3 shadow-none`,kind:`ask`,kinds:!1,label:`Reply`,placeholder:`Reply to the agent`,onCancel:()=>l(!1),actions:()=>[{label:`Reply`,primary:!0,run:t=>a(()=>qd.reply(e.id,t.body))}]}):(0,z.jsxs)(`div`,{className:`mt-2 flex gap-1`,children:[(0,z.jsx)(J,{variant:`ghost`,size:`xs`,onClick:()=>l(!0),children:`Reply`}),(0,z.jsx)(J,{variant:`ghost`,size:`xs`,onClick:()=>s(e.id,!0),children:`Resolve`})]})]})}function Ny(e){return e.split(`
132
- `)[0]??``}function Py({concern:e,className:t}){let{state:n,run:r}=X(),i=n.concerns.find(t=>t.concern===e.id),[a,o]=(0,O.useState)(null),s=i?.severity??a??e.severity,c=(t,n=s)=>r(()=>qd.decide(e.id,t,n===e.severity?void 0:n));if(i?.decision===`dismissed`)return(0,z.jsxs)(Oy,{label:`Dismissed concern`,className:I(`flex items-center gap-2 py-1.5 text-muted-foreground`,t),children:[(0,z.jsxs)(`span`,{className:`min-w-0 truncate`,children:[`Dismissed · `,Ny(e.text)]}),(0,z.jsx)(J,{variant:`link`,size:`xs`,className:`ml-auto`,onClick:()=>void c(`kept`),children:`Keep instead`})]});let l=i?.decision===`kept`;return(0,z.jsxs)(Oy,{label:`Agent concern`,open:!l,className:I(l?`border-amber-500/40`:`border-dashed border-amber-500/60`,t),children:[(0,z.jsxs)(`div`,{className:`mb-1 flex items-center gap-2 text-muted-foreground text-xs`,children:[(0,z.jsx)(`span`,{className:`font-medium text-foreground`,children:`Agent flagged`}),(0,z.jsxs)(iv,{children:[(0,z.jsx)(av,{"aria-label":`Severity ${s}`,className:`rounded-full`,children:(0,z.jsx)(k_,{severity:s})}),(0,z.jsx)(ov,{className:`w-32`,children:D_.map(e=>(0,z.jsx)(sv,{onSelect:()=>l?void c(`kept`,e):o(e),children:e},e))})]}),(0,z.jsx)(`span`,{children:e.kind}),l?(0,z.jsx)(`span`,{className:`ml-auto text-amber-700 dark:text-amber-300`,children:`Kept · in your review`}):null]}),(0,z.jsx)(ky,{children:e.text}),(0,z.jsxs)(`div`,{className:`mt-2 flex gap-1`,children:[l?null:(0,z.jsx)(J,{size:`xs`,onClick:()=>void c(`kept`),children:`Keep`}),(0,z.jsx)(J,{variant:`ghost`,size:`xs`,onClick:()=>void c(`dismissed`),children:`Dismiss`})]})]})}function Fy(e){let t=e.response?.status;return t===`answered`?`Answered`:t===`deferred`?`Deferred`:t===void 0?`Not answered`:`Answered by changing the plan`}function Iy({card:e,className:t}){let{state:n,run:r}=X(),[i,a]=(0,O.useState)(!1),{comment:o,response:s,place:c}=e,l=t=>r(()=>qd.resolve(e.id,t));if(e.resolved)return(0,z.jsxs)(Oy,{label:`Resolved answer`,className:I(`flex items-center gap-2 py-1.5 text-muted-foreground`,t),children:[(0,z.jsxs)(`span`,{className:`min-w-0 truncate`,children:[`✓ Resolved · `,Ny(o.body)]}),(0,z.jsx)(J,{variant:`link`,size:`xs`,className:`ml-auto`,onClick:()=>void l(!1),children:`Reopen`})]});let u=o.context.lines??[];return(0,z.jsxs)(Oy,{label:`Answer to your question`,open:!0,className:t,children:[(0,z.jsxs)(`div`,{className:`mb-1 text-muted-foreground text-xs`,children:[(0,z.jsx)(`span`,{className:`font-medium text-foreground`,children:`You asked`}),` in v`,n.previous?.version,` `,`· `,Fy(e)]}),(0,z.jsx)(ky,{children:o.body}),u.length>0?(0,z.jsx)(`pre`,{className:`mt-2 overflow-x-auto rounded bg-muted px-2 py-1 font-mono text-xs`,children:u.join(`
133
- `)}):null,s===null?null:(0,z.jsxs)(`div`,{className:`mt-3 border-l-2 border-sky-500/60 pl-3`,children:[(0,z.jsx)(`div`,{className:`mb-1 font-medium text-xs`,children:`Agent`}),(0,z.jsx)(E_,{text:s.note})]}),c===null&&o.anchor.kind===`hunk`?(0,z.jsx)(`p`,{className:`mt-2 text-muted-foreground text-xs`,children:`The code you asked about has changed since.`}):null,(c?.continues??[]).map(e=>(0,z.jsxs)(J,{variant:`link`,size:`xs`,onClick:()=>J_(e),children:[`continues in commit `,e+1]},e)),i?(0,z.jsx)(dv,{className:`mt-3 shadow-none`,kind:`ask`,kinds:!1,label:`Ask again`,placeholder:`What is still unclear?`,onCancel:()=>a(!1),actions:()=>[{label:`Ask again`,primary:!0,run:t=>r(()=>qd.comment(lf(e,t.body)))}]}):(0,z.jsxs)(`div`,{className:`mt-2 flex gap-1`,children:[(0,z.jsx)(J,{size:`xs`,onClick:()=>void l(!0),children:`Resolve`}),(0,z.jsx)(J,{variant:`ghost`,size:`xs`,onClick:()=>a(!0),children:`Ask again`})]})]})}function Ly(e,t){return t.flatMap(t=>{let n=e[t];return n===void 0||n.op===`-`?[]:[n.text.replace(/\n$/,``)]})}function Ry(e,t){if(e[t]?.op!==`+`)return e[t]?.op===void 0?[]:[t];let n=t,r=t;for(;e[n-1]?.op===`+`;)--n;for(;e[r+1]?.op===`+`;)r+=1;return Array.from({length:Math.min(r-n+1,6)},(e,t)=>n+t)}function zy(e,t){let n=(e,t)=>e?.trimEnd()===t?.trimEnd(),r=Array.from({length:e.length+1},()=>Array(t.length+1).fill(0));for(let i=e.length-1;i>=0;--i)for(let a=t.length-1;a>=0;--a){let o=r[i]??[];o[a]=n(e[i],t[a])?(r[i+1]?.[a+1]??0)+1:Math.max(r[i+1]?.[a]??0,o[a+1]??0)}let i=[],a=0,o=0;for(;a<e.length||o<t.length;){let s=e[a],c=t[o];s!==void 0&&c!==void 0&&n(s,c)?(i.push({op:` `,text:c}),a+=1,o+=1):s!==void 0&&(c===void 0||(r[a+1]?.[o]??0)>=(r[a]?.[o+1]??0))?(i.push({op:`-`,text:s}),a+=1):c!==void 0&&(i.push({op:`+`,text:c}),o+=1)}return i}function By(e,t){if(e.length===0)return null;let n=zy(e,t),r=n.findIndex(e=>e.op!==` `);if(r===-1)return null;let i=n.slice(Math.max(0,r-1)),a=i.slice(0,6);return{lines:a,more:i.length-a.length}}var Vy=`rounded-full bg-amber-500/15 px-2 py-px text-amber-800 dark:text-amber-300`;function Hy({placement:e,className:t}){let{state:n}=X(),{comment:r,kind:i}=e,a=n.previous?.version,o=r.context.lines??[],s=n.units.find(t=>t.id===e.carried.unit),{row:c}=e,l=e.carried.offsets??(s?.kind===`hunk`&&c!==null?Ry(s.body,c):[]),u=s?.kind===`hunk`?Ly(s.body,l):[],d=i===`changed`?By(o,u):null,f=n.previous?.responses.find(e=>e.comment===r.id);return(0,z.jsx)(My,{comment:r,className:t,chip:i===`changed`?(0,z.jsx)(`span`,{className:Vy,children:`Code changed since you asked`}):i===`gone`?(0,z.jsxs)(`span`,{className:Vy,children:[`This code is gone in v`,n.version]}):void 0,extra:(0,z.jsxs)(z.Fragment,{children:[i!==`same`&&o.length>0?(0,z.jsxs)(`details`,{className:`mt-2 text-xs`,children:[(0,z.jsxs)(`summary`,{className:`cursor-pointer text-muted-foreground`,children:[`What you commented on, in v`,a]}),(0,z.jsx)(`pre`,{className:`mt-1 overflow-x-auto rounded bg-muted px-2 py-1 font-mono`,children:o.join(`
134
- `)})]}):null,d===null?null:(0,z.jsxs)(`details`,{open:!0,className:`mt-2 text-xs`,children:[(0,z.jsx)(`summary`,{className:`cursor-pointer text-muted-foreground`,children:`What changed`}),(0,z.jsxs)(`section`,{"aria-label":`What changed`,className:`mt-1 overflow-x-auto whitespace-pre rounded bg-muted py-1 font-mono`,children:[d.lines.map((e,t)=>(0,z.jsxs)(`div`,{className:I(`px-2`,e.op===`+`&&`bg-emerald-500/10 text-emerald-800 dark:text-emerald-300`,e.op===`-`&&`bg-rose-500/10 text-rose-800 dark:text-rose-300`),children:[e.op,` `,e.text]},t)),d.more>0?(0,z.jsxs)(`div`,{className:`px-2 text-muted-foreground`,children:[`… `,d.more,` more`]}):null]})]}),f===void 0?null:(0,z.jsxs)(`div`,{className:`mt-3 border-l-2 border-sky-500/60 pl-3`,children:[(0,z.jsx)(`div`,{className:`mb-1 font-medium text-xs`,children:`Agent`}),(0,z.jsx)(E_,{text:f.note})]})]})})}function Uy(e){return`Agent can draw: ${e.trim().replace(/^draw\s+/i,``)}`}function Wy(e,t,n,r){let i=new Set([...n.dismissedOffers??[],...r]);for(let e of n.carried??[]){let t=e.comment.offer;t!==void 0&&i.add(t)}return(e.offers??[]).flatMap(e=>{if((e.unit??null)!==t)return[];let r=n.comments.find(t=>t.offer===e.id);return r===void 0?i.has(e.id)?[]:[{offer:e,kind:`chip`}]:[{offer:e,kind:`accepted`,comment:r}]})}function Gy(e,t){return t.offer!==void 0&&(e.offers??[]).some(e=>e.id===t.offer)}function Ky(e,t,n){let r=e.unit===void 0?void 0:n.get(e.unit);return{kind:`question`,offer:e.id,body:e.label,anchor:e.unit===void 0?{kind:`message`,commit:t.index}:{kind:`hunk`,unit:e.unit,commit:t.index,changes:null},context:{commitMessage:t.message,path:r?.path??null}}}function qy(e){return!(e.replies??[]).some(e=>e.author===`agent`)}var Jy={covered:`bg-emerald-500/10 text-emerald-800 dark:text-emerald-300`,partly:`bg-amber-500/15 text-amber-900 dark:text-amber-200`,uncovered:`bg-rose-500/10 text-rose-800 dark:text-rose-300`},Yy={covered:`bg-[var(--cov-covered)]`,partly:`bg-[var(--cov-partly)]`,uncovered:`bg-[var(--cov-uncovered)]`};function Xy({commit:e}){let t=q_()?.commits[e];if(t===void 0||t.total===0)return null;let n=$f(t);return(0,z.jsxs)(`span`,{className:I(`flex shrink-0 items-center gap-2 rounded-full px-2 py-0.5 text-xs tabular-nums`,Jy[n]),children:[t.run,` of `,t.total,` new lines covered`,(0,z.jsx)(`span`,{"aria-hidden":!0,className:`h-1 w-10 overflow-hidden rounded-full bg-foreground/10`,children:(0,z.jsx)(`span`,{className:I(`block h-full`,Yy[n]),style:{width:`${Qf(t)}%`}})})]})}function Zy({tally:e}){return e===void 0||e.total===0?null:(0,z.jsxs)(`span`,{className:I(`rounded px-1.5 font-sans text-xs tabular-nums`,Jy[$f(e)]),children:[e.run,`/`,e.total,` covered`]})}function Qy(){let e=q_();return e===null||e.branch.total===0?null:(0,z.jsxs)(`span`,{className:I(`hidden shrink-0 rounded-full px-2 py-0.5 text-xs tabular-nums lg:inline`,Jy[$f(e.branch)]),title:`${e.branch.run} of ${e.branch.total} added lines the tests can run`,children:[(0,z.jsxs)(`span`,{className:`xl:hidden`,children:[`Covered `,Qf(e.branch),`%`]}),(0,z.jsxs)(`span`,{className:`hidden xl:inline`,children:[`Changed lines covered `,Qf(e.branch),`%`]})]})}function $y({path:e}){let t=q_();return t===null||!t.stale.has(e)?null:(0,z.jsxs)(`span`,{className:`text-amber-800 text-xs dark:text-amber-200`,children:[`coverage from `,(0,z.jsx)(`code`,{className:`font-mono`,children:t.tip.slice(0,7)}),`; this file changed since`]})}function eb(){let e=q_(),t=e?.stale.size??0;return t===0?null:(0,z.jsxs)(`span`,{className:I(`shrink-0 rounded-full px-2 py-0.5 text-xs tabular-nums`,Jy.partly),title:`The branch moved after the run at ${e?.tip.slice(0,7)}`,children:[`Coverage is `,t===1?`1 file`:`${t} files`,` stale`]})}function tb(){let e=Tp(),{coverageOn:t,setCoverageOn:n}=K_();return e===null?null:(0,z.jsx)(J,{variant:t?`secondary`:`ghost`,size:`sm`,"aria-pressed":t,title:`Show or hide coverage (g)`,onClick:()=>n(!t),children:`Coverage`})}var nb=.3;function rb(e){return document.querySelector(`#commit-${e.commit+1} [data-unit="${CSS.escape(e.unit)}"] [data-row="${e.row}"]`)}function ib(e,t,n){let r=rb(e),i=(r??document.getElementById(`commit-${e.commit+1}`))?.getBoundingClientRect().top;return i===void 0?`below`:r!==null&&(Math.abs(i-t)<2||r===n&&i>=0&&i<window.innerHeight)?`at`:i<t?`above`:`below`}function ab(){let e=q_(),{reveal:t}=K_(),n=(0,O.useRef)(null);return(0,O.useCallback)(r=>{let i=e?.uncovered??[],a=window.innerHeight*nb,o=i[np(i.map(e=>ib(e,a,n.current)),r)??-1];if(o===void 0)return;(0,qt.flushSync)(()=>t(o.commit,o.path));let s=rb(o);s!==null&&(window.scrollBy(0,s.getBoundingClientRect().top-a),s.focus({preventScroll:!0}),Pv(s,`row-flash`),n.current=s)},[e,t])}var ob={title:`Test`,kind:`test`},sb=e=>e===1?`Hit once`:`Hit ${e} times`;function cb({mark:e,path:t,line:n,commit:r,near:i,onFlag:a,onClose:o}){let s=q_(),{state:c}=X(),{units:l,owners:u,numbers:d}=wp(),f=cy();if(s===null)return null;let p=e.stale?(0,z.jsxs)(`p`,{className:`text-amber-800 text-xs dark:text-amber-200`,children:[`This file changed since `,s.tip.slice(0,7),`, so the line may have moved.`]}):null;if(e.kind===`uncovered`)return(0,z.jsxs)(`div`,{className:`space-y-2`,children:[p,(0,z.jsxs)(`p`,{children:[`Not run by the suite at `,(0,z.jsx)(`code`,{className:`font-mono`,children:s.tip.slice(0,7)}),` (`,op(s.takenAt),`)`]}),(0,z.jsx)(J,{size:`sm`,variant:`outline`,onClick:a,children:`Flag as missing test`})]});let m=rp(s.tests,t,n),h=e=>e===null?null:ip(e,c.commits,l,u,d),g=async(e,t,n)=>{o();let a=h(t);if(t!==null&&a!==null)return f(ap(t,a),e,r,i,ob);if(t!==null&&n!==null)return f(ap(t,null,n),e,r,i,ob);let s=lp(e),c=t?.path??s.path;if(s.name!==null&&c!==null){let e=(await qd.definition(s.name,c).catch(()=>({candidates:[]}))).candidates.find(e=>e.path===c);if(e!==void 0)return f(e,s.name,r,i,ob)}t!==null&&f(ap(t,null),e,r,i,ob)};return(0,z.jsxs)(`div`,{className:`space-y-2`,children:[p,(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{children:sb(e.hits)}),e.branches===null?null:(0,z.jsxs)(`p`,{className:`text-muted-foreground`,children:[e.branches[0],` of `,e.branches[1],` branches taken`]})]}),m===null?(0,z.jsx)(`p`,{className:`text-muted-foreground text-xs`,children:`No per-test detail in this run`}):m.length===0?(0,z.jsx)(`p`,{className:`text-muted-foreground text-xs`,children:`No test in this run's detail ran this line`}):(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(`p`,{className:`mb-1 font-medium text-xs`,children:[`Run by `,m.length===1?`1 test`:`${m.length} tests`]}),(0,z.jsx)(`ul`,{className:`-mx-1 max-h-56 overflow-y-auto`,children:m.map(e=>{let t=h(e.at),n=e.at!==null||lp(e.id).name!==null,r=e.at===null?null:`${e.at.path}:${e.at.start} · ${t===null?`outside this branch`:`in commit ${t.commit+1}`}`;return(0,z.jsx)(`li`,{children:n?(0,z.jsxs)(`button`,{type:`button`,className:`w-full rounded px-1 py-0.5 text-left outline-none hover:bg-muted focus-visible:bg-muted`,onClick:()=>void g(e.id,e.at,e.preview),children:[(0,z.jsx)(`span`,{className:`block font-mono text-xs [overflow-wrap:anywhere]`,children:e.id}),r===null?null:(0,z.jsx)(`span`,{className:`block text-muted-foreground text-xs`,children:r})]}):(0,z.jsx)(`span`,{className:`block px-1 py-0.5 font-mono text-xs [overflow-wrap:anywhere]`,children:e.id})},e.id)})})]})]})}function lb({line:e,spans:t}){let n=e.text.replace(/\n$/,``);return t===void 0?(0,z.jsx)(z.Fragment,{children:n||` `}):(0,z.jsx)(z.Fragment,{children:t.map((e,t)=>(0,z.jsx)(`span`,{className:e.tone===null?void 0:`tok-${e.tone}`,children:e.text},t))})}function ub(e,t){return`${e} line${e===1?``:`s`} arrive${e===1?`s`:``} in commit ${t+1}`}function db(e,t){let n=(e instanceof Element?e:e?.parentElement)?.closest(`[data-row]`);return n&&t.contains(n)?Number(n.dataset.row):null}function fb(e){return t=>[{label:t===`ask`?`Send question`:`Send flag`,primary:!0,run:e}]}function pb({hunk:e,commit:t,under:n}){let{state:r,run:i}=X(),{owners:a,numbers:o}=wp(),s=Dp(),{pick:c,setPick:l,box:u,boxBody:d,setBox:f}=K_(),p=Xv(e),m=q_(),h=m?.marks.get(e.id),g=Cf(e,a),_=wf(e.body,g,t.index),v=_.flatMap(e=>e.kind===`line`?[e.line]:[]),y=o.get(e.id)??[],b=_.find(e=>e.kind===`line`&&e.mine),x=b?.kind===`line`?Df(e.body,b.line):null,S=c?.unit===e.id&&c.commit===t.index?c:null,[C,w]=(0,O.useState)(null),[T,E]=(0,O.useState)(null),D=(0,O.useRef)(null),[ee,k]=(0,O.useState)(null),te=(0,O.useRef)(null),A=e=>{let t=D.current?.querySelector(`[data-row="${e}"] [data-coverage] button`);t!=null&&(te.current=t,k(t=>t===e?null:e))},ne=new Set(v),j=new Map,M=[];for(let n of r.comments){let{anchor:r}=n;if(r.kind!==`hunk`||r.unit!==e.id||r.commit!==t.index||Gy(t,n))continue;let i=(0,z.jsx)(My,{comment:n},n.id),a=Rf(Lf(r,e.body),ne);a===null?M.push(i):j.set(a,[...j.get(a)??[],i])}for(let n of s){if(n.commit!==t.index||n.unit!==e.id)continue;let r=(0,z.jsx)(Hy,{placement:n},n.comment.id);n.row===null?M.push(r):j.set(n.row,[...j.get(n.row)??[],r])}let re=_.flatMap(e=>e.kind===`line`&&e.mine?[e.line]:[]);for(let n of t.concerns??[]){if(n.unit!==e.id)continue;let t=Bf(n.lines,e.body,re),r=(0,z.jsx)(Py,{concern:n},n.id);t===null?M.push(r):j.set(t,[...j.get(t)??[],r])}let ie=new Set(r.comments.flatMap(n=>n.anchor.kind===`hunk`&&n.anchor.unit===e.id&&n.anchor.commit===t.index?Lf(n.anchor,e.body):[])),ae=(n,r)=>l(n.length===0?null:{commit:t.index,unit:e.id,from:r,lines:n});(0,O.useEffect)(()=>{if(C===null)return;let e=()=>{if(w(null),C.from===C.to){let e=Mf(v,S,C.from,!1);ae(e?.lines??[],C.from)}else ae(jf(v,C.from,C.to),C.from)};return window.addEventListener(`mouseup`,e),()=>window.removeEventListener(`mouseup`,e)});let oe=(e,t)=>{if(e.button===0){if(e.preventDefault(),e.shiftKey){let e=Mf(v,S,t,!0);ae(e?.lines??[],e?.from??t)}else w({from:t,to:t})}},se=()=>{let e=D.current,t=window.getSelection();if(e===null||t===null||t.isCollapsed)return;let n=zf(v,db(t.anchorNode,e),db(t.focusNode,e));n!==null&&ae(n.lines,n.from)},ce=(e,t)=>{let n=e.key===`ArrowDown`?1:e.key===`ArrowUp`?-1:0;if(n!==0){let r=Nf(v,t,n);if(e.shiftKey){let e=Mf(v,S??{from:t,lines:[t]},r,!0);ae(e?.lines??[],e?.from??t)}E(r),D.current?.querySelector(`[data-row="${r}"]`)?.focus()}else if(e.key===` `){let n=Mf(v,S,t,e.shiftKey);ae(n?.lines??[],n?.from??t)}else if(e.key===`Enter`&&h?.has(t))A(t);else return;e.preventDefault()},N=S===null?null:Math.max(...S.lines),le=C===null?null:new Set(jf(v,C.from,C.to)),ue=T!==null&&ne.has(T)?T:v[0],de=async n=>{if(S===null)return!1;let r=Pf({id:e.id,commit:t.index,body:e.body,owners:g},S.lines),a={commitMessage:t.message,path:e.path,lines:Ff(e.body,S.lines)},o=await i(()=>qd.comment(rv(r,a,n)));return o&&l(null),o};return(0,z.jsxs)(`div`,{className:`rounded-lg border bg-card`,"data-unit":e.id,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 rounded-t-lg border-b bg-muted/50 px-3 py-1 font-mono text-muted-foreground text-xs`,title:e.id,children:[(0,z.jsx)(`span`,{children:vf(y)}),x===null?null:(0,z.jsx)(`span`,{className:`text-foreground/80`,children:x})]}),(0,z.jsx)(`div`,{ref:D,className:`font-mono text-[12.5px] leading-5`,role:`listbox`,"aria-multiselectable":!0,"aria-label":`Rows of ${e.path}`,"data-path":e.path,onMouseUp:se,children:_.map(t=>{if(t.kind===`fold`)return(0,z.jsxs)(`button`,{type:`button`,className:`block w-full bg-muted/40 px-3 py-0.5 text-left font-sans text-muted-foreground text-xs hover:bg-muted hover:text-foreground`,onClick:()=>J_(t.commit),children:[`⋯ `,ub(t.lines.length,t.commit)]},`fold-${t.lines[0]}`);let r=e.body[t.line];if(r===void 0)return null;let i=y[t.line],a=t.mine?r.op:` `,o=le?.has(t.line)??S?.lines.includes(t.line)??!1,s=a===`+`?`Added`:a===`-`?`Removed`:`Context`,c=h?.get(t.line);return(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(`div`,{role:`option`,"aria-selected":o,"aria-label":`${s} ${i?.new??i?.old??``}: ${r.text.trim()||`blank line`}${c===void 0?``:` · ${Yf(c)}`}`,tabIndex:t.line===ue?0:-1,"data-row":t.line,onKeyDown:e=>ce(e,t.line),onFocus:()=>E(t.line),onMouseDown:e=>{e.target instanceof Element&&e.target.closest(`[data-gutter]`)&&oe(e,t.line)},onMouseEnter:()=>w(e=>e===null?e:{...e,to:t.line}),className:I(`group relative flex outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset`,a===`+`&&`bg-emerald-500/10`,a===`-`&&`bg-rose-500/10`,ie.has(t.line)&&`shadow-[inset_3px_0_0] shadow-amber-500/70`,o&&`bg-sky-500/20 shadow-[inset_3px_0_0] shadow-sky-500`),children:[m===null?null:(0,z.jsx)(`span`,{"data-coverage":c?.kind,"data-stale":c?.stale||void 0,className:`relative w-2 shrink-0 select-none`,children:c===void 0?null:(0,z.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-label":`Coverage of line ${i?.new}`,className:`absolute inset-0 cursor-pointer`,onClick:()=>A(t.line),children:(0,z.jsx)(`span`,{className:`cov-bar`})})}),(0,z.jsxs)(`span`,{"data-gutter":!0,className:`flex shrink-0 cursor-pointer select-none text-muted-foreground/70`,children:[(0,z.jsx)(`span`,{className:`flex w-6 items-center justify-center`,children:(0,z.jsx)(`span`,{"aria-hidden":!0,className:`hidden size-4 items-center justify-center rounded bg-sky-600 text-white group-hover:flex group-focus-visible:flex`,children:(0,z.jsx)(be,{className:`size-3`})})}),(0,z.jsx)(`span`,{className:`w-10 pr-2 text-right`,children:i?.old??``}),(0,z.jsx)(`span`,{className:`w-10 pr-2 text-right`,children:i?.new??``})]}),(0,z.jsx)(`span`,{className:I(`w-5 shrink-0 select-none text-center`,a===`+`&&`text-emerald-700 dark:text-emerald-400`,a===`-`&&`text-rose-700 dark:text-rose-400`),children:a}),(0,z.jsx)(`span`,{"data-code":!0,className:`min-w-0 flex-1 whitespace-pre-wrap pr-28 [overflow-wrap:anywhere]`,children:(0,z.jsx)(lb,{line:r,spans:p?.[t.line]})}),t.line===N&&u===null&&C===null?(0,z.jsxs)(`span`,{className:`absolute top-0 right-2 flex gap-1 font-sans`,children:[(0,z.jsx)(`button`,{type:`button`,className:`h-5 rounded bg-background px-2 text-xs shadow ring-1 ring-border hover:bg-muted`,onMouseDown:e=>e.preventDefault(),onClick:()=>f(`flag`),children:`Flag`}),(0,z.jsx)(`button`,{type:`button`,className:`h-5 rounded bg-primary px-2 text-primary-foreground text-xs shadow hover:bg-primary/85`,onMouseDown:e=>e.preventDefault(),onClick:()=>f(`ask`),children:`Ask`})]}):null]}),n?.get(t.line),j.get(t.line),t.line===N&&u!==null&&S!==null?(0,z.jsx)(dv,{className:`my-2 ml-24 max-w-[760px]`,kind:u,initialBody:d??``,label:`${u===`ask`?`Ask about`:`Flag`} ${kf(e.body,y,S.lines)}`,onCancel:()=>l(null),actions:fb(de)},`${u}|${d}`):null]},t.line)})}),M.length>0?(0,z.jsx)(`div`,{className:`border-t px-1 pb-1`,children:M}):null,(0,z.jsx)(mb,{row:ee,hunk:e,commit:t.index,at:y,markAt:te,onClose:()=>k(null),onFlag:(n,r)=>{k(null),l({commit:t.index,unit:e.id,from:n,lines:[n]}),f(`flag`,sp(e.path,r))}})]})}function mb({row:e,hunk:t,commit:n,at:r,markAt:i,onClose:a,onFlag:o}){let s=q_()?.marks.get(t.id)?.get(e??-1),c=r[e??-1]?.new??null,l=e!==null&&s!==void 0&&c!==null;return(0,z.jsxs)($_,{open:l,onOpenChange:e=>e?void 0:a(),children:[(0,z.jsx)(nv,{virtualRef:i}),l?(0,z.jsx)(tv,{align:`start`,side:`bottom`,className:`w-80`,"aria-label":`Coverage of ${t.path}:${c}`,onInteractOutside:e=>{e.target instanceof Node&&i.current?.contains(e.target)&&e.preventDefault()},onCloseAutoFocus:e=>{e.preventDefault(),document.activeElement===document.body&&i.current?.closest(`[data-row]`)?.focus({preventScroll:!0})},children:(0,z.jsx)(cb,{mark:s,path:t.path,line:c,commit:n,near:i.current??document.body,onClose:a,onFlag:()=>o(e,c)})}):null]})}function hb(){let{run:e}=X();return t=>e(()=>qd.comment(rv({kind:`plan`},{commitMessage:``,path:null},t)))}function gb(){let[e,t]=(0,O.useState)(!1),n=hb();return(0,z.jsxs)($_,{open:e,onOpenChange:t,children:[(0,z.jsx)(ev,{asChild:!0,children:(0,z.jsxs)(J,{variant:`outline`,size:`sm`,children:[(0,z.jsx)(ve,{}),(0,z.jsx)(`span`,{className:`hidden xl:inline`,children:`Ask about the branch`})]})}),(0,z.jsx)(tv,{align:`end`,className:`w-[420px] p-0`,children:(0,z.jsx)(dv,{className:`border-0 shadow-none`,kind:`ask`,label:`About the whole branch`,onCancel:()=>t(!1),actions:fb(n)})})]})}function _b(e,t){return`${e} ${t}${e===1?``:`s`}`}function vb(){let{state:e}=X(),{units:t,owners:n}=wp(),r=Ep(),i=new Set(e.units.map(e=>e.path)).size,a=e.commits.map(e=>Af(e,t,n)).reduce((e,t)=>({added:e.added+t.added,removed:e.removed+t.removed}),{added:0,removed:0}),{answered:o,asked:s}=uf(e.previous),c=e.comments.filter(e=>e.anchor.kind===`plan`),l=r.filter(e=>e.place===null),u=Dp().filter(e=>e.commit===null);return(0,z.jsxs)(`section`,{"aria-label":`Branch`,className:`space-y-3 py-6`,children:[(0,z.jsxs)(`p`,{className:`text-muted-foreground text-sm`,children:[_b(e.commits.length,`commit`),` · `,_b(i,`file`),` ·`,` `,(0,z.jsxs)(`span`,{className:`text-emerald-700 dark:text-emerald-400`,children:[`+`,a.added]}),` `,(0,z.jsxs)(`span`,{className:`text-rose-700 dark:text-rose-400`,children:[`−`,a.removed]}),s===0?null:(0,z.jsxs)(z.Fragment,{children:[` `,`· v`,e.version,` answers `,o,` of your `,_b(s,`question`),` `,(0,z.jsx)(J,{variant:`link`,size:`xs`,className:`h-auto p-0`,onClick:()=>document.querySelector(`[aria-label="Answer to your question"]`)?.scrollIntoView({block:`center`}),children:`first answer →`})]})]}),c.length+l.length+u.length===0?null:(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(`h2`,{className:`font-medium text-sm`,children:`Branch discussion`}),l.map(e=>(0,z.jsx)(Iy,{card:e,className:`ml-0`},e.id)),u.map(e=>(0,z.jsx)(Hy,{placement:e,className:`ml-0`},e.comment.id)),c.map(e=>(0,z.jsx)(My,{comment:e,className:`ml-0`},e.id))]})]})}function yb(){return(0,z.jsxs)(`div`,{role:`status`,className:`mt-2`,children:[(0,z.jsx)(`p`,{className:`mb-2 text-muted-foreground text-xs`,children:`Waiting for the agent…`}),(0,z.jsx)(`div`,{"aria-hidden":!0,className:`h-40 animate-pulse rounded-lg border bg-muted/60`})]})}function bb({offer:e,onAccept:t,onDismiss:n}){return(0,z.jsxs)(`div`,{className:`flex max-w-[760px] items-center gap-1 rounded-md border border-dashed py-0.5 pr-0.5 pl-2 text-muted-foreground text-sm`,children:[(0,z.jsxs)(`button`,{type:`button`,title:`Ask the agent to draw it`,onClick:t,className:`flex min-w-0 flex-1 items-center gap-2 rounded py-0.5 text-left outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,z.jsx)(Se,{"aria-hidden":!0,className:`size-4 shrink-0`}),(0,z.jsx)(`span`,{className:`truncate`,children:Uy(e.label)})]}),(0,z.jsx)(J,{variant:`ghost`,size:`icon-xs`,"aria-label":`Dismiss offer: ${e.label}`,onClick:n,children:(0,z.jsx)(we,{})})]})}function xb({commit:e,unit:t}){let{state:n,run:r}=X(),{units:i}=wp(),[a,o]=(0,O.useState)(new Set),[s,c]=(0,O.useState)(new Set),l=Wy(e,t,n,a);if(l.length===0)return null;let u=async t=>{c(e=>new Set([...e,t.id])),await r(()=>qd.comment(Ky(t,e,i)))||c(e=>new Set([...e].filter(e=>e!==t.id)))},d=async e=>{o(t=>new Set([...t,e.id])),await r(()=>qd.dismissOffer(e.id))||o(t=>new Set([...t].filter(t=>t!==e.id)))};return l.map(e=>{let t=`Offer: ${e.offer.label}`;return e.kind===`accepted`?(0,z.jsx)(My,{comment:e.comment,label:t,className:`ml-0 max-w-none`,extra:qy(e.comment)?(0,z.jsx)(yb,{}):null},e.offer.id):s.has(e.offer.id)?(0,z.jsxs)(Oy,{label:t,className:`ml-0 max-w-none`,children:[(0,z.jsx)(`div`,{className:`mb-1 font-medium text-xs`,children:`You asked`}),(0,z.jsx)(ky,{children:e.offer.label}),(0,z.jsx)(yb,{})]},e.offer.id):(0,z.jsx)(bb,{offer:e.offer,onAccept:()=>void u(e.offer),onDismiss:()=>void d(e.offer)},e.offer.id)})}function Sb(e){if(e.kind===`mode`)return`mode change ${e.from} → ${e.to}`;let t=e.before===null?`added`:e.after===null?`deleted`:`changed`;return`${e.reason} file ${t}`}function Cb({commit:e}){let{state:t,run:n}=X(),{units:r}=wp(),i=Ep(),a=Dp(),o=e.refs.map(e=>e.unit),[s,c]=(0,O.useState)(null),l=t.comments.filter(t=>(t.anchor.kind===`message`||t.anchor.kind===`position`)&&t.anchor.commit===e.index&&!Gy(e,t)),u=t=>r=>n(()=>qd.comment(rv({kind:t,commit:e.index},{commitMessage:e.message,path:null},r))),{isViewed:d,setViewed:f,isFileViewed:p,setFileViewed:m,isRevealed:h}=K_(),g=d(e),_=g&&!h(e.index),v=`commit-${e.index+1}`,y=ff(e.message),b=mf(e),x=hf(e,r),S=q_();return(0,z.jsxs)(`section`,{id:v,"data-commit":e.index,"aria-labelledby":`commit-${e.index+1}-title`,className:`scroll-mt-11 pb-10 last:min-h-[calc(100vh-44px)]`,children:[(0,z.jsxs)(`header`,{className:`sticky top-11 z-20 -mx-6 flex h-11 items-center gap-3 border-b bg-background/95 px-6 backdrop-blur`,children:[(0,z.jsx)(`span`,{className:`flex size-6 shrink-0 items-center justify-center rounded-full bg-muted font-medium text-xs tabular-nums`,children:e.index+1}),(0,z.jsx)(`h2`,{id:`commit-${e.index+1}-title`,className:`min-w-0 truncate font-semibold`,children:df(e.message)}),(0,z.jsx)(Xy,{commit:e.index}),(0,z.jsx)(kp,{className:`ml-auto`,checked:g,onChange:t=>f(e,t),name:`Viewed commit ${e.index+1}`,children:`Viewed`}),(0,z.jsxs)(iv,{children:[(0,z.jsx)(av,{asChild:!0,children:(0,z.jsx)(J,{variant:`ghost`,size:`icon-sm`,"aria-label":`More on commit ${e.index+1}`,children:(0,z.jsx)(ge,{})})}),(0,z.jsxs)(ov,{align:`end`,className:`w-56`,children:[(0,z.jsx)(sv,{onSelect:()=>c({anchor:`message`,kind:`ask`}),children:`Comment on message`}),t.mode===`split`?(0,z.jsx)(sv,{onSelect:()=>c({anchor:`position`,kind:`flag`}),children:`Move this commit…`}):null]})]})]}),_?null:(0,z.jsxs)(`div`,{className:`space-y-4 pt-4`,children:[y===``?null:(0,z.jsx)(`p`,{className:`max-w-[72ch] whitespace-pre-wrap text-sm leading-6`,children:y}),b===null?null:(0,z.jsxs)(`div`,{className:`max-w-[72ch] text-sm leading-6`,children:[(0,z.jsx)(`div`,{className:`mb-0.5 font-medium text-muted-foreground text-xs`,children:`Agent's note`}),(0,z.jsx)(`p`,{className:`whitespace-pre-wrap text-muted-foreground`,children:b})]}),e.diagram?.trim()?(0,z.jsx)(T_,{source:e.diagram,title:`Diagram of commit ${e.index+1}`}):null,(0,z.jsx)(xb,{commit:e,unit:null}),cf(i,e.index,null,o).map(e=>(0,z.jsx)(Iy,{card:e,className:`ml-0`},e.id)),(e.concerns??[]).filter(e=>e.unit===void 0||r.get(e.unit)?.kind!==`hunk`).map(e=>(0,z.jsx)(Py,{concern:e,className:`ml-0`},e.id)),a.filter(t=>t.commit===e.index&&t.unit===null).map(e=>(0,z.jsx)(Hy,{placement:e,className:`ml-0`},e.comment.id)),l.map(e=>(0,z.jsx)(My,{comment:e,className:`ml-0`},e.id)),s===null?null:(0,z.jsx)(dv,{className:`max-w-[760px]`,kind:s.kind,label:s.anchor===`message`?`Comment on the message`:`Where should this commit go?`,onCancel:()=>c(null),actions:fb(u(s.anchor))}),x.map(t=>{let n=p(e,t.path);return(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 pt-2 text-sm`,children:[(0,z.jsx)(`span`,{className:`font-medium font-mono`,children:t.path}),(0,z.jsx)(Zy,{tally:S?.files.get(ep(e.index,t.path))}),(0,z.jsx)($y,{path:t.path}),(0,z.jsx)(kp,{className:`ml-auto`,checked:n,onChange:n=>m(e,t.path,n),name:`Viewed ${t.path} in commit ${e.index+1}`,children:`Viewed`})]}),n&&!h(e.index,t.path)?null:t.parts.map(({ref:t,unit:n})=>n.kind===`hunk`?(0,z.jsxs)(`div`,{className:`space-y-2`,children:[t.narration?.trim()?(0,z.jsx)(`p`,{className:`max-w-[72ch] text-muted-foreground text-sm`,children:t.narration.trim()}):null,t.diagram?.trim()?(0,z.jsx)(T_,{source:t.diagram,title:`Diagram of ${n.path}`}):null,(0,z.jsx)(xb,{commit:e,unit:n.id}),cf(i,e.index,n.id,o).map(e=>(0,z.jsx)(Iy,{card:e,className:`ml-0`},e.id)),(0,z.jsx)(pb,{hunk:n,commit:e})]},t.unit):(0,z.jsx)(`div`,{className:`rounded-lg border bg-card px-3 py-2 text-muted-foreground text-sm`,children:Sb(n)},t.unit))]},t.path)})]})]})}function wb({delayDuration:e=0,...t}){return(0,z.jsx)(_d,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function Tb({...e}){return(0,z.jsx)(xd,{"data-slot":`tooltip`,...e})}function Eb({...e}){return(0,z.jsx)(Cd,{"data-slot":`tooltip-trigger`,...e})}function Db({className:e,sideOffset:t=0,children:n,...r}){return(0,z.jsx)(Dd,{children:(0,z.jsxs)(kd,{"data-slot":`tooltip-content`,sideOffset:t,className:I(`z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[n,(0,z.jsx)(Nd,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`})]})})}function Ob(e){let t=e.replies?.at(-1);return t===void 0?e.author===`agent`:t.author===`agent`}function kb(e,t,n,r){let i=t.filter(t=>t.anchor.kind!==`plan`&&t.anchor.commit===e.index).filter(e=>!r.has(e.id)),a=new Set(n.map(e=>e.concern));return{open:i.length,waiting:i.filter(Ob).length,undecided:(e.concerns??[]).filter(e=>!a.has(e.id)).length}}function Ab(){let{state:e,unread:t}=X(),{isViewed:n,resolved:r}=K_(),i=Dp(),a=q_();return(0,O.useMemo)(()=>{let o=new Map;for(let t of e.comments)t.anchor.kind!==`plan`&&o.set(t.id,t.anchor.commit);for(let e of i)e.commit!==null&&o.set(e.comment.id,e.commit);let s=B_(t,o);return e.commits.map(t=>{let i=kb(t,e.comments,e.concerns,r),o=a?.commits[t.index];return{...o===void 0?{}:{coverage:o},viewed:n(t),open:i.open,waiting:i.waiting,unread:s.get(t.index)??0,undecided:i.undecided}})},[e.commits,e.comments,e.concerns,r,t,i,n,a])}function jb(e){let t=[...e.currentTarget.querySelectorAll(`[data-entry]`)],n=t.findIndex(e=>e.matches(`:focus`)),r=e.key===`ArrowDown`?n+1:e.key===`ArrowUp`?n-1:e.key===`Home`?0:e.key===`End`?t.length-1:null;r===null||n<0||(e.preventDefault(),t[Math.max(0,Math.min(t.length-1,r))]?.focus())}function Mb(e){let t=(0,O.useRef)(null);return(0,O.useEffect)(()=>{let n=t.current,r=n?.querySelector(`[data-entry="${e}"]`);if(n==null||r==null)return;let i=r.offsetTop-n.offsetTop;i<n.scrollTop?n.scrollTop=i:i+r.offsetHeight>n.scrollTop+n.clientHeight&&(n.scrollTop=i+r.offsetHeight-n.clientHeight)},[e]),t}function Nb({tone:e}){return(0,z.jsx)(`span`,{"aria-hidden":!0,className:I(`size-2 rounded-full`,e===`unread`?`bg-violet-500`:`bg-amber-500`)})}function Pb({marks:e}){return(0,z.jsxs)(`span`,{"aria-hidden":!0,className:`flex shrink-0 items-center gap-1 pt-0.5 text-[11px]`,children:[e.viewed?(0,z.jsx)(ae,{className:`size-3.5 text-emerald-600`}):null,e.open>0?(0,z.jsx)(`span`,{className:I(`rounded-full px-1.5 font-medium tabular-nums leading-4`,e.waiting>0?`bg-rose-500/15 text-rose-700 dark:text-rose-300`:`bg-muted text-muted-foreground`),children:e.open}):null,e.unread>0?(0,z.jsx)(Nb,{tone:`unread`}):null,e.undecided>0?(0,z.jsx)(Nb,{tone:`concern`}):null,e.coverage!==void 0&&e.coverage.total>0?(0,z.jsxs)(`span`,{className:I(`rounded px-1 tabular-nums leading-4`,Jy[$f(e.coverage)]),children:[Qf(e.coverage),`%`]}):null]})}function Fb({children:e}){return(0,z.jsx)(`kbd`,{className:`rounded border bg-background px-1 font-mono text-[10px] leading-4`,children:e})}function Ib(){let{state:e}=X(),{units:t}=wp(),{current:n,setIndexOpen:r}=K_(),i=Ab(),a=Mb(n),o=I_(e.commits),s=i.filter(e=>e.viewed).length;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`div`,{className:`flex h-9 shrink-0 items-center justify-between pr-2 pl-3`,children:[(0,z.jsx)(`span`,{className:`font-semibold text-[11px] text-muted-foreground tracking-widest`,children:`INDEX`}),(0,z.jsxs)(`button`,{type:`button`,"aria-label":`Hide index`,title:`Hide index ([)`,className:`flex items-center gap-1 rounded px-1 py-0.5 text-muted-foreground text-xs hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring`,onClick:()=>r(!1),children:[(0,z.jsx)(Fb,{children:`[`}),` hide`]})]}),(0,z.jsx)(`div`,{ref:a,className:`min-h-0 flex-1 overflow-y-auto pb-2`,onKeyDown:jb,children:o.map(e=>(0,z.jsxs)(`div`,{children:[e.section===null?null:(0,z.jsx)(`h3`,{className:`px-3 pt-3 pb-1 font-medium text-muted-foreground text-xs`,children:xf(e.section)}),(0,z.jsx)(`ul`,{children:e.commits.map(e=>{let r=i[e.index]??{viewed:!1,open:0,waiting:0,unread:0,undecided:0},a=e.index===n;return(0,z.jsxs)(`li`,{children:[(0,z.jsxs)(`button`,{type:`button`,"data-entry":e.index,tabIndex:a?0:-1,"aria-current":a?`location`:void 0,"aria-label":R_(e,r),onClick:()=>J_(e.index),className:I(`flex w-full items-start gap-2 py-1 pr-2 pl-3 text-left text-[13px] leading-5 outline-none hover:bg-muted/60 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset`,a&&`bg-sky-500/10 font-semibold shadow-[inset_3px_0_0] shadow-sky-500 hover:bg-sky-500/15`),children:[(0,z.jsx)(`span`,{className:`w-4 shrink-0 text-right font-normal text-muted-foreground tabular-nums`,children:e.index+1}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 [overflow-wrap:anywhere]`,children:df(e.message)}),(0,z.jsx)(Pb,{marks:r})]}),a?(0,z.jsx)(`ul`,{"aria-label":`Files in commit ${e.index+1}`,className:`space-y-0.5 bg-sky-500/5 pt-0.5 pr-2 pb-1.5 pl-9 font-mono text-[11px] text-muted-foreground`,children:hf(e,t).map(e=>(0,z.jsx)(`li`,{className:`[overflow-wrap:anywhere]`,children:e.path},e.path))}):null]},e.index)})})]},`${e.section}-${e.commits[0]?.index}`))}),(0,z.jsxs)(`div`,{className:`shrink-0 border-t px-3 py-2 text-muted-foreground text-xs`,children:[(0,z.jsx)(`div`,{children:z_(i)}),(0,z.jsx)(`div`,{role:`progressbar`,"aria-label":`Commits viewed`,"aria-valuemin":0,"aria-valuemax":i.length,"aria-valuenow":s,className:`mt-1.5 h-1 overflow-hidden rounded-full bg-muted`,children:(0,z.jsx)(`div`,{className:`h-full rounded-full bg-emerald-500 transition-[width]`,style:{width:`${i.length===0?0:100*s/i.length}%`}})})]})]})}function Lb(){let{state:e}=X(),{current:t,setIndexOpen:n}=K_(),r=Ab(),i=Mb(t),a=I_(e.commits);return(0,z.jsxs)(wb,{delayDuration:150,children:[(0,z.jsx)(`button`,{type:`button`,"aria-label":`Show index`,title:`Show index ([)`,className:`mx-auto mt-2 mb-1 flex shrink-0 rounded px-1 py-0.5 text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring`,onClick:()=>n(!0),children:(0,z.jsx)(Fb,{children:`[`})}),(0,z.jsx)(`div`,{ref:i,className:`no-scrollbar min-h-0 flex-1 overflow-y-auto pb-2`,onKeyDown:jb,children:a.map((e,n)=>(0,z.jsxs)(`div`,{children:[n>0&&e.section!==null?(0,z.jsx)(`hr`,{"aria-hidden":!0,className:`mx-auto my-1.5 w-4 border-border`}):null,(0,z.jsx)(`ul`,{children:e.commits.map(e=>{let n=r[e.index],i=e.index===t,a=n===void 0?`${e.index+1}`:R_(e,n);return(0,z.jsx)(`li`,{children:(0,z.jsxs)(Tb,{children:[(0,z.jsx)(Eb,{asChild:!0,children:(0,z.jsxs)(`button`,{type:`button`,"data-entry":e.index,tabIndex:i?0:-1,"aria-current":i?`location`:void 0,"aria-label":a,onClick:()=>J_(e.index),className:I(`relative flex h-7 w-full items-center justify-center text-muted-foreground text-xs tabular-nums outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset`,n?.viewed&&`text-emerald-700 dark:text-emerald-400`,i&&`bg-sky-500/10 font-semibold text-foreground shadow-[inset_3px_0_0] shadow-sky-500`),children:[e.index+1,n?.viewed?(0,z.jsx)(ae,{"aria-hidden":!0,className:`absolute top-0.5 right-1 size-2.5 text-emerald-600`}):null,(0,z.jsxs)(`span`,{"aria-hidden":!0,className:`absolute right-1 bottom-1 flex gap-0.5`,children:[n!==void 0&&n.unread>0?(0,z.jsx)(`span`,{className:`size-1.5 rounded-full bg-violet-500`}):null,n!==void 0&&n.undecided>0?(0,z.jsx)(`span`,{className:`size-1.5 rounded-full bg-amber-500`}):null,n?.coverage!==void 0&&$f(n.coverage)!==`covered`?(0,z.jsx)(`span`,{className:I(`size-1.5 rounded-sm`,$f(n.coverage)===`uncovered`?`bg-[var(--cov-uncovered)]`:`bg-[var(--cov-partly)]`)}):null]})]})}),(0,z.jsx)(Db,{side:`right`,sideOffset:6,children:a})]})},e.index)})})]},`${e.section}-${e.commits[0]?.index}`))})]})}function Rb(){let{indexOpen:e}=K_();return(0,z.jsx)(`nav`,{"aria-label":`Index`,className:I(`sticky top-11 flex h-[calc(100vh-2.75rem)] shrink-0 flex-col border-r bg-muted/20`,e?`w-[216px]`:`w-10`),children:e?(0,z.jsx)(Ib,{}):(0,z.jsx)(Lb,{})})}function zb(){document.querySelector(`nav[aria-label="Index"] [data-entry][aria-current]`)?.focus()}var Bb=[[`j or c`,`Next commit`],[`k`,`Previous commit`],[`n`,`Next unviewed commit`],[`v`,`Toggle Viewed on the commit at the top`],[`s`,`Open the stack, or move to the index when it is open`],[`[`,`Show or hide the index`],[`↑ ↓ in the index`,`Move between commits`],[`↑ ↓`,`Move between rows of a hunk`],[`Shift+↑ ↓`,`Extend the picked rows`],[`Space`,`Pick or unpick a row`],[`f`,`Flag the picked rows`],[`a`,`Ask about the picked rows`],[`Escape`,`Clear the pick or close a box`],[`u`,`Next unresolved thread`],[`x, Shift+X`,`Next or previous added line the tests did not run`],[`g`,`Show or hide coverage`],[`⌘ hover, ⌘ click`,`Go to the definition of a name (Ctrl off macOS)`],[`Alt ←`,`Back to where the jump started`],[`⌘ Enter`,`Save the box`],[`⌘ Shift Enter`,`Submit review`],[`?`,`This sheet`]];function Vb({open:e,onOpenChange:t}){return(0,z.jsx)(o_,{open:e,onOpenChange:t,children:(0,z.jsxs)(l_,{className:`sm:max-w-md`,children:[(0,z.jsx)(u_,{children:(0,z.jsx)(f_,{children:`Keyboard`})}),(0,z.jsx)(`dl`,{className:`grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5 text-sm`,children:Bb.map(([e,t])=>(0,z.jsxs)(`div`,{className:`contents`,children:[(0,z.jsx)(`dt`,{children:(0,z.jsx)(`kbd`,{className:`rounded border bg-muted px-1.5 py-px font-mono text-xs`,children:e})}),(0,z.jsx)(`dd`,{className:`text-muted-foreground`,children:t})]},e))})]})})}var Hb=8e3;function Ub({title:e,preview:t,onView:n,onDismiss:r,ms:i=Hb}){let[a,o]=(0,O.useState)(!1);return(0,O.useEffect)(()=>{if(a)return;let e=setTimeout(r,i);return()=>clearTimeout(e)},[a,i,r]),(0,z.jsxs)(`article`,{"aria-label":`Notification`,className:`pointer-events-auto w-80 rounded-lg border bg-popover p-3 text-popover-foreground text-sm shadow-lg`,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[(0,z.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,z.jsx)(`div`,{className:`font-medium`,children:e}),(0,z.jsx)(`div`,{className:`truncate text-muted-foreground text-xs`,children:t})]}),(0,z.jsx)(J,{variant:`ghost`,size:`icon-xs`,"aria-label":`Dismiss notification`,onClick:r,children:(0,z.jsx)(we,{})})]}),(0,z.jsx)(J,{size:`xs`,className:`mt-2`,onClick:n,children:`View`})]})}function Wb(){let{markSeen:e}=X();return(0,O.useCallback)(t=>{e([t.key]),t.thread!==null&&Fv(t.thread)},[e])}function Gb(){let[e,t]=(0,O.useState)(document.hidden);return(0,O.useEffect)(()=>{let e=()=>t(document.hidden);return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e}function Kb(){let{state:e,events:t,unread:n}=X(),{notify:r}=K_(),i=Wb(),a=Gb(),[o,s]=(0,O.useState)([]),c=(0,O.useRef)(0),l=(0,O.useRef)(e);l.current=e;let u=(0,O.useRef)(document.title);(0,O.useEffect)(()=>{let e=t.slice(c.current);c.current=t.length;let n=e.flatMap(e=>{let t=mp(e);return t===null?[]:[{key:t.key,notice:t,title:_p(t,l.current)}]});if(n.length!==0&&(s(e=>[...e,...n.filter(t=>!e.some(e=>e.key===t.key))]),document.hidden&&r&&Notification.permission===`granted`))for(let{notice:e,title:t}of n){let n=new Notification(t,{body:e.preview,tag:e.key});n.onclick=()=>{window.focus(),i(e),n.close()}}},[t,r,i]),(0,O.useEffect)(()=>(document.title=a&&n.length>0?`(${n.length}) ${u.current}`:u.current,()=>{document.title=u.current}),[a,n.length]);let d=(0,O.useCallback)(e=>s(t=>t.filter(t=>t.key!==e)),[]);return(0,z.jsx)(`section`,{"aria-label":`Notifications`,"aria-live":`polite`,className:`pointer-events-none fixed right-4 bottom-4 z-50 flex flex-col gap-2`,children:o.map(({key:e,notice:t,title:n})=>(0,z.jsx)(Ub,{title:n,preview:t.preview,onView:()=>{i(t),d(e)},onDismiss:()=>d(e)},e))})}function qb(){let{state:e,unread:t}=X(),n=Wb();return t.length===0?null:(0,z.jsxs)(iv,{children:[(0,z.jsx)(av,{asChild:!0,children:(0,z.jsxs)(J,{variant:`outline`,size:`sm`,"aria-label":`${t.length} new from the agent`,children:[(0,z.jsx)(re,{}),t.length,` new`]})}),(0,z.jsx)(ov,{align:`end`,className:`w-80`,children:t.map(t=>(0,z.jsxs)(sv,{className:`flex-col items-start gap-0`,onSelect:()=>n(t),children:[(0,z.jsx)(`span`,{className:`font-medium`,children:_p(t,e)}),(0,z.jsx)(`span`,{className:`max-w-full truncate text-muted-foreground text-xs`,children:t.preview})]},t.key))})]})}function Jb(){let{notify:e,setNotify:t}=K_(),n=!(`Notification`in window)||Notification.permission===`denied`;return(0,z.jsxs)(iv,{children:[(0,z.jsx)(av,{asChild:!0,children:(0,z.jsx)(J,{variant:`ghost`,size:`icon-sm`,"aria-label":`Page options`,children:(0,z.jsx)(ge,{})})}),(0,z.jsxs)(ov,{align:`end`,className:`w-64`,children:[(0,z.jsx)(cv,{checked:e,disabled:n,onCheckedChange:e=>void t(e),children:`Notify me when the agent replies`}),n?(0,z.jsx)(`p`,{className:`px-2 pb-1.5 text-muted-foreground text-xs`,children:`Notifications are blocked in this browser.`}):null]})]})}function Yb({open:e,onOpenChange:t}){let{state:n}=X(),{current:r,isViewed:i,resolved:a}=K_(),o=n.commits.length,s=n.commits[r];return(0,z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-0.5`,children:[(0,z.jsx)(J,{variant:`ghost`,size:`icon-sm`,"aria-label":`Previous commit`,disabled:r===0,onClick:()=>J_(r-1),children:(0,z.jsx)(N,{})}),(0,z.jsxs)(iv,{open:e,onOpenChange:t,children:[(0,z.jsx)(av,{asChild:!0,children:(0,z.jsxs)(J,{variant:`ghost`,size:`sm`,className:`min-w-0 max-w-[480px] gap-1.5`,children:[(0,z.jsxs)(`span`,{className:`hidden min-w-0 truncate min-[900px]:inline`,children:[`Commit `,r+1,` of `,o,s===void 0?``:` · ${df(s.message)}`]}),(0,z.jsxs)(`span`,{className:`min-[900px]:hidden`,children:[r+1,`/`,o]}),(0,z.jsx)(se,{})]})}),(0,z.jsx)(ov,{align:`center`,className:`max-h-[70vh] w-[440px]`,children:n.commits.map(e=>{let t=kb(e,n.comments,n.concerns,a);return(0,z.jsxs)(sv,{className:I(`items-start gap-2`,e.index===r&&`bg-muted/60`),onSelect:()=>J_(e.index),children:[(0,z.jsx)(`span`,{className:`w-5 shrink-0 text-right text-muted-foreground tabular-nums`,children:e.index+1}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 whitespace-normal`,children:df(e.message)}),(0,z.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1.5 text-xs`,children:[t.open>0?(0,z.jsx)(`span`,{title:`${t.open} open thread${t.open===1?``:`s`}`,className:I(`rounded-full px-1.5 tabular-nums`,t.waiting>0?`bg-rose-500/15 text-rose-700 dark:text-rose-300`:`bg-muted`),children:t.open}):null,t.undecided>0?(0,z.jsx)(`span`,{title:`Agent concerns to decide`,className:`size-2 rounded-full bg-amber-500`}):null,i(e)?(0,z.jsx)(ae,{"aria-label":`Viewed`,className:`size-4 text-emerald-600`}):null]})]},e.index)})})]}),(0,z.jsx)(J,{variant:`ghost`,size:`icon-sm`,"aria-label":`Next commit`,disabled:r>=o-1,onClick:()=>J_(r+1),children:(0,z.jsx)(ue,{})})]})}function Xb({open:e,onOpenChange:t}){let{state:n,run:r,refresh:i}=X(),[a,o]=(0,O.useState)(``),[s,c]=(0,O.useState)(!1),l=new Set(n.concerns.map(e=>e.concern)),u=n.commits.flatMap(e=>(e.concerns??[]).filter(e=>!l.has(e.id)).map(t=>({concern:t,commit:e}))),d=e=>r(async()=>{for(let{concern:t}of u)await qd.decide(t.id,e)}),f=async()=>{c(!0);let e=await r(()=>qd.submit(a));c(!1),e&&(await i().catch(()=>void 0),t(!1),nf(`report`))};return(0,z.jsx)(o_,{open:e,onOpenChange:t,children:(0,z.jsxs)(l_,{className:`sm:max-w-lg`,children:[(0,z.jsxs)(u_,{children:[(0,z.jsx)(f_,{children:`Submit review`}),(0,z.jsx)(p_,{children:`Your flags and questions already reached the agent. Submitting finishes the review and opens the hand-off.`})]}),(0,z.jsx)(lv,{"aria-label":`Summary`,placeholder:`Summary for the agent (optional)`,value:a,onChange:e=>o(e.target.value)}),u.length===0?null:(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsxs)(`div`,{className:`font-medium text-sm`,children:[u.length,` agent concern`,u.length===1?``:`s`,` undecided`]}),(0,z.jsx)(`ul`,{className:`max-h-48 space-y-1.5 overflow-y-auto text-sm`,children:u.map(({concern:e,commit:t})=>(0,z.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,z.jsx)(k_,{severity:e.severity}),(0,z.jsxs)(`span`,{className:`min-w-0`,children:[e.text,(0,z.jsxs)(`span`,{className:`text-muted-foreground`,children:[` · `,df(t.message)]})]})]},e.id))}),(0,z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,z.jsx)(J,{size:`sm`,variant:`outline`,onClick:()=>void d(`kept`),children:`Keep all`}),(0,z.jsx)(J,{size:`sm`,variant:`outline`,onClick:()=>void d(`dismissed`),children:`Dismiss all`})]}),(0,z.jsx)(`p`,{className:`text-muted-foreground text-xs`,children:`Undecided concerns are left out of the report.`})]}),(0,z.jsxs)(d_,{children:[(0,z.jsx)(J,{variant:`ghost`,onClick:()=>t(!1),children:`Go back`}),(0,z.jsx)(J,{disabled:s,onClick:()=>void f(),children:`Submit review`})]})]})})}function Zb(e){let t=e.target;return e.metaKey||e.ctrlKey||e.altKey?!0:t instanceof HTMLElement&&(t.isContentEditable||t.closest(`input, textarea, select, [role=menu]`)!==null)}function Qb(){let e=[...document.querySelectorAll(`article[data-open-thread]`)];(e.find(e=>e.getBoundingClientRect().top>104)??e[0])?.scrollIntoView({block:`center`})}function $b(e,t,n){let{state:r}=X(),{current:i,isViewed:a,setViewed:o,pick:s,setPick:c,setBox:l,indexOpen:u,setIndexOpen:d,coverageOn:f,setCoverageOn:p}=K_(),m=ab(),h=Tp()!==null;(0,O.useEffect)(()=>{let g=g=>{if(g.key===`Enter`&&g.shiftKey&&(g.metaKey||g.ctrlKey)){g.preventDefault(),n();return}if(g.key===`Escape`&&s!==null){c(null);return}if(Zb(g))return;let _=r.commits.length-1,v=r.commits[i];switch(g.key){case`j`:case`c`:J_(Math.min(_,i+1));break;case`k`:J_(Math.max(0,i-1));break;case`x`:case`X`:m(g.key===`x`?1:-1);break;case`g`:if(!h)return;p(!f);break;case`n`:{let e=r.commits.find(e=>e.index>i&&!a(e));e!==void 0&&J_(e.index);break}case`v`:v!==void 0&&o(v,!a(v));break;case`s`:u?zb():e();break;case`[`:d(!u);break;case`f`:case`a`:if(s===null)return;l(g.key===`f`?`flag`:`ask`);break;case`u`:Qb();break;case`?`:t();break;default:return}g.preventDefault()};return window.addEventListener(`keydown`,g),()=>window.removeEventListener(`keydown`,g)},[r.commits,i,a,o,e,t,n,s,c,l,u,d,m,f,p,h])}function ex(){let{state:e,error:t,ended:n,arrived:r,dismissArrived:i,reconnecting:a}=X(),{indexOpen:o}=K_(),s=uy(),{goTo:c,goToPlaces:l}=s,u=(0,O.useMemo)(()=>({goTo:c,goToPlaces:l}),[c,l]),[d,f]=(0,O.useState)(!1),[p,m]=(0,O.useState)(!1),[h,g]=(0,O.useState)(!1);return $b(()=>f(!0),()=>m(!0),()=>g(!0)),(0,z.jsx)(oy,{value:u,children:(0,z.jsxs)(`div`,{className:`min-h-screen`,children:[(0,z.jsxs)(`header`,{className:`sticky top-0 z-30 h-11 border-b bg-background/95 backdrop-blur`,children:[(0,z.jsxs)(`div`,{className:`grid h-full grid-cols-[minmax(0,1fr)_minmax(0,auto)_minmax(max-content,1fr)] items-center gap-2 px-4 text-sm`,children:[(0,z.jsxs)(`div`,{className:`min-w-0 truncate`,children:[(0,z.jsx)(`strong`,{children:`follow-me`}),(0,z.jsxs)(`span`,{className:`text-muted-foreground`,children:[` `,`· `,e.anchor.branch,` → `,e.anchor.baseRef,` · plan v`,e.version]})]}),(0,z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[o?null:(0,z.jsx)(Yb,{open:d,onOpenChange:f}),s.back]}),(0,z.jsxs)(`div`,{className:`flex items-center justify-end gap-2`,children:[(0,z.jsx)(Qy,{}),(0,z.jsx)(eb,{}),(0,z.jsx)(tb,{}),(0,z.jsx)(qb,{}),(0,z.jsx)(gb,{}),(0,z.jsx)(J,{size:`sm`,onClick:()=>g(!0),children:`Submit review`}),(0,z.jsx)(Jb,{})]})]}),a?(0,z.jsx)(`div`,{className:`border-b bg-amber-500/10 px-6 py-1 text-center text-amber-900 text-sm dark:text-amber-100`,children:`Reconnecting… your drafts are kept.`}):null,r===null?null:(0,z.jsxs)(`div`,{role:`status`,className:`absolute top-full left-1/2 mt-2 flex -translate-x-1/2 items-center gap-3 rounded-full border bg-sky-50 py-0.5 pr-1 pl-4 text-sky-900 text-sm shadow-md dark:bg-sky-950 dark:text-sky-100`,children:[(0,z.jsx)(`span`,{children:r}),(0,z.jsx)(J,{variant:`ghost`,size:`xs`,onClick:i,children:`Dismiss`})]}),t===null&&!n?null:(0,z.jsx)(`div`,{role:`alert`,className:`border-b bg-rose-500/10 px-6 py-1.5 text-center text-rose-800 text-sm dark:text-rose-200`,children:n?`This review has ended. Nothing more can be saved here.`:t})]}),(0,z.jsxs)(`div`,{className:`flex`,children:[(0,z.jsx)(Rb,{}),(0,z.jsx)(`main`,{className:`min-w-0 flex-1`,children:(0,z.jsxs)(`div`,{className:`mx-auto max-w-[1232px] px-6`,children:[(0,z.jsx)(vb,{}),e.commits.map(e=>(0,z.jsx)(Cb,{commit:e},_f(e)))]})})]}),s.layer,(0,z.jsx)(Kb,{}),(0,z.jsx)(Vb,{open:p,onOpenChange:m}),(0,z.jsx)(Xb,{open:h,onOpenChange:g})]})})}function tx(){return(0,z.jsx)(Q_,{children:(0,z.jsx)(ex,{})})}function nx(){let e=rf(),[t,n]=(0,O.useState)(null),[r,i]=(0,O.useState)(null);return(0,O.useEffect)(()=>{qd.state().then(n).catch(e=>i(e instanceof Error?e.message:String(e)))},[]),r===null?t===null?(0,z.jsx)(`main`,{className:`p-10 text-muted-foreground text-sm`,children:`Loading the review…`}):(0,z.jsx)(Cp,{initial:t,children:e===`report`?(0,z.jsx)(F_,{}):(0,z.jsx)(tx,{})}):(0,z.jsxs)(`main`,{className:`mx-auto max-w-xl p-10 text-sm`,children:[(0,z.jsx)(`h1`,{className:`mb-2 font-semibold text-lg`,children:`This review is not available`}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:r}),(0,z.jsx)(`p`,{className:`mt-4`,children:(0,z.jsx)(`a`,{className:`underline`,href:`/`,children:`All sessions`})})]})}var rx=window.matchMedia(`(prefers-color-scheme: dark)`),ix=()=>document.documentElement.classList.toggle(`dark`,rx.matches);ix(),rx.addEventListener(`change`,ix);var ax=document.getElementById(`root`);if(ax===null)throw Error(`index.html has no #root`);(0,Te.createRoot)(ax).render((0,z.jsx)(O.StrictMode,{children:(0,z.jsx)(nx,{})}));export{c as a,l as i,oh as n,o as r,$ as t};