/**
 * Copyright (c) 2022 Visa, Inc.
 *
 * This source code is licensed under the MIT license
 * https://github.com/visa/visa-chart-components/blob/master/LICENSE
 *
 **/
System.register([],(function(e){"use strict";return{execute:function(){e("n",r);var t=new Date,n=new Date;function r(e,u,o,i){function f(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}f.floor=function(t){return e(t=new Date(+t)),t};f.ceil=function(t){return e(t=new Date(t-1)),u(t,1),e(t),t};f.round=function(e){var t=f(e),n=f.ceil(e);return e-t<n-e?t:n};f.offset=function(e,t){return u(e=new Date(+e),t==null?1:Math.floor(t)),e};f.range=function(t,n,r){var o=[],i;t=f.ceil(t);r=r==null?1:Math.floor(r);if(!(t<n)||!(r>0))return o;do{o.push(i=new Date(+t)),u(t,r),e(t)}while(i<t&&t<n);return o};f.filter=function(t){return r((function(n){if(n>=n)while(e(n),!t(n))n.setTime(n-1)}),(function(e,n){if(e>=e){if(n<0)while(++n<=0){while(u(e,-1),!t(e)){}}else while(--n>=0){while(u(e,+1),!t(e)){}}}}))};if(o){f.count=function(r,u){t.setTime(+r),n.setTime(+u);e(t),e(n);return Math.floor(o(t,n))};f.every=function(e){e=Math.floor(e);return!isFinite(e)||!(e>0)?null:!(e>1)?f:f.filter(i?function(t){return i(t)%e===0}:function(t){return f.count(0,t)%e===0})}}return f}var u=e("a",1e3);var o=e("b",6e4);var i=36e5;var f=e("c",864e5);var l=e("e",6048e5);var a=e("h",r((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*u-e.getMinutes()*o)}),(function(e,t){e.setTime(+e+t*i)}),(function(e,t){return(t-e)/i}),(function(e){return e.getHours()})));var c=e("d",r((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o)/f}),(function(e){return e.getDate()-1})));function s(e){return r((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7);t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t*7)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o)/l}))}var g=e("s",s(0));var h=e("f",s(1));s(2);s(3);var v=e("t",s(4));s(5);s(6);var D=e("m",r((function(e){e.setDate(1);e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12}),(function(e){return e.getMonth()})));var M=e("y",r((function(e){e.setMonth(0,1);e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));M.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:r((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e);t.setMonth(0,1);t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)}))}}}}));