diff --git a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/asset-manifest.json b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/asset-manifest.json index 225be79f24a..625b2cc1716 100644 --- a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/asset-manifest.json +++ b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/asset-manifest.json @@ -1,181 +1,181 @@ { "files": { "static/css/0.11c6169f.chunk.css": "./static/css/0.11c6169f.chunk.css", - "static/js/0.97ab3f6e.chunk.js": "./static/js/0.97ab3f6e.chunk.js", - "static/js/1.98d07d38.chunk.js": "./static/js/1.98d07d38.chunk.js", - "static/js/2.25af0fa6.chunk.js": "./static/js/2.25af0fa6.chunk.js", - "static/js/3.1d2ba724.chunk.js": "./static/js/3.1d2ba724.chunk.js", - "static/js/4.51d26d53.chunk.js": "./static/js/4.51d26d53.chunk.js", - "static/js/5.c612d392.chunk.js": "./static/js/5.c612d392.chunk.js", - "main.js": "./static/js/main.63479955.chunk.js", - "runtime-main.js": "./static/js/runtime-main.b6ca3464.js", + "static/js/0.75fa8442.chunk.js": "./static/js/0.75fa8442.chunk.js", + "static/js/1.2086f623.chunk.js": "./static/js/1.2086f623.chunk.js", + "static/js/2.e8ae5fb7.chunk.js": "./static/js/2.e8ae5fb7.chunk.js", + "static/js/3.2f44cbd4.chunk.js": "./static/js/3.2f44cbd4.chunk.js", + "static/js/4.3dfa499f.chunk.js": "./static/js/4.3dfa499f.chunk.js", + "static/js/5.7f5e5007.chunk.js": "./static/js/5.7f5e5007.chunk.js", + "main.js": "./static/js/main.97dd2500.chunk.js", + "runtime-main.js": "./static/js/runtime-main.a885af4f.js", "static/css/8.e26ab769.chunk.css": "./static/css/8.e26ab769.chunk.css", - "static/js/8.f7b3b7d6.chunk.js": "./static/js/8.f7b3b7d6.chunk.js", - "static/js/9.5b6cdd40.chunk.js": "./static/js/9.5b6cdd40.chunk.js", + "static/js/8.eedaf346.chunk.js": "./static/js/8.eedaf346.chunk.js", + "static/js/9.30127331.chunk.js": "./static/js/9.30127331.chunk.js", "static/css/10.749c2282.chunk.css": "./static/css/10.749c2282.chunk.css", "static/js/10.7491af13.chunk.js": "./static/js/10.7491af13.chunk.js", - "static/js/11.b0fd50a7.chunk.js": "./static/js/11.b0fd50a7.chunk.js", - "static/js/12.d0af6a5c.chunk.js": "./static/js/12.d0af6a5c.chunk.js", - "static/js/13.07daad42.chunk.js": "./static/js/13.07daad42.chunk.js", - "static/js/14.c0cc9265.chunk.js": "./static/js/14.c0cc9265.chunk.js", - "static/js/15.844a483a.chunk.js": "./static/js/15.844a483a.chunk.js", - "static/js/16.b54f08ae.chunk.js": "./static/js/16.b54f08ae.chunk.js", - "static/js/17.18d3f714.chunk.js": "./static/js/17.18d3f714.chunk.js", - "static/js/18.7862c0a3.chunk.js": "./static/js/18.7862c0a3.chunk.js", - "static/js/19.05333f8b.chunk.js": "./static/js/19.05333f8b.chunk.js", - "static/js/20.6814fcdb.chunk.js": "./static/js/20.6814fcdb.chunk.js", - "static/js/21.ab937798.chunk.js": "./static/js/21.ab937798.chunk.js", - "static/js/22.30a9f37a.chunk.js": "./static/js/22.30a9f37a.chunk.js", - "static/js/23.a70e7364.chunk.js": "./static/js/23.a70e7364.chunk.js", - "static/js/24.a757f369.chunk.js": "./static/js/24.a757f369.chunk.js", - "static/js/25.52433543.chunk.js": "./static/js/25.52433543.chunk.js", - "static/js/26.8caab221.chunk.js": "./static/js/26.8caab221.chunk.js", - "static/js/27.e870a549.chunk.js": "./static/js/27.e870a549.chunk.js", - "static/js/28.f7d38b1a.chunk.js": "./static/js/28.f7d38b1a.chunk.js", - "static/js/29.dd102554.chunk.js": "./static/js/29.dd102554.chunk.js", - "static/js/30.aba82be5.chunk.js": "./static/js/30.aba82be5.chunk.js", - "static/js/31.c062a722.chunk.js": "./static/js/31.c062a722.chunk.js", - "static/js/32.7d860c5f.chunk.js": "./static/js/32.7d860c5f.chunk.js", - "static/js/33.53215c12.chunk.js": "./static/js/33.53215c12.chunk.js", - "static/js/34.19388892.chunk.js": "./static/js/34.19388892.chunk.js", - "static/js/35.84a7ba00.chunk.js": "./static/js/35.84a7ba00.chunk.js", - "static/js/36.ce83a0a8.chunk.js": "./static/js/36.ce83a0a8.chunk.js", - "static/js/37.f249b4be.chunk.js": "./static/js/37.f249b4be.chunk.js", - "static/js/38.f8fac352.chunk.js": "./static/js/38.f8fac352.chunk.js", - "static/js/39.e1315aa2.chunk.js": "./static/js/39.e1315aa2.chunk.js", - "static/js/40.785f271f.chunk.js": "./static/js/40.785f271f.chunk.js", - "static/js/41.e4883763.chunk.js": "./static/js/41.e4883763.chunk.js", - "static/js/42.c9ec6bd2.chunk.js": "./static/js/42.c9ec6bd2.chunk.js", - "static/js/43.af0bb0ae.chunk.js": "./static/js/43.af0bb0ae.chunk.js", - "static/js/44.dbb6c8ce.chunk.js": "./static/js/44.dbb6c8ce.chunk.js", - "static/js/45.0eb1dc77.chunk.js": "./static/js/45.0eb1dc77.chunk.js", - "static/js/46.63892fbe.chunk.js": "./static/js/46.63892fbe.chunk.js", - "static/js/47.4624c239.chunk.js": "./static/js/47.4624c239.chunk.js", - "static/js/48.ea5b4f00.chunk.js": "./static/js/48.ea5b4f00.chunk.js", - "static/js/49.e191bb4a.chunk.js": "./static/js/49.e191bb4a.chunk.js", - "static/js/50.5babdbd8.chunk.js": "./static/js/50.5babdbd8.chunk.js", - "static/js/51.e732d2fe.chunk.js": "./static/js/51.e732d2fe.chunk.js", - "static/js/52.f98e91ce.chunk.js": "./static/js/52.f98e91ce.chunk.js", - "static/js/53.98e29718.chunk.js": "./static/js/53.98e29718.chunk.js", - "static/js/54.5295d5b1.chunk.js": "./static/js/54.5295d5b1.chunk.js", - "static/js/55.70b64372.chunk.js": "./static/js/55.70b64372.chunk.js", - "static/js/56.23b92593.chunk.js": "./static/js/56.23b92593.chunk.js", - "static/js/57.82a9c9f9.chunk.js": "./static/js/57.82a9c9f9.chunk.js", - "static/js/58.daf69835.chunk.js": "./static/js/58.daf69835.chunk.js", - "static/js/59.c4c67edf.chunk.js": "./static/js/59.c4c67edf.chunk.js", - "static/js/60.7056f2f2.chunk.js": "./static/js/60.7056f2f2.chunk.js", - "static/js/61.a3d463be.chunk.js": "./static/js/61.a3d463be.chunk.js", - "static/js/62.1dcc95c4.chunk.js": "./static/js/62.1dcc95c4.chunk.js", - "static/js/63.915d42e0.chunk.js": "./static/js/63.915d42e0.chunk.js", - "static/js/64.0a2219f3.chunk.js": "./static/js/64.0a2219f3.chunk.js", - "static/js/65.365acec8.chunk.js": "./static/js/65.365acec8.chunk.js", - "static/js/66.3e9cc64a.chunk.js": "./static/js/66.3e9cc64a.chunk.js", - "static/js/67.43921b00.chunk.js": "./static/js/67.43921b00.chunk.js", - "static/js/68.dccebf12.chunk.js": "./static/js/68.dccebf12.chunk.js", - "static/js/69.7a5965a8.chunk.js": "./static/js/69.7a5965a8.chunk.js", - "static/js/70.128fff55.chunk.js": "./static/js/70.128fff55.chunk.js", - "static/js/71.ceed162e.chunk.js": "./static/js/71.ceed162e.chunk.js", - "static/js/72.2d0bdc12.chunk.js": "./static/js/72.2d0bdc12.chunk.js", - "static/js/73.cb65778d.chunk.js": "./static/js/73.cb65778d.chunk.js", - "static/js/74.f2285931.chunk.js": "./static/js/74.f2285931.chunk.js", - "static/js/75.fff28f8f.chunk.js": "./static/js/75.fff28f8f.chunk.js", - "static/js/76.bc1e6bdb.chunk.js": "./static/js/76.bc1e6bdb.chunk.js", - "static/js/77.b8cad2ed.chunk.js": "./static/js/77.b8cad2ed.chunk.js", - "static/js/78.00e5cca0.chunk.js": "./static/js/78.00e5cca0.chunk.js", - "static/js/79.0f7dbe3a.chunk.js": "./static/js/79.0f7dbe3a.chunk.js", - "static/js/80.5c397d35.chunk.js": "./static/js/80.5c397d35.chunk.js", - "static/js/81.1efd6ec1.chunk.js": "./static/js/81.1efd6ec1.chunk.js", - "static/js/82.39d712cb.chunk.js": "./static/js/82.39d712cb.chunk.js", - "static/js/83.5e1d94ac.chunk.js": "./static/js/83.5e1d94ac.chunk.js", - "static/js/84.6ae317eb.chunk.js": "./static/js/84.6ae317eb.chunk.js", - "static/js/85.ec111073.chunk.js": "./static/js/85.ec111073.chunk.js", - "static/js/86.56341fee.chunk.js": "./static/js/86.56341fee.chunk.js", - "static/js/87.32a01916.chunk.js": "./static/js/87.32a01916.chunk.js", - "static/js/88.ce91df04.chunk.js": "./static/js/88.ce91df04.chunk.js", - "static/js/89.81d24497.chunk.js": "./static/js/89.81d24497.chunk.js", - "static/js/90.b4900a86.chunk.js": "./static/js/90.b4900a86.chunk.js", - "static/js/91.44a416f0.chunk.js": "./static/js/91.44a416f0.chunk.js", - "static/js/92.55ab0b9c.chunk.js": "./static/js/92.55ab0b9c.chunk.js", - "static/js/93.8f8c20b5.chunk.js": "./static/js/93.8f8c20b5.chunk.js", - "static/js/94.356e4f53.chunk.js": "./static/js/94.356e4f53.chunk.js", - "static/js/95.42077e4a.chunk.js": "./static/js/95.42077e4a.chunk.js", + "static/js/11.149a7b9f.chunk.js": "./static/js/11.149a7b9f.chunk.js", + "static/js/12.db2bbbf3.chunk.js": "./static/js/12.db2bbbf3.chunk.js", + "static/js/13.831e46fd.chunk.js": "./static/js/13.831e46fd.chunk.js", + "static/js/14.f1659ddd.chunk.js": "./static/js/14.f1659ddd.chunk.js", + "static/js/15.1d73119a.chunk.js": "./static/js/15.1d73119a.chunk.js", + "static/js/16.d836e1f4.chunk.js": "./static/js/16.d836e1f4.chunk.js", + "static/js/17.6b0169dc.chunk.js": "./static/js/17.6b0169dc.chunk.js", + "static/js/18.e52badaf.chunk.js": "./static/js/18.e52badaf.chunk.js", + "static/js/19.d96fab7e.chunk.js": "./static/js/19.d96fab7e.chunk.js", + "static/js/20.da813611.chunk.js": "./static/js/20.da813611.chunk.js", + "static/js/21.c4b84919.chunk.js": "./static/js/21.c4b84919.chunk.js", + "static/js/22.d82f2317.chunk.js": "./static/js/22.d82f2317.chunk.js", + "static/js/23.1dc4fac3.chunk.js": "./static/js/23.1dc4fac3.chunk.js", + "static/js/24.a649db9b.chunk.js": "./static/js/24.a649db9b.chunk.js", + "static/js/25.7a885725.chunk.js": "./static/js/25.7a885725.chunk.js", + "static/js/26.ba7fcc23.chunk.js": "./static/js/26.ba7fcc23.chunk.js", + "static/js/27.c71d5471.chunk.js": "./static/js/27.c71d5471.chunk.js", + "static/js/28.0ca7a50c.chunk.js": "./static/js/28.0ca7a50c.chunk.js", + "static/js/29.0ab3c67c.chunk.js": "./static/js/29.0ab3c67c.chunk.js", + "static/js/30.8d78e18e.chunk.js": "./static/js/30.8d78e18e.chunk.js", + "static/js/31.d34a9ecc.chunk.js": "./static/js/31.d34a9ecc.chunk.js", + "static/js/32.46adf046.chunk.js": "./static/js/32.46adf046.chunk.js", + "static/js/33.3c5e42e3.chunk.js": "./static/js/33.3c5e42e3.chunk.js", + "static/js/34.48b89549.chunk.js": "./static/js/34.48b89549.chunk.js", + "static/js/35.dd79e7f0.chunk.js": "./static/js/35.dd79e7f0.chunk.js", + "static/js/36.06279d41.chunk.js": "./static/js/36.06279d41.chunk.js", + "static/js/37.9d9ad3f7.chunk.js": "./static/js/37.9d9ad3f7.chunk.js", + "static/js/38.ec919d80.chunk.js": "./static/js/38.ec919d80.chunk.js", + "static/js/39.302380db.chunk.js": "./static/js/39.302380db.chunk.js", + "static/js/40.35d1ccb1.chunk.js": "./static/js/40.35d1ccb1.chunk.js", + "static/js/41.24ac3325.chunk.js": "./static/js/41.24ac3325.chunk.js", + "static/js/42.a1d159a5.chunk.js": "./static/js/42.a1d159a5.chunk.js", + "static/js/43.86bc64e3.chunk.js": "./static/js/43.86bc64e3.chunk.js", + "static/js/44.d3e5cf4e.chunk.js": "./static/js/44.d3e5cf4e.chunk.js", + "static/js/45.7dbfccb9.chunk.js": "./static/js/45.7dbfccb9.chunk.js", + "static/js/46.280265e7.chunk.js": "./static/js/46.280265e7.chunk.js", + "static/js/47.7454c3d3.chunk.js": "./static/js/47.7454c3d3.chunk.js", + "static/js/48.01610227.chunk.js": "./static/js/48.01610227.chunk.js", + "static/js/49.854afe6e.chunk.js": "./static/js/49.854afe6e.chunk.js", + "static/js/50.e74568f1.chunk.js": "./static/js/50.e74568f1.chunk.js", + "static/js/51.e014e2f2.chunk.js": "./static/js/51.e014e2f2.chunk.js", + "static/js/52.50e9914f.chunk.js": "./static/js/52.50e9914f.chunk.js", + "static/js/53.f36ffdb9.chunk.js": "./static/js/53.f36ffdb9.chunk.js", + "static/js/54.398b947f.chunk.js": "./static/js/54.398b947f.chunk.js", + "static/js/55.8da8815c.chunk.js": "./static/js/55.8da8815c.chunk.js", + "static/js/56.124ac33b.chunk.js": "./static/js/56.124ac33b.chunk.js", + "static/js/57.0b9ad429.chunk.js": "./static/js/57.0b9ad429.chunk.js", + "static/js/58.1fb6a2f3.chunk.js": "./static/js/58.1fb6a2f3.chunk.js", + "static/js/59.5fcc37ac.chunk.js": "./static/js/59.5fcc37ac.chunk.js", + "static/js/60.849a6449.chunk.js": "./static/js/60.849a6449.chunk.js", + "static/js/61.15d56695.chunk.js": "./static/js/61.15d56695.chunk.js", + "static/js/62.0d659ffb.chunk.js": "./static/js/62.0d659ffb.chunk.js", + "static/js/63.5208eb46.chunk.js": "./static/js/63.5208eb46.chunk.js", + "static/js/64.e78bbd02.chunk.js": "./static/js/64.e78bbd02.chunk.js", + "static/js/65.41a0301e.chunk.js": "./static/js/65.41a0301e.chunk.js", + "static/js/66.a3de2cfd.chunk.js": "./static/js/66.a3de2cfd.chunk.js", + "static/js/67.b060151f.chunk.js": "./static/js/67.b060151f.chunk.js", + "static/js/68.12e1147b.chunk.js": "./static/js/68.12e1147b.chunk.js", + "static/js/69.1bfdf5bc.chunk.js": "./static/js/69.1bfdf5bc.chunk.js", + "static/js/70.2608041a.chunk.js": "./static/js/70.2608041a.chunk.js", + "static/js/71.8d5bdcd1.chunk.js": "./static/js/71.8d5bdcd1.chunk.js", + "static/js/72.ab3ecf70.chunk.js": "./static/js/72.ab3ecf70.chunk.js", + "static/js/73.588640b6.chunk.js": "./static/js/73.588640b6.chunk.js", + "static/js/74.e27c9758.chunk.js": "./static/js/74.e27c9758.chunk.js", + "static/js/75.f916c17a.chunk.js": "./static/js/75.f916c17a.chunk.js", + "static/js/76.946b84a2.chunk.js": "./static/js/76.946b84a2.chunk.js", + "static/js/77.f15f90a2.chunk.js": "./static/js/77.f15f90a2.chunk.js", + "static/js/78.ec845e32.chunk.js": "./static/js/78.ec845e32.chunk.js", + "static/js/79.48c6ba1e.chunk.js": "./static/js/79.48c6ba1e.chunk.js", + "static/js/80.3bffa970.chunk.js": "./static/js/80.3bffa970.chunk.js", + "static/js/81.2a62eb56.chunk.js": "./static/js/81.2a62eb56.chunk.js", + "static/js/82.d528e77c.chunk.js": "./static/js/82.d528e77c.chunk.js", + "static/js/83.72dc67cc.chunk.js": "./static/js/83.72dc67cc.chunk.js", + "static/js/84.5cd845b8.chunk.js": "./static/js/84.5cd845b8.chunk.js", + "static/js/85.be6d25bf.chunk.js": "./static/js/85.be6d25bf.chunk.js", + "static/js/86.60f11844.chunk.js": "./static/js/86.60f11844.chunk.js", + "static/js/87.aea70c6a.chunk.js": "./static/js/87.aea70c6a.chunk.js", + "static/js/88.34169825.chunk.js": "./static/js/88.34169825.chunk.js", + "static/js/89.f74fb941.chunk.js": "./static/js/89.f74fb941.chunk.js", + "static/js/90.691bc1c7.chunk.js": "./static/js/90.691bc1c7.chunk.js", + "static/js/91.4b84f6e0.chunk.js": "./static/js/91.4b84f6e0.chunk.js", + "static/js/92.aa6a3f20.chunk.js": "./static/js/92.aa6a3f20.chunk.js", + "static/js/93.de0f7cef.chunk.js": "./static/js/93.de0f7cef.chunk.js", + "static/js/94.59a1ab0c.chunk.js": "./static/js/94.59a1ab0c.chunk.js", + "static/js/95.9a5db7bb.chunk.js": "./static/js/95.9a5db7bb.chunk.js", "index.html": "./index.html", - "static/js/0.97ab3f6e.chunk.js.LICENSE.txt": "./static/js/0.97ab3f6e.chunk.js.LICENSE.txt", + "static/js/0.75fa8442.chunk.js.LICENSE.txt": "./static/js/0.75fa8442.chunk.js.LICENSE.txt", "static/js/10.7491af13.chunk.js.LICENSE.txt": "./static/js/10.7491af13.chunk.js.LICENSE.txt", - "static/js/14.c0cc9265.chunk.js.LICENSE.txt": "./static/js/14.c0cc9265.chunk.js.LICENSE.txt", - "static/js/2.25af0fa6.chunk.js.LICENSE.txt": "./static/js/2.25af0fa6.chunk.js.LICENSE.txt", - "static/js/20.6814fcdb.chunk.js.LICENSE.txt": "./static/js/20.6814fcdb.chunk.js.LICENSE.txt", - "static/js/21.ab937798.chunk.js.LICENSE.txt": "./static/js/21.ab937798.chunk.js.LICENSE.txt", - "static/js/22.30a9f37a.chunk.js.LICENSE.txt": "./static/js/22.30a9f37a.chunk.js.LICENSE.txt", - "static/js/23.a70e7364.chunk.js.LICENSE.txt": "./static/js/23.a70e7364.chunk.js.LICENSE.txt", - "static/js/24.a757f369.chunk.js.LICENSE.txt": "./static/js/24.a757f369.chunk.js.LICENSE.txt", - "static/js/25.52433543.chunk.js.LICENSE.txt": "./static/js/25.52433543.chunk.js.LICENSE.txt", - "static/js/26.8caab221.chunk.js.LICENSE.txt": "./static/js/26.8caab221.chunk.js.LICENSE.txt", - "static/js/27.e870a549.chunk.js.LICENSE.txt": "./static/js/27.e870a549.chunk.js.LICENSE.txt", - "static/js/28.f7d38b1a.chunk.js.LICENSE.txt": "./static/js/28.f7d38b1a.chunk.js.LICENSE.txt", - "static/js/29.dd102554.chunk.js.LICENSE.txt": "./static/js/29.dd102554.chunk.js.LICENSE.txt", - "static/js/30.aba82be5.chunk.js.LICENSE.txt": "./static/js/30.aba82be5.chunk.js.LICENSE.txt", - "static/js/31.c062a722.chunk.js.LICENSE.txt": "./static/js/31.c062a722.chunk.js.LICENSE.txt", - "static/js/32.7d860c5f.chunk.js.LICENSE.txt": "./static/js/32.7d860c5f.chunk.js.LICENSE.txt", - "static/js/33.53215c12.chunk.js.LICENSE.txt": "./static/js/33.53215c12.chunk.js.LICENSE.txt", - "static/js/34.19388892.chunk.js.LICENSE.txt": "./static/js/34.19388892.chunk.js.LICENSE.txt", - "static/js/35.84a7ba00.chunk.js.LICENSE.txt": "./static/js/35.84a7ba00.chunk.js.LICENSE.txt", - "static/js/36.ce83a0a8.chunk.js.LICENSE.txt": "./static/js/36.ce83a0a8.chunk.js.LICENSE.txt", - "static/js/37.f249b4be.chunk.js.LICENSE.txt": "./static/js/37.f249b4be.chunk.js.LICENSE.txt", - "static/js/39.e1315aa2.chunk.js.LICENSE.txt": "./static/js/39.e1315aa2.chunk.js.LICENSE.txt", - "static/js/4.51d26d53.chunk.js.LICENSE.txt": "./static/js/4.51d26d53.chunk.js.LICENSE.txt", - "static/js/41.e4883763.chunk.js.LICENSE.txt": "./static/js/41.e4883763.chunk.js.LICENSE.txt", - "static/js/42.c9ec6bd2.chunk.js.LICENSE.txt": "./static/js/42.c9ec6bd2.chunk.js.LICENSE.txt", - "static/js/43.af0bb0ae.chunk.js.LICENSE.txt": "./static/js/43.af0bb0ae.chunk.js.LICENSE.txt", - "static/js/44.dbb6c8ce.chunk.js.LICENSE.txt": "./static/js/44.dbb6c8ce.chunk.js.LICENSE.txt", - "static/js/45.0eb1dc77.chunk.js.LICENSE.txt": "./static/js/45.0eb1dc77.chunk.js.LICENSE.txt", - "static/js/46.63892fbe.chunk.js.LICENSE.txt": "./static/js/46.63892fbe.chunk.js.LICENSE.txt", - "static/js/48.ea5b4f00.chunk.js.LICENSE.txt": "./static/js/48.ea5b4f00.chunk.js.LICENSE.txt", - "static/js/49.e191bb4a.chunk.js.LICENSE.txt": "./static/js/49.e191bb4a.chunk.js.LICENSE.txt", - "static/js/5.c612d392.chunk.js.LICENSE.txt": "./static/js/5.c612d392.chunk.js.LICENSE.txt", - "static/js/50.5babdbd8.chunk.js.LICENSE.txt": "./static/js/50.5babdbd8.chunk.js.LICENSE.txt", - "static/js/51.e732d2fe.chunk.js.LICENSE.txt": "./static/js/51.e732d2fe.chunk.js.LICENSE.txt", - "static/js/52.f98e91ce.chunk.js.LICENSE.txt": "./static/js/52.f98e91ce.chunk.js.LICENSE.txt", - "static/js/53.98e29718.chunk.js.LICENSE.txt": "./static/js/53.98e29718.chunk.js.LICENSE.txt", - "static/js/54.5295d5b1.chunk.js.LICENSE.txt": "./static/js/54.5295d5b1.chunk.js.LICENSE.txt", - "static/js/55.70b64372.chunk.js.LICENSE.txt": "./static/js/55.70b64372.chunk.js.LICENSE.txt", - "static/js/56.23b92593.chunk.js.LICENSE.txt": "./static/js/56.23b92593.chunk.js.LICENSE.txt", - "static/js/57.82a9c9f9.chunk.js.LICENSE.txt": "./static/js/57.82a9c9f9.chunk.js.LICENSE.txt", - "static/js/58.daf69835.chunk.js.LICENSE.txt": "./static/js/58.daf69835.chunk.js.LICENSE.txt", - "static/js/59.c4c67edf.chunk.js.LICENSE.txt": "./static/js/59.c4c67edf.chunk.js.LICENSE.txt", - "static/js/60.7056f2f2.chunk.js.LICENSE.txt": "./static/js/60.7056f2f2.chunk.js.LICENSE.txt", - "static/js/61.a3d463be.chunk.js.LICENSE.txt": "./static/js/61.a3d463be.chunk.js.LICENSE.txt", - "static/js/62.1dcc95c4.chunk.js.LICENSE.txt": "./static/js/62.1dcc95c4.chunk.js.LICENSE.txt", - "static/js/63.915d42e0.chunk.js.LICENSE.txt": "./static/js/63.915d42e0.chunk.js.LICENSE.txt", - "static/js/64.0a2219f3.chunk.js.LICENSE.txt": "./static/js/64.0a2219f3.chunk.js.LICENSE.txt", - "static/js/65.365acec8.chunk.js.LICENSE.txt": "./static/js/65.365acec8.chunk.js.LICENSE.txt", - "static/js/67.43921b00.chunk.js.LICENSE.txt": "./static/js/67.43921b00.chunk.js.LICENSE.txt", - "static/js/68.dccebf12.chunk.js.LICENSE.txt": "./static/js/68.dccebf12.chunk.js.LICENSE.txt", - "static/js/70.128fff55.chunk.js.LICENSE.txt": "./static/js/70.128fff55.chunk.js.LICENSE.txt", - "static/js/71.ceed162e.chunk.js.LICENSE.txt": "./static/js/71.ceed162e.chunk.js.LICENSE.txt", - "static/js/72.2d0bdc12.chunk.js.LICENSE.txt": "./static/js/72.2d0bdc12.chunk.js.LICENSE.txt", - "static/js/73.cb65778d.chunk.js.LICENSE.txt": "./static/js/73.cb65778d.chunk.js.LICENSE.txt", - "static/js/74.f2285931.chunk.js.LICENSE.txt": "./static/js/74.f2285931.chunk.js.LICENSE.txt", - "static/js/75.fff28f8f.chunk.js.LICENSE.txt": "./static/js/75.fff28f8f.chunk.js.LICENSE.txt", - "static/js/76.bc1e6bdb.chunk.js.LICENSE.txt": "./static/js/76.bc1e6bdb.chunk.js.LICENSE.txt", - "static/js/77.b8cad2ed.chunk.js.LICENSE.txt": "./static/js/77.b8cad2ed.chunk.js.LICENSE.txt", - "static/js/78.00e5cca0.chunk.js.LICENSE.txt": "./static/js/78.00e5cca0.chunk.js.LICENSE.txt", - "static/js/79.0f7dbe3a.chunk.js.LICENSE.txt": "./static/js/79.0f7dbe3a.chunk.js.LICENSE.txt", - "static/js/8.f7b3b7d6.chunk.js.LICENSE.txt": "./static/js/8.f7b3b7d6.chunk.js.LICENSE.txt", - "static/js/80.5c397d35.chunk.js.LICENSE.txt": "./static/js/80.5c397d35.chunk.js.LICENSE.txt", - "static/js/81.1efd6ec1.chunk.js.LICENSE.txt": "./static/js/81.1efd6ec1.chunk.js.LICENSE.txt", - "static/js/82.39d712cb.chunk.js.LICENSE.txt": "./static/js/82.39d712cb.chunk.js.LICENSE.txt", - "static/js/83.5e1d94ac.chunk.js.LICENSE.txt": "./static/js/83.5e1d94ac.chunk.js.LICENSE.txt", - "static/js/84.6ae317eb.chunk.js.LICENSE.txt": "./static/js/84.6ae317eb.chunk.js.LICENSE.txt", - "static/js/85.ec111073.chunk.js.LICENSE.txt": "./static/js/85.ec111073.chunk.js.LICENSE.txt", - "static/js/86.56341fee.chunk.js.LICENSE.txt": "./static/js/86.56341fee.chunk.js.LICENSE.txt", - "static/js/87.32a01916.chunk.js.LICENSE.txt": "./static/js/87.32a01916.chunk.js.LICENSE.txt", - "static/js/89.81d24497.chunk.js.LICENSE.txt": "./static/js/89.81d24497.chunk.js.LICENSE.txt", - "static/js/91.44a416f0.chunk.js.LICENSE.txt": "./static/js/91.44a416f0.chunk.js.LICENSE.txt", - "static/js/cloud-scheduler.affb18ed.worker.js": "./static/js/cloud-scheduler.affb18ed.worker.js", - "static/js/cloud-scheduler.affb18ed.worker.js.LICENSE.txt": "./static/js/cloud-scheduler.affb18ed.worker.js.LICENSE.txt", - "static/js/document-scheduler.04927182.worker.js": "./static/js/document-scheduler.04927182.worker.js", - "static/js/document-scheduler.04927182.worker.js.LICENSE.txt": "./static/js/document-scheduler.04927182.worker.js.LICENSE.txt", + "static/js/14.f1659ddd.chunk.js.LICENSE.txt": "./static/js/14.f1659ddd.chunk.js.LICENSE.txt", + "static/js/2.e8ae5fb7.chunk.js.LICENSE.txt": "./static/js/2.e8ae5fb7.chunk.js.LICENSE.txt", + "static/js/20.da813611.chunk.js.LICENSE.txt": "./static/js/20.da813611.chunk.js.LICENSE.txt", + "static/js/21.c4b84919.chunk.js.LICENSE.txt": "./static/js/21.c4b84919.chunk.js.LICENSE.txt", + "static/js/22.d82f2317.chunk.js.LICENSE.txt": "./static/js/22.d82f2317.chunk.js.LICENSE.txt", + "static/js/23.1dc4fac3.chunk.js.LICENSE.txt": "./static/js/23.1dc4fac3.chunk.js.LICENSE.txt", + "static/js/24.a649db9b.chunk.js.LICENSE.txt": "./static/js/24.a649db9b.chunk.js.LICENSE.txt", + "static/js/25.7a885725.chunk.js.LICENSE.txt": "./static/js/25.7a885725.chunk.js.LICENSE.txt", + "static/js/26.ba7fcc23.chunk.js.LICENSE.txt": "./static/js/26.ba7fcc23.chunk.js.LICENSE.txt", + "static/js/27.c71d5471.chunk.js.LICENSE.txt": "./static/js/27.c71d5471.chunk.js.LICENSE.txt", + "static/js/28.0ca7a50c.chunk.js.LICENSE.txt": "./static/js/28.0ca7a50c.chunk.js.LICENSE.txt", + "static/js/29.0ab3c67c.chunk.js.LICENSE.txt": "./static/js/29.0ab3c67c.chunk.js.LICENSE.txt", + "static/js/30.8d78e18e.chunk.js.LICENSE.txt": "./static/js/30.8d78e18e.chunk.js.LICENSE.txt", + "static/js/31.d34a9ecc.chunk.js.LICENSE.txt": "./static/js/31.d34a9ecc.chunk.js.LICENSE.txt", + "static/js/32.46adf046.chunk.js.LICENSE.txt": "./static/js/32.46adf046.chunk.js.LICENSE.txt", + "static/js/33.3c5e42e3.chunk.js.LICENSE.txt": "./static/js/33.3c5e42e3.chunk.js.LICENSE.txt", + "static/js/34.48b89549.chunk.js.LICENSE.txt": "./static/js/34.48b89549.chunk.js.LICENSE.txt", + "static/js/35.dd79e7f0.chunk.js.LICENSE.txt": "./static/js/35.dd79e7f0.chunk.js.LICENSE.txt", + "static/js/36.06279d41.chunk.js.LICENSE.txt": "./static/js/36.06279d41.chunk.js.LICENSE.txt", + "static/js/37.9d9ad3f7.chunk.js.LICENSE.txt": "./static/js/37.9d9ad3f7.chunk.js.LICENSE.txt", + "static/js/39.302380db.chunk.js.LICENSE.txt": "./static/js/39.302380db.chunk.js.LICENSE.txt", + "static/js/4.3dfa499f.chunk.js.LICENSE.txt": "./static/js/4.3dfa499f.chunk.js.LICENSE.txt", + "static/js/41.24ac3325.chunk.js.LICENSE.txt": "./static/js/41.24ac3325.chunk.js.LICENSE.txt", + "static/js/42.a1d159a5.chunk.js.LICENSE.txt": "./static/js/42.a1d159a5.chunk.js.LICENSE.txt", + "static/js/43.86bc64e3.chunk.js.LICENSE.txt": "./static/js/43.86bc64e3.chunk.js.LICENSE.txt", + "static/js/44.d3e5cf4e.chunk.js.LICENSE.txt": "./static/js/44.d3e5cf4e.chunk.js.LICENSE.txt", + "static/js/45.7dbfccb9.chunk.js.LICENSE.txt": "./static/js/45.7dbfccb9.chunk.js.LICENSE.txt", + "static/js/46.280265e7.chunk.js.LICENSE.txt": "./static/js/46.280265e7.chunk.js.LICENSE.txt", + "static/js/48.01610227.chunk.js.LICENSE.txt": "./static/js/48.01610227.chunk.js.LICENSE.txt", + "static/js/49.854afe6e.chunk.js.LICENSE.txt": "./static/js/49.854afe6e.chunk.js.LICENSE.txt", + "static/js/5.7f5e5007.chunk.js.LICENSE.txt": "./static/js/5.7f5e5007.chunk.js.LICENSE.txt", + "static/js/50.e74568f1.chunk.js.LICENSE.txt": "./static/js/50.e74568f1.chunk.js.LICENSE.txt", + "static/js/51.e014e2f2.chunk.js.LICENSE.txt": "./static/js/51.e014e2f2.chunk.js.LICENSE.txt", + "static/js/52.50e9914f.chunk.js.LICENSE.txt": "./static/js/52.50e9914f.chunk.js.LICENSE.txt", + "static/js/53.f36ffdb9.chunk.js.LICENSE.txt": "./static/js/53.f36ffdb9.chunk.js.LICENSE.txt", + "static/js/54.398b947f.chunk.js.LICENSE.txt": "./static/js/54.398b947f.chunk.js.LICENSE.txt", + "static/js/55.8da8815c.chunk.js.LICENSE.txt": "./static/js/55.8da8815c.chunk.js.LICENSE.txt", + "static/js/56.124ac33b.chunk.js.LICENSE.txt": "./static/js/56.124ac33b.chunk.js.LICENSE.txt", + "static/js/57.0b9ad429.chunk.js.LICENSE.txt": "./static/js/57.0b9ad429.chunk.js.LICENSE.txt", + "static/js/58.1fb6a2f3.chunk.js.LICENSE.txt": "./static/js/58.1fb6a2f3.chunk.js.LICENSE.txt", + "static/js/59.5fcc37ac.chunk.js.LICENSE.txt": "./static/js/59.5fcc37ac.chunk.js.LICENSE.txt", + "static/js/60.849a6449.chunk.js.LICENSE.txt": "./static/js/60.849a6449.chunk.js.LICENSE.txt", + "static/js/61.15d56695.chunk.js.LICENSE.txt": "./static/js/61.15d56695.chunk.js.LICENSE.txt", + "static/js/62.0d659ffb.chunk.js.LICENSE.txt": "./static/js/62.0d659ffb.chunk.js.LICENSE.txt", + "static/js/63.5208eb46.chunk.js.LICENSE.txt": "./static/js/63.5208eb46.chunk.js.LICENSE.txt", + "static/js/64.e78bbd02.chunk.js.LICENSE.txt": "./static/js/64.e78bbd02.chunk.js.LICENSE.txt", + "static/js/65.41a0301e.chunk.js.LICENSE.txt": "./static/js/65.41a0301e.chunk.js.LICENSE.txt", + "static/js/67.b060151f.chunk.js.LICENSE.txt": "./static/js/67.b060151f.chunk.js.LICENSE.txt", + "static/js/68.12e1147b.chunk.js.LICENSE.txt": "./static/js/68.12e1147b.chunk.js.LICENSE.txt", + "static/js/70.2608041a.chunk.js.LICENSE.txt": "./static/js/70.2608041a.chunk.js.LICENSE.txt", + "static/js/71.8d5bdcd1.chunk.js.LICENSE.txt": "./static/js/71.8d5bdcd1.chunk.js.LICENSE.txt", + "static/js/72.ab3ecf70.chunk.js.LICENSE.txt": "./static/js/72.ab3ecf70.chunk.js.LICENSE.txt", + "static/js/73.588640b6.chunk.js.LICENSE.txt": "./static/js/73.588640b6.chunk.js.LICENSE.txt", + "static/js/74.e27c9758.chunk.js.LICENSE.txt": "./static/js/74.e27c9758.chunk.js.LICENSE.txt", + "static/js/75.f916c17a.chunk.js.LICENSE.txt": "./static/js/75.f916c17a.chunk.js.LICENSE.txt", + "static/js/76.946b84a2.chunk.js.LICENSE.txt": "./static/js/76.946b84a2.chunk.js.LICENSE.txt", + "static/js/77.f15f90a2.chunk.js.LICENSE.txt": "./static/js/77.f15f90a2.chunk.js.LICENSE.txt", + "static/js/78.ec845e32.chunk.js.LICENSE.txt": "./static/js/78.ec845e32.chunk.js.LICENSE.txt", + "static/js/79.48c6ba1e.chunk.js.LICENSE.txt": "./static/js/79.48c6ba1e.chunk.js.LICENSE.txt", + "static/js/8.eedaf346.chunk.js.LICENSE.txt": "./static/js/8.eedaf346.chunk.js.LICENSE.txt", + "static/js/80.3bffa970.chunk.js.LICENSE.txt": "./static/js/80.3bffa970.chunk.js.LICENSE.txt", + "static/js/81.2a62eb56.chunk.js.LICENSE.txt": "./static/js/81.2a62eb56.chunk.js.LICENSE.txt", + "static/js/82.d528e77c.chunk.js.LICENSE.txt": "./static/js/82.d528e77c.chunk.js.LICENSE.txt", + "static/js/83.72dc67cc.chunk.js.LICENSE.txt": "./static/js/83.72dc67cc.chunk.js.LICENSE.txt", + "static/js/84.5cd845b8.chunk.js.LICENSE.txt": "./static/js/84.5cd845b8.chunk.js.LICENSE.txt", + "static/js/85.be6d25bf.chunk.js.LICENSE.txt": "./static/js/85.be6d25bf.chunk.js.LICENSE.txt", + "static/js/86.60f11844.chunk.js.LICENSE.txt": "./static/js/86.60f11844.chunk.js.LICENSE.txt", + "static/js/87.aea70c6a.chunk.js.LICENSE.txt": "./static/js/87.aea70c6a.chunk.js.LICENSE.txt", + "static/js/89.f74fb941.chunk.js.LICENSE.txt": "./static/js/89.f74fb941.chunk.js.LICENSE.txt", + "static/js/91.4b84f6e0.chunk.js.LICENSE.txt": "./static/js/91.4b84f6e0.chunk.js.LICENSE.txt", + "static/js/cloud-scheduler.7622a39b.worker.js": "./static/js/cloud-scheduler.7622a39b.worker.js", + "static/js/cloud-scheduler.7622a39b.worker.js.LICENSE.txt": "./static/js/cloud-scheduler.7622a39b.worker.js.LICENSE.txt", + "static/js/document-scheduler.d724b7a9.worker.js": "./static/js/document-scheduler.d724b7a9.worker.js", + "static/js/document-scheduler.d724b7a9.worker.js.LICENSE.txt": "./static/js/document-scheduler.d724b7a9.worker.js.LICENSE.txt", "static/js/editor.a85ce25e.js": "./static/js/editor.a85ce25e.js", "static/js/graphql.d820ea0e.js": "./static/js/graphql.d820ea0e.js", "static/js/graphql.d820ea0e.js.LICENSE.txt": "./static/js/graphql.d820ea0e.js.LICENSE.txt", @@ -197,10 +197,12 @@ "static/media/circle-slash.ae912d3d.svg": "./static/media/circle-slash.ae912d3d.svg", "static/media/close.3e598c4a.svg": "./static/media/close.3e598c4a.svg", "static/media/cloud-download.33a9e1b9.svg": "./static/media/cloud-download.33a9e1b9.svg", + "static/media/cloud-upload.512c2b2f.svg": "./static/media/cloud-upload.512c2b2f.svg", "static/media/codicon.css": "./static/media/codicon.56dba998.ttf", "static/media/column.a75cf3e1.svg": "./static/media/column.a75cf3e1.svg", "static/media/debug-start.7b23e554.svg": "./static/media/debug-start.7b23e554.svg", "static/media/error.1413fc51.svg": "./static/media/error.1413fc51.svg", + "static/media/file-media.bdcca871.svg": "./static/media/file-media.bdcca871.svg", "static/media/file.b4c777e7.svg": "./static/media/file.b4c777e7.svg", "static/media/files.8a07e1a7.svg": "./static/media/files.8a07e1a7.svg", "static/media/fold-down.a1dfe7d1.svg": "./static/media/fold-down.a1dfe7d1.svg", @@ -238,9 +240,9 @@ "static/media/warning.8c411ab4.svg": "./static/media/warning.8c411ab4.svg" }, "entrypoints": [ - "static/js/runtime-main.b6ca3464.js", + "static/js/runtime-main.a885af4f.js", "static/css/10.749c2282.chunk.css", "static/js/10.7491af13.chunk.js", - "static/js/main.63479955.chunk.js" + "static/js/main.97dd2500.chunk.js" ] } \ No newline at end of file diff --git a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/index.html b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/index.html index 43fb812f593..d82876ca4be 100644 --- a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/index.html +++ b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/index.html @@ -1 +1 @@ -
0&&j[K-1].lineNumber===G)){var $=j[K].oldContent,Y=this.getLineContent(G);0!==Y.length&&Y!==$&&-1===v.w(Y)&&U.push(G)}}}return this._onDidChangeContent.fire(),new C.a(F,z,U)}},{key:"_reduceOperations",value:function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}},{key:"_toSingleEditOperation",value:function(e){for(var t=!1,n=e[0].range,i=e[e.length-1].range,r=new _.a(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn),a=n.startLineNumber,s=n.startColumn,u=[],l=0,c=e.length;l0&&u.push(d.text),a=h.endLineNumber,s=h.endColumn}var f=u.join(""),g=Object(be.f)(f),p=Object(o.a)(g,3),v=p[0],m=p[1],b=p[2];return{sortIndex:0,identifier:e[0].identifier,range:r,rangeOffset:this.getOffsetAt(r.startLineNumber,r.startColumn),rangeLength:this.getValueLengthInRange(r,0),text:f,eolCount:v,firstLineLength:m,lastLineLength:b,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}},{key:"_doApplyEdits",value:function(e){e.sort(n._sortOpsDescending);for(var t=[],i=0;i 0){var d=s.eolCount+1;c=1===d?new _.a(u,l,u,l+s.firstLineLength):new _.a(u,l,u+d-1,s.lastLineLength+1)}else c=new _.a(u,l,u,l);n=c.endLineNumber,i=c.endColumn,t.push(c),r=s}return t}},{key:"_sortOpsAscending",value:function(e,t){var n=_.a.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}},{key:"_sortOpsDescending",value:function(e,t){var n=_.a.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}]),n}(p.a),ke=function(){function e(t,n,i,r,o,a,s,u,l){Object(d.a)(this,e),this._chunks=t,this._bom=n,this._cr=i,this._lf=r,this._crlf=o,this._containsRTL=a,this._containsUnusualLineTerminators=s,this._isBasicASCII=u,this._normalizeEOL=l}return Object(h.a)(e,[{key:"_getEOL",value:function(e){var t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}},{key:"create",value:function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var i=0,r=n.length;i =55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}}},{key:"_acceptChunk1",value:function(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}},{key:"_acceptChunk2",value:function(e){var t=function(e,t){e.length=0,e[0]=0;for(var n=1,i=0,r=0,o=0,a=!0,s=0,u=t.length;s126)&&(a=!1)}var c=new de(ce(e),i,r,o,a);return e.length=0,c}(this._tmpLineStarts,e);this.chunks.push(new ge(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=v.o(e)),this.isBasicASCII||this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=v.p(e))}},{key:"finish",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._finish(),new ke(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}},{key:"_finish",value:function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=he(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}]),e}(),we=n(257),Se=n(105),Oe=n(256),De=n(103),Ee=n(237),xe=n(254),Le=n(100),je=function(){function e(){Object(d.a)(this,e),this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}return Object(h.a)(e,[{key:"_reset",value:function(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)}},{key:"flush",value:function(e){this._reset(e)}},{key:"invalidLineStartIndex",get:function(){return this._invalidLineStartIndex}},{key:"_invalidateLine",value:function(e){e =this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++}},{key:"_deleteLines",value:function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._beginState.splice(e,t),this._valid.splice(e,t),this._len-=t)}},{key:"_insertLines",value:function(e,t){if(0!==t){for(var n=[],i=[],r=0;r =0;r--)this._invalidateLine(e.startLineNumber+r-1);this._acceptDeleteRange(e),this._acceptInsertText(new y.a(e.startLineNumber,e.startColumn),t)}},{key:"_acceptDeleteRange",value:function(e){e.startLineNumber-1>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}},{key:"_acceptInsertText",value:function(e,t){e.lineNumber-1>=this._len||this._insertLines(e.lineNumber,t)}}]),e}(),Ne=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(d.a)(this,n),(r=t.call(this))._textModel=e,r._languageIdCodec=i,r._isScheduled=!1,r._isDisposed=!1,r._tokenizationStateStore=new je,r._tokenizationSupport=null,r._register(De.F.onDidChange((function(e){var t=r._textModel.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&(r._resetTokenizationState(),r._textModel.clearTokens())}))),r._register(r._textModel.onDidChangeContentFast((function(e){if(e.isFlush)r._resetTokenizationState();else{for(var t=0,n=e.changes.length;t 1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._beginBackgroundTokenization(),this._textModel.setTokens(t.tokens,!this._hasLinesToTokenize())}},{key:"tokenizeViewport",value:function(e,t){var n=new be.b;this._tokenizeViewport(n,e,t),this._textModel.setTokens(n.tokens,!this._hasLinesToTokenize())}},{key:"reset",value:function(){this._resetTokenizationState(),this._textModel.clearTokens()}},{key:"forceTokenization",value:function(e){var t=new be.b;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens,!this._hasLinesToTokenize())}},{key:"getTokenTypeIfInsertingCharacter",value:function(e,t){if(!this._tokenizationSupport)return 0;this.forceTokenization(e.lineNumber);var n=this._tokenizationStateStore.getBeginState(e.lineNumber-1);if(!n)return 0;var i=this._textModel.getLanguageId(),r=this._textModel.getLineContent(e.lineNumber),o=r.substring(0,e.column-1)+t+r.substring(e.column-1),a=Ae(this._languageIdCodec,i,this._tokenizationSupport,o,!0,n),s=new Oe.a(a.tokens,o,this._languageIdCodec);if(0===s.getCount())return 0;var u=s.findTokenIndexAtOffset(e.column-1);return s.getStandardTokenType(u)}},{key:"isCheapToTokenize",value:function(e){if(!this._tokenizationSupport)return!0;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(e>t)&&(e 1&&a>=1;a--){var s=this._textModel.getLineFirstNonWhitespaceColumn(a);if(0!==s&&s=0;c--){l=Ae(this._languageIdCodec,u,this._tokenizationSupport,r[c],!1,l).endState}for(var d=t;d<=n;d++){var h=this._textModel.getLineContent(d),f=Ae(this._languageIdCodec,u,this._tokenizationSupport,h,!0,l);e.add(d,f.tokens),this._tokenizationStateStore.setFakeTokens(d-1),l=f.endState}}}}]),n}(p.a);function Ae(e,t,n,i,r,o){var a=null;if(n)try{a=n.tokenize2(i,r,o.clone(),0)}catch(s){Object(f.f)(s)}return a||(a=Object(Ee.d)(e.encodeLanguageId(t),i,o,0)),Oe.a.convertToEndOffset(a.tokens,i.length),a}var Te=n(370),Ie=n(152),Me=n(135),Fe=n(322),Pe=function e(t,n,i){Object(d.a)(this,e),this.range=t,this.nestingLevel=n,this.isInvalid=i},Re=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,a){var s;return Object(d.a)(this,n),(s=t.call(this,e,i,r,o)).minVisibleColumnIndentation=a,s}return n}((function e(t,n,i,r){Object(d.a)(this,e),this.range=t,this.openingBracketRange=n,this.closingBracketRange=i,this.nestingLevel=r})),Be=function(){function e(t,n){Object(d.a)(this,e),this.lineCount=t,this.columnCount=n}return Object(h.a)(e,[{key:"toString",value:function(){return"".concat(this.lineCount,",").concat(this.columnCount)}}]),e}();var We=Math.pow(2,26);function Ve(e,t){return e*We+t}function He(e){var t=e,n=Math.floor(t/We);return new Be(n,t-n*We)}function ze(e,t){return t =t}function Ge(e){return Ve(e.lineNumber-1,e.column-1)}function $e(e,t){var n=e,i=Math.floor(n/We),r=n-i*We,o=t,a=Math.floor(o/We),s=o-a*We;return new _.a(i+1,r+1,a+1,s+1)}var Ye=function e(t,n,i){Object(d.a)(this,e),this.startOffset=t,this.endOffset=n,this.newLength=i},Ze=function(){function e(t,n){Object(d.a)(this,e),this.documentLength=n,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=t.map((function(e){return Xe.from(e)}))}return Object(h.a)(e,[{key:"getOffsetBeforeChange",value:function(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}},{key:"getDistanceToNextChange",value:function(e){this.adjustNextEdit(e);var t=this.edits[this.nextEditIdx];return function(e,t){var n=e,i=t;if(i-n<=0)return 0;var r=Math.floor(n/We),o=Math.floor(i/We),a=i-o*We;return r===o?Ve(0,a-(n-r*We)):Ve(o-r,a)}(e,t?this.translateOldToCur(t.offsetObj):this.documentLength)}},{key:"translateOldToCur",value:function(e){return e.lineCount===this.deltaLineIdxInOld?Ve(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):Ve(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}},{key:"translateCurToOld",value:function(e){var t=He(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?Ve(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):Ve(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}},{key:"adjustNextEdit",value:function(e){for(;this.nextEditIdx >5;if(0===r){var o=1<0;)n=n.getChild(t-1);return n.canBeReused(e)}},{key:"handleChildrenChanged",value:function(){this.throwIfImmutable();for(var e=this.childrenLength,t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds,i=1;i 3&&void 0!==arguments[3]&&arguments[3],r=e.length,o=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(r=ze(r,t.length),o=o.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");r=ze(r,n.length),o=o.merge(n.missingOpeningBracketIds)}return i?new st(r,e.listHeight+1,e,t,n,o):new at(r,e.listHeight+1,e,t,n,o)}},{key:"getEmpty",value:function(){return new lt(0,0,[],et.getEmpty())}}]),n}(it),at=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,a,s){var u;return Object(d.a)(this,n),(u=t.call(this,e,i,s))._item1=r,u._item2=o,u._item3=a,u}return Object(h.a)(n,[{key:"childrenLength",get:function(){return null!==this._item3?3:2}},{key:"getChild",value:function(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}},{key:"setChild",value:function(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}},{key:"children",get:function(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}},{key:"item1",get:function(){return this._item1}},{key:"item2",get:function(){return this._item2}},{key:"item3",get:function(){return this._item3}},{key:"deepClone",value:function(){return new n(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}},{key:"appendChildOfSameHeight",value:function(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}},{key:"unappendChild",value:function(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();var e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}},{key:"prependChildOfSameHeight",value:function(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}},{key:"unprependChild",value:function(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();var e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}},{key:"toMutable",value:function(){return this}}]),n}(ot),st=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"toMutable",value:function(){return new at(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}},{key:"throwIfImmutable",value:function(){throw new Error("this instance is immutable")}}]),n}(at),ut=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o){var a;return Object(d.a)(this,n),(a=t.call(this,e,i,o))._children=r,a}return Object(h.a)(n,[{key:"childrenLength",get:function(){return this._children.length}},{key:"getChild",value:function(e){return this._children[e]}},{key:"setChild",value:function(e,t){this._children[e]=t}},{key:"children",get:function(){return this._children}},{key:"deepClone",value:function(){for(var e=new Array(this._children.length),t=0;t this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));for(var t=this.lineIdx,n=this.lineCharOffset,i=0;;){var r=this.lineTokens,o=r.getCount(),a=null;if(this.lineTokenOffset 1e3)break}if(i>1500)break}var p,v,m,b,y=(p=t,v=n,m=this.lineIdx,b=this.lineCharOffset,p!==m?Ve(m-p,b):Ve(0,b-v));return new pt(y,0,-1,et.getEmpty(),new ht(y))}}]),e}(),bt=function(){function e(t,n){Object(d.a)(this,e),this.text=t,this._offset=0,this.idx=0;for(var i,r=n.getRegExpStr()?new RegExp(n.getRegExpStr()+"|\n","g"):null,o=[],a=0,s=0,u=0,l=0,c=new Array,h=0;h<60;h++)c.push(new pt(Ve(0,h),0,-1,et.getEmpty(),new ht(Ve(0,h))));for(var f=new Array,g=0;g<60;g++)f.push(new pt(Ve(1,g),0,-1,et.getEmpty(),new ht(Ve(1,g))));if(r)for(r.lastIndex=0;null!==(i=r.exec(t));){var p=i.index,v=i[0];if("\n"===v)a++,s=p+1;else{if(u!==p){var m=void 0;if(l===a){var b=p-u;if(b 1&&void 0!==arguments[1]&&arguments[1];if(0===e.length)return null;if(1===e.length)return e[0];for(var n=e.length;n>3;){for(var i=n>>1,r=0;r=3?e[2]:null,t)}function Ct(e,t){return Math.abs(e.listHeight-t.listHeight)}function wt(e,t){return e.listHeight===t.listHeight?ot.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){var n,i=e=e.toMutable(),r=new Array;for(;;){if(t.listHeight===i.listHeight){n=t;break}if(4!==i.kind)throw new Error("unexpected");r.push(i),i=i.makeLastElementMutable()}for(var o=r.length-1;o>=0;o--){var a=r[o];n?a.childrenLength>=3?n=ot.create23(a.unappendChild(),n,null,!1):(a.appendChildOfSameHeight(n),n=void 0):a.handleChildrenChanged()}return n?ot.create23(e,n,null,!1):e}(e,t):function(e,t){var n=e=e.toMutable(),i=new Array;for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeFirstElementMutable()}for(var r=t,o=i.length-1;o>=0;o--){var a=i[o];r?a.childrenLength>=3?r=ot.create23(r,a.unprependChild(),null,!1):(a.prependChildOfSameHeight(r),r=void 0):a.handleChildrenChanged()}return r?ot.create23(r,e,null,!1):e}(t,e)}var St=function(){function e(t){Object(d.a)(this,e),this.lastOffset=0,this.nextNodes=[t],this.offsets=[0],this.idxs=[]}return Object(h.a)(e,[{key:"readLongestNodeAt",value:function(e,t){if(Ue(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){var n=Dt(this.nextNodes);if(!n)return;var i=Dt(this.offsets);if(Ue(e,i))return;if(Ue(i,e))if(ze(i,n.length)<=e)this.nextNodeAfterCurrent();else{var r=Ot(n);-1!==r?(this.nextNodes.push(n.getChild(r)),this.offsets.push(i),this.idxs.push(r)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;var o=Ot(n);if(-1===o)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(o)),this.offsets.push(i),this.idxs.push(o)}}}},{key:"nextNodeAfterCurrent",value:function(){for(;;){var e=Dt(this.offsets),t=Dt(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;var n=Dt(this.nextNodes),i=Ot(n,this.idxs[this.idxs.length-1]);if(-1!==i){this.nextNodes.push(n.getChild(i)),this.offsets.push(ze(e,t.length)),this.idxs[this.idxs.length-1]=i;break}this.idxs.pop()}}}]),e}();function Ot(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function Dt(e){return e.length>0?e[e.length-1]:void 0}function Et(e,t,n,i){return new xt(e,t,n,i).parseDocument()}var xt=function(){function e(t,n,i,r){if(Object(d.a)(this,e),this.tokenizer=t,this.createImmutableLists=r,this._itemsConstructed=0,this._itemsFromCache=0,i&&r)throw new Error("Not supported");this.oldNodeReader=i?new St(i):void 0,this.positionMapper=new Ze(n,t.length)}return Object(h.a)(e,[{key:"parseDocument",value:function(){this._itemsConstructed=0,this._itemsFromCache=0;var e=this.parseList(et.getEmpty());return e||(e=ot.getEmpty()),e}},{key:"parseList",value:function(e){for(var t=new Array;;){var n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;var i=this.parseChild(e);4===i.kind&&0===i.childrenLength||t.push(i)}return this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];var t=0;function n(){if(t>=e.length)return null;var n=t,i=e[n].listHeight;for(t++;t =2?kt(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}var i=n(),r=n();if(!r)return i;for(var o=n();o;o=n())Ct(i,r)<=Ct(r,o)?(i=wt(i,r),r=o):r=wt(r,o);return wt(i,r)}(t):kt(t,this.createImmutableLists)}},{key:"parseChild",value:function(e){if(this.oldNodeReader){var t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(0!==t){var n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(function(n){return!!Ue(n.length,t)&&n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}this._itemsConstructed++;var i=this.tokenizer.read();switch(i.kind){case 2:return new gt(i.bracketIds,i.length);case 0:return i.astNode;case 1:var r=e.merge(i.bracketIds),o=this.parseList(r),a=this.tokenizer.peek();return a&&2===a.kind&&(a.bracketId===i.bracketId||a.bracketIds.intersects(i.bracketIds))?(this.tokenizer.read(),rt.create(i.astNode,o,a.astNode)):rt.create(i.astNode,o,null);default:throw new Error("unexpected")}}}]),e}(),Lt=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;if(Object(d.a)(this,n),(r=t.call(this)).textModel=e,r.getLanguageConfiguration=i,r.didChangeEmitter=new g.b,r.denseKeyProvider=new nt,r.brackets=new _t(r.denseKeyProvider,r.getLanguageConfiguration),r.onDidChange=r.didChangeEmitter.event,r._register(e.onBackgroundTokenizationStateChanged((function(){if(2===e.backgroundTokenizationState){var t=void 0===r.initialAstWithoutTokens;r.initialAstWithoutTokens=void 0,t||r.didChangeEmitter.fire()}}))),r._register(e.onDidChangeTokens((function(e){var t=e.ranges.map((function(e){return new Ye(Ve(e.fromLineNumber-1,0),Ve(e.toLineNumber,0),Ve(e.toLineNumber-e.fromLineNumber+1,0))}));r.astWithTokens=r.parseDocumentFromTextBuffer(t,r.astWithTokens,!1),r.initialAstWithoutTokens||r.didChangeEmitter.fire()}))),0===e.backgroundTokenizationState){var o=r.brackets.getSingleLanguageBracketTokens(r.textModel.getLanguageId()),a=new bt(r.textModel.getValue(),o);r.initialAstWithoutTokens=Et(a,[],void 0,!0),r.astWithTokens=r.initialAstWithoutTokens}else 2===e.backgroundTokenizationState?(r.initialAstWithoutTokens=void 0,r.astWithTokens=r.parseDocumentFromTextBuffer([],void 0,!1)):1===e.backgroundTokenizationState&&(r.initialAstWithoutTokens=r.parseDocumentFromTextBuffer([],void 0,!0),r.astWithTokens=r.initialAstWithoutTokens);return r}return Object(h.a)(n,[{key:"didLanguageChange",value:function(e){return this.brackets.didLanguageChange(e)}},{key:"handleContentChanged",value:function(e){var t=e.changes.map((function(e){var t=_.a.lift(e.range);return new Ye(Ge(t.getStartPosition()),Ge(t.getEndPosition()),function(e){var t=Object(v.T)(e);return Ve(t.length-1,t[t.length-1].length)}(e.text))})).reverse();this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(t,this.initialAstWithoutTokens,!1))}},{key:"parseDocumentFromTextBuffer",value:function(e,t,n){var i=t;return Et(new vt(this.textModel,this.brackets),e,i,n)}},{key:"getBracketsInRange",value:function(e){var t=Ve(e.startLineNumber-1,e.startColumn-1),n=Ve(e.endLineNumber-1,e.endColumn-1),i=new Array,r=this.initialAstWithoutTokens||this.astWithTokens;return jt(r,0,r.length,t,n,i),i}},{key:"getBracketPairsInRange",value:function(e,t){var n=new Array,i=Ge(e.getStartPosition()),r=Ge(e.getEndPosition()),o=this.initialAstWithoutTokens||this.astWithTokens,a=new Nt(n,t,this.textModel);return At(o,0,o.length,i,r,a),n}}]),n}(p.a);function jt(e,t,n,r,o,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;if(1===e.kind){var u=$e(t,n);a.push(new Pe(u,s-1,!1))}else if(3===e.kind){var l=$e(t,n);a.push(new Pe(l,s-1,!0))}else if(4===e.kind){var c,d=Object(i.a)(e.children);try{for(d.s();!(c=d.n()).done;){var h=c.value;n=ze(t,h.length),Ke(t,o)&&qe(n,r)&&jt(h,t,n,r,o,a,s),t=n}}catch(v){d.e(v)}finally{d.f()}}else if(2===e.kind){s++;var f=e.openingBracket;if(n=ze(t,f.length),Ke(t,o)&&qe(n,r)&&jt(f,t,n,r,o,a,s),t=n,e.child){var g=e.child;n=ze(t,g.length),Ke(t,o)&&qe(n,r)&&jt(g,t,n,r,o,a,s),t=n}if(e.closingBracket){var p=e.closingBracket;n=ze(t,p.length),Ke(t,o)&&qe(n,r)&&jt(p,t,n,r,o,a,s),t=n}}}var Nt=function e(t,n,i){Object(d.a)(this,e),this.result=t,this.includeMinIndentation=n,this.textModel=i};function At(e,t,n,r,o,a){var s,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;if(2===e.kind){var l=ze(t,e.openingBracket.length),c=-1;a.includeMinIndentation&&(c=e.computeMinIndentation(t,a.textModel)),a.result.push(new Re($e(t,n),$e(t,l),e.closingBracket?$e(ze(l,(null===(s=e.child)||void 0===s?void 0:s.length)||0),n):void 0,u,c)),u++}var d,h=t,f=Object(i.a)(e.children);try{for(f.s();!(d=f.n()).done;){var g=d.value,p=h;h=ze(h,g.length),Ke(p,o)&&Ke(r,h)&&At(g,p,h,r,o,a,u)}}catch(v){f.e(v)}finally{f.f()}}var Tt=n(375),It=n(467),Mt=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(d.a)(this,n),(r=t.call(this)).textModel=e,r.languageConfigurationService=i,r.bracketPairsTree=r._register(new p.d),r.onDidChangeEmitter=new g.b,r.onDidChange=r.onDidChangeEmitter.event,r.bracketsRequested=!1,r._register(e.onDidChangeOptions((function(e){r.bracketPairsTree.clear(),r.updateBracketPairsTree()}))),r._register(e.onDidChangeLanguage((function(e){r.bracketPairsTree.clear(),r.updateBracketPairsTree()}))),r._register(r.languageConfigurationService.onDidChange((function(e){var t;e.languageId&&!(null===(t=r.bracketPairsTree.value)||void 0===t?void 0:t.object.didLanguageChange(e.languageId))||(r.bracketPairsTree.clear(),r.updateBracketPairsTree())}))),r}return Object(h.a)(n,[{key:"isDocumentSupported",get:function(){return this.textModel.getValueLength()<=5e6}},{key:"updateBracketPairsTree",value:function(){var e,t,n=this;if(this.bracketsRequested&&this.isDocumentSupported){if(!this.bracketPairsTree.value){var i=new p.b;this.bracketPairsTree.value=(e=i.add(new Lt(this.textModel,(function(e){return n.languageConfigurationService.getLanguageConfiguration(e)}))),t=i,{object:e,dispose:function(){return null===t||void 0===t?void 0:t.dispose()}}),i.add(this.bracketPairsTree.value.object.onDidChange((function(e){return n.onDidChangeEmitter.fire(e)}))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}},{key:"handleContentChanged",value:function(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleContentChanged(e)}},{key:"getBracketPairsInRange",value:function(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!1))||[]}},{key:"getBracketPairsInRangeWithMinIndentation",value:function(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!0))||[]}},{key:"getBracketsInRange",value:function(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketsInRange(e))||[]}},{key:"findMatchingBracketUp",value:function(e,t){var n=e.toLowerCase(),i=this.textModel.validatePosition(t),r=this.textModel.getLanguageIdAtPosition(i.lineNumber,i.column),o=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!o)return null;var a=o.textIsBracket[n];return a?Pt(this._findMatchingBracketUp(a,i,null)):null}},{key:"matchBracket",value:function(e){return this._matchBracket(this.textModel.validatePosition(e))}},{key:"_establishBracketSearchOffsets",value:function(e,t,n,i){for(var r=t.getCount(),o=t.getLanguageId(i),a=Math.max(0,e.column-1-n.maxBracketLength),s=i-1;s>=0;s--){var u=t.getEndOffset(s);if(u<=a)break;if(Object(Tt.b)(t.getStandardTokenType(s))||t.getLanguageId(s)!==o){a=u;break}}for(var l=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength),c=i+1;c =l)break;if(Object(Tt.b)(t.getStandardTokenType(c))||t.getLanguageId(c)!==o){l=d;break}}return{searchStartOffset:a,searchEndOffset:l}}},{key:"_matchBracket",value:function(e){var t=e.lineNumber,n=this.textModel.getLineTokens(t),i=this.textModel.getLineContent(t),r=n.findTokenIndexAtOffset(e.column-1);if(r<0)return null;var o=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(r)).brackets;if(o&&!Object(Tt.b)(n.getStandardTokenType(r))){for(var a=this._establishBracketSearchOffsets(e,n,o,r),s=a.searchStartOffset,u=a.searchEndOffset,l=null;;){var c=It.a.findNextBracketInRange(o.forwardRegex,t,i,s,u);if(!c)break;if(c.startColumn<=e.column&&e.column<=c.endColumn){var d=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),h=this._matchFoundBracket(c,o.textIsBracket[d],o.textIsOpenBracket[d],null);if(h){if(h instanceof Ft)return null;l=h}}s=c.endColumn-1}if(l)return l}if(r>0&&n.getStartOffset(r)===e.column-1){var f=r-1,g=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(f)).brackets;if(g&&!Object(Tt.b)(n.getStandardTokenType(f))){var p=this._establishBracketSearchOffsets(e,n,g,f),v=p.searchStartOffset,m=p.searchEndOffset,b=It.a.findPrevBracketInRange(g.reversedRegex,t,i,v,m);if(b&&b.startColumn<=e.column&&e.column<=b.endColumn){var y=i.substring(b.startColumn-1,b.endColumn-1).toLowerCase(),_=this._matchFoundBracket(b,g.textIsBracket[y],g.textIsOpenBracket[y],null);if(_)return _ instanceof Ft?null:_}}}return null}},{key:"_matchFoundBracket",value:function(e,t,n,i){if(!t)return null;var r=n?this._findMatchingBracketDown(t,e.getEndPosition(),i):this._findMatchingBracketUp(t,e.getStartPosition(),i);return r?r instanceof Ft?r:[e,r]:null}},{key:"_findMatchingBracketUp",value:function(e,t,n){for(var i=e.languageId,r=e.reversedRegex,o=-1,a=0,s=function(t,i,s,u){for(;;){if(n&&++a%100===0&&!n())return Ft.INSTANCE;var l=It.a.findPrevBracketInRange(r,t,i,s,u);if(!l)break;var c=i.substring(l.startColumn-1,l.endColumn-1).toLowerCase();if(e.isOpen(c)?o++:e.isClose(c)&&o--,0===o)return l;u=l.startColumn-1}return null},u=t.lineNumber;u>=1;u--){var l=this.textModel.getLineTokens(u),c=l.getCount(),d=this.textModel.getLineContent(u),h=c-1,f=d.length,g=d.length;u===t.lineNumber&&(h=l.findTokenIndexAtOffset(t.column-1),f=t.column-1,g=t.column-1);for(var p=!0;h>=0;h--){var v=l.getLanguageId(h)===i&&!Object(Tt.b)(l.getStandardTokenType(h));if(v)p?f=l.getStartOffset(h):(f=l.getStartOffset(h),g=l.getEndOffset(h));else if(p&&f!==g){var m=s(u,d,f,g);if(m)return m}p=v}if(p&&f!==g){var b=s(u,d,f,g);if(b)return b}}return null}},{key:"_findMatchingBracketDown",value:function(e,t,n){for(var i=e.languageId,r=e.forwardRegex,o=1,a=0,s=function(t,i,s,u){for(;;){if(n&&++a%100===0&&!n())return Ft.INSTANCE;var l=It.a.findNextBracketInRange(r,t,i,s,u);if(!l)break;var c=i.substring(l.startColumn-1,l.endColumn-1).toLowerCase();if(e.isOpen(c)?o++:e.isClose(c)&&o--,0===o)return l;s=l.endColumn-1}return null},u=this.textModel.getLineCount(),l=t.lineNumber;l<=u;l++){var c=this.textModel.getLineTokens(l),d=c.getCount(),h=this.textModel.getLineContent(l),f=0,g=0,p=0;l===t.lineNumber&&(f=c.findTokenIndexAtOffset(t.column-1),g=t.column-1,p=t.column-1);for(var v=!0;f =1;r--){var o=this.textModel.getLineTokens(r),a=o.getCount(),s=this.textModel.getLineContent(r),u=a-1,l=s.length,c=s.length;if(r===t.lineNumber){u=o.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1;var d=o.getLanguageId(u);n!==d&&(n=d,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets)}for(var h=!0;u>=0;u--){var f=o.getLanguageId(u);if(n!==f){if(i&&h&&l!==c){var g=It.a.findPrevBracketInRange(i.reversedRegex,r,s,l,c);if(g)return this._toFoundBracket(i,g);h=!1}n=f,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets}var p=!!i&&!Object(Tt.b)(o.getStandardTokenType(u));if(p)h?l=o.getStartOffset(u):(l=o.getStartOffset(u),c=o.getEndOffset(u));else if(i&&h&&l!==c){var v=It.a.findPrevBracketInRange(i.reversedRegex,r,s,l,c);if(v)return this._toFoundBracket(i,v)}h=p}if(i&&h&&l!==c){var m=It.a.findPrevBracketInRange(i.reversedRegex,r,s,l,c);if(m)return this._toFoundBracket(i,m)}}return null}},{key:"findNextBracket",value:function(e){for(var t=this.textModel.validatePosition(e),n=this.textModel.getLineCount(),i=null,r=null,o=t.lineNumber;o<=n;o++){var a=this.textModel.getLineTokens(o),s=a.getCount(),u=this.textModel.getLineContent(o),l=0,c=0,d=0;if(o===t.lineNumber){l=a.findTokenIndexAtOffset(t.column-1),c=t.column-1,d=t.column-1;var h=a.getLanguageId(l);i!==h&&(i=h,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets)}for(var f=!0;l =0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ut=function(e,t){return function(n,i){t(n,i,e)}};function Kt(e){var t=new Ce;return t.acceptChunk(e),t.finish()}function qt(e,t){return("string"===typeof e?Kt(e):e).create(t)}var Gt=0,$t=function(){function e(t){Object(d.a)(this,e),this._source=t,this._eos=!1}return Object(h.a)(e,[{key:"read",value:function(){if(this._eos)return null;for(var e=[],t=0,n=0;;){var i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}}}]),e}(),Yt=function(){throw new Error("Invalid change accessor")},Zt=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,i,r){var o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,u=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0;Object(d.a)(this,n),(o=t.call(this))._undoRedoService=u,o._modeService=l,o._languageConfigurationService=c,o._onWillDispose=o._register(new g.b),o.onWillDispose=o._onWillDispose.event,o._onDidChangeDecorations=o._register(new cn((function(e){return o.handleBeforeFireDecorationsChangedEvent(e)}))),o.onDidChangeDecorations=o._onDidChangeDecorations.event,o._onDidChangeLanguage=o._register(new g.b),o.onDidChangeLanguage=o._onDidChangeLanguage.event,o._onDidChangeLanguageConfiguration=o._register(new g.b),o.onDidChangeLanguageConfiguration=o._onDidChangeLanguageConfiguration.event,o._onDidChangeTokens=o._register(new g.b),o.onDidChangeTokens=o._onDidChangeTokens.event,o._onDidChangeOptions=o._register(new g.b),o.onDidChangeOptions=o._onDidChangeOptions.event,o._onDidChangeAttached=o._register(new g.b),o.onDidChangeAttached=o._onDidChangeAttached.event,o._onDidChangeContentOrInjectedText=o._register(new g.b),o.onDidChangeContentOrInjectedText=o._onDidChangeContentOrInjectedText.event,o._eventEmitter=o._register(new dn),o._backgroundTokenizationState=0,o._onBackgroundTokenizationStateChanged=o._register(new g.b),o.onBackgroundTokenizationStateChanged=o._onBackgroundTokenizationStateChanged.event,o._register(o._eventEmitter.fastEvent((function(e){o._onDidChangeContentOrInjectedText.fire(e.rawContentChangedEvent)}))),Gt++,o.id="$model"+Gt,o.isForSimpleWidget=i.isForSimpleWidget,o._associatedResource="undefined"===typeof s||null===s?m.a.parse("inmemory://model/"+Gt):s,o._attachedEditorCount=0;var h=qt(e,i.defaultEOL),f=h.textBuffer,p=h.disposable;o._buffer=f,o._bufferDisposable=p,o._options=n.resolveOptions(o._buffer,i);var b=o._buffer.getLineCount(),y=o._buffer.getValueLengthInRange(new _.a(1,1,b,o._buffer.getLineLength(b)+1),0);return i.largeFileOptimizations?o._isTooLargeForTokenization=y>n.LARGE_FILE_SIZE_THRESHOLD||b>n.LARGE_FILE_LINE_COUNT_THRESHOLD:o._isTooLargeForTokenization=!1,o._isTooLargeForSyncing=y>n.MODEL_SYNC_LIMIT,o._versionId=1,o._alternativeVersionId=1,o._initialUndoRedoSnapshot=null,o._isDisposed=!1,o._isDisposing=!1,o._languageId=r||Ee.a,o._languageRegistryListener=o._languageConfigurationService.onDidChange((function(e){e.affects(o._languageId)&&o._onDidChangeLanguageConfiguration.fire({})})),o._instanceId=v.S(Gt),o._lastDecorationId=0,o._decorations=Object.create(null),o._decorationsTree=new en,o._commandManager=new w.a(Object(a.a)(o),o._undoRedoService),o._isUndoing=!1,o._isRedoing=!1,o._trimAutoWhitespaceLines=null,o._tokens=new be.d(o._modeService.languageIdCodec),o._tokens2=new be.e(o._modeService.languageIdCodec),o._tokenization=new Ne(Object(a.a)(o),o._modeService.languageIdCodec),o._bracketPairColorizer=o._register(new Mt(Object(a.a)(o),o._languageConfigurationService)),o._decorationProvider=o._register(new Wt(Object(a.a)(o))),o._register(o._decorationProvider.onDidChange((function(){o._onDidChangeDecorations.beginDeferredEmit(),o._onDidChangeDecorations.fire(),o._onDidChangeDecorations.endDeferredEmit()}))),o}return Object(h.a)(n,[{key:"onDidChangeContentFast",value:function(e){return this._eventEmitter.fastEvent((function(t){return e(t.contentChangedEvent)}))}},{key:"onDidChangeContent",value:function(e){return this._eventEmitter.slowEvent((function(t){return e(t.contentChangedEvent)}))}},{key:"bracketPairs",get:function(){return this._bracketPairColorizer}},{key:"backgroundTokenizationState",get:function(){return this._backgroundTokenizationState}},{key:"handleTokenizationProgress",value:function(e){if(2!==this._backgroundTokenizationState){var t=e?2:1;this._backgroundTokenizationState!==t&&(this._backgroundTokenizationState=t,this._onBackgroundTokenizationStateChanged.fire())}}},{key:"dispose",value:function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,Object(s.a)(Object(u.a)(n.prototype),"dispose",this).call(this),this._bufferDisposable.dispose(),this._isDisposing=!1;var e=new _e([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e}},{key:"_assertNotDisposed",value:function(){if(this._isDisposed)throw new Error("Model is disposed!")}},{key:"_emitContentChangedEvent",value:function(e,t){this._bracketPairColorizer.handleContentChanged(t),this._isDisposing||this._eventEmitter.fire(new we.a(e,t))}},{key:"setValue",value:function(e){if(this._assertNotDisposed(),null!==e){var t=qt(e,this._options.defaultEOL),n=t.textBuffer,i=t.disposable;this._setValueFromTextBuffer(n,i)}}},{key:"_createContentChanged2",value:function(e,t,n,i,r,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:r,isRedoing:o,isFlush:a}}},{key:"_setValueFromTextBuffer",value:function(e,t){this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),o=this.getLineMaxColumn(r);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new en,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new we.d([new we.f],this._versionId,!1,!1),this._createContentChanged2(new _.a(1,1,r,o),0,i,this.getValue(),!1,!1,!0))}},{key:"setEOL",value:function(e){this._assertNotDisposed();var t=1===e?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),o=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new we.d([new we.e],this._versionId,!1,!1),this._createContentChanged2(new _.a(1,1,r,o),0,i,this.getValue(),!1,!1,!1))}}},{key:"_onBeforeEOLChange",value:function(){this._decorationsTree.ensureAllNodesHaveRanges(this)}},{key:"_onAfterEOLChange",value:function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,i=t.length;n0}},{key:"getAttachedEditorCount",value:function(){return this._attachedEditorCount}},{key:"isTooLargeForSyncing",value:function(){return this._isTooLargeForSyncing}},{key:"isTooLargeForTokenization",value:function(){return this._isTooLargeForTokenization}},{key:"isDisposed",value:function(){return this._isDisposed}},{key:"isDominatedByLongLines",value:function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var e=0,t=0,n=this._buffer.getLineCount(),i=1;i<=n;i++){var r=this._buffer.getLineLength(i);r>=1e4?t+=r:e+=r}return t>e}},{key:"uri",get:function(){return this._associatedResource}},{key:"getOptions",value:function(){return this._assertNotDisposed(),this._options}},{key:"getFormattingOptions",value:function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}},{key:"updateOptions",value:function(e){this._assertNotDisposed();var t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.indentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,a=new C.h({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r,bracketPairColorizationOptions:o});if(!this._options.equals(a)){var s=this._options.createChangeEvent(a);this._options=a,this._onDidChangeOptions.fire(s)}}},{key:"detectIndentation",value:function(e,t){this._assertNotDisposed();var n=D(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}},{key:"normalizeIndentation",value:function(e){return this._assertNotDisposed(),n.normalizeIndentation(e,this._options.indentSize,this._options.insertSpaces)}},{key:"getVersionId",value:function(){return this._assertNotDisposed(),this._versionId}},{key:"mightContainRTL",value:function(){return this._buffer.mightContainRTL()}},{key:"mightContainUnusualLineTerminators",value:function(){return this._buffer.mightContainUnusualLineTerminators()}},{key:"removeUnusualLineTerminators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.findMatches(v.c.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((function(e){return{range:e.range,text:null}})),(function(){return null}))}},{key:"mightContainNonBasicASCII",value:function(){return this._buffer.mightContainNonBasicASCII()}},{key:"getAlternativeVersionId",value:function(){return this._assertNotDisposed(),this._alternativeVersionId}},{key:"getInitialUndoRedoSnapshot",value:function(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}},{key:"getOffsetAt",value:function(e){this._assertNotDisposed();var t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}},{key:"getPositionAt",value:function(e){this._assertNotDisposed();var t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}},{key:"_increaseVersionId",value:function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}},{key:"_overwriteVersionId",value:function(e){this._versionId=e}},{key:"_overwriteAlternativeVersionId",value:function(e){this._alternativeVersionId=e}},{key:"_overwriteInitialUndoRedoSnapshot",value:function(e){this._initialUndoRedoSnapshot=e}},{key:"getValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i}},{key:"createSnapshot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new $t(this._buffer.createSnapshot(e))}},{key:"getValueLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i}},{key:"getValueInRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}},{key:"getValueLengthInRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}},{key:"getCharacterCountInRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}},{key:"getLineCount",value:function(){return this._assertNotDisposed(),this._buffer.getLineCount()}},{key:"getLineContent",value:function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}},{key:"getLineLength",value:function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}},{key:"getLinesContent",value:function(){return this._assertNotDisposed(),this._buffer.getLinesContent()}},{key:"getEOL",value:function(){return this._assertNotDisposed(),this._buffer.getEOL()}},{key:"getEndOfLineSequence",value:function(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}},{key:"getLineMinColumn",value:function(e){return this._assertNotDisposed(),1}},{key:"getLineMaxColumn",value:function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}},{key:"getLineFirstNonWhitespaceColumn",value:function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}},{key:"getLineLastNonWhitespaceColumn",value:function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}},{key:"_validateRangeRelaxedNoAllocations",value:function(e){var t=this._buffer.getLineCount(),n=e.startLineNumber,i=e.startColumn,r=Math.floor("number"!==typeof n||isNaN(n)?1:n),o=Math.floor("number"!==typeof i||isNaN(i)?1:i);if(r<1)r=1,o=1;else if(r>t)r=t,o=this.getLineMaxColumn(r);else if(o<=1)o=1;else{var a=this.getLineMaxColumn(r);o>=a&&(o=a)}var s=e.endLineNumber,u=e.endColumn,l=Math.floor("number"!==typeof s||isNaN(s)?1:s),c=Math.floor("number"!==typeof u||isNaN(u)?1:u);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{var d=this.getLineMaxColumn(l);c>=d&&(c=d)}return n===r&&i===o&&s===l&&u===c&&e instanceof _.a&&!(e instanceof k.a)?e:new _.a(r,o,l,c)}},{key:"_isValidPosition",value:function(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){var i=this._buffer.getLineCharCode(e,t-2);if(v.G(i))return!1}return!0}},{key:"_validatePosition",value:function(e,t,n){var i=Math.floor("number"!==typeof e||isNaN(e)?1:e),r=Math.floor("number"!==typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(i<1)return new y.a(1,1);if(i>o)return new y.a(o,this.getLineMaxColumn(o));if(r<=1)return new y.a(i,1);var a=this.getLineMaxColumn(i);if(r>=a)return new y.a(i,a);if(1===n){var s=this._buffer.getLineCharCode(i,r-2);if(v.G(s))return new y.a(i,r-1)}return new y.a(i,r)}},{key:"validatePosition",value:function(e){return this._assertNotDisposed(),e instanceof y.a&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}},{key:"_isValidRange",value:function(e,t){var n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,o,0))return!1;if(1===t){var a=i>1?this._buffer.getLineCharCode(n,i-2):0,s=o>1&&o<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,o-2):0,u=v.G(a),l=v.G(s);return!u&&!l}return!0}},{key:"validateRange",value:function(e){if(this._assertNotDisposed(),e instanceof _.a&&!(e instanceof k.a)&&this._isValidRange(e,1))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),i=t.lineNumber,r=t.column,o=n.lineNumber,a=n.column,s=r>1?this._buffer.getLineCharCode(i,r-2):0,u=a>1&&a<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,a-2):0,l=v.G(s),c=v.G(u);return l||c?i===o&&r===a?new _.a(i,r-1,o,a-1):l&&c?new _.a(i,r-1,o,a+1):l?new _.a(i,r-1,o,a):new _.a(i,r,o,a+1):new _.a(i,r,o,a)}},{key:"modifyPosition",value:function(e,t){this._assertNotDisposed();var n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}},{key:"getFullModelRange",value:function(){this._assertNotDisposed();var e=this.getLineCount();return new _.a(1,1,e,this.getLineMaxColumn(e))}},{key:"findMatchesLineByLine",value:function(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)}},{key:"findMatches",value:function(e,t,n,i,r,o){var a=this,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:999;this._assertNotDisposed();var u=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((function(e){return _.a.isIRange(e)}))&&(u=t.map((function(e){return a.validateRange(e)})))),null===u&&(u=[this.getFullModelRange()]),u=u.sort((function(e,t){return e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn}));var l,c=[];if(c.push(u.reduce((function(e,t){return _.a.areIntersecting(e,t)?e.plusRange(t):(c.push(e),t)}))),!n&&e.indexOf("\n")<0){var d=new ue.a(e,n,i,r),h=d.parseSearchRequest();if(!h)return[];l=function(e){return a.findMatchesLineByLine(e,h,o,s)}}else l=function(t){return ue.c.findMatches(a,new ue.a(e,n,i,r),t,o,s)};return c.map(l).reduce((function(e,t){return e.concat(t)}),[])}},{key:"findNextMatch",value:function(e,t,n,i,r,o){this._assertNotDisposed();var a=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var s=new ue.a(e,n,i,r).parseSearchRequest();if(!s)return null;var u=this.getLineCount(),l=new _.a(a.lineNumber,a.column,u,this.getLineMaxColumn(u)),c=this.findMatchesLineByLine(l,s,o,1);return ue.c.findNextMatch(this,new ue.a(e,n,i,r),a,o),c.length>0?c[0]:(l=new _.a(1,1,a.lineNumber,this.getLineMaxColumn(a.lineNumber)),(c=this.findMatchesLineByLine(l,s,o,1)).length>0?c[0]:null)}return ue.c.findNextMatch(this,new ue.a(e,n,i,r),a,o)}},{key:"findPreviousMatch",value:function(e,t,n,i,r,o){this._assertNotDisposed();var a=this.validatePosition(t);return ue.c.findPreviousMatch(this,new ue.a(e,n,i,r),a,o)}},{key:"pushStackElement",value:function(){this._commandManager.pushStackElement()}},{key:"popStackElement",value:function(){this._commandManager.popStackElement()}},{key:"pushEOL",value:function(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}},{key:"_validateEditOperation",value:function(e){return e instanceof C.i?e:new C.i(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}},{key:"_validateEditOperations",value:function(e){for(var t=[],n=0,i=e.length;nu.endLineNumber,g=u.startLineNumber>h.endLineNumber;if(!f&&!g){l=!0;break}}if(!l){o=!1;break}}if(o)for(var p=0,v=this._trimAutoWhitespaceLines.length;pS.endLineNumber)&&(!(m===S.startLineNumber&&S.startColumn===b&&S.isEmpty()&&O&&O.length>0&&"\n"===O.charAt(0))&&!(m===S.startLineNumber&&1===S.startColumn&&S.isEmpty()&&O&&O.length>0&&"\n"===O.charAt(O.length-1)))){y=!1;break}}if(y){var D=new _.a(m,1,m,b);t.push(new C.i(null,D,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n)}},{key:"_applyUndo",value:function(e,t,n,i){var r=this,o=e.map((function(e){var t=r.getPositionAt(e.newPosition),n=r.getPositionAt(e.newEnd);return{range:new _.a(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(o,t,!0,!1,n,i)}},{key:"_applyRedo",value:function(e,t,n,i){var r=this,o=e.map((function(e){var t=r.getPositionAt(e.oldPosition),n=r.getPositionAt(e.oldEnd);return{range:new _.a(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(o,t,!1,!0,n,i)}},{key:"_applyUndoRedoEdits",value:function(e,t,n,i,r,o){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=i,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(r)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(o),this._onDidChangeDecorations.endDeferredEmit()}}},{key:"applyEdits",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();var n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}},{key:"_doApplyEdits",value:function(e,t){var n=this,i=this._buffer.getLineCount(),r=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),a=this._buffer.getLineCount(),s=r.changes;if(this._trimAutoWhitespaceLines=r.trimAutoWhitespaceLineNumbers,0!==s.length){for(var u=0,l=s.length;u 0?c.text.charCodeAt(0):0),this._decorationsTree.acceptReplace(c.rangeOffset,c.rangeLength,c.text.length,c.forceMoveMarkers)}var v=[];this._increaseVersionId();for(var m=i,b=0,_=s.length;b<_;b++){var k=s[b],C=Object(be.f)(k.text),w=Object(o.a)(C,1)[0];this._onDidChangeDecorations.fire();for(var S=k.range.startLineNumber,O=k.range.endLineNumber,D=O-S,E=w,x=Math.min(D,E),L=E-D,j=a-m-L+S,N=j,A=j+E,T=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new y.a(N,1)),this.getOffsetAt(new y.a(A,this.getLineMaxColumn(A))),0),I=we.b.fromDecorations(T),M=new Se.a(I),F=function(e){var t=S+e,i=j+e;M.takeFromEndWhile((function(e){return e.lineNumber>i}));var r=M.takeFromEndWhile((function(e){return e.lineNumber===i}));v.push(new we.g(t,n.getLineContent(i),r))},P=x;P>=0;P--)F(P);if(x 1&&void 0!==arguments[1]?arguments[1]:0;this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}},{key:"_changeDecorations",value:function(e,t){var n=this,i={addDecoration:function(t,i){return n._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0]},changeDecoration:function(e,t){n._changeDecorationImpl(e,t)},changeDecorationOptions:function(e,t){n._changeDecorationOptionsImpl(e,ln(t))},removeDecoration:function(t){n._deltaDecorationsImpl(e,[t],[])},deltaDecorations:function(t,i){return 0===t.length&&0===i.length?[]:n._deltaDecorationsImpl(e,t,i)}},r=null;try{r=t(i)}catch(o){Object(f.f)(o)}return i.addDecoration=Yt,i.changeDecoration=Yt,i.changeDecorationOptions=Yt,i.removeDecoration=Yt,i.deltaDecorations=Yt,r}},{key:"deltaDecorations",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}}},{key:"_getTrackedRange",value:function(e){return this.getDecorationRange(e)}},{key:"_setTrackedRange",value:function(e,t,n){var i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:un[n]}])[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;var r=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),a=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),o,a,r),i.setOptions(un[n]),this._decorationsTree.insert(i),i.id}},{key:"removeAllDecorationsWithOwnerId",value:function(e){if(!this._isDisposed)for(var t=this._decorationsTree.collectNodesFromOwner(e),n=0,i=t.length;n1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}},{key:"getLinesDecorations",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.getLineCount(),a=Math.min(o,Math.max(1,e)),s=Math.min(o,Math.max(1,t)),u=this.getLineMaxColumn(s),l=new _.a(a,1,s,u),c=this._getDecorationsInRange(l,n,i);return c.push.apply(c,Object(r.a)(this._decorationProvider.getDecorationsInRange(l,n,i))),c}},{key:"getDecorationsInRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.validateRange(e),o=this._getDecorationsInRange(i,t,n);return o.push.apply(o,Object(r.a)(this._decorationProvider.getDecorationsInRange(i,t,n))),o}},{key:"getOverviewRulerDecorations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._decorationsTree.getAll(this,e,t,!0)}},{key:"getInjectedTextDecorations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this._decorationsTree.getAllInjectedText(this,e)}},{key:"_getInjectedTextInLine",value:function(e){var t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),i=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return we.b.fromDecorations(i).filter((function(t){return t.lineNumber===e}))}},{key:"getAllDecorations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this._decorationsTree.getAll(this,e,t,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t))}},{key:"_getDecorationsInRange",value:function(e,t,n){var i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),r=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,i,r,t,n)}},{key:"getRangeAt",value:function(e,t){return this._buffer.getRangeAt(e,t-e)}},{key:"_changeDecorationImpl",value:function(e,t){var n=this._decorations[e];if(n){if(n.options.after){var i=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber)}if(n.options.before){var r=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}var o=this._validateRangeRelaxedNoAllocations(t),a=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),s=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),a,s,o),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.startLineNumber)}}},{key:"_changeDecorationOptionsImpl",value:function(e,t){var n=this._decorations[e];if(n){var i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){var o=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.endLineNumber)}if(n.options.before||t.before){var a=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.startLineNumber)}i!==r?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}}},{key:"_deltaDecorationsImpl",value:function(e,t,n){for(var i=this.getVersionId(),r=t.length,o=0,a=n.length,s=0,u=new Array(a);o 1&&void 0!==arguments[1]&&arguments[1];if(0!==e.length){for(var n=[],i=0,r=e.length;i 0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:n})}this.handleTokenizationProgress(t)}},{key:"setSemanticTokens",value:function(e,t){this._tokens2.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})}},{key:"hasCompleteSemanticTokens",value:function(){return this._tokens2.isComplete()}},{key:"hasSomeSemanticTokens",value:function(){return!this._tokens2.isEmpty()}},{key:"setPartialSemanticTokens",value:function(e,t){if(!this.hasCompleteSemanticTokens()){var n=this._tokens2.setPartial(e,t);this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}}},{key:"tokenizeViewport",value:function(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}},{key:"clearTokens",value:function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})}},{key:"_emitModelTokensChangedEvent",value:function(e){this._isDisposing||this._onDidChangeTokens.fire(e)}},{key:"resetTokenization",value:function(){this._tokenization.reset()}},{key:"forceTokenization",value:function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}},{key:"isCheapToTokenize",value:function(e){return this._tokenization.isCheapToTokenize(e)}},{key:"tokenizeIfCheap",value:function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}},{key:"getLineTokens",value:function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}},{key:"_getLineTokens",value:function(e){var t=this.getLineContent(e),n=this._tokens.getTokens(this._languageId,e-1,t);return this._tokens2.addSemanticTokens(e,n)}},{key:"getLanguageId",value:function(){return this._languageId}},{key:"setMode",value:function(e){if(this._languageId!==e){var t={oldLanguage:this._languageId,newLanguage:e};this._languageId=e,this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}}},{key:"getLanguageIdAtPosition",value:function(e,t){var n=this.validatePosition(new y.a(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))}},{key:"getTokenTypeIfInsertingCharacter",value:function(e,t,n){var i=this.validatePosition(new y.a(e,t));return this._tokenization.getTokenTypeIfInsertingCharacter(i,n)}},{key:"getLanguageConfiguration",value:function(e){return this._languageConfigurationService.getLanguageConfiguration(e)}},{key:"getWordAtPosition",value:function(e){this._assertNotDisposed();var t=this.validatePosition(e),i=this.getLineContent(t.lineNumber),r=this._getLineTokens(t.lineNumber),a=r.findTokenIndexAtOffset(t.column-1),s=n._findLanguageBoundaries(r,a),u=Object(o.a)(s,2),l=u[0],c=u[1],d=Object(Te.d)(t.column,this.getLanguageConfiguration(r.getLanguageId(a)).getWordDefinition(),i.substring(l,c),l);if(d&&d.startColumn<=e.column&&e.column<=d.endColumn)return d;if(a>0&&l===t.column-1){var h=n._findLanguageBoundaries(r,a-1),f=Object(o.a)(h,2),g=f[0],p=f[1],v=Object(Te.d)(t.column,this.getLanguageConfiguration(r.getLanguageId(a-1)).getWordDefinition(),i.substring(g,p),g);if(v&&v.startColumn<=e.column&&e.column<=v.endColumn)return v}return null}},{key:"getWordUntilPosition",value:function(e){var t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}},{key:"_computeIndentLevel",value:function(e){return n.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)}},{key:"getActiveIndentGuide",value:function(e,t,n){var i=this;this._assertNotDisposed();var r=this.getLineCount();if(e<1||e>r)throw new Error("Illegal value for lineNumber");for(var o=this.getLanguageConfiguration(this._languageId).foldingRules,a=Boolean(o&&o.offSide),s=-2,u=-1,l=-2,c=-1,d=function(e){if(-1!==s&&(-2===s||s>e-1)){s=-1,u=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){s=t,u=n;break}}}if(-2===l){l=-1,c=-1;for(var o=e;o =0){l=o,c=a;break}}}},h=-2,f=-1,g=-2,p=-1,v=function(e){if(-2===h){h=-1,f=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){h=t,f=n;break}}}if(-1!==g&&(-2===g||g =0){g=o,p=a;break}}}},m=0,b=!0,y=0,_=!0,k=0,C=0,w=0;b||_;w++){var S=e-w,O=e+w;w>1&&(S<1||S 1&&(O>r||O>n)&&(_=!1),w>5e4&&(b=!1,_=!1);var D=-1;if(b){var E=this._computeIndentLevel(S-1);E>=0?(l=S-1,c=E,D=Math.ceil(E/this._options.indentSize)):(d(S),D=this._getIndentLevelForWhitespaceLine(a,u,c))}var x=-1;if(_){var L=this._computeIndentLevel(O-1);L>=0?(h=O-1,f=L,x=Math.ceil(L/this._options.indentSize)):(v(O),x=this._getIndentLevelForWhitespaceLine(a,f,p))}if(0!==w){if(1===w){if(O<=r&&x>=0&&C+1===x){b=!1,m=O,y=O,k=x;continue}if(S>=1&&D>=0&&D-1===C){_=!1,m=S,y=S,k=D;continue}if(m=e,y=e,0===(k=C))return{startLineNumber:m,endLineNumber:y,indent:k}}b&&(D>=k?m=S:b=!1),_&&(x>=k?y=O:_=!1)}else C=D}return{startLineNumber:m,endLineNumber:y,indent:k}}},{key:"getLinesBracketGuides",value:function(e,t,n,r){var o,a,s,u,l,c=this,d=[],h=this._bracketPairColorizer.getBracketPairsInRangeWithMinIndentation(new _.a(e,1,t,this.getLineMaxColumn(t))),f=void 0;if(n&&h.length>0){var g=e<=n.lineNumber&&n.lineNumber<=t?h.filter((function(e){return _.a.strictContainsPosition(e.range,n)})):this._bracketPairColorizer.getBracketPairsInRange(_.a.fromPositions(n));f=null===(o=Object(Se.i)(g,(function(e){return e.range.startLineNumber!==e.range.endLineNumber})))||void 0===o?void 0:o.range}for(var p=new Se.a(h),m=new Array,b=new Array,y=new Xt,k=function(e){var t=new Array;b.length>0&&(t=t.concat(b),b.length=0),d.push(t);var n,o=Object(i.a)(p.takeWhile((function(t){return t.openingBracketRange.startLineNumber<=e}))||[]);try{for(o.s();!(n=o.n()).done;){var h=n.value;if(h.range.startLineNumber!==h.range.endLineNumber){var g=Math.min(c.getVisibleColumnFromPosition(h.openingBracketRange.getStartPosition()),c.getVisibleColumnFromPosition(null!==(s=null===(a=h.closingBracketRange)||void 0===a?void 0:a.getStartPosition())&&void 0!==s?s:h.range.getEndPosition()),h.minVisibleColumnIndentation+1),_=!1;if(h.closingBracketRange)v.w(c.getLineContent(h.closingBracketRange.startLineNumber)) =0;j--){var N=m[j];if(N){var A=r.highlightActive&&f&&N.bracketPair.range.equalsRange(f),T=y.getInlineClassNameOfLevel(N.nestingLevel)+(A?" "+y.activeClassName:"");(A||r.includeInactive)&&N.renderHorizontalEndLineAtTheBottom&&N.end.lineNumber===e+1&&b.push(new C.d(N.guideVisibleColumn,T,null)),N.end.lineNumber<=e||N.start.lineNumber>=e||N.guideVisibleColumn>=L&&!A||(L=N.guideVisibleColumn,(A||r.includeInactive)&&t.push(new C.d(N.guideVisibleColumn,T,null)))}}t.sort((function(e,t){return e.visibleColumn-t.visibleColumn}))},w=e;w<=t;w++)k(w);return d}},{key:"getVisibleColumnFromPosition",value:function(e){return Je.a.visibleColumnFromColumn(this.getLineContent(e.lineNumber),e.column,this._options.tabSize)+1}},{key:"getLinesIndentGuides",value:function(e,t){this._assertNotDisposed();var n=this.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");for(var i=this.getLanguageConfiguration(this._languageId).foldingRules,r=Boolean(i&&i.offSide),o=new Array(t-e+1),a=-2,s=-1,u=-2,l=-1,c=e;c<=t;c++){var d=c-e,h=this._computeIndentLevel(c-1);if(h>=0)a=c-1,s=h,o[d]=Math.ceil(h/this._options.indentSize);else{if(-2===a){a=-1,s=-1;for(var f=c-2;f>=0;f--){var g=this._computeIndentLevel(f);if(g>=0){a=f,s=g;break}}}if(-1!==u&&(-2===u||u =0){u=p,l=v;break}}}o[d]=this._getIndentLevelForWhitespaceLine(r,s,l)}}return o}},{key:"_getIndentLevelForWhitespaceLine",value:function(e,t,n){return-1===t||-1===n?0:t =0&&e.getLanguageId(r)===n;r--)i=e.getStartOffset(r);for(var o=e.getLineContent().length,a=t,s=e.getCount();a 0&&void 0!==arguments[0]?arguments[0]:null;if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;var t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}},{key:"fire",value:function(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}]),n}(p.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var i=n(74),r=n(75),o=function(){function e(t){Object(i.a)(this,e),this.domNode=t,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}return Object(r.a)(e,[{key:"setMaxWidth",value:function(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")}},{key:"setWidth",value:function(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")}},{key:"setHeight",value:function(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")}},{key:"setTop",value:function(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")}},{key:"unsetTop",value:function(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")}},{key:"setLeft",value:function(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")}},{key:"setBottom",value:function(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")}},{key:"setRight",value:function(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")}},{key:"setFontFamily",value:function(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}},{key:"setFontWeight",value:function(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}},{key:"setFontSize",value:function(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")}},{key:"setFontFeatureSettings",value:function(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}},{key:"setLineHeight",value:function(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")}},{key:"setLetterSpacing",value:function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")}},{key:"setClassName",value:function(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}},{key:"toggleClassName",value:function(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}},{key:"setDisplay",value:function(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}},{key:"setPosition",value:function(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}},{key:"setVisibility",value:function(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}},{key:"setBackgroundColor",value:function(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}},{key:"setLayerHinting",value:function(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}},{key:"setBoxShadow",value:function(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}},{key:"setContain",value:function(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}},{key:"setAttribute",value:function(e,t){this.domNode.setAttribute(e,t)}},{key:"removeAttribute",value:function(e){this.domNode.removeAttribute(e)}},{key:"appendChild",value:function(e){this.domNode.appendChild(e.domNode)}},{key:"removeChild",value:function(e){this.domNode.removeChild(e.domNode)}}]),e}();function a(e){return new o(e)}},,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(74),r=n(75),o=n(635),a=n(109),s=new(function(){function e(){Object(i.a)(this,e),this.data=new Map}return Object(r.a)(e,[{key:"add",value:function(e,t){o.a(a.l(e)),o.a(a.k(t)),o.a(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}},{key:"as",value:function(e){return this.data.get(e)||null}}]),e}())},,function(e,t,n){"use strict";n.r(t),n.d(t,"getZoomLevel",(function(){return s})),n.d(t,"getTimeSinceLastZoomLevelChanged",(function(){return u})),n.d(t,"onDidChangeZoomLevel",(function(){return l})),n.d(t,"getZoomFactor",(function(){return c})),n.d(t,"getPixelRatio",(function(){return d})),n.d(t,"isFirefox",(function(){return f})),n.d(t,"isWebKit",(function(){return g})),n.d(t,"isChrome",(function(){return p})),n.d(t,"isSafari",(function(){return v})),n.d(t,"isWebkitWebView",(function(){return m})),n.d(t,"isEdgeLegacyWebView",(function(){return b})),n.d(t,"isElectron",(function(){return y})),n.d(t,"isAndroid",(function(){return _})),n.d(t,"isStandalone",(function(){return k}));var i=n(74),r=n(75),o=n(84),a=function(){function e(){Object(i.a)(this,e),this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new o.b,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1}return Object(r.a)(e,[{key:"getZoomLevel",value:function(){return this._zoomLevel}},{key:"getTimeSinceLastZoomLevelChanged",value:function(){return Date.now()-this._lastZoomLevelChangeTime}},{key:"getZoomFactor",value:function(){return this._zoomFactor}},{key:"getPixelRatio",value:function(){var e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}}]),e}();function s(){return a.INSTANCE.getZoomLevel()}function u(){return a.INSTANCE.getTimeSinceLastZoomLevelChanged()}function l(e){return a.INSTANCE.onDidChangeZoomLevel(e)}function c(){return a.INSTANCE.getZoomFactor()}function d(){return a.INSTANCE.getPixelRatio()}a.INSTANCE=new a;var h=navigator.userAgent,f=h.indexOf("Firefox")>=0,g=h.indexOf("AppleWebKit")>=0,p=h.indexOf("Chrome")>=0,v=!p&&h.indexOf("Safari")>=0,m=!p&&!v&&g,b=h.indexOf("Edge/")>=0&&h.indexOf("WebView/")>=0,y=h.indexOf("Electron/")>=0,_=h.indexOf("Android")>=0,k=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},function(e,t,n){"use strict";n.d(t,"f",(function(){return C})),n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return S})),n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return D})),n.d(t,"c",(function(){return E}));var i=n(26),r=n(76),o=n(77),a=n(27),s=n(78),u=n(75),l=n(74),c=n(167),d=n(125),h=n(84),f=n(185),g=n(79),p=n(233),v=n(121),m=n(99),b=n(89),y=n(94),_=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},k=function(e,t){return function(n,i){t(n,i,e)}};function C(e){return void 0!==e.command}var w=function e(t){Object(l.a)(this,e),this.id=e._idPool++,this._debugName=t};w._idPool=0,w.CommandPalette=new w("CommandPalette"),w.EditorContext=new w("EditorContext"),w.SimpleEditorContext=new w("SimpleEditorContext"),w.EditorContextCopy=new w("EditorContextCopy"),w.EditorContextPeek=new w("EditorContextPeek"),w.MenubarEditMenu=new w("MenubarEditMenu"),w.MenubarCopy=new w("MenubarCopy"),w.MenubarGoMenu=new w("MenubarGoMenu"),w.MenubarSelectionMenu=new w("MenubarSelectionMenu"),w.InlineCompletionsActions=new w("InlineCompletionsActions");var S=Object(b.c)("menuService"),O=new(function(){function e(){Object(l.a)(this,e),this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new h.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:function(e){return e===w.CommandPalette}}}return Object(u.a)(e,[{key:"addCommand",value:function(e){return this.addCommands(f.a.single(e))}},{key:"addCommands",value:function(e){var t,n=this,i=Object(s.a)(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;this._commands.set(r.id,r)}}catch(o){i.e(o)}finally{i.f()}return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(g.i)((function(){var t,i=!1,r=Object(s.a)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;i=n._commands.delete(a.id)||i}}catch(o){r.e(o)}finally{r.f()}i&&n._onDidChangeMenu.fire(n._commandPaletteChangeEvent)}))}},{key:"getCommand",value:function(e){return this._commands.get(e)}},{key:"getCommands",value:function(){var e=new Map;return this._commands.forEach((function(t,n){return e.set(n,t)})),e}},{key:"appendMenuItem",value:function(e,t){return this.appendMenuItems(f.a.single({id:e,item:t}))}},{key:"appendMenuItems",value:function(e){var t,n=this,i=new Set,r=new p.a,o=Object(s.a)(e);try{for(o.s();!(t=o.n()).done;){var a=t.value,u=a.id,l=a.item,c=this._menuItems.get(u);c||(c=new p.a,this._menuItems.set(u,c)),r.push(c.push(l)),i.add(u)}}catch(d){o.e(d)}finally{o.f()}return this._onDidChangeMenu.fire(i),Object(g.i)((function(){if(r.size>0){var e,t=Object(s.a)(r);try{for(t.s();!(e=t.n()).done;){(0,e.value)()}}catch(d){t.e(d)}finally{t.f()}n._onDidChangeMenu.fire(i),r.clear()}}))}},{key:"getMenuItems",value:function(e){var t;return t=this._menuItems.has(e)?Object(a.a)(this._menuItems.get(e)):[],e===w.CommandPalette&&this._appendImplicitItems(t),t}},{key:"_appendImplicitItems",value:function(e){var t,n=new Set,i=Object(s.a)(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;C(r)&&(n.add(r.command.id),r.alt&&n.add(r.alt.id))}}catch(o){i.e(o)}finally{i.f()}this._commands.forEach((function(t,i){n.has(i)||e.push({command:t})}))}}]),e}()),D=function(e){Object(r.a)(n,e);var t=Object(o.a)(n);function n(e,i,r,o){var a;return Object(l.a)(this,n),(a=t.call(this,"submenuitem.".concat(e.submenu.id),"string"===typeof e.title?e.title:e.title.value,[],"submenu")).item=e,a._menuService=i,a._contextKeyService=r,a._options=o,a}return Object(u.a)(n,[{key:"actions",get:function(){var e=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),n=t.getActions(this._options);t.dispose();var r,o=Object(s.a)(n);try{for(o.s();!(r=o.n()).done;){var u=Object(i.a)(r.value,2)[1];u.length>0&&(e.push.apply(e,Object(a.a)(u)),e.push(new c.d))}}catch(l){o.e(l)}finally{o.f()}return e.length&&e.pop(),e}}]),n}(c.e),E=function(){function e(t,n,i,r,o){var a,s;if(Object(l.a)(this,e),this._commandService=o,this.id=t.id,this.label=(null===i||void 0===i?void 0:i.renderShortTitle)&&t.shortTitle?"string"===typeof t.shortTitle?t.shortTitle:t.shortTitle.value:"string"===typeof t.title?t.title:t.title.value,this.tooltip=null!==(s="string"===typeof t.tooltip?t.tooltip:null===(a=t.tooltip)||void 0===a?void 0:a.value)&&void 0!==s?s:"",this.enabled=!t.precondition||r.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){var u=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=r.contextMatchesRules(u.condition),this.checked&&u.tooltip&&(this.tooltip="string"===typeof u.tooltip?u.tooltip:u.tooltip.value),u.title&&(this.label="string"===typeof u.title?u.title:u.title.value)}this.item=t,this.alt=n?new e(n,void 0,i,r,o):void 0,this._options=i,y.d.isThemeIcon(t.icon)&&(this.class=d.a.asClassName(t.icon))}return Object(u.a)(e,[{key:"dispose",value:function(){}},{key:"run",value:function(){var e,t,n,i=[];if((null===(t=this._options)||void 0===t?void 0:t.arg)&&(i=[].concat(Object(a.a)(i),[this._options.arg])),null===(n=this._options)||void 0===n?void 0:n.shouldForwardArgs){for(var r=arguments.length,o=new Array(r),s=0;s=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function g(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(i)return V(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function v(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function m(e,t,n,i,r){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=u.from(t,i)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,i,r);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,i,r){var o,a=1,s=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var c=-1;for(o=n;o s&&(n=s-u),o=n;o>=0;o--){for(var d=!0,h=0;hr&&(i=r):i=r;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function O(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function D(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r239?4:l>223?3:l>191?2:1;if(r+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:128===(192&(o=e[r+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[r+1],a=e[r+2],128===(192&o)&&128===(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[r+1],a=e[r+2],s=e[r+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=d}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i 0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... "))," "},u.prototype.compare=function(e,t,n,i,r){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(i>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,r),c=e.slice(t,n),d=0;d r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function x(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;ri)&&(n=i);for(var r="",o=t;o n)throw new RangeError("Trying to access beyond buffer length")}function T(e,t,n,i,r,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t e.length)throw new RangeError("Index out of range")}function I(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r >>8*(i?r:1-r)}function M(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r >>8*(i?r:3-r)&255}function F(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,n,i,o){return o||F(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function R(e,t,n,i,o){return o||F(e,0,n,8),r.write(e,t,n,i,52,8),n+8}u.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t 0&&(r*=256);)i+=this[e+--t]*r;return i},u.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var i=this[e],r=1,o=0;++o =(r*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),r.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),r.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),r.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),r.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||T(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o =0&&(o*=256);)this[t+r]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);T(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o >0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);T(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return P(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return P(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i =this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t =0;--r)e[r+t]=this[r+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r >>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o 55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function z(e,t,n,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(140))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return h}));var i=n(78),r=n(109);function o(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(n){e[n]&&"object"===typeof e[n]?t[n]=o(e[n]):t[n]=e[n]})),t}function a(e){if(!e||"object"!==typeof e)return e;for(var t=[e];t.length>0;){var n=t.shift();for(var i in Object.freeze(n),n)if(s.call(n,i)){var r=n[i];"object"!==typeof r||Object.isFrozen(r)||t.push(r)}}return e}var s=Object.prototype.hasOwnProperty;function u(e,t){return l(e,t,new Set)}function l(e,t,n){if(Object(r.n)(e))return e;var o=t(e);if("undefined"!==typeof o)return o;if(Object(r.f)(e)){var a,u=[],c=Object(i.a)(e);try{for(c.s();!(a=c.n()).done;){var d=a.value;u.push(l(d,t,n))}}catch(g){c.e(g)}finally{c.f()}return u}if(Object(r.k)(e)){if(n.has(e))throw new Error("Cannot clone recursive data-structure");n.add(e);var h={};for(var f in e)s.call(e,f)&&(h[f]=l(e[f],t,n));return n.delete(e),h}return e}function c(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Object(r.k)(e)?(Object(r.k)(t)&&Object.keys(t).forEach((function(i){i in e?n&&(Object(r.k)(e[i])&&Object(r.k)(t[i])?c(e[i],t[i],n):e[i]=t[i]):e[i]=t[i]})),e):t}function d(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n "===e[1])}))):this._colorizedBracketPairs=[],t.__electricCharacterSupport&&t.__electricCharacterSupport.docComment){var n=t.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new f.c({open:n.open,close:n.close||""}))}this._autoCloseBefore="string"===typeof t.autoCloseBefore?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs}return Object(u.a)(e,[{key:"getAutoClosingPairs",value:function(){return this._autoClosingPairs}},{key:"getAutoCloseBeforeSet",value:function(){return this._autoCloseBefore}},{key:"getSurroundingPairs",value:function(){return this._surroundingPairs}},{key:"getColorizedBrackets",value:function(){return this._colorizedBracketPairs}}]),e}();function v(e){return e.filter((function(e){var t=Object(r.a)(e,2),n=t[0],i=t[1];return""!==n&&""!==i}))}p.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t";var m=n(105),b=n(467),y=function(){function e(t){Object(s.a)(this,e),this._richEditBrackets=t}return Object(u.a)(e,[{key:"getElectricCharacters",value:function(){var e=[];if(this._richEditBrackets){var t,n=Object(i.a)(this._richEditBrackets.brackets);try{for(n.s();!(t=n.n()).done;){var r,o=t.value,a=Object(i.a)(o.close);try{for(a.s();!(r=a.n()).done;){var s=r.value,u=s.charAt(s.length-1);e.push(u)}}catch(l){a.e(l)}finally{a.f()}}}catch(l){n.e(l)}finally{n.f()}}return Object(m.f)(e)}},{key:"onElectricCharacter",value:function(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;var i=t.findTokenIndexAtOffset(n-1);if(Object(g.b)(t.getStandardTokenType(i)))return null;var r=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,n-1)+e,a=b.a.findPrevBracketInRange(r,1,o,0,o.length);if(!a)return null;var s=o.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[s])return null;var u=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(u)?{matchOpenBracket:s}:null}}]),e}();function _(e){return e.global&&(e.lastIndex=0),!0}var k=function(){function e(t){Object(s.a)(this,e),this._indentationRules=t}return Object(u.a)(e,[{key:"shouldIncrease",value:function(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&_(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}},{key:"shouldDecrease",value:function(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&_(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}},{key:"shouldIndentNextLine",value:function(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&_(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}},{key:"shouldIgnore",value:function(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&_(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}},{key:"getIndentMetadata",value:function(e){var t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}]),e}(),C=n(95),w=function(){function e(t){var n=this;Object(s.a)(this,e),(t=t||{}).brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],t.brackets.forEach((function(t){var i=e._createOpenBracketRegExp(t[0]),r=e._createCloseBracketRegExp(t[1]);i&&r&&n._brackets.push({open:t[0],openRegExp:i,close:t[1],closeRegExp:r})})),this._regExpRules=t.onEnterRules||[]}return Object(u.a)(e,[{key:"onEnter",value:function(e,t,n,i){if(e>=3)for(var r=0,o=this._regExpRules.length;r =2&&n.length>0&&i.length>0)for(var s=0,u=this._brackets.length;s=2&&n.length>0)for(var c=0,d=this._brackets.length;c =0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},L=function(e,t){return function(n,i){t(n,i,e)}},j=function(){function e(t){Object(s.a)(this,e),this.languageId=t}return Object(u.a)(e,[{key:"affects",value:function(e){return!this.languageId||this.languageId===e}}]),e}(),N=Object(S.c)("languageConfigurationService"),A=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,o){var a;Object(s.a)(this,n),(a=t.call(this)).configurationService=e,a.modeService=o,a.onDidChangeEmitter=a._register(new l.b),a.onDidChange=a.onDidChangeEmitter.event,a.configurations=new Map;var u=new Set(Object.values(T));return a._register(a.configurationService.onDidChangeConfiguration((function(e){var t=e.change.keys.some((function(e){return u.has(e)})),n=e.change.overrides.filter((function(e){var t=Object(r.a)(e,2);t[0];return t[1].some((function(e){return u.has(e)}))})).map((function(e){var t=Object(r.a)(e,1)[0];return a.modeService.validateLanguageId(t)}));if(t)a.configurations.clear(),a.onDidChangeEmitter.fire(new j(void 0));else{var o,s=Object(i.a)(n);try{for(s.s();!(o=s.n()).done;){var l=o.value;l&&(a.configurations.delete(l),a.onDidChangeEmitter.fire(new j(l)))}}catch(c){s.e(c)}finally{s.f()}}}))),a._register(F.onDidChange((function(e){a.configurations.delete(e.languageId),a.onDidChangeEmitter.fire(new j(e.languageId))}))),a}return Object(u.a)(n,[{key:"getLanguageConfiguration",value:function(e){var t=this.configurations.get(e);return t||(t=function(e,t,n){var i=F.getLanguageConfiguration(e);if(!i){var r=n.validateLanguageId(e);if(!r)throw new Error("Unexpected languageId");i=new W(r,{})}var o=function(e,t){var n=t.getValue(T.brackets,{overrideIdentifier:e}),i=t.getValue(T.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:I(n),colorizedBracketPairs:I(i)}}(i.languageId,t),a=R([i.underlyingConfig,o]);return new W(i.languageId,a)}(e,this.configurationService,this.modeService),this.configurations.set(e,t)),t}}]),n}(c.a);A=x([L(0,O.a),L(1,D.a)],A);var T={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function I(e){if(Array.isArray(e))return e.map((function(e){if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((function(e){return!!e}))}var M=function e(t){Object(s.a)(this,e),this.languageId=t},F=new(function(){function e(){Object(s.a)(this,e),this._entries=new Map,this._onDidChange=new l.b,this.onDidChange=this._onDidChange.event}return Object(u.a)(e,[{key:"register",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this._entries.get(e);r||(r=new P(e),this._entries.set(e,r));var o=r.register(t,i);return this._onDidChange.fire(new M(e)),Object(c.i)((function(){o.dispose(),n._onDidChange.fire(new M(e))}))}},{key:"getLanguageConfiguration",value:function(e){var t=this._entries.get(e);return(null===t||void 0===t?void 0:t.getResolvedConfiguration())||null}},{key:"getIndentationRules",value:function(e){var t=this.getLanguageConfiguration(e);return t&&t.indentationRules||null}},{key:"_getElectricCharacterSupport",value:function(e){var t=this.getLanguageConfiguration(e);return t&&t.electricCharacter||null}},{key:"getElectricCharacters",value:function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]}},{key:"onElectricCharacter",value:function(e,t,n){var i=Object(g.a)(t,n-1),r=this._getElectricCharacterSupport(i.languageId);return r?r.onElectricCharacter(e,i,n-i.firstCharOffset):null}},{key:"getComments",value:function(e){var t=this.getLanguageConfiguration(e);return t&&t.comments||null}},{key:"_getCharacterPairSupport",value:function(e){var t=this.getLanguageConfiguration(e);return t&&t.characterPair||null}},{key:"getAutoClosingPairs",value:function(e){var t=this._getCharacterPairSupport(e);return new f.a(t?t.getAutoClosingPairs():[])}},{key:"getAutoCloseBeforeSet",value:function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():p.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED}},{key:"getSurroundingPairs",value:function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]}},{key:"getWordDefinition",value:function(e){var t=this.getLanguageConfiguration(e);return t?Object(h.c)(t.wordDefinition||null):Object(h.c)(null)}},{key:"getFoldingRules",value:function(e){var t=this.getLanguageConfiguration(e);return t?t.foldingRules:{}}},{key:"getIndentRulesSupport",value:function(e){var t=this.getLanguageConfiguration(e);return t&&t.indentRulesSupport||null}},{key:"getPrecedingValidLine",value:function(e,t,n){var i=e.getLanguageIdAtPosition(t,0);if(t>1){var r,o=-1;for(r=t-1;r>=1;r--){if(e.getLanguageIdAtPosition(r,0)!==i)return o;var a=e.getLineContent(r);if(!n.shouldIgnore(a)&&!/^\s+$/.test(a)&&""!==a)return r;o=r}}return-1}},{key:"getInheritIndentForLine",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e<4)return null;var r=this.getIndentRulesSupport(t.getLanguageId());if(!r)return null;if(n<=1)return{indentation:"",action:null};var o=this.getPrecedingValidLine(t,n,r);if(o<0)return null;if(o<1)return{indentation:"",action:null};var a=t.getLineContent(o);if(r.shouldIncrease(a)||r.shouldIndentNextLine(a))return{indentation:d.z(a),action:f.b.Indent,line:o};if(r.shouldDecrease(a))return{indentation:d.z(a),action:null,line:o};if(1===o)return{indentation:d.z(t.getLineContent(o)),action:null,line:o};var s=o-1,u=r.getIndentMetadata(t.getLineContent(s));if(!(3&u)&&4&u){for(var l=0,c=s-1;c>0;c--)if(!r.shouldIndentNextLine(t.getLineContent(c))){l=c;break}return{indentation:d.z(t.getLineContent(l+1)),action:null,line:l+1}}if(i)return{indentation:d.z(t.getLineContent(o)),action:null,line:o};for(var h=o;h>0;h--){var g=t.getLineContent(h);if(r.shouldIncrease(g))return{indentation:d.z(g),action:f.b.Indent,line:h};if(r.shouldIndentNextLine(g)){for(var p=0,v=h-1;v>0;v--)if(!r.shouldIndentNextLine(t.getLineContent(h))){p=v;break}return{indentation:d.z(t.getLineContent(p+1)),action:null,line:p+1}}if(r.shouldDecrease(g))return{indentation:d.z(g),action:null,line:h}}return{indentation:d.z(t.getLineContent(1)),action:null,line:1}}},{key:"getGoodIndentForLine",value:function(e,t,n,i,r){if(e<4)return null;var o=this.getLanguageConfiguration(n);if(!o)return null;var a=this.getIndentRulesSupport(n);if(!a)return null;var s=this.getInheritIndentForLine(e,t,i),u=t.getLineContent(i);if(s){var l=s.line;if(void 0!==l){var c=o.onEnter(e,"",t.getLineContent(l),"");if(c){var h=d.z(t.getLineContent(l));return c.removeText&&(h=h.substring(0,h.length-c.removeText)),c.indentAction===f.b.Indent||c.indentAction===f.b.IndentOutdent?h=r.shiftIndent(h):c.indentAction===f.b.Outdent&&(h=r.unshiftIndent(h)),a.shouldDecrease(u)&&(h=r.unshiftIndent(h)),c.appendText&&(h+=c.appendText),d.z(h)}}return a.shouldDecrease(u)?s.action===f.b.Indent?s.indentation:r.unshiftIndent(s.indentation):s.action===f.b.Indent?r.shiftIndent(s.indentation):s.indentation}return null}},{key:"getIndentForEnter",value:function(e,t,n,i){if(e<4)return null;t.forceTokenization(n.startLineNumber);var r,o,a=t.getLineTokens(n.startLineNumber),s=Object(g.a)(a,n.startColumn-1),u=s.getLineContent(),l=!1;(s.firstCharOffset>0&&a.getLanguageId(0)!==s.languageId?(l=!0,r=u.substr(0,n.startColumn-1-s.firstCharOffset)):r=a.getLineContent().substring(0,n.startColumn-1),n.isEmpty())?o=u.substr(n.startColumn-1-s.firstCharOffset):o=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-s.firstCharOffset);var c=this.getIndentRulesSupport(s.languageId);if(!c)return null;var h=r,p=d.z(r),v={getLineTokens:function(e){return t.getLineTokens(e)},getLanguageId:function(){return t.getLanguageId()},getLanguageIdAtPosition:function(e,n){return t.getLanguageIdAtPosition(e,n)},getLineContent:function(e){return e===n.startLineNumber?h:t.getLineContent(e)}},m=d.z(a.getLineContent()),b=this.getInheritIndentForLine(e,v,n.startLineNumber+1);if(!b){var y=l?m:p;return{beforeEnter:y,afterEnter:y}}var _=l?m:b.indentation;return b.action===f.b.Indent&&(_=i.shiftIndent(_)),c.shouldDecrease(o)&&(_=i.unshiftIndent(_)),{beforeEnter:l?m:p,afterEnter:_}}},{key:"getIndentActionForType",value:function(e,t,n,i,r){if(e<4)return null;var o=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn);if(o.firstCharOffset)return null;var a=this.getIndentRulesSupport(o.languageId);if(!a)return null;var s,u=o.getLineContent(),l=u.substr(0,n.startColumn-1-o.firstCharOffset);n.isEmpty()?s=u.substr(n.startColumn-1-o.firstCharOffset):s=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-o.firstCharOffset);if(!a.shouldDecrease(l+s)&&a.shouldDecrease(l+i+s)){var c=this.getInheritIndentForLine(e,t,n.startLineNumber,!1);if(!c)return null;var d=c.indentation;return c.action!==f.b.Indent&&(d=r.unshiftIndent(d)),d}return null}},{key:"getIndentMetadata",value:function(e,t){var n=this.getIndentRulesSupport(e.getLanguageId());return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null}},{key:"getEnterAction",value:function(e,t,n){var i=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),r=this.getLanguageConfiguration(i.languageId);if(!r)return null;var o,a=i.getLineContent(),s=a.substr(0,n.startColumn-1-i.firstCharOffset);n.isEmpty()?o=a.substr(n.startColumn-1-i.firstCharOffset):o=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-i.firstCharOffset);var u="";if(n.startLineNumber>1&&0===i.firstCharOffset){var l=this.getScopedLineTokens(t,n.startLineNumber-1);l.languageId===i.languageId&&(u=l.getLineContent())}var c=r.onEnter(e,u,s,o);if(!c)return null;var d=c.indentAction,h=c.appendText,g=c.removeText||0;h?d===f.b.Indent&&(h="\t"+h):h=d===f.b.Indent||d===f.b.IndentOutdent?"\t":"";var p=this.getIndentationAtPosition(t,n.startLineNumber,n.startColumn);return g&&(p=p.substring(0,p.length-g)),{indentAction:d,appendText:h,removeText:g,indentation:p}}},{key:"getIndentationAtPosition",value:function(e,t,n){var i=e.getLineContent(t),r=d.z(i);return r.length>n-1&&(r=r.substring(0,n-1)),r}},{key:"getScopedLineTokens",value:function(e,t,n){e.forceTokenization(t);var i=e.getLineTokens(t),r="undefined"===typeof n?e.getLineMaxColumn(t)-1:n-1;return Object(g.a)(i,r)}}]),e}()),P=function(){function e(t){Object(s.a)(this,e),this.languageId=t,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}return Object(u.a)(e,[{key:"register",value:function(e,t){var n=this,i=new B(e,t,++this._order);return this._entries.push(i),this._resolved=null,Object(c.i)((function(){for(var e=0;e 2&&void 0!==arguments[2]&&arguments[2];return e===t?0:Object(c.h)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}},{key:"isEqual",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}},{key:"getComparisonKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}},{key:"isEqualOrParent",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.scheme===t.scheme){if(e.scheme===s.c.file)return a.c(h(e),h(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(w(e.authority,t.authority))return a.c(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}},{key:"joinPath",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i 1&&void 0!==arguments[1]?arguments[1]:u.h;if(e.scheme===s.c.file){var n=h(e);return n.length>a.a(n).length&&n[n.length-1]===t}var i=e.path;return i.length>1&&47===i.charCodeAt(i.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}},{key:"removeTrailingPathSeparator",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.h;return S(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}},{key:"addTrailingPathSeparator",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.h,n=!1;if(e.scheme===s.c.file){var i=h(e);n=void 0!==i&&i.length===a.a(i).length&&i[i.length-1]===t}else{t="/";var r=e.path;n=1===r.length&&47===r.charCodeAt(r.length-1)}return n||S(e,t)?e:e.with({path:e.path+"/"})}}]),e}())((function(){return!1})),p=g.isEqual.bind(g),v=(g.isEqualOrParent.bind(g),g.getComparisonKey.bind(g),g.basenameOrAuthority.bind(g)),m=g.basename.bind(g),b=g.extname.bind(g),y=g.dirname.bind(g),_=g.joinPath.bind(g),k=g.normalizePath.bind(g),C=(g.relativePath.bind(g),g.resolvePath.bind(g)),w=(g.isAbsolutePath.bind(g),g.isEqualAuthority.bind(g)),S=g.hasTrailingPathSeparator.bind(g);g.removeTrailingPathSeparator.bind(g),g.addTrailingPathSeparator.bind(g);!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){var n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((function(e){var t=e.split(":"),r=Object(i.a)(t,2),o=r[0],a=r[1];o&&a&&n.set(o,a)}));var r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(f||(f={}))},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return h}));var i,r,o,a,s,u=n(87),l=n(100);n(892);function c(e){(i=document.createElement("div")).className="monaco-aria-container";var t=function(){var e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),i.appendChild(e),e};r=t(),o=t();var n=function(){var e=document.createElement("div");return e.className="monaco-status",e.setAttribute("role","complementary"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),i.appendChild(e),e};a=n(),s=n(),e.appendChild(i)}function d(e){i&&(r.textContent!==e?(u.clearNode(o),f(r,e)):(u.clearNode(r),f(o,e)))}function h(e){i&&(l.f?d(e):a.textContent!==e?(u.clearNode(s),f(a,e)):(u.clearNode(a),f(s,e)))}function f(e,t){u.clearNode(e),t.length>2e4&&(t=t.substr(0,2e4)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"f",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return k})),n.d(t,"e",(function(){return C})),n.d(t,"g",(function(){return w}));var i=n(78),r=n(74),o=n(75),a=n(95),s=n(96),u=n(81),l=n(112),c=n(136),d=n(152),h=n(323);n.d(t,"a",(function(){return h.a}));var f=function(){return!0},g=function(){return!1},p=function(e){return" "===e||"\t"===e},v=function(){function e(t,n,o){Object(r.a)(this,e),this._cursorMoveConfigurationBrand=void 0,this._languageId=t;var a=o.options,s=a.get(130);this.readOnly=a.get(80),this.tabSize=n.tabSize,this.indentSize=n.indentSize,this.insertSpaces=n.insertSpaces,this.stickyTabStops=a.get(103),this.lineHeight=a.get(58),this.pageSize=Math.max(1,Math.floor(s.height/this.lineHeight)-2),this.useTabStops=a.get(115),this.wordSeparators=a.get(116),this.emptySelectionClipboard=a.get(32),this.copyWithSyntaxHighlighting=a.get(21),this.multiCursorMergeOverlapping=a.get(68),this.multiCursorPaste=a.get(70),this.autoClosingBrackets=a.get(5),this.autoClosingQuotes=a.get(8),this.autoClosingDelete=a.get(6),this.autoClosingOvertype=a.get(7),this.autoSurround=a.get(11),this.autoIndent=a.get(9),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:e._getShouldAutoClose(t,this.autoClosingQuotes),bracket:e._getShouldAutoClose(t,this.autoClosingBrackets)},this.autoClosingPairs=d.b.getAutoClosingPairs(t);var u=e._getSurroundingPairs(t);if(u){var l,c=Object(i.a)(u);try{for(c.s();!(l=c.n()).done;){var h=l.value;this.surroundingPairs[h.open]=h.close}}catch(f){c.e(f)}finally{c.f()}}}return Object(o.a)(e,[{key:"electricChars",get:function(){if(!this._electricChars){this._electricChars={};var t=e._getElectricCharacters(this._languageId);if(t){var n,r=Object(i.a)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;this._electricChars[o]=!0}}catch(a){r.e(a)}finally{r.f()}}}return this._electricChars}},{key:"normalizeIndentation",value:function(e){return c.c.normalizeIndentation(e,this.indentSize,this.insertSpaces)}}],[{key:"shouldRecreate",value:function(e){return e.hasChanged(130)||e.hasChanged(116)||e.hasChanged(32)||e.hasChanged(68)||e.hasChanged(70)||e.hasChanged(5)||e.hasChanged(8)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(115)||e.hasChanged(58)||e.hasChanged(80)}},{key:"_getElectricCharacters",value:function(e){try{return d.b.getElectricCharacters(e)}catch(t){return Object(a.f)(t),null}}},{key:"_getShouldAutoClose",value:function(t,n){switch(n){case"beforeWhitespace":return p;case"languageDefined":return e._getLanguageDefinedShouldAutoClose(t);case"always":return f;case"never":return g}}},{key:"_getLanguageDefinedShouldAutoClose",value:function(e){try{var t=d.b.getAutoCloseBeforeSet(e);return function(e){return-1!==t.indexOf(e)}}catch(n){return Object(a.f)(n),g}}},{key:"_getSurroundingPairs",value:function(e){try{return d.b.getSurroundingPairs(e)}catch(t){return Object(a.f)(t),null}}}]),e}(),m=function(){function e(t,n,i,o){Object(r.a)(this,e),this._singleCursorStateBrand=void 0,this.selectionStart=t,this.selectionStartLeftoverVisibleColumns=n,this.position=i,this.leftoverVisibleColumns=o,this.selection=e._computeSelection(this.selectionStart,this.position)}return Object(o.a)(e,[{key:"equals",value:function(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}},{key:"hasSelection",value:function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}},{key:"move",value:function(t,n,i,r){return t?new e(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new s.a(n,i),r):new e(new u.a(n,i,n,i),r,new s.a(n,i),r)}}],[{key:"_computeSelection",value:function(e,t){return e.isEmpty()||!t.isBeforeOrEqual(e.getStartPosition())?l.a.fromPositions(e.getStartPosition(),t):l.a.fromPositions(e.getEndPosition(),t)}}]),e}(),b=function e(t,n,i,o){Object(r.a)(this,e),this._cursorContextBrand=void 0,this.model=t,this.viewModel=n,this.coordinatesConverter=i,this.cursorConfig=o},y=function e(t){Object(r.a)(this,e),this.modelState=t,this.viewState=null},_=function e(t){Object(r.a)(this,e),this.modelState=null,this.viewState=t},k=function(){function e(t,n){Object(r.a)(this,e),this._cursorStateBrand=void 0,this.modelState=t,this.viewState=n}return Object(o.a)(e,[{key:"equals",value:function(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)}}],[{key:"fromModelState",value:function(e){return new y(e)}},{key:"fromViewState",value:function(e){return new _(e)}},{key:"fromModelSelection",value:function(t){var n=l.a.liftSelection(t),i=new m(u.a.fromPositions(n.getSelectionStart()),0,n.getPosition(),0);return e.fromModelState(i)}},{key:"fromModelSelections",value:function(e){for(var t=[],n=0,i=e.length;n1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=arguments.length>4?arguments[4]:void 0;return Object(o.a)(this,n),(i=t.call(this))._onDidChange=i._register(new l.b),i.onDidChange=i._onDidChange.event,i._enabled=!0,i._id=e,i._label=r,i._cssClass=a,i._enabled=s,i._actionCallback=u,i}return Object(a.a)(n,[{key:"id",get:function(){return this._id}},{key:"label",get:function(){return this._label},set:function(e){this._setLabel(e)}},{key:"_setLabel",value:function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}},{key:"tooltip",get:function(){return this._tooltip||""},set:function(e){this._setTooltip(e)}},{key:"_setTooltip",value:function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}},{key:"class",get:function(){return this._cssClass},set:function(e){this._setClass(e)}},{key:"_setClass",value:function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._setEnabled(e)}},{key:"_setEnabled",value:function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}},{key:"checked",get:function(){return this._checked},set:function(e){this._setChecked(e)}},{key:"_setChecked",value:function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}},{key:"run",value:function(e,t){return h(this,void 0,void 0,r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._actionCallback){t.next=3;break}return t.next=3,this._actionCallback(e);case 3:case"end":return t.stop()}}),t,this)})))}}]),n}(c.a),g=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments))._onBeforeRun=e._register(new l.b),e.onBeforeRun=e._onBeforeRun.event,e._onDidRun=e._register(new l.b),e.onDidRun=e._onDidRun.event,e}return Object(a.a)(n,[{key:"run",value:function(e,t){return h(this,void 0,void 0,r.a.mark((function n(){var i;return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.enabled){n.next=2;break}return n.abrupt("return");case 2:return this._onBeforeRun.fire({action:e}),i=void 0,n.prev=4,n.next=7,this.runAction(e,t);case 7:n.next=12;break;case 9:n.prev=9,n.t0=n.catch(4),i=n.t0;case 12:this._onDidRun.fire({action:e,error:i});case 13:case"end":return n.stop()}}),n,this,[[4,9]])})))}},{key:"runAction",value:function(e,t){return h(this,void 0,void 0,r.a.mark((function n(){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.run(t);case 2:case"end":return n.stop()}}),n)})))}}]),n}(c.a),p=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(e){var i;return Object(o.a)(this,n),(i=t.call(this,n.ID,e,e?"separator text":"separator")).checked=!1,i.enabled=!1,i}return n}(f);p.ID="vs.actions.separator";var v=function(){function e(t,n,i,r){Object(o.a)(this,e),this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=t,this.label=n,this.class=r,this._actions=i}return Object(a.a)(e,[{key:"actions",get:function(){return this._actions}},{key:"dispose",value:function(){}},{key:"run",value:function(){return h(this,void 0,void 0,r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))}}]),e}(),m=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.call(this,n.ID,d.a("submenu.empty","(empty)"),void 0,!1)}return n}(f);m.ID="vs.actions.empty"},function(e,t,n){"use strict";n.d(t,"c",(function(){return C})),n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return O}));var i,r,o=n(86),a=n(83),s=n(76),u=n(77),l=n(11),c=n(80),d=n.n(c),h=n(78),f=n(26),g=n(74),p=n(75),v=n(88),m=function(){function e(){Object(g.a)(this,e),this._value="",this._pos=0}return Object(p.a)(e,[{key:"reset",value:function(e){return this._value=e,this._pos=0,this}},{key:"next",value:function(){return this._pos+=1,this}},{key:"hasNext",value:function(){return this._pos 0&&void 0!==arguments[0])||arguments[0];Object(g.a)(this,e),this._caseSensitive=t}return Object(p.a)(e,[{key:"reset",value:function(e){return this._value=e,this._from=0,this._to=0,this.next()}},{key:"hasNext",value:function(){return this._to 0&&void 0!==arguments[0])||arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Object(g.a)(this,e),this._splitOnBackslash=t,this._caseSensitive=n}return Object(p.a)(e,[{key:"reset",value:function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()}},{key:"hasNext",value:function(){return this._to 0)n.left||(n.left=new k,n.left.segment=i.value()),r.push([-1,n]),n=n.left;else if(o<0)n.right||(n.right=new k,n.right.segment=i.value()),r.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new k,n.mid.segment=i.value()),r.push([0,n]),n=n.mid}}var a=n.value;n.value=t,n.key=e;for(var s=r.length-1;s>=0;s--){var u=r[s][1];u.updateHeight();var l=u.balanceFactor();if(l<-1||l>1){var c=r[s][0],d=r[s+1][0];if(1===c&&1===d)r[s][1]=u.rotateLeft();else if(-1===c&&-1===d)r[s][1]=u.rotateRight();else if(1===c&&-1===d)u.right=r[s+1][1]=r[s+1][1].rotateRight(),r[s][1]=u.rotateLeft();else{if(-1!==c||1!==d)throw new Error;u.left=r[s+1][1]=r[s+1][1].rotateLeft(),r[s][1]=u.rotateRight()}if(s>0)switch(r[s-1][0]){case-1:r[s-1][1].left=r[s][1];break;case 1:r[s-1][1].right=r[s][1];break;case 0:r[s-1][1].mid=r[s][1]}else this._root=r[0][1]}}return a}},{key:"get",value:function(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}},{key:"_getNode",value:function(e){for(var t=this._iter.reset(e),n=this._root;n;){var i=t.cmp(n.segment);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n}},{key:"has",value:function(e){var t=this._getNode(e);return!(void 0===(null===t||void 0===t?void 0:t.value)&&void 0===(null===t||void 0===t?void 0:t.mid))}},{key:"delete",value:function(e){return this._delete(e,!1)}},{key:"deleteSuperstr",value:function(e){return this._delete(e,!0)}},{key:"_delete",value:function(e,t){for(var n,i=this._iter.reset(e),r=[],o=this._root;o;){var a=i.cmp(o.segment);if(a>0)r.push([-1,o]),o=o.left;else if(a<0)r.push([1,o]),o=o.right;else{if(!i.hasNext())break;i.next(),r.push([0,o]),o=o.mid}}if(o){if(t?(o.left=void 0,o.mid=void 0,o.right=void 0,o.height=1):(o.key=void 0,o.value=void 0),!o.mid&&!o.value)if(o.left&&o.right){var s=this._min(o.right),u=s.key,l=s.value,c=s.segment;this._delete(s.key,!1),o.key=u,o.value=l,o.segment=c}else{var d=null!==(n=o.left)&&void 0!==n?n:o.right;if(r.length>0){var h=Object(f.a)(r[r.length-1],2),g=h[0],p=h[1];switch(g){case-1:p.left=d;break;case 0:p.mid=d;break;case 1:p.right=d}}else this._root=d}for(var v=r.length-1;v>=0;v--){var m=r[v][1];m.updateHeight();var b=m.balanceFactor();if(b>1?(m.right.balanceFactor()>=0||(m.right=r[v+1][1]=r[v+1][1].rotateRight()),r[v][1]=m.rotateLeft()):b<-1&&(m.left.balanceFactor()<=0||(m.left=r[v+1][1]=r[v+1][1].rotateLeft()),r[v][1]=m.rotateRight()),v>0)switch(r[v-1][0]){case-1:r[v-1][1].left=r[v][1];break;case 1:r[v-1][1].right=r[v][1];break;case 0:r[v-1][1].mid=r[v][1]}else this._root=r[0][1]}}}},{key:"_min",value:function(e){for(;e.left;)e=e.left;return e}},{key:"findSubstr",value:function(e){for(var t=this._iter.reset(e),n=this._root,i=void 0;n;){var r=t.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}},{key:"findSuperstr",value:function(e){for(var t=this._iter.reset(e),n=this._root;n;){var i=t.cmp(n.segment);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())return n.mid?this._entries(n.mid):void 0;t.next(),n=n.mid}}}},{key:"forEach",value:function(e){var t,n=Object(h.a)(this);try{for(n.s();!(t=n.n()).done;){var i=Object(f.a)(t.value,2),r=i[0];e(i[1],r)}}catch(o){n.e(o)}finally{n.f()}}},{key:Symbol.iterator,value:d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._entries(this._root),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"_entries",value:d.a.mark((function e(t){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(!t.left){e.next=4;break}return e.delegateYield(this._entries(t.left),"t0",4);case 4:if(!t.value){e.next=7;break}return e.next=7,[t.key,t.value];case 7:if(!t.mid){e.next=9;break}return e.delegateYield(this._entries(t.mid),"t1",9);case 9:if(!t.right){e.next=11;break}return e.delegateYield(this._entries(t.right),"t2",11);case 11:case"end":return e.stop()}}),e,this)}))}],[{key:"forUris",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1};return new e(new _(t))}},{key:"forStrings",value:function(){return new e(new m)}},{key:"forConfigKeys",value:function(){return new e(new b)}}]),e}(),w=function e(t,n){Object(g.a)(this,e),this.uri=t,this.value=n},S=function(){function e(t,n){Object(g.a)(this,e),this[i]="ResourceMap",t instanceof e?(this.map=new Map(t.map),this.toKey=null!==n&&void 0!==n?n:e.defaultToKey):(this.map=new Map,this.toKey=null!==t&&void 0!==t?t:e.defaultToKey)}return Object(p.a)(e,[{key:"set",value:function(e,t){return this.map.set(this.toKey(e),new w(e,t)),this}},{key:"get",value:function(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}},{key:"has",value:function(e){return this.map.has(this.toKey(e))}},{key:"size",get:function(){return this.map.size}},{key:"clear",value:function(){this.map.clear()}},{key:"delete",value:function(e){return this.map.delete(this.toKey(e))}},{key:"forEach",value:function(e,t){"undefined"!==typeof t&&(e=e.bind(t));var n,i=Object(h.a)(this.map);try{for(i.s();!(n=i.n()).done;){var r=Object(f.a)(n.value,2),o=(r[0],r[1]);e(o.value,o.uri,this)}}catch(a){i.e(a)}finally{i.f()}}},{key:"values",value:d.a.mark((function e(){var t,n,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Object(h.a)(this.map.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.value;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"keys",value:d.a.mark((function e(){var t,n,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Object(h.a)(this.map.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.uri;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"entries",value:d.a.mark((function e(){var t,n,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Object(h.a)(this.map.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,[i.uri,i.value];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:(i=Symbol.toStringTag,Symbol.iterator),value:d.a.mark((function e(){var t,n,i,r;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Object(h.a)(this.map),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=Object(f.a)(n.value,2),r=i[1],e.next=7,[r.uri,r.value];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))}]),e}();S.defaultToKey=function(e){return e.toString()};var O=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Object(g.a)(this,n),(i=t.call(this))._limit=e,i._ratio=Math.min(Math.max(0,r),1),i}return Object(p.a)(n,[{key:"limit",get:function(){return this._limit},set:function(e){this._limit=e,this.checkTrim()}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Object(o.a)(Object(a.a)(n.prototype),"get",this).call(this,e,t)}},{key:"peek",value:function(e){return Object(o.a)(Object(a.a)(n.prototype),"get",this).call(this,e,0)}},{key:"set",value:function(e,t){return Object(o.a)(Object(a.a)(n.prototype),"set",this).call(this,e,t,2),this.checkTrim(),this}},{key:"checkTrim",value:function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}]),n}(function(){function e(){Object(g.a)(this,e),this[r]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}return Object(p.a)(e,[{key:"clear",value:function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}},{key:"isEmpty",value:function(){return!this._head&&!this._tail}},{key:"size",get:function(){return this._size}},{key:"first",get:function(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}},{key:"last",get:function(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}},{key:"has",value:function(e){return this._map.has(e)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:default:this.addItemLast(i)}this._map.set(e,i),this._size++}return this}},{key:"delete",value:function(e){return!!this.remove(e)}},{key:"remove",value:function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}},{key:"shift",value:function(){if(this._head||this._tail){if(!this._head||!this._tail)throw new Error("Invalid list");var e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}}},{key:"forEach",value:function(e,t){for(var n=this._state,i=this._head;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}},{key:"keys",value:function(){var e,t=this,n=this._state,i=this._head,r=(e={},Object(l.a)(e,Symbol.iterator,(function(){return r})),Object(l.a)(e,"next",(function(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){var e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}})),e);return r}},{key:"values",value:function(){var e,t=this,n=this._state,i=this._head,r=(e={},Object(l.a)(e,Symbol.iterator,(function(){return r})),Object(l.a)(e,"next",(function(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){var e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}})),e);return r}},{key:"entries",value:function(){var e,t=this,n=this._state,i=this._head,r=(e={},Object(l.a)(e,Symbol.iterator,(function(){return r})),Object(l.a)(e,"next",(function(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){var e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}})),e);return r}},{key:(r=Symbol.toStringTag,Symbol.iterator),value:function(){return this.entries()}},{key:"trimOld",value:function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}else this.clear()}},{key:"addItemFirst",value:function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}},{key:"addItemLast",value:function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}},{key:"removeItem",value:function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}},{key:"touch",value:function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;var n=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(n.previous=i,i.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;var r=e.next,o=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=o,o.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}},{key:"toJSON",value:function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),e}},{key:"fromJSON",value:function(e){this.clear();var t,n=Object(h.a)(e);try{for(n.s();!(t=n.n()).done;){var i=Object(f.a)(t.value,2),r=i[0],o=i[1];this.set(r,o)}}catch(a){n.e(a)}finally{n.f()}}}]),e}())},function(e,t,n){"use strict";n.d(t,"g",(function(){return i})),n.d(t,"f",(function(){return r})),n.d(t,"h",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"i",(function(){return f})),n.d(t,"a",(function(){return g}));var i,r,o=n(74),a=n(75),s=n(149);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(i||(i={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(r||(r={}));var u,l=function(){function e(t){Object(o.a)(this,e),this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|t.tabSize),this.indentSize=0|t.tabSize,this.insertSpaces=Boolean(t.insertSpaces),this.defaultEOL=0|t.defaultEOL,this.trimAutoWhitespace=Boolean(t.trimAutoWhitespace),this.bracketPairColorizationOptions=t.bracketPairColorizationOptions}return Object(a.a)(e,[{key:"equals",value:function(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&Object(s.d)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}},{key:"createChangeEvent",value:function(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}]),e}(),c=function e(t,n){Object(o.a)(this,e),this._findMatchBrand=void 0,this.range=t,this.matches=n};!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(u||(u={}));var d=function e(t,n,i){Object(o.a)(this,e),this.visibleColumn=t,this.className=n,this.horizontalLine=i},h=function e(t,n){Object(o.a)(this,e),this.top=t,this.endColumn=n},f=function e(t,n,i,r,a,s){Object(o.a)(this,e),this.identifier=t,this.range=n,this.text=i,this.forceMoveMarkers=r,this.isAutoWhitespaceEdit=a,this._isTracked=s},g=function e(t,n,i){Object(o.a)(this,e),this.reverseEdits=t,this.changes=n,this.trimAutoWhitespaceLineNumbers=i}},function(e,t,n){"use strict";n.d(t,"A",(function(){return s})),n.d(t,"B",(function(){return u})),n.d(t,"y",(function(){return f})),n.d(t,"x",(function(){return g})),n.d(t,"z",(function(){return v})),n.d(t,"a",(function(){return m})),n.d(t,"C",(function(){return b})),n.d(t,"b",(function(){return _})),n.d(t,"F",(function(){return k})),n.d(t,"j",(function(){return C})),n.d(t,"k",(function(){return w})),n.d(t,"E",(function(){return S})),n.d(t,"D",(function(){return O})),n.d(t,"G",(function(){return E})),n.d(t,"H",(function(){return x})),n.d(t,"J",(function(){return L})),n.d(t,"K",(function(){return j})),n.d(t,"I",(function(){return N})),n.d(t,"N",(function(){return T})),n.d(t,"L",(function(){return I})),n.d(t,"O",(function(){return M})),n.d(t,"M",(function(){return F})),n.d(t,"c",(function(){return P})),n.d(t,"d",(function(){return R})),n.d(t,"e",(function(){return B})),n.d(t,"f",(function(){return W})),n.d(t,"g",(function(){return V})),n.d(t,"h",(function(){return H})),n.d(t,"i",(function(){return z})),n.d(t,"r",(function(){return U})),n.d(t,"s",(function(){return K})),n.d(t,"t",(function(){return q})),n.d(t,"u",(function(){return G})),n.d(t,"v",(function(){return $})),n.d(t,"w",(function(){return Y})),n.d(t,"l",(function(){return Z})),n.d(t,"m",(function(){return X})),n.d(t,"n",(function(){return J})),n.d(t,"o",(function(){return Q})),n.d(t,"p",(function(){return ee})),n.d(t,"q",(function(){return te}));var i=n(85),r=n(135),o=n(111),a=n(94),s=Object(o.Fc)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},i.a("lineHighlight","Background color for the highlight of line at the cursor position.")),u=Object(o.Fc)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},i.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),l=Object(o.Fc)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},i.a("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),c=Object(o.Fc)("editor.rangeHighlightBorder",{dark:null,light:null,hc:o.b},i.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),d=Object(o.Fc)("editor.symbolHighlightBackground",{dark:o.y,light:o.y,hc:null},i.a("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),h=Object(o.Fc)("editor.symbolHighlightBorder",{dark:null,light:null,hc:o.b},i.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),f=Object(o.Fc)("editorCursor.foreground",{dark:"#AEAFAD",light:r.a.black,hc:r.a.white},i.a("caret","Color of the editor cursor.")),g=Object(o.Fc)("editorCursor.background",null,i.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),p=Object(o.Fc)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},i.a("editorWhitespaces","Color of whitespace characters in the editor.")),v=Object(o.Fc)("editorIndentGuide.background",{dark:p,light:p,hc:p},i.a("editorIndentGuides","Color of the editor indentation guides.")),m=Object(o.Fc)("editorIndentGuide.activeBackground",{dark:p,light:p,hc:p},i.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),b=Object(o.Fc)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:r.a.white},i.a("editorLineNumbers","Color of editor line numbers.")),y=Object(o.Fc)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:o.b},i.a("editorActiveLineNumber","Color of editor active line number"),!1,i.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),_=Object(o.Fc)("editorLineNumber.activeForeground",{dark:y,light:y,hc:y},i.a("editorActiveLineNumber","Color of editor active line number")),k=Object(o.Fc)("editorRuler.foreground",{dark:"#5A5A5A",light:r.a.lightgrey,hc:r.a.white},i.a("editorRuler","Color of the editor rulers.")),C=(Object(o.Fc)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hc:"#999999"},i.a("editorCodeLensForeground","Foreground color of editor CodeLens")),Object(o.Fc)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},i.a("editorBracketMatchBackground","Background color behind matching brackets"))),w=Object(o.Fc)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:o.i},i.a("editorBracketMatchBorder","Color for matching brackets boxes")),S=Object(o.Fc)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},i.a("editorOverviewRulerBorder","Color of the overview ruler border.")),O=Object(o.Fc)("editorOverviewRuler.background",null,i.a("editorOverviewRulerBackground","Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")),D=Object(o.Fc)("editorGutter.background",{dark:o.s,light:o.s,hc:o.s},i.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),E=Object(o.Fc)("editorUnnecessaryCode.border",{dark:null,light:null,hc:r.a.fromHex("#fff").transparent(.8)},i.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),x=Object(o.Fc)("editorUnnecessaryCode.opacity",{dark:r.a.fromHex("#000a"),light:r.a.fromHex("#0007"),hc:null},i.a("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),L=Object(o.Fc)("editorGhostText.border",{dark:null,light:null,hc:r.a.fromHex("#fff").transparent(.8)},i.a("editorGhostTextBorder","Border color of ghost text in the editor.")),j=Object(o.Fc)("editorGhostText.foreground",{dark:r.a.fromHex("#ffffff56"),light:r.a.fromHex("#0007"),hc:null},i.a("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),N=Object(o.Fc)("editorGhostText.background",{dark:null,light:null,hc:null},i.a("editorGhostTextBackground","Background color of the ghost text in the editor.")),A=new r.a(new r.c(0,122,204,.6)),T=Object(o.Fc)("editorOverviewRuler.rangeHighlightForeground",{dark:A,light:A,hc:A},i.a("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),I=Object(o.Fc)("editorOverviewRuler.errorForeground",{dark:new r.a(new r.c(255,18,18,.7)),light:new r.a(new r.c(255,18,18,.7)),hc:new r.a(new r.c(255,50,50,1))},i.a("overviewRuleError","Overview ruler marker color for errors.")),M=Object(o.Fc)("editorOverviewRuler.warningForeground",{dark:o.cb,light:o.cb,hc:o.bb},i.a("overviewRuleWarning","Overview ruler marker color for warnings.")),F=Object(o.Fc)("editorOverviewRuler.infoForeground",{dark:o.N,light:o.N,hc:o.M},i.a("overviewRuleInfo","Overview ruler marker color for infos.")),P=Object(o.Fc)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hc:"#FFD700"},i.a("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),R=Object(o.Fc)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hc:"#DA70D6"},i.a("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),B=Object(o.Fc)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hc:"#87CEFA"},i.a("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),W=Object(o.Fc)("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),V=Object(o.Fc)("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),H=Object(o.Fc)("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),z=Object(o.Fc)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new r.a(new r.c(255,18,18,.8)),light:new r.a(new r.c(255,18,18,.8)),hc:new r.a(new r.c(255,50,50,1))},i.a("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),U=Object(o.Fc)("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),K=Object(o.Fc)("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),q=Object(o.Fc)("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),G=Object(o.Fc)("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),$=Object(o.Fc)("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),Y=Object(o.Fc)("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),Z=Object(o.Fc)("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),X=Object(o.Fc)("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),J=Object(o.Fc)("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),Q=Object(o.Fc)("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),ee=Object(o.Fc)("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),te=Object(o.Fc)("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},i.a("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));Object(o.Fc)("editorUnicodeHighlight.border",{dark:"#BD9B03",light:"#CEA33D",hc:"#ff0000"},i.a("editorUnicodeHighlight.border","Border color used to highlight unicode characters."));Object(a.f)((function(e,t){var n=e.getColor(o.s);n&&t.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ".concat(n,"; }"));var i=e.getColor(o.C);i&&t.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: ".concat(i,"; }"));var r=e.getColor(D);r&&t.addRule(".monaco-editor .margin { background-color: ".concat(r,"; }"));var a=e.getColor(l);a&&t.addRule(".monaco-editor .rangeHighlight { background-color: ".concat(a,"; }"));var s=e.getColor(c);s&&t.addRule(".monaco-editor .rangeHighlight { border: 1px ".concat("hc"===e.type?"dotted":"solid"," ").concat(s,"; }"));var u=e.getColor(d);u&&t.addRule(".monaco-editor .symbolHighlight { background-color: ".concat(u,"; }"));var f=e.getColor(h);f&&t.addRule(".monaco-editor .symbolHighlight { border: 1px ".concat("hc"===e.type?"dotted":"solid"," ").concat(f,"; }"));var g=e.getColor(p);g&&(t.addRule(".monaco-editor .mtkw { color: ".concat(g," !important; }")),t.addRule(".monaco-editor .mtkz { color: ".concat(g," !important; }")))}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return f}));var i=n(80),r=n.n(i),o=n(79),a=n(88),s=n(120),u=n(89),l=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))},c=Object(u.c)("openerService"),d=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return o.a.None},registerValidator:function(){return o.a.None},registerExternalUriResolver:function(){return o.a.None},setDefaultExternalOpener:function(){},registerExternalOpener:function(){return o.a.None},open:function(){return l(this,void 0,void 0,r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})))},resolveExternalUri:function(e){return l(this,void 0,void 0,r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{resolved:e,dispose:function(){}});case 1:case"end":return t.stop()}}),t)})))}});function h(e,t){return s.a.isUri(e)?Object(a.t)(e.scheme,t):Object(a.U)(e,t+":")}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i =0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i =0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,"a",(function(){return i}))},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i,r=n(11),o=n(78),a=n(80),s=n.n(a);!function(e){var t=s.a.mark(d),n=s.a.mark(h),i=s.a.mark(f),a=s.a.mark(g),u=s.a.mark(p),l=s.a.mark(v);e.is=function(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]};var c=Object.freeze([]);function d(e){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:case"end":return t.stop()}}),t)}function h(e,t){var i,r,a;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i=Object(o.a)(e),n.prev=1,i.s();case 3:if((r=i.n()).done){n.next=10;break}if(a=r.value,!t(a)){n.next=8;break}return n.next=8,a;case 8:n.next=3;break;case 10:n.next=15;break;case 12:n.prev=12,n.t0=n.catch(1),i.e(n.t0);case 15:return n.prev=15,i.f(),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[1,12,15,18]])}function f(e,t){var n,r,a,u;return s.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n=0,r=Object(o.a)(e),i.prev=2,r.s();case 4:if((a=r.n()).done){i.next=10;break}return u=a.value,i.next=8,t(u,n++);case 8:i.next=4;break;case 10:i.next=15;break;case 12:i.prev=12,i.t0=i.catch(2),r.e(i.t0);case 15:return i.prev=15,r.f(),i.finish(15);case 18:case"end":return i.stop()}}),i,null,[[2,12,15,18]])}function g(){var e,t,n,i,r,u,l,c,d,h=arguments;return s.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:for(e=h.length,t=new Array(e),n=0;n 2&&void 0!==i[2]?i[2]:e.length,t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);case 3:if(!(t 1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,i=[];if(0===n)return[i,t];for(var o=t[Symbol.iterator](),a=0;a 2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e===t},i=e[Symbol.iterator](),r=t[Symbol.iterator]();;){var o=i.next(),a=r.next();if(o.done!==a.done)return!1;if(o.done)return!0;if(!n(o.value,a.value))return!1}}}(i||(i={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return _}));for(var i,r=n(26),o=n(74),a=n(75),s=function(){function e(){Object(o.a)(this,e),this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return Object(a.a)(e,[{key:"define",value:function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}},{key:"keyCodeToStr",value:function(e){return this._keyCodeToStr[e]}},{key:"strToKeyCode",value:function(e){return this._strToKeyCode[e.toLowerCase()]||0}}]),e}(),u=new s,l=new s,c=new s,d=new Array(230),h={},f=[],g=Object.create(null),p=Object.create(null),v=[],m=[],b=0;b<=193;b++)v[b]=-1;for(var y=0;y<=126;y++)m[y]=-1;function _(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){for(var e="",t=[],n=[],i=0,o=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",0,e,0,e,e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_CLEAR",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];i =93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return u.keyCodeToStr(e)}}(i||(i={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(74),r=n(75),o=n(144),a=n(634),s=n(100),u=function(){function e(t){Object(i.a)(this,e),this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=0===t.button,this.middleButton=1===t.button,this.rightButton=2===t.button,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,"dblclick"===t.type&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,"number"===typeof t.pageX?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=t.clientY+document.body.scrollTop+document.documentElement.scrollTop);var n=a.a.getPositionOfChildWindowRelativeToAncestorWindow(self,t.view);this.posx-=n.left,this.posy-=n.top}return Object(r.a)(e,[{key:"preventDefault",value:function(){this.browserEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.browserEvent.stopPropagation()}}]),e}(),l=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(Object(i.a)(this,e),this.browserEvent=t||null,this.target=t?t.target||t.targetNode||t.srcElement:null,this.deltaY=r,this.deltaX=n,t){var a=t,u=t;if("undefined"!==typeof a.wheelDeltaY)this.deltaY=a.wheelDeltaY/120;else if("undefined"!==typeof u.VERTICAL_AXIS&&u.axis===u.VERTICAL_AXIS)this.deltaY=-u.detail/3;else if("wheel"===t.type){var l=t;l.deltaMode===l.DOM_DELTA_LINE?o.isFirefox&&!s.f?this.deltaY=-t.deltaY/3:this.deltaY=-t.deltaY:this.deltaY=-t.deltaY/40}if("undefined"!==typeof a.wheelDeltaX)o.isSafari&&s.i?this.deltaX=-a.wheelDeltaX/120:this.deltaX=a.wheelDeltaX/120;else if("undefined"!==typeof u.HORIZONTAL_AXIS&&u.axis===u.HORIZONTAL_AXIS)this.deltaX=-t.detail/3;else if("wheel"===t.type){var c=t;c.deltaMode===c.DOM_DELTA_LINE?o.isFirefox&&!s.f?this.deltaX=-t.deltaX/3:this.deltaX=-t.deltaX:this.deltaX=-t.deltaX/40}0===this.deltaY&&0===this.deltaX&&t.wheelDelta&&(this.deltaY=t.wheelDelta/120)}}return Object(r.a)(e,[{key:"preventDefault",value:function(){this.browserEvent&&this.browserEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.browserEvent&&this.browserEvent.stopPropagation()}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return p}));var i,r=n(74),o=n(75),a=n(86),s=n(83),u=n(76),l=n(77),c=n(87),d=n(105),h=n(281),f=n(79),g=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(i||(i={}));var p=function(e){Object(u.a)(n,e);var t=Object(l.a)(n);function n(){var e;return Object(r.a)(this,n),(e=t.call(this)).dispatched=!1,e.activeTouches={},e.handle=null,e.targets=[],e.ignoreTargets=[],e._lastSetTapCountTime=0,e._register(c.addDisposableListener(document,"touchstart",(function(t){return e.onTouchStart(t)}),{passive:!1})),e._register(c.addDisposableListener(document,"touchend",(function(t){return e.onTouchEnd(t)}))),e._register(c.addDisposableListener(document,"touchmove",(function(t){return e.onTouchMove(t)}),{passive:!1})),e}return Object(o.a)(n,[{key:"dispose",value:function(){this.handle&&(this.handle.dispose(),this.handle=null),Object(a.a)(Object(s.a)(n.prototype),"dispose",this).call(this)}},{key:"onTouchStart",value:function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,r=e.targetTouches.length;n =n.HOLD_DELAY&&Math.abs(l.initialPageX-d.t(l.rollingPageX))<30&&Math.abs(l.initialPageY-d.t(l.rollingPageY))<30){var f=t.newGestureEvent(i.Contextmenu,l.initialTarget);f.pageX=d.t(l.rollingPageX),f.pageY=d.t(l.rollingPageY),t.dispatchEvent(f)}else if(1===o){var g=d.t(l.rollingPageX),p=d.t(l.rollingPageY),v=d.t(l.rollingTimestamps)-l.rollingTimestamps[0],m=g-l.rollingPageX[0],b=p-l.rollingPageY[0],y=t.targets.filter((function(e){return l.initialTarget instanceof Node&&e.contains(l.initialTarget)}));t.inertia(y,r,Math.abs(m)/v,m>0?1:-1,g,Math.abs(b)/v,b>0?1:-1,p)}t.dispatchEvent(t.newGestureEvent(i.End,l.initialTarget)),delete t.activeTouches[u.identifier]},s=0,u=e.changedTouches.length;sn.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=r,e.tapCount=o}else e.type!==i.Change&&e.type!==i.Contextmenu||(this._lastSetTapCountTime=0);for(var a=0;a 0&&(p=!1,f=o*r*h),s>0&&(p=!1,g=u*s*h);var v=d.newGestureEvent(i.Change);v.translationX=f,v.translationY=g,e.forEach((function(e){return e.dispatchEvent(v)})),p||d.inertia(e,c,r,o,a+f,s,u,l+g)}))}},{key:"onTouchMove",value:function(e){for(var t=Date.now(),n=0,r=e.changedTouches.length;n 3&&(a.rollingPageX.shift(),a.rollingPageY.shift(),a.rollingTimestamps.shift()),a.rollingPageX.push(o.pageX),a.rollingPageY.push(o.pageY),a.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}],[{key:"addTarget",value:function(e){return n.isTouchDevice()?(n.INSTANCE||(n.INSTANCE=new n),n.INSTANCE.targets.push(e),{dispose:function(){n.INSTANCE.targets=n.INSTANCE.targets.filter((function(t){return t!==e}))}}):f.a.None}},{key:"ignoreTarget",value:function(e){return n.isTouchDevice()?(n.INSTANCE||(n.INSTANCE=new n),n.INSTANCE.ignoreTargets.push(e),{dispose:function(){n.INSTANCE.ignoreTargets=n.INSTANCE.ignoreTargets.filter((function(t){return t!==e}))}}):f.a.None}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0}}]),n}(f.a);p.SCROLL_FRICTION=-.005,p.HOLD_DELAY=700,p.CLEAR_TAP_COUNT_TIME=400,g([h.a],p,"isTouchDevice",null)},,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var i=n(74),r=n(75),o=n(89),a=(Object.freeze({total:function(){},worked:function(){},done:function(){}}),function(){function e(t){Object(i.a)(this,e),this.callback=t}return Object(r.a)(e,[{key:"report",value:function(e){this._value=e,this.callback(this._value)}}]),e}());a.None=Object.freeze({report:function(){}});var s=Object(o.c)("editorProgressService")},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var i=n(99),r=n(89),o=Object(r.c)("accessibilityService"),a=new i.c("accessibilityModeEnabled",!1)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(74),r=n(75),o=n(81),a=function(){function e(){Object(i.a)(this,e)}return Object(r.a)(e,null,[{key:"insert",value:function(e,t){return{range:new o.a(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}},{key:"delete",value:function(e){return{range:e,text:null}}},{key:"replace",value:function(e,t){return{range:e,text:t}}},{key:"replaceMove",value:function(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}]),e}()},,function(e,t,n){"use strict";n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return w}));var i=n(78),r=n(86),o=n(83),a=n(76),s=n(77),u=n(74),l=n(75),c=n(144),d=n(84),h=n(79),f=n(100),g=n(134),p=function(){function e(t,n){Object(u.a)(this,e),this.chr=t,this.type=n,this.width=0}return Object(l.a)(e,[{key:"fulfill",value:function(e){this.width=e}}]),e}(),v=function(){function e(t,n){Object(u.a)(this,e),this._bareFontInfo=t,this._requests=n,this._container=null,this._testElements=null}return Object(l.a)(e,[{key:"read",value:function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}},{key:"_createDomElements",value:function(){var t=this._bareFontInfo.getMassagedFontFamily(c.isSafari?g.d.fontFamily:null),n=document.createElement("div");n.style.position="absolute",n.style.top="-50000px",n.style.width="50000px";var r=document.createElement("div");r.style.fontFamily=t,r.style.fontWeight=this._bareFontInfo.fontWeight,r.style.fontSize=this._bareFontInfo.fontSize+"px",r.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,r.style.lineHeight=this._bareFontInfo.lineHeight+"px",r.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",n.appendChild(r);var o=document.createElement("div");o.style.fontFamily=t,o.style.fontWeight="bold",o.style.fontSize=this._bareFontInfo.fontSize+"px",o.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,o.style.lineHeight=this._bareFontInfo.lineHeight+"px",o.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",n.appendChild(o);var a=document.createElement("div");a.style.fontFamily=t,a.style.fontWeight=this._bareFontInfo.fontWeight,a.style.fontSize=this._bareFontInfo.fontSize+"px",a.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,a.style.lineHeight=this._bareFontInfo.lineHeight+"px",a.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",a.style.fontStyle="italic",n.appendChild(a);var s,u=[],l=Object(i.a)(this._requests);try{for(l.s();!(s=l.n()).done;){var d=s.value,h=void 0;0===d.type&&(h=r),2===d.type&&(h=o),1===d.type&&(h=a),h.appendChild(document.createElement("br"));var f=document.createElement("span");e._render(f,d),h.appendChild(f),u.push(f)}}catch(p){l.e(p)}finally{l.f()}this._container=n,this._testElements=u}},{key:"_readFromDomElements",value:function(){for(var e=0,t=this._requests.length;e .001){x=!1;break}}var T=!0;x&&k.width!==L&&(T=!1),k.width>_.width&&(T=!1);var I=c.getTimeSinceLastZoomLevelChanged()>2e3;return new y.b({zoomLevel:c.getZoomLevel(),pixelRatio:c.getPixelRatio(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:x,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:T,spaceWidth:o.width,middotWidth:C.width,wsmiddotWidth:w.width,maxDigitWidth:E},I)}}]),n}(h.a);C.INSTANCE=new C;var w=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0;return Object(u.a)(this,n),(r=t.call(this,e,i)).accessibilityService=a,r._elementSizeObserver=r._register(new m.a(o,i.dimension,(function(){return r._recomputeOptions()}))),r._register(C.INSTANCE.onDidChange((function(){return r._recomputeOptions()}))),r._validatedOptions.get(10)&&r._elementSizeObserver.startObserving(),r._register(c.onDidChangeZoomLevel((function(e){return r._recomputeOptions()}))),r._register(r.accessibilityService.onDidChangeScreenReaderOptimized((function(){return r._recomputeOptions()}))),r._recomputeOptions(),r}return Object(l.a)(n,[{key:"observeReferenceElement",value:function(e){this._elementSizeObserver.observe(e)}},{key:"updatePixelRatio",value:function(){this._recomputeOptions()}},{key:"_getEnvConfiguration",value:function(){return{extraEditorClassName:n._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:c.isWebKit||c.isFirefox,pixelRatio:c.getPixelRatio(),zoomLevel:c.getZoomLevel(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}}},{key:"readConfiguration",value:function(e){return C.INSTANCE.readConfiguration(e)}}],[{key:"applyFontInfoSlow",value:function(e,t){e.style.fontFamily=t.getMassagedFontFamily(c.isSafari?g.d.fontFamily:null),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"}},{key:"applyFontInfo",value:function(e,t){e.setFontFamily(t.getMassagedFontFamily(c.isSafari?g.d.fontFamily:null)),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)}},{key:"_getExtraEditorClassName",value:function(){var e="";return c.isSafari||c.isWebkitWebView||(e+="no-user-select "),c.isSafari&&(e+="no-minimap-shadow "),f.f&&(e+="mac "),e}}]),n}(b.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(89),r=Object(i.c)("textModelService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"g",(function(){return d}));var i,r,o,a,s,u,l,c,d,h=n(85);!function(e){e.noSelection=h.a("noSelection","No selection"),e.singleSelectionRange=h.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=h.a("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=h.a("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=h.a("multiSelection","{0} selections"),e.emergencyConfOn=h.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=h.a("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=h.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=h.a("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=h.a("readonlyEditor"," in a read-only code editor"),e.editableEditor=h.a("editableEditor"," in a code editor"),e.changeConfigToOnMac=h.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=h.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=h.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=h.a("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=h.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=h.a("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=h.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=h.a("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=h.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=h.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=h.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=h.a("showAccessibilityHelpAction","Show Accessibility Help")}(i||(i={})),function(e){e.inspectTokensAction=h.a("inspectTokens","Developer: Inspect Tokens")}(r||(r={})),function(e){e.gotoLineActionLabel=h.a("gotoLineActionLabel","Go to Line/Column...")}(o||(o={})),function(e){e.helpQuickAccessActionLabel=h.a("helpQuickAccess","Show all Quick Access Providers")}(a||(a={})),function(e){e.quickCommandActionLabel=h.a("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=h.a("quickCommandActionHelp","Show And Run Commands")}(s||(s={})),function(e){e.quickOutlineActionLabel=h.a("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=h.a("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(u||(u={})),function(e){e.editorViewAccessibleLabel=h.a("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=h.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(l||(l={})),function(e){e.toggleHighContrast=h.a("toggleHighContrast","Toggle High Contrast Theme")}(c||(c={})),function(e){e.bulkEditServiceSummary=h.a("bulkEditServiceSummary","Made {0} edits in {1} files")}(d||(d={}))},function(e,t,n){"use strict";n.d(t,"h",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"g",(function(){return f})),n.d(t,"c",(function(){return g}));var i=n(75),r=n(74),o=n(88),a=n(81),s=function e(t,n,i,o){Object(r.a)(this,e),this._viewportBrand=void 0,this.top=0|t,this.left=0|n,this.width=0|i,this.height=0|o},u=function e(t,n){Object(r.a)(this,e),this.tabSize=t,this.data=n},l=function e(t,n,i,o,a,s,u){Object(r.a)(this,e),this._viewLineDataBrand=void 0,this.content=t,this.continuesWithWrappedLine=n,this.minColumn=i,this.maxColumn=o,this.startVisibleColumn=a,this.tokens=s,this.inlineDecorations=u},c=function(){function e(t,n,i,o,a,s,u,l,c,d){Object(r.a)(this,e),this.minColumn=t,this.maxColumn=n,this.content=i,this.continuesWithWrappedLine=o,this.isBasicASCII=e.isBasicASCII(i,s),this.containsRTL=e.containsRTL(i,this.isBasicASCII,a),this.tokens=u,this.inlineDecorations=l,this.tabSize=c,this.startVisibleColumn=d}return Object(i.a)(e,null,[{key:"isBasicASCII",value:function(e,t){return!t||o.C(e)}},{key:"containsRTL",value:function(e,t,n){return!(t||!n)&&o.o(e)}}]),e}(),d=function e(t,n,i){Object(r.a)(this,e),this.range=t,this.inlineClassName=n,this.type=i},h=function(){function e(t,n,i,o){Object(r.a)(this,e),this.startOffset=t,this.endOffset=n,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=o}return Object(i.a)(e,[{key:"toInlineDecoration",value:function(e){return new d(new a.a(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}]),e}(),f=function e(t,n){Object(r.a)(this,e),this._viewModelDecorationBrand=void 0,this.range=t,this.options=n},g=function(){function e(t,n,i){Object(r.a)(this,e),this.color=t,this.zIndex=n,this.data=i}return Object(i.a)(e,null,[{key:"cmp",value:function(e,t){return e.zIndex===t.zIndex?e.color t.color?1:0:e.zIndex-t.zIndex}}]),e}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return y}));var i=n(78),r=n(74),o=n(75),a=n(91),s=n(125),u=n(84),l=n(85),c=n(463),d=n(142),h=n(94),f=new(function(){function e(){Object(r.a)(this,e),this._onDidChange=new u.b,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:Object(l.a)("iconDefintion.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:Object(l.a)("iconDefintion.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:"^".concat(s.a.iconNameExpression,"$"),enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}return Object(o.a)(e,[{key:"registerIcon",value:function(e,t,n,i){var r=this.iconsById[e];if(r){if(n&&!r.description){r.description=n,this.iconSchema.properties[e].markdownDescription="".concat(n," $(").concat(e,")");var o=this.iconReferenceSchema.enum.indexOf(e);-1!==o&&(this.iconReferenceSchema.enumDescriptions[o]=n),this._onDidChange.fire()}return r}var a={id:e,description:n,defaults:t,deprecationMessage:i};this.iconsById[e]=a;var s={$ref:"#/definitions/icons"};return i&&(s.deprecationMessage=i),n&&(s.markdownDescription="".concat(n,": $(").concat(e,")")),this.iconSchema.properties[e]=s,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(n||""),this._onDidChange.fire(),{id:e}}},{key:"getIcons",value:function(){var e=this;return Object.keys(this.iconsById).map((function(t){return e.iconsById[t]}))}},{key:"getIcon",value:function(e){return this.iconsById[e]}},{key:"getIconSchema",value:function(){return this.iconSchema}},{key:"getIconFont",value:function(e){return this.iconFontsById[e]}},{key:"toString",value:function(){var e=this,t=function(e,t){return e.id.localeCompare(t.id)},n=function(t){for(;h.d.isThemeIcon(t.defaults);)t=e.iconsById[t.defaults.id];return"codicon codicon-".concat(t?t.id:"")},r=[];r.push("| preview | identifier | default codicon ID | description"),r.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");var o,a=Object.keys(this.iconsById).map((function(t){return e.iconsById[t]})),s=Object(i.a)(a.filter((function(e){return!!e.description})).sort(t));try{for(s.s();!(o=s.n()).done;){var u=o.value;r.push('||').concat(u.id,"|").concat(h.d.isThemeIcon(u.defaults)?u.defaults.id:u.id,"|").concat(u.description||"","|"))}}catch(f){s.e(f)}finally{s.f()}r.push("| preview | identifier "),r.push("| ----------- | --------------------------------- |");var l,c=Object(i.a)(a.filter((function(e){return!h.d.isThemeIcon(e.defaults)})).sort(t));try{for(c.s();!(l=c.n()).done;){var d=l.value;r.push('||').concat(d.id,"|"))}}catch(f){c.e(f)}finally{c.f()}return r.join("\n")}}]),e}());function g(e,t,n,i){return f.registerIcon(e,t,n,i)}function p(){return f}d.a.add("base.contributions.icons",f),function(){var e,t=Object(i.a)(s.d.all);try{for(t.s();!(e=t.n()).done;){var n=e.value;f.registerIcon(n.id,n.definition,n.description)}}catch(r){t.e(r)}finally{t.f()}s.d.onDidRegister((function(e){return f.registerIcon(e.id,e.definition,e.description)}))}();var v="vscode://schemas/icons",m=d.a.as(c.a.JSONContribution);m.registerSchema(v,f.getIconSchema());var b=new a.g((function(){return m.notifySchemaChanged(v)}),200);f.onDidChange((function(){b.isScheduled()||b.schedule()}));var y=g("widget-close",s.b.close,Object(l.a)("widgetClose","Icon for the close action in widgets."));g("goto-previous-location",s.b.arrowUp,Object(l.a)("previousChangeIcon","Icon for goto previous editor location.")),g("goto-next-location",s.b.arrowDown,Object(l.a)("nextChangeIcon","Icon for goto next editor location.")),h.d.modify(s.b.sync,"spin"),h.d.modify(s.b.loading,"spin")},,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return A})),n.d(t,"c",(function(){return T})),n.d(t,"a",(function(){return I}));var i=n(86),r=n(83),o=n(76),a=n(77),s=n(75),u=n(74),l=n(144),c=n(87),d=n(137),h=n(187),f=n(284),g=n(27),p=n(176),v=n(91),m=11,b=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e){var i,r;return Object(u.a)(this,n),(r=t.call(this))._onActivate=e.onActivate,r.bgDomNode=document.createElement("div"),r.bgDomNode.className="arrow-background",r.bgDomNode.style.position="absolute",r.bgDomNode.style.width=e.bgWidth+"px",r.bgDomNode.style.height=e.bgHeight+"px","undefined"!==typeof e.top&&(r.bgDomNode.style.top="0px"),"undefined"!==typeof e.left&&(r.bgDomNode.style.left="0px"),"undefined"!==typeof e.bottom&&(r.bgDomNode.style.bottom="0px"),"undefined"!==typeof e.right&&(r.bgDomNode.style.right="0px"),r.domNode=document.createElement("div"),r.domNode.className=e.className,(i=r.domNode.classList).add.apply(i,Object(g.a)(e.icon.classNamesArray)),r.domNode.style.position="absolute",r.domNode.style.width="11px",r.domNode.style.height="11px","undefined"!==typeof e.top&&(r.domNode.style.top=e.top+"px"),"undefined"!==typeof e.left&&(r.domNode.style.left=e.left+"px"),"undefined"!==typeof e.bottom&&(r.domNode.style.bottom=e.bottom+"px"),"undefined"!==typeof e.right&&(r.domNode.style.right=e.right+"px"),r._mouseMoveMonitor=r._register(new f.a),r.onmousedown(r.bgDomNode,(function(e){return r._arrowMouseDown(e)})),r.onmousedown(r.domNode,(function(e){return r._arrowMouseDown(e)})),r._mousedownRepeatTimer=r._register(new v.e),r._mousedownScheduleRepeatTimer=r._register(new v.i),r}return Object(s.a)(n,[{key:"_arrowMouseDown",value:function(e){var t=this;this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet((function(){t._mousedownRepeatTimer.cancelAndSet((function(){return t._onActivate()}),1e3/24)}),200),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,f.b,(function(e){}),(function(){t._mousedownRepeatTimer.cancel(),t._mousedownScheduleRepeatTimer.cancel()})),e.preventDefault()}}]),n}(p.a),y=n(79),_=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i,r){var o;return Object(u.a)(this,n),(o=t.call(this))._visibility=e,o._visibleClassName=i,o._invisibleClassName=r,o._domNode=null,o._isVisible=!1,o._isNeeded=!1,o._rawShouldBeVisible=!1,o._shouldBeVisible=!1,o._revealTimer=o._register(new v.i),o}return Object(s.a)(n,[{key:"setVisibility",value:function(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}},{key:"setShouldBeVisible",value:function(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}},{key:"_applyVisibilitySetting",value:function(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}},{key:"_updateShouldBeVisible",value:function(){var e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}},{key:"setIsNeeded",value:function(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}},{key:"setDomNode",value:function(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}},{key:"ensureVisibility",value:function(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}},{key:"_reveal",value:function(){var e=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((function(){e._domNode&&e._domNode.setClassName(e._visibleClassName)}),0))}},{key:"_hide",value:function(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))}}]),n}(y.a),k=n(100),C=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e){var i;return Object(u.a)(this,n),(i=t.call(this))._lazyRender=e.lazyRender,i._host=e.host,i._scrollable=e.scrollable,i._scrollByPage=e.scrollByPage,i._scrollbarState=e.scrollbarState,i._visibilityController=i._register(new _(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),i._visibilityController.setIsNeeded(i._scrollbarState.isNeeded()),i._mouseMoveMonitor=i._register(new f.a),i._shouldRender=!0,i.domNode=Object(d.b)(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i._visibilityController.setDomNode(i.domNode),i.domNode.setPosition("absolute"),i.onmousedown(i.domNode.domNode,(function(e){return i._domNodeMouseDown(e)})),i}return Object(s.a)(n,[{key:"_createArrow",value:function(e){var t=this._register(new b(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}},{key:"_createSlider",value:function(e,t,n,i){var r=this;this.slider=Object(d.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof n&&this.slider.setWidth(n),"number"===typeof i&&this.slider.setHeight(i),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,(function(e){e.leftButton&&(e.preventDefault(),r._sliderMouseDown(e,(function(){})))})),this.onclick(this.slider.domNode,(function(e){e.leftButton&&e.stopPropagation()}))}},{key:"_onElementSize",value:function(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}},{key:"_onElementScrollSize",value:function(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}},{key:"_onElementScrollPosition",value:function(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}},{key:"beginReveal",value:function(){this._visibilityController.setShouldBeVisible(!0)}},{key:"beginHide",value:function(){this._visibilityController.setShouldBeVisible(!1)}},{key:"render",value:function(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}},{key:"_domNodeMouseDown",value:function(e){e.target===this.domNode.domNode&&this._onMouseDown(e)}},{key:"delegateMouseDown",value:function(e){var t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),i=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),r=this._sliderMousePosition(e);n<=r&&r<=i?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(function(){}))):this._onMouseDown(e)}},{key:"_onMouseDown",value:function(e){var t,n;if(e.target===this.domNode.domNode&&"number"===typeof e.browserEvent.offsetX&&"number"===typeof e.browserEvent.offsetY)t=e.browserEvent.offsetX,n=e.browserEvent.offsetY;else{var i=c.getDomNodePagePosition(this.domNode.domNode);t=e.posx-i.left,n=e.posy-i.top}var r=this._mouseDownRelativePosition(t,n);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(r):this._scrollbarState.getDesiredScrollPositionFromOffset(r)),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(function(){})))}},{key:"_sliderMouseDown",value:function(e,t){var n=this,i=this._sliderMousePosition(e),r=this._sliderOrthogonalMousePosition(e),o=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,f.b,(function(e){var t=n._sliderOrthogonalMousePosition(e),a=Math.abs(t-r);if(k.i&&a>140)n._setDesiredScrollPositionNow(o.getScrollPosition());else{var s=n._sliderMousePosition(e)-i;n._setDesiredScrollPositionNow(o.getDesiredScrollPositionFromDelta(s))}}),(function(){n.slider.toggleClassName("active",!1),n._host.onDragEnd(),t()})),this._host.onDragStart()}},{key:"_setDesiredScrollPositionNow",value:function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}},{key:"updateScrollbarSize",value:function(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}},{key:"isNeeded",value:function(){return this._scrollbarState.isNeeded()}}]),n}(p.a),w=function(){function e(t,n,i,r,o,a){Object(u.a)(this,e),this._scrollbarSize=Math.round(n),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(t),this._visibleSize=r,this._scrollSize=o,this._scrollPosition=a,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return Object(s.a)(e,[{key:"clone",value:function(){return new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}},{key:"setVisibleSize",value:function(e){var t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}},{key:"setScrollSize",value:function(e){var t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}},{key:"setScrollPosition",value:function(e){var t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}},{key:"setScrollbarSize",value:function(e){this._scrollbarSize=Math.round(e)}},{key:"setOppositeScrollbarSize",value:function(e){this._oppositeScrollbarSize=Math.round(e)}},{key:"_refreshComputedValues",value:function(){var t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition}},{key:"getArrowSize",value:function(){return this._arrowSize}},{key:"getScrollPosition",value:function(){return this._scrollPosition}},{key:"getRectangleLargeSize",value:function(){return this._computedAvailableSize}},{key:"getRectangleSmallSize",value:function(){return this._scrollbarSize}},{key:"isNeeded",value:function(){return this._computedIsNeeded}},{key:"getSliderSize",value:function(){return this._computedSliderSize}},{key:"getSliderPosition",value:function(){return this._computedSliderPosition}},{key:"getDesiredScrollPositionFromOffset",value:function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}},{key:"getDesiredScrollPositionFromOffsetPaged",value:function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize,n=this._scrollPosition;return t 0&&i>n;if(!s)return{computedAvailableSize:Math.round(o),computedIsNeeded:s,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};var u=Math.round(Math.max(20,Math.floor(n*a/i))),l=(a-u)/(i-n),c=r*l;return{computedAvailableSize:Math.round(o),computedIsNeeded:s,computedSliderSize:Math.round(u),computedSliderRatio:l,computedSliderPosition:Math.round(c)}}}]),e}(),S=n(125),O=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i,r){var o;Object(u.a)(this,n);var a=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(o=t.call(this,{lazyRender:i.lazyRender,host:r,scrollbarState:new w(i.horizontalHasArrows?i.arrowSize:0,2===i.horizontal?0:i.horizontalScrollbarSize,2===i.vertical?0:i.verticalScrollbarSize,a.width,a.scrollWidth,s.scrollLeft),visibility:i.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:i.scrollByPage}),i.horizontalHasArrows){var l=(i.arrowSize-m)/2,c=(i.horizontalScrollbarSize-m)/2;o._createArrow({className:"scra",icon:S.b.scrollbarButtonLeft,top:c,left:l,bottom:void 0,right:void 0,bgWidth:i.arrowSize,bgHeight:i.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new h.b(null,1,0))}}),o._createArrow({className:"scra",icon:S.b.scrollbarButtonRight,top:c,left:void 0,bottom:void 0,right:l,bgWidth:i.arrowSize,bgHeight:i.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new h.b(null,-1,0))}})}return o._createSlider(Math.floor((i.horizontalScrollbarSize-i.horizontalSliderSize)/2),0,void 0,i.horizontalSliderSize),o}return Object(s.a)(n,[{key:"_updateSlider",value:function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}},{key:"_renderDomNode",value:function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}},{key:"onDidScroll",value:function(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}},{key:"_mouseDownRelativePosition",value:function(e,t){return e}},{key:"_sliderMousePosition",value:function(e){return e.posx}},{key:"_sliderOrthogonalMousePosition",value:function(e){return e.posy}},{key:"_updateScrollbarSize",value:function(e){this.slider.setHeight(e)}},{key:"writeScrollPosition",value:function(e,t){e.scrollLeft=t}},{key:"updateOptions",value:function(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}]),n}(C),D=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i,r){var o;Object(u.a)(this,n);var a=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(o=t.call(this,{lazyRender:i.lazyRender,host:r,scrollbarState:new w(i.verticalHasArrows?i.arrowSize:0,2===i.vertical?0:i.verticalScrollbarSize,0,a.height,a.scrollHeight,s.scrollTop),visibility:i.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:i.scrollByPage}),i.verticalHasArrows){var l=(i.arrowSize-m)/2,c=(i.verticalScrollbarSize-m)/2;o._createArrow({className:"scra",icon:S.b.scrollbarButtonUp,top:l,left:c,bottom:void 0,right:void 0,bgWidth:i.verticalScrollbarSize,bgHeight:i.arrowSize,onActivate:function(){return o._host.onMouseWheel(new h.b(null,0,1))}}),o._createArrow({className:"scra",icon:S.b.scrollbarButtonDown,top:void 0,left:c,bottom:l,right:void 0,bgWidth:i.verticalScrollbarSize,bgHeight:i.arrowSize,onActivate:function(){return o._host.onMouseWheel(new h.b(null,0,-1))}})}return o._createSlider(0,Math.floor((i.verticalScrollbarSize-i.verticalSliderSize)/2),i.verticalSliderSize,void 0),o}return Object(s.a)(n,[{key:"_updateSlider",value:function(e,t){this.slider.setHeight(e),this.slider.setTop(t)}},{key:"_renderDomNode",value:function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}},{key:"onDidScroll",value:function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}},{key:"_mouseDownRelativePosition",value:function(e,t){return t}},{key:"_sliderMousePosition",value:function(e){return e.posy}},{key:"_sliderOrthogonalMousePosition",value:function(e){return e.posx}},{key:"_updateScrollbarSize",value:function(e){this.slider.setWidth(e)}},{key:"writeScrollPosition",value:function(e,t){e.scrollTop=t}},{key:"updateOptions",value:function(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}]),n}(C),E=n(84),x=n(385),L=(n(906),function e(t,n,i){Object(u.a)(this,e),this.timestamp=t,this.deltaX=n,this.deltaY=i,this.score=0}),j=function(){function e(){Object(u.a)(this,e),this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return Object(s.a)(e,[{key:"isPhysicalMouseWheel",value:function(){if(-1===this._front&&-1===this._rear)return!1;for(var e=1,t=0,n=1,i=this._rear;;){var r=i===this._front?e:Math.pow(2,-n);if(e-=r,t+=this._memory[i].score*r,i===this._front)break;i=(this._capacity+i-1)%this._capacity,n++}return t<=.5}},{key:"accept",value:function(e,t,n){var i=new L(e,t,n);i.score=this._computeScore(i),-1===this._front&&-1===this._rear?(this._memory[0]=i,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=i)}},{key:"_computeScore",value:function(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;var t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(t+=.25),Math.min(Math.max(t,0),1)}},{key:"_isAlmostInt",value:function(e){return Math.abs(Math.round(e)-e)<.01}}]),e}();j.INSTANCE=new j;var N=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i,r){var o;Object(u.a)(this,n),(o=t.call(this))._onScroll=o._register(new E.b),o.onScroll=o._onScroll.event,o._onWillScroll=o._register(new E.b),e.style.overflow="hidden",o._options=function(e){var t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:"undefined"!==typeof e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:"undefined"!==typeof e.scrollByPage&&e.scrollByPage};t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,k.f&&(t.className+=" mac");return t}(i),o._scrollable=r,o._register(o._scrollable.onScroll((function(e){o._onWillScroll.fire(e),o._onDidScroll(e),o._onScroll.fire(e)})));var a={onMouseWheel:function(e){return o._onMouseWheel(e)},onDragStart:function(){return o._onDragStart()},onDragEnd:function(){return o._onDragEnd()}};return o._verticalScrollbar=o._register(new D(o._scrollable,o._options,a)),o._horizontalScrollbar=o._register(new O(o._scrollable,o._options,a)),o._domNode=document.createElement("div"),o._domNode.className="monaco-scrollable-element "+o._options.className,o._domNode.setAttribute("role","presentation"),o._domNode.style.position="relative",o._domNode.style.overflow="hidden",o._domNode.appendChild(e),o._domNode.appendChild(o._horizontalScrollbar.domNode.domNode),o._domNode.appendChild(o._verticalScrollbar.domNode.domNode),o._options.useShadows?(o._leftShadowDomNode=Object(d.b)(document.createElement("div")),o._leftShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._leftShadowDomNode.domNode),o._topShadowDomNode=Object(d.b)(document.createElement("div")),o._topShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._topShadowDomNode.domNode),o._topLeftShadowDomNode=Object(d.b)(document.createElement("div")),o._topLeftShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._topLeftShadowDomNode.domNode)):(o._leftShadowDomNode=null,o._topShadowDomNode=null,o._topLeftShadowDomNode=null),o._listenOnDomNode=o._options.listenOnDomNode||o._domNode,o._mouseWheelToDispose=[],o._setListeningToMouseWheel(o._options.handleMouseWheel),o.onmouseover(o._listenOnDomNode,(function(e){return o._onMouseOver(e)})),o.onnonbubblingmouseout(o._listenOnDomNode,(function(e){return o._onMouseOut(e)})),o._hideTimeout=o._register(new v.i),o._isDragging=!1,o._mouseIsOver=!1,o._shouldRender=!0,o._revealOnScroll=!0,o}return Object(s.a)(n,[{key:"dispose",value:function(){this._mouseWheelToDispose=Object(y.f)(this._mouseWheelToDispose),Object(i.a)(Object(r.a)(n.prototype),"dispose",this).call(this)}},{key:"getDomNode",value:function(){return this._domNode}},{key:"getOverviewRulerLayoutInfo",value:function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}},{key:"delegateVerticalScrollbarMouseDown",value:function(e){this._verticalScrollbar.delegateMouseDown(e)}},{key:"getScrollDimensions",value:function(){return this._scrollable.getScrollDimensions()}},{key:"setScrollDimensions",value:function(e){this._scrollable.setScrollDimensions(e,!1)}},{key:"updateClassName",value:function(e){this._options.className=e,k.f&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}},{key:"updateOptions",value:function(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontal&&(this._options.horizontal=e.horizontal),"undefined"!==typeof e.vertical&&(this._options.vertical=e.vertical),"undefined"!==typeof e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),"undefined"!==typeof e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),"undefined"!==typeof e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}},{key:"_setListeningToMouseWheel",value:function(e){var t=this;if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=Object(y.f)(this._mouseWheelToDispose),e)){this._mouseWheelToDispose.push(c.addDisposableListener(this._listenOnDomNode,c.EventType.MOUSE_WHEEL,(function(e){t._onMouseWheel(new h.b(e))}),{passive:!1}))}}},{key:"_onMouseWheel",value:function(e){var t=j.INSTANCE,n=window.devicePixelRatio/Object(l.getZoomFactor)();k.i||k.d?t.accept(Date.now(),e.deltaX/n,e.deltaY/n):t.accept(Date.now(),e.deltaX,e.deltaY);var i=!1;if(e.deltaY||e.deltaX){var r=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;if(this._options.scrollPredominantAxis&&(Math.abs(r)>=Math.abs(o)?o=0:r=0),this._options.flipAxes){var a=[o,r];r=a[0],o=a[1]}var s=!k.f&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!s||o||(o=r,r=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,r*=this._options.fastScrollSensitivity);var u=this._scrollable.getFutureScrollPosition(),c={};if(r){var d=50*r,h=u.scrollTop-(d<0?Math.floor(d):Math.ceil(d));this._verticalScrollbar.writeScrollPosition(c,h)}if(o){var f=50*o,g=u.scrollLeft-(f<0?Math.floor(f):Math.ceil(f));this._horizontalScrollbar.writeScrollPosition(c,g)}if(c=this._scrollable.validateScrollPosition(c),u.scrollLeft!==c.scrollLeft||u.scrollTop!==c.scrollTop)this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(c):this._scrollable.setScrollPositionNow(c),i=!0}var p=i;!p&&this._options.alwaysConsumeMouseWheel&&(p=!0),!p&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(p=!0),p&&(e.preventDefault(),e.stopPropagation())}},{key:"_onDidScroll",value:function(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}},{key:"renderNow",value:function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}},{key:"_render",value:function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0,i=n?" left":"",r=t?" top":"",o=n||t?" top-left-corner":"";this._leftShadowDomNode.setClassName("shadow".concat(i)),this._topShadowDomNode.setClassName("shadow".concat(r)),this._topLeftShadowDomNode.setClassName("shadow".concat(o).concat(r).concat(i))}}},{key:"_onDragStart",value:function(){this._isDragging=!0,this._reveal()}},{key:"_onDragEnd",value:function(){this._isDragging=!1,this._hide()}},{key:"_onMouseOut",value:function(e){this._mouseIsOver=!1,this._hide()}},{key:"_onMouseOver",value:function(e){this._mouseIsOver=!0,this._reveal()}},{key:"_reveal",value:function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}},{key:"_hide",value:function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}},{key:"_scheduleHide",value:function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((function(){return e._hide()}),500)}}]),n}(p.a),A=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i){var r;Object(u.a)(this,n),(i=i||{}).mouseWheelSmoothScroll=!1;var o=new x.a(0,(function(e){return c.scheduleAtNextAnimationFrame(e)}));return(r=t.call(this,e,i,o))._register(o),r}return Object(s.a)(n,[{key:"setScrollPosition",value:function(e){this._scrollable.setScrollPositionNow(e)}},{key:"getScrollPosition",value:function(){return this._scrollable.getCurrentScrollPosition()}}]),n}(N),T=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i,r){return Object(u.a)(this,n),t.call(this,e,i,r)}return Object(s.a)(n,[{key:"setScrollPosition",value:function(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}},{key:"getScrollPosition",value:function(){return this._scrollable.getCurrentScrollPosition()}}]),n}(N),I=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i){var r;return Object(u.a)(this,n),(r=t.call(this,e,i))._element=e,r.onScroll((function(e){e.scrollTopChanged&&(r._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(r._element.scrollLeft=e.scrollLeft)})),r.scanDomNode(),r}return Object(s.a)(n,[{key:"scanDomNode",value:function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}]),n}(A)},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return S})),n.d(t,"d",(function(){return O})),n.d(t,"c",(function(){return D}));var i=n(86),r=n(83),o=n(76),a=n(77),s=n(74),u=n(75),l=n(88),c=n(81),d=n(114),h=n(79),f=n(102),g=n(98),p=n(99),v=n(233),m=n(89),b=n(219),y=n(85),_=Object(m.c)("IEditorCancelService"),k=new p.c("cancellableOperation",!1,Object(y.a)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));Object(b.b)(_,function(){function e(){Object(s.a)(this,e),this._tokens=new WeakMap}return Object(u.a)(e,[{key:"add",value:function(e,t){var n,i=this._tokens.get(e);return i||(i=e.invokeWithinContext((function(e){return{key:k.bindTo(e.get(p.b)),tokens:new v.a}})),this._tokens.set(e,i)),i.key.set(!0),n=i.tokens.push(t),function(){n&&(n(),i.key.set(!i.tokens.isEmpty()),n=void 0)}}},{key:"cancel",value:function(e){var t=this._tokens.get(e);if(t){var n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}}}]),e}(),!0);var C=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i){var r;return Object(s.a)(this,n),(r=t.call(this,i)).editor=e,r._unregister=e.invokeWithinContext((function(t){return t.get(_).add(e,Object(f.a)(r))})),r}return Object(u.a)(n,[{key:"dispose",value:function(){this._unregister(),Object(i.a)(Object(r.a)(n.prototype),"dispose",this).call(this)}}]),n}(d.b);Object(g.k)(new(function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(s.a)(this,n),t.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:k})}return Object(u.a)(n,[{key:"runEditorCommand",value:function(e,t){e.get(_).cancel(t)}}]),n}(g.c)));var w=function(){function e(t,n){if(Object(s.a)(this,e),this.flags=n,0!==(1&this.flags)){var i=t.getModel();this.modelVersionId=i?l.x("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;0!==(4&this.flags)?this.position=t.getPosition():this.position=null,0!==(2&this.flags)?this.selection=t.getSelection():this.selection=null,0!==(8&this.flags)?(this.scrollLeft=t.getScrollLeft(),this.scrollTop=t.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}return Object(u.a)(e,[{key:"_equals",value:function(t){if(!(t instanceof e))return!1;var n=t;return this.modelVersionId===n.modelVersionId&&(this.scrollLeft===n.scrollLeft&&this.scrollTop===n.scrollTop&&(!(!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position))&&!(!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))))}},{key:"validate",value:function(t){return this._equals(new e(t,this.flags))}}]),e}(),S=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i,r,o){var a;return Object(s.a)(this,n),(a=t.call(this,e,o))._listener=new h.b,4&i&&a._listener.add(e.onDidChangeCursorPosition((function(e){r&&c.a.containsPosition(r,e.position)||a.cancel()}))),2&i&&a._listener.add(e.onDidChangeCursorSelection((function(e){r&&c.a.containsRange(r,e.selection)||a.cancel()}))),8&i&&a._listener.add(e.onDidScrollChange((function(e){return a.cancel()}))),1&i&&(a._listener.add(e.onDidChangeModel((function(e){return a.cancel()}))),a._listener.add(e.onDidChangeModelContent((function(e){return a.cancel()})))),a}return Object(u.a)(n,[{key:"dispose",value:function(){this._listener.dispose(),Object(i.a)(Object(r.a)(n.prototype),"dispose",this).call(this)}}]),n}(C),O=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i){var r;return Object(s.a)(this,n),(r=t.call(this,i))._listener=e.onDidChangeContent((function(){return r.cancel()})),r}return Object(u.a)(n,[{key:"dispose",value:function(){this._listener.dispose(),Object(i.a)(Object(r.a)(n.prototype),"dispose",this).call(this)}}]),n}(d.b),D=function(){function e(t,n,i){Object(s.a)(this,e),this._visiblePosition=t,this._visiblePositionScrollDelta=n,this._cursorPosition=i}return Object(u.a)(e,[{key:"restore",value:function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}},{key:"restoreRelativeVerticalPositionOfCursor",value:function(e){var t=e.getPosition();if(this._cursorPosition&&t){var n=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+n)}}}],[{key:"capture",value:function(t){var n=null,i=0;if(0!==t.getScrollTop()){var r=t.getVisibleRanges();if(r.length>0){n=r[0].getStartPosition();var o=t.getTopForPosition(n.lineNumber,n.column);i=t.getScrollTop()-o}}return new e(n,i,t.getPosition())}}]),e}()},,function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return g}));var i,r=n(74),o=n(75),a=n(76),s=n(77),u=n(84),l=n(79),c=n(89),d=Object(c.c)("logService");!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off"}(i||(i={}));var h=i.Info,f=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return Object(r.a)(this,n),(e=t.call(this)).setLevel(i),e}return Object(o.a)(n,[{key:"trace",value:function(e){if(this.getLevel()<=i.Trace){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o 1?n-1:0),o=1;o 1?n-1:0),o=1;o 1?n-1:0),o=1;o 1?n-1:0),r=1;r 1?n-1:0),r=1;r 1?n-1:0),r=1;r 1?n-1:0),r=1;r 0&&void 0!==arguments[0]?arguments[0]:"",s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Object(i.a)(this,e),this.value=a,"string"!==typeof this.value)throw Object(o.c)("value");"boolean"===typeof s?(this.isTrusted=s,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=null!==(t=s.isTrusted)&&void 0!==t?t:void 0,this.supportThemeIcons=null!==(n=s.supportThemeIcons)&&void 0!==n&&n,this.supportHtml=null!==(r=s.supportHtml)&&void 0!==r&&r)}return Object(r.a)(e,[{key:"appendText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.value+=c(this.supportThemeIcons?Object(a.a)(e):e).replace(/([ \t]+)/g,(function(e,t){return" ".repeat(t.length)})).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}},{key:"appendMarkdown",value:function(e){return this.value+=e,this}},{key:"appendCodeblock",value:function(e,t){return this.value+="\n```",this.value+=e,this.value+="\n",this.value+=t,this.value+="\n```\n",this}}]),e}();function u(e){return l(e)?!e.value:!Array.isArray(e)||e.every(u)}function l(e){return e instanceof s||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||void 0===e.isTrusted)&&("boolean"===typeof e.supportThemeIcons||void 0===e.supportThemeIcons))}function c(e){return e.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}function d(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}function h(e){var t=[],n=e.split("|").map((function(e){return e.trim()}));e=n[0];var i=n[1];if(i){var r=/height=(\d+)/.exec(i),o=/width=(\d+)/.exec(i),a=r?r[1]:"",s=o?o[1]:"",u=isFinite(parseInt(s)),l=isFinite(parseInt(a));u&&t.push('width="'.concat(s,'"')),l&&t.push('height="'.concat(a,'"'))}return{href:e,dimensions:t}}},function(e,t,n){"use strict";n.d(t,"j",(function(){return o})),n.d(t,"h",(function(){return a})),n.d(t,"f",(function(){return u})),n.d(t,"i",(function(){return k})),n.d(t,"g",(function(){return E})),n.d(t,"b",(function(){return x})),n.d(t,"c",(function(){return L})),n.d(t,"a",(function(){return T})),n.d(t,"d",(function(){return H})),n.d(t,"e",(function(){return U}));var i=n(168),r=n(88);function o(){for(var e=arguments.length,t=new Array(e),n=0;n 0?[{start:0,end:t.length}]:[]:null}function u(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]}function l(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]===t[i]){var r;return(r=l(e,t,n+1,i+1))?m({start:i,end:i+1},r):null}return l(e,t,n,i+1)}function c(e){return 97<=e&&e<=122}function d(e){return 65<=e&&e<=90}function h(e){return 48<=e&&e<=57}function f(e){return 32===e||9===e||10===e||13===e}var g=new Set;function p(e){return f(e)||g.has(e)}function v(e){return c(e)||d(e)||h(e)}function m(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function b(e,t){for(var n=t;n 0&&!v(e.charCodeAt(n-1)))return n}return e.length}function y(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]!==t[i].toLowerCase())return null;var r=null,o=i+1;for(r=y(e,t,n+1,i+1);!r&&(o=b(t,o)) 60)return null;var n=function(e){for(var t=0,n=0,i=0,r=0,o=0,a=0;a .2&&t<.8&&i>.6&&r<.2}(n)){if(!function(e){var t=e.upperPercent;return 0===e.lowerPercent&&t>.6}(n))return null;t=t.toLowerCase()}var i=null,r=0;for(e=e.toLowerCase();r 2&&void 0!==arguments[2]&&arguments[2];if(!t||0===t.length)return null;var i=null,r=0;for(e=e.toLowerCase(),t=t.toLowerCase();r 0&&p(e.charCodeAt(n-1)))return n;return e.length}"()[]{}<>`'\"-/;:,.?!".split("").forEach((function(e){return g.add(e.charCodeAt(0))}));var S=o(a,_,u),O=o(a,_,(function(e,t){return l(e.toLowerCase(),t.toLowerCase(),0,0)})),D=new i.a(1e4);function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e||"string"!==typeof t)return null;var i=D.get(e);i||(i=new RegExp(r.r(e),"i"),D.set(e,i));var o=i.exec(t);return o?[{start:o.index,end:o.index+o[0].length}]:n?O(e,t):S(e,t)}function x(e,t,n,i,r,o){for(var a=Math.min(13,e.length);n1;i--){var r=e[i]+n,o=t[t.length-1];o&&o.end===r?o.end=r+1:t.push({start:r,end:r+1})}return t}var j=128;function N(){for(var e=[],t=[],n=0;n<=j;n++)t[n]=0;for(var i=0;i<=j;i++)e.push(t.slice(0));return e}function A(e){for(var t=[],n=0;n<=e;n++)t[n]=0;return t}var T,I=A(256),M=A(256),F=N(),P=N(),R=N();function B(e,t){if(t<0||t>=e.length)return!1;var n=e.codePointAt(t);switch(n){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 40:case 91:return!0;case void 0:return!1;default:return!!r.D(n)}}function W(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function V(e,t,n){return t[e]!==n[e]}function H(e,t,n,i,r,o,a){var s=e.length>j?j:e.length,u=i.length>j?j:i.length;if(!(n>=s||o>=u||s-n>u-o)&&function(e,t,n,i,r,o){for(var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];t =n&&s>=i;)r[a]===o[s]&&(M[a]=s,a--),s--}(s,u,n,o,t,r);var l=1,c=1,d=n,h=o,f=[!1];for(l=1,d=n;d g,k=_?P[l][c-1]+(F[l][c-1]>0?-5:0):0,C=h>g+1&&F[l][c-1]>0,w=C?P[l][c-2]+(F[l][c-2]>0?-5:0):0;if(C&&(!_||w>=k)&&(!b||w>=y))P[l][c]=w,R[l][c]=3,F[l][c]=0;else if(_&&(!b||k>=y))P[l][c]=k,R[l][c]=2,F[l][c]=0;else{if(!b)throw new Error("not possible");P[l][c]=y,R[l][c]=1,F[l][c]=F[l-1][c-1]+1}}}if(f[0]||a){l--,c--;for(var S=[P[l][c],o],O=0,D=0;l>=1;){var E=c;do{var x=R[l][E];if(3===x)E-=2;else{if(2!==x)break;E-=1}}while(E>=1);O>1&&t[n+l-1]===r[o+c-1]&&!V(E+o-1,i,r)&&O+1>F[l][E]&&(E=c),E===c?O++:O=1,D||(D=E),l--,c=E-1,S.push(c)}u===s&&(S[0]+=2);var L=D-s;return S[0]-=L,S}}}function z(e,t,n,i,r,o,a,s,u,l,c){if(t[n]!==o[a])return Number.MIN_SAFE_INTEGER;var d=1,h=!1;return a===n-i?d=e[n]===r[a]?7:5:!V(a,r,o)||0!==a&&V(a-1,r,o)?!B(o,a)||0!==a&&B(o,a-1)?(B(o,a-1)||W(o,a-1))&&(d=5,h=!0):d=5:(d=e[n]===r[a]?7:5,h=!0),d>1&&n===i&&(c[0]=!0),h||(h=V(a,r,o)||B(o,a-1)||W(o,a-1)),n===i?a>u&&(d-=h?3:5):d+=l?h?2:0:h?0:1,a+1===s&&(d-=h?3:5),d}function U(e,t,n,i,r,o,a){return function(e,t,n,i,r,o,a,s){var u=H(e,t,n,i,r,o,s);if(u&&!a)return u;if(e.length>=3)for(var l=Math.min(7,e.length-1),c=n+1;cu[0])&&(u=h))}}return u}(e,t,n,i,r,o,!0,a)}function K(e,t){if(!(t+1>=e.length)){var n=e[t],i=e[t+1];if(n!==i)return e.slice(0,t)+i+n+e.slice(t+2)}}!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(T||(T={}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var i=n(640),r=[];function o(e,t,n){t instanceof i.a||(t=new i.a(t,[],n)),r.push([e,t])}function a(){return r}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i=n(89),r=Object(i.c)("contextViewService"),o=Object(i.c)("contextMenuService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(89),r=n(471);n.d(t,"b",(function(){return r.a}));var o=Object(i.c)("quickInputService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(89),r=Object(i.c)("editorWorkerService")},function(e,t,n){"use strict";function i(e){var t;if("undefined"!==typeof Symbol){if(Symbol.asyncIterator&&null!=(t=e[Symbol.asyncIterator]))return t.call(e);if(Symbol.iterator&&null!=(t=e[Symbol.iterator]))return t.call(e)}throw new TypeError("Object is not async iterable")}n.d(t,"a",(function(){return i}))},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return S}));var i,r=n(74),o=n(75),a=n(76),s=n(77),u=n(84),l=n(79),c=n(109),d=n(80),h=n.n(d),f=n(86),g=n(83),p=n(91),v=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))};!function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(i||(i={}));var m=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){var o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null);return Object(r.a)(this,n),(o=t.call(this)).database=e,o.options=a,o._onDidChangeStorage=o._register(new u.b),o.onDidChangeStorage=o._onDidChangeStorage.event,o.state=i.None,o.cache=new Map,o.flushDelayer=new p.h(n.DEFAULT_FLUSH_DELAY),o.pendingDeletes=new Set,o.pendingInserts=new Map,o.whenFlushedCallbacks=[],o.registerListeners(),o}return Object(o.a)(n,[{key:"registerListeners",value:function(){var e=this;this._register(this.database.onDidChangeItemsExternal((function(t){return e.onDidChangeItemsExternal(t)})))}},{key:"onDidChangeItemsExternal",value:function(e){var t,n,i=this;null===(t=e.changed)||void 0===t||t.forEach((function(e,t){return i.accept(t,e)})),null===(n=e.deleted)||void 0===n||n.forEach((function(e){return i.accept(e,void 0)}))}},{key:"accept",value:function(e,t){if(this.state!==i.Closed){var n=!1;if(Object(c.n)(t))n=this.cache.delete(e);else this.cache.get(e)!==t&&(this.cache.set(e,t),n=!0);n&&this._onDidChangeStorage.fire(e)}}},{key:"get",value:function(e,t){var n=this.cache.get(e);return Object(c.n)(n)?t:n}},{key:"getBoolean",value:function(e,t){var n=this.get(e);return Object(c.n)(n)?t:"true"===n}},{key:"getNumber",value:function(e,t){var n=this.get(e);return Object(c.n)(n)?t:parseInt(n,10)}},{key:"set",value:function(e,t){return v(this,void 0,void 0,h.a.mark((function n(){var r;return h.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.state!==i.Closed){n.next=2;break}return n.abrupt("return");case 2:if(!Object(c.n)(t)){n.next=4;break}return n.abrupt("return",this.delete(e));case 4:if(r=String(t),this.cache.get(e)!==r){n.next=8;break}return n.abrupt("return");case 8:return this.cache.set(e,r),this.pendingInserts.set(e,r),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire(e),n.abrupt("return",this.doFlush());case 13:case"end":return n.stop()}}),n,this)})))}},{key:"delete",value:function(e){return v(this,void 0,void 0,h.a.mark((function t(){return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.state!==i.Closed){t.next=2;break}return t.abrupt("return");case 2:if(this.cache.delete(e)){t.next=5;break}return t.abrupt("return");case 5:return this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire(e),t.abrupt("return",this.doFlush());case 9:case"end":return t.stop()}}),t,this)})))}},{key:"hasPending",get:function(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}},{key:"flushPending",value:function(){return v(this,void 0,void 0,h.a.mark((function e(){var t,n=this;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.hasPending){e.next=2;break}return e.abrupt("return");case 2:return t={insert:this.pendingInserts,delete:this.pendingDeletes},this.pendingDeletes=new Set,this.pendingInserts=new Map,e.abrupt("return",this.database.updateItems(t).finally((function(){var e;if(!n.hasPending)for(;n.whenFlushedCallbacks.length;)null===(e=n.whenFlushedCallbacks.pop())||void 0===e||e()})));case 6:case"end":return e.stop()}}),e,this)})))}},{key:"doFlush",value:function(e){return v(this,void 0,void 0,h.a.mark((function t(){var n=this;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.flushDelayer.trigger((function(){return n.flushPending()}),e));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"dispose",value:function(){this.flushDelayer.dispose(),Object(f.a)(Object(g.a)(n.prototype),"dispose",this).call(this)}}]),n}(l.a);m.DEFAULT_FLUSH_DELAY=100;var b,y=function(){function e(){Object(r.a)(this,e),this.onDidChangeItemsExternal=u.c.None,this.items=new Map}return Object(o.a)(e,[{key:"updateItems",value:function(e){return v(this,void 0,void 0,h.a.mark((function t(){var n=this;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.insert&&e.insert.forEach((function(e,t){return n.items.set(t,e)})),e.delete&&e.delete.forEach((function(e){return n.items.delete(e)}));case 2:case"end":return t.stop()}}),t)})))}}]),e}(),_=n(89),k="__$__targetStorageMarker",C=Object(_.c)("storageService");!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(b||(b={}));var w=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{flushInterval:n.DEFAULT_FLUSH_INTERVAL};return Object(r.a)(this,n),(e=t.call(this)).options=i,e._onDidChangeValue=e._register(new u.e),e._onDidChangeTarget=e._register(new u.e),e._onWillSaveState=e._register(new u.b),e.onWillSaveState=e._onWillSaveState.event,e._workspaceKeyTargets=void 0,e._globalKeyTargets=void 0,e}return Object(o.a)(n,[{key:"emitDidChangeValue",value:function(e,t){t===k?(0===e?this._globalKeyTargets=void 0:1===e&&(this._workspaceKeyTargets=void 0),this._onDidChangeTarget.fire({scope:e})):this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}},{key:"get",value:function(e,t,n){var i;return null===(i=this.getStorage(t))||void 0===i?void 0:i.get(e,n)}},{key:"getBoolean",value:function(e,t,n){var i;return null===(i=this.getStorage(t))||void 0===i?void 0:i.getBoolean(e,n)}},{key:"getNumber",value:function(e,t,n){var i;return null===(i=this.getStorage(t))||void 0===i?void 0:i.getNumber(e,n)}},{key:"store",value:function(e,t,n,i){var r=this;Object(c.n)(t)?this.remove(e,n):this.withPausedEmitters((function(){var o;r.updateKeyTarget(e,n,i),null===(o=r.getStorage(n))||void 0===o||o.set(e,t)}))}},{key:"remove",value:function(e,t){var n=this;this.withPausedEmitters((function(){var i;n.updateKeyTarget(e,t,void 0),null===(i=n.getStorage(t))||void 0===i||i.delete(e)}))}},{key:"withPausedEmitters",value:function(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}},{key:"updateKeyTarget",value:function(e,t,n){var i,r,o=this.getKeyTargets(t);"number"===typeof n?o[e]!==n&&(o[e]=n,null===(i=this.getStorage(t))||void 0===i||i.set(k,JSON.stringify(o))):"number"===typeof o[e]&&(delete o[e],null===(r=this.getStorage(t))||void 0===r||r.set(k,JSON.stringify(o)))}},{key:"workspaceKeyTargets",get:function(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}},{key:"globalKeyTargets",get:function(){return this._globalKeyTargets||(this._globalKeyTargets=this.loadKeyTargets(0)),this._globalKeyTargets}},{key:"getKeyTargets",value:function(e){return 0===e?this.globalKeyTargets:this.workspaceKeyTargets}},{key:"loadKeyTargets",value:function(e){var t=this.get(k,e);if(t)try{return JSON.parse(t)}catch(n){}return Object.create(null)}}]),n}(l.a);w.DEFAULT_FLUSH_INTERVAL=6e4;var S=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){var e;return Object(r.a)(this,n),(e=t.call(this)).globalStorage=e._register(new m(new y)),e.workspaceStorage=e._register(new m(new y)),e._register(e.workspaceStorage.onDidChangeStorage((function(t){return e.emitDidChangeValue(1,t)}))),e._register(e.globalStorage.onDidChangeStorage((function(t){return e.emitDidChangeValue(0,t)}))),e}return Object(o.a)(n,[{key:"getStorage",value:function(e){return 0===e?this.globalStorage:this.workspaceStorage}}]),n}(w)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(83),r=n(451);var o=n(633);function a(e){var t="function"===typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return Object(o.a)(e,arguments,Object(i.a)(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Object(r.a)(a,e)})(e)}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n(80),r=n.n(i),o=n(75),a=n(74),s=function e(t){Object(a.a)(this,e),this.element=t,this.next=e.Undefined,this.prev=e.Undefined};s.Undefined=new s(void 0);var u=function(){function e(){Object(a.a)(this,e),this._first=s.Undefined,this._last=s.Undefined,this._size=0}return Object(o.a)(e,[{key:"size",get:function(){return this._size}},{key:"isEmpty",value:function(){return this._first===s.Undefined}},{key:"clear",value:function(){for(var e=this._first;e!==s.Undefined;){var t=e.next;e.prev=s.Undefined,e.next=s.Undefined,e=t}this._first=s.Undefined,this._last=s.Undefined,this._size=0}},{key:"unshift",value:function(e){return this._insert(e,!1)}},{key:"push",value:function(e){return this._insert(e,!0)}},{key:"_insert",value:function(e,t){var n=this,i=new s(e);if(this._first===s.Undefined)this._first=i,this._last=i;else if(t){var r=this._last;this._last=i,i.prev=r,r.next=i}else{var o=this._first;this._first=i,i.next=o,o.prev=i}this._size+=1;var a=!1;return function(){a||(a=!0,n._remove(i))}}},{key:"shift",value:function(){if(this._first!==s.Undefined){var e=this._first.element;return this._remove(this._first),e}}},{key:"pop",value:function(){if(this._last!==s.Undefined){var e=this._last.element;return this._remove(this._last),e}}},{key:"_remove",value:function(e){if(e.prev!==s.Undefined&&e.next!==s.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===s.Undefined&&e.next===s.Undefined?(this._first=s.Undefined,this._last=s.Undefined):e.next===s.Undefined?(this._last=this._last.prev,this._last.next=s.Undefined):e.prev===s.Undefined&&(this._first=this._first.next,this._first.prev=s.Undefined);this._size-=1}},{key:Symbol.iterator,value:r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this._first;case 1:if(t===s.Undefined){e.next=7;break}return e.next=4,t.element;case 4:t=t.next,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))}]),e}()},function(e,t,n){"use strict";n.d(t,"i",(function(){return y})),n.d(t,"e",(function(){return _})),n.d(t,"d",(function(){return k})),n.d(t,"g",(function(){return C})),n.d(t,"f",(function(){return w})),n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return O})),n.d(t,"c",(function(){return D})),n.d(t,"h",(function(){return E}));var i=n(74),r=n(76),o=n(77),a=n(230),s=n(891),u=46,l=47,c=92,d=58,h=function(e){Object(r.a)(n,e);var t=Object(o.a)(n);function n(e,r,o){var a,s;Object(i.a)(this,n),"string"===typeof r&&0===r.indexOf("not ")?(s="must not be",r=r.replace(/^not /,"")):s="must be";var u=-1!==e.indexOf(".")?"property":"argument",l='The "'.concat(e,'" ').concat(u," ").concat(s," of type ").concat(r);return l+=". Received type ".concat(typeof o),(a=t.call(this,l)).code="ERR_INVALID_ARG_TYPE",a}return n}(Object(a.a)(Error));function f(e,t){if("string"!==typeof e)throw new h(t,"string",e)}function g(e){return e===l||e===c}function p(e){return e===l}function v(e){return e>=65&&e<=90||e>=97&&e<=122}function m(e,t,n,i){for(var r="",o=0,a=-1,s=0,c=0,d=0;d<=e.length;++d){if(d 2){var h=r.lastIndexOf(n);-1===h?(r="",o=0):o=(r=r.slice(0,h)).length-1-r.lastIndexOf(n),a=d,s=0;continue}if(0!==r.length){r="",o=0,a=d,s=0;continue}}t&&(r+=r.length>0?"".concat(n,".."):"..",o=2)}else r.length>0?r+="".concat(n).concat(e.slice(a+1,d)):r=e.slice(a+1,d),o=d-a-1;a=d,s=0}else c===u&&-1!==s?++s:s=-1}return r}function b(e,t){if(null===t||"object"!==typeof t)throw new h("pathObject","Object",t);var n=t.dir||t.root,i=t.base||"".concat(t.name||"").concat(t.ext||"");return n?n===t.root?"".concat(n).concat(i):"".concat(n).concat(e).concat(i):i}var y={resolve:function(){for(var e="",t="",n=!1,i=arguments.length-1;i>=-1;i--){var r=void 0;if(i>=0){if(f(r=i<0||arguments.length<=i?void 0:arguments[i],"path"),0===r.length)continue}else 0===e.length?r=s.a():(void 0===(r=s.b["=".concat(e)]||s.a())||r.slice(0,2).toLowerCase()!==e.toLowerCase()&&r.charCodeAt(2)===c)&&(r="".concat(e,"\\"));var o=r.length,a=0,u="",l=!1,h=r.charCodeAt(0);if(1===o)g(h)&&(a=1,l=!0);else if(g(h))if(l=!0,g(r.charCodeAt(1))){for(var p=2,b=p;p 2&&g(r.charCodeAt(2))&&(l=!0,a=3));if(u.length>0)if(e.length>0){if(u.toLowerCase()!==e.toLowerCase())continue}else e=u;if(n){if(e.length>0)break}else if(t="".concat(r.slice(a),"\\").concat(t),n=l,l&&e.length>0)break}return t=m(t,!n,"\\",g),n?"".concat(e,"\\").concat(t):"".concat(e).concat(t)||"."},normalize:function(e){f(e,"path");var t=e.length;if(0===t)return".";var n,i=0,r=!1,o=e.charCodeAt(0);if(1===t)return p(o)?"\\":e;if(g(o))if(r=!0,g(e.charCodeAt(1))){for(var a=2,s=a;a 2&&g(e.charCodeAt(2))&&(r=!0,i=3));var l=i 0&&g(e.charCodeAt(t-1))&&(l+="\\"),void 0===n?r?"\\".concat(l):l:r?"".concat(n,"\\").concat(l):"".concat(n).concat(l)},isAbsolute:function(e){f(e,"path");var t=e.length;if(0===t)return!1;var n=e.charCodeAt(0);return g(n)||t>2&&v(n)&&e.charCodeAt(1)===d&&g(e.charCodeAt(2))},join:function(){if(0===arguments.length)return".";for(var e,t,n=0;n 0&&(void 0===e?e=t=i:e+="\\".concat(i))}if(void 0===e)return".";var r=!0,o=0;if("string"===typeof t&&g(t.charCodeAt(0))){++o;var a=t.length;a>1&&g(t.charCodeAt(1))&&(++o,a>2&&(g(t.charCodeAt(2))?++o:r=!1))}if(r){for(;o =2&&(e="\\".concat(e.slice(o)))}return y.normalize(e)},relative:function(e,t){if(f(e,"from"),f(t,"to"),e===t)return"";var n=y.resolve(e),i=y.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";for(var r=0;r r&&e.charCodeAt(o-1)===c;)o--;for(var a=o-r,s=0;s s&&t.charCodeAt(u-1)===c;)u--;for(var l=u-s,d=a d){if(t.charCodeAt(s+g)===c)return i.slice(s+g+1);if(2===g)return i.slice(s+g)}a>d&&(e.charCodeAt(r+g)===c?h=g:2===g&&(h=3)),-1===h&&(h=0)}var v="";for(g=r+h+1;g<=o;++g)g!==o&&e.charCodeAt(g)!==c||(v+=0===v.length?"..":"\\..");return s+=h,v.length>0?"".concat(v).concat(i.slice(s,u)):(i.charCodeAt(s)===c&&++s,i.slice(s,u))},toNamespacedPath:function(e){if("string"!==typeof e)return e;if(0===e.length)return"";var t=y.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===c){if(t.charCodeAt(1)===c){var n=t.charCodeAt(2);if(63!==n&&n!==u)return"\\\\?\\UNC\\".concat(t.slice(2))}}else if(v(t.charCodeAt(0))&&t.charCodeAt(1)===d&&t.charCodeAt(2)===c)return"\\\\?\\".concat(t);return e},dirname:function(e){f(e,"path");var t=e.length;if(0===t)return".";var n=-1,i=0,r=e.charCodeAt(0);if(1===t)return g(r)?e:".";if(g(r)){if(n=i=1,g(e.charCodeAt(1))){for(var o=2,a=o;o 2&&g(e.charCodeAt(2))?3:2);for(var s=-1,u=!0,l=t-1;l>=i;--l)if(g(e.charCodeAt(l))){if(!u){s=l;break}}else u=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename:function(e,t){void 0!==t&&f(t,"ext"),f(e,"path");var n,i=0,r=-1,o=!0;if(e.length>=2&&v(e.charCodeAt(0))&&e.charCodeAt(1)===d&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";var a=t.length-1,s=-1;for(n=e.length-1;n>=i;--n){var u=e.charCodeAt(n);if(g(u)){if(!o){i=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(u===t.charCodeAt(a)?-1===--a&&(r=n):(a=-1,r=s))}return i===r?r=s:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(g(e.charCodeAt(n))){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){f(e,"path");var t=0,n=-1,i=0,r=-1,o=!0,a=0;e.length>=2&&e.charCodeAt(1)===d&&v(e.charCodeAt(0))&&(t=i=2);for(var s=e.length-1;s>=t;--s){var l=e.charCodeAt(s);if(g(l)){if(!o){i=s+1;break}}else-1===r&&(o=!1,r=s+1),l===u?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return-1===n||-1===r||0===a||1===a&&n===r-1&&n===i+1?"":e.slice(n,r)},format:b.bind(null,"\\"),parse:function(e){f(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n=e.length,i=0,r=e.charCodeAt(0);if(1===n)return g(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(g(r)){if(i=1,g(e.charCodeAt(1))){for(var o=2,a=o;o 0&&(t.root=e.slice(0,i));for(var s=-1,l=i,c=-1,h=!0,p=e.length-1,m=0;p>=i;--p)if(g(r=e.charCodeAt(p))){if(!h){l=p+1;break}}else-1===c&&(h=!1,c=p+1),r===u?-1===s?s=p:1!==m&&(m=1):-1!==s&&(m=-1);return-1!==c&&(-1===s||0===m||1===m&&s===c-1&&s===l+1?t.base=t.name=e.slice(l,c):(t.name=e.slice(l,s),t.base=e.slice(l,c),t.ext=e.slice(s,c))),t.dir=l>0&&l!==i?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},_={resolve:function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var i=n>=0?n<0||arguments.length<=n?void 0:arguments[n]:s.a();f(i,"path"),0!==i.length&&(e="".concat(i,"/").concat(e),t=i.charCodeAt(0)===l)}return e=m(e,!t,"/",p),t?"/".concat(e):e.length>0?e:"."},normalize:function(e){if(f(e,"path"),0===e.length)return".";var t=e.charCodeAt(0)===l,n=e.charCodeAt(e.length-1)===l;return 0===(e=m(e,!t,"/",p)).length?t?"/":n?"./":".":(n&&(e+="/"),t?"/".concat(e):e)},isAbsolute:function(e){return f(e,"path"),e.length>0&&e.charCodeAt(0)===l},join:function(){if(0===arguments.length)return".";for(var e,t=0;t 0&&(void 0===e?e=n:e+="/".concat(n))}return void 0===e?".":_.normalize(e)},relative:function(e,t){if(f(e,"from"),f(t,"to"),e===t)return"";if((e=_.resolve(e))===(t=_.resolve(t)))return"";for(var n=e.length,i=n-1,r=t.length-1,o=i o){if(t.charCodeAt(1+s)===l)return t.slice(1+s+1);if(0===s)return t.slice(1+s)}else i>o&&(e.charCodeAt(1+s)===l?a=s:0===s&&(a=0));var c="";for(s=1+a+1;s<=n;++s)s!==n&&e.charCodeAt(s)!==l||(c+=0===c.length?"..":"/..");return"".concat(c).concat(t.slice(1+a))},toNamespacedPath:function(e){return e},dirname:function(e){if(f(e,"path"),0===e.length)return".";for(var t=e.charCodeAt(0)===l,n=-1,i=!0,r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===l){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename:function(e,t){void 0!==t&&f(t,"ext"),f(e,"path");var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";var a=t.length-1,s=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(u===l){if(!o){i=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(u===t.charCodeAt(a)?-1===--a&&(r=n):(a=-1,r=s))}return i===r?r=s:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===l){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){f(e,"path");for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(s!==l)-1===i&&(r=!1,i=a+1),s===u?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:b.bind(null,"/"),parse:function(e){f(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0)===l;i?(t.root="/",n=1):n=0;for(var r=-1,o=0,a=-1,s=!0,c=e.length-1,d=0;c>=n;--c){var h=e.charCodeAt(c);if(h!==l)-1===a&&(s=!1,a=c+1),h===u?-1===r?r=c:1!==d&&(d=1):-1!==r&&(d=-1);else if(!s){o=c+1;break}}if(-1!==a){var g=0===o&&i?1:o;-1===r||0===d||1===d&&r===a-1&&r===o+1?t.base=t.name=e.slice(g,a):(t.name=e.slice(g,r),t.base=e.slice(g,a),t.ext=e.slice(r,a))}return o>0?t.dir=e.slice(0,o-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};_.win32=y.win32=y,_.posix=y.posix=_;var k="win32"===s.c?y.normalize:_.normalize,C="win32"===s.c?y.resolve:_.resolve,w="win32"===s.c?y.relative:_.relative,S="win32"===s.c?y.dirname:_.dirname,O="win32"===s.c?y.basename:_.basename,D="win32"===s.c?y.extname:_.extname,E="win32"===s.c?y.sep:_.sep},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(74),r=n(75),o=n(280),a=n(100),s=n(121),u=n(142),l=new(function(){function e(){Object(i.a)(this,e),this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return Object(r.a)(e,[{key:"registerKeybindingRule",value:function(t){var n=e.bindToCurrentPlatform(t);if(n&&n.primary){var i=Object(o.e)(n.primary,a.a);i&&this._registerDefaultKeybinding(i,t.id,t.args,t.weight,0,t.when)}if(n&&Array.isArray(n.secondary))for(var r=0,s=n.secondary.length;r =21&&e<=30||(e>=31&&e<=56||(80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e))}}]),e}());function c(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.commandt.command?1:e.weight2-t.weight2}u.a.add("platform.keybindingsRegistry",l)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(89),r=Object(i.c)("telemetryService")},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return l}));var i=n(74),r=n(75),o=n(374),a=new(function(){function e(){Object(i.a)(this,e)}return Object(r.a)(e,[{key:"clone",value:function(){return this}},{key:"equals",value:function(e){return this===e}}]),e}()),s="vs.editor.nullMode";function u(e,t,n,i){return new o.b([new o.a(i,"",e)],n)}function l(e,t,n,i){var r=new Uint32Array(2);return r[0]=i,r[1]=(16384|e<<0|2<<23)>>>0,new o.c(r,null===n?a:n)}},function(e,t,n){"use strict";var i,r=n(88);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){var t="error",n="warning",i="info";e.fromValue=function(o){return o?r.t(t,o)?e.Error:r.t(n,o)||r.t("warn",o)?e.Warning:r.t(i,o)?e.Info:e.Ignore:e.Ignore},e.toString=function(r){switch(r){case e.Error:return t;case e.Warning:return n;case e.Info:return i;default:return"ignore"}}}(i||(i={})),t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var i=n(80),r=n.n(i),o=n(74),a=n(75),s=n(86),u=n(83),l=n(76),c=n(77),d=n(87),h=n(165),f=n(327),g=n(167),p=n(84),v=n(79),m=n(109),b=(n(645),function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))}),y=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e){var i,r,a,s,u,l,c,v,m,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(Object(o.a)(this,n),(i=t.call(this)).triggerKeyDown=!1,i.focusable=!0,i._onDidBlur=i._register(new p.b),i.onDidBlur=i._onDidBlur.event,i._onDidCancel=i._register(new p.b({onFirstListenerAdd:function(){return i.cancelHasListener=!0}})),i.onDidCancel=i._onDidCancel.event,i.cancelHasListener=!1,i._onDidRun=i._register(new p.b),i.onDidRun=i._onDidRun.event,i._onBeforeRun=i._register(new p.b),i.onBeforeRun=i._onBeforeRun.event,i.options=b,i._context=null!==(r=b.context)&&void 0!==r?r:null,i._orientation=null!==(a=i.options.orientation)&&void 0!==a?a:0,i._triggerKeys={keyDown:null!==(u=null===(s=i.options.triggerKeys)||void 0===s?void 0:s.keyDown)&&void 0!==u&&u,keys:null!==(c=null===(l=i.options.triggerKeys)||void 0===l?void 0:l.keys)&&void 0!==c?c:[3,10]},i.options.actionRunner?i._actionRunner=i.options.actionRunner:(i._actionRunner=new g.b,i._register(i._actionRunner)),i._register(i._actionRunner.onDidRun((function(e){return i._onDidRun.fire(e)}))),i._register(i._actionRunner.onBeforeRun((function(e){return i._onBeforeRun.fire(e)}))),i._actionIds=[],i.viewItems=[],i.focusedItem=void 0,i.domNode=document.createElement("div"),i.domNode.className="monaco-action-bar",!1!==b.animated&&i.domNode.classList.add("animated"),i._orientation){case 0:v=[15],m=[17];break;case 1:v=[16],m=[18],i.domNode.className+=" vertical"}return i._register(d.addDisposableListener(i.domNode,d.EventType.KEY_DOWN,(function(e){var t=new h.a(e),n=!0,r="number"===typeof i.focusedItem?i.viewItems[i.focusedItem]:void 0;v&&(t.equals(v[0])||t.equals(v[1]))?n=i.focusPrevious():m&&(t.equals(m[0])||t.equals(m[1]))?n=i.focusNext():t.equals(9)&&i.cancelHasListener?i._onDidCancel.fire():t.equals(14)?n=i.focusFirst():t.equals(13)?n=i.focusLast():t.equals(2)&&r instanceof f.b&&r.trapsArrowNavigation?n=i.focusNext():i.isTriggerKeyEvent(t)?i._triggerKeys.keyDown?i.doTrigger(t):i.triggerKeyDown=!0:n=!1,n&&(t.preventDefault(),t.stopPropagation())}))),i._register(d.addDisposableListener(i.domNode,d.EventType.KEY_UP,(function(e){var t=new h.a(e);i.isTriggerKeyEvent(t)?(!i._triggerKeys.keyDown&&i.triggerKeyDown&&(i.triggerKeyDown=!1,i.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&i.updateFocusedItem()}))),i.focusTracker=i._register(d.trackFocus(i.domNode)),i._register(i.focusTracker.onDidBlur((function(){d.getActiveElement()!==i.domNode&&d.isAncestor(d.getActiveElement(),i.domNode)||(i._onDidBlur.fire(),i.focusedItem=void 0,i.previouslyFocusedItem=void 0,i.triggerKeyDown=!1)}))),i._register(i.focusTracker.onDidFocus((function(){return i.updateFocusedItem()}))),i.actionsList=document.createElement("ul"),i.actionsList.className="actions-container",i.actionsList.setAttribute("role","toolbar"),i.options.ariaLabel&&i.actionsList.setAttribute("aria-label",i.options.ariaLabel),i.domNode.appendChild(i.actionsList),e.appendChild(i.domNode),i}return Object(a.a)(n,[{key:"setFocusable",value:function(e){if(this.focusable=e,this.focusable){var t=this.viewItems.find((function(e){return e instanceof f.b&&e.isEnabled()}));t instanceof f.b&&t.setFocusable(!0)}else this.viewItems.forEach((function(e){e instanceof f.b&&e.setFocusable(!1)}))}},{key:"isTriggerKeyEvent",value:function(e){var t=!1;return this._triggerKeys.keys.forEach((function(n){t=t||e.equals(n)})),t}},{key:"updateFocusedItem",value:function(){for(var e=0;e 1&&void 0!==arguments[1]?arguments[1]:{},i=Array.isArray(e)?e:[e],r=m.j(n.index)?n.index:null;i.forEach((function(e){var i,o=document.createElement("li");o.className="action-item",o.setAttribute("role","presentation"),t.options.allowContextMenu||t._register(d.addDisposableListener(o,d.EventType.CONTEXT_MENU,(function(e){d.EventHelper.stop(e,!0)}))),t.options.actionViewItemProvider&&(i=t.options.actionViewItemProvider(e)),i||(i=new f.a(t.context,e,n)),i.actionRunner=t._actionRunner,i.setActionContext(t.context),i.render(o),t.focusable&&i instanceof f.b&&0===t.viewItems.length&&i.setFocusable(!0),null===r||r<0||r>=t.actionsList.children.length?(t.actionsList.appendChild(o),t.viewItems.push(i),t._actionIds.push(e.id)):(t.actionsList.insertBefore(o,t.actionsList.children[r]),t.viewItems.splice(r,0,i),t._actionIds.splice(r,0,e.id),r++)})),"number"===typeof this.focusedItem&&this.focus(this.focusedItem)}},{key:"clear",value:function(){Object(v.f)(this.viewItems),this.viewItems=[],this._actionIds=[],d.clearNode(this.actionsList)}},{key:"length",value:function(){return this.viewItems.length}},{key:"focus",value:function(e){var t=!1,n=void 0;if(void 0===e?t=!0:"number"===typeof e?n=e:"boolean"===typeof e&&(t=e),t&&"undefined"===typeof this.focusedItem){var i=this.viewItems.findIndex((function(e){return e.isEnabled()}));this.focusedItem=-1===i?void 0:i,this.updateFocus(void 0,void 0,!0)}else void 0!==n&&(this.focusedItem=n),this.updateFocus(void 0,void 0,!0)}},{key:"focusFirst",value:function(){return this.focusedItem=this.length()-1,this.focusNext(!0)}},{key:"focusLast",value:function(){return this.focusedItem=0,this.focusPrevious(!0)}},{key:"focusNext",value:function(e){if("undefined"===typeof this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;var t,n=this.focusedItem;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=n,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,t=this.viewItems[this.focusedItem]}while(this.focusedItem!==n&&this.options.focusOnlyEnabledItems&&!t.isEnabled());return this.updateFocus(),!0}},{key:"focusPrevious",value:function(e){if("undefined"===typeof this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;var t,n=this.focusedItem;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=n,!1;this.focusedItem=this.viewItems.length-1}t=this.viewItems[this.focusedItem]}while(this.focusedItem!==n&&this.options.focusOnlyEnabledItems&&!t.isEnabled());return this.updateFocus(!0),!0}},{key:"updateFocus",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&(null===(n=this.viewItems[this.previouslyFocusedItem])||void 0===n||n.blur());var r=void 0!==this.focusedItem&&this.viewItems[this.focusedItem];if(r){var o=!0;m.i(r.focus)||(o=!1),this.options.focusOnlyEnabledItems&&m.i(r.isEnabled)&&!r.isEnabled()&&(o=!1),o?(i||this.previouslyFocusedItem!==this.focusedItem)&&(r.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0)}}},{key:"doTrigger",value:function(e){if("undefined"!==typeof this.focusedItem){var t=this.viewItems[this.focusedItem];if(t instanceof f.b){var n=null===t._context||void 0===t._context?e:t._context;this.run(t._action,n)}}}},{key:"run",value:function(e,t){return b(this,void 0,void 0,r.a.mark((function n(){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this._actionRunner.run(e,t);case 2:case"end":return n.stop()}}),n,this)})))}},{key:"dispose",value:function(){Object(v.f)(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),Object(s.a)(Object(u.a)(n.prototype),"dispose",this).call(this)}}]),n}(v.a)},,,,,,,,,,function(e,t,n){"use strict";var i,r="object"===typeof Reflect?Reflect:null,o=r&&"function"===typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,i){function r(n){e.removeListener(t,o),i(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&m(e,"error",t,n)}(e,r,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function l(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,i){var r,o,a,s;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"===typeof a?a=o[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(r=c(e))>0&&a.length>r&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=h.bind(i);return r.listener=n,i.wrapFn=r,r}function g(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"===typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n 0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=r[e];if(void 0===u)return!1;if("function"===typeof u)o(u,this,t);else{var l=u.length,c=v(u,l);for(n=0;n =0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1 =0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return g(this,e,!0)},s.prototype.rawListeners=function(e){return g(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,n){"use strict";var i=n(113).Buffer,r=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(i.isEncoding===r||!r(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=d,t=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n =0)return r>0&&(e.lastNeed=r-1),r;if(--i =0)return r>0&&(e.lastNeed=r-2),r;if(--i =0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},,,function(e,t,n){"use strict";function i(e){var t,n=this,i=!1;return function(){return i?t:(i=!0,t=e.apply(n,arguments))}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(74),r=n(75),o=n(100),a=o.b.performance&&"function"===typeof o.b.performance.now,s=function(){function e(t){Object(i.a)(this,e),this._highResolution=a&&t,this._startTime=this._now(),this._stopTime=-1}return Object(r.a)(e,[{key:"stop",value:function(){this._stopTime=this._now()}},{key:"elapsed",value:function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}},{key:"_now",value:function(){return this._highResolution?o.b.performance.now():Date.now()}}],[{key:"create",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new e(t)}}]),e}()},function(e,t,n){"use strict";n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return g}));var i,r,o,a=n(74),s=n(75),u=n(88),l=n(100),c=n(316);function d(){return i||(i=new TextDecoder("UTF-16LE")),i}function h(){return o||(o=l.e()?d():(r||(r=new TextDecoder("UTF-16BE")),r)),o}var f,g,p="undefined"!==typeof TextDecoder;function v(e,t,n){for(var i=[],r=0,o=0;o 0&&(65279===i[0]||65534===i[0]))return v(e,t,n);return d().decode(i)}):(f=function(e){return new b},g=v);var m=function(){function e(t){Object(a.a)(this,e),this._capacity=0|t,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return Object(s.a)(e,[{key:"reset",value:function(){this._completedStrings=null,this._bufferLength=0}},{key:"build",value:function(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}},{key:"_buildBuffer",value:function(){if(0===this._bufferLength)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return h().decode(e)}},{key:"_flushBuffer",value:function(){var e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}},{key:"write1",value:function(e){var t=this._capacity-this._bufferLength;t<=1&&(0===t||u.G(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}},{key:"appendASCII",value:function(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}},{key:"appendASCIIString",value:function(e){var t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var n=0;n >>1,this._text=n,this._languageIdCodec=r}return Object(r.a)(e,[{key:"equals",value:function(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount)}},{key:"slicedEquals",value:function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var i=t<<1,r=i+(n<<1),o=i;o 0?this._tokens[e-1<<1]:0}},{key:"getMetadata",value:function(e){return this._tokens[1+(e<<1)]}},{key:"getLanguageId",value:function(e){var t=this._tokens[1+(e<<1)],n=o.E.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(n)}},{key:"getStandardTokenType",value:function(e){var t=this._tokens[1+(e<<1)];return o.E.getTokenType(t)}},{key:"getForeground",value:function(e){var t=this._tokens[1+(e<<1)];return o.E.getForeground(t)}},{key:"getClassName",value:function(e){var t=this._tokens[1+(e<<1)];return o.E.getClassNameFromMetadata(t)}},{key:"getInlineStyle",value:function(e,t){var n=this._tokens[1+(e<<1)];return o.E.getInlineStyleFromMetadata(n,t)}},{key:"getEndOffset",value:function(e){return this._tokens[e<<1]}},{key:"findTokenIndexAtOffset",value:function(t){return e.findIndexInTokensArray(this._tokens,t)}},{key:"inflate",value:function(){return this}},{key:"sliceAndInflate",value:function(e,t,n){return new s(this,e,t,n)}},{key:"withInserted",value:function(t){if(0===t.length)return this;for(var n=0,i=0,r="",o=new Array,a=0;;){var s=n a){r+=this._text.substring(a,u.offset);var c=this._tokens[1+(n<<1)];o.push(r.length,c),a=u.offset}r+=u.text,o.push(r.length,u.tokenMetadata),i++}}return new e(new Uint32Array(o),r,this._languageIdCodec)}}],[{key:"createEmpty",value:function(t,n){var i=e.defaultTokenMetadata,r=new Uint32Array(2);return r[0]=t.length,r[1]=i,new e(r,t,n)}},{key:"convertToEndOffset",value:function(e,t){for(var n=(e.length>>>1)-1,i=0;i >>1)-1;nt&&(i=r)}return n}}]),e}();a.defaultTokenMetadata=16793600;var s=function(){function e(t,n,r,o){Object(i.a)(this,e),this._source=t,this._startOffset=n,this._endOffset=r,this._deltaOffset=o,this._firstTokenIndex=t.findTokenIndexAtOffset(n),this._tokensCount=0;for(var a=this._firstTokenIndex,s=t.getCount();a =r)break;this._tokensCount++}}return Object(r.a)(e,[{key:"getLineContent",value:function(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}},{key:"equals",value:function(t){return t instanceof e&&(this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount))}},{key:"getCount",value:function(){return this._tokensCount}},{key:"getForeground",value:function(e){return this._source.getForeground(this._firstTokenIndex+e)}},{key:"getEndOffset",value:function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}},{key:"getClassName",value:function(e){return this._source.getClassName(this._firstTokenIndex+e)}},{key:"getInlineStyle",value:function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}},{key:"findTokenIndexAtOffset",value:function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}]),e}()},function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return g}));var i=n(78),r=n(75),o=n(74),a=function e(){Object(o.a)(this,e),this.changeType=1},s=function(){function e(t,n,i,r,a){Object(o.a)(this,e),this.ownerId=t,this.lineNumber=n,this.column=i,this.options=r,this.order=a}return Object(r.a)(e,null,[{key:"applyInjectedText",value:function(e,t){if(!t||0===t.length)return e;var n,r="",o=0,a=Object(i.a)(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;r+=e.substring(o,s.column-1),o=s.column-1,r+=s.options.content}}catch(u){a.e(u)}finally{a.f()}return r+=e.substring(o)}},{key:"fromDecorations",value:function(t){var n,r=[],o=Object(i.a)(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;a.options.before&&a.options.before.content.length>0&&r.push(new e(a.ownerId,a.range.startLineNumber,a.range.startColumn,a.options.before,0)),a.options.after&&a.options.after.content.length>0&&r.push(new e(a.ownerId,a.range.endLineNumber,a.range.endColumn,a.options.after,1))}}catch(s){o.e(s)}finally{o.f()}return r.sort((function(e,t){return e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber})),r}}]),e}(),u=function e(t,n,i){Object(o.a)(this,e),this.changeType=2,this.lineNumber=t,this.detail=n,this.injectedText=i},l=function e(t,n){Object(o.a)(this,e),this.changeType=3,this.fromLineNumber=t,this.toLineNumber=n},c=function e(t,n,i,r){Object(o.a)(this,e),this.changeType=4,this.injectedTexts=r,this.fromLineNumber=t,this.toLineNumber=n,this.detail=i},d=function e(){Object(o.a)(this,e),this.changeType=5},h=function(){function e(t,n,i,r){Object(o.a)(this,e),this.changes=t,this.versionId=n,this.isUndoing=i,this.isRedoing=r,this.resultingSelection=null}return Object(r.a)(e,[{key:"containsEvent",value:function(e){for(var t=0,n=this.changes.length;t0&&void 0!==arguments[0]?arguments[0]:2,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];Object(u.a)(this,e),this.snippetSortOrder=t,this.kindFilter=n,this.providerFilter=i,this.showDeprecated=r};function N(){return i}j.default=new j;var A=function e(t,n,i,r){Object(u.a)(this,e),this.items=t,this.needsClipboard=n,this.durations=i,this.disposable=r};function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j.default,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{triggerKind:0},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:c.a.None;return D(this,void 0,void 0,s.a.mark((function u(){var l,c,h,p,v,m,_,C,w,S,O,E,x,j,N=this;return s.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:l=new g.a(!0),t=t.clone(),c=e.getWordAtPosition(t),h=c?new b.a(t.lineNumber,c.startColumn,t.lineNumber,c.endColumn):b.a.fromPositions(t),p={replace:h,insert:h.setEndPosition(t.lineNumber,t.column)},v=[],m=new f.b,_=[],C=!1,w=function(e,i,r){var a,s,u;if(i){var l,c=Object(o.a)(i.suggestions);try{for(c.s();!(l=c.n()).done;){var d=l.value;if(!n.kindFilter.has(d.kind)){if(!n.showDeprecated&&(null===(a=null===d||void 0===d?void 0:d.tags)||void 0===a?void 0:a.includes(1)))continue;d.range||(d.range=p),d.sortText||(d.sortText="string"===typeof d.label?d.label:d.label.label),!C&&d.insertTextRules&&4&d.insertTextRules&&(C=k.c.guessNeedsClipboard(d.insertText)),v.push(new L(t,d,i,e))}}}catch(h){c.e(h)}finally{c.f()}Object(f.g)(i)&&m.add(i),_.push({providerName:null!==(s=e._debugDisplayName)&&void 0!==s?s:"unkown_provider",elapsedProvider:null!==(u=i.duration)&&void 0!==u?u:-1,elapsedOverall:r.elapsed()})}},S=D(N,void 0,void 0,s.a.mark((function o(){var u,l;return s.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return");case 2:if(!(n.providerFilter.size>0)||n.providerFilter.has(i)){o.next=4;break}return o.abrupt("return");case 4:return u=new g.a(!0),o.next=7,i.provideCompletionItems(e,t,r,a);case 7:l=o.sent,w(i,l,u);case 9:case"end":return o.stop()}}),o)}))),O=Object(o.a)(y.d.orderedGroups(e)),u.prev=12,O.s();case 14:if((E=O.n()).done){u.next=23;break}return x=E.value,j=v.length,u.next=19,Promise.all(x.map((function(i){return D(N,void 0,void 0,s.a.mark((function o(){var u,l;return s.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!(n.providerFilter.size>0)||n.providerFilter.has(i)){o.next=2;break}return o.abrupt("return");case 2:return o.prev=2,u=new g.a(!0),o.next=6,i.provideCompletionItems(e,t,r,a);case 6:l=o.sent,w(i,l,u),o.next=13;break;case 10:o.prev=10,o.t0=o.catch(2),Object(d.g)(o.t0);case 13:case"end":return o.stop()}}),o,null,[[2,10]])})))})));case 19:if(j===v.length&&!a.isCancellationRequested){u.next=21;break}return u.abrupt("break",23);case 21:u.next=14;break;case 23:u.next=28;break;case 25:u.prev=25,u.t0=u.catch(12),O.e(u.t0);case 28:return u.prev=28,O.f(),u.finish(28);case 31:return u.next=33,S;case 33:if(!a.isCancellationRequested){u.next=36;break}return m.dispose(),u.abrupt("return",Promise.reject(Object(d.b)()));case 36:return u.abrupt("return",new A(v.sort(F(n.snippetSortOrder)),C,{entries:_,elapsed:l.elapsed()},m));case 37:case"end":return u.stop()}}),u,null,[[12,25,28,31]])})))}function I(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow t.sortTextLow)return 1}return e.completion.label t.completion.label?1:e.completion.kind-t.completion.kind}var M=new Map;function F(e){return M.get(e)}M.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 I(e,t)})),M.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 I(e,t)})),M.set(1,I),S.a.registerCommand("_executeCompletionItemProvider",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i 2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,r,a,s;if("string"===typeof t&&(r="not ",t.substr(!a||a<0?0:+a,r.length)===r)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(o(t,"type"));else{var u=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(o(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=i},function(e,t,n){"use strict";(function(t){var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=l;var r=n(620),o=n(624);n(104)(l,r);for(var a=i(o.prototype),s=0;s >>0,i=(4294901760&e)>>>16;return new l(0!==i?[s(n,t),s(i,t)]:[s(n,t)])}function s(e,t){var n=!!(2048&e),i=!!(256&e);return new u(2===t?i:n,!!(1024&e),!!(512&e),2===t?n:i,255&e)}var u=function(){function e(t,n,r,o,a){Object(i.a)(this,e),this.ctrlKey=t,this.shiftKey=n,this.altKey=r,this.metaKey=o,this.keyCode=a}return Object(r.a)(e,[{key:"equals",value:function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}},{key:"isModifierKey",value:function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}},{key:"toChord",value:function(){return new l([this])}},{key:"isDuplicateModifierCase",value:function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}]),e}(),l=function e(t){if(Object(i.a)(this,e),0===t.length)throw Object(o.c)("parts");this.parts=t},c=function e(t,n,r,o,a,s){Object(i.a)(this,e),this.ctrlKey=t,this.shiftKey=n,this.altKey=r,this.metaKey=o,this.keyLabel=a,this.keyAriaLabel=s},d=function e(){Object(i.a)(this,e)}},function(e,t,n){"use strict";function i(e,t,n){var i=null,r=null;if("function"===typeof n.value?(i="value",0!==(r=n.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof n.get&&(i="get",r=n.get),!r)throw new Error("not supported");var o="$memoize$".concat(t);n[i]=function(){if(!this.hasOwnProperty(o)){for(var e=arguments.length,t=new Array(e),n=0;n 1&&void 0!==arguments[1])||arguments[1];this.registerConfigurations([e],t)}},{key:"registerConfigurations",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.doRegisterConfigurations(e,t);k.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}},{key:"registerDefaultConfigurations",value:function(e){var t,n,o=[],a=[],s=Object(r.a)(e);try{for(s.s();!(n=s.n()).done;){var u=n.value,d=u.overrides,h=u.source;for(var f in d)if(o.push(f),D.test(f)){var g=Object.assign(Object.assign({},(null===(t=this.configurationDefaultsOverrides.get(f))||void 0===t?void 0:t.value)||{}),d[f]);this.configurationDefaultsOverrides.set(f,{source:h,value:g});var p={type:"object",default:g,description:c.a("defaultLanguageConfiguration.description","Configure settings to be overridden for {0} language.",f),$ref:_,defaultDefaultValue:g,source:l.l(h)?void 0:h};a.push.apply(a,Object(i.a)(E(f))),this.configurationProperties[f]=p,this.defaultLanguageConfigurationOverridesNode.properties[f]=p}else{this.configurationDefaultsOverrides.set(f,{value:d[f],source:h});var v=this.configurationProperties[f];v&&(this.updatePropertyDefaultValue(f,v),this.updateSchema(f,v))}}}catch(m){s.e(m)}finally{s.f()}this.registerOverrideIdentifiers(a),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:o,defaultsOverrides:!0})}},{key:"registerOverrideIdentifiers",value:function(e){var t,n=Object(r.a)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.overrideIdentifiers.add(i)}}catch(o){n.e(o)}finally{n.f()}this.updateOverridePropertyPatternKey()}},{key:"doRegisterConfigurations",value:function(e,t){var n=this,r=[];return e.forEach((function(e){r.push.apply(r,Object(i.a)(n.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties))),n.configurationContributors.push(e),n.registerJSONConfiguration(e)})),r}},{key:"validateAndRegisterProperties",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3;a=l.n(e.scope)?a:e.scope;var s=[],u=e.properties;if(u)for(var c in u)if(t&&L(c))delete u[c];else{var d=u[c];d.source=n,d.defaultDefaultValue=u[c].default,this.updatePropertyDefaultValue(c,d),D.test(c)?d.scope=void 0:(d.scope=l.n(d.scope)?a:d.scope,d.restricted=l.n(d.restricted)?!!(null===o||void 0===o?void 0:o.includes(c)):d.restricted),!u[c].hasOwnProperty("included")||u[c].included?(this.configurationProperties[c]=u[c],!u[c].deprecationMessage&&u[c].markdownDeprecationMessage&&(u[c].deprecationMessage=u[c].markdownDeprecationMessage),s.push(c)):(this.excludedConfigurationProperties[c]=u[c],delete u[c])}var h=e.allOf;if(h){var f,g=Object(r.a)(h);try{for(g.s();!(f=g.n()).done;){var p=f.value;s.push.apply(s,Object(i.a)(this.validateAndRegisterProperties(p,t,n,o,a)))}}catch(v){g.e(v)}finally{g.f()}}return s}},{key:"getConfigurationProperties",value:function(){return this.configurationProperties}},{key:"registerJSONConfiguration",value:function(e){var t=this;!function e(n){var i=n.properties;if(i)for(var r in i)t.updateSchema(r,i[r]);var o=n.allOf;o&&o.forEach(e)}(e)}},{key:"updateSchema",value:function(e,t){switch(g.properties[e]=t,t.scope){case 1:p.properties[e]=t;break;case 2:v.properties[e]=t;break;case 6:m.properties[e]=t;break;case 3:b.properties[e]=t;break;case 4:y.properties[e]=t;break;case 5:y.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}},{key:"updateOverridePropertyPatternKey",value:function(){var e,t=Object(r.a)(this.overrideIdentifiers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value,i="[".concat(n,"]"),o={type:"object",description:c.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:c.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(i,o),g.properties[i]=o,p.properties[i]=o,v.properties[i]=o,m.properties[i]=o,b.properties[i]=o,y.properties[i]=o}}catch(a){t.e(a)}finally{t.f()}this._onDidSchemaChange.fire()}},{key:"registerOverridePropertyPatternKey",value:function(){var e={type:"object",description:c.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:c.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};g.patternProperties[O]=e,p.patternProperties[O]=e,v.patternProperties[O]=e,m.patternProperties[O]=e,b.patternProperties[O]=e,y.patternProperties[O]=e,this._onDidSchemaChange.fire()}},{key:"updatePropertyDefaultValue",value:function(e,t){var n=this.configurationDefaultsOverrides.get(e),i=null===n||void 0===n?void 0:n.value,r=null===n||void 0===n?void 0:n.source;l.m(i)&&(i=t.defaultDefaultValue,r=void 0),l.m(i)&&(i=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=i,t.defaultValueSource=r}}]),e}(),w="\\[([^\\]]+)\\]",S=new RegExp(w,"g"),O="^(".concat(w,")+$"),D=new RegExp(O);function E(e){var t=[];if(D.test(e))for(var n=S.exec(e);null===n||void 0===n?void 0:n.length;){var i=n[1].trim();i&&t.push(i),n=S.exec(e)}return Object(s.f)(t)}var x=new C;function L(e){return e.trim()?D.test(e)?c.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==x.getConfigurationProperties()[e]?c.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):null:c.a("config.property.empty","Cannot register an empty property")}h.a.add(f.Configuration,x)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(74),r=n(75),o=n(373),a=function(){function e(t){Object(i.a)(this,e);var n=Object(o.b)(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}return Object(r.a)(e,[{key:"set",value:function(e,t){var n=Object(o.b)(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}},{key:"get",value:function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}],[{key:"_createAsciiMap",value:function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t}}]),e}(),s=function(){function e(){Object(i.a)(this,e),this._actual=new a(0)}return Object(r.a)(e,[{key:"add",value:function(e){this._actual.set(e,1)}},{key:"has",value:function(e){return 1===this._actual.get(e)}}]),e}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return h}));var i=n(78),r=n(74),o=n(75),a=n(87),s=n(634),u=n(187),l=n(79),c=n(100);function d(e,t){var n=new u.a(t);return n.preventDefault(),{leftButton:n.leftButton,buttons:n.buttons,posx:n.posx,posy:n.posy}}var h=function(){function e(){Object(r.a)(this,e),this._hooks=new l.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}return Object(o.a)(e,[{key:"dispose",value:function(){this.stopMonitoring(!1),this._hooks.dispose()}},{key:"stopMonitoring",value:function(e,t){if(this.isMonitoring()){this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;var n=this._onStopCallback;this._onStopCallback=null,e&&n&&n(t)}}},{key:"isMonitoring",value:function(){return!!this._mouseMoveEventMerger}},{key:"startMonitoring",value:function(e,t,n,r,o){var l=this;if(!this.isMonitoring()){this._mouseMoveEventMerger=n,this._mouseMoveCallback=r,this._onStopCallback=o;var d=s.a.getSameOriginWindowChain(),h=c.c?"pointermove":"mousemove",f=d.map((function(e){return e.window.document})),g=a.getShadowRoot(e);g&&f.unshift(g);var p,v=Object(i.a)(f);try{for(v.s();!(p=v.n()).done;){var m=p.value;this._hooks.add(a.addDisposableThrottledListener(m,h,(function(e){e.buttons===t?l._mouseMoveCallback(e):l.stopMonitoring(!0)}),(function(e,t){return l._mouseMoveEventMerger(e,t)}))),this._hooks.add(a.addDisposableListener(m,"mouseup",(function(e){return l.stopMonitoring(!0)})))}}catch(y){v.e(y)}finally{v.f()}if(s.a.hasDifferentOriginAncestor()){var b=d[d.length-1];this._hooks.add(a.addDisposableListener(b.window.document,"mouseout",(function(e){"html"===new u.a(e).target.tagName.toLowerCase()&&l.stopMonitoring(!0)}))),this._hooks.add(a.addDisposableListener(b.window.document,"mouseover",(function(e){"html"===new u.a(e).target.tagName.toLowerCase()&&l.stopMonitoring(!0)}))),this._hooks.add(a.addDisposableListener(b.window.document.body,"mouseleave",(function(e){l.stopMonitoring(!0)})))}}}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return c}));var i=n(74),r=n(75),o=n(112),a=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object(i.a)(this,e),this._range=t,this._text=n,this.insertsAutoWhitespace=r}return Object(r.a)(e,[{key:"getEditOperations",value:function(e,t){t.addTrackedEditOperation(this._range,this._text)}},{key:"computeCursorState",value:function(e,t){var n=t.getInverseEditOperations()[0].range;return o.a.fromPositions(n.getEndPosition())}}]),e}(),s=function(){function e(t,n){Object(i.a)(this,e),this._range=t,this._text=n}return Object(r.a)(e,[{key:"getEditOperations",value:function(e,t){t.addTrackedEditOperation(this._range,this._text)}},{key:"computeCursorState",value:function(e,t){var n=t.getInverseEditOperations()[0].range;return o.a.fromRange(n,0)}}]),e}(),u=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object(i.a)(this,e),this._range=t,this._text=n,this.insertsAutoWhitespace=r}return Object(r.a)(e,[{key:"getEditOperations",value:function(e,t){t.addTrackedEditOperation(this._range,this._text)}},{key:"computeCursorState",value:function(e,t){var n=t.getInverseEditOperations()[0].range;return o.a.fromPositions(n.getStartPosition())}}]),e}(),l=function(){function e(t,n,r,o){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Object(i.a)(this,e),this._range=t,this._text=n,this._columnDeltaOffset=o,this._lineNumberDeltaOffset=r,this.insertsAutoWhitespace=a}return Object(r.a)(e,[{key:"getEditOperations",value:function(e,t){t.addTrackedEditOperation(this._range,this._text)}},{key:"computeCursorState",value:function(e,t){var n=t.getInverseEditOperations()[0].range;return o.a.fromPositions(n.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}]),e}(),c=function(){function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Object(i.a)(this,e),this._range=t,this._text=n,this._initialSelection=r,this._forceMoveMarkers=o,this._selectionId=null}return Object(r.a)(e,[{key:"getEditOperations",value:function(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}},{key:"computeCursorState",value:function(e,t){return t.getTrackedSelection(this._selectionId)}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));var i,r=n(27),o=n(74),a=n(75),s=n(105),u=n(79),l=n(142);!function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(i||(i={}));var c={Quickaccess:"workbench.contributions.quickaccess"},d=function(){function e(){Object(o.a)(this,e),this.providers=[],this.defaultProvider=void 0}return Object(a.a)(e,[{key:"registerQuickAccessProvider",value:function(e){var t=this;return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort((function(e,t){return t.prefix.length-e.prefix.length})),Object(u.i)((function(){t.providers.splice(t.providers.indexOf(e),1),t.defaultProvider===e&&(t.defaultProvider=void 0)}))}},{key:"getQuickAccessProviders",value:function(){return Object(s.e)([this.defaultProvider].concat(Object(r.a)(this.providers)))}},{key:"getQuickAccessProvider",value:function(e){return e&&this.providers.find((function(t){return e.startsWith(t.prefix)}))||void 0||this.defaultProvider}}]),e}();l.a.add(c.Quickaccess,new d)},,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return Fe}));var i=n(80),r=n.n(i),o=n(74),a=n(75),s=n(78),u=n(87);var l=Object.hasOwnProperty,c=Object.setPrototypeOf,d=Object.isFrozen,h=Object.getPrototypeOf,f=Object.getOwnPropertyDescriptor,g=Object.freeze,p=Object.seal,v=Object.create,m="undefined"!==typeof Reflect&&Reflect,b=m.apply,y=m.construct;b||(b=function(e,t,n){return e.apply(t,n)}),g||(g=function(e){return e}),p||(p=function(e){return e}),y||(y=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t 1?n-1:0),r=1;r /gm),$=p(/^data-[\-\w.\u00B7-\uFFFF]/),Y=p(/^aria-[\-\w]+$/),Z=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=p(/^(?:\w+script|data):/i),J=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function ee(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t 0&&void 0!==arguments[0]?arguments[0]:te(),n=function(t){return e(t)};if(n.version="2.3.1",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,r=t.document,o=t.DocumentFragment,a=t.HTMLTemplateElement,s=t.Node,u=t.Element,l=t.NodeFilter,c=t.NamedNodeMap,d=void 0===c?t.NamedNodeMap||t.MozNamedAttrMap:c,h=t.Text,f=t.Comment,p=t.DOMParser,v=t.trustedTypes,m=u.prototype,b=I(m,"cloneNode"),y=I(m,"nextSibling"),_=I(m,"childNodes"),N=I(m,"parentNode");if("function"===typeof a){var ie=r.createElement("template");ie.content&&ie.content.ownerDocument&&(r=ie.content.ownerDocument)}var re=ne(v,i),oe=re&&Pe?re.createHTML(""):"",ae=r,se=ae.implementation,ue=ae.createNodeIterator,le=ae.createDocumentFragment,ce=ae.getElementsByTagName,de=i.importNode,he={};try{he=T(r).documentMode?r.documentMode:{}}catch(bt){}var fe={};n.isSupported="function"===typeof N&&se&&"undefined"!==typeof se.createHTMLDocument&&9!==he;var ge=q,pe=G,ve=$,me=Y,be=X,ye=J,_e=Z,ke=null,Ce=A({},[].concat(ee(M),ee(F),ee(P),ee(B),ee(V))),we=null,Se=A({},[].concat(ee(H),ee(z),ee(U),ee(K))),Oe=null,De=null,Ee=!0,xe=!0,Le=!1,je=!1,Ne=!1,Ae=!1,Te=!1,Ie=!1,Me=!1,Fe=!0,Pe=!1,Re=!0,Be=!0,We=!1,Ve={},He=null,ze=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ue=null,Ke=A({},["audio","video","img","source","image","track"]),qe=null,Ge=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$e="http://www.w3.org/1998/Math/MathML",Ye="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml",Xe=Ze,Je=!1,Qe=null,et=r.createElement("form"),tt=function(e){Qe&&Qe===e||(e&&"object"===("undefined"===typeof e?"undefined":Q(e))||(e={}),e=T(e),ke="ALLOWED_TAGS"in e?A({},e.ALLOWED_TAGS):Ce,we="ALLOWED_ATTR"in e?A({},e.ALLOWED_ATTR):Se,qe="ADD_URI_SAFE_ATTR"in e?A(T(Ge),e.ADD_URI_SAFE_ATTR):Ge,Ue="ADD_DATA_URI_TAGS"in e?A(T(Ke),e.ADD_DATA_URI_TAGS):Ke,He="FORBID_CONTENTS"in e?A({},e.FORBID_CONTENTS):ze,Oe="FORBID_TAGS"in e?A({},e.FORBID_TAGS):{},De="FORBID_ATTR"in e?A({},e.FORBID_ATTR):{},Ve="USE_PROFILES"in e&&e.USE_PROFILES,Ee=!1!==e.ALLOW_ARIA_ATTR,xe=!1!==e.ALLOW_DATA_ATTR,Le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=e.SAFE_FOR_TEMPLATES||!1,Ne=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,Me=e.RETURN_DOM_FRAGMENT||!1,Fe=!1!==e.RETURN_DOM_IMPORT,Pe=e.RETURN_TRUSTED_TYPE||!1,Te=e.FORCE_BODY||!1,Re=!1!==e.SANITIZE_DOM,Be=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||_e,Xe=e.NAMESPACE||Ze,je&&(xe=!1),Me&&(Ie=!0),Ve&&(ke=A({},[].concat(ee(V))),we=[],!0===Ve.html&&(A(ke,M),A(we,H)),!0===Ve.svg&&(A(ke,F),A(we,z),A(we,K)),!0===Ve.svgFilters&&(A(ke,P),A(we,z),A(we,K)),!0===Ve.mathMl&&(A(ke,B),A(we,U),A(we,K))),e.ADD_TAGS&&(ke===Ce&&(ke=T(ke)),A(ke,e.ADD_TAGS)),e.ADD_ATTR&&(we===Se&&(we=T(we)),A(we,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&A(qe,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(He===ze&&(He=T(He)),A(He,e.FORBID_CONTENTS)),Be&&(ke["#text"]=!0),Ne&&A(ke,["html","head","body"]),ke.table&&(A(ke,["tbody"]),delete Oe.tbody),g&&g(e),Qe=e)},nt=A({},["mi","mo","mn","ms","mtext"]),it=A({},["foreignobject","desc","title","annotation-xml"]),rt=A({},F);A(rt,P),A(rt,R);var ot=A({},B);A(ot,W);var at=function(e){var t=N(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});var n=S(e.tagName),i=S(t.tagName);if(e.namespaceURI===Ye)return t.namespaceURI===Ze?"svg"===n:t.namespaceURI===$e?"svg"===n&&("annotation-xml"===i||nt[i]):Boolean(rt[n]);if(e.namespaceURI===$e)return t.namespaceURI===Ze?"math"===n:t.namespaceURI===Ye?"math"===n&&it[i]:Boolean(ot[n]);if(e.namespaceURI===Ze){if(t.namespaceURI===Ye&&!it[i])return!1;if(t.namespaceURI===$e&&!nt[i])return!1;var r=A({},["title","style","font","a","script"]);return!ot[n]&&(r[n]||!rt[n])}return!1},st=function(e){w(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(bt){try{e.outerHTML=oe}catch(bt){e.remove()}}},ut=function(e,t){try{w(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(bt){w(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!we[e])if(Ie||Me)try{st(t)}catch(bt){}else try{t.setAttribute(e,"")}catch(bt){}},lt=function(e){var t=void 0,n=void 0;if(Te)e=" "+e;else{var i=O(e,/^[\r\n\t ]+/);n=i&&i[0]}var o=re?re.createHTML(e):e;if(Xe===Ze)try{t=(new p).parseFromString(o,"text/html")}catch(bt){}if(!t||!t.documentElement){t=se.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Je?"":o}catch(bt){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Xe===Ze?ce.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:a},ct=function(e){return ue.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},dt=function(e){return!(e instanceof h||e instanceof f)&&!("string"===typeof e.nodeName&&"string"===typeof e.textContent&&"function"===typeof e.removeChild&&e.attributes instanceof d&&"function"===typeof e.removeAttribute&&"function"===typeof e.setAttribute&&"string"===typeof e.namespaceURI&&"function"===typeof e.insertBefore)},ht=function(e){return"object"===("undefined"===typeof s?"undefined":Q(s))?e instanceof s:e&&"object"===("undefined"===typeof e?"undefined":Q(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},ft=function(e,t,i){fe[e]&&k(fe[e],(function(e){e.call(n,t,i,Qe)}))},gt=function(e){var t=void 0;if(ft("beforeSanitizeElements",e,null),dt(e))return st(e),!0;if(O(e.nodeName,/[\u0080-\uFFFF]/))return st(e),!0;var i=S(e.nodeName);if(ft("uponSanitizeElement",e,{tagName:i,allowedTags:ke}),!ht(e.firstElementChild)&&(!ht(e.content)||!ht(e.content.firstElementChild))&&L(/<[/\w]/g,e.innerHTML)&&L(/<[/\w]/g,e.textContent))return st(e),!0;if("select"===i&&L(/=0;--a)r.insertBefore(b(o[a],!0),y(e))}return st(e),!0}return e instanceof u&&!at(e)?(st(e),!0):"noscript"!==i&&"noembed"!==i||!L(/<\/no(script|embed)/i,e.innerHTML)?(je&&3===e.nodeType&&(t=e.textContent,t=D(t,ge," "),t=D(t,pe," "),e.textContent!==t&&(w(n.removed,{element:e.cloneNode()}),e.textContent=t)),ft("afterSanitizeElements",e,null),!1):(st(e),!0)},pt=function(e,t,n){if(Re&&("id"===t||"name"===t)&&(n in r||n in et))return!1;if(xe&&!De[t]&&L(ve,t));else if(Ee&&L(me,t));else{if(!we[t]||De[t])return!1;if(qe[t]);else if(L(_e,D(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Ue[e]){if(Le&&!L(be,D(n,ye,"")));else if(n)return!1}else;}return!0},vt=function(e){var t=void 0,i=void 0,r=void 0,o=void 0;ft("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we};for(o=a.length;o--;){var u=t=a[o],l=u.name,c=u.namespaceURI;if(i=x(t.value),r=S(l),s.attrName=r,s.attrValue=i,s.keepAttr=!0,s.forceKeepAttr=void 0,ft("uponSanitizeAttribute",e,s),i=s.attrValue,!s.forceKeepAttr&&(ut(l,e),s.keepAttr))if(L(/\/>/i,i))ut(l,e);else{je&&(i=D(i,ge," "),i=D(i,pe," "));var d=e.nodeName.toLowerCase();if(pt(d,r,i))try{c?e.setAttributeNS(c,l,i):e.setAttribute(l,i),C(n.removed)}catch(bt){}}}ft("afterSanitizeAttributes",e,null)}},mt=function e(t){var n=void 0,i=ct(t);for(ft("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)ft("uponSanitizeShadowNode",n,null),gt(n)||(n.content instanceof o&&e(n.content),vt(n));ft("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var a=void 0,u=void 0,l=void 0,c=void 0,d=void 0;if((Je=!e)&&(e="\x3c!--\x3e"),"string"!==typeof e&&!ht(e)){if("function"!==typeof e.toString)throw j("toString is not a function");if("string"!==typeof(e=e.toString()))throw j("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Q(t.toStaticHTML)||"function"===typeof t.toStaticHTML){if("string"===typeof e)return t.toStaticHTML(e);if(ht(e))return t.toStaticHTML(e.outerHTML)}return e}if(Ae||tt(r),n.removed=[],"string"===typeof e&&(We=!1),We);else if(e instanceof s)1===(u=(a=lt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?a=u:a.appendChild(u);else{if(!Ie&&!je&&!Ne&&-1===e.indexOf("<"))return re&&Pe?re.createHTML(e):e;if(!(a=lt(e)))return Ie?null:oe}a&&Te&&st(a.firstChild);for(var h=ct(We?e:a);l=h.nextNode();)3===l.nodeType&&l===c||gt(l)||(l.content instanceof o&&mt(l.content),vt(l),c=l);if(c=null,We)return e;if(Ie){if(Me)for(d=le.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return Fe&&(d=de.call(i,d,!0)),d}var f=Ne?a.outerHTML:a.innerHTML;return je&&(f=D(f,ge," "),f=D(f,pe," ")),re&&Pe?re.createHTML(f):f},n.setConfig=function(e){tt(e),Ae=!0},n.clearConfig=function(){Qe=null,Ae=!1},n.isValidAttribute=function(e,t,n){Qe||tt({});var i=S(e),r=S(t);return pt(i,r,n)},n.addHook=function(e,t){"function"===typeof t&&(fe[e]=fe[e]||[],w(fe[e],t))},n.removeHook=function(e){fe[e]&&C(fe[e])},n.removeHooks=function(e){fe[e]&&(fe[e]=[])},n.removeAllHooks=function(){fe={}},n}(),re=(ie.version,ie.isSupported,ie.sanitize),oe=(ie.setConfig,ie.clearConfig,ie.isValidAttribute,ie.addHook),ae=ie.removeHook,se=(ie.removeHooks,ie.removeAllHooks,n(260)),ue=n(460),le=n(187),ce=n(325),de=n(91),he=n(114),fe=n(95),ge=n(84),pe=n(217),ve=n(315),me=n(388),be=n(79),ye=n(929),_e=n(661),ke=n(166),Ce=n(149),we=n(157),Se=n(88),Oe=n(120);function De(e,t){var n=function(e){var t=[ke.c.http,ke.c.https,ke.c.mailto,ke.c.data,ke.c.file,ke.c.vscodeFileResource,ke.c.vscodeRemote,ke.c.vscodeRemoteResource];e.isTrusted&&t.push(ke.c.command);return{config:{ALLOWED_TAGS:["ul","li","p","b","i","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],ALLOWED_ATTR:["href","data-href","target","title","src","alt","class","style","data-code","width","height","align"],ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e),i=n.config,r=n.allowedSchemes;oe("uponSanitizeAttribute",(function(e,t){if("style"!==t.attrName&&"class"!==t.attrName);else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}}));var o=document.createElement("a");oe("afterSanitizeAttributes",(function(e){for(var t=0,n=["href","src"];t =0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ie=function(e,t){return function(n,i){t(n,i,e)}},Me=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))},Fe=function(){function e(t,n,i){Object(o.a)(this,e),this._options=t,this._modeService=n,this._openerService=i,this._onDidRenderAsync=new ge.b,this.onDidRenderAsync=this._onDidRenderAsync.event}return Object(a.a)(e,[{key:"dispose",value:function(){this._onDidRenderAsync.dispose()}},{key:"render",value:function(e,t,n){if(!e)return{element:document.createElement("span"),dispose:function(){}};var i=new be.b;return{element:i.add(function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=new be.b,a=!1,l=o.add(new he.b),c=Object(ue.a)(i),d=function(t){var n;try{n=Object(_e.a)(decodeURIComponent(t))}catch(i){}return n?(n=Object(Ce.a)(n,(function(t){return e.uris&&e.uris[t]?Oe.a.revive(e.uris[t]):void 0})),encodeURIComponent(JSON.stringify(n))):t},h=function(t,n){var i=e.uris&&e.uris[t],r=Oe.a.revive(i);return n?t.startsWith(ke.c.data+":")?t:(r||(r=Oe.a.parse(t)),ke.a.asBrowserUri(r).toString(!0)):r?Oe.a.parse(t).toString()===r.toString()?t:(r.query&&(r=r.with({query:d(r.query)})),r.toString()):t},f=new Promise((function(e){return n=e})),g=new ye.a;if(g.image=function(e,t,n){var i=[],r=[];if(e){var o=Object(pe.d)(e);e=o.href,i=o.dimensions,r.push('src="'.concat(e,'"'))}return n&&r.push('alt="'.concat(n,'"')),t&&r.push('title="'.concat(t,'"')),i.length&&(r=r.concat(i)),""},g.link=function(t,n,r){return t===r&&(r=Object(pe.e)(r)),t=h(t,!1),i.baseUrl&&(/^\w[\w\d+.-]*:/.test(t)||(t=Object(we.k)(i.baseUrl,t).toString())),n=Object(pe.e)(n),!(t=Object(pe.e)(t))||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted||t.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?r:(t=t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),'').concat(r,""))},g.paragraph=function(e){return" ".concat(e,"
")},i.codeBlockRenderer&&(g.code=function(e,t){var n=i.codeBlockRenderer(t,e),r=me.b.nextId();return Object(de.o)(Promise.all([n,f]),l.token).then((function(e){var t;if(!a&&e){var n=c.querySelector('div[data-code="'.concat(r,'"]'));n&&u.reset(n,e[0]),null===(t=i.asyncRenderCallback)||void 0===t||t.call(i)}})).catch((function(){})),'').concat(Object(Se.u)(e),"")}),i.actionHandler){var p=i.actionHandler.disposables.add(new se.a(c,"click")),v=i.actionHandler.disposables.add(new se.a(c,"auxclick"));i.actionHandler.disposables.add(ge.c.any(p.event,v.event)((function(e){var t=new le.a(e);if(t.leftButton||t.middleButton){var n=t.target;if("A"===n.tagName||(n=n.parentElement)&&"A"===n.tagName)try{var r=n.dataset.href;r&&i.actionHandler.callback(r,t)}catch(o){Object(fe.f)(o)}finally{t.preventDefault()}}})))}e.supportHtml||(r.sanitizer=function(t){return(e.isTrusted?t.match(/^(]+>)|(<\/\s*span>)$/):void 0)?t:""},r.sanitize=!0,r.silent=!0),r.renderer=g;var m=null!==(t=e.value)&&void 0!==t?t:"";m.length>1e5&&(m="".concat(m.substr(0,1e5),"\u2026")),e.supportThemeIcons&&(m=Object(ve.b)(m));var b=ye.b(m,r);if(e.supportThemeIcons){b=Object(ce.a)(b).map((function(e){return"string"===typeof e?e:e.outerHTML})).join("")}var y=(new DOMParser).parseFromString(De(e,b),"text/html");if(y.body.querySelectorAll("img").forEach((function(e){if(e.src){var t=h(e.src,!0);try{var n=Oe.a.parse(t);i.baseUrl&&n.scheme===ke.c.file&&(t=Object(we.k)(i.baseUrl,t).toString())}catch(r){}e.src=t}})),c.innerHTML=De(e,y.body.innerHTML),n(),i.asyncRenderCallback){var _,k=Object(s.a)(c.getElementsByTagName("img"));try{var C=function(){var e=_.value,t=o.add(u.addDisposableListener(e,"load",(function(){t.dispose(),i.asyncRenderCallback()})))};for(k.s();!(_=k.n()).done;)C()}catch(w){k.e(w)}finally{k.f()}}return{element:c,dispose:function(){a=!0,l.cancel(),o.dispose()}}}(e,Object.assign(Object.assign({},this._getRenderOptions(e,i)),t),n)).element,dispose:function(){return i.dispose()}}}},{key:"_getRenderOptions",value:function(t,n){var i=this;return{baseUrl:this._options.baseUrl,codeBlockRenderer:function(t,n){return Me(i,void 0,void 0,r.a.mark((function i(){var o,a,s,u,l,c,d,h;return r.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t?l=this._modeService.getModeIdForLanguageName(t):this._options.editor&&(l=null===(o=this._options.editor.getModel())||void 0===o?void 0:o.getLanguageId()),l||(l="plaintext"),this._modeService.triggerMode(l),i.next=5,Ne.F.getPromise(l);case 5:if(i.t1=a=i.sent,i.t0=null!==i.t1,!i.t0){i.next=9;break}i.t0=void 0!==a;case 9:if(!i.t0){i.next=13;break}i.t2=a,i.next=14;break;case 13:i.t2=void 0;case 14:return c=i.t2,(d=document.createElement("span")).innerHTML=null!==(u=null===(s=e._ttpTokenizer)||void 0===s?void 0:s.createHTML(n,this._modeService.languageIdCodec,c))&&void 0!==u?u:Object(je.b)(n,this._modeService.languageIdCodec,c),this._options.editor?(h=this._options.editor.getOption(43),Ae.a.applyFontInfoSlow(d,h)):this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily),i.abrupt("return",d);case 19:case"end":return i.stop()}}),i,this)})))},asyncRenderCallback:function(){return i._onDidRenderAsync.fire()},actionHandler:{callback:function(e){return i._openerService.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:t.isTrusted}).catch(fe.f)},disposables:n}}}}]),e}();Fe._ttpTokenizer=null===(Ee=window.trustedTypes)||void 0===Ee?void 0:Ee.createPolicy("tokenizeToString",{createHTML:function(e,t,n){return Object(je.b)(e,t,n)}}),Fe=Te([Ie(1,Le.a),Ie(2,xe.a)],Fe)},function(e,t,n){"use strict";n.r(t),n.d(t,"CoreEditorCommand",(function(){return x})),n.d(t,"EditorScroll_",(function(){return i})),n.d(t,"RevealLine_",(function(){return o})),n.d(t,"CoreNavigationCommands",(function(){return L})),n.d(t,"CoreEditingCommands",(function(){return N}));var i,r,o,a,s=n(26),u=n(74),l=n(75),c=n(76),d=n(77),h=n(85),f=n(144),g=n(109),p=n(160),v=n(98),m=n(131),b=n(161),y=n(96),_=n(81),k=function(){function e(){Object(u.a)(this,e)}return Object(l.a)(e,null,[{key:"columnSelect",value:function(e,t,n,i,r,o){for(var a=Math.abs(r-n)+1,s=n>r,u=i>o,l=io)continue;if(vi)continue;if(p 0&&r--,e.columnSelect(t,n,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,r)}},{key:"columnSelectRight",value:function(e,t,n){for(var i=0,r=Math.min(n.fromViewLineNumber,n.toViewLineNumber),o=Math.max(n.fromViewLineNumber,n.toViewLineNumber),a=r;a<=o;a++){var s=t.getLineMaxColumn(a),u=b.a.visibleColumnFromColumn2(e,t,new y.a(a,s));i=Math.max(i,u)}var l=n.toViewVisualColumn;return l=0)&&(n.runDOMCommand(),!0)})),t.addImplementation(0,"generic-dom",(function(e,t){var i=e.get(m.a).getActiveCodeEditor();return!!i&&(i.focus(),n._runEditorCommand(e,i,t))}))}return Object(l.a)(e,[{key:"_runEditorCommand",value:function(e,t,n){var i=this.runEditorCommand(e,t,n);return i||!0}}]),e}();!function(e){var t=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e){var i;return Object(u.a)(this,n),(i=t.call(this,e))._inSelectionMode=e.inSelectionMode,i}return Object(l.a)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[w.b.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!0)}}]),n}(x);e.MoveTo=Object(v.k)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=Object(v.k)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var n=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(l.a)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement();var n=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);e.setCursorStates(t.source,3,n.viewStates.map((function(e){return b.d.fromViewState(e)}))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:n.fromLineNumber,fromViewVisualColumn:n.fromVisualColumn,toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),n.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source)}}]),n}(x);e.ColumnSelect=Object(v.k)(new(function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.call(this,{id:"columnSelect",precondition:void 0})}return Object(l.a)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){var r=e.model.validatePosition(i.position),o=e.coordinatesConverter.validateViewPosition(new y.a(i.viewPosition.lineNumber,i.viewPosition.column),r),a=i.doColumnSelect?n.fromViewLineNumber:o.lineNumber,s=i.doColumnSelect?n.fromViewVisualColumn:i.mouseColumn-1;return k.columnSelect(e.cursorConfig,e,a,s,o.lineNumber,i.mouseColumn-1)}}]),n}(n))),e.CursorColumnSelectLeft=Object(v.k)(new(function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:3599,linux:{primary:0}}})}return Object(l.a)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return k.columnSelectLeft(e.cursorConfig,e,n)}}]),n}(n))),e.CursorColumnSelectRight=Object(v.k)(new(function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:3601,linux:{primary:0}}})}return Object(l.a)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return k.columnSelectRight(e.cursorConfig,e,n)}}]),n}(n)));var r=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e){var i;return Object(u.a)(this,n),(i=t.call(this,e))._isPaged=e.isPaged,i}return Object(l.a)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return k.columnSelectUp(e.cursorConfig,e,n,this._isPaged)}}]),n}(n);e.CursorColumnSelectUp=Object(v.k)(new r({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=Object(v.k)(new r({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:3595,linux:{primary:0}}}));var a=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e){var i;return Object(u.a)(this,n),(i=t.call(this,e))._isPaged=e.isPaged,i}return Object(l.a)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return k.columnSelectDown(e.cursorConfig,e,n,this._isPaged)}}]),n}(n);e.CursorColumnSelectDown=Object(v.k)(new a({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=Object(v.k)(new a({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:3596,linux:{primary:0}}}));var s=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.call(this,{id:"cursorMove",precondition:void 0,description:w.a.description})}return Object(l.a)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n=w.a.parse(t);n&&this._runCursorMove(e,t.source,n)}},{key:"_runCursorMove",value:function(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,n._move(e,e.getCursorStates(),i)),e.revealPrimaryCursor(t,!0)}}],[{key:"_move",value:function(e,t,n){var i=n.select,r=n.value;switch(n.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return w.b.simpleMove(e,t,n.direction,i,r,n.unit);case 11:case 13:case 12:case 14:return w.b.viewportMove(e,t,n.direction,i,r);default:return null}}}]),n}(x);e.CursorMoveImpl=s,e.CursorMove=Object(v.k)(new s);var g=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e){var i;return Object(u.a)(this,n),(i=t.call(this,e))._staticArgs=e.args,i}return Object(l.a)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n=this._staticArgs;-1===this._staticArgs.value&&(n={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,w.b.simpleMove(e,e.getCursorStates(),n.direction,n.select,n.value,n.unit)),e.revealPrimaryCursor(t.source,!0)}}]),n}(x);e.CursorLeft=Object(v.k)(new g({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=Object(v.k)(new g({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:1039}})),e.CursorRight=Object(v.k)(new g({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=Object(v.k)(new g({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:1041}})),e.CursorUp=Object(v.k)(new g({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=Object(v.k)(new g({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=Object(v.k)(new g({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:11}})),e.CursorPageUpSelect=Object(v.k)(new g({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:1035}})),e.CursorDown=Object(v.k)(new g({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=Object(v.k)(new g({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=Object(v.k)(new g({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:12}})),e.CursorPageDownSelect=Object(v.k)(new g({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:1036}})),e.CreateCursor=Object(v.k)(new(function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.call(this,{id:"createCursor",precondition:void 0})}return Object(l.a)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n;n=t.wholeLine?w.b.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):w.b.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);var i=e.getCursorStates();if(i.length>1)for(var r=n.modelState?n.modelState.position:null,o=n.viewState?n.viewState.position:null,a=0,s=i.length;a a&&(r=a);var s=new _.a(r,1,r,e.model.getLineMaxColumn(r)),u=0;if(n.at)switch(n.at){case o.RawAtArgument.Top:u=3;break;case o.RawAtArgument.Center:u=1;break;case o.RawAtArgument.Bottom:u=4}var l=e.coordinatesConverter.convertModelRangeToViewRange(s);e.revealRange(t.source,!1,l,u,0)}}]),n}(x))),e.SelectAll=new(function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.call(this,v.h)}return Object(l.a)(n,[{key:"runDOMCommand",value:function(){f.isFirefox&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}},{key:"runEditorCommand",value:function(e,t,n){var i=t._getViewModel();i&&this.runCoreEditorCommand(i,n)}},{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[w.b.selectAll(e,e.getPrimaryCursorState())])}}]),n}(j)),e.SetSelection=Object(v.k)(new(function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.call(this,{id:"setSelection",precondition:void 0})}return Object(l.a)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[b.d.fromModelSelection(t.selection)])}}]),n}(x)))}(L||(L={}));var N,A=D.a.and(O.a.textInputFocus,O.a.columnSelection);function T(e,t){E.a.registerKeybindingRule({id:e,primary:t,when:A,weight:1})}function I(e){return e.register(),e}T(L.CursorColumnSelectLeft.id,1039),T(L.CursorColumnSelectRight.id,1041),T(L.CursorColumnSelectUp.id,1040),T(L.CursorColumnSelectPageUp.id,1035),T(L.CursorColumnSelectDown.id,1042),T(L.CursorColumnSelectPageDown.id,1036),function(e){var t=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(l.a)(n,[{key:"runEditorCommand",value:function(e,t,n){var i=t._getViewModel();i&&this.runCoreEditingCommand(t,i,n||{})}}]),n}(v.c);e.CoreEditingCommand=t,e.LineBreakInsert=Object(v.k)(new(function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.call(this,{id:"lineBreakInsert",precondition:O.a.writable,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:0,mac:{primary:301}}})}return Object(l.a)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,S.a.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection}))))}}]),n}(t))),e.Outdent=Object(v.k)(new(function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.call(this,{id:"outdent",precondition:O.a.writable,kbOpts:{weight:0,kbExpr:D.a.and(O.a.editorTextFocus,O.a.tabDoesNotMoveFocus),primary:1026}})}return Object(l.a)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,S.a.outdent(t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection})))),e.pushUndoStop()}}]),n}(t))),e.Tab=Object(v.k)(new(function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.call(this,{id:"tab",precondition:O.a.writable,kbOpts:{weight:0,kbExpr:D.a.and(O.a.editorTextFocus,O.a.tabDoesNotMoveFocus),primary:2}})}return Object(l.a)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,S.a.tab(t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection})))),e.pushUndoStop()}}]),n}(t))),e.DeleteLeft=Object(v.k)(new(function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.call(this,{id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}return Object(l.a)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){var i=C.a.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection})),t.getCursorAutoClosedCharacters()),r=Object(s.a)(i,2),o=r[0],a=r[1];o&&e.pushUndoStop(),e.executeCommands(this.id,a),t.setPrevEditOperationType(2)}}]),n}(t))),e.DeleteRight=Object(v.k)(new(function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.call(this,{id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:O.a.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}return Object(l.a)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){var i=C.a.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection}))),r=Object(s.a)(i,2),o=r[0],a=r[1];o&&e.pushUndoStop(),e.executeCommands(this.id,a),t.setPrevEditOperationType(3)}}]),n}(t))),e.Undo=new(function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.call(this,v.i)}return Object(l.a)(n,[{key:"runDOMCommand",value:function(){document.execCommand("undo")}},{key:"runEditorCommand",value:function(e,t,n){if(t.hasModel()&&!0!==t.getOption(80))return t.getModel().undo()}}]),n}(j)),e.Redo=new(function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(u.a)(this,n),t.call(this,v.g)}return Object(l.a)(n,[{key:"runDOMCommand",value:function(){document.execCommand("redo")}},{key:"runEditorCommand",value:function(e,t,n){if(t.hasModel()&&!0!==t.getOption(80))return t.getModel().redo()}}]),n}(j))}(N||(N={}));var M=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e,i,r){var o;return Object(u.a)(this,n),(o=t.call(this,{id:e,precondition:void 0,description:r}))._handlerId=i,o}return Object(l.a)(n,[{key:"runCommand",value:function(e,t){var n=e.get(m.a).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)}}]),n}(v.a);function F(e,t){I(new M("default:"+e,e)),I(new M(e,e,t))}F("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),F("replacePreviousChar"),F("compositionType"),F("compositionStart"),F("compositionEnd"),F("paste"),F("cut")},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST="hc"}(i||(i={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return m}));var i=n(78),r=n(125),o=n(218),a=n(88),s="$(",u=new RegExp("\\$\\(".concat(r.a.iconNameExpression,"(?:").concat(r.a.iconModifierExpression,")?\\)"),"g"),l=new RegExp(r.a.iconNameCharacter),c=new RegExp("(\\\\)?".concat(u.source),"g");function d(e){return e.replace(c,(function(e,t){return t?e:"\\".concat(e)}))}var h=new RegExp("\\\\".concat(u.source),"g");function f(e){return e.replace(h,(function(e){return"\\".concat(e)}))}var g=new RegExp("(\\s)?(\\\\)?".concat(u.source,"(\\s)?"),"g");function p(e){return-1===e.indexOf(s)?e:e.replace(g,(function(e,t,n,i){return n?e:t||i||""}))}function v(e){var t=e.indexOf(s);return-1===t?{text:e}:function(e,t){var n=[],r="";function o(e){if(e){r+=e;var t,o=Object(i.a)(e);try{for(o.s();!(t=o.n()).done;){t.value;n.push(h)}}catch(a){o.e(a)}finally{o.f()}}}var a,u,c=-1,d="",h=0,f=t,g=e.length;o(e.substr(0,t));for(;f2&&void 0!==arguments[2]&&arguments[2],r=t.text,s=t.iconOffsets;if(!s||0===s.length)return Object(o.g)(e,r,n);var u=Object(a.L)(r," "),l=r.length-u.length,c=Object(o.g)(e,u,n);if(c){var d,h=Object(i.a)(c);try{for(h.s();!(d=h.n()).done;){var f=d.value,g=s[f.start+l]+l;f.start+=g,f.end+=g}}catch(p){h.e(p)}finally{h.f()}}return c}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"g",(function(){return f}));var i,r=n(74),o=n(75),a="undefined"!==typeof e,s=function(){function t(e){Object(r.a)(this,t),this.buffer=e,this.byteLength=this.buffer.byteLength}return Object(o.a)(t,[{key:"toString",value:function(){return a?this.buffer.toString():(i||(i=new TextDecoder),i.decode(this.buffer))}}],[{key:"wrap",value:function(n){return a&&!e.isBuffer(n)&&(n=e.from(n.buffer,n.byteOffset,n.byteLength)),new t(n)}}]),t}();function u(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function c(e,t){return e[t]*Math.pow(2,24)+e[t+1]*Math.pow(2,16)+e[t+2]*Math.pow(2,8)+e[t+3]}function d(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function h(e,t){return e[t]}function f(e,t,n){e[n]=t}}).call(this,n(148).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(74),r=n(76),o=n(77),a=function(e){Object(r.a)(n,e);var t=Object(o.a)(n);function n(e){var r;Object(i.a)(this,n),r=t.call(this,0);for(var o=0,a=e.length;o>>0}var g=new Uint32Array(0).buffer,p=function(){function e(){Object(o.a)(this,e),this.tokens=[]}return Object(a.a)(e,[{key:"add",value:function(e,t){if(this.tokens.length>0){var n=this.tokens[this.tokens.length-1];if(n.startLineNumber+n.tokens.length-1+1===e)return void n.tokens.push(t)}this.tokens.push(new y(e,[t]))}}]),e}(),v=function(){function e(t){Object(o.a)(this,e),this._tokens=t,this._tokenCount=t.length/4}return Object(a.a)(e,[{key:"toString",value:function(e){for(var t=[],n=0;n e)){for(var o=i;o>t&&this._getDeltaLine(o-1)===e;)o--;for(var a=i;a e||d===e&&f>=t)&&(d t||g===t&&v>=n){if(gr?g-=r-n:g=n;else if(h===t&&f===n){if(!(h===i&&g>r)){l=!0;continue}g-=r-n}else if(hr)){l=!0;continue}g=h===t?(f=n)+(g-r):(f=0)+(g-r)}else if(h>i){if(0===s&&!l){u=a;break}h-=s}else{if(!(h===i&&f>=r))throw new Error("Not possible!");e&&0===h&&(f+=e,g+=e),h-=s,f-=r-n,g-=r-n}var v=4*u;o[v]=h,o[v+1]=f,o[v+2]=g,o[v+3]=p,u++}}this._tokenCount=u}},{key:"acceptInsertText",value:function(e,t,n,i,r,o){for(var a=0===n&&1===i&&(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122),s=this._tokens,u=this._tokenCount,l=0;l0?t.charCodeAt(0):0)}},{key:"acceptEdit",value:function(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new l.a(e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}},{key:"_acceptDeleteRange",value:function(e){if(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn){var t=e.startLineNumber-this.startLineNumber,n=e.endLineNumber-this.startLineNumber;if(n<0){var i=n-t;this.startLineNumber-=i}else{var r=this.tokens.getMaxDeltaLine();if(!(t>=r+1)){if(t<0&&n>=r+1)return this.startLineNumber=0,void this.tokens.clear();if(t<0){var o=-t;this.startLineNumber-=o,this.tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this.tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}}}},{key:"_acceptInsertText",value:function(e,t,n,i,r){if(0!==t||0!==n){var o=e.lineNumber-this.startLineNumber;if(o<0)this.startLineNumber+=t;else o>=this.tokens.getMaxDeltaLine()+1||this.tokens.acceptInsertText(o,e.column-1,t,n,i,r)}}}]),e}(),y=function e(t,n){Object(o.a)(this,e),this.startLineNumber=t,this.tokens=n};function _(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var k=function(){function e(t){Object(o.a)(this,e),this._pieces=[],this._isComplete=!1,this._languageIdCodec=t}return Object(a.a)(e,[{key:"flush",value:function(){this._pieces=[],this._isComplete=!1}},{key:"isEmpty",value:function(){return 0===this._pieces.length}},{key:"set",value:function(e,t){this._pieces=e||[],this._isComplete=t}},{key:"setPartial",value:function(e,t){var n=e;if(t.length>0){var i=t[0].getRange(),o=t[t.length-1].getRange();if(!i||!o)return e;n=e.plusRange(i).plusRange(o)}for(var a=null,u=0,l=this._pieces.length;u n.endLineNumber){a=a||{index:u};break}if(c.removeTokens(n),c.isEmpty())this._pieces.splice(u,1),u--,l--;else if(!(c.endLineNumber n.endLineNumber)a=a||{index:u};else{var d=c.split(n),h=Object(r.a)(d,2),f=h[0],g=h[1];f.isEmpty()?a=a||{index:u}:g.isEmpty()||(this._pieces.splice(u,1,f,g),u++,l++,a=a||{index:u})}}}return a=a||{index:this._pieces.length},t.length>0&&(this._pieces=s.b(this._pieces,a.index,t)),n}},{key:"isComplete",value:function(){return this._isComplete}},{key:"addSemanticTokens",value:function(t,n){var i=this._pieces;if(0===i.length)return n;var r=i[e._findFirstPieceWithLine(i,t)].getLineTokens(t);if(!r)return n;for(var o=n.getCount(),a=r.getCount(),s=0,l=[],c=0,d=0,h=function(e,t){e!==d&&(d=e,l[c++]=e,l[c++]=t)},f=0;f>>0,b=~m>>>0;s t)){for(;r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber;)r--;return r}i=r-1}}return n}}]),e}(),C=function(){function e(t){Object(o.a)(this,e),this._lineTokens=[],this._len=0,this._languageIdCodec=t}return Object(a.a)(e,[{key:"flush",value:function(){this._lineTokens=[],this._len=0}},{key:"getTokens",value:function(e,t,n){var i=null;if(t =this._len;)this._lineTokens[this._len]=null,this._len++}},{key:"_deleteLines",value:function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}},{key:"_insertLines",value:function(e,t){if(0!==t){for(var n=[],i=0;i =this._len))if(t.startLineNumber!==t.endLineNumber){this._lineTokens[n]=e._deleteEnding(this._lineTokens[n],t.startColumn-1);var i=t.endLineNumber-1,r=null;i =this._len||(0!==n?(this._lineTokens[r]=e._deleteEnding(this._lineTokens[r],t.column-1),this._lineTokens[r]=e._insert(this._lineTokens[r],t.column-1,i),this._insertLines(t.lineNumber,n)):this._lineTokens[r]=e._insert(this._lineTokens[r],t.column-1,i))}}}],[{key:"_massageTokens",value:function(e,t,n){var i=n?_(n):null;if(0===t){var r=!1;if(i&&i.length>1&&(r=d.E.getLanguageId(i[1])!==e),!r)return g}if(!i||0===i.length){var o=new Uint32Array(2);return o[0]=t,o[1]=f(e),o.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}},{key:"_equals",value:function(e,t){if(!e||!t)return!e&&!t;var n=_(e),i=_(t);if(n.length!==i.length)return!1;for(var r=0,o=n.length;r >>1;if(0===t&&i[i.length-2]===n)return g;var o,a,s=u.a.findIndexInTokensArray(i,t),l=s>0?i[s-1<<1]:0;if(na&&(i[o++]=p,i[o++]=i[1+(f<<1)],a=p)}if(o===i.length)return e;var v=new Uint32Array(o);return v.set(i.subarray(0,o),0),v.buffer}},{key:"_append",value:function(e,t){if(t===g)return e;if(e===g)return t;if(null===e)return e;if(null===t)return null;var n=_(e),i=_(t),r=i.length>>>1,o=new Uint32Array(n.length+i.length);o.set(n,0);for(var a=n.length,s=n[n.length-2],u=0;u >>1,o=u.a.findIndexInTokensArray(i,t);o>0&&(i[o-1<<1]===t&&o--);for(var a=o;a 2&&void 0!==arguments[2]?arguments[2]:32,i=n-t,r=~((1<>>i)>>>0}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.byteLength,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=0;r 2&&void 0!==arguments[2]?arguments[2]:"0";e.length