@stepzen/graphiql-proxy 0.34.0-experimental.c2191de → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/LICENSE +1 -1
  2. package/package.json +6 -6
  3. package/src/server/api/debugging.js +1 -1
  4. package/src/server/api/details.js +1 -1
  5. package/src/server/api/ping.js +1 -1
  6. package/src/server/api/predicates.js +1 -1
  7. package/src/server/api/proxy.js +1 -1
  8. package/src/server/api/samples.js +1 -1
  9. package/src/server/index.js +1 -1
  10. package/src/server/utils/open-browser.js +1 -1
  11. package/src/server/utils/open-chrome.applescript +1 -1
  12. package/src/ui/build/asset-manifest.json +47 -47
  13. package/src/ui/build/index.html +1 -1
  14. package/src/ui/build/static/js/{0.a1da3266.chunk.js → 0.5e30f0d2.chunk.js} +2 -2
  15. package/src/ui/build/static/js/{0.a1da3266.chunk.js.map → 0.5e30f0d2.chunk.js.map} +1 -1
  16. package/src/ui/build/static/js/{136.7849911c.chunk.js → 136.f5cbe563.chunk.js} +2 -2
  17. package/src/ui/build/static/js/{136.7849911c.chunk.js.map → 136.f5cbe563.chunk.js.map} +1 -1
  18. package/src/ui/build/static/js/{170.27296619.chunk.js → 170.8d38f8f7.chunk.js} +2 -2
  19. package/src/ui/build/static/js/{170.27296619.chunk.js.map → 170.8d38f8f7.chunk.js.map} +1 -1
  20. package/src/ui/build/static/js/190.89592804.chunk.js +2 -0
  21. package/src/ui/build/static/js/{190.e088a175.chunk.js.map → 190.89592804.chunk.js.map} +1 -1
  22. package/src/ui/build/static/js/267.91bc8020.chunk.js +2 -0
  23. package/src/ui/build/static/js/{267.962ef6a4.chunk.js.map → 267.91bc8020.chunk.js.map} +1 -1
  24. package/src/ui/build/static/js/{306.cb66dc99.chunk.js → 306.b76cda79.chunk.js} +2 -2
  25. package/src/ui/build/static/js/{306.cb66dc99.chunk.js.map → 306.b76cda79.chunk.js.map} +1 -1
  26. package/src/ui/build/static/js/316.657bf0ad.chunk.js +2 -0
  27. package/src/ui/build/static/js/{316.7c2be1f0.chunk.js.map → 316.657bf0ad.chunk.js.map} +1 -1
  28. package/src/ui/build/static/js/{322.5ada89eb.chunk.js → 322.28bfb0ce.chunk.js} +2 -2
  29. package/src/ui/build/static/js/{322.5ada89eb.chunk.js.map → 322.28bfb0ce.chunk.js.map} +1 -1
  30. package/src/ui/build/static/js/{344.e6b10333.chunk.js → 344.142d13e9.chunk.js} +2 -2
  31. package/src/ui/build/static/js/{344.e6b10333.chunk.js.map → 344.142d13e9.chunk.js.map} +1 -1
  32. package/src/ui/build/static/js/39.73440f40.chunk.js +2 -0
  33. package/src/ui/build/static/js/{39.dd9b3202.chunk.js.map → 39.73440f40.chunk.js.map} +1 -1
  34. package/src/ui/build/static/js/{430.de05cf2b.chunk.js → 430.23c55f04.chunk.js} +2 -2
  35. package/src/ui/build/static/js/{430.de05cf2b.chunk.js.map → 430.23c55f04.chunk.js.map} +1 -1
  36. package/src/ui/build/static/js/{503.a3ba392a.chunk.js → 503.c783958a.chunk.js} +2 -2
  37. package/src/ui/build/static/js/{503.a3ba392a.chunk.js.map → 503.c783958a.chunk.js.map} +1 -1
  38. package/src/ui/build/static/js/580.0502adfe.chunk.js +2 -0
  39. package/src/ui/build/static/js/{580.b48b02d9.chunk.js.map → 580.0502adfe.chunk.js.map} +1 -1
  40. package/src/ui/build/static/js/587.40adb4ae.chunk.js +2 -0
  41. package/src/ui/build/static/js/{587.f2cbe2fb.chunk.js.map → 587.40adb4ae.chunk.js.map} +1 -1
  42. package/src/ui/build/static/js/{619.cd709ae5.chunk.js → 619.f3523a4f.chunk.js} +2 -2
  43. package/src/ui/build/static/js/{619.cd709ae5.chunk.js.map → 619.f3523a4f.chunk.js.map} +1 -1
  44. package/src/ui/build/static/js/658.828eff8d.chunk.js +2 -0
  45. package/src/ui/build/static/js/{658.916c9abf.chunk.js.map → 658.828eff8d.chunk.js.map} +1 -1
  46. package/src/ui/build/static/js/{756.a915a97e.chunk.js → 756.3530beeb.chunk.js} +2 -2
  47. package/src/ui/build/static/js/{756.a915a97e.chunk.js.map → 756.3530beeb.chunk.js.map} +1 -1
  48. package/src/ui/build/static/js/76.13bc4c09.chunk.js +2 -0
  49. package/src/ui/build/static/js/{76.0a014434.chunk.js.map → 76.13bc4c09.chunk.js.map} +1 -1
  50. package/src/ui/build/static/js/{804.118a9243.chunk.js → 804.9d9c6f3a.chunk.js} +2 -2
  51. package/src/ui/build/static/js/{804.118a9243.chunk.js.map → 804.9d9c6f3a.chunk.js.map} +1 -1
  52. package/src/ui/build/static/js/{849.f850f73b.chunk.js → 849.e36d6caf.chunk.js} +2 -2
  53. package/src/ui/build/static/js/{849.f850f73b.chunk.js.map → 849.e36d6caf.chunk.js.map} +1 -1
  54. package/src/ui/build/static/js/{88.b5b4cd91.chunk.js → 88.b61d66e1.chunk.js} +2 -2
  55. package/src/ui/build/static/js/{88.b5b4cd91.chunk.js.map → 88.b61d66e1.chunk.js.map} +1 -1
  56. package/src/ui/build/static/js/{983.df163755.chunk.js → 983.cfb8ccb4.chunk.js} +2 -2
  57. package/src/ui/build/static/js/{983.df163755.chunk.js.map → 983.cfb8ccb4.chunk.js.map} +1 -1
  58. package/src/ui/build/static/js/main.2b4d123a.js +3 -0
  59. package/src/ui/build/static/js/main.2b4d123a.js.map +1 -0
  60. package/src/ui/build/static/js/190.e088a175.chunk.js +0 -2
  61. package/src/ui/build/static/js/267.962ef6a4.chunk.js +0 -2
  62. package/src/ui/build/static/js/316.7c2be1f0.chunk.js +0 -2
  63. package/src/ui/build/static/js/39.dd9b3202.chunk.js +0 -2
  64. package/src/ui/build/static/js/580.b48b02d9.chunk.js +0 -2
  65. package/src/ui/build/static/js/587.f2cbe2fb.chunk.js +0 -2
  66. package/src/ui/build/static/js/658.916c9abf.chunk.js +0 -2
  67. package/src/ui/build/static/js/76.0a014434.chunk.js +0 -2
  68. package/src/ui/build/static/js/main.f7f15d8d.js +0 -3
  69. package/src/ui/build/static/js/main.f7f15d8d.js.map +0 -1
  70. /package/src/ui/build/static/js/{main.f7f15d8d.js.LICENSE.txt → main.2b4d123a.js.LICENSE.txt} +0 -0
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright IBM Corp. 2020, 2023
3
+ Copyright IBM Corp. 2020, 2024
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stepzen/graphiql-proxy",
3
- "version": "0.34.0-experimental.c2191de",
3
+ "version": "0.34.0",
4
4
  "author": "Darren Waddell <darren@stepzen.com>",
5
5
  "license": "MIT",
6
6
  "homepage": "https://stepzen.com",
@@ -23,7 +23,7 @@
23
23
  "posttest": "prettier . --check"
24
24
  },
25
25
  "dependencies": {
26
- "@stepzen/fetch": "0.34.0-experimental.c2191de",
26
+ "@stepzen/fetch": "0.34.0",
27
27
  "chalk": "^4.1.2",
28
28
  "cross-spawn": "^7.0.3",
29
29
  "debug": "^4.3.4",
@@ -33,7 +33,7 @@
33
33
  "prettier": "^2.8.3"
34
34
  },
35
35
  "devDependencies": {
36
- "@types/chai": "^4.2.12",
36
+ "@types/chai": "^4.3.10",
37
37
  "@types/cross-spawn": "^6.0.2",
38
38
  "@types/debug": "^4.1.6",
39
39
  "@types/express": "^4.17.9",
@@ -42,7 +42,7 @@
42
42
  "@types/mocha": "^10.0.1",
43
43
  "@types/node": "^14.18.36",
44
44
  "@types/sinon-chai": "3.2.8",
45
- "chai": "^4.2.0",
45
+ "chai": "^4.3.10",
46
46
  "concurrently": "^6.0.2",
47
47
  "dotenv": "^16.0.3",
48
48
  "fancy-test": "^1.4.10",
@@ -50,10 +50,10 @@
50
50
  "mocha": "^10.2.0",
51
51
  "nock": "^13.0.4",
52
52
  "nodemon": "^2.0.22",
53
- "nyc": "^14.1.1",
53
+ "nyc": "^15.1.0",
54
54
  "sinon": "13.0.1",
55
55
  "sinon-chai": "3.7.0",
56
56
  "ts-node": "^10.8.2"
57
57
  },
