@difizen/libro-cofine-editor 0.1.2

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 (122) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/es/editor-contribution.d.ts +10 -0
  4. package/es/editor-contribution.d.ts.map +1 -0
  5. package/es/editor-contribution.js +31 -0
  6. package/es/index.d.ts +7 -0
  7. package/es/index.d.ts.map +1 -0
  8. package/es/index.js +6 -0
  9. package/es/index.less +32 -0
  10. package/es/language/lsp/completion-provider.d.ts +13 -0
  11. package/es/language/lsp/completion-provider.d.ts.map +1 -0
  12. package/es/language/lsp/completion-provider.js +290 -0
  13. package/es/language/lsp/diagnostic-provider.d.ts +22 -0
  14. package/es/language/lsp/diagnostic-provider.d.ts.map +1 -0
  15. package/es/language/lsp/diagnostic-provider.js +161 -0
  16. package/es/language/lsp/format-provider.d.ts +9 -0
  17. package/es/language/lsp/format-provider.d.ts.map +1 -0
  18. package/es/language/lsp/format-provider.js +139 -0
  19. package/es/language/lsp/hover-provider.d.ts +8 -0
  20. package/es/language/lsp/hover-provider.d.ts.map +1 -0
  21. package/es/language/lsp/hover-provider.js +136 -0
  22. package/es/language/lsp/language-feature-provider.d.ts +17 -0
  23. package/es/language/lsp/language-feature-provider.d.ts.map +1 -0
  24. package/es/language/lsp/language-feature-provider.js +89 -0
  25. package/es/language/lsp/lsp-contribution.d.ts +25 -0
  26. package/es/language/lsp/lsp-contribution.d.ts.map +1 -0
  27. package/es/language/lsp/lsp-contribution.js +213 -0
  28. package/es/language/lsp/module.d.ts +2 -0
  29. package/es/language/lsp/module.d.ts.map +1 -0
  30. package/es/language/lsp/module.js +3 -0
  31. package/es/language/lsp/semantic-highlight-provider.d.ts +9 -0
  32. package/es/language/lsp/semantic-highlight-provider.d.ts.map +1 -0
  33. package/es/language/lsp/semantic-highlight-provider.js +41 -0
  34. package/es/language/lsp/signature-help-provider.d.ts +8 -0
  35. package/es/language/lsp/signature-help-provider.d.ts.map +1 -0
  36. package/es/language/lsp/signature-help-provider.js +108 -0
  37. package/es/language/lsp/type-concerters.d.ts +7 -0
  38. package/es/language/lsp/type-concerters.d.ts.map +1 -0
  39. package/es/language/lsp/type-concerters.js +37 -0
  40. package/es/language/python/data/MagicPython.tmLanguage.json +4213 -0
  41. package/es/language/python/data/MagicRegExp.tmLanguage.json +497 -0
  42. package/es/language/python/data/configurations/python.json +135 -0
  43. package/es/language/python/data/snippets/python.snippets.json +223 -0
  44. package/es/language/python/module.d.ts +2 -0
  45. package/es/language/python/module.d.ts.map +1 -0
  46. package/es/language/python/module.js +3 -0
  47. package/es/language/python/python-builtin.d.ts +86 -0
  48. package/es/language/python/python-builtin.d.ts.map +1 -0
  49. package/es/language/python/python-builtin.js +569 -0
  50. package/es/language/python/python-language-feature.d.ts +26 -0
  51. package/es/language/python/python-language-feature.d.ts.map +1 -0
  52. package/es/language/python/python-language-feature.js +174 -0
  53. package/es/language-specs.d.ts +33 -0
  54. package/es/language-specs.d.ts.map +1 -0
  55. package/es/language-specs.js +115 -0
  56. package/es/libro-e2-editor.d.ts +277 -0
  57. package/es/libro-e2-editor.d.ts.map +1 -0
  58. package/es/libro-e2-editor.js +720 -0
  59. package/es/libro-e2-preload.d.ts +5 -0
  60. package/es/libro-e2-preload.d.ts.map +1 -0
  61. package/es/libro-e2-preload.js +57 -0
  62. package/es/libro-sql-api.d.ts +8 -0
  63. package/es/libro-sql-api.d.ts.map +1 -0
  64. package/es/libro-sql-api.js +26 -0
  65. package/es/module.d.ts +3 -0
  66. package/es/module.d.ts.map +1 -0
  67. package/es/module.js +44 -0
  68. package/es/placeholder.d.ts +31 -0
  69. package/es/placeholder.d.ts.map +1 -0
  70. package/es/placeholder.js +101 -0
  71. package/es/theme/data/jupyter_dark.json +406 -0
  72. package/es/theme/data/jupyter_hc_dark.json +385 -0
  73. package/es/theme/data/jupyter_hc_light.json +386 -0
  74. package/es/theme/data/jupyter_light.json +386 -0
  75. package/es/theme/data/libro_dark.json +186 -0
  76. package/es/theme/data/libro_light.json +170 -0
  77. package/es/theme/libro-python-theme-contribution.d.ts +6 -0
  78. package/es/theme/libro-python-theme-contribution.d.ts.map +1 -0
  79. package/es/theme/libro-python-theme-contribution.js +49 -0
  80. package/es/theme/module.d.ts +2 -0
  81. package/es/theme/module.d.ts.map +1 -0
  82. package/es/theme/module.js +3 -0
  83. package/es/types.d.ts +10 -0
  84. package/es/types.d.ts.map +1 -0
  85. package/es/types.js +3 -0
  86. package/package.json +67 -0
  87. package/src/editor-contribution.ts +30 -0
  88. package/src/index.less +32 -0
  89. package/src/index.spec.ts +8 -0
  90. package/src/index.ts +6 -0
  91. package/src/language/lsp/completion-provider.ts +214 -0
  92. package/src/language/lsp/diagnostic-provider.ts +148 -0
  93. package/src/language/lsp/format-provider.ts +87 -0
  94. package/src/language/lsp/hover-provider.ts +98 -0
  95. package/src/language/lsp/language-feature-provider.ts +69 -0
  96. package/src/language/lsp/lsp-contribution.ts +159 -0
  97. package/src/language/lsp/module.ts +5 -0
  98. package/src/language/lsp/semantic-highlight-provider.ts +26 -0
  99. package/src/language/lsp/signature-help-provider.ts +65 -0
  100. package/src/language/lsp/type-concerters.ts +72 -0
  101. package/src/language/python/data/MagicPython.tmLanguage.json +4213 -0
  102. package/src/language/python/data/MagicRegExp.tmLanguage.json +497 -0
  103. package/src/language/python/data/configurations/python.json +135 -0
  104. package/src/language/python/data/snippets/python.snippets.json +223 -0
  105. package/src/language/python/module.ts +5 -0
  106. package/src/language/python/python-builtin.ts +891 -0
  107. package/src/language/python/python-language-feature.ts +163 -0
  108. package/src/language-specs.ts +99 -0
  109. package/src/libro-e2-editor.ts +922 -0
  110. package/src/libro-e2-preload.ts +23 -0
  111. package/src/libro-sql-api.ts +20 -0
  112. package/src/module.ts +44 -0
  113. package/src/placeholder.ts +100 -0
  114. package/src/theme/data/jupyter_dark.json +406 -0
  115. package/src/theme/data/jupyter_hc_dark.json +385 -0
  116. package/src/theme/data/jupyter_hc_light.json +386 -0
  117. package/src/theme/data/jupyter_light.json +386 -0
  118. package/src/theme/data/libro_dark.json +186 -0
  119. package/src/theme/data/libro_light.json +170 -0
  120. package/src/theme/libro-python-theme-contribution.ts +36 -0
  121. package/src/theme/module.ts +5 -0
  122. package/src/types.ts +11 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-present Difizen Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # libro-notebook
