UNPKG

@geoblink/design-system

Version:

Geoblink Design System for Vue.js

1 lines • 35.8 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash")):"function"==typeof define&&define.amd?define(["lodash"],t):"object"==typeof exports?exports["components/GeoCalendarDayGrid"]=t(require("lodash")):e["components/GeoCalendarDayGrid"]=t(e.lodash)}(window,function(e){return n={},t.m=r={"/Tr7":function(e,t,r){"use strict";function n(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}r.d(t,"a",function(){return n})},"/h9T":function(e,t,r){"use strict";function n(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}r.d(t,"a",function(){return n})},"1vjI":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("/h9T"),a=r("/Tr7");function i(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=t||{},i=r.locale,o=i&&i.options&&i.options.weekStartsOn,u=null==o?0:Object(n.a)(o),s=null==r.weekStartsOn?u:Object(n.a)(r.weekStartsOn);if(!(0<=s&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(a.a)(e),d=c.getUTCDay(),l=(d<s?7:0)+d-s;return c.setUTCDate(c.getUTCDate()-l),c.setUTCHours(0,0,0,0),c}},22:function(e,t,r){e.exports=r("RKkC")},"2Ktv":function(e,t,r){"use strict";t.a={props:{currentMonth:{type:Number,required:!0,validator:function(e){return 0<=e&&e<=11}},currentYear:{type:Number,required:!0},earliestDate:{type:Date,required:!1},latestDate:{type:Date,required:!1},locale:{type:Object,required:!1}}}},"3REe":function(e,t,r){"use strict";r.d(t,"a",function(){return i}),r.d(t,"b",function(){return o}),r.d(t,"c",function(){return u});var n=["D","DD"],a=["YY","YYYY"];function i(e){return-1!==n.indexOf(e)}function o(e){return-1!==a.indexOf(e)}function u(e){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===e)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===e)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===e)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}},"9ig3":function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("/Tr7");function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(n.a)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},Bnag:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},EbDI:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},ErpD:function(e,t,r){"use strict";r.d(t,"a",function(){return s});var n=r("/Tr7"),a=r("1vjI"),i=r("/h9T"),o=r("Szzx"),u=6048e5;function s(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=Object(n.a)(e),s=Object(a.a)(r,t).getTime()-function(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=t||{},n=r.locale,u=n&&n.options&&n.options.firstWeekContainsDate,s=null==u?1:Object(i.a)(u),c=null==r.firstWeekContainsDate?s:Object(i.a)(r.firstWeekContainsDate),d=Object(o.a)(e,t),l=new Date(0);return l.setUTCFullYear(d,0,c),l.setUTCHours(0,0,0,0),Object(a.a)(l,t)}(r,t).getTime();return Math.round(s/u)+1}},Ib5w:function(e,t,r){"use strict";function n(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function a(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}var i={p:a,P:function(e,t){var r,i=e.match(/(P+)(p+)?/),o=i[1],u=i[2];if(!u)return n(e,t);switch(o){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",n(o,t)).replace("{{time}}",a(u,t))}};t.a=i},Ijbi:function(e,t,r){var n=r("WkPL");e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},JCDJ:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=6e4;function a(e){var t=new Date(e.getTime()),r=Math.ceil(t.getTimezoneOffset());t.setSeconds(0,0);var a=t.getTime()%n;return r*n+a}},"KHd+":function(e,t,r){"use strict";function n(e,t,r,n,a,i,o,u){var s,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=s):a&&(s=u?function(){a.call(this,this.$root.$options.shadowRoot)}:a),s)if(c.functional){c._injectStyles=s;var d=c.render;c.render=function(e,t){return s.call(t),d(e,t)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,s):[s]}return{exports:e,options:c}}r.d(t,"a",function(){return n})},L8hi:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("/Tr7"),a=r("/h9T");function i(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=t||{},i=r.locale,o=i&&i.options&&i.options.weekStartsOn,u=null==o?0:Object(a.a)(o),s=null==r.weekStartsOn?u:Object(a.a)(r.weekStartsOn);if(!(0<=s&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(n.a)(e),d=c.getDay(),l=6+(d<s?-7:0)-(d-s);return c.setDate(c.getDate()+l),c.setHours(23,59,59,999),c}},M34a:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("/Tr7");function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(n.a)(e);return t.setHours(0,0,0,0),t}},RIqP:function(e,t,r){var n=r("Ijbi"),a=r("EbDI"),i=r("ZhPi"),o=r("Bnag");e.exports=function(e){return n(e)||a(e)||i(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},RKkC:function(e,t,r){"use strict";r.r(t);var n=r("RIqP"),a=r.n(n),i=r("YLtl"),o=r.n(i),u=r("/h9T"),s=r("/Tr7");function c(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(s.a)(e),n=Object(u.a)(t);return r.setDate(r.getDate()+n),r}function d(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=e||{},n=Object(s.a)(r.start),a=Object(s.a)(r.end).getTime();if(!(n.getTime()<=a))throw new RangeError("Invalid interval");var i=[],o=n;o.setHours(0,0,0,0);var u=t&&"step"in t?Number(t.step):1;if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;o.getTime()<=a;)i.push(Object(s.a)(o)),o.setDate(o.getDate()+u),o.setHours(0,0,0,0);return i}var l=r("L8hi"),f=r("jKzE"),h=r("sWYD"),g=r("9ig3"),m=r("aetl");function b(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return c(e,-Object(u.a)(t))}var w=r("Se/U"),y=r("d60l"),p=r("2Ktv"),v=r("qSxj"),T={name:"GeoCalendarDayGrid",status:"ready",release:"23.2.0",mixins:[r("XAIm").a,p.a,v.a],computed:{currentDate:function(){return new Date(this.currentYear,this.currentMonth)},displayedFirstDayInCalendar:function(){return this.firstDayOfMonthInWeek>y.DAY_GRID_CONSTANTS.MONDAY_INDEX_IN_WEEK?b(Object(g.a)(this.currentDate),this.firstDayOfMonthInWeek-1):this.startOfMonth},endOfMonth:function(){return Object(f.a)(this.currentDate)},firstDayOfMonthInWeek:function(){var e=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(s.a)(e).getDay()}(this.startOfMonth);return 0===e?y.DAY_GRID_CONSTANTS.TOTAL_DAYS_IN_WEEK:e},fullDaysInDisplayedCalendar:function(){var e;if(!Object(w.a)(this.currentDate))return[];var t=[],r=this.firstDayOfMonthInWeek>y.DAY_GRID_CONSTANTS.MONDAY_INDEX_IN_WEEK?d({start:this.displayedFirstDayInCalendar,end:b(this.startOfMonth,1)}):[],n=d({start:Object(g.a)(this.currentDate),end:this.endOfMonth});t.push.apply(t,a()(r).concat(a()(n)));var i=o.a.chunk(t,y.DAY_GRID_CONSTANTS.TOTAL_DAYS_IN_WEEK);if(!i.length)return i;var u=y.DAY_GRID_CONSTANTS.TOTAL_DAYS_IN_WEEK-o.a.last(i).length,s=0<u?d({start:c(this.endOfMonth,1),end:c(this.endOfMonth,u)}):[];return(e=o.a.last(i)).push.apply(e,a()(s)),i},orderedDaysOfWeek:function(){return Object(w.a)(this.currentDate)?d({start:Object(m.a)(this.currentDate,{weekStartsOn:1}),end:Object(l.a)(this.currentDate,{weekStartsOn:1})}):[]},startOfMonth:function(){return Object(g.a)(this.currentDate)},weekDays:function(){var e=this;return o.a.map(this.orderedDaysOfWeek,function(t){return Object(h.a)(t,"E",{locale:e.locale})})}},methods:{selectDay:function(e){this.$emit("select-day",e)},selectWeek:function(e){this.$emit("select-week",e)},emitDayUnitMouseover:function(e){this.$emit("day-unit-mouseover",e)}}},O=r("KHd+"),D=Object(O.a)(T,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"geo-calendar-grid"},[r("div",{staticClass:"geo-calendar-grid__weekdays-row-container"},e._l(e.weekDays,function(t){return r("p",{key:t,staticClass:"geo-calendar-weekdays-row__weekday-name"},[e._v("\n "+e._s(t)+"\n ")])}),0),e._v(" "),r("div",{staticClass:"geo-calendar-grid__day-container"},e._l(e.fullDaysInDisplayedCalendar,function(t,n){return r("geo-calendar-day-grid-week-unit",{key:n,attrs:{"current-date":e.currentDate,"earliest-date":e.earliestDate,"full-month-calendar":e.fullDaysInDisplayedCalendar,"granularity-id":e.granularityId,"latest-date":e.latestDate,"selected-from-day":e.selectedFromDay,"selected-to-day":e.selectedToDay,week:t,"week-index":n},on:{"day-unit-mouseover":function(t){return e.emitDayUnitMouseover(t)},"select-day":function(t){return e.selectDay(t)},"select-week":function(t){return e.selectWeek(t)}}})}),1)])},[],!1,null,null,null);t.default=D.exports},"Se/U":function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("/Tr7");function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(n.a)(e);return!isNaN(t)}},Szzx:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("/h9T"),a=r("/Tr7"),i=r("1vjI");function o(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=Object(a.a)(e,t),o=r.getUTCFullYear(),u=t||{},s=u.locale,c=s&&s.options&&s.options.firstWeekContainsDate,d=null==c?1:Object(n.a)(c),l=null==u.firstWeekContainsDate?d:Object(n.a)(u.firstWeekContainsDate);if(!(1<=l&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(o+1,0,l),f.setUTCHours(0,0,0,0);var h=Object(i.a)(f,t),g=new Date(0);g.setUTCFullYear(o,0,l),g.setUTCHours(0,0,0,0);var m=Object(i.a)(g,t);return r.getTime()>=h.getTime()?o+1:r.getTime()>=m.getTime()?o:o-1}},WkPL:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},XAIm:function(e,t,r){"use strict";t.a={props:{selectedFromDay:{type:Date,required:!1},selectedToDay:{type:Date,required:!1}}}},YLtl:function(t,r){t.exports=e},ZhPi:function(e,t,r){var n=r("WkPL");e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},aetl:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("/Tr7"),a=r("/h9T");function i(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=t||{},i=r.locale,o=i&&i.options&&i.options.weekStartsOn,u=null==o?0:Object(a.a)(o),s=null==r.weekStartsOn?u:Object(a.a)(r.weekStartsOn);if(!(0<=s&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(n.a)(e),d=c.getDay(),l=(d<s?7:0)+d-s;return c.setDate(c.getDate()-l),c.setHours(0,0,0,0),c}},d60l:function(e,t,r){"use strict";r.r(t),r.d(t,"PICKER_DATE_UNITS",function(){return i}),r.d(t,"GRANULARITY_IDS",function(){return o}),r.d(t,"YEAR_GRID_CONSTANTS",function(){return u}),r.d(t,"DAY_GRID_CONSTANTS",function(){return s}),r.d(t,"MONTH_GRID_CONSTANTS",function(){return c}),r.d(t,"FOCUSABLE_INPUT_FIELDS",function(){return d}),r.d(t,"isDayUnavailable",function(){return l}),r.d(t,"isBefore",function(){return f}),r.d(t,"isAfter",function(){return h}),r.d(t,"isEqual",function(){return g}),r.d(t,"isWithinInterval",function(){return m});var n=r("/Tr7"),a=r("M34a"),i={day:"day",month:"month",year:"year"},o={day:"day",week:"week",month:"month",quarter:"quarter",year:"year"},u={MAX_YEAR:2099,MIN_YEAR:1970,YEARS_IN_GRID:16},s={TOTAL_DAYS_IN_WEEK:7,MONDAY_INDEX_IN_WEEK:1},c={NUMBER_OF_MONTHS_IN_GREGORIAN_CALENDAR:12},d={FROM_DATE:"FROM_DATE",TO_DATE:"TO_DATE"},l=function(e,t){return f(t,e.earliestDate)||h(t,e.latestDate)},f=function(e,t){return function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(n.a)(e),a=Object(n.a)(t);return r.getTime()<a.getTime()}(Object(a.a)(e),Object(a.a)(t))},h=function(e,t){return function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(n.a)(e),a=Object(n.a)(t);return r.getTime()>a.getTime()}(Object(a.a)(e),Object(a.a)(t))},g=function(e,t){return function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(n.a)(e),a=Object(n.a)(t);return r.getTime()===a.getTime()}(Object(a.a)(e),Object(a.a)(t))},m=function(e,t){var r=t.start,i=t.end;return function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=t||{},a=Object(n.a)(e).getTime(),i=Object(n.a)(r.start).getTime(),o=Object(n.a)(r.end).getTime();if(!(i<=o))throw new RangeError("Invalid interval");return i<=a&&a<=o}(Object(a.a)(e),{start:Object(a.a)(r),end:Object(a.a)(i)})}},g9KO:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("/h9T"),a=r("/Tr7");function i(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(a.a)(e).getTime(),i=Object(n.a)(t);return new Date(r+i)}(e,-Object(n.a)(t))}},gr1v:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("/Tr7"),a=r("tpup");function i(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(n.a)(e),r=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(r+1,0,4),i.setUTCHours(0,0,0,0);var o=Object(a.a)(i),u=new Date(0);u.setUTCFullYear(r,0,4),u.setUTCHours(0,0,0,0);var s=Object(a.a)(u);return t.getTime()>=o.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}},i4Qp:function(e,t,r){"use strict";function n(e){var t={type:String,validator:function(t){if(e.checkUndefined&&void 0===t)return!0;var r=Object.values(e.enumDictionary);if(r.includes(t))return!0;var n=r.map(function(e){return"«".concat(e,"»")}).join(", ");return console.warn("".concat(e.componentName," [component] :: Unsupported value («").concat(t,"») for «").concat(e.propertyName,"» property. Use one of ").concat(n)),!1}};return"defaultValue"in e&&(t.default=e.defaultValue),"required"in e&&(t.required=!!e.required),t}r.d(t,"a",function(){return n})},iSMj:function(e,t,r){"use strict";var n={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"},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"}};function a(e){return function(t){var r=t||{},n=r.width?String(r.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var i={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},o={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function u(e){return function(t,r){var n,a=r||{};if("formatting"===(a.context?String(a.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=a.width?String(a.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{var u=e.defaultWidth,s=a.width?String(a.width):e.defaultWidth;n=e.values[s]||e.values[u]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function s(e){return function(t,r){var n=String(t),a=r||{},i=a.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],u=n.match(o);if(!u)return null;var s,c=u[0],d=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth];return s="[object Array]"===Object.prototype.toString.call(d)?function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}(d,function(e){return e.test(n)}):function(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}(d,function(e){return e.test(n)}),s=e.valueCallback?e.valueCallback(s):s,{value:s=a.valueCallback?a.valueCallback(s):s,rest:n.slice(c.length)}}}var c,d={code:"en-US",formatDistance:function(e,t,r){var a;return r=r||{},a="string"==typeof n[e]?n[e]:1===t?n[e].one:n[e].other.replace("{{count}}",t),r.addSuffix?0<r.comparison?"in "+a:a+" ago":a},formatLong:i,formatRelative:function(e,t,r,n){return o[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(20<n||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:u({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:u({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:u({values:{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"]},defaultWidth:"wide"}),day:u({values:{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"]},defaultWidth:"wide"}),dayPeriod:u({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(c={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var r=String(e),n=t||{},a=r.match(c.matchPattern);if(!a)return null;var i=a[0],o=r.match(c.parsePattern);if(!o)return null;var u=c.valueCallback?c.valueCallback(o[0]):o[0];return{value:u=n.valueCallback?n.valueCallback(u):u,rest:r.slice(i.length)}}),era:s({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:s({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:s({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:s({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:s({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};t.a=d},jKzE:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("/Tr7");function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(n.a)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}},lgZR:function(e,t,r){"use strict";r.d(t,"a",function(){return u});var n=r("/Tr7"),a=r("tpup"),i=r("gr1v"),o=6048e5;function u(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(n.a)(e),r=Object(a.a)(t).getTime()-function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(i.a)(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),Object(a.a)(r)}(t).getTime();return Math.round(r/o)+1}},qSxj:function(e,t,r){"use strict";var n=r("d60l"),a=r("i4Qp");t.a={props:{granularityId:Object(a.a)({componentName:"GeoCalendarGranularityId",propertyName:"granularityId",enumDictionary:n.GRANULARITY_IDS,required:!0})}}},sWYD:function(e,t,r){"use strict";r.d(t,"a",function(){return q});var n=r("Se/U"),a=r("iSMj"),i=r("g9KO"),o=r("/Tr7");function u(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var s=function(e,t){var r=e.getUTCFullYear(),n=0<r?r:1-r;return u("yy"===t?n%100:n,t.length)},c=function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):u(r+1,2)},d=function(e,t){return u(e.getUTCDate(),t.length)},l=function(e,t){return u(e.getUTCHours()%12||12,t.length)},f=function(e,t){return u(e.getUTCHours(),t.length)},h=function(e,t){return u(e.getUTCMinutes(),t.length)},g=function(e,t){return u(e.getUTCSeconds(),t.length)},m=function(e,t){var r=t.length,n=e.getUTCMilliseconds();return u(Math.floor(n*Math.pow(10,r-3)),t.length)},b=r("lgZR"),w=r("gr1v"),y=r("ErpD"),p=r("Szzx");function v(e,t){var r=0<e?"-":"+",n=Math.abs(e),a=Math.floor(n/60),i=n%60;if(0==i)return r+String(a);var o=t||"";return r+String(a)+o+u(i,2)}function T(e,t){return e%60!=0?O(e,t):(0<e?"-":"+")+u(Math.abs(e)/60,2)}function O(e,t){var r=t||"",n=0<e?"-":"+",a=Math.abs(e);return n+u(Math.floor(a/60),2)+r+u(a%60,2)}var D={G:function(e,t,r){var n=0<e.getUTCFullYear()?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"!==t)return s(e,t);var n=e.getUTCFullYear(),a=0<n?n:1-n;return r.ordinalNumber(a,{unit:"year"})},Y:function(e,t,r,n){var a=Object(p.a)(e,n),i=0<a?a:1-a;return"YY"!==t?"Yo"===t?r.ordinalNumber(i,{unit:"year"}):u(i,t.length):u(i%100,2)},R:function(e,t){return u(Object(w.a)(e),t.length)},u:function(e,t){return u(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return u(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return u(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return c(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return u(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var a=Object(y.a)(e,n);return"wo"===t?r.ordinalNumber(a,{unit:"week"}):u(a,t.length)},I:function(e,t,r){var n=Object(b.a)(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):u(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):d(e,t)},D:function(e,t,r){var n=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(o.a)(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=r-t.getTime();return Math.floor(n/864e5)+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):u(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var a=e.getUTCDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return u(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var a=e.getUTCDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return u(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),a=0===n?7:n;switch(t){case"i":return String(a);case"ii":return u(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,a=e.getUTCHours();switch(n=12===a?"noon":0===a?"midnight":1<=a/12?"pm":"am",t){case"b":case"bb":case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,a=e.getUTCHours();switch(n=17<=a?"evening":12<=a?"afternoon":4<=a?"morning":"night",t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"!==t)return l(e,t);var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):f(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):u(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):u(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):h(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):g(e,t)},S:function(e,t){return m(e,t)},X:function(e,t,r,n){var a=(n._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return T(a);case"XXXX":case"XX":return O(a);case"XXXXX":case"XXX":default:return O(a,":")}},x:function(e,t,r,n){var a=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return T(a);case"xxxx":case"xx":return O(a);case"xxxxx":case"xxx":default:return O(a,":")}},O:function(e,t,r,n){var a=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+v(a,":");case"OOOO":default:return"GMT"+O(a,":")}},z:function(e,t,r,n){var a=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+v(a,":");case"zzzz":default:return"GMT"+O(a,":")}},t:function(e,t,r,n){var a=n._originalDate||e;return u(Math.floor(a.getTime()/1e3),t.length)},T:function(e,t,r,n){return u((n._originalDate||e).getTime(),t.length)}},j=r("Ib5w"),M=r("JCDJ"),C=r("3REe"),E=r("/h9T"),S=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,x=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_=/^'([^]*?)'?$/,k=/''/g,N=/[a-zA-Z]/;function q(e,t,r){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var u=String(t),s=r||{},c=s.locale||a.a,d=c.options&&c.options.firstWeekContainsDate,l=null==d?1:Object(E.a)(d),f=null==s.firstWeekContainsDate?l:Object(E.a)(s.firstWeekContainsDate);if(!(1<=f&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=c.options&&c.options.weekStartsOn,g=null==h?0:Object(E.a)(h),m=null==s.weekStartsOn?g:Object(E.a)(s.weekStartsOn);if(!(0<=m&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!c.localize)throw new RangeError("locale must contain localize property");if(!c.formatLong)throw new RangeError("locale must contain formatLong property");var b=Object(o.a)(e);if(!Object(n.a)(b))throw new RangeError("Invalid time value");var w=Object(M.a)(b),y=Object(i.a)(b,w),p={firstWeekContainsDate:f,weekStartsOn:m,locale:c,_originalDate:b};return u.match(x).map(function(e){var t=e[0];return"p"!==t&&"P"!==t?e:(0,j.a[t])(e,c.formatLong,p)}).join("").match(S).map(function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return function(e){return e.match(_)[1].replace(k,"'")}(e);var r=D[t];if(r)return!s.useAdditionalWeekYearTokens&&Object(C.b)(e)&&Object(C.c)(e),!s.useAdditionalDayOfYearTokens&&Object(C.a)(e)&&Object(C.c)(e),r(y,e,c.localize,p);if(t.match(N))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e}).join("")}},tpup:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("/Tr7");function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(n.a)(e),r=t.getUTCDay(),a=(r<1?7:0)+r-1;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}}},t.c=n,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)t.d(n,a,function(t){return e[t]}.bind(null,a));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=22);function t(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return r[e].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var r,n});