"use strict";Object.entries||(Object.entries=function(n){for(var i=Object.keys(n),t=i.length,r=new Array(t);t--;)r[t]=[i[t],n[i[t]]];return r}),function(){var n=function(){this._getOptions=function(){var n=this;return{data:{}}};this.options=this._getOptions().data;this.fetcher="/lib/js/Workers/wrk_fetcher.es5.js";this._extend=function(){for(var n,t=1;t<arguments.length;t++)for(n in arguments[t])arguments[t].hasOwnProperty(n)&&(typeof arguments[0][n]=="object"&&typeof arguments[t][n]=="object"?this._extend(arguments[0][n],arguments[t][n]):arguments[0][n]=arguments[t][n]);return arguments[0]};this._activate=function(n){var i=typeof n.workerCodePath=="undefined"||n.workerCodePath===""?this.fetcher:n.workerCodePath,t=new Worker(i);t.onmessage=function(t){n.completed=n.onComplete(t.data);n.completed||(n.data=t.data)};t.postMessage({url:n.fetchUrl,method:n.method})};this.execute=function(n){var i,t,r;if(window.Worker)for(this._extend(this.options,n),i=Object.entries(this.options),t=0;t<i.length;t++)r=i[t][1],r.active&&this._activate(r)};this.fallBack=function(){for(var t,i,r=Object.entries(this.options),u=this,n=0;n<r.length;n++)t=r[n],i=t[1],i.fallBack()}};window.WorkerManager=new n}(window);WorkerManager.execute({trendBar:{containerSelector:"#trends-carsl",fetchUrl:"/action/trends",method:"GET",workerCodePath:"/lib/js/Workers/custom_fetchers/trends_fetcher.es5.js",_intervalForContainerSet:!1,onComplete:function(n){var r,u;try{var i=this,f=!1,t=0,e=document.querySelector(this.containerSelector);return e==null?(this._intervalForContainerSet||(this._intervalForContainerSet=!0,t=0,r=setInterval(function(){(i.onComplete(n)||t++==5)&&(i._intervalForContainerSet=!1,clearInterval(r))},200)),!1):(e.innerHTML=n,f=this._onDocumentReady(),f||(t=0,u=setInterval(function(){(i._onDocumentReady()||t++==20)&&clearInterval(u)},500)),!0)}catch(o){return console.log("owl - "+o.message),!1}},fallBack:function(){var n=this;$(this.containerSelector).load(this.fetchUrl,function(t){var i=n.onComplete.bind(n);i(t)})},active:!0,completed:!1,_onDocumentReady:function(){try{if(typeof $=="undefined")return!1;var n=$("#trends-carsl .owl-carousel");return n.length>0&&typeof n.owlCarousel=="function"&&typeof n.data("owl.carousel")!="object"?(n.owlCarousel({stagePadding:30,loop:!0,center:!0,nav:!0,margin:20,autoWidth:!0,navText:['<i class="fa fa-chevron-left" aria-hidden="true"><\/i>','<i class="fa fa-chevron-right" aria-hidden="true"><\/i>'],dots:!1}),!0):!1}catch(t){return!1}}}})