openpond 0.0.38 → 0.0.39

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 (212) hide show
  1. package/README.md +3 -4
  2. package/dist/api/core.d.ts +6 -0
  3. package/dist/api/vercel-protection.d.ts +1 -0
  4. package/dist/chunks/{app-layer-DPUJRNO2.js → app-layer-LTBWNA2F.js} +32 -10
  5. package/dist/chunks/app-server-runtime-VYYJ2AWX.js +18 -0
  6. package/dist/chunks/{apps-AKBI6AS7.js → apps-CZAJBGE3.js} +6 -4
  7. package/dist/chunks/{chunk-LZZM3IHS.js → chunk-2SF6HLT7.js} +5899 -5939
  8. package/dist/chunks/{chunk-XCATKTK3.js → chunk-3CDPPVLE.js} +108 -66
  9. package/dist/chunks/{chunk-JWF37O5E.js → chunk-3HW6OSHP.js} +1 -3
  10. package/dist/chunks/{chunk-43YI36NA.js → chunk-3KLQ52B2.js} +228 -5
  11. package/dist/chunks/chunk-4HIWFIMN.js +37172 -0
  12. package/dist/chunks/{chunk-AHPQTEIJ.js → chunk-4N6E3OVF.js} +4 -4
  13. package/dist/chunks/{chunk-YTJL6XPU.js → chunk-6V7MJVRO.js} +56 -11
  14. package/dist/chunks/{chunk-QRM7XMAO.js → chunk-BQQZNGI6.js} +152 -161
  15. package/dist/chunks/chunk-DBHSOTYZ.js +1552 -0
  16. package/dist/chunks/{chunk-275WCETC.js → chunk-FCVVOMIP.js} +145 -5
  17. package/dist/chunks/{chunk-GB6VUZUA.js → chunk-JIEUB6OS.js} +1 -1
  18. package/dist/chunks/{chunk-HS2AGRDV.js → chunk-JJPAMKXZ.js} +1 -1
  19. package/dist/chunks/{chunk-GDZYDLEL.js → chunk-JRROTGQT.js} +1 -110
  20. package/dist/chunks/chunk-KHNHUA2H.js +1737 -0
  21. package/dist/chunks/{chunk-AHNFNWUN.js → chunk-L6XH4ZGZ.js} +1 -1
  22. package/dist/chunks/chunk-M2NXTLH2.js +4054 -0
  23. package/dist/chunks/{chunk-SLMP353Q.js → chunk-MIZHCABO.js} +2 -195
  24. package/dist/chunks/chunk-SMNFI2FU.js +113 -0
  25. package/dist/chunks/chunk-VCVQLECH.js +675 -0
  26. package/dist/chunks/{chunk-V35STJF4.js → chunk-ZJBJQCQZ.js} +179 -52
  27. package/dist/chunks/{cli-7BKDWFNU.js → cli-JS76LCW2.js} +9 -5
  28. package/dist/chunks/{core-commands-YN4RMWA3.js → core-commands-4MRJQZJV.js} +7 -5
  29. package/dist/chunks/{harness-BHQRMXJR.js → desktop-test-RNMWLOVU.js} +15 -14
  30. package/dist/chunks/{chunk-XERQHYBO.js → extension-GDRW22N3.js} +5868 -3580
  31. package/dist/chunks/{help-VREQNA4I.js → help-LWNREJ7U.js} +1 -1
  32. package/dist/chunks/{opchat-D63YTNSX.js → opchat-2K2JIGK3.js} +9 -10
  33. package/dist/chunks/{organizations-I46KG7TC.js → organizations-Z5HVD2E7.js} +11 -9
  34. package/dist/chunks/{profile-WKZJHEPG.js → profile-QNECVVGN.js} +12 -38
  35. package/dist/chunks/{project-agent-ZUC3YMCT.js → project-agent-W3V75WBR.js} +9 -411
  36. package/dist/chunks/{sandbox-command-AAOPFTI5.js → sandbox-command-X3FO74NX.js} +7 -5
  37. package/dist/chunks/{sandbox-template-GKNVR4C5.js → sandbox-template-5B4T4BGU.js} +8 -6
  38. package/dist/chunks/{src-RPW5TOPI.js → src-ESAILPUH.js} +32 -30
  39. package/dist/chunks/src-IC5RX4L6.js +63517 -0
  40. package/dist/chunks/{teams-bot-PSL3ZO6Z.js → teams-bot-NTQ6VFFL.js} +6 -4
  41. package/dist/chunks/training-BR5A7SPU.js +320 -0
  42. package/dist/chunks/{workspaces-BPXC2DHT.js → workspaces-XC3QBD2Y.js} +2 -2
  43. package/dist/cli.js +24 -12
  44. package/dist/config.d.ts +9 -3
  45. package/dist/index.js +1300 -1045
  46. package/dist/profile/local-profile-types.d.ts +16 -0
  47. package/dist/profile/local-profile.d.ts +50 -4
  48. package/dist/sandbox/client-handles.d.ts +33 -46
  49. package/dist/sandbox/client.d.ts +4 -26
  50. package/dist/sandbox/sandbox-instance-client.d.ts +5 -5
  51. package/dist/sandbox/types/client.d.ts +1 -2
  52. package/dist/sandbox/types/core.d.ts +0 -1
  53. package/dist/sandbox/types/org-project-agent.d.ts +3 -89
  54. package/dist/sandbox/types/record.d.ts +1 -2
  55. package/dist/sandbox/types/runtime-profiles.d.ts +2 -2
  56. package/dist/sandbox-template/manifest.d.ts +1 -1
  57. package/dist/skills/openpond-agent-authoring/SKILL.md +40 -0
  58. package/dist/skills/openpond-agent-authoring/references/action-and-chat-design.md +13 -0
  59. package/dist/skills/openpond-agent-authoring/references/integrations-and-setup.md +13 -0
  60. package/dist/skills/openpond-agent-authoring/references/profile-layout.md +29 -0
  61. package/dist/skills/openpond-agent-authoring/references/validation-and-repair.md +14 -0
  62. package/dist/skills/openpond-desktop-harness/SKILL.md +1 -1
  63. package/dist/skills/openpond-skill-authoring/SKILL.md +44 -0
  64. package/dist/skills/openpond-skill-authoring/references/copying-and-adaptation.md +16 -0
  65. package/dist/skills/openpond-skill-authoring/references/skill-package-layout.md +38 -0
  66. package/dist/skills/openpond-skill-authoring/references/validation-and-repair.md +24 -0
  67. package/dist/skills/openpond-skill-authoring/scripts/validate-skill.mjs +102 -0
  68. package/dist/skills/openpond-taskset-authoring/SKILL.md +64 -22
  69. package/dist/skills/openpond-taskset-authoring/artifact.json +39 -0
  70. package/dist/skills/openpond-taskset-authoring/references/graders-and-rewards.md +3 -0
  71. package/dist/skills/openpond-taskset-authoring/references/method-selection.md +1 -1
  72. package/dist/skills/openpond-taskset-authoring/references/privacy-and-provenance.md +2 -0
  73. package/dist/skills/openpond-taskset-authoring/references/task-design.md +32 -0
  74. package/dist/web/assets/{AppDialog-DrwJb_wG.js → AppDialog-Bua3f-6v.js} +1 -1
  75. package/dist/web/assets/{AppsView-DPagLMsc.js → AppsView-DrJkHeSO.js} +1 -1
  76. package/dist/web/assets/BrowserSidebar-Bf-4Vozm.js +1 -0
  77. package/dist/web/assets/CommandMenu-DDZlGQiB.js +1 -0
  78. package/dist/web/assets/CommunityView-BtcCrba7.js +1 -0
  79. package/dist/web/assets/ComposerCreateImproveStrip-DOe5Otg6.js +1 -0
  80. package/dist/web/assets/GetStartedView-CG4z0Dtw.js +1 -0
  81. package/dist/web/assets/GetStartedView-yVmnGZPw.css +1 -0
  82. package/dist/web/assets/LabModelVersionDetailPage-BEkmSKuv.js +1 -0
  83. package/dist/web/assets/LabSkillSidebar-BIotN_RB.js +1 -0
  84. package/dist/web/assets/LabsRoute-CfOe0Zt5.js +3 -0
  85. package/dist/web/assets/LabsRoute-CoSPO4HR.css +1 -0
  86. package/dist/web/assets/MainChatThread-C0-l1mHt.js +2 -0
  87. package/dist/web/assets/MainPane-Bky_Rqcx.css +1 -0
  88. package/dist/web/assets/MainPane-aOVlVyRK.js +6 -0
  89. package/dist/web/assets/MarkdownText-D7DT1k1k.js +9 -0
  90. package/dist/web/assets/Messages-CBIXruA9.js +9 -0
  91. package/dist/web/assets/NativeSkillSidebar-C4t69Y7B.js +1 -0
  92. package/dist/web/assets/NewProjectDialog-Bat65tYD.js +1 -0
  93. package/dist/web/assets/OutputsPage-C58n39Db.js +1 -0
  94. package/dist/web/assets/RightChatPanelStack-Bp7nZxQ0.js +1 -0
  95. package/dist/web/assets/ScheduledWorkPage-BXP0j_c_.js +1 -0
  96. package/dist/web/assets/SettingsView-CtWK_aQ0.css +1 -0
  97. package/dist/web/assets/SettingsView-DOOfhO9a.js +6 -0
  98. package/dist/web/assets/TeamChatView-Cgxm-pKA.css +1 -0
  99. package/dist/web/assets/TeamChatView-De2wdqyY.js +3 -0
  100. package/dist/web/assets/{TerminalOverlay-BKl0p8pa.js → TerminalOverlay-BsuCH3NX.js} +1 -1
  101. package/dist/web/assets/TrainingCreationPanel-D2OFWyQ-.js +1 -0
  102. package/dist/web/assets/TrainingDraftPanel-DBpulXTz.js +1 -0
  103. package/dist/web/assets/{UsageSettingsSection-zDAwzTGl.js → UsageSettingsSection-DzMLUXAO.js} +37 -37
  104. package/dist/web/assets/WorkspaceDiffPanel-B7yIhjNF.js +14 -0
  105. package/dist/web/assets/WorkspaceEnvironmentMenu-B6jXM9xG.js +32 -0
  106. package/dist/web/assets/WorkspaceGitDialogs-CQ0fl9Qk.js +1 -0
  107. package/dist/web/assets/{WorkspaceMonacoEditor-DPGcG8fy.js → WorkspaceMonacoEditor-C2ctzITz.js} +3 -3
  108. package/dist/web/assets/arrow-up-right-ecwcx3xt.js +1 -0
  109. package/dist/web/assets/chevron-up-DP8PPfWd.js +1 -0
  110. package/dist/web/assets/circle-alert-envg1D6O.js +1 -0
  111. package/dist/web/assets/cloud-upload-5MGPLnaA.js +1 -0
  112. package/dist/web/assets/{cssMode-CKN9CcfG.js → cssMode-CFifcEfw.js} +1 -1
  113. package/dist/web/assets/folder-open-Dq3ZjeEP.js +1 -0
  114. package/dist/web/assets/folder-plus-EiZ5wbv_.js +1 -0
  115. package/dist/web/assets/git-branch-w29jmQ-X.js +1 -0
  116. package/dist/web/assets/{git-commit-horizontal-Bxi8YPep.js → git-commit-horizontal-CGZM0PZo.js} +1 -1
  117. package/dist/web/assets/{htmlMode-CeUcNhBZ.js → htmlMode-Ct1P-_lf.js} +1 -1
  118. package/dist/web/assets/index-ByIQyiUl.js +178 -0
  119. package/dist/web/assets/index-D4uCeiep.js +1 -0
  120. package/dist/web/assets/index-D9jTe16Q.css +1 -0
  121. package/dist/web/assets/info-Cd2HkIeb.js +1 -0
  122. package/dist/web/assets/{jsonMode-97z0Yz9u.js → jsonMode-BAUNCNAX.js} +1 -1
  123. package/dist/web/assets/{lspLanguageFeatures-D4Tp-JmI.js → lspLanguageFeatures-fucFYI1A.js} +1 -1
  124. package/dist/web/assets/monaco.contribution-Ce4v5kei.js +2 -0
  125. package/dist/web/assets/monaco.contribution-DLLMi4cB.js +2 -0
  126. package/dist/web/assets/monaco.contribution-g9QiIm1d.js +2 -0
  127. package/dist/web/assets/monaco.contribution-nG-5Cyjz.js +2 -0
  128. package/dist/web/assets/monitor-DgHCnCKl.js +1 -0
  129. package/dist/web/assets/{play-C-37dnR1.js → play-Be0XDHBu.js} +1 -1
  130. package/dist/web/assets/{python-CGpDXY7_.js → python-CEhEiPo7.js} +1 -1
  131. package/dist/web/assets/{refresh-cw-BAaaPCXl.js → refresh-cw-DH0KLbdD.js} +1 -1
  132. package/dist/web/assets/reply-D1TK2yV8.js +1 -0
  133. package/dist/web/assets/{save-Cvxs3XyC.js → save-C1MSeBnQ.js} +1 -1
  134. package/dist/web/assets/square-CemI-0g5.js +1 -0
  135. package/dist/web/assets/square-pen-CqfsvR_n.js +1 -0
  136. package/dist/web/assets/{toggleHighContrast-CD42jH4g.js → toggleHighContrast-DrdQN3Rl.js} +1 -1
  137. package/dist/web/assets/training-BQVNUTZA.css +1 -0
  138. package/dist/web/assets/training-model-data-B7-1Bxil.js +1 -0
  139. package/dist/web/assets/{tsMode-ZROIxEjv.js → tsMode-CKB5oOUU.js} +1 -1
  140. package/dist/web/assets/{upload-DvCSGERK.js → upload-t751LLqP.js} +1 -1
  141. package/dist/web/assets/useLocalAgentSchedules-CzC3wfIP.js +1 -0
  142. package/dist/web/assets/{wifi-off-BIb94PkS.js → wifi-off-CxTHH3JU.js} +1 -1
  143. package/dist/web/assets/{workers-oYqbrVYG.js → workers-CqYddzCd.js} +1 -1
  144. package/dist/web/assets/{yaml-WqBjNgOO.js → yaml-e5wBkc-C.js} +1 -1
  145. package/dist/web/index.html +2 -2
  146. package/docs/command-reference.md +75 -40
  147. package/package.json +3 -1
  148. package/dist/chunks/chunk-FWLOFUPU.js +0 -864
  149. package/dist/chunks/chunk-HLCTINEP.js +0 -224
  150. package/dist/chunks/chunk-MPGSHXGF.js +0 -3896
  151. package/dist/chunks/chunk-T4QXKU5Y.js +0 -1
  152. package/dist/chunks/chunk-XEJ7XXUQ.js +0 -1301
  153. package/dist/chunks/chunk-ZI4GDAUB.js +0 -3522
  154. package/dist/chunks/cli-2KBVNDRY.js +0 -23
  155. package/dist/chunks/extend-REGNTBK3.js +0 -89
  156. package/dist/chunks/extension-7K77DAVL.js +0 -121
  157. package/dist/chunks/fileFromPath-DHCRY3BD.js +0 -2151
  158. package/dist/chunks/src-MWDIK56B.js +0 -105881
  159. package/dist/web/assets/BrowserSidebar-DMn2V8RV.js +0 -1
  160. package/dist/web/assets/CloudWorkView-Cl_7mM3c.js +0 -1
  161. package/dist/web/assets/CloudWorkView-DNoPIlMj.css +0 -1
  162. package/dist/web/assets/CommandMenu-CHMQLez_.js +0 -1
  163. package/dist/web/assets/CommunityView-DcHVDUk0.js +0 -1
  164. package/dist/web/assets/ComposerCreateImproveStrip-BZ3Dgzmo.js +0 -1
  165. package/dist/web/assets/GetStartedView-DBLdduwr.css +0 -1
  166. package/dist/web/assets/GetStartedView-DTRotFqz.js +0 -1
  167. package/dist/web/assets/LabSkillSidebar-D-PqFe1T.js +0 -1
  168. package/dist/web/assets/LabsRoute-BrJkBNig.css +0 -1
  169. package/dist/web/assets/LabsRoute-Dew1BwK5.js +0 -3
  170. package/dist/web/assets/MainChatThread-BaPxxzrw.js +0 -2
  171. package/dist/web/assets/MakeAgentTutorialLearningPanel-CBsfnONQ.js +0 -2
  172. package/dist/web/assets/MarkdownText-DGLfAM_Z.js +0 -7
  173. package/dist/web/assets/Messages-CIX9uTjX.js +0 -10
  174. package/dist/web/assets/NativeSkillSidebar-AP_uHn6g.js +0 -1
  175. package/dist/web/assets/NewProjectDialog-C6lHkafU.js +0 -1
  176. package/dist/web/assets/PostTrainingLearningPanel-CZEgPc8O.js +0 -2
  177. package/dist/web/assets/PostTrainingStatusPill-CeEpwUDB.js +0 -1
  178. package/dist/web/assets/ProfileSettingsSection-Cg4tKO-C.css +0 -1
  179. package/dist/web/assets/ProfileSettingsSection-EumMLlEp.js +0 -1
  180. package/dist/web/assets/RightChatPanelStack-MXBcx3zO.js +0 -1
  181. package/dist/web/assets/SettingsView-Caljbns2.css +0 -1
  182. package/dist/web/assets/SettingsView-DyURG_Uh.js +0 -6
  183. package/dist/web/assets/TeamChatView-Bx44q3WV.css +0 -1
  184. package/dist/web/assets/TeamChatView-D3v6aqJ3.js +0 -3
  185. package/dist/web/assets/TrainingCreationPanel-CfZQTuT5.js +0 -1
  186. package/dist/web/assets/TrainingDraftPanel-DslRPSDW.js +0 -1
  187. package/dist/web/assets/WorkspaceDiffPanel-C_MZPPlL.js +0 -14
  188. package/dist/web/assets/WorkspaceEnvironmentMenu-BUAnn80j.js +0 -32
  189. package/dist/web/assets/WorkspaceGitDialogs-Drbf4ujA.js +0 -1
  190. package/dist/web/assets/activity-Dnr3jqb3.js +0 -1
  191. package/dist/web/assets/boxes-BinC8UPn.js +0 -1
  192. package/dist/web/assets/chevron-up-Bjp_-_Cb.js +0 -1
  193. package/dist/web/assets/circle-x-ubnvEYuE.js +0 -1
  194. package/dist/web/assets/copy-B_ZCCUMz.js +0 -1
  195. package/dist/web/assets/create-pipeline-request-D6uLUxe9.js +0 -4
  196. package/dist/web/assets/file-8HAMlTmQ.js +0 -1
  197. package/dist/web/assets/git-branch-l2Zih3Bv.js +0 -1
  198. package/dist/web/assets/index-BMFyOFRU.css +0 -1
  199. package/dist/web/assets/index-BzwcDzbT.js +0 -1
  200. package/dist/web/assets/index-KoQSSt_f.js +0 -177
  201. package/dist/web/assets/info-JTbDQxHx.js +0 -1
  202. package/dist/web/assets/make-agent-tutorial-D6nBCgv-.js +0 -2
  203. package/dist/web/assets/monaco.contribution-B3j6oown.js +0 -2
  204. package/dist/web/assets/monaco.contribution-BXHxPPWL.js +0 -2
  205. package/dist/web/assets/monaco.contribution-C2P5zIzh.js +0 -2
  206. package/dist/web/assets/monaco.contribution-C8c6OtGi.js +0 -2
  207. package/dist/web/assets/monitor-kzHtxHnA.js +0 -1
  208. package/dist/web/assets/reply-9rehU13k.js +0 -1
  209. package/dist/web/assets/rotate-cw-C1Z_Xs23.js +0 -1
  210. package/dist/web/assets/training-BN8CALIc.css +0 -1
  211. package/dist/web/assets/training-model-data-BXUCzS0p.js +0 -1
  212. package/docs/agent-edit-check-status-json.md +0 -132
