Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
130 lines
3.2 KiB
JavaScript
130 lines
3.2 KiB
JavaScript
// Module ID: 3810
|
|
// Function ID: 3811
|
|
// Dependencies: [3811, 3812, 3663, 3664, 3667]
|
|
// Exports: default
|
|
|
|
// Module 3810
|
|
import module_3811_mod from "module_3811" /* 3811 */;
|
|
import module_3812_mod from "module_3812" /* 3812 */;
|
|
import _typeof_mod from "module_3663" /* 3663 */;
|
|
import requiredArgs_mod from "requiredArgs" /* 3664 */;
|
|
import module_3667_mod from "module_3667" /* 3667 */;
|
|
|
|
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_3811 = module_3811_mod;
|
|
if (!module_3811) {
|
|
const obj = { default: module_3811 };
|
|
let tmp3 = obj;
|
|
} else {
|
|
tmp3 = module_3811;
|
|
}
|
|
module_3811 = tmp3;
|
|
let module_3812 = module_3812_mod;
|
|
if (!module_3812) {
|
|
const obj2 = { default: module_3812 };
|
|
let tmp5 = obj2;
|
|
} else {
|
|
tmp5 = module_3812;
|
|
}
|
|
module_3812 = 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_3667 = module_3667_mod;
|
|
if (!module_3667) {
|
|
const obj5 = { default: module_3667 };
|
|
let tmp11 = obj5;
|
|
} else {
|
|
tmp11 = module_3667;
|
|
}
|
|
module_3667 = 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_3667.default(years.years);
|
|
}
|
|
let num2 = 0;
|
|
if (years.months) {
|
|
num2 = module_3667.default(years.months);
|
|
}
|
|
let num3 = 0;
|
|
if (years.weeks) {
|
|
num3 = module_3667.default(years.weeks);
|
|
}
|
|
let num4 = 0;
|
|
if (years.days) {
|
|
num4 = module_3667.default(years.days);
|
|
}
|
|
let num5 = 0;
|
|
if (years.hours) {
|
|
num5 = module_3667.default(years.hours);
|
|
}
|
|
let num6 = 0;
|
|
if (years.minutes) {
|
|
num6 = module_3667.default(years.minutes);
|
|
}
|
|
let num7 = 0;
|
|
if (years.seconds) {
|
|
num7 = module_3667.default(years.seconds);
|
|
}
|
|
const defaultResult1 = _typeof.default(arg0);
|
|
if (num2) {
|
|
let defaultResult2 = module_3812.default(defaultResult1, num2 + 12 * num);
|
|
} else {
|
|
defaultResult2 = defaultResult1;
|
|
}
|
|
if (num4) {
|
|
let defaultResult3 = module_3811.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;
|