"format amd";!function(){"use strict";functiona(a){returnangular.isUndefined(a)||null===a}functionb(){try{returnrequire("moment")}catch(a){thrownewError("Please install moment via npm. Please reference to: https://github.com/urish/angular-moment")}}functionc(c,d){if("undefined"==typeofd){if("function"!=typeofrequire)thrownewError("Moment cannot be found by angular-moment! Please reference to: https://github.com/urish/angular-moment");d=b()}returnc.module("angularMoment",[]).constant("angularMomentConfig",{preprocess:null,timezone:null,format:null,statefulFilters:!0}).constant("moment",d).constant("amTimeAgoConfig",{withoutSuffix:!1,serverTime:null,titleFormat:null,fullDateThreshold:null,fullDateFormat:null}).directive("amTimeAgo",["$window","moment","amMoment","amTimeAgoConfig",function(b,d,e,f){returnfunction(g,h,i){functionj(){vara;if(p)a=p;elseif(f.serverTime){varb=(newDate).getTime(),c=b-v+f.serverTime;a=d(c)}elsea=d();returna}functionk(){q&&(b.clearTimeout(q),q=null)}functionl(a){varc=j().diff(a,"day"),d=t&&c>=t;if(d?h.text(a.format(u)):h.text(a.from(j(),r)),s&&y&&h.attr("title",a.local().format(s)),!d){vare=Math.abs(j().diff(a,"minute")),f=3600;1>e?f=1:60>e?f=30:180>e&&(f=300),q=b.setTimeout(function(){l(a)},1e3*f)}}functionm(a){x&&h.attr("datetime",a)}functionn(){if(k(),o){vara=e.preprocessDate(o);l(a),m(a.toISOString())}}varo,p,q=null,r=f.withoutSuffix,s=f.titleFormat,t=f.fullDateThreshold,u=f.fullDateFormat,v=(newDate).getTime(),w=i.amTimeAgo,x="TIME"===h[0].nodeName.toUpperCase(),y=!h.attr("title");g.$watch(w,function(b){returna(b)||""===b?(k(),void(o&&(h.text(""),m(""),o=null))):(o=b,voidn())}),c.isDefined(i.amFrom)&&g.$watch(i.amFrom,function(b){p=a(b)||""===b?null:d(b),n()}),c.isDefined(i.amWithoutSuffix)&&g.$watch(i.amWithoutSuffix,function(a){"boolean"==typeofa?(r=a,n()):r=f.withoutSuffix}),i.$observe("amFullDateThreshold",function(a){t=a,n()}),i.$observe("amFullDateFormat",function(a){u=a,n()}),g.$on("$destroy",function(){k()}),g.$on("amMoment:localeChanged",function(){n()})}}]).service("amMoment",["moment","$rootScope","$log","angularMomentConfig",function(a,b,d,e){varf=null;this.changeLocale=function(d,e){varf=a.locale(d,e);returnc.isDefined(d)&&b.$broadcast("amMoment:localeChanged"),f},this.changeTimezone=function(c){a.tz&&a.tz.setDefault?(a.tz.setDefault(c),b.$broadcast("amMoment:timezoneChanged")):d.warn("angular-moment: changeTimezone() works only with moment-timezone.js v0.3.0 or greater."),e.timezone=c,f=c},this.preprocessDate=function(b){returnf!==e.timezone&&this.changeTimezone(e.timezone),e.preprocess?e.preprocess(b):a(!isNaN(parseFloat(b))&&isFinite(b)?parseInt(b,10):b)}}]).filter("amParse",["moment",function(a){returnfunction(b,c){returna(b,c)}}]).filter("amFromUnix",["moment",function(a){returnfunction(b){returna.unix(b)}}]).filter("amUtc",["moment",function(a){returnfunction(b){returna.utc(b)}}]).filter("amUtcOffset",["amMoment",function(a){functionb(b,c){returna.preprocessDate(b).utcOffset(c)}returnb}]).filter("amLocal",["moment",function(a){returnfunction(b){returna.isMoment(b)?b.local():null}}]).filter("amTimezone",["amMoment","angularMomentConfig","$log",function(a,b,c){functiond(b,d){vare=a.preprocessDate(b);returnd?e.tz?e.tz(d):(c.warn("angular-moment: named timezone specified but moment.tz() is undefined. Did you forget to include moment-timezone.js ?"),e):e}returnd}]).filter("amCalendar",["moment","amMoment","angularMomentConfig",function(b,c,d){functione(b){if(a(b))return"";vard=c.preprocessDate(b);returnd.isValid()?d.calendar():""}returne.$stateful=d.statefulFilters,e}]).filter("amDifference",["moment","amMoment","angularMomentConfig",function(b,c,d){functione(d,e,f,g){if(a(d))return"";varh=c.preprocessDate(d),i=a(e)?b():c.preprocessDate(e);returnh.isValid()&&i.isValid()?h.diff(i,f,g):""}returne.$stateful=d.statefulFilters,e}]).filter("amDateFormat",["moment","amMoment","angularMomentConfig",function(b,c,d){functione(b,d){if(a(b))return"";vare=c.preprocessDate(b);returne.isValid()?e.format(d):""}returne.$stateful=d.st