"use strict";angular.module("website.core.analytics.google",["website.core.analytics"]).provider("MotoGoogleAnalyticsService",["MotoWebsiteAnalyticsProvider",function(e){var t=e.getAbstractTrackingService();return this.$get=["$q",function(a){function e(){t.apply(this,arguments)}return((e.prototype=Object.create(t.prototype)).constructor=e).prototype.getName=function(){return"GoogleAnalytics"},e.prototype.fireEvent=function(e,t,n){var i=a.defer(),o=window.ga,r={};return!!o&&(!(!angular.isString(e)||e.length<1)&&(!!angular.isObject(t)&&(!(angular.isUndefined(t.category)||!angular.isString(t.category)||t.category.length<1)&&(r.eventCategory=t.category,r.eventAction=e,angular.isString(t.action)&&1a.topOffset)!==i&&((i=o)?t.addClass(a.cssVisibleClass):t.removeClass(a.cssVisibleClass),t.addClass(a.cssAnimationClass))}catch(e){}})}}}]),angular.module("website").directive("motoBeforeInViewport",["motoBeforeInViewport","website.Entertainment",function(a,s){return{restrict:"C",link:function(e,t,n){var i=0",language:n,units:[t],round:!0})).substr(i.indexOf(">")+">".length)},this.$get=[function(){return e}]}]),angular.module("website.core.media").service("website.MediaService",["motoBeforeInViewport",function(n){var i=[],o=this,t=!1;function r(){return!1}this.registerItem=function(e){return!!angular.isObject(e)&&(e.autoplay=angular.isObject(e.autoplay)?e.autoplay:{enabled:!1},e.autoplay.allowed=!angular.isDefined(e.autoplay.allowed)||e.autoplay.allowed,e.isPlaying=angular.isFunction(e.isPlaying)?e.isPlaying:r,e.pause=angular.isFunction(e.pause)?e.pause:angular.noop,e.ready=!!e.ready,(t=e.scope)&&t.$evalAsync&&t.$watch&&e.scope.$on("$destroy",function(){i.splice(i.indexOf(e),1)}),i.push(e),e.ready&&this.itemReady(e),e);var t},this.itemReady=function(e){e.ready=!0,this.areAllItemsReady()&&this.runAutoplayProcedure()},this.areAllItemsReady=function(){return!i.some(function(e){return!e.ready})},this.checkAndAutoplayItem=function(e){function t(){e.autoplay.allowed&&(e.autoplay.forced?(o.pauseAll(),e.play()):o.isAnyPlaying()||e.play())}e.autoplay.enabled&&("onFirstVisible"===e.autoplay.startOn?n.startWatching({element:e.node,onEnter:function(){t()}}):t())},this.isAnyPlaying=function(){return i.some(function(e){return e.isPlaying()})},this.pauseAll=function(){i.forEach(function(e){e.pause()})},this.autoplayFailed=function(){t||(t=!0,$("body").on("click",function e(){o.areAllItemsReady()&&(t=!1,$("body").off("click",e),o.runAutoplayProcedure())}))},this.runAutoplayProcedure=function(){i.forEach(function(e){o.checkAndAutoplayItem(e)})}}]),angular.module("website.core.utils").service("website.ElementHeightWatcherClass",[function(){function e(e){if(!angular.isObject(e))throw new Error("Invalid params");if(!angular.isElement(e.$element))throw new Error("$element is not Element");if(!angular.isString(e.watchSelector)||""===e.watchSelector)throw new Error("watchSelector is empty");this._options=angular.copy(this._options),angular.extend(this._options,e),this.$element=$(e.$element),this._onResizeHandler=this.update.bind(this),$(window).on("resize",this._onResizeHandler),this._timer=setInterval(this.update.bind(this),this._options.delay)}return e.prototype._options={delay:250},e.prototype.$element=null,e.prototype._onResizeHandler=null,e.prototype._timer=null,e.prototype._visible=!1,e.prototype._getMaxHeight=function(e){var t,n=0;return t=$(e),angular.forEach(t,function(e){n=Math.max($(e).outerHeight(),n)}),n},e.prototype.update=function(){return!!this._visible&&(this.$element.css("min-height",this._getMaxHeight(this._options.watchSelector)+"px"),!0)},e.prototype.show=function(){this.$element.show(),this._visible=!0,this.update()},e.prototype.hide=function(){this.$element.hide(),this._visible=!1},e.prototype.disconnect=function(){this.$element=null,this.calcSizeFunction=angular.noop,$(window).off("resize",this._onResizeHandler),clearInterval(this._timer)},e.prototype.destroy=function(){this.$element.remove(),this.disconnect()},e}]),angular.module("website.core.settings").provider("motoWebsiteSettingsService",[function(n){var i=this,o={};this.get=function(e,t){return e===n?o:o[e]!==n?o[e]:t||null},this.set=function(e,t){if(!angular.isObject(e))return o[e]=t,i;for(var n in e)e.hasOwnProperty(n)&&i.set(n,e[n])},this.$get=[function(){return i}]}]),angular.module("website.core.widgets").service("website.ContentWidgetClass",["website.MotoAnimation","website.Entertainment","website.WidgetCollectionClass","motoBeforeInViewport",function(e,t,n,i){function o(e){var t;angular.isElement(e)?t=e:!angular.isElement(e)&&angular.isObject(e)&&(this.id=e.id,this.name=e.name,t=e.$element,this.setScope(e.$scope)),angular.isElement(t)&&this.setElement(t),this.children=new n}return o.prototype._debug=!1,o.prototype.id=null,o.prototype.name=null,o.prototype.$element=null,o.prototype.$scope=null,o.prototype.$content=null,o.prototype.children=null,o.prototype._parent=null,o.prototype.setParent=function(e){return this._parent?this._parent===e:e instanceof o&&(this._parent=e,!0)},o.prototype.getParent=function(){return this._parent},o.prototype.addChild=function(e){return!!this.children.push(e)&&(e.setParent(this),!0)},o.prototype.getChild=function(e){return this.children.getById(e)||this.children.getByIndex(e)},o.prototype.setElement=function(e){return this.$element?this.$element===e:!!angular.isElement(e)&&(this.$element=e,this.id=e.attr("id")||this.id,this.name=e.attr("data-widget")||this.name,this.$content=e.find("#"+this.id+"__content")||this.$element,!0)},o.prototype.setScope=function(e){return this.$scope?this.$scope===e:!!((t=e)&&t.$evalAsync&&t.$watch)&&(this.$scope=e,!0);var t},o.prototype.getScope=function(){return this.$scope},o.prototype.onVisibleImmediately=function(e){this._debug&&console.warn(this.name,"onVisibleImmediately #",this.id,e),this.onArriving(e),this.onArrived(e)},o.prototype.onArriving=function(e){this._debug&&console.warn(this.name,"onArriving #",this.id,e),"onArriving"===e.startAnimation&&t.letsStartAnimation(this),t.letsDance(this),i.elementIsVisible(this.$element)},o.prototype.onArrived=function(e){this._debug&&console.warn(this.name,"onArrived #",this.id,e),"onArrived"===e.startAnimation&&t.letsStartAnimation(this)},o.prototype.onVanishing=function(e){this._debug&&console.warn(this.name,"onVanishing #",this.id,e),t.letsStopAnimation(this),t.letsStopDancing(this),i.elementIsInvisible(this.$element)},o.prototype.onVanished=function(e){this._debug&&console.warn(this.name,"onVanished #",this.id,e)},o.prototype.onResizing=function(e){this._debug&&console.warn(this.name,"onResizing #",this.id,e)},o}]),angular.module("website.core.widgets").service("website.WidgetCollectionClass",[function(){function i(e,t,n,i){var o,r=e.length,a=[];for(o=n;o")),(t=t.wrapInner('
')).html()||""}},zoom:{enabled:!0,duration:400,easing:"ease-in-out"}})}}}),angular.module("website.moto_link").run(["$timeout",function(i){$("body").on("click",".moto-link[data-action=lightbox]",function(e){var t,n=$(e.currentTarget);!n.closest("[data-moto-lightbox-caption]").length&&n.closest("[data-moto-init-lightbox-gallery]").length||(n.data("lightboxCaption")&&(t='
'+n.data("lightboxCaption")+"
"),e.preventDefault(),i(function(){$.magnificPopup.close(),$.magnificPopup.open({items:{tClose:"",tLoading:"",src:n.attr("href"),title:t||n.attr("title")||"",type:"image"}})}))})}]),angular.module("website").service("website.MotoLinkActionService",["$window","website.MotoPopupService",function(t,n){this.execute=function(e){if(angular.isObject(e))switch(e.action){case"popup":angular.isNumber(e.id)&&n.openPopup(e.id);break;case"lightbox":angular.isString(e.url)&&$.magnificPopup.open({items:{tClose:"",tLoading:"",src:e.url,type:"image"}});break;default:if(angular.isString(e.url))try{t.open(e.url,e.target)}catch(e){}}}}]),angular.module("website.moto_link").run(["website.MotoPopupService",function(o){$("body").on("click",".moto-link",function(e){var t=$(e.currentTarget),n=t.attr("data-popup-id"),i=t.data("action");if(n=parseInt(n),"popup"===i&&!(0',type:"inline"},showCloseBtn:!1,closeOnBgClick:!1,mainClass:"moto-popup",callbacks:{open:function(){$.magnificPopup.instance.updateStatus("loading")},close:function(){a||l()}}}),r=d.render({id:i}).then(function(e){var t,n;2!==r.$$state.status&&s&&(t=$(e.content),a=!0,$.magnificPopup.close(),a=!1,$.magnificPopup.open({items:{src:t,type:"inline"},mainClass:"moto-popup",closeOnBgClick:!1,callbacks:{open:function(){f(e.properties.width),g=c.$new(),t=u(t)(g),m.letsDance({id:i,name:"@popup",$scope:g,$element:t}),n=p.addWatcher(function(){var e=window.document.createEvent("UIEvents");e.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(e)},t[0]),o()},close:function(){n(),l()}}}),s=!0)},function(e){s&&(s=!0,$.magnificPopup.instance.updateStatus("ready"),f("1200px"),$("#moto-popup-content").addClass("moto-popup__content_error").html(t))})}function s(){var e;h()||0===r.length||a((e=r.shift()).id,e.callback)}this.init=function(){var t=$.magnificPopup.proto._close;$.magnificPopup.proto._close=function(){var e=t.apply(this,arguments);return n(s,500),e},i.isNew&&o.removeLocalStorageItem("popups-session")},this.pleaseOpenPopup=function(e,t){var n,i;h()?(n=e,i=t,r.push({id:n,callback:i})):a(e,t)},this.openPopup=a,this.updateDataInStorage=function(e,t){var n,i="popups-storage";"session"===t&&(i="popups-session"),(n=o.getLocalStorageItem(i,{}))[e]?n[e].shows++:n[e]={shows:1},n[e].timestamp=Date.now(),o.setLocalStorageItem(i,n)},this.shouldPopupBeOpened=function(e,t,n){var i;return!("always"!==t&&("session"===t?(i=o.getLocalStorageItem("popups-session",{}))[e]:(i=o.getLocalStorageItem("popups-storage",{}),"amount"===t&&i[e]&&i[e].shows>=n.shows||"overtime"===t&&i[e]&&Date.now()-i[e].timestamp<1e3*n.overtime)))}}]),angular.module("website").directive("motoRelativeSticky",[function(){return{restrict:"A",link:function(e,t,n){t.addClass("moto-relative-sticky"),t.css("top",n.motoRelativeStickySpacing||0)}}}]),angular.module("website").service("MotoScrollbarWatcherService",["MotoIntervalService",function(e){var t=angular.noop,i=[];function n(e){var t;return!!angular.isObject(e)&&(t=e.node.clientHeight'),r.$pseudoElement.insertAfter(r.$element),r.options.hidden?r.$pseudoElement.height(0):(r.$pseudoElement.hide(),r.$pseudoElement.height(r.$element.outerHeight(!0)),r.$pseudoElement.width(r.$element.innerWidth()))),f(i),p.push(i)}catch(e){g()&&console.info("motoSticky : ERROR on addObject",e)}}return function e(t){var n,i;try{if(t||(r&&o.cancel(r),r=o(e,d.interval)),!a||p.length<1)return;for(a=!1,i=0,n=p.length;it&&(e=e.substr(0,t-n.length)+n),e}}),angular.module("website.backend.RenderService").service("Website.Backend.RenderService",["jsonrpc",function(e){var t=e.newService("Website.RenderService");this.render=t.createMethod("render")}]),function(s){var l="NOT_LOADED",c="",u="googleMapLoadedCallback_"+Date.now(),d=[];function m(e){for(var t;d.length;)t=d.shift(),e?t.deferred.reject(e):t.deferred.resolve(t.instance())}function t(e){return e}function p(e){return angular.isObject(e)&&e.icon&&(e.icon=t(e.icon,"marker.icon")),e}"undefined"!=typeof google&&void 0!==google.maps&&(l="LOADED"),window[u]=function(){m(),delete window[u],l="LOADED"},s.fn.motoGoogleMap=function(e){var t,n,i=s.Deferred(),o=this[0],r={standard:[],silver:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]};function a(e){this.items=[],this.map=e,this.withInfowWindow=!0}return a.prototype.add=function(e){var t,n;return Array.isArray(e)?angular.forEach(e,this.add.bind(this)):(n=s.extend(!0,{},e),e instanceof google.maps.Marker||(e=new google.maps.Marker(e)),p(e),e.setMap(this.map),this.items.push(e),this.withInfowWindow?this.setInfoWindow(e):(google.maps.event.addListener(e,"click",function(){t=this.items.indexOf(e),s(document).trigger("motoGoogleMap:markerClick",[n,t])}.bind(this)),google.maps.event.addListener(e,"dragend",function(){s(document).trigger("motoGoogleMap:markerDragend",e.getPosition())}.bind(this)))),this},a.prototype.update=function(t){var n,e=this.getByUid(t.uid);if(!angular.isObject(t))return!1;for(n in p(t=angular.copy(t)),t)if(t.hasOwnProperty(n)&&"_"!==n[0]&&"$"!==n[0]&&"function"!=typeof t[n])try{"position"===n?e.setPosition(t[n]):e.set(n,t[n])}catch(e){console.warn("UpdateMarker : error on set property value ",n,t[n])}return!0},a.prototype.delete=function(e){var t;(e=this.getByUid(e.uid))&&(e.setMap(null),-1<(t=this.items.indexOf(e))&&this.items.splice(t,1))},a.prototype.clearAll=function(){this.items.forEach(function(e){e.setMap(null)}),this.items=[]},a.prototype.getItems=function(){return this.items},a.prototype.showOnly=function(e){var t,n;for(t=0,n=this.items.length;t'+e.caption+""),e.showInfoByDefault&&t.open(this.map,e),e.addListener("click",function(){t.open(this.map,e)}.bind(this)))},a.prototype.getByUid=function(e){var t,n;for(t=0,n=this.items.length;t=this.pageRange));e++);},isDataExists:function(){return!!this.pages.length},setData:function(e){return this.reset(),!(angular.isArray(e)||!angular.isObject(e))&&(this.pages=function(e){var t,n,i,o,r=[];for(t=0,n=e.length;t/",startVolume:1,playText:"",pauseText:"",stopText:"",nextText:"",prevText:"",playlistText:"",showPlaylist:!!a.attr("data-showplaylist"),features:[l?"playlistfeature":"",l?"prevtrack":"","playpause",l?"nexttrack":"",c&&c.stop?"stop":"","progress","current","duration","mototrackname","volume",l?"playlist":"",c&&c.loop?"motoloop":"",c&&c.download?"motodownload":"","motoskin"],plugins:[],success:function(e,t,n){r=n,g.itemReady(o)}}),h.$onLetsDanceEvent(m,function(){o.autoplay.allowed=h.isEnabledPlaying(t),g.checkAndAutoplayItem(o)}),h.$onLetsStopEvent(m,function(){o.autoplay.allowed=!1,o.pause()})}}}]),angular.module("website.widget.auth_form",["core.library.jsonrpc"]).service("widget.AuthForm.Service",["jsonrpc",function(e){var t=e.newService("AuthService");this.loginToPageByPassword=t.createMethod("loginToPageByPassword")}]).directive("motoWidgetAuthForm",["widget.AuthForm.Service","$window",function(i,o){return{restrict:"C",scope:!0,link:function(t,e,n){t.request={password:"",pageId:n.destinationPageId},t.submit=function(){t.request.pageId&&(t.authForm.password.$setTouched(),t.authForm.$valid&&i.loginToPageByPassword(t.request).then(function(){o.location.reload()},function(e){e&&"403"==e.code?t.authForm.password.$setValidity("passwordInvalid",!1):t.authForm.password.$setValidity("couldNotSend",!1)}))}}}}]),angular.module("website.widget.carousel",[]).directive("motoCarouselOptions",["$timeout","website.Entertainment",function(l,c){return{restrict:"A",priority:450,link:function(e,t,n){var i,o,r={$scope:e,$element:t},a=e.$eval(n.motoCarouselOptions),s=((i=a).itemsCount<2&&(i.showPaginationDots=!1),{mode:"horizontal",auto:!1,pause:1e3*i.slideshowDelay,controls:i.showNextPrev,pager:i.showPaginationDots,slideWidth:i.slideWidth,minSlides:i.minSlides,maxSlides:i.maxSlides,moveSlides:i.moveSlides,slideMargin:i.margins,stopAutoOnClick:!0,shrinkItems:!0});s.onSliderLoad=function(){t.closest(".moto-widget-carousel").removeClass("moto-widget-carousel-loader")},s.controls&&s.pager&&(s.onSliderResize=function(e){var t,n;if(angular.isElement(e)||(e=this),!angular.isElement(e))return!1;try{t=e.parent().parent(),1<(n=$(t.find("> .bx-controls")[0])).find(".bx-pager > .bx-pager-item").length?n.find(".bx-controls-direction > a").removeClass("disabled"):n.find(".bx-controls-direction > a").addClass("disabled")}catch(e){}return!0}.bind(t)),o=t.bxSlider(s),e.$on("$destroy",o.destroySlider),c.$onLetsDanceEvent(r,function(){o.reloadSlider(angular.extend({},s,{startSlide:o.getCurrentSlide()})),c.isDisabledPlaying(t)||(a.slideshowEnabled&&o.startAuto(),l(o.redrawSlider))}),c.$onLetsStopEvent(r,function(){o.stopAuto()})}}}]),angular.module("website.widget.completion_bar_circular",["website"]).directive("motoWidgetCompletionBarCircular",["motoBeforeInViewport",function(n){return{restrict:"C",scope:{options:" .moto-widget-menu-sublist").toggle())})}}}),angular.module("website.widget.MotoCallback",[]).directive("motoWidgetCallback",[function(){return{restrict:"A",link:function(e,t){t.motoCallback()}}}]),angular.module("website.widget.pinterest",["website.core"]).directive("motoWidgetPinterest",["motoDependencyService",function(e){return{restrict:"AC",link:function(){try{e.get("pinterest").require()}catch(e){}}}}]),angular.module("website.widget.slider",[]).directive("motoSliderOptions",["$timeout","website.Entertainment",function(u,d){return{restrict:"A",priority:450,link:function(e,t,n){var i,o,r,a,s,l={$scope:e,$element:t},c=e.$eval(n.motoSliderOptions);c.id=t.closest(".moto-widget-slider").attr("id"),(s=c).itemsCount<2&&(s.showPaginationDots=!1),i={mode:s.slideshowAnimationType,auto:!1,pause:1e3*s.slideshowDelay,controls:s.showNextPrev,pager:s.showPaginationDots,pagerCustom:null,captions:s.showSlideCaptions,stopAutoOnClick:!0,onSliderLoad:function(){t.closest(".moto-widget-slider").removeClass("moto-widget-slider-loader")}},c.thumbnailPagination.enable&&(a=$("#"+c.id+"__thumbnail-pagination"),i.pagerCustom=a,i.onSlideBefore=function(e,t,n){var i=a.children(":nth-child("+(n+1)+")"),o=i[0].offsetLeft-a.innerWidth()/2+i.innerWidth()/2;a.animate({scrollLeft:o},400)}),o=t.bxSlider(i),e.$on("$destroy",o.destroySlider),d.$onLetsDanceEvent(l,function(){(r=o.find(".bx-caption")).removeClass("bx-caption"),r.css("display","none"),o.reloadSlider(angular.extend({},i,{startSlide:o.getCurrentSlide()})),r.addClass("bx-caption"),r.css("display",""),d.isDisabledPlaying(t)||(c.slideshowEnabled&&o.startAuto(),u(o.redrawSlider))}),d.$onLetsStopEvent(l,function(){o.stopAuto()})}}}]),angular.module("website.widget.social_buttons",["website.core"]).directive("motoWidgetSocialButtons",["$rootScope",function(i){return{restrict:"AC",link:function(e,t){function n(){var e;try{(e=t.find('li.social-button[data-name="linkedIn_share"]')).length&&((e=angular.element(e.get(0))).html(e.html().replace("","<\/script>")),IN.parse())}catch(e){}}window.IN&&angular.isFunction(window.IN.parse)?n():i.$on("motoDependencyService.linkedin.loaded",n)}}}]),angular.module("website.widget.tile_gallery",[]).directive("motoWidgetTileGalleryItemsWrapper",[function(){return{restrict:"C",link:function(e,t){t.tileGallery()}}}]),angular.module("website.widget.twitter",["website.core","website.widget.twitter.time_line"]),angular.module("website.widget.twitter.time_line",["ng"]).directive("motoWidgetTwitterTimeLine",["motoDependencyService",function(e){return{restrict:"AC",link:function(){try{e.require("twitter")}catch(e){}}}}]),angular.module("website.widget.video_player",["website.core","website.core.media"]).directive("motoMediaPlayer",[function(){return{restrict:"AC",scope:!0,compile:function(n){return{pre:function(e){function t(){e.$emit("UserInteraction","StartInteraction")}n.closest(".moto-widget_interactive").length<1||(n.on("click",t),e.$on("$destroy",function(){n.off("click",t)}))}}}}}]).directive("motoWidgetVideoPlayer",["website.MediaService","$q","website.Entertainment",function(w,v,_){return{restrict:"AC",link:function(e,t,n){var i,o,r,a,s,l,c,u,d=!1,m=!0,p={$scope:e,$element:t},g=e.$eval(n.autoplaySettings),f=t.find(".moto-media-player-container").data("buttons");function h(){s.prop("disabled",0===c[0].readyState||!document.pictureInPictureEnabled||c[0].disablePictureInPicture)}function y(e){s.prop("disabled",!0),c[0]!==document.pictureInPictureElement?c[0].requestPictureInPicture().finally(function(){s.prop("disabled",!1)}).catch(function(e){console.error("[motoWidgetVideoPlayer] Can't toggle Picture-in-Picture mode:",e)}):document.exitPictureInPicture().finally(function(){s.prop("disabled",!1)}).catch(function(e){console.error("[motoWidgetVideoPlayer] Can't toggle Picture-in-Picture mode:",e)})}function b(){l.toggleClass("pic-to-pic-fallback-mode")}angular.isObject(g)&&(i={enabled:!0,allowed:_.isEnabledPlaying(t),forced:g.forced,startOn:g.onlyWhenVisible?"onFirstVisible":"default"}),(r=t.find("video")).on("loadeddata",function(){a.options.alwaysShowControls=!1}),o=w.registerItem({node:t,scope:e,ready:!1,autoplay:i,pause:function(){d=!1,r.off("canplay"),m=!0,a.pause()},play:function(){function e(){v.when(a.domNode.play()).then(function(){m?a.domNode.pause():a.domNode.play()}).catch(function(){m=!0,w.autoplayFailed()})}m=!1,4===a.readyState?e():(d=!0,r.one("canplay",function(){d=!1,e()}),0===a.readyState&&r.load())},isPlaying:function(){return!a.paused||!m&&d}}),r.mediaelementplayer({classPrefix:"mejs-",motoTrackName:r.attr("title")||"",timeAndDurationSeparator:"/",startVolume:1,playText:"",pauseText:"",alwaysShowControls:!0,fullscreenText:"",allyVolumeControlText:"",videoVolume:"horizontal",features:["playpause","progress","current","duration","mototrackname","volume","fullscreen",f&&f.download?"motodownload":"",f&&f.pip?"motopip":"","motoskin"],plugins:[],duration:r.attr("duration"),success:function(e,t,n){a=n,w.itemReady(o)}}),_.$onLetsDanceEvent(p,function(){a&&a.globalResizeCallback(),o.autoplay.allowed=_.isEnabledPlaying(t),w.checkAndAutoplayItem(o)}),_.$onLetsStopEvent(p,function(){o.autoplay.allowed=!1,o.pause()}),f&&f.pip&&(s=(u=t).find(".mejs-pic-to-pic button"),c=u.find("video"),l=u.find(".mejs-container"),"disablePictureInPicture"in c[0]&&"pictureInPictureEnabled"in document?(s.on("click",y),h(),c.on("loadedmetadata",h),c.on("emptied",h)):s.on("click",b))}}}]),angular.module("website.widget.accordion",[]),angular.module("website.widget.content_slider",["website.core.utils","website.core.widgets"]),angular.module("website.widget.google_search",["ngSanitize","website.widget.google_search.directive","website.widget.google_search.service"]),angular.module("website.widget.tabs",[]),angular.module("website.widget.accordion").directive("motoWidgetAccordionItem",["website.WidgetsRepository",function(n){return{restrict:"C",scope:!0,compile:function(e){var t=n.registry(e);return{pre:function(e){t.setScope(e)}}}}}]),angular.module("website.widget.accordion").directive("motoWidgetAccordion",["website.WidgetsRepository",function(n){var i={startAnimation:"onArriving"};return{restrict:"C",scope:!0,compile:function(e){var t=n.registry(e);return{pre:function(e){t.setScope(e)},post:function(){e.motoAccordion({onOpening:function(e){t.getChild(e.id).onArriving(i)},onOpened:function(e){t.getChild(e.id).onArrived(i)},onClosing:function(e){t.getChild(e.id).onVanishing()},onClosed:function(e){t.getChild(e.id).onVanished()}})}}}}}]),function(d){var a="moto-widget-accordion__item_open",i="moto-widget-accordion__item_collapsing",o=400,m=d(window);function p(e,t,n){e.opened=!1,e.$wrapperNode.slideUp({duration:o,start:function(){e.$node.addClass(i).removeClass(a),t&&t(e)},complete:function(){e.$node.removeClass(i),n&&n(e)}})}function g(t,e,n){t.opened=!0,t.$wrapperNode.slideDown({duration:o,start:function(){t.$node.addClass(i).addClass(a),e&&e(t)},complete:function(){var e;t.$node.removeClass(i),(e=t.$node).offset().top.moto-widget-accordion__wrapper>.moto-widget-accordion__item"),l),this.off("click",">.moto-widget-accordion__wrapper>.moto-widget-accordion__item>.moto-widget-accordion__header"),this.on("click",">.moto-widget-accordion__wrapper>.moto-widget-accordion__item>.moto-widget-accordion__header",function(e){var t,n,i,o,r,a=d(e.currentTarget).attr("data-widget-id"),s=c[a];s.opened||!u?(t=s,n=l.onOpening,i=l.onOpened,o=l.onClosing,r=l.onClosed,t.opened?p(t,o,r):g(t,n,i)):(!function(e,t,n){var i;for(i in e)e.hasOwnProperty(i)&&e[i].opened&&p(e[i],t,n)}(c,l.onClosing,l.onClosed),g(s,l.onOpening,l.onOpened)),m.resize()})}}(jQuery),angular.module("website.widget.actions",["website.widget.actions.open_popup"]),angular.module("website.widget.actions.open_popup",[]).directive("motoWidgetActionsOpenPopup",["$timeout","website.MotoPopupService","motoBeforeInViewport",function(a,s,l){return{restrict:"C",scope:!0,link:function(e,t,n){var i,o=e.$eval(n.actionsOpenPopupOptions);function r(){s.pleaseOpenPopup(o.popupId,i)}o.popupId&&s.shouldPopupBeOpened(o.actionId,o.recurrenceCondition,o.recurrenceOptions)&&("always"!==o.recurrenceCondition&&(i=function(){s.updateDataInStorage(o.actionId,o.recurrenceCondition)}),"timer"===o.triggerType?a(r,o.delayTime):"placement"===o.triggerType&&l.startWatching({element:t,onEnter:r}))}}}]),angular.module("website.widget.content_slider").directive("motoWidgetContentSliderItem",["website.ContentWidgetClass","website.WidgetsRepository",function(n,i){return{restrict:"C",scope:!0,compile:function(e){var t=new n(e);return i.registry(t),{pre:function(e){t.setScope(e)}}}}}]),angular.module("website.widget.content_slider").directive("motoContentSlider",["website.ContentWidgetClass","website.ElementHeightWatcherClass","website.WidgetsRepository","MotoIntervalService",function(e,t,p,g){var n=window.document.createEvent("Event");function f(){setTimeout(window.dispatchEvent.bind(null,n),50)}return n.initEvent("resize",!0,!1),{restrict:"A",scope:!0,compile:function(s){var l,c=new e(s),u=new t({$element:s.find("#"+c.id+"__loader"),watchSelector:"#"+c.id+"__content > .moto-widget"}),d=s.find(".moto-widget-content_slider__item"),m=0;return u.show(),p.registry(c),{pre:function(e){c.setScope(e)},post:function(e,t,n){var i,r,o,a={onSliderLoad:function(e){var t=c.getChild(e);u&&(u.destroy(),u=null),c.$element.removeClass("moto-widget__state_loading"),this.redrawSlider(),l=g.registerCallback(function(){var e;m<5?m++:(m=0,e=s.innerHeight(),d.eq(this.getCurrentSlide()).find(".moto-widget__content-wrapper>.moto-widget__content>.moto-cell").innerHeight()!==e&&this.redrawSlider())}.bind(this)),t&&(t.onVisibleImmediately(r),f())},onSliderResize:function(e){var t=c.getChild(e);t&&t.onResizing()},onSlideBefore:function(e,t,n){var i=c.getChild(t),o=c.getChild(n);i&&i.onVanishing(),o&&o.onArriving(r),f()},onSlideAfter:function(e,t,n){var i=c.getChild(t),o=c.getChild(n);i&&i.onVanished(),o&&o.onArrived(r)},onSlideNext:function(e,t,n){},onSlidePrev:function(e,t,n){}};e.params=e.$eval(n.motoContentSlider),angular.isObject(e.params)||(e.params={}),angular.isObject(e.params.options)||(e.params.options={}),angular.isObject(e.params.preferences)||(e.params.preferences={}),r=angular.copy({startAnimation:"onArriving"}),angular.extend(r,e.params.preferences),o=angular.copy({auto:!1,pause:1e4,controls:!1,pager:!1,stopAutoOnClick:!0,autoControls:!1,autoControlsCombine:!0,preloadImages:"all"}),angular.extend(o,e.params.options),c.$content.find(">.moto-widget-content_slider__item").length<=1&&(o.controls=!1,o.pager=!1),angular.extend(o,a),e.$on("UserInteraction",function(e,t){"StartInteraction"===t&&(i?i.stopAuto():o.auto=!1)}),i=c.$content.bxSlider(o),e.$on("$destroy",function(){i&&i.destroySlider(),u&&(u.destroy(),u=null),l(),p.forget(c)})}}}}}]),function(o){o.fn.motoCounter=function(e){var t,n,i;if(!e||!angular.isObject(e))return!1;jQuery.easing.easeOutCirc=function(e,t,n,i,o){return i*Math.sqrt(1-(t=t/o-1)*t)+n},i=o.extend({},{countFrom:0,countTo:100,duration:3,easing:"easeOutCirc",complete:null,elementSelector:".moto-widget-counter__value"},e),t=o(this),n=t.find(i.elementSelector),t.stop(),o({count:i.countFrom}).animate({count:i.countTo},{duration:1e3*i.duration,easing:i.easing,step:function(){var e=Math.ceil(this.count);n.text(e)},complete:function(){n.text(i.countTo)}})}}(jQuery),angular.module("website.core.form").directive("motoFormAttachmentButton",["$timeout",function(a){function s(e,t,n){var i,o;if(angular.isUndefined(t)||angular.isUndefined(n))return!1;for(n=!!n,angular.isObject(t)&&(t=Object.keys(t)),angular.isArray(t)||(t=[t]),i=0,o=t.length;i