@guihz/trading-vue-editor-tes 0.0.137 → 0.0.138

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.
@@ -1,8 +1,7 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`.line-decoration_modified,.line-decoration_added,.line-decoration_removed{left:auto!important;right:20px;transform:scale(-1);width:4px!important}.line-modified:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background-image:linear-gradient(-45deg,#2962ff 25%,#0000 0,#0000 50%,#2962ff 0,#2962ff 75%,#0000 0,#0000);background-size:3px 3px}.line-added:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background:#089950}.modified-in-monaco-diff-editor .line-modified:before,.modified-in-monaco-diff-editor .line-added:before,.modified-in-monaco-diff-editor .line-decoration_removed:after{background:none}.line-modified:hover:before,.line-added:hover:before,.line-decoration_removed:hover:before{width:5px}.line-decoration_removed:hover:before{background-color:#f23645}.line-decoration_removed:hover:after{background:none}.line-decoration_removed:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1}.line-decoration_removed:after{background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='4'%20height='18'%20viewBox='0%200%204%2018'%20fill='%23F23645'%3e%3cpath%20d='M3.7%208.11a.5.5%200%200%201%200%20.67L.89%2012a.5.5%200%200%201-.88-.33V5.3a.5.5%200%200%201%20.87-.33L3.7%208.1Z'/%3e%3c/svg%3e") 50% no-repeat;background-size:5px 20px;content:"";height:10px;left:-4px;position:absolute;top:-3px;transform:scale(-1);width:10px}.vs-dark .content-popup{background-color:#1e222d}.content-popup{position:relative;border-bottom:1px solid;display:flex;flex-direction:column;height:100%;-webkit-user-select:none;user-select:none;background-color:#fff}.header-popup{align-items:center;position:relative;z-index:1;border-left:0;border-right:0;display:flex;height:22px;justify-content:space-between;margin-top:5px;border-bottom:1px solid #fff;border-top:1px solid #fff;background-color:#fff}.title-popup{font-size:13px;font-weight:400;line-height:18px;margin-left:27px}.actions-popup{align-items:center;display:flex}.button-popup{height:24px;cursor:pointer;justify-content:center;width:24px;display:flex;padding:0 5px;align-items:center;box-sizing:border-box;transition:background-color 60ms ease,opacity 60ms ease,color 60ms ease}.icon-popup{display:flex}.triangle-popup{position:absolute;left:55px;margin-top:1px;height:8px;z-index:0;transform:rotate(-45deg);width:8px}.triangle-modified-popup{background-color:#2962ff}.vs-dark .header-modified-popup{background-color:#1e222d}.header-modified-popup{background-color:#e3effd;border-color:#2962ff}.content-modified-popup{border-bottom-color:#2962ff}.triangle-added-popup{background-color:#089950}.vs-dark .header-added-popup{background-color:#1a3326}.header-added-popup{background-color:#daf2e6;border-color:#089950}.content-added-popup{border-bottom-color:#089950}.triangle-removed-popup{background-color:#f23645}.vs-dark .header-removed-popup{background-color:#331f20}.header-removed-popup{background-color:#ffebec;border-color:#f23645}.content-removed-popup{border-bottom-color:#f23645}.tvue-script .monaco-editor.vs-dark .quick-input-widget{background:#1e222d!important}.tvue-script .monaco-editor .monaco-inputbox:focus-within,.tvue-script .monaco-editor.vs-dark .monaco-inputbox:focus-within{border-color:#2962ff}.tvue-script .monaco-editor .quick-input-widget .monaco-inputbox{background-color:unset!important;border:unset!important}.tvue-script .monaco-editor .quick-input-widget .input:active,.tvue-script .monaco-editor .quick-input-widget .input:focus{border:2px solid #2962ff}.tvue-script .monaco-editor.vs-dark .quick-input-widget .input{background-color:#1e222d!important;color:#d1d4dc!important}.tvue-script .monaco-editor .monaco-inputbox .input{font-size:14px;line-height:18px;outline:none}.tvue-script .monaco-editor .quick-input-widget .input{background-color:#fff!important;border:1px solid #d1d4dc;border-radius:6px;color:#131722!important;height:28px;padding-bottom:5px}.tvue-script .monaco-editor .overflow-guard{overflow:hidden!important}.tvue-script .monaco-editor .find-widget .codicon.toggle:before{content:"";font-size:15px;transition:.3s ease-out}.tvue-script .monaco-editor .find-widget.replaceToggled{height:80px!important}.tvue-script .monaco-editor .find-widget{border-bottom-left-radius:6px;border-bottom-right-radius:6px;height:44px!important;width:450px!important;transition:.3s ease-out}.tvue-script .monaco-editor .find-widget.replaceToggled .find-part,.tvue-script .monaco-editor .find-widget.replaceToggled .replace-part{margin-left:17px}.tvue-script .monaco-editor .find-widget .codicon.toggle.codicon-find-expanded{height:77px}.tvue-script .monaco-editor .find-widget.replaceToggled .replace-part{margin-top:8px}.tvue-script .monaco-editor .find-widget .codicon.toggle{border-radius:4px;cursor:default;height:41px;left:2px;top:2px}.tvue-script .monaco-editor .find-widget .monaco-sash{display:none}.tvue-script .monaco-editor .find-widget .find-part{margin-top:8px}.tvue-script .monaco-editor .find-widget .monaco-findInput{width:255px}.tvue-script .monaco-editor .monaco-scrollable-element{--vscode-scrollbarSlider-background: #64646466;margin-bottom:-2px}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#1e222d!important}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{border-color:#50535e!important}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#fff!important;border-color:#d1d4dc!important;border-radius:6px;height:28px}.tvue-script .monaco-editor.vs-dark .monaco-inputbox,.tvue-script .monaco-editor.vs-dark .monaco-inputbox.idle{border:2px solid #50535e}.tvue-script .monaco-editor .monaco-inputbox,.tvue-script .monaco-editor .monaco-inputbox.idle{border:2px solid #a3a6af;border-radius:4px;overflow:hidden}.tvue-script .monaco-editor .find-widget .button{box-sizing:content-box}.tvue-script .monaco-editor .find-widget>.button.codicon-widget-close{top:10px}.tvue-script .monaco-editor .find-widget .codicon.toggle.codicon-find-expanded:before{transform:rotate(180deg)}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle .ibwrapper>textarea.input{padding-top:4px}.tvue-script .monaco-editor .monaco-inputbox .input{line-height:18px}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important;outline-color:#0000}.tvue-script .monaco-editor .monaco-inputbox:focus-within{border-color:#2962ff}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#1e222d!important}.context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#fff!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#131722!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item{border-radius:0;height:32px;margin:0}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#2a2e39!important;color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#f0f3fa!important;color:#131722!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #434651!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #e0e3eb!important;margin-left:0!important;margin-right:0!important;opacity:1}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#5d606b}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#9598a1}.monaco-menu{max-height:calc(100vh - 35px)!important}.vs-dark.manual-warpper{color:#d1d4dc}.manual-warpper{display:flex;height:100%;text-align:left;color:#131722}.vs-dark .manual-left{border-right-color:#434651}.manual-left{border-right:1px solid #e0e3eb;display:flex;flex:0 0 240px;flex-direction:column;height:100%}.manual-right{flex:1;height:100%;overflow-y:auto;-webkit-user-select:text;user-select:text}.vs-dark .manual-search{border-bottom-color:#434651}.manual-search{display:flex;align-items:center;flex:0 0 47px;padding-left:16.5px;border-bottom:1px solid #e0e3eb}.manual-search-icon{height:18px;font-size:14px;opacity:.8;pointer-events:none;transition:opacity .35s ease}.manual-search-icon svg{fill:#a3a6af}.manual-search-input{background-color:transparent;color:inherit;height:29px;width:146px;margin-left:5px;border:none;outline:none}.vs-dark .manual-search-clear svg{fill:#d1d4dc}.manual-search-clear svg{fill:#434651}.manual-search-clear{cursor:pointer;opacity:.5;text-align:center;transition:opacity .35s ease;width:36px;font-size:14px}.manual-search-clear:hover{opacity:1;transition-duration:60ms}.manual-group-list{display:flex;flex:1 1 100%;flex-direction:column;overflow-y:auto;text-align:left}.manual-group-search-list{flex:1 1 100%;overflow-y:auto;text-align:left}.vs-dark .manual-content-separator{background-color:#363a45}.manual-content-separator{background-color:#e0e3eb;height:1px}.vs-dark .manual-group-title{color:#d1d4dc;border-bottom-color:#434651}.manual-group-title{box-sizing:border-box;color:#434651;cursor:default;display:block;flex:0 0 auto;font-size:14px;font-weight:700;margin:0;padding:12px;border-bottom:1px solid #e0e3eb;-webkit-user-select:none;user-select:none}.vs-dark .manual-group-title.active{background-color:#2a2e39;border-top-color:#2a2e39;color:#d1d4dc}.manual-group-title.active{background-color:#e3effd;border-top-color:#e3effd;color:#131722}.vs-dark .manual-group-body{border-bottom-color:#434651}.manual-group-body{display:block;flex:1 1 auto;pointer-events:auto;-webkit-user-select:text;user-select:text;overflow-x:hidden;overflow-y:auto;transform:translateZ(0);border-bottom:1px solid #e0e3eb}.manual-group-body.hide,.manual-search-clear.hide,.manual-group-list.hide,.manual-group-search-list.hide{display:none}.vs-dark .manual-group-body-item{color:#b2b5be}.manual-group-body-item{box-sizing:border-box;color:#5d606b;cursor:default;display:block;font-size:14px;letter-spacing:.3px;line-height:24px;padding:2px 8px 2px 12px;position:relative;transition:none;word-break:break-all;text-decoration:none}.vs-dark .manual-group-body-item-selected{fill:#2962ff;color:#2962ff}.manual-group-body-item-selected{color:#2962ff;fill:#2962ff}.manual-group-body-item-selected:before{background-color:#2962ff;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px}.manual-content-wrapper{box-sizing:border-box;padding:30px 25px 25px;position:relative}.manual-content-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:2px}.vs-dark .manual-content-header-overloads{background-color:#2a2e39}.manual-content-header-overloads{background-color:#e3effd;border-radius:8px;display:inline-block;height:auto;margin-left:6px;padding:4px 8px;vertical-align:top}.vs-dark .manual-content-header-title{color:#d1d4dc}.manual-content-header-title{font-size:18px;line-height:26px;color:#131722;font-weight:700;display:inline-block;margin:0}.vs-dark .manual-content-btn{color:#d1d4dc}.manual-content-btn{align-items:center;background:#0000;border:none;border-radius:4px;box-sizing:initial;color:#131722;cursor:default;display:flex;height:34px;justify-content:center;margin:0;padding:0;width:34px}.vs-dark .manual-content-btn:hover{background-color:#2a2e39}.manual-content-btn:hover{background-color:#f0f3fa}.vs-dark .manual-content-args-label{color:#d1d4dc}.manual-content-args-label{color:#131722;font-weight:700}.vs-dark .manual-content-syntax{background-color:#2a2e39;color:#d1d4dc}.manual-content-syntax{background-color:#e3effd;border-radius:8px;color:#131722;font-family:Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;overflow:hidden;transition:opacity .1s ease;white-space:pre-wrap;font-size:14px;line-height:21px;margin-top:8px;padding:24px;-webkit-user-select:none;user-select:none}.with-overloads{opacity:.6}.with-overloads:hover{opacity:.8}.with-overloads.selected{box-shadow:0 0 0 2px #2962ff;opacity:1}.vs-dark .manual-content-text{color:#d1d4dc}.manual-content-text{font-size:14px;line-height:21px;color:#131722;margin-top:8px}.vs-dark .manual-content-text-link{fill:#5b9cf6;color:#5b9cf6}.vs-dark .manual-content-text-link:hover{fill:#3179f5;color:#3179f5}.manual-content-text-link{color:#2962ff;fill:#2962ff}.manual-content-text-link:hover{color:#1e53e5;fill:#1e53e5}.vs-dark .manual-content-text code{background-color:#2a2e39}.manual-content-text code{background-color:#e0e3eb;border-radius:3px;padding:0 .4em}.vs-dark .manual-content-sub-title{color:#868993}.manual-content-sub-title{color:#6a6d78;font-size:11px;letter-spacing:.4px;line-height:16px;margin-top:24px;text-transform:uppercase}.manual-content-example-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px}.vs-dark .manual-content-example-copy{color:#868993}.manual-content-example-copy{color:#6a6d78}.vs-dark .manual-content-example{background-color:#2a2e39}.manual-content-example{background-color:#e3effd;border-radius:8px;box-shadow:none;margin-top:0;overflow:hidden}.manual-content-example code{display:block;font-family:Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:13px;line-height:18px;overflow-x:auto;padding:24px}.manual-content-see_also{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;-webkit-user-select:none;user-select:none}.vs-dark .manual-content-see_also-tag{background-color:#1e222d;color:#d1d4dc}.vs-dark .manual-content-see_also-tag:hover{background-color:#363a45}.manual-content-see_also-tag{background-color:#f8f9fd;border-radius:3px;color:#131722;cursor:default;font-size:14px;line-height:21px;margin:0;padding:6px 8px}.manual-content-see_also-tag:hover{background-color:#f0f3fa}.manual-scroll::-webkit-scrollbar{height:5px;width:5px}.manual-scroll::-webkit-scrollbar-corner{display:none}.vs-dark .manual-scroll::-webkit-scrollbar-thumb,.vs-dark code::-webkit-scrollbar-thumb{background-color:#363a45}.manual-scroll::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#9598a1;border:1px solid #0000;border-radius:3px}.manual-scroll::-webkit-scrollbar-track{background-color:initial;border-radius:3px}[data-tooltip]{position:relative;text-transform:none}[data-tooltip]:before,[data-tooltip]:after{position:absolute;opacity:0;z-index:1000;pointer-events:none;transition:.2s}[data-tooltip]:before{content:"";border:5px solid transparent;border-top-color:#2a2e39;-webkit-transform:translateX(-50%);transform:translate(-50%);bottom:100%;left:50%;margin-bottom:-5px}[data-tooltip]:after{content:attr(data-tooltip);background:#2a2e39;font:12px Microsoft YaHei;color:#fff;padding:4px 8px;border-radius:2px;box-shadow:3px 3px 6px #0000004d;bottom:100%;width:max-content;left:50%;transform:translate(-50%);margin-bottom:5px}[data-tooltip]:hover:before,[data-tooltip]:hover:after{opacity:1;-webkit-transition-delay:.15s;transition-delay:.15s}[data-tooltip=""]:before,[data-tooltip=""]:after{display:none!important}.vs-dark ::selection{background:#143a87}::selection{background:#bbd9fb}`)),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
2
  import is, { memo as Fi, useState as ot, useRef as Pe, useCallback as $r, useEffect as Ve, forwardRef as xp, useImperativeHandle as hp, useMemo as Jg, Fragment as Wt } from "react";
