@emailmaker/emailmaker 1.0.33 → 1.0.35

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 (394) hide show
  1. package/README.md +1 -1
  2. package/asset-manifest.json +379 -0
  3. package/css.worker.js +2 -0
  4. package/css.worker.js.LICENSE.txt +6 -0
  5. package/editor.worker.js +1 -0
  6. package/emailmaker-esm.js +1 -0
  7. package/emailmaker.d.ts +1072 -0
  8. package/emailmaker.js +1 -0
  9. package/html.worker.js +2 -0
  10. package/html.worker.js.LICENSE.txt +14 -0
  11. package/iframe/{iframe-eblock.a8bef4943d19ed8120eb.html → iframe-eblock.5edb895b1b04e652428a.html} +1 -1
  12. package/iframe/{iframe.a8bef4943d19ed8120eb.html → iframe.5edb895b1b04e652428a.html} +1 -1
  13. package/iframe/js/cssbeautify.js +1 -1
  14. package/iframe/sandbox-eblock.js +1 -1
  15. package/iframe/sandbox.js +1 -1
  16. package/json.worker.js +2 -0
  17. package/json.worker.js.LICENSE.txt +6 -0
  18. package/package.json +1 -1
  19. package/plugin.html +281 -0
  20. package/plugin_blocks_test.html +144 -0
  21. package/plugin_default.html +56 -0
  22. package/plugin_s.html +31 -0
  23. package/static/css/1795.3b54559d.css +1 -0
  24. package/static/css/2256.d0db3199.css +1 -0
  25. package/static/css/4877.237f7f6b.css +1 -0
  26. package/static/css/5571.e9720eda.css +1 -0
  27. package/static/css/6677.3a2b7cfe.css +1 -0
  28. package/static/css/698.9a48c3be.css +1 -0
  29. package/static/css/984.b0f773d2.css +1 -0
  30. package/static/js/1049.4172dffd.chunk.js +2 -0
  31. package/static/js/1049.4172dffd.chunk.js.LICENSE.txt +6 -0
  32. package/static/js/1052.d1f85a29.js +1 -0
  33. package/static/js/1185.6bf6f9aa.chunk.js +2 -0
  34. package/static/js/1185.6bf6f9aa.chunk.js.LICENSE.txt +6 -0
  35. package/static/js/1212.15b852ca.js +1 -0
  36. package/static/js/1265.a2619e5d.chunk.js +2 -0
  37. package/static/js/1265.a2619e5d.chunk.js.LICENSE.txt +6 -0
  38. package/static/js/1307.74cb7b10.js +1 -0
  39. package/static/js/1329.579d774a.chunk.js +2 -0
  40. package/static/js/1329.579d774a.chunk.js.LICENSE.txt +6 -0
  41. package/static/js/1399.cb6eb2fa.js +1 -0
  42. package/static/js/1403.68211890.js +1 -0
  43. package/static/js/1459.3976d721.chunk.js +2 -0
  44. package/static/js/1459.3976d721.chunk.js.LICENSE.txt +6 -0
  45. package/static/js/1472.4f1f2346.js +1 -0
  46. package/static/js/150.9575cb0c.js +2 -0
  47. package/static/js/150.9575cb0c.js.LICENSE.txt +1 -0
  48. package/static/js/1579.1a9c02cc.chunk.js +2 -0
  49. package/static/js/1579.1a9c02cc.chunk.js.LICENSE.txt +6 -0
  50. package/static/js/1653.4c4a3135.chunk.js +2 -0
  51. package/static/js/1653.4c4a3135.chunk.js.LICENSE.txt +6 -0
  52. package/static/js/1729.b71e4a99.chunk.js +1 -0
  53. package/static/js/1792.4d853bea.js +1 -0
  54. package/static/js/1795.8ada4a9a.js +1 -0
  55. package/static/js/1841.5da7bf01.chunk.js +2 -0
  56. package/static/js/1841.5da7bf01.chunk.js.LICENSE.txt +6 -0
  57. package/static/js/1861.b8c224a2.chunk.js +2 -0
  58. package/static/js/1861.b8c224a2.chunk.js.LICENSE.txt +6 -0
  59. package/static/js/192.c5769095.js +1 -0
  60. package/static/js/197.a135382e.js +1 -0
  61. package/static/js/2016.e08ef9ce.js +1 -0
  62. package/static/js/2049.ae85de41.chunk.js +2 -0
  63. package/static/js/2049.ae85de41.chunk.js.LICENSE.txt +6 -0
  64. package/static/js/2088.1813eba6.js +1 -0
  65. package/static/js/2132.3e700acc.js +2 -0
  66. package/static/js/2132.3e700acc.js.LICENSE.txt +6 -0
  67. package/static/js/2217.2e801f1a.chunk.js +2 -0
  68. package/static/js/2217.2e801f1a.chunk.js.LICENSE.txt +6 -0
  69. package/static/js/2223.17806e9a.js +2 -0
  70. package/static/js/2223.17806e9a.js.LICENSE.txt +10 -0
  71. package/static/js/2256.ae8285fc.js +1 -0
  72. package/static/js/2273.9a82beda.chunk.js +2 -0
  73. package/static/js/2273.9a82beda.chunk.js.LICENSE.txt +6 -0
  74. package/static/js/2279.8fca3f80.js +1 -0
  75. package/static/js/2353.e7f622b0.chunk.js +2 -0
  76. package/static/js/2353.e7f622b0.chunk.js.LICENSE.txt +6 -0
  77. package/static/js/2464.2c009f8c.js +2 -0
  78. package/static/js/2464.2c009f8c.js.LICENSE.txt +6 -0
  79. package/static/js/2469.b6573b5d.js +1 -0
  80. package/static/js/2579.ad196e9b.js +1 -0
  81. package/static/js/2582.d77da683.js +2 -0
  82. package/static/js/2582.d77da683.js.LICENSE.txt +31 -0
  83. package/static/js/2617.84f5300d.js +1 -0
  84. package/static/js/2642.53da04d8.js +1 -0
  85. package/static/js/2896.fac80e3c.js +2 -0
  86. package/static/js/2896.fac80e3c.js.LICENSE.txt +6 -0
  87. package/static/js/2987.6e35b276.chunk.js +2 -0
  88. package/static/js/2987.6e35b276.chunk.js.LICENSE.txt +6 -0
  89. package/static/js/3031.84c39f37.chunk.js +2 -0
  90. package/static/js/3031.84c39f37.chunk.js.LICENSE.txt +6 -0
  91. package/static/js/3142.506128bd.js +1 -0
  92. package/static/js/3143.1ba23572.chunk.js +2 -0
  93. package/static/js/3143.1ba23572.chunk.js.LICENSE.txt +6 -0
  94. package/static/js/3273.17658f13.chunk.js +2 -0
  95. package/static/js/3273.17658f13.chunk.js.LICENSE.txt +6 -0
  96. package/static/js/3303.576ded0e.js +1 -0
  97. package/static/js/3393.192ef5c3.chunk.js +2 -0
  98. package/static/js/3393.192ef5c3.chunk.js.LICENSE.txt +6 -0
  99. package/static/js/3441.c99ed155.chunk.js +2 -0
  100. package/static/js/3441.c99ed155.chunk.js.LICENSE.txt +6 -0
  101. package/static/js/3501.86e3c48e.chunk.js +2 -0
  102. package/static/js/3501.86e3c48e.chunk.js.LICENSE.txt +6 -0
  103. package/static/js/3511.80b2af5b.chunk.js +2 -0
  104. package/static/js/3511.80b2af5b.chunk.js.LICENSE.txt +6 -0
  105. package/static/js/353.3e6b29fb.js +1 -0
  106. package/static/js/3593.f09ad9a7.js +1 -0
  107. package/static/js/3665.12d06fc4.chunk.js +2 -0
  108. package/static/js/3665.12d06fc4.chunk.js.LICENSE.txt +6 -0
  109. package/static/js/3682.d155b110.js +2 -0
  110. package/static/js/3682.d155b110.js.LICENSE.txt +18 -0
  111. package/static/js/3713.ecd8d4d5.chunk.js +2 -0
  112. package/static/js/3713.ecd8d4d5.chunk.js.LICENSE.txt +6 -0
  113. package/static/js/3724.b7878b14.js +1 -0
  114. package/static/js/3737.df8953d0.chunk.js +2 -0
  115. package/static/js/3737.df8953d0.chunk.js.LICENSE.txt +6 -0
  116. package/static/js/3744.86c2957a.js +1 -0
  117. package/static/js/3921.99dffea2.chunk.js +2 -0
  118. package/static/js/3921.99dffea2.chunk.js.LICENSE.txt +6 -0
  119. package/static/js/3959.42824ee0.js +1 -0
  120. package/static/js/3969.d76517dd.chunk.js +2 -0
  121. package/static/js/3969.d76517dd.chunk.js.LICENSE.txt +6 -0
  122. package/static/js/3991.d0073826.js +1 -0
  123. package/static/js/4009.088de4c8.js +1 -0
  124. package/static/js/4046.b9a6a0d1.chunk.js +1 -0
  125. package/static/js/4047.9b1db1a0.chunk.js +2 -0
  126. package/static/js/4047.9b1db1a0.chunk.js.LICENSE.txt +6 -0
  127. package/static/js/4161.10fa2db8.chunk.js +2 -0
  128. package/static/js/4161.10fa2db8.chunk.js.LICENSE.txt +6 -0
  129. package/static/js/4197.8eec4e1e.chunk.js +2 -0
  130. package/static/js/4197.8eec4e1e.chunk.js.LICENSE.txt +6 -0
  131. package/static/js/4231.0dca1f81.js +1 -0
  132. package/static/js/433.e0f675e7.chunk.js +2 -0
  133. package/static/js/433.e0f675e7.chunk.js.LICENSE.txt +6 -0
  134. package/static/js/4337.cfa4be7c.chunk.js +2 -0
  135. package/static/js/4337.cfa4be7c.chunk.js.LICENSE.txt +6 -0
  136. package/static/js/4384.d7dc931a.js +2 -0
  137. package/static/js/4384.d7dc931a.js.LICENSE.txt +15 -0
  138. package/static/js/4465.1af39ca8.chunk.js +2 -0
  139. package/static/js/4465.1af39ca8.chunk.js.LICENSE.txt +6 -0
  140. package/static/js/4471.c28a2129.chunk.js +2 -0
  141. package/static/js/4471.c28a2129.chunk.js.LICENSE.txt +6 -0
  142. package/static/js/4609.b1d09cb3.chunk.js +2 -0
  143. package/static/js/4609.b1d09cb3.chunk.js.LICENSE.txt +6 -0
  144. package/static/js/4675.5a245a7a.js +1 -0
  145. package/static/js/4877.b90d1691.js +1 -0
  146. package/static/js/493.56a9ec50.chunk.js +2 -0
  147. package/static/js/493.56a9ec50.chunk.js.LICENSE.txt +6 -0
  148. package/static/js/4957.824c7499.chunk.js +2 -0
  149. package/static/js/4957.824c7499.chunk.js.LICENSE.txt +6 -0
  150. package/static/js/4963.d5f498ed.chunk.js +2 -0
  151. package/static/js/4963.d5f498ed.chunk.js.LICENSE.txt +6 -0
  152. package/static/js/5130.785486e8.js +2 -0
  153. package/static/js/5130.785486e8.js.LICENSE.txt +6 -0
  154. package/static/js/515.16219a24.js +2 -0
  155. package/static/js/515.16219a24.js.LICENSE.txt +6 -0
  156. package/static/js/5234.f4717ce4.js +1 -0
  157. package/static/js/5256.5152ffd5.js +1 -0
  158. package/static/js/5571.b22ca480.js +1 -0
  159. package/static/js/5606.a93f532c.js +1 -0
  160. package/static/js/5873.5fdbcd6c.js +1 -0
  161. package/static/js/5927.d93485f1.chunk.js +1 -0
  162. package/static/js/5957.d2ad88af.js +2 -0
  163. package/static/js/5957.d2ad88af.js.LICENSE.txt +9 -0
  164. package/static/js/5969.2b9f0751.js +1 -0
  165. package/static/js/5974.b325ee33.chunk.js +2 -0
  166. package/static/js/5974.b325ee33.chunk.js.LICENSE.txt +6 -0
  167. package/static/js/6133.0da38de9.js +1 -0
  168. package/static/js/6154.eda7a5eb.js +1 -0
  169. package/static/js/6177.cfd53511.chunk.js +2 -0
  170. package/static/js/6177.cfd53511.chunk.js.LICENSE.txt +6 -0
  171. package/static/js/6209.367effd7.chunk.js +2 -0
  172. package/static/js/6209.367effd7.chunk.js.LICENSE.txt +6 -0
  173. package/static/js/6210.e0532bdd.js +1 -0
  174. package/static/js/6219.e2ba95f7.chunk.js +2 -0
  175. package/static/js/6219.e2ba95f7.chunk.js.LICENSE.txt +6 -0
  176. package/static/js/6242.14f46d39.js +2 -0
  177. package/static/js/6242.14f46d39.js.LICENSE.txt +43 -0
  178. package/static/js/6289.46413f79.chunk.js +2 -0
  179. package/static/js/6289.46413f79.chunk.js.LICENSE.txt +6 -0
  180. package/static/js/6305.13b451ab.chunk.js +2 -0
  181. package/static/js/6305.13b451ab.chunk.js.LICENSE.txt +6 -0
  182. package/static/js/6313.16f2ea70.chunk.js +2 -0
  183. package/static/js/6313.16f2ea70.chunk.js.LICENSE.txt +6 -0
  184. package/static/js/6403.fdddaab8.js +1 -0
  185. package/static/js/6487.1bcde185.js +1 -0
  186. package/static/js/6529.67b52fe1.chunk.js +2 -0
  187. package/static/js/6529.67b52fe1.chunk.js.LICENSE.txt +6 -0
  188. package/static/js/6545.798ceede.chunk.js +2 -0
  189. package/static/js/6545.798ceede.chunk.js.LICENSE.txt +6 -0
  190. package/static/js/6567.e70469eb.js +1 -0
  191. package/static/js/657.c68af219.js +1 -0
  192. package/static/js/6633.2645f8a5.chunk.js +2 -0
  193. package/static/js/6633.2645f8a5.chunk.js.LICENSE.txt +6 -0
  194. package/static/js/665.6b528187.chunk.js +2 -0
  195. package/static/js/665.6b528187.chunk.js.LICENSE.txt +6 -0
  196. package/static/js/6659.3f40e62e.chunk.js +2 -0
  197. package/static/js/6659.3f40e62e.chunk.js.LICENSE.txt +6 -0
  198. package/static/js/6712.a85c5bf3.js +1 -0
  199. package/static/js/6873.36666f3b.chunk.js +2 -0
  200. package/static/js/6873.36666f3b.chunk.js.LICENSE.txt +6 -0
  201. package/static/js/6931.f1bfddce.chunk.js +2 -0
  202. package/static/js/6931.f1bfddce.chunk.js.LICENSE.txt +6 -0
  203. package/static/js/6945.feae0e01.js +1 -0
  204. package/static/js/6978.4572de86.chunk.js +2 -0
  205. package/static/js/6978.4572de86.chunk.js.LICENSE.txt +6 -0
  206. package/static/js/698.6e8cee9e.js +1 -0
  207. package/static/js/7099.df805007.js +1 -0
  208. package/static/js/7137.ce26a473.chunk.js +2 -0
  209. package/static/js/7137.ce26a473.chunk.js.LICENSE.txt +6 -0
  210. package/static/js/7167.8d977301.js +1 -0
  211. package/static/js/7297.55905776.chunk.js +2 -0
  212. package/static/js/7297.55905776.chunk.js.LICENSE.txt +6 -0
  213. package/static/js/7386.e4419bd3.js +1 -0
  214. package/static/js/7457.9d3d73f0.chunk.js +2 -0
  215. package/static/js/7457.9d3d73f0.chunk.js.LICENSE.txt +6 -0
  216. package/static/js/747.e69631e9.chunk.js +2 -0
  217. package/static/js/747.e69631e9.chunk.js.LICENSE.txt +6 -0
  218. package/static/js/7471.ae85b39d.js +1 -0
  219. package/static/js/753.3912652b.chunk.js +2 -0
  220. package/static/js/753.3912652b.chunk.js.LICENSE.txt +6 -0
  221. package/static/js/7698.28da948c.js +1 -0
  222. package/static/js/7768.49b35c46.js +1 -0
  223. package/static/js/7773.dbe2ce9b.js +1 -0
  224. package/static/js/7813.a2698e19.chunk.js +2 -0
  225. package/static/js/7813.a2698e19.chunk.js.LICENSE.txt +6 -0
  226. package/static/js/790.05e9f9b9.js +1 -0
  227. package/static/js/799.7d4b7962.chunk.js +2 -0
  228. package/static/js/799.7d4b7962.chunk.js.LICENSE.txt +6 -0
  229. package/static/js/8073.b0e835de.chunk.js +2 -0
  230. package/static/js/8073.b0e835de.chunk.js.LICENSE.txt +6 -0
  231. package/static/js/8154.ef02a714.js +1 -0
  232. package/static/js/8161.5ffffff0.chunk.js +2 -0
  233. package/static/js/8161.5ffffff0.chunk.js.LICENSE.txt +6 -0
  234. package/static/js/8179.acf16a1a.chunk.js +1 -0
  235. package/static/js/823.48325ac1.js +2 -0
  236. package/static/js/823.48325ac1.js.LICENSE.txt +7 -0
  237. package/static/js/8236.bdefaa6b.js +2 -0
  238. package/static/js/8236.bdefaa6b.js.LICENSE.txt +42 -0
  239. package/static/js/8325.41ced5ea.chunk.js +2 -0
  240. package/static/js/8325.41ced5ea.chunk.js.LICENSE.txt +6 -0
  241. package/static/js/8345.e3795419.js +1 -0
  242. package/static/js/8401.c2682208.chunk.js +2 -0
  243. package/static/js/8401.c2682208.chunk.js.LICENSE.txt +6 -0
  244. package/static/js/8405.427451ca.chunk.js +2 -0
  245. package/static/js/8405.427451ca.chunk.js.LICENSE.txt +6 -0
  246. package/static/js/8417.dd8c3bf1.chunk.js +2 -0
  247. package/static/js/8417.dd8c3bf1.chunk.js.LICENSE.txt +6 -0
  248. package/static/js/8447.56f9c146.js +1 -0
  249. package/static/js/8449.3924eedc.chunk.js +2 -0
  250. package/static/js/8449.3924eedc.chunk.js.LICENSE.txt +6 -0
  251. package/static/js/8545.5232cd96.chunk.js +2 -0
  252. package/static/js/8545.5232cd96.chunk.js.LICENSE.txt +6 -0
  253. package/static/js/8571.3cd299f9.chunk.js +2 -0
  254. package/static/js/8571.3cd299f9.chunk.js.LICENSE.txt +6 -0
  255. package/static/js/8573.2eb0c558.chunk.js +2 -0
  256. package/static/js/8573.2eb0c558.chunk.js.LICENSE.txt +6 -0
  257. package/static/js/8576.7d2900f8.js +1 -0
  258. package/static/js/8652.dd930977.js +1 -0
  259. package/static/js/8671.6a83db75.js +1 -0
  260. package/static/js/8689.e2d021af.chunk.js +1 -0
  261. package/static/js/8738.3ba7b2e7.js +2 -0
  262. package/static/js/8738.3ba7b2e7.js.LICENSE.txt +87 -0
  263. package/static/js/8740.a2a83fd4.js +1 -0
  264. package/static/js/8849.822eb43c.chunk.js +2 -0
  265. package/static/js/8849.822eb43c.chunk.js.LICENSE.txt +6 -0
  266. package/static/js/8865.19a4685d.chunk.js +2 -0
  267. package/static/js/8865.19a4685d.chunk.js.LICENSE.txt +6 -0
  268. package/static/js/8879.10db9af5.js +2 -0
  269. package/static/js/8879.10db9af5.js.LICENSE.txt +86 -0
  270. package/static/js/8912.0202829b.js +1 -0
  271. package/static/js/898.045789ed.js +1 -0
  272. package/static/js/9009.3a3823fe.chunk.js +2 -0
  273. package/static/js/9009.3a3823fe.chunk.js.LICENSE.txt +10 -0
  274. package/static/js/9019.7efd13af.js +2 -0
  275. package/static/js/9019.7efd13af.js.LICENSE.txt +96 -0
  276. package/static/js/9328.74394e00.js +1 -0
  277. package/static/js/9331.fb590698.js +1 -0
  278. package/static/js/9484.7637c43c.js +1 -0
  279. package/static/js/9485.9eeca498.chunk.js +2 -0
  280. package/static/js/9485.9eeca498.chunk.js.LICENSE.txt +6 -0
  281. package/static/js/9573.e444964a.chunk.js +2 -0
  282. package/static/js/9573.e444964a.chunk.js.LICENSE.txt +6 -0
  283. package/static/js/9649.ff98467b.js +1 -0
  284. package/static/js/9669.d08bf80a.chunk.js +2 -0
  285. package/static/js/9669.d08bf80a.chunk.js.LICENSE.txt +6 -0
  286. package/static/js/9691.ca82588e.chunk.js +2 -0
  287. package/static/js/9691.ca82588e.chunk.js.LICENSE.txt +6 -0
  288. package/static/js/9723.c2245912.chunk.js +2 -0
  289. package/static/js/9723.c2245912.chunk.js.LICENSE.txt +6 -0
  290. package/static/js/9725.60640f5c.chunk.js +2 -0
  291. package/static/js/9725.60640f5c.chunk.js.LICENSE.txt +6 -0
  292. package/static/js/9800.0bef2fed.chunk.js +2 -0
  293. package/static/js/9800.0bef2fed.chunk.js.LICENSE.txt +6 -0
  294. package/static/js/9878.cca6854e.js +2 -0
  295. package/static/js/9878.cca6854e.js.LICENSE.txt +8 -0
  296. package/static/js/9895.8824cd4c.chunk.js +2 -0
  297. package/static/js/9895.8824cd4c.chunk.js.LICENSE.txt +6 -0
  298. package/static/js/9907.0d22d89d.js +1 -0
  299. package/static/js/9969.455a2030.chunk.js +2 -0
  300. package/static/js/9969.455a2030.chunk.js.LICENSE.txt +6 -0
  301. package/static/js/ant-locale/locale0.fdb32a9f.chunk.js +1 -0
  302. package/static/js/ant-locale/locale1.5b1308da.chunk.js +1 -0
  303. package/static/js/ant-locale/locale10.f74ae841.chunk.js +1 -0
  304. package/static/js/ant-locale/locale11.cf703a34.chunk.js +1 -0
  305. package/static/js/ant-locale/locale13.9bcbe954.chunk.js +1 -0
  306. package/static/js/ant-locale/locale14.cb658550.chunk.js +1 -0
  307. package/static/js/ant-locale/locale15.e80eb12a.chunk.js +1 -0
  308. package/static/js/ant-locale/locale16.49bc0148.chunk.js +1 -0
  309. package/static/js/ant-locale/locale17.2daaf9a6.chunk.js +1 -0
  310. package/static/js/ant-locale/locale18.f9e62843.chunk.js +1 -0
  311. package/static/js/ant-locale/locale19.c98c053a.chunk.js +1 -0
  312. package/static/js/ant-locale/locale2.b54c0d79.chunk.js +1 -0
  313. package/static/js/ant-locale/locale20.b5cb6b02.chunk.js +1 -0
  314. package/static/js/ant-locale/locale21.7764c4b3.chunk.js +1 -0
  315. package/static/js/ant-locale/locale22.5cbb9959.chunk.js +1 -0
  316. package/static/js/ant-locale/locale23.2342f692.chunk.js +1 -0
  317. package/static/js/ant-locale/locale24.3c622cfa.chunk.js +1 -0
  318. package/static/js/ant-locale/locale25.7658de4e.chunk.js +1 -0
  319. package/static/js/ant-locale/locale26.b7e751bd.chunk.js +1 -0
  320. package/static/js/ant-locale/locale27.a47676d9.chunk.js +1 -0
  321. package/static/js/ant-locale/locale28.c89eee28.chunk.js +1 -0
  322. package/static/js/ant-locale/locale3.48f0afe7.chunk.js +1 -0
  323. package/static/js/ant-locale/locale30.4d3672db.chunk.js +1 -0
  324. package/static/js/ant-locale/locale31.406215d5.chunk.js +1 -0
  325. package/static/js/ant-locale/locale32.6167b5e8.chunk.js +1 -0
  326. package/static/js/ant-locale/locale33.4be05b3c.chunk.js +1 -0
  327. package/static/js/ant-locale/locale34.3813ab2f.chunk.js +1 -0
  328. package/static/js/ant-locale/locale35.d58b9c31.chunk.js +1 -0
  329. package/static/js/ant-locale/locale36.34d5c9ee.chunk.js +1 -0
  330. package/static/js/ant-locale/locale37.1c16e25b.chunk.js +1 -0
  331. package/static/js/ant-locale/locale38.dfa6d712.chunk.js +1 -0
  332. package/static/js/ant-locale/locale39.31c90381.chunk.js +1 -0
  333. package/static/js/ant-locale/locale4.e6fdd0ee.chunk.js +1 -0
  334. package/static/js/ant-locale/locale40.fe7ab935.chunk.js +1 -0
  335. package/static/js/ant-locale/locale41.4dee0621.chunk.js +1 -0
  336. package/static/js/ant-locale/locale42.7061d0fc.chunk.js +1 -0
  337. package/static/js/ant-locale/locale43.b3c810a8.chunk.js +1 -0
  338. package/static/js/ant-locale/locale44.df0a5a76.chunk.js +1 -0
  339. package/static/js/ant-locale/locale45.a7f6f97e.chunk.js +1 -0
  340. package/static/js/ant-locale/locale46.8f49c2cd.chunk.js +1 -0
  341. package/static/js/ant-locale/locale47.b84733ce.chunk.js +1 -0
  342. package/static/js/ant-locale/locale48.bfb8c2b3.chunk.js +1 -0
  343. package/static/js/ant-locale/locale49.c67382b7.chunk.js +1 -0
  344. package/static/js/ant-locale/locale5.b2b61134.chunk.js +1 -0
  345. package/static/js/ant-locale/locale50.6520fd45.chunk.js +1 -0
  346. package/static/js/ant-locale/locale51.9b89fb56.chunk.js +1 -0
  347. package/static/js/ant-locale/locale52.11d21631.chunk.js +1 -0
  348. package/static/js/ant-locale/locale53.cea142dd.chunk.js +1 -0
  349. package/static/js/ant-locale/locale54.16ef125d.chunk.js +1 -0
  350. package/static/js/ant-locale/locale55.b1a653c1.chunk.js +1 -0
  351. package/static/js/ant-locale/locale56.83c76bd5.chunk.js +1 -0
  352. package/static/js/ant-locale/locale57.e685764a.chunk.js +1 -0
  353. package/static/js/ant-locale/locale58.d003f49e.chunk.js +1 -0
  354. package/static/js/ant-locale/locale59.556522b5.chunk.js +1 -0
  355. package/static/js/ant-locale/locale60.bf3ddb83.chunk.js +1 -0
  356. package/static/js/ant-locale/locale61.30fe9720.chunk.js +1 -0
  357. package/static/js/ant-locale/locale62.b21e6edb.chunk.js +1 -0
  358. package/static/js/ant-locale/locale63.8e66417e.chunk.js +1 -0
  359. package/static/js/ant-locale/locale64.fdae6858.chunk.js +1 -0
  360. package/static/js/ant-locale/locale65.58003560.chunk.js +1 -0
  361. package/static/js/ant-locale/locale66.94ea41f2.chunk.js +1 -0
  362. package/static/js/ant-locale/locale68.8a9f32b5.chunk.js +1 -0
  363. package/static/js/ant-locale/locale69.27295717.chunk.js +1 -0
  364. package/static/js/ant-locale/locale7.1509b3e0.chunk.js +1 -0
  365. package/static/js/ant-locale/locale70.964bc038.chunk.js +1 -0
  366. package/static/js/ant-locale/locale71.99926e0d.chunk.js +1 -0
  367. package/static/js/ant-locale/locale8.134136c4.chunk.js +1 -0
  368. package/static/js/ant-locale/locale9.9b87d751.chunk.js +1 -0
  369. package/static/js/emailmaker_core.ea017ac4.js +1 -0
  370. package/static/js/mergeTags/locale0.23c595c1.chunk.js +1 -0
  371. package/static/js/mergeTags/locale1.3448e6cb.chunk.js +1 -0
  372. package/static/js/mocks.90ebae7c.chunk.js +1 -0
  373. package/static/media/ai-image.7c42c2e1.png +0 -0
  374. package/static/media/codicon.f13d28f3.ttf +0 -0
  375. package/static/media/empty-image.1827d656.png +0 -0
  376. package/static/media/frame_dark.318d7ed5.png +0 -0
  377. package/static/media/frame_light.22a9b4ec.png +0 -0
  378. package/static/media/frame_template_gallery.85693b39.png +0 -0
  379. package/static/media/icon-border-radius.2a56b93a7711558098a622296b7ae2e1.svg +1 -0
  380. package/static/media/icon-create-block.0b077f4000bf7907b9ea871d28c7fb1e.svg +1 -0
  381. package/static/media/sign_up_01.33327158.png +0 -0
  382. package/static/media/sign_up_01_blocks.5538cfdb.png +0 -0
  383. package/static/media/sign_up_02.d99d2aa6.png +0 -0
  384. package/static/media/sign_up_02_blocks.837fc2c9.png +0 -0
  385. package/static/media/sign_up_03.5545ffad.png +0 -0
  386. package/static/media/sign_up_03_blocks.126601f7.png +0 -0
  387. package/static/media/sign_up_04.398a4ca5.png +0 -0
  388. package/static/media/sign_up_04_blocks.255c5c07.png +0 -0
  389. package/static/media/sign_up_05.4c58df1b.png +0 -0
  390. package/static/media/sign_up_05_blocks.431b6844.png +0 -0
  391. package/static/media/video.854adea5.png +0 -0
  392. package/translations.pot +92 -92
  393. package/ts.worker.js +2 -0
  394. package/ts.worker.js.LICENSE.txt +21 -0
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[8652],{99774:(e,t,n)=>{n.d(t,{r:()=>g});var i=n(99826),s=n(16201),o=n(55746),r=n(34235),a=n(63102),l=n(93708),h=n(4707),c=n(52174),u=n(39762);class d{static chord(e,t){return(0,o.m5)(e,t)}}function g(){return{editor:void 0,languages:void 0,CancellationTokenSource:i.Q,Emitter:s.vl,KeyCode:u.DD,KeyMod:d,Position:a.y,Range:l.Q,Selection:h.L,SelectionDirection:u.SB,MarkerSeverity:u.cj,MarkerTag:u.d_,Uri:r.r,Token:c.ou}}d.CtrlCmd=2048,d.Shift=1024,d.Alt=512,d.WinCtrl=256},30737:(e,t,n)=>{n.d(t,{Wg:()=>C});var i=n(75923),s=n(76394),o=n(34235),r=n(63102),a=n(93708),l=n(2487),h=n(93750),c=n(58181),u=n(19600),d=n(92675),g=n(99774),m=n(86448),f=n(39154),p=n(69622),_=function(e,t,n,i){return new(n||(n=Promise))((function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}l((i=i.apply(e,t||[])).next())}))};class L extends h.Y{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=(0,c.Th)(e.column,(0,c.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,s="",o=0,r=[];return{*[Symbol.iterator](){for(;;)if(o<r.length){const e=s.substring(r[o].start,r[o].end);o+=1,yield e}else{if(!(i<t.length))break;s=t[i],r=n(s,e),o=0,i+=1}}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),s=[];for(const o of i)s.push({word:n.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return s}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,s=[];s.push(this._lines[n].substring(e.startColumn-1));for(let o=n+1;o<i;o++)s.push(this._lines[o]);return s.push(this._lines[i].substring(0,e.endColumn-1)),s.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!r.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}class C{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new L(o.r.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,t,n){return _(this,void 0,void 0,(function*(){const i=this._getModel(e);return i?p.P.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}))}computeDiff(e,t,n,i){return _(this,void 0,void 0,(function*(){const s=this._getModel(e),o=this._getModel(t);return s&&o?C.computeDiff(s,o,n,i):null}))}static computeDiff(e,t,n,i){const s=e.getLinesContent(),o=t.getLinesContent(),r=new l.h(s,o,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}).computeDiff(),a=!(r.changes.length>0)&&this._modelsAreIdentical(e,t);return{quitEarly:r.quitEarly,identical:a,changes:r.changes}}static _modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}computeMoreMinimalEdits(e,t){return _(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const s=[];let o;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return a.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));for(let{range:e,text:r,eol:l}of t){if("number"===typeof l&&(o=l),a.Q.isEmpty(e)&&!r)continue;const t=n.getValueInRange(e);if(r=r.replace(/\r\n|\n|\r/g,n.eol),t===r)continue;if(Math.max(r.length,t.length)>C._diffLimit){s.push({range:e,text:r});continue}const h=(0,i.F1)(t,r,!1),c=n.offsetAt(a.Q.lift(e).getStartPosition());for(const e of h){const t=n.positionAt(c+e.originalStart),i=n.positionAt(c+e.originalStart+e.originalLength),o={text:r.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};n.getValueInRange(o.range)!==o.text&&s.push(o)}}return"number"===typeof o&&s.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}))}computeLinks(e){return _(this,void 0,void 0,(function*(){const t=this._getModel(e);return t?(0,u.dH)(t):null}))}textualSuggest(e,t,n,i){return _(this,void 0,void 0,(function*(){const s=new f.W(!0),o=new RegExp(n,i),r=new Set;e:for(const n of e){const e=this._getModel(n);if(e)for(const n of e.words(o))if(n!==t&&isNaN(Number(n))&&(r.add(n),r.size>C._suggestionsLimit))break e}return{words:Array.from(r),duration:s.elapsed()}}))}computeWordRanges(e,t,n,i){return _(this,void 0,void 0,(function*(){const s=this._getModel(e);if(!s)return Object.create(null);const o=new RegExp(n,i),r=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++){const t=s.getLineWords(e,o);for(const n of t){if(!isNaN(Number(n.word)))continue;let t=r[n.word];t||(t=[],r[n.word]=t),t.push({startLineNumber:e,startColumn:n.startColumn,endLineNumber:e,endColumn:n.endColumn})}}return r}))}navigateValueSet(e,t,n,i,s){return _(this,void 0,void 0,(function*(){const o=this._getModel(e);if(!o)return null;const r=new RegExp(i,s);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=o.getValueInRange(t),l=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},r);if(!l)return null;const h=o.getValueInRange(l);return d.v.INSTANCE.navigateValueSet(t,a,l,h,n)}))}loadForeignModule(e,t,n){const i={host:m.kT(n,((e,t)=>this._host.fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve(m.V0(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}C._diffLimit=1e5,C._suggestionsLimit=1e4,"function"===typeof importScripts&&(s.zQ.monaco=(0,g.r)())},22371:(e,t,n)=>{n.d(t,{w:()=>i});const i=(0,n(3660).u1)("editorWorkerService")},29975:(e,t,n)=>{n.d(t,{I:()=>l});var i=n(15263),s=n(68040),o=n(75562),r=n(50348);const a=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function l(e,t,n,l){const c=l===r.p.ROOT_FOLDER?["rootfolder-icon"]:l===r.p.FOLDER?["folder-icon"]:["file-icon"];if(n){let u;if(n.scheme===i.ny.data){u=s.B6.parseMetaData(n).get(s.B6.META_DATA_LABEL)}else{const e=n.path.match(a);e?(u=h(e[2].toLowerCase()),e[1]&&c.push(`${h(e[1].toLowerCase())}-name-dir-icon`)):u=h(n.authority.toLowerCase())}if(l===r.p.FOLDER)c.push(`${u}-name-folder-icon`);else{if(u){if(c.push(`${u}-name-file-icon`),c.push("name-file-icon"),u.length<=255){const e=u.split(".");for(let t=1;t<e.length;t++)c.push(`${e.slice(t).join(".")}-ext-file-icon`)}c.push("ext-file-icon")}const r=function(e,t,n){if(!n)return null;let r=null;if(n.scheme===i.ny.data){const e=s.B6.parseMetaData(n).get(s.B6.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(r=t.getLanguageId())}if(r&&r!==o.vH)return r;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);r&&c.push(`${h(r)}-lang-file-icon`)}}return c}function h(e){return e.replace(/[\11\12\14\15\40]/g,"/")}},42605:(e,t,n)=>{n.d(t,{nZ:()=>S,aw:()=>C,WG:()=>b,br:()=>L,BB:()=>f,yS:()=>p});var i=n(99826),s=n(79734),o=n(34235),r=n(61883),a=n(93308),l=n(86448),h=n(98163),c=n(76394);function u(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const i of e.deltas)t[n++]=i.start,t[n++]=i.deleteCount,i.data?(t[n++]=i.data.length,t.set(i.data,n),n+=i.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return c.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],i=e[t+1],s=e[t+2],o=e[t+3];e[t+0]=o,e[t+1]=s,e[t+2]=i,e[t+3]=n}}(t),h.MB.wrap(t)}(t)}var d=n(93708),g=n(51209),m=function(e,t,n,i){return new(n||(n=Promise))((function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}l((i=i.apply(e,t||[])).next())}))};function f(e){return e&&!!e.data}function p(e){return e&&Array.isArray(e.edits)}class _{constructor(e,t,n){this.provider=e,this.tokens=t,this.error=n}}function L(e,t){return e.has(t)}function C(e,t,n,i,s){return m(this,void 0,void 0,(function*(){const o=function(e,t){const n=e.orderedGroups(t);return n.length>0?n[0]:[]}(e,t),r=yield Promise.all(o.map((e=>m(this,void 0,void 0,(function*(){let o,r=null;try{o=yield e.provideDocumentSemanticTokens(t,e===n?i:null,s)}catch(a){r=a,o=null}return o&&(f(o)||p(o))||(o=null),new _(e,o,r)})))));for(const e of r){if(e.error)throw e.error;if(e.tokens)return e}return r.length>0?r[0]:null}))}class w{constructor(e,t){this.provider=e,this.tokens=t}}function b(e,t){return e.has(t)}function v(e,t){const n=e.orderedGroups(t);return n.length>0?n[0]:[]}function S(e,t,n,i){return m(this,void 0,void 0,(function*(){const o=v(e,t),r=yield Promise.all(o.map((e=>m(this,void 0,void 0,(function*(){let o;try{o=yield e.provideDocumentRangeSemanticTokens(t,n,i)}catch(r){(0,s.M_)(r),o=null}return o&&f(o)||(o=null),new w(e,o)})))));for(const e of r)if(e.tokens)return e;return r.length>0?r[0]:null}))}a.wb.registerCommand("_provideDocumentSemanticTokensLegend",((e,...t)=>m(void 0,void 0,void 0,(function*(){const[n]=t;(0,l.j)(n instanceof o.r);const i=e.get(r.S).getModel(n);if(!i)return;const{documentSemanticTokensProvider:s}=e.get(g.u),h=function(e,t){const n=e.orderedGroups(t);return n.length>0?n[0]:null}(s,i);return h?h[0].getLegend():e.get(a.wT).executeCommand("_provideDocumentRangeSemanticTokensLegend",n)})))),a.wb.registerCommand("_provideDocumentSemanticTokens",((e,...t)=>m(void 0,void 0,void 0,(function*(){const[n]=t;(0,l.j)(n instanceof o.r);const s=e.get(r.S).getModel(n);if(!s)return;const{documentSemanticTokensProvider:h}=e.get(g.u);if(!L(h,s))return e.get(a.wT).executeCommand("_provideDocumentRangeSemanticTokens",n,s.getFullModelRange());const c=yield C(h,s,null,null,i.X.None);if(!c)return;const{provider:d,tokens:m}=c;if(!m||!f(m))return;const p=u({id:0,type:"full",data:m.data});return m.resultId&&d.releaseDocumentSemanticTokens(m.resultId),p})))),a.wb.registerCommand("_provideDocumentRangeSemanticTokensLegend",((e,...t)=>m(void 0,void 0,void 0,(function*(){const[n,s]=t;(0,l.j)(n instanceof o.r);const a=e.get(r.S).getModel(n);if(!a)return;const{documentRangeSemanticTokensProvider:h}=e.get(g.u),c=v(h,a);if(0===c.length)return;if(1===c.length)return c[0].getLegend();if(!s||!d.Q.isIRange(s))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),c[0].getLegend();const u=yield S(h,a,d.Q.lift(s),i.X.None);return u?u.provider.getLegend():void 0})))),a.wb.registerCommand("_provideDocumentRangeSemanticTokens",((e,...t)=>m(void 0,void 0,void 0,(function*(){const[n,s]=t;(0,l.j)(n instanceof o.r),(0,l.j)(d.Q.isIRange(s));const a=e.get(r.S).getModel(n);if(!a)return;const{documentRangeSemanticTokensProvider:h}=e.get(g.u),c=yield S(h,a,d.Q.lift(s),i.X.None);return c&&c.tokens?u({id:0,type:"full",data:c.tokens.data}):void 0}))))},56345:(e,t,n)=>{n.d(t,{U:()=>d});var i=n(80705),s=n(19459),o=n(4947),r=n(22967),a=n(3660),l=n(92798),h=n(49172),c=function(e,t,n,i){var s,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,n,r):s(t,n))||r);return o>3&&r&&Object.defineProperty(t,n,r),r},u=function(e,t){return function(n,i){t(n,i,e)}};const d=(0,a.u1)("ILanguageFeatureDebounceService");var g;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let i=t.get(e);return void 0===i&&(i=++n,t.set(e,i)),i}}(g||(g={}));class m{constructor(e,t,n,i,o,r){this._logService=e,this._name=t,this._registry=n,this._default=i,this._min=o,this._max=r,this._cache=new s.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,i.sN)(g.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?(0,o.qE)(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let i=this._cache.get(n);i||(i=new o.mu(6),this._cache.set(n,i));const s=(0,o.qE)(i.update(t),this._min,this._max);return(0,h.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${s}ms`),s}_overall(){const e=new o.Uq;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=0|this._overall()||this._default;return(0,o.qE)(e,this._min,this._max)}}let f=class{constructor(e){this._logService=e,this._data=new Map}for(e,t,n){var i,s,o;const r=null!==(i=null===n||void 0===n?void 0:n.min)&&void 0!==i?i:50,a=null!==(s=null===n||void 0===n?void 0:n.max)&&void 0!==s?s:Math.pow(r,2),l=null!==(o=null===n||void 0===n?void 0:n.key)&&void 0!==o?o:void 0,h=`${g.of(e)},${r}${l?","+l:""}`;let c=this._data.get(h);return c||(c=new m(this._logService,t,e,0|this._overallAverage()||1.5*r,r,a),this._data.set(h,c)),c}_overallAverage(){const e=new o.Uq;for(const t of this._data.values())e.update(t.default());return e.value}};f=c([u(0,l.rr)],f),(0,r.v)(d,f,!0)},51209:(e,t,n)=>{n.d(t,{u:()=>i});const i=(0,n(3660).u1)("ILanguageFeaturesService")},98854:(e,t,n)=>{var i=n(34861),s=n(51209),o=n(22967);(0,o.v)(s.u,class{constructor(){this.referenceProvider=new i.k(this._score.bind(this)),this.renameProvider=new i.k(this._score.bind(this)),this.codeActionProvider=new i.k(this._score.bind(this)),this.definitionProvider=new i.k(this._score.bind(this)),this.typeDefinitionProvider=new i.k(this._score.bind(this)),this.declarationProvider=new i.k(this._score.bind(this)),this.implementationProvider=new i.k(this._score.bind(this)),this.documentSymbolProvider=new i.k(this._score.bind(this)),this.inlayHintsProvider=new i.k(this._score.bind(this)),this.colorProvider=new i.k(this._score.bind(this)),this.codeLensProvider=new i.k(this._score.bind(this)),this.documentFormattingEditProvider=new i.k(this._score.bind(this)),this.documentRangeFormattingEditProvider=new i.k(this._score.bind(this)),this.onTypeFormattingEditProvider=new i.k(this._score.bind(this)),this.signatureHelpProvider=new i.k(this._score.bind(this)),this.hoverProvider=new i.k(this._score.bind(this)),this.documentHighlightProvider=new i.k(this._score.bind(this)),this.selectionRangeProvider=new i.k(this._score.bind(this)),this.foldingRangeProvider=new i.k(this._score.bind(this)),this.linkProvider=new i.k(this._score.bind(this)),this.inlineCompletionsProvider=new i.k(this._score.bind(this)),this.completionProvider=new i.k(this._score.bind(this)),this.linkedEditingRangeProvider=new i.k(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new i.k(this._score.bind(this)),this.documentSemanticTokensProvider=new i.k(this._score.bind(this)),this.documentOnDropEditProvider=new i.k(this._score.bind(this)),this.documentPasteEditProvider=new i.k(this._score.bind(this))}_score(e){var t;return null===(t=this._notebookTypeResolver)||void 0===t?void 0:t.call(this,e)}},!0)},95659:(e,t,n)=>{n.d(t,{g:()=>y});var i=n(16201),s=n(33793),o=n(79734),r=n(22231),a=n(36519),l=n(79741),h=n(15263),c=n(17807),u=n(68040),d=n(75562);let g=[],m=[],f=[];function p(e,t=!1){!function(e,t,n){const i=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,a.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(c.SA.sep)>=0}}(e,t);g.push(i),i.userConfigured?f.push(i):m.push(i);n&&!i.userConfigured&&g.forEach((e=>{e.mime===i.mime||e.userConfigured||(i.extension&&e.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&e.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&e.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&e.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))}))}(e,!1,t)}function _(e,t){return function(e,t){let n;if(e)switch(e.scheme){case h.ny.file:n=e.fsPath;break;case h.ny.data:n=u.B6.parseMetaData(e).get(u.B6.META_DATA_LABEL);break;case h.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:l.K.unknown}];n=n.toLowerCase();const i=(0,c.P8)(n),s=L(n,i,f);if(s)return[s,{id:d.vH,mime:l.K.text}];const o=L(n,i,m);if(o)return[o,{id:d.vH,mime:l.K.text}];if(t){const e=function(e){(0,r.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=g.length-1;t>=0;t--){const n=g[t];if(!n.firstline)continue;const i=e.match(n.firstline);if(i&&i.length>0)return n}return}(t);if(e)return[e,{id:d.vH,mime:l.K.text}]}return[{id:"unknown",mime:l.K.unknown}]}(e,t).map((e=>e.id))}function L(e,t,n){var i;let s,o,r;for(let a=n.length-1;a>=0;a--){const l=n[a];if(t===l.filenameLowercase){s=l;break}if(l.filepattern&&(!o||l.filepattern.length>o.filepattern.length)){const n=l.filepatternOnPath?e:t;(null===(i=l.filepatternLowercase)||void 0===i?void 0:i.call(l,n))&&(o=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&t.endsWith(l.extensionLowercase)&&(r=l)}return s||(o||(r||void 0))}var C=n(24673),w=n(97980);const b=Object.prototype.hasOwnProperty,v="vs.editor.nullLanguage";class S{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(v,0),this._register(d.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||v}}class I extends s.jG{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,I.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new S,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(d.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){I.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},g=g.filter((e=>e.userConfigured)),m=[];const e=[].concat(d.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),w.O.as(C.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;b.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let i=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),i=t.mimetypes[0]),i||(i=`text/x-${n}`,e.mimetypes.push(i)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)p({id:n,mime:i,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const o of t.filenames)p({id:n,mime:i,filename:o},this._warnOnOverwrite),e.filenames.push(o);if(Array.isArray(t.filenamePatterns))for(const o of t.filenamePatterns)p({id:n,mime:i,filepattern:o},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,r.eY)(t)||p({id:n,mime:i,firstline:t},this._warnOnOverwrite)}catch(l){(0,o.dz)(l)}}e.aliases.push(n);let s=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(s=0===t.aliases.length?[null]:t.aliases),null!==s)for(const o of s)o&&0!==o.length&&e.aliases.push(o);const a=null!==s&&s.length>0;if(a&&null===s[0]);else{const t=(a?s[0]:null)||n;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&b.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return b.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&b.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?_(e,t):[]}}I.instanceCount=0;var k=n(8415),N=n(52174);class y extends s.jG{constructor(e=!1){super(),this._onDidEncounterLanguage=this._register(new i.vl),this.onDidEncounterLanguage=this._onDidEncounterLanguage.event,this._onDidChange=this._register(new i.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,y.instanceCount++,this._encounteredLanguages=new Set,this._registry=this._register(new I(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){y.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,k.Fy)(n,null)}createById(e){return new M(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new M(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=d.vH),this._encounteredLanguages.has(e)||(this._encounteredLanguages.add(e),N.dG.getOrCreate(e),this._onDidEncounterLanguage.fire(e)),e}}y.instanceCount=0;class M{constructor(e,t){this._onDidChangeLanguages=e,this._selector=t,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages((()=>this._evaluate()))),this._emitter||(this._emitter=new i.vl({onLastListenerRemove:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var e;const t=this._selector();t!==this.languageId&&(this.languageId=t,null===(e=this._emitter)||void 0===e||e.fire(this.languageId))}}},25879:(e,t,n)=>{n.d(t,{A:()=>i});const i=(0,n(3660).u1)("markerDecorationsService")},28576:(e,t,n)=>{n.d(t,{D:()=>_});var i=n(30276),s=n(33793),o=n(1528),r=n(87357),a=n(69018),l=n(61883),h=n(93708),c=n(15263),u=n(16201),d=n(64709),g=n(19459),m=function(e,t,n,i){var s,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,n,r):s(t,n))||r);return o>3&&r&&Object.defineProperty(t,n,r),r},f=function(e,t){return function(n,i){t(n,i,e)}};class p extends s.jG{constructor(e){super(),this.model=e,this._markersData=new Map,this._register((0,s.s)((()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()})))}update(e,t){const n=[...this._markersData.keys()];this._markersData.clear();const i=this.model.deltaDecorations(n,t);for(let s=0;s<i.length;s++)this._markersData.set(i[s],e[s]);return 0!==n.length||0!==i.length}getMarker(e){return this._markersData.get(e.id)}}let _=class extends s.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new u.vl),this._markerDecorations=new g.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new p(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){var t;const n=this._markerDecorations.get(e.uri);n&&(n.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==c.ny.inMemory&&e.uri.scheme!==c.ny.internal&&e.uri.scheme!==c.ny.vscode||null===(t=this._markerService)||void 0===t||t.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500}),n=t.map((t=>({range:this._createDecorationRange(e.model,t),options:this._createDecorationOption(t)})));e.update(t,n)&&this._onDidChangeMarker.fire(e.model)}_createDecorationRange(e,t){let n=h.Q.lift(t);if(t.severity!==i.cj.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const i=e.getWordAtPosition(n.getStartPosition());i&&(n=new h.Q(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const i=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);i<n.endColumn&&(n=new h.Q(n.startLineNumber,i,n.endLineNumber,n.endColumn),t.startColumn=i)}return n}_createDecorationOption(e){let t,n,s,l,h;switch(e.severity){case i.cj.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",s=0;break;case i.cj.Warning:t="squiggly-warning",n=(0,r.Yf)(a.aZ),s=20,h={color:(0,r.Yf)(d.uMG),position:o.R3.Inline};break;case i.cj.Info:t="squiggly-info",n=(0,r.Yf)(a.AQ),s=10;break;case i.cj.Error:default:t="squiggly-error",n=(0,r.Yf)(a.yI),s=30,h={color:(0,r.Yf)(d.yLC),position:o.R3.Inline}}return e.tags&&(-1!==e.tags.indexOf(1)&&(l="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(l="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:o.A5.Right},minimap:h,zIndex:s,inlineClassName:l}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}};_=m([f(0,l.S),f(1,i.DR)],_)},61883:(e,t,n)=>{n.d(t,{S:()=>i});const i=(0,n(3660).u1)("modelService")},15316:(e,t,n)=>{n.d(t,{JW:()=>x,r8:()=>A,rT:()=>W});var i=n(16201),s=n(33793),o=n(76394),r=n(79734),a=n(21174),l=n(20343),h=n(75562),c=n(21051),u=n(61883),d=n(40905),g=n(17030),m=n(85345),f=n(99826),p=n(87357),_=n(92798),L=n(60332),C=n(80705),w=n(33695),b=n(15263),v=n(90439),S=n(42605),I=n(65321),k=n(7117),N=n(56345),y=n(39154),M=n(51209),T=function(e,t,n,i){var s,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,n,r):s(t,n))||r);return o>3&&r&&Object.defineProperty(t,n,r),r},D=function(e,t){return function(n,i){t(n,i,e)}};function O(e){return e.toString()}function V(e){const t=new C.v7,n=e.createSnapshot();let i;for(;i=n.read();)t.update(i);return t.digest()}class E{constructor(e,t,n){this._modelEventListeners=new s.Cm,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(e){this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange((()=>this.model.setMode(e.languageId))),this.model.setMode(e.languageId)}}const P=o.j9||o.zx?1:2;class R{constructor(e,t,n,i,s,o,r,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=i,this.heapSize=s,this.sha1=o,this.versionId=r,this.alternativeVersionId=a}}let x=class e extends s.jG{constructor(e,t,n,s,o,r,a,l,h){super(),this._configurationService=e,this._resourcePropertiesService=t,this._themeService=n,this._logService=s,this._undoRedoService=o,this._languageService=r,this._languageConfigurationService=a,this._languageFeatureDebounceService=l,this._onModelAdded=this._register(new i.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new i.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new i.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new H(this._themeService,this._languageService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration((()=>this._updateModelOptions()))),this._updateModelOptions(),this._register(new F(this._semanticStyling,this,this._themeService,this._configurationService,this._languageFeatureDebounceService,h))}static _readModelOptions(e,t){var n;let i=l.R.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(i=t),i<1&&(i=1)}let s=i;if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(s=t),s<1&&(s=1)}let o=l.R.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(o="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let r=P;const a=e.eol;"\r\n"===a?r=2:"\n"===a&&(r=1);let h=l.R.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(h="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let c=l.R.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let u=l.R.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(u="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let d=l.R.bracketPairColorizationOptions;return(null===(n=e.editor)||void 0===n?void 0:n.bracketPairColorization)&&"object"===typeof e.editor.bracketPairColorization&&(d={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:i,indentSize:s,insertSpaces:o,detectIndentation:c,defaultEOL:r,trimAutoWhitespace:h,largeFileOptimizations:u,bracketPairColorizationOptions:d}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===o.OS||2===o.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(t,n,i){let s=this._modelCreationOptionsByLanguageAndResource[t+n];if(!s){const o=this._configurationService.getValue("editor",{overrideIdentifier:t,resource:n}),r=this._getEOL(n,t);s=e._readModelOptions({editor:o,eol:r},i),this._modelCreationOptionsByLanguageAndResource[t+n]=s}return s}_updateModelOptions(){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let i=0,s=n.length;i<s;i++){const s=n[i],o=this._models[s],r=o.model.getLanguageId(),a=o.model.uri,l=t[r+a],h=this.getCreationOptions(r,a,o.model.isForSimpleWidget);e._setModelOptionsForModel(o.model,h,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,I.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(O(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(O(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(O(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,i){const s=this.getCreationOptions(t,n,i),o=new a.Bz(e,t,s,n,this._undoRedoService,this._languageService,this._languageConfigurationService);if(n&&this._disposedModels.has(O(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),i=V(o)===e.sha1;if(i||e.sharesUndoRedoStack){for(const e of t.past)(0,w.Th)(e)&&e.matchesResource(n)&&e.setModel(o);for(const e of t.future)(0,w.Th)(e)&&e.matchesResource(n)&&e.setModel(o);this._undoRedoService.setElementsValidFlag(n,!0,(e=>(0,w.Th)(e)&&e.matchesResource(n))),i&&(o._overwriteVersionId(e.versionId),o._overwriteAlternativeVersionId(e.alternativeVersionId),o._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const r=O(o.uri);if(this._models[r])throw new Error("ModelService: Cannot add model because it already exists!");const l=new E(o,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[r]=l,l}createModel(e,t,n,i=!1){let s;return t?(s=this._createModelData(e,t.languageId,n,i),this.setMode(s.model,t)):s=this._createModelData(e,h.vH,n,i),this._onModelAdded.fire(s.model),s.model}setMode(e,t){if(!t)return;const n=this._models[O(e.uri)];n&&n.setLanguage(t)}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._models[i].model)}return e}getModel(e){const t=O(e),n=this._models[t];return n?n.model:null}getSemanticTokensProviderStyling(e){return this._semanticStyling.get(e)}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===b.ny.file||e.scheme===b.ny.vscodeRemote||e.scheme===b.ny.vscodeUserData||e.scheme===b.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(t){const n=O(t.uri),i=this._models[n],s=this._undoRedoService.getUriComparisonKey(t.uri)!==t.uri.toString();let o=!1,r=0;if(s||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(t.uri)){const e=this._undoRedoService.getElements(t.uri);if(e.past.length>0||e.future.length>0){for(const n of e.past)(0,w.Th)(n)&&n.matchesResource(t.uri)&&(o=!0,r+=n.heapSize(t.uri),n.setModel(t.uri));for(const n of e.future)(0,w.Th)(n)&&n.matchesResource(t.uri)&&(o=!0,r+=n.heapSize(t.uri),n.setModel(t.uri))}}const a=e.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(o)if(!s&&r>a){const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else this._ensureDisposedModelsHeapSize(a-r),this._undoRedoService.setElementsValidFlag(t.uri,!1,(e=>(0,w.Th)(e)&&e.matchesResource(t.uri))),this._insertDisposedModel(new R(t.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),s,r,V(t),t.getVersionId(),t.getAlternativeVersionId()));else if(!s){const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[n],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[t.getLanguageId()+t.uri],this._onModelRemoved.fire(t)}_onDidChangeLanguage(t,n){const i=n.oldLanguage,s=t.getLanguageId(),o=this.getCreationOptions(i,t.uri,t.isForSimpleWidget),r=this.getCreationOptions(s,t.uri,t.isForSimpleWidget);e._setModelOptionsForModel(t,r,o),this._onModelModeChanged.fire({model:t,oldLanguageId:i})}};x.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,x=T([D(0,g.pG),D(1,d.J),D(2,p.Gy),D(3,_.rr),D(4,L.$D),D(5,c.L),D(6,k.JZ),D(7,N.U),D(8,M.u)],x);const A="editor.semanticHighlighting";function W(e,t,n){var i;const s=null===(i=n.getValue(A,{overrideIdentifier:e.getLanguageId(),resource:e.uri}))||void 0===i?void 0:i.enabled;return"boolean"===typeof s?s:t.getColorTheme().semanticHighlighting}let F=class extends s.jG{constructor(e,t,n,i,s,o){super(),this._watchers=Object.create(null),this._semanticStyling=e;const r=e=>{this._watchers[e.uri.toString()]=new B(e,this._semanticStyling,n,s,o)},a=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},l=()=>{for(const e of t.getModels()){const t=this._watchers[e.uri.toString()];W(e,n,i)?t||r(e):t&&a(e,t)}};this._register(t.onModelAdded((e=>{W(e,n,i)&&r(e)}))),this._register(t.onModelRemoved((e=>{const t=this._watchers[e.uri.toString()];t&&a(e,t)}))),this._register(i.onDidChangeConfiguration((e=>{e.affectsConfiguration(A)&&l()}))),this._register(n.onDidColorThemeChange(l))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};F=T([D(1,u.S),D(2,p.Gy),D(3,g.pG),D(4,N.U),D(5,M.u)],F);class H extends s.jG{constructor(e,t,n){super(),this._themeService=e,this._languageService=t,this._logService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}get(e){return this._caches.has(e)||this._caches.set(e,new v.i(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}}class j{constructor(e,t,n){this.provider=e,this.resultId=t,this.data=n}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}let B=class e extends s.jG{constructor(t,n,i,o,r){super(),this._isDisposed=!1,this._model=t,this._semanticStyling=n,this._provider=r.documentSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentSemanticTokens",{min:e.REQUEST_MIN_DELAY,max:e.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new m.uC((()=>this._fetchDocumentSemanticTokensNow()),e.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeLanguage((()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)})));const a=()=>{(0,s.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const e of this._provider.all(t))"function"===typeof e.onDidChange&&this._documentProvidersChangeListeners.push(e.onDidChange((()=>this._fetchDocumentSemanticTokens.schedule(0))))};a(),this._register(this._provider.onDidChange((()=>{a(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(i.onDidColorThemeChange((e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!(0,S.br)(this._provider,this._model))return void(this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1));const e=new f.Q,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,n=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,i=(0,S.aw)(this._provider,this._model,t,n,e.token);this._currentDocumentRequestCancellationTokenSource=e;const s=[],o=this._model.onDidChangeContent((e=>{s.push(e)})),a=new y.W(!1);i.then((e=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,o.dispose(),e){const{provider:t,tokens:n}=e,i=this._semanticStyling.get(t);this._setDocumentSemanticTokens(t,n||null,i,s)}else this._setDocumentSemanticTokens(null,null,null,s)}),(e=>{e&&(r.MB(e)||"string"===typeof e.message&&-1!==e.message.indexOf("busy"))||r.dz(e),this._currentDocumentRequestCancellationTokenSource=null,o.dispose(),s.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))}))}static _copy(e,t,n,i,s){s=Math.min(s,n.length-i,e.length-t);for(let o=0;o<s;o++)n[i+o]=e[t+o]}_setDocumentSemanticTokens(t,n,i,s){const o=this._currentDocumentResponse,r=()=>{s.length>0&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)t&&n&&t.releaseDocumentSemanticTokens(n.resultId);else if(t&&i){if(!n)return this._model.tokenization.setSemanticTokens(null,!0),void r();if((0,S.yS)(n)){if(!o)return void this._model.tokenization.setSemanticTokens(null,!0);if(0===n.edits.length)n={resultId:n.resultId,data:o.data};else{let t=0;for(const e of n.edits)t+=(e.data?e.data.length:0)-e.deleteCount;const s=o.data,r=new Uint32Array(s.length+t);let a=s.length,l=r.length;for(let h=n.edits.length-1;h>=0;h--){const t=n.edits[h];if(t.start>s.length)return i.warnInvalidEditStart(o.resultId,n.resultId,h,t.start,s.length),void this._model.tokenization.setSemanticTokens(null,!0);const c=a-(t.start+t.deleteCount);c>0&&(e._copy(s,a-c,r,l-c,c),l-=c),t.data&&(e._copy(t.data,0,r,l-t.data.length,t.data.length),l-=t.data.length),a=t.start}a>0&&e._copy(s,0,r,0,a),n={resultId:n.resultId,data:r}}}if((0,S.BB)(n)){this._currentDocumentResponse=new j(t,n.resultId,n.data);const e=(0,v.b)(n,i,this._model.getLanguageId());if(s.length>0)for(const t of s)for(const n of e)for(const e of t.changes)n.applyEdit(e.range,e.text);this._model.tokenization.setSemanticTokens(e,!0)}else this._model.tokenization.setSemanticTokens(null,!0);r()}else this._model.tokenization.setSemanticTokens(null,!1)}};B.REQUEST_MIN_DELAY=300,B.REQUEST_MAX_DELAY=2e3,B=T([D(2,p.Gy),D(3,N.U),D(4,M.u)],B)},11615:(e,t,n)=>{n.d(t,{b:()=>i});const i=(0,n(3660).u1)("textModelService")},90439:(e,t,n)=>{n.d(t,{i:()=>f,b:()=>p});var i=n(47443),s=n(87357),o=n(92798),r=n(63102),a=n(93708),l=n(24705);class h{constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}static create(e,t){return new h(e,new c(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new a.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[i,s,o]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new h(this._startLineNumber,i),new h(this._startLineNumber+o,s)]}applyEdit(e,t){const[n,i,s]=(0,l.W)(t);this.acceptEdit(e,n,i,s,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,i,s){this._acceptDeleteRange(e),this._acceptInsertText(new r.y(e.startLineNumber,e.startColumn),t,n,i,s),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const i=this._tokens.getMaxDeltaLine();if(!(t>=i+1)){if(t<0&&n>=i+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const i=-t;this._startLineNumber-=i,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,i,s){if(0===t&&0===n)return;const o=e.lineNumber-this._startLineNumber;if(o<0)return void(this._startLineNumber+=t);o>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(o,e.column-1,t,n,i,s)}}class c{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),i=this._getEndCharacter(e-1);return new a.Q(0,t+1,n,i+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const i=t+Math.floor((n-t)/2),s=this._getDeltaLine(i);if(s<e)t=i+1;else{if(!(s>e)){let s=i;for(;s>t&&this._getDeltaLine(s-1)===e;)s--;let o=i;for(;o<n&&this._getDeltaLine(o+1)===e;)o++;return new u(this._tokens.subarray(4*s,4*o+4))}n=i-1}}return this._getDeltaLine(t)===e?new u(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,i){const s=this._tokens,o=this._tokenCount;let r=0,a=!1,l=0;for(let h=0;h<o;h++){const o=4*h,c=s[o],u=s[o+1],d=s[o+2],g=s[o+3];if((c>e||c===e&&d>=t)&&(c<n||c===n&&u<=i))a=!0;else{if(0===r&&(l=c),a){const e=4*r;s[e]=c-l,s[e+1]=u,s[e+2]=d,s[e+3]=g}r++}}return this._tokenCount=r,l}split(e,t,n,i){const s=this._tokens,o=this._tokenCount,r=[],a=[];let l=r,h=0,u=0;for(let c=0;c<o;c++){const o=4*c,r=s[o],d=s[o+1],g=s[o+2],m=s[o+3];if(r>e||r===e&&g>=t){if(r<n||r===n&&d<=i)continue;l!==a&&(l=a,h=0,u=r)}l[h++]=r-u,l[h++]=d,l[h++]=g,l[h++]=m}return[new c(new Uint32Array(r)),new c(new Uint32Array(a)),u]}acceptDeleteRange(e,t,n,i,s){const o=this._tokens,r=this._tokenCount,a=i-t;let l=0,h=!1;for(let c=0;c<r;c++){const u=4*c;let d=o[u],g=o[u+1],m=o[u+2];const f=o[u+3];if(d<t||d===t&&m<=n){l++;continue}if(d===t&&g<n)d===i&&m>s?m-=s-n:m=n;else if(d===t&&g===n){if(!(d===i&&m>s)){h=!0;continue}m-=s-n}else if(d<i||d===i&&g<s){if(!(d===i&&m>s)){h=!0;continue}d===t?(g=n,m=g+(m-s)):(g=0,m=g+(m-s))}else if(d>i){if(0===a&&!h){l=r;break}d-=a}else{if(!(d===i&&g>=s))throw new Error("Not possible!");e&&0===d&&(g+=e,m+=e),d-=a,g-=s-n,m-=s-n}const p=4*l;o[p]=d,o[p+1]=g,o[p+2]=m,o[p+3]=f,l++}this._tokenCount=l}acceptInsertText(e,t,n,i,s,o){const r=0===n&&1===i&&(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122),a=this._tokens,l=this._tokenCount;for(let h=0;h<l;h++){const o=4*h;let l=a[o],c=a[o+1],u=a[o+2];if(!(l<e||l===e&&u<t)){if(l===e&&u===t){if(!r)continue;u+=1}else if(l===e&&c<t&&t<u)0===n?u+=i:u=t;else{if(l===e&&c===t&&r)continue;if(l===e)if(l+=n,0===n)c+=i,u+=i;else{const e=u-c;c=s+(c-t),u=c+e}else l+=n}a[o]=l,a[o+1]=c,a[o+2]=u}}}}class u{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var d=n(21051),g=function(e,t,n,i){var s,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,n,r):s(t,n))||r);return o>3&&r&&Object.defineProperty(t,n,r),r},m=function(e,t){return function(n,i){t(n,i,e)}};let f=class{constructor(e,t,n,i){this._legend=e,this._themeService=t,this._languageService=n,this._logService=i,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new L}getMetadata(e,t,n){const s=this._languageService.languageIdCodec.encodeLanguageId(n),r=this._hashTable.get(e,t,s);let a;if(r)a=r.metadata,this._logService.getLevel()===o.$b.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${i.x.getForeground(a)}, fontStyle ${i.x.getFontStyle(a).toString(2)}`);else{let r=this._legend.tokenTypes[e];const l=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&l.push(this._legend.tokenModifiers[t]),e>>=1;e>0&&this._logService.getLevel()===o.$b.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));const i=this._themeService.getColorTheme().getTokenStyleMetadata(r,l,n);if("undefined"===typeof i)a=2147483647;else{if(a=0,"undefined"!==typeof i.italic){a|=1|(i.italic?1:0)<<11}if("undefined"!==typeof i.bold){a|=2|(i.bold?2:0)<<11}if("undefined"!==typeof i.underline){a|=4|(i.underline?4:0)<<11}if("undefined"!==typeof i.strikethrough){a|=8|(i.strikethrough?8:0)<<11}if(i.foreground){a|=16|i.foreground<<15}0===a&&(a=2147483647)}}else this._logService.getLevel()===o.$b.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),a=2147483647,r="not-in-legend";this._hashTable.add(e,t,s,a),this._logService.getLevel()===o.$b.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${r}) / ${t} (${l.join(" ")}): foreground ${i.x.getForeground(a)}, fontStyle ${i.x.getFontStyle(a).toString(2)}`)}return a}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,console.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,i,s){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,console.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${i} is outside the previous data (length ${s}).`))}};function p(e,t,n){const i=e.data,s=e.data.length/5|0,o=Math.max(Math.ceil(s/1024),400),r=[];let a=0,l=1,c=0;for(;a<s;){const e=a;let u=Math.min(e+o,s);if(u<s){let t=u;for(;t-1>e&&0===i[5*t];)t--;if(t-1===e){let e=u;for(;e+1<s&&0===i[5*e];)e++;u=e}else u=t}let d=new Uint32Array(4*(u-e)),g=0,m=0,f=0,p=0;for(;a<u;){const e=5*a,s=i[e],o=i[e+1],r=l+s|0,h=0===s?c+o|0:o,u=h+i[e+2]|0,_=i[e+3],L=i[e+4];if(u<=h)t.warnInvalidLengthSemanticTokens(r,h+1);else if(f===r&&p>h)t.warnOverlappingSemanticTokens(r,h+1);else{const e=t.getMetadata(_,L,n);2147483647!==e&&(0===m&&(m=r),d[g]=r-m,d[g+1]=h,d[g+2]=u,d[g+3]=e,g+=4,f=r,p=u)}l=r,c=h,a++}g!==d.length&&(d=d.subarray(0,g));const _=h.create(m,d);r.push(_)}return r}f=g([m(1,s.Gy),m(2,d.L),m(3,o.rr)],f);class _{constructor(e,t,n,i){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=i,this.next=null}}class L{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=L._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<L._SIZES.length?2/3*this._currentLength:0),this._elements=[],L._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const i=this._hashFunc(e,t,n);let s=this._elements[i];for(;s;){if(s.tokenTypeIndex===e&&s.tokenModifierSet===t&&s.languageId===n)return s;s=s.next}return null}add(e,t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=L._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<L._SIZES.length?2/3*this._currentLength:0),this._elements=[],L._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,n,i))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}L._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]},40905:(e,t,n)=>{n.d(t,{J:()=>o,U:()=>s});var i=n(3660);const s=(0,i.u1)("textResourceConfigurationService"),o=(0,i.u1)("textResourcePropertiesService")},69622:(e,t,n)=>{n.d(t,{P:()=>l});var i=n(93708),s=n(62179),o=n(22231),r=n(86448),a=n(58181);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,c=n?n.endLineNumber:e.getLineCount(),u=new h(t),d=u.getCandidateCodePoints();let g;var m;g="allNonBasicAscii"===d?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(m=Array.from(d),`[${o.bm(m.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const f=new s.W5(null,g),p=[];let _,L=!1,C=0,w=0,b=0;e:for(let s=l,h=c;s<=h;s++){const t=e.getLineContent(s),n=t.length;f.reset(0);do{if(_=f.next(t),_){let e=_.index,l=_.index+_[0].length;if(e>0){const n=t.charCodeAt(e-1);o.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);o.pc(e)&&l++}const h=t.substring(e,l),c=(0,a.Th)(e+1,a.Ld,t,0),d=u.shouldHighlightNonBasicASCII(h,c?c.word:null);if(0!==d){3===d?C++:2===d?w++:1===d?b++:(0,r.xb)(d);const t=1e3;if(p.length>=t){L=!0;break e}p.push(new i.Q(s,e+1,s,l+1))}}}while(_)}return{ranges:p,hasMore:L,ambiguousCharacterCount:C,invisibleCharacterCount:w,nonBasicAsciiCharacterCount:b}}static computeUnicodeHighlightReason(e,t){const n=new h(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),s=n.ambiguousCharacters.getPrimaryConfusable(i),r=o.tl.getLocales().filter((e=>!o.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i)));return{kind:0,confusableWith:String.fromCodePoint(s),notAmbiguousInLocales:r}}case 1:return{kind:2}}}}class h{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=o.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of o.y_.codePoints)c(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(t)for(const r of t){const e=r.codePointAt(0),t=o.aC(r);i=i||t,t||this.ambiguousCharacters.isAmbiguous(e)||o.y_.isInvisibleCharacter(e)||(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!c(e)&&o.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function c(e){return" "===e||"\n"===e||"\t"===e}},39762:(e,t,n)=>{var i,s,o,r,a,l,h,c,u,d,g,m,f,p,_,L,C,w,b,v,S,I,k,N,y,M,T,D,O,V,E,P,R,x,A,W,F;n.d(t,{A5:()=>N,Ah:()=>T,DD:()=>w,DO:()=>M,Gn:()=>i,H_:()=>R,Ic:()=>y,Io:()=>o,Kb:()=>u,QP:()=>r,Qj:()=>l,R3:()=>S,SB:()=>V,U7:()=>x,VW:()=>_,WA:()=>E,WU:()=>f,XR:()=>O,_E:()=>s,cj:()=>b,dE:()=>k,d_:()=>v,e0:()=>d,h5:()=>h,hS:()=>I,kK:()=>W,kf:()=>m,l:()=>p,m9:()=>A,of:()=>c,ov:()=>D,p2:()=>g,qw:()=>C,r4:()=>L,t7:()=>a,tJ:()=>F,v0:()=>P}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(i||(i={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(s||(s={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(o||(o={})),function(e){e[e.Deprecated=1]="Deprecated"}(r||(r={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(a||(a={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(l||(l={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(h||(h={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(c||(c={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(u||(u={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(d||(d={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.enableDropIntoEditor=32]="enableDropIntoEditor",e[e.emptySelectionClipboard=33]="emptySelectionClipboard",e[e.extraEditorClassName=34]="extraEditorClassName",e[e.fastScrollSensitivity=35]="fastScrollSensitivity",e[e.find=36]="find",e[e.fixedOverflowWidgets=37]="fixedOverflowWidgets",e[e.folding=38]="folding",e[e.foldingStrategy=39]="foldingStrategy",e[e.foldingHighlight=40]="foldingHighlight",e[e.foldingImportsByDefault=41]="foldingImportsByDefault",e[e.foldingMaximumRegions=42]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=43]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=44]="fontFamily",e[e.fontInfo=45]="fontInfo",e[e.fontLigatures=46]="fontLigatures",e[e.fontSize=47]="fontSize",e[e.fontWeight=48]="fontWeight",e[e.formatOnPaste=49]="formatOnPaste",e[e.formatOnType=50]="formatOnType",e[e.glyphMargin=51]="glyphMargin",e[e.gotoLocation=52]="gotoLocation",e[e.hideCursorInOverviewRuler=53]="hideCursorInOverviewRuler",e[e.hover=54]="hover",e[e.inDiffEditor=55]="inDiffEditor",e[e.inlineSuggest=56]="inlineSuggest",e[e.letterSpacing=57]="letterSpacing",e[e.lightbulb=58]="lightbulb",e[e.lineDecorationsWidth=59]="lineDecorationsWidth",e[e.lineHeight=60]="lineHeight",e[e.lineNumbers=61]="lineNumbers",e[e.lineNumbersMinChars=62]="lineNumbersMinChars",e[e.linkedEditing=63]="linkedEditing",e[e.links=64]="links",e[e.matchBrackets=65]="matchBrackets",e[e.minimap=66]="minimap",e[e.mouseStyle=67]="mouseStyle",e[e.mouseWheelScrollSensitivity=68]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=69]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=70]="multiCursorMergeOverlapping",e[e.multiCursorModifier=71]="multiCursorModifier",e[e.multiCursorPaste=72]="multiCursorPaste",e[e.occurrencesHighlight=73]="occurrencesHighlight",e[e.overviewRulerBorder=74]="overviewRulerBorder",e[e.overviewRulerLanes=75]="overviewRulerLanes",e[e.padding=76]="padding",e[e.parameterHints=77]="parameterHints",e[e.peekWidgetDefaultFocus=78]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=79]="definitionLinkOpensInPeek",e[e.quickSuggestions=80]="quickSuggestions",e[e.quickSuggestionsDelay=81]="quickSuggestionsDelay",e[e.readOnly=82]="readOnly",e[e.renameOnType=83]="renameOnType",e[e.renderControlCharacters=84]="renderControlCharacters",e[e.renderFinalNewline=85]="renderFinalNewline",e[e.renderLineHighlight=86]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=87]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=88]="renderValidationDecorations",e[e.renderWhitespace=89]="renderWhitespace",e[e.revealHorizontalRightPadding=90]="revealHorizontalRightPadding",e[e.roundedSelection=91]="roundedSelection",e[e.rulers=92]="rulers",e[e.scrollbar=93]="scrollbar",e[e.scrollBeyondLastColumn=94]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=95]="scrollBeyondLastLine",e[e.scrollPredominantAxis=96]="scrollPredominantAxis",e[e.selectionClipboard=97]="selectionClipboard",e[e.selectionHighlight=98]="selectionHighlight",e[e.selectOnLineNumbers=99]="selectOnLineNumbers",e[e.showFoldingControls=100]="showFoldingControls",e[e.showUnused=101]="showUnused",e[e.snippetSuggestions=102]="snippetSuggestions",e[e.smartSelect=103]="smartSelect",e[e.smoothScrolling=104]="smoothScrolling",e[e.stickyTabStops=105]="stickyTabStops",e[e.stopRenderingLineAfter=106]="stopRenderingLineAfter",e[e.suggest=107]="suggest",e[e.suggestFontSize=108]="suggestFontSize",e[e.suggestLineHeight=109]="suggestLineHeight",e[e.suggestOnTriggerCharacters=110]="suggestOnTriggerCharacters",e[e.suggestSelection=111]="suggestSelection",e[e.tabCompletion=112]="tabCompletion",e[e.tabIndex=113]="tabIndex",e[e.unicodeHighlighting=114]="unicodeHighlighting",e[e.unusualLineTerminators=115]="unusualLineTerminators",e[e.useShadowDOM=116]="useShadowDOM",e[e.useTabStops=117]="useTabStops",e[e.wordSeparators=118]="wordSeparators",e[e.wordWrap=119]="wordWrap",e[e.wordWrapBreakAfterCharacters=120]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=121]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=122]="wordWrapColumn",e[e.wordWrapOverride1=123]="wordWrapOverride1",e[e.wordWrapOverride2=124]="wordWrapOverride2",e[e.wrappingIndent=125]="wrappingIndent",e[e.wrappingStrategy=126]="wrappingStrategy",e[e.showDeprecated=127]="showDeprecated",e[e.inlayHints=128]="inlayHints",e[e.editorClassName=129]="editorClassName",e[e.pixelRatio=130]="pixelRatio",e[e.tabFocusMode=131]="tabFocusMode",e[e.layoutInfo=132]="layoutInfo",e[e.wrappingInfo=133]="wrappingInfo"}(g||(g={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(m||(m={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(f||(f={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(p||(p={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(_||(_={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(L||(L={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(C||(C={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.Clear=126]="Clear",e[e.MAX_VALUE=127]="MAX_VALUE"}(w||(w={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(b||(b={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(v||(v={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(S||(S={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(I||(I={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(k||(k={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(N||(N={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(y||(y={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(M||(M={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(T||(T={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(D||(D={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(O||(O={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(V||(V={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(E||(E={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(P||(P={})),function(e){e[e.Deprecated=1]="Deprecated"}(R||(R={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(x||(x={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(A||(A={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(W||(W={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(F||(F={}))},43058:(e,t,n)=>{n.d(t,{E6:()=>c,Hw:()=>o,YN:()=>s,b2:()=>i,gf:()=>a,n9:()=>l,oq:()=>r,tu:()=>u,vp:()=>h});var i,s,o,r,a,l,h,c,u,d=n(84978);!function(e){e.noSelection=d.kg("noSelection","No selection"),e.singleSelectionRange=d.kg("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=d.kg("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=d.kg("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=d.kg("multiSelection","{0} selections"),e.emergencyConfOn=d.kg("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=d.kg("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=d.kg("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=d.kg("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=d.kg("readonlyEditor"," in a read-only code editor"),e.editableEditor=d.kg("editableEditor"," in a code editor"),e.changeConfigToOnMac=d.kg("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=d.kg("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=d.kg("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=d.kg("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=d.kg("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=d.kg("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=d.kg("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=d.kg("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=d.kg("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=d.kg("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=d.kg("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=d.kg("showAccessibilityHelpAction","Show Accessibility Help")}(i||(i={})),function(e){e.inspectTokensAction=d.kg("inspectTokens","Developer: Inspect Tokens")}(s||(s={})),function(e){e.gotoLineActionLabel=d.kg("gotoLineActionLabel","Go to Line/Column...")}(o||(o={})),function(e){e.helpQuickAccessActionLabel=d.kg("helpQuickAccess","Show all Quick Access Providers")}(r||(r={})),function(e){e.quickCommandActionLabel=d.kg("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=d.kg("quickCommandActionHelp","Show And Run Commands")}(a||(a={})),function(e){e.quickOutlineActionLabel=d.kg("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=d.kg("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(l||(l={})),function(e){e.editorViewAccessibleLabel=d.kg("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=d.kg("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(h||(h={})),function(e){e.toggleHighContrast=d.kg("toggleHighContrast","Toggle High Contrast Theme")}(c||(c={})),function(e){e.bulkEditServiceSummary=d.kg("bulkEditServiceSummary","Made {0} edits in {1} files")}(u||(u={}))},50624:(e,t,n)=>{n.d(t,{jY:()=>i,yU:()=>o});class i{constructor(e,t,n,i){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=i}}class s{constructor(e,t,n,i,s,o){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=i,this.nestingLevelOfEqualBracketType=s,this.bracketPairNode=o}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class o extends s{constructor(e,t,n,i,s,o,r){super(e,t,n,i,s,o),this.minVisibleColumnIndentation=r}}},41516:(e,t,n)=>{n.d(t,{E$:()=>r,HP:()=>h,Ic:()=>u,U0:()=>o,Wn:()=>i,bg:()=>a,mS:()=>l,uK:()=>s,vn:()=>c});class i{constructor(){this.changeType=1}}class s{constructor(e,t,n,i,s){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=i,this.order=s}static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",i=0;for(const s of t)n+=e.substring(i,s.column-1),i=s.column-1,n+=s.options.content;return n+=e.substring(i),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new s(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new s(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}}class o{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class r{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,n,i){this.changeType=4,this.injectedTexts=i,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class l{constructor(){this.changeType=5}}class h{constructor(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing;return new h(n,i,s,o)}}class c{constructor(e){this.changes=e}}class u{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=h.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=u._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new u(t,n)}static _mergeChangeEvents(e,t){return{changes:[].concat(e.changes).concat(t.changes),eol:t.eol,versionId:t.versionId,isUndoing:e.isUndoing||t.isUndoing,isRedoing:e.isRedoing||t.isRedoing,isFlush:e.isFlush||t.isFlush}}}},72072:(e,t,n)=>{var i;n.d(t,{N6:()=>i,TH:()=>s,pv:()=>o}),function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(i||(i={}));class s{constructor(e,t,n,i,s,o){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=i,this.forWrappedLinesAfterColumn=s,this.forWrappedLinesBeforeOrAtColumn=o,-1!==e===(-1!==t))throw new Error}}class o{constructor(e,t){this.top=e,this.endColumn=t}}},13949:(e,t,n)=>{n.d(t,{d:()=>r});var i=n(16201),s=n(33793),o=function(e,t,n,i){return new(n||(n=Promise))((function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}l((i=i.apply(e,t||[])).next())}))};class r{constructor(){this._map=new Map,this._factories=new Map,this._onDidChange=new i.vl,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._map.set(e,t),this.fire([e]),(0,s.s)((()=>{this._map.get(e)===t&&(this._map.delete(e),this.fire([e]))}))}registerFactory(e,t){var n;null===(n=this._factories.get(e))||void 0===n||n.dispose();const i=new a(this,e,t);return this._factories.set(e,i),(0,s.s)((()=>{const t=this._factories.get(e);t&&t===i&&(this._factories.delete(e),t.dispose())}))}getOrCreate(e){return o(this,void 0,void 0,(function*(){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(yield n.resolve(),this.get(e))}))}get(e){return this._map.get(e)||null}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class a extends s.jG{constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return o(this,void 0,void 0,(function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}))}_create(){return o(this,void 0,void 0,(function*(){const e=yield Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}))}}},52622:(e,t,n)=>{n.d(t,{Z:()=>s});class i{constructor(e,t){this._startLineNumber=e,this._tokens=t}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class s{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new i(e,[t]))}finalize(){return this._tokens}}},98523:(e,t,n)=>{n.d(t,{y:()=>c});var i=n(8415),s=n(63102),o=n(41630);const r=new Uint32Array(0).buffer;class a{static deleteBeginning(e,t){return null===e||e===r?e:a.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===r)return e;const n=l(e),i=n[n.length-2];return a.delete(e,t,i)}static delete(e,t,n){if(null===e||e===r||t===n)return e;const i=l(e),s=i.length>>>1;if(0===t&&i[i.length-2]===n)return r;const a=o.f.findIndexInTokensArray(i,t),h=a>0?i[a-1<<1]:0;if(n<i[a<<1]){const o=n-t;for(let e=a;e<s;e++)i[e<<1]-=o;return e}let c,u;h!==t?(i[a<<1]=t,c=a+1<<1,u=t):(c=a<<1,u=h);const d=n-t;for(let o=a+1;o<s;o++){const e=i[o<<1]-d;e>u&&(i[c++]=e,i[c++]=i[1+(o<<1)],u=e)}if(c===i.length)return e;const g=new Uint32Array(c);return g.set(i.subarray(0,c),0),g.buffer}static append(e,t){if(t===r)return e;if(e===r)return t;if(null===e)return e;if(null===t)return null;const n=l(e),i=l(t),s=i.length>>>1,o=new Uint32Array(n.length+i.length);o.set(n,0);let a=n.length;const h=n[n.length-2];for(let r=0;r<s;r++)o[a++]=i[r<<1]+h,o[a++]=i[1+(r<<1)];return o.buffer}static insert(e,t,n){if(null===e||e===r)return e;const i=l(e),s=i.length>>>1;let a=o.f.findIndexInTokensArray(i,t);if(a>0){i[a-1<<1]===t&&a--}for(let o=a;o<s;o++)i[o<<1]+=n;return e}}function l(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var h=n(47443);class c{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}getTokens(e,t,n){let i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==r)return new o.f(l(i),n,this._languageIdCodec);const s=new Uint32Array(2);return s[0]=n.length,s[1]=u(this._languageIdCodec.encodeLanguageId(e)),new o.f(s,n,this._languageIdCodec)}static _massageTokens(e,t,n){const i=n?l(n):null;if(0===t){let t=!1;if(i&&i.length>1&&(t=h.x.getLanguageId(i[1])!==e),!t)return r}if(!i||0===i.length){const n=new Uint32Array(2);return n[0]=t,n[1]=u(e),n.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let i=0;i<t;i++)n[i]=null;this._lineTokens=i.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,i,s){const o=c._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,i);this._ensureLine(t);const r=this._lineTokens[t];return this._lineTokens[t]=o,!!s&&!c._equals(r,o)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=l(e),i=l(t);if(n.length!==i.length)return!1;for(let s=0,o=n.length;s<o;s++)if(n[s]!==i[s])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new s.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=a.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=a.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let i=null;n<this._len&&(i=a.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=a.append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=a.deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=a.insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=a.insert(this._lineTokens[i],e.column-1,n))}}function u(e){return(32768|e|2<<24|1024)>>>0}},41630:(e,t,n)=>{n.d(t,{f:()=>s});var i=n(47443);class s{constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=n}static createEmpty(e,t){const n=s.defaultTokenMetadata,i=new Uint32Array(2);return i[0]=e.length,i[1]=n,new s(i,e,t)}equals(e){return e instanceof s&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const i=t<<1,s=i+(n<<1);for(let o=i;o<s;o++)if(this._tokens[o]!==e._tokens[o])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=i.x.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return i.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return i.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return i.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return i.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return i.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return s.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new o(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let i=0;i<n;i++)e[i<<1]=e[i+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,i=(e.length>>>1)-1;for(;n<i;){const s=n+Math.floor((i-n)/2),o=e[s<<1];if(o===t)return s+1;o<t?n=s+1:o>t&&(i=s)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,i="";const o=new Array;let r=0;for(;;){const s=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==s&&(null===a||s<=a.offset)){i+=this._text.substring(r,s);const e=this._tokens[1+(t<<1)];o.push(i.length,e),t++,r=s}else{if(!a)break;if(a.offset>r){i+=this._text.substring(r,a.offset);const e=this._tokens[1+(t<<1)];o.push(i.length,e),r=a.offset}i+=a.text,o.push(i.length,a.tokenMetadata),n++}}return new s(new Uint32Array(o),i,this._languageIdCodec)}}s.defaultTokenMetadata=33587200;class o{constructor(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let s=this._firstTokenIndex,o=e.getCount();s<o;s++){if(e.getStartOffset(s)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof o&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}},94787:(e,t,n)=>{n.d(t,{s:()=>o});var i=n(8415),s=n(41630);class o{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const i=t[0].getRange(),s=t[t.length-1].getRange();if(!i||!s)return e;n=e.plusRange(i).plusRange(s)}let s=null;for(let i=0,o=this._pieces.length;i<o;i++){const e=this._pieces[i];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){s=s||{index:i};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(i,1),i--,o--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){s=s||{index:i};continue}const[t,r]=e.split(n);t.isEmpty()?s=s||{index:i}:r.isEmpty()||(this._pieces.splice(i,1,t,r),i++,o++,s=s||{index:i})}return s=s||{index:this._pieces.length},t.length>0&&(this._pieces=i.nK(this._pieces,s.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const i=n[o._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!i)return t;const r=t.getCount(),a=i.getCount();let l=0;const h=[];let c=0,u=0;const d=(e,t)=>{e!==u&&(u=e,h[c++]=e,h[c++]=t)};for(let s=0;s<a;s++){const e=i.getStartCharacter(s),n=i.getEndCharacter(s),o=i.getMetadata(s),a=((1&o?2048:0)|(2&o?4096:0)|(4&o?8192:0)|(8&o?16384:0)|(16&o?16744448:0)|(32&o?4278190080:0))>>>0,h=~a>>>0;for(;l<r&&t.getEndOffset(l)<=e;)d(t.getEndOffset(l),t.getMetadata(l)),l++;for(l<r&&t.getStartOffset(l)<e&&d(e,t.getMetadata(l));l<r&&t.getEndOffset(l)<n;)d(t.getEndOffset(l),t.getMetadata(l)&h|o&a),l++;if(l<r)d(n,t.getMetadata(l)&h|o&a),t.getEndOffset(l)===n&&l++;else{const e=Math.min(Math.max(0,l-1),r-1);d(n,t.getMetadata(e)&h|o&a)}}for(;l<r;)d(t.getEndOffset(l),t.getMetadata(l)),l++;return new s.f(new Uint32Array(h),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,i=e.length-1;for(;n<i;){let s=n+Math.floor((i-n)/2);if(e[s].endLineNumber<t)n=s+1;else{if(!(e[s].startLineNumber>t)){for(;s>n&&e[s-1].startLineNumber<=t&&t<=e[s-1].endLineNumber;)s--;return s}i=s-1}}return n}acceptEdit(e,t,n,i,s){for(const o of this._pieces)o.acceptEdit(e,t,n,i,s)}}},34488:(e,t,n)=>{n.d(t,{i:()=>s});var i=n(33793);class s extends i.jG{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let n=0,i=e.length;n<i;n++){const i=e[n];switch(i.type){case 0:this.onCompositionStart(i)&&(t=!0);break;case 1:this.onCompositionEnd(i)&&(t=!0);break;case 2:this.onConfigurationChanged(i)&&(t=!0);break;case 3:this.onCursorStateChanged(i)&&(t=!0);break;case 4:this.onDecorationsChanged(i)&&(t=!0);break;case 5:this.onFlushed(i)&&(t=!0);break;case 6:this.onFocusChanged(i)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(i)&&(t=!0);break;case 8:this.onLineMappingChanged(i)&&(t=!0);break;case 9:this.onLinesChanged(i)&&(t=!0);break;case 10:this.onLinesDeleted(i)&&(t=!0);break;case 11:this.onLinesInserted(i)&&(t=!0);break;case 12:this.onRevealRangeRequest(i)&&(t=!0);break;case 13:this.onScrollChanged(i)&&(t=!0);break;case 15:this.onTokensChanged(i)&&(t=!0);break;case 14:this.onThemeChanged(i)&&(t=!0);break;case 16:this.onTokensColorsChanged(i)&&(t=!0);break;case 17:this.onZonesChanged(i)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(i)}}t&&(this._shouldRender=!0)}}},63877:(e,t,n)=>{n.d(t,{E5:()=>h,Ey:()=>o,GL:()=>L,Hf:()=>f,Kb:()=>i,M7:()=>u,U:()=>C,Uf:()=>g,bu:()=>d,dQ:()=>s,fu:()=>w,h9:()=>a,lg:()=>p,qK:()=>c,rZ:()=>m,rg:()=>r,tO:()=>_,zv:()=>l});class i{constructor(){this.type=0}}class s{constructor(){this.type=1}}class o{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class r{constructor(e,t){this.type=3,this.selections=e,this.modelSelections=t}}class a{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)}}class l{constructor(){this.type=5}}class h{constructor(e){this.type=6,this.isFocused=e}}class c{constructor(){this.type=7}}class u{constructor(){this.type=8}}class d{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}}class g{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class m{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class f{constructor(e,t,n,i,s,o,r){this.source=e,this.minimalReveal=t,this.range=n,this.selections=i,this.verticalType=s,this.revealHorizontal=o,this.scrollType=r,this.type=12}}class p{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class _{constructor(e){this.theme=e,this.type=14}}class L{constructor(e){this.type=15,this.ranges=e}}class C{constructor(){this.type=16}}class w{constructor(){this.type=17}}},47352:(e,t,n)=>{n.d(t,{Bs:()=>a,d:()=>s});var i=n(22231);class s{constructor(e,t,n,i){this.startColumn=e,this.endColumn=t,this.className=n,this.type=i,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(!s._equals(e[i],t[i]))return!1;return!0}static extractWrapped(e,t,n){if(0===e.length)return e;const i=t+1,o=n+1,r=n-t,a=[];let l=0;for(const h of e)h.endColumn<=i||h.startColumn>=o||(a[l++]=new s(Math.max(1,h.startColumn-i+1),Math.min(r+1,h.endColumn-i+1),h.className,h.type));return a}static filter(e,t,n,i){if(0===e.length)return[];const o=[];let r=0;for(let a=0,l=e.length;a<l;a++){const l=e[a],h=l.range;if(h.endLineNumber<t||h.startLineNumber>t)continue;if(h.isEmpty()&&(0===l.type||3===l.type))continue;const c=h.startLineNumber===t?h.startColumn:n,u=h.endLineNumber===t?h.endColumn:i;o[r++]=new s(c,u,l.inlineClassName,l.type)}return o}static _typeCompare(e,t){const n=[2,0,1,3];return n[e]-n[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const n=s._typeCompare(e.type,t.type);return 0!==n?n:e.className!==t.className?e.className<t.className?-1:1:0}}class o{constructor(e,t,n,i){this.startOffset=e,this.endOffset=t,this.className=n,this.metadata=i}}class r{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(e){let t=0;for(let n=0,i=e.length;n<i;n++)t|=e[n];return t}consumeLowerThan(e,t,n){for(;this.count>0&&this.stopOffsets[0]<e;){let e=0;for(;e+1<this.count&&this.stopOffsets[e]===this.stopOffsets[e+1];)e++;n.push(new o(t,this.stopOffsets[e],this.classNames.join(" "),r._metadata(this.metadata))),t=this.stopOffsets[e]+1,this.stopOffsets.splice(0,e+1),this.classNames.splice(0,e+1),this.metadata.splice(0,e+1),this.count-=e+1}return this.count>0&&t<e&&(n.push(new o(t,e-1,this.classNames.join(" "),r._metadata(this.metadata))),t=e),t}insert(e,t,n){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t),this.metadata.push(n);else for(let i=0;i<this.count;i++)if(this.stopOffsets[i]>=e){this.stopOffsets.splice(i,0,e),this.classNames.splice(i,0,t),this.metadata.splice(i,0,n);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];const n=[],s=new r;let o=0;for(let r=0,a=t.length;r<a;r++){const a=t[r];let l=a.startColumn,h=a.endColumn;const c=a.className,u=1===a.type?2:2===a.type?4:0;if(l>1){const t=e.charCodeAt(l-2);i.pc(t)&&l--}if(h>1){const t=e.charCodeAt(h-2);i.pc(t)&&h--}const d=l-1,g=h-2;o=s.consumeLowerThan(d,o,n),0===s.count&&(o=d),s.insert(g,c,u)}return s.consumeLowerThan(1073741824,o,n),n}}},14067:(e,t,n)=>{n.d(t,{wZ:()=>h,MT:()=>a,zL:()=>l,UW:()=>d,Md:()=>m});var i=n(22231),s=n(11661),o=n(47352);class r{constructor(e,t,n,i){this.endIndex=e,this.type=t,this.metadata=n,this.containsRTL=i,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class a{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class l{constructor(e,t,n,i,s,r,a,l,h,c,u,d,g,m,f,p,_,L,C){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=i,this.isBasicASCII=s,this.containsRTL=r,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=h.sort(o.d.compare),this.tabSize=c,this.startVisibleColumn=u,this.spaceWidth=d,this.stopRenderingLineAfter=f,this.renderWhitespace="all"===p?4:"boundary"===p?1:"selection"===p?2:"trailing"===p?3:0,this.renderControlCharacters=_,this.fontLigatures=L,this.selectionsOnLine=C&&C.sort(((e,t)=>e.startOffset<t.startOffset?-1:1));Math.abs(m-d)<Math.abs(g-d)?(this.renderSpaceWidth=m,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=g,this.renderSpaceCharCode=183)}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}equals(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&o.d.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class h{constructor(e,t){this.partIndex=e,this.charIndex=t}}class c{constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}static getPartIndex(e){return(4294901760&e)>>>16}static getCharIndex(e){return(65535&e)>>>0}setColumnInfo(e,t,n,i){const s=(t<<16|n)>>>0;this._data[e-1]=s,this._horizontalOffset[e-1]=i}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),n=c.getPartIndex(t),i=c.getCharIndex(t);return new h(n,i)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,n){if(0===this.length)return 0;const i=(e<<16|n)>>>0;let s=0,o=this.length-1;for(;s+1<o;){const e=s+o>>>1,t=this._data[e];if(t===i)return e;t>i?o=e:s=e}if(s===o)return s;const r=this._data[s],a=this._data[o];if(r===i)return s;if(a===i)return o;const l=c.getPartIndex(r),h=c.getCharIndex(r);let u;u=l!==c.getPartIndex(a)?t:c.getCharIndex(a);return n-h<=u-n?s:o}}class u{constructor(e,t,n){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n}}function d(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendASCIIString("<span>");let n=0,i=0,s=0;for(const r of e.lineDecorations)1!==r.type&&2!==r.type||(t.appendASCIIString('<span class="'),t.appendASCIIString(r.className),t.appendASCIIString('"></span>'),1===r.type&&(s|=1,n++),2===r.type&&(s|=2,i++));t.appendASCIIString("</span>");const o=new c(1,n+i);return o.setColumnInfo(1,n,0,0),new u(o,!1,s)}return t.appendASCIIString("<span><span></span></span>"),new u(new c(0,0),!1,0)}return function(e,t){const n=e.fontIsMonospace,s=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,r=e.lineContent,a=e.len,l=e.isOverflowing,h=e.parts,d=e.fauxIndentLength,g=e.tabSize,m=e.startVisibleColumn,f=e.containsRTL,L=e.spaceWidth,C=e.renderSpaceCharCode,w=e.renderWhitespace,b=e.renderControlCharacters,v=new c(a+1,h.length);let S=!1,I=0,k=m,N=0,y=0,M=0;f?t.appendASCIIString('<span dir="ltr">'):t.appendASCIIString("<span>");for(let c=0,u=h.length;c<u;c++){const e=h[c],l=e.endIndex,u=e.type,m=e.containsRTL,f=0!==w&&e.isWhitespace(),T=f&&!n&&("mtkw"===u||!o),D=I===l&&e.isPseudoAfter();if(N=0,t.appendASCIIString("<span "),m&&t.appendASCIIString('style="unicode-bidi:isolate" '),t.appendASCIIString('class="'),t.appendASCIIString(T?"mtkz":u),t.appendASCII(34),f){let e=0;{let t=I,n=k;for(;t<l;t++){const i=0|(9===r.charCodeAt(t)?g-n%g:1);e+=i,t>=d&&(n+=i)}}for(T&&(t.appendASCIIString(' style="width:'),t.appendASCIIString(String(L*e)),t.appendASCIIString('px"')),t.appendASCII(62);I<l;I++){v.setColumnInfo(I+1,c-M,N,y),M=0;let e,n;if(9===r.charCodeAt(I)){e=g-k%g|0,n=e,!s||n>1?t.write1(8594):t.write1(65515);for(let e=2;e<=n;e++)t.write1(160)}else e=2,n=1,t.write1(C),t.write1(8204);N+=e,y+=n,I>=d&&(k+=n)}}else for(t.appendASCII(62);I<l;I++){v.setColumnInfo(I+1,c-M,N,y),M=0;const e=r.charCodeAt(I);let n=1,s=1;switch(e){case 9:n=g-k%g,s=n;for(let e=1;e<=n;e++)t.write1(160);break;case 32:t.write1(160);break;case 60:t.appendASCIIString("&lt;");break;case 62:t.appendASCIIString("&gt;");break;case 38:t.appendASCIIString("&amp;");break;case 0:b?t.write1(9216):t.appendASCIIString("&#00;");break;case 65279:case 8232:case 8233:case 133:t.write1(65533);break;default:i.ne(e)&&s++,b&&e<32?t.write1(9216+e):b&&127===e?t.write1(9249):b&&p(e)?(t.appendASCIIString("[U+"),t.appendASCIIString(_(e)),t.appendASCIIString("]"),n=8,s=n):t.write1(e)}N+=n,y+=s,I>=d&&(k+=s)}D?M++:M=0,I>=a&&!S&&e.isPseudoAfter()&&(S=!0,v.setColumnInfo(I+1,c,N,y)),t.appendASCIIString("</span>")}S||v.setColumnInfo(a+1,h.length-1,N,y);l&&t.appendASCIIString("<span>&hellip;</span>");return t.appendASCIIString("</span>"),new u(v,f,o)}(function(e){const t=e.lineContent;let n,s;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<t.length?(n=!0,s=e.stopRenderingLineAfter):(n=!1,s=t.length);let a=function(e,t,n,s,o){const a=[];let l=0;s>0&&(a[l++]=new r(s,"",0,!1));let h=s;for(let c=0,u=n.getCount();c<u;c++){const u=n.getEndOffset(c);if(u<=s)continue;const d=n.getClassName(c);if(u>=o){const n=!!t&&i.E_(e.substring(h,o));a[l++]=new r(o,d,0,n);break}const g=!!t&&i.E_(e.substring(h,u));a[l++]=new r(u,d,0,g),h=u}return a}(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,s);e.renderControlCharacters&&!e.isBasicASCII&&(a=function(e,t){const n=[];let i=new r(0,"",0,!1),s=0;for(const o of t){const t=o.endIndex;for(;s<t;s++){p(e.charCodeAt(s))&&(s>i.endIndex&&(i=new r(s,o.type,o.metadata,o.containsRTL),n.push(i)),i=new r(s+1,"mtkcontrol",o.metadata,!1),n.push(i))}s>i.endIndex&&(i=new r(t,o.type,o.metadata,o.containsRTL),n.push(i))}return n}(t,a));(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace)&&(a=function(e,t,n,s){const o=e.continuesWithWrappedLine,a=e.fauxIndentLength,l=e.tabSize,h=e.startVisibleColumn,c=e.useMonospaceOptimizations,u=e.selectionsOnLine,d=1===e.renderWhitespace,g=3===e.renderWhitespace,m=e.renderSpaceWidth!==e.spaceWidth,f=[];let p=0,_=0,L=s[_].type,C=s[_].containsRTL,w=s[_].endIndex;const b=s.length;let v,S=!1,I=i.HG(t);-1===I?(S=!0,I=n,v=n):v=i.lT(t);let k=!1,N=0,y=u&&u[N],M=h%l;for(let D=a;D<n;D++){const e=t.charCodeAt(D);let o;if(y&&D>=y.endOffset&&(N++,y=u&&u[N]),D<I||D>v)o=!0;else if(9===e)o=!0;else if(32===e)if(d)if(k)o=!0;else{const e=D+1<n?t.charCodeAt(D+1):0;o=32===e||9===e}else o=!0;else o=!1;if(o&&u&&(o=!!y&&y.startOffset<=D&&y.endOffset>D),o&&g&&(o=S||D>v),o&&C&&D>=I&&D<=v&&(o=!1),k){if(!o||!c&&M>=l){if(m){for(let e=(p>0?f[p-1].endIndex:a)+1;e<=D;e++)f[p++]=new r(e,"mtkw",1,!1)}else f[p++]=new r(D,"mtkw",1,!1);M%=l}}else(D===w||o&&D>a)&&(f[p++]=new r(D,L,0,C),M%=l);for(9===e?M=l:i.ne(e)?M+=2:M++,k=o;D===w&&(_++,_<b);)L=s[_].type,C=s[_].containsRTL,w=s[_].endIndex}let T=!1;if(k)if(o&&d){const e=n>0?t.charCodeAt(n-1):0,i=n>1?t.charCodeAt(n-2):0;32===e&&32!==i&&9!==i||(T=!0)}else T=!0;if(T)if(m){for(let e=(p>0?f[p-1].endIndex:a)+1;e<=n;e++)f[p++]=new r(e,"mtkw",1,!1)}else f[p++]=new r(n,"mtkw",1,!1);else f[p++]=new r(n,L,0,C);return f}(e,t,s,a));let l=0;if(e.lineDecorations.length>0){for(let t=0,n=e.lineDecorations.length;t<n;t++){const n=e.lineDecorations[t];3===n.type||1===n.type?l|=1:2===n.type&&(l|=2)}a=function(e,t,n,i){i.sort(o.d.compare);const s=o.Bs.normalize(e,i),a=s.length;let l=0;const h=[];let c=0,u=0;for(let o=0,g=n.length;o<g;o++){const e=n[o],t=e.endIndex,i=e.type,d=e.metadata,g=e.containsRTL;for(;l<a&&s[l].startOffset<t;){const e=s[l];if(e.startOffset>u&&(u=e.startOffset,h[c++]=new r(u,i,d,g)),!(e.endOffset+1<=t)){u=t,h[c++]=new r(u,i+" "+e.className,d|e.metadata,g);break}u=e.endOffset+1,h[c++]=new r(u,i+" "+e.className,d|e.metadata,g),l++}t>u&&(u=t,h[c++]=new r(u,i,d,g))}const d=n[n.length-1].endIndex;if(l<a&&s[l].startOffset===d)for(;l<a&&s[l].startOffset===d;){const e=s[l];h[c++]=new r(u,e.className,e.metadata,!1),l++}return h}(t,0,a,e.lineDecorations)}e.containsRTL||(a=function(e,t,n){let i=0;const s=[];let o=0;if(n)for(let a=0,l=t.length;a<l;a++){const n=t[a],l=n.endIndex;if(i+50<l){const t=n.type,a=n.metadata,h=n.containsRTL;let c=-1,u=i;for(let n=i;n<l;n++)32===e.charCodeAt(n)&&(c=n),-1!==c&&n-u>=50&&(s[o++]=new r(c+1,t,a,h),u=c+1,c=-1);u!==l&&(s[o++]=new r(l,t,a,h))}else s[o++]=n;i=l}else for(let a=0,l=t.length;a<l;a++){const e=t[a],n=e.endIndex,l=n-i;if(l>50){const t=e.type,a=e.metadata,h=e.containsRTL,c=Math.ceil(l/50);for(let e=1;e<c;e++){const n=i+50*e;s[o++]=new r(n,t,a,h)}s[o++]=new r(n,t,a,h)}else s[o++]=e;i=n}return s}(t,a,!e.isBasicASCII||e.fontLigatures));return new f(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,s,n,a,l,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}(e),t)}class g{constructor(e,t,n,i){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=i}}function m(e){const t=(0,s.Du)(1e4),n=d(e,t);return new g(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}class f{constructor(e,t,n,i,s,o,r,a,l,h,c,u,d,g,m){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=i,this.isOverflowing=s,this.parts=o,this.containsForeignElements=r,this.fauxIndentLength=a,this.tabSize=l,this.startVisibleColumn=h,this.containsRTL=c,this.spaceWidth=u,this.renderSpaceCharCode=d,this.renderWhitespace=g,this.renderControlCharacters=m}}function p(e){return e<32?9!==e:127===e||(e>=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e)}function _(e){return e.toString(16).toUpperCase().padStart(4,"0")}},66539:(e,t,n)=>{n.d(t,{P:()=>s});var i=n(93708);class s{constructor(e,t,n,s){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.whitespaceViewportData=n,this._model=s,this.visibleRange=new i.Q(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}},76819:(e,t,n)=>{n.d(t,{GP:()=>a,LM:()=>o,Uv:()=>d,kI:()=>h,nt:()=>r,or:()=>c,qL:()=>l,vo:()=>u});var i=n(22231),s=n(93708);class o{constructor(e,t,n,i){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|i}}class r{constructor(e,t){this.tabSize=e,this.data=t}}class a{constructor(e,t,n,i,s,o,r){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=i,this.startVisibleColumn=s,this.tokens=o,this.inlineDecorations=r}}class l{constructor(e,t,n,i,s,o,r,a,h,c){this.minColumn=e,this.maxColumn=t,this.content=n,this.continuesWithWrappedLine=i,this.isBasicASCII=l.isBasicASCII(n,o),this.containsRTL=l.containsRTL(n,this.isBasicASCII,s),this.tokens=r,this.inlineDecorations=a,this.tabSize=h,this.startVisibleColumn=c}static isBasicASCII(e,t){return!t||i.aC(e)}static containsRTL(e,t,n){return!(t||!n)&&i.E_(e)}}class h{constructor(e,t,n){this.range=e,this.inlineClassName=t,this.type=n}}class c{constructor(e,t,n,i){this.startOffset=e,this.endOffset=t,this.inlineClassName=n,this.inlineClassNameAffectsLetterSpacing=i}toInlineDecoration(e){return new h(new s.Q(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class u{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class d{constructor(e,t,n){this.color=e,this.zIndex=t,this.data=n}static cmp(e,t){return e.zIndex===t.zIndex?e.color<t.color?-1:e.color>t.color?1:0:e.zIndex-t.zIndex}}},30752:(e,t,n)=>{n.d(t,{v:()=>a});var i=n(16201),s=n(33793),o=n(87035),r=n(52174);class a extends s.jG{constructor(){super(),this._onDidChange=new i.vl,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(r.dG.onDidChange((e=>{e.changedColorMap&&this._updateColorMap()})))}static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,s.lC)(new a)),this._INSTANCE}_updateColorMap(){const e=r.dG.getColorMap();if(!e)return this._colors=[o.D.Empty],void(this._backgroundIsLight=!0);this._colors=[o.D.Empty];for(let n=1;n<e.length;n++){const t=e[n].rgba;this._colors[n]=new o.D(t.r,t.g,t.b,Math.round(255*t.a))}const t=e[2].getRelativeLuminance();this._backgroundIsLight=t>=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}a._INSTANCE=null},67440:(e,t,n)=>{n.d(t,{J:()=>a});var i=n(22231),s=n(3931),o=n(41516),r=n(2843);class a{constructor(e,t){this.classifier=new l(e,t)}static create(e){return new a(e.get(121),e.get(120))}createLineBreaksComputer(e,t,n,i){const s=[],o=[],r=[];return{addRequest:(e,t,n)=>{s.push(e),o.push(t),r.push(n)},finalize:()=>{const a=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,l=[];for(let e=0,h=s.length;e<h;e++){const h=o[e],c=r[e];!c||c.injectionOptions||h?l[e]=d(this.classifier,s[e],h,t,n,a,i):l[e]=u(this.classifier,c,s[e],t,n,a,i)}return h.length=0,c.length=0,l}}}}class l extends s.V{constructor(e,t){super(0);for(let n=0;n<e.length;n++)this.set(e.charCodeAt(n),1);for(let n=0;n<t.length;n++)this.set(t.charCodeAt(n),2)}get(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let h=[],c=[];function u(e,t,n,s,o,r,a){if(-1===o)return null;const l=n.length;if(l<=1)return null;const u=t.breakOffsets,d=t.breakOffsetsVisibleColumn,m=p(n,s,o,r,a),_=o-m,L=h,C=c;let w=0,b=0,v=0,S=o;const I=u.length;let k=0;if(k>=0){let e=Math.abs(d[k]-S);for(;k+1<I;){const t=Math.abs(d[k+1]-S);if(t>=e)break;e=t,k++}}for(;k<I;){let t=k<0?0:u[k],o=k<0?0:d[k];b>t&&(t=b,o=v);let a=0,h=0,c=0,m=0;if(o<=S){let p=o,v=0===t?0:n.charCodeAt(t-1),I=0===t?0:e.get(v),k=!0;for(let o=t;o<l;o++){const t=o,l=n.charCodeAt(o);let u,d;if(i.pc(l)?(o++,u=0,d=2):(u=e.get(l),d=g(l,p,s,r)),t>b&&f(v,I,l,u)&&(a=t,h=p),p+=d,p>S){t>b?(c=t,m=p-d):(c=o+1,m=p),p-h>_&&(a=0),k=!1;break}v=l,I=u}if(k){w>0&&(L[w]=u[u.length-1],C[w]=d[u.length-1],w++);break}}if(0===a){let l=o,u=n.charCodeAt(t),d=e.get(u),p=!1;for(let s=t-1;s>=b;s--){const t=s+1,o=n.charCodeAt(s);if(9===o){p=!0;break}let g,L;if(i.LJ(o)?(s--,g=0,L=2):(g=e.get(o),L=i.ne(o)?r:1),l<=S){if(0===c&&(c=t,m=l),l<=S-_)break;if(f(o,g,u,d)){a=t,h=l;break}}l-=L,u=o,d=g}if(0!==a){const e=_-(m-h);if(e<=s){const t=n.charCodeAt(c);let o;o=i.pc(t)?2:g(t,m,s,r),e-o<0&&(a=0)}}if(p){k--;continue}}if(0===a&&(a=c,h=m),a<=b){const e=n.charCodeAt(b);i.pc(e)?(a=b+2,h=v+2):(a=b+1,h=v+g(e,v,s,r))}for(b=a,L[w]=a,v=h,C[w]=h,w++,S=h+_;k<0||k<I&&d[k]<h;)k++;let p=Math.abs(d[k]-S);for(;k+1<I;){const e=Math.abs(d[k+1]-S);if(e>=p)break;p=e,k++}}return 0===w?null:(L.length=w,C.length=w,h=t.breakOffsets,c=t.breakOffsetsVisibleColumn,t.breakOffsets=L,t.breakOffsetsVisibleColumn=C,t.wrappedTextIndentLength=m,t)}function d(e,t,n,s,a,l,h){const c=o.uK.applyInjectedText(t,n);let u,d;if(n&&n.length>0?(u=n.map((e=>e.options)),d=n.map((e=>e.column-1))):(u=null,d=null),-1===a)return u?new r.R_(d,u,[c.length],[],0):null;const m=c.length;if(m<=1)return u?new r.R_(d,u,[c.length],[],0):null;const _=p(c,s,a,l,h),L=a-_,C=[],w=[];let b=0,v=0,S=0,I=a,k=c.charCodeAt(0),N=e.get(k),y=g(k,0,s,l),M=1;i.pc(k)&&(y+=1,k=c.charCodeAt(1),N=e.get(k),M++);for(let o=M;o<m;o++){const t=o,n=c.charCodeAt(o);let r,a;i.pc(n)?(o++,r=0,a=2):(r=e.get(n),a=g(n,y,s,l)),f(k,N,n,r)&&(v=t,S=y),y+=a,y>I&&((0===v||y-S>L)&&(v=t,S=y-a),C[b]=v,w[b]=S,b++,I=S+L,v=0),k=n,N=r}return 0!==b||n&&0!==n.length?(C[b]=m,w[b]=y,new r.R_(d,u,C,w,_)):null}function g(e,t,n,s){return 9===e?n-t%n:i.ne(e)||e<32?s:1}function m(e,t){return t-e%t}function f(e,t,n,i){return 32!==n&&(2===t&&2!==i||1!==t&&1===i||3===t&&2!==i||3===i&&1!==t)}function p(e,t,n,s,o){let r=0;if(0!==o){const a=i.HG(e);if(-1!==a){for(let n=0;n<a;n++){r+=9===e.charCodeAt(n)?m(r,t):1}const i=3===o?2:2===o?1:0;for(let e=0;e<i;e++){r+=m(r,t)}r+s>n&&(r=0)}}return r}},84428:(e,t,n)=>{n.d(t,{iE:()=>s,rW:()=>o});class i{constructor(e,t,n){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|n}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class s{constructor(e,t,n,i){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=n,this.color=i,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class o{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(s.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),s=n/Math.floor(this._outerHeight),o=Math.floor(4*this._pixelRatio/2),r=[];for(let a=0,l=this._zones.length;a<l;a++){const l=this._zones[a];if(!e){const e=l.getColorZones();if(e){r.push(e);continue}}const h=this._getVerticalOffsetForLine(l.startLineNumber),c=0===l.heightInLines?this._getVerticalOffsetForLine(l.endLineNumber)+t:h+l.heightInLines*t,u=Math.floor(s*h),d=Math.floor(s*c);let g=Math.floor((u+d)/2),m=d-g;m<o&&(m=o),g-m<0&&(g=m),g+m>n&&(g=n-m);const f=l.color;let p=this._color2Id[f];p||(p=++this._lastAssignedId,this._color2Id[f]=p,this._id2Color[p]=f);const _=new i(g-m,g+m,p);l.setColorZone(_),r.push(_)}return this._colorZonesInvalid=!1,r.sort(i.compare),r}}},67068:(e,t,n)=>{n.d(t,{r:()=>s});var i=n(74895);class s{constructor(e,t,n){this.configuration=e,this.theme=new i.v(t),this.viewModel=n,this.viewLayout=n.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}},15995:(e,t,n)=>{n.d(t,{GN:()=>l,UB:()=>a,a6:()=>h,wc:()=>c});var i=n(63102),s=n(93708),o=n(76819),r=n(99281);class a{constructor(e,t,n,i,s){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=i,this._coordinatesConverter=s,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let n=this._decorationsCache[t];if(!n){const r=e.range,a=e.options;let l;if(a.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new i.y(r.startLineNumber,1),0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new i.y(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber)),1);l=new s.Q(e.lineNumber,e.column,t.lineNumber,t.column)}else l=this._coordinatesConverter.convertModelRangeToViewRange(r,1);n=new o.vo(l,a),this._decorationsCache[t]=n}return n}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}_getDecorationsViewportData(e){const t=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,r.$C)(this.configuration.options)),n=e.startLineNumber,i=e.endLineNumber,a=[];let h=0;const c=[];for(let s=n;s<=i;s++)c[s-n]=[];for(let r=0,u=t.length;r<u;r++){const e=t[r],u=e.options;if(!l(this.model,e))continue;const d=this._getOrCreateViewModelDecoration(e),g=d.range;if(a[h++]=d,u.inlineClassName){const e=new o.kI(g,u.inlineClassName,u.inlineClassNameAffectsLetterSpacing?3:0),t=Math.max(n,g.startLineNumber),s=Math.min(i,g.endLineNumber);for(let i=t;i<=s;i++)c[i-n].push(e)}if(u.beforeContentClassName&&n<=g.startLineNumber&&g.startLineNumber<=i){const e=new o.kI(new s.Q(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn),u.beforeContentClassName,1);c[g.startLineNumber-n].push(e)}if(u.afterContentClassName&&n<=g.endLineNumber&&g.endLineNumber<=i){const e=new o.kI(new s.Q(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn),u.afterContentClassName,2);c[g.endLineNumber-n].push(e)}}return{decorations:a,inlineDecorations:c}}}function l(e,t){return(!t.options.hideInCommentTokens||!h(e,t))&&(!t.options.hideInStringTokens||!c(e,t))}function h(e,t){return u(e,t.range,(e=>1===e))}function c(e,t){return u(e,t.range,(e=>2===e))}function u(e,t,n){for(let i=t.startLineNumber;i<=t.endLineNumber;i++){const s=e.tokenization.getLineTokens(i),o=i===t.startLineNumber,r=i===t.endLineNumber;let a=o?s.findTokenIndexAtOffset(t.startColumn-1):0;for(;a<s.getCount();){if(r){if(s.getStartOffset(a)>t.endColumn-1)break}if(!n(s.getStandardTokenType(a)))return!1;a++}}return!0}},81034:(e,t,n)=>{n.d(t,{J:()=>q});var i=n(8415),s=n(85345),o=n(59638),r=n(33793),a=n(76394),l=n(22231),h=n(99281),c=n(25004),u=n(22766),d=n(63102),g=n(93708),m=n(41516),f=n(52174),p=n(75562),_=n(17249),L=n(63877),C=n(16201),w=n(6460);class b{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,n=this._changes,i=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,n,i)}}class v{constructor(e,t,n,i,s){this.id=e,this.afterLineNumber=t,this.ordinal=n,this.height=i,this.minWidth=s,this.prefixSum=0}}class S{constructor(e,t,n,i){this._instanceId=l.tk(++S.INSTANCE_COUNT),this._pendingChanges=new b,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=n,this._paddingBottom=i}static findInsertionIndex(e,t,n){let i=0,s=e.length;for(;i<s;){const o=i+s>>>1;t===e[o].afterLineNumber?n<e[o].ordinal?s=o:i=o+1:t<e[o].afterLineNumber?s=o:i=o+1}return i}setLineHeight(e){this._checkPendingChanges(),this._lineHeight=e}setPadding(e,t){this._paddingTop=e,this._paddingBottom=t}onFlushed(e){this._checkPendingChanges(),this._lineCount=e}changeWhitespace(e){let t=!1;try{e({insertWhitespace:(e,n,i,s)=>{t=!0,e|=0,n|=0,i|=0,s|=0;const o=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new v(o,e,n,i,s)),o},changeOneWhitespace:(e,n,i)=>{t=!0,n|=0,i|=0,this._pendingChanges.change({id:e,newAfterLineNumber:n,newHeight:i})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,n){if((e.length>0||n.length>0)&&(this._minWidth=-1),e.length+t.length+n.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of n){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const i=new Set;for(const a of n)i.add(a.id);const s=new Map;for(const a of t)s.set(a.id,a);const o=e=>{const t=[];for(const n of e)if(!i.has(n.id)){if(s.has(n.id)){const e=s.get(n.id);n.afterLineNumber=e.newAfterLineNumber,n.height=e.newHeight}t.push(n)}return t},r=o(this._arr).concat(o(e));r.sort(((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber)),this._arr=r,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=S.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let n=0,i=t.length;n<i;n++)if(t[n].id===e)return n;return-1}_changeOneWhitespace(e,t,n){const i=this._findWhitespaceIndex(e);if(-1!==i&&(this._arr[i].height!==n&&(this._arr[i].height=n,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1)),this._arr[i].afterLineNumber!==t)){const e=this._arr[i];this._removeWhitespace(i),e.afterLineNumber=t,this._insertWhitespace(e)}}_removeWhitespace(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}onLinesDeleted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(let n=0,i=this._arr.length;n<i;n++){const i=this._arr[n].afterLineNumber;e<=i&&i<=t?this._arr[n].afterLineNumber=e-1:i>t&&(this._arr[n].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let n=0,i=this._arr.length;n<i;n++){e<=this._arr[n].afterLineNumber&&(this._arr[n].afterLineNumber+=t-e+1)}}getWhitespacesTotalHeight(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(e){this._checkPendingChanges(),e|=0;let t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(let n=t;n<=e;n++)this._arr[n].prefixSum=this._arr[n-1].prefixSum+this._arr[n].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum}getLinesTotalHeight(){this._checkPendingChanges();return this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(e){this._checkPendingChanges(),e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)}_findLastWhitespaceBeforeLineNumber(e){e|=0;const t=this._arr;let n=0,i=t.length-1;for(;n<=i;){const s=n+((i-n|0)/2|0)|0;if(t[s].afterLineNumber<e){if(s+1>=t.length||t[s+1].afterLineNumber>=e)return s;n=s+1|0}else i=s-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1}getFirstWhitespaceIndexAfterLineNumber(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)}getVerticalOffsetForLineNumber(e,t=!1){let n;this._checkPendingChanges(),n=(e|=0)>1?this._lineHeight*(e-1):0;return n+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0))+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,n=this._arr.length;t<n;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}isAfterLines(e){this._checkPendingChanges();return e>this.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e<this._paddingTop)}isInBottomPadding(e){if(0===this._paddingBottom)return!1;this._checkPendingChanges();return e>=this.getLinesTotalHeight()-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,n=this._lineHeight;let i=1,s=t;for(;i<s;){const t=(i+s)/2|0,o=0|this.getVerticalOffsetForLineNumber(t);if(e>=o+n)i=t+1;else{if(e>=o)return t;s=t}}return i>t?t:i}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const n=this._lineHeight,i=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(i);let o=0|this._lineCount,r=0|this.getFirstWhitespaceIndexAfterLineNumber(i);const a=0|this.getWhitespacesCount();let l,h;-1===r?(r=a,h=o+1,l=0):(h=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));let c=s,u=c;const d=5e5;let g=0;s>=d&&(g=Math.floor(s/d)*d,g=Math.floor(g/n)*n,u-=g);const m=[],f=e+(t-e)/2;let p=-1;for(let w=i;w<=o;w++){if(-1===p){(c<=f&&f<c+n||c>f)&&(p=w)}for(c+=n,m[w-i]=u,u+=n;h===w;)u+=l,c+=l,r++,r>=a?h=o+1:(h=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));if(c>=t){o=w;break}}-1===p&&(p=o);const _=0|this.getVerticalOffsetForLineNumber(o);let L=i,C=o;return L<C&&s<e&&L++,L<C&&_+n>t&&C--,{bigNumbersDelta:g,startLineNumber:i,endLineNumber:o,relativeVerticalOffset:m,centeredLineNumber:p,completelyVisibleStartLineNumber:L,completelyVisibleEndLineNumber:C}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let n,i;return n=t>=1?this._lineHeight*t:0,i=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,n+i+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,n=this.getWhitespacesCount()-1;if(n<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(n)+this.getHeightForWhitespaceIndex(n))return-1;for(;t<n;){const i=Math.floor((t+n)/2),s=this.getVerticalOffsetForWhitespaceIndex(i);if(e>=s+this.getHeightForWhitespaceIndex(i))t=i+1;else{if(e>=s)return i;n=i}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;const i=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:i}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),i=this.getWhitespacesCount()-1;if(n<0)return[];const s=[];for(let o=n;o<=i;o++){const e=this.getVerticalOffsetForWhitespaceIndex(o),n=this.getHeightForWhitespaceIndex(o);if(e>=t)break;s.push({id:this.getIdForWhitespaceIndex(o),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(o),verticalOffset:e,height:n})}return s}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}S.INSTANCE_COUNT=0;var I=n(76819),k=n(2658);class N{constructor(e,t,n,i){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(n|=0)<0&&(n=0),(i|=0)<0&&(i=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=n,this.contentHeight=i,this.scrollHeight=Math.max(n,i)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class y extends r.jG{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new C.vl),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new N(0,0,0,0),this._scrollable=this._register(new w.yE({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const n=t.contentWidth!==e.contentWidth,i=t.contentHeight!==e.contentHeight;(n||i)&&this._onDidContentSizeChange.fire(new k.H(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}}class M extends r.jG{constructor(e,t,n){super(),this._configuration=e;const i=this._configuration.options,s=i.get(132),o=i.get(76);this._linesLayout=new S(t,i.get(60),o.top,o.bottom),this._scrollable=this._register(new y(0,n)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new N(s.contentWidth,0,s.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(104)?125:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(60)&&this._linesLayout.setLineHeight(t.get(60)),e.hasChanged(76)){const e=t.get(76);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(132)){const e=t.get(132),n=e.contentWidth,i=e.height,s=this._scrollable.getScrollDimensions(),o=s.contentWidth;this._scrollable.setScrollDimensions(new N(n,s.contentWidth,i,this._getContentHeight(n,i,o)))}else this._updateHeight();e.hasChanged(104)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const n=this._configuration.options.get(93);return 2===n.horizontal||e>=t?0:n.horizontalScrollbarSize}_getContentHeight(e,t,n){const i=this._configuration.options;let s=this._linesLayout.getLinesTotalHeight();return i.get(95)?s+=Math.max(0,t-i.get(60)-i.get(76).bottom):s+=this._getHorizontalScrollbarHeight(e,n),s}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,n=e.height,i=e.contentWidth;this._scrollable.setScrollDimensions(new N(t,e.contentWidth,n,this._getContentHeight(t,n,i)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new I.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new I.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,n=t.get(133),i=t.get(45),s=t.get(132);if(n.isViewportWrapping){const n=t.get(66);return e>s.contentWidth+i.typicalHalfwidthCharacterWidth&&n.enabled&&"right"===n.side?e+s.verticalScrollbarWidth:e}{const n=t.get(94)*i.typicalHalfwidthCharacterWidth,o=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+n+s.verticalScrollbarWidth,o)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new N(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){const n=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})}}var T=n(30752),D=n(15995),O=n(72072),V=n(21174),E=n(41630);function P(e,t){return null===e?t?x.INSTANCE:A.INSTANCE:new R(e,t)}class R{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,n){this._assertVisible();const i=n>0?this._projectionData.breakOffsets[n-1]:0,s=this._projectionData.breakOffsets[n];let o;if(null!==this._projectionData.injectionOffsets){const n=this._projectionData.injectionOffsets.map(((e,t)=>new m.uK(0,0,e+1,this._projectionData.injectionOptions[t],0)));o=m.uK.applyInjectedText(e.getLineContent(t),n).substring(i,s)}else o=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:s+1});return n>0&&(o=F(this._projectionData.wrappedTextIndentLength)+o),o}getViewLineLength(e,t,n){return this._assertVisible(),this._projectionData.getLineLength(n)}getViewLineMinColumn(e,t,n){return this._assertVisible(),this._projectionData.getMinOutputOffset(n)+1}getViewLineMaxColumn(e,t,n){return this._assertVisible(),this._projectionData.getMaxOutputOffset(n)+1}getViewLineData(e,t,n){const i=new Array;return this.getViewLinesData(e,t,n,1,0,[!0],i),i[0]}getViewLinesData(e,t,n,i,s,o,r){this._assertVisible();const a=this._projectionData,l=a.injectionOffsets,h=a.injectionOptions;let c,u=null;if(l){u=[];let e=0,t=0;for(let n=0;n<a.getOutputLineCount();n++){const i=new Array;u[n]=i;const s=n>0?a.breakOffsets[n-1]:0,o=a.breakOffsets[n];for(;t<l.length;){const r=h[t].content.length,c=l[t]+e,u=c+r;if(c>o)break;if(s<u){const e=h[t];if(e.inlineClassName){const t=n>0?a.wrappedTextIndentLength:0,r=t+Math.max(c-s,0),l=t+Math.min(u-s,o);r!==l&&i.push(new I.or(r,l,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(!(u<=o))break;e+=r,t++}}}c=l?e.tokenization.getLineTokens(t).withInserted(l.map(((e,t)=>({offset:e,text:h[t].content,tokenMetadata:E.f.defaultTokenMetadata})))):e.tokenization.getLineTokens(t);for(let d=n;d<n+i;d++){const e=s+d-n;o[e]?r[e]=this._getViewLineData(c,u?u[d]:null,d):r[e]=null}}_getViewLineData(e,t,n){this._assertVisible();const i=this._projectionData,s=n>0?i.wrappedTextIndentLength:0,o=n>0?i.breakOffsets[n-1]:0,r=i.breakOffsets[n],a=e.sliceAndInflate(o,r,s);let l=a.getLineContent();n>0&&(l=F(i.wrappedTextIndentLength)+l);const h=this._projectionData.getMinOutputOffset(n)+1,c=l.length+1,u=n+1<this.getViewLineCount(),d=0===n?0:i.breakOffsetsVisibleColumn[n-1];return new I.GP(l,u,h,c,d,a,t)}getModelColumnOfViewPosition(e,t){return this._assertVisible(),this._projectionData.translateToInputOffset(e,t-1)+1}getViewPositionOfModelPosition(e,t,n=2){this._assertVisible();return this._projectionData.translateToOutputPosition(t-1,n).toPosition(e)}getViewLineNumberOfModelPosition(e,t){this._assertVisible();return e+this._projectionData.translateToOutputPosition(t-1).outputLineIndex}normalizePosition(e,t,n){const i=t.lineNumber-e;return this._projectionData.normalizeOutputPosition(e,t.column-1,n).toPosition(i)}getInjectedTextAt(e,t){return this._projectionData.getInjectedText(e,t-1)}_assertVisible(){if(!this._isVisible)throw new Error("Not supported")}}class x{constructor(){}isVisible(){return!0}setVisible(e){return e?this:A.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,n){return e.getLineContent(t)}getViewLineLength(e,t,n){return e.getLineLength(t)}getViewLineMinColumn(e,t,n){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,n){return e.getLineMaxColumn(t)}getViewLineData(e,t,n){const i=e.tokenization.getLineTokens(t),s=i.getLineContent();return new I.GP(s,!1,1,s.length+1,0,i.inflate(),null)}getViewLinesData(e,t,n,i,s,o,r){o[s]?r[s]=this.getViewLineData(e,t,0):r[s]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new d.y(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,n){return t}getInjectedTextAt(e,t){return null}}x.INSTANCE=new x;class A{constructor(){}isVisible(){return!1}setVisible(e){return e?x.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,n){throw new Error("Not supported")}getViewLineLength(e,t,n){throw new Error("Not supported")}getViewLineMinColumn(e,t,n){throw new Error("Not supported")}getViewLineMaxColumn(e,t,n){throw new Error("Not supported")}getViewLineData(e,t,n){throw new Error("Not supported")}getViewLinesData(e,t,n,i,s,o,r){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}normalizePosition(e,t,n){throw new Error("Not supported")}getInjectedTextAt(e,t){throw new Error("Not supported")}}A.INSTANCE=new A;const W=[""];function F(e){if(e>=W.length)for(let t=1;t<=e;t++)W[t]=H(t);return W[e]}function H(e){return new Array(e+1).join(" ")}var j=n(29733);class B{constructor(e,t,n,i,s,o,r,a,l){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=n,this._monospaceLineBreaksComputerFactory=i,this.fontInfo=s,this.tabSize=o,this.wrappingStrategy=r,this.wrappingColumn=a,this.wrappingIndent=l,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new G(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const n=this.model.getLinesContent(),s=this.model.getInjectedTextDecorations(this._editorId),o=n.length,r=this.createLineBreaksComputer(),a=new i.j3(m.uK.fromDecorations(s));for(let i=0;i<o;i++){const e=a.takeWhile((e=>e.lineNumber===i+1));r.addRequest(n[i],e,t?t[i]:null)}const l=r.finalize(),h=[],c=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(g.Q.compareRangesUsingStarts);let u=1,d=0,f=-1,p=f+1<c.length?d+1:o+2;for(let i=0;i<o;i++){const e=i+1;e===p&&(f++,u=c[f].startLineNumber,d=c[f].endLineNumber,p=f+1<c.length?d+1:o+2);const t=e>=u&&e<=d,n=P(l[i],!t);h[i]=n.getViewLineCount(),this.modelLineProjections[i]=n}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new j.c2(h)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e)))}setHiddenAreas(e){const t=function(e){if(0===e.length)return[];const t=e.slice();t.sort(g.Q.compareRangesUsingStarts);const n=[];let i=t[0].startLineNumber,s=t[0].endLineNumber;for(let o=1,r=t.length;o<r;o++){const e=t[o];e.startLineNumber>s+1?(n.push(new g.Q(i,1,s,1)),i=e.startLineNumber,s=e.endLineNumber):e.endLineNumber>s&&(s=e.endLineNumber)}return n.push(new g.Q(i,1,s,1)),n}(e.map((e=>this.model.validateRange(e)))),n=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(g.Q.compareRangesUsingStarts);if(t.length===n.length){let e=!1;for(let i=0;i<t.length;i++)if(!t[i].equalsRange(n[i])){e=!0;break}if(!e)return!1}const i=t.map((e=>({range:e,options:V.kI.EMPTY})));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,i);const s=t;let o=1,r=0,a=-1,l=a+1<s.length?r+1:this.modelLineProjections.length+2,h=!1;for(let c=0;c<this.modelLineProjections.length;c++){const e=c+1;e===l&&(a++,o=s[a].startLineNumber,r=s[a].endLineNumber,l=a+1<s.length?r+1:this.modelLineProjections.length+2);let t=!1;if(e>=o&&e<=r?this.modelLineProjections[c].isVisible()&&(this.modelLineProjections[c]=this.modelLineProjections[c].setVisible(!1),t=!0):(h=!0,this.modelLineProjections[c].isVisible()||(this.modelLineProjections[c]=this.modelLineProjections[c].setVisible(!0),t=!0)),t){const e=this.modelLineProjections[c].getViewLineCount();this.projectedModelLineLineCounts.setValue(c,e)}}return h||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.modelLineProjections.length)&&this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,n,i){const s=this.fontInfo.equals(e),o=this.wrappingStrategy===t,r=this.wrappingColumn===n,a=this.wrappingIndent===i;if(s&&o&&r&&a)return!1;const l=s&&o&&!r&&a;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=n,this.wrappingIndent=i;let h=null;if(l){h=[];for(let e=0,t=this.modelLineProjections.length;e<t;e++)h[e]=this.modelLineProjections[e].getProjectionData()}return this._constructLines(!1,h),!0}createLineBreaksComputer(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(e,t,n){if(!e||e<=this._validModelVersionId)return null;const i=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,s=this.projectedModelLineLineCounts.getPrefixSum(n);return this.modelLineProjections.splice(t-1,n-t+1),this.projectedModelLineLineCounts.removeValues(t-1,n-t+1),new L.Uf(i,s)}onModelLinesInserted(e,t,n,i){if(!e||e<=this._validModelVersionId)return null;const s=t>2&&!this.modelLineProjections[t-2].isVisible(),o=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let r=0;const a=[],l=[];for(let h=0,c=i.length;h<c;h++){const e=P(i[h],!s);a.push(e);const t=e.getViewLineCount();r+=t,l[h]=t}return this.modelLineProjections=this.modelLineProjections.slice(0,t-1).concat(a).concat(this.modelLineProjections.slice(t-1)),this.projectedModelLineLineCounts.insertValues(t-1,l),new L.rZ(o,o+r-1)}onModelLineChanged(e,t,n){if(null!==e&&e<=this._validModelVersionId)return[!1,null,null,null];const i=t-1,s=this.modelLineProjections[i].getViewLineCount(),o=P(n,this.modelLineProjections[i].isVisible());this.modelLineProjections[i]=o;const r=this.modelLineProjections[i].getViewLineCount();let a=!1,l=0,h=-1,c=0,u=-1,d=0,g=-1;s>r?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,h=l+r-1,d=h+1,g=d+(s-r)-1,a=!0):s<r?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,h=l+s-1,c=h+1,u=c+(r-s)-1,a=!0):(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,h=l+r-1),this.projectedModelLineLineCounts.setValue(i,r);return[a,l<=h?new L.bu(l,h-l+1):null,c<=u?new L.rZ(c,u):null,d<=g?new L.Uf(d,g):null]}acceptVersionId(e){this._validModelVersionId=e,1!==this.modelLineProjections.length||this.modelLineProjections[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.projectedModelLineLineCounts.getTotalSum()}_toValidViewLineNumber(e){if(e<1)return 1;const t=this.getViewLineCount();return e>t?t:0|e}getActiveIndentGuide(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),o=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),r=this.model.guides.getActiveIndentGuide(i.lineNumber,s.lineNumber,o.lineNumber),a=this.convertModelPositionToViewPosition(r.startLineNumber,1),l=this.convertModelPositionToViewPosition(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:r.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),n=t.index,i=t.remainder;return new z(n+1,i)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],n=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),i=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,n);return new d.y(e.modelLineNumber,i)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],n=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),i=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,n);return new d.y(e.modelLineNumber,i)}getViewLineInfosGroupedByModelRanges(e,t){const n=this.getViewLineInfo(e),i=this.getViewLineInfo(t),s=new Array;let o=this.getModelStartPositionOfViewLine(n),r=new Array;for(let a=n.modelLineNumber;a<=i.modelLineNumber;a++){const e=this.modelLineProjections[a-1];if(e.isVisible()){const t=a===n.modelLineNumber?n.modelLineWrappedLineIdx:0,s=a===i.modelLineNumber?i.modelLineWrappedLineIdx+1:e.getViewLineCount();for(let e=t;e<s;e++)r.push(new z(a,e))}if(!e.isVisible()&&o){const e=new d.y(a-1,this.model.getLineMaxColumn(a-1)+1),t=g.Q.fromPositions(o,e);s.push(new U(t,r)),r=[],o=null}else e.isVisible()&&!o&&(o=new d.y(a,1))}if(o){const e=g.Q.fromPositions(o,this.getModelEndPositionOfViewLine(i));s.push(new U(e,r))}return s}getViewLinesBracketGuides(e,t,n,i){const s=n?this.convertViewPositionToModelPosition(n.lineNumber,n.column):null,o=[];for(const r of this.getViewLineInfosGroupedByModelRanges(e,t)){const e=r.modelRange.startLineNumber,t=this.model.guides.getLinesBracketGuides(e,r.modelRange.endLineNumber,s,i);for(const n of r.viewLines){const i=t[n.modelLineNumber-e].map((e=>{if(-1!==e.forWrappedLinesAfterColumn){if(this.modelLineProjections[n.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesAfterColumn).lineNumber>=n.modelLineWrappedLineIdx)return}if(-1!==e.forWrappedLinesBeforeOrAtColumn){if(this.modelLineProjections[n.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesBeforeOrAtColumn).lineNumber<n.modelLineWrappedLineIdx)return}if(!e.horizontalLine)return e;let t=-1;if(-1!==e.column){const i=this.modelLineProjections[n.modelLineNumber-1].getViewPositionOfModelPosition(0,e.column);if(i.lineNumber===n.modelLineWrappedLineIdx)t=i.column;else if(i.lineNumber<n.modelLineWrappedLineIdx)t=this.getMinColumnOfViewLine(n);else if(i.lineNumber>n.modelLineWrappedLineIdx)return}const i=this.convertModelPositionToViewPosition(n.modelLineNumber,e.horizontalLine.endColumn),s=this.modelLineProjections[n.modelLineNumber-1].getViewPositionOfModelPosition(0,e.horizontalLine.endColumn);return s.lineNumber===n.modelLineWrappedLineIdx?new O.TH(e.visibleColumn,t,e.className,new O.pv(e.horizontalLine.top,i.column),-1,-1):s.lineNumber<n.modelLineWrappedLineIdx||-1!==e.visibleColumn?void 0:new O.TH(e.visibleColumn,t,e.className,new O.pv(e.horizontalLine.top,this.getMaxColumnOfViewLine(n)),-1,-1)}));o.push(i.filter((e=>!!e)))}}return o}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let s=[];const o=[],r=[],a=n.lineNumber-1,l=i.lineNumber-1;let h=null;for(let m=a;m<=l;m++){const e=this.modelLineProjections[m];if(e.isVisible()){const t=e.getViewLineNumberOfModelPosition(0,m===a?n.column:1),i=e.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(m+1)),s=i-t+1;let l=0;s>1&&1===e.getViewLineMinColumn(this.model,m+1,i)&&(l=0===t?1:2),o.push(s),r.push(l),null===h&&(h=new d.y(m+1,0))}else null!==h&&(s=s.concat(this.model.guides.getLinesIndentGuides(h.lineNumber,m)),h=null)}null!==h&&(s=s.concat(this.model.guides.getLinesIndentGuides(h.lineNumber,i.lineNumber)),h=null);const c=t-e+1,u=new Array(c);let g=0;for(let d=0,m=s.length;d<m;d++){let e=s[d];const t=Math.min(c-g,o[d]),n=r[d];let i;i=2===n?0:1===n?1:t;for(let s=0;s<t;s++)s===i&&(e=0),u[g++]=e}return u}getViewLineContent(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineContent(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineLength(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineLength(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMinColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMinColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMaxColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMaxColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineData(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineData(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLinesData(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.projectedModelLineLineCounts.getIndexOf(e-1);let s=e;const o=i.index,r=i.remainder,a=[];for(let l=o,h=this.model.getLineCount();l<h;l++){const i=this.modelLineProjections[l];if(!i.isVisible())continue;const h=l===o?r:0;let c=i.getViewLineCount()-h,u=!1;if(s+c>t&&(u=!0,c=t-s+1),i.getViewLinesData(this.model,l+1,h,c,s-e,n,a),s+=c,u)break}return a}validateViewPosition(e,t,n){e=this._toValidViewLineNumber(e);const i=this.projectedModelLineLineCounts.getIndexOf(e-1),s=i.index,o=i.remainder,r=this.modelLineProjections[s],a=r.getViewLineMinColumn(this.model,s+1,o),l=r.getViewLineMaxColumn(this.model,s+1,o);t<a&&(t=a),t>l&&(t=l);const h=r.getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new d.y(s+1,h)).equals(n)?new d.y(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)}validateViewRange(e,t){const n=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new g.Q(n.lineNumber,n.column,i.lineNumber,i.column)}convertViewPositionToModelPosition(e,t){const n=this.getViewLineInfo(e),i=this.modelLineProjections[n.modelLineNumber-1].getModelColumnOfViewPosition(n.modelLineWrappedLineIdx,t);return this.model.validatePosition(new d.y(n.modelLineNumber,i))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new g.Q(t.lineNumber,t.column,n.lineNumber,n.column)}convertModelPositionToViewPosition(e,t,n=2){const i=this.model.validatePosition(new d.y(e,t)),s=i.lineNumber,o=i.column;let r=s-1,a=!1;for(;r>0&&!this.modelLineProjections[r].isVisible();)r--,a=!0;if(0===r&&!this.modelLineProjections[r].isVisible())return new d.y(1,1);const l=1+this.projectedModelLineLineCounts.getPrefixSum(r);let h;return h=a?this.modelLineProjections[r].getViewPositionOfModelPosition(l,this.model.getLineMaxColumn(r+1),n):this.modelLineProjections[s-1].getViewPositionOfModelPosition(l,o,n),h}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const n=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return g.Q.fromPositions(n)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new g.Q(t.lineNumber,t.column,n.lineNumber,n.column)}}getViewLineNumberOfModelPosition(e,t){let n=e-1;if(this.modelLineProjections[n].isVisible()){const e=1+this.projectedModelLineLineCounts.getPrefixSum(n);return this.modelLineProjections[n].getViewLineNumberOfModelPosition(e,t)}for(;n>0&&!this.modelLineProjections[n].isVisible();)n--;if(0===n&&!this.modelLineProjections[n].isVisible())return 1;const i=1+this.projectedModelLineLineCounts.getPrefixSum(n);return this.modelLineProjections[n].getViewLineNumberOfModelPosition(i,this.model.getLineMaxColumn(n+1))}getDecorationsInRange(e,t,n){const i=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),s=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(s.lineNumber-i.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new g.Q(i.lineNumber,1,s.lineNumber,s.column),t,n);let o=[];const r=i.lineNumber-1,a=s.lineNumber-1;let l=null;for(let m=r;m<=a;m++){if(this.modelLineProjections[m].isVisible())null===l&&(l=new d.y(m+1,m===r?i.column:1));else if(null!==l){const e=this.model.getLineMaxColumn(m);o=o.concat(this.model.getDecorationsInRange(new g.Q(l.lineNumber,l.column,m,e),t,n)),l=null}}null!==l&&(o=o.concat(this.model.getDecorationsInRange(new g.Q(l.lineNumber,l.column,s.lineNumber,s.column),t,n)),l=null),o.sort(((e,t)=>{const n=g.Q.compareRangesUsingStarts(e.range,t.range);return 0===n?e.id<t.id?-1:e.id>t.id?1:0:n}));const h=[];let c=0,u=null;for(const d of o){const e=d.id;u!==e&&(u=e,h[c++]=d)}return h}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const n=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[n.modelLineNumber-1].normalizePosition(n.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return 0===t.modelLineWrappedLineIdx?this.model.getLineIndentColumn(t.modelLineNumber):0}}class z{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class U{constructor(e,t){this.modelRange=e,this.viewLines=t}}class G{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class K{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new Q(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,n,i){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,n,i)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,n){return new L.Uf(t,n)}onModelLinesInserted(e,t,n,i){return new L.rZ(t,n)}onModelLineChanged(e,t,n){return[!1,new L.bu(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,n){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const n=t-e+1,i=new Array(n);for(let s=0;s<n;s++)i[s]=0;return i}getViewLineContent(e){return this.model.getLineContent(e)}getViewLineLength(e){return this.model.getLineLength(e)}getViewLineMinColumn(e){return this.model.getLineMinColumn(e)}getViewLineMaxColumn(e){return this.model.getLineMaxColumn(e)}getViewLineData(e){const t=this.model.tokenization.getLineTokens(e),n=t.getLineContent();return new I.GP(n,!1,1,n.length+1,0,t.inflate(),null)}getViewLinesData(e,t,n){const i=this.model.getLineCount();e=Math.min(Math.max(1,e),i),t=Math.min(Math.max(1,t),i);const s=[];for(let o=e;o<=t;o++){const t=o-e;s[t]=n[t]?this.getViewLineData(o):null}return s}getDecorationsInRange(e,t,n){return this.model.getDecorationsInRange(e,t,n)}normalizePosition(e,t){return this.model.normalizePosition(e,t)}getLineIndentColumn(e){return this.model.getLineIndentColumn(e)}getInjectedTextAt(e){return null}}class Q{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}class q extends r.jG{constructor(e,t,n,i,o,r,a,l){if(super(),this.languageConfigurationService=a,this._themeService=l,this._editorId=e,this._configuration=t,this.model=n,this._eventDispatcher=new k.ql,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new u.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._tokenizeViewportSoon=this._register(new s.uC((()=>this.tokenizeViewport()),50)),this._updateConfigurationViewLineCount=this._register(new s.uC((()=>this._updateConfigurationViewLineCountNow()),0)),this._hasFocus=!1,this._viewportStart=$.create(this.model),this.model.isTooLargeForTokenization())this._lines=new K(this.model);else{const e=this._configuration.options,t=e.get(45),n=e.get(126),s=e.get(133),r=e.get(125);this._lines=new B(this._editorId,this.model,i,o,t,this.model.getOptions().tabSize,n,s.wrappingColumn,r)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new c._(n,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new M(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll((e=>{e.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),e.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new L.lg(e)),this._eventDispatcher.emitOutgoingEvent(new k.s1(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),this._register(this.viewLayout.onDidContentSizeChange((e=>{this._eventDispatcher.emitOutgoingEvent(e)}))),this._decorations=new D.UB(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(T.v.getInstance().onDidChange((()=>{this._eventDispatcher.emitSingleViewEvent(new L.U)}))),this._register(this._themeService.onDidColorThemeChange((e=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new L.tO(e))}))),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const e=this.viewLayout.getLinesViewportData(),t=new g.Q(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber)),n=this._toModelVisibleRanges(t);for(const i of n)this.model.tokenization.tokenizeViewport(i.startLineNumber,i.endLineNumber)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new L.E5(e)),this._eventDispatcher.emitOutgoingEvent(new k.TA(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new L.Kb)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new L.dQ)}_onConfigurationChanged(e,t){let n=null;if(this._viewportStart.isValid){const e=new d.y(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber));n=this.coordinatesConverter.convertViewPositionToModelPosition(e)}let i=!1;const s=this._configuration.options,o=s.get(45),r=s.get(126),a=s.get(133),l=s.get(125);if(this._lines.setWrappingSettings(o,r,a.wrappingColumn,l)&&(e.emitViewEvent(new L.zv),e.emitViewEvent(new L.M7),e.emitViewEvent(new L.h9(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(i=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(82)&&(this._decorations.reset(),e.emitViewEvent(new L.h9(null))),e.emitViewEvent(new L.Ey(t)),this.viewLayout.onConfigurationChanged(t),i&&n){const e=this.coordinatesConverter.convertModelPositionToViewPosition(n),t=this.viewLayout.getVerticalOffsetForLineNumber(e.lineNumber);this.viewLayout.setScrollPosition({scrollTop:t+this._viewportStart.startLineDelta},1)}u.d$.shouldRecreate(t)&&(this.cursorConfig=new u.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let n=!1,s=!1;const o=e instanceof m.Ic?e.rawContentChangedEvent.changes:e.changes,r=e instanceof m.Ic?e.rawContentChangedEvent.versionId:null,a=this._lines.createLineBreaksComputer();for(const e of o)switch(e.changeType){case 4:for(let t=0;t<e.detail.length;t++){const n=e.detail[t];let i=e.injectedTexts[t];i&&(i=i.filter((e=>!e.ownerId||e.ownerId===this._editorId))),a.addRequest(n,i,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter((e=>!e.ownerId||e.ownerId===this._editorId))),a.addRequest(e.detail,t,null);break}}const l=a.finalize(),h=new i.j3(l);for(const e of o)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new L.zv),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),n=!0;break;case 3:{const i=this._lines.onModelLinesDeleted(r,e.fromLineNumber,e.toLineNumber);null!==i&&(t.emitViewEvent(i),this.viewLayout.onLinesDeleted(i.fromLineNumber,i.toLineNumber)),n=!0;break}case 4:{const i=h.takeCount(e.detail.length),s=this._lines.onModelLinesInserted(r,e.fromLineNumber,e.toLineNumber,i);null!==s&&(t.emitViewEvent(s),this.viewLayout.onLinesInserted(s.fromLineNumber,s.toLineNumber)),n=!0;break}case 2:{const n=h.dequeue(),[i,o,a,l]=this._lines.onModelLineChanged(r,e.lineNumber,n);s=i,o&&t.emitViewEvent(o),a&&(t.emitViewEvent(a),this.viewLayout.onLinesInserted(a.fromLineNumber,a.toLineNumber)),l&&(t.emitViewEvent(l),this.viewLayout.onLinesDeleted(l.fromLineNumber,l.toLineNumber));break}}null!==r&&this._lines.acceptVersionId(r),this.viewLayout.onHeightMaybeChanged(),!n&&s&&(t.emitViewEvent(new L.M7),t.emitViewEvent(new L.h9(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const e=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),n=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:n+this._viewportStart.startLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();e instanceof m.Ic&&t.emitOutgoingEvent(new k.VN(e.contentChangedEvent)),this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._tokenizeViewportSoon.schedule()}))),this._register(this.model.onDidChangeTokens((e=>{const t=[];for(let n=0,i=e.ranges.length;n<i;n++){const i=e.ranges[n],s=this.coordinatesConverter.convertModelPositionToViewPosition(new d.y(i.fromLineNumber,1)).lineNumber,o=this.coordinatesConverter.convertModelPositionToViewPosition(new d.y(i.toLineNumber,this.model.getLineMaxColumn(i.toLineNumber))).lineNumber;t[n]={fromLineNumber:s,toLineNumber:o}}this._eventDispatcher.emitSingleViewEvent(new L.GL(t)),e.tokenizationSupportChanged&&this._tokenizeViewportSoon.schedule(),this._eventDispatcher.emitOutgoingEvent(new k.Md(e))}))),this._register(this.model.onDidChangeLanguageConfiguration((e=>{this._eventDispatcher.emitSingleViewEvent(new L.qK),this.cursorConfig=new u.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new k.Qo(e))}))),this._register(this.model.onDidChangeLanguage((e=>{this.cursorConfig=new u.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new k.qI(e))}))),this._register(this.model.onDidChangeOptions((e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new L.zv),e.emitViewEvent(new L.M7),e.emitViewEvent(new L.h9(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new u.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new k.eM(e))}))),this._register(this.model.onDidChangeDecorations((e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new L.h9(e)),this._eventDispatcher.emitOutgoingEvent(new k.FU(e))})))}setHiddenAreas(e){let t=!1;try{const n=this._eventDispatcher.beginEmitViewEvents();t=this._lines.setHiddenAreas(e),t&&(n.emitViewEvent(new L.zv),n.emitViewEvent(new L.M7),n.emitViewEvent(new L.h9(null)),this._cursor.onLineMappingChanged(n),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),t&&this._eventDispatcher.emitOutgoingEvent(new k.fu)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(132),t=this._configuration.options.get(60),n=Math.max(20,Math.round(e.height/t)),i=this.viewLayout.getLinesViewportData(),s=Math.max(1,i.completelyVisibleStartLineNumber-n),o=Math.min(this.getLineCount(),i.completelyVisibleEndLineNumber+n);return this._toModelVisibleRanges(new g.Q(s,this.getLineMinColumn(s),o,this.getLineMaxColumn(o)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),n=this._lines.getHiddenAreas();if(0===n.length)return[t];const i=[];let s=0,o=t.startLineNumber,r=t.startColumn;const a=t.endLineNumber,l=t.endColumn;for(let h=0,c=n.length;h<c;h++){const e=n[h].startLineNumber,t=n[h].endLineNumber;t<o||(e>a||(o<e&&(i[s++]=new g.Q(o,r,e-1,this.model.getLineMaxColumn(e-1))),o=t+1,r=1))}return(o<a||o===a&&r<l)&&(i[s++]=new g.Q(o,r,a,l)),i}getCompletelyVisibleViewRange(){const e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,n=e.completelyVisibleEndLineNumber;return new g.Q(t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n))}getCompletelyVisibleViewRangeAtScrollTop(e){const t=this.viewLayout.getLinesViewportDataAtScrollTop(e),n=t.completelyVisibleStartLineNumber,i=t.completelyVisibleEndLineNumber;return new g.Q(n,this.getLineMinColumn(n),i,this.getLineMaxColumn(i))}saveState(){const e=this.viewLayout.saveState(),t=e.scrollTop,n=this.viewLayout.getLineNumberAtVerticalOffset(t),i=this.coordinatesConverter.convertViewPositionToModelPosition(new d.y(n,this.getLineMinColumn(n))),s=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:i,firstPositionDeltaTop:s}}reduceRestoreState(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),n=this.coordinatesConverter.convertModelPositionToViewPosition(t),i=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:i}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,n){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,n){return this._lines.getActiveIndentGuide(e,t,n)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,n,i){return this._lines.getViewLinesBracketGuides(e,t,n,i)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=l.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=l.lT(this.getLineContent(e));return-1===t?0:t+2}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewLineRenderingData(e,t){const n=this.model.mightContainRTL(),i=this.model.mightContainNonBasicASCII(),s=this.getTabSize(),o=this._lines.getViewLineData(t);let r=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return o.inlineDecorations&&(r=[...r,...o.inlineDecorations.map((e=>e.toInlineDecoration(t)))]),new I.qL(o.minColumn,o.maxColumn,o.content,o.continuesWithWrappedLine,n,i,o.tokens,r,s,o.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,n){const i=this._lines.getViewLinesData(e,t,n);return new I.nt(this.getTabSize(),i)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,(0,h.$C)(this._configuration.options)),n=new Z;for(const i of t){const t=i.options,s=t.overviewRuler;if(!s)continue;const o=s.position;if(0===o)continue;const r=s.getColor(e.value),a=this.coordinatesConverter.getViewLineNumberOfModelPosition(i.range.startLineNumber,i.range.startColumn),l=this.coordinatesConverter.getViewLineNumberOfModelPosition(i.range.endLineNumber,i.range.endColumn);n.accept(r,t.zIndex,a,l,o)}return n.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;e&&e.invalidateCachedColor();const n=t.options.minimap;n&&n.invalidateCachedColor()}}getValueInRange(e,t){const n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)}deduceModelPositionRelativeToViewPosition(e,t,n){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=n:t+=n);const s=this.model.getOffsetAt(i)+t;return this.model.getPositionAt(s)}getPlainTextToCopy(e,t,n){const i=n?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(g.Q.compareRangesUsingStarts);let s=!1,o=!1;for(const a of e)a.isEmpty()?s=!0:o=!0;if(!o){if(!t)return"";const n=e.map((e=>e.startLineNumber));let s="";for(let e=0;e<n.length;e++)e>0&&n[e-1]===n[e]||(s+=this.model.getLineContent(n[e])+i);return s}if(s&&t){const t=[];let i=0;for(const s of e){const e=s.startLineNumber;s.isEmpty()?e!==i&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(s,n?2:0)),i=e}return 1===t.length?t[0]:t}const r=[];for(const a of e)a.isEmpty()||r.push(this.model.getValueInRange(a,n?2:0));return 1===r.length?r[0]:r}getRichTextToCopy(e,t){const n=this.model.getLanguageId();if(n===p.vH)return null;if(1!==e.length)return null;let i=e[0];if(i.isEmpty()){if(!t)return null;const e=i.startLineNumber;i=new g.Q(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const s=this._configuration.options.get(45),o=this._getColorMap();let r;if(/[:;\\\/<>]/.test(s.fontFamily)||s.fontFamily===h.jU.fontFamily)r=h.jU.fontFamily;else{r=s.fontFamily,r=r.replace(/"/g,"'");if(!/[,']/.test(r)){/[+ ]/.test(r)&&(r=`'${r}'`)}r=`${r}, ${h.jU.fontFamily}`}return{mode:n,html:`<div style="color: ${o[1]};background-color: ${o[2]};font-family: ${r};font-weight: ${s.fontWeight};font-size: ${s.fontSize}px;line-height: ${s.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(i,o)+"</div>"}}_getHTMLToCopy(e,t){const n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn,r=this.getTabSize();let l="";for(let h=n;h<=s;h++){const e=this.model.tokenization.getLineTokens(h),c=e.getLineContent(),u=h===n?i-1:0,d=h===s?o-1:c.length;l+=""===c?"<br>":(0,_.s0)(c,e.inflate(),t,u,d,r,a.uF)}return l}_getColorMap(){const e=f.dG.getColorMap(),t=["#000000"];if(e)for(let n=1,i=e.length;n<i;n++)t[n]=o.Q1.Format.CSS.formatHex(e[n]);return t}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(e,t,n){return this._withViewEventsCollector((i=>this._cursor.setStates(i,e,t,n)))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,n=0){this._withViewEventsCollector((i=>this._cursor.setSelections(i,e,t,n)))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector((t=>this._cursor.restoreState(t,e)))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new k.cT):this._withViewEventsCollector(e)}executeEdits(e,t,n){this._executeCursorEdit((i=>this._cursor.executeEdits(i,e,t,n)))}startComposition(){this._executeCursorEdit((e=>this._cursor.startComposition(e)))}endComposition(e){this._executeCursorEdit((t=>this._cursor.endComposition(t,e)))}type(e,t){this._executeCursorEdit((n=>this._cursor.type(n,e,t)))}compositionType(e,t,n,i,s){this._executeCursorEdit((o=>this._cursor.compositionType(o,e,t,n,i,s)))}paste(e,t,n,i){this._executeCursorEdit((s=>this._cursor.paste(s,e,t,n,i)))}cut(e){this._executeCursorEdit((t=>this._cursor.cut(t,e)))}executeCommand(e,t){this._executeCursorEdit((n=>this._cursor.executeCommand(n,e,t)))}executeCommands(e,t){this._executeCursorEdit((n=>this._cursor.executeCommands(n,e,t)))}revealPrimaryCursor(e,t,n=!1){this._withViewEventsCollector((i=>this._cursor.revealPrimary(i,e,n,0,t,0)))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),n=new g.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new L.Hf(e,!1,n,null,0,!0,0))))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),n=new g.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new L.Hf(e,!1,n,null,0,!0,0))))}revealRange(e,t,n,i,s){this._withViewEventsCollector((o=>o.emitViewEvent(new L.Hf(e,!1,n,null,i,t,s))))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new L.fu),this._eventDispatcher.emitOutgoingEvent(new k.fu))}_withViewEventsCollector(e){try{return e(this._eventDispatcher.beginEmitViewEvents())}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class ${constructor(e,t,n,i,s){this._model=e,this._viewLineNumber=t,this._isValid=n,this._modelTrackedRange=i,this._startLineDelta=s}static create(e){const t=e._setTrackedRange(null,new g.Q(1,1,1,1),1);return new $(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const n=e.coordinatesConverter.convertViewPositionToModelPosition(new d.y(t,e.getLineMinColumn(t))),i=e.model._setTrackedRange(this._modelTrackedRange,new g.Q(n.lineNumber,n.column,n.lineNumber,n.column),1),s=e.viewLayout.getVerticalOffsetForLineNumber(t),o=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=i,this._startLineDelta=o-s}invalidate(){this._isValid=!1}}class Z{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,n,i,s){const o=this._asMap[e];if(o){const e=o.data,t=e[e.length-3],r=e[e.length-1];if(t===s&&r+1>=n)return void(i>r&&(e[e.length-1]=i));e.push(s,n,i)}else{const o=new I.Uv(e,t,[s,n,i]);this._asMap[e]=o,this.asArray.push(o)}}}},2658:(e,t,n)=>{n.d(t,{FU:()=>g,H:()=>a,Md:()=>L,Qo:()=>f,S8:()=>u,TA:()=>l,VN:()=>p,cT:()=>d,eM:()=>_,fu:()=>c,qI:()=>m,ql:()=>o,s1:()=>h});var i=n(16201),s=n(33793);class o extends s.jG{constructor(){super(),this._onEvent=this._register(new i.vl),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,n=this._outgoingEvents.length;t<n;t++){const n=this._outgoingEvents[t].kind===e.kind?this._outgoingEvents[t].attemptToMerge(e):null;if(n)return void(this._outgoingEvents[t]=n)}this._outgoingEvents.push(e)}_emitOutgoingEvents(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,n=this._eventHandlers.length;t<n;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)}removeViewEventHandler(e){for(let t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}beginEmitViewEvents(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new r),this._collector}endEmitViewEvents(){if(this._collectorCnt--,0===this._collectorCnt){const e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;for(const n of e)this._addOutgoingEvent(n);t.length>0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const n of t)n.handleEvents(e)}}}class r{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class a{constructor(e,t,n,i){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=n,this.contentHeight=i,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new a(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class l{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new l(this.oldHasFocus,e.hasFocus)}}class h{constructor(e,t,n,i,s,o,r,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=n,this._oldScrollTop=i,this.scrollWidth=s,this.scrollLeft=o,this.scrollHeight=r,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(e){return e.kind!==this.kind?null:new h(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class c{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class u{constructor(e,t,n,i,s,o,r){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=n,this.modelVersionId=i,this.source=s,this.reason=o,this.reachedMaxCursorCount=r}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(!e[i].equalsSelection(t[i]))return!1;return!0}isNoOp(){return u._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}attemptToMerge(e){return e.kind!==this.kind?null:new u(this.oldSelections,e.selections,this.oldModelVersionId,e.modelVersionId,e.source,e.reason,this.reachedMaxCursorCount||e.reachedMaxCursorCount)}}class d{constructor(){this.kind=5}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class g{constructor(e){this.event=e,this.kind=7}isNoOp(){return!1}attemptToMerge(e){return null}}class m{constructor(e){this.event=e,this.kind=8}isNoOp(){return!1}attemptToMerge(e){return null}}class f{constructor(e){this.event=e,this.kind=9}isNoOp(){return!1}attemptToMerge(e){return null}}class p{constructor(e){this.event=e,this.kind=10}isNoOp(){return!1}attemptToMerge(e){return null}}class _{constructor(e){this.event=e,this.kind=11}isNoOp(){return!1}attemptToMerge(e){return null}}class L{constructor(e){this.event=e,this.kind=12}isNoOp(){return!1}attemptToMerge(e){return null}}}}]);