WordPress/wp-includes/js/dist/date.min.js

12 lines
199 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.date=function(c){var M={};function o(A){if(M[A])return M[A].exports;var z=M[A]={i:A,l:!1,exports:{}};return c[A].call(z.exports,z,z.exports,o),z.l=!0,z.exports}return o.m=c,o.c=M,o.d=function(c,M,A){o.o(c,M)||Object.defineProperty(c,M,{enumerable:!0,get:A})},o.r=function(c){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},o.t=function(c,M){if(1&M&&(c=o(c)),8&M)return c;if(4&M&&"object"==typeof c&&c&&c.__esModule)return c;var A=Object.create(null);if(o.r(A),Object.defineProperty(A,"default",{enumerable:!0,value:c}),2&M&&"string"!=typeof c)for(var z in c)o.d(A,z,function(M){return c[M]}.bind(null,z));return A},o.n=function(c){var M=c&&c.__esModule?function(){return c.default}:function(){return c};return o.d(M,"a",M),M},o.o=function(c,M){return Object.prototype.hasOwnProperty.call(c,M)},o.p="",o(o.s=399)}({253:function(c,M,o){var A,z,a;//! moment-timezone.js
//! version : 0.5.28
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
!function(b,p){"use strict";c.exports?c.exports=p(o(33)):(z=[o(33)],void 0===(a="function"==typeof(A=p)?A.apply(M,z):A)||(c.exports=a))}(0,(function(c){"use strict";var M,o={},A={},z={},a={},b={};c&&"string"==typeof c.version||S("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var p=c.version.split("."),n=+p[0],i=+p[1];function e(c){return c>96?c-87:c>64?c-29:c-48}function r(c){var M=0,o=c.split("."),A=o[0],z=o[1]||"",a=1,b=0,p=1;for(45===c.charCodeAt(0)&&(M=1,p=-1);M<A.length;M++)b=60*b+e(A.charCodeAt(M));for(M=0;M<z.length;M++)a/=60,b+=e(z.charCodeAt(M))*a;return b*p}function O(c){for(var M=0;M<c.length;M++)c[M]=r(c[M])}function L(c,M){var o,A=[];for(o=0;o<M.length;o++)A[o]=c[M[o]];return A}function q(c){var M=c.split("|"),o=M[2].split(" "),A=M[3].split(""),z=M[4].split(" ");return O(o),O(A),O(z),function(c,M){for(var o=0;o<M;o++)c[o]=Math.round((c[o-1]||0)+6e4*c[o]);c[M-1]=1/0}(z,A.length),{name:M[0],abbrs:L(M[1].split(" "),A),offsets:L(o,A),untils:z,population:0|M[5]}}function N(c){c&&this._set(q(c))}function d(c,M){this.name=c,this.zones=M}function f(c){var M=c.toTimeString(),o=M.match(/\([a-z ]+\)/i);"GMT"===(o=o&&o[0]?(o=o[0].match(/[A-Z]/g))?o.join(""):void 0:(o=M.match(/[A-Z]{3,5}/g))?o[0]:void 0)&&(o=void 0),this.at=+c,this.abbr=o,this.offset=c.getTimezoneOffset()}function t(c){this.zone=c,this.offsetScore=0,this.abbrScore=0}function W(c,M){for(var o,A;A=6e4*((M.at-c.at)/12e4|0);)(o=new f(new Date(c.at+A))).offset===c.offset?c=o:M=o;return c}function u(c,M){return c.offsetScore!==M.offsetScore?c.offsetScore-M.offsetScore:c.abbrScore!==M.abbrScore?c.abbrScore-M.abbrScore:c.zone.population!==M.zone.population?M.zone.population-c.zone.population:M.zone.name.localeCompare(c.zone.name)}function X(c,M){var o,A;for(O(M),o=0;o<M.length;o++)A=M[o],b[A]=b[A]||{},b[A][c]=!0}function l(c){var M,o,A,z=c.length,p={},n=[];for(M=0;M<z;M++)for(o in A=b[c[M].offset]||{})A.hasOwnProperty(o)&&(p[o]=!0);for(M in p)p.hasOwnProperty(M)&&n.push(a[M]);return n}function B(){try{var c=Intl.DateTimeFormat().resolvedOptions().timeZone;if(c&&c.length>3){var M=a[T(c)];if(M)return M;S("Moment Timezone found "+c+" from the Intl api, but did not have that data loaded.")}}catch(c){}var o,A,z,b=function(){var c,M,o,A=(new Date).getFullYear()-2,z=new f(new Date(A,0,1)),a=[z];for(o=1;o<48;o++)(M=new f(new Date(A,o,1))).offset!==z.offset&&(c=W(z,M),a.push(c),a.push(new f(new Date(c.at+6e4)))),z=M;for(o=0;o<4;o++)a.push(new f(new Date(A+o,0,1))),a.push(new f(new Date(A+o,6,1)));return a}(),p=b.length,n=l(b),i=[];for(A=0;A<n.length;A++){for(o=new t(m(n[A]),p),z=0;z<p;z++)o.scoreOffsetAt(b[z]);i.push(o)}return i.sort(u),i.length>0?i[0].zone.name:void 0}function T(c){return(c||"").toLowerCase().replace(/\//g,"_")}function s(c){var M,A,z,b;for("string"==typeof c&&(c=[c]),M=0;M<c.length;M++)b=T(A=(z=c[M].split("|"))[0]),o[b]=c[M],a[b]=A,X(b,z[2].split(" "))}function m(c,M){c=T(c);var z,b=o[c];return b instanceof N?b:"string"==typeof b?(b=new N(b),o[c]=b,b):A[c]&&M!==m&&(z=m(A[c],m))?((b=o[c]=new N)._set(z),b.name=a[c],b):null}function E(c){var M,o,z,b;for("string"==typeof c&&(c=[c]),M=0;M<c.length;M++)z=T((o=c[M].split("|"))[0]),b=T(o[1]),A[z]=b,a[z]=o[0],A[b]=z,a[b]=o[1]}function C(c){var M="X"===c._f||"x"===c._f;return!(!c._a||void 0!==c._tzm||M)}function S(c){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(c)}function R(M){var o=Array.prototype.slice.call(arguments,0,-1),A=arguments[arguments.length-1],z=m(A),a=c.utc.apply(null,o);return z&&!c.isMoment(M)&&C(a)&&a.add(z.parse(a),"minutes"),a.tz(A),a}(n<2||2===n&&i<6)&&S("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+c.version+". See momentjs.com"),N.prototype={_set:function(c){this.name=c.name,this.abbrs=c.abbrs,this.untils=c.untils,this.offsets=c.offsets,this.population=c.population},_index:function(c){var M,o=+c,A=this.untils;for(M=0;M<A.length;M++)if(o<A[M])return M},countries:function(){var c=this.name;return Object.keys(z).filter((function(M){return-1!==z[M].zones.indexOf(c)}))},parse:function(c){
//! version : 0.5.28
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
!function(b,p){"use strict";c.exports?c.exports=p(o(401)):(z=[o(33)],void 0===(a="function"==typeof(A=p)?A.apply(M,z):A)||(c.exports=a))}(0,(function(c){"use strict";if(!c.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var M="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX";function o(c,o){for(var A="",z=Math.abs(c),a=Math.floor(z),b=function(c,o){for(var A,z=".",a="";o>0;)o-=1,c*=60,A=Math.floor(c+1e-6),z+=M[A],c-=A,A&&(a+=z,z="");return a}(z-a,Math.min(~~o,10));a>0;)A=M[a%60]+A,a=Math.floor(a/60);return c<0&&(A="-"+A),A&&b?A+b:(b||"-"!==A)&&(A||b)||"0"}function A(c){var M,A=[],z=0;for(M=0;M<c.length-1;M++)A[M]=o(Math.round((c[M]-z)/1e3)/60,1),z=c[M];return A.join(" ")}function z(c){var M,A,z=0,a=[],b=[],p=[],n={};for(M=0;M<c.abbrs.length;M++)void 0===n[A=c.abbrs[M]+"|"+c.offsets[M]]&&(n[A]=z,a[z]=c.abbrs[M],b[z]=o(Math.round(60*c.offsets[M])/60,1),z++),p[M]=o(n[A],0);return a.join(" ")+"|"+b.join(" ")+"|"+p.join("")}function a(c){if(!c)return"";if(c<1e3)return c;var M=String(0|c).length-2;return Math.round(c/Math.pow(10,M))+"e"+M}function b(c){return function(c){if(!c.name)throw new Error("Missing name");if(!c.abbrs)throw new Error("Missing abbrs");if(!c.untils)throw new Error("Missing untils");if(!c.offsets)throw new Error("Missing offsets");if(c.offsets.length!==c.untils.length||c.offsets.length!==c.abbrs.length)throw new Error("Mismatched array lengths")}(c),[c.name,z(c),A(c.untils),a(c.population)].join("|")}function p(c){return[c.name,c.zones.join(" ")].join("|")}function n(c,M){var o;if(c.length!==M.length)return!1;for(o=0;o<c.length;o++)if(c[o]!==M[o])return!1;return!0}function i(c,M){return n(c.offsets,M.offsets)&&n(c.abbrs,M.abbrs)&&n(c.untils,M.untils)}function e(c,M){var o=[],A=[];return c.links&&(A=c.links.slice()),function(c,M,o,A){var z,a,b,p,n,e,r=[];for(z=0;z<c.length;z++){for(e=!1,b=c[z],a=0;a<r.length;a++)i(b,p=(n=r[a])[0])&&(b.population>p.population||b.population===p.population&&A&&A[b.name]?n.unshift(b):n.push(b),e=!0);e||r.push([b])}for(z=0;z<r.length;z++)for(n=r[z],M.push(n[0]),a=1;a<n.length;a++)o.push(n[0].name+"|"+n[a].name)}(c.zones,o,A,M),{version:c.version,zones:o,links:A.sort()}}function r(c,M,o){var A=Array.prototype.slice,z=function(c,M,o){var A,z,a=0,b=c.length+1;for(o||(o=M),M>o&&(z=M,M=o,o=z),z=0;z<c.length;z++)null!=c[z]&&((A=new Date(c[z]).getUTCFullYear())<M&&(a=z+1),A>o&&(b=Math.min(b,z+1)));return[a,b]}(c.untils,M,o),a=A.apply(c.untils,z);return a[a.length-1]=null,{name:c.name,abbrs:A.apply(c.abbrs,z),untils:a,offsets:A.apply(c.offsets,z),population:c.population,countries:c.countries}}return c.tz.pack=b,c.tz.packBase60=o,c.tz.createLinks=e,c.tz.filterYears=r,c.tz.filterLinkPack=function(c,M,o,A){var z,a,n=c.zones,i=[];for(z=0;z<n.length;z++)i[z]=r(n[z],M,o);for(a=e({zones:i,links:c.links.slice(),version:c.version},A),z=0;z<a.zones.length;z++)a.zones[z]=b(a.zones[z]);return a.countries=c.countries?c.countries.map((function(c){return p(c)})):[],a},c.tz.packCountry=p,c}))},401:function(c,M,o){(c.exports=o(253)).tz.load(o(402))},402:function(c){c.exports=JSON.parse('{"version":"2019c","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT WAT|-d.A -10|01|-22y0d.A|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|01010101010101010101010101010101010101010101010101010