@nodefony/studio 10.0.0-alpha.7 → 10.0.0-alpha.8

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 (124) hide show
  1. package/dist/frontend/assets/{Accordion-DhCGbIpd.js → Accordion-BZratQ5I.js} +1 -1
  2. package/dist/frontend/assets/{ActionsLiveGraph-BNMaitaA.js → ActionsLiveGraph-XrF4dBJH.js} +1 -1
  3. package/dist/frontend/assets/{ApiKeys-CZLwt7vX.js → ApiKeys-Bcrxjcfz.js} +2 -2
  4. package/dist/frontend/assets/{ArchitectureLiveGraph-ChA__Bls.js → ArchitectureLiveGraph-DFHtvAox.js} +1 -1
  5. package/dist/frontend/assets/{Audit-B2v8D4Ld.js → Audit-BJwdii8i.js} +1 -1
  6. package/dist/frontend/assets/{BackplaneLiveGraph-BY14rAkX.js → BackplaneLiveGraph-BMpvFXRW.js} +1 -1
  7. package/dist/frontend/assets/{Breadcrumbs-mVZzArSM.js → Breadcrumbs-YIw_WVM5.js} +1 -1
  8. package/dist/frontend/assets/{BrickStoreChip-DB-3rEzi.js → BrickStoreChip-CoCfESC2.js} +1 -1
  9. package/dist/frontend/assets/{Chat-D6GMup61.js → Chat-_ZDG8n7S.js} +1 -1
  10. package/dist/frontend/assets/{Chip-9Et-ufDp.js → Chip-DVZYQhdH.js} +1 -1
  11. package/dist/frontend/assets/{Cluster-C87gLErL.js → Cluster-ZlNV3WC0.js} +1 -1
  12. package/dist/frontend/assets/{Collapse-CoLJdgJp.js → Collapse-BZxw8zmw.js} +1 -1
  13. package/dist/frontend/assets/{ConfigPage-QzvdgY9J.js → ConfigPage-CuIKar0T.js} +1 -1
  14. package/dist/frontend/assets/{ConnectorCard-B25lhNU4.js → ConnectorCard-rSwtCZFu.js} +1 -1
  15. package/dist/frontend/assets/{Create-BviGHgQp.js → Create-B4_XnFjp.js} +2 -2
  16. package/dist/frontend/assets/{DashboardSupervision-D16USONk.js → DashboardSupervision-ogJPDjon.js} +1 -1
  17. package/dist/frontend/assets/{Database-edpP-je6.js → Database-CBJF2zmF.js} +1 -1
  18. package/dist/frontend/assets/{DbLogo-C3v6r7k1.js → DbLogo-odCHhQZM.js} +1 -1
  19. package/dist/frontend/assets/{Documentation-DkA0kLdH.js → Documentation-BPxNaAjQ.js} +1 -1
  20. package/dist/frontend/assets/{FanOutLiveGraph-CI8zxV4a.js → FanOutLiveGraph-C34ysvYA.js} +1 -1
  21. package/dist/frontend/assets/{Firewall-D-UgTJfY.js → Firewall-DR1gfzdX.js} +1 -1
  22. package/dist/frontend/assets/{IconAdjustments-BoDPGw0S.js → IconAdjustments-BoboURIj.js} +1 -1
  23. package/dist/frontend/assets/{IconAdjustmentsAlt-Bu_fgva6.js → IconAdjustmentsAlt-B7iftM9z.js} +1 -1
  24. package/dist/frontend/assets/{IconAdjustmentsHorizontal-E066rmzK.js → IconAdjustmentsHorizontal-7IiBbPem.js} +1 -1
  25. package/dist/frontend/assets/{IconAffiliate-CsEEb3NP.js → IconAffiliate-BDcNyaq_.js} +1 -1
  26. package/dist/frontend/assets/{IconApps-BhSlbyM3.js → IconApps-7aIl1P4i.js} +1 -1
  27. package/dist/frontend/assets/{IconArchive-DzkjATSz.js → IconArchive-B4MbH2D6.js} +1 -1
  28. package/dist/frontend/assets/{IconArrowDown-BiC6xOH-.js → IconArrowDown-5CK-FwRl.js} +1 -1
  29. package/dist/frontend/assets/{IconArrowLeft-DPOjD_iz.js → IconArrowLeft-CGbdeI78.js} +1 -1
  30. package/dist/frontend/assets/{IconArrowUp-DGi00i-1.js → IconArrowUp-OUaF7Sbz.js} +1 -1
  31. package/dist/frontend/assets/IconArrowsExchange-BaNV8SFD.js +1 -0
  32. package/dist/frontend/assets/{IconArrowsSplit2-BykPVQoG.js → IconArrowsSplit2-C6G8tQXY.js} +1 -1
  33. package/dist/frontend/assets/IconBan-sHfiqzWA.js +1 -0
  34. package/dist/frontend/assets/{IconBook-C6Ml8SK8.js → IconBook-NYou6bAm.js} +1 -1
  35. package/dist/frontend/assets/{IconCircleCheck-CIkhaWBx.js → IconCircleCheck-LdYSHGNV.js} +1 -1
  36. package/dist/frontend/assets/{IconCircleDot-CXf7n5vW.js → IconCircleDot-DDZDGUv7.js} +1 -1
  37. package/dist/frontend/assets/IconCircuitResistor-u8z8rLke.js +1 -0
  38. package/dist/frontend/assets/{IconCode-C08c8RDD.js → IconCode-8A2Vc3mV.js} +1 -1
  39. package/dist/frontend/assets/{IconDeviceDesktop-0r3JqufS.js → IconDeviceDesktop-DQMJAeIX.js} +1 -1
  40. package/dist/frontend/assets/{IconDots-BdhKbmmq.js → IconDots-DHONC_eR.js} +1 -1
  41. package/dist/frontend/assets/{IconDownload-BdyQkW63.js → IconDownload-CskHkiEP.js} +1 -1
  42. package/dist/frontend/assets/{IconEye-Cw79VHp1.js → IconEye-CmFgWb6A.js} +1 -1
  43. package/dist/frontend/assets/{IconFile-DPC5QY4Q.js → IconFile-DUvYig0W.js} +1 -1
  44. package/dist/frontend/assets/{IconFolder-Y-5Ucw-v.js → IconFolder-BeoB9Wy3.js} +1 -1
  45. package/dist/frontend/assets/{IconGitBranch-CXbhJt-8.js → IconGitBranch-k-8cnuLS.js} +1 -1
  46. package/dist/frontend/assets/{IconHeartRateMonitor-CaOpfmkz.js → IconHeartRateMonitor-D5gSRuQz.js} +1 -1
  47. package/dist/frontend/assets/{IconHelpCircle-Bg13awwX.js → IconHelpCircle-Cp-YIdsR.js} +1 -1
  48. package/dist/frontend/assets/{IconLayoutGrid-2M2elcMW.js → IconLayoutGrid-DiIAz7S1.js} +1 -1
  49. package/dist/frontend/assets/{IconNetwork-C0dSPJ2s.js → IconNetwork-DJdaK61I.js} +1 -1
  50. package/dist/frontend/assets/{IconPackages-DkYFe1f7.js → IconPackages-a59KQceL.js} +1 -1
  51. package/dist/frontend/assets/{IconPencil-DwwQhUYf.js → IconPencil-DvkftTgJ.js} +1 -1
  52. package/dist/frontend/assets/{IconPlayerPause-Do3_pA4Y.js → IconPlayerPause-C9Eve-DV.js} +1 -1
  53. package/dist/frontend/assets/IconPlayerPlay-Cl4K6MPS.js +1 -0
  54. package/dist/frontend/assets/IconPlus-D8uJUhjM.js +1 -0
  55. package/dist/frontend/assets/{IconPuzzle-CxT0a-6J.js → IconPuzzle-AO4L5bjR.js} +1 -1
  56. package/dist/frontend/assets/{IconRecycle-kecJFV9n.js → IconRecycle-WAqlmRWN.js} +1 -1
  57. package/dist/frontend/assets/{IconSend-vHD0khjU.js → IconSend-BPiCAzpg.js} +1 -1
  58. package/dist/frontend/assets/{IconServer2-C_rsj4J7.js → IconServer2-rVjD6-MC.js} +1 -1
  59. package/dist/frontend/assets/{IconShieldOff-CHticzdj.js → IconShieldOff-GF00f0aB.js} +1 -1
  60. package/dist/frontend/assets/{IconSitemap-BheWM1pd.js → IconSitemap-BnfvAqMK.js} +1 -1
  61. package/dist/frontend/assets/{IconStack2-DUtdVXJL.js → IconStack2-BRfnzl41.js} +1 -1
  62. package/dist/frontend/assets/{IconTerminal2-CX499Ljs.js → IconTerminal2-3V__c4-m.js} +1 -1
  63. package/dist/frontend/assets/{IconUserOff-CLtveOoS.js → IconUserOff-DFt0HHh9.js} +1 -1
  64. package/dist/frontend/assets/{IconWorld-YrHl65pi.js → IconWorld-C4h6SKIG.js} +1 -1
  65. package/dist/frontend/assets/{List-7FsJDv7_.js → List-ERCyqEPq.js} +1 -1
  66. package/dist/frontend/assets/{LogVisuals-BW_sZMTj.js → LogVisuals-BwL1Txqf.js} +1 -1
  67. package/dist/frontend/assets/{Logs-D7OsBMQZ.js → Logs-st_U3Pr2.js} +1 -1
  68. package/dist/frontend/assets/{Migrations-D4EuVTDM.js → Migrations-D4SSjDpM.js} +1 -1
  69. package/dist/frontend/assets/{ModuleDetail-oqxIYKtd.js → ModuleDetail-cImsLGSy.js} +1 -1
  70. package/dist/frontend/assets/{Modules-DR5peqtn.js → Modules-Bef_ZNzn.js} +1 -1
  71. package/dist/frontend/assets/{OrmEntity-DK03uMDz.js → OrmEntity-zs0NzVc9.js} +1 -1
  72. package/dist/frontend/assets/{OrmOverview-DUzez59V.js → OrmOverview-CPchV-_w.js} +1 -1
  73. package/dist/frontend/assets/{OrmWorker-DT1vU6Xr.js → OrmWorker-QEbxTZ7w.js} +1 -1
  74. package/dist/frontend/assets/{Playground-D-R7QeLX.js → Playground-DsosA7Yd.js} +1 -1
  75. package/dist/frontend/assets/{ProbesLiveGraph-CyXf-pvf.js → ProbesLiveGraph-CpZWxaAZ.js} +1 -1
  76. package/dist/frontend/assets/{Profile-B26TYhqE.js → Profile-NdEGmZYV.js} +1 -1
  77. package/dist/frontend/assets/{ProfileFields-U16YWoM8.js → ProfileFields-D6_5Er1B.js} +1 -1
  78. package/dist/frontend/assets/{Progress-DECXzWqk.js → Progress-BxSLYIgD.js} +1 -1
  79. package/dist/frontend/assets/{ProtocoleLiveGraph-BQsR7Gvv.js → ProtocoleLiveGraph-BwQBzE9W.js} +1 -1
  80. package/dist/frontend/assets/{RealtimeConsole-BQMlcvOv.js → RealtimeConsole-N11Uie_n.js} +1 -1
  81. package/dist/frontend/assets/{RingProgress-Dy11cixN.js → RingProgress-CdgTmA2j.js} +1 -1
  82. package/dist/frontend/assets/{Roadmap-D7AAXgb0.js → Roadmap-By6HzZwV.js} +1 -1
  83. package/dist/frontend/assets/{RoleSwitch-nb9Dlx7U.js → RoleSwitch-B83joCHG.js} +1 -1
  84. package/dist/frontend/assets/Roles-CMIEqZIJ.js +1 -0
  85. package/dist/frontend/assets/{RoutesView-Dy1fBHSn.js → RoutesView-D7345bN_.js} +1 -1
  86. package/dist/frontend/assets/{Runtime-me5H9Fxs.js → Runtime-C312wEbD.js} +1 -1
  87. package/dist/frontend/assets/{Sessions-Dk4wXLj6.js → Sessions-HOFd6af3.js} +1 -1
  88. package/dist/frontend/assets/{Skeleton-CYBIwDDn.js → Skeleton-coYonGf_.js} +1 -1
  89. package/dist/frontend/assets/{Slider-B2QA9ZID.js → Slider-Ds-U37rL.js} +1 -1
  90. package/dist/frontend/assets/{StoresView-DdI84onz.js → StoresView-FHdXwtpS.js} +1 -1
  91. package/dist/frontend/assets/{System-92SKBGVR.js → System-CbN-EOSC.js} +1 -1
  92. package/dist/frontend/assets/{TagsInput-DPXC53MJ.js → TagsInput-COivjma9.js} +1 -1
  93. package/dist/frontend/assets/{Textarea-cEYQX9Db.js → Textarea-9n-r0dhs.js} +1 -1
  94. package/dist/frontend/assets/{TraceView-DASWJb_C.js → TraceView-DNjPJJ7p.js} +1 -1
  95. package/dist/frontend/assets/{Twin-BK_D2Mug.js → Twin-BfFLhE0A.js} +1 -1
  96. package/dist/frontend/assets/{UserProfile-DBwF3Mlk.js → UserProfile-BBeksYzW.js} +1 -1
  97. package/dist/frontend/assets/Users-B4mV1aqm.js +1 -0
  98. package/dist/frontend/assets/{Webhooks-4X2UzujV.js → Webhooks-Cl8PKA4v.js} +1 -1
  99. package/dist/frontend/assets/{Workspace-CnvhY-as.js → Workspace-Drv35J6V.js} +1 -1
  100. package/dist/frontend/assets/{apiKeysModel-r3-menrC.js → apiKeysModel-Bg3XAZ1j.js} +1 -1
  101. package/dist/frontend/assets/{auditFormat-C2b2hjcG.js → auditFormat-n5lhA4OX.js} +1 -1
  102. package/dist/frontend/assets/{auditModel-DC7671n4.js → auditModel-H62868Ky.js} +1 -1
  103. package/dist/frontend/assets/{configModel-DM0WYlSJ.js → configModel-VUzK2g6s.js} +1 -1
  104. package/dist/frontend/assets/{eventFlow-CU5f80id.js → eventFlow-Cm0aJnfI.js} +1 -1
  105. package/dist/frontend/assets/{hooks-B_zjBfG6.js → hooks-DMHLQNUe.js} +1 -1
  106. package/dist/frontend/assets/index-BwkdF4pp.js +28 -0
  107. package/dist/frontend/assets/{profileVisuals-DBjyof0n.js → profileVisuals-CdDZ-G5o.js} +1 -1
  108. package/dist/frontend/assets/rolesModel-BqkpwhLp.js +1 -0
  109. package/dist/frontend/assets/stores-fG-e-IP-.js +1 -0
  110. package/dist/frontend/assets/{ui-Bs-M5MwD.js → ui-BlRFVRfl.js} +3 -3
  111. package/dist/frontend/assets/{useBlockSource-9aiHlHoa.js → useBlockSource-IO5xGNWM.js} +1 -1
  112. package/dist/frontend/assets/{useSocketLiveData-C90GBIec.js → useSocketLiveData-z0fKymfg.js} +1 -1
  113. package/dist/frontend/assets/{usersFormat-BPPdugDo.js → usersFormat-9M7K71Og.js} +1 -1
  114. package/dist/frontend/index.html +11 -11
  115. package/package.json +13 -13
  116. package/dist/frontend/assets/IconArrowsExchange-Cs_uex1f.js +0 -1
  117. package/dist/frontend/assets/IconBan-DnAx6TI8.js +0 -1
  118. package/dist/frontend/assets/IconCircuitResistor-DugMhC11.js +0 -1
  119. package/dist/frontend/assets/IconPlayerPlay-B9Ok1hGB.js +0 -1
  120. package/dist/frontend/assets/IconPlus-T9jAG1uZ.js +0 -1
  121. package/dist/frontend/assets/Roles-B_qeb4I0.js +0 -1
  122. package/dist/frontend/assets/Users-Dw5Do7eY.js +0 -1
  123. package/dist/frontend/assets/index-CIQdXaPf.js +0 -28
  124. package/dist/frontend/assets/stores-B2RcyMN6.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ArchitectureLiveGraph-ChA__Bls.js","assets/src-Dvwdl2PF.js","assets/IconCircuitResistor-DugMhC11.js","assets/IconDeviceDesktop-0r3JqufS.js","assets/IconStack2-DUtdVXJL.js","assets/index-CIQdXaPf.js","assets/Slider-B2QA9ZID.js","assets/Collapse-CoLJdgJp.js","assets/stores-B2RcyMN6.js","assets/hooks-B_zjBfG6.js","assets/preload-helper-DfDauRb0.js","assets/IconAdjustmentsAlt-Bu_fgva6.js","assets/IconAffiliate-CsEEb3NP.js","assets/IconNetwork-C0dSPJ2s.js","assets/IconArchive-DzkjATSz.js","assets/IconArrowsExchange-Cs_uex1f.js","assets/pageQuery-yJh2-jSv.js","assets/index-22LA2xX4.css","assets/useSocketLiveData-C90GBIec.js","assets/realtimeHealth-CEJDxl45.js","assets/ProtocoleLiveGraph-BQsR7Gvv.js","assets/IconArrowDown-BiC6xOH-.js","assets/FanOutLiveGraph-CI8zxV4a.js","assets/IconArrowsSplit2-BykPVQoG.js","assets/ActionsLiveGraph-BNMaitaA.js","assets/IconPlayerPlay-B9Ok1hGB.js","assets/BackplaneLiveGraph-BY14rAkX.js","assets/IconPuzzle-CxT0a-6J.js","assets/IconServer2-C_rsj4J7.js","assets/ProbesLiveGraph-CyXf-pvf.js","assets/mermaid.core-B83stVmA.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-CmaQbKwl.js","assets/dayjs.min-G0uPySEd.js","assets/chunk-O7XYJQB3-j8r_wK2Y.js","assets/chunk-ZIGJFQKS-D7Dw35HO.js","assets/dist-B9M-KAS4.js","assets/chunk-742MDFTN-BuWqUJ1x.js","assets/chunk-MBY4JIJT-DU8hh3vE.js","assets/chunk-DUW6YSOI-Dgx8z5s3.js","assets/chunk-7PRAP22T-CY3tH-_v.js","assets/chunk-7INBJB4K-BLEZ8obp.js","assets/chunk-J5ZVWO5B-oDCd-gWO.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-5DYCD2WN-C6fNpDCq.js","assets/chunk-Z7XXMR3K-B4DDNjo4.js","assets/line-BFnujzfH.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/chunk-UA2S7LBM-EhjtOSNT.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ArchitectureLiveGraph-DFHtvAox.js","assets/src-Dvwdl2PF.js","assets/IconCircuitResistor-u8z8rLke.js","assets/IconDeviceDesktop-DQMJAeIX.js","assets/IconStack2-BRfnzl41.js","assets/index-BwkdF4pp.js","assets/Slider-Ds-U37rL.js","assets/Collapse-BZxw8zmw.js","assets/stores-fG-e-IP-.js","assets/hooks-DMHLQNUe.js","assets/preload-helper-DfDauRb0.js","assets/IconAdjustmentsAlt-B7iftM9z.js","assets/IconAffiliate-BDcNyaq_.js","assets/IconNetwork-DJdaK61I.js","assets/IconArchive-B4MbH2D6.js","assets/IconArrowsExchange-BaNV8SFD.js","assets/pageQuery-yJh2-jSv.js","assets/index-22LA2xX4.css","assets/useSocketLiveData-z0fKymfg.js","assets/realtimeHealth-CEJDxl45.js","assets/ProtocoleLiveGraph-BwQBzE9W.js","assets/IconArrowDown-5CK-FwRl.js","assets/FanOutLiveGraph-C34ysvYA.js","assets/IconArrowsSplit2-C6G8tQXY.js","assets/ActionsLiveGraph-XrF4dBJH.js","assets/IconPlayerPlay-Cl4K6MPS.js","assets/BackplaneLiveGraph-BMpvFXRW.js","assets/IconPuzzle-AO4L5bjR.js","assets/IconServer2-rVjD6-MC.js","assets/ProbesLiveGraph-CpZWxaAZ.js","assets/mermaid.core-B83stVmA.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-CmaQbKwl.js","assets/dayjs.min-G0uPySEd.js","assets/chunk-O7XYJQB3-j8r_wK2Y.js","assets/chunk-ZIGJFQKS-D7Dw35HO.js","assets/dist-B9M-KAS4.js","assets/chunk-742MDFTN-BuWqUJ1x.js","assets/chunk-MBY4JIJT-DU8hh3vE.js","assets/chunk-DUW6YSOI-Dgx8z5s3.js","assets/chunk-7PRAP22T-CY3tH-_v.js","assets/chunk-7INBJB4K-BLEZ8obp.js","assets/chunk-J5ZVWO5B-oDCd-gWO.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-5DYCD2WN-C6fNpDCq.js","assets/chunk-Z7XXMR3K-B4DDNjo4.js","assets/line-BFnujzfH.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/chunk-UA2S7LBM-EhjtOSNT.js"])))=>i.map(i=>d[i]);
2
2
  import{C as e,D as t,E as n,O as r,S as i,T as a,_ as o,b as s,i as c,k as l,n as u,r as d,t as f,v as p,w as m,x as h,y as g}from"./src-Dvwdl2PF.js";import{t as _}from"./preload-helper-DfDauRb0.js";import{t as v}from"./value-CR1itMY9.js";var y=n((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var L=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 R(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,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ee(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 R(ee.bind(null,e))}var z={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=z,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=ee,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=R,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),b=n(((e,t)=>{t.exports=y()})),x=n((e=>{var t=b();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),S=n(((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=x()})),C=!1;function w(e,...t){throw Error(`[MobX] minified error nr: ${e}${t.length?` `+t.map(String).join(`,`):``}. See mobx.js.org/errors`)}var T=Object.assign,E=Object.getOwnPropertyDescriptor,D=Object.defineProperty,O=Object.prototype,k=[];Object.freeze(k);var A={};Object.freeze(A);var j=Object.toString(),M=()=>{};function N(e){return typeof e==`function`}function P(e){switch(typeof e){case`string`:case`symbol`:case`number`:return!0}return!1}function F(e){return typeof e==`object`&&!!e}function I(e){if(!F(e))return!1;let t=Object.getPrototypeOf(e);if(t==null)return!0;let n=oe(t,`constructor`)&&t.constructor;return typeof n==`function`&&n.toString()===j}function L(e){let t=e?.constructor;return t?t.name===`GeneratorFunction`||t.displayName===`GeneratorFunction`:!1}function R(e,t,n){D(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function ee(e,t,n){D(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function z(e,t){let n=`isMobX`+e;return t.prototype[n]=!0,function(e){return F(e)&&e[n]===!0}}function B(e){return e!=null&&Object.prototype.toString.call(e)===`[object Map]`}function te(e){let t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t);return Object.getPrototypeOf(n)===null}function ne(e){return e!=null&&Object.prototype.toString.call(e)===`[object Set]`}function re(e){let t=Object.keys(e),n=Object.getOwnPropertySymbols(e);return n.length?[...t,...n.filter(t=>O.propertyIsEnumerable.call(e,t))]:t}var ie=Reflect.ownKeys;function ae(e){return e===null?null:typeof e==`object`?``+e:e}function oe(e,t){return O.hasOwnProperty.call(e,t)}var se=Object.getOwnPropertyDescriptors;function ce(e,t){return!!(e&t)}function le(e,t,n){return n?e|=t:e&=~t,e}var V=Symbol(`mobx administration`),ue=class{constructor(e=`Atom`){this.name_=void 0,this.flags_=0,this.observers_=null,this.lastAccessedBy_=0,this.lowestObserverState_=-1,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}get isBeingObserved(){return ce(this.flags_,1)}set isBeingObserved(e){this.flags_=le(this.flags_,1,e)}get isPendingUnobservation(){return ce(this.flags_,2)}set isPendingUnobservation(e){this.flags_=le(this.flags_,2,e)}get diffValue(){return+!!ce(this.flags_,4)}set diffValue(e){this.flags_=le(this.flags_,4,e===1)}onBO(){this.onBOL&&this.onBOL.forEach(e=>e())}onBUO(){this.onBUOL&&this.onBUOL.forEach(e=>e())}reportObserved(){return Ht(this)}reportChanged(){zt(),Ut(this),Bt()}toString(){return this.name_}},de=z(`Atom`,ue);function fe(e,t=M,n=M){let r=new ue(e);return t!==M&&(r.onBOL=new Set([t])),n!==M&&(r.onBUOL=new Set([n])),r}var pe=Object.is;function me(e,t,n){return e===null||typeof e!=`object`&&typeof e!=`function`||An(e)?e:Array.isArray(e)?rt.array(e,{name:n}):I(e)?rt.object(e,void 0,{name:n}):B(e)?rt.map(e,{name:n}):ne(e)?rt.set(e,{name:n}):typeof e==`function`&&!fn(e)&&!On(e)?L(e)?Tn(e):ln(n,e):e}function he(e){return e}function ge(e,t){return{annotationType_:e,options_:t,make_:_e,extend_:ve}}function _e(e,t,n,r){var i;return(i=this.options_)!=null&&i.bound?this.extend_(e,t,n,!1)===null?0:1:r===e.target_?this.extend_(e,t,n,!1)===null?0:2:fn(n.value)?1:(D(r,t,xe(e,this,t,n,!1)),2)}function ve(e,t,n,r){let i=xe(e,this,t,n);return e.defineProperty_(t,i,r)}function ye(e,t,n){let{kind:r,name:i,addInitializer:a}=n,o=e,s=e=>ft(o.options_?.name??i.toString(),e,o.options_?.autoAction??!1);if(r==`field`)return function(e){var t;let n=e;return fn(n)||(n=s(n)),(t=o.options_)!=null&&t.bound&&(n=n.bind(this),n.isMobxAction=!0),n};if(r==`method`){var c;return fn(t)||(t=s(t)),(c=o.options_)!=null&&c.bound&&a(function(){let e=this,t=e[i].bind(e);t.isMobxAction=!0,e[i]=t}),t}w(43,o.annotationType_,String(i),r)}function be(e,{annotationType_:t},n,{value:r}){}function xe(e,t,n,r,i=H.safeDescriptors){var a,o;be(e,t,n,r);let{value:s}=r;return(a=t.options_)!=null&&a.bound&&(s=s.bind(e.proxy_??e.target_)),{value:ft(t.options_?.name??n.toString(),s,t.options_?.autoAction??!1,(o=t.options_)!=null&&o.bound?e.proxy_??e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function Se(e,t){return{annotationType_:e,options_:t,make_:Ce,extend_:we}}function Ce(e,t,n,r){var i;return r===e.target_?this.extend_(e,t,n,!1)===null?0:2:(i=this.options_)!=null&&i.bound&&(!oe(e.target_,t)||!On(e.target_[t]))&&this.extend_(e,t,n,!1)===null?0:On(n.value)?1:(D(r,t,De(e,this,t,n,!1,!1)),2)}function we(e,t,n,r){let i=De(e,this,t,n,this.options_?.bound);return e.defineProperty_(t,i,r)}function Te(e,t,n){var r;let{name:i,addInitializer:a}=n;return On(t)||(t=Tn(t)),(r=e.options_)!=null&&r.bound&&a(function(){let e=this,t=e[i].bind(e);t.isMobXFlow=!0,e[i]=t}),t}function Ee(e,{annotationType_:t},n,{value:r}){}function De(e,t,n,r,i,a=H.safeDescriptors){Ee(e,t,n,r);let{value:o}=r;return On(o)||(o=Tn(o)),i&&(o=o.bind(e.proxy_??e.target_),o.isMobXFlow=!0),{value:o,configurable:!a||e.isPlainObject_,enumerable:!1,writable:!a}}function Oe(e,t){return{annotationType_:e,options_:t,make_:ke,extend_:Ae}}function ke(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function Ae(e,t,n,r){return Me(e,this,t,n),e.defineComputedProperty_(t,T({},this.options_,{get:n.get,set:n.set}),r)}function je(e,t,n){let r=e,{name:i,addInitializer:a}=n,o;function s(e,n){let a=T({},r.options_,{get:t,context:e});return a.name||=`ObservableObject.${i.toString()}`,new bt(a)}return a(function(){let e=hr(this)[V],n=this,r=e.values_.get(i);r instanceof bt&&r.derivation!==t&&e.values_.delete(i),(e.lazyComputedKeys_??=new Map).set(i,()=>s(n,e))}),function(){let e=this[V],n=e.values_.get(i);if(n instanceof bt&&n.derivation!==t){let t=o?.get(this);return t||(t=s(this,e),(o??=new WeakMap).set(this,t)),t.get()}return e.getObservablePropValue_(i)}}function Me(e,{annotationType_:t},n,{get:r}){}function Ne(e,t){return{annotationType_:e,options_:t,make_:Pe,extend_:Fe}}function Pe(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function Fe(e,t,n,r){return Le(e,this,t,n),e.defineObservableProperty_(t,n.value,this.options_?.enhancer_??me,r)}function Ie(e,t,n){let r=e,{kind:i,name:a}=n;if(i!==`accessor`)return;function o(e,t){let n=hr(e)[V];return(n.lazyObservableKeys_??=new Map).set(a,()=>new yt(t,r.options_?.enhancer_??me,`ObservableObject.${a.toString()}`,!1)),n}return{get(){return(this[V]??o(this,t.get.call(this))).getObservablePropValue_(a)},set(e){return(this[V]??o(this,e)).setObservablePropValue_(a,e)},init(e){return o(this,e),e}}}function Le(e,{annotationType_:t},n,r){}var Re=`true`,ze=Be();function Be(e){return{annotationType_:Re,options_:e,make_:Ve,extend_:He}}function Ve(e,t,n,r){var i;if(n.get)return st.make_(e,t,n,r);if(n.set){let i=fn(n.set)?n.set:ft(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:!H.safeDescriptors||e.isPlainObject_,set:i})===null?0:2:(D(r,t,{configurable:!0,set:i}),2)}if(r!==e.target_&&typeof n.value==`function`){var a;if(L(n.value)){var o;return((o=this.options_)!=null&&o.autoBind?En:Tn).make_(e,t,n,r)}return((a=this.options_)!=null&&a.autoBind?un:ln).make_(e,t,n,r)}let s=this.options_?.deep===!1?nt:rt;return typeof n.value==`function`&&(i=this.options_)!=null&&i.autoBind&&(n.value=n.value.bind(e.proxy_??e.target_)),s.make_(e,t,n,r)}function He(e,t,n,r){var i;return n.get?st.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!H.safeDescriptors||e.isPlainObject_,set:ft(t.toString(),n.set)},r):(typeof n.value==`function`&&(i=this.options_)!=null&&i.autoBind&&(n.value=n.value.bind(e.proxy_??e.target_)),(this.options_?.deep===!1?nt:rt).extend_(e,t,n,r))}function Ue(e,t){return T(function(n,r){if(r&&typeof r.kind==`string`)return t(e,n,r)},e)}var We=`observable`,Ge=`observable.ref`,Ke={deep:!0,name:void 0,defaultDecorator:void 0};Object.freeze(Ke);function qe(e){return e||Ke}var Je=Ne(We),Ye=Ne(Ge,{enhancer_:he});function Xe(e){return Ue(e,Ie)}function Ze(e){return e.deep===!0?me:e.deep===!1?he:$e(e.defaultDecorator)}function Qe(e){return e?e.defaultDecorator??Be(e):void 0}function $e(e){return e?e.options_?.enhancer_??me:me}function et(e,t,n){return t&&typeof t.kind==`string`?Ie(Je,e,t):An(e)?e:I(e)?rt.object(e,t,n):Array.isArray(e)?rt.array(e,t):B(e)?rt.map(e,t):ne(e)?rt.set(e,t):typeof e==`object`&&e?e:rt.box(e,t)}var tt={box(e,t){let n=qe(t);return new yt(e,Ze(n),n.name,!0,n.equals)},array(e,t){let n=qe(t);return qn(e,Ze(n),n.name)},map(e,t){let n=qe(t);return new ir(e,Ze(n),n.name)},set(e,t){let n=qe(t);return new lr(e,Ze(n),n.name)},object(e,t,n){return Sr(()=>_n(Pn({},n),e,t))}},nt=Xe(Ye),rt=T(et,Je,tt),it=`computed`;function at(e){return Ue(e,je)}var ot=Oe(it),st=function(e,t){if(t&&typeof t.kind==`string`)return je(ot,e,t);if(I(e))return at(Oe(it,e));let n=I(t)?t:{};return n.get=e,n.name||=e.name||``,new bt(n)};T(st,ot);var ct=0,lt=1,ut=E(()=>{},`name`)?.configurable??!1,dt={value:`action`,configurable:!0,writable:!1,enumerable:!1};function ft(e,t,n=!1,r){function i(){return pt(e,n,t,r||this,arguments)}return i.isMobxAction=!0,i.toString=()=>t.toString(),ut&&(dt.value=e,D(i,`name`,dt)),i}function pt(e,t,n,r,i){let a=mt(e,t,r,i);try{return n.apply(r,i)}catch(e){throw a.error_=e,e}finally{ht(a)}}function mt(e,t,n,r){let i=C,a=H.trackingDerivation,o=!t||!a;zt();let s=H.allowStateChanges;o&&kt();let c={runAsAction_:o,prevDerivation_:a,prevAllowStateChanges_:s,prevAllowStateReads_:H.allowStateReads,notifySpy_:i,startTime_:0,actionId_:lt++,parentActionId_:ct};return ct=c.actionId_,c}function ht(e){ct!==e.actionId_&&w(30),ct=e.parentActionId_,e.error_!==void 0&&(H.suppressReactionErrors=!0),Bt(),e.runAsAction_&&At(e.prevDerivation_),H.suppressReactionErrors=!1}function gt(e,t){let n=_t(e);try{return t()}finally{vt(n)}}function _t(e){let t=H.allowStateChanges;return H.allowStateChanges=e,t}function vt(e){H.allowStateChanges=e}var yt=class extends ue{constructor(e,t,n=`ObservableValue`,r=!0,i=pe){super(n),this.enhancer_=void 0,this.name_=void 0,this.equals_=void 0,this.hasUnreportedChange_=!1,this.interceptors_=void 0,this.changeListeners_=void 0,this.value_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,this.equals_=i,this.value_=t(e,void 0,n)}dehanceValue(e){return this.dehancer===void 0?e:this.dehancer(e)}set(e){this.value_,e=this.prepareNewValue_(e),e!==H.UNCHANGED&&this.setNewValue_(e)}prepareNewValue_(e){if(Fn(this)){let t=In(this,{object:this,type:Un,newValue:e});if(!t)return H.UNCHANGED;e=t.newValue}return e=this.enhancer_(e,this.value_,this.name_),this.equals_(this.value_,e)?H.UNCHANGED:e}setNewValue_(e){let t=this.value_;this.value_=e,this.reportChanged(),Ln(this)&&Rn(this,{type:Un,object:this,newValue:e,oldValue:t})}get(){return this.reportObserved(),this.dehanceValue(this.value_)}raw(){return this.value_}toJSON(){return this.get()}toString(){return`${this.name_}[${this.value_}]`}valueOf(){return ae(this.get())}[Symbol.toPrimitive](){return this.valueOf()}},bt=class{constructor(e){this.dependenciesState_=-1,this.observing_=[],this.newObserving_=null,this.observers_=null,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=0,this.unboundDepsCount_=0,this.value_=new St(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||w(31),this.derivation=e.get,this.name_=e.name||`ComputedValue`,e.set&&(this.setter_=ft(`ComputedValue-setter`,e.set)),this.equals_=e.equals||pe,this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}onBecomeStale_(){Gt(this)}onBO(){this.onBOL&&this.onBOL.forEach(e=>e())}onBUO(){this.onBUOL&&this.onBUOL.forEach(e=>e())}get isComputing(){return ce(this.flags_,1)}set isComputing(e){this.flags_=le(this.flags_,1,e)}get isRunningSetter(){return ce(this.flags_,2)}set isRunningSetter(e){this.flags_=le(this.flags_,2,e)}get isBeingObserved(){return ce(this.flags_,4)}set isBeingObserved(e){this.flags_=le(this.flags_,4,e)}get isPendingUnobservation(){return ce(this.flags_,8)}set isPendingUnobservation(e){this.flags_=le(this.flags_,8,e)}get diffValue(){return+!!ce(this.flags_,16)}set diffValue(e){this.flags_=le(this.flags_,16,e===1)}get(){if(this.isComputing&&w(32,this.name_,this.derivation),H.inBatch===0&&(!this.observers_||this.observers_.size===0)&&!this.keepAlive_)wt(this)&&(this.warnAboutUntrackedRead_(),zt(),this.value_=this.computeValue_(!1),Bt());else{let e=this.isBeingObserved;if(Ht(this),wt(this)){let e=H.trackingContext;this.keepAlive_&&!e&&(H.trackingContext=this),this.trackAndCompute()&&Wt(this),H.trackingContext=e}else!e&&this.isBeingObserved&&this.observing_.forEach(Vt)}let e=this.value_;if(Ct(e))throw e.cause;return e}set(e){if(this.setter_){this.isRunningSetter&&w(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else w(34,this.name_)}trackAndCompute(){let e=this.value_,t=this.dependenciesState_===-1,n=this.computeValue_(!0),r=t||Ct(e)||Ct(n)||!this.equals_(e,n);return r&&(this.value_=n),r}computeValue_(e){this.isComputing=!0;let t;if(e)t=Tt(this,this.derivation,this.scope_);else if(H.disableErrorBoundaries===!0)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new St(e)}return this.isComputing=!1,t}suspend_(){this.keepAlive_||(Dt(this),this.value_=void 0)}warnAboutUntrackedRead_(){}toString(){return`${this.name_}[${this.derivation.toString()}]`}valueOf(){return ae(this.get())}[Symbol.toPrimitive](){return this.valueOf()}},xt=z(`ComputedValue`,bt),St=class{constructor(e){this.cause=void 0,this.cause=e}};function Ct(e){return e instanceof St}function wt(e){switch(e.dependenciesState_){case 0:return!1;case-1:case 2:return!0;case 1:{let t=kt(),n=e.observing_,r=n.length;for(let i=0;i<r;i++){let r=n[i];if(xt(r)){if(H.disableErrorBoundaries)r.get();else try{r.get()}catch{return At(t),!0}if(e.dependenciesState_===2)return At(t),!0}}return jt(e),At(t),!1}}}function Tt(e,t,n){jt(e),e.newObserving_=Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++H.runId;let r=H.trackingDerivation;H.trackingDerivation=e,H.inBatch++;let i;if(H.disableErrorBoundaries===!0)i=t.call(n);else try{i=t.call(n)}catch(e){i=new St(e)}return H.inBatch--,H.trackingDerivation=r,Et(e),i}function Et(e){let t=e.observing_,n=e.observing_=e.newObserving_,r=0,i=0,a=e.unboundDepsCount_;for(let e=0;e<a;e++){let t=n[e];t.diffValue===0&&(t.diffValue=1,i!==e&&(n[i]=t),i++),t.dependenciesState_>r&&(r=t.dependenciesState_)}for(n.length=i,e.newObserving_=null,a=t.length;a--;){let n=t[a];n.diffValue===0&&Lt(n,e),n.diffValue=0}for(;i--;){let t=n[i];t.diffValue===1&&(t.diffValue=0,It(t,e))}r!==0&&(e.dependenciesState_=r,e.onBecomeStale_())}function Dt(e){let t=e.observing_;e.observing_=[];let n=t.length;for(;n--;)Lt(t[n],e);e.dependenciesState_=-1}function Ot(e){let t=kt();try{return e()}finally{At(t)}}function kt(){let e=H.trackingDerivation;return H.trackingDerivation=null,e}function At(e){H.trackingDerivation=e}function jt(e){if(e.dependenciesState_===0)return;e.dependenciesState_=0;let t=e.observing_,n=t.length;for(;n--;)t[n].lowestObserverState_=0}var Mt=7,Nt=class{constructor(){this.version=Mt,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.isRunningUnobservations=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.safeDescriptors=!0}},Pt=!0,H=function(){let e=globalThis;return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Pt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==Mt&&(Pt=!1),Pt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Nt):(setTimeout(()=>{w(35)},1),new Nt)}();function Ft(){return H}function It(e,t){(e.observers_??=new Set).add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Lt(e,t){let n=e.observers_;n&&(n.delete(t),n.size===0&&Rt(e))}function Rt(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,H.pendingUnobservations.push(e))}function zt(){H.inBatch++}function Bt(){if(--H.inBatch===0&&(Yt(),!H.isRunningUnobservations)){H.isRunningUnobservations=!0;try{let e=H.pendingUnobservations;for(let t=0;t<e.length;t++){let n=e[t];n.isPendingUnobservation=!1,(!n.observers_||n.observers_.size===0)&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof bt&&n.suspend_())}H.pendingUnobservations=[]}finally{H.isRunningUnobservations=!1}}}function Vt(e){var t;e.isBeingObserved||(e.isBeingObserved=!0,e.onBO(),(t=e.observing_)==null||t.forEach(Vt))}function Ht(e){let t=H.trackingDerivation;return t===null?((!e.observers_||e.observers_.size===0)&&H.inBatch>0&&Rt(e),!1):(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&H.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved)}function Ut(e){var t;e.lowestObserverState_!==2&&(e.lowestObserverState_=2,(t=e.observers_)==null||t.forEach(e=>{e.dependenciesState_===0&&e.onBecomeStale_(),e.dependenciesState_=2}))}function Wt(e){var t;e.lowestObserverState_!==2&&(e.lowestObserverState_=2,(t=e.observers_)==null||t.forEach(t=>{t.dependenciesState_===1?t.dependenciesState_=2:t.dependenciesState_===0&&(e.lowestObserverState_=0)}))}function Gt(e){var t;e.lowestObserverState_===0&&(e.lowestObserverState_=1,(t=e.observers_)==null||t.forEach(e=>{e.dependenciesState_===0&&(e.dependenciesState_=1,e.onBecomeStale_())}))}var Kt=class{constructor(e=`Reaction`,t,n,r){this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=-1,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}get isDisposed(){return ce(this.flags_,1)}set isDisposed(e){this.flags_=le(this.flags_,1,e)}get isScheduled(){return ce(this.flags_,2)}set isScheduled(e){this.flags_=le(this.flags_,2,e)}get isTrackPending(){return ce(this.flags_,4)}set isTrackPending(e){this.flags_=le(this.flags_,4,e)}get isRunning(){return ce(this.flags_,8)}set isRunning(e){this.flags_=le(this.flags_,8,e)}get diffValue(){return+!!ce(this.flags_,16)}set diffValue(e){this.flags_=le(this.flags_,16,e===1)}onBecomeStale_(){this.schedule_()}schedule_(){this.isScheduled||(this.isScheduled=!0,H.pendingReactions.push(this),Yt())}runReaction_(){if(!this.isDisposed){zt(),this.isScheduled=!1;let e=H.trackingContext;if(H.trackingContext=this,wt(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}H.trackingContext=e,Bt()}}track(e){if(this.isDisposed)return;zt(),this.isRunning=!0;let t=H.trackingContext;H.trackingContext=this;let n=Tt(this,e,void 0);H.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Dt(this),Ct(n)&&this.reportExceptionInDerivation_(n.cause),Bt()}reportExceptionInDerivation_(e){if(this.errorHandler_){this.errorHandler_(e,this);return}if(H.disableErrorBoundaries)throw e;let t=`[mobx] uncaught error in '${this}'`;H.suppressReactionErrors||console.error(t,e),H.globalReactionErrorHandlers.forEach(t=>t(e,this))}dispose(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(zt(),Dt(this),Bt()))}getDisposer_(e){let t=()=>{this.dispose(),e==null||e.removeEventListener==null||e.removeEventListener(`abort`,t)};return e==null||e.addEventListener==null||e.addEventListener(`abort`,t),t[V]=this,`dispose`in Symbol&&typeof Symbol.dispose==`symbol`&&(t[Symbol.dispose]=t),t}toString(){return`Reaction[${this.name_}]`}},qt=100,Jt=e=>e();function Yt(){H.inBatch>0||H.isRunningReactions||Jt(Xt)}function Xt(){H.isRunningReactions=!0;let e=H.pendingReactions,t=0;for(;e.length>0;){++t===qt&&(console.error(`[mobx] cycle in reaction: ${e[0]}`),e.splice(0));let n=e.splice(0);for(let e=0,t=n.length;e<t;e++)n[e].runReaction_()}H.isRunningReactions=!1}var Zt=z(`Reaction`,Kt),Qt=`action`,$t=`autoAction`,en=`autoAction.bound`,tn=`<unnamed action>`,nn=ge(Qt),rn=ge($t,{autoAction:!0}),an=ge(en,{autoAction:!0,bound:!0});function on(e){return Ue(e,ye)}function sn(e){return function(t,n){if(n&&typeof n.kind==`string`)return ye(e?rn:nn,t,n);if(N(t))return ft(t.name||tn,t,e);if(N(n))return ft(t,n,e);if(P(t))return on(ge(e?$t:Qt,{name:t,autoAction:e}))}}var cn=sn(!1);T(cn,nn);var ln=sn(!0);T(ln,rn);var un=on(an);function dn(e){return pt(e.name||tn,!1,e,this,void 0)}function fn(e){return N(e)&&e.isMobxAction===!0}var pn=e=>e();function mn(e){return e.scheduler?e.scheduler:e.delay?t=>setTimeout(t,e.delay):pn}function hn(e,t,n=A){var r;let i=n.name??`Reaction`,a=cn(i,n.onError?gn(n.onError,t):t),o=!n.scheduler&&!n.delay,s=mn(n),c=!0,l=!1,u,d=n.equals||pe,f=new Kt(i,()=>{c||o?p():l||(l=!0,s(p))},n.onError,n.requiresObservable);function p(){if(l=!1,f.isDisposed)return;let t=!1,r=u;f.track(()=>{let n=gt(!1,()=>e(f));t=c||!d(u,n),u=n}),(c&&n.fireImmediately||!c&&t)&&a(u,r,f),c=!1}return n!=null&&(r=n.signal)!=null&&r.aborted||f.schedule_(),f.getDisposer_(n?.signal)}function gn(e,t){return function(){try{return t.apply(this,arguments)}catch(t){e.call(this,t)}}}function _n(e,t,n,r){let i=se(t);return Sr(()=>{let t=hr(e,r)[V];ie(i).forEach(e=>{t.extend_(e,i[e],n&&e in n?n[e]:!0)})}),e}function vn(e,t){return yn(yr(e,t))}function yn(e){let t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=bn(e.observing_).map(yn)),t}function bn(e){return Array.from(new Set(e))}var xn=class extends Error{constructor(){super(`FLOW_CANCELLED`),Object.setPrototypeOf(this,new.target.prototype),this.name=`FlowCancellationError`}toString(){return`Error: ${this.message}`}};function Sn(e){return Ue(e,Te)}var Cn=Se(`flow`),wn=Se(`flow.bound`,{bound:!0}),Tn=T(function(e,t){if(t&&typeof t.kind==`string`)return Te(Cn,e,t);let n=e,r=n.name||`flow`,i=function(){let e=this,t=arguments,i=cn(r,n).apply(e,t),a,o,s=new Promise(function(e,t){a=t;function n(e){o=void 0;let n;try{n=cn(r,i.next).call(i,e)}catch(e){return t(e)}c(n)}function s(e){o=void 0;let n;try{n=cn(r,i.throw).call(i,e)}catch(e){return t(e)}c(n)}function c(r){if(N(r?.then)){r.then(c,t);return}return r.done?e(r.value):(o=Promise.resolve(r.value),o.then(n,s))}n(void 0)});return s.cancel=cn(r,function(){try{o&&Dn(o);let e=i.return(void 0),t=Promise.resolve(e.value);t.then(M,M),Dn(t),a(new xn)}catch(e){a(e)}}),s};return i.isMobXFlow=!0,i},Cn),En=Sn(wn);function Dn(e){N(e.cancel)&&e.cancel()}function On(e){return e?.isMobXFlow===!0}function kn(e,t){if(!e)return!1;if(t!==void 0){if(vr(e)){var n,r;let i=e[V];return i.values_.has(t)||!!((n=i.lazyComputedKeys_)!=null&&n.has(t))||!!((r=i.lazyObservableKeys_)!=null&&r.has(t))}return!1}return vr(e)||!!e[V]||de(e)||Zt(e)||xt(e)}function An(e){return kn(e)}function jn(e,t=void 0){zt();try{return e.apply(t)}finally{Bt()}}function Mn(e){return e[V]}var Nn={has(e,t){return Mn(e).has_(t)},get(e,t){return Mn(e).get_(t)},set(e,t,n){return P(t)?Mn(e).set_(t,n,!0)??!0:!1},deleteProperty(e,t){return P(t)?Mn(e).delete_(t,!0)??!0:!1},defineProperty(e,t,n){return Mn(e).defineProperty_(t,n)??!0},ownKeys(e){return Mn(e).ownKeys_()},preventExtensions(e){w(13)}};function Pn(e,t){var n;return e=hr(e,t),(n=e[V]).proxy_??(n.proxy_=new Proxy(e,Nn))}function Fn(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function In(e,t){let n=kt();try{let n=[...e.interceptors_||[]];for(let e=0,r=n.length;e<r&&(t=n[e](t),t&&!t.type&&w(14),t);e++);return t}finally{At(n)}}function Ln(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Rn(e,t){let n=kt(),r=e.changeListeners_;if(r){r=r.slice();for(let e=0,n=r.length;e<n;e++)r[e](t);At(n)}}var zn=Symbol(`mobx-keys`);function Bn(e,t,n){return I(e)?_n(e,e,t,n):(Sr(()=>{let r=hr(e,n)[V];if(!e[zn]){let t=Object.getPrototypeOf(e),n=new Set([...ie(e),...ie(t)]);n.delete(`constructor`),n.delete(V),R(t,zn,n)}e[zn].forEach(e=>Vn(r,e,t&&e in t?t[e]:!0))}),e)}function Vn(e,t,n){if(n===!0&&(n=e.defaultAnnotation_),n===!1)return;t in e.target_||w(1,n.annotationType_,`${e.name_}.${t.toString()}`);let r=e.target_;for(;r&&r!==O;){let i=E(r,t);if(i){let a=n.make_(e,t,i,r);if(a===0)return;if(a===1)break}r=Object.getPrototypeOf(r)}}var Hn=`splice`,Un=`update`,Wn=1e4,Gn={get(e,t){let n=e[V];return t===V?n:t===`length`?n.getArrayLength_():typeof t==`string`&&!isNaN(t)?n.get_(parseInt(t)):oe(Jn,t)?Jn[t]:e[t]},set(e,t,n){let r=e[V];return t===`length`&&r.setArrayLength_(n),typeof t==`symbol`||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions(){w(15)}},Kn=class{constructor(e=`ObservableArray`,t,n){this.owned_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.atom_=new ue(e),this.enhancer_=(e,n)=>t(e,n,`ObservableArray[..]`)}dehanceValue_(e){return this.dehancer===void 0?e:this.dehancer(e)}dehanceValues_(e){return this.dehancer!==void 0&&e.length>0?e.map(this.dehancer):e}getArrayLength_(){return this.atom_.reportObserved(),this.values_.length}setArrayLength_(e){(typeof e!=`number`||isNaN(e)||e<0)&&w(40,e);let t=this.values_.length;if(e!==t){if(e>t){let n=Array.from({length:e-t});this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)}}updateArrayLength_(e,t){e!==this.lastKnownLength_&&w(16),this.lastKnownLength_+=t}spliceWithArray_(e,t,n){this.atom_;let r=this.values_.length;if(e===void 0?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),t=arguments.length===1?r-e:t==null?0:Math.max(0,Math.min(t,r-e)),n===void 0&&(n=k),Fn(this)){let r=In(this,{object:this.proxy_,type:Hn,index:e,removedCount:t,added:n});if(!r)return k;t=r.removedCount,n=r.added}n=n.length===0?n:n.map(e=>this.enhancer_(e,void 0));let i=this.spliceItemsIntoValues_(e,t,n);return(t!==0||n.length!==0)&&this.notifyArraySplice_(e,n,i),this.dehanceValues_(i)}spliceItemsIntoValues_(e,t,n){if(n.length<Wn)return this.values_.splice(e,t,...n);{let r=this.values_.slice(e,e+t),i=this.values_.slice(e+t);this.values_.length+=n.length-t;for(let t=0;t<n.length;t++)this.values_[e+t]=n[t];for(let t=0;t<i.length;t++)this.values_[e+n.length+t]=i[t];return r}}notifyArrayChildUpdate_(e,t,n){let r=C,i=Ln(this),a=i||r?{observableKind:`array`,object:this.proxy_,type:Un,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&Rn(this,a)}notifyArraySplice_(e,t,n){let r=C,i=Ln(this),a=i||r?{observableKind:`array`,object:this.proxy_,debugObjectName:this.atom_.name_,type:Hn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&Rn(this,a)}get_(e){return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e])}set_(e,t){let n=this.values_;if(e<n.length){this.atom_;let r=n[e];if(Fn(this)){let n=In(this,{type:Un,object:this.proxy_,index:e,newValue:t});if(!n)return;t=n.newValue}t=this.enhancer_(t,r),t!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}else{let r=Array.from({length:e+1-n.length});r[r.length-1]=t,this.spliceWithArray_(n.length,0,r)}}};function qn(e,t,n=`ObservableArray`,r=!1){return Sr(()=>{let i=new Kn(n,t,r);ee(i.values_,V,i);let a=new Proxy(i.values_,Gn);return i.proxy_=a,e&&e.length&&i.spliceWithArray_(0,0,e),a})}var Jn={clear(){return this.splice(0)},replace(e){let t=this[V];return t.spliceWithArray_(0,t.values_.length,e)},toJSON(){return this.slice()},splice(e,t,...n){let r=this[V];switch(arguments.length){case 0:return[];case 1:return r.spliceWithArray_(e);case 2:return r.spliceWithArray_(e,t)}return r.spliceWithArray_(e,t,n)},spliceWithArray(e,t,n){return this[V].spliceWithArray_(e,t,n)},push(...e){let t=this[V];return t.spliceWithArray_(t.values_.length,0,e),t.values_.length},pop(){return this.splice(Math.max(this[V].values_.length-1,0),1)[0]},shift(){return this.splice(0,1)[0]},unshift(...e){let t=this[V];return t.spliceWithArray_(0,0,e),t.values_.length},reverse(){return H.trackingDerivation&&w(37,`reverse`),this.replace(this.slice().reverse()),this},sort(){H.trackingDerivation&&w(37,`sort`);let e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove(e){let t=this[V],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};Yn(`at`,Xn),Yn(`concat`,Xn),Yn(`flat`,Xn),Yn(`includes`,Xn),Yn(`indexOf`,Xn),Yn(`join`,Xn),Yn(`lastIndexOf`,Xn),Yn(`slice`,Xn),Yn(`toString`,Xn),Yn(`toLocaleString`,Xn),Yn(`toSorted`,Xn),Yn(`toSpliced`,Xn),Yn(`with`,Xn),Yn(`every`,Zn),Yn(`filter`,Zn),Yn(`find`,Zn),Yn(`findIndex`,Zn),Yn(`findLast`,Zn),Yn(`findLastIndex`,Zn),Yn(`flatMap`,Zn),Yn(`forEach`,Zn),Yn(`map`,Zn),Yn(`some`,Zn),Yn(`toReversed`,Zn),Yn(`reduce`,Qn),Yn(`reduceRight`,Qn);function Yn(e,t){typeof Array.prototype[e]==`function`&&(Jn[e]=t(e))}function Xn(e){return function(){let t=this[V];t.atom_.reportObserved();let n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Zn(e){return function(t,n){let r=this[V];return r.atom_.reportObserved(),r.dehanceValues_(r.values_)[e]((e,r)=>t.call(n,e,r,this))}}function Qn(e){return function(){let t=this[V];t.atom_.reportObserved();let n=t.dehanceValues_(t.values_),r=arguments[0];return arguments[0]=(e,t,n)=>r(e,t,n,this),n[e].apply(n,arguments)}}var $n=z(`ObservableArrayAdministration`,Kn);function er(e){return F(e)&&$n(e[V])}var tr={},nr=`add`,rr=`delete`,ir=class{constructor(e,t=me,n=`ObservableMap`){this.enhancer_=void 0,this.name_=void 0,this[V]=tr,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,Sr(()=>{this.keysAtom_=fe(`ObservableMap.keys()`),this.data_=new Map,this.hasMap_=new Map,e&&this.merge(e)})}has_(e){return this.data_.has(e)}has(e){if(!H.trackingDerivation)return this.has_(e);let t=this.hasMap_.get(e);if(!t){let n=t=new yt(this.has_(e),he,`ObservableMap.key?`,!1);this.hasMap_.set(e,n),n.onBUOL=new Set([()=>this.hasMap_.delete(e)])}return t.get()}set(e,t){let n=this.has_(e);if(Fn(this)){let r=In(this,{type:n?Un:nr,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this}delete(e){if(this.keysAtom_,Fn(this)&&!In(this,{type:rr,object:this,name:e}))return!1;if(this.has_(e)){let t=C,n=Ln(this),r=n||t?{observableKind:`map`,debugObjectName:this.name_,type:rr,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return jn(()=>{var t;this.keysAtom_.reportChanged(),(t=this.hasMap_.get(e))==null||t.setNewValue_(!1),this.data_.get(e).setNewValue_(void 0),this.data_.delete(e)}),n&&Rn(this,r),!0}return!1}updateValue_(e,t){let n=this.data_.get(e);if(t=n.prepareNewValue_(t),t!==H.UNCHANGED){let r=C,i=Ln(this),a=i||r?{observableKind:`map`,debugObjectName:this.name_,type:Un,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&Rn(this,a)}}addValue_(e,t){this.keysAtom_,jn(()=>{var n;let r=new yt(t,this.enhancer_,`ObservableMap.key`,!1);this.data_.set(e,r),t=r.value_,(n=this.hasMap_.get(e))==null||n.setNewValue_(!0),this.keysAtom_.reportChanged()});let n=C,r=Ln(this),i=r||n?{observableKind:`map`,debugObjectName:this.name_,type:nr,object:this,name:e,newValue:t}:null;r&&Rn(this,i)}get(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)}getOrInsert(e,t){return this.has(e)||this.set(e,t),this.get(e)}getOrInsertComputed(e,t){return this.has(e)||this.set(e,t(e)),this.get(e)}dehanceValue_(e){return this.dehancer===void 0?e:this.dehancer(e)}keys(){return this.keysAtom_.reportObserved(),this.data_.keys()}values(){let e=this,t=this.keys();return or({next(){let{done:n,value:r}=t.next();return{done:n,value:n?void 0:e.get(r)}}})}entries(){let e=this,t=this.keys();return or({next(){let{done:n,value:r}=t.next();return{done:n,value:n?void 0:[r,e.get(r)]}}})}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,r,n,this)}merge(e){return ar(e)&&(e=new Map(e)),jn(()=>{I(e)?re(e).forEach(t=>this.set(t,e[t])):Array.isArray(e)?e.forEach(([e,t])=>this.set(e,t)):B(e)?(te(e)||w(19,e),e.forEach((e,t)=>this.set(t,e))):e!=null&&w(20,e)}),this}clear(){jn(()=>{Ot(()=>{for(let e of this.keys())this.delete(e)})})}replace(e){return jn(()=>{let t=sr(e),n=new Map,r=!1;for(let e of this.data_.keys())if(!t.has(e)){if(this.delete(e))r=!0;else{let t=this.data_.get(e);n.set(e,t)}}for(let[e,i]of t.entries()){let t=this.data_.has(e);if(this.set(e,i),this.data_.has(e)){let i=this.data_.get(e);n.set(e,i),t||(r=!0)}}if(!r){if(this.data_.size!==n.size)this.keysAtom_.reportChanged();else{let e=this.data_.keys(),t=n.keys(),r=e.next(),i=t.next();for(;!r.done;){if(r.value!==i.value){this.keysAtom_.reportChanged();break}r=e.next(),i=t.next()}}}this.data_=n}),this}get size(){return this.keysAtom_.reportObserved(),this.data_.size}toString(){return`[object ObservableMap]`}toJSON(){return Array.from(this)}get[Symbol.toStringTag](){return`Map`}},ar=z(`ObservableMap`,ir);function or(e){return e[Symbol.toStringTag]=`MapIterator`,wr(e)}function sr(e){if(B(e)||ar(e))return e;if(Array.isArray(e))return new Map(e);if(I(e)){let t=new Map;for(let n in e)t.set(n,e[n]);return t}return w(21,e)}var cr={},lr=class{constructor(e,t=me,n=`ObservableSet`){this.name_=void 0,this[V]=cr,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,this.enhancer_=(e,r)=>t(e,r,n),Sr(()=>{this.atom_=fe(this.name_),e&&this.replace(e)})}dehanceValue_(e){return this.dehancer===void 0?e:this.dehancer(e)}clear(){jn(()=>{Ot(()=>{for(let e of this.data_.values())this.delete(e)})})}forEach(e,t){for(let n of this)e.call(t,n,n,this)}get size(){return this.atom_.reportObserved(),this.data_.size}add(e){if(this.atom_,Fn(this)){let t=In(this,{type:nr,object:this,newValue:e});if(!t)return this;e=t.newValue}if(!this.has(e)){jn(()=>{this.data_.add(this.enhancer_(e,void 0)),this.atom_.reportChanged()});let t=C,n=Ln(this),r=n||t?{observableKind:`set`,debugObjectName:this.name_,type:nr,object:this,newValue:e}:null;n&&Rn(this,r)}return this}delete(e){if(Fn(this)&&!In(this,{type:rr,object:this,oldValue:e}))return!1;if(this.has(e)){let t=C,n=Ln(this),r=n||t?{observableKind:`set`,debugObjectName:this.name_,type:rr,object:this,oldValue:e}:null;return jn(()=>{this.atom_.reportChanged(),this.data_.delete(e)}),n&&Rn(this,r),!0}return!1}has(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))}entries(){let e=this.values();return dr({next(){let{value:t,done:n}=e.next();return n?{value:void 0,done:n}:{value:[t,t],done:n}}})}keys(){return this.values()}values(){this.atom_.reportObserved();let e=this,t=this.data_.values();return dr({next(){let{value:n,done:r}=t.next();return r?{value:void 0,done:r}:{value:e.dehanceValue_(n),done:r}}})}intersection(e){return new Set(this).intersection(e)}union(e){return new Set(this).union(e)}difference(e){return new Set(this).difference(e)}symmetricDifference(e){return new Set(this).symmetricDifference(e)}isSubsetOf(e){return new Set(this).isSubsetOf(e)}isSupersetOf(e){return new Set(this).isSupersetOf(e)}isDisjointFrom(e){return new Set(this).isDisjointFrom(e)}replace(e){return ur(e)&&(e=new Set(e)),Array.isArray(e)||ne(e)?jn(()=>{let t=ne(e)?e:new Set(e);if(t.size===0){this.clear();return}if(this.data_.size===0){t.forEach(e=>this.add(e));return}for(let e of this.data_.values())t.has(this.dehanceValue_(e))||this.delete(e);t.forEach(e=>this.add(e))}):e!=null&&w(41,e),this}toJSON(){return Array.from(this)}toString(){return`[object ObservableSet]`}[Symbol.iterator](){return this.values()}get[Symbol.toStringTag](){return`Set`}},ur=z(`ObservableSet`,lr);function dr(e){return e[Symbol.toStringTag]=`SetIterator`,wr(e)}var fr=Object.create(null),pr=`remove`,mr=class{constructor(e,t=new Map,n,r=ze){this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.lazyComputedKeys_=void 0,this.lazyObservableKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new ue(`ObservableObject.keys`),this.isPlainObject_=I(this.target_)}getObservablePropValue_(e){return(this.values_.get(e)??this.materializeLazyComputed_(e)??this.materializeLazyObservable_(e)).get()}materializeLazyComputed_(e){let t=this.lazyComputedKeys_?.get(e);if(!t)return;this.lazyComputedKeys_.delete(e),this.lazyComputedKeys_.size===0&&(this.lazyComputedKeys_=void 0);let n=t();return this.values_.set(e,n),n}materializeLazyObservable_(e){let t=this.lazyObservableKeys_?.get(e);if(!t)return;this.lazyObservableKeys_.delete(e),this.lazyObservableKeys_.size===0&&(this.lazyObservableKeys_=void 0);let n=t();return this.values_.set(e,n),n}setObservablePropValue_(e,t){let n=this.values_.get(e)??this.materializeLazyComputed_(e)??this.materializeLazyObservable_(e);if(n instanceof bt)return n.set(t),!0;if(Fn(this)){let n=In(this,{type:Un,object:this.proxy_||this.target_,name:e,newValue:t});if(!n)return null;t=n.newValue}if(t=n.prepareNewValue_(t),t!==H.UNCHANGED){let r=Ln(this),i=r?{type:Un,observableKind:`object`,debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&Rn(this,i)}return!0}get_(e){return H.trackingDerivation&&!oe(this.target_,e)&&this.has_(e),this.target_[e]}set_(e,t,n=!1){return oe(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)}has_(e){if(!H.trackingDerivation)return e in this.target_;this.pendingKeys_||=new Map;let t=this.pendingKeys_.get(e);return t||(t=new yt(e in this.target_,he,`ObservableObject.key?`,!1),this.pendingKeys_.set(e,t)),t.get()}extend_(e,t,n,r=!1){return n===!0&&(n=this.defaultAnnotation_),n===!1?this.defineProperty_(e,t,r):n.extend_(this,e,t,r)}defineProperty_(e,t,n=!1){this.keysAtom_;try{zt();let r=this.delete_(e);if(!r)return r;if(Fn(this)){let n=In(this,{object:this.proxy_||this.target_,name:e,type:nr,newValue:t.value});if(!n)return null;let{newValue:r}=n;t.value!==r&&(t=T({},t,{value:r}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else D(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{Bt()}return!0}defineObservableProperty_(e,t,n,r=!1){this.keysAtom_;try{zt();let i=this.delete_(e);if(!i)return i;if(Fn(this)){let n=In(this,{object:this.proxy_||this.target_,name:e,type:nr,newValue:t});if(!n)return null;t=n.newValue}let a=_r(e),o={configurable:!H.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,o))return!1}else D(this.target_,e,o);let s=new yt(t,n,`ObservableObject.key`,!1);this.values_.set(e,s),this.notifyPropertyAddition_(e,s.value_)}finally{Bt()}return!0}defineComputedProperty_(e,t,n=!1){this.keysAtom_;try{zt();let r=this.delete_(e);if(!r)return r;if(Fn(this)&&!In(this,{object:this.proxy_||this.target_,name:e,type:nr,newValue:void 0}))return null;t.name||=`ObservableObject.key`,t.context=this.proxy_||this.target_;let i=_r(e),a={configurable:!H.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,a))return!1}else D(this.target_,e,a);this.values_.set(e,new bt(t)),this.notifyPropertyAddition_(e,void 0)}finally{Bt()}return!0}delete_(e,t=!1){if(this.keysAtom_,!oe(this.target_,e))return!0;if(Fn(this)&&!In(this,{object:this.proxy_||this.target_,name:e,type:pr}))return null;try{var n;zt();let r=Ln(this),i=C,a=this.values_.get(e),o;if(!a&&(r||i)&&(o=E(this.target_,e)?.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(a&&(this.values_.delete(e),a instanceof yt&&(o=a.value_),Ut(a)),this.keysAtom_.reportChanged(),(n=this.pendingKeys_)==null||(n=n.get(e))==null||n.set(e in this.target_),r||i){let t={type:pr,observableKind:`object`,object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:o,name:e};r&&Rn(this,t)}}finally{Bt()}return!0}notifyPropertyAddition_(e,t){var n;let r=Ln(this),i=C;if(r||i){let n=r||i?{type:nr,observableKind:`object`,debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&Rn(this,n)}(n=this.pendingKeys_)==null||(n=n.get(e))==null||n.set(!0),this.keysAtom_.reportChanged()}ownKeys_(){return this.keysAtom_.reportObserved(),ie(this.target_)}keys_(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)}};function hr(e,t){if(oe(e,V))return e;let n=t?.name??`ObservableObject`;return R(e,V,new mr(e,new Map,String(n),Qe(t))),e}var gr=z(`ObservableObjectAdministration`,mr);function _r(e){return fr[e]||(fr[e]={get(){return this[V].getObservablePropValue_(e)},set(t){return this[V].setObservablePropValue_(e,t)}})}function vr(e){return F(e)?gr(e[V]):!1}function yr(e,t){if(typeof e==`object`&&e){if(er(e))return t!==void 0&&w(23),e[V].atom_;if(ur(e))return e.atom_;if(ar(e)){if(t===void 0)return e.keysAtom_;let n=e.data_.get(t)||e.hasMap_.get(t);return n||w(25,t,xr(e)),n}if(vr(e)){if(!t)return w(26);let n=e[V],r=n.values_.get(t)??n.materializeLazyComputed_(t)??n.materializeLazyObservable_(t);return r||w(27,t,xr(e)),r}if(de(e)||xt(e)||Zt(e))return e}else if(N(e)&&Zt(e[V]))return e[V];w(28)}function br(e,t){if(e||w(29),t!==void 0)return br(yr(e,t));if(de(e)||xt(e)||Zt(e)||ar(e)||ur(e))return e;if(e[V])return e[V];w(24,e)}function xr(e,t){let n;if(t!==void 0)n=yr(e,t);else if(fn(e))return e.name;else n=vr(e)||ar(e)||ur(e)?br(e):yr(e);return n.name_}function Sr(e){let t=kt();zt();try{return e()}finally{Bt(),At(t)}}O.toString;var Cr=globalThis.Iterator?.prototype||{};function wr(e){return e[Symbol.iterator]=Tr,T(Object.create(Cr),e)}function Tr(){return this}var U=l(b(),1);function Er(e){return Object.keys(e)}function Dr(e){return e&&typeof e==`object`&&!Array.isArray(e)}function Or(e,t){let n={...e},r=t;return Dr(e)&&Dr(t)&&Object.keys(t).forEach(t=>{Dr(r[t])&&t in e?n[t]=Or(n[t],r[t]):n[t]=r[t]}),n}function kr(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var Ar=l(S(),1);function jr(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function Mr(e){let t=jr(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function Nr(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function Pr(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?Nr(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?Nr(n):n}}return r}return n}var W=Pr(`rem`,{shouldScale:!0}),Fr=Pr(`em`);function Ir(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function Lr(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}function Rr(e){return Array.isArray(e)||e===null?!1:typeof e==`object`&&e.type!==U.Fragment}function zr(e){let t=(0,U.createContext)(null);return[t,()=>{let n=(0,U.use)(t);if(n===null)throw Error(e);return n}]}function Br(e,t){return n=>{if(typeof n!=`string`||n.trim().length===0)throw Error(t);return`${e}-${n}`}}function Vr(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function Hr(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].disabled)return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].disabled)return e}return e}function Ur(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].disabled)return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].disabled)return e}return e}function Wr(e,t,n){return Vr(e,n)===Vr(t,n)}function Gr({parentSelector:e,siblingSelector:t,onKeyDown:n,loop:r=!0,activateOnFocus:i=!1,dir:a=`rtl`,orientation:o}){return s=>{n?.(s);let c=Array.from(Vr(s.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>Wr(s.currentTarget,t,e)),l=c.findIndex(e=>s.currentTarget===e),u=Ur(l,c,r),d=Hr(l,c,r),f=a===`rtl`?d:u,p=a===`rtl`?u:d;switch(s.key){case`ArrowRight`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),i&&c[f].click());break;case`ArrowLeft`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),i&&c[p].click());break;case`ArrowUp`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[d].focus(),i&&c[d].click());break;case`ArrowDown`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[u].focus(),i&&c[u].click());break;case`Home`:s.stopPropagation(),s.preventDefault(),c[Ur(-1,c,!1)]?.focus();break;case`End`:s.stopPropagation(),s.preventDefault(),c[Hr(c.length,c,!1)]?.focus()}}}var Kr={app:100,modal:200,popover:300,overlay:400,max:9999};function qr(e){return Kr[e]}var Jr=()=>{};function Yr(e,t={active:!0}){return typeof e!=`function`||!t.active?t.onKeyDown||Jr:n=>{n.key===`Escape`&&(e(n),t.onTrigger?.())}}function Xr(e,t=`size`,n=!0){if(e!==void 0)return Lr(e)?n?W(e):e:`var(--${t}-${e})`}function Zr(e){return Xr(e,`mantine-spacing`)}function Qr(e){return e===void 0?`var(--mantine-radius-default)`:Xr(e,`mantine-radius`)}function $r(e){return Xr(e,`mantine-font-size`)}function ei(e){return Xr(e,`mantine-line-height`,!1)}function ti(e){if(e)return Xr(e,`mantine-shadow`,!1)}function ni(e,t){return n=>{e?.(n),t?.(n)}}function ri(e,t){return e in t?Mr(t[e]):Mr(e)}function ii(e,t){let n=e.map(e=>({value:e,px:ri(e,t)}));return n.sort((e,t)=>e.px-t.px),n}function ai(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function oi(e,t,n){return n?Array.from(Vr(n,t)?.querySelectorAll(e)||[]).findIndex(e=>e===n):null}function si(e,t,n){return t===void 0&&n===void 0?e:t!==void 0&&n===void 0?Math.max(e,t):Math.min(t===void 0&&n!==void 0?e:Math.max(e,t),n)}function ci(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function li(e,t){if(e===t||Number.isNaN(e)&&Number.isNaN(t))return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=Object.keys(e),{length:r}=n;if(r!==Object.keys(t).length)return!1;for(let i=0;i<r;i+=1){let r=n[i];if(!(r in t)||e[r]!==t[r]&&!(Number.isNaN(e[r])&&Number.isNaN(t[r])))return!1}return!0}function ui(e){let t=(0,U.useRef)(e);return(0,U.useEffect)(()=>{t.current=e}),(0,U.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function di(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,o=ui(e),s=(0,U.useRef)(0),c=(0,U.useRef)(0),l=(0,U.useRef)(null),u=(0,U.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(s.current),l.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function u(){window.clearTimeout(s.current),window.clearTimeout(c.current),s.current=0,c.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(s.current!==0){let e=l.current;u(),o(...e)}},a))}if(i&&r){o(...t),e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}e._hasPendingCallback=!0;let f=()=>{s.current!==0&&(u(),o(...t))};e.flush=f,e.cancel=()=>{u()},s.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[o,n,i,a]);return(0,U.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}var fi=[`mousedown`,`touchstart`];function pi(e,t,n,r=!0){let i=(0,U.useRef)(null),a=t||fi,o=(0,U.useEffectEvent)(t=>{let{target:r}=t??{};if(!document.body.contains(r)&&r?.tagName!==`HTML`)return;let a=t.composedPath();Array.isArray(n)?n.every(e=>!!e&&!a.includes(e))&&e(t):i.current&&!a.includes(i.current)&&e(t)}),s=a.join(`,`);return(0,U.useEffect)(()=>{if(!r)return;let e=s.split(`,`);return e.forEach(e=>document.addEventListener(e,o)),()=>{e.forEach(e=>document.removeEventListener(e,o))}},[s,r]),i}function mi(e={}){let t=e.timeout??2e3,[n,r]=(0,U.useState)(null),[i,a]=(0,U.useState)(!1),o=(0,U.useRef)(null);(0,U.useEffect)(()=>()=>{window.clearTimeout(o.current)},[]);let s=e=>{window.clearTimeout(o.current),o.current=window.setTimeout(()=>a(!1),t),a(e)};return{copy:e=>{`clipboard`in navigator?navigator.clipboard.writeText(e).then(()=>{r(null),s(!0)}).catch(e=>r(e)):r(Error(`useClipboard: navigator.clipboard is not supported`))},reset:()=>{a(!1),r(null),window.clearTimeout(o.current)},error:n,copied:i}}function hi(e,t){return typeof t==`boolean`?t:typeof window<`u`&&`matchMedia`in window&&window.matchMedia(e).matches}function gi(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,U.useState)(n?t:hi(e));return(0,U.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}function _i(e,t){return gi(`(prefers-color-scheme: dark)`,e===`dark`,t)?`dark`:`light`}function vi(e,t,n={leading:!1}){let[r,i]=(0,U.useState)(e),a=(0,U.useRef)(!1),o=(0,U.useRef)(null),s=(0,U.useRef)(!1),c=(0,U.useRef)(e);c.current=e;let l=(0,U.useCallback)(()=>{window.clearTimeout(o.current),o.current=null},[]),u=(0,U.useCallback)(()=>{l(),s.current=!1},[]),d=(0,U.useCallback)(()=>{o.current&&(u(),s.current=!1,i(c.current))},[]);return(0,U.useEffect)(()=>{a.current&&(l(),!s.current&&n.leading?(s.current=!0,i(e),o.current=window.setTimeout(()=>{s.current=!1},t)):o.current=window.setTimeout(()=>{s.current=!1,i(e)},t))},[e,n.leading,t]),(0,U.useEffect)(()=>(a.current=!0,u),[]),[r,u,{cancel:u,flush:d}]}var yi=typeof document<`u`?U.useLayoutEffect:U.useEffect;function bi(e,t){return e.length!==t.length||t.some((t,n)=>!Object.is(t,e[n]))}function xi(e,t){let n=(0,U.useRef)(!1),r=(0,U.useRef)(null),i=(0,U.useRef)(void 0),a={};(0,U.useEffect)(()=>{let o=r.current===a,s=i.current;if(r.current=a,i.current=t,!n.current){n.current=!0;return}if(!o&&!(t&&s&&!bi(s,t)))return e()},t)}function Si({opened:e,shouldReturnFocus:t=!0}){let n=(0,U.useRef)(null),r=()=>{n.current&&`focus`in n.current&&typeof n.current.focus==`function`&&n.current?.focus({preventScroll:!0})};return xi(()=>{let i=-1,a=e=>{e.key===`Tab`&&window.clearTimeout(i)};if(document.addEventListener(`keydown`,a),e)n.current=document.activeElement;else if(t){let e=document.activeElement;i=window.setTimeout(()=>{let t=document.activeElement;(t===null||t===document.body||t===e)&&r()},10)}return()=>{window.clearTimeout(i),document.removeEventListener(`keydown`,a)}},[e,t]),r}var Ci=/input|select|textarea|button|object/,wi=`a, input, select, textarea, button, object, [tabindex]`;function Ti(e){return e.style.display===`none`}function Ei(e){if(e.getAttribute(`aria-hidden`)||e.getAttribute(`hidden`)||e.getAttribute(`type`)===`hidden`)return!1;let t=e;for(;t&&t!==document.body&&t.nodeType!==11;){if(Ti(t))return!1;t=t.parentNode}return!0}function Di(e){let t=e.getAttribute(`tabindex`);return t===null&&(t=void 0),parseInt(t,10)}function Oi(e){let t=e.nodeName.toLowerCase(),n=!Number.isNaN(Di(e));return(Ci.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&Ei(e)}function ki(e){let t=Di(e);return(Number.isNaN(t)||t>=0)&&Oi(e)}function Ai(e){return Array.from(e.querySelectorAll(wi)).filter(ki)}function ji(e,t){let n=Ai(e);if(!n.length){t.preventDefault();return}let r=n[t.shiftKey?0:n.length-1],i=e.getRootNode(),a=r===i.activeElement||e===i.activeElement,o=i.activeElement;if(o.tagName===`INPUT`&&o.getAttribute(`type`)===`radio`&&(a=n.filter(e=>e.getAttribute(`type`)===`radio`&&e.getAttribute(`name`)===o.getAttribute(`name`)).includes(r)),!a)return;t.preventDefault();let s=n[t.shiftKey?n.length-1:0];s&&s.focus()}function Mi(e=!0){let t=(0,U.useRef)(null),n=e=>{let t=e.querySelector(`[data-autofocus]`);if(!t){let n=Array.from(e.querySelectorAll(wi));t=n.find(ki)||n.find(Oi)||null,!t&&Oi(e)&&(t=e)}t?t.focus({preventScroll:!0}):console.warn(`[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node`,e)},r=(0,U.useCallback)(r=>{if(e){if(r===null){t.current=null;return}t.current!==r&&(setTimeout(()=>{r.getRootNode()?n(r):console.warn(`[@mantine/hooks/use-focus-trap] Ref node is not part of the dom`,r)}),t.current=r)}},[e]);return(0,U.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>{t.current&&n(t.current)});let r=e=>{e.key===`Tab`&&t.current&&ji(t.current,e)};return document.addEventListener(`keydown`,r),()=>document.removeEventListener(`keydown`,r)},[e]),r}var Ni=e=>(e+1)%1e6;function Pi(){let[,e]=(0,U.useReducer)(Ni,0);return e}function Fi(e){let t=(0,U.useId)(),[n,r]=(0,U.useState)(`mantine-${t.replace(/:/g,``)}`),i=(0,U.useRef)(!1);return yi(()=>{i.current||(i.current=!0,r(ci()))},[]),typeof e==`string`?e:n}function Ii(e,t,n){let r=(0,U.useEffectEvent)(t);(0,U.useEffect)(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e])}function Li(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function Ri(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=Li(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():Li(e,null)}),t.clear()}}}function zi(...e){return(0,U.useCallback)(Ri(...e),e)}function Bi({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,U.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function Vi(e,t){let n=t-e+1;return Array.from({length:n},(t,n)=>n+e)}var Hi=`dots`;function Ui({total:e,siblings:t=1,boundaries:n=1,page:r,initialPage:i,onChange:a,startValue:o=1}){let s=Math.max(Math.trunc(o),1),c=Math.max(Math.trunc(e),s),l=c-s+1,u=i??s,[d,f]=Bi({value:r,onChange:a,defaultValue:u,finalValue:u}),p=(0,U.useCallback)(e=>{f(e<s?s:e>c?c:e)},[s,c,f]),m=(0,U.useCallback)(()=>p(d+1),[d,p]),h=(0,U.useCallback)(()=>p(d-1),[d,p]),g=(0,U.useCallback)(()=>p(s),[p,s]),_=(0,U.useCallback)(()=>p(c),[c,p]);return{range:(0,U.useMemo)(()=>{if(t*2+3+n*2>=l)return Vi(s,c);let e=Math.max(d-t,s+n-1),r=Math.min(d+t,c-n),i=e>s+n+1,a=r<c-n;if(!i&&a){let e=t*2+n+2;return[...Vi(s,s+e-1),Hi,...Vi(c-(n-1),c)]}if(i&&!a){let e=n+1+2*t;return[...Vi(s,s+n-1),Hi,...Vi(c-e,c)]}return[...Vi(s,s+n-1),Hi,...Vi(e,r),Hi,...Vi(c-n+1,c)]},[l,t,d,s,c,n]),active:d,setPage:p,next:m,previous:h,first:g,last:_}}function Wi(e,t){return gi(`(prefers-reduced-motion: reduce)`,e,t)}function Gi(e,t){if(!e||!t)return!1;if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(!li(e[n],t[n]))return!1;return!0}function Ki(e){let t=(0,U.useRef)([]),n=(0,U.useRef)(0);return Gi(t.current,e)||(t.current=e,n.current+=1),[n.current]}function qi(e,t){(0,U.useEffect)(e,Ki(t))}function Ji(e,t,n={autoInvoke:!1}){let r=(0,U.useRef)(null),i=ui(e),a=(0,U.useCallback)((...e)=>{r.current||=window.setTimeout(()=>{i(...e),r.current=null},t)},[t]),o=(0,U.useCallback)(()=>{r.current&&=(window.clearTimeout(r.current),null)},[]);return(0,U.useEffect)(()=>(n.autoInvoke&&a(),o),[o,a]),{start:a,clear:o}}function Yi(e){let t=(0,U.useRef)(void 0);return(0,U.useEffect)(()=>{t.current=e},[e]),t.current}function Xi(e,t,n){let r=(0,U.useRef)(null);(0,U.useEffect)(()=>{r.current&&=(r.current.disconnect(),null);let i=typeof n==`function`?n():n;return i&&(r.current=new MutationObserver(e),r.current.observe(i,t)),()=>{r.current&&=(r.current.disconnect(),null)}},[e,t,n])}function Zi(){let[e,t]=(0,U.useState)(!1);return(0,U.useEffect)(()=>t(!0),[]),e}var Qi=[`mouse`,`touch`],$i=10;function ea(e,t={}){let{threshold:n=400,events:r=Qi,cancelOnMove:i=!1,onStart:a,onFinish:o,onCancel:s}=t,c=(0,U.useRef)(!1),l=(0,U.useRef)(!1),u=(0,U.useRef)(-1),d=(0,U.useRef)(null);(0,U.useEffect)(()=>()=>window.clearTimeout(u.current),[]);let f=r.join(`,`);return(0,U.useMemo)(()=>{if(typeof e!=`function`)return{};let t=i!==!1,f=i===!0?$i:i===!1?0:i,p=t=>{(ra(t)||na(t))&&(a&&a(t),d.current=ta(t),l.current=!0,u.current=window.setTimeout(()=>{e(t),c.current=!0},n))},m=e=>{(ra(e)||na(e))&&(c.current?o&&o(e):l.current&&s&&s(e),c.current=!1,l.current=!1,d.current=null,u.current!==-1&&(window.clearTimeout(u.current),u.current=-1))},h=e=>{if(!t||!l.current||c.current)return;let n=ta(e);if(!n||!d.current)return;let r=n.x-d.current.x,i=n.y-d.current.y;Math.sqrt(r*r+i*i)>f&&m(e)},g={};return r.includes(`mouse`)&&(g.onMouseDown=p,g.onMouseUp=m,g.onMouseLeave=m,t&&(g.onMouseMove=h)),r.includes(`touch`)&&(g.onTouchStart=p,g.onTouchEnd=m,g.onTouchCancel=m,t&&(g.onTouchMove=h)),g},[e,n,s,o,a,i,f])}function ta(e){if(na(e)){let t=e.touches[0]??e.changedTouches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function na(e){return window.TouchEvent?e.nativeEvent instanceof TouchEvent:`touches`in e.nativeEvent}function ra(e){return e.nativeEvent instanceof MouseEvent}function ia(){return`development`}function aa(e){return e?.props?.ref}function oa(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`}function sa(e,t=document){let n=t.querySelector(e);if(n)return n;let r=t.querySelectorAll(`*`);for(let t=0;t<r.length;t+=1){let n=r[t];if(n.shadowRoot){let t=sa(e,n.shadowRoot);if(t)return t}}return null}function ca(e,t=document){let n=[],r=t.querySelectorAll(e);n.push(...Array.from(r));let i=t.querySelectorAll(`*`);for(let t=0;t<i.length;t+=1){let r=i[t];if(r.shadowRoot){let t=ca(e,r.shadowRoot);n.push(...t)}}return n}function la(e){if(!e)return document;let t=e.getRootNode();return t instanceof ShadowRoot||t instanceof Document?t:document}function ua(e){let t=U.Children.toArray(e);return t.length!==1||!Rr(t[0])?null:t[0]}function da(e){return e}function fa(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=fa(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function pa(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=fa(e))&&(r&&(r+=` `),r+=t);return r}var ma={};function ha(e){let t={};return e.forEach(e=>{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=pa(t[e],n):t[e]=n})}),t}function ga({theme:e,classNames:t,props:n,stylesCtx:r}){return ha((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||ma))}function _a({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function va(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function ya(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function ba(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function xa(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function Sa(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function Ca(e){return ya(e)?ba(e):e.startsWith(`rgb`)?xa(e):e.startsWith(`hsl`)?Sa(e):{r:0,g:0,b:0,a:1}}function wa(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Ta(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function Ea(e){if(e.startsWith(`oklch(`))return(Ta(e)||0)/100;let{r:t,g:n,b:r}=Ca(e),i=t/255,a=n/255,o=r/255,s=wa(i),c=wa(a),l=wa(o);return .2126*s+.7152*c+.0722*l}function Da(e,t=.179){return!e.startsWith(`var(`)&&Ea(e)>t}function Oa({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Da(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Da(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Da(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][va(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:Da(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:Da(e,t.luminanceThreshold),shade:a,variable:void 0}}function ka(e,t){let n=Oa({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function Aa(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function ja(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=Ca(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function Ma(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=ka(n.from,t),i=ka(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function Na(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=Ca(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var Pa=Na,Fa=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=Oa({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&Aa(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${W(1)} solid transparent`}:{background:e,hover:ja(e,.1),color:r,border:`${W(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:ja(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${W(1)} solid transparent`}}return{background:Na(e,.1),hover:Na(e,.12),color:e,border:`${W(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${W(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:Na(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:Na(e,.05),color:e,border:`${W(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:Na(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}}return{background:`transparent`,hover:Na(e,.12),color:e,border:`${W(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${W(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:ja(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:ja(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:ja(t.white,.01),color:e,border:`${W(1)} solid transparent`}:n===`gradient`?{background:Ma(r,t),hover:Ma(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${W(1)} solid var(--mantine-color-default-border)`}:{}};function Ia({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&Oa({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function La(e,t,n){return Ia({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function Ra(e,t){let n=e.colors[e.primaryColor];return Aa(n)?e.autoContrast?La(n,e,t):`var(--mantine-color-white)`:Ia({color:n[va(e,t)],theme:e,autoContrast:null})}function za(e,t){return typeof e==`boolean`?e:t.autoContrast}var Ba=(0,U.createContext)(null);function Va(){let e=(0,U.use)(Ba);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function Ha(){return Va().cssVariablesResolver}function Ua(){return Va().classNamesPrefix}function Wa(){return Va().getStyleNonce}function Ga(){return Va().withStaticClasses}function Ka(){return Va().headless}function qa(){return Va().stylesTransform?.sx}function Ja(){return Va().stylesTransform?.styles}function Ya(){return Va().env||`default`}function Xa(){return Va().deduplicateInlineStyles}function Za(e){let t=document.createElement(`style`);return t.setAttribute(`data-mantine-styles`,`inline`),t.innerHTML=`*, *::before, *::after {transition: none !important;}`,t.setAttribute(`data-mantine-disable-transition`,`true`),e&&t.setAttribute(`nonce`,e),document.head.appendChild(t),()=>document.querySelectorAll(`[data-mantine-disable-transition]`).forEach(e=>e.remove())}function Qa({keepTransitions:e}={}){let t=(0,U.useRef)(Jr),n=(0,U.useRef)(-1),r=(0,U.use)(Ba),i=Wa(),a=(0,U.useRef)(i?.());if(!r)throw Error(`[@mantine/core] MantineProvider was not found in tree`);let o=i=>{r.setColorScheme(i),t.current=e?()=>{}:Za(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},s=()=>{r.clearColorScheme(),t.current=e?()=>{}:Za(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},c=_i(`light`,{getInitialValueInEffect:!1}),l=r.colorScheme===`auto`?c:r.colorScheme,u=(0,U.useCallback)(()=>o(l===`light`?`dark`:`light`),[o,l]);return(0,U.useEffect)(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:o,clearColorScheme:s,toggleColorScheme:u}}var $a=n((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})),eo=n(((e,t)=>{t.exports=$a()})),to={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},no=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,ro={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:to,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:Fa,autoContrast:!1,luminanceThreshold:.3,fontFamily:no,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:no,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:W(34),lineHeight:`1.3`},h2:{fontSize:W(26),lineHeight:`1.35`},h3:{fontSize:W(22),lineHeight:`1.4`},h4:{fontSize:W(18),lineHeight:`1.45`},h5:{fontSize:W(16),lineHeight:`1.5`},h6:{fontSize:W(14),lineHeight:`1.5`}}},fontSizes:{xs:W(12),sm:W(14),md:W(16),lg:W(18),xl:W(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:W(2),sm:W(4),md:W(8),lg:W(16),xl:W(32)},spacing:{xs:W(10),sm:W(12),md:W(16),lg:W(20),xl:W(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), 0 ${W(1)} ${W(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(10)} ${W(15)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(7)} ${W(7)} ${W(-5)}`,md:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(20)} ${W(25)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(10)} ${W(10)} ${W(-5)}`,lg:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(28)} ${W(23)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(12)} ${W(12)} ${W(-7)}`,xl:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(36)} ${W(28)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(17)} ${W(17)} ${W(-7)}`},other:{},components:{}},io=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,ao=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function oo(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function so(e){if(!(e.primaryColor in e.colors))throw Error(io);if(typeof e.primaryShade==`object`&&(!oo(e.primaryShade.dark)||!oo(e.primaryShade.light))||typeof e.primaryShade==`number`&&!oo(e.primaryShade))throw Error(ao)}function co(e,t){if(!t)return so(e),e;let n=Or(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),so(n),n}var G=eo(),lo=(0,U.createContext)(null),uo=()=>(0,U.use)(lo)||ro;function fo(){let e=(0,U.use)(lo);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function po({theme:e,children:t,inherit:n=!0}){let r=uo(),i=(0,U.useMemo)(()=>co(n?r:ro,e),[e,r,n]);return(0,G.jsx)(lo,{value:i,children:t})}po.displayName=`@mantine/core/MantineThemeProvider`;function K(e,t,n){let r=fo(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){let t=r.components[e]?.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,...Ir(n)}}function mo({classNames:e,styles:t,props:n,stylesCtx:r}){let i=fo();return{resolvedClassNames:e===void 0?void 0:ga({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:_a({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var ho={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function go({theme:e,options:t,unstyled:n}){return pa(t?.focusable&&!n&&(e.focusClassName||ho[e.focusRing]),t?.active&&!n&&e.activeClassName)}function _o({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return ga({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function vo({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return ga({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function yo({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function bo({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function xo({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function So({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function Co({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return pa(go({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),So({options:t,classes:s,selector:r,unstyled:c||m}),a[r],vo({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),_o({selector:r,stylesCtx:f,options:t,props:d,theme:e}),yo({rootSelector:u,selector:r,className:l}),bo({selector:r,classes:s,unstyled:c||m}),p&&!m&&xo({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function wo({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...wo({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function To({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&_a({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...wo({style:n?.style,theme:e})}}function Eo(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...Ir(t[n])}}),e),{})}function Do({props:e,stylesCtx:t,themeName:n,theme:r}){let i=Ja()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function q({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f}){let p=fo(),m=Ua(),h=Ga(),g=Ka(),_=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:v,getTransformedStyles:y}=Do({props:n,stylesCtx:r,themeName:_,theme:p}),b=ga({theme:p,classNames:c,props:n,stylesCtx:r}),x=_.map(e=>ga({theme:p,classNames:p.components[e]?.classNames,props:n,stylesCtx:r})),S=v?{}:_a({theme:p,styles:l,props:n,stylesCtx:r}),C={};if(!v)for(let e of _){let t=_a({theme:p,styles:p.components[e]?.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))C[e]={...C[e],...t[e]}}let w=Eo([g?{}:d?.(p,n,r),..._.map(e=>p.components?.[e]?.vars?.(p,n,r)),u?.(p,n,r)]),T=wo({style:a,theme:p});return(e,a)=>({...f?.[e],className:Co({theme:p,options:a,themeName:_,selector:e,classNamesPrefix:m,resolvedClassNames:b,resolvedThemeClassNames:x,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:h,headless:g,transformedStyles:y([a?.styles,l])}),style:To({theme:p,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:v,resolvedStyles:S,resolvedThemeStyles:C,resolvedVars:w,resolvedRootStyle:T})})}function Oo(e){return Er(e).reduce((t,n)=>e[n]===void 0?t:`${t}${kr(n)}:${e[n]};`,``).trim()}function ko({selector:e,styles:t,media:n,container:r}){let i=t?Oo(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${Oo(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${Oo(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function Ao(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)&4294967295;return(t>>>0).toString(36)}function jo({deduplicate:e,...t}){let n=Wa(),r=ko(t);return e?(0,G.jsx)(`style`,{href:`mantine-${Ao(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,G.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function Mo(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)&4294967295;return(t>>>0).toString(36)}function No(e,t){return`__mdi__-${Mo(`${e?Oo(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${Oo(e.styles)}`).join(`|`):``}`)}`}function Po(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pe:y,ps:b,pis:x,pie:S,bd:C,bdrs:w,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:M,lh:N,fs:P,tt:F,td:I,w:L,miw:R,maw:ee,h:z,mih:B,mah:te,bgsz:ne,bgp:re,bgr:ie,bga:ae,pos:oe,top:se,left:ce,bottom:le,right:V,inset:ue,display:de,flex:fe,hiddenFrom:pe,visibleFrom:me,lightHidden:he,darkHidden:ge,sx:_e,...ve}=e;return{styleProps:Ir({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pis:x,pie:S,pe:y,ps:b,bd:C,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:M,lh:N,fs:P,tt:F,td:I,w:L,miw:R,maw:ee,h:z,mih:B,mah:te,bgsz:ne,bgp:re,bgr:ie,bga:ae,pos:oe,top:se,left:ce,bottom:le,right:V,inset:ue,display:de,flex:fe,bdrs:w,hiddenFrom:pe,visibleFrom:me,lightHidden:he,darkHidden:ge,sx:_e}),rest:ve}}var Fo={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function Io(e,t){let n=Oa({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function Lo(e,t){let n=Oa({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:Io(e,t)}function Ro(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${W(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${Io(i.join(` `),t)}`),a.trim()}return e}var zo={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function Bo(e){return typeof e==`string`&&e in zo?zo[e]:e}var Vo=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function Ho(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&Vo.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?W(e):e}function Uo(e){return e}var Wo=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function Go(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&Wo.includes(e)?`var(--mantine-${e}-line-height)`:e}function Ko(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?W(e):e}function qo(e){return typeof e==`number`?W(e):e}function Jo(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return W(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var Yo={color:Io,textColor:Lo,fontSize:Ho,spacing:Jo,radius:Ko,identity:Uo,size:qo,lineHeight:Go,fontFamily:Bo,border:Ro};function Xo(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function Zo({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(Xo(e))-Number(Xo(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function Qo(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function $o(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function es(e){return typeof e==`object`&&e?Er(e).filter(e=>e!==`base`):[]}function ts(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function ns({styleProps:e,data:t,theme:n}){return Zo(Er(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=$o(e[i]);if(!Qo(e[i]))return o.forEach(e=>{r.inlineStyles[e]=Yo[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=es(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=Yo[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:Yo[a.type](ts(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function rs(){return`__m__-${(0,U.useId)().replace(/[:«»]/g,``)}`}function is(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...is(n,t)}),{}):typeof e==`function`?e(t):e??{}}function as(e){return e}var os=as;function ss(e){return e}function J(e){let t=e;return t.extend=ss,t.withProps=e=>{let n=n=>(0,G.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function cs(e){return J(e)}function ls(e){let t=e;return t.withProps=e=>{let n=n=>(0,G.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=ss,t}function us(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function ds(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[us(n)]=e[n]),t},{})}function fs(e){return e?typeof e==`string`?{[us(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...fs(t)}),{}):ds(e):null}function ps(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...ps(n,t)}),{}):typeof e==`function`?e(t):e??{}}function ms({theme:e,style:t,vars:n,styleProps:r}){let i=ps(t,e),a=ps(n,e);return{...i,...a,...r}}function hs({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:d,__size:f,ref:p,...m}){let h=fo(),g=e||`div`,{styleProps:_,rest:v}=Po(m),y=qa()?.()?.(_.sx),b=rs(),x=ns({styleProps:_,theme:h,data:Fo}),S=Xa(),C=S&&x.hasResponsiveStyles?No(x.styles,x.media):b,w={ref:p,style:ms({theme:h,style:t,vars:n,styleProps:x.inlineStyles}),className:pa(r,y,{[C]:x.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":Lr(o)?void 0:o||void 0,size:f,...fs(a),...v};return(0,G.jsxs)(G.Fragment,{children:[x.hasResponsiveStyles&&(0,G.jsx)(jo,{selector:`.${C}`,styles:x.styles,media:x.media,deduplicate:S}),typeof d==`function`?d(w):(0,G.jsx)(g,{...w})]})}hs.displayName=`@mantine/core/Box`;var Y=os(hs),gs=(0,U.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function _s(){return(0,U.use)(gs)}var[vs,ys]=zr(`ScrollArea.Root component was not found in tree`);function bs(e,t){let n=(0,U.useEffectEvent)(t);yi(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function xs(e){let{style:t,...n}=e,r=ys(),[i,a]=(0,U.useState)(0),[o,s]=(0,U.useState)(0),c=!!(i&&o);return bs(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),bs(r.scrollbarY,()=>{let e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),a(e)}),c?(0,G.jsx)(`div`,{...n,style:{...t,width:i,height:o}}):null}function Ss(e){let t=ys(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,G.jsx)(xs,{...e}):null}var Cs={scrollHideDelay:1e3,type:`hover`};function ws(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=K(`ScrollAreaRoot`,Cs,e),[s,c]=(0,U.useState)(null),[l,u]=(0,U.useState)(null),[d,f]=(0,U.useState)(null),[p,m]=(0,U.useState)(null),[h,g]=(0,U.useState)(null),[_,v]=(0,U.useState)(0),[y,b]=(0,U.useState)(0),[x,S]=(0,U.useState)(!1),[C,w]=(0,U.useState)(!1),T=zi(a,c);return(0,G.jsx)(vs,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:S,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:C,onScrollbarYEnabledChange:w,onCornerWidthChange:v,onCornerHeightChange:b,getStyles:i},children:(0,G.jsx)(Y,{...o,ref:T,__vars:{"--sa-corner-width":r===`xy`?`${_}px`:`0px`,"--sa-corner-height":r===`xy`?`${y}px`:`0px`}})})}ws.displayName=`@mantine/core/ScrollAreaRoot`;function Ts(e,t){let n=e/t;return Number.isNaN(n)?0:n}function Es(e){let t=Ts(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Ds(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Os(e,[t,n]){return Math.min(n,Math.max(t,e))}function ks(e,t,n=`ltr`){let r=Es(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=Os(e,n===`ltr`?[0,o]:[o*-1,0]);return Ds([0,o],[0,s])(c)}function As(e,t,n,r=`ltr`){let i=Es(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return Ds([c,l],d)(e)}function js(e,t){return e>0&&e<t}function Ms(e){return e?parseInt(e,10):0}function Ns(e,t,{checkForDefaultPrevented:n=!0}={}){return r=>{e?.(r),(n===!1||!r.defaultPrevented)&&t?.(r)}}var[Ps,Fs]=zr(`ScrollAreaScrollbar was not found in tree`);function Is(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:s,onWheelScroll:c,onResize:l,ref:u,...d}=e,f=ys(),[p,m]=(0,U.useState)(null),h=zi(u,m),g=(0,U.useRef)(null),_=(0,U.useRef)(``),{viewport:v}=f,y=t.content-t.viewport,b=(0,U.useEffectEvent)(c),x=ui(o),S=di(l,10),C=e=>{if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;s({x:t,y:n})}};return(0,U.useEffect)(()=>{let e=e=>{let t=e.target;p?.contains(t)&&b(e,y)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[v,p,y]),(0,U.useEffect)(x,[t,x]),bs(p,S),bs(f.content,S),(0,G.jsx)(Ps,{value:{scrollbar:p,hasThumb:n,onThumbChange:ui(r),onThumbPointerUp:ui(i),onThumbPositionChange:x,onThumbPointerDown:ui(a)},children:(0,G.jsx)(`div`,{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:Ns(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,C(e))}),onPointerMove:Ns(e.onPointerMove,C),onPointerUp:Ns(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,g.current=null}})})}var Ls=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=ys(),[s,c]=(0,U.useState)(),l=(0,U.useRef)(null),u=zi(i,l,o.onScrollbarXChange);return(0,U.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,G.jsx)(Is,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${Es(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),js(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Ms(s.paddingLeft),paddingEnd:Ms(s.paddingRight)}})}})};Ls.displayName=`@mantine/core/ScrollAreaScrollbarX`;function Rs(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=ys(),[s,c]=(0,U.useState)(),l=(0,U.useRef)(null),u=zi(i,l,o.onScrollbarYChange);return(0,U.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,G.jsx)(Is,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${Es(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),js(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Ms(s.paddingTop),paddingEnd:Ms(s.paddingBottom)}})}})}Rs.displayName=`@mantine/core/ScrollAreaScrollbarY`;function zs(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=_s(),i=ys(),a=(0,U.useRef)(null),o=(0,U.useRef)(0),[s,c]=(0,U.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=Ts(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:e=>{o.current=e}},d=(e,t)=>As(e,o.current,s,t);return t===`horizontal`?(0,G.jsx)(Ls,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=ks(e,s,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,r))}}):t===`vertical`?(0,G.jsx)(Rs,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=ks(e,s);s.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}zs.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function Bs(e){let t=ys(),{forceMount:n,...r}=e,[i,a]=(0,U.useState)(!1),o=e.orientation===`horizontal`,s=di(()=>{if(t.viewport){let e=t.viewport.offsetWidth<t.viewport.scrollWidth,n=t.viewport.offsetHeight<t.viewport.scrollHeight;a(o?e:n)}},10);return bs(t.viewport,s),bs(t.content,s),n||i?(0,G.jsx)(zs,{"data-state":i?`visible`:`hidden`,...r}):null}Bs.displayName=`@mantine/core/ScrollAreaScrollbarAuto`;function Vs(e){let{forceMount:t,...n}=e,r=ys(),[i,a]=(0,U.useState)(!1);return(0,U.useEffect)(()=>{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,G.jsx)(Bs,{"data-state":i?`visible`:`hidden`,...n}):null}Vs.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function Hs(e){let{forceMount:t,...n}=e,r=ys(),i=e.orientation===`horizontal`,[a,o]=(0,U.useState)(`hidden`),s=di(()=>o(`idle`),100);return(0,U.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,U.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(o(`scrolling`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,s]),t||a!==`hidden`?(0,G.jsx)(zs,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:Ns(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:Ns(e.onPointerLeave,()=>o(`idle`))}):null}function Us(e){let{forceMount:t,...n}=e,r=ys(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,U.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,G.jsx)(Vs,{...n,forceMount:t}):r.type===`scroll`?(0,G.jsx)(Hs,{...n,forceMount:t}):r.type===`auto`?(0,G.jsx)(Bs,{...n,forceMount:t}):r.type===`always`?(0,G.jsx)(zs,{...n}):null}Us.displayName=`@mantine/core/ScrollAreaScrollbar`;function Ws(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function Gs(e){let{style:t,ref:n,...r}=e,i=ys(),a=Fs(),{onThumbPositionChange:o}=a,s=zi(n,a.onThumbChange),c=(0,U.useRef)(void 0),l=di(()=>{c.current&&=(c.current(),void 0)},100);return(0,U.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=Ws(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,l,o]),(0,G.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...t},onPointerDownCapture:Ns(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:Ns(e.onPointerUp,a.onThumbPointerUp)})}Gs.displayName=`@mantine/core/ScrollAreaThumb`;function Ks(e){let{forceMount:t,...n}=e,r=Fs();return t||r.hasThumb?(0,G.jsx)(Gs,{...n}):null}Ks.displayName=`@mantine/core/ScrollAreaThumb`;function qs({children:e,style:t,ref:n,onWheel:r,...i}){let a=ys(),o=zi(n,a.onViewportChange),s=e=>{if(r?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,G.jsx)(Y,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,G.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}qs.displayName=`@mantine/core/ScrollAreaViewport`;var Js={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function Ys(){return typeof window<`u`}function Xs(e){return $s(e)?(e.nodeName||``).toLowerCase():`#document`}function Zs(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qs(e){return(($s(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function $s(e){return Ys()?e instanceof Node||e instanceof Zs(e).Node:!1}function ec(e){return Ys()?e instanceof Element||e instanceof Zs(e).Element:!1}function tc(e){return Ys()?e instanceof HTMLElement||e instanceof Zs(e).HTMLElement:!1}function nc(e){return!Ys()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Zs(e).ShadowRoot}function rc(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=mc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ic(e){return/^(table|td|th)$/.test(Xs(e))}function ac(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var oc=/transform|translate|scale|rotate|perspective|filter/,sc=/paint|layout|strict|content/,cc=e=>!!e&&e!==`none`,lc;function uc(e){let t=ec(e)?mc(e):e;return cc(t.transform)||cc(t.translate)||cc(t.scale)||cc(t.rotate)||cc(t.perspective)||!fc()&&(cc(t.backdropFilter)||cc(t.filter))||oc.test(t.willChange||``)||sc.test(t.contain||``)}function dc(e){let t=gc(e);for(;tc(t)&&!pc(t);){if(uc(t))return t;if(ac(t))return null;t=gc(t)}return null}function fc(){return lc??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),lc}function pc(e){return/^(html|body|#document)$/.test(Xs(e))}function mc(e){return Zs(e).getComputedStyle(e)}function hc(e){return ec(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gc(e){if(Xs(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||nc(e)&&e.host||Qs(e);return nc(t)?t.host:t}function _c(e){let t=gc(e);return pc(t)?(e.ownerDocument||e).body:tc(t)&&rc(t)?t:_c(t)}function vc(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=_c(e),i=r===e.ownerDocument?.body,a=Zs(r);if(i){let e=yc(a);return t.concat(a,a.visualViewport||[],rc(r)?r:[],e&&n?vc(e):[])}return t.concat(r,vc(r,[],n))}function yc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var bc=[`top`,`right`,`bottom`,`left`],xc=Math.min,Sc=Math.max,Cc=Math.round,wc=Math.floor,Tc=e=>({x:e,y:e}),Ec={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Dc(e,t,n){return Sc(e,xc(t,n))}function Oc(e,t){return typeof e==`function`?e(t):e}function kc(e){return e.split(`-`)[0]}function Ac(e){return e.split(`-`)[1]}function jc(e){return e===`x`?`y`:`x`}function Mc(e){return e===`y`?`height`:`width`}function Nc(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Pc(e){return jc(Nc(e))}function Fc(e,t,n){n===void 0&&(n=!1);let r=Ac(e),i=Pc(e),a=Mc(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Wc(o)),[o,Wc(o)]}function Ic(e){let t=Wc(e);return[Lc(e),t,Lc(t)]}function Lc(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Rc=[`left`,`right`],zc=[`right`,`left`],Bc=[`top`,`bottom`],Vc=[`bottom`,`top`];function Hc(e,t,n){switch(e){case`top`:case`bottom`:return n?t?zc:Rc:t?Rc:zc;case`left`:case`right`:return t?Bc:Vc;default:return[]}}function Uc(e,t,n,r){let i=Ac(e),a=Hc(kc(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Lc)))),a}function Wc(e){let t=kc(e);return Ec[t]+e.slice(t.length)}function Gc(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Kc(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Gc(e)}function qc(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 Jc(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Yc(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function Xc(){return/apple/i.test(navigator.vendor)}function Zc(){return Jc().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function Qc(){return Yc().includes(`jsdom/`)}var $c=`data-floating-ui-focusable`,el=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function tl(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function nl(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&nc(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function rl(e){return`composedPath`in e?e.composedPath()[0]:e.target}function il(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function al(e){return e.matches(`html,body`)}function ol(e){return e?.ownerDocument||document}function sl(e){return tc(e)&&e.matches(el)}function cl(e){if(!e||Qc())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function ll(e){return e?e.hasAttribute($c)?e:e.querySelector(`[`+$c+`]`)||e:null}function ul(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...ul(e,t.id,n)])}function dl(e){return`nativeEvent`in e}function fl(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var pl=typeof document<`u`?U.useLayoutEffect:function(){},ml={...U};function hl(e){let t=U.useRef(e);return pl(()=>{t.current=e}),t}var gl=ml.useInsertionEffect||(e=>e());function _l(e){let t=U.useRef(()=>{});return gl(()=>{t.current=e}),U.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function vl(e,t,n){let{reference:r,floating:i}=e,a=Nc(t),o=Pc(t),s=Mc(o),c=kc(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=Ac(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function yl(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Oc(t,e),p=Kc(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=qc(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=qc(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 bl=50,xl=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:yl},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=vl(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<bl&&(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}=vl(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Sl=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Oc(e,t)||{};if(l==null)return{};let d=Kc(u),f={x:n,y:r},p=Pc(i),m=Mc(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=xc(d[_],T),D=xc(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Dc(E,k,O),j=!c.arrow&&Ac(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),Cl=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Oc(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=kc(r),_=Nc(o),v=kc(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Wc(o)]:Ic(o)),x=p!==`none`;!d&&x&&b.push(...Uc(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=Fc(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`||_===Nc(t)||T.every(e=>Nc(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=Nc(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 wl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tl(e){return bc.some(t=>e[t]>=0)}var El=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Oc(e,t);switch(i){case`referenceHidden`:{let e=wl(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Tl(e)}}}case`escaped`:{let e=wl(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Tl(e)}}}default:return{}}}}};function Dl(e){let t=xc(...e.map(e=>e.left)),n=xc(...e.map(e=>e.top)),r=Sc(...e.map(e=>e.right)),i=Sc(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function Ol(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>qc(Dl(e)))}var kl=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=Oc(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=Ol(u),f=qc(Dl(u)),p=Kc(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(Nc(n)===`y`){let e=d[0],t=d[d.length-1],r=kc(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return qc({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=kc(n)===`left`,t=Sc(...d.map(e=>e.right)),r=xc(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return qc({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},Al=new Set([`left`,`top`]);async function jl(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=kc(n),s=Ac(n),c=Nc(n)===`y`,l=Al.has(o)?-1:1,u=a&&c?-1:1,d=Oc(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Ml=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 jl(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}}}}},Nl=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Oc(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Nc(i),p=jc(f),m=u[p],h=u[f],g=(e,t)=>Dc(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}}}}}},Pl=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Oc(e,t),u={x:n,y:r},d=Nc(i),f=jc(d),p=u[f],m=u[d],h=Oc(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Al.has(kc(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}}}},Fl=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Oc(e,t),c=await i.detectOverflow(t,s),l=kc(n),u=Ac(n),d=Nc(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=xc(p-c[m],g),y=xc(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*Sc(c.left,c.right):S=p-2*Sc(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 Il(e){let t=mc(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=tc(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Cc(n)!==a||Cc(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Ll(e){return ec(e)?e:e.contextElement}function Rl(e){let t=Ll(e);if(!tc(t))return Tc(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Il(t),o=(a?Cc(n.width):n.width)/r,s=(a?Cc(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var zl=Tc(0);function Bl(e){let t=Zs(e);return!fc()||!t.visualViewport?zl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vl(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Zs(e)}function Hl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ll(e),o=Tc(1);t&&(r?ec(r)&&(o=Rl(r)):o=Rl(e));let s=Vl(a,n,r)?Bl(a):Tc(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=Zs(a),t=ec(r)?Zs(r):r,n=e,i=yc(n);for(;i&&t!==n;){let e=Rl(i),t=i.getBoundingClientRect(),r=mc(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=Zs(i),i=yc(n)}}return qc({width:u,height:d,x:c,y:l})}function Ul(e,t){let n=hc(e).scrollLeft;return t?t.left+n:Hl(Qs(e)).left+n}function Wl(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ul(e,n),y:n.top+t.scrollTop}}function Gl(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Qs(r),s=t?ac(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Tc(1),u=Tc(0),d=tc(r);if((d||!a)&&((Xs(r)!==`body`||rc(o))&&(c=hc(r)),d)){let e=Hl(r);l=Rl(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Wl(o,c):Tc(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 Kl(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ql(e){let t=hc(e),n=e.ownerDocument.body,r=Sc(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Sc(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Ul(e),o=-t.scrollTop;return mc(n).direction===`rtl`&&(a+=Sc(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Jl=25;function Yl(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Zs(e),a=Qs(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!fc()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Ul(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<=Jl&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Xl(e,t){let n=Hl(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Rl(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Zl(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Yl(e,n,t);else if(t===`document`)r=ql(Qs(e));else if(ec(t))r=Xl(t,n);else{let n=Bl(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return qc(r)}function Ql(e,t){let n=t.get(e);if(n)return n;let r=vc(e,[],!1).filter(e=>ec(e)&&Xs(e)!==`body`),i=null,a=mc(e).position===`fixed`,o=a?gc(e):e;for(;ec(o)&&!pc(o);){let e=mc(o),t=uc(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=gc(o)}return t.set(e,r),r}function $l(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ac(t)?[]:Ql(t,this._c):[].concat(n),r],o=Zl(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=Zl(t,a[e],i);s=Sc(n.top,s),c=xc(n.right,c),l=xc(n.bottom,l),u=Sc(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function eu(e){let{width:t,height:n}=Il(e);return{width:t,height:n}}function tu(e,t,n){let r=tc(t),i=Qs(t),a=n===`fixed`,o=Hl(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Tc(0);if((r||!a)&&((Xs(t)!==`body`||rc(i))&&(s=hc(t)),r)){let e=Hl(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Ul(i));let l=i&&!r&&!a?Wl(i,s):Tc(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 nu(e){return mc(e).position===`static`}function ru(e,t){if(!tc(e)||mc(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Qs(e)===n&&(n=n.ownerDocument.body),n}function iu(e,t){let n=Zs(e);if(ac(e))return n;if(!tc(e)){let t=gc(e);for(;t&&!pc(t);){if(ec(t)&&!nu(t))return t;t=gc(t)}return n}let r=ru(e,t);for(;r&&ic(r)&&nu(r);)r=ru(r,t);return r&&pc(r)&&nu(r)&&!uc(r)?n:r||dc(e)||n}var au=async function(e){let t=this.getOffsetParent||iu,n=this.getDimensions,r=await n(e.floating);return{reference:tu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ou(e){return mc(e).direction===`rtl`}var su={convertOffsetParentRelativeRectToViewportRelativeRect:Gl,getDocumentElement:Qs,getClippingRect:$l,getOffsetParent:iu,getElementRects:au,getClientRects:Kl,getDimensions:eu,getScale:Rl,isElement:ec,isRTL:ou};function cu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lu(e,t,n){let r=null,i,a=Qs(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=wc(d),h=wc(a.clientWidth-(u+f)),g=wc(a.clientHeight-(d+p)),_=wc(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Sc(0,xc(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!cu(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=Zs(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function uu(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=Ll(e),u=i||a?[...l?vc(l):[],...t?vc(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?lu(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?Hl(e):null;c&&g();function g(){let t=Hl(e);h&&!cu(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 du=Ml,fu=Nl,pu=Cl,mu=Fl,hu=El,gu=Sl,_u=kl,vu=Pl,yu=(e,t,n)=>{let r=new Map,i=n??{},a={...su,...i.platform,_c:r};return xl(e,t,{...i,platform:a})},bu=typeof document<`u`?U.useLayoutEffect:function(){};function xu(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(!xu(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)&&!xu(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Su(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cu(e,t){let n=Su(e);return Math.round(t*n)/n}function wu(e){let t=U.useRef(e);return bu(()=>{t.current=e}),t}function Tu(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]=U.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=U.useState(r);xu(f,r)||p(r);let[m,h]=U.useState(null),[g,_]=U.useState(null),v=U.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=U.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=U.useRef(null),C=U.useRef(null),w=U.useRef(u),T=c!=null,E=wu(c),D=wu(i),O=wu(l),k=U.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),yu(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!xu(w.current,t)&&(w.current=t,Ar.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);bu(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=U.useRef(!1);bu(()=>(A.current=!0,()=>{A.current=!1}),[]),bu(()=>{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 j=U.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=U.useMemo(()=>({reference:b,floating:x}),[b,x]),N=U.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Cu(M.floating,u.x),r=Cu(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Su(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return U.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Eu=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?{}:gu({element:r.current,padding:i}).fn(n):r?gu({element:r,padding:i}).fn(n):{}}}},Du=(e,t)=>{let n=du(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ou=(e,t)=>{let n=fu(e);return{name:n.name,fn:n.fn,options:[e,t]}},ku=(e,t)=>({fn:vu(e).fn,options:[e,t]}),Au=(e,t)=>{let n=pu(e);return{name:n.name,fn:n.fn,options:[e,t]}},ju=(e,t)=>{let n=mu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Mu=(e,t)=>{let n=hu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nu=(e,t)=>{let n=_u(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pu=(e,t)=>{let n=Eu(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Fu(e){let t=U.useRef(void 0),n=U.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return U.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Iu=`data-floating-ui-focusable`,Lu=`active`,Ru=`selected`,zu=`ArrowLeft`,Bu=`ArrowRight`,Vu=`ArrowUp`,Hu=`ArrowDown`,Uu=[zu,Bu],Wu=[Vu,Hu];[...Uu,...Wu];var Gu={...U},Ku=!1,qu=0,Ju=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+qu++;function Yu(){let[e,t]=U.useState(()=>Ku?Ju():void 0);return pl(()=>{e??t(Ju())},[]),U.useEffect(()=>{Ku=!0},[]),e}var Xu=Gu.useId||Yu;function Zu(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var Qu=U.createContext(null),$u=U.createContext(null),ed=()=>U.useContext(Qu)?.id||null,td=()=>U.useContext($u);function nd(e){return`data-floating-ui-`+e}function rd(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var id=nd(`safe-polygon`);function ad(e,t,n){if(n&&!fl(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}function od(e){return typeof e==`function`?e():e}function sd(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=td(),m=ed(),h=hl(l),g=hl(c),_=hl(n),v=hl(d),y=U.useRef(),b=U.useRef(-1),x=U.useRef(),S=U.useRef(-1),C=U.useRef(!0),w=U.useRef(!1),T=U.useRef(()=>{}),E=U.useRef(!1),D=_l(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});U.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(rd(b),rd(S),C.current=!0,E.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),U.useEffect(()=>{if(!s||!h.current||!n)return;function e(e){D()&&r(!1,e,`hover`)}let t=ol(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,h,D]);let O=U.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=ad(g.current,`close`,y.current);i&&!x.current?(rd(b),b.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(rd(b),r(!1,e,n))},[g,r]),k=_l(()=>{T.current(),x.current=void 0}),A=_l(()=>{if(w.current){let e=ol(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(id),w.current=!1}}),j=_l(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);U.useEffect(()=>{if(!s)return;function e(e){if(rd(b),C.current=!1,u&&!fl(y.current)||od(v.current)>0&&!ad(g.current,`open`))return;let t=ad(g.current,`open`,y.current);t?b.current=window.setTimeout(()=>{_.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(j()){A();return}T.current();let t=ol(o.floating);if(rd(S),E.current=!1,h.current&&i.current.floatingContext){n||rd(b),x.current=h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){A(),k(),j()||O(e,!0,`safe-polygon`)}});let r=x.current;t.addEventListener(`mousemove`,r),T.current=()=>{t.removeEventListener(`mousemove`,r)};return}(y.current!==`touch`||!nl(o.floating,e.relatedTarget))&&O(e)}function a(e){j()||i.current.floatingContext&&(h.current==null||h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){A(),k(),j()||O(e)}})(e))}function c(){rd(b)}function l(e){j()||O(e,!1)}if(ec(o.domReference)){let r=o.domReference,i=o.floating;return n&&r.addEventListener(`mouseleave`,a),f&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,c),i.addEventListener(`mouseleave`,l)),()=>{n&&r.removeEventListener(`mouseleave`,a),f&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,c),i.removeEventListener(`mouseleave`,l))}}},[o,s,e,u,f,O,k,A,r,n,_,p,g,h,i,j,v]),pl(()=>{var e;if(s&&n&&(e=h.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&D()){w.current=!0;let e=o.floating;if(ec(o.domReference)&&e){var t;let n=ol(o.floating).body;n.setAttribute(id,``);let r=o.domReference,i=p==null||(t=p.nodesRef.current.find(e=>e.id===m))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[s,n,m,o,p,h,D]),pl(()=>{n||(y.current=void 0,E.current=!1,k(),A())},[n,k,A]),U.useEffect(()=>()=>{k(),rd(b),rd(S),A()},[s,o.domReference,k,A]);let M=U.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!C.current&&!_.current&&r(!0,t,`hover`)}(!u||fl(y.current))&&(n||od(v.current)===0||E.current&&e.movementX**2+e.movementY**2<2||(rd(S),y.current===`touch`?i():(E.current=!0,S.current=window.setTimeout(i,od(v.current)))))}}},[u,r,n,_,v]);return U.useMemo(()=>s?{reference:M}:{},[s,M])}var cd=()=>{},ld=U.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:cd,setState:cd,isInstantPhase:!1}),ud=()=>U.useContext(ld);function dd(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=U.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=U.useRef(null),s=U.useCallback(e=>{a({currentId:e})},[]);return pl(()=>{i.currentId?o.current===null?o.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),o.current=null)},[i.currentId,i.isInstantPhase]),(0,G.jsx)(ld.Provider,{value:U.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,s]),children:t})}function fd(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=ud(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return pl(()=>{o&&l&&(f({delay:{open:1,close:ad(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),pl(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(o&&l&&!n&&l===s){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,f,l,s,r,d,p]),pl(()=>{o&&u!==cd&&n&&u(s)},[o,n,u,s]),c}function pd(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&nc(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function md(e){return`composedPath`in e?e.composedPath()[0]:e.target}var hd={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},gd={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},_d=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function vd(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`pointerdown`,referencePress:u=!1,referencePressEvent:d=`pointerdown`,ancestorScroll:f=!1,bubbles:p,capture:m}=t,h=td(),g=_l(typeof c==`function`?c:()=>!1),_=typeof c==`function`?g:c,v=U.useRef(!1),{escapeKey:y,outsidePress:b}=_d(p),{escapeKey:x,outsidePress:S}=_d(m),C=U.useRef(!1),w=_l(e=>{if(!n||!o||!s||e.key!==`Escape`||C.current)return;let t=a.current.floatingContext?.nodeId,i=h?ul(h.nodesRef.current,t):[];if(!y&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,dl(e)?e.nativeEvent:e,`escape-key`)}),T=_l(e=>{var t;let n=()=>{var t;w(e),(t=rl(e))==null||t.removeEventListener(`keydown`,n)};(t=rl(e))==null||t.addEventListener(`keydown`,n)}),E=_l(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=v.current;if(v.current=!1,l===`click`&&n||t||typeof _==`function`&&!_(e))return;let o=rl(e),s=`[`+nd(`inert`)+`]`,c=ol(i.floating).querySelectorAll(s),u=ec(o)?o:null;for(;u&&!pc(u);){let e=gc(u);if(pc(e)||!ec(e))break;u=e}if(c.length&&ec(o)&&!al(o)&&!nl(o,i.floating)&&Array.from(c).every(e=>!nl(u,e)))return;if(tc(o)&&k){let t=pc(o),n=mc(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(u||d)return}let d=a.current.floatingContext?.nodeId,f=h&&ul(h.nodesRef.current,d).some(t=>il(e,t.context?.elements.floating));if(il(e,i.floating)||il(e,i.domReference)||f)return;let p=h?ul(h.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,`outside-press`)}),D=_l(e=>{var t;let n=()=>{var t;E(e),(t=rl(e))==null||t.removeEventListener(l,n)};(t=rl(e))==null||t.addEventListener(l,n)});U.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=y,a.current.__outsidePressBubbles=b;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),C.current=!0}function u(){e=window.setTimeout(()=>{C.current=!1},fc()?5:0)}let d=ol(i.floating);s&&(d.addEventListener(`keydown`,x?T:w,x),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,u)),_&&d.addEventListener(l,S?D:E,S);let p=[];return f&&(ec(i.domReference)&&(p=vc(i.domReference)),ec(i.floating)&&(p=p.concat(vc(i.floating))),!ec(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(vc(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{s&&(d.removeEventListener(`keydown`,x?T:w,x),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,u)),_&&d.removeEventListener(l,S?D:E,S),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,_,l,n,r,f,o,y,b,w,x,T,E,S,D]),U.useEffect(()=>{a.current.insideReactTree=!1},[a,_,l]);let O=U.useMemo(()=>({onKeyDown:w,...u&&{[hd[d]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...d!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[w,r,u,d]),k=U.useMemo(()=>{function e(e){e.button===0&&(v.current=!0)}return{onKeyDown:w,onMouseDown:e,onMouseUp:e,[gd[l]]:()=>{a.current.insideReactTree=!0}}},[w,l,a]);return U.useMemo(()=>o?{reference:O,floating:k}:{},[o,O,k])}function yd(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=Xu(),a=U.useRef({}),[o]=U.useState(()=>Zu()),s=ed()!=null,[c,l]=U.useState(r.reference),u=_l((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),d=U.useMemo(()=>({setPositionReference:l}),[]),f=U.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return U.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function bd(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=yd({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=U.useState(null),[l,u]=U.useState(null),d=o?.domReference||s,f=U.useRef(null),p=td();pl(()=>{d&&(f.current=d)},[d]);let m=Tu({...n,elements:{...o,...l&&{reference:l}}}),h=U.useCallback(e=>{let t=ec(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=U.useCallback(e=>{(ec(e)||e===null)&&(f.current=e,c(e)),(ec(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!ec(e))&&m.refs.setReference(e)},[m.refs]),_=U.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:f}),[m.refs,g,h]),v=U.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),y=U.useMemo(()=>({...m,...a,refs:_,elements:v,nodeId:r}),[m,_,v,r,a]);return pl(()=>{a.dataRef.current.floatingContext=y;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=y)}),U.useMemo(()=>({...m,context:y,refs:_,elements:v}),[m,_,v,y])}function xd(){return Zc()&&Xc()}function Sd(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=U.useRef(!1),u=U.useRef(-1),d=U.useRef(!0);U.useEffect(()=>{if(!s)return;let e=Zs(o.domReference);function t(){!n&&tc(o.domReference)&&o.domReference===tl(ol(o.domReference))&&(l.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener(`blur`,t),xd()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),xd()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),U.useEffect(()=>{if(!s)return;function e(e){let{reason:t}=e;(t===`reference-press`||t===`escape-key`)&&(l.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,s]),U.useEffect(()=>()=>{rd(u)},[]);let f=U.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(e){if(l.current)return;let t=rl(e.nativeEvent);if(c&&ec(t)){if(xd()&&!e.relatedTarget){if(!d.current&&!sl(t))return}else if(!cl(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){l.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=ec(t)&&t.hasAttribute(nd(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;u.current=window.setTimeout(()=>{let e=tl(o.domReference?o.domReference.ownerDocument:document);(t||e!==o.domReference)&&(nl(a.current.floatingContext?.refs.floating.current,e)||nl(o.domReference,e)||i||r(!1,n,`focus`))})}}),[a,o.domReference,r,c]);return U.useMemo(()=>s?{reference:f}:{},[s,f])}function Cd(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[Lu]:t,[Ru]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[Iu]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[Lu,Ru].includes(n))){if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}}),e),{})}}function wd(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=U.useCallback(t=>Cd(t,e,`reference`),t),a=U.useCallback(t=>Cd(t,e,`floating`),n),o=U.useCallback(t=>Cd(t,e,`item`),r);return U.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var Td=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function Ed(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:o=`dialog`}=t,s=Xu(),c=r.domReference?.id||s,l=U.useMemo(()=>ll(r.floating)?.id||i,[r.floating,i]),u=Td.get(o)??o,d=ed()!=null,f=U.useMemo(()=>u===`tooltip`||o===`label`?{[`aria-`+(o===`label`?`labelledby`:`describedby`)]:n?l:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":u===`alertdialog`?`dialog`:u,"aria-controls":n?l:void 0,...u===`listbox`&&{role:`combobox`},...u===`menu`&&{id:c},...u===`menu`&&d&&{role:`menuitem`},...o===`select`&&{"aria-autocomplete":`none`},...o===`combobox`&&{"aria-autocomplete":`list`}},[u,l,d,n,c,o]),p=U.useMemo(()=>{let e={id:l,...u&&{role:u}};return u===`tooltip`||o===`label`?e:{...e,...u===`menu`&&{"aria-labelledby":c}}},[u,l,c,o]),m=U.useCallback(e=>{let{active:t,selected:n}=e,r={role:`option`,...t&&{id:l+`-fui-option`}};switch(o){case`select`:case`combobox`:return{...r,"aria-selected":n}}return{}},[l,o]);return U.useMemo(()=>a?{reference:f,floating:p,item:m}:{},[a,f,p,m])}function Dd(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...Dd(e,t.id,n)])}function Od(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e<a;o=e++){let[a,s]=t[e]||[0,0],[c,l]=t[o]||[0,0];s>=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function kd(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Ad(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},a=!1,o=null,s=null,c=typeof performance<`u`?performance.now():0;function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=e=>{let{x:n,y:o,placement:s,elements:c,onClose:u,nodeId:d,tree:f}=e;return function(e){function p(){rd(i),u()}if(rd(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=md(e),v=e.type===`mouseleave`,y=pd(c.floating,_),b=pd(c.domReference,_),x=c.domReference.getBoundingClientRect(),S=c.floating.getBoundingClientRect(),C=s.split(`-`)[0],w=n>S.right-S.width/2,T=o>S.bottom-S.height/2,E=kd(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,A=(D?x:S).right,j=(O?x:S).top,M=(O?x:S).bottom;if(y&&(a=!0,!v))return;if(b&&(a=!1),b&&!v){a=!0;return}if(v&&ec(e.relatedTarget)&&pd(c.floating,e.relatedTarget)||f&&Dd(f.nodesRef.current,d).length)return;if(C===`top`&&o>=x.bottom-1||C===`bottom`&&o<=x.top+1||C===`left`&&n>=x.right-1||C===`right`&&n<=x.left+1)return p();let N=[];switch(C){case`top`:N=[[k,x.top+1],[k,S.bottom-1],[A,S.bottom-1],[A,x.top+1]];break;case`bottom`:N=[[k,S.top+1],[k,x.bottom-1],[A,x.bottom-1],[A,S.top+1]];break;case`left`:N=[[S.right-1,M],[S.right-1,j],[x.left+1,j],[x.left+1,M]];break;case`right`:N=[[x.right-1,M],[x.right-1,j],[S.left+1,j],[S.left+1,M]]}function P(e){let[n,r]=e;switch(C){case`top`:return[[D?n+t/2:w?n+t*4:n-t*4,r+t+1],[D?n-t/2:w?n+t*4:n-t*4,r+t+1],[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]];case`bottom`:return[[D?n+t/2:w?n+t*4:n-t*4,r-t],[D?n-t/2:w?n+t*4:n-t*4,r-t],[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]];case`left`:{let e=[n+t+1,O?r+t/2:T?r+t*4:r-t*4],i=[n+t+1,O?r-t/2:T?r+t*4:r-t*4];return[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom],e,i]}case`right`:return[[n-t,O?r+t/2:T?r+t*4:r-t*4],[n-t,O?r-t/2:T?r+t*4:r-t*4],[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]}}if(!Od([m,h],N)){if(a&&!E)return p();if(!v&&r){let t=l(e.clientX,e.clientY);if(t!==null&&t<.1)return p()}Od([m,h],P([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var jd={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},Md=da((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":W(t),"--scrollarea-over-scroll-behavior":i}}}),Nd=J(e=>{let t=K(`ScrollArea`,jd,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,scrollbarSize:s,vars:c,type:l,scrollHideDelay:u,viewportProps:d,viewportRef:f,onScrollPositionChange:p,children:m,offsetScrollbars:h,scrollbars:g,onBottomReached:_,onTopReached:v,onLeftReached:y,onRightReached:b,overscrollBehavior:x,startScrollPosition:S,verticalScrollbarPosition:C,attributes:w,...T}=t,[E,D]=(0,U.useState)(!1),[O,k]=(0,U.useState)(!1),[A,j]=(0,U.useState)(!1),M=(0,U.useRef)(!0),N=(0,U.useRef)(!1),P=(0,U.useRef)(!0),F=(0,U.useRef)(!1),I=q({name:`ScrollArea`,props:t,classes:Js,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:c,varsResolver:Md}),L=(0,U.useRef)(null),[R,ee]=(0,U.useState)(null),z=Fu([f,L,(0,U.useCallback)(e=>{ee(t=>t===e?t:e)},[])]);return bs(h===`present`?R:null,()=>{let e=L.current;e&&(k(e.scrollHeight>e.clientHeight),j(e.scrollWidth>e.clientWidth))}),yi(()=>{S&&L.current&&L.current.scrollTo({left:S.x??0,top:S.y??0})},[]),(0,G.jsxs)(ws,{getStyles:I,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:g,...I(`root`),...T,children:[(0,G.jsx)(qs,{...d,...I(`viewport`,{style:d?.style}),ref:z,"data-offset-scrollbars":h===!0?`xy`:h||void 0,"data-scrollbars":g||void 0,"data-vertical-scrollbar-position":C||void 0,"data-horizontal-hidden":h===`present`&&!A?`true`:void 0,"data-vertical-hidden":h===`present`&&!O?`true`:void 0,onScroll:e=>{d?.onScroll?.(e),p?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollLeft:i,scrollWidth:a,clientWidth:o}=e.currentTarget,s=t-(n-r)>=-.8,c=t===0;s&&!N.current&&_?.(),c&&!M.current&&v?.(),N.current=s,M.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!F.current&&b?.(),u&&!P.current&&y?.(),F.current=l,P.current=u},children:m}),(g===`xy`||g===`x`)&&(0,G.jsx)(Us,{...I(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!A||void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,G.jsx)(Ks,{...I(`thumb`)})}),(g===`xy`||g===`y`)&&(0,G.jsx)(Us,{...I(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!O||void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,G.jsx)(Ks,{...I(`thumb`)})}),(0,G.jsx)(Ss,{...I(`corner`),"data-vertical-scrollbar-position":C||void 0,"data-hovered":E||void 0,"data-hidden":l===`never`||void 0})]})});Nd.displayName=`@mantine/core/ScrollArea`;var Pd=J(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,scrollbars:h,style:g,vars:_,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,onOverflowChange:S,...C}=K(`ScrollAreaAutosize`,jd,e),w=(0,U.useRef)(null),[T,E]=(0,U.useState)(null),D=Fu([u,w,(0,U.useCallback)(e=>{E(t=>t===e?t:e)},[])]),O=(0,U.useRef)(!1),k=(0,U.useRef)(!1),A=(0,U.useEffectEvent)(()=>{let e=w.current;if(!e||!S)return;let t=e.scrollHeight>e.clientHeight;t!==O.current&&(k.current?S(t):(k.current=!0,t&&S(!0)),O.current=t)});return bs(S?T:null,A),(0,G.jsx)(Y,{...C,variant:p,style:[{display:`flex`,overflow:`hidden`},g],children:(0,G.jsx)(Y,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...h===`y`&&{minWidth:0},...h===`x`&&{minHeight:0},...h===`xy`&&{minWidth:0,minHeight:0},...h===!1&&{minWidth:0,minHeight:0}},children:(0,G.jsx)(Nd,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:D,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,vars:_,scrollbars:h,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,"data-autosize":`true`,children:t})})})});Nd.classes=Js,Nd.varsResolver=Md,Pd.displayName=`@mantine/core/ScrollAreaAutosize`,Pd.classes=Js,Nd.Autosize=Pd;var Fd={root:`m_87cf2631`},Id={__staticSelector:`UnstyledButton`},Ld=ls(e=>{let t=K(`UnstyledButton`,Id,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t,d=q({name:i,props:t,classes:Fd,className:n,style:c,classNames:o,styles:s,unstyled:a,attributes:l});return(0,G.jsx)(Y,{...d(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...u})});Ld.classes=Fd,Ld.displayName=`@mantine/core/UnstyledButton`;var Rd={root:`m_515a97f8`},zd=J(e=>{let t=K(`VisuallyHidden`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,...l}=t,u=q({name:`VisuallyHidden`,classes:Rd,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c});return(0,G.jsx)(Y,{component:`span`,...u(`root`),...l})});zd.classes=Rd,zd.displayName=`@mantine/core/VisuallyHidden`;var Bd={root:`m_1b7284a3`},Vd=da((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:Qr(t),"--paper-shadow":ti(n)}})),Hd=ls(e=>{let t=K(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:c,radius:l,shadow:u,variant:d,mod:f,attributes:p,...m}=t,h=q({name:`Paper`,props:t,classes:Bd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:Vd});return(0,G.jsx)(Y,{mod:[{withBorder:s},f],...h(`root`),variant:d,...m})});Hd.classes=Bd,Hd.varsResolver=Vd,Hd.displayName=`@mantine/core/Paper`;function Ud(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function Wd(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var Gd={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function Kd({position:e,arrowSize:t,dir:n}){let[r,i]=e.split(`-`);if(!i)return;let a={width:t,height:t,position:`absolute`};if(r===`bottom`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,top:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(100% 0%, 0% 100%, 100% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`}}if(r===`top`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,bottom:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(0% 0%, 100% 0%, 0% 100%)`}}if(r===`left`)return{...a,right:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 0% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`};if(r===`right`)return{...a,left:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(100% 0%, 0% 100%, 100% 100%)`}}function qd({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=Kd({position:e,arrowSize:t,dir:s});if(n)return n}let[c,l=`center`]=e.split(`-`),u={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[Gd[c]]:r},d=-t/2;return c===`left`?{...u,...Ud(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...Ud(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...Wd(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...Wd(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function Jd({position:e,dir:t}){let[n,r]=e.split(`-`);if(!r)return;let i=r===`start`&&t===`ltr`||r===`end`&&t===`rtl`;if(n===`bottom`)return i?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(n===`top`)return i?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(n===`left`)return r===`start`?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(n===`right`)return r===`start`?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function Yd({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=_s();return a?(0,G.jsx)(`div`,{role:`presentation`,...l,style:{...c,...qd({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}Yd.displayName=`@mantine/core/FloatingArrow`;function Xd(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}function Zd({open:e,close:t,openDelay:n,closeDelay:r}){let i=(0,U.useRef)(-1),a=(0,U.useRef)(-1),o=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)};return(0,U.useEffect)(()=>o,[]),{openDropdown:()=>{o(),n===0||n===void 0?e():i.current=window.setTimeout(e,n)},closeDropdown:()=>{o(),r===0||r===void 0?t():a.current=window.setTimeout(t,r)}}}var Qd={root:`m_9814e45f`},$d={zIndex:qr(`modal`)},ef=da((e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:a,zIndex:o})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&Na(n||`#000`,r??.6)||void 0,"--overlay-filter":i?`blur(${W(i)})`:void 0,"--overlay-radius":a===void 0?void 0:Qr(a),"--overlay-z-index":o?.toString()}})),tf=ls(e=>{let t=K(`Overlay`,$d,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fixed:c,center:l,children:u,radius:d,zIndex:f,gradient:p,blur:m,color:h,backgroundOpacity:g,mod:_,attributes:v,...y}=t,b=q({name:`Overlay`,props:t,classes:Qd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:ef});return(0,G.jsx)(Y,{...b(`root`),mod:[{center:l,fixed:c},_],...y,children:u})});tf.classes=Qd,tf.varsResolver=ef,tf.displayName=`@mantine/core/Overlay`;function nf(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}function rf({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||nf(n):e;if(t){let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return e;let t=nf(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),t}return nf(n)}var af={reuseTargetNode:!0},of=J(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=K(`Portal`,af,e),[o,s]=(0,U.useState)(!1),c=(0,U.useRef)(null);return yi(()=>(s(!0),c.current=rf({target:n,reuseTargetNode:r,...a}),Li(i,c.current),!n&&!r&&c.current&&document.body.appendChild(c.current),()=>{!n&&!r&&c.current&&document.body.removeChild(c.current)}),[n]),!o||!c.current?null:(0,Ar.createPortal)((0,G.jsx)(G.Fragment,{children:t}),c.current)});of.displayName=`@mantine/core/Portal`;var sf=J(({withinPortal:e=!0,children:t,...n})=>Ya()===`test`||!e?(0,G.jsx)(G.Fragment,{children:t}):(0,G.jsx)(of,{...n,children:t}));sf.displayName=`@mantine/core/OptionalPortal`;var cf=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),lf={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...cf(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...cf(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...cf(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...cf(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...cf(`top`),common:{transformOrigin:`top right`}}},uf={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function df({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in lf?{transitionProperty:lf[e].transitionProperty,...i,...lf[e].common,...lf[e][uf[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[uf[t]]}}function ff({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:l}){let u=fo(),d=Wi(),f=u.respectReducedMotion?d:!1,[p,m]=(0,U.useState)(f?0:e),[h,g]=(0,U.useState)(r?`entered`:`exited`),_=(0,U.useRef)(-1),v=(0,U.useRef)(-1),y=(0,U.useRef)(-1);function b(){window.clearTimeout(_.current),window.clearTimeout(v.current),cancelAnimationFrame(y.current)}let x=n=>{b();let r=n?i:a,c=n?o:s,l=f?0:n?e:t;m(l),l===0?(typeof r==`function`&&r(),typeof c==`function`&&c(),g(n?`entered`:`exited`)):y.current=requestAnimationFrame(()=>{Ar.flushSync(()=>{g(n?`pre-entering`:`pre-exiting`)}),y.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),g(n?`entering`:`exiting`),_.current=window.setTimeout(()=>{typeof c==`function`&&c(),g(n?`entered`:`exited`)},l)})})},S=e=>{if(b(),typeof(e?c:l)!=`number`){x(e);return}v.current=window.setTimeout(()=>{x(e)},e?c:l)};return xi(()=>{S(r)},[r]),(0,U.useEffect)(()=>()=>{b()},[]),{transitionDuration:p,transitionStatus:h,transitionTimingFunction:n||`ease`}}function pf({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:o,timingFunction:s=`ease`,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p}){let m=Ya(),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:_}=ff({mounted:a,exitDuration:i,duration:r,timingFunction:s,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p});if(m===`test`)return a?(0,G.jsx)(G.Fragment,{children:o({})}):e?o({display:`none`}):null;if(h===0)return e?t===`display-none`?a?(0,G.jsx)(G.Fragment,{children:o({})}):o({display:`none`}):(0,G.jsx)(U.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,G.jsx)(G.Fragment,{children:o({})}):null;let v=g===`exited`;if(e){let e=o(v?t===`display-none`?{display:`none`}:{}:df({transition:n,duration:h,state:g,timingFunction:_}));return t===`display-none`?e:(0,G.jsx)(U.Activity,{mode:v?`hidden`:`visible`,children:e})}return v?null:(0,G.jsx)(G.Fragment,{children:o(df({transition:n,duration:h,state:g,timingFunction:_}))})}pf.displayName=`@mantine/core/Transition`;var mf={duration:100,transition:`fade`};function hf(e,t){return{...mf,...t,...e}}var[gf,_f]=zr(`Popover component was not found in the tree`);function vf({childProps:e,disabled:t,opened:n,longPressDelay:r=500,setReference:i,open:a}){let o=(0,U.useRef)(!1),s=(0,U.useRef)(!1),c=(0,U.useRef)(null),l=(0,U.useRef)(t);l.current=t;let u=(e,t,n)=>{i({getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t,toJSON:()=>void 0}),contextElement:n}),a()},d=ni(e.onMouseDown,e=>{t||e.button===2&&e.stopPropagation()}),f=ni(e.onContextMenu,e=>{t||e.defaultPrevented||(e.preventDefault(),!s.current&&(u(e.clientX,e.clientY,e.currentTarget),o.current&&(s.current=!0)))}),p=ea(e=>{if(l.current||s.current)return;let t=e,n=t.touches[0]??t.changedTouches[0];n&&(u(n.clientX,n.clientY,c.current),s.current=!0)},{threshold:r,events:[`touch`],cancelOnMove:!0,onStart:e=>{o.current=!0,s.current=!1,c.current=e.currentTarget},onFinish:e=>{o.current=!1,s.current=!1,l.current||e.preventDefault()},onCancel:()=>{o.current=!1,s.current=!1}});return{onContextMenu:f,onMouseDown:d,onTouchStart:ni(e.onTouchStart,p.onTouchStart),onTouchEnd:ni(e.onTouchEnd,p.onTouchEnd),onTouchCancel:ni(e.onTouchCancel,p.onTouchCancel),onTouchMove:ni(e.onTouchMove,p.onTouchMove),style:t?e.style:{...e.style,WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`},"data-expanded":n?!0:void 0}}function yf(e){let{children:t,disabled:n,longPressDelay:r}=K(`PopoverContextMenu`,null,e),i=ua(t);if(!i)throw Error(`Popover.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=_f(),o=vf({childProps:i.props,disabled:n||a.disabled,opened:a.opened,longPressDelay:r,setReference:a.reference,open:()=>{a.opened||a.onToggle()}});return(0,U.cloneElement)(i,o)}yf.displayName=`@mantine/core/PopoverContextMenu`;function bf({children:e,active:t=!0,refProp:n=`ref`,innerRef:r}){let i=zi(Mi(t),r),a=ua(e);return a?(0,U.cloneElement)(a,{[n]:i}):e}function xf(e){return(0,G.jsx)(zd,{tabIndex:-1,"data-autofocus":!0,...e})}bf.displayName=`@mantine/core/FocusTrap`,xf.displayName=`@mantine/core/FocusTrapInitialFocus`,bf.InitialFocus=xf;var Sf={dropdown:`m_38a85659`,arrow:`m_a31dc6c1`,overlay:`m_3d7bc908`},Cf=J(e=>{let t=K(`PopoverDropdown`,null,e),{className:n,style:r,vars:i,children:a,onKeyDownCapture:o,variant:s,classNames:c,styles:l,ref:u,...d}=t,f=_f(),{dir:p}=_s(),m=f.arrowPosition===`merge`&&f.withArrow?Jd({position:f.placement,dir:p}):void 0,h=Si({opened:f.opened,shouldReturnFocus:f.returnFocus}),g=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:`dialog`,tabIndex:-1}:{},_=zi(u,f.floating);return f.disabled?null:(0,G.jsx)(sf,{...f.portalProps,withinPortal:f.withinPortal,children:(0,G.jsx)(pf,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||`fade`,duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,keepMountedMode:f.keepMountedMode,exitDuration:typeof f.transitionProps?.exitDuration==`number`?f.transitionProps.exitDuration:f.transitionProps?.duration,children:e=>(0,G.jsx)(bf,{active:f.trapFocus&&f.opened,innerRef:_,children:(0,G.jsxs)(Y,{...g,...d,variant:s,onKeyDownCapture:Yr(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:h,onKeyDown:o}),"data-position":f.placement,"data-fixed":f.floatingStrategy===`fixed`||void 0,...f.getStyles(`dropdown`,{className:n,props:t,classNames:c,styles:l,style:[{...e,...m,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width===`target`?void 0:W(f.width),...f.referenceHidden?{display:`none`}:null},f.resolvedStyles?.dropdown,l?.dropdown,r]}),children:[a,(0,G.jsx)(Yd,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles(`arrow`,{props:t,classNames:c,styles:l})})]})})})})});Cf.classes=Sf,Cf.displayName=`@mantine/core/PopoverDropdown`;var wf={refProp:`ref`,popupType:`dialog`},Tf=J(e=>{let{children:t,refProp:n,popupType:r,ref:i,...a}=K(`PopoverTarget`,wf,e),o=ua(t);if(!o)throw Error(`Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let s=a,c=_f(),l=zi(c.reference,aa(o),i),u=c.withRoles?{"aria-haspopup":r,"aria-expanded":c.opened,"aria-controls":c.opened?c.getDropdownId():void 0,id:c.getTargetId()}:{},d=o.props;return(0,U.cloneElement)(o,{...s,...u,...c.targetProps,className:pa(c.targetProps.className,s.className,d.className),[n]:l,...c.controlled?null:{onClick:e=>{c.onToggle(),d.onClick?.(e)}}})});Tf.displayName=`@mantine/core/PopoverTarget`;function Ef(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function Df(e,t,n,r){let i=Ef(e.middlewares),a=[Du(e.offset),Mu()];if(i.flip&&!n){let e=typeof i.flip==`boolean`?{}:i.flip,t=r?{fallbackStrategy:`initialPlacement`,...e}:e;a.push(Au(t))}if(i.shift){let t=typeof i.shift==`boolean`?{}:i.shift;a.push(Ou(n=>{let r=n.placement.startsWith(`top`)||n.placement.startsWith(`bottom`);return{limiter:ku(),padding:5,...e.width===`target`&&r?{mainAxis:!1}:null,...t}}))}return i.inline&&a.push(typeof i.inline==`boolean`?Nu():Nu(i.inline)),a.push(Pu({element:e.arrowRef,padding:e.arrowOffset})),(i.size||e.width===`target`)&&a.push(ju({...typeof i.size==`boolean`?{}:i.size,apply({rects:n,availableWidth:r,availableHeight:a,...o}){let s=t().refs.floating.current?.style??{};i.size&&(typeof i.size==`object`&&i.size.apply?i.size.apply({rects:n,availableWidth:r,availableHeight:a,...o}):Object.assign(s,{maxWidth:`${r}px`,maxHeight:`${a}px`})),e.width===`target`&&Object.assign(s,{width:`${n.reference.width}px`})}})),a}function Of(e){let[t,n]=Bi({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,U.useRef)(t),i=(0,U.useRef)(!1),[a,o]=(0,U.useState)(null),s=e.preventPositionChangeWhenVisible!==!1,c=(0,U.useRef)(t);t!==c.current&&(c.current=t,t&&a!==null&&o(null));let l=(0,U.useRef)(e.position);e.position!==l.current&&(l.current=e.position,i.current=!1,a!==null&&o(null));let u=(0,U.useCallback)(()=>o(null),[]),d=()=>{t&&!e.disabled&&n(!1)},f=()=>{e.disabled||n(!t)},p=bd({open:t,strategy:e.strategy,placement:s?a??e.position:e.position,middleware:Df(e,()=>p,s&&a!==null,s),whileElementsMounted:e.keepMounted?void 0:uu});(0,U.useEffect)(()=>{if(!e.keepMounted)return;let n=p.refs.reference.current,r=p.refs.floating.current;if(t&&n&&r)return uu(n,r,p.update)},[e.keepMounted,t,p.update,p.elements.reference,p.elements.floating]),yi(()=>{if(!t){i.current=!1;return}if(!s||a!==null)return;let e=p.refs.floating.current;if(e&&e.offsetHeight!==0&&e.offsetWidth!==0){if(!i.current){i.current=!0,p.update();return}p.isPositioned&&o(p.placement)}},[s,t,p.isPositioned,p.placement,a,p.update]);let m=(0,U.useRef)(p.placement);return yi(()=>{m.current!==p.placement&&(m.current=p.placement,e.onPositionChange?.(p.placement))},[p.placement]),xi(()=>{t!==r.current&&(t?e.onOpen?.():e.onClose?.()),r.current=t},[t,e.onClose,e.onOpen]),{floating:p,controlled:typeof e.opened==`boolean`,opened:t,onClose:d,onToggle:f,resetLockedPlacement:u}}var kf={position:`bottom`,offset:8,transitionProps:{transition:`fade`,duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,preventPositionChangeWhenVisible:!0,clickOutsideEvents:[`mousedown`,`touchstart`],zIndex:qr(`popover`),__staticSelector:`Popover`,width:`max-content`},Af=da((e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:Qr(t),"--popover-shadow":ti(n)}}));function jf(e){let t=K(`Popover`,kf,e),{children:n,position:r,offset:i,onPositionChange:a,opened:o,transitionProps:s,onExitTransitionEnd:c,onEnterTransitionEnd:l,width:u,middlewares:d,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:h,arrowPosition:g,unstyled:_,classNames:v,styles:y,closeOnClickOutside:b,withinPortal:x,portalProps:S,closeOnEscape:C,clickOutsideEvents:w,trapFocus:T,onClose:E,onDismiss:D,onOpen:O,onChange:k,zIndex:A,radius:j,shadow:M,id:N,defaultOpened:P,__staticSelector:F,withRoles:I,disabled:L,returnFocus:R,variant:ee,keepMounted:z,keepMountedMode:B,vars:te,floatingStrategy:ne,withOverlay:re,overlayProps:ie,hideDetached:ae,attributes:oe,preventPositionChangeWhenVisible:se,...ce}=t,le=q({name:F,props:t,classes:Sf,classNames:v,styles:y,unstyled:_,attributes:oe,rootSelector:`dropdown`,vars:te,varsResolver:Af}),{resolvedStyles:V}=mo({classNames:v,styles:y,props:t}),ue=(0,U.useRef)(null),[de,fe]=(0,U.useState)(null),[pe,me]=(0,U.useState)(null),{dir:he}=_s(),ge=Ya(),_e=Fi(N),ve=Of({middlewares:d,width:u,position:Xd(he,r),offset:typeof i==`number`?i+(f?p/2:0):i,arrowRef:ue,arrowOffset:m,onPositionChange:a,opened:o,defaultOpened:P,onChange:k,onOpen:O,onClose:E,onDismiss:D,strategy:ne,disabled:L,preventPositionChangeWhenVisible:se,keepMounted:z});pi(()=>{b&&(ve.onClose(),D?.())},w,[de,pe]);let ye=(0,U.useCallback)(e=>{fe(e),ve.floating.refs.setReference(e)},[ve.floating.refs.setReference]),be=(0,U.useCallback)(e=>{me(e),ve.floating.refs.setFloating(e)},[ve.floating.refs.setFloating]),xe=(0,U.useCallback)(()=>{s?.onExited?.(),c?.(),ve.resetLockedPlacement()},[s?.onExited,c,ve.resetLockedPlacement]),Se=(0,U.useCallback)(()=>{s?.onEntered?.(),l?.()},[s?.onEntered,l]);return(0,G.jsxs)(gf,{value:{returnFocus:R,disabled:L,controlled:ve.controlled,reference:ye,floating:be,x:ve.floating.x,y:ve.floating.y,arrowX:ve.floating?.middlewareData?.arrow?.x,arrowY:ve.floating?.middlewareData?.arrow?.y,opened:ve.opened,arrowRef:ue,transitionProps:{...s,onExited:xe,onEntered:Se},width:u,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:h,arrowPosition:g,placement:ve.floating.placement,trapFocus:T,withinPortal:x,portalProps:S,zIndex:A,radius:j,shadow:M,closeOnEscape:C,onDismiss:D,onClose:ve.onClose,onToggle:ve.onToggle,getTargetId:()=>_e,getDropdownId:()=>`${_e}-dropdown`,withRoles:I,targetProps:ce,__staticSelector:F,classNames:v,styles:y,unstyled:_,variant:ee,keepMounted:z,keepMountedMode:B,getStyles:le,resolvedStyles:V,floatingStrategy:ne,referenceHidden:ae&&ge!==`test`?ve.floating.middlewareData.hide?.referenceHidden:!1},children:[n,re&&(0,G.jsx)(pf,{transition:`fade`,mounted:ve.opened,duration:s?.duration||250,exitDuration:s?.exitDuration||250,children:e=>(0,G.jsx)(sf,{withinPortal:x,children:(0,G.jsx)(tf,{...ie,...le(`overlay`,{className:ie?.className,style:[e,ie?.style]})})})})]})}jf.Target=Tf,jf.Dropdown=Cf,jf.ContextMenu=yf,jf.varsResolver=Af,jf.displayName=`@mantine/core/Popover`,jf.extend=e=>e,jf.withProps=e=>{let t=t=>(0,G.jsx)(jf,{...e,...t});return t.extend=jf.extend,t.displayName=`WithProps(${jf.displayName})`,t};var Mf={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},Nf=({className:e,...t})=>(0,G.jsxs)(Y,{component:`span`,className:pa(Mf.barsLoader,e),...t,children:[(0,G.jsx)(`span`,{className:Mf.bar}),(0,G.jsx)(`span`,{className:Mf.bar}),(0,G.jsx)(`span`,{className:Mf.bar})]});Nf.displayName=`@mantine/core/Bars`;var Pf=({className:e,...t})=>(0,G.jsxs)(Y,{component:`span`,className:pa(Mf.dotsLoader,e),...t,children:[(0,G.jsx)(`span`,{className:Mf.dot}),(0,G.jsx)(`span`,{className:Mf.dot}),(0,G.jsx)(`span`,{className:Mf.dot})]});Pf.displayName=`@mantine/core/Dots`;var Ff=({className:e,...t})=>(0,G.jsx)(Y,{component:`span`,className:pa(Mf.ovalLoader,e),...t});Ff.displayName=`@mantine/core/Oval`;var If={bars:Nf,oval:Ff,dots:Pf},Lf={loaders:If,type:`oval`},Rf=da((e,{size:t,color:n})=>({root:{"--loader-size":Xr(t,`loader-size`),"--loader-color":n?ka(n,e):void 0}})),zf=J(e=>{let t=K(`Loader`,Lf,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:c,styles:l,unstyled:u,loaders:d,variant:f,children:p,attributes:m,...h}=t,g=q({name:`Loader`,props:t,classes:Mf,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:Rf});return p?(0,G.jsx)(Y,{...g(`root`),...h,children:p}):(0,G.jsx)(Y,{...g(`root`),component:d[i],variant:f,size:n,...h})});zf.defaultLoaders=If,zf.classes=Mf,zf.varsResolver=Rf,zf.displayName=`@mantine/core/Loader`;var Bf={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},Vf={orientation:`horizontal`},Hf=da((e,{borderWidth:t})=>({group:{"--ai-border-width":W(t)}})),Uf=J(e=>{let t=K(`ActionIconGroup`,Vf,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,variant:u,mod:d,attributes:f,...p}=t,m=q({name:`ActionIconGroup`,props:t,classes:Bf,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:Hf,rootSelector:`group`});return(0,G.jsx)(Y,{...m(`group`),variant:u,mod:[{orientation:s},d],role:`group`,...p})});Uf.classes=Bf,Uf.varsResolver=Hf,Uf.displayName=`@mantine/core/ActionIconGroup`;var Wf=da((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":Xr(o,`section-height`),"--section-padding-x":Xr(o,`section-padding-x`),"--section-fz":$r(o),"--section-radius":t===void 0?void 0:Qr(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Gf=J(e=>{let t=K(`ActionIconGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,variant:c,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t,m=q({name:`ActionIconGroupSection`,props:t,classes:Bf,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:Wf,rootSelector:`groupSection`});return(0,G.jsx)(Y,{...m(`groupSection`),variant:c,...p})});Gf.classes=Bf,Gf.varsResolver=Wf,Gf.displayName=`@mantine/core/ActionIconGroupSection`;var Kf=da((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ai-size":Xr(t,`ai-size`),"--ai-radius":n===void 0?void 0:Qr(n),"--ai-bg":a||r?s.background:void 0,"--ai-hover":a||r?s.hover:void 0,"--ai-hover-color":a||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":a||r?s.border:void 0}}}),qf=ls(e=>{let t=K(`ActionIcon`,null,e),{className:n,unstyled:r,variant:i,classNames:a,styles:o,style:s,loading:c,loaderProps:l,size:u,color:d,radius:f,__staticSelector:p,gradient:m,vars:h,children:g,disabled:_,"data-disabled":v,autoContrast:y,mod:b,attributes:x,...S}=t,C=q({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:Bf,classNames:a,styles:o,unstyled:r,attributes:x,vars:h,varsResolver:Kf});return(0,G.jsxs)(Ld,{...C(`root`,{active:!_&&!c&&!v}),"aria-busy":c||void 0,...S,unstyled:r,variant:i,size:u,disabled:_||c,mod:[{loading:c,disabled:_||v},b],children:[typeof c==`boolean`&&(0,G.jsx)(pf,{mounted:c,transition:`slide-down`,duration:150,children:e=>(0,G.jsx)(Y,{component:`span`,...C(`loader`,{style:e}),"aria-hidden":!0,children:(0,G.jsx)(zf,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...l})})}),(0,G.jsx)(Y,{component:`span`,mod:{loading:c},...C(`icon`),children:g})]})});qf.classes=Bf,qf.varsResolver=Kf,qf.displayName=`@mantine/core/ActionIcon`,qf.Group=Uf,qf.GroupSection=Gf;function Jf({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,G.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,G.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}Jf.displayName=`@mantine/core/CloseIcon`;var Yf={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},Xf={variant:`subtle`},Zf=da((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":Xr(t,`cb-size`),"--cb-radius":n===void 0?void 0:Qr(n),"--cb-icon-size":W(r)}})),Qf=ls(e=>{let t=K(`CloseButton`,Xf,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:c,styles:l,unstyled:u,"data-disabled":d,disabled:f,variant:p,icon:m,mod:h,attributes:g,__staticSelector:_,...v}=t,y=q({name:_||`CloseButton`,props:t,className:o,style:c,classes:Yf,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:Zf});return(0,G.jsxs)(Ld,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,G.jsx)(Jf,{}),r]})});Qf.classes=Yf,Qf.varsResolver=Zf,Qf.displayName=`@mantine/core/CloseButton`;function $f(e){return U.Children.toArray(e).filter(Boolean)}var ep={root:`m_4081bf90`},tp={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},np=da((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":Zr(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),X=J(e=>{let t=K(`Group`,tp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:c,align:l,justify:u,wrap:d,grow:f,preventGrowOverflow:p,vars:m,variant:h,__size:g,mod:_,attributes:v,...y}=t,b=$f(s),x=b.length,S=Zr(c??`md`),C=q({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:ep,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:np});return(0,G.jsx)(Y,{...C(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});X.classes=ep,X.varsResolver=np,X.displayName=`@mantine/core/Group`;var[rp,ip]=zr(`ModalBase component was not found in tree`);function ap({opened:e,transitionDuration:t}){let[n,r]=(0,U.useState)(e),i=(0,U.useRef)(-1),a=Wi()?0:t;return(0,U.useEffect)(()=>(e?(r(!0),window.clearTimeout(i.current)):a===0?r(!1):i.current=window.setTimeout(()=>r(!1),a),()=>window.clearTimeout(i.current)),[e,a]),n}function op({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:i,onClose:a,returnFocus:o,handledEscapeEvents:s}){let c=Fi(e),[l,u]=(0,U.useState)(!1),[d,f]=(0,U.useState)(!1),p=ap({opened:n,transitionDuration:typeof t?.duration==`number`?t?.duration:200});return Ii(`keydown`,e=>{e.key===`Escape`&&i&&!e.isComposing&&n&&!s?.has(e)&&e.target?.getAttribute(`data-mantine-stop-propagation`)!==`true`&&(s?.add(e),a())},{capture:!0}),Si({opened:n,shouldReturnFocus:r&&o}),{_id:c,titleMounted:l,bodyMounted:d,shouldLockScroll:p,setTitleMounted:u,setBodyMounted:f}}var sp=function(){return sp=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},sp.apply(this,arguments)};function cp(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 lp(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 up=`right-scroll-bar-position`,dp=`width-before-scroll-bar`,fp=`with-scroll-bars-hidden`,pp=`--removed-body-scroll-bar-size`;function mp(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function hp(e,t){var n=(0,U.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 gp=typeof window<`u`?U.useLayoutEffect:U.useEffect,_p=new WeakMap;function vp(e,t){var n=hp(t||null,function(t){return e.forEach(function(e){return mp(e,t)})});return gp(function(){var t=_p.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||mp(e,null)}),i.forEach(function(e){r.has(e)||mp(e,a)})}_p.set(n,e)},[e]),n}function yp(e){return e}function bp(e,t){t===void 0&&(t=yp);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 xp(e){e===void 0&&(e={});var t=bp(null);return t.options=sp({async:!0,ssr:!1},e),t}var Sp=function(e){var t=e.sideCar,n=cp(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 U.createElement(r,sp({},n))};Sp.isSideCarExport=!0;function Cp(e,t){return e.useMedium(t),Sp}var wp=xp(),Tp=function(){},Ep=U.forwardRef(function(e,t){var n=U.useRef(null),r=U.useState({onScrollCapture:Tp,onWheelCapture:Tp,onTouchMoveCapture:Tp}),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=cp(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=vp([n,t]),C=sp(sp({},b),i);return U.createElement(U.Fragment,null,u&&U.createElement(x,{sideCar:wp,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?U.cloneElement(U.Children.only(s),sp(sp({},C),{ref:S})):U.createElement(v,sp({},C,{className:c,ref:S}),s))});Ep.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ep.classNames={fullWidth:dp,zeroRight:up};var Dp=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Op(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Dp();return t&&e.setAttribute(`nonce`,t),e}function kp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ap(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var jp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Op())&&(kp(t,n),Ap(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Mp=function(){var e=jp();return function(t,n){U.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Np=function(){var e=Mp();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Pp={left:0,top:0,right:0,gap:0},Fp=function(e){return parseInt(e||``,10)||0},Ip=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[Fp(n),Fp(r),Fp(i)]},Lp=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Pp;var t=Ip(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])}},Rp=Np(),zp=`data-scroll-locked`,Bp=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
3
3
  .${fp} {
4
4
  overflow: hidden ${r};
@@ -50,7 +50,7 @@ import{C as e,D as t,E as n,O as r,S as i,T as a,_ as o,b as s,i as c,k as l,n a
50
50
  `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function Hy(e){e=Vy(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=ry);var a=e.onBlur;a===void 0&&(a=ry);var o=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l=``);var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,m=ty(e,[`decimalSeparator`,`allowedDecimalSeparators`,`thousandsGroupStyle`,`suffix`,`allowNegative`,`allowLeadingZeros`,`onKeyDown`,`onBlur`,`thousandSeparator`,`decimalScale`,`fixedDecimalScale`,`prefix`,`defaultValue`,`value`,`valueIsNumericString`,`onValueChange`]),h=Fy(e),g=h.decimalSeparator,_=h.allowedDecimalSeparators,v=function(t){return Py(t,e)},y=function(t,n){return zy(t,n,e)},b=oy(d)?u:d,x=f??Ry(b,l,t);oy(d)?oy(u)||(x||=typeof u==`number`):x||=typeof d==`number`;var S=function(e){return cy(e)?e:(typeof e==`number`&&(e=_y(e)),x&&typeof s==`number`?vy(e,s,!!c):e)},C=Ay(S(d),S(u),!!x,v,y,p),w=C[0],T=w.numAsString,E=w.formattedValue,D=C[1];return Object.assign(Object.assign({},m),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||ay(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,i=e.currentValueIndex,a=e.formattedValueIndex,o=t[i],u=r[a],f=by(n,t).to,p=function(e){return y(e).indexOf(`.`)+l.length};return d===0&&c&&s&&t[f.start]===g&&p(t)<i&&p(r)>a?!1:i>=f.start&&i<f.end&&_&&_.includes(o)&&u===g?!0:o===u},onValueChange:D,format:v,removeFormatting:y,getCaretBoundary:function(t){return By(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,u=t.selectionEnd,d=t.value;if(d===void 0&&(d=``),(r===`Backspace`||r===`Delete`)&&u<l.length&&d!==`-`){e.preventDefault();return}if(a!==u){i(e);return}r===`Backspace`&&d[0]===`-`&&a===l.length+1&&n&&yy(t,1),s&&c&&(r===`Backspace`&&d[a-1]===g?(yy(t,a-1),e.preventDefault()):r===`Delete`&&d[a]===g&&e.preventDefault()),_?.includes(r)&&d[a]===g&&yy(t,a+1);var f=o===!0?`,`:o;r===`Backspace`&&d[a-1]===f&&yy(t,a-1),r===`Delete`&&d[a]===f&&yy(t,a+1),i(e)},onBlur:function(t){var n=T;n.match(/\d/g)||(n=``),r||(n=my(n)),c&&s&&(n=vy(n,s,c)),n!==T&&D({formattedValue:Py(n,e),value:n,floatValue:parseFloat(n)},{event:t,source:ny.event}),a(t)}})}function Uy(e){var t=Hy(e);return U.createElement(Ny,Object.assign({},t))}function Wy({direction:e,style:t,...n}){return(0,G.jsx)(`svg`,{style:{width:`var(--ni-chevron-size)`,height:`var(--ni-chevron-size)`,transform:e===`up`?`rotate(180deg)`:void 0,...t},viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...n,children:(0,G.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var Gy={root:`m_e2f5cd4e`,controls:`m_95e17d22`,control:`m_80b4b171`},Ky=/^(0\.0*|-0(\.0*)?)$/,qy=/^-?0\d+(\.\d+)?\.?$/,Jy=/\.\d*0$/,Yy=/^-?\d+\.$/;function Xy(e){return typeof e==`string`&&e!==``&&!Number.isNaN(Number(e))}function Zy(e){return typeof e==`bigint`}function Qy(e){return typeof e==`number`?e<2**53-1:e===``||Xy(e)&&Number(e)<2**53-1}function $y(e,t){return e===``||e===`-`||!t&&e.startsWith(`-`)?!1:/^-?\d+$/.test(e)}function eb(e,t){return typeof e==`bigint`||e===``||$y(e,t)}function tb(e){if(!/^-?\d+$/.test(e))return null;try{return BigInt(e)}catch{return null}}function nb(e){if(typeof e==`bigint`)return e;if(typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e))return BigInt(e)}function rb(e,t,n){return t!==void 0&&e<t?t:n!==void 0&&e>n?n:e}function ib(e){return e.toString().replace(`.`,``).length}function ab(e,t){return(typeof e==`number`?e<2**53-1:!Number.isNaN(Number(e)))&&!Number.isNaN(e)&&ib(t)<14&&t!==``}function ob(e,t,n){return e===void 0||(t===void 0||e>=t)&&(n===void 0||e<=n)}var sb={size:`sm`,step:1,clampBehavior:`blur`,allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[`.`,`,`]},cb=da((e,{size:t})=>({controls:{"--ni-chevron-size":Xr(t,`ni-chevron-size`)}}));function lb(e,t,n){let r=e.toString(),i=Yy.test(r),a=r.replace(/^0+(?=\d)/,``),o=parseFloat(a);if(Number.isNaN(o))return a;if(o>2**53-1)return t===void 0?a:t;let s=si(o,n,t);return i?`${s.toString().replace(/^0+(?=\d)/,``)}.`:s}function ub(e,t){if(e===``||e===`-`)return e;let n=tb(e);return n===null?e:t.clampBehavior===`blur`?rb(n,t.min,t.max):n}var db=cs(e=>{let t=K([`Input`,`InputWrapper`,`NumberInput`],sb,e),{className:n,classNames:r,styles:i,unstyled:a,vars:o,onChange:s,onValueChange:c,value:l,defaultValue:u,max:d,min:f,step:p,hideControls:m,rightSection:h,isAllowed:g,clampBehavior:_,onBlur:v,allowDecimal:y,decimalScale:b,onKeyDown:x,onKeyDownCapture:S,handlersRef:C,startValue:w,disabled:T,rightSectionPointerEvents:E,allowNegative:D,readOnly:O,size:k,rightSectionWidth:A,stepHoldInterval:j,stepHoldDelay:M,allowLeadingZeros:N,withKeyboardEvents:P,trimLeadingZeroesOnBlur:F,allowedDecimalSeparators:I,selectAllOnFocus:L,onMinReached:R,onMaxReached:ee,onFocus:z,attributes:B,ref:te,...ne}=t,re=D??!0,ie=N??!0,ae=q({name:`NumberInput`,classes:Gy,props:t,classNames:r,styles:i,unstyled:a,attributes:B,vars:o,varsResolver:cb}),{resolvedClassNames:oe,resolvedStyles:se}=mo({classNames:r,styles:i,props:t}),ce=(0,U.useRef)(Zy(l)||Zy(u)?`bigint`:`number`);Zy(l)?ce.current=`bigint`:typeof l==`number`&&(ce.current=`number`);let le=ce.current===`bigint`,[V,ue]=Bi({value:l,defaultValue:u,finalValue:``,onChange:s}),de=M!==void 0&&j!==void 0,fe=(0,U.useRef)(null),pe=(0,U.useRef)(null),me=(0,U.useRef)(0),he=typeof f==`number`?f:void 0,ge=typeof d==`number`?d:void 0,_e=typeof p==`number`?p:sb.step,ve=typeof w==`number`?w:sb.startValue,ye=nb(f),be=nb(d),xe=nb(p)??BigInt(1),Se=nb(w)??BigInt(0),Ce=e=>!$y(e,re)||ie&&qy.test(e)?e:tb(e)??e,we=e=>{let t=Number(e);return Number.isSafeInteger(t)?t:void 0},Te=(e,t)=>{t.source===`event`&&ue(le?Ce(e.value):ab(e.floatValue,e.value)&&!Ky.test(e.value)&&!(ie&&qy.test(e.value))&&!Jy.test(e.value)&&!Yy.test(e.value)?e.floatValue:e.value),c?.(e,t)},Ee=e=>{let t=String(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},De=e=>{fe.current&&e!==void 0&&fe.current.setSelectionRange(e,e)},Oe=(0,U.useRef)(Jr);Oe.current=()=>{if(le){if(!eb(V,re))return;let e,t=V;if(typeof t==`bigint`){let n=t+xe;be!==void 0&&n>be&&ee?.(),e=be!==void 0&&n>be?be:n}else if(typeof t==`string`&&t!==``){let n=tb(t);if(n===null)return;let r=n+xe;be!==void 0&&r>be&&ee?.(),e=be!==void 0&&r>be?be:r}else e=rb(Se,ye,be);let n=e.toString();ue(e),c?.({floatValue:we(e),formattedValue:n,value:n},{source:`increment`}),setTimeout(()=>De(fe.current?.value.length),0);return}if(!Qy(V))return;let e,t=Ee(V),n=Ee(_e),r=Math.max(t,n),i=10**r;if(!Xy(V)&&(typeof V!=`number`||Number.isNaN(V)))e=si(ve,he,ge);else if(ge!==void 0){let t=(Math.round(Number(V)*i)+Math.round(_e*i))/i;t>ge&&ee?.(),e=t<=ge?t:ge}else e=(Math.round(Number(V)*i)+Math.round(_e*i))/i;let a=e.toFixed(r);ue(parseFloat(a)),c?.({floatValue:parseFloat(a),formattedValue:a,value:a},{source:`increment`}),setTimeout(()=>De(fe.current?.value.length),0)};let ke=(0,U.useRef)(Jr);ke.current=()=>{if(le){if(!eb(V,re))return;let e,t=ye===void 0?re?void 0:BigInt(0):ye,n=V;if(typeof n==`bigint`){let r=n-xe;t!==void 0&&r<t&&R?.(),e=t!==void 0&&r<t?t:r}else if(typeof n==`string`&&n!==``){let r=tb(n);if(r===null)return;let i=r-xe;t!==void 0&&i<t&&R?.(),e=t!==void 0&&i<t?t:i}else e=rb(Se,t,be);let r=e.toString();ue(e),c?.({floatValue:we(e),formattedValue:r,value:r},{source:`decrement`}),setTimeout(()=>De(fe.current?.value.length),0);return}if(!Qy(V))return;let e,t=he===void 0?re?-(2**53-1):0:he,n=Ee(V),r=Ee(_e),i=Math.max(n,r),a=10**i;if(!Xy(V)&&typeof V!=`number`||Number.isNaN(V))e=si(ve,t,ge);else{let n=(Math.round(Number(V)*a)-Math.round(_e*a))/a;t!==void 0&&n<t&&R?.(),e=t!==void 0&&n<t?t:n}let o=e.toFixed(i);ue(parseFloat(o)),c?.({floatValue:parseFloat(o),formattedValue:o,value:o},{source:`decrement`}),setTimeout(()=>De(fe.current?.value.length),0)};let Ae=e=>{let t=e.clipboardData.getData(`text`),n=ne.decimalSeparator||`.`,r=(I||[`.`,`,`]).filter(e=>e!==n);if(r.some(e=>t.includes(e))){e.preventDefault();let i=t;r.forEach(e=>{i=i.split(e).join(n)});let a=fe.current;if(a){let e=a.selectionStart??0,t=a.selectionEnd??0,n=a.value,r=n.substring(0,e)+i+n.substring(t);(Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set)?.call(a,r),a.dispatchEvent(new Event(`change`,{bubbles:!0}));let o=e+i.length;setTimeout(()=>De(o),0)}}ne.onPaste?.(e)},je=e=>{x?.(e),!O&&P&&(e.key===`ArrowUp`&&(e.preventDefault(),Oe.current?.()),e.key===`ArrowDown`&&(e.preventDefault(),ke.current?.()))},Me=e=>{if(S?.(e),e.key===`Backspace`){let t=fe.current;t&&t.selectionStart===0&&t.selectionStart===t.selectionEnd&&(e.preventDefault(),window.setTimeout(()=>De(0),0))}},Ne=e=>{L&&window.setTimeout(()=>fe.current?.select(),0),z?.(e)},Pe=e=>{let t=V;le?(_===`blur`&&typeof t==`bigint`&&(t=rb(t,ye,be)),F&&typeof t==`string`&&(t=ub(t,{min:ye,max:be,clampBehavior:_}))):(_===`blur`&&typeof t==`number`&&(t=si(t,he,ge)),F&&typeof t==`string`&&Ee(t)<15&&(t=lb(t,ge,he))),V!==t&&ue(t),v?.(e)};Li(C,{increment:Oe.current,decrement:ke.current});let Fe=e=>{e?Oe.current?.():ke.current?.(),me.current+=1},Ie=e=>{if(Fe(e),de){let t=typeof j==`number`?j:j(me.current);pe.current=window.setTimeout(()=>Ie(e),t)}},Le=(e,t)=>{e.preventDefault(),fe.current?.focus(),Fe(t),de&&(pe.current=window.setTimeout(()=>Ie(t),M))},Re=()=>{pe.current&&window.clearTimeout(pe.current),pe.current=null,me.current=0},ze=(0,G.jsxs)(`div`,{...ae(`controls`),children:[(0,G.jsx)(Ld,{...ae(`control`),tabIndex:-1,"aria-hidden":!0,disabled:T||typeof V==`number`&&ge!==void 0&&V>=ge||typeof V==`bigint`&&be!==void 0&&V>=be,mod:{direction:`up`},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{Le(e,!0)},onPointerUp:Re,onPointerLeave:Re,children:(0,G.jsx)(Wy,{direction:`up`})}),(0,G.jsx)(Ld,{...ae(`control`),tabIndex:-1,"aria-hidden":!0,disabled:T||typeof V==`number`&&he!==void 0&&V<=he||typeof V==`bigint`&&ye!==void 0&&V<=ye,mod:{direction:`down`},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{Le(e,!1)},onPointerUp:Re,onPointerLeave:Re,children:(0,G.jsx)(Wy,{direction:`down`})})]});return(0,G.jsx)($m,{component:Uy,allowNegative:D,className:pa(Gy.root,n),size:k,...ne,inputMode:le?`numeric`:`decimal`,readOnly:O,disabled:T,value:typeof V==`bigint`?V.toString():V,getInputRef:zi(te,fe),onValueChange:Te,rightSection:m||O||!(le?eb(V,re):Qy(V))?h:h||ze,classNames:oe,styles:se,unstyled:a,__staticSelector:`NumberInput`,decimalScale:le?0:y?b:0,onPaste:Ae,onFocus:Ne,onKeyDown:je,onKeyDownCapture:Me,rightSectionPointerEvents:E??(T?`none`:void 0),rightSectionWidth:A??`var(--ni-right-section-width-${k||`sm`})`,allowLeadingZeros:N,allowedDecimalSeparators:I,onBlur:Pe,attributes:B,isAllowed:e=>{if(g&&!g(e))return!1;if(_!==`strict`)return!0;if(!le)return ob(e.floatValue,he,ge);if(e.value===``||e.value===`-`)return!0;let t=tb(e.value);return t===null||(ye===void 0||t>=ye)&&(be===void 0||t<=be)}})});db.classes={...$m.classes,...Gy},db.varsResolver=cb,db.displayName=`@mantine/core/NumberInput`;var[fb,pb]=zr(`Pagination.Root component was not found in tree`),mb={root:`m_4addd315`,control:`m_326d024a`,dots:`m_4ad7767d`,items:`m_105fdbed`,label:`m_10817321`},hb={withPadding:!0},gb=J(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,active:o,disabled:s,withPadding:c,mod:l,...u}=K(`PaginationControl`,hb,e),d=pb(),f=s||d.disabled;return(0,G.jsx)(Ld,{disabled:f,mod:[{active:o,disabled:f,"with-padding":c},l],...d.getStyles(`control`,{className:n,style:r,classNames:t,styles:i,active:!f}),...u})});gb.classes=mb,gb.displayName=`@mantine/core/PaginationControl`;function _b({style:e,children:t,path:n,...r}){return(0,G.jsx)(`svg`,{viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`,...e},...r,children:(0,G.jsx)(`path`,{d:n,fill:`currentColor`})})}var vb=e=>(0,G.jsx)(_b,{...e,path:`M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z`}),yb=e=>(0,G.jsx)(_b,{...e,path:`M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z`}),bb=e=>(0,G.jsx)(_b,{...e,path:`M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z`}),xb=e=>(0,G.jsx)(_b,{...e,path:`M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z`}),Sb={icon:e=>(0,G.jsx)(_b,{...e,path:`M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z`})},Cb=J(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,icon:o,...s}=K(`PaginationDots`,Sb,e),c=pb();return(0,G.jsx)(Y,{...c.getStyles(`dots`,{className:n,style:r,styles:i,classNames:t}),...s,children:(0,G.jsx)(o,{style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})});Cb.classes=mb,Cb.displayName=`@mantine/core/PaginationDots`;function wb({icon:e,name:t,action:n,type:r}){let i={icon:e},a=e=>{let{icon:a,...o}=K(t,i,e),s=pb(),c=r===`next`?s.active===s.total:s.active===1;return(0,G.jsx)(gb,{disabled:s.disabled||c,onClick:s[n],withPadding:!1,...o,children:(0,G.jsx)(a,{className:`mantine-rotate-rtl`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})};return a.displayName=`@mantine/core/${t}`,os(a)}var Tb=wb({icon:vb,name:`PaginationNext`,action:`onNext`,type:`next`}),Eb=wb({icon:yb,name:`PaginationPrevious`,action:`onPrevious`,type:`previous`}),Db=wb({icon:bb,name:`PaginationFirst`,action:`onFirst`,type:`previous`}),Ob=wb({icon:xb,name:`PaginationLast`,action:`onLast`,type:`next`});function kb({dotsIcon:e}){let t=pb(),n=t.range.map((n,r)=>n===`dots`?(0,G.jsx)(Cb,{icon:e},r):(0,G.jsx)(gb,{active:n===t.active,"aria-current":n===t.active?`page`:void 0,onClick:()=>t.onChange(n),disabled:t.disabled,...t.getItemProps?.(n),children:t.getItemProps?.(n)?.children??n},r));return(0,G.jsx)(G.Fragment,{children:n})}kb.displayName=`@mantine/core/PaginationItems`;var Ab={formatLabel:({page:e,totalPages:t})=>`Page ${e} of ${t}`},jb=J(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,formatLabel:o,...s}=K(`PaginationLabel`,Ab,e),c=pb();return(0,G.jsx)(Y,{...c.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...s,children:o({page:c.active,totalPages:c.total})})});jb.classes=mb,jb.displayName=`@mantine/core/PaginationLabel`;var Mb={siblings:1,boundaries:1},Nb=da((e,{size:t,radius:n,color:r,autoContrast:i})=>({root:{"--pagination-control-radius":n===void 0?void 0:Qr(n),"--pagination-control-size":Xr(t,`pagination-control-size`),"--pagination-control-fz":$r(t),"--pagination-active-bg":r?ka(r,e):void 0,"--pagination-active-color":za(i,e)?Ia({color:r,theme:e,autoContrast:i}):void 0}})),Pb=J(e=>{let t=K(`PaginationRoot`,Mb,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,total:c,value:l,defaultValue:u,onChange:d,disabled:f,siblings:p,boundaries:m,color:h,radius:g,onNextPage:_,onPreviousPage:v,onFirstPage:y,onLastPage:b,getItemProps:x,autoContrast:S,startValue:C,layout:w,mod:T,attributes:E,...D}=t,O=q({name:`Pagination`,classes:mb,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:Nb}),{range:k,setPage:A,next:j,previous:M,active:N,first:P,last:F}=Ui({page:l,initialPage:u,onChange:d,total:c,siblings:p,boundaries:m,startValue:C});return(0,G.jsx)(fb,{value:{total:c,range:k,active:N,disabled:f,layout:w,getItemProps:x,onChange:A,onNext:ni(_,j),onPrevious:ni(v,M),onFirst:ni(y,P),onLast:ni(b,F),getStyles:O},children:(0,G.jsx)(Y,{...O(`root`),mod:[{layout:w},T],...D})})});Pb.classes=mb,Pb.varsResolver=Nb,Pb.displayName=`@mantine/core/PaginationRoot`;var Fb={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8};function Ib({children:e}){let t=pb();return(0,G.jsx)(Y,{...t.getStyles(`items`),children:e})}var Lb=J(e=>{let{withEdges:t,withControls:n,getControlProps:r,nextIcon:i,previousIcon:a,lastIcon:o,firstIcon:s,dotsIcon:c,total:l,gap:u,hideWithOnePage:d,withPages:f,layout:p,formatLabel:m,...h}=K(`Pagination`,Fb,e);if(l<=0||d&&l===1)return null;let g=f?p===`responsive`?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Ib,{children:(0,G.jsx)(kb,{dotsIcon:c})}),(0,G.jsx)(jb,{formatLabel:m})]}):(0,G.jsx)(kb,{dotsIcon:c}):null;return(0,G.jsx)(Pb,{total:l,layout:p,...h,children:(0,G.jsxs)(X,{gap:u,children:[t&&(0,G.jsx)(Db,{icon:s,...r?.(`first`)}),n&&(0,G.jsx)(Eb,{icon:a,...r?.(`previous`)}),g,n&&(0,G.jsx)(Tb,{icon:i,...r?.(`next`)}),t&&(0,G.jsx)(Ob,{icon:o,...r?.(`last`)})]})})});Lb.classes=mb,Lb.displayName=`@mantine/core/Pagination`,Lb.Root=Pb,Lb.Control=gb,Lb.Dots=Cb,Lb.First=Db,Lb.Last=Ob,Lb.Next=Tb,Lb.Previous=Eb,Lb.Items=kb,Lb.Label=jb;function Rb({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,U.useState)(n),a=(0,U.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=bd({placement:t,middleware:[Ou({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,U.useCallback)(({clientX:e,clientY:t})=>{Number.isFinite(e)&&Number.isFinite(t)&&l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,U.useEffect)(()=>{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=vc(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var zb={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},Bb={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:qr(`popover`)},Vb=da((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:Qr(t),"--tooltip-bg":n?ka(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),Hb=J(e=>{let t=K(`TooltipFloating`,Bb,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:h,zIndex:g,disabled:_,defaultOpened:v,variant:y,vars:b,portalProps:x,attributes:S,ref:C,...w}=t,T=fo(),E=q({name:`TooltipFloating`,props:t,classes:zb,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:S,rootSelector:`tooltip`,vars:b,varsResolver:Vb}),{handleMouseMove:D,x:O,y:k,opened:A,boundaryRef:j,floating:M,setOpened:N}=Rb({offset:p,position:m,defaultOpened:v}),P=ua(n);if(!P)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let F=zi(j,aa(P),C),I=P.props,L=e=>{I.onMouseEnter?.(e),D(e),N(!0)},R=e=>{I.onMouseLeave?.(e),N(!1)};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(sf,{...x,withinPortal:i,children:(0,G.jsx)(Y,{...w,...E(`tooltip`,{style:{...is(a,T),zIndex:g,display:!_&&A?`block`:`none`,top:Number.isFinite(k)?Math.round(k):``,left:Number.isFinite(O)?Math.round(O):``}}),variant:y,ref:M,mod:{multiline:h},children:f})}),(0,U.cloneElement)(P,{...I,[r]:F,onMouseEnter:L,onMouseLeave:R})]})});Hb.classes=zb,Hb.varsResolver=Vb,Hb.displayName=`@mantine/core/TooltipFloating`;var Ub=(0,U.createContext)({withinGroup:!1}),Wb={openDelay:0,closeDelay:0};function Gb(e){let{openDelay:t,closeDelay:n,children:r}=K(`TooltipGroup`,Wb,e);return(0,G.jsx)(Ub,{value:{withinGroup:!0},children:(0,G.jsx)(dd,{delay:{open:t,close:n},children:r})})}Gb.displayName=`@mantine/core/TooltipGroup`,Gb.extend=e=>e;function Kb(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function qb(e){let t=Kb(e.middlewares),n=[Du(e.offset)];return t.shift&&n.push(Ou(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?Au():Au(t.flip)),n.push(Pu({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?Nu():Nu(t.inline)):e.inline&&n.push(Nu()),n}function Jb(e){let[t,n]=(0,U.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=(0,U.use)(Ub).withinGroup,a=Fi(),o=(0,U.useCallback)(e=>{n(e),e&&g(a)},[a]),{x:s,y:c,context:l,refs:u,placement:d,middlewareData:{arrow:{x:f,y:p}={}}}=bd({strategy:e.strategy,placement:e.position,open:r,onOpenChange:o,middleware:qb(e),whileElementsMounted:uu}),{delay:m,currentId:h,setCurrentId:g}=fd(l,{id:a}),{getReferenceProps:_,getFloatingProps:v}=wd([sd(l,{enabled:e.events?.hover,delay:i?m:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch,handleClose:e.interactive?Ad():null}),Sd(l,{enabled:e.events?.focus,visibleOnly:!0}),Ed(l,{role:`tooltip`}),vd(l,{enabled:e.opened===void 0})]),y=(0,U.useRef)(d);yi(()=>{y.current!==d&&(y.current=d,e.onPositionChange?.(d))},[d]);let b=r&&h&&h!==a;return{x:s,y:c,arrowX:f,arrowY:p,reference:u.setReference,floating:u.setFloating,getFloatingProps:v,getReferenceProps:_,isGroupPhase:b,opened:r,placement:d}}var Yb={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:qr(`popover`),middlewares:{flip:!0,shift:!0,inline:!1}},Xb=da((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:Qr(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),Zb=J(e=>{let t=K(`Tooltip`,Yb,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:h,unstyled:g,style:_,className:v,withArrow:y,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,offset:w,transitionProps:T,multiline:E,events:D,interactive:O,zIndex:k,disabled:A,onClick:j,onMouseEnter:M,onMouseLeave:N,inline:P,variant:F,keepMounted:I,vars:L,portalProps:R,mod:ee,floatingStrategy:z,middlewares:B,autoContrast:te,attributes:ne,target:re,ref:ie,...ae}=t,{dir:oe}=_s(),se=(0,U.useRef)(null),ce=Jb({position:Xd(oe,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,events:D,interactive:O,arrowRef:se,arrowOffset:x,offset:typeof w==`number`?w+(y?b/2:0):w,inline:P,strategy:z,middlewares:B});(0,U.useEffect)(()=>{let e=re instanceof HTMLElement?re:typeof re==`string`?document.querySelector(re):re?.current||null;e&&ce.reference(e)},[re,ce]);let le=q({name:`Tooltip`,props:t,classes:zb,className:v,style:_,classNames:m,styles:h,unstyled:g,attributes:ne,rootSelector:`tooltip`,vars:L,varsResolver:Xb}),V=ua(n);if(!re&&!V)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let ue=le(`tooltip`),de=O&&!A&&!!ce.opened,fe=C===`merge`&&y?Jd({position:ce.placement,dir:oe}):void 0;if(re){let e=hf(T,{duration:100,transition:`fade`});return(0,G.jsx)(G.Fragment,{children:(0,G.jsx)(sf,{...R,withinPortal:d,children:(0,G.jsx)(pf,{...e,keepMounted:I,mounted:!A&&!!ce.opened,duration:ce.isGroupPhase?10:e.duration,children:e=>(0,G.jsxs)(Y,{...ae,"data-fixed":z===`fixed`||void 0,variant:F,mod:[{multiline:E,interactive:de},ee],...ue,...ce.getFloatingProps({ref:ce.floating,className:ue.className,style:{...ue.style,...e,...fe,zIndex:k,top:ce.y??0,left:ce.x??0}}),children:[a,(0,G.jsx)(Yd,{ref:se,arrowX:ce.arrowX,arrowY:ce.arrowY,visible:y,position:ce.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...le(`arrow`)})]})})})})}let pe=V.props,me=zi(ce.reference,aa(V),ie),he=hf(T,{duration:100,transition:`fade`});return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(sf,{...R,withinPortal:d,children:(0,G.jsx)(pf,{...he,keepMounted:I,mounted:!A&&!!ce.opened,duration:ce.isGroupPhase?10:he.duration,children:e=>(0,G.jsxs)(Y,{...ae,"data-fixed":z===`fixed`||void 0,variant:F,mod:[{multiline:E,interactive:de},ee],...ce.getFloatingProps({ref:ce.floating,className:le(`tooltip`).className,style:{...le(`tooltip`).style,...e,...fe,zIndex:k,top:ce.y??0,left:ce.x??0}}),children:[a,(0,G.jsx)(Yd,{ref:se,arrowX:ce.arrowX,arrowY:ce.arrowY,visible:y,position:ce.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...le(`arrow`)})]})})}),(0,U.cloneElement)(V,ce.getReferenceProps({onClick:j,onMouseEnter:M,onMouseLeave:N,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...pe,className:pa(v,pe.className),[i]:me}))]})});Zb.classes=zb,Zb.varsResolver=Xb,Zb.displayName=`@mantine/core/Tooltip`,Zb.Floating=Hb,Zb.Group=Gb;var Qb={root:`m_cf365364`,indicator:`m_9e182ccd`,label:`m_1738fcb2`,input:`m_1714d588`,control:`m_69686b9b`,innerLabel:`m_78882f40`},$b={withItemsBorders:!0},ex=da((e,{radius:t,color:n,transitionDuration:r,size:i,transitionTimingFunction:a})=>({root:{"--sc-radius":t===void 0?void 0:Qr(t),"--sc-color":n?ka(n,e):void 0,"--sc-shadow":n?void 0:`var(--mantine-shadow-xs)`,"--sc-transition-duration":r===void 0?void 0:`${r}ms`,"--sc-transition-timing-function":a,"--sc-padding":Xr(i,`sc-padding`),"--sc-font-size":$r(i)}})),tx=cs(e=>{let t=K(`SegmentedControl`,$b,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,data:c,value:l,defaultValue:u,onChange:d,size:f,name:p,disabled:m,readOnly:h,fullWidth:g,orientation:_,radius:v,color:y,transitionDuration:b,transitionTimingFunction:x,variant:S,autoContrast:C,withItemsBorders:w,mod:T,attributes:E,ref:D,...O}=t,k=q({name:`SegmentedControl`,props:t,classes:Qb,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:ex}),A=fo(),j=c.map(e=>oa(e)?{label:`${e}`,value:e}:e),M=Zi(),[N,P]=(0,U.useState)(ci()),[F,I]=(0,U.useState)(null),[L,R]=(0,U.useState)({}),ee=(e,t)=>{e!==null&&L[t]!==e&&(L[t]=e,R({...L}))},[z,B]=Bi({value:l,defaultValue:u,finalValue:Array.isArray(c)?j.find(e=>!e.disabled)?.value??c[0]?.value??null:null,onChange:d}),te=Fi(p),ne=j.map(e=>`${e.value}`),re=j.map(e=>(0,U.createElement)(Y,{...k(`control`),mod:{active:z===e.value,orientation:_},key:`${e.value}`},(0,U.createElement)(`input`,{...k(`input`),disabled:m||e.disabled,type:`radio`,name:te,value:`${e.value}`,id:`${te}-${e.value}`,checked:z===e.value,onChange:()=>!h&&B(e.value),"data-focus-ring":A.focusRing,key:`${e.value}-input`}),(0,U.createElement)(Y,{component:`label`,...k(`label`),mod:{active:z===e.value&&!(m||e.disabled),disabled:m||e.disabled,"read-only":h},htmlFor:`${te}-${e.value}`,ref:t=>ee(t,`${e.value}`),__vars:{"--sc-label-color":y===void 0?void 0:Ia({color:y,theme:A,autoContrast:C})},key:`${e.value}-label`},(0,G.jsx)(`span`,{...k(`innerLabel`),children:e.label})))),ie=zi(D,I);return qi(()=>{P(ci())},[c.length]),qi(()=>{R(e=>{let t={};return ne.forEach(n=>{n in e&&(t[n]=e[n])}),Object.keys(t).length===Object.keys(e).length?e:t})},[ne]),c.length===0?null:(0,G.jsxs)(Y,{...k(`root`),variant:S,size:f,ref:ie,mod:[{"full-width":g,orientation:_,initialized:M,"with-items-borders":w},T],...O,role:`radiogroup`,"data-disabled":m,children:[z!==void 0&&(0,G.jsx)(ih,{target:L[`${z}`],parent:F,component:`span`,transitionDuration:`var(--sc-transition-duration)`,...k(`indicator`)},N),re]})});tx.classes=Qb,tx.varsResolver=ex,tx.displayName=`@mantine/core/SegmentedControl`;var nx={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},rx=cs(e=>{let t=K([`Input`,`InputWrapper`,`Select`],nx,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:u,onBlur:d,onClick:f,onChange:p,data:m,value:h,defaultValue:g,selectFirstOptionOnChange:_,selectFirstOptionOnDropdownOpen:v,onOptionSubmit:y,comboboxProps:b,readOnly:x,disabled:S,filter:C,limit:w,withScrollArea:T,maxDropdownHeight:E,floatingHeight:D,size:O,searchable:k,rightSection:A,checkIconPosition:j,withCheckIcon:M,withAlignedLabels:N,nothingFoundMessage:P,name:F,form:I,searchValue:L,defaultSearchValue:R,onSearchChange:ee,allowDeselect:z,error:B,rightSectionPointerEvents:te,id:ne,clearable:re,clearSectionMode:ie,clearButtonProps:ae,hiddenInputProps:oe,renderOption:se,onClear:ce,autoComplete:le,scrollAreaProps:V,__defaultRightSection:ue,__clearSection:de,__clearable:fe,chevronColor:pe,autoSelectOnBlur:me,openOnFocus:he,attributes:ge,..._e}=t,ve=(0,U.useMemo)(()=>_h(m),[m]),ye=(0,U.useRef)({}),be=(0,U.useMemo)(()=>vh(ve),[ve]),xe=Fi(ne),[Se,Ce,we]=Bi({value:h,defaultValue:g,finalValue:null,onChange:p}),Te=Se==null?void 0:`${Se}`in be?be[`${Se}`]:ye.current[`${Se}`],Ee=Yi(Te),[De,Oe,ke]=Bi({value:L,defaultValue:R,finalValue:Te?Te.label:``,onChange:ee}),Ae=Kh({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),v?Ae.selectFirstOption():Ae.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(Ae.resetSelectedOption,0)}}),je=e=>{Oe(e),Ae.resetSelectedOption()},{resolvedClassNames:Me,resolvedStyles:Ne}=mo({props:t,styles:r,classNames:n});(0,U.useEffect)(()=>{_&&Ae.selectFirstOption()},[_,De]),(0,U.useEffect)(()=>{h===null&&je(``),h!=null&&Te&&(Ee?.value!==Te.value||Ee?.label!==Te.label)&&je(Te.label)},[h,Te]),(0,U.useEffect)(()=>{!we&&!ke&&je(Se==null?``:`${Se}`in be?be[`${Se}`]?.label:ye.current[`${Se}`]?.label||``)},[be,Se]),(0,U.useEffect)(()=>{Se&&`${Se}`in be&&(ye.current[`${Se}`]=be[`${Se}`])},[be,Se]);let Pe=(0,G.jsx)(Yh.ClearButton,{...ae,onClear:()=>{Ce(null,null),je(``),ce?.()}}),Fe=re&&Se!=null&&!S&&!x;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(Yh,{store:Ae,__staticSelector:`Select`,classNames:Me,styles:Ne,unstyled:i,readOnly:x,size:O,attributes:ge,floatingHeight:D,keepMounted:me,onOptionSubmit:e=>{y?.(e);let t=z&&`${be[e].value}`==`${Se}`?null:be[e],n=t?t.value:null;n!==Se&&Ce(n,t),!we&&je(n==null?``:t?.label||``),Ae.closeDropdown()},...b,children:[(0,G.jsx)(Yh.Target,{targetType:k?`input`:`button`,autoComplete:le,withExpandedAttribute:!0,children:(0,G.jsx)($m,{id:xe,__defaultRightSection:(0,G.jsx)(Yh.Chevron,{size:O,error:B,unstyled:i,color:pe}),__clearSection:Pe,__clearable:Fe,__clearSectionMode:ie,rightSection:A,rightSectionPointerEvents:te||`none`,..._e,size:O,__staticSelector:`Select`,disabled:S,readOnly:x||!k,value:De,onChange:e=>{if(Jg(e)){if(!x){let t=Yv(be,e.currentTarget.value);t&&`${t.value}`!=`${Se}`&&(Ce(t.value,t),!we&&je(t.label))}return}je(e.currentTarget.value),Ae.openDropdown(),_&&Ae.selectFirstOption()},onFocus:e=>{he&&k&&Ae.openDropdown(),u?.(e)},onBlur:e=>{me&&Ae.clickSelectedOption(),k&&Ae.closeDropdown();let t=Se!=null&&(`${Se}`in be?be[`${Se}`]:ye.current[`${Se}`]);je(t&&t.label||``),d?.(e)},onClick:e=>{k?Ae.openDropdown():Ae.toggleDropdown(),f?.(e)},classNames:Me,styles:Ne,unstyled:i,pointer:!k,error:B,attributes:ge})}),(0,G.jsx)(wg,{data:ve,hidden:x||S,filter:C,search:De,limit:w,hiddenWhenEmpty:!P,withScrollArea:T,maxDropdownHeight:E,filterOptions:!!k&&Te?.label!==De,value:Se,checkIconPosition:j,withCheckIcon:M,withAlignedLabels:N,nothingFoundMessage:P,unstyled:i,labelId:_e.label?`${xe}-label`:void 0,"aria-label":_e.label?void 0:_e[`aria-label`],renderOption:se,scrollAreaProps:V})]}),(0,G.jsx)(Yh.HiddenInput,{value:Se,name:F,form:I,disabled:S,...oe})]})});rx.classes={...$m.classes,...Yh.classes},rx.displayName=`@mantine/core/Select`;var ix={root:`m_6d731127`},ax={gap:`md`,align:`stretch`,justify:`flex-start`},ox=da((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":Zr(t),"--stack-align":n,"--stack-justify":r}})),sx=J(e=>{let t=K(`Stack`,ax,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,align:c,justify:l,gap:u,variant:d,attributes:f,...p}=t,m=q({name:`Stack`,props:t,classes:ix,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:ox});return(0,G.jsx)(Y,{...m(`root`),variant:d,...p})});sx.classes=ix,sx.varsResolver=ox,sx.displayName=`@mantine/core/Stack`;var cx=(0,U.createContext)(null),lx={hiddenInputValuesSeparator:`,`},ux=cs((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,readOnly:s,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:u,maxSelectedValues:d,disabled:f,...p}=K(`SwitchGroup`,lx,e),[m,h]=Bi({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=e.currentTarget.value;if(s)return;let n=m.includes(t);!n&&d&&m.length>=d||h(n?m.filter(e=>e!==t):[...m,t])},_=e=>{if(f)return!0;if(!d)return!1;let t=m.includes(e),n=m.length>=d;return!t&&n},v=m.join(l);return(0,G.jsx)(cx,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,G.jsxs)(Xm.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`SwitchGroup`,children:[(0,G.jsx)(Xh,{role:`group`,children:o}),(0,G.jsx)(`input`,{type:`hidden`,name:c,value:v,...u})]})})}));ux.classes=Xm.Wrapper.classes,ux.displayName=`@mantine/core/SwitchGroup`;var dx={root:`m_5f93f3bb`,input:`m_926b4011`,track:`m_9307d992`,thumb:`m_93039a1d`,trackLabel:`m_8277e082`},fx={labelPosition:`right`,withThumbIndicator:!0},px=da((e,{radius:t,color:n,size:r})=>({root:{"--switch-radius":t===void 0?void 0:Qr(t),"--switch-height":Xr(r,`switch-height`),"--switch-width":Xr(r,`switch-width`),"--switch-thumb-size":Xr(r,`switch-thumb-size`),"--switch-label-font-size":Xr(r,`switch-label-font-size`),"--switch-track-label-padding":Xr(r,`switch-track-label-padding`),"--switch-color":n?ka(n,e):void 0}})),mx=J(e=>{let t=K(`Switch`,fx,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,label:l,offLabel:u,onLabel:d,id:f,size:p,radius:m,wrapperProps:h,thumbIcon:g,checked:_,defaultChecked:v,onChange:y,labelPosition:b,description:x,error:S,disabled:C,variant:w,rootRef:T,mod:E,withThumbIndicator:D,attributes:O,...k}=t,A=(0,U.use)(cx),j=p||A?.size,M=q({name:`Switch`,props:t,classes:dx,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:O,vars:s,varsResolver:px}),{styleProps:N,rest:P}=Po(k),F=Fi(f),I=[x?`${F}-description`:void 0,S&&typeof S!=`boolean`?`${F}-error`:void 0,P[`aria-describedby`]].filter(Boolean).join(` `)||void 0,L={checked:A?.value.includes(P.value)??_,onChange:e=>{A?.onChange(e),y?.(e)}},R=C||A?.isDisabled?.(P.value),[ee,z]=Bi({value:L.checked??_,defaultValue:v,finalValue:!1});return(0,G.jsxs)(pg,{...M(`root`),__staticSelector:`Switch`,__stylesApiProps:t,id:F,size:j,labelPosition:b,label:l,description:x,error:S,disabled:R,bodyElement:`label`,labelElement:`span`,classNames:n,styles:a,unstyled:o,"data-checked":L.checked,variant:w,ref:T,mod:E,attributes:O,inert:P.inert,...N,...h,children:[(0,G.jsx)(`input`,{...P,...L,disabled:R,checked:ee,"data-checked":L.checked,onChange:e=>{L.onChange?.(e),z(e.currentTarget.checked)},id:F,type:`checkbox`,role:`switch`,inert:P.inert,"aria-describedby":I,...M(`input`)}),(0,G.jsxs)(Y,{"aria-hidden":`true`,component:`span`,mod:{error:S,"label-position":b,"without-labels":!d&&!u},...M(`track`),children:[(0,G.jsx)(Y,{component:`span`,mod:{"reduce-motion":!0,"with-thumb-indicator":D&&!g},...M(`thumb`),children:g}),(0,G.jsx)(`span`,{...M(`trackLabel`),children:ee?d:u})]})]})});mx.classes={...dx,...fg},mx.varsResolver=px,mx.displayName=`@mantine/core/Switch`,mx.Group=ux;var[hx,gx]=zr(`Table component was not found in the tree`),_x={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function vx(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function yx(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=J(r=>{let i=K(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=gx();return(0,G.jsx)(Y,{component:e,...vx(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=_x,r}var bx=yx(`th`,{columnBorder:!0}),xx=yx(`td`,{columnBorder:!0}),Sx=yx(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),Cx=yx(`thead`,{stickyHeader:!0}),wx=yx(`tbody`),Tx=yx(`tfoot`),Ex=yx(`caption`,{captionSide:!0}),Dx={type:`scrollarea`},Ox=da((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":W(t),"--table-max-height":W(n),"--table-overflow":r===`native`?`auto`:void 0}})),kx=J(e=>{let t=K(`TableScrollContainer`,Dx,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:l,maxHeight:u,type:d,scrollAreaProps:f,attributes:p,...m}=t,h=q({name:`TableScrollContainer`,classes:_x,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:Ox,rootSelector:`scrollContainer`});return(0,G.jsx)(Y,{component:d===`scrollarea`?Nd:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,G.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});kx.classes=_x,kx.varsResolver=Ox,kx.displayName=`@mantine/core/TableScrollContainer`;function Ax({data:e}){return(0,G.jsxs)(G.Fragment,{children:[e.caption&&(0,G.jsx)(Ex,{children:e.caption}),e.head&&(0,G.jsx)(Cx,{children:(0,G.jsx)(Sx,{children:e.head.map((e,t)=>(0,G.jsx)(bx,{children:e},t))})}),e.body&&(0,G.jsx)(wx,{children:e.body.map((e,t)=>(0,G.jsx)(Sx,{children:e.map((e,t)=>(0,G.jsx)(xx,{children:e},t))},t))}),e.foot&&(0,G.jsx)(Tx,{children:(0,G.jsx)(Sx,{children:e.foot.map((e,t)=>(0,G.jsx)(bx,{children:e},t))})})]})}Ax.displayName=`@mantine/core/TableDataRenderer`;var jx={withRowBorders:!0,verticalSpacing:7},Mx=da((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:c,highlightOnHover:l,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":Zr(r),"--table-vertical-spacing":Zr(i),"--table-border-color":a?ka(a,e):void 0,"--table-striped-color":c&&o?ka(o,e):void 0,"--table-highlight-on-hover-color":l&&s?ka(s,e):void 0,"--table-sticky-header-offset":d?W(u):void 0}})),Nx=J(e=>{let t=K(`Table`,jx,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:l,captionSide:u,stripedColor:d,highlightOnHoverColor:f,striped:p,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,withTableBorder:_,borderColor:v,layout:y,data:b,children:x,stickyHeader:S,stickyHeaderOffset:C,mod:w,tabularNums:T,attributes:E,...D}=t,O=q({name:`Table`,props:t,className:r,style:i,classes:_x,classNames:n,styles:a,unstyled:o,attributes:E,rootSelector:`table`,vars:s,varsResolver:Mx});return(0,G.jsx)(hx,{value:{getStyles:O,stickyHeader:S,striped:p===!0?`odd`:p||void 0,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,captionSide:u||`bottom`},children:(0,G.jsx)(Y,{component:`table`,mod:[{withTableBorder:_,tabularNums:T},w],...O(`table`),...D,children:x||!!b&&(0,G.jsx)(Ax,{data:b})})})});Nx.classes=_x,Nx.varsResolver=Mx,Nx.displayName=`@mantine/core/Table`,Nx.Td=xx,Nx.Th=bx,Nx.Tr=Sx,Nx.Thead=Cx,Nx.Tbody=wx,Nx.Tfoot=Tx,Nx.Caption=Ex,Nx.ScrollContainer=kx,Nx.DataRenderer=Ax;var[Px,Fx]=zr(`Tabs component was not found in the tree`),Ix={root:`m_89d60db1`,"list--default":`m_576c9d4`,list:`m_89d33d6d`,tab:`m_4ec4dce6`,panel:`m_b0c91715`,tabSection:`m_fc420b1f`,tabLabel:`m_42bbd1ae`,"tab--default":`m_539e827b`,"list--outline":`m_6772fbd5`,"tab--outline":`m_b59ab47c`,"tab--pills":`m_c3381914`},Lx=J(e=>{let t=K(`TabsList`,null,e),{children:n,className:r,grow:i,justify:a,classNames:o,styles:s,style:c,mod:l,...u}=t,d=Fx();return(0,G.jsx)(Y,{...d.getStyles(`list`,{className:r,style:c,classNames:o,styles:s,props:t,variant:d.variant}),role:`tablist`,variant:d.variant,mod:[{grow:i,orientation:d.orientation,placement:d.orientation===`vertical`&&d.placement,inverted:d.inverted},l],"aria-orientation":d.orientation,__vars:{"--tabs-justify":a},...u,children:n})});Lx.classes=Ix,Lx.displayName=`@mantine/core/TabsList`;var Rx=J(e=>{let t=K(`TabsPanel`,null,e),{children:n,className:r,value:i,classNames:a,styles:o,style:s,mod:c,keepMounted:l,...u}=t,d=Ya(),f=Fx();(0,U.useEffect)(()=>(f.setMountedPanel(i,!0),()=>{f.setMountedPanel(i,!1)}),[i]);let p=f.value===i,m=f.keepMounted||l,h=f.keepMountedMode!==`display-none`,g=m&&h&&d!==`test`?(0,G.jsx)(U.Activity,{mode:p?`visible`:`hidden`,children:n}):m||p?n:null;return(0,G.jsx)(Y,{...f.getStyles(`panel`,{className:r,classNames:a,styles:o,style:[s,p?void 0:{display:`none`}],props:t}),mod:[{orientation:f.orientation},c],role:`tabpanel`,id:f.getPanelId(i),"aria-labelledby":f.getTabId(i),...u,children:g})});Rx.classes=Ix,Rx.displayName=`@mantine/core/TabsPanel`;var zx=J(e=>{let t=K(`TabsTab`,null,e),{className:n,children:r,rightSection:i,leftSection:a,value:o,onClick:s,onKeyDown:c,disabled:l,color:u,style:d,classNames:f,styles:p,vars:m,mod:h,tabIndex:g,..._}=t,v=fo(),{dir:y}=_s(),b=Fx(),x=o===b.value,S=e=>{b.onChange(b.allowTabDeactivation&&o===b.value?null:o),s?.(e)},C={classNames:f,styles:p,props:t};return(0,G.jsxs)(Ld,{...b.getStyles(`tab`,{className:n,style:d,variant:b.variant,...C}),disabled:l,unstyled:b.unstyled,variant:b.variant,mod:[{active:x,disabled:l,orientation:b.orientation,inverted:b.inverted,placement:b.orientation===`vertical`&&b.placement},h],role:`tab`,id:b.getTabId(o),"aria-selected":x,tabIndex:g===void 0?x||b.value===null?0:-1:g,"aria-controls":b.mountedPanels.current.has(o)?b.getPanelId(o):void 0,onClick:S,__vars:{"--tabs-color":u?ka(u,v):void 0},onKeyDown:Gr({siblingSelector:`[role="tab"]`,parentSelector:`[role="tablist"]`,activateOnFocus:b.activateTabWithKeyboard,loop:b.loop,orientation:b.orientation||`horizontal`,dir:y,onKeyDown:c}),..._,children:[a&&(0,G.jsx)(`span`,{...b.getStyles(`tabSection`,C),"data-position":`left`,children:a}),r&&(0,G.jsx)(`span`,{...b.getStyles(`tabLabel`,C),children:r}),i&&(0,G.jsx)(`span`,{...b.getStyles(`tabSection`,C),"data-position":`right`,children:i})]})});zx.classes=Ix,zx.displayName=`@mantine/core/TabsTab`;var Bx=`Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value`,Vx={keepMounted:!0,keepMountedMode:`activity`,orientation:`horizontal`,loop:!0,activateTabWithKeyboard:!0,variant:`default`,placement:`left`},Hx=da((e,{radius:t,color:n,autoContrast:r})=>({root:{"--tabs-radius":Qr(t),"--tabs-color":ka(n,e),"--tabs-text-color":za(r,e)?Ia({color:n,theme:e,autoContrast:r}):void 0}})),Ux=J(e=>{let t=K(`Tabs`,Vx,e),{defaultValue:n,value:r,onChange:i,orientation:a,children:o,loop:s,id:c,activateTabWithKeyboard:l,allowTabDeactivation:u,variant:d,color:f,radius:p,inverted:m,placement:h,keepMounted:g,keepMountedMode:_,classNames:v,styles:y,unstyled:b,className:x,style:S,vars:C,autoContrast:w,mod:T,attributes:E,...D}=t,O=Fi(c),k=(0,U.useRef)(new Set),A=Pi(),j=(0,U.useCallback)((e,t)=>{let n=k.current;t&&!n.has(e)?(n.add(e),A()):!t&&n.has(e)&&(n.delete(e),A())},[]),[M,N]=Bi({value:r,defaultValue:n,finalValue:null,onChange:i}),P=q({name:`Tabs`,props:t,classes:Ix,className:x,style:S,classNames:v,styles:y,unstyled:b,attributes:E,vars:C,varsResolver:Hx});return(0,G.jsx)(Px,{value:{placement:h,value:M,orientation:a,id:O,loop:s,activateTabWithKeyboard:l,getTabId:Br(`${O}-tab`,Bx),getPanelId:Br(`${O}-panel`,Bx),onChange:N,allowTabDeactivation:u,variant:d,color:f,radius:p,inverted:m,keepMounted:g,keepMountedMode:_,unstyled:b,getStyles:P,mountedPanels:k,setMountedPanel:j},children:(0,G.jsx)(Y,{id:O,variant:d,mod:[{orientation:a,inverted:a===`horizontal`&&m,placement:a===`vertical`&&h},T],...P(`root`),...D,children:o})})});Ux.classes=Ix,Ux.varsResolver=Hx,Ux.displayName=`@mantine/core/Tabs`,Ux.Tab=zx,Ux.Panel=Rx,Ux.List=Lx;var Wx=J(e=>{let t=K([`Input`,`InputWrapper`,`TextInput`],null,e);return(0,G.jsx)($m,{component:`input`,...t,__staticSelector:`TextInput`})});Wx.classes=$m.classes,Wx.displayName=`@mantine/core/TextInput`;var Gx={root:`m_7341320d`},Kx=da((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":Xr(t,`ti-size`),"--ti-radius":n===void 0?void 0:Qr(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),qx=J(e=>{let t=K(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,attributes:l,...u}=t,d=q({name:`ThemeIcon`,classes:Gx,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:Kx});return(0,G.jsx)(Y,{...d(`root`),...u})});qx.classes=Gx,qx.varsResolver=Kx,qx.displayName=`@mantine/core/ThemeIcon`;var Jx=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],Yx=[`xs`,`sm`,`md`,`lg`,`xl`];function Xx(e,t){let n=t===void 0?`h${e}`:t;return Jx.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:Yx.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:W(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var Zx={root:`m_8a5d1357`},Qx={order:1},$x=da((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=Xx(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),eS=J(e=>{let t=K(`Title`,Qx,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=q({name:`Title`,props:t,classes:Zx,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:$x});return[1,2,3,4,5,6].includes(s)?(0,G.jsx)(Y,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,lineClamp:typeof d==`number`},p],size:l,...h}):null});eS.classes=Zx,eS.varsResolver=$x,eS.displayName=`@mantine/core/Title`;var tS={root:`m_d08caa0`},nS=J(e=>{let t=K(`Typography`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,attributes:s,...c}=t,l=q({name:`Typography`,classes:tS,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:s});return(0,G.jsx)(Y,{...l(`root`),...c})});nS.classes=tS,nS.displayName=`@mantine/core/Typography`;function rS(e,t,n){return t==null||t===n?e:`${e}:${t}`}var iS={syslog:`nodefony:syslog`,audit:`nodefony:audit`,dashboard:`nodefony:dashboard`,supervision:`nodefony:supervision`,debugbar:`nodefony:debugbar`,socket:`nodefony:socket`,ormHealth:`nodefony:orm:health`,ormFlow:`nodefony:orm:flow`,ormRich:`nodefony:orm:rich`,scaffoldJob:`nodefony:scaffold:job`},aS={syslogUplink:`nodefony:syslog:uplink`},oS={ping:`nodefony:kernel:ping`,gc:`nodefony:kernel:gc`,scaffoldPreview:`nodefony:scaffold:preview`,scaffoldRun:`nodefony:scaffold:run`,scaffoldCancel:`nodefony:scaffold:cancel`},sS={hmr:`nodefony:hmr`,debugbarSelect:`nodefony:debugbar:select`};function cS(e){let t=e.reason===`unknown`?`Canal « ${e.channel} » inconnu du serveur : personne ne le produit (nom exact ? module chargé ?)`:e.reason===`limit`?`Canal « ${e.channel} » non ouvert : trop d'abonnements sur cette connexion`:`Accès au canal « ${e.channel} » refusé`;return{level:e.reason===`unknown`?`warning`:`error`,title:`Temps réel`,message:t,source:`realtime`,ts:Date.now()}}function lS(e,t){if(e===1e3||e===1001)return null;let n=`warning`,r;switch(e){case 1002:n=`error`,r=`Erreur de protocole temps réel`;break;case 1003:n=`error`,r=`Données temps réel non supportées`;break;case 1006:r=`Connexion temps réel perdue`;break;case 1007:n=`error`,r=`Trame temps réel invalide`;break;case 1008:n=`error`,r=`Accès temps réel refusé`;break;case 1009:r=`Message temps réel trop volumineux`;break;case 1010:n=`error`,r=`Extension temps réel requise manquante`;break;case 1011:n=`error`,r=`Erreur serveur temps réel`;break;case 4004:n=`error`,r=`Ressource temps réel introuvable`;break;default:r=typeof e==`number`?`Connexion temps réel fermée (code ${e})`:`Connexion temps réel fermée`}let i=t?.trim();return{level:n,title:`Temps réel`,message:i?`${r} : ${i}`:r,source:`realtime`,code:e,ts:Date.now()}}var uS=new Set([1e3,1002,1003,1007,1008,1010,4004]);function dS(e){return e===void 0||!uS.has(e)}var fS=class extends Error{name=`RpcError`;data;constructor(e,t=-32e3,n){super(e),this.code=t,n!==void 0&&(this.data=n)}},pS=class{result;meta;constructor(e,t){this.result=e,this.meta=t}},mS=class e{opts;nextId=1;pending=null;actions=null;constructor(e){this.opts=e}register(e,t){(this.actions??=new Map).set(e,t)}unregister(e){this.actions?.delete(e)}get methods(){return this.actions?[...this.actions.keys()]:[]}request(e,t,n=3e4){return this.startCall(e,t,n)}requestTraced(e,t,n=3e4){return this.startCall(e,t,n,!0)}static buildNotification(e,t){return{jsonrpc:`2.0`,method:e,params:t}}notify(t,n){return this.opts.send(e.buildNotification(t,n))!==!1}receive(e){if(!e||typeof e!=`object`||e.jsonrpc!==`2.0`)return this.opts.onFrameAudit?.(`invalid`,e,this),`invalid`;let t=e.id,n=typeof t==`number`||typeof t==`string`,r=e.method,i=typeof r==`string`?r:void 0,a=e.params;return i===void 0?n?(this.handleResponse(e),`response`):(this.opts.onFrameAudit?.(`invalid`,e,this),`invalid`):this.opts.beforeDispatch&&!this.opts.beforeDispatch(e,this)?(this.opts.onFrameAudit?.(`denied`,e,this),n?(this.opts.send({jsonrpc:`2.0`,id:t,error:{code:-32001,message:`unauthorized`}}),`request`):`notification`):n?(this.handleRequest(t,i,a,e),`request`):(this.opts.onNotification?.(i,a),`notification`)}dispose(e=`peer disposed`){if(this.pending){for(let t of this.pending.values())t.timer&&clearTimeout(t.timer),t.reject(Error(e));this.pending.clear()}}startCall(e,t,n,r){let i=this.nextId++,a=this.pending??=new Map;return new Promise((o,s)=>{let c=setTimeout(()=>{a.delete(i),s(Error(`RPC timeout: ${e}`))},n);a.set(i,{resolve:e=>{clearTimeout(c),o(e)},reject:e=>{clearTimeout(c),s(e)},timer:c,withMeta:r}),this.opts.send({jsonrpc:`2.0`,id:i,method:e,params:t})===!1&&(clearTimeout(c),a.delete(i),s(Error(`RPC non émis (transport indisponible) : ${e}`)))})}handleRequest(e,t,n,r){let i=this.actions?.get(t);if(!i){this.opts.onFrameAudit?.(`method_not_found`,r,this),this.opts.send({jsonrpc:`2.0`,id:e,error:{code:-32601,message:`method not found: ${t}`}});return}Promise.resolve().then(()=>i(n)).then(t=>{if(t instanceof pS){this.opts.send({jsonrpc:`2.0`,id:e,result:t.result,meta:t.meta});return}this.opts.send({jsonrpc:`2.0`,id:e,result:t})},n=>{if(n instanceof fS){let t={code:n.code,message:n.message};n.data!==void 0&&(t.data=n.data),this.opts.send({jsonrpc:`2.0`,id:e,error:t});return}this.opts.onError?.(`rpc ${t}`,n),this.opts.onFrameAudit?.(`internal_error`,r,this),this.opts.send({jsonrpc:`2.0`,id:e,error:{code:-32603,message:`internal error`}})})}handleResponse(e){if(typeof e.id!=`number`||!this.pending)return;let t=this.pending.get(e.id);if(t){if(e.error){this.pending.delete(e.id),t.reject(new fS(e.error.message,e.error.code,e.error.data));return}`result`in e&&(this.pending.delete(e.id),t.resolve(t.withMeta?{result:e.result,meta:e.meta}:e.result))}}},hS={state:`__state__`,identity:`__identity__`,stats:`__stats__`,notice:`__notice__`,denied:`__denied__`,reconnect:`__reconnect__`},gS={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},_S=class{url;ws=null;_onOpen=null;_onMessage=null;_onClose=null;_onError=null;constructor(e){this.url=e}connect(){let e=new WebSocket(this.url);this.ws=e,e.addEventListener(`open`,()=>this._onOpen?.()),e.addEventListener(`message`,e=>{typeof e.data==`string`&&this._onMessage?.(e.data)}),e.addEventListener(`close`,e=>{this.ws=null,this._onClose?.(e.code,e.reason)}),e.addEventListener(`error`,()=>this._onError?.(Error(`websocket error`)))}send(e){this.ws?.readyState===gS.OPEN&&this.ws.send(e)}close(e,t){this.ws?.close(e,t)}get readyState(){return this.ws?.readyState??gS.CLOSED}onOpen(e){this._onOpen=e}onMessage(e){this._onMessage=e}onClose(e){this._onClose=e}onError(e){this._onError=e}},vS=null;function yS(){return globalThis.__nfAnnounced__===!0}var bS=null;function xS(){return globalThis.__nfDetailed__===!0}function SS(e){e&&(bS=e)}function CS(){return wS()||bS!==null&&bS!==`production`}function wS(){return!1}function TS(){let e=globalThis;return e.__nfRealtime__?[...e.__nfRealtime__.values()]:[]}function ES(){CS()&&(globalThis.nodefony={get kernel(){return vS??void 0},get socket(){return TS()[0]},sockets:()=>TS().map(e=>({url:e.url??`(adresse non résolue)`,state:e.state})),identity:()=>vS?vS.identity:TS()[0]?.identity??null})}function DS(){let e=globalThis;delete e.nodefony,delete e.__nfAnnounced__,delete globalThis.__nfDetailed__,bS=null}function OS(e){if(yS())return;let t=globalThis.console;t?.log&&(globalThis.__nfAnnounced__=!0,t.log(`%c◆ nodefony%c${e}%c`,`background:#0b1120;color:#5eead4;font-weight:700;padding:2px 6px;border-radius:3px 0 0 3px`,`background:#1e293b;color:#e2e8f0;padding:2px 6px;border-radius:0 3px 3px 0`,``))}function kS(e,t,n){return n===!1?()=>void 0:(vS=e,OS(t),ES(),()=>{vS===e&&(vS=null,TS().length===0?DS():ES())})}function AS(e){return e===!1?()=>void 0:(OS(`client`),ES(),()=>{!vS&&TS().length===0&&DS()})}function jS(e,t,n){if(xS()||!CS())return!1;let r=globalThis.console;if(!r?.log||!r.groupCollapsed||!r.groupEnd)return!1;globalThis.__nfDetailed__=!0,r.groupCollapsed(`%c${n}`,`color:#94a3b8`);try{if(r.table)r.table(e);else for(let[t,n]of Object.entries(e))r.log(t,n.valeur);r.log(`%cconsole :%c nodefony.socket · nodefony.sockets() · nodefony.identity()`+(vS?` · nodefony.kernel`:``),`color:#94a3b8`,`color:#5eead4;font-family:monospace`),r.log(`%ccorrélation :%c chaque journal porte un requestId — la même valeur côté serveur relie clic, route, base et réponse`,`color:#94a3b8`,`color:#e2e8f0`),r.log(`%cobjet :%c`,`color:#94a3b8`,``,t)}finally{r.groupEnd()}return!0}function MS(){return vS!==null}function NS(e,t){let n=[],r=e;for(;r<t;)n.push(r),r*=2;return n.push(t),n}var PS=class{ladder;starvationFactor;healthyFactor;recoveryWindow;idx=0;healthy=0;lastFrameTs=null;constructor(e){let t=e.maxMs??6e4,n=e.ladder&&e.ladder.length>0?[...e.ladder].sort((e,t)=>e-t):NS(e.intervalMs,Math.max(e.intervalMs,t));this.ladder=n,this.starvationFactor=e.starvationFactor??1.8,this.healthyFactor=e.healthyFactor??1.25,this.recoveryWindow=e.recoveryWindow??4}current(){return this.ladder[this.idx]}decrease(){return this.idx>=this.ladder.length-1?!1:(this.idx+=1,!0)}increase(){return this.idx<=0?!1:(--this.idx,!0)}resetSample(){this.lastFrameTs=null,this.healthy=0}noteFrame(e){let t=this.lastFrameTs;if(this.lastFrameTs=e,t===null)return null;let n=e-t,r=this.current();return n>this.starvationFactor*r?this.decrease()?(this.resetSample(),{intervalMs:this.current(),reason:`decrease`}):(this.healthy=0,null):n<=this.healthyFactor*r?(this.healthy+=1,this.healthy>=this.recoveryWindow&&this.increase()?(this.resetSample(),{intervalMs:this.current(),reason:`increase`}):null):(this.healthy=0,null)}checkStarvation(e){return this.lastFrameTs===null?null:e-this.lastFrameTs>this.starvationFactor*this.current()&&this.decrease()?(this.resetSample(),{intervalMs:this.current(),reason:`decrease`}):null}},FS={set:(e,t)=>setInterval(e,t),clear:e=>clearInterval(e)},IS=()=>typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now();function LS(e,t,n,r){if(r.enabled===!1){let i=rS(t,r.intervalMs,r.defaultMs);e.subscribe(i);let a=e.on(i,n);r.onRate?.(r.intervalMs,`init`);let o=!1;return{get intervalMs(){return r.intervalMs},get channel(){return i},dispose(){o||(o=!0,a(),e.unsubscribe(i))}}}let i=r.clock??IS,a=r.scheduler??FS,o=new PS(r),s=o.current(),c=rS(t,s,r.defaultMs),l=null,u,d=!1,f=(...e)=>{let t=o.noteFrame(i());n(...e),t&&m(t)},p=()=>{u!==void 0&&a.clear(u),u=a.set(()=>{let e=o.checkStarvation(i());e&&m(e)},s)};function m(n){if(d)return;let i=rS(t,n.intervalMs,r.defaultMs);if(s=n.intervalMs,i!==c){let t=c,n=l;e.subscribe(i),l=e.on(i,f),n?.(),e.unsubscribe(t),c=i}p(),r.onRate?.(s,n.reason)}return e.subscribe(c),l=e.on(c,f),p(),r.onRate?.(s,`init`),{get intervalMs(){return s},get channel(){return c},dispose(){d||(d=!0,u!==void 0&&a.clear(u),l?.(),e.unsubscribe(c))}}}var RS=300,zS=/(token|password|secret|api[_-]?key|apikey|authorization|bearer)/i;function BS(e,t=0){if(t>4||typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(e=>BS(e,t+1));let n={};for(let[r,i]of Object.entries(e))n[r]=zS.test(r)?`[redacted]`:BS(i,t+1);return n}var VS=class e{opts;transport=null;transportFactory;_state=`disconnected`;peer=new mS({send:e=>this.send(e),onNotification:(e,t)=>this.dispatchNotification(e,t)});handlers=new Map;_subscriptions=new Map;_welcomed=!1;reconnectAttempt=0;_nextRetryAt=null;reconnectTimer=null;heartbeatTimer=null;intentionalClose=!1;_stats=new Map;_framesReceived=0;_framesUnsent=0;_unsentNotified=!0;_lastFrameAt=null;_lastFrameMethod=null;statsTimer=null;_prevSampled=new Map;_rawFrames=null;_identity=null;_serverChannels=null;_serverMethods=null;constructor(e={},t){this.opts=e,this.transportFactory=t??(e=>new _S(e)),this.startStatsSampler(),AS(this.opts.banner)}static shared(t={}){let n=e.resolveUrl(t.url),r=globalThis,i=r.__nfRealtime__??=new Map,a=i.get(n);return a||(a=new e({...t,url:n}),i.set(n,a)),a}static missingUrl(){return Error(`[nodefony] adresse du serveur temps réel manquante.
51
51
  Donne-la explicitement : RealtimeClient.shared({ url: "/api/live/realtime" })
52
52
  ou, en React : <NodefonyProvider url="/api/live/realtime">
53
- Il n'y a pas de valeur par défaut : la route dépend de ton application (une application générée monte /api/live/realtime, la console d'administration /nodefony/studio/api/realtime).`)}static resolveUrl(t){if(!t)throw e.missingUrl();if(typeof window>`u`)return t;try{let e=new URL(t,window.location.href);return e.protocol===`http:`?e.protocol=`ws:`:e.protocol===`https:`&&(e.protocol=`wss:`),e.toString()}catch{throw Error(`[nodefony] adresse du serveur temps réel illisible : ${JSON.stringify(t)}`)}}get state(){return this._state}get reconnectAttempts(){return this.reconnectAttempt}get nextRetryAt(){return this._nextRetryAt}retryNow(){this._state!==`connected`&&this._state!==`connecting`&&(this.reconnectTimer&&=(clearTimeout(this.reconnectTimer),null),this._nextRetryAt=null,this.intentionalClose=!1,this.openSocket().catch(()=>{}))}async connect(e){if(this._state!==`connected`&&this._state!==`connecting`)return this.intentionalClose=!1,this.opts.url=e??this.requireUrl(),this.openSocket()}requireUrl(){if(!this.opts.url)throw e.missingUrl();return this.opts.url}disconnect(){this.intentionalClose=!0,this.clearTimers(),this.transport?.close(1e3,`client disconnect`),this.peer.dispose(`client disconnect`),this._welcomed=!1,this._identity=null,this._serverChannels=null,this._serverMethods=null,this.fireLocal(hS.identity,null),this.setState(`disconnected`)}on(e,t){return this.handlers.has(e)||this.handlers.set(e,new Set),this.handlers.get(e).add(t),()=>this.off(e,t)}off(e,t){this.handlers.get(e)?.delete(t)}onNotice(e){return this.on(hS.notice,e)}onDenied(e){return this.on(hS.denied,e)}emit(e,t){this._emitRaw(e,t)||this.noticeUnsent()}_emitRaw(e,t){return this.peer.notify(e,t)}publish(e,t){this.emit(e,t)}subscribe(e){let t=e,n=(this._subscriptions.get(t)??0)+1;this._subscriptions.set(t,n),n===1&&this._welcomed&&this._emitRaw(`subscribe`,{channel:t})}unsubscribe(e){let t=e,n=this._subscriptions.get(t);n&&(n<=1?(this._subscriptions.delete(t),this._welcomed&&this._emitRaw(`unsubscribe`,{channel:t})):this._subscriptions.set(t,n-1))}get subscribedChannels(){return Array.from(this._subscriptions.keys())}get url(){return this.opts.url??null}get identity(){return this._identity}get serverChannels(){return this._serverChannels}get serverMethods(){return this._serverMethods}onIdentity(e){return this.on(hS.identity,e)}onState(e){return this.on(hS.state,e)}onStats(e){return this.on(hS.stats,e)}onReconnect(e){return this.on(hS.reconnect,e)}channel(e){let t=this,n=new Set;return{name:e,on(r){let i=t.on(e,r);return n.add(i),()=>{i(),n.delete(i)}},send(n){t.publish(e,n)},open(){t.subscribe(e)},close(){for(let e of n)e();n.clear(),t.unsubscribe(e)}}}adaptiveChannel(e,t,n){return LS(this,e,t,n)}async request(e,t,n=3e4){return e.charCodeAt(0)===47&&(typeof t==`number`&&(n=t),t={path:e},e=`api.request`),this.peer.request(e,t,n)}async mutate(e,t){return this.peer.request(`api.request`,{path:e,method:t.method,body:t.body,idempotencyKey:t.idempotencyKey},t.timeoutMs??3e4)}async call(e,t){let{result:n,meta:r}=await this.peer.requestTraced(`api.request`,{path:e,method:t?.method??`GET`,body:t?.body,idempotencyKey:t?.idempotencyKey},t?.timeoutMs??3e4);return{result:n,requestId:typeof r?.requestId==`string`?r.requestId:null}}async ping(e=5e3){let t=()=>typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now(),n=t();return{...await this.request(oS.ping,void 0,e),rtt:Math.round(t()-n)}}notify(e,t){this.peer.notify(e,t)}register(e,t){this.peer.register(e,t)}unregister(e){this.peer.unregister(e)}get methods(){return this.peer.methods}receive(e){this.recordFrame(`in`,e);let t=this.peer.receive(e);return t===`invalid`&&this.handleServerError(e),t}dispose(e){this.peer.dispose(e)}get framesReceived(){return this._framesReceived}get framesUnsent(){return this._framesUnsent}get lastFrameAt(){return this._lastFrameAt}get lastFrameMethod(){return this._lastFrameMethod}getStats(){return Array.from(this._stats.values())}getChannelStats(e){return this._stats.get(e)}trackFrame(e){let t=Date.now();this._framesReceived++,this._lastFrameAt=t,this._lastFrameMethod=e;let n=this._stats.get(e);n||(n={method:e,msgCount:0,lastMessage:null,rate:0,series:[]},this._stats.set(e,n)),n.msgCount++,n.lastMessage=t}replaySubscriptions(){this._welcomed=!0;for(let e of this._subscriptions.keys())this._emitRaw(`subscribe`,{channel:e})}ingestWelcome(e){let t=e;t&&typeof t==`object`&&(this._identity=t.identity??null,this._serverChannels=Array.isArray(t.channels)?t.channels:null,this._serverMethods=Array.isArray(t.methods)?t.methods:null,SS(t.env),this.opts.banner!==!1&&!MS()&&this.detailsSocket(),this.fireLocal(hS.identity,this._identity))}detailsSocket(){jS({adresse:{valeur:this.url??`—`},état:{valeur:this.state},identité:{valeur:this._identity?.authenticated?this._identity.userIdentifier??`authentifié`:`anonyme`},canaux:{valeur:this._serverChannels?.join(`, `)||`aucun`},actions:{valeur:this._serverMethods?.join(`, `)||`aucune`}},this,`socket nodefony — détail et raccourcis`)}ingestDenied(e){let t=e,n=typeof t?.channel==`string`?t.channel:``,r=t?.reason,i=r===`unknown`||r===`limit`?r:`forbidden`,a=typeof t?.detail==`string`?t.detail:void 0,o={channel:n,reason:i,...a===void 0?{}:{detail:a}};this.fireNotice(cS(o)),this.fireLocal(hS.denied,o)}dispatchNotification(e,t){e===`realtime:welcome`?(this.ingestWelcome(t),this.replaySubscriptions()):e===`realtime:denied`&&this.ingestDenied(t),this.trackFrame(e),this.handlers.get(e)?.forEach(e=>{try{e(t)}catch{}}),this.handlers.get(`*`)?.forEach(n=>{try{n(e,t)}catch{}})}handleServerError(e){let t=e.error;t&&typeof t==`object`&&this.fireNotice({level:`error`,title:`Temps réel`,message:t.message||`Erreur serveur temps réel`,source:`server`,code:t.code,ts:Date.now()})}startStatsSampler(){this.statsTimer||(this.statsTimer=setInterval(()=>{for(let e of this._stats.values()){let t=this._prevSampled.get(e.method)??e.msgCount;e.rate=Math.max(0,e.msgCount-t),this._prevSampled.set(e.method,e.msgCount),e.series=[...e.series,e.rate].slice(-32)}this.fireLocal(hS.stats)},1e3),this.statsTimer.unref?.())}fireNotice(e){this.fireLocal(hS.notice,e)}fireLocal(e,...t){this.handlers.get(e)?.forEach(e=>{try{e(...t)}catch{}})}openSocket(){return new Promise((e,t)=>{this._welcomed=!1,this.setState(this.reconnectAttempt>0?`reconnecting`:`connecting`);let n;try{let e=typeof window<`u`?window.location.href:`http://localhost`,t=new URL(this.requireUrl(),e);t.protocol===`http:`?t.protocol=`ws:`:t.protocol===`https:`&&(t.protocol=`wss:`),this.opts.token&&t.searchParams.set(`token`,this.opts.token),n=this.transportFactory(t.toString()),this.transport=n}catch(e){this.setState(`error`),t(e);return}n.onOpen(()=>{let t=this.reconnectAttempt>0;this.reconnectAttempt=0,this._nextRetryAt=null,this.setState(`connected`),this.startHeartbeat(),t&&this.fireNotice({level:`success`,title:`Temps réel`,message:`Connexion temps réel rétablie`,source:`realtime`,ts:Date.now()}),e()}),n.onMessage(e=>this.handleMessage(e)),n.onError(()=>{}),n.onClose((e,t)=>{if(this.clearTimers(),this.transport=null,this.intentionalClose){this.setState(`disconnected`);return}let n=lS(e,t);n&&this.fireNotice(n);let r=dS(e);r&&this.opts.autoReconnect!==!1?this.scheduleReconnect():this.setState(r?`disconnected`:`error`)}),n.connect()})}scheduleReconnect(){this.reconnectAttempt++;let e=this.opts.reconnectDelay??1e3,t=this.opts.reconnectDelayMax??3e4,n=Math.min(e*2**(this.reconnectAttempt-1),t);this._nextRetryAt=Date.now()+n,this.setState(`reconnecting`),this.fireLocal(hS.reconnect,{attempt:this.reconnectAttempt,delay:n,nextRetryAt:this._nextRetryAt}),this.reconnectTimer=setTimeout(()=>{this.openSocket().catch(()=>{})},n)}startHeartbeat(){let e=this.opts.heartbeatInterval??3e4;this.heartbeatTimer=setInterval(()=>{this.transport?.readyState===gS.OPEN&&this._emitRaw(`ping`,{ts:Date.now()})},e)}clearTimers(){this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer=null,this.heartbeatTimer=null}get frameLog(){return(this._rawFrames??[]).map(t=>e.buildFrame(t.dir,t.msg,t.ts))}clearFrameLog(){this._rawFrames&&(this._rawFrames.length=0)}recordFrame(t,n){let r=Date.now();(this._rawFrames??=[]).push({ts:r,dir:t,msg:n}),this._rawFrames.length>RS&&this._rawFrames.shift();let i=this.handlers.get(`__frame__`);i&&i.size>0&&this.fireLocal(`__frame__`,e.buildFrame(t,n,r))}static buildFrame(e,t,n){let r=t??{},i=`?`,a;if(typeof r.method==`string`){i=r.method;let e=r.params;e&&typeof e.channel==`string`&&(a=e.channel)}else`error`in r?i=`error`:`result`in r&&(i=`response`);return{ts:n,dir:e,kind:i,id:typeof r.id==`number`?r.id:void 0,channel:a,payload:BS(t)}}send(e){return this.transport?.readyState===gS.OPEN?(this.transport.send(JSON.stringify(e)),this.recordFrame(`out`,e),!0):(this._framesUnsent++,!1)}noticeUnsent(){this._unsentNotified||(this._unsentNotified=!0,this.fireNotice({level:`warning`,title:`Temps réel`,message:`Connexion interrompue — les messages émis pendant la coupure sont perdus`,source:`realtime`,ts:Date.now()}))}handleMessage(e){if(typeof e!=`string`)return;let t;try{t=JSON.parse(e)}catch{return}this.receive(t)}setState(e){this._state!==e&&(e===`connected`&&(this._unsentNotified=!1),this._state=e,this.fireLocal(hS.state,e))}},HS=function(e){return e!=null},US=function(e,t){if(!this)throw Error(`Bad call`);let n=e.split(`.`),r=n.shift();if(r!==void 0){if(n.length===0)return t!==void 0&&(this[r]=t),this[r]??null;if(this[r]===void 0||this[r]===null){if(t!==void 0)this[r]={};else return null}if(typeof this[r]!=`object`)throw Error(`Cannot create property '${n[0]}' on ${typeof this[r]} '${this[r]}'`);return US.call(this[r],n.join(`.`),t)}return this},WS=0,GS=class e{protoService;services;protoParameters;parameters;id;scopes=null;constructor(t,n=!1,r,i){if(this.id=(++WS).toString(36),this.protoService=r??function(){},this.protoParameters=i??function(){},t&&t instanceof e){if(this.services=Object.create(t.protoService.prototype),this.parameters=Object.create(t.protoParameters.prototype),this.setServices(t.services??{}),n)try{this.setParametersBulk(structuredClone(t.parameters??{}))}catch{this.setParametersBulk(t.parameters??{})}else this.setParametersBulk(t.parameters??{})}else this.services=Object.create(this.protoService.prototype),this.parameters=Object.create(this.protoParameters.prototype)}setServices(e){for(let t in e)this.set(t,e[t])}setParametersBulk(e){for(let t in e)this.setParameters(t,e[t])}log(e,t,n,r){let i=this.get(`syslog`);if(!i){console.warn(`[Container] no syslog registered —`,e);return}return n||=`SERVICES CONTAINER`,i.log(e,t,n,r)}set(e,t){if(this.services&&e)this.protoService.prototype[e]=t,this.services[e]=t;else throw Error(`Container bad argument name`)}get(e){return this.services&&e in this.services?this.services[e]:null}remove(e){if(!this.services)return!1;if(e in this.services){if(delete this.services[e],e in this.protoService.prototype&&delete this.protoService.prototype[e],this.scopes)for(let t of this.scopes.values())for(let n of t.values())n.remove(e);return!0}return!1}has(e){return this.services!=null&&e in this.services}keys(){return Object.keys(this.services??{})}entries(){return Object.entries(this.services??{})}addScope(e){this.scopes===null&&(this.scopes=new Map);let t=this.scopes.get(e);return t||(t=new Map,this.scopes.set(e,t)),t}enterScope(e){let t=this.scopes?.get(e);if(!t)throw Error(`Scope "${e}" not declared. Call addScope("${e}") first.`);let n=new KS(e,this,this.protoService,this.protoParameters);return t.set(n.id,n),n}leaveScope(e){let t=this.scopes?.get(e.name);if(t){let n=t.get(e.id);n&&(n.clean(),t.delete(e.id))}}scopeCount(e){return this.scopes?.get(e)?.size??0}removeScope(e){let t=this.scopes?.get(e);if(t){for(let e of t.values())this.leaveScope(e);this.scopes?.delete(e)}}removeAllScopes(){if(this.scopes){for(let e of this.scopes.keys())this.removeScope(e);this.scopes=null}}setParameters(e,t){if(typeof e!=`string`)throw Error(`setParameters : container parameter name must be a string`);if(t===void 0)throw Error(`setParameters : ${e} container parameter value must be defined`);return this.parameters?US.call(this.parameters,e,t):null}getParameters(e){if(!e)throw Error(`getParameters : invalid name "${e}"`);return this.parameters?US.call(this.parameters,e):null}clean(){this.removeAllScopes(),this.services=null,this.parameters=null}reset(){this.clean(),this.protoService=function(){},this.protoParameters=function(){},this.services=Object.create(this.protoService.prototype),this.parameters=Object.create(this.protoParameters.prototype)}},KS=class extends GS{name;parent;constructor(e,t,n,r){super(void 0,!1,n,r),this.name=e,this.parent=t}set(e,t){if(this.services&&e)this.services[e]=t;else throw Error(`Container bad argument name`)}remove(e){return this.services&&Object.prototype.hasOwnProperty.call(this.services,e)?(delete this.services[e],!0):!1}getParameters(e,t=!0,n=!0){let r=US.call(this.parameters??{},e),i=this.parent?.getParameters(e);return HS(r)?t&&eC(i)&&eC(r)?tC(n,i,r):r:i??null}clean(){return this.parent=null,super.clean()}},qS=Object.prototype,JS=qS.toString,YS=qS.hasOwnProperty,XS=YS.toString,ZS=XS.call(Object),QS=Object.getPrototypeOf,$S=Array.isArray,eC=e=>{if(!e||JS.call(e)!==`[object Object]`)return!1;let t=QS(e);if(!t)return!0;let n=YS.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&XS.call(n)===ZS},tC=(...e)=>{let t,n,r,i,a=!1,o,s=e[0]||{},c=1,l=!1,{length:u}=e;for(typeof s==`boolean`&&(l=s,s=e[c]||{},c++),typeof s!=`object`&&typeof s!=`function`&&(s={}),c===u&&(s={},c--);c<u;c++)if((t=e[c])!=null)for(n in t)YS.call(t,n)&&(i=t[n],n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&s!==i&&(l&&i&&(eC(i)||(a=$S(i)))?(r=s[n],o=a&&!$S(r)?[]:!a&&!eC(r)?{}:r,a=!1,s[n]=tC(l,o,i)):i!==void 0&&(s[n]=i)));return s};globalThis.Buffer;var nC=function(e){return e[e.EMERGENCY=0]=`EMERGENCY`,e[e.ALERT=1]=`ALERT`,e[e.CRITIC=2]=`CRITIC`,e[e.ERROR=3]=`ERROR`,e[e.WARNING=4]=`WARNING`,e[e.NOTICE=5]=`NOTICE`,e[e.INFO=6]=`INFO`,e[e.DEBUG=7]=`DEBUG`,e}(nC||{}),rC=[0,1,2,3,4,5,6,7],iC=[`EMERGENCY`,`ALERT`,`CRITIC`,`ERROR`,`WARNING`,`NOTICE`,`INFO`,`DEBUG`],aC=`browser`,oC=function(e=`INFO`){if(typeof e==`number`){if(rC[e]!==void 0)return rC[e];throw Error(`Not a valid nodefony syslog severity: ${e}`)}if(nC[e]!==void 0)return nC[e];throw Error(`Not a valid nodefony syslog severity: ${e}`)},sC=Object.entries(nC).reduce((e,[t,n])=>(e[t]=n,e),{}),cC=new Map(Object.entries(nC).filter(([,e])=>typeof e==`number`).map(([e,t])=>[t,e])),lC=globalThis.Buffer,uC=globalThis.process?.pid??0,dC=e=>{if(e===null)return null;let t=typeof e;return t===`object`?Array.isArray(e)?`array`:e instanceof Date?`date`:e instanceof RegExp?`RegExp`:e instanceof Error?`Error`:lC?.isBuffer(e)?`buffer`:`object`:t},fC=0,pC=class e{payload;uid;severity;timeStamp;severityName;typePayload;moduleName;msgid;msg;status;pid;requestId;static requestIdProvider=null;constructor(t,n,r=`nodefony`,i=``,a=``,o){this.timeStamp=o===void 0?Date.now():typeof o==`number`?o:o instanceof Date?o.getTime():new Date(o).getTime(),this.uid=++fC,this.severity=oC(n);let s=cC.get(this.severity);if(s===void 0)throw Error(`Invalid severity value: ${this.severity}`);this.severityName=s,this.typePayload=dC(t),this.payload=t,this.moduleName=r,this.msgid=i,this.msg=a,this.status=`NOTDEFINED`,this.pid=uC,this.requestId=e.requestIdProvider===null?void 0:e.requestIdProvider()}static sysLogSeverity(){return sC}static severityToString(t){let n=typeof t==`string`?parseInt(t,10):t;if(!isNaN(n)&&nC[n]!==void 0)return nC[n];let r=e.severityToString(nC[t]);return r===void 0?void 0:r}getDate(){return new Date(this.timeStamp).toTimeString()}toString(){return`TimeStamp:${this.getDate()} Log:${this.payload} ModuleName:${this.moduleName} SeverityName:${this.severityName} MessageID:${this.msgid} UID:${this.uid} Message:${this.msg}`}parseJson(e){let t=JSON.parse(e);return Object.entries(t).forEach(([e,t])=>{e in this&&(this[e]=t)}),t}},mC=class{_listeners=new Map;_maxListeners=10;on(e,t){let n=this._listeners.get(e)??[];return n.push(t),this._listeners.set(e,n),this}addListener(e,t){return this.on(e,t)}once(e,t){let n=(...r)=>{this.off(e,n),t(...r)};return this.on(e,n)}off(e,t){let n=this._listeners.get(e);if(!n)return this;let r=n.indexOf(t);return r!==-1&&n.splice(r,1),n.length===0&&this._listeners.delete(e),this}removeListener(e,t){return this.off(e,t)}removeAllListeners(e){return e===void 0?this._listeners.clear():this._listeners.delete(e),this}emit(e,...t){let n=this._listeners.get(e);if(!n||n.length===0)return!1;for(let e of n.slice())try{e(...t)}catch(e){console.error(`[EventEmitter] listener threw:`,e)}return!0}listenerCount(e){return this._listeners.get(e)?.length??0}listeners(e){return(this._listeners.get(e)??[]).slice()}eventNames(){return Array.from(this._listeners.keys())}setMaxListeners(e){return this._maxListeners=e,this}getMaxListeners(){return this._maxListeners}rawListeners(e){return(this._listeners.get(e)??[]).slice()}prependListener(e,t){let n=this._listeners.get(e)??[];return n.unshift(t),this._listeners.set(e,n),this}prependOnceListener(e,t){let n=(...r)=>{this.off(e,n),t(...r)};return this.prependListener(e,n)}},hC=/^on(.*)$/,gC=Symbol(`nodefony.emitAsyncGuarded.timeout`),_C=class extends mC{constructor(e,t,n){super(),n?.nbListeners!==void 0&&this.setMaxListeners(n.nbListeners),e&&this.settingsToListen(e,t)}settingsToListen(e,t){for(let n of Object.keys(e)){let r=hC.exec(n);if(r){if(t){this.listen(t,r[0],e[n]);continue}this.on(r[0],e[n])}}}listen(e,t,n){return typeof n==`function`&&this.addListener(t,n.bind(e)),(...e)=>this.emit(t,...e)}fire(e,...t){return super.emit(e,...t)}async emitAsync(e,...t){if(this.listenerCount(e)===0)return!1;let n=this.rawListeners(e),r=[];for(let e of n){let n=Reflect.apply(e,this,t);r.push(n!=null&&typeof n.then==`function`?await n:n)}return r}async fireAsync(e,...t){return this.emitAsync(e,...t)}async emitAsyncGuarded(e,t={},...n){let r=[],i=[];if(this.listenerCount(e)===0)return{results:r,errors:i,stopped:!1};let a=this.rawListeners(e),o=t.timeoutMs??0,s=typeof o==`function`,c=t.warnMs??0,l=c>0;for(let e=0;e<a.length;e+=1){let u=a[e],d=s?o(u,e):o,f=l?Date.now():0,p=!1;try{let i=Promise.resolve(Reflect.apply(u,this,n)),a;if(d>0){i.catch(()=>{});let e;try{a=await Promise.race([i,new Promise((t,n)=>{e=setTimeout(()=>{p=!0,n(gC)},d),e.unref?.()})])}finally{e&&clearTimeout(e)}}else a=await i;if(r.push(a),l&&t.onListenerSlow){let n=Date.now()-f;n>=c&&t.onListenerSlow({index:e,listener:u,timedOut:!1,durationMs:n})}}catch(n){let a=l?Date.now()-f:0,o=p?Error(`listener timeout après ${d}ms`):n;if(i.push({index:e,error:o,timedOut:p}),t.onListenerError?.(o,{index:e,listener:u,timedOut:p,durationMs:a})===!0)return{results:r,errors:i,stopped:!0}}}return{results:r,errors:i,stopped:!1}}},vC=(e,t)=>{try{return JSON.stringify(e,null,2)}catch{return String(e)}},yC=(e,t,n)=>String(t),bC=new Set(`reset.bold.dim.italic.underline.inverse.strikethrough.black.red.green.yellow.blue.magenta.cyan.white.gray.blackBright.redBright.greenBright.yellowBright.blueBright.magentaBright.cyanBright.whiteBright.bgBlack.bgRed.bgGreen.bgYellow.bgBlue.bgMagenta.bgCyan.bgWhite.bgGray`.split(`.`)),xC=`\x1B[0m`;function SC(e){return new Proxy(t=>{let n=String(t);if(e.length===0)return n;try{return yC(e,n,{validateStream:!1})}catch{return n}},{get(t,n,r){return n===`reset`?xC:typeof n==`string`&&bC.has(n)?SC([...e,n]):Reflect.get(t,n,r)}})}var CC=SC([]),wC=[`cyan`,`magenta`,`red`,`green`,`yellow`,`blue`,`blackBright`,`yellowBold`,`redBold`,`cyanBold`,`blueBrightBold`,`cyanBgBlue`,`cyanBgBlack`],TC=e=>e,EC={cyan:CC.cyan,magenta:CC.magenta,red:CC.red,green:CC.green,yellow:CC.yellow,blue:CC.blue,blackBright:CC.blackBright,yellowBold:CC.yellow.bold,redBold:CC.red.bold,cyanBold:CC.cyan.bold,blueBrightBold:CC.blueBright.bold,cyanBgBlue:CC.cyan.bgBlue,cyanBgBlack:CC.cyan.bgBlack},DC={...EC},OC=!1;function kC(e){OC=e;for(let t of wC)DC[t]=e?EC[t]:TC}function AC(){return OC}function jC(e){let t={};return typeof t.NO_COLOR==`string`&&t.NO_COLOR!==``?!1:typeof t.FORCE_COLOR==`string`&&t.FORCE_COLOR!==``&&t.FORCE_COLOR!==`0`||e}var MC=globalThis.process;kC(jC(!MC?.env?.NF_NO_TTY&&MC?.stdout?.isTTY===!0));var NC=e=>DC.yellowBold(e),PC=e=>DC.redBold(e),FC=e=>DC.cyanBold(e),IC=e=>DC.blueBrightBold(e),LC=e=>DC.green(e),RC=globalThis.process,zC=e=>e.replace(/\x1b\[[0-9;]*m/g,``),BC=`auto`,VC=null,HC=null,UC=0,WC=!1,GC=65536,KC=globalThis.setImmediate,qC=()=>(VC===null&&(VC=KC?BC===`on`||BC!==`off`&&!RC?.stdout?.isTTY:!1),VC),JC={name:`stdout`,writeOut(e){RC?.stdout?RC.stdout.write(e):console.log(zC(e).replace(/\n$/,``))},writeErr(e){RC?.stderr?RC.stderr.write(e):console.error(zC(e).replace(/\n$/,``))},flushSync(){},close(){}},YC={name:`null`,writeOut(){},writeErr(){},flushSync(){},close(){}},XC=JC,ZC=!1,QC=e=>{ZC||XC.writeOut(e)},$C=e=>{ZC||XC.writeErr(e)},ew=()=>{WC=!1,HC&&HC.length>0&&(QC(HC.join(``)),HC.length=0,UC=0)},tw=e=>{ew(),BC=e===!0?`on`:e===!1?`off`:`auto`,VC=null},nw=e=>{ew(),XC!==e&&XC!==JC&&XC!==YC&&XC.close(),XC=e??JC},rw=e=>{if(!qC()){QC(e);return}if(HC===null&&(HC=[]),HC.push(e),UC+=e.length,UC>=GC){ew();return}!WC&&KC&&(WC=!0,KC(ew))},iw=e=>{HC&&HC.length>0&&ew(),$C(e)};if(RC?.on){let e=()=>{ew(),XC.flushSync()};RC.on(`exit`,e),RC.on(`beforeExit`,e)}var aw=class{buf;head=0;_size=0;capacity;constructor(e){this.capacity=e,this.buf=Array(e)}push(e){if(this._size===this.capacity)this.buf[this.head]=e,this.head=(this.head+1)%this.capacity;else{let t=(this.head+this._size)%this.capacity;this.buf[t]=e,this._size++}}get length(){return this._size}last(){if(this._size!==0)return this.buf[(this.head+this._size-1)%this.capacity]}clear(){this.head=0,this._size=0}toArray(){let e=Array(this._size);for(let t=0;t<this._size;t++)e[t]=this.buf[(this.head+t)%this.capacity];return e}},ow=function(e){if(typeof e==`boolean`)return e;if(typeof e==`string`){if([`false`,`undefined`,`null`].includes(e))return!1;if(e===`true`||e===`*`)return!0;let t=e.split(/,| /);return t[0]===`*`||t}return Array.isArray(e)?e[0]===`*`||e:!1},sw=function(e,t=!1){t=ow(t);let n;return n=e===`development`?{severity:{operator:`<=`,data:t===!1?6:7}}:{severity:{operator:`<=`,data:t?7:6}},typeof t==`object`&&(n.msgid={operator:`==`,data:t}),n},cw={moduleName:`SYSLOG`,msgid:``,maxStack:100,rateLimit:!1,burstLimit:3,defaultSeverity:`DEBUG`,checkConditions:`&&`,async:!1},lw=pC.sysLogSeverity(),uw={"<":(e,t)=>e<t,">":(e,t)=>e>t,"<=":(e,t)=>e<=t,">=":(e,t)=>e>=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,"!=":(e,t)=>e!==t,RegExp:(e,t)=>t.test(e)},dw={severity:(e,t)=>{for(let n in t.data)if(t.operator&&uw[t.operator](e.severity,t.data[n]))return!0;return!1},msgid:(e,t)=>{if(t.data instanceof RegExp)return t.data.test(e.msgid);for(let n in t.data)if(t.operator&&uw[t.operator](e.msgid,n))return!0;return!1},date:(e,t)=>t.operator?uw[t.operator](e.timeStamp,t.data):!1},fw={"&&":(e,t)=>{let n=!1;for(let r in e)if(n=dw[r](t,e[r]),!n)break;return n},"||":(e,t)=>{let n=!1;for(let r in e)if(n=dw[r](t,e[r]),n)break;return n}},pw=e=>{let t;switch(typeof e){case`object`:if(Array.isArray(e))t=e;else throw Error(`checkFormatSeverity bad format type: object`);break;case`string`:t=e.split(/,| /);break;case`number`:t=[e];break;default:throw Error(`checkFormatSeverity bad format type : ${typeof e}`)}return t},mw=function(e){if(e instanceof Date)return e.getTime();if(typeof e==`string`)return new Date(e).getTime();throw Error(`checkFormatDate bad format : ${String(e)}`)},hw=function(e){if(typeof e==`string`)return e.split(/,| /);if(typeof e==`number`)return[e];if(e instanceof RegExp||Array.isArray(e))return e;throw Error(`checkFormatMsgId bad format ${typeof e} : ${String(e)}`)},gw=function(e,t){let n=()=>!1;e.checkConditions&&e.checkConditions in fw?(n=fw[e.checkConditions],delete e.checkConditions):this.settings.checkConditions&&(n=fw[this.settings.checkConditions]);let r=_w(e);if(typeof t==`function`)return e=>{n(r,e)&&t(e)};if(Array.isArray(t)){let e=[];for(let i of t)n(r,i)&&e.push(i);return e}throw Error(`Bad wrapper`)},_w=function(e){if(typeof e!=`object`||!e)return!1;for(let t in e){if(!(t in dw))return!1;let n=e[t];if(n.operator&&!(n.operator in uw))throw Error(`Contitions bad operator : ${n.operator}`);if(n.data)switch(t){case`severity`:{n.operator||=`==`;let e=pw(n.data);n.data={};for(let t=0;t<e.length;t++){let r=pC.severityToString(e[t]);if(r)n.data[r]=lw[r];else return!1}break}case`msgid`:{n.operator||=`==`;let e=hw(n.data);if(Array.isArray(e)){n.data={};for(let t=0;t<e.length;t++)n.data[String(e[t])]=`||`}else n.data=e;break}case`date`:{let e=mw(n.data);if(e)n.data=e;else return!1;break}default:return!1}else return!1}return e},vw=function(e,t,n,r,i){return new pC(e,t||this.settings.defaultSeverity,n,r,i)},yw=class e extends _C{settings;_ring;burstPrinted;missed;invalid;valid;errorTotal;criticTotal;start;_async=!1;_transports=[];_disabledTransports=null;_ringEnabled=!0;_streamEnabled=!0;_severityThreshold=null;_gatedPdu=null;gated=0;_debugOverrides=null;_debugOverrideTimers=null;_debugOverrideExpiry=null;constructor(t){super(t),this.settings=tC({},cw,t||{}),this._ring=new aw(this.settings.maxStack??100),this.burstPrinted=0,this.missed=0,this.invalid=0,this.valid=0,this.errorTotal=0,this.criticTotal=0,this.start=0,this._async=this.settings.async||!1,this.settings.overrideConsole&&e.overrideConsole(this)}get ringStack(){return this._ring.toArray()}get bufferCapacity(){return this._ring.capacity}get ringEnabled(){return this._ringEnabled}setRingEnabled(e){return this._ringEnabled!==e&&(this._ringEnabled=e,e||this._ring.clear(),!0)}get streamEnabled(){return this._streamEnabled}setStreamEnabled(e){return this._streamEnabled!==e&&(this._streamEnabled=e,!0)}setMaxStack(e){if(!Number.isFinite(e)||e<=0||e===this.settings.maxStack)return;let t=this._ring.toArray().slice(-e);this.settings.maxStack=e,this._ring=new aw(e);for(let e of t)this._ring.push(e)}static formatDebug(e){return ow(e)}init(t,n,r){this.removeAllListeners(`onLog`),this.listenWithConditions(r||sw(t,n),t=>e.normalizeLog(t))}static toSeverityNumber(e){if(typeof e==`number`)return e;let t=lw[e];return typeof t==`number`?t:-1}static severityFromInput(e){if(typeof e==`number`)return Number.isInteger(e)&&e>=0&&e<=7?e:null;if(typeof e==`string`){if(/^\d+$/.test(e)){let t=Number(e);return t>=0&&t<=7?t:null}let t=lw[e];return typeof t==`number`?t:null}return null}static parseDebugSpec(t){let n={global:!1,overrides:[]};if(typeof t!=`string`)return n;for(let r of t.split(/[,\s]+/)){if(!r)continue;if(r===`*`){n.global=!0;continue}let t=r.indexOf(`:`);if(t===-1){n.overrides.push({module:r,level:7});continue}let i=r.slice(0,t);if(!i)continue;let a=e.severityFromInput(r.slice(t+1))??7;n.overrides.push({module:i,level:a})}return n}setSeverityThreshold(t){this._severityThreshold=t===null?null:e.toSeverityNumber(t)}severityEnabled(t){return this._severityThreshold===null||e.toSeverityNumber(t)<=this._severityThreshold}setDebugOverride(t,n,r){if(this._debugOverrides===null&&(this._debugOverrides=new Map),this._debugOverrides.set(t,e.toSeverityNumber(n)),this.clearOverrideTimer(t),r!==void 0&&r>0){this._debugOverrideTimers===null&&(this._debugOverrideTimers=new Map);let e=setTimeout(()=>{this.clearDebugOverride(t)},r);e.unref(),this._debugOverrideTimers.set(t,e),this._debugOverrideExpiry===null&&(this._debugOverrideExpiry=new Map),this._debugOverrideExpiry.set(t,Date.now()+r)}else this._debugOverrideExpiry!==null&&(this._debugOverrideExpiry.delete(t),this._debugOverrideExpiry.size===0&&(this._debugOverrideExpiry=null))}clearDebugOverride(e){if(this.clearOverrideTimer(e),this._debugOverrideExpiry!==null&&(this._debugOverrideExpiry.delete(e),this._debugOverrideExpiry.size===0&&(this._debugOverrideExpiry=null)),this._debugOverrides===null)return!1;let t=this._debugOverrides.delete(e);return this._debugOverrides.size===0&&(this._debugOverrides=null),t}clearAllDebugOverrides(){if(this._debugOverrideTimers!==null){for(let e of this._debugOverrideTimers.values())clearTimeout(e);this._debugOverrideTimers=null}this._debugOverrides=null,this._debugOverrideExpiry=null}getDebugOverrides(){if(this._debugOverrides===null)return{};let e={};for(let[t,n]of this._debugOverrides)e[t]=n;return e}getDebugOverrideExpiry(){if(this._debugOverrideExpiry===null)return{};let e={};for(let[t,n]of this._debugOverrideExpiry)e[t]=n;return e}clearOverrideTimer(e){if(this._debugOverrideTimers===null)return;let t=this._debugOverrideTimers.get(e);t!==void 0&&(clearTimeout(t),this._debugOverrideTimers.delete(e),this._debugOverrideTimers.size===0&&(this._debugOverrideTimers=null))}get async(){return this._async}set async(e){this._async=e}clean(){return this.reset()}reset(){return this._ring.clear(),this.removeAllListeners(),this.clearAllDebugOverrides(),this}clearLogStack(){this._ring.clear()}pushStack(e){this._ringEnabled&&this._ring.push(e),this.valid++;let t=e.severity;return t>=0&&t<=3&&(this.errorTotal++,t<=2&&this.criticTotal++),this._ring.length}log(t,n,r,i){if(this._severityThreshold!==null){let i=t instanceof pC?t.severity:e.toSeverityNumber(n??this.settings.defaultSeverity??`DEBUG`),a=this._severityThreshold;if(this._debugOverrides!==null){let e=t instanceof pC?t.msgid:r||this.settings.msgid,n=this._debugOverrides.get(e)??this._debugOverrides.get(`*`);n!==void 0&&(a=n)}if(i>a)return this.gated++,this._gatedPdu===null&&(this._gatedPdu=vw.call(this,`GATED`,`DEBUG`,this.settings.moduleName,r||this.settings.msgid),this._gatedPdu.status=`DROPPED`),this._gatedPdu}let a;if(this.settings.rateLimit!==!1){let e=this.settings.rateLimit,o=Date.now();if(this.start=this.start||o,o>this.start+e&&(this.burstPrinted=0,this.missed=0,this.start=0),this.settings.burstLimit&&this.settings.burstLimit>this.burstPrinted){try{a=t instanceof pC?t:vw.call(this,t,n,this.settings.moduleName,r||this.settings.msgid,i)}catch(e){return console.error(e),this.invalid++,a??=vw.call(this,e,`ERROR`),a.status=`INVALID`,a}return this.pushStack(a),a.status=`ACCEPTED`,this.listenerCount(`onLog`)>0&&this.fire(`onLog`,a),this._transports.length>0&&this._fireTransports(a),this.burstPrinted++,a}return this.missed++,a??=vw.call(this,`DROPPED`,`WARNING`),a.status=`DROPPED`,a}try{a=t instanceof pC?t:vw.call(this,t,n,this.settings.moduleName,r||this.settings.msgid,i)}catch(e){return console.error(e),this.invalid++,a??=vw.call(this,e,`ERROR`),a.status=`INVALID`,a}return this.pushStack(a),a.status=`ACCEPTED`,this.listenerCount(`onLog`)>0&&this.fire(`onLog`,a),this._transports.length>0&&this._fireTransports(a),a}getLogStack(e,t,n){if(arguments.length===0)return this._ring.last();let r;return r=n?this.getLogs(n):this.ringStack,t?e===t?r[r.length-e-1]:r.slice(e,t):r.slice(e)}getLogs(e,t=null){return e?gw.call(this,e,t||this.ringStack):this.ringStack}logToJson(e,t=null){let n=e?this.getLogs(e,t):this.ringStack;return JSON.stringify(n)}loadStack(e,t=!1,n=null){if(!e)throw Error(`syslog loadStack : not stack in arguments `);if(typeof e==`string`)return this.loadStack(JSON.parse(e),t,n);if(Array.isArray(e)||typeof e==`object`){for(let r of e){let e=new pC(r.payload,r.severity,r.moduleName||this.settings.moduleName,r.msgid,r.msg,r.timeStamp);this.pushStack(e),t&&(n&&n.call(this,e,r),this.fire(`onLog`,e))}return e}throw Error(`syslog loadStack : bad stack in arguments type`)}filter(e,t){if(!e)throw Error(`filter conditions not found `);e=tC(!0,{},e);let n=gw.call(this,e,t);n&&super.on(`onLog`,n)}listenWithConditions(e,t){return this.filter(e,t)}error(e){return this.log(e,`ERROR`)}warn(e){return this.log(e,`WARNING`)}info(e){return this.log(e,`INFO`)}debug(e){return this.log(e,`DEBUG`)}trace(e,...t){return this.log(e,`NOTICE`,...t)}print(...e){let t=e.length===1?e[0]:e;return this.log(t,this.settings.defaultSeverity)}logMultiple(e,...t){let n=t.length===1?t[0]:t;return this.log(n,e)}addTransport(e){let t=this._transports.findIndex(t=>t.name===e.name);return t===-1?this._transports.push(e):this._transports[t]!==e&&(this._transports[t]=e),this}removeTransport(e){let t=this._transports.indexOf(e);return t!==-1&&this._transports.splice(t,1),this}get transportCount(){return this._transports.length}listTransports(){let e=this._transports.map(e=>({name:e.name,enabled:!0}));if(this._disabledTransports)for(let t of this._disabledTransports.keys())e.push({name:t,enabled:!1});return e}setTransportEnabled(e,t){if(t){let t=this._disabledTransports?.get(e);return t?(this._disabledTransports.delete(e),this._disabledTransports.size===0&&(this._disabledTransports=null),this.addTransport(t),!0):!1}let n=this._transports.findIndex(t=>t.name===e);if(n===-1)return!1;let[r]=this._transports.splice(n,1);return(this._disabledTransports??=new Map).set(e,r),!0}_fireTransports(e){for(let t of this._transports)t.send(e).catch(t=>this.fire(`onTransportError`,t,e))}static _nativeConsole={log:console.log.bind(console),info:console.info.bind(console),warn:console.warn.bind(console),error:console.error.bind(console),debug:console.debug.bind(console),trace:console.trace.bind(console),table:console.table.bind(console),dir:console.dir.bind(console)};static _savedConsole=null;static SEVERITY_WIDTH=7;static MSGID_WIDTH=18;static wrapper(t){if(!t)throw Error(`Syslog pdu not defined`);let n=new Date(t.timeStamp),r=`${String(n.getHours()).padStart(2,`0`)}:${String(n.getMinutes()).padStart(2,`0`)}:${String(n.getSeconds()).padStart(2,`0`)}.${String(n.getMilliseconds()).padStart(3,`0`)}`,i=t.severityName.padEnd(e.SEVERITY_WIDTH),a=LC(t.msgid.padEnd(e.MSGID_WIDTH));switch(t.severity){case 0:case 1:case 2:case 3:return{logger:e._nativeConsole.error,text:`${r} ${PC(i)} ${a} : `};case 4:return{logger:e._nativeConsole.warn,text:`${r} ${NC(i)} ${a} : `};case 5:return{logger:e._nativeConsole.log,text:`${r} ${PC(i)} ${a} : `};case 6:return{logger:e._nativeConsole.info,text:`${r} ${IC(i)} ${a} : `};case 7:return{logger:e._nativeConsole.debug,text:`${r} ${FC(i)} ${a} : `};default:return{logger:e._nativeConsole.log,text:`${r} ${FC(i)} ${a} : `}}}static normalizeLog(t,n=``){if(t.payload===``||t.payload===void 0)return e._nativeConsole.warn(`${t.severityName} ${t.msgid} : logger message empty !!!!`),e._nativeConsole.trace(t),t;let r=t.payload,i=e.wrapper(t),a=n?`${n} `:``;return i.logger(`${a}${i.text}`,r),t}static rawLog(t,n=``){if(t.payload===``||t.payload===void 0)return t;let r=t.severity<=3?iw:rw,{text:i}=e.wrapper(t),a=typeof t.payload==`string`||typeof t.payload==`number`?String(t.payload):vC(t.payload,{depth:3,colors:AC(),breakLength:1/0});return r(`${n?`${n} `:``}${i}${a}\n`),t}static setOutputBuffering(e){tw(e)}static flushOutput(){ew()}static setLogSink(e){nw(e)}static get logSinkName(){return XC.name}static get sinkEnabled(){return!ZC}static setSinkEnabled(e){let t=!e;return ZC!==t&&(ZC=t,!0)}static overrideConsole(t){if(e._savedConsole!==null){t.log(`Syslog.overrideConsole: already active`,`WARNING`);return}e._savedConsole={log:console.log.bind(console),info:console.info.bind(console),warn:console.warn.bind(console),error:console.error.bind(console),debug:console.debug.bind(console),trace:console.trace.bind(console),table:console.table.bind(console),dir:console.dir.bind(console)};let n=console;n.log=(...e)=>t.print(...e),n.info=(...e)=>t.logMultiple(`INFO`,...e),n.warn=(...e)=>t.logMultiple(`WARNING`,...e),n.error=(...e)=>t.logMultiple(`ERROR`,...e),n.debug=(...e)=>t.logMultiple(`DEBUG`,...e),n.table=e=>t.logMultiple(`INFO`,e),n.dir=e=>t.logMultiple(`DEBUG`,e)}static restoreConsole(){e._savedConsole!==null&&(Object.assign(console,e._savedConsole),e._savedConsole=null)}},bw=Symbol.for(`nodefony.packageInstances`);function xw(){return globalThis[bw]??[]}function Sw(){return xw().length>1}var Cw={events:{nbListeners:20}},ww=typeof process<`u`&&{}.NF_PERF_PROBE===`1`;function Tw(e){let t=globalThis.__nfPerfProbe;t&&t.t0!==0n&&(t[e]+=Number(process.hrtime.bigint()-t.t0))}var Ew={moduleName:`SERVICE `,defaultSeverity:`INFO`};function Dw(e){let t=e?.constructor?.name;return t&&t!==`Object`?`une instance de ${t}`:`un ${typeof e} littéral`}var Ow=class e{name;options;container;kernel;syslog;#e;#t=null;#n=!1;get notificationsCenter(){return this.#e}get nc(){if(!this.#e)throw Error(`${this.name}: notificationsCenter not initialized`);return this.#e}constructor(e,t,n,r={}){if(ww&&Tw(`svcStartNs`),this.name=e,t instanceof GS)this.container=t;else{if(t!=null)throw Error(Sw()?`${e} : le container reçu n'est pas un Container de CE paquet \`nodefony\` — deux copies du paquet tournent dans ce process. \`npm ls nodefony\` les liste ; l'avertissement de boot nomme leurs chemins. Un service ne peut pas être construit à cette frontière.`:`${e} : le container reçu n'est pas un \`Container\` (reçu : ${Dw(t)}). Une seule copie du paquet \`nodefony\` tourne dans ce process — ce n'est donc pas une dualité de paquet, mais un objet qui n'en est pas un. Passer le container du module (\`module.container\`), ou \`new Container()\`.`);this.container=new GS}let{events:i,...a}=r,o=i??Cw.events;if(this.options=a,ww&&Tw(`svcOptsNs`),this.kernel=this.container.get(`kernel`),this.syslog=this.container.get(`syslog`),ww&&Tw(`svcLookupsNs`),!this.syslog){let e={...Ew,moduleName:this.name,...this.options.syslog};this.syslog=new yw(e),this.container.set(`syslog`,this.syslog)}if(n instanceof _C){this.#n=!0,this.#e=n,this.attachConfiguredListeners(r);let e=this.#e.getMaxListeners(),t=o?.nbListeners??0;t>e&&this.#e.setMaxListeners(t)}else n!==!1&&(this.#e=new _C(this.options,this,this.options),o?.nbListeners&&this.#e.setMaxListeners(o.nbListeners),(!this.kernel||this.kernel.container!==this.container)&&this.container.set(`notificationsCenter`,this.#e));ww&&Tw(`svcEventNs`)}attachConfiguredListeners(e){for(let t of Object.keys(e)){if(!/^on(.+)$/.test(t))continue;let n=e[t];typeof n==`function`&&this.on(t,n.bind(this))}}initSyslog(e=`production`,t=!1,n){return this.syslog?this.syslog.init(e,t,n):null}getName(){return this.name}clean(e=!1){if(this.#e&&this.#n&&this.#t)for(let[e,t]of this.#t)for(let n of t)this.#e.removeListener(e,n);this.#t=null,this.#n=!1,this.syslog&&e&&this.syslog.reset(),this.syslog=null,this.#e=void 0,this.container=null,this.kernel=null}log(e,t,n,r){try{return n||=this.name,this.syslog?this.syslog.log(e,t,n,r):new pC(e,t,this.name,n,r)}catch(i){return console.log(t,n,r,` : `,e),console.warn(i),new pC(i,`ERROR`,this.name,n,r)}}logger(e,...t){console.debug(yw.wrapper(this.log(e,`DEBUG`)).text,e,...t)}trace(e,...t){console.trace(yw.wrapper(this.log(e,`DEBUG`)).text,e,...t)}trackListener(e,t){this.#t===null&&(this.#t=new Map);let n=this.#t.get(e)??[];n.push(t),this.#t.set(e,n)}untrackListener(e,t){let n=this.#t;if(!n)return;let r=n.get(e);if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1),r.length===0&&n.delete(e)}eventNames(){return this.nc.eventNames()}fire(e,...t){return this.nc.emit(e,...t)}fireAsync(e,...t){return this.nc.emitAsync(e,...t)}emit(e,...t){return this.nc.emit(e,...t)}emitAsync(e,...t){return this.nc.emitAsync(e,...t)}emitAsyncGuarded(e,t,...n){return this.nc.emitAsyncGuarded(e,t,...n)}addListener(e,t){return this.nc.addListener(e,t),this.trackListener(e,t),this}listen(e,t){return this.nc.listen(this,e,t)}on(e,t){return this.nc.on(e,t),this.trackListener(e,t),this}once(e,t){return this.nc.once(e,t),this.trackListener(e,t),this}off(e,t){return this.nc.off(e,t),this.untrackListener(e,t),this}settingsToListen(e,t){this.nc.settingsToListen(e,t)}setMaxListeners(e){return this.nc.setMaxListeners(e),this}removeListener(e,t){return this.nc.removeListener(e,t),this.untrackListener(e,t),this}removeAllListeners(e){return e===void 0?(this.#t=null,this.nc.removeAllListeners()):(this.#t?.delete(e),this.nc.removeAllListeners(e)),this}prependOnceListener(e,t){return this.nc.prependOnceListener(e,t),this.trackListener(e,t),this}prependListener(e,t){return this.nc.prependListener(e,t),this.trackListener(e,t),this}getMaxListeners(){return this.nc.getMaxListeners()}listenerCount(e,t){return this.nc.listenerCount(e,t)}listeners(e){return this.nc.listeners(e)}rawListeners(e){return this.nc.rawListeners(e)}get(e){return this.container?.get(e)??null}set(e,t){if(!this.container)throw Error(`${this.name}: container not initialized`);this.container.set(e,t)}remove(t){if(this.container){let n=this.get(t);if(n)return n instanceof e&&n.clean(),this.container.remove(t)}return!1}getParameters(e){return this.container?.getParameters(e)??null}setParameters(e,t){if(!this.container)throw Error(`${this.name}: container not initialized`);return this.container.setParameters(e,t)}has(e){return this.container?.has(e)??!1}},kw=class{syslog;#e;#t;#n=`created`;#r=null;#i=null;#a=null;#o=null;#s=null;constructor(e={}){this.#t=e,this.#e=new Ow(e.name??`CLIENT KERNEL`),this.syslog=this.#e.syslog,this.#s=kS(this,this.name,this.#t.banner),this.#u()}get(e){if(this.#a)return this.#a[e]}set(e,t){(this.#a??=Object.create(null))[e]=t}has(e){return this.#a!==null&&this.#a[e]!==void 0}get state(){return this.#n}boot(){return this.#n===`terminated`||this.#n===`ready`?Promise.resolve():(this.#i||=this.#c(),this.#i)}async#c(){this.#n=`booting`,this.#e.fire(`onBoot`,this),this.#d();let e=this.#t.connectOnBoot===!1?void 0:this.get(`realtime`);if(e)try{await e.connect()}catch(e){this.syslog.log(e instanceof Error?e.message:String(e),`WARNING`)}this.#n===`booting`&&(this.#n=`ready`,this.#l(),this.#e.fire(`onReady`,this))}#l(){if(this.#t.banner===!1||this.#t.banner!==!0&&!CS())return;let e=this.get(`realtime`),t={état:{valeur:this.state},identité:{valeur:this.identity?this.identity.key:`anonyme`},"temps réel":{valeur:e?e.url??`socket fournie`:`aucun`},socket:{valeur:e?e.state:`—`}};for(let e of this.#a?Object.keys(this.#a):[])t[`service · ${e}`]={valeur:`composé`};jS(t,this,`noyau client — détail et raccourcis`)}#u(){if(this.has(`realtime`))return;let e=this.#t.realtime;e&&this.set(`realtime`,e instanceof VS?e:VS.shared(e))}async terminate(){if(this.#n===`terminated`)return;this.#n=`terminated`,this.#e.fire(`onTerminate`,this);let e=this.get(`realtime`);e&&e.disconnect(),this.#f(),this.#s?.(),this.#s=null,this.#i=null,this.#a=null,this.#e.clean()}get name(){return this.#e.name}get identity(){return this.#r}setIdentity(e){let t=this.#r,n=t?t.key:null,r=e?e.key:null;if(this.#r=e,n===r)return;let i=this.get(`realtime`);i&&(n!==null&&i.disconnect(),r!==null&&i.connect()),this.#e.fire(`onIdentityChange`,e,t)}on(e,t){return this.#e.on(e,t),this}off(e,t){return this.#e.removeListener(e,t),this}#d(){if(this.#t.browserEvents===!1)return;let e=globalThis.document,t=globalThis.window;if(!e||!t)return;let n=(e,t,n)=>{e.addEventListener(t,n),(this.#o??=[]).push(()=>e.removeEventListener(t,n))};n(e,`visibilitychange`,()=>this.#e.fire(`onVisibility`,e.visibilityState!==`hidden`)),n(t,`online`,()=>this.#e.fire(`onOnline`,!0)),n(t,`offline`,()=>this.#e.fire(`onOnline`,!1)),n(t,`pagehide`,()=>void this.terminate())}#f(){if(this.#o){for(let e of this.#o)e();this.#o=null}}get browserListenerCount(){return this.#o?this.#o.length:0}};function Aw(e={}){return new kw(e)}var jw=null,Mw=null,Nw=!1;function Pw(){return jw===null&&(jw=globalThis.crypto.randomUUID()),jw}function Fw(){}function Iw(){return Nw?()=>{}:(Nw=!0,Mw=pC.requestIdProvider,pC.requestIdProvider=Fw,()=>{Nw&&(Nw=!1,pC.requestIdProvider=Mw,Mw=null)})}function Lw(e,t){return e.length<=t?e:`${e.slice(0,t)}… [+${e.length-t}]`}function Rw(e,t){if(e==null)return e;if(e instanceof Error)return{name:e.name,message:Lw(e.message,t),stack:e.stack?Lw(e.stack,t):void 0};let n=typeof e;if(n===`string`)return Lw(e,t);if(n===`number`||n===`boolean`)return e;if(n===`function`||n===`symbol`||n===`bigint`)return Lw(String(e),t);try{return JSON.parse(Lw(JSON.stringify(e)??`null`,t))}catch{return Lw(String(e),t)}}function zw(e){let{syslog:t,publisher:n,maxSeverity:r=4,batchMs:i=2e3,maxBatch:a=50,maxQueue:o=200,maxStringLength:s=4096,channel:c=aS.syslogUplink}=e,l=null,u=0,d=null,f=!1,p=()=>{if(d!==null&&(clearTimeout(d),d=null),l===null||l.length===0)return;let e={pageId:Pw(),entries:l};u>0&&(e.dropped=u),l=null,u=0;try{n.publish(c,e)}catch{}},m=e=>{if(f||e.severity>r||e.msgid===`CLIENT_UPLINK`)return;l===null&&(l=[]),l.length>=o&&(l.shift(),u+=1);let t={severity:e.severity,severityName:e.severityName,moduleName:e.moduleName,msgid:e.msgid,msg:Lw(e.msg??``,s),timeStamp:e.timeStamp,payload:Rw(e.payload,s)};if(e.requestId!==void 0&&(t.requestId=e.requestId),l.push(t),l.length>=a){p();return}d===null&&(d=setTimeout(p,i))};return t.on(`onLog`,m),()=>{f||(f=!0,t.removeListener(`onLog`,m),p())}}var Bw={outline:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},filled:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`}},Vw=(e,t,n,r)=>{let i=(0,U.forwardRef)(({color:n=`currentColor`,size:i=24,stroke:a=2,title:o,className:s,children:c,...l},u)=>(0,U.createElement)(`svg`,{ref:u,...Bw[e],width:i,height:i,className:[`tabler-icon`,`tabler-icon-${t}`,s].join(` `),...e===`filled`?{fill:n}:{strokeWidth:a,stroke:n},...l},[o&&(0,U.createElement)(`title`,{key:`svg-title`},o),...r.map(([e,t])=>(0,U.createElement)(e,t)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i},Hw=Vw(`outline`,`alert-circle`,`AlertCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 8v4`,key:`svg-1`}],[`path`,{d:`M12 16h.01`,key:`svg-2`}]]),Uw=Vw(`outline`,`alert-triangle`,`AlertTriangle`,[[`path`,{d:`M12 9v4`,key:`svg-0`}],[`path`,{d:`M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0`,key:`svg-1`}],[`path`,{d:`M12 16h.01`,key:`svg-2`}]]),Ww=Vw(`outline`,`arrow-right`,`ArrowRight`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}],[`path`,{d:`M13 18l6 -6`,key:`svg-1`}],[`path`,{d:`M13 6l6 6`,key:`svg-2`}]]),Gw=Vw(`outline`,`arrows-maximize`,`ArrowsMaximize`,[[`path`,{d:`M16 4l4 0l0 4`,key:`svg-0`}],[`path`,{d:`M14 10l6 -6`,key:`svg-1`}],[`path`,{d:`M8 20l-4 0l0 -4`,key:`svg-2`}],[`path`,{d:`M4 20l6 -6`,key:`svg-3`}],[`path`,{d:`M16 20l4 0l0 -4`,key:`svg-4`}],[`path`,{d:`M14 14l6 6`,key:`svg-5`}],[`path`,{d:`M8 4l-4 0l0 4`,key:`svg-6`}],[`path`,{d:`M4 4l6 6`,key:`svg-7`}]]),Kw=Vw(`outline`,`bolt`,`Bolt`,[[`path`,{d:`M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11`,key:`svg-0`}]]),qw=Vw(`outline`,`book-2`,`Book2`,[[`path`,{d:`M19 4v16h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12`,key:`svg-0`}],[`path`,{d:`M19 16h-12a2 2 0 0 0 -2 2`,key:`svg-1`}],[`path`,{d:`M9 8h6`,key:`svg-2`}]]),Jw=Vw(`outline`,`brand-github`,`BrandGithub`,[[`path`,{d:`M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5`,key:`svg-0`}]]),Yw=Vw(`outline`,`bulb`,`Bulb`,[[`path`,{d:`M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7`,key:`svg-0`}],[`path`,{d:`M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3`,key:`svg-1`}],[`path`,{d:`M9.7 17l4.6 0`,key:`svg-2`}]]),Xw=Vw(`outline`,`chart-line`,`ChartLine`,[[`path`,{d:`M4 19l16 0`,key:`svg-0`}],[`path`,{d:`M4 15l4 -6l4 2l4 -5l4 4`,key:`svg-1`}]]),Zw=Vw(`outline`,`check`,`Check`,[[`path`,{d:`M5 12l5 5l10 -10`,key:`svg-0`}]]),Qw=Vw(`outline`,`chevron-down`,`ChevronDown`,[[`path`,{d:`M6 9l6 6l6 -6`,key:`svg-0`}]]),$w=Vw(`outline`,`chevron-right`,`ChevronRight`,[[`path`,{d:`M9 6l6 6l-6 6`,key:`svg-0`}]]),eT=Vw(`outline`,`chevron-up`,`ChevronUp`,[[`path`,{d:`M6 15l6 -6l6 6`,key:`svg-0`}]]),tT=Vw(`outline`,`chevrons-down`,`ChevronsDown`,[[`path`,{d:`M7 7l5 5l5 -5`,key:`svg-0`}],[`path`,{d:`M7 13l5 5l5 -5`,key:`svg-1`}]]),nT=Vw(`outline`,`chevrons-up`,`ChevronsUp`,[[`path`,{d:`M7 11l5 -5l5 5`,key:`svg-0`}],[`path`,{d:`M7 17l5 -5l5 5`,key:`svg-1`}]]),rT=Vw(`outline`,`clock`,`Clock`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 7v5l3 3`,key:`svg-1`}]]),iT=Vw(`outline`,`columns-3`,`Columns3`,[[`path`,{d:`M3 4a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-16`,key:`svg-0`}],[`path`,{d:`M9 3v18`,key:`svg-1`}],[`path`,{d:`M15 3v18`,key:`svg-2`}]]),aT=Vw(`outline`,`copy`,`Copy`,[[`path`,{d:`M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666`,key:`svg-0`}],[`path`,{d:`M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1`,key:`svg-1`}]]),oT=Vw(`outline`,`device-floppy`,`DeviceFloppy`,[[`path`,{d:`M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2`,key:`svg-0`}],[`path`,{d:`M10 14a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-1`}],[`path`,{d:`M14 4l0 4l-6 0l0 -4`,key:`svg-2`}]]),sT=Vw(`outline`,`exclamation-mark`,`ExclamationMark`,[[`path`,{d:`M12 19v.01`,key:`svg-0`}],[`path`,{d:`M12 15v-10`,key:`svg-1`}]]),cT=Vw(`outline`,`external-link`,`ExternalLink`,[[`path`,{d:`M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6`,key:`svg-0`}],[`path`,{d:`M11 13l9 -9`,key:`svg-1`}],[`path`,{d:`M15 4h5v5`,key:`svg-2`}]]),lT=Vw(`outline`,`eye-off`,`EyeOff`,[[`path`,{d:`M10.585 10.587a2 2 0 0 0 2.829 2.828`,key:`svg-0`}],[`path`,{d:`M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87`,key:`svg-1`}],[`path`,{d:`M3 3l18 18`,key:`svg-2`}]]),uT=Vw(`outline`,`filter-off`,`FilterOff`,[[`path`,{d:`M8 4h12v2.172a2 2 0 0 1 -.586 1.414l-3.914 3.914m-.5 3.5v4l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227`,key:`svg-0`}],[`path`,{d:`M3 3l18 18`,key:`svg-1`}]]),dT=Vw(`outline`,`filter`,`Filter`,[[`path`,{d:`M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227`,key:`svg-0`}]]),fT=Vw(`outline`,`inbox`,`Inbox`,[[`path`,{d:`M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12`,key:`svg-0`}],[`path`,{d:`M4 13h3l3 3h4l3 -3h3`,key:`svg-1`}]]),pT=Vw(`outline`,`info-circle`,`InfoCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 9h.01`,key:`svg-1`}],[`path`,{d:`M11 12h1v4h1`,key:`svg-2`}]]),mT=Vw(`outline`,`layout-sidebar-right-collapse`,`LayoutSidebarRightCollapse`,[[`path`,{d:`M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12`,key:`svg-0`}],[`path`,{d:`M15 4v16`,key:`svg-1`}],[`path`,{d:`M9 10l2 2l-2 2`,key:`svg-2`}]]),hT=Vw(`outline`,`layout-sidebar-right-expand`,`LayoutSidebarRightExpand`,[[`path`,{d:`M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12`,key:`svg-0`}],[`path`,{d:`M15 4v16`,key:`svg-1`}],[`path`,{d:`M10 10l-2 2l2 2`,key:`svg-2`}]]),gT=Vw(`outline`,`list`,`List`,[[`path`,{d:`M9 6l11 0`,key:`svg-0`}],[`path`,{d:`M9 12l11 0`,key:`svg-1`}],[`path`,{d:`M9 18l11 0`,key:`svg-2`}],[`path`,{d:`M5 6l0 .01`,key:`svg-3`}],[`path`,{d:`M5 12l0 .01`,key:`svg-4`}],[`path`,{d:`M5 18l0 .01`,key:`svg-5`}]]),_T=Vw(`outline`,`lock`,`Lock`,[[`path`,{d:`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6`,key:`svg-0`}],[`path`,{d:`M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0`,key:`svg-1`}],[`path`,{d:`M8 11v-4a4 4 0 1 1 8 0v4`,key:`svg-2`}]]),vT=Vw(`outline`,`maximize`,`Maximize`,[[`path`,{d:`M4 8v-2a2 2 0 0 1 2 -2h2`,key:`svg-0`}],[`path`,{d:`M4 16v2a2 2 0 0 0 2 2h2`,key:`svg-1`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v2`,key:`svg-2`}],[`path`,{d:`M16 20h2a2 2 0 0 0 2 -2v-2`,key:`svg-3`}]]),yT=Vw(`outline`,`refresh`,`Refresh`,[[`path`,{d:`M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4`,key:`svg-0`}],[`path`,{d:`M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4`,key:`svg-1`}]]),bT=Vw(`outline`,`search`,`Search`,[[`path`,{d:`M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`,key:`svg-0`}],[`path`,{d:`M21 21l-6 -6`,key:`svg-1`}]]),xT=Vw(`outline`,`selector`,`Selector`,[[`path`,{d:`M8 9l4 -4l4 4`,key:`svg-0`}],[`path`,{d:`M16 15l-4 4l-4 -4`,key:`svg-1`}]]),ST=Vw(`outline`,`settings`,`Settings`,[[`path`,{d:`M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065`,key:`svg-0`}],[`path`,{d:`M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`,key:`svg-1`}]]),CT=Vw(`outline`,`trash`,`Trash`,[[`path`,{d:`M4 7l16 0`,key:`svg-0`}],[`path`,{d:`M10 11l0 6`,key:`svg-1`}],[`path`,{d:`M14 11l0 6`,key:`svg-2`}],[`path`,{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`,key:`svg-3`}],[`path`,{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`,key:`svg-4`}]]),wT=Vw(`outline`,`wand`,`Wand`,[[`path`,{d:`M6 21l15 -15l-3 -3l-15 15l3 3`,key:`svg-0`}],[`path`,{d:`M15 6l3 3`,key:`svg-1`}],[`path`,{d:`M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`,key:`svg-2`}],[`path`,{d:`M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`,key:`svg-3`}]]);function TT({title:e,subtitle:t,icon:n,actions:r,sticky:i}){let a=(0,U.useRef)(null);return(0,U.useEffect)(()=>{if(!i||!a.current)return;let e=document.documentElement,t=a.current,n=()=>{e.style.setProperty(`--nf-pageheader-height`,`${t.offsetHeight}px`)};n();let r=new ResizeObserver(n);return r.observe(t),()=>{r.disconnect(),e.style.setProperty(`--nf-pageheader-height`,`0px`)}},[i]),(0,G.jsxs)(X,{ref:a,justify:`space-between`,align:`flex-end`,wrap:`nowrap`,style:i?{position:`sticky`,top:0,zIndex:2,background:`var(--mantine-color-body)`,marginInline:`calc(var(--mantine-spacing-md) * -1)`,paddingInline:`var(--mantine-spacing-md)`,paddingBlock:`var(--mantine-spacing-sm)`,borderBottom:`1px solid var(--mantine-color-default-border)`}:void 0,children:[(0,G.jsxs)(sx,{gap:4,children:[(0,G.jsxs)(X,{gap:`xs`,wrap:`nowrap`,children:[n,(0,G.jsx)(eS,{order:1,size:`h2`,children:e})]}),t&&(0,G.jsx)(Z,{c:`dimmed`,size:`sm`,component:`div`,children:t})]}),r&&(0,G.jsx)(X,{gap:`xs`,wrap:`nowrap`,children:r})]})}function ET({title:e,subtitle:t,icon:n,actions:r,gap:i=`md`,children:a}){return(0,G.jsxs)(sx,{gap:i,children:[(0,G.jsx)(TT,{title:e,subtitle:t,icon:n,actions:r,sticky:!0}),a]})}function DT({children:e,...t}){return(0,G.jsx)(Ux.List,{...t,style:{position:`sticky`,top:`var(--nf-pageheader-height, 76px)`,zIndex:1,background:`var(--mantine-color-body)`,...t.style},children:e})}function OT({loading:e,error:t,empty:n,onRetry:r,emptyMessage:i,minHeight:a=200,children:o}){return t?(0,G.jsx)(ch,{color:`red`,variant:`light`,icon:(0,G.jsx)(Uw,{size:16}),title:`Erreur de chargement`,children:(0,G.jsxs)(sx,{gap:`sm`,align:`flex-start`,children:[(0,G.jsx)(Z,{size:`sm`,children:t}),r&&(0,G.jsx)(Bg,{size:`xs`,variant:`light`,leftSection:(0,G.jsx)(yT,{size:14}),onClick:r,children:`Réessayer`})]})}):e?(0,G.jsx)(Xg,{mih:a,"aria-busy":`true`,"aria-live":`polite`,children:(0,G.jsx)(zf,{})}):n?(0,G.jsx)(Xg,{mih:a,children:(0,G.jsxs)(sx,{gap:4,align:`center`,c:`dimmed`,children:[(0,G.jsx)(fT,{size:28,stroke:1.4}),(0,G.jsx)(Z,{size:`sm`,children:i??`Aucune donnée.`})]})}):(0,G.jsx)(G.Fragment,{children:o})}var kT={doc:{trigger:pT,header:qw,accent:`brand`,badge:`doc`},graph:{trigger:Xw,header:Xw,accent:`blue`,badge:`graphe`},link:{trigger:cT,header:cT,accent:`grape`,badge:`lien`},tip:{trigger:Yw,header:Yw,accent:`teal`,badge:`astuce`},warning:{trigger:Uw,header:Uw,accent:`yellow`,badge:`attention`}};function AT({kind:e=`doc`,title:t,version:n,summary:r,sections:i=[],links:a=[],width:o=360,children:s}){let c=kT[e],l=c.trigger,u=c.header;return(0,G.jsxs)(A_,{width:o,shadow:`md`,radius:`md`,withArrow:!0,openDelay:100,closeDelay:120,position:`top`,withinPortal:!0,children:[(0,G.jsx)(A_.Target,{children:s?(0,G.jsx)(Ld,{"aria-label":`${c.badge} : ${t}`,style:{display:`inline-flex`,lineHeight:0,cursor:`help`},children:s}):(0,G.jsx)(qf,{variant:`subtle`,color:e===`doc`?`gray`:c.accent,size:`sm`,radius:`xl`,w:24,h:24,"aria-label":`${c.badge} : ${t}`,children:(0,G.jsx)(l,{size:15,stroke:1.6})})}),(0,G.jsxs)(A_.Dropdown,{p:0,children:[(0,G.jsx)(Y,{p:`xs`,style:{borderBottom:`1px solid var(--mantine-color-default-border)`,background:`var(--mantine-color-default-hover)`,borderTopLeftRadius:`var(--mantine-radius-md)`,borderTopRightRadius:`var(--mantine-radius-md)`},children:(0,G.jsxs)(X,{gap:8,wrap:`nowrap`,justify:`space-between`,children:[(0,G.jsxs)(X,{gap:6,wrap:`nowrap`,style:{minWidth:0},children:[(0,G.jsx)(qx,{variant:`light`,color:c.accent,size:`sm`,radius:`sm`,children:(0,G.jsx)(u,{size:14})}),(0,G.jsx)(Z,{fw:700,size:`sm`,truncate:!0,children:t})]}),(0,G.jsxs)(jg,{size:`xs`,variant:`light`,color:c.accent,tt:`none`,children:[c.badge,n?` ${n}`:``]})]})}),(0,G.jsxs)(sx,{gap:`sm`,p:`sm`,children:[r?(0,G.jsx)(Z,{size:`sm`,c:`dimmed`,children:r}):null,i.map((e,t)=>(0,G.jsxs)(Y,{children:[(0,G.jsx)(Z,{size:`xs`,fw:700,tt:`uppercase`,c:c.accent,style:{letterSpacing:.4},mb:2,children:e.label}),(0,G.jsx)(Z,{size:`xs`,c:`dimmed`,children:e.body})]},`${e.label}-${t}`)),a.length>0?(0,G.jsx)(sx,{gap:4,children:a.map(e=>(0,G.jsx)(hh,{href:e.href,target:`_blank`,rel:`noreferrer noopener`,size:`xs`,children:(0,G.jsxs)(X,{gap:4,wrap:`nowrap`,component:`span`,children:[(0,G.jsx)(cT,{size:12}),e.label]})},e.href))}):null]})]})]})}var jT=e=>(0,G.jsx)(AT,{kind:`doc`,...e}),MT=e=>(0,G.jsx)(AT,{kind:`graph`,...e}),NT=e=>(0,G.jsx)(AT,{kind:`tip`,...e}),PT=e=>(0,G.jsx)(AT,{kind:`warning`,...e});function FT({text:e}){return(0,G.jsx)(Zb,{label:e,multiline:!0,w:280,withArrow:!0,position:`top`,events:{hover:!0,focus:!0,touch:!0},children:(0,G.jsx)(qf,{variant:`subtle`,color:`gray`,size:`sm`,w:24,h:24,style:{cursor:`help`},"aria-label":e,children:(0,G.jsx)(pT,{size:15})})})}function IT({label:e,icon:t,hint:n,info:r,span:i={base:12,sm:6,lg:3},onClick:a,active:o=!1,actionLabel:s,children:c}){let l=a!==void 0;return(0,G.jsx)(y_.Col,{span:i,children:(0,G.jsx)(qg,{withBorder:!0,radius:`md`,p:`lg`,h:`100%`,role:l?`button`:void 0,"aria-pressed":l?o:void 0,"aria-label":l?s:void 0,title:l?s:void 0,tabIndex:l?0:void 0,onClick:a,onKeyDown:l?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),a())}:void 0,style:l?{cursor:`pointer`,borderColor:o?`var(--mantine-color-brand-5)`:void 0,backgroundColor:o?`var(--mantine-color-brand-light)`:void 0}:void 0,children:(0,G.jsxs)(X,{justify:`space-between`,wrap:`nowrap`,children:[(0,G.jsxs)(sx,{gap:2,children:[(0,G.jsxs)(X,{gap:4,children:[(0,G.jsx)(Z,{size:`xs`,c:`dimmed`,tt:`uppercase`,fw:600,children:e}),(0,G.jsx)(`span`,{onClick:l?e=>e.stopPropagation():void 0,onKeyDown:l?e=>e.stopPropagation():void 0,children:r??(n?(0,G.jsx)(jT,{title:e,summary:n}):null)})]}),c]}),t]})})})}function LT({k:e,v:t,mono:n}){return(0,G.jsxs)(X,{justify:`space-between`,wrap:`nowrap`,gap:`md`,children:[(0,G.jsx)(Z,{size:`sm`,c:`dimmed`,children:e}),(0,G.jsx)(Z,{size:`sm`,fw:600,ff:n?`monospace`:void 0,ta:`right`,children:t})]})}function RT({children:e,gap:t=6}){return(0,G.jsx)(sx,{gap:t,children:e})}function zT(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var BT=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HT={};function UT(e,t){return((t||HT).jsx?VT:BT).test(e)}var WT=/[ \t\n\f\r]/g;function GT(e){return typeof e==`object`?e.type===`text`&&KT(e.value):KT(e)}function KT(e){return e.replace(WT,``)===``}var qT=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};qT.prototype.normal={},qT.prototype.property={},qT.prototype.space=void 0;function JT(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new qT(n,r,t)}function YT(e){return e.toLowerCase()}var XT=class{constructor(e,t){this.attribute=t,this.property=e}};XT.prototype.attribute=``,XT.prototype.booleanish=!1,XT.prototype.boolean=!1,XT.prototype.commaOrSpaceSeparated=!1,XT.prototype.commaSeparated=!1,XT.prototype.defined=!1,XT.prototype.mustUseProperty=!1,XT.prototype.number=!1,XT.prototype.overloadedBoolean=!1,XT.prototype.property=``,XT.prototype.spaceSeparated=!1,XT.prototype.space=void 0;var ZT=t({boolean:()=>$T,booleanish:()=>eE,commaOrSpaceSeparated:()=>iE,commaSeparated:()=>rE,number:()=>Q,overloadedBoolean:()=>tE,spaceSeparated:()=>nE}),QT=0,$T=aE(),eE=aE(),tE=aE(),Q=aE(),nE=aE(),rE=aE(),iE=aE();function aE(){return 2**++QT}var oE=Object.keys(ZT),sE=class extends XT{constructor(e,t,n,r){let i=-1;if(super(e,t),cE(this,`space`,r),typeof n==`number`)for(;++i<oE.length;){let e=oE[i];cE(this,oE[i],(n&ZT[e])===ZT[e])}}};sE.prototype.defined=!0;function cE(e,t,n){n&&(e[t]=n)}function lE(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new sE(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[YT(r)]=r,n[YT(a.attribute)]=r}return new qT(t,n,e.space)}var uE=lE({properties:{ariaActiveDescendant:null,ariaAtomic:eE,ariaAutoComplete:null,ariaBusy:eE,ariaChecked:eE,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:nE,ariaCurrent:null,ariaDescribedBy:nE,ariaDetails:null,ariaDisabled:eE,ariaDropEffect:nE,ariaErrorMessage:null,ariaExpanded:eE,ariaFlowTo:nE,ariaGrabbed:eE,ariaHasPopup:null,ariaHidden:eE,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nE,ariaLevel:Q,ariaLive:null,ariaModal:eE,ariaMultiLine:eE,ariaMultiSelectable:eE,ariaOrientation:null,ariaOwns:nE,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:eE,ariaReadOnly:eE,ariaRelevant:null,ariaRequired:eE,ariaRoleDescription:nE,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:eE,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function dE(e,t){return t in e?e[t]:t}function fE(e,t){return dE(e,t.toLowerCase())}var pE=lE({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:rE,acceptCharset:nE,accessKey:nE,action:null,allow:null,allowFullScreen:$T,allowPaymentRequest:$T,allowUserMedia:$T,alpha:$T,alt:null,as:null,async:$T,autoCapitalize:null,autoComplete:nE,autoFocus:$T,autoPlay:$T,blocking:nE,capture:null,charSet:null,checked:$T,cite:null,className:nE,closedBy:null,colorSpace:null,cols:Q,colSpan:Q,command:null,commandFor:null,content:null,contentEditable:eE,controls:$T,controlsList:nE,coords:Q|rE,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$T,defer:$T,dir:null,dirName:null,disabled:$T,download:tE,draggable:eE,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$T,formTarget:null,headers:nE,height:Q,hidden:tE,high:Q,href:null,hrefLang:null,htmlFor:nE,httpEquiv:nE,id:null,imageSizes:null,imageSrcSet:null,inert:$T,inputMode:null,integrity:null,is:null,isMap:$T,itemId:null,itemProp:nE,itemRef:nE,itemScope:$T,itemType:nE,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$T,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:$T,muted:$T,name:null,nonce:null,noModule:$T,noValidate:$T,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$T,optimum:Q,pattern:null,ping:nE,placeholder:null,playsInline:$T,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$T,referrerPolicy:null,rel:nE,required:$T,reversed:$T,rows:Q,rowSpan:Q,sandbox:nE,scope:null,scoped:$T,seamless:$T,selected:$T,shadowRootClonable:$T,shadowRootCustomElementRegistry:$T,shadowRootDelegatesFocus:$T,shadowRootMode:null,shadowRootSerializable:$T,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:eE,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:$T,useMap:null,value:eE,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nE,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$T,declare:$T,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:$T,noHref:$T,noShade:$T,noWrap:$T,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:eE,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:$T,disablePictureInPicture:$T,disableRemotePlayback:$T,exportParts:rE,part:nE,prefix:null,property:null,results:Q,security:null,unselectable:null},space:`html`,transform:fE}),mE=lE({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:iE,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:nE,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:$T,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:rE,g2:rE,glyphName:rE,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:iE,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nE,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:iE,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:iE,rev:iE,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:iE,requiredFeatures:iE,requiredFonts:iE,requiredFormats:iE,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:iE,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:iE,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:iE,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:dE}),hE=lE({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),gE=lE({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:fE}),_E=lE({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),vE={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},yE=/[A-Z]/g,bE=/-[a-z]/g,xE=/^data[-\w.:]+$/i;function SE(e,t){let n=YT(t),r=t,i=XT;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&xE.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(bE,wE);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!bE.test(e)){let n=e.replace(yE,CE);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=sE}return new i(r,t)}function CE(e){return`-`+e.toLowerCase()}function wE(e){return e.charAt(1).toUpperCase()}var TE=JT([uE,pE,hE,gE,_E],`html`),EE=JT([uE,mE,hE,gE,_E],`svg`);function DE(e){return e.join(` `).trim()}var OE=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
53
+ Il n'y a pas de valeur par défaut : la route dépend de ton application (une application générée monte /api/live/realtime, la console d'administration /nodefony/studio/api/realtime).`)}static resolveUrl(t){if(!t)throw e.missingUrl();if(typeof window>`u`)return t;try{let e=new URL(t,window.location.href);return e.protocol===`http:`?e.protocol=`ws:`:e.protocol===`https:`&&(e.protocol=`wss:`),e.toString()}catch{throw Error(`[nodefony] adresse du serveur temps réel illisible : ${JSON.stringify(t)}`)}}get state(){return this._state}get reconnectAttempts(){return this.reconnectAttempt}get nextRetryAt(){return this._nextRetryAt}retryNow(){this._state!==`connected`&&this._state!==`connecting`&&(this.reconnectTimer&&=(clearTimeout(this.reconnectTimer),null),this._nextRetryAt=null,this.intentionalClose=!1,this.openSocket().catch(()=>{}))}async connect(e){if(this._state!==`connected`&&this._state!==`connecting`)return this.intentionalClose=!1,this.opts.url=e??this.requireUrl(),this.openSocket()}requireUrl(){if(!this.opts.url)throw e.missingUrl();return this.opts.url}disconnect(){this.intentionalClose=!0,this.clearTimers(),this.transport?.close(1e3,`client disconnect`),this.peer.dispose(`client disconnect`),this._welcomed=!1,this._identity=null,this._serverChannels=null,this._serverMethods=null,this.fireLocal(hS.identity,null),this.setState(`disconnected`)}on(e,t){return this.handlers.has(e)||this.handlers.set(e,new Set),this.handlers.get(e).add(t),()=>this.off(e,t)}off(e,t){this.handlers.get(e)?.delete(t)}onNotice(e){return this.on(hS.notice,e)}onDenied(e){return this.on(hS.denied,e)}emit(e,t){this._emitRaw(e,t)||this.noticeUnsent()}_emitRaw(e,t){return this.peer.notify(e,t)}publish(e,t){this.emit(e,t)}subscribe(e){let t=e,n=(this._subscriptions.get(t)??0)+1;this._subscriptions.set(t,n),n===1&&this._welcomed&&this._emitRaw(`subscribe`,{channel:t})}unsubscribe(e){let t=e,n=this._subscriptions.get(t);n&&(n<=1?(this._subscriptions.delete(t),this._welcomed&&this._emitRaw(`unsubscribe`,{channel:t})):this._subscriptions.set(t,n-1))}get subscribedChannels(){return Array.from(this._subscriptions.keys())}get url(){return this.opts.url??null}get identity(){return this._identity}get serverChannels(){return this._serverChannels}get serverMethods(){return this._serverMethods}onIdentity(e){return this.on(hS.identity,e)}onState(e){return this.on(hS.state,e)}onStats(e){return this.on(hS.stats,e)}onReconnect(e){return this.on(hS.reconnect,e)}channel(e){let t=this,n=new Set;return{name:e,on(r){let i=t.on(e,r);return n.add(i),()=>{i(),n.delete(i)}},send(n){t.publish(e,n)},open(){t.subscribe(e)},close(){for(let e of n)e();n.clear(),t.unsubscribe(e)}}}adaptiveChannel(e,t,n){return LS(this,e,t,n)}async request(e,t,n=3e4){return e.charCodeAt(0)===47&&(typeof t==`number`&&(n=t),t={path:e},e=`api.request`),this.peer.request(e,t,n)}async mutate(e,t){return this.peer.request(`api.request`,{path:e,method:t.method,body:t.body,idempotencyKey:t.idempotencyKey},t.timeoutMs??3e4)}async call(e,t){let{result:n,meta:r}=await this.peer.requestTraced(`api.request`,{path:e,method:t?.method??`GET`,body:t?.body,idempotencyKey:t?.idempotencyKey},t?.timeoutMs??3e4);return{result:n,requestId:typeof r?.requestId==`string`?r.requestId:null}}async ping(e=5e3){let t=()=>typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now(),n=t();return{...await this.request(oS.ping,void 0,e),rtt:Math.round(t()-n)}}notify(e,t){this.peer.notify(e,t)}register(e,t){this.peer.register(e,t)}unregister(e){this.peer.unregister(e)}get methods(){return this.peer.methods}receive(e){this.recordFrame(`in`,e);let t=this.peer.receive(e);return t===`invalid`&&this.handleServerError(e),t}dispose(e){this.peer.dispose(e)}get framesReceived(){return this._framesReceived}get framesUnsent(){return this._framesUnsent}get lastFrameAt(){return this._lastFrameAt}get lastFrameMethod(){return this._lastFrameMethod}getStats(){return Array.from(this._stats.values())}getChannelStats(e){return this._stats.get(e)}trackFrame(e){let t=Date.now();this._framesReceived++,this._lastFrameAt=t,this._lastFrameMethod=e;let n=this._stats.get(e);n||(n={method:e,msgCount:0,lastMessage:null,rate:0,series:[]},this._stats.set(e,n)),n.msgCount++,n.lastMessage=t}replaySubscriptions(){this._welcomed=!0;for(let e of this._subscriptions.keys())this._emitRaw(`subscribe`,{channel:e})}ingestWelcome(e){let t=e;t&&typeof t==`object`&&(this._identity=t.identity??null,this._serverChannels=Array.isArray(t.channels)?t.channels:null,this._serverMethods=Array.isArray(t.methods)?t.methods:null,SS(t.env),this.opts.banner!==!1&&!MS()&&this.detailsSocket(),this.fireLocal(hS.identity,this._identity))}detailsSocket(){jS({adresse:{valeur:this.url??`—`},état:{valeur:this.state},identité:{valeur:this._identity?.authenticated?this._identity.userIdentifier??`authentifié`:`anonyme`},canaux:{valeur:this._serverChannels?.join(`, `)||`aucun`},actions:{valeur:this._serverMethods?.join(`, `)||`aucune`}},this,`socket nodefony — détail et raccourcis`)}ingestDenied(e){let t=e,n=typeof t?.channel==`string`?t.channel:``,r=t?.reason,i=r===`unknown`||r===`limit`?r:`forbidden`,a=typeof t?.detail==`string`?t.detail:void 0,o={channel:n,reason:i,...a===void 0?{}:{detail:a}};this.fireNotice(cS(o)),this.fireLocal(hS.denied,o)}dispatchNotification(e,t){e===`realtime:welcome`?(this.ingestWelcome(t),this.replaySubscriptions()):e===`realtime:denied`&&this.ingestDenied(t),this.trackFrame(e),this.handlers.get(e)?.forEach(e=>{try{e(t)}catch{}}),this.handlers.get(`*`)?.forEach(n=>{try{n(e,t)}catch{}})}handleServerError(e){let t=e.error;t&&typeof t==`object`&&this.fireNotice({level:`error`,title:`Temps réel`,message:t.message||`Erreur serveur temps réel`,source:`server`,code:t.code,ts:Date.now()})}startStatsSampler(){this.statsTimer||(this.statsTimer=setInterval(()=>{for(let e of this._stats.values()){let t=this._prevSampled.get(e.method)??e.msgCount;e.rate=Math.max(0,e.msgCount-t),this._prevSampled.set(e.method,e.msgCount),e.series=[...e.series,e.rate].slice(-32)}this.fireLocal(hS.stats)},1e3),this.statsTimer.unref?.())}fireNotice(e){this.fireLocal(hS.notice,e)}fireLocal(e,...t){this.handlers.get(e)?.forEach(e=>{try{e(...t)}catch{}})}openSocket(){return new Promise((e,t)=>{this._welcomed=!1,this.setState(this.reconnectAttempt>0?`reconnecting`:`connecting`);let n;try{let e=typeof window<`u`?window.location.href:`http://localhost`,t=new URL(this.requireUrl(),e);t.protocol===`http:`?t.protocol=`ws:`:t.protocol===`https:`&&(t.protocol=`wss:`),this.opts.token&&t.searchParams.set(`token`,this.opts.token),n=this.transportFactory(t.toString()),this.transport=n}catch(e){this.setState(`error`),t(e);return}n.onOpen(()=>{let t=this.reconnectAttempt>0;this.reconnectAttempt=0,this._nextRetryAt=null,this.setState(`connected`),this.startHeartbeat(),t&&this.fireNotice({level:`success`,title:`Temps réel`,message:`Connexion temps réel rétablie`,source:`realtime`,ts:Date.now()}),e()}),n.onMessage(e=>this.handleMessage(e)),n.onError(()=>{}),n.onClose((e,t)=>{if(this.clearTimers(),this.transport=null,this.intentionalClose){this.setState(`disconnected`);return}let n=lS(e,t);n&&this.fireNotice(n);let r=dS(e);r&&this.opts.autoReconnect!==!1?this.scheduleReconnect():this.setState(r?`disconnected`:`error`)}),n.connect()})}scheduleReconnect(){this.reconnectAttempt++;let e=this.opts.reconnectDelay??1e3,t=this.opts.reconnectDelayMax??3e4,n=Math.min(e*2**(this.reconnectAttempt-1),t);this._nextRetryAt=Date.now()+n,this.setState(`reconnecting`),this.fireLocal(hS.reconnect,{attempt:this.reconnectAttempt,delay:n,nextRetryAt:this._nextRetryAt}),this.reconnectTimer=setTimeout(()=>{this.openSocket().catch(()=>{})},n)}startHeartbeat(){let e=this.opts.heartbeatInterval??3e4;this.heartbeatTimer=setInterval(()=>{this.transport?.readyState===gS.OPEN&&this._emitRaw(`ping`,{ts:Date.now()})},e)}clearTimers(){this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer=null,this.heartbeatTimer=null}get frameLog(){return(this._rawFrames??[]).map(t=>e.buildFrame(t.dir,t.msg,t.ts))}clearFrameLog(){this._rawFrames&&(this._rawFrames.length=0)}recordFrame(t,n){let r=Date.now();(this._rawFrames??=[]).push({ts:r,dir:t,msg:n}),this._rawFrames.length>RS&&this._rawFrames.shift();let i=this.handlers.get(`__frame__`);i&&i.size>0&&this.fireLocal(`__frame__`,e.buildFrame(t,n,r))}static buildFrame(e,t,n){let r=t??{},i=`?`,a;if(typeof r.method==`string`){i=r.method;let e=r.params;e&&typeof e.channel==`string`&&(a=e.channel)}else`error`in r?i=`error`:`result`in r&&(i=`response`);return{ts:n,dir:e,kind:i,id:typeof r.id==`number`?r.id:void 0,channel:a,payload:BS(t)}}send(e){return this.transport?.readyState===gS.OPEN?(this.transport.send(JSON.stringify(e)),this.recordFrame(`out`,e),!0):(this._framesUnsent++,!1)}noticeUnsent(){this._unsentNotified||(this._unsentNotified=!0,this.fireNotice({level:`warning`,title:`Temps réel`,message:`Connexion interrompue — les messages émis pendant la coupure sont perdus`,source:`realtime`,ts:Date.now()}))}handleMessage(e){if(typeof e!=`string`)return;let t;try{t=JSON.parse(e)}catch{return}this.receive(t)}setState(e){this._state!==e&&(e===`connected`&&(this._unsentNotified=!1),this._state=e,this.fireLocal(hS.state,e))}},HS=function(e){return e!=null},US=function(e,t){if(!this)throw Error(`Bad call`);let n=e.split(`.`),r=n.shift();if(r!==void 0){if(n.length===0)return t!==void 0&&(this[r]=t),this[r]??null;if(this[r]===void 0||this[r]===null){if(t!==void 0)this[r]={};else return null}if(typeof this[r]!=`object`)throw Error(`Cannot create property '${n[0]}' on ${typeof this[r]} '${this[r]}'`);return US.call(this[r],n.join(`.`),t)}return this},WS=0,GS=class e{protoService;services;protoParameters;parameters;id;scopes=null;constructor(t,n=!1,r,i){if(this.id=(++WS).toString(36),this.protoService=r??function(){},this.protoParameters=i??function(){},t&&t instanceof e){if(this.services=Object.create(t.protoService.prototype),this.parameters=Object.create(t.protoParameters.prototype),this.setServices(t.services??{}),n)try{this.setParametersBulk(structuredClone(t.parameters??{}))}catch{this.setParametersBulk(t.parameters??{})}else this.setParametersBulk(t.parameters??{})}else this.services=Object.create(this.protoService.prototype),this.parameters=Object.create(this.protoParameters.prototype)}setServices(e){for(let t in e)this.set(t,e[t])}setParametersBulk(e){for(let t in e)this.setParameters(t,e[t])}log(e,t,n,r){let i=this.get(`syslog`);if(!i){console.warn(`[Container] no syslog registered —`,e);return}return n||=`SERVICES CONTAINER`,i.log(e,t,n,r)}set(e,t){if(this.services&&e)this.protoService.prototype[e]=t,this.services[e]=t;else throw Error(`Container bad argument name`)}get(e){return this.services&&e in this.services?this.services[e]:null}remove(e){if(!this.services)return!1;if(e in this.services){if(delete this.services[e],e in this.protoService.prototype&&delete this.protoService.prototype[e],this.scopes)for(let t of this.scopes.values())for(let n of t.values())n.remove(e);return!0}return!1}has(e){return this.services!=null&&e in this.services}keys(){return Object.keys(this.services??{})}entries(){return Object.entries(this.services??{})}addScope(e){this.scopes===null&&(this.scopes=new Map);let t=this.scopes.get(e);return t||(t=new Map,this.scopes.set(e,t)),t}enterScope(e){let t=this.scopes?.get(e);if(!t)throw Error(`Scope "${e}" not declared. Call addScope("${e}") first.`);let n=new KS(e,this,this.protoService,this.protoParameters);return t.set(n.id,n),n}leaveScope(e){let t=this.scopes?.get(e.name);if(t){let n=t.get(e.id);n&&(n.clean(),t.delete(e.id))}}scopeCount(e){return this.scopes?.get(e)?.size??0}removeScope(e){let t=this.scopes?.get(e);if(t){for(let e of t.values())this.leaveScope(e);this.scopes?.delete(e)}}removeAllScopes(){if(this.scopes){for(let e of this.scopes.keys())this.removeScope(e);this.scopes=null}}setParameters(e,t){if(typeof e!=`string`)throw Error(`setParameters : container parameter name must be a string`);if(t===void 0)throw Error(`setParameters : ${e} container parameter value must be defined`);return this.parameters?US.call(this.parameters,e,t):null}getParameters(e){if(!e)throw Error(`getParameters : invalid name "${e}"`);return this.parameters?US.call(this.parameters,e):null}clean(){this.removeAllScopes(),this.services=null,this.parameters=null}reset(){this.clean(),this.protoService=function(){},this.protoParameters=function(){},this.services=Object.create(this.protoService.prototype),this.parameters=Object.create(this.protoParameters.prototype)}},KS=class extends GS{name;parent;constructor(e,t,n,r){super(void 0,!1,n,r),this.name=e,this.parent=t}set(e,t){if(this.services&&e)this.services[e]=t;else throw Error(`Container bad argument name`)}remove(e){return this.services&&Object.prototype.hasOwnProperty.call(this.services,e)?(delete this.services[e],!0):!1}getParameters(e,t=!0,n=!0){let r=US.call(this.parameters??{},e),i=this.parent?.getParameters(e);return HS(r)?t&&eC(i)&&eC(r)?tC(n,i,r):r:i??null}clean(){return this.parent=null,super.clean()}},qS=Object.prototype,JS=qS.toString,YS=qS.hasOwnProperty,XS=YS.toString,ZS=XS.call(Object),QS=Object.getPrototypeOf,$S=Array.isArray,eC=e=>{if(!e||JS.call(e)!==`[object Object]`)return!1;let t=QS(e);if(!t)return!0;let n=YS.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&XS.call(n)===ZS},tC=(...e)=>{let t,n,r,i,a=!1,o,s=e[0]||{},c=1,l=!1,{length:u}=e;for(typeof s==`boolean`&&(l=s,s=e[c]||{},c++),typeof s!=`object`&&typeof s!=`function`&&(s={}),c===u&&(s={},c--);c<u;c++)if((t=e[c])!=null)for(n in t)YS.call(t,n)&&(i=t[n],n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&s!==i&&(l&&i&&(eC(i)||(a=$S(i)))?(r=s[n],o=a&&!$S(r)?[]:!a&&!eC(r)?{}:r,a=!1,s[n]=tC(l,o,i)):i!==void 0&&(s[n]=i)));return s};globalThis.Buffer;var nC=function(e){return e[e.EMERGENCY=0]=`EMERGENCY`,e[e.ALERT=1]=`ALERT`,e[e.CRITIC=2]=`CRITIC`,e[e.ERROR=3]=`ERROR`,e[e.WARNING=4]=`WARNING`,e[e.NOTICE=5]=`NOTICE`,e[e.INFO=6]=`INFO`,e[e.DEBUG=7]=`DEBUG`,e}(nC||{}),rC=[0,1,2,3,4,5,6,7],iC=[`EMERGENCY`,`ALERT`,`CRITIC`,`ERROR`,`WARNING`,`NOTICE`,`INFO`,`DEBUG`],aC=`browser`,oC=function(e=`INFO`){if(typeof e==`number`){if(rC[e]!==void 0)return rC[e];throw Error(`Not a valid nodefony syslog severity: ${e}`)}if(nC[e]!==void 0)return nC[e];throw Error(`Not a valid nodefony syslog severity: ${e}`)},sC=Object.entries(nC).reduce((e,[t,n])=>(e[t]=n,e),{}),cC=new Map(Object.entries(nC).filter(([,e])=>typeof e==`number`).map(([e,t])=>[t,e])),lC=globalThis.Buffer,uC=globalThis.process?.pid??0,dC=e=>{if(e===null)return null;let t=typeof e;return t===`object`?Array.isArray(e)?`array`:e instanceof Date?`date`:e instanceof RegExp?`RegExp`:e instanceof Error?`Error`:lC?.isBuffer(e)?`buffer`:`object`:t},fC=0,pC=class e{payload;uid;severity;timeStamp;severityName;typePayload;moduleName;msgid;msg;status;pid;requestId;static requestIdProvider=null;constructor(t,n,r=`nodefony`,i=``,a=``,o){this.timeStamp=o===void 0?Date.now():typeof o==`number`?o:o instanceof Date?o.getTime():new Date(o).getTime(),this.uid=++fC,this.severity=oC(n);let s=cC.get(this.severity);if(s===void 0)throw Error(`Invalid severity value: ${this.severity}`);this.severityName=s,this.typePayload=dC(t),this.payload=t,this.moduleName=r,this.msgid=i,this.msg=a,this.status=`NOTDEFINED`,this.pid=uC,this.requestId=e.requestIdProvider===null?void 0:e.requestIdProvider()}static sysLogSeverity(){return sC}static severityToString(t){let n=typeof t==`string`?parseInt(t,10):t;if(!isNaN(n)&&nC[n]!==void 0)return nC[n];let r=e.severityToString(nC[t]);return r===void 0?void 0:r}getDate(){return new Date(this.timeStamp).toTimeString()}toString(){return`TimeStamp:${this.getDate()} Log:${this.payload} ModuleName:${this.moduleName} SeverityName:${this.severityName} MessageID:${this.msgid} UID:${this.uid} Message:${this.msg}`}parseJson(e){let t=JSON.parse(e);return Object.entries(t).forEach(([e,t])=>{e in this&&(this[e]=t)}),t}},mC=class{_listeners=new Map;_maxListeners=10;on(e,t){let n=this._listeners.get(e)??[];return n.push(t),this._listeners.set(e,n),this}addListener(e,t){return this.on(e,t)}once(e,t){let n=(...r)=>{this.off(e,n),t(...r)};return this.on(e,n)}off(e,t){let n=this._listeners.get(e);if(!n)return this;let r=n.indexOf(t);return r!==-1&&n.splice(r,1),n.length===0&&this._listeners.delete(e),this}removeListener(e,t){return this.off(e,t)}removeAllListeners(e){return e===void 0?this._listeners.clear():this._listeners.delete(e),this}emit(e,...t){let n=this._listeners.get(e);if(!n||n.length===0)return!1;for(let e of n.slice())try{e(...t)}catch(e){console.error(`[EventEmitter] listener threw:`,e)}return!0}listenerCount(e){return this._listeners.get(e)?.length??0}listeners(e){return(this._listeners.get(e)??[]).slice()}eventNames(){return Array.from(this._listeners.keys())}setMaxListeners(e){return this._maxListeners=e,this}getMaxListeners(){return this._maxListeners}rawListeners(e){return(this._listeners.get(e)??[]).slice()}prependListener(e,t){let n=this._listeners.get(e)??[];return n.unshift(t),this._listeners.set(e,n),this}prependOnceListener(e,t){let n=(...r)=>{this.off(e,n),t(...r)};return this.prependListener(e,n)}},hC=/^on(.*)$/,gC=Symbol(`nodefony.emitAsyncGuarded.timeout`),_C=class extends mC{constructor(e,t,n){super(),n?.nbListeners!==void 0&&this.setMaxListeners(n.nbListeners),e&&this.settingsToListen(e,t)}settingsToListen(e,t){for(let n of Object.keys(e)){let r=hC.exec(n);if(r){if(t){this.listen(t,r[0],e[n]);continue}this.on(r[0],e[n])}}}listen(e,t,n){return typeof n==`function`&&this.addListener(t,n.bind(e)),(...e)=>this.emit(t,...e)}fire(e,...t){return super.emit(e,...t)}async emitAsync(e,...t){if(this.listenerCount(e)===0)return!1;let n=this.rawListeners(e),r=[];for(let e of n){let n=Reflect.apply(e,this,t);r.push(n!=null&&typeof n.then==`function`?await n:n)}return r}async fireAsync(e,...t){return this.emitAsync(e,...t)}async emitAsyncGuarded(e,t={},...n){let r=[],i=[];if(this.listenerCount(e)===0)return{results:r,errors:i,stopped:!1};let a=this.rawListeners(e),o=t.timeoutMs??0,s=typeof o==`function`,c=t.warnMs??0,l=c>0;for(let e=0;e<a.length;e+=1){let u=a[e],d=s?o(u,e):o,f=l?Date.now():0,p=!1;try{let i=Promise.resolve(Reflect.apply(u,this,n)),a;if(d>0){i.catch(()=>{});let e;try{a=await Promise.race([i,new Promise((t,n)=>{e=setTimeout(()=>{p=!0,n(gC)},d),e.unref?.()})])}finally{e&&clearTimeout(e)}}else a=await i;if(r.push(a),l&&t.onListenerSlow){let n=Date.now()-f;n>=c&&t.onListenerSlow({index:e,listener:u,timedOut:!1,durationMs:n})}}catch(n){let a=l?Date.now()-f:0,o=p?Error(`listener timeout après ${d}ms`):n;if(i.push({index:e,error:o,timedOut:p}),t.onListenerError?.(o,{index:e,listener:u,timedOut:p,durationMs:a})===!0)return{results:r,errors:i,stopped:!0}}}return{results:r,errors:i,stopped:!1}}},vC=(e,t)=>{try{return JSON.stringify(e,null,2)}catch{return String(e)}},yC=(e,t,n)=>String(t),bC=new Set(`reset.bold.dim.italic.underline.inverse.strikethrough.black.red.green.yellow.blue.magenta.cyan.white.gray.blackBright.redBright.greenBright.yellowBright.blueBright.magentaBright.cyanBright.whiteBright.bgBlack.bgRed.bgGreen.bgYellow.bgBlue.bgMagenta.bgCyan.bgWhite.bgGray`.split(`.`)),xC=`\x1B[0m`;function SC(e){return new Proxy(t=>{let n=String(t);if(e.length===0)return n;try{return yC(e,n,{validateStream:!1})}catch{return n}},{get(t,n,r){return n===`reset`?xC:typeof n==`string`&&bC.has(n)?SC([...e,n]):Reflect.get(t,n,r)}})}var CC=SC([]),wC=[`cyan`,`magenta`,`red`,`green`,`yellow`,`blue`,`blackBright`,`yellowBold`,`redBold`,`cyanBold`,`blueBrightBold`,`cyanBgBlue`,`cyanBgBlack`],TC=e=>e,EC={cyan:CC.cyan,magenta:CC.magenta,red:CC.red,green:CC.green,yellow:CC.yellow,blue:CC.blue,blackBright:CC.blackBright,yellowBold:CC.yellow.bold,redBold:CC.red.bold,cyanBold:CC.cyan.bold,blueBrightBold:CC.blueBright.bold,cyanBgBlue:CC.cyan.bgBlue,cyanBgBlack:CC.cyan.bgBlack},DC={...EC},OC=!1;function kC(e){OC=e;for(let t of wC)DC[t]=e?EC[t]:TC}function AC(){return OC}function jC(e){let t={};return typeof t.NO_COLOR==`string`&&t.NO_COLOR!==``?!1:typeof t.FORCE_COLOR==`string`&&t.FORCE_COLOR!==``&&t.FORCE_COLOR!==`0`||e}var MC=globalThis.process;kC(jC(!MC?.env?.NF_NO_TTY&&MC?.stdout?.isTTY===!0));var NC=e=>DC.yellowBold(e),PC=e=>DC.redBold(e),FC=e=>DC.cyanBold(e),IC=e=>DC.blueBrightBold(e),LC=e=>DC.green(e),RC=globalThis.process,zC=e=>e.replace(/\x1b\[[0-9;]*m/g,``),BC=`auto`,VC=null,HC=null,UC=0,WC=!1,GC=65536,KC=globalThis.setImmediate,qC=()=>(VC===null&&(VC=KC?BC===`on`||BC!==`off`&&!RC?.stdout?.isTTY:!1),VC),JC={name:`stdout`,writeOut(e){RC?.stdout?RC.stdout.write(e):console.log(zC(e).replace(/\n$/,``))},writeErr(e){RC?.stderr?RC.stderr.write(e):console.error(zC(e).replace(/\n$/,``))},flushSync(){},close(){}},YC={name:`null`,writeOut(){},writeErr(){},flushSync(){},close(){}},XC=JC,ZC=!1,QC=e=>{ZC||XC.writeOut(e)},$C=e=>{ZC||XC.writeErr(e)},ew=()=>{WC=!1,HC&&HC.length>0&&(QC(HC.join(``)),HC.length=0,UC=0)},tw=e=>{ew(),BC=e===!0?`on`:e===!1?`off`:`auto`,VC=null},nw=e=>{ew(),XC!==e&&XC!==JC&&XC!==YC&&XC.close(),XC=e??JC},rw=e=>{if(!qC()){QC(e);return}if(HC===null&&(HC=[]),HC.push(e),UC+=e.length,UC>=GC){ew();return}!WC&&KC&&(WC=!0,KC(ew))},iw=e=>{HC&&HC.length>0&&ew(),$C(e)};if(RC?.on){let e=()=>{ew(),XC.flushSync()};RC.on(`exit`,e),RC.on(`beforeExit`,e)}var aw=class{buf;head=0;_size=0;capacity;constructor(e){this.capacity=e,this.buf=Array(e)}push(e){if(this._size===this.capacity)this.buf[this.head]=e,this.head=(this.head+1)%this.capacity;else{let t=(this.head+this._size)%this.capacity;this.buf[t]=e,this._size++}}get length(){return this._size}last(){if(this._size!==0)return this.buf[(this.head+this._size-1)%this.capacity]}clear(){this.head=0,this._size=0}toArray(){let e=Array(this._size);for(let t=0;t<this._size;t++)e[t]=this.buf[(this.head+t)%this.capacity];return e}},ow=function(e){if(typeof e==`boolean`)return e;if(typeof e==`string`){if([`false`,`undefined`,`null`].includes(e))return!1;if(e===`true`||e===`*`)return!0;let t=e.split(/,| /);return t[0]===`*`||t}return Array.isArray(e)?e[0]===`*`||e:!1},sw=function(e,t=!1){t=ow(t);let n;return n=e===`development`?{severity:{operator:`<=`,data:t===!1?6:7}}:{severity:{operator:`<=`,data:t?7:6}},typeof t==`object`&&(n.msgid={operator:`==`,data:t}),n},cw={moduleName:`SYSLOG`,msgid:``,maxStack:100,rateLimit:!1,burstLimit:3,defaultSeverity:`DEBUG`,checkConditions:`&&`,async:!1},lw=pC.sysLogSeverity(),uw={"<":(e,t)=>e<t,">":(e,t)=>e>t,"<=":(e,t)=>e<=t,">=":(e,t)=>e>=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,"!=":(e,t)=>e!==t,RegExp:(e,t)=>t.test(e)},dw={severity:(e,t)=>{for(let n in t.data)if(t.operator&&uw[t.operator](e.severity,t.data[n]))return!0;return!1},msgid:(e,t)=>{if(t.data instanceof RegExp)return t.data.test(e.msgid);for(let n in t.data)if(t.operator&&uw[t.operator](e.msgid,n))return!0;return!1},date:(e,t)=>t.operator?uw[t.operator](e.timeStamp,t.data):!1},fw={"&&":(e,t)=>{let n=!1;for(let r in e)if(n=dw[r](t,e[r]),!n)break;return n},"||":(e,t)=>{let n=!1;for(let r in e)if(n=dw[r](t,e[r]),n)break;return n}},pw=e=>{let t;switch(typeof e){case`object`:if(Array.isArray(e))t=e;else throw Error(`checkFormatSeverity bad format type: object`);break;case`string`:t=e.split(/,| /);break;case`number`:t=[e];break;default:throw Error(`checkFormatSeverity bad format type : ${typeof e}`)}return t},mw=function(e){if(e instanceof Date)return e.getTime();if(typeof e==`string`)return new Date(e).getTime();throw Error(`checkFormatDate bad format : ${String(e)}`)},hw=function(e){if(typeof e==`string`)return e.split(/,| /);if(typeof e==`number`)return[e];if(e instanceof RegExp||Array.isArray(e))return e;throw Error(`checkFormatMsgId bad format ${typeof e} : ${String(e)}`)},gw=function(e,t){let n=()=>!1;e.checkConditions&&e.checkConditions in fw?(n=fw[e.checkConditions],delete e.checkConditions):this.settings.checkConditions&&(n=fw[this.settings.checkConditions]);let r=_w(e);if(typeof t==`function`)return e=>{n(r,e)&&t(e)};if(Array.isArray(t)){let e=[];for(let i of t)n(r,i)&&e.push(i);return e}throw Error(`Bad wrapper`)},_w=function(e){if(typeof e!=`object`||!e)return!1;for(let t in e){if(!(t in dw))return!1;let n=e[t];if(n.operator&&!(n.operator in uw))throw Error(`Contitions bad operator : ${n.operator}`);if(n.data)switch(t){case`severity`:{n.operator||=`==`;let e=pw(n.data);n.data={};for(let t=0;t<e.length;t++){let r=pC.severityToString(e[t]);if(r)n.data[r]=lw[r];else return!1}break}case`msgid`:{n.operator||=`==`;let e=hw(n.data);if(Array.isArray(e)){n.data={};for(let t=0;t<e.length;t++)n.data[String(e[t])]=`||`}else n.data=e;break}case`date`:{let e=mw(n.data);if(e)n.data=e;else return!1;break}default:return!1}else return!1}return e},vw=function(e,t,n,r,i){return new pC(e,t||this.settings.defaultSeverity,n,r,i)},yw=class e extends _C{settings;_ring;burstPrinted;missed;invalid;valid;errorTotal;criticTotal;start;_async=!1;_transports=[];_disabledTransports=null;_ringEnabled=!0;_streamEnabled=!0;_severityThreshold=null;_gatedPdu=null;gated=0;_debugOverrides=null;_debugOverrideTimers=null;_debugOverrideExpiry=null;constructor(t){super(t),this.settings=tC({},cw,t||{}),this._ring=new aw(this.settings.maxStack??100),this.burstPrinted=0,this.missed=0,this.invalid=0,this.valid=0,this.errorTotal=0,this.criticTotal=0,this.start=0,this._async=this.settings.async||!1,this.settings.overrideConsole&&e.overrideConsole(this)}get ringStack(){return this._ring.toArray()}get bufferCapacity(){return this._ring.capacity}get ringEnabled(){return this._ringEnabled}setRingEnabled(e){return this._ringEnabled!==e&&(this._ringEnabled=e,e||this._ring.clear(),!0)}get streamEnabled(){return this._streamEnabled}setStreamEnabled(e){return this._streamEnabled!==e&&(this._streamEnabled=e,!0)}setMaxStack(e){if(!Number.isFinite(e)||e<=0||e===this.settings.maxStack)return;let t=this._ring.toArray().slice(-e);this.settings.maxStack=e,this._ring=new aw(e);for(let e of t)this._ring.push(e)}static formatDebug(e){return ow(e)}init(t,n,r){this.removeAllListeners(`onLog`),this.listenWithConditions(r||sw(t,n),t=>e.normalizeLog(t))}static toSeverityNumber(e){if(typeof e==`number`)return e;let t=lw[e];return typeof t==`number`?t:-1}static severityFromInput(e){if(typeof e==`number`)return Number.isInteger(e)&&e>=0&&e<=7?e:null;if(typeof e==`string`){if(/^\d+$/.test(e)){let t=Number(e);return t>=0&&t<=7?t:null}let t=lw[e];return typeof t==`number`?t:null}return null}static parseDebugSpec(t){let n={global:!1,overrides:[]};if(typeof t!=`string`)return n;for(let r of t.split(/[,\s]+/)){if(!r)continue;if(r===`*`){n.global=!0;continue}let t=r.indexOf(`:`);if(t===-1){n.overrides.push({module:r,level:7});continue}let i=r.slice(0,t);if(!i)continue;let a=e.severityFromInput(r.slice(t+1))??7;n.overrides.push({module:i,level:a})}return n}setSeverityThreshold(t){this._severityThreshold=t===null?null:e.toSeverityNumber(t)}severityEnabled(t){return this._severityThreshold===null||e.toSeverityNumber(t)<=this._severityThreshold}setDebugOverride(t,n,r){if(this._debugOverrides===null&&(this._debugOverrides=new Map),this._debugOverrides.set(t,e.toSeverityNumber(n)),this.clearOverrideTimer(t),r!==void 0&&r>0){this._debugOverrideTimers===null&&(this._debugOverrideTimers=new Map);let e=setTimeout(()=>{this.clearDebugOverride(t)},r);e.unref(),this._debugOverrideTimers.set(t,e),this._debugOverrideExpiry===null&&(this._debugOverrideExpiry=new Map),this._debugOverrideExpiry.set(t,Date.now()+r)}else this._debugOverrideExpiry!==null&&(this._debugOverrideExpiry.delete(t),this._debugOverrideExpiry.size===0&&(this._debugOverrideExpiry=null))}clearDebugOverride(e){if(this.clearOverrideTimer(e),this._debugOverrideExpiry!==null&&(this._debugOverrideExpiry.delete(e),this._debugOverrideExpiry.size===0&&(this._debugOverrideExpiry=null)),this._debugOverrides===null)return!1;let t=this._debugOverrides.delete(e);return this._debugOverrides.size===0&&(this._debugOverrides=null),t}clearAllDebugOverrides(){if(this._debugOverrideTimers!==null){for(let e of this._debugOverrideTimers.values())clearTimeout(e);this._debugOverrideTimers=null}this._debugOverrides=null,this._debugOverrideExpiry=null}getDebugOverrides(){if(this._debugOverrides===null)return{};let e={};for(let[t,n]of this._debugOverrides)e[t]=n;return e}getDebugOverrideExpiry(){if(this._debugOverrideExpiry===null)return{};let e={};for(let[t,n]of this._debugOverrideExpiry)e[t]=n;return e}clearOverrideTimer(e){if(this._debugOverrideTimers===null)return;let t=this._debugOverrideTimers.get(e);t!==void 0&&(clearTimeout(t),this._debugOverrideTimers.delete(e),this._debugOverrideTimers.size===0&&(this._debugOverrideTimers=null))}get async(){return this._async}set async(e){this._async=e}clean(){return this.reset()}reset(){return this._ring.clear(),this.removeAllListeners(),this.clearAllDebugOverrides(),this}clearLogStack(){this._ring.clear()}pushStack(e){this._ringEnabled&&this._ring.push(e),this.valid++;let t=e.severity;return t>=0&&t<=3&&(this.errorTotal++,t<=2&&this.criticTotal++),this._ring.length}log(t,n,r,i){if(this._severityThreshold!==null){let i=t instanceof pC?t.severity:e.toSeverityNumber(n??this.settings.defaultSeverity??`DEBUG`),a=this._severityThreshold;if(this._debugOverrides!==null){let e=t instanceof pC?t.msgid:r||this.settings.msgid,n=this._debugOverrides.get(e)??this._debugOverrides.get(`*`);n!==void 0&&(a=n)}if(i>a)return this.gated++,this._gatedPdu===null&&(this._gatedPdu=vw.call(this,`GATED`,`DEBUG`,this.settings.moduleName,r||this.settings.msgid),this._gatedPdu.status=`DROPPED`),this._gatedPdu}let a;if(this.settings.rateLimit!==!1){let e=this.settings.rateLimit,o=Date.now();if(this.start=this.start||o,o>this.start+e&&(this.burstPrinted=0,this.missed=0,this.start=0),this.settings.burstLimit&&this.settings.burstLimit>this.burstPrinted){try{a=t instanceof pC?t:vw.call(this,t,n,this.settings.moduleName,r||this.settings.msgid,i)}catch(e){return console.error(e),this.invalid++,a??=vw.call(this,e,`ERROR`),a.status=`INVALID`,a}return this.pushStack(a),a.status=`ACCEPTED`,this.listenerCount(`onLog`)>0&&this.fire(`onLog`,a),this._transports.length>0&&this._fireTransports(a),this.burstPrinted++,a}return this.missed++,a??=vw.call(this,`DROPPED`,`WARNING`),a.status=`DROPPED`,a}try{a=t instanceof pC?t:vw.call(this,t,n,this.settings.moduleName,r||this.settings.msgid,i)}catch(e){return console.error(e),this.invalid++,a??=vw.call(this,e,`ERROR`),a.status=`INVALID`,a}return this.pushStack(a),a.status=`ACCEPTED`,this.listenerCount(`onLog`)>0&&this.fire(`onLog`,a),this._transports.length>0&&this._fireTransports(a),a}getLogStack(e,t,n){if(arguments.length===0)return this._ring.last();let r;return r=n?this.getLogs(n):this.ringStack,t?e===t?r[r.length-e-1]:r.slice(e,t):r.slice(e)}getLogs(e,t=null){return e?gw.call(this,e,t||this.ringStack):this.ringStack}logToJson(e,t=null){let n=e?this.getLogs(e,t):this.ringStack;return JSON.stringify(n)}loadStack(e,t=!1,n=null){if(!e)throw Error(`syslog loadStack : not stack in arguments `);if(typeof e==`string`)return this.loadStack(JSON.parse(e),t,n);if(Array.isArray(e)||typeof e==`object`){for(let r of e){let e=new pC(r.payload,r.severity,r.moduleName||this.settings.moduleName,r.msgid,r.msg,r.timeStamp);this.pushStack(e),t&&(n&&n.call(this,e,r),this.fire(`onLog`,e))}return e}throw Error(`syslog loadStack : bad stack in arguments type`)}filter(e,t){if(!e)throw Error(`filter conditions not found `);e=tC(!0,{},e);let n=gw.call(this,e,t);n&&super.on(`onLog`,n)}listenWithConditions(e,t){return this.filter(e,t)}error(e){return this.log(e,`ERROR`)}warn(e){return this.log(e,`WARNING`)}info(e){return this.log(e,`INFO`)}debug(e){return this.log(e,`DEBUG`)}trace(e,...t){return this.log(e,`NOTICE`,...t)}print(...e){let t=e.length===1?e[0]:e;return this.log(t,this.settings.defaultSeverity)}logMultiple(e,...t){let n=t.length===1?t[0]:t;return this.log(n,e)}addTransport(e){let t=this._transports.findIndex(t=>t.name===e.name);return t===-1?this._transports.push(e):this._transports[t]!==e&&(this._transports[t]=e),this}removeTransport(e){let t=this._transports.indexOf(e);return t!==-1&&this._transports.splice(t,1),this}get transportCount(){return this._transports.length}listTransports(){let e=this._transports.map(e=>({name:e.name,enabled:!0}));if(this._disabledTransports)for(let t of this._disabledTransports.keys())e.push({name:t,enabled:!1});return e}setTransportEnabled(e,t){if(t){let t=this._disabledTransports?.get(e);return t?(this._disabledTransports.delete(e),this._disabledTransports.size===0&&(this._disabledTransports=null),this.addTransport(t),!0):!1}let n=this._transports.findIndex(t=>t.name===e);if(n===-1)return!1;let[r]=this._transports.splice(n,1);return(this._disabledTransports??=new Map).set(e,r),!0}_fireTransports(e){for(let t of this._transports)t.send(e).catch(t=>this.fire(`onTransportError`,t,e))}static _nativeConsole={log:console.log.bind(console),info:console.info.bind(console),warn:console.warn.bind(console),error:console.error.bind(console),debug:console.debug.bind(console),trace:console.trace.bind(console),table:console.table.bind(console),dir:console.dir.bind(console)};static _savedConsole=null;static SEVERITY_WIDTH=7;static MSGID_WIDTH=18;static wrapper(t){if(!t)throw Error(`Syslog pdu not defined`);let n=new Date(t.timeStamp),r=`${String(n.getHours()).padStart(2,`0`)}:${String(n.getMinutes()).padStart(2,`0`)}:${String(n.getSeconds()).padStart(2,`0`)}.${String(n.getMilliseconds()).padStart(3,`0`)}`,i=t.severityName.padEnd(e.SEVERITY_WIDTH),a=LC(t.msgid.padEnd(e.MSGID_WIDTH));switch(t.severity){case 0:case 1:case 2:case 3:return{logger:e._nativeConsole.error,text:`${r} ${PC(i)} ${a} : `};case 4:return{logger:e._nativeConsole.warn,text:`${r} ${NC(i)} ${a} : `};case 5:return{logger:e._nativeConsole.log,text:`${r} ${PC(i)} ${a} : `};case 6:return{logger:e._nativeConsole.info,text:`${r} ${IC(i)} ${a} : `};case 7:return{logger:e._nativeConsole.debug,text:`${r} ${FC(i)} ${a} : `};default:return{logger:e._nativeConsole.log,text:`${r} ${FC(i)} ${a} : `}}}static normalizeLog(t,n=``){if(t.payload===``||t.payload===void 0)return e._nativeConsole.warn(`${t.severityName} ${t.msgid} : logger message empty !!!!`),e._nativeConsole.trace(t),t;let r=t.payload,i=e.wrapper(t),a=n?`${n} `:``;return i.logger(`${a}${i.text}`,r),t}static rawLog(t,n=``){if(t.payload===``||t.payload===void 0)return t;let r=t.severity<=3?iw:rw,{text:i}=e.wrapper(t),a=typeof t.payload==`string`||typeof t.payload==`number`?String(t.payload):vC(t.payload,{depth:3,colors:AC(),breakLength:1/0});return r(`${n?`${n} `:``}${i}${a}\n`),t}static setOutputBuffering(e){tw(e)}static flushOutput(){ew()}static setLogSink(e){nw(e)}static get logSinkName(){return XC.name}static get sinkEnabled(){return!ZC}static setSinkEnabled(e){let t=!e;return ZC!==t&&(ZC=t,!0)}static overrideConsole(t){if(e._savedConsole!==null){t.log(`Syslog.overrideConsole: already active`,`WARNING`);return}e._savedConsole={log:console.log.bind(console),info:console.info.bind(console),warn:console.warn.bind(console),error:console.error.bind(console),debug:console.debug.bind(console),trace:console.trace.bind(console),table:console.table.bind(console),dir:console.dir.bind(console)};let n=console;n.log=(...e)=>t.print(...e),n.info=(...e)=>t.logMultiple(`INFO`,...e),n.warn=(...e)=>t.logMultiple(`WARNING`,...e),n.error=(...e)=>t.logMultiple(`ERROR`,...e),n.debug=(...e)=>t.logMultiple(`DEBUG`,...e),n.table=e=>t.logMultiple(`INFO`,e),n.dir=e=>t.logMultiple(`DEBUG`,e)}static restoreConsole(){e._savedConsole!==null&&(Object.assign(console,e._savedConsole),e._savedConsole=null)}},bw=Symbol.for(`nodefony.packageInstances`);function xw(){return globalThis[bw]??[]}function Sw(){return xw().length>1}var Cw={events:{nbListeners:20}},ww=typeof process<`u`&&{}.NF_PERF_PROBE===`1`;function Tw(e){let t=globalThis.__nfPerfProbe;t&&t.t0!==0n&&(t[e]+=Number(process.hrtime.bigint()-t.t0))}var Ew={moduleName:`SERVICE `,defaultSeverity:`INFO`};function Dw(e){let t=e?.constructor?.name;return t&&t!==`Object`?`une instance de ${t}`:`un ${typeof e} littéral`}var Ow=class e{name;options;container;kernel;syslog;#e;#t=null;#n=!1;get notificationsCenter(){return this.#e}get nc(){if(!this.#e)throw Error(`${this.name}: notificationsCenter not initialized`);return this.#e}constructor(e,t,n,r={}){if(ww&&Tw(`svcStartNs`),this.name=e,t instanceof GS)this.container=t;else{if(t!=null)throw Error(Sw()?`${e} : le container reçu n'est pas un Container de CE paquet \`nodefony\` — deux copies du paquet tournent dans ce process. \`npm ls nodefony\` les liste ; l'avertissement de boot nomme leurs chemins. Un service ne peut pas être construit à cette frontière.`:`${e} : le container reçu n'est pas un \`Container\` (reçu : ${Dw(t)}). Une seule copie du paquet \`nodefony\` tourne dans ce process — ce n'est donc pas une dualité de paquet, mais un objet qui n'en est pas un. Passer le container du module (\`module.container\`), ou \`new Container()\`.`);this.container=new GS}let{events:i,...a}=r,o=i??Cw.events;if(this.options=a,ww&&Tw(`svcOptsNs`),this.kernel=this.container.get(`kernel`),this.syslog=this.container.get(`syslog`),ww&&Tw(`svcLookupsNs`),!this.syslog){let e={...Ew,moduleName:this.name,...this.options.syslog};this.syslog=new yw(e),this.container.set(`syslog`,this.syslog)}if(n instanceof _C){this.#n=!0,this.#e=n,this.attachConfiguredListeners(r);let e=this.#e.getMaxListeners(),t=o?.nbListeners??0;t>e&&this.#e.setMaxListeners(t)}else n!==!1&&(this.#e=new _C(this.options,this,this.options),o?.nbListeners&&this.#e.setMaxListeners(o.nbListeners),(!this.kernel||this.kernel.container!==this.container)&&this.container.set(`notificationsCenter`,this.#e));ww&&Tw(`svcEventNs`)}attachConfiguredListeners(e){for(let t of Object.keys(e)){if(!/^on(.+)$/.test(t))continue;let n=e[t];typeof n==`function`&&this.on(t,n.bind(this))}}initSyslog(e=`production`,t=!1,n){return this.syslog?this.syslog.init(e,t,n):null}getName(){return this.name}clean(e=!1){if(this.#e&&this.#n&&this.#t)for(let[e,t]of this.#t)for(let n of t)this.#e.removeListener(e,n);this.#t=null,this.#n=!1,this.syslog&&e&&this.syslog.reset(),this.syslog=null,this.#e=void 0,this.container=null,this.kernel=null}log(e,t,n,r){try{return n||=this.name,this.syslog?this.syslog.log(e,t,n,r):new pC(e,t,this.name,n,r)}catch(i){return console.log(t,n,r,` : `,e),console.warn(i),new pC(i,`ERROR`,this.name,n,r)}}logger(e,...t){console.debug(yw.wrapper(this.log(e,`DEBUG`)).text,e,...t)}trace(e,...t){console.trace(yw.wrapper(this.log(e,`DEBUG`)).text,e,...t)}trackListener(e,t){this.#t===null&&(this.#t=new Map);let n=this.#t.get(e)??[];n.push(t),this.#t.set(e,n)}untrackListener(e,t){let n=this.#t;if(!n)return;let r=n.get(e);if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1),r.length===0&&n.delete(e)}eventNames(){return this.nc.eventNames()}fire(e,...t){return this.nc.emit(e,...t)}fireAsync(e,...t){return this.nc.emitAsync(e,...t)}emit(e,...t){return this.nc.emit(e,...t)}emitAsync(e,...t){return this.nc.emitAsync(e,...t)}emitAsyncGuarded(e,t,...n){return this.nc.emitAsyncGuarded(e,t,...n)}addListener(e,t){return this.nc.addListener(e,t),this.trackListener(e,t),this}listen(e,t){return this.nc.listen(this,e,t)}on(e,t){return this.nc.on(e,t),this.trackListener(e,t),this}once(e,t){return this.nc.once(e,t),this.trackListener(e,t),this}off(e,t){return this.nc.off(e,t),this.untrackListener(e,t),this}settingsToListen(e,t){this.nc.settingsToListen(e,t)}setMaxListeners(e){return this.nc.setMaxListeners(e),this}removeListener(e,t){return this.nc.removeListener(e,t),this.untrackListener(e,t),this}removeAllListeners(e){return e===void 0?(this.#t=null,this.nc.removeAllListeners()):(this.#t?.delete(e),this.nc.removeAllListeners(e)),this}prependOnceListener(e,t){return this.nc.prependOnceListener(e,t),this.trackListener(e,t),this}prependListener(e,t){return this.nc.prependListener(e,t),this.trackListener(e,t),this}getMaxListeners(){return this.nc.getMaxListeners()}listenerCount(e,t){return this.nc.listenerCount(e,t)}listeners(e){return this.nc.listeners(e)}rawListeners(e){return this.nc.rawListeners(e)}get(e){return this.container?.get(e)??null}set(e,t){if(!this.container)throw Error(`${this.name}: container not initialized`);this.container.set(e,t)}remove(t){if(this.container){let n=this.get(t);if(n)return n instanceof e&&n.clean(),this.container.remove(t)}return!1}getParameters(e){return this.container?.getParameters(e)??null}setParameters(e,t){if(!this.container)throw Error(`${this.name}: container not initialized`);return this.container.setParameters(e,t)}has(e){return this.container?.has(e)??!1}},kw=class{syslog;#e;#t;#n=`created`;#r=null;#i=null;#a=null;#o=null;#s=null;constructor(e={}){this.#t=e,this.#e=new Ow(e.name??`CLIENT KERNEL`),this.syslog=this.#e.syslog,this.#s=kS(this,this.name,this.#t.banner),this.#u()}get(e){if(this.#a)return this.#a[e]}set(e,t){(this.#a??=Object.create(null))[e]=t}has(e){return this.#a!==null&&this.#a[e]!==void 0}get state(){return this.#n}boot(){return this.#n===`terminated`||this.#n===`ready`?Promise.resolve():(this.#i||=this.#c(),this.#i)}async#c(){this.#n=`booting`,this.#e.fire(`onBoot`,this),this.#d();let e=this.#t.connectOnBoot===!1?void 0:this.get(`realtime`);if(e)try{await e.connect()}catch(e){this.syslog.log(e instanceof Error?e.message:String(e),`WARNING`)}this.#n===`booting`&&(this.#n=`ready`,this.#l(),this.#e.fire(`onReady`,this))}#l(){if(this.#t.banner===!1||this.#t.banner!==!0&&!CS())return;let e=this.get(`realtime`),t={état:{valeur:this.state},identité:{valeur:this.identity?this.identity.key:`anonyme`},"temps réel":{valeur:e?e.url??`socket fournie`:`aucun`},socket:{valeur:e?e.state:`—`}};for(let e of this.#a?Object.keys(this.#a):[])t[`service · ${e}`]={valeur:`composé`};jS(t,this,`noyau client — détail et raccourcis`)}#u(){if(this.has(`realtime`))return;let e=this.#t.realtime;e&&this.set(`realtime`,e instanceof VS?e:VS.shared(e))}async terminate(){if(this.#n===`terminated`)return;this.#n=`terminated`,this.#e.fire(`onTerminate`,this);let e=this.get(`realtime`);e&&e.disconnect(),this.#f(),this.#s?.(),this.#s=null,this.#i=null,this.#a=null,this.#e.clean()}get name(){return this.#e.name}get identity(){return this.#r}setIdentity(e){let t=this.#r,n=t?t.key:null,r=e?e.key:null;if(this.#r=e,n===r)return;let i=this.get(`realtime`);i&&(n!==null&&i.disconnect(),r!==null&&i.connect()),this.#e.fire(`onIdentityChange`,e,t)}on(e,t){return this.#e.on(e,t),this}off(e,t){return this.#e.removeListener(e,t),this}#d(){if(this.#t.browserEvents===!1)return;let e=globalThis.document,t=globalThis.window;if(!e||!t)return;let n=(e,t,n)=>{e.addEventListener(t,n),(this.#o??=[]).push(()=>e.removeEventListener(t,n))};n(e,`visibilitychange`,()=>this.#e.fire(`onVisibility`,e.visibilityState!==`hidden`)),n(t,`online`,()=>this.#e.fire(`onOnline`,!0)),n(t,`offline`,()=>this.#e.fire(`onOnline`,!1)),n(t,`pagehide`,()=>void this.terminate())}#f(){if(this.#o){for(let e of this.#o)e();this.#o=null}}get browserListenerCount(){return this.#o?this.#o.length:0}};function Aw(e={}){return new kw(e)}var jw=null,Mw=null,Nw=!1;function Pw(){return jw===null&&(jw=globalThis.crypto.randomUUID()),jw}function Fw(){}function Iw(){return Nw?()=>{}:(Nw=!0,Mw=pC.requestIdProvider,pC.requestIdProvider=Fw,()=>{Nw&&(Nw=!1,pC.requestIdProvider=Mw,Mw=null)})}function Lw(e,t){return e.length<=t?e:`${e.slice(0,t)}… [+${e.length-t}]`}function Rw(e,t){if(e==null)return e;if(e instanceof Error)return{name:e.name,message:Lw(e.message,t),stack:e.stack?Lw(e.stack,t):void 0};let n=typeof e;if(n===`string`)return Lw(e,t);if(n===`number`||n===`boolean`)return e;if(n===`function`||n===`symbol`||n===`bigint`)return Lw(String(e),t);try{return JSON.parse(Lw(JSON.stringify(e)??`null`,t))}catch{return Lw(String(e),t)}}function zw(e){let{syslog:t,publisher:n,maxSeverity:r=4,batchMs:i=2e3,maxBatch:a=50,maxQueue:o=200,maxStringLength:s=4096,channel:c=aS.syslogUplink}=e,l=null,u=0,d=null,f=!1,p=()=>{if(d!==null&&(clearTimeout(d),d=null),l===null||l.length===0)return;let e={pageId:Pw(),entries:l};u>0&&(e.dropped=u),l=null,u=0;try{n.publish(c,e)}catch{}},m=e=>{if(f||e.severity>r||e.msgid===`CLIENT_UPLINK`)return;l===null&&(l=[]),l.length>=o&&(l.shift(),u+=1);let t={severity:e.severity,severityName:e.severityName,moduleName:e.moduleName,msgid:e.msgid,msg:Lw(e.msg??``,s),timeStamp:e.timeStamp,payload:Rw(e.payload,s)};if(e.requestId!==void 0&&(t.requestId=e.requestId),l.push(t),l.length>=a){p();return}d===null&&(d=setTimeout(p,i))};return t.on(`onLog`,m),()=>{f||(f=!0,t.removeListener(`onLog`,m),p())}}var Bw={outline:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},filled:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`}},Vw=(e,t,n,r)=>{let i=(0,U.forwardRef)(({color:n=`currentColor`,size:i=24,stroke:a=2,title:o,className:s,children:c,...l},u)=>(0,U.createElement)(`svg`,{ref:u,...Bw[e],width:i,height:i,className:[`tabler-icon`,`tabler-icon-${t}`,s].filter(Boolean).join(` `),...e===`filled`?{fill:n}:{strokeWidth:a,stroke:n},...l},[o&&(0,U.createElement)(`title`,{key:`svg-title`},o),...r.map(([e,t])=>(0,U.createElement)(e,t)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i},Hw=Vw(`outline`,`alert-circle`,`AlertCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 8v4`,key:`svg-1`}],[`path`,{d:`M12 16h.01`,key:`svg-2`}]]),Uw=Vw(`outline`,`alert-triangle`,`AlertTriangle`,[[`path`,{d:`M12 9v4`,key:`svg-0`}],[`path`,{d:`M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0`,key:`svg-1`}],[`path`,{d:`M12 16h.01`,key:`svg-2`}]]),Ww=Vw(`outline`,`arrow-right`,`ArrowRight`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}],[`path`,{d:`M13 18l6 -6`,key:`svg-1`}],[`path`,{d:`M13 6l6 6`,key:`svg-2`}]]),Gw=Vw(`outline`,`arrows-maximize`,`ArrowsMaximize`,[[`path`,{d:`M16 4l4 0l0 4`,key:`svg-0`}],[`path`,{d:`M14 10l6 -6`,key:`svg-1`}],[`path`,{d:`M8 20l-4 0l0 -4`,key:`svg-2`}],[`path`,{d:`M4 20l6 -6`,key:`svg-3`}],[`path`,{d:`M16 20l4 0l0 -4`,key:`svg-4`}],[`path`,{d:`M14 14l6 6`,key:`svg-5`}],[`path`,{d:`M8 4l-4 0l0 4`,key:`svg-6`}],[`path`,{d:`M4 4l6 6`,key:`svg-7`}]]),Kw=Vw(`outline`,`bolt`,`Bolt`,[[`path`,{d:`M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11`,key:`svg-0`}]]),qw=Vw(`outline`,`book-2`,`Book2`,[[`path`,{d:`M19 4v16h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12`,key:`svg-0`}],[`path`,{d:`M19 16h-12a2 2 0 0 0 -2 2`,key:`svg-1`}],[`path`,{d:`M9 8h6`,key:`svg-2`}]]),Jw=Vw(`outline`,`brand-github`,`BrandGithub`,[[`path`,{d:`M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5`,key:`svg-0`}]]),Yw=Vw(`outline`,`bulb`,`Bulb`,[[`path`,{d:`M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7`,key:`svg-0`}],[`path`,{d:`M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3`,key:`svg-1`}],[`path`,{d:`M9.7 17l4.6 0`,key:`svg-2`}]]),Xw=Vw(`outline`,`chart-line`,`ChartLine`,[[`path`,{d:`M4 19l16 0`,key:`svg-0`}],[`path`,{d:`M4 15l4 -6l4 2l4 -5l4 4`,key:`svg-1`}]]),Zw=Vw(`outline`,`check`,`Check`,[[`path`,{d:`M5 12l5 5l10 -10`,key:`svg-0`}]]),Qw=Vw(`outline`,`chevron-down`,`ChevronDown`,[[`path`,{d:`M6 9l6 6l6 -6`,key:`svg-0`}]]),$w=Vw(`outline`,`chevron-right`,`ChevronRight`,[[`path`,{d:`M9 6l6 6l-6 6`,key:`svg-0`}]]),eT=Vw(`outline`,`chevron-up`,`ChevronUp`,[[`path`,{d:`M6 15l6 -6l6 6`,key:`svg-0`}]]),tT=Vw(`outline`,`chevrons-down`,`ChevronsDown`,[[`path`,{d:`M7 7l5 5l5 -5`,key:`svg-0`}],[`path`,{d:`M7 13l5 5l5 -5`,key:`svg-1`}]]),nT=Vw(`outline`,`chevrons-up`,`ChevronsUp`,[[`path`,{d:`M7 11l5 -5l5 5`,key:`svg-0`}],[`path`,{d:`M7 17l5 -5l5 5`,key:`svg-1`}]]),rT=Vw(`outline`,`clock`,`Clock`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 7v5l3 3`,key:`svg-1`}]]),iT=Vw(`outline`,`columns-3`,`Columns3`,[[`path`,{d:`M3 4a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-16`,key:`svg-0`}],[`path`,{d:`M9 3v18`,key:`svg-1`}],[`path`,{d:`M15 3v18`,key:`svg-2`}]]),aT=Vw(`outline`,`copy`,`Copy`,[[`path`,{d:`M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666`,key:`svg-0`}],[`path`,{d:`M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1`,key:`svg-1`}]]),oT=Vw(`outline`,`device-floppy`,`DeviceFloppy`,[[`path`,{d:`M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2`,key:`svg-0`}],[`path`,{d:`M10 14a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-1`}],[`path`,{d:`M14 4l0 4l-6 0l0 -4`,key:`svg-2`}]]),sT=Vw(`outline`,`exclamation-mark`,`ExclamationMark`,[[`path`,{d:`M12 19v.01`,key:`svg-0`}],[`path`,{d:`M12 15v-10`,key:`svg-1`}]]),cT=Vw(`outline`,`external-link`,`ExternalLink`,[[`path`,{d:`M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6`,key:`svg-0`}],[`path`,{d:`M11 13l9 -9`,key:`svg-1`}],[`path`,{d:`M15 4h5v5`,key:`svg-2`}]]),lT=Vw(`outline`,`eye-off`,`EyeOff`,[[`path`,{d:`M10.585 10.587a2 2 0 0 0 2.829 2.828`,key:`svg-0`}],[`path`,{d:`M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87`,key:`svg-1`}],[`path`,{d:`M3 3l18 18`,key:`svg-2`}]]),uT=Vw(`outline`,`filter-off`,`FilterOff`,[[`path`,{d:`M8 4h12v2.172a2 2 0 0 1 -.586 1.414l-3.914 3.914m-.5 3.5v4l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227`,key:`svg-0`}],[`path`,{d:`M3 3l18 18`,key:`svg-1`}]]),dT=Vw(`outline`,`filter`,`Filter`,[[`path`,{d:`M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227`,key:`svg-0`}]]),fT=Vw(`outline`,`inbox`,`Inbox`,[[`path`,{d:`M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12`,key:`svg-0`}],[`path`,{d:`M4 13h3l3 3h4l3 -3h3`,key:`svg-1`}]]),pT=Vw(`outline`,`info-circle`,`InfoCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 9h.01`,key:`svg-1`}],[`path`,{d:`M11 12h1v4h1`,key:`svg-2`}]]),mT=Vw(`outline`,`layout-sidebar-right-collapse`,`LayoutSidebarRightCollapse`,[[`path`,{d:`M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12`,key:`svg-0`}],[`path`,{d:`M15 4v16`,key:`svg-1`}],[`path`,{d:`M9 10l2 2l-2 2`,key:`svg-2`}]]),hT=Vw(`outline`,`layout-sidebar-right-expand`,`LayoutSidebarRightExpand`,[[`path`,{d:`M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12`,key:`svg-0`}],[`path`,{d:`M15 4v16`,key:`svg-1`}],[`path`,{d:`M10 10l-2 2l2 2`,key:`svg-2`}]]),gT=Vw(`outline`,`list`,`List`,[[`path`,{d:`M9 6l11 0`,key:`svg-0`}],[`path`,{d:`M9 12l11 0`,key:`svg-1`}],[`path`,{d:`M9 18l11 0`,key:`svg-2`}],[`path`,{d:`M5 6l0 .01`,key:`svg-3`}],[`path`,{d:`M5 12l0 .01`,key:`svg-4`}],[`path`,{d:`M5 18l0 .01`,key:`svg-5`}]]),_T=Vw(`outline`,`lock`,`Lock`,[[`path`,{d:`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6`,key:`svg-0`}],[`path`,{d:`M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0`,key:`svg-1`}],[`path`,{d:`M8 11v-4a4 4 0 1 1 8 0v4`,key:`svg-2`}]]),vT=Vw(`outline`,`maximize`,`Maximize`,[[`path`,{d:`M4 8v-2a2 2 0 0 1 2 -2h2`,key:`svg-0`}],[`path`,{d:`M4 16v2a2 2 0 0 0 2 2h2`,key:`svg-1`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v2`,key:`svg-2`}],[`path`,{d:`M16 20h2a2 2 0 0 0 2 -2v-2`,key:`svg-3`}]]),yT=Vw(`outline`,`refresh`,`Refresh`,[[`path`,{d:`M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4`,key:`svg-0`}],[`path`,{d:`M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4`,key:`svg-1`}]]),bT=Vw(`outline`,`search`,`Search`,[[`path`,{d:`M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`,key:`svg-0`}],[`path`,{d:`M21 21l-6 -6`,key:`svg-1`}]]),xT=Vw(`outline`,`selector`,`Selector`,[[`path`,{d:`M8 9l4 -4l4 4`,key:`svg-0`}],[`path`,{d:`M16 15l-4 4l-4 -4`,key:`svg-1`}]]),ST=Vw(`outline`,`settings`,`Settings`,[[`path`,{d:`M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065`,key:`svg-0`}],[`path`,{d:`M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`,key:`svg-1`}]]),CT=Vw(`outline`,`trash`,`Trash`,[[`path`,{d:`M4 7l16 0`,key:`svg-0`}],[`path`,{d:`M10 11l0 6`,key:`svg-1`}],[`path`,{d:`M14 11l0 6`,key:`svg-2`}],[`path`,{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`,key:`svg-3`}],[`path`,{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`,key:`svg-4`}]]),wT=Vw(`outline`,`wand`,`Wand`,[[`path`,{d:`M6 21l15 -15l-3 -3l-15 15l3 3`,key:`svg-0`}],[`path`,{d:`M15 6l3 3`,key:`svg-1`}],[`path`,{d:`M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`,key:`svg-2`}],[`path`,{d:`M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`,key:`svg-3`}]]);function TT({title:e,subtitle:t,icon:n,actions:r,sticky:i}){let a=(0,U.useRef)(null);return(0,U.useEffect)(()=>{if(!i||!a.current)return;let e=document.documentElement,t=a.current,n=()=>{e.style.setProperty(`--nf-pageheader-height`,`${t.offsetHeight}px`)};n();let r=new ResizeObserver(n);return r.observe(t),()=>{r.disconnect(),e.style.setProperty(`--nf-pageheader-height`,`0px`)}},[i]),(0,G.jsxs)(X,{ref:a,justify:`space-between`,align:`flex-end`,wrap:`nowrap`,style:i?{position:`sticky`,top:0,zIndex:2,background:`var(--mantine-color-body)`,marginInline:`calc(var(--mantine-spacing-md) * -1)`,paddingInline:`var(--mantine-spacing-md)`,paddingBlock:`var(--mantine-spacing-sm)`,borderBottom:`1px solid var(--mantine-color-default-border)`}:void 0,children:[(0,G.jsxs)(sx,{gap:4,children:[(0,G.jsxs)(X,{gap:`xs`,wrap:`nowrap`,children:[n,(0,G.jsx)(eS,{order:1,size:`h2`,children:e})]}),t&&(0,G.jsx)(Z,{c:`dimmed`,size:`sm`,component:`div`,children:t})]}),r&&(0,G.jsx)(X,{gap:`xs`,wrap:`nowrap`,children:r})]})}function ET({title:e,subtitle:t,icon:n,actions:r,gap:i=`md`,children:a}){return(0,G.jsxs)(sx,{gap:i,children:[(0,G.jsx)(TT,{title:e,subtitle:t,icon:n,actions:r,sticky:!0}),a]})}function DT({children:e,...t}){return(0,G.jsx)(Ux.List,{...t,style:{position:`sticky`,top:`var(--nf-pageheader-height, 76px)`,zIndex:1,background:`var(--mantine-color-body)`,...t.style},children:e})}function OT({loading:e,error:t,empty:n,onRetry:r,emptyMessage:i,minHeight:a=200,children:o}){return t?(0,G.jsx)(ch,{color:`red`,variant:`light`,icon:(0,G.jsx)(Uw,{size:16}),title:`Erreur de chargement`,children:(0,G.jsxs)(sx,{gap:`sm`,align:`flex-start`,children:[(0,G.jsx)(Z,{size:`sm`,children:t}),r&&(0,G.jsx)(Bg,{size:`xs`,variant:`light`,leftSection:(0,G.jsx)(yT,{size:14}),onClick:r,children:`Réessayer`})]})}):e?(0,G.jsx)(Xg,{mih:a,"aria-busy":`true`,"aria-live":`polite`,children:(0,G.jsx)(zf,{})}):n?(0,G.jsx)(Xg,{mih:a,children:(0,G.jsxs)(sx,{gap:4,align:`center`,c:`dimmed`,children:[(0,G.jsx)(fT,{size:28,stroke:1.4}),(0,G.jsx)(Z,{size:`sm`,children:i??`Aucune donnée.`})]})}):(0,G.jsx)(G.Fragment,{children:o})}var kT={doc:{trigger:pT,header:qw,accent:`brand`,badge:`doc`},graph:{trigger:Xw,header:Xw,accent:`blue`,badge:`graphe`},link:{trigger:cT,header:cT,accent:`grape`,badge:`lien`},tip:{trigger:Yw,header:Yw,accent:`teal`,badge:`astuce`},warning:{trigger:Uw,header:Uw,accent:`yellow`,badge:`attention`}};function AT({kind:e=`doc`,title:t,version:n,summary:r,sections:i=[],links:a=[],width:o=360,children:s}){let c=kT[e],l=c.trigger,u=c.header;return(0,G.jsxs)(A_,{width:o,shadow:`md`,radius:`md`,withArrow:!0,openDelay:100,closeDelay:120,position:`top`,withinPortal:!0,children:[(0,G.jsx)(A_.Target,{children:s?(0,G.jsx)(Ld,{"aria-label":`${c.badge} : ${t}`,style:{display:`inline-flex`,lineHeight:0,cursor:`help`},children:s}):(0,G.jsx)(qf,{variant:`subtle`,color:e===`doc`?`gray`:c.accent,size:`sm`,radius:`xl`,w:24,h:24,"aria-label":`${c.badge} : ${t}`,children:(0,G.jsx)(l,{size:15,stroke:1.6})})}),(0,G.jsxs)(A_.Dropdown,{p:0,children:[(0,G.jsx)(Y,{p:`xs`,style:{borderBottom:`1px solid var(--mantine-color-default-border)`,background:`var(--mantine-color-default-hover)`,borderTopLeftRadius:`var(--mantine-radius-md)`,borderTopRightRadius:`var(--mantine-radius-md)`},children:(0,G.jsxs)(X,{gap:8,wrap:`nowrap`,justify:`space-between`,children:[(0,G.jsxs)(X,{gap:6,wrap:`nowrap`,style:{minWidth:0},children:[(0,G.jsx)(qx,{variant:`light`,color:c.accent,size:`sm`,radius:`sm`,children:(0,G.jsx)(u,{size:14})}),(0,G.jsx)(Z,{fw:700,size:`sm`,truncate:!0,children:t})]}),(0,G.jsxs)(jg,{size:`xs`,variant:`light`,color:c.accent,tt:`none`,children:[c.badge,n?` ${n}`:``]})]})}),(0,G.jsxs)(sx,{gap:`sm`,p:`sm`,children:[r?(0,G.jsx)(Z,{size:`sm`,c:`dimmed`,children:r}):null,i.map((e,t)=>(0,G.jsxs)(Y,{children:[(0,G.jsx)(Z,{size:`xs`,fw:700,tt:`uppercase`,c:c.accent,style:{letterSpacing:.4},mb:2,children:e.label}),(0,G.jsx)(Z,{size:`xs`,c:`dimmed`,children:e.body})]},`${e.label}-${t}`)),a.length>0?(0,G.jsx)(sx,{gap:4,children:a.map(e=>(0,G.jsx)(hh,{href:e.href,target:`_blank`,rel:`noreferrer noopener`,size:`xs`,children:(0,G.jsxs)(X,{gap:4,wrap:`nowrap`,component:`span`,children:[(0,G.jsx)(cT,{size:12}),e.label]})},e.href))}):null]})]})]})}var jT=e=>(0,G.jsx)(AT,{kind:`doc`,...e}),MT=e=>(0,G.jsx)(AT,{kind:`graph`,...e}),NT=e=>(0,G.jsx)(AT,{kind:`tip`,...e}),PT=e=>(0,G.jsx)(AT,{kind:`warning`,...e});function FT({text:e}){return(0,G.jsx)(Zb,{label:e,multiline:!0,w:280,withArrow:!0,position:`top`,events:{hover:!0,focus:!0,touch:!0},children:(0,G.jsx)(qf,{variant:`subtle`,color:`gray`,size:`sm`,w:24,h:24,style:{cursor:`help`},"aria-label":e,children:(0,G.jsx)(pT,{size:15})})})}function IT({label:e,icon:t,hint:n,info:r,span:i={base:12,sm:6,lg:3},onClick:a,active:o=!1,actionLabel:s,children:c}){let l=a!==void 0;return(0,G.jsx)(y_.Col,{span:i,children:(0,G.jsx)(qg,{withBorder:!0,radius:`md`,p:`lg`,h:`100%`,role:l?`button`:void 0,"aria-pressed":l?o:void 0,"aria-label":l?s:void 0,title:l?s:void 0,tabIndex:l?0:void 0,onClick:a,onKeyDown:l?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),a())}:void 0,style:l?{cursor:`pointer`,borderColor:o?`var(--mantine-color-brand-5)`:void 0,backgroundColor:o?`var(--mantine-color-brand-light)`:void 0}:void 0,children:(0,G.jsxs)(X,{justify:`space-between`,wrap:`nowrap`,children:[(0,G.jsxs)(sx,{gap:2,children:[(0,G.jsxs)(X,{gap:4,children:[(0,G.jsx)(Z,{size:`xs`,c:`dimmed`,tt:`uppercase`,fw:600,children:e}),(0,G.jsx)(`span`,{onClick:l?e=>e.stopPropagation():void 0,onKeyDown:l?e=>e.stopPropagation():void 0,children:r??(n?(0,G.jsx)(jT,{title:e,summary:n}):null)})]}),c]}),t]})})})}function LT({k:e,v:t,mono:n}){return(0,G.jsxs)(X,{justify:`space-between`,wrap:`nowrap`,gap:`md`,children:[(0,G.jsx)(Z,{size:`sm`,c:`dimmed`,children:e}),(0,G.jsx)(Z,{size:`sm`,fw:600,ff:n?`monospace`:void 0,ta:`right`,children:t})]})}function RT({children:e,gap:t=6}){return(0,G.jsx)(sx,{gap:t,children:e})}function zT(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var BT=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HT={};function UT(e,t){return((t||HT).jsx?VT:BT).test(e)}var WT=/[ \t\n\f\r]/g;function GT(e){return typeof e==`object`?e.type===`text`&&KT(e.value):KT(e)}function KT(e){return e.replace(WT,``)===``}var qT=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};qT.prototype.normal={},qT.prototype.property={},qT.prototype.space=void 0;function JT(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new qT(n,r,t)}function YT(e){return e.toLowerCase()}var XT=class{constructor(e,t){this.attribute=t,this.property=e}};XT.prototype.attribute=``,XT.prototype.booleanish=!1,XT.prototype.boolean=!1,XT.prototype.commaOrSpaceSeparated=!1,XT.prototype.commaSeparated=!1,XT.prototype.defined=!1,XT.prototype.mustUseProperty=!1,XT.prototype.number=!1,XT.prototype.overloadedBoolean=!1,XT.prototype.property=``,XT.prototype.spaceSeparated=!1,XT.prototype.space=void 0;var ZT=t({boolean:()=>$T,booleanish:()=>eE,commaOrSpaceSeparated:()=>iE,commaSeparated:()=>rE,number:()=>Q,overloadedBoolean:()=>tE,spaceSeparated:()=>nE}),QT=0,$T=aE(),eE=aE(),tE=aE(),Q=aE(),nE=aE(),rE=aE(),iE=aE();function aE(){return 2**++QT}var oE=Object.keys(ZT),sE=class extends XT{constructor(e,t,n,r){let i=-1;if(super(e,t),cE(this,`space`,r),typeof n==`number`)for(;++i<oE.length;){let e=oE[i];cE(this,oE[i],(n&ZT[e])===ZT[e])}}};sE.prototype.defined=!0;function cE(e,t,n){n&&(e[t]=n)}function lE(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new sE(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[YT(r)]=r,n[YT(a.attribute)]=r}return new qT(t,n,e.space)}var uE=lE({properties:{ariaActiveDescendant:null,ariaAtomic:eE,ariaAutoComplete:null,ariaBusy:eE,ariaChecked:eE,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:nE,ariaCurrent:null,ariaDescribedBy:nE,ariaDetails:null,ariaDisabled:eE,ariaDropEffect:nE,ariaErrorMessage:null,ariaExpanded:eE,ariaFlowTo:nE,ariaGrabbed:eE,ariaHasPopup:null,ariaHidden:eE,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nE,ariaLevel:Q,ariaLive:null,ariaModal:eE,ariaMultiLine:eE,ariaMultiSelectable:eE,ariaOrientation:null,ariaOwns:nE,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:eE,ariaReadOnly:eE,ariaRelevant:null,ariaRequired:eE,ariaRoleDescription:nE,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:eE,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function dE(e,t){return t in e?e[t]:t}function fE(e,t){return dE(e,t.toLowerCase())}var pE=lE({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:rE,acceptCharset:nE,accessKey:nE,action:null,allow:null,allowFullScreen:$T,allowPaymentRequest:$T,allowUserMedia:$T,alpha:$T,alt:null,as:null,async:$T,autoCapitalize:null,autoComplete:nE,autoFocus:$T,autoPlay:$T,blocking:nE,capture:null,charSet:null,checked:$T,cite:null,className:nE,closedBy:null,colorSpace:null,cols:Q,colSpan:Q,command:null,commandFor:null,content:null,contentEditable:eE,controls:$T,controlsList:nE,coords:Q|rE,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$T,defer:$T,dir:null,dirName:null,disabled:$T,download:tE,draggable:eE,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$T,formTarget:null,headers:nE,height:Q,hidden:tE,high:Q,href:null,hrefLang:null,htmlFor:nE,httpEquiv:nE,id:null,imageSizes:null,imageSrcSet:null,inert:$T,inputMode:null,integrity:null,is:null,isMap:$T,itemId:null,itemProp:nE,itemRef:nE,itemScope:$T,itemType:nE,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$T,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:$T,muted:$T,name:null,nonce:null,noModule:$T,noValidate:$T,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$T,optimum:Q,pattern:null,ping:nE,placeholder:null,playsInline:$T,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$T,referrerPolicy:null,rel:nE,required:$T,reversed:$T,rows:Q,rowSpan:Q,sandbox:nE,scope:null,scoped:$T,seamless:$T,selected:$T,shadowRootClonable:$T,shadowRootCustomElementRegistry:$T,shadowRootDelegatesFocus:$T,shadowRootMode:null,shadowRootSerializable:$T,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:eE,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:$T,useMap:null,value:eE,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nE,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$T,declare:$T,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:$T,noHref:$T,noShade:$T,noWrap:$T,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:eE,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:$T,disablePictureInPicture:$T,disableRemotePlayback:$T,exportParts:rE,part:nE,prefix:null,property:null,results:Q,security:null,unselectable:null},space:`html`,transform:fE}),mE=lE({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:iE,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:nE,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:$T,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:rE,g2:rE,glyphName:rE,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:iE,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nE,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:iE,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:iE,rev:iE,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:iE,requiredFeatures:iE,requiredFonts:iE,requiredFormats:iE,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:iE,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:iE,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:iE,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:dE}),hE=lE({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),gE=lE({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:fE}),_E=lE({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),vE={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},yE=/[A-Z]/g,bE=/-[a-z]/g,xE=/^data[-\w.:]+$/i;function SE(e,t){let n=YT(t),r=t,i=XT;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&xE.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(bE,wE);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!bE.test(e)){let n=e.replace(yE,CE);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=sE}return new i(r,t)}function CE(e){return`-`+e.toLowerCase()}function wE(e){return e.charAt(1).toUpperCase()}var TE=JT([uE,pE,hE,gE,_E],`html`),EE=JT([uE,mE,hE,gE,_E],`svg`);function DE(e){return e.join(` `).trim()}var OE=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
54
54
  `);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),kE=n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(OE());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),AE=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),jE=n(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(kE()),r=AE();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),ME=PE(`end`),NE=PE(`start`);function PE(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function FE(e){let t=NE(e),n=ME(e);if(t&&n)return{start:t,end:n}}function IE(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?RE(e.position):`start`in e||`end`in e?RE(e):`line`in e||`column`in e?LE(e):``}function LE(e){return zE(e&&e.line)+`:`+zE(e&&e.column)}function RE(e){return LE(e&&e.start)+`-`+LE(e&&e.end)}function zE(e){return e&&typeof e==`number`?e:1}var BE=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=IE(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};BE.prototype.file=``,BE.prototype.name=``,BE.prototype.reason=``,BE.prototype.message=``,BE.prototype.stack=``,BE.prototype.column=void 0,BE.prototype.line=void 0,BE.prototype.ancestors=void 0,BE.prototype.cause=void 0,BE.prototype.fatal=void 0,BE.prototype.place=void 0,BE.prototype.ruleId=void 0,BE.prototype.source=void 0;var VE=l(jE(),1),HE={}.hasOwnProperty,UE=new Map,WE=/[A-Z]/g,GE=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),KE=new Set([`td`,`th`]),qE=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function JE(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=aD(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=iD(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?EE:TE,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=YE(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function YE(e,t,n){if(t.type===`element`)return XE(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return ZE(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return $E(e,t,n);if(t.type===`mdxjsEsm`)return QE(e,t);if(t.type===`root`)return eD(e,t,n);if(t.type===`text`)return tD(e,t)}function XE(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=EE,e.schema=i),e.ancestors.push(t);let a=dD(e,t.tagName,!1),o=oD(e,t),s=cD(e,t);return GE.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!GT(e)})),nD(e,o,a,t),rD(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function ZE(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}fD(e,t.position)}function QE(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fD(e,t.position)}function $E(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=EE,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:dD(e,t.name,!0),o=sD(e,t),s=cD(e,t);return nD(e,o,a,t),rD(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function eD(e,t,n){let r={};return rD(r,cD(e,t)),e.create(t,e.Fragment,r,n)}function tD(e,t){return t.value}function nD(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function rD(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function iD(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function aD(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=NE(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function oD(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&HE.call(t.properties,i)){let a=lD(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&KE.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function sD(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else fD(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else fD(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function cD(e,t){let n=[],r=-1,i=e.passKeys?new Map:UE;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=YE(e,a,o);s!==void 0&&n.push(s)}return n}function lD(e,t,n){let r=SE(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?zT(n):DE(n)),r.property===`style`){let t=typeof n==`object`?n:uD(e,String(n));return e.stylePropertyNameCase===`css`&&(t=pD(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?vE[r.property]||r.property:r.attribute,n]}}function uD(e,t){try{return(0,VE.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new BE("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=qE+`#cannot-parse-style-attribute`,r}}function dD(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=UT(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=UT(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return HE.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);fD(e)}function fD(e,t){let n=new BE("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=qE+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function pD(e){let t={},n;for(n in e)HE.call(e,n)&&(t[mD(n)]=e[n]);return t}function mD(e){let t=e.replace(WE,hD);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function hD(e){return`-`+e.toLowerCase()}var gD={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},_D={};function vD(e,t){let n=t||_D;return yD(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function yD(e,t,n){if(xD(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return bD(e.children,t,n)}return Array.isArray(e)?bD(e,t,n):``}function bD(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=yD(e[i],t,n);return r.join(``)}function xD(e){return!!(e&&typeof e==`object`)}var SD=document.createElement(`i`);function CD(e){let t=`&`+e+`;`;SD.innerHTML=t;let n=SD.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function wD(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function TD(e,t){return e.length>0?(wD(e,e.length,0,t),e):t}var ED={}.hasOwnProperty;function DD(e){let t={},n=-1;for(;++n<e.length;)OD(t,e[n]);return t}function OD(e,t){let n;for(n in t){let r=(ED.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){ED.call(r,a)||(r[a]=[]);let e=i[a];kD(r[a],Array.isArray(e)?e:e?[e]:[])}}}function kD(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);wD(e,0,0,r)}function AD(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function jD(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var MD=WD(/[A-Za-z]/),ND=WD(/[\dA-Za-z]/),PD=WD(/[#-'*+\--9=?A-Z^-~]/);function FD(e){return e!==null&&(e<32||e===127)}var ID=WD(/\d/),LD=WD(/[\dA-Fa-f]/),RD=WD(/[!-/:-@[-`{-~]/);function zD(e){return e!==null&&e<-2}function BD(e){return e!==null&&(e<0||e===32)}function VD(e){return e===-2||e===-1||e===32}var HD=WD(/\p{P}|\p{S}/u),UD=WD(/\s/);function WD(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function GD(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&ND(e.charCodeAt(n+1))&&ND(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function KD(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return VD(r)?(e.enter(n),s(r)):t(r)}function s(r){return VD(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var qD={tokenize:JD};function JD(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),KD(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return zD(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var YD={tokenize:ZD},XD={tokenize:QD};function ZD(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return wD(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(XD,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(XD,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return zD(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;wD(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function QD(e,t,n){return KD(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function $D(e){if(e===null||BD(e)||UD(e))return 1;if(HD(e))return 2}function eO(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var tO={name:`attention`,resolveAll:nO,tokenize:rO};function nO(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};iO(d,-c),iO(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=TD(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=TD(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=TD(l,eO(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=TD(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=TD(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,wD(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function rO(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=$D(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=$D(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function iO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var aO={name:`autolink`,tokenize:oO};function oO(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return MD(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||ND(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||ND(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||FD(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):PD(t)?(e.consume(t),l):n(t)}function u(e){return ND(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||ND(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var sO={partial:!0,tokenize:cO};function cO(e,t,n){return r;function r(t){return VD(t)?KD(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||zD(e)?t(e):n(e)}}var lO={continuation:{tokenize:dO},exit:fO,name:`blockQuote`,tokenize:uO};function uO(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return VD(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function dO(e,t,n){let r=this;return i;function i(t){return VD(t)?KD(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(lO,t,n)(r)}}function fO(e){e.exit(`blockQuote`)}var pO={name:`characterEscape`,tokenize:mO};function mO(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return RD(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var hO={name:`characterReference`,tokenize:gO};function gO(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=ND,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=LD,u):(e.enter(`characterReferenceValue`),a=7,o=ID,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===ND&&!CD(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var _O={partial:!0,tokenize:bO},vO={concrete:!0,name:`codeFenced`,tokenize:yO};function yO(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),VD(t)?KD(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||zD(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(_O,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||zD(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):VD(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),KD(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||zD(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||zD(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&VD(t)?KD(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||zD(t)?e.check(_O,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||zD(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),VD(t)?KD(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),VD(t)?KD(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||zD(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function bO(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var xO={name:`codeIndented`,tokenize:CO},SO={partial:!0,tokenize:wO};function CO(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),KD(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):zD(t)?e.attempt(SO,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||zD(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function wO(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):zD(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):KD(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):zD(e)?i(e):n(e)}}var TO={name:`codeText`,previous:DO,resolve:EO,tokenize:OO};function EO(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function DO(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function OO(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):zD(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||zD(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var kO=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&AO(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),AO(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),AO(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);AO(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);AO(this.left,t.reverse())}}}};function AO(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function jO(e){let t={},n=-1,r,i,a,o,s,c,l,u=new kO(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,MO(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return wD(e,0,1/0,u.slice(0)),!l}function MO(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var NO={resolve:FO,tokenize:IO},PO={partial:!0,tokenize:LO};function FO(e){return jO(e),e}function IO(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):zD(t)?e.check(PO,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function LO(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),KD(e,a,`linePrefix`)}function a(i){if(i===null||zD(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function RO(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||FD(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||zD(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||BD(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||FD(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function zO(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):zD(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||zD(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!VD(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function BO(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):zD(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),KD(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||zD(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function VO(e,t){let n;return r;function r(i){return zD(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):VD(i)?KD(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var HO={name:`definition`,tokenize:WO},UO={partial:!0,tokenize:GO};function WO(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return zO.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=jD(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return BD(t)?VO(e,l)(t):l(t)}function l(t){return RO(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(UO,d,d)(t)}function d(t){return VD(t)?KD(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||zD(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function GO(e,t,n){return r;function r(t){return BD(t)?VO(e,i)(t):n(t)}function i(t){return BO(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return VD(t)?KD(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||zD(e)?t(e):n(e)}}var KO={name:`hardBreakEscape`,tokenize:qO};function qO(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return zD(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var JO={name:`headingAtx`,resolve:YO,tokenize:XO};function YO(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},wD(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function XO(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||BD(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||zD(n)?(e.exit(`atxHeading`),t(n)):VD(n)?KD(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||BD(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var ZO=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),QO=[`pre`,`script`,`style`,`textarea`],$O={concrete:!0,name:`htmlFlow`,resolveTo:nk,tokenize:rk},ek={partial:!0,tokenize:ak},tk={partial:!0,tokenize:ik};function nk(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function rk(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):MD(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):MD(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return MD(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||BD(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&QO.includes(l)?(i=1,r.interrupt?t(s):O(s)):ZO.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||ND(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return VD(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||MD(t)?(e.consume(t),b):VD(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||ND(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):VD(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):VD(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||zD(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||BD(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||VD(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||zD(t)?O(t):VD(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):zD(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(ek,R,k)(t)):t===null||zD(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(tk,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||zD(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return QO.includes(n)?(e.consume(t),L):O(t)}return MD(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||zD(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function ik(e,t,n){let r=this;return i;function i(t){return zD(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function ak(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(sO,t,n)}}var ok={name:`htmlText`,tokenize:sk};function sk(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):MD(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):MD(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):zD(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):zD(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):zD(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):zD(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return MD(t)?(e.consume(t),S):n(t)}function S(t){return t===45||ND(t)?(e.consume(t),S):C(t)}function C(t){return zD(t)?(o=C,N(t)):VD(t)?(e.consume(t),C):M(t)}function w(t){return t===45||ND(t)?(e.consume(t),w):t===47||t===62||BD(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||MD(t)?(e.consume(t),E):zD(t)?(o=T,N(t)):VD(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||ND(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):zD(t)?(o=D,N(t)):VD(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):zD(t)?(o=O,N(t)):VD(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):zD(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||BD(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||BD(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return VD(t)?KD(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var ck={name:`labelEnd`,resolveAll:fk,resolveTo:pk,tokenize:mk},lk={tokenize:hk},uk={tokenize:gk},dk={tokenize:_k};function fk(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&wD(e,0,e.length,n),e}function pk(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=TD(s,e.slice(a+1,a+r+3)),s=TD(s,[[`enter`,u,t]]),s=TD(s,eO(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=TD(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=TD(s,e.slice(o+1)),s=TD(s,[[`exit`,c,t]]),wD(e,a,e.length,s),e}function mk(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(jD(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(lk,u,o?u:d)(t):t===91?e.attempt(uk,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(dk,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function hk(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return BD(t)?VO(e,a)(t):a(t)}function a(t){return t===41?u(t):RO(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return BD(t)?VO(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?BO(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return BD(t)?VO(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function gk(e,t,n){let r=this;return i;function i(t){return zO.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(jD(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function _k(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var vk={name:`labelStartImage`,resolveAll:ck.resolveAll,tokenize:yk};function yk(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var bk={name:`labelStartLink`,resolveAll:ck.resolveAll,tokenize:xk};function xk(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Sk={name:`lineEnding`,tokenize:Ck};function Ck(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),KD(e,t,`linePrefix`)}}var wk={name:`thematicBreak`,tokenize:Tk};function Tk(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||zD(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),VD(t)?KD(e,s,`whitespace`)(t):s(t))}}var Ek={continuation:{tokenize:Ak},exit:Mk,name:`list`,tokenize:kk},Dk={partial:!0,tokenize:Nk},Ok={partial:!0,tokenize:jk};function kk(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:ID(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(wk,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return ID(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(sO,r.interrupt?n:u,e.attempt(Dk,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return VD(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Ak(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(sO,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,KD(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!VD(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ok,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,KD(e,e.attempt(Ek,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function jk(e,t,n){let r=this;return KD(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Mk(e){e.exit(this.containerState.type)}function Nk(e,t,n){let r=this;return KD(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!VD(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Pk={name:`setextUnderline`,resolveTo:Fk,tokenize:Ik};function Fk(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function Ik(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),VD(t)?KD(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||zD(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Lk={tokenize:Rk};function Rk(e){let t=this,n=e.attempt(sO,r,e.attempt(this.parser.constructs.flowInitial,i,KD(e,e.attempt(this.parser.constructs.flow,i,e.attempt(NO,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var zk={resolveAll:Uk()},Bk=Hk(`string`),Vk=Hk(`text`);function Hk(e){return{resolveAll:Uk(e===`text`?Wk:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Uk(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Wk(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Gk=t({attentionMarkers:()=>$k,contentInitial:()=>qk,disable:()=>eA,document:()=>Kk,flow:()=>Yk,flowInitial:()=>Jk,insideSpan:()=>Qk,string:()=>Xk,text:()=>Zk}),Kk={42:Ek,43:Ek,45:Ek,48:Ek,49:Ek,50:Ek,51:Ek,52:Ek,53:Ek,54:Ek,55:Ek,56:Ek,57:Ek,62:lO},qk={91:HO},Jk={[-2]:xO,[-1]:xO,32:xO},Yk={35:JO,42:wk,45:[Pk,wk],60:$O,61:Pk,95:wk,96:vO,126:vO},Xk={38:hO,92:pO},Zk={[-5]:Sk,[-4]:Sk,[-3]:Sk,33:vk,38:hO,42:tO,60:[aO,ok],91:bk,92:[KO,pO],93:ck,95:tO,96:TO},Qk={null:[tO,zk]},$k={null:[42,95]},eA={null:[]};function tA(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=TD(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=eO(a,l.events,l),l.events):[]}function f(e,t){return rA(p(e),t)}function p(e){return nA(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){zD(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&wD(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function nA(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function rA(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
55
55
  `;break;case-3:o=`\r
56
56
  `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function iA(e){let t={constructs:DD([Gk,...(e||{}).extensions||[]]),content:n(qD),defined:[],document:n(YD),flow:n(Lk),lazy:{},string:n(Bk),text:n(Vk)};return t;function n(e){return n;function n(n){return tA(t,e,n)}}}function aA(e){for(;!jO(e););return e}var oA=/[\0\t\n\r]/g;function sA(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(oA.lastIndex=u,c=oA.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var cA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lA(e){return e.replace(cA,uA)}function uA(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return AD(n.slice(t?2:1),t?16:10)}return CD(n)||e}var dA={}.hasOwnProperty;function fA(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),pA(n)(aA(iA(n).document().write(sA()(e,t,!0))))}function pA(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(pe),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(V),blockQuote:a(ae),characterEscape:T,characterReference:T,codeFenced:a(oe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(oe,o),codeText:a(se,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ce),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(le),hardBreakEscape:a(ue),hardBreakTrailing:a(ue),htmlFlow:a(de,o),htmlFlowData:T,htmlText:a(de,o),htmlTextData:T,image:a(fe),label:o,link:a(pe),listItem:a(he),listItemValue:f,listOrdered:a(me,d),listUnordered:a(me),paragraph:a(ge),reference:ee,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(V),strong:a(_e),thematicBreak:a(ye)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ie,autolinkProtocol:re,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:te,characterReference:ne,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:z,resourceDestinationString:I,resourceTitleString:L,resource:R,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};hA(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];dA.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||_A).call(a,void 0,e[0])}for(r.position={start:mA(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:mA(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:mA(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||_A).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+IE({start:e.start,end:e.end})+`): it’s not open`);n.position.end=mA(e.end)}function u(){return vD(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=jD(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=ve(),n.position={start:mA(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=mA(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=mA(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=lA(t),n.identifier=jD(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function R(){this.data.inReference=void 0}function ee(){this.data.referenceType=`collapsed`}function z(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=jD(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function B(e){this.data.characterReferenceType=e.type}function te(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=AD(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=CD(t);let i=this.stack[this.stack.length-1];i.value+=r}function ne(e){let t=this.stack.pop();t.position.end=mA(e.end)}function re(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ie(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ae(){return{type:`blockquote`,children:[]}}function oe(){return{type:`code`,lang:null,meta:null,value:``}}function se(){return{type:`inlineCode`,value:``}}function ce(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function le(){return{type:`emphasis`,children:[]}}function V(){return{type:`heading`,depth:0,children:[]}}function ue(){return{type:`break`}}function de(){return{type:`html`,value:``}}function fe(){return{type:`image`,title:null,url:``,alt:null}}function pe(){return{type:`link`,title:null,url:``,children:[]}}function me(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function he(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function ge(){return{type:`paragraph`,children:[]}}function _e(){return{type:`strong`,children:[]}}function ve(){return{type:`text`,value:``}}function ye(){return{type:`thematicBreak`}}}function mA(e){return{line:e.line,column:e.column,offset:e.offset}}function hA(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?hA(e,r):gA(e,r)}}function gA(e,t){let n;for(n in t)if(dA.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function _A(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+IE({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+IE({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+IE({start:t.start,end:t.end})+`) is still open`)}function vA(e){let t=this;t.parser=n;function n(n){return fA(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function yA(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function bA(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
@@ -79,7 +79,7 @@ import{C as e,D as t,E as n,O as r,S as i,T as a,_ as o,b as s,i as c,k as l,n a
79
79
  `,...a.current()});return/^[\t ]/.test(l)&&(l=jN(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}LN.peek=RN;function LN(e){return e.value||``}function RN(){return`<`}zN.peek=BN;function zN(e,t,n,r){let i=ON(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function BN(){return`!`}VN.peek=HN;function VN(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function HN(){return`!`}UN.peek=WN;function UN(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function WN(){return"`"}function GN(e,t){let n=vD(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][a-z+.-]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}KN.peek=qN;function KN(e,t,n,r){let i=ON(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(GN(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function qN(e,t,n){return GN(e,n)?`<`:`[`}JN.peek=YN;function JN(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function YN(){return`[`}function XN(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ZN(e){let t=XN(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function QN(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function $N(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function eP(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?QN(n):XN(n),s=e.ordered?o===`.`?`)`:`.`:ZN(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),$N(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function tP(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function nP(e,t,n,r){let i=tP(n),a=n.bulletCurrent||XN(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function rP(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var iP=fj([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function aP(e,t,n,r){return(e.children.some(function(e){return iP(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function oP(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}sP.peek=cP;function sP(e,t,n,r){let i=oP(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=MN(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=jN(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=MN(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+jN(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function cP(e,t,n){return n.options.strong||`*`}function lP(e,t,n,r){return n.safe(e.value,r)}function uP(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function dP(e,t,n){let r=($N(n)+(n.options.ruleSpaces?` `:``)).repeat(uP(n));return n.options.ruleSpaces?r.slice(0,-1):r}var fP={blockquote:vN,break:SN,code:EN,definition:kN,emphasis:NN,hardBreak:SN,heading:IN,html:LN,image:zN,imageReference:VN,inlineCode:UN,link:KN,linkReference:JN,list:eP,listItem:nP,paragraph:rP,root:aP,strong:sP,text:lP,thematicBreak:dP};function pP(){return{enter:{table:mP,tableData:vP,tableHeader:vP,tableRow:gP},exit:{codeText:yP,table:hP,tableData:_P,tableHeader:_P,tableRow:_P}}}function mP(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function hP(e){this.exit(e),this.data.inTable=void 0}function gP(e){this.enter({type:`tableRow`,children:[]},e)}function _P(e){this.exit(e)}function vP(e){this.enter({type:`tableCell`,children:[]},e)}function yP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bP));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function bP(e,t){return t===`|`?t:e}function xP(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
80
80
  `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
81
81
  `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return hN(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=fP.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function SP(){return{exit:{taskListCheckValueChecked:wP,taskListCheckValueUnchecked:wP,paragraph:TP}}}function CP(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:EP}}}function wP(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function TP(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function EP(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=fP.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function DP(){return[NM(),rN(),cN(),pP(),SP()]}function OP(e){return{extensions:[PM(),iN(e),lN(),xP(e),CP()]}}var kP={tokenize:UP,partial:!0},AP={tokenize:WP,partial:!0},jP={tokenize:GP,partial:!0},MP={tokenize:KP,partial:!0},NP={tokenize:qP,partial:!0},PP={name:`wwwAutolink`,tokenize:VP,previous:JP},FP={name:`protocolAutolink`,tokenize:HP,previous:YP},IP={name:`emailAutolink`,tokenize:BP,previous:XP},LP={};function RP(){return{text:LP}}for(var zP=48;zP<123;)LP[zP]=IP,zP++,zP===58?zP=65:zP===91&&(zP=97);LP[43]=IP,LP[45]=IP,LP[46]=IP,LP[95]=IP,LP[72]=[IP,FP],LP[104]=[IP,FP],LP[87]=[IP,PP],LP[119]=[IP,PP];function BP(e,t,n){let r=this,i,a;return o;function o(t){return!ZP(t)||!XP.call(r,r.previous)||QP(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return ZP(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(NP,u,l)(t):t===45||t===95||ND(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&MD(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function VP(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!JP.call(r,r.previous)||QP(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(kP,e.attempt(AP,e.attempt(jP,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function HP(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&YP.call(r,r.previous)&&!QP(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(MD(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||FD(t)||BD(t)||UD(t)||HD(t)?n(t):e.attempt(AP,e.attempt(jP,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function UP(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function WP(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(MP,c,s)(t):t===null||BD(t)||UD(t)||t!==45&&HD(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function GP(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(MP,t,a)(o):o===null||BD(o)||UD(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function KP(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||BD(o)||UD(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||BD(e)||UD(e)?t(e):r(e)}function a(e){return MD(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):MD(t)?(e.consume(t),o):n(t)}}function qP(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return ND(e)?n(e):t(e)}}function JP(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||BD(e)}function YP(e){return!MD(e)}function XP(e){return!(e===47||ZP(e))}function ZP(e){return e===43||e===45||e===46||e===95||ND(e)}function QP(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var $P={tokenize:sF,partial:!0};function eF(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:iF,continuation:{tokenize:aF},exit:oF}},text:{91:{name:`gfmFootnoteCall`,tokenize:rF},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:tF,resolveTo:nF}}}}function tF(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=jD(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function nF(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function rF(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||BD(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(jD(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return BD(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function iF(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||BD(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=jD(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return BD(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),KD(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function aF(e,t,n){return e.check(sO,t,e.attempt($P,t,n))}function oF(e){e.exit(`gfmFootnoteDefinition`)}function sF(e,t,n){let r=this;return KD(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function cF(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&wD(o,o.length,0,eO(s,e.slice(r+1,n),t)),wD(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),wD(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=$D(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=$D(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var lF=class{constructor(){this.map=[]}add(e,t,n){uF(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function uF(e,t,n,r){let i=0;if(n!==0||r.length!==0){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function dF(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function fF(){return{flow:{null:{name:`table`,tokenize:pF,resolveAll:mF}}}}function pF(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):zD(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):VD(t)?KD(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||BD(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,VD(t)?KD(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return VD(t)?KD(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||zD(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return VD(t)?KD(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||zD(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||zD(n)?(e.exit(`tableRow`),t(n)):VD(n)?KD(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||BD(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function mF(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new lF;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(gF(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=hF(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=hF(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=hF(f,t,o,i,n,d)):(o[0]=o[1],d=hF(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&gF(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=dF(t.events,n))}return e}function hF(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},_F(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=_F(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=_F(t.events,n[2]),a=_F(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},_F(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function gF(e,t,n,r,i){let a=[],o=_F(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function _F(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var vF={name:`tasklistCheck`,tokenize:bF};function yF(){return{text:{91:vF}}}function bF(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return BD(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return zD(r)?t(r):VD(r)?e.check({tokenize:xF},t,n)(r):n(r)}}function xF(e,t,n){return KD(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function SF(e){return DD([RP(),eF(),cF(e),fF(),yF()])}var CF={};function wF(e){let t=this,n=e||CF,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(SF(n)),a.push(DP()),o.push(OP(n))}function TF(e){return e.toLowerCase().replace(/[︀-️]/g,``).replace(/[^\p{L}\p{N}\p{M}\s-]/gu,``).replace(/\s/g,`-`)}function EF(e,t=2,n=3){if(!e)return[];let r=[],i=!1;for(let a of e.split(`
82
- `)){if(/^\s*(```|~~~)/.test(a)){i=!i;continue}if(i)continue;let e=/^(#{1,6})\s+(.+?)\s*#*\s*$/.exec(a);if(!e)continue;let o=e[1].length;if(o<t||o>n)continue;let s=e[2].replace(/[*_`]/g,``).trim();s&&r.push({level:o,text:s,id:TF(s)})}return r}function DF({markdown:e,scrollRootRef:t,minLevel:n=2,maxLevel:r=3,maxHeight:i,actions:a}){let o=(0,U.useMemo)(()=>EF(e,n,r),[e,n,r]),[s,c]=(0,U.useState)(``),[l,u]=(0,U.useState)(null),d=(0,U.useRef)(n),f=(0,U.useMemo)(()=>{let e=s.trim().toLowerCase();return e?o.filter(t=>t.text.toLowerCase().includes(e)):o},[o,s]);if((0,U.useEffect)(()=>{if(!o.length)return;let e=o.map(e=>document.getElementById(e.id)).filter(e=>e!==null);if(!e.length)return;let n=new IntersectionObserver(e=>{let t=e.filter(e=>e.isIntersecting).sort((e,t)=>e.boundingClientRect.top-t.boundingClientRect.top)[0];t&&u(t.target.id)},{root:t?.current??null,rootMargin:`0px 0px -70% 0px`,threshold:0});return e.forEach(e=>n.observe(e)),()=>n.disconnect()},[o,t]),!o.length)return null;let p=e=>{let t=typeof window<`u`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;document.getElementById(e)?.scrollIntoView({behavior:t?`auto`:`smooth`,block:`start`}),u(e)},m=(0,G.jsxs)(Y,{style:{flexShrink:0},children:[(0,G.jsxs)(X,{gap:6,mb:6,px:`xs`,justify:`space-between`,wrap:`nowrap`,children:[(0,G.jsxs)(X,{gap:6,wrap:`nowrap`,children:[(0,G.jsx)(gT,{size:14}),(0,G.jsx)(Z,{size:`xs`,fw:700,tt:`uppercase`,c:`dimmed`,children:`Sur cette page`})]}),a]}),o.length>8&&(0,G.jsx)(Wx,{size:`xs`,mb:6,placeholder:`Filtrer le sommaire…`,value:s,onChange:e=>c(e.currentTarget.value),leftSection:(0,G.jsx)(bT,{size:13}),"aria-label":`Filtrer le sommaire`})]}),h=(0,G.jsxs)(sx,{gap:1,children:[f.map(e=>{let t=e.id===l;return(0,G.jsx)(Ld,{onClick:()=>p(e.id),style:{paddingLeft:W((e.level-d.current)*12+10),paddingTop:W(3),paddingBottom:W(3),minHeight:W(24),display:`flex`,alignItems:`center`,borderLeft:`2px solid ${t?`var(--mantine-primary-color-filled)`:`transparent`}`},children:(0,G.jsx)(Z,{size:`xs`,lineClamp:2,c:t?void 0:`dimmed`,fw:t?600:400,children:e.text})},e.id)}),!f.length&&(0,G.jsx)(Z,{size:`xs`,c:`dimmed`,px:`xs`,py:4,children:`Aucun titre ne correspond.`})]});return i?(0,G.jsxs)(Y,{style:{display:`flex`,flexDirection:`column`,maxHeight:i,minHeight:0},children:[m,(0,G.jsx)(Nd,{type:`hover`,style:{flex:1,minHeight:0},children:h})]}):(0,G.jsxs)(Y,{children:[m,h]})}var OF=`var(--app-shell-header-height, 56px)`,kF=`var(--nodefony-debugbar-height, 0px)`,AF=`var(--mantine-spacing-md, 16px)`,jF=`var(--nf-pageheader-height, 76px)`,MF=`48px`,NF=`60px`,PF=jF,FF=`calc(${jF} + ${AF})`,IF=`calc(100dvh - ${OF} - ${jF} - ${kF} - ${AF} * 3)`,LF=`calc(${jF} + ${AF} * 2)`,RF=IF,zF=`calc(100dvh - ${OF} - ${jF} - ${MF} - ${kF} - ${AF} * 2)`,BF=`calc(100dvh - ${OF} - ${jF} - ${MF} - ${kF} - ${AF} * 4)`,VF=`calc(100dvh - ${NF} - ${kF})`,HF=`calc(100dvh - ${NF} - ${kF} - ${AF} * 2)`;function UF({LiveGraph:e,height:t=560,title:n=`Schéma live`,hint:r}){let[i,a]=(0,U.useState)(!1);return(0,G.jsxs)(Hd,{withBorder:!0,radius:`md`,p:`md`,mt:`xl`,children:[(0,G.jsxs)(X,{justify:`space-between`,mb:`sm`,wrap:`wrap`,children:[(0,G.jsxs)(Y,{style:{maxWidth:560},children:[(0,G.jsx)(Z,{fw:700,size:`md`,children:n}),(0,G.jsx)(Z,{size:`xs`,c:`dimmed`,mt:2,children:r??(0,G.jsxs)(G.Fragment,{children:[`Le graphe respire via le canal `,(0,G.jsx)($g,{children:`nodefony:socket`}),` `,`quand le temps réel est activé. `,(0,G.jsx)(`b`,{children:`OFF`}),` = 0 ticker côté serveur (composant statique). `,(0,G.jsx)(`b`,{children:`ON`}),` = abonnement ref-compté.`]})})]}),(0,G.jsx)(mx,{checked:i,onChange:e=>a(e.currentTarget.checked),label:`Temps réel`,"aria-label":`Activer le temps réel sur le graphe`})]}),(0,G.jsx)(e,{live:i,height:t})]})}var WF=[{name:`architecture`,label:`Architecture`,component:(0,U.lazy)(()=>_(()=>import(`./ArchitectureLiveGraph-ChA__Bls.js`).then(e=>({default:e.ArchitectureLiveGraph})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])))},{name:`protocole`,label:`Protocole`,component:(0,U.lazy)(()=>_(()=>import(`./ProtocoleLiveGraph-BQsR7Gvv.js`).then(e=>({default:e.ProtocoleLiveGraph})),__vite__mapDeps([20,1,21,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])))},{name:`fan-out`,label:`Fan-out`,component:(0,U.lazy)(()=>_(()=>import(`./FanOutLiveGraph-CI8zxV4a.js`).then(e=>({default:e.FanOutLiveGraph})),__vite__mapDeps([22,1,23,2,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])))},{name:`actions`,label:`Actions`,component:(0,U.lazy)(()=>_(()=>import(`./ActionsLiveGraph-BNMaitaA.js`).then(e=>({default:e.ActionsLiveGraph})),__vite__mapDeps([24,1,3,25,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])))},{name:`backplane`,label:`Backplane`,component:(0,U.lazy)(()=>_(()=>import(`./BackplaneLiveGraph-BY14rAkX.js`).then(e=>({default:e.BackplaneLiveGraph})),__vite__mapDeps([26,1,2,27,28,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])))},{name:`sondes`,label:`Sondes`,component:(0,U.lazy)(()=>_(()=>import(`./ProbesLiveGraph-CyXf-pvf.js`).then(e=>({default:e.ProbesLiveGraph})),__vite__mapDeps([29,1,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])))}],GF=WF.map(e=>e.name);function KF(e){return WF.find(t=>t.name===e)?.component}function qF(e){return e==null||typeof e==`boolean`?``:typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(qF).join(``):(0,U.isValidElement)(e)?qF(e.props.children):``}var JF={scrollMarginTop:LF};function YF(){if(typeof document>`u`||document.getElementById(`nf-doc-styles`))return;let e=document.createElement(`style`);e.id=`nf-doc-styles`,e.textContent=`
82
+ `)){if(/^\s*(```|~~~)/.test(a)){i=!i;continue}if(i)continue;let e=/^(#{1,6})\s+(.+?)\s*#*\s*$/.exec(a);if(!e)continue;let o=e[1].length;if(o<t||o>n)continue;let s=e[2].replace(/[*_`]/g,``).trim();s&&r.push({level:o,text:s,id:TF(s)})}return r}function DF({markdown:e,scrollRootRef:t,minLevel:n=2,maxLevel:r=3,maxHeight:i,actions:a}){let o=(0,U.useMemo)(()=>EF(e,n,r),[e,n,r]),[s,c]=(0,U.useState)(``),[l,u]=(0,U.useState)(null),d=(0,U.useRef)(n),f=(0,U.useMemo)(()=>{let e=s.trim().toLowerCase();return e?o.filter(t=>t.text.toLowerCase().includes(e)):o},[o,s]);if((0,U.useEffect)(()=>{if(!o.length)return;let e=o.map(e=>document.getElementById(e.id)).filter(e=>e!==null);if(!e.length)return;let n=new IntersectionObserver(e=>{let t=e.filter(e=>e.isIntersecting).sort((e,t)=>e.boundingClientRect.top-t.boundingClientRect.top)[0];t&&u(t.target.id)},{root:t?.current??null,rootMargin:`0px 0px -70% 0px`,threshold:0});return e.forEach(e=>n.observe(e)),()=>n.disconnect()},[o,t]),!o.length)return null;let p=e=>{let t=typeof window<`u`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;document.getElementById(e)?.scrollIntoView({behavior:t?`auto`:`smooth`,block:`start`}),u(e)},m=(0,G.jsxs)(Y,{style:{flexShrink:0},children:[(0,G.jsxs)(X,{gap:6,mb:6,px:`xs`,justify:`space-between`,wrap:`nowrap`,children:[(0,G.jsxs)(X,{gap:6,wrap:`nowrap`,children:[(0,G.jsx)(gT,{size:14}),(0,G.jsx)(Z,{size:`xs`,fw:700,tt:`uppercase`,c:`dimmed`,children:`Sur cette page`})]}),a]}),o.length>8&&(0,G.jsx)(Wx,{size:`xs`,mb:6,placeholder:`Filtrer le sommaire…`,value:s,onChange:e=>c(e.currentTarget.value),leftSection:(0,G.jsx)(bT,{size:13}),"aria-label":`Filtrer le sommaire`})]}),h=(0,G.jsxs)(sx,{gap:1,children:[f.map(e=>{let t=e.id===l;return(0,G.jsx)(Ld,{onClick:()=>p(e.id),style:{paddingLeft:W((e.level-d.current)*12+10),paddingTop:W(3),paddingBottom:W(3),minHeight:W(24),display:`flex`,alignItems:`center`,borderLeft:`2px solid ${t?`var(--mantine-primary-color-filled)`:`transparent`}`},children:(0,G.jsx)(Z,{size:`xs`,lineClamp:2,c:t?void 0:`dimmed`,fw:t?600:400,children:e.text})},e.id)}),!f.length&&(0,G.jsx)(Z,{size:`xs`,c:`dimmed`,px:`xs`,py:4,children:`Aucun titre ne correspond.`})]});return i?(0,G.jsxs)(Y,{style:{display:`flex`,flexDirection:`column`,maxHeight:i,minHeight:0},children:[m,(0,G.jsx)(Nd,{type:`hover`,style:{flex:1,minHeight:0},children:h})]}):(0,G.jsxs)(Y,{children:[m,h]})}var OF=`var(--app-shell-header-height, 56px)`,kF=`var(--nodefony-debugbar-height, 0px)`,AF=`var(--mantine-spacing-md, 16px)`,jF=`var(--nf-pageheader-height, 76px)`,MF=`48px`,NF=`60px`,PF=jF,FF=`calc(${jF} + ${AF})`,IF=`calc(100dvh - ${OF} - ${jF} - ${kF} - ${AF} * 3)`,LF=`calc(${jF} + ${AF} * 2)`,RF=IF,zF=`calc(100dvh - ${OF} - ${jF} - ${MF} - ${kF} - ${AF} * 2)`,BF=`calc(100dvh - ${OF} - ${jF} - ${MF} - ${kF} - ${AF} * 4)`,VF=`calc(100dvh - ${NF} - ${kF})`,HF=`calc(100dvh - ${NF} - ${kF} - ${AF} * 2)`;function UF({LiveGraph:e,height:t=560,title:n=`Schéma live`,hint:r}){let[i,a]=(0,U.useState)(!1);return(0,G.jsxs)(Hd,{withBorder:!0,radius:`md`,p:`md`,mt:`xl`,children:[(0,G.jsxs)(X,{justify:`space-between`,mb:`sm`,wrap:`wrap`,children:[(0,G.jsxs)(Y,{style:{maxWidth:560},children:[(0,G.jsx)(Z,{fw:700,size:`md`,children:n}),(0,G.jsx)(Z,{size:`xs`,c:`dimmed`,mt:2,children:r??(0,G.jsxs)(G.Fragment,{children:[`Le graphe respire via le canal `,(0,G.jsx)($g,{children:`nodefony:socket`}),` `,`quand le temps réel est activé. `,(0,G.jsx)(`b`,{children:`OFF`}),` = 0 ticker côté serveur (composant statique). `,(0,G.jsx)(`b`,{children:`ON`}),` = abonnement ref-compté.`]})})]}),(0,G.jsx)(mx,{checked:i,onChange:e=>a(e.currentTarget.checked),label:`Temps réel`,"aria-label":`Activer le temps réel sur le graphe`})]}),(0,G.jsx)(e,{live:i,height:t})]})}var WF=[{name:`architecture`,label:`Architecture`,component:(0,U.lazy)(()=>_(()=>import(`./ArchitectureLiveGraph-DFHtvAox.js`).then(e=>({default:e.ArchitectureLiveGraph})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])))},{name:`protocole`,label:`Protocole`,component:(0,U.lazy)(()=>_(()=>import(`./ProtocoleLiveGraph-BwQBzE9W.js`).then(e=>({default:e.ProtocoleLiveGraph})),__vite__mapDeps([20,1,21,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])))},{name:`fan-out`,label:`Fan-out`,component:(0,U.lazy)(()=>_(()=>import(`./FanOutLiveGraph-C34ysvYA.js`).then(e=>({default:e.FanOutLiveGraph})),__vite__mapDeps([22,1,23,2,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])))},{name:`actions`,label:`Actions`,component:(0,U.lazy)(()=>_(()=>import(`./ActionsLiveGraph-XrF4dBJH.js`).then(e=>({default:e.ActionsLiveGraph})),__vite__mapDeps([24,1,3,25,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])))},{name:`backplane`,label:`Backplane`,component:(0,U.lazy)(()=>_(()=>import(`./BackplaneLiveGraph-BMpvFXRW.js`).then(e=>({default:e.BackplaneLiveGraph})),__vite__mapDeps([26,1,2,27,28,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])))},{name:`sondes`,label:`Sondes`,component:(0,U.lazy)(()=>_(()=>import(`./ProbesLiveGraph-CpZWxaAZ.js`).then(e=>({default:e.ProbesLiveGraph})),__vite__mapDeps([29,1,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])))}],GF=WF.map(e=>e.name);function KF(e){return WF.find(t=>t.name===e)?.component}function qF(e){return e==null||typeof e==`boolean`?``:typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(qF).join(``):(0,U.isValidElement)(e)?qF(e.props.children):``}var JF={scrollMarginTop:LF};function YF(){if(typeof document>`u`||document.getElementById(`nf-doc-styles`))return;let e=document.createElement(`style`);e.id=`nf-doc-styles`,e.textContent=`
83
83
  /* Un schéma se lit D'ABORD EN ENTIER. Mermaid pose \`max-width\` EN LIGNE sur
84
84
  son SVG et le comprime à la largeur de la colonne : un \`flowchart\` s'étire
85
85
  alors en hauteur (mesuré 351 × 1549 px), et il faut défiler pour en voir des