3
- import * as eb from "monaco-editor";
4
- import { languages as $e, Position as tb, MarkerSeverity as sb, editor as Hr } from "monaco-editor";
5
- import rb from "react-dom";
3
+ import { languages as $e, Position as eb, MarkerSeverity as tb, editor as Hr } from "monaco-editor";
4
+ import sb from "react-dom";
6
5
  var xc;
7
6
  (function(a) {
8
7
  a.Comment = "comment", a.Text = "text", a.String = "string", a.Paren = "paren", a.StringInvalid = "string.invalid", a.ConstantNumericInteger = "constant.numeric.integer", a.ConstantNumericFloat = "constant.numeric.float", a.ConstantLanguage = "constant.language", a.ConstantLanguageBoolean = "constant.other.boolean", a.ConstantOtherColor = "constant.other.color", a.SupportVariable = "support.variable", a.SupportType = "support.type", a.Keyword = "keyword", a.KeywordEquals = "keyword.equals", a.KeywordOperator = "keyword.operator", a.CustomType = "entity.name.type", a.VariableOther = "variable.other", a.Property = "variable.other.property", a.SupportFunction = "support.function", a.SupportMethod = "support.method", a.ImportedFunction = "meta.function-call", a.Function = "entity.name.function", a.ImportName = "entity.name.module", a.ImportAlias = "entity.name.module.name", a.ExtensionMethod = "entity.name.method", a.Annotation = "comment.annotation", a.PunctuationOperator = "punctuation.operator", a.Empty = "empty", a.Source = "source";
@@ -16,7 +15,7 @@ var Ls;
16
15
  a.Save = "save", a.Find = "find", a.TriggerConsole = "trigger.console", a.RunScript = "runScript", a.Open = "open";
17
16
  })(Ls || (Ls = {}));
18
17
  var Mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
