2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 1263
|
2026-07-24 07:16:23 +00:00
|
|
|
// Function ID: 14260
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: _isNativeReflectConstruct
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [6, 7, 15, 17, 18, 57, 1264]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: formatToMarkdownString
|
|
|
|
|
|
|
|
|
|
// Module 1263 (_isNativeReflectConstruct)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _classCallCheck from "_isNativeReflectConstruct";
|
|
|
|
|
import _defineProperties from "_defineProperties";
|
|
|
|
|
import "_possibleConstructorReturn";
|
|
|
|
|
import _getPrototypeOf from "_getPrototypeOf";
|
|
|
|
|
import _inherits from "_inherits";
|
|
|
|
|
import _slicedToArray from "_slicedToArray";
|
|
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
function _isNativeReflectConstruct() {
|
|
|
|
|
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
|
|
|
|
|
|
|
|
|
|
}));
|
|
|
|
|
function _isNativeReflectConstruct() {
|
|
|
|
|
return closure_0;
|
|
|
|
|
}
|
|
|
|
|
const result = _isNativeReflectConstruct();
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
function formatToMarkdownString(_1Ww0Hi, arg1) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const self = this;
|
|
|
|
|
if (arguments.length > 2) {
|
|
|
|
|
if (undefined !== arguments[2]) {
|
|
|
|
|
let tmp = arguments[2];
|
|
|
|
|
}
|
|
|
|
|
let first = _1Ww0Hi;
|
|
|
|
|
if ("string" !== typeof _1Ww0Hi) {
|
|
|
|
|
first = self.bindFormatValues(tmp, _1Ww0Hi, arg1)[0];
|
|
|
|
|
}
|
|
|
|
|
return first;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp = closure_7;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
let closure_6 = {
|
|
|
|
|
$b(join) {
|
|
|
|
|
return "**" + join.join("") + "**";
|
|
|
|
|
},
|
|
|
|
|
$i(join) {
|
|
|
|
|
return "*" + join.join("") + "*";
|
|
|
|
|
},
|
|
|
|
|
$del(join) {
|
|
|
|
|
return "~~" + join.join("") + "~~";
|
|
|
|
|
},
|
|
|
|
|
$code(join) {
|
|
|
|
|
return "`" + join.join("") + "`";
|
|
|
|
|
},
|
|
|
|
|
$link(join) {
|
2026-07-23 10:11:24 +00:00
|
|
|
return "[" + join.join("") + "](" + _slicedToArray(arg2, 1)[0] + ")";
|
2026-07-20 16:05:17 +00:00
|
|
|
},
|
|
|
|
|
$p(join) {
|
|
|
|
|
return join.join("") + "\n\n";
|
|
|
|
|
}
|
|
|
|
|
};
|
2026-07-23 10:11:24 +00:00
|
|
|
const tmp2 = ((StringBuilder) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
class MarkdownBuilder {
|
|
|
|
|
constructor() {
|
|
|
|
|
self = this;
|
|
|
|
|
tmp = MarkdownBuilder(this, MarkdownBuilder);
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = outer1_3(MarkdownBuilder);
|
|
|
|
|
tmp2 = outer1_2;
|
|
|
|
|
if (outer1_8()) {
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp6 = globalThis;
|
|
|
|
|
_Reflect = Reflect;
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp7 = outer1_3;
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp8 = arguments;
|
2026-07-23 10:11:24 +00:00
|
|
|
constructResult = Reflect.construct(obj, arguments, outer1_3(self).constructor);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
tmp3 = arguments;
|
|
|
|
|
tmp4 = arguments;
|
|
|
|
|
constructResult = obj(...arguments);
|
|
|
|
|
}
|
|
|
|
|
tmp2Result = tmp2(self, constructResult);
|
|
|
|
|
tmp2Result.result = "";
|
|
|
|
|
return tmp2Result;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
_inherits(MarkdownBuilder, StringBuilder);
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [
|
|
|
|
|
{
|
|
|
|
|
key: "pushRichTextTag",
|
|
|
|
|
value: function pushRichTextTag(arg0, arg1, arg2) {
|
2026-07-23 10:11:24 +00:00
|
|
|
this.result = this.result + outer1_6[arg0](arg1, "", arg2);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
];
|
2026-07-23 10:11:24 +00:00
|
|
|
return _defineProperties(MarkdownBuilder, items);
|
|
|
|
|
})(require("_isNativeReflectConstruct").StringBuilder);
|
|
|
|
|
let closure_7 = tmp2;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export { formatToMarkdownString };
|
|
|
|
|
export const markdownFormatter = { format: formatToMarkdownString, builder: tmp2 };
|