@@ -1,4 +1,4 @@
1
- import{jb as Ge,l as x,j7 as w,j8 as Je,ja as R}from"./WorkspaceMonacoEditor-DPGcG8fy.js";import"./toggleHighContrast-CD42jH4g.js";var T;(function(e){function n(i){return typeof i=="string"}e.is=n})(T||(T={}));var O;(function(e){function n(i){return typeof i=="string"}e.is=n})(O||(O={}));var K;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(K||(K={}));var C;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(C||(C={}));var _;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=C.MAX_VALUE),t===Number.MAX_VALUE&&(t=C.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){let t=r;return o.objectLiteral(t)&&o.uinteger(t.line)&&o.uinteger(t.character)}e.is=i})(_||(_={}));var h;(function(e){function n(r,t,a,u){if(o.uinteger(r)&&o.uinteger(t)&&o.uinteger(a)&&o.uinteger(u))return{start:_.create(r,t),end:_.create(a,u)};if(_.is(r)&&_.is(t))return{start:r,end:t};throw new Error(`Range#create called with invalid arguments[${r}, ${t}, ${a}, ${u}]`)}e.create=n;function i(r){let t=r;return o.objectLiteral(t)&&_.is(t.start)&&_.is(t.end)}e.is=i})(h||(h={}));var N;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){let t=r;return o.objectLiteral(t)&&h.is(t.range)&&(o.string(t.uri)||o.undefined(t.uri))}e.is=i})(N||(N={}));var ee;(function(e){function n(r,t,a,u){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:u}}e.create=n;function i(r){let t=r;return o.objectLiteral(t)&&h.is(t.targetRange)&&o.string(t.targetUri)&&h.is(t.targetSelectionRange)&&(h.is(t.originSelectionRange)||o.undefined(t.originSelectionRange))}e.is=i})(ee||(ee={}));var S;(function(e){function n(r,t,a,u){return{red:r,green:t,blue:a,alpha:u}}e.create=n;function i(r){const t=r;return o.objectLiteral(t)&&o.numberRange(t.red,0,1)&&o.numberRange(t.green,0,1)&&o.numberRange(t.blue,0,1)&&o.numberRange(t.alpha,0,1)}e.is=i})(S||(S={}));var te;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){const t=r;return o.objectLiteral(t)&&h.is(t.range)&&S.is(t.color)}e.is=i})(te||(te={}));var ne;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){const t=r;return o.objectLiteral(t)&&o.string(t.label)&&(o.undefined(t.textEdit)||L.is(t))&&(o.undefined(t.additionalTextEdits)||o.typedArray(t.additionalTextEdits,L.is))}e.is=i})(ne||(ne={}));var M;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(M||(M={}));var re;(function(e){function n(r,t,a,u,s,f){const l={startLine:r,endLine:t};return o.defined(a)&&(l.startCharacter=a),o.defined(u)&&(l.endCharacter=u),o.defined(s)&&(l.kind=s),o.defined(f)&&(l.collapsedText=f),l}e.create=n;function i(r){const t=r;return o.objectLiteral(t)&&o.uinteger(t.startLine)&&o.uinteger(t.startLine)&&(o.undefined(t.startCharacter)||o.uinteger(t.startCharacter))&&(o.undefined(t.endCharacter)||o.uinteger(t.endCharacter))&&(o.undefined(t.kind)||o.string(t.kind))}e.is=i})(re||(re={}));var H;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){let t=r;return o.defined(t)&&N.is(t.location)&&o.string(t.message)}e.is=i})(H||(H={}));var A;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(A||(A={}));var ie;(function(e){e.Unnecessary=1,e.Deprecated=2})(ie||(ie={}));var ae;(function(e){function n(i){const r=i;return o.objectLiteral(r)&&o.string(r.href)}e.is=n})(ae||(ae={}));var P;(function(e){function n(r,t,a,u,s,f){let l={range:r,message:t};return o.defined(a)&&(l.severity=a),o.defined(u)&&(l.code=u),o.defined(s)&&(l.source=s),o.defined(f)&&(l.relatedInformation=f),l}e.create=n;function i(r){var t;let a=r;return o.defined(a)&&h.is(a.range)&&o.string(a.message)&&(o.number(a.severity)||o.undefined(a.severity))&&(o.integer(a.code)||o.string(a.code)||o.undefined(a.code))&&(o.undefined(a.codeDescription)||o.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(o.string(a.source)||o.undefined(a.source))&&(o.undefined(a.relatedInformation)||o.typedArray(a.relatedInformation,H.is))}e.is=i})(P||(P={}));var E;(function(e){function n(r,t,...a){let u={title:r,command:t};return o.defined(a)&&a.length>0&&(u.arguments=a),u}e.create=n;function i(r){let t=r;return o.defined(t)&&o.string(t.title)&&o.string(t.command)}e.is=i})(E||(E={}));var L;(function(e){function n(a,u){return{range:a,newText:u}}e.replace=n;function i(a,u){return{range:{start:a,end:a},newText:u}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){const u=a;return o.objectLiteral(u)&&o.string(u.newText)&&h.is(u.range)}e.is=t})(L||(L={}));var W;(function(e){function n(r,t,a){const u={label:r};return t!==void 0&&(u.needsConfirmation=t),a!==void 0&&(u.description=a),u}e.create=n;function i(r){const t=r;return o.objectLiteral(t)&&o.string(t.label)&&(o.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(o.string(t.description)||t.description===void 0)}e.is=i})(W||(W={}));var I;(function(e){function n(i){const r=i;return o.string(r)}e.is=n})(I||(I={}));var oe;(function(e){function n(a,u,s){return{range:a,newText:u,annotationId:s}}e.replace=n;function i(a,u,s){return{range:{start:a,end:a},newText:u,annotationId:s}}e.insert=i;function r(a,u){return{range:a,newText:"",annotationId:u}}e.del=r;function t(a){const u=a;return L.is(u)&&(W.is(u.annotationId)||I.is(u.annotationId))}e.is=t})(oe||(oe={}));var X;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){let t=r;return o.defined(t)&&Q.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(X||(X={}));var $;(function(e){function n(r,t,a){let u={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(u.options=t),a!==void 0&&(u.annotationId=a),u}e.create=n;function i(r){let t=r;return t&&t.kind==="create"&&o.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||o.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||o.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||I.is(t.annotationId))}e.is=i})($||($={}));var z;(function(e){function n(r,t,a,u){let s={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(s.options=a),u!==void 0&&(s.annotationId=u),s}e.create=n;function i(r){let t=r;return t&&t.kind==="rename"&&o.string(t.oldUri)&&o.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||o.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||o.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||I.is(t.annotationId))}e.is=i})(z||(z={}));var B;(function(e){function n(r,t,a){let u={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(u.options=t),a!==void 0&&(u.annotationId=a),u}e.create=n;function i(r){let t=r;return t&&t.kind==="delete"&&o.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||o.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||o.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||I.is(t.annotationId))}e.is=i})(B||(B={}));var q;(function(e){function n(i){let r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(t=>o.string(t.kind)?$.is(t)||z.is(t)||B.is(t):X.is(t)))}e.is=n})(q||(q={}));var ue;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){let t=r;return o.defined(t)&&o.string(t.uri)}e.is=i})(ue||(ue={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return o.defined(t)&&o.string(t.uri)&&o.integer(t.version)}e.is=i})(se||(se={}));var Q;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return o.defined(t)&&o.string(t.uri)&&(t.version===null||o.integer(t.version))}e.is=i})(Q||(Q={}));var ce;(function(e){function n(r,t,a,u){return{uri:r,languageId:t,version:a,text:u}}e.create=n;function i(r){let t=r;return o.defined(t)&&o.string(t.uri)&&o.string(t.languageId)&&o.integer(t.version)&&o.string(t.text)}e.is=i})(ce||(ce={}));var G;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function n(i){const r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(G||(G={}));var F;(function(e){function n(i){const r=i;return o.objectLiteral(i)&&G.is(r.kind)&&o.string(r.value)}e.is=n})(F||(F={}));var p;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(p||(p={}));var J;(function(e){e.PlainText=1,e.Snippet=2})(J||(J={}));var de;(function(e){e.Deprecated=1})(de||(de={}));var fe;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){const t=r;return t&&o.string(t.newText)&&h.is(t.insert)&&h.is(t.replace)}e.is=i})(fe||(fe={}));var le;(function(e){e.asIs=1,e.adjustIndentation=2})(le||(le={}));var ge;(function(e){function n(i){const r=i;return r&&(o.string(r.detail)||r.detail===void 0)&&(o.string(r.description)||r.description===void 0)}e.is=n})(ge||(ge={}));var he;(function(e){function n(i){return{label:i}}e.create=n})(he||(he={}));var pe;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(pe||(pe={}));var y;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){const t=r;return o.string(t)||o.objectLiteral(t)&&o.string(t.language)&&o.string(t.value)}e.is=i})(y||(y={}));var me;(function(e){function n(i){let r=i;return!!r&&o.objectLiteral(r)&&(F.is(r.contents)||y.is(r.contents)||o.typedArray(r.contents,y.is))&&(i.range===void 0||h.is(i.range))}e.is=n})(me||(me={}));var ve;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(ve||(ve={}));var be;(function(e){function n(i,r,...t){let a={label:i};return o.defined(r)&&(a.documentation=r),o.defined(t)?a.parameters=t:a.parameters=[],a}e.create=n})(be||(be={}));var D;(function(e){e.Text=1,e.Read=2,e.Write=3})(D||(D={}));var _e;(function(e){function n(i,r){let t={range:i};return o.number(r)&&(t.kind=r),t}e.create=n})(_e||(_e={}));var m;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(m||(m={}));var xe;(function(e){e.Deprecated=1})(xe||(xe={}));var we;(function(e){function n(i,r,t,a,u){let s={name:i,kind:r,location:{uri:a,range:t}};return u&&(s.containerName=u),s}e.create=n})(we||(we={}));var ke;(function(e){function n(i,r,t,a){return a!==void 0?{name:i,kind:r,location:{uri:t,range:a}}:{name:i,kind:r,location:{uri:t}}}e.create=n})(ke||(ke={}));var Ae;(function(e){function n(r,t,a,u,s,f){let l={name:r,detail:t,kind:a,range:u,selectionRange:s};return f!==void 0&&(l.children=f),l}e.create=n;function i(r){let t=r;return t&&o.string(t.name)&&o.number(t.kind)&&h.is(t.range)&&h.is(t.selectionRange)&&(t.detail===void 0||o.string(t.detail))&&(t.deprecated===void 0||o.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=i})(Ae||(Ae={}));var Ee;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Ee||(Ee={}));var V;(function(e){e.Invoked=1,e.Automatic=2})(V||(V={}));var Le;(function(e){function n(r,t,a){let u={diagnostics:r};return t!=null&&(u.only=t),a!=null&&(u.triggerKind=a),u}e.create=n;function i(r){let t=r;return o.defined(t)&&o.typedArray(t.diagnostics,P.is)&&(t.only===void 0||o.typedArray(t.only,o.string))&&(t.triggerKind===void 0||t.triggerKind===V.Invoked||t.triggerKind===V.Automatic)}e.is=i})(Le||(Le={}));var Ie;(function(e){function n(r,t,a){let u={title:r},s=!0;return typeof t=="string"?(s=!1,u.kind=t):E.is(t)?u.command=t:u.edit=t,s&&a!==void 0&&(u.kind=a),u}e.create=n;function i(r){let t=r;return t&&o.string(t.title)&&(t.diagnostics===void 0||o.typedArray(t.diagnostics,P.is))&&(t.kind===void 0||o.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||E.is(t.command))&&(t.isPreferred===void 0||o.boolean(t.isPreferred))&&(t.edit===void 0||q.is(t.edit))}e.is=i})(Ie||(Ie={}));var Re;(function(e){function n(r,t){let a={range:r};return o.defined(t)&&(a.data=t),a}e.create=n;function i(r){let t=r;return o.defined(t)&&h.is(t.range)&&(o.undefined(t.command)||E.is(t.command))}e.is=i})(Re||(Re={}));var Me;(function(e){function n(r,t){return{tabSize:r,insertSpaces:t}}e.create=n;function i(r){let t=r;return o.defined(t)&&o.uinteger(t.tabSize)&&o.boolean(t.insertSpaces)}e.is=i})(Me||(Me={}));var De;(function(e){function n(r,t,a){return{range:r,target:t,data:a}}e.create=n;function i(r){let t=r;return o.defined(t)&&h.is(t.range)&&(o.undefined(t.target)||o.string(t.target))}e.is=i})(De||(De={}));var Fe;(function(e){function n(r,t){return{range:r,parent:t}}e.create=n;function i(r){let t=r;return o.objectLiteral(t)&&h.is(t.range)&&(t.parent===void 0||e.is(t.parent))}e.is=i})(Fe||(Fe={}));var je;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(je||(je={}));var Ce;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Ce||(Ce={}));var Ne;(function(e){function n(i){const r=i;return o.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=n})(Ne||(Ne={}));var Pe;(function(e){function n(r,t){return{range:r,text:t}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&o.string(t.text)}e.is=i})(Pe||(Pe={}));var ye;(function(e){function n(r,t,a){return{range:r,variableName:t,caseSensitiveLookup:a}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&o.boolean(t.caseSensitiveLookup)&&(o.string(t.variableName)||t.variableName===void 0)}e.is=i})(ye||(ye={}));var Ve;(function(e){function n(r,t){return{range:r,expression:t}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&(o.string(t.expression)||t.expression===void 0)}e.is=i})(Ve||(Ve={}));var Ue;(function(e){function n(r,t){return{frameId:r,stoppedLocation:t}}e.create=n;function i(r){const t=r;return o.defined(t)&&h.is(r.stoppedLocation)}e.is=i})(Ue||(Ue={}));var Y;(function(e){e.Type=1,e.Parameter=2;function n(i){return i===1||i===2}e.is=n})(Y||(Y={}));var Z;(function(e){function n(r){return{value:r}}e.create=n;function i(r){const t=r;return o.objectLiteral(t)&&(t.tooltip===void 0||o.string(t.tooltip)||F.is(t.tooltip))&&(t.location===void 0||N.is(t.location))&&(t.command===void 0||E.is(t.command))}e.is=i})(Z||(Z={}));var Oe;(function(e){function n(r,t,a){const u={position:r,label:t};return a!==void 0&&(u.kind=a),u}e.create=n;function i(r){const t=r;return o.objectLiteral(t)&&_.is(t.position)&&(o.string(t.label)||o.typedArray(t.label,Z.is))&&(t.kind===void 0||Y.is(t.kind))&&t.textEdits===void 0||o.typedArray(t.textEdits,L.is)&&(t.tooltip===void 0||o.string(t.tooltip)||F.is(t.tooltip))&&(t.paddingLeft===void 0||o.boolean(t.paddingLeft))&&(t.paddingRight===void 0||o.boolean(t.paddingRight))}e.is=i})(Oe||(Oe={}));var Se;(function(e){function n(i){return{kind:"snippet",value:i}}e.createSnippet=n})(Se||(Se={}));var He;(function(e){function n(i,r,t,a){return{insertText:i,filterText:r,range:t,command:a}}e.create=n})(He||(He={}));var We;(function(e){function n(i){return{items:i}}e.create=n})(We||(We={}));var Xe;(function(e){e.Invoked=0,e.Automatic=1})(Xe||(Xe={}));var $e;(function(e){function n(i,r){return{range:i,text:r}}e.create=n})($e||($e={}));var ze;(function(e){function n(i,r){return{triggerKind:i,selectedCompletionInfo:r}}e.create=n})(ze||(ze={}));var Be;(function(e){function n(i){const r=i;return o.objectLiteral(r)&&O.is(r.uri)&&o.string(r.name)}e.is=n})(Be||(Be={}));var qe;(function(e){function n(a,u,s,f){return new nt(a,u,s,f)}e.create=n;function i(a){let u=a;return!!(o.defined(u)&&o.string(u.uri)&&(o.undefined(u.languageId)||o.string(u.languageId))&&o.uinteger(u.lineCount)&&o.func(u.getText)&&o.func(u.positionAt)&&o.func(u.offsetAt))}e.is=i;function r(a,u){let s=a.getText(),f=t(u,(d,g)=>{let b=d.range.start.line-g.range.start.line;return b===0?d.range.start.character-g.range.start.character:b}),l=s.length;for(let d=f.length-1;d>=0;d--){let g=f[d],b=a.offsetAt(g.range.start),c=a.offsetAt(g.range.end);if(c<=l)s=s.substring(0,b)+g.newText+s.substring(c,s.length);else throw new Error("Overlapping edit");l=b}return s}e.applyEdits=r;function t(a,u){if(a.length<=1)return a;const s=a.length/2|0,f=a.slice(0,s),l=a.slice(s);t(f,u),t(l,u);let d=0,g=0,b=0;for(;d<f.length&&g<l.length;)u(f[d],l[g])<=0?a[b++]=f[d++]:a[b++]=l[g++];for(;d<f.length;)a[b++]=f[d++];for(;g<l.length;)a[b++]=l[g++];return a}})(qe||(qe={}));class nt{constructor(n,i,r,t){this._uri=n,this._languageId=i,this._version=r,this._content=t,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(n){if(n){let i=this.offsetAt(n.start),r=this.offsetAt(n.end);return this._content.substring(i,r)}return this._content}update(n,i){this._content=n.text,this._version=i,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let n=[],i=this._content,r=!0;for(let t=0;t<i.length;t++){r&&(n.push(t),r=!1);let a=i.charAt(t);r=a==="\r"||a===`
1
+ import{jb as Ge,l as x,j7 as w,j8 as Je,ja as R}from"./WorkspaceMonacoEditor-C2ctzITz.js";import"./toggleHighContrast-DrdQN3Rl.js";var T;(function(e){function n(i){return typeof i=="string"}e.is=n})(T||(T={}));var O;(function(e){function n(i){return typeof i=="string"}e.is=n})(O||(O={}));var K;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(K||(K={}));var C;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(C||(C={}));var _;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=C.MAX_VALUE),t===Number.MAX_VALUE&&(t=C.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){let t=r;return o.objectLiteral(t)&&o.uinteger(t.line)&&o.uinteger(t.character)}e.is=i})(_||(_={}));var h;(function(e){function n(r,t,a,u){if(o.uinteger(r)&&o.uinteger(t)&&o.uinteger(a)&&o.uinteger(u))return{start:_.create(r,t),end:_.create(a,u)};if(_.is(r)&&_.is(t))return{start:r,end:t};throw new Error(`Range#create called with invalid arguments[${r}, ${t}, ${a}, ${u}]`)}e.create=n;function i(r){let t=r;return o.objectLiteral(t)&&_.is(t.start)&&_.is(t.end)}e.is=i})(h||(h={}));var N;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){let t=r;return o.objectLiteral(t)&&h.is(t.range)&&(o.string(t.uri)||o.undefined(t.uri))}e.is=i})(N||(N={}));var ee;(function(e){function n(r,t,a,u){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:u}}e.create=n;function i(r){let t=r;return o.objectLiteral(t)&&h.is(t.targetRange)&&o.string(t.targetUri)&&h.is(t.targetSelectionRange)&&(h.is(t.originSelectionRange)||o.undefined(t.originSelectionRange))}e.is=i})(ee||(ee={}));var S;(function(e){function n(r,t,a,u){return{red:r,green:t,blue:a,alpha:u}}e.create=n;function i(r){const t=r;return o.objectLiteral(t)&&o.numberRange(t.red,0,1)&&o.numberRange(t.green,0,1)&&o.numberRange(t.blue,0,1)&&o.numberRange(t.alpha,0,1)}e.is=i})(S||(S={}));var te;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){const t=r;return o.objectLiteral(t)&&h.is(t.range)&&S.is(t.color)}e.is=i})(te||(te={}));var ne;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){const t=r;return o.objectLiteral(t)&&o.string(t.label)&&(o.undefined(t.textEdit)||L.is(t))&&(o.undefined(t.additionalTextEdits)||o.typedArray(t.additionalTextEdits,L.is))}e.is=i})(ne||(ne={}));var M;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(M||(M={}));var re;(function(e){function n(r,t,a,u,s,f){const l={startLine:r,endLine:t};return o.defined(a)&&(l.startCharacter=a),o.defined(u)&&(l.endCharacter=u),o.defined(s)&&(l.kind=s),o.defined(f)&&(l.collapsedText=f),l}e.create=n;function i(r){const t=r;return o.objectLiteral(t)&&o.uinteger(t.startLine)&&o.uinteger(t.startLine)&&(o.undefined(t.startCharacter)||o.uinteger(t.startCharacter))&&(o.undefined(t.endCharacter)||o.uinteger(t.endCharacter))&&(o.undefined(t.kind)||o.string(t.kind))}e.is=i})(re||(re={}));var H;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){let t=r;return o.defined(t)&&N.is(t.location)&&o.string(t.message)}e.is=i})(H||(H={}));var A;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(A||(A={}));var ie;(function(e){e.Unnecessary=1,e.Deprecated=2})(ie||(ie={}));var ae;(function(e){function n(i){const r=i;return o.objectLiteral(r)&&o.string(r.href)}e.is=n})(ae||(ae={}));var P;(function(e){function n(r,t,a,u,s,f){let l={range:r,message:t};return o.defined(a)&&(l.severity=a),o.defined(u)&&(l.code=u),o.defined(s)&&(l.source=s),o.defined(f)&&(l.relatedInformation=f),l}e.create=n;function i(r){var t;let a=r;return o.defined(a)&&h.is(a.range)&&o.string(a.message)&&(o.number(a.severity)||o.undefined(a.severity))&&(o.integer(a.code)||o.string(a.code)||o.undefined(a.code))&&(o.undefined(a.codeDescription)||o.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(o.string(a.source)||o.undefined(a.source))&&(o.undefined(a.relatedInformation)||o.typedArray(a.relatedInformation,H.is))}e.is=i})(P||(P={}));var E;(function(e){function n(r,t,...a){let u={title:r,command:t};return o.defined(a)&&a.length>0&&(u.arguments=a),u}e.create=n;function i(r){let t=r;return o.defined(t)&&o.string(t.title)&&o.string(t.command)}e.is=i})(E||(E={}));var L;(function(e){function n(a,u){return{range:a,newText:u}}e.replace=n;function i(a,u){return{range:{start:a,end:a},newText:u}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){const u=a;return o.objectLiteral(u)&&o.string(u.newText)&&h.is(u.range)}e.is=t})(L||(L={}));var W;(function(e){function n(r,t,a){const u={label:r};return t!==void 0&&(u.needsConfirmation=t),a!==void 0&&(u.description=a),u}e.create=n;function i(r){const t=r;return o.objectLiteral(t)&&o.string(t.label)&&(o.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(o.string(t.description)||t.description===void 0)}e.is=i})(W||(W={}));var I;(function(e){function n(i){const r=i;return o.string(r)}e.is=n})(I||(I={}));var oe;(function(e){function n(a,u,s){return{range:a,newText:u,annotationId:s}}e.replace=n;function i(a,u,s){return{range:{start:a,end:a},newText:u,annotationId:s}}e.insert=i;function r(a,u){return{range:a,newText:"",annotationId:u}}e.del=r;function t(a){const u=a;return L.is(u)&&(W.is(u.annotationId)||I.is(u.annotationId))}e.is=t})(oe||(oe={}));var X;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){let t=r;return o.defined(t)&&Q.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(X||(X={}));var $;(function(e){function n(r,t,a){let u={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(u.options=t),a!==void 0&&(u.annotationId=a),u}e.create=n;function i(r){let t=r;return t&&t.kind==="create"&&o.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||o.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||o.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||I.is(t.annotationId))}e.is=i})($||($={}));var z;(function(e){function n(r,t,a,u){let s={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(s.options=a),u!==void 0&&(s.annotationId=u),s}e.create=n;function i(r){let t=r;return t&&t.kind==="rename"&&o.string(t.oldUri)&&o.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||o.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||o.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||I.is(t.annotationId))}e.is=i})(z||(z={}));var B;(function(e){function n(r,t,a){let u={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(u.options=t),a!==void 0&&(u.annotationId=a),u}e.create=n;function i(r){let t=r;return t&&t.kind==="delete"&&o.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||o.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||o.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||I.is(t.annotationId))}e.is=i})(B||(B={}));var q;(function(e){function n(i){let r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(t=>o.string(t.kind)?$.is(t)||z.is(t)||B.is(t):X.is(t)))}e.is=n})(q||(q={}));var ue;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){let t=r;return o.defined(t)&&o.string(t.uri)}e.is=i})(ue||(ue={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return o.defined(t)&&o.string(t.uri)&&o.integer(t.version)}e.is=i})(se||(se={}));var Q;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return o.defined(t)&&o.string(t.uri)&&(t.version===null||o.integer(t.version))}e.is=i})(Q||(Q={}));var ce;(function(e){function n(r,t,a,u){return{uri:r,languageId:t,version:a,text:u}}e.create=n;function i(r){let t=r;return o.defined(t)&&o.string(t.uri)&&o.string(t.languageId)&&o.integer(t.version)&&o.string(t.text)}e.is=i})(ce||(ce={}));var G;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function n(i){const r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(G||(G={}));var F;(function(e){function n(i){const r=i;return o.objectLiteral(i)&&G.is(r.kind)&&o.string(r.value)}e.is=n})(F||(F={}));var p;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(p||(p={}));var J;(function(e){e.PlainText=1,e.Snippet=2})(J||(J={}));var de;(function(e){e.Deprecated=1})(de||(de={}));var fe;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){const t=r;return t&&o.string(t.newText)&&h.is(t.insert)&&h.is(t.replace)}e.is=i})(fe||(fe={}));var le;(function(e){e.asIs=1,e.adjustIndentation=2})(le||(le={}));var ge;(function(e){function n(i){const r=i;return r&&(o.string(r.detail)||r.detail===void 0)&&(o.string(r.description)||r.description===void 0)}e.is=n})(ge||(ge={}));var he;(function(e){function n(i){return{label:i}}e.create=n})(he||(he={}));var pe;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(pe||(pe={}));var y;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){const t=r;return o.string(t)||o.objectLiteral(t)&&o.string(t.language)&&o.string(t.value)}e.is=i})(y||(y={}));var me;(function(e){function n(i){let r=i;return!!r&&o.objectLiteral(r)&&(F.is(r.contents)||y.is(r.contents)||o.typedArray(r.contents,y.is))&&(i.range===void 0||h.is(i.range))}e.is=n})(me||(me={}));var ve;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(ve||(ve={}));var be;(function(e){function n(i,r,...t){let a={label:i};return o.defined(r)&&(a.documentation=r),o.defined(t)?a.parameters=t:a.parameters=[],a}e.create=n})(be||(be={}));var D;(function(e){e.Text=1,e.Read=2,e.Write=3})(D||(D={}));var _e;(function(e){function n(i,r){let t={range:i};return o.number(r)&&(t.kind=r),t}e.create=n})(_e||(_e={}));var m;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(m||(m={}));var xe;(function(e){e.Deprecated=1})(xe||(xe={}));var we;(function(e){function n(i,r,t,a,u){let s={name:i,kind:r,location:{uri:a,range:t}};return u&&(s.containerName=u),s}e.create=n})(we||(we={}));var ke;(function(e){function n(i,r,t,a){return a!==void 0?{name:i,kind:r,location:{uri:t,range:a}}:{name:i,kind:r,location:{uri:t}}}e.create=n})(ke||(ke={}));var Ae;(function(e){function n(r,t,a,u,s,f){let l={name:r,detail:t,kind:a,range:u,selectionRange:s};return f!==void 0&&(l.children=f),l}e.create=n;function i(r){let t=r;return t&&o.string(t.name)&&o.number(t.kind)&&h.is(t.range)&&h.is(t.selectionRange)&&(t.detail===void 0||o.string(t.detail))&&(t.deprecated===void 0||o.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=i})(Ae||(Ae={}));var Ee;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Ee||(Ee={}));var V;(function(e){e.Invoked=1,e.Automatic=2})(V||(V={}));var Le;(function(e){function n(r,t,a){let u={diagnostics:r};return t!=null&&(u.only=t),a!=null&&(u.triggerKind=a),u}e.create=n;function i(r){let t=r;return o.defined(t)&&o.typedArray(t.diagnostics,P.is)&&(t.only===void 0||o.typedArray(t.only,o.string))&&(t.triggerKind===void 0||t.triggerKind===V.Invoked||t.triggerKind===V.Automatic)}e.is=i})(Le||(Le={}));var Ie;(function(e){function n(r,t,a){let u={title:r},s=!0;return typeof t=="string"?(s=!1,u.kind=t):E.is(t)?u.command=t:u.edit=t,s&&a!==void 0&&(u.kind=a),u}e.create=n;function i(r){let t=r;return t&&o.string(t.title)&&(t.diagnostics===void 0||o.typedArray(t.diagnostics,P.is))&&(t.kind===void 0||o.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||E.is(t.command))&&(t.isPreferred===void 0||o.boolean(t.isPreferred))&&(t.edit===void 0||q.is(t.edit))}e.is=i})(Ie||(Ie={}));var Re;(function(e){function n(r,t){let a={range:r};return o.defined(t)&&(a.data=t),a}e.create=n;function i(r){let t=r;return o.defined(t)&&h.is(t.range)&&(o.undefined(t.command)||E.is(t.command))}e.is=i})(Re||(Re={}));var Me;(function(e){function n(r,t){return{tabSize:r,insertSpaces:t}}e.create=n;function i(r){let t=r;return o.defined(t)&&o.uinteger(t.tabSize)&&o.boolean(t.insertSpaces)}e.is=i})(Me||(Me={}));var De;(function(e){function n(r,t,a){return{range:r,target:t,data:a}}e.create=n;function i(r){let t=r;return o.defined(t)&&h.is(t.range)&&(o.undefined(t.target)||o.string(t.target))}e.is=i})(De||(De={}));var Fe;(function(e){function n(r,t){return{range:r,parent:t}}e.create=n;function i(r){let t=r;return o.objectLiteral(t)&&h.is(t.range)&&(t.parent===void 0||e.is(t.parent))}e.is=i})(Fe||(Fe={}));var je;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(je||(je={}));var Ce;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Ce||(Ce={}));var Ne;(function(e){function n(i){const r=i;return o.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=n})(Ne||(Ne={}));var Pe;(function(e){function n(r,t){return{range:r,text:t}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&o.string(t.text)}e.is=i})(Pe||(Pe={}));var ye;(function(e){function n(r,t,a){return{range:r,variableName:t,caseSensitiveLookup:a}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&o.boolean(t.caseSensitiveLookup)&&(o.string(t.variableName)||t.variableName===void 0)}e.is=i})(ye||(ye={}));var Ve;(function(e){function n(r,t){return{range:r,expression:t}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&(o.string(t.expression)||t.expression===void 0)}e.is=i})(Ve||(Ve={}));var Ue;(function(e){function n(r,t){return{frameId:r,stoppedLocation:t}}e.create=n;function i(r){const t=r;return o.defined(t)&&h.is(r.stoppedLocation)}e.is=i})(Ue||(Ue={}));var Y;(function(e){e.Type=1,e.Parameter=2;function n(i){return i===1||i===2}e.is=n})(Y||(Y={}));var Z;(function(e){function n(r){return{value:r}}e.create=n;function i(r){const t=r;return o.objectLiteral(t)&&(t.tooltip===void 0||o.string(t.tooltip)||F.is(t.tooltip))&&(t.location===void 0||N.is(t.location))&&(t.command===void 0||E.is(t.command))}e.is=i})(Z||(Z={}));var Oe;(function(e){function n(r,t,a){const u={position:r,label:t};return a!==void 0&&(u.kind=a),u}e.create=n;function i(r){const t=r;return o.objectLiteral(t)&&_.is(t.position)&&(o.string(t.label)||o.typedArray(t.label,Z.is))&&(t.kind===void 0||Y.is(t.kind))&&t.textEdits===void 0||o.typedArray(t.textEdits,L.is)&&(t.tooltip===void 0||o.string(t.tooltip)||F.is(t.tooltip))&&(t.paddingLeft===void 0||o.boolean(t.paddingLeft))&&(t.paddingRight===void 0||o.boolean(t.paddingRight))}e.is=i})(Oe||(Oe={}));var Se;(function(e){function n(i){return{kind:"snippet",value:i}}e.createSnippet=n})(Se||(Se={}));var He;(function(e){function n(i,r,t,a){return{insertText:i,filterText:r,range:t,command:a}}e.create=n})(He||(He={}));var We;(function(e){function n(i){return{items:i}}e.create=n})(We||(We={}));var Xe;(function(e){e.Invoked=0,e.Automatic=1})(Xe||(Xe={}));var $e;(function(e){function n(i,r){return{range:i,text:r}}e.create=n})($e||($e={}));var ze;(function(e){function n(i,r){return{triggerKind:i,selectedCompletionInfo:r}}e.create=n})(ze||(ze={}));var Be;(function(e){function n(i){const r=i;return o.objectLiteral(r)&&O.is(r.uri)&&o.string(r.name)}e.is=n})(Be||(Be={}));var qe;(function(e){function n(a,u,s,f){return new nt(a,u,s,f)}e.create=n;function i(a){let u=a;return!!(o.defined(u)&&o.string(u.uri)&&(o.undefined(u.languageId)||o.string(u.languageId))&&o.uinteger(u.lineCount)&&o.func(u.getText)&&o.func(u.positionAt)&&o.func(u.offsetAt))}e.is=i;function r(a,u){let s=a.getText(),f=t(u,(d,g)=>{let b=d.range.start.line-g.range.start.line;return b===0?d.range.start.character-g.range.start.character:b}),l=s.length;for(let d=f.length-1;d>=0;d--){let g=f[d],b=a.offsetAt(g.range.start),c=a.offsetAt(g.range.end);if(c<=l)s=s.substring(0,b)+g.newText+s.substring(c,s.length);else throw new Error("Overlapping edit");l=b}return s}e.applyEdits=r;function t(a,u){if(a.length<=1)return a;const s=a.length/2|0,f=a.slice(0,s),l=a.slice(s);t(f,u),t(l,u);let d=0,g=0,b=0;for(;d<f.length&&g<l.length;)u(f[d],l[g])<=0?a[b++]=f[d++]:a[b++]=l[g++];for(;d<f.length;)a[b++]=f[d++];for(;g<l.length;)a[b++]=l[g++];return a}})(qe||(qe={}));class nt{constructor(n,i,r,t){this._uri=n,this._languageId=i,this._version=r,this._content=t,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(n){if(n){let i=this.offsetAt(n.start),r=this.offsetAt(n.end);return this._content.substring(i,r)}return this._content}update(n,i){this._content=n.text,this._version=i,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let n=[],i=this._content,r=!0;for(let t=0;t<i.length;t++){r&&(n.push(t),r=!1);let a=i.charAt(t);r=a==="\r"||a===`
2
2
  `,a==="\r"&&t+1<i.length&&i.charAt(t+1)===`
3
3
  `&&t++}r&&i.length>0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets}positionAt(n){n=Math.max(Math.min(n,this._content.length),0);let i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return _.create(0,n);for(;r<t;){let u=Math.floor((r+t)/2);i[u]>n?t=u:r=u+1}let a=r-1;return _.create(a,n-i[a])}offsetAt(n){let i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;let r=i[n.line],t=n.line+1<i.length?i[n.line+1]:this._content.length;return Math.max(Math.min(r+n.character,t),r)}get lineCount(){return this.getLineOffsets().length}}var o;(function(e){const n=Object.prototype.toString;function i(c){return typeof c<"u"}e.defined=i;function r(c){return typeof c>"u"}e.undefined=r;function t(c){return c===!0||c===!1}e.boolean=t;function a(c){return n.call(c)==="[object String]"}e.string=a;function u(c){return n.call(c)==="[object Number]"}e.number=u;function s(c,U,tt){return n.call(c)==="[object Number]"&&U<=c&&c<=tt}e.numberRange=s;function f(c){return n.call(c)==="[object Number]"&&-2147483648<=c&&c<=2147483647}e.integer=f;function l(c){return n.call(c)==="[object Number]"&&0<=c&&c<=2147483647}e.uinteger=l;function d(c){return n.call(c)==="[object Function]"}e.func=d;function g(c){return c!==null&&typeof c=="object"}e.objectLiteral=g;function b(c,U){return Array.isArray(c)&&c.every(U)}e.typedArray=b})(o||(o={}));class mt{constructor(n,i,r){this._languageId=n,this._worker=i,this._disposables=[],this._listener=Object.create(null);const t=u=>{let s=u.getLanguageId();if(s!==this._languageId)return;let f;this._listener[u.uri.toString()]=u.onDidChangeContent(()=>{window.clearTimeout(f),f=window.setTimeout(()=>this._doValidate(u.uri,s),500)}),this._doValidate(u.uri,s)},a=u=>{w.setModelMarkers(u,this._languageId,[]);let s=u.uri.toString(),f=this._listener[s];f&&(f.dispose(),delete this._listener[s])};this._disposables.push(w.onDidCreateModel(t)),this._disposables.push(w.onWillDisposeModel(a)),this._disposables.push(w.onDidChangeModelLanguage(u=>{a(u.model),t(u.model)})),this._disposables.push(r(u=>{w.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(a(s),t(s))})})),this._disposables.push({dispose:()=>{w.getModels().forEach(a);for(let u in this._listener)this._listener[u].dispose()}}),w.getModels().forEach(t)}dispose(){this._disposables.forEach(n=>n&&n.dispose()),this._disposables.length=0}_doValidate(n,i){this._worker(n).then(r=>r.doValidation(n.toString())).then(r=>{const t=r.map(u=>it(n,u));let a=w.getModel(n);a&&a.getLanguageId()===i&&w.setModelMarkers(a,i,t)}).then(void 0,r=>{console.error(r)})}}function rt(e){switch(e){case A.Error:return R.Error;case A.Warning:return R.Warning;case A.Information:return R.Info;case A.Hint:return R.Hint;default:return R.Info}}function it(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:rt(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}class vt{constructor(n,i){this._worker=n,this._triggerCharacters=i}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(n,i,r,t){const a=n.uri;return this._worker(a).then(u=>u.doComplete(a.toString(),k(i))).then(u=>{if(!u)return;const s=n.getWordUntilPosition(i),f=new Ge(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn),l=u.items.map(d=>{const g={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:ut(d.command),range:f,kind:ot(d.kind)};return d.textEdit&&(at(d.textEdit)?g.range={insert:v(d.textEdit.insert),replace:v(d.textEdit.replace)}:g.range=v(d.textEdit.range),g.insertText=d.textEdit.newText),d.additionalTextEdits&&(g.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===J.Snippet&&(g.insertTextRules=x.CompletionItemInsertTextRule.InsertAsSnippet),g});return{isIncomplete:u.isIncomplete,suggestions:l}})}}function k(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Ye(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function v(e){if(e)return new Ge(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function at(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function ot(e){const n=x.CompletionItemKind;switch(e){case p.Text:return n.Text;case p.Method:return n.Method;case p.Function:return n.Function;case p.Constructor:return n.Constructor;case p.Field:return n.Field;case p.Variable:return n.Variable;case p.Class:return n.Class;case p.Interface:return n.Interface;case p.Module:return n.Module;case p.Property:return n.Property;case p.Unit:return n.Unit;case p.Value:return n.Value;case p.Enum:return n.Enum;case p.Keyword:return n.Keyword;case p.Snippet:return n.Snippet;case p.Color:return n.Color;case p.File:return n.File;case p.Reference:return n.Reference}return n.Property}function j(e){if(e)return{range:v(e.range),text:e.newText}}function ut(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}class bt{constructor(n){this._worker=n}provideHover(n,i,r){let t=n.uri;return this._worker(t).then(a=>a.doHover(t.toString(),k(i))).then(a=>{if(a)return{range:v(a.range),contents:ct(a.contents)}})}}function st(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Qe(e){return typeof e=="string"?{value:e}:st(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+`
4
4
  `+e.value+"\n```\n"}}function ct(e){if(e)return Array.isArray(e)?e.map(Qe):[Qe(e)]}class _t{constructor(n){this._worker=n}provideDocumentHighlights(n,i,r){const t=n.uri;return this._worker(t).then(a=>a.findDocumentHighlights(t.toString(),k(i))).then(a=>{if(a)return a.map(u=>({range:v(u.range),kind:dt(u.kind)}))})}}function dt(e){switch(e){case D.Read:return x.DocumentHighlightKind.Read;case D.Write:return x.DocumentHighlightKind.Write;case D.Text:return x.DocumentHighlightKind.Text}return x.DocumentHighlightKind.Text}class xt{constructor(n){this._worker=n}provideDefinition(n,i,r){const t=n.uri;return this._worker(t).then(a=>a.findDefinition(t.toString(),k(i))).then(a=>{if(a)return[Ze(a)]})}}function Ze(e){return{uri:Je.parse(e.uri),range:v(e.range)}}class wt{constructor(n){this._worker=n}provideReferences(n,i,r,t){const a=n.uri;return this._worker(a).then(u=>u.findReferences(a.toString(),k(i))).then(u=>{if(u)return u.map(Ze)})}}class kt{constructor(n){this._worker=n}provideRenameEdits(n,i,r,t){const a=n.uri;return this._worker(a).then(u=>u.doRename(a.toString(),k(i),r)).then(u=>ft(u))}}function ft(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=Je.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:v(t.range),text:t.newText}})}return{edits:n}}class At{constructor(n){this._worker=n}provideDocumentSymbols(n,i){const r=n.uri;return this._worker(r).then(t=>t.findDocumentSymbols(r.toString())).then(t=>{if(t)return t.map(a=>lt(a)?Te(a):{name:a.name,detail:"",containerName:a.containerName,kind:Ke(a.kind),range:v(a.location.range),selectionRange:v(a.location.range),tags:[]})})}}function lt(e){return"children"in e}function Te(e){return{name:e.name,detail:e.detail??"",kind:Ke(e.kind),range:v(e.range),selectionRange:v(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map(n=>Te(n))}}function Ke(e){let n=x.SymbolKind;switch(e){case m.File:return n.File;case m.Module:return n.Module;case m.Namespace:return n.Namespace;case m.Package:return n.Package;case m.Class:return n.Class;case m.Method:return n.Method;case m.Property:return n.Property;case m.Field:return n.Field;case m.Constructor:return n.Constructor;case m.Enum:return n.Enum;case m.Interface:return n.Interface;case m.Function:return n.Function;case m.Variable:return n.Variable;case m.Constant:return n.Constant;case m.String:return n.String;case m.Number:return n.Number;case m.Boolean:return n.Boolean;case m.Array:return n.Array}return n.Function}class Et{constructor(n){this._worker=n}provideLinks(n,i){const r=n.uri;return this._worker(r).then(t=>t.findDocumentLinks(r.toString())).then(t=>{if(t)return{links:t.map(a=>({range:v(a.range),url:a.target}))}})}}class Lt{constructor(n){this._worker=n}provideDocumentFormattingEdits(n,i,r){const t=n.uri;return this._worker(t).then(a=>a.format(t.toString(),null,et(i)).then(u=>{if(!(!u||u.length===0))return u.map(j)}))}}class It{constructor(n){this._worker=n,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(n,i,r,t){const a=n.uri;return this._worker(a).then(u=>u.format(a.toString(),Ye(i),et(r)).then(s=>{if(!(!s||s.length===0))return s.map(j)}))}}function et(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}class Rt{constructor(n){this._worker=n}provideDocumentColors(n,i){const r=n.uri;return this._worker(r).then(t=>t.findDocumentColors(r.toString())).then(t=>{if(t)return t.map(a=>({color:a.color,range:v(a.range)}))})}provideColorPresentations(n,i,r){const t=n.uri;return this._worker(t).then(a=>a.getColorPresentations(t.toString(),i.color,Ye(i.range))).then(a=>{if(a)return a.map(u=>{let s={label:u.label};return u.textEdit&&(s.textEdit=j(u.textEdit)),u.additionalTextEdits&&(s.additionalTextEdits=u.additionalTextEdits.map(j)),s})})}}class Mt{constructor(n){this._worker=n}provideFoldingRanges(n,i,r){const t=n.uri;return this._worker(t).then(a=>a.getFoldingRanges(t.toString(),i)).then(a=>{if(a)return a.map(u=>{const s={start:u.startLine+1,end:u.endLine+1};return typeof u.kind<"u"&&(s.kind=gt(u.kind)),s})})}}function gt(e){switch(e){case M.Comment:return x.FoldingRangeKind.Comment;case M.Imports:return x.FoldingRangeKind.Imports;case M.Region:return x.FoldingRangeKind.Region}}class Dt{constructor(n){this._worker=n}provideSelectionRanges(n,i,r){const t=n.uri;return this._worker(t).then(a=>a.getSelectionRanges(t.toString(),i.map(k))).then(a=>{if(a)return a.map(u=>{const s=[];for(;u;)s.push({range:v(u.range)}),u=u.parent;return s})})}}export{vt as C,_t as D,Mt as F,bt as H,wt as R,Dt as S,xt as a,At as b,kt as c,Rt as d,mt as e,Lt as f,It as g,Et as h,k as i,Ye as j,j as k,v as t};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./tsMode-CKB5oOUU.js","./WorkspaceMonacoEditor-C2ctzITz.js","./index-ByIQyiUl.js","./index-D9jTe16Q.css","./WorkspaceMonacoEditor-BwKcXIZw.css","./toggleHighContrast-DrdQN3Rl.js","./toggleHighContrast-B7NOMXDY.css","./workers-CqYddzCd.js"])))=>i.map(i=>d[i]);
2
+ import{_}from"./index-ByIQyiUl.js";import{E as a,l as h}from"./WorkspaceMonacoEditor-C2ctzITz.js";import"./toggleHighContrast-DrdQN3Rl.js";const c="5.9.3";var g=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext",e))(g||{}),b=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(b||{}),f=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(f||{}),m=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(m||{}),d=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e))(d||{});class u{constructor(t,s,i,n,r){this._onDidChange=new a,this._onDidExtraLibsChange=new a,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(t),this.setDiagnosticsOptions(s),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this.setModeConfiguration(r),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(t,s){let i;if(typeof s>"u"?i=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:i=s,this._extraLibs[i]&&this._extraLibs[i].content===t)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:t,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let r=this._extraLibs[i];r&&r.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(t){for(const s in this._extraLibs)this._removedExtraLibs[s]=this._extraLibs[s].version;if(this._extraLibs=Object.create(null),t&&t.length>0)for(const s of t){const i=s.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=s.content;let r=1;this._removedExtraLibs[i]&&(r=this._removedExtraLibs[i]+1),this._extraLibs[i]={content:n,version:r}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(t){this._compilerOptions=t||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(t){this._diagnosticsOptions=t||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(t){this._workerOptions=t||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(t){this._inlayHintsOptions=t||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(t){}setEagerModelSync(t){this._eagerModelSync=t}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(t){this._modeConfiguration=t||Object.create(null),this._onDidChange.fire(void 0)}}const C=c,l={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},E=new u({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},l),L=new u({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},l),O=()=>o().then(e=>e.getTypeScriptWorker()),D=()=>o().then(e=>e.getJavaScriptWorker());function o(){return _(()=>import("./tsMode-CKB5oOUU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)}h.onLanguage("typescript",()=>o().then(e=>e.setupTypeScript(E)));h.onLanguage("javascript",()=>o().then(e=>e.setupJavaScript(L)));export{b as JsxEmit,g as ModuleKind,d as ModuleResolutionKind,f as NewLineKind,m as ScriptTarget,D as getJavaScriptWorker,O as getTypeScriptWorker,L as javascriptDefaults,E as typescriptDefaults,C as typescriptVersion};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./jsonMode-BAUNCNAX.js","./workers-CqYddzCd.js","./WorkspaceMonacoEditor-C2ctzITz.js","./index-ByIQyiUl.js","./index-D9jTe16Q.css","./WorkspaceMonacoEditor-BwKcXIZw.css","./toggleHighContrast-DrdQN3Rl.js","./toggleHighContrast-B7NOMXDY.css","./lspLanguageFeatures-fucFYI1A.js"])))=>i.map(i=>d[i]);
2
+ import{_ as r}from"./index-ByIQyiUl.js";import{E as a,l as n}from"./WorkspaceMonacoEditor-C2ctzITz.js";import"./toggleHighContrast-DrdQN3Rl.js";class g{constructor(t,s,i){this._onDidChange=new a,this._languageId=t,this.setDiagnosticsOptions(s),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(t){this._diagnosticsOptions=t||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(t){this._modeConfiguration=t||Object.create(null),this._onDidChange.fire(this)}}const u={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},c={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},m=new g("json",u,c),_=()=>o().then(e=>e.getWorker());function o(){return r(()=>import("./jsonMode-BAUNCNAX.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)}n.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});n.onLanguage("json",()=>{o().then(e=>e.setupMode(m))});export{_ as getWorker,m as jsonDefaults};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./htmlMode-Ct1P-_lf.js","./workers-CqYddzCd.js","./WorkspaceMonacoEditor-C2ctzITz.js","./index-ByIQyiUl.js","./index-D9jTe16Q.css","./WorkspaceMonacoEditor-BwKcXIZw.css","./toggleHighContrast-DrdQN3Rl.js","./toggleHighContrast-B7NOMXDY.css","./lspLanguageFeatures-fucFYI1A.js"])))=>i.map(i=>d[i]);
2
+ import{_ as c}from"./index-ByIQyiUl.js";import{l as m,E as f}from"./WorkspaceMonacoEditor-C2ctzITz.js";import"./toggleHighContrast-DrdQN3Rl.js";class h{constructor(t,r,a){this._onDidChange=new f,this._languageId=t,this.setOptions(r),this.setModeConfiguration(a)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(t){this._options=t||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(t){this._modeConfiguration=t||Object.create(null),this._onDidChange.fire(this)}}const p={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},o={format:p,suggest:{},data:{useDefaultDataProvider:!0}};function s(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===n,documentFormattingEdits:e===n,documentRangeFormattingEdits:e===n}}const n="html",d="handlebars",g="razor",b=u(n,o,s(n)),S=b.defaults,L=u(d,o,s(d)),E=L.defaults,_=u(g,o,s(g)),I=_.defaults;function v(){return c(()=>import("./htmlMode-Ct1P-_lf.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)}function u(e,t=o,r=s(e)){const a=new h(e,t,r);let i;const l=m.onLanguage(e,async()=>{i=(await v()).setupMode(a)});return{defaults:a,dispose(){l.dispose(),i?.dispose(),i=void 0}}}export{E as handlebarDefaults,L as handlebarLanguageService,S as htmlDefaults,b as htmlLanguageService,I as razorDefaults,_ as razorLanguageService,u as registerHTMLLanguageService};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./cssMode-CFifcEfw.js","./workers-CqYddzCd.js","./WorkspaceMonacoEditor-C2ctzITz.js","./index-ByIQyiUl.js","./index-D9jTe16Q.css","./WorkspaceMonacoEditor-BwKcXIZw.css","./toggleHighContrast-DrdQN3Rl.js","./toggleHighContrast-B7NOMXDY.css","./lspLanguageFeatures-fucFYI1A.js"])))=>i.map(i=>d[i]);
2
+ import{_ as g}from"./index-ByIQyiUl.js";import{E as l,l as n}from"./WorkspaceMonacoEditor-C2ctzITz.js";import"./toggleHighContrast-DrdQN3Rl.js";class o{constructor(e,a,u){this._onDidChange=new l,this._languageId=e,this.setOptions(a),this.setModeConfiguration(u)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}const r={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},i={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},c=new o("css",r,i),d=new o("scss",r,i),p=new o("less",r,i);function s(){return g(()=>import("./cssMode-CFifcEfw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)}n.onLanguage("less",()=>{s().then(t=>t.setupMode(p))});n.onLanguage("scss",()=>{s().then(t=>t.setupMode(d))});n.onLanguage("css",()=>{s().then(t=>t.setupMode(c))});export{c as cssDefaults,p as lessDefaults,d as scssDefaults};
@@ -0,0 +1 @@
1
+ import{c as e}from"./index-ByIQyiUl.js";const o=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],i=e("folder-git-2",o);const c=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],r=e("monitor",c);export{i as F,r as M};
@@ -1 +1 @@
1
- import{d as a}from"./index-KoQSSt_f.js";const o=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],e=a("play",o);export{e as P};
1
+ import{c as a}from"./index-ByIQyiUl.js";const o=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],e=a("play",o);export{e as P};
@@ -1 +1 @@
1
- import{l as e}from"./WorkspaceMonacoEditor-DPGcG8fy.js";import"./toggleHighContrast-CD42jH4g.js";import"./index-KoQSSt_f.js";const i={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:e.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},r={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/f'{1,3}/,"string.escape","@fStringBody"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/f"{1,3}/,"string.escape","@fDblStringBody"],[/"/,"string.escape","@dblStringBody"]],fStringBody:[[/[^\\'\{\}]+$/,"string","@popall"],[/[^\\'\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],fDblStringBody:[[/[^\\"\{\}]+$/,"string","@popall"],[/[^\\"\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],fStringDetail:[[/[:][^}]+/,"string"],[/[!][ars]/,"string"],[/=/,"string"],[/\}/,"identifier","@pop"]]}};export{i as conf,r as language};
1
+ import{l as e}from"./WorkspaceMonacoEditor-C2ctzITz.js";import"./toggleHighContrast-DrdQN3Rl.js";import"./index-ByIQyiUl.js";const i={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:e.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},r={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/f'{1,3}/,"string.escape","@fStringBody"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/f"{1,3}/,"string.escape","@fDblStringBody"],[/"/,"string.escape","@dblStringBody"]],fStringBody:[[/[^\\'\{\}]+$/,"string","@popall"],[/[^\\'\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],fDblStringBody:[[/[^\\"\{\}]+$/,"string","@popall"],[/[^\\"\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],fStringDetail:[[/[:][^}]+/,"string"],[/[!][ars]/,"string"],[/=/,"string"],[/\}/,"identifier","@pop"]]}};export{i as conf,r as language};
@@ -1 +1 @@
1
- import{d as e}from"./index-KoQSSt_f.js";const t=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],c=e("refresh-cw",t);export{c as R};
1
+ import{c as e}from"./index-ByIQyiUl.js";const c=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],a=e("refresh-cw",c);export{a as R};
@@ -0,0 +1 @@
1
+ import{c}from"./index-ByIQyiUl.js";const e=[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]],p=c("reply",e);export{p as R};
@@ -1 +1 @@
1
- import{d as a}from"./index-KoQSSt_f.js";const e=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],o=a("save",e);export{o as S};
1
+ import{c as a}from"./index-ByIQyiUl.js";const e=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],o=a("save",e);export{o as S};
@@ -0,0 +1 @@
1
+ import{c as e}from"./index-ByIQyiUl.js";const a=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],t=e("shield",a);const c=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],i=e("square",c);export{i as S,t as a};
@@ -0,0 +1 @@
1
+ import{c as a}from"./index-ByIQyiUl.js";const e=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],c=a("folder",e);const o=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],n=a("square-pen",o);export{c as F,n as S};
@@ -1,4 +1,4 @@
1
- import{a as x,A as lt,C as E,I as fe,D as fa,b as Pe,g as Vw,M as V,c as U,d as bi,e as S,r as oe,f as pi,h as p,i as KL,j as we,R as J,S as G,k as ut,m as mi,n as ce,o as Q,p as D,q as M,K as He,s as A,t as T,u as qe,v as y,w as Y,O as Qi,x as Ve,P as H,y as Jg,z as Fd,B as Oi,F as Bw,G as xn,H as ag,J as an,L as Va,N as Gl,Q as et,U as ge,T as Uw,$ as F,V as re,W as se,X as ye,Y as X,Z as ze,_ as pa,a0 as k,a1 as Yf,a2 as zw,a3 as GL,a4 as Be,a5 as ZL,a6 as Wd,a7 as It,a8 as z,a9 as Is,aa as $,ab as Ps,ac as XL,ad as nt,ae as Qf,af as YL,ag as $w,ah as Re,ai as lg,aj as QL,ak as cv,al as hv,am as ie,an as JL,ao as Ke,ap as uv,aq as eD,ar as Ct,as as dg,at as Fn,au as Ko,av as ma,aw as Le,ax as tD,ay as pt,az as cg,aA as ht,aB as Go,aC as iD,aD as Wn,aE as ef,aF as Jf,aG as hg,aH as Qe,aI as gv,aJ as _a,aK as nD,aL as mt,aM as _i,aN as Ge,aO as ki,aP as sD,aQ as oD,aR as fv,aS as Hn,aT as jw,aU as Ut,aV as Gc,aW as rD,aX as aD,aY as Kb,aZ as $e,a_ as Ln,a$ as $t,b0 as ee,b1 as Cn,b2 as lD,b3 as nn,b4 as Ht,b5 as pv,b6 as Zl,b7 as va,b8 as qw,b9 as mv,ba as je,bb as q,bc as Hd,bd as Zo,be as tf,bf as Me,bg as ep,bh as Kw,bi as dD,bj as _v,bk as be,bl as vv,bm as ba,bn as ug,bo as cD,bp as Gw,bq as Xl,br as Xo,bs as Yl,bt as gg,bu as bv,bv as Cv,bw as ae,bx as Ci,by as hr,bz as hD,bA as Oc,bB as Sv,bC as uD,bD as Zc,bE as wv,bF as Ca,bG as Si,bH as Vn,bI as te,bJ as Sa,bK as Zw,bL as fg,bM as wa,bN as P,bO as K,bP as Ql,bQ as ve,bR as Jl,bS as Xc,bT as Ba,bU as tp,bV as Xw,bW as gD,bX as fD,bY as pD,bZ as Vd,b_ as Vt,b$ as xs,c0 as At,c1 as Ms,c2 as mD,c3 as _e,c4 as Fr,c5 as Gb,c6 as Bd,c7 as Yw,c8 as W,c9 as Wr,ca as _D,cb as ai,cc as ur,cd as Ji,ce as wi,cf as vD,cg as Qw,ch as Zb,ci as nf,cj as bD,ck as rt,cl as Jw,cm as CD,cn as ey,co as Ud,cp as SD,cq as Yc,cr as yv,cs as yi,ct as wD,cu as yD,cv as Ls,cw as Iv,cx as ID,cy as Xb,cz as Yb,cA as xD,cB as Hr,cC as ty,cD as LD,cE as DD,cF as Rn,cG as ED,cH as RD,cI as sn,cJ as xv,cK as Lv,cL as xt,cM as ks,cN as ed,cO as iy,cP as Zt,cQ as Ua,cR as za,cS as ND,cT as TD,cU as PD,cV as ny,cW as Ac,cX as Qb,cY as MD,cZ as Lt,c_ as Dv,c$ as sy,d0 as Ze,d1 as Ev,d2 as Rv,d3 as kD,d4 as OD,d5 as Jb,d6 as AD,d7 as zd,d8 as ip,d9 as Yo,da as We,db as Ds,dc as FD,dd as en,de as hi,df as Ft,dg as eC,dh as $a,di as Nn,dj as on,dk as WD,dl as Jt,dm as ya,dn as pg,dp as oy,dq as HD,dr as VD,ds as Nv,dt as BD,du as td,dv as UD,dw as zD,dx as Qc,dy as ry,dz as tC,dA as $D,dB as jD,dC as qD,dD as Tv,dE as ay,dF as ly,dG as dy,dH as cy,dI as KD,dJ as GD,dK as hy,dL as uy,dM as ZD,dN as mg,dO as XD,dP as YD,dQ as Te,dR as Pv,dS as Mv,dT as QD,dU as Zs,dV as iC,dW as JD,dX as e1,dY as t1,dZ as i1,d_ as n1,d$ as s1,e0 as o1,e1 as nC,e2 as gy,e3 as ft,e4 as sc,e5 as r1,e6 as kv,e7 as a1,e8 as l1,e9 as d1,ea as c1,eb as h1,ec as Ue,ed as vt,ee as u1,ef as Tn,eg as g1,eh as sC,ei as St,ej as _g,ek as ja,el as np,em as f1,en as p1,eo as oC,ep as sp,eq as m1,er as _1,es as v1,et as b1,eu as vg,ev as bg,ew as fy,ex as py,ey as C1,ez as rC,eA as S1,eB as qa,eC as w1,eD as gl,eE as Ov,eF as aC,eG as id,eH as Jc,eI as y1,eJ as I1,eK as my,eL as x1,eM as L1,eN as xl,eO as st,eP as Ll,eQ as Ia,eR as oc,eS as _y,eT as sf,eU as vy,eV as by,eW as D1,eX as E1,eY as Fc,eZ as Cy,e_ as R1,e$ as N1,f0 as T1,f1 as P1,f2 as Yr,f3 as of,f4 as M1,f5 as k1,f6 as O1,f7 as lC,f8 as dC,f9 as cC,fa as Fe,fb as A1,fc as F1,fd as Xi,fe as tn,ff as W1,fg as Qn,fh as H1,fi as Sy,fj as bt,fk as nd,fl as Dn,fm as V1,fn as B1,fo as U1,fp as z1,fq as op,fr as wy,fs as Bt,ft as Ye,fu as xa,fv as yy,fw as sd,fx as $1,fy as Vr,fz as Av,fA as j1,fB as q1,fC as K1,fD as G1,fE as Z1,fF as tl,fG as hC,fH as X1,fI as Y1,fJ as Q1,fK as J1,fL as En,fM as Iy,fN as eE,fO as od,fP as uC,fQ as tE,fR as iE,fS as nE,fT as xy,fU as sE,fV as oE,fW as Ly,fX as eh,fY as rE,fZ as gC,f_ as vn,f$ as fC,g0 as Qt,g1 as Ie,g2 as pC,g3 as Fv,g4 as aE,g5 as lE,g6 as dE,g7 as Cg,g8 as cE,g9 as rp,ga as Dy,gb as Ey,gc as hE,gd as uE,ge as gE,gf as fE,gg as pE,gh as mE,gi as _E,gj as vE,gk as Ry,gl as bE,gm as th,gn as Os,go as Ny,gp as CE,gq as Ty,gr as SE,gs as Py,gt as My,gu as wE,gv as mC,gw as ky,gx as _C,gy as yE,gz as rf,gA as vC,gB as IE,gC as xE,gD as LE,gE as Ka,gF as ap,gG as Ga,gH as Oy,gI as DE,gJ as Ay,gK as Fy,gL as EE,gM as Wy,gN as Hy,gO as Vy,gP as RE,gQ as gi,gR as NE,gS as eo,gT as Br,gU as rc,gV as By,gW as Uy,gX as TE,gY as PE,gZ as Sn,g_ as ME,g$ as bC,h0 as kE,h1 as zy,h2 as La,h3 as OE,h4 as AE,h5 as $y,h6 as FE,h7 as jy,h8 as CC,h9 as Dl,ha as WE,hb as Sg,hc as HE,hd as wg,he as yg,hf as Ig,hg as xg,hh as qy,hi as VE,hj as BE,hk as UE,hl as zE,hm as SC,hn as wC,ho as yC,hp as lp,hq as $E,hr as jE,hs as qE,ht as IC,hu as KE,hv as GE,hw as $d,hx as ZE,hy as XE,hz as Ky,hA as il,hB as YE,hC as QE,hD as Wc,hE as JE,hF as eR,hG as tR,hH as Wv,hI as Hv,hJ as iR,hK as nR,hL as sR,hM as oR,hN as Gy,hO as Lg,hP as rR,hQ as ih,hR as rs,hS as aR,hT as lR,hU as dR,hV as cR,hW as hR,hX as uR,hY as xC,hZ as Vv,h_ as dp,h$ as gR,i0 as fR,i1 as pR,i2 as mR,i3 as Bv,i4 as Zy,i5 as LC,i6 as DC,i7 as _R,i8 as vR,i9 as EC,ia as af,ib as bR,ic as CR,id as SR,ie as lf,ig as Xy,ih as Yy,ii as Qy,ij as Jy,ik as Pn,il as eI,im as Uv,io as RC,ip as wR,iq as tI,ir as yR,is as IR,it as Dg,iu as gr,iv as Eg,iw as jd,ix as xR,iy as Rg,iz as LR,iA as DR,iB as ER,iC as RR,iD as iI,iE as nl,iF as NR,iG as TR,iH as PR,iI as MR,iJ as qd,iK as kR,iL as nI,iM as sI,iN as oI,iO as cp,iP as OR,iQ as AR,iR as FR,iS as WR,iT as hp,iU as HR,iV as VR,iW as BR,iX as UR,iY as zR,iZ as $R,i_ as jR,i$ as qR,j0 as rI,j1 as KR,j2 as GR,j3 as ZR,j4 as NC,j5 as XR,j6 as YR}from"./WorkspaceMonacoEditor-DPGcG8fy.js";class QR extends lt{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:x(85,"Toggle Collapse Unchanged Regions"),icon:U.map,toggled:E.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:E.has("isInDiffEditor"),menu:{when:E.has("isInDiffEditor"),id:V.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(fe),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class aI extends lt{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:x(86,"Toggle Show Moved Code Blocks"),precondition:E.has("isInDiffEditor")})}run(e,...t){const i=e.get(fe),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class lI extends lt{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:x(87,"Toggle Use Inline View When Space Is Limited"),precondition:E.has("isInDiffEditor")})}run(e,...t){const i=e.get(fe),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const Kd=x(88,"Diff Editor");class JR extends bi{constructor(){super({id:"diffEditor.switchSide",title:x(89,"Switch Side"),icon:U.arrowSwap,precondition:E.has("isInDiffEditor"),f1:!0,category:Kd})}runEditorCommand(e,t,i){const n=fr(e);if(n instanceof fa){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class e0 extends bi{constructor(){super({id:"diffEditor.exitCompareMove",title:x(90,"Exit Compare Move"),icon:U.close,precondition:S.comparingMovedCode,f1:!1,category:Kd,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=fr(e);n instanceof fa&&n.exitCompareMove()}}class t0 extends bi{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:x(91,"Collapse All Unchanged Regions"),icon:U.fold,precondition:E.has("isInDiffEditor"),f1:!0,category:Kd})}runEditorCommand(e,t,...i){const n=fr(e);n instanceof fa&&n.collapseAllUnchangedRegions()}}class i0 extends bi{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:x(92,"Show All Unchanged Regions"),icon:U.unfold,precondition:E.has("isInDiffEditor"),f1:!0,category:Kd})}runEditorCommand(e,t,...i){const n=fr(e);n instanceof fa&&n.showAllUnchangedRegions()}}class up extends lt{constructor(){super({id:"diffEditor.revert",title:x(93,"Revert"),f1:!0,category:Kd,precondition:E.has("isInDiffEditor")})}run(e,t){return t?this.runViaToolbarContext(e,t):this.runViaCursorOrSelection(e)}runViaCursorOrSelection(e){const t=fr(e);t instanceof fa&&t.revertFocusedRangeMappings()}runViaToolbarContext(e,t){const i=n0(e,t.originalUri,t.modifiedUri);i instanceof fa&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const dI=x(94,"Accessible Diff Viewer"),mu=class mu extends lt{constructor(){super({id:mu.id,title:x(95,"Go to Next Difference"),category:dI,precondition:E.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){fr(e)?.accessibleDiffViewerNext()}};mu.id="editor.action.accessibleDiffViewer.next";let rd=mu;const _u=class _u extends lt{constructor(){super({id:_u.id,title:x(96,"Go to Previous Difference"),category:dI,precondition:E.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){fr(e)?.accessibleDiffViewerPrev()}};_u.id="editor.action.accessibleDiffViewer.prev";let nh=_u;function n0(a,e,t){return a.get(Pe).listDiffEditors().find(s=>{const o=s.getModifiedEditor(),r=s.getOriginalEditor();return o&&o.getModel()?.uri.toString()===t.toString()&&r&&r.getModel()?.uri.toString()===e.toString()})||null}function fr(a){const t=a.get(Pe).listDiffEditors(),i=Vw();if(i){for(const n of t)if(n.getContainerDomNode().contains(i))return n}return null}oe(QR);oe(aI);oe(lI);pi.appendMenuItem(V.EditorTitle,{command:{id:new lI().desc.id,title:p(119,"Use Inline View When Space Is Limited"),toggled:E.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:E.has("isInDiffEditor")},order:11,group:"1_diff",when:E.and(S.diffEditorRenderSideBySideInlineBreakpointReached,E.has("isInDiffEditor"))});pi.appendMenuItem(V.EditorTitle,{command:{id:new aI().desc.id,title:p(120,"Show Moved Code Blocks"),icon:U.move,toggled:KL.create("config.diffEditor.experimental.showMoves",!0),precondition:E.has("isInDiffEditor")},order:10,group:"1_diff",when:E.has("isInDiffEditor")});oe(up);for(const a of[{icon:U.arrowRight,key:S.diffEditorInlineMode.toNegated()},{icon:U.discard,key:S.diffEditorInlineMode}])pi.appendMenuItem(V.DiffEditorHunkToolbar,{command:{id:new up().desc.id,title:p(121,"Revert Block"),icon:a.icon},when:E.and(S.diffEditorModifiedWritable,a.key),order:5,group:"primary"}),pi.appendMenuItem(V.DiffEditorSelectionToolbar,{command:{id:new up().desc.id,title:p(122,"Revert Selection"),icon:a.icon},when:E.and(S.diffEditorModifiedWritable,a.key),order:5,group:"primary"});oe(JR);oe(e0);oe(t0);oe(i0);pi.appendMenuItem(V.EditorTitle,{command:{id:rd.id,title:p(123,"Open Accessible Diff Viewer"),precondition:E.has("isInDiffEditor")},order:10,group:"2_diff",when:E.and(S.accessibleDiffViewerVisible.negate(),E.has("isInDiffEditor"))});we.registerCommandAlias("editor.action.diffReview.next",rd.id);oe(rd);we.registerCommandAlias("editor.action.diffReview.prev",nh.id);oe(nh);var s0=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},o0=function(a,e){return function(t,i){e(t,i,a)}},gp;const Ng=new J("selectionAnchorSet",!1);var ro;let Es=(ro=class{static get(e){return e.getContribution(gp.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Ng.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(G.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new ut().appendText(p(798,"Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),mi(p(799,"Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(G.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},gp=ro,ro.ID="editor.contrib.selectionAnchorController",ro);Es=gp=s0([o0(1,ce)],Es);class r0 extends M{constructor(){super({id:"editor.action.setSelectionAnchor",label:x(800,"Set Selection Anchor"),precondition:void 0,kbOpts:{kbExpr:S.editorTextFocus,primary:He(2089,2080),weight:100}})}async run(e,t){Es.get(t)?.setSelectionAnchor()}}class a0 extends M{constructor(){super({id:"editor.action.goToSelectionAnchor",label:x(801,"Go to Selection Anchor"),precondition:Ng})}async run(e,t){Es.get(t)?.goToSelectionAnchor()}}class l0 extends M{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:x(802,"Select from Anchor to Cursor"),precondition:Ng,kbOpts:{kbExpr:S.editorTextFocus,primary:He(2089,2089),weight:100}})}async run(e,t){Es.get(t)?.selectFromAnchorToCursor()}}class d0 extends M{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:x(803,"Cancel Selection Anchor"),precondition:Ng,kbOpts:{kbExpr:S.editorTextFocus,primary:9,weight:100}})}async run(e,t){Es.get(t)?.cancelSelectionAnchor()}}Q(Es.ID,Es,4);D(r0);D(a0);D(l0);D(d0);const c0=A("editorOverviewRuler.bracketMatchForeground","#A0A0A0",p(804,"Overview ruler marker color for matching brackets."));class h0 extends M{constructor(){super({id:"editor.action.jumpToBracket",label:x(806,"Go to Bracket"),precondition:void 0,kbOpts:{kbExpr:S.editorTextFocus,primary:3165,weight:100}})}run(e,t){Qo.get(t)?.jumpToBracket()}}class u0 extends M{constructor(){super({id:"editor.action.selectToBracket",label:x(807,"Select to Bracket"),precondition:void 0,metadata:{description:x(808,"Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){let n=!0;i&&i.selectBrackets===!1&&(n=!1),Qo.get(t)?.selectToBracket(n)}}class g0 extends M{constructor(){super({id:"editor.action.removeBrackets",label:x(809,"Remove Brackets"),precondition:void 0,kbOpts:{kbExpr:S.editorTextFocus,primary:2561,weight:100},canTriggerInlineEdits:!0})}run(e,t){Qo.get(t)?.removeBrackets(this.id)}}class f0{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}const Kn=class Kn extends T{static get(e){return e.getContribution(Kn.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new qe(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(80),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(80)&&(this._matchBrackets=this._editor.getOption(80),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let o=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?o=s[1].getStartPosition():s[1].containsPosition(n)&&(o=s[0].getStartPosition());else{const r=e.bracketPairs.findEnclosingBrackets(n);if(r)o=r[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(o=l.range.getStartPosition())}}return o?new G(o.lineNumber,o.column,o.lineNumber,o.column):new G(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let o=t.bracketPairs.matchBracket(s);if(!o&&(o=t.bracketPairs.findEnclosingBrackets(s),!o)){const d=t.bracketPairs.findNextBracket(s);d&&d.range&&(o=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let r=null,l=null;if(o){o.sort(y.compareRangesUsingStarts);const[d,c]=o;if(r=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(s)){const h=r;r=l,l=h}}r&&l&&i.push(new G(r.lineNumber,r.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let o=0;for(let h=0,u=e.length;h<u;h++){const g=e[h];g.isEmpty()&&(s[o++]=g.getStartPosition())}s.length>1&&s.sort(H.compare);const r=[];let l=0,d=0;const c=n.length;for(let h=0,u=s.length;h<u;h++){const g=s[h];for(;d<c&&n[d].position.isBefore(g);)d++;if(d<c&&n[d].position.equals(g))r[l++]=n[d];else{let f=t.bracketPairs.matchBracket(g,20),m=Kn._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!f&&this._matchBrackets==="always"&&(f=t.bracketPairs.findEnclosingBrackets(g,20),m=Kn._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),r[l++]=new f0(g,f,m)}}this._lastBracketsData=r,this._lastVersionId=i}};Kn.ID="editor.contrib.bracketMatchingController",Kn._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Y.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Ve(c0),position:Qi.Center}}),Kn._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Y.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});let Qo=Kn;Q(Qo.ID,Qo,1);D(u0);D(h0);D(g0);pi.appendMenuItem(V.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:p(805,"Go to &&Bracket")},order:2});class p0{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const o=new y(i,n-1,i,n),r=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new y(i,s,i,s),r)}else{const o=new y(i,s,i,s+1),r=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new y(i,n,i,n),r)}}computeCursorState(e,t){return this._isMovingLeft?new G(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new G(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class cI extends M{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new p0(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class m0 extends cI{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:x(810,"Move Selected Text Left"),precondition:S.writable})}}class _0 extends cI{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:x(811,"Move Selected Text Right"),precondition:S.writable})}}D(m0);D(_0);class v0 extends M{constructor(){super({id:"editor.action.transposeLetters",label:x(812,"Transpose Letters"),precondition:S.writable,kbOpts:{kbExpr:S.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],s=t.getSelections();for(const o of s){if(!o.isEmpty())continue;const r=o.startLineNumber,l=o.startColumn,d=i.getLineMaxColumn(r);if(r===1&&(l===1||l===2&&d===2))continue;const c=l===d?o.getPosition():Jg.rightPosition(i,o.getPosition().lineNumber,o.getPosition().column),h=Jg.leftPosition(i,c),u=Jg.leftPosition(i,h),g=i.getValueInRange(y.fromPositions(u,h)),f=i.getValueInRange(y.fromPositions(h,c)),m=y.fromPositions(u,c);n.push(new Fd(m,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}D(v0);const b0=Oi("productService");function zv(a,e){return{id:e,asString:async()=>a,asFile:()=>{},value:typeof a=="string"?a:void 0}}function C0(a,e,t,i){const n={id:ag(),name:a,uri:e,data:t};return{id:i,asString:async()=>"",asFile:()=>n,value:void 0}}class hI{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return xn.some(this,([i,n])=>n.asFile())&&t.push("files"),uI(sh(e),t)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return sh(e)}}function sh(a){return a.toLowerCase()}function TC(a,e){return uI(sh(a),e.map(sh))}function uI(a,e){if(a==="*/*")return e.length>0;if(e.includes(a))return!0;const t=a.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,s]=t;return s==="*"?e.some(o=>o.startsWith(n+"/")):!1}const Tg=Object.freeze({create:a=>Bw(a.map(e=>e.toString())).join(`\r
1
+ import{a as x,A as lt,C as E,I as fe,D as fa,b as Pe,g as Vw,M as V,c as U,d as bi,e as S,r as oe,f as pi,h as p,i as KL,j as we,R as J,S as G,k as ut,m as mi,n as ce,o as Q,p as D,q as M,K as He,s as A,t as T,u as qe,v as y,w as Y,O as Qi,x as Ve,P as H,y as Jg,z as Fd,B as Oi,F as Bw,G as xn,H as ag,J as an,L as Va,N as Gl,Q as et,U as ge,T as Uw,$ as F,V as re,W as se,X as ye,Y as X,Z as ze,_ as pa,a0 as k,a1 as Yf,a2 as zw,a3 as GL,a4 as Be,a5 as ZL,a6 as Wd,a7 as It,a8 as z,a9 as Is,aa as $,ab as Ps,ac as XL,ad as nt,ae as Qf,af as YL,ag as $w,ah as Re,ai as lg,aj as QL,ak as cv,al as hv,am as ie,an as JL,ao as Ke,ap as uv,aq as eD,ar as Ct,as as dg,at as Fn,au as Ko,av as ma,aw as Le,ax as tD,ay as pt,az as cg,aA as ht,aB as Go,aC as iD,aD as Wn,aE as ef,aF as Jf,aG as hg,aH as Qe,aI as gv,aJ as _a,aK as nD,aL as mt,aM as _i,aN as Ge,aO as ki,aP as sD,aQ as oD,aR as fv,aS as Hn,aT as jw,aU as Ut,aV as Gc,aW as rD,aX as aD,aY as Kb,aZ as $e,a_ as Ln,a$ as $t,b0 as ee,b1 as Cn,b2 as lD,b3 as nn,b4 as Ht,b5 as pv,b6 as Zl,b7 as va,b8 as qw,b9 as mv,ba as je,bb as q,bc as Hd,bd as Zo,be as tf,bf as Me,bg as ep,bh as Kw,bi as dD,bj as _v,bk as be,bl as vv,bm as ba,bn as ug,bo as cD,bp as Gw,bq as Xl,br as Xo,bs as Yl,bt as gg,bu as bv,bv as Cv,bw as ae,bx as Ci,by as hr,bz as hD,bA as Oc,bB as Sv,bC as uD,bD as Zc,bE as wv,bF as Ca,bG as Si,bH as Vn,bI as te,bJ as Sa,bK as Zw,bL as fg,bM as wa,bN as P,bO as K,bP as Ql,bQ as ve,bR as Jl,bS as Xc,bT as Ba,bU as tp,bV as Xw,bW as gD,bX as fD,bY as pD,bZ as Vd,b_ as Vt,b$ as xs,c0 as At,c1 as Ms,c2 as mD,c3 as _e,c4 as Fr,c5 as Gb,c6 as Bd,c7 as Yw,c8 as W,c9 as Wr,ca as _D,cb as ai,cc as ur,cd as Ji,ce as wi,cf as vD,cg as Qw,ch as Zb,ci as nf,cj as bD,ck as rt,cl as Jw,cm as CD,cn as ey,co as Ud,cp as SD,cq as Yc,cr as yv,cs as yi,ct as wD,cu as yD,cv as Ls,cw as Iv,cx as ID,cy as Xb,cz as Yb,cA as xD,cB as Hr,cC as ty,cD as LD,cE as DD,cF as Rn,cG as ED,cH as RD,cI as sn,cJ as xv,cK as Lv,cL as xt,cM as ks,cN as ed,cO as iy,cP as Zt,cQ as Ua,cR as za,cS as ND,cT as TD,cU as PD,cV as ny,cW as Ac,cX as Qb,cY as MD,cZ as Lt,c_ as Dv,c$ as sy,d0 as Ze,d1 as Ev,d2 as Rv,d3 as kD,d4 as OD,d5 as Jb,d6 as AD,d7 as zd,d8 as ip,d9 as Yo,da as We,db as Ds,dc as FD,dd as en,de as hi,df as Ft,dg as eC,dh as $a,di as Nn,dj as on,dk as WD,dl as Jt,dm as ya,dn as pg,dp as oy,dq as HD,dr as VD,ds as Nv,dt as BD,du as td,dv as UD,dw as zD,dx as Qc,dy as ry,dz as tC,dA as $D,dB as jD,dC as qD,dD as Tv,dE as ay,dF as ly,dG as dy,dH as cy,dI as KD,dJ as GD,dK as hy,dL as uy,dM as ZD,dN as mg,dO as XD,dP as YD,dQ as Te,dR as Pv,dS as Mv,dT as QD,dU as Zs,dV as iC,dW as JD,dX as e1,dY as t1,dZ as i1,d_ as n1,d$ as s1,e0 as o1,e1 as nC,e2 as gy,e3 as ft,e4 as sc,e5 as r1,e6 as kv,e7 as a1,e8 as l1,e9 as d1,ea as c1,eb as h1,ec as Ue,ed as vt,ee as u1,ef as Tn,eg as g1,eh as sC,ei as St,ej as _g,ek as ja,el as np,em as f1,en as p1,eo as oC,ep as sp,eq as m1,er as _1,es as v1,et as b1,eu as vg,ev as bg,ew as fy,ex as py,ey as C1,ez as rC,eA as S1,eB as qa,eC as w1,eD as gl,eE as Ov,eF as aC,eG as id,eH as Jc,eI as y1,eJ as I1,eK as my,eL as x1,eM as L1,eN as xl,eO as st,eP as Ll,eQ as Ia,eR as oc,eS as _y,eT as sf,eU as vy,eV as by,eW as D1,eX as E1,eY as Fc,eZ as Cy,e_ as R1,e$ as N1,f0 as T1,f1 as P1,f2 as Yr,f3 as of,f4 as M1,f5 as k1,f6 as O1,f7 as lC,f8 as dC,f9 as cC,fa as Fe,fb as A1,fc as F1,fd as Xi,fe as tn,ff as W1,fg as Qn,fh as H1,fi as Sy,fj as bt,fk as nd,fl as Dn,fm as V1,fn as B1,fo as U1,fp as z1,fq as op,fr as wy,fs as Bt,ft as Ye,fu as xa,fv as yy,fw as sd,fx as $1,fy as Vr,fz as Av,fA as j1,fB as q1,fC as K1,fD as G1,fE as Z1,fF as tl,fG as hC,fH as X1,fI as Y1,fJ as Q1,fK as J1,fL as En,fM as Iy,fN as eE,fO as od,fP as uC,fQ as tE,fR as iE,fS as nE,fT as xy,fU as sE,fV as oE,fW as Ly,fX as eh,fY as rE,fZ as gC,f_ as vn,f$ as fC,g0 as Qt,g1 as Ie,g2 as pC,g3 as Fv,g4 as aE,g5 as lE,g6 as dE,g7 as Cg,g8 as cE,g9 as rp,ga as Dy,gb as Ey,gc as hE,gd as uE,ge as gE,gf as fE,gg as pE,gh as mE,gi as _E,gj as vE,gk as Ry,gl as bE,gm as th,gn as Os,go as Ny,gp as CE,gq as Ty,gr as SE,gs as Py,gt as My,gu as wE,gv as mC,gw as ky,gx as _C,gy as yE,gz as rf,gA as vC,gB as IE,gC as xE,gD as LE,gE as Ka,gF as ap,gG as Ga,gH as Oy,gI as DE,gJ as Ay,gK as Fy,gL as EE,gM as Wy,gN as Hy,gO as Vy,gP as RE,gQ as gi,gR as NE,gS as eo,gT as Br,gU as rc,gV as By,gW as Uy,gX as TE,gY as PE,gZ as Sn,g_ as ME,g$ as bC,h0 as kE,h1 as zy,h2 as La,h3 as OE,h4 as AE,h5 as $y,h6 as FE,h7 as jy,h8 as CC,h9 as Dl,ha as WE,hb as Sg,hc as HE,hd as wg,he as yg,hf as Ig,hg as xg,hh as qy,hi as VE,hj as BE,hk as UE,hl as zE,hm as SC,hn as wC,ho as yC,hp as lp,hq as $E,hr as jE,hs as qE,ht as IC,hu as KE,hv as GE,hw as $d,hx as ZE,hy as XE,hz as Ky,hA as il,hB as YE,hC as QE,hD as Wc,hE as JE,hF as eR,hG as tR,hH as Wv,hI as Hv,hJ as iR,hK as nR,hL as sR,hM as oR,hN as Gy,hO as Lg,hP as rR,hQ as ih,hR as rs,hS as aR,hT as lR,hU as dR,hV as cR,hW as hR,hX as uR,hY as xC,hZ as Vv,h_ as dp,h$ as gR,i0 as fR,i1 as pR,i2 as mR,i3 as Bv,i4 as Zy,i5 as LC,i6 as DC,i7 as _R,i8 as vR,i9 as EC,ia as af,ib as bR,ic as CR,id as SR,ie as lf,ig as Xy,ih as Yy,ii as Qy,ij as Jy,ik as Pn,il as eI,im as Uv,io as RC,ip as wR,iq as tI,ir as yR,is as IR,it as Dg,iu as gr,iv as Eg,iw as jd,ix as xR,iy as Rg,iz as LR,iA as DR,iB as ER,iC as RR,iD as iI,iE as nl,iF as NR,iG as TR,iH as PR,iI as MR,iJ as qd,iK as kR,iL as nI,iM as sI,iN as oI,iO as cp,iP as OR,iQ as AR,iR as FR,iS as WR,iT as hp,iU as HR,iV as VR,iW as BR,iX as UR,iY as zR,iZ as $R,i_ as jR,i$ as qR,j0 as rI,j1 as KR,j2 as GR,j3 as ZR,j4 as NC,j5 as XR,j6 as YR}from"./WorkspaceMonacoEditor-C2ctzITz.js";class QR extends lt{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:x(85,"Toggle Collapse Unchanged Regions"),icon:U.map,toggled:E.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:E.has("isInDiffEditor"),menu:{when:E.has("isInDiffEditor"),id:V.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(fe),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class aI extends lt{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:x(86,"Toggle Show Moved Code Blocks"),precondition:E.has("isInDiffEditor")})}run(e,...t){const i=e.get(fe),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class lI extends lt{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:x(87,"Toggle Use Inline View When Space Is Limited"),precondition:E.has("isInDiffEditor")})}run(e,...t){const i=e.get(fe),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const Kd=x(88,"Diff Editor");class JR extends bi{constructor(){super({id:"diffEditor.switchSide",title:x(89,"Switch Side"),icon:U.arrowSwap,precondition:E.has("isInDiffEditor"),f1:!0,category:Kd})}runEditorCommand(e,t,i){const n=fr(e);if(n instanceof fa){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class e0 extends bi{constructor(){super({id:"diffEditor.exitCompareMove",title:x(90,"Exit Compare Move"),icon:U.close,precondition:S.comparingMovedCode,f1:!1,category:Kd,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=fr(e);n instanceof fa&&n.exitCompareMove()}}class t0 extends bi{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:x(91,"Collapse All Unchanged Regions"),icon:U.fold,precondition:E.has("isInDiffEditor"),f1:!0,category:Kd})}runEditorCommand(e,t,...i){const n=fr(e);n instanceof fa&&n.collapseAllUnchangedRegions()}}class i0 extends bi{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:x(92,"Show All Unchanged Regions"),icon:U.unfold,precondition:E.has("isInDiffEditor"),f1:!0,category:Kd})}runEditorCommand(e,t,...i){const n=fr(e);n instanceof fa&&n.showAllUnchangedRegions()}}class up extends lt{constructor(){super({id:"diffEditor.revert",title:x(93,"Revert"),f1:!0,category:Kd,precondition:E.has("isInDiffEditor")})}run(e,t){return t?this.runViaToolbarContext(e,t):this.runViaCursorOrSelection(e)}runViaCursorOrSelection(e){const t=fr(e);t instanceof fa&&t.revertFocusedRangeMappings()}runViaToolbarContext(e,t){const i=n0(e,t.originalUri,t.modifiedUri);i instanceof fa&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const dI=x(94,"Accessible Diff Viewer"),mu=class mu extends lt{constructor(){super({id:mu.id,title:x(95,"Go to Next Difference"),category:dI,precondition:E.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){fr(e)?.accessibleDiffViewerNext()}};mu.id="editor.action.accessibleDiffViewer.next";let rd=mu;const _u=class _u extends lt{constructor(){super({id:_u.id,title:x(96,"Go to Previous Difference"),category:dI,precondition:E.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){fr(e)?.accessibleDiffViewerPrev()}};_u.id="editor.action.accessibleDiffViewer.prev";let nh=_u;function n0(a,e,t){return a.get(Pe).listDiffEditors().find(s=>{const o=s.getModifiedEditor(),r=s.getOriginalEditor();return o&&o.getModel()?.uri.toString()===t.toString()&&r&&r.getModel()?.uri.toString()===e.toString()})||null}function fr(a){const t=a.get(Pe).listDiffEditors(),i=Vw();if(i){for(const n of t)if(n.getContainerDomNode().contains(i))return n}return null}oe(QR);oe(aI);oe(lI);pi.appendMenuItem(V.EditorTitle,{command:{id:new lI().desc.id,title:p(119,"Use Inline View When Space Is Limited"),toggled:E.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:E.has("isInDiffEditor")},order:11,group:"1_diff",when:E.and(S.diffEditorRenderSideBySideInlineBreakpointReached,E.has("isInDiffEditor"))});pi.appendMenuItem(V.EditorTitle,{command:{id:new aI().desc.id,title:p(120,"Show Moved Code Blocks"),icon:U.move,toggled:KL.create("config.diffEditor.experimental.showMoves",!0),precondition:E.has("isInDiffEditor")},order:10,group:"1_diff",when:E.has("isInDiffEditor")});oe(up);for(const a of[{icon:U.arrowRight,key:S.diffEditorInlineMode.toNegated()},{icon:U.discard,key:S.diffEditorInlineMode}])pi.appendMenuItem(V.DiffEditorHunkToolbar,{command:{id:new up().desc.id,title:p(121,"Revert Block"),icon:a.icon},when:E.and(S.diffEditorModifiedWritable,a.key),order:5,group:"primary"}),pi.appendMenuItem(V.DiffEditorSelectionToolbar,{command:{id:new up().desc.id,title:p(122,"Revert Selection"),icon:a.icon},when:E.and(S.diffEditorModifiedWritable,a.key),order:5,group:"primary"});oe(JR);oe(e0);oe(t0);oe(i0);pi.appendMenuItem(V.EditorTitle,{command:{id:rd.id,title:p(123,"Open Accessible Diff Viewer"),precondition:E.has("isInDiffEditor")},order:10,group:"2_diff",when:E.and(S.accessibleDiffViewerVisible.negate(),E.has("isInDiffEditor"))});we.registerCommandAlias("editor.action.diffReview.next",rd.id);oe(rd);we.registerCommandAlias("editor.action.diffReview.prev",nh.id);oe(nh);var s0=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},o0=function(a,e){return function(t,i){e(t,i,a)}},gp;const Ng=new J("selectionAnchorSet",!1);var ro;let Es=(ro=class{static get(e){return e.getContribution(gp.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Ng.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(G.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new ut().appendText(p(798,"Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),mi(p(799,"Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(G.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},gp=ro,ro.ID="editor.contrib.selectionAnchorController",ro);Es=gp=s0([o0(1,ce)],Es);class r0 extends M{constructor(){super({id:"editor.action.setSelectionAnchor",label:x(800,"Set Selection Anchor"),precondition:void 0,kbOpts:{kbExpr:S.editorTextFocus,primary:He(2089,2080),weight:100}})}async run(e,t){Es.get(t)?.setSelectionAnchor()}}class a0 extends M{constructor(){super({id:"editor.action.goToSelectionAnchor",label:x(801,"Go to Selection Anchor"),precondition:Ng})}async run(e,t){Es.get(t)?.goToSelectionAnchor()}}class l0 extends M{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:x(802,"Select from Anchor to Cursor"),precondition:Ng,kbOpts:{kbExpr:S.editorTextFocus,primary:He(2089,2089),weight:100}})}async run(e,t){Es.get(t)?.selectFromAnchorToCursor()}}class d0 extends M{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:x(803,"Cancel Selection Anchor"),precondition:Ng,kbOpts:{kbExpr:S.editorTextFocus,primary:9,weight:100}})}async run(e,t){Es.get(t)?.cancelSelectionAnchor()}}Q(Es.ID,Es,4);D(r0);D(a0);D(l0);D(d0);const c0=A("editorOverviewRuler.bracketMatchForeground","#A0A0A0",p(804,"Overview ruler marker color for matching brackets."));class h0 extends M{constructor(){super({id:"editor.action.jumpToBracket",label:x(806,"Go to Bracket"),precondition:void 0,kbOpts:{kbExpr:S.editorTextFocus,primary:3165,weight:100}})}run(e,t){Qo.get(t)?.jumpToBracket()}}class u0 extends M{constructor(){super({id:"editor.action.selectToBracket",label:x(807,"Select to Bracket"),precondition:void 0,metadata:{description:x(808,"Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){let n=!0;i&&i.selectBrackets===!1&&(n=!1),Qo.get(t)?.selectToBracket(n)}}class g0 extends M{constructor(){super({id:"editor.action.removeBrackets",label:x(809,"Remove Brackets"),precondition:void 0,kbOpts:{kbExpr:S.editorTextFocus,primary:2561,weight:100},canTriggerInlineEdits:!0})}run(e,t){Qo.get(t)?.removeBrackets(this.id)}}class f0{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}const Kn=class Kn extends T{static get(e){return e.getContribution(Kn.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new qe(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(80),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(80)&&(this._matchBrackets=this._editor.getOption(80),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let o=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?o=s[1].getStartPosition():s[1].containsPosition(n)&&(o=s[0].getStartPosition());else{const r=e.bracketPairs.findEnclosingBrackets(n);if(r)o=r[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(o=l.range.getStartPosition())}}return o?new G(o.lineNumber,o.column,o.lineNumber,o.column):new G(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let o=t.bracketPairs.matchBracket(s);if(!o&&(o=t.bracketPairs.findEnclosingBrackets(s),!o)){const d=t.bracketPairs.findNextBracket(s);d&&d.range&&(o=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let r=null,l=null;if(o){o.sort(y.compareRangesUsingStarts);const[d,c]=o;if(r=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(s)){const h=r;r=l,l=h}}r&&l&&i.push(new G(r.lineNumber,r.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let o=0;for(let h=0,u=e.length;h<u;h++){const g=e[h];g.isEmpty()&&(s[o++]=g.getStartPosition())}s.length>1&&s.sort(H.compare);const r=[];let l=0,d=0;const c=n.length;for(let h=0,u=s.length;h<u;h++){const g=s[h];for(;d<c&&n[d].position.isBefore(g);)d++;if(d<c&&n[d].position.equals(g))r[l++]=n[d];else{let f=t.bracketPairs.matchBracket(g,20),m=Kn._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!f&&this._matchBrackets==="always"&&(f=t.bracketPairs.findEnclosingBrackets(g,20),m=Kn._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),r[l++]=new f0(g,f,m)}}this._lastBracketsData=r,this._lastVersionId=i}};Kn.ID="editor.contrib.bracketMatchingController",Kn._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Y.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Ve(c0),position:Qi.Center}}),Kn._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Y.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});let Qo=Kn;Q(Qo.ID,Qo,1);D(u0);D(h0);D(g0);pi.appendMenuItem(V.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:p(805,"Go to &&Bracket")},order:2});class p0{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const o=new y(i,n-1,i,n),r=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new y(i,s,i,s),r)}else{const o=new y(i,s,i,s+1),r=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new y(i,n,i,n),r)}}computeCursorState(e,t){return this._isMovingLeft?new G(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new G(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class cI extends M{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new p0(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class m0 extends cI{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:x(810,"Move Selected Text Left"),precondition:S.writable})}}class _0 extends cI{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:x(811,"Move Selected Text Right"),precondition:S.writable})}}D(m0);D(_0);class v0 extends M{constructor(){super({id:"editor.action.transposeLetters",label:x(812,"Transpose Letters"),precondition:S.writable,kbOpts:{kbExpr:S.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],s=t.getSelections();for(const o of s){if(!o.isEmpty())continue;const r=o.startLineNumber,l=o.startColumn,d=i.getLineMaxColumn(r);if(r===1&&(l===1||l===2&&d===2))continue;const c=l===d?o.getPosition():Jg.rightPosition(i,o.getPosition().lineNumber,o.getPosition().column),h=Jg.leftPosition(i,c),u=Jg.leftPosition(i,h),g=i.getValueInRange(y.fromPositions(u,h)),f=i.getValueInRange(y.fromPositions(h,c)),m=y.fromPositions(u,c);n.push(new Fd(m,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}D(v0);const b0=Oi("productService");function zv(a,e){return{id:e,asString:async()=>a,asFile:()=>{},value:typeof a=="string"?a:void 0}}function C0(a,e,t,i){const n={id:ag(),name:a,uri:e,data:t};return{id:i,asString:async()=>"",asFile:()=>n,value:void 0}}class hI{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return xn.some(this,([i,n])=>n.asFile())&&t.push("files"),uI(sh(e),t)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return sh(e)}}function sh(a){return a.toLowerCase()}function TC(a,e){return uI(sh(a),e.map(sh))}function uI(a,e){if(a==="*/*")return e.length>0;if(e.includes(a))return!0;const t=a.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,s]=t;return s==="*"?e.some(o=>o.startsWith(n+"/")):!1}const Tg=Object.freeze({create:a=>Bw(a.map(e=>e.toString())).join(`\r
2
2
  `),split:a=>a.split(`\r
3
3
  `),parse:a=>Tg.split(a).filter(e=>!e.startsWith("#"))}),Vi=class Vi{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Vi.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new Vi((this.value?[this.value,...e]:e).join(Vi.sep))}};Vi.sep=".",Vi.None=new Vi("@@none@@"),Vi.Empty=new Vi("");let xe=Vi;const PC={EDITORS:"CodeEditors",FILES:"CodeFiles"};class S0{}const w0={DragAndDropContribution:"workbench.contributions.dragAndDrop"};an.add(w0.DragAndDropContribution,new S0);const $l=class $l{constructor(){}static getInstance(){return $l.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}};$l.INSTANCE=new $l;let fp=$l;function gI(a){if(Va&&typeof globalThis.vscode?.webUtils?.getPathForFile=="function")return globalThis.vscode?.webUtils?.getPathForFile(a)}function fI(a){const e=new hI;for(const t of a.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,zv(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,y0(n))}}return e}function y0(a){const e=gI(a),t=e?ge.parse(e):void 0;return C0(a.name,t,async()=>new Uint8Array(await a.arrayBuffer()))}const I0=Object.freeze([PC.EDITORS,PC.FILES,Gl.RESOURCES,Gl.INTERNAL_URI_LIST]);function pI(a,e=!1){const t=fI(a),i=t.get(Gl.INTERNAL_URI_LIST);if(i)t.replace(et.uriList,i);else if(e||!t.has(et.uriList)){const n=[];for(const s of a.items){const o=s.getAsFile();if(o){const r=gI(o);try{r?n.push(ge.file(r).toString()):n.push(ge.parse(o.name,!0).toString())}catch{}}}n.length&&t.replace(et.uriList,zv(Tg.create(n)))}for(const n of I0)t.delete(n);return t}var x0=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},L0=function(a,e){return function(t,i){e(t,i,a)}};const D0=Y.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:Uw,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}}),vu=class vu extends T{constructor(e,t,i,n,s){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=s,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=F(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=F("span.icon");this.domNode.append(t),t.classList.add(...re.asClassNameArray(U.loading),"codicon-modifier-spin");const i=()=>{const n=this.editor.getOption(75);this.domNode.style.height=`${n}px`,this.domNode.style.width=`${Math.ceil(.8*n)}px`};i(),this._register(this.editor.onDidChangeConfiguration(n=>{(n.hasChanged(61)||n.hasChanged(75))&&i()})),this._register(se(this.domNode,ye.CLICK,n=>{this.delegate.cancel()}))}getId(){return vu.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}};vu.baseId="editor.widget.inlineProgressWidget";let pp=vu,oh=class extends T{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new ze),this._currentWidget=this._register(new ze),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,i,n,s){const o=this._operationIdPool++;this._currentOperation=o,this.clear(),this._showPromise.value=pa(()=>{const r=y.fromPositions(e);this._currentDecorations.set([{range:r,options:D0}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(pp,this.id,this._editor,r,t,n))},s??this._showDelay);try{return await i}finally{this._currentOperation===o&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};oh=x0([L0(2,X)],oh);var E0=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},MC=function(a,e){return function(t,i){e(t,i,a)}},Hc,ls;let Et=(ls=class{static get(e){return e.getContribution(Hc.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new ze,this._messageListeners=new k,this._mouseOverMessage=!1,this._editor=e,this._visible=Hc.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){if(mi(Yf(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),Yf(e)){const n=this._messageListeners.add(zw(e,{actionHandler:(s,o)=>{this.closeMessage(),GL(this._openerService,s,o.isTrusted)}}));this._messageWidget.value=new df(this._editor,t,n.element)}else this._messageWidget.value=new df(this._editor,t,e);this._messageListeners.add(Be.debounce(this._editor.onDidBlurEditorText,(n,s)=>s,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&ZL(Vw(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(se(this._messageWidget.value.getDomNode(),ye.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(se(this._messageWidget.value.getDomNode(),ye.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new y(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(df.fadeOut(this._messageWidget.value))}},Hc=ls,ls.ID="editor.contrib.messageController",ls.MESSAGE_VISIBLE=new J("messageVisible",!1,p(1287,"Whether the editor is currently showing an inline message")),ls);Et=Hc=E0([MC(1,ce),MC(2,Wd)],Et);const R0=It.bindToContribution(Et.get);z(new R0({id:"leaveEditorMessage",precondition:Et.MESSAGE_VISIBLE,handler:a=>a.closeMessage(),kbOpts:{weight:130,primary:9}}));let df=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const o=document.createElement("div");typeof n=="string"?(o.classList.add("message"),o.textContent=n):(n.classList.add("message"),o.appendChild(n)),this._domNode.appendChild(o);const r=document.createElement("div");r.classList.add("anchor","below"),this._domNode.appendChild(r),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};Q(Et.ID,Et,4);var $v=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ad=function(a,e){return function(t,i){e(t,i,a)}};class jv{constructor(e){this.copyMimeTypes=[],this.kind=e,this.providedDropEditKinds=[this.kind],this.providedPasteEditKinds=[this.kind]}async provideDocumentPasteEdits(e,t,i,n,s){const o=await this.getEdit(i,s);if(o)return{edits:[{insertText:o.insertText,title:o.title,kind:o.kind,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,i,n){const s=await this.getEdit(i,n);if(s)return{edits:[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}],dispose(){}}}}const bu=class bu extends jv{constructor(){super(xe.Empty.append("text","plain")),this.id=bu.id,this.dropMimeTypes=[et.text],this.pasteMimeTypes=[et.text]}async getEdit(e,t){const i=e.get(et.text);if(!i||e.has(et.uriList))return;const n=await i.asString();return{handledMimeType:et.text,title:p(926,"Insert Plain Text"),insertText:n,kind:this.kind}}};bu.id="text";let Jo=bu;class mI extends jv{constructor(){super(xe.Empty.append("uri","path","absolute")),this.dropMimeTypes=[et.uriList],this.pasteMimeTypes=[et.uriList]}async getEdit(e,t){const i=await _I(e);if(!i.length||t.isCancellationRequested)return;let n=0;const s=i.map(({uri:r,originalText:l})=>r.scheme===nt.file?r.fsPath:(n++,l)).join(" ");let o;return n>0?o=i.length>1?p(927,"Insert Uris"):p(928,"Insert Uri"):o=i.length>1?p(929,"Insert Paths"):p(930,"Insert Path"),{handledMimeType:et.uriList,insertText:s,title:o,kind:this.kind}}}let rh=class extends jv{constructor(e){super(xe.Empty.append("uri","path","relative")),this._workspaceContextService=e,this.dropMimeTypes=[et.uriList],this.pasteMimeTypes=[et.uriList]}async getEdit(e,t){const i=await _I(e);if(!i.length||t.isCancellationRequested)return;const n=Ps(i.map(({uri:s})=>{const o=this._workspaceContextService.getWorkspaceFolder(s);return o?XL(o.uri,s):void 0}));if(n.length)return{handledMimeType:et.uriList,insertText:n.join(" "),title:i.length>1?p(931,"Insert Relative Paths"):p(932,"Insert Relative Path"),kind:this.kind}}};rh=$v([ad(0,Is)],rh);class N0{constructor(){this.kind=new xe("html"),this.providedPasteEditKinds=[this.kind],this.copyMimeTypes=[],this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:et.text}]}async provideDocumentPasteEdits(e,t,i,n,s){if(n.triggerKind!==Qf.PasteAs&&!n.only?.contains(this.kind))return;const r=await i.get("text/html")?.asString();if(!(!r||s.isCancellationRequested))return{dispose(){},edits:[{insertText:r,yieldTo:this._yieldTo,title:p(933,"Insert HTML"),kind:this.kind}]}}}async function _I(a){const e=a.get(et.uriList);if(!e)return[];const t=await e.asString(),i=[];for(const n of Tg.parse(t))try{i.push({uri:ge.parse(n),originalText:n})}catch{}return i}const to={scheme:"*",hasAccessToAllModels:!0};let mp=class extends T{constructor(e,t){super(),this._register(e.documentDropEditProvider.register(to,new Jo)),this._register(e.documentDropEditProvider.register(to,new mI)),this._register(e.documentDropEditProvider.register(to,new rh(t)))}};mp=$v([ad(0,$),ad(1,Is)],mp);let _p=class extends T{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register(to,new Jo)),this._register(e.documentPasteEditProvider.register(to,new mI)),this._register(e.documentPasteEditProvider.register(to,new rh(t))),this._register(e.documentPasteEditProvider.register(to,new N0))}};_p=$v([ad(0,$),ad(1,Is)],_p);const si=class si{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=si._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(si.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(si.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(si.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(si.isVariableCharacter(i)||si.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof si._table[i]>"u"&&!si.isDigitCharacter(i)&&!si.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}};si._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};let vp=si;class Za{constructor(){this._children=[]}appendChild(e){return e instanceof gt&&this._children[this._children.length-1]instanceof gt?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,(function o(r,l){for(const d of r)d.parent=l,o(d.children,d)})(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof Gd)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class gt extends Za{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new gt(this.value)}}class vI extends Za{}class Xt extends vI{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Xa?this._children[0]:void 0}clone(){const e=new Xt(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Xa extends Za{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof gt&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Xa;return this.options.forEach(e.appendChild,e),e}}class qv extends Za{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Ei&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Ei){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new qv;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Ei extends Za{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Ei(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class ld extends vI{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new gt(t)],!0):!1}clone(){const e=new ld(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function kC(a,e){const t=[...a];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class Gd extends Za{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof Xt&&(e.push(i),t=!t||t.index<i.index?i:t),!0}),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk(n=>n===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return kC([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof Xt&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof ld&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new Gd;return this._children=this.children.map(t=>t.clone()),e}walk(e){kC(this.children,e)}}class er{constructor(){this._scanner=new vp,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new Gd;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(l=>(l instanceof Xt&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const o=(l,d)=>{const c=n.get(l.index);if(!c)return;const h=new Xt(l.index);h.transform=l.transform;for(const u of c){const g=u.clone();h.appendChild(g),g instanceof Xt&&n.has(g.index)&&!d.has(g.index)&&(d.add(g.index),o(g,d),d.delete(g.index))}t.replace(l,[h])},r=new Set;for(const l of s)o(l,r);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new Xt(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new gt(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Xt(Number(t)):new ld(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new Xt(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new gt("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const o=new Xa;for(;;){if(this._parseChoiceElement(o)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(o),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new gt(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new ld(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new gt("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new qv;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new gt(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Ei(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Ei(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Ei(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Ei(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Ei(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const o=this._until(4);if(o)return e.appendChild(new Ei(Number(n),void 0,s,o)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Ei(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new gt(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function bI(a,e,t){return(typeof t.insertText=="string"?t.insertText==="":t.insertText.snippet==="")?{edits:t.additionalEdit?.edits??[]}:{edits:[...e.map(i=>new YL(a,{range:i,text:typeof t.insertText=="string"?er.escape(t.insertText)+"$0":t.insertText.snippet,insertAsSnippet:!0})),...t.additionalEdit?.edits??[]]}}function CI(a){function e(o,r){return"mimeType"in o?o.mimeType===r.handledMimeType:!!r.kind&&o.kind.contains(r.kind)}const t=new Map;for(const o of a)for(const r of o.yieldTo??[])for(const l of a)if(l!==o&&e(r,l)){let d=t.get(o);d||(d=[],t.set(o,d)),d.push(l)}if(!t.size)return Array.from(a);const i=new Set,n=[];function s(o){if(!o.length)return[];const r=o[0];if(n.includes(r))return console.warn("Yield to cycle detected",r),o;if(i.has(r))return s(o.slice(1));let l=[];const d=t.get(r);return d&&(n.push(r),l=s(d),n.pop()),i.add(r),[...l,r,...s(o.slice(1))]}return s(Array.from(a))}function cf(a,e){return e&&(a.stack||a.stacktrace)?p(29,"{0}: {1}",AC(a),OC(a.stack)||OC(a.stacktrace)):AC(a)}function OC(a){return Array.isArray(a)?a.join(`
4
4
  `):a}function AC(a){return a.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${a.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof a.code=="string"&&typeof a.errno=="number"&&typeof a.syscall=="string"?p(30,"A system error occurred ({0})",a.message):a.message||p(31,"An unknown error occurred. Please consult the log for more details.")}function ah(a=null,e=!1){if(!a)return p(32,"An unknown error occurred. Please consult the log for more details.");if(Array.isArray(a)){const t=Ps(a),i=ah(t[0],e);return t.length>1?p(33,"{0} ({1} errors in total)",i,t.length):i}if($w(a))return a;if(a.detail){const t=a.detail;if(t.error)return cf(t.error,e);if(t.exception)return cf(t.exception,e)}return a.stack?cf(a,e):a.message?a.message:p(34,"An unknown error occurred. Please consult the log for more details.")}var SI=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Vc=function(a,e){return function(t,i){e(t,i,a)}};const wI="acceptSelectedCodeAction",yI="previewSelectedCodeAction";class T0{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){i.text.textContent=e.group?.title??e.label??""}disposeTemplate(e){}}class P0{get templateId(){return"separator"}renderTemplate(e){e.classList.add("separator");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){i.text.textContent=e.label??""}disposeTemplate(e){}}let bp=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);const n=document.createElement("span");n.className="description",e.append(n);const s=new cv(e,hv);return{container:e,icon:t,text:i,description:n,keybinding:s}}renderElement(e,t,i){if(e.group?.icon?(i.icon.className=re.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=ie(e.group.icon.color.id))):(i.icon.className=re.asClassName(U.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;JL(!e.hideIcon,i.icon),i.text.textContent=lh(e.label),e.keybinding?(i.description.textContent=e.keybinding.getLabel(),i.description.style.display="inline",i.description.style.letterSpacing="0.5px"):e.description?(i.description.textContent=lh(e.description),i.description.style.display="inline"):(i.description.textContent="",i.description.style.display="none");const n=this._keybindingService.lookupKeybinding(wI)?.getLabel(),s=this._keybindingService.lookupKeybinding(yI)?.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.tooltip?i.container.title=e.tooltip:e.disabled?i.container.title=e.label:n&&s?this._supportsPreview&&e.canPreview?i.container.title=p(1653,"{0} to Apply, {1} to Preview",n,s):i.container.title=p(1654,"{0} to Apply",n):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};bp=SI([Vc(1,Re)],bp);class M0 extends UIEvent{constructor(){super("acceptSelectedAction")}}class FC extends UIEvent{constructor(){super("previewSelectedAction")}}function k0(a){if(a.kind==="action")return a.label}let Cp=class extends T{constructor(e,t,i,n,s,o,r,l){super(),this._delegate=n,this._contextViewService=o,this._keybindingService=r,this._layoutService=l,this._actionLineHeight=28,this._headerLineHeight=28,this._separatorLineHeight=8,this.cts=this._register(new Ke),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const d={getHeight:c=>{switch(c.kind){case"header":return this._headerLineHeight;case"separator":return this._separatorLineHeight;default:return this._actionLineHeight}},getTemplateId:c=>c.kind};this._list=this._register(new uv(e,this.domNode,d,[new bp(t,this._keybindingService),new T0,new P0],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:k0},accessibilityProvider:{getAriaLabel:c=>{if(c.kind==="action"){let h=c.label?lh(c?.label):"";return c.description&&(h=h+", "+lh(c.description)),c.disabled&&(h=p(1655,"{0}, Disabled Reason: {1}",h,c.disabled)),h}return null},getWidgetAriaLabel:()=>p(1656,"Action Widget"),getRole:c=>{switch(c.kind){case"action":return"option";case"separator":return"separator";default:return"separator"}},getWidgetRole:()=>"listbox",...s}})),this._list.style(eD),this._register(this._list.onMouseClick(c=>this.onListClick(c))),this._register(this._list.onMouseOver(c=>this.onListHover(c))),this._register(this._list.onDidChangeFocus(()=>this.onFocus())),this._register(this._list.onDidChangeSelection(c=>this.onListSelection(c))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(c=>c.kind==="header").length,i=this._allMenuItems.filter(c=>c.kind==="separator").length,o=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight+i*this._separatorLineHeight-i*this._actionLineHeight;this._list.layout(o);let r=e;if(this._allMenuItems.length>=50)r=380;else{const c=this._allMenuItems.map((h,u)=>{const g=this.domNode.ownerDocument.getElementById(this._list.getElementID(u));if(g){g.style.width="auto";const f=g.getBoundingClientRect().width;return g.style.width="",f}return 0});r=Math.max(...c,e)}const d=Math.min(o,this._layoutService.getContainer(Ct(this.domNode)).clientHeight*.7);return this._list.layout(d,r),this.domNode.style.height=`${d}px`,this._list.domFocus(),r}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new FC:new M0;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof FC):this._list.setSelection([])}onFocus(){const e=this._list.getFocus();if(e.length===0)return;const t=e[0],i=this._list.element(t);this._delegate.onFocus?.(i.item)}async onListHover(e){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&t.kind==="action"){const i=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=i?i.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};Cp=SI([Vc(5,lg),Vc(6,Re),Vc(7,QL)],Cp);function lh(a){return a.replace(/\r\n|\r|\n/g," ")}var O0=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},hf=function(a,e){return function(t,i){e(t,i,a)}};A("actionBar.toggledBackground",dg,p(1657,"Background color for toggled action items in action bar."));const tr={Visible:new J("codeActionMenuVisible",!1,p(1658,"Whether the action widget list is visible"))},As=Oi("actionWidgetService");let ir=class extends T{get isVisible(){return tr.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new ze)}show(e,t,i,n,s,o,r,l){const d=tr.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(Cp,e,t,i,n,l);this._contextViewService.showContextView({getAnchor:()=>s,render:h=>(d.set(!0),this._renderWidget(h,c,r??[])),onHide:h=>{d.reset(),this._onWidgetClosed(h)}},o,!1)}acceptSelected(e){this._list.value?.acceptSelected(e)}focusPrevious(){this._list?.value?.focusPrevious()}focusNext(){this._list?.value?.focusNext()}hide(e){this._list.value?.hide(e),this._list.clear()}_renderWidget(e,t,i){const n=document.createElement("div");if(n.classList.add("action-widget"),e.appendChild(n),this._list.value=t,this._list.value)n.appendChild(this._list.value.domNode);else throw new Error("List has no value");const s=new k,o=document.createElement("div"),r=e.appendChild(o);r.classList.add("context-view-block"),s.add(se(r,ye.MOUSE_DOWN,g=>g.stopPropagation()));const l=document.createElement("div"),d=e.appendChild(l);d.classList.add("context-view-pointerBlock"),s.add(se(d,ye.POINTER_MOVE,()=>d.remove())),s.add(se(d,ye.MOUSE_DOWN,()=>d.remove()));let c=0;if(i.length){const g=this._createActionBar(".action-widget-action-bar",i);g&&(n.appendChild(g.getContainer().parentElement),s.add(g),c=g.getContainer().offsetWidth)}const h=this._list.value?.layout(c);n.style.width=`${h}px`;const u=s.add(Ko(e));return s.add(u.onDidBlur(()=>this.hide(!0))),s}_createActionBar(e,t){if(!t.length)return;const i=F(e),n=new ma(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){this._list.value?.hide(e)}};ir=O0([hf(0,lg),hf(1,ce),hf(2,X)],ir);Fn(As,ir,1);const Zd=1100;oe(class extends lt{constructor(){super({id:"hideCodeActionWidget",title:x(1659,"Hide action widget"),precondition:tr.Visible,keybinding:{weight:Zd,primary:9,secondary:[1033]}})}run(a){a.get(As).hide(!0)}});oe(class extends lt{constructor(){super({id:"selectPrevCodeAction",title:x(1660,"Select previous action"),precondition:tr.Visible,keybinding:{weight:Zd,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(a){const e=a.get(As);e instanceof ir&&e.focusPrevious()}});oe(class extends lt{constructor(){super({id:"selectNextCodeAction",title:x(1661,"Select next action"),precondition:tr.Visible,keybinding:{weight:Zd,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(a){const e=a.get(As);e instanceof ir&&e.focusNext()}});oe(class extends lt{constructor(){super({id:wI,title:x(1662,"Accept selected action"),precondition:tr.Visible,keybinding:{weight:Zd,primary:3,secondary:[2137]}})}run(a){const e=a.get(As);e instanceof ir&&e.acceptSelected()}});oe(class extends lt{constructor(){super({id:yI,title:x(1663,"Preview selected action"),precondition:tr.Visible,keybinding:{weight:Zd,primary:2051}})}run(a){const e=a.get(As);e instanceof ir&&e.acceptSelected(!0)}});var II=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qr=function(a,e){return function(t,i){e(t,i,a)}},Sp,ao;let wp=(ao=class extends T{constructor(e,t,i,n,s,o,r,l,d,c,h){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=s,this.edits=o,this.onSelectNewEdit=r,this.additionalActions=l,this._keybindingService=c,this._actionWidgetService=h,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(d),this.visibleContext.set(!0),this._register(Le(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(Le((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition(u=>{this.dispose()})),this._register(Be.runAndSubscribe(c.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){const e=this._keybindingService.lookupKeybinding(this.showCommand.id)?.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:"")}create(){this.domNode=F(".post-edit-widget"),this.button=this._register(new tD(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(se(this.domNode,ye.CLICK,()=>this.showSelector()))}getId(){return Sp.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){const e=pt(this.button.element),t={x:e.left+e.width,y:e.top+e.height};this._actionWidgetService.show("postEditWidget",!1,this.edits.allEdits.map((i,n)=>({kind:"action",item:i,label:i.title,disabled:!1,canPreview:!1,group:{title:"",icon:re.fromId(n===this.edits.activeEditIndex?U.check.id:U.blank.id)}})),{onHide:()=>{this.editor.focus()},onSelect:i=>{this._actionWidgetService.hide(!1);const n=this.edits.allEdits.findIndex(s=>s===i);if(n!==this.edits.activeEditIndex)return this.onSelectNewEdit(n)}},t,this.editor.getDomNode()??void 0,this.additionalActions)}},Sp=ao,ao.baseId="editor.widget.postEditWidget",ao);wp=Sp=II([Qr(8,ce),Qr(9,Re),Qr(10,As)],wp);let dh=class extends T{constructor(e,t,i,n,s,o,r,l){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._getAdditionalActions=s,this._instantiationService=o,this._bulkEditService=r,this._notificationService=l,this._currentWidget=this._register(new ze),this._register(Be.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,i,n,s){if(!e.length||!this._editor.hasModel())return;const o=this._editor.getModel(),r=t.allEdits.at(t.activeEditIndex);if(!r)return;const l=async v=>{const C=this._editor.getModel();C&&(await C.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:v,allEdits:t.allEdits},i,n,s))},d=(v,C)=>{Wn(v)||(this._notificationService.error(C),i&&this.show(e[0],t,l))},c=new Go(this._editor,3,void 0,s);let h;try{h=await iD(n(r,c.token),c.token)}catch(v){return d(v,p(937,`Error resolving edit '{0}':