stepzen-graphiql 2.1.1 → 2.1.3-experimental.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 (112) hide show
  1. package/README.md +5 -0
  2. package/dist/babel-D4jPkB8I.js +15 -0
  3. package/dist/babel-JpECBl9w.mjs +7255 -0
  4. package/dist/components/ExplorerPage/ExplorerPage.d.ts +1 -1
  5. package/dist/components/ExplorerPage/GraphiQLInterface.d.ts +15 -6
  6. package/dist/components/ExplorerPage/Snippets.d.ts +0 -2
  7. package/dist/components/ExplorerPage/clearResponse.d.ts +1 -1
  8. package/dist/components/ExplorerPage/clearTooltip.d.ts +1 -1
  9. package/dist/estree-C0Hb5Q7V.mjs +4528 -0
  10. package/dist/estree-U7n5DgHH.js +44 -0
  11. package/dist/graphql-BTSjQZiC.js +28 -0
  12. package/dist/graphql-CBsByfto.js +28 -0
  13. package/dist/graphql-DDJE6tIl.mjs +157 -0
  14. package/dist/graphql-DrfUc9jr.mjs +1256 -0
  15. package/dist/graphql-DrfV554J.js +6 -0
  16. package/dist/graphql-QzAQRYwl.mjs +1221 -0
  17. package/dist/graphqlMode-DN1ezrYh.js +1 -0
  18. package/dist/graphqlMode-vV8mnLBW.mjs +262 -0
  19. package/dist/index-CjC6wsAG.js +1 -0
  20. package/dist/index-RniHQi68.mjs +84805 -0
  21. package/dist/index-gvW0eRXD.js +687 -0
  22. package/dist/index-tHknWeFg.mjs +295 -0
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +1 -1
  25. package/dist/jsonMode-BW-tqoSY.js +15 -0
  26. package/dist/jsonMode-Cj0cONq6.mjs +2002 -0
  27. package/dist/lib/graphiql-helpers.d.ts +2 -2
  28. package/dist/lite-Dpvo4tIS.js +1 -0
  29. package/dist/lite-hj39DC-n.mjs +135 -0
  30. package/dist/monaco-editor-C-pj7hSk.mjs +17 -0
  31. package/dist/monaco-editor-CBZFMjO6.js +1 -0
  32. package/dist/mouseTarget-C-J1vBNL.mjs +9353 -0
  33. package/dist/mouseTarget-S3azYj9_.js +9 -0
  34. package/dist/standalone-BhI0QomE.mjs +2458 -0
  35. package/dist/standalone-YWSF5RH2.js +29 -0
  36. package/dist/style.css +2 -2
  37. package/dist/style2.css +1 -0
  38. package/dist/toggleHighContrast-BK2acAo4.mjs +97805 -0
  39. package/dist/toggleHighContrast-MyO5wNxT.js +726 -0
  40. package/package.json +13 -15
  41. package/dist/Range-CPFFy5pj.mjs +0 -26
  42. package/dist/Range-CUfOrqgY.js +0 -1
  43. package/dist/SchemaReference-DNGK8Gti.mjs +0 -146
  44. package/dist/SchemaReference-PZPPI4-g.js +0 -1
  45. package/dist/brace-fold-DFRMFuzG.mjs +0 -122
  46. package/dist/brace-fold-QYFeMqi4.js +0 -1
  47. package/dist/closebrackets-5W81jIxx.js +0 -2
  48. package/dist/closebrackets-BJdKNrct.mjs +0 -165
  49. package/dist/codemirror-CK47QajN.mjs +0 -27
  50. package/dist/codemirror-DMBo1i5w.js +0 -24
  51. package/dist/codemirror-DgPcZxSc.mjs +0 -6121
  52. package/dist/codemirror-P5arRD-4.js +0 -1
  53. package/dist/comment-DZX4WUX2.js +0 -2
  54. package/dist/comment-DaZ9yeFw.mjs +0 -150
  55. package/dist/dialog-BWHlvTdM.js +0 -1
  56. package/dist/dialog-BvB91RPq.mjs +0 -26
  57. package/dist/dialog-Ci1bnuc2.mjs +0 -74
  58. package/dist/dialog-Dh2DOTOu.js +0 -1
  59. package/dist/foldgutter-CEPGXQXV.mjs +0 -238
  60. package/dist/foldgutter-lfb5vdue.js +0 -1
  61. package/dist/forEachState-DA54msa8.mjs +0 -11
  62. package/dist/forEachState-DY_pA9Bd.js +0 -1
  63. package/dist/hint-BImUj9vL.mjs +0 -24
  64. package/dist/hint-BYh7bCzG.js +0 -1
  65. package/dist/hint-CeNacopx.mjs +0 -123
  66. package/dist/hint-Cqs-Eq99.js +0 -1
  67. package/dist/index-BXTilrNr.mjs +0 -11
  68. package/dist/index-BqePscbb.js +0 -1
  69. package/dist/index-Of0v8HXf.js +0 -650
  70. package/dist/index-c_h-B3RW.mjs +0 -89430
  71. package/dist/info-DKGfeFeR.mjs +0 -99
  72. package/dist/info-addon-0QldEyjg.js +0 -1
  73. package/dist/info-addon-BQBJGmtN.mjs +0 -66
  74. package/dist/info-euxfaXDv.js +0 -1
  75. package/dist/javascript-BMRweX7z.js +0 -1
  76. package/dist/javascript-CEIhlHWT.mjs +0 -26
  77. package/dist/javascript-RO_jaPiE.mjs +0 -707
  78. package/dist/javascript-poxRzxcy.js +0 -1
  79. package/dist/jsx-BY-uBax7.js +0 -1
  80. package/dist/jsx-CZtHOvZL.mjs +0 -414
  81. package/dist/jump-Bn-VPPJQ.js +0 -1
  82. package/dist/jump-BrK8-pOa.mjs +0 -85
  83. package/dist/jump-to-line-V4vHDeSQ.mjs +0 -61
  84. package/dist/jump-to-line-Zpc7tkYy.js +0 -1
  85. package/dist/lint-BBDtrEaL.js +0 -1
  86. package/dist/lint-BEn4QK3F.mjs +0 -216
  87. package/dist/lint-BgrfL8k7.js +0 -1
  88. package/dist/lint-CiQwkfWf.mjs +0 -112
  89. package/dist/lint-DxY_4HRh.js +0 -6
  90. package/dist/lint-naD3ldhf.mjs +0 -272
  91. package/dist/matchbrackets-BB4g2Y6d.mjs +0 -87
  92. package/dist/matchbrackets-DPv_MB7c.js +0 -1
  93. package/dist/matchbrackets-DhN7zJoS.js +0 -1
  94. package/dist/matchbrackets-eKECiv9B.mjs +0 -26
  95. package/dist/mode-CgGO246j.js +0 -1
  96. package/dist/mode-CwlRWrPi.mjs +0 -73
  97. package/dist/mode-DyP1DXNa.js +0 -1
  98. package/dist/mode-indent-9VnFlqY-.mjs +0 -8
  99. package/dist/mode-indent-m3TP74Ia.js +0 -1
  100. package/dist/mode-kdpxZ9Hq.mjs +0 -25
  101. package/dist/mode-r_2HfIrS.js +0 -1
  102. package/dist/mode-xgi1fEzL.mjs +0 -64
  103. package/dist/search-BuLFIkN5.mjs +0 -268
  104. package/dist/search-CclAH4eV.js +0 -2
  105. package/dist/searchcursor-B9F32jvl.mjs +0 -26
  106. package/dist/searchcursor-CV26OekK.js +0 -1
  107. package/dist/searchcursor-DHtNMOPb.mjs +0 -239
  108. package/dist/searchcursor-eGwb3e2h.js +0 -7
  109. package/dist/show-hint-BfWoiGzQ.mjs +0 -357
  110. package/dist/show-hint-CQ_VjC6w.js +0 -1
  111. package/dist/sublime-C6Rg9CL1.mjs +0 -563
  112. package/dist/sublime-DFk-sDtd.js +0 -6
