timepiece/node_modules/date-fns/locale/en-GB/cdn.min.js

4 lines
8.8 KiB
JavaScript

var q=function(Y){return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},q(Y)},S=function(Y,X){var B=Object.keys(Y);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(Y);X&&(I=I.filter(function(x){return Object.getOwnPropertyDescriptor(Y,x).enumerable})),B.push.apply(B,I)}return B},N=function(Y){for(var X=1;X<arguments.length;X++){var B=arguments[X]!=null?arguments[X]:{};X%2?S(Object(B),!0).forEach(function(I){U0(Y,I,B[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Y,Object.getOwnPropertyDescriptors(B)):S(Object(B)).forEach(function(I){Object.defineProperty(Y,I,Object.getOwnPropertyDescriptor(B,I))})}return Y},U0=function(Y,X,B){if(X=C0(X),X in Y)Object.defineProperty(Y,X,{value:B,enumerable:!0,configurable:!0,writable:!0});else Y[X]=B;return Y},C0=function(Y){var X=H0(Y,"string");return q(X)=="symbol"?X:String(X)},H0=function(Y,X){if(q(Y)!="object"||!Y)return Y;var B=Y[Symbol.toPrimitive];if(B!==void 0){var I=B.call(Y,X||"default");if(q(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(X==="string"?String:Number)(Y)};(function(Y){var X=Object.defineProperty,B=function U(J,H){for(var C in H)X(J,C,{get:H[C],enumerable:!0,configurable:!0,set:function Z(G){return H[C]=function(){return G}}})},I={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},x=function U(J,H,C){var Z,G=I[J];if(typeof G==="string")Z=G;else if(H===1)Z=G.one;else Z=G.other.replace("{{count}}",H.toString());if(C!==null&&C!==void 0&&C.addSuffix)if(C.comparison&&C.comparison>0)return"in "+Z;else return Z+" ago";return Z},$={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},D=function U(J,H,C,Z){return $[J]};function E(U){return function(J,H){var C=H!==null&&H!==void 0&&H.context?String(H.context):"standalone",Z;if(C==="formatting"&&U.formattingValues){var G=U.defaultFormattingWidth||U.defaultWidth,O=H!==null&&H!==void 0&&H.width?String(H.width):G;Z=U.formattingValues[O]||U.formattingValues[G]}else{var T=U.defaultWidth,K=H!==null&&H!==void 0&&H.width?String(H.width):U.defaultWidth;Z=U.values[K]||U.values[T]}var A=U.argumentCallback?U.argumentCallback(J):J;return Z[A]}}var M={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},R={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},L={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},V={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},j={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},f={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},v=function U(J,H){var C=Number(J),Z=C%100;if(Z>20||Z<10)switch(Z%10){case 1:return C+"st";case 2:return C+"nd";case 3:return C+"rd"}return C+"th"},_={ordinalNumber:v,era:E({values:M,defaultWidth:"wide"}),quarter:E({values:R,defaultWidth:"wide",argumentCallback:function U(J){return J-1}}),month:E({values:L,defaultWidth:"wide"}),day:E({values:V,defaultWidth:"wide"}),dayPeriod:E({values:j,defaultWidth:"wide",formattingValues:f,defaultFormattingWidth:"wide"})};function Q(U){return function(J){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=H.width,Z=C&&U.matchPatterns[C]||U.matchPatterns[U.defaultMatchWidth],G=J.match(Z);if(!G)return null;var O=G[0],T=C&&U.parsePatterns[C]||U.parsePatterns[U.defaultParseWidth],K=Array.isArray(T)?w(T,function(z){return z.test(O)}):P(T,function(z){return z.test(O)}),A;A=U.valueCallback?U.valueCallback(K):K,A=H.valueCallback?H.valueCallback(A):A;var t=J.slice(O.length);return{value:A,rest:t}}}var P=function U(J,H){for(var C in J)if(Object.prototype.hasOwnProperty.call(J,C)&&H(J[C]))return C;return},w=function U(J,H){for(var C=0;C<J.length;C++)if(H(J[C]))return C;return};function F(U){return function(J){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=J.match(U.matchPattern);if(!C)return null;var Z=C[0],G=J.match(U.parsePattern);if(!G)return null;var O=U.valueCallback?U.valueCallback(G[0]):G[0];O=H.valueCallback?H.valueCallback(O):O;var T=J.slice(Z.length);return{value:O,rest:T}}}var k=/^(\d+)(th|st|nd|rd)?/i,h=/\d+/i,b={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},m={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},y={any:[/1/i,/2/i,/3/i,/4/i]},p={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},d={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},g={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},u={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},l={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},i={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},n={ordinalNumber:F({matchPattern:k,parsePattern:h,valueCallback:function U(J){return parseInt(J,10)}}),era:Q({matchPatterns:b,defaultMatchWidth:"wide",parsePatterns:m,defaultParseWidth:"any"}),quarter:Q({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:y,defaultParseWidth:"any",valueCallback:function U(J){return J+1}}),month:Q({matchPatterns:p,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any"}),day:Q({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:u,defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:l,defaultMatchWidth:"any",parsePatterns:i,defaultParseWidth:"any"})};function W(U){return function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=J.width?String(J.width):U.defaultWidth,C=U.formats[H]||U.formats[U.defaultWidth];return C}}var s={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},o={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},r={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a={date:W({formats:s,defaultWidth:"full"}),time:W({formats:o,defaultWidth:"full"}),dateTime:W({formats:r,defaultWidth:"full"})},e={code:"en-GB",formatDistance:x,formatLong:a,formatRelative:D,localize:_,match:n,options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=N(N({},window.dateFns),{},{locale:N(N({},(Y=window.dateFns)===null||Y===void 0?void 0:Y.locale),{},{enGB:e})})})();
//# debugId=F325B62DE61AD65864756e2164756e21