var isFunction;Object.prototype.watchChange||(isFunction=function(e){return e&&"[object Function]"==={}.toString.call(e)},Object.defineProperty(Object.prototype,"watchChange",{enumerable:!1,configurable:!0,writable:!1,value:function(e,t){var l=this;function o(t,o){var s=l[t],r=s;delete l[t]&&Object.defineProperty(l,t,{get:function(){return r},set:function(e){return r=o.call(l,t,s,e)},enumerable:!0,configurable:!0})}if(isFunction(e))for(var s in this)o(s,e);else o(e,t)}})),Object.prototype.unwatchChange||Object.defineProperty(Object.prototype,"unwatchChange",{enumerable:!1,configurable:!0,writable:!1,value:function(e){var t=this[e];delete this[e],this[e]=t}}),function(l){var s,r=[],i=!1,n=!1,c={interval:250,force_process:!1},a=l(window);function d(){n=!1;for(var e=0;e=s&&r-(t.data("appear-top-offset")||0)<=s+a.height()&&e+t.width()>=o&&e-(t.data("appear-left-offset")||0)<=o+a.width()},l.fn.extend({appear:function(e){var t=l.extend({},c,e||{}),o=this.selector||this;return i||(e=function(){n||(n=!0,setTimeout(d,t.interval))},l(window).scroll(e).resize(e),i=!0),t.force_process&&setTimeout(d,t.interval),r.push(o),l(o)}}),l.extend({force_appear:function(){return!!i&&(d(),!0)}})}(jQuery),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(r){"use strict";var g=r.scrollTo=function(e,t,o){return r(window).scrollTo(e,t,o)};function l(e){return!e.nodeName||-1!==r.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"])}function t(e){return r.isFunction(e)||r.isPlainObject(e)?e:{top:e,left:e}}return g.defaults={axis:"xy",duration:0,limit:!0},r.fn.scrollTo=function(e,o,v){"object"==typeof o&&(v=o,o=0),"function"==typeof v&&(v={onAfter:v}),"max"===e&&(e=9e9),v=r.extend({},g.defaults,v),o=o||v.duration;var m=v.queue&&1").addClass("scroll-wrapper").addClass(h.attr("class")).css("position","absolute"==h.css("position")?"absolute":"relative").insertBefore(h).append(h),h.is("textarea")&&(this.containerWrapper=s=g("
").insertBefore(h).append(h),o.addClass("scroll-textarea")),s.addClass("scroll-content").css({height:"auto","margin-bottom":-1*a.scroll.height+"px","margin-right":-1*a.scroll.width+"px","max-height":""}),h.on("scroll"+p,function(e){g.isFunction(v.onScroll)&&v.onScroll.call(f,{maxScroll:m.y.maxScrollOffset,scroll:h.scrollTop(),size:m.y.size,visible:m.y.visible},{maxScroll:m.x.maxScrollOffset,scroll:h.scrollLeft(),size:m.x.size,visible:m.x.visible}),m.x.isVisible&&m.x.scroll.bar.css("left",h.scrollLeft()*m.x.kx+"px"),m.y.isVisible&&m.y.scroll.bar.css("top",h.scrollTop()*m.y.kx+"px")}),o.on("scroll"+p,function(){o.scrollTop(0).scrollLeft(0)}),v.disableBodyScroll&&(e=function(e){b(e)?m.y.isVisible&&m.y.mousewheel(e):m.x.isVisible&&m.x.mousewheel(e)},o.on("MozMousePixelScroll"+p,e),o.on("mousewheel"+p,e),a.mobile&&o.on("touchstart"+p,function(e){var e=e.originalEvent.touches&&e.originalEvent.touches[0]||e,o=e.pageX,s=e.pageY,r=h.scrollLeft(),l=h.scrollTop();g(document).on("touchmove"+p,function(e){var t=e.originalEvent.targetTouches&&e.originalEvent.targetTouches[0]||e;h.scrollLeft(r+o-t.pageX),h.scrollTop(l+s-t.pageY),e.preventDefault()}),g(document).on("touchend"+p,function(){g(document).off(p)})})),g.isFunction(v.onInit)&&v.onInit.apply(this,[h])),g.each(m,function(r,l){function i(){var e=h[a]();h[a](e+d),1==c&&u<=e+d&&(e=h[a]()),-1==c&&e+d<=u&&(e=h[a]()),h[a]()==e&&n&&n()}var n=null,c=1,a="x"===r?"scrollLeft":"scrollTop",d=v.scrollStep,u=0;l.scroll||(l.scroll=f._getScroll(v["scroll"+r]).addClass("scroll-"+r),v.showArrows&&l.scroll.addClass("scroll-element_arrows_visible"),l.mousewheel=function(e){if(!l.isVisible||"x"===r&&b(e))return!0;if("y"===r&&!b(e))return m.x.mousewheel(e),!0;var t=-1*e.originalEvent.wheelDelta||e.originalEvent.detail,o=l.size-l.visible-l.offset;return(0','
','
','
','
','
','
','
','
',"
","
",'
','
','
',"
",'
','
',"
","
","
"].join(""),simple:['
','
','
','
','
',"
","
"].join("")};return t[e]&&(e=t[e]),e="string"==typeof(e=e||t.simple)?g(e).appendTo(this.wrapper):g(e),g.extend(e,{bar:e.find(".scroll-bar"),size:e.find(".scroll-element_size"),track:e.find(".scroll-element_track")}),e},_handleMouseDown:function(e,t){var o=this.namespace;return g(document).on("blur"+o,function(){g(document).add("body").off(o),e&&e()}),g(document).on("dragstart"+o,function(e){return e.preventDefault(),!1}),g(document).on("mouseup"+o,function(){g(document).add("body").off(o),e&&e()}),g("body").on("selectstart"+o,function(e){return e.preventDefault(),!1}),t&&t.preventDefault(),!1},_updateScroll:function(e,t){var o=this.container,s=this.containerWrapper||o,r="scroll-scroll"+e+"_visible",l="x"===e?this.scrolly:this.scrollx,i=parseInt(this.container.css("x"===e?"left":"top"),10)||0,n=this.wrapper,c=t.size,i=t.visible+i;t.isVisible=1").css(g.extend({},e)),a.data.outer=g("
").css(g.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},e)).append(a.data.inner).appendTo("body")),a.data.outer.scrollLeft(1e3).scrollTop(1e3),{height:Math.ceil(a.data.outer.offset().top-a.data.inner.offset().top||0),width:Math.ceil(a.data.outer.offset().left-a.data.inner.offset().left||0)})}function b(e){e=e.originalEvent;return(!e.axis||e.axis!==e.HORIZONTAL_AXIS)&&!e.wheelDeltaX}window.angular&&(s=window.angular).module("jQueryScrollbar",[]).provider("jQueryScrollbar",function(){var t=o;return{setOptions:function(e){s.extend(t,e)},$get:function(){return{options:s.copy(t)}}}}).directive("jqueryScrollbar",["jQueryScrollbar","$parse",function(s,r){return{restrict:"AC",link:function(e,t,o){e=r(o.jqueryScrollbar)(e);t.scrollbar(e||s.options).on("$destroy",function(){t.scrollbar("destroy")})}}}])});