insights-frontend
Version:
Front-end for Red Hat Insights
2 lines • 1.95 MB
JavaScript
var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function e(t,n,r){function a(o,s){var l=window.define;if(window.define=void 0,!n[o]){if(!t[o]){var c="function"==typeof require&&require;if(!s&&c)return c(o,!0);if(i)return i(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[o]={exports:{}};t[o][0].call(d.exports,function(e){var n=t[o][1][e];return a(n||e)},d,d.exports,e,t,n,r)}return window.define=l,n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)a(r[o]);return a}({1:[function(e,t,n){!function(e,t){"use strict";function n(e,t,n){if(!e)throw le("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function r(e,t){return e||t?e?t?(H(e)&&(e=e.join(" ")),H(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function a(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function i(e,t,n){var r="";return e=H(e)?e:e&&U(e)&&e.length?e.split(/\s+/):[],F(e,function(e,a){e&&e.length>0&&(r+=a>0?" ":"",r+=n?t+e:e+t)}),r}function o(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function s(e){if(e instanceof B)switch(e.length){case 0:return[];case 1:if(e[0].nodeType===X)return e;break;default:return B(l(e))}if(e.nodeType===X)return B(e)}function l(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType==X)return n}}function c(e,t,n){F(t,function(t){e.addClass(t,n)})}function u(e,t,n){F(t,function(t){e.removeClass(t,n)})}function d(e){return function(t,n){n.addClass&&(c(e,t,n.addClass),n.addClass=null),n.removeClass&&(u(e,t,n.removeClass),n.removeClass=null)}}function p(e){if(e=e||{},!e.$$prepared){var t=e.domOperation||R;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=R},e.$$prepared=!0}return e}function f(e,t){h(e,t),g(e,t)}function h(e,t){t.from&&(e.css(t.from),t.from=null)}function g(e,t){t.to&&(e.css(t.to),t.to=null)}function m(e,t,n){var r=t.options||{},a=n.options||{},i=(r.addClass||"")+" "+(a.addClass||""),o=(r.removeClass||"")+" "+(a.removeClass||""),s=v(e.attr("class"),i,o);a.preparationClasses&&(r.preparationClasses=k(a.preparationClasses,r.preparationClasses),delete a.preparationClasses);var l=r.domOperation!==R?r.domOperation:null;return z(r,a),l&&(r.domOperation=l),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function v(e,t,n){function r(e){U(e)&&(e=e.split(" "));var t={};return F(e,function(e){e.length&&(t[e]=!0)}),t}var a={};e=r(e),t=r(t),F(t,function(e,t){a[t]=1}),n=r(n),F(n,function(e,t){a[t]=1===a[t]?null:-1});var i={addClass:"",removeClass:""};return F(a,function(t,n){var r,a;1===t?(r="addClass",a=!e[n]):-1===t&&(r="removeClass",a=e[n]),a&&(i[r].length&&(i[r]+=" "),i[r]+=n)}),i}function y(e){return e instanceof t.element?e[0]:e}function b(e,t,n){var r="";t&&(r=i(t,Z,!0)),n.addClass&&(r=k(r,i(n.addClass,Q))),n.removeClass&&(r=k(r,i(n.removeClass,K))),r.length&&(n.preparationClasses=r,e.addClass(r))}function x(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}function _(e,t){var n=t?"-"+t+"s":"";return S(e,[oe,n]),[oe,n]}function w(e,t){var n=t?"paused":"",r=O+re;return S(e,[r,n]),[r,n]}function S(e,t){var n=t[0],r=t[1];e.style[n]=r}function k(e,t){return e?t?e+" "+t:e:t}function A(e){return[ie,e+"s"]}function T(e,t){return[t?ae:oe,e+"s"]}function $(e,t,n){var r=Object.create(null),a=e.getComputedStyle(t)||{};return F(n,function(e,t){var n=a[e];if(n){var i=n.charAt(0);("-"===i||"+"===i||i>=0)&&(n=C(n)),0===n&&(n=null),r[t]=n}}),r}function C(e){var t=0,n=e.split(/\s*,\s*/);return F(n,function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function M(e){return 0===e||null!=e}function E(e,t){var n=D,r=e+"s";return t?n+=te:r+=" linear all",[n,r]}function I(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){var n=e[t];return n?n.total:0},get:function(t){var n=e[t];return n&&n.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}function P(e,t,n){F(n,function(n){e[n]=G(e[n])?e[n]:t.style.getPropertyValue(n)})}var D,j,O,L,R=t.noop,N=t.copy,z=t.extend,B=t.element,F=t.forEach,H=t.isArray,U=t.isString,q=t.isObject,V=t.isUndefined,G=t.isDefined,W=t.isFunction,Y=t.isElement,X=1,Q="-add",K="-remove",Z="ng-",J="ng-animate",ee="$$ngAnimateChildren";V(e.ontransitionend)&&G(e.onwebkittransitionend)?("-webkit-",D="WebkitTransition",j="webkitTransitionEnd transitionend"):(D="transition",j="transitionend"),V(e.onanimationend)&&G(e.onwebkitanimationend)?("-webkit-",O="WebkitAnimation",L="webkitAnimationEnd animationend"):(O="animation",L="animationend");var te="Duration",ne="TimingFunction",re="PlayState",ae=O+"Delay",ie=O+te,oe=D+"Delay",se=D+te,le=t.$$minErr("ng"),ce=["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),i=0;i<t.length;i++)t[i]();a||e(function(){a||n()})}}var r,a;return r=t.queue=[],t.waitUntilQuiet=function(t){a&&a(),a=e(function(){a=null,t(),n()})},t}],ue=["$interpolate",function(e){return{link:function(n,r,a){function i(e){e="on"===e||"true"===e,r.data(ee,e)}var o=a.ngAnimateChildren;t.isString(o)&&0===o.length?r.data(ee,!0):(i(e(o)(n)),a.$observe("ngAnimateChildren",i))}}}],de="$$animateCss",pe=1e3,fe=3,he=1.5,ge={transitionDuration:se,transitionDelay:oe,transitionProperty:D+"Property",animationDuration:ie,animationDelay:ae,animationIterationCount:O+"IterationCount"},me={transitionDuration:se,transitionDelay:oe,animationDuration:ie,animationDelay:ae},ve=["$animateProvider",function(e){var t=I(),n=I();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,r,s,l,c,u,m,v){function b(e,t){var n="$$ngAnimateParentKey",r=e.parentNode;return(r[n]||(r[n]=++B))+"-"+e.getAttribute("class")+"-"+t}function x(n,r,a,i){var o=t.get(a);return o||(o=$(e,n,i),"infinite"===o.animationIterationCount&&(o.animationIterationCount=1)),t.put(a,o),o}function k(a,o,s,l){var c;if(t.count(s)>0&&!(c=n.get(s))){var u=i(o,"-stagger");r.addClass(a,u),c=$(e,a,l),c.animationDuration=Math.max(c.animationDuration,0),c.transitionDuration=Math.max(c.transitionDuration,0),r.removeClass(a,u),n.put(s,c)}return c||{}}function C(e){U.push(e),m.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=c(),r=0;r<U.length;r++)U[r](e);U.length=0})}function I(e,t,n){var r=x(e,t,n,ge),a=r.animationDelay,i=r.transitionDelay;return r.maxDelay=a&&i?Math.max(a,i):a||i,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}var z=d(r),B=0,U=[];return function(e,n){function c(){m()}function d(){m(!0)}function m(t){if(!(W||X&&Y)){W=!0,Y=!1,q.$$skipPreparationClasses||r.removeClass(e,xe),r.removeClass(e,we),w(G,!1),_(G,!1),F(se,function(e){G.style[e[0]]=""}),z(e,q),f(e,q),Object.keys(V).length&&F(V,function(e,t){e?G.style.setProperty(t,e):G.style.removeProperty(t)}),q.onDone&&q.onDone(),ue&&ue.length&&e.off(ue.join(" "),B);var n=e.data(de);n&&(l.cancel(n[0].timer),e.removeData(de)),J&&J.complete(!t)}}function x(e){Oe.blockTransition&&_(G,e),Oe.blockKeyframeAnimation&&w(G,!!e)}function $(){return J=new s({end:c,cancel:d}),C(R),m(),{$$willAnimate:!1,start:function(){return J},end:c}}function B(e){e.stopPropagation();var t=e.originalEvent||e,n=t.$manualTimeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(fe));Math.max(n-oe,0)>=re&&r>=ae&&(X=!0,m())}function U(){function t(){if(!W){if(x(!1),F(se,function(e){var t=e[0],n=e[1];G.style[t]=n}),z(e,q),r.addClass(e,we),Oe.recalculateTimingStyles){if(_e=G.className+" "+xe,ke=b(G,_e),De=I(G,_e,ke),je=De.maxDelay,te=Math.max(je,0),0===(ae=De.maxDuration))return void m();Oe.hasTransitions=De.transitionDuration>0,Oe.hasAnimations=De.animationDuration>0}if(Oe.applyAnimationDelay&&(je="boolean"!=typeof q.delay&&M(q.delay)?parseFloat(q.delay):je,te=Math.max(je,0),De.animationDelay=je,Le=T(je,!0),se.push(Le),G.style[Le[0]]=Le[1]),re=te*pe,ie=ae*pe,q.easing){var t,a=q.easing;Oe.hasTransitions&&(t=D+ne,se.push([t,a]),G.style[t]=a),Oe.hasAnimations&&(t=O+ne,se.push([t,a]),G.style[t]=a)}De.transitionDuration&&ue.push(j),De.animationDuration&&ue.push(L),oe=Date.now();var i=re+he*ie,o=oe+i,s=e.data(de)||[],c=!0;if(s.length){var u=s[0];c=o>u.expectedEndTime,c?l.cancel(u.timer):s.push(m)}if(c){var d=l(n,i,!1);s[0]={timer:d,expectedEndTime:o},s.push(m),e.data(de,s)}ue.length&&e.on(ue.join(" "),B),q.to&&(q.cleanupStyles&&P(V,G,Object.keys(q.to)),g(e,q))}}function n(){var t=e.data(de);if(t){for(var n=1;n<t.length;n++)t[n]();e.removeData(de)}}if(!W){if(!G.parentNode)return void m();var a=function(e){if(X)Y&&e&&(Y=!1,m());else if(Y=!e,De.animationDuration){var t=w(G,Y);Y?se.push(t):o(se,t)}},i=Ie>0&&(De.transitionDuration&&0===Ae.transitionDuration||De.animationDuration&&0===Ae.animationDuration)&&Math.max(Ae.animationDelay,Ae.transitionDelay);i?l(t,Math.floor(i*Ie*pe),!1):t(),ee.resume=function(){a(!0)},ee.pause=function(){a(!1)}}}var q=n||{};q.$$prepared||(q=p(N(q)));var V={},G=y(e);if(!G||!G.parentNode||!v.enabled())return $();var W,Y,X,J,ee,te,re,ae,ie,oe,se=[],le=e.attr("class"),ce=a(q),ue=[];if(0===q.duration||!u.animations&&!u.transitions)return $();var ge=q.event&&H(q.event)?q.event.join(" "):q.event,ve=ge&&q.structural,ye="",be="";ve?ye=i(ge,Z,!0):ge&&(ye=ge),q.addClass&&(be+=i(q.addClass,Q)),q.removeClass&&(be.length&&(be+=" "),be+=i(q.removeClass,K)),q.applyClassesEarly&&be.length&&z(e,q);var xe=[ye,be].join(" ").trim(),_e=le+" "+xe,we=i(xe,"-active"),Se=ce.to&&Object.keys(ce.to).length>0;if(!((q.keyframeStyle||"").length>0||Se||xe))return $();var ke,Ae;if(q.stagger>0){var Te=parseFloat(q.stagger);Ae={transitionDelay:Te,animationDelay:Te,transitionDuration:0,animationDuration:0}}else ke=b(G,_e),Ae=k(G,xe,ke,me);q.$$skipPreparationClasses||r.addClass(e,xe);var $e;if(q.transitionStyle){var Ce=[D,q.transitionStyle];S(G,Ce),se.push(Ce)}if(q.duration>=0){$e=G.style[D].length>0;var Me=E(q.duration,$e);S(G,Me),se.push(Me)}if(q.keyframeStyle){var Ee=[O,q.keyframeStyle];S(G,Ee),se.push(Ee)}var Ie=Ae?q.staggerIndex>=0?q.staggerIndex:t.count(ke):0,Pe=0===Ie;Pe&&!q.skipBlocking&&_(G,9999);var De=I(G,_e,ke),je=De.maxDelay;te=Math.max(je,0),ae=De.maxDuration;var Oe={};if(Oe.hasTransitions=De.transitionDuration>0,Oe.hasAnimations=De.animationDuration>0,Oe.hasTransitionAll=Oe.hasTransitions&&"all"==De.transitionProperty,Oe.applyTransitionDuration=Se&&(Oe.hasTransitions&&!Oe.hasTransitionAll||Oe.hasAnimations&&!Oe.hasTransitions),Oe.applyAnimationDuration=q.duration&&Oe.hasAnimations,Oe.applyTransitionDelay=M(q.delay)&&(Oe.applyTransitionDuration||Oe.hasTransitions),Oe.applyAnimationDelay=M(q.delay)&&Oe.hasAnimations,Oe.recalculateTimingStyles=be.length>0,(Oe.applyTransitionDuration||Oe.applyAnimationDuration)&&(ae=q.duration?parseFloat(q.duration):ae,Oe.applyTransitionDuration&&(Oe.hasTransitions=!0,De.transitionDuration=ae,$e=G.style[D+"Property"].length>0,se.push(E(ae,$e))),Oe.applyAnimationDuration&&(Oe.hasAnimations=!0,De.animationDuration=ae,se.push(A(ae)))),0===ae&&!Oe.recalculateTimingStyles)return $();if(null!=q.delay){var Le;"boolean"!=typeof q.delay&&(Le=parseFloat(q.delay),te=Math.max(Le,0)),Oe.applyTransitionDelay&&se.push(T(Le)),Oe.applyAnimationDelay&&se.push(T(Le,!0))}return null==q.duration&&De.transitionDuration>0&&(Oe.recalculateTimingStyles=Oe.recalculateTimingStyles||Pe),re=te*pe,ie=ae*pe,q.skipBlocking||(Oe.blockTransition=De.transitionDuration>0,Oe.blockKeyframeAnimation=De.animationDuration>0&&Ae.animationDelay>0&&0===Ae.animationDuration),q.from&&(q.cleanupStyles&&P(V,G,Object.keys(q.from)),h(e,q)),Oe.blockTransition||Oe.blockKeyframeAnimation?x(ae):q.skipBlocking||_(G,!1),{$$willAnimate:!0,end:c,start:function(){if(!W)return ee={end:c,cancel:d,resume:null,pause:null},J=new s(ee),C(U),J}}}}]}],ye=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor-out";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,a,i,o,s,l,c){function u(e){return e.replace(/\bng-\S+\b/g,"")}function p(e,t){return U(e)&&(e=e.split(" ")),U(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function f(t,a,o){function s(e){var t={},n=y(e).getBoundingClientRect();return F(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=m.scrollTop;break;case"left":r+=m.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function l(e){return e.attr("class")||""}function c(){var t=u(l(o)),n=p(t,h),a=p(h,t),i=e(f,{to:s(o),addClass:"ng-anchor-in "+n,removeClass:r+" "+a,delay:!0});return i.$$willAnimate?i:null}function d(){f.remove(),a.removeClass(n),o.removeClass(n)}var f=B(y(a).cloneNode(!0)),h=u(l(f));a.addClass(n),o.addClass(n),f.addClass("ng-anchor"),b.append(f);var g,v=function(){var t=e(f,{addClass:r,delay:!0,from:s(a)});return t.$$willAnimate?t:null}();if(!v&&!(g=c()))return d();var x=v||g;return{start:function(){function e(){n&&n.end()}var t,n=x.start();return n.done(function(){if(n=null,!g&&(g=c()))return n=g.start(),n.done(function(){n=null,d(),t.complete()}),n;d(),t.complete()}),t=new i({end:e,cancel:e})}}}function h(e,t,n,r){var a=g(e),o=g(t),s=[];if(F(r,function(e){var t=e.out,r=e.in,a=f(n,t,r);a&&s.push(a)}),a||o||0!==s.length)return{start:function(){function e(){F(t,function(e){e.end()})}var t=[];a&&t.push(a.start()),o&&t.push(o.start()),F(s,function(e){t.push(e.start())});var n=new i({end:e,cancel:e});return i.all(t,function(e){n.complete(e)}),n}}}function g(t){var n=t.element,r=t.options||{};t.structural&&(r.event=t.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===t.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=k(r.event,r.preparationClasses));var a=e(n,r);return a.$$willAnimate?a:null}if(!s.animations&&!s.transitions)return R;var m=c[0].body,v=y(o),b=B(t(v)||m.contains(v)?v:m);return d(l),function(e){return e.from&&e.to?h(e.from,e.to,e.classes,e.anchors):g(e)}}]}],be=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function a(n){n=H(n)?n:n.split(" ");for(var r=[],a={},i=0;i<n.length;i++){var o=n[i],s=e.$$registeredAnimations[o];s&&!a[o]&&(r.push(t.get(s)),a[o]=!0)}return r}var i=d(r);return function(e,t,r,o){function s(){o.domOperation(),i(e,o)}function l(){h=!0,s(),f(e,o)}function c(e,t,r,a,i){var o;switch(r){case"animate":o=[t,a.from,a.to,i];break;case"setClass":o=[t,v,y,i];break;case"addClass":o=[t,v,i];break;case"removeClass":o=[t,y,i];break;default:o=[t,i]}o.push(a);var s=e.apply(e,o);if(s)if(W(s.start)&&(s=s.start()),s instanceof n)s.done(i);else if(W(s))return s;return R}function u(e,t,r,a,i){var o=[];return F(a,function(a){var s=a[i];s&&o.push(function(){var a,i,o=!1,l=function(e){o||(o=!0,(i||R)(e),a.complete(!e))};return a=new n({end:function(){l()},cancel:function(){l(!0)}}),i=c(s,e,t,r,function(e){l(!1===e)}),a})}),o}function d(e,t,r,a,i){var o=u(e,t,r,a,i);if(0===o.length){var s,l;"beforeSetClass"===i?(s=u(e,"removeClass",r,a,"beforeRemoveClass"),l=u(e,"addClass",r,a,"beforeAddClass")):"setClass"===i&&(s=u(e,"removeClass",r,a,"removeClass"),l=u(e,"addClass",r,a,"addClass")),s&&(o=o.concat(s)),l&&(o=o.concat(l))}if(0!==o.length)return function(e){var t=[];return o.length&&F(o,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){F(t,function(t){e?t.cancel():t.end()})}}}var h=!1;3===arguments.length&&q(r)&&(o=r,r=null),o=p(o),r||(r=e.attr("class")||"",o.addClass&&(r+=" "+o.addClass),o.removeClass&&(r+=" "+o.removeClass));var g,m,v=o.addClass,y=o.removeClass,b=a(r);if(b.length){var x,_;"leave"==t?(_="leave",x="afterLeave"):(_="before"+t.charAt(0).toUpperCase()+t.substr(1),x=t),"enter"!==t&&"move"!==t&&(g=d(e,t,o,b,_)),m=d(e,t,o,b,x)}if(g||m){var w;return{$$willAnimate:!0,end:function(){return w?w.end():(l(),w=new n,w.complete(!0)),w},start:function(){function e(e){l(e),w.complete(e)}function t(t){h||((r||R)(t),e(t))}if(w)return w;w=new n;var r,a=[];return g&&a.push(function(e){r=g(e)}),a.length?a.push(function(e){s(),e(!0)}):s(),m&&a.push(function(e){r=m(e)}),w.setHost({end:function(){t()},cancel:function(){t(!0)}}),n.chain(a,e),w}}}}}]}],xe=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){var n=t.element,r=t.event,a=t.options,i=t.classes;return e(n,r,i,a)}return function(e){if(e.from&&e.to){var r=n(e.from),a=n(e.to);if(!r&&!a)return;return{start:function(){function e(){return function(){F(i,function(e){e.end()})}}function n(e){o.complete(e)}var i=[];r&&i.push(r.start()),a&&i.push(a.start()),t.all(i,n);var o=new t({end:e(),cancel:e()});return o}}}return n(e)}}]}],_e="data-ng-animate",we="$ngAnimatePin",Se=["$animateProvider",function(r){function a(e){if(!e)return null;var t=e.split(g),n=Object.create(null);return F(t,function(e){n[e]=!0}),n}function i(e,t){if(e&&t){var n=a(t);return e.split(g).some(function(e){return n[e]})}}function o(e,t,n,r){return v[e].some(function(e){return e(t,n,r)})}function c(e,t){var n=(e.addClass||"").length>0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}var u=1,h=2,g=" ",v=this.rules={skip:[],cancel:[],join:[]};v.join.push(function(e,t,n){return!t.structural&&c(t)}),v.skip.push(function(e,t,n){return!t.structural&&!c(t)}),v.skip.push(function(e,t,n){return"leave"==n.event&&t.structural}),v.skip.push(function(e,t,n){return n.structural&&n.state===h&&!t.structural}),v.cancel.push(function(e,t,n){return n.structural&&t.structural}),v.cancel.push(function(e,t,n){return n.state===h&&t.structural}),v.cancel.push(function(e,t,n){if(n.structural)return!1;var r=t.addClass,a=t.removeClass,o=n.addClass,s=n.removeClass;return!(V(r)&&V(a)||V(o)&&V(s))&&(i(r,s)||i(a,o))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(a,i,g,v,_,w,S,k,A,T){function $(){var e=!1;return function(t){e?t():i.$$postDigest(function(){e=!0,t()})}}function C(e,t){return m(e,t,{})}function M(e,t,n){var r=y(t),a=y(e),i=[],o=J[n];return o&&F(o,function(e){ae.call(e.node,r)?i.push(e.callback):"leave"===n&&ae.call(e.node,a)&&i.push(e.callback)}),i}function E(e,t,n){var r=l(t);return e.filter(function(e){return!(e.node===r&&(!n||e.callback===n))})}function I(e,t){"close"!==e||t[0].parentNode||ie.off(t)}function P(e,t,n){function r(t,n,r,i){A(function(){var t=M(g,e,n);t.length?a(function(){F(t,function(t){t(e,r,i)}),I(r,e)}):I(r,e)}),t.progress(n,r,i)}function l(t){x(e,_),re(e,_),f(e,_),_.domOperation(),k.complete(!t)}var d,g,_=N(n);e=s(e),e&&(d=y(e),g=e.parent()),_=p(_);var k=new S,A=$();if(H(_.addClass)&&(_.addClass=_.addClass.join(" ")),_.addClass&&!U(_.addClass)&&(_.addClass=null),H(_.removeClass)&&(_.removeClass=_.removeClass.join(" ")),_.removeClass&&!U(_.removeClass)&&(_.removeClass=null),_.from&&!q(_.from)&&(_.from=null),_.to&&!q(_.to)&&(_.to=null),!d)return l(),k;var T=[d.className,_.addClass,_.removeClass].join(" ");if(!ne(T))return l(),k;var E=["enter","move","leave"].indexOf(t)>=0,P=v[0].hidden,O=!K||P||Q.get(d),z=!O&&W.get(d)||{},B=!!z.state;if(O||B&&z.state==u||(O=!L(e,g,t)),O)return P&&r(k,t,"start"),l(),P&&r(k,t,"close"),k;E&&D(e);var V={structural:E,element:e,event:t,addClass:_.addClass,removeClass:_.removeClass,close:l,options:_,runner:k};if(B){if(o("skip",e,V,z))return z.state===h?(l(),k):(m(e,z,V),z.runner);if(o("cancel",e,V,z))if(z.state===h)z.runner.end();else{if(!z.structural)return m(e,z,V),z.runner;z.close()}else{if(o("join",e,V,z)){if(z.state!==h)return b(e,E?t:null,_),t=V.event=z.event,_=m(e,z,V),z.runner;C(e,V)}}}else C(e,V);var G=V.structural;if(G||(G="animate"===V.event&&Object.keys(V.options.to||{}).length>0||c(V)),!G)return l(),j(e),k;var Y=(z.counter||0)+1;return V.counter=Y,R(e,u,V),i.$$postDigest(function(){var n=W.get(d),a=!n;n=n||{};var i=e.parent()||[],o=i.length>0&&("animate"===n.event||n.structural||c(n));if(a||n.counter!==Y||!o)return a&&(re(e,_),f(e,_)),(a||E&&n.event!==t)&&(_.domOperation(),k.end()),void(o||j(e));t=!n.structural&&c(n,!0)?"setClass":n.event,R(e,h);var s=w(e,t,n.options);k.setHost(s),r(k,t,"start",{}),s.done(function(n){l(!n);var a=W.get(d);a&&a.counter===Y&&j(y(e)),r(k,t,"close",{})})}),k}function D(e){var t=y(e),n=t.querySelectorAll("["+_e+"]");F(n,function(e){var t=parseInt(e.getAttribute(_e)),n=W.get(e);if(n)switch(t){case h:n.runner.end();case u:W.remove(e)}})}function j(e){var t=y(e);t.removeAttribute(_e),W.remove(t)}function O(e,t){return y(e)===y(t)}function L(e,t,n){var r,a=B(v[0].body),i=O(e,a)||"HTML"===e[0].nodeName,o=O(e,g),s=!1,l=Q.get(y(e)),c=B.data(e[0],we);for(c&&(t=c),t=y(t);t&&(o||(o=O(t,g)),t.nodeType===X);){var u=W.get(t)||{};if(!s){var d=Q.get(t);if(!0===d&&!1!==l){l=!0;break}!1===d&&(l=!1),s=u.structural}if(V(r)||!0===r){var p=B.data(t,ee);G(p)&&(r=p)}if(s&&!1===r)break;if(i||(i=O(t,a)),i&&o)break;t=o||!(c=B.data(t,we))?t.parentNode:y(c)}return(!s||r)&&!0!==l&&o&&i}function R(e,t,n){n=n||{},n.state=t;var r=y(e);r.setAttribute(_e,t);var a=W.get(r),i=a?z(a,n):n;W.put(r,i)}var W=new _,Q=new _,K=null,Z=i.$watch(function(){return 0===k.totalPendingRequests},function(e){e&&(Z(),i.$$postDigest(function(){i.$$postDigest(function(){null===K&&(K=!0)})}))}),J={},te=r.classNameFilter(),ne=te?function(e){return te.test(e)}:function(){return!0},re=d(A),ae=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},ie={on:function(e,t,n){var r=l(t);J[e]=J[e]||[],J[e].push({node:r,callback:n}),B(t).on("$destroy",function(){W.get(r)||ie.off(e,t,n)})},off:function(e,n,r){if(1!==arguments.length||t.isString(arguments[0])){var a=J[e];a&&(J[e]=1===arguments.length?null:E(a,n,r))}else{n=arguments[0];for(var i in J)J[i]=E(J[i],n)}},pin:function(e,t){n(Y(e),"element","not an element"),n(Y(t),"parentElement","not an element"),e.data(we,t)},push:function(e,t,n,r){return n=n||{},n.domOperation=r,P(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!K;else{if(Y(e)){var r=y(e),a=Q.get(r);1===n?t=!a:Q.put(r,!t)}else t=K=!!e}return t}};return ie}]}],ke=["$animateProvider",function(e){function t(e,t){e.data(s,t)}function n(e){e.removeData(s)}function a(e){return e.data(s)}var i="ng-animate-ref",o=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(e,s,l,c,u,h){function g(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,i=n.parentNode;a.put(n,e);for(var o;i;){if(o=a.get(i)){o.processed||(o=t(o));break}i=i.parentNode}return(o||r).children.push(e),e}var n,r={children:[]},a=new u;for(n=0;n<e.length;n++){var i=e[n];a.put(i.domNode,e[n]={domNode:i.domNode,fn:i.fn,children:[]})}for(n=0;n<e.length;n++)t(e[n]);return function(e){var t,n=[],r=[];for(t=0;t<e.children.length;t++)r.push(e.children[t]);var a=r.length,i=0,o=[];for(t=0;t<r.length;t++){var s=r[t];a<=0&&(a=i,i=0,n.push(o),o=[]),o.push(s.fn),s.children.forEach(function(e){i++,r.push(e)}),a--}return o.length&&n.push(o),n}(r)}var m=[],v=d(e);return function(u,d,b){function x(e){var t="["+i+"]",n=e.hasAttribute(i)?[e]:e.querySelectorAll(t),r=[];return F(n,function(e){var t=e.getAttribute(i);t&&t.length&&r.push(e)}),r}function _(e){var t=[],n={};F(e,function(e,r){var a=e.element,o=y(a),s=e.event,l=["enter","move"].indexOf(s)>=0,c=e.structural?x(o):[];if(c.length){var u=l?"to":"from";F(c,function(e){var t=e.getAttribute(i);n[t]=n[t]||{},n[t][u]={animationID:r,element:B(e)}})}else t.push(e)});var r={},a={};return F(n,function(n,i){var o=n.from,s=n.to;if(!o||!s){var l=o?o.animationID:s.animationID,c=l.toString();return void(r[c]||(r[c]=!0,t.push(e[l])))}var u=e[o.animationID],d=e[s.animationID],p=o.animationID.toString();if(!a[p]){var f=a[p]={structural:!0,beforeStart:function(){u.beforeStart(),d.beforeStart()},close:function(){u.close(),d.close()},classes:w(u.classes,d.classes),from:u,to:d,anchors:[]};f.classes.length?t.push(f):(t.push(u),t.push(d))}a[p].anchors.push({out:o.element,in:s.element})}),t}function w(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r<e.length;r++){var a=e[r];if("ng-"!==a.substring(0,3))for(var i=0;i<t.length;i++)if(a===t[i]){n.push(a);break}}return n.join(" ")}function S(e){for(var t=o.length-1;t>=0;t--){var n=o[t];if(l.has(n)){var r=l.get(n),a=r(e);if(a)return a}}}function k(){u.addClass(J),I&&e.addClass(u,I),P&&(e.removeClass(u,P),P=null)}function A(e,t){function n(e){a(e).setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}function T(){var e=a(u);!e||"leave"===d&&b.$$domOperationFired||e.end()}function $(t){u.off("$destroy",T),n(u),v(u,b),f(u,b),b.domOperation(),I&&e.removeClass(u,I),u.removeClass(J),M.complete(!t)}b=p(b);var C=["enter","move","leave"].indexOf(d)>=0,M=new c({end:function(){$()},cancel:function(){$(!0)}});if(!o.length)return $(),M;t(u,M);var E=r(u.attr("class"),r(b.addClass,b.removeClass)),I=b.tempClasses;I&&(E+=" "+I,b.tempClasses=null);var P;return C&&(P="ng-"+d+"-prepare",e.addClass(u,P)),m.push({element:u,classes:E,event:d,structural:C,options:b,beforeStart:k,close:$}),u.on("$destroy",T),m.length>1?M:(s.$$postDigest(function(){var e=[];F(m,function(t){a(t.element)?e.push(t):t.close()}),m.length=0;var t=_(e),n=[];F(t,function(e){n.push({domNode:y(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,n=e.close;if(a(e.anchors?e.from.element||e.to.element:e.element)){var r=S(e);r&&(t=r.start)}if(t){var i=t();i.done(function(e){n(!e)}),A(e,i)}else n()}})}),h(g(n))}),M)}}]}],Ae=["$animate","$rootScope",function(e,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,r,a,i){var o,s;t.$watchCollection(r.ngAnimateSwap||r.for,function(r){o&&e.leave(o),s&&(s.$destroy(),s=null),(r||0===r)&&(s=t.$new(),i(s,function(t){o=t,e.enter(t,null,n)}))})}}}];t.module("ngAnimate",[]).directive("ngAnimateSwap",Ae).directive("ngAnimateChildren",ue).factory("$$rAFScheduler",ce).provider("$$animateQueue",Se).provider("$$animation",ke).provider("$animateCss",ve).provider("$$animateCssDriver",ye).provider("$$animateJs",be).provider("$$animateJsDriver",xe)}(window,window.angular)},{}],2:[function(e,t,n){!function(e,t){"use strict";function n(e,n,r){function a(e,r,a){var o,s;a=a||{},s=a.expires,o=t.isDefined(a.path)?a.path:i,t.isUndefined(r)&&(s="Thu, 01 Jan 1970 00:00:00 GMT",r=""),t.isString(s)&&(s=new Date(s));var l=encodeURIComponent(e)+"="+encodeURIComponent(r);l+=o?";path="+o:"",l+=a.domain?";domain="+a.domain:"",l+=s?";expires="+s.toUTCString():"",l+=a.secure?";secure":"";var c=l.length+1;return c>4096&&n.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+c+" > 4096 bytes)!"),l}var i=r.baseHref(),o=e[0];return function(e,t,n){o.cookie=a(e,t,n)}}t.module("ngCookies",["ng"]).provider("$cookies",[function(){function e(e){return e?t.extend({},n,e):n}var n=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(n,r){return{get:function(e){return n()[e]},getObject:function(e){var n=this.get(e);return n?t.fromJson(n):n},getAll:function(){return n()},put:function(t,n,a){r(t,n,e(a))},putObject:function(e,n,r){this.put(e,t.toJson(n),r)},remove:function(t,n){r(t,void 0,e(n))}}}]}]),t.module("ngCookies").factory("$cookieStore",["$cookies",function(e){return{get:function(t){return e.getObject(t)},put:function(t,n){e.putObject(t,n)},remove:function(t){e.remove(t)}}}]),n.$inject=["$document","$log","$browser"],t.module("ngCookies").provider("$$cookieWriter",function(){this.$get=n})}(window,window.angular)},{}],3:[function(e,t,n){!function(r,a){"use strict";"object"===(void 0===n?"undefined":_typeof(n))&&void 0!==t?t.exports=a(e("./../../angular/angular.js"),e("./../../moment/moment.js")):"function"==typeof define&&define.amd?define(["angular","moment"],a):a(r.angular,r.moment)}(this,function(e,t){e.module||(e=window.angular);var n=e.module("datePicker",[]);n.constant("datePickerConfig",{template:"templates/datepicker.html",view:"month",views:["year","month","date","hours","minutes"],momentNames:{year:"year",month:"month",date:"day",hours:"hours",minutes:"minutes"},viewConfig:{year:["years","isSameYear"],month:["months","isSameMonth"],hours:["hours","isSameHour"],minutes:["minutes","isSameMinutes"]},step:5}),n.filter("mFormat",function(){return function(e,n,r){return t.isMoment(e)?r?t.tz(e,r).format(n):e.format(n):t(e).format(n)}}),n.directive("datePicker",["datePickerConfig","datePickerUtils","$interpolate",function(n,r,a){return{require:"?ngModel",template:'<div ng-include="template"></div>',scope:{model:"=?datePicker",after:"=?",before:"=?",highlights:"=?"},link:function(i,o,s,l){function c(){i.views=n.views.concat(),i.view=s.view||n.view,i.views=i.views.slice(i.views.indexOf(s.maxView||"year"),i.views.indexOf(s.minView||"minutes")+1),1!==i.views.length&&-1!==i.views.indexOf(i.view)||(i.view=i.views[0])}function u(e){return r.getDate(i,s,e)}function d(){var e=i.view;r.setParams(_,P),i.model&&!x&&(i.date=w(i.model),x=!1);var t=i.date;switch(e){case"year":i.years=r.getVisibleYears(t);break;case"month":i.months=r.getVisibleMonths(t);break;case"date":i.weekdays=i.weekdays||r.getDaysOfWeek(),i.weeks=r.getVisibleWeeks(t);break;case"hours":i.hours=r.getVisibleHours(t);break;case"minutes":i.minutes=r.getVisibleMinutes(t,k)}h()}function p(){return"date"!==i.view?i.view:i.date?i.date.month():null}var f,h,g,m,v,y,b,x=!1,_=i.tz=s.timezone,w=r.createMoment,S=r.eventIsForPicker,k=parseInt(s.step||n.step,10),A=!!s.partial,T=u("minDate"),$=u("maxDate"),C=a(o[0].id)(i),M=i.now=w(),E=i.date=w(i.model||M),I="true"===s.autoClose,P=s.firstDay&&s.firstDay>=0&&s.firstDay<=6?parseInt(s.firstDay,10):t().weekday(0).day();r.setParams(_,P),i.model||E.minute(Math.ceil(E.minute()/k)*k).second(0),i.template=s.template||n.template,i.watchDirectChanges=void 0!==s.watchDirectChanges,i.callbackOnSetDate=s.dateChange?r.findFunction(i,s.dateChange):void 0,c(),i.setView=function(e){-1!==i.views.indexOf(e)&&(i.view=e)},i.selectDate=function(e){if(s.disabled)return!1;if(g(i.date,e)&&(e=i.date),!(e=m(e)))return!1;i.date=e;var t=i.views[i.views.indexOf(i.view)+1];(!t||A||i.model)&&f(e,!0),t?i.setView(t):I?(o.addClass("hidden"),i.$emit("hidePicker")):h()},f=function(t,n){t&&((0!==i.model&&"date-picker"!==s.datePicker||!e.isDefined(i.model)&&!e.isDefined(s.datePicker))&&(i.model=t),l&&l.$setViewValue(t)),i.$emit("setDate",i.model,i.view,n),i.callbackOnSetDate&&i.callbackOnSetDate(s.datePicker,i.date,n)},i.$watch(p,d),i.watchDirectChanges&&i.$watch("model",function(){x=!1,d()}),e.isDefined(s.highlights)&&i.$watchCollection("highlights",function(n){if(e.isDefined(n)){if(!e.isArray(n))throw new Error("Invalid highlights object "+n);b=n.map(function(e){return t(e)}),d()}}),h=function(){var e,t,a,o=i.view,s=i.date,l=[],c="";if(r.setParams(_,P),"date"===o){var u,d=i.weeks;for(e=0;e<d.length;e++)for(u=d[e],l.push([]),t=0;t<u.length;t++){if(c="",r.isSameDay(s,u[t])&&(c+="active"),v(u[t],o)&&(c+=" now"),u[t].month()===s.month()&&y(u[t])||(c+=" disabled"),b&&b.length&&!c.length)for(a=0;a<b.length;a++)if(r.isSameDay(b[a],u[t])){c+=" highlighted";break}l[e].push(c)}}else{var p=n.viewConfig[o],f=i[p[0]],h=p[1];for(e=0;e<f.length;e++)c="",r[h](s,f[e])&&(c+="active"),v(f[e],o)&&(c+=" now"),y(f[e])||(c+=" disabled"),l.push(c)}i.classes=l},i.next=function(e){var n=t(i.date);switch(e=e||1,i.view){case"year":case"month":n.year(n.year()+e);break;case"date":n.month(n.month()+e);break;case"hours":case"minutes":n.hours(n.hours()+e)}(n=m(n))&&(i.date=n,f(n,!1),x=!0,d())},y=function(e){var t=!0;return T&&T.isAfter(e)&&(t=g(T,e)),$&&$.isBefore(e)&&(t&=g($,e)),t},g=function(e,t){return!!e.isSame(t,n.momentNames[i.view])},m=function(e){
return T&&T.isAfter(e)?T:$&&$.isBefore(e)?$:e},v=function(e,t){var n=!0;switch(t){case"minutes":n&=~~(M.minutes()/k)==~~(e.minutes()/k);case"hours":n&=M.hours()===e.hours();case"date":n&=M.date()===e.date();case"month":n&=M.month()===e.month();case"year":n&=M.year()===e.year()}return n},i.prev=function(e){return i.next(-e||-1)},C&&i.$on("pickerUpdate",function(t,n,r){if(S(n,C)){var a=!1,o=!1;e.isDefined(r.minDate)&&(T=!!r.minDate&&r.minDate,o=!0),e.isDefined(r.maxDate)&&($=!!r.maxDate&&r.maxDate,o=!0),e.isDefined(r.minView)&&(s.minView=r.minView,a=!0),e.isDefined(r.maxView)&&(s.maxView=r.maxView,a=!0),e.isDefined(r.timezone)&&(_=i.tz=r.timezone,o=!0),s.view=r.view||s.view,a&&c(),o&&d()}})}}}]),e.module("datePicker").factory("datePickerUtils",function(){var n,r,a=function(e,r,a,i,o){var s=Date.UTC(0|e,0|r,0|a,0|i,0|o);return n?t.tz(s,n):t(s)};return{getVisibleMinutes:function(e,t){var n,r,i=e.year(),o=e.month(),s=e.date(),l=e.hours(),c=e.utcOffset()/60,u=[];for(r=0;r<60;r+=t)n=a(i,o,s,l-c,r),u.push(n);return u},getVisibleWeeks:function(e){e=t(e);var n=e.year(),a=e.month();e.date(1);var i=e.day();e.date(r-(i+(r>=i?6:-1)));for(var o=[];o.length<6&&!(e.year()===n&&e.month()>a);)o.push(this.getDaysOfWeek(e)),e.add(7,"d");return o},getVisibleYears:function(e){var n=t(e),r=n.year();n.year(r-r%10),r=n.year();for(var i,o,s=n.utcOffset()/60,l=[],c=0;c<12;c++)i=a(r,0,1,0-s),o=i.utcOffset()/60,o!==s&&(i=a(r,0,1,0-o),s=o),l.push(i),r++;return l},getDaysOfWeek:function(e){e=e||(n?t.tz(n).day(r):t().day(r));for(var i,o,s=e.year(),l=e.month(),c=e.date(),u=[],d=e.utcOffset()/60,p=0;p<7;p++)i=a(s,l,c,0-d,0),o=i.utcOffset()/60,o!==d&&(i=a(s,l,c,0-o,0)),u.push(i),c++;return u},getVisibleMonths:function(e){for(var t,n,r=e.year(),i=e.utcOffset()/60,o=[],s=0;s<12;s++)t=a(r,s,1,0-i,0),n=t.utcOffset()/60,n!==i&&(t=a(r,s,1,0-n,0)),o.push(t);return o},getVisibleHours:function(e){var t,n,r,i=e.year(),o=e.month(),s=e.date(),l=[],c=e.utcOffset()/60;for(t=0;t<24;t++)n=a(i,o,s,t-c,0),r=n.utcOffset()/60,r!==c&&(n=a(i,o,s,t-r,0)),l.push(n);return l},isAfter:function(e,t){return e&&e.unix()>=t.unix()},isBefore:function(e,t){return e.unix()<=t.unix()},isSameYear:function(e,t){return e&&e.year()===t.year()},isSameMonth:function(e,t){return this.isSameYear(e,t)&&e.month()===t.month()},isSameDay:function(e,t){return this.isSameMonth(e,t)&&e.date()===t.date()},isSameHour:function(e,t){return this.isSameDay(e,t)&&e.hours()===t.hours()},isSameMinutes:function(e,t){return this.isSameHour(e,t)&&e.minutes()===t.minutes()},setParams:function(e,t){n=e,r=t},scopeSearch:function(e,t,n){var r,a,i=e,o=t.split("."),s=o.length;do{for(r=i=i.$parent,a=0;a<s;a++){r=r[o[a]]}if(r&&n(r))return r}while(i.$parent);return!1},findFunction:function(t,n){return this.scopeSearch(t,n,function(t){return e.isFunction(t)})},findParam:function(e,t){return this.scopeSearch(e,t,function(){return!0})},createMoment:function(e){return n?t.tz(e,n):t.isMoment(e)?t.unix(e.unix()):t(e)},getDate:function(e,t,n){var r=!1;return t[n]&&(r=this.createMoment(t[n]),r.isValid()||(r=this.findParam(e,t[n]))&&(r=this.createMoment(r))),r},eventIsForPicker:function(t,n){function r(e){return e instanceof RegExp?e.test(n):e===n}return e.isArray(t)?t.some(r):r(t)}}});var n=e.module("datePicker");n.directive("dateRange",["$compile","datePickerUtils","dateTimeConfig",function(n,r,a){function i(n,r,i,o,s){return a.template(e.extend(n,{ngModel:i,minDate:!(!o||!t.isMoment(o))&&o.format(),maxDate:!(!s||!t.isMoment(s))&&s.format()}),r)}function o(){return"picker"+Math.random().toString().substr(2)}return{scope:{start:"=",end:"="},link:function(t,a,s){function l(e){t.$broadcast("pickerUpdate",p[0],{maxDate:e})}function c(e){t.$broadcast("pickerUpdate",p[1],{minDate:e})}var u=null,d=a[0].id,p=[o(),o()],f=r.createMoment,h=r.eventIsForPicker;t.dateChange=function(e,t){u&&u(e,t)},d&&t.$on("pickerUpdate",function(e,n,r){h(n,d)&&t.$broadcast("pickerUpdate",p,r)}),r.setParams(s.timezone),t.start=f(t.start),t.end=f(t.end),t.$watchGroup(["start","end"],function(e){c(e[0]),l(e[1])}),e.isDefined(s.dateChange)&&(u=r.findFunction(t,s.dateChange)),s.onSetDate="dateChange";var g='<div><table class="date-range"><tr><td valign="top">'+i(s,p[0],"start",!1,t.end)+'</td><td valign="top">'+i(s,p[1],"end",t.start,!1)+"</td></tr></table></div>",m=n(g)(t);a.append(m)}}}]);var n=e.module("datePicker");n.constant("dateTimeConfig",{template:function(e,t){return"<div "+(t?'id="'+t+'" ':"")+'date-picker="'+e.ngModel+'" '+(e.view?'view="'+e.view+'" ':"")+(e.maxView?'max-view="'+e.maxView+'" ':"")+(e.maxDate?'max-date="'+e.maxDate+'" ':"")+(e.autoClose?'auto-close="'+e.autoClose+'" ':"")+(e.template?'template="'+e.template+'" ':"")+(e.minView?'min-view="'+e.minView+'" ':"")+(e.minDate?'min-date="'+e.minDate+'" ':"")+(e.partial?'partial="'+e.partial+'" ':"")+(e.step?'step="'+e.step+'" ':"")+(e.onSetDate?'date-change="'+e.onSetDate+'" ':"")+(e.ngModel?'ng-model="'+e.ngModel+'" ':"")+(e.firstDay?'first-day="'+e.firstDay+'" ':"")+(e.timezone?'timezone="'+e.timezone+'" ':"")+(e.highlights?'highlights="'+e.highlights+'" ':"")+'class="date-picker-date-time"></div>'},format:"YYYY-MM-DD HH:mm",views:["date","year","month","hours","minutes"],autoClose:!1,position:"relative"}),n.directive("dateTimeAppend",function(){return{link:function(e,t){t.bind("click",function(){t.find("input")[0].focus()})}}}),n.directive("dateTime",["$compile","$document","$filter","dateTimeConfig","$parse","datePickerUtils","$interpolate",function(n,r,a,i,o,s,l){var c=r.find("body"),u=a("mFormat");return{require:"ngModel",scope:!0,link:function(r,a,d,p){function f(e){if(e)return u(e,w,L)}function h(e){if(!e)return"";var n=t(e,w);return n.isValid()?n:void 0}function g(e){P=e,d.minDate=e?e.format():e,D=t.isMoment(e)}function m(e){j=e,d.maxDate=e?e.format():e,O=t.isMoment(e)}function v(){_=i.template(d)}function y(e){e.stopPropagation(),p.$pristine&&(p.$dirty=!0,p.$pristine=!1,a.removeClass("ng-pristine").addClass("ng-dirty"),S&&S.$setDirty(),p.$render())}function b(){C&&(C.remove(),C=null),I&&(I.remove(),I=null)}function x(){if(!C){if(C=n(_)(r),r.$digest(),z||(r.$on("setDate",function(e,t,n,r){y(e),N&&N(d.ngModel,t,r),$&&k[k.length-1]===n&&b()}),r.$on("hidePicker",function(){a.triggerHandler("blur")}),r.$on("$destroy",b),z=!0),"absolute"===E){var t=a[0].getBoundingClientRect(),i=t.height||a[0].offsetHeight;C.css({top:t.top+i+"px",left:t.left+"px",display:"block",position:E}),c.append(C)}else I=e.element("<div date-picker-wrapper></div>"),a[0].parentElement.insertBefore(I[0],a[0]),I.append(C),C.css({top:a[0].offsetHeight+"px",display:"block"});C.bind("mousedown",function(e){e.preventDefault()})}}var _,w=d.format||i.format,S=a.inheritedData("$formController"),k=o(d.views)(r)||i.views.concat(),A=d.view||k[0],T=k.indexOf(A),$=d.autoClose?o(d.autoClose)(r):i.autoClose,C=null,M=l(a[0].id)(r),E=d.position||i.position,I=null,P=null,D=null,j=null,O=null,L=d.timezone||!1,R=s.eventIsForPicker,N=null,z=!1;-1===T&&k.splice(T,1),k.unshift(A),p.$formatters.push(f),p.$parsers.unshift(h),e.isDefined(d.minDate)&&(g(s.findParam(r,d.minDate)),p.$validators.min=function(e){return!D||t.isMoment(e)&&(P.isSame(e)||P.isBefore(e))}),e.isDefined(d.maxDate)&&(m(s.findParam(r,d.maxDate)),p.$validators.max=function(e){return!O||t.isMoment(e)&&(j.isSame(e)||j.isAfter(e))}),e.isDefined(d.dateChange)&&(N=s.findFunction(r,d.dateChange)),M&&r.$on("pickerUpdate",function(t,n,r){if(R(n,M))if(C);else{var a=!1;e.isDefined(r.minDate)&&(g(r.minDate),a=!0),e.isDefined(r.maxDate)&&(m(r.maxDate),a=!0),e.isDefined(r.minView)&&(d.minView=r.minView),e.isDefined(r.maxView)&&(d.maxView=r.maxView),e.isDefined(r.timezone)&&(L=d.timezone=r.timezone,a=!0),d.view=r.view||d.view,a&&p.$validate(),e.isDefined(r.format)&&(w=d.format=r.format||i.format,p.$modelValue=-1),v()}}),a.bind("focus",x),a.bind("blur",b),v()}}}]),e.module("datePicker").run(["$templateCache",function(e){e.put("templates/datepicker.html",'<div ng-switch="view">\n <div ng-switch-when="date">\n <table>\n <thead>\n <tr>\n <th ng-click="prev()">‹</th>\n <th colspan="5" class="switch" ng-click="setView(\'month\')" ng-bind="date|mFormat:\'YYYY MMMM\':tz"></th>\n <th ng-click="next()">›</i></th>\n </tr>\n <tr>\n <th ng-repeat="day in weekdays" style="overflow: hidden" ng-bind="day|mFormat:\'ddd\':tz"></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="week in weeks" ng-init="$index2 = $index">\n <td ng-repeat="day in week">\n <span\n ng-class="classes[$index2][$index]"\n ng-click="selectDate(day)" ng-bind="day|mFormat:\'DD\':tz"></span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div ng-switch-when="year">\n <table>\n <thead>\n <tr>\n <th ng-click="prev(10)">‹</th>\n <th colspan="5" class="switch"ng-bind="years[0].year()+\' - \'+years[years.length-1].year()"></th>\n <th ng-click="next(10)">›</i></th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td colspan="7">\n <span ng-class="classes[$index]"\n ng-repeat="year in years"\n ng-click="selectDate(year)" ng-bind="year.year()"></span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div ng-switch-when="month">\n <table>\n <thead>\n <tr>\n <th ng-click="prev()">‹</th>\n <th colspan="5" class="switch" ng-click="setView(\'year\')" ng-bind="date|mFormat:\'YYYY\':tz"></th>\n <th ng-click="next()">›</i></th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td colspan="7">\n <span ng-repeat="month in months"\n ng-class="classes[$index]"\n ng-click="selectDate(month)"\n ng-bind="month|mFormat:\'MMM\':tz"></span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div ng-switch-when="hours">\n <table>\n <thead>\n <tr>\n <th ng-click="prev(24)">‹</th>\n <th colspan="5" class="switch" ng-click="setView(\'date\')" ng-bind="date|mFormat:\'DD MMMM YYYY\':tz"></th>\n <th ng-click="next(24)">›</i></th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td colspan="7">\n <span ng-repeat="hour in hours"\n ng-class="classes[$index]"\n ng-click="selectDate(hour)" ng-bind="hour|mFormat:\'HH:mm\':tz"></span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div ng-switch-when="minutes">\n <table>\n <thead>\n <tr>\n <th ng-click="prev()">‹</th>\n <th colspan="5" class="switch" ng-click="setView(\'hours\')" ng-bind="date|mFormat:\'DD MMMM YYYY\':tz"></th>\n <th ng-click="next()">›</i></th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td colspan="7">\n <span ng-repeat="minute in minutes"\n ng-class="classes[$index]"\n ng-click="selectDate(minute)"\n ng-bind="minute|mFormat:\'HH:mm\':tz"></span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n</div>')}])})},{"./../../angular/angular.js":11,"./../../moment/moment.js":16}],4:[function(e,t,n){angular.module("gettext",[]),angular.module("gettext").constant("gettext",function(e){return e}),angular.module("gettext").factory("gettextCatalog",["gettextPlurals","$http","$cacheFactory","$interpolate","$rootScope",function(e,t,n,r,a){function i(){a.$broadcast("gettextLanguageChanged")}var o,s='<span id="test" title="test" class="tested">test</span>',l=angular.element("<span>"+s+"</span>").html()!==s,c=function(e){return o.debug&&o.currentLanguage!==o.baseLanguage?o.debugPrefix+e:e},u=function(e){return o.showTranslatedMarkers?o.translatedMarkerPrefix+e+o.translatedMarkerSuffix:e};return o={debug:!1,debugPrefix:"[MISSING]: ",showTranslatedMarkers:!1,translatedMarkerPrefix:"[",translatedMarkerSuffix:"]",strings:{},baseLanguage:"en",currentLanguage:"en",cache:n("strings"),setCurrentLanguage:function(e){this.currentLanguage=e,i()},getCurrentLanguage:function(){return this.currentLanguage},setStrings:function(e,t){this.strings[e]||(this.strings[e]={});for(var n in t){var r=t[n];if(l&&(n=angular.element("<span>"+n+"</span>").html()),angular.isString(r)||angular.isArray(r)){var a={};a.$$noContext=r,r=a}for(var o in r){var s=r[o];r[o]=angular.isArray(s)?s:[s]}this.strings[e][n]=r}i()},getStringForm:function(e,t,n){return(((this.strings[this.currentLanguage]||{})[e]||{})[n||"$$noContext"]||[])[t]},getString:function(e,t,n){return e=this.getStringForm(e,0,n)||c(e),e=t?r(e)(t):e,u(e)},getPlural:function(t,n,a,i,o){var s=e(this.currentLanguage,t);return n=this.getStringForm(n,s,o)||c(1===t?n:a),i&&(i.$count=t,n=r(n)(i)),u(n)},loadRemote:function(e){return t({method:"GET",url:e,cache:o.cache}).then(function(e){var t=e.data;for(var n in t)o.setStrings(n,t[n]);return e})}}}]),angular.module("gettext").directive("translate",["gettextCatalog","$parse","$animate","$compile","$window",function(e,t,n,r,a){function i(e,t,n){if(!e)throw new Error("You should add a "+t+" attribute whenever you add a "+n+" attribute.")}var o=function(){return String.prototype.trim?function(e){return"string"==typeof e?e.trim():e}:function(e){return"string"==typeof e?e.replace(/^\s*/,"").replace(/\s*$/,""):e}}(),s=parseInt((/msie (\d+)/.exec(angular.lowercase(a.navigator.userAgent))||[])[1],10);return{restrict:"AE",terminal:!0,compile:function(a,l){i(!l.translatePlural||l.translateN,"translate-n","translate-plural"),i(!l.translateN||l.translatePlural,"translate-plural","translate-n");var c=o(a.html()),u=l.translatePlural,d=l.translateContext;return s<=8&&"\x3c!--IE fix--\x3e"===c.slice(-13)&&(c=c.slice(0,-13)),{post:function(a,i,s){function l(){var t;u?(a=f||(f=a.$new()),a.$count=p(a),t=e.getPlural(a.$count,c,u,null,d)):t=e.getString(c,null,d);var s=i.contents();if(0!==s.length){if(t===o(s.html()))return void(h&&r(s)(a));var l=angular.element("<span>"+t+"</span>");r(l.contents())(a);var g=l.contents();n.enter(g,i),n.leave(s)}}var p=t(s.translateN),f=null,h=!0;s.translateN&&a.$watch(s.translateN,l),a.$on("gettextLanguageChanged",l),l(),h=!1}}}}}]),angular.module("gettext").filter("translate",["gettextCatalog",function(e){function t(t,n){return e.getString(t,null,n)}return t.$stateful=!0,t}]),angular.module("gettext").factory("gettextPlurals",function(){return function(e,t){switch(e){case"ay":case"bo":case"cgg":case"dz":case"fa":case"id":case"ja":case"jbo":case"ka":case"kk":case"km":case"ko":case"ky":case"lo":case"ms":case"my":case"sah":case"su":case"th":case"tt":case"ug":case"vi":case"wo":case"zh":return 0;case"is":return t%10!=1||t%100==11?1:0;case"jv":return 0!=t?1:0;case"mk":return 1==t||t%10==1?0:1;case"ach":case"ak":case"am":case"arn":case"br":case"fil":case"fr":case"gun":case"ln":case"mfe":case"mg":case"mi":case"oc":case"pt_BR":case"tg":case"ti":case"tr":case"uz":case"wa":case"zh":return t>1?1:0;case"lv":return t%10==1&&t%100!=11?0:0!=t?1:2;case"lt":return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"mnk":return 0==t?0:1==t?1:2;case"ro":return 1==t?0:0==t||t%100>0&&t%100<20?1:2;case"pl":return 1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"cs":case"sk":return 1==t?0:t>=2&&t<=4?1:2;case"sl":return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0;case"mt":return 1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3;case"gd":return 1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3;case"cy":return 1==t?0:2==t?1:8!=t&&11!=t?2:3;case"kw":return 1==t?0:2==t?1:3==t?2:3;case"ga":return 1==t?0:2==t?1:t<7?2:t<11?3:4;case"ar":return 0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5;default:return 1!=t?1:0}}})},{}],5:[function(e,t,n){angular.module("md5",[]).constant("md5",function(){function e(e){return n(t(r(e)))}function t(e){return i(o(a(e),8*e.length))}function n(e){for(var t,n=h?"0123456789ABCDEF":"0123456789abcdef",r="",a=0;a<e.length;a++)t=e.charCodeAt(a),r+=n.charAt(t>>>4&15)+n.charAt(15&t);return r}function r(e){for(var t,n,r="",a=-1;++a<e.length;)t=e.charCodeAt(a),n=a+1<e.length?e.charCodeAt(a+1):0,55296<=t&&t<=56319&&56320<=n&&n<=57343&&(t=65536+((1023&t)<<10)+(1023&n),a++),t<=127?r+=String.fromCharCode(t):t<=2047?r+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return r}function a(e){for(var t=Array(e.length>>2),n=0;n<t.length;n++)t[n]=0;for(var n=0;n<8*e.length;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return t}function i(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}function o(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,a=-1732584194,i=271733878,o=0;o<e.length;o+=16){var s=n,f=r,h=a,g=i;n=l(n,r,a,i,e[o+0],7,-680876936),i=l(i,n,r,a,e[o+1],12,-389564586),a=l(a,i,n,r,e[o+2],17,606105819),r=l(r,a,i,n,e[o+3],22,-1044525330),n=l(n,r,a,i,e[o+4],7,-176418897),i=l(i,n,r,a,e[o+5],12,1200080426),a=l(a,i,n,r,e[o+6],17,-1473231341),r=l(r,a,i,n,e[o+7],22,-45705983),n=l(n,r,a,i,e[o+8],7,1770035416),i=l(i,n,r,a,e[o+9],12,-1958414417),a=l(a,i,n,r,e[o+10],17,-42063),r=l(r,a,i,n,e[o+11],22,-1990404162),n=l(n,r,a,i,e[o+12],7,1804603682),i=l(i,n,r,a,e[o+13],12,-40341101),a=l(a,i,n,r,e[o+14],17,-1502002290),r=l(r,a,i,n,e[o+15],22,1236535329),n=c(n,r,a,i,e[o+1],5,-165796510),i=c(i,n,r,a,e[o+6],9,-1069501632),a=c(a,i,n,r,e[o+11],14,643717713),r=c(r,a,i,n,e[o+0],20,-373897302),n=c(n,r,a,i,e[o+5],5,-701558691),i=c(i,n,r,a,e[o+10],9,38016083),a=c(a,i,n,r,e[o+15],14,-660478335),r=c(r,a,i,n,e[o+4],20,-405537848),n=c(n,r,a,i,e[o+9],5,568446438),i=c(i,n,r,a,e[o+14],9,-1019803690),a=c(a,i,n,r,e[o+3],14,-187363961),r=c(r,a,i,n,e[o+8],20,1163531501),n=c(n,r,a,i,e[o+13],5,-1444681467),i=c(i,n,r,a,e[