"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 t=new Worker(this.fetcher);t.postMessage({url:n.fetchUrl,method:n.method});t.addEventListener("message",function(t){n.completed=n.onComplete(t.data);n.completed||(n.data=t.data)},!1)};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",_intervalForContainerSet:!1,onComplete:function(n){var i,r;try{var u=this,f=!1,t=0,e=document.querySelector(this.containerSelector);return e==null?(this._intervalForContainerSet||(this._intervalForContainerSet=!0,t=0,i=setInterval(function(){(u.onComplete(n)||t++==5)&&(this._intervalForContainerSet=!1,clearInterval(i))},200)),!1):(e.innerHTML=n,f=this._onDocumentReady(),f||(t=0,r=setInterval(function(){(u._onDocumentReady()||t++==20)&&clearInterval(r)},500)),!0)}catch(o){return console.log("owl - "+o.message),!1}},fallBack:function(){$(this.containerSelector).load(this.fetchUrl,this.onComplete)},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}}}})