@nsshunt/stsuxvue 1.0.18 → 1.0.19
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.
- package/dist/stsuxvue.mjs +1182 -1119
- package/dist/stsuxvue.mjs.map +1 -1
- package/dist/stsuxvue.umd.js +1211 -1148
- package/dist/stsuxvue.umd.js.map +1 -1
- package/package.json +7 -7
- package/types/Views/AppView.vue.d.ts +3 -0
- package/types/Views/AppView.vue.d.ts.map +1 -0
- package/types/Views/LandingView.vue.d.ts +3 -0
- package/types/Views/LandingView.vue.d.ts.map +1 -0
- package/types/Views/UXModelNavigatorView.vue.d.ts +3 -0
- package/types/Views/UXModelNavigatorView.vue.d.ts.map +1 -0
- package/types/Views/UXModelNavigatorViewSingle.vue.d.ts +3 -0
- package/types/Views/UXModelNavigatorViewSingle.vue.d.ts.map +1 -0
- package/types/commonTypes.d.ts +0 -1
- package/types/components/UXBarChart.vue.d.ts.map +1 -1
- package/types/components/UXLineChart.vue.d.ts.map +1 -1
- package/types/components/UXModelInstrumentAgentCommon.vue.d.ts +6 -15
- package/types/components/UXModelInstrumentAgentCommon.vue.d.ts.map +1 -1
- package/types/components/UXModelInstrumentServiceCommon.vue.d.ts +6 -15
- package/types/components/UXModelInstrumentServiceCommon.vue.d.ts.map +1 -1
- package/types/components/UXModelInstrumentServiceSmall.vue.d.ts +6 -15
- package/types/components/UXModelInstrumentServiceSmall.vue.d.ts.map +1 -1
- package/types/components/UXModelNavigator.vue.d.ts +4 -14
- package/types/components/UXModelNavigator.vue.d.ts.map +1 -1
- package/types/components/UXModelNode.vue.d.ts +6 -15
- package/types/components/UXModelNode.vue.d.ts.map +1 -1
- package/types/components/UXMultiBarChart.vue.d.ts +4 -14
- package/types/components/UXMultiBarChart.vue.d.ts.map +1 -1
- package/types/components/UXRadialChart.vue.d.ts +4 -13
- package/types/components/UXRadialChart.vue.d.ts.map +1 -1
- package/types/components/UXTestForm.vue.d.ts +5 -27
- package/types/components/UXTestForm.vue.d.ts.map +1 -1
- package/types/plugins/observabilitySubscriberManager.d.ts +0 -1
- package/types/plugins/vuetify.d.ts +0 -1
- package/types/stores/modelStore.d.ts +0 -1
- /package/dist/{style.css → stsuxvue.css} +0 -0
package/dist/stsuxvue.mjs
CHANGED
|
@@ -525,7 +525,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
527
|
});
|
|
528
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
529
528
|
function getDefaultExportFromCjs(x) {
|
|
530
529
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
531
530
|
}
|
|
@@ -2017,7 +2016,7 @@ const raemptyv = "⦳";
|
|
|
2017
2016
|
const rang = "⟩";
|
|
2018
2017
|
const Rang = "⟫";
|
|
2019
2018
|
const rangd = "⦒";
|
|
2020
|
-
const range
|
|
2019
|
+
const range = "⦥";
|
|
2021
2020
|
const rangle = "⟩";
|
|
2022
2021
|
const raquo$1 = "»";
|
|
2023
2022
|
const rarrap = "⥵";
|
|
@@ -4143,7 +4142,7 @@ const require$$1$1 = {
|
|
|
4143
4142
|
rang,
|
|
4144
4143
|
Rang,
|
|
4145
4144
|
rangd,
|
|
4146
|
-
range
|
|
4145
|
+
range,
|
|
4147
4146
|
rangle,
|
|
4148
4147
|
raquo: raquo$1,
|
|
4149
4148
|
rarrap,
|
|
@@ -5038,724 +5037,756 @@ const require$$0 = {
|
|
|
5038
5037
|
"158": 382,
|
|
5039
5038
|
"159": 376
|
|
5040
5039
|
};
|
|
5041
|
-
var
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
var
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
codePoint
|
|
5040
|
+
var hasRequiredDecode_codepoint;
|
|
5041
|
+
function requireDecode_codepoint() {
|
|
5042
|
+
if (hasRequiredDecode_codepoint) return decode_codepoint;
|
|
5043
|
+
hasRequiredDecode_codepoint = 1;
|
|
5044
|
+
var __importDefault = decode_codepoint && decode_codepoint.__importDefault || function(mod) {
|
|
5045
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
5046
|
+
};
|
|
5047
|
+
Object.defineProperty(decode_codepoint, "__esModule", { value: true });
|
|
5048
|
+
var decode_json_1 = __importDefault(require$$0);
|
|
5049
|
+
var fromCodePoint = (
|
|
5050
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
5051
|
+
String.fromCodePoint || function(codePoint) {
|
|
5052
|
+
var output = "";
|
|
5053
|
+
if (codePoint > 65535) {
|
|
5054
|
+
codePoint -= 65536;
|
|
5055
|
+
output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296);
|
|
5056
|
+
codePoint = 56320 | codePoint & 1023;
|
|
5057
|
+
}
|
|
5058
|
+
output += String.fromCharCode(codePoint);
|
|
5059
|
+
return output;
|
|
5060
|
+
}
|
|
5061
|
+
);
|
|
5062
|
+
function decodeCodePoint(codePoint) {
|
|
5063
|
+
if (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) {
|
|
5064
|
+
return "�";
|
|
5065
|
+
}
|
|
5066
|
+
if (codePoint in decode_json_1.default) {
|
|
5067
|
+
codePoint = decode_json_1.default[codePoint];
|
|
5068
|
+
}
|
|
5069
|
+
return fromCodePoint(codePoint);
|
|
5065
5070
|
}
|
|
5066
|
-
|
|
5071
|
+
decode_codepoint.default = decodeCodePoint;
|
|
5072
|
+
return decode_codepoint;
|
|
5067
5073
|
}
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
var entities_json_1$1 = __importDefault$1(require$$1$1);
|
|
5075
|
-
var legacy_json_1 = __importDefault$1(require$$1);
|
|
5076
|
-
var xml_json_1$1 = __importDefault$1(require$$0$1);
|
|
5077
|
-
var decode_codepoint_1 = __importDefault$1(decode_codepoint);
|
|
5078
|
-
var strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;
|
|
5079
|
-
decode.decodeXML = getStrictDecoder(xml_json_1$1.default);
|
|
5080
|
-
decode.decodeHTMLStrict = getStrictDecoder(entities_json_1$1.default);
|
|
5081
|
-
function getStrictDecoder(map2) {
|
|
5082
|
-
var replace = getReplacer(map2);
|
|
5083
|
-
return function(str) {
|
|
5084
|
-
return String(str).replace(strictEntityRe, replace);
|
|
5074
|
+
var hasRequiredDecode;
|
|
5075
|
+
function requireDecode() {
|
|
5076
|
+
if (hasRequiredDecode) return decode;
|
|
5077
|
+
hasRequiredDecode = 1;
|
|
5078
|
+
var __importDefault = decode && decode.__importDefault || function(mod) {
|
|
5079
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
5085
5080
|
};
|
|
5086
|
-
}
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
var
|
|
5092
|
-
var
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
}
|
|
5100
|
-
}
|
|
5101
|
-
var re = new RegExp("&(?:" + keys.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g");
|
|
5102
|
-
var replace = getReplacer(entities_json_1$1.default);
|
|
5103
|
-
function replacer(str) {
|
|
5104
|
-
if (str.substr(-1) !== ";")
|
|
5105
|
-
str += ";";
|
|
5106
|
-
return replace(str);
|
|
5081
|
+
Object.defineProperty(decode, "__esModule", { value: true });
|
|
5082
|
+
decode.decodeHTML = decode.decodeHTMLStrict = decode.decodeXML = void 0;
|
|
5083
|
+
var entities_json_1 = __importDefault(require$$1$1);
|
|
5084
|
+
var legacy_json_1 = __importDefault(require$$1);
|
|
5085
|
+
var xml_json_1 = __importDefault(require$$0$1);
|
|
5086
|
+
var decode_codepoint_1 = __importDefault(/* @__PURE__ */ requireDecode_codepoint());
|
|
5087
|
+
var strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;
|
|
5088
|
+
decode.decodeXML = getStrictDecoder(xml_json_1.default);
|
|
5089
|
+
decode.decodeHTMLStrict = getStrictDecoder(entities_json_1.default);
|
|
5090
|
+
function getStrictDecoder(map2) {
|
|
5091
|
+
var replace = getReplacer(map2);
|
|
5092
|
+
return function(str) {
|
|
5093
|
+
return String(str).replace(strictEntityRe, replace);
|
|
5094
|
+
};
|
|
5107
5095
|
}
|
|
5108
|
-
|
|
5109
|
-
return
|
|
5096
|
+
var sorter = function(a, b) {
|
|
5097
|
+
return a < b ? 1 : -1;
|
|
5110
5098
|
};
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5099
|
+
decode.decodeHTML = function() {
|
|
5100
|
+
var legacy = Object.keys(legacy_json_1.default).sort(sorter);
|
|
5101
|
+
var keys = Object.keys(entities_json_1.default).sort(sorter);
|
|
5102
|
+
for (var i = 0, j = 0; i < keys.length; i++) {
|
|
5103
|
+
if (legacy[j] === keys[i]) {
|
|
5104
|
+
keys[i] += ";?";
|
|
5105
|
+
j++;
|
|
5106
|
+
} else {
|
|
5107
|
+
keys[i] += ";";
|
|
5118
5108
|
}
|
|
5119
|
-
return decode_codepoint_1.default(parseInt(str.substr(2), 10));
|
|
5120
5109
|
}
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
};
|
|
5128
|
-
Object.defineProperty(encode, "__esModule", { value: true });
|
|
5129
|
-
encode.escapeUTF8 = encode.escape = encode.encodeNonAsciiHTML = encode.encodeHTML = encode.encodeXML = void 0;
|
|
5130
|
-
var xml_json_1 = __importDefault(require$$0$1);
|
|
5131
|
-
var inverseXML = getInverseObj(xml_json_1.default);
|
|
5132
|
-
var xmlReplacer = getInverseReplacer(inverseXML);
|
|
5133
|
-
encode.encodeXML = getASCIIEncoder(inverseXML);
|
|
5134
|
-
var entities_json_1 = __importDefault(require$$1$1);
|
|
5135
|
-
var inverseHTML = getInverseObj(entities_json_1.default);
|
|
5136
|
-
var htmlReplacer = getInverseReplacer(inverseHTML);
|
|
5137
|
-
encode.encodeHTML = getInverse(inverseHTML, htmlReplacer);
|
|
5138
|
-
encode.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML);
|
|
5139
|
-
function getInverseObj(obj) {
|
|
5140
|
-
return Object.keys(obj).sort().reduce(function(inverse, name) {
|
|
5141
|
-
inverse[obj[name]] = "&" + name + ";";
|
|
5142
|
-
return inverse;
|
|
5143
|
-
}, {});
|
|
5144
|
-
}
|
|
5145
|
-
function getInverseReplacer(inverse) {
|
|
5146
|
-
var single = [];
|
|
5147
|
-
var multiple = [];
|
|
5148
|
-
for (var _i = 0, _a = Object.keys(inverse); _i < _a.length; _i++) {
|
|
5149
|
-
var k = _a[_i];
|
|
5150
|
-
if (k.length === 1) {
|
|
5151
|
-
single.push("\\" + k);
|
|
5152
|
-
} else {
|
|
5153
|
-
multiple.push(k);
|
|
5110
|
+
var re = new RegExp("&(?:" + keys.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g");
|
|
5111
|
+
var replace = getReplacer(entities_json_1.default);
|
|
5112
|
+
function replacer(str) {
|
|
5113
|
+
if (str.substr(-1) !== ";")
|
|
5114
|
+
str += ";";
|
|
5115
|
+
return replace(str);
|
|
5154
5116
|
}
|
|
5117
|
+
return function(str) {
|
|
5118
|
+
return String(str).replace(re, replacer);
|
|
5119
|
+
};
|
|
5120
|
+
}();
|
|
5121
|
+
function getReplacer(map2) {
|
|
5122
|
+
return function replace(str) {
|
|
5123
|
+
if (str.charAt(1) === "#") {
|
|
5124
|
+
var secondChar = str.charAt(2);
|
|
5125
|
+
if (secondChar === "X" || secondChar === "x") {
|
|
5126
|
+
return decode_codepoint_1.default(parseInt(str.substr(3), 16));
|
|
5127
|
+
}
|
|
5128
|
+
return decode_codepoint_1.default(parseInt(str.substr(2), 10));
|
|
5129
|
+
}
|
|
5130
|
+
return map2[str.slice(1, -1)] || str;
|
|
5131
|
+
};
|
|
5155
5132
|
}
|
|
5156
|
-
|
|
5157
|
-
for (var start = 0; start < single.length - 1; start++) {
|
|
5158
|
-
var end = start;
|
|
5159
|
-
while (end < single.length - 1 && single[end].charCodeAt(1) + 1 === single[end + 1].charCodeAt(1)) {
|
|
5160
|
-
end += 1;
|
|
5161
|
-
}
|
|
5162
|
-
var count = 1 + end - start;
|
|
5163
|
-
if (count < 3)
|
|
5164
|
-
continue;
|
|
5165
|
-
single.splice(start, count, single[start] + "-" + single[end]);
|
|
5166
|
-
}
|
|
5167
|
-
multiple.unshift("[" + single.join("") + "]");
|
|
5168
|
-
return new RegExp(multiple.join("|"), "g");
|
|
5169
|
-
}
|
|
5170
|
-
var reNonASCII = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g;
|
|
5171
|
-
var getCodePoint = (
|
|
5172
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
5173
|
-
String.prototype.codePointAt != null ? (
|
|
5174
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
5175
|
-
function(str) {
|
|
5176
|
-
return str.codePointAt(0);
|
|
5177
|
-
}
|
|
5178
|
-
) : (
|
|
5179
|
-
// http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
|
|
5180
|
-
function(c) {
|
|
5181
|
-
return (c.charCodeAt(0) - 55296) * 1024 + c.charCodeAt(1) - 56320 + 65536;
|
|
5182
|
-
}
|
|
5183
|
-
)
|
|
5184
|
-
);
|
|
5185
|
-
function singleCharReplacer(c) {
|
|
5186
|
-
return "&#x" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)).toString(16).toUpperCase() + ";";
|
|
5133
|
+
return decode;
|
|
5187
5134
|
}
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
}
|
|
5195
|
-
var reEscapeChars = new RegExp(xmlReplacer.source + "|" + reNonASCII.source, "g");
|
|
5196
|
-
function escape(data) {
|
|
5197
|
-
return data.replace(reEscapeChars, singleCharReplacer);
|
|
5198
|
-
}
|
|
5199
|
-
encode.escape = escape;
|
|
5200
|
-
function escapeUTF8(data) {
|
|
5201
|
-
return data.replace(xmlReplacer, singleCharReplacer);
|
|
5202
|
-
}
|
|
5203
|
-
encode.escapeUTF8 = escapeUTF8;
|
|
5204
|
-
function getASCIIEncoder(obj) {
|
|
5205
|
-
return function(data) {
|
|
5206
|
-
return data.replace(reEscapeChars, function(c) {
|
|
5207
|
-
return obj[c] || singleCharReplacer(c);
|
|
5208
|
-
});
|
|
5135
|
+
var encode = {};
|
|
5136
|
+
var hasRequiredEncode;
|
|
5137
|
+
function requireEncode() {
|
|
5138
|
+
if (hasRequiredEncode) return encode;
|
|
5139
|
+
hasRequiredEncode = 1;
|
|
5140
|
+
var __importDefault = encode && encode.__importDefault || function(mod) {
|
|
5141
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
5209
5142
|
};
|
|
5210
|
-
}
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
var
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5143
|
+
Object.defineProperty(encode, "__esModule", { value: true });
|
|
5144
|
+
encode.escapeUTF8 = encode.escape = encode.encodeNonAsciiHTML = encode.encodeHTML = encode.encodeXML = void 0;
|
|
5145
|
+
var xml_json_1 = __importDefault(require$$0$1);
|
|
5146
|
+
var inverseXML = getInverseObj(xml_json_1.default);
|
|
5147
|
+
var xmlReplacer = getInverseReplacer(inverseXML);
|
|
5148
|
+
encode.encodeXML = getASCIIEncoder(inverseXML);
|
|
5149
|
+
var entities_json_1 = __importDefault(require$$1$1);
|
|
5150
|
+
var inverseHTML = getInverseObj(entities_json_1.default);
|
|
5151
|
+
var htmlReplacer = getInverseReplacer(inverseHTML);
|
|
5152
|
+
encode.encodeHTML = getInverse(inverseHTML, htmlReplacer);
|
|
5153
|
+
encode.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML);
|
|
5154
|
+
function getInverseObj(obj) {
|
|
5155
|
+
return Object.keys(obj).sort().reduce(function(inverse, name) {
|
|
5156
|
+
inverse[obj[name]] = "&" + name + ";";
|
|
5157
|
+
return inverse;
|
|
5158
|
+
}, {});
|
|
5222
5159
|
}
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5160
|
+
function getInverseReplacer(inverse) {
|
|
5161
|
+
var single = [];
|
|
5162
|
+
var multiple = [];
|
|
5163
|
+
for (var _i = 0, _a = Object.keys(inverse); _i < _a.length; _i++) {
|
|
5164
|
+
var k = _a[_i];
|
|
5165
|
+
if (k.length === 1) {
|
|
5166
|
+
single.push("\\" + k);
|
|
5167
|
+
} else {
|
|
5168
|
+
multiple.push(k);
|
|
5169
|
+
}
|
|
5170
|
+
}
|
|
5171
|
+
single.sort();
|
|
5172
|
+
for (var start = 0; start < single.length - 1; start++) {
|
|
5173
|
+
var end = start;
|
|
5174
|
+
while (end < single.length - 1 && single[end].charCodeAt(1) + 1 === single[end + 1].charCodeAt(1)) {
|
|
5175
|
+
end += 1;
|
|
5176
|
+
}
|
|
5177
|
+
var count = 1 + end - start;
|
|
5178
|
+
if (count < 3)
|
|
5179
|
+
continue;
|
|
5180
|
+
single.splice(start, count, single[start] + "-" + single[end]);
|
|
5181
|
+
}
|
|
5182
|
+
multiple.unshift("[" + single.join("") + "]");
|
|
5183
|
+
return new RegExp(multiple.join("|"), "g");
|
|
5226
5184
|
}
|
|
5227
|
-
|
|
5228
|
-
var
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
Object.defineProperty(exports, "encodeHTML4", { enumerable: true, get: function() {
|
|
5245
|
-
return encode_2.encodeHTML;
|
|
5246
|
-
} });
|
|
5247
|
-
Object.defineProperty(exports, "encodeHTML5", { enumerable: true, get: function() {
|
|
5248
|
-
return encode_2.encodeHTML;
|
|
5249
|
-
} });
|
|
5250
|
-
var decode_2 = decode;
|
|
5251
|
-
Object.defineProperty(exports, "decodeXML", { enumerable: true, get: function() {
|
|
5252
|
-
return decode_2.decodeXML;
|
|
5253
|
-
} });
|
|
5254
|
-
Object.defineProperty(exports, "decodeHTML", { enumerable: true, get: function() {
|
|
5255
|
-
return decode_2.decodeHTML;
|
|
5256
|
-
} });
|
|
5257
|
-
Object.defineProperty(exports, "decodeHTMLStrict", { enumerable: true, get: function() {
|
|
5258
|
-
return decode_2.decodeHTMLStrict;
|
|
5259
|
-
} });
|
|
5260
|
-
Object.defineProperty(exports, "decodeHTML4", { enumerable: true, get: function() {
|
|
5261
|
-
return decode_2.decodeHTML;
|
|
5262
|
-
} });
|
|
5263
|
-
Object.defineProperty(exports, "decodeHTML5", { enumerable: true, get: function() {
|
|
5264
|
-
return decode_2.decodeHTML;
|
|
5265
|
-
} });
|
|
5266
|
-
Object.defineProperty(exports, "decodeHTML4Strict", { enumerable: true, get: function() {
|
|
5267
|
-
return decode_2.decodeHTMLStrict;
|
|
5268
|
-
} });
|
|
5269
|
-
Object.defineProperty(exports, "decodeHTML5Strict", { enumerable: true, get: function() {
|
|
5270
|
-
return decode_2.decodeHTMLStrict;
|
|
5271
|
-
} });
|
|
5272
|
-
Object.defineProperty(exports, "decodeXMLStrict", { enumerable: true, get: function() {
|
|
5273
|
-
return decode_2.decodeXML;
|
|
5274
|
-
} });
|
|
5275
|
-
})(lib);
|
|
5276
|
-
function _classCallCheck(instance, Constructor) {
|
|
5277
|
-
if (!(instance instanceof Constructor)) {
|
|
5278
|
-
throw new TypeError("Cannot call a class as a function");
|
|
5185
|
+
var reNonASCII = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g;
|
|
5186
|
+
var getCodePoint = (
|
|
5187
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
5188
|
+
String.prototype.codePointAt != null ? (
|
|
5189
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
5190
|
+
function(str) {
|
|
5191
|
+
return str.codePointAt(0);
|
|
5192
|
+
}
|
|
5193
|
+
) : (
|
|
5194
|
+
// http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
|
|
5195
|
+
function(c) {
|
|
5196
|
+
return (c.charCodeAt(0) - 55296) * 1024 + c.charCodeAt(1) - 56320 + 65536;
|
|
5197
|
+
}
|
|
5198
|
+
)
|
|
5199
|
+
);
|
|
5200
|
+
function singleCharReplacer(c) {
|
|
5201
|
+
return "&#x" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)).toString(16).toUpperCase() + ";";
|
|
5279
5202
|
}
|
|
5280
|
-
|
|
5281
|
-
function
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
5287
|
-
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
5203
|
+
function getInverse(inverse, re) {
|
|
5204
|
+
return function(data) {
|
|
5205
|
+
return data.replace(re, function(name) {
|
|
5206
|
+
return inverse[name];
|
|
5207
|
+
}).replace(reNonASCII, singleCharReplacer);
|
|
5208
|
+
};
|
|
5288
5209
|
}
|
|
5289
|
-
|
|
5290
|
-
function
|
|
5291
|
-
|
|
5292
|
-
return Constructor;
|
|
5293
|
-
}
|
|
5294
|
-
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
5295
|
-
var it2 = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
5296
|
-
if (!it2) {
|
|
5297
|
-
if (Array.isArray(o) || (it2 = _unsupportedIterableToArray(o)) || allowArrayLike) {
|
|
5298
|
-
if (it2) o = it2;
|
|
5299
|
-
var i = 0;
|
|
5300
|
-
var F = function F2() {
|
|
5301
|
-
};
|
|
5302
|
-
return { s: F, n: function n() {
|
|
5303
|
-
if (i >= o.length) return { done: true };
|
|
5304
|
-
return { done: false, value: o[i++] };
|
|
5305
|
-
}, e: function e(_e) {
|
|
5306
|
-
throw _e;
|
|
5307
|
-
}, f: F };
|
|
5308
|
-
}
|
|
5309
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5210
|
+
var reEscapeChars = new RegExp(xmlReplacer.source + "|" + reNonASCII.source, "g");
|
|
5211
|
+
function escape(data) {
|
|
5212
|
+
return data.replace(reEscapeChars, singleCharReplacer);
|
|
5310
5213
|
}
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
}, n: function n() {
|
|
5315
|
-
var step = it2.next();
|
|
5316
|
-
normalCompletion = step.done;
|
|
5317
|
-
return step;
|
|
5318
|
-
}, e: function e(_e2) {
|
|
5319
|
-
didErr = true;
|
|
5320
|
-
err = _e2;
|
|
5321
|
-
}, f: function f() {
|
|
5322
|
-
try {
|
|
5323
|
-
if (!normalCompletion && it2["return"] != null) it2["return"]();
|
|
5324
|
-
} finally {
|
|
5325
|
-
if (didErr) throw err;
|
|
5326
|
-
}
|
|
5327
|
-
} };
|
|
5328
|
-
}
|
|
5329
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
5330
|
-
if (!o) return;
|
|
5331
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
5332
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5333
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5334
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
5335
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
5336
|
-
}
|
|
5337
|
-
function _arrayLikeToArray(arr, len) {
|
|
5338
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
5339
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
5340
|
-
arr2[i] = arr[i];
|
|
5214
|
+
encode.escape = escape;
|
|
5215
|
+
function escapeUTF8(data) {
|
|
5216
|
+
return data.replace(xmlReplacer, singleCharReplacer);
|
|
5341
5217
|
}
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
bg: "#000",
|
|
5348
|
-
newline: false,
|
|
5349
|
-
escapeXML: false,
|
|
5350
|
-
stream: false,
|
|
5351
|
-
colors: getDefaultColors()
|
|
5352
|
-
};
|
|
5353
|
-
function getDefaultColors() {
|
|
5354
|
-
var colors = {
|
|
5355
|
-
0: "#000",
|
|
5356
|
-
1: "#A00",
|
|
5357
|
-
2: "#0A0",
|
|
5358
|
-
3: "#A50",
|
|
5359
|
-
4: "#00A",
|
|
5360
|
-
5: "#A0A",
|
|
5361
|
-
6: "#0AA",
|
|
5362
|
-
7: "#AAA",
|
|
5363
|
-
8: "#555",
|
|
5364
|
-
9: "#F55",
|
|
5365
|
-
10: "#5F5",
|
|
5366
|
-
11: "#FF5",
|
|
5367
|
-
12: "#55F",
|
|
5368
|
-
13: "#F5F",
|
|
5369
|
-
14: "#5FF",
|
|
5370
|
-
15: "#FFF"
|
|
5371
|
-
};
|
|
5372
|
-
range(0, 5).forEach(function(red) {
|
|
5373
|
-
range(0, 5).forEach(function(green) {
|
|
5374
|
-
range(0, 5).forEach(function(blue) {
|
|
5375
|
-
return setStyleColor(red, green, blue, colors);
|
|
5218
|
+
encode.escapeUTF8 = escapeUTF8;
|
|
5219
|
+
function getASCIIEncoder(obj) {
|
|
5220
|
+
return function(data) {
|
|
5221
|
+
return data.replace(reEscapeChars, function(c) {
|
|
5222
|
+
return obj[c] || singleCharReplacer(c);
|
|
5376
5223
|
});
|
|
5377
|
-
}
|
|
5378
|
-
});
|
|
5379
|
-
range(0, 23).forEach(function(gray) {
|
|
5380
|
-
var c = gray + 232;
|
|
5381
|
-
var l = toHexString(gray * 10 + 8);
|
|
5382
|
-
colors[c] = "#" + l + l + l;
|
|
5383
|
-
});
|
|
5384
|
-
return colors;
|
|
5385
|
-
}
|
|
5386
|
-
function setStyleColor(red, green, blue, colors) {
|
|
5387
|
-
var c = 16 + red * 36 + green * 6 + blue;
|
|
5388
|
-
var r = red > 0 ? red * 40 + 55 : 0;
|
|
5389
|
-
var g = green > 0 ? green * 40 + 55 : 0;
|
|
5390
|
-
var b = blue > 0 ? blue * 40 + 55 : 0;
|
|
5391
|
-
colors[c] = toColorHexString([r, g, b]);
|
|
5392
|
-
}
|
|
5393
|
-
function toHexString(num2) {
|
|
5394
|
-
var str = num2.toString(16);
|
|
5395
|
-
while (str.length < 2) {
|
|
5396
|
-
str = "0" + str;
|
|
5397
|
-
}
|
|
5398
|
-
return str;
|
|
5399
|
-
}
|
|
5400
|
-
function toColorHexString(ref2) {
|
|
5401
|
-
var results = [];
|
|
5402
|
-
var _iterator = _createForOfIteratorHelper(ref2), _step;
|
|
5403
|
-
try {
|
|
5404
|
-
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
5405
|
-
var r = _step.value;
|
|
5406
|
-
results.push(toHexString(r));
|
|
5407
|
-
}
|
|
5408
|
-
} catch (err) {
|
|
5409
|
-
_iterator.e(err);
|
|
5410
|
-
} finally {
|
|
5411
|
-
_iterator.f();
|
|
5412
|
-
}
|
|
5413
|
-
return "#" + results.join("");
|
|
5414
|
-
}
|
|
5415
|
-
function generateOutput(stack, token, data, options) {
|
|
5416
|
-
var result;
|
|
5417
|
-
if (token === "text") {
|
|
5418
|
-
result = pushText(data, options);
|
|
5419
|
-
} else if (token === "display") {
|
|
5420
|
-
result = handleDisplay(stack, data, options);
|
|
5421
|
-
} else if (token === "xterm256Foreground") {
|
|
5422
|
-
result = pushForegroundColor(stack, options.colors[data]);
|
|
5423
|
-
} else if (token === "xterm256Background") {
|
|
5424
|
-
result = pushBackgroundColor(stack, options.colors[data]);
|
|
5425
|
-
} else if (token === "rgb") {
|
|
5426
|
-
result = handleRgb(stack, data);
|
|
5224
|
+
};
|
|
5427
5225
|
}
|
|
5428
|
-
return
|
|
5226
|
+
return encode;
|
|
5429
5227
|
}
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5228
|
+
var hasRequiredLib;
|
|
5229
|
+
function requireLib() {
|
|
5230
|
+
if (hasRequiredLib) return lib;
|
|
5231
|
+
hasRequiredLib = 1;
|
|
5232
|
+
(function(exports) {
|
|
5233
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5234
|
+
exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.encodeHTML5 = exports.encodeHTML4 = exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = void 0;
|
|
5235
|
+
var decode_1 = /* @__PURE__ */ requireDecode();
|
|
5236
|
+
var encode_1 = /* @__PURE__ */ requireEncode();
|
|
5237
|
+
function decode2(data, level) {
|
|
5238
|
+
return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data);
|
|
5239
|
+
}
|
|
5240
|
+
exports.decode = decode2;
|
|
5241
|
+
function decodeStrict(data, level) {
|
|
5242
|
+
return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data);
|
|
5243
|
+
}
|
|
5244
|
+
exports.decodeStrict = decodeStrict;
|
|
5245
|
+
function encode2(data, level) {
|
|
5246
|
+
return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data);
|
|
5247
|
+
}
|
|
5248
|
+
exports.encode = encode2;
|
|
5249
|
+
var encode_2 = /* @__PURE__ */ requireEncode();
|
|
5250
|
+
Object.defineProperty(exports, "encodeXML", { enumerable: true, get: function() {
|
|
5251
|
+
return encode_2.encodeXML;
|
|
5252
|
+
} });
|
|
5253
|
+
Object.defineProperty(exports, "encodeHTML", { enumerable: true, get: function() {
|
|
5254
|
+
return encode_2.encodeHTML;
|
|
5255
|
+
} });
|
|
5256
|
+
Object.defineProperty(exports, "encodeNonAsciiHTML", { enumerable: true, get: function() {
|
|
5257
|
+
return encode_2.encodeNonAsciiHTML;
|
|
5258
|
+
} });
|
|
5259
|
+
Object.defineProperty(exports, "escape", { enumerable: true, get: function() {
|
|
5260
|
+
return encode_2.escape;
|
|
5261
|
+
} });
|
|
5262
|
+
Object.defineProperty(exports, "escapeUTF8", { enumerable: true, get: function() {
|
|
5263
|
+
return encode_2.escapeUTF8;
|
|
5264
|
+
} });
|
|
5265
|
+
Object.defineProperty(exports, "encodeHTML4", { enumerable: true, get: function() {
|
|
5266
|
+
return encode_2.encodeHTML;
|
|
5267
|
+
} });
|
|
5268
|
+
Object.defineProperty(exports, "encodeHTML5", { enumerable: true, get: function() {
|
|
5269
|
+
return encode_2.encodeHTML;
|
|
5270
|
+
} });
|
|
5271
|
+
var decode_2 = /* @__PURE__ */ requireDecode();
|
|
5272
|
+
Object.defineProperty(exports, "decodeXML", { enumerable: true, get: function() {
|
|
5273
|
+
return decode_2.decodeXML;
|
|
5274
|
+
} });
|
|
5275
|
+
Object.defineProperty(exports, "decodeHTML", { enumerable: true, get: function() {
|
|
5276
|
+
return decode_2.decodeHTML;
|
|
5277
|
+
} });
|
|
5278
|
+
Object.defineProperty(exports, "decodeHTMLStrict", { enumerable: true, get: function() {
|
|
5279
|
+
return decode_2.decodeHTMLStrict;
|
|
5280
|
+
} });
|
|
5281
|
+
Object.defineProperty(exports, "decodeHTML4", { enumerable: true, get: function() {
|
|
5282
|
+
return decode_2.decodeHTML;
|
|
5283
|
+
} });
|
|
5284
|
+
Object.defineProperty(exports, "decodeHTML5", { enumerable: true, get: function() {
|
|
5285
|
+
return decode_2.decodeHTML;
|
|
5286
|
+
} });
|
|
5287
|
+
Object.defineProperty(exports, "decodeHTML4Strict", { enumerable: true, get: function() {
|
|
5288
|
+
return decode_2.decodeHTMLStrict;
|
|
5289
|
+
} });
|
|
5290
|
+
Object.defineProperty(exports, "decodeHTML5Strict", { enumerable: true, get: function() {
|
|
5291
|
+
return decode_2.decodeHTMLStrict;
|
|
5292
|
+
} });
|
|
5293
|
+
Object.defineProperty(exports, "decodeXMLStrict", { enumerable: true, get: function() {
|
|
5294
|
+
return decode_2.decodeXML;
|
|
5295
|
+
} });
|
|
5296
|
+
})(lib);
|
|
5297
|
+
return lib;
|
|
5438
5298
|
}
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
},
|
|
5448
|
-
1: function _() {
|
|
5449
|
-
return pushTag(stack, "b");
|
|
5450
|
-
},
|
|
5451
|
-
3: function _() {
|
|
5452
|
-
return pushTag(stack, "i");
|
|
5453
|
-
},
|
|
5454
|
-
4: function _() {
|
|
5455
|
-
return pushTag(stack, "u");
|
|
5456
|
-
},
|
|
5457
|
-
8: function _() {
|
|
5458
|
-
return pushStyle(stack, "display:none");
|
|
5459
|
-
},
|
|
5460
|
-
9: function _() {
|
|
5461
|
-
return pushTag(stack, "strike");
|
|
5462
|
-
},
|
|
5463
|
-
22: function _() {
|
|
5464
|
-
return pushStyle(stack, "font-weight:normal;text-decoration:none;font-style:normal");
|
|
5465
|
-
},
|
|
5466
|
-
23: function _() {
|
|
5467
|
-
return closeTag(stack, "i");
|
|
5468
|
-
},
|
|
5469
|
-
24: function _() {
|
|
5470
|
-
return closeTag(stack, "u");
|
|
5471
|
-
},
|
|
5472
|
-
39: function _() {
|
|
5473
|
-
return pushForegroundColor(stack, options.fg);
|
|
5474
|
-
},
|
|
5475
|
-
49: function _() {
|
|
5476
|
-
return pushBackgroundColor(stack, options.bg);
|
|
5477
|
-
},
|
|
5478
|
-
53: function _() {
|
|
5479
|
-
return pushStyle(stack, "text-decoration:overline");
|
|
5299
|
+
var ansi_to_html;
|
|
5300
|
+
var hasRequiredAnsi_to_html;
|
|
5301
|
+
function requireAnsi_to_html() {
|
|
5302
|
+
if (hasRequiredAnsi_to_html) return ansi_to_html;
|
|
5303
|
+
hasRequiredAnsi_to_html = 1;
|
|
5304
|
+
function _classCallCheck(instance, Constructor) {
|
|
5305
|
+
if (!(instance instanceof Constructor)) {
|
|
5306
|
+
throw new TypeError("Cannot call a class as a function");
|
|
5480
5307
|
}
|
|
5481
|
-
};
|
|
5482
|
-
var result;
|
|
5483
|
-
if (codeMap[code]) {
|
|
5484
|
-
result = codeMap[code]();
|
|
5485
|
-
} else if (4 < code && code < 7) {
|
|
5486
|
-
result = pushTag(stack, "blink");
|
|
5487
|
-
} else if (29 < code && code < 38) {
|
|
5488
|
-
result = pushForegroundColor(stack, options.colors[code - 30]);
|
|
5489
|
-
} else if (39 < code && code < 48) {
|
|
5490
|
-
result = pushBackgroundColor(stack, options.colors[code - 40]);
|
|
5491
|
-
} else if (89 < code && code < 98) {
|
|
5492
|
-
result = pushForegroundColor(stack, options.colors[8 + (code - 90)]);
|
|
5493
|
-
} else if (99 < code && code < 108) {
|
|
5494
|
-
result = pushBackgroundColor(stack, options.colors[8 + (code - 100)]);
|
|
5495
|
-
}
|
|
5496
|
-
return result;
|
|
5497
|
-
}
|
|
5498
|
-
function resetStyles(stack) {
|
|
5499
|
-
var stackClone = stack.slice(0);
|
|
5500
|
-
stack.length = 0;
|
|
5501
|
-
return stackClone.reverse().map(function(tag) {
|
|
5502
|
-
return "</" + tag + ">";
|
|
5503
|
-
}).join("");
|
|
5504
|
-
}
|
|
5505
|
-
function range(low, high) {
|
|
5506
|
-
var results = [];
|
|
5507
|
-
for (var j = low; j <= high; j++) {
|
|
5508
|
-
results.push(j);
|
|
5509
5308
|
}
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
code = parseInt(code, 10);
|
|
5519
|
-
var result = null;
|
|
5520
|
-
if (code === 0) {
|
|
5521
|
-
result = "all";
|
|
5522
|
-
} else if (code === 1) {
|
|
5523
|
-
result = "bold";
|
|
5524
|
-
} else if (2 < code && code < 5) {
|
|
5525
|
-
result = "underline";
|
|
5526
|
-
} else if (4 < code && code < 7) {
|
|
5527
|
-
result = "blink";
|
|
5528
|
-
} else if (code === 8) {
|
|
5529
|
-
result = "hide";
|
|
5530
|
-
} else if (code === 9) {
|
|
5531
|
-
result = "strike";
|
|
5532
|
-
} else if (29 < code && code < 38 || code === 39 || 89 < code && code < 98) {
|
|
5533
|
-
result = "foreground-color";
|
|
5534
|
-
} else if (39 < code && code < 48 || code === 49 || 99 < code && code < 108) {
|
|
5535
|
-
result = "background-color";
|
|
5309
|
+
function _defineProperties(target2, props) {
|
|
5310
|
+
for (var i = 0; i < props.length; i++) {
|
|
5311
|
+
var descriptor = props[i];
|
|
5312
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
5313
|
+
descriptor.configurable = true;
|
|
5314
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
5315
|
+
Object.defineProperty(target2, descriptor.key, descriptor);
|
|
5316
|
+
}
|
|
5536
5317
|
}
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
if (options.escapeXML) {
|
|
5541
|
-
return entities.encodeXML(text2);
|
|
5318
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
5319
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
5320
|
+
return Constructor;
|
|
5542
5321
|
}
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
}
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
}
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
function
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5322
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
5323
|
+
var it2 = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
5324
|
+
if (!it2) {
|
|
5325
|
+
if (Array.isArray(o) || (it2 = _unsupportedIterableToArray(o)) || allowArrayLike) {
|
|
5326
|
+
if (it2) o = it2;
|
|
5327
|
+
var i = 0;
|
|
5328
|
+
var F = function F2() {
|
|
5329
|
+
};
|
|
5330
|
+
return { s: F, n: function n() {
|
|
5331
|
+
if (i >= o.length) return { done: true };
|
|
5332
|
+
return { done: false, value: o[i++] };
|
|
5333
|
+
}, e: function e(_e) {
|
|
5334
|
+
throw _e;
|
|
5335
|
+
}, f: F };
|
|
5336
|
+
}
|
|
5337
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5338
|
+
}
|
|
5339
|
+
var normalCompletion = true, didErr = false, err;
|
|
5340
|
+
return { s: function s() {
|
|
5341
|
+
it2 = it2.call(o);
|
|
5342
|
+
}, n: function n() {
|
|
5343
|
+
var step = it2.next();
|
|
5344
|
+
normalCompletion = step.done;
|
|
5345
|
+
return step;
|
|
5346
|
+
}, e: function e(_e2) {
|
|
5347
|
+
didErr = true;
|
|
5348
|
+
err = _e2;
|
|
5349
|
+
}, f: function f() {
|
|
5350
|
+
try {
|
|
5351
|
+
if (!normalCompletion && it2["return"] != null) it2["return"]();
|
|
5352
|
+
} finally {
|
|
5353
|
+
if (didErr) throw err;
|
|
5354
|
+
}
|
|
5355
|
+
} };
|
|
5565
5356
|
}
|
|
5566
|
-
|
|
5567
|
-
|
|
5357
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
5358
|
+
if (!o) return;
|
|
5359
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
5360
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5361
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5362
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
5363
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
5568
5364
|
}
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
return
|
|
5365
|
+
function _arrayLikeToArray(arr, len) {
|
|
5366
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
5367
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
5368
|
+
arr2[i] = arr[i];
|
|
5369
|
+
}
|
|
5370
|
+
return arr2;
|
|
5575
5371
|
}
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5372
|
+
var entities = /* @__PURE__ */ requireLib();
|
|
5373
|
+
var defaults = {
|
|
5374
|
+
fg: "#FFF",
|
|
5375
|
+
bg: "#000",
|
|
5376
|
+
newline: false,
|
|
5377
|
+
escapeXML: false,
|
|
5378
|
+
stream: false,
|
|
5379
|
+
colors: getDefaultColors()
|
|
5380
|
+
};
|
|
5381
|
+
function getDefaultColors() {
|
|
5382
|
+
var colors = {
|
|
5383
|
+
0: "#000",
|
|
5384
|
+
1: "#A00",
|
|
5385
|
+
2: "#0A0",
|
|
5386
|
+
3: "#A50",
|
|
5387
|
+
4: "#00A",
|
|
5388
|
+
5: "#A0A",
|
|
5389
|
+
6: "#0AA",
|
|
5390
|
+
7: "#AAA",
|
|
5391
|
+
8: "#555",
|
|
5392
|
+
9: "#F55",
|
|
5393
|
+
10: "#5F5",
|
|
5394
|
+
11: "#FF5",
|
|
5395
|
+
12: "#55F",
|
|
5396
|
+
13: "#F5F",
|
|
5397
|
+
14: "#5FF",
|
|
5398
|
+
15: "#FFF"
|
|
5399
|
+
};
|
|
5400
|
+
range2(0, 5).forEach(function(red) {
|
|
5401
|
+
range2(0, 5).forEach(function(green) {
|
|
5402
|
+
range2(0, 5).forEach(function(blue) {
|
|
5403
|
+
return setStyleColor(red, green, blue, colors);
|
|
5404
|
+
});
|
|
5405
|
+
});
|
|
5406
|
+
});
|
|
5407
|
+
range2(0, 23).forEach(function(gray) {
|
|
5408
|
+
var c = gray + 232;
|
|
5409
|
+
var l = toHexString(gray * 10 + 8);
|
|
5410
|
+
colors[c] = "#" + l + l + l;
|
|
5411
|
+
});
|
|
5412
|
+
return colors;
|
|
5579
5413
|
}
|
|
5580
|
-
function
|
|
5581
|
-
|
|
5582
|
-
|
|
5414
|
+
function setStyleColor(red, green, blue, colors) {
|
|
5415
|
+
var c = 16 + red * 36 + green * 6 + blue;
|
|
5416
|
+
var r = red > 0 ? red * 40 + 55 : 0;
|
|
5417
|
+
var g = green > 0 ? green * 40 + 55 : 0;
|
|
5418
|
+
var b = blue > 0 ? blue * 40 + 55 : 0;
|
|
5419
|
+
colors[c] = toColorHexString([r, g, b]);
|
|
5583
5420
|
}
|
|
5584
|
-
function
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
callback("text", m);
|
|
5421
|
+
function toHexString(num2) {
|
|
5422
|
+
var str = num2.toString(16);
|
|
5423
|
+
while (str.length < 2) {
|
|
5424
|
+
str = "0" + str;
|
|
5589
5425
|
}
|
|
5590
|
-
return
|
|
5426
|
+
return str;
|
|
5591
5427
|
}
|
|
5592
|
-
function
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
g1 = "0";
|
|
5596
|
-
}
|
|
5597
|
-
g1 = g1.trimRight(";").split(";");
|
|
5598
|
-
var _iterator2 = _createForOfIteratorHelper(g1), _step2;
|
|
5428
|
+
function toColorHexString(ref2) {
|
|
5429
|
+
var results = [];
|
|
5430
|
+
var _iterator = _createForOfIteratorHelper(ref2), _step;
|
|
5599
5431
|
try {
|
|
5600
|
-
for (
|
|
5601
|
-
var
|
|
5602
|
-
|
|
5432
|
+
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
5433
|
+
var r = _step.value;
|
|
5434
|
+
results.push(toHexString(r));
|
|
5603
5435
|
}
|
|
5604
5436
|
} catch (err) {
|
|
5605
|
-
|
|
5437
|
+
_iterator.e(err);
|
|
5606
5438
|
} finally {
|
|
5607
|
-
|
|
5439
|
+
_iterator.f();
|
|
5608
5440
|
}
|
|
5609
|
-
return "";
|
|
5441
|
+
return "#" + results.join("");
|
|
5610
5442
|
}
|
|
5611
|
-
function
|
|
5612
|
-
|
|
5613
|
-
|
|
5443
|
+
function generateOutput(stack, token, data, options) {
|
|
5444
|
+
var result;
|
|
5445
|
+
if (token === "text") {
|
|
5446
|
+
result = pushText(data, options);
|
|
5447
|
+
} else if (token === "display") {
|
|
5448
|
+
result = handleDisplay(stack, data, options);
|
|
5449
|
+
} else if (token === "xterm256Foreground") {
|
|
5450
|
+
result = pushForegroundColor(stack, options.colors[data]);
|
|
5451
|
+
} else if (token === "xterm256Background") {
|
|
5452
|
+
result = pushBackgroundColor(stack, options.colors[data]);
|
|
5453
|
+
} else if (token === "rgb") {
|
|
5454
|
+
result = handleRgb(stack, data);
|
|
5455
|
+
}
|
|
5456
|
+
return result;
|
|
5614
5457
|
}
|
|
5615
|
-
function
|
|
5616
|
-
|
|
5617
|
-
|
|
5458
|
+
function handleRgb(stack, data) {
|
|
5459
|
+
data = data.substring(2).slice(0, -1);
|
|
5460
|
+
var operation = +data.substr(0, 2);
|
|
5461
|
+
var color = data.substring(5).split(";");
|
|
5462
|
+
var rgb = color.map(function(value) {
|
|
5463
|
+
return ("0" + Number(value).toString(16)).substr(-2);
|
|
5464
|
+
}).join("");
|
|
5465
|
+
return pushStyle(stack, (operation === 38 ? "color:#" : "background-color:#") + rgb);
|
|
5618
5466
|
}
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5467
|
+
function handleDisplay(stack, code, options) {
|
|
5468
|
+
code = parseInt(code, 10);
|
|
5469
|
+
var codeMap = {
|
|
5470
|
+
"-1": function _() {
|
|
5471
|
+
return "<br/>";
|
|
5472
|
+
},
|
|
5473
|
+
0: function _() {
|
|
5474
|
+
return stack.length && resetStyles(stack);
|
|
5475
|
+
},
|
|
5476
|
+
1: function _() {
|
|
5477
|
+
return pushTag(stack, "b");
|
|
5478
|
+
},
|
|
5479
|
+
3: function _() {
|
|
5480
|
+
return pushTag(stack, "i");
|
|
5481
|
+
},
|
|
5482
|
+
4: function _() {
|
|
5483
|
+
return pushTag(stack, "u");
|
|
5484
|
+
},
|
|
5485
|
+
8: function _() {
|
|
5486
|
+
return pushStyle(stack, "display:none");
|
|
5487
|
+
},
|
|
5488
|
+
9: function _() {
|
|
5489
|
+
return pushTag(stack, "strike");
|
|
5490
|
+
},
|
|
5491
|
+
22: function _() {
|
|
5492
|
+
return pushStyle(stack, "font-weight:normal;text-decoration:none;font-style:normal");
|
|
5493
|
+
},
|
|
5494
|
+
23: function _() {
|
|
5495
|
+
return closeTag(stack, "i");
|
|
5496
|
+
},
|
|
5497
|
+
24: function _() {
|
|
5498
|
+
return closeTag(stack, "u");
|
|
5499
|
+
},
|
|
5500
|
+
39: function _() {
|
|
5501
|
+
return pushForegroundColor(stack, options.fg);
|
|
5502
|
+
},
|
|
5503
|
+
49: function _() {
|
|
5504
|
+
return pushBackgroundColor(stack, options.bg);
|
|
5505
|
+
},
|
|
5506
|
+
53: function _() {
|
|
5507
|
+
return pushStyle(stack, "text-decoration:overline");
|
|
5508
|
+
}
|
|
5509
|
+
};
|
|
5510
|
+
var result;
|
|
5511
|
+
if (codeMap[code]) {
|
|
5512
|
+
result = codeMap[code]();
|
|
5513
|
+
} else if (4 < code && code < 7) {
|
|
5514
|
+
result = pushTag(stack, "blink");
|
|
5515
|
+
} else if (29 < code && code < 38) {
|
|
5516
|
+
result = pushForegroundColor(stack, options.colors[code - 30]);
|
|
5517
|
+
} else if (39 < code && code < 48) {
|
|
5518
|
+
result = pushBackgroundColor(stack, options.colors[code - 40]);
|
|
5519
|
+
} else if (89 < code && code < 98) {
|
|
5520
|
+
result = pushForegroundColor(stack, options.colors[8 + (code - 90)]);
|
|
5521
|
+
} else if (99 < code && code < 108) {
|
|
5522
|
+
result = pushBackgroundColor(stack, options.colors[8 + (code - 100)]);
|
|
5523
|
+
}
|
|
5524
|
+
return result;
|
|
5525
|
+
}
|
|
5526
|
+
function resetStyles(stack) {
|
|
5527
|
+
var stackClone = stack.slice(0);
|
|
5528
|
+
stack.length = 0;
|
|
5529
|
+
return stackClone.reverse().map(function(tag) {
|
|
5530
|
+
return "</" + tag + ">";
|
|
5531
|
+
}).join("");
|
|
5532
|
+
}
|
|
5533
|
+
function range2(low, high) {
|
|
5534
|
+
var results = [];
|
|
5535
|
+
for (var j = low; j <= high; j++) {
|
|
5536
|
+
results.push(j);
|
|
5682
5537
|
}
|
|
5683
|
-
|
|
5684
|
-
text2 = text2.replace(handler2.pattern, handler2.sub);
|
|
5538
|
+
return results;
|
|
5685
5539
|
}
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
var handler = tokens[i];
|
|
5691
|
-
process2(handler, i);
|
|
5692
|
-
if (text2.length !== length) {
|
|
5693
|
-
length = text2.length;
|
|
5694
|
-
continue outer;
|
|
5695
|
-
}
|
|
5696
|
-
}
|
|
5697
|
-
if (text2.length === length) {
|
|
5698
|
-
break;
|
|
5699
|
-
}
|
|
5700
|
-
results1.push(0);
|
|
5701
|
-
length = text2.length;
|
|
5540
|
+
function notCategory(category) {
|
|
5541
|
+
return function(e) {
|
|
5542
|
+
return (category === null || e.category !== category) && category !== "all";
|
|
5543
|
+
};
|
|
5702
5544
|
}
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
})
|
|
5545
|
+
function categoryForCode(code) {
|
|
5546
|
+
code = parseInt(code, 10);
|
|
5547
|
+
var result = null;
|
|
5548
|
+
if (code === 0) {
|
|
5549
|
+
result = "all";
|
|
5550
|
+
} else if (code === 1) {
|
|
5551
|
+
result = "bold";
|
|
5552
|
+
} else if (2 < code && code < 5) {
|
|
5553
|
+
result = "underline";
|
|
5554
|
+
} else if (4 < code && code < 7) {
|
|
5555
|
+
result = "blink";
|
|
5556
|
+
} else if (code === 8) {
|
|
5557
|
+
result = "hide";
|
|
5558
|
+
} else if (code === 9) {
|
|
5559
|
+
result = "strike";
|
|
5560
|
+
} else if (29 < code && code < 38 || code === 39 || 89 < code && code < 98) {
|
|
5561
|
+
result = "foreground-color";
|
|
5562
|
+
} else if (39 < code && code < 48 || code === 49 || 99 < code && code < 108) {
|
|
5563
|
+
result = "background-color";
|
|
5564
|
+
}
|
|
5565
|
+
return result;
|
|
5713
5566
|
}
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
options = options || {};
|
|
5720
|
-
if (options.colors) {
|
|
5721
|
-
options.colors = Object.assign({}, defaults.colors, options.colors);
|
|
5722
|
-
}
|
|
5723
|
-
this.options = Object.assign({}, defaults, options);
|
|
5724
|
-
this.stack = [];
|
|
5725
|
-
this.stickyStack = [];
|
|
5567
|
+
function pushText(text2, options) {
|
|
5568
|
+
if (options.escapeXML) {
|
|
5569
|
+
return entities.encodeXML(text2);
|
|
5570
|
+
}
|
|
5571
|
+
return text2;
|
|
5726
5572
|
}
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5573
|
+
function pushTag(stack, tag, style) {
|
|
5574
|
+
if (!style) {
|
|
5575
|
+
style = "";
|
|
5576
|
+
}
|
|
5577
|
+
stack.push(tag);
|
|
5578
|
+
return "<".concat(tag).concat(style ? ' style="'.concat(style, '"') : "", ">");
|
|
5579
|
+
}
|
|
5580
|
+
function pushStyle(stack, style) {
|
|
5581
|
+
return pushTag(stack, "span", style);
|
|
5582
|
+
}
|
|
5583
|
+
function pushForegroundColor(stack, color) {
|
|
5584
|
+
return pushTag(stack, "span", "color:" + color);
|
|
5585
|
+
}
|
|
5586
|
+
function pushBackgroundColor(stack, color) {
|
|
5587
|
+
return pushTag(stack, "span", "background-color:" + color);
|
|
5588
|
+
}
|
|
5589
|
+
function closeTag(stack, style) {
|
|
5590
|
+
var last;
|
|
5591
|
+
if (stack.slice(-1)[0] === style) {
|
|
5592
|
+
last = stack.pop();
|
|
5593
|
+
}
|
|
5594
|
+
if (last) {
|
|
5595
|
+
return "</" + style + ">";
|
|
5596
|
+
}
|
|
5597
|
+
}
|
|
5598
|
+
function tokenize(text2, options, callback) {
|
|
5599
|
+
var ansiMatch = false;
|
|
5600
|
+
var ansiHandler = 3;
|
|
5601
|
+
function remove() {
|
|
5602
|
+
return "";
|
|
5603
|
+
}
|
|
5604
|
+
function removeXterm256Foreground(m, g1) {
|
|
5605
|
+
callback("xterm256Foreground", g1);
|
|
5606
|
+
return "";
|
|
5607
|
+
}
|
|
5608
|
+
function removeXterm256Background(m, g1) {
|
|
5609
|
+
callback("xterm256Background", g1);
|
|
5610
|
+
return "";
|
|
5611
|
+
}
|
|
5612
|
+
function newline(m) {
|
|
5613
|
+
if (options.newline) {
|
|
5614
|
+
callback("display", -1);
|
|
5615
|
+
} else {
|
|
5616
|
+
callback("text", m);
|
|
5617
|
+
}
|
|
5618
|
+
return "";
|
|
5619
|
+
}
|
|
5620
|
+
function ansiMess(m, g1) {
|
|
5621
|
+
ansiMatch = true;
|
|
5622
|
+
if (g1.trim().length === 0) {
|
|
5623
|
+
g1 = "0";
|
|
5624
|
+
}
|
|
5625
|
+
g1 = g1.trimRight(";").split(";");
|
|
5626
|
+
var _iterator2 = _createForOfIteratorHelper(g1), _step2;
|
|
5627
|
+
try {
|
|
5628
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
|
|
5629
|
+
var g = _step2.value;
|
|
5630
|
+
callback("display", g);
|
|
5744
5631
|
}
|
|
5745
|
-
|
|
5746
|
-
|
|
5632
|
+
} catch (err) {
|
|
5633
|
+
_iterator2.e(err);
|
|
5634
|
+
} finally {
|
|
5635
|
+
_iterator2.f();
|
|
5636
|
+
}
|
|
5637
|
+
return "";
|
|
5638
|
+
}
|
|
5639
|
+
function realText(m) {
|
|
5640
|
+
callback("text", m);
|
|
5641
|
+
return "";
|
|
5642
|
+
}
|
|
5643
|
+
function rgb(m) {
|
|
5644
|
+
callback("rgb", m);
|
|
5645
|
+
return "";
|
|
5646
|
+
}
|
|
5647
|
+
var tokens = [{
|
|
5648
|
+
pattern: /^\x08+/,
|
|
5649
|
+
sub: remove
|
|
5650
|
+
}, {
|
|
5651
|
+
pattern: /^\x1b\[[012]?K/,
|
|
5652
|
+
sub: remove
|
|
5653
|
+
}, {
|
|
5654
|
+
pattern: /^\x1b\[\(B/,
|
|
5655
|
+
sub: remove
|
|
5656
|
+
}, {
|
|
5657
|
+
pattern: /^\x1b\[[34]8;2;\d+;\d+;\d+m/,
|
|
5658
|
+
sub: rgb
|
|
5659
|
+
}, {
|
|
5660
|
+
pattern: /^\x1b\[38;5;(\d+)m/,
|
|
5661
|
+
sub: removeXterm256Foreground
|
|
5662
|
+
}, {
|
|
5663
|
+
pattern: /^\x1b\[48;5;(\d+)m/,
|
|
5664
|
+
sub: removeXterm256Background
|
|
5665
|
+
}, {
|
|
5666
|
+
pattern: /^\n/,
|
|
5667
|
+
sub: newline
|
|
5668
|
+
}, {
|
|
5669
|
+
pattern: /^\r+\n/,
|
|
5670
|
+
sub: newline
|
|
5671
|
+
}, {
|
|
5672
|
+
pattern: /^\r/,
|
|
5673
|
+
sub: newline
|
|
5674
|
+
}, {
|
|
5675
|
+
pattern: /^\x1b\[((?:\d{1,3};?)+|)m/,
|
|
5676
|
+
sub: ansiMess
|
|
5677
|
+
}, {
|
|
5678
|
+
// CSI n J
|
|
5679
|
+
// ED - Erase in Display Clears part of the screen.
|
|
5680
|
+
// If n is 0 (or missing), clear from cursor to end of screen.
|
|
5681
|
+
// If n is 1, clear from cursor to beginning of the screen.
|
|
5682
|
+
// If n is 2, clear entire screen (and moves cursor to upper left on DOS ANSI.SYS).
|
|
5683
|
+
// If n is 3, clear entire screen and delete all lines saved in the scrollback buffer
|
|
5684
|
+
// (this feature was added for xterm and is supported by other terminal applications).
|
|
5685
|
+
pattern: /^\x1b\[\d?J/,
|
|
5686
|
+
sub: remove
|
|
5687
|
+
}, {
|
|
5688
|
+
// CSI n ; m f
|
|
5689
|
+
// HVP - Horizontal Vertical Position Same as CUP
|
|
5690
|
+
pattern: /^\x1b\[\d{0,3};\d{0,3}f/,
|
|
5691
|
+
sub: remove
|
|
5692
|
+
}, {
|
|
5693
|
+
// catch-all for CSI sequences?
|
|
5694
|
+
pattern: /^\x1b\[?[\d;]{0,3}/,
|
|
5695
|
+
sub: remove
|
|
5696
|
+
}, {
|
|
5697
|
+
/**
|
|
5698
|
+
* extracts real text - not containing:
|
|
5699
|
+
* - `\x1b' - ESC - escape (Ascii 27)
|
|
5700
|
+
* - '\x08' - BS - backspace (Ascii 8)
|
|
5701
|
+
* - `\n` - Newline - linefeed (LF) (ascii 10)
|
|
5702
|
+
* - `\r` - Windows Carriage Return (CR)
|
|
5703
|
+
*/
|
|
5704
|
+
pattern: /^(([^\x1b\x08\r\n])+)/,
|
|
5705
|
+
sub: realText
|
|
5706
|
+
}];
|
|
5707
|
+
function process2(handler2, i2) {
|
|
5708
|
+
if (i2 > ansiHandler && ansiMatch) {
|
|
5709
|
+
return;
|
|
5710
|
+
}
|
|
5711
|
+
ansiMatch = false;
|
|
5712
|
+
text2 = text2.replace(handler2.pattern, handler2.sub);
|
|
5713
|
+
}
|
|
5714
|
+
var results1 = [];
|
|
5715
|
+
var _text = text2, length = _text.length;
|
|
5716
|
+
outer: while (length > 0) {
|
|
5717
|
+
for (var i = 0, o = 0, len = tokens.length; o < len; i = ++o) {
|
|
5718
|
+
var handler = tokens[i];
|
|
5719
|
+
process2(handler, i);
|
|
5720
|
+
if (text2.length !== length) {
|
|
5721
|
+
length = text2.length;
|
|
5722
|
+
continue outer;
|
|
5747
5723
|
}
|
|
5748
|
-
});
|
|
5749
|
-
if (stack.length) {
|
|
5750
|
-
buf.push(resetStyles(stack));
|
|
5751
5724
|
}
|
|
5752
|
-
|
|
5725
|
+
if (text2.length === length) {
|
|
5726
|
+
break;
|
|
5727
|
+
}
|
|
5728
|
+
results1.push(0);
|
|
5729
|
+
length = text2.length;
|
|
5753
5730
|
}
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5731
|
+
return results1;
|
|
5732
|
+
}
|
|
5733
|
+
function updateStickyStack(stickyStack, token, data) {
|
|
5734
|
+
if (token !== "text") {
|
|
5735
|
+
stickyStack = stickyStack.filter(notCategory(categoryForCode(data)));
|
|
5736
|
+
stickyStack.push({
|
|
5737
|
+
token,
|
|
5738
|
+
data,
|
|
5739
|
+
category: categoryForCode(data)
|
|
5740
|
+
});
|
|
5741
|
+
}
|
|
5742
|
+
return stickyStack;
|
|
5743
|
+
}
|
|
5744
|
+
var Filter = /* @__PURE__ */ function() {
|
|
5745
|
+
function Filter2(options) {
|
|
5746
|
+
_classCallCheck(this, Filter2);
|
|
5747
|
+
options = options || {};
|
|
5748
|
+
if (options.colors) {
|
|
5749
|
+
options.colors = Object.assign({}, defaults.colors, options.colors);
|
|
5750
|
+
}
|
|
5751
|
+
this.options = Object.assign({}, defaults, options);
|
|
5752
|
+
this.stack = [];
|
|
5753
|
+
this.stickyStack = [];
|
|
5754
|
+
}
|
|
5755
|
+
_createClass(Filter2, [{
|
|
5756
|
+
key: "toHtml",
|
|
5757
|
+
value: function toHtml(input) {
|
|
5758
|
+
var _this = this;
|
|
5759
|
+
input = typeof input === "string" ? [input] : input;
|
|
5760
|
+
var stack = this.stack, options = this.options;
|
|
5761
|
+
var buf = [];
|
|
5762
|
+
this.stickyStack.forEach(function(element) {
|
|
5763
|
+
var output = generateOutput(stack, element.token, element.data, options);
|
|
5764
|
+
if (output) {
|
|
5765
|
+
buf.push(output);
|
|
5766
|
+
}
|
|
5767
|
+
});
|
|
5768
|
+
tokenize(input.join(""), options, function(token, data) {
|
|
5769
|
+
var output = generateOutput(stack, token, data, options);
|
|
5770
|
+
if (output) {
|
|
5771
|
+
buf.push(output);
|
|
5772
|
+
}
|
|
5773
|
+
if (options.stream) {
|
|
5774
|
+
_this.stickyStack = updateStickyStack(_this.stickyStack, token, data);
|
|
5775
|
+
}
|
|
5776
|
+
});
|
|
5777
|
+
if (stack.length) {
|
|
5778
|
+
buf.push(resetStyles(stack));
|
|
5779
|
+
}
|
|
5780
|
+
return buf.join("");
|
|
5781
|
+
}
|
|
5782
|
+
}]);
|
|
5783
|
+
return Filter2;
|
|
5784
|
+
}();
|
|
5785
|
+
ansi_to_html = Filter;
|
|
5786
|
+
return ansi_to_html;
|
|
5787
|
+
}
|
|
5788
|
+
var ansi_to_htmlExports = requireAnsi_to_html();
|
|
5789
|
+
const Convert = /* @__PURE__ */ getDefaultExportFromCjs(ansi_to_htmlExports);
|
|
5759
5790
|
/*! @license DOMPurify 3.2.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.2/LICENSE */
|
|
5760
5791
|
const {
|
|
5761
5792
|
entries,
|
|
@@ -6014,9 +6045,9 @@ function createDOMPurify() {
|
|
|
6014
6045
|
const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
|
|
6015
6046
|
const getParentNode = lookupGetter(ElementPrototype, "parentNode");
|
|
6016
6047
|
if (typeof HTMLTemplateElement === "function") {
|
|
6017
|
-
const
|
|
6018
|
-
if (
|
|
6019
|
-
document =
|
|
6048
|
+
const template = document.createElement("template");
|
|
6049
|
+
if (template.content && template.content.ownerDocument) {
|
|
6050
|
+
document = template.content.ownerDocument;
|
|
6020
6051
|
}
|
|
6021
6052
|
}
|
|
6022
6053
|
let trustedTypesPolicy;
|
|
@@ -7176,7 +7207,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
7176
7207
|
return target2;
|
|
7177
7208
|
};
|
|
7178
7209
|
const UXModelInstrumentAgentCommon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-c034ae06"]]);
|
|
7179
|
-
var ansiStyles
|
|
7210
|
+
var ansiStyles = { exports: {} };
|
|
7180
7211
|
var colorName;
|
|
7181
7212
|
var hasRequiredColorName;
|
|
7182
7213
|
function requireColorName() {
|
|
@@ -8139,181 +8170,200 @@ function requireColorConvert() {
|
|
|
8139
8170
|
colorConvert = convert;
|
|
8140
8171
|
return colorConvert;
|
|
8141
8172
|
}
|
|
8142
|
-
ansiStyles
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
const
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
const codes = /* @__PURE__ */ new Map();
|
|
8192
|
-
const styles2 = {
|
|
8193
|
-
modifier: {
|
|
8194
|
-
reset: [0, 0],
|
|
8195
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
8196
|
-
bold: [1, 22],
|
|
8197
|
-
dim: [2, 22],
|
|
8198
|
-
italic: [3, 23],
|
|
8199
|
-
underline: [4, 24],
|
|
8200
|
-
inverse: [7, 27],
|
|
8201
|
-
hidden: [8, 28],
|
|
8202
|
-
strikethrough: [9, 29]
|
|
8203
|
-
},
|
|
8204
|
-
color: {
|
|
8205
|
-
black: [30, 39],
|
|
8206
|
-
red: [31, 39],
|
|
8207
|
-
green: [32, 39],
|
|
8208
|
-
yellow: [33, 39],
|
|
8209
|
-
blue: [34, 39],
|
|
8210
|
-
magenta: [35, 39],
|
|
8211
|
-
cyan: [36, 39],
|
|
8212
|
-
white: [37, 39],
|
|
8213
|
-
// Bright color
|
|
8214
|
-
blackBright: [90, 39],
|
|
8215
|
-
redBright: [91, 39],
|
|
8216
|
-
greenBright: [92, 39],
|
|
8217
|
-
yellowBright: [93, 39],
|
|
8218
|
-
blueBright: [94, 39],
|
|
8219
|
-
magentaBright: [95, 39],
|
|
8220
|
-
cyanBright: [96, 39],
|
|
8221
|
-
whiteBright: [97, 39]
|
|
8222
|
-
},
|
|
8223
|
-
bgColor: {
|
|
8224
|
-
bgBlack: [40, 49],
|
|
8225
|
-
bgRed: [41, 49],
|
|
8226
|
-
bgGreen: [42, 49],
|
|
8227
|
-
bgYellow: [43, 49],
|
|
8228
|
-
bgBlue: [44, 49],
|
|
8229
|
-
bgMagenta: [45, 49],
|
|
8230
|
-
bgCyan: [46, 49],
|
|
8231
|
-
bgWhite: [47, 49],
|
|
8232
|
-
// Bright color
|
|
8233
|
-
bgBlackBright: [100, 49],
|
|
8234
|
-
bgRedBright: [101, 49],
|
|
8235
|
-
bgGreenBright: [102, 49],
|
|
8236
|
-
bgYellowBright: [103, 49],
|
|
8237
|
-
bgBlueBright: [104, 49],
|
|
8238
|
-
bgMagentaBright: [105, 49],
|
|
8239
|
-
bgCyanBright: [106, 49],
|
|
8240
|
-
bgWhiteBright: [107, 49]
|
|
8173
|
+
ansiStyles.exports;
|
|
8174
|
+
var hasRequiredAnsiStyles;
|
|
8175
|
+
function requireAnsiStyles() {
|
|
8176
|
+
if (hasRequiredAnsiStyles) return ansiStyles.exports;
|
|
8177
|
+
hasRequiredAnsiStyles = 1;
|
|
8178
|
+
(function(module) {
|
|
8179
|
+
const wrapAnsi16 = (fn, offset) => (...args) => {
|
|
8180
|
+
const code = fn(...args);
|
|
8181
|
+
return `\x1B[${code + offset}m`;
|
|
8182
|
+
};
|
|
8183
|
+
const wrapAnsi256 = (fn, offset) => (...args) => {
|
|
8184
|
+
const code = fn(...args);
|
|
8185
|
+
return `\x1B[${38 + offset};5;${code}m`;
|
|
8186
|
+
};
|
|
8187
|
+
const wrapAnsi16m = (fn, offset) => (...args) => {
|
|
8188
|
+
const rgb = fn(...args);
|
|
8189
|
+
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
8190
|
+
};
|
|
8191
|
+
const ansi2ansi = (n) => n;
|
|
8192
|
+
const rgb2rgb = (r, g, b) => [r, g, b];
|
|
8193
|
+
const setLazyProperty = (object, property, get) => {
|
|
8194
|
+
Object.defineProperty(object, property, {
|
|
8195
|
+
get: () => {
|
|
8196
|
+
const value = get();
|
|
8197
|
+
Object.defineProperty(object, property, {
|
|
8198
|
+
value,
|
|
8199
|
+
enumerable: true,
|
|
8200
|
+
configurable: true
|
|
8201
|
+
});
|
|
8202
|
+
return value;
|
|
8203
|
+
},
|
|
8204
|
+
enumerable: true,
|
|
8205
|
+
configurable: true
|
|
8206
|
+
});
|
|
8207
|
+
};
|
|
8208
|
+
let colorConvert2;
|
|
8209
|
+
const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
8210
|
+
if (colorConvert2 === void 0) {
|
|
8211
|
+
colorConvert2 = requireColorConvert();
|
|
8212
|
+
}
|
|
8213
|
+
const offset = isBackground ? 10 : 0;
|
|
8214
|
+
const styles = {};
|
|
8215
|
+
for (const [sourceSpace, suite] of Object.entries(colorConvert2)) {
|
|
8216
|
+
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
8217
|
+
if (sourceSpace === targetSpace) {
|
|
8218
|
+
styles[name] = wrap(identity, offset);
|
|
8219
|
+
} else if (typeof suite === "object") {
|
|
8220
|
+
styles[name] = wrap(suite[targetSpace], offset);
|
|
8221
|
+
}
|
|
8241
8222
|
}
|
|
8223
|
+
return styles;
|
|
8242
8224
|
};
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8225
|
+
function assembleStyles() {
|
|
8226
|
+
const codes = /* @__PURE__ */ new Map();
|
|
8227
|
+
const styles = {
|
|
8228
|
+
modifier: {
|
|
8229
|
+
reset: [0, 0],
|
|
8230
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
8231
|
+
bold: [1, 22],
|
|
8232
|
+
dim: [2, 22],
|
|
8233
|
+
italic: [3, 23],
|
|
8234
|
+
underline: [4, 24],
|
|
8235
|
+
inverse: [7, 27],
|
|
8236
|
+
hidden: [8, 28],
|
|
8237
|
+
strikethrough: [9, 29]
|
|
8238
|
+
},
|
|
8239
|
+
color: {
|
|
8240
|
+
black: [30, 39],
|
|
8241
|
+
red: [31, 39],
|
|
8242
|
+
green: [32, 39],
|
|
8243
|
+
yellow: [33, 39],
|
|
8244
|
+
blue: [34, 39],
|
|
8245
|
+
magenta: [35, 39],
|
|
8246
|
+
cyan: [36, 39],
|
|
8247
|
+
white: [37, 39],
|
|
8248
|
+
// Bright color
|
|
8249
|
+
blackBright: [90, 39],
|
|
8250
|
+
redBright: [91, 39],
|
|
8251
|
+
greenBright: [92, 39],
|
|
8252
|
+
yellowBright: [93, 39],
|
|
8253
|
+
blueBright: [94, 39],
|
|
8254
|
+
magentaBright: [95, 39],
|
|
8255
|
+
cyanBright: [96, 39],
|
|
8256
|
+
whiteBright: [97, 39]
|
|
8257
|
+
},
|
|
8258
|
+
bgColor: {
|
|
8259
|
+
bgBlack: [40, 49],
|
|
8260
|
+
bgRed: [41, 49],
|
|
8261
|
+
bgGreen: [42, 49],
|
|
8262
|
+
bgYellow: [43, 49],
|
|
8263
|
+
bgBlue: [44, 49],
|
|
8264
|
+
bgMagenta: [45, 49],
|
|
8265
|
+
bgCyan: [46, 49],
|
|
8266
|
+
bgWhite: [47, 49],
|
|
8267
|
+
// Bright color
|
|
8268
|
+
bgBlackBright: [100, 49],
|
|
8269
|
+
bgRedBright: [101, 49],
|
|
8270
|
+
bgGreenBright: [102, 49],
|
|
8271
|
+
bgYellowBright: [103, 49],
|
|
8272
|
+
bgBlueBright: [104, 49],
|
|
8273
|
+
bgMagentaBright: [105, 49],
|
|
8274
|
+
bgCyanBright: [106, 49],
|
|
8275
|
+
bgWhiteBright: [107, 49]
|
|
8276
|
+
}
|
|
8277
|
+
};
|
|
8278
|
+
styles.color.gray = styles.color.blackBright;
|
|
8279
|
+
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
|
8280
|
+
styles.color.grey = styles.color.blackBright;
|
|
8281
|
+
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
|
8282
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
8283
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
8284
|
+
styles[styleName] = {
|
|
8285
|
+
open: `\x1B[${style[0]}m`,
|
|
8286
|
+
close: `\x1B[${style[1]}m`
|
|
8287
|
+
};
|
|
8288
|
+
group[styleName] = styles[styleName];
|
|
8289
|
+
codes.set(style[0], style[1]);
|
|
8290
|
+
}
|
|
8291
|
+
Object.defineProperty(styles, groupName, {
|
|
8292
|
+
value: group,
|
|
8293
|
+
enumerable: false
|
|
8294
|
+
});
|
|
8255
8295
|
}
|
|
8256
|
-
Object.defineProperty(
|
|
8257
|
-
value:
|
|
8296
|
+
Object.defineProperty(styles, "codes", {
|
|
8297
|
+
value: codes,
|
|
8258
8298
|
enumerable: false
|
|
8259
8299
|
});
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8300
|
+
styles.color.close = "\x1B[39m";
|
|
8301
|
+
styles.bgColor.close = "\x1B[49m";
|
|
8302
|
+
setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
|
|
8303
|
+
setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
|
|
8304
|
+
setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
|
|
8305
|
+
setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
|
|
8306
|
+
setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
|
|
8307
|
+
setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
|
|
8308
|
+
return styles;
|
|
8309
|
+
}
|
|
8310
|
+
Object.defineProperty(module, "exports", {
|
|
8311
|
+
enumerable: true,
|
|
8312
|
+
get: assembleStyles
|
|
8264
8313
|
});
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
var
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8314
|
+
})(ansiStyles);
|
|
8315
|
+
return ansiStyles.exports;
|
|
8316
|
+
}
|
|
8317
|
+
var browser;
|
|
8318
|
+
var hasRequiredBrowser;
|
|
8319
|
+
function requireBrowser() {
|
|
8320
|
+
if (hasRequiredBrowser) return browser;
|
|
8321
|
+
hasRequiredBrowser = 1;
|
|
8322
|
+
browser = {
|
|
8323
|
+
stdout: false,
|
|
8324
|
+
stderr: false
|
|
8325
|
+
};
|
|
8326
|
+
return browser;
|
|
8327
|
+
}
|
|
8328
|
+
var util;
|
|
8329
|
+
var hasRequiredUtil;
|
|
8330
|
+
function requireUtil() {
|
|
8331
|
+
if (hasRequiredUtil) return util;
|
|
8332
|
+
hasRequiredUtil = 1;
|
|
8333
|
+
const stringReplaceAll = (string, substring, replacer) => {
|
|
8334
|
+
let index = string.indexOf(substring);
|
|
8335
|
+
if (index === -1) {
|
|
8336
|
+
return string;
|
|
8337
|
+
}
|
|
8338
|
+
const substringLength = substring.length;
|
|
8339
|
+
let endIndex = 0;
|
|
8340
|
+
let returnValue = "";
|
|
8341
|
+
do {
|
|
8342
|
+
returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
|
|
8343
|
+
endIndex = index + substringLength;
|
|
8344
|
+
index = string.indexOf(substring, endIndex);
|
|
8345
|
+
} while (index !== -1);
|
|
8346
|
+
returnValue += string.substr(endIndex);
|
|
8347
|
+
return returnValue;
|
|
8348
|
+
};
|
|
8349
|
+
const stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
|
|
8350
|
+
let endIndex = 0;
|
|
8351
|
+
let returnValue = "";
|
|
8352
|
+
do {
|
|
8353
|
+
const gotCR = string[index - 1] === "\r";
|
|
8354
|
+
returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
8355
|
+
endIndex = index + 1;
|
|
8356
|
+
index = string.indexOf("\n", endIndex);
|
|
8357
|
+
} while (index !== -1);
|
|
8358
|
+
returnValue += string.substr(endIndex);
|
|
8359
|
+
return returnValue;
|
|
8360
|
+
};
|
|
8361
|
+
util = {
|
|
8362
|
+
stringReplaceAll,
|
|
8363
|
+
stringEncaseCRLFWithFirstIndex
|
|
8364
|
+
};
|
|
8365
|
+
return util;
|
|
8366
|
+
}
|
|
8317
8367
|
var templates;
|
|
8318
8368
|
var hasRequiredTemplates;
|
|
8319
8369
|
function requireTemplates() {
|
|
@@ -8355,7 +8405,7 @@ function requireTemplates() {
|
|
|
8355
8405
|
if (!Number.isNaN(number)) {
|
|
8356
8406
|
results.push(number);
|
|
8357
8407
|
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
8358
|
-
results.push(matches[2].replace(ESCAPE_REGEX, (m,
|
|
8408
|
+
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
|
|
8359
8409
|
} else {
|
|
8360
8410
|
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
8361
8411
|
}
|
|
@@ -8377,27 +8427,27 @@ function requireTemplates() {
|
|
|
8377
8427
|
}
|
|
8378
8428
|
return results;
|
|
8379
8429
|
}
|
|
8380
|
-
function buildStyle(chalk2,
|
|
8430
|
+
function buildStyle(chalk2, styles) {
|
|
8381
8431
|
const enabled = {};
|
|
8382
|
-
for (const layer of
|
|
8432
|
+
for (const layer of styles) {
|
|
8383
8433
|
for (const style of layer.styles) {
|
|
8384
8434
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
8385
8435
|
}
|
|
8386
8436
|
}
|
|
8387
8437
|
let current = chalk2;
|
|
8388
|
-
for (const [styleName,
|
|
8389
|
-
if (!Array.isArray(
|
|
8438
|
+
for (const [styleName, styles2] of Object.entries(enabled)) {
|
|
8439
|
+
if (!Array.isArray(styles2)) {
|
|
8390
8440
|
continue;
|
|
8391
8441
|
}
|
|
8392
8442
|
if (!(styleName in current)) {
|
|
8393
8443
|
throw new Error(`Unknown Chalk style: ${styleName}`);
|
|
8394
8444
|
}
|
|
8395
|
-
current =
|
|
8445
|
+
current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
|
|
8396
8446
|
}
|
|
8397
8447
|
return current;
|
|
8398
8448
|
}
|
|
8399
8449
|
templates = (chalk2, temporary) => {
|
|
8400
|
-
const
|
|
8450
|
+
const styles = [];
|
|
8401
8451
|
const chunks = [];
|
|
8402
8452
|
let chunk = [];
|
|
8403
8453
|
temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
|
|
@@ -8406,200 +8456,208 @@ function requireTemplates() {
|
|
|
8406
8456
|
} else if (style) {
|
|
8407
8457
|
const string = chunk.join("");
|
|
8408
8458
|
chunk = [];
|
|
8409
|
-
chunks.push(
|
|
8410
|
-
|
|
8459
|
+
chunks.push(styles.length === 0 ? string : buildStyle(chalk2, styles)(string));
|
|
8460
|
+
styles.push({ inverse, styles: parseStyle(style) });
|
|
8411
8461
|
} else if (close) {
|
|
8412
|
-
if (
|
|
8462
|
+
if (styles.length === 0) {
|
|
8413
8463
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
8414
8464
|
}
|
|
8415
|
-
chunks.push(buildStyle(chalk2,
|
|
8465
|
+
chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
|
|
8416
8466
|
chunk = [];
|
|
8417
|
-
|
|
8467
|
+
styles.pop();
|
|
8418
8468
|
} else {
|
|
8419
8469
|
chunk.push(character);
|
|
8420
8470
|
}
|
|
8421
8471
|
});
|
|
8422
8472
|
chunks.push(chunk.join(""));
|
|
8423
|
-
if (
|
|
8424
|
-
const errMessage = `Chalk template literal is missing ${
|
|
8473
|
+
if (styles.length > 0) {
|
|
8474
|
+
const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
|
|
8425
8475
|
throw new Error(errMessage);
|
|
8426
8476
|
}
|
|
8427
8477
|
return chunks.join("");
|
|
8428
8478
|
};
|
|
8429
8479
|
return templates;
|
|
8430
8480
|
}
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
const {
|
|
8438
|
-
const
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8481
|
+
var source;
|
|
8482
|
+
var hasRequiredSource;
|
|
8483
|
+
function requireSource() {
|
|
8484
|
+
if (hasRequiredSource) return source;
|
|
8485
|
+
hasRequiredSource = 1;
|
|
8486
|
+
const ansiStyles2 = requireAnsiStyles();
|
|
8487
|
+
const { stdout: stdoutColor, stderr: stderrColor } = requireBrowser();
|
|
8488
|
+
const {
|
|
8489
|
+
stringReplaceAll,
|
|
8490
|
+
stringEncaseCRLFWithFirstIndex
|
|
8491
|
+
} = requireUtil();
|
|
8492
|
+
const { isArray } = Array;
|
|
8493
|
+
const levelMapping = [
|
|
8494
|
+
"ansi",
|
|
8495
|
+
"ansi",
|
|
8496
|
+
"ansi256",
|
|
8497
|
+
"ansi16m"
|
|
8498
|
+
];
|
|
8499
|
+
const styles = /* @__PURE__ */ Object.create(null);
|
|
8500
|
+
const applyOptions = (object, options = {}) => {
|
|
8501
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
8502
|
+
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
8503
|
+
}
|
|
8504
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
8505
|
+
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
8506
|
+
};
|
|
8507
|
+
class ChalkClass {
|
|
8508
|
+
constructor(options) {
|
|
8509
|
+
return chalkFactory(options);
|
|
8510
|
+
}
|
|
8448
8511
|
}
|
|
8449
|
-
const
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8512
|
+
const chalkFactory = (options) => {
|
|
8513
|
+
const chalk3 = {};
|
|
8514
|
+
applyOptions(chalk3, options);
|
|
8515
|
+
chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_);
|
|
8516
|
+
Object.setPrototypeOf(chalk3, Chalk.prototype);
|
|
8517
|
+
Object.setPrototypeOf(chalk3.template, chalk3);
|
|
8518
|
+
chalk3.template.constructor = () => {
|
|
8519
|
+
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
8520
|
+
};
|
|
8521
|
+
chalk3.template.Instance = ChalkClass;
|
|
8522
|
+
return chalk3.template;
|
|
8523
|
+
};
|
|
8524
|
+
function Chalk(options) {
|
|
8454
8525
|
return chalkFactory(options);
|
|
8455
8526
|
}
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
chalk2.template.Instance = ChalkClass;
|
|
8467
|
-
return chalk2.template;
|
|
8468
|
-
};
|
|
8469
|
-
function Chalk(options) {
|
|
8470
|
-
return chalkFactory(options);
|
|
8471
|
-
}
|
|
8472
|
-
for (const [styleName, style] of Object.entries(ansiStyles)) {
|
|
8473
|
-
styles[styleName] = {
|
|
8527
|
+
for (const [styleName, style] of Object.entries(ansiStyles2)) {
|
|
8528
|
+
styles[styleName] = {
|
|
8529
|
+
get() {
|
|
8530
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
|
|
8531
|
+
Object.defineProperty(this, styleName, { value: builder });
|
|
8532
|
+
return builder;
|
|
8533
|
+
}
|
|
8534
|
+
};
|
|
8535
|
+
}
|
|
8536
|
+
styles.visible = {
|
|
8474
8537
|
get() {
|
|
8475
|
-
const builder = createBuilder(this,
|
|
8476
|
-
Object.defineProperty(this,
|
|
8538
|
+
const builder = createBuilder(this, this._styler, true);
|
|
8539
|
+
Object.defineProperty(this, "visible", { value: builder });
|
|
8477
8540
|
return builder;
|
|
8478
8541
|
}
|
|
8479
8542
|
};
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8543
|
+
const usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
|
|
8544
|
+
for (const model of usedModels) {
|
|
8545
|
+
styles[model] = {
|
|
8546
|
+
get() {
|
|
8547
|
+
const { level } = this;
|
|
8548
|
+
return function(...arguments_) {
|
|
8549
|
+
const styler = createStyler(ansiStyles2.color[levelMapping[level]][model](...arguments_), ansiStyles2.color.close, this._styler);
|
|
8550
|
+
return createBuilder(this, styler, this._isEmpty);
|
|
8551
|
+
};
|
|
8552
|
+
}
|
|
8553
|
+
};
|
|
8486
8554
|
}
|
|
8487
|
-
|
|
8488
|
-
const
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
}
|
|
8555
|
+
for (const model of usedModels) {
|
|
8556
|
+
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
8557
|
+
styles[bgModel] = {
|
|
8558
|
+
get() {
|
|
8559
|
+
const { level } = this;
|
|
8560
|
+
return function(...arguments_) {
|
|
8561
|
+
const styler = createStyler(ansiStyles2.bgColor[levelMapping[level]][model](...arguments_), ansiStyles2.bgColor.close, this._styler);
|
|
8562
|
+
return createBuilder(this, styler, this._isEmpty);
|
|
8563
|
+
};
|
|
8564
|
+
}
|
|
8565
|
+
};
|
|
8566
|
+
}
|
|
8567
|
+
const proto = Object.defineProperties(() => {
|
|
8568
|
+
}, {
|
|
8569
|
+
...styles,
|
|
8570
|
+
level: {
|
|
8571
|
+
enumerable: true,
|
|
8572
|
+
get() {
|
|
8573
|
+
return this._generator.level;
|
|
8574
|
+
},
|
|
8575
|
+
set(level) {
|
|
8576
|
+
this._generator.level = level;
|
|
8577
|
+
}
|
|
8497
8578
|
}
|
|
8498
|
-
};
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
};
|
|
8579
|
+
});
|
|
8580
|
+
const createStyler = (open, close, parent) => {
|
|
8581
|
+
let openAll;
|
|
8582
|
+
let closeAll;
|
|
8583
|
+
if (parent === void 0) {
|
|
8584
|
+
openAll = open;
|
|
8585
|
+
closeAll = close;
|
|
8586
|
+
} else {
|
|
8587
|
+
openAll = parent.openAll + open;
|
|
8588
|
+
closeAll = close + parent.closeAll;
|
|
8509
8589
|
}
|
|
8590
|
+
return {
|
|
8591
|
+
open,
|
|
8592
|
+
close,
|
|
8593
|
+
openAll,
|
|
8594
|
+
closeAll,
|
|
8595
|
+
parent
|
|
8596
|
+
};
|
|
8510
8597
|
};
|
|
8511
|
-
|
|
8512
|
-
const
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
}
|
|
8524
|
-
});
|
|
8525
|
-
const createStyler = (open, close, parent) => {
|
|
8526
|
-
let openAll;
|
|
8527
|
-
let closeAll;
|
|
8528
|
-
if (parent === void 0) {
|
|
8529
|
-
openAll = open;
|
|
8530
|
-
closeAll = close;
|
|
8531
|
-
} else {
|
|
8532
|
-
openAll = parent.openAll + open;
|
|
8533
|
-
closeAll = close + parent.closeAll;
|
|
8534
|
-
}
|
|
8535
|
-
return {
|
|
8536
|
-
open,
|
|
8537
|
-
close,
|
|
8538
|
-
openAll,
|
|
8539
|
-
closeAll,
|
|
8540
|
-
parent
|
|
8598
|
+
const createBuilder = (self, _styler, _isEmpty) => {
|
|
8599
|
+
const builder = (...arguments_) => {
|
|
8600
|
+
if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
|
|
8601
|
+
return applyStyle(builder, chalkTag(builder, ...arguments_));
|
|
8602
|
+
}
|
|
8603
|
+
return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
8604
|
+
};
|
|
8605
|
+
Object.setPrototypeOf(builder, proto);
|
|
8606
|
+
builder._generator = self;
|
|
8607
|
+
builder._styler = _styler;
|
|
8608
|
+
builder._isEmpty = _isEmpty;
|
|
8609
|
+
return builder;
|
|
8541
8610
|
};
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
|
|
8546
|
-
return applyStyle(builder, chalkTag(builder, ...arguments_));
|
|
8611
|
+
const applyStyle = (self, string) => {
|
|
8612
|
+
if (self.level <= 0 || !string) {
|
|
8613
|
+
return self._isEmpty ? "" : string;
|
|
8547
8614
|
}
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
builder._generator = self2;
|
|
8552
|
-
builder._styler = _styler;
|
|
8553
|
-
builder._isEmpty = _isEmpty;
|
|
8554
|
-
return builder;
|
|
8555
|
-
};
|
|
8556
|
-
const applyStyle = (self2, string) => {
|
|
8557
|
-
if (self2.level <= 0 || !string) {
|
|
8558
|
-
return self2._isEmpty ? "" : string;
|
|
8559
|
-
}
|
|
8560
|
-
let styler = self2._styler;
|
|
8561
|
-
if (styler === void 0) {
|
|
8562
|
-
return string;
|
|
8563
|
-
}
|
|
8564
|
-
const { openAll, closeAll } = styler;
|
|
8565
|
-
if (string.indexOf("\x1B") !== -1) {
|
|
8566
|
-
while (styler !== void 0) {
|
|
8567
|
-
string = stringReplaceAll(string, styler.close, styler.open);
|
|
8568
|
-
styler = styler.parent;
|
|
8615
|
+
let styler = self._styler;
|
|
8616
|
+
if (styler === void 0) {
|
|
8617
|
+
return string;
|
|
8569
8618
|
}
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
}
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
return
|
|
8582
|
-
}
|
|
8583
|
-
|
|
8584
|
-
const
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
);
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8619
|
+
const { openAll, closeAll } = styler;
|
|
8620
|
+
if (string.indexOf("\x1B") !== -1) {
|
|
8621
|
+
while (styler !== void 0) {
|
|
8622
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
|
8623
|
+
styler = styler.parent;
|
|
8624
|
+
}
|
|
8625
|
+
}
|
|
8626
|
+
const lfIndex = string.indexOf("\n");
|
|
8627
|
+
if (lfIndex !== -1) {
|
|
8628
|
+
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
8629
|
+
}
|
|
8630
|
+
return openAll + string + closeAll;
|
|
8631
|
+
};
|
|
8632
|
+
let template;
|
|
8633
|
+
const chalkTag = (chalk3, ...strings) => {
|
|
8634
|
+
const [firstString] = strings;
|
|
8635
|
+
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
|
8636
|
+
return strings.join(" ");
|
|
8637
|
+
}
|
|
8638
|
+
const arguments_ = strings.slice(1);
|
|
8639
|
+
const parts = [firstString.raw[0]];
|
|
8640
|
+
for (let i = 1; i < firstString.length; i++) {
|
|
8641
|
+
parts.push(
|
|
8642
|
+
String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
|
|
8643
|
+
String(firstString.raw[i])
|
|
8644
|
+
);
|
|
8645
|
+
}
|
|
8646
|
+
if (template === void 0) {
|
|
8647
|
+
template = requireTemplates();
|
|
8648
|
+
}
|
|
8649
|
+
return template(chalk3, parts.join(""));
|
|
8650
|
+
};
|
|
8651
|
+
Object.defineProperties(Chalk.prototype, styles);
|
|
8652
|
+
const chalk2 = Chalk();
|
|
8653
|
+
chalk2.supportsColor = stdoutColor;
|
|
8654
|
+
chalk2.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
8655
|
+
chalk2.stderr.supportsColor = stderrColor;
|
|
8656
|
+
source = chalk2;
|
|
8657
|
+
return source;
|
|
8658
|
+
}
|
|
8659
|
+
var sourceExports = requireSource();
|
|
8660
|
+
const chalk = /* @__PURE__ */ getDefaultExportFromCjs(sourceExports);
|
|
8603
8661
|
const _hoisted_1$4 = { class: "ststitle" };
|
|
8604
8662
|
const _hoisted_2$3 = {
|
|
8605
8663
|
key: 0,
|
|
@@ -8667,7 +8725,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
8667
8725
|
},
|
|
8668
8726
|
emits: ["myclick"],
|
|
8669
8727
|
setup(__props, { emit: __emit }) {
|
|
8670
|
-
chalk
|
|
8728
|
+
chalk.level = 3;
|
|
8671
8729
|
const friendlyTitle = (id) => {
|
|
8672
8730
|
if (id.length > 30) {
|
|
8673
8731
|
return store.GetFriendName(props.modelId, id);
|
|
@@ -8699,7 +8757,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
8699
8757
|
try {
|
|
8700
8758
|
return (props.instrumentdata[`${Gauge.NETWORK_RX_GAUGE}`].val / 1e6).toFixed(2);
|
|
8701
8759
|
} catch (error) {
|
|
8702
|
-
console.log(chalk
|
|
8760
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
8703
8761
|
return "0.0";
|
|
8704
8762
|
}
|
|
8705
8763
|
});
|
|
@@ -8707,7 +8765,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
8707
8765
|
try {
|
|
8708
8766
|
return (props.instrumentdata[`${Gauge.NETWORK_TX_GAUGE}`].val / 1e6).toFixed(2);
|
|
8709
8767
|
} catch (error) {
|
|
8710
|
-
console.log(chalk
|
|
8768
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
8711
8769
|
return "0.0";
|
|
8712
8770
|
}
|
|
8713
8771
|
});
|
|
@@ -9309,7 +9367,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9309
9367
|
},
|
|
9310
9368
|
emits: ["myclick"],
|
|
9311
9369
|
setup(__props, { emit: __emit }) {
|
|
9312
|
-
chalk
|
|
9370
|
+
chalk.level = 3;
|
|
9313
9371
|
const store = ModelStore();
|
|
9314
9372
|
const emit = __emit;
|
|
9315
9373
|
const clicked = function(id) {
|
|
@@ -9341,10 +9399,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9341
9399
|
return topic;
|
|
9342
9400
|
});
|
|
9343
9401
|
onMounted(() => {
|
|
9344
|
-
console.log(chalk
|
|
9402
|
+
console.log(chalk.magenta(`onMounted`));
|
|
9345
9403
|
});
|
|
9346
9404
|
onBeforeUnmount(() => {
|
|
9347
|
-
console.log(chalk
|
|
9405
|
+
console.log(chalk.magenta(`onBeforeUnmount`));
|
|
9348
9406
|
});
|
|
9349
9407
|
watch(() => props.instrumentdata, (val) => {
|
|
9350
9408
|
if (lineChartEx.value && lineChartEx.value) {
|
|
@@ -9383,7 +9441,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9383
9441
|
try {
|
|
9384
9442
|
return props.instrumentdata[`${Gauge.CPU_LOAD_GAUGE}`].val;
|
|
9385
9443
|
} catch (error) {
|
|
9386
|
-
console.log(chalk
|
|
9444
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9387
9445
|
return 0;
|
|
9388
9446
|
}
|
|
9389
9447
|
});
|
|
@@ -9391,7 +9449,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9391
9449
|
try {
|
|
9392
9450
|
return props.instrumentdata[`${Gauge.ACTIVE_REQUEST_GAUGE}`].val;
|
|
9393
9451
|
} catch (error) {
|
|
9394
|
-
console.log(chalk
|
|
9452
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9395
9453
|
return 0;
|
|
9396
9454
|
}
|
|
9397
9455
|
});
|
|
@@ -9399,7 +9457,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9399
9457
|
try {
|
|
9400
9458
|
return `${props.instrumentdata[`${Gauge.REQUEST_COUNT_GAUGE}`].val}/${props.instrumentdata[`${Gauge.ERROR_COUNT_GAUGE}`].val}/${props.instrumentdata[`${Gauge.RETRY_COUNT_GAUGE}`].val}`;
|
|
9401
9459
|
} catch (error) {
|
|
9402
|
-
console.log(chalk
|
|
9460
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9403
9461
|
return "0/0/0";
|
|
9404
9462
|
}
|
|
9405
9463
|
});
|
|
@@ -9407,7 +9465,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9407
9465
|
try {
|
|
9408
9466
|
return props.instrumentdata[`${Gauge.CORE_COUNT_GAUGE}`].val;
|
|
9409
9467
|
} catch (error) {
|
|
9410
|
-
console.log(chalk
|
|
9468
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9411
9469
|
return 0;
|
|
9412
9470
|
}
|
|
9413
9471
|
});
|
|
@@ -9415,7 +9473,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9415
9473
|
try {
|
|
9416
9474
|
return Math.round(props.instrumentdata[`${Gauge.TIMER_GAUGE}`].val);
|
|
9417
9475
|
} catch (error) {
|
|
9418
|
-
console.log(chalk
|
|
9476
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9419
9477
|
return 0;
|
|
9420
9478
|
}
|
|
9421
9479
|
});
|
|
@@ -9423,7 +9481,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9423
9481
|
try {
|
|
9424
9482
|
return (props.instrumentdata[`${Gauge.DURATION_GAUGE}`].val * 100 / 100).toFixed(2);
|
|
9425
9483
|
} catch (error) {
|
|
9426
|
-
console.log(chalk
|
|
9484
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9427
9485
|
return "0.0";
|
|
9428
9486
|
}
|
|
9429
9487
|
});
|
|
@@ -9431,7 +9489,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9431
9489
|
try {
|
|
9432
9490
|
return (props.instrumentdata[`${Gauge.NETWORK_RX_GAUGE}`].val / 1e6).toFixed(2);
|
|
9433
9491
|
} catch (error) {
|
|
9434
|
-
console.log(chalk
|
|
9492
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9435
9493
|
return "0.0";
|
|
9436
9494
|
}
|
|
9437
9495
|
});
|
|
@@ -9439,7 +9497,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9439
9497
|
try {
|
|
9440
9498
|
return (props.instrumentdata[`${Gauge.NETWORK_TX_GAUGE}`].val / 1e6).toFixed(2);
|
|
9441
9499
|
} catch (error) {
|
|
9442
|
-
console.log(chalk
|
|
9500
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9443
9501
|
return "0.0";
|
|
9444
9502
|
}
|
|
9445
9503
|
});
|
|
@@ -9447,7 +9505,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9447
9505
|
try {
|
|
9448
9506
|
return (props.instrumentdata[`${Gauge.LATENCY_GAUGE}`].val * 100 / 100).toFixed(2);
|
|
9449
9507
|
} catch (error) {
|
|
9450
|
-
console.log(chalk
|
|
9508
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9451
9509
|
return "0.0";
|
|
9452
9510
|
}
|
|
9453
9511
|
});
|
|
@@ -9455,7 +9513,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9455
9513
|
try {
|
|
9456
9514
|
return `${props.instrumentdata[`${Gauge.CONNECTION_POOL_TOTAL_GAUGE}`].val}/${props.instrumentdata[`${Gauge.CONNECTION_POOL_IDLE_GAUGE}`].val}/${props.instrumentdata[`${Gauge.CONNECTION_POOL_WAITING_GAUGE}`].val}`;
|
|
9457
9515
|
} catch (error) {
|
|
9458
|
-
console.log(chalk
|
|
9516
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9459
9517
|
return "[Unknown]";
|
|
9460
9518
|
}
|
|
9461
9519
|
});
|
|
@@ -9463,7 +9521,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9463
9521
|
try {
|
|
9464
9522
|
return `${props.instrumentdata[`${Gauge.AUTHENTICATION_COUNT_GAUGE}`].val}/${props.instrumentdata[`${Gauge.AUTHENTICATION_ERROR_COUNT_GAUGE}`].val}/${props.instrumentdata[`${Gauge.AUTHENTICATION_RETRY_COUNT_GAUGE}`].val}`;
|
|
9465
9523
|
} catch (error) {
|
|
9466
|
-
console.log(chalk
|
|
9524
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9467
9525
|
return "[Unknown]";
|
|
9468
9526
|
}
|
|
9469
9527
|
});
|
|
@@ -9471,7 +9529,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9471
9529
|
try {
|
|
9472
9530
|
return props.instrumentdata[`${Gauge.ACTIVE_REQUEST_GAUGE}`].val / 20 * 100;
|
|
9473
9531
|
} catch (error) {
|
|
9474
|
-
console.log(chalk
|
|
9532
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9475
9533
|
return 0;
|
|
9476
9534
|
}
|
|
9477
9535
|
});
|
|
@@ -9479,7 +9537,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9479
9537
|
try {
|
|
9480
9538
|
return props.instrumentdata[`${Gauge.CONNECTION_COUNT_GAUGE}`].val;
|
|
9481
9539
|
} catch (error) {
|
|
9482
|
-
console.log(chalk
|
|
9540
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9483
9541
|
return 0;
|
|
9484
9542
|
}
|
|
9485
9543
|
});
|
|
@@ -9487,7 +9545,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9487
9545
|
try {
|
|
9488
9546
|
return props.instrumentdata[`${Gauge.CONNECTION_COUNT_GAUGE}`].val / 20 * 100;
|
|
9489
9547
|
} catch (error) {
|
|
9490
|
-
console.log(chalk
|
|
9548
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9491
9549
|
return 0;
|
|
9492
9550
|
}
|
|
9493
9551
|
});
|
|
@@ -9495,7 +9553,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9495
9553
|
try {
|
|
9496
9554
|
return props.instrumentdata[`${Gauge.VELOCITY_GAUGE}`].val;
|
|
9497
9555
|
} catch (error) {
|
|
9498
|
-
console.log(chalk
|
|
9556
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9499
9557
|
return 0;
|
|
9500
9558
|
}
|
|
9501
9559
|
});
|
|
@@ -9503,7 +9561,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9503
9561
|
try {
|
|
9504
9562
|
return props.instrumentdata[`${Gauge.VELOCITY_GAUGE}`].va / 1e3 * 100;
|
|
9505
9563
|
} catch (error) {
|
|
9506
|
-
console.log(chalk
|
|
9564
|
+
console.log(chalk.red(`${props.instrumentdata}`));
|
|
9507
9565
|
return 0;
|
|
9508
9566
|
}
|
|
9509
9567
|
});
|
|
@@ -9822,7 +9880,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9822
9880
|
},
|
|
9823
9881
|
emits: ["myclick"],
|
|
9824
9882
|
setup(__props, { emit: __emit }) {
|
|
9825
|
-
chalk
|
|
9883
|
+
chalk.level = 3;
|
|
9826
9884
|
const store = ModelStore();
|
|
9827
9885
|
const props = __props;
|
|
9828
9886
|
const emit = __emit;
|
|
@@ -9844,7 +9902,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9844
9902
|
try {
|
|
9845
9903
|
return model.instruments[`${Gauge.CPU_LOAD_GAUGE}`].val;
|
|
9846
9904
|
} catch (error) {
|
|
9847
|
-
console.log(chalk
|
|
9905
|
+
console.log(chalk.red(`${error}`));
|
|
9848
9906
|
}
|
|
9849
9907
|
};
|
|
9850
9908
|
const navigate = function(id) {
|
|
@@ -9873,34 +9931,32 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9873
9931
|
};
|
|
9874
9932
|
}
|
|
9875
9933
|
});
|
|
9876
|
-
|
|
9877
|
-
for (
|
|
9934
|
+
const byteToHex = [];
|
|
9935
|
+
for (let i = 0; i < 256; ++i) {
|
|
9878
9936
|
byteToHex.push((i + 256).toString(16).slice(1));
|
|
9879
9937
|
}
|
|
9880
9938
|
function unsafeStringify(arr, offset = 0) {
|
|
9881
9939
|
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
9882
9940
|
}
|
|
9883
|
-
|
|
9884
|
-
|
|
9941
|
+
let getRandomValues;
|
|
9942
|
+
const rnds8 = new Uint8Array(16);
|
|
9885
9943
|
function rng() {
|
|
9886
9944
|
if (!getRandomValues) {
|
|
9887
|
-
|
|
9888
|
-
if (!getRandomValues) {
|
|
9945
|
+
if (typeof crypto === "undefined" || !crypto.getRandomValues) {
|
|
9889
9946
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
9890
9947
|
}
|
|
9948
|
+
getRandomValues = crypto.getRandomValues.bind(crypto);
|
|
9891
9949
|
}
|
|
9892
9950
|
return getRandomValues(rnds8);
|
|
9893
9951
|
}
|
|
9894
|
-
|
|
9895
|
-
const native = {
|
|
9896
|
-
randomUUID
|
|
9897
|
-
};
|
|
9952
|
+
const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
9953
|
+
const native = { randomUUID };
|
|
9898
9954
|
function v4(options, buf, offset) {
|
|
9899
9955
|
if (native.randomUUID && !buf && !options) {
|
|
9900
9956
|
return native.randomUUID();
|
|
9901
9957
|
}
|
|
9902
9958
|
options = options || {};
|
|
9903
|
-
|
|
9959
|
+
const rnds = options.random || (options.rng || rng)();
|
|
9904
9960
|
rnds[6] = rnds[6] & 15 | 64;
|
|
9905
9961
|
rnds[8] = rnds[8] & 63 | 128;
|
|
9906
9962
|
return unsafeStringify(rnds);
|
|
@@ -10045,52 +10101,59 @@ EstablishSocketConnect_fn = function(name, onConnectCallBack, socketEventsCallBa
|
|
|
10045
10101
|
});
|
|
10046
10102
|
};
|
|
10047
10103
|
var tinyEmitter = { exports: {} };
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
(e[name] || (e[name] = [])).push({
|
|
10054
|
-
fn: callback,
|
|
10055
|
-
ctx
|
|
10056
|
-
});
|
|
10057
|
-
return this;
|
|
10058
|
-
},
|
|
10059
|
-
once: function(name, callback, ctx) {
|
|
10060
|
-
var self2 = this;
|
|
10061
|
-
function listener() {
|
|
10062
|
-
self2.off(name, listener);
|
|
10063
|
-
callback.apply(ctx, arguments);
|
|
10064
|
-
}
|
|
10065
|
-
listener._ = callback;
|
|
10066
|
-
return this.on(name, listener, ctx);
|
|
10067
|
-
},
|
|
10068
|
-
emit: function(name) {
|
|
10069
|
-
var data = [].slice.call(arguments, 1);
|
|
10070
|
-
var evtArr = ((this.e || (this.e = {}))[name] || []).slice();
|
|
10071
|
-
var i = 0;
|
|
10072
|
-
var len = evtArr.length;
|
|
10073
|
-
for (i; i < len; i++) {
|
|
10074
|
-
evtArr[i].fn.apply(evtArr[i].ctx, data);
|
|
10075
|
-
}
|
|
10076
|
-
return this;
|
|
10077
|
-
},
|
|
10078
|
-
off: function(name, callback) {
|
|
10079
|
-
var e = this.e || (this.e = {});
|
|
10080
|
-
var evts = e[name];
|
|
10081
|
-
var liveEvents = [];
|
|
10082
|
-
if (evts && callback) {
|
|
10083
|
-
for (var i = 0, len = evts.length; i < len; i++) {
|
|
10084
|
-
if (evts[i].fn !== callback && evts[i].fn._ !== callback)
|
|
10085
|
-
liveEvents.push(evts[i]);
|
|
10086
|
-
}
|
|
10087
|
-
}
|
|
10088
|
-
liveEvents.length ? e[name] = liveEvents : delete e[name];
|
|
10089
|
-
return this;
|
|
10104
|
+
var hasRequiredTinyEmitter;
|
|
10105
|
+
function requireTinyEmitter() {
|
|
10106
|
+
if (hasRequiredTinyEmitter) return tinyEmitter.exports;
|
|
10107
|
+
hasRequiredTinyEmitter = 1;
|
|
10108
|
+
function E() {
|
|
10090
10109
|
}
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
var
|
|
10110
|
+
E.prototype = {
|
|
10111
|
+
on: function(name, callback, ctx) {
|
|
10112
|
+
var e = this.e || (this.e = {});
|
|
10113
|
+
(e[name] || (e[name] = [])).push({
|
|
10114
|
+
fn: callback,
|
|
10115
|
+
ctx
|
|
10116
|
+
});
|
|
10117
|
+
return this;
|
|
10118
|
+
},
|
|
10119
|
+
once: function(name, callback, ctx) {
|
|
10120
|
+
var self = this;
|
|
10121
|
+
function listener() {
|
|
10122
|
+
self.off(name, listener);
|
|
10123
|
+
callback.apply(ctx, arguments);
|
|
10124
|
+
}
|
|
10125
|
+
listener._ = callback;
|
|
10126
|
+
return this.on(name, listener, ctx);
|
|
10127
|
+
},
|
|
10128
|
+
emit: function(name) {
|
|
10129
|
+
var data = [].slice.call(arguments, 1);
|
|
10130
|
+
var evtArr = ((this.e || (this.e = {}))[name] || []).slice();
|
|
10131
|
+
var i = 0;
|
|
10132
|
+
var len = evtArr.length;
|
|
10133
|
+
for (i; i < len; i++) {
|
|
10134
|
+
evtArr[i].fn.apply(evtArr[i].ctx, data);
|
|
10135
|
+
}
|
|
10136
|
+
return this;
|
|
10137
|
+
},
|
|
10138
|
+
off: function(name, callback) {
|
|
10139
|
+
var e = this.e || (this.e = {});
|
|
10140
|
+
var evts = e[name];
|
|
10141
|
+
var liveEvents = [];
|
|
10142
|
+
if (evts && callback) {
|
|
10143
|
+
for (var i = 0, len = evts.length; i < len; i++) {
|
|
10144
|
+
if (evts[i].fn !== callback && evts[i].fn._ !== callback)
|
|
10145
|
+
liveEvents.push(evts[i]);
|
|
10146
|
+
}
|
|
10147
|
+
}
|
|
10148
|
+
liveEvents.length ? e[name] = liveEvents : delete e[name];
|
|
10149
|
+
return this;
|
|
10150
|
+
}
|
|
10151
|
+
};
|
|
10152
|
+
tinyEmitter.exports = E;
|
|
10153
|
+
tinyEmitter.exports.TinyEmitter = E;
|
|
10154
|
+
return tinyEmitter.exports;
|
|
10155
|
+
}
|
|
10156
|
+
var tinyEmitterExports = requireTinyEmitter();
|
|
10094
10157
|
const SOCKET_NAMESPACE = "stsinstrumentmanager/stsmonitor";
|
|
10095
10158
|
class ObservabilitySubscriberManager {
|
|
10096
10159
|
constructor(options) {
|
|
@@ -10107,42 +10170,42 @@ class ObservabilitySubscriberManager {
|
|
|
10107
10170
|
__privateAdd(this, _SocketIOConnect, (socket) => {
|
|
10108
10171
|
var _a, _b;
|
|
10109
10172
|
try {
|
|
10110
|
-
console.log(chalk
|
|
10111
|
-
console.log(chalk
|
|
10112
|
-
console.log(chalk
|
|
10173
|
+
console.log(chalk.cyan(`SocketIOConnect(): Starting`));
|
|
10174
|
+
console.log(chalk.cyan(`SocketIOConnect(): State: [${__privateGet(this, _state)}]`));
|
|
10175
|
+
console.log(chalk.cyan(`SocketIOConnect(): Current Model Subscriptions: [${(_a = __privateGet(this, _observabilitySubscriptionManager)) == null ? void 0 : _a.subscriptions}]`));
|
|
10113
10176
|
if (__privateGet(this, _observabilitySocketIOSubscriber) instanceof ObservabilitySocketIOSubscriber) {
|
|
10114
10177
|
if (socket.id) {
|
|
10115
10178
|
const observabilitySocketIOSubscriberSocketId = __privateGet(this, _observabilitySocketIOSubscriber).socket.id;
|
|
10116
10179
|
if (observabilitySocketIOSubscriberSocketId) {
|
|
10117
10180
|
if (socket.id.localeCompare(observabilitySocketIOSubscriberSocketId) === 0) {
|
|
10118
|
-
__privateGet(this, _logger).debug(chalk
|
|
10181
|
+
__privateGet(this, _logger).debug(chalk.cyan(`AgentSocketClient:constructor:SocketIOConnectSocket(): ids are the same - ignoring`));
|
|
10119
10182
|
}
|
|
10120
10183
|
}
|
|
10121
10184
|
}
|
|
10122
|
-
__privateGet(this, _logger).debug(chalk
|
|
10185
|
+
__privateGet(this, _logger).debug(chalk.cyan(`AgentSocketClient:constructor:SocketIOConnect(): Socket ids are different - update with new socket`));
|
|
10123
10186
|
__privateGet(this, _observabilitySocketIOSubscriber).socket = socket;
|
|
10124
10187
|
(_b = __privateGet(this, _observabilitySubscriptionManager)) == null ? void 0 : _b.Stop();
|
|
10125
10188
|
if (__privateGet(this, _state).localeCompare("started") === 0) {
|
|
10126
10189
|
setTimeout(() => {
|
|
10127
10190
|
var _a2;
|
|
10128
|
-
__privateGet(this, _logger).debug(chalk
|
|
10191
|
+
__privateGet(this, _logger).debug(chalk.cyan(`AgentSocketClient:constructor:SocketIOConnect(): observabilitySubscriptionManager Start`));
|
|
10129
10192
|
(_a2 = __privateGet(this, _observabilitySubscriptionManager)) == null ? void 0 : _a2.Start();
|
|
10130
10193
|
__privateGet(this, _tinyEmitter).emit("connected");
|
|
10131
10194
|
}, 2500);
|
|
10132
10195
|
} else {
|
|
10133
|
-
__privateGet(this, _logger).debug(chalk
|
|
10196
|
+
__privateGet(this, _logger).debug(chalk.cyan(`AgentSocketClient:constructor:SocketIOConnect(): state not in the started state, current state: [${__privateGet(this, _state)}]`));
|
|
10134
10197
|
__privateGet(this, _tinyEmitter).emit("connected");
|
|
10135
10198
|
}
|
|
10136
10199
|
} else {
|
|
10137
|
-
__privateGet(this, _logger).debug(chalk
|
|
10138
|
-
__privateGet(this, _logger).debug(chalk
|
|
10200
|
+
__privateGet(this, _logger).debug(chalk.cyan(`SocketIOConnect(): this.#observabilitySocketIOSubscriber not instance of ObservabilitySocketIOSubscriber`));
|
|
10201
|
+
__privateGet(this, _logger).debug(chalk.cyan(__privateGet(this, _observabilitySocketIOSubscriber)));
|
|
10139
10202
|
__privateGet(this, _tinyEmitter).emit("connected");
|
|
10140
10203
|
}
|
|
10141
10204
|
} catch (error) {
|
|
10142
|
-
__privateGet(this, _logger).error(chalk
|
|
10205
|
+
__privateGet(this, _logger).error(chalk.red(`SocketIOConnect(): Error: [${error}]`));
|
|
10143
10206
|
__privateGet(this, _tinyEmitter).emit("connected");
|
|
10144
10207
|
} finally {
|
|
10145
|
-
__privateGet(this, _logger).debug(chalk
|
|
10208
|
+
__privateGet(this, _logger).debug(chalk.cyan(`SocketIOConnect(): Ended`));
|
|
10146
10209
|
}
|
|
10147
10210
|
});
|
|
10148
10211
|
__privateAdd(this, _SetupObservabilitySubscriber, () => {
|
|
@@ -10165,7 +10228,7 @@ class ObservabilitySubscriberManager {
|
|
|
10165
10228
|
}));
|
|
10166
10229
|
break;
|
|
10167
10230
|
default:
|
|
10168
|
-
__privateGet(this, _logger).error(chalk
|
|
10231
|
+
__privateGet(this, _logger).error(chalk.red(`ObservabilitySubscriberManager:SetupObservabilitySubscriber(): Unsupported consumeInstrumentationMode mode: [${__privateGet(this, _options2).consumeInstrumentationMode}]`));
|
|
10169
10232
|
return;
|
|
10170
10233
|
}
|
|
10171
10234
|
__privateSet(this, _observabilitySubscriptionManager, new ObservabilitySubscriptionManager({
|
|
@@ -10179,7 +10242,7 @@ class ObservabilitySubscriberManager {
|
|
|
10179
10242
|
if (__privateGet(this, _options2).consumeInstrumentationMode.localeCompare("PROXY") === 0) {
|
|
10180
10243
|
const onConnected = () => {
|
|
10181
10244
|
__privateGet(this, _tinyEmitter).off("connected", onConnected);
|
|
10182
|
-
__privateGet(this, _logger).debug(chalk
|
|
10245
|
+
__privateGet(this, _logger).debug(chalk.cyan(`ObservabilitySubscriberManager:Start() connected`));
|
|
10183
10246
|
resolve(true);
|
|
10184
10247
|
};
|
|
10185
10248
|
__privateGet(this, _tinyEmitter).on("connected", onConnected);
|
|
@@ -10204,14 +10267,14 @@ class ObservabilitySubscriberManager {
|
|
|
10204
10267
|
));
|
|
10205
10268
|
});
|
|
10206
10269
|
__privateAdd(this, _SocketConnect, (socket) => {
|
|
10207
|
-
defaultLogger.debug(chalk
|
|
10270
|
+
defaultLogger.debug(chalk.magenta(`SocketIOConnect(): Socket ID: [${socket.id}]`));
|
|
10208
10271
|
if (__privateGet(this, _observabilitySubscriptionManager) === null) {
|
|
10209
10272
|
__privateGet(this, _SetupObservabilitySubscriber).call(this);
|
|
10210
10273
|
}
|
|
10211
10274
|
__privateGet(this, _SocketIOConnect).call(this, socket);
|
|
10212
10275
|
});
|
|
10213
10276
|
__privateAdd(this, _ProcessSocketError, (error) => {
|
|
10214
|
-
defaultLogger.error(chalk
|
|
10277
|
+
defaultLogger.error(chalk.red(`SetupClientSideSocket error callback: [${error}]`));
|
|
10215
10278
|
});
|
|
10216
10279
|
__privateAdd(this, _ProcessSocketEvents, (socket) => {
|
|
10217
10280
|
});
|
|
@@ -10220,7 +10283,7 @@ class ObservabilitySubscriberManager {
|
|
|
10220
10283
|
__privateSet(this, _modelId, options.modelId);
|
|
10221
10284
|
__privateSet(this, _logger, defaultLogger);
|
|
10222
10285
|
__privateSet(this, _store, ModelStore());
|
|
10223
|
-
__privateSet(this, _tinyEmitter, new TinyEmitter());
|
|
10286
|
+
__privateSet(this, _tinyEmitter, new tinyEmitterExports.TinyEmitter());
|
|
10224
10287
|
if (!__privateGet(this, _options2).consumeInstrumentationMode) {
|
|
10225
10288
|
__privateGet(this, _options2).consumeInstrumentationMode = "PROXY";
|
|
10226
10289
|
}
|
|
@@ -10230,7 +10293,7 @@ class ObservabilitySubscriberManager {
|
|
|
10230
10293
|
}
|
|
10231
10294
|
UpdateModelCursor(subscriptions) {
|
|
10232
10295
|
var _a;
|
|
10233
|
-
__privateGet(this, _logger).debug(chalk
|
|
10296
|
+
__privateGet(this, _logger).debug(chalk.yellow(`UpdateModelCursor`));
|
|
10234
10297
|
(_a = __privateGet(this, _observabilitySubscriptionManager)) == null ? void 0 : _a.Stop();
|
|
10235
10298
|
__privateSet(this, _state, "stopped");
|
|
10236
10299
|
setTimeout(() => {
|
|
@@ -10238,7 +10301,7 @@ class ObservabilitySubscriberManager {
|
|
|
10238
10301
|
__privateGet(this, _observabilitySubscriptionManager).subscriptions = subscriptions;
|
|
10239
10302
|
__privateGet(this, _observabilitySubscriptionManager).Start();
|
|
10240
10303
|
} else {
|
|
10241
|
-
__privateGet(this, _logger).debug(chalk
|
|
10304
|
+
__privateGet(this, _logger).debug(chalk.yellow(`UpdateModelCursor(): Could not update subscriptions, this.#observabilitySubscriptionManager not set`));
|
|
10242
10305
|
}
|
|
10243
10306
|
__privateSet(this, _state, "started");
|
|
10244
10307
|
}, 0);
|
|
@@ -10276,13 +10339,13 @@ class ObservabilitySubscriberManager {
|
|
|
10276
10339
|
}
|
|
10277
10340
|
Unsubscribe() {
|
|
10278
10341
|
var _a;
|
|
10279
|
-
__privateGet(this, _logger).debug(chalk
|
|
10342
|
+
__privateGet(this, _logger).debug(chalk.cyan(`ObservabilitySubscriberManager:Unsubscribe()`));
|
|
10280
10343
|
__privateSet(this, _state, "stopped");
|
|
10281
10344
|
(_a = __privateGet(this, _observabilitySubscriptionManager)) == null ? void 0 : _a.Stop();
|
|
10282
10345
|
if (__privateGet(this, _options2).consumeInstrumentationMode.localeCompare("PROXY") === 0) {
|
|
10283
10346
|
setTimeout(() => {
|
|
10284
10347
|
var _a2;
|
|
10285
|
-
__privateGet(this, _logger).debug(chalk
|
|
10348
|
+
__privateGet(this, _logger).debug(chalk.cyan(`ObservabilitySubscriberManager:Unsubscribe() socket.disconnect`));
|
|
10286
10349
|
(_a2 = __privateGet(this, _socket)) == null ? void 0 : _a2.disconnect();
|
|
10287
10350
|
__privateSet(this, _socket, null);
|
|
10288
10351
|
}, 1e3);
|
|
@@ -10312,7 +10375,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
10312
10375
|
modelId: {}
|
|
10313
10376
|
},
|
|
10314
10377
|
setup(__props, { expose: __expose }) {
|
|
10315
|
-
chalk
|
|
10378
|
+
chalk.level = 3;
|
|
10316
10379
|
const props = __props;
|
|
10317
10380
|
const store = ModelStore();
|
|
10318
10381
|
let observabilitySubscriberManager = null;
|
|
@@ -10594,7 +10657,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10594
10657
|
},
|
|
10595
10658
|
setup(__props, { expose: __expose }) {
|
|
10596
10659
|
onMounted(() => {
|
|
10597
|
-
console.log(chalk
|
|
10660
|
+
console.log(chalk.green("onMounted"));
|
|
10598
10661
|
});
|
|
10599
10662
|
const formData = ref([
|
|
10600
10663
|
{
|