Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: date.js
this["wp"] = this["wp"] || {}; this["wp"]["date"] =
[0] Fix | Delete
/******/ (function(modules) { // webpackBootstrap
[1] Fix | Delete
/******/ // The module cache
[2] Fix | Delete
/******/ var installedModules = {};
[3] Fix | Delete
/******/
[4] Fix | Delete
/******/ // The require function
[5] Fix | Delete
/******/ function __webpack_require__(moduleId) {
[6] Fix | Delete
/******/
[7] Fix | Delete
/******/ // Check if module is in cache
[8] Fix | Delete
/******/ if(installedModules[moduleId]) {
[9] Fix | Delete
/******/ return installedModules[moduleId].exports;
[10] Fix | Delete
/******/ }
[11] Fix | Delete
/******/ // Create a new module (and put it into the cache)
[12] Fix | Delete
/******/ var module = installedModules[moduleId] = {
[13] Fix | Delete
/******/ i: moduleId,
[14] Fix | Delete
/******/ l: false,
[15] Fix | Delete
/******/ exports: {}
[16] Fix | Delete
/******/ };
[17] Fix | Delete
/******/
[18] Fix | Delete
/******/ // Execute the module function
[19] Fix | Delete
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
[20] Fix | Delete
/******/
[21] Fix | Delete
/******/ // Flag the module as loaded
[22] Fix | Delete
/******/ module.l = true;
[23] Fix | Delete
/******/
[24] Fix | Delete
/******/ // Return the exports of the module
[25] Fix | Delete
/******/ return module.exports;
[26] Fix | Delete
/******/ }
[27] Fix | Delete
/******/
[28] Fix | Delete
/******/
[29] Fix | Delete
/******/ // expose the modules object (__webpack_modules__)
[30] Fix | Delete
/******/ __webpack_require__.m = modules;
[31] Fix | Delete
/******/
[32] Fix | Delete
/******/ // expose the module cache
[33] Fix | Delete
/******/ __webpack_require__.c = installedModules;
[34] Fix | Delete
/******/
[35] Fix | Delete
/******/ // define getter function for harmony exports
[36] Fix | Delete
/******/ __webpack_require__.d = function(exports, name, getter) {
[37] Fix | Delete
/******/ if(!__webpack_require__.o(exports, name)) {
[38] Fix | Delete
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
[39] Fix | Delete
/******/ }
[40] Fix | Delete
/******/ };
[41] Fix | Delete
/******/
[42] Fix | Delete
/******/ // define __esModule on exports
[43] Fix | Delete
/******/ __webpack_require__.r = function(exports) {
[44] Fix | Delete
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
[45] Fix | Delete
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
[46] Fix | Delete
/******/ }
[47] Fix | Delete
/******/ Object.defineProperty(exports, '__esModule', { value: true });
[48] Fix | Delete
/******/ };
[49] Fix | Delete
/******/
[50] Fix | Delete
/******/ // create a fake namespace object
[51] Fix | Delete
/******/ // mode & 1: value is a module id, require it
[52] Fix | Delete
/******/ // mode & 2: merge all properties of value into the ns
[53] Fix | Delete
/******/ // mode & 4: return value when already ns object
[54] Fix | Delete
/******/ // mode & 8|1: behave like require
[55] Fix | Delete
/******/ __webpack_require__.t = function(value, mode) {
[56] Fix | Delete
/******/ if(mode & 1) value = __webpack_require__(value);
[57] Fix | Delete
/******/ if(mode & 8) return value;
[58] Fix | Delete
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
[59] Fix | Delete
/******/ var ns = Object.create(null);
[60] Fix | Delete
/******/ __webpack_require__.r(ns);
[61] Fix | Delete
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
[62] Fix | Delete
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
[63] Fix | Delete
/******/ return ns;
[64] Fix | Delete
/******/ };
[65] Fix | Delete
/******/
[66] Fix | Delete
/******/ // getDefaultExport function for compatibility with non-harmony modules
[67] Fix | Delete
/******/ __webpack_require__.n = function(module) {
[68] Fix | Delete
/******/ var getter = module && module.__esModule ?
[69] Fix | Delete
/******/ function getDefault() { return module['default']; } :
[70] Fix | Delete
/******/ function getModuleExports() { return module; };
[71] Fix | Delete
/******/ __webpack_require__.d(getter, 'a', getter);
[72] Fix | Delete
/******/ return getter;
[73] Fix | Delete
/******/ };
[74] Fix | Delete
/******/
[75] Fix | Delete
/******/ // Object.prototype.hasOwnProperty.call
[76] Fix | Delete
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
[77] Fix | Delete
/******/
[78] Fix | Delete
/******/ // __webpack_public_path__
[79] Fix | Delete
/******/ __webpack_require__.p = "";
[80] Fix | Delete
/******/
[81] Fix | Delete
/******/
[82] Fix | Delete
/******/ // Load entry module and return exports
[83] Fix | Delete
/******/ return __webpack_require__(__webpack_require__.s = "BWYS");
[84] Fix | Delete
/******/ })
[85] Fix | Delete
/************************************************************************/
[86] Fix | Delete
/******/ ({
[87] Fix | Delete
[88] Fix | Delete
/***/ "4CCe":
[89] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[90] Fix | Delete
[91] Fix | Delete
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;//! moment-timezone-utils.js
[92] Fix | Delete
//! version : 0.5.33
[93] Fix | Delete
//! Copyright (c) JS Foundation and other contributors
[94] Fix | Delete
//! license : MIT
[95] Fix | Delete
//! github.com/moment/moment-timezone
[96] Fix | Delete
[97] Fix | Delete
(function (root, factory) {
[98] Fix | Delete
"use strict";
[99] Fix | Delete
[100] Fix | Delete
/*global define*/
[101] Fix | Delete
if ( true && module.exports) {
[102] Fix | Delete
module.exports = factory(__webpack_require__("f0Wu")); // Node
[103] Fix | Delete
} else if (true) {
[104] Fix | Delete
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__("wy2R")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
[105] Fix | Delete
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
[106] Fix | Delete
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
[107] Fix | Delete
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); // AMD
[108] Fix | Delete
} else {}
[109] Fix | Delete
}(this, function (moment) {
[110] Fix | Delete
"use strict";
[111] Fix | Delete
[112] Fix | Delete
if (!moment.tz) {
[113] Fix | Delete
throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");
[114] Fix | Delete
}
[115] Fix | Delete
[116] Fix | Delete
/************************************
[117] Fix | Delete
Pack Base 60
[118] Fix | Delete
************************************/
[119] Fix | Delete
[120] Fix | Delete
var BASE60 = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX',
[121] Fix | Delete
EPSILON = 0.000001; // Used to fix floating point rounding errors
[122] Fix | Delete
[123] Fix | Delete
function packBase60Fraction(fraction, precision) {
[124] Fix | Delete
var buffer = '.',
[125] Fix | Delete
output = '',
[126] Fix | Delete
current;
[127] Fix | Delete
[128] Fix | Delete
while (precision > 0) {
[129] Fix | Delete
precision -= 1;
[130] Fix | Delete
fraction *= 60;
[131] Fix | Delete
current = Math.floor(fraction + EPSILON);
[132] Fix | Delete
buffer += BASE60[current];
[133] Fix | Delete
fraction -= current;
[134] Fix | Delete
[135] Fix | Delete
// Only add buffer to output once we have a non-zero value.
[136] Fix | Delete
// This makes '.000' output '', and '.100' output '.1'
[137] Fix | Delete
if (current) {
[138] Fix | Delete
output += buffer;
[139] Fix | Delete
buffer = '';
[140] Fix | Delete
}
[141] Fix | Delete
}
[142] Fix | Delete
[143] Fix | Delete
return output;
[144] Fix | Delete
}
[145] Fix | Delete
[146] Fix | Delete
function packBase60(number, precision) {
[147] Fix | Delete
var output = '',
[148] Fix | Delete
absolute = Math.abs(number),
[149] Fix | Delete
whole = Math.floor(absolute),
[150] Fix | Delete
fraction = packBase60Fraction(absolute - whole, Math.min(~~precision, 10));
[151] Fix | Delete
[152] Fix | Delete
while (whole > 0) {
[153] Fix | Delete
output = BASE60[whole % 60] + output;
[154] Fix | Delete
whole = Math.floor(whole / 60);
[155] Fix | Delete
}
[156] Fix | Delete
[157] Fix | Delete
if (number < 0) {
[158] Fix | Delete
output = '-' + output;
[159] Fix | Delete
}
[160] Fix | Delete
[161] Fix | Delete
if (output && fraction) {
[162] Fix | Delete
return output + fraction;
[163] Fix | Delete
}
[164] Fix | Delete
[165] Fix | Delete
if (!fraction && output === '-') {
[166] Fix | Delete
return '0';
[167] Fix | Delete
}
[168] Fix | Delete
[169] Fix | Delete
return output || fraction || '0';
[170] Fix | Delete
}
[171] Fix | Delete
[172] Fix | Delete
/************************************
[173] Fix | Delete
Pack
[174] Fix | Delete
************************************/
[175] Fix | Delete
[176] Fix | Delete
function packUntils(untils) {
[177] Fix | Delete
var out = [],
[178] Fix | Delete
last = 0,
[179] Fix | Delete
i;
[180] Fix | Delete
[181] Fix | Delete
for (i = 0; i < untils.length - 1; i++) {
[182] Fix | Delete
out[i] = packBase60(Math.round((untils[i] - last) / 1000) / 60, 1);
[183] Fix | Delete
last = untils[i];
[184] Fix | Delete
}
[185] Fix | Delete
[186] Fix | Delete
return out.join(' ');
[187] Fix | Delete
}
[188] Fix | Delete
[189] Fix | Delete
function packAbbrsAndOffsets(source) {
[190] Fix | Delete
var index = 0,
[191] Fix | Delete
abbrs = [],
[192] Fix | Delete
offsets = [],
[193] Fix | Delete
indices = [],
[194] Fix | Delete
map = {},
[195] Fix | Delete
i, key;
[196] Fix | Delete
[197] Fix | Delete
for (i = 0; i < source.abbrs.length; i++) {
[198] Fix | Delete
key = source.abbrs[i] + '|' + source.offsets[i];
[199] Fix | Delete
if (map[key] === undefined) {
[200] Fix | Delete
map[key] = index;
[201] Fix | Delete
abbrs[index] = source.abbrs[i];
[202] Fix | Delete
offsets[index] = packBase60(Math.round(source.offsets[i] * 60) / 60, 1);
[203] Fix | Delete
index++;
[204] Fix | Delete
}
[205] Fix | Delete
indices[i] = packBase60(map[key], 0);
[206] Fix | Delete
}
[207] Fix | Delete
[208] Fix | Delete
return abbrs.join(' ') + '|' + offsets.join(' ') + '|' + indices.join('');
[209] Fix | Delete
}
[210] Fix | Delete
[211] Fix | Delete
function packPopulation (number) {
[212] Fix | Delete
if (!number) {
[213] Fix | Delete
return '';
[214] Fix | Delete
}
[215] Fix | Delete
if (number < 1000) {
[216] Fix | Delete
return number;
[217] Fix | Delete
}
[218] Fix | Delete
var exponent = String(number | 0).length - 2;
[219] Fix | Delete
var precision = Math.round(number / Math.pow(10, exponent));
[220] Fix | Delete
return precision + 'e' + exponent;
[221] Fix | Delete
}
[222] Fix | Delete
[223] Fix | Delete
function packCountries (countries) {
[224] Fix | Delete
if (!countries) {
[225] Fix | Delete
return '';
[226] Fix | Delete
}
[227] Fix | Delete
return countries.join(' ');
[228] Fix | Delete
}
[229] Fix | Delete
[230] Fix | Delete
function validatePackData (source) {
[231] Fix | Delete
if (!source.name) { throw new Error("Missing name"); }
[232] Fix | Delete
if (!source.abbrs) { throw new Error("Missing abbrs"); }
[233] Fix | Delete
if (!source.untils) { throw new Error("Missing untils"); }
[234] Fix | Delete
if (!source.offsets) { throw new Error("Missing offsets"); }
[235] Fix | Delete
if (
[236] Fix | Delete
source.offsets.length !== source.untils.length ||
[237] Fix | Delete
source.offsets.length !== source.abbrs.length
[238] Fix | Delete
) {
[239] Fix | Delete
throw new Error("Mismatched array lengths");
[240] Fix | Delete
}
[241] Fix | Delete
}
[242] Fix | Delete
[243] Fix | Delete
function pack (source) {
[244] Fix | Delete
validatePackData(source);
[245] Fix | Delete
return [
[246] Fix | Delete
source.name, // 0 - timezone name
[247] Fix | Delete
packAbbrsAndOffsets(source), // 1 - abbrs, 2 - offsets, 3 - indices
[248] Fix | Delete
packUntils(source.untils), // 4 - untils
[249] Fix | Delete
packPopulation(source.population) // 5 - population
[250] Fix | Delete
].join('|');
[251] Fix | Delete
}
[252] Fix | Delete
[253] Fix | Delete
function packCountry (source) {
[254] Fix | Delete
return [
[255] Fix | Delete
source.name,
[256] Fix | Delete
source.zones.join(' '),
[257] Fix | Delete
].join('|');
[258] Fix | Delete
}
[259] Fix | Delete
[260] Fix | Delete
/************************************
[261] Fix | Delete
Create Links
[262] Fix | Delete
************************************/
[263] Fix | Delete
[264] Fix | Delete
function arraysAreEqual(a, b) {
[265] Fix | Delete
var i;
[266] Fix | Delete
[267] Fix | Delete
if (a.length !== b.length) { return false; }
[268] Fix | Delete
[269] Fix | Delete
for (i = 0; i < a.length; i++) {
[270] Fix | Delete
if (a[i] !== b[i]) {
[271] Fix | Delete
return false;
[272] Fix | Delete
}
[273] Fix | Delete
}
[274] Fix | Delete
return true;
[275] Fix | Delete
}
[276] Fix | Delete
[277] Fix | Delete
function zonesAreEqual(a, b) {
[278] Fix | Delete
return arraysAreEqual(a.offsets, b.offsets) && arraysAreEqual(a.abbrs, b.abbrs) && arraysAreEqual(a.untils, b.untils);
[279] Fix | Delete
}
[280] Fix | Delete
[281] Fix | Delete
function findAndCreateLinks (input, output, links, groupLeaders) {
[282] Fix | Delete
var i, j, a, b, group, foundGroup, groups = [];
[283] Fix | Delete
[284] Fix | Delete
for (i = 0; i < input.length; i++) {
[285] Fix | Delete
foundGroup = false;
[286] Fix | Delete
a = input[i];
[287] Fix | Delete
[288] Fix | Delete
for (j = 0; j < groups.length; j++) {
[289] Fix | Delete
group = groups[j];
[290] Fix | Delete
b = group[0];
[291] Fix | Delete
if (zonesAreEqual(a, b)) {
[292] Fix | Delete
if (a.population > b.population) {
[293] Fix | Delete
group.unshift(a);
[294] Fix | Delete
} else if (a.population === b.population && groupLeaders && groupLeaders[a.name]) {
[295] Fix | Delete
group.unshift(a);
[296] Fix | Delete
} else {
[297] Fix | Delete
group.push(a);
[298] Fix | Delete
}
[299] Fix | Delete
foundGroup = true;
[300] Fix | Delete
}
[301] Fix | Delete
}
[302] Fix | Delete
[303] Fix | Delete
if (!foundGroup) {
[304] Fix | Delete
groups.push([a]);
[305] Fix | Delete
}
[306] Fix | Delete
}
[307] Fix | Delete
[308] Fix | Delete
for (i = 0; i < groups.length; i++) {
[309] Fix | Delete
group = groups[i];
[310] Fix | Delete
output.push(group[0]);
[311] Fix | Delete
for (j = 1; j < group.length; j++) {
[312] Fix | Delete
links.push(group[0].name + '|' + group[j].name);
[313] Fix | Delete
}
[314] Fix | Delete
}
[315] Fix | Delete
}
[316] Fix | Delete
[317] Fix | Delete
function createLinks (source, groupLeaders) {
[318] Fix | Delete
var zones = [],
[319] Fix | Delete
links = [];
[320] Fix | Delete
[321] Fix | Delete
if (source.links) {
[322] Fix | Delete
links = source.links.slice();
[323] Fix | Delete
}
[324] Fix | Delete
[325] Fix | Delete
findAndCreateLinks(source.zones, zones, links, groupLeaders);
[326] Fix | Delete
[327] Fix | Delete
return {
[328] Fix | Delete
version : source.version,
[329] Fix | Delete
zones : zones,
[330] Fix | Delete
links : links.sort()
[331] Fix | Delete
};
[332] Fix | Delete
}
[333] Fix | Delete
[334] Fix | Delete
/************************************
[335] Fix | Delete
Filter Years
[336] Fix | Delete
************************************/
[337] Fix | Delete
[338] Fix | Delete
function findStartAndEndIndex (untils, start, end) {
[339] Fix | Delete
var startI = 0,
[340] Fix | Delete
endI = untils.length + 1,
[341] Fix | Delete
untilYear,
[342] Fix | Delete
i;
[343] Fix | Delete
[344] Fix | Delete
if (!end) {
[345] Fix | Delete
end = start;
[346] Fix | Delete
}
[347] Fix | Delete
[348] Fix | Delete
if (start > end) {
[349] Fix | Delete
i = start;
[350] Fix | Delete
start = end;
[351] Fix | Delete
end = i;
[352] Fix | Delete
}
[353] Fix | Delete
[354] Fix | Delete
for (i = 0; i < untils.length; i++) {
[355] Fix | Delete
if (untils[i] == null) {
[356] Fix | Delete
continue;
[357] Fix | Delete
}
[358] Fix | Delete
untilYear = new Date(untils[i]).getUTCFullYear();
[359] Fix | Delete
if (untilYear < start) {
[360] Fix | Delete
startI = i + 1;
[361] Fix | Delete
}
[362] Fix | Delete
if (untilYear > end) {
[363] Fix | Delete
endI = Math.min(endI, i + 1);
[364] Fix | Delete
}
[365] Fix | Delete
}
[366] Fix | Delete
[367] Fix | Delete
return [startI, endI];
[368] Fix | Delete
}
[369] Fix | Delete
[370] Fix | Delete
function filterYears (source, start, end) {
[371] Fix | Delete
var slice = Array.prototype.slice,
[372] Fix | Delete
indices = findStartAndEndIndex(source.untils, start, end),
[373] Fix | Delete
untils = slice.apply(source.untils, indices);
[374] Fix | Delete
[375] Fix | Delete
untils[untils.length - 1] = null;
[376] Fix | Delete
[377] Fix | Delete
return {
[378] Fix | Delete
name : source.name,
[379] Fix | Delete
abbrs : slice.apply(source.abbrs, indices),
[380] Fix | Delete
untils : untils,
[381] Fix | Delete
offsets : slice.apply(source.offsets, indices),
[382] Fix | Delete
population : source.population,
[383] Fix | Delete
countries : source.countries
[384] Fix | Delete
};
[385] Fix | Delete
}
[386] Fix | Delete
[387] Fix | Delete
/************************************
[388] Fix | Delete
Filter, Link, and Pack
[389] Fix | Delete
************************************/
[390] Fix | Delete
[391] Fix | Delete
function filterLinkPack (input, start, end, groupLeaders) {
[392] Fix | Delete
var i,
[393] Fix | Delete
inputZones = input.zones,
[394] Fix | Delete
outputZones = [],
[395] Fix | Delete
output;
[396] Fix | Delete
[397] Fix | Delete
for (i = 0; i < inputZones.length; i++) {
[398] Fix | Delete
outputZones[i] = filterYears(inputZones[i], start, end);
[399] Fix | Delete
}
[400] Fix | Delete
[401] Fix | Delete
output = createLinks({
[402] Fix | Delete
zones : outputZones,
[403] Fix | Delete
links : input.links.slice(),
[404] Fix | Delete
version : input.version
[405] Fix | Delete
}, groupLeaders);
[406] Fix | Delete
[407] Fix | Delete
for (i = 0; i < output.zones.length; i++) {
[408] Fix | Delete
output.zones[i] = pack(output.zones[i]);
[409] Fix | Delete
}
[410] Fix | Delete
[411] Fix | Delete
output.countries = input.countries ? input.countries.map(function (unpacked) {
[412] Fix | Delete
return packCountry(unpacked);
[413] Fix | Delete
}) : [];
[414] Fix | Delete
[415] Fix | Delete
return output;
[416] Fix | Delete
}
[417] Fix | Delete
[418] Fix | Delete
/************************************
[419] Fix | Delete
Exports
[420] Fix | Delete
************************************/
[421] Fix | Delete
[422] Fix | Delete
moment.tz.pack = pack;
[423] Fix | Delete
moment.tz.packBase60 = packBase60;
[424] Fix | Delete
moment.tz.createLinks = createLinks;
[425] Fix | Delete
moment.tz.filterYears = filterYears;
[426] Fix | Delete
moment.tz.filterLinkPack = filterLinkPack;
[427] Fix | Delete
moment.tz.packCountry = packCountry;
[428] Fix | Delete
[429] Fix | Delete
return moment;
[430] Fix | Delete
}));
[431] Fix | Delete
[432] Fix | Delete
[433] Fix | Delete
/***/ }),
[434] Fix | Delete
[435] Fix | Delete
/***/ "BWYS":
[436] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[437] Fix | Delete
[438] Fix | Delete
"use strict";
[439] Fix | Delete
__webpack_require__.r(__webpack_exports__);
[440] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setSettings", function() { return setSettings; });
[441] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__experimentalGetSettings", function() { return __experimentalGetSettings; });
[442] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "format", function() { return format; });
[443] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "date", function() { return date; });
[444] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gmdate", function() { return gmdate; });
[445] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dateI18n", function() { return dateI18n; });
[446] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gmdateI18n", function() { return gmdateI18n; });
[447] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInTheFuture", function() { return isInTheFuture; });
[448] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDate", function() { return getDate; });
[449] Fix | Delete
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("wy2R");
[450] Fix | Delete
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
[451] Fix | Delete
/* harmony import */ var moment_timezone_moment_timezone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Dvum");
[452] Fix | Delete
/* harmony import */ var moment_timezone_moment_timezone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment_timezone_moment_timezone__WEBPACK_IMPORTED_MODULE_1__);
[453] Fix | Delete
/* harmony import */ var moment_timezone_moment_timezone_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("4CCe");
[454] Fix | Delete
/* harmony import */ var moment_timezone_moment_timezone_utils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment_timezone_moment_timezone_utils__WEBPACK_IMPORTED_MODULE_2__);
[455] Fix | Delete
/**
[456] Fix | Delete
* External dependencies
[457] Fix | Delete
*/
[458] Fix | Delete
[459] Fix | Delete
[460] Fix | Delete
[461] Fix | Delete
/** @typedef {import('moment').Moment} Moment */
[462] Fix | Delete
[463] Fix | Delete
var WP_ZONE = 'WP'; // This regular expression tests positive for UTC offsets as described in ISO 8601.
[464] Fix | Delete
// See: https://en.wikipedia.org/wiki/ISO_8601#Time_offsets_from_UTC
[465] Fix | Delete
[466] Fix | Delete
var VALID_UTC_OFFSET = /^[+-][0-1][0-9](:?[0-9][0-9])?$/; // Changes made here will likely need to be made in `lib/client-assets.php` as
[467] Fix | Delete
// well because it uses the `setSettings()` function to change these settings.
[468] Fix | Delete
[469] Fix | Delete
var settings = {
[470] Fix | Delete
l10n: {
[471] Fix | Delete
locale: 'en',
[472] Fix | Delete
months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
[473] Fix | Delete
monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
[474] Fix | Delete
weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
[475] Fix | Delete
weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
[476] Fix | Delete
meridiem: {
[477] Fix | Delete
am: 'am',
[478] Fix | Delete
pm: 'pm',
[479] Fix | Delete
AM: 'AM',
[480] Fix | Delete
PM: 'PM'
[481] Fix | Delete
},
[482] Fix | Delete
relative: {
[483] Fix | Delete
future: '%s from now',
[484] Fix | Delete
past: '%s ago',
[485] Fix | Delete
s: 'a few seconds',
[486] Fix | Delete
ss: '%d seconds',
[487] Fix | Delete
m: 'a minute',
[488] Fix | Delete
mm: '%d minutes',
[489] Fix | Delete
h: 'an hour',
[490] Fix | Delete
hh: '%d hours',
[491] Fix | Delete
d: 'a day',
[492] Fix | Delete
dd: '%d days',
[493] Fix | Delete
M: 'a month',
[494] Fix | Delete
MM: '%d months',
[495] Fix | Delete
y: 'a year',
[496] Fix | Delete
yy: '%d years'
[497] Fix | Delete
}
[498] Fix | Delete
},
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function