58
- "gitHead": "c2191ded657df198b41cf06ad91a4dc07f89d98f"
58
+ "gitHead": "4f9364de289c13203f73ffe90e45b7807bd56fc4"
59
59
  }
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  const debugging = async (req, res) => {
4
4
  const {debugging} = req.stepzen
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  const details = async (req, res) => {
4
4
  const {zenservUrl, predicates, workspace} = req.stepzen
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  const ping = async (req, res) => {
4
4
  res.json({
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  const predicates = async (req, res) => {
4
4
  const {predicates} = req.stepzen
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  const debug = require('debug')
4
4
  const fetch = require('@stepzen/fetch').default
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  const fs = require('fs')
4
4
  const prettier = require('prettier')
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  const debug = require('debug')
4
4
  const express = require('express')
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
  // Original code from https://github.com/facebook/create-react-app/blob/0f6fc2bc71d78f0dcae67f3f08ce98a42fc0a57c/packages/react-dev-utils/openChrome.applescript
3
3
 
4
4
  const chalk = require('chalk')
@@ -1,5 +1,5 @@
1
1
  (*
2
- Copyright IBM Corp. 2020, 2023
2
+ Copyright IBM Corp. 2020, 2024
3
3
 
4
4
  Original code from https://github.com/facebook/create-react-app/blob/0f6fc2bc71d78f0dcae67f3f08ce98a42fc0a57c/packages/react-dev-utils/openChrome.applescript
5
5
  *)
@@ -1,58 +1,58 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "/static/css/main.4fb42d49.css",
4
- "main.js": "/static/js/main.f7f15d8d.js",
5
- "static/js/503.a3ba392a.chunk.js": "/static/js/503.a3ba392a.chunk.js",
6
- "static/js/136.7849911c.chunk.js": "/static/js/136.7849911c.chunk.js",
7
- "static/js/190.e088a175.chunk.js": "/static/js/190.e088a175.chunk.js",
8
- "static/js/658.916c9abf.chunk.js": "/static/js/658.916c9abf.chunk.js",
9
- "static/js/267.962ef6a4.chunk.js": "/static/js/267.962ef6a4.chunk.js",
10
- "static/js/587.f2cbe2fb.chunk.js": "/static/js/587.f2cbe2fb.chunk.js",
11
- "static/js/39.dd9b3202.chunk.js": "/static/js/39.dd9b3202.chunk.js",
12
- "static/js/322.5ada89eb.chunk.js": "/static/js/322.5ada89eb.chunk.js",
13
- "static/js/756.a915a97e.chunk.js": "/static/js/756.a915a97e.chunk.js",
14
- "static/js/88.b5b4cd91.chunk.js": "/static/js/88.b5b4cd91.chunk.js",
15
- "static/js/804.118a9243.chunk.js": "/static/js/804.118a9243.chunk.js",
16
- "static/js/430.de05cf2b.chunk.js": "/static/js/430.de05cf2b.chunk.js",
17
- "static/js/983.df163755.chunk.js": "/static/js/983.df163755.chunk.js",
18
- "static/js/849.f850f73b.chunk.js": "/static/js/849.f850f73b.chunk.js",
19
- "static/js/619.cd709ae5.chunk.js": "/static/js/619.cd709ae5.chunk.js",
20
- "static/js/170.27296619.chunk.js": "/static/js/170.27296619.chunk.js",
21
- "static/js/306.cb66dc99.chunk.js": "/static/js/306.cb66dc99.chunk.js",
22
- "static/js/316.7c2be1f0.chunk.js": "/static/js/316.7c2be1f0.chunk.js",
23
- "static/js/344.e6b10333.chunk.js": "/static/js/344.e6b10333.chunk.js",
24
- "static/js/76.0a014434.chunk.js": "/static/js/76.0a014434.chunk.js",
25
- "static/js/580.b48b02d9.chunk.js": "/static/js/580.b48b02d9.chunk.js",
26
- "static/js/0.a1da3266.chunk.js": "/static/js/0.a1da3266.chunk.js",
4
+ "main.js": "/static/js/main.2b4d123a.js",
5
+ "static/js/503.c783958a.chunk.js": "/static/js/503.c783958a.chunk.js",
6
+ "static/js/136.f5cbe563.chunk.js": "/static/js/136.f5cbe563.chunk.js",
7
+ "static/js/190.89592804.chunk.js": "/static/js/190.89592804.chunk.js",
8
+ "static/js/658.828eff8d.chunk.js": "/static/js/658.828eff8d.chunk.js",
9
+ "static/js/267.91bc8020.chunk.js": "/static/js/267.91bc8020.chunk.js",
10
+ "static/js/587.40adb4ae.chunk.js": "/static/js/587.40adb4ae.chunk.js",
11
+ "static/js/39.73440f40.chunk.js": "/static/js/39.73440f40.chunk.js",
12
+ "static/js/322.28bfb0ce.chunk.js": "/static/js/322.28bfb0ce.chunk.js",
13
+ "static/js/756.3530beeb.chunk.js": "/static/js/756.3530beeb.chunk.js",
14
+ "static/js/88.b61d66e1.chunk.js": "/static/js/88.b61d66e1.chunk.js",
15
+ "static/js/804.9d9c6f3a.chunk.js": "/static/js/804.9d9c6f3a.chunk.js",
16
+ "static/js/430.23c55f04.chunk.js": "/static/js/430.23c55f04.chunk.js",
17
+ "static/js/983.cfb8ccb4.chunk.js": "/static/js/983.cfb8ccb4.chunk.js",
18
+ "static/js/849.e36d6caf.chunk.js": "/static/js/849.e36d6caf.chunk.js",
19
+ "static/js/619.f3523a4f.chunk.js": "/static/js/619.f3523a4f.chunk.js",
20
+ "static/js/170.8d38f8f7.chunk.js": "/static/js/170.8d38f8f7.chunk.js",
21
+ "static/js/306.b76cda79.chunk.js": "/static/js/306.b76cda79.chunk.js",
22
+ "static/js/316.657bf0ad.chunk.js": "/static/js/316.657bf0ad.chunk.js",
23
+ "static/js/344.142d13e9.chunk.js": "/static/js/344.142d13e9.chunk.js",
24
+ "static/js/76.13bc4c09.chunk.js": "/static/js/76.13bc4c09.chunk.js",
25
+ "static/js/580.0502adfe.chunk.js": "/static/js/580.0502adfe.chunk.js",
26
+ "static/js/0.5e30f0d2.chunk.js": "/static/js/0.5e30f0d2.chunk.js",
27
27
  "static/media/logo.svg": "/static/media/logo.2fa5e016c31f1c335b07ff477d91ee9a.svg",
28
28
  "index.html": "/index.html",
29
29
  "main.4fb42d49.css.map": "/static/css/main.4fb42d49.css.map",
30
- "main.f7f15d8d.js.map": "/static/js/main.f7f15d8d.js.map",
31
- "503.a3ba392a.chunk.js.map": "/static/js/503.a3ba392a.chunk.js.map",
32
- "136.7849911c.chunk.js.map": "/static/js/136.7849911c.chunk.js.map",
33
- "190.e088a175.chunk.js.map": "/static/js/190.e088a175.chunk.js.map",
34
- "658.916c9abf.chunk.js.map": "/static/js/658.916c9abf.chunk.js.map",
35
- "267.962ef6a4.chunk.js.map": "/static/js/267.962ef6a4.chunk.js.map",
36
- "587.f2cbe2fb.chunk.js.map": "/static/js/587.f2cbe2fb.chunk.js.map",
37
- "39.dd9b3202.chunk.js.map": "/static/js/39.dd9b3202.chunk.js.map",
38
- "322.5ada89eb.chunk.js.map": "/static/js/322.5ada89eb.chunk.js.map",
39
- "756.a915a97e.chunk.js.map": "/static/js/756.a915a97e.chunk.js.map",
40
- "88.b5b4cd91.chunk.js.map": "/static/js/88.b5b4cd91.chunk.js.map",
41
- "804.118a9243.chunk.js.map": "/static/js/804.118a9243.chunk.js.map",
42
- "430.de05cf2b.chunk.js.map": "/static/js/430.de05cf2b.chunk.js.map",
43
- "983.df163755.chunk.js.map": "/static/js/983.df163755.chunk.js.map",
44
- "849.f850f73b.chunk.js.map": "/static/js/849.f850f73b.chunk.js.map",
45
- "619.cd709ae5.chunk.js.map": "/static/js/619.cd709ae5.chunk.js.map",
46
- "170.27296619.chunk.js.map": "/static/js/170.27296619.chunk.js.map",
47
- "306.cb66dc99.chunk.js.map": "/static/js/306.cb66dc99.chunk.js.map",
48
- "316.7c2be1f0.chunk.js.map": "/static/js/316.7c2be1f0.chunk.js.map",
49
- "344.e6b10333.chunk.js.map": "/static/js/344.e6b10333.chunk.js.map",
50
- "76.0a014434.chunk.js.map": "/static/js/76.0a014434.chunk.js.map",
51
- "580.b48b02d9.chunk.js.map": "/static/js/580.b48b02d9.chunk.js.map",
52
- "0.a1da3266.chunk.js.map": "/static/js/0.a1da3266.chunk.js.map"
30
+ "main.2b4d123a.js.map": "/static/js/main.2b4d123a.js.map",
31
+ "503.c783958a.chunk.js.map": "/static/js/503.c783958a.chunk.js.map",
32
+ "136.f5cbe563.chunk.js.map": "/static/js/136.f5cbe563.chunk.js.map",
33
+ "190.89592804.chunk.js.map": "/static/js/190.89592804.chunk.js.map",
34
+ "658.828eff8d.chunk.js.map": "/static/js/658.828eff8d.chunk.js.map",
35
+ "267.91bc8020.chunk.js.map": "/static/js/267.91bc8020.chunk.js.map",
36
+ "587.40adb4ae.chunk.js.map": "/static/js/587.40adb4ae.chunk.js.map",
37
+ "39.73440f40.chunk.js.map": "/static/js/39.73440f40.chunk.js.map",
38
+ "322.28bfb0ce.chunk.js.map": "/static/js/322.28bfb0ce.chunk.js.map",
39
+ "756.3530beeb.chunk.js.map": "/static/js/756.3530beeb.chunk.js.map",
40
+ "88.b61d66e1.chunk.js.map": "/static/js/88.b61d66e1.chunk.js.map",
41
+ "804.9d9c6f3a.chunk.js.map": "/static/js/804.9d9c6f3a.chunk.js.map",
42
+ "430.23c55f04.chunk.js.map": "/static/js/430.23c55f04.chunk.js.map",
43
+ "983.cfb8ccb4.chunk.js.map": "/static/js/983.cfb8ccb4.chunk.js.map",
44
+ "849.e36d6caf.chunk.js.map": "/static/js/849.e36d6caf.chunk.js.map",
45
+ "619.f3523a4f.chunk.js.map": "/static/js/619.f3523a4f.chunk.js.map",
46
+ "170.8d38f8f7.chunk.js.map": "/static/js/170.8d38f8f7.chunk.js.map",
47
+ "306.b76cda79.chunk.js.map": "/static/js/306.b76cda79.chunk.js.map",
48
+ "316.657bf0ad.chunk.js.map": "/static/js/316.657bf0ad.chunk.js.map",
49
+ "344.142d13e9.chunk.js.map": "/static/js/344.142d13e9.chunk.js.map",
50
+ "76.13bc4c09.chunk.js.map": "/static/js/76.13bc4c09.chunk.js.map",
51
+ "580.0502adfe.chunk.js.map": "/static/js/580.0502adfe.chunk.js.map",
52
+ "0.5e30f0d2.chunk.js.map": "/static/js/0.5e30f0d2.chunk.js.map"
53
53
  },
54
54
  "entrypoints": [
55
55
  "static/css/main.4fb42d49.css",
56
- "static/js/main.f7f15d8d.js"
56
+ "static/js/main.2b4d123a.js"
57
57
  ]
58
58
  }
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>StepZen</title><script defer="defer" src="/static/js/main.f7f15d8d.js"></script><link href="/static/css/main.4fb42d49.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>StepZen</title><script defer="defer" src="/static/js/main.2b4d123a.js"></script><link href="/static/css/main.4fb42d49.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunkdashboard=self.webpackChunkdashboard||[]).push([[0],{9e3:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(o(3668));function u(e,t){var o=e.state.info,n=t.target||t.srcElement;if(n instanceof HTMLElement&&"SPAN"===n.nodeName&&void 0===o.hoverTimeout){var u=n.getBoundingClientRect(),r=function(){clearTimeout(o.hoverTimeout),o.hoverTimeout=setTimeout(f,m)},a=function t(){i.default.off(document,"mousemove",r),i.default.off(e.getWrapperElement(),"mouseout",t),clearTimeout(o.hoverTimeout),o.hoverTimeout=void 0},f=function(){i.default.off(document,"mousemove",r),i.default.off(e.getWrapperElement(),"mouseout",a),o.hoverTimeout=void 0,function(e,t){var o=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),n=e.state.info.options,u=n.render||e.getHelper(o,"info");if(u){var r=e.getTokenAt(o,!0);if(r){var a=u(r,n,e,o);a&&function(e,t,o){var n=document.createElement("div");n.className="CodeMirror-info",n.appendChild(o),document.body.appendChild(n);var u=n.getBoundingClientRect(),r=window.getComputedStyle(n),a=u.right-u.left+parseFloat(r.marginLeft)+parseFloat(r.marginRight),f=u.bottom-u.top+parseFloat(r.marginTop)+parseFloat(r.marginBottom),m=t.bottom;f>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(m=t.top-f);m<0&&(m=t.bottom);var l,d=Math.max(0,window.innerWidth-a-15);d>t.left&&(d=t.left);n.style.opacity="1",n.style.top=m+"px",n.style.left=d+"px";var s=function(){clearTimeout(l)},p=function(){clearTimeout(l),l=setTimeout(c,200)},c=function(){i.default.off(n,"mouseover",s),i.default.off(n,"mouseout",p),i.default.off(e.getWrapperElement(),"mouseout",p),n.style.opacity?(n.style.opacity="0",setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n)}),600)):n.parentNode&&n.parentNode.removeChild(n)};i.default.on(n,"mouseover",s),i.default.on(n,"mouseout",p),i.default.on(e.getWrapperElement(),"mouseout",p)}(e,t,a)}}}(e,u)},m=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);o.hoverTimeout=setTimeout(f,m),i.default.on(document,"mousemove",r),i.default.on(e.getWrapperElement(),"mouseout",a)}}i.default.defineOption("info",!1,(function(e,t,o){if(o&&o!==i.default.Init){var n=e.state.info.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",n),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var r=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);r.onMouseOver=u.bind(null,e),i.default.on(e.getWrapperElement(),"mouseover",r.onMouseOver)}}))}}]);
2
- //# sourceMappingURL=0.a1da3266.chunk.js.map
1
+ "use strict";(self.webpackChunkdashboard=self.webpackChunkdashboard||[]).push([[0],{9e3:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(o(1300));function u(e,t){var o=e.state.info,n=t.target||t.srcElement;if(n instanceof HTMLElement&&"SPAN"===n.nodeName&&void 0===o.hoverTimeout){var u=n.getBoundingClientRect(),r=function(){clearTimeout(o.hoverTimeout),o.hoverTimeout=setTimeout(f,m)},a=function t(){i.default.off(document,"mousemove",r),i.default.off(e.getWrapperElement(),"mouseout",t),clearTimeout(o.hoverTimeout),o.hoverTimeout=void 0},f=function(){i.default.off(document,"mousemove",r),i.default.off(e.getWrapperElement(),"mouseout",a),o.hoverTimeout=void 0,function(e,t){var o=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),n=e.state.info.options,u=n.render||e.getHelper(o,"info");if(u){var r=e.getTokenAt(o,!0);if(r){var a=u(r,n,e,o);a&&function(e,t,o){var n=document.createElement("div");n.className="CodeMirror-info",n.appendChild(o),document.body.appendChild(n);var u=n.getBoundingClientRect(),r=window.getComputedStyle(n),a=u.right-u.left+parseFloat(r.marginLeft)+parseFloat(r.marginRight),f=u.bottom-u.top+parseFloat(r.marginTop)+parseFloat(r.marginBottom),m=t.bottom;f>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(m=t.top-f);m<0&&(m=t.bottom);var l,d=Math.max(0,window.innerWidth-a-15);d>t.left&&(d=t.left);n.style.opacity="1",n.style.top=m+"px",n.style.left=d+"px";var s=function(){clearTimeout(l)},p=function(){clearTimeout(l),l=setTimeout(c,200)},c=function(){i.default.off(n,"mouseover",s),i.default.off(n,"mouseout",p),i.default.off(e.getWrapperElement(),"mouseout",p),n.style.opacity?(n.style.opacity="0",setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n)}),600)):n.parentNode&&n.parentNode.removeChild(n)};i.default.on(n,"mouseover",s),i.default.on(n,"mouseout",p),i.default.on(e.getWrapperElement(),"mouseout",p)}(e,t,a)}}}(e,u)},m=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);o.hoverTimeout=setTimeout(f,m),i.default.on(document,"mousemove",r),i.default.on(e.getWrapperElement(),"mouseout",a)}}i.default.defineOption("info",!1,(function(e,t,o){if(o&&o!==i.default.Init){var n=e.state.info.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",n),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var r=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);r.onMouseOver=u.bind(null,e),i.default.on(e.getWrapperElement(),"mouseover",r.onMouseOver)}}))}}]);
2
+ //# sourceMappingURL=0.5e30f0d2.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/0.a1da3266.chunk.js","mappings":"6OASA,iBA0CA,SAASA,EAAYC,EAAuBC,GAC1C,IAAMC,EAAQF,EAAGE,MAAMC,KAEjBC,EAASH,EAAEG,QAAUH,EAAEI,WAE7B,GAAMD,aAAkBE,aAGA,SAApBF,EAAOG,eAA8CC,IAAvBN,EAAMO,aAAxC,CAIA,IAAMC,EAAMN,EAAOO,wBAEbC,EAAc,WAClBC,aAAaX,EAAMO,cACnBP,EAAMO,aAAeK,WAAWC,EAASC,EAC1C,EAEKC,EAAa,SAAbA,IACJC,EAAAA,QAAWC,IAAIC,SAAU,YAAaR,GACtCM,EAAAA,QAAWC,IAAInB,EAAGqB,oBAAqB,WAAYJ,GACnDJ,aAAaX,EAAMO,cACnBP,EAAMO,kBAAeD,CACtB,EAEKO,EAAU,WACdG,EAAAA,QAAWC,IAAIC,SAAU,YAAaR,GACtCM,EAAAA,QAAWC,IAAInB,EAAGqB,oBAAqB,WAAYJ,GACnDf,EA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nD,SAAqByB,GACnB,MAAO,CACLA,QACEA,aAAmB0C,SACf,CAAEzC,OAAQD,IACE,IAAZA,EACA,CAAC,EACDA,EAET,CAhByD2C,CAAY3C,GAChE1B,EAAMH,YAAcA,EAAYyE,KAAK,KAAMxE,GAC3CkB,EAAAA,QAAW4C,GAAG9D,EAAGqB,oBAAqB,YAAanB,EAAMH,YAC1D,CACF,G","sources":["../node_modules/codemirror-graphql/src/utils/info-addon.ts"],"sourcesContent":["/**\n * Copyright (c) 2021 GraphQL Contributors\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\nimport CodeMirror from 'codemirror';\nimport { GraphQLInfoOptions } from '../info';\n\nCodeMirror.defineOption(\n 'info',\n false,\n (\n cm: CodeMirror.Editor,\n options: GraphQLInfoOptions,\n old?: GraphQLInfoOptions,\n ) => {\n if (old && old !== CodeMirror.Init) {\n const oldOnMouseOver = cm.state.info.onMouseOver;\n CodeMirror.off(cm.getWrapperElement(), 'mouseover', oldOnMouseOver);\n clearTimeout(cm.state.info.hoverTimeout);\n delete cm.state.info;\n }\n\n if (options) {\n const state: Record<string, any> = (cm.state.info = createState(options));\n state.onMouseOver = onMouseOver.bind(null, cm);\n CodeMirror.on(cm.getWrapperElement(), 'mouseover', state.onMouseOver);\n }\n },\n);\n\nfunction createState(options: GraphQLInfoOptions) {\n return {\n options:\n options instanceof Function\n ? { render: options }\n : options === true\n ? {}\n : options,\n };\n}\n\nfunction getHoverTime(cm: CodeMirror.Editor) {\n const options = cm.state.info.options;\n return (options && options.hoverTime) || 500;\n}\n\nfunction onMouseOver(cm: CodeMirror.Editor, e: MouseEvent) {\n const state = cm.state.info;\n\n const target = e.target || e.srcElement;\n\n if (!(target instanceof HTMLElement)) {\n return;\n }\n if (target.nodeName !== 'SPAN' || state.hoverTimeout !== undefined) {\n return;\n }\n\n const box = target.getBoundingClientRect();\n\n const onMouseMove = function () {\n clearTimeout(state.hoverTimeout);\n state.hoverTimeout = setTimeout(onHover, hoverTime);\n };\n\n const onMouseOut = function () {\n CodeMirror.off(document, 'mousemove', onMouseMove);\n CodeMirror.off(cm.getWrapperElement(), 'mouseout', onMouseOut);\n clearTimeout(state.hoverTimeout);\n state.hoverTimeout = undefined;\n };\n\n const onHover = function () {\n CodeMirror.off(document, 'mousemove', onMouseMove);\n CodeMirror.off(cm.getWrapperElement(), 'mouseout', onMouseOut);\n state.hoverTimeout = undefined;\n onMouseHover(cm, box);\n };\n\n const hoverTime = getHoverTime(cm);\n state.hoverTimeout = setTimeout(onHover, hoverTime);\n\n CodeMirror.on(document, 'mousemove', onMouseMove);\n CodeMirror.on(cm.getWrapperElement(), 'mouseout', onMouseOut);\n}\n\nfunction onMouseHover(cm: CodeMirror.Editor, box: DOMRect) {\n const pos = cm.coordsChar({\n left: (box.left + box.right) / 2,\n top: (box.top + box.bottom) / 2,\n });\n\n const state = cm.state.info;\n const options = state.options;\n const render = options.render || cm.getHelper(pos, 'info');\n if (render) {\n const token = cm.getTokenAt(pos, true);\n if (token) {\n const info: HTMLDivElement = render(token, options, cm, pos);\n if (info) {\n showPopup(cm, box, info);\n }\n }\n }\n}\n\nfunction showPopup(cm: CodeMirror.Editor, box: DOMRect, info: HTMLDivElement) {\n const popup = document.createElement('div');\n popup.className = 'CodeMirror-info';\n popup.appendChild(info);\n document.body.appendChild(popup);\n\n const popupBox = popup.getBoundingClientRect();\n const popupStyle = window.getComputedStyle(popup);\n const popupWidth =\n popupBox.right -\n popupBox.left +\n parseFloat(popupStyle.marginLeft) +\n parseFloat(popupStyle.marginRight);\n const popupHeight =\n popupBox.bottom -\n popupBox.top +\n parseFloat(popupStyle.marginTop) +\n parseFloat(popupStyle.marginBottom);\n\n let topPos = box.bottom;\n if (\n popupHeight > window.innerHeight - box.bottom - 15 &&\n box.top > window.innerHeight - box.bottom\n ) {\n topPos = box.top - popupHeight;\n }\n\n if (topPos < 0) {\n topPos = box.bottom;\n }\n\n let leftPos = Math.max(0, window.innerWidth - popupWidth - 15);\n if (leftPos > box.left) {\n leftPos = box.left;\n }\n\n popup.style.opacity = '1';\n popup.style.top = topPos + 'px';\n popup.style.left = leftPos + 'px';\n\n let popupTimeout: NodeJS.Timeout;\n\n const onMouseOverPopup = function () {\n clearTimeout(popupTimeout);\n };\n\n const onMouseOut = function () {\n clearTimeout(popupTimeout);\n popupTimeout = setTimeout(hidePopup, 200);\n };\n\n const hidePopup = function () {\n CodeMirror.off(popup, 'mouseover', onMouseOverPopup);\n CodeMirror.off(popup, 'mouseout', onMouseOut);\n CodeMirror.off(cm.getWrapperElement(), 'mouseout', onMouseOut);\n\n if (popup.style.opacity) {\n popup.style.opacity = '0';\n setTimeout(() => {\n if (popup.parentNode) {\n popup.parentNode.removeChild(popup);\n }\n }, 600);\n } else if (popup.parentNode) {\n popup.parentNode.removeChild(popup);\n }\n };\n\n CodeMirror.on(popup, 'mouseover', onMouseOverPopup);\n CodeMirror.on(popup, 'mouseout', onMouseOut);\n CodeMirror.on(cm.getWrapperElement(), 'mouseout', onMouseOut);\n}\n"],"names":["onMouseOver","cm","e","state","info","target","srcElement","HTMLElement","nodeName","undefined","hoverTimeout","box","getBoundingClientRect","onMouseMove","clearTimeout","setTimeout","onHover","hoverTime","onMouseOut","codemirror_1","off","document","getWrapperElement","pos","coordsChar","left","right","top","bottom","options","render","getHelper","token","getTokenAt","popup","createElement","className","appendChild","body","popupBox","popupStyle","window","getComputedStyle","popupWidth","parseFloat","marginLeft","marginRight","popupHeight","marginTop","marginBottom","topPos","innerHeight","popupTimeout","leftPos","Math","max","innerWidth","style","opacity","onMouseOverPopup","hidePopup","parentNode","removeChild","on","showPopup","onMouseHover","getHoverTime","defineOption","old","Init","oldOnMouseOver","Function","createState","bind"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/0.5e30f0d2.chunk.js","mappings":"6OASA,iBA0CA,SAASA,EAAYC,EAAuBC,GAC1C,IAAMC,EAAQF,EA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,GAC1C,CAmCmBiD,CAAajE,GAC/BE,EAAMO,aAAeK,WAAWC,EAASC,GAEzCE,EAAAA,QAAW4C,GAAG1C,SAAU,YAAaR,GACrCM,EAAAA,QAAW4C,GAAG9D,EAAGqB,oBAAqB,WAAYJ,EA3BjD,CA4BF,CA7EDC,EAAAA,QAAWgD,aACT,QACA,GACA,SACElE,EACA4B,EACAuC,GAEA,GAAIA,GAAOA,IAAQjD,EAAAA,QAAWkD,KAAM,CAClC,IAAMC,EAAiBrE,EAAGE,MAAMC,KAAKJ,YACrCmB,EAAAA,QAAWC,IAAInB,EAAGqB,oBAAqB,YAAagD,GACpDxD,aAAab,EAAGE,MAAMC,KAAKM,qBACpBT,EAAGE,MAAMC,IACjB,CAED,GAAIyB,EAAS,CACX,IAAM1B,EAA8BF,EAAGE,MAAMC,KAOnD,SAAqByB,GACnB,MAAO,CACLA,QACEA,aAAmB0C,SACf,CAAEzC,OAAQD,IACE,IAAZA,EACA,CAAC,EACDA,EAET,CAhByD2C,CAAY3C,GAChE1B,EAAMH,YAAcA,EAAYyE,KAAK,KAAMxE,GAC3CkB,EAAAA,QAAW4C,GAAG9D,EAAGqB,oBAAqB,YAAanB,EAAMH,YAC1D,CACF,G","sources":["../node_modules/codemirror-graphql/src/utils/info-addon.ts"],"sourcesContent":["/**\n * Copyright (c) 2021 GraphQL Contributors\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\nimport CodeMirror from 'codemirror';\nimport { GraphQLInfoOptions } from '../info';\n\nCodeMirror.defineOption(\n 'info',\n false,\n (\n cm: CodeMirror.Editor,\n options: GraphQLInfoOptions,\n old?: GraphQLInfoOptions,\n ) => {\n if (old && old !== CodeMirror.Init) {\n const oldOnMouseOver = cm.state.info.onMouseOver;\n CodeMirror.off(cm.getWrapperElement(), 'mouseover', oldOnMouseOver);\n clearTimeout(cm.state.info.hoverTimeout);\n delete cm.state.info;\n }\n\n if (options) {\n const state: Record<string, any> = (cm.state.info = createState(options));\n state.onMouseOver = onMouseOver.bind(null, cm);\n CodeMirror.on(cm.getWrapperElement(), 'mouseover', state.onMouseOver);\n }\n },\n);\n\nfunction createState(options: GraphQLInfoOptions) {\n return {\n options:\n options instanceof Function\n ? { render: options }\n : options === true\n ? {}\n : options,\n };\n}\n\nfunction getHoverTime(cm: CodeMirror.Editor) {\n const options = cm.state.info.options;\n return (options && options.hoverTime) || 500;\n}\n\nfunction onMouseOver(cm: CodeMirror.Editor, e: MouseEvent) {\n const state = cm.state.info;\n\n const target = e.target || e.srcElement;\n\n if (!(target instanceof HTMLElement)) {\n return;\n }\n if (target.nodeName !== 'SPAN' || state.hoverTimeout !== undefined) {\n return;\n }\n\n const box = target.getBoundingClientRect();\n\n const onMouseMove = function () {\n clearTimeout(state.hoverTimeout);\n state.hoverTimeout = setTimeout(onHover, hoverTime);\n };\n\n const onMouseOut = function () {\n CodeMirror.off(document, 'mousemove', onMouseMove);\n CodeMirror.off(cm.getWrapperElement(), 'mouseout', onMouseOut);\n clearTimeout(state.hoverTimeout);\n state.hoverTimeout = undefined;\n };\n\n const onHover = function () {\n CodeMirror.off(document, 'mousemove', onMouseMove);\n CodeMirror.off(cm.getWrapperElement(), 'mouseout', onMouseOut);\n state.hoverTimeout = undefined;\n onMouseHover(cm, box);\n };\n\n const hoverTime = getHoverTime(cm);\n state.hoverTimeout = setTimeout(onHover, hoverTime);\n\n CodeMirror.on(document, 'mousemove', onMouseMove);\n CodeMirror.on(cm.getWrapperElement(), 'mouseout', onMouseOut);\n}\n\nfunction onMouseHover(cm: CodeMirror.Editor, box: DOMRect) {\n const pos = cm.coordsChar({\n left: (box.left + box.right) / 2,\n top: (box.top + box.bottom) / 2,\n });\n\n const state = cm.state.info;\n const options = state.options;\n const render = options.render || cm.getHelper(pos, 'info');\n if (render) {\n const token = cm.getTokenAt(pos, true);\n if (token) {\n const info: HTMLDivElement = render(token, options, cm, pos);\n if (info) {\n showPopup(cm, box, info);\n }\n }\n }\n}\n\nfunction showPopup(cm: CodeMirror.Editor, box: DOMRect, info: HTMLDivElement) {\n const popup = document.createElement('div');\n popup.className = 'CodeMirror-info';\n popup.appendChild(info);\n document.body.appendChild(popup);\n\n const popupBox = popup.getBoundingClientRect();\n const popupStyle = window.getComputedStyle(popup);\n const popupWidth =\n popupBox.right -\n popupBox.left +\n parseFloat(popupStyle.marginLeft) +\n parseFloat(popupStyle.marginRight);\n const popupHeight =\n popupBox.bottom -\n popupBox.top +\n parseFloat(popupStyle.marginTop) +\n parseFloat(popupStyle.marginBottom);\n\n let topPos = box.bottom;\n if (\n popupHeight > window.innerHeight - box.bottom - 15 &&\n box.top > window.innerHeight - box.bottom\n ) {\n topPos = box.top - popupHeight;\n }\n\n if (topPos < 0) {\n topPos = box.bottom;\n }\n\n let leftPos = Math.max(0, window.innerWidth - popupWidth - 15);\n if (leftPos > box.left) {\n leftPos = box.left;\n }\n\n popup.style.opacity = '1';\n popup.style.top = topPos + 'px';\n popup.style.left = leftPos + 'px';\n\n let popupTimeout: NodeJS.Timeout;\n\n const onMouseOverPopup = function () {\n clearTimeout(popupTimeout);\n };\n\n const onMouseOut = function () {\n clearTimeout(popupTimeout);\n popupTimeout = setTimeout(hidePopup, 200);\n };\n\n const hidePopup = function () {\n CodeMirror.off(popup, 'mouseover', onMouseOverPopup);\n CodeMirror.off(popup, 'mouseout', onMouseOut);\n CodeMirror.off(cm.getWrapperElement(), 'mouseout', onMouseOut);\n\n if (popup.style.opacity) {\n popup.style.opacity = '0';\n setTimeout(() => {\n if (popup.parentNode) {\n popup.parentNode.removeChild(popup);\n }\n }, 600);\n } else if (popup.parentNode) {\n popup.parentNode.removeChild(popup);\n }\n };\n\n CodeMirror.on(popup, 'mouseover', onMouseOverPopup);\n CodeMirror.on(popup, 'mouseout', onMouseOut);\n CodeMirror.on(cm.getWrapperElement(), 'mouseout', onMouseOut);\n}\n"],"names":["onMouseOver","cm","e","state","info","target","srcElement","HTMLElement","nodeName","undefined","hoverTimeout","box","getBoundingClientRect","onMouseMove","clearTimeout","setTimeout","onHover","hoverTime","onMouseOut","codemirror_1","off","document","getWrapperElement","pos","coordsChar","left","right","top","bottom","options","render","getHelper","token","getTokenAt","popup","createElement","className","appendChild","body","popupBox","popupStyle","window","getComputedStyle","popupWidth","parseFloat","marginLeft","marginRight","popupHeight","marginTop","marginBottom","topPos","innerHeight","popupTimeout","leftPos","Math","max","innerWidth","style","opacity","onMouseOverPopup","hidePopup","parentNode","removeChild","on","showPopup","onMouseHover","getHoverTime","defineOption","old","Init","oldOnMouseOver","Function","createState","bind"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (self.webpackChunkdashboard=self.webpackChunkdashboard||[]).push([[136,849,170],{3170:function(e,n,t){!function(e){function n(n,t,o){var r,i=n.getWrapperElement();return(r=i.appendChild(document.createElement("div"))).className=o?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?r.innerHTML=t:r.appendChild(t),e.addClass(i,"dialog-opened"),r}function t(e,n){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=n}e.defineExtension("openDialog",(function(o,r,i){i||(i={}),t(this,null);var a=n(this,o,i.bottom),s=!1,l=this;function c(n){if("string"==typeof n)f.value=n;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),i.onClose&&i.onClose(a)}}var u,f=a.getElementsByTagName("input")[0];return f?(f.focus(),i.value&&(f.value=i.value,!1!==i.selectValueOnOpen&&f.select()),i.onInput&&e.on(f,"input",(function(e){i.onInput(e,f.value,c)})),i.onKeyUp&&e.on(f,"keyup",(function(e){i.onKeyUp(e,f.value,c)})),e.on(f,"keydown",(function(n){i&&i.onKeyDown&&i.onKeyDown(n,f.value,c)||((27==n.keyCode||!1!==i.closeOnEnter&&13==n.keyCode)&&(f.blur(),e.e_stop(n),c()),13==n.keyCode&&r(f.value,n))})),!1!==i.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(u=a.getElementsByTagName("button")[0])&&(e.on(u,"click",(function(){c(),l.focus()})),!1!==i.closeOnBlur&&e.on(u,"blur",c),u.focus()),c})),e.defineExtension("openConfirm",(function(o,r,i){t(this,null);var a=n(this,o,i&&i.bottom),s=a.getElementsByTagName("button"),l=!1,c=this,u=1;function f(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var h=0;h<s.length;++h){var p=s[h];!function(n){e.on(p,"click",(function(t){e.e_preventDefault(t),f(),n&&n(c)}))}(r[h]),e.on(p,"blur",(function(){--u,setTimeout((function(){u<=0&&f()}),200)})),e.on(p,"focus",(function(){++u}))}})),e.defineExtension("openNotification",(function(o,r){t(this,c);var i,a=n(this,o,r&&r.bottom),s=!1,l=r&&"undefined"!==typeof r.duration?r.duration:5e3;function c(){s||(s=!0,clearTimeout(i),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(n){e.e_preventDefault(n),c()})),l&&(i=setTimeout(c,l)),c}))}(t(3668))},7136:function(e,n,t){!function(e){"use strict";function n(e,n){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(n){e.lastIndex=n.pos;var t=e.exec(n.string);if(t&&t.index==n.pos)return n.pos+=t[0].length||1,"searching";t?n.pos=t.index:n.skipToEnd()}}}function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function o(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,n,t){return e.getSearchCursor(n,t,{caseFold:r(n),multiline:!0})}function a(e,n,t,o,r){e.openDialog(n,o,{value:t,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){g(e)},onKeyDown:r,bottom:e.options.search.bottom})}function s(e,n,t,o,r){e.openDialog?e.openDialog(n,r,{value:o,selectValueOnOpen:!0,bottom:e.options.search.bottom}):r(prompt(t,o))}function l(e,n,t,o){e.openConfirm?e.openConfirm(n,o):confirm(t)&&o[0]()}function c(e){return e.replace(/\\([nrt\\])/g,(function(e,n){return"n"==n?"\n":"r"==n?"\r":"t"==n?"\t":"\\"==n?"\\":e}))}function u(e){var n=e.match(/^\/(.*)\/([a-z]*)$/);if(n)try{e=new RegExp(n[1],-1==n[2].indexOf("i")?"":"i")}catch(t){}else e=c(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function f(e,t,o){t.queryText=o,t.query=u(o),e.removeOverlay(t.overlay,r(t.query)),t.overlay=n(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function h(n,t,r,i){var l=o(n);if(l.query)return p(n,t);var c=n.getSelection()||l.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),r&&n.openDialog){var u=null,h=function(t,o){e.e_stop(o),t&&(t!=l.queryText&&(f(n,l,t),l.posFrom=l.posTo=n.getCursor()),u&&(u.style.opacity=1),p(n,o.shiftKey,(function(e,t){var o;t.line<3&&document.querySelector&&(o=n.display.wrapper.querySelector(".CodeMirror-dialog"))&&o.getBoundingClientRect().bottom-4>n.cursorCoords(t,"window").top&&((u=o).style.opacity=.4)})))};a(n,m(n),c,h,(function(t,r){var i=e.keyName(t),a=n.getOption("extraKeys"),s=a&&a[i]||e.keyMap[n.getOption("keyMap")][i];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(t),f(n,o(n),r),n.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(t),h(r,t))})),i&&c&&(f(n,l,c),p(n,t))}else s(n,m(n),"Search for:",c,(function(e){e&&!l.query&&n.operation((function(){f(n,l,e),l.posFrom=l.posTo=n.getCursor(),p(n,t)}))}))}function p(n,t,r){n.operation((function(){var a=o(n),s=i(n,a.query,t?a.posFrom:a.posTo);(s.find(t)||(s=i(n,a.query,t?e.Pos(n.lastLine()):e.Pos(n.firstLine(),0))).find(t))&&(n.setSelection(s.from(),s.to()),n.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),r&&r(s.from(),s.to()))}))}function g(e){e.operation((function(){var n=o(e);n.lastQuery=n.query,n.query&&(n.query=n.queryText=null,e.removeOverlay(n.overlay),n.annotate&&(n.annotate.clear(),n.annotate=null))}))}function d(e,n){var t=e?document.createElement(e):document.createDocumentFragment();for(var o in n)t[o]=n[o];for(var r=2;r<arguments.length;r++){var i=arguments[r];t.appendChild("string"==typeof i?document.createTextNode(i):i)}return t}function m(e){return d("",null,d("span",{className:"CodeMirror-search-label"},e.phrase("Search:"))," ",d("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",d("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function v(e){return d("",null," ",d("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",d("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function y(e){return d("",null,d("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",d("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function x(e){return d("",null,d("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",d("button",{},e.phrase("Yes"))," ",d("button",{},e.phrase("No"))," ",d("button",{},e.phrase("All"))," ",d("button",{},e.phrase("Stop")))}function C(e,n,t){e.operation((function(){for(var o=i(e,n);o.findNext();)if("string"!=typeof n){var r=e.getRange(o.from(),o.to()).match(n);o.replace(t.replace(/\$(\d)/g,(function(e,n){return r[n]})))}else o.replace(t)}))}function N(e,n){if(!e.getOption("readOnly")){var t=e.getSelection()||o(e).lastQuery,r=n?e.phrase("Replace all:"):e.phrase("Replace:"),a=d("",null,d("span",{className:"CodeMirror-search-label"},r),v(e));s(e,a,r,t,(function(t){t&&(t=u(t),s(e,y(e),e.phrase("Replace with:"),"",(function(o){if(o=c(o),n)C(e,t,o);else{g(e);var r=i(e,t,e.getCursor("from")),a=function n(){var a,c=r.from();!(a=r.findNext())&&(r=i(e,t),!(a=r.findNext())||c&&r.from().line==c.line&&r.from().ch==c.ch)||(e.setSelection(r.from(),r.to()),e.scrollIntoView({from:r.from(),to:r.to()}),l(e,x(e),e.phrase("Replace?"),[function(){s(a)},n,function(){C(e,t,o)}]))},s=function(e){r.replace("string"==typeof t?o:o.replace(/\$(\d)/g,(function(n,t){return e[t]}))),a()};a()}})))}))}}e.defineOption("search",{bottom:!1}),e.commands.find=function(e){g(e),h(e)},e.commands.findPersistent=function(e){g(e),h(e,!1,!0)},e.commands.findPersistentNext=function(e){h(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){h(e,!0,!0,!0)},e.commands.findNext=h,e.commands.findPrev=function(e){h(e,!0)},e.commands.clearSearch=g,e.commands.replace=N,e.commands.replaceAll=function(e){N(e,!0)}}(t(3668),t(6849),t(3170))},6849:function(e,n,t){!function(e){"use strict";var n,t,o=e.Pos;function r(e){var n=e.flags;return null!=n?n:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function i(e,n){for(var t=r(e),o=t,i=0;i<n.length;i++)-1==o.indexOf(n.charAt(i))&&(o+=n.charAt(i));return t==o?e:new RegExp(e.source,o)}function a(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function s(e,n,t){n=i(n,"g");for(var r=t.line,a=t.ch,s=e.lastLine();r<=s;r++,a=0){n.lastIndex=a;var l=e.getLine(r),c=n.exec(l);if(c)return{from:o(r,c.index),to:o(r,c.index+c[0].length),match:c}}}function l(e,n,t){if(!a(n))return s(e,n,t);n=i(n,"gm");for(var r,l=1,c=t.line,u=e.lastLine();c<=u;){for(var f=0;f<l&&!(c>u);f++){var h=e.getLine(c++);r=null==r?h:r+"\n"+h}l*=2,n.lastIndex=t.ch;var p=n.exec(r);if(p){var g=r.slice(0,p.index).split("\n"),d=p[0].split("\n"),m=t.line+g.length-1,v=g[g.length-1].length;return{from:o(m,v),to:o(m+d.length-1,1==d.length?v+d[0].length:d[d.length-1].length),match:p}}}}function c(e,n,t){for(var o,r=0;r<=e.length;){n.lastIndex=r;var i=n.exec(e);if(!i)break;var a=i.index+i[0].length;if(a>e.length-t)break;(!o||a>o.index+o[0].length)&&(o=i),r=i.index+1}return o}function u(e,n,t){n=i(n,"g");for(var r=t.line,a=t.ch,s=e.firstLine();r>=s;r--,a=-1){var l=e.getLine(r),u=c(l,n,a<0?0:l.length-a);if(u)return{from:o(r,u.index),to:o(r,u.index+u[0].length),match:u}}}function f(e,n,t){if(!a(n))return u(e,n,t);n=i(n,"gm");for(var r,s=1,l=e.getLine(t.line).length-t.ch,f=t.line,h=e.firstLine();f>=h;){for(var p=0;p<s&&f>=h;p++){var g=e.getLine(f--);r=null==r?g:g+"\n"+r}s*=2;var d=c(r,n,l);if(d){var m=r.slice(0,d.index).split("\n"),v=d[0].split("\n"),y=f+m.length,x=m[m.length-1].length;return{from:o(y,x),to:o(y+v.length-1,1==v.length?x+v[0].length:v[v.length-1].length),match:d}}}}function h(e,n,t,o){if(e.length==n.length)return t;for(var r=0,i=t+Math.max(0,e.length-n.length);;){if(r==i)return r;var a=r+i>>1,s=o(e.slice(0,a)).length;if(s==t)return a;s>t?i=a:r=a+1}}function p(e,r,i,a){if(!r.length)return null;var s=a?n:t,l=s(r).split(/\r|\n\r?/);e:for(var c=i.line,u=i.ch,f=e.lastLine()+1-l.length;c<=f;c++,u=0){var p=e.getLine(c).slice(u),g=s(p);if(1==l.length){var d=g.indexOf(l[0]);if(-1==d)continue e;return i=h(p,g,d,s)+u,{from:o(c,h(p,g,d,s)+u),to:o(c,h(p,g,d+l[0].length,s)+u)}}var m=g.length-l[0].length;if(g.slice(m)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(c+v))!=l[v])continue e;var y=e.getLine(c+l.length-1),x=s(y),C=l[l.length-1];if(x.slice(0,C.length)==C)return{from:o(c,h(p,g,m,s)+u),to:o(c+l.length-1,h(y,x,C.length,s))}}}}function g(e,r,i,a){if(!r.length)return null;var s=a?n:t,l=s(r).split(/\r|\n\r?/);e:for(var c=i.line,u=i.ch,f=e.firstLine()-1+l.length;c>=f;c--,u=-1){var p=e.getLine(c);u>-1&&(p=p.slice(0,u));var g=s(p);if(1==l.length){var d=g.lastIndexOf(l[0]);if(-1==d)continue e;return{from:o(c,h(p,g,d,s)),to:o(c,h(p,g,d+l[0].length,s))}}var m=l[l.length-1];if(g.slice(0,m.length)==m){var v=1;for(i=c-l.length+1;v<l.length-1;v++)if(s(e.getLine(i+v))!=l[v])continue e;var y=e.getLine(c+1-l.length),x=s(y);if(x.slice(x.length-l[0].length)==l[0])return{from:o(c+1-l.length,h(y,x,y.length-l[0].length,s)),to:o(c,h(p,g,m.length,s))}}}}function d(e,n,t,r){var a;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,t=t?e.clipPos(t):o(0,0),this.pos={from:t,to:t},"object"==typeof r?a=r.caseFold:(a=r,r=null),"string"==typeof n?(null==a&&(a=!1),this.matches=function(t,o){return(t?g:p)(e,n,o,a)}):(n=i(n,"gm"),r&&!1===r.multiline?this.matches=function(t,o){return(t?u:s)(e,n,o)}:this.matches=function(t,o){return(t?f:l)(e,n,o)})}String.prototype.normalize?(n=function(e){return e.normalize("NFD").toLowerCase()},t=function(e){return e.normalize("NFD")}):(n=function(e){return e.toLowerCase()},t=function(e){return e}),d.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(n){var t=this.doc.clipPos(n?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(t=o(t.line,t.ch),n?(t.ch--,t.ch<0&&(t.line--,t.ch=(this.doc.getLine(t.line)||"").length)):(t.ch++,t.ch>(this.doc.getLine(t.line)||"").length&&(t.ch=0,t.line++)),0!=e.cmpPos(t,this.doc.clipPos(t))))return this.atOccurrence=!1;var r=this.matches(n,t);if(this.afterEmptyMatch=r&&0==e.cmpPos(r.from,r.to),r)return this.pos=r,this.atOccurrence=!0,this.pos.match||!0;var i=o(n?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(n,t){if(this.atOccurrence){var r=e.splitLines(n);this.doc.replaceRange(r,this.pos.from,this.pos.to,t),this.pos.to=o(this.pos.from.line+r.length-1,r[r.length-1].length+(1==r.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,n,t){return new d(this.doc,e,n,t)})),e.defineDocExtension("getSearchCursor",(function(e,n,t){return new d(this,e,n,t)})),e.defineExtension("selectMatches",(function(n,t){for(var o=[],r=this.getSearchCursor(n,this.getCursor("from"),t);r.findNext()&&!(e.cmpPos(r.to(),this.getCursor("to"))>0);)o.push({anchor:r.from(),head:r.to()});o.length&&this.setSelections(o,0)}))}(t(3668))}}]);
2
- //# sourceMappingURL=136.7849911c.chunk.js.map
1
+ (self.webpackChunkdashboard=self.webpackChunkdashboard||[]).push([[136,849,170],{3170:function(e,n,t){!function(e){function n(n,t,o){var r,i=n.getWrapperElement();return(r=i.appendChild(document.createElement("div"))).className=o?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?r.innerHTML=t:r.appendChild(t),e.addClass(i,"dialog-opened"),r}function t(e,n){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=n}e.defineExtension("openDialog",(function(o,r,i){i||(i={}),t(this,null);var a=n(this,o,i.bottom),s=!1,l=this;function c(n){if("string"==typeof n)f.value=n;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),i.onClose&&i.onClose(a)}}var u,f=a.getElementsByTagName("input")[0];return f?(f.focus(),i.value&&(f.value=i.value,!1!==i.selectValueOnOpen&&f.select()),i.onInput&&e.on(f,"input",(function(e){i.onInput(e,f.value,c)})),i.onKeyUp&&e.on(f,"keyup",(function(e){i.onKeyUp(e,f.value,c)})),e.on(f,"keydown",(function(n){i&&i.onKeyDown&&i.onKeyDown(n,f.value,c)||((27==n.keyCode||!1!==i.closeOnEnter&&13==n.keyCode)&&(f.blur(),e.e_stop(n),c()),13==n.keyCode&&r(f.value,n))})),!1!==i.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(u=a.getElementsByTagName("button")[0])&&(e.on(u,"click",(function(){c(),l.focus()})),!1!==i.closeOnBlur&&e.on(u,"blur",c),u.focus()),c})),e.defineExtension("openConfirm",(function(o,r,i){t(this,null);var a=n(this,o,i&&i.bottom),s=a.getElementsByTagName("button"),l=!1,c=this,u=1;function f(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var h=0;h<s.length;++h){var p=s[h];!function(n){e.on(p,"click",(function(t){e.e_preventDefault(t),f(),n&&n(c)}))}(r[h]),e.on(p,"blur",(function(){--u,setTimeout((function(){u<=0&&f()}),200)})),e.on(p,"focus",(function(){++u}))}})),e.defineExtension("openNotification",(function(o,r){t(this,c);var i,a=n(this,o,r&&r.bottom),s=!1,l=r&&"undefined"!==typeof r.duration?r.duration:5e3;function c(){s||(s=!0,clearTimeout(i),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(n){e.e_preventDefault(n),c()})),l&&(i=setTimeout(c,l)),c}))}(t(1300))},7136:function(e,n,t){!function(e){"use strict";function n(e,n){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(n){e.lastIndex=n.pos;var t=e.exec(n.string);if(t&&t.index==n.pos)return n.pos+=t[0].length||1,"searching";t?n.pos=t.index:n.skipToEnd()}}}function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function o(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,n,t){return e.getSearchCursor(n,t,{caseFold:r(n),multiline:!0})}function a(e,n,t,o,r){e.openDialog(n,o,{value:t,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){g(e)},onKeyDown:r,bottom:e.options.search.bottom})}function s(e,n,t,o,r){e.openDialog?e.openDialog(n,r,{value:o,selectValueOnOpen:!0,bottom:e.options.search.bottom}):r(prompt(t,o))}function l(e,n,t,o){e.openConfirm?e.openConfirm(n,o):confirm(t)&&o[0]()}function c(e){return e.replace(/\\([nrt\\])/g,(function(e,n){return"n"==n?"\n":"r"==n?"\r":"t"==n?"\t":"\\"==n?"\\":e}))}function u(e){var n=e.match(/^\/(.*)\/([a-z]*)$/);if(n)try{e=new RegExp(n[1],-1==n[2].indexOf("i")?"":"i")}catch(t){}else e=c(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function f(e,t,o){t.queryText=o,t.query=u(o),e.removeOverlay(t.overlay,r(t.query)),t.overlay=n(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function h(n,t,r,i){var l=o(n);if(l.query)return p(n,t);var c=n.getSelection()||l.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),r&&n.openDialog){var u=null,h=function(t,o){e.e_stop(o),t&&(t!=l.queryText&&(f(n,l,t),l.posFrom=l.posTo=n.getCursor()),u&&(u.style.opacity=1),p(n,o.shiftKey,(function(e,t){var o;t.line<3&&document.querySelector&&(o=n.display.wrapper.querySelector(".CodeMirror-dialog"))&&o.getBoundingClientRect().bottom-4>n.cursorCoords(t,"window").top&&((u=o).style.opacity=.4)})))};a(n,m(n),c,h,(function(t,r){var i=e.keyName(t),a=n.getOption("extraKeys"),s=a&&a[i]||e.keyMap[n.getOption("keyMap")][i];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(t),f(n,o(n),r),n.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(t),h(r,t))})),i&&c&&(f(n,l,c),p(n,t))}else s(n,m(n),"Search for:",c,(function(e){e&&!l.query&&n.operation((function(){f(n,l,e),l.posFrom=l.posTo=n.getCursor(),p(n,t)}))}))}function p(n,t,r){n.operation((function(){var a=o(n),s=i(n,a.query,t?a.posFrom:a.posTo);(s.find(t)||(s=i(n,a.query,t?e.Pos(n.lastLine()):e.Pos(n.firstLine(),0))).find(t))&&(n.setSelection(s.from(),s.to()),n.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),r&&r(s.from(),s.to()))}))}function g(e){e.operation((function(){var n=o(e);n.lastQuery=n.query,n.query&&(n.query=n.queryText=null,e.removeOverlay(n.overlay),n.annotate&&(n.annotate.clear(),n.annotate=null))}))}function d(e,n){var t=e?document.createElement(e):document.createDocumentFragment();for(var o in n)t[o]=n[o];for(var r=2;r<arguments.length;r++){var i=arguments[r];t.appendChild("string"==typeof i?document.createTextNode(i):i)}return t}function m(e){return d("",null,d("span",{className:"CodeMirror-search-label"},e.phrase("Search:"))," ",d("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",d("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function v(e){return d("",null," ",d("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",d("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function y(e){return d("",null,d("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",d("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function x(e){return d("",null,d("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",d("button",{},e.phrase("Yes"))," ",d("button",{},e.phrase("No"))," ",d("button",{},e.phrase("All"))," ",d("button",{},e.phrase("Stop")))}function C(e,n,t){e.operation((function(){for(var o=i(e,n);o.findNext();)if("string"!=typeof n){var r=e.getRange(o.from(),o.to()).match(n);o.replace(t.replace(/\$(\d)/g,(function(e,n){return r[n]})))}else o.replace(t)}))}function N(e,n){if(!e.getOption("readOnly")){var t=e.getSelection()||o(e).lastQuery,r=n?e.phrase("Replace all:"):e.phrase("Replace:"),a=d("",null,d("span",{className:"CodeMirror-search-label"},r),v(e));s(e,a,r,t,(function(t){t&&(t=u(t),s(e,y(e),e.phrase("Replace with:"),"",(function(o){if(o=c(o),n)C(e,t,o);else{g(e);var r=i(e,t,e.getCursor("from")),a=function n(){var a,c=r.from();!(a=r.findNext())&&(r=i(e,t),!(a=r.findNext())||c&&r.from().line==c.line&&r.from().ch==c.ch)||(e.setSelection(r.from(),r.to()),e.scrollIntoView({from:r.from(),to:r.to()}),l(e,x(e),e.phrase("Replace?"),[function(){s(a)},n,function(){C(e,t,o)}]))},s=function(e){r.replace("string"==typeof t?o:o.replace(/\$(\d)/g,(function(n,t){return e[t]}))),a()};a()}})))}))}}e.defineOption("search",{bottom:!1}),e.commands.find=function(e){g(e),h(e)},e.commands.findPersistent=function(e){g(e),h(e,!1,!0)},e.commands.findPersistentNext=function(e){h(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){h(e,!0,!0,!0)},e.commands.findNext=h,e.commands.findPrev=function(e){h(e,!0)},e.commands.clearSearch=g,e.commands.replace=N,e.commands.replaceAll=function(e){N(e,!0)}}(t(1300),t(6849),t(3170))},6849:function(e,n,t){!function(e){"use strict";var n,t,o=e.Pos;function r(e){var n=e.flags;return null!=n?n:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function i(e,n){for(var t=r(e),o=t,i=0;i<n.length;i++)-1==o.indexOf(n.charAt(i))&&(o+=n.charAt(i));return t==o?e:new RegExp(e.source,o)}function a(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function s(e,n,t){n=i(n,"g");for(var r=t.line,a=t.ch,s=e.lastLine();r<=s;r++,a=0){n.lastIndex=a;var l=e.getLine(r),c=n.exec(l);if(c)return{from:o(r,c.index),to:o(r,c.index+c[0].length),match:c}}}function l(e,n,t){if(!a(n))return s(e,n,t);n=i(n,"gm");for(var r,l=1,c=t.line,u=e.lastLine();c<=u;){for(var f=0;f<l&&!(c>u);f++){var h=e.getLine(c++);r=null==r?h:r+"\n"+h}l*=2,n.lastIndex=t.ch;var p=n.exec(r);if(p){var g=r.slice(0,p.index).split("\n"),d=p[0].split("\n"),m=t.line+g.length-1,v=g[g.length-1].length;return{from:o(m,v),to:o(m+d.length-1,1==d.length?v+d[0].length:d[d.length-1].length),match:p}}}}function c(e,n,t){for(var o,r=0;r<=e.length;){n.lastIndex=r;var i=n.exec(e);if(!i)break;var a=i.index+i[0].length;if(a>e.length-t)break;(!o||a>o.index+o[0].length)&&(o=i),r=i.index+1}return o}function u(e,n,t){n=i(n,"g");for(var r=t.line,a=t.ch,s=e.firstLine();r>=s;r--,a=-1){var l=e.getLine(r),u=c(l,n,a<0?0:l.length-a);if(u)return{from:o(r,u.index),to:o(r,u.index+u[0].length),match:u}}}function f(e,n,t){if(!a(n))return u(e,n,t);n=i(n,"gm");for(var r,s=1,l=e.getLine(t.line).length-t.ch,f=t.line,h=e.firstLine();f>=h;){for(var p=0;p<s&&f>=h;p++){var g=e.getLine(f--);r=null==r?g:g+"\n"+r}s*=2;var d=c(r,n,l);if(d){var m=r.slice(0,d.index).split("\n"),v=d[0].split("\n"),y=f+m.length,x=m[m.length-1].length;return{from:o(y,x),to:o(y+v.length-1,1==v.length?x+v[0].length:v[v.length-1].length),match:d}}}}function h(e,n,t,o){if(e.length==n.length)return t;for(var r=0,i=t+Math.max(0,e.length-n.length);;){if(r==i)return r;var a=r+i>>1,s=o(e.slice(0,a)).length;if(s==t)return a;s>t?i=a:r=a+1}}function p(e,r,i,a){if(!r.length)return null;var s=a?n:t,l=s(r).split(/\r|\n\r?/);e:for(var c=i.line,u=i.ch,f=e.lastLine()+1-l.length;c<=f;c++,u=0){var p=e.getLine(c).slice(u),g=s(p);if(1==l.length){var d=g.indexOf(l[0]);if(-1==d)continue e;return i=h(p,g,d,s)+u,{from:o(c,h(p,g,d,s)+u),to:o(c,h(p,g,d+l[0].length,s)+u)}}var m=g.length-l[0].length;if(g.slice(m)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(c+v))!=l[v])continue e;var y=e.getLine(c+l.length-1),x=s(y),C=l[l.length-1];if(x.slice(0,C.length)==C)return{from:o(c,h(p,g,m,s)+u),to:o(c+l.length-1,h(y,x,C.length,s))}}}}function g(e,r,i,a){if(!r.length)return null;var s=a?n:t,l=s(r).split(/\r|\n\r?/);e:for(var c=i.line,u=i.ch,f=e.firstLine()-1+l.length;c>=f;c--,u=-1){var p=e.getLine(c);u>-1&&(p=p.slice(0,u));var g=s(p);if(1==l.length){var d=g.lastIndexOf(l[0]);if(-1==d)continue e;return{from:o(c,h(p,g,d,s)),to:o(c,h(p,g,d+l[0].length,s))}}var m=l[l.length-1];if(g.slice(0,m.length)==m){var v=1;for(i=c-l.length+1;v<l.length-1;v++)if(s(e.getLine(i+v))!=l[v])continue e;var y=e.getLine(c+1-l.length),x=s(y);if(x.slice(x.length-l[0].length)==l[0])return{from:o(c+1-l.length,h(y,x,y.length-l[0].length,s)),to:o(c,h(p,g,m.length,s))}}}}function d(e,n,t,r){var a;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,t=t?e.clipPos(t):o(0,0),this.pos={from:t,to:t},"object"==typeof r?a=r.caseFold:(a=r,r=null),"string"==typeof n?(null==a&&(a=!1),this.matches=function(t,o){return(t?g:p)(e,n,o,a)}):(n=i(n,"gm"),r&&!1===r.multiline?this.matches=function(t,o){return(t?u:s)(e,n,o)}:this.matches=function(t,o){return(t?f:l)(e,n,o)})}String.prototype.normalize?(n=function(e){return e.normalize("NFD").toLowerCase()},t=function(e){return e.normalize("NFD")}):(n=function(e){return e.toLowerCase()},t=function(e){return e}),d.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(n){var t=this.doc.clipPos(n?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(t=o(t.line,t.ch),n?(t.ch--,t.ch<0&&(t.line--,t.ch=(this.doc.getLine(t.line)||"").length)):(t.ch++,t.ch>(this.doc.getLine(t.line)||"").length&&(t.ch=0,t.line++)),0!=e.cmpPos(t,this.doc.clipPos(t))))return this.atOccurrence=!1;var r=this.matches(n,t);if(this.afterEmptyMatch=r&&0==e.cmpPos(r.from,r.to),r)return this.pos=r,this.atOccurrence=!0,this.pos.match||!0;var i=o(n?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(n,t){if(this.atOccurrence){var r=e.splitLines(n);this.doc.replaceRange(r,this.pos.from,this.pos.to,t),this.pos.to=o(this.pos.from.line+r.length-1,r[r.length-1].length+(1==r.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,n,t){return new d(this.doc,e,n,t)})),e.defineDocExtension("getSearchCursor",(function(e,n,t){return new d(this,e,n,t)})),e.defineExtension("selectMatches",(function(n,t){for(var o=[],r=this.getSearchCursor(n,this.getCursor("from"),t);r.findNext()&&!(e.cmpPos(r.to(),this.getCursor("to"))>0);)o.push({anchor:r.from(),head:r.to()});o.length&&this.setSelections(o,0)}))}(t(1300))}}]);
2
+ //# sourceMappingURL=136.f5cbe563.chunk.js.map