@@ -1,87 +0,0 @@
1
- import { r as E } from "./codemirror-DgPcZxSc.mjs";
2
- var H = { exports: {} }, M;
3
- function F() {
4
- return M || (M = 1, function(S, q) {
5
- (function(f) {
6
- f(E());
7
- })(function(f) {
8
- var m = /MSIE \d/.test(navigator.userAgent) && (document.documentMode == null || document.documentMode < 8), o = f.Pos, d = { "(": ")>", ")": "(<", "[": "]>", "]": "[<", "{": "}>", "}": "{<", "<": ">>", ">": "<<" };
9
- function B(t) {
10
- return t && t.bracketRegex || /[(){}[\]]/;
11
- }
12
- function L(t, r, e) {
13
- var i = t.getLineHandle(r.line), n = r.ch - 1, l = e && e.afterCursor;
14
- l == null && (l = /(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));
15
- var h = B(e), u = !l && n >= 0 && h.test(i.text.charAt(n)) && d[i.text.charAt(n)] || h.test(i.text.charAt(n + 1)) && d[i.text.charAt(++n)];
16
- if (!u) return null;
17
- var a = u.charAt(1) == ">" ? 1 : -1;
18
- if (e && e.strict && a > 0 != (n == r.ch)) return null;
19
- var g = t.getTokenTypeAt(o(r.line, n + 1)), s = y(t, o(r.line, n + (a > 0 ? 1 : 0)), a, g, e);
20
- return s == null ? null : {
21
- from: o(r.line, n),
22
- to: s && s.pos,
23
- match: s && s.ch == u.charAt(0),
24
- forward: a > 0
25
- };
26
- }
27
- function y(t, r, e, i, n) {
28
- for (var l = n && n.maxScanLineLength || 1e4, h = n && n.maxScanLines || 1e3, u = [], a = B(n), g = e > 0 ? Math.min(r.line + h, t.lastLine() + 1) : Math.max(t.firstLine() - 1, r.line - h), s = r.line; s != g; s += e) {
29
- var c = t.getLine(s);
30
- if (c) {
31
- var k = e > 0 ? 0 : c.length - 1, T = e > 0 ? c.length : -1;
32
- if (!(c.length > l))
33
- for (s == r.line && (k = r.ch - (e < 0 ? 1 : 0)); k != T; k += e) {
34
- var x = c.charAt(k);
35
- if (a.test(x) && (i === void 0 || (t.getTokenTypeAt(o(s, k + 1)) || "") == (i || ""))) {
36
- var b = d[x];
37
- if (b && b.charAt(1) == ">" == e > 0) u.push(x);
38
- else if (u.length) u.pop();
39
- else return { pos: o(s, k), ch: x };
40
- }
41
- }
42
- }
43
- }
44
- return s - e == (e > 0 ? t.lastLine() : t.firstLine()) ? !1 : null;
45
- }
46
- function A(t, r, e) {
47
- for (var i = t.state.matchBrackets.maxHighlightLineLength || 1e3, n = e && e.highlightNonMatching, l = [], h = t.listSelections(), u = 0; u < h.length; u++) {
48
- var a = h[u].empty() && L(t, h[u].head, e);
49
- if (a && (a.match || n !== !1) && t.getLine(a.from.line).length <= i) {
50
- var g = a.match ? "CodeMirror-matchingbracket" : "CodeMirror-nonmatchingbracket";
51
- l.push(t.markText(a.from, o(a.from.line, a.from.ch + 1), { className: g })), a.to && t.getLine(a.to.line).length <= i && l.push(t.markText(a.to, o(a.to.line, a.to.ch + 1), { className: g }));
52
- }
53
- }
54
- if (l.length) {
55
- m && t.state.focused && t.focus();
56
- var s = function() {
57
- t.operation(function() {
58
- for (var c = 0; c < l.length; c++) l[c].clear();
59
- });
60
- };
61
- if (r) setTimeout(s, 800);
62
- else return s;
63
- }
64
- }
65
- function v(t) {
66
- t.operation(function() {
67
- t.state.matchBrackets.currentlyHighlighted && (t.state.matchBrackets.currentlyHighlighted(), t.state.matchBrackets.currentlyHighlighted = null), t.state.matchBrackets.currentlyHighlighted = A(t, !1, t.state.matchBrackets);
68
- });
69
- }
70
- function p(t) {
71
- t.state.matchBrackets && t.state.matchBrackets.currentlyHighlighted && (t.state.matchBrackets.currentlyHighlighted(), t.state.matchBrackets.currentlyHighlighted = null);
72
- }
73
- f.defineOption("matchBrackets", !1, function(t, r, e) {
74
- e && e != f.Init && (t.off("cursorActivity", v), t.off("focus", v), t.off("blur", p), p(t)), r && (t.state.matchBrackets = typeof r == "object" ? r : {}, t.on("cursorActivity", v), t.on("focus", v), t.on("blur", p));
75
- }), f.defineExtension("matchBrackets", function() {
76
- A(this, !0);
77
- }), f.defineExtension("findMatchingBracket", function(t, r, e) {
78
- return (e || typeof r == "boolean") && (e ? (e.strict = r, r = e) : r = r ? { strict: !0 } : null), L(this, t, r);
79
- }), f.defineExtension("scanForBracket", function(t, r, e, i) {
80
- return y(this, t, r, e, i);
81
- });
82
- });
83
- }()), H.exports;
84
- }
85
- export {
86
- F as r
87
- };
@@ -1 +0,0 @@
1
- "use strict";const E=require("./codemirror-DMBo1i5w.js");var H={exports:{}},M;function S(){return M||(M=1,function(q,R){(function(f){f(E.requireCodemirror())})(function(f){var m=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),o=f.Pos,d={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function p(t){return t&&t.bracketRegex||/[(){}[\]]/}function L(t,r,e){var s=t.getLineHandle(r.line),n=r.ch-1,h=e&&e.afterCursor;h==null&&(h=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var l=p(e),u=!h&&n>=0&&l.test(s.text.charAt(n))&&d[s.text.charAt(n)]||l.test(s.text.charAt(n+1))&&d[s.text.charAt(++n)];if(!u)return null;var a=u.charAt(1)==">"?1:-1;if(e&&e.strict&&a>0!=(n==r.ch))return null;var g=t.getTokenTypeAt(o(r.line,n+1)),i=y(t,o(r.line,n+(a>0?1:0)),a,g,e);return i==null?null:{from:o(r.line,n),to:i&&i.pos,match:i&&i.ch==u.charAt(0),forward:a>0}}function y(t,r,e,s,n){for(var h=n&&n.maxScanLineLength||1e4,l=n&&n.maxScanLines||1e3,u=[],a=p(n),g=e>0?Math.min(r.line+l,t.lastLine()+1):Math.max(t.firstLine()-1,r.line-l),i=r.line;i!=g;i+=e){var c=t.getLine(i);if(c){var k=e>0?0:c.length-1,T=e>0?c.length:-1;if(!(c.length>h))for(i==r.line&&(k=r.ch-(e<0?1:0));k!=T;k+=e){var x=c.charAt(k);if(a.test(x)&&(s===void 0||(t.getTokenTypeAt(o(i,k+1))||"")==(s||""))){var b=d[x];if(b&&b.charAt(1)==">"==e>0)u.push(x);else if(u.length)u.pop();else return{pos:o(i,k),ch:x}}}}}return i-e==(e>0?t.lastLine():t.firstLine())?!1:null}function A(t,r,e){for(var s=t.state.matchBrackets.maxHighlightLineLength||1e3,n=e&&e.highlightNonMatching,h=[],l=t.listSelections(),u=0;u<l.length;u++){var a=l[u].empty()&&L(t,l[u].head,e);if(a&&(a.match||n!==!1)&&t.getLine(a.from.line).length<=s){var g=a.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";h.push(t.markText(a.from,o(a.from.line,a.from.ch+1),{className:g})),a.to&&t.getLine(a.to.line).length<=s&&h.push(t.markText(a.to,o(a.to.line,a.to.ch+1),{className:g}))}}if(h.length){m&&t.state.focused&&t.focus();var i=function(){t.operation(function(){for(var c=0;c<h.length;c++)h[c].clear()})};if(r)setTimeout(i,800);else return i}}function v(t){t.operation(function(){t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null),t.state.matchBrackets.currentlyHighlighted=A(t,!1,t.state.matchBrackets)})}function B(t){t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)}f.defineOption("matchBrackets",!1,function(t,r,e){e&&e!=f.Init&&(t.off("cursorActivity",v),t.off("focus",v),t.off("blur",B),B(t)),r&&(t.state.matchBrackets=typeof r=="object"?r:{},t.on("cursorActivity",v),t.on("focus",v),t.on("blur",B))}),f.defineExtension("matchBrackets",function(){A(this,!0)}),f.defineExtension("findMatchingBracket",function(t,r,e){return(e||typeof r=="boolean")&&(e?(e.strict=r,r=e):r=r?{strict:!0}:null),L(this,t,r)}),f.defineExtension("scanForBracket",function(t,r,e,s){return y(this,t,r,e,s)})})}()),H.exports}exports.requireMatchbrackets=S;
@@ -1 +0,0 @@
1
- "use strict";const n=require("./index-Of0v8HXf.js"),i=require("./matchbrackets-DPv_MB7c.js");function u(r,o){for(var c=0;c<o.length;c++){const e=o[c];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const a=Object.getOwnPropertyDescriptor(e,t);a&&Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var s=i.requireMatchbrackets();const f=n.getDefaultExportFromCjs(s),b=u({__proto__:null,default:f},[s]);exports.matchbrackets=b;
@@ -1,26 +0,0 @@
1
- import { g as n } from "./index-c_h-B3RW.mjs";
2
- import { r as f } from "./matchbrackets-BB4g2Y6d.mjs";
3
- function i(r, c) {
4
- for (var o = 0; o < c.length; o++) {
5
- const e = c[o];
6
- if (typeof e != "string" && !Array.isArray(e)) {
7
- for (const t in e)
8
- if (t !== "default" && !(t in r)) {
9
- const a = Object.getOwnPropertyDescriptor(e, t);
10
- a && Object.defineProperty(r, t, a.get ? a : {
11
- enumerable: !0,
12
- get: () => e[t]
13
- });
14
- }
15
- }
16
- }
17
- return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
18
- }
19
- var s = f();
20
- const m = /* @__PURE__ */ n(s), b = /* @__PURE__ */ i({
21
- __proto__: null,
22
- default: m
23
- }, [s]);
24
- export {
25
- b as m
26
- };
@@ -1 +0,0 @@
1
- "use strict";const a=require("./codemirror-P5arRD-4.js"),e=require("./index-Of0v8HXf.js"),l=require("./mode-indent-m3TP74Ia.js");a.CodeMirror.defineMode("graphql-results",t=>{const r=e.onlineParser({eatWhitespace:u=>u.eatSpace(),lexRules:n,parseRules:s,editorConfig:{tabSize:t.tabSize}});return{config:t,startState:r.startState,token:r.token,indent:l.indent,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const n={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[e.p("{"),e.list("Entry",e.p(",")),e.p("}")],Entry:[e.t("String","def"),e.p(":"),"Value"],Value(t){switch(t.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(t.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(t.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[e.t("Number","number")],StringValue:[e.t("String","string")],BooleanValue:[e.t("Keyword","builtin")],NullValue:[e.t("Keyword","keyword")],ListValue:[e.p("["),e.list("Value",e.p(",")),e.p("]")],ObjectValue:[e.p("{"),e.list("ObjectField",e.p(",")),e.p("}")],ObjectField:[e.t("String","property"),e.p(":"),"Value"]};
@@ -1,73 +0,0 @@
1
- import { C as i } from "./codemirror-CK47QajN.mjs";
2
- import { o, e, l, t, f as n } from "./index-c_h-B3RW.mjs";
3
- import { i as c } from "./mode-indent-9VnFlqY-.mjs";
4
- i.defineMode("graphql-variables", (a) => {
5
- const r = o({
6
- eatWhitespace: (u) => u.eatSpace(),
7
- lexRules: b,
8
- parseRules: d,
9
- editorConfig: { tabSize: a.tabSize }
10
- });
11
- return {
12
- config: a,
13
- startState: r.startState,
14
- token: r.token,
15
- indent: c,
16
- electricInput: /^\s*[}\]]/,
17
- fold: "brace",
18
- closeBrackets: {
19
- pairs: '[]{}""',
20
- explode: "[]{}"
21
- }
22
- };
23
- });
24
- const b = {
25
- Punctuation: /^\[|]|\{|\}|:|,/,
26
- Number: /^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,
27
- String: /^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,
28
- Keyword: /^true|false|null/
29
- }, d = {
30
- Document: [e("{"), l("Variable", n(e(","))), e("}")],
31
- Variable: [s("variable"), e(":"), "Value"],
32
- Value(a) {
33
- switch (a.kind) {
34
- case "Number":
35
- return "NumberValue";
36
- case "String":
37
- return "StringValue";
38
- case "Punctuation":
39
- switch (a.value) {
40
- case "[":
41
- return "ListValue";
42
- case "{":
43
- return "ObjectValue";
44
- }
45
- return null;
46
- case "Keyword":
47
- switch (a.value) {
48
- case "true":
49
- case "false":
50
- return "BooleanValue";
51
- case "null":
52
- return "NullValue";
53
- }
54
- return null;
55
- }
56
- },
57
- NumberValue: [t("Number", "number")],
58
- StringValue: [t("String", "string")],
59
- BooleanValue: [t("Keyword", "builtin")],
60
- NullValue: [t("Keyword", "keyword")],
61
- ListValue: [e("["), l("Value", n(e(","))), e("]")],
62
- ObjectValue: [e("{"), l("ObjectField", n(e(","))), e("}")],
63
- ObjectField: [s("attribute"), e(":"), "Value"]
64
- };
65
- function s(a) {
66
- return {
67
- style: a,
68
- match: (r) => r.kind === "String",
69
- update(r, u) {
70
- r.name = u.value.slice(1, -1);
71
- }
72
- };
73
- }
@@ -1 +0,0 @@
1
- "use strict";const l=require("./codemirror-P5arRD-4.js"),e=require("./index-Of0v8HXf.js"),n=require("./mode-indent-m3TP74Ia.js");l.CodeMirror.defineMode("graphql-variables",t=>{const r=e.onlineParser({eatWhitespace:a=>a.eatSpace(),lexRules:i,parseRules:s,editorConfig:{tabSize:t.tabSize}});return{config:t,startState:r.startState,token:r.token,indent:n.indent,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const i={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[e.p("{"),e.list("Variable",e.opt(e.p(","))),e.p("}")],Variable:[u("variable"),e.p(":"),"Value"],Value(t){switch(t.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(t.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(t.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[e.t("Number","number")],StringValue:[e.t("String","string")],BooleanValue:[e.t("Keyword","builtin")],NullValue:[e.t("Keyword","keyword")],ListValue:[e.p("["),e.list("Value",e.opt(e.p(","))),e.p("]")],ObjectValue:[e.p("{"),e.list("ObjectField",e.opt(e.p(","))),e.p("}")],ObjectField:[u("attribute"),e.p(":"),"Value"]};function u(t){return{style:t,match:r=>r.kind==="String",update(r,a){r.name=a.value.slice(1,-1)}}}
@@ -1,8 +0,0 @@
1
- function d(i, l) {
2
- var e, n;
3
- const { levels: t, indentLevel: o } = i;
4
- return ((!t || t.length === 0 ? o : t.at(-1) - (!((e = this.electricInput) === null || e === void 0) && e.test(l) ? 1 : 0)) || 0) * (((n = this.config) === null || n === void 0 ? void 0 : n.indentUnit) || 0);
5
- }
6
- export {
7
- d as i
8
- };
@@ -1 +0,0 @@
1
- "use strict";function d(i,l){var n,t;const{levels:e,indentLevel:v}=i;return((!e||e.length===0?v:e.at(-1)-(!((n=this.electricInput)===null||n===void 0)&&n.test(l)?1:0))||0)*(((t=this.config)===null||t===void 0?void 0:t.indentUnit)||0)}exports.indent=d;
@@ -1,25 +0,0 @@
1
- import { C as a } from "./codemirror-CK47QajN.mjs";
2
- import { o as s, P as o, L as i, r as l } from "./index-c_h-B3RW.mjs";
3
- import { i as n } from "./mode-indent-9VnFlqY-.mjs";
4
- const p = (e) => {
5
- const r = s({
6
- eatWhitespace: (t) => t.eatWhile(l),
7
- lexRules: i,
8
- parseRules: o,
9
- editorConfig: { tabSize: e.tabSize }
10
- });
11
- return {
12
- config: e,
13
- startState: r.startState,
14
- token: r.token,
15
- indent: n,
16
- electricInput: /^\s*[})\]]/,
17
- fold: "brace",
18
- lineComment: "#",
19
- closeBrackets: {
20
- pairs: '()[]{}""',
21
- explode: "()[]{}"
22
- }
23
- };
24
- };
25
- a.defineMode("graphql", p);
@@ -1 +0,0 @@
1
- "use strict";const n=require("./codemirror-P5arRD-4.js"),e=require("./index-Of0v8HXf.js"),o=require("./mode-indent-m3TP74Ia.js"),i=r=>{const t=e.onlineParser({eatWhitespace:s=>s.eatWhile(e.isIgnored),lexRules:e.LexRules,parseRules:e.ParseRules,editorConfig:{tabSize:r.tabSize}});return{config:r,startState:t.startState,token:t.token,indent:o.indent,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}};n.CodeMirror.defineMode("graphql",i);
@@ -1,64 +0,0 @@
1
- import { C as n } from "./codemirror-CK47QajN.mjs";
2
- import { o as s, t, e, l as a } from "./index-c_h-B3RW.mjs";
3
- import { i } from "./mode-indent-9VnFlqY-.mjs";
4
- n.defineMode("graphql-results", (r) => {
5
- const u = s({
6
- eatWhitespace: (l) => l.eatSpace(),
7
- lexRules: o,
8
- parseRules: c,
9
- editorConfig: { tabSize: r.tabSize }
10
- });
11
- return {
12
- config: r,
13
- startState: u.startState,
14
- token: u.token,
15
- indent: i,
16
- electricInput: /^\s*[}\]]/,
17
- fold: "brace",
18
- closeBrackets: {
19
- pairs: '[]{}""',
20
- explode: "[]{}"
21
- }
22
- };
23
- });
24
- const o = {
25
- Punctuation: /^\[|]|\{|\}|:|,/,
26
- Number: /^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,
27
- String: /^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,
28
- Keyword: /^true|false|null/
29
- }, c = {
30
- Document: [e("{"), a("Entry", e(",")), e("}")],
31
- Entry: [t("String", "def"), e(":"), "Value"],
32
- Value(r) {
33
- switch (r.kind) {
34
- case "Number":
35
- return "NumberValue";
36
- case "String":
37
- return "StringValue";
38
- case "Punctuation":
39
- switch (r.value) {
40
- case "[":
41
- return "ListValue";
42
- case "{":
43
- return "ObjectValue";
44
- }
45
- return null;
46
- case "Keyword":
47
- switch (r.value) {
48
- case "true":
49
- case "false":
50
- return "BooleanValue";
51
- case "null":
52
- return "NullValue";
53
- }
54
- return null;
55
- }
56
- },
57
- NumberValue: [t("Number", "number")],
58
- StringValue: [t("String", "string")],
59
- BooleanValue: [t("Keyword", "builtin")],
60
- NullValue: [t("Keyword", "keyword")],
61
- ListValue: [e("["), a("Value", e(",")), e("]")],
62
- ObjectValue: [e("{"), a("ObjectField", e(",")), e("}")],
63
- ObjectField: [t("String", "property"), e(":"), "Value"]
64
- };
@@ -1,268 +0,0 @@
1
- import { g as K } from "./index-c_h-B3RW.mjs";
2
- import { r as L } from "./codemirror-DgPcZxSc.mjs";
3
- import { r as z } from "./searchcursor-DHtNMOPb.mjs";
4
- import { r as U } from "./dialog-Ci1bnuc2.mjs";
5
- function B(m, R) {
6
- for (var a = 0; a < R.length; a++) {
7
- const d = R[a];
8
- if (typeof d != "string" && !Array.isArray(d)) {
9
- for (const y in d)
10
- if (y !== "default" && !(y in m)) {
11
- const g = Object.getOwnPropertyDescriptor(d, y);
12
- g && Object.defineProperty(m, y, g.get ? g : {
13
- enumerable: !0,
14
- get: () => d[y]
15
- });
16
- }
17
- }
18
- }
19
- return Object.freeze(Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }));
20
- }
21
- var F = { exports: {} }, Q;
22
- function M() {
23
- return Q || (Q = 1, function(m, R) {
24
- (function(a) {
25
- a(L(), z(), U());
26
- })(function(a) {
27
- a.defineOption("search", { bottom: !1 });
28
- function d(e, t) {
29
- return typeof e == "string" ? e = new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), t ? "gi" : "g") : e.global || (e = new RegExp(e.source, e.ignoreCase ? "gi" : "g")), { token: function(n) {
30
- e.lastIndex = n.pos;
31
- var o = e.exec(n.string);
32
- if (o && o.index == n.pos)
33
- return n.pos += o[0].length || 1, "searching";
34
- o ? n.pos = o.index : n.skipToEnd();
35
- } };
36
- }
37
- function y() {
38
- this.posFrom = this.posTo = this.lastQuery = this.query = null, this.overlay = null;
39
- }
40
- function g(e) {
41
- return e.state.search || (e.state.search = new y());
42
- }
43
- function O(e) {
44
- return typeof e == "string" && e == e.toLowerCase();
45
- }
46
- function S(e, t, n) {
47
- return e.getSearchCursor(t, n, { caseFold: O(t), multiline: !0 });
48
- }
49
- function A(e, t, n, o, r) {
50
- e.openDialog(t, o, {
51
- value: n,
52
- selectValueOnOpen: !0,
53
- closeOnEnter: !1,
54
- onClose: function() {
55
- b(e);
56
- },
57
- onKeyDown: r,
58
- bottom: e.options.search.bottom
59
- });
60
- }
61
- function D(e, t, n, o, r) {
62
- e.openDialog ? e.openDialog(t, r, { value: o, selectValueOnOpen: !0, bottom: e.options.search.bottom }) : r(prompt(n, o));
63
- }
64
- function j(e, t, n, o) {
65
- e.openConfirm ? e.openConfirm(t, o) : confirm(n) && o[0]();
66
- }
67
- function P(e) {
68
- return e.replace(/\\([nrt\\])/g, function(t, n) {
69
- return n == "n" ? `
70
- ` : n == "r" ? "\r" : n == "t" ? " " : n == "\\" ? "\\" : t;
71
- });
72
- }
73
- function C(e) {
74
- var t = e.match(/^\/(.*)\/([a-z]*)$/);
75
- if (t)
76
- try {
77
- e = new RegExp(t[1], t[2].indexOf("i") == -1 ? "" : "i");
78
- } catch {
79
- }
80
- else
81
- e = P(e);
82
- return (typeof e == "string" ? e == "" : e.test("")) && (e = /x^/), e;
83
- }
84
- function N(e, t, n) {
85
- t.queryText = n, t.query = C(n), e.removeOverlay(t.overlay, O(t.query)), t.overlay = d(t.query, O(t.query)), e.addOverlay(t.overlay), e.showMatchesOnScrollbar && (t.annotate && (t.annotate.clear(), t.annotate = null), t.annotate = e.showMatchesOnScrollbar(t.query, O(t.query)));
86
- }
87
- function x(e, t, n, o) {
88
- var r = g(e);
89
- if (r.query) return w(e, t);
90
- var i = e.getSelection() || r.lastQuery;
91
- if (i instanceof RegExp && i.source == "x^" && (i = null), n && e.openDialog) {
92
- var p = null, f = function(l, v) {
93
- a.e_stop(v), l && (l != r.queryText && (N(e, r, l), r.posFrom = r.posTo = e.getCursor()), p && (p.style.opacity = 1), w(e, v.shiftKey, function(h, c) {
94
- var u;
95
- c.line < 3 && document.querySelector && (u = e.display.wrapper.querySelector(".CodeMirror-dialog")) && u.getBoundingClientRect().bottom - 4 > e.cursorCoords(c, "window").top && ((p = u).style.opacity = 0.4);
96
- }));
97
- };
98
- A(e, T(e), i, f, function(l, v) {
99
- var h = a.keyName(l), c = e.getOption("extraKeys"), u = c && c[h] || a.keyMap[e.getOption("keyMap")][h];
100
- u == "findNext" || u == "findPrev" || u == "findPersistentNext" || u == "findPersistentPrev" ? (a.e_stop(l), N(e, g(e), v), e.execCommand(u)) : (u == "find" || u == "findPersistent") && (a.e_stop(l), f(v, l));
101
- }), o && i && (N(e, r, i), w(e, t));
102
- } else
103
- D(e, T(e), "Search for:", i, function(l) {
104
- l && !r.query && e.operation(function() {
105
- N(e, r, l), r.posFrom = r.posTo = e.getCursor(), w(e, t);
106
- });
107
- });
108
- }
109
- function w(e, t, n) {
110
- e.operation(function() {
111
- var o = g(e), r = S(e, o.query, t ? o.posFrom : o.posTo);
112
- !r.find(t) && (r = S(e, o.query, t ? a.Pos(e.lastLine()) : a.Pos(e.firstLine(), 0)), !r.find(t)) || (e.setSelection(r.from(), r.to()), e.scrollIntoView({ from: r.from(), to: r.to() }, 20), o.posFrom = r.from(), o.posTo = r.to(), n && n(r.from(), r.to()));
113
- });
114
- }
115
- function b(e) {
116
- e.operation(function() {
117
- var t = g(e);
118
- t.lastQuery = t.query, t.query && (t.query = t.queryText = null, e.removeOverlay(t.overlay), t.annotate && (t.annotate.clear(), t.annotate = null));
119
- });
120
- }
121
- function s(e, t) {
122
- var n = e ? document.createElement(e) : document.createDocumentFragment();
123
- for (var o in t)
124
- n[o] = t[o];
125
- for (var r = 2; r < arguments.length; r++) {
126
- var i = arguments[r];
127
- n.appendChild(typeof i == "string" ? document.createTextNode(i) : i);
128
- }
129
- return n;
130
- }
131
- function T(e) {
132
- var t = s(
133
- "label",
134
- { className: "CodeMirror-search-label" },
135
- e.phrase("Search:"),
136
- s("input", {
137
- type: "text",
138
- style: "width: 10em",
139
- className: "CodeMirror-search-field",
140
- id: "CodeMirror-search-field"
141
- })
142
- );
143
- return t.setAttribute("for", "CodeMirror-search-field"), s(
144
- "",
145
- null,
146
- t,
147
- " ",
148
- s(
149
- "span",
150
- { style: "color: #666", className: "CodeMirror-search-hint" },
151
- e.phrase("(Use /re/ syntax for regexp search)")
152
- )
153
- );
154
- }
155
- function k(e) {
156
- return s(
157
- "",
158
- null,
159
- " ",
160
- s("input", { type: "text", style: "width: 10em", className: "CodeMirror-search-field" }),
161
- " ",
162
- s(
163
- "span",
164
- { style: "color: #666", className: "CodeMirror-search-hint" },
165
- e.phrase("(Use /re/ syntax for regexp search)")
166
- )
167
- );
168
- }
169
- function I(e) {
170
- return s(
171
- "",
172
- null,
173
- s("span", { className: "CodeMirror-search-label" }, e.phrase("With:")),
174
- " ",
175
- s("input", { type: "text", style: "width: 10em", className: "CodeMirror-search-field" })
176
- );
177
- }
178
- function V(e) {
179
- return s(
180
- "",
181
- null,
182
- s("span", { className: "CodeMirror-search-label" }, e.phrase("Replace?")),
183
- " ",
184
- s("button", {}, e.phrase("Yes")),
185
- " ",
186
- s("button", {}, e.phrase("No")),
187
- " ",
188
- s("button", {}, e.phrase("All")),
189
- " ",
190
- s("button", {}, e.phrase("Stop"))
191
- );
192
- }
193
- function _(e, t, n) {
194
- e.operation(function() {
195
- for (var o = S(e, t); o.findNext(); )
196
- if (typeof t != "string") {
197
- var r = e.getRange(o.from(), o.to()).match(t);
198
- o.replace(n.replace(/\$(\d)/g, function(i, p) {
199
- return r[p];
200
- }));
201
- } else o.replace(n);
202
- });
203
- }
204
- function E(e, t) {
205
- if (!e.getOption("readOnly")) {
206
- var n = e.getSelection() || g(e).lastQuery, o = t ? e.phrase("Replace all:") : e.phrase("Replace:"), r = s(
207
- "",
208
- null,
209
- s("span", { className: "CodeMirror-search-label" }, o),
210
- k(e)
211
- );
212
- D(e, r, o, n, function(i) {
213
- i && (i = C(i), D(e, I(e), e.phrase("Replace with:"), "", function(p) {
214
- if (p = P(p), t)
215
- _(e, i, p);
216
- else {
217
- b(e);
218
- var f = S(e, i, e.getCursor("from")), l = function() {
219
- var h = f.from(), c;
220
- !(c = f.findNext()) && (f = S(e, i), !(c = f.findNext()) || h && f.from().line == h.line && f.from().ch == h.ch) || (e.setSelection(f.from(), f.to()), e.scrollIntoView({ from: f.from(), to: f.to() }), j(
221
- e,
222
- V(e),
223
- e.phrase("Replace?"),
224
- [
225
- function() {
226
- v(c);
227
- },
228
- l,
229
- function() {
230
- _(e, i, p);
231
- }
232
- ]
233
- ));
234
- }, v = function(h) {
235
- f.replace(typeof i == "string" ? p : p.replace(/\$(\d)/g, function(c, u) {
236
- return h[u];
237
- })), l();
238
- };
239
- l();
240
- }
241
- }));
242
- });
243
- }
244
- }
245
- a.commands.find = function(e) {
246
- b(e), x(e);
247
- }, a.commands.findPersistent = function(e) {
248
- b(e), x(e, !1, !0);
249
- }, a.commands.findPersistentNext = function(e) {
250
- x(e, !1, !0, !0);
251
- }, a.commands.findPersistentPrev = function(e) {
252
- x(e, !0, !0, !0);
253
- }, a.commands.findNext = x, a.commands.findPrev = function(e) {
254
- x(e, !0);
255
- }, a.commands.clearSearch = b, a.commands.replace = E, a.commands.replaceAll = function(e) {
256
- E(e, !0);
257
- };
258
- });
259
- }()), F.exports;
260
- }
261
- var $ = M();
262
- const W = /* @__PURE__ */ K($), X = /* @__PURE__ */ B({
263
- __proto__: null,
264
- default: W
265
- }, [$]);
266
- export {
267
- X as s
268
- };
@@ -1,2 +0,0 @@
1
- "use strict";const K=require("./index-Of0v8HXf.js"),L=require("./codemirror-DMBo1i5w.js"),z=require("./searchcursor-eGwb3e2h.js"),U=require("./dialog-Dh2DOTOu.js");function B(O,R){for(var a=0;a<R.length;a++){const d=R[a];if(typeof d!="string"&&!Array.isArray(d)){for(const y in d)if(y!=="default"&&!(y in O)){const h=Object.getOwnPropertyDescriptor(d,y);h&&Object.defineProperty(O,y,h.get?h:{enumerable:!0,get:()=>d[y]})}}}return Object.freeze(Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}))}var F={exports:{}},Q;function M(){return Q||(Q=1,function(O,R){(function(a){a(L.requireCodemirror(),z.requireSearchcursor(),U.requireDialog())})(function(a){a.defineOption("search",{bottom:!1});function d(e,n){return typeof e=="string"?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var o=e.exec(t.string);if(o&&o.index==t.pos)return t.pos+=o[0].length||1,"searching";o?t.pos=o.index:t.skipToEnd()}}}function y(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function h(e){return e.state.search||(e.state.search=new y)}function N(e){return typeof e=="string"&&e==e.toLowerCase()}function S(e,n,t){return e.getSearchCursor(n,t,{caseFold:N(n),multiline:!0})}function A(e,n,t,o,r){e.openDialog(n,o,{value:t,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){b(e)},onKeyDown:r,bottom:e.options.search.bottom})}function D(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 j(e,n,t,o){e.openConfirm?e.openConfirm(n,o):confirm(t)&&o[0]()}function P(e){return e.replace(/\\([nrt\\])/g,function(n,t){return t=="n"?`
2
- `:t=="r"?"\r":t=="t"?" ":t=="\\"?"\\":n})}function C(e){var n=e.match(/^\/(.*)\/([a-z]*)$/);if(n)try{e=new RegExp(n[1],n[2].indexOf("i")==-1?"":"i")}catch{}else e=P(e);return(typeof e=="string"?e=="":e.test(""))&&(e=/x^/),e}function w(e,n,t){n.queryText=t,n.query=C(t),e.removeOverlay(n.overlay,N(n.query)),n.overlay=d(n.query,N(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,N(n.query)))}function x(e,n,t,o){var r=h(e);if(r.query)return m(e,n);var i=e.getSelection()||r.lastQuery;if(i instanceof RegExp&&i.source=="x^"&&(i=null),t&&e.openDialog){var p=null,f=function(l,v){a.e_stop(v),l&&(l!=r.queryText&&(w(e,r,l),r.posFrom=r.posTo=e.getCursor()),p&&(p.style.opacity=1),m(e,v.shiftKey,function(g,c){var u;c.line<3&&document.querySelector&&(u=e.display.wrapper.querySelector(".CodeMirror-dialog"))&&u.getBoundingClientRect().bottom-4>e.cursorCoords(c,"window").top&&((p=u).style.opacity=.4)}))};A(e,T(e),i,f,function(l,v){var g=a.keyName(l),c=e.getOption("extraKeys"),u=c&&c[g]||a.keyMap[e.getOption("keyMap")][g];u=="findNext"||u=="findPrev"||u=="findPersistentNext"||u=="findPersistentPrev"?(a.e_stop(l),w(e,h(e),v),e.execCommand(u)):(u=="find"||u=="findPersistent")&&(a.e_stop(l),f(v,l))}),o&&i&&(w(e,r,i),m(e,n))}else D(e,T(e),"Search for:",i,function(l){l&&!r.query&&e.operation(function(){w(e,r,l),r.posFrom=r.posTo=e.getCursor(),m(e,n)})})}function m(e,n,t){e.operation(function(){var o=h(e),r=S(e,o.query,n?o.posFrom:o.posTo);!r.find(n)&&(r=S(e,o.query,n?a.Pos(e.lastLine()):a.Pos(e.firstLine(),0)),!r.find(n))||(e.setSelection(r.from(),r.to()),e.scrollIntoView({from:r.from(),to:r.to()},20),o.posFrom=r.from(),o.posTo=r.to(),t&&t(r.from(),r.to()))})}function b(e){e.operation(function(){var n=h(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 s(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(typeof i=="string"?document.createTextNode(i):i)}return t}function T(e){var n=s("label",{className:"CodeMirror-search-label"},e.phrase("Search:"),s("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field",id:"CodeMirror-search-field"}));return n.setAttribute("for","CodeMirror-search-field"),s("",null,n," ",s("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function k(e){return s("",null," ",s("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",s("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function I(e){return s("",null,s("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",s("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function V(e){return s("",null,s("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",s("button",{},e.phrase("Yes"))," ",s("button",{},e.phrase("No"))," ",s("button",{},e.phrase("All"))," ",s("button",{},e.phrase("Stop")))}function _(e,n,t){e.operation(function(){for(var o=S(e,n);o.findNext();)if(typeof n!="string"){var r=e.getRange(o.from(),o.to()).match(n);o.replace(t.replace(/\$(\d)/g,function(i,p){return r[p]}))}else o.replace(t)})}function E(e,n){if(!e.getOption("readOnly")){var t=e.getSelection()||h(e).lastQuery,o=n?e.phrase("Replace all:"):e.phrase("Replace:"),r=s("",null,s("span",{className:"CodeMirror-search-label"},o),k(e));D(e,r,o,t,function(i){i&&(i=C(i),D(e,I(e),e.phrase("Replace with:"),"",function(p){if(p=P(p),n)_(e,i,p);else{b(e);var f=S(e,i,e.getCursor("from")),l=function(){var g=f.from(),c;!(c=f.findNext())&&(f=S(e,i),!(c=f.findNext())||g&&f.from().line==g.line&&f.from().ch==g.ch)||(e.setSelection(f.from(),f.to()),e.scrollIntoView({from:f.from(),to:f.to()}),j(e,V(e),e.phrase("Replace?"),[function(){v(c)},l,function(){_(e,i,p)}]))},v=function(g){f.replace(typeof i=="string"?p:p.replace(/\$(\d)/g,function(c,u){return g[u]})),l()};l()}}))})}}a.commands.find=function(e){b(e),x(e)},a.commands.findPersistent=function(e){b(e),x(e,!1,!0)},a.commands.findPersistentNext=function(e){x(e,!1,!0,!0)},a.commands.findPersistentPrev=function(e){x(e,!0,!0,!0)},a.commands.findNext=x,a.commands.findPrev=function(e){x(e,!0)},a.commands.clearSearch=b,a.commands.replace=E,a.commands.replaceAll=function(e){E(e,!0)}})}()),F.exports}var $=M();const W=K.getDefaultExportFromCjs($),Y=B({__proto__:null,default:W},[$]);exports.search=Y;
@@ -1,26 +0,0 @@
1
- import { g as n } from "./index-c_h-B3RW.mjs";
2
- import { r as f } from "./searchcursor-DHtNMOPb.mjs";
3
- function u(t, c) {
4
- for (var o = 0; o < c.length; o++) {
5
- const r = c[o];
6
- if (typeof r != "string" && !Array.isArray(r)) {
7
- for (const e in r)
8
- if (e !== "default" && !(e in t)) {
9
- const s = Object.getOwnPropertyDescriptor(r, e);
10
- s && Object.defineProperty(t, e, s.get ? s : {
11
- enumerable: !0,
12
- get: () => r[e]
13
- });
14
- }
15
- }
16
- }
17
- return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
18
- }
19
- var a = f();
20
- const i = /* @__PURE__ */ n(a), l = /* @__PURE__ */ u({
21
- __proto__: null,
22
- default: i
23
- }, [a]);
24
- export {
25
- l as s
26
- };
@@ -1 +0,0 @@
1
- "use strict";const n=require("./index-Of0v8HXf.js"),a=require("./searchcursor-eGwb3e2h.js");function i(t,s){for(var o=0;o<s.length;o++){const r=s[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const c=Object.getOwnPropertyDescriptor(r,e);c&&Object.defineProperty(t,e,c.get?c:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var u=a.requireSearchcursor();const f=n.getDefaultExportFromCjs(u),l=i({__proto__:null,default:f},[u]);exports.searchcursor=l;