diff --git a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/asset-manifest.json b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/asset-manifest.json
index bdb11599ffa..45868db399f 100644
--- a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/asset-manifest.json
+++ b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/asset-manifest.json
@@ -1,106 +1,106 @@
{
"files": {
- "static/js/0.fc740562.chunk.js": "./static/js/0.fc740562.chunk.js",
- "static/js/1.087675eb.chunk.js": "./static/js/1.087675eb.chunk.js",
- "static/js/2.dd7d449b.chunk.js": "./static/js/2.dd7d449b.chunk.js",
+ "static/js/0.4488805c.chunk.js": "./static/js/0.4488805c.chunk.js",
+ "static/js/1.2b57407c.chunk.js": "./static/js/1.2b57407c.chunk.js",
+ "static/js/2.e915aa79.chunk.js": "./static/js/2.e915aa79.chunk.js",
"main.css": "./static/css/main.cc3afb38.chunk.css",
- "main.js": "./static/js/main.c84fe181.chunk.js",
- "runtime-main.js": "./static/js/runtime-main.f45b8cd8.js",
+ "main.js": "./static/js/main.71953f18.chunk.js",
+ "runtime-main.js": "./static/js/runtime-main.3f58c569.js",
"runtime-schema.worker.js": "./static/js/runtime-schema.worker.620115f9.js",
"schema.worker.js": "./schema.worker.js",
"static/css/7.82f2daa0.chunk.css": "./static/css/7.82f2daa0.chunk.css",
- "static/js/7.4f6bde7b.chunk.js": "./static/js/7.4f6bde7b.chunk.js",
- "static/js/8.cd6fc849.chunk.js": "./static/js/8.cd6fc849.chunk.js",
- "static/js/9.d23b8fdd.chunk.js": "./static/js/9.d23b8fdd.chunk.js",
- "static/js/10.8d2d7960.chunk.js": "./static/js/10.8d2d7960.chunk.js",
- "static/js/11.db41a2ef.chunk.js": "./static/js/11.db41a2ef.chunk.js",
- "static/js/12.9f1b6b91.chunk.js": "./static/js/12.9f1b6b91.chunk.js",
- "static/js/13.4475d2ff.chunk.js": "./static/js/13.4475d2ff.chunk.js",
- "static/js/14.02211277.chunk.js": "./static/js/14.02211277.chunk.js",
- "static/js/15.23a20cfc.chunk.js": "./static/js/15.23a20cfc.chunk.js",
- "static/js/16.14dc98dc.chunk.js": "./static/js/16.14dc98dc.chunk.js",
- "static/js/17.674e4037.chunk.js": "./static/js/17.674e4037.chunk.js",
- "static/js/18.fe8518b6.chunk.js": "./static/js/18.fe8518b6.chunk.js",
- "static/js/19.5ded3cfe.chunk.js": "./static/js/19.5ded3cfe.chunk.js",
- "static/js/20.d03af402.chunk.js": "./static/js/20.d03af402.chunk.js",
- "static/js/21.42c5276a.chunk.js": "./static/js/21.42c5276a.chunk.js",
- "static/js/22.6148c218.chunk.js": "./static/js/22.6148c218.chunk.js",
- "static/js/23.66261eb3.chunk.js": "./static/js/23.66261eb3.chunk.js",
- "static/js/24.c9f35382.chunk.js": "./static/js/24.c9f35382.chunk.js",
- "static/js/25.80d45ddf.chunk.js": "./static/js/25.80d45ddf.chunk.js",
- "static/js/26.e5e020d3.chunk.js": "./static/js/26.e5e020d3.chunk.js",
- "static/js/27.c1e601bd.chunk.js": "./static/js/27.c1e601bd.chunk.js",
- "static/js/28.239b01b5.chunk.js": "./static/js/28.239b01b5.chunk.js",
- "static/js/29.038afaf9.chunk.js": "./static/js/29.038afaf9.chunk.js",
- "static/js/30.f2e28b54.chunk.js": "./static/js/30.f2e28b54.chunk.js",
- "static/js/31.a78f0031.chunk.js": "./static/js/31.a78f0031.chunk.js",
- "static/js/32.5b53b732.chunk.js": "./static/js/32.5b53b732.chunk.js",
- "static/js/33.5ce98b5a.chunk.js": "./static/js/33.5ce98b5a.chunk.js",
- "static/js/34.5fb00765.chunk.js": "./static/js/34.5fb00765.chunk.js",
- "static/js/35.b6ae27c4.chunk.js": "./static/js/35.b6ae27c4.chunk.js",
- "static/js/36.270c3ec0.chunk.js": "./static/js/36.270c3ec0.chunk.js",
- "static/js/37.ea49091d.chunk.js": "./static/js/37.ea49091d.chunk.js",
- "static/js/38.94c8d3cb.chunk.js": "./static/js/38.94c8d3cb.chunk.js",
- "static/js/39.8c3d428f.chunk.js": "./static/js/39.8c3d428f.chunk.js",
- "static/js/40.c16be457.chunk.js": "./static/js/40.c16be457.chunk.js",
- "static/js/41.714ba1de.chunk.js": "./static/js/41.714ba1de.chunk.js",
- "static/js/42.98f82a7a.chunk.js": "./static/js/42.98f82a7a.chunk.js",
- "static/js/43.622b965c.chunk.js": "./static/js/43.622b965c.chunk.js",
- "static/js/44.d0b7ea27.chunk.js": "./static/js/44.d0b7ea27.chunk.js",
- "static/js/45.12887ad5.chunk.js": "./static/js/45.12887ad5.chunk.js",
- "static/js/46.6c346300.chunk.js": "./static/js/46.6c346300.chunk.js",
- "static/js/47.1d6d2bd7.chunk.js": "./static/js/47.1d6d2bd7.chunk.js",
- "static/js/48.b2de18cd.chunk.js": "./static/js/48.b2de18cd.chunk.js",
- "static/js/49.b6810bbf.chunk.js": "./static/js/49.b6810bbf.chunk.js",
- "static/js/50.ea417cff.chunk.js": "./static/js/50.ea417cff.chunk.js",
- "static/js/51.45a1857a.chunk.js": "./static/js/51.45a1857a.chunk.js",
- "static/js/52.25da1e03.chunk.js": "./static/js/52.25da1e03.chunk.js",
- "static/js/53.10637345.chunk.js": "./static/js/53.10637345.chunk.js",
- "static/js/54.443090c2.chunk.js": "./static/js/54.443090c2.chunk.js",
- "static/js/55.be82e397.chunk.js": "./static/js/55.be82e397.chunk.js",
- "static/js/56.e1cc60ce.chunk.js": "./static/js/56.e1cc60ce.chunk.js",
- "static/js/57.1b46799d.chunk.js": "./static/js/57.1b46799d.chunk.js",
- "static/js/58.70427bfd.chunk.js": "./static/js/58.70427bfd.chunk.js",
- "static/js/59.01b47dff.chunk.js": "./static/js/59.01b47dff.chunk.js",
- "static/js/60.cd7bf6a7.chunk.js": "./static/js/60.cd7bf6a7.chunk.js",
- "static/js/61.f8420f45.chunk.js": "./static/js/61.f8420f45.chunk.js",
- "static/js/62.168a5b11.chunk.js": "./static/js/62.168a5b11.chunk.js",
- "static/js/63.65c34756.chunk.js": "./static/js/63.65c34756.chunk.js",
- "static/js/64.5047ed45.chunk.js": "./static/js/64.5047ed45.chunk.js",
- "static/js/65.f54aa563.chunk.js": "./static/js/65.f54aa563.chunk.js",
- "static/js/66.1be43f12.chunk.js": "./static/js/66.1be43f12.chunk.js",
- "static/js/67.4389a779.chunk.js": "./static/js/67.4389a779.chunk.js",
- "static/js/68.a518ef62.chunk.js": "./static/js/68.a518ef62.chunk.js",
- "static/js/69.a0bdc058.chunk.js": "./static/js/69.a0bdc058.chunk.js",
- "static/js/70.06e5e12e.chunk.js": "./static/js/70.06e5e12e.chunk.js",
- "static/js/71.353c678d.chunk.js": "./static/js/71.353c678d.chunk.js",
- "static/js/72.6c6b9581.chunk.js": "./static/js/72.6c6b9581.chunk.js",
- "static/js/73.1796119c.chunk.js": "./static/js/73.1796119c.chunk.js",
- "static/js/74.c3470886.chunk.js": "./static/js/74.c3470886.chunk.js",
- "static/js/75.5f4b2145.chunk.js": "./static/js/75.5f4b2145.chunk.js",
- "static/js/76.51f3fbcb.chunk.js": "./static/js/76.51f3fbcb.chunk.js",
+ "static/js/7.5c623481.chunk.js": "./static/js/7.5c623481.chunk.js",
+ "static/js/8.2926b7b4.chunk.js": "./static/js/8.2926b7b4.chunk.js",
+ "static/js/9.50ef72aa.chunk.js": "./static/js/9.50ef72aa.chunk.js",
+ "static/js/10.168b2de3.chunk.js": "./static/js/10.168b2de3.chunk.js",
+ "static/js/11.f103f8c7.chunk.js": "./static/js/11.f103f8c7.chunk.js",
+ "static/js/12.6a2075ce.chunk.js": "./static/js/12.6a2075ce.chunk.js",
+ "static/js/13.a15acf04.chunk.js": "./static/js/13.a15acf04.chunk.js",
+ "static/js/14.9e198614.chunk.js": "./static/js/14.9e198614.chunk.js",
+ "static/js/15.96ac70d0.chunk.js": "./static/js/15.96ac70d0.chunk.js",
+ "static/js/16.bfb596a6.chunk.js": "./static/js/16.bfb596a6.chunk.js",
+ "static/js/17.2a614d9c.chunk.js": "./static/js/17.2a614d9c.chunk.js",
+ "static/js/18.cf3ba17d.chunk.js": "./static/js/18.cf3ba17d.chunk.js",
+ "static/js/19.8bfcda97.chunk.js": "./static/js/19.8bfcda97.chunk.js",
+ "static/js/20.9909f095.chunk.js": "./static/js/20.9909f095.chunk.js",
+ "static/js/21.93a6c247.chunk.js": "./static/js/21.93a6c247.chunk.js",
+ "static/js/22.2461e743.chunk.js": "./static/js/22.2461e743.chunk.js",
+ "static/js/23.7e747f10.chunk.js": "./static/js/23.7e747f10.chunk.js",
+ "static/js/24.367b7c81.chunk.js": "./static/js/24.367b7c81.chunk.js",
+ "static/js/25.1cf2e04f.chunk.js": "./static/js/25.1cf2e04f.chunk.js",
+ "static/js/26.db445ff6.chunk.js": "./static/js/26.db445ff6.chunk.js",
+ "static/js/27.5146f9c4.chunk.js": "./static/js/27.5146f9c4.chunk.js",
+ "static/js/28.8a61fdef.chunk.js": "./static/js/28.8a61fdef.chunk.js",
+ "static/js/29.6b0cc614.chunk.js": "./static/js/29.6b0cc614.chunk.js",
+ "static/js/30.946d4f99.chunk.js": "./static/js/30.946d4f99.chunk.js",
+ "static/js/31.7f8afa57.chunk.js": "./static/js/31.7f8afa57.chunk.js",
+ "static/js/32.3633c7e8.chunk.js": "./static/js/32.3633c7e8.chunk.js",
+ "static/js/33.49ee5883.chunk.js": "./static/js/33.49ee5883.chunk.js",
+ "static/js/34.04c8f6cc.chunk.js": "./static/js/34.04c8f6cc.chunk.js",
+ "static/js/35.8124446a.chunk.js": "./static/js/35.8124446a.chunk.js",
+ "static/js/36.b3c74a9e.chunk.js": "./static/js/36.b3c74a9e.chunk.js",
+ "static/js/37.75bbea48.chunk.js": "./static/js/37.75bbea48.chunk.js",
+ "static/js/38.dfd8d52a.chunk.js": "./static/js/38.dfd8d52a.chunk.js",
+ "static/js/39.fc66fefa.chunk.js": "./static/js/39.fc66fefa.chunk.js",
+ "static/js/40.4c6f8588.chunk.js": "./static/js/40.4c6f8588.chunk.js",
+ "static/js/41.40e3a2a0.chunk.js": "./static/js/41.40e3a2a0.chunk.js",
+ "static/js/42.481523c5.chunk.js": "./static/js/42.481523c5.chunk.js",
+ "static/js/43.bc3e8b00.chunk.js": "./static/js/43.bc3e8b00.chunk.js",
+ "static/js/44.2d50ae0f.chunk.js": "./static/js/44.2d50ae0f.chunk.js",
+ "static/js/45.06caaf87.chunk.js": "./static/js/45.06caaf87.chunk.js",
+ "static/js/46.ab593413.chunk.js": "./static/js/46.ab593413.chunk.js",
+ "static/js/47.de2a02ea.chunk.js": "./static/js/47.de2a02ea.chunk.js",
+ "static/js/48.a952d672.chunk.js": "./static/js/48.a952d672.chunk.js",
+ "static/js/49.d24ae294.chunk.js": "./static/js/49.d24ae294.chunk.js",
+ "static/js/50.8b7228d8.chunk.js": "./static/js/50.8b7228d8.chunk.js",
+ "static/js/51.e3deb32a.chunk.js": "./static/js/51.e3deb32a.chunk.js",
+ "static/js/52.abf251fd.chunk.js": "./static/js/52.abf251fd.chunk.js",
+ "static/js/53.861a2d9a.chunk.js": "./static/js/53.861a2d9a.chunk.js",
+ "static/js/54.f325d565.chunk.js": "./static/js/54.f325d565.chunk.js",
+ "static/js/55.fc056b0d.chunk.js": "./static/js/55.fc056b0d.chunk.js",
+ "static/js/56.8d0dae08.chunk.js": "./static/js/56.8d0dae08.chunk.js",
+ "static/js/57.a5c2281a.chunk.js": "./static/js/57.a5c2281a.chunk.js",
+ "static/js/58.ea5d30e1.chunk.js": "./static/js/58.ea5d30e1.chunk.js",
+ "static/js/59.4dc64aeb.chunk.js": "./static/js/59.4dc64aeb.chunk.js",
+ "static/js/60.0e8e343a.chunk.js": "./static/js/60.0e8e343a.chunk.js",
+ "static/js/61.93dd35f0.chunk.js": "./static/js/61.93dd35f0.chunk.js",
+ "static/js/62.917dbf96.chunk.js": "./static/js/62.917dbf96.chunk.js",
+ "static/js/63.48e5edc8.chunk.js": "./static/js/63.48e5edc8.chunk.js",
+ "static/js/64.9f853b98.chunk.js": "./static/js/64.9f853b98.chunk.js",
+ "static/js/65.b7502e3d.chunk.js": "./static/js/65.b7502e3d.chunk.js",
+ "static/js/66.14ecc685.chunk.js": "./static/js/66.14ecc685.chunk.js",
+ "static/js/67.49746a4e.chunk.js": "./static/js/67.49746a4e.chunk.js",
+ "static/js/68.0a20e8da.chunk.js": "./static/js/68.0a20e8da.chunk.js",
+ "static/js/69.27a7035c.chunk.js": "./static/js/69.27a7035c.chunk.js",
+ "static/js/70.ffc14921.chunk.js": "./static/js/70.ffc14921.chunk.js",
+ "static/js/71.c1403467.chunk.js": "./static/js/71.c1403467.chunk.js",
+ "static/js/72.0fd083d4.chunk.js": "./static/js/72.0fd083d4.chunk.js",
+ "static/js/73.3e67292d.chunk.js": "./static/js/73.3e67292d.chunk.js",
+ "static/js/74.185c576c.chunk.js": "./static/js/74.185c576c.chunk.js",
+ "static/js/75.7a374cd6.chunk.js": "./static/js/75.7a374cd6.chunk.js",
+ "static/js/76.901186b4.chunk.js": "./static/js/76.901186b4.chunk.js",
"css.worker.js": "./css.worker.js",
"editor.worker.js": "./editor.worker.js",
"html.worker.js": "./html.worker.js",
"index.html": "./index.html",
"json.worker.js": "./json.worker.js",
- "precache-manifest.f37c2999fb77e37d0187bb0f96491e7e.js": "./precache-manifest.f37c2999fb77e37d0187bb0f96491e7e.js",
+ "precache-manifest.5138d5294037173394347b085c9cff06.js": "./precache-manifest.5138d5294037173394347b085c9cff06.js",
"schema.worker.js.LICENSE.txt": "./schema.worker.js.LICENSE.txt",
"service-worker.js": "./service-worker.js",
- "static/js/0.fc740562.chunk.js.LICENSE.txt": "./static/js/0.fc740562.chunk.js.LICENSE.txt",
- "static/js/69.a0bdc058.chunk.js.LICENSE.txt": "./static/js/69.a0bdc058.chunk.js.LICENSE.txt",
- "static/js/7.4f6bde7b.chunk.js.LICENSE.txt": "./static/js/7.4f6bde7b.chunk.js.LICENSE.txt",
- "static/js/8.cd6fc849.chunk.js.LICENSE.txt": "./static/js/8.cd6fc849.chunk.js.LICENSE.txt",
+ "static/js/0.4488805c.chunk.js.LICENSE.txt": "./static/js/0.4488805c.chunk.js.LICENSE.txt",
+ "static/js/69.27a7035c.chunk.js.LICENSE.txt": "./static/js/69.27a7035c.chunk.js.LICENSE.txt",
+ "static/js/7.5c623481.chunk.js.LICENSE.txt": "./static/js/7.5c623481.chunk.js.LICENSE.txt",
+ "static/js/8.2926b7b4.chunk.js.LICENSE.txt": "./static/js/8.2926b7b4.chunk.js.LICENSE.txt",
"static/media/codicon.css": "./static/media/codicon.22349029.ttf",
"ts.worker.js": "./ts.worker.js",
"ts.worker.js.LICENSE.txt": "./ts.worker.js.LICENSE.txt"
},
"entrypoints": [
- "static/js/runtime-main.f45b8cd8.js",
- "static/js/0.fc740562.chunk.js",
+ "static/js/runtime-main.3f58c569.js",
+ "static/js/0.4488805c.chunk.js",
"static/css/7.82f2daa0.chunk.css",
- "static/js/7.4f6bde7b.chunk.js",
+ "static/js/7.5c623481.chunk.js",
"static/css/main.cc3afb38.chunk.css",
- "static/js/main.c84fe181.chunk.js"
+ "static/js/main.71953f18.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 1a5f50721fa..488067b5045 100644
--- a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/index.html
+++ b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/index.html
@@ -1 +1 @@
-
Banana Cake Pop
\ No newline at end of file
+Banana Cake Pop
\ No newline at end of file
diff --git a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/precache-manifest.5138d5294037173394347b085c9cff06.js b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/precache-manifest.5138d5294037173394347b085c9cff06.js
new file mode 100644
index 00000000000..2ba971ae6d1
--- /dev/null
+++ b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/precache-manifest.5138d5294037173394347b085c9cff06.js
@@ -0,0 +1,374 @@
+self.__precacheManifest = (self.__precacheManifest || []).concat([
+ {
+ "revision": "380d9aae27aa3cf3814c484572d3ed55",
+ "url": "./css.worker.js"
+ },
+ {
+ "revision": "c09afbf0ce6b637eb7a2662a29abddf5",
+ "url": "./editor.worker.js"
+ },
+ {
+ "revision": "e871a4650397a764d358ca57e6f91071",
+ "url": "./html.worker.js"
+ },
+ {
+ "revision": "62f34760c1a3a871227dee31cbb7fc50",
+ "url": "./index.html"
+ },
+ {
+ "revision": "d15a736870e9d14276d46aa36028959a",
+ "url": "./json.worker.js"
+ },
+ {
+ "revision": "a71ff85458a4723e5c7191c443076e44",
+ "url": "./schema.worker.js"
+ },
+ {
+ "revision": "e61be8543c4143d8e62378f41c55c96d",
+ "url": "./schema.worker.js.LICENSE.txt"
+ },
+ {
+ "revision": "971ec08ead24d0193bb2",
+ "url": "./static/css/7.82f2daa0.chunk.css"
+ },
+ {
+ "revision": "d9782e0c238a3bb821c7",
+ "url": "./static/css/main.cc3afb38.chunk.css"
+ },
+ {
+ "revision": "491dba76ed4802b142ab",
+ "url": "./static/js/0.4488805c.chunk.js"
+ },
+ {
+ "revision": "1f7776286836c0d7334b60bc78f758ea",
+ "url": "./static/js/0.4488805c.chunk.js.LICENSE.txt"
+ },
+ {
+ "revision": "b3ee2a11088f480f4ea0",
+ "url": "./static/js/1.2b57407c.chunk.js"
+ },
+ {
+ "revision": "7d435186caf319be3512",
+ "url": "./static/js/10.168b2de3.chunk.js"
+ },
+ {
+ "revision": "70a865900767560180fd",
+ "url": "./static/js/11.f103f8c7.chunk.js"
+ },
+ {
+ "revision": "5fbb9a8f45319aa7894b",
+ "url": "./static/js/12.6a2075ce.chunk.js"
+ },
+ {
+ "revision": "c236c7259308f9a5e761",
+ "url": "./static/js/13.a15acf04.chunk.js"
+ },
+ {
+ "revision": "88699756f885711db494",
+ "url": "./static/js/14.9e198614.chunk.js"
+ },
+ {
+ "revision": "09663b76e8fe856216c1",
+ "url": "./static/js/15.96ac70d0.chunk.js"
+ },
+ {
+ "revision": "27fb028f4809d5f51ee4",
+ "url": "./static/js/16.bfb596a6.chunk.js"
+ },
+ {
+ "revision": "41c4fb17aa6040637b72",
+ "url": "./static/js/17.2a614d9c.chunk.js"
+ },
+ {
+ "revision": "63fd89ff77d64d97408e",
+ "url": "./static/js/18.cf3ba17d.chunk.js"
+ },
+ {
+ "revision": "c867b8ecbbd3c34977bd",
+ "url": "./static/js/19.8bfcda97.chunk.js"
+ },
+ {
+ "revision": "96eacbc566447feaf3bf",
+ "url": "./static/js/2.e915aa79.chunk.js"
+ },
+ {
+ "revision": "3b15312b6d878a79a504",
+ "url": "./static/js/20.9909f095.chunk.js"
+ },
+ {
+ "revision": "2f7c20138fc6fa064abf",
+ "url": "./static/js/21.93a6c247.chunk.js"
+ },
+ {
+ "revision": "f919e7bdd4146052d43d",
+ "url": "./static/js/22.2461e743.chunk.js"
+ },
+ {
+ "revision": "f34c3804487eeb696ace",
+ "url": "./static/js/23.7e747f10.chunk.js"
+ },
+ {
+ "revision": "dd49ea56f15ddc84fc6a",
+ "url": "./static/js/24.367b7c81.chunk.js"
+ },
+ {
+ "revision": "1f01298180147ce70509",
+ "url": "./static/js/25.1cf2e04f.chunk.js"
+ },
+ {
+ "revision": "4ecf422c1e3550895477",
+ "url": "./static/js/26.db445ff6.chunk.js"
+ },
+ {
+ "revision": "8ada91e134e5d80332ec",
+ "url": "./static/js/27.5146f9c4.chunk.js"
+ },
+ {
+ "revision": "d08074503ef90471e460",
+ "url": "./static/js/28.8a61fdef.chunk.js"
+ },
+ {
+ "revision": "a1a23fa5f0652721f61a",
+ "url": "./static/js/29.6b0cc614.chunk.js"
+ },
+ {
+ "revision": "2562f2e3c8ca620d5534",
+ "url": "./static/js/30.946d4f99.chunk.js"
+ },
+ {
+ "revision": "763c1859e9c4fe375a33",
+ "url": "./static/js/31.7f8afa57.chunk.js"
+ },
+ {
+ "revision": "d5150c760a7b49c78815",
+ "url": "./static/js/32.3633c7e8.chunk.js"
+ },
+ {
+ "revision": "c103f395661407c560ac",
+ "url": "./static/js/33.49ee5883.chunk.js"
+ },
+ {
+ "revision": "4b6eadd43d194fe9e0cb",
+ "url": "./static/js/34.04c8f6cc.chunk.js"
+ },
+ {
+ "revision": "188f34b27a37e84f060f",
+ "url": "./static/js/35.8124446a.chunk.js"
+ },
+ {
+ "revision": "ed21cda05fdd843d7e32",
+ "url": "./static/js/36.b3c74a9e.chunk.js"
+ },
+ {
+ "revision": "0e987b34c735ebead58b",
+ "url": "./static/js/37.75bbea48.chunk.js"
+ },
+ {
+ "revision": "9987ed7af9e487abc284",
+ "url": "./static/js/38.dfd8d52a.chunk.js"
+ },
+ {
+ "revision": "651270ad4d3086ae4cc9",
+ "url": "./static/js/39.fc66fefa.chunk.js"
+ },
+ {
+ "revision": "b202de1a5a7b9e0f9a97",
+ "url": "./static/js/40.4c6f8588.chunk.js"
+ },
+ {
+ "revision": "479e53955428cb8ac3fe",
+ "url": "./static/js/41.40e3a2a0.chunk.js"
+ },
+ {
+ "revision": "a96f8cff16edfdddf7a3",
+ "url": "./static/js/42.481523c5.chunk.js"
+ },
+ {
+ "revision": "68483468ed800d53e1c1",
+ "url": "./static/js/43.bc3e8b00.chunk.js"
+ },
+ {
+ "revision": "e4c4d29a5e77dc0c8a6b",
+ "url": "./static/js/44.2d50ae0f.chunk.js"
+ },
+ {
+ "revision": "5b18e33e25fc3f1eb549",
+ "url": "./static/js/45.06caaf87.chunk.js"
+ },
+ {
+ "revision": "04f757ecbc6c3468a345",
+ "url": "./static/js/46.ab593413.chunk.js"
+ },
+ {
+ "revision": "ef9a2bd21628e20f7494",
+ "url": "./static/js/47.de2a02ea.chunk.js"
+ },
+ {
+ "revision": "ddd67b5e572b34a1929c",
+ "url": "./static/js/48.a952d672.chunk.js"
+ },
+ {
+ "revision": "38576b097aea41a5c0a4",
+ "url": "./static/js/49.d24ae294.chunk.js"
+ },
+ {
+ "revision": "5513e93ae1df88455e56",
+ "url": "./static/js/50.8b7228d8.chunk.js"
+ },
+ {
+ "revision": "ab0e55f2d2065d82b81c",
+ "url": "./static/js/51.e3deb32a.chunk.js"
+ },
+ {
+ "revision": "f5a8988b87585b653b02",
+ "url": "./static/js/52.abf251fd.chunk.js"
+ },
+ {
+ "revision": "d6ee2a8913bb52d0f865",
+ "url": "./static/js/53.861a2d9a.chunk.js"
+ },
+ {
+ "revision": "83fd4d00c3d784351186",
+ "url": "./static/js/54.f325d565.chunk.js"
+ },
+ {
+ "revision": "5d794426ce87217dc0cb",
+ "url": "./static/js/55.fc056b0d.chunk.js"
+ },
+ {
+ "revision": "3194bf3e765d36f8aa2f",
+ "url": "./static/js/56.8d0dae08.chunk.js"
+ },
+ {
+ "revision": "1853fbc23227b2945b5c",
+ "url": "./static/js/57.a5c2281a.chunk.js"
+ },
+ {
+ "revision": "2f7fe6ffb4b65d0c7d20",
+ "url": "./static/js/58.ea5d30e1.chunk.js"
+ },
+ {
+ "revision": "f651b4448361d409b21c",
+ "url": "./static/js/59.4dc64aeb.chunk.js"
+ },
+ {
+ "revision": "6de9f8ae18943245c12e",
+ "url": "./static/js/60.0e8e343a.chunk.js"
+ },
+ {
+ "revision": "6b0feb71599977e54299",
+ "url": "./static/js/61.93dd35f0.chunk.js"
+ },
+ {
+ "revision": "9a411223a969d85f1553",
+ "url": "./static/js/62.917dbf96.chunk.js"
+ },
+ {
+ "revision": "03074c811cbe9ffc5d7e",
+ "url": "./static/js/63.48e5edc8.chunk.js"
+ },
+ {
+ "revision": "fa0d0304ba44693c3116",
+ "url": "./static/js/64.9f853b98.chunk.js"
+ },
+ {
+ "revision": "94b5a83fc47e4d0332ef",
+ "url": "./static/js/65.b7502e3d.chunk.js"
+ },
+ {
+ "revision": "b9ce12a04f4caded4d08",
+ "url": "./static/js/66.14ecc685.chunk.js"
+ },
+ {
+ "revision": "3db14047d52bf50b5897",
+ "url": "./static/js/67.49746a4e.chunk.js"
+ },
+ {
+ "revision": "004f5aaf5f7a0be5933e",
+ "url": "./static/js/68.0a20e8da.chunk.js"
+ },
+ {
+ "revision": "2c4dff7df4c220852e84",
+ "url": "./static/js/69.27a7035c.chunk.js"
+ },
+ {
+ "revision": "cf224aa154060b2c3c86fa6ed5af6aa8",
+ "url": "./static/js/69.27a7035c.chunk.js.LICENSE.txt"
+ },
+ {
+ "revision": "971ec08ead24d0193bb2",
+ "url": "./static/js/7.5c623481.chunk.js"
+ },
+ {
+ "revision": "dc47f521b82cba5e162136ae39bd298c",
+ "url": "./static/js/7.5c623481.chunk.js.LICENSE.txt"
+ },
+ {
+ "revision": "34b2482c3c5aa47c2d12",
+ "url": "./static/js/70.ffc14921.chunk.js"
+ },
+ {
+ "revision": "fc1de43d582aca29d905",
+ "url": "./static/js/71.c1403467.chunk.js"
+ },
+ {
+ "revision": "fc7e0d00ace7159aacd7",
+ "url": "./static/js/72.0fd083d4.chunk.js"
+ },
+ {
+ "revision": "84e2ae356fdbe18a2947",
+ "url": "./static/js/73.3e67292d.chunk.js"
+ },
+ {
+ "revision": "419fb3413a703a87cc3e",
+ "url": "./static/js/74.185c576c.chunk.js"
+ },
+ {
+ "revision": "afeed6ce3c84a4f5d082",
+ "url": "./static/js/75.7a374cd6.chunk.js"
+ },
+ {
+ "revision": "7b5cb877962df1716157",
+ "url": "./static/js/76.901186b4.chunk.js"
+ },
+ {
+ "revision": "b51e4418226c52662375",
+ "url": "./static/js/8.2926b7b4.chunk.js"
+ },
+ {
+ "revision": "c307d458d54c9e1524984b0ae1f3e612",
+ "url": "./static/js/8.2926b7b4.chunk.js.LICENSE.txt"
+ },
+ {
+ "revision": "92720be8252cf00f1508",
+ "url": "./static/js/9.50ef72aa.chunk.js"
+ },
+ {
+ "revision": "d9782e0c238a3bb821c7",
+ "url": "./static/js/main.71953f18.chunk.js"
+ },
+ {
+ "revision": "51967f648d41a11a0cb2",
+ "url": "./static/js/runtime-main.3f58c569.js"
+ },
+ {
+ "revision": "d1c043b3a2d52e0e6c88",
+ "url": "./static/js/runtime-schema.worker.620115f9.js"
+ },
+ {
+ "revision": "c6ffa040bd6bda82f20d",
+ "url": "./static/js/schema.worker.4bf9cd70.chunk.js"
+ },
+ {
+ "revision": "223490291528837216424bf892a36810",
+ "url": "./static/media/codicon.22349029.ttf"
+ },
+ {
+ "revision": "abda4ef65cbfc624a4c9369032adb74f",
+ "url": "./ts.worker.js"
+ },
+ {
+ "revision": "7ec01595672f75e83fd81b41f132f4c1",
+ "url": "./ts.worker.js.LICENSE.txt"
+ }
+]);
\ No newline at end of file
diff --git a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/precache-manifest.f37c2999fb77e37d0187bb0f96491e7e.js b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/precache-manifest.f37c2999fb77e37d0187bb0f96491e7e.js
deleted file mode 100644
index f1cca946024..00000000000
--- a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/precache-manifest.f37c2999fb77e37d0187bb0f96491e7e.js
+++ /dev/null
@@ -1,374 +0,0 @@
-self.__precacheManifest = (self.__precacheManifest || []).concat([
- {
- "revision": "380d9aae27aa3cf3814c484572d3ed55",
- "url": "./css.worker.js"
- },
- {
- "revision": "c09afbf0ce6b637eb7a2662a29abddf5",
- "url": "./editor.worker.js"
- },
- {
- "revision": "e871a4650397a764d358ca57e6f91071",
- "url": "./html.worker.js"
- },
- {
- "revision": "d228f5a7a5b59f7187ac303423bf54b5",
- "url": "./index.html"
- },
- {
- "revision": "d15a736870e9d14276d46aa36028959a",
- "url": "./json.worker.js"
- },
- {
- "revision": "896b55e56a69c846d1f683ec6faef080",
- "url": "./schema.worker.js"
- },
- {
- "revision": "e61be8543c4143d8e62378f41c55c96d",
- "url": "./schema.worker.js.LICENSE.txt"
- },
- {
- "revision": "4399deb6914fe2e5cfa3",
- "url": "./static/css/7.82f2daa0.chunk.css"
- },
- {
- "revision": "e4cdd73f19a638cd21b4",
- "url": "./static/css/main.cc3afb38.chunk.css"
- },
- {
- "revision": "2e001cb49baa8009be0c",
- "url": "./static/js/0.fc740562.chunk.js"
- },
- {
- "revision": "1f7776286836c0d7334b60bc78f758ea",
- "url": "./static/js/0.fc740562.chunk.js.LICENSE.txt"
- },
- {
- "revision": "c03503295f33c298dd08",
- "url": "./static/js/1.087675eb.chunk.js"
- },
- {
- "revision": "d911ad1f8881666ff4da",
- "url": "./static/js/10.8d2d7960.chunk.js"
- },
- {
- "revision": "6292157caf1c95a32636",
- "url": "./static/js/11.db41a2ef.chunk.js"
- },
- {
- "revision": "c1faaffec93403beccd5",
- "url": "./static/js/12.9f1b6b91.chunk.js"
- },
- {
- "revision": "5121fdbebf111615dacd",
- "url": "./static/js/13.4475d2ff.chunk.js"
- },
- {
- "revision": "e3cec7f5abea22e216fc",
- "url": "./static/js/14.02211277.chunk.js"
- },
- {
- "revision": "84771ffdb34f9363c5dc",
- "url": "./static/js/15.23a20cfc.chunk.js"
- },
- {
- "revision": "0d010118e80c6be9b2aa",
- "url": "./static/js/16.14dc98dc.chunk.js"
- },
- {
- "revision": "1a1ad960ecb6ce8089cf",
- "url": "./static/js/17.674e4037.chunk.js"
- },
- {
- "revision": "0da50fb5ab6939151e03",
- "url": "./static/js/18.fe8518b6.chunk.js"
- },
- {
- "revision": "636e00d977f808788a0b",
- "url": "./static/js/19.5ded3cfe.chunk.js"
- },
- {
- "revision": "f4a451a04e6fc7200766",
- "url": "./static/js/2.dd7d449b.chunk.js"
- },
- {
- "revision": "9bd3f680b6e947067184",
- "url": "./static/js/20.d03af402.chunk.js"
- },
- {
- "revision": "a70634363e5365562110",
- "url": "./static/js/21.42c5276a.chunk.js"
- },
- {
- "revision": "4c8ee4f6fceff9950c88",
- "url": "./static/js/22.6148c218.chunk.js"
- },
- {
- "revision": "8048ea3d2e6800168a80",
- "url": "./static/js/23.66261eb3.chunk.js"
- },
- {
- "revision": "6a07a657981fbb6422e7",
- "url": "./static/js/24.c9f35382.chunk.js"
- },
- {
- "revision": "497aff23eb3002f73216",
- "url": "./static/js/25.80d45ddf.chunk.js"
- },
- {
- "revision": "40b19e11790a9293c89e",
- "url": "./static/js/26.e5e020d3.chunk.js"
- },
- {
- "revision": "cdbbab8f90ddc13ac7f8",
- "url": "./static/js/27.c1e601bd.chunk.js"
- },
- {
- "revision": "eace59302ec83db8bdc3",
- "url": "./static/js/28.239b01b5.chunk.js"
- },
- {
- "revision": "f70b43c154bfb3364da1",
- "url": "./static/js/29.038afaf9.chunk.js"
- },
- {
- "revision": "f59ef96481e2cdf11f34",
- "url": "./static/js/30.f2e28b54.chunk.js"
- },
- {
- "revision": "54579e3efe2d1dd6d45c",
- "url": "./static/js/31.a78f0031.chunk.js"
- },
- {
- "revision": "9d02c5f4377cc8f209e3",
- "url": "./static/js/32.5b53b732.chunk.js"
- },
- {
- "revision": "51e0563b9878d35693f4",
- "url": "./static/js/33.5ce98b5a.chunk.js"
- },
- {
- "revision": "f96bacd9bc54967cb8d5",
- "url": "./static/js/34.5fb00765.chunk.js"
- },
- {
- "revision": "bc67a09416d7a77a01f2",
- "url": "./static/js/35.b6ae27c4.chunk.js"
- },
- {
- "revision": "6d211890c718a3d8a3d8",
- "url": "./static/js/36.270c3ec0.chunk.js"
- },
- {
- "revision": "ee674d19d91224e1bad1",
- "url": "./static/js/37.ea49091d.chunk.js"
- },
- {
- "revision": "478e27e23e560eaf2455",
- "url": "./static/js/38.94c8d3cb.chunk.js"
- },
- {
- "revision": "522054ed1051012bb3b0",
- "url": "./static/js/39.8c3d428f.chunk.js"
- },
- {
- "revision": "011853f4470d5ac873d6",
- "url": "./static/js/40.c16be457.chunk.js"
- },
- {
- "revision": "b61dfc82b95378027222",
- "url": "./static/js/41.714ba1de.chunk.js"
- },
- {
- "revision": "871da68423ac71df21fb",
- "url": "./static/js/42.98f82a7a.chunk.js"
- },
- {
- "revision": "7094210559b04ae0cdd0",
- "url": "./static/js/43.622b965c.chunk.js"
- },
- {
- "revision": "be0d8411c522527fc56e",
- "url": "./static/js/44.d0b7ea27.chunk.js"
- },
- {
- "revision": "622a61ed474a0f46fdea",
- "url": "./static/js/45.12887ad5.chunk.js"
- },
- {
- "revision": "635dd42188a6ecbfaf00",
- "url": "./static/js/46.6c346300.chunk.js"
- },
- {
- "revision": "d98ec0ace7cac217d6b1",
- "url": "./static/js/47.1d6d2bd7.chunk.js"
- },
- {
- "revision": "3c388a618e35ab545fe6",
- "url": "./static/js/48.b2de18cd.chunk.js"
- },
- {
- "revision": "e431149dccbb2d035f6d",
- "url": "./static/js/49.b6810bbf.chunk.js"
- },
- {
- "revision": "76037e1a348eac72333a",
- "url": "./static/js/50.ea417cff.chunk.js"
- },
- {
- "revision": "4261c32890ef5df7bf4e",
- "url": "./static/js/51.45a1857a.chunk.js"
- },
- {
- "revision": "6ee52d018453c1a2217b",
- "url": "./static/js/52.25da1e03.chunk.js"
- },
- {
- "revision": "1e07f989ed476e0e534f",
- "url": "./static/js/53.10637345.chunk.js"
- },
- {
- "revision": "e701229a2ff296e761c3",
- "url": "./static/js/54.443090c2.chunk.js"
- },
- {
- "revision": "65913dc4622c17c9ded7",
- "url": "./static/js/55.be82e397.chunk.js"
- },
- {
- "revision": "93a5ca7b7b19f86f3269",
- "url": "./static/js/56.e1cc60ce.chunk.js"
- },
- {
- "revision": "f3f69afd1353774cb1cb",
- "url": "./static/js/57.1b46799d.chunk.js"
- },
- {
- "revision": "c3daa3854c92f859f0ae",
- "url": "./static/js/58.70427bfd.chunk.js"
- },
- {
- "revision": "821b3e4ead2a63a57213",
- "url": "./static/js/59.01b47dff.chunk.js"
- },
- {
- "revision": "e4183cab18d6db1aae21",
- "url": "./static/js/60.cd7bf6a7.chunk.js"
- },
- {
- "revision": "883b4e62a47b57607d8d",
- "url": "./static/js/61.f8420f45.chunk.js"
- },
- {
- "revision": "8c46dd93e40bb0b9cf36",
- "url": "./static/js/62.168a5b11.chunk.js"
- },
- {
- "revision": "a6deeba40fdd76637b46",
- "url": "./static/js/63.65c34756.chunk.js"
- },
- {
- "revision": "678f16de76fc00f5698e",
- "url": "./static/js/64.5047ed45.chunk.js"
- },
- {
- "revision": "ae8b4e97ca439dcebcad",
- "url": "./static/js/65.f54aa563.chunk.js"
- },
- {
- "revision": "19bf8ea2097c5e869498",
- "url": "./static/js/66.1be43f12.chunk.js"
- },
- {
- "revision": "b613e66560d26b26f1b2",
- "url": "./static/js/67.4389a779.chunk.js"
- },
- {
- "revision": "c677eb893b8c8ae97701",
- "url": "./static/js/68.a518ef62.chunk.js"
- },
- {
- "revision": "fd975ec21c673a56a3c4",
- "url": "./static/js/69.a0bdc058.chunk.js"
- },
- {
- "revision": "cf224aa154060b2c3c86fa6ed5af6aa8",
- "url": "./static/js/69.a0bdc058.chunk.js.LICENSE.txt"
- },
- {
- "revision": "4399deb6914fe2e5cfa3",
- "url": "./static/js/7.4f6bde7b.chunk.js"
- },
- {
- "revision": "dc47f521b82cba5e162136ae39bd298c",
- "url": "./static/js/7.4f6bde7b.chunk.js.LICENSE.txt"
- },
- {
- "revision": "3a1969beaa70018c222e",
- "url": "./static/js/70.06e5e12e.chunk.js"
- },
- {
- "revision": "8ee6a8d71465bc178a3a",
- "url": "./static/js/71.353c678d.chunk.js"
- },
- {
- "revision": "f73dd89ce1541cc0b9c0",
- "url": "./static/js/72.6c6b9581.chunk.js"
- },
- {
- "revision": "143c3c030db58c4cbb7e",
- "url": "./static/js/73.1796119c.chunk.js"
- },
- {
- "revision": "18b9267eea65aaab14f9",
- "url": "./static/js/74.c3470886.chunk.js"
- },
- {
- "revision": "6fb40ee7fd0ca94bbc8e",
- "url": "./static/js/75.5f4b2145.chunk.js"
- },
- {
- "revision": "d3abc1b26f24abc16441",
- "url": "./static/js/76.51f3fbcb.chunk.js"
- },
- {
- "revision": "8e695a004a953c253798",
- "url": "./static/js/8.cd6fc849.chunk.js"
- },
- {
- "revision": "c307d458d54c9e1524984b0ae1f3e612",
- "url": "./static/js/8.cd6fc849.chunk.js.LICENSE.txt"
- },
- {
- "revision": "d6fe6e8b9c934b55daf8",
- "url": "./static/js/9.d23b8fdd.chunk.js"
- },
- {
- "revision": "e4cdd73f19a638cd21b4",
- "url": "./static/js/main.c84fe181.chunk.js"
- },
- {
- "revision": "da80c63bfa591d2bd8cb",
- "url": "./static/js/runtime-main.f45b8cd8.js"
- },
- {
- "revision": "d1c043b3a2d52e0e6c88",
- "url": "./static/js/runtime-schema.worker.620115f9.js"
- },
- {
- "revision": "b6f0a55995271b7e98cd",
- "url": "./static/js/schema.worker.6e863798.chunk.js"
- },
- {
- "revision": "223490291528837216424bf892a36810",
- "url": "./static/media/codicon.22349029.ttf"
- },
- {
- "revision": "abda4ef65cbfc624a4c9369032adb74f",
- "url": "./ts.worker.js"
- },
- {
- "revision": "7ec01595672f75e83fd81b41f132f4c1",
- "url": "./ts.worker.js.LICENSE.txt"
- }
-]);
\ No newline at end of file
diff --git a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/schema.worker.js b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/schema.worker.js
index 426936587e3..832ff95288a 100644
--- a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/schema.worker.js
+++ b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/schema.worker.js
@@ -1,2 +1,2 @@
/*! For license information please see schema.worker.js.LICENSE.txt */
-!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="./",n(n.s=94)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(17);function i(e){return(i="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})(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.a)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"===typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){e.exports=n(79)},function(e,t,n){"use strict";var r=n(31);n.d(t,"Message",(function(){return r.a}));n(32),n(33)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var r=n(8),i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();Object(r.a)(i);var o=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function a(e){return null!=e&&"string"===typeof e.kind}Object(r.a)(o)},function(e,t,n){"use strict";n.r(t),n.d(t,"print",(function(){return o}));var r=n(10),i=n(19);function o(e){return Object(r.b)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return u(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=l("(",u(e.variableDefinitions,", "),")"),i=u(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?u([t,u([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+l(" = ",r)+l(" ",u(i," "))},SelectionSet:function(e){return c(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet;return u([l("",t,": ")+n+l("(",u(r,", "),")"),u(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+l(" ",u(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return u(["...",l("on ",t),u(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(l("(",u(r,", "),")")," ")+"on ".concat(n," ").concat(l("",u(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?Object(i.b)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+u(e.values,", ")+"]"},ObjectValue:function(e){return"{"+u(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+l("(",u(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:s((function(e){var t=e.directives,n=e.operationTypes;return u(["schema",u(t," "),c(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s((function(e){return u(["scalar",e.name,u(e.directives," ")]," ")})),ObjectTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["type",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")})),FieldDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(d(n)?l("(\n",f(u(n,"\n")),"\n)"):l("(",u(n,", "),")"))+": "+r+l(" ",u(i," "))})),InputValueDefinition:s((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return u([t+": "+n,l("= ",r),u(i," ")]," ")})),InterfaceTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["interface",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")})),UnionTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.types;return u(["union",t,u(n," "),r&&0!==r.length?"= "+u(r," | "):""]," ")})),EnumTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.values;return u(["enum",t,u(n," "),c(r)]," ")})),EnumValueDefinition:s((function(e){return u([e.name,u(e.directives," ")]," ")})),InputObjectTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.fields;return u(["input",t,u(n," "),c(r)]," ")})),DirectiveDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(d(n)?l("(\n",f(u(n,"\n")),"\n)"):l("(",u(n,", "),")"))+(r?" repeatable":"")+" on "+u(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return u(["extend schema",u(t," "),c(n)]," ")},ScalarTypeExtension:function(e){return u(["extend scalar",e.name,u(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["extend type",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["extend interface",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return u(["extend union",t,u(n," "),r&&0!==r.length?"= "+u(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return u(["extend enum",t,u(n," "),c(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return u(["extend input",t,u(n," "),c(r)]," ")}};function s(e){return function(t){return u([t.description,e(t)],"\n")}}function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function c(e){return e&&0!==e.length?"{\n"+f(u(e,"\n"))+"\n}":""}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t?e+t+n:""}function f(e){return e&&" "+e.replace(/\n/g,"\n ")}function p(e){return-1!==e.indexOf("\n")}function d(e){return e&&e.some(p)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return c}));var r=n(61),i=n.n(r);function o(){for(var e=new i.a,t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:21,t="",n=crypto.getRandomValues(new Uint8Array(e));e--;){var r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};function s(e){return e&&e.length>0?"".concat(e,"|").concat(a()):a()}function u(e){return"OperationDefinition"===e.kind}function c(e,t){if(e>t)throw new Error("'start' must be smaller than 'end'.");return t-e}function l(){return Date.now()}},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(7),i=n(17);function o(e){var t=e.prototype.toJSON;"function"===typeof t||Object(r.a)(0),e.prototype.inspect=t,i.a&&(e.prototype[i.a]=t)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(1),i=n(4),o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=void 0,u=Array.isArray(e),l=[e],f=-1,p=[],d=void 0,h=void 0,v=void 0,y=[],m=[],g=e;do{var b=++f===l.length,E=b&&0!==p.length;if(b){if(h=0===m.length?void 0:y[y.length-1],d=v,v=m.pop(),E){if(u)d=d.slice();else{for(var T={},_=0,w=Object.keys(d);_=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(s=l[c],!b(e[s],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function E(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function T(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(n){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,n,r){var i;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(n){t=n}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&m(i,n,"Missing expected exception"+r);var o="string"===typeof r,s=!e&&i&&!n;if((!e&&a.isError(i)&&o&&T(i,n)||s)&&m(i,n,"Got unwanted exception"+r),e&&i&&n&&!T(i,n)||!e&&i)throw i}p.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return v(y(e.actual),128)+" "+e.operator+" "+v(y(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=h(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(p.AssertionError,Error),p.fail=m,p.ok=g,p.equal=function(e,t,n){e!=t&&m(e,t,n,"==",p.equal)},p.notEqual=function(e,t,n){e==t&&m(e,t,n,"!=",p.notEqual)},p.deepEqual=function(e,t,n){b(e,t,!1)||m(e,t,n,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(e,t,n){b(e,t,!0)||m(e,t,n,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(e,t,n){b(e,t,!1)&&m(e,t,n,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function e(t,n,r){b(t,n,!0)&&m(t,n,r,"notDeepStrictEqual",e)},p.strictEqual=function(e,t,n){e!==t&&m(e,t,n,"===",p.strictEqual)},p.notStrictEqual=function(e,t,n){e===t&&m(e,t,n,"!==",p.notStrictEqual)},p.throws=function(e,t,n){_(!0,e,t,n)},p.doesNotThrow=function(e,t,n){_(!1,e,t,n)},p.ifError=function(e){if(e)throw e},p.strict=r((function e(t,n){t||m(t,!0,n,"==",e)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var w=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}).call(this,n(13))},function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f1)for(var n=1;n2?"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))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,a,s;if("string"===typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="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(r," ").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(r," ").concat(o(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(23),o=n(28);n(12)(c,i);for(var a=r(o.prototype),s=0;s=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(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 r=!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 B(e).length;default:if(r)return V(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!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 x(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return N(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,p=0;pi&&(r=i):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function N(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128===(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){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===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return T(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function P(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return o||P(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function C(e,t,n,r,o){return o||P(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||D(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||D(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||D(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||D(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||D(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||D(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||D(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||D(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||j(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||j(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||j(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||j(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):L(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||j(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):L(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}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,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}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||j(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||j(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||j(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):L(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||j(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):L(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return C(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return C(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=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 B(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function G(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(13))},function(e,t,n){"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t=null,n=1;n0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")}function i(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}))},function(e,t,n){"use strict";var r=n(48);n.o(r,"LogLevel")&&n.d(t,"LogLevel",(function(){return r.LogLevel}));var i=n(49);n.o(i,"LogLevel")&&n.d(t,"LogLevel",(function(){return i.LogLevel}));var o=n(50);n.o(o,"LogLevel")&&n.d(t,"LogLevel",(function(){return o.LogLevel}));var a=n(51);n.o(a,"LogLevel")&&n.d(t,"LogLevel",(function(){return a.LogLevel}));var s=n(52);n.o(s,"LogLevel")&&n.d(t,"LogLevel",(function(){return s.LogLevel}));var u=n(53);n.o(u,"LogLevel")&&n.d(t,"LogLevel",(function(){return u.LogLevel}));var c=n(54);n.d(t,"LogLevel",(function(){return c.a}));n(55),n(56),n(57),n(58),n(59),n(60)},function(e,t,n){var r=n(18),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";var r=n(15).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"===typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i0)if("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)a.endEmitted?_(e,new T):I(e,a,t,!0);else if(a.ended)_(e,new b);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?I(e,a,t,!1):D(e,a)):I(e,a,t,!1)}else r||(a.reading=!1,D(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(A,e))}function A(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,F(e)}function D(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(j,e,t))}function j(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L(e){c("readable nexttick read 0"),e.read(0)}function P(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function C(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function M(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function V(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):x(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e0?C(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},N.prototype._read=function(e){_(this,new E("_read()"))},N.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:y;function s(t,r){c("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",h),e.removeListener("finish",v),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",p),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){c("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",s);var l=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,F(e))}}(n);e.on("drain",l);var f=!1;function p(t){c("ondata");var r=e.write(t);c("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==V(i.pipes,e))&&!f&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function d(t){c("onerror",t),y(),e.removeListener("error",d),0===o(e,"error")&&_(e,t)}function h(){e.removeListener("finish",v),y()}function v(){c("onfinish"),e.removeListener("close",h),y()}function y(){c("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",h),e.once("finish",v),e.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),e},N.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?x(this):i.reading||r.nextTick(L,this))),n},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(R,this),n},N.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(R,this),t},N.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(P,e,t))}(this,e)),e.paused=!1,this},N.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},N.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&void 0!==i)&&((n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause())))})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o0&&a.length>i&&!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 p(){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 d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)o(u,this,t);else{var c=u.length,l=y(u,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){e.exports=n(24).EventEmitter},function(e,t,n){"use strict";(function(t){function n(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!o&&e?a._writableState?a._writableState.errorEmitted?t.nextTick(r,a):(a._writableState.errorEmitted=!0,t.nextTick(n,a,e)):t.nextTick(n,a,e):o?(t.nextTick(r,a),o(e)):t.nextTick(r,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,n(14))},function(e,t,n){"use strict";var r=n(15).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},function(e,t,n){"use strict";(function(t,r){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=N,N.WritableState=O;var a={deprecate:n(74)},s=n(25),u=n(18).Buffer,c=t.Uint8Array||function(){};var l,f=n(26),p=n(27).getHighWaterMark,d=n(15).codes,h=d.ERR_INVALID_ARG_TYPE,v=d.ERR_METHOD_NOT_IMPLEMENTED,y=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,E=d.ERR_STREAM_WRITE_AFTER_END,T=d.ERR_UNKNOWN_ENCODING,_=f.errorOrDestroy;function w(){}function O(e,t,a){o=o||n(16),e=e||{},"boolean"!==typeof a&&(a=t instanceof o),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!==typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(D,e,t),e._writableState.errorEmitted=!0,_(e,i)):(o(i),e._writableState.errorEmitted=!0,_(e,i),D(e,t))}(e,n,i,t,o);else{var a=x(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||k(e,n),i?r.nextTick(I,e,n,a,o):I(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function N(e){var t=this instanceof(o=o||n(16));if(!t&&!l.call(N,this))return new N(e);this._writableState=new O(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),s.call(this)}function S(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),D(e,t)}function k(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,u=!0;n;)o[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;o.allBuffers=u,S(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(S(e,t,!1,t.objectMode?1:c.length,c,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function A(e,t){e._final((function(n){t.pendingcb--,n&&_(e,n),t.prefinished=!0,e.emit("prefinish"),D(e,t)}))}function D(e,t){var n=x(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(A,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}n(12)(N,s),O.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(O.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===N&&(e&&e._writableState instanceof O)}})):l=function(e){return e instanceof this},N.prototype.pipe=function(){_(this,new m)},N.prototype.write=function(e,t,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,u.isBuffer(i)||i instanceof c);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"===typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!==typeof n&&(n=w),o.ending?function(e,t){var n=new E;_(e,n),r.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var o;return null===n?o=new b:"string"===typeof n||t.objectMode||(o=new h("chunk",["string","Buffer"],n)),!o||(_(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=u.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length-1))throw new T(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),N.prototype._write=function(e,t,n){n(new v("_write()"))},N.prototype._writev=null,N.prototype.end=function(e,t,n){var i=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,D(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),N.prototype.destroy=f.destroy,N.prototype._undestroy=f.undestroy,N.prototype._destroy=function(e,t){t(e)}}).call(this,n(13),n(14))},function(e,t,n){"use strict";var r=n(21).Buffer,i=r.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&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=p,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.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 r=n.charCodeAt(n.length-1);if(r>=55296&&r<=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 c(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 l(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 f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(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 i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},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";e.exports=l;var r=n(15).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(16);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>32-t}function c(e,t,n,r,i,o,a){return u(e+(t&n|~t&r)+i+o|0,a)+t|0}function l(e,t,n,r,i,o,a){return u(e+(t&r|n&~r)+i+o|0,a)+t|0}function f(e,t,n,r,i,o,a){return u(e+(t^n^r)+i+o|0,a)+t|0}function p(e,t,n,r,i,o,a){return u(e+(n^(t|~r))+i+o|0,a)+t|0}r(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=c(n,r,i,o,e[0],3614090360,7),o=c(o,n,r,i,e[1],3905402710,12),i=c(i,o,n,r,e[2],606105819,17),r=c(r,i,o,n,e[3],3250441966,22),n=c(n,r,i,o,e[4],4118548399,7),o=c(o,n,r,i,e[5],1200080426,12),i=c(i,o,n,r,e[6],2821735955,17),r=c(r,i,o,n,e[7],4249261313,22),n=c(n,r,i,o,e[8],1770035416,7),o=c(o,n,r,i,e[9],2336552879,12),i=c(i,o,n,r,e[10],4294925233,17),r=c(r,i,o,n,e[11],2304563134,22),n=c(n,r,i,o,e[12],1804603682,7),o=c(o,n,r,i,e[13],4254626195,12),i=c(i,o,n,r,e[14],2792965006,17),n=l(n,r=c(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=l(o,n,r,i,e[6],3225465664,9),i=l(i,o,n,r,e[11],643717713,14),r=l(r,i,o,n,e[0],3921069994,20),n=l(n,r,i,o,e[5],3593408605,5),o=l(o,n,r,i,e[10],38016083,9),i=l(i,o,n,r,e[15],3634488961,14),r=l(r,i,o,n,e[4],3889429448,20),n=l(n,r,i,o,e[9],568446438,5),o=l(o,n,r,i,e[14],3275163606,9),i=l(i,o,n,r,e[3],4107603335,14),r=l(r,i,o,n,e[8],1163531501,20),n=l(n,r,i,o,e[13],2850285829,5),o=l(o,n,r,i,e[2],4243563512,9),i=l(i,o,n,r,e[7],1735328473,14),n=f(n,r=l(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=f(o,n,r,i,e[8],2272392833,11),i=f(i,o,n,r,e[11],1839030562,16),r=f(r,i,o,n,e[14],4259657740,23),n=f(n,r,i,o,e[1],2763975236,4),o=f(o,n,r,i,e[4],1272893353,11),i=f(i,o,n,r,e[7],4139469664,16),r=f(r,i,o,n,e[10],3200236656,23),n=f(n,r,i,o,e[13],681279174,4),o=f(o,n,r,i,e[0],3936430074,11),i=f(i,o,n,r,e[3],3572445317,16),r=f(r,i,o,n,e[6],76029189,23),n=f(n,r,i,o,e[9],3654602809,4),o=f(o,n,r,i,e[12],3873151461,11),i=f(i,o,n,r,e[15],530742520,16),n=p(n,r=f(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=p(o,n,r,i,e[7],1126891415,10),i=p(i,o,n,r,e[14],2878612391,15),r=p(r,i,o,n,e[5],4237533241,21),n=p(n,r,i,o,e[12],1700485571,6),o=p(o,n,r,i,e[3],2399980690,10),i=p(i,o,n,r,e[10],4293915773,15),r=p(r,i,o,n,e[1],2240044497,21),n=p(n,r,i,o,e[8],1873313359,6),o=p(o,n,r,i,e[15],4264355552,10),i=p(i,o,n,r,e[6],2734768916,15),r=p(r,i,o,n,e[13],1309151649,21),n=p(n,r,i,o,e[4],4149444226,6),o=p(o,n,r,i,e[11],3174756917,10),i=p(i,o,n,r,e[2],718787259,15),r=p(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,n){"use strict";(function(e){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var s=i.shift();s&&s.applyMiddleware.apply(o,[e,t])}else n(e)}()}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!==typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,n){if("function"===typeof e)try{return t(e.call(null))}catch(r){return n(r)}t(e)}))}},e.prototype.executeOperation=function(e,t){var n=this;null===this.client&&this.connect();var r=this.generateOperationId();return this.operations[r]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){n.checkOperationOptions(e,t),n.operations[r]&&(n.operations[r]={options:e,handler:t},n.sendMessage(r,g.default.GQL_START,e))})).catch((function(e){n.unsubscribe(r),t(n.formatErrors(e))})),r},e.prototype.getObserver=function(e,t,n){return"function"===typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return n&&n()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new c({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var n=e.query,r=e.variables,i=e.operationName;if(!n)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!f.default(n)&&!h.getOperationAST(n,i)||i&&!f.default(i)||r&&!p.default(r))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,n){return{id:e,type:t,payload:n&&n.query?r(r({},n),{query:"string"===typeof n.query?n.query:d.print(n.query)}):n}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,n){this.sendMessageRaw(this.buildMessage(e,t,n))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(n){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,g.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(t,void 0,void 0,(function(){var e,t;return o(this,(function(n){switch(n.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=n.sent(),this.sendMessage(void 0,g.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=n.sent(),this.sendMessage(void 0,g.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){var n=e.data;t.processReceivedData(n)}},e.prototype.processReceivedData=function(e){var t,n;try{n=(t=JSON.parse(e)).id}catch(s){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[g.default.GQL_DATA,g.default.GQL_COMPLETE,g.default.GQL_ERROR].indexOf(t.type)||this.operations[n])switch(t.type){case g.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case g.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case g.default.GQL_COMPLETE:var i=this.operations[n].handler;delete this.operations[n],i.call(this,null,null);break;case g.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(t.payload),null),delete this.operations[n];break;case g.default.GQL_DATA:var o=t.payload.errors?r(r({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[n].handler(null,o);break;case g.default.GQL_CONNECTION_KEEP_ALIVE:var a="undefined"===typeof this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,g.default.GQL_STOP,void 0))},e}();t.SubscriptionClient=b}).call(this,n(13))},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";var r=n(21).Buffer,i=n(70).Transform;function o(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(12)(o,i),o.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(i){r=i}n(r)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(n){t=n}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!==typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,f=n?i-1:0,p=n?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=h,a/=256,c-=8);e[n+d-h]|=128*v}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(28),t.Duplex=n(16),t.Transform=n(30),t.PassThrough=n(77),t.finished=n(22),t.pipeline=n(78)},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,n,r,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=i,r=s,a.prototype.copy.call(t,n,r),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t0,(function(e){r||(r=e),e&&a.forEach(c),o||(a.forEach(c),i(r))}))}));return t.reduce(l)}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(S){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new w(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return N()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(S){return{type:"throw",arg:S}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};h[i]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==t&&n.call(y,i)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var u=c(e[i],e,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"===typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,s,u=a(e),c=1;c=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),u=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&w(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return m(i)||(i=l(e,i,r)),i}var o=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(m(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),_(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(w(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(T(n))return e.stylize(Date.prototype.toString.call(n),"date");if(_(n))return f(n)}var c,E="",O=!1,N=["{","}"];(d(n)&&(O=!0,N=["[","]"]),w(n))&&(E=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(E=" "+RegExp.prototype.toString.call(n)),T(n)&&(E=" "+Date.prototype.toUTCString.call(n)),_(n)&&(E=" "+f(n)),0!==a.length||O&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=O?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,E,N)):N[0]+E+N[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),k(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=v(n)?l(e,u.value,null):l(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),g(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e){return Array.isArray(e)}function h(e){return"boolean"===typeof e}function v(e){return null===e}function y(e){return"number"===typeof e}function m(e){return"string"===typeof e}function g(e){return void 0===e}function b(e){return E(e)&&"[object RegExp]"===O(e)}function E(e){return"object"===typeof e&&null!==e}function T(e){return E(e)&&"[object Date]"===O(e)}function _(e){return E(e)&&("[object Error]"===O(e)||e instanceof Error)}function w(e){return"function"===typeof e}function O(e){return Object.prototype.toString.call(e)}function N(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(g(o)&&(o=Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=h,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=m,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=g,t.isRegExp=b,t.isObject=E,t.isDate=T,t.isError=_,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(82);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var e=new Date,t=[N(e.getHours()),N(e.getMinutes()),N(e.getSeconds())].join(":");return[e.getDate(),S[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",I(),t.format.apply(t,arguments))},t.inherits=n(83),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var x="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(x&&e[x]){var t;if("function"!==typeof(t=e[x]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),u=i?i+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function u(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);re.length)&&(t=e.length);for(var n=0,r=new Array(t);nt)){for(var u=this._rows,c=0;c<=s;c++)u[0][c]=c;for(var l=1;l<=a;l++){for(var f=u[(l-1)%3],p=u[l%3],d=p[0]=l,h=1;h<=s;h++){var v=r[l-1]===i[h-1]?0:1,y=Math.min(f[h]+1,p[h-1]+1,f[h-1]+v);if(l>1&&h>1&&r[l-1]===i[h-2]&&r[l-2]===i[h-1]){var m=u[(l-2)%3][h-2];y=Math.min(y,m+1)}yt)return}var g=u[a%3][s];return g<=t?g:void 0}},e}();function Be(e){for(var t=e.length,n=new Array(t),r=0;r120){for(var p=Math.floor(u/80),d=u%80,h=[],v=0;v0?e:void 0}_t.prototype.toString=function(){return"["+String(this.ofType)+"]"},_t.prototype.toJSON=function(){return this.toString()},Object.defineProperty(_t.prototype,Se,{get:function(){return"GraphQLList"}}),Object(Me.a)(_t),wt.prototype.toString=function(){return String(this.ofType)+"!"},wt.prototype.toJSON=function(){return this.toString()},Object.defineProperty(wt.prototype,Se,{get:function(){return"GraphQLNonNull"}}),Object(Me.a)(wt);var Dt=function(){function e(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:Ce;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:Ce,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e){return i(function e(t,n){switch(t.kind){case rt.a.NULL:return null;case rt.a.INT:return parseInt(t.value,10);case rt.a.FLOAT:return parseFloat(t.value);case rt.a.STRING:case rt.a.ENUM:case rt.a.BOOLEAN:return t.value;case rt.a.LIST:return t.values.map((function(t){return e(t,n)}));case rt.a.OBJECT:return je(t.fields,(function(e){return e.name.value}),(function(t){return e(t.value,n)}));case rt.a.VARIABLE:return null===n||void 0===n?void 0:n[t.name.value]}Object(ot.a)(0,"Unexpected value node: "+Object(Ie.a)(t))}(e))},this.extensions=e.extensions&&Ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=At(e.extensionASTNodes),"string"===typeof e.name||De(0,"Must provide name."),null==e.specifiedByUrl||"string"===typeof e.specifiedByUrl||De(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(Object(Ie.a)(e.specifiedByUrl),".")),null==e.serialize||"function"===typeof e.serialize||De(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||De(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},st(e,[{key:Se,get:function(){return"GraphQLScalarType"}}]),e}();Object(Me.a)(Dt);var jt=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&Ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=At(e.extensionASTNodes),this._fields=Lt.bind(void 0,e),this._interfaces=Rt.bind(void 0,e),"string"===typeof e.name||De(0,"Must provide name."),null==e.isTypeOf||"function"===typeof e.isTypeOf||De(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(Object(Ie.a)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ft(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},st(e,[{key:Se,get:function(){return"GraphQLObjectType"}}]),e}();function Rt(e){var t,n=null!==(t=xt(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||De(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function Lt(e){var t=xt(e.fields);return Pt(t)||De(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),xe(t,(function(t,n){var r;Pt(t)||De(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||De(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"===typeof t.resolve||De(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(Object(Ie.a)(t.resolve),"."));var i=null!==(r=t.args)&&void 0!==r?r:{};Pt(i)||De(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var o=Oe(i).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,extensions:n.extensions&&Ae(n.extensions),astNode:n.astNode}}));return{name:n,description:t.description,type:t.type,args:o,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&Ae(t.extensions),astNode:t.astNode}}))}function Pt(e){return Fe(e)&&!Array.isArray(e)}function Ft(e){return xe(e,(function(e){return{description:e.description,type:e.type,args:Ct(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function Ct(e){return je(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}))}function Mt(e){return yt(e.type)&&void 0===e.defaultValue}Object(Me.a)(jt);var Ut=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=At(e.extensionASTNodes),this._fields=Lt.bind(void 0,e),this._interfaces=Rt.bind(void 0,e),"string"===typeof e.name||De(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||De(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(Ie.a)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ft(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},st(e,[{key:Se,get:function(){return"GraphQLInterfaceType"}}]),e}();Object(Me.a)(Ut);var Vt=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=At(e.extensionASTNodes),this._types=Bt.bind(void 0,e),"string"===typeof e.name||De(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||De(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(Ie.a)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"===typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},st(e,[{key:Se,get:function(){return"GraphQLUnionType"}}]),e}();function Bt(e){var t=xt(e.types);return Array.isArray(t)||De(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}Object(Me.a)(Vt);var Gt=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=At(e.extensionASTNodes),this._values=(t=this.name,Pt(n=e.values)||De(0,"".concat(t," values must be an object with value names as keys.")),Oe(n).map((function(e){var n=e[0],r=e[1];return Pt(r)||De(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(Object(Ie.a)(r),".")),!("isDeprecated"in r)||De(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&Ae(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=ke(this._values,(function(e){return e.name})),"string"===typeof e.name||De(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new nt('Enum "'.concat(this.name,'" cannot represent value: ').concat(Object(Ie.a)(e)));return t.name},t.parseValue=function(e){if("string"!==typeof e){var t=Object(Ie.a)(e);throw new nt('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+Yt(this,t))}var n=this.getValue(e);if(null==n)throw new nt('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+Yt(this,e));return n.value},t.parseLiteral=function(e,t){if(e.kind!==rt.a.ENUM){var n=Object(it.print)(e);throw new nt('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+Yt(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=Object(it.print)(e);throw new nt('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+Yt(this,i),e)}return r.value},t.toConfig=function(){var e,t=je(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},st(e,[{key:Se,get:function(){return"GraphQLEnumType"}}]),e}();function Yt(e,t){return Le("the enum value",Ue(t,e.getValues().map((function(e){return e.name}))))}Object(Me.a)(Gt);var qt=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=At(e.extensionASTNodes),this._fields=Qt.bind(void 0,e),"string"===typeof e.name||De(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e,t=xe(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},st(e,[{key:Se,get:function(){return"GraphQLInputObjectType"}}]),e}();function Qt(e){var t=xt(e.fields);return Pt(t)||De(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),xe(t,(function(t,n){return!("resolve"in t)||De(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&Ae(t.extensions),astNode:t.astNode}}))}Object(Me.a)(qt);var Jt=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},zt=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),Ht=Number.isFinite||function(e){return"number"===typeof e&&isFinite(e)},Kt=Array.from||function(e,t,n){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r=e[Ne];if("function"===typeof r){for(var i,o=r.call(e),a=[],s=0;!(i=o.next()).done;++s)if(a.push(t.call(n,i.value,s)),s>9999999)throw new TypeError("Near-infinite iteration.");return a}var u=e.length;if("number"===typeof u&&u>=0&&u%1===0){for(var c=[],l=0;l2147483647||n<-2147483648)throw new nt("Int cannot represent non 32-bit signed integer value: "+Object(Ie.a)(t));return n},parseValue:function(e){if(!Xt(e))throw new nt("Int cannot represent non-integer value: ".concat(Object(Ie.a)(e)));if(e>2147483647||e<-2147483648)throw new nt("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(e){if(e.kind!==rt.a.INT)throw new nt("Int cannot represent non-integer value: ".concat(Object(it.print)(e)),e);var t=parseInt(e.value,10);if(t>2147483647||t<-2147483648)throw new nt("Int cannot represent non 32-bit signed integer value: ".concat(e.value),e);return t}});var Zt=new Dt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){var t=en(e);if("boolean"===typeof t)return t?1:0;var n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),!Ht(n))throw new nt("Float cannot represent non numeric value: ".concat(Object(Ie.a)(t)));return n},parseValue:function(e){if(!Ht(e))throw new nt("Float cannot represent non numeric value: ".concat(Object(Ie.a)(e)));return e},parseLiteral:function(e){if(e.kind!==rt.a.FLOAT&&e.kind!==rt.a.INT)throw new nt("Float cannot represent non numeric value: ".concat(Object(it.print)(e)),e);return parseFloat(e.value)}});function en(e){if(Fe(e)){if("function"===typeof e.valueOf){var t=e.valueOf();if(!Fe(t))return t}if("function"===typeof e.toJSON)return e.toJSON()}return e}var tn=new Dt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=en(e);if("string"===typeof t)return t;if("boolean"===typeof t)return t?"true":"false";if(Ht(t))return t.toString();throw new nt("String cannot represent value: ".concat(Object(Ie.a)(e)))},parseValue:function(e){if("string"!==typeof e)throw new nt("String cannot represent a non string value: ".concat(Object(Ie.a)(e)));return e},parseLiteral:function(e){if(e.kind!==rt.a.STRING)throw new nt("String cannot represent a non string value: ".concat(Object(it.print)(e)),e);return e.value}});var nn=new Dt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var t=en(e);if("boolean"===typeof t)return t;if(Ht(t))return 0!==t;throw new nt("Boolean cannot represent a non boolean value: ".concat(Object(Ie.a)(t)))},parseValue:function(e){if("boolean"!==typeof e)throw new nt("Boolean cannot represent a non boolean value: ".concat(Object(Ie.a)(e)));return e},parseLiteral:function(e){if(e.kind!==rt.a.BOOLEAN)throw new nt("Boolean cannot represent a non boolean value: ".concat(Object(it.print)(e)),e);return e.value}});var rn=new Dt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=en(e);if("string"===typeof t)return t;if(Xt(t))return String(t);throw new nt("ID cannot represent value: ".concat(Object(Ie.a)(e)))},parseValue:function(e){if("string"===typeof e)return e;if(Xt(e))return e.toString();throw new nt("ID cannot represent value: ".concat(Object(Ie.a)(e)))},parseLiteral:function(e){if(e.kind!==rt.a.STRING&&e.kind!==rt.a.INT)throw new nt("ID cannot represent a non-string and non-integer value: "+Object(it.print)(e),e);return e.value}}),on=Object.freeze([tn,$t,Zt,nn,rn]);function an(e,t){if(yt(t)){var n=an(e,t.ofType);return(null===n||void 0===n?void 0:n.kind)===rt.a.NULL?null:n}if(null===e)return{kind:rt.a.NULL};if(void 0===e)return null;if(vt(t)){var r=t.ofType;if(function(e){if(null==e||"object"!==Wt(e))return!1;var t=e.length;return"number"===typeof t&&t>=0&&t%1===0||"function"===typeof e[Ne]}(e)){for(var i=[],o=0,a=Kt(e);o=0;i--)t(n[i])}function Jn(e){for(var t=Object.keys(e),n=t.length,r=new Array(n),i=0;i1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+s))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function Xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(i.arguments=n),i},e.is=function(e){var t=e;return xr.defined(t)&&xr.string(t.title)&&xr.string(t.command)}}(_n||(_n={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return xr.objectLiteral(t)&&xr.string(t.newText)&&cn.is(t.range)}}(wn||(wn={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return xr.defined(t)&&tr.is(t.textDocument)&&Array.isArray(t.edits)}}(On||(On={})),function(e){e.create=function(e,t){var n={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"create"===t.kind&&xr.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||xr.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||xr.boolean(t.options.ignoreIfExists)))}}(Nn||(Nn={})),function(e){e.create=function(e,t,n){var r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),r},e.is=function(e){var t=e;return t&&"rename"===t.kind&&xr.string(t.oldUri)&&xr.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||xr.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||xr.boolean(t.options.ignoreIfExists)))}}(Sn||(Sn={})),function(e){e.create=function(e,t){var n={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"delete"===t.kind&&xr.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||xr.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||xr.boolean(t.options.ignoreIfNotExists)))}}(In||(In={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return xr.string(e.kind)?Nn.is(e)||Sn.is(e)||In.is(e):On.is(e)})))}}(kn||(kn={}));var er,tr,nr,rr,ir,or,ar,sr,ur,cr,lr,fr,pr,dr,hr,vr,yr,mr,gr,br,Er,Tr,_r,wr,Or,Nr,Sr,Ir=function(){function e(e){this.edits=e}return e.prototype.insert=function(e,t){this.edits.push(wn.insert(e,t))},e.prototype.replace=function(e,t){this.edits.push(wn.replace(e,t))},e.prototype.delete=function(e){this.edits.push(wn.del(e))},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach((function(e){if(On.is(e)){var n=new Ir(e.edits);t._textEditChanges[e.textDocument.uri]=n}})):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new Ir(e.changes[n]);t._textEditChanges[n]=r})))}Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(tr.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t=e;if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new Ir(i),this._textEditChanges[t.uri]=r}return r}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new Ir(i),this._textEditChanges[e]=r}return r},e.prototype.createFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(Nn.create(e,t))},e.prototype.renameFile=function(e,t,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(Sn.create(e,t,n))},e.prototype.deleteFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(In.create(e,t))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return xr.defined(t)&&xr.string(t.uri)}}(er||(er={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return xr.defined(t)&&xr.string(t.uri)&&(null===t.version||xr.number(t.version))}}(tr||(tr={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return xr.defined(t)&&xr.string(t.uri)&&xr.string(t.languageId)&&xr.number(t.version)&&xr.string(t.text)}}(nr||(nr={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(rr||(rr={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(rr||(rr={})),function(e){e.is=function(e){var t=e;return xr.objectLiteral(e)&&rr.is(t.kind)&&xr.string(t.value)}}(ir||(ir={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(or||(or={})),function(e){e.PlainText=1,e.Snippet=2}(ar||(ar={})),function(e){e.Deprecated=1}(sr||(sr={})),function(e){e.create=function(e){return{label:e}}}(ur||(ur={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(cr||(cr={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return xr.string(t)||xr.objectLiteral(t)&&xr.string(t.language)&&xr.string(t.value)}}(lr||(lr={})),function(e){e.is=function(e){var t=e;return!!t&&xr.objectLiteral(t)&&(ir.is(t.contents)||lr.is(t.contents)||xr.typedArray(t.contents,lr.is))&&(void 0===e.range||cn.is(e.range))}}(fr||(fr={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(pr||(pr={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;o--){var a=r[o],s=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=i))throw new Error("Overlapping edit");n=n.substring(0,s)+a.newText+n.substring(u,n.length),i=s}return n}}(kr||(kr={}));var xr,Ar=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return sn.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return sn.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+11&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||De(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||De(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,r;return t=e,(n=[{key:Se,get:function(){return"Source"}}])&&Lr(t.prototype,n),r&&Lr(t,r),e}(),Fr=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),Cr=n(19),Mr=function(){function e(e){var t=new Rr.b(Fr.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==Fr.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=Vr(this,e)}while(e.kind===Fr.COMMENT);return e},e}();function Ur(e){return isNaN(e)?Fr.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Vr(e,t){var n=e.source,r=n.body,i=r.length,o=function(e,t,n){var r=e.length,i=t;for(;i=i)return new Rr.b(Fr.EOF,i,i,a,s,t);var u=r.charCodeAt(o);switch(u){case 33:return new Rr.b(Fr.BANG,o,o+1,a,s,t);case 35:return function(e,t,n,r,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new Rr.b(Fr.COMMENT,t,s,n,r,i,a.slice(t+1,s))}(n,o,a,s,t);case 36:return new Rr.b(Fr.DOLLAR,o,o+1,a,s,t);case 38:return new Rr.b(Fr.AMP,o,o+1,a,s,t);case 40:return new Rr.b(Fr.PAREN_L,o,o+1,a,s,t);case 41:return new Rr.b(Fr.PAREN_R,o,o+1,a,s,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new Rr.b(Fr.SPREAD,o,o+3,a,s,t);break;case 58:return new Rr.b(Fr.COLON,o,o+1,a,s,t);case 61:return new Rr.b(Fr.EQUALS,o,o+1,a,s,t);case 64:return new Rr.b(Fr.AT,o,o+1,a,s,t);case 91:return new Rr.b(Fr.BRACKET_L,o,o+1,a,s,t);case 93:return new Rr.b(Fr.BRACKET_R,o,o+1,a,s,t);case 123:return new Rr.b(Fr.BRACE_L,o,o+1,a,s,t);case 124:return new Rr.b(Fr.PIPE,o,o+1,a,s,t);case 125:return new Rr.b(Fr.BRACE_R,o,o+1,a,s,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){var o=e.body,a=o.length,s=t+1,u=0;for(;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new Rr.b(Fr.NAME,t,s,n,r,i,o.slice(t,s))}(n,o,a,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,r,i,o){var a=e.body,s=n,u=t,c=!1;45===s&&(s=a.charCodeAt(++u));if(48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw jr(e,u,"Invalid number, unexpected digit after 0: ".concat(Ur(s),"."))}else u=Br(e,u,s),s=a.charCodeAt(u);46===s&&(c=!0,s=a.charCodeAt(++u),u=Br(e,u,s),s=a.charCodeAt(u));69!==s&&101!==s||(c=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=Br(e,u,s),s=a.charCodeAt(u));if(46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw jr(e,u,"Invalid number, expected digit but got: ".concat(Ur(s),"."));return new Rr.b(c?Fr.FLOAT:Fr.INT,t,u,r,i,o,a.slice(t,u))}(n,o,u,a,s,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?function(e,t,n,r,i,o){var a=e.body,s=t+3,u=s,c=0,l="";for(;s=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw jr(e,i,"Invalid number, expected digit but got: ".concat(Ur(o),"."))}function Gr(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Yr(e,t){return new qr(e,t).parseDocument()}var qr=function(){function e(e,t){var n="string"===typeof e?new Pr(e):e;n instanceof Pr||De(0,"Must provide Source. Received: ".concat(Object(Ie.a)(n),".")),this._lexer=new Mr(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(Fr.NAME);return{kind:rt.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:rt.a.DOCUMENT,definitions:this.many(Fr.SOF,this.parseDefinition,Fr.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(Fr.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Fr.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(Fr.BRACE_L))return{kind:rt.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(Fr.NAME)&&(t=this.parseName()),{kind:rt.a.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(Fr.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(Fr.PAREN_L,this.parseVariableDefinition,Fr.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:rt.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Fr.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Fr.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(Fr.DOLLAR),{kind:rt.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:rt.a.SELECTION_SET,selections:this.many(Fr.BRACE_L,this.parseSelection,Fr.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(Fr.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(Fr.COLON)?(e=r,t=this.parseName()):t=r,{kind:rt.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Fr.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Fr.PAREN_L,t,Fr.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(Fr.COLON),{kind:rt.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:rt.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(Fr.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(Fr.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(Fr.NAME)?{kind:rt.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:rt.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:rt.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:rt.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case Fr.BRACKET_L:return this.parseList(e);case Fr.BRACE_L:return this.parseObject(e);case Fr.INT:return this._lexer.advance(),{kind:rt.a.INT,value:t.value,loc:this.loc(t)};case Fr.FLOAT:return this._lexer.advance(),{kind:rt.a.FLOAT,value:t.value,loc:this.loc(t)};case Fr.STRING:case Fr.BLOCK_STRING:return this.parseStringLiteral();case Fr.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:rt.a.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:rt.a.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:rt.a.NULL,loc:this.loc(t)};default:return{kind:rt.a.ENUM,value:t.value,loc:this.loc(t)}}case Fr.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:rt.a.STRING,value:e.value,block:e.kind===Fr.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:rt.a.LIST,values:this.any(Fr.BRACKET_L,(function(){return t.parseValueLiteral(e)}),Fr.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:rt.a.OBJECT,fields:this.any(Fr.BRACE_L,(function(){return t.parseObjectField(e)}),Fr.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(Fr.COLON),{kind:rt.a.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(Fr.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(Fr.AT),{kind:rt.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(Fr.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(Fr.BRACKET_R),e={kind:rt.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(Fr.BANG)?{kind:rt.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:rt.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===Fr.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(Fr.STRING)||this.peek(Fr.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(Fr.BRACE_L,this.parseOperationTypeDefinition,Fr.BRACE_R);return{kind:rt.a.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(Fr.COLON);var n=this.parseNamedType();return{kind:rt.a.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:rt.a.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:rt.a.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(Fr.AMP);do{var t;e.push(this.parseNamedType())}while(this.expectOptionalToken(Fr.AMP)||!0===(null===(t=this._options)||void 0===t?void 0:t.allowLegacySDLImplementsInterfaces)&&this.peek(Fr.NAME))}return e},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(Fr.BRACE_L)&&this._lexer.lookahead().kind===Fr.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Fr.BRACE_L,this.parseFieldDefinition,Fr.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(Fr.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:rt.a.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(Fr.PAREN_L,this.parseInputValueDef,Fr.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(Fr.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(Fr.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:rt.a.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:rt.a.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:rt.a.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(Fr.EQUALS)){this.expectOptionalToken(Fr.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(Fr.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:rt.a.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(Fr.BRACE_L,this.parseEnumValueDefinition,Fr.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:rt.a.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:rt.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(Fr.BRACE_L,this.parseInputValueDef,Fr.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===Fr.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(Fr.BRACE_L,this.parseOperationTypeDefinition,Fr.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:rt.a.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:rt.a.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:rt.a.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:rt.a.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:rt.a.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:rt.a.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:rt.a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Fr.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:rt.a.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(Fr.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(Fr.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==zt[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new Rr.a(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw jr(this._lexer.source,t.start,"Expected ".concat(Jr(e),", found ").concat(Qr(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==Fr.NAME||t.value!==e)throw jr(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(Qr(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===Fr.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return jr(this._lexer.source,t.start,"Unexpected ".concat(Qr(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},e}();function Qr(e){var t=e.value;return Jr(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Jr(e){return function(e){return e===Fr.BANG||e===Fr.DOLLAR||e===Fr.AMP||e===Fr.PAREN_L||e===Fr.PAREN_R||e===Fr.SPREAD||e===Fr.COLON||e===Fr.EQUALS||e===Fr.AT||e===Fr.BRACKET_L||e===Fr.BRACKET_R||e===Fr.BRACE_L||e===Fr.PIPE||e===Fr.BRACE_R}(e)?'"'.concat(e,'"'):e}function zr(e,t){return e===t||(yt(e)&&yt(t)||!(!vt(e)||!vt(t)))&&zr(e.ofType,t.ofType)}function Hr(e,t,n){return t===n||(yt(n)?!!yt(t)&&Hr(e,t.ofType,n.ofType):yt(t)?Hr(e,t.ofType,n):vt(n)?!!vt(t)&&Hr(e,t.ofType,n.ofType):!vt(t)&&(Tt(n)&&(ft(t)||lt(t))&&e.isSubType(n,t)))}function Kr(e,t,n){return t===n||(Tt(t)?Tt(n)?e.getPossibleTypes(t).some((function(t){return e.isSubType(n,t)})):e.isSubType(t,n):!!Tt(n)&&e.isSubType(n,t))}function Wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xr(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=null,o=null;if("string"===typeof e){var a=new RegExp(e,r?"i":"g");o=a.test(n._sourceText.substr(n._pos,e.length)),i=e}else e instanceof RegExp&&(i=(o=n._sourceText.slice(n._pos).match(e))&&o[0]);return!(null==o||!("string"===typeof e||o instanceof Array&&n._sourceText.startsWith(o[0],n._pos)))&&(t&&(n._start=n._pos,i&&i.length&&(n._pos+=i.length)),o)},this.backUp=function(e){n._pos-=e},this.column=function(){return n._pos},this.indentation=function(){var e=n._sourceText.match(/\s*/),t=0;if(e&&0===e.length)for(var r=e[0],i=0;r.length>i;)9===r.charCodeAt(i)?t+=2:t++,i++;return t},this.current=function(){return n._sourceText.slice(n._start,n._pos)},this._start=0,this._pos=0,this._sourceText=t}return $r(e,[{key:"_testNextCharacter",value:function(e){var t=this._sourceText.charAt(this._pos);return"string"===typeof e?t===e:e instanceof RegExp?e.test(t):e(t)}}]),e}();function ei(e){return{ofRule:e}}function ti(e,t){return{ofRule:e,isList:!0,separator:t}}function ni(e,t){return{style:t,match:function(t){return t.kind===e}}}function ri(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}var ii,oi=function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||"\xa0"===e},ai={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},si={Document:[ti("Definition")],Definition:function(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return"FragmentDefinition";case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[ui("query"),ei(ci("def")),ei("VariableDefinitions"),ti("Directive"),"SelectionSet"],Mutation:[ui("mutation"),ei(ci("def")),ei("VariableDefinitions"),ti("Directive"),"SelectionSet"],Subscription:[ui("subscription"),ei(ci("def")),ei("VariableDefinitions"),ti("Directive"),"SelectionSet"],VariableDefinitions:[ri("("),ti("VariableDefinition"),ri(")")],VariableDefinition:["Variable",ri(":"),"Type",ei("DefaultValue")],Variable:[ri("$","variable"),ci("variable")],DefaultValue:[ri("="),"Value"],SelectionSet:[ri("{"),ti("Selection"),ri("}")],Selection:function(e,t){return"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[ci("property"),ri(":"),ci("qualifier"),ei("Arguments"),ti("Directive"),ei("SelectionSet")],Field:[ci("property"),ei("Arguments"),ti("Directive"),ei("SelectionSet")],Arguments:[ri("("),ti("Argument"),ri(")")],Argument:[ci("attribute"),ri(":"),"Value"],FragmentSpread:[ri("..."),ci("def"),ti("Directive")],InlineFragment:[ri("..."),ei("TypeCondition"),ti("Directive"),"SelectionSet"],FragmentDefinition:[ui("fragment"),ei(function(e,t){var n=e.match;return e.match=function(e){var r=!1;return n&&(r=n(e)),r&&t.every((function(t){return t.match&&!t.match(e)}))},e}(ci("def"),[ui("on")])),"TypeCondition",ti("Directive"),"SelectionSet"],TypeCondition:[ui("on"),"NamedType"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[ni("Number","number")],StringValue:[ni("String","string")],BooleanValue:[ni("Name","builtin")],NullValue:[ni("Name","keyword")],EnumValue:[ci("string-2")],ListValue:[ri("["),ti("Value"),ri("]")],ObjectValue:[ri("{"),ti("ObjectField"),ri("}")],ObjectField:[ci("attribute"),ri(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NonNullType"},ListType:[ri("["),"Type",ri("]"),ei(ri("!"))],NonNullType:["NamedType",ei(ri("!"))],NamedType:[(ii="atom",{style:ii,match:function(e){return"Name"===e.kind},update:function(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[ri("@","meta"),ci("meta"),ei("Arguments")],SchemaDef:[ui("schema"),ti("Directive"),ri("{"),ti("OperationTypeDef"),ri("}")],OperationTypeDef:[ci("keyword"),ri(":"),ci("atom")],ScalarDef:[ui("scalar"),ci("atom"),ti("Directive")],ObjectTypeDef:[ui("type"),ci("atom"),ei("Implements"),ti("Directive"),ri("{"),ti("FieldDef"),ri("}")],Implements:[ui("implements"),ti("NamedType")],FieldDef:[ci("property"),ei("ArgumentsDef"),ri(":"),"Type",ti("Directive")],ArgumentsDef:[ri("("),ti("InputValueDef"),ri(")")],InputValueDef:[ci("attribute"),ri(":"),"Type",ei("DefaultValue"),ti("Directive")],InterfaceDef:[ui("interface"),ci("atom"),ti("Directive"),ri("{"),ti("FieldDef"),ri("}")],UnionDef:[ui("union"),ci("atom"),ti("Directive"),ri("="),ti("UnionMember",ri("|"))],UnionMember:["NamedType"],EnumDef:[ui("enum"),ci("atom"),ti("Directive"),ri("{"),ti("EnumValueDef"),ri("}")],EnumValueDef:[ci("string-2"),ti("Directive")],InputDef:[ui("input"),ci("atom"),ti("Directive"),ri("{"),ti("InputValueDef"),ri("}")],ExtendDef:[ui("extend"),"ObjectTypeDef"],DirectiveDef:[ui("directive"),ri("@","meta"),ci("meta"),ei("ArgumentsDef"),ui("on"),ti("DirectiveLocation",ri("|"))],DirectiveLocation:[ci("string-2")]};function ui(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function ci(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}function li(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:function(e){return e.eatWhile(oi)},lexRules:ai,parseRules:si,editorConfig:{}};return{startState:function(){var t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return hi(e.parseRules,t,"Document"),t},token:function(t,n){return fi(t,n,e)}}}function fi(e,t,n){var r=n.lexRules,i=n.parseRules,o=n.eatWhitespace,a=n.editorConfig;if(t.rule&&0===t.rule.length?vi(t):t.needsAdvance&&(t.needsAdvance=!1,yi(t,!0)),e.sol()){var s=a&&a.tabSize||2;t.indentLevel=Math.floor(e.indentation()/s)}if(o(e))return"ws";var u=function(e,t){for(var n=Object.keys(e),r=0;r0&&l[l.length-1]=t.character)return n=a,r=Object.assign({},o),i=e.current(),"BREAK"}));return{start:o.start,end:o.end,string:i||o.string,state:r||o.state,style:n||o.style}}function _i(e,t){for(var n=e.split("\n"),r=li(),i=r.startState(),o="",a=new Zr(""),s=0;s=e.character:r.start.line<=e.line&&r.end.line>=e.line},this.start=t,this.end=n}return $r(e,[{key:"setStart",value:function(e,t){this.start=new Ni(e,t)}},{key:"setEnd",value:function(e,t){this.end=new Ni(e,t)}}]),e}(),Ni=function(){function e(t,n){var r=this;Wr(this,e),this.lessThanOrEqualTo=function(e){return r.line0)return[[t,e.map((function(e){return e[0]}))],e.reduce((function(e,t){var n=t[1];return e.concat(n)}),[n]),e.reduce((function(e,t){var n=t[2];return e.concat(n)}),[r])]}(function(e,t,n,r,i,o,a,s){var u=[],c=fo(e,t,i,o),l=c[0],f=c[1],p=fo(e,t,a,s),d=p[0],h=p[1];if(co(e,u,t,n,r,l,d),0!==h.length)for(var v=0;v1&&e.reportError(new nt("This anonymous operation must be the only defined operation.",n))}}},function(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new nt(t.name?'Subscription "'.concat(t.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}},ji,function(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var r=Li(e.getSchema(),n);if(r&&!Et(r)){var i=Object(it.print)(n);e.reportError(new nt('Fragment cannot condition on non composite type "'.concat(i,'".'),n))}}},FragmentDefinition:function(t){var n=Li(e.getSchema(),t.typeCondition);if(n&&!Et(n)){var r=Object(it.print)(t.typeCondition);e.reportError(new nt('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(r,'".'),t.typeCondition))}}}},function(e){return{VariableDefinition:function(t){var n=Li(e.getSchema(),t.type);if(n&&!mt(n)){var r=t.variable.name.value,i=Object(it.print)(t.type);e.reportError(new nt('Variable "$'.concat(r,'" cannot be non-input type "').concat(i,'".'),t.type))}}}},function(e){return{Field:function(t){var n=e.getType(),r=t.selectionSet;if(n)if(bt(kt(n))){if(r){var i=t.name.value,o=Object(Ie.a)(n);e.reportError(new nt('Field "'.concat(i,'" must not have a selection since type "').concat(o,'" has no subfields.'),r))}}else if(!r){var a=t.name.value,s=Object(Ie.a)(n);e.reportError(new nt('Field "'.concat(a,'" of type "').concat(s,'" must have a selection of subfields. Did you mean "').concat(a,' { ... }"?'),t))}}}},function(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var r=e.getSchema(),i=t.name.value,o=Le("to use an inline fragment on",function(e,t,n){if(!Tt(t))return[];for(var r=new Set,i=Object.create(null),o=0,a=e.getPossibleTypes(t);o1)for(var l=0;l0&&e.reportError(new nt("Must provide only one schema definition.",t)),++a)}}},function(e){var t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){for(var i,o=null!==(i=t.operationTypes)&&void 0!==i?i:[],a=0;a1&&"_"===e[0]&&"_"===e[1]?new nt('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.')):Oo.test(e)?void 0:new nt('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}function So(e,t){for(var n=0;n0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case rt.a.SELECTION_SET:var n=kt(this.getType());this._parentTypeStack.push(Et(n)?n:void 0);break;case rt.a.FIELD:var r,i,o=this.getParentType();o&&(r=this._getFieldDef(t,o,e))&&(i=r.type),this._fieldDefStack.push(r),this._typeStack.push(gt(i)?i:void 0);break;case rt.a.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case rt.a.OPERATION_DEFINITION:var a;switch(e.operation){case"query":a=t.getQueryType();break;case"mutation":a=t.getMutationType();break;case"subscription":a=t.getSubscriptionType()}this._typeStack.push(lt(a)?a:void 0);break;case rt.a.INLINE_FRAGMENT:case rt.a.FRAGMENT_DEFINITION:var s=e.typeCondition,u=s?Li(t,s):kt(this.getType());this._typeStack.push(gt(u)?u:void 0);break;case rt.a.VARIABLE_DEFINITION:var c=Li(t,e.type);this._inputTypeStack.push(mt(c)?c:void 0);break;case rt.a.ARGUMENT:var l,f,p,d=null!==(l=this.getDirective())&&void 0!==l?l:this.getFieldDef();d&&(f=oo(d.args,(function(t){return t.name===e.name.value})))&&(p=f.type),this._argument=f,this._defaultValueStack.push(f?f.defaultValue:void 0),this._inputTypeStack.push(mt(p)?p:void 0);break;case rt.a.LIST:var h=St(this.getInputType()),v=vt(h)?h.ofType:h;this._defaultValueStack.push(void 0),this._inputTypeStack.push(mt(v)?v:void 0);break;case rt.a.OBJECT_FIELD:var y,m,g=kt(this.getInputType());ht(g)&&(m=g.getFields()[e.name.value])&&(y=m.type),this._defaultValueStack.push(m?m.defaultValue:void 0),this._inputTypeStack.push(mt(y)?y:void 0);break;case rt.a.ENUM:var b,E=kt(this.getInputType());dt(E)&&(b=E.getValue(e.value)),this._enumValue=b}},t.leave=function(e){switch(e.kind){case rt.a.SELECTION_SET:this._parentTypeStack.pop();break;case rt.a.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case rt.a.DIRECTIVE:this._directive=null;break;case rt.a.OPERATION_DEFINITION:case rt.a.INLINE_FRAGMENT:case rt.a.FRAGMENT_DEFINITION:this._typeStack.pop();break;case rt.a.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case rt.a.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case rt.a.LIST:case rt.a.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case rt.a.ENUM:this._enumValue=null}},e}();function zo(e,t,n){var r=n.name.value;return r===Un.name&&e.getQueryType()===t?Un:r===Vn.name&&e.getQueryType()===t?Vn:r===Bn.name&&Et(t)?Bn:lt(t)||ft(t)?t.getFields()[r]:void 0}function Ho(e,t){return{enter:function(n){e.enter(n);var r=Object(Dr.a)(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),Object(Rr.c)(i)&&e.enter(i)),i}},leave:function(n){var r,i=Object(Dr.a)(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}}function Ko(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Wo=function(){function e(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}var t=e.prototype;return t.reportError=function(e){this._onError(e)},t.getDocument=function(){return this._ast},t.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce((function(e,t){return t.kind===rt.a.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e}),Object.create(null))),t[e]},t.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var r=0,i=n.pop().selections;r2&&void 0!==arguments[2]?arguments[2]:To,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Jo(e),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{maxErrors:void 0};t||De(0,"Must provide document."),Do(e);var o=Object.freeze({}),a=[],s=new Xo(e,t,r,(function(e){if(null!=i.maxErrors&&a.length>=i.maxErrors)throw a.push(new nt("Too many validation errors, error limit reached. Validation aborted.")),o;a.push(e)})),u=Object(Dr.c)(n.map((function(e){return e(s)})));try{Object(Dr.b)(t,Ho(r,u))}catch(c){if(c!==o)throw c}return a}function Zo(e,t,n,r){var i=To.filter((function(e){return e!==Fi&&e!==Di&&(!r||e!==Pi)}));return n&&Array.prototype.push.apply(i,n),$o(e,t,i).filter((function(e){if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){var t=e.nodes[0];if(t&&t.kind===rt.a.DIRECTIVE){var n=t.name.value;if("arguments"===n||"argumentDefinitions"===n)return!1}}return!0}))}var ea,ta=n(11),na=n.n(ta);function ra(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ia(e){return{Field:function(t){var n=e.getFieldDef(),r=e.getParentType();r&&null!=(null===n||void 0===n?void 0:n.deprecationReason)&&e.reportError(new nt("The field ".concat(r.name,".").concat(n.name," is deprecated. ")+n.deprecationReason,t))},EnumValue:function(t){var n=kt(e.getInputType()),r=e.getEnumValue();n&&null!=(null===r||void 0===r?void 0:r.deprecationReason)&&e.reportError(new nt('The enum value "'.concat(n.name,".").concat(r.name,'" is deprecated. ')+r.deprecationReason,t))}}}function oa(e,t){return $o(e,t,[ia])}var aa="Warning",sa="Information",ua="Hint",ca=(ra(ea={},"Error",1),ra(ea,aa,2),ra(ea,sa,3),ra(ea,ua,4),ea);function la(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=null;try{i=Yr(e)}catch(a){var o=ha(a.locations[0],e);return[{severity:ca.Error,message:a.message,source:"GraphQL: Syntax",range:o}]}return fa(i,t,n,r)}function fa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(!t)return[];var i=pa(Zo(t,e,n,r),(function(e){return da(e,ca.Error,"Validation")})),o=oa?pa(oa(t,e),(function(e){return da(e,ca.Warning,"Deprecation")})):[];return i.concat(o)}function pa(e,t){return Array.prototype.concat.apply([],e.map(t))}function da(e,t,n){if(!e.nodes)return[];var r=[];return e.nodes.forEach((function(i){var o="Variable"!==i.kind&&"name"in i&&void 0!==i.name?i.name:"variable"in i&&void 0!==i.variable?i.variable:i;if(o){na()(e.locations,"GraphQL validation error requires locations.");var a=e.locations[0],s=function(e){var t=e.loc;return na()(t,"Expected ASTNode to have a location."),t}(o),u=a.column+(s.end-s.start);r.push({source:"GraphQL: ".concat(n),message:e.message,severity:t,range:new Oi(new Ni(a.line-1,a.column-1),new Ni(a.line-1,u))})}})),r}function ha(e,t){var n=li(),r=n.startState(),i=t.split("\n");na()(i.length>=e.line,"Query text must have more lines than where the error happened");for(var o=null,a=0;a1?n-1:0),i=1;i1?u-1:0),l=1;l2&&void 0!==arguments[2]?arguments[2]:{},r=n.blocked,i=n.upgrade,o=n.blocking,a=n.terminated,s=indexedDB.open(e,t),u=Ma(s);return i&&s.addEventListener("upgradeneeded",(function(e){i(Ma(s.result),e.oldVersion,e.newVersion,Ma(s.transaction))})),r&&s.addEventListener("blocked",(function(){return r()})),u.then((function(e){a&&e.addEventListener("close",(function(){return a()})),o&&e.addEventListener("versionchange",(function(){return o()}))})).catch((function(){})),u}("bcp-schema",1,{upgrade:function(e){e.createObjectStore("document"),e.createObjectStore("schema")}})}function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $a(e){for(var t=1;t-1};function Ns(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function Ss(e){return"string"!==typeof e&&(e=String(e)),e}function Is(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return bs&&(t[Symbol.iterator]=function(){return t}),t}function ks(e){this.map={},e instanceof ks?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function xs(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function As(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function Ds(e){var t=new FileReader,n=As(t);return t.readAsArrayBuffer(e),n}function js(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Rs(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:Es&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Ts&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:gs&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():_s&&Es&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=js(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):_s&&(ArrayBuffer.prototype.isPrototypeOf(e)||Os(e))?this._bodyArrayBuffer=js(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):gs&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Es&&(this.blob=function(){var e=xs(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=xs(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(Ds)}),this.text=function(){var e=xs(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=As(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Fs(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function Cs(e){var t=new ks;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t}function Ms(e,t){if(!(this instanceof Ms))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new ks(t.headers),this.url=t.url||"",this._initBody(e)}Ps.prototype.clone=function(){return new Ps(this,{body:this._bodyInit})},Rs.call(Ps.prototype),Rs.call(Ms.prototype),Ms.prototype.clone=function(){return new Ms(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ks(this.headers),url:this.url})},Ms.error=function(){var e=new Ms(null,{status:0,statusText:""});return e.type="error",e};var Us=[301,302,303,307,308];Ms.redirect=function(e,t){if(-1===Us.indexOf(t))throw new RangeError("Invalid status code");return new Ms(null,{status:t,headers:{location:e}})};var Vs=ms.DOMException;try{new Vs}catch(wc){(Vs=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Vs.prototype.constructor=Vs}function Bs(e,t){return new Promise((function(n,r){var i=new Ps(e,t);if(i.signal&&i.signal.aborted)return r(new Vs("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}o.onload=function(){var e={status:o.status,statusText:o.statusText,headers:Cs(o.getAllResponseHeaders()||"")};e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL");var t="response"in o?o.response:o.responseText;setTimeout((function(){n(new Ms(t,e))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new Vs("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&ms.location.href?ms.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(Es?o.responseType="blob":_s&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!==typeof t.headers||t.headers instanceof ks?i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,Ss(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",a)}),o.send("undefined"===typeof i._bodyInit?null:i._bodyInit)}))}function Gs(e){return(Gs="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})(e)}function Ys(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Qs(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function qs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(wc){i=!0,o=wc}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||Qs(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qs(e,t){if(e){if("string"===typeof e)return Js(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Js(e,t):void 0}}function Js(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)n=!0,function(e,t,n){var r=n.onComplete,i=n.onError,o=n.onNext,a=e.body.getReader(),s=new TextDecoder;a.read().then(function(){var n=Xs($.a.mark((function n(c){var l,f,p,d;return $.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l=c.value,!c.done){n.next=5;break}r(),n.next=9;break;case 5:f="";try{f=s.decode(l),p=lu(f,t),o(p)}catch(h){d=vu(e,h,f),i(d)}return n.next=9,a.read().then(u);case 9:case"end":return n.stop()}}),n)})));function u(e){return n.apply(this,arguments)}return u}())}(e,function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.split(";"),r=Ys(n);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=(i||"").trim().split("="),a=qs(o,2),s=a[0],u=a[1];if("boundary"===s&&u)return'"'===u[0]&&'"'===u[u.length-1]?u.substr(1,u.length-2):u}}catch(wc){r.e(wc)}finally{r.f()}return"-"}(r),t)}return{isMultipart:n,responseOrError:e}}function lu(e,t){for(var n=function(e){return"--".concat(e,"--\r\n")}(t),r=function(e){return"--".concat(e,"\r\n")}(t),i=qs(pu(e.replace(n,""),r),2),o=qs(pu(i[1],r),2),a=o[0],s=o[1],u=[];""!==a&&(u.push(fu(a)),s);){var c=qs(pu(s,r),2);a=c[0],s=c[1]}return u}function fu(e){var t=qs(pu(e,"\r\n\r\n"),2),n=t[0],r=t[1],i=n.split("\r\n"),o=function(e){var t=e.find((function(e){return e.toLowerCase().indexOf("content-type:")>=0}));if(void 0===t)throw new Error("Invalid MultiPart Response, no content-type header");var n=t.split(":");if(2!==n.length)throw new Error("Invalid MultiPart Response, could not parse content-type");return n[1].trim()}(i),a=function(e){var t=e.find((function(e){return e.toLowerCase().indexOf("content-length:")>=0}));if(void 0===t)throw new Error("Invalid MultiPart Response, no content-length header");var n=t.split(":");if(2!==n.length)throw new Error("Invalid MultiPart Response, could not parse content-length");var r=parseInt(n[1]);if(isNaN(r))throw new Error("Invalid MultiPart Response, could not parse content-length");return r}(i);if(-1===o.indexOf("application/json; charset=utf-8"))throw new Error("Invalid content type");if(a!==(r=r.replace("\r\n\r\n","")).length)throw new Error("Invalid content length");return JSON.parse(r)}function pu(e,t){var n=e.indexOf(t);return n<0?[e]:[e.substring(0,n),e.substring(n+t.length)]}function du(e){return e.text().then((function(t){try{var n=JSON.parse(t);return"object"===Gs(n)&&(n.data||n.errors)?{data:n}:{error:function(e,t,n){var r=new Error(n);return r.name="ServerError",r.statusCode=e.status,r.statusText=e.statusText,r.bodyText=t,r}(e,t,"Response not successful: Received status code ".concat(e.status))}}catch(r){return{error:vu(e,r,t)}}}))}function hu(e,t){var n=new Error(e);return n.name="ServerNetworkError",n.statusText=t,n}function vu(e,t,n){var r=t;return r.name="ServerParseError",r.statusCode=e.status,r.statusText=e.statusText,r.bodyText=n,r}function yu(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"introspection_phase_2"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__schema"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"queryType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"mutationType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"subscriptionType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"types"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FullType"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"directives"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"args"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InputValue"},directives:[]}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FullType"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"__Type"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDeprecated"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"args"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InputValue"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TypeRef"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"isDeprecated"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deprecationReason"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"inputFields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InputValue"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"interfaces"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TypeRef"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"enumValues"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDeprecated"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDeprecated"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deprecationReason"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"possibleTypes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TypeRef"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"InputValue"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"__InputValue"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TypeRef"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"defaultValue"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TypeRef"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"__Type"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ofType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ofType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ofType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ofType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ofType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:1138,source:{body:"query introspection_phase_2 {\n __schema {\n queryType {\n name\n }\n mutationType {\n name\n }\n subscriptionType {\n name\n }\n types {\n ...FullType\n }\n directives {\n name\n description\n args {\n ...InputValue\n }\n }\n }\n}\n\nfragment FullType on __Type {\n kind\n name\n description\n fields(includeDeprecated: true) {\n name\n description\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n description\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n}\n\nfragment InputValue on __InputValue {\n name\n description\n type {\n ...TypeRef\n }\n defaultValue\n}\n\nfragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},n=t.definitions.find((function(e){return"OperationDefinition"===e.kind})).selectionSet.selections.find((function(e){return"Field"===e.kind}));return function(e,t){var n=[];e.selectionSet.selections.forEach((function(e){return n.push(e)})),t.isRepeatable&&n.push(mu("isRepeatable"));t.locations?n.push(mu("locations")):(n.push(mu("onField")),n.push(mu("onFragment")),n.push(mu("onOperation")));e.selectionSet.selections=n}(n.selectionSet.selections.find((function(e){return"Field"===e.kind&&"directives"===e.name.value})),e),function(e,t){if(!t.subscription){var n=[];e.selectionSet.selections.forEach((function(e){"Field"===e.kind&&"subscriptionType"===e.name.value||n.push(e)})),e.selectionSet.selections=n}}(n,e),t}function mu(e){return{kind:"Field",name:{kind:"Name",value:e},directives:[],arguments:[]}}function gu(e){var t=e.directive;return{isRepeatable:!!t.fields.find((function(e){return"isRepeatable"===e.name})),locations:!!t.fields.find((function(e){return"locations"===e.name})),subscription:!!e.schema.fields.find((function(e){return"subscriptionType"===e.name}))}}function bu(e,t,n,r,i){e.sendMessage(new F.Message({type:"new-history-item",payload:{documentId:t,operationFailed:n,operationName:i,operationType:r}}))}function Eu(e,t,n){e.sendMessage(new F.Message({type:"new-result",payload:{documentId:t,result:n}}))}function Tu(e,t,n,r){e.sendMessage(new F.Message({type:"new-result-patch",payload:{documentId:t,resultId:n,patch:r}}))}function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wu(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function xu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var i=r.documentId,o=we(i)||{};this.executeCore(e,{documentId:i,httpOptions:{headers:o,uri:r.schemaEndpoint,useGET:"GET"===r.httpMethod,credentials:r.credentials},operationName:n},t)}}},{key:"executeCore",value:function(){var e,t=(e=$.a.mark((function e(t,n,i){var o,a,s,u,c,l,f,p,d,h,v,y,m,g,b,E,T,_=this;return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.httpOptions,a=n.documentId,s=n.operationName,!(u=de(a))){e.next=22;break}return l=Object(r.e)(),f=Iu(a)||{},this.runningOperations=Du(Du({},this.runningOperations),{},Lu({},a,{operationName:s,operationType:i})),t.sendMessage(new F.Message({type:"operation-execution",payload:{documentId:a,isExecuting:!0,isSubscription:!1}})),ys(t,s?"Starting ".concat(i,' operation "').concat(s,'".'):"Starting ".concat(i," operation."),void 0,a),p=Object(r.b)(),d="query"===i?"Query":"Mutation",h=s?'"'.concat(s,'" '):"",e.next=13,Zs(o,{operationName:s,query:u,variables:f},{onComplete:function(){ys(t,"Patch completed.",void 0,a),_.stop(t,a)},onError:function(e){Tu(t,a,p,{payload:e,success:!1,timestamp:Object(r.e)()}),vs(t,"Patch failed.",e,a)},onNext:function(e){var n,i=Object(r.e)(),o=ku(e);try{for(o.s();!(n=o.n()).done;){var s=n.value,u=s.data,c=s.errors,l=s.extensions,f=s.hasNext,d=s.path;Tu(t,a,p,{payload:{data:u,errors:c,extensions:l,hasNext:f,path:d},success:!0,timestamp:i})}}catch(wc){o.e(wc)}finally{o.f()}ys(t,"Incoming patches.",e,a)}});case 13:v=e.sent,y=Object(r.e)(),m=v.response,g=m.parsedBody,b=m.error,E=!!b||!!(null===(c=g.errors)||void 0===c?void 0:c.length)||!1,bu(t,a,E,i,s),Eu(t,a,{id:p,payload:v,duration:Object(r.c)(l,y),operationName:s,operationType:i,success:!E,timestamp:l}),T="".concat(d," operation ").concat(h),E?vs(t,"".concat(T," failed."),b||g.errors,a):ys(t,"".concat(T," succeeded."),void 0,a),v.isMultipart||this.stop(t,a);case 22:case"end":return e.stop()}}),e,this)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){ju(o,r,i,a,s,"next",e)}function s(e){ju(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e,n,r){return t.apply(this,arguments)}}()},{key:"stop",value:function(e,t){this.runningOperations=Du(Du({},this.runningOperations),{},Lu({},t,void 0)),e.sendMessage(new F.Message({type:"operation-execution",payload:{documentId:t,isExecuting:!1,isSubscription:!1}}))}}])&&Ru(t.prototype,n),i&&Ru(t,i),e}(),Fu=n(62);function Cu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mu(e){for(var t=1;t0||!1;i?vs(e,"New subscription result arrived.",t.errors,o):ys(e,"New subscription result arrived.",void 0,o),Eu(e,o,{id:Object(r.b)(),payload:{raw:t},duration:0,operationName:s,operationType:n,success:!i,timestamp:Object(r.e)()})},error:function(t){vs(e,"A subscription result ended up in an error.",t,o),Eu(e,o,{id:Object(r.b)(),payload:{error:t},duration:0,operationName:s,operationType:n,success:!1,timestamp:Object(r.e)()})},complete:function(){ys(e,s?'Unsubscribing from subscription "'.concat(s,'".'):"Unsubscribing from subscription.",void 0,o)}})}}}])&&Uu(t.prototype,n),i&&Uu(t,i),e}(),Gu=new Pu,Yu=new Bu,qu=new Map([["query",Gu],["mutation",Gu],["subscription",Yu]]);function Qu(){_c("cancel-operation-execution",(function(e,t){!function(e){Gu.isExecuting(e)&&Gu.cancel(e),Yu.isExecuting(e)&&Yu.cancel(e)}(t)})),_c("begin-operation-execution",(function(e,t){!function(e,t){if(!Gu.isExecuting(e)&&!Yu.isExecuting(e)){var n=de(e.session.documentId);if(n){var r=function(e,t){var n=e.definitions.map((function(e){return e})).filter((function(e){return!!e})),r=1===n.length?n[0]:n.find((function(e){return e.name&&e.name.value===t||!1}));return r?r.operation:"query"}(n,t),i=qu.get(r);i&&i.execute(e,r,t)}}}(t,e.payload.operationName)}))}function Ju(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function zu(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ju(o,r,i,a,s,"next",e)}function s(e){Ju(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Hu(){_c("fetch-schema-field-type",function(){var e=zu($.a.mark((function e(t,n){var r,i,o,a,s;return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,i=t.payload,o=t.type,e.next=3,rs(n);case 3:a=e.sent,s=void 0,a&&(s=Ku(a.schema,i.typeName,i.fieldName)),n.sendMessage(new F.Message({id:r,type:o,payload:s}));case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),_c("fetch-schema-field-types",function(){var e=zu($.a.mark((function e(t,n){var r,i,o,a,s;return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,i=t.payload,o=t.type,e.next=3,rs(n);case 3:a=e.sent,s=void 0,a&&(s=Wu(a.schema,i)),n.sendMessage(new F.Message({id:r,type:o,payload:s}));case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),_c("fetch-schema-type",function(){var e=zu($.a.mark((function e(t,n){var r,i,o,a,s;return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,i=t.payload,o=t.type,e.next=3,rs(n);case 3:a=e.sent,s=void 0,a&&(s=$u(a.schema,i)),n.sendMessage(new F.Message({id:r,type:o,payload:s}));case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),_c("fetch-schema-types",function(){var e=zu($.a.mark((function e(t,n){var r,i,o,a;return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,i=t.type,e.next=3,rs(n);case 3:o=e.sent,a=void 0,o&&(a=Xu(o.schema)),n.sendMessage(new F.Message({id:r,type:i,payload:a}));case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}function Ku(e,t,n){var r=e.getType(t);if(r)return function(e,t,n){if(t instanceof qt){var r=t.getFields()[n];if(r)return{id:"".concat(t.name,"-").concat(r.name),name:r.name,kind:"field",description:r.description||void 0,valueType:tc(e,r.type),defaultValue:r.defaultValue}}else if(t instanceof Ut||t instanceof jt){var i=t.getFields()[n];if(i){var o=0===i.args.length?void 0:i.args.map((function(n){var r=tc(e,n.type);return{id:"".concat(t.name,"-").concat(i.name,"-").concat(n.name),name:n.name,kind:"argument",description:n.description||void 0,defaultValue:n.defaultValue||void 0,type:r}}));return{id:"".concat(t.name,"-").concat(i.name),name:i.name,kind:"field",description:i.description||void 0,arguments:o,valueType:tc(e,i.type),isDeprecated:i.isDeprecated,deprecationReason:i.deprecationReason||void 0}}}return}(e,r,n)}function Wu(e,t){var n=e.getType(t);if(n)return function(e,t){var n=[];if(t instanceof qt){var r=t.getFields();for(var i in r){var o=r[i];n.push({id:"".concat(t.name,"-").concat(o.name),name:o.name,kind:"field",description:o.description||void 0,valueType:tc(e,o.type),defaultValue:o.defaultValue})}}else if(t instanceof Ut||t instanceof jt){var a=t.getFields(),s=function(r){var i=a[r],o=0===i.args.length?void 0:i.args.map((function(n){var r=tc(e,n.type);return{id:"".concat(t.name,"-").concat(i.name,"-").concat(n.name),name:n.name,kind:"argument",description:n.description||void 0,defaultValue:n.defaultValue||void 0,type:r}}));n.push({id:"".concat(t.name,"-").concat(i.name),name:i.name,kind:"field",description:i.description||void 0,arguments:o,valueType:tc(e,i.type),isDeprecated:i.isDeprecated,deprecationReason:i.deprecationReason||void 0})};for(var u in a)s(u)}return n}(e,n)}function Xu(e){var t=[],n=e.getQueryType(),r=e.getMutationType(),i=e.getSubscriptionType();return n&&t.push(ec(e,n)),r&&t.push(ec(e,r)),i&&t.push(ec(e,i)),0===t.length?void 0:t}function $u(e,t){var n=e.getType(t);if(n)return ec(e,n)}function Zu(e){return e instanceof Gt?"enum":e instanceof qt?"input-object":e instanceof Ut?"interface":e instanceof Dt?"scalar":e instanceof Vt?"union":e instanceof _t||e instanceof wt?Zu(e.ofType):"object"}function ec(e,t){var n,r,i;return t instanceof Gt&&(n=t.getValues().map((function(e){return{id:"".concat(t.name,"-").concat(e.name),name:e.name,kind:"enum-value",description:e.description||void 0,value:e.value,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason||void 0}}))),t instanceof Ut&&(i=e.getPossibleTypes(t).map((function(t){return tc(e,t)}))),t instanceof jt&&(r=t.getInterfaces().map((function(e){return{id:e.name,name:e.name,kind:"type",description:e.description||void 0,typeKind:"interface"}}))),t instanceof Vt&&(i=t.getTypes().map((function(t){return tc(e,t)}))),{id:t.name,name:t.name,kind:"type",description:t.description||void 0,typeKind:Zu(t),enumValues:n,interfaces:r,types:i}}function tc(e,t){var n,r=!1,i=!0;return t instanceof wt?(i=!1,t.ofType instanceof _t?(n=t.ofType.ofType,r=!0):n=t.ofType):t instanceof _t?(n=t.ofType,r=!0):n=t,{kind:"value-type",isList:r,isOptional:i,type:n instanceof _t||n instanceof wt?tc(e,n):ec(e,n)}}function nc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rc(e){for(var t=1;t0&&!t.enableSchemaPolling){var n={headers:we(t.documentId)||{},uri:t.schemaEndpoint,useGETForQueries:"GET"===t.httpMethod,credentials:t.credentials};vc(e.id,{running:!0}),ys(e,"Reload schema."),yc(e,n)}}}(t)}))}function cc(){return(cc=ac($.a.mark((function e(t){var n,r,i,o;return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(pc(t.id).running){e.next=14;break}if(!((n=t.session).schemaEndpoint.length>0)){e.next=13;break}return r=we(n.documentId)||{},i={headers:r,uri:n.schemaEndpoint,useGETForQueries:"GET"===n.httpMethod,credentials:n.credentials},e.next=8,rs(t);case 8:(o=e.sent)&&(ds(t,{endpoint:n.schemaEndpoint,exists:!0,hash:o.hash,hasMutationType:!!o.schema.getMutationType(),hasSubscriptionType:!!o.schema.getSubscriptionType()}),ys(t,"Fetched schema from cache.")),n.enableSchemaPolling?(vc(t.id,{running:!0}),ys(t,"Started schema polling."),mc(t,i,n.schemaPollingInterval||2e4)):o||(vc(t.id,{running:!0}),ys(t,"Started schema fetching."),yc(t,i)),e.next=14;break;case 13:ds(t,{endpoint:n.schemaEndpoint,exists:!1,hasMutationType:!1,hasSubscriptionType:!1});case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function lc(e,t,n,r){return fc.apply(this,arguments)}function fc(){return(fc=ac($.a.mark((function e(t,n,r,i){var o,a;return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.currentRequestId,e.next=3,iu(i);case 3:if(a=e.sent,r!==o){e.next=14;break}if(!dc(a)){e.next=11;break}return e.next=8,os(t,a);case 8:ys(t,"Fetched schema successfully."),e.next=14;break;case 11:return ds(t,{endpoint:i.uri,exists:!1,hasMutationType:!1,hasSubscriptionType:!1}),vs(t,"Fetching schema failed.",a),e.abrupt("return",!1);case 14:return e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pc(e){return sc.get(e)||{fetching:!1,running:!1}}function dc(e){return"__schema"in e}function hc(e,t){e.sendMessage(new F.Message({type:"is-schema-fetching",payload:t}))}function vc(e,t){var n=rc(rc({},pc(e)),t);return sc.set(e,n),n}function yc(e,t){var n=e.id,i=e.session.documentId,o=Object(r.b)(),a=new re((function(r){var i=pc(n);return r>0?ys(e,"Retry schema fetching."):(i=vc(n,{fetching:!0}),hc(e,i.fetching)),lc(e,i,o,t)}));vc(n,{backoff:a,currentId:i,currentRequestId:o}),a.start((function(){var t=pc(n);o===t.currentRequestId&&gc(e)}))}function mc(e,t,n){var i=Object(r.b)(),o=vc(e.id,{currentId:e.session.documentId,currentRequestId:i,timeout:window.setTimeout((function(){mc(e,t,n)}),n)});lc(e,o,i,t)}function gc(e){var t=pc(e.id);t.backoff&&t.backoff.stop(),t.timeout&&window.clearTimeout(t.timeout),hc(e,(t=vc(e.id,{backoff:void 0,currentId:void 0,currentRequestId:void 0,fetching:!1,running:!1,timeout:void 0})).fetching)}var bc=[],Ec=[];function Tc(e){var t=new me(e);bc.push(t),fe(),_e(),Su(),fs(),Hu(),Qu(),uc(),e.onmessage=function(e){var n=e.data;!function(e,t){Ec.filter((function(e){return e.type===t.type})).forEach((function(n){return(0,n.handle)(t,e)}))}(t,n)},e.start()}function _c(e,t){Ec.push({type:e,handle:t})}self.onconnect=function(e){return Tc(e.ports[0])}}]);
\ No newline at end of file
+!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="./",n(n.s=95)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(17);function i(e){return(i="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})(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.a)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"===typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){e.exports=n(80)},function(e,t,n){"use strict";var r=n(31);n.d(t,"Message",(function(){return r.a}));n(32),n(33)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var r=n(8),i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();Object(r.a)(i);var o=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function a(e){return null!=e&&"string"===typeof e.kind}Object(r.a)(o)},function(e,t,n){"use strict";n.r(t),n.d(t,"print",(function(){return o}));var r=n(10),i=n(19);function o(e){return Object(r.b)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return u(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=l("(",u(e.variableDefinitions,", "),")"),i=u(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?u([t,u([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+l(" = ",r)+l(" ",u(i," "))},SelectionSet:function(e){return c(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet;return u([l("",t,": ")+n+l("(",u(r,", "),")"),u(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+l(" ",u(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return u(["...",l("on ",t),u(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(l("(",u(r,", "),")")," ")+"on ".concat(n," ").concat(l("",u(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?Object(i.b)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+u(e.values,", ")+"]"},ObjectValue:function(e){return"{"+u(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+l("(",u(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:s((function(e){var t=e.directives,n=e.operationTypes;return u(["schema",u(t," "),c(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s((function(e){return u(["scalar",e.name,u(e.directives," ")]," ")})),ObjectTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["type",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")})),FieldDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(d(n)?l("(\n",f(u(n,"\n")),"\n)"):l("(",u(n,", "),")"))+": "+r+l(" ",u(i," "))})),InputValueDefinition:s((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return u([t+": "+n,l("= ",r),u(i," ")]," ")})),InterfaceTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["interface",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")})),UnionTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.types;return u(["union",t,u(n," "),r&&0!==r.length?"= "+u(r," | "):""]," ")})),EnumTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.values;return u(["enum",t,u(n," "),c(r)]," ")})),EnumValueDefinition:s((function(e){return u([e.name,u(e.directives," ")]," ")})),InputObjectTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.fields;return u(["input",t,u(n," "),c(r)]," ")})),DirectiveDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(d(n)?l("(\n",f(u(n,"\n")),"\n)"):l("(",u(n,", "),")"))+(r?" repeatable":"")+" on "+u(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return u(["extend schema",u(t," "),c(n)]," ")},ScalarTypeExtension:function(e){return u(["extend scalar",e.name,u(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["extend type",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["extend interface",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return u(["extend union",t,u(n," "),r&&0!==r.length?"= "+u(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return u(["extend enum",t,u(n," "),c(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return u(["extend input",t,u(n," "),c(r)]," ")}};function s(e){return function(t){return u([t.description,e(t)],"\n")}}function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function c(e){return e&&0!==e.length?"{\n"+f(u(e,"\n"))+"\n}":""}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t?e+t+n:""}function f(e){return e&&" "+e.replace(/\n/g,"\n ")}function p(e){return-1!==e.indexOf("\n")}function d(e){return e&&e.some(p)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return c}));var r=n(62),i=n.n(r);function o(){for(var e=new i.a,t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:21,t="",n=crypto.getRandomValues(new Uint8Array(e));e--;){var r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};function s(e){return e&&e.length>0?"".concat(e,"|").concat(a()):a()}function u(e){return"OperationDefinition"===e.kind}function c(e,t){if(e>t)throw new Error("'start' must be smaller than 'end'.");return t-e}function l(){return Date.now()}},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(7),i=n(17);function o(e){var t=e.prototype.toJSON;"function"===typeof t||Object(r.a)(0),e.prototype.inspect=t,i.a&&(e.prototype[i.a]=t)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(1),i=n(4),o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=void 0,u=Array.isArray(e),l=[e],f=-1,p=[],d=void 0,h=void 0,v=void 0,y=[],m=[],b=e;do{var g=++f===l.length,E=g&&0!==p.length;if(g){if(h=0===m.length?void 0:y[y.length-1],d=v,v=m.pop(),E){if(u)d=d.slice();else{for(var T={},_=0,w=Object.keys(d);_=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(s=l[c],!g(e[s],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function E(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function T(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(n){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,n,r){var i;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(n){t=n}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&m(i,n,"Missing expected exception"+r);var o="string"===typeof r,s=!e&&i&&!n;if((!e&&a.isError(i)&&o&&T(i,n)||s)&&m(i,n,"Got unwanted exception"+r),e&&i&&n&&!T(i,n)||!e&&i)throw i}p.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return v(y(e.actual),128)+" "+e.operator+" "+v(y(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=h(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(p.AssertionError,Error),p.fail=m,p.ok=b,p.equal=function(e,t,n){e!=t&&m(e,t,n,"==",p.equal)},p.notEqual=function(e,t,n){e==t&&m(e,t,n,"!=",p.notEqual)},p.deepEqual=function(e,t,n){g(e,t,!1)||m(e,t,n,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(e,t,n){g(e,t,!0)||m(e,t,n,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(e,t,n){g(e,t,!1)&&m(e,t,n,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function e(t,n,r){g(t,n,!0)&&m(t,n,r,"notDeepStrictEqual",e)},p.strictEqual=function(e,t,n){e!==t&&m(e,t,n,"===",p.strictEqual)},p.notStrictEqual=function(e,t,n){e===t&&m(e,t,n,"!==",p.notStrictEqual)},p.throws=function(e,t,n){_(!0,e,t,n)},p.doesNotThrow=function(e,t,n){_(!1,e,t,n)},p.ifError=function(e){if(e)throw e},p.strict=r((function e(t,n){t||m(t,!0,n,"==",e)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var w=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}).call(this,n(13))},function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f1)for(var n=1;n2?"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))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,a,s;if("string"===typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="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(r," ").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(r," ").concat(o(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(23),o=n(28);n(12)(c,i);for(var a=r(o.prototype),s=0;s=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(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 r=!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 B(e).length;default:if(r)return V(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!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 x(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return N(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,p=0;pi&&(r=i):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function N(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128===(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){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===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return T(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function P(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function C(e,t,n,r,o){return o||P(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return o||P(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||D(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||D(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||D(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||D(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||D(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||D(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||D(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||D(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||j(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||j(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||j(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||j(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):L(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||j(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):L(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}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,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}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||j(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||j(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||j(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):L(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||j(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):L(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return C(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return C(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=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 B(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function G(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(13))},function(e,t,n){"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t=null,n=1;n0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")}function i(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}))},function(e,t,n){"use strict";var r=n(48);n.o(r,"LogLevel")&&n.d(t,"LogLevel",(function(){return r.LogLevel}));var i=n(49);n.o(i,"LogLevel")&&n.d(t,"LogLevel",(function(){return i.LogLevel}));var o=n(50);n.o(o,"LogLevel")&&n.d(t,"LogLevel",(function(){return o.LogLevel}));var a=n(51);n.o(a,"LogLevel")&&n.d(t,"LogLevel",(function(){return a.LogLevel}));var s=n(52);n.o(s,"LogLevel")&&n.d(t,"LogLevel",(function(){return s.LogLevel}));var u=n(53);n.o(u,"LogLevel")&&n.d(t,"LogLevel",(function(){return u.LogLevel}));var c=n(54);n.d(t,"LogLevel",(function(){return c.a}));n(55),n(56),n(57),n(58),n(59),n(60),n(61)},function(e,t,n){var r=n(18),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";var r=n(15).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"===typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i0)if("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)a.endEmitted?_(e,new T):I(e,a,t,!0);else if(a.ended)_(e,new g);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?I(e,a,t,!1):D(e,a)):I(e,a,t,!1)}else r||(a.reading=!1,D(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(A,e))}function A(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,C(e)}function D(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(j,e,t))}function j(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L(e){c("readable nexttick read 0"),e.read(0)}function P(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function M(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function V(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):x(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},N.prototype._read=function(e){_(this,new E("_read()"))},N.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:y;function s(t,r){c("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",h),e.removeListener("finish",v),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",p),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){c("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",s);var l=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,C(e))}}(n);e.on("drain",l);var f=!1;function p(t){c("ondata");var r=e.write(t);c("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==V(i.pipes,e))&&!f&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function d(t){c("onerror",t),y(),e.removeListener("error",d),0===o(e,"error")&&_(e,t)}function h(){e.removeListener("finish",v),y()}function v(){c("onfinish"),e.removeListener("close",h),y()}function y(){c("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",h),e.once("finish",v),e.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),e},N.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?x(this):i.reading||r.nextTick(L,this))),n},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(R,this),n},N.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(R,this),t},N.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(P,e,t))}(this,e)),e.paused=!1,this},N.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},N.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&void 0!==i)&&((n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause())))})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o0&&a.length>i&&!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 p(){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 d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)o(u,this,t);else{var c=u.length,l=y(u,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){e.exports=n(24).EventEmitter},function(e,t,n){"use strict";(function(t){function n(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!o&&e?a._writableState?a._writableState.errorEmitted?t.nextTick(r,a):(a._writableState.errorEmitted=!0,t.nextTick(n,a,e)):t.nextTick(n,a,e):o?(t.nextTick(r,a),o(e)):t.nextTick(r,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,n(14))},function(e,t,n){"use strict";var r=n(15).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},function(e,t,n){"use strict";(function(t,r){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=N,N.WritableState=O;var a={deprecate:n(75)},s=n(25),u=n(18).Buffer,c=t.Uint8Array||function(){};var l,f=n(26),p=n(27).getHighWaterMark,d=n(15).codes,h=d.ERR_INVALID_ARG_TYPE,v=d.ERR_METHOD_NOT_IMPLEMENTED,y=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,g=d.ERR_STREAM_NULL_VALUES,E=d.ERR_STREAM_WRITE_AFTER_END,T=d.ERR_UNKNOWN_ENCODING,_=f.errorOrDestroy;function w(){}function O(e,t,a){o=o||n(16),e=e||{},"boolean"!==typeof a&&(a=t instanceof o),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!==typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(D,e,t),e._writableState.errorEmitted=!0,_(e,i)):(o(i),e._writableState.errorEmitted=!0,_(e,i),D(e,t))}(e,n,i,t,o);else{var a=x(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||k(e,n),i?r.nextTick(I,e,n,a,o):I(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function N(e){var t=this instanceof(o=o||n(16));if(!t&&!l.call(N,this))return new N(e);this._writableState=new O(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),s.call(this)}function S(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),D(e,t)}function k(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,u=!0;n;)o[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;o.allBuffers=u,S(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(S(e,t,!1,t.objectMode?1:c.length,c,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function A(e,t){e._final((function(n){t.pendingcb--,n&&_(e,n),t.prefinished=!0,e.emit("prefinish"),D(e,t)}))}function D(e,t){var n=x(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(A,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}n(12)(N,s),O.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(O.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===N&&(e&&e._writableState instanceof O)}})):l=function(e){return e instanceof this},N.prototype.pipe=function(){_(this,new m)},N.prototype.write=function(e,t,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,u.isBuffer(i)||i instanceof c);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"===typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!==typeof n&&(n=w),o.ending?function(e,t){var n=new E;_(e,n),r.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var o;return null===n?o=new g:"string"===typeof n||t.objectMode||(o=new h("chunk",["string","Buffer"],n)),!o||(_(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=u.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length-1))throw new T(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),N.prototype._write=function(e,t,n){n(new v("_write()"))},N.prototype._writev=null,N.prototype.end=function(e,t,n){var i=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,D(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),N.prototype.destroy=f.destroy,N.prototype._undestroy=f.undestroy,N.prototype._destroy=function(e,t){t(e)}}).call(this,n(13),n(14))},function(e,t,n){"use strict";var r=n(21).Buffer,i=r.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&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=p,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.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 r=n.charCodeAt(n.length-1);if(r>=55296&&r<=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 c(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 l(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 f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(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 i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},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";e.exports=l;var r=n(15).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(16);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>32-t}function c(e,t,n,r,i,o,a){return u(e+(t&n|~t&r)+i+o|0,a)+t|0}function l(e,t,n,r,i,o,a){return u(e+(t&r|n&~r)+i+o|0,a)+t|0}function f(e,t,n,r,i,o,a){return u(e+(t^n^r)+i+o|0,a)+t|0}function p(e,t,n,r,i,o,a){return u(e+(n^(t|~r))+i+o|0,a)+t|0}r(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=c(n,r,i,o,e[0],3614090360,7),o=c(o,n,r,i,e[1],3905402710,12),i=c(i,o,n,r,e[2],606105819,17),r=c(r,i,o,n,e[3],3250441966,22),n=c(n,r,i,o,e[4],4118548399,7),o=c(o,n,r,i,e[5],1200080426,12),i=c(i,o,n,r,e[6],2821735955,17),r=c(r,i,o,n,e[7],4249261313,22),n=c(n,r,i,o,e[8],1770035416,7),o=c(o,n,r,i,e[9],2336552879,12),i=c(i,o,n,r,e[10],4294925233,17),r=c(r,i,o,n,e[11],2304563134,22),n=c(n,r,i,o,e[12],1804603682,7),o=c(o,n,r,i,e[13],4254626195,12),i=c(i,o,n,r,e[14],2792965006,17),n=l(n,r=c(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=l(o,n,r,i,e[6],3225465664,9),i=l(i,o,n,r,e[11],643717713,14),r=l(r,i,o,n,e[0],3921069994,20),n=l(n,r,i,o,e[5],3593408605,5),o=l(o,n,r,i,e[10],38016083,9),i=l(i,o,n,r,e[15],3634488961,14),r=l(r,i,o,n,e[4],3889429448,20),n=l(n,r,i,o,e[9],568446438,5),o=l(o,n,r,i,e[14],3275163606,9),i=l(i,o,n,r,e[3],4107603335,14),r=l(r,i,o,n,e[8],1163531501,20),n=l(n,r,i,o,e[13],2850285829,5),o=l(o,n,r,i,e[2],4243563512,9),i=l(i,o,n,r,e[7],1735328473,14),n=f(n,r=l(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=f(o,n,r,i,e[8],2272392833,11),i=f(i,o,n,r,e[11],1839030562,16),r=f(r,i,o,n,e[14],4259657740,23),n=f(n,r,i,o,e[1],2763975236,4),o=f(o,n,r,i,e[4],1272893353,11),i=f(i,o,n,r,e[7],4139469664,16),r=f(r,i,o,n,e[10],3200236656,23),n=f(n,r,i,o,e[13],681279174,4),o=f(o,n,r,i,e[0],3936430074,11),i=f(i,o,n,r,e[3],3572445317,16),r=f(r,i,o,n,e[6],76029189,23),n=f(n,r,i,o,e[9],3654602809,4),o=f(o,n,r,i,e[12],3873151461,11),i=f(i,o,n,r,e[15],530742520,16),n=p(n,r=f(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=p(o,n,r,i,e[7],1126891415,10),i=p(i,o,n,r,e[14],2878612391,15),r=p(r,i,o,n,e[5],4237533241,21),n=p(n,r,i,o,e[12],1700485571,6),o=p(o,n,r,i,e[3],2399980690,10),i=p(i,o,n,r,e[10],4293915773,15),r=p(r,i,o,n,e[1],2240044497,21),n=p(n,r,i,o,e[8],1873313359,6),o=p(o,n,r,i,e[15],4264355552,10),i=p(i,o,n,r,e[6],2734768916,15),r=p(r,i,o,n,e[13],1309151649,21),n=p(n,r,i,o,e[4],4149444226,6),o=p(o,n,r,i,e[11],3174756917,10),i=p(i,o,n,r,e[2],718787259,15),r=p(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,n){"use strict";(function(e){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var s=i.shift();s&&s.applyMiddleware.apply(o,[e,t])}else n(e)}()}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!==typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,n){if("function"===typeof e)try{return t(e.call(null))}catch(r){return n(r)}t(e)}))}},e.prototype.executeOperation=function(e,t){var n=this;null===this.client&&this.connect();var r=this.generateOperationId();return this.operations[r]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){n.checkOperationOptions(e,t),n.operations[r]&&(n.operations[r]={options:e,handler:t},n.sendMessage(r,b.default.GQL_START,e))})).catch((function(e){n.unsubscribe(r),t(n.formatErrors(e))})),r},e.prototype.getObserver=function(e,t,n){return"function"===typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return n&&n()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new c({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var n=e.query,r=e.variables,i=e.operationName;if(!n)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!f.default(n)&&!h.getOperationAST(n,i)||i&&!f.default(i)||r&&!p.default(r))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,n){return{id:e,type:t,payload:n&&n.query?r(r({},n),{query:"string"===typeof n.query?n.query:d.print(n.query)}):n}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,n){this.sendMessageRaw(this.buildMessage(e,t,n))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(n){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,b.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(t,void 0,void 0,(function(){var e,t;return o(this,(function(n){switch(n.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=n.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=n.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){var n=e.data;t.processReceivedData(n)}},e.prototype.processReceivedData=function(e){var t,n;try{n=(t=JSON.parse(e)).id}catch(s){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(t.type)||this.operations[n])switch(t.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case b.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case b.default.GQL_COMPLETE:var i=this.operations[n].handler;delete this.operations[n],i.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(t.payload),null),delete this.operations[n];break;case b.default.GQL_DATA:var o=t.payload.errors?r(r({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[n].handler(null,o);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var a="undefined"===typeof this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,b.default.GQL_STOP,void 0))},e}();t.SubscriptionClient=g}).call(this,n(13))},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";var r=n(21).Buffer,i=n(71).Transform;function o(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(12)(o,i),o.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(i){r=i}n(r)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(n){t=n}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!==typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,f=n?i-1:0,p=n?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=h,a/=256,c-=8);e[n+d-h]|=128*v}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(28),t.Duplex=n(16),t.Transform=n(30),t.PassThrough=n(78),t.finished=n(22),t.pipeline=n(79)},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,n,r,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=i,r=s,a.prototype.copy.call(t,n,r),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t0,(function(e){r||(r=e),e&&a.forEach(c),o||(a.forEach(c),i(r))}))}));return t.reduce(l)}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(S){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new w(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return N()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(S){return{type:"throw",arg:S}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};h[i]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==t&&n.call(y,i)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var u=c(e[i],e,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"===typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,s,u=a(e),c=1;c=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),u=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&w(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return m(i)||(i=l(e,i,r)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(m(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),_(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(w(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(g(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(T(n))return e.stylize(Date.prototype.toString.call(n),"date");if(_(n))return f(n)}var c,E="",O=!1,N=["{","}"];(d(n)&&(O=!0,N=["[","]"]),w(n))&&(E=" [Function"+(n.name?": "+n.name:"")+"]");return g(n)&&(E=" "+RegExp.prototype.toString.call(n)),T(n)&&(E=" "+Date.prototype.toUTCString.call(n)),_(n)&&(E=" "+f(n)),0!==a.length||O&&0!=n.length?r<0?g(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=O?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,E,N)):N[0]+E+N[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),k(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=v(n)?l(e,u.value,null):l(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e){return Array.isArray(e)}function h(e){return"boolean"===typeof e}function v(e){return null===e}function y(e){return"number"===typeof e}function m(e){return"string"===typeof e}function b(e){return void 0===e}function g(e){return E(e)&&"[object RegExp]"===O(e)}function E(e){return"object"===typeof e&&null!==e}function T(e){return E(e)&&"[object Date]"===O(e)}function _(e){return E(e)&&("[object Error]"===O(e)||e instanceof Error)}function w(e){return"function"===typeof e}function O(e){return Object.prototype.toString.call(e)}function N(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(b(o)&&(o=Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=h,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=m,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=b,t.isRegExp=g,t.isObject=E,t.isDate=T,t.isError=_,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(83);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var e=new Date,t=[N(e.getHours()),N(e.getMinutes()),N(e.getSeconds())].join(":");return[e.getDate(),S[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",I(),t.format.apply(t,arguments))},t.inherits=n(84),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var x="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(x&&e[x]){var t;if("function"!==typeof(t=e[x]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),u=i?i+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function u(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);re.length)&&(t=e.length);for(var n=0,r=new Array(t);nt)){for(var u=this._rows,c=0;c<=s;c++)u[0][c]=c;for(var l=1;l<=a;l++){for(var f=u[(l-1)%3],p=u[l%3],d=p[0]=l,h=1;h<=s;h++){var v=r[l-1]===i[h-1]?0:1,y=Math.min(f[h]+1,p[h-1]+1,f[h-1]+v);if(l>1&&h>1&&r[l-1]===i[h-2]&&r[l-2]===i[h-1]){var m=u[(l-2)%3][h-2];y=Math.min(y,m+1)}yt)return}var b=u[a%3][s];return b<=t?b:void 0}},e}();function Be(e){for(var t=e.length,n=new Array(t),r=0;r120){for(var p=Math.floor(u/80),d=u%80,h=[],v=0;v0?e:void 0}_t.prototype.toString=function(){return"["+String(this.ofType)+"]"},_t.prototype.toJSON=function(){return this.toString()},Object.defineProperty(_t.prototype,Se,{get:function(){return"GraphQLList"}}),Object(Me.a)(_t),wt.prototype.toString=function(){return String(this.ofType)+"!"},wt.prototype.toJSON=function(){return this.toString()},Object.defineProperty(wt.prototype,Se,{get:function(){return"GraphQLNonNull"}}),Object(Me.a)(wt);var Dt=function(){function e(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:Fe;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:Fe,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e){return i(function e(t,n){switch(t.kind){case rt.a.NULL:return null;case rt.a.INT:return parseInt(t.value,10);case rt.a.FLOAT:return parseFloat(t.value);case rt.a.STRING:case rt.a.ENUM:case rt.a.BOOLEAN:return t.value;case rt.a.LIST:return t.values.map((function(t){return e(t,n)}));case rt.a.OBJECT:return je(t.fields,(function(e){return e.name.value}),(function(t){return e(t.value,n)}));case rt.a.VARIABLE:return null===n||void 0===n?void 0:n[t.name.value]}Object(ot.a)(0,"Unexpected value node: "+Object(Ie.a)(t))}(e))},this.extensions=e.extensions&&Ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=At(e.extensionASTNodes),"string"===typeof e.name||De(0,"Must provide name."),null==e.specifiedByUrl||"string"===typeof e.specifiedByUrl||De(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(Object(Ie.a)(e.specifiedByUrl),".")),null==e.serialize||"function"===typeof e.serialize||De(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||De(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},st(e,[{key:Se,get:function(){return"GraphQLScalarType"}}]),e}();Object(Me.a)(Dt);var jt=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&Ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=At(e.extensionASTNodes),this._fields=Lt.bind(void 0,e),this._interfaces=Rt.bind(void 0,e),"string"===typeof e.name||De(0,"Must provide name."),null==e.isTypeOf||"function"===typeof e.isTypeOf||De(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(Object(Ie.a)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ct(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},st(e,[{key:Se,get:function(){return"GraphQLObjectType"}}]),e}();function Rt(e){var t,n=null!==(t=xt(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||De(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function Lt(e){var t=xt(e.fields);return Pt(t)||De(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),xe(t,(function(t,n){var r;Pt(t)||De(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||De(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"===typeof t.resolve||De(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(Object(Ie.a)(t.resolve),"."));var i=null!==(r=t.args)&&void 0!==r?r:{};Pt(i)||De(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var o=Oe(i).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,extensions:n.extensions&&Ae(n.extensions),astNode:n.astNode}}));return{name:n,description:t.description,type:t.type,args:o,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&Ae(t.extensions),astNode:t.astNode}}))}function Pt(e){return Ce(e)&&!Array.isArray(e)}function Ct(e){return xe(e,(function(e){return{description:e.description,type:e.type,args:Ft(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function Ft(e){return je(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}))}function Mt(e){return yt(e.type)&&void 0===e.defaultValue}Object(Me.a)(jt);var Ut=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=At(e.extensionASTNodes),this._fields=Lt.bind(void 0,e),this._interfaces=Rt.bind(void 0,e),"string"===typeof e.name||De(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||De(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(Ie.a)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ct(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},st(e,[{key:Se,get:function(){return"GraphQLInterfaceType"}}]),e}();Object(Me.a)(Ut);var Vt=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=At(e.extensionASTNodes),this._types=Bt.bind(void 0,e),"string"===typeof e.name||De(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||De(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(Ie.a)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"===typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},st(e,[{key:Se,get:function(){return"GraphQLUnionType"}}]),e}();function Bt(e){var t=xt(e.types);return Array.isArray(t)||De(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}Object(Me.a)(Vt);var Gt=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=At(e.extensionASTNodes),this._values=(t=this.name,Pt(n=e.values)||De(0,"".concat(t," values must be an object with value names as keys.")),Oe(n).map((function(e){var n=e[0],r=e[1];return Pt(r)||De(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(Object(Ie.a)(r),".")),!("isDeprecated"in r)||De(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&Ae(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=ke(this._values,(function(e){return e.name})),"string"===typeof e.name||De(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new nt('Enum "'.concat(this.name,'" cannot represent value: ').concat(Object(Ie.a)(e)));return t.name},t.parseValue=function(e){if("string"!==typeof e){var t=Object(Ie.a)(e);throw new nt('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+Yt(this,t))}var n=this.getValue(e);if(null==n)throw new nt('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+Yt(this,e));return n.value},t.parseLiteral=function(e,t){if(e.kind!==rt.a.ENUM){var n=Object(it.print)(e);throw new nt('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+Yt(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=Object(it.print)(e);throw new nt('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+Yt(this,i),e)}return r.value},t.toConfig=function(){var e,t=je(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},st(e,[{key:Se,get:function(){return"GraphQLEnumType"}}]),e}();function Yt(e,t){return Le("the enum value",Ue(t,e.getValues().map((function(e){return e.name}))))}Object(Me.a)(Gt);var qt=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=At(e.extensionASTNodes),this._fields=Qt.bind(void 0,e),"string"===typeof e.name||De(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e,t=xe(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},st(e,[{key:Se,get:function(){return"GraphQLInputObjectType"}}]),e}();function Qt(e){var t=xt(e.fields);return Pt(t)||De(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),xe(t,(function(t,n){return!("resolve"in t)||De(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&Ae(t.extensions),astNode:t.astNode}}))}Object(Me.a)(qt);var Jt=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Ht=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),zt=Number.isFinite||function(e){return"number"===typeof e&&isFinite(e)},Kt=Array.from||function(e,t,n){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r=e[Ne];if("function"===typeof r){for(var i,o=r.call(e),a=[],s=0;!(i=o.next()).done;++s)if(a.push(t.call(n,i.value,s)),s>9999999)throw new TypeError("Near-infinite iteration.");return a}var u=e.length;if("number"===typeof u&&u>=0&&u%1===0){for(var c=[],l=0;l2147483647||n<-2147483648)throw new nt("Int cannot represent non 32-bit signed integer value: "+Object(Ie.a)(t));return n},parseValue:function(e){if(!Xt(e))throw new nt("Int cannot represent non-integer value: ".concat(Object(Ie.a)(e)));if(e>2147483647||e<-2147483648)throw new nt("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(e){if(e.kind!==rt.a.INT)throw new nt("Int cannot represent non-integer value: ".concat(Object(it.print)(e)),e);var t=parseInt(e.value,10);if(t>2147483647||t<-2147483648)throw new nt("Int cannot represent non 32-bit signed integer value: ".concat(e.value),e);return t}});var Zt=new Dt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){var t=en(e);if("boolean"===typeof t)return t?1:0;var n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),!zt(n))throw new nt("Float cannot represent non numeric value: ".concat(Object(Ie.a)(t)));return n},parseValue:function(e){if(!zt(e))throw new nt("Float cannot represent non numeric value: ".concat(Object(Ie.a)(e)));return e},parseLiteral:function(e){if(e.kind!==rt.a.FLOAT&&e.kind!==rt.a.INT)throw new nt("Float cannot represent non numeric value: ".concat(Object(it.print)(e)),e);return parseFloat(e.value)}});function en(e){if(Ce(e)){if("function"===typeof e.valueOf){var t=e.valueOf();if(!Ce(t))return t}if("function"===typeof e.toJSON)return e.toJSON()}return e}var tn=new Dt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=en(e);if("string"===typeof t)return t;if("boolean"===typeof t)return t?"true":"false";if(zt(t))return t.toString();throw new nt("String cannot represent value: ".concat(Object(Ie.a)(e)))},parseValue:function(e){if("string"!==typeof e)throw new nt("String cannot represent a non string value: ".concat(Object(Ie.a)(e)));return e},parseLiteral:function(e){if(e.kind!==rt.a.STRING)throw new nt("String cannot represent a non string value: ".concat(Object(it.print)(e)),e);return e.value}});var nn=new Dt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var t=en(e);if("boolean"===typeof t)return t;if(zt(t))return 0!==t;throw new nt("Boolean cannot represent a non boolean value: ".concat(Object(Ie.a)(t)))},parseValue:function(e){if("boolean"!==typeof e)throw new nt("Boolean cannot represent a non boolean value: ".concat(Object(Ie.a)(e)));return e},parseLiteral:function(e){if(e.kind!==rt.a.BOOLEAN)throw new nt("Boolean cannot represent a non boolean value: ".concat(Object(it.print)(e)),e);return e.value}});var rn=new Dt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=en(e);if("string"===typeof t)return t;if(Xt(t))return String(t);throw new nt("ID cannot represent value: ".concat(Object(Ie.a)(e)))},parseValue:function(e){if("string"===typeof e)return e;if(Xt(e))return e.toString();throw new nt("ID cannot represent value: ".concat(Object(Ie.a)(e)))},parseLiteral:function(e){if(e.kind!==rt.a.STRING&&e.kind!==rt.a.INT)throw new nt("ID cannot represent a non-string and non-integer value: "+Object(it.print)(e),e);return e.value}}),on=Object.freeze([tn,$t,Zt,nn,rn]);function an(e,t){if(yt(t)){var n=an(e,t.ofType);return(null===n||void 0===n?void 0:n.kind)===rt.a.NULL?null:n}if(null===e)return{kind:rt.a.NULL};if(void 0===e)return null;if(vt(t)){var r=t.ofType;if(function(e){if(null==e||"object"!==Wt(e))return!1;var t=e.length;return"number"===typeof t&&t>=0&&t%1===0||"function"===typeof e[Ne]}(e)){for(var i=[],o=0,a=Kt(e);o=0;i--)t(n[i])}function Jn(e){for(var t=Object.keys(e),n=t.length,r=new Array(n),i=0;i1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+s))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function Xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(i.arguments=n),i},e.is=function(e){var t=e;return xr.defined(t)&&xr.string(t.title)&&xr.string(t.command)}}(_n||(_n={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return xr.objectLiteral(t)&&xr.string(t.newText)&&cn.is(t.range)}}(wn||(wn={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return xr.defined(t)&&tr.is(t.textDocument)&&Array.isArray(t.edits)}}(On||(On={})),function(e){e.create=function(e,t){var n={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"create"===t.kind&&xr.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||xr.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||xr.boolean(t.options.ignoreIfExists)))}}(Nn||(Nn={})),function(e){e.create=function(e,t,n){var r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),r},e.is=function(e){var t=e;return t&&"rename"===t.kind&&xr.string(t.oldUri)&&xr.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||xr.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||xr.boolean(t.options.ignoreIfExists)))}}(Sn||(Sn={})),function(e){e.create=function(e,t){var n={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"delete"===t.kind&&xr.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||xr.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||xr.boolean(t.options.ignoreIfNotExists)))}}(In||(In={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return xr.string(e.kind)?Nn.is(e)||Sn.is(e)||In.is(e):On.is(e)})))}}(kn||(kn={}));var er,tr,nr,rr,ir,or,ar,sr,ur,cr,lr,fr,pr,dr,hr,vr,yr,mr,br,gr,Er,Tr,_r,wr,Or,Nr,Sr,Ir=function(){function e(e){this.edits=e}return e.prototype.insert=function(e,t){this.edits.push(wn.insert(e,t))},e.prototype.replace=function(e,t){this.edits.push(wn.replace(e,t))},e.prototype.delete=function(e){this.edits.push(wn.del(e))},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach((function(e){if(On.is(e)){var n=new Ir(e.edits);t._textEditChanges[e.textDocument.uri]=n}})):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new Ir(e.changes[n]);t._textEditChanges[n]=r})))}Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(tr.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t=e;if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new Ir(i),this._textEditChanges[t.uri]=r}return r}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new Ir(i),this._textEditChanges[e]=r}return r},e.prototype.createFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(Nn.create(e,t))},e.prototype.renameFile=function(e,t,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(Sn.create(e,t,n))},e.prototype.deleteFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(In.create(e,t))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return xr.defined(t)&&xr.string(t.uri)}}(er||(er={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return xr.defined(t)&&xr.string(t.uri)&&(null===t.version||xr.number(t.version))}}(tr||(tr={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return xr.defined(t)&&xr.string(t.uri)&&xr.string(t.languageId)&&xr.number(t.version)&&xr.string(t.text)}}(nr||(nr={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(rr||(rr={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(rr||(rr={})),function(e){e.is=function(e){var t=e;return xr.objectLiteral(e)&&rr.is(t.kind)&&xr.string(t.value)}}(ir||(ir={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(or||(or={})),function(e){e.PlainText=1,e.Snippet=2}(ar||(ar={})),function(e){e.Deprecated=1}(sr||(sr={})),function(e){e.create=function(e){return{label:e}}}(ur||(ur={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(cr||(cr={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return xr.string(t)||xr.objectLiteral(t)&&xr.string(t.language)&&xr.string(t.value)}}(lr||(lr={})),function(e){e.is=function(e){var t=e;return!!t&&xr.objectLiteral(t)&&(ir.is(t.contents)||lr.is(t.contents)||xr.typedArray(t.contents,lr.is))&&(void 0===e.range||cn.is(e.range))}}(fr||(fr={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(pr||(pr={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;o--){var a=r[o],s=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=i))throw new Error("Overlapping edit");n=n.substring(0,s)+a.newText+n.substring(u,n.length),i=s}return n}}(kr||(kr={}));var xr,Ar=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return sn.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return sn.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+11&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||De(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||De(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,r;return t=e,(n=[{key:Se,get:function(){return"Source"}}])&&Lr(t.prototype,n),r&&Lr(t,r),e}(),Cr=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),Fr=n(19),Mr=function(){function e(e){var t=new Rr.b(Cr.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==Cr.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=Vr(this,e)}while(e.kind===Cr.COMMENT);return e},e}();function Ur(e){return isNaN(e)?Cr.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Vr(e,t){var n=e.source,r=n.body,i=r.length,o=function(e,t,n){var r=e.length,i=t;for(;i=i)return new Rr.b(Cr.EOF,i,i,a,s,t);var u=r.charCodeAt(o);switch(u){case 33:return new Rr.b(Cr.BANG,o,o+1,a,s,t);case 35:return function(e,t,n,r,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new Rr.b(Cr.COMMENT,t,s,n,r,i,a.slice(t+1,s))}(n,o,a,s,t);case 36:return new Rr.b(Cr.DOLLAR,o,o+1,a,s,t);case 38:return new Rr.b(Cr.AMP,o,o+1,a,s,t);case 40:return new Rr.b(Cr.PAREN_L,o,o+1,a,s,t);case 41:return new Rr.b(Cr.PAREN_R,o,o+1,a,s,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new Rr.b(Cr.SPREAD,o,o+3,a,s,t);break;case 58:return new Rr.b(Cr.COLON,o,o+1,a,s,t);case 61:return new Rr.b(Cr.EQUALS,o,o+1,a,s,t);case 64:return new Rr.b(Cr.AT,o,o+1,a,s,t);case 91:return new Rr.b(Cr.BRACKET_L,o,o+1,a,s,t);case 93:return new Rr.b(Cr.BRACKET_R,o,o+1,a,s,t);case 123:return new Rr.b(Cr.BRACE_L,o,o+1,a,s,t);case 124:return new Rr.b(Cr.PIPE,o,o+1,a,s,t);case 125:return new Rr.b(Cr.BRACE_R,o,o+1,a,s,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){var o=e.body,a=o.length,s=t+1,u=0;for(;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new Rr.b(Cr.NAME,t,s,n,r,i,o.slice(t,s))}(n,o,a,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,r,i,o){var a=e.body,s=n,u=t,c=!1;45===s&&(s=a.charCodeAt(++u));if(48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw jr(e,u,"Invalid number, unexpected digit after 0: ".concat(Ur(s),"."))}else u=Br(e,u,s),s=a.charCodeAt(u);46===s&&(c=!0,s=a.charCodeAt(++u),u=Br(e,u,s),s=a.charCodeAt(u));69!==s&&101!==s||(c=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=Br(e,u,s),s=a.charCodeAt(u));if(46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw jr(e,u,"Invalid number, expected digit but got: ".concat(Ur(s),"."));return new Rr.b(c?Cr.FLOAT:Cr.INT,t,u,r,i,o,a.slice(t,u))}(n,o,u,a,s,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?function(e,t,n,r,i,o){var a=e.body,s=t+3,u=s,c=0,l="";for(;s=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw jr(e,i,"Invalid number, expected digit but got: ".concat(Ur(o),"."))}function Gr(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Yr(e,t){return new qr(e,t).parseDocument()}var qr=function(){function e(e,t){var n="string"===typeof e?new Pr(e):e;n instanceof Pr||De(0,"Must provide Source. Received: ".concat(Object(Ie.a)(n),".")),this._lexer=new Mr(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(Cr.NAME);return{kind:rt.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:rt.a.DOCUMENT,definitions:this.many(Cr.SOF,this.parseDefinition,Cr.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(Cr.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Cr.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(Cr.BRACE_L))return{kind:rt.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(Cr.NAME)&&(t=this.parseName()),{kind:rt.a.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(Cr.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(Cr.PAREN_L,this.parseVariableDefinition,Cr.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:rt.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Cr.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Cr.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(Cr.DOLLAR),{kind:rt.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:rt.a.SELECTION_SET,selections:this.many(Cr.BRACE_L,this.parseSelection,Cr.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(Cr.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(Cr.COLON)?(e=r,t=this.parseName()):t=r,{kind:rt.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Cr.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Cr.PAREN_L,t,Cr.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(Cr.COLON),{kind:rt.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:rt.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(Cr.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(Cr.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(Cr.NAME)?{kind:rt.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:rt.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:rt.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:rt.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case Cr.BRACKET_L:return this.parseList(e);case Cr.BRACE_L:return this.parseObject(e);case Cr.INT:return this._lexer.advance(),{kind:rt.a.INT,value:t.value,loc:this.loc(t)};case Cr.FLOAT:return this._lexer.advance(),{kind:rt.a.FLOAT,value:t.value,loc:this.loc(t)};case Cr.STRING:case Cr.BLOCK_STRING:return this.parseStringLiteral();case Cr.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:rt.a.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:rt.a.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:rt.a.NULL,loc:this.loc(t)};default:return{kind:rt.a.ENUM,value:t.value,loc:this.loc(t)}}case Cr.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:rt.a.STRING,value:e.value,block:e.kind===Cr.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:rt.a.LIST,values:this.any(Cr.BRACKET_L,(function(){return t.parseValueLiteral(e)}),Cr.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:rt.a.OBJECT,fields:this.any(Cr.BRACE_L,(function(){return t.parseObjectField(e)}),Cr.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(Cr.COLON),{kind:rt.a.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(Cr.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(Cr.AT),{kind:rt.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(Cr.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(Cr.BRACKET_R),e={kind:rt.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(Cr.BANG)?{kind:rt.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:rt.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===Cr.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(Cr.STRING)||this.peek(Cr.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(Cr.BRACE_L,this.parseOperationTypeDefinition,Cr.BRACE_R);return{kind:rt.a.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(Cr.COLON);var n=this.parseNamedType();return{kind:rt.a.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:rt.a.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:rt.a.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(Cr.AMP);do{var t;e.push(this.parseNamedType())}while(this.expectOptionalToken(Cr.AMP)||!0===(null===(t=this._options)||void 0===t?void 0:t.allowLegacySDLImplementsInterfaces)&&this.peek(Cr.NAME))}return e},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(Cr.BRACE_L)&&this._lexer.lookahead().kind===Cr.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Cr.BRACE_L,this.parseFieldDefinition,Cr.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(Cr.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:rt.a.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(Cr.PAREN_L,this.parseInputValueDef,Cr.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(Cr.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(Cr.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:rt.a.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:rt.a.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:rt.a.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(Cr.EQUALS)){this.expectOptionalToken(Cr.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(Cr.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:rt.a.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(Cr.BRACE_L,this.parseEnumValueDefinition,Cr.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:rt.a.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:rt.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(Cr.BRACE_L,this.parseInputValueDef,Cr.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===Cr.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(Cr.BRACE_L,this.parseOperationTypeDefinition,Cr.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:rt.a.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:rt.a.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:rt.a.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:rt.a.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:rt.a.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:rt.a.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:rt.a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Cr.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:rt.a.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(Cr.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(Cr.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==Ht[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new Rr.a(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw jr(this._lexer.source,t.start,"Expected ".concat(Jr(e),", found ").concat(Qr(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==Cr.NAME||t.value!==e)throw jr(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(Qr(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===Cr.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return jr(this._lexer.source,t.start,"Unexpected ".concat(Qr(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},e}();function Qr(e){var t=e.value;return Jr(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Jr(e){return function(e){return e===Cr.BANG||e===Cr.DOLLAR||e===Cr.AMP||e===Cr.PAREN_L||e===Cr.PAREN_R||e===Cr.SPREAD||e===Cr.COLON||e===Cr.EQUALS||e===Cr.AT||e===Cr.BRACKET_L||e===Cr.BRACKET_R||e===Cr.BRACE_L||e===Cr.PIPE||e===Cr.BRACE_R}(e)?'"'.concat(e,'"'):e}function Hr(e,t){return e===t||(yt(e)&&yt(t)||!(!vt(e)||!vt(t)))&&Hr(e.ofType,t.ofType)}function zr(e,t,n){return t===n||(yt(n)?!!yt(t)&&zr(e,t.ofType,n.ofType):yt(t)?zr(e,t.ofType,n):vt(n)?!!vt(t)&&zr(e,t.ofType,n.ofType):!vt(t)&&(Tt(n)&&(ft(t)||lt(t))&&e.isSubType(n,t)))}function Kr(e,t,n){return t===n||(Tt(t)?Tt(n)?e.getPossibleTypes(t).some((function(t){return e.isSubType(n,t)})):e.isSubType(t,n):!!Tt(n)&&e.isSubType(n,t))}function Wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xr(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=null,o=null;if("string"===typeof e){var a=new RegExp(e,r?"i":"g");o=a.test(n._sourceText.substr(n._pos,e.length)),i=e}else e instanceof RegExp&&(i=(o=n._sourceText.slice(n._pos).match(e))&&o[0]);return!(null==o||!("string"===typeof e||o instanceof Array&&n._sourceText.startsWith(o[0],n._pos)))&&(t&&(n._start=n._pos,i&&i.length&&(n._pos+=i.length)),o)},this.backUp=function(e){n._pos-=e},this.column=function(){return n._pos},this.indentation=function(){var e=n._sourceText.match(/\s*/),t=0;if(e&&0===e.length)for(var r=e[0],i=0;r.length>i;)9===r.charCodeAt(i)?t+=2:t++,i++;return t},this.current=function(){return n._sourceText.slice(n._start,n._pos)},this._start=0,this._pos=0,this._sourceText=t}return $r(e,[{key:"_testNextCharacter",value:function(e){var t=this._sourceText.charAt(this._pos);return"string"===typeof e?t===e:e instanceof RegExp?e.test(t):e(t)}}]),e}();function ei(e){return{ofRule:e}}function ti(e,t){return{ofRule:e,isList:!0,separator:t}}function ni(e,t){return{style:t,match:function(t){return t.kind===e}}}function ri(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}var ii,oi=function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||"\xa0"===e},ai={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},si={Document:[ti("Definition")],Definition:function(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return"FragmentDefinition";case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[ui("query"),ei(ci("def")),ei("VariableDefinitions"),ti("Directive"),"SelectionSet"],Mutation:[ui("mutation"),ei(ci("def")),ei("VariableDefinitions"),ti("Directive"),"SelectionSet"],Subscription:[ui("subscription"),ei(ci("def")),ei("VariableDefinitions"),ti("Directive"),"SelectionSet"],VariableDefinitions:[ri("("),ti("VariableDefinition"),ri(")")],VariableDefinition:["Variable",ri(":"),"Type",ei("DefaultValue")],Variable:[ri("$","variable"),ci("variable")],DefaultValue:[ri("="),"Value"],SelectionSet:[ri("{"),ti("Selection"),ri("}")],Selection:function(e,t){return"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[ci("property"),ri(":"),ci("qualifier"),ei("Arguments"),ti("Directive"),ei("SelectionSet")],Field:[ci("property"),ei("Arguments"),ti("Directive"),ei("SelectionSet")],Arguments:[ri("("),ti("Argument"),ri(")")],Argument:[ci("attribute"),ri(":"),"Value"],FragmentSpread:[ri("..."),ci("def"),ti("Directive")],InlineFragment:[ri("..."),ei("TypeCondition"),ti("Directive"),"SelectionSet"],FragmentDefinition:[ui("fragment"),ei(function(e,t){var n=e.match;return e.match=function(e){var r=!1;return n&&(r=n(e)),r&&t.every((function(t){return t.match&&!t.match(e)}))},e}(ci("def"),[ui("on")])),"TypeCondition",ti("Directive"),"SelectionSet"],TypeCondition:[ui("on"),"NamedType"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[ni("Number","number")],StringValue:[ni("String","string")],BooleanValue:[ni("Name","builtin")],NullValue:[ni("Name","keyword")],EnumValue:[ci("string-2")],ListValue:[ri("["),ti("Value"),ri("]")],ObjectValue:[ri("{"),ti("ObjectField"),ri("}")],ObjectField:[ci("attribute"),ri(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NonNullType"},ListType:[ri("["),"Type",ri("]"),ei(ri("!"))],NonNullType:["NamedType",ei(ri("!"))],NamedType:[(ii="atom",{style:ii,match:function(e){return"Name"===e.kind},update:function(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[ri("@","meta"),ci("meta"),ei("Arguments")],SchemaDef:[ui("schema"),ti("Directive"),ri("{"),ti("OperationTypeDef"),ri("}")],OperationTypeDef:[ci("keyword"),ri(":"),ci("atom")],ScalarDef:[ui("scalar"),ci("atom"),ti("Directive")],ObjectTypeDef:[ui("type"),ci("atom"),ei("Implements"),ti("Directive"),ri("{"),ti("FieldDef"),ri("}")],Implements:[ui("implements"),ti("NamedType")],FieldDef:[ci("property"),ei("ArgumentsDef"),ri(":"),"Type",ti("Directive")],ArgumentsDef:[ri("("),ti("InputValueDef"),ri(")")],InputValueDef:[ci("attribute"),ri(":"),"Type",ei("DefaultValue"),ti("Directive")],InterfaceDef:[ui("interface"),ci("atom"),ti("Directive"),ri("{"),ti("FieldDef"),ri("}")],UnionDef:[ui("union"),ci("atom"),ti("Directive"),ri("="),ti("UnionMember",ri("|"))],UnionMember:["NamedType"],EnumDef:[ui("enum"),ci("atom"),ti("Directive"),ri("{"),ti("EnumValueDef"),ri("}")],EnumValueDef:[ci("string-2"),ti("Directive")],InputDef:[ui("input"),ci("atom"),ti("Directive"),ri("{"),ti("InputValueDef"),ri("}")],ExtendDef:[ui("extend"),"ObjectTypeDef"],DirectiveDef:[ui("directive"),ri("@","meta"),ci("meta"),ei("ArgumentsDef"),ui("on"),ti("DirectiveLocation",ri("|"))],DirectiveLocation:[ci("string-2")]};function ui(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function ci(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}function li(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:function(e){return e.eatWhile(oi)},lexRules:ai,parseRules:si,editorConfig:{}};return{startState:function(){var t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return hi(e.parseRules,t,"Document"),t},token:function(t,n){return fi(t,n,e)}}}function fi(e,t,n){var r=n.lexRules,i=n.parseRules,o=n.eatWhitespace,a=n.editorConfig;if(t.rule&&0===t.rule.length?vi(t):t.needsAdvance&&(t.needsAdvance=!1,yi(t,!0)),e.sol()){var s=a&&a.tabSize||2;t.indentLevel=Math.floor(e.indentation()/s)}if(o(e))return"ws";var u=function(e,t){for(var n=Object.keys(e),r=0;r0&&l[l.length-1]=t.character)return n=a,r=Object.assign({},o),i=e.current(),"BREAK"}));return{start:o.start,end:o.end,string:i||o.string,state:r||o.state,style:n||o.style}}function _i(e,t){for(var n=e.split("\n"),r=li(),i=r.startState(),o="",a=new Zr(""),s=0;s=e.character:r.start.line<=e.line&&r.end.line>=e.line},this.start=t,this.end=n}return $r(e,[{key:"setStart",value:function(e,t){this.start=new Ni(e,t)}},{key:"setEnd",value:function(e,t){this.end=new Ni(e,t)}}]),e}(),Ni=function(){function e(t,n){var r=this;Wr(this,e),this.lessThanOrEqualTo=function(e){return r.line0)return[[t,e.map((function(e){return e[0]}))],e.reduce((function(e,t){var n=t[1];return e.concat(n)}),[n]),e.reduce((function(e,t){var n=t[2];return e.concat(n)}),[r])]}(function(e,t,n,r,i,o,a,s){var u=[],c=fo(e,t,i,o),l=c[0],f=c[1],p=fo(e,t,a,s),d=p[0],h=p[1];if(co(e,u,t,n,r,l,d),0!==h.length)for(var v=0;v1&&e.reportError(new nt("This anonymous operation must be the only defined operation.",n))}}},function(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new nt(t.name?'Subscription "'.concat(t.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}},ji,function(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var r=Li(e.getSchema(),n);if(r&&!Et(r)){var i=Object(it.print)(n);e.reportError(new nt('Fragment cannot condition on non composite type "'.concat(i,'".'),n))}}},FragmentDefinition:function(t){var n=Li(e.getSchema(),t.typeCondition);if(n&&!Et(n)){var r=Object(it.print)(t.typeCondition);e.reportError(new nt('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(r,'".'),t.typeCondition))}}}},function(e){return{VariableDefinition:function(t){var n=Li(e.getSchema(),t.type);if(n&&!mt(n)){var r=t.variable.name.value,i=Object(it.print)(t.type);e.reportError(new nt('Variable "$'.concat(r,'" cannot be non-input type "').concat(i,'".'),t.type))}}}},function(e){return{Field:function(t){var n=e.getType(),r=t.selectionSet;if(n)if(gt(kt(n))){if(r){var i=t.name.value,o=Object(Ie.a)(n);e.reportError(new nt('Field "'.concat(i,'" must not have a selection since type "').concat(o,'" has no subfields.'),r))}}else if(!r){var a=t.name.value,s=Object(Ie.a)(n);e.reportError(new nt('Field "'.concat(a,'" of type "').concat(s,'" must have a selection of subfields. Did you mean "').concat(a,' { ... }"?'),t))}}}},function(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var r=e.getSchema(),i=t.name.value,o=Le("to use an inline fragment on",function(e,t,n){if(!Tt(t))return[];for(var r=new Set,i=Object.create(null),o=0,a=e.getPossibleTypes(t);o1)for(var l=0;l0&&e.reportError(new nt("Must provide only one schema definition.",t)),++a)}}},function(e){var t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){for(var i,o=null!==(i=t.operationTypes)&&void 0!==i?i:[],a=0;a1&&"_"===e[0]&&"_"===e[1]?new nt('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.')):Oo.test(e)?void 0:new nt('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}function So(e,t){for(var n=0;n0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case rt.a.SELECTION_SET:var n=kt(this.getType());this._parentTypeStack.push(Et(n)?n:void 0);break;case rt.a.FIELD:var r,i,o=this.getParentType();o&&(r=this._getFieldDef(t,o,e))&&(i=r.type),this._fieldDefStack.push(r),this._typeStack.push(bt(i)?i:void 0);break;case rt.a.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case rt.a.OPERATION_DEFINITION:var a;switch(e.operation){case"query":a=t.getQueryType();break;case"mutation":a=t.getMutationType();break;case"subscription":a=t.getSubscriptionType()}this._typeStack.push(lt(a)?a:void 0);break;case rt.a.INLINE_FRAGMENT:case rt.a.FRAGMENT_DEFINITION:var s=e.typeCondition,u=s?Li(t,s):kt(this.getType());this._typeStack.push(bt(u)?u:void 0);break;case rt.a.VARIABLE_DEFINITION:var c=Li(t,e.type);this._inputTypeStack.push(mt(c)?c:void 0);break;case rt.a.ARGUMENT:var l,f,p,d=null!==(l=this.getDirective())&&void 0!==l?l:this.getFieldDef();d&&(f=oo(d.args,(function(t){return t.name===e.name.value})))&&(p=f.type),this._argument=f,this._defaultValueStack.push(f?f.defaultValue:void 0),this._inputTypeStack.push(mt(p)?p:void 0);break;case rt.a.LIST:var h=St(this.getInputType()),v=vt(h)?h.ofType:h;this._defaultValueStack.push(void 0),this._inputTypeStack.push(mt(v)?v:void 0);break;case rt.a.OBJECT_FIELD:var y,m,b=kt(this.getInputType());ht(b)&&(m=b.getFields()[e.name.value])&&(y=m.type),this._defaultValueStack.push(m?m.defaultValue:void 0),this._inputTypeStack.push(mt(y)?y:void 0);break;case rt.a.ENUM:var g,E=kt(this.getInputType());dt(E)&&(g=E.getValue(e.value)),this._enumValue=g}},t.leave=function(e){switch(e.kind){case rt.a.SELECTION_SET:this._parentTypeStack.pop();break;case rt.a.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case rt.a.DIRECTIVE:this._directive=null;break;case rt.a.OPERATION_DEFINITION:case rt.a.INLINE_FRAGMENT:case rt.a.FRAGMENT_DEFINITION:this._typeStack.pop();break;case rt.a.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case rt.a.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case rt.a.LIST:case rt.a.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case rt.a.ENUM:this._enumValue=null}},e}();function Ho(e,t,n){var r=n.name.value;return r===Un.name&&e.getQueryType()===t?Un:r===Vn.name&&e.getQueryType()===t?Vn:r===Bn.name&&Et(t)?Bn:lt(t)||ft(t)?t.getFields()[r]:void 0}function zo(e,t){return{enter:function(n){e.enter(n);var r=Object(Dr.a)(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),Object(Rr.c)(i)&&e.enter(i)),i}},leave:function(n){var r,i=Object(Dr.a)(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}}function Ko(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Wo=function(){function e(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}var t=e.prototype;return t.reportError=function(e){this._onError(e)},t.getDocument=function(){return this._ast},t.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce((function(e,t){return t.kind===rt.a.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e}),Object.create(null))),t[e]},t.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var r=0,i=n.pop().selections;r2&&void 0!==arguments[2]?arguments[2]:To,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Jo(e),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{maxErrors:void 0};t||De(0,"Must provide document."),Do(e);var o=Object.freeze({}),a=[],s=new Xo(e,t,r,(function(e){if(null!=i.maxErrors&&a.length>=i.maxErrors)throw a.push(new nt("Too many validation errors, error limit reached. Validation aborted.")),o;a.push(e)})),u=Object(Dr.c)(n.map((function(e){return e(s)})));try{Object(Dr.b)(t,zo(r,u))}catch(c){if(c!==o)throw c}return a}function Zo(e,t,n,r){var i=To.filter((function(e){return e!==Ci&&e!==Di&&(!r||e!==Pi)}));return n&&Array.prototype.push.apply(i,n),$o(e,t,i).filter((function(e){if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){var t=e.nodes[0];if(t&&t.kind===rt.a.DIRECTIVE){var n=t.name.value;if("arguments"===n||"argumentDefinitions"===n)return!1}}return!0}))}var ea,ta=n(11),na=n.n(ta);function ra(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ia(e){return{Field:function(t){var n=e.getFieldDef(),r=e.getParentType();r&&null!=(null===n||void 0===n?void 0:n.deprecationReason)&&e.reportError(new nt("The field ".concat(r.name,".").concat(n.name," is deprecated. ")+n.deprecationReason,t))},EnumValue:function(t){var n=kt(e.getInputType()),r=e.getEnumValue();n&&null!=(null===r||void 0===r?void 0:r.deprecationReason)&&e.reportError(new nt('The enum value "'.concat(n.name,".").concat(r.name,'" is deprecated. ')+r.deprecationReason,t))}}}function oa(e,t){return $o(e,t,[ia])}var aa="Warning",sa="Information",ua="Hint",ca=(ra(ea={},"Error",1),ra(ea,aa,2),ra(ea,sa,3),ra(ea,ua,4),ea);function la(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=null;try{i=Yr(e)}catch(a){var o=ha(a.locations[0],e);return[{severity:ca.Error,message:a.message,source:"GraphQL: Syntax",range:o}]}return fa(i,t,n,r)}function fa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(!t)return[];var i=pa(Zo(t,e,n,r),(function(e){return da(e,ca.Error,"Validation")})),o=oa?pa(oa(t,e),(function(e){return da(e,ca.Warning,"Deprecation")})):[];return i.concat(o)}function pa(e,t){return Array.prototype.concat.apply([],e.map(t))}function da(e,t,n){if(!e.nodes)return[];var r=[];return e.nodes.forEach((function(i){var o="Variable"!==i.kind&&"name"in i&&void 0!==i.name?i.name:"variable"in i&&void 0!==i.variable?i.variable:i;if(o){na()(e.locations,"GraphQL validation error requires locations.");var a=e.locations[0],s=function(e){var t=e.loc;return na()(t,"Expected ASTNode to have a location."),t}(o),u=a.column+(s.end-s.start);r.push({source:"GraphQL: ".concat(n),message:e.message,severity:t,range:new Oi(new Ni(a.line-1,a.column-1),new Ni(a.line-1,u))})}})),r}function ha(e,t){var n=li(),r=n.startState(),i=t.split("\n");na()(i.length>=e.line,"Query text must have more lines than where the error happened");for(var o=null,a=0;a1?n-1:0),i=1;i1?u-1:0),l=1;l2&&void 0!==arguments[2]?arguments[2]:{},r=n.blocked,i=n.upgrade,o=n.blocking,a=n.terminated,s=indexedDB.open(e,t),u=Ma(s);return i&&s.addEventListener("upgradeneeded",(function(e){i(Ma(s.result),e.oldVersion,e.newVersion,Ma(s.transaction))})),r&&s.addEventListener("blocked",(function(){return r()})),u.then((function(e){a&&e.addEventListener("close",(function(){return a()})),o&&e.addEventListener("versionchange",(function(){return o()}))})).catch((function(){})),u}("bcp-schema",1,{upgrade:function(e){e.createObjectStore("document"),e.createObjectStore("schema")}})}function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $a(e){for(var t=1;t-1};function Ns(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function Ss(e){return"string"!==typeof e&&(e=String(e)),e}function Is(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return gs&&(t[Symbol.iterator]=function(){return t}),t}function ks(e){this.map={},e instanceof ks?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function xs(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function As(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function Ds(e){var t=new FileReader,n=As(t);return t.readAsArrayBuffer(e),n}function js(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Rs(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:Es&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Ts&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:bs&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():_s&&Es&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=js(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):_s&&(ArrayBuffer.prototype.isPrototypeOf(e)||Os(e))?this._bodyArrayBuffer=js(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):bs&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Es&&(this.blob=function(){var e=xs(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=xs(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(Ds)}),this.text=function(){var e=xs(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=As(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Cs(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function Fs(e){var t=new ks;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t}function Ms(e,t){if(!(this instanceof Ms))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new ks(t.headers),this.url=t.url||"",this._initBody(e)}Ps.prototype.clone=function(){return new Ps(this,{body:this._bodyInit})},Rs.call(Ps.prototype),Rs.call(Ms.prototype),Ms.prototype.clone=function(){return new Ms(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ks(this.headers),url:this.url})},Ms.error=function(){var e=new Ms(null,{status:0,statusText:""});return e.type="error",e};var Us=[301,302,303,307,308];Ms.redirect=function(e,t){if(-1===Us.indexOf(t))throw new RangeError("Invalid status code");return new Ms(null,{status:t,headers:{location:e}})};var Vs=ms.DOMException;try{new Vs}catch(Tc){(Vs=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Vs.prototype.constructor=Vs}function Bs(e,t){return new Promise((function(n,r){var i=new Ps(e,t);if(i.signal&&i.signal.aborted)return r(new Vs("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}o.onload=function(){var e={status:o.status,statusText:o.statusText,headers:Fs(o.getAllResponseHeaders()||"")};e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL");var t="response"in o?o.response:o.responseText;setTimeout((function(){n(new Ms(t,e))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new Vs("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&ms.location.href?ms.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(Es?o.responseType="blob":_s&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!==typeof t.headers||t.headers instanceof ks?i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,Ss(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",a)}),o.send("undefined"===typeof i._bodyInit?null:i._bodyInit)}))}function Gs(e){return(Gs="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})(e)}function Ys(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(Tc){i=!0,o=Tc}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||Qs(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qs(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Qs(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Qs(e,t){if(e){if("string"===typeof e)return Js(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Js(e,t):void 0}}function Js(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)n=!0,function(e,t,n){var r=e.body.getReader(),i=new TextDecoder;new fu(t,n).startReading(r,i,e)}(e,function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.split(";"),r=qs(n);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=(i||"").trim().split("="),a=Ys(o,2),s=a[0],u=a[1];if("boundary"===s&&u)return'"'===u[0]&&'"'===u[u.length-1]?u.substr(1,u.length-2):u}}catch(Tc){r.e(Tc)}finally{r.f()}return"-"}(r),t)}return{isMultipart:n,responseOrError:e}}var fu=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.boundary=t,this.observable=n,Ws(this,"actualValue",""),Ws(this,"buffer",[]),Ws(this,"contentEnd",void 0),Ws(this,"crlf","\r\n"),Ws(this,"delimiter",void 0),Ws(this,"headers",{contentLength:0,contentType:""}),Ws(this,"partCount",0),Ws(this,"position",0),Ws(this,"receivedTerminator",!1),Ws(this,"state","delimiter"),Ws(this,"terminator",void 0),this.contentEnd="".concat(this.crlf).concat(this.crlf),this.delimiter="--".concat(this.boundary).concat(this.crlf),this.terminator="--".concat(this.boundary,"--").concat(this.crlf)}var t,n,r;return t=e,(n=[{key:"startReading",value:function(e,t,n){var r=this,i=function(){var o=$s($.a.mark((function o(a){var s,u,c;return $.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(s=a.value,!a.done&&!r.receivedTerminator){o.next=5;break}r.observable.onComplete(r.partCount),o.next=9;break;case 5:u="";try{u=t.decode(s),console.log(u),r.readBuffer(u)}catch(l){c=vu(n,l,""),r.observable.onError(c)}return o.next=9,e.read().then(i);case 9:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}();return e.read().then(i)}},{key:"readBuffer",value:function(e){for(;e.length>this.position&&!this.receivedTerminator;)switch(this.state){case"delimiter":this.readDelimiterOrTerminator(e);break;case"headers":this.readHeaders(e);break;case"content":this.readContent(e)}this.position=0}},{key:"readDelimiterOrTerminator",value:function(e){if(this.actualValue===this.delimiter)this.state="headers",this.partCount++;else if(this.actualValue===this.terminator)this.receivedTerminator=!0;else{if(this.terminator[this.actualValue.length]===e[this.position])return void(this.actualValue+=e[this.position++]);if(this.delimiter[this.actualValue.length]===e[this.position])return void(this.actualValue+=e[this.position++])}this.actualValue=""}},{key:"readHeaders",value:function(e){if(this.actualValue===this.crlf)if(0===this.headers.contentLength||""===this.headers.contentType){var t=du(new Error("Invalid MultiPart Response, no content-length and/or no content-type header"),this.actualValue,this.buffer[0],this.position);this.observable.onError(t,this.partCount-1),this.state="delimiter",this.headers={contentLength:0,contentType:""}}else this.state="content";else{if(!this.actualValue.endsWith(this.crlf))return void(this.actualValue+=e[this.position++]);try{this.parseHeader()}catch(r){var n=du(r,this.actualValue,this.buffer[0],this.position);this.observable.onError(n,this.partCount-1),this.state="delimiter",this.headers={contentLength:0,contentType:""}}}this.actualValue=""}},{key:"readContent",value:function(e){if(this.actualValue===this.contentEnd)this.state="delimiter",this.headers={contentLength:0,contentType:""};else{if(this.actualValue.length!==this.headers.contentLength)return void(this.actualValue+=e[this.position++]);try{var t=JSON.parse(this.actualValue);this.observable.onNext({content:t,headers:this.headers},this.partCount-1)}catch(r){var n=du(r,this.actualValue,this.buffer[0],this.position);this.observable.onError(n,this.partCount-1),this.state="delimiter",this.headers={contentLength:0,contentType:""}}}this.actualValue=""}},{key:"parseHeader",value:function(){this.parseMultipartPartContentLength()||this.parseMultipartPartContentType()}},{key:"parseMultipartPartContentLength",value:function(){if(-1!==this.actualValue.toLowerCase().indexOf("content-length:")){var e=this.actualValue.split(":");if(2!==e.length)throw new Error("Invalid MultiPart Response, could not parse content-length");var t=parseInt(e[1]);if(isNaN(t))throw new Error("Invalid MultiPart Response, could not parse content-length");return this.headers.contentLength=t,!0}return!1}},{key:"parseMultipartPartContentType",value:function(){if(-1!==this.actualValue.toLowerCase().indexOf("content-type:")){var e=this.actualValue.split(":");if(2!==e.length)throw new Error("Invalid MultiPart Response, could not parse content-type");if(this.headers.contentType=e[1].trim(),-1===this.headers.contentType.toLowerCase().indexOf("application/json; charset=utf-8"))throw new Error("Invalid content type");return!0}return!1}}])&&Hs(t.prototype,n),r&&Hs(t,r),e}();function pu(e){return e.text().then((function(t){try{var n=JSON.parse(t);return"object"===Gs(n)&&(n.data||n.errors)?{data:n}:{error:function(e,t,n){var r=new Error(n);return r.name="ServerError",r.statusCode=e.status,r.statusText=e.statusText,r.bodyText=t,r}(e,t,"Response not successful: Received status code ".concat(e.status))}}catch(r){return{error:vu(e,r,t)}}}))}function du(e,t,n,r){var i=e;return i.name="MultipartParseError",i.actualValue=t,i.chunk=n,i.position=r,i}function hu(e,t){var n=new Error(e);return n.name="ServerNetworkError",n.statusText=t,n}function vu(e,t,n){var r=t;return r.name="ServerParseError",r.statusCode=e.status,r.statusText=e.statusText,r.bodyText=n,r}function yu(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"introspection_phase_2"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__schema"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"queryType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"mutationType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"subscriptionType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"types"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FullType"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"directives"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"args"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InputValue"},directives:[]}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FullType"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"__Type"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDeprecated"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"args"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InputValue"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TypeRef"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"isDeprecated"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deprecationReason"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"inputFields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InputValue"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"interfaces"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TypeRef"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"enumValues"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDeprecated"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDeprecated"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deprecationReason"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"possibleTypes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TypeRef"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"InputValue"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"__InputValue"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TypeRef"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"defaultValue"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TypeRef"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"__Type"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ofType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ofType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ofType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ofType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ofType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:1138,source:{body:"query introspection_phase_2 {\n __schema {\n queryType {\n name\n }\n mutationType {\n name\n }\n subscriptionType {\n name\n }\n types {\n ...FullType\n }\n directives {\n name\n description\n args {\n ...InputValue\n }\n }\n }\n}\n\nfragment FullType on __Type {\n kind\n name\n description\n fields(includeDeprecated: true) {\n name\n description\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n description\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n}\n\nfragment InputValue on __InputValue {\n name\n description\n type {\n ...TypeRef\n }\n defaultValue\n}\n\nfragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},n=t.definitions.find((function(e){return"OperationDefinition"===e.kind})).selectionSet.selections.find((function(e){return"Field"===e.kind}));return function(e,t){var n=[];e.selectionSet.selections.forEach((function(e){return n.push(e)})),t.isRepeatable&&n.push(mu("isRepeatable"));t.locations?n.push(mu("locations")):(n.push(mu("onField")),n.push(mu("onFragment")),n.push(mu("onOperation")));e.selectionSet.selections=n}(n.selectionSet.selections.find((function(e){return"Field"===e.kind&&"directives"===e.name.value})),e),function(e,t){if(!t.subscription){var n=[];e.selectionSet.selections.forEach((function(e){"Field"===e.kind&&"subscriptionType"===e.name.value||n.push(e)})),e.selectionSet.selections=n}}(n,e),t}function mu(e){return{kind:"Field",name:{kind:"Name",value:e},directives:[],arguments:[]}}function bu(e){var t=e.directive;return{isRepeatable:!!t.fields.find((function(e){return"isRepeatable"===e.name})),locations:!!t.fields.find((function(e){return"locations"===e.name})),subscription:!!e.schema.fields.find((function(e){return"subscriptionType"===e.name}))}}function gu(e,t,n,r,i){e.sendMessage(new C.Message({type:"new-history-item",payload:{documentId:t,operationFailed:n,operationName:i,operationType:r}}))}function Eu(e,t,n){e.sendMessage(new C.Message({type:"new-result",payload:{documentId:t,result:n}}))}function Tu(e,t,n,r){e.sendMessage(new C.Message({type:"new-result-patch",payload:{documentId:t,resultId:n,patch:r}}))}function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wu(e){for(var t=1;t0){var i=r.documentId,o=we(i)||{};this.executeCore(e,{documentId:i,httpOptions:{headers:o,uri:r.schemaEndpoint,useGET:"GET"===r.httpMethod,credentials:r.credentials},operationName:n},t)}}},{key:"executeCore",value:function(){var e,t=(e=$.a.mark((function e(t,n,i){var o,a,s,u,c,l,f,p,d,h,v,y,m,b,g,E,T,_=this;return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.httpOptions,a=n.documentId,s=n.operationName,!(u=de(a))){e.next=22;break}return l=Object(r.e)(),f=Iu(a)||{},this.runningOperations=xu(xu({},this.runningOperations),{},ju({},a,{operationName:s,operationType:i})),t.sendMessage(new C.Message({type:"operation-execution",payload:{documentId:a,isExecuting:!0,isSubscription:!1}})),ys(t,s?"Starting ".concat(i,' operation "').concat(s,'".'):"Starting ".concat(i," operation."),void 0,a),p=Object(r.b)(),d="query"===i?"Query":"Mutation",h=s?'"'.concat(s,'" '):"",e.next=13,eu(o,{operationName:s,query:u,variables:f},{onComplete:function(e){ys(t,"Patch completed (".concat(e," patches received)."),void 0,a),_.stop(t,a)},onError:function(e,n){Tu(t,a,p,{payload:e,success:!1,timestamp:Object(r.e)()}),vs(t,n?"Patch ".concat(n," failed."):"Multipart error.",e,a)},onNext:function(e,n){Tu(t,a,p,{payload:e.content,success:!0,timestamp:Object(r.e)()}),ys(t,"Received patch ".concat(n,"."),e,a)}});case 13:v=e.sent,y=Object(r.e)(),m=v.response,b=m.parsedBody,g=m.error,E=!!g||!!(null===(c=b.errors)||void 0===c?void 0:c.length)||!1,gu(t,a,E,i,s),Eu(t,a,{id:p,payload:v,duration:Object(r.c)(l,y),operationName:s,operationType:i,success:!E,timestamp:l}),T="".concat(d," operation ").concat(h),E?vs(t,"".concat(T," failed."),g||b.errors,a):ys(t,"".concat(T," succeeded."),void 0,a),v.isMultipart||this.stop(t,a);case 22:case"end":return e.stop()}}),e,this)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Au(o,r,i,a,s,"next",e)}function s(e){Au(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e,n,r){return t.apply(this,arguments)}}()},{key:"stop",value:function(e,t){this.runningOperations=xu(xu({},this.runningOperations),{},ju({},t,void 0)),e.sendMessage(new C.Message({type:"operation-execution",payload:{documentId:t,isExecuting:!1,isSubscription:!1}}))}}])&&Du(t.prototype,n),i&&Du(t,i),e}(),Lu=n(63);function Pu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cu(e){for(var t=1;t0||!1;i?vs(e,"New subscription result arrived.",t.errors,o):ys(e,"New subscription result arrived.",void 0,o),Eu(e,o,{id:Object(r.b)(),payload:{raw:t},duration:0,operationName:s,operationType:n,success:!i,timestamp:Object(r.e)()})},error:function(t){vs(e,"A subscription result ended up in an error.",t,o),Eu(e,o,{id:Object(r.b)(),payload:{error:t},duration:0,operationName:s,operationType:n,success:!1,timestamp:Object(r.e)()})},complete:function(){ys(e,s?'Unsubscribing from subscription "'.concat(s,'".'):"Unsubscribing from subscription.",void 0,o)}})}}}])&&Fu(t.prototype,n),i&&Fu(t,i),e}(),Vu=new Ru,Bu=new Uu,Gu=new Map([["query",Vu],["mutation",Vu],["subscription",Bu]]);function Yu(){Ec("cancel-operation-execution",(function(e,t){!function(e){Vu.isExecuting(e)&&Vu.cancel(e),Bu.isExecuting(e)&&Bu.cancel(e)}(t)})),Ec("begin-operation-execution",(function(e,t){!function(e,t){if(!Vu.isExecuting(e)&&!Bu.isExecuting(e)){var n=de(e.session.documentId);if(n){var r=function(e,t){var n=e.definitions.map((function(e){return e})).filter((function(e){return!!e})),r=1===n.length?n[0]:n.find((function(e){return e.name&&e.name.value===t||!1}));return r?r.operation:"query"}(n,t),i=Gu.get(r);i&&i.execute(e,r,t)}}}(t,e.payload.operationName)}))}function qu(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function Qu(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){qu(o,r,i,a,s,"next",e)}function s(e){qu(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Ju(){Ec("fetch-schema-field-type",function(){var e=Qu($.a.mark((function e(t,n){var r,i,o,a,s;return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,i=t.payload,o=t.type,e.next=3,rs(n);case 3:a=e.sent,s=void 0,a&&(s=Hu(a.schema,i.typeName,i.fieldName)),n.sendMessage(new C.Message({id:r,type:o,payload:s}));case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),Ec("fetch-schema-field-types",function(){var e=Qu($.a.mark((function e(t,n){var r,i,o,a,s;return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,i=t.payload,o=t.type,e.next=3,rs(n);case 3:a=e.sent,s=void 0,a&&(s=zu(a.schema,i)),n.sendMessage(new C.Message({id:r,type:o,payload:s}));case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),Ec("fetch-schema-type",function(){var e=Qu($.a.mark((function e(t,n){var r,i,o,a,s;return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,i=t.payload,o=t.type,e.next=3,rs(n);case 3:a=e.sent,s=void 0,a&&(s=Wu(a.schema,i)),n.sendMessage(new C.Message({id:r,type:o,payload:s}));case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),Ec("fetch-schema-types",function(){var e=Qu($.a.mark((function e(t,n){var r,i,o,a;return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,i=t.type,e.next=3,rs(n);case 3:o=e.sent,a=void 0,o&&(a=Ku(o.schema)),n.sendMessage(new C.Message({id:r,type:i,payload:a}));case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}function Hu(e,t,n){var r=e.getType(t);if(r)return function(e,t,n){if(t instanceof qt){var r=t.getFields()[n];if(r)return{id:"".concat(t.name,"-").concat(r.name),name:r.name,kind:"field",description:r.description||void 0,valueType:Zu(e,r.type),defaultValue:r.defaultValue}}else if(t instanceof Ut||t instanceof jt){var i=t.getFields()[n];if(i){var o=0===i.args.length?void 0:i.args.map((function(n){var r=Zu(e,n.type);return{id:"".concat(t.name,"-").concat(i.name,"-").concat(n.name),name:n.name,kind:"argument",description:n.description||void 0,defaultValue:n.defaultValue||void 0,type:r}}));return{id:"".concat(t.name,"-").concat(i.name),name:i.name,kind:"field",description:i.description||void 0,arguments:o,valueType:Zu(e,i.type),isDeprecated:i.isDeprecated,deprecationReason:i.deprecationReason||void 0}}}return}(e,r,n)}function zu(e,t){var n=e.getType(t);if(n)return function(e,t){var n=[];if(t instanceof qt){var r=t.getFields();for(var i in r){var o=r[i];n.push({id:"".concat(t.name,"-").concat(o.name),name:o.name,kind:"field",description:o.description||void 0,valueType:Zu(e,o.type),defaultValue:o.defaultValue})}}else if(t instanceof Ut||t instanceof jt){var a=t.getFields(),s=function(r){var i=a[r],o=0===i.args.length?void 0:i.args.map((function(n){var r=Zu(e,n.type);return{id:"".concat(t.name,"-").concat(i.name,"-").concat(n.name),name:n.name,kind:"argument",description:n.description||void 0,defaultValue:n.defaultValue||void 0,type:r}}));n.push({id:"".concat(t.name,"-").concat(i.name),name:i.name,kind:"field",description:i.description||void 0,arguments:o,valueType:Zu(e,i.type),isDeprecated:i.isDeprecated,deprecationReason:i.deprecationReason||void 0})};for(var u in a)s(u)}return n}(e,n)}function Ku(e){var t=[],n=e.getQueryType(),r=e.getMutationType(),i=e.getSubscriptionType();return n&&t.push($u(e,n)),r&&t.push($u(e,r)),i&&t.push($u(e,i)),0===t.length?void 0:t}function Wu(e,t){var n=e.getType(t);if(n)return $u(e,n)}function Xu(e){return e instanceof Gt?"enum":e instanceof qt?"input-object":e instanceof Ut?"interface":e instanceof Dt?"scalar":e instanceof Vt?"union":e instanceof _t||e instanceof wt?Xu(e.ofType):"object"}function $u(e,t){var n,r,i;return t instanceof Gt&&(n=t.getValues().map((function(e){return{id:"".concat(t.name,"-").concat(e.name),name:e.name,kind:"enum-value",description:e.description||void 0,value:e.value,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason||void 0}}))),t instanceof Ut&&(i=e.getPossibleTypes(t).map((function(t){return Zu(e,t)}))),t instanceof jt&&(r=t.getInterfaces().map((function(e){return{id:e.name,name:e.name,kind:"type",description:e.description||void 0,typeKind:"interface"}}))),t instanceof Vt&&(i=t.getTypes().map((function(t){return Zu(e,t)}))),{id:t.name,name:t.name,kind:"type",description:t.description||void 0,typeKind:Xu(t),enumValues:n,interfaces:r,types:i}}function Zu(e,t){var n,r=!1,i=!0;return t instanceof wt?(i=!1,t.ofType instanceof _t?(n=t.ofType.ofType,r=!0):n=t.ofType):t instanceof _t?(n=t.ofType,r=!0):n=t,{kind:"value-type",isList:r,isOptional:i,type:n instanceof _t||n instanceof wt?Zu(e,n):$u(e,n)}}function ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tc(e){for(var t=1;t0&&!t.enableSchemaPolling){var n={headers:we(t.documentId)||{},uri:t.schemaEndpoint,useGETForQueries:"GET"===t.httpMethod,credentials:t.credentials};dc(e.id,{running:!0}),ys(e,"Reload schema."),hc(e,n)}}}(t)}))}function sc(){return(sc=ic($.a.mark((function e(t){var n,r,i,o;return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(lc(t.id).running){e.next=14;break}if(!((n=t.session).schemaEndpoint.length>0)){e.next=13;break}return r=we(n.documentId)||{},i={headers:r,uri:n.schemaEndpoint,useGETForQueries:"GET"===n.httpMethod,credentials:n.credentials},e.next=8,rs(t);case 8:(o=e.sent)&&(ds(t,{endpoint:n.schemaEndpoint,exists:!0,hash:o.hash,hasMutationType:!!o.schema.getMutationType(),hasSubscriptionType:!!o.schema.getSubscriptionType()}),ys(t,"Fetched schema from cache.")),n.enableSchemaPolling?(dc(t.id,{running:!0}),ys(t,"Started schema polling."),vc(t,i,n.schemaPollingInterval||2e4)):o||(dc(t.id,{running:!0}),ys(t,"Started schema fetching."),hc(t,i)),e.next=14;break;case 13:ds(t,{endpoint:n.schemaEndpoint,exists:!1,hasMutationType:!1,hasSubscriptionType:!1});case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function uc(e,t,n,r){return cc.apply(this,arguments)}function cc(){return(cc=ic($.a.mark((function e(t,n,r,i){var o,a;return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.currentRequestId,e.next=3,ou(i);case 3:if(a=e.sent,r!==o){e.next=14;break}if(!fc(a)){e.next=11;break}return e.next=8,os(t,a);case 8:ys(t,"Fetched schema successfully."),e.next=14;break;case 11:return ds(t,{endpoint:i.uri,exists:!1,hasMutationType:!1,hasSubscriptionType:!1}),vs(t,"Fetching schema failed.",a),e.abrupt("return",!1);case 14:return e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function lc(e){return oc.get(e)||{fetching:!1,running:!1}}function fc(e){return"__schema"in e}function pc(e,t){e.sendMessage(new C.Message({type:"is-schema-fetching",payload:t}))}function dc(e,t){var n=tc(tc({},lc(e)),t);return oc.set(e,n),n}function hc(e,t){var n=e.id,i=e.session.documentId,o=Object(r.b)(),a=new re((function(r){var i=lc(n);return r>0?ys(e,"Retry schema fetching."):(i=dc(n,{fetching:!0}),pc(e,i.fetching)),uc(e,i,o,t)}));dc(n,{backoff:a,currentId:i,currentRequestId:o}),a.start((function(){var t=lc(n);o===t.currentRequestId&&yc(e)}))}function vc(e,t,n){var i=Object(r.b)(),o=dc(e.id,{currentId:e.session.documentId,currentRequestId:i,timeout:window.setTimeout((function(){vc(e,t,n)}),n)});uc(e,o,i,t)}function yc(e){var t=lc(e.id);t.backoff&&t.backoff.stop(),t.timeout&&window.clearTimeout(t.timeout),pc(e,(t=dc(e.id,{backoff:void 0,currentId:void 0,currentRequestId:void 0,fetching:!1,running:!1,timeout:void 0})).fetching)}var mc=[],bc=[];function gc(e){var t=new me(e);mc.push(t),fe(),_e(),Su(),fs(),Ju(),Yu(),ac(),e.onmessage=function(e){var n=e.data;!function(e,t){bc.filter((function(e){return e.type===t.type})).forEach((function(n){return(0,n.handle)(t,e)}))}(t,n)},e.start()}function Ec(e,t){bc.push({type:e,handle:t})}self.onconnect=function(e){return gc(e.ports[0])}}]);
\ No newline at end of file
diff --git a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/service-worker.js b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/service-worker.js
index a3f68df3af7..52482ad37f5 100644
--- a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/service-worker.js
+++ b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/service-worker.js
@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
- "./precache-manifest.f37c2999fb77e37d0187bb0f96491e7e.js"
+ "./precache-manifest.5138d5294037173394347b085c9cff06.js"
);
self.addEventListener('message', (event) => {
diff --git a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/static/js/0.fc740562.chunk.js b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/static/js/0.4488805c.chunk.js
similarity index 81%
rename from src/HotChocolate/AspNetCore/src/AspNetCore/Resources/static/js/0.fc740562.chunk.js
rename to src/HotChocolate/AspNetCore/src/AspNetCore/Resources/static/js/0.4488805c.chunk.js
index 7ef2438d21b..6fad1ceb6c4 100644
--- a/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/static/js/0.fc740562.chunk.js
+++ b/src/HotChocolate/AspNetCore/src/AspNetCore/Resources/static/js/0.4488805c.chunk.js
@@ -1,2 +1,2 @@
-/*! For license information please see 0.fc740562.chunk.js.LICENSE.txt */
-(this["webpackJsonp@banana-cake-pop/main"]=this["webpackJsonp@banana-cake-pop/main"]||[]).push([[0],{0:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},1:function(e,t,n){"use strict";function r(e,t){for(var n=0;nt)){for(var c=this._rows,f=0;f<=u;f++)c[0][f]=f;for(var l=1;l<=s;l++){for(var h=c[(l-1)%3],p=c[l%3],d=p[0]=l,v=1;v<=u;v++){var y=r[l-1]===i[v-1]?0:1,b=Math.min(h[v]+1,p[v-1]+1,h[v-1]+y);if(l>1&&v>1&&r[l-1]===i[v-2]&&r[l-2]===i[v-1]){var g=c[(l-2)%3][v-2];b=Math.min(b,g+1)}bt)return}var m=c[s%3][u];return m<=t?m:void 0}},e}();function o(e){for(var t=e.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:o,s=void 0,u=Array.isArray(e),f=[e],l=-1,h=[],p=void 0,d=void 0,v=void 0,y=[],b=[],g=e;do{var m=++l===f.length,_=m&&0!==h.length;if(m){if(d=0===b.length?void 0:y[y.length-1],p=v,v=b.pop(),_){if(u)p=p.slice();else{for(var w={},E=0,O=Object.keys(p);E1)for(var n=1;n0?e:void 0}B.prototype.toString=function(){return"["+String(this.ofType)+"]"},B.prototype.toJSON=function(){return this.toString()},Object.defineProperty(B.prototype,i.b,{get:function(){return"GraphQLList"}}),Object(v.a)(B),V.prototype.toString=function(){return String(this.ofType)+"!"},V.prototype.toJSON=function(){return this.toString()},Object.defineProperty(V.prototype,i.b,{get:function(){return"GraphQLNonNull"}}),Object(v.a)(V);var z=function(){function e(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:d;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:d,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e){return i(function e(t,n){switch(t.kind){case g.a.NULL:return null;case g.a.INT:return parseInt(t.value,10);case g.a.FLOAT:return parseFloat(t.value);case g.a.STRING:case g.a.ENUM:case g.a.BOOLEAN:return t.value;case g.a.LIST:return t.values.map((function(t){return e(t,n)}));case g.a.OBJECT:return Object(f.a)(t.fields,(function(e){return e.name.value}),(function(t){return e(t.value,n)}));case g.a.VARIABLE:return null===n||void 0===n?void 0:n[t.name.value]}Object(_.a)(0,"Unexpected value node: "+Object(o.a)(t))}(e))},this.extensions=e.extensions&&Object(u.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=H(e.extensionASTNodes),"string"===typeof e.name||Object(c.a)(0,"Must provide name."),null==e.specifiedByUrl||"string"===typeof e.specifiedByUrl||Object(c.a)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(Object(o.a)(e.specifiedByUrl),".")),null==e.serialize||"function"===typeof e.serialize||Object(c.a)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||Object(c.a)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},E(e,[{key:i.b,get:function(){return"GraphQLScalarType"}}]),e}();Object(v.a)(z);var Q=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&Object(u.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=H(e.extensionASTNodes),this._fields=$.bind(void 0,e),this._interfaces=X.bind(void 0,e),"string"===typeof e.name||Object(c.a)(0,"Must provide name."),null==e.isTypeOf||"function"===typeof e.isTypeOf||Object(c.a)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(Object(o.a)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:ee(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},E(e,[{key:i.b,get:function(){return"GraphQLObjectType"}}]),e}();function X(e){var t,n=null!==(t=W(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||Object(c.a)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function $(e){var t=W(e.fields);return Z(t)||Object(c.a)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),s(t,(function(t,n){var i;Z(t)||Object(c.a)(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||Object(c.a)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"===typeof t.resolve||Object(c.a)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(Object(o.a)(t.resolve),"."));var a=null!==(i=t.args)&&void 0!==i?i:{};Z(a)||Object(c.a)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var s=Object(r.a)(a).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,extensions:n.extensions&&Object(u.a)(n.extensions),astNode:n.astNode}}));return{name:n,description:t.description,type:t.type,args:s,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&Object(u.a)(t.extensions),astNode:t.astNode}}))}function Z(e){return Object(p.a)(e)&&!Array.isArray(e)}function ee(e){return s(e,(function(e){return{description:e.description,type:e.type,args:te(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function te(e){return Object(f.a)(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}))}function ne(e){return k(e.type)&&void 0===e.defaultValue}Object(v.a)(Q);var re=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(u.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=H(e.extensionASTNodes),this._fields=$.bind(void 0,e),this._interfaces=X.bind(void 0,e),"string"===typeof e.name||Object(c.a)(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||Object(c.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(o.a)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:ee(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},E(e,[{key:i.b,get:function(){return"GraphQLInterfaceType"}}]),e}();Object(v.a)(re);var ie=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(u.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=H(e.extensionASTNodes),this._types=oe.bind(void 0,e),"string"===typeof e.name||Object(c.a)(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||Object(c.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(o.a)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"===typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},E(e,[{key:i.b,get:function(){return"GraphQLUnionType"}}]),e}();function oe(e){var t=W(e.types);return Array.isArray(t)||Object(c.a)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}Object(v.a)(ie);var ae=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(u.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=H(e.extensionASTNodes),this._values=(t=this.name,Z(n=e.values)||Object(c.a)(0,"".concat(t," values must be an object with value names as keys.")),Object(r.a)(n).map((function(e){var n=e[0],r=e[1];return Z(r)||Object(c.a)(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(Object(o.a)(r),".")),!("isDeprecated"in r)||Object(c.a)(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&Object(u.a)(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=Object(a.a)(this._values,(function(e){return e.name})),"string"===typeof e.name||Object(c.a)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new b.a('Enum "'.concat(this.name,'" cannot represent value: ').concat(Object(o.a)(e)));return t.name},t.parseValue=function(e){if("string"!==typeof e){var t=Object(o.a)(e);throw new b.a('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+se(this,t))}var n=this.getValue(e);if(null==n)throw new b.a('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+se(this,e));return n.value},t.parseLiteral=function(e,t){if(e.kind!==g.a.ENUM){var n=Object(m.print)(e);throw new b.a('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+se(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=Object(m.print)(e);throw new b.a('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+se(this,i),e)}return r.value},t.toConfig=function(){var e,t=Object(f.a)(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},E(e,[{key:i.b,get:function(){return"GraphQLEnumType"}}]),e}();function se(e,t){var n=e.getValues().map((function(e){return e.name})),r=Object(y.a)(t,n);return Object(h.a)("the enum value",r)}Object(v.a)(ae);var ue=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(u.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=H(e.extensionASTNodes),this._fields=ce.bind(void 0,e),"string"===typeof e.name||Object(c.a)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e,t=s(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},E(e,[{key:i.b,get:function(){return"GraphQLInputObjectType"}}]),e}();function ce(e){var t=W(e.fields);return Z(t)||Object(c.a)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),s(t,(function(t,n){return!("resolve"in t)||Object(c.a)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&Object(u.a)(t.extensions),astNode:t.astNode}}))}function fe(e){return k(e.type)&&void 0===e.defaultValue}Object(v.a)(ue)},220:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},222:function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},223:function(e,t,n){"use strict";function r(e){return"function"===typeof e}n.d(t,"a",(function(){return r}))},224:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return"function"===typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},228:function(e,t,n){"use strict";var r=Number.isFinite||function(e){return"number"===typeof e&&isFinite(e)};t.a=r},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(315);var i=n(209),o=n(316);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},232:function(e,t,n){"use strict";var r={};function i(e,t,n){n||(n=Error);var i=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"===typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function o(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>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))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,a,s;if("string"===typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="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(r," ").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(r," ").concat(o(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},233:function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(356),o=n(363);n(222)(c,i);for(var a=r(o.prototype),s=0;s0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")}function i(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}))},242:function(e,t,n){"use strict";var r=n(119),i=Array.from||function(e,t,n){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var i=e[r.a];if("function"===typeof i){for(var o,a=i.call(e),s=[],u=0;!(o=a.next()).done;++u)if(s.push(t.call(n,o.value,u)),u>9999999)throw new TypeError("Near-infinite iteration.");return s}var c=e.length;if("number"===typeof c&&c>=0&&c%1===0){for(var f=[],l=0;l0&&void 0!==arguments[0]?arguments[0]:21,t="",n=crypto.getRandomValues(new Uint8Array(e));e--;){var r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t}},259:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(228),i=n(242),o=n(104),a=n(42),s=n(117),u=n(139),c=n(119);function f(e){return(f="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})(e)}var l=n(24),h=n(79),p=n(22);function d(e,t){if(Object(p.y)(t)){var n=d(e,t.ofType);return(null===n||void 0===n?void 0:n.kind)===l.a.NULL?null:n}if(null===e)return{kind:l.a.NULL};if(void 0===e)return null;if(Object(p.w)(t)){var y=t.ofType;if(function(e){if(null==e||"object"!==f(e))return!1;var t=e.length;return"number"===typeof t&&t>=0&&t%1===0||"function"===typeof e[c.a]}(e)){for(var b=[],g=0,m=Object(i.a)(e);g=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(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 r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!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 x(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var l=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function N(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+l<=n)switch(l){case 1:c<128&&(f=c);break;case 2:128===(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(f=u);break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=l}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){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===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),f=e.slice(t,n),l=0;li)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return m(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function k(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function C(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,n,r,o){return o||C(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,o){return o||C(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(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||R(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||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(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||R(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||R(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||R(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||R(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(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||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(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):D(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(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):D(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}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,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}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||L(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||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(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):D(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(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):D(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 M(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=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 V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function Y(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(165))},294:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>32-t}function c(e,t,n,r,i,o,a){return u(e+(t&n|~t&r)+i+o|0,a)+t|0}function f(e,t,n,r,i,o,a){return u(e+(t&r|n&~r)+i+o|0,a)+t|0}function l(e,t,n,r,i,o,a){return u(e+(t^n^r)+i+o|0,a)+t|0}function h(e,t,n,r,i,o,a){return u(e+(n^(t|~r))+i+o|0,a)+t|0}r(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=c(n,r,i,o,e[0],3614090360,7),o=c(o,n,r,i,e[1],3905402710,12),i=c(i,o,n,r,e[2],606105819,17),r=c(r,i,o,n,e[3],3250441966,22),n=c(n,r,i,o,e[4],4118548399,7),o=c(o,n,r,i,e[5],1200080426,12),i=c(i,o,n,r,e[6],2821735955,17),r=c(r,i,o,n,e[7],4249261313,22),n=c(n,r,i,o,e[8],1770035416,7),o=c(o,n,r,i,e[9],2336552879,12),i=c(i,o,n,r,e[10],4294925233,17),r=c(r,i,o,n,e[11],2304563134,22),n=c(n,r,i,o,e[12],1804603682,7),o=c(o,n,r,i,e[13],4254626195,12),i=c(i,o,n,r,e[14],2792965006,17),n=f(n,r=c(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=f(o,n,r,i,e[6],3225465664,9),i=f(i,o,n,r,e[11],643717713,14),r=f(r,i,o,n,e[0],3921069994,20),n=f(n,r,i,o,e[5],3593408605,5),o=f(o,n,r,i,e[10],38016083,9),i=f(i,o,n,r,e[15],3634488961,14),r=f(r,i,o,n,e[4],3889429448,20),n=f(n,r,i,o,e[9],568446438,5),o=f(o,n,r,i,e[14],3275163606,9),i=f(i,o,n,r,e[3],4107603335,14),r=f(r,i,o,n,e[8],1163531501,20),n=f(n,r,i,o,e[13],2850285829,5),o=f(o,n,r,i,e[2],4243563512,9),i=f(i,o,n,r,e[7],1735328473,14),n=l(n,r=f(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=l(o,n,r,i,e[8],2272392833,11),i=l(i,o,n,r,e[11],1839030562,16),r=l(r,i,o,n,e[14],4259657740,23),n=l(n,r,i,o,e[1],2763975236,4),o=l(o,n,r,i,e[4],1272893353,11),i=l(i,o,n,r,e[7],4139469664,16),r=l(r,i,o,n,e[10],3200236656,23),n=l(n,r,i,o,e[13],681279174,4),o=l(o,n,r,i,e[0],3936430074,11),i=l(i,o,n,r,e[3],3572445317,16),r=l(r,i,o,n,e[6],76029189,23),n=l(n,r,i,o,e[9],3654602809,4),o=l(o,n,r,i,e[12],3873151461,11),i=l(i,o,n,r,e[15],530742520,16),n=h(n,r=l(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=h(o,n,r,i,e[7],1126891415,10),i=h(i,o,n,r,e[14],2878612391,15),r=h(r,i,o,n,e[5],4237533241,21),n=h(n,r,i,o,e[12],1700485571,6),o=h(o,n,r,i,e[3],2399980690,10),i=h(i,o,n,r,e[10],4293915773,15),r=h(r,i,o,n,e[1],2240044497,21),n=h(n,r,i,o,e[8],1873313359,6),o=h(o,n,r,i,e[15],4264355552,10),i=h(i,o,n,r,e[6],2734768916,15),r=h(r,i,o,n,e[13],1309151649,21),n=h(n,r,i,o,e[4],4149444226,6),o=h(o,n,r,i,e[11],3174756917,10),i=h(i,o,n,r,e[2],718787259,15),r=h(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},314:function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},315:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},316:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},334:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r,i,o=n(41),a=n(8),s=n.n(a),u=n(45);var c=new WeakMap,f=new WeakMap,l=new WeakMap,h=new WeakMap,p=new WeakMap;var d={get:function(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return f.get(e);if("objectStoreNames"===t)return e.objectStoreNames||l.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return b(e[t])},set:function(e,t,n){return e[t]=n,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function v(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:{},r=n.blocked,i=n.upgrade,o=n.blocking,a=n.terminated,s=indexedDB.open(e,t),u=b(s);return i&&s.addEventListener("upgradeneeded",(function(e){i(b(s.result),e.oldVersion,e.newVersion,b(s.transaction))})),r&&s.addEventListener("blocked",(function(){return r()})),u.then((function(e){a&&e.addEventListener("close",(function(){return a()})),o&&e.addEventListener("versionchange",(function(){return o()}))})).catch((function(){})),u}var _=["get","getKey","getAll","getAllKeys","count"],w=["put","add","delete","clear"],E=new Map;function O(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"===typeof t){if(E.get(t))return E.get(t);var n=t.replace(/FromIndex$/,""),r=t!==n,i=w.includes(n);if(n in(r?IDBIndex:IDBObjectStore).prototype&&(i||_.includes(n))){var o=function(){var e=Object(u.a)(s.a.mark((function e(t){var o,a,u,c,f,l,h,p=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a=this.transaction(t,i?"readwrite":"readonly"),u=a.store,c=p.length,f=new Array(c>1?c-1:0),l=1;l0)if("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)a.endEmitted?E(e,new w):A(e,a,t,!0);else if(a.ended)E(e,new m);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?A(e,a,t,!1):R(e,a)):A(e,a,t,!1)}else r||(a.reading=!1,R(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(j,e))}function j(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,P(e)}function R(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(L,e,t))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){c("readable nexttick read 0"),e.read(0)}function C(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function M(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function U(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(F,t,e))}function F(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function B(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):x(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e0?M(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){E(this,new _("_read()"))},S.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:y;function s(t,r){c("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",d),e.removeListener("finish",v),e.removeListener("drain",f),e.removeListener("error",p),e.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",h),l=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function u(){c("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",s);var f=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,P(e))}}(n);e.on("drain",f);var l=!1;function h(t){c("ondata");var r=e.write(t);c("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==B(i.pipes,e))&&!l&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){c("onerror",t),y(),e.removeListener("error",p),0===o(e,"error")&&E(e,t)}function d(){e.removeListener("finish",v),y()}function v(){c("onfinish"),e.removeListener("close",d),y()}function y(){c("unpipe"),n.unpipe(e)}return n.on("data",h),function(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",p),e.once("close",d),e.once("finish",v),e.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?x(this):i.reading||r.nextTick(D,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(k,this),n},S.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(k,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(C,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&void 0!==i)&&((n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause())))})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o0&&a.length>i&&!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 p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)o(u,this,t);else{var c=u.length,f=y(u,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},358:function(e,t,n){e.exports=n(357).EventEmitter},361:function(e,t,n){"use strict";(function(t){function n(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!o&&e?a._writableState?a._writableState.errorEmitted?t.nextTick(r,a):(a._writableState.errorEmitted=!0,t.nextTick(n,a,e)):t.nextTick(n,a,e):o?(t.nextTick(r,a),o(e)):t.nextTick(r,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,n(189))},362:function(e,t,n){"use strict";var r=n(232).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},363:function(e,t,n){"use strict";(function(t,r){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=S,S.WritableState=T;var a={deprecate:n(417)},s=n(358),u=n(261).Buffer,c=t.Uint8Array||function(){};var f,l=n(361),h=n(362).getHighWaterMark,p=n(232).codes,d=p.ERR_INVALID_ARG_TYPE,v=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_MULTIPLE_CALLBACK,b=p.ERR_STREAM_CANNOT_PIPE,g=p.ERR_STREAM_DESTROYED,m=p.ERR_STREAM_NULL_VALUES,_=p.ERR_STREAM_WRITE_AFTER_END,w=p.ERR_UNKNOWN_ENCODING,E=l.errorOrDestroy;function O(){}function T(e,t,a){o=o||n(233),e=e||{},"boolean"!==typeof a&&(a=t instanceof o),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!==typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(R,e,t),e._writableState.errorEmitted=!0,E(e,i)):(o(i),e._writableState.errorEmitted=!0,E(e,i),R(e,t))}(e,n,i,t,o);else{var a=x(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||I(e,n),i?r.nextTick(A,e,n,a,o):A(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function S(e){var t=this instanceof(o=o||n(233));if(!t&&!f.call(S,this))return new S(e);this._writableState=new T(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),s.call(this)}function N(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function A(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),R(e,t)}function I(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,u=!0;n;)o[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;o.allBuffers=u,N(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,f=n.encoding,l=n.callback;if(N(e,t,!1,t.objectMode?1:c.length,c,f,l),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final((function(n){t.pendingcb--,n&&E(e,n),t.prefinished=!0,e.emit("prefinish"),R(e,t)}))}function R(e,t){var n=x(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(j,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}n(222)(S,s),T.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(T.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!f.call(this,e)||this===S&&(e&&e._writableState instanceof T)}})):f=function(e){return e instanceof this},S.prototype.pipe=function(){E(this,new b)},S.prototype.write=function(e,t,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,u.isBuffer(i)||i instanceof c);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"===typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!==typeof n&&(n=O),o.ending?function(e,t){var n=new _;E(e,n),r.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var o;return null===n?o=new m:"string"===typeof n||t.objectMode||(o=new d("chunk",["string","Buffer"],n)),!o||(E(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=u.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new v("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var i=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,R(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=l.destroy,S.prototype._undestroy=l.undestroy,S.prototype._destroy=function(e,t){t(e)}}).call(this,n(165),n(189))},364:function(e,t,n){"use strict";var r=n(338).Buffer,i=r.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&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.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 r=n.charCodeAt(n.length-1);if(r>=55296&&r<=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 c(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 f(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 l(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 p(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 i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},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}},365:function(e,t,n){"use strict";e.exports=f;var r=n(232).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(233);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length120){for(var d=Math.floor(f/80),v=f%80,y=[],b=0;b1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Object(i.a)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Object(i.a)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,r;return t=e,(n=[{key:c.b,get:function(){return"Source"}}])&&f(t.prototype,n),r&&f(t,r),e}(),h=Object.freeze({SOF:"",EOF:"