(function(){function f(a){var b=0;return function(){return b=this.f&&this.a.removeClass(this.b,d);this.i&&this.f&&(this.i=this.K&&(this.a.addClass(this.b,d),setTimeout(function(){var b=a.a.hasClass(a.b,c);a.C&&b&&a.a.removeClass(a.b,c)},D.c.X+1),null!==this.F&&(this.D=!0,clearTimeout(this.F)),this.F=setTimeout(function(){a.D=!1},this.H)):this.f=this.f&&setTimeout(function(){var b=a.a.hasClass(a.b,c);a.C&&!b&&a.a.addClass(a.b, c)},D.c.X+2)));this.i=this.f};D.prototype.destroy=function(){var a=D.b,b=a.L,d=a.R,c=a.M;a=a.P;this.B&&this.a.Na(this.B);this.a.Ka();this.w&&this.a.Oa(this.w);this.I&&this.a.Pa(this.I);this.g&&this.u&&this.a.La(this.g,this.u);this.m&&this.a.Ma(this.m);this.a.removeClass(this.l,b);this.a.removeClass(this.b,c);this.a.removeClass(this.b,a);this.c&&this.a.removeClass(this.c,d);this.a.sa()}; u.Object.defineProperties(D,{b:{configurable:!0,enumerable:!0,get:function(){return ea}},a:{configurable:!0,enumerable:!0,get:function(){return fa}},c:{configurable:!0,enumerable:!0,get:function(){return ha}}});function F(a,b,d){for(var c=[],e=2;ea?2*a*a:-1+(4-2*a)*a}B("easeInOutQuad$$module$node_modules$$google$glue$lib$fx$easing",xa);function ya(a){return 0==a||1==a?a:a*a*a}B("easeInCubic$$module$node_modules$$google$glue$lib$fx$easing",ya);function za(a){return 0==a||1==a?a:--a*a*a+1} B("easeOutCubic$$module$node_modules$$google$glue$lib$fx$easing",za);function Aa(a){return 0==a||1==a?a:.5>a?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1}B("easeInOutCubic$$module$node_modules$$google$glue$lib$fx$easing",Aa);function Ba(a){return 0==a||1==a?a:a*a*a*a}B("easeInQuart$$module$node_modules$$google$glue$lib$fx$easing",Ba);function Ca(a){return 0==a||1==a?a:1- --a*a*a*a}B("easeOutQuart$$module$node_modules$$google$glue$lib$fx$easing",Ca); function Da(a){return 0==a||1==a?a:.5>a?8*a*a*a*a:1-8*--a*a*a*a}B("easeInOutQuart$$module$node_modules$$google$glue$lib$fx$easing",Da);function Ea(a){return 0==a||1==a?a:a*a*a*a*a}B("easeInQuint$$module$node_modules$$google$glue$lib$fx$easing",Ea);function Fa(a){return 0==a||1==a?a:1+--a*a*a*a*a}B("easeOutQuint$$module$node_modules$$google$glue$lib$fx$easing",Fa);function Ga(a){return 0==a||1==a?a:.5>a?16*a*a*a*a*a:1+16*--a*a*a*a*a} B("easeInOutQuint$$module$node_modules$$google$glue$lib$fx$easing",Ga);function Ha(a){return 0==a||1==a?a:Math.pow(2,10*(a-1))}B("easeInExpo$$module$node_modules$$google$glue$lib$fx$easing",Ha);function Ia(a){return 0==a||1==a?a:1-Math.pow(2,-10*a)}B("easeOutExpo$$module$node_modules$$google$glue$lib$fx$easing",Ia);function Ja(a){return 0==a||1==a?a:.5>a?.5*Math.pow(2,10*(2*a-1)):.5*(2-Math.pow(2,-10*(2*a-1)))}B("easeInOutExpo$$module$node_modules$$google$glue$lib$fx$easing",Ja); function Ka(a){return 0==a||1==a?a:1-Math.sqrt(1-a*a)}B("easeInCirc$$module$node_modules$$google$glue$lib$fx$easing",Ka);function La(a){return 0==a||1==a?a:Math.sqrt(1-(a-1)*(a-1))}B("easeOutCirc$$module$node_modules$$google$glue$lib$fx$easing",La);function Ma(a){return 0==a||1==a?a:.5>a?-.5*(Math.sqrt(1-a*a*4)-1):.5*(Math.sqrt(1-4*(a-1)*(a-1))+1)}B("easeInOutCirc$$module$node_modules$$google$glue$lib$fx$easing",Ma);function Na(a){return 0==a||1==a?a:a*a*(2.70158*a-1.70158)} B("easeInBack$$module$node_modules$$google$glue$lib$fx$easing",Na);function Oa(a){return 0==a||1==a?a:(a-1)*(a-1)*(2.70158*(a-1)+1.70158)+1}B("easeOutBack$$module$node_modules$$google$glue$lib$fx$easing",Oa);function Pa(a){return 0==a||1==a?a:.5>a?2*a*a*(7.189819*a-2.5949095):.5*((2*a-2)*(2*a-2)*(3.5949095*(2*a-2)+2.5949095)+2)}B("easeInOutBack$$module$node_modules$$google$glue$lib$fx$easing",Pa);function Qa(a){return 0==a||1==a?a:-1*Math.pow(2,10*(a-1))*Math.sin(2*(a-1.075)*Math.PI/.3)} B("easeInElastic$$module$node_modules$$google$glue$lib$fx$easing",Qa);function Ra(a){return 0==a||1==a?a:Math.pow(2,-10*a)*Math.sin(2*(a-.075)*Math.PI/.3)+1}B("easeOutElastic$$module$node_modules$$google$glue$lib$fx$easing",Ra);function Sa(a){return 0==a||1==a?a:.5>a?-.5*Math.pow(2,10*(2*a-1))*Math.sin(2*(2*a-1.1125)*Math.PI/.45):.5*Math.pow(2,-10*(2*a-1))*Math.sin(2*(2*a-1.1125)*Math.PI/.45)+1}B("easeInOutElastic$$module$node_modules$$google$glue$lib$fx$easing",Sa); function L(a){return 0==a||1==a?a:1-M(1-a)}B("easeInBounce$$module$node_modules$$google$glue$lib$fx$easing",L);function M(a){return 0==a||1==a?a:a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-1.5/2.75)*(a-1.5/2.75)+.75:a<2.5/2.75?7.5625*(a-2.25/2.75)*(a-2.25/2.75)+.9375:7.5625*(a-2.625/2.75)*(a-2.625/2.75)+.984375}B("easeOutBounce$$module$node_modules$$google$glue$lib$fx$easing",M);function Ta(a){return 0==a||1==a?a:.5>a?.5*L(2*a):.5*M(2*a-1)+.5} B("easeInOutBounce$$module$node_modules$$google$glue$lib$fx$easing",Ta);function Va(a){return a}B("linear$$module$node_modules$$google$glue$lib$fx$easing",Va); var N=new Map([["ease",ra],["easeInSine",sa],["easeOutSine",ta],["easeInOutSine",ua],["easeInQuad",va],["easeOutQuad",wa],["easeInOutQuad",xa],["easeInCubic",ya],["easeOutCubic",za],["easeInOutCubic",Aa],["easeInQuart",Ba],["easeOutQuart",Ca],["easeInOutQuart",Da],["easeInQuint",Ea],["easeOutQuint",Fa],["easeInOutQuint",Ga],["easeInExpo",Ha],["easeOutExpo",Ia],["easeInOutExpo",Ja],["easeInCirc",Ka],["easeOutCirc",La],["easeInOutCirc",Ma],["easeInBack",Na],["easeOutBack",Oa],["easeInOutBack",Pa],["easeInElastic", Qa],["easeOutElastic",Ra],["easeInOutElastic",Sa],["easeInBounce",L],["easeOutBounce",M],["easeInOutBounce",Ta],["linear",Va]]);B("easingFuncMap$$module$node_modules$$google$glue$lib$fx$easing",N);var O=angular.module("glueSmoothScrollService",[K.module.name]);O.value("glueSmoothScrollOptions",{duration:600,offset:{x:0,y:0},easing:"easeInOutQuart",hash:!0,direction:"y"});function P(a,b,d,c,e,h){this.v=a;this.w=b;this.A=d;this.f=e;this.c=h;this.g="";this.a=null;this.B=c;this.i={x:0,y:0};this.j=this.u=this.m=0;this.F=this.K.bind(this);this.v.$on("$locationChangeSuccess",this.H.bind(this))} P.prototype.scrollTo=function(a,b){this.g=a;if(a=!this.j)angular.isDefined(this.g)&&0!=this.g.length?(this.b=this.c[0].getElementById(this.g))?a=!0:(this.A.error('The target element for id "'+this.g+'" does not exist.'),a=!1):(this.A.error("Target element id is not provided."),a=!1);a&&(b||(b={}),b.offset={x:b.offset?b.offset.x?b.offset.x:Q(this).x:Q(this).x,y:b.offset?b.offset.y?b.offset.y:Q(this).y:Q(this).y},this.a=angular.extend({},this.B,b),this.a.hash&&this.w.hash(this.g),this.o=R(this),b=this.b.getBoundingClientRect(), this.l={x:b.left+R(this).x,y:b.top+R(this).y},this.D={x:this.l.x-this.o.x-this.a.offset.x,y:this.l.y-this.o.y-this.a.offset.y},this.I=Wa(this.a.ta),this.m=0,this.i={x:0,y:0},this.v.$broadcast(Xa),angular.element(this.f).on("mousewheel",this.F),this.C())}; function Q(a){var b=a.b.getAttribute("glue-smooth-scroll-x-offset")||a.b.getAttribute("data-glue-smooth-scroll-x-offset");var d=a.b.getAttribute("glue-smooth-scroll-y-offset")||a.b.getAttribute("data-glue-smooth-scroll-y-offset");return{x:parseInt(b,10)||a.B.offset.x,y:parseInt(d,10)||a.B.offset.y}}function Ya(a){a.v.$broadcast(Za);a.f.cancelAnimationFrame(a.j);a.j=0;a.u=0;a.a=null;angular.element(a.f).off("mousewheel",a.F)}P.prototype.K=function(){this.j&&Ya(this)}; P.prototype.H=function(){this.w.hash()&&this.scrollTo(this.w.hash())};function Wa(a){return"function"==typeof N.get(a)?N.get(a):function(a){return a}}function R(a){return window.pageYOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:a.c[0].documentElement.scrollLeft,y:a.c[0].documentElement.scrollTop}} P.prototype.C=function(){if(!this.f.requestAnimationFrame)$a(this,this.a.direction);else if(this.a){this.u||(this.u=Date.now());this.m=Date.now()-this.u;if(0