@nodefony/studio 10.0.0-alpha.5 → 10.0.0-alpha.6

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 (119) hide show
  1. package/dist/frontend/assets/{Accordion-CSYj18pO.js → Accordion-C9IINbNl.js} +1 -1
  2. package/dist/frontend/assets/{ActionsLiveGraph-BxaCFGtT.js → ActionsLiveGraph-Do_UHAiS.js} +1 -1
  3. package/dist/frontend/assets/{ApiKeys-C6Qxbzzu.js → ApiKeys-BpeOM6zu.js} +1 -1
  4. package/dist/frontend/assets/{ArchitectureLiveGraph-CJVdJHhW.js → ArchitectureLiveGraph-wJ58pSKK.js} +1 -1
  5. package/dist/frontend/assets/{Audit-ClOeY3RC.js → Audit-C4YFzQRy.js} +1 -1
  6. package/dist/frontend/assets/{BackplaneLiveGraph-DJ_fyOE3.js → BackplaneLiveGraph-ChvZZWdo.js} +1 -1
  7. package/dist/frontend/assets/{Breadcrumbs-BqaXSc5Y.js → Breadcrumbs-4bv1GHWO.js} +1 -1
  8. package/dist/frontend/assets/{BrickStoreChip-CsvDTxGr.js → BrickStoreChip-BtiG99lz.js} +1 -1
  9. package/dist/frontend/assets/{Chat-C_s0sg3L.js → Chat-DjbG7eSv.js} +1 -1
  10. package/dist/frontend/assets/{Chip-BZMdRue_.js → Chip-DUBEzfSp.js} +1 -1
  11. package/dist/frontend/assets/{Cluster-CngAn0c-.js → Cluster-C_TSC_3_.js} +1 -1
  12. package/dist/frontend/assets/{Collapse-ixlBE3dZ.js → Collapse-BdzfO7PU.js} +1 -1
  13. package/dist/frontend/assets/{ConfigPage-B0fLh-C1.js → ConfigPage-Da8SVX0R.js} +1 -1
  14. package/dist/frontend/assets/{ConnectorCard-BOHv-B1U.js → ConnectorCard-DOKtRiVP.js} +1 -1
  15. package/dist/frontend/assets/{Create-BH4qbdxx.js → Create-vyihNeeE.js} +1 -1
  16. package/dist/frontend/assets/{DashboardSupervision-CYG-QND9.js → DashboardSupervision-CxSpNAsK.js} +1 -1
  17. package/dist/frontend/assets/{Database-Dbf6nzzP.js → Database-D0AiIyrs.js} +1 -1
  18. package/dist/frontend/assets/{DbLogo-DWQtpdyh.js → DbLogo-B4TwNH6H.js} +1 -1
  19. package/dist/frontend/assets/{Documentation-VD6RebeR.js → Documentation-CmIZeRoB.js} +1 -1
  20. package/dist/frontend/assets/{FanOutLiveGraph-DBimHnPZ.js → FanOutLiveGraph-JTYLv77d.js} +1 -1
  21. package/dist/frontend/assets/{Firewall-DFKt54zK.js → Firewall-DHvfx-wn.js} +1 -1
  22. package/dist/frontend/assets/{IconAdjustments-C8dasIxn.js → IconAdjustments-B042o6Le.js} +1 -1
  23. package/dist/frontend/assets/{IconAdjustmentsAlt-EcHTHWRg.js → IconAdjustmentsAlt-BmgZVo5M.js} +1 -1
  24. package/dist/frontend/assets/{IconAdjustmentsHorizontal-BapdSASN.js → IconAdjustmentsHorizontal-BIF-EgYG.js} +1 -1
  25. package/dist/frontend/assets/{IconAffiliate-DO3138F0.js → IconAffiliate-PkjISh3s.js} +1 -1
  26. package/dist/frontend/assets/{IconApps-DJrfgTWN.js → IconApps-2nW1Qtkd.js} +1 -1
  27. package/dist/frontend/assets/{IconArchive-BAp8LI1S.js → IconArchive-CyeHZASU.js} +1 -1
  28. package/dist/frontend/assets/{IconArrowDown-CJDoBY_w.js → IconArrowDown-CRJ1x8hy.js} +1 -1
  29. package/dist/frontend/assets/{IconArrowLeft-DmvfJmth.js → IconArrowLeft-7ehg9XYP.js} +1 -1
  30. package/dist/frontend/assets/{IconArrowUp-BhHJpync.js → IconArrowUp-CWUGvcnj.js} +1 -1
  31. package/dist/frontend/assets/IconArrowsExchange-C0a0grm7.js +1 -0
  32. package/dist/frontend/assets/{IconArrowsSplit2-CaES63LD.js → IconArrowsSplit2-D6oEboxp.js} +1 -1
  33. package/dist/frontend/assets/IconBan-Qgw-SmZw.js +1 -0
  34. package/dist/frontend/assets/{IconBook-BrHWMCrm.js → IconBook-CFhZJJ0F.js} +1 -1
  35. package/dist/frontend/assets/{IconCircleCheck-CxgUPqFg.js → IconCircleCheck-vTUIJ1YM.js} +1 -1
  36. package/dist/frontend/assets/{IconCircleDot-DXW19sp6.js → IconCircleDot-Cw7O7RFw.js} +1 -1
  37. package/dist/frontend/assets/IconCircuitResistor-DFVNZSyj.js +1 -0
  38. package/dist/frontend/assets/{IconCode-DpM-J1KJ.js → IconCode-Bp8-3f_0.js} +1 -1
  39. package/dist/frontend/assets/{IconDeviceDesktop-DvusTMKc.js → IconDeviceDesktop-CI8a1zbE.js} +1 -1
  40. package/dist/frontend/assets/{IconDots-BV_CET9W.js → IconDots-DNiAUhiO.js} +1 -1
  41. package/dist/frontend/assets/{IconDownload-a2zrZGyV.js → IconDownload-CTLQCk0R.js} +1 -1
  42. package/dist/frontend/assets/{IconEye-BrtKo3KV.js → IconEye-D80bz7c_.js} +1 -1
  43. package/dist/frontend/assets/{IconFile-DF6vWKtb.js → IconFile-vc7KG4Rf.js} +1 -1
  44. package/dist/frontend/assets/{IconFolder-DyhH98ZZ.js → IconFolder-DGoYanMO.js} +1 -1
  45. package/dist/frontend/assets/{IconGitBranch-CYzRmKaR.js → IconGitBranch-ClVGboyH.js} +1 -1
  46. package/dist/frontend/assets/{IconHeartRateMonitor-B4XbDH_2.js → IconHeartRateMonitor-upfL_t5M.js} +1 -1
  47. package/dist/frontend/assets/{IconHelpCircle-DVhyybMg.js → IconHelpCircle-BoSiqXIY.js} +1 -1
  48. package/dist/frontend/assets/{IconLayoutGrid-nzBpf-EU.js → IconLayoutGrid-B6L6txBS.js} +1 -1
  49. package/dist/frontend/assets/{IconNetwork-NwgQKRan.js → IconNetwork-BakBlNUv.js} +1 -1
  50. package/dist/frontend/assets/{IconPackages-BEEY_HA6.js → IconPackages-DZHwNbfL.js} +1 -1
  51. package/dist/frontend/assets/{IconPencil-E8gbBJZM.js → IconPencil-B-pO6nfU.js} +1 -1
  52. package/dist/frontend/assets/{IconPlayerPause-BV1n07nh.js → IconPlayerPause-CmDKLlIs.js} +1 -1
  53. package/dist/frontend/assets/IconPlayerPlay-CYA71UO2.js +1 -0
  54. package/dist/frontend/assets/IconPlus-Dh1SmA8Q.js +1 -0
  55. package/dist/frontend/assets/{IconPuzzle-BYwvzqem.js → IconPuzzle-CslQPiCN.js} +1 -1
  56. package/dist/frontend/assets/{IconRecycle-B17kLeHU.js → IconRecycle-DABPgUVk.js} +1 -1
  57. package/dist/frontend/assets/{IconSend-qUoPOahB.js → IconSend-MV_iN0wK.js} +1 -1
  58. package/dist/frontend/assets/{IconServer2-ePWwwDY5.js → IconServer2-CRutQdmm.js} +1 -1
  59. package/dist/frontend/assets/{IconShieldOff-Jf5MYTtm.js → IconShieldOff-Iriep3yk.js} +1 -1
  60. package/dist/frontend/assets/{IconSitemap-D6pH6JtB.js → IconSitemap-CqkVZPOt.js} +1 -1
  61. package/dist/frontend/assets/{IconStack2-CzLbifuv.js → IconStack2-DA4YUbMC.js} +1 -1
  62. package/dist/frontend/assets/{IconTerminal2-BSW455uy.js → IconTerminal2-CWTGfiEn.js} +1 -1
  63. package/dist/frontend/assets/{IconUserOff-D-GLuxt0.js → IconUserOff-D99nKohi.js} +1 -1
  64. package/dist/frontend/assets/{IconWorld-DwkkngvZ.js → IconWorld-BRgStXMv.js} +1 -1
  65. package/dist/frontend/assets/{List-VZvMDP2R.js → List-Da8UU6lg.js} +1 -1
  66. package/dist/frontend/assets/{LogVisuals-CPvlReD2.js → LogVisuals-BGUY8-_R.js} +1 -1
  67. package/dist/frontend/assets/{Logs-CZoJR_i7.js → Logs-DZCQkQXw.js} +1 -1
  68. package/dist/frontend/assets/{Migrations-DAtdcfuU.js → Migrations-Bun03S4a.js} +1 -1
  69. package/dist/frontend/assets/{ModuleDetail-CYtdUBpr.js → ModuleDetail-DsZ7jPqr.js} +1 -1
  70. package/dist/frontend/assets/{Modules-CvYA84P3.js → Modules-C7G10G7J.js} +1 -1
  71. package/dist/frontend/assets/{OrmEntity-HMrZUp7W.js → OrmEntity-Drw9PhAO.js} +1 -1
  72. package/dist/frontend/assets/{OrmOverview-XWo2bGLc.js → OrmOverview-BzTzmCFr.js} +1 -1
  73. package/dist/frontend/assets/{OrmWorker-BWuECAHH.js → OrmWorker-D6m8aLoC.js} +1 -1
  74. package/dist/frontend/assets/{Playground-Be4rftVm.js → Playground-ku4WxRVF.js} +1 -1
  75. package/dist/frontend/assets/{ProbesLiveGraph-CmJtLn7n.js → ProbesLiveGraph-LGl0Vt3c.js} +1 -1
  76. package/dist/frontend/assets/{Profile-avZg2CiQ.js → Profile-CIC1v8ye.js} +2 -2
  77. package/dist/frontend/assets/{ProfileFields-C9mG7djZ.js → ProfileFields-BA4k5xVH.js} +1 -1
  78. package/dist/frontend/assets/{Progress-C-uVBbTz.js → Progress-ctKVb0y-.js} +1 -1
  79. package/dist/frontend/assets/{ProtocoleLiveGraph-3KTHkxth.js → ProtocoleLiveGraph-Ct7VbuWa.js} +1 -1
  80. package/dist/frontend/assets/{RealtimeConsole-W_kNUVvD.js → RealtimeConsole-CUwlc-WS.js} +1 -1
  81. package/dist/frontend/assets/{RingProgress-BcurYYhC.js → RingProgress-CHMtGKds.js} +1 -1
  82. package/dist/frontend/assets/{Roadmap-UmBGuO58.js → Roadmap-yZY1WJHu.js} +1 -1
  83. package/dist/frontend/assets/{RoleSwitch-DyhIWh9u.js → RoleSwitch-DzEHDHLA.js} +1 -1
  84. package/dist/frontend/assets/{Roles-Cq3RNzS2.js → Roles-hy1gMeEh.js} +1 -1
  85. package/dist/frontend/assets/{RoutesView-CLHQqjH2.js → RoutesView-E8ca6Zft.js} +1 -1
  86. package/dist/frontend/assets/{Runtime-DcWHlgx8.js → Runtime-DhpEGVfL.js} +1 -1
  87. package/dist/frontend/assets/{Sessions-KXXZDgao.js → Sessions-CXTgHqDM.js} +1 -1
  88. package/dist/frontend/assets/{Skeleton-CYTwt2iv.js → Skeleton-DybgHU9E.js} +1 -1
  89. package/dist/frontend/assets/{Slider-B3EsNyHw.js → Slider-BoAxGS1L.js} +1 -1
  90. package/dist/frontend/assets/{StoresView-Bwaz45IX.js → StoresView-DoWAf-jh.js} +1 -1
  91. package/dist/frontend/assets/{System-B2_HCksG.js → System-DDEZt9W5.js} +1 -1
  92. package/dist/frontend/assets/{TagsInput-CF7wjb1h.js → TagsInput-CvH7XFRB.js} +1 -1
  93. package/dist/frontend/assets/{Textarea-ajvDDbkh.js → Textarea-C4dBiWye.js} +1 -1
  94. package/dist/frontend/assets/{TraceView-Jvn87VtQ.js → TraceView-D8fl7TGg.js} +1 -1
  95. package/dist/frontend/assets/{Twin-BXsNqXZ8.js → Twin-B9_yDKs5.js} +1 -1
  96. package/dist/frontend/assets/{UserProfile-C9KCsAyr.js → UserProfile-y8I6wSTh.js} +1 -1
  97. package/dist/frontend/assets/{Users-CFJL0HHJ.js → Users-DLPi2ne7.js} +1 -1
  98. package/dist/frontend/assets/{Webhooks-CJpG8oqL.js → Webhooks-L-17Yi5A.js} +1 -1
  99. package/dist/frontend/assets/{Workspace-Te56IBtl.js → Workspace-BbU7y0F1.js} +1 -1
  100. package/dist/frontend/assets/{apiKeysModel-BWOmAQaT.js → apiKeysModel-C53i4AfO.js} +1 -1
  101. package/dist/frontend/assets/{auditFormat-CKkFJZWr.js → auditFormat-lxo0qiYp.js} +1 -1
  102. package/dist/frontend/assets/{auditModel-DHrsrlmP.js → auditModel-CxUfDlvX.js} +1 -1
  103. package/dist/frontend/assets/{configModel-DMBA1qQ5.js → configModel-vPcx16aO.js} +1 -1
  104. package/dist/frontend/assets/{eventFlow-CGihfe42.js → eventFlow-Dtt06FYi.js} +1 -1
  105. package/dist/frontend/assets/{hooks-uo6JdPzV.js → hooks-C4XxBzBx.js} +1 -1
  106. package/dist/frontend/assets/{index-BwPukNhM.js → index-wfxUl83u.js} +3 -3
  107. package/dist/frontend/assets/{profileVisuals-D9M9BpAk.js → profileVisuals-BE_m4Ey1.js} +1 -1
  108. package/dist/frontend/assets/{stores-DnaaQoge.js → stores-DIccV-P5.js} +1 -1
  109. package/dist/frontend/assets/{ui-D72MNfu0.js → ui-Dy8y0zPl.js} +2 -2
  110. package/dist/frontend/assets/{useBlockSource-Nwf0PRrs.js → useBlockSource-DBTXt3Bd.js} +1 -1
  111. package/dist/frontend/assets/{useSocketLiveData-CNS1085V.js → useSocketLiveData-n5suTFQT.js} +1 -1
  112. package/dist/frontend/assets/{usersFormat-Cj9R_PHR.js → usersFormat-C33NWJaO.js} +1 -1
  113. package/dist/frontend/index.html +11 -11
  114. package/package.json +11 -11
  115. package/dist/frontend/assets/IconArrowsExchange-CqUqlC4M.js +0 -1
  116. package/dist/frontend/assets/IconBan-DG_QSYu5.js +0 -1
  117. package/dist/frontend/assets/IconCircuitResistor-C1I4I0s-.js +0 -1
  118. package/dist/frontend/assets/IconPlayerPlay-Bnjmz2tQ.js +0 -1
  119. package/dist/frontend/assets/IconPlus-BS5_mDd8.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ArchitectureLiveGraph-CJVdJHhW.js","assets/src-Dvwdl2PF.js","assets/IconCircuitResistor-C1I4I0s-.js","assets/IconDeviceDesktop-DvusTMKc.js","assets/IconStack2-CzLbifuv.js","assets/index-BwPukNhM.js","assets/Slider-B3EsNyHw.js","assets/Collapse-ixlBE3dZ.js","assets/stores-DnaaQoge.js","assets/hooks-uo6JdPzV.js","assets/preload-helper-DfDauRb0.js","assets/IconAdjustmentsAlt-EcHTHWRg.js","assets/IconAffiliate-DO3138F0.js","assets/IconNetwork-NwgQKRan.js","assets/IconArchive-BAp8LI1S.js","assets/IconArrowsExchange-CqUqlC4M.js","assets/pageQuery-yJh2-jSv.js","assets/index-22LA2xX4.css","assets/useSocketLiveData-CNS1085V.js","assets/realtimeHealth-CEJDxl45.js","assets/ProtocoleLiveGraph-3KTHkxth.js","assets/IconArrowDown-CJDoBY_w.js","assets/FanOutLiveGraph-DBimHnPZ.js","assets/IconArrowsSplit2-CaES63LD.js","assets/ActionsLiveGraph-BxaCFGtT.js","assets/IconPlayerPlay-Bnjmz2tQ.js","assets/BackplaneLiveGraph-DJ_fyOE3.js","assets/IconPuzzle-BYwvzqem.js","assets/IconServer2-ePWwwDY5.js","assets/ProbesLiveGraph-CmJtLn7n.js","assets/mermaid.core-bi0KWxzD.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-wJ58pSKK.js","assets/src-Dvwdl2PF.js","assets/IconCircuitResistor-DFVNZSyj.js","assets/IconDeviceDesktop-CI8a1zbE.js","assets/IconStack2-DA4YUbMC.js","assets/index-wfxUl83u.js","assets/Slider-BoAxGS1L.js","assets/Collapse-BdzfO7PU.js","assets/stores-DIccV-P5.js","assets/hooks-C4XxBzBx.js","assets/preload-helper-DfDauRb0.js","assets/IconAdjustmentsAlt-BmgZVo5M.js","assets/IconAffiliate-PkjISh3s.js","assets/IconNetwork-BakBlNUv.js","assets/IconArchive-CyeHZASU.js","assets/IconArrowsExchange-C0a0grm7.js","assets/pageQuery-yJh2-jSv.js","assets/index-22LA2xX4.css","assets/useSocketLiveData-n5suTFQT.js","assets/realtimeHealth-CEJDxl45.js","assets/ProtocoleLiveGraph-Ct7VbuWa.js","assets/IconArrowDown-CRJ1x8hy.js","assets/FanOutLiveGraph-JTYLv77d.js","assets/IconArrowsSplit2-D6oEboxp.js","assets/ActionsLiveGraph-Do_UHAiS.js","assets/IconPlayerPlay-CYA71UO2.js","assets/BackplaneLiveGraph-ChvZZWdo.js","assets/IconPuzzle-CslQPiCN.js","assets/IconServer2-CRutQdmm.js","assets/ProbesLiveGraph-LGl0Vt3c.js","assets/mermaid.core-bi0KWxzD.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};
