Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
130 lines
3.2 KiB
JavaScript
130 lines
3.2 KiB
JavaScript
// Module ID: 3875
|
|
// Function ID: 3876
|
|
// Dependencies: [3876, 3877, 3728, 3729, 3732]
|
|
// Exports: default
|
|
|
|
// Module 3875
|
|
import module_3876_mod from "module_3876" /* 3876 */;
|
|
import module_3877_mod from "module_3877" /* 3877 */;
|
|
import _typeof_mod from "module_3728" /* 3728 */;
|
|
import requiredArgs_mod from "requiredArgs" /* 3729 */;
|
|
import module_3732_mod from "module_3732" /* 3732 */;
|
|
|
|
function _typeof(arg0) {
|
|
if (typeof Symbol === "function") {
|
|
let _Symbol = Symbol;
|
|
if (typeof Symbol.iterator === "symbol") {
|
|
_typeof = function _typeof(arg0) {
|
|
return typeof arg0;
|
|
};
|
|
}
|
|
return _typeof(arg0);
|
|
}
|
|
_typeof = function _typeof(arg0) {
|
|
if (arg0) {
|
|
const _Symbol = Symbol;
|
|
if (typeof Symbol === "function") {
|
|
const _Symbol3 = Symbol;
|
|
if (arg0.constructor === Symbol) {
|
|
const _Symbol2 = Symbol;
|
|
let str = "symbol";
|
|
}
|
|
return str;
|
|
}
|
|
}
|
|
str = typeof arg0;
|
|
};
|
|
}
|
|
let module_3876 = module_3876_mod;
|
|
if (!module_3876) {
|
|
const obj = { default: module_3876 };
|
|
let tmp3 = obj;
|
|
} else {
|
|
tmp3 = module_3876;
|
|
}
|
|
module_3876 = tmp3;
|
|
let module_3877 = module_3877_mod;
|
|
if (!module_3877) {
|
|
const obj2 = { default: module_3877 };
|
|
let tmp5 = obj2;
|
|
} else {
|
|
tmp5 = module_3877;
|
|
}
|
|
module_3877 = tmp5;
|
|
let _typeof = _typeof_mod;
|
|
if (!_typeof) {
|
|
const obj3 = { default: _typeof };
|
|
let tmp7 = obj3;
|
|
} else {
|
|
tmp7 = _typeof;
|
|
}
|
|
_typeof = tmp7;
|
|
let requiredArgs = requiredArgs_mod;
|
|
if (!requiredArgs) {
|
|
const obj4 = { default: requiredArgs };
|
|
let tmp9 = obj4;
|
|
} else {
|
|
tmp9 = requiredArgs;
|
|
}
|
|
requiredArgs = tmp9;
|
|
let module_3732 = module_3732_mod;
|
|
if (!module_3732) {
|
|
const obj5 = { default: module_3732 };
|
|
let tmp11 = obj5;
|
|
} else {
|
|
tmp11 = module_3732;
|
|
}
|
|
module_3732 = tmp11;
|
|
|
|
export default function add(arg0, years) {
|
|
requiredArgs.default(2, arguments);
|
|
if (years) {
|
|
if ("object" === _typeof(years)) {
|
|
let num = 0;
|
|
if (years.years) {
|
|
num = module_3732.default(years.years);
|
|
}
|
|
let num2 = 0;
|
|
if (years.months) {
|
|
num2 = module_3732.default(years.months);
|
|
}
|
|
let num3 = 0;
|
|
if (years.weeks) {
|
|
num3 = module_3732.default(years.weeks);
|
|
}
|
|
let num4 = 0;
|
|
if (years.days) {
|
|
num4 = module_3732.default(years.days);
|
|
}
|
|
let num5 = 0;
|
|
if (years.hours) {
|
|
num5 = module_3732.default(years.hours);
|
|
}
|
|
let num6 = 0;
|
|
if (years.minutes) {
|
|
num6 = module_3732.default(years.minutes);
|
|
}
|
|
let num7 = 0;
|
|
if (years.seconds) {
|
|
num7 = module_3732.default(years.seconds);
|
|
}
|
|
const defaultResult1 = _typeof.default(arg0);
|
|
if (num2) {
|
|
let defaultResult2 = module_3877.default(defaultResult1, num2 + 12 * num);
|
|
} else {
|
|
defaultResult2 = defaultResult1;
|
|
}
|
|
if (num4) {
|
|
let defaultResult3 = module_3876.default(defaultResult2, num4 + 7 * num3);
|
|
} else {
|
|
defaultResult3 = defaultResult2;
|
|
}
|
|
const _Date = Date;
|
|
const sum = num7 + 60 * (num6 + 60 * num5);
|
|
const date = new Date(defaultResult3.getTime() + 1000 * sum);
|
|
return date;
|
|
}
|
|
}
|
|
return new Date(NaN);
|
|
};
|
|
export default exports.default;
|