@scalar/api-reference-react 0.1.94 → 0.1.95

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 (197) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{Add-ngyZgYXx-DoqFEwg6-DjUBAVNH.js → Add-ngyZgYXx-DoqFEwg6-DKmBaxNJ.js} +1 -1
  3. package/dist/{Add-ngyZgYXx-DoqFEwg6-ZGEzlPqD.cjs → Add-ngyZgYXx-DoqFEwg6-yif5dL_B.cjs} +1 -1
  4. package/dist/{ArrowLeft-aY17W2aS-Cn6xpEuC-Cc9Fegva.js → ArrowLeft-aY17W2aS-Cn6xpEuC-BrS0Ak6N.js} +1 -1
  5. package/dist/{ArrowLeft-aY17W2aS-Cn6xpEuC-B0fLd4ou.cjs → ArrowLeft-aY17W2aS-Cn6xpEuC-cty4M3TS.cjs} +1 -1
  6. package/dist/{ArrowRight-DEMtdoE7-DTUgvJ5B-C3jgZ2mx.cjs → ArrowRight-DEMtdoE7-DTUgvJ5B-CGJOQw_B.cjs} +1 -1
  7. package/dist/{ArrowRight-DEMtdoE7-DTUgvJ5B-BEzcUXLL.js → ArrowRight-DEMtdoE7-DTUgvJ5B-O7PfhoS2.js} +1 -1
  8. package/dist/{Background-DcRhSHgf-D9bLWDd3-BlJR5pFl.cjs → Background-DcRhSHgf-D9bLWDd3-BWBX8Ffk.cjs} +1 -1
  9. package/dist/{Background-DcRhSHgf-D9bLWDd3-CSdEUEM5.js → Background-DcRhSHgf-D9bLWDd3-C35bwOl0.js} +1 -1
  10. package/dist/{Brackets-4I8OKomf-DWpQfvXD-D_ArnDht.js → Brackets-4I8OKomf-DWpQfvXD-BxtrFX44.js} +1 -1
  11. package/dist/{Brackets-4I8OKomf-DWpQfvXD-Bx88HlCK.cjs → Brackets-4I8OKomf-DWpQfvXD-C1hLnKjc.cjs} +1 -1
  12. package/dist/{Branch-CXwj8YuG-CvPS_xP0-hSPFSk5e.js → Branch-CXwj8YuG-CvPS_xP0-D5DmcPUF.js} +1 -1
  13. package/dist/{Branch-CXwj8YuG-CvPS_xP0-Nn6ixImn.cjs → Branch-CXwj8YuG-CvPS_xP0-K-7rrKxt.cjs} +1 -1
  14. package/dist/{CallToAction-EyQKkvbg-P3zHezrK-BCc7UKTH.cjs → CallToAction-EyQKkvbg-P3zHezrK-Qj06sroT.cjs} +1 -1
  15. package/dist/{CallToAction-EyQKkvbg-P3zHezrK-DFlln60i.js → CallToAction-EyQKkvbg-P3zHezrK-exoHgrlz.js} +1 -1
  16. package/dist/{Checkmark-De7nq6cG-I65LWhZ2-DLrZUxgX.js → Checkmark-De7nq6cG-I65LWhZ2-BcJfikez.js} +1 -1
  17. package/dist/{Checkmark-De7nq6cG-I65LWhZ2-4ZtCtn9V.cjs → Checkmark-De7nq6cG-I65LWhZ2-C-c1bVB_.cjs} +1 -1
  18. package/dist/{ChevronDown-Co7EAKAv-Dw2u19C4-l_0Wx539.js → ChevronDown-Co7EAKAv-Dw2u19C4-D-KEq8w-.js} +1 -1
  19. package/dist/{ChevronDown-Co7EAKAv-Dw2u19C4-Blc0jOVq.cjs → ChevronDown-Co7EAKAv-Dw2u19C4-Dtc5xG8-.cjs} +1 -1
  20. package/dist/{ChevronLeft-DYt0idAu-4ItgPaSH-srHKOYLZ.cjs → ChevronLeft-DYt0idAu-4ItgPaSH-BE3bdIit.cjs} +1 -1
  21. package/dist/{ChevronLeft-DYt0idAu-4ItgPaSH-Dka8ql8q.js → ChevronLeft-DYt0idAu-4ItgPaSH-Be_miaLC.js} +1 -1
  22. package/dist/{ChevronRight-ylxToVWl-DMyZ2Rmi-D0XCiXTu.cjs → ChevronRight-ylxToVWl-DMyZ2Rmi-CrUUceyF.cjs} +1 -1
  23. package/dist/{ChevronRight-ylxToVWl-DMyZ2Rmi-3fvFej27.js → ChevronRight-ylxToVWl-DMyZ2Rmi-zJxL3rms.js} +1 -1
  24. package/dist/{ChevronUp-xAnukIfj-DYWzMh-o-CeyOiIUv.js → ChevronUp-xAnukIfj-DYWzMh-o-BoChOVQ0.js} +1 -1
  25. package/dist/{ChevronUp-xAnukIfj-DYWzMh-o--A8nOXf6.cjs → ChevronUp-xAnukIfj-DYWzMh-o-CTJMOu1O.cjs} +1 -1
  26. package/dist/{Clipboard-CU_KxGEv-DuOPrhqK-DeyjlaqF.js → Clipboard-CU_KxGEv-DuOPrhqK-CNAhPJKG.js} +1 -1
  27. package/dist/{Clipboard-CU_KxGEv-DuOPrhqK-BlVHzfN-.cjs → Clipboard-CU_KxGEv-DuOPrhqK-DBIus9Pu.cjs} +1 -1
  28. package/dist/{Close-CW3z42qZ-C-nzSJmV-CNmR2diN.js → Close-CW3z42qZ-C-nzSJmV-CRm4TTEM.js} +1 -1
  29. package/dist/{Close-CW3z42qZ-C-nzSJmV-B3nugTI1.cjs → Close-CW3z42qZ-C-nzSJmV-V5HNjhZN.cjs} +1 -1
  30. package/dist/{CodeFolder-Cv_igzJE-POyxhw77-WDqPvHXm.js → CodeFolder-Cv_igzJE-POyxhw77-66La7EZm.js} +1 -1
  31. package/dist/{CodeFolder-Cv_igzJE-POyxhw77-DIXHbvTy.cjs → CodeFolder-Cv_igzJE-POyxhw77-BY7Uhn6H.cjs} +1 -1
  32. package/dist/{Cookie-CEHvXpqB-Bu1-nQ4L-8HvfoVZA.js → Cookie-CEHvXpqB-Bu1-nQ4L-BOnYxG1t.js} +1 -1
  33. package/dist/{Cookie-CEHvXpqB-Bu1-nQ4L-BimC2eKN.cjs → Cookie-CEHvXpqB-Bu1-nQ4L-DNIbxFnY.cjs} +1 -1
  34. package/dist/{DarkMode-CBsV8Q_I-C-P5vpQi-DdhlhWZa.cjs → DarkMode-CBsV8Q_I-C-P5vpQi-XkJXpl4p.cjs} +1 -1
  35. package/dist/{DarkMode-CBsV8Q_I-C-P5vpQi-PWa2GcYU.js → DarkMode-CBsV8Q_I-C-P5vpQi-wBLUu16A.js} +1 -1
  36. package/dist/{Trash-BpA3zWPD-RGj_5vHb-CATs5i-S.cjs → Delete-BCZmxrDD-RGj_5vHb-Coxkn7ga.cjs} +1 -1
  37. package/dist/{Delete-BCZmxrDD-RGj_5vHb-DfMaZHPz.js → Delete-BCZmxrDD-RGj_5vHb-Dw08Q63w.js} +1 -1
  38. package/dist/{Discord-BHYOFBB2-BKiLx0Gp-CIW7Vg6j.cjs → Discord-BHYOFBB2-BKiLx0Gp-C5HEpgPq.cjs} +1 -1
  39. package/dist/{Discord-BHYOFBB2-BKiLx0Gp-BXTEN3Qf.js → Discord-BHYOFBB2-BKiLx0Gp-CYPUPlw6.js} +1 -1
  40. package/dist/{DocsPage-rh2xwxKN-DGM8iLwe-DA9SrV97.js → DocsPage-rh2xwxKN-DGM8iLwe-DWt79pjU.js} +1 -1
  41. package/dist/{DocsPage-rh2xwxKN-DGM8iLwe-BTu1bmpF.cjs → DocsPage-rh2xwxKN-DGM8iLwe-O8NQhj9x.cjs} +1 -1
  42. package/dist/{Duplicate-BPlzNpcf-hfR5nT2J-yszIPq6k.cjs → Duplicate-BPlzNpcf-hfR5nT2J-DurYWkgR.cjs} +1 -1
  43. package/dist/{Duplicate-BPlzNpcf-hfR5nT2J-cfEE1QEo.js → Duplicate-BPlzNpcf-hfR5nT2J-JUPnBiFd.js} +1 -1
  44. package/dist/{Edit-Br04RNYb-DB3yOiz_-DSJ4U0S9.cjs → Edit-Br04RNYb-DB3yOiz_-9tybt6P_.cjs} +1 -1
  45. package/dist/{Edit-Br04RNYb-DB3yOiz_-BoLu7htR.js → Edit-Br04RNYb-DB3yOiz_-BckeizzV.js} +1 -1
  46. package/dist/{Ellipses-Bo_X36Hx-D4ayuQAy-CkqBtxVx.js → Ellipses-Bo_X36Hx-D4ayuQAy-BBeC5dFk.js} +1 -1
  47. package/dist/{Ellipses-Bo_X36Hx-D4ayuQAy-DjpfGTei.cjs → Ellipses-Bo_X36Hx-D4ayuQAy-DAADvEZU.cjs} +1 -1
  48. package/dist/{Error-B_RGtWJI-D-cqIU7Z-B8N-HikP.cjs → Error-B_RGtWJI-D-cqIU7Z-BpncbKLh.cjs} +1 -1
  49. package/dist/{Error-B_RGtWJI-D-cqIU7Z-CqraX7mA.js → Error-B_RGtWJI-D-cqIU7Z-UOVf4eu3.js} +1 -1
  50. package/dist/{ExternalLink-DK8L-EH7-CnaH9txm-DLv4bVMD.cjs → ExternalLink-DK8L-EH7-CnaH9txm-BeHH9bJv.cjs} +1 -1
  51. package/dist/{ExternalLink-DK8L-EH7-CnaH9txm--x1-_9fq.js → ExternalLink-DK8L-EH7-CnaH9txm-CRgwVPu8.js} +1 -1
  52. package/dist/{FilterList-CsAcE9em-BEVsn3KR-B1pFDFq0.js → FilterList-CsAcE9em-BEVsn3KR-Tetk_2GQ.js} +1 -1
  53. package/dist/{FilterList-CsAcE9em-BEVsn3KR-GsM2qe3I.cjs → FilterList-CsAcE9em-BEVsn3KR-WV00MdzA.cjs} +1 -1
  54. package/dist/{Folder-Cdcj4evh-BjFbVB1N-CigfbVTG.cjs → Folder-Cdcj4evh-BjFbVB1N-CC-xxwjO.cjs} +1 -1
  55. package/dist/{Folder-Cdcj4evh-BjFbVB1N-CFyidI0I.js → Folder-Cdcj4evh-BjFbVB1N-DNnS7XbJ.js} +1 -1
  56. package/dist/{GitHub-NdE6Zs9k-CxmMd7Ky-qhijB2qm.cjs → GitHub-NdE6Zs9k-CxmMd7Ky-B94RzU4w.cjs} +1 -1
  57. package/dist/{GitHub-NdE6Zs9k-CxmMd7Ky-CclcJmUw.js → GitHub-NdE6Zs9k-CxmMd7Ky-CJoE3Uw4.js} +1 -1
  58. package/dist/{Hide-DBLY4PPo-BcbT7C9e-DlnvtSjG.js → Hide-DBLY4PPo-BcbT7C9e-CY5QRaMN.js} +1 -1
  59. package/dist/{Hide-DBLY4PPo-BcbT7C9e-DG6hW_9p.cjs → Hide-DBLY4PPo-BcbT7C9e-D5B_JpF2.cjs} +1 -1
  60. package/dist/{History-D9nmhNIn-Bg9VGGKO-DWOSqeqz.js → History-D9nmhNIn-Bg9VGGKO-D-Ujj55T.js} +1 -1
  61. package/dist/{History-D9nmhNIn-Bg9VGGKO-K-N4bqDj.cjs → History-D9nmhNIn-Bg9VGGKO-DuEGmM6z.cjs} +1 -1
  62. package/dist/{JsonObject-hGdHUQ4M-JVzShx7P-CJr7UVY4.js → JsonObject-hGdHUQ4M-JVzShx7P-Bc4PrN4B.js} +1 -1
  63. package/dist/{JsonObject-hGdHUQ4M-JVzShx7P-BOxG4tdY.cjs → JsonObject-hGdHUQ4M-JVzShx7P-CC26Mzu_.cjs} +1 -1
  64. package/dist/{Key-CWXJqX28-CVsMvoNb-Bb2VsYUu.cjs → Key-CWXJqX28-CVsMvoNb-4g7M6y8c.cjs} +1 -1
  65. package/dist/{Key-CWXJqX28-CVsMvoNb-Vp9tOEDP.js → Key-CWXJqX28-CVsMvoNb-CF2O8zMd.js} +1 -1
  66. package/dist/{Leave-K1J3uwoG-6WpXSkaE-BFgqvGHc.js → Leave-K1J3uwoG-6WpXSkaE-CTxe8Olj.js} +1 -1
  67. package/dist/{Leave-K1J3uwoG-6WpXSkaE-CC5ciTMc.cjs → Leave-K1J3uwoG-6WpXSkaE-DZVjYmY8.cjs} +1 -1
  68. package/dist/{LightDarkModeToggle-BkvMimDa-CCZGR9vi-CsDoT-mq.cjs → LightDarkModeToggle-BkvMimDa-CCZGR9vi-CNoX-ccr.cjs} +1 -1
  69. package/dist/{LightDarkModeToggle-BkvMimDa-CCZGR9vi-DeQOrkLl.js → LightDarkModeToggle-BkvMimDa-CCZGR9vi-D85JbLul.js} +1 -1
  70. package/dist/{LightMode-Btz6vyT_-D8lhPTNZ-DqgXBs2q.js → LightMode-Btz6vyT_-D8lhPTNZ-B06-31Um.js} +1 -1
  71. package/dist/{LightMode-Btz6vyT_-D8lhPTNZ-BzIFQsKx.cjs → LightMode-Btz6vyT_-D8lhPTNZ-BySjTy8N.cjs} +1 -1
  72. package/dist/{Link-Bzuc__Nc-Bopu3OCd-CClLHpPo.js → Link-Bzuc__Nc-Bopu3OCd-C2tHBsK7.js} +1 -1
  73. package/dist/{Link-Bzuc__Nc-Bopu3OCd-BetrBYh5.cjs → Link-Bzuc__Nc-Bopu3OCd-XLbuueJu.cjs} +1 -1
  74. package/dist/{Lock-xhiH1mKz-j1VwEotb-CeLbf2NI.js → Lock-xhiH1mKz-j1VwEotb-BHwouqrZ.js} +1 -1
  75. package/dist/{Lock-xhiH1mKz-j1VwEotb-D-2jOQX_.cjs → Lock-xhiH1mKz-j1VwEotb-BI3ANU5M.cjs} +1 -1
  76. package/dist/{Logo-mtzeKD8M-_nfcd_3S-BQlwRRfv.js → Logo-mtzeKD8M-_nfcd_3S-BroW7v_O.js} +1 -1
  77. package/dist/{Logo-mtzeKD8M-_nfcd_3S-DKozTg72.cjs → Logo-mtzeKD8M-_nfcd_3S-DhijGuGI.cjs} +1 -1
  78. package/dist/{LogoAPI-CaU5E6FK-BIDyFPeR-XXWOHg63.cjs → LogoAPI-CaU5E6FK-BIDyFPeR-C1K0awGU.cjs} +1 -1
  79. package/dist/{LogoAPI-CaU5E6FK-BIDyFPeR-qR1ynjNI.js → LogoAPI-CaU5E6FK-BIDyFPeR-CivKR33E.js} +1 -1
  80. package/dist/{LogoClient-DdC-t_7P-BJVLusot-DrmNY8Oq.cjs → LogoClient-DdC-t_7P-BJVLusot-BbzhWdud.cjs} +1 -1
  81. package/dist/{LogoClient-DdC-t_7P-BJVLusot-CgjhqTuO.js → LogoClient-DdC-t_7P-BJVLusot-C6G2G1Hh.js} +1 -1
  82. package/dist/{LogoMarket-DwlApcab-BpTQzqp5-gIh3B_k2.js → LogoMarket-DwlApcab-BpTQzqp5-DwGbTPjA.js} +1 -1
  83. package/dist/{LogoMarket-DwlApcab-BpTQzqp5-DguUEEvr.cjs → LogoMarket-DwlApcab-BpTQzqp5-wUmeTEIi.cjs} +1 -1
  84. package/dist/{LogoSwagger-CH60H5qW--whYwExv-DiFSqYBd.js → LogoSwagger-CH60H5qW--whYwExv-CKBj_8Pr.js} +1 -1
  85. package/dist/{LogoSwagger-CH60H5qW--whYwExv-BlZBFjum.cjs → LogoSwagger-CH60H5qW--whYwExv-CbLQUtW8.cjs} +1 -1
  86. package/dist/{Magic-Dsi9_bEc-BSsgSxL9-CtEuWTsY.cjs → Magic-Dsi9_bEc-BSsgSxL9-BDMA7rp5.cjs} +1 -1
  87. package/dist/{Magic-Dsi9_bEc-BSsgSxL9-COzTAyl2.js → Magic-Dsi9_bEc-BSsgSxL9-D7IApyWh.js} +1 -1
  88. package/dist/{Menu-CFK5cOsm-Bt89Z42K-DvxwjGjT.cjs → Menu-CFK5cOsm-Bt89Z42K-Br-xyJqG.cjs} +1 -1
  89. package/dist/{Menu-CFK5cOsm-Bt89Z42K-D0CCnJqC.js → Menu-CFK5cOsm-Bt89Z42K-hkctKl8l.js} +1 -1
  90. package/dist/{Page-B7rVuhpl-BdUgg7Vj-C0_ndqLa.js → Page-B7rVuhpl-BdUgg7Vj-Dpn6g4BQ.js} +1 -1
  91. package/dist/{Page-B7rVuhpl-BdUgg7Vj-z-aFJDqj.cjs → Page-B7rVuhpl-BdUgg7Vj-vk11C0Wh.cjs} +1 -1
  92. package/dist/{PaperAirplane-BC-4mGEB-CC_xr_GF-D5QNcje-.js → PaperAirplane-BC-4mGEB-CC_xr_GF-BoVCPL_F.js} +1 -1
  93. package/dist/{PaperAirplane-BC-4mGEB-CC_xr_GF-6aDgRWlk.cjs → PaperAirplane-BC-4mGEB-CC_xr_GF-CumMfUxu.cjs} +1 -1
  94. package/dist/{Payment-hzcXP1Xb-DwRM2zOI-3jPWqKTM.cjs → Payment-hzcXP1Xb-DwRM2zOI-B4Y_7fQu.cjs} +1 -1
  95. package/dist/{Payment-hzcXP1Xb-DwRM2zOI-h-4km2rD.js → Payment-hzcXP1Xb-DwRM2zOI-BgXi20RI.js} +1 -1
  96. package/dist/{Play-BrVagRQA-ibf1r6jV-BefCVCqJ.js → Play-BrVagRQA-ibf1r6jV-DQJoytQU.js} +1 -1
  97. package/dist/{Play-BrVagRQA-ibf1r6jV--6gVlhp0.cjs → Play-BrVagRQA-ibf1r6jV-PNtzEg8S.cjs} +1 -1
  98. package/dist/{Refresh-Be6vHEEi-jbqubK_U-BbFXguBh.js → Refresh-Be6vHEEi-jbqubK_U-BiZxzF3C.js} +1 -1
  99. package/dist/{Refresh-Be6vHEEi-jbqubK_U-7UdVXYh_.cjs → Refresh-Be6vHEEi-jbqubK_U-COEDwx1x.cjs} +1 -1
  100. package/dist/{Response-Dq9pM-ZU-gbj_nXZc-pzrDrK41.js → Response-Dq9pM-ZU-gbj_nXZc-CD3JybSB.js} +1 -1
  101. package/dist/{Response-Dq9pM-ZU-gbj_nXZc-SN-5Vznn.cjs → Response-Dq9pM-ZU-gbj_nXZc-T9NTxFl1.cjs} +1 -1
  102. package/dist/{Search-DqtlswRG-C2Pti_ld-DYAT1UhV.cjs → Search-DqtlswRG-C2Pti_ld-BVwzn7pX.cjs} +1 -1
  103. package/dist/{Search-DqtlswRG-C2Pti_ld-BUVT91D9.js → Search-DqtlswRG-C2Pti_ld-DqaZ3k8b.js} +1 -1
  104. package/dist/{Show-CMsTZAgT-CiyXRP8J-BMnWdeZA.cjs → Show-CMsTZAgT-CiyXRP8J-B0Pyvkys.cjs} +1 -1
  105. package/dist/{Show-CMsTZAgT-CiyXRP8J-DMoFdRP5.js → Show-CMsTZAgT-CiyXRP8J-rWWEZEXS.js} +1 -1
  106. package/dist/{SideBarClosed-CYUNS2XM-CyV-4FlW-DoX2hJ2f.js → SideBarClosed-CYUNS2XM-CyV-4FlW-C79tAIfI.js} +1 -1
  107. package/dist/{SideBarClosed-CYUNS2XM-CyV-4FlW-DBXQub8X.cjs → SideBarClosed-CYUNS2XM-CyV-4FlW-hTSixUDT.cjs} +1 -1
  108. package/dist/{SideBarOpen-BOxW49_U-_LagsnZP-VMnbQB-F.cjs → SideBarOpen-BOxW49_U-_LagsnZP-IfLHyD8q.cjs} +1 -1
  109. package/dist/{SideBarOpen-BOxW49_U-_LagsnZP-MCypZwe8.js → SideBarOpen-BOxW49_U-_LagsnZP-coJINBMo.js} +1 -1
  110. package/dist/{Sort-oTjBhJFQ-CxatimqM-DkyuSTKC.js → Sort-oTjBhJFQ-CxatimqM-B4JpjUtH.js} +1 -1
  111. package/dist/{Sort-oTjBhJFQ-CxatimqM-CSTsj4q4.cjs → Sort-oTjBhJFQ-CxatimqM-Bhp0gb1Y.cjs} +1 -1
  112. package/dist/{Terminal-CKp--su5-DBOGXF1p-BipqHIK-.js → Terminal-CKp--su5-DBOGXF1p-D_n2CtcQ.js} +1 -1
  113. package/dist/{Terminal-CKp--su5-DBOGXF1p-CORGY_-M.cjs → Terminal-CKp--su5-DBOGXF1p-Dkh7nFka.cjs} +1 -1
  114. package/dist/{ThumbsDown-BMgnsASL-B1FsmbXx-CVI8YauE.cjs → ThumbsDown-BMgnsASL-B1FsmbXx-CPqj4N9q.cjs} +1 -1
  115. package/dist/{ThumbsDown-BMgnsASL-B1FsmbXx-BK_eWE5t.js → ThumbsDown-BMgnsASL-B1FsmbXx-zur8cFXC.js} +1 -1
  116. package/dist/{ThumbsUp-C1j6zY2j-Ca8-bvgl-BoWB6j-h.cjs → ThumbsUp-C1j6zY2j-Ca8-bvgl-D8hjrET6.cjs} +1 -1
  117. package/dist/{ThumbsUp-C1j6zY2j-Ca8-bvgl-Le0GyWwG.js → ThumbsUp-C1j6zY2j-Ca8-bvgl-DVdT_zpa.js} +1 -1
  118. package/dist/{Trash-BpA3zWPD-RGj_5vHb-DlsduCCA.js → Trash-BpA3zWPD-RGj_5vHb-DUQ9nzrj.js} +1 -1
  119. package/dist/{Delete-BCZmxrDD-RGj_5vHb-CM62MXoh.cjs → Trash-BpA3zWPD-RGj_5vHb-DVl65oeY.cjs} +1 -1
  120. package/dist/{Unlock-CY8UqJoE-xu6vPL1E-BYZIPV39.js → Unlock-CY8UqJoE-xu6vPL1E-4soOrt_T.js} +1 -1
  121. package/dist/{Unlock-CY8UqJoE-xu6vPL1E-DmMYqipu.cjs → Unlock-CY8UqJoE-xu6vPL1E-DOxPNcR7.cjs} +1 -1
  122. package/dist/{Upload-REIdL7RI-DTkPybxz-BG4B2HyD.cjs → Upload-REIdL7RI-DTkPybxz-Bldrr_Gx.cjs} +1 -1
  123. package/dist/{Upload-REIdL7RI-DTkPybxz-Dkw_EolY.js → Upload-REIdL7RI-DTkPybxz-C1xpA3Ah.js} +1 -1
  124. package/dist/{User-Df5svMQ3-BviG15gd-B8_B9BOn.js → User-Df5svMQ3-BviG15gd-B__AMu9x.js} +1 -1
  125. package/dist/{User-Df5svMQ3-BviG15gd-itqV4ylX.cjs → User-Df5svMQ3-BviG15gd-Czzl_5lW.cjs} +1 -1
  126. package/dist/{index-DUNJ7I8D.cjs → index-Bpm2zSYG.cjs} +3 -3
  127. package/dist/{index-BEcGroQA-TV90VnfE.js → index-DwSL-6br-Ddnv3m4G.js} +3 -3
  128. package/dist/{index-BEcGroQA-BQL8DS1H.cjs → index-DwSL-6br-tf1469ne.cjs} +2 -2
  129. package/dist/{index-DYiy-L6a.js → index-vuAkAPrS.js} +4 -4
  130. package/dist/index.cjs +1 -1
  131. package/dist/index.css +1 -1
  132. package/dist/index.js +1 -1
  133. package/dist/{programming-framework-angular-DD4Vjgbk-CUF3ZYYB-BgpB4_P0.cjs → programming-framework-angular-DD4Vjgbk-CUF3ZYYB-BNXaugbT.cjs} +1 -1
  134. package/dist/{programming-framework-angular-DD4Vjgbk-CUF3ZYYB-C3ATMoOO.js → programming-framework-angular-DD4Vjgbk-CUF3ZYYB-By5EsBHJ.js} +1 -1
  135. package/dist/{programming-framework-astro-CLfrRt19-CH6OCtd8-H0yBEzf9.js → programming-framework-astro-CLfrRt19-CH6OCtd8-BZcy1-sz.js} +1 -1
  136. package/dist/{programming-framework-astro-CLfrRt19-CH6OCtd8-Bm0Uh0sP.cjs → programming-framework-astro-CLfrRt19-CH6OCtd8-ziaZ1TEE.cjs} +1 -1
  137. package/dist/{programming-framework-laravel-kAy2wVLy-kXRM5aCd-BCikCq6p.js → programming-framework-laravel-kAy2wVLy-kXRM5aCd-DNlyJuq2.js} +1 -1
  138. package/dist/{programming-framework-laravel-kAy2wVLy-kXRM5aCd-CjOxpgWK.cjs → programming-framework-laravel-kAy2wVLy-kXRM5aCd-DoOJiEVK.cjs} +1 -1
  139. package/dist/{programming-framework-nextdotjs-BKdd_DY_-DF9m888v-DVPbIFsF.cjs → programming-framework-nextdotjs-BKdd_DY_-DF9m888v-Boj3Zyed.cjs} +1 -1
  140. package/dist/{programming-framework-nextdotjs-BKdd_DY_-DF9m888v-DahVlWE0.js → programming-framework-nextdotjs-BKdd_DY_-DF9m888v-yEXhQIKU.js} +1 -1
  141. package/dist/{programming-framework-react-PDgmtZuN-DZjob66N-C4HtrwDY.cjs → programming-framework-react-PDgmtZuN-DZjob66N-5DG9Eb2l.cjs} +1 -1
  142. package/dist/{programming-framework-react-PDgmtZuN-DZjob66N-B5tul5H_.js → programming-framework-react-PDgmtZuN-DZjob66N-BtvMSs-M.js} +1 -1
  143. package/dist/{programming-framework-vuedotjs-Cv46W2aB-5jp2dhVz-dT2hS4OJ.cjs → programming-framework-vuedotjs-Cv46W2aB-5jp2dhVz-BtrWfBvB.cjs} +1 -1
  144. package/dist/{programming-framework-vuedotjs-Cv46W2aB-5jp2dhVz-C6_ds6vL.js → programming-framework-vuedotjs-Cv46W2aB-5jp2dhVz-l3yIRNuF.js} +1 -1
  145. package/dist/{programming-language-c-hPGu2Zvg-BesPZa4K-C50gbTIM.js → programming-language-c-hPGu2Zvg-BesPZa4K-DDPq4Daa.js} +1 -1
  146. package/dist/{programming-language-c-hPGu2Zvg-BesPZa4K-D3Em_Usx.cjs → programming-language-c-hPGu2Zvg-BesPZa4K-e8YeXaSa.cjs} +1 -1
  147. package/dist/{programming-language-clojure-Cvmzky8x-BfidiK-3-CElPidJY.js → programming-language-clojure-Cvmzky8x-BfidiK-3-CPKcrQy1.js} +1 -1
  148. package/dist/{programming-language-clojure-Cvmzky8x-BfidiK-3-BziI2iLf.cjs → programming-language-clojure-Cvmzky8x-BfidiK-3-wTw51L4v.cjs} +1 -1
  149. package/dist/{programming-language-csharp-lqX1oWgb-D-Mz5PM1-Pjdy9cL4.cjs → programming-language-csharp-lqX1oWgb-D-Mz5PM1-CD-m0mRn.cjs} +1 -1
  150. package/dist/{programming-language-csharp-lqX1oWgb-D-Mz5PM1-G8nPDcfy.js → programming-language-csharp-lqX1oWgb-D-Mz5PM1-DQe5I0Bp.js} +1 -1
  151. package/dist/{programming-language-css3-Dpp4Cr6b-Dpx1zlAe-DHRVq1s9.js → programming-language-css3-Dpp4Cr6b-Dpx1zlAe-i5uBtCQF.js} +1 -1
  152. package/dist/{programming-language-css3-Dpp4Cr6b-Dpx1zlAe-Czcl12fy.cjs → programming-language-css3-Dpp4Cr6b-Dpx1zlAe-zXx5XiZV.cjs} +1 -1
  153. package/dist/{programming-language-go-DoJxWwT6-Bayz8oGO-CoDO0AnD.js → programming-language-go-DoJxWwT6-Bayz8oGO-CINtzase.js} +1 -1
  154. package/dist/{programming-language-go-DoJxWwT6-Bayz8oGO-CLiEH_IG.cjs → programming-language-go-DoJxWwT6-Bayz8oGO-CW2sEmcw.cjs} +1 -1
  155. package/dist/{programming-language-html5-DlqJK4EL-DfQp7LQz-DneNlkTk.cjs → programming-language-html5-DlqJK4EL-DfQp7LQz-BfQL3c7J.cjs} +1 -1
  156. package/dist/{programming-language-html5-DlqJK4EL-DfQp7LQz-C5v3pJf2.js → programming-language-html5-DlqJK4EL-DfQp7LQz-CWhNv7_g.js} +1 -1
  157. package/dist/{programming-language-http-wMYwFS1I-nvzm47LE-BXEbsGCo.js → programming-language-http-wMYwFS1I-nvzm47LE-DPASz5VQ.js} +1 -1
  158. package/dist/{programming-language-http-wMYwFS1I-nvzm47LE-DU-n6Tcf.cjs → programming-language-http-wMYwFS1I-nvzm47LE-DwO50e9M.cjs} +1 -1
  159. package/dist/{programming-language-java-BCxG2T_w-01jrBctS-Cf1tMzEQ.js → programming-language-java-BCxG2T_w-01jrBctS-B7zaeUr3.js} +1 -1
  160. package/dist/{programming-language-java-BCxG2T_w-01jrBctS-XbFJPTRW.cjs → programming-language-java-BCxG2T_w-01jrBctS-CTvxKAil.cjs} +1 -1
  161. package/dist/{programming-language-javascript-VxLvi1QG-qbgoUfZ8-DqYtjJI0.cjs → programming-language-javascript-VxLvi1QG-qbgoUfZ8-CvU7vnTT.cjs} +1 -1
  162. package/dist/{programming-language-javascript-VxLvi1QG-qbgoUfZ8-CWYMoxia.js → programming-language-javascript-VxLvi1QG-qbgoUfZ8-Cx57hTQ3.js} +1 -1
  163. package/dist/{programming-language-json-vEX_g7Zi-D-_9dDj_-ByLOKBX4.cjs → programming-language-json-vEX_g7Zi-D-_9dDj_-BcTX0Dqh.cjs} +1 -1
  164. package/dist/{programming-language-json-vEX_g7Zi-D-_9dDj_-CP2T9lxU.js → programming-language-json-vEX_g7Zi-D-_9dDj_-Cl1g0FHK.js} +1 -1
  165. package/dist/{programming-language-kotlin-DKV8vP9h-C-cTXwXu-Dyg5Aix3.cjs → programming-language-kotlin-DKV8vP9h-C-cTXwXu-D1Kk39OM.cjs} +1 -1
  166. package/dist/{programming-language-kotlin-DKV8vP9h-C-cTXwXu-DmonoLTP.js → programming-language-kotlin-DKV8vP9h-C-cTXwXu-D5ncNqOI.js} +1 -1
  167. package/dist/{programming-language-node-Xsgx38lm-Be410R9Y-CkYLM-kH.cjs → programming-language-node-Xsgx38lm-Be410R9Y-C50A5FWJ.cjs} +1 -1
  168. package/dist/{programming-language-node-Xsgx38lm-Be410R9Y-DMd_pslt.js → programming-language-node-Xsgx38lm-Be410R9Y-Du35W0CE.js} +1 -1
  169. package/dist/{programming-language-objc-BQXSOBsX-UyJQMZSh-2zLLHMYv.cjs → programming-language-objc-BQXSOBsX-UyJQMZSh-DL5RuNvU.cjs} +1 -1
  170. package/dist/{programming-language-objc-BQXSOBsX-UyJQMZSh-BSDadWAS.js → programming-language-objc-BQXSOBsX-UyJQMZSh-elQdntUP.js} +1 -1
  171. package/dist/{programming-language-ocaml-BEz7gGv7-L9a3ID8U-DQ78Hj0r.cjs → programming-language-ocaml-BEz7gGv7-L9a3ID8U-BM25I3xh.cjs} +1 -1
  172. package/dist/{programming-language-ocaml-BEz7gGv7-L9a3ID8U-D9DJq3ra.js → programming-language-ocaml-BEz7gGv7-L9a3ID8U-CiwhRsF-.js} +1 -1
  173. package/dist/{programming-language-php-GY38f8r4-jRMN5AZX-D8Op8hAR.js → programming-language-php-GY38f8r4-jRMN5AZX-Dmct6F9x.js} +1 -1
  174. package/dist/{programming-language-php-GY38f8r4-jRMN5AZX-D4s6znk_.cjs → programming-language-php-GY38f8r4-jRMN5AZX-s8BLJOdv.cjs} +1 -1
  175. package/dist/{programming-language-powershell-C9DkSp36-C7fZCJBW-D1_UtX3j.cjs → programming-language-powershell-C9DkSp36-C7fZCJBW-CrAbM716.cjs} +1 -1
  176. package/dist/{programming-language-powershell-C9DkSp36-C7fZCJBW-tLG3xocT.js → programming-language-powershell-C9DkSp36-C7fZCJBW-DOEiSL4E.js} +1 -1
  177. package/dist/{programming-language-python-Ct-_kNjo-DsKRdoNg-BKfV4-_q.js → programming-language-python-Ct-_kNjo-DsKRdoNg-DJ2esrM5.js} +1 -1
  178. package/dist/{programming-language-python-Ct-_kNjo-DsKRdoNg-CMwaTVAu.cjs → programming-language-python-Ct-_kNjo-DsKRdoNg-DYBq6OXo.cjs} +1 -1
  179. package/dist/{programming-language-r-BGoKwua9-BguWvgpu-BVmrWl5b.cjs → programming-language-r-BGoKwua9-BguWvgpu-BkIU4xfC.cjs} +1 -1
  180. package/dist/{programming-language-r-BGoKwua9-BguWvgpu-BFl9P9rY.js → programming-language-r-BGoKwua9-BguWvgpu-CW5xfDOt.js} +1 -1
  181. package/dist/{programming-language-ruby-DhdM4d7g-BuT1i5is-CKpxL7sn.js → programming-language-ruby-DhdM4d7g-BuT1i5is-Bo5kO_LI.js} +1 -1
  182. package/dist/{programming-language-ruby-DhdM4d7g-BuT1i5is-D1-jk-cN.cjs → programming-language-ruby-DhdM4d7g-BuT1i5is-PkgVaXxf.cjs} +1 -1
  183. package/dist/{programming-language-scala-BVg0dToJ-p_n-G2sI-CcQLVIAn.js → programming-language-scala-BVg0dToJ-p_n-G2sI-BtAobpph.js} +1 -1
  184. package/dist/{programming-language-scala-BVg0dToJ-p_n-G2sI-nAM3j8r7.cjs → programming-language-scala-BVg0dToJ-p_n-G2sI-C5nepx-k.cjs} +1 -1
  185. package/dist/{programming-language-shell-BsTa1xI7-Mbhl6UDK-DW4_MOi2.js → programming-language-shell-BsTa1xI7-Mbhl6UDK-6ASU8ZjB.js} +1 -1
  186. package/dist/{programming-language-shell-BsTa1xI7-Mbhl6UDK-CcOWzdWD.cjs → programming-language-shell-BsTa1xI7-Mbhl6UDK-CpqEGFni.cjs} +1 -1
  187. package/dist/{programming-language-swift-Dn72xPjg-D-JnfNts-BR0UxloM.cjs → programming-language-swift-Dn72xPjg-D-JnfNts-318MhP75.cjs} +1 -1
  188. package/dist/{programming-language-swift-Dn72xPjg-D-JnfNts-p6upK-Uv.js → programming-language-swift-Dn72xPjg-D-JnfNts-fbMf1hqo.js} +1 -1
  189. package/dist/{programming-language-typescript-CdF-HuRi-ocSQSwHb-CETVGMnm.js → programming-language-typescript-CdF-HuRi-ocSQSwHb-BtGG1kag.js} +1 -1
  190. package/dist/{programming-language-typescript-CdF-HuRi-ocSQSwHb-CWG96hWF.cjs → programming-language-typescript-CdF-HuRi-ocSQSwHb-CsTleVd4.cjs} +1 -1
  191. package/dist/{programming-script-code-DQN1veb2-CcjBWaNF-jm4eTKNv.js → programming-script-code-DQN1veb2-CcjBWaNF-C0W-YSG_.js} +1 -1
  192. package/dist/{programming-script-code-DQN1veb2-CcjBWaNF-SKxbo-5K.cjs → programming-script-code-DQN1veb2-CcjBWaNF-DGzWtiKv.cjs} +1 -1
  193. package/dist/{programming-tool-git-DDnQ1zGD-CGHot6Y8-CEpxk4z2.js → programming-tool-git-DDnQ1zGD-CGHot6Y8-B10_UU_X.js} +1 -1
  194. package/dist/{programming-tool-git-DDnQ1zGD-CGHot6Y8-U59_mSrQ.cjs → programming-tool-git-DDnQ1zGD-CGHot6Y8-BhD5z2rg.cjs} +1 -1
  195. package/dist/{programming-tool-tailwindcss-xjXi0E6g-r5YhtCAf-CBBPX_V7.js → programming-tool-tailwindcss-xjXi0E6g-r5YhtCAf-B2UJ1eFE.js} +1 -1
  196. package/dist/{programming-tool-tailwindcss-xjXi0E6g-r5YhtCAf-BVQDQ8eP.cjs → programming-tool-tailwindcss-xjXi0E6g-r5YhtCAf-Nv4bWJ2p.cjs} +1 -1
  197. package/package.json +2 -2
@@ -208,7 +208,7 @@ ${n}}`:n};function HJ(){return{showApiClient:!1,activeApiClientEndpointId:"",act
208
208
  `;this.styleTag.textContent=s;let o=this.root.head||this.root;this.styleTag.parentNode!=o&&o.insertBefore(this.styleTag,o.firstChild)}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}var Do={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Dd={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},AZ=typeof navigator<"u"&&/Mac/.test(navigator.platform),CZ=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Bn=0;Bn<10;Bn++)Do[48+Bn]=Do[96+Bn]=String(Bn);for(var Bn=1;Bn<=24;Bn++)Do[Bn+111]="F"+Bn;for(var Bn=65;Bn<=90;Bn++)Do[Bn]=String.fromCharCode(Bn+32),Dd[Bn]=String.fromCharCode(Bn);for(var G0 in Do)Dd.hasOwnProperty(G0)||(Dd[G0]=Do[G0]);function NZ(e){var t=AZ&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||CZ&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Dd:Do)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function Wp(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function t1(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function OZ(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function op(e,t){if(!t.anchorNode)return!1;try{return t1(e,t.anchorNode)}catch{return!1}}function Id(e){return e.nodeType==3?Ha(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function od(e,t,n,r){return n?Pk(e,t,n,r,-1)||Pk(e,t,n,r,1):!1}function Rd(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function Pk(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Ns(e))){if(e.nodeName=="DIV")return!1;let s=e.parentNode;if(!s||s.nodeType!=1)return!1;t=Rd(e)+(i<0?0:1),e=s}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=i<0?Ns(e):0}else return!1}}function Ns(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function OE(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function DZ(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function ZI(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function IZ(e,t,n,r,i,s,o,a){let l=e.ownerDocument,c=l.defaultView||window;for(let u=e,d=!1;u&&!d;)if(u.nodeType==1){let f,h=u==l.body,p=1,m=1;if(h)f=DZ(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let y=u.getBoundingClientRect();({scaleX:p,scaleY:m}=ZI(u,y)),f={left:y.left,right:y.left+u.clientWidth*p,top:y.top,bottom:y.top+u.clientHeight*m}}let g=0,b=0;if(i=="nearest")t.top<f.top?(b=-(f.top-t.top+o),n>0&&t.bottom>f.bottom+b&&(b=t.bottom-f.bottom+b+o)):t.bottom>f.bottom&&(b=t.bottom-f.bottom+o,n<0&&t.top-b<f.top&&(b=-(f.top+b-t.top+o)));else{let y=t.bottom-t.top,v=f.bottom-f.top;b=(i=="center"&&y<=v?t.top+y/2-v/2:i=="start"||i=="center"&&n<0?t.top-o:t.bottom-v+o)-f.top}if(r=="nearest"?t.left<f.left?(g=-(f.left-t.left+s),n>0&&t.right>f.right+g&&(g=t.right-f.right+g+s)):t.right>f.right&&(g=t.right-f.right+s,n<0&&t.left<f.left+g&&(g=-(f.left+g-t.left+s))):g=(r=="center"?t.left+(t.right-t.left)/2-(f.right-f.left)/2:r=="start"==a?t.left-s:t.right-(f.right-f.left)+s)-f.left,g||b)if(h)c.scrollBy(g,b);else{let y=0,v=0;if(b){let w=u.scrollTop;u.scrollTop+=b/m,v=(u.scrollTop-w)*m}if(g){let w=u.scrollLeft;u.scrollLeft+=g/p,y=(u.scrollLeft-w)*p}t={left:t.left-y,top:t.top-v,right:t.right-y,bottom:t.bottom-v},y&&Math.abs(y-g)<1&&(r="nearest"),v&&Math.abs(v-b)<1&&(i="nearest")}if(h)break;u=u.assignedSlot||u.parentNode}else if(u.nodeType==11)u=u.host;else break}function RZ(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(n.nodeType==1){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class PZ{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:n,focusNode:r}=t;this.set(n,Math.min(t.anchorOffset,n?Ns(n):0),r,Math.min(t.focusOffset,r?Ns(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let ul=null;function eR(e){if(e.setActive)return e.setActive();if(ul)return e.focus(ul);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(ul==null?{get preventScroll(){return ul={preventScroll:!0},!0}}:void 0),!ul){ul=!1;for(let n=0;n<t.length;){let r=t[n++],i=t[n++],s=t[n++];r.scrollTop!=i&&(r.scrollTop=i),r.scrollLeft!=s&&(r.scrollLeft=s)}}}let Lk;function Ha(e,t,n=t){let r=Lk||(Lk=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function zl(e,t,n){let r={key:t,code:t,keyCode:n,which:n,cancelable:!0},i=new KeyboardEvent("keydown",r);i.synthetic=!0,e.dispatchEvent(i);let s=new KeyboardEvent("keyup",r);return s.synthetic=!0,e.dispatchEvent(s),i.defaultPrevented||s.defaultPrevented}function LZ(e){for(;e;){if(e&&(e.nodeType==9||e.nodeType==11&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}function tR(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function MZ(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,Ns(n));;)if(r){if(n.nodeType!=1)return!1;let i=n.childNodes[r-1];i.contentEditable=="false"?r--:(n=i,r=Ns(n))}else{if(n==e)return!0;r=Rd(n),n=n.parentNode}}function nR(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}class Yn{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new Yn(t.parentNode,Rd(t),n)}static after(t,n){return new Yn(t.parentNode,Rd(t)+1,n)}}const DE=[];class Qt{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let n=this.posAtStart;for(let r of this.children){if(r==t)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,n){if(this.flags&2){let r=this.dom,i=null,s;for(let o of this.children){if(o.flags&7){if(!o.dom&&(s=i?i.nextSibling:r.firstChild)){let a=Qt.get(s);(!a||!a.parent&&a.canReuseDOM(o))&&o.reuseDOM(s)}o.sync(t,n),o.flags&=-8}if(s=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&s!=o.dom&&(n.written=!0),o.dom.parentNode==r)for(;s&&s!=o.dom;)s=Mk(s);else r.insertBefore(o.dom,s);i=o.dom}for(s=i?i.nextSibling:r.firstChild,s&&n&&n.node==r&&(n.written=!0);s;)s=Mk(s)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(t,n),r.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,n){let r;if(t==this.dom)r=this.dom.childNodes[n];else{let i=Ns(t)==0?0:n==0?-1:1;for(;;){let s=t.parentNode;if(s==this.dom)break;i==0&&s.firstChild!=s.lastChild&&(t==s.firstChild?i=-1:i=1),t=s}i<0?r=t:r=t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!Qt.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,s=0;;i++){let o=this.children[i];if(o.dom==r)return s;s+=o.length+o.breakAfter}}domBoundsAround(t,n,r=0){let i=-1,s=-1,o=-1,a=-1;for(let l=0,c=r,u=r;l<this.children.length;l++){let d=this.children[l],f=c+d.length;if(c<t&&f>n)return d.domBoundsAround(t,n,c);if(f>=t&&i==-1&&(i=l,s=c),c>n&&d.dom.parentNode==this.dom){o=l,a=u;break}u=f,c=f+d.breakAfter}return{from:s,to:a<0?r+this.length:a,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),n.flags&1)return;n.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let n=t.parent;if(!n)return t;t=n}}replaceChildren(t,n,r=DE){this.markDirty();for(let i=t;i<n;i++){let s=this.children[i];s.parent==this&&r.indexOf(s)<0&&s.destroy()}this.children.splice(t,n-t,...r);for(let i=0;i<r.length;i++)r[i].setParent(this)}ignoreMutation(t){return!1}ignoreEvent(t){return!1}childCursor(t=this.length){return new rR(this.children,t,this.children.length)}childPos(t,n=1){return this.childCursor().findPos(t,n)}toString(){let t=this.constructor.name.replace("View","");return t+(this.children.length?"("+this.children.join()+")":this.length?"["+(t=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(t){return t.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(t,n,r,i,s,o){return!1}become(t){return!1}canReuseDOM(t){return t.constructor==this.constructor&&!((this.flags|t.flags)&8)}getSide(){return 0}destroy(){for(let t of this.children)t.parent==this&&t.destroy();this.parent=null}}Qt.prototype.breakAfter=0;function Mk(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class rR{constructor(t,n,r){this.children=t,this.pos=n,this.i=r,this.off=0}findPos(t,n=1){for(;;){if(t>this.pos||t==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function iR(e,t,n,r,i,s,o,a,l){let{children:c}=e,u=c.length?c[t]:null,d=s.length?s[s.length-1]:null,f=d?d.breakAfter:o;if(!(t==r&&u&&!o&&!f&&s.length<2&&u.merge(n,i,s.length?d:null,n==0,a,l))){if(r<c.length){let h=c[r];h&&(i<h.length||h.breakAfter&&d!=null&&d.breakAfter)?(t==r&&(h=h.split(i),i=0),!f&&d&&h.merge(0,i,d,!0,0,l)?s[s.length-1]=h:((i||h.children.length&&!h.children[0].length)&&h.merge(0,i,null,!1,0,l),s.push(h))):h!=null&&h.breakAfter&&(d?d.breakAfter=1:o=1),r++}for(u&&(u.breakAfter=o,n>0&&(!o&&s.length&&u.merge(n,u.length,s[0],!1,a,0)?u.breakAfter=s.shift().breakAfter:(n<u.length||u.children.length&&u.children[u.children.length-1].length==0)&&u.merge(n,u.length,null,!1,a,0),t++));t<r&&s.length;)if(c[r-1].become(s[s.length-1]))r--,s.pop(),l=s.length?0:a;else if(c[t].become(s[0]))t++,s.shift(),a=s.length?0:l;else break;!s.length&&t&&r<c.length&&!c[t-1].breakAfter&&c[r].merge(0,0,c[t-1],!1,a,l)&&t--,(t<r||s.length)&&e.replaceChildren(t,r,s)}}function sR(e,t,n,r,i,s){let o=e.childCursor(),{i:a,off:l}=o.findPos(n,1),{i:c,off:u}=o.findPos(t,-1),d=t-n;for(let f of r)d+=f.length;e.length+=d,iR(e,c,u,a,l,r,0,i,s)}let Rr=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},n1=typeof document<"u"?document:{documentElement:{style:{}}};const r1=/Edge\/(\d+)/.exec(Rr.userAgent),oR=/MSIE \d/.test(Rr.userAgent),i1=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Rr.userAgent),hg=!!(oR||i1||r1),$k=!hg&&/gecko\/(\d+)/i.test(Rr.userAgent),Y0=!hg&&/Chrome\/(\d+)/.exec(Rr.userAgent),Fk="webkitFontSmoothing"in n1.documentElement.style,aR=!hg&&/Apple Computer/.test(Rr.vendor),Bk=aR&&(/Mobile\/\w+/.test(Rr.userAgent)||Rr.maxTouchPoints>2);var Ye={mac:Bk||/Mac/.test(Rr.platform),windows:/Win/.test(Rr.platform),linux:/Linux|X11/.test(Rr.platform),ie:hg,ie_version:oR?n1.documentMode||6:i1?+i1[1]:r1?+r1[1]:0,gecko:$k,gecko_version:$k?+(/Firefox\/(\d+)/.exec(Rr.userAgent)||[0,0])[1]:0,chrome:!!Y0,chrome_version:Y0?+Y0[1]:0,ios:Bk,android:/Android\b/.test(Rr.userAgent),webkit:Fk,safari:aR,webkit_version:Fk?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:n1.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const $Z=256;class Os extends Qt{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){t.nodeType==3&&this.createDOM(t)}merge(t,n,r){return this.flags&8||r&&(!(r instanceof Os)||this.length-(n-t)+r.length>$Z||r.flags&8)?!1:(this.text=this.text.slice(0,t)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(t){let n=new Os(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(t,n){return t==this.dom?n:n?this.text.length:0}domAtPos(t){return new Yn(this.dom,t)}domBoundsAround(t,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,n){return FZ(this.dom,t,n)}}class Ds extends Qt{constructor(t,n=[],r=0){super(),this.mark=t,this.children=n,this.length=r;for(let i of n)i.setParent(this)}setAttrs(t){if(tR(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)t.setAttribute(n,this.mark.attrs[n]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,n)}merge(t,n,r,i,s,o){return r&&(!(r instanceof Ds&&r.mark.eq(this.mark))||t&&s<=0||n<this.length&&o<=0)?!1:(sR(this,t,n,r?r.children.slice():[],s-1,o-1),this.markDirty(),!0)}split(t){let n=[],r=0,i=-1,s=0;for(let a of this.children){let l=r+a.length;l>t&&n.push(r<t?a.split(t-r):a),i<0&&r>=t&&(i=s),r=l,s++}let o=this.length-t;return this.length=t,i>-1&&(this.children.length=i,this.markDirty()),new Ds(this.mark,n,o)}domAtPos(t){return lR(this,t)}coordsAt(t,n){return uR(this,t,n)}}function FZ(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,s=t,o=0;t==0&&n<0||t==r&&n>=0?Ye.chrome||Ye.gecko||(t?(i--,o=1):s<r&&(s++,o=-1)):n<0?i--:s<r&&s++;let a=Ha(e,i,s).getClientRects();if(!a.length)return null;let l=a[(o?o<0:n>=0)?0:a.length-1];return Ye.safari&&!o&&l.width==0&&(l=Array.prototype.find.call(a,c=>c.width)||l),o?OE(l,o<0):l||null}class ga extends Qt{static create(t,n,r){return new ga(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=ga.create(this.widget,this.length-t,this.side);return this.length-=t,n}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,n,r,i,s,o){return r&&(!(r instanceof ga)||!this.widget.compare(r.widget)||t>0&&s<=0||n<this.length&&o<=0)?!1:(this.length=t+(r?r.length:0)+(this.length-n),!0)}become(t){return t instanceof ga&&t.side==this.side&&this.widget.constructor==t.widget.constructor?(this.widget.compare(t.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=t.widget,this.length=t.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(t){return this.widget.ignoreEvent(t)}get overrideDOMText(){if(this.length==0)return Ut.empty;let t=this;for(;t.parent;)t=t.parent;let{view:n}=t,r=n&&n.state.doc,i=this.posAtStart;return r?r.slice(i,i+this.length):Ut.empty}domAtPos(t){return(this.length?t==0:this.side>0)?Yn.before(this.dom):Yn.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,n){let r=this.widget.coordsAt(this.dom,t,n);if(r)return r;let i=this.dom.getClientRects(),s=null;if(!i.length)return null;let o=this.side?this.side<0:t>0;for(let a=o?i.length-1:0;s=i[a],!(t>0?a==0:a==i.length-1||s.top<s.bottom);a+=o?-1:1);return OE(s,!o)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class lc extends Qt{constructor(t){super(),this.side=t}get length(){return 0}merge(){return!1}become(t){return t instanceof lc&&t.side==this.side}split(){return new lc(this.side)}sync(){if(!this.dom){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),this.setDOM(t)}}getSide(){return this.side}domAtPos(t){return this.side>0?Yn.before(this.dom):Yn.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Ut.empty}get isHidden(){return!0}}Os.prototype.children=ga.prototype.children=lc.prototype.children=DE;function lR(e,t){let n=e.dom,{children:r}=e,i=0;for(let s=0;i<r.length;i++){let o=r[i],a=s+o.length;if(!(a==s&&o.getSide()<=0)){if(t>s&&t<a&&o.dom.parentNode==n)return o.domAtPos(t-s);if(t<=s)break;s=a}}for(let s=i;s>0;s--){let o=r[s-1];if(o.dom.parentNode==n)return o.domAtPos(o.length)}for(let s=i;s<r.length;s++){let o=r[s];if(o.dom.parentNode==n)return o.domAtPos(0)}return new Yn(n,0)}function cR(e,t,n){let r,{children:i}=e;n>0&&t instanceof Ds&&i.length&&(r=i[i.length-1])instanceof Ds&&r.mark.eq(t.mark)?cR(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function uR(e,t,n){let r=null,i=-1,s=null,o=-1;function a(c,u){for(let d=0,f=0;d<c.children.length&&f<=u;d++){let h=c.children[d],p=f+h.length;p>=u&&(h.children.length?a(h,u-f):(!s||s.isHidden&&n>0)&&(p>u||f==p&&h.getSide()>0)?(s=h,o=u-f):(f<u||f==p&&h.getSide()<0&&!h.isHidden)&&(r=h,i=u-f)),f=p}}a(e,t);let l=(n<0?r:s)||r||s;return l?l.coordsAt(Math.max(0,l==r?i:o),n):BZ(e)}function BZ(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=Id(t);return n[n.length-1]||null}function s1(e,t){for(let n in e)n=="class"&&t.class?t.class+=" "+e.class:n=="style"&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}const Uk=Object.create(null);function IE(e,t,n){if(e==t)return!0;e||(e=Uk),t||(t=Uk);let r=Object.keys(e),i=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let s of r)if(s!=n&&(i.indexOf(s)==-1||e[s]!==t[s]))return!1;return!0}function o1(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,i=="style"?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,i=="style"?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function UZ(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}class Sn extends Qt{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,n,r,i,s,o){if(r){if(!(r instanceof Sn))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),sR(this,t,n,r?r.children.slice():[],s,o),!0}split(t){let n=new Sn;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i:r,off:i}=this.childPos(t);i&&(n.append(this.children[r].split(i),0),this.children[r].merge(i,this.children[r].length,null,!1,0,0),r++);for(let s=r;s<this.children.length;s++)n.append(this.children[s],0);for(;r>0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=t,n}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){IE(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){cR(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=s1(n,this.attrs||{})),r&&(this.attrs=s1({class:r},this.attrs||{}))}domAtPos(t){return lR(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(tR(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(o1(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,n);let i=this.dom.lastChild;for(;i&&Qt.get(i)instanceof Ds;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=Qt.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!Ye.ios||!this.children.some(s=>s instanceof Os))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof Os)||/[^ -~]/.test(r.text))return null;let i=Id(r.dom);if(i.length!=1)return null;t+=i[0].width,n=i[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:n}:null}coordsAt(t,n){let r=uR(this,t,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,s=r.bottom-r.top;if(Math.abs(s-i.lineHeight)<2&&i.textHeight<s){let o=(s-i.textHeight)/2;return{top:r.top+o,bottom:r.bottom-o,left:r.left,right:r.left}}}return r}become(t){return!1}covers(){return!0}static find(t,n){for(let r=0,i=0;r<t.children.length;r++){let s=t.children[r],o=i+s.length;if(o>=n){if(s instanceof Sn)return s;if(o>n)break}i=o+s.breakAfter}return null}}class So extends Qt{constructor(t,n,r){super(),this.widget=t,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(t,n,r,i,s,o){return r&&(!(r instanceof So)||!this.widget.compare(r.widget)||t>0&&s<=0||n<this.length&&o<=0)?!1:(this.length=t+(r?r.length:0)+(this.length-n),!0)}domAtPos(t){return t==0?Yn.before(this.dom):Yn.after(this.dom,t==this.length)}split(t){let n=this.length-t;this.length=t;let r=new So(this.widget,n,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return DE}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):Ut.empty}domBoundsAround(){return null}become(t){return t instanceof So&&t.widget.constructor==this.widget.constructor?(t.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=t.widget,this.length=t.length,this.deco=t.deco,this.breakAfter=t.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(t){return this.widget.ignoreEvent(t)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(t,n){return this.widget.coordsAt(this.dom,t,n)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(t){let{startSide:n,endSide:r}=this.deco;return n==r?!1:t<0?n<0:r>0}}class Rc{eq(t){return!1}updateDOM(t,n){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}}var vi=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(vi||(vi={}));class ln extends Ua{constructor(t,n,r,i){super(),this.startSide=t,this.endSide=n,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(t){return new pf(t)}static widget(t){let n=Math.max(-1e4,Math.min(1e4,t.side||0)),r=!!t.block;return n+=r&&!t.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new Io(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,i;if(t.isBlockGap)r=-5e8,i=4e8;else{let{start:s,end:o}=dR(t,n);r=(s?n?-3e8:-1:5e8)-1,i=(o?n?2e8:1:-6e8)+1}return new Io(t,r,i,n,t.widget||null,!0)}static line(t){return new mf(t)}static set(t,n=!1){return Bt.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}ln.none=Bt.empty;class pf extends ln{constructor(t){let{start:n,end:r}=dR(t);super(n?-1:5e8,r?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var n,r;return this==t||t instanceof pf&&this.tagName==t.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(t.class||((r=t.attrs)===null||r===void 0?void 0:r.class))&&IE(this.attrs,t.attrs,"class")}range(t,n=t){if(t>=n)throw new RangeError("Mark decorations may not be empty");return super.range(t,n)}}pf.prototype.point=!1;class mf extends ln{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof mf&&this.spec.class==t.spec.class&&IE(this.spec.attributes,t.spec.attributes)}range(t,n=t){if(n!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,n)}}mf.prototype.mapMode=exports.zt.TrackBefore;mf.prototype.point=!0;class Io extends ln{constructor(t,n,r,i,s,o){super(n,r,s,t),this.block=i,this.isReplace=o,this.mapMode=i?n<=0?exports.zt.TrackBefore:exports.zt.TrackAfter:exports.zt.TrackDel}get type(){return this.startSide!=this.endSide?vi.WidgetRange:this.startSide<=0?vi.WidgetBefore:vi.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof Io&&HZ(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,n=t){if(this.isReplace&&(t>n||t==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,n)}}Io.prototype.point=!0;function dR(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return n==null&&(n=e.inclusive),r==null&&(r=e.inclusive),{start:n??t,end:r??t}}function HZ(e,t){return e==t||!!(e&&t&&e.compare(t))}function a1(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}class ad{constructor(t,n,r,i){this.doc=t,this.pos=n,this.end=r,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof So&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Sn),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(gh(new lc(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof So)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:o,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=s,this.textOff=0}let i=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(gh(new Os(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,t-=i,r=0}}span(t,n,r,i){this.buildText(n-t,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(t,n,r,i,s,o){if(this.disallowBlockEffectsFor[o]&&r instanceof Io){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=n-t;if(r instanceof Io)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new So(r.widget||new Hk("div"),a,r));else{let l=ga.create(r.widget||new Hk("span"),a,a?0:r.startSide),c=this.atCursorPos&&!l.isEditable&&s<=i.length&&(t<n||r.startSide>0),u=!l.isEditable&&(t<n||s>i.length||r.startSide<=0),d=this.getLine();this.pendingBuffer==2&&!c&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),c&&(d.append(gh(new lc(1),i),s),s=i.length+Math.max(0,s-i.length)),d.append(gh(l,i),s),this.atCursorPos=u,this.pendingBuffer=u?t<n||s>i.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=s)}static build(t,n,r,i,s){let o=new ad(t,n,r,s);return o.openEnd=Bt.spans(i,n,r,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function gh(e,t){for(let n of t)e=new Ds(n,[e],e.length);return e}class Hk extends Rc{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}exports.ct=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(exports.ct||(exports.ct={}));const ja=exports.ct.LTR,RE=exports.ct.RTL;function fR(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const jZ=fR("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),qZ=fR("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),l1=Object.create(null),Oi=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),n=e.charCodeAt(1);l1[t]=n,l1[n]=-t}function hR(e){return e<=247?jZ[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?qZ[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}const VZ=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class yo{get dir(){return this.level%2?RE:ja}constructor(t,n,r){this.from=t,this.to=n,this.level=r}side(t,n){return this.dir==n==t?this.to:this.from}forward(t,n){return t==(this.dir==n)}static find(t,n,r,i){let s=-1;for(let o=0;o<t.length;o++){let a=t[o];if(a.from<=n&&a.to>=n){if(a.level==r)return o;(s<0||(i!=0?i<0?a.from<n:a.to>n:t[s].level>a.level))&&(s=o)}}if(s<0)throw new RangeError("Index out of range");return s}}function pR(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.direction!=i.direction||!pR(r.inner,i.inner))return!1}return!0}const jt=[];function zZ(e,t,n,r,i){for(let s=0;s<=r.length;s++){let o=s?r[s-1].to:t,a=s<r.length?r[s].from:n,l=s?256:i;for(let c=o,u=l,d=l;c<a;c++){let f=hR(e.charCodeAt(c));f==512?f=u:f==8&&d==4&&(f=16),jt[c]=f==4?2:f,f&7&&(d=f),u=f}for(let c=o,u=l,d=l;c<a;c++){let f=jt[c];if(f==128)c<a-1&&u==jt[c+1]&&u&24?f=jt[c]=u:jt[c]=256;else if(f==64){let h=c+1;for(;h<a&&jt[h]==64;)h++;let p=c&&u==8||h<n&&jt[h]==8?d==1?1:8:256;for(let m=c;m<h;m++)jt[m]=p;c=h-1}else f==8&&d==1&&(jt[c]=1);u=f,f&7&&(d=f)}}}function KZ(e,t,n,r,i){let s=i==1?2:1;for(let o=0,a=0,l=0;o<=r.length;o++){let c=o?r[o-1].to:t,u=o<r.length?r[o].from:n;for(let d=c,f,h,p;d<u;d++)if(h=l1[f=e.charCodeAt(d)])if(h<0){for(let m=a-3;m>=0;m-=3)if(Oi[m+1]==-h){let g=Oi[m+2],b=g&2?i:g&4?g&1?s:i:0;b&&(jt[d]=jt[Oi[m]]=b),a=m;break}}else{if(Oi.length==189)break;Oi[a++]=d,Oi[a++]=f,Oi[a++]=l}else if((p=jt[d])==2||p==1){let m=p==i;l=m?0:1;for(let g=a-3;g>=0;g-=3){let b=Oi[g+2];if(b&2)break;if(m)Oi[g+2]|=2;else{if(b&4)break;Oi[g+2]|=4}}}}}function WZ(e,t,n,r){for(let i=0,s=r;i<=n.length;i++){let o=i?n[i-1].to:e,a=i<n.length?n[i].from:t;for(let l=o;l<a;){let c=jt[l];if(c==256){let u=l+1;for(;;)if(u==a){if(i==n.length)break;u=n[i++].to,a=i<n.length?n[i].from:t}else if(jt[u]==256)u++;else break;let d=s==1,f=(u<t?jt[u]:r)==1,h=d==f?d?1:2:r;for(let p=u,m=i,g=m?n[m-1].to:e;p>l;)p==g&&(p=n[--m].from,g=m?n[m-1].to:e),jt[--p]=h;l=u}else s=c,l++}}}function c1(e,t,n,r,i,s,o){let a=r%2?2:1;if(r%2==i%2)for(let l=t,c=0;l<n;){let u=!0,d=!1;if(c==s.length||l<s[c].from){let m=jt[l];m!=a&&(u=!1,d=m==16)}let f=!u&&a==1?[]:null,h=u?r:r+1,p=l;e:for(;;)if(c<s.length&&p==s[c].from){if(d)break e;let m=s[c];if(!u)for(let g=m.to,b=c+1;;){if(g==n)break e;if(b<s.length&&s[b].from==g)g=s[b++].to;else{if(jt[g]==a)break e;break}}if(c++,f)f.push(m);else{m.from>l&&o.push(new yo(l,m.from,h));let g=m.direction==ja!=!(h%2);u1(e,g?r+1:r,i,m.inner,m.from,m.to,o),l=m.to}p=m.to}else{if(p==n||(u?jt[p]!=a:jt[p]==a))break;p++}f?c1(e,l,p,r+1,i,f,o):l<p&&o.push(new yo(l,p,h)),l=p}else for(let l=n,c=s.length;l>t;){let u=!0,d=!1;if(!c||l>s[c-1].to){let m=jt[l-1];m!=a&&(u=!1,d=m==16)}let f=!u&&a==1?[]:null,h=u?r:r+1,p=l;e:for(;;)if(c&&p==s[c-1].to){if(d)break e;let m=s[--c];if(!u)for(let g=m.from,b=c;;){if(g==t)break e;if(b&&s[b-1].to==g)g=s[--b].from;else{if(jt[g-1]==a)break e;break}}if(f)f.push(m);else{m.to<l&&o.push(new yo(m.to,l,h));let g=m.direction==ja!=!(h%2);u1(e,g?r+1:r,i,m.inner,m.from,m.to,o),l=m.from}p=m.from}else{if(p==t||(u?jt[p-1]!=a:jt[p-1]==a))break;p--}f?c1(e,p,l,r+1,i,f,o):p<l&&o.push(new yo(p,l,h)),l=p}}function u1(e,t,n,r,i,s,o){let a=t%2?2:1;zZ(e,i,s,r,a),KZ(e,i,s,r,a),WZ(i,s,r,a),c1(e,i,s,t,n,r,o)}function GZ(e,t,n){if(!e)return[new yo(0,0,t==RE?1:0)];if(t==ja&&!n.length&&!VZ.test(e))return mR(e.length);if(n.length)for(;e.length>jt.length;)jt[jt.length]=256;let r=[],i=t==ja?0:1;return u1(e,i,i,n,0,e.length,r),r}function mR(e){return[new yo(0,e,0)]}let gR="";function YZ(e,t,n,r,i){var s;let o=r.head-e.from,a=yo.find(t,o,(s=r.bidiLevel)!==null&&s!==void 0?s:-1,r.assoc),l=t[a],c=l.side(i,n);if(o==c){let f=a+=i?1:-1;if(f<0||f>=t.length)return null;l=t[a=f],o=l.side(!i,n),c=l.side(i,n)}let u=Vi(e.text,o,l.forward(i,n));(u<l.from||u>l.to)&&(u=c),gR=e.text.slice(Math.min(o,u),Math.max(o,u));let d=a==(i?t.length-1:0)?null:t[a+(i?1:-1)];return d&&u==c&&d.level+(i?0:1)<l.level?Je.cursor(d.side(!i,n)+e.from,d.forward(i,n)?1:-1,d.level):Je.cursor(u+e.from,l.forward(i,n)?-1:1,l.level)}function XZ(e,t,n){for(let r=t;r<n;r++){let i=hR(e.charCodeAt(r));if(i==1)return ja;if(i==2||i==4)return RE}return ja}const bR=it.define(),yR=it.define(),vR=it.define(),ER=it.define(),d1=it.define(),_R=it.define(),wR=it.define(),TR=it.define({combine:e=>e.some(t=>t)}),QZ=it.define({combine:e=>e.some(t=>t)});class Kl{constructor(t,n="nearest",r="nearest",i=5,s=5,o=!1){this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=s,this.isSnapshot=o}map(t){return t.empty?this:new Kl(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new Kl(Je.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const bh=xn.define({map:(e,t)=>e.map(t)});function vs(e,t,n){let r=e.facet(ER);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const pg=it.define({combine:e=>e.length?e[0]:!0});let JZ=0;const Ru=it.define();class Zr{constructor(t,n,r,i,s){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=s(this)}static define(t,n){const{eventHandlers:r,eventObservers:i,provide:s,decorations:o}=n||{};return new Zr(JZ++,t,r,i,a=>{let l=[Ru.of(a)];return o&&l.push(Pd.of(c=>{let u=c.plugin(a);return u?o(u):ln.none})),s&&l.push(s(a)),l})}static fromClass(t,n){return Zr.define(r=>new t(r),n)}}class X0{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(vs(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(n){vs(t.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){vs(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const SR=it.define(),PE=it.define(),Pd=it.define(),kR=it.define(),LE=it.define(),xR=it.define();function jk(e,t){let n=e.state.facet(xR);if(!n.length)return n;let r=n.map(s=>s instanceof Function?s(e):s),i=[];return Bt.spans(r,t.from,t.to,{point(){},span(s,o,a,l){let c=s-t.from,u=o-t.from,d=i;for(let f=a.length-1;f>=0;f--,l--){let h=a[f].spec.bidiIsolate,p;if(h==null&&(h=XZ(t.text,c,u)),l>0&&d.length&&(p=d[d.length-1]).to==c&&p.direction==h)p.to=u,d=p.inner;else{let m={from:c,to:u,direction:h,inner:[]};d.push(m),d=m.inner}}}}),i}const AR=it.define();function CR(e){let t=0,n=0,r=0,i=0;for(let s of e.state.facet(AR)){let o=s(e);o&&(o.left!=null&&(t=Math.max(t,o.left)),o.right!=null&&(n=Math.max(n,o.right)),o.top!=null&&(r=Math.max(r,o.top)),o.bottom!=null&&(i=Math.max(i,o.bottom)))}return{left:t,right:n,top:r,bottom:i}}const Pu=it.define();class Xr{constructor(t,n,r,i){this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}join(t){return new Xr(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let n=t.length,r=this;for(;n>0;n--){let i=t[n-1];if(!(i.fromA>r.toA)){if(i.toA<r.fromA)break;r=r.join(i),t.splice(n-1,1)}}return t.splice(n,0,r),t}static extendWithRanges(t,n){if(n.length==0)return t;let r=[];for(let i=0,s=0,o=0,a=0;;i++){let l=i==t.length?null:t[i],c=o-a,u=l?l.fromB:1e9;for(;s<n.length&&n[s]<u;){let d=n[s],f=n[s+1],h=Math.max(a,d),p=Math.min(u,f);if(h<=p&&new Xr(h+c,p+c,h,p).addToSet(r),f>u)break;s+=2}if(!l)return r;new Xr(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),o=l.toA,a=l.toB}}}class Gp{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=In.empty(this.startState.doc.length);for(let s of r)this.changes=this.changes.compose(s.changes);let i=[];this.changes.iterChangedRanges((s,o,a,l)=>i.push(new Xr(s,o,a,l))),this.changedRanges=i}static create(t,n,r){return new Gp(t,n,r)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class qk extends Qt{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new Sn],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Xr(0,0,0,t.state.doc.length)],0,null)}update(t){var n;let r=t.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:c,toA:u})=>u<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!see(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let s=i>-1?eee(this.view,t.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:u}=this.hasComposition;r=new Xr(c,u,t.changes.mapPos(c,-1),t.changes.mapPos(u,1)).addToSet(r.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(Ye.ie||Ye.chrome)&&!s&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.updateDeco(),l=ree(o,a,t.changes);return r=Xr.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,s),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=Ye.chrome||Ye.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||i.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let o of this.children)o instanceof So&&o.widget instanceof Vk&&s.push(o.dom);i.updateGaps(s)}updateChildren(t,n,r){let i=r?r.range.addToSet(t.slice()):t,s=this.childCursor(n);for(let o=i.length-1;;o--){let a=o>=0?i[o]:null;if(!a)break;let{fromA:l,toA:c,fromB:u,toB:d}=a,f,h,p,m;if(r&&r.range.fromB<d&&r.range.toB>u){let w=ad.build(this.view.state.doc,u,r.range.fromB,this.decorations,this.dynamicDecorationMap),T=ad.build(this.view.state.doc,r.range.toB,d,this.decorations,this.dynamicDecorationMap);h=w.breakAtStart,p=w.openStart,m=T.openEnd;let _=this.compositionView(r);T.breakAtStart?_.breakAfter=1:T.content.length&&_.merge(_.length,_.length,T.content[0],!1,T.openStart,0)&&(_.breakAfter=T.content[0].breakAfter,T.content.shift()),w.content.length&&_.merge(0,0,w.content[w.content.length-1],!0,0,w.openEnd)&&w.content.pop(),f=w.content.concat(_).concat(T.content)}else({content:f,breakAtStart:h,openStart:p,openEnd:m}=ad.build(this.view.state.doc,u,d,this.decorations,this.dynamicDecorationMap));let{i:g,off:b}=s.findPos(c,1),{i:y,off:v}=s.findPos(l,-1);iR(this,y,v,g,b,f,h,p,m)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new Os(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new Ds(i,[n],n.length);let r=new Sn;return r.append(n,0),r}fixCompositionDOM(t){let n=(s,o)=>{o.flags|=8|(o.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(o);let a=Qt.get(s);a&&a!=o&&(a.dom=null),o.setDOM(s)},r=this.childPos(t.range.fromB,1),i=this.children[r.i];n(t.line,i);for(let s=t.marks.length-1;s>=-1;s--)r=i.childPos(r.off,1),i=i.children[r.i],n(s>=0?t.marks[s].node:t.text,i)}updateSelection(t=!1,n=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,s=!i&&op(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||s))return;let o=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),c=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(Ye.gecko&&a.empty&&!this.hasComposition&&ZZ(l)){let d=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(d,l.node.childNodes[l.offset]||null)),l=c=new Yn(d,0),o=!0}let u=this.view.observer.selectionRange;(o||!u.focusNode||(!od(l.node,l.offset,u.anchorNode,u.anchorOffset)||!od(c.node,c.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,a))&&(this.view.observer.ignore(()=>{Ye.android&&Ye.chrome&&this.dom.contains(u.focusNode)&&iee(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let d=Wp(this.view.root);if(d)if(a.empty){if(Ye.gecko){let f=tee(l.node,l.offset);if(f&&f!=3){let h=OR(l.node,l.offset,f==1?1:-1);h&&(l=new Yn(h.node,h.offset))}}d.collapse(l.node,l.offset),a.bidiLevel!=null&&d.caretBidiLevel!==void 0&&(d.caretBidiLevel=a.bidiLevel)}else if(d.extend){d.collapse(l.node,l.offset);try{d.extend(c.node,c.offset)}catch{}}else{let f=document.createRange();a.anchor>a.head&&([l,c]=[c,l]),f.setEnd(c.node,c.offset),f.setStart(l.node,l.offset),d.removeAllRanges(),d.addRange(f)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Yn(u.anchorNode,u.anchorOffset),this.impreciseHead=c.precise?null:new Yn(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&od(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,n=t.state.selection.main,r=Wp(t.root),{anchorNode:i,anchorOffset:s}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let o=Sn.find(this,n.head);if(!o)return;let a=o.posAtStart;if(n.head==a||n.head==a+o.length)return;let l=this.coordsAt(n.head,-1),c=this.coordsAt(n.head,1);if(!l||!c||l.bottom>c.top)return;let u=this.domAtPos(n.head+n.assoc);r.collapse(u.node,u.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let d=t.observer.selectionRange;t.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=n.from&&r.collapse(i,s)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let i=t.offset;!r&&i<n.childNodes.length;i++){let s=Qt.get(n.childNodes[i]);s instanceof Sn&&(r=s.domAtPos(0))}for(let i=t.offset-1;!r&&i>=0;i--){let s=Qt.get(n.childNodes[i]);s instanceof Sn&&(r=s.domAtPos(s.length))}return r?new Yn(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=Qt.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(t,n){let r=this.nearest(t);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(t,n)+r.posAtStart}domAtPos(t){let{i:n,off:r}=this.childCursor().findPos(t,-1);for(;n<this.children.length-1;){let i=this.children[n];if(r<i.length||i instanceof Sn)break;n++,r=0}return this.children[n].domAtPos(r)}coordsAt(t,n){let r=null,i=0;for(let s=this.length,o=this.children.length-1;o>=0;o--){let a=this.children[o],l=s-a.breakAfter,c=l-a.length;if(l<t)break;c<=t&&(c<t||a.covers(-1))&&(l>t||a.covers(1))&&(!r||a instanceof Sn&&!(r instanceof Sn&&n>=0))&&(r=a,i=c),s=c}return r?r.coordsAt(t-i,n):null}coordsForChar(t){let{i:n,off:r}=this.childPos(t,1),i=this.children[n];if(!(i instanceof Sn))return null;for(;i.children.length;){let{i:a,off:l}=i.childPos(r,1);for(;;a++){if(a==i.children.length)return null;if((i=i.children[a]).length)break}r=l}if(!(i instanceof Os))return null;let s=Vi(i.text,r);if(s==r)return null;let o=Ha(i.dom,r,s).getClientRects();for(let a=0;a<o.length;a++){let l=o[a];if(a==o.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(t){let n=[],{from:r,to:i}=t,s=this.view.contentDOM.clientWidth,o=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==exports.ct.LTR;for(let c=0,u=0;u<this.children.length;u++){let d=this.children[u],f=c+d.length;if(f>i)break;if(c>=r){let h=d.dom.getBoundingClientRect();if(n.push(h.height),o){let p=d.dom.lastChild,m=p?Id(p):[];if(m.length){let g=m[m.length-1],b=l?g.right-h.left:h.right-g.left;b>a&&(a=b,this.minWidth=s,this.minWidthFrom=c,this.minWidthTo=f)}}}c=f+d.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?exports.ct.RTL:exports.ct.LTR}measureTextSize(){for(let s of this.children)if(s instanceof Sn){let o=s.measureTextSize();if(o)return o}let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let s=Id(t.firstChild)[0];n=t.getBoundingClientRect().height,r=s?s.width/27:7,i=s?s.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(t=this.length){let n=this.children.length;return n&&(t-=this.children[--n].length),new rR(this.children,t,n)}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,i=0;;i++){let s=i==n.viewports.length?null:n.viewports[i],o=s?s.from-1:this.length;if(o>r){let a=(n.lineBlockAt(o).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(ln.replace({widget:new Vk(a),block:!0,inclusive:!0,isBlockGap:!0}).range(r,o))}if(!s)break;r=s.to+1}return ln.set(t)}updateDeco(){let t=this.view.state.facet(Pd).map((i,s)=>(this.dynamicDecorationMap[s]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(kR).map((i,s)=>{let o=typeof i=="function";return o&&(n=!0),o?i(this.view):i});r.length&&(this.dynamicDecorationMap[t.length]=n,t.push(Bt.join(r)));for(let i=t.length;i<t.length+3;i++)this.dynamicDecorationMap[i]=!1;return this.decorations=[...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(t){if(t.isSnapshot){let c=this.view.viewState.lineBlockAt(t.range.head);this.view.scrollDOM.scrollTop=c.top-t.yMargin,this.view.scrollDOM.scrollLeft=t.xMargin;return}let{range:n}=t,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let s=CR(this.view),o={left:r.left-s.left,top:r.top-s.top,right:r.right+s.right,bottom:r.bottom+s.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;IZ(this.view.scrollDOM,o,n.head<n.anchor?-1:1,t.x,t.y,Math.max(Math.min(t.xMargin,a),-a),Math.max(Math.min(t.yMargin,l),-l),this.view.textDirection==exports.ct.LTR)}}function ZZ(e){return e.node.nodeType==1&&e.node.firstChild&&(e.offset==0||e.node.childNodes[e.offset-1].contentEditable=="false")&&(e.offset==e.node.childNodes.length||e.node.childNodes[e.offset].contentEditable=="false")}class Vk extends Rc{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return t.className="cm-gap",this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function NR(e,t){let n=e.observer.selectionRange,r=n.focusNode&&OR(n.focusNode,n.focusOffset,0);if(!r)return null;let i=t-r.offset;return{from:i,to:i+r.node.nodeValue.length,node:r.node}}function eee(e,t,n){let r=NR(e,n);if(!r)return null;let{node:i,from:s,to:o}=r,a=i.nodeValue;if(/[\n\r]/.test(a)||e.state.doc.sliceString(r.from,r.to)!=a)return null;let l=t.invertedDesc,c=new Xr(l.mapPos(s),l.mapPos(o),s,o),u=[];for(let d=i.parentNode;;d=d.parentNode){let f=Qt.get(d);if(f instanceof Ds)u.push({node:d,deco:f.mark});else{if(f instanceof Sn||d.nodeName=="DIV"&&d.parentNode==e.contentDOM)return{range:c,text:i,marks:u,line:d};if(d!=e.contentDOM)u.push({node:d,deco:new pf({inclusive:!0,attributes:UZ(d),tagName:d.tagName.toLowerCase()})});else return null}}}function OR(e,t,n){if(n<=0)for(let r=e,i=t;;){if(r.nodeType==3)return{node:r,offset:i};if(r.nodeType==1&&i>0)r=r.childNodes[i-1],i=Ns(r);else break}if(n>=0)for(let r=e,i=t;;){if(r.nodeType==3)return{node:r,offset:i};if(r.nodeType==1&&i<r.childNodes.length&&n>=0)r=r.childNodes[i],i=0;else break}return null}function tee(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t<e.childNodes.length&&e.childNodes[t].contentEditable=="false"?2:0)}let nee=class{constructor(){this.changes=[]}compareRange(e,t){a1(e,t,this.changes)}comparePoint(e,t){a1(e,t,this.changes)}};function ree(e,t,n){let r=new nee;return Bt.compare(e,t,n,r),r.changes}function iee(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function see(e,t){let n=!1;return t&&e.iterChangedRanges((r,i)=>{r<t.to&&i>t.from&&(n=!0)}),n}function oee(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),s=t-i.from;if(i.length==0)return Je.cursor(t);s==0?n=1:s==i.length&&(n=-1);let o=s,a=s;n<0?o=Vi(i.text,s,!1):a=Vi(i.text,s);let l=r(i.text.slice(o,a));for(;o>0;){let c=Vi(i.text,o,!1);if(r(i.text.slice(c,o))!=l)break;o=c}for(;a<i.length;){let c=Vi(i.text,a);if(r(i.text.slice(a,c))!=l)break;a=c}return Je.range(o+i.from,a+i.from)}function aee(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function lee(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function Q0(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function zk(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function Kk(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function f1(e,t,n){let r,i,s,o,a=!1,l,c,u,d;for(let p=e.firstChild;p;p=p.nextSibling){let m=Id(p);for(let g=0;g<m.length;g++){let b=m[g];i&&Q0(i,b)&&(b=zk(Kk(b,i.bottom),i.top));let y=aee(t,b),v=lee(n,b);if(y==0&&v==0)return p.nodeType==3?Wk(p,t,n):f1(p,t,n);if(!r||o>v||o==v&&s>y){r=p,i=b,s=y,o=v;let w=v?n<b.top?-1:1:y?t<b.left?-1:1:0;a=!w||(w>0?g<m.length-1:g>0)}y==0?n>b.bottom&&(!u||u.bottom<b.bottom)?(l=p,u=b):n<b.top&&(!d||d.top>b.top)&&(c=p,d=b):u&&Q0(u,b)?u=Kk(u,b.bottom):d&&Q0(d,b)&&(d=zk(d,b.top))}}if(u&&u.bottom>=n?(r=l,i=u):d&&d.top<=n&&(r=c,i=d),!r)return{node:e,offset:0};let f=Math.max(i.left,Math.min(i.right,t));if(r.nodeType==3)return Wk(r,f,n);if(a&&r.contentEditable!="false")return f1(r,f,n);let h=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0);return{node:e,offset:h}}function Wk(e,t,n){let r=e.nodeValue.length,i=-1,s=1e9,o=0;for(let a=0;a<r;a++){let l=Ha(e,a,a+1).getClientRects();for(let c=0;c<l.length;c++){let u=l[c];if(u.top==u.bottom)continue;o||(o=t-u.left);let d=(u.top>n?u.top-n:n-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&d<s){let f=t>=(u.left+u.right)/2,h=f;if((Ye.chrome||Ye.gecko)&&Ha(e,a).getBoundingClientRect().left==u.right&&(h=!f),d<=0)return{node:e,offset:a+(h?1:0)};i=a+(h?1:0),s=d}}}return{node:e,offset:i>-1?i:o>0?e.nodeValue.length:0}}function DR(e,t,n,r=-1){var i,s;let o=e.contentDOM.getBoundingClientRect(),a=o.top+e.viewState.paddingTop,l,{docHeight:c}=e.viewState,{x:u,y:d}=t,f=d-a;if(f<0)return 0;if(f>c)return e.state.doc.length;for(let w=e.viewState.heightOracle.textHeight/2,T=!1;l=e.elementAtHeight(f),l.type!=vi.Text;)for(;f=r>0?l.bottom+w:l.top-w,!(f>=0&&f<=c);){if(T)return n?null:0;T=!0,r=-r}d=a+f;let h=l.from;if(h<e.viewport.from)return e.viewport.from==0?0:n?null:Gk(e,o,l,u,d);if(h>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:Gk(e,o,l,u,d);let p=e.dom.ownerDocument,m=e.root.elementFromPoint?e.root:p,g=m.elementFromPoint(u,d);g&&!e.contentDOM.contains(g)&&(g=null),g||(u=Math.max(o.left+1,Math.min(o.right-1,u)),g=m.elementFromPoint(u,d),g&&!e.contentDOM.contains(g)&&(g=null));let b,y=-1;if(g&&((i=e.docView.nearest(g))===null||i===void 0?void 0:i.isEditable)!=!1){if(p.caretPositionFromPoint){let w=p.caretPositionFromPoint(u,d);w&&({offsetNode:b,offset:y}=w)}else if(p.caretRangeFromPoint){let w=p.caretRangeFromPoint(u,d);w&&({startContainer:b,startOffset:y}=w,(!e.contentDOM.contains(b)||Ye.safari&&cee(b,y,u)||Ye.chrome&&uee(b,y,u))&&(b=void 0))}}if(!b||!e.docView.dom.contains(b)){let w=Sn.find(e.docView,h);if(!w)return f>l.top+l.height/2?l.to:l.from;({node:b,offset:y}=f1(w.dom,u,d))}let v=e.docView.nearest(b);if(!v)return null;if(v.isWidget&&((s=v.dom)===null||s===void 0?void 0:s.nodeType)==1){let w=v.dom.getBoundingClientRect();return t.y<w.top||t.y<=w.bottom&&t.x<=(w.left+w.right)/2?v.posAtStart:v.posAtEnd}else return v.localPosFromDOM(b,y)+v.posAtStart}function Gk(e,t,n,r,i){let s=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>e.defaultLineHeight*1.5){let a=e.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(e.defaultLineHeight-a)*.5)/a);s+=l*e.viewState.heightOracle.lineLength}let o=e.state.sliceDoc(n.from,n.to);return n.from+kZ(o,s,e.state.tabSize)}function cee(e,t,n){let r;if(e.nodeType!=3||t!=(r=e.nodeValue.length))return!1;for(let i=e.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return Ha(e,r-1,r).getBoundingClientRect().left>n}function uee(e,t,n){if(t!=0)return!1;for(let i=e;;){let s=i.parentNode;if(!s||s.nodeType!=1||s.firstChild!=i)return!1;if(s.classList.contains("cm-line"))break;i=s}let r=e.nodeType==1?e.getBoundingClientRect():Ha(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function dee(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>t||r.to==t&&(r.to==n.to||r.type==vi.Text))return r}return n}function fee(e,t,n,r){let i=dee(e,t.head),s=!r||i.type!=vi.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(s){let o=e.dom.getBoundingClientRect(),a=e.textDirectionAt(i.from),l=e.posAtCoords({x:n==(a==exports.ct.LTR)?o.right-1:o.left+1,y:(s.top+s.bottom)/2});if(l!=null)return Je.cursor(l,n?-1:1)}return Je.cursor(n?i.to:i.from,n?-1:1)}function Yk(e,t,n,r){let i=e.state.doc.lineAt(t.head),s=e.bidiSpans(i),o=e.textDirectionAt(i.from);for(let a=t,l=null;;){let c=YZ(i,s,o,a,n),u=gR;if(!c){if(i.number==(n?e.state.doc.lines:1))return a;u=`
209
209
  `,i=e.state.doc.line(i.number+(n?1:-1)),s=e.bidiSpans(i),c=e.visualLineSide(i,!n)}if(l){if(!l(u))return a}else{if(!r)return c;l=r(u)}a=c}}function hee(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return s=>{let o=r(s);return i==exports.Xr.Space&&(i=o),i==o}}function pee(e,t,n,r){let i=t.head,s=n?1:-1;if(i==(n?e.state.doc.length:0))return Je.cursor(i,t.assoc);let o=t.goalColumn,a,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(i,t.assoc||-1),u=e.documentTop;if(c)o==null&&(o=c.left-l.left),a=s<0?c.top:c.bottom;else{let h=e.viewState.lineBlockAt(i);o==null&&(o=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-h.from))),a=(s<0?h.top:h.bottom)+u}let d=l.left+o,f=r??e.viewState.heightOracle.textHeight>>1;for(let h=0;;h+=10){let p=a+(f+h)*s,m=DR(e,{x:d,y:p},!1,s);if(p<l.top||p>l.bottom||(s<0?m<i:m>i)){let g=e.docView.coordsForChar(m),b=!g||p<g.top?-1:1;return Je.cursor(m,b,void 0,o)}}}function ap(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(s,o,a)=>{if(t>s&&t<o){let l=r||n||(t-s<o-t?-1:1);t=l<0?s:o,r=l}});if(!r)return t}}function J0(e,t,n){let r=ap(e.state.facet(LE).map(i=>i(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:Je.cursor(r,r<n.from?1:-1)}class mee{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,Ye.safari&&t.contentDOM.addEventListener("input",()=>null),Ye.gecko&&Dee(t.contentDOM.ownerDocument)}handleEvent(t){!Tee(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,n){let r=this.handlers[t];if(r){for(let i of r.observers)i(this.view,n);for(let i of r.handlers){if(n.defaultPrevented)break;if(i(this.view,n)){n.preventDefault();break}}}}ensureHandlers(t){let n=gee(t),r=this.handlers,i=this.view.contentDOM;for(let s in n)if(s!="scroll"){let o=!n[s].handlers.length,a=r[s];a&&o!=!a.handlers.length&&(i.removeEventListener(s,this.handleEvent),a=null),a||i.addEventListener(s,this.handleEvent,{passive:o})}for(let s in r)s!="scroll"&&!n[s]&&i.removeEventListener(s,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(t.keyCode!=27&&RR.indexOf(t.keyCode)<0&&(this.view.inputState.lastEscPress=0),Ye.android&&Ye.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let n;return Ye.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((n=IR.find(r=>r.keyCode==t.keyCode))&&!t.ctrlKey||bee.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=n||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let t=this.pendingIOSKey;return t?(this.pendingIOSKey=void 0,zl(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:Ye.safari&&!Ye.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Xk(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){vs(n.state,i)}}}function gee(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let i=r.spec;if(i&&i.domEventHandlers)for(let s in i.domEventHandlers){let o=i.domEventHandlers[s];o&&n(s).handlers.push(Xk(r.value,o))}if(i&&i.domEventObservers)for(let s in i.domEventObservers){let o=i.domEventObservers[s];o&&n(s).observers.push(Xk(r.value,o))}}for(let r in Ti)n(r).handlers.push(Ti[r]);for(let r in Si)n(r).observers.push(Si[r]);return t}const IR=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],bee="dthko",RR=[16,17,18,20,91,92,224,225],yh=6;function vh(e){return Math.max(0,e)*.7+8}function yee(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class vee{constructor(t,n,r,i){this.view=t,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=RZ(t.contentDOM),this.atoms=t.state.facet(LE).map(o=>o(t));let s=t.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(Ft.allowMultipleSelections)&&Eee(t,n),this.dragging=wee(t,n)&&$R(n)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){var n;if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&yee(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let r=0,i=0,s=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},o=CR(this.view);t.clientX-o.left<=s.left+yh?r=-vh(s.left-t.clientX):t.clientX+o.right>=s.right-yh&&(r=vh(t.clientX-s.right)),t.clientY-o.top<=s.top+yh?i=-vh(s.top-t.clientY):t.clientY+o.bottom>=s.bottom-yh&&(i=vh(t.clientY-s.bottom)),this.setScrollSpeed(r,i)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,n){this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let n=null;for(let r=0;r<t.ranges.length;r++){let i=t.ranges[r],s=null;if(i.empty){let o=ap(this.atoms,i.from,0);o!=i.from&&(s=Je.cursor(o,-1))}else{let o=ap(this.atoms,i.from,-1),a=ap(this.atoms,i.to,1);(o!=i.from||a!=i.to)&&(s=Je.range(i.from==i.anchor?o:a,i.from==i.head?o:a))}s&&(n||(n=t.ranges.slice()),n[r]=s)}return n?Je.create(n,t.mainIndex):t}select(t){let{view:n}=this,r=this.skipAtoms(this.style.get(t,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Eee(e,t){let n=e.state.facet(bR);return n.length?n[0](t):Ye.mac?t.metaKey:t.ctrlKey}function _ee(e,t){let n=e.state.facet(yR);return n.length?n[0](t):Ye.mac?!t.altKey:!t.ctrlKey}function wee(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=Wp(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let s=0;s<i.length;s++){let o=i[s];if(o.left<=t.clientX&&o.right>=t.clientX&&o.top<=t.clientY&&o.bottom>=t.clientY)return!0}return!1}function Tee(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=Qt.get(n))&&r.ignoreEvent(t))return!1;return!0}const Ti=Object.create(null),Si=Object.create(null),PR=Ye.ie&&Ye.ie_version<15||Ye.ios&&Ye.webkit_version<604;function See(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),LR(e,n.value)},50)}function LR(e,t){let{state:n}=e,r,i=1,s=n.toText(t),o=s.lines==n.selection.ranges.length;if(h1!=null&&n.selection.ranges.every(a=>a.empty)&&h1==s.toString()){let a=-1;r=n.changeByRange(l=>{let c=n.doc.lineAt(l.from);if(c.from==a)return{range:l};a=c.from;let u=n.toText((o?s.line(i++).text:t)+n.lineBreak);return{changes:{from:c.from,insert:u},range:Je.cursor(l.from+u.length)}})}else o?r=n.changeByRange(a=>{let l=s.line(i++);return{changes:{from:a.from,to:a.to,insert:l.text},range:Je.cursor(a.from+l.length)}}):r=n.replaceSelection(s);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Si.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};Ti.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);Si.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};Si.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};Ti.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(vR))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=Aee(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new vee(e,t,n,r)),r&&e.observer.ignore(()=>eR(e.contentDOM));let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function Qk(e,t,n,r){if(r==1)return Je.cursor(t,n);if(r==2)return oee(e.state,t,n);{let i=Sn.find(e.docView,t),s=e.state.doc.lineAt(i?i.posAtEnd:t),o=i?i.posAtStart:s.from,a=i?i.posAtEnd:s.to;return a<e.state.doc.length&&a==s.to&&a++,Je.range(o,a)}}let MR=(e,t)=>e>=t.top&&e<=t.bottom,Jk=(e,t,n)=>MR(t,n)&&e>=n.left&&e<=n.right;function kee(e,t,n,r){let i=Sn.find(e.docView,t);if(!i)return 1;let s=t-i.posAtStart;if(s==0)return 1;if(s==i.length)return-1;let o=i.coordsAt(s,-1);if(o&&Jk(n,r,o))return-1;let a=i.coordsAt(s,1);return a&&Jk(n,r,a)?1:o&&MR(r,o)?-1:1}function Zk(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:kee(e,n,t.clientX,t.clientY)}}const xee=Ye.ie&&Ye.ie_version<=11;let ex=null,tx=0,nx=0;function $R(e){if(!xee)return e.detail;let t=ex,n=nx;return ex=e,nx=Date.now(),tx=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(tx+1)%3:1}function Aee(e,t){let n=Zk(e,t),r=$R(t),i=e.state.selection;return{update(s){s.docChanged&&(n.pos=s.changes.mapPos(n.pos),i=i.map(s.changes))},get(s,o,a){let l=Zk(e,s),c,u=Qk(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!o){let d=Qk(e,n.pos,n.bias,r),f=Math.min(d.from,u.from),h=Math.max(d.to,u.to);u=f<u.from?Je.range(f,h):Je.range(h,f)}return o?i.replaceRange(i.main.extend(u.from,u.to)):a&&r==1&&i.ranges.length>1&&(c=Cee(i,l.pos))?c:a?i.addRange(u):Je.create([u])}}}function Cee(e,t){for(let n=0;n<e.ranges.length;n++){let{from:r,to:i}=e.ranges[n];if(r<=t&&i>=t)return Je.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}Ti.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let s=i.posAtStart,o=s+i.length;(s>=n.to||o<=n.from)&&(n=Je.range(s,o))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1};Ti.dragend=e=>(e.inputState.draggedContent=null,!1);function rx(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:s}=e.inputState,o=r&&s&&_ee(e,t)?{from:s.from,to:s.to}:null,a={from:i,insert:n},l=e.state.changes(o?[o,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:o?"move.drop":"input.drop"}),e.inputState.draggedContent=null}Ti.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,s=()=>{++i==n.length&&rx(e,t,r.filter(o=>o!=null).join(e.state.lineBreak),!1)};for(let o=0;o<n.length;o++){let a=new FileReader;a.onerror=s,a.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(r[o]=a.result),s()},a.readAsText(n[o])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return rx(e,t,r,!0),!0}return!1};Ti.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=PR?null:t.clipboardData;return n?(LR(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(See(e),!1)};function Nee(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}function Oee(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:s}of e.selection.ranges){let o=e.doc.lineAt(s);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let h1=null;Ti.copy=Ti.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=Oee(e.state);if(!n&&!i)return!1;h1=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let s=PR?null:t.clipboardData;return s?(s.clearData(),s.setData("text/plain",n),!0):(Nee(e,n),!1)};const FR=il.define();function BR(e,t){let n=[];for(let r of e.facet(wR)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:FR.of(!0)}):null}function UR(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=BR(e.state,t);n?e.dispatch(n):e.update([])}},10)}Si.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),UR(e)};Si.blur=e=>{e.observer.clearSelectionRange(),UR(e)};Si.compositionstart=Si.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};Si.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,Ye.chrome&&Ye.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)};Si.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};Ti.beforeinput=(e,t)=>{var n;let r;if(Ye.chrome&&Ye.android&&(r=IR.find(i=>i.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>i+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return!1};const ix=new Set;function Dee(e){ix.has(e)||(ix.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const sx=["pre-wrap","normal","pre-line","break-spaces"];class Iee{constructor(t){this.lineWrapping=t,this.doc=Ut.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-t-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return sx.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r<t.length;r++){let i=t[r];i<0?r++:this.heightSamples[Math.floor(i*10)]||(n=!0,this.heightSamples[Math.floor(i*10)]=!0)}return n}refresh(t,n,r,i,s,o){let a=sx.indexOf(t)>-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=s,l){this.heightSamples={};for(let c=0;c<o.length;c++){let u=o[c];u<0?c++:this.heightSamples[Math.floor(u*10)]=!0}}return l}}class Ree{constructor(t,n){this.from=t,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class Bi{constructor(t,n,r,i,s){this.from=t,this.length=n,this.top=r,this.height=i,this._content=s}get type(){return typeof this._content=="number"?vi.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Io?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(t){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(t._content)?t._content:[t]);return new Bi(this.from,this.length+t.length,this.top,this.height+t.height,n)}}var Yt=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(Yt||(Yt={}));const lp=.001;class pr{constructor(t,n,r=2){this.length=t,this.height=n,this.flags=r}get outdated(){return(this.flags&2)>0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,n){this.height!=n&&(Math.abs(this.height-n)>lp&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return pr.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,i){let s=this,o=r.doc;for(let a=i.length-1;a>=0;a--){let{fromA:l,toA:c,fromB:u,toB:d}=i[a],f=s.lineAt(l,Yt.ByPosNoHeight,r.setDoc(n),0,0),h=f.to>=c?f:s.lineAt(c,Yt.ByPosNoHeight,r,0,0);for(d+=h.to-c,c=h.to;a>0&&f.from<=i[a-1].toA;)l=i[a-1].fromA,u=i[a-1].fromB,a--,l<f.from&&(f=s.lineAt(l,Yt.ByPosNoHeight,r,0,0));u+=f.from-l,l=f.from;let p=ME.build(r.setDoc(o),t,u,d);s=s.replace(l,c,p)}return s.updateHeight(r,0)}static empty(){return new Or(0,0)}static of(t){if(t.length==1)return t[0];let n=0,r=t.length,i=0,s=0;for(;;)if(n==r)if(i>s*2){let a=t[n-1];a.break?t.splice(--n,1,a.left,null,a.right):t.splice(--n,1,a.left,a.right),r+=1+a.break,i-=a.size}else if(s>i*2){let a=t[r];a.break?t.splice(r,1,a.left,null,a.right):t.splice(r,1,a.left,a.right),r+=2+a.break,s-=a.size}else break;else if(i<s){let a=t[n++];a&&(i+=a.size)}else{let a=t[--r];a&&(s+=a.size)}let o=0;return t[n-1]==null?(o=1,n--):t[n]==null&&(o=1,r++),new Pee(pr.of(t.slice(0,n)),o,pr.of(t.slice(r)))}}pr.prototype.size=1;class HR extends pr{constructor(t,n,r){super(t,n),this.deco=r}blockAt(t,n,r,i){return new Bi(i,this.length,r,this.height,this.deco||0)}lineAt(t,n,r,i,s){return this.blockAt(0,r,i,s)}forEachLine(t,n,r,i,s,o){t<=s+this.length&&n>=s&&o(this.blockAt(0,r,i,s))}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(t,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Or extends HR{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,i){return new Bi(i,this.length,r,this.height,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof Or||i instanceof Mn&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Mn?i=new Or(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):pr.of(r)}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(t,i.heights[i.index++]):(r||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Mn extends pr{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,i=t.doc.lineAt(n+this.length).number,s=i-r+1,o,a=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*s);o=l/s,this.length>s+1&&(a=(this.height-l)/(this.length-s-1))}else o=this.height/s;return{firstLine:r,lastLine:i,perLine:o,perChar:a}}blockAt(t,n,r,i){let{firstLine:s,lastLine:o,perLine:a,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let c=i+Math.round(Math.max(0,Math.min(1,(t-r)/this.height))*this.length),u=n.doc.lineAt(c),d=a+u.length*l,f=Math.max(r,t-d/2);return new Bi(u.from,u.length,f,d,0)}else{let c=Math.max(0,Math.min(o-s,Math.floor((t-r)/a))),{from:u,length:d}=n.doc.line(s+c);return new Bi(u,d,r+a*c,a,0)}}lineAt(t,n,r,i,s){if(n==Yt.ByHeight)return this.blockAt(t,r,i,s);if(n==Yt.ByPosNoHeight){let{from:h,to:p}=r.doc.lineAt(t);return new Bi(h,p-h,0,0,0)}let{firstLine:o,perLine:a,perChar:l}=this.heightMetrics(r,s),c=r.doc.lineAt(t),u=a+c.length*l,d=c.number-o,f=i+a*d+l*(c.from-s-d);return new Bi(c.from,c.length,Math.max(i,Math.min(f,i+this.height-u)),u,0)}forEachLine(t,n,r,i,s,o){t=Math.max(t,s),n=Math.min(n,s+this.length);let{firstLine:a,perLine:l,perChar:c}=this.heightMetrics(r,s);for(let u=t,d=i;u<=n;){let f=r.doc.lineAt(u);if(u==t){let p=f.number-a;d+=l*p+c*(t-s-p)}let h=l+c*f.length;o(new Bi(f.from,f.length,d,h,0)),d+=h,u=f.to+1}}replace(t,n,r){let i=this.length-n;if(i>0){let s=r[r.length-1];s instanceof Mn?r[r.length-1]=new Mn(s.length+i):r.push(null,new Mn(i-1))}if(t>0){let s=r[0];s instanceof Mn?r[0]=new Mn(t+s.length):r.unshift(new Mn(t-1),null)}return pr.of(r)}decomposeLeft(t,n){n.push(new Mn(t-1),null)}decomposeRight(t,n){n.push(null,new Mn(this.length-t-1))}updateHeight(t,n=0,r=!1,i){let s=n+this.length;if(i&&i.from<=n+this.length&&i.more){let o=[],a=Math.max(n,i.from),l=-1;for(i.from>n&&o.push(new Mn(i.from-n-1).updateHeight(t,n));a<=s&&i.more;){let u=t.doc.lineAt(a).length;o.length&&o.push(null);let d=i.heights[i.index++];l==-1?l=d:Math.abs(d-l)>=lp&&(l=-2);let f=new Or(u,d);f.outdated=!1,o.push(f),a+=u+1}a<=s&&o.push(null,new Mn(s-a).updateHeight(t,a));let c=pr.of(o);return(l<0||Math.abs(c.height-this.height)>=lp||Math.abs(l-this.heightMetrics(t,n).perLine)>=lp)&&(t.heightChanged=!0),c}else(r||this.outdated)&&(this.setHeight(t,t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Pee extends pr{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,i){let s=r+this.left.height;return t<s?this.left.blockAt(t,n,r,i):this.right.blockAt(t,n,s,i+this.left.length+this.break)}lineAt(t,n,r,i,s){let o=i+this.left.height,a=s+this.left.length+this.break,l=n==Yt.ByHeight?t<o:t<a,c=l?this.left.lineAt(t,n,r,i,s):this.right.lineAt(t,n,r,o,a);if(this.break||(l?c.to<a:c.from>a))return c;let u=n==Yt.ByPosNoHeight?Yt.ByPosNoHeight:Yt.ByPos;return l?c.join(this.right.lineAt(a,u,r,o,a)):this.left.lineAt(a,u,r,i,s).join(c)}forEachLine(t,n,r,i,s,o){let a=i+this.left.height,l=s+this.left.length+this.break;if(this.break)t<l&&this.left.forEachLine(t,n,r,i,s,o),n>=l&&this.right.forEachLine(t,n,r,a,l,o);else{let c=this.lineAt(l,Yt.ByPos,r,i,s);t<c.from&&this.left.forEachLine(t,c.from-1,r,i,s,o),c.to>=t&&c.from<=n&&o(c),n>c.to&&this.right.forEachLine(c.to+1,n,r,a,l,o)}}replace(t,n,r){let i=this.left.length+this.break;if(n<i)return this.balanced(this.left.replace(t,n,r),this.right);if(t>this.left.length)return this.balanced(this.left,this.right.replace(t-i,n-i,r));let s=[];t>0&&this.decomposeLeft(t,s);let o=s.length;for(let a of r)s.push(a);if(t>0&&ox(s,o-1),n<this.length){let a=s.length;this.decomposeRight(n,s),ox(s,a)}return pr.of(s)}decomposeLeft(t,n){let r=this.left.length;if(t<=r)return this.left.decomposeLeft(t,n);n.push(this.left),this.break&&(r++,t>=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,i=r+this.break;if(t>=i)return this.right.decomposeRight(t-i,n);t<r&&this.left.decomposeRight(t,n),this.break&&t<i&&n.push(null),n.push(this.right)}balanced(t,n){return t.size>2*n.size||n.size>2*t.size?pr.of(this.break?[t,null,n]:[t,n]):(this.left=t,this.right=n,this.height=t.height+n.height,this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,i){let{left:s,right:o}=this,a=n+s.length+this.break,l=null;return i&&i.from<=n+s.length&&i.more?l=s=s.updateHeight(t,n,r,i):s.updateHeight(t,n,r),i&&i.from<=a+o.length&&i.more?l=o=o.updateHeight(t,a,r,i):o.updateHeight(t,a,r),l?this.balanced(s,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function ox(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Mn&&(r=e[t+1])instanceof Mn&&e.splice(t-1,3,new Mn(n.length+1+r.length))}const Lee=5;class ME{constructor(t,n){this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof Or?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Or(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(t,n,r){if(t<n||r.heightRelevant){let i=r.widget?r.widget.estimatedHeight:0,s=r.widget?r.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let o=n-t;r.block?this.addBlock(new HR(o,i,r)):(o||s||i>=Lee)&&this.addLineDeco(i,s,o)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTo<t&&((this.writtenTo<t-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,t-1)),this.nodes.push(null)),this.pos>t&&this.nodes.push(new Or(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new Mn(n-t);return this.oracle.doc.lineAt(t).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Or)return t;let n=new Or(0,-1);return this.nodes.push(n),n}addBlock(t){this.enterLine();let n=t.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,n&&n.endSide>0&&(this.covering=t)}addLineDeco(t,n,r){let i=this.ensureLine();i.length+=r,i.collapsed+=r,i.widgetHeight=Math.max(i.widgetHeight,t),i.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(t){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof Or)&&!this.isCovered?this.nodes.push(new Or(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let r=t;for(let i of this.nodes)i instanceof Or&&i.updateHeight(this.oracle,r),r+=i?i.length:1;return this.nodes}static build(t,n,r,i){let s=new ME(r,t);return Bt.spans(n,r,i,s,0),s.finish(r)}}function Mee(e,t,n){let r=new $ee;return Bt.compare(e,t,n,r,0),r.changes}class $ee{constructor(){this.changes=[]}compareRange(){}comparePoint(t,n,r,i){(t<n||r&&r.heightRelevant||i&&i.heightRelevant)&&a1(t,n,this.changes,5)}}function Fee(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,i=r.defaultView||window,s=Math.max(0,n.left),o=Math.min(i.innerWidth,n.right),a=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let c=e.parentNode;c&&c!=r.body;)if(c.nodeType==1){let u=c,d=window.getComputedStyle(u);if((u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth)&&d.overflow!="visible"){let f=u.getBoundingClientRect();s=Math.max(s,f.left),o=Math.min(o,f.right),a=Math.max(a,f.top),l=c==e.parentNode?f.bottom:Math.min(l,f.bottom)}c=d.position=="absolute"||d.position=="fixed"?u.offsetParent:u.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:s-n.left,right:Math.max(s,o)-n.left,top:a-(n.top+t),bottom:Math.max(a,l)-(n.top+t)}}function Bee(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class Z0{constructor(t,n,r){this.from=t,this.to=n,this.size=r}static same(t,n){if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],s=n[r];if(i.from!=s.from||i.to!=s.to||i.size!=s.size)return!1}return!0}draw(t,n){return ln.replace({widget:new Uee(this.size*(n?t.scaleY:t.scaleX),n)}).range(this.from,this.to)}}class Uee extends Rc{constructor(t,n){super(),this.size=t,this.vertical=n}eq(t){return t.size==this.size&&t.vertical==this.vertical}toDOM(){let t=document.createElement("div");return this.vertical?t.style.height=this.size+"px":(t.style.width=this.size+"px",t.style.height="2px",t.style.display="inline-block"),t}get estimatedHeight(){return this.vertical?this.size:-1}}class ax{constructor(t){this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=lx,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=exports.ct.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=t.facet(PE).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new Iee(n),this.stateDeco=t.facet(Pd).filter(r=>typeof r!="function"),this.heightMap=pr.empty().applyChanges(this.stateDeco,Ut.empty,this.heightOracle.setDoc(t.doc),[new Xr(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ln.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!t.some(({from:s,to:o})=>i>=s&&i<=o)){let{from:s,to:o}=this.lineBlockAt(i);t.push(new Eh(s,o))}}this.viewports=t.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?lx:new qee(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(this.scaler.scale==1?t:Lu(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Pd).filter(u=>typeof u!="function");let i=t.changedRanges,s=Xr.extendWithRanges(i,Mee(r,this.stateDeco,t?t.changes:In.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=o&&(t.flags|=2),a?(this.scrollAnchorPos=t.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=s.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.head<l.from||n.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let c=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),c&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(QZ)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,s=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?exports.ct.RTL:exports.ct.LTR;let o=this.heightOracle.mustRefreshForWrapping(s),a=n.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let c=0,u=0;if(a.width&&a.height){let{scaleX:w,scaleY:T}=ZI(n,a);(this.scaleX!=w||this.scaleY!=T)&&(this.scaleX=w,this.scaleY=T,c|=8,o=l=!0)}let d=(parseInt(r.paddingTop)||0)*this.scaleY,f=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=d||this.paddingBottom!=f)&&(this.paddingTop=d,this.paddingBottom=f,c|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,c|=8);let h=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=h&&(this.scrollAnchorHeight=-1,this.scrollTop=h),this.scrolledToBottom=nR(t.scrollDOM);let p=(this.printing?Bee:Fee)(n,this.paddingTop),m=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let y=a.width;if((this.contentDOMWidth!=y||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=t.scrollDOM.clientHeight,c|=8),l){let w=t.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(w)&&(o=!0),o||i.lineWrapping&&Math.abs(y-this.contentDOMWidth)>i.charWidth){let{lineHeight:T,charWidth:_,textHeight:S}=t.docView.measureTextSize();o=T>0&&i.refresh(s,T,_,S,y/_,w),o&&(t.docView.minWidth=0,c|=8)}m>0&&g>0?u=Math.max(m,g):m<0&&g<0&&(u=Math.min(m,g)),i.heightChanged=!1;for(let T of this.viewports){let _=T.from==this.viewport.from?w:t.docView.measureVisibleLineHeights(T);this.heightMap=(o?pr.empty().applyChanges(this.stateDeco,Ut.empty,this.heightOracle,[new Xr(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,o,new Ree(T.from,_))}i.heightChanged&&(c|=2)}let v=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return v&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(c&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,t)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),i=this.heightMap,s=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,l=new Eh(i.lineAt(o-r*1e3,Yt.ByHeight,s,0,0).from,i.lineAt(a+(1-r)*1e3,Yt.ByHeight,s,0,0).to);if(n){let{head:c}=n.range;if(c<l.from||c>l.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=i.lineAt(c,Yt.ByPos,s,0,0),f;n.y=="center"?f=(d.top+d.bottom)/2-u/2:n.y=="start"||n.y=="nearest"&&c<l.from?f=d.top:f=d.bottom-u,l=new Eh(i.lineAt(f-1e3/2,Yt.ByHeight,s,0,0).from,i.lineAt(f+u+1e3/2,Yt.ByHeight,s,0,0).to)}}return l}mapViewport(t,n){let r=n.mapPos(t.from,-1),i=n.mapPos(t.to,1);return new Eh(this.heightMap.lineAt(r,Yt.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,Yt.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:t,to:n},r=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(t,Yt.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(n,Yt.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:a}=this;return(t==0||i<=o-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||s>=a+Math.max(10,Math.min(r,250)))&&i>o-2*1e3&&s<a+2*1e3}mapLineGaps(t,n){if(!t.length||n.empty)return t;let r=[];for(let i of t)n.touchesRange(i.from,i.to)||r.push(new Z0(n.mapPos(i.from),n.mapPos(i.to),i.size));return r}ensureLineGaps(t,n){let r=this.heightOracle.lineWrapping,i=r?1e4:2e3,s=i>>1,o=i<<1;if(this.defaultTextDirection!=exports.ct.LTR&&!r)return[];let a=[],l=(c,u,d,f)=>{if(u-c<s)return;let h=this.state.selection.main,p=[h.from];h.empty||p.push(h.to);for(let g of p)if(g>c&&g<u){l(c,g-10,d,f),l(g+10,u,d,f);return}let m=jee(t,g=>g.from>=d.from&&g.to<=d.to&&Math.abs(g.from-c)<s&&Math.abs(g.to-u)<s&&!p.some(b=>g.from<b&&g.to>b));if(!m){if(u<d.to&&n&&r&&n.visibleRanges.some(g=>g.from<=u&&g.to>=u)){let g=n.moveToLineBoundary(Je.cursor(u),!1,!0).head;g>c&&(u=g)}m=new Z0(c,u,this.gapSize(d,c,u,f))}a.push(m)};for(let c of this.viewportLines){if(c.length<o)continue;let u=Hee(c.from,c.to,this.stateDeco);if(u.total<o)continue;let d=this.scrollTarget?this.scrollTarget.range.head:null,f,h;if(r){let p=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,m,g;if(d!=null){let b=wh(u,d),y=((this.visibleBottom-this.visibleTop)/2+p)/c.height;m=b-y,g=b+y}else m=(this.visibleTop-c.top-p)/c.height,g=(this.visibleBottom-c.top+p)/c.height;f=_h(u,m),h=_h(u,g)}else{let p=u.total*this.heightOracle.charWidth,m=i*this.heightOracle.charWidth,g,b;if(d!=null){let y=wh(u,d),v=((this.pixelViewport.right-this.pixelViewport.left)/2+m)/p;g=y-v,b=y+v}else g=(this.pixelViewport.left-m)/p,b=(this.pixelViewport.right+m)/p;f=_h(u,g),h=_h(u,b)}f>c.from&&l(c.from,f,c,u),h<c.to&&l(h,c.to,c,u)}return a}gapSize(t,n,r,i){let s=wh(i,r)-wh(i,n);return this.heightOracle.lineWrapping?t.height*s:i.total*this.heightOracle.charWidth*s}updateLineGaps(t){Z0.same(t,this.lineGaps)||(this.lineGaps=t,this.lineGapDeco=ln.set(t.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];Bt.spans(t,this.viewport.from,this.viewport.to,{span(i,s){n.push({from:i,to:s})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,s)=>i.from!=n[s].from||i.to!=n[s].to);return this.visibleRanges=n,r?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||Lu(this.heightMap.lineAt(t,Yt.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return Lu(this.heightMap.lineAt(this.scaler.fromDOM(t),Yt.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let n=this.lineBlockAtHeight(t+8);return n.from>=this.viewport.from||this.viewportLines[0].top-t>200?n:this.viewportLines[0]}elementAtHeight(t){return Lu(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Eh{constructor(t,n){this.from=t,this.to=n}}function Hee(e,t,n){let r=[],i=e,s=0;return Bt.spans(n,e,t,{span(){},point(o,a){o>i&&(r.push({from:i,to:o}),s+=o-i),i=a}},20),i<t&&(r.push({from:i,to:t}),s+=t-i),{total:s,ranges:r}}function _h({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:s,to:o}=t[i],a=o-s;if(r<=a)return s+r;r-=a}}function wh(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}function jee(e,t){for(let n of e)if(t(n))return n}const lx={toDOM(e){return e},fromDOM(e){return e},scale:1};class qee{constructor(t,n,r){let i=0,s=0,o=0;this.viewports=r.map(({from:a,to:l})=>{let c=n.lineAt(a,Yt.ByPos,t,0,0).top,u=n.lineAt(l,Yt.ByPos,t,0,0).bottom;return i+=u-c,{from:a,to:l,top:c,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let a of this.viewports)a.domTop=o+(a.top-s)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),s=a.bottom}toDOM(t){for(let n=0,r=0,i=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||t<s.top)return i+(t-r)*this.scale;if(t<=s.bottom)return s.domTop+(t-s.top);r=s.bottom,i=s.domBottom}}fromDOM(t){for(let n=0,r=0,i=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||t<s.domTop)return r+(t-i)/this.scale;if(t<=s.domBottom)return s.top+(t-s.domTop);r=s.bottom,i=s.domBottom}}}function Lu(e,t){if(t.scale==1)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new Bi(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(i=>Lu(i,t)):e._content)}const Th=it.define({combine:e=>e.join(" ")}),p1=it.define({combine:e=>e.indexOf(!0)>-1}),m1=Oo.newName(),jR=Oo.newName(),qR=Oo.newName(),VR={"&light":"."+jR,"&dark":"."+qR};function g1(e,t,n){return new Oo(t,{finish(r){return/&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return e;if(!n||!n[i])throw new RangeError(`Unsupported selector: ${i}`);return n[i]}):e+" "+r}})}const Vee=g1("."+m1,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},VR),Mu="￿";class zee{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(Ft.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=Mu}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let i=t;;){this.findPointBefore(r,i);let s=this.text.length;this.readNode(i);let o=i.nextSibling;if(o==n)break;let a=Qt.get(i),l=Qt.get(o);(a&&l?a.breakAfter:(a?a.breakAfter:cx(i))||cx(o)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>s)&&this.lineBreak(),i=o}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,o=1,a;if(this.lineSeparator?(s=n.indexOf(this.lineSeparator,r),o=this.lineSeparator.length):(a=i.exec(n))&&(s=a.index,o=a[0].length),this.append(n.slice(r,s<0?n.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=o-1);r=s+o}}readNode(t){if(t.cmIgnore)return;let n=Qt.get(t),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(t,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,n){for(let r of this.points)r.node==t&&t.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(t,n){for(let r of this.points)(t.nodeType==3?r.node==t:t.contains(r.node))&&(r.pos=this.text.length+(Kee(t,r.node,r.offset)?n:0))}}function Kee(e,t,n){for(;;){if(!t||n<Ns(t))return!1;if(t==e)return!0;n=Rd(t)+1,t=t.parentNode}}function cx(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class ux{constructor(t,n){this.node=t,this.offset=n,this.pos=-1}}class Wee{constructor(t,n,r,i){this.typeOver=i,this.bounds=null,this.text="";let{impreciseHead:s,impreciseAnchor:o}=t.docView;if(t.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let a=s||o?[]:Xee(t),l=new zee(a,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=Qee(a,this.bounds.from)}else{let a=t.observer.selectionRange,l=s&&s.node==a.focusNode&&s.offset==a.focusOffset||!t1(t.contentDOM,a.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(a.focusNode,a.focusOffset),c=o&&o.node==a.anchorNode&&o.offset==a.anchorOffset||!t1(t.contentDOM,a.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(a.anchorNode,a.anchorOffset),u=t.viewport;if((Ye.ios||Ye.chrome)&&t.state.selection.main.empty&&l!=c&&(u.from>0||u.to<t.state.doc.length)){let d=Math.min(l,c),f=Math.max(l,c),h=u.from-d,p=u.to-f;(h==0||h==1||d==0)&&(p==0||p==-1||f==t.state.doc.length)&&(l=0,c=t.state.doc.length)}this.newSel=Je.single(c,l)}}}function zR(e,t){let n,{newSel:r}=t,i=e.state.selection.main,s=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:o,to:a}=t.bounds,l=i.from,c=null;(s===8||Ye.android&&t.text.length<a-o)&&(l=i.to,c="end");let u=Yee(e.state.doc.sliceString(o,a,Mu),t.text,l-o,c);u&&(Ye.chrome&&s==13&&u.toB==u.from+2&&t.text.slice(u.from,u.toB)==Mu+Mu&&u.toB--,n={from:o+u.from,to:o+u.toA,insert:Ut.of(t.text.slice(u.from,u.toB).split(Mu))})}else r&&(!e.hasFocus&&e.state.facet(pg)||r.main.eq(i))&&(r=null);if(!n&&!r)return!1;if(!n&&t.typeOver&&!i.empty&&r&&r.main.empty?n={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,i.to)}:n&&n.from>=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,i.to))}:(Ye.mac||Ye.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=Je.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Ut.of([" "])}):Ye.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==`
210
210
  `&&e.lineWrapping&&(r&&(r=Je.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Ut.of([" "])}),n){if(Ye.ios&&e.inputState.flushIOSKey()||Ye.android&&(n.from==i.from&&n.to==i.to&&n.insert.length==1&&n.insert.lines==2&&zl(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||s==8&&n.insert.length<n.to-n.from&&n.to>i.head)&&zl(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&zl(e.contentDOM,"Delete",46)))return!0;let o=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let a,l=()=>a||(a=Gee(e,n,r));return e.state.facet(_R).some(c=>c(e,n.from,n.to,o,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(i)){let o=!1,a="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(o=!0),a=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:o,userEvent:a}),!0}else return!1}function Gee(e,t,n){let r,i=e.state,s=i.selection.main;if(t.from>=s.from&&t.to<=s.to&&t.to-t.from>=(s.to-s.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let a=s.from<t.from?i.sliceDoc(s.from,t.from):"",l=s.to>t.to?i.sliceDoc(t.to,s.to):"";r=i.replaceSelection(e.state.toText(a+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let a=i.changes(t),l=n&&n.main.to<=a.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=s.to&&t.to>=s.to-10){let c=e.state.sliceDoc(t.from,t.to),u,d=n&&NR(e,n.main.head);if(d){let p=t.insert.length-(t.to-t.from);u={from:d.from,to:d.to-p}}else u=e.state.doc.lineAt(s.head);let f=s.to-t.to,h=s.to-s.from;r=i.changeByRange(p=>{if(p.from==s.from&&p.to==s.to)return{changes:a,range:l||p.map(a)};let m=p.to-f,g=m-c.length;if(p.to-p.from!=h||e.state.sliceDoc(g,m)!=c||p.to>=u.from&&p.from<=u.to)return{range:p};let b=i.changes({from:g,to:m,insert:t.insert}),y=p.to-s.to;return{changes:b,range:l?Je.range(Math.max(0,l.anchor+y),Math.max(0,l.head+y)):p.map(b)}})}else r={changes:a,selection:l&&i.selection.replaceRange(l)}}let o="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,o+=".compose",e.inputState.compositionFirstChange&&(o+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:o,scrollIntoView:!0})}function Yee(e,t,n,r){let i=Math.min(e.length,t.length),s=0;for(;s<i&&e.charCodeAt(s)==t.charCodeAt(s);)s++;if(s==i&&e.length==t.length)return null;let o=e.length,a=t.length;for(;o>0&&a>0&&e.charCodeAt(o-1)==t.charCodeAt(a-1);)o--,a--;if(r=="end"){let l=Math.max(0,s-Math.min(o,a));n-=o+l-s}if(o<s&&e.length<t.length){let l=n<=s&&n>=o?s-n:0;s-=l,a=s+(a-o),o=s}else if(a<s){let l=n<=s&&n>=a?s-n:0;s-=l,o=s+(o-a),a=s}return{from:s,toA:o,toB:a}}function Xee(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:s}=e.observer.selectionRange;return n&&(t.push(new ux(n,r)),(i!=n||s!=r)&&t.push(new ux(i,s))),t}function Qee(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?Je.single(n+t,r+t):null}const Jee={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},eb=Ye.ie&&Ye.ie_version<=11;class Zee{constructor(t){this.view=t,this.active=!1,this.selectionRange=new PZ,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(Ye.ie&&Ye.ie_version<=11||Ye.ios&&t.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),eb&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(t.scrollDOM)),this.addWindowListeners(this.win=t.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((n,r)=>n!=t[r]))){this.gapIntersection.disconnect();for(let n of t)this.gapIntersection.observe(n);this.gaps=t}}onSelectionChange(t){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(pg)?r.root.activeElement!=this.dom:!op(r.dom,i))return;let s=i.anchorNode&&r.docView.nearest(i.anchorNode);if(s&&s.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(Ye.ie&&Ye.ie_version<=11||Ye.android&&Ye.chrome)&&!r.state.selection.main.empty&&i.focusNode&&od(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=Ye.safari&&t.root.nodeType==11&&OZ(this.dom.ownerDocument)==this.dom&&ete(this.view)||Wp(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=op(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime<Date.now()-300&&MZ(this.dom,n)?(this.view.inputState.lastFocusTime=0,t.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(t,n){this.selectionRange.set(t.node,t.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let t=0,n=null;for(let r=this.dom;r;)if(r.nodeType==1)!n&&t<this.scrollTargets.length&&this.scrollTargets[t]==r?t++:n||(n=this.scrollTargets.slice(0,t)),n&&n.push(r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;if(t<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,t)),n){for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);for(let r of this.scrollTargets=n)r.addEventListener("scroll",this.onScroll)}}ignore(t){if(!this.active)return t();try{return this.stop(),t()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Jee),eb&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),eb&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(t,n){var r;if(!this.delayedAndroidKey){let i=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&zl(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let s of t){let o=this.readMutation(s);o&&(o.typeOver&&(i=!0),n==-1?{from:n,to:r}=o:(n=Math.min(o.from,n),r=Math.max(o.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&op(this.dom,this.selectionRange);if(t<0&&!i)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new Wee(this.view,t,n,r);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=zR(this.view,n);return this.view.state==r&&this.view.update([]),i}readMutation(t){let n=this.view.docView.nearest(t.target);if(!n||n.ignoreMutation(t))return null;if(n.markDirty(t.type=="attributes"),t.type=="attributes"&&(n.flags|=4),t.type=="childList"){let r=dx(n,t.previousSibling||t.target.previousSibling,-1),i=dx(n,t.nextSibling||t.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,n,r;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function dx(e,t,n){for(;t;){let r=Qt.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function ete(e){let t=null;function n(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,s=t.endContainer,o=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor);return od(a.node,a.offset,s,o)&&([r,i,s,o]=[s,o,r,i]),{anchorNode:r,anchorOffset:i,focusNode:s,focusOffset:o}}class kt{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:n}=t;this.dispatchTransactions=t.dispatchTransactions||n&&(r=>r.forEach(i=>n(i,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=t.root||LZ(t.parent)||document,this.viewState=new ax(t.state||Ft.create(t)),t.scrollTo&&t.scrollTo.is(bh)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Ru).map(r=>new X0(r));for(let r of this.plugins)r.update(this);this.observer=new Zee(this),this.inputState=new mee(this),this.inputState.ensureHandlers(this.plugins),this.docView=new qk(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=t.length==1&&t[0]instanceof Hn?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,s=this.state;for(let f of t){if(f.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=f.state}if(this.destroyed){this.viewState.state=s;return}let o=this.hasFocus,a=0,l=null;t.some(f=>f.annotation(FR))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=BR(s,o),l||(a=1));let c=this.observer.delayedAndroidKey,u=null;if(c?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(u=null)):this.observer.clear(),s.facet(Ft.phrases)!=this.state.facet(Ft.phrases))return this.setState(s);i=Gp.create(this,s,t),i.flags|=a;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let f of t){if(d&&(d=d.map(f.changes)),f.scrollIntoView){let{main:h}=f.state.selection;d=new Kl(h.empty?h:Je.cursor(h.head,h.head>h.anchor?-1:1))}for(let h of f.effects)h.is(bh)&&(d=h.value.clip(this.state))}this.viewState.update(i,d),this.bidiCache=Yp.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(Pu)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(Th)!=i.state.facet(Th)&&(this.viewState.mustMeasureContent=!0),(n||r||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let f of this.state.facet(d1))try{f(i)}catch(h){vs(this.state,h,"update listener")}(l||u)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),u&&!zR(this,u)&&c.force&&zl(this.contentDOM,c.key,c.keyCode)})}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new ax(t),this.plugins=t.facet(Ru).map(r=>new X0(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new qk(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(t){let n=t.startState.facet(Ru),r=t.state.facet(Ru);if(n!=r){let i=[];for(let s of r){let o=n.indexOf(s);if(o<0)i.push(new X0(s));else{let a=this.plugins[o];a.mustUpdate=t,i.push(a)}}for(let s of this.plugins)s.mustUpdate!=t&&s.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=t;for(let i=0;i<this.plugins.length;i++)this.plugins[i].update(this);n!=r&&this.inputState.ensureHandlers(this.plugins)}measure(t=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:o}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(o<0)if(nR(r))s=-1,o=this.viewState.heightMap.height;else{let h=this.viewState.scrollAnchorAt(i);s=h.from,o=h.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];l&4||([this.measureRequests,c]=[c,this.measureRequests]);let u=c.map(h=>{try{return h.read(this)}catch(p){return vs(this.state,p),fx}}),d=Gp.create(this,this.state,[]),f=!1;d.flags|=l,n?n.flags|=l:n=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),f=this.docView.update(d));for(let h=0;h<c.length;h++)if(u[h]!=fx)try{let p=c[h];p.write&&p.write(u[h],this)}catch(p){vs(this.state,p)}if(f&&this.docView.updateSelection(!0),!d.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let h=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-o;if(h>1||h<-1){i=i+h,r.scrollTop=i/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let a of this.state.facet(d1))a(n)}get themeClasses(){return m1+" "+(this.state.facet(p1)?qR:jR)+" "+this.state.facet(Th)}updateAttrs(){let t=hx(this,SR,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(pg)?"true":"false",class:"cm-content",style:`${Ye.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),hx(this,PE,n);let r=this.observer.ignore(()=>{let i=o1(this.contentDOM,this.contentAttrs,n),s=o1(this.dom,this.editorAttrs,t);return i||s});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let i of r.effects)if(i.is(kt.announce)){n&&(this.announceDOM.textContent=""),n=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(Pu);let t=this.state.facet(kt.cspNonce);Oo.mount(this.root,this.styleModules.concat(Vee).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===t.key){this.measureRequests[n]=t;return}}this.measureRequests.push(t)}}plugin(t){let n=this.pluginMap.get(t);return(n===void 0||n&&n.spec!=t)&&this.pluginMap.set(t,n=this.plugins.find(r=>r.spec==t)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,n,r){return J0(this,t,Yk(this,t,n,r))}moveByGroup(t,n){return J0(this,t,Yk(this,t,n,r=>hee(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),i=this.textDirectionAt(t.from),s=r[n?r.length-1:0];return Je.cursor(s.side(n,i)+t.from,s.forward(!n,i)?1:-1)}moveToLineBoundary(t,n,r=!0){return fee(this,t,n,r)}moveVertically(t,n,r){return J0(this,t,pee(this,t,n,r))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,n=0){return this.docView.posFromDOM(t,n)}posAtCoords(t,n=!0){return this.readMeasured(),DR(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(t),s=this.bidiSpans(i),o=s[yo.find(s,t-i.from,-1,n)];return OE(r,o.dir==exports.ct.LTR==n>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(TR)||t<this.viewport.from||t>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>tte)return mR(t.length);let n=this.textDirectionAt(t.from),r;for(let s of this.bidiCache)if(s.from==t.from&&s.dir==n&&(s.fresh||pR(s.isolates,r=jk(this,t))))return s.order;r||(r=jk(this,t));let i=GZ(t.text,n,r);return this.bidiCache.push(new Yp(t.from,t.to,n,r,!0,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||Ye.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{eR(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,n={}){return bh.of(new Kl(typeof t=="number"?Je.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(t);return bh.of(new Kl(Je.cursor(r.from),"start","start",r.top-t,n,!0))}static domEventHandlers(t){return Zr.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return Zr.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=Oo.newName(),i=[Th.of(r),Pu.of(g1(`.${r}`,t))];return n&&n.dark&&i.push(p1.of(!0)),i}static baseTheme(t){return ug.lowest(Pu.of(g1("."+m1,t,VR)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&Qt.get(r)||Qt.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}kt.styleModule=Pu;kt.inputHandler=_R;kt.focusChangeEffect=wR;kt.perLineTextDirection=TR;kt.exceptionSink=ER;kt.updateListener=d1;kt.editable=pg;kt.mouseSelectionStyle=vR;kt.dragMovesSelection=yR;kt.clickAddsSelectionRange=bR;kt.decorations=Pd;kt.outerDecorations=kR;kt.atomicRanges=LE;kt.bidiIsolatedRanges=xR;kt.scrollMargins=AR;kt.darkTheme=p1;kt.cspNonce=it.define({combine:e=>e.length?e[0]:""});kt.contentAttributes=PE;kt.editorAttributes=SR;kt.lineWrapping=kt.contentAttributes.of({class:"cm-lineWrapping"});kt.announce=xn.define();const tte=4096,fx={};class Yp{constructor(t,n,r,i,s,o){this.from=t,this.to=n,this.dir=r,this.isolates=i,this.fresh=s,this.order=o}static update(t,n){if(n.empty&&!t.some(s=>s.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:exports.ct.LTR;for(let s=Math.max(0,t.length-10);s<t.length;s++){let o=t[s];o.dir==i&&!n.touchesRange(o.from,o.to)&&r.push(new Yp(n.mapPos(o.from,1),n.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return r}}function hx(e,t,n){for(let r=e.state.facet(t),i=r.length-1;i>=0;i--){let s=r[i],o=typeof s=="function"?s(e):s;o&&s1(o,n)}return n}const nte=Ye.mac?"mac":Ye.windows?"win":Ye.linux?"linux":"key";function rte(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,s,o,a;for(let l=0;l<n.length-1;++l){const c=n[l];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))i=!0;else if(/^(c|ctrl|control)$/i.test(c))s=!0;else if(/^s(hift)?$/i.test(c))o=!0;else if(/^mod$/i.test(c))t=="mac"?a=!0:s=!0;else throw new Error("Unrecognized modifier name: "+c)}return i&&(r="Alt-"+r),s&&(r="Ctrl-"+r),a&&(r="Meta-"+r),o&&(r="Shift-"+r),r}function Sh(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n!==!1&&t.shiftKey&&(e="Shift-"+e),e}const ite=ug.default(kt.domEventHandlers({keydown(e,t){return lte(ste(t.state),e,t,"editor")}})),KR=it.define({enables:ite}),px=new WeakMap;function ste(e){let t=e.facet(KR),n=px.get(t);return n||px.set(t,n=ate(t.reduce((r,i)=>r.concat(i),[]))),n}let po=null;const ote=4e3;function ate(e,t=nte){let n=Object.create(null),r=Object.create(null),i=(o,a)=>{let l=r[o];if(l==null)r[o]=a;else if(l!=a)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},s=(o,a,l,c,u)=>{var d,f;let h=n[o]||(n[o]=Object.create(null)),p=a.split(/ (?!$)/).map(b=>rte(b,t));for(let b=1;b<p.length;b++){let y=p.slice(0,b).join(" ");i(y,!0),h[y]||(h[y]={preventDefault:!0,stopPropagation:!1,run:[v=>{let w=po={view:v,prefix:y,scope:o};return setTimeout(()=>{po==w&&(po=null)},ote),!0}]})}let m=p.join(" ");i(m,!1);let g=h[m]||(h[m]={preventDefault:!1,stopPropagation:!1,run:((f=(d=h._any)===null||d===void 0?void 0:d.run)===null||f===void 0?void 0:f.slice())||[]});l&&g.run.push(l),c&&(g.preventDefault=!0),u&&(g.stopPropagation=!0)};for(let o of e){let a=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let c of a){let u=n[c]||(n[c]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let d in u)u[d].run.push(o.any)}let l=o[t]||o.key;if(l)for(let c of a)s(c,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&s(c,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return n}function lte(e,t,n,r){let i=NZ(t),s=ql(i,0),o=Vp(s)==i.length&&i!=" ",a="",l=!1,c=!1,u=!1;po&&po.view==n&&po.scope==r&&(a=po.prefix+" ",RR.indexOf(t.keyCode)<0&&(c=!0,po=null));let d=new Set,f=g=>{if(g){for(let b of g.run)if(!d.has(b)&&(d.add(b),b(n,t)))return g.stopPropagation&&(u=!0),!0;g.preventDefault&&(g.stopPropagation&&(u=!0),c=!0)}return!1},h=e[r],p,m;return h&&(f(h[a+Sh(i,t,!o)])?l=!0:o&&(t.altKey||t.metaKey||t.ctrlKey)&&!(Ye.windows&&t.ctrlKey&&t.altKey)&&(p=Do[t.keyCode])&&p!=i?(f(h[a+Sh(p,t,!0)])||t.shiftKey&&(m=Dd[t.keyCode])!=i&&m!=p&&f(h[a+Sh(m,t,!1)]))&&(l=!0):o&&t.shiftKey&&f(h[a+Sh(i,t,!0)])&&(l=!0),!l&&f(h._any)&&(l=!0)),c&&(l=!0),l&&u&&t.stopPropagation(),l}function mx(e,t,n,r,i){t.lastIndex=0;for(let s=e.iterRange(n,r),o=n,a;!s.next().done;o+=s.value.length)if(!s.lineBreak)for(;a=t.exec(s.value);)i(o+a.index,a)}function cte(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:s}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),s=Math.min(e.state.doc.lineAt(s).to,s+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=s:r.push({from:i,to:s});return r}class WR{constructor(t){const{regexp:n,decoration:r,decorate:i,boundary:s,maxLength:o=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(a,l,c,u)=>i(u,c,c+a[0].length,a,l);else if(typeof r=="function")this.addMatch=(a,l,c,u)=>{let d=r(a,l,c);d&&u(c,c+a[0].length,d)};else if(r)this.addMatch=(a,l,c,u)=>u(c,c+a[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=o}createDeco(t){let n=new ac,r=n.add.bind(n);for(let{from:i,to:s}of cte(t,this.maxLength))mx(t.state.doc,this.regexp,i,s,(o,a)=>this.addMatch(a,t,o,r));return n.finish()}updateDeco(t,n){let r=1e9,i=-1;return t.docChanged&&t.changes.iterChanges((s,o,a,l)=>{l>t.view.viewport.from&&a<t.view.viewport.to&&(r=Math.min(a,r),i=Math.max(l,i))}),t.viewportChanged||i-r>1e3?this.createDeco(t.view):i>-1?this.updateRange(t.view,n.map(t.changes),r,i):n}updateRange(t,n,r,i){for(let s of t.visibleRanges){let o=Math.max(s.from,r),a=Math.min(s.to,i);if(a>o){let l=t.state.doc.lineAt(o),c=l.to<a?t.state.doc.lineAt(a):l,u=Math.max(s.from,l.from),d=Math.min(s.to,c.to);if(this.boundary){for(;o>l.from;o--)if(this.boundary.test(l.text[o-1-l.from])){u=o;break}for(;a<c.to;a++)if(this.boundary.test(c.text[a-c.from])){d=a;break}}let f=[],h,p=(m,g,b)=>f.push(b.range(m,g));if(l==c)for(this.regexp.lastIndex=u-l.from;(h=this.regexp.exec(l.text))&&h.index<d-l.from;)this.addMatch(h,t,h.index+l.from,p);else mx(t.state.doc,this.regexp,u,d,(m,g)=>this.addMatch(g,t,m,p));n=n.update({filterFrom:u,filterTo:d,filter:(m,g)=>m<u||g>d,add:f})}}return n}}const b1=/x/.unicode!=null?"gu":"g",ute=new RegExp(`[\0-\b
211
- --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,b1),dte={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let tb=null;function fte(){var e;if(tb==null&&typeof document<"u"&&document.body){let t=document.body.style;tb=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return tb||!1}const cp=it.define({combine(e){let t=fg(e,{render:null,specialChars:ute,addSpecialChars:null});return(t.replaceTabs=!fte())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,b1)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,b1)),t}});function hte(e={}){return[cp.of(e),pte()]}let gx=null;function pte(){return gx||(gx=Zr.fromClass(class{constructor(e){this.view=e,this.decorations=ln.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(cp)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new WR({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,s=ql(t[0],0);if(s==9){let o=i.lineAt(r),a=n.state.tabSize,l=NE(o.text,a,r-o.from);return ln.replace({widget:new yte((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=ln.replace({widget:new bte(e,s)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(cp);e.startState.facet(cp)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const mte="•";function gte(e){return e>=32?mte:e==10?"␤":String.fromCharCode(9216+e)}class bte extends Rc{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=gte(this.code),r=t.state.phrase("Control character")+" "+(dte[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let s=document.createElement("span");return s.textContent=n,s.title=r,s.setAttribute("aria-label",r),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class yte extends Rc{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}const Eu="-10000px";class vte{constructor(t,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=t.state.facet(n),this.tooltips=this.input.filter(o=>o);let s=null;this.tooltipViews=this.tooltips.map(o=>s=r(o,s))}update(t,n){var r;let i=t.state.facet(this.facet),s=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let o=[],a=n?[]:null;for(let l=0;l<s.length;l++){let c=s[l],u=-1;if(c){for(let d=0;d<this.tooltips.length;d++){let f=this.tooltips[d];f&&f.create==c.create&&(u=d)}if(u<0)o[l]=this.createTooltipView(c,l?o[l-1]:null),a&&(a[l]=!!c.above);else{let d=o[l]=this.tooltipViews[u];a&&(a[l]=n[u]),d.update&&d.update(t)}}}for(let l of this.tooltipViews)o.indexOf(l)<0&&(this.removeTooltipView(l),(r=l.destroy)===null||r===void 0||r.call(l));return n&&(a.forEach((l,c)=>n[c]=l),n.length=a.length),this.input=i,this.tooltips=s,this.tooltipViews=o,!0}}function Ete(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const nb=it.define({combine:e=>{var t,n,r;return{position:Ye.ios?"absolute":((t=e.find(i=>i.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||Ete}}}),bx=new WeakMap,GR=Zr.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(nb);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new vte(e,YR,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(nb);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",n.dom.insertBefore(i,r)}return n.dom.style.position=this.position,n.dom.style.top=Eu,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(e=r.destroy)===null||e===void 0||e.call(r);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(Ye.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==Eu&&i.style.left=="0px"){let s=i.getBoundingClientRect();r=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(t=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((i,s)=>{let o=this.manager.tooltipViews[s];return o.getCoords?o.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(nb).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:s}=e,o=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],c=this.manager.tooltipViews[a],{dom:u}=c,d=e.pos[a],f=e.size[a];if(!d||d.bottom<=Math.max(n.top,r.top)||d.top>=Math.min(n.bottom,r.bottom)||d.right<Math.max(n.left,r.left)-.1||d.left>Math.min(n.right,r.right)+.1){u.style.top=Eu;continue}let h=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,p=h?7:0,m=f.right-f.left,g=(t=bx.get(c))!==null&&t!==void 0?t:f.bottom-f.top,b=c.offset||wte,y=this.view.textDirection==exports.ct.LTR,v=f.width>r.right-r.left?y?r.left:r.right-f.width:y?Math.min(d.left-(h?14:0)+b.x,r.right-m):Math.max(r.left,d.left-m+(h?14:0)-b.x),w=this.above[a];!l.strictSide&&(w?d.top-(f.bottom-f.top)-b.y<r.top:d.bottom+(f.bottom-f.top)+b.y>r.bottom)&&w==r.bottom-d.bottom>d.top-r.top&&(w=this.above[a]=!w);let T=(w?d.top-r.top:r.bottom-d.bottom)-p;if(T<g&&c.resize!==!1){if(T<this.view.defaultLineHeight){u.style.top=Eu;continue}bx.set(c,g),u.style.height=(g=T)/s+"px"}else u.style.height&&(u.style.height="");let _=w?d.top-g-p-b.y:d.bottom+p+b.y,S=v+m;if(c.overlap!==!0)for(let I of o)I.left<S&&I.right>v&&I.top<_+g&&I.bottom>_&&(_=w?I.top-g-2-p:I.bottom+p+2);if(this.position=="absolute"?(u.style.top=(_-e.parent.top)/s+"px",u.style.left=(v-e.parent.left)/i+"px"):(u.style.top=_/s+"px",u.style.left=v/i+"px"),h){let I=d.left+(y?b.x:-b.x)-(v+14-7);h.style.left=I/i+"px"}c.overlap!==!0&&o.push({left:v,top:_,right:S,bottom:_+g}),u.classList.toggle("cm-tooltip-above",w),u.classList.toggle("cm-tooltip-below",!w),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Eu}},{eventObservers:{scroll(){this.maybeMeasure()}}}),_te=kt.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),wte={x:0,y:0},YR=it.define({enables:[GR,_te]});function Tte(e,t){let n=e.plugin(GR);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}class qa extends Ua{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}qa.prototype.elementClass="";qa.prototype.toDOM=void 0;qa.prototype.mapMode=exports.zt.TrackBefore;qa.prototype.startSide=qa.prototype.endSide=-1;qa.prototype.point=!0;const rb=it.define(),up=it.define(),y1=it.define({combine:e=>e.some(t=>t)});function Ste(e){let t=[kte];return e&&e.fixed===!1&&t.push(y1.of(!0)),t}const kte=Zr.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(up).map(t=>new vx(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(y1),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(y1)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=Bt.iter(this.view.state.facet(rb),this.view.viewport.from),r=[],i=this.gutters.map(s=>new xte(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(s.type)){let o=!0;for(let a of s.type)if(a.type==vi.Text&&o){v1(n,r,a.from);for(let l of i)l.line(this.view,a,r);o=!1}else if(a.widget)for(let l of i)l.widget(this.view,a)}else if(s.type==vi.Text){v1(n,r,s.from);for(let o of i)o.line(this.view,s,r)}else if(s.widget)for(let o of i)o.widget(this.view,s);for(let s of i)s.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(up),n=e.state.facet(up),r=e.docChanged||e.heightChanged||e.viewportChanged||!Bt.eq(e.startState.facet(rb),e.state.facet(rb),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let i of this.gutters)i.update(e)&&(r=!0);else{r=!0;let i=[];for(let s of n){let o=t.indexOf(s);o<0?i.push(new vx(this.view,s)):(this.gutters[o].update(e),i.push(this.gutters[o]))}for(let s of this.gutters)s.dom.remove(),i.indexOf(s)<0&&s.destroy();for(let s of i)this.dom.appendChild(s.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>kt.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==exports.ct.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function yx(e){return Array.isArray(e)?e:[e]}function v1(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class xte{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=Bt.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,s=(n.top-this.height)/t.scaleY,o=n.height/t.scaleY;if(this.i==i.elements.length){let a=new XR(t,o,s,r);i.elements.push(a),i.dom.appendChild(a.dom)}else i.elements[this.i].update(t,o,s,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];v1(this.cursor,i,n.from),r.length&&(i=i.concat(r));let s=this.gutter.config.lineMarker(t,n,i);s&&i.unshift(s);let o=this.gutter;i.length==0&&!o.config.renderEmptyElements||this.addElement(t,n,i)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class vx{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let s=i.target,o;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let l=s.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=i.clientY;let a=t.lineBlockAtHeight(o-t.documentTop);n.domEventHandlers[r](t,a,i)&&i.preventDefault()});this.markers=yx(n.markers(t)),n.initialSpacer&&(this.spacer=new XR(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let n=this.markers;if(this.markers=yx(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],t);i!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[i])}let r=t.view.viewport;return!Bt.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class XR{constructor(t,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,n,r,i)}update(t,n,r,i){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),Ate(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let s=0,o=0;;){let a=o,l=s<n.length?n[s++]:null,c=!1;if(l){let u=l.elementClass;u&&(r+=" "+u);for(let d=o;d<this.markers.length;d++)if(this.markers[d].compare(l)){a=d,c=!0;break}}else a=this.markers.length;for(;o<a;){let u=this.markers[o++];if(u.toDOM){u.destroy(i);let d=i.nextSibling;i.remove(),i=d}}if(!l)break;l.toDOM&&(c?i=i.nextSibling:this.dom.insertBefore(l.toDOM(t),i)),c&&o++}this.dom.className=r,this.markers=n}destroy(){this.setMarkers(null,[])}}function Ate(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}const Cte=it.define(),Cl=it.define({combine(e){return fg(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,n){let r=Object.assign({},t);for(let i in n){let s=r[i],o=n[i];r[i]=s?(a,l,c)=>s(a,l,c)||o(a,l,c):o}return r}})}});class ib extends qa{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function sb(e,t){return e.state.facet(Cl).formatNumber(t,e.state)}const Nte=up.compute([Cl],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(Cte)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new ib(sb(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(Cl)!=t.state.facet(Cl),initialSpacer(t){return new ib(sb(t,Ex(t.state.doc.lines)))},updateSpacer(t,n){let r=sb(n.view,Ex(n.view.state.doc.lines));return r==t.number?t:new ib(r)},domEventHandlers:e.facet(Cl).domEventHandlers}));function Ote(e={}){return[Cl.of(e),Ste(),Nte]}function Ex(e){let t=9;for(;t<e;)t=t*10+9;return t}const QR=1024;let Dte=0;class Wr{constructor(t,n){this.from=t,this.to=n}}class Nt{constructor(t={}){this.id=Dte++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=mr.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}Nt.closedBy=new Nt({deserialize:e=>e.split(" ")});Nt.openedBy=new Nt({deserialize:e=>e.split(" ")});Nt.group=new Nt({deserialize:e=>e.split(" ")});Nt.isolate=new Nt({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});Nt.contextHash=new Nt({perNode:!0});Nt.lookAhead=new Nt({perNode:!0});Nt.mounted=new Nt({perNode:!0});class Ld{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[Nt.mounted.id]}}const Ite=Object.create(null);class mr{constructor(t,n,r,i=0){this.name=t,this.props=n,this.id=r,this.flags=i}static define(t){let n=t.props&&t.props.length?Object.create(null):Ite,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new mr(t.name||"",n,t.id,r);if(t.props){for(let s of t.props)if(Array.isArray(s)||(s=s(i)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(Nt.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let i of r.split(" "))n[i]=t[r];return r=>{for(let i=r.prop(Nt.group),s=-1;s<(i?i.length:0);s++){let o=n[s<0?r.name:i[s]];if(o)return o}}}}mr.none=new mr("",Object.create(null),0,8);class $E{constructor(t){this.types=t;for(let n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let n=[];for(let r of this.types){let i=null;for(let s of t){let o=s(r);o&&(i||(i=Object.assign({},r.props)),i[o[0].id]=o[1])}n.push(i?new mr(r.name,i,r.id,r.flags):r)}return new $E(n)}}const kh=new WeakMap,_x=new WeakMap;exports.Xe=void 0;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(exports.Xe||(exports.Xe={}));class En{constructor(t,n,r,i,s){if(this.type=t,this.children=n,this.positions=r,this.length=i,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,a]of s)this.props[typeof o=="number"?o:o.id]=a}}toString(){let t=Ld.get(this);if(t&&!t.overlay)return t.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(t=0){return new Xp(this.topNode,t)}cursorAt(t,n=0,r=0){let i=kh.get(this)||this.topNode,s=new Xp(i);return s.moveTo(t,n),kh.set(this,s._tree),s}get topNode(){return new Jn(this,0,0,null)}resolve(t,n=0){let r=Md(kh.get(this)||this.topNode,t,n,!1);return kh.set(this,r),r}resolveInner(t,n=0){let r=Md(_x.get(this)||this.topNode,t,n,!0);return _x.set(this,r),r}resolveStack(t,n=0){return Lte(this,t,n)}iterate(t){let{enter:n,leave:r,from:i=0,to:s=this.length}=t,o=t.mode||0,a=(o&exports.Xe.IncludeAnonymous)>0;for(let l=this.cursor(o|exports.Xe.IncludeAnonymous);;){let c=!1;if(l.from<=s&&l.to>=i&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&r&&(a||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:UE(mr.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new En(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new En(mr.none,n,r,i)))}static build(t){return Mte(t)}}En.empty=new En(mr.none,[],[],0);class FE{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new FE(this.buffer,this.index)}}class Ro{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return mr.none}toString(){let t=[];for(let n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}childString(t){let n=this.buffer[t],r=this.buffer[t+3],i=this.set.types[n],s=i.name;if(/\W/.test(s)&&!i.isError&&(s=JSON.stringify(s)),t+=4,r==t)return s;let o=[];for(;t<r;)o.push(this.childString(t)),t=this.buffer[t+3];return s+"("+o.join(",")+")"}findChild(t,n,r,i,s){let{buffer:o}=this,a=-1;for(let l=t;l!=n&&!(JR(s,i,o[l+1],o[l+2])&&(a=l,r>0));l=o[l+3]);return a}slice(t,n,r){let i=this.buffer,s=new Uint16Array(n-t),o=0;for(let a=t,l=0;a<n;){s[l++]=i[a++],s[l++]=i[a++]-r;let c=s[l++]=i[a++]-r;s[l++]=i[a++]-t,o=Math.max(o,c)}return new Ro(s,o,this.set)}}function JR(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function Md(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let o=!r&&e instanceof Jn&&e.index<0?null:e.parent;if(!o)return e;e=o}let s=r?0:exports.Xe.IgnoreOverlays;if(r)for(let o=e,a=o.parent;a;o=a,a=o.parent)o instanceof Jn&&o.index<0&&((i=a.enter(t,n,s))===null||i===void 0?void 0:i.from)!=o.from&&(e=a);for(;;){let o=e.enter(t,n,s);if(!o)return e;e=o}}class ZR{cursor(t=0){return new Xp(this,t)}getChild(t,n=null,r=null){let i=wx(this,t,n,r);return i.length?i[0]:null}getChildren(t,n=null,r=null){return wx(this,t,n,r)}resolve(t,n=0){return Md(this,t,n,!1)}resolveInner(t,n=0){return Md(this,t,n,!0)}matchContext(t){return E1(this,t)}enterUnfinishedNodesBefore(t){let n=this.childBefore(t),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i}return r}get node(){return this}get next(){return this.parent}}class Jn extends ZR{constructor(t,n,r,i){super(),this._tree=t,this.from=n,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,n,r,i,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,c=n>0?a.length:-1;t!=c;t+=n){let u=a[t],d=l[t]+o.from;if(JR(i,r,d,d+u.length)){if(u instanceof Ro){if(s&exports.Xe.ExcludeBuffers)continue;let f=u.findChild(0,u.buffer.length,n,r-d,i);if(f>-1)return new zi(new Rte(o,u,t,d),null,f)}else if(s&exports.Xe.IncludeAnonymous||!u.type.isAnonymous||BE(u)){let f;if(!(s&exports.Xe.IgnoreMounts)&&(f=Ld.get(u))&&!f.overlay)return new Jn(f.tree,d,t,o);let h=new Jn(u,d,t,o);return s&exports.Xe.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(n<0?u.children.length-1:0,n,r,i)}}}if(s&exports.Xe.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+n:t=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&exports.Xe.IgnoreOverlays)&&(i=Ld.get(this._tree))&&i.overlay){let s=t-this.from;for(let{from:o,to:a}of i.overlay)if((n>0?o<=s:o<s)&&(n<0?a>=s:a>s))return new Jn(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function wx(e,t,n,r){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(n!=null){for(let o=!1;!o;)if(o=i.type.is(n),!i.nextSibling())return s}for(;;){if(r!=null&&i.type.is(r))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return r==null?s:[]}}function E1(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class Rte{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class zi extends ZR{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return s<0?null:new zi(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&exports.Xe.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return s<0?null:new zi(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new zi(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new zi(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,s=r.buffer[this.index+3];if(s>i){let o=r.buffer[this.index+1];t.push(r.slice(i,s,o)),n.push(0)}return new En(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function eP(e){if(!e.length)return null;let t=0,n=e[0];for(let s=1;s<e.length;s++){let o=e[s];(o.from>n.from||o.to<n.to)&&(n=o,t=s)}let r=n instanceof Jn&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new Pte(i,n)}class Pte{constructor(t,n){this.heads=t,this.node=n}get next(){return eP(this.heads)}}function Lte(e,t,n){let r=e.resolveInner(t,n),i=null;for(let s=r instanceof Jn?r:r.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(i||(i=[r])).push(o.resolve(t,n)),s=o}else{let o=Ld.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let a=new Jn(o.tree,o.overlay[0].from+s.from,-1,s);(i||(i=[r])).push(Md(a,t,n,!1))}}return i?eP(i):r}class Xp{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Jn)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}yield(t){return t?t instanceof Jn?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,s=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&exports.Xe.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&exports.Xe.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&exports.Xe.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index<i.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(i.buffer.buffer[s+3]<this.index)return!1;({index:n,parent:r}=i)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let s=n+t,o=t<0?-1:r._tree.children.length;s!=o;s+=t){let a=r._tree.children[s];if(this.mode&exports.Xe.IncludeAnonymous||a instanceof Ro||!a.type.isAnonymous||BE(a))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer)e:for(let i=this.index,s=this.stack.length;s>=0;){for(let o=t;o;o=o._parent)if(o.index==i){if(i==this.index)return o;n=o,r=s+1;break e}i=this.stack[--s]}for(let i=r;i<this.stack.length;i++)n=new zi(this.buffer,n,this.stack[i]);return this.bufferNode=new zi(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,n){for(let r=0;;){let i=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;i&&n&&n(this),i=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,i=!0}}}matchContext(t){if(!this.buffer)return E1(this.node,t);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=t.length-1,s=this.stack.length-1;i>=0;s--){if(s<0)return E1(this.node,t,i);let o=r[n.buffer[this.stack[s]]];if(!o.isAnonymous){if(t[i]&&t[i]!=o.name)return!1;i--}}return!0}}function BE(e){return e.children.some(t=>t instanceof Ro||!t.type.isAnonymous||BE(t))}function Mte(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=QR,reused:s=[],minRepeatType:o=r.types.length}=e,a=Array.isArray(n)?new FE(n,n.length):n,l=r.types,c=0,u=0;function d(T,_,S,I,R,O){let{id:K,start:B,end:ge,size:le}=a,ye=u;for(;le<0;)if(a.next(),le==-1){let C=s[K];S.push(C),I.push(B-T);return}else if(le==-3){c=K;return}else if(le==-4){u=K;return}else throw new RangeError(`Unrecognized record size: ${le}`);let Fe=l[K],J,ee,he=B-T;if(ge-B<=i&&(ee=g(a.pos-_,R))){let C=new Uint16Array(ee.size-ee.skip),F=a.pos-ee.size,X=C.length;for(;a.pos>F;)X=b(ee.start,C,X);J=new Ro(C,ge-ee.start,r),he=ee.start-T}else{let C=a.pos-le;a.next();let F=[],X=[],k=K>=o?K:-1,D=0,U=ge;for(;a.pos>C;)k>=0&&a.id==k&&a.size>=0?(a.end<=U-i&&(p(F,X,B,D,a.end,U,k,ye),D=F.length,U=a.end),a.next()):O>2500?f(B,C,F,X):d(B,C,F,X,k,O+1);if(k>=0&&D>0&&D<F.length&&p(F,X,B,D,B,U,k,ye),F.reverse(),X.reverse(),k>-1&&D>0){let q=h(Fe);J=UE(Fe,F,X,0,F.length,0,ge-B,q,q)}else J=m(Fe,F,X,ge-B,ye-ge)}S.push(J),I.push(he)}function f(T,_,S,I){let R=[],O=0,K=-1;for(;a.pos>_;){let{id:B,start:ge,end:le,size:ye}=a;if(ye>4)a.next();else{if(K>-1&&ge<K)break;K<0&&(K=le-i),R.push(B,ge,le),O++,a.next()}}if(O){let B=new Uint16Array(O*4),ge=R[R.length-2];for(let le=R.length-3,ye=0;le>=0;le-=3)B[ye++]=R[le],B[ye++]=R[le+1]-ge,B[ye++]=R[le+2]-ge,B[ye++]=ye;S.push(new Ro(B,R[2]-ge,r)),I.push(ge-T)}}function h(T){return(_,S,I)=>{let R=0,O=_.length-1,K,B;if(O>=0&&(K=_[O])instanceof En){if(!O&&K.type==T&&K.length==I)return K;(B=K.prop(Nt.lookAhead))&&(R=S[O]+K.length+B)}return m(T,_,S,I,R)}}function p(T,_,S,I,R,O,K,B){let ge=[],le=[];for(;T.length>I;)ge.push(T.pop()),le.push(_.pop()+S-R);T.push(m(r.types[K],ge,le,O-R,B-O)),_.push(R-S)}function m(T,_,S,I,R=0,O){if(c){let K=[Nt.contextHash,c];O=O?[K].concat(O):[K]}if(R>25){let K=[Nt.lookAhead,R];O=O?[K].concat(O):[K]}return new En(T,_,S,I,O)}function g(T,_){let S=a.fork(),I=0,R=0,O=0,K=S.end-i,B={size:0,start:0,skip:0};e:for(let ge=S.pos-T;S.pos>ge;){let le=S.size;if(S.id==_&&le>=0){B.size=I,B.start=R,B.skip=O,O+=4,I+=4,S.next();continue}let ye=S.pos-le;if(le<0||ye<ge||S.start<K)break;let Fe=S.id>=o?4:0,J=S.start;for(S.next();S.pos>ye;){if(S.size<0)if(S.size==-3)Fe+=4;else break e;else S.id>=o&&(Fe+=4);S.next()}R=J,I+=le,O+=Fe}return(_<0||I==T)&&(B.size=I,B.start=R,B.skip=O),B.size>4?B:void 0}function b(T,_,S){let{id:I,start:R,end:O,size:K}=a;if(a.next(),K>=0&&I<o){let B=S;if(K>4){let ge=a.pos-(K-4);for(;a.pos>ge;)S=b(T,_,S)}_[--S]=B,_[--S]=O-T,_[--S]=R-T,_[--S]=I}else K==-3?c=I:K==-4&&(u=I);return S}let y=[],v=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,y,v,-1,0);let w=(t=e.length)!==null&&t!==void 0?t:y.length?v[0]+y[0].length:0;return new En(l[e.topID],y.reverse(),v.reverse(),w)}const Tx=new WeakMap;function dp(e,t){if(!e.isAnonymous||t instanceof Ro||t.type!=e)return 1;let n=Tx.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof En)){n=1;break}n+=dp(e,r)}Tx.set(t,n)}return n}function UE(e,t,n,r,i,s,o,a,l){let c=0;for(let p=r;p<i;p++)c+=dp(e,t[p]);let u=Math.ceil(c*1.5/8),d=[],f=[];function h(p,m,g,b,y){for(let v=g;v<b;){let w=v,T=m[v],_=dp(e,p[v]);for(v++;v<b;v++){let S=dp(e,p[v]);if(_+S>=u)break;_+=S}if(v==w+1){if(_>u){let S=p[w];h(S.children,S.positions,0,S.children.length,m[w]+y);continue}d.push(p[w])}else{let S=m[v-1]+p[v-1].length-T;d.push(UE(e,p,m,w,v,T,S,null,l))}f.push(T+y-s)}}return h(t,n,r,i,0),(a||l)(d,f,o)}class $te{constructor(){this.map=new WeakMap}setBuffer(t,n,r){let i=this.map.get(t);i||this.map.set(t,i=new Map),i.set(n,r)}getBuffer(t,n){let r=this.map.get(t);return r&&r.get(n)}set(t,n){t instanceof zi?this.setBuffer(t.context.buffer,t.index,n):t instanceof Jn&&this.map.set(t.tree,n)}get(t){return t instanceof zi?this.getBuffer(t.context.buffer,t.index):t instanceof Jn?this.map.get(t.tree):void 0}cursorSet(t,n){t.buffer?this.setBuffer(t.buffer.buffer,t.index,n):this.map.set(t.tree,n)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class Es{constructor(t,n,r,i,s=!1,o=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new Es(0,t.length,t,0,!1,r)];for(let s of n)s.to>t.length&&i.push(s);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],s=1,o=t.length?t[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<n.length?n[a]:null,d=u?u.fromA:1e9;if(d-l>=r)for(;o&&o.from<d;){let f=o;if(l>=f.from||d<=f.to||c){let h=Math.max(f.from,l)-c,p=Math.min(f.to,d)-c;f=h>=p?null:new Es(h,p,f.tree,f.offset+c,a>0,!!u)}if(f&&i.push(f),o.to>d)break;o=s<t.length?t[s++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return i}}class tP{startParse(t,n,r){return typeof t=="string"&&(t=new Fte(t)),r=r?r.length?r.map(i=>new Wr(i.from,i.to)):[new Wr(0,0)]:[new Wr(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let s=i.advance();if(s)return s}}}class Fte{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}function Bte(e){return(t,n,r,i)=>new Hte(t,e,n,r,i)}class Sx{constructor(t,n,r,i,s){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=s}}function kx(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class Ute{constructor(t,n,r,i,s,o,a){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=s,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}}const _1=new Nt({perNode:!0});class Hte{constructor(t,n,r,i,s){this.nest=n,this.input=r,this.fragments=i,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new En(r.type,r.children,r.positions,r.length,r.propValues.concat([[_1,this.stoppedAt]]))),r}let t=this.inner[this.innerDone],n=t.parse.advance();if(n){this.innerDone++;let r=Object.assign(Object.create(null),t.target.props);r[Nt.mounted.id]=new Ld(n,t.overlay,t.parser),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].from<t&&(t=Math.min(t,this.inner[n].parse.parsedPos));return t}stopAt(t){if(this.stoppedAt=t,this.baseParse)this.baseParse.stopAt(t);else for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].parse.stopAt(t)}startInner(){let t=new Vte(this.fragments),n=null,r=null,i=new Xp(new Jn(this.baseTree,this.ranges[0].from,0,null),exports.Xe.IncludeAnonymous|exports.Xe.IgnoreMounts);e:for(let s,o;;){let a=!0,l;if(this.stoppedAt!=null&&i.from>=this.stoppedAt)a=!1;else if(t.hasNode(i)){if(n){let c=n.mounts.find(u=>u.frag.from<=i.from&&u.frag.to>=i.to&&u.mount.overlay);if(c)for(let u of c.mount.overlay){let d=u.from+c.pos,f=u.to+c.pos;d>=i.from&&f<=i.to&&!n.ranges.some(h=>h.from<f&&h.to>d)&&n.ranges.push({from:d,to:f})}}a=!1}else if(r&&(o=jte(r.ranges,i.from,i.to)))a=o!=2;else if(!i.type.isAnonymous&&(s=this.nest(i,this.input))&&(i.from<i.to||!s.overlay)){i.tree||qte(i);let c=t.findMounts(i.from,s.parser);if(typeof s.overlay=="function")n=new Ute(s.parser,s.overlay,c,this.inner.length,i.from,i.tree,n);else{let u=Cx(this.ranges,s.overlay||(i.from<i.to?[new Wr(i.from,i.to)]:[]));u.length&&kx(u),(u.length||!s.overlay)&&this.inner.push(new Sx(s.parser,u.length?s.parser.startParse(this.input,Nx(c,u),u):s.parser.startParse(""),s.overlay?s.overlay.map(d=>new Wr(d.from-i.from,d.to-i.from)):null,i.tree,u.length?u[0].from:i.from)),s.overlay?u.length&&(r={ranges:u,depth:0,prev:r}):a=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new Wr(i.from,i.to)),l.from<l.to&&n.ranges.push(l));if(a&&i.firstChild())n&&n.depth++,r&&r.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(n&&!--n.depth){let c=Cx(this.ranges,n.ranges);c.length&&(kx(c),this.inner.splice(n.index,0,new Sx(n.parser,n.parser.startParse(this.input,Nx(n.mounts,c),c),n.ranges.map(u=>new Wr(u.from-n.start,u.to-n.start)),n.target,c[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function jte(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function xx(e,t,n,r,i,s){if(t<n){let o=e.buffer[t+1];r.push(e.slice(t,n,o)),i.push(o-s)}}function qte(e){let{node:t}=e,n=[],r=t.context.buffer;do n.push(e.index),e.parent();while(!e.tree);let i=e.tree,s=i.children.indexOf(r),o=i.children[s],a=o.buffer,l=[s];function c(u,d,f,h,p,m){let g=n[m],b=[],y=[];xx(o,u,g,b,y,h);let v=a[g+1],w=a[g+2];l.push(b.length);let T=m?c(g+4,a[g+3],o.set.types[a[g]],v,w-v,m-1):t.toTree();return b.push(T),y.push(v-h),xx(o,a[g+3],d,b,y,h),new En(f,b,y,p)}i.children[s]=c(0,a.length,mr.none,0,o.length,n.length-1);for(let u of l){let d=e.tree.children[u],f=e.tree.positions[u];e.yield(new Jn(d,f+e.from,u,e._tree))}}class Ax{constructor(t,n){this.offset=n,this.done=!1,this.cursor=t.cursor(exports.Xe.IncludeAnonymous|exports.Xe.IgnoreMounts)}moveTo(t){let{cursor:n}=this,r=t-this.offset;for(;!this.done&&n.from<r;)n.to>=t&&n.enter(r,1,exports.Xe.IgnoreOverlays|exports.Xe.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==t.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof En)n=n.children[0];else break}return!1}}class Vte{constructor(t){var n;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let r=this.curFrag=t[0];this.curTo=(n=r.tree.prop(_1))!==null&&n!==void 0?n:r.to,this.inner=new Ax(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let n=this.curFrag=this.fragments[this.fragI];this.curTo=(t=n.tree.prop(_1))!==null&&t!==void 0?t:n.to,this.inner=new Ax(n.tree,-n.offset)}}findMounts(t,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let s=this.inner.cursor.node;s;s=s.parent){let o=(r=s.tree)===null||r===void 0?void 0:r.prop(Nt.mounted);if(o&&o.parser==n)for(let a=this.fragI;a<this.fragments.length;a++){let l=this.fragments[a];if(l.from>=s.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:s.from-l.offset,mount:o})}}}return i}}function Cx(e,t){let n=null,r=t;for(let i=1,s=0;i<e.length;i++){let o=e[i-1].to,a=e[i].from;for(;s<r.length;s++){let l=r[s];if(l.from>=a)break;l.to<=o||(n||(r=n=t.slice()),l.from<o?(n[s]=new Wr(l.from,o),l.to>a&&n.splice(s+1,0,new Wr(a,l.to))):l.to>a?n[s--]=new Wr(a,l.to):n.splice(s--,1))}}return r}function zte(e,t,n,r){let i=0,s=0,o=!1,a=!1,l=-1e9,c=[];for(;;){let u=i==e.length?1e9:o?e[i].to:e[i].from,d=s==t.length?1e9:a?t[s].to:t[s].from;if(o!=a){let f=Math.max(l,n),h=Math.min(u,d,r);f<h&&c.push(new Wr(f,h))}if(l=Math.min(u,d),l==1e9)break;u==l&&(o?(o=!1,i++):o=!0),d==l&&(a?(a=!1,s++):a=!0)}return c}function Nx(e,t){let n=[];for(let{pos:r,mount:i,frag:s}of e){let o=r+(i.overlay?i.overlay[0].from:0),a=o+i.tree.length,l=Math.max(s.from,o),c=Math.min(s.to,a);if(i.overlay){let u=i.overlay.map(f=>new Wr(f.from+r,f.to+r)),d=zte(t,u,l,c);for(let f=0,h=l;;f++){let p=f==d.length,m=p?c:d[f].from;if(m>h&&n.push(new Es(h,m,i.tree,-o,s.from>=h||s.openStart,s.to<=m||s.openEnd)),p)break;h=d[f].to}}else n.push(new Es(l,c,i.tree,-o,s.from>=o||s.openStart,s.to<=a||s.openEnd))}return n}let Kte=0,ao=class nP{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=Kte++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new nP([],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(){let t=new Qp;return n=>n.modified.indexOf(t)>-1?n:Qp.get(n.base||n,n.modified.concat(t).sort((r,i)=>r.id-i.id))}},Wte=0;class Qp{constructor(){this.instances=[],this.id=Wte++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(a=>a.base==t&&Gte(n,a.modified));if(r)return r;let i=[],s=new ao(i,t,n);for(let a of n)a.instances.push(s);let o=Yte(n);for(let a of t.set)if(!a.modified.length)for(let l of o)i.push(Qp.get(a,l));return s}}function Gte(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function Yte(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((n,r)=>r.length-n.length)}function rP(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let s=[],o=2,a=i;for(let d=0;;){if(a=="..."&&d>0&&d+3==i.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!f)throw new RangeError("Invalid path: "+i);if(s.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),d+=f[0].length,d==i.length)break;let h=i[d++];if(d==i.length&&h=="!"){o=0;break}if(h!="/")throw new RangeError("Invalid path: "+i);a=i.slice(d)}let l=s.length-1,c=s[l];if(!c)throw new RangeError("Invalid path: "+i);let u=new Jp(r,o,l>0?s.slice(0,l):null);t[c]=u.sort(t[c])}}return iP.add(t)}const iP=new Nt;class Jp{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}Jp.empty=new Jp([],2,null);function sP(e,t){let n=Object.create(null);for(let s of e)if(!Array.isArray(s.tag))n[s.tag.id]=s.class;else for(let o of s.tag)n[o.id]=s.class;let{scope:r,all:i=null}=t||{};return{style:s=>{let o=i;for(let a of s)for(let l of a.set){let c=n[l.id];if(c){o=o?o+" "+c:c;break}}return o},scope:r}}function Xte(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function Qte(e,t,n,r=0,i=e.length){let s=new Jte(r,Array.isArray(t)?t:[t],n);s.highlightRange(e.cursor(),r,i,"",s.highlighters),s.flush(i)}class Jte{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,s){let{type:o,from:a,to:l}=t;if(a>=r||l<=n)return;o.isTop&&(s=this.highlighters.filter(h=>!h.scope||h.scope(o)));let c=i,u=Zte(t)||Jp.empty,d=Xte(s,u.tags);if(d&&(c&&(c+=" "),c+=d,u.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(n,a),c),u.opaque)return;let f=t.tree&&t.tree.prop(Nt.mounted);if(f&&f.overlay){let h=t.node.enter(f.overlay[0].from+a,1),p=this.highlighters.filter(g=>!g.scope||g.scope(f.tree.type)),m=t.firstChild();for(let g=0,b=a;;g++){let y=g<f.overlay.length?f.overlay[g]:null,v=y?y.from+a:l,w=Math.max(n,b),T=Math.min(r,v);if(w<T&&m)for(;t.from<T&&(this.highlightRange(t,w,T,i,s),this.startSpan(Math.min(T,t.to),c),!(t.to>=v||!t.nextSibling())););if(!y||v>r)break;b=y.to+a,b>n&&(this.highlightRange(h.cursor(),Math.max(n,y.from+a),Math.min(r,b),"",p),this.startSpan(Math.min(r,b),c))}m&&t.parent()}else if(t.firstChild()){f&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,s),this.startSpan(Math.min(r,t.to),c)}while(t.nextSibling());t.parent()}}}function Zte(e){let t=e.type.prop(iP);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const He=ao.define,xh=He(),lo=He(),Ox=He(lo),Dx=He(lo),co=He(),Ah=He(co),ob=He(co),Ri=He(),ea=He(Ri),Di=He(),Ii=He(),w1=He(),_u=He(w1),Ch=He(),Oe={comment:xh,lineComment:He(xh),blockComment:He(xh),docComment:He(xh),name:lo,variableName:He(lo),typeName:Ox,tagName:He(Ox),propertyName:Dx,attributeName:He(Dx),className:He(lo),labelName:He(lo),namespace:He(lo),macroName:He(lo),literal:co,string:Ah,docString:He(Ah),character:He(Ah),attributeValue:He(Ah),number:ob,integer:He(ob),float:He(ob),bool:He(co),regexp:He(co),escape:He(co),color:He(co),url:He(co),keyword:Di,self:He(Di),null:He(Di),atom:He(Di),unit:He(Di),modifier:He(Di),operatorKeyword:He(Di),controlKeyword:He(Di),definitionKeyword:He(Di),moduleKeyword:He(Di),operator:Ii,derefOperator:He(Ii),arithmeticOperator:He(Ii),logicOperator:He(Ii),bitwiseOperator:He(Ii),compareOperator:He(Ii),updateOperator:He(Ii),definitionOperator:He(Ii),typeOperator:He(Ii),controlOperator:He(Ii),punctuation:w1,separator:He(w1),bracket:_u,angleBracket:He(_u),squareBracket:He(_u),paren:He(_u),brace:He(_u),content:Ri,heading:ea,heading1:He(ea),heading2:He(ea),heading3:He(ea),heading4:He(ea),heading5:He(ea),heading6:He(ea),contentSeparator:He(Ri),list:He(Ri),quote:He(Ri),emphasis:He(Ri),strong:He(Ri),link:He(Ri),monospace:He(Ri),strikethrough:He(Ri),inserted:He(),deleted:He(),changed:He(),invalid:He(),meta:Ch,documentMeta:He(Ch),annotation:He(Ch),processingInstruction:He(Ch),definition:ao.defineModifier(),constant:ao.defineModifier(),function:ao.defineModifier(),standard:ao.defineModifier(),local:ao.defineModifier(),special:ao.defineModifier()};sP([{tag:Oe.link,class:"tok-link"},{tag:Oe.heading,class:"tok-heading"},{tag:Oe.emphasis,class:"tok-emphasis"},{tag:Oe.strong,class:"tok-strong"},{tag:Oe.keyword,class:"tok-keyword"},{tag:Oe.atom,class:"tok-atom"},{tag:Oe.bool,class:"tok-bool"},{tag:Oe.url,class:"tok-url"},{tag:Oe.labelName,class:"tok-labelName"},{tag:Oe.inserted,class:"tok-inserted"},{tag:Oe.deleted,class:"tok-deleted"},{tag:Oe.literal,class:"tok-literal"},{tag:Oe.string,class:"tok-string"},{tag:Oe.number,class:"tok-number"},{tag:[Oe.regexp,Oe.escape,Oe.special(Oe.string)],class:"tok-string2"},{tag:Oe.variableName,class:"tok-variableName"},{tag:Oe.local(Oe.variableName),class:"tok-variableName tok-local"},{tag:Oe.definition(Oe.variableName),class:"tok-variableName tok-definition"},{tag:Oe.special(Oe.variableName),class:"tok-variableName2"},{tag:Oe.definition(Oe.propertyName),class:"tok-propertyName tok-definition"},{tag:Oe.typeName,class:"tok-typeName"},{tag:Oe.namespace,class:"tok-namespace"},{tag:Oe.className,class:"tok-className"},{tag:Oe.macroName,class:"tok-macroName"},{tag:Oe.propertyName,class:"tok-propertyName"},{tag:Oe.operator,class:"tok-operator"},{tag:Oe.comment,class:"tok-comment"},{tag:Oe.meta,class:"tok-meta"},{tag:Oe.invalid,class:"tok-invalid"},{tag:Oe.punctuation,class:"tok-punctuation"}]);var ab;const Nl=new Nt;function oP(e){return it.define({combine:e?t=>t.concat(e):void 0})}const aP=new Nt;class gi{constructor(t,n,r=[],i=""){this.data=t,this.name=i,Ft.prototype.hasOwnProperty("tree")||Object.defineProperty(Ft.prototype,"tree",{get(){return Po(this)}}),this.parser=n,this.extension=[uc.of(this),Ft.languageData.of((s,o,a)=>{let l=Ix(s,o,a),c=l.type.prop(Nl);if(!c)return[];let u=s.facet(c),d=l.type.prop(aP);if(d){let f=l.resolve(o-l.from,a);for(let h of d)if(h.test(f,s)){let p=s.facet(h.facet);return h.type=="replace"?p:p.concat(u)}}return u})].concat(r)}isActiveAt(t,n,r=-1){return Ix(t,n,r).type.prop(Nl)==this.data}findRegions(t){let n=t.facet(uc);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(s,o)=>{if(s.prop(Nl)==this.data){r.push({from:o,to:o+s.length});return}let a=s.prop(Nt.mounted);if(a){if(a.tree.prop(Nl)==this.data){if(a.overlay)for(let l of a.overlay)r.push({from:l.from+o,to:l.to+o});else r.push({from:o,to:o+s.length});return}else if(a.overlay){let l=r.length;if(i(a.tree,a.overlay[0].from+o),r.length>l)return}}for(let l=0;l<s.children.length;l++){let c=s.children[l];c instanceof En&&i(c,s.positions[l]+o)}};return i(Po(t),0),r}get allowsNesting(){return!0}}gi.setState=xn.define();function Ix(e,t,n){let r=e.facet(uc),i=Po(e).topNode;if(!r||r.allowsNesting)for(let s=i;s;s=s.enter(t,n,exports.Xe.ExcludeBuffers))s.type.isTop&&(i=s);return i}class Zp extends gi{constructor(t,n,r){super(t,n,[],r),this.parser=n}static define(t){let n=oP(t.languageData);return new Zp(n,t.parser.configure({props:[Nl.add(r=>r.isTop?n:void 0)]}),t.name)}configure(t,n){return new Zp(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Po(e){let t=e.field(gi.state,!1);return t?t.tree:En.empty}class ene{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,n){let r=this.cursorPos-this.string.length;return t<r||n>=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}let wu=null;class em{constructor(t,n,r=[],i,s,o,a,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=s,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new em(t,n,[],En.empty,0,r,[],null)}startParse(){return this.parser.startParse(new ene(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=En.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof t=="number"){let i=Date.now()+t;t=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(Es.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(t())return!1}})}takeTree(){let t,n;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(Es.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=wu;wu=this;try{return t()}finally{wu=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=Rx(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((c,u,d,f)=>l.push({fromA:c,toA:u,fromB:d,toB:f})),r=Es.applyChanges(r,l),i=En.empty,s=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){a=[];for(let c of this.skipped){let u=t.mapPos(c.from,1),d=t.mapPos(c.to,-1);u<d&&a.push({from:u,to:d})}}}return new em(this.parser,n,r,i,s,o,a,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let n=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:s}=this.skipped[r];i<t.to&&s>t.from&&(this.fragments=Rx(this.fragments,i,s),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends tP{createParse(n,r,i){let s=i[0].from,o=i[i.length-1].to;return{parsedPos:s,advance(){let a=wu;if(a){for(let l of i)a.tempSkipped.push(l);t&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,t]):t)}return this.parsedPos=o,new En(mr.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return wu}}function Rx(e,t,n){return Es.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class cc{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new cc(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=em.create(t.facet(uc).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new cc(r)}}gi.state=Us.define({create:cc.init,update(e,t){for(let n of t.effects)if(n.is(gi.setState))return n.value;return t.startState.facet(uc)!=t.state.facet(uc)?cc.init(t.state):e.apply(t)}});let lP=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(lP=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const lb=typeof navigator<"u"&&!((ab=navigator.scheduling)===null||ab===void 0)&&ab.isInputPending?()=>navigator.scheduling.isInputPending():null,tne=Zr.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(gi.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(gi.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=lP(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(gi.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!lb?Math.max(25,e.timeRemaining()-5):1e9),o=i.context.treeLen<r&&n.doc.length>r+1e3,a=i.context.work(()=>lb&&lb()||Date.now()>s,r+(o?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:gi.setState.of(new cc(i.context))})),this.chunkBudget>0&&!(a&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>vs(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),uc=it.define({combine(e){return e.length?e[0]:null},enables:e=>[gi.state,tne,kt.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class nne{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}const rne=it.define(),HE=it.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(n=>n!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function cP(e){let t=e.facet(HE);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function uP(e,t){let n="",r=e.tabSize,i=e.facet(HE)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let s=0;s<t;s++)n+=i;return n}function ine(e,t){e instanceof Ft&&(e=new dP(e));for(let r of e.state.facet(rne)){let i=r(e,t);if(i!==void 0)return i}let n=Po(e.state);return n.length>=t?sne(e,n,t):null}class dP{constructor(t,n={}){this.state=t,this.options=n,this.unit=cP(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:s}=this.options;return i!=null&&i>=r.from&&i<=r.to?s&&i==t?{text:"",from:t}:(n<0?i<t:i<=t)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(t,n=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:r,from:i}=this.lineAt(t,n);return r.slice(t-i,Math.min(r.length,t+100-i))}column(t,n=1){let{text:r,from:i}=this.lineAt(t,n),s=this.countColumn(r,t-i),o=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return o>-1&&(s+=o-this.countColumn(r,r.search(/\S|$/))),s}countColumn(t,n=t.length){return NE(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,n),s=this.options.overrideIndentation;if(s){let o=s(i);if(o>-1)return o}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const fP=new Nt;function sne(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let s=[];for(let o=i;o!=r.node;o=o.parent)s.push(o);for(let o=s.length-1;o>=0;o--)r={node:s[o],next:r}}return hP(r,e,n)}function hP(e,t,n){for(let r=e;r;r=r.next){let i=ane(r.node);if(i)return i(jE.create(t,n,r))}return 0}function one(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function ane(e){let t=e.type.prop(fP);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(Nt.closedBy))){let i=e.lastChild,s=i&&r.indexOf(i.name)>-1;return o=>pP(o,!0,1,void 0,s&&!one(o)?i.from:void 0)}return e.parent==null?lne:null}function lne(){return 0}class jE extends dP{constructor(t,n,r){super(t.state,t.options),this.base=t,this.pos=n,this.context=r}get node(){return this.context.node}static create(t,n,r){return new jE(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let n=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(cne(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return hP(this.context.next,this.base,this.pos)}}function cne(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function une(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,s=e.state.doc.lineAt(n.from),o=i==null||i<=s.from?s.to:Math.min(s.to,i);for(let a=n.to;;){let l=t.childAfter(a);if(!l||l==r)return null;if(!l.type.isSkipped)return l.from<o?n:null;a=l.to}}function dne({closing:e,align:t=!0,units:n=1}){return r=>pP(r,t,n,e)}function pP(e,t,n,r,i){let s=e.textAfter,o=s.match(/^\s*/)[0].length,a=r&&s.slice(o,o+r.length)==r||i==e.pos+o,l=t?une(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*n)}const fne=e=>e.baseIndent;function hne({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const pne=200;function mne(){return Ft.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+pne)return e;let s=n.sliceString(i.from,r);if(!t.some(c=>c.test(s)))return e;let{state:o}=e,a=-1,l=[];for(let{head:c}of o.selection.ranges){let u=o.doc.lineAt(c);if(u.from==a)continue;a=u.from;let d=ine(o,u.from);if(d==null)continue;let f=/^\s*/.exec(u.text)[0],h=uP(o,d);f!=h&&l.push({from:u.from,to:u.from+f.length,insert:h})}return l.length?[e,{changes:l,sequential:!0}]:e})}const gne=new Nt;function bne(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}class gf{constructor(t,n){this.specs=t;let r;function i(a){let l=Oo.newName();return(r||(r=Object.create(null)))["."+l]=a,l}const s=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,o=n.scope;this.scope=o instanceof gi?a=>a.prop(Nl)==o.data:o?a=>a==o:void 0,this.style=sP(t.map(a=>({tag:a.tag,class:a.class||i(Object.assign({},a,{tag:null}))})),{all:s}).style,this.module=r?new Oo(r):null,this.themeType=n.themeType}static define(t,n){return new gf(t,n||{})}}const T1=it.define(),mP=it.define({combine(e){return e.length?[e[0]]:null}});function cb(e){let t=e.facet(T1);return t.length?t:e.facet(mP)}function gP(e,t){let n=[vne],r;return e instanceof gf&&(e.module&&n.push(kt.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(mP.of(e)):r?n.push(T1.computeN([kt.darkTheme],i=>i.facet(kt.darkTheme)==(r=="dark")?[e]:[])):n.push(T1.of(e)),n}class yne{constructor(t){this.markCache=Object.create(null),this.tree=Po(t.state),this.decorations=this.buildDeco(t,cb(t.state)),this.decoratedTo=t.viewport.to}update(t){let n=Po(t.state),r=cb(t.state),i=r!=cb(t.startState),{viewport:s}=t.view,o=t.changes.mapPos(this.decoratedTo,1);n.length<s.to&&!i&&n.type==this.tree.type&&o>=s.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=o):(n!=this.tree||t.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r),this.decoratedTo=s.to)}buildDeco(t,n){if(!n||!this.tree.length)return ln.none;let r=new ac;for(let{from:i,to:s}of t.visibleRanges)Qte(this.tree,n,(o,a,l)=>{r.add(o,a,this.markCache[l]||(this.markCache[l]=ln.mark({class:l})))},i,s);return r.finish()}}const vne=ug.high(Zr.fromClass(yne,{decorations:e=>e.decorations})),Ene=gf.define([{tag:Oe.meta,color:"#404740"},{tag:Oe.link,textDecoration:"underline"},{tag:Oe.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Oe.emphasis,fontStyle:"italic"},{tag:Oe.strong,fontWeight:"bold"},{tag:Oe.strikethrough,textDecoration:"line-through"},{tag:Oe.keyword,color:"#708"},{tag:[Oe.atom,Oe.bool,Oe.url,Oe.contentSeparator,Oe.labelName],color:"#219"},{tag:[Oe.literal,Oe.inserted],color:"#164"},{tag:[Oe.string,Oe.deleted],color:"#a11"},{tag:[Oe.regexp,Oe.escape,Oe.special(Oe.string)],color:"#e40"},{tag:Oe.definition(Oe.variableName),color:"#00f"},{tag:Oe.local(Oe.variableName),color:"#30a"},{tag:[Oe.typeName,Oe.namespace],color:"#085"},{tag:Oe.className,color:"#167"},{tag:[Oe.special(Oe.variableName),Oe.macroName],color:"#256"},{tag:Oe.definition(Oe.propertyName),color:"#00c"},{tag:Oe.comment,color:"#940"},{tag:Oe.invalid,color:"#f00"}]),_ne=kt.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),bP=1e4,yP="()[]{}",vP=it.define({combine(e){return fg(e,{afterCursor:!0,brackets:yP,maxScanDistance:bP,renderMatch:Sne})}}),wne=ln.mark({class:"cm-matchingBracket"}),Tne=ln.mark({class:"cm-nonmatchingBracket"});function Sne(e){let t=[],n=e.matched?wne:Tne;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const kne=Us.define({create(){return ln.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(vP);for(let i of t.state.selection.ranges){if(!i.empty)continue;let s=Nh(t.state,i.head,-1,r)||i.head>0&&Nh(t.state,i.head-1,1,r)||r.afterCursor&&(Nh(t.state,i.head,1,r)||i.head<t.state.doc.length&&Nh(t.state,i.head+1,-1,r));s&&(n=n.concat(r.renderMatch(s,t.state)))}return ln.set(n,!0)},provide:e=>kt.decorations.from(e)}),xne=[kne,_ne];function Ane(e={}){return[vP.of(e),xne]}const EP=new Nt;function S1(e,t,n){let r=e.prop(t<0?Nt.openedBy:Nt.closedBy);if(r)return r;if(e.name.length==1){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function k1(e){let t=e.type.prop(EP);return t?t(e.node):e}function Nh(e,t,n,r={}){let i=r.maxScanDistance||bP,s=r.brackets||yP,o=Po(e),a=o.resolveInner(t,n);for(let l=a;l;l=l.parent){let c=S1(l.type,n,s);if(c&&l.from<l.to){let u=k1(l);if(u&&(n>0?t>=u.from&&t<u.to:t>u.from&&t<=u.to))return Cne(e,t,n,l,u,c,s)}}return Nne(e,t,n,o,a.type,i,s)}function Cne(e,t,n,r,i,s,o){let a=r.parent,l={from:i.from,to:i.to},c=0,u=a==null?void 0:a.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do if(n<0?u.to<=r.from:u.from>=r.to){if(c==0&&s.indexOf(u.type.name)>-1&&u.from<u.to){let d=k1(u);return{start:l,end:d?{from:d.from,to:d.to}:void 0,matched:!0}}else if(S1(u.type,n,o))c++;else if(S1(u.type,-n,o)){if(c==0){let d=k1(u);return{start:l,end:d&&d.from<d.to?{from:d.from,to:d.to}:void 0,matched:!1}}c--}}while(n<0?u.prevSibling():u.nextSibling());return{start:l,matched:!1}}function Nne(e,t,n,r,i,s,o){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=o.indexOf(a);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let f=0;!u.next().done&&f<=s;){let h=u.value;n<0&&(f+=h.length);let p=t+f*n;for(let m=n>0?0:h.length-1,g=n>0?h.length:-1;m!=g;m+=n){let b=o.indexOf(h[m]);if(!(b<0||r.resolveInner(p+m,1).type!=i))if(b%2==0==n>0)d++;else{if(d==1)return{start:c,end:{from:p+m,to:p+m+1},matched:b>>1==l>>1};d--}}n>0&&(f+=h.length)}return u.done?{start:c,matched:!1}:null}const One=Object.create(null),Px=[mr.none],Lx=[],Mx=Object.create(null),Dne=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Dne[e]=Ine(One,t);function ub(e,t){Lx.indexOf(e)>-1||(Lx.push(e),console.warn(t))}function Ine(e,t){let n=[];for(let a of t.split(" ")){let l=[];for(let c of a.split(".")){let u=e[c]||Oe[c];u?typeof u=="function"?l.length?l=l.map(u):ub(c,`Modifier ${c} used at start of tag`):l.length?ub(c,`Tag ${c} used as modifier`):l=Array.isArray(u)?u:[u]:ub(c,`Unknown highlighting tag ${c}`)}for(let c of l)n.push(c)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(a=>a.id),s=Mx[i];if(s)return s.id;let o=Mx[i]=mr.define({id:Px.length,name:r,props:[rP({[r]:n})]});return Px.push(o),o.id}exports.ct.RTL,exports.ct.LTR;var Rne=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},s={};n.background&&(s.backgroundColor=n.background),n.backgroundImage&&(s.backgroundImage=n.backgroundImage),n.foreground&&(s.color=n.foreground),(n.background||n.foreground)&&(i["&"]=s),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var o={};n.gutterActiveForeground&&(o.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},o.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=o,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var a=kt.theme(i,{dark:t==="dark"}),l=gf.define(r),c=[a,gP(l)];return c};const Pne=Rne({theme:"light",settings:{background:"var(--scalar-background-2)",foreground:"var(--scalar-color-1)",caret:"var(--scalar-color-1)",selection:"rgba(151, 183, 205, 0.2)",selectionMatch:"#e3dcce",gutterBackground:"var(--scalar-background-2)",gutterForeground:"var(--scalar-color-3)",gutterBorder:"transparent",lineHighlight:"var(--scalar-background-3)",fontFamily:"var(--scalar-font-code)"},styles:[{tag:[Oe.standard(Oe.tagName),Oe.tagName],color:"var(--scalar-color-purple)"},{tag:[Oe.comment],color:"var(--scalar-color-3)"},{tag:[Oe.className],color:"var(--scalar-color-orange)"},{tag:[Oe.variableName,Oe.propertyName,Oe.attributeName],color:"var(--scalar-color-1)"},{tag:[Oe.operator],color:"var(--scalar-color-2)"},{tag:[Oe.keyword,Oe.typeName,Oe.typeOperator],color:"var(--scalar-color-green)"},{tag:[Oe.string],color:"var(--scalar-color-blue)"},{tag:[Oe.bracket,Oe.regexp,Oe.meta],color:"var(--scalar-color-3)"},{tag:[Oe.number],color:"var(--scalar-color-blue)"},{tag:[Oe.name,Oe.quote],color:"var(--scalar-color-3)"},{tag:[Oe.heading],color:"var(--scalar-color-3)",fontWeight:"bold"},{tag:[Oe.emphasis],color:"var(--scalar-color-3)",fontStyle:"italic"},{tag:[Oe.deleted],color:"var(--scalar-color-3)",backgroundColor:"transparent"},{tag:[Oe.atom,Oe.bool,Oe.special(Oe.variableName)],color:"var(--scalar-color-3)"},{tag:[Oe.url,Oe.escape,Oe.regexp,Oe.link],color:"var(--scalar-color-1)"},{tag:Oe.link,textDecoration:"underline"},{tag:Oe.strikethrough,textDecoration:"line-through"},{tag:Oe.invalid,color:"var(--scalar-color-3)"}]}),$x=new WR({regexp:/(\{[^}]+\})/g,decoration:()=>ln.mark({attributes:{class:"api-client-url-variable"}})}),Lne=()=>Zr.fromClass(class{constructor(e){gJ(this,"variables"),this.variables=$x.createDeco(e)}update(e){this.variables=$x.updateDeco(e,this.variables)}},{decorations:e=>e.variables,provide:e=>kt.atomicRanges.of(t=>{var n;return((n=t.plugin(e))==null?void 0:n.variables)||ln.none})}),Mne={class:"scalar-modal-layout modal-layout"},$ne=Se({__name:"FlowModal",props:{state:{},title:{},bodyClass:{},maxWidth:{},variant:{default:"normal"}},setup(e){return(t,n)=>(x(),de(A(E6),{open:t.state.open,onClose:n[0]||(n[0]=r=>t.state.hide())},{default:Y(()=>[ie("div",Mne,[Q(A(_6),{class:ut(["modal",{"modal-content-large":t.variant==="large","modal-content-normal":t.variant==="normal","modal-content-small":t.variant==="small","modal-content-search":t.variant==="search","modal-content-history":t.variant==="history"}]),style:xr({maxWidth:t.maxWidth})},{default:Y(()=>[t.title?(x(),de(A(w6),{key:0,class:"modal-header"},{default:Y(()=>[Ie(Be(t.title),1)]),_:1})):pe("",!0),Q(A(T6),{class:ut(["modal-body custom-scroll",[t.bodyClass]])},{default:Y(()=>[Ue(t.$slots,"default",{},void 0,!0)]),_:3},8,["class"])]),_:3},8,["class","style"])])]),_:3},8,["open"]))}}),_P=je($ne,[["__scopeId","data-v-4aafbf68"]]),wP=()=>qn({open:!1,show(){this.open=!0},hide(){this.open=!1}});function fp(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function TP(e){return typeof window>"u"?Buffer.from(e).toString("base64"):btoa(e)}const SP=e=>{const t=/(?:\{+)\s*(\w+)\s*(?:\}+)/g;return[...e.matchAll(t)].map(n=>n[1].trim())||[]};function Fne(e){return!(!e||Array.isArray(e)&&!e.length||(e??[]).some(t=>!Object.keys(t).length))}function qE(e,t){var n,r;const i=[],s=[],o=[];if(!e.customSecurity&&(!e.preferredSecurityScheme||!Fne(t)))return{headers:i,queryString:s,cookies:o};const a=t!=null&&t.some(c=>e.preferredSecurityScheme&&Object.keys(c).includes(e.preferredSecurityScheme))||e.customSecurity?e.preferredSecurityScheme:Object.keys((t==null?void 0:t[0])??{}).pop(),l=(n=e.securitySchemes)==null?void 0:n[a??""];if(l){if("type"in l&&l.type==="apiKey"){if("in"in l&&l.in==="header"){const c=(r=e.apiKey.token)!=null&&r.length?e.apiKey.token:"YOUR_TOKEN";i.push({name:"name"in l?l.name:"",value:c})}else if("in"in l&&l.in==="cookie"){const c=e.apiKey.token.length?e.apiKey.token:"YOUR_TOKEN";o.push({name:l.name,value:c})}else if("in"in l&&l.in==="query"){const c=e.apiKey.token.length?e.apiKey.token:"YOUR_TOKEN";s.push({name:l.name,value:c})}}else if("type"in l&&(l.type==="http"||l.type==="basic")){if("type"in l&&(l.type==="basic"||l.type==="http"&&l.scheme==="basic")){const{username:c,password:u}=e.http.basic,d=VE(c,u);i.push({name:"Authorization",value:`Basic ${d}`.trim()})}else if("type"in l&&l.type==="http"&&l.scheme==="bearer"){const c=e.http.bearer.token.length?e.http.bearer.token:"YOUR_SECRET_TOKEN";i.push({name:"Authorization",value:`Bearer ${c}`})}}else if("type"in l&&l.type.toLowerCase()==="oauth2"){const c=e.oAuth2.accessToken||"YOUR_SECRET_TOKEN";i.push({name:"Authorization",value:`Bearer ${c}`})}}return{headers:i,queryString:s,cookies:o}}function VE(e,t){return e!=null&&e.length||t!=null&&t.length?TP(`${e}:${t}`):""}function kP(e){return[e.apiKey.token,e.http.bearer.token,e.oAuth2.accessToken,VE(e.http.basic.username,e.http.basic.password),e.http.basic.password].filter(Boolean)}const Bne=Mv(Symbol()),Une={},Hne={class:"card-form"};function jne(e,t){return x(),j("form",Hne,[Ue(e.$slots,"default",{},void 0,!0)])}const qne=je(Une,[["render",jne],["__scopeId","data-v-983db964"]]),Vne=Se({__name:"CardFormButton",setup(e,{expose:t}){const n=ce();return t({el:n}),(r,i)=>(x(),j("button",{ref_key:"el",ref:n,class:"card-form-button",type:"button"},[Ue(r.$slots,"default",{},void 0,!0)],512))}}),xP=je(Vne,[["__scopeId","data-v-d19add49"]]),zne={},Kne={class:"card-form-group"};function Wne(e,t){return x(),j("div",Kne,[Ue(e.$slots,"default",{},void 0,!0)])}const Fx=je(zne,[["render",Wne],["__scopeId","data-v-c2b3e8ed"]]);function AP(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=AP(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function db(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=AP(e))&&(r&&(r+=" "),r+=t);return r}const Bx=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Gne=e=>{const t=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var s,o;return typeof(e==null||(s=e.hooks)===null||s===void 0?void 0:s["cx:done"])<"u"?e==null?void 0:e.hooks["cx:done"](db(r)):typeof(e==null||(o=e.hooks)===null||o===void 0?void 0:o.onComplete)<"u"?e==null?void 0:e.hooks.onComplete(db(r)):db(r)};return{compose:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return s=>{const o=Object.fromEntries(Object.entries(s||{}).filter(a=>{let[l]=a;return!["class","className"].includes(l)}));return t(r.map(a=>a(o)),s==null?void 0:s.class,s==null?void 0:s.className)}},cva:n=>r=>{var i;if((n==null?void 0:n.variants)==null)return t(n==null?void 0:n.base,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=n,a=Object.keys(s).map(u=>{const d=r==null?void 0:r[u],f=o==null?void 0:o[u],h=Bx(d)||Bx(f);return s[u][h]}),l={...o,...r&&Object.entries(r).reduce((u,d)=>{let[f,h]=d;return typeof h>"u"?u:{...u,[f]:h}},{})},c=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((u,d)=>{let{class:f,className:h,...p}=d;return Object.entries(p).every(m=>{let[g,b]=m;const y=l[g];return Array.isArray(b)?b.includes(y):y===b})?[...u,f,h]:u},[]);return t(n==null?void 0:n.base,a,c,r==null?void 0:r.class,r==null?void 0:r.className)},cx:t}},zE="-";function Yne(e){const t=Qne(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function i(o){const a=o.split(zE);return a[0]===""&&a.length!==1&&a.shift(),CP(a,t)||Xne(o)}function s(o,a){const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:i,getConflictingClassGroupIds:s}}function CP(e,t){var n;if(e.length===0)return t.classGroupId;const r=e[0],i=t.nextPart.get(r),s=i?CP(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(zE);return(n=t.validators.find(({validator:a})=>a(o)))==null?void 0:n.classGroupId}const Ux=/^\[(.+)\]$/;function Xne(e){if(Ux.test(e)){const t=Ux.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Qne(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Zne(Object.entries(e.classGroups),n).forEach(([i,s])=>{x1(s,r,i,t)}),r}function x1(e,t,n,r){e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Hx(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(Jne(i)){x1(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{x1(o,Hx(t,s),n,r)})})}function Hx(e,t){let n=e;return t.split(zE).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Jne(e){return e.isThemeGetter}function Zne(e,t){return t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e}function ere(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function i(s,o){n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)}return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}}const NP="!";function tre(e){const t=e.separator,n=t.length===1,r=t[0],i=t.length;return function(s){const o=[];let a=0,l=0,c;for(let p=0;p<s.length;p++){let m=s[p];if(a===0){if(m===r&&(n||s.slice(p,p+i)===t)){o.push(s.slice(l,p)),l=p+i;continue}if(m==="/"){c=p;continue}}m==="["?a++:m==="]"&&a--}const u=o.length===0?s:s.substring(l),d=u.startsWith(NP),f=d?u.substring(1):u,h=c&&c>l?c-l:void 0;return{modifiers:o,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}}}function nre(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function rre(e){return{cache:ere(e.cacheSize),splitModifiers:tre(e),...Yne(e)}}const ire=/\s+/;function sre(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=new Set;return e.trim().split(ire).map(o=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:u}=n(o);let d=r(u?c.substring(0,u):c),f=!!u;if(!d){if(!u)return{isTailwindClass:!1,originalClassName:o};if(d=r(c),!d)return{isTailwindClass:!1,originalClassName:o};f=!1}const h=nre(a).join(":");return{isTailwindClass:!0,modifierId:l?h+NP:h,classGroupId:d,originalClassName:o,hasPostfixModifier:f}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=o,u=a+l;return s.has(u)?!1:(s.add(u),i(l,c).forEach(d=>s.add(a+d)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function ore(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=OP(t))&&(r&&(r+=" "),r+=n);return r}function OP(e){if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=OP(e[r]))&&(n&&(n+=" "),n+=t);return n}function jx(e,...t){let n,r,i,s=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=rre(c),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=sre(l,n);return i(l,u),u}return function(){return s(ore.apply(null,arguments))}}function Gt(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const DP=/^\[(?:([a-z-]+):)?(.+)\]$/i,are=/^\d+\/\d+$/,lre=new Set(["px","full","screen"]),cre=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ure=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dre=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fre=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hre=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function os(e){return ba(e)||lre.has(e)||are.test(e)}function Ws(e){return Pc(e,"length",_re)}function ba(e){return!!e&&!Number.isNaN(Number(e))}function Oh(e){return Pc(e,"number",ba)}function Tu(e){return!!e&&Number.isInteger(Number(e))}function pre(e){return e.endsWith("%")&&ba(e.slice(0,-1))}function yt(e){return DP.test(e)}function Gs(e){return cre.test(e)}const mre=new Set(["length","size","percentage"]);function gre(e){return Pc(e,mre,IP)}function bre(e){return Pc(e,"position",IP)}const yre=new Set(["image","url"]);function vre(e){return Pc(e,yre,Tre)}function Ere(e){return Pc(e,"",wre)}function Su(){return!0}function Pc(e,t,n){const r=DP.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function _re(e){return ure.test(e)&&!dre.test(e)}function IP(){return!1}function wre(e){return fre.test(e)}function Tre(e){return hre.test(e)}function qx(){const e=Gt("colors"),t=Gt("spacing"),n=Gt("blur"),r=Gt("brightness"),i=Gt("borderColor"),s=Gt("borderRadius"),o=Gt("borderSpacing"),a=Gt("borderWidth"),l=Gt("contrast"),c=Gt("grayscale"),u=Gt("hueRotate"),d=Gt("invert"),f=Gt("gap"),h=Gt("gradientColorStops"),p=Gt("gradientColorStopPositions"),m=Gt("inset"),g=Gt("margin"),b=Gt("opacity"),y=Gt("padding"),v=Gt("saturate"),w=Gt("scale"),T=Gt("sepia"),_=Gt("skew"),S=Gt("space"),I=Gt("translate"),R=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",yt,t],B=()=>[yt,t],ge=()=>["",os,Ws],le=()=>["auto",ba,yt],ye=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Fe=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>["start","end","center","between","around","evenly","stretch"],he=()=>["","0",yt],C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[ba,Oh],X=()=>[ba,yt];return{cacheSize:500,separator:":",theme:{colors:[Su],spacing:[os,Ws],blur:["none","",Gs,yt],brightness:F(),borderColor:[e],borderRadius:["none","","full",Gs,yt],borderSpacing:B(),borderWidth:ge(),contrast:F(),grayscale:he(),hueRotate:X(),invert:he(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[pre,Ws],inset:K(),margin:K(),opacity:F(),padding:B(),saturate:F(),scale:F(),sepia:he(),skew:X(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",yt]}],container:["container"],columns:[{columns:[Gs]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ye(),yt]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Tu,yt]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",yt]}],grow:[{grow:he()}],shrink:[{shrink:he()}],order:[{order:["first","last","none",Tu,yt]}],"grid-cols":[{"grid-cols":[Su]}],"col-start-end":[{col:["auto",{span:["full",Tu,yt]},yt]}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":[Su]}],"row-start-end":[{row:["auto",{span:[Tu,yt]},yt]}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",yt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",yt]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...ee()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ee(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ee(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",yt,t]}],"min-w":[{"min-w":[yt,t,"min","max","fit"]}],"max-w":[{"max-w":[yt,t,"none","full","min","max","fit","prose",{screen:[Gs]},Gs]}],h:[{h:[yt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[yt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[yt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[yt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Gs,Ws]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Oh]}],"font-family":[{font:[Su]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",yt]}],"line-clamp":[{"line-clamp":["none",ba,Oh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",os,yt]}],"list-image":[{"list-image":["none",yt]}],"list-style-type":[{list:["none","disc","decimal",yt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Fe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",os,Ws]}],"underline-offset":[{"underline-offset":["auto",os,yt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",yt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",yt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ye(),bre]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gre]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vre]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...Fe(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:Fe()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Fe()]}],"outline-offset":[{"outline-offset":[os,yt]}],"outline-w":[{outline:[os,Ws]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[os,Ws]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Gs,Ere]}],"shadow-color":[{shadow:[Su]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Gs,yt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",yt]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",yt]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",yt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Tu,yt]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",yt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",yt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",yt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[os,Ws,Oh]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function Sre(e,{cacheSize:t,prefix:n,separator:r,extend:i={},override:s={}}){hp(e,"cacheSize",t),hp(e,"prefix",n),hp(e,"separator",r);for(const o in s)kre(e[o],s[o]);for(const o in i)xre(e[o],i[o]);return e}function hp(e,t,n){n!==void 0&&(e[t]=n)}function kre(e,t){if(t)for(const n in t)hp(e,n,t[n])}function xre(e,t){if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}}function Are(e,...t){return typeof e=="function"?jx(qx,e,...t):jx(()=>Sre(qx(),e),...t)}const tm=Math.min,La=Math.max,nm=Math.round,Dh=Math.floor,Lo=e=>({x:e,y:e}),Cre={left:"right",right:"left",bottom:"top",top:"bottom"},Nre={start:"end",end:"start"};function Vx(e,t,n){return La(e,tm(t,n))}function mg(e,t){return typeof e=="function"?e(t):e}function Va(e){return e.split("-")[0]}function gg(e){return e.split("-")[1]}function RP(e){return e==="x"?"y":"x"}function PP(e){return e==="y"?"height":"width"}function bg(e){return["top","bottom"].includes(Va(e))?"y":"x"}function LP(e){return RP(bg(e))}function Ore(e,t,n){n===void 0&&(n=!1);const r=gg(e),i=LP(e),s=PP(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=rm(o)),[o,rm(o)]}function Dre(e){const t=rm(e);return[A1(e),t,A1(t)]}function A1(e){return e.replace(/start|end/g,t=>Nre[t])}function Ire(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}function Rre(e,t,n,r){const i=gg(e);let s=Ire(Va(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(A1)))),s}function rm(e){return e.replace(/left|right|bottom|top/g,t=>Cre[t])}function Pre(e){return{top:0,right:0,bottom:0,left:0,...e}}function Lre(e){return typeof e!="number"?Pre(e):{top:e,right:e,bottom:e,left:e}}function im(e){const{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 zx(e,t,n){let{reference:r,floating:i}=e;const s=bg(t),o=LP(t),a=PP(o),l=Va(t),c=s==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-i.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(gg(t)){case"start":h[o]-=f*(n&&c?-1:1);break;case"end":h[o]+=f*(n&&c?-1:1);break}return h}const Mre=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=zx(c,r,l),f=r,h={},p=0;for(let m=0;m<a.length;m++){const{name:g,fn:b}=a[m],{x:y,y:v,data:w,reset:T}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:c,platform:o,elements:{reference:e,floating:t}});u=y??u,d=v??d,h={...h,[g]:{...h[g],...w}},T&&p<=50&&(p++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(c=T.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:u,y:d}=zx(c,f,l)),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:h}};async function MP(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=mg(t,e),p=Lre(h),m=a[f?d==="floating"?"reference":"floating":d],g=im(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(m)))==null||n?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=d==="floating"?{...o.floating,x:r,y:i}:o.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),v=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},w=im(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:y,strategy:l}):b);return{top:(g.top-w.top+p.top)/v.y,bottom:(w.bottom-g.bottom+p.bottom)/v.y,left:(g.left-w.left+p.left)/v.x,right:(w.right-g.right+p.right)/v.x}}const $re=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=mg(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Va(i),y=Va(a)===a,v=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=f||(y||!m?[rm(a)]:Dre(a));!f&&p!=="none"&&w.push(...Rre(a,m,p,v));const T=[a,...w],_=await MP(t,g),S=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&S.push(_[b]),d){const B=Ore(i,o,v);S.push(_[B[0]],_[B[1]])}if(I=[...I,{placement:i,overflows:S}],!S.every(B=>B<=0)){var R,O;const B=(((R=s.flip)==null?void 0:R.index)||0)+1,ge=T[B];if(ge)return{data:{index:B,overflows:I},reset:{placement:ge}};let le=(O=I.filter(ye=>ye.overflows[0]<=0).sort((ye,Fe)=>ye.overflows[1]-Fe.overflows[1])[0])==null?void 0:O.placement;if(!le)switch(h){case"bestFit":{var K;const ye=(K=I.map(Fe=>[Fe.placement,Fe.overflows.filter(J=>J>0).reduce((J,ee)=>J+ee,0)]).sort((Fe,J)=>Fe[1]-J[1])[0])==null?void 0:K[0];ye&&(le=ye);break}case"initialPlacement":le=a;break}if(i!==le)return{reset:{placement:le}}}return{}}}};async function Fre(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Va(n),a=gg(n),l=bg(n)==="y",c=["left","top"].includes(o)?-1:1,u=s&&l?-1:1,d=mg(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const Bre=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await Fre(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},Ure=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:g=>{let{x:b,y}=g;return{x:b,y}}},...l}=mg(e,t),c={x:n,y:r},u=await MP(t,l),d=bg(Va(i)),f=RP(d);let h=c[f],p=c[d];if(s){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",y=h+u[g],v=h-u[b];h=Vx(y,h,v)}if(o){const g=d==="y"?"top":"left",b=d==="y"?"bottom":"right",y=p+u[g],v=p-u[b];p=Vx(y,p,v)}const m=a.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function Is(e){return KE(e)?(e.nodeName||"").toLowerCase():"#document"}function $r(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hs(e){var t;return(t=(KE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function KE(e){return e instanceof Node||e instanceof $r(e).Node}function Rs(e){return e instanceof Element||e instanceof $r(e).Element}function Ji(e){return e instanceof HTMLElement||e instanceof $r(e).HTMLElement}function Kx(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $r(e).ShadowRoot}function bf(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ei(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Hre(e){return["table","td","th"].includes(Is(e))}function WE(e){const t=GE(),n=ei(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function jre(e){let t=dc(e);for(;Ji(t)&&!yg(t);){if(WE(t))return t;t=dc(t)}return null}function GE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function yg(e){return["html","body","#document"].includes(Is(e))}function ei(e){return $r(e).getComputedStyle(e)}function vg(e){return Rs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dc(e){if(Is(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kx(e)&&e.host||Hs(e);return Kx(t)?t.host:t}function $P(e){const t=dc(e);return yg(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ji(t)&&bf(t)?t:$P(t)}function $d(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=$P(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=$r(i);return s?t.concat(o,o.visualViewport||[],bf(i)?i:[],o.frameElement&&n?$d(o.frameElement):[]):t.concat(i,$d(i,[],n))}function FP(e){const t=ei(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ji(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=nm(n)!==s||nm(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function YE(e){return Rs(e)?e:e.contextElement}function Wl(e){const t=YE(e);if(!Ji(t))return Lo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=FP(t);let o=(s?nm(n.width):n.width)/r,a=(s?nm(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const qre=Lo(0);function BP(e){const t=$r(e);return!GE()||!t.visualViewport?qre:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vre(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$r(e)?!1:t}function za(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=YE(e);let o=Lo(1);t&&(r?Rs(r)&&(o=Wl(r)):o=Wl(e));const a=Vre(s,n,r)?BP(s):Lo(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s){const f=$r(s),h=r&&Rs(r)?$r(r):r;let p=f,m=p.frameElement;for(;m&&r&&h!==p;){const g=Wl(m),b=m.getBoundingClientRect(),y=ei(m),v=b.left+(m.clientLeft+parseFloat(y.paddingLeft))*g.x,w=b.top+(m.clientTop+parseFloat(y.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=v,c+=w,p=$r(m),m=p.frameElement}}return im({width:u,height:d,x:l,y:c})}const zre=[":popover-open",":modal"];function UP(e){return zre.some(t=>{try{return e.matches(t)}catch{return!1}})}function Kre(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=Hs(r),a=t?UP(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Lo(1);const u=Lo(0),d=Ji(r);if((d||!d&&!s)&&((Is(r)!=="body"||bf(o))&&(l=vg(r)),Ji(r))){const f=za(r);c=Wl(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function Wre(e){return Array.from(e.getClientRects())}function HP(e){return za(Hs(e)).left+vg(e).scrollLeft}function Gre(e){const t=Hs(e),n=vg(e),r=e.ownerDocument.body,i=La(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=La(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+HP(e);const a=-n.scrollTop;return ei(r).direction==="rtl"&&(o+=La(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}function Yre(e,t){const n=$r(e),r=Hs(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=GE();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function Xre(e,t){const n=za(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=Ji(e)?Wl(e):Lo(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function Wx(e,t,n){let r;if(t==="viewport")r=Yre(e,n);else if(t==="document")r=Gre(Hs(e));else if(Rs(t))r=Xre(t,n);else{const i=BP(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return im(r)}function jP(e,t){const n=dc(e);return n===t||!Rs(n)||yg(n)?!1:ei(n).position==="fixed"||jP(n,t)}function Qre(e,t){const n=t.get(e);if(n)return n;let r=$d(e,[],!1).filter(a=>Rs(a)&&Is(a)!=="body"),i=null;const s=ei(e).position==="fixed";let o=s?dc(e):e;for(;Rs(o)&&!yg(o);){const a=ei(o),l=WE(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&i&&["absolute","fixed"].includes(i.position)||bf(o)&&!l&&jP(e,o))?r=r.filter(c=>c!==o):i=a,o=dc(o)}return t.set(e,r),r}function Jre(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Qre(t,this._c):[].concat(n),r],o=s[0],a=s.reduce((l,c)=>{const u=Wx(t,c,i);return l.top=La(u.top,l.top),l.right=tm(u.right,l.right),l.bottom=tm(u.bottom,l.bottom),l.left=La(u.left,l.left),l},Wx(t,o,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Zre(e){const{width:t,height:n}=FP(e);return{width:t,height:n}}function eie(e,t,n){const r=Ji(t),i=Hs(t),s=n==="fixed",o=za(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Lo(0);if(r||!r&&!s)if((Is(t)!=="body"||bf(i))&&(a=vg(t)),r){const d=za(t,!0,s,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=HP(i));const c=o.left+a.scrollLeft-l.x,u=o.top+a.scrollTop-l.y;return{x:c,y:u,width:o.width,height:o.height}}function Gx(e,t){return!Ji(e)||ei(e).position==="fixed"?null:t?t(e):e.offsetParent}function qP(e,t){const n=$r(e);if(!Ji(e)||UP(e))return n;let r=Gx(e,t);for(;r&&Hre(r)&&ei(r).position==="static";)r=Gx(r,t);return r&&(Is(r)==="html"||Is(r)==="body"&&ei(r).position==="static"&&!WE(r))?n:r||jre(e)||n}const tie=async function(e){const t=this.getOffsetParent||qP,n=this.getDimensions;return{reference:eie(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function nie(e){return ei(e).direction==="rtl"}const rie={convertOffsetParentRelativeRectToViewportRelativeRect:Kre,getDocumentElement:Hs,getClippingRect:Jre,getOffsetParent:qP,getElementRects:tie,getClientRects:Wre,getDimensions:Zre,getScale:Wl,isElement:Rs,isRTL:nie};function iie(e,t){let n=null,r;const i=Hs(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;const h=Dh(u),p=Dh(i.clientWidth-(c+d)),m=Dh(i.clientHeight-(u+f)),g=Dh(c),b={rootMargin:-h+"px "+-p+"px "+-m+"px "+-g+"px",threshold:La(0,tm(1,l))||1};let y=!0;function v(w){const T=w[0].intersectionRatio;if(T!==l){if(!y)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(v,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(v,b)}n.observe(e)}return o(!0),s}function sie(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=YE(e),u=i||s?[...c?$d(c):[],...$d(t)]:[];u.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const d=c&&a?iie(c,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(b=>{let[y]=b;y&&y.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let p,m=l?za(e):null;l&&g();function g(){const b=za(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&n(),m=b,p=requestAnimationFrame(g)}return n(),()=>{var b;u.forEach(y=>{i&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d==null||d(),(b=h)==null||b.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const oie=Ure,aie=$re,lie=(e,t,n)=>{const r=new Map,i={platform:rie,...n},s={...i.platform,_c:r};return Mre(e,t,{...i,platform:s})};function cie(e){return e!=null&&typeof e=="object"&&"$el"in e}function Yx(e){if(cie(e)){const t=e.$el;return KE(t)&&Is(t)==="#comment"?null:t}return e}function VP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xx(e,t){const n=VP(e);return Math.round(t*n)/n}function uie(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,i=ae(()=>{var S;return(S=A(n.open))!=null?S:!0}),s=ae(()=>A(n.middleware)),o=ae(()=>{var S;return(S=A(n.placement))!=null?S:"bottom"}),a=ae(()=>{var S;return(S=A(n.strategy))!=null?S:"absolute"}),l=ae(()=>{var S;return(S=A(n.transform))!=null?S:!0}),c=ae(()=>Yx(e.value)),u=ae(()=>Yx(t.value)),d=ce(0),f=ce(0),h=ce(a.value),p=ce(o.value),m=gv({}),g=ce(!1),b=ae(()=>{const S={position:h.value,left:"0",top:"0"};if(!u.value)return S;const I=Xx(u.value,d.value),R=Xx(u.value,f.value);return l.value?{...S,transform:"translate("+I+"px, "+R+"px)",...VP(u.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:I+"px",top:R+"px"}});let y;function v(){c.value==null||u.value==null||lie(c.value,u.value,{middleware:s.value,placement:o.value,strategy:a.value}).then(S=>{d.value=S.x,f.value=S.y,h.value=S.strategy,p.value=S.placement,m.value=S.middlewareData,g.value=!0})}function w(){typeof y=="function"&&(y(),y=void 0)}function T(){if(w(),r===void 0){v();return}if(c.value!=null&&u.value!=null){y=r(c.value,u.value,v);return}}function _(){i.value||(g.value=!1)}return dt([s,o,a],v,{flush:"sync"}),dt([c,u],T,{flush:"sync"}),dt(i,_,{flush:"sync"}),wm()&&nC(w),{x:zr(d),y:zr(f),strategy:zr(h),placement:zr(p),middlewareData:zr(m),isPositioned:zr(g),floatingStyles:b,update:v}}const C1="scalar-component",die=Are({extend:{classGroups:{"font-size":["text-xxs"],[C1]:[C1]}}}),{cva:XE,cx:sl,compose:pEe}=Gne({hooks:{onComplete:e=>`${die(e,C1)}`}}),fie=_c('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-47faceda></path>',5),hie={key:0,class:"circular-loader"},pie=Se({__name:"ScalarLoading",props:{loadingState:{},size:{default:"24px"}},setup(e){return ZF(t=>({d6cae758:t.size})),(t,n)=>t.loadingState?(x(),j("div",{key:0,class:ut(A(sl)("loader-wrapper"))},[(x(),j("svg",{class:ut(["svg-loader",{"icon-is-valid":t.loadingState.isValid,"icon-is-invalid":t.loadingState.isInvalid}]),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[fie,t.loadingState.isLoading?(x(),j("g",hie,[ie("circle",{class:ut(["loader-path",{"loader-path-off":t.loadingState.isValid||t.loadingState.isInvalid}]),cx:"50",cy:"50",fill:"none",r:"20","stroke-width":"2"},null,2)])):pe("",!0)],2))],2)):pe("",!0)}}),mie=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},zP=mie(pie,[["__scopeId","data-v-47faceda"]]),KP={solid:["scalar-button-solid","bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"],outlined:["scalar-button-outlined","active:bg-btn-1 border border-solid border-border bg-transparent text-fore-1 hocus:bg-border"],ghost:["scalar-button-ghost","bg-transparent text-fore-3 transition-colors active:text-fore-1 hocus:text-fore-1"],danger:["scalar-button-danger","bg-error text-white active:brightness-90 hocus:brightness-90"]},gie=XE({base:"scalar-button row cursor-pointer items-center justify-center rounded font-medium",variants:{disabled:{true:"bg-background-2 text-color-3 cursor-not-allowed shadow-none"},fullWidth:{true:"w-full"},size:{sm:"px-2 py-1 text-xs",md:"h-10 px-6 text-sm"},variant:KP},compoundVariants:[{disabled:!0,variant:"ghost",class:"bg-transparent text-ghost"}]}),bie=["ariaDisabled","type"],yie={key:0,class:"mr-2 h-4 w-4"},vie={key:1,class:"ml-2"},N1=Se({inheritAttrs:!1,__name:"ScalarButton",props:{disabled:{type:Boolean},fullWidth:{type:Boolean,default:!1},loading:{},size:{default:"md"},variant:{default:"solid"},type:{default:"button"}},setup(e){const t=ae(()=>{const{class:n,...r}=Ec();return{class:n||"",rest:r}});return(n,r)=>(x(),j("button",Ho(t.value.rest,{ariaDisabled:n.disabled||void 0,class:A(sl)(A(gie)({fullWidth:n.fullWidth,disabled:n.disabled,size:n.size,variant:n.variant}),{"pl-9 pr-3":n.loading},`${t.value.class}`),type:n.type}),[n.$slots.icon?(x(),j("div",yie,[Ue(n.$slots,"icon")])):pe("",!0),Ue(n.$slots,"default"),n.loading?(x(),j("div",vie,[Q(A(zP),{loadingState:n.loading,size:"20px"},null,8,["loadingState"])])):pe("",!0)],16,bie))}});(function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=r.variable[1].inside,o=0;o<i.length;o++)s[i[o]]=e.languages.bash[i[o]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;(function(){if(typeof Prism>"u"||typeof document>"u")return;var e="line-numbers",t=/\n(?!$)/g,n=Prism.plugins.lineNumbers={getLine:function(o,a){if(!(o.tagName!=="PRE"||!o.classList.contains(e))){var l=o.querySelector(".line-numbers-rows");if(l){var c=parseInt(o.getAttribute("data-start"),10)||1,u=c+(l.children.length-1);a<c&&(a=c),a>u&&(a=u);var d=a-c;return l.children[d]}}},resize:function(o){r([o])},assumeViewportIndependence:!0};function r(o){if(o=o.filter(function(l){var c=i(l),u=c["white-space"];return u==="pre-wrap"||u==="pre-line"}),o.length!=0){var a=o.map(function(l){var c=l.querySelector("code"),u=l.querySelector(".line-numbers-rows");if(!(!c||!u)){var d=l.querySelector(".line-numbers-sizer"),f=c.textContent.split(t);d||(d=document.createElement("span"),d.className="line-numbers-sizer",c.appendChild(d)),d.innerHTML="0",d.style.display="block";var h=d.getBoundingClientRect().height;return d.innerHTML="",{element:l,lines:f,lineHeights:[],oneLinerHeight:h,sizer:d}}}).filter(Boolean);a.forEach(function(l){var c=l.sizer,u=l.lines,d=l.lineHeights,f=l.oneLinerHeight;d[u.length-1]=void 0,u.forEach(function(h,p){if(h&&h.length>1){var m=c.appendChild(document.createElement("span"));m.style.display="block",m.textContent=h}else d[p]=f})}),a.forEach(function(l){for(var c=l.sizer,u=l.lineHeights,d=0,f=0;f<u.length;f++)u[f]===void 0&&(u[f]=c.children[d++].getBoundingClientRect().height)}),a.forEach(function(l){var c=l.sizer,u=l.element.querySelector(".line-numbers-rows");c.style.display="none",c.innerHTML="",l.lineHeights.forEach(function(d,f){u.children[f].style.height=d+"px"})})}}function i(o){return o?window.getComputedStyle?getComputedStyle(o):o.currentStyle||null:null}var s=void 0;window.addEventListener("resize",function(){n.assumeViewportIndependence&&s===window.innerWidth||(s=window.innerWidth,r(Array.prototype.slice.call(document.querySelectorAll("pre."+e))))}),Prism.hooks.add("complete",function(o){if(o.code){var a=o.element,l=a.parentNode;if(!(!l||!/pre/i.test(l.nodeName))&&!a.querySelector(".line-numbers-rows")&&Prism.util.isActive(a,e)){a.classList.remove(e),l.classList.add(e);var c=o.code.match(t),u=c?c.length+1:1,d,f=new Array(u+1).join("<span></span>");d=document.createElement("span"),d.setAttribute("aria-hidden","true"),d.className="line-numbers-rows",d.innerHTML=f,l.hasAttribute("data-start")&&(l.style.counterReset="linenumber "+(parseInt(l.getAttribute("data-start"),10)-1)),o.element.appendChild(d),r([l]),Prism.hooks.run("line-numbers",o)}}}),Prism.hooks.add("line-numbers",function(o){o.plugins=o.plugins||{},o.plugins.lineNumbers=!0})})();function Eie(e){const t=new Set;return JSON.stringify(e,(n,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}function Ih(e){if(typeof e=="string")return e;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{return Eie(e)}return e}const _ie=["innerHTML"],fs=Se({__name:"ScalarCodeBlock",props:{content:{},lang:{default:"js"},lineNumbers:{type:Boolean,default:!1},hideCredentials:{}},setup(e){const t=e,n=wE(Ih(t.content)),r=`components-scalar-code-block${n}`,{plugins:i,highlightElement:s}=hu;t.hideCredentials&&hu.hooks.add("wrap",function(d){if(!t.hideCredentials)return;let f=!1;typeof t.hideCredentials=="string"?d.content.includes(t.hideCredentials)&&(f=!0):Array.isArray(t.hideCredentials)&&(f=t.hideCredentials.some(h=>d.content.includes(h))),f&&(d.content=d.content.replace(/<span class="credentials">.*?<\/span>/g,h=>h.replace(/<span class="credentials">|<\/span>/g,"")),d.content=d.content.replace(new RegExp(typeof t.hideCredentials=="string"?t.hideCredentials:t.hideCredentials.join("|"),"g"),h=>`<span class="credentials">${h}</span>`))});const o=ce(null),a=ce(Dc[r]??""),l=ae(()=>t.lang==="node"?"js":t.lang),c=t.lang;dt([()=>t.lang,()=>t.content,o],()=>{o.value&&t.content&&(!a.value||t.lang!==c)&&(a.value="",Qn(()=>s(o.value)))},{immediate:!0});const u=/\n(?!$)/g;return Uo(async()=>{let d="";t.lineNumbers&&hu.hooks.add("after-tokenize",h=>{const p=h.code.match(u),m=p?p.length+1:1;d=`<span aria-hidden="true" class="line-numbers-rows">${new Array(m+1).join("<span></span>")}</span>`});const f=hu.highlight(Ih(t.content),hu.languages[l.value],l.value);if(a.value=f+d,n!==0){const h=vc();h.payload.data[r]=f+d}}),Mt(async()=>{await Promise.resolve().then(()=>require("./prism-autoloader-Dlh8Vzlw-C7VXQ4L8-D7adLtAE.cjs")),i.autoloader.languages_path="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/"}),(d,f)=>(x(),j("pre",{class:ut([`scalar-component scalar-codeblock-pre language-${l.value}`,{"line-numbers":d.lineNumbers}])},[a.value?(x(),j("code",{key:0,class:ut(`scalar-codeblock-code language-${l.value}`),innerHTML:A(Ih)(a.value)},null,10,_ie)):(x(),j("code",{key:1,ref_key:"el",ref:o,class:ut(`scalar-codeblock-code language-${l.value}`)},Be(A(Ih)(d.content)),3))],2))}}),Qx=Object.assign({"./Add.svg":()=>Promise.resolve().then(()=>require("./Add-ngyZgYXx-DoqFEwg6-ZGEzlPqD.cjs")),"./ArrowLeft.svg":()=>Promise.resolve().then(()=>require("./ArrowLeft-aY17W2aS-Cn6xpEuC-B0fLd4ou.cjs")),"./ArrowRight.svg":()=>Promise.resolve().then(()=>require("./ArrowRight-DEMtdoE7-DTUgvJ5B-C3jgZ2mx.cjs")),"./Background.svg":()=>Promise.resolve().then(()=>require("./Background-DcRhSHgf-D9bLWDd3-BlJR5pFl.cjs")),"./Brackets.svg":()=>Promise.resolve().then(()=>require("./Brackets-4I8OKomf-DWpQfvXD-Bx88HlCK.cjs")),"./Branch.svg":()=>Promise.resolve().then(()=>require("./Branch-CXwj8YuG-CvPS_xP0-Nn6ixImn.cjs")),"./CallToAction.svg":()=>Promise.resolve().then(()=>require("./CallToAction-EyQKkvbg-P3zHezrK-BCc7UKTH.cjs")),"./Checkmark.svg":()=>Promise.resolve().then(()=>require("./Checkmark-De7nq6cG-I65LWhZ2-4ZtCtn9V.cjs")),"./ChevronDown.svg":()=>Promise.resolve().then(()=>require("./ChevronDown-Co7EAKAv-Dw2u19C4-Blc0jOVq.cjs")),"./ChevronLeft.svg":()=>Promise.resolve().then(()=>require("./ChevronLeft-DYt0idAu-4ItgPaSH-srHKOYLZ.cjs")),"./ChevronRight.svg":()=>Promise.resolve().then(()=>require("./ChevronRight-ylxToVWl-DMyZ2Rmi-D0XCiXTu.cjs")),"./ChevronUp.svg":()=>Promise.resolve().then(()=>require("./ChevronUp-xAnukIfj-DYWzMh-o--A8nOXf6.cjs")),"./Clipboard.svg":()=>Promise.resolve().then(()=>require("./Clipboard-CU_KxGEv-DuOPrhqK-BlVHzfN-.cjs")),"./Close.svg":()=>Promise.resolve().then(()=>require("./Close-CW3z42qZ-C-nzSJmV-B3nugTI1.cjs")),"./CodeFolder.svg":()=>Promise.resolve().then(()=>require("./CodeFolder-Cv_igzJE-POyxhw77-DIXHbvTy.cjs")),"./Cookie.svg":()=>Promise.resolve().then(()=>require("./Cookie-CEHvXpqB-Bu1-nQ4L-BimC2eKN.cjs")),"./DarkMode.svg":()=>Promise.resolve().then(()=>require("./DarkMode-CBsV8Q_I-C-P5vpQi-DdhlhWZa.cjs")),"./Delete.svg":()=>Promise.resolve().then(()=>require("./Delete-BCZmxrDD-RGj_5vHb-CM62MXoh.cjs")),"./Discord.svg":()=>Promise.resolve().then(()=>require("./Discord-BHYOFBB2-BKiLx0Gp-CIW7Vg6j.cjs")),"./DocsPage.svg":()=>Promise.resolve().then(()=>require("./DocsPage-rh2xwxKN-DGM8iLwe-BTu1bmpF.cjs")),"./Duplicate.svg":()=>Promise.resolve().then(()=>require("./Duplicate-BPlzNpcf-hfR5nT2J-yszIPq6k.cjs")),"./Edit.svg":()=>Promise.resolve().then(()=>require("./Edit-Br04RNYb-DB3yOiz_-DSJ4U0S9.cjs")),"./Ellipses.svg":()=>Promise.resolve().then(()=>require("./Ellipses-Bo_X36Hx-D4ayuQAy-DjpfGTei.cjs")),"./Error.svg":()=>Promise.resolve().then(()=>require("./Error-B_RGtWJI-D-cqIU7Z-B8N-HikP.cjs")),"./ExternalLink.svg":()=>Promise.resolve().then(()=>require("./ExternalLink-DK8L-EH7-CnaH9txm-DLv4bVMD.cjs")),"./FilterList.svg":()=>Promise.resolve().then(()=>require("./FilterList-CsAcE9em-BEVsn3KR-GsM2qe3I.cjs")),"./Folder.svg":()=>Promise.resolve().then(()=>require("./Folder-Cdcj4evh-BjFbVB1N-CigfbVTG.cjs")),"./GitHub.svg":()=>Promise.resolve().then(()=>require("./GitHub-NdE6Zs9k-CxmMd7Ky-qhijB2qm.cjs")),"./Hide.svg":()=>Promise.resolve().then(()=>require("./Hide-DBLY4PPo-BcbT7C9e-DG6hW_9p.cjs")),"./History.svg":()=>Promise.resolve().then(()=>require("./History-D9nmhNIn-Bg9VGGKO-K-N4bqDj.cjs")),"./JsonObject.svg":()=>Promise.resolve().then(()=>require("./JsonObject-hGdHUQ4M-JVzShx7P-BOxG4tdY.cjs")),"./Key.svg":()=>Promise.resolve().then(()=>require("./Key-CWXJqX28-CVsMvoNb-Bb2VsYUu.cjs")),"./Leave.svg":()=>Promise.resolve().then(()=>require("./Leave-K1J3uwoG-6WpXSkaE-CC5ciTMc.cjs")),"./LightDarkModeToggle.svg":()=>Promise.resolve().then(()=>require("./LightDarkModeToggle-BkvMimDa-CCZGR9vi-CsDoT-mq.cjs")),"./LightMode.svg":()=>Promise.resolve().then(()=>require("./LightMode-Btz6vyT_-D8lhPTNZ-BzIFQsKx.cjs")),"./Link.svg":()=>Promise.resolve().then(()=>require("./Link-Bzuc__Nc-Bopu3OCd-BetrBYh5.cjs")),"./Lock.svg":()=>Promise.resolve().then(()=>require("./Lock-xhiH1mKz-j1VwEotb-D-2jOQX_.cjs")),"./Logo.svg":()=>Promise.resolve().then(()=>require("./Logo-mtzeKD8M-_nfcd_3S-DKozTg72.cjs")),"./LogoAPI.svg":()=>Promise.resolve().then(()=>require("./LogoAPI-CaU5E6FK-BIDyFPeR-XXWOHg63.cjs")),"./LogoClient.svg":()=>Promise.resolve().then(()=>require("./LogoClient-DdC-t_7P-BJVLusot-DrmNY8Oq.cjs")),"./LogoMarket.svg":()=>Promise.resolve().then(()=>require("./LogoMarket-DwlApcab-BpTQzqp5-DguUEEvr.cjs")),"./LogoSwagger.svg":()=>Promise.resolve().then(()=>require("./LogoSwagger-CH60H5qW--whYwExv-BlZBFjum.cjs")),"./Magic.svg":()=>Promise.resolve().then(()=>require("./Magic-Dsi9_bEc-BSsgSxL9-CtEuWTsY.cjs")),"./Menu.svg":()=>Promise.resolve().then(()=>require("./Menu-CFK5cOsm-Bt89Z42K-DvxwjGjT.cjs")),"./Page.svg":()=>Promise.resolve().then(()=>require("./Page-B7rVuhpl-BdUgg7Vj-z-aFJDqj.cjs")),"./PaperAirplane.svg":()=>Promise.resolve().then(()=>require("./PaperAirplane-BC-4mGEB-CC_xr_GF-6aDgRWlk.cjs")),"./Payment.svg":()=>Promise.resolve().then(()=>require("./Payment-hzcXP1Xb-DwRM2zOI-3jPWqKTM.cjs")),"./Play.svg":()=>Promise.resolve().then(()=>require("./Play-BrVagRQA-ibf1r6jV--6gVlhp0.cjs")),"./Refresh.svg":()=>Promise.resolve().then(()=>require("./Refresh-Be6vHEEi-jbqubK_U-7UdVXYh_.cjs")),"./Response.svg":()=>Promise.resolve().then(()=>require("./Response-Dq9pM-ZU-gbj_nXZc-SN-5Vznn.cjs")),"./Search.svg":()=>Promise.resolve().then(()=>require("./Search-DqtlswRG-C2Pti_ld-DYAT1UhV.cjs")),"./Show.svg":()=>Promise.resolve().then(()=>require("./Show-CMsTZAgT-CiyXRP8J-BMnWdeZA.cjs")),"./SideBarClosed.svg":()=>Promise.resolve().then(()=>require("./SideBarClosed-CYUNS2XM-CyV-4FlW-DBXQub8X.cjs")),"./SideBarOpen.svg":()=>Promise.resolve().then(()=>require("./SideBarOpen-BOxW49_U-_LagsnZP-VMnbQB-F.cjs")),"./Sort.svg":()=>Promise.resolve().then(()=>require("./Sort-oTjBhJFQ-CxatimqM-CSTsj4q4.cjs")),"./Terminal.svg":()=>Promise.resolve().then(()=>require("./Terminal-CKp--su5-DBOGXF1p-CORGY_-M.cjs")),"./ThumbsDown.svg":()=>Promise.resolve().then(()=>require("./ThumbsDown-BMgnsASL-B1FsmbXx-CVI8YauE.cjs")),"./ThumbsUp.svg":()=>Promise.resolve().then(()=>require("./ThumbsUp-C1j6zY2j-Ca8-bvgl-BoWB6j-h.cjs")),"./Trash.svg":()=>Promise.resolve().then(()=>require("./Trash-BpA3zWPD-RGj_5vHb-CATs5i-S.cjs")),"./Unlock.svg":()=>Promise.resolve().then(()=>require("./Unlock-CY8UqJoE-xu6vPL1E-DmMYqipu.cjs")),"./Upload.svg":()=>Promise.resolve().then(()=>require("./Upload-REIdL7RI-DTkPybxz-BG4B2HyD.cjs")),"./User.svg":()=>Promise.resolve().then(()=>require("./User-Df5svMQ3-BviG15gd-itqV4ylX.cjs")),"./programming-framework-angular.svg":()=>Promise.resolve().then(()=>require("./programming-framework-angular-DD4Vjgbk-CUF3ZYYB-BgpB4_P0.cjs")),"./programming-framework-astro.svg":()=>Promise.resolve().then(()=>require("./programming-framework-astro-CLfrRt19-CH6OCtd8-Bm0Uh0sP.cjs")),"./programming-framework-laravel.svg":()=>Promise.resolve().then(()=>require("./programming-framework-laravel-kAy2wVLy-kXRM5aCd-CjOxpgWK.cjs")),"./programming-framework-nextdotjs.svg":()=>Promise.resolve().then(()=>require("./programming-framework-nextdotjs-BKdd_DY_-DF9m888v-DVPbIFsF.cjs")),"./programming-framework-react.svg":()=>Promise.resolve().then(()=>require("./programming-framework-react-PDgmtZuN-DZjob66N-C4HtrwDY.cjs")),"./programming-framework-vuedotjs.svg":()=>Promise.resolve().then(()=>require("./programming-framework-vuedotjs-Cv46W2aB-5jp2dhVz-dT2hS4OJ.cjs")),"./programming-language-c.svg":()=>Promise.resolve().then(()=>require("./programming-language-c-hPGu2Zvg-BesPZa4K-D3Em_Usx.cjs")),"./programming-language-clojure.svg":()=>Promise.resolve().then(()=>require("./programming-language-clojure-Cvmzky8x-BfidiK-3-BziI2iLf.cjs")),"./programming-language-csharp.svg":()=>Promise.resolve().then(()=>require("./programming-language-csharp-lqX1oWgb-D-Mz5PM1-Pjdy9cL4.cjs")),"./programming-language-css3.svg":()=>Promise.resolve().then(()=>require("./programming-language-css3-Dpp4Cr6b-Dpx1zlAe-Czcl12fy.cjs")),"./programming-language-go.svg":()=>Promise.resolve().then(()=>require("./programming-language-go-DoJxWwT6-Bayz8oGO-CLiEH_IG.cjs")),"./programming-language-html5.svg":()=>Promise.resolve().then(()=>require("./programming-language-html5-DlqJK4EL-DfQp7LQz-DneNlkTk.cjs")),"./programming-language-http.svg":()=>Promise.resolve().then(()=>require("./programming-language-http-wMYwFS1I-nvzm47LE-DU-n6Tcf.cjs")),"./programming-language-java.svg":()=>Promise.resolve().then(()=>require("./programming-language-java-BCxG2T_w-01jrBctS-XbFJPTRW.cjs")),"./programming-language-javascript.svg":()=>Promise.resolve().then(()=>require("./programming-language-javascript-VxLvi1QG-qbgoUfZ8-DqYtjJI0.cjs")),"./programming-language-json.svg":()=>Promise.resolve().then(()=>require("./programming-language-json-vEX_g7Zi-D-_9dDj_-ByLOKBX4.cjs")),"./programming-language-kotlin.svg":()=>Promise.resolve().then(()=>require("./programming-language-kotlin-DKV8vP9h-C-cTXwXu-Dyg5Aix3.cjs")),"./programming-language-node.svg":()=>Promise.resolve().then(()=>require("./programming-language-node-Xsgx38lm-Be410R9Y-CkYLM-kH.cjs")),"./programming-language-objc.svg":()=>Promise.resolve().then(()=>require("./programming-language-objc-BQXSOBsX-UyJQMZSh-2zLLHMYv.cjs")),"./programming-language-ocaml.svg":()=>Promise.resolve().then(()=>require("./programming-language-ocaml-BEz7gGv7-L9a3ID8U-DQ78Hj0r.cjs")),"./programming-language-php.svg":()=>Promise.resolve().then(()=>require("./programming-language-php-GY38f8r4-jRMN5AZX-D4s6znk_.cjs")),"./programming-language-powershell.svg":()=>Promise.resolve().then(()=>require("./programming-language-powershell-C9DkSp36-C7fZCJBW-D1_UtX3j.cjs")),"./programming-language-python.svg":()=>Promise.resolve().then(()=>require("./programming-language-python-Ct-_kNjo-DsKRdoNg-CMwaTVAu.cjs")),"./programming-language-r.svg":()=>Promise.resolve().then(()=>require("./programming-language-r-BGoKwua9-BguWvgpu-BVmrWl5b.cjs")),"./programming-language-ruby.svg":()=>Promise.resolve().then(()=>require("./programming-language-ruby-DhdM4d7g-BuT1i5is-D1-jk-cN.cjs")),"./programming-language-scala.svg":()=>Promise.resolve().then(()=>require("./programming-language-scala-BVg0dToJ-p_n-G2sI-nAM3j8r7.cjs")),"./programming-language-shell.svg":()=>Promise.resolve().then(()=>require("./programming-language-shell-BsTa1xI7-Mbhl6UDK-CcOWzdWD.cjs")),"./programming-language-swift.svg":()=>Promise.resolve().then(()=>require("./programming-language-swift-Dn72xPjg-D-JnfNts-BR0UxloM.cjs")),"./programming-language-typescript.svg":()=>Promise.resolve().then(()=>require("./programming-language-typescript-CdF-HuRi-ocSQSwHb-CWG96hWF.cjs")),"./programming-script-code.svg":()=>Promise.resolve().then(()=>require("./programming-script-code-DQN1veb2-CcjBWaNF-SKxbo-5K.cjs")),"./programming-tool-git.svg":()=>Promise.resolve().then(()=>require("./programming-tool-git-DDnQ1zGD-CGHot6Y8-U59_mSrQ.cjs")),"./programming-tool-tailwindcss.svg":()=>Promise.resolve().then(()=>require("./programming-tool-tailwindcss-xjXi0E6g-r5YhtCAf-BVQDQ8eP.cjs"))}),Jx=e=>{const t=`./${e}.svg`;return Qx[t]?MC(Qx[t]):(console.warn(`Could not find icon: ${e}`),null)},wie=["src"],on=Se({__name:"ScalarIcon",props:{icon:{},size:{}},setup(e){const t=e,n=XE({variants:{size:{xs:"size-3 stroke-[1.4]",sm:"size-3.5 stroke-[1.2]",md:"size-4 stroke-[1.1]",lg:"size-5",xl:"size-6 stroke-[0.96]","2xl":"size-8 stroke-[0.92]","3xl":"size-10 stroke-[0.9]",full:"size-full"}},defaultVariants:{size:"full"}}),r=Jx(t.icon);return(i,s)=>A(r)?(x(),de(Ei(A(Jx)(i.icon)),{key:0,class:ut(A(sl)("scalar-icon",A(n)({size:i.size})))},null,8,["class"])):(x(),j("img",{key:1,src:i.icon},null,8,wie))}}),Tie=["ariaDisabled"],Sie={class:"sr-only"},yf=Se({__name:"ScalarIconButton",props:{label:{},icon:{},disabled:{type:Boolean},variant:{default:"ghost"},size:{default:"md"}},setup(e){const t=XE({base:"scalar-icon-button grid aspect-square cursor-pointer rounded",variants:{size:{xxs:"size-3.5 p-0.5",xs:"size-5 p-1",sm:"size-6 p-1",md:"size-10 p-3",full:"h-full w-full"},disabled:{true:"cursor-not-allowed shadow-none"},variant:KP}}),n=ae(()=>{const{class:r,...i}=Ec();return{class:r||"",rest:i}});return(r,i)=>(x(),j("button",Ho(n.value.rest,{ariaDisabled:r.disabled||void 0,class:A(sl)(A(t)({size:r.size,variant:r.variant,disabled:r.disabled}),n.value.class),type:"button"}),[Q(A(on),{icon:r.icon},null,8,["icon"]),ie("span",Sie,Be(r.label),1)],16,Tie))}}),kie={class:"sr-only"},xie=["value"],Aie=Se({inheritAttrs:!1,__name:"ScalarSearchInput",props:{loading:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;function r(s){n("update:modelValue",s.target.value)}const i=ae(()=>{const{class:s,...o}=Ec();return{className:s||"",rest:o}});return(s,o)=>(x(),j("label",Ho(i.value.rest,{class:A(sl)("flex rounded border bg-back-1 text-sm font-medium focus-within:border-fore-1",i.value.className)}),[ie("span",kie,[Ue(s.$slots,"label",{},()=>[Ie("Enter search")])]),ie("input",{autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"flex-1 rounded bg-transparent p-3 outline-none",placeholder:"Search...",spellcheck:"false",type:"text",value:s.modelValue,onInput:r},null,40,xie),s.loading&&s.loading.isLoading?(x(),de(A(zP),{key:0,class:"mr-3 self-center",loadingState:s.loading,size:"20px"},null,8,["loadingState"])):s.modelValue?(x(),de(A(yf),{key:1,class:"self-center",icon:"Close",label:"Clear Search",size:"md",onClick:o[0]||(o[0]=a=>n("update:modelValue",""))})):pe("",!0)],16))}}),Cie=ie("div",{class:"flex flex-col items-center gap-2 px-3 py-4"},[ie("div",{class:"rotate-90 text-lg font-bold"},":("),ie("div",{class:"text-sm font-medium text-fore-2"},"No results found")],-1),Nie=Se({inheritAttrs:!1,__name:"ScalarSearchResultList",props:{noResults:{type:Boolean}},setup(e){const t=ae(()=>{const{class:n,...r}=Ec();return{className:n||"",rest:r}});return(n,r)=>(x(),j("ul",Ho(t.value.rest,{class:A(sl)("flex flex-col",t.value.className)}),[n.noResults?Ue(n.$slots,"noResults",{key:0},()=>[Cie]):pe("",!0),Ue(n.$slots,"default")],16))}}),Oie={class:"contents"},Die={class:"text-fore-3 group-hover:text-fore-1"},Iie={class:"flex min-w-0 flex-1 flex-col gap-0.75"},Rie={class:"flex items-center gap-1"},Pie={class:"flex-1 truncate text-sm font-medium"},Lie={key:0,class:"text-xs text-fore-2"},Mie={class:"truncate text-xs text-fore-2"},$ie=Se({inheritAttrs:!1,__name:"ScalarSearchResultItem",props:{icon:{},active:{type:Boolean}},setup(e){const t=ae(()=>{const{class:n,...r}=Ec();return{className:n||"",rest:r}});return(n,r)=>(x(),j("li",Oie,[ie("a",Ho(t.value.rest,{class:A(sl)("group flex cursor-pointer gap-3 rounded px-3 py-1.5 no-underline hover:bg-back-2",{"bg-back-2":n.active},t.value.className)}),[ie("div",Die,[Ue(n.$slots,"icon",{},()=>[n.icon?(x(),de(A(on),{key:0,icon:n.icon,size:"sm"},null,8,["icon"])):pe("",!0)])]),ie("div",Iie,[ie("div",Rie,[ie("div",Pie,[Ue(n.$slots,"default")]),n.$slots.addon?(x(),j("div",Lie,[Ue(n.$slots,"addon")])):pe("",!0)]),ie("div",Mie,[Ue(n.$slots,"description")])])],16)]))}}),Fie={class:"card-form-input"},Bie=["for"],Uie=["id","type"],Hie=Se({inheritAttrs:!1,__name:"CardFormTextInput",props:{id:{},type:{}},setup(e){const t=e,n=ce(!0),r=ae(()=>t.type==="password"?n.value?"password":"text":t.type??"text");return(i,s)=>(x(),j("div",Fie,[ie("label",{for:i.id},[Ue(i.$slots,"default",{},void 0,!0)],8,Bie),ie("input",Ho(i.$attrs,{id:i.id,autocomplete:"off","data-1p-ignore":"",spellcheck:"false",type:r.value}),null,16,Uie),i.type==="password"?(x(),de(A(yf),{key:0,class:"password-mask",icon:n.value?"Show":"Hide",label:n.value?"Show Password":"Hide Password",onClick:s[0]||(s[0]=o=>n.value=!n.value)},null,8,["icon","label"])):pe("",!0)]))}}),dl=je(Hie,[["__scopeId","data-v-ba56ce97"]]),jie=e=>(er("data-v-ad168955"),e=e(),tr(),e),qie={class:"scopes-label"},Vie=jie(()=>ie("em",null,"/",-1)),zie=["checked"],Kie={class:"dropdown-item-title"},Wie={class:"dropdown-item-description"},Gie=Se({__name:"SecuritySchemeScopes",props:{scopes:{},selected:{}},emits:["update:selected"],setup(e,{emit:t}){const n=e,r=t,i=ce(),s=ce(),{floatingStyles:o}=uie(i,s,{placement:"bottom-end",whileElementsMounted:sie,middleware:[Bre(5),aie(),oie()]}),a=ae({get:()=>n.selected,set:l=>r("update:selected",l)});return(l,c)=>(x(),de(A(R6),{modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=u=>a.value=u),multiple:""},{default:Y(({open:u})=>[ie("div",{ref_key:"trigger",ref:i,class:ut(["wrapper",{"wrapper-open":u}])},[Q(A(P6),{as:xP},{default:Y(()=>[ie("div",qie,[Ie(" Scopes "+Be(a.value.length),1),Vie,Ie(Be(Object.entries(l.scopes).length)+" ",1),Q(A(on),{icon:u?"ChevronUp":"ChevronDown",size:"sm"},null,8,["icon"])])]),_:2},1024)],2),(x(),de(QC,{to:"body"},[Q(A(EI),null,{default:Y(({styles:d})=>[ie("div",{ref_key:"dropdown",ref:s,class:ut(["floating",d]),style:xr(A(o))},[Q(A(L6),{as:"dl",class:"dropdown"},{default:Y(()=>[(x(!0),j(Ne,null,pt(Object.entries(l.scopes),([f,h])=>(x(),de(A(M6),{key:f,as:"div",class:"dropdown-item",value:f},{default:Y(({selected:p})=>[ie("input",{checked:p,class:"dropdown-item-check",tabindex:"-1",type:"checkbox"},null,8,zie),ie("dt",Kie,Be(f),1),ie("dd",Wie,Be(h),1)]),_:2},1032,["value"]))),128))]),_:1})],6)]),_:1})]))]),_:1},8,["modelValue"]))}}),Yie=je(Gie,[["__scopeId","data-v-ad168955"]]),Xie=Se({__name:"SecurityScheme",props:{value:{}},setup(e){const{authentication:t,setAuthentication:n}=Ic(),r=d=>{n({apiKey:{...t.apiKey,token:d.target.value}})},i=d=>{n({http:{...t.http,basic:{...t.http.basic,username:d.target.value}}})},s=d=>{n({http:{...t.http,basic:{...t.http.basic,password:d.target.value}}})},o=d=>{n({http:{...t.http,bearer:{...t.http.bearer,token:d.target.value}}})},a=d=>{n({oAuth2:{...t.oAuth2,clientId:d.target.value}})},l=d=>{const f=t.oAuth2.scopes.join(" "),h=(Math.random()+1).toString(36).substring(7),p=new URL(d.authorizationUrl);return n({oAuth2:{...t.oAuth2,state:h}}),p.searchParams.set("response_type","token"),p.searchParams.set("client_id",t.oAuth2.clientId),p.searchParams.set("redirect_uri",window.location.href),p.searchParams.set("scope",f),p.searchParams.set("state",h),p.toString()},c=ae({get:()=>t.oAuth2.scopes,set:d=>n({oAuth2:{...t.oAuth2,scopes:d}})}),u=d=>{const f=window.open(d,"openAuth2Window","left=100,top=100,width=800,height=600");if(f){const h=setInterval(function(){var p;try{const m=new URLSearchParams(f.location.href).get("access_token");if(f.closed||m){clearInterval(h);const g=(p=f.location.href.match(/state=([^&]*)/))==null?void 0:p[1];m&&t.oAuth2.state===g&&n({oAuth2:{...t.oAuth2,accessToken:m}}),f.close()}}catch{}},200)}};return(d,f)=>{var h;return d.value&&(h=d.value)!=null&&h.type?(x(),de(qne,{key:0},{default:Y(()=>[d.value.type==="apiKey"?(x(),de(dl,{key:0,id:`security-scheme-${d.value.name}`,placeholder:"Token",type:"password",value:A(t).apiKey.token,onInput:r},{default:Y(()=>[Ie(Be(d.value.in.charAt(0).toUpperCase()+d.value.in.slice(1))+" API ",1)]),_:1},8,["id","value"])):d.value.type==="http"||d.value.type==="basic"?(x(),j(Ne,{key:1},[d.value.type==="basic"||d.value.scheme==="basic"?(x(),de(Fx,{key:0},{default:Y(()=>[Q(dl,{id:"http.basic.username",placeholder:"Username",value:A(t).http.basic.username,onInput:i},{default:Y(()=>[Ie(" Username ")]),_:1},8,["value"]),Q(dl,{id:"http.basic.password",placeholder:"Password",type:"password",value:A(t).http.basic.password,onInput:s},{default:Y(()=>[Ie(" Password ")]),_:1},8,["value"])]),_:1})):d.value.type==="http"&&d.value.scheme==="bearer"?(x(),de(dl,{key:1,id:"http.bearer.token",placeholder:"Token",type:"password",value:A(t).http.bearer.token,onInput:o},{default:Y(()=>[Ie(" Bearer Token ")]),_:1},8,["value"])):pe("",!0)],64)):d.value.type.toLowerCase()==="oauth2"&&d.value.flows&&d.value.flows.implicit?(x(),de(Fx,{key:2},{default:Y(()=>[A(t).oAuth2.accessToken?(x(),j(Ne,{key:0},[Q(dl,{id:"oAuth2.accessToken",placeholder:"xxxxx",type:"password",value:A(t).oAuth2.accessToken},{default:Y(()=>[Ie(" Access Token ")]),_:1},8,["value"]),Q(xP,{onClick:f[0]||(f[0]=()=>A(n)({oAuth2:{...A(t).oAuth2,accessToken:"",state:""}}))},{default:Y(()=>[Ie(" Reset ")]),_:1})],64)):(x(),j(Ne,{key:1},[Q(dl,{id:"oAuth2.clientId",placeholder:"12345",type:"text",value:A(t).oAuth2.clientId,onInput:a},{default:Y(()=>[Ie(" Client ID ")]),_:1},8,["value"]),d.value!==void 0?(x(),de(Yie,{key:0,selected:c.value,"onUpdate:selected":f[1]||(f[1]=p=>c.value=p),scopes:d.value.flows.implicit.scopes},null,8,["selected","scopes"])):pe("",!0),ie("button",{class:"cardform-auth-button",onClick:f[2]||(f[2]=()=>{var p;return u(l((p=d.value)==null?void 0:p.flows.implicit))})}," Authorize ")],64))]),_:1})):pe("",!0)]),_:1})):pe("",!0)}}}),WP=je(Xie,[["__scopeId","data-v-146c2c6e"]]),Qie=e=>(er("data-v-a6fd9dc1"),e=e(),tr(),e),Jie={key:0,class:"security-scheme-label"},Zie={key:1,class:"security-scheme-selector"},ese={class:"security-scheme-label"},tse=["value"],nse=Qie(()=>ie("option",{value:""},"None",-1)),rse=["value"],ise=Se({__name:"SecuritySchemeSelector",props:{value:{}},emits:["input"],setup(e,{emit:t}){const n=e,r=t,{authentication:i,setAuthentication:s}=Ic(),o=g=>{a(g.target.value)};Mt(()=>{i.preferredSecurityScheme||a(Object.keys(n.value??{})[0]??null)});const a=g=>{s({preferredSecurityScheme:g}),r("input",g)};Uo(()=>a(Object.keys(n.value??{})[0]??null));const l=g=>!(g!=null&&g.type),c=g=>g.type.toLowerCase()==="apikey",u=g=>g.type==="http"&&g.scheme.toLowerCase()==="basic"||g.type.toLowerCase()==="basic",d=g=>g.type==="http"&&g.scheme.toLowerCase()==="bearer",f=g=>g.type.toLowerCase()==="oauth2",h=(g,b)=>`${p(g)} (${b})`,p=g=>l(g)?"No Authentication":c(g)?"API Key":u(g)?"Basic Authentication":d(g)?"Bearer Authentication":f(g)?"OAuth 2.0":`${g.type} (not yet supported)`,m=ae(()=>Object.keys(n.value??{}));return(g,b)=>{var y,v;return m.value.length===1?(x(),j("div",Jie,Be(h((y=g.value)==null?void 0:y[m.value[0]],m.value[0])),1)):m.value.length>1?(x(),j("div",Zie,[ie("span",ese,Be(A(i).preferredSecurityScheme?h((v=g.value)==null?void 0:v[A(i).preferredSecurityScheme],A(i).preferredSecurityScheme):"None"),1),Q(A(on),{icon:"ChevronDown"}),ie("select",{value:A(i).preferredSecurityScheme,onClick:b[0]||(b[0]=ef(()=>{},["prevent"])),onInput:o},[nse,(x(!0),j(Ne,null,pt(m.value,w=>{var T;return x(),j("option",{key:w,value:w??null},Be(h((T=g.value)==null?void 0:T[w],w)),9,rse)}),128))],40,tse)])):pe("",!0)}}}),GP=je(ise,[["__scopeId","data-v-a6fd9dc1"]]);function Gl(){return{info:{title:"",description:"",termsOfService:"",version:"",license:{name:"",url:""},contact:{email:""}},externalDocs:{description:"",url:""},servers:[],tags:[]}}function YP({serverState:e,authenticationState:t,operation:n,globalSecurity:r}){var i,s;const o=SI({url:O1(e)},Uy(n,{requiredOnly:!1}),t?qE(t,((i=n.information)==null?void 0:i.security)??r??[]):{}),a=Uy(n,{requiredOnly:!1}),l=Hl(n,"path",!1);return{id:n.operationId,name:n.name,type:o.method,path:a.path??"",variables:l,cookies:Zx(o.cookies),query:o.queryString.map(c=>({...c,enabled:c.required??!0})),headers:Zx(o.headers),url:O1(e)??"",body:(s=o.postData)==null?void 0:s.text}}function Zx(e){return(e??[]).map(t=>({...t,enabled:!0}))}const sse=z2().use(C2).use(UU).use(R5),sm=async e=>{const t=new f2,{headings:n}=(await sse.process(e)).data;return ose(n,t)},ose=(e,t)=>e.map(n=>({...n,slug:t.slug(n.value)})),QE=e=>{const t=Math.min(...e.map(n=>n.depth));return t>=1&&t<=6?t:1};function Ki(e){var t,n;return e?Object.keys(((t=e==null?void 0:e.components)==null?void 0:t.schemas)??{}).length?(n=e==null?void 0:e.components)==null?void 0:n.schemas:Object.keys((e==null?void 0:e.definitions)??{}).length?e==null?void 0:e.definitions:{}:{}}function XP(e,t){const n=/{{\s*([\w.-]+)\s*}}/g,r=/{\s*([\w.-]+)\s*}/g,i=(s,o)=>{if(typeof t=="function")return t(o);{const a=t==null?void 0:t.find(l=>l.name===o);return((a==null?void 0:a.value)??"").toString()}};return e.replace(n,i).replace(r,i)}function O1(e){var t;const n=(t=e==null?void 0:e.servers)==null?void 0:t[e.selectedServer??0];return typeof(n==null?void 0:n.url)=="string"?XP(n==null?void 0:n.url,e.variables):n==null?void 0:n.url}const QP=e=>e?!!Object.keys(Ki(e)??{}).length:!1,ase=e=>{var t;return!!Object.keys(((t=e==null?void 0:e.components)==null?void 0:t.securitySchemes)??{}).length},lse=e=>e?!!Object.keys((e==null?void 0:e.webhooks)??{}).length:!1;function cse(e){try{return!!new URL(e)}catch{return!1}}function JP(e,t){return Object.keys(e).forEach(n=>{Object.hasOwn(t,n)||delete e[n]}),Object.assign(e,t),e}const use=()=>({selectedServer:null,servers:[],variables:[]}),D1=qn(use()),dse=e=>{Object.assign(D1,{...D1,...e})},vf=()=>({server:D1,setServer:dse}),{server:fse}=vf(),{setOperation:hse,setGlobalSecurity:pse}=TE(),{toggleApiClient:mse}=lg(),{setActiveRequest:gse,resetActiveResponse:bse}=II();function I1(e,t){const n=YP({serverState:fse,operation:e,authenticationState:null,globalSecurity:null});bse(),gse(n),hse(e),pse(t),mse(n,!0)}var yse=Object.defineProperty,vse=(e,t,n)=>t in e?yse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,to=(e,t,n)=>(vse(e,typeof t!="symbol"?t+"":t,n),n);const Ese=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((r,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t)))})};var _se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R1={exports:{}},ZP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(R,O){return{validate:R,compare:O}}e.fullFormats={date:t(s,o),time:t(l,c),"date-time":t(d,f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:m,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:I,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:b,int32:{type:"number",validate:w},int64:{type:"number",validate:T},float:{type:"number",validate:_},double:{type:"number",validate:_},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(R){return R%4===0&&(R%100!==0||R%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(R){const O=r.exec(R);if(!O)return!1;const K=+O[1],B=+O[2],ge=+O[3];return B>=1&&B<=12&&ge>=1&&ge<=(B===2&&n(K)?29:i[B])}function o(R,O){if(R&&O)return R>O?1:R<O?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(R,O){const K=a.exec(R);if(!K)return!1;const B=+K[1],ge=+K[2],le=+K[3],ye=K[5];return(B<=23&&ge<=59&&le<=59||B===23&&ge===59&&le===60)&&(!O||ye!=="")}function c(R,O){if(!(R&&O))return;const K=a.exec(R),B=a.exec(O);if(K&&B)return R=K[1]+K[2]+K[3]+(K[4]||""),O=B[1]+B[2]+B[3]+(B[4]||""),R>O?1:R<O?-1:0}const u=/t|\s/i;function d(R){const O=R.split(u);return O.length===2&&s(O[0])&&l(O[1],!0)}function f(R,O){if(!(R&&O))return;const[K,B]=R.split(u),[ge,le]=O.split(u),ye=o(K,ge);if(ye!==void 0)return ye||c(B,le)}const h=/\/|:/,p=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function m(R){return h.test(R)&&p.test(R)}const g=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(R){return g.lastIndex=0,g.test(R)}const y=-(2**31),v=2**31-1;function w(R){return Number.isInteger(R)&&R<=v&&R>=y}function T(R){return Number.isInteger(R)}function _(){return!0}const S=/[^\\]\\Z/;function I(R){if(S.test(R))return!1;try{return new RegExp(R),!0}catch{return!1}}})(ZP);var eL={},P1={exports:{}},Ma={},Qr={},fc={},Ef={},ft={},Fd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((v,w)=>`${v}${w}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((v,w)=>(w instanceof n&&(v[w.str]=(v[w.str]||0)+1),v),{})}}e._Code=r,e.nil=new r("");function i(b,...y){const v=[b[0]];let w=0;for(;w<y.length;)a(v,y[w]),v.push(b[++w]);return new r(v)}e._=i;const s=new r("+");function o(b,...y){const v=[h(b[0])];let w=0;for(;w<y.length;)v.push(s),a(v,y[w]),v.push(s,h(b[++w]));return l(v),new r(v)}e.str=o;function a(b,y){y instanceof r?b.push(...y._items):y instanceof n?b.push(y):b.push(d(y))}e.addCodeArg=a;function l(b){let y=1;for(;y<b.length-1;){if(b[y]===s){const v=c(b[y-1],b[y+1]);if(v!==void 0){b.splice(y-1,3,v);continue}b[y++]="+"}y++}}function c(b,y){if(y==='""')return b;if(b==='""')return y;if(typeof b=="string")return y instanceof n||b[b.length-1]!=='"'?void 0:typeof y!="string"?`${b.slice(0,-1)}${y}"`:y[0]==='"'?b.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(b instanceof n))return`"${b}${y.slice(1)}`}function u(b,y){return y.emptyStr()?b:b.emptyStr()?y:o`${b}${y}`}e.strConcat=u;function d(b){return typeof b=="number"||typeof b=="boolean"||b===null?b:h(Array.isArray(b)?b.join(","):b)}function f(b){return new r(h(b))}e.stringify=f;function h(b){return JSON.stringify(b).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function p(b){return typeof b=="string"&&e.IDENTIFIER.test(b)?new r(`.${b}`):i`[${b}]`}e.getProperty=p;function m(b){if(typeof b=="string"&&e.IDENTIFIER.test(b))return new r(`${b}`);throw new Error(`CodeGen: invalid export name: ${b}, use explicit $id name mapping`)}e.getEsmExportName=m;function g(b){return new r(b.toString())}e.regexpCode=g})(Fd);var L1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Fd;class n extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var r;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(r=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:c,parent:u}={}){this._names={},this._prefixes=c,this._parent=u}toName(c){return c instanceof t.Name?c:this.name(c)}name(c){return new t.Name(this._newName(c))}_newName(c){const u=this._names[c]||this._nameGroup(c);return`${c}${u.index++}`}_nameGroup(c){var u,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}e.Scope=i;class s extends t.Name{constructor(c,u){super(u),this.prefix=c}setValue(c,{property:u,itemIndex:d}){this.value=c,this.scopePath=(0,t._)`.${new t.Name(u)}[${d}]`}}e.ValueScopeName=s;const o=(0,t._)`\n`;class a extends i{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?o:t.nil}}get(){return this._scope}name(c){return new s(c,this._newName(c))}value(c,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(c),{prefix:h}=f,p=(d=u.key)!==null&&d!==void 0?d:u.ref;let m=this._values[h];if(m){const y=m.get(p);if(y)return y}else m=this._values[h]=new Map;m.set(p,f);const g=this._scope[h]||(this._scope[h]=[]),b=g.length;return g[b]=u.ref,f.setValue(u,{property:h,itemIndex:b}),f}getValue(c,u){const d=this._values[c];if(d)return d.get(u)}scopeRefs(c,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${c}${d.scopePath}`})}scopeCode(c=this._values,u,d){return this._reduceValues(c,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,d)}_reduceValues(c,u,d={},f){let h=t.nil;for(const p in c){const m=c[p];if(!m)continue;const g=d[p]=d[p]||new Map;m.forEach(b=>{if(g.has(b))return;g.set(b,r.Started);let y=u(b);if(y){const v=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${v} ${b} = ${y};${this.opts._n}`}else if(y=f==null?void 0:f(b))h=(0,t._)`${h}${y}${this.opts._n}`;else throw new n(b);g.set(b,r.Completed)})}return h}}e.ValueScope=a})(L1);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Fd,n=L1;var r=Fd;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=L1;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(D,U){return this}}class o extends s{constructor(D,U,q){super(),this.varKind=D,this.name=U,this.rhs=q}render({es5:D,_n:U}){const q=D?n.varKinds.var:this.varKind,be=this.rhs===void 0?"":` = ${this.rhs}`;return`${q} ${this.name}${be};`+U}optimizeNames(D,U){if(D[this.name.str])return this.rhs&&(this.rhs=le(this.rhs,D,U)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends s{constructor(D,U,q){super(),this.lhs=D,this.rhs=U,this.sideEffects=q}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,U){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=le(this.rhs,D,U),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return ge(D,this.rhs)}}class l extends a{constructor(D,U,q,be){super(D,q,be),this.op=U}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class c extends s{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class u extends s{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class d extends s{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class f extends s{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,U){return this.code=le(this.code,D,U),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends s{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((U,q)=>U+q.render(D),"")}optimizeNodes(){const{nodes:D}=this;let U=D.length;for(;U--;){const q=D[U].optimizeNodes();Array.isArray(q)?D.splice(U,1,...q):q?D[U]=q:D.splice(U,1)}return D.length>0?this:void 0}optimizeNames(D,U){const{nodes:q}=this;let be=q.length;for(;be--;){const Ce=q[be];Ce.optimizeNames(D,U)||(ye(D,Ce.names),q.splice(be,1))}return q.length>0?this:void 0}get names(){return this.nodes.reduce((D,U)=>B(D,U.names),{})}}class p extends h{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class m extends h{}class g extends p{}g.kind="else";class b extends p{constructor(D,U){super(U),this.condition=D}render(D){let U=`if(${this.condition})`+super.render(D);return this.else&&(U+="else "+this.else.render(D)),U}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let U=this.else;if(U){const q=U.optimizeNodes();U=this.else=Array.isArray(q)?new g(q):q}if(U)return D===!1?U instanceof b?U:U.nodes:this.nodes.length?this:new b(Fe(D),U instanceof b?[U]:U.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,U){var q;if(this.else=(q=this.else)===null||q===void 0?void 0:q.optimizeNames(D,U),!!(super.optimizeNames(D,U)||this.else))return this.condition=le(this.condition,D,U),this}get names(){const D=super.names;return ge(D,this.condition),this.else&&B(D,this.else.names),D}}b.kind="if";class y extends p{}y.kind="for";class v extends y{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,U){if(super.optimizeNames(D,U))return this.iteration=le(this.iteration,D,U),this}get names(){return B(super.names,this.iteration.names)}}class w extends y{constructor(D,U,q,be){super(),this.varKind=D,this.name=U,this.from=q,this.to=be}render(D){const U=D.es5?n.varKinds.var:this.varKind,{name:q,from:be,to:Ce}=this;return`for(${U} ${q}=${be}; ${q}<${Ce}; ${q}++)`+super.render(D)}get names(){const D=ge(super.names,this.from);return ge(D,this.to)}}class T extends y{constructor(D,U,q,be){super(),this.loop=D,this.varKind=U,this.name=q,this.iterable=be}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,U){if(super.optimizeNames(D,U))return this.iterable=le(this.iterable,D,U),this}get names(){return B(super.names,this.iterable.names)}}class _ extends p{constructor(D,U,q){super(),this.name=D,this.args=U,this.async=q}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}_.kind="func";class S extends h{render(D){return"return "+super.render(D)}}S.kind="return";class I extends p{render(D){let U="try"+super.render(D);return this.catch&&(U+=this.catch.render(D)),this.finally&&(U+=this.finally.render(D)),U}optimizeNodes(){var D,U;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(U=this.finally)===null||U===void 0||U.optimizeNodes(),this}optimizeNames(D,U){var q,be;return super.optimizeNames(D,U),(q=this.catch)===null||q===void 0||q.optimizeNames(D,U),(be=this.finally)===null||be===void 0||be.optimizeNames(D,U),this}get names(){const D=super.names;return this.catch&&B(D,this.catch.names),this.finally&&B(D,this.finally.names),D}}class R extends p{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}R.kind="catch";class O extends p{render(D){return"finally"+super.render(D)}}O.kind="finally";class K{constructor(D,U={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...U,_n:U.lines?`
211
+ --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,b1),dte={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let tb=null;function fte(){var e;if(tb==null&&typeof document<"u"&&document.body){let t=document.body.style;tb=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return tb||!1}const cp=it.define({combine(e){let t=fg(e,{render:null,specialChars:ute,addSpecialChars:null});return(t.replaceTabs=!fte())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,b1)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,b1)),t}});function hte(e={}){return[cp.of(e),pte()]}let gx=null;function pte(){return gx||(gx=Zr.fromClass(class{constructor(e){this.view=e,this.decorations=ln.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(cp)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new WR({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,s=ql(t[0],0);if(s==9){let o=i.lineAt(r),a=n.state.tabSize,l=NE(o.text,a,r-o.from);return ln.replace({widget:new yte((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=ln.replace({widget:new bte(e,s)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(cp);e.startState.facet(cp)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const mte="•";function gte(e){return e>=32?mte:e==10?"␤":String.fromCharCode(9216+e)}class bte extends Rc{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=gte(this.code),r=t.state.phrase("Control character")+" "+(dte[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let s=document.createElement("span");return s.textContent=n,s.title=r,s.setAttribute("aria-label",r),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class yte extends Rc{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}const Eu="-10000px";class vte{constructor(t,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=t.state.facet(n),this.tooltips=this.input.filter(o=>o);let s=null;this.tooltipViews=this.tooltips.map(o=>s=r(o,s))}update(t,n){var r;let i=t.state.facet(this.facet),s=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let o=[],a=n?[]:null;for(let l=0;l<s.length;l++){let c=s[l],u=-1;if(c){for(let d=0;d<this.tooltips.length;d++){let f=this.tooltips[d];f&&f.create==c.create&&(u=d)}if(u<0)o[l]=this.createTooltipView(c,l?o[l-1]:null),a&&(a[l]=!!c.above);else{let d=o[l]=this.tooltipViews[u];a&&(a[l]=n[u]),d.update&&d.update(t)}}}for(let l of this.tooltipViews)o.indexOf(l)<0&&(this.removeTooltipView(l),(r=l.destroy)===null||r===void 0||r.call(l));return n&&(a.forEach((l,c)=>n[c]=l),n.length=a.length),this.input=i,this.tooltips=s,this.tooltipViews=o,!0}}function Ete(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const nb=it.define({combine:e=>{var t,n,r;return{position:Ye.ios?"absolute":((t=e.find(i=>i.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||Ete}}}),bx=new WeakMap,GR=Zr.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(nb);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new vte(e,YR,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(nb);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",n.dom.insertBefore(i,r)}return n.dom.style.position=this.position,n.dom.style.top=Eu,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(e=r.destroy)===null||e===void 0||e.call(r);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(Ye.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==Eu&&i.style.left=="0px"){let s=i.getBoundingClientRect();r=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(t=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((i,s)=>{let o=this.manager.tooltipViews[s];return o.getCoords?o.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(nb).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:s}=e,o=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],c=this.manager.tooltipViews[a],{dom:u}=c,d=e.pos[a],f=e.size[a];if(!d||d.bottom<=Math.max(n.top,r.top)||d.top>=Math.min(n.bottom,r.bottom)||d.right<Math.max(n.left,r.left)-.1||d.left>Math.min(n.right,r.right)+.1){u.style.top=Eu;continue}let h=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,p=h?7:0,m=f.right-f.left,g=(t=bx.get(c))!==null&&t!==void 0?t:f.bottom-f.top,b=c.offset||wte,y=this.view.textDirection==exports.ct.LTR,v=f.width>r.right-r.left?y?r.left:r.right-f.width:y?Math.min(d.left-(h?14:0)+b.x,r.right-m):Math.max(r.left,d.left-m+(h?14:0)-b.x),w=this.above[a];!l.strictSide&&(w?d.top-(f.bottom-f.top)-b.y<r.top:d.bottom+(f.bottom-f.top)+b.y>r.bottom)&&w==r.bottom-d.bottom>d.top-r.top&&(w=this.above[a]=!w);let T=(w?d.top-r.top:r.bottom-d.bottom)-p;if(T<g&&c.resize!==!1){if(T<this.view.defaultLineHeight){u.style.top=Eu;continue}bx.set(c,g),u.style.height=(g=T)/s+"px"}else u.style.height&&(u.style.height="");let _=w?d.top-g-p-b.y:d.bottom+p+b.y,S=v+m;if(c.overlap!==!0)for(let I of o)I.left<S&&I.right>v&&I.top<_+g&&I.bottom>_&&(_=w?I.top-g-2-p:I.bottom+p+2);if(this.position=="absolute"?(u.style.top=(_-e.parent.top)/s+"px",u.style.left=(v-e.parent.left)/i+"px"):(u.style.top=_/s+"px",u.style.left=v/i+"px"),h){let I=d.left+(y?b.x:-b.x)-(v+14-7);h.style.left=I/i+"px"}c.overlap!==!0&&o.push({left:v,top:_,right:S,bottom:_+g}),u.classList.toggle("cm-tooltip-above",w),u.classList.toggle("cm-tooltip-below",!w),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Eu}},{eventObservers:{scroll(){this.maybeMeasure()}}}),_te=kt.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),wte={x:0,y:0},YR=it.define({enables:[GR,_te]});function Tte(e,t){let n=e.plugin(GR);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}class qa extends Ua{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}qa.prototype.elementClass="";qa.prototype.toDOM=void 0;qa.prototype.mapMode=exports.zt.TrackBefore;qa.prototype.startSide=qa.prototype.endSide=-1;qa.prototype.point=!0;const rb=it.define(),up=it.define(),y1=it.define({combine:e=>e.some(t=>t)});function Ste(e){let t=[kte];return e&&e.fixed===!1&&t.push(y1.of(!0)),t}const kte=Zr.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(up).map(t=>new vx(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(y1),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(y1)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=Bt.iter(this.view.state.facet(rb),this.view.viewport.from),r=[],i=this.gutters.map(s=>new xte(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(s.type)){let o=!0;for(let a of s.type)if(a.type==vi.Text&&o){v1(n,r,a.from);for(let l of i)l.line(this.view,a,r);o=!1}else if(a.widget)for(let l of i)l.widget(this.view,a)}else if(s.type==vi.Text){v1(n,r,s.from);for(let o of i)o.line(this.view,s,r)}else if(s.widget)for(let o of i)o.widget(this.view,s);for(let s of i)s.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(up),n=e.state.facet(up),r=e.docChanged||e.heightChanged||e.viewportChanged||!Bt.eq(e.startState.facet(rb),e.state.facet(rb),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let i of this.gutters)i.update(e)&&(r=!0);else{r=!0;let i=[];for(let s of n){let o=t.indexOf(s);o<0?i.push(new vx(this.view,s)):(this.gutters[o].update(e),i.push(this.gutters[o]))}for(let s of this.gutters)s.dom.remove(),i.indexOf(s)<0&&s.destroy();for(let s of i)this.dom.appendChild(s.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>kt.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==exports.ct.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function yx(e){return Array.isArray(e)?e:[e]}function v1(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class xte{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=Bt.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,s=(n.top-this.height)/t.scaleY,o=n.height/t.scaleY;if(this.i==i.elements.length){let a=new XR(t,o,s,r);i.elements.push(a),i.dom.appendChild(a.dom)}else i.elements[this.i].update(t,o,s,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];v1(this.cursor,i,n.from),r.length&&(i=i.concat(r));let s=this.gutter.config.lineMarker(t,n,i);s&&i.unshift(s);let o=this.gutter;i.length==0&&!o.config.renderEmptyElements||this.addElement(t,n,i)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class vx{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let s=i.target,o;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let l=s.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=i.clientY;let a=t.lineBlockAtHeight(o-t.documentTop);n.domEventHandlers[r](t,a,i)&&i.preventDefault()});this.markers=yx(n.markers(t)),n.initialSpacer&&(this.spacer=new XR(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let n=this.markers;if(this.markers=yx(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],t);i!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[i])}let r=t.view.viewport;return!Bt.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class XR{constructor(t,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,n,r,i)}update(t,n,r,i){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),Ate(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let s=0,o=0;;){let a=o,l=s<n.length?n[s++]:null,c=!1;if(l){let u=l.elementClass;u&&(r+=" "+u);for(let d=o;d<this.markers.length;d++)if(this.markers[d].compare(l)){a=d,c=!0;break}}else a=this.markers.length;for(;o<a;){let u=this.markers[o++];if(u.toDOM){u.destroy(i);let d=i.nextSibling;i.remove(),i=d}}if(!l)break;l.toDOM&&(c?i=i.nextSibling:this.dom.insertBefore(l.toDOM(t),i)),c&&o++}this.dom.className=r,this.markers=n}destroy(){this.setMarkers(null,[])}}function Ate(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}const Cte=it.define(),Cl=it.define({combine(e){return fg(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,n){let r=Object.assign({},t);for(let i in n){let s=r[i],o=n[i];r[i]=s?(a,l,c)=>s(a,l,c)||o(a,l,c):o}return r}})}});class ib extends qa{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function sb(e,t){return e.state.facet(Cl).formatNumber(t,e.state)}const Nte=up.compute([Cl],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(Cte)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new ib(sb(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(Cl)!=t.state.facet(Cl),initialSpacer(t){return new ib(sb(t,Ex(t.state.doc.lines)))},updateSpacer(t,n){let r=sb(n.view,Ex(n.view.state.doc.lines));return r==t.number?t:new ib(r)},domEventHandlers:e.facet(Cl).domEventHandlers}));function Ote(e={}){return[Cl.of(e),Ste(),Nte]}function Ex(e){let t=9;for(;t<e;)t=t*10+9;return t}const QR=1024;let Dte=0;class Wr{constructor(t,n){this.from=t,this.to=n}}class Nt{constructor(t={}){this.id=Dte++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=mr.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}Nt.closedBy=new Nt({deserialize:e=>e.split(" ")});Nt.openedBy=new Nt({deserialize:e=>e.split(" ")});Nt.group=new Nt({deserialize:e=>e.split(" ")});Nt.isolate=new Nt({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});Nt.contextHash=new Nt({perNode:!0});Nt.lookAhead=new Nt({perNode:!0});Nt.mounted=new Nt({perNode:!0});class Ld{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[Nt.mounted.id]}}const Ite=Object.create(null);class mr{constructor(t,n,r,i=0){this.name=t,this.props=n,this.id=r,this.flags=i}static define(t){let n=t.props&&t.props.length?Object.create(null):Ite,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new mr(t.name||"",n,t.id,r);if(t.props){for(let s of t.props)if(Array.isArray(s)||(s=s(i)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(Nt.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let i of r.split(" "))n[i]=t[r];return r=>{for(let i=r.prop(Nt.group),s=-1;s<(i?i.length:0);s++){let o=n[s<0?r.name:i[s]];if(o)return o}}}}mr.none=new mr("",Object.create(null),0,8);class $E{constructor(t){this.types=t;for(let n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let n=[];for(let r of this.types){let i=null;for(let s of t){let o=s(r);o&&(i||(i=Object.assign({},r.props)),i[o[0].id]=o[1])}n.push(i?new mr(r.name,i,r.id,r.flags):r)}return new $E(n)}}const kh=new WeakMap,_x=new WeakMap;exports.Xe=void 0;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(exports.Xe||(exports.Xe={}));class En{constructor(t,n,r,i,s){if(this.type=t,this.children=n,this.positions=r,this.length=i,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,a]of s)this.props[typeof o=="number"?o:o.id]=a}}toString(){let t=Ld.get(this);if(t&&!t.overlay)return t.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(t=0){return new Xp(this.topNode,t)}cursorAt(t,n=0,r=0){let i=kh.get(this)||this.topNode,s=new Xp(i);return s.moveTo(t,n),kh.set(this,s._tree),s}get topNode(){return new Jn(this,0,0,null)}resolve(t,n=0){let r=Md(kh.get(this)||this.topNode,t,n,!1);return kh.set(this,r),r}resolveInner(t,n=0){let r=Md(_x.get(this)||this.topNode,t,n,!0);return _x.set(this,r),r}resolveStack(t,n=0){return Lte(this,t,n)}iterate(t){let{enter:n,leave:r,from:i=0,to:s=this.length}=t,o=t.mode||0,a=(o&exports.Xe.IncludeAnonymous)>0;for(let l=this.cursor(o|exports.Xe.IncludeAnonymous);;){let c=!1;if(l.from<=s&&l.to>=i&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&r&&(a||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:UE(mr.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new En(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new En(mr.none,n,r,i)))}static build(t){return Mte(t)}}En.empty=new En(mr.none,[],[],0);class FE{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new FE(this.buffer,this.index)}}class Ro{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return mr.none}toString(){let t=[];for(let n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}childString(t){let n=this.buffer[t],r=this.buffer[t+3],i=this.set.types[n],s=i.name;if(/\W/.test(s)&&!i.isError&&(s=JSON.stringify(s)),t+=4,r==t)return s;let o=[];for(;t<r;)o.push(this.childString(t)),t=this.buffer[t+3];return s+"("+o.join(",")+")"}findChild(t,n,r,i,s){let{buffer:o}=this,a=-1;for(let l=t;l!=n&&!(JR(s,i,o[l+1],o[l+2])&&(a=l,r>0));l=o[l+3]);return a}slice(t,n,r){let i=this.buffer,s=new Uint16Array(n-t),o=0;for(let a=t,l=0;a<n;){s[l++]=i[a++],s[l++]=i[a++]-r;let c=s[l++]=i[a++]-r;s[l++]=i[a++]-t,o=Math.max(o,c)}return new Ro(s,o,this.set)}}function JR(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function Md(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let o=!r&&e instanceof Jn&&e.index<0?null:e.parent;if(!o)return e;e=o}let s=r?0:exports.Xe.IgnoreOverlays;if(r)for(let o=e,a=o.parent;a;o=a,a=o.parent)o instanceof Jn&&o.index<0&&((i=a.enter(t,n,s))===null||i===void 0?void 0:i.from)!=o.from&&(e=a);for(;;){let o=e.enter(t,n,s);if(!o)return e;e=o}}class ZR{cursor(t=0){return new Xp(this,t)}getChild(t,n=null,r=null){let i=wx(this,t,n,r);return i.length?i[0]:null}getChildren(t,n=null,r=null){return wx(this,t,n,r)}resolve(t,n=0){return Md(this,t,n,!1)}resolveInner(t,n=0){return Md(this,t,n,!0)}matchContext(t){return E1(this,t)}enterUnfinishedNodesBefore(t){let n=this.childBefore(t),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i}return r}get node(){return this}get next(){return this.parent}}class Jn extends ZR{constructor(t,n,r,i){super(),this._tree=t,this.from=n,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,n,r,i,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,c=n>0?a.length:-1;t!=c;t+=n){let u=a[t],d=l[t]+o.from;if(JR(i,r,d,d+u.length)){if(u instanceof Ro){if(s&exports.Xe.ExcludeBuffers)continue;let f=u.findChild(0,u.buffer.length,n,r-d,i);if(f>-1)return new zi(new Rte(o,u,t,d),null,f)}else if(s&exports.Xe.IncludeAnonymous||!u.type.isAnonymous||BE(u)){let f;if(!(s&exports.Xe.IgnoreMounts)&&(f=Ld.get(u))&&!f.overlay)return new Jn(f.tree,d,t,o);let h=new Jn(u,d,t,o);return s&exports.Xe.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(n<0?u.children.length-1:0,n,r,i)}}}if(s&exports.Xe.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+n:t=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&exports.Xe.IgnoreOverlays)&&(i=Ld.get(this._tree))&&i.overlay){let s=t-this.from;for(let{from:o,to:a}of i.overlay)if((n>0?o<=s:o<s)&&(n<0?a>=s:a>s))return new Jn(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function wx(e,t,n,r){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(n!=null){for(let o=!1;!o;)if(o=i.type.is(n),!i.nextSibling())return s}for(;;){if(r!=null&&i.type.is(r))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return r==null?s:[]}}function E1(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class Rte{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class zi extends ZR{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return s<0?null:new zi(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&exports.Xe.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return s<0?null:new zi(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new zi(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new zi(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,s=r.buffer[this.index+3];if(s>i){let o=r.buffer[this.index+1];t.push(r.slice(i,s,o)),n.push(0)}return new En(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function eP(e){if(!e.length)return null;let t=0,n=e[0];for(let s=1;s<e.length;s++){let o=e[s];(o.from>n.from||o.to<n.to)&&(n=o,t=s)}let r=n instanceof Jn&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new Pte(i,n)}class Pte{constructor(t,n){this.heads=t,this.node=n}get next(){return eP(this.heads)}}function Lte(e,t,n){let r=e.resolveInner(t,n),i=null;for(let s=r instanceof Jn?r:r.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(i||(i=[r])).push(o.resolve(t,n)),s=o}else{let o=Ld.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let a=new Jn(o.tree,o.overlay[0].from+s.from,-1,s);(i||(i=[r])).push(Md(a,t,n,!1))}}return i?eP(i):r}class Xp{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Jn)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}yield(t){return t?t instanceof Jn?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,s=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&exports.Xe.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&exports.Xe.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&exports.Xe.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index<i.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(i.buffer.buffer[s+3]<this.index)return!1;({index:n,parent:r}=i)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let s=n+t,o=t<0?-1:r._tree.children.length;s!=o;s+=t){let a=r._tree.children[s];if(this.mode&exports.Xe.IncludeAnonymous||a instanceof Ro||!a.type.isAnonymous||BE(a))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer)e:for(let i=this.index,s=this.stack.length;s>=0;){for(let o=t;o;o=o._parent)if(o.index==i){if(i==this.index)return o;n=o,r=s+1;break e}i=this.stack[--s]}for(let i=r;i<this.stack.length;i++)n=new zi(this.buffer,n,this.stack[i]);return this.bufferNode=new zi(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,n){for(let r=0;;){let i=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;i&&n&&n(this),i=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,i=!0}}}matchContext(t){if(!this.buffer)return E1(this.node,t);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=t.length-1,s=this.stack.length-1;i>=0;s--){if(s<0)return E1(this.node,t,i);let o=r[n.buffer[this.stack[s]]];if(!o.isAnonymous){if(t[i]&&t[i]!=o.name)return!1;i--}}return!0}}function BE(e){return e.children.some(t=>t instanceof Ro||!t.type.isAnonymous||BE(t))}function Mte(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=QR,reused:s=[],minRepeatType:o=r.types.length}=e,a=Array.isArray(n)?new FE(n,n.length):n,l=r.types,c=0,u=0;function d(T,_,S,I,R,O){let{id:K,start:B,end:ge,size:le}=a,ye=u;for(;le<0;)if(a.next(),le==-1){let C=s[K];S.push(C),I.push(B-T);return}else if(le==-3){c=K;return}else if(le==-4){u=K;return}else throw new RangeError(`Unrecognized record size: ${le}`);let Fe=l[K],J,ee,he=B-T;if(ge-B<=i&&(ee=g(a.pos-_,R))){let C=new Uint16Array(ee.size-ee.skip),F=a.pos-ee.size,X=C.length;for(;a.pos>F;)X=b(ee.start,C,X);J=new Ro(C,ge-ee.start,r),he=ee.start-T}else{let C=a.pos-le;a.next();let F=[],X=[],k=K>=o?K:-1,D=0,U=ge;for(;a.pos>C;)k>=0&&a.id==k&&a.size>=0?(a.end<=U-i&&(p(F,X,B,D,a.end,U,k,ye),D=F.length,U=a.end),a.next()):O>2500?f(B,C,F,X):d(B,C,F,X,k,O+1);if(k>=0&&D>0&&D<F.length&&p(F,X,B,D,B,U,k,ye),F.reverse(),X.reverse(),k>-1&&D>0){let q=h(Fe);J=UE(Fe,F,X,0,F.length,0,ge-B,q,q)}else J=m(Fe,F,X,ge-B,ye-ge)}S.push(J),I.push(he)}function f(T,_,S,I){let R=[],O=0,K=-1;for(;a.pos>_;){let{id:B,start:ge,end:le,size:ye}=a;if(ye>4)a.next();else{if(K>-1&&ge<K)break;K<0&&(K=le-i),R.push(B,ge,le),O++,a.next()}}if(O){let B=new Uint16Array(O*4),ge=R[R.length-2];for(let le=R.length-3,ye=0;le>=0;le-=3)B[ye++]=R[le],B[ye++]=R[le+1]-ge,B[ye++]=R[le+2]-ge,B[ye++]=ye;S.push(new Ro(B,R[2]-ge,r)),I.push(ge-T)}}function h(T){return(_,S,I)=>{let R=0,O=_.length-1,K,B;if(O>=0&&(K=_[O])instanceof En){if(!O&&K.type==T&&K.length==I)return K;(B=K.prop(Nt.lookAhead))&&(R=S[O]+K.length+B)}return m(T,_,S,I,R)}}function p(T,_,S,I,R,O,K,B){let ge=[],le=[];for(;T.length>I;)ge.push(T.pop()),le.push(_.pop()+S-R);T.push(m(r.types[K],ge,le,O-R,B-O)),_.push(R-S)}function m(T,_,S,I,R=0,O){if(c){let K=[Nt.contextHash,c];O=O?[K].concat(O):[K]}if(R>25){let K=[Nt.lookAhead,R];O=O?[K].concat(O):[K]}return new En(T,_,S,I,O)}function g(T,_){let S=a.fork(),I=0,R=0,O=0,K=S.end-i,B={size:0,start:0,skip:0};e:for(let ge=S.pos-T;S.pos>ge;){let le=S.size;if(S.id==_&&le>=0){B.size=I,B.start=R,B.skip=O,O+=4,I+=4,S.next();continue}let ye=S.pos-le;if(le<0||ye<ge||S.start<K)break;let Fe=S.id>=o?4:0,J=S.start;for(S.next();S.pos>ye;){if(S.size<0)if(S.size==-3)Fe+=4;else break e;else S.id>=o&&(Fe+=4);S.next()}R=J,I+=le,O+=Fe}return(_<0||I==T)&&(B.size=I,B.start=R,B.skip=O),B.size>4?B:void 0}function b(T,_,S){let{id:I,start:R,end:O,size:K}=a;if(a.next(),K>=0&&I<o){let B=S;if(K>4){let ge=a.pos-(K-4);for(;a.pos>ge;)S=b(T,_,S)}_[--S]=B,_[--S]=O-T,_[--S]=R-T,_[--S]=I}else K==-3?c=I:K==-4&&(u=I);return S}let y=[],v=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,y,v,-1,0);let w=(t=e.length)!==null&&t!==void 0?t:y.length?v[0]+y[0].length:0;return new En(l[e.topID],y.reverse(),v.reverse(),w)}const Tx=new WeakMap;function dp(e,t){if(!e.isAnonymous||t instanceof Ro||t.type!=e)return 1;let n=Tx.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof En)){n=1;break}n+=dp(e,r)}Tx.set(t,n)}return n}function UE(e,t,n,r,i,s,o,a,l){let c=0;for(let p=r;p<i;p++)c+=dp(e,t[p]);let u=Math.ceil(c*1.5/8),d=[],f=[];function h(p,m,g,b,y){for(let v=g;v<b;){let w=v,T=m[v],_=dp(e,p[v]);for(v++;v<b;v++){let S=dp(e,p[v]);if(_+S>=u)break;_+=S}if(v==w+1){if(_>u){let S=p[w];h(S.children,S.positions,0,S.children.length,m[w]+y);continue}d.push(p[w])}else{let S=m[v-1]+p[v-1].length-T;d.push(UE(e,p,m,w,v,T,S,null,l))}f.push(T+y-s)}}return h(t,n,r,i,0),(a||l)(d,f,o)}class $te{constructor(){this.map=new WeakMap}setBuffer(t,n,r){let i=this.map.get(t);i||this.map.set(t,i=new Map),i.set(n,r)}getBuffer(t,n){let r=this.map.get(t);return r&&r.get(n)}set(t,n){t instanceof zi?this.setBuffer(t.context.buffer,t.index,n):t instanceof Jn&&this.map.set(t.tree,n)}get(t){return t instanceof zi?this.getBuffer(t.context.buffer,t.index):t instanceof Jn?this.map.get(t.tree):void 0}cursorSet(t,n){t.buffer?this.setBuffer(t.buffer.buffer,t.index,n):this.map.set(t.tree,n)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class Es{constructor(t,n,r,i,s=!1,o=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new Es(0,t.length,t,0,!1,r)];for(let s of n)s.to>t.length&&i.push(s);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],s=1,o=t.length?t[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<n.length?n[a]:null,d=u?u.fromA:1e9;if(d-l>=r)for(;o&&o.from<d;){let f=o;if(l>=f.from||d<=f.to||c){let h=Math.max(f.from,l)-c,p=Math.min(f.to,d)-c;f=h>=p?null:new Es(h,p,f.tree,f.offset+c,a>0,!!u)}if(f&&i.push(f),o.to>d)break;o=s<t.length?t[s++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return i}}class tP{startParse(t,n,r){return typeof t=="string"&&(t=new Fte(t)),r=r?r.length?r.map(i=>new Wr(i.from,i.to)):[new Wr(0,0)]:[new Wr(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let s=i.advance();if(s)return s}}}class Fte{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}function Bte(e){return(t,n,r,i)=>new Hte(t,e,n,r,i)}class Sx{constructor(t,n,r,i,s){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=s}}function kx(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class Ute{constructor(t,n,r,i,s,o,a){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=s,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}}const _1=new Nt({perNode:!0});class Hte{constructor(t,n,r,i,s){this.nest=n,this.input=r,this.fragments=i,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new En(r.type,r.children,r.positions,r.length,r.propValues.concat([[_1,this.stoppedAt]]))),r}let t=this.inner[this.innerDone],n=t.parse.advance();if(n){this.innerDone++;let r=Object.assign(Object.create(null),t.target.props);r[Nt.mounted.id]=new Ld(n,t.overlay,t.parser),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].from<t&&(t=Math.min(t,this.inner[n].parse.parsedPos));return t}stopAt(t){if(this.stoppedAt=t,this.baseParse)this.baseParse.stopAt(t);else for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].parse.stopAt(t)}startInner(){let t=new Vte(this.fragments),n=null,r=null,i=new Xp(new Jn(this.baseTree,this.ranges[0].from,0,null),exports.Xe.IncludeAnonymous|exports.Xe.IgnoreMounts);e:for(let s,o;;){let a=!0,l;if(this.stoppedAt!=null&&i.from>=this.stoppedAt)a=!1;else if(t.hasNode(i)){if(n){let c=n.mounts.find(u=>u.frag.from<=i.from&&u.frag.to>=i.to&&u.mount.overlay);if(c)for(let u of c.mount.overlay){let d=u.from+c.pos,f=u.to+c.pos;d>=i.from&&f<=i.to&&!n.ranges.some(h=>h.from<f&&h.to>d)&&n.ranges.push({from:d,to:f})}}a=!1}else if(r&&(o=jte(r.ranges,i.from,i.to)))a=o!=2;else if(!i.type.isAnonymous&&(s=this.nest(i,this.input))&&(i.from<i.to||!s.overlay)){i.tree||qte(i);let c=t.findMounts(i.from,s.parser);if(typeof s.overlay=="function")n=new Ute(s.parser,s.overlay,c,this.inner.length,i.from,i.tree,n);else{let u=Cx(this.ranges,s.overlay||(i.from<i.to?[new Wr(i.from,i.to)]:[]));u.length&&kx(u),(u.length||!s.overlay)&&this.inner.push(new Sx(s.parser,u.length?s.parser.startParse(this.input,Nx(c,u),u):s.parser.startParse(""),s.overlay?s.overlay.map(d=>new Wr(d.from-i.from,d.to-i.from)):null,i.tree,u.length?u[0].from:i.from)),s.overlay?u.length&&(r={ranges:u,depth:0,prev:r}):a=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new Wr(i.from,i.to)),l.from<l.to&&n.ranges.push(l));if(a&&i.firstChild())n&&n.depth++,r&&r.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(n&&!--n.depth){let c=Cx(this.ranges,n.ranges);c.length&&(kx(c),this.inner.splice(n.index,0,new Sx(n.parser,n.parser.startParse(this.input,Nx(n.mounts,c),c),n.ranges.map(u=>new Wr(u.from-n.start,u.to-n.start)),n.target,c[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function jte(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function xx(e,t,n,r,i,s){if(t<n){let o=e.buffer[t+1];r.push(e.slice(t,n,o)),i.push(o-s)}}function qte(e){let{node:t}=e,n=[],r=t.context.buffer;do n.push(e.index),e.parent();while(!e.tree);let i=e.tree,s=i.children.indexOf(r),o=i.children[s],a=o.buffer,l=[s];function c(u,d,f,h,p,m){let g=n[m],b=[],y=[];xx(o,u,g,b,y,h);let v=a[g+1],w=a[g+2];l.push(b.length);let T=m?c(g+4,a[g+3],o.set.types[a[g]],v,w-v,m-1):t.toTree();return b.push(T),y.push(v-h),xx(o,a[g+3],d,b,y,h),new En(f,b,y,p)}i.children[s]=c(0,a.length,mr.none,0,o.length,n.length-1);for(let u of l){let d=e.tree.children[u],f=e.tree.positions[u];e.yield(new Jn(d,f+e.from,u,e._tree))}}class Ax{constructor(t,n){this.offset=n,this.done=!1,this.cursor=t.cursor(exports.Xe.IncludeAnonymous|exports.Xe.IgnoreMounts)}moveTo(t){let{cursor:n}=this,r=t-this.offset;for(;!this.done&&n.from<r;)n.to>=t&&n.enter(r,1,exports.Xe.IgnoreOverlays|exports.Xe.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==t.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof En)n=n.children[0];else break}return!1}}class Vte{constructor(t){var n;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let r=this.curFrag=t[0];this.curTo=(n=r.tree.prop(_1))!==null&&n!==void 0?n:r.to,this.inner=new Ax(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let n=this.curFrag=this.fragments[this.fragI];this.curTo=(t=n.tree.prop(_1))!==null&&t!==void 0?t:n.to,this.inner=new Ax(n.tree,-n.offset)}}findMounts(t,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let s=this.inner.cursor.node;s;s=s.parent){let o=(r=s.tree)===null||r===void 0?void 0:r.prop(Nt.mounted);if(o&&o.parser==n)for(let a=this.fragI;a<this.fragments.length;a++){let l=this.fragments[a];if(l.from>=s.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:s.from-l.offset,mount:o})}}}return i}}function Cx(e,t){let n=null,r=t;for(let i=1,s=0;i<e.length;i++){let o=e[i-1].to,a=e[i].from;for(;s<r.length;s++){let l=r[s];if(l.from>=a)break;l.to<=o||(n||(r=n=t.slice()),l.from<o?(n[s]=new Wr(l.from,o),l.to>a&&n.splice(s+1,0,new Wr(a,l.to))):l.to>a?n[s--]=new Wr(a,l.to):n.splice(s--,1))}}return r}function zte(e,t,n,r){let i=0,s=0,o=!1,a=!1,l=-1e9,c=[];for(;;){let u=i==e.length?1e9:o?e[i].to:e[i].from,d=s==t.length?1e9:a?t[s].to:t[s].from;if(o!=a){let f=Math.max(l,n),h=Math.min(u,d,r);f<h&&c.push(new Wr(f,h))}if(l=Math.min(u,d),l==1e9)break;u==l&&(o?(o=!1,i++):o=!0),d==l&&(a?(a=!1,s++):a=!0)}return c}function Nx(e,t){let n=[];for(let{pos:r,mount:i,frag:s}of e){let o=r+(i.overlay?i.overlay[0].from:0),a=o+i.tree.length,l=Math.max(s.from,o),c=Math.min(s.to,a);if(i.overlay){let u=i.overlay.map(f=>new Wr(f.from+r,f.to+r)),d=zte(t,u,l,c);for(let f=0,h=l;;f++){let p=f==d.length,m=p?c:d[f].from;if(m>h&&n.push(new Es(h,m,i.tree,-o,s.from>=h||s.openStart,s.to<=m||s.openEnd)),p)break;h=d[f].to}}else n.push(new Es(l,c,i.tree,-o,s.from>=o||s.openStart,s.to<=a||s.openEnd))}return n}let Kte=0,ao=class nP{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=Kte++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new nP([],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(){let t=new Qp;return n=>n.modified.indexOf(t)>-1?n:Qp.get(n.base||n,n.modified.concat(t).sort((r,i)=>r.id-i.id))}},Wte=0;class Qp{constructor(){this.instances=[],this.id=Wte++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(a=>a.base==t&&Gte(n,a.modified));if(r)return r;let i=[],s=new ao(i,t,n);for(let a of n)a.instances.push(s);let o=Yte(n);for(let a of t.set)if(!a.modified.length)for(let l of o)i.push(Qp.get(a,l));return s}}function Gte(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function Yte(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((n,r)=>r.length-n.length)}function rP(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let s=[],o=2,a=i;for(let d=0;;){if(a=="..."&&d>0&&d+3==i.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!f)throw new RangeError("Invalid path: "+i);if(s.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),d+=f[0].length,d==i.length)break;let h=i[d++];if(d==i.length&&h=="!"){o=0;break}if(h!="/")throw new RangeError("Invalid path: "+i);a=i.slice(d)}let l=s.length-1,c=s[l];if(!c)throw new RangeError("Invalid path: "+i);let u=new Jp(r,o,l>0?s.slice(0,l):null);t[c]=u.sort(t[c])}}return iP.add(t)}const iP=new Nt;class Jp{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}Jp.empty=new Jp([],2,null);function sP(e,t){let n=Object.create(null);for(let s of e)if(!Array.isArray(s.tag))n[s.tag.id]=s.class;else for(let o of s.tag)n[o.id]=s.class;let{scope:r,all:i=null}=t||{};return{style:s=>{let o=i;for(let a of s)for(let l of a.set){let c=n[l.id];if(c){o=o?o+" "+c:c;break}}return o},scope:r}}function Xte(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function Qte(e,t,n,r=0,i=e.length){let s=new Jte(r,Array.isArray(t)?t:[t],n);s.highlightRange(e.cursor(),r,i,"",s.highlighters),s.flush(i)}class Jte{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,s){let{type:o,from:a,to:l}=t;if(a>=r||l<=n)return;o.isTop&&(s=this.highlighters.filter(h=>!h.scope||h.scope(o)));let c=i,u=Zte(t)||Jp.empty,d=Xte(s,u.tags);if(d&&(c&&(c+=" "),c+=d,u.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(n,a),c),u.opaque)return;let f=t.tree&&t.tree.prop(Nt.mounted);if(f&&f.overlay){let h=t.node.enter(f.overlay[0].from+a,1),p=this.highlighters.filter(g=>!g.scope||g.scope(f.tree.type)),m=t.firstChild();for(let g=0,b=a;;g++){let y=g<f.overlay.length?f.overlay[g]:null,v=y?y.from+a:l,w=Math.max(n,b),T=Math.min(r,v);if(w<T&&m)for(;t.from<T&&(this.highlightRange(t,w,T,i,s),this.startSpan(Math.min(T,t.to),c),!(t.to>=v||!t.nextSibling())););if(!y||v>r)break;b=y.to+a,b>n&&(this.highlightRange(h.cursor(),Math.max(n,y.from+a),Math.min(r,b),"",p),this.startSpan(Math.min(r,b),c))}m&&t.parent()}else if(t.firstChild()){f&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,s),this.startSpan(Math.min(r,t.to),c)}while(t.nextSibling());t.parent()}}}function Zte(e){let t=e.type.prop(iP);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const He=ao.define,xh=He(),lo=He(),Ox=He(lo),Dx=He(lo),co=He(),Ah=He(co),ob=He(co),Ri=He(),ea=He(Ri),Di=He(),Ii=He(),w1=He(),_u=He(w1),Ch=He(),Oe={comment:xh,lineComment:He(xh),blockComment:He(xh),docComment:He(xh),name:lo,variableName:He(lo),typeName:Ox,tagName:He(Ox),propertyName:Dx,attributeName:He(Dx),className:He(lo),labelName:He(lo),namespace:He(lo),macroName:He(lo),literal:co,string:Ah,docString:He(Ah),character:He(Ah),attributeValue:He(Ah),number:ob,integer:He(ob),float:He(ob),bool:He(co),regexp:He(co),escape:He(co),color:He(co),url:He(co),keyword:Di,self:He(Di),null:He(Di),atom:He(Di),unit:He(Di),modifier:He(Di),operatorKeyword:He(Di),controlKeyword:He(Di),definitionKeyword:He(Di),moduleKeyword:He(Di),operator:Ii,derefOperator:He(Ii),arithmeticOperator:He(Ii),logicOperator:He(Ii),bitwiseOperator:He(Ii),compareOperator:He(Ii),updateOperator:He(Ii),definitionOperator:He(Ii),typeOperator:He(Ii),controlOperator:He(Ii),punctuation:w1,separator:He(w1),bracket:_u,angleBracket:He(_u),squareBracket:He(_u),paren:He(_u),brace:He(_u),content:Ri,heading:ea,heading1:He(ea),heading2:He(ea),heading3:He(ea),heading4:He(ea),heading5:He(ea),heading6:He(ea),contentSeparator:He(Ri),list:He(Ri),quote:He(Ri),emphasis:He(Ri),strong:He(Ri),link:He(Ri),monospace:He(Ri),strikethrough:He(Ri),inserted:He(),deleted:He(),changed:He(),invalid:He(),meta:Ch,documentMeta:He(Ch),annotation:He(Ch),processingInstruction:He(Ch),definition:ao.defineModifier(),constant:ao.defineModifier(),function:ao.defineModifier(),standard:ao.defineModifier(),local:ao.defineModifier(),special:ao.defineModifier()};sP([{tag:Oe.link,class:"tok-link"},{tag:Oe.heading,class:"tok-heading"},{tag:Oe.emphasis,class:"tok-emphasis"},{tag:Oe.strong,class:"tok-strong"},{tag:Oe.keyword,class:"tok-keyword"},{tag:Oe.atom,class:"tok-atom"},{tag:Oe.bool,class:"tok-bool"},{tag:Oe.url,class:"tok-url"},{tag:Oe.labelName,class:"tok-labelName"},{tag:Oe.inserted,class:"tok-inserted"},{tag:Oe.deleted,class:"tok-deleted"},{tag:Oe.literal,class:"tok-literal"},{tag:Oe.string,class:"tok-string"},{tag:Oe.number,class:"tok-number"},{tag:[Oe.regexp,Oe.escape,Oe.special(Oe.string)],class:"tok-string2"},{tag:Oe.variableName,class:"tok-variableName"},{tag:Oe.local(Oe.variableName),class:"tok-variableName tok-local"},{tag:Oe.definition(Oe.variableName),class:"tok-variableName tok-definition"},{tag:Oe.special(Oe.variableName),class:"tok-variableName2"},{tag:Oe.definition(Oe.propertyName),class:"tok-propertyName tok-definition"},{tag:Oe.typeName,class:"tok-typeName"},{tag:Oe.namespace,class:"tok-namespace"},{tag:Oe.className,class:"tok-className"},{tag:Oe.macroName,class:"tok-macroName"},{tag:Oe.propertyName,class:"tok-propertyName"},{tag:Oe.operator,class:"tok-operator"},{tag:Oe.comment,class:"tok-comment"},{tag:Oe.meta,class:"tok-meta"},{tag:Oe.invalid,class:"tok-invalid"},{tag:Oe.punctuation,class:"tok-punctuation"}]);var ab;const Nl=new Nt;function oP(e){return it.define({combine:e?t=>t.concat(e):void 0})}const aP=new Nt;class gi{constructor(t,n,r=[],i=""){this.data=t,this.name=i,Ft.prototype.hasOwnProperty("tree")||Object.defineProperty(Ft.prototype,"tree",{get(){return Po(this)}}),this.parser=n,this.extension=[uc.of(this),Ft.languageData.of((s,o,a)=>{let l=Ix(s,o,a),c=l.type.prop(Nl);if(!c)return[];let u=s.facet(c),d=l.type.prop(aP);if(d){let f=l.resolve(o-l.from,a);for(let h of d)if(h.test(f,s)){let p=s.facet(h.facet);return h.type=="replace"?p:p.concat(u)}}return u})].concat(r)}isActiveAt(t,n,r=-1){return Ix(t,n,r).type.prop(Nl)==this.data}findRegions(t){let n=t.facet(uc);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(s,o)=>{if(s.prop(Nl)==this.data){r.push({from:o,to:o+s.length});return}let a=s.prop(Nt.mounted);if(a){if(a.tree.prop(Nl)==this.data){if(a.overlay)for(let l of a.overlay)r.push({from:l.from+o,to:l.to+o});else r.push({from:o,to:o+s.length});return}else if(a.overlay){let l=r.length;if(i(a.tree,a.overlay[0].from+o),r.length>l)return}}for(let l=0;l<s.children.length;l++){let c=s.children[l];c instanceof En&&i(c,s.positions[l]+o)}};return i(Po(t),0),r}get allowsNesting(){return!0}}gi.setState=xn.define();function Ix(e,t,n){let r=e.facet(uc),i=Po(e).topNode;if(!r||r.allowsNesting)for(let s=i;s;s=s.enter(t,n,exports.Xe.ExcludeBuffers))s.type.isTop&&(i=s);return i}class Zp extends gi{constructor(t,n,r){super(t,n,[],r),this.parser=n}static define(t){let n=oP(t.languageData);return new Zp(n,t.parser.configure({props:[Nl.add(r=>r.isTop?n:void 0)]}),t.name)}configure(t,n){return new Zp(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Po(e){let t=e.field(gi.state,!1);return t?t.tree:En.empty}class ene{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,n){let r=this.cursorPos-this.string.length;return t<r||n>=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}let wu=null;class em{constructor(t,n,r=[],i,s,o,a,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=s,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new em(t,n,[],En.empty,0,r,[],null)}startParse(){return this.parser.startParse(new ene(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=En.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof t=="number"){let i=Date.now()+t;t=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(Es.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(t())return!1}})}takeTree(){let t,n;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(Es.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=wu;wu=this;try{return t()}finally{wu=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=Rx(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((c,u,d,f)=>l.push({fromA:c,toA:u,fromB:d,toB:f})),r=Es.applyChanges(r,l),i=En.empty,s=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){a=[];for(let c of this.skipped){let u=t.mapPos(c.from,1),d=t.mapPos(c.to,-1);u<d&&a.push({from:u,to:d})}}}return new em(this.parser,n,r,i,s,o,a,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let n=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:s}=this.skipped[r];i<t.to&&s>t.from&&(this.fragments=Rx(this.fragments,i,s),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends tP{createParse(n,r,i){let s=i[0].from,o=i[i.length-1].to;return{parsedPos:s,advance(){let a=wu;if(a){for(let l of i)a.tempSkipped.push(l);t&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,t]):t)}return this.parsedPos=o,new En(mr.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return wu}}function Rx(e,t,n){return Es.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class cc{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new cc(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=em.create(t.facet(uc).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new cc(r)}}gi.state=Us.define({create:cc.init,update(e,t){for(let n of t.effects)if(n.is(gi.setState))return n.value;return t.startState.facet(uc)!=t.state.facet(uc)?cc.init(t.state):e.apply(t)}});let lP=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(lP=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const lb=typeof navigator<"u"&&!((ab=navigator.scheduling)===null||ab===void 0)&&ab.isInputPending?()=>navigator.scheduling.isInputPending():null,tne=Zr.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(gi.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(gi.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=lP(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(gi.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!lb?Math.max(25,e.timeRemaining()-5):1e9),o=i.context.treeLen<r&&n.doc.length>r+1e3,a=i.context.work(()=>lb&&lb()||Date.now()>s,r+(o?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:gi.setState.of(new cc(i.context))})),this.chunkBudget>0&&!(a&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>vs(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),uc=it.define({combine(e){return e.length?e[0]:null},enables:e=>[gi.state,tne,kt.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class nne{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}const rne=it.define(),HE=it.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(n=>n!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function cP(e){let t=e.facet(HE);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function uP(e,t){let n="",r=e.tabSize,i=e.facet(HE)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let s=0;s<t;s++)n+=i;return n}function ine(e,t){e instanceof Ft&&(e=new dP(e));for(let r of e.state.facet(rne)){let i=r(e,t);if(i!==void 0)return i}let n=Po(e.state);return n.length>=t?sne(e,n,t):null}class dP{constructor(t,n={}){this.state=t,this.options=n,this.unit=cP(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:s}=this.options;return i!=null&&i>=r.from&&i<=r.to?s&&i==t?{text:"",from:t}:(n<0?i<t:i<=t)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(t,n=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:r,from:i}=this.lineAt(t,n);return r.slice(t-i,Math.min(r.length,t+100-i))}column(t,n=1){let{text:r,from:i}=this.lineAt(t,n),s=this.countColumn(r,t-i),o=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return o>-1&&(s+=o-this.countColumn(r,r.search(/\S|$/))),s}countColumn(t,n=t.length){return NE(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,n),s=this.options.overrideIndentation;if(s){let o=s(i);if(o>-1)return o}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const fP=new Nt;function sne(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let s=[];for(let o=i;o!=r.node;o=o.parent)s.push(o);for(let o=s.length-1;o>=0;o--)r={node:s[o],next:r}}return hP(r,e,n)}function hP(e,t,n){for(let r=e;r;r=r.next){let i=ane(r.node);if(i)return i(jE.create(t,n,r))}return 0}function one(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function ane(e){let t=e.type.prop(fP);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(Nt.closedBy))){let i=e.lastChild,s=i&&r.indexOf(i.name)>-1;return o=>pP(o,!0,1,void 0,s&&!one(o)?i.from:void 0)}return e.parent==null?lne:null}function lne(){return 0}class jE extends dP{constructor(t,n,r){super(t.state,t.options),this.base=t,this.pos=n,this.context=r}get node(){return this.context.node}static create(t,n,r){return new jE(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let n=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(cne(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return hP(this.context.next,this.base,this.pos)}}function cne(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function une(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,s=e.state.doc.lineAt(n.from),o=i==null||i<=s.from?s.to:Math.min(s.to,i);for(let a=n.to;;){let l=t.childAfter(a);if(!l||l==r)return null;if(!l.type.isSkipped)return l.from<o?n:null;a=l.to}}function dne({closing:e,align:t=!0,units:n=1}){return r=>pP(r,t,n,e)}function pP(e,t,n,r,i){let s=e.textAfter,o=s.match(/^\s*/)[0].length,a=r&&s.slice(o,o+r.length)==r||i==e.pos+o,l=t?une(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*n)}const fne=e=>e.baseIndent;function hne({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const pne=200;function mne(){return Ft.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+pne)return e;let s=n.sliceString(i.from,r);if(!t.some(c=>c.test(s)))return e;let{state:o}=e,a=-1,l=[];for(let{head:c}of o.selection.ranges){let u=o.doc.lineAt(c);if(u.from==a)continue;a=u.from;let d=ine(o,u.from);if(d==null)continue;let f=/^\s*/.exec(u.text)[0],h=uP(o,d);f!=h&&l.push({from:u.from,to:u.from+f.length,insert:h})}return l.length?[e,{changes:l,sequential:!0}]:e})}const gne=new Nt;function bne(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}class gf{constructor(t,n){this.specs=t;let r;function i(a){let l=Oo.newName();return(r||(r=Object.create(null)))["."+l]=a,l}const s=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,o=n.scope;this.scope=o instanceof gi?a=>a.prop(Nl)==o.data:o?a=>a==o:void 0,this.style=sP(t.map(a=>({tag:a.tag,class:a.class||i(Object.assign({},a,{tag:null}))})),{all:s}).style,this.module=r?new Oo(r):null,this.themeType=n.themeType}static define(t,n){return new gf(t,n||{})}}const T1=it.define(),mP=it.define({combine(e){return e.length?[e[0]]:null}});function cb(e){let t=e.facet(T1);return t.length?t:e.facet(mP)}function gP(e,t){let n=[vne],r;return e instanceof gf&&(e.module&&n.push(kt.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(mP.of(e)):r?n.push(T1.computeN([kt.darkTheme],i=>i.facet(kt.darkTheme)==(r=="dark")?[e]:[])):n.push(T1.of(e)),n}class yne{constructor(t){this.markCache=Object.create(null),this.tree=Po(t.state),this.decorations=this.buildDeco(t,cb(t.state)),this.decoratedTo=t.viewport.to}update(t){let n=Po(t.state),r=cb(t.state),i=r!=cb(t.startState),{viewport:s}=t.view,o=t.changes.mapPos(this.decoratedTo,1);n.length<s.to&&!i&&n.type==this.tree.type&&o>=s.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=o):(n!=this.tree||t.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r),this.decoratedTo=s.to)}buildDeco(t,n){if(!n||!this.tree.length)return ln.none;let r=new ac;for(let{from:i,to:s}of t.visibleRanges)Qte(this.tree,n,(o,a,l)=>{r.add(o,a,this.markCache[l]||(this.markCache[l]=ln.mark({class:l})))},i,s);return r.finish()}}const vne=ug.high(Zr.fromClass(yne,{decorations:e=>e.decorations})),Ene=gf.define([{tag:Oe.meta,color:"#404740"},{tag:Oe.link,textDecoration:"underline"},{tag:Oe.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Oe.emphasis,fontStyle:"italic"},{tag:Oe.strong,fontWeight:"bold"},{tag:Oe.strikethrough,textDecoration:"line-through"},{tag:Oe.keyword,color:"#708"},{tag:[Oe.atom,Oe.bool,Oe.url,Oe.contentSeparator,Oe.labelName],color:"#219"},{tag:[Oe.literal,Oe.inserted],color:"#164"},{tag:[Oe.string,Oe.deleted],color:"#a11"},{tag:[Oe.regexp,Oe.escape,Oe.special(Oe.string)],color:"#e40"},{tag:Oe.definition(Oe.variableName),color:"#00f"},{tag:Oe.local(Oe.variableName),color:"#30a"},{tag:[Oe.typeName,Oe.namespace],color:"#085"},{tag:Oe.className,color:"#167"},{tag:[Oe.special(Oe.variableName),Oe.macroName],color:"#256"},{tag:Oe.definition(Oe.propertyName),color:"#00c"},{tag:Oe.comment,color:"#940"},{tag:Oe.invalid,color:"#f00"}]),_ne=kt.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),bP=1e4,yP="()[]{}",vP=it.define({combine(e){return fg(e,{afterCursor:!0,brackets:yP,maxScanDistance:bP,renderMatch:Sne})}}),wne=ln.mark({class:"cm-matchingBracket"}),Tne=ln.mark({class:"cm-nonmatchingBracket"});function Sne(e){let t=[],n=e.matched?wne:Tne;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const kne=Us.define({create(){return ln.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(vP);for(let i of t.state.selection.ranges){if(!i.empty)continue;let s=Nh(t.state,i.head,-1,r)||i.head>0&&Nh(t.state,i.head-1,1,r)||r.afterCursor&&(Nh(t.state,i.head,1,r)||i.head<t.state.doc.length&&Nh(t.state,i.head+1,-1,r));s&&(n=n.concat(r.renderMatch(s,t.state)))}return ln.set(n,!0)},provide:e=>kt.decorations.from(e)}),xne=[kne,_ne];function Ane(e={}){return[vP.of(e),xne]}const EP=new Nt;function S1(e,t,n){let r=e.prop(t<0?Nt.openedBy:Nt.closedBy);if(r)return r;if(e.name.length==1){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function k1(e){let t=e.type.prop(EP);return t?t(e.node):e}function Nh(e,t,n,r={}){let i=r.maxScanDistance||bP,s=r.brackets||yP,o=Po(e),a=o.resolveInner(t,n);for(let l=a;l;l=l.parent){let c=S1(l.type,n,s);if(c&&l.from<l.to){let u=k1(l);if(u&&(n>0?t>=u.from&&t<u.to:t>u.from&&t<=u.to))return Cne(e,t,n,l,u,c,s)}}return Nne(e,t,n,o,a.type,i,s)}function Cne(e,t,n,r,i,s,o){let a=r.parent,l={from:i.from,to:i.to},c=0,u=a==null?void 0:a.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do if(n<0?u.to<=r.from:u.from>=r.to){if(c==0&&s.indexOf(u.type.name)>-1&&u.from<u.to){let d=k1(u);return{start:l,end:d?{from:d.from,to:d.to}:void 0,matched:!0}}else if(S1(u.type,n,o))c++;else if(S1(u.type,-n,o)){if(c==0){let d=k1(u);return{start:l,end:d&&d.from<d.to?{from:d.from,to:d.to}:void 0,matched:!1}}c--}}while(n<0?u.prevSibling():u.nextSibling());return{start:l,matched:!1}}function Nne(e,t,n,r,i,s,o){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=o.indexOf(a);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let f=0;!u.next().done&&f<=s;){let h=u.value;n<0&&(f+=h.length);let p=t+f*n;for(let m=n>0?0:h.length-1,g=n>0?h.length:-1;m!=g;m+=n){let b=o.indexOf(h[m]);if(!(b<0||r.resolveInner(p+m,1).type!=i))if(b%2==0==n>0)d++;else{if(d==1)return{start:c,end:{from:p+m,to:p+m+1},matched:b>>1==l>>1};d--}}n>0&&(f+=h.length)}return u.done?{start:c,matched:!1}:null}const One=Object.create(null),Px=[mr.none],Lx=[],Mx=Object.create(null),Dne=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Dne[e]=Ine(One,t);function ub(e,t){Lx.indexOf(e)>-1||(Lx.push(e),console.warn(t))}function Ine(e,t){let n=[];for(let a of t.split(" ")){let l=[];for(let c of a.split(".")){let u=e[c]||Oe[c];u?typeof u=="function"?l.length?l=l.map(u):ub(c,`Modifier ${c} used at start of tag`):l.length?ub(c,`Tag ${c} used as modifier`):l=Array.isArray(u)?u:[u]:ub(c,`Unknown highlighting tag ${c}`)}for(let c of l)n.push(c)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(a=>a.id),s=Mx[i];if(s)return s.id;let o=Mx[i]=mr.define({id:Px.length,name:r,props:[rP({[r]:n})]});return Px.push(o),o.id}exports.ct.RTL,exports.ct.LTR;var Rne=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},s={};n.background&&(s.backgroundColor=n.background),n.backgroundImage&&(s.backgroundImage=n.backgroundImage),n.foreground&&(s.color=n.foreground),(n.background||n.foreground)&&(i["&"]=s),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var o={};n.gutterActiveForeground&&(o.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},o.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=o,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var a=kt.theme(i,{dark:t==="dark"}),l=gf.define(r),c=[a,gP(l)];return c};const Pne=Rne({theme:"light",settings:{background:"var(--scalar-background-2)",foreground:"var(--scalar-color-1)",caret:"var(--scalar-color-1)",selection:"rgba(151, 183, 205, 0.2)",selectionMatch:"#e3dcce",gutterBackground:"var(--scalar-background-2)",gutterForeground:"var(--scalar-color-3)",gutterBorder:"transparent",lineHighlight:"var(--scalar-background-3)",fontFamily:"var(--scalar-font-code)"},styles:[{tag:[Oe.standard(Oe.tagName),Oe.tagName],color:"var(--scalar-color-purple)"},{tag:[Oe.comment],color:"var(--scalar-color-3)"},{tag:[Oe.className],color:"var(--scalar-color-orange)"},{tag:[Oe.variableName,Oe.propertyName,Oe.attributeName],color:"var(--scalar-color-1)"},{tag:[Oe.operator],color:"var(--scalar-color-2)"},{tag:[Oe.keyword,Oe.typeName,Oe.typeOperator],color:"var(--scalar-color-green)"},{tag:[Oe.string],color:"var(--scalar-color-blue)"},{tag:[Oe.bracket,Oe.regexp,Oe.meta],color:"var(--scalar-color-3)"},{tag:[Oe.number],color:"var(--scalar-color-blue)"},{tag:[Oe.name,Oe.quote],color:"var(--scalar-color-3)"},{tag:[Oe.heading],color:"var(--scalar-color-3)",fontWeight:"bold"},{tag:[Oe.emphasis],color:"var(--scalar-color-3)",fontStyle:"italic"},{tag:[Oe.deleted],color:"var(--scalar-color-3)",backgroundColor:"transparent"},{tag:[Oe.atom,Oe.bool,Oe.special(Oe.variableName)],color:"var(--scalar-color-3)"},{tag:[Oe.url,Oe.escape,Oe.regexp,Oe.link],color:"var(--scalar-color-1)"},{tag:Oe.link,textDecoration:"underline"},{tag:Oe.strikethrough,textDecoration:"line-through"},{tag:Oe.invalid,color:"var(--scalar-color-3)"}]}),$x=new WR({regexp:/(\{[^}]+\})/g,decoration:()=>ln.mark({attributes:{class:"api-client-url-variable"}})}),Lne=()=>Zr.fromClass(class{constructor(e){gJ(this,"variables"),this.variables=$x.createDeco(e)}update(e){this.variables=$x.updateDeco(e,this.variables)}},{decorations:e=>e.variables,provide:e=>kt.atomicRanges.of(t=>{var n;return((n=t.plugin(e))==null?void 0:n.variables)||ln.none})}),Mne={class:"scalar-modal-layout modal-layout"},$ne=Se({__name:"FlowModal",props:{state:{},title:{},bodyClass:{},maxWidth:{},variant:{default:"normal"}},setup(e){return(t,n)=>(x(),de(A(E6),{open:t.state.open,onClose:n[0]||(n[0]=r=>t.state.hide())},{default:Y(()=>[ie("div",Mne,[Q(A(_6),{class:ut(["modal",{"modal-content-large":t.variant==="large","modal-content-normal":t.variant==="normal","modal-content-small":t.variant==="small","modal-content-search":t.variant==="search","modal-content-history":t.variant==="history"}]),style:xr({maxWidth:t.maxWidth})},{default:Y(()=>[t.title?(x(),de(A(w6),{key:0,class:"modal-header"},{default:Y(()=>[Ie(Be(t.title),1)]),_:1})):pe("",!0),Q(A(T6),{class:ut(["modal-body custom-scroll",[t.bodyClass]])},{default:Y(()=>[Ue(t.$slots,"default",{},void 0,!0)]),_:3},8,["class"])]),_:3},8,["class","style"])])]),_:3},8,["open"]))}}),_P=je($ne,[["__scopeId","data-v-4aafbf68"]]),wP=()=>qn({open:!1,show(){this.open=!0},hide(){this.open=!1}});function fp(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function TP(e){return typeof window>"u"?Buffer.from(e).toString("base64"):btoa(e)}const SP=e=>{const t=/(?:\{+)\s*(\w+)\s*(?:\}+)/g;return[...e.matchAll(t)].map(n=>n[1].trim())||[]};function Fne(e){return!(!e||Array.isArray(e)&&!e.length||(e??[]).some(t=>!Object.keys(t).length))}function qE(e,t){var n,r;const i=[],s=[],o=[];if(!e.customSecurity&&(!e.preferredSecurityScheme||!Fne(t)))return{headers:i,queryString:s,cookies:o};const a=t!=null&&t.some(c=>e.preferredSecurityScheme&&Object.keys(c).includes(e.preferredSecurityScheme))||e.customSecurity?e.preferredSecurityScheme:Object.keys((t==null?void 0:t[0])??{}).pop(),l=(n=e.securitySchemes)==null?void 0:n[a??""];if(l){if("type"in l&&l.type==="apiKey"){if("in"in l&&l.in==="header"){const c=(r=e.apiKey.token)!=null&&r.length?e.apiKey.token:"YOUR_TOKEN";i.push({name:"name"in l?l.name:"",value:c})}else if("in"in l&&l.in==="cookie"){const c=e.apiKey.token.length?e.apiKey.token:"YOUR_TOKEN";o.push({name:l.name,value:c})}else if("in"in l&&l.in==="query"){const c=e.apiKey.token.length?e.apiKey.token:"YOUR_TOKEN";s.push({name:l.name,value:c})}}else if("type"in l&&(l.type==="http"||l.type==="basic")){if("type"in l&&(l.type==="basic"||l.type==="http"&&l.scheme==="basic")){const{username:c,password:u}=e.http.basic,d=VE(c,u);i.push({name:"Authorization",value:`Basic ${d}`.trim()})}else if("type"in l&&l.type==="http"&&l.scheme==="bearer"){const c=e.http.bearer.token.length?e.http.bearer.token:"YOUR_SECRET_TOKEN";i.push({name:"Authorization",value:`Bearer ${c}`})}}else if("type"in l&&l.type.toLowerCase()==="oauth2"){const c=e.oAuth2.accessToken||"YOUR_SECRET_TOKEN";i.push({name:"Authorization",value:`Bearer ${c}`})}}return{headers:i,queryString:s,cookies:o}}function VE(e,t){return e!=null&&e.length||t!=null&&t.length?TP(`${e}:${t}`):""}function kP(e){return[e.apiKey.token,e.http.bearer.token,e.oAuth2.accessToken,VE(e.http.basic.username,e.http.basic.password),e.http.basic.password].filter(Boolean)}const Bne=Mv(Symbol()),Une={},Hne={class:"card-form"};function jne(e,t){return x(),j("form",Hne,[Ue(e.$slots,"default",{},void 0,!0)])}const qne=je(Une,[["render",jne],["__scopeId","data-v-983db964"]]),Vne=Se({__name:"CardFormButton",setup(e,{expose:t}){const n=ce();return t({el:n}),(r,i)=>(x(),j("button",{ref_key:"el",ref:n,class:"card-form-button",type:"button"},[Ue(r.$slots,"default",{},void 0,!0)],512))}}),xP=je(Vne,[["__scopeId","data-v-d19add49"]]),zne={},Kne={class:"card-form-group"};function Wne(e,t){return x(),j("div",Kne,[Ue(e.$slots,"default",{},void 0,!0)])}const Fx=je(zne,[["render",Wne],["__scopeId","data-v-c2b3e8ed"]]);function AP(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=AP(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function db(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=AP(e))&&(r&&(r+=" "),r+=t);return r}const Bx=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Gne=e=>{const t=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var s,o;return typeof(e==null||(s=e.hooks)===null||s===void 0?void 0:s["cx:done"])<"u"?e==null?void 0:e.hooks["cx:done"](db(r)):typeof(e==null||(o=e.hooks)===null||o===void 0?void 0:o.onComplete)<"u"?e==null?void 0:e.hooks.onComplete(db(r)):db(r)};return{compose:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return s=>{const o=Object.fromEntries(Object.entries(s||{}).filter(a=>{let[l]=a;return!["class","className"].includes(l)}));return t(r.map(a=>a(o)),s==null?void 0:s.class,s==null?void 0:s.className)}},cva:n=>r=>{var i;if((n==null?void 0:n.variants)==null)return t(n==null?void 0:n.base,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=n,a=Object.keys(s).map(u=>{const d=r==null?void 0:r[u],f=o==null?void 0:o[u],h=Bx(d)||Bx(f);return s[u][h]}),l={...o,...r&&Object.entries(r).reduce((u,d)=>{let[f,h]=d;return typeof h>"u"?u:{...u,[f]:h}},{})},c=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((u,d)=>{let{class:f,className:h,...p}=d;return Object.entries(p).every(m=>{let[g,b]=m;const y=l[g];return Array.isArray(b)?b.includes(y):y===b})?[...u,f,h]:u},[]);return t(n==null?void 0:n.base,a,c,r==null?void 0:r.class,r==null?void 0:r.className)},cx:t}},zE="-";function Yne(e){const t=Qne(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function i(o){const a=o.split(zE);return a[0]===""&&a.length!==1&&a.shift(),CP(a,t)||Xne(o)}function s(o,a){const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:i,getConflictingClassGroupIds:s}}function CP(e,t){var n;if(e.length===0)return t.classGroupId;const r=e[0],i=t.nextPart.get(r),s=i?CP(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(zE);return(n=t.validators.find(({validator:a})=>a(o)))==null?void 0:n.classGroupId}const Ux=/^\[(.+)\]$/;function Xne(e){if(Ux.test(e)){const t=Ux.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Qne(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Zne(Object.entries(e.classGroups),n).forEach(([i,s])=>{x1(s,r,i,t)}),r}function x1(e,t,n,r){e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Hx(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(Jne(i)){x1(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{x1(o,Hx(t,s),n,r)})})}function Hx(e,t){let n=e;return t.split(zE).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Jne(e){return e.isThemeGetter}function Zne(e,t){return t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e}function ere(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function i(s,o){n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)}return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}}const NP="!";function tre(e){const t=e.separator,n=t.length===1,r=t[0],i=t.length;return function(s){const o=[];let a=0,l=0,c;for(let p=0;p<s.length;p++){let m=s[p];if(a===0){if(m===r&&(n||s.slice(p,p+i)===t)){o.push(s.slice(l,p)),l=p+i;continue}if(m==="/"){c=p;continue}}m==="["?a++:m==="]"&&a--}const u=o.length===0?s:s.substring(l),d=u.startsWith(NP),f=d?u.substring(1):u,h=c&&c>l?c-l:void 0;return{modifiers:o,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}}}function nre(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function rre(e){return{cache:ere(e.cacheSize),splitModifiers:tre(e),...Yne(e)}}const ire=/\s+/;function sre(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=new Set;return e.trim().split(ire).map(o=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:u}=n(o);let d=r(u?c.substring(0,u):c),f=!!u;if(!d){if(!u)return{isTailwindClass:!1,originalClassName:o};if(d=r(c),!d)return{isTailwindClass:!1,originalClassName:o};f=!1}const h=nre(a).join(":");return{isTailwindClass:!0,modifierId:l?h+NP:h,classGroupId:d,originalClassName:o,hasPostfixModifier:f}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=o,u=a+l;return s.has(u)?!1:(s.add(u),i(l,c).forEach(d=>s.add(a+d)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function ore(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=OP(t))&&(r&&(r+=" "),r+=n);return r}function OP(e){if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=OP(e[r]))&&(n&&(n+=" "),n+=t);return n}function jx(e,...t){let n,r,i,s=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=rre(c),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=sre(l,n);return i(l,u),u}return function(){return s(ore.apply(null,arguments))}}function Gt(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const DP=/^\[(?:([a-z-]+):)?(.+)\]$/i,are=/^\d+\/\d+$/,lre=new Set(["px","full","screen"]),cre=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ure=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dre=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fre=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hre=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function os(e){return ba(e)||lre.has(e)||are.test(e)}function Ws(e){return Pc(e,"length",_re)}function ba(e){return!!e&&!Number.isNaN(Number(e))}function Oh(e){return Pc(e,"number",ba)}function Tu(e){return!!e&&Number.isInteger(Number(e))}function pre(e){return e.endsWith("%")&&ba(e.slice(0,-1))}function yt(e){return DP.test(e)}function Gs(e){return cre.test(e)}const mre=new Set(["length","size","percentage"]);function gre(e){return Pc(e,mre,IP)}function bre(e){return Pc(e,"position",IP)}const yre=new Set(["image","url"]);function vre(e){return Pc(e,yre,Tre)}function Ere(e){return Pc(e,"",wre)}function Su(){return!0}function Pc(e,t,n){const r=DP.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function _re(e){return ure.test(e)&&!dre.test(e)}function IP(){return!1}function wre(e){return fre.test(e)}function Tre(e){return hre.test(e)}function qx(){const e=Gt("colors"),t=Gt("spacing"),n=Gt("blur"),r=Gt("brightness"),i=Gt("borderColor"),s=Gt("borderRadius"),o=Gt("borderSpacing"),a=Gt("borderWidth"),l=Gt("contrast"),c=Gt("grayscale"),u=Gt("hueRotate"),d=Gt("invert"),f=Gt("gap"),h=Gt("gradientColorStops"),p=Gt("gradientColorStopPositions"),m=Gt("inset"),g=Gt("margin"),b=Gt("opacity"),y=Gt("padding"),v=Gt("saturate"),w=Gt("scale"),T=Gt("sepia"),_=Gt("skew"),S=Gt("space"),I=Gt("translate"),R=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",yt,t],B=()=>[yt,t],ge=()=>["",os,Ws],le=()=>["auto",ba,yt],ye=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Fe=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>["start","end","center","between","around","evenly","stretch"],he=()=>["","0",yt],C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[ba,Oh],X=()=>[ba,yt];return{cacheSize:500,separator:":",theme:{colors:[Su],spacing:[os,Ws],blur:["none","",Gs,yt],brightness:F(),borderColor:[e],borderRadius:["none","","full",Gs,yt],borderSpacing:B(),borderWidth:ge(),contrast:F(),grayscale:he(),hueRotate:X(),invert:he(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[pre,Ws],inset:K(),margin:K(),opacity:F(),padding:B(),saturate:F(),scale:F(),sepia:he(),skew:X(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",yt]}],container:["container"],columns:[{columns:[Gs]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ye(),yt]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Tu,yt]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",yt]}],grow:[{grow:he()}],shrink:[{shrink:he()}],order:[{order:["first","last","none",Tu,yt]}],"grid-cols":[{"grid-cols":[Su]}],"col-start-end":[{col:["auto",{span:["full",Tu,yt]},yt]}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":[Su]}],"row-start-end":[{row:["auto",{span:[Tu,yt]},yt]}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",yt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",yt]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...ee()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ee(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ee(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",yt,t]}],"min-w":[{"min-w":[yt,t,"min","max","fit"]}],"max-w":[{"max-w":[yt,t,"none","full","min","max","fit","prose",{screen:[Gs]},Gs]}],h:[{h:[yt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[yt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[yt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[yt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Gs,Ws]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Oh]}],"font-family":[{font:[Su]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",yt]}],"line-clamp":[{"line-clamp":["none",ba,Oh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",os,yt]}],"list-image":[{"list-image":["none",yt]}],"list-style-type":[{list:["none","disc","decimal",yt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Fe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",os,Ws]}],"underline-offset":[{"underline-offset":["auto",os,yt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",yt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",yt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ye(),bre]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gre]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vre]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...Fe(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:Fe()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Fe()]}],"outline-offset":[{"outline-offset":[os,yt]}],"outline-w":[{outline:[os,Ws]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[os,Ws]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Gs,Ere]}],"shadow-color":[{shadow:[Su]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Gs,yt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",yt]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",yt]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",yt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Tu,yt]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",yt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",yt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",yt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[os,Ws,Oh]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function Sre(e,{cacheSize:t,prefix:n,separator:r,extend:i={},override:s={}}){hp(e,"cacheSize",t),hp(e,"prefix",n),hp(e,"separator",r);for(const o in s)kre(e[o],s[o]);for(const o in i)xre(e[o],i[o]);return e}function hp(e,t,n){n!==void 0&&(e[t]=n)}function kre(e,t){if(t)for(const n in t)hp(e,n,t[n])}function xre(e,t){if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}}function Are(e,...t){return typeof e=="function"?jx(qx,e,...t):jx(()=>Sre(qx(),e),...t)}const tm=Math.min,La=Math.max,nm=Math.round,Dh=Math.floor,Lo=e=>({x:e,y:e}),Cre={left:"right",right:"left",bottom:"top",top:"bottom"},Nre={start:"end",end:"start"};function Vx(e,t,n){return La(e,tm(t,n))}function mg(e,t){return typeof e=="function"?e(t):e}function Va(e){return e.split("-")[0]}function gg(e){return e.split("-")[1]}function RP(e){return e==="x"?"y":"x"}function PP(e){return e==="y"?"height":"width"}function bg(e){return["top","bottom"].includes(Va(e))?"y":"x"}function LP(e){return RP(bg(e))}function Ore(e,t,n){n===void 0&&(n=!1);const r=gg(e),i=LP(e),s=PP(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=rm(o)),[o,rm(o)]}function Dre(e){const t=rm(e);return[A1(e),t,A1(t)]}function A1(e){return e.replace(/start|end/g,t=>Nre[t])}function Ire(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}function Rre(e,t,n,r){const i=gg(e);let s=Ire(Va(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(A1)))),s}function rm(e){return e.replace(/left|right|bottom|top/g,t=>Cre[t])}function Pre(e){return{top:0,right:0,bottom:0,left:0,...e}}function Lre(e){return typeof e!="number"?Pre(e):{top:e,right:e,bottom:e,left:e}}function im(e){const{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 zx(e,t,n){let{reference:r,floating:i}=e;const s=bg(t),o=LP(t),a=PP(o),l=Va(t),c=s==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-i.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(gg(t)){case"start":h[o]-=f*(n&&c?-1:1);break;case"end":h[o]+=f*(n&&c?-1:1);break}return h}const Mre=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=zx(c,r,l),f=r,h={},p=0;for(let m=0;m<a.length;m++){const{name:g,fn:b}=a[m],{x:y,y:v,data:w,reset:T}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:c,platform:o,elements:{reference:e,floating:t}});u=y??u,d=v??d,h={...h,[g]:{...h[g],...w}},T&&p<=50&&(p++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(c=T.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:u,y:d}=zx(c,f,l)),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:h}};async function MP(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=mg(t,e),p=Lre(h),m=a[f?d==="floating"?"reference":"floating":d],g=im(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(m)))==null||n?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=d==="floating"?{...o.floating,x:r,y:i}:o.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),v=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},w=im(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:y,strategy:l}):b);return{top:(g.top-w.top+p.top)/v.y,bottom:(w.bottom-g.bottom+p.bottom)/v.y,left:(g.left-w.left+p.left)/v.x,right:(w.right-g.right+p.right)/v.x}}const $re=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=mg(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Va(i),y=Va(a)===a,v=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=f||(y||!m?[rm(a)]:Dre(a));!f&&p!=="none"&&w.push(...Rre(a,m,p,v));const T=[a,...w],_=await MP(t,g),S=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&S.push(_[b]),d){const B=Ore(i,o,v);S.push(_[B[0]],_[B[1]])}if(I=[...I,{placement:i,overflows:S}],!S.every(B=>B<=0)){var R,O;const B=(((R=s.flip)==null?void 0:R.index)||0)+1,ge=T[B];if(ge)return{data:{index:B,overflows:I},reset:{placement:ge}};let le=(O=I.filter(ye=>ye.overflows[0]<=0).sort((ye,Fe)=>ye.overflows[1]-Fe.overflows[1])[0])==null?void 0:O.placement;if(!le)switch(h){case"bestFit":{var K;const ye=(K=I.map(Fe=>[Fe.placement,Fe.overflows.filter(J=>J>0).reduce((J,ee)=>J+ee,0)]).sort((Fe,J)=>Fe[1]-J[1])[0])==null?void 0:K[0];ye&&(le=ye);break}case"initialPlacement":le=a;break}if(i!==le)return{reset:{placement:le}}}return{}}}};async function Fre(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Va(n),a=gg(n),l=bg(n)==="y",c=["left","top"].includes(o)?-1:1,u=s&&l?-1:1,d=mg(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const Bre=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await Fre(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},Ure=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:g=>{let{x:b,y}=g;return{x:b,y}}},...l}=mg(e,t),c={x:n,y:r},u=await MP(t,l),d=bg(Va(i)),f=RP(d);let h=c[f],p=c[d];if(s){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",y=h+u[g],v=h-u[b];h=Vx(y,h,v)}if(o){const g=d==="y"?"top":"left",b=d==="y"?"bottom":"right",y=p+u[g],v=p-u[b];p=Vx(y,p,v)}const m=a.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function Is(e){return KE(e)?(e.nodeName||"").toLowerCase():"#document"}function $r(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hs(e){var t;return(t=(KE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function KE(e){return e instanceof Node||e instanceof $r(e).Node}function Rs(e){return e instanceof Element||e instanceof $r(e).Element}function Ji(e){return e instanceof HTMLElement||e instanceof $r(e).HTMLElement}function Kx(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $r(e).ShadowRoot}function bf(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ei(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Hre(e){return["table","td","th"].includes(Is(e))}function WE(e){const t=GE(),n=ei(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function jre(e){let t=dc(e);for(;Ji(t)&&!yg(t);){if(WE(t))return t;t=dc(t)}return null}function GE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function yg(e){return["html","body","#document"].includes(Is(e))}function ei(e){return $r(e).getComputedStyle(e)}function vg(e){return Rs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dc(e){if(Is(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kx(e)&&e.host||Hs(e);return Kx(t)?t.host:t}function $P(e){const t=dc(e);return yg(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ji(t)&&bf(t)?t:$P(t)}function $d(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=$P(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=$r(i);return s?t.concat(o,o.visualViewport||[],bf(i)?i:[],o.frameElement&&n?$d(o.frameElement):[]):t.concat(i,$d(i,[],n))}function FP(e){const t=ei(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ji(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=nm(n)!==s||nm(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function YE(e){return Rs(e)?e:e.contextElement}function Wl(e){const t=YE(e);if(!Ji(t))return Lo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=FP(t);let o=(s?nm(n.width):n.width)/r,a=(s?nm(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const qre=Lo(0);function BP(e){const t=$r(e);return!GE()||!t.visualViewport?qre:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vre(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$r(e)?!1:t}function za(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=YE(e);let o=Lo(1);t&&(r?Rs(r)&&(o=Wl(r)):o=Wl(e));const a=Vre(s,n,r)?BP(s):Lo(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s){const f=$r(s),h=r&&Rs(r)?$r(r):r;let p=f,m=p.frameElement;for(;m&&r&&h!==p;){const g=Wl(m),b=m.getBoundingClientRect(),y=ei(m),v=b.left+(m.clientLeft+parseFloat(y.paddingLeft))*g.x,w=b.top+(m.clientTop+parseFloat(y.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=v,c+=w,p=$r(m),m=p.frameElement}}return im({width:u,height:d,x:l,y:c})}const zre=[":popover-open",":modal"];function UP(e){return zre.some(t=>{try{return e.matches(t)}catch{return!1}})}function Kre(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=Hs(r),a=t?UP(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Lo(1);const u=Lo(0),d=Ji(r);if((d||!d&&!s)&&((Is(r)!=="body"||bf(o))&&(l=vg(r)),Ji(r))){const f=za(r);c=Wl(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function Wre(e){return Array.from(e.getClientRects())}function HP(e){return za(Hs(e)).left+vg(e).scrollLeft}function Gre(e){const t=Hs(e),n=vg(e),r=e.ownerDocument.body,i=La(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=La(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+HP(e);const a=-n.scrollTop;return ei(r).direction==="rtl"&&(o+=La(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}function Yre(e,t){const n=$r(e),r=Hs(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=GE();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function Xre(e,t){const n=za(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=Ji(e)?Wl(e):Lo(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function Wx(e,t,n){let r;if(t==="viewport")r=Yre(e,n);else if(t==="document")r=Gre(Hs(e));else if(Rs(t))r=Xre(t,n);else{const i=BP(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return im(r)}function jP(e,t){const n=dc(e);return n===t||!Rs(n)||yg(n)?!1:ei(n).position==="fixed"||jP(n,t)}function Qre(e,t){const n=t.get(e);if(n)return n;let r=$d(e,[],!1).filter(a=>Rs(a)&&Is(a)!=="body"),i=null;const s=ei(e).position==="fixed";let o=s?dc(e):e;for(;Rs(o)&&!yg(o);){const a=ei(o),l=WE(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&i&&["absolute","fixed"].includes(i.position)||bf(o)&&!l&&jP(e,o))?r=r.filter(c=>c!==o):i=a,o=dc(o)}return t.set(e,r),r}function Jre(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Qre(t,this._c):[].concat(n),r],o=s[0],a=s.reduce((l,c)=>{const u=Wx(t,c,i);return l.top=La(u.top,l.top),l.right=tm(u.right,l.right),l.bottom=tm(u.bottom,l.bottom),l.left=La(u.left,l.left),l},Wx(t,o,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Zre(e){const{width:t,height:n}=FP(e);return{width:t,height:n}}function eie(e,t,n){const r=Ji(t),i=Hs(t),s=n==="fixed",o=za(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Lo(0);if(r||!r&&!s)if((Is(t)!=="body"||bf(i))&&(a=vg(t)),r){const d=za(t,!0,s,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=HP(i));const c=o.left+a.scrollLeft-l.x,u=o.top+a.scrollTop-l.y;return{x:c,y:u,width:o.width,height:o.height}}function Gx(e,t){return!Ji(e)||ei(e).position==="fixed"?null:t?t(e):e.offsetParent}function qP(e,t){const n=$r(e);if(!Ji(e)||UP(e))return n;let r=Gx(e,t);for(;r&&Hre(r)&&ei(r).position==="static";)r=Gx(r,t);return r&&(Is(r)==="html"||Is(r)==="body"&&ei(r).position==="static"&&!WE(r))?n:r||jre(e)||n}const tie=async function(e){const t=this.getOffsetParent||qP,n=this.getDimensions;return{reference:eie(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function nie(e){return ei(e).direction==="rtl"}const rie={convertOffsetParentRelativeRectToViewportRelativeRect:Kre,getDocumentElement:Hs,getClippingRect:Jre,getOffsetParent:qP,getElementRects:tie,getClientRects:Wre,getDimensions:Zre,getScale:Wl,isElement:Rs,isRTL:nie};function iie(e,t){let n=null,r;const i=Hs(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;const h=Dh(u),p=Dh(i.clientWidth-(c+d)),m=Dh(i.clientHeight-(u+f)),g=Dh(c),b={rootMargin:-h+"px "+-p+"px "+-m+"px "+-g+"px",threshold:La(0,tm(1,l))||1};let y=!0;function v(w){const T=w[0].intersectionRatio;if(T!==l){if(!y)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(v,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(v,b)}n.observe(e)}return o(!0),s}function sie(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=YE(e),u=i||s?[...c?$d(c):[],...$d(t)]:[];u.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const d=c&&a?iie(c,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(b=>{let[y]=b;y&&y.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let p,m=l?za(e):null;l&&g();function g(){const b=za(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&n(),m=b,p=requestAnimationFrame(g)}return n(),()=>{var b;u.forEach(y=>{i&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d==null||d(),(b=h)==null||b.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const oie=Ure,aie=$re,lie=(e,t,n)=>{const r=new Map,i={platform:rie,...n},s={...i.platform,_c:r};return Mre(e,t,{...i,platform:s})};function cie(e){return e!=null&&typeof e=="object"&&"$el"in e}function Yx(e){if(cie(e)){const t=e.$el;return KE(t)&&Is(t)==="#comment"?null:t}return e}function VP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xx(e,t){const n=VP(e);return Math.round(t*n)/n}function uie(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,i=ae(()=>{var S;return(S=A(n.open))!=null?S:!0}),s=ae(()=>A(n.middleware)),o=ae(()=>{var S;return(S=A(n.placement))!=null?S:"bottom"}),a=ae(()=>{var S;return(S=A(n.strategy))!=null?S:"absolute"}),l=ae(()=>{var S;return(S=A(n.transform))!=null?S:!0}),c=ae(()=>Yx(e.value)),u=ae(()=>Yx(t.value)),d=ce(0),f=ce(0),h=ce(a.value),p=ce(o.value),m=gv({}),g=ce(!1),b=ae(()=>{const S={position:h.value,left:"0",top:"0"};if(!u.value)return S;const I=Xx(u.value,d.value),R=Xx(u.value,f.value);return l.value?{...S,transform:"translate("+I+"px, "+R+"px)",...VP(u.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:I+"px",top:R+"px"}});let y;function v(){c.value==null||u.value==null||lie(c.value,u.value,{middleware:s.value,placement:o.value,strategy:a.value}).then(S=>{d.value=S.x,f.value=S.y,h.value=S.strategy,p.value=S.placement,m.value=S.middlewareData,g.value=!0})}function w(){typeof y=="function"&&(y(),y=void 0)}function T(){if(w(),r===void 0){v();return}if(c.value!=null&&u.value!=null){y=r(c.value,u.value,v);return}}function _(){i.value||(g.value=!1)}return dt([s,o,a],v,{flush:"sync"}),dt([c,u],T,{flush:"sync"}),dt(i,_,{flush:"sync"}),wm()&&nC(w),{x:zr(d),y:zr(f),strategy:zr(h),placement:zr(p),middlewareData:zr(m),isPositioned:zr(g),floatingStyles:b,update:v}}const C1="scalar-component",die=Are({extend:{classGroups:{"font-size":["text-xxs"],[C1]:[C1]}}}),{cva:XE,cx:sl,compose:pEe}=Gne({hooks:{onComplete:e=>`${die(e,C1)}`}}),fie=_c('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-47faceda></path>',5),hie={key:0,class:"circular-loader"},pie=Se({__name:"ScalarLoading",props:{loadingState:{},size:{default:"24px"}},setup(e){return ZF(t=>({d6cae758:t.size})),(t,n)=>t.loadingState?(x(),j("div",{key:0,class:ut(A(sl)("loader-wrapper"))},[(x(),j("svg",{class:ut(["svg-loader",{"icon-is-valid":t.loadingState.isValid,"icon-is-invalid":t.loadingState.isInvalid}]),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[fie,t.loadingState.isLoading?(x(),j("g",hie,[ie("circle",{class:ut(["loader-path",{"loader-path-off":t.loadingState.isValid||t.loadingState.isInvalid}]),cx:"50",cy:"50",fill:"none",r:"20","stroke-width":"2"},null,2)])):pe("",!0)],2))],2)):pe("",!0)}}),mie=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},zP=mie(pie,[["__scopeId","data-v-47faceda"]]),KP={solid:["scalar-button-solid","bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"],outlined:["scalar-button-outlined","active:bg-btn-1 border border-solid border-border bg-transparent text-fore-1 hocus:bg-border"],ghost:["scalar-button-ghost","bg-transparent text-fore-3 transition-colors active:text-fore-1 hocus:text-fore-1"],danger:["scalar-button-danger","bg-error text-white active:brightness-90 hocus:brightness-90"]},gie=XE({base:"scalar-button row cursor-pointer items-center justify-center rounded font-medium",variants:{disabled:{true:"bg-background-2 text-color-3 cursor-not-allowed shadow-none"},fullWidth:{true:"w-full"},size:{sm:"px-2 py-1 text-xs",md:"h-10 px-6 text-sm"},variant:KP},compoundVariants:[{disabled:!0,variant:"ghost",class:"bg-transparent text-ghost"}]}),bie=["ariaDisabled","type"],yie={key:0,class:"mr-2 h-4 w-4"},vie={key:1,class:"ml-2"},N1=Se({inheritAttrs:!1,__name:"ScalarButton",props:{disabled:{type:Boolean},fullWidth:{type:Boolean,default:!1},loading:{},size:{default:"md"},variant:{default:"solid"},type:{default:"button"}},setup(e){const t=ae(()=>{const{class:n,...r}=Ec();return{class:n||"",rest:r}});return(n,r)=>(x(),j("button",Ho(t.value.rest,{ariaDisabled:n.disabled||void 0,class:A(sl)(A(gie)({fullWidth:n.fullWidth,disabled:n.disabled,size:n.size,variant:n.variant}),{"pl-9 pr-3":n.loading},`${t.value.class}`),type:n.type}),[n.$slots.icon?(x(),j("div",yie,[Ue(n.$slots,"icon")])):pe("",!0),Ue(n.$slots,"default"),n.loading?(x(),j("div",vie,[Q(A(zP),{loadingState:n.loading,size:"20px"},null,8,["loadingState"])])):pe("",!0)],16,bie))}});(function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=r.variable[1].inside,o=0;o<i.length;o++)s[i[o]]=e.languages.bash[i[o]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;(function(){if(typeof Prism>"u"||typeof document>"u")return;var e="line-numbers",t=/\n(?!$)/g,n=Prism.plugins.lineNumbers={getLine:function(o,a){if(!(o.tagName!=="PRE"||!o.classList.contains(e))){var l=o.querySelector(".line-numbers-rows");if(l){var c=parseInt(o.getAttribute("data-start"),10)||1,u=c+(l.children.length-1);a<c&&(a=c),a>u&&(a=u);var d=a-c;return l.children[d]}}},resize:function(o){r([o])},assumeViewportIndependence:!0};function r(o){if(o=o.filter(function(l){var c=i(l),u=c["white-space"];return u==="pre-wrap"||u==="pre-line"}),o.length!=0){var a=o.map(function(l){var c=l.querySelector("code"),u=l.querySelector(".line-numbers-rows");if(!(!c||!u)){var d=l.querySelector(".line-numbers-sizer"),f=c.textContent.split(t);d||(d=document.createElement("span"),d.className="line-numbers-sizer",c.appendChild(d)),d.innerHTML="0",d.style.display="block";var h=d.getBoundingClientRect().height;return d.innerHTML="",{element:l,lines:f,lineHeights:[],oneLinerHeight:h,sizer:d}}}).filter(Boolean);a.forEach(function(l){var c=l.sizer,u=l.lines,d=l.lineHeights,f=l.oneLinerHeight;d[u.length-1]=void 0,u.forEach(function(h,p){if(h&&h.length>1){var m=c.appendChild(document.createElement("span"));m.style.display="block",m.textContent=h}else d[p]=f})}),a.forEach(function(l){for(var c=l.sizer,u=l.lineHeights,d=0,f=0;f<u.length;f++)u[f]===void 0&&(u[f]=c.children[d++].getBoundingClientRect().height)}),a.forEach(function(l){var c=l.sizer,u=l.element.querySelector(".line-numbers-rows");c.style.display="none",c.innerHTML="",l.lineHeights.forEach(function(d,f){u.children[f].style.height=d+"px"})})}}function i(o){return o?window.getComputedStyle?getComputedStyle(o):o.currentStyle||null:null}var s=void 0;window.addEventListener("resize",function(){n.assumeViewportIndependence&&s===window.innerWidth||(s=window.innerWidth,r(Array.prototype.slice.call(document.querySelectorAll("pre."+e))))}),Prism.hooks.add("complete",function(o){if(o.code){var a=o.element,l=a.parentNode;if(!(!l||!/pre/i.test(l.nodeName))&&!a.querySelector(".line-numbers-rows")&&Prism.util.isActive(a,e)){a.classList.remove(e),l.classList.add(e);var c=o.code.match(t),u=c?c.length+1:1,d,f=new Array(u+1).join("<span></span>");d=document.createElement("span"),d.setAttribute("aria-hidden","true"),d.className="line-numbers-rows",d.innerHTML=f,l.hasAttribute("data-start")&&(l.style.counterReset="linenumber "+(parseInt(l.getAttribute("data-start"),10)-1)),o.element.appendChild(d),r([l]),Prism.hooks.run("line-numbers",o)}}}),Prism.hooks.add("line-numbers",function(o){o.plugins=o.plugins||{},o.plugins.lineNumbers=!0})})();function Eie(e){const t=new Set;return JSON.stringify(e,(n,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}function Ih(e){if(typeof e=="string")return e;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{return Eie(e)}return e}const _ie=["innerHTML"],fs=Se({__name:"ScalarCodeBlock",props:{content:{},lang:{default:"js"},lineNumbers:{type:Boolean,default:!1},hideCredentials:{}},setup(e){const t=e,n=wE(Ih(t.content)),r=`components-scalar-code-block${n}`,{plugins:i,highlightElement:s}=hu;t.hideCredentials&&hu.hooks.add("wrap",function(d){if(!t.hideCredentials)return;let f=!1;typeof t.hideCredentials=="string"?d.content.includes(t.hideCredentials)&&(f=!0):Array.isArray(t.hideCredentials)&&(f=t.hideCredentials.some(h=>d.content.includes(h))),f&&(d.content=d.content.replace(/<span class="credentials">.*?<\/span>/g,h=>h.replace(/<span class="credentials">|<\/span>/g,"")),d.content=d.content.replace(new RegExp(typeof t.hideCredentials=="string"?t.hideCredentials:t.hideCredentials.join("|"),"g"),h=>`<span class="credentials">${h}</span>`))});const o=ce(null),a=ce(Dc[r]??""),l=ae(()=>t.lang==="node"?"js":t.lang),c=t.lang;dt([()=>t.lang,()=>t.content,o],()=>{o.value&&t.content&&(!a.value||t.lang!==c)&&(a.value="",Qn(()=>s(o.value)))},{immediate:!0});const u=/\n(?!$)/g;return Uo(async()=>{let d="";t.lineNumbers&&hu.hooks.add("after-tokenize",h=>{const p=h.code.match(u),m=p?p.length+1:1;d=`<span aria-hidden="true" class="line-numbers-rows">${new Array(m+1).join("<span></span>")}</span>`});const f=hu.highlight(Ih(t.content),hu.languages[l.value],l.value);if(a.value=f+d,n!==0){const h=vc();h.payload.data[r]=f+d}}),Mt(async()=>{await Promise.resolve().then(()=>require("./prism-autoloader-Dlh8Vzlw-C7VXQ4L8-D7adLtAE.cjs")),i.autoloader.languages_path="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/"}),(d,f)=>(x(),j("pre",{class:ut([`scalar-component scalar-codeblock-pre language-${l.value}`,{"line-numbers":d.lineNumbers}])},[a.value?(x(),j("code",{key:0,class:ut(`scalar-codeblock-code language-${l.value}`),innerHTML:A(Ih)(a.value)},null,10,_ie)):(x(),j("code",{key:1,ref_key:"el",ref:o,class:ut(`scalar-codeblock-code language-${l.value}`)},Be(A(Ih)(d.content)),3))],2))}}),Qx=Object.assign({"./Add.svg":()=>Promise.resolve().then(()=>require("./Add-ngyZgYXx-DoqFEwg6-yif5dL_B.cjs")),"./ArrowLeft.svg":()=>Promise.resolve().then(()=>require("./ArrowLeft-aY17W2aS-Cn6xpEuC-cty4M3TS.cjs")),"./ArrowRight.svg":()=>Promise.resolve().then(()=>require("./ArrowRight-DEMtdoE7-DTUgvJ5B-CGJOQw_B.cjs")),"./Background.svg":()=>Promise.resolve().then(()=>require("./Background-DcRhSHgf-D9bLWDd3-BWBX8Ffk.cjs")),"./Brackets.svg":()=>Promise.resolve().then(()=>require("./Brackets-4I8OKomf-DWpQfvXD-C1hLnKjc.cjs")),"./Branch.svg":()=>Promise.resolve().then(()=>require("./Branch-CXwj8YuG-CvPS_xP0-K-7rrKxt.cjs")),"./CallToAction.svg":()=>Promise.resolve().then(()=>require("./CallToAction-EyQKkvbg-P3zHezrK-Qj06sroT.cjs")),"./Checkmark.svg":()=>Promise.resolve().then(()=>require("./Checkmark-De7nq6cG-I65LWhZ2-C-c1bVB_.cjs")),"./ChevronDown.svg":()=>Promise.resolve().then(()=>require("./ChevronDown-Co7EAKAv-Dw2u19C4-Dtc5xG8-.cjs")),"./ChevronLeft.svg":()=>Promise.resolve().then(()=>require("./ChevronLeft-DYt0idAu-4ItgPaSH-BE3bdIit.cjs")),"./ChevronRight.svg":()=>Promise.resolve().then(()=>require("./ChevronRight-ylxToVWl-DMyZ2Rmi-CrUUceyF.cjs")),"./ChevronUp.svg":()=>Promise.resolve().then(()=>require("./ChevronUp-xAnukIfj-DYWzMh-o-CTJMOu1O.cjs")),"./Clipboard.svg":()=>Promise.resolve().then(()=>require("./Clipboard-CU_KxGEv-DuOPrhqK-DBIus9Pu.cjs")),"./Close.svg":()=>Promise.resolve().then(()=>require("./Close-CW3z42qZ-C-nzSJmV-V5HNjhZN.cjs")),"./CodeFolder.svg":()=>Promise.resolve().then(()=>require("./CodeFolder-Cv_igzJE-POyxhw77-BY7Uhn6H.cjs")),"./Cookie.svg":()=>Promise.resolve().then(()=>require("./Cookie-CEHvXpqB-Bu1-nQ4L-DNIbxFnY.cjs")),"./DarkMode.svg":()=>Promise.resolve().then(()=>require("./DarkMode-CBsV8Q_I-C-P5vpQi-XkJXpl4p.cjs")),"./Delete.svg":()=>Promise.resolve().then(()=>require("./Delete-BCZmxrDD-RGj_5vHb-Coxkn7ga.cjs")),"./Discord.svg":()=>Promise.resolve().then(()=>require("./Discord-BHYOFBB2-BKiLx0Gp-C5HEpgPq.cjs")),"./DocsPage.svg":()=>Promise.resolve().then(()=>require("./DocsPage-rh2xwxKN-DGM8iLwe-O8NQhj9x.cjs")),"./Duplicate.svg":()=>Promise.resolve().then(()=>require("./Duplicate-BPlzNpcf-hfR5nT2J-DurYWkgR.cjs")),"./Edit.svg":()=>Promise.resolve().then(()=>require("./Edit-Br04RNYb-DB3yOiz_-9tybt6P_.cjs")),"./Ellipses.svg":()=>Promise.resolve().then(()=>require("./Ellipses-Bo_X36Hx-D4ayuQAy-DAADvEZU.cjs")),"./Error.svg":()=>Promise.resolve().then(()=>require("./Error-B_RGtWJI-D-cqIU7Z-BpncbKLh.cjs")),"./ExternalLink.svg":()=>Promise.resolve().then(()=>require("./ExternalLink-DK8L-EH7-CnaH9txm-BeHH9bJv.cjs")),"./FilterList.svg":()=>Promise.resolve().then(()=>require("./FilterList-CsAcE9em-BEVsn3KR-WV00MdzA.cjs")),"./Folder.svg":()=>Promise.resolve().then(()=>require("./Folder-Cdcj4evh-BjFbVB1N-CC-xxwjO.cjs")),"./GitHub.svg":()=>Promise.resolve().then(()=>require("./GitHub-NdE6Zs9k-CxmMd7Ky-B94RzU4w.cjs")),"./Hide.svg":()=>Promise.resolve().then(()=>require("./Hide-DBLY4PPo-BcbT7C9e-D5B_JpF2.cjs")),"./History.svg":()=>Promise.resolve().then(()=>require("./History-D9nmhNIn-Bg9VGGKO-DuEGmM6z.cjs")),"./JsonObject.svg":()=>Promise.resolve().then(()=>require("./JsonObject-hGdHUQ4M-JVzShx7P-CC26Mzu_.cjs")),"./Key.svg":()=>Promise.resolve().then(()=>require("./Key-CWXJqX28-CVsMvoNb-4g7M6y8c.cjs")),"./Leave.svg":()=>Promise.resolve().then(()=>require("./Leave-K1J3uwoG-6WpXSkaE-DZVjYmY8.cjs")),"./LightDarkModeToggle.svg":()=>Promise.resolve().then(()=>require("./LightDarkModeToggle-BkvMimDa-CCZGR9vi-CNoX-ccr.cjs")),"./LightMode.svg":()=>Promise.resolve().then(()=>require("./LightMode-Btz6vyT_-D8lhPTNZ-BySjTy8N.cjs")),"./Link.svg":()=>Promise.resolve().then(()=>require("./Link-Bzuc__Nc-Bopu3OCd-XLbuueJu.cjs")),"./Lock.svg":()=>Promise.resolve().then(()=>require("./Lock-xhiH1mKz-j1VwEotb-BI3ANU5M.cjs")),"./Logo.svg":()=>Promise.resolve().then(()=>require("./Logo-mtzeKD8M-_nfcd_3S-DhijGuGI.cjs")),"./LogoAPI.svg":()=>Promise.resolve().then(()=>require("./LogoAPI-CaU5E6FK-BIDyFPeR-C1K0awGU.cjs")),"./LogoClient.svg":()=>Promise.resolve().then(()=>require("./LogoClient-DdC-t_7P-BJVLusot-BbzhWdud.cjs")),"./LogoMarket.svg":()=>Promise.resolve().then(()=>require("./LogoMarket-DwlApcab-BpTQzqp5-wUmeTEIi.cjs")),"./LogoSwagger.svg":()=>Promise.resolve().then(()=>require("./LogoSwagger-CH60H5qW--whYwExv-CbLQUtW8.cjs")),"./Magic.svg":()=>Promise.resolve().then(()=>require("./Magic-Dsi9_bEc-BSsgSxL9-BDMA7rp5.cjs")),"./Menu.svg":()=>Promise.resolve().then(()=>require("./Menu-CFK5cOsm-Bt89Z42K-Br-xyJqG.cjs")),"./Page.svg":()=>Promise.resolve().then(()=>require("./Page-B7rVuhpl-BdUgg7Vj-vk11C0Wh.cjs")),"./PaperAirplane.svg":()=>Promise.resolve().then(()=>require("./PaperAirplane-BC-4mGEB-CC_xr_GF-CumMfUxu.cjs")),"./Payment.svg":()=>Promise.resolve().then(()=>require("./Payment-hzcXP1Xb-DwRM2zOI-B4Y_7fQu.cjs")),"./Play.svg":()=>Promise.resolve().then(()=>require("./Play-BrVagRQA-ibf1r6jV-PNtzEg8S.cjs")),"./Refresh.svg":()=>Promise.resolve().then(()=>require("./Refresh-Be6vHEEi-jbqubK_U-COEDwx1x.cjs")),"./Response.svg":()=>Promise.resolve().then(()=>require("./Response-Dq9pM-ZU-gbj_nXZc-T9NTxFl1.cjs")),"./Search.svg":()=>Promise.resolve().then(()=>require("./Search-DqtlswRG-C2Pti_ld-BVwzn7pX.cjs")),"./Show.svg":()=>Promise.resolve().then(()=>require("./Show-CMsTZAgT-CiyXRP8J-B0Pyvkys.cjs")),"./SideBarClosed.svg":()=>Promise.resolve().then(()=>require("./SideBarClosed-CYUNS2XM-CyV-4FlW-hTSixUDT.cjs")),"./SideBarOpen.svg":()=>Promise.resolve().then(()=>require("./SideBarOpen-BOxW49_U-_LagsnZP-IfLHyD8q.cjs")),"./Sort.svg":()=>Promise.resolve().then(()=>require("./Sort-oTjBhJFQ-CxatimqM-Bhp0gb1Y.cjs")),"./Terminal.svg":()=>Promise.resolve().then(()=>require("./Terminal-CKp--su5-DBOGXF1p-Dkh7nFka.cjs")),"./ThumbsDown.svg":()=>Promise.resolve().then(()=>require("./ThumbsDown-BMgnsASL-B1FsmbXx-CPqj4N9q.cjs")),"./ThumbsUp.svg":()=>Promise.resolve().then(()=>require("./ThumbsUp-C1j6zY2j-Ca8-bvgl-D8hjrET6.cjs")),"./Trash.svg":()=>Promise.resolve().then(()=>require("./Trash-BpA3zWPD-RGj_5vHb-DVl65oeY.cjs")),"./Unlock.svg":()=>Promise.resolve().then(()=>require("./Unlock-CY8UqJoE-xu6vPL1E-DOxPNcR7.cjs")),"./Upload.svg":()=>Promise.resolve().then(()=>require("./Upload-REIdL7RI-DTkPybxz-Bldrr_Gx.cjs")),"./User.svg":()=>Promise.resolve().then(()=>require("./User-Df5svMQ3-BviG15gd-Czzl_5lW.cjs")),"./programming-framework-angular.svg":()=>Promise.resolve().then(()=>require("./programming-framework-angular-DD4Vjgbk-CUF3ZYYB-BNXaugbT.cjs")),"./programming-framework-astro.svg":()=>Promise.resolve().then(()=>require("./programming-framework-astro-CLfrRt19-CH6OCtd8-ziaZ1TEE.cjs")),"./programming-framework-laravel.svg":()=>Promise.resolve().then(()=>require("./programming-framework-laravel-kAy2wVLy-kXRM5aCd-DoOJiEVK.cjs")),"./programming-framework-nextdotjs.svg":()=>Promise.resolve().then(()=>require("./programming-framework-nextdotjs-BKdd_DY_-DF9m888v-Boj3Zyed.cjs")),"./programming-framework-react.svg":()=>Promise.resolve().then(()=>require("./programming-framework-react-PDgmtZuN-DZjob66N-5DG9Eb2l.cjs")),"./programming-framework-vuedotjs.svg":()=>Promise.resolve().then(()=>require("./programming-framework-vuedotjs-Cv46W2aB-5jp2dhVz-BtrWfBvB.cjs")),"./programming-language-c.svg":()=>Promise.resolve().then(()=>require("./programming-language-c-hPGu2Zvg-BesPZa4K-e8YeXaSa.cjs")),"./programming-language-clojure.svg":()=>Promise.resolve().then(()=>require("./programming-language-clojure-Cvmzky8x-BfidiK-3-wTw51L4v.cjs")),"./programming-language-csharp.svg":()=>Promise.resolve().then(()=>require("./programming-language-csharp-lqX1oWgb-D-Mz5PM1-CD-m0mRn.cjs")),"./programming-language-css3.svg":()=>Promise.resolve().then(()=>require("./programming-language-css3-Dpp4Cr6b-Dpx1zlAe-zXx5XiZV.cjs")),"./programming-language-go.svg":()=>Promise.resolve().then(()=>require("./programming-language-go-DoJxWwT6-Bayz8oGO-CW2sEmcw.cjs")),"./programming-language-html5.svg":()=>Promise.resolve().then(()=>require("./programming-language-html5-DlqJK4EL-DfQp7LQz-BfQL3c7J.cjs")),"./programming-language-http.svg":()=>Promise.resolve().then(()=>require("./programming-language-http-wMYwFS1I-nvzm47LE-DwO50e9M.cjs")),"./programming-language-java.svg":()=>Promise.resolve().then(()=>require("./programming-language-java-BCxG2T_w-01jrBctS-CTvxKAil.cjs")),"./programming-language-javascript.svg":()=>Promise.resolve().then(()=>require("./programming-language-javascript-VxLvi1QG-qbgoUfZ8-CvU7vnTT.cjs")),"./programming-language-json.svg":()=>Promise.resolve().then(()=>require("./programming-language-json-vEX_g7Zi-D-_9dDj_-BcTX0Dqh.cjs")),"./programming-language-kotlin.svg":()=>Promise.resolve().then(()=>require("./programming-language-kotlin-DKV8vP9h-C-cTXwXu-D1Kk39OM.cjs")),"./programming-language-node.svg":()=>Promise.resolve().then(()=>require("./programming-language-node-Xsgx38lm-Be410R9Y-C50A5FWJ.cjs")),"./programming-language-objc.svg":()=>Promise.resolve().then(()=>require("./programming-language-objc-BQXSOBsX-UyJQMZSh-DL5RuNvU.cjs")),"./programming-language-ocaml.svg":()=>Promise.resolve().then(()=>require("./programming-language-ocaml-BEz7gGv7-L9a3ID8U-BM25I3xh.cjs")),"./programming-language-php.svg":()=>Promise.resolve().then(()=>require("./programming-language-php-GY38f8r4-jRMN5AZX-s8BLJOdv.cjs")),"./programming-language-powershell.svg":()=>Promise.resolve().then(()=>require("./programming-language-powershell-C9DkSp36-C7fZCJBW-CrAbM716.cjs")),"./programming-language-python.svg":()=>Promise.resolve().then(()=>require("./programming-language-python-Ct-_kNjo-DsKRdoNg-DYBq6OXo.cjs")),"./programming-language-r.svg":()=>Promise.resolve().then(()=>require("./programming-language-r-BGoKwua9-BguWvgpu-BkIU4xfC.cjs")),"./programming-language-ruby.svg":()=>Promise.resolve().then(()=>require("./programming-language-ruby-DhdM4d7g-BuT1i5is-PkgVaXxf.cjs")),"./programming-language-scala.svg":()=>Promise.resolve().then(()=>require("./programming-language-scala-BVg0dToJ-p_n-G2sI-C5nepx-k.cjs")),"./programming-language-shell.svg":()=>Promise.resolve().then(()=>require("./programming-language-shell-BsTa1xI7-Mbhl6UDK-CpqEGFni.cjs")),"./programming-language-swift.svg":()=>Promise.resolve().then(()=>require("./programming-language-swift-Dn72xPjg-D-JnfNts-318MhP75.cjs")),"./programming-language-typescript.svg":()=>Promise.resolve().then(()=>require("./programming-language-typescript-CdF-HuRi-ocSQSwHb-CsTleVd4.cjs")),"./programming-script-code.svg":()=>Promise.resolve().then(()=>require("./programming-script-code-DQN1veb2-CcjBWaNF-DGzWtiKv.cjs")),"./programming-tool-git.svg":()=>Promise.resolve().then(()=>require("./programming-tool-git-DDnQ1zGD-CGHot6Y8-BhD5z2rg.cjs")),"./programming-tool-tailwindcss.svg":()=>Promise.resolve().then(()=>require("./programming-tool-tailwindcss-xjXi0E6g-r5YhtCAf-Nv4bWJ2p.cjs"))}),Jx=e=>{const t=`./${e}.svg`;return Qx[t]?MC(Qx[t]):(console.warn(`Could not find icon: ${e}`),null)},wie=["src"],on=Se({__name:"ScalarIcon",props:{icon:{},size:{}},setup(e){const t=e,n=XE({variants:{size:{xs:"size-3 stroke-[1.4]",sm:"size-3.5 stroke-[1.2]",md:"size-4 stroke-[1.1]",lg:"size-5",xl:"size-6 stroke-[0.96]","2xl":"size-8 stroke-[0.92]","3xl":"size-10 stroke-[0.9]",full:"size-full"}},defaultVariants:{size:"full"}}),r=Jx(t.icon);return(i,s)=>A(r)?(x(),de(Ei(A(Jx)(i.icon)),{key:0,class:ut(A(sl)("scalar-icon",A(n)({size:i.size})))},null,8,["class"])):(x(),j("img",{key:1,src:i.icon},null,8,wie))}}),Tie=["ariaDisabled"],Sie={class:"sr-only"},yf=Se({__name:"ScalarIconButton",props:{label:{},icon:{},disabled:{type:Boolean},variant:{default:"ghost"},size:{default:"md"}},setup(e){const t=XE({base:"scalar-icon-button grid aspect-square cursor-pointer rounded",variants:{size:{xxs:"size-3.5 p-0.5",xs:"size-5 p-1",sm:"size-6 p-1",md:"size-10 p-3",full:"h-full w-full"},disabled:{true:"cursor-not-allowed shadow-none"},variant:KP}}),n=ae(()=>{const{class:r,...i}=Ec();return{class:r||"",rest:i}});return(r,i)=>(x(),j("button",Ho(n.value.rest,{ariaDisabled:r.disabled||void 0,class:A(sl)(A(t)({size:r.size,variant:r.variant,disabled:r.disabled}),n.value.class),type:"button"}),[Q(A(on),{icon:r.icon},null,8,["icon"]),ie("span",Sie,Be(r.label),1)],16,Tie))}}),kie={class:"sr-only"},xie=["value"],Aie=Se({inheritAttrs:!1,__name:"ScalarSearchInput",props:{loading:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;function r(s){n("update:modelValue",s.target.value)}const i=ae(()=>{const{class:s,...o}=Ec();return{className:s||"",rest:o}});return(s,o)=>(x(),j("label",Ho(i.value.rest,{class:A(sl)("flex rounded border bg-back-1 text-sm font-medium focus-within:border-fore-1",i.value.className)}),[ie("span",kie,[Ue(s.$slots,"label",{},()=>[Ie("Enter search")])]),ie("input",{autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"flex-1 rounded bg-transparent p-3 outline-none",placeholder:"Search...",spellcheck:"false",type:"text",value:s.modelValue,onInput:r},null,40,xie),s.loading&&s.loading.isLoading?(x(),de(A(zP),{key:0,class:"mr-3 self-center",loadingState:s.loading,size:"20px"},null,8,["loadingState"])):s.modelValue?(x(),de(A(yf),{key:1,class:"self-center",icon:"Close",label:"Clear Search",size:"md",onClick:o[0]||(o[0]=a=>n("update:modelValue",""))})):pe("",!0)],16))}}),Cie=ie("div",{class:"flex flex-col items-center gap-2 px-3 py-4"},[ie("div",{class:"rotate-90 text-lg font-bold"},":("),ie("div",{class:"text-sm font-medium text-fore-2"},"No results found")],-1),Nie=Se({inheritAttrs:!1,__name:"ScalarSearchResultList",props:{noResults:{type:Boolean}},setup(e){const t=ae(()=>{const{class:n,...r}=Ec();return{className:n||"",rest:r}});return(n,r)=>(x(),j("ul",Ho(t.value.rest,{class:A(sl)("flex flex-col",t.value.className)}),[n.noResults?Ue(n.$slots,"noResults",{key:0},()=>[Cie]):pe("",!0),Ue(n.$slots,"default")],16))}}),Oie={class:"contents"},Die={class:"text-fore-3 group-hover:text-fore-1"},Iie={class:"flex min-w-0 flex-1 flex-col gap-0.75"},Rie={class:"flex items-center gap-1"},Pie={class:"flex-1 truncate text-sm font-medium"},Lie={key:0,class:"text-xs text-fore-2"},Mie={class:"truncate text-xs text-fore-2"},$ie=Se({inheritAttrs:!1,__name:"ScalarSearchResultItem",props:{icon:{},active:{type:Boolean}},setup(e){const t=ae(()=>{const{class:n,...r}=Ec();return{className:n||"",rest:r}});return(n,r)=>(x(),j("li",Oie,[ie("a",Ho(t.value.rest,{class:A(sl)("group flex cursor-pointer gap-3 rounded px-3 py-1.5 no-underline hover:bg-back-2",{"bg-back-2":n.active},t.value.className)}),[ie("div",Die,[Ue(n.$slots,"icon",{},()=>[n.icon?(x(),de(A(on),{key:0,icon:n.icon,size:"sm"},null,8,["icon"])):pe("",!0)])]),ie("div",Iie,[ie("div",Rie,[ie("div",Pie,[Ue(n.$slots,"default")]),n.$slots.addon?(x(),j("div",Lie,[Ue(n.$slots,"addon")])):pe("",!0)]),ie("div",Mie,[Ue(n.$slots,"description")])])],16)]))}}),Fie={class:"card-form-input"},Bie=["for"],Uie=["id","type"],Hie=Se({inheritAttrs:!1,__name:"CardFormTextInput",props:{id:{},type:{}},setup(e){const t=e,n=ce(!0),r=ae(()=>t.type==="password"?n.value?"password":"text":t.type??"text");return(i,s)=>(x(),j("div",Fie,[ie("label",{for:i.id},[Ue(i.$slots,"default",{},void 0,!0)],8,Bie),ie("input",Ho(i.$attrs,{id:i.id,autocomplete:"off","data-1p-ignore":"",spellcheck:"false",type:r.value}),null,16,Uie),i.type==="password"?(x(),de(A(yf),{key:0,class:"password-mask",icon:n.value?"Show":"Hide",label:n.value?"Show Password":"Hide Password",onClick:s[0]||(s[0]=o=>n.value=!n.value)},null,8,["icon","label"])):pe("",!0)]))}}),dl=je(Hie,[["__scopeId","data-v-ba56ce97"]]),jie=e=>(er("data-v-ad168955"),e=e(),tr(),e),qie={class:"scopes-label"},Vie=jie(()=>ie("em",null,"/",-1)),zie=["checked"],Kie={class:"dropdown-item-title"},Wie={class:"dropdown-item-description"},Gie=Se({__name:"SecuritySchemeScopes",props:{scopes:{},selected:{}},emits:["update:selected"],setup(e,{emit:t}){const n=e,r=t,i=ce(),s=ce(),{floatingStyles:o}=uie(i,s,{placement:"bottom-end",whileElementsMounted:sie,middleware:[Bre(5),aie(),oie()]}),a=ae({get:()=>n.selected,set:l=>r("update:selected",l)});return(l,c)=>(x(),de(A(R6),{modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=u=>a.value=u),multiple:""},{default:Y(({open:u})=>[ie("div",{ref_key:"trigger",ref:i,class:ut(["wrapper",{"wrapper-open":u}])},[Q(A(P6),{as:xP},{default:Y(()=>[ie("div",qie,[Ie(" Scopes "+Be(a.value.length),1),Vie,Ie(Be(Object.entries(l.scopes).length)+" ",1),Q(A(on),{icon:u?"ChevronUp":"ChevronDown",size:"sm"},null,8,["icon"])])]),_:2},1024)],2),(x(),de(QC,{to:"body"},[Q(A(EI),null,{default:Y(({styles:d})=>[ie("div",{ref_key:"dropdown",ref:s,class:ut(["floating",d]),style:xr(A(o))},[Q(A(L6),{as:"dl",class:"dropdown"},{default:Y(()=>[(x(!0),j(Ne,null,pt(Object.entries(l.scopes),([f,h])=>(x(),de(A(M6),{key:f,as:"div",class:"dropdown-item",value:f},{default:Y(({selected:p})=>[ie("input",{checked:p,class:"dropdown-item-check",tabindex:"-1",type:"checkbox"},null,8,zie),ie("dt",Kie,Be(f),1),ie("dd",Wie,Be(h),1)]),_:2},1032,["value"]))),128))]),_:1})],6)]),_:1})]))]),_:1},8,["modelValue"]))}}),Yie=je(Gie,[["__scopeId","data-v-ad168955"]]),Xie=Se({__name:"SecurityScheme",props:{value:{}},setup(e){const{authentication:t,setAuthentication:n}=Ic(),r=d=>{n({apiKey:{...t.apiKey,token:d.target.value}})},i=d=>{n({http:{...t.http,basic:{...t.http.basic,username:d.target.value}}})},s=d=>{n({http:{...t.http,basic:{...t.http.basic,password:d.target.value}}})},o=d=>{n({http:{...t.http,bearer:{...t.http.bearer,token:d.target.value}}})},a=d=>{n({oAuth2:{...t.oAuth2,clientId:d.target.value}})},l=d=>{const f=t.oAuth2.scopes.join(" "),h=(Math.random()+1).toString(36).substring(7),p=new URL(d.authorizationUrl);return n({oAuth2:{...t.oAuth2,state:h}}),p.searchParams.set("response_type","token"),p.searchParams.set("client_id",t.oAuth2.clientId),p.searchParams.set("redirect_uri",window.location.href),p.searchParams.set("scope",f),p.searchParams.set("state",h),p.toString()},c=ae({get:()=>t.oAuth2.scopes,set:d=>n({oAuth2:{...t.oAuth2,scopes:d}})}),u=d=>{const f=window.open(d,"openAuth2Window","left=100,top=100,width=800,height=600");if(f){const h=setInterval(function(){var p;try{const m=new URLSearchParams(f.location.href).get("access_token");if(f.closed||m){clearInterval(h);const g=(p=f.location.href.match(/state=([^&]*)/))==null?void 0:p[1];m&&t.oAuth2.state===g&&n({oAuth2:{...t.oAuth2,accessToken:m}}),f.close()}}catch{}},200)}};return(d,f)=>{var h;return d.value&&(h=d.value)!=null&&h.type?(x(),de(qne,{key:0},{default:Y(()=>[d.value.type==="apiKey"?(x(),de(dl,{key:0,id:`security-scheme-${d.value.name}`,placeholder:"Token",type:"password",value:A(t).apiKey.token,onInput:r},{default:Y(()=>[Ie(Be(d.value.in.charAt(0).toUpperCase()+d.value.in.slice(1))+" API ",1)]),_:1},8,["id","value"])):d.value.type==="http"||d.value.type==="basic"?(x(),j(Ne,{key:1},[d.value.type==="basic"||d.value.scheme==="basic"?(x(),de(Fx,{key:0},{default:Y(()=>[Q(dl,{id:"http.basic.username",placeholder:"Username",value:A(t).http.basic.username,onInput:i},{default:Y(()=>[Ie(" Username ")]),_:1},8,["value"]),Q(dl,{id:"http.basic.password",placeholder:"Password",type:"password",value:A(t).http.basic.password,onInput:s},{default:Y(()=>[Ie(" Password ")]),_:1},8,["value"])]),_:1})):d.value.type==="http"&&d.value.scheme==="bearer"?(x(),de(dl,{key:1,id:"http.bearer.token",placeholder:"Token",type:"password",value:A(t).http.bearer.token,onInput:o},{default:Y(()=>[Ie(" Bearer Token ")]),_:1},8,["value"])):pe("",!0)],64)):d.value.type.toLowerCase()==="oauth2"&&d.value.flows&&d.value.flows.implicit?(x(),de(Fx,{key:2},{default:Y(()=>[A(t).oAuth2.accessToken?(x(),j(Ne,{key:0},[Q(dl,{id:"oAuth2.accessToken",placeholder:"xxxxx",type:"password",value:A(t).oAuth2.accessToken},{default:Y(()=>[Ie(" Access Token ")]),_:1},8,["value"]),Q(xP,{onClick:f[0]||(f[0]=()=>A(n)({oAuth2:{...A(t).oAuth2,accessToken:"",state:""}}))},{default:Y(()=>[Ie(" Reset ")]),_:1})],64)):(x(),j(Ne,{key:1},[Q(dl,{id:"oAuth2.clientId",placeholder:"12345",type:"text",value:A(t).oAuth2.clientId,onInput:a},{default:Y(()=>[Ie(" Client ID ")]),_:1},8,["value"]),d.value!==void 0?(x(),de(Yie,{key:0,selected:c.value,"onUpdate:selected":f[1]||(f[1]=p=>c.value=p),scopes:d.value.flows.implicit.scopes},null,8,["selected","scopes"])):pe("",!0),ie("button",{class:"cardform-auth-button",onClick:f[2]||(f[2]=()=>{var p;return u(l((p=d.value)==null?void 0:p.flows.implicit))})}," Authorize ")],64))]),_:1})):pe("",!0)]),_:1})):pe("",!0)}}}),WP=je(Xie,[["__scopeId","data-v-146c2c6e"]]),Qie=e=>(er("data-v-a6fd9dc1"),e=e(),tr(),e),Jie={key:0,class:"security-scheme-label"},Zie={key:1,class:"security-scheme-selector"},ese={class:"security-scheme-label"},tse=["value"],nse=Qie(()=>ie("option",{value:""},"None",-1)),rse=["value"],ise=Se({__name:"SecuritySchemeSelector",props:{value:{}},emits:["input"],setup(e,{emit:t}){const n=e,r=t,{authentication:i,setAuthentication:s}=Ic(),o=g=>{a(g.target.value)};Mt(()=>{i.preferredSecurityScheme||a(Object.keys(n.value??{})[0]??null)});const a=g=>{s({preferredSecurityScheme:g}),r("input",g)};Uo(()=>a(Object.keys(n.value??{})[0]??null));const l=g=>!(g!=null&&g.type),c=g=>g.type.toLowerCase()==="apikey",u=g=>g.type==="http"&&g.scheme.toLowerCase()==="basic"||g.type.toLowerCase()==="basic",d=g=>g.type==="http"&&g.scheme.toLowerCase()==="bearer",f=g=>g.type.toLowerCase()==="oauth2",h=(g,b)=>`${p(g)} (${b})`,p=g=>l(g)?"No Authentication":c(g)?"API Key":u(g)?"Basic Authentication":d(g)?"Bearer Authentication":f(g)?"OAuth 2.0":`${g.type} (not yet supported)`,m=ae(()=>Object.keys(n.value??{}));return(g,b)=>{var y,v;return m.value.length===1?(x(),j("div",Jie,Be(h((y=g.value)==null?void 0:y[m.value[0]],m.value[0])),1)):m.value.length>1?(x(),j("div",Zie,[ie("span",ese,Be(A(i).preferredSecurityScheme?h((v=g.value)==null?void 0:v[A(i).preferredSecurityScheme],A(i).preferredSecurityScheme):"None"),1),Q(A(on),{icon:"ChevronDown"}),ie("select",{value:A(i).preferredSecurityScheme,onClick:b[0]||(b[0]=ef(()=>{},["prevent"])),onInput:o},[nse,(x(!0),j(Ne,null,pt(m.value,w=>{var T;return x(),j("option",{key:w,value:w??null},Be(h((T=g.value)==null?void 0:T[w],w)),9,rse)}),128))],40,tse)])):pe("",!0)}}}),GP=je(ise,[["__scopeId","data-v-a6fd9dc1"]]);function Gl(){return{info:{title:"",description:"",termsOfService:"",version:"",license:{name:"",url:""},contact:{email:""}},externalDocs:{description:"",url:""},servers:[],tags:[]}}function YP({serverState:e,authenticationState:t,operation:n,globalSecurity:r}){var i,s;const o=SI({url:O1(e)},Uy(n,{requiredOnly:!1}),t?qE(t,((i=n.information)==null?void 0:i.security)??r??[]):{}),a=Uy(n,{requiredOnly:!1}),l=Hl(n,"path",!1);return{id:n.operationId,name:n.name,type:o.method,path:a.path??"",variables:l,cookies:Zx(o.cookies),query:o.queryString.map(c=>({...c,enabled:c.required??!0})),headers:Zx(o.headers),url:O1(e)??"",body:(s=o.postData)==null?void 0:s.text}}function Zx(e){return(e??[]).map(t=>({...t,enabled:!0}))}const sse=z2().use(C2).use(UU).use(R5),sm=async e=>{const t=new f2,{headings:n}=(await sse.process(e)).data;return ose(n,t)},ose=(e,t)=>e.map(n=>({...n,slug:t.slug(n.value)})),QE=e=>{const t=Math.min(...e.map(n=>n.depth));return t>=1&&t<=6?t:1};function Ki(e){var t,n;return e?Object.keys(((t=e==null?void 0:e.components)==null?void 0:t.schemas)??{}).length?(n=e==null?void 0:e.components)==null?void 0:n.schemas:Object.keys((e==null?void 0:e.definitions)??{}).length?e==null?void 0:e.definitions:{}:{}}function XP(e,t){const n=/{{\s*([\w.-]+)\s*}}/g,r=/{\s*([\w.-]+)\s*}/g,i=(s,o)=>{if(typeof t=="function")return t(o);{const a=t==null?void 0:t.find(l=>l.name===o);return((a==null?void 0:a.value)??"").toString()}};return e.replace(n,i).replace(r,i)}function O1(e){var t;const n=(t=e==null?void 0:e.servers)==null?void 0:t[e.selectedServer??0];return typeof(n==null?void 0:n.url)=="string"?XP(n==null?void 0:n.url,e.variables):n==null?void 0:n.url}const QP=e=>e?!!Object.keys(Ki(e)??{}).length:!1,ase=e=>{var t;return!!Object.keys(((t=e==null?void 0:e.components)==null?void 0:t.securitySchemes)??{}).length},lse=e=>e?!!Object.keys((e==null?void 0:e.webhooks)??{}).length:!1;function cse(e){try{return!!new URL(e)}catch{return!1}}function JP(e,t){return Object.keys(e).forEach(n=>{Object.hasOwn(t,n)||delete e[n]}),Object.assign(e,t),e}const use=()=>({selectedServer:null,servers:[],variables:[]}),D1=qn(use()),dse=e=>{Object.assign(D1,{...D1,...e})},vf=()=>({server:D1,setServer:dse}),{server:fse}=vf(),{setOperation:hse,setGlobalSecurity:pse}=TE(),{toggleApiClient:mse}=lg(),{setActiveRequest:gse,resetActiveResponse:bse}=II();function I1(e,t){const n=YP({serverState:fse,operation:e,authenticationState:null,globalSecurity:null});bse(),gse(n),hse(e),pse(t),mse(n,!0)}var yse=Object.defineProperty,vse=(e,t,n)=>t in e?yse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,to=(e,t,n)=>(vse(e,typeof t!="symbol"?t+"":t,n),n);const Ese=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((r,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t)))})};var _se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R1={exports:{}},ZP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(R,O){return{validate:R,compare:O}}e.fullFormats={date:t(s,o),time:t(l,c),"date-time":t(d,f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:m,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:I,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:b,int32:{type:"number",validate:w},int64:{type:"number",validate:T},float:{type:"number",validate:_},double:{type:"number",validate:_},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(R){return R%4===0&&(R%100!==0||R%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(R){const O=r.exec(R);if(!O)return!1;const K=+O[1],B=+O[2],ge=+O[3];return B>=1&&B<=12&&ge>=1&&ge<=(B===2&&n(K)?29:i[B])}function o(R,O){if(R&&O)return R>O?1:R<O?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(R,O){const K=a.exec(R);if(!K)return!1;const B=+K[1],ge=+K[2],le=+K[3],ye=K[5];return(B<=23&&ge<=59&&le<=59||B===23&&ge===59&&le===60)&&(!O||ye!=="")}function c(R,O){if(!(R&&O))return;const K=a.exec(R),B=a.exec(O);if(K&&B)return R=K[1]+K[2]+K[3]+(K[4]||""),O=B[1]+B[2]+B[3]+(B[4]||""),R>O?1:R<O?-1:0}const u=/t|\s/i;function d(R){const O=R.split(u);return O.length===2&&s(O[0])&&l(O[1],!0)}function f(R,O){if(!(R&&O))return;const[K,B]=R.split(u),[ge,le]=O.split(u),ye=o(K,ge);if(ye!==void 0)return ye||c(B,le)}const h=/\/|:/,p=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function m(R){return h.test(R)&&p.test(R)}const g=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(R){return g.lastIndex=0,g.test(R)}const y=-(2**31),v=2**31-1;function w(R){return Number.isInteger(R)&&R<=v&&R>=y}function T(R){return Number.isInteger(R)}function _(){return!0}const S=/[^\\]\\Z/;function I(R){if(S.test(R))return!1;try{return new RegExp(R),!0}catch{return!1}}})(ZP);var eL={},P1={exports:{}},Ma={},Qr={},fc={},Ef={},ft={},Fd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((v,w)=>`${v}${w}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((v,w)=>(w instanceof n&&(v[w.str]=(v[w.str]||0)+1),v),{})}}e._Code=r,e.nil=new r("");function i(b,...y){const v=[b[0]];let w=0;for(;w<y.length;)a(v,y[w]),v.push(b[++w]);return new r(v)}e._=i;const s=new r("+");function o(b,...y){const v=[h(b[0])];let w=0;for(;w<y.length;)v.push(s),a(v,y[w]),v.push(s,h(b[++w]));return l(v),new r(v)}e.str=o;function a(b,y){y instanceof r?b.push(...y._items):y instanceof n?b.push(y):b.push(d(y))}e.addCodeArg=a;function l(b){let y=1;for(;y<b.length-1;){if(b[y]===s){const v=c(b[y-1],b[y+1]);if(v!==void 0){b.splice(y-1,3,v);continue}b[y++]="+"}y++}}function c(b,y){if(y==='""')return b;if(b==='""')return y;if(typeof b=="string")return y instanceof n||b[b.length-1]!=='"'?void 0:typeof y!="string"?`${b.slice(0,-1)}${y}"`:y[0]==='"'?b.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(b instanceof n))return`"${b}${y.slice(1)}`}function u(b,y){return y.emptyStr()?b:b.emptyStr()?y:o`${b}${y}`}e.strConcat=u;function d(b){return typeof b=="number"||typeof b=="boolean"||b===null?b:h(Array.isArray(b)?b.join(","):b)}function f(b){return new r(h(b))}e.stringify=f;function h(b){return JSON.stringify(b).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function p(b){return typeof b=="string"&&e.IDENTIFIER.test(b)?new r(`.${b}`):i`[${b}]`}e.getProperty=p;function m(b){if(typeof b=="string"&&e.IDENTIFIER.test(b))return new r(`${b}`);throw new Error(`CodeGen: invalid export name: ${b}, use explicit $id name mapping`)}e.getEsmExportName=m;function g(b){return new r(b.toString())}e.regexpCode=g})(Fd);var L1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Fd;class n extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var r;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(r=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:c,parent:u}={}){this._names={},this._prefixes=c,this._parent=u}toName(c){return c instanceof t.Name?c:this.name(c)}name(c){return new t.Name(this._newName(c))}_newName(c){const u=this._names[c]||this._nameGroup(c);return`${c}${u.index++}`}_nameGroup(c){var u,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}e.Scope=i;class s extends t.Name{constructor(c,u){super(u),this.prefix=c}setValue(c,{property:u,itemIndex:d}){this.value=c,this.scopePath=(0,t._)`.${new t.Name(u)}[${d}]`}}e.ValueScopeName=s;const o=(0,t._)`\n`;class a extends i{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?o:t.nil}}get(){return this._scope}name(c){return new s(c,this._newName(c))}value(c,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(c),{prefix:h}=f,p=(d=u.key)!==null&&d!==void 0?d:u.ref;let m=this._values[h];if(m){const y=m.get(p);if(y)return y}else m=this._values[h]=new Map;m.set(p,f);const g=this._scope[h]||(this._scope[h]=[]),b=g.length;return g[b]=u.ref,f.setValue(u,{property:h,itemIndex:b}),f}getValue(c,u){const d=this._values[c];if(d)return d.get(u)}scopeRefs(c,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${c}${d.scopePath}`})}scopeCode(c=this._values,u,d){return this._reduceValues(c,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,d)}_reduceValues(c,u,d={},f){let h=t.nil;for(const p in c){const m=c[p];if(!m)continue;const g=d[p]=d[p]||new Map;m.forEach(b=>{if(g.has(b))return;g.set(b,r.Started);let y=u(b);if(y){const v=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${v} ${b} = ${y};${this.opts._n}`}else if(y=f==null?void 0:f(b))h=(0,t._)`${h}${y}${this.opts._n}`;else throw new n(b);g.set(b,r.Completed)})}return h}}e.ValueScope=a})(L1);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Fd,n=L1;var r=Fd;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=L1;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(D,U){return this}}class o extends s{constructor(D,U,q){super(),this.varKind=D,this.name=U,this.rhs=q}render({es5:D,_n:U}){const q=D?n.varKinds.var:this.varKind,be=this.rhs===void 0?"":` = ${this.rhs}`;return`${q} ${this.name}${be};`+U}optimizeNames(D,U){if(D[this.name.str])return this.rhs&&(this.rhs=le(this.rhs,D,U)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends s{constructor(D,U,q){super(),this.lhs=D,this.rhs=U,this.sideEffects=q}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,U){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=le(this.rhs,D,U),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return ge(D,this.rhs)}}class l extends a{constructor(D,U,q,be){super(D,q,be),this.op=U}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class c extends s{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class u extends s{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class d extends s{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class f extends s{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,U){return this.code=le(this.code,D,U),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends s{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((U,q)=>U+q.render(D),"")}optimizeNodes(){const{nodes:D}=this;let U=D.length;for(;U--;){const q=D[U].optimizeNodes();Array.isArray(q)?D.splice(U,1,...q):q?D[U]=q:D.splice(U,1)}return D.length>0?this:void 0}optimizeNames(D,U){const{nodes:q}=this;let be=q.length;for(;be--;){const Ce=q[be];Ce.optimizeNames(D,U)||(ye(D,Ce.names),q.splice(be,1))}return q.length>0?this:void 0}get names(){return this.nodes.reduce((D,U)=>B(D,U.names),{})}}class p extends h{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class m extends h{}class g extends p{}g.kind="else";class b extends p{constructor(D,U){super(U),this.condition=D}render(D){let U=`if(${this.condition})`+super.render(D);return this.else&&(U+="else "+this.else.render(D)),U}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let U=this.else;if(U){const q=U.optimizeNodes();U=this.else=Array.isArray(q)?new g(q):q}if(U)return D===!1?U instanceof b?U:U.nodes:this.nodes.length?this:new b(Fe(D),U instanceof b?[U]:U.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,U){var q;if(this.else=(q=this.else)===null||q===void 0?void 0:q.optimizeNames(D,U),!!(super.optimizeNames(D,U)||this.else))return this.condition=le(this.condition,D,U),this}get names(){const D=super.names;return ge(D,this.condition),this.else&&B(D,this.else.names),D}}b.kind="if";class y extends p{}y.kind="for";class v extends y{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,U){if(super.optimizeNames(D,U))return this.iteration=le(this.iteration,D,U),this}get names(){return B(super.names,this.iteration.names)}}class w extends y{constructor(D,U,q,be){super(),this.varKind=D,this.name=U,this.from=q,this.to=be}render(D){const U=D.es5?n.varKinds.var:this.varKind,{name:q,from:be,to:Ce}=this;return`for(${U} ${q}=${be}; ${q}<${Ce}; ${q}++)`+super.render(D)}get names(){const D=ge(super.names,this.from);return ge(D,this.to)}}class T extends y{constructor(D,U,q,be){super(),this.loop=D,this.varKind=U,this.name=q,this.iterable=be}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,U){if(super.optimizeNames(D,U))return this.iterable=le(this.iterable,D,U),this}get names(){return B(super.names,this.iterable.names)}}class _ extends p{constructor(D,U,q){super(),this.name=D,this.args=U,this.async=q}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}_.kind="func";class S extends h{render(D){return"return "+super.render(D)}}S.kind="return";class I extends p{render(D){let U="try"+super.render(D);return this.catch&&(U+=this.catch.render(D)),this.finally&&(U+=this.finally.render(D)),U}optimizeNodes(){var D,U;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(U=this.finally)===null||U===void 0||U.optimizeNodes(),this}optimizeNames(D,U){var q,be;return super.optimizeNames(D,U),(q=this.catch)===null||q===void 0||q.optimizeNames(D,U),(be=this.finally)===null||be===void 0||be.optimizeNames(D,U),this}get names(){const D=super.names;return this.catch&&B(D,this.catch.names),this.finally&&B(D,this.finally.names),D}}class R extends p{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}R.kind="catch";class O extends p{render(D){return"finally"+super.render(D)}}O.kind="finally";class K{constructor(D,U={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...U,_n:U.lines?`
212
212
  `:""},this._extScope=D,this._scope=new n.Scope({parent:D}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,U){const q=this._extScope.value(D,U);return(this._values[q.prefix]||(this._values[q.prefix]=new Set)).add(q),q}getScopeValue(D,U){return this._extScope.getValue(D,U)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,U,q,be){const Ce=this._scope.toName(U);return q!==void 0&&be&&(this._constants[Ce.str]=q),this._leafNode(new o(D,Ce,q)),Ce}const(D,U,q){return this._def(n.varKinds.const,D,U,q)}let(D,U,q){return this._def(n.varKinds.let,D,U,q)}var(D,U,q){return this._def(n.varKinds.var,D,U,q)}assign(D,U,q){return this._leafNode(new a(D,U,q))}add(D,U){return this._leafNode(new l(D,e.operators.ADD,U))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new f(D)),this}object(...D){const U=["{"];for(const[q,be]of D)U.length>1&&U.push(","),U.push(q),(q!==be||this.opts.es5)&&(U.push(":"),(0,t.addCodeArg)(U,be));return U.push("}"),new t._Code(U)}if(D,U,q){if(this._blockNode(new b(D)),U&&q)this.code(U).else().code(q).endIf();else if(U)this.code(U).endIf();else if(q)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new b(D))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(b,g)}_for(D,U){return this._blockNode(D),U&&this.code(U).endFor(),this}for(D,U){return this._for(new v(D),U)}forRange(D,U,q,be,Ce=this.opts.es5?n.varKinds.var:n.varKinds.let){const Ke=this._scope.toName(D);return this._for(new w(Ce,Ke,U,q),()=>be(Ke))}forOf(D,U,q,be=n.varKinds.const){const Ce=this._scope.toName(D);if(this.opts.es5){const Ke=U instanceof t.Name?U:this.var("_arr",U);return this.forRange("_i",0,(0,t._)`${Ke}.length`,ze=>{this.var(Ce,(0,t._)`${Ke}[${ze}]`),q(Ce)})}return this._for(new T("of",be,Ce,U),()=>q(Ce))}forIn(D,U,q,be=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${U})`,q);const Ce=this._scope.toName(D);return this._for(new T("in",be,Ce,U),()=>q(Ce))}endFor(){return this._endBlockNode(y)}label(D){return this._leafNode(new c(D))}break(D){return this._leafNode(new u(D))}return(D){const U=new S;if(this._blockNode(U),this.code(D),U.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(D,U,q){if(!U&&!q)throw new Error('CodeGen: "try" without "catch" and "finally"');const be=new I;if(this._blockNode(be),this.code(D),U){const Ce=this.name("e");this._currNode=be.catch=new R(Ce),U(Ce)}return q&&(this._currNode=be.finally=new O,this.code(q)),this._endBlockNode(R,O)}throw(D){return this._leafNode(new d(D))}block(D,U){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(U),this}endBlock(D){const U=this._blockStarts.pop();if(U===void 0)throw new Error("CodeGen: not in self-balancing block");const q=this._nodes.length-U;if(q<0||D!==void 0&&q!==D)throw new Error(`CodeGen: wrong number of nodes: ${q} vs ${D} expected`);return this._nodes.length=U,this}func(D,U=t.nil,q,be){return this._blockNode(new _(D,U,q)),be&&this.code(be).endFunc(),this}endFunc(){return this._endBlockNode(_)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,U){const q=this._currNode;if(q instanceof D||U&&q instanceof U)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${U?`${D.kind}/${U.kind}`:D.kind}"`)}_elseNode(D){const U=this._currNode;if(!(U instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=U.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const U=this._nodes;U[U.length-1]=D}}e.CodeGen=K;function B(k,D){for(const U in D)k[U]=(k[U]||0)+(D[U]||0);return k}function ge(k,D){return D instanceof t._CodeOrName?B(k,D.names):k}function le(k,D,U){if(k instanceof t.Name)return q(k);if(!be(k))return k;return new t._Code(k._items.reduce((Ce,Ke)=>(Ke instanceof t.Name&&(Ke=q(Ke)),Ke instanceof t._Code?Ce.push(...Ke._items):Ce.push(Ke),Ce),[]));function q(Ce){const Ke=U[Ce.str];return Ke===void 0||D[Ce.str]!==1?Ce:(delete D[Ce.str],Ke)}function be(Ce){return Ce instanceof t._Code&&Ce._items.some(Ke=>Ke instanceof t.Name&&D[Ke.str]===1&&U[Ke.str]!==void 0)}}function ye(k,D){for(const U in D)k[U]=(k[U]||0)-(D[U]||0)}function Fe(k){return typeof k=="boolean"||typeof k=="number"||k===null?!k:(0,t._)`!${X(k)}`}e.not=Fe;const J=F(e.operators.AND);function ee(...k){return k.reduce(J)}e.and=ee;const he=F(e.operators.OR);function C(...k){return k.reduce(he)}e.or=C;function F(k){return(D,U)=>D===t.nil?U:U===t.nil?D:(0,t._)`${X(D)} ${k} ${X(U)}`}function X(k){return k instanceof t.Name?k:(0,t._)`(${k})`}})(ft);var At={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=ft,n=Fd;function r(_){const S={};for(const I of _)S[I]=!0;return S}e.toHash=r;function i(_,S){return typeof S=="boolean"?S:Object.keys(S).length===0?!0:(s(_,S),!o(S,_.self.RULES.all))}e.alwaysValidSchema=i;function s(_,S=_.schema){const{opts:I,self:R}=_;if(!I.strictSchema||typeof S=="boolean")return;const O=R.RULES.keywords;for(const K in S)O[K]||T(_,`unknown keyword: "${K}"`)}e.checkUnknownRules=s;function o(_,S){if(typeof _=="boolean")return!_;for(const I in _)if(S[I])return!0;return!1}e.schemaHasRules=o;function a(_,S){if(typeof _=="boolean")return!_;for(const I in _)if(I!=="$ref"&&S.all[I])return!0;return!1}e.schemaHasRulesButRef=a;function l({topSchemaRef:_,schemaPath:S},I,R,O){if(!O){if(typeof I=="number"||typeof I=="boolean")return I;if(typeof I=="string")return(0,t._)`${I}`}return(0,t._)`${_}${S}${(0,t.getProperty)(R)}`}e.schemaRefOrVal=l;function c(_){return f(decodeURIComponent(_))}e.unescapeFragment=c;function u(_){return encodeURIComponent(d(_))}e.escapeFragment=u;function d(_){return typeof _=="number"?`${_}`:_.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function f(_){return _.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function h(_,S){if(Array.isArray(_))for(const I of _)S(I);else S(_)}e.eachItem=h;function p({mergeNames:_,mergeToName:S,mergeValues:I,resultToName:R}){return(O,K,B,ge)=>{const le=B===void 0?K:B instanceof t.Name?(K instanceof t.Name?_(O,K,B):S(O,K,B),B):K instanceof t.Name?(S(O,B,K),K):I(K,B);return ge===t.Name&&!(le instanceof t.Name)?R(O,le):le}}e.mergeEvaluated={props:p({mergeNames:(_,S,I)=>_.if((0,t._)`${I} !== true && ${S} !== undefined`,()=>{_.if((0,t._)`${S} === true`,()=>_.assign(I,!0),()=>_.assign(I,(0,t._)`${I} || {}`).code((0,t._)`Object.assign(${I}, ${S})`))}),mergeToName:(_,S,I)=>_.if((0,t._)`${I} !== true`,()=>{S===!0?_.assign(I,!0):(_.assign(I,(0,t._)`${I} || {}`),g(_,I,S))}),mergeValues:(_,S)=>_===!0?!0:{..._,...S},resultToName:m}),items:p({mergeNames:(_,S,I)=>_.if((0,t._)`${I} !== true && ${S} !== undefined`,()=>_.assign(I,(0,t._)`${S} === true ? true : ${I} > ${S} ? ${I} : ${S}`)),mergeToName:(_,S,I)=>_.if((0,t._)`${I} !== true`,()=>_.assign(I,S===!0?!0:(0,t._)`${I} > ${S} ? ${I} : ${S}`)),mergeValues:(_,S)=>_===!0?!0:Math.max(_,S),resultToName:(_,S)=>_.var("items",S)})};function m(_,S){if(S===!0)return _.var("props",!0);const I=_.var("props",(0,t._)`{}`);return S!==void 0&&g(_,I,S),I}e.evaluatedPropsToName=m;function g(_,S,I){Object.keys(I).forEach(R=>_.assign((0,t._)`${S}${(0,t.getProperty)(R)}`,!0))}e.setEvaluated=g;const b={};function y(_,S){return _.scopeValue("func",{ref:S,code:b[S.code]||(b[S.code]=new n._Code(S.code))})}e.useFunc=y;var v;(function(_){_[_.Num=0]="Num",_[_.Str=1]="Str"})(v=e.Type||(e.Type={}));function w(_,S,I){if(_ instanceof t.Name){const R=S===v.Num;return I?R?(0,t._)`"[" + ${_} + "]"`:(0,t._)`"['" + ${_} + "']"`:R?(0,t._)`"/" + ${_}`:(0,t._)`"/" + ${_}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return I?(0,t.getProperty)(_).toString():"/"+d(_)}e.getErrorPath=w;function T(_,S,I=_.opts.strictSchema){if(I){if(S=`strict mode: ${S}`,I===!0)throw new Error(S);_.self.logger.warn(S)}}e.checkStrictMode=T})(At);var Br={};Object.defineProperty(Br,"__esModule",{value:!0});const zn=ft,wse={data:new zn.Name("data"),valCxt:new zn.Name("valCxt"),instancePath:new zn.Name("instancePath"),parentData:new zn.Name("parentData"),parentDataProperty:new zn.Name("parentDataProperty"),rootData:new zn.Name("rootData"),dynamicAnchors:new zn.Name("dynamicAnchors"),vErrors:new zn.Name("vErrors"),errors:new zn.Name("errors"),this:new zn.Name("this"),self:new zn.Name("self"),scope:new zn.Name("scope"),json:new zn.Name("json"),jsonPos:new zn.Name("jsonPos"),jsonLen:new zn.Name("jsonLen"),jsonPart:new zn.Name("jsonPart")};Br.default=wse;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ft,n=At,r=Br;e.keywordError={message:({keyword:g})=>(0,t.str)`must pass "${g}" keyword validation`},e.keyword$DataError={message:({keyword:g,schemaType:b})=>b?(0,t.str)`"${g}" keyword must be ${b} ($data)`:(0,t.str)`"${g}" keyword is invalid ($data)`};function i(g,b=e.keywordError,y,v){const{it:w}=g,{gen:T,compositeRule:_,allErrors:S}=w,I=d(g,b,y);v??(_||S)?l(T,I):c(w,(0,t._)`[${I}]`)}e.reportError=i;function s(g,b=e.keywordError,y){const{it:v}=g,{gen:w,compositeRule:T,allErrors:_}=v,S=d(g,b,y);l(w,S),T||_||c(v,r.default.vErrors)}e.reportExtraError=s;function o(g,b){g.assign(r.default.errors,b),g.if((0,t._)`${r.default.vErrors} !== null`,()=>g.if(b,()=>g.assign((0,t._)`${r.default.vErrors}.length`,b),()=>g.assign(r.default.vErrors,null)))}e.resetErrorsCount=o;function a({gen:g,keyword:b,schemaValue:y,data:v,errsCount:w,it:T}){if(w===void 0)throw new Error("ajv implementation error");const _=g.name("err");g.forRange("i",w,r.default.errors,S=>{g.const(_,(0,t._)`${r.default.vErrors}[${S}]`),g.if((0,t._)`${_}.instancePath === undefined`,()=>g.assign((0,t._)`${_}.instancePath`,(0,t.strConcat)(r.default.instancePath,T.errorPath))),g.assign((0,t._)`${_}.schemaPath`,(0,t.str)`${T.errSchemaPath}/${b}`),T.opts.verbose&&(g.assign((0,t._)`${_}.schema`,y),g.assign((0,t._)`${_}.data`,v))})}e.extendErrors=a;function l(g,b){const y=g.const("err",b);g.if((0,t._)`${r.default.vErrors} === null`,()=>g.assign(r.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${r.default.vErrors}.push(${y})`),g.code((0,t._)`${r.default.errors}++`)}function c(g,b){const{gen:y,validateName:v,schemaEnv:w}=g;w.$async?y.throw((0,t._)`new ${g.ValidationError}(${b})`):(y.assign((0,t._)`${v}.errors`,b),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(g,b,y){const{createErrors:v}=g.it;return v===!1?(0,t._)`{}`:f(g,b,y)}function f(g,b,y={}){const{gen:v,it:w}=g,T=[h(w,y),p(g,y)];return m(g,b,T),v.object(...T)}function h({errorPath:g},{instancePath:b}){const y=b?(0,t.str)`${g}${(0,n.getErrorPath)(b,n.Type.Str)}`:g;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,y)]}function p({keyword:g,it:{errSchemaPath:b}},{schemaPath:y,parentSchema:v}){let w=v?b:(0,t.str)`${b}/${g}`;return y&&(w=(0,t.str)`${w}${(0,n.getErrorPath)(y,n.Type.Str)}`),[u.schemaPath,w]}function m(g,{params:b,message:y},v){const{keyword:w,data:T,schemaValue:_,it:S}=g,{opts:I,propertyName:R,topSchemaRef:O,schemaPath:K}=S;v.push([u.keyword,w],[u.params,typeof b=="function"?b(g):b||(0,t._)`{}`]),I.messages&&v.push([u.message,typeof y=="function"?y(g):y]),I.verbose&&v.push([u.schema,_],[u.parentSchema,(0,t._)`${O}${K}`],[r.default.data,T]),R&&v.push([u.propertyName,R])}})(Ef);Object.defineProperty(fc,"__esModule",{value:!0});fc.boolOrEmptySchema=fc.topBoolOrEmptySchema=void 0;const Tse=Ef,Sse=ft,kse=Br,xse={message:"boolean schema is false"};function Ase(e){const{gen:t,schema:n,validateName:r}=e;n===!1?tL(e,!1):typeof n=="object"&&n.$async===!0?t.return(kse.default.data):(t.assign((0,Sse._)`${r}.errors`,null),t.return(!0))}fc.topBoolOrEmptySchema=Ase;function Cse(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),tL(e)):n.var(t,!0)}fc.boolOrEmptySchema=Cse;function tL(e,t){const{gen:n,data:r}=e,i={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Tse.reportError)(i,xse,void 0,t)}var _f={},Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.getRules=Ka.isJSONType=void 0;const Nse=["string","number","integer","boolean","null","object","array"],Ose=new Set(Nse);function Dse(e){return typeof e=="string"&&Ose.has(e)}Ka.isJSONType=Dse;function Ise(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Ka.getRules=Ise;var _s={};Object.defineProperty(_s,"__esModule",{value:!0});_s.shouldUseRule=_s.shouldUseGroup=_s.schemaHasRulesForType=void 0;function Rse({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&nL(e,r)}_s.schemaHasRulesForType=Rse;function nL(e,t){return t.rules.some(n=>rL(e,n))}_s.shouldUseGroup=nL;function rL(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}_s.shouldUseRule=rL;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Ka,n=_s,r=Ef,i=ft,s=At;var o;(function(v){v[v.Correct=0]="Correct",v[v.Wrong=1]="Wrong"})(o=e.DataType||(e.DataType={}));function a(v){const w=l(v.type);if(w.includes("null")){if(v.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&v.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');v.nullable===!0&&w.push("null")}return w}e.getSchemaTypes=a;function l(v){const w=Array.isArray(v)?v:v?[v]:[];if(w.every(t.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}e.getJSONTypes=l;function c(v,w){const{gen:T,data:_,opts:S}=v,I=d(w,S.coerceTypes),R=w.length>0&&!(I.length===0&&w.length===1&&(0,n.schemaHasRulesForType)(v,w[0]));if(R){const O=m(w,_,S.strictNumbers,o.Wrong);T.if(O,()=>{I.length?f(v,w,I):b(v)})}return R}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function d(v,w){return w?v.filter(T=>u.has(T)||w==="array"&&T==="array"):[]}function f(v,w,T){const{gen:_,data:S,opts:I}=v,R=_.let("dataType",(0,i._)`typeof ${S}`),O=_.let("coerced",(0,i._)`undefined`);I.coerceTypes==="array"&&_.if((0,i._)`${R} == 'object' && Array.isArray(${S}) && ${S}.length == 1`,()=>_.assign(S,(0,i._)`${S}[0]`).assign(R,(0,i._)`typeof ${S}`).if(m(w,S,I.strictNumbers),()=>_.assign(O,S))),_.if((0,i._)`${O} !== undefined`);for(const B of T)(u.has(B)||B==="array"&&I.coerceTypes==="array")&&K(B);_.else(),b(v),_.endIf(),_.if((0,i._)`${O} !== undefined`,()=>{_.assign(S,O),h(v,O)});function K(B){switch(B){case"string":_.elseIf((0,i._)`${R} == "number" || ${R} == "boolean"`).assign(O,(0,i._)`"" + ${S}`).elseIf((0,i._)`${S} === null`).assign(O,(0,i._)`""`);return;case"number":_.elseIf((0,i._)`${R} == "boolean" || ${S} === null
213
213
  || (${R} == "string" && ${S} && ${S} == +${S})`).assign(O,(0,i._)`+${S}`);return;case"integer":_.elseIf((0,i._)`${R} === "boolean" || ${S} === null
214
214
  || (${R} === "string" && ${S} && ${S} == +${S} && !(${S} % 1))`).assign(O,(0,i._)`+${S}`);return;case"boolean":_.elseIf((0,i._)`${S} === "false" || ${S} === 0 || ${S} === null`).assign(O,!1).elseIf((0,i._)`${S} === "true" || ${S} === 1`).assign(O,!0);return;case"null":_.elseIf((0,i._)`${S} === "" || ${S} === 0 || ${S} === false`),_.assign(O,null);return;case"array":_.elseIf((0,i._)`${R} === "string" || ${R} === "number"
@@ -361,11 +361,11 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
361
361
 
362
362
  `):f.map(d)}function Uu(e,t){return typeof t=="string"?[{start:{line:1,column:1,offset:0},error:t,path:""}]:Tpe(e,null,t,{format:"js",indent:2,colorize:!1}).map(n=>(n.error=n.error.trim(),n))}function Spe(e){try{return P3(e),{valid:!0}}catch(t){return{valid:!1,errors:Uu(e,t.message)}}}class iw{constructor(){to(this,"version"),to(this,"ajvValidators",{}),to(this,"externalRefs",{}),to(this,"errors"),to(this,"specificationVersion"),to(this,"specificationType"),to(this,"specification")}resolveReferences(t){return P3(t.find(n=>n.isEntrypoint===!0).specification)}async validate(t){var n;const r=t.find(s=>s.isEntrypoint),i=r==null?void 0:r.specification;this.specification=i,(n=this.specification)!=null&&n.info&&!this.specification.info.version&&(this.specification.info.version="0.0.1");try{if(i==null)return{valid:!1,errors:Uu(r,K1.EMPTY_OR_INVALID)};Object.keys(this.externalRefs).length>0&&(i[ufe]=this.externalRefs);const{version:s,specificationType:o,specificationVersion:a}=R3(i);if(this.version=s,this.specificationVersion=a,this.specificationType=o,!s)return{valid:!1,errors:Uu(r,K1.OPENAPI_VERSION_NOT_SUPPORTED)};const l=await this.getAjvValidator(s);return l(i)?Spe(r.specification):l.errors&&l.errors.length>0?{valid:!1,errors:Uu(r,l.errors)}:{valid:!1}}catch(s){return{valid:!1,errors:Uu(r,s.message??s)}}}async getAjvValidator(t){if(this.ajvValidators[t])return this.ajvValidators[t];const n=await Ese(Object.assign({"../../../schemas/v2.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BQQoKgNw-DQKLRVph-CyFt8nZw.cjs")),"../../../schemas/v3.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BjykgtPd-D3b7mB1v-C_N_PTsi.cjs")),"../../../schemas/v3.1/schema.json":()=>Promise.resolve().then(()=>require("./schema-ZROhtp0X-ZROhtp0X-DL6m5HXA.cjs"))}),`../../../schemas/v${t}/schema.json`),r=cfe[n.$schema],i=new r({strict:!1});return pce(i),t==="3.1"&&i.addFormat("media-range",!0),this.ajvValidators[t]=i.compile(n)}}to(iw,"supportedVersions",ML);function kpe(){return{load:xpe}}function xpe(e){const t=D3(e);return{get:()=>t,details:()=>Jg(t),filter:n=>Nf(t,n),upgrade:()=>K3(t),validate:()=>sw(t),resolve:()=>Qg(t),toJson:()=>Of(t),toYaml:()=>Df(t)}}function K3(e){const t=Ahe(e);return{get:()=>t,details:()=>Jg(t),filter:n=>Nf(t,n),validate:()=>sw(t),resolve:()=>Qg(t),toJson:()=>Of(t),toYaml:()=>Df(t)}}async function sw(e){return{...await Che(e),filter:t=>Nf(e,t),get:()=>e,details:()=>Jg(e),resolve:()=>Qg(e),toJson:()=>Of(e),toYaml:()=>Df(e)}}async function Qg(e){return{...await whe(e),filter:t=>Nf(e,t),toJson:()=>Of(e),toYaml:()=>Df(e)}}function Nf(e,t){const n=dfe(e,t);return{get:()=>n,details:()=>Jg(n),filter:()=>Nf(n,t),upgrade:()=>K3(n),validate:()=>sw(n),resolve:()=>Qg(n),toJson:()=>Of(n),toYaml:()=>Df(n)}}function Jg(e){return R3(e)}function Of(e){return The(e)}function Df(e){return She(e)}const Ape=e=>new Promise(async(t,n)=>{var r;try{if(!e)return t(Hh(Gl()));const{schema:i,errors:s}=await kpe().load(e).resolve();return s!=null&&s.length&&console.warn(`Please open an issue on https://github.com/scalar/scalar
363
363
  `,`Scalar OpenAPI Parser Warning:
364
- `,s),i===void 0?(n(((r=s==null?void 0:s[0])==null?void 0:r.error)??"Failed to parse the OpenAPI file."),t(Hh(Gl()))):t(Hh(i))}catch(i){n(i)}return t(Hh(Gl()))}),Hh=e=>{let t={};e&&typeof e=="object"?t=structuredClone(e):t=Gl(),t.tags||(t.tags=[]),t.paths||(t.paths={});const n={};return Object.keys(t.webhooks??{}).forEach(r=>{var i;Object.keys(((i=t.webhooks)==null?void 0:i[r])??{}).forEach(s=>{var o,a,l;const c=(o=t.webhooks)==null?void 0:o[r][s];(c==null?void 0:c["x-internal"])!==!0&&(n[r]===void 0&&(n[r]={}),n[r][s]={httpVerb:s,path:r,operationId:(c==null?void 0:c.operationId)||r,name:(c==null?void 0:c.summary)||r||"",description:(c==null?void 0:c.description)||"",pathParameters:(l=(a=t.paths)==null?void 0:a[r])==null?void 0:l.parameters,information:{...c}})})}),Object.keys(t.paths).forEach(r=>{Object.keys(t.paths[r]).filter(i=>kE.includes(i.toUpperCase())).forEach(i=>{var s,o,a,l,c,u;const d=t.paths[r][i];if(d===void 0||d["x-internal"]===!0)return;const f={httpVerb:i,path:r,operationId:d.operationId||r,name:d.summary||r||"",description:d.description||"",information:{...d},pathParameters:(o=(s=t.paths)==null?void 0:s[r])==null?void 0:o.parameters};if(!d.tags||d.tags.length===0){(a=t.tags)!=null&&a.find(p=>p.name==="default")||(l=t.tags)==null||l.push({name:"default",description:"",operations:[]});const h=(c=t.tags)==null?void 0:c.findIndex(p=>p.name==="default");h>=0&&((u=t.tags[h])==null||u.operations.push(f))}else d.tags.forEach(h=>{var p,m,g;const b=(p=t.tags)==null?void 0:p.findIndex(v=>v.name===h);b===-1&&((m=t.tags)==null||m.push({name:h,description:""}));const y=b!==-1?b:t.tags.length-1;typeof((g=t.tags[y])==null?void 0:g.operations)>"u"&&(t.tags[y].operations=[]),t.tags[y].operations.push(f)})})}),{...t,webhooks:n}},ow=Symbol(),W3=Symbol(),mm=async e=>{var t;(t=document.getElementById(e))==null||t.scrollIntoView()},Ls=e=>new Promise(t=>setTimeout(t,e)),Cpe=Symbol("downloadSpec"),G3=Mv(Cpe);function Npe(e,t){const n=TI(e),r=n?new Blob([e],{type:"application/json"}):new Blob([e],{type:"application/x-yaml"}),i=URL.createObjectURL(r),s=n?".json":".yaml",o="spec"+s,a=t?t+s:o,l=document.createElement("a");l.href=i,l.download=a,l.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(i),l.remove()},100)}function Ope(e,t=1){const n=new RegExp(`^(?=#{${t}} )`,"m");return e.split(n).map(r=>r.trim()).filter(Boolean)}var Dpe=Object.defineProperty,Ipe=(e,t,n)=>t in e?Dpe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ar=(e,t,n)=>(Ipe(e,typeof t!="symbol"?t+"":t,n),n);function Rpe(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Rpe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;will-change:transform,opacity,height;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:20px;width:20px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;transition:opacity .4s,box-shadow .2s;z-index:100}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;opacity:0;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]{opacity:1}[data-sonner-toast]:focus [data-close-button]{opacity:1}[data-sonner-toast]:focus-within [data-close-button]{opacity:1}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:'';position:absolute;left:0;right:0;height:100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{display:none;transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}");let ev=1;class Ppe{constructor(){ar(this,"subscribers"),ar(this,"toasts"),ar(this,"subscribe",t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)})),ar(this,"publish",t=>{this.subscribers.forEach(n=>n(t))}),ar(this,"addToast",t=>{this.publish(t),this.toasts=[...this.toasts,t]}),ar(this,"create",t=>{var n;const{message:r,...i}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:ev++,o=this.toasts.findIndex(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return o!==-1?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):this.addToast({title:r,...i,dismissible:a,id:s}),s}),ar(this,"dismiss",t=>(t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),this.subscribers.forEach(n=>n({id:t,dismiss:!0})),t)),ar(this,"message",(t,n)=>this.create({...n,message:t})),ar(this,"error",(t,n)=>this.create({...n,type:"error",message:t})),ar(this,"success",(t,n)=>this.create({...n,type:"success",message:t})),ar(this,"info",(t,n)=>this.create({...n,type:"info",message:t})),ar(this,"warning",(t,n)=>this.create({...n,type:"warning",message:t})),ar(this,"loading",(t,n)=>this.create({...n,type:"loading",message:t})),ar(this,"promise",(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading}));const i=t instanceof Promise?t:t();let s=r!==void 0;return i.then(o=>{if(n.success!==void 0){s=!1;const a=typeof n.success=="function"?n.success(o):n.success;this.create({id:r,type:"success",message:a})}}).catch(o=>{if(n.error!==void 0){s=!1;const a=typeof n.error=="function"?n.error(o):n.error;this.create({id:r,type:"error",message:a})}}).finally(()=>{var o;s&&(this.dismiss(r),r=void 0),(o=n.finally)==null||o.call(n)}),r}),ar(this,"custom",(t,n)=>{const r=(n==null?void 0:n.id)||ev++;return this.publish({...n,id:r,title:t}),r}),this.subscribers=[],this.toasts=[]}}const ci=new Ppe,Lpe=(e,t)=>{const n=(t==null?void 0:t.id)||ev++;return ci.publish({title:e,...t,id:n}),n},Mpe=Lpe,jh=Object.assign(Mpe,{success:ci.success,info:ci.info,warning:ci.warning,error:ci.error,custom:ci.custom,message:ci.message,promise:ci.promise,dismiss:ci.dismiss,loading:ci.loading}),$pe=["data-visible"],Fpe={className:"sonner-spinner"},Bpe=Se({__name:"Loader",props:{visible:Boolean},setup(e){const t=Array(12).fill(0);return(n,r)=>(x(),j("div",{className:"sonner-loading-wrapper","data-visible":e.visible},[ie("div",Fpe,[(x(!0),j(Ne,null,pt(A(t),i=>(x(),j("div",{key:`spinner-bar-${i}`,className:"sonner-loading-bar"}))),128))])],8,$pe))}}),If=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Upe={},Hpe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},jpe=ie("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1),qpe=[jpe];function Vpe(e,t){return x(),j("svg",Hpe,qpe)}const zpe=If(Upe,[["render",Vpe]]),Kpe={},Wpe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Gpe=ie("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1),Ype=[Gpe];function Xpe(e,t){return x(),j("svg",Wpe,Ype)}const Qpe=If(Kpe,[["render",Xpe]]),Jpe={},Zpe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},eme=ie("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1),tme=[eme];function nme(e,t){return x(),j("svg",Zpe,tme)}const rme=If(Jpe,[["render",nme]]),ime={},sme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ome=ie("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1),ame=[ome];function lme(e,t){return x(),j("svg",sme,ame)}const cme=If(ime,[["render",lme]]),ume={},dme={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},fme=ie("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),hme=ie("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1),pme=[fme,hme];function mme(e,t){return x(),j("svg",dme,pme)}const gme=If(ume,[["render",mme]]),bme=["aria-live","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-type","data-invert","data-swipe-out","data-expanded"],yme=["data-disabled"],vme={key:1,"data-icon":""},Eme={"data-content":""},_me={"data-title":""},wme=4e3,Tme=14,Sme=20,kme=200,xme=Se({__name:"Toast",props:{toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},duration:{},descriptionClass:{}},emits:["update:heights","removeToast"],setup(e,{emit:t}){const n=q=>!!q.promise,r=t,i=e,s=ce(!1),o=ce(!1),a=ce(!1),l=ce(!1),c=ce(null),u=ce(0),d=ce(0),f=ce(null),h=ce(null),p=ae(()=>i.index===0),m=ae(()=>i.index+1<=i.visibleToasts),g=ae(()=>i.toast.type),b=ae(()=>i.toast.dismissible),y=i.toast.className||"",v=i.toast.descriptionClassName||"",w=i.toast.style||{},T=ae(()=>i.heights.findIndex(q=>q.toastId===i.toast.id)||0),_=ae(()=>i.toast.duration||i.duration||wme),S=ce(0),I=ce(0),R=ce(_.value),O=ce(0),K=ce(null),B=ae(()=>i.position.split("-")),ge=ae(()=>B.value[0]),le=ae(()=>B.value[1]),ye=ae(()=>i.heights.reduce((q,be,Ce)=>Ce>=T.value?q:q+be.height,0)),Fe=ae(()=>i.toast.invert||i.invert),J=ae(()=>c.value==="loading"),ee=ae(()=>c.value??(i.toast.type||null)),he=ae(()=>!n(i.toast)&&typeof i.toast.title=="object"),C=ae(()=>{if(!n(i.toast))return null;switch(c.value){case"loading":return i.toast.loading;case"success":return typeof i.toast.success=="function"?f.value:i.toast.success;case"error":return typeof i.toast.error=="function"?f.value:i.toast.error;default:return null}});Mt(()=>s.value=!0),Pn(()=>{I.value=T.value*Tme+ye.value});function F(){var q,be;(!J.value||b.value)&&(X(),(be=(q=i.toast).onDismiss)==null||be.call(q,i.toast))}function X(){o.value=!0,u.value=I.value;const q=i.heights.filter(be=>be.toastId!==i.toast.id);r("update:heights",q),setTimeout(()=>{r("removeToast",i.toast)},kme)}const k=q=>{J||(u.value=I.value,q.target.setPointerCapture(q.pointerId),q.target.tagName!=="BUTTON"&&(a.value=!0,K.value={x:q.clientX,y:q.clientY}))},D=q=>{var be,Ce,Ke,ze;if(l.value)return;K.value=null;const nt=Number(((be=h.value)==null?void 0:be.style.getPropertyValue("--swipe-amount").replace("px",""))||0);if(Math.abs(nt)>=Sme){u.value=I.value,(Ke=(Ce=i.toast).onDismiss)==null||Ke.call(Ce,i.toast),X(),l.value=!0;return}(ze=h.value)==null||ze.style.setProperty("--swipe-amount","0px"),a.value=!0},U=q=>{var be;if(!K.value)return;const Ce=q.clientY-K.value.y,Ke=q.clientX-K.value.x,ze=(B.value[0]==="top"?Math.min:Math.max)(0,Ce),nt=q.pointerType==="touch"?10:2;Math.abs(ze)>nt?(be=h.value)==null||be.style.setProperty("--swipe-amount",`${Ce}px`):Math.abs(Ke)>nt&&(K.value=null)};return Pn(q=>{if(i.toast.promise&&c.value==="loading"||i.toast.duration===1/0)return;let be;const Ce=()=>{if(O.value<S.value){const ze=new Date().getTime()-S.value;R.value=R.value-ze}O.value=new Date().getTime()},Ke=()=>{S.value=new Date().getTime(),be=setTimeout(()=>{var ze,nt;(nt=(ze=i.toast).onAutoClose)==null||nt.call(ze,i.toast),X()},R.value)};i.expanded||i.interacting?Ce():Ke(),q(()=>{clearTimeout(be)})}),Mt(()=>{if(h.value){const q=h.value.getBoundingClientRect().height;d.value=q;const be=[{toastId:i.toast.id,height:q},...i.heights];r("update:heights",be)}}),An(()=>{if(h.value){const q=i.heights.filter(be=>be.toastId!==i.toast.id);r("update:heights",q)}}),Pn(()=>{i.toast.delete&&X()}),(q,be)=>(x(),j("li",{"aria-live":q.toast.important?"assertive":"polite","aria-atomic":"",role:"status",tabindex:"0",ref_key:"toastRef",ref:h,"data-sonner-toast":"",class:ut(A(y)),"data-styled":!he.value,"data-mounted":s.value,"data-promise":!!q.toast.promise,"data-removed":o.value,"data-visible":m.value,"data-y-position":ge.value,"data-x-position":le.value,"data-index":i.index,"data-front":p.value,"data-swiping":a.value,"data-type":c.value!=="loading"&&c.value?c.value:g.value,"data-invert":Fe.value,"data-swipe-out":l.value,"data-expanded":!!(i.expanded||i.expandByDefault&&s.value),style:xr({"--index":i.index,"--toasts-before":i.index,"--z-index":q.toasts.length-i.index,"--offset":`${o.value?u.value:I.value}px`,"--initial-height":i.expandByDefault?"auto":`${d.value}px`,...A(w)}),onPointerdown:k,onPointerup:D,onPointermove:U},[i.closeButton&&!he.value?(x(),j("button",{key:0,"aria-label":"Close toast","data-close-button":"","data-disabled":J.value,onClick:F},[Q(gme)],8,yme)):pe("",!0),g.value||q.toast.icon||q.toast.promise?(x(),j("div",vme,[typeof q.toast.promise=="function"||g.value==="loading"?(x(),de(Bpe,{key:0,visible:c.value==="loading"||g.value==="loading"},null,8,["visible"])):pe("",!0),ee.value==="success"?(x(),de(zpe,{key:1})):ee.value==="info"?(x(),de(Qpe,{key:2})):ee.value==="warning"?(x(),de(rme,{key:3})):ee.value==="error"?(x(),de(cme,{key:4})):pe("",!0)])):pe("",!0),ie("div",Eme,[ie("div",_me,[typeof q.toast.title=="string"?(x(),j(Ne,{key:0},[Ie(Be(q.toast.title),1)],64)):q.toast.title===void 0||q.toast.title===null?(x(),j(Ne,{key:1},[Ie(Be(C.value),1)],64)):he.value?(x(),de(Ei(q.toast.title),{key:2,onCloseToast:be[0]||(be[0]=()=>{var Ce;X(),(Ce=q.toast.cancel)!=null&&Ce.onClick&&q.toast.cancel.onClick()})},null,32)):pe("",!0)]),q.toast.description?(x(),j("div",{key:0,"data-description":"",class:ut(q.descriptionClass+A(v))},Be(q.toast.description),3)):pe("",!0)]),q.toast.cancel?(x(),j("button",{key:2,"data-button":"","data-cancel":"",onClick:be[1]||(be[1]=()=>{var Ce;X(),(Ce=q.toast.cancel)!=null&&Ce.onClick&&q.toast.cancel.onClick()})},Be(q.toast.cancel.label),1)):pe("",!0),q.toast.action?(x(),j("button",{key:3,"data-button":"",onClick:be[2]||(be[2]=()=>{var Ce;X(),(Ce=q.toast.action)==null||Ce.onClick()})},Be(q.toast.action.label),1)):pe("",!0)],46,bme))}}),Ame=["aria-label"],Cme=["dir","data-theme","data-rich-colors","data-y-position","data-x-position"],Nme=3,VA="32px",Ome=4e3,Dme=356,zA=14,Ime=typeof window<"u"&&typeof document<"u",Rme=Se({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{default:Ome},gap:{default:zA},visibleToasts:{default:Nme},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},className:{default:""},style:{default:()=>({})},offset:{default:VA},dir:{default:"auto"}},setup(e){const t=e,n=Ec(),r=ce([]),i=ce([]),s=ce(!1),o=ce(!1),a=ce(t.theme!=="system"?t.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),l=ae(()=>t.position.split("-")),c=ce(null),u=t.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function d(h){r.value=r.value.filter(({id:p})=>p!==h.id)}function f(){if(typeof window>"u")return"ltr";const h=document.documentElement.getAttribute("dir");return h==="auto"||!h?window.getComputedStyle(document.documentElement).direction:h}return Mt(()=>{const h=ci.subscribe(p=>{if(p.dismiss){r.value=r.value.map(m=>m.id===p.id?{...m,delete:!0}:m);return}Qn(()=>{const m=r.value.findIndex(g=>g.id===p.id);m!==-1?r.value.splice(m,1,p):r.value=[p,...r.value]})});An(()=>{h()})}),dt(()=>t.theme,h=>{if(h!=="system"){a.value=h;return}h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?a.value="dark":a.value="light"),!(typeof window>"u")&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:p})=>{p?a.value="dark":a.value="light"})}),Pn(()=>{r.value.length<=1&&(s.value=!1)}),Pn(h=>{function p(m){var g,b;t.hotkey.every(y=>m[y]||m.code===y)&&(s.value=!0,(g=c.value)==null||g.focus()),m.code==="Escape"&&(document.activeElement===c.value||(b=c.value)!=null&&b.contains(document.activeElement))&&(s.value=!1)}Ime&&(document.addEventListener("keydown",p),h(()=>{document.removeEventListener("keydown",p)}))}),(h,p)=>{var m;return x(),j("section",{"aria-label":`Notifications ${A(u)}`,tabIndex:-1},[ie("ol",{ref_key:"listRef",ref:c,"data-sonner-toaster":"",dir:h.dir==="auto"?f():h.dir,tabIndex:-1,"data-theme":h.theme,"data-rich-colors":h.richColors,"data-y-position":l.value[0],"data-x-position":l.value[1],style:xr({"--front-toast-height":`${(m=i.value[0])==null?void 0:m.height}px`,"--offset":typeof h.offset=="number"?`${h.offset}px`:h.offset||VA,"--width":`${Dme}px`,"--gap":`${zA}px`,...A(n).style}),onMouseenter:p[1]||(p[1]=g=>s.value=!0),onMousemove:p[2]||(p[2]=g=>s.value=!0),onMouseleave:p[3]||(p[3]=()=>{o.value||(s.value=!1)}),onPointerdown:p[4]||(p[4]=g=>o.value=!1),onPointerup:p[5]||(p[5]=g=>o.value=!1)},[(x(!0),j(Ne,null,pt(r.value,(g,b)=>{var y,v,w,T;return x(),de(xme,{key:g.id,index:b,toast:g,duration:((y=h.toastOptions)==null?void 0:y.duration)??h.duration,className:(v=h.toastOptions)==null?void 0:v.className,descriptionClassName:(w=h.toastOptions)==null?void 0:w.descriptionClassName,invert:h.invert,visibleToasts:h.visibleToasts,closeButton:h.closeButton,interacting:o.value,position:h.position,style:xr((T=h.toastOptions)==null?void 0:T.style),toasts:r.value,expandByDefault:h.expand,gap:h.gap,expanded:s.value,heights:i.value,"onUpdate:heights":p[0]||(p[0]=_=>i.value=_),onRemoveToast:d},null,8,["index","toast","duration","className","descriptionClassName","invert","visibleToasts","closeButton","interacting","position","style","toasts","expandByDefault","gap","expanded","heights"])}),128))],44,Cme)],8,Ame)}}}),Y3={toast:()=>null};function Pme(e){Y3.toast=e}function X3(){return{initializeToasts:Pme,toast:(e,t="info",n={timeout:3e3})=>{Y3.toast(e,t,n)}}}const Lme=Se({__name:"ScalarToasts",setup(e){const t=ce(!1);Mt(()=>t.value=!0);const n={success:jh.success,error:jh.error,warn:jh.warning,info:jh},{initializeToasts:r}=X3();return r((i,s="info",o={})=>{(n[s]||n.info)(i,{duration:o.timeout||3e3})}),(i,s)=>t.value?(x(),de(A(Rme),{key:0,toastOptions:{className:"toaster"}})):pe("",!0)}}),Yc=()=>{const{toast:e}=X3();return{copyToClipboard:t=>{navigator.clipboard.writeText(t).then(()=>{e("Copied to the clipboard","info")})}}},Js=ce(!1);function Mme(e){var t;const n=()=>{var s,o;const a=typeof window<"u"?(s=window.localStorage)==null?void 0:s.getItem("isDark"):null;return typeof a=="string"?!!JSON.parse(a):!!(typeof window<"u"&&(o=window==null?void 0:window.matchMedia("(prefers-color-scheme: dark)"))!=null&&o.matches)},r=()=>{var s;Js.value=!Js.value,typeof window<"u"&&((s=window==null?void 0:window.localStorage)==null||s.setItem("isDark",JSON.stringify(Js.value)))};function i(s){var o;Js.value=s,typeof window<"u"&&((o=window==null?void 0:window.localStorage)==null||o.setItem("isDark",JSON.stringify(Js.value)))}return Js.value=(typeof window>"u"?null:JSON.parse(((t=window.localStorage)==null?void 0:t.getItem("isDark"))||"null"))??e??n(),dt(Js,s=>{typeof document>"u"||(document.body.classList.toggle("dark-mode",s),document.body.classList.toggle("light-mode",!s))},{immediate:!0}),{isDark:Js,toggleDarkMode:r,setDarkMode:i}}const KA="https://api.scalar.com/request-proxy",qh="https://proxy.scalar.com",$me="http://localhost:5051";function Fme(e){dt(()=>e,()=>{var t;e.proxy===KA?(console.warn(`[DEPRECATED] Warning: configuration.proxy points to our old proxy (${KA}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${qh}) instead.`),e.proxy=qh,console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${qh}). Read more: https://github.com/scalar/scalar`)):(t=e.proxy)!=null&&t.length&&e.proxy!==qh&&e.proxy!==$me&&(console.warn(`[DEPRECATED] Warning: configuration.proxy points to a custom proxy (${e==null?void 0:e.proxy}).`),console.warn("[DEPRECATED] Action Required: You need to use our new proxy (written in Go). Read more: https://github.com/scalar/scalar/tree/main/examples/proxy-server"))},{immediate:!0})}const Bme={node:["unirest"]},tv=ce({...Bme});function Ume(e,t){return e.flatMap(n=>{var r;return Array.isArray(t.value)?(n.clients=n.clients.filter(i=>!t.value.includes(i.key)),[n]):t.value[n.key]===!0?[]:(Array.isArray(t.value[n.key])&&(n.clients=n.clients.filter(i=>!t.value[n.key].includes(i.key))),(r=n==null?void 0:n.clients)!=null&&r.length?[n]:[])})}const Hme=ae(()=>{var e;const t=Oj();return(e=t.find(n=>n.key==="node"))==null||e.clients.unshift({description:"An HTTP/1.1 client, written from scratch for Node.js.",key:"undici",link:"https://github.com/nodejs/undici",title:"undici"}),Ume(t,tv)});function Rf(){return{availableTargets:Hme,excludedClients:Wd(tv),setExcludedClients:e=>tv.value=e}}const aw=ce(Dc.hash??""),gm=ce(),jme=ce(!1),qme=e=>e.slug?`description/${e.slug}`:"",Q3=e=>{var t;if(!gm.value)return"";const n=new RegExp("^"+((t=gm.value)==null?void 0:t.basePath)+"/?");return decodeURIComponent(e.replace(n,""))},Vme=(e,t)=>{if(!e)return"webhooks";const n=Gm(e),r=encodeURIComponent(n);return`webhook/${t}/${r}`},zme=e=>{if(!e)return"models";const t=Gm(e);return`model/${encodeURIComponent(t)}`},Kme=(e,t)=>`${J3(t)}/${e.httpVerb}${e.path}`,J3=({name:e})=>{const t=Gm(e);return`tag/${encodeURIComponent(t)}`},Wme=(e=aw.value)=>{var t;const n=(t=e.match(/(tag\/[^/]+)/))==null?void 0:t[0],r=e.startsWith("model")?"models":"";return n??r},Gme=()=>{aw.value=gm.value?Q3(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,""))},rr=()=>({hash:aw,getWebhookId:Vme,getModelId:zme,getHeadingId:qme,getOperationId:Kme,getPathRoutingId:Q3,getSectionId:Wme,getTagId:J3,isIntersectionEnabled:jme,pathRouting:gm,updateHash:Gme});function lw(e){return{parameterMap:ae(()=>{var t;const n=((t=e.operation.information)==null?void 0:t.parameters)??[],r={path:[],query:[],header:[],body:[],formData:[]};return e.operation.pathParameters&&e.operation.pathParameters.forEach(i=>{i.in==="path"?r.path.push(i):i.in==="query"?r.query.push(i):i.in==="header"?r.header.push(i):i.in==="body"?r.body.push(i):i.in==="formData"&&r.formData.push(i)}),n&&n.forEach(i=>{i.in==="path"?r.path.push(i):i.in==="query"?r.query.push(i):i.in==="header"?r.header.push(i):i.in==="body"?r.body.push(i):i.in==="formData"&&r.formData.push(i)}),r})}}const Yme=async({url:e,content:t},n)=>{if(e)return cse(e)?await wk(e,n):await wk(e);const r=typeof t=="function"?t():t;if(typeof r=="string")return r;if(typeof r=="object")return Ad(r)};function Xme({specConfig:e,proxy:t}){const n=ce(""),r=qn(Gl()),i=ce(null);function s(o){return o?Ape(o).then(a=>{i.value=null,Object.assign(r,{servers:[],...a})}).catch(a=>{i.value=a.toString()}):Object.assign(r,Gl())}return dt(()=>$b(e),async o=>{var a;if(o){const l=(a=await Yme(o,$b(t)))==null?void 0:a.trim();typeof l=="string"&&(n.value=l)}},{immediate:!0,deep:!0}),dt(n,()=>{s(n.value)}),{rawSpec:n,parsedSpec:r,specErrors:i}}function cw(e){return{responses:ae(()=>{if(!e.information)return[];const{responses:t}=e.information,n=[];return t&&Object.keys(t).forEach(r=>{n.push({name:r,description:t[r].description})}),n})}}const{getHeadingId:WA,getModelId:GA,getOperationId:YA,getSectionId:Qme,getTagId:Z3,getWebhookId:Nb,hash:nv}=rr(),On=ce(void 0);function Jme(e){return On.value=e}const eM=ce(!1),bm=qn(Dc["useSidebarContent-collapsedSidebarItems"]??{});function Zme(e){bm[e]=!bm[e]}function Ob(e,t){bm[e]=t}const ym=ce([]),ege=async e=>{const t=await sm(e),n=QE(t);return t.filter(r=>r.depth===n||r.depth===n+1)},tM=ae(()=>{var e,t,n,r,i,s,o,a,l,c;const{state:u}=lg(),d={},{openApi:{globalSecurity:f}}=TE(),h=[];let p=null;ym.value.forEach(w=>{var T;w.depth===QE(ym.value)?(p={id:WA(w),title:w.value,show:!u.showApiClient,children:[]},h.push(p)):p&&((T=p.children)==null||T.push({id:WA(w),title:w.value,show:!u.showApiClient}))});const m=(t=(e=On.value)==null?void 0:e.tags)==null?void 0:t[0],g=m&&(w=>(w==null?void 0:w.length)!==1||w[0].name!=="default"||w[0].description!=="")((n=On.value)==null?void 0:n.tags)?(i=(r=On.value)==null?void 0:r.tags)==null?void 0:i.filter(w=>{var T;return((T=w.operations)==null?void 0:T.length)>0}).map(w=>{var T;return{id:Z3(w),title:w.name,displayTitle:w["x-displayName"]??w.name,show:!0,children:(T=w.operations)==null?void 0:T.map(_=>{var S;const I=YA(_,w),R=_.name??_.path;return d[I]=R,{id:I,title:R,httpVerb:_.httpVerb,deprecated:((S=_.information)==null?void 0:S.deprecated)??!1,show:!0,select:()=>{u.showApiClient&&I1(_,f)}}})}}):(s=m==null?void 0:m.operations)==null?void 0:s.map(w=>{var T;const _=YA(w,m),S=w.name??w.path;return d[_]=S,{id:_,title:S,httpVerb:w.httpVerb,deprecated:((T=w.information)==null?void 0:T.deprecated)??!1,show:!0,select:()=>{u.showApiClient&&I1(w,f)}}}),b=QP(On.value)&&!eM.value?[{id:GA(),title:"Models",show:!u.showApiClient,children:Object.keys(Ki(On.value)??{}).map(w=>{var T;const _=GA(w);return d[_]=w,{id:_,title:((T=Ki(On.value))==null?void 0:T[w]).title??w,show:!u.showApiClient}})}]:[],y=(o=On.value)!=null&&o["x-tagGroups"]?(l=(a=On.value)==null?void 0:a["x-tagGroups"])==null?void 0:l.map(w=>{const T=[];return w.tags.map(_=>{if(_==="models"&&b.length>0)T.push(b[0]);else{const S=g==null?void 0:g.find(I=>I.title===_);S&&T.push(S)}}),{id:w.name,title:w.name,children:T,show:!0,isGroup:!0}}):void 0,v=lse(On.value)?[{id:Nb(),title:"Webhook",show:!u.showApiClient,children:Object.keys(((c=On.value)==null?void 0:c.webhooks)??{}).map(w=>{var T,_;const S=Nb(w);return d[S]=w,Object.keys(((_=(T=On.value)==null?void 0:T.webhooks)==null?void 0:_[w])??{}).map(I=>{var R,O,K;return{id:Nb(w,I),title:(K=(O=(R=On.value)==null?void 0:R.webhooks)==null?void 0:O[w][I])==null?void 0:K.name,httpVerb:I,show:!u.showApiClient}})}).flat()}]:[];return{entries:[...h,...y??g??[],...y?[]:v,...y?[]:b],titles:d}}),tge=ce(!1),nge=ae(()=>{var e,t;return((t=(e=tM.value)==null?void 0:e.titles)==null?void 0:t[nv.value])??""});function Ai(e){return e!=null&&e.parsedSpec&&(On.value=e.parsedSpec,dt(()=>{var t,n;return(n=(t=On.value)==null?void 0:t.tags)==null?void 0:n.length},()=>{var t,n;if(nv.value){const r=Qme(nv.value);r&&Ob(r,!0)}else{const r=(n=(t=On.value)==null?void 0:t.tags)==null?void 0:n[0];r&&Ob(Z3(r),!0)}}),dt(()=>{var t,n;return(n=(t=On.value)==null?void 0:t.info)==null?void 0:n.description},async()=>{var t,n;const r=(n=(t=On.value)==null?void 0:t.info)==null?void 0:n.description;return r?ym.value=await ege(r):ym.value=[]})),{breadcrumb:nge,items:tM,isSidebarOpen:tge,collapsedSidebarItems:bm,toggleCollapsedSidebarItem:Zme,setCollapsedSidebarItem:Ob,hideModels:eM,setParsedSpec:Jme}}const rge=Se({__name:"SidebarHttpBadge",props:{active:{type:Boolean},method:{}},setup(e){return(t,n)=>(x(),de(A(rl),{class:ut(["sidebar-heading-type",{"sidebar-heading-type-active":t.active}]),method:t.method,property:"--method-color",short:""},null,8,["class","method"]))}}),nM=je(rge,[["__scopeId","data-v-9e6d2bc7"]]),ige=["id"],sge={key:0,class:"sidebar-heading-chevron"},oge=["href"],age={class:"sidebar-heading-link-title"},lge={key:1,class:"sidebar-heading-link-method"},cge={key:1,class:"action-menu"},uge=Se({__name:"SidebarElement",props:{id:{},item:{},isActive:{type:Boolean},hasChildren:{type:Boolean},open:{type:Boolean}},emits:["toggleOpen"],setup(e,{emit:t}){const n=e,r=t,{hash:i,isIntersectionEnabled:s,pathRouting:o}=rr(),a=async()=>{var u,d;n.hasChildren&&r("toggleOpen"),(d=(u=n.item)==null?void 0:u.select)==null||d.call(u),n.open&&(s.value=!1,await Ls(100),s.value=!0)},l=()=>{if(o.value)return o.value.basePath+"/"+n.item.id;{const u=new URL(window.location.href);return u.hash=n.item.id,`${u.pathname}${u.search}${u.hash}`}},c=async u=>{var d,f;if(o.value){u.preventDefault(),n.hasChildren&&r("toggleOpen"),(f=(d=n.item)==null?void 0:d.select)==null||f.call(d),r("toggleOpen"),s.value=!1,i.value=n.item.id;const h=new URL(window.location.href);h.pathname=o.value.basePath+"/"+n.item.id,window.history.pushState({},"",h),mm(n.item.id),await Ls(100),s.value=!0}};return(u,d)=>{var f,h;return x(),j("li",{id:u.id,class:"sidebar-group-item"},[ie("div",{class:ut(["sidebar-heading",{"sidebar-group-item__folder":u.hasChildren,active_page:u.isActive,deprecated:u.item.deprecated??!1}]),onClick:a},[u.hasChildren?(x(),j("p",sge,[Q(A(yf),{class:"toggle-nested-icon",icon:u.open?"ChevronDown":"ChevronRight",label:"Toggle group",size:"xs",onClick:ef(a,["stop"])},null,8,["icon"]),Ie("   ")])):pe("",!0),ie("a",{class:"sidebar-heading-link",href:l(),onClick:c},[(h=(f=u.item)==null?void 0:f.icon)!=null&&h.src?(x(),de(A(on),{key:0,class:"sidebar-icon",icon:u.item.icon.src},null,8,["icon"])):pe("",!0),ie("p",age,Be(u.item.title),1),u.item.httpVerb&&!u.hasChildren?(x(),j("p",lge,[Ie("   "),Q(nM,{active:u.isActive,method:u.item.httpVerb},null,8,["active","method"])])):pe("",!0)],8,oge)],2),u.open?Ue(u.$slots,"default",{key:0},void 0,!0):pe("",!0),u.$slots["action-menu"]?(x(),j("div",cge,[Ue(u.$slots,"action-menu",{},void 0,!0)])):pe("",!0)],8,ige)}}}),Vh=je(uge,[["__scopeId","data-v-4ed1078c"]]),dge=Se({__name:"SidebarGroup",props:{level:{}},setup(e){return(t,n)=>(x(),j("ul",{class:"sidebar-group sidebar-indent-nested",style:xr({"--scalar-sidebar-level":t.level})},[Ue(t.$slots,"default",{},void 0,!0)],4))}}),Db=je(dge,[["__scopeId","data-v-39c84840"]]),fge={class:"sidebar"},hge={class:"sidebar-group-title"},pge=-160,mge=Se({__name:"Sidebar",props:{parsedSpec:{}},setup(e){const t=e,{hash:n,isIntersectionEnabled:r}=rr(),{items:i,toggleCollapsedSidebarItem:s,collapsedSidebarItems:o}=Ai({parsedSpec:t.parsedSpec}),a=ce(null),l=ce(!0);dt(n,u=>{!r.value||l.value||typeof window>"u"||c(u)});const c=u=>{var d,f,h,p;const m=document.getElementById(`sidebar-${u}`);if(!m||!a.value)return;let g=pge;m.getAttribute("data-sidebar-type")==="heading"?g+=m.offsetTop+((d=m.getElementsByClassName("sidebar-heading"))==null?void 0:d[0]).offsetHeight:g+=m.offsetTop+(((f=m.parentElement)==null?void 0:f.offsetTop)??0)+(((p=(h=m.parentElement)==null?void 0:h.parentElement)==null?void 0:p.offsetTop)??0),a.value.scrollTo({top:g,behavior:"smooth"})};return Mt(()=>{setTimeout(()=>c(n.value),500),l.value=!1}),(u,d)=>(x(),j("div",fge,[Ue(u.$slots,"sidebar-start",{},void 0,!0),ie("div",{ref_key:"scrollerEl",ref:a,class:"sidebar-pages custom-scroll custom-scroll-self-contain-overflow"},[Q(Db,{level:0},{default:Y(()=>[(x(!0),j(Ne,null,pt(A(i).entries,f=>(x(),j(Ne,{key:f.id},[f.isGroup?(x(),j(Ne,{key:0},[ie("li",hge,Be(f.displayTitle??f.title),1),(x(!0),j(Ne,null,pt(f.children,h=>(x(),de(Vh,{key:h.id,id:`sidebar-${h.id}`,"data-sidebar-type":"heading",hasChildren:h.children&&h.children.length>0,isActive:A(n)===h.id,item:{id:h.id,title:h.displayTitle??h.title,select:h.select,httpVerb:h.httpVerb,deprecated:h.deprecated??!1},open:A(o)[h.id]??!1,onToggleOpen:async()=>{l.value=!0,A(s)(h.id),await A(Ls)(100),l.value=!1}},{default:Y(()=>{var p;return[h.children&&((p=h.children)==null?void 0:p.length)>0?(x(),de(Db,{key:0,level:1},{default:Y(()=>[(x(!0),j(Ne,null,pt(h.children,m=>(x(),j(Ne,{key:m.id},[f.show?(x(),de(Vh,{key:0,id:`sidebar-${m.id}`,isActive:A(n)===m.id,item:{id:m.id,title:m.displayTitle??m.title,select:m.select,httpVerb:m.httpVerb,deprecated:m.deprecated??!1}},null,8,["id","isActive","item"])):pe("",!0)],64))),128))]),_:2},1024)):pe("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"]))),128))],64)):(x(),j(Ne,{key:1},[f.show?(x(),de(Vh,{key:0,id:`sidebar-${f.id}`,"data-sidebar-type":"heading",hasChildren:f.children&&f.children.length>0,isActive:A(n)===f.id,item:{id:f.id,title:f.displayTitle??f.title,select:f.select,httpVerb:f.httpVerb,deprecated:f.deprecated??!1},open:A(o)[f.id]??!1,onToggleOpen:async()=>{l.value=!0,A(s)(f.id),await A(Ls)(100),l.value=!1}},{default:Y(()=>{var h;return[f.children&&((h=f.children)==null?void 0:h.length)>0?(x(),de(Db,{key:0,level:1},{default:Y(()=>[(x(!0),j(Ne,null,pt(f.children,p=>(x(),j(Ne,{key:p.id},[f.show?(x(),de(Vh,{key:0,id:`sidebar-${p.id}`,isActive:A(n)===p.id,item:{id:p.id,title:p.displayTitle??p.title,select:p.select,httpVerb:p.httpVerb,deprecated:p.deprecated??!1}},null,8,["id","isActive","item"])):pe("",!0)],64))),128))]),_:2},1024)):pe("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])):pe("",!0)],64))],64))),128))]),_:1})],512),Ue(u.$slots,"sidebar-end",{},void 0,!0)]))}}),rM=je(mge,[["__scopeId","data-v-e68ba74a"]]),gge={key:0,class:"api-client-drawer"},bge={class:"api-client-container"},yge={class:"scalar-api-client-height"},vge={class:"scalar-api-client-states"},Ege={class:"t-doc__sidebar"},_ge=Se({__name:"ApiClientModal",props:{parsedSpec:{},overloadShow:{type:Boolean},proxyUrl:{},theme:{}},emits:["toggleDarkMode"],setup(e){const t=MC(()=>Promise.resolve().then(()=>require("./index-BEcGroQA-BQL8DS1H.cjs")).then(o=>o.ApiClient)),{hideApiClient:n,state:r}=lg(),i=Hm("(max-width: 1000px)"),s=ce(!1);return(o,a)=>(x(),j(Ne,null,[A(r).showApiClient||o.overloadShow?(x(),j("div",gge,[ie("div",bge,[Ue(o.$slots,"header",{},void 0,!0),ie("div",yge,[Q(A(t),{proxyUrl:o.proxyUrl,showSideBar:s.value,theme:o.theme??"none",withDefaultFonts:!1,onEscapeKeyPress:A(n),onToggleSidebar:a[2]||(a[2]=l=>s.value=!s.value)},{"address-bar-controls":Y(()=>[ie("div",vge,[ie("button",{class:"scalar-api-client-states-button scalar-api-client-states-button__endpoints",type:"button",onClick:a[0]||(a[0]=l=>s.value=!s.value)},[Q(A(on),{icon:s.value?"SideBarClosed":"SideBarOpen",size:"sm"},null,8,["icon"])]),ie("button",{class:"scalar-api-client-states-button",type:"button",onClick:a[1]||(a[1]=(...l)=>A(n)&&A(n)(...l))},[Q(A(on),{icon:"Close",size:"sm"})])])]),sidebar:Y(()=>[ie("div",Ege,[Ya(Q(A(rM),{parsedSpec:o.parsedSpec},{"sidebar-start":Y(()=>[Ue(o.$slots,"sidebar-start",{},void 0,!0)]),_:3},8,["parsedSpec"]),[[wc,!A(i)]])])]),_:3},8,["proxyUrl","showSideBar","theme","onEscapeKeyPress"])])])])):pe("",!0),A(r).showApiClient?(x(),j("div",{key:1,class:"api-client-drawer-exit",onClick:a[3]||(a[3]=(...l)=>A(n)&&A(n)(...l))})):pe("",!0)],64))}}),wge=je(_ge,[["__scopeId","data-v-206ad1a1"]]),iM=()=>({targetKey:"shell",clientKey:"curl"}),mc=qn(iM());function Tge(){JP(mc,iM())}function sM(e){var t;const{availableTargets:n}=Rf();return((t=n.value.find(r=>r.key===e.targetKey))==null?void 0:t.title)??e.targetKey}function oM(e){var t,n;const{availableTargets:r}=Rf();return((n=(t=r.value.find(i=>i.key===e.targetKey))==null?void 0:t.clients.find(i=>i.key===e.clientKey))==null?void 0:n.title)??e.clientKey}const Sge=e=>{Object.assign(mc,{...mc,...e})},kge=ae(()=>sM(mc)),xge=ae(()=>oM(mc)),uw=()=>({httpClient:Wd(mc),resetState:Tge,setHttpClient:Sge,httpTargetTitle:kge,httpClientTitle:xge,getClientTitle:oM,getTargetTitle:sM}),Age={key:0},Cge={class:"authentication-header"},Nge={class:"selector"},Oge={key:0,class:"authentication-content"},Dge=Se({__name:"Authentication",props:{parsedSpec:{}},setup(e){const t=e,{authentication:n,setAuthentication:r}=Ic(),i=ae(()=>{var s,o,a;if(!n.preferredSecurityScheme)return!1;const l=(a=(o=(s=t.parsedSpec)==null?void 0:s.components)==null?void 0:o.securitySchemes)==null?void 0:a[n.preferredSecurityScheme];return!!l&&"type"in l&&!!l.type});return dt(()=>{var s,o;return(o=(s=t.parsedSpec)==null?void 0:s.components)==null?void 0:o.securitySchemes},()=>{var s,o;r({securitySchemes:(o=(s=t.parsedSpec)==null?void 0:s.components)==null?void 0:o.securitySchemes})},{deep:!0,immediate:!0}),Uo(async()=>{const s=vc();await Ls(1),s.payload.data["useGlobalStore-authentication"]=n}),(s,o)=>{var a,l,c,u,d;return A(ase)(s.parsedSpec)?(x(),j("div",Age,[ie("div",Cge,[ie("div",Nge,[Q(A(GP),{value:(l=(a=s.parsedSpec)==null?void 0:a.components)==null?void 0:l.securitySchemes},null,8,["value"])])]),i.value?(x(),j("div",Oge,[A(n).preferredSecurityScheme?(x(),de(A(WP),{key:0,value:(d=(u=(c=s.parsedSpec)==null?void 0:c.components)==null?void 0:u.securitySchemes)==null?void 0:d[A(n).preferredSecurityScheme]},null,8,["value"])):pe("",!0)])):pe("",!0)])):pe("",!0)}}}),Ige=je(Dge,[["__scopeId","data-v-3bb0413b"]]),Rge=["innerHTML"],Pge=Se({__name:"MarkdownRenderer",props:{value:{},withImages:{type:Boolean,default:!1}},setup(e){const t=e,n=ce(""),r=t.withImages?[]:["img","picture"],i={...rd,tagNames:[...(rd.tagNames||[]).filter(s=>!r.includes(s)),"abbr"],attributes:{...rd.attributes,abbr:["title"]}};return dt(()=>t.value,async()=>{const s=await z2().use(C2).use(zX).use(AQ,{allowDangerousHtml:!0}).use(fG).use(wG,i).use(KV,{detect:!0}).use(Zj,{target:"_blank"}).use(S7).use(hY).process(t.value);n.value=String(s.value)},{immediate:!0}),Uo(async()=>await Ls(1)),(s,o)=>(x(),j("div",{class:"markdown",innerHTML:n.value},null,8,Rge))}}),Fr=je(Pge,[["__scopeId","data-v-ae2b5170"]]),Lge=["title","innerHTML"],Mge=Se({__name:"ServerItem",props:{value:{},variables:{}},setup(e){const t=e,{copyToClipboard:n}=Yc(),r=ae(()=>{var s;const o=(((s=t.value)==null?void 0:s.url)??"").replace(/(<([^>]+)>)/gi,"");return XP(o,a=>{var l;const c=(l=t.variables)==null?void 0:l.find(u=>u.name===a);return`<span class="base-url-variable">${((c==null?void 0:c.value)??"")!==""?c==null?void 0:c.value:`{${a}}`}</span>`})}),i=ae(()=>r.value.replace(/(<([^>]+)>)/gi,""));return(s,o)=>s.value?(x(),j("a",{key:0,class:"base-url",title:s.value.description,onClick:o[0]||(o[0]=a=>A(n)(i.value)),innerHTML:r.value},null,8,Lge)):pe("",!0)}}),$ge=je(Mge,[["__scopeId","data-v-0eae9170"]]),Fge={key:0},Bge=["for"],Uge=["id","value","onInput"],Hge=["value"],jge={class:"input-value"},qge=["id","value","onInput"],Vge=Se({__name:"ServerVariables",props:{value:{}},setup(e){const{server:t,setServer:n}=vf(),r=(s,o)=>{const a=o.target.value,l=[...t.variables],c=l.findIndex(u=>u.name===s);l[c].value=a,n({variables:l})},i=s=>{const o=t.variables.findIndex(a=>a.name===s);return t.variables[o].value??""};return(s,o)=>s.value?(x(),j("div",Fge,[(x(!0),j(Ne,null,pt(s.value,a=>(x(),j("div",{key:a.name,class:"input"},[ie("label",{for:`variable-${a.name}`},[ie("code",null,Be(a.name),1)],8,Bge),a.enum?(x(),j(Ne,{key:0},[ie("select",{id:`variable-${a.name}`,value:i(a.name),onInput:l=>r(a.name,l)},[(x(!0),j(Ne,null,pt(a.enum,l=>(x(),j("option",{key:l,value:l},Be(l),9,Hge))),128))],40,Uge),ie("div",jge,Be(a.default),1)],64)):(x(),j("input",{key:1,id:`variable-${a.name}`,autocomplete:"off",placeholder:"value",spellcheck:"false",type:"text",value:i(a.name),onInput:l=>r(a.name,l)},null,40,qge))]))),128))])):pe("",!0)}}),zge=je(Vge,[["__scopeId","data-v-a812e319"]]),Kge=e=>(er("data-v-899af270"),e=e(),tr(),e),Wge={key:0},Gge=Kge(()=>ie("span",{class:"scalar-card-serverlist-title"},"Base URL",-1)),Yge={class:"scalar-card-serverlist"},Xge={class:"scalar-card-serverlist-container"},Qge={class:"server-item"},Jge={class:"server-selector"},Zge=["value"],e0e=["value"],t0e={key:0,muted:""},n0e={class:"description"},r0e=Se({__name:"BaseUrl",setup(e){const{server:t,setServer:n}=vf(),r=ce(0);return dt([r,()=>t.servers],()=>{var i,s,o;if(!t.servers.length)return;const a=((i=t.servers[r.value])==null?void 0:i.variables)??{},l=a?Object.keys(a).map(c=>{var u;return{name:c,value:((u=a[c].default)==null?void 0:u.toString())??""}}):[];SP((s=t.servers[r.value])==null?void 0:s.url).filter(c=>!a[c]).forEach(c=>{l.push({name:c,value:""})}),n({selectedServer:r.value,description:(o=t.servers[r.value])==null?void 0:o.description,variables:l})},{immediate:!0,deep:!0}),(i,s)=>A(t).servers.length>0?(x(),j("div",Wge,[Gge,ie("div",Yge,[ie("div",Xge,[ie("div",Qge,[ie("div",Jge,[A(t).servers.length>1?(x(),j("select",{key:0,value:r.value,onInput:s[0]||(s[0]=o=>r.value=parseInt(o.target.value,10))},[(x(!0),j(Ne,null,pt(A(t).servers,(o,a)=>(x(),j("option",{key:a,value:a},Be(o.url),9,e0e))),128))],40,Zge)):pe("",!0),Q($ge,{value:A(t).servers[r.value],variables:A(t).variables},null,8,["value","variables"]),A(t).servers.length>1?(x(),de(A(on),{key:1,icon:"ChevronDown"})):pe("",!0)])]),Q(zge,{value:A(t).variables},null,8,["value"])])]),A(t).description?(x(),j("div",t0e,[ie("div",n0e,[Q(A(Fr),{value:A(t).description},null,8,["value"])])])):pe("",!0)])):pe("",!0)}}),i0e=je(r0e,[["__scopeId","data-v-899af270"]]),aM=e=>(er("data-v-33a6f59a"),e=e(),tr(),e),s0e=["onClick"],o0e=["value"],a0e=["label"],l0e=["value"],c0e={class:"client-libraries-icon__more"},u0e={key:1,class:"client-libraries-icon",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg"},d0e=aM(()=>ie("g",{fill:"currentColor","fill-rule":"nonzero"},[ie("path",{d:"M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0"})],-1)),f0e=[d0e],h0e=aM(()=>ie("span",null,"More",-1)),p0e=Se({__name:"ClientSelector",setup(e){const{httpClient:t,setHttpClient:n,getClientTitle:r,getTargetTitle:i}=uw(),{availableTargets:s}=Rf(),o=ce(),a=[{targetKey:"shell",clientKey:"curl"},{targetKey:"ruby",clientKey:"native"},{targetKey:"node",clientKey:"undici"},{targetKey:"php",clientKey:"guzzle"},{targetKey:"python",clientKey:"python3"}].filter(d=>s.value.find(f=>f.key===d.targetKey&&f.clients.find(h=>h.key===d.clientKey))),l=d=>`programming-language-${d}`,c=d=>d.targetKey===t.targetKey&&d.clientKey===t.clientKey,u=d=>a.some(f=>f.targetKey===d.targetKey&&f.clientKey===d.clientKey);return(d,f)=>(x(),j("div",{ref_key:"containerRef",ref:o,class:"client-libraries-content"},[(x(!0),j(Ne,null,pt(A(a),h=>(x(),j("div",{key:h.clientKey,class:ut(["client-libraries rendered-code-sdks",{"client-libraries__active":c(h)}]),onClick:()=>A(n)(h)},[ie("div",{class:ut(`client-libraries-icon__${h.targetKey}`)},[Q(A(on),{class:"client-libraries-icon",icon:l(h.targetKey)},null,8,["icon"])],2),ie("span",null,Be(A(i)(h)),1)],10,s0e))),128)),ie("div",{class:ut(["client-libraries client-libraries__select",{"client-libraries__active":A(t)&&!u(A(t))}])},[ie("select",{class:"language-select",value:JSON.stringify(A(t)),onInput:f[0]||(f[0]=h=>A(n)(JSON.parse(h.target.value)))},[(x(!0),j(Ne,null,pt(A(s),h=>(x(),j("optgroup",{key:h.key,label:h.title},[(x(!0),j(Ne,null,pt(h.clients,p=>(x(),j("option",{key:p.key,value:JSON.stringify({targetKey:h.key,clientKey:p.key})},Be(A(r)({targetKey:h.key,clientKey:p.key})),9,l0e))),128))],8,a0e))),128))],40,o0e),ie("div",c0e,[A(t)&&!u(A(t))?(x(),j("div",{key:0,class:ut(`client-libraries-icon__${A(t).targetKey}`)},[Q(A(on),{class:"client-libraries-icon",icon:l(A(t).targetKey)},null,8,["icon"])],2)):(x(),j("svg",u0e,f0e))]),h0e],2)],512))}}),m0e=je(p0e,[["__scopeId","data-v-33a6f59a"]]),g0e=e=>(er("data-v-a067531c"),e=e(),tr(),e),b0e=g0e(()=>ie("div",{class:"client-libraries-heading"},"Client Libraries",-1)),y0e={class:"selected-client card-footer",muted:""},v0e=Se({__name:"ClientLibraries",setup(e){const{httpTargetTitle:t,httpClientTitle:n}=uw();return(r,i)=>(x(),j("div",null,[b0e,ie("div",null,[Q(m0e)]),ie("div",y0e,Be(A(n))+" "+Be(A(t)),1)]))}}),E0e=je(v0e,[["__scopeId","data-v-a067531c"]]),_0e={},w0e={class:"badge"};function T0e(e,t){return x(),j("div",w0e,[Ue(e.$slots,"default",{},void 0,!0)])}const qd=je(_0e,[["render",T0e],["__scopeId","data-v-190574ac"]]),dw=Se({__name:"IntersectionObserver",props:{id:{},is:{}},emits:["intersecting"],setup(e,{emit:t}){const n=e,r=t,i=ce(),s=a=>{const l=a.offsetHeight;return`${l/2}px 0px ${l/2}px 0px`},o=a=>a.offsetHeight<window.innerHeight?.8:.5;return Mt(()=>{if(i.value){const a={rootMargin:s(i.value),threshold:o(i.value)};Z6(i,([{isIntersecting:l}])=>{l&&n.id&&r("intersecting")},a)}}),(a,l)=>(x(),de(Ei(a.is??"div"),{id:a.id,ref_key:"intersectionObserverRef",ref:i},{default:Y(()=>[Ue(a.$slots,"default")]),_:3},8,["id"]))}}),S0e=Se({__name:"Section",props:{id:{},label:{}},setup(e){const t=e,{getSectionId:n,hash:r,isIntersectionEnabled:i,pathRouting:s}=rr(),{setCollapsedSidebarItem:o}=Ai();function a(){var l;if(!t.label||!i.value)return;const c=new URL(window.location.href),u=t.id??"";s.value?c.pathname=s.value.basePath+"/"+u:c.hash=u,r.value=u,window.history.replaceState({},"",c),(l=t.id)!=null&&l.startsWith("model")&&o(n(t.id),!0)}return(l,c)=>(x(),de(dw,{is:"section",id:l.id,class:"section",onIntersecting:a},{default:Y(()=>[Ue(l.$slots,"default",{},void 0,!0)]),_:3},8,["id"]))}}),Xc=je(S0e,[["__scopeId","data-v-0494f9f3"]]),k0e={class:"section-accordion-button-content"},x0e={key:0,class:"section-accordion-button-actions"},A0e={key:0,class:"section-accordion-description"},C0e={class:"section-accordion-content-card"},N0e=Se({__name:"SectionAccordion",props:{id:{},transparent:{type:Boolean}},setup(e){const t=ce(),n=J6(t);return(r,i)=>(x(),de(dw,{id:r.id,class:"section-wrapper"},{default:Y(()=>[Q(A(Mm),{as:"section",class:ut(["section-accordion",{"section-accordion-transparent":r.transparent}])},{default:Y(({open:s})=>[Q(A($m),{ref_key:"button",ref:t,class:"section-accordion-button"},{default:Y(()=>[ie("div",k0e,[Ue(r.$slots,"title",{},void 0,!0)]),r.$slots.actions?(x(),j("div",x0e,[Ue(r.$slots,"actions",{active:A(n)||s},void 0,!0)])):pe("",!0),Q(A(on),{class:"section-accordion-chevron",icon:s?"ChevronDown":"ChevronRight"},null,8,["icon"])]),_:2},1536),Q(A(Fm),{class:"section-accordion-content"},{default:Y(()=>[r.$slots.description?(x(),j("div",A0e,[Ue(r.$slots,"description",{},void 0,!0)])):pe("",!0),ie("div",C0e,[Ue(r.$slots,"default",{},void 0,!0)])]),_:3})]),_:3},8,["class"])]),_:3},8,["id"]))}}),lM=je(N0e,[["__scopeId","data-v-07cabcb0"]]),O0e={},D0e={class:"section-column"};function I0e(e,t){return x(),j("div",D0e,[Ue(e.$slots,"default",{},void 0,!0)])}const gc=je(O0e,[["render",I0e],["__scopeId","data-v-d64e7382"]]),R0e={},P0e={class:"section-columns"};function L0e(e,t){return x(),j("div",P0e,[Ue(e.$slots,"default",{},void 0,!0)])}const fw=je(R0e,[["render",L0e],["__scopeId","data-v-8b9602bf"]]),M0e={},$0e={class:"section-container"};function F0e(e,t){return x(),j("div",$0e,[Ue(e.$slots,"default",{},void 0,!0)])}const Pf=je(M0e,[["render",F0e],["__scopeId","data-v-34b26958"]]),B0e={class:"section-accordion-wrapper"},U0e={class:"section-accordion-title"},H0e=Se({__name:"SectionContainerAccordion",setup(e){return(t,n)=>(x(),j("div",B0e,[Q(A(Mm),{as:"div",class:"section-accordion",defaultOpen:""},{default:Y(({open:r})=>[Q(A($m),{class:"section-accordion-button"},{default:Y(()=>[Q(A(on),{class:"section-accordion-chevron",icon:r?"ChevronDown":"ChevronRight"},null,8,["icon"]),ie("div",U0e,[Ue(t.$slots,"title",{},void 0,!0)])]),_:2},1024),Q(A(Fm),{class:"section-accordion-content"},{default:Y(()=>[Ue(t.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]))}}),cM=je(H0e,[["__scopeId","data-v-2049975e"]]),j0e=Se({__name:"LoadingSkeleton",props:{lines:{default:1}},setup(e){return(t,n)=>(x(!0),j(Ne,null,pt([...Array(t.lines).keys()],r=>(x(),j("div",{key:r,class:ut(["loading",{"single-line":t.lines===1}])},null,2))),128))}}),uM=je(j0e,[["__scopeId","data-v-c90b2c46"]]),q0e={class:"section-content"},V0e=Se({__name:"SectionContent",props:{loading:{type:Boolean,default:!1}},setup(e){return(t,n)=>(x(),j("div",q0e,[t.loading?(x(),de(uM,{key:1,lines:8})):Ue(t.$slots,"default",{key:0},void 0,!0)]))}}),Qc=je(V0e,[["__scopeId","data-v-9735459e"]]),z0e=Se({__name:"SectionHeader",props:{loading:{type:Boolean,default:!1},tight:{type:Boolean,default:!1},level:{default:1}},setup(e){return(t,n)=>t.loading?(x(),de(uM,{key:0})):(x(),de(Ei(`h${t.level}`),{key:1,class:ut(["section-header",{tight:t.tight}])},{default:Y(()=>[Ue(t.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),Vo=je(z0e,[["__scopeId","data-v-3bd1b9f0"]]),K0e={key:0,class:"introduction-description"},W0e=Se({__name:"Description",props:{value:{}},setup(e){const t=e,n=`components-Content-Introduction-Description-sections${wE(t.value)}`,r=G6(async()=>{if(!t.value)return[];const c=await sm(t.value),u=QE(c);return await Promise.all(Ope(t.value,u).map(async d=>({heading:(await sm(d))[0],content:d})))},Dc[n]??[]),{getHeadingId:i,hash:s,isIntersectionEnabled:o,pathRouting:a}=rr();function l(c=""){if(!o.value)return;const u=new URL(window.location.href);a.value?u.pathname=a.value.basePath+"/"+c:u.hash=c,s.value=c,window.history.replaceState({},"",u)}return Uo(async()=>{const c=vc();await Ls(1),c.payload.data[n]=r.value}),(c,u)=>c.value?(x(),j("div",K0e,[(x(!0),j(Ne,null,pt(A(r),(d,f)=>(x(),j(Ne,{key:f},[d.heading?(x(),de(dw,{key:0,id:A(i)(d.heading),class:"introduction-description-heading",onIntersecting:()=>l(A(i)(d.heading))},{default:Y(()=>[Q(A(Fr),{value:d.content,withImages:""},null,8,["value"])]),_:2},1032,["id","onIntersecting"])):(x(),de(A(Fr),{key:1,value:d.content,withImages:""},null,8,["value"]))],64))),128))])):pe("",!0)}}),G0e=je(W0e,[["__scopeId","data-v-5e475391"]]),Y0e={class:"download"},X0e={class:"download-cta"},Q0e=Se({__name:"DownloadSpec",props:{specTitle:{}},setup(e){const t=e,n=rn(W3),r=()=>{G3.emit({id:"",specTitle:t.specTitle})};return(i,s)=>{var o;return x(),j("div",Y0e,[ie("div",X0e,[(o=A(n))!=null&&o()?pe("",!0):(x(),j("button",{key:0,class:"download-button",type:"button",onClick:r}," Download OpenAPI Spec "))])])}}}),J0e=je(Q0e,[["__scopeId","data-v-810904a4"]]),Z0e={class:"badges"},ebe={class:"sticky-cards"},tbe=Se({__name:"Introduction",props:{info:{},parsedSpec:{}},setup(e){const t=e,n=new f2,r=ae(()=>t.parsedSpec.openapi??t.parsedSpec.swagger??""),i=ae(()=>n.slug(t.info.title??""));return(s,o)=>(x(),de(A(Pf),null,{default:Y(()=>[Q(A(Xc),{class:"introduction-section"},{default:Y(()=>[Q(A(Qc),{loading:!s.info.description&&!s.info.title},{default:Y(()=>[Q(A(fw),null,{default:Y(()=>[Q(A(gc),null,{default:Y(()=>[ie("div",Z0e,[s.info.version?(x(),de(A(qd),{key:0},{default:Y(()=>[Ie(Be(s.info.version),1)]),_:1})):pe("",!0),r.value?(x(),de(A(qd),{key:1},{default:Y(()=>[Ie(" OAS "+Be(r.value),1)]),_:1})):pe("",!0)]),Q(A(Vo),{level:1,loading:!s.info.title,tight:""},{default:Y(()=>[Ie(Be(s.info.title),1)]),_:1},8,["loading"]),Q(J0e,{specTitle:i.value},null,8,["specTitle"]),Q(G0e,{value:s.info.description},null,8,["value"])]),_:1}),s.$slots.aside?(x(),de(A(gc),{key:0},{default:Y(()=>[ie("div",ebe,[Ue(s.$slots,"aside",{},void 0,!0)])]),_:3})):pe("",!0)]),_:3})]),_:3},8,["loading"]),Ue(s.$slots,"after",{},void 0,!0)]),_:3})]),_:3}))}}),nbe=je(tbe,[["__scopeId","data-v-30c2e131"]]),rbe=Symbol(),rv=Mv(rbe),vm=Se({__name:"Lazy",props:{id:{},isLazy:{type:Boolean,default:!0},lazyTimeout:{default:0}},setup(e){const t=e,n=(i=()=>{})=>{typeof window>"u"||("requestIdleCallback"in window?setTimeout(()=>window.requestIdleCallback(i),t.lazyTimeout):setTimeout(()=>Qn(i),t.lazyTimeout??300))},r=ce(!t.isLazy);return t.isLazy?n(()=>{r.value=!0,t.id&&Qn(()=>rv.emit({id:t.id}))}):t.id&&Qn(()=>rv.emit({id:t.id})),(i,s)=>r.value?Ue(i.$slots,"default",{key:0}):pe("",!0)}}),ibe={key:0,class:"screenreader-only"},sbe=Se({__name:"ScreenReader",props:{if:{type:Boolean,default:!0}},setup(e){return(t,n)=>t.$props.if?(x(),j("span",ibe,[Ue(t.$slots,"default",{},void 0,!0)])):Ue(t.$slots,"default",{key:1},void 0,!0)}}),dM=je(sbe,[["__scopeId","data-v-681ebf2c"]]),obe=e=>(er("data-v-d9801d4e"),e=e(),tr(),e),abe={class:"label"},lbe={class:"anchor"},cbe=obe(()=>ie("span",null,"​",-1)),ube=Se({__name:"Anchor",props:{id:{}},setup(e){const{copyToClipboard:t}=Yc(),n=r=>{const i=new URL(window.location.href);return i.hash=r,i.toString()};return(r,i)=>(x(),j("span",abe,[Ue(r.$slots,"default",{},void 0,!0),ie("span",lbe,[cbe,ie("button",{class:"anchor-copy",type:"button",onClick:i[0]||(i[0]=ef(s=>A(t)(n(r.id)),["stop"]))},[Ie(" # "),Q(dM,null,{default:Y(()=>[Ie('Copy link to "'),Ue(r.$slots,"default",{},void 0,!0),Ie('"')]),_:3})])])]))}}),zo=je(ube,[["__scopeId","data-v-d9801d4e"]]),dbe={},fbe={class:"scalar-card"};function hbe(e,t){return x(),j("div",fbe,[Ue(e.$slots,"default",{},void 0,!0)])}const Zg=je(dbe,[["render",hbe],["__scopeId","data-v-dcabb131"]]),pbe=Se({__name:"CardContent",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(e){return(t,n)=>(x(),j("div",{class:ut(["scalar-card-content",{"scalar-card--muted":t.muted,"scalar-card--contrast":t.contrast,"scalar-card--frameless":t.frameless,"scalar-card--transparent":t.transparent,"scalar-card--borderless":t.borderless}])},[Ue(t.$slots,"default",{},void 0,!0)],2))}}),Jc=je(pbe,[["__scopeId","data-v-5312c2e0"]]),mbe={class:"scalar-card-header-slots"},gbe={class:"scalar-card-header-slot scalar-card-header-title"},bbe={class:"scalar-card-header-slot scalar-card-header-actions"},ybe=Se({__name:"CardHeader",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(e){const t=e;return(n,r)=>(x(),de(Jc,Ho(t,{class:"scalar-card-header"}),{default:Y(()=>[ie("div",mbe,[ie("div",gbe,[Ue(n.$slots,"default",{},void 0,!0)]),ie("div",bbe,[Ue(n.$slots,"actions",{},void 0,!0)])])]),_:3},16))}}),e0=je(ybe,[["__scopeId","data-v-bbd0c20a"]]),vbe=Se({__name:"CardFooter",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(e){const t=e;return(n,r)=>(x(),de(Jc,ai(qr(t)),{default:Y(()=>[Ue(n.$slots,"default",{},void 0,!0)]),_:3},16))}}),hw=je(vbe,[["__scopeId","data-v-918ab8d6"]]),Ebe=Se({__name:"CardTabHeader",emits:["change"],setup(e,{emit:t}){const n=t,r=i=>{n("change",i)};return(i,s)=>(x(),de(e0,{class:"scalar-card-header-tabs"},{actions:Y(()=>[Ue(i.$slots,"actions",{},void 0,!0)]),default:Y(()=>[Q(A(MN),{onChange:r},{default:Y(()=>[Q(A($N),{class:"tab-list custom-scroll"},{default:Y(()=>[Ue(i.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3}))}}),_be=je(Ebe,[["__scopeId","data-v-6a91b57c"]]),wbe=Se({__name:"CardTab",setup(e){return(t,n)=>(x(),de(A(FN),{as:"template"},{default:Y(({selected:r})=>[ie("button",{class:ut({tab:!0,"tab-selected":r}),type:"button"},[ie("span",null,[Ue(t.$slots,"default",{},void 0,!0)])],2)]),_:3}))}}),Tbe=je(wbe,[["__scopeId","data-v-f373ecc2"]]),Sbe=["value"],kbe=["label"],xbe=["value"],Abe=["value"],pw=Se({__name:"TextSelect",props:{modelValue:{},options:{}},emits:["update:modelValue"],setup(e){return(t,n)=>(x(),j("div",{class:ut(["text-select",t.options.length===1?"text-select--single-option":""])},[ie("span",null,[Ue(t.$slots,"default")]),ie("select",{value:t.modelValue,onInput:n[0]||(n[0]=r=>t.$emit("update:modelValue",r.target.value))},[(x(!0),j(Ne,null,pt(t.options,r=>(x(),j(Ne,{key:r.value},[r.options?(x(),j("optgroup",{key:0,label:r.label},[(x(!0),j(Ne,null,pt(r.options,i=>(x(),j("option",{key:i.value,value:i.value},Be(i.label),9,xbe))),128))],8,kbe)):(x(),j("option",{key:r.value,value:r.value},Be(r.label),9,Abe))],64))),128))],40,Sbe)],2))}}),Cbe={class:"request-header"},Nbe=Se({__name:"CustomRequestExamples",props:{operation:{},examples:{}},setup(e){const t=e,n=ce(0),r=ae(()=>({C:"c","C#":"csharp",Go:"go",HTML:"html",Java:"java",JavaScript:"javascript",Kotlin:"kotlin","Objective-C":"objc",PowerShell:"powershell",Python:"python",Ruby:"ruby",Shell:"shell",Swift:"swift",TypeScript:"javascript",cURL:"shell"})[t.examples[n.value].lang]??t.examples[n.value].lang),i=ae(()=>t.examples[n.value]);dt(t.examples,()=>{t.examples[n.value]==="undefined"&&(n.value=0)});const{copyToClipboard:s}=Yc();return(o,a)=>(x(),de(A(Zg),{class:"dark-mode"},{default:Y(()=>[Q(A(e0),{muted:""},{actions:Y(()=>[Q(pw,{class:"request-client-picker",modelValue:n.value,options:o.examples.map((l,c)=>({value:c.toString(),label:l.label})),"onUpdate:modelValue":a[0]||(a[0]=l=>(n.value=parseInt(l),10))},{default:Y(()=>[Ie(Be(i.value.label),1)]),_:1},8,["modelValue","options"]),ie("button",{class:"copy-button",type:"button",onClick:a[1]||(a[1]=l=>A(s)(i.value.source.trim()))},[Q(A(on),{icon:"Clipboard",width:"10px"})])]),default:Y(()=>[ie("div",Cbe,[Q(A(rl),{class:"request-method",method:o.operation.httpVerb},null,8,["method"]),Ue(o.$slots,"header",{},void 0,!0)])]),_:3}),Q(A(Jc),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:Y(()=>[Q(A(fs),{content:i.value.source.trim(),lang:r.value,lineNumbers:""},null,8,["content","lang"])]),_:1}),o.$slots.footer?(x(),de(A(hw),{key:0,class:"scalar-card-footer",contrast:""},{default:Y(()=>[Ue(o.$slots,"footer",{},void 0,!0)]),_:3})):pe("",!0)]),_:3}))}}),Obe=je(Nbe,[["__scopeId","data-v-18ba624d"]]),Dbe={class:"schema-type"},Ibe=["title"],Rbe=Se({__name:"SchemaHeading",props:{value:{},name:{}},setup(e){return(t,n)=>{var r,i,s,o,a,l;return x(),j("span",Dbe,[ie("span",{class:"schema-type-icon",title:typeof t.value.type=="string"?t.value.type:Array.isArray(t.value.type)?t.value.type.join(" | "):"unkown type"},[t.value.type==="object"?(x(),j(Ne,{key:0},[Ie(" {} ")],64)):pe("",!0),t.value.type==="array"?(x(),j(Ne,{key:1},[Ie(" [] ")],64)):pe("",!0),t.value.enum?(x(),j(Ne,{key:2},[Ie(" enum ")],64)):pe("",!0)],8,Ibe),(i=(r=t.value)==null?void 0:r.xml)!=null&&i.name&&((o=(s=t.value)==null?void 0:s.xml)==null?void 0:o.name)!=="##default"?(x(),j(Ne,{key:0},[Ie(" <"+Be((l=(a=t.value)==null?void 0:a.xml)==null?void 0:l.name)+" /> ",1)],64)):t.name?(x(),j(Ne,{key:1},[Ie(Be(t.name),1)],64)):(x(),j(Ne,{key:2},[Ie(Be(t.value.type),1)],64))])}}}),fM=je(Rbe,[["__scopeId","data-v-6c5c3c96"]]),Pbe={key:0,class:"property-detail-prefix"},Lbe={key:1,class:"property-detail-value"},Mbe={key:2,class:"property-detail-value"},$be=Se({__name:"SchemaPropertyDetail",props:{truncate:{type:Boolean},code:{type:Boolean}},setup(e){return(t,n)=>(x(),j("span",{class:ut(["property-detail",{"property-detail-truncate":t.truncate}])},[t.$slots.prefix?(x(),j("div",Pbe,[Ue(t.$slots,"prefix",{},void 0,!0),Ie("  ")])):pe("",!0),t.code?(x(),j("code",Lbe,[Ue(t.$slots,"default",{},void 0,!0)])):(x(),j("span",Mbe,[Ue(t.$slots,"default",{},void 0,!0)]))],2))}}),jr=je($be,[["__scopeId","data-v-16d94ef5"]]),Fbe={class:"property-heading"},Bbe={key:0,class:"property-name"},Ube={key:1,class:"property-additional"},Hbe={key:2,class:"property-deprecated"},jbe={key:3,class:"property-required"},qbe={key:4,class:"property-const"},Vbe={key:5,class:"property-details"},zbe={key:6,class:"property-write-only"},Kbe={key:7,class:"property-read-only"},Wbe=Se({__name:"SchemaPropertyHeading",props:{value:{},enum:{type:Boolean},required:{type:Boolean,default:!1},additional:{type:Boolean}},setup(e){const t=["oneOf","anyOf","allOf","not"];return(n,r)=>{var i,s,o,a,l,c,u;return x(),j("div",Fbe,[n.$slots.name?(x(),j("div",Bbe,[Ue(n.$slots,"name",{},void 0,!0)])):pe("",!0),n.additional?(x(),j("div",Ube,[(i=n.value)!=null&&i["x-additionalPropertiesName"]?(x(),j(Ne,{key:0},[Ie(Be(n.value["x-additionalPropertiesName"]),1)],64)):(x(),j(Ne,{key:1},[Ie(" additional properties ")],64))])):pe("",!0),(s=n.value)!=null&&s.deprecated?(x(),j("div",Hbe,[Q(A(qd),null,{default:Y(()=>[Ie("deprecated")]),_:1})])):pe("",!0),n.required?(x(),j("div",jbe," required ")):pe("",!0),(o=n.value)!=null&&o.const||(a=n.value)!=null&&a.enum&&n.value.enum.length===1?(x(),j("div",qbe,[Q(jr,{truncate:""},{prefix:Y(()=>[Ie("const:")]),default:Y(()=>[Ie(" "+Be(n.value.const??n.value.enum[0]),1)]),_:1})])):(l=n.value)!=null&&l.type?(x(),j("div",Vbe,[n.additional?(x(),de(jr,{key:0},{prefix:Y(()=>[Ie("key:")]),default:Y(()=>[Ie(" string ")]),_:1})):pe("",!0),Q(jr,null,Xd({default:Y(()=>{var d,f,h;return[(f=(d=n.value)==null?void 0:d.items)!=null&&f.type?(x(),j(Ne,{key:0},[Ie(Be(n.value.type)+" "+Be(n.value.items.type)+"[] ",1)],64)):(x(),j(Ne,{key:1},[Ie(Be(Array.isArray(n.value.type)?n.value.type.join(" | "):n.value.type)+" "+Be((h=n.value)!=null&&h.nullable?" | nullable":""),1)],64)),n.value.minItems||n.value.maxItems?(x(),j(Ne,{key:2},[Ie(Be(n.value.minItems)+"…"+Be(n.value.maxItems),1)],64)):pe("",!0)]}),_:2},[n.additional?{name:"prefix",fn:Y(()=>[Ie("value:")]),key:"0"}:void 0]),1024),n.value.minLength?(x(),de(jr,{key:1},{prefix:Y(()=>[Ie("min:")]),default:Y(()=>[Ie(" "+Be(n.value.minLength),1)]),_:1})):pe("",!0),n.value.maxLength?(x(),de(jr,{key:2},{prefix:Y(()=>[Ie("max:")]),default:Y(()=>[Ie(" "+Be(n.value.maxLength),1)]),_:1})):pe("",!0),n.value.uniqueItems?(x(),de(jr,{key:3},{default:Y(()=>[Ie(" unique! ")]),_:1})):pe("",!0),n.value.format?(x(),de(jr,{key:4},{default:Y(()=>[Ie(Be(n.value.format),1)]),_:1})):pe("",!0),n.value.minimum?(x(),de(jr,{key:5},{prefix:Y(()=>[Ie("min:")]),default:Y(()=>[Ie(" "+Be(n.value.minimum),1)]),_:1})):pe("",!0),n.value.maximum?(x(),de(jr,{key:6},{prefix:Y(()=>[Ie("max:")]),default:Y(()=>[Ie(" "+Be(n.value.maximum),1)]),_:1})):pe("",!0),n.value.pattern?(x(),de(jr,{key:7,code:"",truncate:""},{default:Y(()=>[Ie(Be(n.value.pattern),1)]),_:1})):pe("",!0),n.$props.enum?(x(),de(jr,{key:8},{default:Y(()=>[Ie("enum")]),_:1})):pe("",!0),n.value.default?(x(),de(jr,{key:9,truncate:""},{prefix:Y(()=>[Ie("default:")]),default:Y(()=>[Ie(" "+Be(n.value.default),1)]),_:1})):pe("",!0)])):pe("",!0),(c=n.value)!=null&&c.writeOnly?(x(),j("div",zbe," write-only ")):(u=n.value)!=null&&u.readOnly?(x(),j("div",Kbe," read-only ")):pe("",!0),(x(!0),j(Ne,null,pt(t.filter(d=>{var f,h,p;return((f=n.value)==null?void 0:f[d])||((p=(h=n.value)==null?void 0:h.items)==null?void 0:p[d])}),d=>(x(),de(A(qd),{key:d},{default:Y(()=>[Ie(Be(d),1)]),_:2},1024))),128))])}}}),Gbe=je(Wbe,[["__scopeId","data-v-c1c21610"]]),Ybe=e=>(er("data-v-bd31a06f"),e=e(),tr(),e),Xbe={key:0,class:"property-description"},Qbe={key:1,class:"property-description"},Jbe={key:2,class:"property-example custom-scroll"},Zbe=Ybe(()=>ie("span",{class:"property-example-label"},"Example",-1)),eye={class:"property-example-value"},tye={key:3,class:"property-enum"},nye={class:"property-enum-values"},rye={key:4,class:"children"},iye={key:0,class:"children"},sye={key:0,class:"property-rule"},oye={key:1,class:"property-rule"},aye=Se({__name:"SchemaProperty",props:{value:{},level:{default:0},name:{},required:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},description:{},additional:{type:Boolean}},setup(e){const t={integer:{_default:"Integer numbers.",int32:"Signed 32-bit integers (commonly used integer type).",int64:"Signed 64-bit integers (long type)."},string:{date:"full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21","date-time":"the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",password:"a hint to UIs to mask the input",byte:"base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",binary:"binary data, used to describe files"}},n=function(o,a){return a!=null&&a.properties||a!=null&&a.additionalProperties?null:o||(a==null?void 0:a.description)||null},r=function(o){return!o||!t[o.type]?null:t[o.type][o.format||"_default"]},i=function(o){var a;return(o==null?void 0:o.enum)||((a=o==null?void 0:o.items)==null?void 0:a.enum)||[]},s=["oneOf","anyOf","allOf","not"];return(o,a)=>{var l,c,u,d,f,h,p,m,g,b;return x(),j("div",{class:ut(["property",[`property--level-${o.level}`,{"property--compact":o.compact,"property--deprecated":(l=o.value)==null?void 0:l.deprecated}]])},[Q(Gbe,{additional:o.additional,enum:i(o.value).length>1,required:o.required,value:o.value},Xd({_:2},[o.name?{name:"name",fn:Y(()=>[Ie(Be(o.name),1)]),key:"0"}:void 0]),1032,["additional","enum","required","value"]),n(o.description,o.value)?(x(),j("div",Xbe,[Q(A(Fr),{value:n(o.description,o.value)},null,8,["value"])])):r(o.value)?(x(),j("div",Qbe,[Q(A(Fr),{value:r(o.value)||""},null,8,["value"])])):pe("",!0),(c=o.value)!=null&&c.example||(d=(u=o.value)==null?void 0:u.items)!=null&&d.example?(x(),j("div",Jbe,[Zbe,ie("code",eye,Be(o.value.example||((f=o.value)==null?void 0:f.items.example)),1)])):pe("",!0),((h=i(o.value))==null?void 0:h.length)>1?(x(),j("div",tye,[ie("ul",nye,[(x(!0),j(Ne,null,pt(i(o.value),y=>(x(),j("li",{key:y,class:"property-enum-value"},Be(y),1))),128))])])):pe("",!0),((p=o.value)==null?void 0:p.type)==="object"&&((m=o.value)!=null&&m.properties||(g=o.value)!=null&&g.additionalProperties)?(x(),j("div",rye,[Q(wa,{compact:o.compact,level:o.level+1,value:o.value},null,8,["compact","level","value"])])):pe("",!0),(b=o.value)!=null&&b.items?(x(),j(Ne,{key:5},[["object"].includes(o.value.items.type)?(x(),j("div",iye,[Q(wa,{compact:o.compact,level:o.level+1,value:o.value.items},null,8,["compact","level","value"])])):pe("",!0)],64)):pe("",!0),(x(),j(Ne,null,pt(s,y=>{var v,w,T;return x(),j(Ne,{key:y},[(v=o.value)!=null&&v[y]?(x(),j("div",sye,[(x(!0),j(Ne,null,pt(o.value[y],(_,S)=>(x(),de(wa,{key:S,compact:o.compact,level:o.level+1,value:_},null,8,["compact","level","value"]))),128))])):pe("",!0),(T=(w=o.value)==null?void 0:w.items)!=null&&T[y]&&o.level<3?(x(),j("div",oye,[(x(!0),j(Ne,null,pt(o.value.items[y],(_,S)=>(x(),de(wa,{key:S,compact:o.compact,level:o.level+1,value:_},null,8,["compact","level","value"]))),128))])):pe("",!0)],64)}),64))],2)}}}),_a=je(aye,[["__scopeId","data-v-bd31a06f"]]),lye=e=>(er("data-v-7f5d0941"),e=e(),tr(),e),cye={key:0,class:"schema-card-description"},uye=lye(()=>ie("polygon",{"fill-rule":"nonzero",points:"14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"},null,-1)),dye=[uye],fye=Se({__name:"Schema",props:{value:{},level:{default:0},name:{},compact:{type:Boolean},noncollapsible:{type:Boolean}},setup(e){const t=e,n=ae(()=>!(t.noncollapsible||t.level===0)),r=i=>t.noncollapsible&&i.stopPropagation();return(i,s)=>typeof i.value=="object"&&Object.keys(i.value).length?(x(),de(A(Mm),{key:0,defaultOpen:i.noncollapsible},{default:Y(({open:o})=>{var a;return[ie("div",{class:ut(["schema-card",[`schema-card--level-${i.level}`,{"schema-card--compact":i.compact,"schema-card--open":o}]])},[(a=i.value)!=null&&a.description?(x(),j("div",cye,[Q(A(Fr),{value:i.value.description},null,8,["value"])])):pe("",!0),ie("div",{class:ut(["schema-properties",{"schema-properties-open":o}])},[Ya(Q(A($m),{as:i.noncollapsible?"div":"button",class:ut(["schema-card-title",{"schema-card-title--compact":i.compact}]),style:xr({top:`calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${i.level}))`}),onClickCapture:r},{default:Y(()=>{var l,c,u;return[i.compact?(x(),j(Ne,{key:0},[n.value?(x(),j("svg",{key:0,class:ut(["schema-card-title-icon",{"schema-card-title-icon--open":o}]),fill:"currentColor",height:"14",viewBox:"0 0 14 14",width:"14",xmlns:"http://www.w3.org/2000/svg"},dye,2)):pe("",!0),o?(x(),j(Ne,{key:1},[Ie(" Hide "+Be(((l=i.value)==null?void 0:l.title)??"Child Attributes"),1)],64)):(x(),j(Ne,{key:2},[Ie(" Show "+Be(((c=i.value)==null?void 0:c.title)??"Child Attributes"),1)],64))],64)):(x(),j(Ne,{key:1},[n.value?(x(),de(A(on),{key:0,class:ut(["schema-card-title-icon",{"schema-card-title-icon--open":o}]),icon:"ChevronRight",size:"md"},null,8,["class"])):pe("",!0),Q(fM,{name:((u=i.value)==null?void 0:u.title)??i.name,value:i.value},null,8,["name","value"])],64))]}),_:2},1032,["as","class","style"]),[[wc,!(i.noncollapsible&&i.compact)]]),Q(A(Fm),{static:i.noncollapsible},{default:Y(()=>{var l;return[i.value.properties||i.value.additionalProperties?(x(),j(Ne,{key:0},[i.value.properties?(x(!0),j(Ne,{key:0},pt(Object.keys((l=i.value)==null?void 0:l.properties),c=>{var u;return x(),de(_a,{key:c,compact:i.compact,level:i.level,name:c,required:i.value.required&&i.value.required.length&&i.value.required.includes(c),value:(u=i.value.properties)==null?void 0:u[c]},null,8,["compact","level","name","required","value"])}),128)):pe("",!0),i.value.additionalProperties?(x(),j(Ne,{key:1},[i.value.additionalProperties===!0||Object.keys(i.value.additionalProperties).length===0||!i.value.additionalProperties.type?(x(),de(_a,{key:0,additional:"",compact:i.compact,level:i.level,noncollapsible:"",value:{type:"any",...i.value.additionalProperties}},null,8,["compact","level","value"])):(x(),de(_a,{key:1,additional:"",compact:i.compact,level:i.level,noncollapsible:"",value:i.value.additionalProperties},null,8,["compact","level","value"]))],64)):pe("",!0)],64)):(x(),de(_a,{key:1,compact:i.compact,level:i.level,name:i.value.name,value:i.value},null,8,["compact","level","name","value"]))]}),_:1},8,["static"])],2)],2)]}),_:1},8,["defaultOpen"])):pe("",!0)}}),wa=je(fye,[["__scopeId","data-v-7f5d0941"]]),hye={class:"parameter-item"},pye={class:"parameter-item-container"},mye=Se({__name:"ParameterItem",props:{parameter:{},showChildren:{type:Boolean,default:!1}},setup(e){return(t,n)=>(x(),j("li",hye,[ie("div",pye,[Q(A(_a),{compact:"",description:t.parameter.description,level:0,name:t.parameter.name,noncollapsible:t.showChildren,required:t.parameter.required,value:t.parameter.schema},null,8,["description","name","noncollapsible","required","value"])])]))}}),gye=je(mye,[["__scopeId","data-v-f70ee55c"]]),bye={key:0,class:"parameters"},yye={class:"parameters-title"},vye={class:"parameter-list"},Eye=Se({__name:"Parameters",props:{parameters:{},showChildren:{type:Boolean,default:!1}},setup(e){return(t,n)=>{var r;return(r=t.parameters)!=null&&r.length?(x(),j("div",bye,[ie("div",yye,[Ue(t.$slots,"title",{},void 0,!0)]),ie("ul",vye,[(x(!0),j(Ne,null,pt(t.parameters,i=>(x(),de(gye,{key:i.name,parameter:i,showChildren:t.showChildren},null,8,["parameter","showChildren"]))),128))])])):pe("",!0)}}}),fi=je(Eye,[["__scopeId","data-v-45fca787"]]),_ye={key:0},wye={class:"request-body-title"},Tye=["value"],Sye={key:0,class:"request-body-description"},kye={key:0,class:"request-body-schema"},xye=Se({__name:"RequestBody",props:{requestBody:{}},setup(e){var t;const n=e,r=ae(()=>{var s;return(s=n.requestBody)!=null&&s.content?Object.keys(n.requestBody.content):[]}),i=ce("application/json");return(t=n.requestBody)!=null&&t.content&&r.value.length>0&&(i.value=r.value[0]),(s,o)=>{var a,l,c,u;return n!=null&&n.requestBody?(x(),j("div",_ye,[ie("div",wye,[Ue(s.$slots,"title",{},void 0,!0),ie("div",{class:ut(["request-body-title-select",{"request-body-title-no-select":r.value.length<=1}])},[ie("span",null,Be(i.value),1),n!=null&&n.requestBody&&r.value.length>1?Ya((x(),j("select",{key:0,"onUpdate:modelValue":o[0]||(o[0]=d=>i.value=d)},[(x(!0),j(Ne,null,pt((a=n.requestBody)==null?void 0:a.content,(d,f)=>(x(),j("option",{key:f,value:f},Be(f),9,Tye))),128))],512)),[[b4,i.value]]):pe("",!0)],2),n!=null&&n.requestBody.description?(x(),j("div",Sye,[Q(A(Fr),{value:n.requestBody.description},null,8,["value"])])):pe("",!0)]),(l=n==null?void 0:n.requestBody.content)!=null&&l[i.value]?(x(),j("div",kye,[Q(A(wa),{compact:"",noncollapsible:"",value:(u=(c=n==null?void 0:n.requestBody.content)==null?void 0:c[i.value])==null?void 0:u.schema},null,8,["value"])])):pe("",!0)])):pe("",!0)}}}),mw=je(xye,[["__scopeId","data-v-e095eb63"]]),Aye={class:"endpoint-details"},Cye={class:"endpoint-description"},Nye=Se({__name:"EndpointDetails",props:{operation:{}},setup(e){const t=e,{parameterMap:n}=lw(t),{responses:r}=cw(t.operation);return(i,s)=>{var o,a;return x(),j("div",Aye,[ie("div",Cye,[Q(A(Fr),{value:i.operation.description,withImages:""},null,8,["value"])]),Q(fi,{parameters:A(n).path},{title:Y(()=>[Ie("Path Parameters")]),_:1},8,["parameters"]),Q(fi,{parameters:A(n).query},{title:Y(()=>[Ie("Query Parameters")]),_:1},8,["parameters"]),Q(fi,{parameters:A(n).header},{title:Y(()=>[Ie("Headers")]),_:1},8,["parameters"]),Q(fi,{parameters:A(n).body,showChildren:""},{title:Y(()=>[Ie("Body Parameters")]),_:1},8,["parameters"]),Q(fi,{parameters:A(n).formData},{title:Y(()=>[Ie("Form Data")]),_:1},8,["parameters"]),(o=i.operation.information)!=null&&o.requestBody?(x(),de(mw,{key:0,requestBody:(a=i.operation.information)==null?void 0:a.requestBody},{title:Y(()=>[Ie("Body")]),_:1},8,["requestBody"])):pe("",!0),Q(fi,{parameters:A(r)},{title:Y(()=>[Ie("Responses")]),_:1},8,["parameters"])])}}}),Oye={key:0},Dye=Se({__name:"EndpointPath",props:{path:{},deprecated:{type:Boolean}},setup(e){const t=e,n=i=>i.startsWith("{")&&i.endsWith("}"),r=ae(()=>t.path.split(/({[^}]+})/));return(i,s)=>(x(),j("span",{class:ut(["endpoint-path",{deprecated:i.deprecated}])},[(x(!0),j(Ne,null,pt(r.value,(o,a)=>(x(),j(Ne,{key:a},[n(o)?(x(),j("em",Oye,Be(o),1)):(x(),j(Ne,{key:1},[Ie(Be(o),1)],64))],64))),128))],2))}}),iv=je(Dye,[["__scopeId","data-v-a4eadd9b"]]);function Lf(e){return e.reduce((t,n)=>(t[n.name]=n.value,t),{})}function Iye(e){return/\s|-/.test(e)}function es(e,t=0){let n=[],r=" ".repeat(t),i=" ".repeat(t+2);for(const[s,o]of Object.entries(e)){let a=Iye(s)?`'${s}'`:s;if(Array.isArray(o)){const l=o.map(c=>typeof c=="string"?`'${c}'`:c&&typeof c=="object"?es(c,t+2):c).join(`, ${i}`);n.push(`${i}${a}: [${l}]`)}else if(o&&typeof o=="object")n.push(`${i}${a}: ${es(o,t+2)}`);else if(typeof o=="string"){let l=`${o}`;if(o.startsWith("JSON.stringify")){const c=o.split(`
364
+ `,s),i===void 0?(n(((r=s==null?void 0:s[0])==null?void 0:r.error)??"Failed to parse the OpenAPI file."),t(Hh(Gl()))):t(Hh(i))}catch(i){n(i)}return t(Hh(Gl()))}),Hh=e=>{let t={};e&&typeof e=="object"?t=structuredClone(e):t=Gl(),t.tags||(t.tags=[]),t.paths||(t.paths={});const n={};return Object.keys(t.webhooks??{}).forEach(r=>{var i;Object.keys(((i=t.webhooks)==null?void 0:i[r])??{}).forEach(s=>{var o,a,l;const c=(o=t.webhooks)==null?void 0:o[r][s];(c==null?void 0:c["x-internal"])!==!0&&(n[r]===void 0&&(n[r]={}),n[r][s]={httpVerb:s,path:r,operationId:(c==null?void 0:c.operationId)||r,name:(c==null?void 0:c.summary)||r||"",description:(c==null?void 0:c.description)||"",pathParameters:(l=(a=t.paths)==null?void 0:a[r])==null?void 0:l.parameters,information:{...c}})})}),Object.keys(t.paths).forEach(r=>{Object.keys(t.paths[r]).filter(i=>kE.includes(i.toUpperCase())).forEach(i=>{var s,o,a,l,c,u;const d=t.paths[r][i];if(d===void 0||d["x-internal"]===!0)return;const f={httpVerb:i,path:r,operationId:d.operationId||r,name:d.summary||r||"",description:d.description||"",information:{...d},pathParameters:(o=(s=t.paths)==null?void 0:s[r])==null?void 0:o.parameters};if(!d.tags||d.tags.length===0){(a=t.tags)!=null&&a.find(p=>p.name==="default")||(l=t.tags)==null||l.push({name:"default",description:"",operations:[]});const h=(c=t.tags)==null?void 0:c.findIndex(p=>p.name==="default");h>=0&&((u=t.tags[h])==null||u.operations.push(f))}else d.tags.forEach(h=>{var p,m,g;const b=(p=t.tags)==null?void 0:p.findIndex(v=>v.name===h);b===-1&&((m=t.tags)==null||m.push({name:h,description:""}));const y=b!==-1?b:t.tags.length-1;typeof((g=t.tags[y])==null?void 0:g.operations)>"u"&&(t.tags[y].operations=[]),t.tags[y].operations.push(f)})})}),{...t,webhooks:n}},ow=Symbol(),W3=Symbol(),mm=async e=>{var t;(t=document.getElementById(e))==null||t.scrollIntoView()},Ls=e=>new Promise(t=>setTimeout(t,e)),Cpe=Symbol("downloadSpec"),G3=Mv(Cpe);function Npe(e,t){const n=TI(e),r=n?new Blob([e],{type:"application/json"}):new Blob([e],{type:"application/x-yaml"}),i=URL.createObjectURL(r),s=n?".json":".yaml",o="spec"+s,a=t?t+s:o,l=document.createElement("a");l.href=i,l.download=a,l.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(i),l.remove()},100)}function Ope(e,t=1){const n=new RegExp(`^(?=#{${t}} )`,"m");return e.split(n).map(r=>r.trim()).filter(Boolean)}var Dpe=Object.defineProperty,Ipe=(e,t,n)=>t in e?Dpe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ar=(e,t,n)=>(Ipe(e,typeof t!="symbol"?t+"":t,n),n);function Rpe(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Rpe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;will-change:transform,opacity,height;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:20px;width:20px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;transition:opacity .4s,box-shadow .2s;z-index:100}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;opacity:0;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]{opacity:1}[data-sonner-toast]:focus [data-close-button]{opacity:1}[data-sonner-toast]:focus-within [data-close-button]{opacity:1}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:'';position:absolute;left:0;right:0;height:100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{display:none;transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}");let ev=1;class Ppe{constructor(){ar(this,"subscribers"),ar(this,"toasts"),ar(this,"subscribe",t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)})),ar(this,"publish",t=>{this.subscribers.forEach(n=>n(t))}),ar(this,"addToast",t=>{this.publish(t),this.toasts=[...this.toasts,t]}),ar(this,"create",t=>{var n;const{message:r,...i}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:ev++,o=this.toasts.findIndex(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return o!==-1?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):this.addToast({title:r,...i,dismissible:a,id:s}),s}),ar(this,"dismiss",t=>(t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),this.subscribers.forEach(n=>n({id:t,dismiss:!0})),t)),ar(this,"message",(t,n)=>this.create({...n,message:t})),ar(this,"error",(t,n)=>this.create({...n,type:"error",message:t})),ar(this,"success",(t,n)=>this.create({...n,type:"success",message:t})),ar(this,"info",(t,n)=>this.create({...n,type:"info",message:t})),ar(this,"warning",(t,n)=>this.create({...n,type:"warning",message:t})),ar(this,"loading",(t,n)=>this.create({...n,type:"loading",message:t})),ar(this,"promise",(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading}));const i=t instanceof Promise?t:t();let s=r!==void 0;return i.then(o=>{if(n.success!==void 0){s=!1;const a=typeof n.success=="function"?n.success(o):n.success;this.create({id:r,type:"success",message:a})}}).catch(o=>{if(n.error!==void 0){s=!1;const a=typeof n.error=="function"?n.error(o):n.error;this.create({id:r,type:"error",message:a})}}).finally(()=>{var o;s&&(this.dismiss(r),r=void 0),(o=n.finally)==null||o.call(n)}),r}),ar(this,"custom",(t,n)=>{const r=(n==null?void 0:n.id)||ev++;return this.publish({...n,id:r,title:t}),r}),this.subscribers=[],this.toasts=[]}}const ci=new Ppe,Lpe=(e,t)=>{const n=(t==null?void 0:t.id)||ev++;return ci.publish({title:e,...t,id:n}),n},Mpe=Lpe,jh=Object.assign(Mpe,{success:ci.success,info:ci.info,warning:ci.warning,error:ci.error,custom:ci.custom,message:ci.message,promise:ci.promise,dismiss:ci.dismiss,loading:ci.loading}),$pe=["data-visible"],Fpe={className:"sonner-spinner"},Bpe=Se({__name:"Loader",props:{visible:Boolean},setup(e){const t=Array(12).fill(0);return(n,r)=>(x(),j("div",{className:"sonner-loading-wrapper","data-visible":e.visible},[ie("div",Fpe,[(x(!0),j(Ne,null,pt(A(t),i=>(x(),j("div",{key:`spinner-bar-${i}`,className:"sonner-loading-bar"}))),128))])],8,$pe))}}),If=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Upe={},Hpe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},jpe=ie("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1),qpe=[jpe];function Vpe(e,t){return x(),j("svg",Hpe,qpe)}const zpe=If(Upe,[["render",Vpe]]),Kpe={},Wpe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Gpe=ie("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1),Ype=[Gpe];function Xpe(e,t){return x(),j("svg",Wpe,Ype)}const Qpe=If(Kpe,[["render",Xpe]]),Jpe={},Zpe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},eme=ie("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1),tme=[eme];function nme(e,t){return x(),j("svg",Zpe,tme)}const rme=If(Jpe,[["render",nme]]),ime={},sme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ome=ie("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1),ame=[ome];function lme(e,t){return x(),j("svg",sme,ame)}const cme=If(ime,[["render",lme]]),ume={},dme={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},fme=ie("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),hme=ie("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1),pme=[fme,hme];function mme(e,t){return x(),j("svg",dme,pme)}const gme=If(ume,[["render",mme]]),bme=["aria-live","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-type","data-invert","data-swipe-out","data-expanded"],yme=["data-disabled"],vme={key:1,"data-icon":""},Eme={"data-content":""},_me={"data-title":""},wme=4e3,Tme=14,Sme=20,kme=200,xme=Se({__name:"Toast",props:{toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},duration:{},descriptionClass:{}},emits:["update:heights","removeToast"],setup(e,{emit:t}){const n=q=>!!q.promise,r=t,i=e,s=ce(!1),o=ce(!1),a=ce(!1),l=ce(!1),c=ce(null),u=ce(0),d=ce(0),f=ce(null),h=ce(null),p=ae(()=>i.index===0),m=ae(()=>i.index+1<=i.visibleToasts),g=ae(()=>i.toast.type),b=ae(()=>i.toast.dismissible),y=i.toast.className||"",v=i.toast.descriptionClassName||"",w=i.toast.style||{},T=ae(()=>i.heights.findIndex(q=>q.toastId===i.toast.id)||0),_=ae(()=>i.toast.duration||i.duration||wme),S=ce(0),I=ce(0),R=ce(_.value),O=ce(0),K=ce(null),B=ae(()=>i.position.split("-")),ge=ae(()=>B.value[0]),le=ae(()=>B.value[1]),ye=ae(()=>i.heights.reduce((q,be,Ce)=>Ce>=T.value?q:q+be.height,0)),Fe=ae(()=>i.toast.invert||i.invert),J=ae(()=>c.value==="loading"),ee=ae(()=>c.value??(i.toast.type||null)),he=ae(()=>!n(i.toast)&&typeof i.toast.title=="object"),C=ae(()=>{if(!n(i.toast))return null;switch(c.value){case"loading":return i.toast.loading;case"success":return typeof i.toast.success=="function"?f.value:i.toast.success;case"error":return typeof i.toast.error=="function"?f.value:i.toast.error;default:return null}});Mt(()=>s.value=!0),Pn(()=>{I.value=T.value*Tme+ye.value});function F(){var q,be;(!J.value||b.value)&&(X(),(be=(q=i.toast).onDismiss)==null||be.call(q,i.toast))}function X(){o.value=!0,u.value=I.value;const q=i.heights.filter(be=>be.toastId!==i.toast.id);r("update:heights",q),setTimeout(()=>{r("removeToast",i.toast)},kme)}const k=q=>{J||(u.value=I.value,q.target.setPointerCapture(q.pointerId),q.target.tagName!=="BUTTON"&&(a.value=!0,K.value={x:q.clientX,y:q.clientY}))},D=q=>{var be,Ce,Ke,ze;if(l.value)return;K.value=null;const nt=Number(((be=h.value)==null?void 0:be.style.getPropertyValue("--swipe-amount").replace("px",""))||0);if(Math.abs(nt)>=Sme){u.value=I.value,(Ke=(Ce=i.toast).onDismiss)==null||Ke.call(Ce,i.toast),X(),l.value=!0;return}(ze=h.value)==null||ze.style.setProperty("--swipe-amount","0px"),a.value=!0},U=q=>{var be;if(!K.value)return;const Ce=q.clientY-K.value.y,Ke=q.clientX-K.value.x,ze=(B.value[0]==="top"?Math.min:Math.max)(0,Ce),nt=q.pointerType==="touch"?10:2;Math.abs(ze)>nt?(be=h.value)==null||be.style.setProperty("--swipe-amount",`${Ce}px`):Math.abs(Ke)>nt&&(K.value=null)};return Pn(q=>{if(i.toast.promise&&c.value==="loading"||i.toast.duration===1/0)return;let be;const Ce=()=>{if(O.value<S.value){const ze=new Date().getTime()-S.value;R.value=R.value-ze}O.value=new Date().getTime()},Ke=()=>{S.value=new Date().getTime(),be=setTimeout(()=>{var ze,nt;(nt=(ze=i.toast).onAutoClose)==null||nt.call(ze,i.toast),X()},R.value)};i.expanded||i.interacting?Ce():Ke(),q(()=>{clearTimeout(be)})}),Mt(()=>{if(h.value){const q=h.value.getBoundingClientRect().height;d.value=q;const be=[{toastId:i.toast.id,height:q},...i.heights];r("update:heights",be)}}),An(()=>{if(h.value){const q=i.heights.filter(be=>be.toastId!==i.toast.id);r("update:heights",q)}}),Pn(()=>{i.toast.delete&&X()}),(q,be)=>(x(),j("li",{"aria-live":q.toast.important?"assertive":"polite","aria-atomic":"",role:"status",tabindex:"0",ref_key:"toastRef",ref:h,"data-sonner-toast":"",class:ut(A(y)),"data-styled":!he.value,"data-mounted":s.value,"data-promise":!!q.toast.promise,"data-removed":o.value,"data-visible":m.value,"data-y-position":ge.value,"data-x-position":le.value,"data-index":i.index,"data-front":p.value,"data-swiping":a.value,"data-type":c.value!=="loading"&&c.value?c.value:g.value,"data-invert":Fe.value,"data-swipe-out":l.value,"data-expanded":!!(i.expanded||i.expandByDefault&&s.value),style:xr({"--index":i.index,"--toasts-before":i.index,"--z-index":q.toasts.length-i.index,"--offset":`${o.value?u.value:I.value}px`,"--initial-height":i.expandByDefault?"auto":`${d.value}px`,...A(w)}),onPointerdown:k,onPointerup:D,onPointermove:U},[i.closeButton&&!he.value?(x(),j("button",{key:0,"aria-label":"Close toast","data-close-button":"","data-disabled":J.value,onClick:F},[Q(gme)],8,yme)):pe("",!0),g.value||q.toast.icon||q.toast.promise?(x(),j("div",vme,[typeof q.toast.promise=="function"||g.value==="loading"?(x(),de(Bpe,{key:0,visible:c.value==="loading"||g.value==="loading"},null,8,["visible"])):pe("",!0),ee.value==="success"?(x(),de(zpe,{key:1})):ee.value==="info"?(x(),de(Qpe,{key:2})):ee.value==="warning"?(x(),de(rme,{key:3})):ee.value==="error"?(x(),de(cme,{key:4})):pe("",!0)])):pe("",!0),ie("div",Eme,[ie("div",_me,[typeof q.toast.title=="string"?(x(),j(Ne,{key:0},[Ie(Be(q.toast.title),1)],64)):q.toast.title===void 0||q.toast.title===null?(x(),j(Ne,{key:1},[Ie(Be(C.value),1)],64)):he.value?(x(),de(Ei(q.toast.title),{key:2,onCloseToast:be[0]||(be[0]=()=>{var Ce;X(),(Ce=q.toast.cancel)!=null&&Ce.onClick&&q.toast.cancel.onClick()})},null,32)):pe("",!0)]),q.toast.description?(x(),j("div",{key:0,"data-description":"",class:ut(q.descriptionClass+A(v))},Be(q.toast.description),3)):pe("",!0)]),q.toast.cancel?(x(),j("button",{key:2,"data-button":"","data-cancel":"",onClick:be[1]||(be[1]=()=>{var Ce;X(),(Ce=q.toast.cancel)!=null&&Ce.onClick&&q.toast.cancel.onClick()})},Be(q.toast.cancel.label),1)):pe("",!0),q.toast.action?(x(),j("button",{key:3,"data-button":"",onClick:be[2]||(be[2]=()=>{var Ce;X(),(Ce=q.toast.action)==null||Ce.onClick()})},Be(q.toast.action.label),1)):pe("",!0)],46,bme))}}),Ame=["aria-label"],Cme=["dir","data-theme","data-rich-colors","data-y-position","data-x-position"],Nme=3,VA="32px",Ome=4e3,Dme=356,zA=14,Ime=typeof window<"u"&&typeof document<"u",Rme=Se({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{default:Ome},gap:{default:zA},visibleToasts:{default:Nme},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},className:{default:""},style:{default:()=>({})},offset:{default:VA},dir:{default:"auto"}},setup(e){const t=e,n=Ec(),r=ce([]),i=ce([]),s=ce(!1),o=ce(!1),a=ce(t.theme!=="system"?t.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),l=ae(()=>t.position.split("-")),c=ce(null),u=t.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function d(h){r.value=r.value.filter(({id:p})=>p!==h.id)}function f(){if(typeof window>"u")return"ltr";const h=document.documentElement.getAttribute("dir");return h==="auto"||!h?window.getComputedStyle(document.documentElement).direction:h}return Mt(()=>{const h=ci.subscribe(p=>{if(p.dismiss){r.value=r.value.map(m=>m.id===p.id?{...m,delete:!0}:m);return}Qn(()=>{const m=r.value.findIndex(g=>g.id===p.id);m!==-1?r.value.splice(m,1,p):r.value=[p,...r.value]})});An(()=>{h()})}),dt(()=>t.theme,h=>{if(h!=="system"){a.value=h;return}h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?a.value="dark":a.value="light"),!(typeof window>"u")&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:p})=>{p?a.value="dark":a.value="light"})}),Pn(()=>{r.value.length<=1&&(s.value=!1)}),Pn(h=>{function p(m){var g,b;t.hotkey.every(y=>m[y]||m.code===y)&&(s.value=!0,(g=c.value)==null||g.focus()),m.code==="Escape"&&(document.activeElement===c.value||(b=c.value)!=null&&b.contains(document.activeElement))&&(s.value=!1)}Ime&&(document.addEventListener("keydown",p),h(()=>{document.removeEventListener("keydown",p)}))}),(h,p)=>{var m;return x(),j("section",{"aria-label":`Notifications ${A(u)}`,tabIndex:-1},[ie("ol",{ref_key:"listRef",ref:c,"data-sonner-toaster":"",dir:h.dir==="auto"?f():h.dir,tabIndex:-1,"data-theme":h.theme,"data-rich-colors":h.richColors,"data-y-position":l.value[0],"data-x-position":l.value[1],style:xr({"--front-toast-height":`${(m=i.value[0])==null?void 0:m.height}px`,"--offset":typeof h.offset=="number"?`${h.offset}px`:h.offset||VA,"--width":`${Dme}px`,"--gap":`${zA}px`,...A(n).style}),onMouseenter:p[1]||(p[1]=g=>s.value=!0),onMousemove:p[2]||(p[2]=g=>s.value=!0),onMouseleave:p[3]||(p[3]=()=>{o.value||(s.value=!1)}),onPointerdown:p[4]||(p[4]=g=>o.value=!1),onPointerup:p[5]||(p[5]=g=>o.value=!1)},[(x(!0),j(Ne,null,pt(r.value,(g,b)=>{var y,v,w,T;return x(),de(xme,{key:g.id,index:b,toast:g,duration:((y=h.toastOptions)==null?void 0:y.duration)??h.duration,className:(v=h.toastOptions)==null?void 0:v.className,descriptionClassName:(w=h.toastOptions)==null?void 0:w.descriptionClassName,invert:h.invert,visibleToasts:h.visibleToasts,closeButton:h.closeButton,interacting:o.value,position:h.position,style:xr((T=h.toastOptions)==null?void 0:T.style),toasts:r.value,expandByDefault:h.expand,gap:h.gap,expanded:s.value,heights:i.value,"onUpdate:heights":p[0]||(p[0]=_=>i.value=_),onRemoveToast:d},null,8,["index","toast","duration","className","descriptionClassName","invert","visibleToasts","closeButton","interacting","position","style","toasts","expandByDefault","gap","expanded","heights"])}),128))],44,Cme)],8,Ame)}}}),Y3={toast:()=>null};function Pme(e){Y3.toast=e}function X3(){return{initializeToasts:Pme,toast:(e,t="info",n={timeout:3e3})=>{Y3.toast(e,t,n)}}}const Lme=Se({__name:"ScalarToasts",setup(e){const t=ce(!1);Mt(()=>t.value=!0);const n={success:jh.success,error:jh.error,warn:jh.warning,info:jh},{initializeToasts:r}=X3();return r((i,s="info",o={})=>{(n[s]||n.info)(i,{duration:o.timeout||3e3})}),(i,s)=>t.value?(x(),de(A(Rme),{key:0,toastOptions:{className:"toaster"}})):pe("",!0)}}),Yc=()=>{const{toast:e}=X3();return{copyToClipboard:t=>{navigator.clipboard.writeText(t).then(()=>{e("Copied to the clipboard","info")})}}},Js=ce(!1);function Mme(e){var t;const n=()=>{var s,o;const a=typeof window<"u"?(s=window.localStorage)==null?void 0:s.getItem("isDark"):null;return typeof a=="string"?!!JSON.parse(a):!!(typeof window<"u"&&(o=window==null?void 0:window.matchMedia("(prefers-color-scheme: dark)"))!=null&&o.matches)},r=()=>{var s;Js.value=!Js.value,typeof window<"u"&&((s=window==null?void 0:window.localStorage)==null||s.setItem("isDark",JSON.stringify(Js.value)))};function i(s){var o;Js.value=s,typeof window<"u"&&((o=window==null?void 0:window.localStorage)==null||o.setItem("isDark",JSON.stringify(Js.value)))}return Js.value=(typeof window>"u"?null:JSON.parse(((t=window.localStorage)==null?void 0:t.getItem("isDark"))||"null"))??e??n(),dt(Js,s=>{typeof document>"u"||(document.body.classList.toggle("dark-mode",s),document.body.classList.toggle("light-mode",!s))},{immediate:!0}),{isDark:Js,toggleDarkMode:r,setDarkMode:i}}const KA="https://api.scalar.com/request-proxy",qh="https://proxy.scalar.com",$me="http://localhost:5051";function Fme(e){dt(()=>e,()=>{var t;e.proxy===KA?(console.warn(`[DEPRECATED] Warning: configuration.proxy points to our old proxy (${KA}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${qh}) instead.`),e.proxy=qh,console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${qh}). Read more: https://github.com/scalar/scalar`)):(t=e.proxy)!=null&&t.length&&e.proxy!==qh&&e.proxy!==$me&&(console.warn(`[DEPRECATED] Warning: configuration.proxy points to a custom proxy (${e==null?void 0:e.proxy}).`),console.warn("[DEPRECATED] Action Required: You need to use our new proxy (written in Go). Read more: https://github.com/scalar/scalar/tree/main/examples/proxy-server"))},{immediate:!0})}const Bme={node:["unirest"]},tv=ce({...Bme});function Ume(e,t){return e.flatMap(n=>{var r;return Array.isArray(t.value)?(n.clients=n.clients.filter(i=>!t.value.includes(i.key)),[n]):t.value[n.key]===!0?[]:(Array.isArray(t.value[n.key])&&(n.clients=n.clients.filter(i=>!t.value[n.key].includes(i.key))),(r=n==null?void 0:n.clients)!=null&&r.length?[n]:[])})}const Hme=ae(()=>{var e;const t=Oj();return(e=t.find(n=>n.key==="node"))==null||e.clients.unshift({description:"An HTTP/1.1 client, written from scratch for Node.js.",key:"undici",link:"https://github.com/nodejs/undici",title:"undici"}),Ume(t,tv)});function Rf(){return{availableTargets:Hme,excludedClients:Wd(tv),setExcludedClients:e=>tv.value=e}}const aw=ce(Dc.hash??""),gm=ce(),jme=ce(!1),qme=e=>e.slug?`description/${e.slug}`:"",Q3=e=>{var t;if(!gm.value)return"";const n=new RegExp("^"+((t=gm.value)==null?void 0:t.basePath)+"/?");return decodeURIComponent(e.replace(n,""))},Vme=(e,t)=>{if(!e)return"webhooks";const n=Gm(e),r=encodeURIComponent(n);return`webhook/${t}/${r}`},zme=e=>{if(!e)return"models";const t=Gm(e);return`model/${encodeURIComponent(t)}`},Kme=(e,t)=>`${J3(t)}/${e.httpVerb}${e.path}`,J3=({name:e})=>{const t=Gm(e);return`tag/${encodeURIComponent(t)}`},Wme=(e=aw.value)=>{var t;const n=(t=e.match(/(tag\/[^/]+)/))==null?void 0:t[0],r=e.startsWith("model")?"models":"";return n??r},Gme=()=>{aw.value=gm.value?Q3(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,""))},rr=()=>({hash:aw,getWebhookId:Vme,getModelId:zme,getHeadingId:qme,getOperationId:Kme,getPathRoutingId:Q3,getSectionId:Wme,getTagId:J3,isIntersectionEnabled:jme,pathRouting:gm,updateHash:Gme});function lw(e){return{parameterMap:ae(()=>{var t;const n=((t=e.operation.information)==null?void 0:t.parameters)??[],r={path:[],query:[],header:[],body:[],formData:[]};return e.operation.pathParameters&&e.operation.pathParameters.forEach(i=>{i.in==="path"?r.path.push(i):i.in==="query"?r.query.push(i):i.in==="header"?r.header.push(i):i.in==="body"?r.body.push(i):i.in==="formData"&&r.formData.push(i)}),n&&n.forEach(i=>{i.in==="path"?r.path.push(i):i.in==="query"?r.query.push(i):i.in==="header"?r.header.push(i):i.in==="body"?r.body.push(i):i.in==="formData"&&r.formData.push(i)}),r})}}const Yme=async({url:e,content:t},n)=>{if(e)return cse(e)?await wk(e,n):await wk(e);const r=typeof t=="function"?t():t;if(typeof r=="string")return r;if(typeof r=="object")return Ad(r)};function Xme({specConfig:e,proxy:t}){const n=ce(""),r=qn(Gl()),i=ce(null);function s(o){return o?Ape(o).then(a=>{i.value=null,Object.assign(r,{servers:[],...a})}).catch(a=>{i.value=a.toString()}):Object.assign(r,Gl())}return dt(()=>$b(e),async o=>{var a;if(o){const l=(a=await Yme(o,$b(t)))==null?void 0:a.trim();typeof l=="string"&&(n.value=l)}},{immediate:!0,deep:!0}),dt(n,()=>{s(n.value)}),{rawSpec:n,parsedSpec:r,specErrors:i}}function cw(e){return{responses:ae(()=>{if(!e.information)return[];const{responses:t}=e.information,n=[];return t&&Object.keys(t).forEach(r=>{n.push({name:r,description:t[r].description})}),n})}}const{getHeadingId:WA,getModelId:GA,getOperationId:YA,getSectionId:Qme,getTagId:Z3,getWebhookId:Nb,hash:nv}=rr(),On=ce(void 0);function Jme(e){return On.value=e}const eM=ce(!1),bm=qn(Dc["useSidebarContent-collapsedSidebarItems"]??{});function Zme(e){bm[e]=!bm[e]}function Ob(e,t){bm[e]=t}const ym=ce([]),ege=async e=>{const t=await sm(e),n=QE(t);return t.filter(r=>r.depth===n||r.depth===n+1)},tM=ae(()=>{var e,t,n,r,i,s,o,a,l,c;const{state:u}=lg(),d={},{openApi:{globalSecurity:f}}=TE(),h=[];let p=null;ym.value.forEach(w=>{var T;w.depth===QE(ym.value)?(p={id:WA(w),title:w.value,show:!u.showApiClient,children:[]},h.push(p)):p&&((T=p.children)==null||T.push({id:WA(w),title:w.value,show:!u.showApiClient}))});const m=(t=(e=On.value)==null?void 0:e.tags)==null?void 0:t[0],g=m&&(w=>(w==null?void 0:w.length)!==1||w[0].name!=="default"||w[0].description!=="")((n=On.value)==null?void 0:n.tags)?(i=(r=On.value)==null?void 0:r.tags)==null?void 0:i.filter(w=>{var T;return((T=w.operations)==null?void 0:T.length)>0}).map(w=>{var T;return{id:Z3(w),title:w.name,displayTitle:w["x-displayName"]??w.name,show:!0,children:(T=w.operations)==null?void 0:T.map(_=>{var S;const I=YA(_,w),R=_.name??_.path;return d[I]=R,{id:I,title:R,httpVerb:_.httpVerb,deprecated:((S=_.information)==null?void 0:S.deprecated)??!1,show:!0,select:()=>{u.showApiClient&&I1(_,f)}}})}}):(s=m==null?void 0:m.operations)==null?void 0:s.map(w=>{var T;const _=YA(w,m),S=w.name??w.path;return d[_]=S,{id:_,title:S,httpVerb:w.httpVerb,deprecated:((T=w.information)==null?void 0:T.deprecated)??!1,show:!0,select:()=>{u.showApiClient&&I1(w,f)}}}),b=QP(On.value)&&!eM.value?[{id:GA(),title:"Models",show:!u.showApiClient,children:Object.keys(Ki(On.value)??{}).map(w=>{var T;const _=GA(w);return d[_]=w,{id:_,title:((T=Ki(On.value))==null?void 0:T[w]).title??w,show:!u.showApiClient}})}]:[],y=(o=On.value)!=null&&o["x-tagGroups"]?(l=(a=On.value)==null?void 0:a["x-tagGroups"])==null?void 0:l.map(w=>{const T=[];return w.tags.map(_=>{if(_==="models"&&b.length>0)T.push(b[0]);else{const S=g==null?void 0:g.find(I=>I.title===_);S&&T.push(S)}}),{id:w.name,title:w.name,children:T,show:!0,isGroup:!0}}):void 0,v=lse(On.value)?[{id:Nb(),title:"Webhook",show:!u.showApiClient,children:Object.keys(((c=On.value)==null?void 0:c.webhooks)??{}).map(w=>{var T,_;const S=Nb(w);return d[S]=w,Object.keys(((_=(T=On.value)==null?void 0:T.webhooks)==null?void 0:_[w])??{}).map(I=>{var R,O,K;return{id:Nb(w,I),title:(K=(O=(R=On.value)==null?void 0:R.webhooks)==null?void 0:O[w][I])==null?void 0:K.name,httpVerb:I,show:!u.showApiClient}})}).flat()}]:[];return{entries:[...h,...y??g??[],...y?[]:v,...y?[]:b],titles:d}}),tge=ce(!1),nge=ae(()=>{var e,t;return((t=(e=tM.value)==null?void 0:e.titles)==null?void 0:t[nv.value])??""});function Ai(e){return e!=null&&e.parsedSpec&&(On.value=e.parsedSpec,dt(()=>{var t,n;return(n=(t=On.value)==null?void 0:t.tags)==null?void 0:n.length},()=>{var t,n;if(nv.value){const r=Qme(nv.value);r&&Ob(r,!0)}else{const r=(n=(t=On.value)==null?void 0:t.tags)==null?void 0:n[0];r&&Ob(Z3(r),!0)}}),dt(()=>{var t,n;return(n=(t=On.value)==null?void 0:t.info)==null?void 0:n.description},async()=>{var t,n;const r=(n=(t=On.value)==null?void 0:t.info)==null?void 0:n.description;return r?ym.value=await ege(r):ym.value=[]})),{breadcrumb:nge,items:tM,isSidebarOpen:tge,collapsedSidebarItems:bm,toggleCollapsedSidebarItem:Zme,setCollapsedSidebarItem:Ob,hideModels:eM,setParsedSpec:Jme}}const rge=Se({__name:"SidebarHttpBadge",props:{active:{type:Boolean},method:{}},setup(e){return(t,n)=>(x(),de(A(rl),{class:ut(["sidebar-heading-type",{"sidebar-heading-type-active":t.active}]),method:t.method,property:"--method-color",short:""},null,8,["class","method"]))}}),nM=je(rge,[["__scopeId","data-v-9e6d2bc7"]]),ige=["id"],sge={key:0,class:"sidebar-heading-chevron"},oge=["href"],age={class:"sidebar-heading-link-title"},lge={key:1,class:"sidebar-heading-link-method"},cge={key:1,class:"action-menu"},uge=Se({__name:"SidebarElement",props:{id:{},item:{},isActive:{type:Boolean},hasChildren:{type:Boolean},open:{type:Boolean}},emits:["toggleOpen"],setup(e,{emit:t}){const n=e,r=t,{hash:i,isIntersectionEnabled:s,pathRouting:o}=rr(),a=async()=>{var u,d;n.hasChildren&&r("toggleOpen"),(d=(u=n.item)==null?void 0:u.select)==null||d.call(u),n.open&&(s.value=!1,await Ls(100),s.value=!0)},l=()=>{if(o.value)return o.value.basePath+"/"+n.item.id;{const u=new URL(window.location.href);return u.hash=n.item.id,`${u.pathname}${u.search}${u.hash}`}},c=async u=>{var d,f;if(o.value){u.preventDefault(),n.hasChildren&&r("toggleOpen"),(f=(d=n.item)==null?void 0:d.select)==null||f.call(d),r("toggleOpen"),s.value=!1,i.value=n.item.id;const h=new URL(window.location.href);h.pathname=o.value.basePath+"/"+n.item.id,window.history.pushState({},"",h),mm(n.item.id),await Ls(100),s.value=!0}};return(u,d)=>{var f,h;return x(),j("li",{id:u.id,class:"sidebar-group-item"},[ie("div",{class:ut(["sidebar-heading",{"sidebar-group-item__folder":u.hasChildren,active_page:u.isActive,deprecated:u.item.deprecated??!1}]),onClick:a},[u.hasChildren?(x(),j("p",sge,[Q(A(yf),{class:"toggle-nested-icon",icon:u.open?"ChevronDown":"ChevronRight",label:"Toggle group",size:"xs",onClick:ef(a,["stop"])},null,8,["icon"]),Ie("   ")])):pe("",!0),ie("a",{class:"sidebar-heading-link",href:l(),onClick:c},[(h=(f=u.item)==null?void 0:f.icon)!=null&&h.src?(x(),de(A(on),{key:0,class:"sidebar-icon",icon:u.item.icon.src},null,8,["icon"])):pe("",!0),ie("p",age,Be(u.item.title),1),u.item.httpVerb&&!u.hasChildren?(x(),j("p",lge,[Ie("   "),Q(nM,{active:u.isActive,method:u.item.httpVerb},null,8,["active","method"])])):pe("",!0)],8,oge)],2),u.open?Ue(u.$slots,"default",{key:0},void 0,!0):pe("",!0),u.$slots["action-menu"]?(x(),j("div",cge,[Ue(u.$slots,"action-menu",{},void 0,!0)])):pe("",!0)],8,ige)}}}),Vh=je(uge,[["__scopeId","data-v-4ed1078c"]]),dge=Se({__name:"SidebarGroup",props:{level:{}},setup(e){return(t,n)=>(x(),j("ul",{class:"sidebar-group sidebar-indent-nested",style:xr({"--scalar-sidebar-level":t.level})},[Ue(t.$slots,"default",{},void 0,!0)],4))}}),Db=je(dge,[["__scopeId","data-v-39c84840"]]),fge={class:"sidebar"},hge={class:"sidebar-group-title"},pge=-160,mge=Se({__name:"Sidebar",props:{parsedSpec:{}},setup(e){const t=e,{hash:n,isIntersectionEnabled:r}=rr(),{items:i,toggleCollapsedSidebarItem:s,collapsedSidebarItems:o}=Ai({parsedSpec:t.parsedSpec}),a=ce(null),l=ce(!0);dt(n,u=>{!r.value||l.value||typeof window>"u"||c(u)});const c=u=>{var d,f,h,p;const m=document.getElementById(`sidebar-${u}`);if(!m||!a.value)return;let g=pge;m.getAttribute("data-sidebar-type")==="heading"?g+=m.offsetTop+((d=m.getElementsByClassName("sidebar-heading"))==null?void 0:d[0]).offsetHeight:g+=m.offsetTop+(((f=m.parentElement)==null?void 0:f.offsetTop)??0)+(((p=(h=m.parentElement)==null?void 0:h.parentElement)==null?void 0:p.offsetTop)??0),a.value.scrollTo({top:g,behavior:"smooth"})};return Mt(()=>{setTimeout(()=>c(n.value),500),l.value=!1}),(u,d)=>(x(),j("div",fge,[Ue(u.$slots,"sidebar-start",{},void 0,!0),ie("div",{ref_key:"scrollerEl",ref:a,class:"sidebar-pages custom-scroll custom-scroll-self-contain-overflow"},[Q(Db,{level:0},{default:Y(()=>[(x(!0),j(Ne,null,pt(A(i).entries,f=>(x(),j(Ne,{key:f.id},[f.isGroup?(x(),j(Ne,{key:0},[ie("li",hge,Be(f.displayTitle??f.title),1),(x(!0),j(Ne,null,pt(f.children,h=>(x(),de(Vh,{key:h.id,id:`sidebar-${h.id}`,"data-sidebar-type":"heading",hasChildren:h.children&&h.children.length>0,isActive:A(n)===h.id,item:{id:h.id,title:h.displayTitle??h.title,select:h.select,httpVerb:h.httpVerb,deprecated:h.deprecated??!1},open:A(o)[h.id]??!1,onToggleOpen:async()=>{l.value=!0,A(s)(h.id),await A(Ls)(100),l.value=!1}},{default:Y(()=>{var p;return[h.children&&((p=h.children)==null?void 0:p.length)>0?(x(),de(Db,{key:0,level:1},{default:Y(()=>[(x(!0),j(Ne,null,pt(h.children,m=>(x(),j(Ne,{key:m.id},[f.show?(x(),de(Vh,{key:0,id:`sidebar-${m.id}`,isActive:A(n)===m.id,item:{id:m.id,title:m.displayTitle??m.title,select:m.select,httpVerb:m.httpVerb,deprecated:m.deprecated??!1}},null,8,["id","isActive","item"])):pe("",!0)],64))),128))]),_:2},1024)):pe("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"]))),128))],64)):(x(),j(Ne,{key:1},[f.show?(x(),de(Vh,{key:0,id:`sidebar-${f.id}`,"data-sidebar-type":"heading",hasChildren:f.children&&f.children.length>0,isActive:A(n)===f.id,item:{id:f.id,title:f.displayTitle??f.title,select:f.select,httpVerb:f.httpVerb,deprecated:f.deprecated??!1},open:A(o)[f.id]??!1,onToggleOpen:async()=>{l.value=!0,A(s)(f.id),await A(Ls)(100),l.value=!1}},{default:Y(()=>{var h;return[f.children&&((h=f.children)==null?void 0:h.length)>0?(x(),de(Db,{key:0,level:1},{default:Y(()=>[(x(!0),j(Ne,null,pt(f.children,p=>(x(),j(Ne,{key:p.id},[f.show?(x(),de(Vh,{key:0,id:`sidebar-${p.id}`,isActive:A(n)===p.id,item:{id:p.id,title:p.displayTitle??p.title,select:p.select,httpVerb:p.httpVerb,deprecated:p.deprecated??!1}},null,8,["id","isActive","item"])):pe("",!0)],64))),128))]),_:2},1024)):pe("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])):pe("",!0)],64))],64))),128))]),_:1})],512),Ue(u.$slots,"sidebar-end",{},void 0,!0)]))}}),rM=je(mge,[["__scopeId","data-v-e68ba74a"]]),gge={key:0,class:"api-client-drawer"},bge={class:"api-client-container"},yge={class:"scalar-api-client-height"},vge={class:"scalar-api-client-states"},Ege={class:"t-doc__sidebar"},_ge=Se({__name:"ApiClientModal",props:{parsedSpec:{},overloadShow:{type:Boolean},proxyUrl:{},theme:{}},emits:["toggleDarkMode"],setup(e){const t=MC(()=>Promise.resolve().then(()=>require("./index-DwSL-6br-tf1469ne.cjs")).then(o=>o.ApiClient)),{hideApiClient:n,state:r}=lg(),i=Hm("(max-width: 1000px)"),s=ce(!1);return(o,a)=>(x(),j(Ne,null,[A(r).showApiClient||o.overloadShow?(x(),j("div",gge,[ie("div",bge,[Ue(o.$slots,"header",{},void 0,!0),ie("div",yge,[Q(A(t),{proxyUrl:o.proxyUrl,showSideBar:s.value,theme:o.theme??"none",withDefaultFonts:!1,onEscapeKeyPress:A(n),onToggleSidebar:a[2]||(a[2]=l=>s.value=!s.value)},{"address-bar-controls":Y(()=>[ie("div",vge,[ie("button",{class:"scalar-api-client-states-button scalar-api-client-states-button__endpoints",type:"button",onClick:a[0]||(a[0]=l=>s.value=!s.value)},[Q(A(on),{icon:s.value?"SideBarClosed":"SideBarOpen",size:"sm"},null,8,["icon"])]),ie("button",{class:"scalar-api-client-states-button",type:"button",onClick:a[1]||(a[1]=(...l)=>A(n)&&A(n)(...l))},[Q(A(on),{icon:"Close",size:"sm"})])])]),sidebar:Y(()=>[ie("div",Ege,[Ya(Q(A(rM),{parsedSpec:o.parsedSpec},{"sidebar-start":Y(()=>[Ue(o.$slots,"sidebar-start",{},void 0,!0)]),_:3},8,["parsedSpec"]),[[wc,!A(i)]])])]),_:3},8,["proxyUrl","showSideBar","theme","onEscapeKeyPress"])])])])):pe("",!0),A(r).showApiClient?(x(),j("div",{key:1,class:"api-client-drawer-exit",onClick:a[3]||(a[3]=(...l)=>A(n)&&A(n)(...l))})):pe("",!0)],64))}}),wge=je(_ge,[["__scopeId","data-v-206ad1a1"]]),iM=()=>({targetKey:"shell",clientKey:"curl"}),mc=qn(iM());function Tge(){JP(mc,iM())}function sM(e){var t;const{availableTargets:n}=Rf();return((t=n.value.find(r=>r.key===e.targetKey))==null?void 0:t.title)??e.targetKey}function oM(e){var t,n;const{availableTargets:r}=Rf();return((n=(t=r.value.find(i=>i.key===e.targetKey))==null?void 0:t.clients.find(i=>i.key===e.clientKey))==null?void 0:n.title)??e.clientKey}const Sge=e=>{Object.assign(mc,{...mc,...e})},kge=ae(()=>sM(mc)),xge=ae(()=>oM(mc)),uw=()=>({httpClient:Wd(mc),resetState:Tge,setHttpClient:Sge,httpTargetTitle:kge,httpClientTitle:xge,getClientTitle:oM,getTargetTitle:sM}),Age={key:0},Cge={class:"authentication-header"},Nge={class:"selector"},Oge={key:0,class:"authentication-content"},Dge=Se({__name:"Authentication",props:{parsedSpec:{}},setup(e){const t=e,{authentication:n,setAuthentication:r}=Ic(),i=ae(()=>{var s,o,a;if(!n.preferredSecurityScheme)return!1;const l=(a=(o=(s=t.parsedSpec)==null?void 0:s.components)==null?void 0:o.securitySchemes)==null?void 0:a[n.preferredSecurityScheme];return!!l&&"type"in l&&!!l.type});return dt(()=>{var s,o;return(o=(s=t.parsedSpec)==null?void 0:s.components)==null?void 0:o.securitySchemes},()=>{var s,o;r({securitySchemes:(o=(s=t.parsedSpec)==null?void 0:s.components)==null?void 0:o.securitySchemes})},{deep:!0,immediate:!0}),Uo(async()=>{const s=vc();await Ls(1),s.payload.data["useGlobalStore-authentication"]=n}),(s,o)=>{var a,l,c,u,d;return A(ase)(s.parsedSpec)?(x(),j("div",Age,[ie("div",Cge,[ie("div",Nge,[Q(A(GP),{value:(l=(a=s.parsedSpec)==null?void 0:a.components)==null?void 0:l.securitySchemes},null,8,["value"])])]),i.value?(x(),j("div",Oge,[A(n).preferredSecurityScheme?(x(),de(A(WP),{key:0,value:(d=(u=(c=s.parsedSpec)==null?void 0:c.components)==null?void 0:u.securitySchemes)==null?void 0:d[A(n).preferredSecurityScheme]},null,8,["value"])):pe("",!0)])):pe("",!0)])):pe("",!0)}}}),Ige=je(Dge,[["__scopeId","data-v-3bb0413b"]]),Rge=["innerHTML"],Pge=Se({__name:"MarkdownRenderer",props:{value:{},withImages:{type:Boolean,default:!1}},setup(e){const t=e,n=ce(""),r=t.withImages?[]:["img","picture"],i={...rd,tagNames:[...(rd.tagNames||[]).filter(s=>!r.includes(s)),"abbr"],attributes:{...rd.attributes,abbr:["title"]}};return dt(()=>t.value,async()=>{const s=await z2().use(C2).use(zX).use(AQ,{allowDangerousHtml:!0}).use(fG).use(wG,i).use(KV,{detect:!0}).use(Zj,{target:"_blank"}).use(S7).use(hY).process(t.value);n.value=String(s.value)},{immediate:!0}),Uo(async()=>await Ls(1)),(s,o)=>(x(),j("div",{class:"markdown",innerHTML:n.value},null,8,Rge))}}),Fr=je(Pge,[["__scopeId","data-v-5a5f5321"]]),Lge=["title","innerHTML"],Mge=Se({__name:"ServerItem",props:{value:{},variables:{}},setup(e){const t=e,{copyToClipboard:n}=Yc(),r=ae(()=>{var s;const o=(((s=t.value)==null?void 0:s.url)??"").replace(/(<([^>]+)>)/gi,"");return XP(o,a=>{var l;const c=(l=t.variables)==null?void 0:l.find(u=>u.name===a);return`<span class="base-url-variable">${((c==null?void 0:c.value)??"")!==""?c==null?void 0:c.value:`{${a}}`}</span>`})}),i=ae(()=>r.value.replace(/(<([^>]+)>)/gi,""));return(s,o)=>s.value?(x(),j("a",{key:0,class:"base-url",title:s.value.description,onClick:o[0]||(o[0]=a=>A(n)(i.value)),innerHTML:r.value},null,8,Lge)):pe("",!0)}}),$ge=je(Mge,[["__scopeId","data-v-0eae9170"]]),Fge={key:0},Bge=["for"],Uge=["id","value","onInput"],Hge=["value"],jge={class:"input-value"},qge=["id","value","onInput"],Vge=Se({__name:"ServerVariables",props:{value:{}},setup(e){const{server:t,setServer:n}=vf(),r=(s,o)=>{const a=o.target.value,l=[...t.variables],c=l.findIndex(u=>u.name===s);l[c].value=a,n({variables:l})},i=s=>{const o=t.variables.findIndex(a=>a.name===s);return t.variables[o].value??""};return(s,o)=>s.value?(x(),j("div",Fge,[(x(!0),j(Ne,null,pt(s.value,a=>(x(),j("div",{key:a.name,class:"input"},[ie("label",{for:`variable-${a.name}`},[ie("code",null,Be(a.name),1)],8,Bge),a.enum?(x(),j(Ne,{key:0},[ie("select",{id:`variable-${a.name}`,value:i(a.name),onInput:l=>r(a.name,l)},[(x(!0),j(Ne,null,pt(a.enum,l=>(x(),j("option",{key:l,value:l},Be(l),9,Hge))),128))],40,Uge),ie("div",jge,Be(a.default),1)],64)):(x(),j("input",{key:1,id:`variable-${a.name}`,autocomplete:"off",placeholder:"value",spellcheck:"false",type:"text",value:i(a.name),onInput:l=>r(a.name,l)},null,40,qge))]))),128))])):pe("",!0)}}),zge=je(Vge,[["__scopeId","data-v-a812e319"]]),Kge=e=>(er("data-v-899af270"),e=e(),tr(),e),Wge={key:0},Gge=Kge(()=>ie("span",{class:"scalar-card-serverlist-title"},"Base URL",-1)),Yge={class:"scalar-card-serverlist"},Xge={class:"scalar-card-serverlist-container"},Qge={class:"server-item"},Jge={class:"server-selector"},Zge=["value"],e0e=["value"],t0e={key:0,muted:""},n0e={class:"description"},r0e=Se({__name:"BaseUrl",setup(e){const{server:t,setServer:n}=vf(),r=ce(0);return dt([r,()=>t.servers],()=>{var i,s,o;if(!t.servers.length)return;const a=((i=t.servers[r.value])==null?void 0:i.variables)??{},l=a?Object.keys(a).map(c=>{var u;return{name:c,value:((u=a[c].default)==null?void 0:u.toString())??""}}):[];SP((s=t.servers[r.value])==null?void 0:s.url).filter(c=>!a[c]).forEach(c=>{l.push({name:c,value:""})}),n({selectedServer:r.value,description:(o=t.servers[r.value])==null?void 0:o.description,variables:l})},{immediate:!0,deep:!0}),(i,s)=>A(t).servers.length>0?(x(),j("div",Wge,[Gge,ie("div",Yge,[ie("div",Xge,[ie("div",Qge,[ie("div",Jge,[A(t).servers.length>1?(x(),j("select",{key:0,value:r.value,onInput:s[0]||(s[0]=o=>r.value=parseInt(o.target.value,10))},[(x(!0),j(Ne,null,pt(A(t).servers,(o,a)=>(x(),j("option",{key:a,value:a},Be(o.url),9,e0e))),128))],40,Zge)):pe("",!0),Q($ge,{value:A(t).servers[r.value],variables:A(t).variables},null,8,["value","variables"]),A(t).servers.length>1?(x(),de(A(on),{key:1,icon:"ChevronDown"})):pe("",!0)])]),Q(zge,{value:A(t).variables},null,8,["value"])])]),A(t).description?(x(),j("div",t0e,[ie("div",n0e,[Q(A(Fr),{value:A(t).description},null,8,["value"])])])):pe("",!0)])):pe("",!0)}}),i0e=je(r0e,[["__scopeId","data-v-899af270"]]),aM=e=>(er("data-v-33a6f59a"),e=e(),tr(),e),s0e=["onClick"],o0e=["value"],a0e=["label"],l0e=["value"],c0e={class:"client-libraries-icon__more"},u0e={key:1,class:"client-libraries-icon",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg"},d0e=aM(()=>ie("g",{fill:"currentColor","fill-rule":"nonzero"},[ie("path",{d:"M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0"})],-1)),f0e=[d0e],h0e=aM(()=>ie("span",null,"More",-1)),p0e=Se({__name:"ClientSelector",setup(e){const{httpClient:t,setHttpClient:n,getClientTitle:r,getTargetTitle:i}=uw(),{availableTargets:s}=Rf(),o=ce(),a=[{targetKey:"shell",clientKey:"curl"},{targetKey:"ruby",clientKey:"native"},{targetKey:"node",clientKey:"undici"},{targetKey:"php",clientKey:"guzzle"},{targetKey:"python",clientKey:"python3"}].filter(d=>s.value.find(f=>f.key===d.targetKey&&f.clients.find(h=>h.key===d.clientKey))),l=d=>`programming-language-${d}`,c=d=>d.targetKey===t.targetKey&&d.clientKey===t.clientKey,u=d=>a.some(f=>f.targetKey===d.targetKey&&f.clientKey===d.clientKey);return(d,f)=>(x(),j("div",{ref_key:"containerRef",ref:o,class:"client-libraries-content"},[(x(!0),j(Ne,null,pt(A(a),h=>(x(),j("div",{key:h.clientKey,class:ut(["client-libraries rendered-code-sdks",{"client-libraries__active":c(h)}]),onClick:()=>A(n)(h)},[ie("div",{class:ut(`client-libraries-icon__${h.targetKey}`)},[Q(A(on),{class:"client-libraries-icon",icon:l(h.targetKey)},null,8,["icon"])],2),ie("span",null,Be(A(i)(h)),1)],10,s0e))),128)),ie("div",{class:ut(["client-libraries client-libraries__select",{"client-libraries__active":A(t)&&!u(A(t))}])},[ie("select",{class:"language-select",value:JSON.stringify(A(t)),onInput:f[0]||(f[0]=h=>A(n)(JSON.parse(h.target.value)))},[(x(!0),j(Ne,null,pt(A(s),h=>(x(),j("optgroup",{key:h.key,label:h.title},[(x(!0),j(Ne,null,pt(h.clients,p=>(x(),j("option",{key:p.key,value:JSON.stringify({targetKey:h.key,clientKey:p.key})},Be(A(r)({targetKey:h.key,clientKey:p.key})),9,l0e))),128))],8,a0e))),128))],40,o0e),ie("div",c0e,[A(t)&&!u(A(t))?(x(),j("div",{key:0,class:ut(`client-libraries-icon__${A(t).targetKey}`)},[Q(A(on),{class:"client-libraries-icon",icon:l(A(t).targetKey)},null,8,["icon"])],2)):(x(),j("svg",u0e,f0e))]),h0e],2)],512))}}),m0e=je(p0e,[["__scopeId","data-v-33a6f59a"]]),g0e=e=>(er("data-v-a067531c"),e=e(),tr(),e),b0e=g0e(()=>ie("div",{class:"client-libraries-heading"},"Client Libraries",-1)),y0e={class:"selected-client card-footer",muted:""},v0e=Se({__name:"ClientLibraries",setup(e){const{httpTargetTitle:t,httpClientTitle:n}=uw();return(r,i)=>(x(),j("div",null,[b0e,ie("div",null,[Q(m0e)]),ie("div",y0e,Be(A(n))+" "+Be(A(t)),1)]))}}),E0e=je(v0e,[["__scopeId","data-v-a067531c"]]),_0e={},w0e={class:"badge"};function T0e(e,t){return x(),j("div",w0e,[Ue(e.$slots,"default",{},void 0,!0)])}const qd=je(_0e,[["render",T0e],["__scopeId","data-v-190574ac"]]),dw=Se({__name:"IntersectionObserver",props:{id:{},is:{}},emits:["intersecting"],setup(e,{emit:t}){const n=e,r=t,i=ce(),s=a=>{const l=a.offsetHeight;return`${l/2}px 0px ${l/2}px 0px`},o=a=>a.offsetHeight<window.innerHeight?.8:.5;return Mt(()=>{if(i.value){const a={rootMargin:s(i.value),threshold:o(i.value)};Z6(i,([{isIntersecting:l}])=>{l&&n.id&&r("intersecting")},a)}}),(a,l)=>(x(),de(Ei(a.is??"div"),{id:a.id,ref_key:"intersectionObserverRef",ref:i},{default:Y(()=>[Ue(a.$slots,"default")]),_:3},8,["id"]))}}),S0e=Se({__name:"Section",props:{id:{},label:{}},setup(e){const t=e,{getSectionId:n,hash:r,isIntersectionEnabled:i,pathRouting:s}=rr(),{setCollapsedSidebarItem:o}=Ai();function a(){var l;if(!t.label||!i.value)return;const c=new URL(window.location.href),u=t.id??"";s.value?c.pathname=s.value.basePath+"/"+u:c.hash=u,r.value=u,window.history.replaceState({},"",c),(l=t.id)!=null&&l.startsWith("model")&&o(n(t.id),!0)}return(l,c)=>(x(),de(dw,{is:"section",id:l.id,class:"section",onIntersecting:a},{default:Y(()=>[Ue(l.$slots,"default",{},void 0,!0)]),_:3},8,["id"]))}}),Xc=je(S0e,[["__scopeId","data-v-0494f9f3"]]),k0e={class:"section-accordion-button-content"},x0e={key:0,class:"section-accordion-button-actions"},A0e={key:0,class:"section-accordion-description"},C0e={class:"section-accordion-content-card"},N0e=Se({__name:"SectionAccordion",props:{id:{},transparent:{type:Boolean}},setup(e){const t=ce(),n=J6(t);return(r,i)=>(x(),de(dw,{id:r.id,class:"section-wrapper"},{default:Y(()=>[Q(A(Mm),{as:"section",class:ut(["section-accordion",{"section-accordion-transparent":r.transparent}])},{default:Y(({open:s})=>[Q(A($m),{ref_key:"button",ref:t,class:"section-accordion-button"},{default:Y(()=>[ie("div",k0e,[Ue(r.$slots,"title",{},void 0,!0)]),r.$slots.actions?(x(),j("div",x0e,[Ue(r.$slots,"actions",{active:A(n)||s},void 0,!0)])):pe("",!0),Q(A(on),{class:"section-accordion-chevron",icon:s?"ChevronDown":"ChevronRight"},null,8,["icon"])]),_:2},1536),Q(A(Fm),{class:"section-accordion-content"},{default:Y(()=>[r.$slots.description?(x(),j("div",A0e,[Ue(r.$slots,"description",{},void 0,!0)])):pe("",!0),ie("div",C0e,[Ue(r.$slots,"default",{},void 0,!0)])]),_:3})]),_:3},8,["class"])]),_:3},8,["id"]))}}),lM=je(N0e,[["__scopeId","data-v-07cabcb0"]]),O0e={},D0e={class:"section-column"};function I0e(e,t){return x(),j("div",D0e,[Ue(e.$slots,"default",{},void 0,!0)])}const gc=je(O0e,[["render",I0e],["__scopeId","data-v-d64e7382"]]),R0e={},P0e={class:"section-columns"};function L0e(e,t){return x(),j("div",P0e,[Ue(e.$slots,"default",{},void 0,!0)])}const fw=je(R0e,[["render",L0e],["__scopeId","data-v-8b9602bf"]]),M0e={},$0e={class:"section-container"};function F0e(e,t){return x(),j("div",$0e,[Ue(e.$slots,"default",{},void 0,!0)])}const Pf=je(M0e,[["render",F0e],["__scopeId","data-v-34b26958"]]),B0e={class:"section-accordion-wrapper"},U0e={class:"section-accordion-title"},H0e=Se({__name:"SectionContainerAccordion",setup(e){return(t,n)=>(x(),j("div",B0e,[Q(A(Mm),{as:"div",class:"section-accordion",defaultOpen:""},{default:Y(({open:r})=>[Q(A($m),{class:"section-accordion-button"},{default:Y(()=>[Q(A(on),{class:"section-accordion-chevron",icon:r?"ChevronDown":"ChevronRight"},null,8,["icon"]),ie("div",U0e,[Ue(t.$slots,"title",{},void 0,!0)])]),_:2},1024),Q(A(Fm),{class:"section-accordion-content"},{default:Y(()=>[Ue(t.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]))}}),cM=je(H0e,[["__scopeId","data-v-2049975e"]]),j0e=Se({__name:"LoadingSkeleton",props:{lines:{default:1}},setup(e){return(t,n)=>(x(!0),j(Ne,null,pt([...Array(t.lines).keys()],r=>(x(),j("div",{key:r,class:ut(["loading",{"single-line":t.lines===1}])},null,2))),128))}}),uM=je(j0e,[["__scopeId","data-v-c90b2c46"]]),q0e={class:"section-content"},V0e=Se({__name:"SectionContent",props:{loading:{type:Boolean,default:!1}},setup(e){return(t,n)=>(x(),j("div",q0e,[t.loading?(x(),de(uM,{key:1,lines:8})):Ue(t.$slots,"default",{key:0},void 0,!0)]))}}),Qc=je(V0e,[["__scopeId","data-v-9735459e"]]),z0e=Se({__name:"SectionHeader",props:{loading:{type:Boolean,default:!1},tight:{type:Boolean,default:!1},level:{default:1}},setup(e){return(t,n)=>t.loading?(x(),de(uM,{key:0})):(x(),de(Ei(`h${t.level}`),{key:1,class:ut(["section-header",{tight:t.tight}])},{default:Y(()=>[Ue(t.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),Vo=je(z0e,[["__scopeId","data-v-3bd1b9f0"]]),K0e={key:0,class:"introduction-description"},W0e=Se({__name:"Description",props:{value:{}},setup(e){const t=e,n=`components-Content-Introduction-Description-sections${wE(t.value)}`,r=G6(async()=>{if(!t.value)return[];const c=await sm(t.value),u=QE(c);return await Promise.all(Ope(t.value,u).map(async d=>({heading:(await sm(d))[0],content:d})))},Dc[n]??[]),{getHeadingId:i,hash:s,isIntersectionEnabled:o,pathRouting:a}=rr();function l(c=""){if(!o.value)return;const u=new URL(window.location.href);a.value?u.pathname=a.value.basePath+"/"+c:u.hash=c,s.value=c,window.history.replaceState({},"",u)}return Uo(async()=>{const c=vc();await Ls(1),c.payload.data[n]=r.value}),(c,u)=>c.value?(x(),j("div",K0e,[(x(!0),j(Ne,null,pt(A(r),(d,f)=>(x(),j(Ne,{key:f},[d.heading?(x(),de(dw,{key:0,id:A(i)(d.heading),class:"introduction-description-heading",onIntersecting:()=>l(A(i)(d.heading))},{default:Y(()=>[Q(A(Fr),{value:d.content,withImages:""},null,8,["value"])]),_:2},1032,["id","onIntersecting"])):(x(),de(A(Fr),{key:1,value:d.content,withImages:""},null,8,["value"]))],64))),128))])):pe("",!0)}}),G0e=je(W0e,[["__scopeId","data-v-5e475391"]]),Y0e={class:"download"},X0e={class:"download-cta"},Q0e=Se({__name:"DownloadSpec",props:{specTitle:{}},setup(e){const t=e,n=rn(W3),r=()=>{G3.emit({id:"",specTitle:t.specTitle})};return(i,s)=>{var o;return x(),j("div",Y0e,[ie("div",X0e,[(o=A(n))!=null&&o()?pe("",!0):(x(),j("button",{key:0,class:"download-button",type:"button",onClick:r}," Download OpenAPI Spec "))])])}}}),J0e=je(Q0e,[["__scopeId","data-v-810904a4"]]),Z0e={class:"badges"},ebe={class:"sticky-cards"},tbe=Se({__name:"Introduction",props:{info:{},parsedSpec:{}},setup(e){const t=e,n=new f2,r=ae(()=>t.parsedSpec.openapi??t.parsedSpec.swagger??""),i=ae(()=>n.slug(t.info.title??""));return(s,o)=>(x(),de(A(Pf),null,{default:Y(()=>[Q(A(Xc),{class:"introduction-section"},{default:Y(()=>[Q(A(Qc),{loading:!s.info.description&&!s.info.title},{default:Y(()=>[Q(A(fw),null,{default:Y(()=>[Q(A(gc),null,{default:Y(()=>[ie("div",Z0e,[s.info.version?(x(),de(A(qd),{key:0},{default:Y(()=>[Ie(Be(s.info.version),1)]),_:1})):pe("",!0),r.value?(x(),de(A(qd),{key:1},{default:Y(()=>[Ie(" OAS "+Be(r.value),1)]),_:1})):pe("",!0)]),Q(A(Vo),{level:1,loading:!s.info.title,tight:""},{default:Y(()=>[Ie(Be(s.info.title),1)]),_:1},8,["loading"]),Q(J0e,{specTitle:i.value},null,8,["specTitle"]),Q(G0e,{value:s.info.description},null,8,["value"])]),_:1}),s.$slots.aside?(x(),de(A(gc),{key:0},{default:Y(()=>[ie("div",ebe,[Ue(s.$slots,"aside",{},void 0,!0)])]),_:3})):pe("",!0)]),_:3})]),_:3},8,["loading"]),Ue(s.$slots,"after",{},void 0,!0)]),_:3})]),_:3}))}}),nbe=je(tbe,[["__scopeId","data-v-30c2e131"]]),rbe=Symbol(),rv=Mv(rbe),vm=Se({__name:"Lazy",props:{id:{},isLazy:{type:Boolean,default:!0},lazyTimeout:{default:0}},setup(e){const t=e,n=(i=()=>{})=>{typeof window>"u"||("requestIdleCallback"in window?setTimeout(()=>window.requestIdleCallback(i),t.lazyTimeout):setTimeout(()=>Qn(i),t.lazyTimeout??300))},r=ce(!t.isLazy);return t.isLazy?n(()=>{r.value=!0,t.id&&Qn(()=>rv.emit({id:t.id}))}):t.id&&Qn(()=>rv.emit({id:t.id})),(i,s)=>r.value?Ue(i.$slots,"default",{key:0}):pe("",!0)}}),ibe={key:0,class:"screenreader-only"},sbe=Se({__name:"ScreenReader",props:{if:{type:Boolean,default:!0}},setup(e){return(t,n)=>t.$props.if?(x(),j("span",ibe,[Ue(t.$slots,"default",{},void 0,!0)])):Ue(t.$slots,"default",{key:1},void 0,!0)}}),dM=je(sbe,[["__scopeId","data-v-681ebf2c"]]),obe=e=>(er("data-v-d9801d4e"),e=e(),tr(),e),abe={class:"label"},lbe={class:"anchor"},cbe=obe(()=>ie("span",null,"​",-1)),ube=Se({__name:"Anchor",props:{id:{}},setup(e){const{copyToClipboard:t}=Yc(),n=r=>{const i=new URL(window.location.href);return i.hash=r,i.toString()};return(r,i)=>(x(),j("span",abe,[Ue(r.$slots,"default",{},void 0,!0),ie("span",lbe,[cbe,ie("button",{class:"anchor-copy",type:"button",onClick:i[0]||(i[0]=ef(s=>A(t)(n(r.id)),["stop"]))},[Ie(" # "),Q(dM,null,{default:Y(()=>[Ie('Copy link to "'),Ue(r.$slots,"default",{},void 0,!0),Ie('"')]),_:3})])])]))}}),zo=je(ube,[["__scopeId","data-v-d9801d4e"]]),dbe={},fbe={class:"scalar-card"};function hbe(e,t){return x(),j("div",fbe,[Ue(e.$slots,"default",{},void 0,!0)])}const Zg=je(dbe,[["render",hbe],["__scopeId","data-v-dcabb131"]]),pbe=Se({__name:"CardContent",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(e){return(t,n)=>(x(),j("div",{class:ut(["scalar-card-content",{"scalar-card--muted":t.muted,"scalar-card--contrast":t.contrast,"scalar-card--frameless":t.frameless,"scalar-card--transparent":t.transparent,"scalar-card--borderless":t.borderless}])},[Ue(t.$slots,"default",{},void 0,!0)],2))}}),Jc=je(pbe,[["__scopeId","data-v-5312c2e0"]]),mbe={class:"scalar-card-header-slots"},gbe={class:"scalar-card-header-slot scalar-card-header-title"},bbe={class:"scalar-card-header-slot scalar-card-header-actions"},ybe=Se({__name:"CardHeader",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(e){const t=e;return(n,r)=>(x(),de(Jc,Ho(t,{class:"scalar-card-header"}),{default:Y(()=>[ie("div",mbe,[ie("div",gbe,[Ue(n.$slots,"default",{},void 0,!0)]),ie("div",bbe,[Ue(n.$slots,"actions",{},void 0,!0)])])]),_:3},16))}}),e0=je(ybe,[["__scopeId","data-v-bbd0c20a"]]),vbe=Se({__name:"CardFooter",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(e){const t=e;return(n,r)=>(x(),de(Jc,ai(qr(t)),{default:Y(()=>[Ue(n.$slots,"default",{},void 0,!0)]),_:3},16))}}),hw=je(vbe,[["__scopeId","data-v-918ab8d6"]]),Ebe=Se({__name:"CardTabHeader",emits:["change"],setup(e,{emit:t}){const n=t,r=i=>{n("change",i)};return(i,s)=>(x(),de(e0,{class:"scalar-card-header-tabs"},{actions:Y(()=>[Ue(i.$slots,"actions",{},void 0,!0)]),default:Y(()=>[Q(A(MN),{onChange:r},{default:Y(()=>[Q(A($N),{class:"tab-list custom-scroll"},{default:Y(()=>[Ue(i.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3}))}}),_be=je(Ebe,[["__scopeId","data-v-6a91b57c"]]),wbe=Se({__name:"CardTab",setup(e){return(t,n)=>(x(),de(A(FN),{as:"template"},{default:Y(({selected:r})=>[ie("button",{class:ut({tab:!0,"tab-selected":r}),type:"button"},[ie("span",null,[Ue(t.$slots,"default",{},void 0,!0)])],2)]),_:3}))}}),Tbe=je(wbe,[["__scopeId","data-v-f373ecc2"]]),Sbe=["value"],kbe=["label"],xbe=["value"],Abe=["value"],pw=Se({__name:"TextSelect",props:{modelValue:{},options:{}},emits:["update:modelValue"],setup(e){return(t,n)=>(x(),j("div",{class:ut(["text-select",t.options.length===1?"text-select--single-option":""])},[ie("span",null,[Ue(t.$slots,"default")]),ie("select",{value:t.modelValue,onInput:n[0]||(n[0]=r=>t.$emit("update:modelValue",r.target.value))},[(x(!0),j(Ne,null,pt(t.options,r=>(x(),j(Ne,{key:r.value},[r.options?(x(),j("optgroup",{key:0,label:r.label},[(x(!0),j(Ne,null,pt(r.options,i=>(x(),j("option",{key:i.value,value:i.value},Be(i.label),9,xbe))),128))],8,kbe)):(x(),j("option",{key:r.value,value:r.value},Be(r.label),9,Abe))],64))),128))],40,Sbe)],2))}}),Cbe={class:"request-header"},Nbe=Se({__name:"CustomRequestExamples",props:{operation:{},examples:{}},setup(e){const t=e,n=ce(0),r=ae(()=>({C:"c","C#":"csharp",Go:"go",HTML:"html",Java:"java",JavaScript:"javascript",Kotlin:"kotlin","Objective-C":"objc",PowerShell:"powershell",Python:"python",Ruby:"ruby",Shell:"shell",Swift:"swift",TypeScript:"javascript",cURL:"shell"})[t.examples[n.value].lang]??t.examples[n.value].lang),i=ae(()=>t.examples[n.value]);dt(t.examples,()=>{t.examples[n.value]==="undefined"&&(n.value=0)});const{copyToClipboard:s}=Yc();return(o,a)=>(x(),de(A(Zg),{class:"dark-mode"},{default:Y(()=>[Q(A(e0),{muted:""},{actions:Y(()=>[Q(pw,{class:"request-client-picker",modelValue:n.value,options:o.examples.map((l,c)=>({value:c.toString(),label:l.label})),"onUpdate:modelValue":a[0]||(a[0]=l=>(n.value=parseInt(l),10))},{default:Y(()=>[Ie(Be(i.value.label),1)]),_:1},8,["modelValue","options"]),ie("button",{class:"copy-button",type:"button",onClick:a[1]||(a[1]=l=>A(s)(i.value.source.trim()))},[Q(A(on),{icon:"Clipboard",width:"10px"})])]),default:Y(()=>[ie("div",Cbe,[Q(A(rl),{class:"request-method",method:o.operation.httpVerb},null,8,["method"]),Ue(o.$slots,"header",{},void 0,!0)])]),_:3}),Q(A(Jc),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:Y(()=>[Q(A(fs),{content:i.value.source.trim(),lang:r.value,lineNumbers:""},null,8,["content","lang"])]),_:1}),o.$slots.footer?(x(),de(A(hw),{key:0,class:"scalar-card-footer",contrast:""},{default:Y(()=>[Ue(o.$slots,"footer",{},void 0,!0)]),_:3})):pe("",!0)]),_:3}))}}),Obe=je(Nbe,[["__scopeId","data-v-18ba624d"]]),Dbe={class:"schema-type"},Ibe=["title"],Rbe=Se({__name:"SchemaHeading",props:{value:{},name:{}},setup(e){return(t,n)=>{var r,i,s,o,a,l;return x(),j("span",Dbe,[ie("span",{class:"schema-type-icon",title:typeof t.value.type=="string"?t.value.type:Array.isArray(t.value.type)?t.value.type.join(" | "):"unkown type"},[t.value.type==="object"?(x(),j(Ne,{key:0},[Ie(" {} ")],64)):pe("",!0),t.value.type==="array"?(x(),j(Ne,{key:1},[Ie(" [] ")],64)):pe("",!0),t.value.enum?(x(),j(Ne,{key:2},[Ie(" enum ")],64)):pe("",!0)],8,Ibe),(i=(r=t.value)==null?void 0:r.xml)!=null&&i.name&&((o=(s=t.value)==null?void 0:s.xml)==null?void 0:o.name)!=="##default"?(x(),j(Ne,{key:0},[Ie(" <"+Be((l=(a=t.value)==null?void 0:a.xml)==null?void 0:l.name)+" /> ",1)],64)):t.name?(x(),j(Ne,{key:1},[Ie(Be(t.name),1)],64)):(x(),j(Ne,{key:2},[Ie(Be(t.value.type),1)],64))])}}}),fM=je(Rbe,[["__scopeId","data-v-6c5c3c96"]]),Pbe={key:0,class:"property-detail-prefix"},Lbe={key:1,class:"property-detail-value"},Mbe={key:2,class:"property-detail-value"},$be=Se({__name:"SchemaPropertyDetail",props:{truncate:{type:Boolean},code:{type:Boolean}},setup(e){return(t,n)=>(x(),j("span",{class:ut(["property-detail",{"property-detail-truncate":t.truncate}])},[t.$slots.prefix?(x(),j("div",Pbe,[Ue(t.$slots,"prefix",{},void 0,!0),Ie("  ")])):pe("",!0),t.code?(x(),j("code",Lbe,[Ue(t.$slots,"default",{},void 0,!0)])):(x(),j("span",Mbe,[Ue(t.$slots,"default",{},void 0,!0)]))],2))}}),jr=je($be,[["__scopeId","data-v-16d94ef5"]]),Fbe={class:"property-heading"},Bbe={key:0,class:"property-name"},Ube={key:1,class:"property-additional"},Hbe={key:2,class:"property-deprecated"},jbe={key:3,class:"property-required"},qbe={key:4,class:"property-const"},Vbe={key:5,class:"property-details"},zbe={key:6,class:"property-write-only"},Kbe={key:7,class:"property-read-only"},Wbe=Se({__name:"SchemaPropertyHeading",props:{value:{},enum:{type:Boolean},required:{type:Boolean,default:!1},additional:{type:Boolean}},setup(e){const t=["oneOf","anyOf","allOf","not"];return(n,r)=>{var i,s,o,a,l,c,u;return x(),j("div",Fbe,[n.$slots.name?(x(),j("div",Bbe,[Ue(n.$slots,"name",{},void 0,!0)])):pe("",!0),n.additional?(x(),j("div",Ube,[(i=n.value)!=null&&i["x-additionalPropertiesName"]?(x(),j(Ne,{key:0},[Ie(Be(n.value["x-additionalPropertiesName"]),1)],64)):(x(),j(Ne,{key:1},[Ie(" additional properties ")],64))])):pe("",!0),(s=n.value)!=null&&s.deprecated?(x(),j("div",Hbe,[Q(A(qd),null,{default:Y(()=>[Ie("deprecated")]),_:1})])):pe("",!0),n.required?(x(),j("div",jbe," required ")):pe("",!0),(o=n.value)!=null&&o.const||(a=n.value)!=null&&a.enum&&n.value.enum.length===1?(x(),j("div",qbe,[Q(jr,{truncate:""},{prefix:Y(()=>[Ie("const:")]),default:Y(()=>[Ie(" "+Be(n.value.const??n.value.enum[0]),1)]),_:1})])):(l=n.value)!=null&&l.type?(x(),j("div",Vbe,[n.additional?(x(),de(jr,{key:0},{prefix:Y(()=>[Ie("key:")]),default:Y(()=>[Ie(" string ")]),_:1})):pe("",!0),Q(jr,null,Xd({default:Y(()=>{var d,f,h;return[(f=(d=n.value)==null?void 0:d.items)!=null&&f.type?(x(),j(Ne,{key:0},[Ie(Be(n.value.type)+" "+Be(n.value.items.type)+"[] ",1)],64)):(x(),j(Ne,{key:1},[Ie(Be(Array.isArray(n.value.type)?n.value.type.join(" | "):n.value.type)+" "+Be((h=n.value)!=null&&h.nullable?" | nullable":""),1)],64)),n.value.minItems||n.value.maxItems?(x(),j(Ne,{key:2},[Ie(Be(n.value.minItems)+"…"+Be(n.value.maxItems),1)],64)):pe("",!0)]}),_:2},[n.additional?{name:"prefix",fn:Y(()=>[Ie("value:")]),key:"0"}:void 0]),1024),n.value.minLength?(x(),de(jr,{key:1},{prefix:Y(()=>[Ie("min:")]),default:Y(()=>[Ie(" "+Be(n.value.minLength),1)]),_:1})):pe("",!0),n.value.maxLength?(x(),de(jr,{key:2},{prefix:Y(()=>[Ie("max:")]),default:Y(()=>[Ie(" "+Be(n.value.maxLength),1)]),_:1})):pe("",!0),n.value.uniqueItems?(x(),de(jr,{key:3},{default:Y(()=>[Ie(" unique! ")]),_:1})):pe("",!0),n.value.format?(x(),de(jr,{key:4},{default:Y(()=>[Ie(Be(n.value.format),1)]),_:1})):pe("",!0),n.value.minimum?(x(),de(jr,{key:5},{prefix:Y(()=>[Ie("min:")]),default:Y(()=>[Ie(" "+Be(n.value.minimum),1)]),_:1})):pe("",!0),n.value.maximum?(x(),de(jr,{key:6},{prefix:Y(()=>[Ie("max:")]),default:Y(()=>[Ie(" "+Be(n.value.maximum),1)]),_:1})):pe("",!0),n.value.pattern?(x(),de(jr,{key:7,code:"",truncate:""},{default:Y(()=>[Ie(Be(n.value.pattern),1)]),_:1})):pe("",!0),n.$props.enum?(x(),de(jr,{key:8},{default:Y(()=>[Ie("enum")]),_:1})):pe("",!0),n.value.default?(x(),de(jr,{key:9,truncate:""},{prefix:Y(()=>[Ie("default:")]),default:Y(()=>[Ie(" "+Be(n.value.default),1)]),_:1})):pe("",!0)])):pe("",!0),(c=n.value)!=null&&c.writeOnly?(x(),j("div",zbe," write-only ")):(u=n.value)!=null&&u.readOnly?(x(),j("div",Kbe," read-only ")):pe("",!0),(x(!0),j(Ne,null,pt(t.filter(d=>{var f,h,p;return((f=n.value)==null?void 0:f[d])||((p=(h=n.value)==null?void 0:h.items)==null?void 0:p[d])}),d=>(x(),de(A(qd),{key:d},{default:Y(()=>[Ie(Be(d),1)]),_:2},1024))),128))])}}}),Gbe=je(Wbe,[["__scopeId","data-v-c1c21610"]]),Ybe=e=>(er("data-v-bd31a06f"),e=e(),tr(),e),Xbe={key:0,class:"property-description"},Qbe={key:1,class:"property-description"},Jbe={key:2,class:"property-example custom-scroll"},Zbe=Ybe(()=>ie("span",{class:"property-example-label"},"Example",-1)),eye={class:"property-example-value"},tye={key:3,class:"property-enum"},nye={class:"property-enum-values"},rye={key:4,class:"children"},iye={key:0,class:"children"},sye={key:0,class:"property-rule"},oye={key:1,class:"property-rule"},aye=Se({__name:"SchemaProperty",props:{value:{},level:{default:0},name:{},required:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},description:{},additional:{type:Boolean}},setup(e){const t={integer:{_default:"Integer numbers.",int32:"Signed 32-bit integers (commonly used integer type).",int64:"Signed 64-bit integers (long type)."},string:{date:"full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21","date-time":"the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",password:"a hint to UIs to mask the input",byte:"base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",binary:"binary data, used to describe files"}},n=function(o,a){return a!=null&&a.properties||a!=null&&a.additionalProperties?null:o||(a==null?void 0:a.description)||null},r=function(o){return!o||!t[o.type]?null:t[o.type][o.format||"_default"]},i=function(o){var a;return(o==null?void 0:o.enum)||((a=o==null?void 0:o.items)==null?void 0:a.enum)||[]},s=["oneOf","anyOf","allOf","not"];return(o,a)=>{var l,c,u,d,f,h,p,m,g,b;return x(),j("div",{class:ut(["property",[`property--level-${o.level}`,{"property--compact":o.compact,"property--deprecated":(l=o.value)==null?void 0:l.deprecated}]])},[Q(Gbe,{additional:o.additional,enum:i(o.value).length>1,required:o.required,value:o.value},Xd({_:2},[o.name?{name:"name",fn:Y(()=>[Ie(Be(o.name),1)]),key:"0"}:void 0]),1032,["additional","enum","required","value"]),n(o.description,o.value)?(x(),j("div",Xbe,[Q(A(Fr),{value:n(o.description,o.value)},null,8,["value"])])):r(o.value)?(x(),j("div",Qbe,[Q(A(Fr),{value:r(o.value)||""},null,8,["value"])])):pe("",!0),(c=o.value)!=null&&c.example||(d=(u=o.value)==null?void 0:u.items)!=null&&d.example?(x(),j("div",Jbe,[Zbe,ie("code",eye,Be(o.value.example||((f=o.value)==null?void 0:f.items.example)),1)])):pe("",!0),((h=i(o.value))==null?void 0:h.length)>1?(x(),j("div",tye,[ie("ul",nye,[(x(!0),j(Ne,null,pt(i(o.value),y=>(x(),j("li",{key:y,class:"property-enum-value"},Be(y),1))),128))])])):pe("",!0),((p=o.value)==null?void 0:p.type)==="object"&&((m=o.value)!=null&&m.properties||(g=o.value)!=null&&g.additionalProperties)?(x(),j("div",rye,[Q(wa,{compact:o.compact,level:o.level+1,value:o.value},null,8,["compact","level","value"])])):pe("",!0),(b=o.value)!=null&&b.items?(x(),j(Ne,{key:5},[["object"].includes(o.value.items.type)?(x(),j("div",iye,[Q(wa,{compact:o.compact,level:o.level+1,value:o.value.items},null,8,["compact","level","value"])])):pe("",!0)],64)):pe("",!0),(x(),j(Ne,null,pt(s,y=>{var v,w,T;return x(),j(Ne,{key:y},[(v=o.value)!=null&&v[y]?(x(),j("div",sye,[(x(!0),j(Ne,null,pt(o.value[y],(_,S)=>(x(),de(wa,{key:S,compact:o.compact,level:o.level+1,value:_},null,8,["compact","level","value"]))),128))])):pe("",!0),(T=(w=o.value)==null?void 0:w.items)!=null&&T[y]&&o.level<3?(x(),j("div",oye,[(x(!0),j(Ne,null,pt(o.value.items[y],(_,S)=>(x(),de(wa,{key:S,compact:o.compact,level:o.level+1,value:_},null,8,["compact","level","value"]))),128))])):pe("",!0)],64)}),64))],2)}}}),_a=je(aye,[["__scopeId","data-v-bd31a06f"]]),lye=e=>(er("data-v-7f5d0941"),e=e(),tr(),e),cye={key:0,class:"schema-card-description"},uye=lye(()=>ie("polygon",{"fill-rule":"nonzero",points:"14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"},null,-1)),dye=[uye],fye=Se({__name:"Schema",props:{value:{},level:{default:0},name:{},compact:{type:Boolean},noncollapsible:{type:Boolean}},setup(e){const t=e,n=ae(()=>!(t.noncollapsible||t.level===0)),r=i=>t.noncollapsible&&i.stopPropagation();return(i,s)=>typeof i.value=="object"&&Object.keys(i.value).length?(x(),de(A(Mm),{key:0,defaultOpen:i.noncollapsible},{default:Y(({open:o})=>{var a;return[ie("div",{class:ut(["schema-card",[`schema-card--level-${i.level}`,{"schema-card--compact":i.compact,"schema-card--open":o}]])},[(a=i.value)!=null&&a.description?(x(),j("div",cye,[Q(A(Fr),{value:i.value.description},null,8,["value"])])):pe("",!0),ie("div",{class:ut(["schema-properties",{"schema-properties-open":o}])},[Ya(Q(A($m),{as:i.noncollapsible?"div":"button",class:ut(["schema-card-title",{"schema-card-title--compact":i.compact}]),style:xr({top:`calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${i.level}))`}),onClickCapture:r},{default:Y(()=>{var l,c,u;return[i.compact?(x(),j(Ne,{key:0},[n.value?(x(),j("svg",{key:0,class:ut(["schema-card-title-icon",{"schema-card-title-icon--open":o}]),fill:"currentColor",height:"14",viewBox:"0 0 14 14",width:"14",xmlns:"http://www.w3.org/2000/svg"},dye,2)):pe("",!0),o?(x(),j(Ne,{key:1},[Ie(" Hide "+Be(((l=i.value)==null?void 0:l.title)??"Child Attributes"),1)],64)):(x(),j(Ne,{key:2},[Ie(" Show "+Be(((c=i.value)==null?void 0:c.title)??"Child Attributes"),1)],64))],64)):(x(),j(Ne,{key:1},[n.value?(x(),de(A(on),{key:0,class:ut(["schema-card-title-icon",{"schema-card-title-icon--open":o}]),icon:"ChevronRight",size:"md"},null,8,["class"])):pe("",!0),Q(fM,{name:((u=i.value)==null?void 0:u.title)??i.name,value:i.value},null,8,["name","value"])],64))]}),_:2},1032,["as","class","style"]),[[wc,!(i.noncollapsible&&i.compact)]]),Q(A(Fm),{static:i.noncollapsible},{default:Y(()=>{var l;return[i.value.properties||i.value.additionalProperties?(x(),j(Ne,{key:0},[i.value.properties?(x(!0),j(Ne,{key:0},pt(Object.keys((l=i.value)==null?void 0:l.properties),c=>{var u;return x(),de(_a,{key:c,compact:i.compact,level:i.level,name:c,required:i.value.required&&i.value.required.length&&i.value.required.includes(c),value:(u=i.value.properties)==null?void 0:u[c]},null,8,["compact","level","name","required","value"])}),128)):pe("",!0),i.value.additionalProperties?(x(),j(Ne,{key:1},[i.value.additionalProperties===!0||Object.keys(i.value.additionalProperties).length===0||!i.value.additionalProperties.type?(x(),de(_a,{key:0,additional:"",compact:i.compact,level:i.level,noncollapsible:"",value:{type:"any",...i.value.additionalProperties}},null,8,["compact","level","value"])):(x(),de(_a,{key:1,additional:"",compact:i.compact,level:i.level,noncollapsible:"",value:i.value.additionalProperties},null,8,["compact","level","value"]))],64)):pe("",!0)],64)):(x(),de(_a,{key:1,compact:i.compact,level:i.level,name:i.value.name,value:i.value},null,8,["compact","level","name","value"]))]}),_:1},8,["static"])],2)],2)]}),_:1},8,["defaultOpen"])):pe("",!0)}}),wa=je(fye,[["__scopeId","data-v-7f5d0941"]]),hye={class:"parameter-item"},pye={class:"parameter-item-container"},mye=Se({__name:"ParameterItem",props:{parameter:{},showChildren:{type:Boolean,default:!1}},setup(e){return(t,n)=>(x(),j("li",hye,[ie("div",pye,[Q(A(_a),{compact:"",description:t.parameter.description,level:0,name:t.parameter.name,noncollapsible:t.showChildren,required:t.parameter.required,value:t.parameter.schema},null,8,["description","name","noncollapsible","required","value"])])]))}}),gye=je(mye,[["__scopeId","data-v-f70ee55c"]]),bye={key:0,class:"parameters"},yye={class:"parameters-title"},vye={class:"parameter-list"},Eye=Se({__name:"Parameters",props:{parameters:{},showChildren:{type:Boolean,default:!1}},setup(e){return(t,n)=>{var r;return(r=t.parameters)!=null&&r.length?(x(),j("div",bye,[ie("div",yye,[Ue(t.$slots,"title",{},void 0,!0)]),ie("ul",vye,[(x(!0),j(Ne,null,pt(t.parameters,i=>(x(),de(gye,{key:i.name,parameter:i,showChildren:t.showChildren},null,8,["parameter","showChildren"]))),128))])])):pe("",!0)}}}),fi=je(Eye,[["__scopeId","data-v-45fca787"]]),_ye={key:0},wye={class:"request-body-title"},Tye=["value"],Sye={key:0,class:"request-body-description"},kye={key:0,class:"request-body-schema"},xye=Se({__name:"RequestBody",props:{requestBody:{}},setup(e){var t;const n=e,r=ae(()=>{var s;return(s=n.requestBody)!=null&&s.content?Object.keys(n.requestBody.content):[]}),i=ce("application/json");return(t=n.requestBody)!=null&&t.content&&r.value.length>0&&(i.value=r.value[0]),(s,o)=>{var a,l,c,u;return n!=null&&n.requestBody?(x(),j("div",_ye,[ie("div",wye,[Ue(s.$slots,"title",{},void 0,!0),ie("div",{class:ut(["request-body-title-select",{"request-body-title-no-select":r.value.length<=1}])},[ie("span",null,Be(i.value),1),n!=null&&n.requestBody&&r.value.length>1?Ya((x(),j("select",{key:0,"onUpdate:modelValue":o[0]||(o[0]=d=>i.value=d)},[(x(!0),j(Ne,null,pt((a=n.requestBody)==null?void 0:a.content,(d,f)=>(x(),j("option",{key:f,value:f},Be(f),9,Tye))),128))],512)),[[b4,i.value]]):pe("",!0)],2),n!=null&&n.requestBody.description?(x(),j("div",Sye,[Q(A(Fr),{value:n.requestBody.description},null,8,["value"])])):pe("",!0)]),(l=n==null?void 0:n.requestBody.content)!=null&&l[i.value]?(x(),j("div",kye,[Q(A(wa),{compact:"",noncollapsible:"",value:(u=(c=n==null?void 0:n.requestBody.content)==null?void 0:c[i.value])==null?void 0:u.schema},null,8,["value"])])):pe("",!0)])):pe("",!0)}}}),mw=je(xye,[["__scopeId","data-v-e095eb63"]]),Aye={class:"endpoint-details"},Cye={class:"endpoint-description"},Nye=Se({__name:"EndpointDetails",props:{operation:{}},setup(e){const t=e,{parameterMap:n}=lw(t),{responses:r}=cw(t.operation);return(i,s)=>{var o,a;return x(),j("div",Aye,[ie("div",Cye,[Q(A(Fr),{value:i.operation.description,withImages:""},null,8,["value"])]),Q(fi,{parameters:A(n).path},{title:Y(()=>[Ie("Path Parameters")]),_:1},8,["parameters"]),Q(fi,{parameters:A(n).query},{title:Y(()=>[Ie("Query Parameters")]),_:1},8,["parameters"]),Q(fi,{parameters:A(n).header},{title:Y(()=>[Ie("Headers")]),_:1},8,["parameters"]),Q(fi,{parameters:A(n).body,showChildren:""},{title:Y(()=>[Ie("Body Parameters")]),_:1},8,["parameters"]),Q(fi,{parameters:A(n).formData},{title:Y(()=>[Ie("Form Data")]),_:1},8,["parameters"]),(o=i.operation.information)!=null&&o.requestBody?(x(),de(mw,{key:0,requestBody:(a=i.operation.information)==null?void 0:a.requestBody},{title:Y(()=>[Ie("Body")]),_:1},8,["requestBody"])):pe("",!0),Q(fi,{parameters:A(r)},{title:Y(()=>[Ie("Responses")]),_:1},8,["parameters"])])}}}),Oye={key:0},Dye=Se({__name:"EndpointPath",props:{path:{},deprecated:{type:Boolean}},setup(e){const t=e,n=i=>i.startsWith("{")&&i.endsWith("}"),r=ae(()=>t.path.split(/({[^}]+})/));return(i,s)=>(x(),j("span",{class:ut(["endpoint-path",{deprecated:i.deprecated}])},[(x(!0),j(Ne,null,pt(r.value,(o,a)=>(x(),j(Ne,{key:a},[n(o)?(x(),j("em",Oye,Be(o),1)):(x(),j(Ne,{key:1},[Ie(Be(o),1)],64))],64))),128))],2))}}),iv=je(Dye,[["__scopeId","data-v-a4eadd9b"]]);function Lf(e){return e.reduce((t,n)=>(t[n.name]=n.value,t),{})}function Iye(e){return/\s|-/.test(e)}function es(e,t=0){let n=[],r=" ".repeat(t),i=" ".repeat(t+2);for(const[s,o]of Object.entries(e)){let a=Iye(s)?`'${s}'`:s;if(Array.isArray(o)){const l=o.map(c=>typeof c=="string"?`'${c}'`:c&&typeof c=="object"?es(c,t+2):c).join(`, ${i}`);n.push(`${i}${a}: [${l}]`)}else if(o&&typeof o=="object")n.push(`${i}${a}: ${es(o,t+2)}`);else if(typeof o=="string"){let l=`${o}`;if(o.startsWith("JSON.stringify")){const c=o.split(`
365
365
  `);c.length>1&&(l=c.map((u,d)=>d===0?u:`${i}${u}`).join(`
366
366
  `))}else l=`'${o}'`;n.push(`${i}${a}: ${l}`)}else n.push(`${i}${a}: ${o}`)}return`{
367
367
  ${n.join(`,
368
368
  `)}
369
369
  ${r}}`}function Rye(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?Lf(r.queryString):void 0),o=s.size?`?${s.toString()}`:"";(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(l=>{i.headers[l.name]=l.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(l=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(i).forEach(l=>{i[l]===void 0&&delete i[l]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=`JSON.stringify(${es(JSON.parse(i.body))})`));const a=Object.keys(i).length?`, ${es(i)}`:"";return{target:"node",client:"undici",code:`import { request } from 'undici'
370
370
 
371
- const { statusCode, body } = await request('${r.url}${o}'${a})`}}function Pye(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?Lf(r.queryString):void 0),o=s.size?`?${s.toString()}`:"";(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(l=>{i.headers[l.name]=l.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(l=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(i).forEach(l=>{i[l]===void 0&&delete i[l]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=`JSON.stringify(${es(JSON.parse(i.body))})`));const a=Object.keys(i).length?`, ${es(i)}`:"";return{target:"node",client:"fetch",code:`fetch('${r.url}${o}'${a})`}}function Lye(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?Lf(r.queryString):void 0),o=s.size?`?${s.toString()}`:"";(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(l=>{i.headers[l.name]=l.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(l=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(i).forEach(l=>{i[l]===void 0&&delete i[l]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=`JSON.stringify(${es(JSON.parse(i.body))})`));const a=Object.keys(i).length?`, ${es(i)}`:"";return{target:"js",client:"fetch",code:`fetch('${r.url}${o}'${a})`}}function Mye(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?Lf(r.queryString):void 0);s.size&&(i.query={},s.forEach((a,l)=>{i.query[l]=a})),(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(a=>{i.headers[a.name]=a.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(a=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${a.name}=${a.value}`:`${a.name}=${a.value}`})),Object.keys(i).forEach(a=>{i[a]===void 0&&delete i[a]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=JSON.parse(i.body)));const o=Object.keys(i).length?`, ${es(i)}`:"";return{target:"js",client:"ofetch",code:`ofetch('${r.url}'${o})`}}function $ye(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?Lf(r.queryString):void 0);s.size&&(i.query={},s.forEach((a,l)=>{i.query[l]=a})),(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(a=>{i.headers[a.name]=a.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(a=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${a.name}=${a.value}`:`${a.name}=${a.value}`})),Object.keys(i).forEach(a=>{i[a]===void 0&&delete i[a]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=JSON.parse(i.body)));const o=Object.keys(i).length?`, ${es(i)}`:"";return{target:"node",client:"ofetch",code:`ofetch('${r.url}'${o})`}}function XA(){const e=[Rye,Pye,Lye,Mye,$ye];return{get(t,n,r){const i=this.findPlugin(t,n);if(i)return i(r)},print(t,n,r){var i;return(i=this.get(t,n,r))==null?void 0:i.code},targets(){return e.map(t=>t().target).filter((t,n,r)=>r.indexOf(t)===n)},clients(){return e.map(t=>t().client)},plugins(){return e.map(t=>{const n=t();return{target:n.target,client:n.client}})},findPlugin(t,n){return e.find(r=>{const i=r();return i.target===t&&i.client===n})},hasPlugin(t,n){return!!this.findPlugin(t,n)}}}const Fye=Se({__name:"ExamplePicker",props:{examples:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=ce(Object.keys(n.examples)[0]);function s(a){a&&(i.value=a)}dt(()=>n.examples,()=>{s(Object.keys(n.examples)[0])},{immediate:!0}),dt(i,()=>{i.value&&r("update:modelValue",i.value)},{immediate:!0});function o(a){if(!a)return"Select an example";const l=n.examples[a];return(l==null?void 0:l.summary)??a}return(a,l)=>(x(),de(pw,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=c=>i.value=c),class:"example-selector",options:Object.keys(a.examples).map(c=>({label:o(c),value:c}))},{default:Y(()=>[Ie(Be(o(i.value)),1)]),_:1},8,["modelValue","options"]))}}),hM=je(Fye,[["__scopeId","data-v-652a7e14"]]),Bye={class:"request-header"},Uye={class:"code-snippet"},Hye={key:0,class:"request-card-footer-addon"},jye=Se({__name:"ExampleRequest",props:{operation:{}},setup(e){const t=e,n=`components-Content-Operation-Example-Request${wE(t.operation.path+t.operation.httpVerb+t.operation.operationId)}`,r=ce(Dc[n]??""),i=ce(),{copyToClipboard:s}=Yc(),{httpClient:o,setHttpClient:a,httpTargetTitle:l,httpClientTitle:c}=uw(),{availableTargets:u}=Rf(),{server:d}=vf(),{authentication:f}=Ic(),h=ae(()=>{var g,b,y,v,w,T,_;return((v=(y=(b=(g=t.operation.information)==null?void 0:g.requestBody)==null?void 0:b.content)==null?void 0:y["application/json"])==null?void 0:v.examples)&&Object.keys((_=(T=(w=t.operation.information)==null?void 0:w.requestBody)==null?void 0:T.content)==null?void 0:_["application/json"].examples).length>1}),p=rn(ow),m=async()=>{var g;const b=SI({url:O1(d)},Uy(t.operation,{replaceVariables:!0},i.value),qE(f,((g=t.operation.information)==null?void 0:g.security)??(p==null?void 0:p())));try{return XA().hasPlugin(o.targetKey.replace("javascript","js"),o.clientKey)?XA().print(o.targetKey.replace("javascript","js"),o.clientKey,b)??"":await new Rj(b).convert(o.targetKey,o.clientKey)}catch(y){return console.error("[ExampleRequest]",y),""}};return dt([()=>o,()=>d,()=>f,()=>i],async()=>{r.value=await m()},{deep:!0,immediate:!0}),Uo(async()=>{const g=vc();await Ls(1),g.payload.data[n]=r.value}),ae(()=>YP({serverState:d,authenticationState:f,operation:t.operation,globalSecurity:p==null?void 0:p()})),(g,b)=>(x(),de(A(Zg),{class:"dark-mode"},{default:Y(()=>[Q(A(e0),{muted:""},{actions:Y(()=>[Q(pw,{class:"request-client-picker",modelValue:JSON.stringify(A(o)),options:A(u).map(y=>({value:y.key,label:y.title,options:y.clients.map(v=>({value:JSON.stringify({targetKey:y.key,clientKey:v.key}),label:v.title}))})),"onUpdate:modelValue":b[0]||(b[0]=y=>A(a)(JSON.parse(y)))},{default:Y(()=>[Ie(Be(A(l))+" "+Be(A(c)),1)]),_:1},8,["modelValue","options"]),ie("button",{class:"copy-button",type:"button",onClick:b[1]||(b[1]=y=>A(s)(r.value))},[Q(A(on),{icon:"Clipboard",width:"10px"})])]),default:Y(()=>[ie("div",Bye,[Q(A(rl),{as:"span",class:"request-method",method:g.operation.httpVerb},null,8,["method"]),Ue(g.$slots,"header",{},void 0,!0)])]),_:3}),Q(A(Jc),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:Y(()=>[ie("div",Uye,[Q(A(fs),{content:r.value,hideCredentials:A(kP)(A(f)),lang:A(o).targetKey,lineNumbers:""},null,8,["content","hideCredentials","lang"])])]),_:1}),h.value||g.$slots.footer?(x(),de(A(hw),{key:0,class:"request-card-footer",contrast:""},{default:Y(()=>{var y,v,w,T;return[h.value?(x(),j("div",Hye,[Q(hM,{class:"request-example-selector",examples:((T=(w=(v=(y=g.operation.information)==null?void 0:y.requestBody)==null?void 0:v.content)==null?void 0:w["application/json"])==null?void 0:T.examples)??[],"onUpdate:modelValue":b[2]||(b[2]=_=>i.value=_)},null,8,["examples"])])):pe("",!0),Ue(g.$slots,"footer",{},void 0,!0)]}),_:3})):pe("",!0)]),_:3}))}}),pM=je(jye,[["__scopeId","data-v-317d5c87"]]),qye={key:0},Vye={key:1},zye={key:0,class:"rule"},Kye={class:"rule-title"},Wye={class:"rule-items"},Gye={key:2,class:"empty-state"},Yye=Se({__name:"ExampleResponse",props:{response:{}},setup(e){const t=["oneOf","anyOf","not"],n=r=>r.reduce((i,s)=>({...i,...s}),{});return(r,i)=>{var s,o,a,l,c,u,d;return(s=r.response)!=null&&s.example?(x(),j("div",qye,[Q(A(fs),{content:A(Ad)((o=r.response)==null?void 0:o.example),lang:"json"},null,8,["content"])])):(a=r.response)!=null&&a.schema?(x(),j("div",Vye,[(l=r.response)!=null&&l.schema.type?(x(),de(A(fs),{key:0,content:A(Ad)(A(Tn)((c=r.response)==null?void 0:c.schema,{emptyString:"…",mode:"read"})),lang:"json"},null,8,["content"])):pe("",!0),(x(),j(Ne,null,pt(t,f=>{var h,p,m,g,b,y;return x(),j(Ne,{key:f},[(h=r.response)!=null&&h.schema[f]&&(((p=r.response)==null?void 0:p.schema[f].length)>1||f==="not")?(x(),j("div",zye,[ie("div",Kye,Be(f),1),ie("ol",Wye,[(x(!0),j(Ne,null,pt((m=r.response)==null?void 0:m.schema[f],(v,w)=>(x(),j("li",{key:w,class:"rule-item"},[Q(A(fs),{content:A(Tn)(v,{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])]))),128))])])):(g=r.response)!=null&&g.schema[f]&&((b=r.response)==null?void 0:b.schema[f].length)===1?(x(),de(A(fs),{key:1,content:A(Tn)((y=r.response)==null?void 0:y.schema[f][0],{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])):pe("",!0)],64)}),64)),(u=r.response)!=null&&u.schema.allOf?(x(),de(A(fs),{key:1,content:n((d=r.response)==null?void 0:d.schema.allOf.map(f=>A(Tn)(f,{emptyString:"…",mode:"read"}))),lang:"json"},null,8,["content"])):pe("",!0)])):(x(),j("div",Gye," No Body "))}}}),QA=je(Yye,[["__scopeId","data-v-800e8c7d"]]),Xye=e=>(er("data-v-314905de"),e=e(),tr(),e),Qye={key:1,class:"scalar-card-checkbox"},Jye=Xye(()=>ie("span",{class:"scalar-card-checkbox-checkmark"},null,-1)),Zye={class:"scalar-card-container custom-scroll"},e1e={key:1,class:"response-description"},t1e=Se({__name:"PathResponses",props:{operation:{}},setup(e){const t=e,{copyToClipboard:n}=Yc(),r=ce(),i=ae(()=>{var f,h;return Object.keys(((h=(f=t==null?void 0:t.operation)==null?void 0:f.information)==null?void 0:h.responses)??{}).sort(p=>p==="default"?-1:0)}),s=ae(()=>!!l.value.examples),o=ce(0),a=ae(()=>{var f,h;const p=i.value[o.value];return(h=(f=t.operation.information)==null?void 0:f.responses)==null?void 0:h[p]}),l=ae(()=>{var f;const h=xI((f=a.value)==null?void 0:f.content);return(h==null?void 0:h["application/json"])??(h==null?void 0:h["text/plain"])??a.value}),c=ae(()=>({...l.value,example:s.value&&r.value?l.value.examples[r.value].value??l.value.examples[r.value]:l.value.example})),u=f=>{o.value=f},d=ce(!1);return(f,h)=>i.value.length?(x(),de(A(Zg),{key:0},{default:Y(()=>{var p;return[Q(A(_be),{muted:"",x:"as",onChange:u},{actions:Y(()=>{var m,g;return[(m=l.value)!=null&&m.example?(x(),j("button",{key:0,class:"code-copy",type:"button",onClick:h[0]||(h[0]=()=>{var b;return A(n)((b=l.value)==null?void 0:b.example)})},[Q(A(on),{icon:"Clipboard",width:"10px",x:"asd"})])):pe("",!0),(g=l.value)!=null&&g.schema?(x(),j("label",Qye,[Ie(" Show Schema "),Ya(ie("input",{"onUpdate:modelValue":h[1]||(h[1]=b=>d.value=b),class:"scalar-card-checkbox-input",type:"checkbox"},null,512),[[uN,d.value]]),Jye])):pe("",!0)]}),default:Y(()=>[(x(!0),j(Ne,null,pt(i.value,m=>(x(),de(A(Tbe),{key:m},{default:Y(()=>[Ie(Be(m),1)]),_:2},1024))),128))]),_:1}),ie("div",Zye,[Q(A(Jc),{muted:""},{default:Y(()=>{var m;return[(m=l.value)!=null&&m.schema?(x(),j(Ne,{key:0},[d.value&&c.value?(x(),de(A(fs),{key:0,content:c.value,lang:"json"},null,8,["content"])):(x(),de(QA,{key:1,response:c.value},null,8,["response"]))],64)):(x(),de(QA,{key:1,response:c.value},null,8,["response"]))]}),_:1})]),(p=a.value)!=null&&p.description||s.value?(x(),de(A(hw),{key:0,class:"response-card-footer",muted:""},{default:Y(()=>{var m,g;return[s.value?(x(),de(hM,{key:0,class:"response-example-selector",examples:(m=l.value)==null?void 0:m.examples,"onUpdate:modelValue":h[2]||(h[2]=b=>r.value=b)},null,8,["examples"])):(g=a.value)!=null&&g.description?(x(),j("div",e1e,[Q(A(Fr),{class:"markdown",value:a.value.description},null,8,["value"])])):pe("",!0)]}),_:1})):pe("",!0)]}),_:1})):pe("",!0)}}),mM=je(t1e,[["__scopeId","data-v-314905de"]]),n1e=e=>(er("data-v-f44e2b65"),e=e(),tr(),e),r1e=n1e(()=>ie("span",null,"Test Request",-1)),i1e=Se({__name:"TryRequestButton",props:{operation:{}},setup(e){const t=rn(ow);return(n,r)=>(x(),de(A(rl),{as:"button",class:"show-api-client-button",method:n.operation.httpVerb,type:"button",onClick:r[0]||(r[0]=ef(i=>{var s;return A(I1)(n.operation,(s=A(t))==null?void 0:s())},["stop"]))},{default:Y(()=>[Q(A(on),{icon:"PaperAirplane"}),r1e]),_:1},8,["method"]))}}),sv=je(i1e,[["__scopeId","data-v-f44e2b65"]]),s1e={class:"examples"},o1e=Se({__name:"Operation",props:{id:{},operation:{}},setup(e){const t=e,n=ae(()=>{var r;const i=["x-custom-examples","x-codeSamples","x-code-samples"];for(const s of i)if((r=t.operation.information)!=null&&r[s])return t.operation.information[s];return null});return(r,i)=>(x(),de(A(Xc),{id:r.id,label:r.operation.name},{default:Y(()=>[Q(A(Qc),null,{default:Y(()=>[Q(A(fw),null,{default:Y(()=>[Q(A(gc),null,{default:Y(()=>{var s,o;return[(s=r.operation.information)!=null&&s.deprecated?(x(),de(A(qd),{key:0},{default:Y(()=>[Ie(" Deprecated ")]),_:1})):pe("",!0),ie("div",{class:ut((o=r.operation.information)!=null&&o.deprecated?"deprecated":"")},[Q(A(Vo),{level:3},{default:Y(()=>[Q(A(zo),{id:r.id??""},{default:Y(()=>[Ie(Be(r.operation.name),1)]),_:1},8,["id"])]),_:1})],2),Q(Nye,{operation:r.operation},null,8,["operation"])]}),_:1}),Q(A(gc),null,{default:Y(()=>[ie("div",s1e,[n.value?(x(),de(Obe,{key:0,examples:n.value,operation:r.operation},{header:Y(()=>{var s;return[Q(iv,{class:"example-path",deprecated:(s=r.operation.information)==null?void 0:s.deprecated,path:r.operation.path},null,8,["deprecated","path"])]}),footer:Y(()=>[Q(sv,{operation:r.operation},null,8,["operation"])]),_:1},8,["examples","operation"])):(x(),de(pM,{key:1,operation:r.operation},{header:Y(()=>{var s;return[Q(iv,{class:"example-path",deprecated:(s=r.operation.information)==null?void 0:s.deprecated,path:r.operation.path},null,8,["deprecated","path"])]}),footer:Y(()=>[Q(sv,{operation:r.operation},null,8,["operation"])]),_:1},8,["operation"])),Q(A(mM),{operation:r.operation,style:{"margin-top":"12px"}},null,8,["operation"])])]),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),gM=je(o1e,[["__scopeId","data-v-9cd31f5d"]]),a1e={class:"endpoint-details-card"},l1e=Se({__name:"EndpointDetailsCard",props:{operation:{}},setup(e){const t=e,{parameterMap:n}=lw(t),{responses:r}=cw(t.operation);return(i,s)=>{var o;return x(),j("div",a1e,[Q(fi,{class:"endpoint-details-card-item",parameters:A(n).path},{title:Y(()=>[Ie("Path Parameters")]),_:1},8,["parameters"]),Q(fi,{class:"endpoint-details-card-item",parameters:A(n).query},{title:Y(()=>[Ie("Query Parameters")]),_:1},8,["parameters"]),Q(fi,{class:"endpoint-details-card-item",parameters:A(n).header},{title:Y(()=>[Ie("Headers")]),_:1},8,["parameters"]),Q(mw,{class:"endpoint-details-card-item",requestBody:(o=i.operation.information)==null?void 0:o.requestBody},{title:Y(()=>[Ie("Body")]),_:1},8,["requestBody"]),Q(fi,{class:"endpoint-details-card-item",parameters:A(r)},{title:Y(()=>[Ie("Responses")]),_:1},8,["parameters"])])}}}),c1e=je(l1e,[["__scopeId","data-v-f94bee14"]]),u1e={class:"endpoint-header"},d1e={class:"endpoint-details"},f1e={class:"endpoint-label"},h1e={class:"endpoint-label-path"},p1e={class:"endpoint-label-name"},m1e={class:"endpoint-content"},g1e=Se({__name:"OperationAccordion",props:{id:{},operation:{}},setup(e){const{copyToClipboard:t}=Yc();return(n,r)=>(x(),de(A(lM),{id:n.id,class:"reference-endpoint",transparent:""},Xd({title:Y(()=>[ie("h3",u1e,[ie("div",d1e,[Q(A(rl),{class:"endpoint-type",method:n.operation.httpVerb,short:""},null,8,["method"]),Q(A(zo),{id:n.id??"",class:"endpoint-anchor"},{default:Y(()=>{var i;return[ie("div",f1e,[ie("div",h1e,[Q(iv,{deprecated:(i=n.operation.information)==null?void 0:i.deprecated,path:n.operation.path},null,8,["deprecated","path"])]),ie("div",p1e,Be(n.operation.name),1)])]}),_:1},8,["id"])])])]),actions:Y(({active:i})=>[i?(x(),de(sv,{key:0,operation:n.operation},null,8,["operation"])):(x(),de(A(on),{key:1,class:"endpoint-try-hint",icon:"PaperAirplane"})),Q(A(yf),{class:"endpoint-copy",icon:"Clipboard",label:"Copy endpoint URL",size:"xs",variant:"ghost",onClick:r[0]||(r[0]=ef(s=>A(t)(n.operation.path),["stop"]))})]),default:Y(()=>[ie("div",m1e,[Q(c1e,{operation:n.operation},null,8,["operation"]),Q(A(mM),{operation:n.operation},null,8,["operation"]),Q(pM,{operation:n.operation},null,8,["operation"])])]),_:2},[n.operation.description?{name:"description",fn:Y(()=>[Q(A(Fr),{value:n.operation.description,withImages:""},null,8,["value"])]),key:"0"}:void 0]),1032,["id"]))}}),b1e=je(g1e,[["__scopeId","data-v-f61893df"]]),y1e=Se({__name:"ShowMoreButton",props:{id:{}},setup(e){const{setCollapsedSidebarItem:t}=Ai();return(n,r)=>(x(),j("button",{class:"show-more",type:"button",onClick:r[0]||(r[0]=i=>A(t)(n.id,!0))},[Ie(" Show More "),Q(A(on),{class:"show-more-icon",icon:"ChevronDown"})]))}}),bM=je(y1e,[["__scopeId","data-v-60a9fbab"]]),v1e={class:"endpoints"},E1e=["onClick"],_1e=Se({__name:"Endpoints",props:{id:{},tag:{}},emits:["observeAndNavigate"],setup(e,{emit:t}){const n=e,r=t,{getOperationId:i,getTagId:s}=rr(),{setCollapsedSidebarItem:o}=Ai(),a=c=>{r("observeAndNavigate",c)};async function l(c){a(i(c,n.tag)),o(s(n.tag),!0)}return(c,u)=>(x(),de(A(Xc),{id:c.id,label:c.tag.name.toUpperCase()},{default:Y(()=>[Q(A(Qc),null,{default:Y(()=>[Q(A(fw),null,{default:Y(()=>[Q(A(gc),null,{default:Y(()=>[Q(A(Vo),{level:2},{default:Y(()=>[Q(A(zo),{id:A(s)(c.tag)},{default:Y(()=>[Ie(Be(c.tag["x-displayName"]??c.tag.name),1)]),_:1},8,["id"])]),_:1}),Q(A(Fr),{value:c.tag.description,withImages:""},null,8,["value"])]),_:1}),Q(A(gc),null,{default:Y(()=>{var d;return[((d=c.tag.operations)==null?void 0:d.length)>0?(x(),de(A(Zg),{key:0,class:"scalar-card-sticky"},{default:Y(()=>[Q(A(e0),{muted:""},{default:Y(()=>[Ie("Endpoints")]),_:1}),Q(A(Jc),{class:"custom-scroll",muted:""},{default:Y(()=>[ie("div",v1e,[(x(!0),j(Ne,null,pt(c.tag.operations,f=>(x(),j("a",{key:A(i)(f,c.tag),class:"endpoint",onClick:h=>l(f)},[Q(A(rl),{method:f.httpVerb},null,8,["method"]),ie("span",null,Be(f.path),1)],8,E1e))),128))])]),_:1})]),_:1})):pe("",!0)]}),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),w1e=je(_1e,[["__scopeId","data-v-b209ef2d"]]),T1e=(e,t)=>{X6(e,t,{childList:!0,subtree:!0})},S1e=Se({__name:"Tag",props:{id:{},tag:{},spec:{}},setup(e){const t=e,n=ce(null),{collapsedSidebarItems:r}=Ai(),{getTagId:i}=rr(),s=c=>{var u;return((u=t.spec.tags)==null?void 0:u.length)!==1||(c==null?void 0:c.name)!=="default"||(c==null?void 0:c.description)!==""},o=c=>{window.location.href=`#${c}`},a=c=>{T1e(n,(u,d)=>{u.forEach(f=>{Array.from(f.addedNodes).some(h=>h instanceof HTMLElement&&h.id===c)&&(o(c),d.disconnect())})})},l=c=>{document.getElementById(c)?o(c):a(c)};return(c,u)=>(x(),de(A(Pf),{ref_key:"sectionContainerRef",ref:n,class:"tag-section-container"},{default:Y(()=>{var d;return[s(c.tag)?(x(),de(w1e,{key:0,id:c.id,tag:c.tag,onObserveAndNavigate:l},null,8,["id","tag"])):pe("",!0),!A(r)[A(i)(c.tag)]&&((d=c.tag.operations)==null?void 0:d.length)>1?(x(),de(bM,{key:1,id:c.id??""},null,8,["id"])):Ue(c.$slots,"default",{key:2},void 0,!0)]}),_:3},512))}}),yM=je(S1e,[["__scopeId","data-v-7fef7ce7"]]),k1e=Se({__name:"TagAccordion",props:{tag:{},spec:{}},setup(e){const{getTagId:t}=rr();return(n,r)=>(x(),de(A(cM),{class:"tag-section"},{title:Y(()=>[Q(A(Vo),{class:"tag-name",level:2},{default:Y(()=>[Q(A(zo),{id:A(t)(n.tag)},{default:Y(()=>[Ie(Be(n.tag.name),1)]),_:1},8,["id"])]),_:1}),Q(A(Fr),{class:"tag-description",value:n.tag.description,withImages:""},null,8,["value"])]),default:Y(()=>[Ue(n.$slots,"default",{},void 0,!0)]),_:3}))}}),x1e=je(k1e,[["__scopeId","data-v-f11e3b56"]]),A1e=Se({__name:"Loading",props:{layout:{default:"default"},parsedSpec:{}},setup(e){const t=e,n=ce(!1),r=ce([]),i=ce([]),{getModelId:s,getSectionId:o,getTagId:a,hash:l,isIntersectionEnabled:c}=rr(),u=ce(t.layout!=="accordion"&&l.value);dt(()=>{var f;return(f=t.parsedSpec.tags)==null?void 0:f.length},f=>{var h,p;if(!l.value||typeof f!="number"||!t.parsedSpec.tags)return;const m=o();if(m.startsWith("tag")){let g=0;const b=((h=t.parsedSpec.tags)==null?void 0:h.findIndex(w=>a(w)===m))??0,y=l.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);if((y==null?void 0:y.length)===4){const w=y[2],T="/"+y[3];g=(p=t.parsedSpec.tags[b])==null?void 0:p.operations.findIndex(({httpVerb:_,path:S})=>w===_&&T===S)}const v=t.parsedSpec.tags[b];if(!v)return;v.name!=="default"&&(n.value=m!==l.value&&m.startsWith("tag")),r.value.push({...v,lazyOperations:v.operations.slice(g,g+2)})}else if(l.value.startsWith("model")){const g=Object.keys(Ki(t.parsedSpec)??{}),[,b]=l.value.toLowerCase().split("/"),y=l.value==="models"?0:g.findIndex(v=>v.toLowerCase()===b);if(y===-1)return;i.value=g.slice(y,y+3)}else mm(l.value),setTimeout(()=>c.value=!0,1e3)},{immediate:!0});const d=rv.on(({id:f})=>{const h=l.value;!h||f!==h||(d(),setTimeout(()=>{typeof window<"u"&&mm(h),u.value=!1,setTimeout(()=>c.value=!0,1e3)},300))});return Mt(()=>{l.value||setTimeout(()=>c.value=!0,1e3)}),(f,h)=>Ya((x(),j("div",{class:ut(["references-loading",{"references-loading-hidden-tag":n.value,"references-loading-top-spacer":r.value.length}])},[(x(!0),j(Ne,null,pt(r.value,p=>(x(),j(Ne,{key:p.id},[p.operations&&p.operations.length>0?(x(),de(A(yM),{key:0,spec:f.parsedSpec,tag:p},{default:Y(()=>[(x(!0),j(Ne,null,pt(p.lazyOperations,m=>(x(),de(A(gM),{key:`${m.httpVerb}-${m.operationId}`,operation:m,tag:p},null,8,["operation","tag"]))),128))]),_:2},1032,["spec","tag"])):pe("",!0)],64))),128)),i.value.length?(x(),de(A(Pf),{key:0},{default:Y(()=>[(x(!0),j(Ne,null,pt(i.value,p=>(x(),de(A(Xc),{key:p,label:p},{default:Y(()=>{var m;return[(m=A(Ki)(f.parsedSpec))!=null&&m[p]?(x(),de(A(Qc),{key:0},{default:Y(()=>{var g;return[Q(A(Vo),{level:2},{default:Y(()=>[Q(A(zo),{id:A(s)(p)},{default:Y(()=>{var b;return[Ie(Be(((b=A(Ki)(f.parsedSpec))==null?void 0:b[p]).title??p),1)]}),_:2},1032,["id"])]),_:2},1024),Q(A(wa),{name:p,noncollapsible:"",value:(g=A(Ki)(f.parsedSpec))==null?void 0:g[p]},null,8,["name","value"])]}),_:2},1024)):pe("",!0)]}),_:2},1032,["label"]))),128))]),_:1})):pe("",!0)],2)),[[wc,u.value]])}}),C1e=e=>(er("data-v-f19478dd"),e=e(),tr(),e),N1e=C1e(()=>ie("div",{id:"models"},null,-1)),O1e=Se({__name:"Models",props:{schemas:{}},setup(e){const t=e,{collapsedSidebarItems:n}=Ai(),{getModelId:r}=rr(),i=ae(()=>Object.keys(t.schemas??{}).length<=3||n[r()]),s=ae(()=>{const o=Object.keys(t.schemas??{});return i.value?o:o.slice(0,3)});return(o,a)=>o.schemas?(x(),de(A(Pf),{key:0},{default:Y(()=>[Q(A(vm),{id:"models",isLazy:!1},{default:Y(()=>[N1e]),_:1}),(x(!0),j(Ne,null,pt(s.value,(l,c)=>(x(),de(A(vm),{id:A(r)(l),key:l,isLazy:""},{default:Y(()=>[Q(A(Xc),{id:A(r)(l),label:l},{default:Y(()=>[o.schemas[l]?(x(),de(A(Qc),{key:0},{default:Y(()=>[Q(A(Vo),{level:2},{default:Y(()=>[Q(A(zo),{id:A(r)(l)},{default:Y(()=>[Ie(Be(o.schemas[l].title??l),1)]),_:2},1032,["id"])]),_:2},1024),Q(A(wa),{name:l,noncollapsible:"",value:o.schemas[l]},null,8,["name","value"]),!i.value&&c===s.value.length-1?(x(),de(bM,{key:0,id:A(r)(),class:"something-special"},null,8,["id"])):pe("",!0)]),_:2},1024)):pe("",!0)]),_:2},1032,["id","label"])]),_:2},1032,["id"]))),128))]),_:1})):pe("",!0)}}),D1e=je(O1e,[["__scopeId","data-v-f19478dd"]]),I1e={key:0,class:"properties"},R1e={key:1},P1e=Se({__name:"ModelsAccordion",props:{schemas:{}},setup(e){const t=e,n=ae(()=>t.schemas?Object.entries(t.schemas).map(([i,s])=>({name:i,schema:s})):[]),{getModelId:r}=rr();return(i,s)=>t.schemas?(x(),de(A(cM),{key:0,class:"reference-models"},{title:Y(()=>[Q(A(Vo),{level:2},{default:Y(()=>[Ie("Models")]),_:1})]),default:Y(()=>[(x(!0),j(Ne,null,pt(n.value,({name:o,schema:a})=>(x(),de(A(lM),{id:A(r)(o),key:o,label:o},{title:Y(()=>[Q(A(zo),{id:A(r)(o),class:"reference-models-anchor"},{default:Y(()=>[Q(A(fM),{class:"reference-models-label",name:o,value:a},null,8,["name","value"])]),_:2},1032,["id"])]),default:Y(()=>[a!=null&&a.properties?(x(),j("div",I1e,[(x(!0),j(Ne,null,pt(Object.entries(a.properties),([l,c])=>(x(),de(A(_a),{key:l,name:l,required:a.required&&!!a.required.length&&a.required.includes(l),value:c},null,8,["name","required","value"]))),128))])):(x(),j("div",R1e,[Q(A(_a),{value:a},null,8,["value"])]))]),_:2},1032,["id","label"]))),128))]),_:1})):pe("",!0)}}),L1e=je(P1e,[["__scopeId","data-v-2399f144"]]),M1e=Se({__name:"Webhook",props:{webhook:{}},setup(e){const t=e,{responses:n}=cw(t.webhook);return(r,i)=>{var s;return r.webhook?(x(),j(Ne,{key:0},[Q(mw,{requestBody:(s=r.webhook.information)==null?void 0:s.requestBody},{title:Y(()=>[Ie("Payload")]),_:1},8,["requestBody"]),Q(fi,{parameters:A(n)},{title:Y(()=>[Ie("Responses")]),_:1},8,["parameters"])],64)):pe("",!0)}}}),$1e=Se({__name:"Webhooks",props:{webhooks:{}},setup(e){const t=e,n=ae(()=>Object.keys(t.webhooks??{})),{getWebhookId:r}=rr();return(i,s)=>n.value.length?(x(),de(A(Pf),{key:0},{default:Y(()=>[(x(!0),j(Ne,null,pt(n.value,o=>{var a;return x(),j(Ne,{key:o},[(x(!0),j(Ne,null,pt(Object.keys((a=i.webhooks)==null?void 0:a[o]),l=>(x(),de(A(Xc),{id:A(r)(o,l),key:l,label:o},{default:Y(()=>{var c;return[(c=i.webhooks)!=null&&c[o]?(x(),de(A(Qc),{key:0},{default:Y(()=>{var u,d;return[Q(A(Vo),{level:2},{default:Y(()=>[Q(A(zo),{id:A(r)(o,l)},{default:Y(()=>{var f;return[Ie(Be((f=i.webhooks[o][l])==null?void 0:f.name),1)]}),_:2},1032,["id"])]),_:2},1024),(u=i.webhooks[o][l])!=null&&u.description?(x(),de(A(Fr),{key:0,value:(d=i.webhooks[o][l])==null?void 0:d.description,withImages:""},null,8,["value"])):pe("",!0),Q(M1e,{webhook:i.webhooks[o][l]},null,8,["webhook"])]}),_:2},1024)):pe("",!0)]}),_:2},1032,["id","label"]))),128))],64)}),128))]),_:1})):pe("",!0)}}),F1e=_c('<div class="section-flare" data-v-09a6c646><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div></div>',1),B1e={class:"narrow-references-container"},U1e=Se({__name:"Content",props:{parsedSpec:{},layout:{},baseServerURL:{}},setup(e){const t=e,{getOperationId:n,getTagId:r,hash:i}=rr(),{setServer:s}=vf(),{hideModels:o,collapsedSidebarItems:a}=Ai(),l=h=>{if(h.url.match(/^(?!(https?|file):\/\/|{).+/)){let p=t.baseServerURL??window.location.origin;p=p.replace(/\/$/,"");const m=h.url.startsWith("/")?h.url:`/${h.url}`;h.url=`${p}${m}`.replace(/\/$/,"")}return h};dt(()=>t.parsedSpec,h=>{var p,m;let g=[{url:typeof window<"u"?window.location.origin:"/"}];h.servers&&h.servers.length>0?g=h.servers:t.parsedSpec.host&&(g=[{url:`${((p=t.parsedSpec.schemes)==null?void 0:p[0])??"http"}://${t.parsedSpec.host}${((m=t.parsedSpec)==null?void 0:m.basePath)??""}`}]),(t.baseServerURL||typeof window<"u")&&(g=g.map(l)),s({servers:g})},{deep:!0,immediate:!0});const c=ae(()=>t.layout==="accordion"?x1e:yM),u=ae(()=>t.layout==="accordion"?b1e:gM),d=ae(()=>t.layout==="accordion"?"after":"aside"),f=t.layout!=="accordion"&&!i.value.startsWith("model");return(h,p)=>(x(),j(Ne,null,[F1e,ie("div",B1e,[Ue(h.$slots,"start",{},void 0,!0),Q(A(A1e),{layout:h.layout,parsedSpec:h.parsedSpec},null,8,["layout","parsedSpec"]),h.parsedSpec.info.title||h.parsedSpec.info.description?(x(),de(A(nbe),{key:0,info:h.parsedSpec.info,parsedSpec:h.parsedSpec},{[d.value]:Y(()=>[ie("div",{class:ut(["introduction-card",{"introduction-card-row":h.layout==="accordion"}])},[Q(A(i0e)),Q(A(Ige),{parsedSpec:h.parsedSpec},null,8,["parsedSpec"]),Q(A(E0e))],2)]),_:2},1032,["info","parsedSpec"])):Ue(h.$slots,"empty-state",{key:1},void 0,!0),(x(!0),j(Ne,null,pt(h.parsedSpec.tags,m=>(x(),de(A(vm),{id:A(r)(m),key:A(r)(m),isLazy:A(f)&&!A(a)[A(r)(m)]},{default:Y(()=>[(x(),de(Ei(c.value),{id:A(r)(m),spec:h.parsedSpec,tag:m},{default:Y(()=>[(x(!0),j(Ne,null,pt(m.operations,(g,b)=>(x(),de(A(vm),{id:A(n)(g,m),key:`${g.httpVerb}-${g.operationId}`,isLazy:b>0},{default:Y(()=>[(x(),de(Ei(u.value),{id:A(n)(g,m),operation:g,tag:m},null,8,["id","operation","tag"]))]),_:2},1032,["id","isLazy"]))),128))]),_:2},1032,["id","spec","tag"]))]),_:2},1032,["id","isLazy"]))),128)),h.parsedSpec.webhooks?(x(),de(A($1e),{key:2,webhooks:h.parsedSpec.webhooks},null,8,["webhooks"])):pe("",!0),A(QP)(h.parsedSpec)&&!A(o)?(x(),j(Ne,{key:3},[h.layout==="accordion"?(x(),de(A(L1e),{key:0,schemas:A(Ki)(h.parsedSpec)},null,8,["schemas"])):(x(),de(A(D1e),{key:1,schemas:A(Ki)(h.parsedSpec)},null,8,["schemas"]))],64)):pe("",!0),Ue(h.$slots,"end",{},void 0,!0)])],64))}}),H1e=je(U1e,[["__scopeId","data-v-09a6c646"]]),j1e=e=>(er("data-v-391b4e37"),e=e(),tr(),e),q1e={class:"start custom-scroll"},V1e={class:"start-copy"},z1e=_c('<div class="start-logo" data-v-391b4e37><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-391b4e37></path></svg></div><h1 class="start-h1" data-v-391b4e37>Swagger Editor</h1><p class="start-p" data-v-391b4e37> Welcome to the Scalar API References + Swagger Editor, a Free &amp; Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>',3),K1e={class:"start-cta"},W1e={class:"start-row"},G1e=_c('<div class="start-section start-section-integrations" data-v-391b4e37><div class="start-h2" data-v-391b4e37>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/packages/fastify-api-reference#readme" target="_blank" data-v-391b4e37><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-391b4e37></path></svg><span data-v-391b4e37>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#from-a-cdn" target="_blank" data-v-391b4e37><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g data-v-391b4e37><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path></g></svg><span data-v-391b4e37>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-vuejs" target="_blank" data-v-391b4e37><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="currentColor" fill-rule="nonzero" data-v-391b4e37><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-391b4e37></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-391b4e37></polygon></g></svg><span data-v-391b4e37>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-react" target="_blank" data-v-391b4e37><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="none" fill-rule="evenodd" data-v-391b4e37><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-391b4e37></circle><g stroke="currentColor" data-v-391b4e37><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-391b4e37></ellipse></g></g></svg><span data-v-391b4e37>React</span></a></div>',1),Y1e={class:"start-section start-section-colors"},X1e=j1e(()=>ie("p",{class:"start-h2"},"THEMING",-1)),Q1e=["onClick"],J1e=_c('<p class="start-h1" data-v-391b4e37>Features</p><ul class="start-ul" data-v-391b4e37><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>',2),Z1e=Se({__name:"GettingStarted",props:{theme:{}},emits:["changeTheme","loadSwaggerFile","linkSwaggerFile","updateContent"],setup(e,{emit:t}){const n=t,r=["default","alternate","moon","purple","solarized","bluePlanet","saturn","kepler","mars","deepSpace"];async function i(){const s=await fetch("https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml");n("updateContent",await s.text())}return(s,o)=>(x(),j("div",q1e,[ie("div",V1e,[z1e,ie("div",K1e,[Q(A(N1),{fullWidth:"",onClick:i},{default:Y(()=>[Ie(" Show Example ")]),_:1}),Q(A(N1),{fullWidth:"",variant:"outlined",onClick:o[0]||(o[0]=a=>s.$emit("loadSwaggerFile"))},{default:Y(()=>[Ie(" Upload File ")]),_:1})])]),ie("div",W1e,[G1e,ie("div",Y1e,[X1e,(x(),j(Ne,null,pt(r,a=>ie("div",{key:a,class:ut(["start-item",{"start-item-active":a===s.theme}]),onClick:l=>s.$emit("changeTheme",{id:a,label:A(Ek)[a]})},Be(A(Ek)[a]),11,Q1e)),64))])]),J1e]))}}),eve=je(Z1e,[["__scopeId","data-v-391b4e37"]]),tve={class:"references-header"},nve={key:0,class:"references-navigation t-doc__sidebar"},rve={class:"references-navigation-list"},ive={class:"references-editor"},sve={class:"references-editor-textarea"},ove={class:"references-rendered"},ave={key:0,class:"references-footer"},lve=Se({inheritAttrs:!1,__name:"ApiReferenceLayout",props:{configuration:{},parsedSpec:{},rawSpec:{}},emits:["changeTheme","updateContent","loadSwaggerFile","linkSwaggerFile","toggleDarkMode"],setup(e){const t=e,n=Hm("(min-width: 1150px)"),r=ce("100dvh"),i=ce(null);Q6(i,_=>{r.value=_[0].contentRect.height+"px"});const{breadcrumb:s,collapsedSidebarItems:o,isSidebarOpen:a,setCollapsedSidebarItem:l,hideModels:c,setParsedSpec:u}=Ai(),{getPathRoutingId:d,getSectionId:f,getTagId:h,hash:p,isIntersectionEnabled:m,pathRouting:g,updateHash:b}=rr();g.value=t.configuration.pathRouting,FC(()=>b());const y=async _=>{var S;m.value=!1,b(),_?mm(_):(S=i.value)==null||S.scrollTo(0,0),await Ls(100),m.value=!0};Mt(()=>{G3.on(({specTitle:_})=>{Npe(t.rawSpec,_)}),window.onhashchange=()=>y(decodeURIComponent(window.location.hash.replace(/^#/,""))),window.onpopstate=()=>g.value&&y(d(window.location.pathname))});const v=ae(()=>n.value||!t.configuration.isEditable),w=W6(_=>{if((_.target.scrollTop??0)<50){const S=t.configuration.pathRouting?t.configuration.pathRouting.basePath:window.location.pathname;window.history.replaceState({},"",S+window.location.search),p.value=""}}),T=ae(()=>({breadcrumb:s.value,spec:t.parsedSpec}));return dt(()=>t.parsedSpec,u,{deep:!0}),Uo(()=>{var _,S;const I=vc();if(I&&((_=I.payload).data||(_.data=By()),t.configuration.pathRouting)){const R=d(I.url);p.value=R,I.payload.data.hash=R;for(const O in o)Object.hasOwn(o,O)&&delete o[O];if(R)l(f(R),!0);else{const O=(S=t.parsedSpec.tags)==null?void 0:S[0];O&&l(h(O),!0)}I.payload.data["useSidebarContent-collapsedSidebarItems"]=o}}),I4(()=>{var _;const S=Xa(),I="scalar-instance-id";if(!S)return I;let R=S.uid;return typeof window>"u"?(S.attrs||(S.attrs={}),S.attrs[I]=R):(_=S.vnode.el)!=null&&_.getAttribute&&(R=S.vnode.el.getAttribute(I)),`${I}-${R}`}),Zn(ow,()=>t.parsedSpec.security),Zn(W3,()=>t.configuration.hideDownloadButton),c.value=t.configuration.hideModels??!1,Fme(t.configuration),(_,S)=>{var I,R;return x(),j(Ne,null,[Q(A(yI),{id:(I=_.configuration)==null?void 0:I.theme,withDefaultFonts:(R=_.configuration)==null?void 0:R.withDefaultFonts},null,8,["id","withDefaultFonts"]),Q(A(EI),null,{default:Y(({styles:O})=>[Q(A(MJ),null,{default:Y(({styles:K})=>{var B,ge;return[ie("div",{ref_key:"documentEl",ref:i,class:ut(["scalar-api-reference references-layout",[{"references-editable":_.configuration.isEditable,"references-sidebar":_.configuration.showSidebar,"references-sidebar-mobile-open":A(a),"references-classic":_.configuration.layout==="classic"},O,K,_.$attrs.class]]),style:xr({"--full-height":r.value}),onScrollPassive:S[4]||(S[4]=(...le)=>A(w)&&A(w)(...le))},[ie("div",tve,[Ue(_.$slots,"header",ai(qr(T.value)),void 0,!0)]),_.configuration.showSidebar?(x(),j("aside",nve,[ie("div",rve,[Q(A(rM),{parsedSpec:_.parsedSpec},{"sidebar-start":Y(()=>[Ue(_.$slots,"sidebar-start",ai(qr(T.value)),void 0,!0)]),"sidebar-end":Y(()=>[Ue(_.$slots,"sidebar-end",ai(qr(T.value)),void 0,!0)]),_:3},8,["parsedSpec"])])])):pe("",!0),Ya(ie("div",ive,[ie("div",sve,[Ue(_.$slots,"editor",ai(qr(T.value)),void 0,!0)])],512),[[wc,_.configuration.isEditable]]),v.value?(x(),j(Ne,{key:1},[ie("div",ove,[Q(A(H1e),{baseServerURL:_.configuration.baseServerURL,layout:_.configuration.layout==="classic"?"accordion":"default",parsedSpec:_.parsedSpec},Xd({start:Y(()=>[Ue(_.$slots,"content-start",ai(qr(T.value)),void 0,!0)]),end:Y(()=>[Ue(_.$slots,"content-end",ai(qr(T.value)),void 0,!0)]),_:2},[(B=_.configuration)!=null&&B.isEditable?{name:"empty-state",fn:Y(()=>{var le;return[Q(eve,{theme:((le=_.configuration)==null?void 0:le.theme)||"default",onChangeTheme:S[0]||(S[0]=ye=>_.$emit("changeTheme",ye)),onLinkSwaggerFile:S[1]||(S[1]=ye=>_.$emit("linkSwaggerFile")),onLoadSwaggerFile:S[2]||(S[2]=ye=>_.$emit("loadSwaggerFile")),onUpdateContent:S[3]||(S[3]=ye=>_.$emit("updateContent",ye))},null,8,["theme"])]}),key:"0"}:void 0]),1032,["baseServerURL","layout","parsedSpec"])]),_.$slots.footer?(x(),j("div",ave,[Ue(_.$slots,"footer",ai(qr(T.value)),void 0,!0)])):pe("",!0)],64)):pe("",!0),Q(wge,{parsedSpec:_.parsedSpec,proxyUrl:(ge=_.configuration)==null?void 0:ge.proxy},{"sidebar-start":Y(()=>[Ue(_.$slots,"sidebar-start",ai(qr(T.value)),void 0,!0)]),"sidebar-end":Y(()=>[Ue(_.$slots,"sidebar-end",ai(qr(T.value)),void 0,!0)]),_:3},8,["parsedSpec","proxyUrl"])],38)]}),_:2},1024)]),_:3}),Q(A(Lme))],64)}}}),vM=je(lve,[["__scopeId","data-v-ce46649f"]]),cve={},uve={class:"references-classic-header-container"},dve={class:"references-classic-header"};function fve(e,t){return x(),j("div",uve,[ie("div",dve,[Ue(e.$slots,"default",{},void 0,!0),Ue(e.$slots,"dark-mode-toggle",{},void 0,!0)])])}const hve=je(cve,[["render",fve],["__scopeId","data-v-a860f78f"]]),pve=e=>(er("data-v-559a0a79"),e=e(),tr(),e),mve={class:"darklight-reference"},gve={key:0},bve={key:1},yve=pve(()=>ie("a",{class:"darklight-reference-promo",href:"https://www.scalar.com",target:"_blank"}," Powered by scalar.com ",-1)),vve=Se({__name:"DarkModeToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(e){return(t,n)=>(x(),j("div",mve,[ie("button",{class:"darklight",type:"button",onClick:n[0]||(n[0]=r=>t.$emit("toggleDarkMode"))},[Q(A(on),{icon:"LightDarkModeToggle"}),t.isDarkMode?(x(),j("span",gve,"Light Mode")):(x(),j("span",bve,"Dark Mode"))]),yve]))}}),Eve=je(vve,[["__scopeId","data-v-559a0a79"]]),_ve=Se({__name:"DarkModeIconToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(e){return(t,n)=>(x(),j("button",{class:"darklight",type:"button",onClick:n[0]||(n[0]=r=>t.$emit("toggleDarkMode"))},[Q(A(on),{icon:t.isDarkMode?"DarkMode":"LightMode"},null,8,["icon"]),Q(dM,null,{default:Y(()=>[Ie(" Switch to "+Be(t.isDarkMode?"Light":"Dark")+" Mode ",1)]),_:1})]))}}),wve=je(_ve,[["__scopeId","data-v-8f61ca56"]]);function Tve(e,t){let n=e;const r=t.required&&t.required.includes(e);return n+=r?" REQUIRED ":" optional ",t.properties[e]&&(n+=t.properties[e].type,t.properties[e].description&&(n+=" "+t.properties[e].description)),n}function Sve(e){var t;const n=["Body"],r=(t=e==null?void 0:e.schema)==null?void 0:t.properties;return r&&Object.keys(r).forEach(i=>{if(!e.schema)return;n.push(Tve(i,e.schema));const s=r[i];s.type==="object"&&s.properties&&s.properties&&Object.keys(s.properties).forEach(o=>{var a,l;n.push(`${o} ${(l=(a=s.properties)==null?void 0:a[o])==null?void 0:l.type}`)})}),n}function kve(e){var t,n,r;try{const i=(r=(n=(t=e==null?void 0:e.information)==null?void 0:t.requestBody)==null?void 0:n.content)==null?void 0:r["application/json"];if(!i)throw new Error("Body not found");return Sve(i)}catch{return!1}}const xve=e=>(er("data-v-3445e6c6"),e=e(),tr(),e),Ave=xve(()=>ie("div",{class:"ref-search-meta"},[ie("span",null,"↑↓ Navigate"),ie("span",null,"⏎ Select")],-1)),Cve=Se({__name:"SearchModal",props:{parsedSpec:{},modalState:{}},setup(e){const t=e,n=kp(t,"parsedSpec"),r={heading:"DocsPage",model:"JsonObject",req:"Terminal",tag:"CodeFolder",webhook:"Terminal"},i=$v(),s=ce([]),o=ce([]),a=ce(0),l=ce(""),c=ce(null),u=new Oc(s.value,{keys:["title","description","body"]}),d=()=>{a.value=0,o.value=u.search(l.value)},f=ae(()=>w.value[a.value]),{getHeadingId:h,getWebhookId:p,getModelId:m,getOperationId:g,getTagId:b}=rr();dt(()=>t.modalState.open,I=>{I&&(l.value="",a.value=0,o.value=[])});const{setCollapsedSidebarItem:y,hideModels:v}=Ai();dt(n.value,async()=>{var I,R,O,K,B;if(s.value=[],!((R=(I=t.parsedSpec)==null?void 0:I.tags)!=null&&R.length)&&!((O=t.parsedSpec)!=null&&O.webhooks)){u.setCollection([]);return}const ge=[],le=await sm(((K=t.parsedSpec.info)==null?void 0:K.description)??"");le.length&&(le.forEach(he=>{ge.push({type:"heading",title:`Info > ${he.value}`,description:"",href:`#${h(he)}`,tag:he.slug,body:""})}),s.value=s.value.concat(ge)),(B=t.parsedSpec.tags)==null||B.forEach(he=>{const C={title:he["x-displayName"]??he.name,href:`#${b(he)}`,description:he.description,type:"tag",tag:he.name,body:""};s.value.push(C),he.operations&&he.operations.forEach(F=>{const{parameterMap:X}=lw({operation:F}),k=kve(F)||X.value;let D=null;typeof k!="boolean"&&(D=k);const U={type:"req",title:F.name??F.path,href:`#${g(F,he)}`,operationId:F.operationId,description:F.description??"",httpVerb:F.httpVerb,path:F.path,tag:he.name,operation:F};D&&(U.body=D),s.value.push(U)})});const ye=t.parsedSpec.webhooks,Fe=[];ye&&Object.keys(ye).forEach(he=>{Object.keys(ye[he]).forEach(C=>{var F;Fe.push({type:"webhook",title:`Webhook: ${(F=ye[he][C])==null?void 0:F.name}`,href:`#${p(he,C)}`,description:he,httpVerb:C,tag:he,body:""})}),s.value=s.value.concat(Fe)});const J=v.value?{}:Ki(t.parsedSpec),ee=[];J&&(Object.keys(J).forEach(he=>{ee.push({type:"model",title:"Model",href:`#${m(he)}`,description:J[he].title??he,tag:he,body:""})}),s.value=s.value.concat(ee)),u.setCollection(s.value)},{immediate:!0}),Wu(i.enter,()=>{t.modalState.open&&window&&(_(f.value),window.location.hash=f.value.item.href,t.modalState.hide())}),Wu(i.ArrowDown,()=>{var I;t.modalState.open&&window&&(a.value<w.value.length-1?a.value++:a.value=0,(I=document.getElementById(f.value.item.href))==null||I.scrollIntoView({behavior:"smooth",block:"center"}))}),Wu(i.ArrowUp,()=>{var I;t.modalState.open&&window&&(a.value>0?a.value--:a.value=w.value.length-1,(I=document.getElementById(f.value.item.href))==null||I.scrollIntoView({behavior:"smooth",block:"center"}))});const w=ae(()=>l.value.length===0?s.value.map(I=>({item:I})):o.value),T=/#(tag\/[^/]*)/,_=I=>{let R="models";const O=I.item.href.match(T);O!=null&&O.length&&O.length>1&&(R=O[1]),y(R,!0),t.modalState.hide()};function S(I){const R=new URL(window.location.href);return R.hash=I,R.toString()}return(I,R)=>(x(),de(A(_P),{state:I.modalState,variant:"search"},{default:Y(()=>[ie("div",{ref_key:"searchModalRef",ref:c,class:"ref-search-container"},[Q(A(Aie),{modelValue:l.value,"onUpdate:modelValue":R[0]||(R[0]=O=>l.value=O),onInput:d},null,8,["modelValue"])],512),Q(A(Nie),{class:"ref-search-results custom-scroll",noResults:!w.value.length},{query:Y(()=>[Ie(Be(l.value),1)]),default:Y(()=>[(x(!0),j(Ne,null,pt(w.value,(O,K)=>(x(),de(A($ie),{id:O.item.href,key:O.refIndex,active:a.value===K,href:S(O.item.href),icon:r[O.item.type],onClick:B=>_(O),onFocus:B=>a.value=K},Xd({default:Y(()=>[Ie(Be(O.item.title)+" ",1)]),_:2},[(O.item.httpVerb||O.item.path)&&O.item.path!==O.item.title?{name:"description",fn:Y(()=>[Ie(Be(O.item.path),1)]),key:"0"}:O.item.description?{name:"description",fn:Y(()=>[Ie(Be(O.item.description),1)]),key:"1"}:void 0,O.item.type==="req"?{name:"addon",fn:Y(()=>[Q(nM,{method:O.item.httpVerb??"get"},null,8,["method"])]),key:"2"}:void 0]),1032,["id","active","href","icon","onClick","onFocus"]))),128))]),_:1},8,["noResults"]),Ave]),_:1},8,["state"]))}}),Nve=je(Cve,[["__scopeId","data-v-3445e6c6"]]),Ove=e=>(er("data-v-edb0a931"),e=e(),tr(),e),Dve={class:"sidebar-search-input"},Ive=Ove(()=>ie("span",{class:"sidebar-search-placeholder"},"Search",-1)),Rve={class:"sidebar-search-shortcut"},Pve={class:"sidebar-search-key"},Lve=Se({__name:"SearchButton",props:{spec:{},searchHotKey:{default:"k"}},setup(e){const t=e,n=wP(),r=$v({passive:!1,onEventFired(i){!fp()&&i.ctrlKey&&i.key===t.searchHotKey&&(i.preventDefault(),i.stopPropagation())}});return Wu(r[`${fp()?"meta":"control"}_${t.searchHotKey}`],()=>n.open?n.hide():n.show()),(i,s)=>(x(),j(Ne,null,[ie("button",{class:ut(["sidebar-search",i.$attrs.class]),type:"button",onClick:s[0]||(s[0]=(...o)=>A(n).show&&A(n).show(...o))},[Q(A(on),{class:"search-icon",icon:"Search",size:"sm"}),ie("div",Dve,[Ive,ie("span",Rve,[ie("span",Pve,Be(A(fp)()?"⌘":"⌃")+Be(i.searchHotKey),1)])])],2),Q(Nve,{modalState:A(n),parsedSpec:i.spec},null,8,["modalState","parsedSpec"])],64))}}),EM=je(Lve,[["__scopeId","data-v-edb0a931"]]),Mve=Se({__name:"ClassicLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(e){const t=e,n=ae(()=>({...t.configuration,showSidebar:!1}));return(r,i)=>(x(),de(vM,{configuration:n.value,parsedSpec:r.parsedSpec,rawSpec:r.rawSpec},{"content-start":Y(({spec:s})=>[Q(hve,null,{"dark-mode-toggle":Y(()=>[Q(A(wve),{isDarkMode:r.isDark,onToggleDarkMode:i[0]||(i[0]=o=>r.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),default:Y(()=>[Q(EM,{class:"t-doc__sidebar",searchHotKey:n.value.searchHotKey,spec:s},null,8,["searchHotKey","spec"])]),_:2},1024)]),"content-end":Y(()=>[Ue(r.$slots,"footer")]),_:3},8,["configuration","parsedSpec","rawSpec"]))}}),$ve={class:"references-mobile-header t-doc__header"},Fve={class:"references-mobile-breadcrumbs"},Bve={class:"references-mobile-header-actions"},Uve=Se({__name:"MobileHeader",props:{open:{type:Boolean}},emits:["update:open"],setup(e){const{breadcrumb:t}=Ai();return(n,r)=>(x(),j("div",$ve,[Q(A(yf),{icon:n.open?"Close":"Menu",label:n.open?"Close Menu":"Open Menu",size:"md",onClick:r[0]||(r[0]=i=>n.$emit("update:open",!n.open))},null,8,["icon","label"]),ie("span",Fve,Be(A(t)),1),ie("div",Bve,[Ue(n.$slots,"actions",{},void 0,!0)])]))}}),Hve=je(Uve,[["__scopeId","data-v-0242e3de"]]),jve={class:"scalar-api-references-standalone-search"},qve=Se({__name:"ModernLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(e){const t=e,n=Hm("(max-width: 1000px)"),{isSidebarOpen:r}=Ai();dt(n,(s,o)=>{s&&!o&&(r.value=!1)});const{hash:i}=rr();return dt(i,(s,o)=>{s&&s!==o&&(r.value=!1)}),(s,o)=>(x(),de(vM,{class:ut({"scalar-api-references-standalone-mobile":s.configuration.showSidebar}),configuration:s.configuration,parsedSpec:s.parsedSpec,rawSpec:s.rawSpec},{header:Y(()=>[t.configuration.showSidebar?(x(),de(Hve,{key:0,open:A(r),"onUpdate:open":o[0]||(o[0]=a=>gn(r)?r.value=a:null)},null,8,["open"])):pe("",!0)]),"sidebar-start":Y(({spec:a})=>{var l;return[ie("div",jve,[Q(EM,{searchHotKey:(l=t.configuration)==null?void 0:l.searchHotKey,spec:a},null,8,["searchHotKey","spec"])])]}),"sidebar-end":Y(()=>[Q(A(Eve),{isDarkMode:s.isDark,onToggleDarkMode:o[1]||(o[1]=a=>s.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),"content-end":Y(()=>[Ue(s.$slots,"footer",{},void 0,!0)]),_:3},8,["class","configuration","parsedSpec","rawSpec"]))}}),Vve=je(qve,[["__scopeId","data-v-333fecad"]]),zve={modern:Vve,classic:Mve},Kve=Se({__name:"ApiReference",props:{configuration:{}},emits:["updateContent"],setup(e){var t,n;const r=e,{toggleDarkMode:i,isDark:s}=Mme((t=r.configuration)==null?void 0:t.darkMode);dt(()=>{var h;return(h=r.configuration)==null?void 0:h.darkMode},h=>{h!==s.value&&i()});const o=ae(()=>{var h,p;if((h=r.configuration)!=null&&h.customCss)return FJ((p=r.configuration)==null?void 0:p.customCss)});dt(o,()=>console.log(o.value));const a=ae(()=>{var h;return{spec:{content:void 0,url:void 0,...(h=r.configuration)==null?void 0:h.spec},proxy:void 0,theme:"default",showSidebar:!0,isEditable:!1,...r.configuration,customCss:o.value}});(n=a.value)!=null&&n.metaData&&Bj(a.value.metaData);function l(h,p){dt(()=>{var m;return(m=a.value)==null?void 0:m[h]},m=>{typeof m<"u"&&p(m)},{immediate:!0})}const{setAuthentication:c}=Ic();l("authentication",c);const{setExcludedClients:u}=Rf();l("hiddenClients",u);const{parsedSpec:d,rawSpec:f}=Xme({proxy:kp(()=>{var h;return((h=r.configuration)==null?void 0:h.proxy)||""}),specConfig:kp(()=>{var h;return((h=r.configuration)==null?void 0:h.spec)||{}})});return(h,p)=>{var m,g;return x(),j(Ne,null,[(m=a.value)!=null&&m.customCss?(x(),de(Ei("style"),{key:0},{default:Y(()=>[Ie(Be(a.value.customCss),1)]),_:1})):pe("",!0),(x(),de(Ei(A(zve)[((g=a.value)==null?void 0:g.layout)||"modern"]),{configuration:a.value,isDark:A(s),parsedSpec:A(d),rawSpec:A(f),onToggleDarkMode:p[0]||(p[0]=()=>A(i)()),onUpdateContent:p[1]||(p[1]=b=>h.$emit("updateContent",b))},{footer:Y(()=>[Ue(h.$slots,"footer")]),_:3},40,["configuration","isDark","parsedSpec","rawSpec"]))],64)}}});function Wve(e,t,n=!0){const r=qn(t),i=S4(Kve,{configuration:r});function s(o=e){if(!o){console.warn("Invalid HTML element provided. Cannot mount Scalar References");return}i.mount(o)}return n&&s(),{updateConfig(o,a=!0){a?Object.assign(r,o):JP(r,o)},updateSpec(o){r.spec=o},mount:s,unmount:()=>i.unmount()}}globalThis.__VUE_OPTIONS_API__=!0;globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!0;globalThis.__VUE_PROD_DEVTOOLS__=!1;const Gve=e=>{const t=Tl.useRef(null),[n,r]=Tl.useState(null);return Tl.useEffect(()=>{if(!t.current)return n==null?void 0:n.unmount;const i=Wve(t.current,e.configuration??{});return r(i),i.unmount},[t]),Tl.useEffect(()=>{n==null||n.updateConfig(e.configuration??{},!1)},[e.configuration]),TM.jsx("div",{ref:t})};exports.$6=bne;exports.$t=Hn;exports.A6=Bne;exports.A_=tP;exports.Ae=kt;exports.ApiReferenceReact=Gve;exports.Ax=SP;exports.C6=Pne;exports.Cs=fs;exports.Cx=wP;exports.E6=Lne;exports.Ex=TP;exports.Fragment=Ne;exports.G=Oe;exports.Hh=ug;exports.Ie=U6;exports.Is=vs;exports.J$=KR;exports.Je=ln;exports.Jp=Hy;exports.K_=oP;exports.Kh=fg;exports.Le=Ut;exports.N=Mm;exports.OS=TI;exports.Oi=ql;exports.Oo=rl;exports.Pb=VE;exports.Ph=lg;exports.Q=$m;exports.Q0=kE;exports.QS=PI;exports.RS=kI;exports.Re=Bt;exports.S6=gne;exports.Sb=HE;exports.Tb=qE;exports.Te=Nt;exports.To=il;exports.Tu=fp;exports.Tx=kP;exports.U_=aP;exports.V=Fm;exports.VS=NI;exports.V_=rP;exports.Vd=Zp;exports.Vk=yI;exports.XE=GP;exports.XS=RI;exports.X_=uP;exports.Y0=TE;exports.YS=II;exports.Y_=cP;exports.Z_=fP;exports.Ze=on;exports._6=Ene;exports.ax=gP;exports.b6=dne;exports.c6=fZ;exports.ca=Ic;exports.computed=ae;exports.createBaseVNode=ie;exports.createBlock=de;exports.createCommentVNode=pe;exports.createElementBlock=j;exports.createStaticVNode=_c;exports.createTextVNode=Ie;exports.createVNode=Q;exports.d6=hte;exports.de=Je;exports.defineComponent=Se;exports.f6=Ote;exports.gx=EP;exports.h6=Tte;exports.jS=AI;exports.jt=mr;exports.k6=mne;exports.k_=QR;exports.m6=Bte;exports.me=MN;exports.nd=Vp;exports.normalizeClass=ut;exports.normalizeStyle=xr;exports.oe=je;exports.onBeforeUnmount=BC;exports.openBlock=x;exports.p6=$te;exports.p_=YR;exports.pb=$E;exports.pe=$N;exports.pe$1=it;exports.po=Ua;exports.popScopeId=tr;exports.pt=xn;exports.pushScopeId=er;exports.qS=OI;exports.ref=ce;exports.renderList=pt;exports.renderSlot=Ue;exports.toDisplayString=Be;exports.toRaw=tt;exports.toRef=kp;exports.toValue=$b;exports.ua=Rc;exports.unref=A;exports.useMagicKeys=$v;exports.useMediaQuery=Hm;exports.ut=En;exports.v6=fne;exports.vModelCheckbox=uN;exports.vModelText=g4;exports.vShow=wc;exports.w6=hne;exports.watch=dt;exports.whenever=Wu;exports.withCtx=Y;exports.withDirectives=Ya;exports.withKeys=_4;exports.wn=Po;exports.wr=Zr;exports.x6=Ane;exports.xe=FN;exports.xg=N1;exports.xx=_P;exports.y6=nne;exports.ye=H6;exports.ys=l2;exports.yy=NE;exports.zE=WP;exports.zs=Us;
371
+ const { statusCode, body } = await request('${r.url}${o}'${a})`}}function Pye(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?Lf(r.queryString):void 0),o=s.size?`?${s.toString()}`:"";(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(l=>{i.headers[l.name]=l.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(l=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(i).forEach(l=>{i[l]===void 0&&delete i[l]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=`JSON.stringify(${es(JSON.parse(i.body))})`));const a=Object.keys(i).length?`, ${es(i)}`:"";return{target:"node",client:"fetch",code:`fetch('${r.url}${o}'${a})`}}function Lye(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?Lf(r.queryString):void 0),o=s.size?`?${s.toString()}`:"";(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(l=>{i.headers[l.name]=l.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(l=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(i).forEach(l=>{i[l]===void 0&&delete i[l]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=`JSON.stringify(${es(JSON.parse(i.body))})`));const a=Object.keys(i).length?`, ${es(i)}`:"";return{target:"js",client:"fetch",code:`fetch('${r.url}${o}'${a})`}}function Mye(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?Lf(r.queryString):void 0);s.size&&(i.query={},s.forEach((a,l)=>{i.query[l]=a})),(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(a=>{i.headers[a.name]=a.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(a=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${a.name}=${a.value}`:`${a.name}=${a.value}`})),Object.keys(i).forEach(a=>{i[a]===void 0&&delete i[a]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=JSON.parse(i.body)));const o=Object.keys(i).length?`, ${es(i)}`:"";return{target:"js",client:"ofetch",code:`ofetch('${r.url}'${o})`}}function $ye(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?Lf(r.queryString):void 0);s.size&&(i.query={},s.forEach((a,l)=>{i.query[l]=a})),(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(a=>{i.headers[a.name]=a.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(a=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${a.name}=${a.value}`:`${a.name}=${a.value}`})),Object.keys(i).forEach(a=>{i[a]===void 0&&delete i[a]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=JSON.parse(i.body)));const o=Object.keys(i).length?`, ${es(i)}`:"";return{target:"node",client:"ofetch",code:`ofetch('${r.url}'${o})`}}function XA(){const e=[Rye,Pye,Lye,Mye,$ye];return{get(t,n,r){const i=this.findPlugin(t,n);if(i)return i(r)},print(t,n,r){var i;return(i=this.get(t,n,r))==null?void 0:i.code},targets(){return e.map(t=>t().target).filter((t,n,r)=>r.indexOf(t)===n)},clients(){return e.map(t=>t().client)},plugins(){return e.map(t=>{const n=t();return{target:n.target,client:n.client}})},findPlugin(t,n){return e.find(r=>{const i=r();return i.target===t&&i.client===n})},hasPlugin(t,n){return!!this.findPlugin(t,n)}}}const Fye=Se({__name:"ExamplePicker",props:{examples:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=ce(Object.keys(n.examples)[0]);function s(a){a&&(i.value=a)}dt(()=>n.examples,()=>{s(Object.keys(n.examples)[0])},{immediate:!0}),dt(i,()=>{i.value&&r("update:modelValue",i.value)},{immediate:!0});function o(a){if(!a)return"Select an example";const l=n.examples[a];return(l==null?void 0:l.summary)??a}return(a,l)=>(x(),de(pw,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=c=>i.value=c),class:"example-selector",options:Object.keys(a.examples).map(c=>({label:o(c),value:c}))},{default:Y(()=>[Ie(Be(o(i.value)),1)]),_:1},8,["modelValue","options"]))}}),hM=je(Fye,[["__scopeId","data-v-652a7e14"]]),Bye={class:"request-header"},Uye={class:"code-snippet"},Hye={key:0,class:"request-card-footer-addon"},jye=Se({__name:"ExampleRequest",props:{operation:{}},setup(e){const t=e,n=`components-Content-Operation-Example-Request${wE(t.operation.path+t.operation.httpVerb+t.operation.operationId)}`,r=ce(Dc[n]??""),i=ce(),{copyToClipboard:s}=Yc(),{httpClient:o,setHttpClient:a,httpTargetTitle:l,httpClientTitle:c}=uw(),{availableTargets:u}=Rf(),{server:d}=vf(),{authentication:f}=Ic(),h=ae(()=>{var g,b,y,v,w,T,_;return((v=(y=(b=(g=t.operation.information)==null?void 0:g.requestBody)==null?void 0:b.content)==null?void 0:y["application/json"])==null?void 0:v.examples)&&Object.keys((_=(T=(w=t.operation.information)==null?void 0:w.requestBody)==null?void 0:T.content)==null?void 0:_["application/json"].examples).length>1}),p=rn(ow),m=async()=>{var g;const b=SI({url:O1(d)},Uy(t.operation,{replaceVariables:!0},i.value),qE(f,((g=t.operation.information)==null?void 0:g.security)??(p==null?void 0:p())));try{return XA().hasPlugin(o.targetKey.replace("javascript","js"),o.clientKey)?XA().print(o.targetKey.replace("javascript","js"),o.clientKey,b)??"":await new Rj(b).convert(o.targetKey,o.clientKey)}catch(y){return console.error("[ExampleRequest]",y),""}};return dt([()=>o,()=>d,()=>f,()=>i],async()=>{r.value=await m()},{deep:!0,immediate:!0}),Uo(async()=>{const g=vc();await Ls(1),g.payload.data[n]=r.value}),ae(()=>YP({serverState:d,authenticationState:f,operation:t.operation,globalSecurity:p==null?void 0:p()})),(g,b)=>(x(),de(A(Zg),{class:"dark-mode"},{default:Y(()=>[Q(A(e0),{muted:""},{actions:Y(()=>[Q(pw,{class:"request-client-picker",modelValue:JSON.stringify(A(o)),options:A(u).map(y=>({value:y.key,label:y.title,options:y.clients.map(v=>({value:JSON.stringify({targetKey:y.key,clientKey:v.key}),label:v.title}))})),"onUpdate:modelValue":b[0]||(b[0]=y=>A(a)(JSON.parse(y)))},{default:Y(()=>[Ie(Be(A(l))+" "+Be(A(c)),1)]),_:1},8,["modelValue","options"]),ie("button",{class:"copy-button",type:"button",onClick:b[1]||(b[1]=y=>A(s)(r.value))},[Q(A(on),{icon:"Clipboard",width:"10px"})])]),default:Y(()=>[ie("div",Bye,[Q(A(rl),{as:"span",class:"request-method",method:g.operation.httpVerb},null,8,["method"]),Ue(g.$slots,"header",{},void 0,!0)])]),_:3}),Q(A(Jc),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:Y(()=>[ie("div",Uye,[Q(A(fs),{content:r.value,hideCredentials:A(kP)(A(f)),lang:A(o).targetKey,lineNumbers:""},null,8,["content","hideCredentials","lang"])])]),_:1}),h.value||g.$slots.footer?(x(),de(A(hw),{key:0,class:"request-card-footer",contrast:""},{default:Y(()=>{var y,v,w,T;return[h.value?(x(),j("div",Hye,[Q(hM,{class:"request-example-selector",examples:((T=(w=(v=(y=g.operation.information)==null?void 0:y.requestBody)==null?void 0:v.content)==null?void 0:w["application/json"])==null?void 0:T.examples)??[],"onUpdate:modelValue":b[2]||(b[2]=_=>i.value=_)},null,8,["examples"])])):pe("",!0),Ue(g.$slots,"footer",{},void 0,!0)]}),_:3})):pe("",!0)]),_:3}))}}),pM=je(jye,[["__scopeId","data-v-317d5c87"]]),qye={key:0},Vye={key:1},zye={key:0,class:"rule"},Kye={class:"rule-title"},Wye={class:"rule-items"},Gye={key:2,class:"empty-state"},Yye=Se({__name:"ExampleResponse",props:{response:{}},setup(e){const t=["oneOf","anyOf","not"],n=r=>r.reduce((i,s)=>({...i,...s}),{});return(r,i)=>{var s,o,a,l,c,u,d;return(s=r.response)!=null&&s.example?(x(),j("div",qye,[Q(A(fs),{content:A(Ad)((o=r.response)==null?void 0:o.example),lang:"json"},null,8,["content"])])):(a=r.response)!=null&&a.schema?(x(),j("div",Vye,[(l=r.response)!=null&&l.schema.type?(x(),de(A(fs),{key:0,content:A(Ad)(A(Tn)((c=r.response)==null?void 0:c.schema,{emptyString:"…",mode:"read"})),lang:"json"},null,8,["content"])):pe("",!0),(x(),j(Ne,null,pt(t,f=>{var h,p,m,g,b,y;return x(),j(Ne,{key:f},[(h=r.response)!=null&&h.schema[f]&&(((p=r.response)==null?void 0:p.schema[f].length)>1||f==="not")?(x(),j("div",zye,[ie("div",Kye,Be(f),1),ie("ol",Wye,[(x(!0),j(Ne,null,pt((m=r.response)==null?void 0:m.schema[f],(v,w)=>(x(),j("li",{key:w,class:"rule-item"},[Q(A(fs),{content:A(Tn)(v,{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])]))),128))])])):(g=r.response)!=null&&g.schema[f]&&((b=r.response)==null?void 0:b.schema[f].length)===1?(x(),de(A(fs),{key:1,content:A(Tn)((y=r.response)==null?void 0:y.schema[f][0],{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])):pe("",!0)],64)}),64)),(u=r.response)!=null&&u.schema.allOf?(x(),de(A(fs),{key:1,content:n((d=r.response)==null?void 0:d.schema.allOf.map(f=>A(Tn)(f,{emptyString:"…",mode:"read"}))),lang:"json"},null,8,["content"])):pe("",!0)])):(x(),j("div",Gye," No Body "))}}}),QA=je(Yye,[["__scopeId","data-v-800e8c7d"]]),Xye=e=>(er("data-v-314905de"),e=e(),tr(),e),Qye={key:1,class:"scalar-card-checkbox"},Jye=Xye(()=>ie("span",{class:"scalar-card-checkbox-checkmark"},null,-1)),Zye={class:"scalar-card-container custom-scroll"},e1e={key:1,class:"response-description"},t1e=Se({__name:"PathResponses",props:{operation:{}},setup(e){const t=e,{copyToClipboard:n}=Yc(),r=ce(),i=ae(()=>{var f,h;return Object.keys(((h=(f=t==null?void 0:t.operation)==null?void 0:f.information)==null?void 0:h.responses)??{}).sort(p=>p==="default"?-1:0)}),s=ae(()=>!!l.value.examples),o=ce(0),a=ae(()=>{var f,h;const p=i.value[o.value];return(h=(f=t.operation.information)==null?void 0:f.responses)==null?void 0:h[p]}),l=ae(()=>{var f;const h=xI((f=a.value)==null?void 0:f.content);return(h==null?void 0:h["application/json"])??(h==null?void 0:h["text/plain"])??a.value}),c=ae(()=>({...l.value,example:s.value&&r.value?l.value.examples[r.value].value??l.value.examples[r.value]:l.value.example})),u=f=>{o.value=f},d=ce(!1);return(f,h)=>i.value.length?(x(),de(A(Zg),{key:0},{default:Y(()=>{var p;return[Q(A(_be),{muted:"",x:"as",onChange:u},{actions:Y(()=>{var m,g;return[(m=l.value)!=null&&m.example?(x(),j("button",{key:0,class:"code-copy",type:"button",onClick:h[0]||(h[0]=()=>{var b;return A(n)((b=l.value)==null?void 0:b.example)})},[Q(A(on),{icon:"Clipboard",width:"10px",x:"asd"})])):pe("",!0),(g=l.value)!=null&&g.schema?(x(),j("label",Qye,[Ie(" Show Schema "),Ya(ie("input",{"onUpdate:modelValue":h[1]||(h[1]=b=>d.value=b),class:"scalar-card-checkbox-input",type:"checkbox"},null,512),[[uN,d.value]]),Jye])):pe("",!0)]}),default:Y(()=>[(x(!0),j(Ne,null,pt(i.value,m=>(x(),de(A(Tbe),{key:m},{default:Y(()=>[Ie(Be(m),1)]),_:2},1024))),128))]),_:1}),ie("div",Zye,[Q(A(Jc),{muted:""},{default:Y(()=>{var m;return[(m=l.value)!=null&&m.schema?(x(),j(Ne,{key:0},[d.value&&c.value?(x(),de(A(fs),{key:0,content:c.value,lang:"json"},null,8,["content"])):(x(),de(QA,{key:1,response:c.value},null,8,["response"]))],64)):(x(),de(QA,{key:1,response:c.value},null,8,["response"]))]}),_:1})]),(p=a.value)!=null&&p.description||s.value?(x(),de(A(hw),{key:0,class:"response-card-footer",muted:""},{default:Y(()=>{var m,g;return[s.value?(x(),de(hM,{key:0,class:"response-example-selector",examples:(m=l.value)==null?void 0:m.examples,"onUpdate:modelValue":h[2]||(h[2]=b=>r.value=b)},null,8,["examples"])):(g=a.value)!=null&&g.description?(x(),j("div",e1e,[Q(A(Fr),{class:"markdown",value:a.value.description},null,8,["value"])])):pe("",!0)]}),_:1})):pe("",!0)]}),_:1})):pe("",!0)}}),mM=je(t1e,[["__scopeId","data-v-314905de"]]),n1e=e=>(er("data-v-f44e2b65"),e=e(),tr(),e),r1e=n1e(()=>ie("span",null,"Test Request",-1)),i1e=Se({__name:"TryRequestButton",props:{operation:{}},setup(e){const t=rn(ow);return(n,r)=>(x(),de(A(rl),{as:"button",class:"show-api-client-button",method:n.operation.httpVerb,type:"button",onClick:r[0]||(r[0]=ef(i=>{var s;return A(I1)(n.operation,(s=A(t))==null?void 0:s())},["stop"]))},{default:Y(()=>[Q(A(on),{icon:"PaperAirplane"}),r1e]),_:1},8,["method"]))}}),sv=je(i1e,[["__scopeId","data-v-f44e2b65"]]),s1e={class:"examples"},o1e=Se({__name:"Operation",props:{id:{},operation:{}},setup(e){const t=e,n=ae(()=>{var r;const i=["x-custom-examples","x-codeSamples","x-code-samples"];for(const s of i)if((r=t.operation.information)!=null&&r[s])return t.operation.information[s];return null});return(r,i)=>(x(),de(A(Xc),{id:r.id,label:r.operation.name},{default:Y(()=>[Q(A(Qc),null,{default:Y(()=>[Q(A(fw),null,{default:Y(()=>[Q(A(gc),null,{default:Y(()=>{var s,o;return[(s=r.operation.information)!=null&&s.deprecated?(x(),de(A(qd),{key:0},{default:Y(()=>[Ie(" Deprecated ")]),_:1})):pe("",!0),ie("div",{class:ut((o=r.operation.information)!=null&&o.deprecated?"deprecated":"")},[Q(A(Vo),{level:3},{default:Y(()=>[Q(A(zo),{id:r.id??""},{default:Y(()=>[Ie(Be(r.operation.name),1)]),_:1},8,["id"])]),_:1})],2),Q(Nye,{operation:r.operation},null,8,["operation"])]}),_:1}),Q(A(gc),null,{default:Y(()=>[ie("div",s1e,[n.value?(x(),de(Obe,{key:0,examples:n.value,operation:r.operation},{header:Y(()=>{var s;return[Q(iv,{class:"example-path",deprecated:(s=r.operation.information)==null?void 0:s.deprecated,path:r.operation.path},null,8,["deprecated","path"])]}),footer:Y(()=>[Q(sv,{operation:r.operation},null,8,["operation"])]),_:1},8,["examples","operation"])):(x(),de(pM,{key:1,operation:r.operation},{header:Y(()=>{var s;return[Q(iv,{class:"example-path",deprecated:(s=r.operation.information)==null?void 0:s.deprecated,path:r.operation.path},null,8,["deprecated","path"])]}),footer:Y(()=>[Q(sv,{operation:r.operation},null,8,["operation"])]),_:1},8,["operation"])),Q(A(mM),{operation:r.operation,style:{"margin-top":"12px"}},null,8,["operation"])])]),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),gM=je(o1e,[["__scopeId","data-v-9cd31f5d"]]),a1e={class:"endpoint-details-card"},l1e=Se({__name:"EndpointDetailsCard",props:{operation:{}},setup(e){const t=e,{parameterMap:n}=lw(t),{responses:r}=cw(t.operation);return(i,s)=>{var o;return x(),j("div",a1e,[Q(fi,{class:"endpoint-details-card-item",parameters:A(n).path},{title:Y(()=>[Ie("Path Parameters")]),_:1},8,["parameters"]),Q(fi,{class:"endpoint-details-card-item",parameters:A(n).query},{title:Y(()=>[Ie("Query Parameters")]),_:1},8,["parameters"]),Q(fi,{class:"endpoint-details-card-item",parameters:A(n).header},{title:Y(()=>[Ie("Headers")]),_:1},8,["parameters"]),Q(mw,{class:"endpoint-details-card-item",requestBody:(o=i.operation.information)==null?void 0:o.requestBody},{title:Y(()=>[Ie("Body")]),_:1},8,["requestBody"]),Q(fi,{class:"endpoint-details-card-item",parameters:A(r)},{title:Y(()=>[Ie("Responses")]),_:1},8,["parameters"])])}}}),c1e=je(l1e,[["__scopeId","data-v-f94bee14"]]),u1e={class:"endpoint-header"},d1e={class:"endpoint-details"},f1e={class:"endpoint-label"},h1e={class:"endpoint-label-path"},p1e={class:"endpoint-label-name"},m1e={class:"endpoint-content"},g1e=Se({__name:"OperationAccordion",props:{id:{},operation:{}},setup(e){const{copyToClipboard:t}=Yc();return(n,r)=>(x(),de(A(lM),{id:n.id,class:"reference-endpoint",transparent:""},Xd({title:Y(()=>[ie("h3",u1e,[ie("div",d1e,[Q(A(rl),{class:"endpoint-type",method:n.operation.httpVerb,short:""},null,8,["method"]),Q(A(zo),{id:n.id??"",class:"endpoint-anchor"},{default:Y(()=>{var i;return[ie("div",f1e,[ie("div",h1e,[Q(iv,{deprecated:(i=n.operation.information)==null?void 0:i.deprecated,path:n.operation.path},null,8,["deprecated","path"])]),ie("div",p1e,Be(n.operation.name),1)])]}),_:1},8,["id"])])])]),actions:Y(({active:i})=>[i?(x(),de(sv,{key:0,operation:n.operation},null,8,["operation"])):(x(),de(A(on),{key:1,class:"endpoint-try-hint",icon:"PaperAirplane"})),Q(A(yf),{class:"endpoint-copy",icon:"Clipboard",label:"Copy endpoint URL",size:"xs",variant:"ghost",onClick:r[0]||(r[0]=ef(s=>A(t)(n.operation.path),["stop"]))})]),default:Y(()=>[ie("div",m1e,[Q(c1e,{operation:n.operation},null,8,["operation"]),Q(A(mM),{operation:n.operation},null,8,["operation"]),Q(pM,{operation:n.operation},null,8,["operation"])])]),_:2},[n.operation.description?{name:"description",fn:Y(()=>[Q(A(Fr),{value:n.operation.description,withImages:""},null,8,["value"])]),key:"0"}:void 0]),1032,["id"]))}}),b1e=je(g1e,[["__scopeId","data-v-f61893df"]]),y1e=Se({__name:"ShowMoreButton",props:{id:{}},setup(e){const{setCollapsedSidebarItem:t}=Ai();return(n,r)=>(x(),j("button",{class:"show-more",type:"button",onClick:r[0]||(r[0]=i=>A(t)(n.id,!0))},[Ie(" Show More "),Q(A(on),{class:"show-more-icon",icon:"ChevronDown"})]))}}),bM=je(y1e,[["__scopeId","data-v-60a9fbab"]]),v1e={class:"endpoints"},E1e=["onClick"],_1e=Se({__name:"Endpoints",props:{id:{},tag:{}},emits:["observeAndNavigate"],setup(e,{emit:t}){const n=e,r=t,{getOperationId:i,getTagId:s}=rr(),{setCollapsedSidebarItem:o}=Ai(),a=c=>{r("observeAndNavigate",c)};async function l(c){a(i(c,n.tag)),o(s(n.tag),!0)}return(c,u)=>(x(),de(A(Xc),{id:c.id,label:c.tag.name.toUpperCase()},{default:Y(()=>[Q(A(Qc),null,{default:Y(()=>[Q(A(fw),null,{default:Y(()=>[Q(A(gc),null,{default:Y(()=>[Q(A(Vo),{level:2},{default:Y(()=>[Q(A(zo),{id:A(s)(c.tag)},{default:Y(()=>[Ie(Be(c.tag["x-displayName"]??c.tag.name),1)]),_:1},8,["id"])]),_:1}),Q(A(Fr),{value:c.tag.description,withImages:""},null,8,["value"])]),_:1}),Q(A(gc),null,{default:Y(()=>{var d;return[((d=c.tag.operations)==null?void 0:d.length)>0?(x(),de(A(Zg),{key:0,class:"scalar-card-sticky"},{default:Y(()=>[Q(A(e0),{muted:""},{default:Y(()=>[Ie("Endpoints")]),_:1}),Q(A(Jc),{class:"custom-scroll",muted:""},{default:Y(()=>[ie("div",v1e,[(x(!0),j(Ne,null,pt(c.tag.operations,f=>(x(),j("a",{key:A(i)(f,c.tag),class:"endpoint",onClick:h=>l(f)},[Q(A(rl),{method:f.httpVerb},null,8,["method"]),ie("span",null,Be(f.path),1)],8,E1e))),128))])]),_:1})]),_:1})):pe("",!0)]}),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),w1e=je(_1e,[["__scopeId","data-v-b209ef2d"]]),T1e=(e,t)=>{X6(e,t,{childList:!0,subtree:!0})},S1e=Se({__name:"Tag",props:{id:{},tag:{},spec:{}},setup(e){const t=e,n=ce(null),{collapsedSidebarItems:r}=Ai(),{getTagId:i}=rr(),s=c=>{var u;return((u=t.spec.tags)==null?void 0:u.length)!==1||(c==null?void 0:c.name)!=="default"||(c==null?void 0:c.description)!==""},o=c=>{window.location.href=`#${c}`},a=c=>{T1e(n,(u,d)=>{u.forEach(f=>{Array.from(f.addedNodes).some(h=>h instanceof HTMLElement&&h.id===c)&&(o(c),d.disconnect())})})},l=c=>{document.getElementById(c)?o(c):a(c)};return(c,u)=>(x(),de(A(Pf),{ref_key:"sectionContainerRef",ref:n,class:"tag-section-container"},{default:Y(()=>{var d;return[s(c.tag)?(x(),de(w1e,{key:0,id:c.id,tag:c.tag,onObserveAndNavigate:l},null,8,["id","tag"])):pe("",!0),!A(r)[A(i)(c.tag)]&&((d=c.tag.operations)==null?void 0:d.length)>1?(x(),de(bM,{key:1,id:c.id??""},null,8,["id"])):Ue(c.$slots,"default",{key:2},void 0,!0)]}),_:3},512))}}),yM=je(S1e,[["__scopeId","data-v-7fef7ce7"]]),k1e=Se({__name:"TagAccordion",props:{tag:{},spec:{}},setup(e){const{getTagId:t}=rr();return(n,r)=>(x(),de(A(cM),{class:"tag-section"},{title:Y(()=>[Q(A(Vo),{class:"tag-name",level:2},{default:Y(()=>[Q(A(zo),{id:A(t)(n.tag)},{default:Y(()=>[Ie(Be(n.tag.name),1)]),_:1},8,["id"])]),_:1}),Q(A(Fr),{class:"tag-description",value:n.tag.description,withImages:""},null,8,["value"])]),default:Y(()=>[Ue(n.$slots,"default",{},void 0,!0)]),_:3}))}}),x1e=je(k1e,[["__scopeId","data-v-f11e3b56"]]),A1e=Se({__name:"Loading",props:{layout:{default:"default"},parsedSpec:{}},setup(e){const t=e,n=ce(!1),r=ce([]),i=ce([]),{getModelId:s,getSectionId:o,getTagId:a,hash:l,isIntersectionEnabled:c}=rr(),u=ce(t.layout!=="accordion"&&l.value);dt(()=>{var f;return(f=t.parsedSpec.tags)==null?void 0:f.length},f=>{var h,p;if(!l.value||typeof f!="number"||!t.parsedSpec.tags)return;const m=o();if(m.startsWith("tag")){let g=0;const b=((h=t.parsedSpec.tags)==null?void 0:h.findIndex(w=>a(w)===m))??0,y=l.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);if((y==null?void 0:y.length)===4){const w=y[2],T="/"+y[3];g=(p=t.parsedSpec.tags[b])==null?void 0:p.operations.findIndex(({httpVerb:_,path:S})=>w===_&&T===S)}const v=t.parsedSpec.tags[b];if(!v)return;v.name!=="default"&&(n.value=m!==l.value&&m.startsWith("tag")),r.value.push({...v,lazyOperations:v.operations.slice(g,g+2)})}else if(l.value.startsWith("model")){const g=Object.keys(Ki(t.parsedSpec)??{}),[,b]=l.value.toLowerCase().split("/"),y=l.value==="models"?0:g.findIndex(v=>v.toLowerCase()===b);if(y===-1)return;i.value=g.slice(y,y+3)}else mm(l.value),setTimeout(()=>c.value=!0,1e3)},{immediate:!0});const d=rv.on(({id:f})=>{const h=l.value;!h||f!==h||(d(),setTimeout(()=>{typeof window<"u"&&mm(h),u.value=!1,setTimeout(()=>c.value=!0,1e3)},300))});return Mt(()=>{l.value||setTimeout(()=>c.value=!0,1e3)}),(f,h)=>Ya((x(),j("div",{class:ut(["references-loading",{"references-loading-hidden-tag":n.value,"references-loading-top-spacer":r.value.length}])},[(x(!0),j(Ne,null,pt(r.value,p=>(x(),j(Ne,{key:p.id},[p.operations&&p.operations.length>0?(x(),de(A(yM),{key:0,spec:f.parsedSpec,tag:p},{default:Y(()=>[(x(!0),j(Ne,null,pt(p.lazyOperations,m=>(x(),de(A(gM),{key:`${m.httpVerb}-${m.operationId}`,operation:m,tag:p},null,8,["operation","tag"]))),128))]),_:2},1032,["spec","tag"])):pe("",!0)],64))),128)),i.value.length?(x(),de(A(Pf),{key:0},{default:Y(()=>[(x(!0),j(Ne,null,pt(i.value,p=>(x(),de(A(Xc),{key:p,label:p},{default:Y(()=>{var m;return[(m=A(Ki)(f.parsedSpec))!=null&&m[p]?(x(),de(A(Qc),{key:0},{default:Y(()=>{var g;return[Q(A(Vo),{level:2},{default:Y(()=>[Q(A(zo),{id:A(s)(p)},{default:Y(()=>{var b;return[Ie(Be(((b=A(Ki)(f.parsedSpec))==null?void 0:b[p]).title??p),1)]}),_:2},1032,["id"])]),_:2},1024),Q(A(wa),{name:p,noncollapsible:"",value:(g=A(Ki)(f.parsedSpec))==null?void 0:g[p]},null,8,["name","value"])]}),_:2},1024)):pe("",!0)]}),_:2},1032,["label"]))),128))]),_:1})):pe("",!0)],2)),[[wc,u.value]])}}),C1e=e=>(er("data-v-f19478dd"),e=e(),tr(),e),N1e=C1e(()=>ie("div",{id:"models"},null,-1)),O1e=Se({__name:"Models",props:{schemas:{}},setup(e){const t=e,{collapsedSidebarItems:n}=Ai(),{getModelId:r}=rr(),i=ae(()=>Object.keys(t.schemas??{}).length<=3||n[r()]),s=ae(()=>{const o=Object.keys(t.schemas??{});return i.value?o:o.slice(0,3)});return(o,a)=>o.schemas?(x(),de(A(Pf),{key:0},{default:Y(()=>[Q(A(vm),{id:"models",isLazy:!1},{default:Y(()=>[N1e]),_:1}),(x(!0),j(Ne,null,pt(s.value,(l,c)=>(x(),de(A(vm),{id:A(r)(l),key:l,isLazy:""},{default:Y(()=>[Q(A(Xc),{id:A(r)(l),label:l},{default:Y(()=>[o.schemas[l]?(x(),de(A(Qc),{key:0},{default:Y(()=>[Q(A(Vo),{level:2},{default:Y(()=>[Q(A(zo),{id:A(r)(l)},{default:Y(()=>[Ie(Be(o.schemas[l].title??l),1)]),_:2},1032,["id"])]),_:2},1024),Q(A(wa),{name:l,noncollapsible:"",value:o.schemas[l]},null,8,["name","value"]),!i.value&&c===s.value.length-1?(x(),de(bM,{key:0,id:A(r)(),class:"something-special"},null,8,["id"])):pe("",!0)]),_:2},1024)):pe("",!0)]),_:2},1032,["id","label"])]),_:2},1032,["id"]))),128))]),_:1})):pe("",!0)}}),D1e=je(O1e,[["__scopeId","data-v-f19478dd"]]),I1e={key:0,class:"properties"},R1e={key:1},P1e=Se({__name:"ModelsAccordion",props:{schemas:{}},setup(e){const t=e,n=ae(()=>t.schemas?Object.entries(t.schemas).map(([i,s])=>({name:i,schema:s})):[]),{getModelId:r}=rr();return(i,s)=>t.schemas?(x(),de(A(cM),{key:0,class:"reference-models"},{title:Y(()=>[Q(A(Vo),{level:2},{default:Y(()=>[Ie("Models")]),_:1})]),default:Y(()=>[(x(!0),j(Ne,null,pt(n.value,({name:o,schema:a})=>(x(),de(A(lM),{id:A(r)(o),key:o,label:o},{title:Y(()=>[Q(A(zo),{id:A(r)(o),class:"reference-models-anchor"},{default:Y(()=>[Q(A(fM),{class:"reference-models-label",name:o,value:a},null,8,["name","value"])]),_:2},1032,["id"])]),default:Y(()=>[a!=null&&a.properties?(x(),j("div",I1e,[(x(!0),j(Ne,null,pt(Object.entries(a.properties),([l,c])=>(x(),de(A(_a),{key:l,name:l,required:a.required&&!!a.required.length&&a.required.includes(l),value:c},null,8,["name","required","value"]))),128))])):(x(),j("div",R1e,[Q(A(_a),{value:a},null,8,["value"])]))]),_:2},1032,["id","label"]))),128))]),_:1})):pe("",!0)}}),L1e=je(P1e,[["__scopeId","data-v-2399f144"]]),M1e=Se({__name:"Webhook",props:{webhook:{}},setup(e){const t=e,{responses:n}=cw(t.webhook);return(r,i)=>{var s;return r.webhook?(x(),j(Ne,{key:0},[Q(mw,{requestBody:(s=r.webhook.information)==null?void 0:s.requestBody},{title:Y(()=>[Ie("Payload")]),_:1},8,["requestBody"]),Q(fi,{parameters:A(n)},{title:Y(()=>[Ie("Responses")]),_:1},8,["parameters"])],64)):pe("",!0)}}}),$1e=Se({__name:"Webhooks",props:{webhooks:{}},setup(e){const t=e,n=ae(()=>Object.keys(t.webhooks??{})),{getWebhookId:r}=rr();return(i,s)=>n.value.length?(x(),de(A(Pf),{key:0},{default:Y(()=>[(x(!0),j(Ne,null,pt(n.value,o=>{var a;return x(),j(Ne,{key:o},[(x(!0),j(Ne,null,pt(Object.keys((a=i.webhooks)==null?void 0:a[o]),l=>(x(),de(A(Xc),{id:A(r)(o,l),key:l,label:o},{default:Y(()=>{var c;return[(c=i.webhooks)!=null&&c[o]?(x(),de(A(Qc),{key:0},{default:Y(()=>{var u,d;return[Q(A(Vo),{level:2},{default:Y(()=>[Q(A(zo),{id:A(r)(o,l)},{default:Y(()=>{var f;return[Ie(Be((f=i.webhooks[o][l])==null?void 0:f.name),1)]}),_:2},1032,["id"])]),_:2},1024),(u=i.webhooks[o][l])!=null&&u.description?(x(),de(A(Fr),{key:0,value:(d=i.webhooks[o][l])==null?void 0:d.description,withImages:""},null,8,["value"])):pe("",!0),Q(M1e,{webhook:i.webhooks[o][l]},null,8,["webhook"])]}),_:2},1024)):pe("",!0)]}),_:2},1032,["id","label"]))),128))],64)}),128))]),_:1})):pe("",!0)}}),F1e=_c('<div class="section-flare" data-v-09a6c646><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div></div>',1),B1e={class:"narrow-references-container"},U1e=Se({__name:"Content",props:{parsedSpec:{},layout:{},baseServerURL:{}},setup(e){const t=e,{getOperationId:n,getTagId:r,hash:i}=rr(),{setServer:s}=vf(),{hideModels:o,collapsedSidebarItems:a}=Ai(),l=h=>{if(h.url.match(/^(?!(https?|file):\/\/|{).+/)){let p=t.baseServerURL??window.location.origin;p=p.replace(/\/$/,"");const m=h.url.startsWith("/")?h.url:`/${h.url}`;h.url=`${p}${m}`.replace(/\/$/,"")}return h};dt(()=>t.parsedSpec,h=>{var p,m;let g=[{url:typeof window<"u"?window.location.origin:"/"}];h.servers&&h.servers.length>0?g=h.servers:t.parsedSpec.host&&(g=[{url:`${((p=t.parsedSpec.schemes)==null?void 0:p[0])??"http"}://${t.parsedSpec.host}${((m=t.parsedSpec)==null?void 0:m.basePath)??""}`}]),(t.baseServerURL||typeof window<"u")&&(g=g.map(l)),s({servers:g})},{deep:!0,immediate:!0});const c=ae(()=>t.layout==="accordion"?x1e:yM),u=ae(()=>t.layout==="accordion"?b1e:gM),d=ae(()=>t.layout==="accordion"?"after":"aside"),f=t.layout!=="accordion"&&!i.value.startsWith("model");return(h,p)=>(x(),j(Ne,null,[F1e,ie("div",B1e,[Ue(h.$slots,"start",{},void 0,!0),Q(A(A1e),{layout:h.layout,parsedSpec:h.parsedSpec},null,8,["layout","parsedSpec"]),h.parsedSpec.info.title||h.parsedSpec.info.description?(x(),de(A(nbe),{key:0,info:h.parsedSpec.info,parsedSpec:h.parsedSpec},{[d.value]:Y(()=>[ie("div",{class:ut(["introduction-card",{"introduction-card-row":h.layout==="accordion"}])},[Q(A(i0e)),Q(A(Ige),{parsedSpec:h.parsedSpec},null,8,["parsedSpec"]),Q(A(E0e))],2)]),_:2},1032,["info","parsedSpec"])):Ue(h.$slots,"empty-state",{key:1},void 0,!0),(x(!0),j(Ne,null,pt(h.parsedSpec.tags,m=>(x(),de(A(vm),{id:A(r)(m),key:A(r)(m),isLazy:A(f)&&!A(a)[A(r)(m)]},{default:Y(()=>[(x(),de(Ei(c.value),{id:A(r)(m),spec:h.parsedSpec,tag:m},{default:Y(()=>[(x(!0),j(Ne,null,pt(m.operations,(g,b)=>(x(),de(A(vm),{id:A(n)(g,m),key:`${g.httpVerb}-${g.operationId}`,isLazy:b>0},{default:Y(()=>[(x(),de(Ei(u.value),{id:A(n)(g,m),operation:g,tag:m},null,8,["id","operation","tag"]))]),_:2},1032,["id","isLazy"]))),128))]),_:2},1032,["id","spec","tag"]))]),_:2},1032,["id","isLazy"]))),128)),h.parsedSpec.webhooks?(x(),de(A($1e),{key:2,webhooks:h.parsedSpec.webhooks},null,8,["webhooks"])):pe("",!0),A(QP)(h.parsedSpec)&&!A(o)?(x(),j(Ne,{key:3},[h.layout==="accordion"?(x(),de(A(L1e),{key:0,schemas:A(Ki)(h.parsedSpec)},null,8,["schemas"])):(x(),de(A(D1e),{key:1,schemas:A(Ki)(h.parsedSpec)},null,8,["schemas"]))],64)):pe("",!0),Ue(h.$slots,"end",{},void 0,!0)])],64))}}),H1e=je(U1e,[["__scopeId","data-v-09a6c646"]]),j1e=e=>(er("data-v-391b4e37"),e=e(),tr(),e),q1e={class:"start custom-scroll"},V1e={class:"start-copy"},z1e=_c('<div class="start-logo" data-v-391b4e37><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-391b4e37></path></svg></div><h1 class="start-h1" data-v-391b4e37>Swagger Editor</h1><p class="start-p" data-v-391b4e37> Welcome to the Scalar API References + Swagger Editor, a Free &amp; Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>',3),K1e={class:"start-cta"},W1e={class:"start-row"},G1e=_c('<div class="start-section start-section-integrations" data-v-391b4e37><div class="start-h2" data-v-391b4e37>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/packages/fastify-api-reference#readme" target="_blank" data-v-391b4e37><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-391b4e37></path></svg><span data-v-391b4e37>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#from-a-cdn" target="_blank" data-v-391b4e37><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g data-v-391b4e37><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path></g></svg><span data-v-391b4e37>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-vuejs" target="_blank" data-v-391b4e37><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="currentColor" fill-rule="nonzero" data-v-391b4e37><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-391b4e37></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-391b4e37></polygon></g></svg><span data-v-391b4e37>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-react" target="_blank" data-v-391b4e37><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="none" fill-rule="evenodd" data-v-391b4e37><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-391b4e37></circle><g stroke="currentColor" data-v-391b4e37><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-391b4e37></ellipse></g></g></svg><span data-v-391b4e37>React</span></a></div>',1),Y1e={class:"start-section start-section-colors"},X1e=j1e(()=>ie("p",{class:"start-h2"},"THEMING",-1)),Q1e=["onClick"],J1e=_c('<p class="start-h1" data-v-391b4e37>Features</p><ul class="start-ul" data-v-391b4e37><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>',2),Z1e=Se({__name:"GettingStarted",props:{theme:{}},emits:["changeTheme","loadSwaggerFile","linkSwaggerFile","updateContent"],setup(e,{emit:t}){const n=t,r=["default","alternate","moon","purple","solarized","bluePlanet","saturn","kepler","mars","deepSpace"];async function i(){const s=await fetch("https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml");n("updateContent",await s.text())}return(s,o)=>(x(),j("div",q1e,[ie("div",V1e,[z1e,ie("div",K1e,[Q(A(N1),{fullWidth:"",onClick:i},{default:Y(()=>[Ie(" Show Example ")]),_:1}),Q(A(N1),{fullWidth:"",variant:"outlined",onClick:o[0]||(o[0]=a=>s.$emit("loadSwaggerFile"))},{default:Y(()=>[Ie(" Upload File ")]),_:1})])]),ie("div",W1e,[G1e,ie("div",Y1e,[X1e,(x(),j(Ne,null,pt(r,a=>ie("div",{key:a,class:ut(["start-item",{"start-item-active":a===s.theme}]),onClick:l=>s.$emit("changeTheme",{id:a,label:A(Ek)[a]})},Be(A(Ek)[a]),11,Q1e)),64))])]),J1e]))}}),eve=je(Z1e,[["__scopeId","data-v-391b4e37"]]),tve={class:"references-header"},nve={key:0,class:"references-navigation t-doc__sidebar"},rve={class:"references-navigation-list"},ive={class:"references-editor"},sve={class:"references-editor-textarea"},ove={class:"references-rendered"},ave={key:0,class:"references-footer"},lve=Se({inheritAttrs:!1,__name:"ApiReferenceLayout",props:{configuration:{},parsedSpec:{},rawSpec:{}},emits:["changeTheme","updateContent","loadSwaggerFile","linkSwaggerFile","toggleDarkMode"],setup(e){const t=e,n=Hm("(min-width: 1150px)"),r=ce("100dvh"),i=ce(null);Q6(i,_=>{r.value=_[0].contentRect.height+"px"});const{breadcrumb:s,collapsedSidebarItems:o,isSidebarOpen:a,setCollapsedSidebarItem:l,hideModels:c,setParsedSpec:u}=Ai(),{getPathRoutingId:d,getSectionId:f,getTagId:h,hash:p,isIntersectionEnabled:m,pathRouting:g,updateHash:b}=rr();g.value=t.configuration.pathRouting,FC(()=>b());const y=async _=>{var S;m.value=!1,b(),_?mm(_):(S=i.value)==null||S.scrollTo(0,0),await Ls(100),m.value=!0};Mt(()=>{G3.on(({specTitle:_})=>{Npe(t.rawSpec,_)}),window.onhashchange=()=>y(decodeURIComponent(window.location.hash.replace(/^#/,""))),window.onpopstate=()=>g.value&&y(d(window.location.pathname))});const v=ae(()=>n.value||!t.configuration.isEditable),w=W6(_=>{if((_.target.scrollTop??0)<50){const S=t.configuration.pathRouting?t.configuration.pathRouting.basePath:window.location.pathname;window.history.replaceState({},"",S+window.location.search),p.value=""}}),T=ae(()=>({breadcrumb:s.value,spec:t.parsedSpec}));return dt(()=>t.parsedSpec,u,{deep:!0}),Uo(()=>{var _,S;const I=vc();if(I&&((_=I.payload).data||(_.data=By()),t.configuration.pathRouting)){const R=d(I.url);p.value=R,I.payload.data.hash=R;for(const O in o)Object.hasOwn(o,O)&&delete o[O];if(R)l(f(R),!0);else{const O=(S=t.parsedSpec.tags)==null?void 0:S[0];O&&l(h(O),!0)}I.payload.data["useSidebarContent-collapsedSidebarItems"]=o}}),I4(()=>{var _;const S=Xa(),I="scalar-instance-id";if(!S)return I;let R=S.uid;return typeof window>"u"?(S.attrs||(S.attrs={}),S.attrs[I]=R):(_=S.vnode.el)!=null&&_.getAttribute&&(R=S.vnode.el.getAttribute(I)),`${I}-${R}`}),Zn(ow,()=>t.parsedSpec.security),Zn(W3,()=>t.configuration.hideDownloadButton),c.value=t.configuration.hideModels??!1,Fme(t.configuration),(_,S)=>{var I,R;return x(),j(Ne,null,[Q(A(yI),{id:(I=_.configuration)==null?void 0:I.theme,withDefaultFonts:(R=_.configuration)==null?void 0:R.withDefaultFonts},null,8,["id","withDefaultFonts"]),Q(A(EI),null,{default:Y(({styles:O})=>[Q(A(MJ),null,{default:Y(({styles:K})=>{var B,ge;return[ie("div",{ref_key:"documentEl",ref:i,class:ut(["scalar-api-reference references-layout",[{"references-editable":_.configuration.isEditable,"references-sidebar":_.configuration.showSidebar,"references-sidebar-mobile-open":A(a),"references-classic":_.configuration.layout==="classic"},O,K,_.$attrs.class]]),style:xr({"--full-height":r.value}),onScrollPassive:S[4]||(S[4]=(...le)=>A(w)&&A(w)(...le))},[ie("div",tve,[Ue(_.$slots,"header",ai(qr(T.value)),void 0,!0)]),_.configuration.showSidebar?(x(),j("aside",nve,[ie("div",rve,[Q(A(rM),{parsedSpec:_.parsedSpec},{"sidebar-start":Y(()=>[Ue(_.$slots,"sidebar-start",ai(qr(T.value)),void 0,!0)]),"sidebar-end":Y(()=>[Ue(_.$slots,"sidebar-end",ai(qr(T.value)),void 0,!0)]),_:3},8,["parsedSpec"])])])):pe("",!0),Ya(ie("div",ive,[ie("div",sve,[Ue(_.$slots,"editor",ai(qr(T.value)),void 0,!0)])],512),[[wc,_.configuration.isEditable]]),v.value?(x(),j(Ne,{key:1},[ie("div",ove,[Q(A(H1e),{baseServerURL:_.configuration.baseServerURL,layout:_.configuration.layout==="classic"?"accordion":"default",parsedSpec:_.parsedSpec},Xd({start:Y(()=>[Ue(_.$slots,"content-start",ai(qr(T.value)),void 0,!0)]),end:Y(()=>[Ue(_.$slots,"content-end",ai(qr(T.value)),void 0,!0)]),_:2},[(B=_.configuration)!=null&&B.isEditable?{name:"empty-state",fn:Y(()=>{var le;return[Q(eve,{theme:((le=_.configuration)==null?void 0:le.theme)||"default",onChangeTheme:S[0]||(S[0]=ye=>_.$emit("changeTheme",ye)),onLinkSwaggerFile:S[1]||(S[1]=ye=>_.$emit("linkSwaggerFile")),onLoadSwaggerFile:S[2]||(S[2]=ye=>_.$emit("loadSwaggerFile")),onUpdateContent:S[3]||(S[3]=ye=>_.$emit("updateContent",ye))},null,8,["theme"])]}),key:"0"}:void 0]),1032,["baseServerURL","layout","parsedSpec"])]),_.$slots.footer?(x(),j("div",ave,[Ue(_.$slots,"footer",ai(qr(T.value)),void 0,!0)])):pe("",!0)],64)):pe("",!0),Q(wge,{parsedSpec:_.parsedSpec,proxyUrl:(ge=_.configuration)==null?void 0:ge.proxy},{"sidebar-start":Y(()=>[Ue(_.$slots,"sidebar-start",ai(qr(T.value)),void 0,!0)]),"sidebar-end":Y(()=>[Ue(_.$slots,"sidebar-end",ai(qr(T.value)),void 0,!0)]),_:3},8,["parsedSpec","proxyUrl"])],38)]}),_:2},1024)]),_:3}),Q(A(Lme))],64)}}}),vM=je(lve,[["__scopeId","data-v-e661a778"]]),cve={},uve={class:"references-classic-header-container"},dve={class:"references-classic-header"};function fve(e,t){return x(),j("div",uve,[ie("div",dve,[Ue(e.$slots,"default",{},void 0,!0),Ue(e.$slots,"dark-mode-toggle",{},void 0,!0)])])}const hve=je(cve,[["render",fve],["__scopeId","data-v-a860f78f"]]),pve=e=>(er("data-v-559a0a79"),e=e(),tr(),e),mve={class:"darklight-reference"},gve={key:0},bve={key:1},yve=pve(()=>ie("a",{class:"darklight-reference-promo",href:"https://www.scalar.com",target:"_blank"}," Powered by scalar.com ",-1)),vve=Se({__name:"DarkModeToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(e){return(t,n)=>(x(),j("div",mve,[ie("button",{class:"darklight",type:"button",onClick:n[0]||(n[0]=r=>t.$emit("toggleDarkMode"))},[Q(A(on),{icon:"LightDarkModeToggle"}),t.isDarkMode?(x(),j("span",gve,"Light Mode")):(x(),j("span",bve,"Dark Mode"))]),yve]))}}),Eve=je(vve,[["__scopeId","data-v-559a0a79"]]),_ve=Se({__name:"DarkModeIconToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(e){return(t,n)=>(x(),j("button",{class:"darklight",type:"button",onClick:n[0]||(n[0]=r=>t.$emit("toggleDarkMode"))},[Q(A(on),{icon:t.isDarkMode?"DarkMode":"LightMode"},null,8,["icon"]),Q(dM,null,{default:Y(()=>[Ie(" Switch to "+Be(t.isDarkMode?"Light":"Dark")+" Mode ",1)]),_:1})]))}}),wve=je(_ve,[["__scopeId","data-v-8f61ca56"]]);function Tve(e,t){let n=e;const r=t.required&&t.required.includes(e);return n+=r?" REQUIRED ":" optional ",t.properties[e]&&(n+=t.properties[e].type,t.properties[e].description&&(n+=" "+t.properties[e].description)),n}function Sve(e){var t;const n=["Body"],r=(t=e==null?void 0:e.schema)==null?void 0:t.properties;return r&&Object.keys(r).forEach(i=>{if(!e.schema)return;n.push(Tve(i,e.schema));const s=r[i];s.type==="object"&&s.properties&&s.properties&&Object.keys(s.properties).forEach(o=>{var a,l;n.push(`${o} ${(l=(a=s.properties)==null?void 0:a[o])==null?void 0:l.type}`)})}),n}function kve(e){var t,n,r;try{const i=(r=(n=(t=e==null?void 0:e.information)==null?void 0:t.requestBody)==null?void 0:n.content)==null?void 0:r["application/json"];if(!i)throw new Error("Body not found");return Sve(i)}catch{return!1}}const xve=e=>(er("data-v-3445e6c6"),e=e(),tr(),e),Ave=xve(()=>ie("div",{class:"ref-search-meta"},[ie("span",null,"↑↓ Navigate"),ie("span",null,"⏎ Select")],-1)),Cve=Se({__name:"SearchModal",props:{parsedSpec:{},modalState:{}},setup(e){const t=e,n=kp(t,"parsedSpec"),r={heading:"DocsPage",model:"JsonObject",req:"Terminal",tag:"CodeFolder",webhook:"Terminal"},i=$v(),s=ce([]),o=ce([]),a=ce(0),l=ce(""),c=ce(null),u=new Oc(s.value,{keys:["title","description","body"]}),d=()=>{a.value=0,o.value=u.search(l.value)},f=ae(()=>w.value[a.value]),{getHeadingId:h,getWebhookId:p,getModelId:m,getOperationId:g,getTagId:b}=rr();dt(()=>t.modalState.open,I=>{I&&(l.value="",a.value=0,o.value=[])});const{setCollapsedSidebarItem:y,hideModels:v}=Ai();dt(n.value,async()=>{var I,R,O,K,B;if(s.value=[],!((R=(I=t.parsedSpec)==null?void 0:I.tags)!=null&&R.length)&&!((O=t.parsedSpec)!=null&&O.webhooks)){u.setCollection([]);return}const ge=[],le=await sm(((K=t.parsedSpec.info)==null?void 0:K.description)??"");le.length&&(le.forEach(he=>{ge.push({type:"heading",title:`Info > ${he.value}`,description:"",href:`#${h(he)}`,tag:he.slug,body:""})}),s.value=s.value.concat(ge)),(B=t.parsedSpec.tags)==null||B.forEach(he=>{const C={title:he["x-displayName"]??he.name,href:`#${b(he)}`,description:he.description,type:"tag",tag:he.name,body:""};s.value.push(C),he.operations&&he.operations.forEach(F=>{const{parameterMap:X}=lw({operation:F}),k=kve(F)||X.value;let D=null;typeof k!="boolean"&&(D=k);const U={type:"req",title:F.name??F.path,href:`#${g(F,he)}`,operationId:F.operationId,description:F.description??"",httpVerb:F.httpVerb,path:F.path,tag:he.name,operation:F};D&&(U.body=D),s.value.push(U)})});const ye=t.parsedSpec.webhooks,Fe=[];ye&&Object.keys(ye).forEach(he=>{Object.keys(ye[he]).forEach(C=>{var F;Fe.push({type:"webhook",title:`Webhook: ${(F=ye[he][C])==null?void 0:F.name}`,href:`#${p(he,C)}`,description:he,httpVerb:C,tag:he,body:""})}),s.value=s.value.concat(Fe)});const J=v.value?{}:Ki(t.parsedSpec),ee=[];J&&(Object.keys(J).forEach(he=>{ee.push({type:"model",title:"Model",href:`#${m(he)}`,description:J[he].title??he,tag:he,body:""})}),s.value=s.value.concat(ee)),u.setCollection(s.value)},{immediate:!0}),Wu(i.enter,()=>{t.modalState.open&&window&&(_(f.value),window.location.hash=f.value.item.href,t.modalState.hide())}),Wu(i.ArrowDown,()=>{var I;t.modalState.open&&window&&(a.value<w.value.length-1?a.value++:a.value=0,(I=document.getElementById(f.value.item.href))==null||I.scrollIntoView({behavior:"smooth",block:"center"}))}),Wu(i.ArrowUp,()=>{var I;t.modalState.open&&window&&(a.value>0?a.value--:a.value=w.value.length-1,(I=document.getElementById(f.value.item.href))==null||I.scrollIntoView({behavior:"smooth",block:"center"}))});const w=ae(()=>l.value.length===0?s.value.map(I=>({item:I})):o.value),T=/#(tag\/[^/]*)/,_=I=>{let R="models";const O=I.item.href.match(T);O!=null&&O.length&&O.length>1&&(R=O[1]),y(R,!0),t.modalState.hide()};function S(I){const R=new URL(window.location.href);return R.hash=I,R.toString()}return(I,R)=>(x(),de(A(_P),{state:I.modalState,variant:"search"},{default:Y(()=>[ie("div",{ref_key:"searchModalRef",ref:c,class:"ref-search-container"},[Q(A(Aie),{modelValue:l.value,"onUpdate:modelValue":R[0]||(R[0]=O=>l.value=O),onInput:d},null,8,["modelValue"])],512),Q(A(Nie),{class:"ref-search-results custom-scroll",noResults:!w.value.length},{query:Y(()=>[Ie(Be(l.value),1)]),default:Y(()=>[(x(!0),j(Ne,null,pt(w.value,(O,K)=>(x(),de(A($ie),{id:O.item.href,key:O.refIndex,active:a.value===K,href:S(O.item.href),icon:r[O.item.type],onClick:B=>_(O),onFocus:B=>a.value=K},Xd({default:Y(()=>[Ie(Be(O.item.title)+" ",1)]),_:2},[(O.item.httpVerb||O.item.path)&&O.item.path!==O.item.title?{name:"description",fn:Y(()=>[Ie(Be(O.item.path),1)]),key:"0"}:O.item.description?{name:"description",fn:Y(()=>[Ie(Be(O.item.description),1)]),key:"1"}:void 0,O.item.type==="req"?{name:"addon",fn:Y(()=>[Q(nM,{method:O.item.httpVerb??"get"},null,8,["method"])]),key:"2"}:void 0]),1032,["id","active","href","icon","onClick","onFocus"]))),128))]),_:1},8,["noResults"]),Ave]),_:1},8,["state"]))}}),Nve=je(Cve,[["__scopeId","data-v-3445e6c6"]]),Ove=e=>(er("data-v-edb0a931"),e=e(),tr(),e),Dve={class:"sidebar-search-input"},Ive=Ove(()=>ie("span",{class:"sidebar-search-placeholder"},"Search",-1)),Rve={class:"sidebar-search-shortcut"},Pve={class:"sidebar-search-key"},Lve=Se({__name:"SearchButton",props:{spec:{},searchHotKey:{default:"k"}},setup(e){const t=e,n=wP(),r=$v({passive:!1,onEventFired(i){!fp()&&i.ctrlKey&&i.key===t.searchHotKey&&(i.preventDefault(),i.stopPropagation())}});return Wu(r[`${fp()?"meta":"control"}_${t.searchHotKey}`],()=>n.open?n.hide():n.show()),(i,s)=>(x(),j(Ne,null,[ie("button",{class:ut(["sidebar-search",i.$attrs.class]),type:"button",onClick:s[0]||(s[0]=(...o)=>A(n).show&&A(n).show(...o))},[Q(A(on),{class:"search-icon",icon:"Search",size:"sm"}),ie("div",Dve,[Ive,ie("span",Rve,[ie("span",Pve,Be(A(fp)()?"⌘":"⌃")+Be(i.searchHotKey),1)])])],2),Q(Nve,{modalState:A(n),parsedSpec:i.spec},null,8,["modalState","parsedSpec"])],64))}}),EM=je(Lve,[["__scopeId","data-v-edb0a931"]]),Mve=Se({__name:"ClassicLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(e){const t=e,n=ae(()=>({...t.configuration,showSidebar:!1}));return(r,i)=>(x(),de(vM,{configuration:n.value,parsedSpec:r.parsedSpec,rawSpec:r.rawSpec},{"content-start":Y(({spec:s})=>[Q(hve,null,{"dark-mode-toggle":Y(()=>[Q(A(wve),{isDarkMode:r.isDark,onToggleDarkMode:i[0]||(i[0]=o=>r.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),default:Y(()=>[Q(EM,{class:"t-doc__sidebar",searchHotKey:n.value.searchHotKey,spec:s},null,8,["searchHotKey","spec"])]),_:2},1024)]),"content-end":Y(()=>[Ue(r.$slots,"footer")]),_:3},8,["configuration","parsedSpec","rawSpec"]))}}),$ve={class:"references-mobile-header t-doc__header"},Fve={class:"references-mobile-breadcrumbs"},Bve={class:"references-mobile-header-actions"},Uve=Se({__name:"MobileHeader",props:{open:{type:Boolean}},emits:["update:open"],setup(e){const{breadcrumb:t}=Ai();return(n,r)=>(x(),j("div",$ve,[Q(A(yf),{icon:n.open?"Close":"Menu",label:n.open?"Close Menu":"Open Menu",size:"md",onClick:r[0]||(r[0]=i=>n.$emit("update:open",!n.open))},null,8,["icon","label"]),ie("span",Fve,Be(A(t)),1),ie("div",Bve,[Ue(n.$slots,"actions",{},void 0,!0)])]))}}),Hve=je(Uve,[["__scopeId","data-v-0242e3de"]]),jve={class:"scalar-api-references-standalone-search"},qve=Se({__name:"ModernLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(e){const t=e,n=Hm("(max-width: 1000px)"),{isSidebarOpen:r}=Ai();dt(n,(s,o)=>{s&&!o&&(r.value=!1)});const{hash:i}=rr();return dt(i,(s,o)=>{s&&s!==o&&(r.value=!1)}),(s,o)=>(x(),de(vM,{class:ut({"scalar-api-references-standalone-mobile":s.configuration.showSidebar}),configuration:s.configuration,parsedSpec:s.parsedSpec,rawSpec:s.rawSpec},{header:Y(()=>[t.configuration.showSidebar?(x(),de(Hve,{key:0,open:A(r),"onUpdate:open":o[0]||(o[0]=a=>gn(r)?r.value=a:null)},null,8,["open"])):pe("",!0)]),"sidebar-start":Y(({spec:a})=>{var l;return[ie("div",jve,[Q(EM,{searchHotKey:(l=t.configuration)==null?void 0:l.searchHotKey,spec:a},null,8,["searchHotKey","spec"])])]}),"sidebar-end":Y(()=>[Q(A(Eve),{isDarkMode:s.isDark,onToggleDarkMode:o[1]||(o[1]=a=>s.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),"content-end":Y(()=>[Ue(s.$slots,"footer",{},void 0,!0)]),_:3},8,["class","configuration","parsedSpec","rawSpec"]))}}),Vve=je(qve,[["__scopeId","data-v-333fecad"]]),zve={modern:Vve,classic:Mve},Kve=Se({__name:"ApiReference",props:{configuration:{}},emits:["updateContent"],setup(e){var t,n;const r=e,{toggleDarkMode:i,isDark:s}=Mme((t=r.configuration)==null?void 0:t.darkMode);dt(()=>{var h;return(h=r.configuration)==null?void 0:h.darkMode},h=>{h!==s.value&&i()});const o=ae(()=>{var h,p;if((h=r.configuration)!=null&&h.customCss)return FJ((p=r.configuration)==null?void 0:p.customCss)});dt(o,()=>console.log(o.value));const a=ae(()=>{var h;return{spec:{content:void 0,url:void 0,...(h=r.configuration)==null?void 0:h.spec},proxy:void 0,theme:"default",showSidebar:!0,isEditable:!1,...r.configuration,customCss:o.value}});(n=a.value)!=null&&n.metaData&&Bj(a.value.metaData);function l(h,p){dt(()=>{var m;return(m=a.value)==null?void 0:m[h]},m=>{typeof m<"u"&&p(m)},{immediate:!0})}const{setAuthentication:c}=Ic();l("authentication",c);const{setExcludedClients:u}=Rf();l("hiddenClients",u);const{parsedSpec:d,rawSpec:f}=Xme({proxy:kp(()=>{var h;return((h=r.configuration)==null?void 0:h.proxy)||""}),specConfig:kp(()=>{var h;return((h=r.configuration)==null?void 0:h.spec)||{}})});return(h,p)=>{var m,g;return x(),j(Ne,null,[(m=a.value)!=null&&m.customCss?(x(),de(Ei("style"),{key:0},{default:Y(()=>[Ie(Be(a.value.customCss),1)]),_:1})):pe("",!0),(x(),de(Ei(A(zve)[((g=a.value)==null?void 0:g.layout)||"modern"]),{configuration:a.value,isDark:A(s),parsedSpec:A(d),rawSpec:A(f),onToggleDarkMode:p[0]||(p[0]=()=>A(i)()),onUpdateContent:p[1]||(p[1]=b=>h.$emit("updateContent",b))},{footer:Y(()=>[Ue(h.$slots,"footer")]),_:3},40,["configuration","isDark","parsedSpec","rawSpec"]))],64)}}});function Wve(e,t,n=!0){const r=qn(t),i=S4(Kve,{configuration:r});function s(o=e){if(!o){console.warn("Invalid HTML element provided. Cannot mount Scalar References");return}i.mount(o)}return n&&s(),{updateConfig(o,a=!0){a?Object.assign(r,o):JP(r,o)},updateSpec(o){r.spec=o},mount:s,unmount:()=>i.unmount()}}globalThis.__VUE_OPTIONS_API__=!0;globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!0;globalThis.__VUE_PROD_DEVTOOLS__=!1;const Gve=e=>{const t=Tl.useRef(null),[n,r]=Tl.useState(null);return Tl.useEffect(()=>{if(!t.current)return n==null?void 0:n.unmount;const i=Wve(t.current,e.configuration??{});return r(i),i.unmount},[t]),Tl.useEffect(()=>{n==null||n.updateConfig(e.configuration??{},!1)},[e.configuration]),TM.jsx("div",{ref:t})};exports.$6=bne;exports.$t=Hn;exports.A6=Bne;exports.A_=tP;exports.Ae=kt;exports.ApiReferenceReact=Gve;exports.Ax=SP;exports.C6=Pne;exports.Cs=fs;exports.Cx=wP;exports.E6=Lne;exports.Ex=TP;exports.Fragment=Ne;exports.G=Oe;exports.Hh=ug;exports.Ie=U6;exports.Is=vs;exports.J$=KR;exports.Je=ln;exports.Jp=Hy;exports.K_=oP;exports.Kh=fg;exports.Le=Ut;exports.N=Mm;exports.OS=TI;exports.Oi=ql;exports.Oo=rl;exports.Pb=VE;exports.Ph=lg;exports.Q=$m;exports.Q0=kE;exports.QS=PI;exports.RS=kI;exports.Re=Bt;exports.S6=gne;exports.Sb=HE;exports.Tb=qE;exports.Te=Nt;exports.To=il;exports.Tu=fp;exports.Tx=kP;exports.U_=aP;exports.V=Fm;exports.VS=NI;exports.V_=rP;exports.Vd=Zp;exports.Vk=yI;exports.XE=GP;exports.XS=RI;exports.X_=uP;exports.Y0=TE;exports.YS=II;exports.Y_=cP;exports.Z_=fP;exports.Ze=on;exports._6=Ene;exports.ax=gP;exports.b6=dne;exports.c6=fZ;exports.ca=Ic;exports.computed=ae;exports.createBaseVNode=ie;exports.createBlock=de;exports.createCommentVNode=pe;exports.createElementBlock=j;exports.createStaticVNode=_c;exports.createTextVNode=Ie;exports.createVNode=Q;exports.d6=hte;exports.de=Je;exports.defineComponent=Se;exports.f6=Ote;exports.gx=EP;exports.h6=Tte;exports.jS=AI;exports.jt=mr;exports.k6=mne;exports.k_=QR;exports.m6=Bte;exports.me=MN;exports.nd=Vp;exports.normalizeClass=ut;exports.normalizeStyle=xr;exports.oe=je;exports.onBeforeUnmount=BC;exports.openBlock=x;exports.p6=$te;exports.p_=YR;exports.pb=$E;exports.pe=$N;exports.pe$1=it;exports.po=Ua;exports.popScopeId=tr;exports.pt=xn;exports.pushScopeId=er;exports.qS=OI;exports.ref=ce;exports.renderList=pt;exports.renderSlot=Ue;exports.toDisplayString=Be;exports.toRaw=tt;exports.toRef=kp;exports.toValue=$b;exports.ua=Rc;exports.unref=A;exports.useMagicKeys=$v;exports.useMediaQuery=Hm;exports.ut=En;exports.v6=fne;exports.vModelCheckbox=uN;exports.vModelText=g4;exports.vShow=wc;exports.w6=hne;exports.watch=dt;exports.whenever=Wu;exports.withCtx=Y;exports.withDirectives=Ya;exports.withKeys=_4;exports.wn=Po;exports.wr=Zr;exports.x6=Ane;exports.xe=FN;exports.xg=N1;exports.xx=_P;exports.y6=nne;exports.ye=H6;exports.ys=l2;exports.yy=NE;exports.zE=WP;exports.zs=Us;