@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,86 @@
1
+ /*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */
2
+
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+
13
+ /**
14
+ * @license React
15
+ * use-sync-external-store-shim.production.min.js
16
+ *
17
+ * Copyright (c) Facebook, Inc. and its affiliates.
18
+ *
19
+ * This source code is licensed under the MIT license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ */
22
+
23
+ /**
24
+ * @license React
25
+ * use-sync-external-store-shim/with-selector.production.min.js
26
+ *
27
+ * Copyright (c) Facebook, Inc. and its affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ */
32
+
33
+ /**
34
+ * @remix-run/router v1.0.1
35
+ *
36
+ * Copyright (c) Remix Software Inc.
37
+ *
38
+ * This source code is licensed under the MIT license found in the
39
+ * LICENSE.md file in the root directory of this source tree.
40
+ *
41
+ * @license MIT
42
+ */
43
+
44
+ /**
45
+ * React Router DOM v6.4.1
46
+ *
47
+ * Copyright (c) Remix Software Inc.
48
+ *
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE.md file in the root directory of this source tree.
51
+ *
52
+ * @license MIT
53
+ */
54
+
55
+ /**
56
+ * React Router v6.4.1
57
+ *
58
+ * Copyright (c) Remix Software Inc.
59
+ *
60
+ * This source code is licensed under the MIT license found in the
61
+ * LICENSE.md file in the root directory of this source tree.
62
+ *
63
+ * @license MIT
64
+ */
65
+
66
+ /**
67
+ * react-virtual
68
+ *
69
+ * Copyright (c) TanStack
70
+ *
71
+ * This source code is licensed under the MIT license found in the
72
+ * LICENSE.md file in the root directory of this source tree.
73
+ *
74
+ * @license MIT
75
+ */
76
+
77
+ /**
78
+ * virtual-core
79
+ *
80
+ * Copyright (c) TanStack
81
+ *
82
+ * This source code is licensed under the MIT license found in the
83
+ * LICENSE.md file in the root directory of this source tree.
84
+ *
85
+ * @license MIT
86
+ */
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[8912],{53607:(e,t,s)=>{s.r(t),s.d(t,{SnippetController2:()=>b,performSnippetEdit:()=>x});var i=s(33793),n=s(86448),r=s(95713),o=s(63102),h=s(4707),a=s(35725),c=s(7117),p=s(51209),l=s(31141),d=s(84978),_=s(75664),u=s(92798),f=s(12643),g=function(e,t,s,i){var n,r=arguments.length,o=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,s,i);else for(var h=e.length-1;h>=0;h--)(n=e[h])&&(o=(r<3?n(o):r>3?n(t,s,o):n(t,s))||o);return r>3&&o&&Object.defineProperty(t,s,o),o},v=function(e,t){return function(s,i){t(s,i,e)}};const m={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let b=class e{constructor(t,s,n,r,o){this._editor=t,this._logService=s,this._languageFeaturesService=n,this._languageConfigurationService=o,this._snippetListener=new i.Cm,this._modelVersionId=-1,this._inSnippet=e.InSnippetMode.bindTo(r),this._hasNextTabstop=e.HasNextTabstop.bindTo(r),this._hasPrevTabstop=e.HasPrevTabstop.bindTo(r)}static get(t){return t.getContribution(e.ID)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),null===(e=this._session)||void 0===e||e.dispose(),this._snippetListener.dispose()}apply(e,t){try{this._doInsert(e,"undefined"===typeof t?m:Object.assign(Object.assign({},m),t))}catch(s){this.cancel(),this._logService.error(s),this._logService.error("snippet_error"),this._logService.error("insert_edits=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}insert(e,t){try{this._doInsert(e,"undefined"===typeof t?m:Object.assign(Object.assign({},m),t))}catch(s){this.cancel(),this._logService.error(s),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){var s;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!==typeof e&&this.cancel(),this._session?((0,n.j)("string"===typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new f.O(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),null===(s=this._session)||void 0===s?void 0:s.hasChoice){this._choiceCompletionItemProvider={provideCompletionItems:(e,t)=>{if(!this._session||e!==this._editor.getModel()||!o.y.equals(this._editor.getPosition(),t))return;const{activeChoice:s}=this._session;if(!s||0===s.choice.options.length)return;const i=e.getValueInRange(s.range),n=Boolean(s.choice.options.find((e=>e.value===i))),r=[];for(let o=0;o<s.choice.options.length;o++){const e=s.choice.options[o];r.push({kind:13,label:e.value,insertText:e.value,sortText:"a".repeat(o+1),range:s.range,filterText:n?`${i}_${e.value}`:void 0,command:{id:"jumpToNextSnippetPlaceholder",title:(0,d.kg)("next","Go to next placeholder...")}})}return{suggestions:r}}};const e=this._languageFeaturesService.completionProvider.register({language:this._editor.getModel().getLanguageId(),pattern:this._editor.getModel().uri.fsPath,scheme:this._editor.getModel().uri.scheme},this._choiceCompletionItemProvider);this._snippetListener.add(e)}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((e=>e.isFlush&&this.cancel()))),this._snippetListener.add(this._editor.onDidChangeModel((()=>this.cancel()))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((()=>this._updateState())))}}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{activeChoice:e}=this._session;e&&this._choiceCompletionItemProvider?this._currentChoice!==e.choice&&(this._currentChoice=e.choice,queueMicrotask((()=>{(0,l.p3)(this._editor,this._choiceCompletionItemProvider)}))):this._currentChoice=void 0}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,null===(t=this._session)||void 0===t||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session&&this._session.prev(),this._updateState()}next(){this._session&&this._session.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};b.ID="snippetController2",b.InSnippetMode=new _.N1("inSnippetMode",!1,(0,d.kg)("inSnippetMode","Whether the editor in current in snippet mode")),b.HasNextTabstop=new _.N1("hasNextTabstop",!1,(0,d.kg)("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),b.HasPrevTabstop=new _.N1("hasPrevTabstop",!1,(0,d.kg)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),b=g([v(1,u.rr),v(2,p.u),v(3,_.fN),v(4,c.JZ)],b),(0,r.HW)(b.ID,b);const C=r.DX.bindToContribution(b.get);function x(e,t,s){const i=b.get(e);return!!i&&(e.focus(),i.apply(s.map((e=>({range:h.L.liftSelection(e),template:t})))),i.isInSnippet())}(0,r.E_)(new C({id:"jumpToNextSnippetPlaceholder",precondition:_.M$.and(b.InSnippetMode,b.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:a.R.editorTextFocus,primary:2}})),(0,r.E_)(new C({id:"jumpToPrevSnippetPlaceholder",precondition:_.M$.and(b.InSnippetMode,b.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:a.R.editorTextFocus,primary:1026}})),(0,r.E_)(new C({id:"leaveSnippet",precondition:b.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:a.R.editorTextFocus,primary:9,secondary:[1033]}})),(0,r.E_)(new C({id:"acceptSnippet",precondition:b.InSnippetMode,handler:e=>e.finish()}))},7422:(e,t,s)=>{s.d(t,{EY:()=>r,GR:()=>a,Or:()=>h,fr:()=>u,mQ:()=>_});class i{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t,s=0,n=this.value.charCodeAt(e);if(t=i._table[n],"number"===typeof t)return this.pos+=1,{type:t,pos:e,len:1};if(i.isDigitCharacter(n)){t=8;do{s+=1,n=this.value.charCodeAt(e+s)}while(i.isDigitCharacter(n));return this.pos+=s,{type:t,pos:e,len:s}}if(i.isVariableCharacter(n)){t=9;do{n=this.value.charCodeAt(e+ ++s)}while(i.isVariableCharacter(n)||i.isDigitCharacter(n));return this.pos+=s,{type:t,pos:e,len:s}}t=10;do{s+=1,n=this.value.charCodeAt(e+s)}while(!isNaN(n)&&"undefined"===typeof i._table[n]&&!i.isDigitCharacter(n)&&!i.isVariableCharacter(n));return this.pos+=s,{type:t,pos:e,len:s}}}i._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class n{constructor(){this._children=[]}appendChild(e){return e instanceof r&&this._children[this._children.length-1]instanceof r?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:s}=e,i=s.children.indexOf(e),n=s.children.slice(0);n.splice(i,1,...t),s._children=n,function e(t,s){for(const i of t)i.parent=s,e(i.children,i)}(t,s)}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof _)return e;e=e.parent}}toString(){return this.children.reduce(((e,t)=>e+t.toString()),"")}len(){return 0}}class r extends n{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new r(this.value)}}class o extends n{}class h extends o{constructor(e){super(),this.index=e}static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof a?this._children[0]:void 0}clone(){const e=new h(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}class a extends n{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof r&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new a;return this.options.forEach(e.appendChild,e),e}}class c extends n{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let s=!1,i=e.replace(this.regexp,(function(){return s=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!s&&this._children.some((e=>e instanceof p&&Boolean(e.elseValue)))&&(i=this._replace([])),i}_replace(e){let t="";for(const s of this._children)if(s instanceof p){let i=e[s.index]||"";i=s.resolve(i),t+=i}else t+=s.toString();return t}toString(){return""}clone(){const e=new c;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((e=>e.clone())),e}}class p extends n{constructor(e,t,s,i){super(),this.index=e,this.shorthandName=t,this.ifValue=s,this.elseValue=i}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((e=>e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}clone(){return new p(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class l extends o{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new r(t)],!0)}clone(){const e=new l(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}function d(e,t){const s=[...e];for(;s.length>0;){const e=s.shift();if(!t(e))break;s.unshift(...e.children)}}class _ extends n{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk((function(s){return s instanceof h&&(e.push(s),t=!t||t.index<s.index?s:t),!0})),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,s=!1;return this.walk((i=>i===e?(s=!0,!1):(t+=i.len(),!0))),s?t:-1}fullLen(e){let t=0;return d([e],(e=>(t+=e.len(),!0))),t}enclosingPlaceholders(e){const t=[];let{parent:s}=e;for(;s;)s instanceof h&&t.push(s),s=s.parent;return t}resolveVariables(e){return this.walk((t=>(t instanceof l&&t.resolve(e)&&(this._placeholders=void 0),!0))),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new _;return this._children=this.children.map((e=>e.clone())),e}walk(e){d(this.children,e)}}class u{constructor(){this._scanner=new i,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,s){const i=new _;return this.parseFragment(e,i),this.ensureFinalTabstop(i,null!==s&&void 0!==s&&s,null!==t&&void 0!==t&&t),i}parseFragment(e,t){const s=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const i=new Map,n=[];t.walk((e=>(e instanceof h&&(e.isFinalTabstop?i.set(0,void 0):!i.has(e.index)&&e.children.length>0?i.set(e.index,e.children):n.push(e)),!0)));for(const r of n){const e=i.get(r.index);if(e){const s=new h(r.index);s.transform=r.transform;for(const t of e)s.appendChild(t.clone());t.replace(r,[s])}}return t.children.slice(s)}ensureFinalTabstop(e,t,s){if(t||s&&e.placeholders.length>0){e.placeholders.find((e=>0===e.index))||e.appendChild(new h(0))}}_accept(e,t){if(void 0===e||this._token.type===e){const e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const s=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),s}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new r(t)),!0)}_parseTabstopOrVariableName(e){let t;const s=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new h(Number(t)):new l(t)),!0):this._backTo(s)}_parseComplexPlaceholder(e){let t;const s=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(s);const i=new h(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new r("${"+t+":")),i.children.forEach(e.appendChild,e),!0}else{if(!(i.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(i)?(e.appendChild(i),!0):(this._backTo(s),!1):this._accept(4)?(e.appendChild(i),!0):this._backTo(s);{const t=new a;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(i.appendChild(t),this._accept(4)))return e.appendChild(i),!0}return this._backTo(s),!1}}}}_parseChoiceElement(e){const t=this._token,s=[];for(;2!==this._token.type&&7!==this._token.type;){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;s.push(e)}return 0===s.length?(this._backTo(t),!1):(e.appendChild(new r(s.join(""))),!0)}_parseComplexVariable(e){let t;const s=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(s);const i=new l(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(i)?(e.appendChild(i),!0):(this._backTo(s),!1):this._accept(4)?(e.appendChild(i),!0):this._backTo(s);for(;;){if(this._accept(4))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new r("${"+t+":")),i.children.forEach(e.appendChild,e),!0}}_parseTransform(e){const t=new c;let s="",i="";for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(6,!0)||e,s+=e;else{if(14===this._token.type)return!1;s+=this._accept(void 0,!0)}}for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new r(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}try{t.regexp=new RegExp(s,i)}catch(n){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let s=!1;this._accept(3)&&(s=!0);const i=this._accept(8,!0);if(!i)return this._backTo(t),!1;if(!s)return e.appendChild(new p(Number(i))),!0;if(this._accept(4))return e.appendChild(new p(Number(i))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return s&&this._accept(4)?(e.appendChild(new p(Number(i),s)),!0):(this._backTo(t),!1)}if(this._accept(11)){const t=this._until(4);if(t)return e.appendChild(new p(Number(i),void 0,t,void 0)),!0}else if(this._accept(12)){const t=this._until(4);if(t)return e.appendChild(new p(Number(i),void 0,void 0,t)),!0}else if(this._accept(13)){const t=this._until(1);if(t){const s=this._until(4);if(s)return e.appendChild(new p(Number(i),void 0,t,s)),!0}}else{const t=this._until(4);if(t)return e.appendChild(new p(Number(i),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new r(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}}}]);
@@ -0,0 +1 @@
1
+ (globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[898],{10022:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>c,Emitter:()=>g,KeyCode:()=>u,KeyMod:()=>p,MarkerSeverity:()=>v,MarkerTag:()=>w,Position:()=>m,Range:()=>_,Selection:()=>f,SelectionDirection:()=>b,Token:()=>C,Uri:()=>S,editor:()=>y,languages:()=>k});var o,s=i(99281),n=i(99774),r=i(369),a=i(38067),l=i(76394),d=i(39627);s.qB.wrappingIndent.defaultValue=0,s.qB.glyphMargin.defaultValue=!1,s.qB.autoIndent.defaultValue=3,s.qB.overviewRulerLanes.defaultValue=2,d.Pj.setFormatterSelector(((e,t,i)=>Promise.resolve(e[0])));const h=(0,n.r)();h.editor=(0,r.ZK)(),h.languages=(0,a.Np)();const c=h.CancellationTokenSource,g=h.Emitter,u=h.KeyCode,p=h.KeyMod,m=h.Position,_=h.Range,f=h.Selection,b=h.SelectionDirection,v=h.MarkerSeverity,w=h.MarkerTag,S=h.Uri,C=h.Token,y=h.editor,k=h.languages;((null===(o=l.zQ.MonacoEnvironment)||void 0===o?void 0:o.globalAPI)||"function"===typeof define&&i.amdO)&&(self.monaco=h),"undefined"!==typeof self.require&&"function"===typeof self.require.config&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},61917:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>o.CancellationTokenSource,Emitter:()=>o.Emitter,KeyCode:()=>o.KeyCode,KeyMod:()=>o.KeyMod,MarkerSeverity:()=>o.MarkerSeverity,MarkerTag:()=>o.MarkerTag,Position:()=>o.Position,Range:()=>o.Range,Selection:()=>o.Selection,SelectionDirection:()=>o.SelectionDirection,Token:()=>o.Token,Uri:()=>o.Uri,__esModule:()=>o.__esModule,editor:()=>o.editor,languages:()=>o.languages});i(12132),i(25401),i(58185),i(91426),i(71075),i(63415),i(5517),i(79925),i(15725),i(65648),i(24408),i(17122),i(51847),i(8269),i(23092),i(76403),i(24162),i(52307),i(74979),i(7353),i(78737),i(62129),i(64539),i(89331),i(92617),i(6393),i(88092),i(46217),i(13481),i(44238),i(58811),i(2525),i(71823),i(92793),i(56033),i(7499),i(59473),i(63841),i(13529),i(47167),i(22937),i(80030),i(53744),i(42579),i(53607),i(14555),i(53985),i(83675),i(73005),i(84027),i(12799),i(12721),i(38429),i(93153),i(56231),i(43058),i(44703),i(68251),i(74028),i(23777),i(94951),i(21109),i(39455),i(10156),i(28902),i(901);var o=i(6295)},12643:(e,t,i)=>{"use strict";i.d(t,{O:()=>E});var o=i(8415),s=i(33793),n=i(22231),r=i(91536),a=i(93708),l=i(4707),d=i(7117),h=i(21174),c=i(8530),g=i(36764),u=i(7422),p=i(60162),m=i(17807),_=i(68040),f=i(278),b=i(84978),v=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,o){t(i,o,e)}};Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class S{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(void 0!==i)return i}}}class C{constructor(e,t,i,o){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=o}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,i=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,i=e.multiline)}if(t&&i&&e.snippet){const i=this._model.getLineContent(this._selection.startLineNumber),o=(0,n.UU)(i,0,this._selection.startColumn-1);let s=o;e.snippet.walk((t=>t!==e&&(t instanceof u.EY&&(s=(0,n.UU)((0,n.uz)(t.value).pop())),!0)));const r=(0,n.Qp)(s,o);t=t.replace(/(\r\n|\r|\n)(.*)/g,((e,t,i)=>`${t}${s.substr(r)}${i}`))}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):"CURSOR_INDEX"===t?String(this._selectionIdx):"CURSOR_NUMBER"===t?String(this._selectionIdx+1):void 0}}class y{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return m.P8(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=m.P8(this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t?"."===m.pD(this._model.uri.fsPath)?"":this._labelService.getUriLabel((0,_.pD)(this._model.uri)):"TM_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class k{constructor(e,t,i,o){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=o}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter((e=>!(0,n.AV)(e)));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}let x=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),o=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(o)return"LINE_COMMENT"===t?o.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?o.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&o.blockCommentEndToken||void 0}};x=v([w(2,d.JZ)],x);class D{constructor(){this._date=new Date}resolve(e){const{name:t}=e;return"CURRENT_YEAR"===t?String(this._date.getFullYear()):"CURRENT_YEAR_SHORT"===t?String(this._date.getFullYear()).slice(-2):"CURRENT_MONTH"===t?String(this._date.getMonth().valueOf()+1).padStart(2,"0"):"CURRENT_DATE"===t?String(this._date.getDate().valueOf()).padStart(2,"0"):"CURRENT_HOUR"===t?String(this._date.getHours().valueOf()).padStart(2,"0"):"CURRENT_MINUTE"===t?String(this._date.getMinutes().valueOf()).padStart(2,"0"):"CURRENT_SECOND"===t?String(this._date.getSeconds().valueOf()).padStart(2,"0"):"CURRENT_DAY_NAME"===t?D.dayNames[this._date.getDay()]:"CURRENT_DAY_NAME_SHORT"===t?D.dayNamesShort[this._date.getDay()]:"CURRENT_MONTH_NAME"===t?D.monthNames[this._date.getMonth()]:"CURRENT_MONTH_NAME_SHORT"===t?D.monthNamesShort[this._date.getMonth()]:"CURRENT_SECONDS_UNIX"===t?String(Math.floor(this._date.getTime()/1e3)):void 0}}D.dayNames=[b.kg("Sunday","Sunday"),b.kg("Monday","Monday"),b.kg("Tuesday","Tuesday"),b.kg("Wednesday","Wednesday"),b.kg("Thursday","Thursday"),b.kg("Friday","Friday"),b.kg("Saturday","Saturday")],D.dayNamesShort=[b.kg("SundayShort","Sun"),b.kg("MondayShort","Mon"),b.kg("TuesdayShort","Tue"),b.kg("WednesdayShort","Wed"),b.kg("ThursdayShort","Thu"),b.kg("FridayShort","Fri"),b.kg("SaturdayShort","Sat")],D.monthNames=[b.kg("January","January"),b.kg("February","February"),b.kg("March","March"),b.kg("April","April"),b.kg("May","May"),b.kg("June","June"),b.kg("July","July"),b.kg("August","August"),b.kg("September","September"),b.kg("October","October"),b.kg("November","November"),b.kg("December","December")],D.monthNamesShort=[b.kg("JanuaryShort","Jan"),b.kg("FebruaryShort","Feb"),b.kg("MarchShort","Mar"),b.kg("AprilShort","Apr"),b.kg("MayShort","May"),b.kg("JuneShort","Jun"),b.kg("JulyShort","Jul"),b.kg("AugustShort","Aug"),b.kg("SeptemberShort","Sep"),b.kg("OctoberShort","Oct"),b.kg("NovemberShort","Nov"),b.kg("DecemberShort","Dec")];class T{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=(0,g.Q_)(this._workspaceService.getWorkspace());return t?"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0:void 0}_resolveWorkspaceName(e){if((0,g.jB)(e))return m.P8(e.uri.path);let t=m.P8(e.configPath.path);return t.endsWith(g.kF)&&(t=t.substr(0,t.length-g.kF.length-1)),t}_resoveWorkspacePath(e){if((0,g.jB)(e))return(0,p.o)(e.uri.fsPath);const t=m.P8(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?(0,p.o)(i):"/"}}class I{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?(0,f.b)():void 0}}var R=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},L=function(e,t){return function(i,o){t(i,o,e)}};class M{constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=(0,o.$z)(t.placeholders,u.Or.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(-1===this._offset)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations((t=>{for(const i of this._snippet.placeholders){const o=this._snippet.offset(i),s=this._snippet.fullLen(i),n=a.Q.fromPositions(e.getPositionAt(this._offset+o),e.getPositionAt(this._offset+o+s)),r=i.isFinalTabstop?M._decor.inactiveFinal:M._decor.inactive,l=t.addDecoration(n,r);this._placeholderDecorations.set(i,l)}}))}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const i=this._placeholderDecorations.get(t),o=this._editor.getModel().getDecorationRange(i),s=this._editor.getModel().getValueInRange(o),n=t.transform.resolve(s).split(/\r\n|\r|\n/);for(let e=1;e<n.length;e++)n[e]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+n[e]);e.push(r.k.replace(o,n.join(this._editor.getModel().getEOL())))}e.length>0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,t=!0):!1===e&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations((e=>{const i=new Set,o=[];for(const s of this._placeholderGroups[this._placeholderGroupsIdx]){const n=this._placeholderDecorations.get(s),r=this._editor.getModel().getDecorationRange(n);o.push(new l.L(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(s),e.changeDecorationOptions(n,s.isFinalTabstop?M._decor.activeFinal:M._decor.active),i.add(s);for(const t of this._snippet.enclosingPlaceholders(s)){const o=this._placeholderDecorations.get(t);e.changeDecorationOptions(o,t.isFinalTabstop?M._decor.activeFinal:M._decor.active),i.add(t)}}for(const[t,s]of this._placeholderDecorations)i.has(t)||e.changeDecorationOptions(s,t.isFinalTabstop?M._decor.inactiveFinal:M._decor.inactive);return o}));return t?this.move(e):null!==i&&void 0!==i?i:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof u.Or){const e=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(e).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){return 0===this._snippet.placeholders.length||1===this._snippet.placeholders.length&&this._snippet.placeholders[0].isFinalTabstop}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const o of t){if(o.isFinalTabstop)break;i||(i=[],e.set(o.index,i));const t=this._placeholderDecorations.get(o),s=this._editor.getModel().getDecorationRange(t);if(!s){e.delete(o.index);break}i.push(s)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!(null===e||void 0===e?void 0:e.choice))return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);return i?{range:i,choice:e.choice}:void 0}get hasChoice(){let e=!1;return this._snippet.walk((t=>(e=t instanceof u.GR,!e))),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((i=>{for(const o of this._placeholderGroups[this._placeholderGroupsIdx]){const s=e.shift();console.assert(-1!==s._offset),console.assert(!s._placeholderDecorations);const n=s._snippet.placeholderInfo.last.index;for(const e of s._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=o.index+(n+1)/this._nestingLevel:e.index=o.index+e.index/this._nestingLevel;this._snippet.replace(o,s._snippet.children);const r=this._placeholderDecorations.get(o);i.removeDecoration(r),this._placeholderDecorations.delete(o);for(const e of s._snippet.placeholders){const o=s._snippet.offset(e),n=s._snippet.fullLen(e),r=a.Q.fromPositions(t.getPositionAt(s._offset+o),t.getPositionAt(s._offset+o+n)),l=i.addDecoration(r,M._decor.inactive);this._placeholderDecorations.set(e,l)}}this._placeholderGroups=(0,o.$z)(this._snippet.placeholders,u.Or.compareByIndex)}))}}M._decor={active:h.kI.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:h.kI.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:h.kI.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:h.kI.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const N={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let E=class e{constructor(e,t,i=N,o){this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=o,this._templateMerges=[],this._snippets=[]}static adjustWhitespace(e,t,i,o,s){const r=e.getLineContent(t.lineNumber),a=(0,n.UU)(r,0,t.column-1);let l;return i.walk((t=>{if(!(t instanceof u.EY)||t.parent instanceof u.GR)return!0;const s=t.value.split(/\r\n|\r|\n/);if(o){const o=i.offset(t);if(0===o)s[0]=e.normalizeIndentation(s[0]);else{l=null!==l&&void 0!==l?l:i.toString();const t=l.charCodeAt(o-1);10!==t&&13!==t||(s[0]=e.normalizeIndentation(a+s[0]))}for(let t=1;t<s.length;t++)s[t]=e.normalizeIndentation(a+s[t])}const n=s.join(e.getEOL());return n!==t.value&&(t.parent.replace(t,[new u.EY(n)]),l=void 0),!0})),a}static adjustSelection(e,t,i,o){if(0!==i||0!==o){const{positionLineNumber:s,positionColumn:n}=t,r=n-i,a=n+o,d=e.validateRange({startLineNumber:s,startColumn:r,endLineNumber:s,endColumn:a});t=l.L.createWithDirection(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn,t.getDirection())}return t}static createEditsAndSnippetsFromSelections(t,i,o,s,n,l,d,h,p){const m=[],_=[];if(!t.hasModel())return{edits:m,snippets:_};const f=t.getModel(),b=t.invokeWithinContext((e=>e.get(g.VR))),v=t.invokeWithinContext((e=>new y(e.get(c.L),f))),w=()=>d,R=f.getValueInRange(e.adjustSelection(f,t.getSelection(),o,0)),L=f.getValueInRange(e.adjustSelection(f,t.getSelection(),0,s)),N=f.getLineFirstNonWhitespaceColumn(t.getSelection().positionLineNumber),E=t.getSelections().map(((e,t)=>({selection:e,idx:t}))).sort(((e,t)=>a.Q.compareRangesUsingStarts(e.selection,t.selection)));for(const{selection:a,idx:c}of E){let d=e.adjustSelection(f,a,o,0),g=e.adjustSelection(f,a,0,s);R!==f.getValueInRange(d)&&(d=a),L!==f.getValueInRange(g)&&(g=a);const y=a.setStartPosition(d.startLineNumber,d.startColumn).setEndPosition(g.endLineNumber,g.endColumn),A=(new u.fr).parse(i,!0,n),W=y.getStartPosition(),P=e.adjustWhitespace(f,W,A,l||c>0&&N!==f.getLineFirstNonWhitespaceColumn(a.positionLineNumber),!0);A.resolveVariables(new S([v,new k(w,c,E.length,"spread"===t.getOption(72)),new C(f,a,c,h),new x(f,a,p),new D,new T(b),new I])),m[c]=r.k.replace(y,A.toString()),m[c].identifier={major:c,minor:0},m[c]._isTracked=!0,_[c]=new M(t,A,P)}return{edits:m,snippets:_}}static createEditsAndSnippetsFromEdits(e,t,i,o,s,n,l){if(!e.hasModel()||0===t.length)return{edits:[],snippets:[]};const d=[],h=e.getModel(),p=new u.fr,m=new u.mQ,_=new S([e.invokeWithinContext((e=>new y(e.get(c.L),h))),new k((()=>s),0,e.getSelections().length,"spread"===e.getOption(72)),new C(h,e.getSelection(),0,n),new x(h,e.getSelection(),l),new D,new T(e.invokeWithinContext((e=>e.get(g.VR)))),new I]);t=t.sort(((e,t)=>a.Q.compareRangesUsingStarts(e.range,t.range)));let f=0;for(let c=0;c<t.length;c++){const{range:e,template:i}=t[c];if(c>0){const i=t[c-1].range,o=a.Q.fromPositions(i.getEndPosition(),e.getStartPosition()),s=new u.EY(h.getValueInRange(o));m.appendChild(s),f+=s.value.length}p.parseFragment(i,m),m.resolveVariables(_);const o=m.toString(),s=o.slice(f);f=o.length;const n=r.k.replace(e,s);n.identifier={major:c,minor:0},n._isTracked=!0,d.push(n)}return p.ensureFinalTabstop(m,i,!0),{edits:d,snippets:[new M(e,m,"")]}}dispose(){(0,s.AS)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:t,snippets:i}="string"===typeof this._template?e.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):e.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=i,this._editor.executeEdits("snippet",t,(e=>{const t=e.filter((e=>!!e.identifier));for(let o=0;o<i.length;o++)i[o].initialize(t[o].textChange);return this._snippets[0].hasPlaceholder?this._move(!0):t.map((e=>l.L.fromPositions(e.range.getEndPosition())))})),this._editor.revealRange(this._editor.getSelections()[0])}merge(t,i=N){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,t]);const{edits:o,snippets:s}=e.createEditsAndSnippetsFromSelections(this._editor,t,i.overwriteBefore,i.overwriteAfter,!0,i.adjustWhitespace,i.clipboardText,i.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",o,(e=>{const t=e.filter((e=>!!e.identifier));for(let o=0;o<s.length;o++)s[o].initialize(t[o].textChange);const i=s[0].isTrivialSnippet;if(!i){for(const e of this._snippets)e.merge(s);console.assert(0===s.length)}return this._snippets[0].hasPlaceholder&&!i?this._move(void 0):t.map((e=>l.L.fromPositions(e.range.getEndPosition())))}))}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const o=i.move(e);t.push(...o)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;const t=new Map;for(const i of this._snippets){const o=i.computePossibleSelections();if(0===t.size)for(const[i,s]of o){s.sort(a.Q.compareRangesUsingStarts);for(const o of e)if(s[0].containsRange(o)){t.set(i,[]);break}}if(0===t.size)return!1;t.forEach(((e,t)=>{e.push(...o.get(t))}))}e.sort(a.Q.compareRangesUsingStarts);for(const[i,o]of t)if(o.length===e.length){o.sort(a.Q.compareRangesUsingStarts);for(let s=0;s<o.length;s++)o[s].containsRange(e[s])||t.delete(i)}else t.delete(i);return t.size>0}};E=R([L(3,d.JZ)],E)},67920:(e,t,i)=>{"use strict";i.d(t,{C:()=>a,O:()=>r});var o=i(8415),s=i(74790),n=i(22231);class r{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}class a{constructor(e,t,i,o,n,r,l=s.Nd.default,d=void 0){this.clipboardText=d,this._snippetCompareFn=a._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=o,this._options=n,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=l,"top"===r?this._snippetCompareFn=a._compareCompletionItemsSnippetsUp:"bottom"===r&&(this._snippetCompareFn=a._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}get items(){return this._ensureCachedState(),this._filteredItems}get allProvider(){return this._ensureCachedState(),this._providerInfo.keys()}get incomplete(){this._ensureCachedState();const e=new Set;for(const[t,i]of this._providerInfo)i&&e.add(t);return e}adopt(e){const t=[];for(let i=0;i<this._items.length;)e.has(this._items[i].provider)?i++:(t.push(this._items[i]),this._items[i]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,t}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._providerInfo=new Map;const e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let r="",a="";const l=1===this._refilterKind?this._items:this._filteredItems,d=[],h=!this._options.filterGraceful||l.length>2e3?s.dt:s.uU;for(let o=0;o<l.length;o++){const c=l[o];if(c.isInvalid)continue;this._providerInfo.set(c.provider,Boolean(c.container.incomplete));const g=c.position.column-c.editStart.column,u=g+i-(c.position.column-this._column);if(r.length!==u&&(r=0===u?"":t.slice(-u),a=r.toLowerCase()),c.word=r,0===u)c.score=s.ne.Default;else{let e=0;for(;e<g;){const t=r.charCodeAt(e);if(32!==t&&9!==t)break;e+=1}if(e>=u)c.score=s.ne.Default;else if("string"===typeof c.completion.filterText){const t=h(r,a,e,c.completion.filterText,c.filterTextLow,0,this._fuzzyScoreOptions);if(!t)continue;0===(0,n.W1)(c.completion.filterText,c.textLabel)?c.score=t:(c.score=(0,s.Jo)(r,a,e,c.textLabel,c.labelLow,0),c.score[0]=t[0])}else{const t=h(r,a,e,c.textLabel,c.labelLow,0,this._fuzzyScoreOptions);if(!t)continue;c.score=t}}c.idx=o,c.distance=this._wordDistance.distance(c.position,c.completion),d.push(c),e.push(c.textLabel.length)}this._filteredItems=d.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?(0,o.SO)(e.length-.85,e,((e,t)=>e-t)):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return a._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return a._compareCompletionItems(e,t)}}},31141:(e,t,i)=>{"use strict";i.d(t,{aR:()=>I,dt:()=>C,f3:()=>D,l1:()=>k,ob:()=>S,p3:()=>N,r3:()=>E,rc:()=>M});var o=i(99826),s=i(79734),n=i(74790),r=i(33793),a=i(39154),l=i(86448),d=i(34235),h=i(63102),c=i(93708),g=i(11615),u=i(7422),p=i(84978),m=i(52692),_=i(93308),f=i(75664),b=i(51209),v=i(4720),w=function(e,t,i,o){return new(i||(i=Promise))((function(s,n){function r(e){try{l(o.next(e))}catch(t){n(t)}}function a(e){try{l(o.throw(e))}catch(t){n(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((o=o.apply(e,t||[])).next())}))};const S={Visible:v.dg,HasFocusedSuggestion:new f.N1("suggestWidgetHasFocusedSuggestion",!1,(0,p.kg)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new f.N1("suggestWidgetDetailsVisible",!1,(0,p.kg)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new f.N1("suggestWidgetMultipleSuggestions",!1,(0,p.kg)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new f.N1("suggestionMakesTextEdit",!0,(0,p.kg)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new f.N1("acceptSuggestionOnEnter",!0,(0,p.kg)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new f.N1("suggestionHasInsertAndReplaceRange",!1,(0,p.kg)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new f.N1("suggestionInsertMode",void 0,{type:"string",description:(0,p.kg)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new f.N1("suggestionCanResolve",!1,(0,p.kg)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},C=new m.D8("suggestWidgetStatusBar");class y{constructor(e,t,i,o){this.position=e,this.completion=t,this.container=i,this.provider=o,this.isInvalid=!1,this.score=n.ne.Default,this.distance=0,this.textLabel="string"===typeof t.label?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,c.Q.isIRange(t.range)?(this.editStart=new h.y(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new h.y(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new h.y(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||c.Q.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new h.y(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new h.y(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new h.y(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||c.Q.spansMultipleLines(t.range.insert)||c.Q.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!==typeof o.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return w(this,void 0,void 0,(function*(){if(!this._resolveCache){const t=e.onCancellationRequested((()=>{this._resolveCache=void 0,this._isResolved=!1}));this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then((e=>{Object.assign(this.completion,e),this._isResolved=!0,t.dispose()}),(e=>{(0,s.MB)(e)&&(this._resolveCache=void 0,this._isResolved=!1)}))}return this._resolveCache}))}}class k{constructor(e=2,t=new Set,i=new Set,o=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.showDeprecated=o}}let x;function D(){return x}k.default=new k;class T{constructor(e,t,i,o){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=o}}function I(e,t,i,n=k.default,l={triggerKind:0},d=o.X.None){return w(this,void 0,void 0,(function*(){const o=new a.W(!0);i=i.clone();const h=t.getWordAtPosition(i),g=h?new c.Q(i.lineNumber,h.startColumn,i.lineNumber,h.endColumn):c.Q.fromPositions(i),p={replace:g,insert:g.setEndPosition(i.lineNumber,i.column)},m=[],_=new r.Cm,f=[];let b=!1;const v=(e,t,o)=>{var s,a,l;let d=!1;if(!t)return d;for(const r of t.suggestions)if(!n.kindFilter.has(r.kind)){if(!n.showDeprecated&&(null===(s=null===r||void 0===r?void 0:r.tags)||void 0===s?void 0:s.includes(1)))continue;r.range||(r.range=p),r.sortText||(r.sortText="string"===typeof r.label?r.label:r.label.label),!b&&r.insertTextRules&&4&r.insertTextRules&&(b=u.fr.guessNeedsClipboard(r.insertText)),m.push(new y(i,r,t,e)),d=!0}return(0,r.Xm)(t)&&_.add(t),f.push({providerName:null!==(a=e._debugDisplayName)&&void 0!==a?a:"unknown_provider",elapsedProvider:null!==(l=t.duration)&&void 0!==l?l:-1,elapsedOverall:o.elapsed()}),d},S=(()=>w(this,void 0,void 0,(function*(){if(!x||n.kindFilter.has(27))return;if(n.providerFilter.size>0&&!n.providerFilter.has(x))return;const e=new a.W(!0),o=yield x.provideCompletionItems(t,i,l,d);v(x,o,e)})))();for(const r of e.orderedGroups(t)){let e=!1;if(yield Promise.all(r.map((o=>w(this,void 0,void 0,(function*(){if(!(n.providerFilter.size>0)||n.providerFilter.has(o))try{const s=new a.W(!0),n=yield o.provideCompletionItems(t,i,l,d);e=v(o,n,s)||e}catch(r){(0,s.M_)(r)}}))))),e||d.isCancellationRequested)break}return yield S,d.isCancellationRequested?(_.dispose(),Promise.reject(new s.AL)):new T(m.sort(M(n.snippetSortOrder)),b,{entries:f,elapsed:o.elapsed()},_)}))}function R(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.textLabel<t.textLabel?-1:e.textLabel>t.textLabel?1:e.completion.kind-t.completion.kind}const L=new Map;function M(e){return L.get(e)}function N(e,t){var i;null===(i=e.getContribution("editor.contrib.suggestController"))||void 0===i||i.triggerSuggest((new Set).add(t),void 0,!0)}L.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return R(e,t)})),L.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return R(e,t)})),L.set(1,R),_.wb.registerCommand("_executeCompletionItemProvider",((e,...t)=>w(void 0,void 0,void 0,(function*(){const[i,s,n,r]=t;(0,l.j)(d.r.isUri(i)),(0,l.j)(h.y.isIPosition(s)),(0,l.j)("string"===typeof n||!n),(0,l.j)("number"===typeof r||!r);const{completionProvider:a}=e.get(b.u),c=yield e.get(g.b).createModelReference(i);try{const e={incomplete:!1,suggestions:[]},t=[],i=yield I(a,c.object.textEditorModel,h.y.lift(s),void 0,{triggerCharacter:n,triggerKind:n?1:0});for(const s of i.items)t.length<(null!==r&&void 0!==r?r:0)&&t.push(s.resolve(o.X.None)),e.incomplete=e.incomplete||s.container.incomplete,e.suggestions.push(s.completion);try{return yield Promise.all(t),e}finally{setTimeout((()=>i.disposable.dispose()),100)}}finally{c.dispose()}}))));class E{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}},14555:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SuggestController:()=>Xe,TriggerSuggestAction:()=>tt});var o=i(83269),s=i(8415),n=i(85345),r=i(99826),a=i(79734),l=i(16201),d=i(98580),h=i(33793),c=i(76394),g=i(39154),u=i(86448),p=i(37037),m=i(95713),_=i(91536),f=i(63102),b=i(93708),v=i(35725),w=i(53607),S=i(7422),C=i(62222),y=i(75664),k=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},x=function(e,t){return function(i,o){t(i,o,e)}};let D=class e{constructor(t,i){this._editor=t,this._enabled=!1,this._ckAtEnd=e.AtEnd.bindTo(i),this._configListener=this._editor.onDidChangeConfiguration((e=>e.hasChanged(112)&&this._update())),this._update()}dispose(){var e;this._configListener.dispose(),null===(e=this._selectionListener)||void 0===e||e.dispose(),this._ckAtEnd.reset()}_update(){const e="on"===this._editor.getOption(112);if(this._enabled!==e)if(this._enabled=e,this._enabled){const e=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const e=this._editor.getModel(),t=this._editor.getSelection(),i=e.getWordAtPosition(t.getStartPosition());i?this._ckAtEnd.set(i.endColumn===t.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};D.AtEnd=new y.N1("atEndOfWord",!1),D=k([x(1,y.fN)],D);var T=i(84978),I=i(93308),R=i(3660),L=i(92798),M=i(31141),N=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},E=function(e,t){return function(i,o){t(i,o,e)}};let A=class e{constructor(t,i){this._editor=t,this._index=0,this._ckOtherSuggestions=e.OtherSuggestions.bindTo(i)}dispose(){this.reset()}reset(){var e;this._ckOtherSuggestions.reset(),null===(e=this._listener)||void 0===e||e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:t,index:i},o){if(0===t.items.length)return void this.reset();e._moveIndex(!0,t,i)!==i?(this._acceptNext=o,this._model=t,this._index=i,this._listener=this._editor.onDidChangeCursorPosition((()=>{this._ignore||this.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,i){let o=i;for(;o=(o+t.items.length+(e?1:-1))%t.items.length,o!==i&&t.items[o].completion.additionalTextEdits;);return o}next(){this._move(!0)}prev(){this._move(!1)}_move(t){if(this._model)try{this._ignore=!0,this._index=e._moveIndex(t,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};A.OtherSuggestions=new y.N1("hasOtherSuggestions",!1),A=N([E(1,y.fN)],A);var W=i(3931);class P{constructor(e,t,i){this._disposables=new h.Cm,this._disposables.add(t.onDidShow((()=>this._onItem(t.getFocusedItem())))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((o=>{if(this._active&&!t.isFrozen()){const t=o.charCodeAt(o.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&i(this._active.item)}})))}_onItem(e){if(!e||!(0,s.EI)(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new W.y;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}var O=i(22231),F=i(4707),H=i(22371),U=i(6576),z=i(24071),$=i(17030),B=i(35152),j=i(67920),V=i(51209),q=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},G=function(e,t){return function(i,o){t(i,o,e)}},K=function(e,t,i,o){return new(i||(i=Promise))((function(s,n){function r(e){try{l(o.next(e))}catch(t){n(t)}}function a(e){try{l(o.throw(e))}catch(t){n(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((o=o.apply(e,t||[])).next())}))};class Q{constructor(e,t,i,o,s){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=i,this.shy=o,this.noSelect=s}static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const o=t.getWordAtPosition(i);return!!o&&(o.endColumn===i.column&&!!isNaN(Number(o.word)))}}let Z=class e{constructor(e,t,i,o,s,r,a,d){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=o,this._logService=s,this._contextKeyService=r,this._configurationService=a,this._languageFeaturesService=d,this._toDispose=new h.Cm,this._triggerCharacterListener=new h.Cm,this._triggerQuickSuggest=new n.pc,this._state=0,this._completionDisposables=new h.Cm,this._onDidCancel=new l.vl,this._onDidTrigger=new l.vl,this._onDidSuggest=new l.vl,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new F.L(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((()=>{this._updateTriggerCharacters()}))),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange((()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})));let c=!1;this._toDispose.add(this._editor.onDidCompositionStart((()=>{c=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((()=>{c=!1,this._onCompositionEnd()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((e=>{c||this._onCursorChange(e)}))),this._toDispose.add(this._editor.onDidChangeModelContent((()=>{c||this._refilterCompletionItems()}))),this._updateTriggerCharacters()}dispose(){(0,h.AS)(this._triggerCharacterListener),(0,h.AS)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(82)||!this._editor.hasModel()||!this._editor.getOption(110))return;const e=new Map;for(const i of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const t of i.triggerCharacters||[]){let o=e.get(t);o||(o=new Set,o.add((0,M.f3)()),e.set(t,o)),o.add(i)}const t=t=>{if(!function(e,t,i){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;const o=i.getValue("editor.inlineSuggest.allowSuggestOnTriggerCharacters");return void 0!==o&&Boolean(o)}(this._editor,this._contextKeyService,this._configurationService))return;if(Q.shouldAutoTrigger(this._editor))return;if(!t){const e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let i="";(0,O.LJ)(t.charCodeAt(t.length-1))?(0,O.pc)(t.charCodeAt(t.length-2))&&(i=t.substr(t.length-2)):i=t.charAt(t.length-1);const o=e.get(i);if(o){const e=this._completionModel?{items:this._completionModel.adopt(o),clipboardText:this._completionModel.clipboardText}:void 0;this.trigger({auto:!0,shy:!1,noSelect:!1,triggerCharacter:i},Boolean(this._completionModel),o,e)}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd((()=>t())))}get state(){return this._state}cancel(e=!1){var t;0!==this._state&&(this._triggerQuickSuggest.cancel(),null===(t=this._requestToken)||void 0===t||t.cancel(),this._requestToken=void 0,this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){0!==this._state&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:2===this._state,shy:!1,noSelect:!1},!0):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source?this.cancel():0===this._state&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():0!==this._state&&3===e.reason&&this._refilterCompletionItems()}_onCompositionEnd(){0===this._state?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var e;M.r3.isAllOff(this._editor.getOption(80))||this._editor.getOption(107).snippetsPreventQuickSuggestions&&(null===(e=w.SnippetController2.get(this._editor))||void 0===e?void 0:e.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet((()=>{if(0!==this._state)return;if(!Q.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(80);if(!M.r3.isAllOff(i)){if(!M.r3.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);const o=e.tokenization.getLineTokens(t.lineNumber),s=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==M.r3.valueFor(i,s))return}(function(e,t,i){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;const o=i.getValue("editor.inlineSuggest.allowQuickSuggestions");return void 0!==o&&Boolean(o)})(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(e)&&this.trigger({auto:!0,shy:!1,noSelect:!1})}}),this._editor.getOption(81)))}_refilterCompletionItems(){Promise.resolve().then((()=>{if(0===this._state)return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=new Q(e,t,2===this._state,!1,!1);this._onNewContext(i)}))}trigger(t,i=!1,o,s,n){var l;if(!this._editor.hasModel())return;const d=this._editor.getModel(),h=t.auto,c=new Q(d,this._editor.getPosition(),h,t.shy,t.noSelect);this.cancel(i),this._state=h?2:1,this._onDidTrigger.fire({auto:h,shy:t.shy,position:this._editor.getPosition()}),this._context=c;let g={triggerKind:null!==(l=t.triggerKind)&&void 0!==l?l:0};t.triggerCharacter&&(g={triggerKind:1,triggerCharacter:t.triggerCharacter}),this._requestToken=new r.Q;const u=this._editor.getOption(102);let p=1;switch(u){case"top":p=0;break;case"bottom":p=2}const{itemKind:m,showDeprecated:_}=e._createSuggestFilter(this._editor),f=new M.l1(p,n?new Set:m,o,_),b=U.S.create(this._editorWorkerService,this._editor),v=(0,M.aR)(this._languageFeaturesService.completionProvider,d,this._editor.getPosition(),f,g,this._requestToken.token);Promise.all([v,b]).then((([e,i])=>K(this,void 0,void 0,(function*(){var o;if(null===(o=this._requestToken)||void 0===o||o.dispose(),!this._editor.hasModel())return;let n=null===s||void 0===s?void 0:s.clipboardText;if(!n&&e.needsClipboard&&(n=yield this._clipboardService.readText()),0===this._state)return;const r=this._editor.getModel();let a=e.items;if(s){const e=(0,M.rc)(p);a=a.concat(s.items).sort(e)}const l=new Q(r,this._editor.getPosition(),h,t.shy,t.noSelect);this._completionModel=new j.C(a,this._context.column,{leadingLineContent:l.leadingLineContent,characterCountDelta:l.column-this._context.column},i,this._editor.getOption(107),this._editor.getOption(102),void 0,n),this._completionDisposables.add(e.disposable),this._onNewContext(l),this._reportDurationsTelemetry(e.durations)})))).catch(a.dz)}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout((()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)}))}static _createSuggestFilter(e){const t=new Set;"none"===e.getOption(102)&&t.add(27);const i=e.getOption(107);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(27),i.showUsers||t.add(25),i.showIssues||t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber)if((0,O.UU)(e.leadingLineContent)===(0,O.UU)(this._context.leadingLineContent)){if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1,noSelect:!1},!0):this.cancel();else if(this._completionModel)if(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){const e=new Set(this._languageFeaturesService.completionProvider.all(this._editor.getModel()));for(const i of this._completionModel.allProvider)e.delete(i);const t=this._completionModel.adopt(new Set);this.trigger({auto:this._context.auto,shy:!1,noSelect:!1},!0,e,{items:t,clipboardText:this._completionModel.clipboardText})}else if(e.column>this._context.column&&this._completionModel.incomplete.size>0&&0!==e.leadingWord.word.length){const{incomplete:e}=this._completionModel,t=this._completionModel.adopt(e);this.trigger({auto:2===this._state,shy:!1,noSelect:!1,triggerKind:2},!0,e,{items:t,clipboardText:this._completionModel.clipboardText})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if(Q.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.auto,shy:!1,noSelect:!1},!0);if(this._context.auto)return void this.cancel();if(this._completionModel.lineContext=t,i=this._completionModel.items.length>0,i&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,noSelect:this._context.noSelect,isFrozen:i})}}else this.cancel();else this.cancel()}};Z=q([G(1,H.w),G(2,z.h),G(3,B.k),G(4,L.rr),G(5,y.fN),G(6,$.pG),G(7,V.u)],Z);class J{constructor(e,t){this._disposables=new h.Cm,this._lastOvertyped=[],this._empty=!0,this._disposables.add(e.onWillType((()=>{if(!this._empty)return;if(!e.hasModel())return;const t=e.getSelections(),i=t.length;let o=!1;for(let e=0;e<i;e++)if(!t[e].isEmpty()){o=!0;break}if(!o)return;this._lastOvertyped=[];const s=e.getModel();for(let e=0;e<i;e++){const i=t[e];if(s.getValueLengthInRange(i)>J._maxSelectionLength)return;this._lastOvertyped[e]={value:s.getValueInRange(i),multiline:i.startLineNumber!==i.endLineNumber}}this._empty=!1}))),this._disposables.add(t.onDidCancel((e=>{this._empty||e.retrigger||(this._empty=!0)})))}getLastOvertypedInfo(e){if(!this._empty&&e>=0&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}dispose(){this._disposables.dispose()}}J._maxSelectionLength=51200;var Y=i(69848),X=(i(44703),i(72772)),ee=i(4947),te=i(29579),ie=i(46088),oe=i(67099),se=i(52692),ne=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},re=function(e,t){return function(i,o){t(i,o,e)}};class ae extends oe.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();this.label&&(this.label.textContent=(0,T.kg)("ddd","{0} ({1})",this._action.label,ae.symbolPrintEnter(e)))}static symbolPrintEnter(e){var t;return null===(t=e.getLabel())||void 0===t?void 0:t.replace(/\benter\b/gi,"\u23ce")}}let le=class{constructor(e,t,i,o){this._menuService=i,this._contextKeyService=o,this._menuDisposables=new h.Cm,this.element=Y.BC(e,Y.$(".suggest-status-bar"));const s=e=>e instanceof se.Xe?t.createInstance(ae,e,void 0):void 0;this._leftActions=new ie.E(this.element,{actionViewItemProvider:s}),this._rightActions=new ie.E(this.element,{actionViewItemProvider:s}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(M.dt,this._contextKeyService),t=()=>{const t=[],i=[];for(const[o,s]of e.getActions())"left"===o?t.push(...s):i.push(...s);this._leftActions.clear(),this._leftActions.push(t),this._rightActions.clear(),this._rightActions.push(i)};this._menuDisposables.add(e.onDidChange((()=>t()))),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};le=ne([re(1,R._Y),re(2,se.ez),re(3,y.fN)],le);i(82145);var de=i(51756),he=i(64709),ce=i(52040),ge=i(80708),ue=i(87357),pe=i(83352),me=i(15809),_e=i(15441),fe=i(82183),be=i(7965),ve=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},we=function(e,t){return function(i,o){t(i,o,e)}};function Se(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let Ce=class{constructor(e,t){this._editor=e,this._onDidClose=new l.vl,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new l.vl,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new h.Cm,this._renderDisposeable=new h.Cm,this._borderWidth=1,this._size=new Y.fg(330,0),this.domNode=Y.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(be.T,{editor:e}),this._body=Y.$(".body"),this._scrollbar=new me.MU(this._body,{alwaysConsumeMouseWheel:!0}),Y.BC(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=Y.BC(this._body,Y.$(".header")),this._close=Y.BC(this._header,Y.$("span"+_e.W6.close.cssSelector)),this._close.title=T.kg("details.close","Close"),this._type=Y.BC(this._header,Y.$("p.type")),this._docs=Y.BC(this._body,Y.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(45)&&this._configureFont()})))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(45),i=t.getMassagedFontFamily(),o=e.get(108)||t.fontSize,s=e.get(109)||t.lineHeight,n=t.fontWeight,r=`${o}px`,a=`${s}px`;this.domNode.style.fontSize=r,this.domNode.style.lineHeight=""+s/o,this.domNode.style.fontWeight=n,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=a,this._close.style.width=a}getLayoutInfo(){const e=this._editor.getOption(109)||this._editor.getOption(45).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=T.kg("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){var i,o;this._renderDisposeable.clear();let{detail:s,documentation:n}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}\n`,t+=`prefix: ${null!==(i=e.word)&&void 0!==i?i:"(no prefix)"}\n`,t+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}\n`,t+=`distance: ${e.distance} (localityBonus-setting)\n`,t+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`,t+=`commit_chars: ${null===(o=e.completion.commitCharacters)||void 0===o?void 0:o.join("")}\n`,n=(new fe.Bc).appendCodeblock("empty",t),s=`Provider: ${e.provider._debugDisplayName}`}if(t||Se(e)){if(this.domNode.classList.remove("no-docs","no-type"),s){const e=s.length>1e5?`${s.substr(0,1e5)}\u2026`:s;this._type.textContent=e,this._type.title=e,Y.WU(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(e))}else Y.w_(this._type),this._type.title="",Y.jD(this._type),this.domNode.classList.add("no-type");if(Y.w_(this._docs),"string"===typeof n)this._docs.classList.remove("markdown-docs"),this._docs.textContent=n;else if(n){this._docs.classList.add("markdown-docs"),Y.w_(this._docs);const e=this._markdownRenderer.render(n);this._docs.appendChild(e.element),this._renderDisposeable.add(e),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync((()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)})))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=e=>{e.preventDefault(),e.stopPropagation()},this._close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get size(){return this._size}layout(e,t){const i=new Y.fg(e,t);Y.fg.equals(i,this._size)||(this._size=i,Y.Ej(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};Ce=ve([we(1,R._Y)],Ce);class ye{constructor(e,t){let i,o;this.widget=e,this._editor=t,this._disposables=new h.Cm,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new pe.v,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let s=0,n=0;this._disposables.add(this._resizable.onDidWillResize((()=>{i=this._topLeft,o=this._resizable.size}))),this._disposables.add(this._resizable.onDidResize((e=>{if(i&&o){this.widget.layout(e.dimension.width,e.dimension.height);let t=!1;e.west&&(n=o.width-e.dimension.width,t=!0),e.north&&(s=o.height-e.dimension.height,t=!0),t&&this._applyTopLeft({top:i.top+s,left:i.left+n})}e.done&&(i=void 0,o=void 0,s=0,n=0,this._userSize=e.dimension)}))),this._disposables.add(this.widget.onDidChangeContents((()=>{var e;this._anchorBox&&this._placeAtAnchor(this._anchorBox,null!==(e=this._userSize)&&void 0!==e?e:this.widget.size,this._preferAlignAtTop)})))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){var i;const o=e.getBoundingClientRect();this._anchorBox=o,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,null!==(i=this._userSize)&&void 0!==i?i:this.widget.size,t)}_placeAtAnchor(e,t,i){var o;const s=Y.tG(document.body),n=this.widget.getLayoutInfo(),r=new Y.fg(220,2*n.lineHeight),a=e.top,l=function(){const i=s.width-(e.left+e.width+n.borderWidth+n.horizontalPadding),o=-n.borderWidth+e.left+e.width,l=new Y.fg(i,s.height-e.top-n.borderHeight-n.verticalPadding),d=l.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding);return{top:a,left:o,fit:i-t.width,maxSizeTop:l,maxSizeBottom:d,minSize:r.with(Math.min(i,r.width))}}(),d=[l,function(){const i=e.left-n.borderWidth-n.horizontalPadding,o=Math.max(n.horizontalPadding,e.left-t.width-n.borderWidth),l=new Y.fg(i,s.height-e.top-n.borderHeight-n.verticalPadding),d=l.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding);return{top:a,left:o,fit:i-t.width,maxSizeTop:l,maxSizeBottom:d,minSize:r.with(Math.min(i,r.width))}}(),function(){const i=e.left,o=-n.borderWidth+e.top+e.height,a=new Y.fg(e.width-n.borderHeight,s.height-e.top-e.height-n.verticalPadding);return{top:o,left:i,fit:a.height-t.height,maxSizeBottom:a,maxSizeTop:a,minSize:r.with(a.width)}}()],h=null!==(o=d.find((e=>e.fit>=0)))&&void 0!==o?o:d.sort(((e,t)=>t.fit-e.fit))[0],c=e.top+e.height-n.borderHeight;let g,u=t.height;const p=Math.max(h.maxSizeTop.height,h.maxSizeBottom.height);let m;u>p&&(u=p),i?u<=h.maxSizeTop.height?(g=!0,m=h.maxSizeTop):(g=!1,m=h.maxSizeBottom):u<=h.maxSizeBottom.height?(g=!1,m=h.maxSizeBottom):(g=!0,m=h.maxSizeTop),this._applyTopLeft({left:h.left,top:g?h.top:c-u}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!g,h===l,g,h!==l),this._resizable.minSize=h.minSize,this._resizable.maxSize=m,this._resizable.layout(u,Math.min(m.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this.getDomNode().style.left=`${this._topLeft.left}px`,this.getDomNode().style.top=`${this._topLeft.top}px`}}var ke,xe=i(15052),De=i(74790),Te=i(34235),Ie=i(52174),Re=i(29975),Le=i(61883),Me=i(21051),Ne=i(50348),Ee=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},Ae=function(e,t){return function(i,o){t(i,o,e)}};function We(e){return`suggest-aria-id:${e}`}const Pe=(0,i(13587).pU)("suggest-more-info",_e.W6.chevronRight,T.kg("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),Oe=new((ke=class e{extract(t,i){if(t.textLabel.match(e._regexStrict))return i[0]=t.textLabel,!0;if(t.completion.detail&&t.completion.detail.match(e._regexStrict))return i[0]=t.completion.detail,!0;if("string"===typeof t.completion.documentation){const o=e._regexRelaxed.exec(t.completion.documentation);if(o&&(0===o.index||o.index+o[0].length===t.completion.documentation.length))return i[0]=o[0],!0}return!1}})._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,ke._regexStrict=new RegExp(`^${ke._regexRelaxed.source}$`,"i"),ke);let Fe=class{constructor(e,t,i,o){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=o,this._onDidToggleDetails=new l.vl,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=Object.create(null);t.disposables=new h.Cm,t.root=e,t.root.classList.add("show-file-icons"),t.icon=(0,Y.BC)(e,(0,Y.$)(".icon")),t.colorspan=(0,Y.BC)(t.icon,(0,Y.$)("span.colorspan"));const i=(0,Y.BC)(e,(0,Y.$)(".contents")),o=(0,Y.BC)(i,(0,Y.$)(".main"));t.iconContainer=(0,Y.BC)(o,(0,Y.$)(".icon-label.codicon")),t.left=(0,Y.BC)(o,(0,Y.$)("span.left")),t.right=(0,Y.BC)(o,(0,Y.$)("span.right")),t.iconLabel=new xe.s(t.left,{supportHighlights:!0,supportIcons:!0}),t.disposables.add(t.iconLabel),t.parametersLabel=(0,Y.BC)(t.left,(0,Y.$)("span.signature-label")),t.qualifierLabel=(0,Y.BC)(t.left,(0,Y.$)("span.qualifier-label")),t.detailsLabel=(0,Y.BC)(t.right,(0,Y.$)("span.details-label")),t.readMore=(0,Y.BC)(t.right,(0,Y.$)("span.readMore"+ue.L0.asCSSSelector(Pe))),t.readMore.title=T.kg("readMore","Read More");const s=()=>{const e=this._editor.getOptions(),i=e.get(45),s=i.getMassagedFontFamily(),n=i.fontFeatureSettings,r=e.get(108)||i.fontSize,a=e.get(109)||i.lineHeight,l=i.fontWeight,d=`${r}px`,h=`${a}px`,c=`${i.letterSpacing}px`;t.root.style.fontSize=d,t.root.style.fontWeight=l,t.root.style.letterSpacing=c,o.style.fontFamily=s,o.style.fontFeatureSettings=n,o.style.lineHeight=h,t.icon.style.height=h,t.icon.style.width=h,t.readMore.style.height=h,t.readMore.style.width=h};return s(),t.disposables.add(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(45)||e.hasChanged(108)||e.hasChanged(109))&&s()}))),t}renderElement(e,t,i){const{completion:o}=e;i.root.id=We(t),i.colorspan.style.backgroundColor="";const s={labelEscapeNewLines:!0,matches:(0,De.WJ)(e.score)},n=[];if(19===o.kind&&Oe.extract(e,n))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=n[0];else if(20===o.kind&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const t=(0,Re.I)(this._modelService,this._languageService,Te.r.from({scheme:"fake",path:e.textLabel}),Ne.p.FILE),n=(0,Re.I)(this._modelService,this._languageService,Te.r.from({scheme:"fake",path:o.detail}),Ne.p.FILE);s.extraClasses=t.length>n.length?t:n}else 23===o.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",s.extraClasses=[(0,Re.I)(this._modelService,this._languageService,Te.r.from({scheme:"fake",path:e.textLabel}),Ne.p.FOLDER),(0,Re.I)(this._modelService,this._languageService,Te.r.from({scheme:"fake",path:o.detail}),Ne.p.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",..._e.j3.asClassNameArray(Ie.HC.toIcon(o.kind))));o.tags&&o.tags.indexOf(1)>=0&&(s.extraClasses=(s.extraClasses||[]).concat(["deprecated"]),s.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,s),"string"===typeof o.label?(i.parametersLabel.textContent="",i.detailsLabel.textContent=He(o.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=He(o.label.detail||""),i.detailsLabel.textContent=He(o.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(107).showInlineDetails?(0,Y.WU)(i.detailsLabel):(0,Y.jD)(i.detailsLabel),Se(e)?(i.right.classList.add("can-expand-details"),(0,Y.WU)(i.readMore),i.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},i.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),(0,Y.jD)(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};function He(e){return e.replace(/\r\n|\r|\n/g,"")}Fe=Ee([Ae(1,Le.S),Ae(2,Me.L),Ae(3,ue.Gy)],Fe);var Ue=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},ze=function(e,t){return function(i,o){t(i,o,e)}},$e=function(e,t,i,o){return new(i||(i=Promise))((function(s,n){function r(e){try{l(o.next(e))}catch(t){n(t)}}function a(e){try{l(o.throw(e))}catch(t){n(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((o=o.apply(e,t||[])).next())}))};(0,he.x1A)("editorSuggestWidget.background",{dark:he.CgL,light:he.CgL,hcDark:he.CgL,hcLight:he.CgL},T.kg("editorSuggestWidgetBackground","Background color of the suggest widget.")),(0,he.x1A)("editorSuggestWidget.border",{dark:he.sIe,light:he.sIe,hcDark:he.sIe,hcLight:he.sIe},T.kg("editorSuggestWidgetBorder","Border color of the suggest widget."));const Be=(0,he.x1A)("editorSuggestWidget.foreground",{dark:he.By2,light:he.By2,hcDark:he.By2,hcLight:he.By2},T.kg("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),je=((0,he.x1A)("editorSuggestWidget.selectedForeground",{dark:he.nH,light:he.nH,hcDark:he.nH,hcLight:he.nH},T.kg("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),(0,he.x1A)("editorSuggestWidget.selectedIconForeground",{dark:he.c7i,light:he.c7i,hcDark:he.c7i,hcLight:he.c7i},T.kg("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget.")),(0,he.x1A)("editorSuggestWidget.selectedBackground",{dark:he.AlL,light:he.AlL,hcDark:he.AlL,hcLight:he.AlL},T.kg("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")));(0,he.x1A)("editorSuggestWidget.highlightForeground",{dark:he.QI5,light:he.QI5,hcDark:he.QI5,hcLight:he.QI5},T.kg("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),(0,he.x1A)("editorSuggestWidget.focusHighlightForeground",{dark:he.eMz,light:he.eMz,hcDark:he.eMz,hcLight:he.eMz},T.kg("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),(0,he.x1A)("editorSuggestWidgetStatus.foreground",{dark:(0,he.JO0)(Be,.5),light:(0,he.JO0)(Be,.5),hcDark:(0,he.JO0)(Be,.5),hcLight:(0,he.JO0)(Be,.5)},T.kg("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class Ve{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof te.t}`}restore(){var e;const t=null!==(e=this._service.get(this._key,0))&&void 0!==e?e:"";try{const e=JSON.parse(t);if(Y.fg.is(e))return Y.fg.lift(e)}catch(i){}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let qe=class e{constructor(e,t,i,o,s){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new n.pc,this._disposables=new h.Cm,this._onDidSelect=new l.vl,this._onDidFocus=new l.vl,this._onDidHide=new l.vl,this._onDidShow=new l.vl,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new l.vl,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new pe.v,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new Ge(this,e),this._persistedSize=new Ve(t,e);class r{constructor(e,t,i=!1,o=!1){this.persistedSize=e,this.currentSize=t,this.persistHeight=i,this.persistWidth=o}}let a;this._disposables.add(this.element.onDidWillResize((()=>{this._contentWidget.lockPreference(),a=new r(this._persistedSize.restore(),this.element.size)}))),this._disposables.add(this.element.onDidResize((e=>{var t,i,o,s;if(this._resize(e.dimension.width,e.dimension.height),a&&(a.persistHeight=a.persistHeight||!!e.north||!!e.south,a.persistWidth=a.persistWidth||!!e.east||!!e.west),e.done){if(a){const{itemHeight:e,defaultSize:n}=this.getLayoutInfo(),r=Math.round(e/2);let{width:l,height:d}=this.element.size;(!a.persistHeight||Math.abs(a.currentSize.height-d)<=r)&&(d=null!==(i=null===(t=a.persistedSize)||void 0===t?void 0:t.height)&&void 0!==i?i:n.height),(!a.persistWidth||Math.abs(a.currentSize.width-l)<=r)&&(l=null!==(s=null===(o=a.persistedSize)||void 0===o?void 0:o.width)&&void 0!==s?s:n.width),this._persistedSize.store(new Y.fg(l,d))}this._contentWidget.unlockPreference(),a=void 0}}))),this._messageElement=Y.BC(this.element.domNode,Y.$(".message")),this._listElement=Y.BC(this.element.domNode,Y.$(".tree"));const d=s.createInstance(Ce,this.editor);d.onDidClose(this.toggleDetails,this,this._disposables),this._details=new ye(d,this.editor);const c=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(107).showIcons);c();const g=s.createInstance(Fe,this.editor);this._disposables.add(g),this._disposables.add(g.onDidToggleDetails((()=>this.toggleDetails()))),this._list=new X.B8("SuggestWidget",this._listElement,{getHeight:e=>this.getLayoutInfo().itemHeight,getTemplateId:e=>"suggestion"},[g],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>T.kg("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:e=>{let t=e.textLabel;if("string"!==typeof e.completion.label){const{detail:i,description:o}=e.completion.label;i&&o?t=T.kg("label.full","{0}{1}, {2}",t,i,o):i?t=T.kg("label.detail","{0}{1}",t,i):o&&(t=T.kg("label.desc","{0}, {1}",t,o))}if(!e.isResolved||!this._isDetailsVisible())return t;const{documentation:i,detail:o}=e.completion,s=O.GP("{0}{1}",o||"",i?"string"===typeof i?i:i.value:"");return T.kg("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",t,s)}}}),this._status=s.createInstance(le,this.element.domNode);const u=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(107).showStatusBar);u(),this._disposables.add((0,ce.DD)(this._list,o,{listInactiveFocusBackground:je,listInactiveFocusOutline:he.buw})),this._disposables.add(o.onDidColorThemeChange((e=>this._onThemeChange(e)))),this._onThemeChange(o.getColorTheme()),this._disposables.add(this._list.onMouseDown((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onTap((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onDidChangeSelection((e=>this._onListSelection(e)))),this._disposables.add(this._list.onDidChangeFocus((e=>this._onListFocus(e)))),this._disposables.add(this.editor.onDidChangeCursorSelection((()=>this._onCursorSelectionChanged()))),this._disposables.add(this.editor.onDidChangeConfiguration((e=>{e.hasChanged(107)&&(u(),c())}))),this._ctxSuggestWidgetVisible=M.ob.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=M.ob.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=M.ob.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=M.ob.HasFocusedSuggestion.bindTo(i),this._disposables.add(Y.b2(this._details.widget.domNode,"keydown",(e=>{this._onDetailsKeydown.fire(e)}))),this._disposables.add(this.editor.onMouseDown((e=>this._onEditorMouseDown(e))))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(e){"undefined"!==typeof e.element&&"undefined"!==typeof e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=(0,ge.Bb)(e.type)?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),void this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const i=e.elements[0],o=e.indexes[0];i!==this._focusedItem&&(null===(t=this._currentSuggestionDetails)||void 0===t||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=i,this._list.reveal(o),this._currentSuggestionDetails=(0,n.SS)((e=>$e(this,void 0,void 0,(function*(){const t=(0,n.EQ)((()=>{this._isDetailsVisible()&&this.showDetails(!0)}),250),o=e.onCancellationRequested((()=>t.dispose())),s=yield i.resolve(e);return t.dispose(),o.dispose(),s})))),this._currentSuggestionDetails.then((()=>{o>=this._list.length||i!==this._list.element(o)||(this._ignoreFocusEvents=!0,this._list.splice(o,1,[i]),this._list.setFocus([o]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:We(o)}))})).catch(a.dz)),this._onDidFocus.fire({item:i,index:o,model:this._completionModel})}_setState(t){if(this._state!==t)switch(this._state=t,this.element.domNode.classList.toggle("frozen",4===t),this.element.domNode.classList.remove("message"),t){case 0:Y.jD(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=e.LOADING_MESSAGE,Y.jD(this._listElement,this._status.element),Y.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=e.NO_SUGGESTIONS_MESSAGE,Y.jD(this._listElement,this._status.element),Y.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 3:case 4:Y.jD(this._messageElement),Y.WU(this._listElement,this._status.element),this._show();break;case 5:Y.jD(this._messageElement),Y.WU(this._listElement,this._status.element),this._details.show(),this._show()}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet((()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)}),100)}showTriggered(e,t){0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=(0,n.EQ)((()=>this._setState(1)),t)))}showSuggestions(e,t,i,o){var s,n;if(this._contentWidget.setPosition(this.editor.getPosition()),null===(s=this._loadingTimeout)||void 0===s||s.dispose(),null===(n=this._currentSuggestionDetails)||void 0===n||n.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&2!==this._state&&0!==this._state)return void this._setState(4);const r=this._completionModel.items.length,a=0===r;if(this._ctxSuggestWidgetMultipleSuggestions.set(r>1),a)return this._setState(o?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),t>=0&&(this._list.reveal(t,0),this._list.setFocus([t])),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!Se(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const t=this._persistedSize.restore(),i=Math.ceil(4.3*this.getLayoutInfo().itemHeight);t&&t.height<i&&this._persistedSize.store(t.with(void 0,i))}isFrozen(){return 4===this._state}_afterRender(e){null!==e?2!==this._state&&1!==this._state&&(this._isDetailsVisible()&&this._details.show(),this._positionDetails()):this._isDetailsVisible()&&this._details.hide()}_layout(e){var t,i,o;if(!this.editor.hasModel())return;if(!this.editor.getDomNode())return;const s=Y.tG(document.body),n=this.getLayoutInfo();e||(e=n.defaultSize);let r=e.height,a=e.width;if(this._status.element.style.lineHeight=`${n.itemHeight}px`,2===this._state||1===this._state)r=n.itemHeight+n.borderHeight,a=n.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new Y.fg(a,r),this._contentWidget.setPreference(2);else{const l=s.width-n.borderHeight-2*n.horizontalPadding;a>l&&(a=l);const d=this._completionModel?this._completionModel.stats.pLabelLen*n.typicalHalfwidthCharacterWidth:a,h=n.statusBarHeight+this._list.contentHeight+n.borderHeight,c=n.itemHeight+n.statusBarHeight,g=Y.BK(this.editor.getDomNode()),u=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),p=g.top+u.top+u.height,m=Math.min(s.height-p-n.verticalPadding,h),_=g.top+u.top-n.verticalPadding,f=Math.min(_,h);let b=Math.min(Math.max(f,m)+n.borderHeight,h);r===(null===(t=this._cappedHeight)||void 0===t?void 0:t.capped)&&(r=this._cappedHeight.wanted),r<c&&(r=c),r>b&&(r=b);const v=150;r>m||this._forceRenderingAbove&&_>v?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),b=f):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),b=m),this.element.preferredSize=new Y.fg(d,n.defaultSize.height),this.element.maxSize=new Y.fg(l,b),this.element.minSize=new Y.fg(220,c),this._cappedHeight=r===h?{wanted:null!==(o=null===(i=this._cappedHeight)||void 0===i?void 0:i.wanted)&&void 0!==o?o:e.height,capped:r}:void 0}this._resize(a,r)}_resize(e,t){const{width:i,height:o}=this.element.maxSize;e=Math.min(i,e),t=Math.min(o,t);const{statusBarHeight:s}=this.getLayoutInfo();this._list.layout(t-s,e),this._listElement.style.height=t-s+"px",this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var e;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,2===(null===(e=this._contentWidget.getPosition())||void 0===e?void 0:e.preference[0]))}getLayoutInfo(){const e=this.editor.getOption(45),t=(0,ee.qE)(this.editor.getOption(109)||e.lineHeight,8,1e3),i=this.editor.getOption(107).showStatusBar&&2!==this._state&&1!==this._state?t:0,o=this._details.widget.borderWidth,s=2*o;return{itemHeight:t,statusBarHeight:i,borderWidth:o,borderHeight:s,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new Y.fg(430,i+12*t+s)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};qe.LOADING_MESSAGE=T.kg("suggestWidget.loading","Loading..."),qe.NO_SUGGESTIONS_MESSAGE=T.kg("suggestWidget.noSuggestions","No suggestions."),qe=Ue([ze(1,de.CS),ze(2,y.fN),ze(3,ue.Gy),ze(4,R._Y)],qe);class Ge{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:o}=this._widget.getLayoutInfo();return new Y.fg(t+2*i+o,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var Ke=i(68040),Qe=i(80705),Ze=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},Je=function(e,t){return function(i,o){t(i,o,e)}};class Ye{constructor(e,t){this._model=e,this._position=t;if(e.getLineMaxColumn(t.lineNumber)!==t.column){const i=e.getOffsetAt(t),o=e.getPositionAt(i+1);this._marker=e.deltaDecorations([],[{range:b.Q.fromPositions(t,o),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let Xe=class e{constructor(e,t,i,o,s,r,a){this._memoryService=t,this._commandService=i,this._contextKeyService=o,this._instantiationService=s,this._logService=r,this._telemetryService=a,this._lineSuffix=new h.HE,this._toDispose=new h.Cm,this._selectors=new et((e=>e.priority)),this._telemetryGate=0,this.editor=e,this.model=s.createInstance(Z,this.editor);const l=M.ob.InsertMode.bindTo(o);l.set(e.getOption(107).insertMode),this.model.onDidTrigger((()=>l.set(e.getOption(107).insertMode))),this.widget=this._toDispose.add(new n.kb((()=>{const e=this._instantiationService.createInstance(qe,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect((e=>this._insertSuggestion(e,0)),this));const t=new P(this.editor,e,(e=>this._insertSuggestion(e,2)));this._toDispose.add(t),this._toDispose.add(this.model.onDidSuggest((e=>{0===e.completionModel.items.length&&t.reset()})));const i=M.ob.MakesTextEdit.bindTo(this._contextKeyService),o=M.ob.HasInsertAndReplaceRange.bindTo(this._contextKeyService),s=M.ob.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,h.s)((()=>{i.reset(),o.reset(),s.reset()}))),this._toDispose.add(e.onDidFocus((({item:e})=>{const t=this.editor.getPosition(),n=e.editStart.column,r=t.column;let a=!0;if("smart"===this.editor.getOption(1)&&2===this.model.state&&!e.completion.additionalTextEdits&&!(4&e.completion.insertTextRules)&&r-n===e.completion.insertText.length){a=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:n,endLineNumber:t.lineNumber,endColumn:r})!==e.completion.insertText}i.set(a),o.set(!f.y.equals(e.editInsertEnd,e.editReplaceEnd)),s.set(Boolean(e.provider.resolveCompletionItem)||Boolean(e.completion.documentation)||e.completion.detail!==e.completion.label)}))),this._toDispose.add(e.onDetailsKeyDown((e=>{e.toKeybinding().equals(new d.h$(!0,!1,!1,!1,33))||c.zx&&e.toKeybinding().equals(new d.h$(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeybinding().isModifierKey()||this.editor.focus()}))),e}))),this._overtypingCapturer=this._toDispose.add(new n.kb((()=>this._toDispose.add(new J(this.editor,this.model))))),this._alternatives=this._toDispose.add(new n.kb((()=>this._toDispose.add(new A(this.editor,this._contextKeyService))))),this._toDispose.add(s.createInstance(D,e)),this._toDispose.add(this.model.onDidTrigger((e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new Ye(this.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((e=>{if(e.shy)return;let t=-1;if(!e.noSelect){for(const i of this._selectors.itemsOrderedByPriorityDesc)if(t=i.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items),-1!==t)break;-1===t&&(t=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items))}this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.auto)}))),this._toDispose.add(this.model.onDidCancel((e=>{e.retrigger||this.widget.value.hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((()=>{this.model.cancel(),this.model.clear()})));const g=M.ob.AcceptSuggestionsOnEnter.bindTo(o),u=()=>{const e=this.editor.getOption(1);g.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((()=>u()))),u()}static get(t){return t.getContribution(e.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const i=w.SnippetController2.get(this.editor);if(!i)return;const o=this.editor.getModel(),s=o.getAlternativeVersionId(),{item:n}=e,l=[],d=new r.Q;1&t||this.editor.pushUndoStop();const h=this.getOverwriteInfo(n,Boolean(8&t));if(this._memoryService.memorize(o,this.editor.getPosition(),n),Array.isArray(n.completion.additionalTextEdits)){const e=p.D.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",n.completion.additionalTextEdits.map((e=>_.k.replaceMove(b.Q.lift(e.range),e.text)))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!n.isResolved){const e=new g.W(!0);let i;const s=o.onDidChangeContent((e=>{if(e.isFlush)return d.cancel(),void s.dispose();for(const t of e.changes){const e=b.Q.getEndPosition(t.range);i&&!f.y.isBefore(e,i)||(i=e)}})),r=t;t|=2;let a=!1;const h=this.editor.onWillType((()=>{h.dispose(),a=!0,2&r||this.editor.pushUndoStop()}));l.push(n.resolve(d.token).then((()=>{if(!n.completion.additionalTextEdits||d.token.isCancellationRequested)return!1;if(i&&n.completion.additionalTextEdits.some((e=>f.y.isBefore(i,b.Q.getStartPosition(e.range)))))return!1;a&&this.editor.pushUndoStop();const e=p.D.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",n.completion.additionalTextEdits.map((e=>_.k.replaceMove(b.Q.lift(e.range),e.text)))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!a&&2&r||this.editor.pushUndoStop(),!0})).then((t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),s.dispose(),h.dispose()})))}let{insertText:c}=n.completion;4&n.completion.insertTextRules||(c=S.fr.escape(c)),i.insert(c,{overwriteBefore:h.overwriteBefore,overwriteAfter:h.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&n.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),n.completion.command?n.completion.command.id===tt.id?this.model.trigger({auto:!0,shy:!1,noSelect:!1},!0):(l.push(this._commandService.executeCommand(n.completion.command.id,...n.completion.command.arguments?[...n.completion.command.arguments]:[]).catch(a.dz)),this.model.cancel()):this.model.cancel(),4&t&&this._alternatives.value.set(e,(e=>{for(d.cancel();o.canUndo();){s!==o.getAlternativeVersionId()&&o.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(n),Promise.all(l).finally((()=>{this._reportSuggestionAcceptedTelemetry(n,o,e),this.model.clear(),d.dispose()}))}_reportSuggestionAcceptedTelemetry(e,t,i){var o;if(this._telemetryGate++%100!==0)return;const s=e.extensionId?e.extensionId.value:(null!==(o=i.item.provider._debugDisplayName)&&void 0!==o?o:"unknown").split("(",1)[0].toLowerCase();this._telemetryService.publicLog2("suggest.acceptedSuggestion",{providerId:s,kind:e.completion.kind,basenameHash:(0,Qe.tW)((0,Ke.P8)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,Ke.LC)(t.uri)})}getOverwriteInfo(e,t){(0,u.j)(this.editor.hasModel());let i="replace"===this.editor.getOption(107).insertMode;t&&(i=!i);const o=e.position.column-e.editStart.column,s=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:o+(this.editor.getPosition().column-e.position.column),overwriteAfter:s+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){if((0,s.EI)(e.completion.additionalTextEdits)){const t=T.kg("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,o.xE)(t)}}triggerSuggest(e,t,i,o){this.editor.hasModel()&&(this.model.trigger({auto:null!==t&&void 0!==t&&t,shy:!1,noSelect:null!==o&&void 0!==o&&o},!1,e,void 0,i),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},o=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;const t=this.editor.getPosition(),i=e.editStart.column,o=t.column;if(o-i!==e.completion.insertText.length)return!0;return this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:o})!==e.completion.insertText};l.Jh.once(this.model.onDidTrigger)((e=>{const t=[];l.Jh.any(this.model.onDidTrigger,this.model.onDidCancel)((()=>{(0,h.AS)(t),i()}),void 0,t),this.model.onDidSuggest((({completionModel:e})=>{if((0,h.AS)(t),0===e.items.length)return void i();const s=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),n=e.items[s];o(n)?(this.editor.pushUndoStop(),this._insertSuggestion({index:s,item:n,model:e},7)):i()}),void 0,t)})),this.model.trigger({auto:!1,shy:!0,noSelect:!1}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let o=0;e&&(o|=4),t&&(o|=8),this._insertSuggestion(i,o)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};Xe.ID="editor.contrib.suggestController",Xe=Ze([Je(1,C.GS),Je(2,I.wT),Je(3,y.fN),Je(4,R._Y),Je(5,L.rr),Je(6,B.k)],Xe);class et{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(-1!==this._items.indexOf(e))throw new Error("Value is already registered");return this._items.push(e),this._items.sort(((e,t)=>this.prioritySelector(t)-this.prioritySelector(e))),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class tt extends m.ks{constructor(){super({id:tt.id,label:T.kg("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:y.M$.and(v.R.writable,v.R.hasCompletionItemProvider),kbOpts:{kbExpr:v.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const o=Xe.get(t);if(!o)return;let s,n;i&&"object"===typeof i&&(!0===i.auto&&(s=!0),!0===i.noSelection&&(n=!0)),o.triggerSuggest(void 0,s,void 0,n)}}tt.id="editor.action.triggerSuggest",(0,m.HW)(Xe.ID,Xe),(0,m.Fl)(tt);const it=190,ot=m.DX.bindToContribution(Xe.get);(0,m.E_)(new ot({id:"acceptSelectedSuggestion",precondition:y.M$.and(M.ob.Visible,M.ob.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:y.M$.and(M.ob.Visible,v.R.textInputFocus),weight:it},{primary:3,kbExpr:y.M$.and(M.ob.Visible,v.R.textInputFocus,M.ob.AcceptSuggestionsOnEnter,M.ob.MakesTextEdit),weight:it}],menuOpts:[{menuId:M.dt,title:T.kg("accept.insert","Insert"),group:"left",order:1,when:M.ob.HasInsertAndReplaceRange.toNegated()},{menuId:M.dt,title:T.kg("accept.insert","Insert"),group:"left",order:1,when:y.M$.and(M.ob.HasInsertAndReplaceRange,M.ob.InsertMode.isEqualTo("insert"))},{menuId:M.dt,title:T.kg("accept.replace","Replace"),group:"left",order:1,when:y.M$.and(M.ob.HasInsertAndReplaceRange,M.ob.InsertMode.isEqualTo("replace"))}]})),(0,m.E_)(new ot({id:"acceptAlternativeSelectedSuggestion",precondition:y.M$.and(M.ob.Visible,v.R.textInputFocus,M.ob.HasFocusedSuggestion),kbOpts:{weight:it,kbExpr:v.R.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:M.dt,group:"left",order:2,when:y.M$.and(M.ob.HasInsertAndReplaceRange,M.ob.InsertMode.isEqualTo("insert")),title:T.kg("accept.replace","Replace")},{menuId:M.dt,group:"left",order:2,when:y.M$.and(M.ob.HasInsertAndReplaceRange,M.ob.InsertMode.isEqualTo("replace")),title:T.kg("accept.insert","Insert")}]})),I.wb.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,m.E_)(new ot({id:"hideSuggestWidget",precondition:M.ob.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:it,kbExpr:v.R.textInputFocus,primary:9,secondary:[1033]}})),(0,m.E_)(new ot({id:"selectNextSuggestion",precondition:y.M$.and(M.ob.Visible,M.ob.MultipleSuggestions),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:it,kbExpr:v.R.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,m.E_)(new ot({id:"selectNextPageSuggestion",precondition:y.M$.and(M.ob.Visible,M.ob.MultipleSuggestions),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:it,kbExpr:v.R.textInputFocus,primary:12,secondary:[2060]}})),(0,m.E_)(new ot({id:"selectLastSuggestion",precondition:y.M$.and(M.ob.Visible,M.ob.MultipleSuggestions),handler:e=>e.selectLastSuggestion()})),(0,m.E_)(new ot({id:"selectPrevSuggestion",precondition:y.M$.and(M.ob.Visible,M.ob.MultipleSuggestions),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:it,kbExpr:v.R.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,m.E_)(new ot({id:"selectPrevPageSuggestion",precondition:y.M$.and(M.ob.Visible,M.ob.MultipleSuggestions),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:it,kbExpr:v.R.textInputFocus,primary:11,secondary:[2059]}})),(0,m.E_)(new ot({id:"selectFirstSuggestion",precondition:y.M$.and(M.ob.Visible,M.ob.MultipleSuggestions),handler:e=>e.selectFirstSuggestion()})),(0,m.E_)(new ot({id:"toggleSuggestionDetails",precondition:M.ob.Visible,handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:it,kbExpr:v.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:M.dt,group:"right",order:1,when:y.M$.and(M.ob.DetailsVisible,M.ob.CanResolve),title:T.kg("detail.more","show less")},{menuId:M.dt,group:"right",order:1,when:y.M$.and(M.ob.DetailsVisible.toNegated(),M.ob.CanResolve),title:T.kg("detail.less","show more")}]})),(0,m.E_)(new ot({id:"toggleExplainMode",precondition:M.ob.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2133}})),(0,m.E_)(new ot({id:"toggleSuggestionFocus",precondition:M.ob.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:it,kbExpr:v.R.textInputFocus,primary:2570,mac:{primary:778}}})),(0,m.E_)(new ot({id:"insertBestCompletion",precondition:y.M$.and(v.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),D.AtEnd,M.ob.Visible.toNegated(),A.OtherSuggestions.toNegated(),w.SnippetController2.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest((0,u.Gv)(t)?Object.assign({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:it,primary:2}})),(0,m.E_)(new ot({id:"insertNextSuggestion",precondition:y.M$.and(v.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),A.OtherSuggestions,M.ob.Visible.toNegated(),w.SnippetController2.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:it,kbExpr:v.R.textInputFocus,primary:2}})),(0,m.E_)(new ot({id:"insertPrevSuggestion",precondition:y.M$.and(v.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),A.OtherSuggestions,M.ob.Visible.toNegated(),w.SnippetController2.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:it,kbExpr:v.R.textInputFocus,primary:1026}})),(0,m.Fl)(class extends m.ks{constructor(){super({id:"editor.action.resetSuggestSize",label:T.kg("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){var i;null===(i=Xe.get(t))||void 0===i||i.resetWidgetSize()}})},53985:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SuggestInlineCompletions:()=>y});var o=i(99826),s=i(74790),n=i(39319),r=i(33793),a=i(95713),l=i(39946),d=i(93708),h=i(51209),c=i(39762),g=i(67920),u=i(31141),p=i(62222),m=i(6576),_=i(24071),f=i(3660),b=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},v=function(e,t){return function(i,o){t(i,o,e)}},w=function(e,t,i,o){return new(i||(i=Promise))((function(s,n){function r(e){try{l(o.next(e))}catch(t){n(t)}}function a(e){try{l(o.throw(e))}catch(t){n(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((o=o.apply(e,t||[])).next())}))};class S{constructor(e,t,i,o,s,n){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=o,this.command=s,this.completion=n}}let C=class extends r.mp{constructor(e,t,i,o,s,n){super(s.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=o,this._suggestMemoryService=n}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn<i.endColumn&&0===this.completionModel.incomplete.size}get items(){var e;const t=[],{items:i}=this.completionModel,r=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},i),a=n.f.slice(i,r),l=n.f.slice(i,0,r);let h=5;for(const g of n.f.concat(a,l)){if(g.score===s.ne.Default)continue;const i=new d.Q(g.editStart.lineNumber,g.editStart.column,g.editInsertEnd.lineNumber,g.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),n=g.completion.insertTextRules&&g.completion.insertTextRules&c._E.InsertAsSnippet?{snippet:g.completion.insertText}:g.completion.insertText;t.push(new S(i,n,null!==(e=g.filterTextLow)&&void 0!==e?e:g.labelLow,g.completion.additionalTextEdits,g.completion.command,g)),h-- >=0&&g.resolve(o.X.None)}return t}};C=b([v(5,p.GS)],C);let y=class{constructor(e,t,i,o){this._getEditorOption=e,this._languageFeatureService=t,this._clipboardService=i,this._suggestMemoryService=o}provideInlineCompletions(e,t,i,o){var s;return w(this,void 0,void 0,(function*(){if(i.selectedSuggestionInfo)return;const n=this._getEditorOption(80,e);if(u.r3.isAllOff(n))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const r=e.tokenization.getLineTokens(t.lineNumber),a=r.getStandardTokenType(r.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("inline"!==u.r3.valueFor(n,a))return;let l,h,c=e.getWordAtPosition(t);if((null===c||void 0===c?void 0:c.word)||(l=this._getTriggerCharacterInfo(e,t)),!(null===c||void 0===c?void 0:c.word)&&!l)return;if(c||(c=e.getWordUntilPosition(t)),c.endColumn!==t.column)return;const p=e.getValueInRange(new d.Q(t.lineNumber,1,t.lineNumber,t.column));if(!l&&(null===(s=this._lastResult)||void 0===s?void 0:s.canBeReused(e,t.lineNumber,c))){const e=new g.O(p,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),h=this._lastResult}else{const i=yield(0,u.aR)(this._languageFeatureService.completionProvider,e,t,new u.l1(void 0,void 0,null===l||void 0===l?void 0:l.providers),l&&{triggerKind:1,triggerCharacter:l.ch},o);let s;i.needsClipboard&&(s=yield this._clipboardService.readText());const n=new g.C(i.items,t.column,new g.O(p,0),m.S.None,this._getEditorOption(107,e),this._getEditorOption(102,e),{boostFullMatch:!1,firstMatchCanBeWeak:!1},s);h=new C(e,t.lineNumber,c,n,i,this._suggestMemoryService)}return this._lastResult=h,h}))}handleItemDidShow(e,t){t.completion.resolve(o.X.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var i;const o=e.getValueInRange(d.Q.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),s=new Set;for(const n of this._languageFeatureService.completionProvider.all(e))(null===(i=n.triggerCharacters)||void 0===i?void 0:i.includes(o))&&s.add(n);if(0!==s.size)return{providers:s,ch:o}}};y=b([v(1,h.u),v(2,_.h),v(3,p.GS)],y);let k=class e{constructor(t,i,o,s){if(1===++e._counter){const n=s.createInstance(y,((e,i)=>{var s;return(null!==(s=o.listCodeEditors().find((e=>e.getModel()===i)))&&void 0!==s?s:t).getOption(e)}));e._disposable=i.inlineCompletionsProvider.register("*",n)}}dispose(){var t;0===--e._counter&&(null===(t=e._disposable)||void 0===t||t.dispose(),e._disposable=void 0)}};k._counter=0,k=b([v(1,h.u),v(2,l.T),v(3,f._Y)],k),(0,a.HW)("suggest.inlineCompletionsProvider",k)},62222:(e,t,i)=>{"use strict";i.d(t,{GS:()=>_});var o=i(85345),s=i(33793),n=i(19459),r=i(52174),a=i(17030),l=i(22967),d=i(3660),h=i(51756),c=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},g=function(e,t){return function(i,o){t(i,o,e)}};class u{constructor(e){this.name=e}select(e,t,i){if(0===i.length)return 0;const o=i[0].score[0];for(let s=0;s<i.length;s++){const{score:e,completion:t}=i[s];if(e[0]!==o)break;if(t.preselect)return s}return 0}}class p extends u{constructor(){super("first")}memorize(e,t,i){}toJSON(){}fromJSON(){}}let m=class e{constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new s.Cm,this._persistSoon=new o.uC((()=>this._saveState()),500),this._disposables.add(e.onWillSaveState((e=>{e.reason===h.LP.SHUTDOWN&&this._saveState()})))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(t,i){var o;const s=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:t.getLanguageIdAtPosition(i.lineNumber,i.column),resource:t.uri});if((null===(o=this._strategy)||void 0===o?void 0:o.name)!==s){this._saveState();const t=e._strategyCtors.get(s)||p;this._strategy=new t;try{const t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,i=this._storageService.get(`${e._storagePrefix}/${s}`,t);i&&this._strategy.fromJSON(JSON.parse(i))}catch(n){}}return this._strategy}_saveState(){if(this._strategy){const t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,i=JSON.stringify(this._strategy);this._storageService.store(`${e._storagePrefix}/${this._strategy.name}`,i,t,1)}}};m._strategyCtors=new Map([["recentlyUsedByPrefix",class extends u{constructor(){super("recentlyUsedByPrefix"),this._trie=n.cB.forStrings(),this._seq=0}memorize(e,t,i){const{word:o}=e.getWordUntilPosition(t),s=`${e.getLanguageId()}/${o}`;this._trie.set(s,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:o}=e.getWordUntilPosition(t);if(!o)return super.select(e,t,i);const s=`${e.getLanguageId()}/${o}`;let n=this._trie.get(s);if(n||(n=this._trie.findSubstr(s)),n)for(let r=0;r<i.length;r++){const{kind:e,insertText:t}=i[r].completion;if(e===n.type&&t===n.insertText)return r}return super.select(e,t,i)}toJSON(){const e=[];return this._trie.forEach(((t,i)=>e.push([i,t]))),e.sort(((e,t)=>-(e[1].touch-t[1].touch))).forEach(((e,t)=>e[1].touch=t)),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type="number"===typeof i.type?i.type:r.HC.fromString(i.type),this._trie.set(t,i)}}}],["recentlyUsed",class extends u{constructor(){super("recentlyUsed"),this._cache=new n.qK(300,.66),this._seq=0}memorize(e,t,i){const o=`${e.getLanguageId()}/${i.textLabel}`;this._cache.set(o,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(e,t,i){if(0===i.length)return 0;const o=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(o))return super.select(e,t,i);const s=i[0].score[0];let n=-1,r=-1,a=-1;for(let l=0;l<i.length&&i[l].score[0]===s;l++){const t=`${e.getLanguageId()}/${i[l].textLabel}`,o=this._cache.peek(t);if(o&&o.touch>a&&o.type===i[l].completion.kind&&o.insertText===i[l].completion.insertText&&(a=o.touch,r=l),i[l].completion.preselect&&-1===n)return l}return-1!==r?r:-1!==n?n:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();for(const[t,i]of e)i.touch=0,i.type="number"===typeof i.type?i.type:r.HC.fromString(i.type),this._cache.set(t,i);this._seq=this._cache.size}}],["first",p]]),m._storagePrefix="suggest/memories",m=c([g(0,h.CS),g(1,a.pG)],m);const _=(0,d.u1)("ISuggestMemories");(0,l.v)(_,m,!0)},6576:(e,t,i)=>{"use strict";i.d(t,{S:()=>a});var o=i(8415),s=i(93708),n=i(2019),r=function(e,t,i,o){return new(i||(i=Promise))((function(s,n){function r(e){try{l(o.next(e))}catch(t){n(t)}}function a(e){try{l(o.throw(e))}catch(t){n(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((o=o.apply(e,t||[])).next())}))};class a{static create(e,t){return r(this,void 0,void 0,(function*(){if(!t.getOption(107).localityBonus)return a.None;if(!t.hasModel())return a.None;const i=t.getModel(),r=t.getPosition();if(!e.canComputeWordRanges(i.uri))return a.None;const[l]=yield(new n.n).provideSelectionRanges(i,[r]);if(0===l.length)return a.None;const d=yield e.computeWordRanges(i.uri,l[0].range);if(!d)return a.None;const h=i.getWordUntilPosition(r);return delete d[h.word],new class extends a{distance(e,i){if(!r.equals(t.getPosition()))return 0;if(17===i.kind)return 2<<20;const n="string"===typeof i.label?i.label:i.label.label,a=d[n];if((0,o.Ct)(a))return 2<<20;const h=(0,o.El)(a,s.Q.fromPositions(e),s.Q.compareRangesUsingStarts),c=h>=0?a[h]:a[Math.max(0,~h-1)];let g=l.length;for(const t of l){if(!s.Q.containsRange(t.range,c))break;g-=1}return g}}}))}}a.None=new class extends a{distance(){return 0}}},82145:(e,t,i)=>{"use strict";var o=i(15441),s=i(84978),n=i(64709),r=i(87357);const a=(0,n.x1A)("symbolIcon.arrayForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=(0,n.x1A)("symbolIcon.booleanForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=(0,n.x1A)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=(0,n.x1A)("symbolIcon.colorForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=(0,n.x1A)("symbolIcon.constantForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=(0,n.x1A)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=(0,n.x1A)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=(0,n.x1A)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=(0,n.x1A)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=(0,n.x1A)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=(0,n.x1A)("symbolIcon.fileForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),b=(0,n.x1A)("symbolIcon.folderForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=(0,n.x1A)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=(0,n.x1A)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),S=(0,n.x1A)("symbolIcon.keyForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=(0,n.x1A)("symbolIcon.keywordForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=(0,n.x1A)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=(0,n.x1A)("symbolIcon.moduleForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=(0,n.x1A)("symbolIcon.namespaceForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),D=(0,n.x1A)("symbolIcon.nullForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),T=(0,n.x1A)("symbolIcon.numberForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),I=(0,n.x1A)("symbolIcon.objectForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=(0,n.x1A)("symbolIcon.operatorForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=(0,n.x1A)("symbolIcon.packageForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),M=(0,n.x1A)("symbolIcon.propertyForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),N=(0,n.x1A)("symbolIcon.referenceForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=(0,n.x1A)("symbolIcon.snippetForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=(0,n.x1A)("symbolIcon.stringForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),W=(0,n.x1A)("symbolIcon.structForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=(0,n.x1A)("symbolIcon.textForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),O=(0,n.x1A)("symbolIcon.typeParameterForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),F=(0,n.x1A)("symbolIcon.unitForeground",{dark:n.CU6,light:n.CU6,hcDark:n.CU6,hcLight:n.CU6},(0,s.kg)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),H=(0,n.x1A)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));(0,r.zy)(((e,t)=>{const i=e.getColor(a);i&&t.addRule(`${o.W6.symbolArray.cssSelector} { color: ${i}; }`);const s=e.getColor(l);s&&t.addRule(`${o.W6.symbolBoolean.cssSelector} { color: ${s}; }`);const n=e.getColor(d);n&&t.addRule(`${o.W6.symbolClass.cssSelector} { color: ${n}; }`);const r=e.getColor(y);r&&t.addRule(`${o.W6.symbolMethod.cssSelector} { color: ${r}; }`);const U=e.getColor(h);U&&t.addRule(`${o.W6.symbolColor.cssSelector} { color: ${U}; }`);const z=e.getColor(c);z&&t.addRule(`${o.W6.symbolConstant.cssSelector} { color: ${z}; }`);const $=e.getColor(g);$&&t.addRule(`${o.W6.symbolConstructor.cssSelector} { color: ${$}; }`);const B=e.getColor(u);B&&t.addRule(`\n\t\t\t${o.W6.symbolValue.cssSelector},${o.W6.symbolEnum.cssSelector} { color: ${B}; }`);const j=e.getColor(p);j&&t.addRule(`${o.W6.symbolEnumMember.cssSelector} { color: ${j}; }`);const V=e.getColor(m);V&&t.addRule(`${o.W6.symbolEvent.cssSelector} { color: ${V}; }`);const q=e.getColor(_);q&&t.addRule(`${o.W6.symbolField.cssSelector} { color: ${q}; }`);const G=e.getColor(f);G&&t.addRule(`${o.W6.symbolFile.cssSelector} { color: ${G}; }`);const K=e.getColor(b);K&&t.addRule(`${o.W6.symbolFolder.cssSelector} { color: ${K}; }`);const Q=e.getColor(v);Q&&t.addRule(`${o.W6.symbolFunction.cssSelector} { color: ${Q}; }`);const Z=e.getColor(w);Z&&t.addRule(`${o.W6.symbolInterface.cssSelector} { color: ${Z}; }`);const J=e.getColor(S);J&&t.addRule(`${o.W6.symbolKey.cssSelector} { color: ${J}; }`);const Y=e.getColor(C);Y&&t.addRule(`${o.W6.symbolKeyword.cssSelector} { color: ${Y}; }`);const X=e.getColor(k);X&&t.addRule(`${o.W6.symbolModule.cssSelector} { color: ${X}; }`);const ee=e.getColor(x);ee&&t.addRule(`${o.W6.symbolNamespace.cssSelector} { color: ${ee}; }`);const te=e.getColor(D);te&&t.addRule(`${o.W6.symbolNull.cssSelector} { color: ${te}; }`);const ie=e.getColor(T);ie&&t.addRule(`${o.W6.symbolNumber.cssSelector} { color: ${ie}; }`);const oe=e.getColor(I);oe&&t.addRule(`${o.W6.symbolObject.cssSelector} { color: ${oe}; }`);const se=e.getColor(R);se&&t.addRule(`${o.W6.symbolOperator.cssSelector} { color: ${se}; }`);const ne=e.getColor(L);ne&&t.addRule(`${o.W6.symbolPackage.cssSelector} { color: ${ne}; }`);const re=e.getColor(M);re&&t.addRule(`${o.W6.symbolProperty.cssSelector} { color: ${re}; }`);const ae=e.getColor(N);ae&&t.addRule(`${o.W6.symbolReference.cssSelector} { color: ${ae}; }`);const le=e.getColor(E);le&&t.addRule(`${o.W6.symbolSnippet.cssSelector} { color: ${le}; }`);const de=e.getColor(A);de&&t.addRule(`${o.W6.symbolString.cssSelector} { color: ${de}; }`);const he=e.getColor(W);he&&t.addRule(`${o.W6.symbolStruct.cssSelector} { color: ${he}; }`);const ce=e.getColor(P);ce&&t.addRule(`${o.W6.symbolText.cssSelector} { color: ${ce}; }`);const ge=e.getColor(O);ge&&t.addRule(`${o.W6.symbolTypeParameter.cssSelector} { color: ${ge}; }`);const ue=e.getColor(F);ue&&t.addRule(`${o.W6.symbolUnit.cssSelector} { color: ${ue}; }`);const pe=e.getColor(H);pe&&t.addRule(`${o.W6.symbolVariable.cssSelector} { color: ${pe}; }`)}))},73005:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ToggleTabFocusModeAction:()=>a});var o=i(83269),s=i(55870),n=i(95713),r=i(84978);class a extends n.ks{constructor(){super({id:a.ID,label:r.kg({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})}run(e,t){const i=!s.M.getTabFocusMode();s.M.setTabFocusMode(i),i?(0,o.xE)(r.kg("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,o.xE)(r.kg("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}a.ID="editor.action.toggleTabFocusMode",(0,n.Fl)(a)},83675:(e,t,i)=>{"use strict";i.r(t);var o=i(39154),s=i(95713),n=i(84978);class r extends s.ks{constructor(){super({id:"editor.action.forceRetokenize",label:n.kg("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const s=new o.W(!0);i.tokenization.forceTokenization(i.getLineCount()),s.stop(),console.log(`tokenization took ${s.elapsed()}`)}}(0,s.Fl)(r)},84027:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DisableHighlightingInCommentsAction:()=>G,DisableHighlightingInStringsAction:()=>K,DisableHighlightingOfAmbiguousCharactersAction:()=>Q,DisableHighlightingOfInvisibleCharactersAction:()=>Z,DisableHighlightingOfNonBasicAsciiCharactersAction:()=>J,ShowExcludeOptions:()=>Y,UnicodeHighlighter:()=>H,UnicodeHighlighterHoverParticipant:()=>$,warningIcon:()=>F});var o=i(85345),s=i(15441),n=i(82183),r=i(33793),a=i(76394),l=i(22231),d=i(95713),h=i(99281),c=i(21174),g=i(69622),u=i(22371),p=i(21051),m=i(15995),_=i(90420),f=i(49345),b=i(69848),v=i(46088),w=i(25442),S=i(7965),C=i(3660),y=i(10096),k=i(13587),x=i(87357),D=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},T=function(e,t){return function(i,o){t(i,o,e)}};let I=class extends r.jG{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(R))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show(Object.assign(Object.assign({},e),{onClose:()=>{var t;this.hide(),null===(t=e.onClose)||void 0===t||t.call(e)}})),this._editor.setBanner(this.banner.element,26)}};I=D([T(1,C._Y)],I);let R=class extends r.jG{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(S.T,{}),this.element=(0,b.$)("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){return e.ariaLabel?e.ariaLabel:"string"===typeof e.message?e.message:void 0}getBannerMessage(e){if("string"===typeof e){const t=(0,b.$)("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){(0,b.w_)(this.element)}show(e){(0,b.w_)(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=(0,b.BC)(this.element,(0,b.$)("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild((0,b.$)(`div${x.L0.asCSSSelector(e.icon)}`));const o=(0,b.BC)(this.element,(0,b.$)("div.message-container"));if(o.setAttribute("aria-hidden","true"),o.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=(0,b.BC)(this.element,(0,b.$)("div.message-actions-container")),e.actions)for(const n of e.actions)this._register(this.instantiationService.createInstance(y.N,this.messageActionsContainer,Object.assign(Object.assign({},n),{tabIndex:-1}),{}));const s=(0,b.BC)(this.element,(0,b.$)("div.action-container"));this.actionBar=this._register(new v.E(s)),this.actionBar.push(this._register(new w.rc("banner.close","Close Banner",x.L0.asClassName(k.$_),!0,(()=>{"function"===typeof e.onClose&&e.onClose()}))),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};R=D([T(0,C._Y)],R);var L=i(84978),M=i(17030),N=i(49172),E=i(956),A=i(42856),W=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},P=function(e,t){return function(i,o){t(i,o,e)}},O=function(e,t,i,o){return new(i||(i=Promise))((function(s,n){function r(e){try{l(o.next(e))}catch(t){n(t)}}function a(e){try{l(o.throw(e))}catch(t){n(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((o=o.apply(e,t||[])).next())}))};const F=(0,k.pU)("extensions-warning-message",s.W6.warning,L.kg("warningIcon","Icon shown with a warning message in the extensions editor."));let H=class extends r.jG{constructor(e,t,i,o){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){if(this._bannerClosed)return;const t=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);let i;if(e.nonBasicAsciiCharacterCount>=t)i={message:L.kg("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new J};else if(e.ambiguousCharacterCount>=t)i={message:L.kg("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new Q};else{if(!(e.invisibleCharacterCount>=t))throw new Error("Unreachable");i={message:L.kg("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new Z}}this._bannerController.show({id:"unicodeHighlightBanner",message:i.message,icon:F,actions:[{label:i.command.shortLabel,href:`command:${i.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(o.createInstance(I,e)),this._register(this._editor.onDidChangeModel((()=>{this._bannerClosed=!1,this._updateHighlighter()}))),this._options=e.getOption(114),this._register(i.onDidChangeTrust((e=>{this._updateHighlighter()}))),this._register(e.onDidChangeConfiguration((t=>{t.hasChanged(114)&&(this._options=e.getOption(114),this._updateHighlighter())}))),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=function(e,t){return{nonBasicASCII:t.nonBasicASCII===h.XR?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===h.XR?!e:t.includeComments,includeStrings:t.includeStrings===h.XR?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every((e=>!1===e)))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map((e=>e.codePointAt(0))),allowedLocales:Object.keys(e.allowedLocales).map((e=>{if("_os"===e){return(new Intl.NumberFormat).resolvedOptions().locale}return"_vscode"===e?a.BH:e}))};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new U(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new z(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};H.ID="editor.contrib.unicodeHighlighter",H=W([P(1,u.w),P(2,A.L),P(3,C._Y)],H);let U=class extends r.jG{constructor(e,t,i,s){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=s,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new o.uC((()=>this._update()),250)),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then((t=>{if(this._model.isDisposed())return;if(this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const e of t.ranges)i.push({range:e,options:q.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)}))}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!(0,m.GN)(t,e))return null;return{reason:V(t.getValueInRange(e.range),this._options),inComment:(0,m.a6)(t,e),inString:(0,m.wc)(t,e)}}};U=W([P(3,u.w)],U);class z extends r.jG{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new o.uC((()=>this._update()),250)),this._register(this._editor.onDidLayoutChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidScrollChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeHiddenAreas((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const o of e){const e=g.P.computeUnicodeHighlights(this._model,this._options,o);for(const t of e.ranges)i.ranges.push(t);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||e.hasMore}if(!i.hasMore)for(const o of i.ranges)t.push({range:o,options:q.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return(0,m.GN)(t,e)?{reason:V(i,this._options),inComment:(0,m.a6)(t,e),inString:(0,m.wc)(t,e)}:null}}let $=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=4}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),o=this._editor.getContribution(H.ID);if(!o)return[];const s=[];let r=300;for(const a of t){const e=o.getDecorationInfo(a);if(!e)continue;const t=i.getValueInRange(a.range).codePointAt(0),l=j(t);let d;switch(e.reason.kind){case 0:d=L.kg("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",l,j(e.reason.confusableWith.codePointAt(0)));break;case 1:d=L.kg("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",l);break;case 2:d=L.kg("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",l)}const h={codePoint:t,reason:e.reason,inComment:e.inComment,inString:e.inString},c=L.kg("unicodeHighlight.adjustSettings","Adjust settings"),g=`command:${Y.ID}?${encodeURIComponent(JSON.stringify(h))}`,u=new n.Bc("",!0).appendMarkdown(d).appendText(" ").appendLink(g,c);s.push(new f.eH(this,a.range,[u],r++))}return s}renderHoverParts(e,t){return(0,f.fm)(e,t,this._editor,this._languageService,this._openerService)}};function B(e){return`U+${e.toString(16).padStart(4,"0")}`}function j(e){let t=`\`${B(e)}\``;return l.y_.isInvisibleCharacter(e)||(t+=` "${function(e){if(96===e)return"`` ` ``";return"`"+String.fromCodePoint(e)+"`"}(e)}"`),t}function V(e,t){return g.P.computeUnicodeHighlightReason(e,t)}$=W([P(1,p.L),P(2,N.Cr)],$);class q{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let o=this.map.get(i);return o||(o=c.kI.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,o)),o}}q.instance=new q;class G extends d.ks{constructor(){super({id:Q.ID,label:L.kg("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=L.kg("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}run(e,t,i){return O(this,void 0,void 0,(function*(){const t=null===e||void 0===e?void 0:e.get(M.pG);t&&this.runAction(t)}))}runAction(e){return O(this,void 0,void 0,(function*(){yield e.updateValue(h.Of.includeComments,!1,1)}))}}class K extends d.ks{constructor(){super({id:Q.ID,label:L.kg("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=L.kg("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}run(e,t,i){return O(this,void 0,void 0,(function*(){const t=null===e||void 0===e?void 0:e.get(M.pG);t&&this.runAction(t)}))}runAction(e){return O(this,void 0,void 0,(function*(){yield e.updateValue(h.Of.includeStrings,!1,1)}))}}class Q extends d.ks{constructor(){super({id:Q.ID,label:L.kg("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=L.kg("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}run(e,t,i){return O(this,void 0,void 0,(function*(){const t=null===e||void 0===e?void 0:e.get(M.pG);t&&this.runAction(t)}))}runAction(e){return O(this,void 0,void 0,(function*(){yield e.updateValue(h.Of.ambiguousCharacters,!1,1)}))}}Q.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class Z extends d.ks{constructor(){super({id:Z.ID,label:L.kg("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=L.kg("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}run(e,t,i){return O(this,void 0,void 0,(function*(){const t=null===e||void 0===e?void 0:e.get(M.pG);t&&this.runAction(t)}))}runAction(e){return O(this,void 0,void 0,(function*(){yield e.updateValue(h.Of.invisibleCharacters,!1,1)}))}}Z.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class J extends d.ks{constructor(){super({id:J.ID,label:L.kg("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=L.kg("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}run(e,t,i){return O(this,void 0,void 0,(function*(){const t=null===e||void 0===e?void 0:e.get(M.pG);t&&this.runAction(t)}))}runAction(e){return O(this,void 0,void 0,(function*(){yield e.updateValue(h.Of.nonBasicASCII,!1,1)}))}}J.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class Y extends d.ks{constructor(){super({id:Y.ID,label:L.kg("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}run(e,t,i){return O(this,void 0,void 0,(function*(){const{codePoint:t,reason:o,inString:s,inComment:n}=i,r=String.fromCodePoint(t),a=e.get(E.GK),d=e.get(M.pG);const c=[];if(0===o.kind)for(const e of o.notAmbiguousInLocales)c.push({label:L.kg("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',e),run:()=>O(this,void 0,void 0,(function*(){X(d,[e])}))});if(c.push({label:function(e){return l.y_.isInvisibleCharacter(e)?L.kg("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",B(e)):L.kg("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${B(e)} "${r}"`)}(t),run:()=>function(e,t){return O(this,void 0,void 0,(function*(){const i=e.getValue(h.Of.allowedCharacters);let o;o="object"===typeof i&&i?i:{};for(const e of t)o[String.fromCodePoint(e)]=!0;yield e.updateValue(h.Of.allowedCharacters,o,1)}))}(d,[t])}),n){const e=new G;c.push({label:e.label,run:()=>O(this,void 0,void 0,(function*(){return e.runAction(d)}))})}else if(s){const e=new K;c.push({label:e.label,run:()=>O(this,void 0,void 0,(function*(){return e.runAction(d)}))})}if(0===o.kind){const e=new Q;c.push({label:e.label,run:()=>O(this,void 0,void 0,(function*(){return e.runAction(d)}))})}else if(1===o.kind){const e=new Z;c.push({label:e.label,run:()=>O(this,void 0,void 0,(function*(){return e.runAction(d)}))})}else if(2===o.kind){const e=new J;c.push({label:e.label,run:()=>O(this,void 0,void 0,(function*(){return e.runAction(d)}))})}else!function(e){throw new Error(`Unexpected value: ${e}`)}(o);const g=yield a.pick(c,{title:L.kg("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options")});g&&(yield g.run())}))}}function X(e,t){var i;return O(this,void 0,void 0,(function*(){const o=null===(i=e.inspect(h.Of.allowedLocales).user)||void 0===i?void 0:i.value;let s;s="object"===typeof o&&o?Object.assign({},o):{};for(const e of t)s[e]=!0;yield e.updateValue(h.Of.allowedLocales,s,1)}))}Y.ID="editor.action.unicodeHighlight.showExcludeOptions",(0,d.Fl)(Q),(0,d.Fl)(Z),(0,d.Fl)(J),(0,d.Fl)(Y),(0,d.HW)(H.ID,H),_.B2.register($)},12799:(e,t,i)=>{"use strict";i.r(t),i.d(t,{UnusualLineTerminatorsDetector:()=>u});var o=i(33793),s=i(68040),n=i(95713),r=i(39946),a=i(84978),l=i(3780),d=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},h=function(e,t){return function(i,o){t(i,o,e)}},c=function(e,t,i,o){return new(i||(i=Promise))((function(s,n){function r(e){try{l(o.next(e))}catch(t){n(t)}}function a(e){try{l(o.throw(e))}catch(t){n(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((o=o.apply(e,t||[])).next())}))};const g="ignoreUnusualLineTerminators";let u=class extends o.jG{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._config=this._editor.getOption(115),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(115)&&(this._config=this._editor.getOption(115),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()})))}_checkForUnusualLineTerminators(){return c(this,void 0,void 0,(function*(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,g)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(82))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());(yield this._dialogService.confirm({title:a.kg("unusualLineTerminators.title","Unusual Line Terminators"),message:a.kg("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.kg("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,s.P8)(e.uri)),primaryButton:a.kg("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:a.kg("unusualLineTerminators.ignore","Ignore")})).confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,i){e.setModelProperty(t.uri,g,i)}(this._codeEditorService,e,!0)}))}};u.ID="editor.contrib.unusualLineTerminatorsDetector",u=d([h(1,l.X),h(2,r.T)],u),(0,n.HW)(u.ID,u)},12721:(e,t,i)=>{"use strict";i.r(t);var o=i(85345),s=i(33793),n=i(95713),r=i(42605),a=i(61883),l=i(15316),d=i(90439),h=i(17030),c=i(87357),g=i(56345),u=i(39154),p=i(51209),m=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,o){t(i,o,e)}};let f=class extends s.jG{constructor(e,t,i,s,n,r){super(),this._modelService=t,this._themeService=i,this._configurationService=s,this._editor=e,this._provider=r.documentRangeSemanticTokensProvider,this._debounceInformation=n.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new o.uC((()=>this._tokenizeViewportNow()),100)),this._outstandingRequests=[];const a=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange((()=>{a()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),a()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),a()}))),this._register(this._provider.onDidChange((()=>{this._cancelAll(),a()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(l.r8)&&(this._cancelAll(),a())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),a()})))}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;t<i;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const e=this._editor.getModel();if(e.tokenization.hasCompleteSemanticTokens())return;if(!(0,l.rT)(e,this._themeService,this._configurationService))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));if(!(0,r.WG)(this._provider,e))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));const t=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(t.map((t=>this._requestRange(e,t))))}_requestRange(e,t){const i=e.getVersionId(),s=(0,o.SS)((i=>Promise.resolve((0,r.nZ)(this._provider,e,t,i)))),n=new u.W(!1);return s.then((o=>{if(this._debounceInformation.update(e,n.elapsed()),!o||!o.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:s,tokens:r}=o,a=this._modelService.getSemanticTokensProviderStyling(s);e.tokenization.setPartialSemanticTokens(t,(0,d.b)(r,a,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(s)),(()=>this._removeOutstandingRequest(s))),s}};f.ID="editor.contrib.viewportSemanticTokens",f=m([_(1,a.S),_(2,c.Gy),_(3,h.pG),_(4,g.U),_(5,p.u)],f),(0,n.HW)(f.ID,f)},38429:(e,t,i)=>{"use strict";i.r(t),i.d(t,{getOccurrencesAtPosition:()=>L});var o=i(83269),s=i(8415),n=i(85345),r=i(99826),a=i(79734),l=i(33793),d=i(95713),h=i(93708),c=i(35725),g=i(1528),u=i(21174),p=i(52174),m=i(84978),_=i(75664),f=i(64709),b=i(87357),v=i(51209),w=i(80708),S=function(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,o){t(i,o,e)}};const y=(0,f.x1A)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},m.kg("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),k=(0,f.x1A)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},m.kg("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),x=(0,f.x1A)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:f.buw,hcLight:f.buw},m.kg("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),D=(0,f.x1A)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:f.buw,hcLight:f.buw},m.kg("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),T=(0,f.x1A)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},m.kg("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),I=(0,f.x1A)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},m.kg("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),R=new _.N1("hasWordHighlights",!1);function L(e,t,i,o){const r=e.ordered(t);return(0,n.$1)(r.map((e=>()=>Promise.resolve(e.provideDocumentHighlights(t,i,o)).then(void 0,a.M_))),s.EI)}class M{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=(0,n.SS)((e=>this._compute(this._model,this._selection,this._wordSeparators,e)))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new h.Q(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const o=t.startLineNumber,s=t.startColumn,n=t.endColumn,r=this._getCurrentWordRange(e,t);let a=Boolean(this._wordRange&&this._wordRange.equalsRange(r));for(let l=0,d=i.length;!a&&l<d;l++){const e=i.getRange(l);e&&e.startLineNumber===o&&e.startColumn<=s&&e.endColumn>=n&&(a=!0)}return a}cancel(){this.result.cancel()}}class N extends M{constructor(e,t,i,o){super(e,t,i),this._providers=o}_compute(e,t,i,o){return L(this._providers,e,t.getPosition(),o).then((e=>e||[]))}}class E extends M{constructor(e,t,i){super(e,t,i),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,i,o){return(0,n.wR)(250,o).then((()=>{if(!t.isEmpty())return[];const o=e.getWordAtPosition(t.getPosition());if(!o||o.word.length>1e3)return[];return e.findMatches(o.word,!0,!1,!0,i,!1).map((e=>({range:e.range,kind:p.Kb.Text})))}))}isValid(e,t,i){const o=t.isEmpty();return this._selectionIsEmpty===o&&super.isValid(e,t,i)}}(0,d.ke)("_executeDocumentHighlights",((e,t,i)=>L(e.get(v.u).documentHighlightProvider,t,i,r.X.None)));class A{constructor(e,t,i){this.toUnhook=new l.Cm,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this._hasWordHighlights=R.bindTo(i),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(73),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((e=>{this._ignorePositionChangeEvent||this.occurrencesHighlight&&this._onPositionChanged(e)}))),this.toUnhook.add(e.onDidChangeModelContent((e=>{this._stopAll()}))),this.toUnhook.add(e.onDidChangeConfiguration((e=>{const t=this.editor.getOption(73);this.occurrencesHighlight!==t&&(this.occurrencesHighlight=t,this._stopAll())}))),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this.decorations.length>0}restore(){this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(h.Q.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),t=(e.findIndex((e=>e.containsPosition(this.editor.getPosition())))+1)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const s=this._getWord();if(s){const n=this.editor.getModel().getLineContent(i.startLineNumber);(0,o.xE)(`${n}, ${t+1} of ${e.length} for '${s.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),t=(e.findIndex((e=>e.containsPosition(this.editor.getPosition())))-1+e.length)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const s=this._getWord();if(s){const n=this.editor.getModel().getLineContent(i.startLineNumber);(0,o.xE)(`${n}, ${t+1} of ${e.length} for '${s.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){this.occurrencesHighlight&&3===e.reason?this._run():this._stopAll()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:i})}_run(){const e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber)return void this._stopAll();const t=e.startColumn,i=e.endColumn,o=this._getWord();if(!o||o.startColumn>t||o.endColumn<i)return void this._stopAll();const s=this.workerRequest&&this.workerRequest.isValid(this.model,e,this.decorations);if(this.lastCursorPositionChangeTime=(new Date).getTime(),s)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();const e=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=(n=this.providers,r=this.model,l=this.editor.getSelection(),d=this.editor.getOption(118),n.has(r)?new N(r,l,d,n):new E(r,l,d)),this.workerRequest.result.then((t=>{e===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=t||[],this._beginRenderDecorations())}),a.dz)}var n,r,l,d}_beginRenderDecorations(){const e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((()=>{this.renderDecorations()}),t-e)}renderDecorations(){this.renderDecorationsTimer=-1;const e=[];for(const t of this.workerRequestValue)t.range&&e.push({range:t.range,options:A._getDecorationOptions(t.kind)});this.decorations.set(e),this._hasWordHighlights.set(this.hasDecorations())}static _getDecorationOptions(e){return e===p.Kb.Write?this._WRITE_OPTIONS:e===p.Kb.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS}dispose(){this._stopAll(),this.toUnhook.dispose()}}A._WRITE_OPTIONS=u.kI.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,b.Yf)(I),position:g.A5.Center},minimap:{color:(0,b.Yf)(f.Xp1),position:g.R3.Inline}}),A._TEXT_OPTIONS=u.kI.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,b.Yf)(f.z5H),position:g.A5.Center},minimap:{color:(0,b.Yf)(f.Xp1),position:g.R3.Inline}}),A._REGULAR_OPTIONS=u.kI.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,b.Yf)(T),position:g.A5.Center},minimap:{color:(0,b.Yf)(f.Xp1),position:g.R3.Inline}});let W=class e extends l.jG{constructor(e,t,i){super(),this.wordHighlighter=null;const o=()=>{e.hasModel()&&(this.wordHighlighter=new A(e,i.documentHighlightProvider,t))};this._register(e.onDidChangeModel((e=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),o()}))),o()}static get(t){return t.getContribution(e.ID)}saveViewState(){return!(!this.wordHighlighter||!this.wordHighlighter.hasDecorations())}moveNext(){this.wordHighlighter&&this.wordHighlighter.moveNext()}moveBack(){this.wordHighlighter&&this.wordHighlighter.moveBack()}restoreViewState(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};W.ID="editor.contrib.wordHighlighter",W=S([C(1,_.fN),C(2,v.u)],W);class P extends d.ks{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=W.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}class O extends d.ks{constructor(){super({id:"editor.action.wordHighlight.trigger",label:m.kg("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:R.toNegated(),kbOpts:{kbExpr:c.R.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const o=W.get(t);o&&o.restoreViewState(!0)}}(0,d.HW)(W.ID,W),(0,d.Fl)(class extends P{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:m.kg("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:R,kbOpts:{kbExpr:c.R.editorTextFocus,primary:65,weight:100}})}}),(0,d.Fl)(class extends P{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:m.kg("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:R,kbOpts:{kbExpr:c.R.editorTextFocus,primary:1089,weight:100}})}}),(0,d.Fl)(O),(0,b.zy)(((e,t)=>{const i=e.getColor(f.QwA);i&&(t.addRule(`.monaco-editor .focused .selectionHighlight { background-color: ${i}; }`),t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`));const o=e.getColor(y);o&&t.addRule(`.monaco-editor .wordHighlight { background-color: ${o}; }`);const s=e.getColor(k);s&&t.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${s}; }`);const n=e.getColor(f.CMg);n&&t.addRule(`.monaco-editor .selectionHighlight { border: 1px ${(0,w.Bb)(e.type)?"dotted":"solid"} ${n}; box-sizing: border-box; }`);const r=e.getColor(x);r&&t.addRule(`.monaco-editor .wordHighlight { border: 1px ${(0,w.Bb)(e.type)?"dashed":"solid"} ${r}; box-sizing: border-box; }`);const a=e.getColor(D);a&&t.addRule(`.monaco-editor .wordHighlightStrong { border: 1px ${(0,w.Bb)(e.type)?"dashed":"solid"} ${a}; box-sizing: border-box; }`)}))},93153:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CursorWordAccessibilityLeft:()=>T,CursorWordAccessibilityLeftSelect:()=>I,CursorWordAccessibilityRight:()=>W,CursorWordAccessibilityRightSelect:()=>P,CursorWordEndLeft:()=>C,CursorWordEndLeftSelect:()=>x,CursorWordEndRight:()=>L,CursorWordEndRightSelect:()=>E,CursorWordLeft:()=>y,CursorWordLeftSelect:()=>D,CursorWordRight:()=>M,CursorWordRightSelect:()=>A,CursorWordStartLeft:()=>S,CursorWordStartLeftSelect:()=>k,CursorWordStartRight:()=>R,CursorWordStartRightSelect:()=>N,DeleteInsideWord:()=>q,DeleteWordCommand:()=>O,DeleteWordEndLeft:()=>z,DeleteWordEndRight:()=>j,DeleteWordLeft:()=>$,DeleteWordLeftCommand:()=>F,DeleteWordRight:()=>V,DeleteWordRightCommand:()=>H,DeleteWordStartLeft:()=>U,DeleteWordStartRight:()=>B,MoveWordCommand:()=>b,WordLeftCommand:()=>v,WordRightCommand:()=>w});var o=i(95713),s=i(51251),n=i(99281),r=i(22766),a=i(53686),l=i(9119),d=i(63102),h=i(93708),c=i(4707),g=i(35725),u=i(7117),p=i(84978),m=i(84142),_=i(75664),f=i(51407);class b extends o.DX{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const o=(0,l.i)(t.getOption(118)),s=t.getModel(),n=t.getSelections().map((e=>{const t=new d.y(e.positionLineNumber,e.positionColumn),i=this._move(o,s,t,this._wordNavigationType);return this._moveTo(e,i,this._inSelectionMode)}));if(s.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,n.map((e=>r.MF.fromModelSelection(e)))),1===n.length){const e=new d.y(n[0].positionLineNumber,n[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,i){return i?new c.L(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new c.L(t.lineNumber,t.column,t.lineNumber,t.column)}}class v extends b{_move(e,t,i,o){return a.z.moveWordLeft(e,t,i,o)}}class w extends b{_move(e,t,i,o){return a.z.moveWordRight(e,t,i,o)}}class S extends v{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class C extends v{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class y extends v{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:_.M$.and(g.R.textInputFocus,null===(e=_.M$.and(m.f,f.nd))||void 0===e?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}class k extends v{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class x extends v{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class D extends v{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:_.M$.and(g.R.textInputFocus,null===(e=_.M$.and(m.f,f.nd))||void 0===e?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class T extends v{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,o){return super._move((0,l.i)(n.qB.wordSeparators.defaultValue),t,i,o)}}class I extends v{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,o){return super._move((0,l.i)(n.qB.wordSeparators.defaultValue),t,i,o)}}class R extends w{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class L extends w{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:_.M$.and(g.R.textInputFocus,null===(e=_.M$.and(m.f,f.nd))||void 0===e?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}class M extends w{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class N extends w{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class E extends w{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:_.M$.and(g.R.textInputFocus,null===(e=_.M$.and(m.f,f.nd))||void 0===e?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class A extends w{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class W extends w{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,o){return super._move((0,l.i)(n.qB.wordSeparators.defaultValue),t,i,o)}}class P extends w{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,o){return super._move((0,l.i)(n.qB.wordSeparators.defaultValue),t,i,o)}}class O extends o.DX{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const o=e.get(u.JZ);if(!t.hasModel())return;const n=(0,l.i)(t.getOption(118)),r=t.getModel(),a=t.getSelections(),d=t.getOption(5),h=t.getOption(8),c=o.getLanguageConfiguration(r.getLanguageId()).getAutoClosingPairs(),g=t._getViewModel(),p=a.map((e=>{const i=this._delete({wordSeparators:n,model:r,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(6),autoClosingBrackets:d,autoClosingQuotes:h,autoClosingPairs:c,autoClosedCharacters:g.getCursorAutoClosedCharacters()},this._wordNavigationType);return new s.iu(i,"")}));t.pushUndoStop(),t.executeCommands(this.id,p),t.pushUndoStop()}}class F extends O{_delete(e,t){const i=a.z.deleteWordLeft(e,t);return i||new h.Q(1,1,1,1)}}class H extends O{_delete(e,t){const i=a.z.deleteWordRight(e,t);if(i)return i;const o=e.model.getLineCount(),s=e.model.getLineMaxColumn(o);return new h.Q(o,s,o,s)}}class U extends F{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:g.R.writable})}}class z extends F{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:g.R.writable})}}class $ extends F{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:g.R.writable,kbOpts:{kbExpr:g.R.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class B extends H{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:g.R.writable})}}class j extends H{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:g.R.writable})}}class V extends H{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:g.R.writable,kbOpts:{kbExpr:g.R.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class q extends o.ks{constructor(){super({id:"deleteInsideWord",precondition:g.R.writable,label:p.kg("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const o=(0,l.i)(t.getOption(118)),n=t.getModel(),r=t.getSelections().map((e=>{const t=a.z.deleteInsideWord(o,n,e);return new s.iu(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}(0,o.E_)(new S),(0,o.E_)(new C),(0,o.E_)(new y),(0,o.E_)(new k),(0,o.E_)(new x),(0,o.E_)(new D),(0,o.E_)(new R),(0,o.E_)(new L),(0,o.E_)(new M),(0,o.E_)(new N),(0,o.E_)(new E),(0,o.E_)(new A),(0,o.E_)(new T),(0,o.E_)(new I),(0,o.E_)(new W),(0,o.E_)(new P),(0,o.E_)(new U),(0,o.E_)(new z),(0,o.E_)(new $),(0,o.E_)(new B),(0,o.E_)(new j),(0,o.E_)(new V),(0,o.Fl)(q)},56231:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CursorWordPartLeft:()=>g,CursorWordPartLeftSelect:()=>u,CursorWordPartRight:()=>m,CursorWordPartRightSelect:()=>_,DeleteWordPartLeft:()=>d,DeleteWordPartRight:()=>h,WordPartLeftCommand:()=>c,WordPartRightCommand:()=>p});var o=i(95713),s=i(53686),n=i(93708),r=i(35725),a=i(93153),l=i(93308);class d extends a.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:r.R.writable,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=s.c.deleteWordPartLeft(e);return i||new n.Q(1,1,1,1)}}class h extends a.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:r.R.writable,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=s.c.deleteWordPartRight(e);if(i)return i;const o=e.model.getLineCount(),r=e.model.getLineMaxColumn(o);return new n.Q(o,r,o,r)}}class c extends a.MoveWordCommand{_move(e,t,i,o){return s.c.moveWordPartLeft(e,t,i)}}class g extends c{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}l.wb.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class u extends c{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}l.wb.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class p extends a.MoveWordCommand{_move(e,t,i,o){return s.c.moveWordPartRight(e,t,i)}}class m extends p{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class _ extends p{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}(0,o.E_)(new d),(0,o.E_)(new h),(0,o.E_)(new g),(0,o.E_)(new u),(0,o.E_)(new m),(0,o.E_)(new _)},50267:(e,t,i)=>{"use strict";i.d(t,{Pg:()=>_});var o=i(69848),s=i(29193),n=i(59638),r=i(72435),a=i(33793),l=i(65321),d=i(93708),h=i(21174);const c=new n.Q1(new n.bU(0,122,204)),g={showArrow:!0,showFrame:!0,className:"",frameColor:c,arrowColor:c,keepEditorSelection:!1};class u{constructor(e,t,i,o,s,n){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=o,this._onDomNodeTop=s,this._onComputedHeight=n}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class p{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class m{constructor(e){this._editor=e,this._ruleName=m._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),o.U2(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){o.U2(this._ruleName),o.Wt(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){1===e.column&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:d.Q.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}m._IdGenerator=new r.n(".arrow-decoration-");class _{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new a.Cm,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=l.Go(t),l.co(this.options,g,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)})))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null})),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new m(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){if(this.domNode.style.height=`${e}px`,this.container){const t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}this._resizeSash&&this._resizeSash.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=d.Q.isIRange(e)?d.Q.lift(e):d.Q.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:h.kI.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()}_decoratingElementsHeight(){const e=this.editor.getOption(60);let t=0;if(this.options.showArrow){t+=2*Math.round(e/3)}if(this.options.showFrame){t+=2*Math.round(e/9)}return t}_showImpl(e,t){const i=e.getStartPosition(),o=this.editor.getLayoutInfo(),s=this._getWidth(o);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(o)+"px";const n=document.createElement("div");n.style.overflow="hidden";const r=this.editor.getOption(60),a=Math.max(12,this.editor.getLayoutInfo().height/r*.8);t=Math.min(t,a);let l=0,d=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(r/3),this._arrow.height=l,this._arrow.show(i)),this.options.showFrame&&(d=Math.round(r/9)),this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new u(n,i.lineNumber,i.column,t,(e=>this._onViewZoneTop(e)),(e=>this._onViewZoneHeight(e))),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new p("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)})),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:d;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}const h=t*r-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,s),this.options.keepEditorSelection||this.editor.setSelection(e);const c=this.editor.getModel();if(c){const t=e.endLineNumber+1;t<=c.getLineCount()?this.revealLine(t,!1):this.revealLine(c.getLineCount(),!0)}}revealLine(e,t){t?this.editor.revealLineInCenter(e,0):this.editor.revealLine(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))}))}_initSash(){if(this._resizeSash)return;let e;this._resizeSash=this._disposables.add(new s.m(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((()=>{e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(60),o=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+o;s>5&&s<35&&this._relayout(s)}})))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}},6295:(e,t,i)=>{var o;self.emailmakerMonacoEnvironment=(o={editorWorkerService:"editor.worker.js",html:"html.worker.js",css:"css.worker.js",typescript:"ts.worker.js",json:"json.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var s=i.p,n=(s?s.replace(/\/$/,"")+"/":"")+o[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(n)){var r=String(window.location),a=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(n.substring(0,a.length)!==a){/^(\/\/)/.test(n)&&(n=window.location.protocol+n);var l=new Blob(["/*"+t+'*/importScripts("'+n+'");'],{type:"application/javascript"});return URL.createObjectURL(l)}}return n}}),i(68251),i(65648),i(24408),i(63415),i(17122),i(51847),i(8269),i(23092),i(76403),i(24162),i(74979),i(7353),i(52307),i(78737),i(62129),i(46217),i(64539),i(89331),i(92617),i(6393),i(88092),i(2525),i(21109),i(44238),i(58811),i(71823),i(74028),i(7499),i(92793),i(56033),i(13481),i(23777),i(59473),i(63841),i(13529),i(47167),i(22937),i(80030),i(10156),i(94951),i(39455),i(28902),i(53744),i(42579),i(53607),i(14555),i(53985),i(901),i(73005),i(83675),i(84027),i(12799),i(12721),i(38429),i(93153),i(56231),e.exports=i(10022),i(14757),i(58185),i(46037),i(14405),i(25401),i(14757),i(58185),i(4981),i(71075),i(91426)},60382:(e,t,i)=>{var o;self.emailmakerMonacoEnvironment=(o={editorWorkerService:"editor.worker.js",html:"html.worker.js",css:"css.worker.js",typescript:"ts.worker.js",json:"json.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var s=i.p,n=(s?s.replace(/\/$/,"")+"/":"")+o[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(n)){var r=String(window.location),a=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(n.substring(0,a.length)!==a){/^(\/\/)/.test(n)&&(n=window.location.protocol+n);var l=new Blob(["/*"+t+'*/importScripts("'+n+'");'],{type:"application/javascript"});return URL.createObjectURL(l)}}return n}}),i(68251),i(65648),i(24408),i(63415),i(17122),i(51847),i(8269),i(23092),i(76403),i(24162),i(74979),i(7353),i(52307),i(78737),i(62129),i(46217),i(64539),i(89331),i(92617),i(6393),i(88092),i(2525),i(21109),i(44238),i(58811),i(71823),i(74028),i(7499),i(92793),i(56033),i(13481),i(23777),i(59473),i(63841),i(13529),i(47167),i(22937),i(80030),i(10156),i(94951),i(39455),i(28902),i(53744),i(42579),i(53607),i(14555),i(53985),i(901),i(73005),i(83675),i(84027),i(12799),i(12721),i(38429),i(93153),i(56231),e.exports=i(61917),i(14757),i(58185),i(46037),i(14405),i(25401),i(14757),i(58185),i(4981),i(71075),i(91426)}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 9009.3a3823fe.chunk.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9009],{59009:(e,o,t)=>{t.r(o),t.d(o,{conf:()=>n,language:()=>i});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},i={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@GKInspectable","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet","@IBSegueAction","@NSApplicationMain","@NSCopying","@NSManaged","@Sendable","@UIApplicationMain","@autoclosure","@actorIndependent","@asyncHandler","@available","@convention","@derivative","@differentiable","@discardableResult","@dynamicCallable","@dynamicMemberLookup","@escaping","@frozen","@globalActor","@inlinable","@inline","@main","@noDerivative","@nonobjc","@noreturn","@objc","@objcMembers","@preconcurrency","@propertyWrapper","@requires_stored_property_inits","@resultBuilder","@testable","@unchecked","@unknown","@usableFromInline","@warn_unqualified_access"],accessmodifiers:["open","public","internal","fileprivate","private"],keywords:["#available","#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning","Any","Protocol","Self","Type","actor","as","assignment","associatedtype","associativity","async","await","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","false","fileprivate","final","for","func","get","guard","higherThan","if","import","in","indirect","infix","init","inout","internal","is","isolated","lazy","left","let","lowerThan","mutating","nil","none","nonisolated","nonmutating","open","operator","optional","override","postfix","precedence","precedencegroup","prefix","private","protocol","public","repeat","required","rethrows","return","right","safe","self","set","some","static","struct","subscript","super","switch","throw","throws","true","try","typealias","unowned","unsafe","var","weak","where","while","willSet","__consuming","__owned"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],whitespace:[[/\s+/,"white"],[/"""/,"string.quote","@endDblDocString"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string.quote","@popall"],[/"/,"string"]],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/@@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}}}}]);
@@ -0,0 +1,10 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.34.0(dee69564fa27426c7ebb706c3d2ed3d1acccedfe)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/
7
+
8
+ /*!---------------------------------------------------------------------------------------------
9
+ * Copyright (C) David Owens II, owensd.io. All rights reserved.
10
+ *--------------------------------------------------------------------------------------------*/