2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 556
|
|
|
|
|
// Function ID: 6709
|
|
|
|
|
// Name: defaultOptions
|
|
|
|
|
// Dependencies: []
|
|
|
|
|
|
|
|
|
|
// Module 556 (defaultOptions)
|
|
|
|
|
function defaultOptions() {
|
|
|
|
|
return { depthLimit: Number.MAX_SAFE_INTEGER, edgesLimit: Number.MAX_SAFE_INTEGER };
|
|
|
|
|
}
|
|
|
|
|
function stringify(arr, arg1, arg2, depthLimit) {
|
|
|
|
|
let tmp = depthLimit;
|
|
|
|
|
if (undefined === depthLimit) {
|
|
|
|
|
tmp = defaultOptions();
|
|
|
|
|
}
|
|
|
|
|
decirc(arr, "", 0, [], undefined, 0, tmp);
|
|
|
|
|
if (0 === arr2.length) {
|
|
|
|
|
const _JSON2 = JSON;
|
|
|
|
|
let json = JSON.stringify(arr, arg1, arg2);
|
|
|
|
|
} else {
|
|
|
|
|
const _JSON = JSON;
|
|
|
|
|
json = JSON.stringify(arr, replaceGetterValues(arg1), arg2);
|
|
|
|
|
}
|
|
|
|
|
if (0 !== arr.length) {
|
|
|
|
|
do {
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp11 = arr;
|
|
|
|
|
arr = arr.pop();
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp12 = arr;
|
|
|
|
|
if (4 === arr.length) {
|
|
|
|
|
let _Object = Object;
|
|
|
|
|
let tmp14 = arr;
|
|
|
|
|
let definePropertyResult = Object.defineProperty(tmp12[0], tmp12[1], tmp12[3]);
|
|
|
|
|
} else {
|
|
|
|
|
let tmp13 = arr;
|
|
|
|
|
tmp12[0][tmp12[1]] = tmp12[2];
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp16 = arr;
|
|
|
|
|
} while (0 !== arr.length);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return json;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
function setReplace(c0, arr, arg2, arr) {
|
|
|
|
|
const ownPropertyDescriptor = Object.getOwnPropertyDescriptor(arr, arg2);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (undefined !== ownPropertyDescriptor.get) {
|
|
|
|
|
if (ownPropertyDescriptor.configurable) {
|
|
|
|
|
const _Object = Object;
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj = { value: c0 };
|
|
|
|
|
Object.defineProperty(arr, arg2, obj);
|
|
|
|
|
const items = [arr, arg2, arr, ownPropertyDescriptor];
|
2026-07-20 16:05:17 +00:00
|
|
|
arr = arr.push(items);
|
|
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
const items1 = [arr, arg2, c0];
|
2026-07-20 16:05:17 +00:00
|
|
|
arr = arr2.push(items1);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
arr[arg2] = c0;
|
|
|
|
|
const items2 = [arr, arg2, arr];
|
2026-07-20 16:05:17 +00:00
|
|
|
arr.push(items2);
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
function decirc(arr, arg1, arg2, arr, arr, sum, depthLimit) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let length;
|
|
|
|
|
let length2;
|
2026-07-23 10:11:24 +00:00
|
|
|
sum = sum + 1;
|
2026-07-20 16:05:17 +00:00
|
|
|
if ("object" === typeof arr) {
|
|
|
|
|
if (null !== arr) {
|
|
|
|
|
let num2 = 0;
|
|
|
|
|
let num3 = 0;
|
|
|
|
|
if (0 < arr.length) {
|
|
|
|
|
while (arr[num3] !== arr) {
|
|
|
|
|
num3 = num3 + 1;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
setReplace(c1, arr, arg1, arr);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (undefined !== depthLimit.depthLimit) {
|
|
|
|
|
if (sum > depthLimit.depthLimit) {
|
2026-07-23 10:11:24 +00:00
|
|
|
setReplace(c0, arr, arg1, arr);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (undefined !== depthLimit.edgesLimit) {
|
|
|
|
|
if (arg2 + 1 > depthLimit.edgesLimit) {
|
2026-07-23 10:11:24 +00:00
|
|
|
setReplace(c0, arr, arg1, arr);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
arr.push(arr);
|
|
|
|
|
const _Array = Array;
|
|
|
|
|
if (Array.isArray(arr)) {
|
|
|
|
|
num2 = 0;
|
|
|
|
|
if (tmp14) {
|
|
|
|
|
do {
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp15 = decirc;
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp16 = num2;
|
|
|
|
|
let tmp17 = num2;
|
|
|
|
|
let tmp18 = arr;
|
|
|
|
|
let tmp19 = arr;
|
|
|
|
|
let tmp20 = sum;
|
|
|
|
|
let tmp21 = depthLimit;
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp22 = decirc(arr[num2], num2, num2, arr, arr, sum, depthLimit);
|
2026-07-20 16:05:17 +00:00
|
|
|
num2 = num2 + 1;
|
|
|
|
|
length2 = arr.length;
|
|
|
|
|
} while (num2 < length2);
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp14 = num2 < arr.length;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
const _Object = Object;
|
|
|
|
|
const keys = Object.keys(arr);
|
|
|
|
|
let num = 0;
|
|
|
|
|
if (num2 < keys.length) {
|
|
|
|
|
do {
|
|
|
|
|
let tmp5 = keys[num];
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp6 = decirc;
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp7 = tmp5;
|
|
|
|
|
let tmp8 = num;
|
|
|
|
|
let tmp9 = arr;
|
|
|
|
|
let tmp10 = arr;
|
|
|
|
|
let tmp11 = sum;
|
|
|
|
|
let tmp12 = depthLimit;
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp13 = decirc(arr[tmp5], tmp5, num, arr, arr, sum, depthLimit);
|
2026-07-20 16:05:17 +00:00
|
|
|
num = num + 1;
|
|
|
|
|
length = keys.length;
|
|
|
|
|
} while (num < length);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
arr.pop();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function compareFunction(arg0, arg1) {
|
|
|
|
|
let num = -1;
|
|
|
|
|
if (arg0 >= arg1) {
|
|
|
|
|
let num2 = 0;
|
|
|
|
|
if (arg0 > arg1) {
|
|
|
|
|
num2 = 1;
|
|
|
|
|
}
|
|
|
|
|
num = num2;
|
|
|
|
|
}
|
|
|
|
|
return num;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
function deterministicStringify(arr, arg1, arg2, depthLimit) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp = depthLimit;
|
|
|
|
|
if (undefined === depthLimit) {
|
|
|
|
|
tmp = defaultOptions();
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const tmp3 = deterministicDecirc(arr, "", 0, [], undefined, 0, tmp);
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp4 = tmp3;
|
|
|
|
|
if (!tmp3) {
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp4 = arr;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (0 === arr2.length) {
|
|
|
|
|
const _JSON2 = JSON;
|
|
|
|
|
let json = JSON.stringify(tmp4, arg1, arg2);
|
|
|
|
|
} else {
|
|
|
|
|
const _JSON = JSON;
|
|
|
|
|
json = JSON.stringify(tmp5, replaceGetterValues(arg1), arg2);
|
|
|
|
|
}
|
|
|
|
|
if (0 !== arr.length) {
|
|
|
|
|
do {
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp13 = arr;
|
|
|
|
|
arr = arr.pop();
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp14 = arr;
|
|
|
|
|
if (4 === arr.length) {
|
|
|
|
|
let _Object = Object;
|
|
|
|
|
let tmp16 = arr;
|
|
|
|
|
let definePropertyResult = Object.defineProperty(tmp14[0], tmp14[1], tmp14[3]);
|
|
|
|
|
} else {
|
|
|
|
|
let tmp15 = arr;
|
|
|
|
|
tmp14[0][tmp14[1]] = tmp14[2];
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp18 = arr;
|
|
|
|
|
} while (0 !== arr.length);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return json;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
function deterministicDecirc(arr, arg1, arg2, arr, arr, sum, depthLimit) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let length;
|
|
|
|
|
let length2;
|
|
|
|
|
let sum2;
|
|
|
|
|
let sum3;
|
2026-07-23 10:11:24 +00:00
|
|
|
sum = sum + 1;
|
|
|
|
|
if ("object" === typeof arr) {
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null !== arr) {
|
|
|
|
|
let num4 = 0;
|
|
|
|
|
if (0 < arr.length) {
|
|
|
|
|
while (arr[num4] !== arr) {
|
|
|
|
|
let tmp71 = num4;
|
|
|
|
|
let sum1 = num4 + 1;
|
|
|
|
|
num4 = sum1;
|
|
|
|
|
let tmp73 = arr;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
setReplace(c1, arr, arg1, arr);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if ("function" !== typeof arr.toJSON) {
|
|
|
|
|
if (undefined !== depthLimit.depthLimit) {
|
|
|
|
|
if (sum > depthLimit.depthLimit) {
|
2026-07-23 10:11:24 +00:00
|
|
|
setReplace(c0, arr, arg1, arr);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (undefined !== depthLimit.edgesLimit) {
|
|
|
|
|
if (arg2 + 1 > depthLimit.edgesLimit) {
|
2026-07-23 10:11:24 +00:00
|
|
|
setReplace(c0, arr, arg1, arr);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
arr = arr.push(arr);
|
|
|
|
|
const _Array = Array;
|
|
|
|
|
if (Array.isArray(arr)) {
|
|
|
|
|
let num2 = 0;
|
|
|
|
|
if (0 < arr.length) {
|
|
|
|
|
do {
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp38 = deterministicDecirc;
|
|
|
|
|
let tmp39 = arr;
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp40 = num2;
|
|
|
|
|
let tmp41 = arr;
|
|
|
|
|
let tmp42 = sum;
|
|
|
|
|
let tmp43 = depthLimit;
|
|
|
|
|
let tmp44 = num2;
|
|
|
|
|
let tmp45 = num2;
|
|
|
|
|
let tmp46 = arr;
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp47 = deterministicDecirc(arr[num2], num2, num2, arr, arr, sum, depthLimit);
|
2026-07-20 16:05:17 +00:00
|
|
|
sum2 = num2 + 1;
|
|
|
|
|
num2 = sum2;
|
|
|
|
|
length2 = arr.length;
|
|
|
|
|
} while (sum2 < length2);
|
|
|
|
|
}
|
|
|
|
|
let obj = arr;
|
|
|
|
|
arr = arr.pop();
|
|
|
|
|
} else {
|
|
|
|
|
obj = {};
|
|
|
|
|
const _Object = Object;
|
|
|
|
|
const keys = Object.keys(arr);
|
|
|
|
|
const sorted = keys.sort(compareFunction);
|
|
|
|
|
let num = 0;
|
|
|
|
|
if (0 < sorted.length) {
|
|
|
|
|
do {
|
|
|
|
|
let tmp16 = sorted;
|
|
|
|
|
let tmp17 = num;
|
|
|
|
|
let tmp18 = arr3[num];
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp19 = deterministicDecirc;
|
|
|
|
|
let tmp20 = arr;
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp21 = arr;
|
|
|
|
|
let tmp22 = sum;
|
|
|
|
|
let tmp23 = depthLimit;
|
|
|
|
|
let tmp24 = tmp18;
|
|
|
|
|
let tmp25 = num;
|
|
|
|
|
let tmp26 = arr;
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp27 = deterministicDecirc(arr[tmp18], tmp18, num, arr, arr, sum, depthLimit);
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp28 = obj;
|
|
|
|
|
obj[tmp18] = arr[tmp18];
|
|
|
|
|
sum3 = num + 1;
|
|
|
|
|
num = sum3;
|
|
|
|
|
length = arr3.length;
|
|
|
|
|
} while (sum3 < length);
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
if (undefined !== arr) {
|
|
|
|
|
const items = [arr, arg1, arr];
|
2026-07-20 16:05:17 +00:00
|
|
|
arr.push(items);
|
2026-07-23 10:11:24 +00:00
|
|
|
arr[arg1] = obj;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function replaceGetterValues(arg0) {
|
|
|
|
|
let fn = arg0;
|
2026-07-23 10:11:24 +00:00
|
|
|
fn = arg0;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (undefined === arg0) {
|
|
|
|
|
fn = (arg0, arg1) => arg1;
|
|
|
|
|
}
|
|
|
|
|
return function(arg0, arg1) {
|
|
|
|
|
let tmp4;
|
|
|
|
|
let tmp = arg1;
|
2026-07-23 10:11:24 +00:00
|
|
|
if (outer1_3.length > 0) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let num2 = 0;
|
|
|
|
|
tmp = arg1;
|
2026-07-23 10:11:24 +00:00
|
|
|
if (0 < outer1_3.length) {
|
2026-07-20 16:05:17 +00:00
|
|
|
while (true) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp3 = outer1_3;
|
|
|
|
|
tmp4 = outer1_3[num2];
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp5 = num2;
|
|
|
|
|
if (tmp4[1] === arg0) {
|
|
|
|
|
if (tmp4[0] === arg1) {
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
num2 = num2 + 1;
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp6 = outer1_3;
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp = arg1;
|
|
|
|
|
}
|
|
|
|
|
tmp = tmp4[2];
|
2026-07-23 10:11:24 +00:00
|
|
|
outer1_3.splice(num2, 1);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return fn.call(this, arg0, tmp);
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
stringify.default = stringify;
|
|
|
|
|
stringify.stable = deterministicStringify;
|
|
|
|
|
stringify.stableStringify = deterministicStringify;
|
2026-07-23 10:11:24 +00:00
|
|
|
let c0 = "[...]";
|
|
|
|
|
let c1 = "[Circular]";
|
2026-07-20 16:05:17 +00:00
|
|
|
let closure_2 = [];
|
|
|
|
|
let closure_3 = [];
|
|
|
|
|
|
|
|
|
|
export default stringify;
|