Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
109 lines
2.8 KiB
JavaScript
109 lines
2.8 KiB
JavaScript
// Module ID: 1168
|
|
// Function ID: 1169
|
|
// Dependencies: [41, 42, 93, 95, 98, 1158]
|
|
// Exports: formatToPlainString
|
|
|
|
// Module 1168
|
|
import _mod1158 from "module_1158" /* 1158 */;
|
|
import _classCallCheck_mod from "_classCallCheck" /* 41 */;
|
|
import _createClass from "_createClass" /* 42 */;
|
|
import _possibleConstructorReturn from "_possibleConstructorReturn" /* 93 */;
|
|
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
|
|
import _inherits from "_inherits" /* 98 */;
|
|
|
|
function _isNativeReflectConstruct() {
|
|
try {
|
|
const _Boolean = Boolean;
|
|
const call = valueOf.call;
|
|
const _Reflect = Reflect;
|
|
const _Boolean2 = Boolean;
|
|
if (typeof call === "unknown") {
|
|
let callResult = valueOf();
|
|
} else {
|
|
callResult = call(constructResult);
|
|
}
|
|
closure_0 = !callResult;
|
|
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
return closure_0;
|
|
};
|
|
return _isNativeReflectConstruct();
|
|
} catch (err) {
|
|
}
|
|
}
|
|
function formatToPlainString(k2UNz_, time) {
|
|
let first = k2UNz_;
|
|
if (typeof k2UNz_ !== "string") {
|
|
const self = this;
|
|
first = this.bindFormatValues(_moduleResult, k2UNz_, time)[0];
|
|
}
|
|
return first;
|
|
}
|
|
let _classCallCheck = _classCallCheck_mod;
|
|
class StringBuilder {
|
|
constructor() {
|
|
self = this;
|
|
tmp = closure_0(this, StringBuilder);
|
|
tmp2 = c2;
|
|
obj = c2(StringBuilder);
|
|
tmp3 = closure_1;
|
|
if (closure_3()) {
|
|
tmp7 = globalThis;
|
|
_Reflect = Reflect;
|
|
tmp8 = arguments;
|
|
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
|
|
} else {
|
|
tmp4 = arguments;
|
|
tmp5 = arguments;
|
|
constructResult = obj(...arguments);
|
|
}
|
|
tmp3Result = tmp3(self, constructResult);
|
|
tmp3Result.result = "";
|
|
return tmp3Result;
|
|
}
|
|
}
|
|
_classCallCheck = StringBuilder;
|
|
_inherits(StringBuilder, _mod1158.FormatBuilder);
|
|
const entry = {
|
|
key: "pushRichTextTag",
|
|
value: function pushRichTextTag(arg0, arg1, arg2) {
|
|
const self = this;
|
|
while (tmp !== undefined) {
|
|
self.result = self.result + tmp2;
|
|
continue;
|
|
}
|
|
}
|
|
};
|
|
let items = [
|
|
entry,
|
|
{
|
|
key: "pushLiteralText",
|
|
value: function pushLiteralText(arg0) {
|
|
this.result = this.result + arg0;
|
|
}
|
|
},
|
|
{
|
|
key: "pushObject",
|
|
value: function pushObject(arg0) {
|
|
let tmp = null != arg0;
|
|
if (tmp) {
|
|
tmp = "toString" in arg0;
|
|
}
|
|
if (tmp) {
|
|
const self = this;
|
|
this.result = this.result + arg0.toString();
|
|
}
|
|
}
|
|
},
|
|
{
|
|
key: "finish",
|
|
value: function finish() {
|
|
const items = [this.result];
|
|
return items;
|
|
}
|
|
}
|
|
];
|
|
const _moduleResult = _createClass(StringBuilder, items);
|
|
|
|
export { formatToPlainString };
|
|
export const StringBuilder = _moduleResult;
|
|
export const stringFormatter = { format: formatToPlainString, builder: _moduleResult };
|