@@ -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=DN(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}NN.peek=PN;function NN(e){return e.value||``}function PN(){return`<`}FN.peek=IN;function FN(e,t,n,r){let i=wN(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 IN(){return`!`}LN.peek=RN;function LN(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 RN(){return`!`}zN.peek=BN;function zN(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 BN(){return"`"}function VN(e,t){let n=mD(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))}HN.peek=UN;function HN(e,t,n,r){let i=wN(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(VN(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 UN(e,t,n){return VN(e,n)?`<`:`[`}WN.peek=GN;function WN(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 GN(){return`[`}function KN(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 qN(e){let t=KN(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 JN(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function YN(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 XN(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?JN(n):KN(n),s=e.ordered?o===`.`?`)`:`.`:qN(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),YN(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 ZN(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 QN(e,t,n,r){let i=ZN(n),a=n.bulletCurrent||KN(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 $N(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var eP=cj([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function tP(e,t,n,r){return(e.children.some(function(e){return eP(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function nP(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}rP.peek=iP;function rP(e,t,n,r){let i=nP(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=ON(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=DN(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=ON(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+DN(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function iP(e,t,n){return n.options.strong||`*`}function aP(e,t,n,r){return n.safe(e.value,r)}function oP(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 sP(e,t,n){let r=(YN(n)+(n.options.ruleSpaces?` `:``)).repeat(oP(n));return n.options.ruleSpaces?r.slice(0,-1):r}var cP={blockquote:mN,break:vN,code:SN,definition:TN,emphasis:kN,hardBreak:vN,heading:MN,html:NN,image:FN,imageReference:LN,inlineCode:zN,link:HN,linkReference:WN,list:XN,listItem:QN,paragraph:$N,root:tP,strong:rP,text:aP,thematicBreak:sP};function lP(){return{enter:{table:uP,tableData:mP,tableHeader:mP,tableRow:fP},exit:{codeText:hP,table:dP,tableData:pP,tableHeader:pP,tableRow:pP}}}function uP(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 dP(e){this.exit(e),this.data.inTable=void 0}function fP(e){this.enter({type:`tableRow`,children:[]},e)}function pP(e){this.exit(e)}function mP(e){this.enter({type:`tableCell`,children:[]},e)}function hP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,gP));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function gP(e,t){return t===`|`?t:e}function _P(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 dN(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=cP.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function vP(){return{exit:{taskListCheckValueChecked:bP,taskListCheckValueUnchecked:bP,paragraph:xP}}}function yP(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:SP}}}function bP(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function xP(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 SP(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=cP.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 CP(){return[kM(),$M(),iN(),lP(),vP()]}function wP(e){return{extensions:[AM(),eN(e),aN(),_P(e),yP()]}}var TP={tokenize:zP,partial:!0},EP={tokenize:BP,partial:!0},DP={tokenize:VP,partial:!0},OP={tokenize:HP,partial:!0},kP={tokenize:UP,partial:!0},AP={name:`wwwAutolink`,tokenize:LP,previous:WP},jP={name:`protocolAutolink`,tokenize:RP,previous:GP},MP={name:`emailAutolink`,tokenize:IP,previous:KP},NP={};function PP(){return{text:NP}}for(var FP=48;FP<123;)NP[FP]=MP,FP++,FP===58?FP=65:FP===91&&(FP=97);NP[43]=MP,NP[45]=MP,NP[46]=MP,NP[95]=MP,NP[72]=[MP,jP],NP[104]=[MP,jP],NP[87]=[MP,AP],NP[119]=[MP,AP];function IP(e,t,n){let r=this,i,a;return o;function o(t){return!qP(t)||!KP.call(r,r.previous)||JP(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return qP(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(kP,u,l)(t):t===45||t===95||kD(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&OD(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function LP(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!WP.call(r,r.previous)||JP(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(TP,e.attempt(EP,e.attempt(DP,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function RP(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&GP.call(r,r.previous)&&!JP(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(OD(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||jD(t)||ID(t)||zD(t)||RD(t)?n(t):e.attempt(EP,e.attempt(DP,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function zP(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 BP(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(OP,c,s)(t):t===null||ID(t)||zD(t)||t!==45&&RD(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 VP(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(OP,t,a)(o):o===null||ID(o)||zD(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function HP(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||ID(o)||zD(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||ID(e)||zD(e)?t(e):r(e)}function a(e){return OD(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):OD(t)?(e.consume(t),o):n(t)}}function UP(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return kD(e)?n(e):t(e)}}function WP(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ID(e)}function GP(e){return!OD(e)}function KP(e){return!(e===47||qP(e))}function qP(e){return e===43||e===45||e===46||e===95||kD(e)}function JP(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 YP={tokenize:rF,partial:!0};function XP(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:eF,continuation:{tokenize:tF},exit:nF}},text:{91:{name:`gfmFootnoteCall`,tokenize:$P},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:ZP,resolveTo:QP}}}}function ZP(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=DD(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 QP(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 $P(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||ID(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(DD(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return ID(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 eF(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||ID(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=DD(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return ID(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),HD(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function tF(e,t,n){return e.check(rO,t,e.attempt(YP,t,n))}function nF(e){e.exit(`gfmFootnoteDefinition`)}function rF(e,t,n){let r=this;return HD(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 iF(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&&bD(o,o.length,0,XD(s,e.slice(r+1,n),t)),bD(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),bD(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=YD(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=YD(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var aF=class{constructor(){this.map=[]}add(e,t,n){oF(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 oF(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 sF(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 cF(){return{flow:{null:{name:`table`,tokenize:lF,resolveAll:uF}}}}function lF(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):FD(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):LD(t)?HD(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||ID(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,LD(t)?HD(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 LD(t)?HD(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||FD(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 LD(t)?HD(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||FD(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||FD(n)?(e.exit(`tableRow`),t(n)):LD(n)?HD(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||ID(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 uF(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 aF;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(fF(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=dF(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=dF(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=dF(f,t,o,i,n,d)):(o[0]=o[1],d=dF(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&fF(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=sF(t.events,n))}return e}function dF(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},pF(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=pF(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=pF(t.events,n[2]),a=pF(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({},pF(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function fF(e,t,n,r,i){let a=[],o=pF(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 pF(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var mF={name:`tasklistCheck`,tokenize:gF};function hF(){return{text:{91:mF}}}function gF(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 ID(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 FD(r)?t(r):LD(r)?e.check({tokenize:_F},t,n)(r):n(r)}}function _F(e,t,n){return HD(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function vF(e){return CD([PP(),XP(),iF(e),cF(),hF()])}var yF={};function bF(e){let t=this,n=e||yF,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(vF(n)),a.push(CP()),o.push(wP(n))}function xF(e){return e.toLowerCase().replace(/[︀-️]/g,``).replace(/[^\p{L}\p{N}\p{M}\s-]/gu,``).replace(/\s/g,`-`)}function SF(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:xF(s)})}return r}function CF({markdown:e,scrollRootRef:t,minLevel:n=2,maxLevel:r=3,maxHeight:i,actions:a}){let o=(0,U.useMemo)(()=>SF(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)(fT,{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)(gT,{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 wF=`var(--app-shell-header-height, 56px)`,TF=`var(--nodefony-debugbar-height, 0px)`,EF=`var(--mantine-spacing-md, 16px)`,DF=`var(--nf-pageheader-height, 76px)`,OF=`48px`,kF=`60px`,AF=DF,jF=`calc(${DF} + ${EF})`,MF=`calc(100dvh - ${wF} - ${DF} - ${TF} - ${EF} * 3)`,NF=`calc(${DF} + ${EF} * 2)`,PF=MF,FF=`calc(100dvh - ${wF} - ${DF} - ${OF} - ${TF} - ${EF} * 2)`,IF=`calc(100dvh - ${wF} - ${DF} - ${OF} - ${TF} - ${EF} * 4)`,LF=`calc(100dvh - ${kF} - ${TF})`,RF=`calc(100dvh - ${kF} - ${TF} - ${EF} * 2)`;function zF({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 BF=[{name:`architecture`,label:`Architecture`,component:(0,U.lazy)(()=>_(()=>import(`./ArchitectureLiveGraph-CJVdJHhW.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-3KTHkxth.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-DBimHnPZ.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-BxaCFGtT.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-DJ_fyOE3.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-CmJtLn7n.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])))}],VF=BF.map(e=>e.name);function HF(e){return BF.find(t=>t.name===e)?.component}function UF(e){return e==null||typeof e==`boolean`?``:typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(UF).join(``):(0,U.isValidElement)(e)?UF(e.props.children):``}var WF={scrollMarginTop:NF};function GF(){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:xF(s)})}return r}function CF({markdown:e,scrollRootRef:t,minLevel:n=2,maxLevel:r=3,maxHeight:i,actions:a}){let o=(0,U.useMemo)(()=>SF(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)(fT,{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)(gT,{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 wF=`var(--app-shell-header-height, 56px)`,TF=`var(--nodefony-debugbar-height, 0px)`,EF=`var(--mantine-spacing-md, 16px)`,DF=`var(--nf-pageheader-height, 76px)`,OF=`48px`,kF=`60px`,AF=DF,jF=`calc(${DF} + ${EF})`,MF=`calc(100dvh - ${wF} - ${DF} - ${TF} - ${EF} * 3)`,NF=`calc(${DF} + ${EF} * 2)`,PF=MF,FF=`calc(100dvh - ${wF} - ${DF} - ${OF} - ${TF} - ${EF} * 2)`,IF=`calc(100dvh - ${wF} - ${DF} - ${OF} - ${TF} - ${EF} * 4)`,LF=`calc(100dvh - ${kF} - ${TF})`,RF=`calc(100dvh - ${kF} - ${TF} - ${EF} * 2)`;function zF({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 BF=[{name:`architecture`,label:`Architecture`,component:(0,U.lazy)(()=>_(()=>import(`./ArchitectureLiveGraph-wJ58pSKK.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-Ct7VbuWa.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-JTYLv77d.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-Do_UHAiS.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-ChvZZWdo.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-LGl0Vt3c.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])))}],VF=BF.map(e=>e.name);function HF(e){return BF.find(t=>t.name===e)?.component}function UF(e){return e==null||typeof e==`boolean`?``:typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(UF).join(``):(0,U.isValidElement)(e)?UF(e.props.children):``}var WF={scrollMarginTop:NF};function GF(){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