2
+
3
+ cell
@@ -0,0 +1,10 @@
1
+ import type { CodeEditorFactory } from '@difizen/libro-code-editor';
2
+ import { CodeEditorContribution } from '@difizen/libro-code-editor';
3
+ import { LibroE2EditorFactory } from './libro-e2-editor.js';
4
+ export declare class LibroE2EditorContribution implements CodeEditorContribution {
5
+ factory: CodeEditorFactory;
6
+ defaultConfig: Required<import("./libro-e2-editor.js").LibroE2EditorConfig>;
7
+ constructor(libroE2EditorFactory: LibroE2EditorFactory);
8
+ canHandle(mime: string): number;
9
+ }
10
+ //# sourceMappingURL=editor-contribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor-contribution.d.ts","sourceRoot":"","sources":["../src/editor-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,OAAO,EAAwB,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAElF,qBACa,yBAA0B,YAAW,sBAAsB;IACtE,OAAO,EAAE,iBAAiB,CAAC;IAE3B,aAAa,+DAAwB;gBAGL,oBAAoB,EAAE,oBAAoB;IAK1E,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAWhC"}
@@ -0,0 +1,31 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _dec, _class;
3
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
5
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ import { CodeEditorContribution } from '@difizen/libro-code-editor';
9
+ import { inject, singleton } from '@difizen/mana-app';
10
+ import { libroE2DefaultConfig, LibroE2EditorFactory } from "./libro-e2-editor.js";
11
+ export var LibroE2EditorContribution = (_dec = singleton({
12
+ contrib: [CodeEditorContribution]
13
+ }), _dec(_class = /*#__PURE__*/function () {
14
+ function LibroE2EditorContribution(libroE2EditorFactory) {
15
+ _classCallCheck(this, LibroE2EditorContribution);
16
+ this.defaultConfig = libroE2DefaultConfig;
17
+ this.factory = libroE2EditorFactory;
18
+ }
19
+ LibroE2EditorContribution = inject(LibroE2EditorFactory)(LibroE2EditorContribution, undefined, 0) || LibroE2EditorContribution;
20
+ _createClass(LibroE2EditorContribution, [{
21
+ key: "canHandle",
22
+ value: function canHandle(mime) {
23
+ var mimes = ['application/vnd.libro.sql+json', 'text/x-python', 'application/vnd.libro.prompt+json'];
24
+ if (mimes.includes(mime)) {
25
+ return 50 + 1;
26
+ }
27
+ return 0;
28
+ }
29
+ }]);
30
+ return LibroE2EditorContribution;
31
+ }()) || _class);
package/es/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ export * from './editor-contribution.js';
2
+ export * from './language-specs.js';
3
+ export * from './libro-e2-editor.js';
4
+ export * from './libro-e2-preload.js';
5
+ export * from './libro-sql-api.js';
6
+ export * from './module.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
package/es/index.js ADDED
@@ -0,0 +1,6 @@
1
+ export * from "./editor-contribution.js";
2
+ export * from "./language-specs.js";
3
+ export * from "./libro-e2-editor.js";
4
+ export * from "./libro-e2-preload.js";
5
+ export * from "./libro-sql-api.js";
6
+ export * from "./module.js";
package/es/index.less ADDED
@@ -0,0 +1,32 @@
1
+ .libro-e2-editor-container {
2
+ padding: 12px 0 18px;
3
+ background: var(--mana-libro-input-background) !important;
4
+ border-radius: 4px;
5
+ }
6
+
7
+ .libro-e2-editor {
8
+ background: var(--mana-libro-input-background) !important;
9
+
10
+ .monaco-editor-background,
11
+ .margin {
12
+ background: var(--mana-libro-input-background) !important;
13
+ }
14
+
15
+ .current-line-margin,
16
+ .current-line-both {
17
+ background: var(--mana-libro-editor-activeline-color) !important;
18
+ border: unset !important;
19
+ }
20
+
21
+ .line-numbers {
22
+ margin-left: 8px;
23
+ color: var(--mana-libro-editor-gutter-number-color) !important;
24
+ font-weight: 400;
25
+ font-size: 13px;
26
+ // font-family: Menlo-Regular, consolas, 'DejaVu Sans Mono', monospace !important;
27
+ }
28
+
29
+ .cursors-layer .cursor {
30
+ background-color: var(--mana-libro-editor-cursor-color);
31
+ }
32
+ }
@@ -0,0 +1,13 @@
1
+ import { languages } from '@difizen/monaco-editor-core';
2
+ import type monaco from '@difizen/monaco-editor-core';
3
+ import * as lsp from 'vscode-languageserver-protocol';
4
+ import { LangaugeFeatureProvider } from './language-feature-provider.js';
5
+ export declare class CompletionProvider extends LangaugeFeatureProvider implements monaco.languages.CompletionItemProvider {
6
+ triggerCharacters: ['.', '[', '"', "'"];
7
+ provideCompletionItems: (model: monaco.editor.ITextModel, position: monaco.Position) => Promise<monaco.languages.CompletionList | undefined>;
8
+ protected provideCompletionItemsFromKernel: (model: monaco.editor.ITextModel, position: monaco.Position) => Promise<monaco.languages.CompletionList | undefined>;
9
+ protected provideCompletionItemsFromLSPServer: (model: monaco.editor.ITextModel, position: monaco.Position) => Promise<monaco.languages.CompletionList | undefined>;
10
+ resolveCompletionItem: (item: monaco.languages.CompletionItem, token: monaco.CancellationToken) => Promise<monaco.languages.CompletionItem | undefined>;
11
+ transformCompletion(item: lsp.CompletionItem, range: monaco.IRange | monaco.languages.CompletionItemRanges): monaco.languages.CompletionItem;
12
+ }
13
+ //# sourceMappingURL=completion-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"completion-provider.d.ts","sourceRoot":"","sources":["../../../src/language/lsp/completion-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,KAAK,GAAG,MAAM,gCAAgC,CAAC;AAGtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAGzE,qBAAa,kBACX,SAAQ,uBACR,YAAW,MAAM,CAAC,SAAS,CAAC,sBAAsB;IAElD,iBAAiB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAEjC,sBAAsB,UACpB,OAAO,MAAM,CAAC,UAAU,YACrB,OAAO,QAAQ,KACxB,QAAQ,gBAAgB,CAAC,cAAc,GAAG,SAAS,CAAC,CAGrD;IAEF,SAAS,CAAC,gCAAgC,UACjC,OAAO,MAAM,CAAC,UAAU,YACrB,OAAO,QAAQ,KACxB,QAAQ,gBAAgB,CAAC,cAAc,GAAG,SAAS,CAAC,CAuCrD;IAEF,SAAS,CAAC,mCAAmC,UACpC,OAAO,MAAM,CAAC,UAAU,YACrB,OAAO,QAAQ,KACxB,QAAQ,gBAAgB,CAAC,cAAc,GAAG,SAAS,CAAC,CA8DrD;IAEF,qBAAqB,SACb,gBAAgB,CAAC,cAAc,SAC9B,OAAO,iBAAiB,KAC9B,QAAQ,gBAAgB,CAAC,cAAc,GAAG,SAAS,CAAC,CAcrD;IAEF,mBAAmB,CACjB,IAAI,EAAE,GAAG,CAAC,cAAc,EACxB,KAAK,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,GAC3D,MAAM,CAAC,SAAS,CAAC,cAAc;CAgDnC"}
@@ -0,0 +1,290 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
6
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
7
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
8
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
10
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
13
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
14
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
15
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
16
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
17
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
18
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
19
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
20
+ import { CompletionTriggerKind } from '@difizen/libro-lsp';
21
+ import { languages } from '@difizen/monaco-editor-core';
22
+ import * as lsp from 'vscode-languageserver-protocol';
23
+ import { InsertReplaceEdit } from 'vscode-languageserver-protocol';
24
+ import { LangaugeFeatureProvider } from "./language-feature-provider.js";
25
+ import { CompletionItemKind } from "./type-concerters.js";
26
+ export var CompletionProvider = /*#__PURE__*/function (_LangaugeFeatureProvi) {
27
+ _inherits(CompletionProvider, _LangaugeFeatureProvi);
28
+ var _super = _createSuper(CompletionProvider);
29
+ function CompletionProvider() {
30
+ var _this;
31
+ _classCallCheck(this, CompletionProvider);
32
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
33
+ args[_key] = arguments[_key];
34
+ }
35
+ _this = _super.call.apply(_super, [this].concat(args));
36
+ _this.provideCompletionItems = /*#__PURE__*/function () {
37
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(model, position) {
38
+ var result;
39
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
40
+ while (1) switch (_context.prev = _context.next) {
41
+ case 0:
42
+ _context.next = 2;
43
+ return _this.provideCompletionItemsFromLSPServer(model, position);
44
+ case 2:
45
+ result = _context.sent;
46
+ return _context.abrupt("return", result);
47
+ case 4:
48
+ case "end":
49
+ return _context.stop();
50
+ }
51
+ }, _callee);
52
+ }));
53
+ return function (_x, _x2) {
54
+ return _ref.apply(this, arguments);
55
+ };
56
+ }();
57
+ _this.provideCompletionItemsFromKernel = /*#__PURE__*/function () {
58
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(model, position) {
59
+ var _editor$completionPro, _reply$matches;
60
+ var editor, reply, start, end, suggestion;
61
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
62
+ while (1) switch (_context2.prev = _context2.next) {
63
+ case 0:
64
+ editor = _this.getEditorByModel(model);
65
+ if (!(!editor || editor.getOption('lspEnabled') !== true)) {
66
+ _context2.next = 3;
67
+ break;
68
+ }
69
+ return _context2.abrupt("return");
70
+ case 3:
71
+ _context2.next = 5;
72
+ return (_editor$completionPro = editor.completionProvider) === null || _editor$completionPro === void 0 ? void 0 : _editor$completionPro.call(editor, {
73
+ cursorPosition: editor.getOffsetAt({
74
+ column: position.column,
75
+ line: position.lineNumber
76
+ })
77
+ });
78
+ case 5:
79
+ reply = _context2.sent;
80
+ start = reply !== null && reply !== void 0 && reply.cursor_start ? editor.getPositionAt(reply === null || reply === void 0 ? void 0 : reply.cursor_start) : editor.getCursorPosition();
81
+ end = reply !== null && reply !== void 0 && reply.cursor_end ? editor.getPositionAt(reply === null || reply === void 0 ? void 0 : reply.cursor_end) : editor.getCursorPosition();
82
+ suggestion = ((_reply$matches = reply === null || reply === void 0 ? void 0 : reply.matches) !== null && _reply$matches !== void 0 ? _reply$matches : []).map(function (match) {
83
+ return {
84
+ label: match,
85
+ kind: languages.CompletionItemKind.Text,
86
+ insertText: match,
87
+ range: {
88
+ startColumn: start === null || start === void 0 ? void 0 : start.column,
89
+ startLineNumber: start === null || start === void 0 ? void 0 : start.line,
90
+ endColumn: end === null || end === void 0 ? void 0 : end.column,
91
+ endLineNumber: end === null || end === void 0 ? void 0 : end.line
92
+ }
93
+ };
94
+ });
95
+ return _context2.abrupt("return", {
96
+ suggestions: suggestion
97
+ });
98
+ case 10:
99
+ case "end":
100
+ return _context2.stop();
101
+ }
102
+ }, _callee2);
103
+ }));
104
+ return function (_x3, _x4) {
105
+ return _ref2.apply(this, arguments);
106
+ };
107
+ }();
108
+ _this.provideCompletionItemsFromLSPServer = /*#__PURE__*/function () {
109
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(model, position) {
110
+ var provider, editor, lspConnection, docEditor, doc, virtualPos, result, items, word, range, suggestions;
111
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
112
+ while (1) switch (_context3.prev = _context3.next) {
113
+ case 0:
114
+ _context3.next = 2;
115
+ return _this.getProvider(model);
116
+ case 2:
117
+ provider = _context3.sent;
118
+ if (provider) {
119
+ _context3.next = 5;
120
+ break;
121
+ }
122
+ return _context3.abrupt("return");
123
+ case 5:
124
+ editor = _this.getEditorByModel(model);
125
+ if (!(!editor || editor.getOption('lspEnabled') !== true)) {
126
+ _context3.next = 8;
127
+ break;
128
+ }
129
+ return _context3.abrupt("return");
130
+ case 8:
131
+ lspConnection = provider.lspConnection, docEditor = provider.editor, doc = provider.virtualDocument;
132
+ if (!(!lspConnection.isReady || !lspConnection.provides('completionProvider'))) {
133
+ _context3.next = 11;
134
+ break;
135
+ }
136
+ return _context3.abrupt("return");
137
+ case 11:
138
+ virtualPos = doc.transformEditorToVirtual(docEditor, {
139
+ line: position.lineNumber - 1,
140
+ ch: position.column,
141
+ isEditor: true
142
+ });
143
+ if (virtualPos) {
144
+ _context3.next = 14;
145
+ break;
146
+ }
147
+ return _context3.abrupt("return");
148
+ case 14:
149
+ _context3.next = 16;
150
+ return lspConnection.clientRequests['textDocument/completion'].request({
151
+ position: {
152
+ line: virtualPos.line,
153
+ character: virtualPos.ch
154
+ },
155
+ textDocument: {
156
+ uri: doc.documentInfo.uri
157
+ },
158
+ context: {
159
+ triggerKind: CompletionTriggerKind.Invoked
160
+ }
161
+ });
162
+ case 16:
163
+ result = _context3.sent;
164
+ items = 'items' in result ? result.items : result;
165
+ word = model.getWordUntilPosition(position);
166
+ range = {
167
+ startLineNumber: position.lineNumber,
168
+ endLineNumber: position.lineNumber,
169
+ startColumn: word.startColumn,
170
+ endColumn: position.column
171
+ };
172
+ suggestions = items.map(function (item) {
173
+ return _this.transformCompletion(item, range);
174
+ });
175
+ if (!Array.isArray(result)) {
176
+ _context3.next = 23;
177
+ break;
178
+ }
179
+ return _context3.abrupt("return", {
180
+ suggestions: suggestions
181
+ });
182
+ case 23:
183
+ return _context3.abrupt("return", {
184
+ incomplete: result.isIncomplete,
185
+ suggestions: suggestions
186
+ });
187
+ case 24:
188
+ case "end":
189
+ return _context3.stop();
190
+ }
191
+ }, _callee3);
192
+ }));
193
+ return function (_x5, _x6) {
194
+ return _ref3.apply(this, arguments);
195
+ };
196
+ }();
197
+ _this.resolveCompletionItem = /*#__PURE__*/function () {
198
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(item, token) {
199
+ var original, itemResult, resolve;
200
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
201
+ while (1) switch (_context4.prev = _context4.next) {
202
+ case 0:
203
+ original = item.__original;
204
+ if (original) {
205
+ _context4.next = 3;
206
+ break;
207
+ }
208
+ return _context4.abrupt("return");
209
+ case 3:
210
+ _context4.next = 5;
211
+ return _this.lspConnection.clientRequests['completionItem/resolve'].request(original);
212
+ case 5:
213
+ itemResult = _context4.sent;
214
+ if (!token.isCancellationRequested) {
215
+ _context4.next = 8;
216
+ break;
217
+ }
218
+ return _context4.abrupt("return");
219
+ case 8:
220
+ resolve = _this.transformCompletion(itemResult, item.range);
221
+ return _context4.abrupt("return", resolve);
222
+ case 10:
223
+ case "end":
224
+ return _context4.stop();
225
+ }
226
+ }, _callee4);
227
+ }));
228
+ return function (_x7, _x8) {
229
+ return _ref4.apply(this, arguments);
230
+ };
231
+ }();
232
+ return _this;
233
+ }
234
+ _createClass(CompletionProvider, [{
235
+ key: "transformCompletion",
236
+ value: function transformCompletion(item, range) {
237
+ var _item$kind, _item$command;
238
+ var converted = _objectSpread(_objectSpread({}, item), {}, {
239
+ label: item.label,
240
+ sortText: item.sortText,
241
+ filterText: item.filterText,
242
+ insertText: item.insertText ? item.insertText : item.label,
243
+ kind: CompletionItemKind.from((_item$kind = item.kind) !== null && _item$kind !== void 0 ? _item$kind : lsp.CompletionItemKind.Property),
244
+ detail: item.detail,
245
+ documentation: item.documentation,
246
+ command: item.command ? {
247
+ id: item.command.command,
248
+ title: item.command.title,
249
+ arguments: (_item$command = item.command) === null || _item$command === void 0 ? void 0 : _item$command.arguments
250
+ } : undefined,
251
+ range: range,
252
+ additionalTextEdits: undefined
253
+ });
254
+
255
+ // FIXME: text edit 生成的range有可能在其他的editor上,这里似乎无法处理
256
+ if (item.textEdit) {
257
+ converted.insertText = item.textEdit.newText;
258
+ if (InsertReplaceEdit.is(item.textEdit)) {
259
+ converted.range = {
260
+ insert: convertRange(item.textEdit.insert),
261
+ replace: convertRange(item.textEdit.replace)
262
+ };
263
+ } else {
264
+ converted.range = convertRange(item.textEdit.range);
265
+ }
266
+ }
267
+ if (item.additionalTextEdits) {
268
+ converted.additionalTextEdits = item.additionalTextEdits.map(function (edit) {
269
+ return {
270
+ range: convertRange(edit.range),
271
+ text: edit.newText
272
+ };
273
+ });
274
+ }
275
+
276
+ // Stash a few additional pieces of information.
277
+ converted.__original = item;
278
+ return converted;
279
+ }
280
+ }]);
281
+ return CompletionProvider;
282
+ }(LangaugeFeatureProvider);
283
+ function convertRange(range) {
284
+ return {
285
+ startLineNumber: range.start.line + 1,
286
+ startColumn: range.start.character + 1,
287
+ endLineNumber: range.end.line + 1,
288
+ endColumn: range.end.character + 1
289
+ };
290
+ }
@@ -0,0 +1,22 @@
1
+ import type { LibroService } from '@difizen/libro-core';
2
+ import type { LSPConnection, VirtualDocument } from '@difizen/libro-lsp';
3
+ import * as monaco from '@difizen/monaco-editor-core';
4
+ import { LangaugeFeatureProvider } from './language-feature-provider.js';
5
+ export declare enum MarkerSeverity {
6
+ Hint = 1,
7
+ Info = 2,
8
+ Warning = 4,
9
+ Error = 8
10
+ }
11
+ export declare class DiagnosticProvider extends LangaugeFeatureProvider {
12
+ constructor(libroService: LibroService, lspConnection: LSPConnection, virtualDocument: VirtualDocument);
13
+ protected diagnosticList: {
14
+ model: monaco.editor.ITextModel;
15
+ markers: monaco.editor.IMarkerData[];
16
+ }[];
17
+ protected addDiagnostic(model: monaco.editor.ITextModel, marker: monaco.editor.IMarkerData): void;
18
+ protected clearDiagnostic(): void;
19
+ protected displayDiagnostic(): void;
20
+ processDiagnostic(): Promise<void>;
21
+ }
22
+ //# sourceMappingURL=diagnostic-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnostic-provider.d.ts","sourceRoot":"","sources":["../../../src/language/lsp/diagnostic-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AAKtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,oBAAY,cAAc;IACxB,IAAI,IAAI;IACR,IAAI,IAAI;IACR,OAAO,IAAI;IACX,KAAK,IAAI;CACV;AASD,qBAAa,kBAAmB,SAAQ,uBAAuB;gBAE3D,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe;IAMlC,SAAS,CAAC,cAAc,EAAE;QACxB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;QAChC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;KACtC,EAAE,CAAM;IAET,SAAS,CAAC,aAAa,CACrB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,EAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW;IAgBnC,SAAS,CAAC,eAAe;IAazB,SAAS,CAAC,iBAAiB;IAOrB,iBAAiB;CAsExB"}