- function ab(a) {
18
+ function rb(a) {
20
19
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
21
20
  }
22
21
  var zi = { exports: {} }, Pr = {};
@@ -30,7 +29,7 @@ var zi = { exports: {} }, Pr = {};
30
29
  * LICENSE file in the root directory of this source tree.
31
30
  */
32
31
  var hc;
33
- function nb() {
32
+ function ab() {
34
33
  if (hc)
35
34
  return Pr;
36
35
  hc = 1;
@@ -58,7 +57,7 @@ var Or = {};
58
57
  * LICENSE file in the root directory of this source tree.
59
58
  */
60
59
  var wc;
61
- function ib() {
60
+ function nb() {
62
61
  return wc || (wc = 1, process.env.NODE_ENV !== "production" && function() {
63
62
  var a = is, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), _ = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), P = Symbol.iterator, N = "@@iterator";
64
63
  function H(f) {
@@ -644,9 +643,9 @@ Check the top-level render call using <` + B + ">.");
644
643
  Or.Fragment = o, Or.jsx = mn, Or.jsxs = un;
645
644
  }()), Or;
646
645
  }
647
- process.env.NODE_ENV === "production" ? zi.exports = nb() : zi.exports = ib();
646
+ process.env.NODE_ENV === "production" ? zi.exports = ab() : zi.exports = nb();
648
647
  var L = zi.exports;
649
- function ob(a, n, r) {
648
+ function ib(a, n, r) {
650
649
  return n in a ? Object.defineProperty(a, n, {
651
650
  value: r,
652
651
  enumerable: !0,
@@ -668,14 +667,14 @@ function Tc(a) {
668
667
  for (var n = 1; n < arguments.length; n++) {
669
668
  var r = arguments[n] != null ? arguments[n] : {};
670
669
  n % 2 ? vc(Object(r), !0).forEach(function(o) {
671
- ob(a, o, r[o]);
670
+ ib(a, o, r[o]);
672
671
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) : vc(Object(r)).forEach(function(o) {
673
672
  Object.defineProperty(a, o, Object.getOwnPropertyDescriptor(r, o));
674
673
  });
675
674
  }
676
675
  return a;
677
676
  }
678
- function lb(a, n) {
677
+ function ob(a, n) {
679
678
  if (a == null)
680
679
  return {};
681
680
  var r = {}, o = Object.keys(a), l, c;
@@ -683,10 +682,10 @@ function lb(a, n) {
683
682
  l = o[c], !(n.indexOf(l) >= 0) && (r[l] = a[l]);
684
683
  return r;
685
684
  }
686
- function cb(a, n) {
685
+ function lb(a, n) {
687
686
  if (a == null)
688
687
  return {};
689
- var r = lb(a, n), o, l;
688
+ var r = ob(a, n), o, l;
690
689
  if (Object.getOwnPropertySymbols) {
691
690
  var c = Object.getOwnPropertySymbols(a);
692
691
  for (l = 0; l < c.length; l++)
@@ -694,14 +693,14 @@ function cb(a, n) {
694
693
  }
695
694
  return r;
696
695
  }
697
- function pb(a, n) {
698
- return db(a) || mb(a, n) || ub(a, n) || yb();
696
+ function cb(a, n) {
697
+ return pb(a) || db(a, n) || mb(a, n) || ub();
699
698
  }
700
- function db(a) {
699
+ function pb(a) {
701
700
  if (Array.isArray(a))
702
701
  return a;
703
702
  }
704
- function mb(a, n) {
703
+ function db(a, n) {
705
704
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(a)))) {
706
705
  var r = [], o = !0, l = !1, c = void 0;
707
706
  try {
@@ -720,7 +719,7 @@ function mb(a, n) {
720
719
  return r;
721
720
  }
722
721
  }
723
- function ub(a, n) {
722
+ function mb(a, n) {
724
723
  if (a) {
725
724
  if (typeof a == "string")
726
725
  return Dc(a, n);
@@ -737,11 +736,11 @@ function Dc(a, n) {
737
736
  o[r] = a[r];
738
737
  return o;
739
738
  }
740
- function yb() {
739
+ function ub() {
741
740
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
742
741
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
743
742
  }
744
- function _b(a, n, r) {
743
+ function yb(a, n, r) {
745
744
  return n in a ? Object.defineProperty(a, n, {
746
745
  value: r,
747
746
  enumerable: !0,
@@ -763,14 +762,14 @@ function kc(a) {
763
762
  for (var n = 1; n < arguments.length; n++) {
764
763
  var r = arguments[n] != null ? arguments[n] : {};
765
764
  n % 2 ? Ic(Object(r), !0).forEach(function(o) {
766
- _b(a, o, r[o]);
765
+ yb(a, o, r[o]);
767
766
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) : Ic(Object(r)).forEach(function(o) {
768
767
  Object.defineProperty(a, o, Object.getOwnPropertyDescriptor(r, o));
769
768
  });
770
769
  }
771
770
  return a;
772
771
  }
773
- function fb() {
772
+ function _b() {
774
773
  for (var a = arguments.length, n = new Array(a), r = 0; r < a; r++)
775
774
  n[r] = arguments[r];
776
775
  return function(o) {
@@ -793,35 +792,35 @@ function Rr(a) {
793
792
  function Qa(a) {
794
793
  return {}.toString.call(a).includes("Object");
795
794
  }
796
- function gb(a) {
795
+ function fb(a) {
797
796
  return !Object.keys(a).length;
798
797
  }
799
798
  function jr(a) {
800
799
  return typeof a == "function";
801
800
  }
802
- function bb(a, n) {
801
+ function gb(a, n) {
803
802
  return Object.prototype.hasOwnProperty.call(a, n);
804
803
  }
805
- function xb(a, n) {
804
+ function bb(a, n) {
806
805
  return Qa(n) || xs("changeType"), Object.keys(n).some(function(r) {
807
- return !bb(a, r);
806
+ return !gb(a, r);
808
807
  }) && xs("changeField"), n;
809
808
  }
810
- function hb(a) {
809
+ function xb(a) {
811
810
  jr(a) || xs("selectorType");
812
811
  }
813
- function wb(a) {
812
+ function hb(a) {
814
813
  jr(a) || Qa(a) || xs("handlerType"), Qa(a) && Object.values(a).some(function(n) {
815
814
  return !jr(n);
816
815
  }) && xs("handlersType");
817
816
  }
818
- function vb(a) {
819
- a || xs("initialIsRequired"), Qa(a) || xs("initialType"), gb(a) && xs("initialContent");
817
+ function wb(a) {
818
+ a || xs("initialIsRequired"), Qa(a) || xs("initialType"), fb(a) && xs("initialContent");
820
819
  }
821
- function Tb(a, n) {
820
+ function vb(a, n) {
822
821
  throw new Error(a[n] || a.default);
823
822
  }
824
- var Db = {
823
+ var Tb = {
825
824
  initialIsRequired: "initial state is required",
826
825
  initialType: "initial state should be an object",
827
826
  initialContent: "initial state shouldn't be an empty object",
@@ -831,18 +830,18 @@ var Db = {
831
830
  changeType: "provided value of changes should be an object",
832
831
  changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
833
832
  default: "an unknown error accured in `state-local` package"
834
- }, xs = Rr(Tb)(Db), Ha = {
835
- changes: xb,
836
- selector: hb,
837
- handler: wb,
838
- initial: vb
833
+ }, xs = Rr(vb)(Tb), Ha = {
834
+ changes: bb,
835
+ selector: xb,
836
+ handler: hb,
837
+ initial: wb
839
838
  };
840
- function Ib(a) {
839
+ function Db(a) {
841
840
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
842
841
  Ha.initial(a), Ha.handler(n);
843
842
  var r = {
844
843
  current: a
845
- }, o = Rr(qb)(r, n), l = Rr(Ab)(r), c = Rr(Ha.changes)(a), m = Rr(kb)(r);
844
+ }, o = Rr(Ab)(r, n), l = Rr(kb)(r), c = Rr(Ha.changes)(a), m = Rr(Ib)(r);
846
845
  function _() {
847
846
  var b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(h) {
848
847
  return h;
@@ -850,30 +849,30 @@ function Ib(a) {
850
849
  return Ha.selector(b), b(r.current);
851
850
  }
852
851
  function g(b) {
853
- fb(o, l, c, m)(b);
852
+ _b(o, l, c, m)(b);
854
853
  }
855
854
  return [_, g];
856
855
  }
857
- function kb(a, n) {
856
+ function Ib(a, n) {
858
857
  return jr(n) ? n(a.current) : n;
859
858
  }
860
- function Ab(a, n) {
859
+ function kb(a, n) {
861
860
  return a.current = kc(kc({}, a.current), n), n;
862
861
  }
863
- function qb(a, n, r) {
862
+ function Ab(a, n, r) {
864
863
  return jr(n) ? n(a.current) : Object.keys(r).forEach(function(o) {
865
864
  var l;
866
865
  return (l = n[o]) === null || l === void 0 ? void 0 : l.call(n, a.current[o]);
867
866
  }), r;
868
867
  }
869
- var Cb = {
870
- create: Ib
871
- }, zb = {
868
+ var qb = {
869
+ create: Db
870
+ }, Cb = {
872
871
  paths: {
873
872
  vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"
874
873
  }
875
874
  };
876
- function Eb(a) {
875
+ function zb(a) {
877
876
  return function n() {
878
877
  for (var r = this, o = arguments.length, l = new Array(o), c = 0; c < o; c++)
879
878
  l[c] = arguments[c];
@@ -884,20 +883,20 @@ function Eb(a) {
884
883
  };
885
884
  };
886
885
  }
887
- function Nb(a) {
886
+ function Eb(a) {
888
887
  return {}.toString.call(a).includes("Object");
889
888
  }
890
- function Sb(a) {
891
- return a || Ac("configIsRequired"), Nb(a) || Ac("configType"), a.urls ? (Lb(), {
889
+ function Nb(a) {
890
+ return a || Ac("configIsRequired"), Eb(a) || Ac("configType"), a.urls ? (Sb(), {
892
891
  paths: {
893
892
  vs: a.urls.monacoBase
894
893
  }
895
894
  }) : a;
896
895
  }
897
- function Lb() {
896
+ function Sb() {
898
897
  console.warn(wp.deprecation);
899
898
  }
900
- function Mb(a, n) {
899
+ function Lb(a, n) {
901
900
  throw new Error(a[n] || a.default);
902
901
  }
903
902
  var wp = {
@@ -914,9 +913,9 @@ var wp = {
914
913
 
915
914
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
916
915
  `
917
- }, Ac = Eb(Mb)(wp), Pb = {
918
- config: Sb
919
- }, Ob = function() {
916
+ }, Ac = zb(Lb)(wp), Mb = {
917
+ config: Nb
918
+ }, Pb = function() {
920
919
  for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
921
920
  r[o] = arguments[o];
922
921
  return function(l) {
@@ -930,29 +929,29 @@ function vp(a, n) {
930
929
  n[r] instanceof Object && a[r] && Object.assign(n[r], vp(a[r], n[r]));
931
930
  }), Tc(Tc({}, a), n);
932
931
  }
933
- var Fb = {
932
+ var Ob = {
934
933
  type: "cancelation",
935
934
  msg: "operation is manually canceled"
936
935
  };
937
936
  function Di(a) {
938
937
  var n = !1, r = new Promise(function(o, l) {
939
938
  a.then(function(c) {
940
- return n ? l(Fb) : o(c);
939
+ return n ? l(Ob) : o(c);
941
940
  }), a.catch(l);
942
941
  });
943
942
  return r.cancel = function() {
944
943
  return n = !0;
945
944
  }, r;
946
945
  }
947
- var Rb = Cb.create({
948
- config: zb,
946
+ var Fb = qb.create({
947
+ config: Cb,
949
948
  isInitialized: !1,
950
949
  resolve: null,
951
950
  reject: null,
952
951
  monaco: null
953
- }), Tp = pb(Rb, 2), Gr = Tp[0], an = Tp[1];
954
- function Bb(a) {
955
- var n = Pb.config(a), r = n.monaco, o = cb(n, ["monaco"]);
952
+ }), Tp = cb(Fb, 2), Gr = Tp[0], an = Tp[1];
953
+ function Rb(a) {
954
+ var n = Mb.config(a), r = n.monaco, o = lb(n, ["monaco"]);
956
955
  an(function(l) {
957
956
  return {
958
957
  config: vp(l.config, o),
@@ -960,7 +959,7 @@ function Bb(a) {
960
959
  };
961
960
  });
962
961
  }
963
- function Kb() {
962
+ function Bb() {
964
963
  var a = Gr(function(n) {
965
964
  var r = n.monaco, o = n.isInitialized, l = n.resolve;
966
965
  return {
@@ -976,30 +975,30 @@ function Kb() {
976
975
  return a.resolve(a.monaco), Di(Ii);
977
976
  if (window.monaco && window.monaco.editor)
978
977
  return Dp(window.monaco), a.resolve(window.monaco), Di(Ii);
979
- Ob(Ub, Hb)(jb);
978
+ Pb(Kb, $b)(Hb);
980
979
  }
981
980
  return Di(Ii);
982
981
  }
983
- function Ub(a) {
982
+ function Kb(a) {
984
983
  return document.body.appendChild(a);
985
984
  }
986
- function $b(a) {
985
+ function Ub(a) {
987
986
  var n = document.createElement("script");
988
987
  return a && (n.src = a), n;
989
988
  }
990
- function Hb(a) {
989
+ function $b(a) {
991
990
  var n = Gr(function(o) {
992
991
  var l = o.config, c = o.reject;
993
992
  return {
994
993
  config: l,
995
994
  reject: c
996
995
  };
997
- }), r = $b("".concat(n.config.paths.vs, "/loader.js"));
996
+ }), r = Ub("".concat(n.config.paths.vs, "/loader.js"));
998
997
  return r.onload = function() {
999
998
  return a();
1000
999
  }, r.onerror = n.reject, r;
1001
1000
  }
1002
- function jb() {
1001
+ function Hb() {
1003
1002
  var a = Gr(function(r) {
1004
1003
  var o = r.config, l = r.resolve, c = r.reject;
1005
1004
  return {
@@ -1019,7 +1018,7 @@ function Dp(a) {
1019
1018
  monaco: a
1020
1019
  });
1021
1020
  }
1022
- function Wb() {
1021
+ function jb() {
1023
1022
  return Gr(function(a) {
1024
1023
  var n = a.monaco;
1025
1024
  return n;
@@ -1031,44 +1030,44 @@ var Ii = new Promise(function(a, n) {
1031
1030
  reject: n
1032
1031
  });
1033
1032
  }), Ri = {
1034
- config: Bb,
1035
- init: Kb,
1036
- __getMonacoInstance: Wb
1037
- }, Gb = { wrapper: { display: "flex", position: "relative", textAlign: "initial" }, fullWidth: { width: "100%" }, hide: { display: "none" } }, ki = Gb, Xb = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, Yb = Xb;
1038
- function Vb({ children: a }) {
1039
- return is.createElement("div", { style: Yb.container }, a);
1033
+ config: Rb,
1034
+ init: Bb,
1035
+ __getMonacoInstance: jb
1036
+ }, Wb = { wrapper: { display: "flex", position: "relative", textAlign: "initial" }, fullWidth: { width: "100%" }, hide: { display: "none" } }, ki = Wb, Gb = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, Xb = Gb;
1037
+ function Yb({ children: a }) {
1038
+ return is.createElement("div", { style: Xb.container }, a);
1040
1039
  }
1041
- var Qb = Vb, Zb = Qb;
1042
- function Jb({ width: a, height: n, isEditorReady: r, loading: o, _ref: l, className: c, wrapperProps: m }) {
1043
- return is.createElement("section", { style: { ...ki.wrapper, width: a, height: n }, ...m }, !r && is.createElement(Zb, null, o), is.createElement("div", { ref: l, style: { ...ki.fullWidth, ...!r && ki.hide }, className: c }));
1040
+ var Vb = Yb, Qb = Vb;
1041
+ function Zb({ width: a, height: n, isEditorReady: r, loading: o, _ref: l, className: c, wrapperProps: m }) {
1042
+ return is.createElement("section", { style: { ...ki.wrapper, width: a, height: n }, ...m }, !r && is.createElement(Qb, null, o), is.createElement("div", { ref: l, style: { ...ki.fullWidth, ...!r && ki.hide }, className: c }));
1044
1043
  }
1045
- var ex = Jb, Ip = Fi(ex);
1046
- function tx(a) {
1044
+ var Jb = Zb, Ip = Fi(Jb);
1045
+ function ex(a) {
1047
1046
  Ve(a, []);
1048
1047
  }
1049
- var kp = tx;
1050
- function sx(a, n, r = !0) {
1048
+ var kp = ex;
1049
+ function tx(a, n, r = !0) {
1051
1050
  let o = Pe(!0);
1052
1051
  Ve(o.current || !r ? () => {
1053
1052
  o.current = !1;
1054
1053
  } : a, n);
1055
1054
  }
1056
- var gt = sx;
1055
+ var gt = tx;
1057
1056
  function Ur() {
1058
1057
  }
1059
1058
  function nr(a, n, r, o) {
1060
- return rx(a, o) || ax(a, n, r, o);
1059
+ return sx(a, o) || rx(a, n, r, o);
1061
1060
  }
1062
- function rx(a, n) {
1061
+ function sx(a, n) {
1063
1062
  return a.editor.getModel(Ap(a, n));
1064
1063
  }
1065
- function ax(a, n, r, o) {
1064
+ function rx(a, n, r, o) {
1066
1065
  return a.editor.createModel(n, r, o ? Ap(a, o) : void 0);
1067
1066
  }
1068
1067
  function Ap(a, n) {
1069
1068
  return a.Uri.parse(n);
1070
1069
  }
1071
- function nx({ original: a, modified: n, language: r, originalLanguage: o, modifiedLanguage: l, originalModelPath: c, modifiedModelPath: m, keepCurrentOriginalModel: _ = !1, keepCurrentModifiedModel: g = !1, theme: b = "light", loading: h = "Loading...", options: T = {}, height: M = "100%", width: F = "100%", className: P, wrapperProps: N = {}, beforeMount: H = Ur, onMount: G = Ur }) {
1070
+ function ax({ original: a, modified: n, language: r, originalLanguage: o, modifiedLanguage: l, originalModelPath: c, modifiedModelPath: m, keepCurrentOriginalModel: _ = !1, keepCurrentModifiedModel: g = !1, theme: b = "light", loading: h = "Loading...", options: T = {}, height: M = "100%", width: F = "100%", className: P, wrapperProps: N = {}, beforeMount: H = Ur, onMount: G = Ur }) {
1072
1071
  let [j, O] = ot(!1), [I, A] = ot(!0), R = Pe(null), U = Pe(null), se = Pe(null), me = Pe(G), ie = Pe(H), xt = Pe(!1);
1073
1072
  kp(() => {
1074
1073
  let Y = Ri.init();
@@ -1122,16 +1121,16 @@ function nx({ original: a, modified: n, language: r, originalLanguage: o, modifi
1122
1121
  }
1123
1122
  return is.createElement(Ip, { width: F, height: M, isEditorReady: j, loading: h, _ref: se, className: P, wrapperProps: N });
1124
1123
  }
1125
- var ix = nx, ox = Fi(ix);
1126
- function lx(a) {
1124
+ var nx = ax, ix = Fi(nx);
1125
+ function ox(a) {
1127
1126
  let n = Pe();
1128
1127
  return Ve(() => {
1129
1128
  n.current = a;
1130
1129
  }, [a]), n.current;
1131
1130
  }
1132
- var cx = lx, ja = /* @__PURE__ */ new Map();
1133
- function px({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, language: l, path: c, theme: m = "light", line: _, loading: g = "Loading...", options: b = {}, overrideServices: h = {}, saveViewState: T = !0, keepCurrentModel: M = !1, width: F = "100%", height: P = "100%", className: N, wrapperProps: H = {}, beforeMount: G = Ur, onMount: j = Ur, onChange: O, onValidate: I = Ur }) {
1134
- let [A, R] = ot(!1), [U, se] = ot(!0), me = Pe(null), ie = Pe(null), xt = Pe(null), Et = Pe(j), Ke = Pe(G), Fe = Pe(), Y = Pe(o), _e = cx(c), Ce = Pe(!1), Se = Pe(!1);
1131
+ var lx = ox, ja = /* @__PURE__ */ new Map();
1132
+ function cx({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, language: l, path: c, theme: m = "light", line: _, loading: g = "Loading...", options: b = {}, overrideServices: h = {}, saveViewState: T = !0, keepCurrentModel: M = !1, width: F = "100%", height: P = "100%", className: N, wrapperProps: H = {}, beforeMount: G = Ur, onMount: j = Ur, onChange: O, onValidate: I = Ur }) {
1133
+ let [A, R] = ot(!1), [U, se] = ot(!0), me = Pe(null), ie = Pe(null), xt = Pe(null), Et = Pe(j), Ke = Pe(G), Fe = Pe(), Y = Pe(o), _e = lx(c), Ce = Pe(!1), Se = Pe(!1);
1135
1134
  kp(() => {
1136
1135
  let J = Ri.init();
1137
1136
  return J.then((be) => (me.current = be) && se(!1)).catch((be) => (be == null ? void 0 : be.type) !== "cancelation" && console.error("Monaco initialization: error:", be)), () => ie.current ? Nt() : J.cancel();
@@ -1195,7 +1194,7 @@ function px({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, lan
1195
1194
  }
1196
1195
  return is.createElement(Ip, { width: F, height: P, isEditorReady: A, loading: g, _ref: xt, className: N, wrapperProps: H });
1197
1196
  }
1198
- var dx = px, mx = Fi(dx);
1197
+ var px = cx, dx = Fi(px);
1199
1198
  const qc = {
1200
1199
  keywords: [
1201
1200
  {
@@ -60443,7 +60442,7 @@ else
60443
60442
  ]
60444
60443
  }
60445
60444
  ]
60446
- }, ux = [{
60445
+ }, mx = [{
60447
60446
  label: "if",
60448
60447
  insertText: "if ${1:condition}\n ${2:local_block}\n",
60449
60448
  kind: "statement"
@@ -60490,17 +60489,17 @@ else
60490
60489
  parameter: "parameter",
60491
60490
  namespaceDesc: "**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.",
60492
60491
  toTriggerParameterHints: "to trigger parameters hint"
60493
- }, yx = {
60492
+ }, ux = {
60494
60493
  clickOnKeywordForMoreHelp: "`click` on keyword for more help"
60495
60494
  };
60496
- function _x() {
60495
+ function yx() {
60497
60496
  const a = {}, n = {};
60498
60497
  return Object.keys(qc).reduce((r, o) => {
60499
- const l = qc[o], c = ge[o], { mapObj: m, keys: _ } = fx(l, c);
60498
+ const l = qc[o], c = ge[o], { mapObj: m, keys: _ } = _x(l, c);
60500
60499
  return r.keyMapList[o] = m, r.keyList[o] = _, r;
60501
60500
  }, { keyList: a, keyMapList: n }), { keyList: a, keyMapList: n };
60502
60501
  }
60503
- function fx(a, n) {
60502
+ function _x(a, n) {
60504
60503
  const r = /* @__PURE__ */ new Map(), o = [];
60505
60504
  return a.forEach((l) => {
60506
60505
  var m;
@@ -60509,7 +60508,7 @@ function fx(a, n) {
60509
60508
  c !== "for...in" && (r.has(c) ? (m = r.get(c)) == null || m.push(l) : (o.push(c), r.set(c, [l])));
60510
60509
  }), { mapObj: r, keys: o };
60511
60510
  }
60512
- const { keyList: Cp, keyMapList: bt } = _x(), Br = [{
60511
+ const { keyList: Cp, keyMapList: bt } = yx(), Br = [{
60513
60512
  title: "Variables",
60514
60513
  key: "variables",
60515
60514
  prefix: "var"
@@ -60538,10 +60537,10 @@ const { keyList: Cp, keyMapList: bt } = _x(), Br = [{
60538
60537
  key: "annotations",
60539
60538
  prefix: "an"
60540
60539
  }];
60541
- function gx(a) {
60540
+ function fx(a) {
60542
60541
  return a.replace(/<.*>/, "");
60543
60542
  }
60544
- class bx {
60543
+ class gx {
60545
60544
  constructor() {
60546
60545
  Object.defineProperty(this, "delimiter", {
60547
60546
  enumerable: !0,
@@ -60584,12 +60583,12 @@ ${n}
60584
60583
  return `[${n}](${r.href})`;
60585
60584
  }
60586
60585
  }
60587
- const ne = new bx();
60588
- function xx(a) {
60586
+ const ne = new gx();
60587
+ function bx(a) {
60589
60588
  const { name: n, libraryName: r, desc: o } = a, l = [`${ne.bold(n || r)} (library)`];
60590
60589
  return l.push(ne.delimiter), o && l.push(ne.paragraph(ne.bold(it.Description), ne.lineBreak, o)), l.join(l.length === 2 ? " " : ne.lineBreak);
60591
60590
  }
60592
- function hx(a, n = 0, r = !0) {
60591
+ function xx(a, n = 0, r = !0) {
60593
60592
  const o = a[n];
60594
60593
  if (!o)
60595
60594
  return "";
@@ -60616,21 +60615,21 @@ function hx(a, n = 0, r = !0) {
60616
60615
  }
60617
60616
  P.push(ne.paragraph(ne.bold(it.EnumMembers), ne.lineBreak, N.join(ne.paragraphBreak)));
60618
60617
  }
60619
- return r && P.push(ne.italic(`${ne.code(l ? "⌘" : "Ctrl")} + ${yx.clickOnKeywordForMoreHelp}`)), P.join(P.length === 2 ? " " : ne.lineBreak);
60618
+ return r && P.push(ne.italic(`${ne.code(l ? "⌘" : "Ctrl")} + ${ux.clickOnKeywordForMoreHelp}`)), P.join(P.length === 2 ? " " : ne.lineBreak);
60620
60619
  }
60621
- const Ai = "tcc_cursor_position", wx = ["submenuitem.EditorContextPeek", "editor.action.peekDefinition"];
60622
- function vx(a) {
60620
+ const Ai = "tcc_cursor_position", hx = ["submenuitem.EditorContextPeek", "editor.action.peekDefinition"];
60621
+ function wx(a) {
60623
60622
  return a.replace(/<[^<>]+>/, "").replace(/(series|simple|const|input)\s+([\w\d.]+)/, "$2").replace(/\w[\w.\d]*\[\]/, "array");
60624
60623
  }
60625
- function Tx(a) {
60624
+ function vx(a) {
60626
60625
  const n = a.getContribution("editor.contrib.contextmenu"), r = n == null ? void 0 : n._getMenuActions;
60627
60626
  n._getMenuActions = function() {
60628
60627
  return r.apply(n, arguments).filter(function(l) {
60629
- return !wx.includes(l.id);
60628
+ return !hx.includes(l.id);
60630
60629
  });
60631
60630
  };
60632
60631
  }
60633
- class Dx {
60632
+ class Tx {
60634
60633
  constructor() {
60635
60634
  Object.defineProperty(this, "bracketsPostfix", {
60636
60635
  enumerable: !0,
@@ -60852,7 +60851,7 @@ class Dx {
60852
60851
  _setUserVariableSubItems(n, r) {
60853
60852
  var b, h, T, M;
60854
60853
  let o = [];
60855
- const l = vx(n.type || ""), c = this._methodNamespaceCache.get(l), m = r ? `${r}.${n.name}` : n.name;
60854
+ const l = wx(n.type || ""), c = this._methodNamespaceCache.get(l), m = r ? `${r}.${n.name}` : n.name;
60856
60855
  c && (o = c.filter((F) => {
60857
60856
  var G;
60858
60857
  const P = `${l}.${F.label}`, N = bt.methods.get(P) || this._userMethods.get(P), H = N == null ? void 0 : N.some((j) => !j.thisType || j.thisType[0].includes("<>") || j.thisType.includes(n.type || ""));
@@ -60986,7 +60985,7 @@ class Dx {
60986
60985
  return c.length && r && (o ? this._mergeUserCompletions(r, c) : this._mergeCompletions(r, c)), l;
60987
60986
  }
60988
60987
  _getSnippetsCompletionsList() {
60989
- return ux.map((n) => {
60988
+ return mx.map((n) => {
60990
60989
  const { label: r, kind: o, insertText: l } = n, c = r.charAt(0).toUpperCase() + r.substring(1), m = {
60991
60990
  value: this._formatter.pineCode(l.replace(/\${\d:([^}]+)}|\${\d}/g, "$1"))
60992
60991
  };
@@ -61151,7 +61150,7 @@ class Dx {
61151
61150
  c.length ? _.push(this._createExampleSection(c)) : n.syntax && n.syntax.length && _.push(this._createSyntaxSection(n.syntax)), n.returns && n.returns.length && _.push(this._createReturnSection(n.returns));
61152
61151
  const g = {
61153
61152
  value: _.join(this._formatter.lineBreak)
61154
- }, b = n.name, h = o ? ge.functions : ge.userDefinedFunction, T = n.template, M = T ? `${gx(b)}<\${1}>` : b;
61153
+ }, b = n.name, h = o ? ge.functions : ge.userDefinedFunction, T = n.template, M = T ? `${fx(b)}<\${1}>` : b;
61155
61154
  return {
61156
61155
  documentation: g,
61157
61156
  label: T ? `${b.replace(/<.+>/, "")}<type>` : b,
@@ -61215,8 +61214,8 @@ class Dx {
61215
61214
  return !n || n.trim().length === 0 ? "" : this._formatter.paragraph(this._formatter.bold(it.Description), this._formatter.lineBreak, n);
61216
61215
  }
61217
61216
  }
61218
- const Bt = new Dx();
61219
- class Ix {
61217
+ const Bt = new Tx();
61218
+ class Dx {
61220
61219
  constructor() {
61221
61220
  Object.defineProperty(this, "_userFunctions", {
61222
61221
  enumerable: !0,
@@ -61268,7 +61267,7 @@ class Ix {
61268
61267
  const _ = this._getVariablesDocVal(c, n, r);
61269
61268
  if (_) {
61270
61269
  if (_.isBuildIn) {
61271
- const h = o == null ? void 0 : o.getWordAtPosition(l || new tb(r, n));
61270
+ const h = o == null ? void 0 : o.getWordAtPosition(l || new eb(r, n));
61272
61271
  if (((o == null ? void 0 : o.getValueInRange({ startLineNumber: r, startColumn: (h == null ? void 0 : h.endColumn) || 0, endLineNumber: r, endColumn: ((h == null ? void 0 : h.endColumn) || 0) + 2 })) || "").trim().startsWith("="))
61273
61272
  return null;
61274
61273
  }
@@ -61565,7 +61564,7 @@ class Ix {
61565
61564
  return !c.test(m);
61566
61565
  }
61567
61566
  }
61568
- const or = new Ix();
61567
+ const or = new Dx();
61569
61568
  var Za = { exports: {} };
61570
61569
  /**
61571
61570
  * @license
@@ -65763,7 +65762,7 @@ const Ki = {
65763
65762
  "editorError.foreground": k["color-ripe-red-500"],
65764
65763
  "editorWarning.foreground": k["color-tan-orange-700"]
65765
65764
  }
65766
- }, kx = /(\\(?:[\\'"]))|(\\$)|("|$)|($)/g, Ax = /(\\(?:[\\'"]))|(\\$)|('|$)|($)/g, zc = {
65765
+ }, Ix = /(\\(?:[\\'"]))|(\\$)|("|$)|($)/g, kx = /(\\(?:[\\'"]))|(\\$)|('|$)|($)/g, zc = {
65767
65766
  "color.aqua": "#00BCD4",
65768
65767
  "color.black": "#363A45",
65769
65768
  "color.blue": "#2196F3",
@@ -65782,7 +65781,7 @@ const Ki = {
65782
65781
  "color.white": "#FFFFFF",
65783
65782
  "color.yellow": "#FFEB3B"
65784
65783
  };
65785
- class qx {
65784
+ class Ax {
65786
65785
  constructor(n) {
65787
65786
  Object.defineProperty(this, "_formatter", {
65788
65787
  enumerable: !0,
@@ -65872,8 +65871,8 @@ class qx {
65872
65871
  };
65873
65872
  }
65874
65873
  }
65875
- const Cx = new qx(window.navigator.userAgent);
65876
- class zx {
65874
+ const qx = new Ax(window.navigator.userAgent);
65875
+ class Cx {
65877
65876
  constructor() {
65878
65877
  Object.defineProperty(this, "_colors", {
65879
65878
  enumerable: !0,
@@ -65998,7 +65997,7 @@ class zx {
65998
65997
  return n.startsWith("color.new");
65999
65998
  }
66000
65999
  }
66001
- const Ei = new zx();
66000
+ const Ei = new Cx();
66002
66001
  var Rt;
66003
66002
  (function(a) {
66004
66003
  a.BOOL = "bool", a.INT = "int", a.FLOAT = "float", a.ARRAY = "array", a.BOX = "box", a.CHART_POINT = "chart.point", a.COLOR = "color", a.CONST = "const", a.LABEL = "label", a.LINE = "line", a.LINEFILL = "linefill", a.MAP = "map", a.MATRIX = "matrix", a.POLYLINE = "polyline", a.SERIES = "series", a.SIMPLE = "simple", a.STRING = "string", a.TABLE = "table", a.UNDETERMINED = "undetermined type", a.INPUT = "input", a.NA = "na", a.VOID = "void", a.ENUM = "enum";
@@ -66129,7 +66128,7 @@ var op;
66129
66128
  })(op || (op = {}));
66130
66129
  Rt.SERIES, Rt.SIMPLE, Rt.INPUT, Rt.CONST;
66131
66130
  Rt.INT, Rt.FLOAT, Rt.BOOL, Rt.COLOR, Rt.STRING;
66132
- const Ex = {
66131
+ const zx = {
66133
66132
  domReadOnly: !0,
66134
66133
  scrollBeyondLastLine: !1,
66135
66134
  readOnly: !0,
@@ -66431,7 +66430,7 @@ const Ex = {
66431
66430
  description: "Provides a tool to quickly output a label on the chart.",
66432
66431
  codeStr: 'const $name={calcBB:({srcArray:a,mult:r,calculate:_=!0},e)=>{let v=$_var.getVarValue("mean",e+"_14_12","var")||$_var.setVarValue("mean",e+"_14_12",$_var.na,"var"),s=$_var.getVarValue("dev",e+"_14_13","var")||$_var.setVarValue("dev",e+"_14_13",$_var.na,"var");return _&&($_var.againAssignParse(v,a.avg(e+"_16_16")),v=a.avg(e+"_16_16"),$_var.setVarValue("mean",e+"_14_12",v,"var"),$_var.againAssignParse(s,a.stdev(e+"_17_16")*r),s=a.stdev(e+"_17_16")*r,$_var.setVarValue("dev",e+"_14_13",s,"var")),[v,$_var.add(v,s),$_var.sub(v,s)]},calcBB$1:({srcArray:a,mult:r,calculate:_=!0},e)=>{let v=$_var.getVarValue("mean",e+"_14_21","var")||$_var.setVarValue("mean",e+"_14_21",$_var.na,"var"),s=$_var.getVarValue("dev",e+"_14_22","var")||$_var.setVarValue("dev",e+"_14_22",$_var.na,"var");return _&&($_var.againAssignParse(v,a.avg(e+"_25_16")),v=a.avg(e+"_25_16"),$_var.setVarValue("mean",e+"_14_21",v,"var"),$_var.againAssignParse(s,a.stdev(e+"_26_16")*r),s=a.stdev(e+"_26_16")*r,$_var.setVarValue("dev",e+"_14_22",s,"var")),[v,$_var.add(v,s),$_var.sub(v,s)]},Scanner:$_var.getTypeInstance({enabled:void 0,ticker:void 0,timeframe:void 0},[])};'
66433
66432
  };
66434
- class Nx {
66433
+ class Ex {
66435
66434
  constructor() {
66436
66435
  Object.defineProperty(this, "_inlayHints", {
66437
66436
  enumerable: !0,
@@ -66518,8 +66517,8 @@ class Nx {
66518
66517
  o.splice(15, 0, [r, "meta.function-call"]), $e.setMonarchTokensProvider(Ne, { ...ir, tokenizer: { ...ir.tokenizer, root: o } });
66519
66518
  }
66520
66519
  }
66521
- const Ja = new Nx();
66522
- function Sx(a, n, r) {
66520
+ const Ja = new Ex();
66521
+ function Nx(a, n, r) {
66523
66522
  var F;
66524
66523
  const o = {
66525
66524
  startLineNumber: n.lineNumber,
@@ -66556,25 +66555,25 @@ function Sx(a, n, r) {
66556
66555
  }
66557
66556
  };
66558
66557
  }
66559
- function Lx(a) {
66558
+ function Sx(a) {
66560
66559
  if (a.kind !== 1)
66561
66560
  return a;
66562
66561
  const { originInsertText: n } = a;
66563
66562
  return Bt.nextIsBracket ? a.insertText = n : a.insertText = n + Bt.bracketsPostfix, a;
66564
66563
  }
66565
- function Mx(a, n) {
66564
+ function Lx(a, n) {
66566
66565
  var o;
66567
66566
  const r = or.parseLineContentFuncVar(n.column, n.lineNumber, a, n);
66568
66567
  if (r != null && r.libraryId)
66569
66568
  return {
66570
66569
  contents: [
66571
66570
  {
66572
- value: xx(r)
66571
+ value: bx(r)
66573
66572
  }
66574
66573
  ]
66575
66574
  };
66576
66575
  if ((o = r == null ? void 0 : r.docValue) != null && o.length) {
66577
- const l = hx(r.docValue, r.index, r.isBuildIn);
66576
+ const l = xx(r.docValue, r.index, r.isBuildIn);
66578
66577
  if (l)
66579
66578
  return {
66580
66579
  contents: [
@@ -66588,21 +66587,21 @@ function Mx(a, n) {
66588
66587
  contents: []
66589
66588
  };
66590
66589
  }
66591
- function Px(a, n) {
66590
+ function Mx(a, n) {
66592
66591
  var T, M;
66593
66592
  const r = {
66594
66593
  startLineNumber: n.lineNumber,
66595
66594
  endLineNumber: n.lineNumber,
66596
66595
  startColumn: 1,
66597
66596
  endColumn: n.column
66598
- }, o = a.getValueInRange(r), l = a.findMatches(String(kx), r, !0, !1, null, !0), c = a.findMatches(String(Ax), r, !0, !1, null, !0), m = (T = l.pop()) == null ? void 0 : T.matches, _ = (M = c.pop()) == null ? void 0 : M.matches;
66597
+ }, o = a.getValueInRange(r), l = a.findMatches(String(Ix), r, !0, !1, null, !0), c = a.findMatches(String(kx), r, !0, !1, null, !0), m = (T = l.pop()) == null ? void 0 : T.matches, _ = (M = c.pop()) == null ? void 0 : M.matches;
66599
66598
  let g = !1;
66600
66599
  l.length % 2 === 0 ? m && m[0] === '"' && (g = !0) : m && !m[0] && (g = !0);
66601
66600
  let b = !1;
66602
66601
  c.length % 2 === 0 ? _ && _[0] === "'" && (b = !0) : _ && !_[0] && (b = !0);
66603
66602
  const h = or.parseCurrentInputFuncAndArg(o, b, g);
66604
66603
  if (h) {
66605
- const { funcName: F, args: P } = h, N = Cx.getSignatureHelpValues(F, P);
66604
+ const { funcName: F, args: P } = h, N = qx.getSignatureHelpValues(F, P);
66606
66605
  if (N)
66607
66606
  return {
66608
66607
  value: N,
@@ -66612,7 +66611,7 @@ function Px(a, n) {
66612
66611
  }
66613
66612
  return null;
66614
66613
  }
66615
- function Ox(a) {
66614
+ function Px(a) {
66616
66615
  let n = a.findMatches(Ei.colorMatchesRegStr, !0, !0, !1, null, !0);
66617
66616
  return n = n.filter((o) => {
66618
66617
  const l = a.getValueInRange({
@@ -66622,10 +66621,10 @@ function Ox(a) {
66622
66621
  return l.indexOf("//") === -1 || l.indexOf("//") > o.range.endColumn;
66623
66622
  }), Ei.getDocumentColors(n);
66624
66623
  }
66625
- function Fx(a, n) {
66624
+ function Ox(a, n) {
66626
66625
  return Ei.getDocumentColorPresentations(a, n) || [];
66627
66626
  }
66628
- function Rx(a, n) {
66627
+ function Fx(a, n) {
66629
66628
  const r = a.getModel(), o = or.parseLineContentFuncVar(n.startColumn + 1, n.startLineNumber, r);
66630
66629
  if (!o || o.isBuildIn || !o.docValue || !o.docValue[0].pos)
66631
66630
  return o != null && o.isBuildIn ? o : void 0;
@@ -66637,7 +66636,7 @@ function Rx(a, n) {
66637
66636
  };
66638
66637
  a.revealRangeInCenterIfOutsideViewport(m), a.setSelection(m);
66639
66638
  }
66640
- function Bx(a, n) {
66639
+ function Rx(a, n) {
66641
66640
  return or.parseLineContentFuncVar(n.column, n.lineNumber, a, n) ? {
66642
66641
  uri: a.uri,
66643
66642
  range: {
@@ -66651,14 +66650,14 @@ function Bx(a, n) {
66651
66650
  function cp(a, n) {
66652
66651
  return a.map((r) => (r.range = n, r));
66653
66652
  }
66654
- function Kx() {
66653
+ function Bx() {
66655
66654
  return {
66656
66655
  hints: Ja.inlayHints,
66657
66656
  dispose: () => {
66658
66657
  }
66659
66658
  };
66660
66659
  }
66661
- var Kr = {}, Fr = rb;
66660
+ var Kr = {}, Fr = sb;
66662
66661
  if (process.env.NODE_ENV === "production")
66663
66662
  Kr.createRoot = Fr.createRoot, Kr.hydrateRoot = Fr.hydrateRoot;
66664
66663
  else {
@@ -66683,15 +66682,15 @@ var Ye;
66683
66682
  (function(a) {
66684
66683
  a.added = "added", a.removed = "removed", a.modified = "modified";
66685
66684
  })(Ye || (Ye = {}));
66686
- const Ux = (a, n) => {
66685
+ const Kx = (a, n) => {
66687
66686
  const { close: r, retracement: o } = a, [l, c] = ot("modified");
66688
66687
  return hp(n, () => ({
66689
66688
  updateType(m) {
66690
66689
  c(m);
66691
66690
  }
66692
66691
  })), L.jsxs("div", { className: `content-popup content-${l}-popup`, children: [L.jsx("div", { className: `triangle-popup triangle-${l}-popup` }), L.jsxs("div", { className: `header-popup header-${l}-popup`, children: [L.jsx("div", { className: "title-popup", children: "Local working changes" }), L.jsx("div", { className: "actions-popup", children: L.jsx("div", { onClick: r, "data-role": "button", className: "button-popup", "data-name": "button-close-diff", children: L.jsx("span", { className: "icon-popup", role: "img", children: L.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 12", width: "12", height: "12", children: L.jsx("path", { stroke: "currentColor", strokeWidth: "1.2", d: "m1.5 1.5 9 9m0-9-9 9" }) }) }) }) })] }), L.jsx("div", { id: "diffEditorContainer", style: { height: "100%" } })] });
66693
- }, $x = xp(Ux);
66694
- class Hx {
66692
+ }, Ux = xp(Kx);
66693
+ class $x {
66695
66694
  constructor(n, r, o = !0) {
66696
66695
  Object.defineProperty(this, "_domNode", {
66697
66696
  enumerable: !0,
@@ -66713,7 +66712,7 @@ class Hx {
66713
66712
  configurable: !0,
66714
66713
  writable: !0,
66715
66714
  value: void 0
66716
- }), this._id = n, this._domNode = document.createElement("div"), this._domNode.style.display = "none", this._domNode.style.width = o ? "calc(100% - 134px)" : "calc(100% - 14px)", this._domNode.style.height = "200px", r == null || r.onDidScrollChange(this.scrollChangeHandler.bind(this)), Kr.createRoot(this._domNode).render(L.jsx($x, { ref: (l) => this._content = l, close: () => this._close(), retracement: this._retracement })), this._top = 0;
66715
+ }), this._id = n, this._domNode = document.createElement("div"), this._domNode.style.display = "none", this._domNode.style.width = o ? "calc(100% - 134px)" : "calc(100% - 14px)", this._domNode.style.height = "200px", r == null || r.onDidScrollChange(this.scrollChangeHandler.bind(this)), Kr.createRoot(this._domNode).render(L.jsx(Ux, { ref: (l) => this._content = l, close: () => this._close(), retracement: this._retracement })), this._top = 0;
66717
66716
  }
66718
66717
  _close() {
66719
66718
  this._domNode.style.display = "none";
@@ -66781,7 +66780,7 @@ hs.prototype = {
66781
66780
  continue;
66782
66781
  }
66783
66782
  if (!ie || se && R.oldPos + 1 < U.oldPos ? A = m.addToPath(U, !0, void 0, 0) : A = m.addToPath(R, void 0, !0, 1), N = m.extractCommon(A, r, n, I), A.oldPos + 1 >= b && N + 1 >= g)
66784
- return _(jx(m, A.lastComponent, r, n, m.useLongestToken));
66783
+ return _(Hx(m, A.lastComponent, r, n, m.useLongestToken));
66785
66784
  P[I] = A, A.oldPos + 1 >= b && (G = Math.min(G, I - 1)), N + 1 >= g && (H = Math.max(H, I + 1));
66786
66785
  }
66787
66786
  h++;
@@ -66847,7 +66846,7 @@ hs.prototype = {
66847
66846
  return n.join("");
66848
66847
  }
66849
66848
  };
66850
- function jx(a, n, r, o, l) {
66849
+ function Hx(a, n, r, o, l) {
66851
66850
  for (var c = [], m; n; )
66852
66851
  c.push(n), m = n.previousComponent, delete n.previousComponent, n = m;
66853
66852
  c.reverse();
@@ -66894,15 +66893,15 @@ $i.tokenize = function(a) {
66894
66893
  }
66895
66894
  return n;
66896
66895
  };
66897
- function Wx(a, n, r) {
66896
+ function jx(a, n, r) {
66898
66897
  return $i.diff(a, n, r);
66899
66898
  }
66900
- var Gx = new hs();
66901
- Gx.tokenize = function(a) {
66899
+ var Wx = new hs();
66900
+ Wx.tokenize = function(a) {
66902
66901
  return a.split(/(\S.+?[.!?])(?=\s+|$)/);
66903
66902
  };
66904
- var Xx = new hs();
66905
- Xx.tokenize = function(a) {
66903
+ var Gx = new hs();
66904
+ Gx.tokenize = function(a) {
66906
66905
  return a.split(/([{}:;,]|\s+)/);
66907
66906
  };
66908
66907
  function Ya(a) {
@@ -66913,7 +66912,7 @@ function Ya(a) {
66913
66912
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
66914
66913
  }, Ya(a);
66915
66914
  }
66916
- var Yx = Object.prototype.toString, Wr = new hs();
66915
+ var Xx = Object.prototype.toString, Wr = new hs();
66917
66916
  Wr.useLongestToken = !0;
66918
66917
  Wr.tokenize = $i.tokenize;
66919
66918
  Wr.castInput = function(a) {
@@ -66932,7 +66931,7 @@ function Ni(a, n, r, o, l) {
66932
66931
  if (n[c] === a)
66933
66932
  return r[c];
66934
66933
  var m;
66935
- if (Yx.call(a) === "[object Array]") {
66934
+ if (Xx.call(a) === "[object Array]") {
66936
66935
  for (n.push(a), m = new Array(a.length), r.push(m), c = 0; c < a.length; c += 1)
66937
66936
  m[c] = Ni(a[c], n, r, o, l);
66938
66937
  return n.pop(), r.pop(), m;
@@ -66956,7 +66955,7 @@ Si.tokenize = function(a) {
66956
66955
  Si.join = Si.removeEmpty = function(a) {
66957
66956
  return a;
66958
66957
  };
66959
- class Vx {
66958
+ class Yx {
66960
66959
  constructor(n, r, o = "") {
66961
66960
  Object.defineProperty(this, "_editor", {
66962
66961
  enumerable: !0,
@@ -67042,11 +67041,11 @@ class Vx {
67042
67041
  }
67043
67042
  _changeEvent() {
67044
67043
  var l, c;
67045
- const n = Wx(this._originalModel.getValue(), ((l = this._editor.getModel()) == null ? void 0 : l.getValue()) || ""), r = this._changesHandle(n), o = ((c = this._editor.getModel()) == null ? void 0 : c.deltaDecorations(this._oldDecorations, r)) || [];
67044
+ const n = jx(this._originalModel.getValue(), ((l = this._editor.getModel()) == null ? void 0 : l.getValue()) || ""), r = this._changesHandle(n), o = ((c = this._editor.getModel()) == null ? void 0 : c.deltaDecorations(this._oldDecorations, r)) || [];
67046
67045
  this._oldDecorations = o;
67047
67046
  }
67048
67047
  _eventListening() {
67049
- const n = new Hx("diff.popup.widget", this._editor);
67048
+ const n = new $x("diff.popup.widget", this._editor);
67050
67049
  this._editor.addOverlayWidget(n), this._onMouseDownListener = this._editor.onMouseDown((r) => this._onMouseDownHandle(r)), this._diffPopupWidget = n;
67051
67050
  }
67052
67051
  _onMouseDownHandle(n) {
@@ -67070,7 +67069,7 @@ class Vx {
67070
67069
  });
67071
67070
  }
67072
67071
  }
67073
- class Qx {
67072
+ class Vx {
67074
67073
  constructor(n, r, o) {
67075
67074
  Object.defineProperty(this, "_editor", {
67076
67075
  enumerable: !0,
@@ -67119,7 +67118,7 @@ class Qx {
67119
67118
  this._monaco.editor.setModelMarkers(this._editor.getModel(), "owner", n);
67120
67119
  }
67121
67120
  addDiffDecorations() {
67122
- this._decorations || (this._decorations = new Vx(this._editor, this._monaco, this._originalScript));
67121
+ this._decorations || (this._decorations = new Yx(this._editor, this._monaco, this._originalScript));
67123
67122
  }
67124
67123
  removeDiffDecorations() {
67125
67124
  var n;
@@ -67170,19 +67169,19 @@ class Qx {
67170
67169
  id: Ne
67171
67170
  }), this._monaco.languages.registerCompletionItemProvider(Ne, {
67172
67171
  triggerCharacters: [".", "@"],
67173
- provideCompletionItems: Sx,
67174
- resolveCompletionItem: Lx
67172
+ provideCompletionItems: Nx,
67173
+ resolveCompletionItem: Sx
67175
67174
  }), this._monaco.languages.registerHoverProvider(Ne, {
67176
- provideHover: Mx
67175
+ provideHover: Lx
67177
67176
  }), this._monaco.languages.registerSignatureHelpProvider(Ne, {
67178
67177
  signatureHelpTriggerCharacters: ["(", ","],
67179
- provideSignatureHelp: Px
67178
+ provideSignatureHelp: Mx
67180
67179
  }), this._monaco.languages.registerColorProvider(Ne, {
67181
- provideColorPresentations: Fx,
67182
- provideDocumentColors: Ox
67180
+ provideColorPresentations: Ox,
67181
+ provideDocumentColors: Px
67183
67182
  }), this._monaco.editor.registerEditorOpener({
67184
67183
  openCodeEditor: (n, r, o) => {
67185
- const l = Rx(n, o);
67184
+ const l = Fx(n, o);
67186
67185
  if (l) {
67187
67186
  const { index: c, docValue: m } = l, { title: _, name: g } = m[c];
67188
67187
  let b = "";
@@ -67210,9 +67209,9 @@ class Qx {
67210
67209
  }), this._monaco.editor.registerLinkOpener({
67211
67210
  open: (n) => (this._onLinkOpen && n.fragment && this._onLinkOpen(n.fragment), !!n.fragment)
67212
67211
  }), this._monaco.languages.registerDefinitionProvider(Ne, {
67213
- provideDefinition: Bx
67212
+ provideDefinition: Rx
67214
67213
  }), this._monaco.languages.registerInlayHintsProvider(Ne, {
67215
- provideInlayHints: Kx
67214
+ provideInlayHints: Bx
67216
67215
  });
67217
67216
  }
67218
67217
  _setOptions() {
@@ -67296,7 +67295,7 @@ class Qx {
67296
67295
  * Copyright 2019 Google LLC
67297
67296
  * SPDX-License-Identifier: Apache-2.0
67298
67297
  */
67299
- const Ep = Symbol("Comlink.proxy"), Zx = Symbol("Comlink.endpoint"), Jx = Symbol("Comlink.releaseProxy"), qi = Symbol("Comlink.finalizer"), Va = Symbol("Comlink.thrown"), Np = (a) => typeof a == "object" && a !== null || typeof a == "function", eh = {
67298
+ const Ep = Symbol("Comlink.proxy"), Qx = Symbol("Comlink.endpoint"), Zx = Symbol("Comlink.releaseProxy"), qi = Symbol("Comlink.finalizer"), Va = Symbol("Comlink.thrown"), Np = (a) => typeof a == "object" && a !== null || typeof a == "function", Jx = {
67300
67299
  canHandle: (a) => Np(a) && a[Ep],
67301
67300
  serialize(a) {
67302
67301
  const { port1: n, port2: r } = new MessageChannel();
@@ -67305,7 +67304,7 @@ const Ep = Symbol("Comlink.proxy"), Zx = Symbol("Comlink.endpoint"), Jx = Symbol
67305
67304
  deserialize(a) {
67306
67305
  return a.start(), Hi(a);
67307
67306
  }
67308
- }, th = {
67307
+ }, eh = {
67309
67308
  canHandle: (a) => Np(a) && Va in a,
67310
67309
  serialize({ value: a }) {
67311
67310
  let n;
@@ -67322,10 +67321,10 @@ const Ep = Symbol("Comlink.proxy"), Zx = Symbol("Comlink.endpoint"), Jx = Symbol
67322
67321
  throw a.isError ? Object.assign(new Error(a.value.message), a.value) : a.value;
67323
67322
  }
67324
67323
  }, Sp = /* @__PURE__ */ new Map([
67325
- ["proxy", eh],
67326
- ["throw", th]
67324
+ ["proxy", Jx],
67325
+ ["throw", eh]
67327
67326
  ]);
67328
- function sh(a, n) {
67327
+ function th(a, n) {
67329
67328
  for (const r of a)
67330
67329
  if (n === r || r === "*" || r instanceof RegExp && r.test(n))
67331
67330
  return !0;
@@ -67335,7 +67334,7 @@ function Lp(a, n = globalThis, r = ["*"]) {
67335
67334
  n.addEventListener("message", function o(l) {
67336
67335
  if (!l || !l.data)
67337
67336
  return;
67338
- if (!sh(r, l.origin)) {
67337
+ if (!th(r, l.origin)) {
67339
67338
  console.warn(`Invalid origin '${l.origin}' for comlink proxy`);
67340
67339
  return;
67341
67340
  }
@@ -67362,7 +67361,7 @@ function Lp(a, n = globalThis, r = ["*"]) {
67362
67361
  case "ENDPOINT":
67363
67362
  {
67364
67363
  const { port1: M, port2: F } = new MessageChannel();
67365
- Lp(a, F), b = oh(M, [M]);
67364
+ Lp(a, F), b = ih(M, [M]);
67366
67365
  }
67367
67366
  break;
67368
67367
  case "RELEASE":
@@ -67386,11 +67385,11 @@ function Lp(a, n = globalThis, r = ["*"]) {
67386
67385
  });
67387
67386
  }), n.start && n.start();
67388
67387
  }
67389
- function rh(a) {
67388
+ function sh(a) {
67390
67389
  return a.constructor.name === "MessagePort";
67391
67390
  }
67392
67391
  function Mp(a) {
67393
- rh(a) && a.close();
67392
+ sh(a) && a.close();
67394
67393
  }
67395
67394
  function Hi(a, n) {
67396
67395
  return Li(a, [], n);
@@ -67410,11 +67409,11 @@ const en = /* @__PURE__ */ new WeakMap(), tn = "FinalizationRegistry" in globalT
67410
67409
  const n = (en.get(a) || 0) - 1;
67411
67410
  en.set(a, n), n === 0 && Pp(a);
67412
67411
  });
67413
- function ah(a, n) {
67412
+ function rh(a, n) {
67414
67413
  const r = (en.get(n) || 0) + 1;
67415
67414
  en.set(n, r), tn && tn.register(a, n, a);
67416
67415
  }
67417
- function nh(a) {
67416
+ function ah(a) {
67418
67417
  tn && tn.unregister(a);
67419
67418
  }
67420
67419
  function Li(a, n = [], r = function() {
@@ -67422,9 +67421,9 @@ function Li(a, n = [], r = function() {
67422
67421
  let o = !1;
67423
67422
  const l = new Proxy(r, {
67424
67423
  get(c, m) {
67425
- if (Ga(o), m === Jx)
67424
+ if (Ga(o), m === Zx)
67426
67425
  return () => {
67427
- nh(l), Pp(a), o = !0;
67426
+ ah(l), Pp(a), o = !0;
67428
67427
  };
67429
67428
  if (m === "then") {
67430
67429
  if (n.length === 0)
@@ -67449,7 +67448,7 @@ function Li(a, n = [], r = function() {
67449
67448
  apply(c, m, _) {
67450
67449
  Ga(o);
67451
67450
  const g = n[n.length - 1];
67452
- if (g === Zx)
67451
+ if (g === Qx)
67453
67452
  return ar(a, {
67454
67453
  type: "ENDPOINT"
67455
67454
  }).then(Ms);
@@ -67472,17 +67471,17 @@ function Li(a, n = [], r = function() {
67472
67471
  }, g).then(Ms);
67473
67472
  }
67474
67473
  });
67475
- return ah(l, a), l;
67474
+ return rh(l, a), l;
67476
67475
  }
67477
- function ih(a) {
67476
+ function nh(a) {
67478
67477
  return Array.prototype.concat.apply([], a);
67479
67478
  }
67480
67479
  function mp(a) {
67481
67480
  const n = a.map(sn);
67482
- return [n.map((r) => r[0]), ih(n.map((r) => r[1]))];
67481
+ return [n.map((r) => r[0]), nh(n.map((r) => r[1]))];
67483
67482
  }
67484
67483
  const Op = /* @__PURE__ */ new WeakMap();
67485
- function oh(a, n) {
67484
+ function ih(a, n) {
67486
67485
  return Op.set(a, n), a;
67487
67486
  }
67488
67487
  function ji(a) {
@@ -67519,13 +67518,13 @@ function Ms(a) {
67519
67518
  }
67520
67519
  function ar(a, n, r) {
67521
67520
  return new Promise((o) => {
67522
- const l = lh();
67521
+ const l = oh();
67523
67522
  a.addEventListener("message", function c(m) {
67524
67523
  !m.data || !m.data.id || m.data.id !== l || (a.removeEventListener("message", c), o(m.data));
67525
67524
  }), a.start && a.start(), a.postMessage(Object.assign({ id: l }, n), r);
67526
67525
  });
67527
67526
  }
67528
- function lh() {
67527
+ function oh() {
67529
67528
  return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
67530
67529
  }
67531
67530
  const Fp = new Worker(new URL("" + new URL("assets/scriptsRunWorker-DTH9vYgp.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
@@ -67536,21 +67535,21 @@ async function Rp(a) {
67536
67535
  return await Ja.setInlayHints(a);
67537
67536
  }
67538
67537
  const Bp = Hi(Fp), Kp = Hi(new Worker(new URL("" + new URL("assets/parserTccWorker-BC_aawb2.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser TccScript Server" }));
67539
- async function ch(a, n = !1) {
67538
+ async function lh(a, n = !1) {
67540
67539
  const { functions: r, types: o, constants: l, variables: c, methods: m } = bt;
67541
67540
  return await Kp.parseTcc(a, n, ji(Rp), { functions: Object.fromEntries(r), methods: Object.fromEntries(m), types: Object.fromEntries(o), constants: Object.fromEntries(l), variables: Object.fromEntries(c) });
67542
67541
  }
67543
- async function Fh(a, n) {
67542
+ async function Oh(a, n) {
67544
67543
  const { functions: r, types: o, constants: l, variables: c, methods: m } = bt;
67545
67544
  return await Kp.parseLibraryCode(a, n, ji(Rp), { functions: Object.fromEntries(r), methods: Object.fromEntries(m), types: Object.fromEntries(o), constants: Object.fromEntries(l), variables: Object.fromEntries(c) });
67546
67545
  }
67547
- async function ph(a, n, r = !0) {
67546
+ async function ch(a, n, r = !0) {
67548
67547
  return await Bp.runScript(a, n, r);
67549
67548
  }
67550
- async function Rh(a) {
67549
+ async function Fh(a) {
67551
67550
  return await Bp.removeScript(a);
67552
67551
  }
67553
- function dh(a) {
67552
+ function ph(a) {
67554
67553
  return new Worker(
67555
67554
  "" + new URL("assets/editor.worker-CT5Cb1wO.js", import.meta.url).href,
67556
67555
  {
@@ -67560,12 +67559,17 @@ function dh(a) {
67560
67559
  }
67561
67560
  self.MonacoEnvironment = {
67562
67561
  getWorker() {
67563
- return new dh({ name: "Editor Worker" });
67562
+ return new ph({ name: "Editor Worker" });
67564
67563
  }
67565
67564
  };
67566
- Ri.config({ monaco: eb });
67565
+ Ri.config({
67566
+ paths: {
67567
+ vs: "https://cdn.staticfile.net/monaco-editor/0.45.0/min/vs"
67568
+ },
67569
+ "vs/nls": { availableLanguages: { "*": "zh-cn" } }
67570
+ });
67567
67571
  let up = {};
67568
- const mh = (a, n) => {
67572
+ const dh = (a, n) => {
67569
67573
  const { height: r, width: o, theme: l, options: c, hasDiff: m, readOnly: _, defaultValue: g, onChange: b, onLinkOpen: h, onDeclareConfigChange: T, onCursorPositionChange: M, onActionTrigger: F, onEditorDidMount: P } = a, N = Pe(null), H = Pe(null);
67570
67574
  hp(n, () => ({
67571
67575
  setOriginalScript(A) {
@@ -67604,13 +67608,13 @@ const mh = (a, n) => {
67604
67608
  }, [h]);
67605
67609
  function G(A, R) {
67606
67610
  var se, me, ie;
67607
- Bt.initBuiltinsTrees(), Ja.setEditor(A), N.current = new Qx(A, R, F), h && ((se = N.current) == null || se.addLinkOpenFunc(h)), m && ((me = N.current) == null || me.addDiffDecorations()), Tx(A), (ie = N.current) == null || ie.setEditorLayout(Number(r));
67611
+ Bt.initBuiltinsTrees(), Ja.setEditor(A), N.current = new Vx(A, R, F), h && ((se = N.current) == null || se.addLinkOpenFunc(h)), m && ((me = N.current) == null || me.addDiffDecorations()), vx(A), (ie = N.current) == null || ie.setEditorLayout(Number(r));
67608
67612
  const U = A.getValue();
67609
67613
  N.current.onChangeCursorPosition(M), b && b(U), !_ && j(U), P && P();
67610
67614
  }
67611
67615
  const j = $r(async (A) => {
67612
67616
  var ht;
67613
- const R = Date.now(), { errors: U, functions: se, methods: me, types: ie, variables: xt, overloadsFuncs: Et, imports: Ke, preParserCode: Fe, enums: Y } = await ch(A), _e = new Map(Object.entries(se)), Ce = new Map(Object.entries(me)), Se = new Map(Object.entries(ie)), lt = new Map(Object.entries(xt)), Nt = new Map(Object.entries(Ke)), J = new Map(Object.entries(Y));
67617
+ const R = Date.now(), { errors: U, functions: se, methods: me, types: ie, variables: xt, overloadsFuncs: Et, imports: Ke, preParserCode: Fe, enums: Y } = await lh(A), _e = new Map(Object.entries(se)), Ce = new Map(Object.entries(me)), Se = new Map(Object.entries(ie)), lt = new Map(Object.entries(xt)), Nt = new Map(Object.entries(Ke)), J = new Map(Object.entries(Y));
67614
67618
  or.setUserDefined({
67615
67619
  functions: _e,
67616
67620
  methods: Ce,
@@ -67621,13 +67625,13 @@ const mh = (a, n) => {
67621
67625
  }, Et), Bt.setUserDefind(_e, Se, lt, Ce, J);
67622
67626
  const be = U.map((De) => ({
67623
67627
  ...De,
67624
- severity: De.type || sb.Error
67628
+ severity: De.type || tb.Error
67625
67629
  }));
67626
67630
  if (_)
67627
67631
  return;
67628
67632
  try {
67629
67633
  if (!U.length && Fe) {
67630
- const De = await ph(Fe, {
67634
+ const De = await ch(Fe, {
67631
67635
  isPreParser: !0
67632
67636
  });
67633
67637
  Cc.isEqual(De, up) || (up = De, T && T(De));
@@ -67664,7 +67668,7 @@ const mh = (a, n) => {
67664
67668
  return H.current && R.observe(H.current), () => {
67665
67669
  H.current && R.unobserve(H.current), R.disconnect();
67666
67670
  };
67667
- }, []), L.jsx("div", { ref: H, children: L.jsx(mx, { height: r, width: o || "100%", defaultLanguage: Ne, defaultValue: g || `indicator("我的脚本")
67671
+ }, []), L.jsx("div", { ref: H, children: L.jsx(dx, { height: r, width: o || "100%", defaultLanguage: Ne, defaultValue: g || `indicator("我的脚本")
67668
67672
  plot(close)
67669
67673
  `, theme: l || "vs-dark", className: `tvue-script ${l || "vs-dark"}`, options: {
67670
67674
  colorDecorators: !0,
@@ -67676,19 +67680,19 @@ plot(close)
67676
67680
  filterGraceful: !0
67677
67681
  },
67678
67682
  fontSize: 13,
67679
- ..._ ? Ex : {},
67683
+ ..._ ? zx : {},
67680
67684
  readOnlyMessage: {
67681
67685
  value: "该脚本是只读的。它无法被编辑。"
67682
67686
  },
67683
67687
  ...c
67684
67688
  }, onMount: G, onChange: I }) });
67685
- }, Bh = xp(mh), Kh = (a) => {
67689
+ }, Rh = xp(dh), Bh = (a) => {
67686
67690
  const { theme: n, modified: r, original: o, height: l, width: c, renderSideBySide: m = !0 } = a, _ = $r((g, b) => {
67687
67691
  b.languages.register({
67688
67692
  id: Ne
67689
67693
  }), b.editor.defineTheme("vs-dark", Ui), b.editor.defineTheme("vs", Ki), b.languages.setMonarchTokensProvider(Ne, ir), b.languages.setLanguageConfiguration(Ne, Bi);
67690
67694
  }, []);
67691
- return L.jsx(ox, { height: l || "90vh", width: c || "100%", theme: n || "vs-dark", options: {
67695
+ return L.jsx(ix, { height: l || "90vh", width: c || "100%", theme: n || "vs-dark", options: {
67692
67696
  readOnly: !0,
67693
67697
  renderSideBySide: m,
67694
67698
  scrollBeyondLastLine: !1
@@ -67698,7 +67702,7 @@ var yp;
67698
67702
  (function(a) {
67699
67703
  a[a.Hint = 1] = "Hint", a[a.Info = 2] = "Info", a[a.Warning = 4] = "Warning", a[a.Error = 8] = "Error";
67700
67704
  })(yp || (yp = {}));
67701
- var nn = {}, uh = function() {
67705
+ var nn = {}, mh = function() {
67702
67706
  var a = document.getSelection();
67703
67707
  if (!a.rangeCount)
67704
67708
  return function() {
@@ -67719,20 +67723,20 @@ var nn = {}, uh = function() {
67719
67723
  a.addRange(l);
67720
67724
  }), n && n.focus();
67721
67725
  };
67722
- }, yh = uh, _p = {
67726
+ }, uh = mh, _p = {
67723
67727
  "text/plain": "Text",
67724
67728
  "text/html": "Url",
67725
67729
  default: "Text"
67726
- }, _h = "Copy to clipboard: #{key}, Enter";
67727
- function fh(a) {
67730
+ }, yh = "Copy to clipboard: #{key}, Enter";
67731
+ function _h(a) {
67728
67732
  var n = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
67729
67733
  return a.replace(/#{\s*key\s*}/g, n);
67730
67734
  }
67731
- function gh(a, n) {
67735
+ function fh(a, n) {
67732
67736
  var r, o, l, c, m, _, g = !1;
67733
67737
  n || (n = {}), r = n.debug || !1;
67734
67738
  try {
67735
- l = yh(), c = document.createRange(), m = document.getSelection(), _ = document.createElement("span"), _.textContent = a, _.ariaHidden = "true", _.style.all = "unset", _.style.position = "fixed", _.style.top = 0, _.style.clip = "rect(0, 0, 0, 0)", _.style.whiteSpace = "pre", _.style.webkitUserSelect = "text", _.style.MozUserSelect = "text", _.style.msUserSelect = "text", _.style.userSelect = "text", _.addEventListener("copy", function(h) {
67739
+ l = uh(), c = document.createRange(), m = document.getSelection(), _ = document.createElement("span"), _.textContent = a, _.ariaHidden = "true", _.style.all = "unset", _.style.position = "fixed", _.style.top = 0, _.style.clip = "rect(0, 0, 0, 0)", _.style.whiteSpace = "pre", _.style.webkitUserSelect = "text", _.style.MozUserSelect = "text", _.style.msUserSelect = "text", _.style.userSelect = "text", _.addEventListener("copy", function(h) {
67736
67740
  if (h.stopPropagation(), n.format)
67737
67741
  if (h.preventDefault(), typeof h.clipboardData > "u") {
67738
67742
  r && console.warn("unable to use e.clipboardData"), r && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
@@ -67751,14 +67755,14 @@ function gh(a, n) {
67751
67755
  try {
67752
67756
  window.clipboardData.setData(n.format || "text", a), n.onCopy && n.onCopy(window.clipboardData), g = !0;
67753
67757
  } catch (T) {
67754
- r && console.error("unable to copy using clipboardData: ", T), r && console.error("falling back to prompt"), o = fh("message" in n ? n.message : _h), window.prompt(o, a);
67758
+ r && console.error("unable to copy using clipboardData: ", T), r && console.error("falling back to prompt"), o = _h("message" in n ? n.message : yh), window.prompt(o, a);
67755
67759
  }
67756
67760
  } finally {
67757
67761
  m && (typeof m.removeRange == "function" ? m.removeRange(c) : m.removeAllRanges()), _ && document.body.removeChild(_), l();
67758
67762
  }
67759
67763
  return g;
67760
67764
  }
67761
- var bh = gh;
67765
+ var gh = fh;
67762
67766
  function Mi(a) {
67763
67767
  "@babel/helpers - typeof";
67764
67768
  return Mi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
@@ -67771,7 +67775,7 @@ Object.defineProperty(nn, "__esModule", {
67771
67775
  value: !0
67772
67776
  });
67773
67777
  nn.CopyToClipboard = void 0;
67774
- var Xa = Up(is), xh = Up(bh), hh = ["text", "onCopy", "options", "children"];
67778
+ var Xa = Up(is), bh = Up(gh), xh = ["text", "onCopy", "options", "children"];
67775
67779
  function Up(a) {
67776
67780
  return a && a.__esModule ? a : { default: a };
67777
67781
  }
@@ -67796,10 +67800,10 @@ function gp(a) {
67796
67800
  }
67797
67801
  return a;
67798
67802
  }
67799
- function wh(a, n) {
67803
+ function hh(a, n) {
67800
67804
  if (a == null)
67801
67805
  return {};
67802
- var r = vh(a, n), o, l;
67806
+ var r = wh(a, n), o, l;
67803
67807
  if (Object.getOwnPropertySymbols) {
67804
67808
  var c = Object.getOwnPropertySymbols(a);
67805
67809
  for (l = 0; l < c.length; l++)
@@ -67807,7 +67811,7 @@ function wh(a, n) {
67807
67811
  }
67808
67812
  return r;
67809
67813
  }
67810
- function vh(a, n) {
67814
+ function wh(a, n) {
67811
67815
  if (a == null)
67812
67816
  return {};
67813
67817
  var r = {}, o = Object.keys(a), l, c;
@@ -67815,7 +67819,7 @@ function vh(a, n) {
67815
67819
  l = o[c], !(n.indexOf(l) >= 0) && (r[l] = a[l]);
67816
67820
  return r;
67817
67821
  }
67818
- function Th(a, n) {
67822
+ function vh(a, n) {
67819
67823
  if (!(a instanceof n))
67820
67824
  throw new TypeError("Cannot call a class as a function");
67821
67825
  }
@@ -67825,10 +67829,10 @@ function bp(a, n) {
67825
67829
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(a, o.key, o);
67826
67830
  }
67827
67831
  }
67828
- function Dh(a, n, r) {
67832
+ function Th(a, n, r) {
67829
67833
  return n && bp(a.prototype, n), r && bp(a, r), Object.defineProperty(a, "prototype", { writable: !1 }), a;
67830
67834
  }
67831
- function Ih(a, n) {
67835
+ function Dh(a, n) {
67832
67836
  if (typeof n != "function" && n !== null)
67833
67837
  throw new TypeError("Super expression must either be null or a function");
67834
67838
  a.prototype = Object.create(n && n.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), n && Pi(a, n);
@@ -67838,8 +67842,8 @@ function Pi(a, n) {
67838
67842
  return o.__proto__ = l, o;
67839
67843
  }, Pi(a, n);
67840
67844
  }
67841
- function kh(a) {
67842
- var n = qh();
67845
+ function Ih(a) {
67846
+ var n = Ah();
67843
67847
  return function() {
67844
67848
  var o = rn(a), l;
67845
67849
  if (n) {
@@ -67847,10 +67851,10 @@ function kh(a) {
67847
67851
  l = Reflect.construct(o, arguments, c);
67848
67852
  } else
67849
67853
  l = o.apply(this, arguments);
67850
- return Ah(this, l);
67854
+ return kh(this, l);
67851
67855
  };
67852
67856
  }
67853
- function Ah(a, n) {
67857
+ function kh(a, n) {
67854
67858
  if (n && (Mi(n) === "object" || typeof n == "function"))
67855
67859
  return n;
67856
67860
  if (n !== void 0)
@@ -67862,7 +67866,7 @@ function $p(a) {
67862
67866
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
67863
67867
  return a;
67864
67868
  }
67865
- function qh() {
67869
+ function Ah() {
67866
67870
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
67867
67871
  return !1;
67868
67872
  if (typeof Proxy == "function")
@@ -67883,24 +67887,24 @@ function Wi(a, n, r) {
67883
67887
  return n in a ? Object.defineProperty(a, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : a[n] = r, a;
67884
67888
  }
67885
67889
  var Hp = /* @__PURE__ */ function(a) {
67886
- Ih(r, a);
67887
- var n = kh(r);
67890
+ Dh(r, a);
67891
+ var n = Ih(r);
67888
67892
  function r() {
67889
67893
  var o;
67890
- Th(this, r);
67894
+ vh(this, r);
67891
67895
  for (var l = arguments.length, c = new Array(l), m = 0; m < l; m++)
67892
67896
  c[m] = arguments[m];
67893
67897
  return o = n.call.apply(n, [this].concat(c)), Wi($p(o), "onClick", function(_) {
67894
- var g = o.props, b = g.text, h = g.onCopy, T = g.children, M = g.options, F = Xa.default.Children.only(T), P = (0, xh.default)(b, M);
67898
+ var g = o.props, b = g.text, h = g.onCopy, T = g.children, M = g.options, F = Xa.default.Children.only(T), P = (0, bh.default)(b, M);
67895
67899
  h && h(b, P), F && F.props && typeof F.props.onClick == "function" && F.props.onClick(_);
67896
67900
  }), o;
67897
67901
  }
67898
- return Dh(r, [{
67902
+ return Th(r, [{
67899
67903
  key: "render",
67900
67904
  value: function() {
67901
67905
  var l = this.props;
67902
67906
  l.text, l.onCopy, l.options;
67903
- var c = l.children, m = wh(l, hh), _ = Xa.default.Children.only(c);
67907
+ var c = l.children, m = hh(l, xh), _ = Xa.default.Children.only(c);
67904
67908
  return /* @__PURE__ */ Xa.default.cloneElement(_, gp(gp({}, m), {}, {
67905
67909
  onClick: this.onClick
67906
67910
  }));
@@ -67912,11 +67916,11 @@ Wi(Hp, "defaultProps", {
67912
67916
  onCopy: void 0,
67913
67917
  options: void 0
67914
67918
  });
67915
- var Ch = nn, Oi = Ch.CopyToClipboard;
67919
+ var qh = nn, Oi = qh.CopyToClipboard;
67916
67920
  Oi.CopyToClipboard = Oi;
67917
- var zh = Oi;
67918
- const Ci = /* @__PURE__ */ ab(zh);
67919
- async function Eh(a, n = 0) {
67921
+ var Ch = Oi;
67922
+ const Ci = /* @__PURE__ */ rb(Ch);
67923
+ async function zh(a, n = 0) {
67920
67924
  const r = a[n];
67921
67925
  if (!r)
67922
67926
  return;
@@ -67956,9 +67960,9 @@ async function Eh(a, n = 0) {
67956
67960
  label: `${H} (${j})`,
67957
67961
  desc: G && Ss(G)
67958
67962
  };
67959
- })), b && (P.seeAlso = b.map((N) => Nh(N))), P;
67963
+ })), b && (P.seeAlso = b.map((N) => Eh(N))), P;
67960
67964
  }
67961
- function Nh(a) {
67965
+ function Eh(a) {
67962
67966
  const r = /\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(a);
67963
67967
  if (r) {
67964
67968
  const [o, l, c] = r;
@@ -67972,7 +67976,7 @@ function Ss(a) {
67972
67976
  const n = /\*\*([^\*]+)\*\*/g, r = /\`([^\`]+)\`/g, o = /\[([^\[\]]+)\]\(([^\(\)]+)\)/g;
67973
67977
  return a.replace(n, (l, c) => `<strong>${c}</strong>`).replace(r, (l, c) => `<code>${c}</code>`).replace(o, (l, c, m) => `<a ${m.startsWith("#") ? `data-name="${c}"` : 'target="_blank"'} class="manual-content-text-link" href="${m}">${c}</a>`);
67974
67978
  }
67975
- function Sh(a) {
67979
+ function Nh(a) {
67976
67980
  var o;
67977
67981
  const n = [], r = [];
67978
67982
  for (const l of Br) {
@@ -68107,7 +68111,7 @@ function Sh(a) {
68107
68111
  contentList: r
68108
68112
  };
68109
68113
  }
68110
- const Lh = (a) => {
68114
+ const Sh = (a) => {
68111
68115
  var j;
68112
68116
  const { group: n, itemKey: r, onItemClick: o, currentIndex: l } = a, [c, m] = ot(), [_, g] = ot(0), [b, h] = ot("Copy code"), [T, M] = ot("Copy link");
68113
68117
  Ve(() => {
@@ -68115,7 +68119,7 @@ const Lh = (a) => {
68115
68119
  }, [r]);
68116
68120
  const F = (O) => {
68117
68121
  const I = r.replace(`${n == null ? void 0 : n.prefix}_`, ""), A = bt[n == null ? void 0 : n.key].get(I);
68118
- g(O), A && Eh(A, O).then((R) => {
68122
+ g(O), A && zh(A, O).then((R) => {
68119
68123
  m(R);
68120
68124
  });
68121
68125
  }, P = (O) => {
@@ -68164,7 +68168,7 @@ Hr.defineTheme("vs-dark", Ui);
68164
68168
  Hr.defineTheme("vs", Ki);
68165
68169
  $e.setMonarchTokensProvider(Ne, ir);
68166
68170
  $e.setLanguageConfiguration(Ne, Bi);
68167
- const Uh = ({ theme: a = "vs-dark", currentValue: n }) => {
68171
+ const Kh = ({ theme: a = "vs-dark", currentValue: n }) => {
68168
68172
  const [r, o] = ot(Br[0]), [l, c] = ot(null), [m, _] = ot(0), [g, b] = ot(""), [h, T] = ot("var_bar_index"), M = Pe(null), F = Pe(null), P = (I) => {
68169
68173
  I.key === (r == null ? void 0 : r.key) && !(r != null && r.isHidden) ? o({ ...I, isHidden: !0 }) : o(I);
68170
68174
  };
@@ -68184,7 +68188,7 @@ const Uh = ({ theme: a = "vs-dark", currentValue: n }) => {
68184
68188
  G();
68185
68189
  else {
68186
68190
  b(I.target.value);
68187
- const A = Sh(I.target.value);
68191
+ const A = Nh(I.target.value);
68188
68192
  c(A);
68189
68193
  }
68190
68194
  }, G = () => {
@@ -68214,13 +68218,13 @@ const Uh = ({ theme: a = "vs-dark", currentValue: n }) => {
68214
68218
  me.preventDefault(), N(se);
68215
68219
  }, className: `manual-group-body-item ${se === h ? "manual-group-body-item-selected" : ""}`, "data-href": se, href: `#${se}`, children: `${U}${I.prefix === "fun" ? "()" : ""}` }, se);
68216
68220
  }) })] }, I.key);
68217
- }) })] }), L.jsx("div", { ref: F, className: "manual-right manual-scroll", children: L.jsx(Lh, { currentIndex: m, group: r, itemKey: h, onItemClick: O }) })] });
68221
+ }) })] }), L.jsx("div", { ref: F, className: "manual-right manual-scroll", children: L.jsx(Sh, { currentIndex: m, group: r, itemKey: h, onItemClick: O }) })] });
68218
68222
  };
68219
68223
  export {
68220
68224
  Ls as Actions,
68221
- Uh as ReferenceManual,
68222
- Kh as TradingVueDiffEditor,
68223
- Bh as TradingVueEditor,
68225
+ Kh as ReferenceManual,
68226
+ Bh as TradingVueDiffEditor,
68227
+ Rh as TradingVueEditor,
68224
68228
  Nc as VAdjustment,
68225
68229
  Sc as VAlert,
68226
68230
  Lc as VBarmergeGaps,
@@ -68253,8 +68257,8 @@ export {
68253
68257
  Rt as VType,
68254
68258
  tp as VXloc,
68255
68259
  sp as VYloc,
68256
- Fh as parseLibrary,
68257
- ch as parseTcc,
68258
- Rh as removeScript,
68259
- ph as scriptsRun
68260
+ Oh as parseLibrary,
68261
+ lh as parseTcc,
68262
+ Fh as removeScript,
68263
+ ch as scriptsRun
68260
68264
  };