84 lines
4.2 KiB
JavaScript
84 lines
4.2 KiB
JavaScript
/* Metro module 3764; source: unknown; dependencies: [3738] */
|
|
function _fun28536(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#28536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3891:6, offset: 0x00f7cd04, size: 144 bytes, params: 8, frame: 15
|
|
const t_285372 = t_28537;
|
|
if (typeof exports !== 'object') {
|
|
if (typeof global.define !== 'function') {
|
|
t_285372(this.moment);
|
|
} else if (global.define.amd) {
|
|
global.define(['../moment'], t_285372);
|
|
} else {
|
|
t_285372(this.moment);
|
|
}
|
|
} else if (module === undefined) {
|
|
if (typeof global.define !== 'function') {
|
|
t_285372(this.moment);
|
|
} else if (global.define.amd) {
|
|
global.define(['../moment'], t_285372);
|
|
} else {
|
|
t_285372(this.moment);
|
|
}
|
|
} else if (typeof require === 'function') {
|
|
t_285372(require(3738) /* metro dependency 3738 */);
|
|
} else if (typeof global.define !== 'function') {
|
|
t_285372(this.moment);
|
|
} else if (global.define.amd) {
|
|
global.define(['../moment'], t_285372);
|
|
} else {
|
|
t_285372(this.moment);
|
|
}
|
|
function t_28537(a0) { // fn#28537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3891:47, offset: 0x00f7cd94, size: 280 bytes, params: 2, frame: 16
|
|
const defineLocale = a0.defineLocale;
|
|
const object = {};
|
|
object.months = '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_');
|
|
object.monthsShort = '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_');
|
|
object.weekdays = '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_');
|
|
object.weekdaysShort = '周日_周一_周二_周三_周四_周五_周六'.split('_');
|
|
object.weekdaysMin = '日_一_二_三_四_五_六'.split('_');
|
|
object.longDateFormat = {'LT': 'HH:mm', 'LTS': 'HH:mm:ss', 'L': 'YYYY/MM/DD', 'LL': 'YYYY年M月D日',
|
|
'LLL': 'YYYY年M月D日Ah点mm分', 'LLLL': 'YYYY年M月D日ddddAh点mm分', 'l': 'YYYY/M/D', 'll': 'YYYY年M月D日',
|
|
'lll': 'YYYY年M月D日 HH:mm', 'llll': 'YYYY年M月D日dddd HH:mm'};
|
|
object.meridiemParse = RegExp('凌晨|早上|上午|中午|下午|晚上', '');
|
|
object.meridiemHour = function(a0, a1) {
|
|
var r3;
|
|
var value = a0;
|
|
r3 = value !== 12 ? value : 0;
|
|
return a1 === '凌晨' || a1 === '早上' || a1 === '上午' ? r3 : a1 === '下午' || a1 === '晚上' ? r3 + 12 : r3 >= 11 ? r3 : r3 + 12;
|
|
};
|
|
object.meridiem = function(a0, a1, a2) {
|
|
var value = 100 * a0 + a1;
|
|
return value < 600 ? '凌晨' : value < 900 ? '早上' : value < 1130 ? '上午' : value < 1230 ? '中午' : value < 1800 ? '下午' : '晚上';
|
|
};
|
|
object.calendar = {'sameDay': '[今天]LT', 'nextDay': '[明天]LT', 'nextWeek': '[下]ddddLT', 'lastDay': '[昨天]LT',
|
|
'lastWeek': '[上]ddddLT', 'sameElse': 'L'};
|
|
object.dayOfMonthOrdinalParse = RegExp('\\d{1,2}(日|月|周)', '');
|
|
object.ordinal = function(a0, a1) {
|
|
if (a1 === 'd') {
|
|
return a0 + '日';
|
|
}
|
|
if (a1 === 'D') {
|
|
return a0 + '日';
|
|
}
|
|
if (a1 === 'DDD') {
|
|
return a0 + '日';
|
|
}
|
|
if (a1 === 'M') {
|
|
return a0 + '月';
|
|
}
|
|
if (a1 === 'w') {
|
|
return a0 + '周';
|
|
}
|
|
if (a1 === 'W') {
|
|
return a0 + '周';
|
|
}
|
|
return a0;
|
|
};
|
|
object.relativeTime = {'future': '%s内', 'past': '%s前', 's': '几秒', 'ss': '%d 秒', 'm': '1 分钟', 'mm': '%d 分钟',
|
|
'h': '1 小时', 'hh': '%d 小时', 'd': '1 天', 'dd': '%d 天', 'M': '1 个月', 'MM': '%d 个月', 'y': '1 年', 'yy': '%d 年'};
|
|
object.week = {'dow': 1, 'doy': 4};
|
|
return Reflect.apply(defineLocale, a0, ['zh-cn', object]);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun28536, 3764, [3738]) /* metro module 3764, dependencies: [3738] */;
|