decord/source/__polyfill/14xxx/module_14443.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

113 lines
2.9 KiB
JavaScript

// Module ID: 14443
// Function ID: 14444
// Dependencies: [14444, 14392, 14388, 14389, 14408, 14445, 14446, 14411]
// Module 14443
import _mod14388 from "module_14388" /* 14388 */;
import _mod14389 from "module_14389" /* 14389 */;
import _mod14392 from "module_14392" /* 14392 */;
import _mod14408 from "module_14408" /* 14408 */;
import _mod14411 from "module_14411" /* 14411 */;
import state from "state" /* 14446 */;
import prop from "module_14444" /* 14444 */;
let closure_5 = _mod14392("".slice);
let closure_6 = _mod14392("".replace);
let closure_7 = _mod14392([].join);
let closure_8 = _mod14388 && !_mod14389(() => 8 !== defineProperty(() => {
}, "length", { value: 8 }).length);
const tmp = _mod14388 && !_mod14389(() => 8 !== defineProperty(() => {
}, "length", { value: 8 }).length);
let closure_9 = String(String).split("String");
const fn = (toString, toString2, arg2) => {
let text = toString2;
if ("Symbol(" === closure_5(String(toString2), 0, 7)) {
text = `${"[" + closure_6(tmp(toString2), /^Symbol\(([^)]*)\).*$/, "$1")}]`;
}
let getter = arg2;
if (arg2) {
getter = arg2.getter;
}
let text1 = text;
if (getter) {
text1 = `get ${tmp2}`;
}
let setter = arg2;
if (arg2) {
setter = arg2.setter;
}
let text2 = text1;
if (setter) {
text2 = `set ${tmp4}`;
}
const tmp8 = _mod14408(toString, "name");
let tmp9 = !tmp8;
if (tmp8) {
tmp9 = tmp6(14445).CONFIGURABLE && toString.name !== text2;
const tmp10 = tmp6(14445).CONFIGURABLE && toString.name !== text2;
}
if (tmp9) {
if (tmp6(14388)) {
const obj = { value: text2, configurable: true };
defineProperty(toString, "name", obj);
} else {
toString.name = text2;
}
}
let tmp13 = closure_8;
if (closure_8) {
tmp13 = arg2;
}
if (tmp13) {
tmp13 = tmp6(14408)(arg2, "arity");
}
if (tmp13) {
tmp13 = toString.length !== arg2.arity;
}
if (tmp13) {
const obj2 = { value: arg2.arity };
defineProperty(toString, "length", obj2);
}
try {
if (arg2) {
if (tmp6(14408)(arg2, "constructor")) {
if (arg2.constructor) {
if (tmp6(14388)) {
defineProperty(toString, "prototype", { writable: false });
}
}
const enforceResult = tmp6(14446).enforce(toString);
if (!tmp6(14408)(enforceResult, "source")) {
let str11 = "";
if (typeof text2 === "string") {
str11 = text2;
}
enforceResult.source = closure_7(closure_9, str11);
}
return toString;
}
}
if (toString.prototype) {
toString.prototype = undefined;
}
} catch (err) {
}
};
function toString() {
const self = this;
let source = _mod14411(this);
if (source) {
source = state.get(self).source;
const tmpResult = state;
}
if (!source) {
source = prop(self);
}
return source;
}
fn(toString, "toString");
Function.prototype.toString = toString;
export default fn;