function BootstrapEnvironment(){var t="",e=[];this.attachOnChangeFunction=function(t){e.push(t)},this.checkEnvironment=function(){var n=this.getEnvironment();return t!=n&&(t=n,e.forEach(function(t){t(n)}),!0)},this.getLastSetEnvironment=function(){return null!=t&&""!=t||this.checkEnvironment(),t},this.getEnvironment=function(){var t=["xs","sm","md","lg"],e=$("
");e.appendTo($("body"));for(var n=t.length-1;n>=0;n--){var i=t[n];if(e.addClass("hidden-"+i),e.is(":hidden"))return e.remove(),t[n]}return null}}function CookieHelper(t,e){var n=t,i=!1,r=!1,o=[];this.CookieName=null!=e&&""!=e?e:"CookieHelper",this.CookieValue="Clicked",this.IgnoreCookies=!1,this.evaluateObjects=function(){$("*[data-cookie]").each(function(){$(this).data("cookie")==n&&(i?$(this).show():$(this).hide())})},this.accept=function(){if(!i){var t=new Date;t.setDate(t.getDate()+180),document.cookie=this.CookieName+"="+this.CookieValue+"; expires="+t.toUTCString()+"; path=/",i=!0,this.evaluateObjects(),o.forEach(function(t){t()})}},this.initialize=function(){null!=this.CookieName&&""!=this.CookieName&&null!=this.CookieValue&&""!=this.CookieValue&&(i=document.cookie.indexOf(this.CookieName+"="+this.CookieValue)>=0),this.evaluateObjects(),r=!0},this.attachOnAcceptFunctions=function(t){o.push(t)},this.isAccepted=function(){return r||this.initialize(),i}}function CookieManager(){}function bootstrapAdHandler(t){_adManager.setEnvironment(t)&&_adManager.renderAllAds()}function RegioAdManager(){function t(t){var e=t,n=t.data("ad"),i=t.data("adtype"),r=t.data("adsize"),o=t.data("adenv").split(";"),s=r.split("x")[0],a=r.split("x")[1],l=e.find(".ad-"+i),u=n+"/"+i+"/"+r;this.getIdentifier=function(){return u},this.getAdEnvironments=function(){return o};var c=!1;this.getAdRendered=function(){return c};var h="["+u+"]";this.getIdInformation=function(){return h},this.visibleInEnvironment=function(t){return null!=t&&""!=t&&jQuery.inArray(t,o)>-1},this.renderAd=function(){if(c)_adManager.DebugMode&&console.error("RenderAd for "+h+": Ad has already been rendered");else{l.attr("style","width:"+s+"px!important;height:"+a+"px!important;overflow:hidden!important;");var t=_adManager.AdFrameLocation+"?t="+i+"&id="+n+"&s="+r;_adManager.KeywordTargets.length>0&&(t+="&k="+escape(_adManager.KeywordTargets.join(";")));var e=$("':"vimeo"===s.type&&(n=''),o.addClass("owl-video-playing"),this._playing=o,i=t('
'+n+"
"),r.after(i)},i.prototype.isInFullScreen=function(){var i=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return i&&t(i).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),!(i&&this._fullscreen&&this._playing)&&(this._fullscreen?(this._fullscreen=!1,!1):!this._playing||this._core.state.orientation===e.orientation||(this._core.state.orientation=e.orientation,!1))},i.prototype.destroy=function(){var t,e;this._core.$element.off("click.owl.video");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=i}(window.Zepto||window.jQuery,window,document),function(t,e,n,i){var r=function(e){this.core=e,this.core.options=t.extend({},r.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":t.proxy(function(t){"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){this.swapping="translated"==t.type},this),"translate.owl.carousel":t.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};r.Defaults={animateOut:!1,animateIn:!1},r.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var e,n=t.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),r=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,s=this.core.settings.animateOut;this.core.current()!==this.previous&&(s&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.css({left:e+"px"}).addClass("animated owl-animated-out").addClass(s).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",n)),o&&r.addClass("animated owl-animated-in").addClass(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",n))}},r.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},r.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=r}(window.Zepto||window.jQuery,window,document),function(t,e,n){var i=function(e){this.core=e,this.core.options=t.extend({},i.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":t.proxy(function(){this.autoplay()},this),"play.owl.autoplay":t.proxy(function(t,e,n){this.play(e,n)},this),"stop.owl.autoplay":t.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};i.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},i.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(e.clearInterval(this.interval),this.interval=e.setInterval(t.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):e.clearInterval(this.interval)},i.prototype.play=function(){return!0===n.hidden||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:!1===this.core.settings.autoplay?void e.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},i.prototype.stop=function(){e.clearInterval(this.interval)},i.prototype.pause=function(){e.clearInterval(this.interval)},i.prototype.destroy=function(){var t,n;e.clearInterval(this.interval);for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=i}(window.Zepto||window.jQuery,window,document),function(t){"use strict";var e=function(n){this._core=n,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){this._core.settings.dotsData&&this._templates.push(t(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":t.proxy(function(e){this._core.settings.dotsData&&this._templates.splice(e.position,0,t(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":t.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"change.owl.carousel":t.proxy(function(t){if("position"==t.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var e=this._core.current(),n=this._core.maximum(),i=this._core.minimum();t.data=t.property.value>n?e>=n?i:n:t.property.value").addClass(i.dotClass).append(t("")).prop("outerHTML")]),i.navContainer&&i.dotsContainer||(this._controls.$container=t("
").addClass(i.controlsClass).appendTo(this.$element)),this._controls.$indicators=i.dotsContainer?t(i.dotsContainer):t("
").hide().addClass(i.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",t.proxy(function(e){var n=t(e.target).parent().is(this._controls.$indicators)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(n,i.dotsSpeed)},this)),e=i.navContainer?t(i.navContainer):t("
").addClass(i.navContainerClass).prependTo(this._controls.$container),this._controls.$next=t("<"+i.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(i.navClass[0]).html(i.navText[0]).hide().prependTo(e).on("click",t.proxy(function(){this.prev(i.navSpeed)},this)),this._controls.$next.addClass(i.navClass[1]).html(i.navText[1]).hide().appendTo(e).on("click",t.proxy(function(){this.next(i.navSpeed)},this));for(n in this._overrides)this._core[n]=t.proxy(this[n],this)},e.prototype.destroy=function(){var t,e,n,i;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},e.prototype.update=function(){var t,e,n=this._core.settings,i=this._core.clones().length/2,r=i+this._core.items().length,o=n.center||n.autoWidth||n.dotData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],t=i,e=0,0;r>t;t++)(e>=o||0===e)&&(this._pages.push({start:t-i,end:t-i+o-1}),e=0,0),e+=this._core.mergers(this._core.relative(t))},e.prototype.draw=function(){var e,n,i="",r=this._core.settings,o=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!r.nav||r.loop||r.navRewind||(this._controls.$previous.toggleClass("disabled",0>=o),this._controls.$next.toggleClass("disabled",o>=this._core.maximum())),this._controls.$previous.toggle(r.nav),this._controls.$next.toggle(r.nav),r.dots){if(e=this._pages.length-this._controls.$indicators.children().length,r.dotData&&0!==e){for(n=0;n0?(i=new Array(e+1).join(this._templates[0]),this._controls.$indicators.append(i)):0>e&&this._controls.$indicators.children().slice(e).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(t.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(r.dots)},e.prototype.onTrigger=function(e){var n=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:n&&(n.center||n.autoWidth||n.dotData?1:n.dotsEach||n.items)}},e.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,function(t){return t.start<=e&&t.end>=e}).pop()},e.prototype.getPosition=function(e){var n,i,r=this._core.settings;return"page"==r.slideBy?(n=t.inArray(this.current(),this._pages),i=this._pages.length,e?++n:--n,n=this._pages[(n%i+i)%i].start):(n=this._core.relative(this._core.current()),i=this._core.items().length,e?n+=r.slideBy:n-=r.slideBy),n},e.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},e.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},e.prototype.to=function(e,n,i){var r;i?t.proxy(this._overrides.to,this._core)(e,n):(r=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%r+r)%r].start,n))},t.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(t,e){"use strict";var n=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(){"URLHash"==this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":t.proxy(function(e){var n=t(e.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[n]=e.content},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy(function(){var t=e.location.hash.substring(1),n=this._core.$stage.children(),i=this._hashes[t]&&n.index(this._hashes[t])||0;return!!t&&void this._core.to(i,!1,!0)},this))};n.Defaults={URLhashListener:!1},n.prototype.destroy=function(){var n,i;t(e).off("hashchange.owl.navigation");for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=n}(window.Zepto||window.jQuery,window,document);var win=$(window);$(document).on("ready",function(){initMainnavAffix(),initMainMenu(),initToggleOffscreenNavigation(),initScrollTop(),initNewsDetailSlider(),initSidebarSlider(),initVideoBlocks(),initFormValidation()}),Enumerable=function(){var t=function(t){this.GetEnumerator=t};t.Choice=function(){var n=arguments[0]instanceof Array?arguments[0]:arguments;return new t(function(){return new a(e.Blank,function(){return this.Yield(n[Math.floor(Math.random()*n.length)])},e.Blank)})},t.Cycle=function(){var n=arguments[0]instanceof Array?arguments[0]:arguments;return new t(function(){var t=0;return new a(e.Blank,function(){return t>=n.length&&(t=0),this.Yield(n[t++])},e.Blank)})},t.Empty=function(){return new t(function(){return new a(e.Blank,function(){return!1},e.Blank)})},t.From=function(r){if(null==r)return t.Empty();if(r instanceof t)return r;if(typeof r==n.Number||typeof r==n.Boolean)return t.Repeat(r,1);if(typeof r==n.String)return new t(function(){var t=0;return new a(e.Blank,function(){return t=n})},t.Repeat=function(n,i){return null!=i?t.Repeat(n).Take(i):new t(function(){return new a(e.Blank,function(){return this.Yield(n)},e.Blank)})},t.RepeatWithFinalize=function(e,n){return e=i.CreateLambda(e),n=i.CreateLambda(n),new t(function(){var t;return new a(function(){t=e()},function(){return this.Yield(t)},function(){null!=t&&(n(t),t=null)})})},t.Generate=function(n,r){return null!=r?t.Generate(n).Take(r):(n=i.CreateLambda(n),new t(function(){return new a(e.Blank,function(){return this.Yield(n())},e.Blank)}))},t.ToInfinity=function(n,i){return null==n&&(n=0),null==i&&(i=1),new t(function(){var t;return new a(function(){t=n-i},function(){return this.Yield(t+=i)},e.Blank)})},t.ToNegativeInfinity=function(n,i){return null==n&&(n=0),null==i&&(i=1),new t(function(){var t;return new a(function(){t=n+i},function(){return this.Yield(t-=i)},e.Blank)})},t.Unfold=function(n,r){return r=i.CreateLambda(r),new t(function(){var t,i=!0;return new a(e.Blank,function(){return i?(i=!1,t=n,this.Yield(t)):(t=r(t),this.Yield(t))},e.Blank)})},t.prototype={CascadeBreadthFirst:function(e,n){var r=this;return e=i.CreateLambda(e),n=i.CreateLambda(n),new t(function(){var o,s=0,l=[];return new a(function(){o=r.GetEnumerator()},function(){for(;;){if(o.MoveNext())return l.push(o.Current()),this.Yield(n(o.Current(),s));var r=t.From(l).SelectMany(function(t){return e(t)});if(!r.Any())return!1;s++,l=[],i.Dispose(o),o=r.GetEnumerator()}},function(){i.Dispose(o)})})},CascadeDepthFirst:function(e,n){var r=this;return e=i.CreateLambda(e),n=i.CreateLambda(n),new t(function(){var o,s=[];return new a(function(){o=r.GetEnumerator()},function(){for(;;){if(o.MoveNext()){var r=n(o.Current(),s.length);return s.push(o),o=t.From(e(o.Current())).GetEnumerator(),this.Yield(r)}if(s.length<=0)return!1;i.Dispose(o),o=s.pop()}},function(){try{i.Dispose(o)}finally{t.From(s).ForEach(function(t){t.Dispose()})}})})},Flatten:function(){var n=this;return new t(function(){var r,o=null;return new a(function(){r=n.GetEnumerator()},function(){for(;;){if(null!=o){if(o.MoveNext())return this.Yield(o.Current());o=null}if(r.MoveNext()){if(r.Current()instanceof Array){i.Dispose(o),o=t.From(r.Current()).SelectMany(e.Identity).Flatten().GetEnumerator();continue}return this.Yield(r.Current())}return!1}},function(){try{i.Dispose(r)}finally{i.Dispose(o)}})})},Pairwise:function(e){var n=this;return e=i.CreateLambda(e),new t(function(){var t;return new a(function(){(t=n.GetEnumerator()).MoveNext()},function(){var n=t.Current();return!!t.MoveNext()&&this.Yield(e(n,t.Current()))},function(){i.Dispose(t)})})},Scan:function(e,n,r){if(null!=r)return this.Scan(e,n).Select(r);var o;null==n?(n=i.CreateLambda(e),o=!1):(n=i.CreateLambda(n),o=!0);var s=this;return new t(function(){var t,r,l=!0;return new a(function(){t=s.GetEnumerator()},function(){if(l){if(l=!1,o)return this.Yield(r=e);if(t.MoveNext())return this.Yield(r=t.Current())}return!!t.MoveNext()&&this.Yield(r=n(r,t.Current()))},function(){i.Dispose(t)})})},Select:function(e){var n=this;return e=i.CreateLambda(e),new t(function(){var t,r=0;return new a(function(){t=n.GetEnumerator()},function(){return!!t.MoveNext()&&this.Yield(e(t.Current(),r++))},function(){i.Dispose(t)})})},SelectMany:function(e,n){var r=this;return e=i.CreateLambda(e),null==n&&(n=function(t,e){return e}),n=i.CreateLambda(n),new t(function(){var o,s=void 0,l=0;return new a(function(){o=r.GetEnumerator()},function(){if(void 0===s&&!o.MoveNext())return!1;do{if(null==s){var r=e(o.Current(),l++);s=t.From(r).GetEnumerator()}if(s.MoveNext())return this.Yield(n(o.Current(),s.Current()));i.Dispose(s),s=null}while(o.MoveNext());return!1},function(){try{i.Dispose(o)}finally{i.Dispose(s)}})})},Where:function(e){e=i.CreateLambda(e);var n=this;return new t(function(){var t,r=0;return new a(function(){t=n.GetEnumerator()},function(){for(;t.MoveNext();)if(e(t.Current(),r++))return this.Yield(t.Current());return!1},function(){i.Dispose(t)})})},OfType:function(t){var e;switch(t){case Number:e=n.Number;break;case String:e=n.String;break;case Boolean:e=n.Boolean;break;case Function:e=n.Function;break;default:e=null}return null===e?this.Where(function(e){return e instanceof t}):this.Where(function(t){return typeof t===e})},Zip:function(e,n){n=i.CreateLambda(n);var r=this;return new t(function(){var o,s,l=0;return new a(function(){o=r.GetEnumerator(),s=t.From(e).GetEnumerator()},function(){return!(!o.MoveNext()||!s.MoveNext())&&this.Yield(n(o.Current(),s.Current(),l++))},function(){try{i.Dispose(o)}finally{i.Dispose(s)}})})},Join:function(n,r,o,s,l){r=i.CreateLambda(r),o=i.CreateLambda(o),s=i.CreateLambda(s),l=i.CreateLambda(l);var u=this;return new t(function(){var c,h,d=null,p=0;return new a(function(){c=u.GetEnumerator(),h=t.From(n).ToLookup(o,e.Identity,l)},function(){for(;;){if(null!=d){var t=d[p++];if(void 0!==t)return this.Yield(s(c.Current(),t));t=null,p=0}if(!c.MoveNext())return!1;var e=r(c.Current());d=h.Get(e).ToArray()}},function(){i.Dispose(c)})})},GroupJoin:function(n,r,o,s,l){r=i.CreateLambda(r),o=i.CreateLambda(o),s=i.CreateLambda(s),l=i.CreateLambda(l);var u=this;return new t(function(){var c=u.GetEnumerator(),h=null;return new a(function(){c=u.GetEnumerator(),h=t.From(n).ToLookup(o,e.Identity,l)},function(){if(c.MoveNext()){var t=h.Get(r(c.Current()));return this.Yield(s(c.Current(),t))}return!1},function(){i.Dispose(c)})})},All:function(t){t=i.CreateLambda(t);var e=!0;return this.ForEach(function(n){if(!t(n))return e=!1,!1}),e},Any:function(t){t=i.CreateLambda(t);var e=this.GetEnumerator();try{if(0==arguments.length)return e.MoveNext();for(;e.MoveNext();)if(t(e.Current()))return!0;return!1}finally{i.Dispose(e)}},Concat:function(e){var n=this;return new t(function(){var r,o;return new a(function(){r=n.GetEnumerator()},function(){if(null==o){if(r.MoveNext())return this.Yield(r.Current());o=t.From(e).GetEnumerator()}return!!o.MoveNext()&&this.Yield(o.Current())},function(){try{i.Dispose(r)}finally{i.Dispose(o)}})})},Insert:function(e,n){var r=this;return new t(function(){var o,s,l=0,u=!1;return new a(function(){o=r.GetEnumerator(),s=t.From(n).GetEnumerator()},function(){return l==e&&s.MoveNext()?(u=!0,this.Yield(s.Current())):o.MoveNext()?(l++,this.Yield(o.Current())):!(u||!s.MoveNext())&&this.Yield(s.Current())},function(){try{i.Dispose(o)}finally{i.Dispose(s)}})})},Alternate:function(e){return e=t.Return(e),this.SelectMany(function(n){return t.Return(n).Concat(e)}).TakeExceptLast()},Contains:function(t,e){e=i.CreateLambda(e);var n=this.GetEnumerator();try{for(;n.MoveNext();)if(e(n.Current())===t)return!0;return!1}finally{i.Dispose(n)}},DefaultIfEmpty:function(e){var n=this;return new t(function(){var t,r=!0;return new a(function(){t=n.GetEnumerator()},function(){return t.MoveNext()?(r=!1,this.Yield(t.Current())):!!r&&(r=!1,this.Yield(e))},function(){i.Dispose(t)})})},Distinct:function(e){return this.Except(t.Empty(),e)},Except:function(e,n){n=i.CreateLambda(n);var r=this;return new t(function(){var o,s;return new a(function(){o=r.GetEnumerator(),s=new d(n),t.From(e).ForEach(function(t){s.Add(t)})},function(){for(;o.MoveNext();){var t=o.Current();if(!s.Contains(t))return s.Add(t),this.Yield(t)}return!1},function(){i.Dispose(o)})})},Intersect:function(e,n){n=i.CreateLambda(n);var r=this;return new t(function(){var o,s,l;return new a(function(){o=r.GetEnumerator(),s=new d(n),t.From(e).ForEach(function(t){s.Add(t)}),l=new d(n)},function(){for(;o.MoveNext();){var t=o.Current();if(!l.Contains(t)&&s.Contains(t))return l.Add(t),this.Yield(t)}return!1},function(){i.Dispose(o)})})},SequenceEqual:function(e,n){n=i.CreateLambda(n);var r=this.GetEnumerator();try{var o=t.From(e).GetEnumerator();try{for(;r.MoveNext();)if(!o.MoveNext()||n(r.Current())!==n(o.Current()))return!1;return!o.MoveNext()}finally{i.Dispose(o)}}finally{i.Dispose(r)}},Union:function(e,n){n=i.CreateLambda(n);var r=this;return new t(function(){var o,s,l;return new a(function(){o=r.GetEnumerator(),l=new d(n)},function(){var n;if(void 0===s){for(;o.MoveNext();)if(n=o.Current(),!l.Contains(n))return l.Add(n),this.Yield(n);s=t.From(e).GetEnumerator()}for(;s.MoveNext();)if(n=s.Current(),!l.Contains(n))return l.Add(n),this.Yield(n);return!1},function(){try{i.Dispose(o)}finally{i.Dispose(s)}})})},OrderBy:function(t){return new u(this,t,!1)},OrderByDescending:function(t){return new u(this,t,!0)},Reverse:function(){var n=this;return new t(function(){var t,i;return new a(function(){t=n.ToArray(),i=t.length},function(){return i>0&&this.Yield(t[--i])},e.Blank)})},Shuffle:function(){var n=this;return new t(function(){var t;return new a(function(){t=n.ToArray()},function(){if(t.length>0){var e=Math.floor(Math.random()*t.length);return this.Yield(t.splice(e,1)[0])}return!1},e.Blank)})},GroupBy:function(e,n,r,o){var s=this;return e=i.CreateLambda(e),n=i.CreateLambda(n),null!=r&&(r=i.CreateLambda(r)),o=i.CreateLambda(o),new t(function(){var t;return new a(function(){t=s.ToLookup(e,n,o).ToEnumerable().GetEnumerator()},function(){for(;t.MoveNext();)return null==r?this.Yield(t.Current()):this.Yield(r(t.Current().Key(),t.Current()));return!1},function(){i.Dispose(t)})})},PartitionBy:function(e,n,r,o){var s=this;e=i.CreateLambda(e),n=i.CreateLambda(n),o=i.CreateLambda(o);var l;return null==r?(l=!1,r=function(t,e){return new f(t,e)}):(l=!0,r=i.CreateLambda(r)),new t(function(){var u,c,h,d=[];return new a(function(){(u=s.GetEnumerator()).MoveNext()&&(c=e(u.Current()),h=o(c),d.push(n(u.Current())))},function(){for(var i;1==(i=u.MoveNext())&&h===o(e(u.Current()));)d.push(n(u.Current()));if(d.length>0){var s=r(c,l?t.From(d):d);return i?(c=e(u.Current()),h=o(c),d=[n(u.Current())]):d=[],this.Yield(s)}return!1},function(){i.Dispose(u)})})},BufferWithCount:function(e){var n=this;return new t(function(){var t;return new a(function(){t=n.GetEnumerator()},function(){for(var n=[],i=0;t.MoveNext();)if(n.push(t.Current()),++i>=e)return this.Yield(n);return n.length>0&&this.Yield(n)},function(){i.Dispose(t)})})},Aggregate:function(t,e,n){return this.Scan(t,e,n).Last()},Average:function(t){t=i.CreateLambda(t);var e=0,n=0;return this.ForEach(function(i){e+=t(i),++n}),e/n},Count:function(t){t=null==t?e.True:i.CreateLambda(t);var n=0;return this.ForEach(function(e,i){t(e,i)&&++n}),n},Max:function(t){return null==t&&(t=e.Identity),this.Select(t).Aggregate(function(t,e){return t>e?t:e})},Min:function(t){return null==t&&(t=e.Identity),this.Select(t).Aggregate(function(t,e){return tt(n)?e:n})},MinBy:function(t){return t=i.CreateLambda(t),this.Aggregate(function(e,n){return t(e)")})},Force:function(){var t=this.GetEnumerator();try{for(;t.MoveNext(););}finally{i.Dispose(t)}},Let:function(e){e=i.CreateLambda(e);var n=this;return new t(function(){var r;return new a(function(){r=t.From(e(n)).GetEnumerator()},function(){return!!r.MoveNext()&&this.Yield(r.Current())},function(){i.Dispose(r)})})},Share:function(){var n,i=this;return new t(function(){return new a(function(){null==n&&(n=i.GetEnumerator())},function(){return!!n.MoveNext()&&this.Yield(n.Current())},e.Blank)})},MemoizeAll:function(){var n,i,r=this;return new t(function(){var t=-1;return new a(function(){null==i&&(i=r.GetEnumerator(),n=[])},function(){return t++,n.length<=t?!!i.MoveNext()&&this.Yield(n[t]=i.Current()):this.Yield(n[t])},e.Blank)})},Catch:function(e){e=i.CreateLambda(e);var n=this;return new t(function(){var t;return new a(function(){t=n.GetEnumerator()},function(){try{return!!t.MoveNext()&&this.Yield(t.Current())}catch(t){return e(t),!1}},function(){i.Dispose(t)})})},Finally:function(e){e=i.CreateLambda(e);var n=this;return new t(function(){var t;return new a(function(){t=n.GetEnumerator()},function(){return!!t.MoveNext()&&this.Yield(t.Current())},function(){try{i.Dispose(t)}finally{e()}})})},Trace:function(t,e){return null==t&&(t="Trace"),e=i.CreateLambda(e),this.Do(function(n){console.log(t,":",e(n))})}};var e={Identity:function(t){return t},True:function(){return!0},Blank:function(){}},n={Boolean:typeof!0,Number:"number",String:"string",Object:typeof{},Undefined:"undefined",Function:"function"},i={CreateLambda:function(t){if(null==t)return e.Identity;if(typeof t==n.String){if(""==t)return e.Identity;if(-1==t.indexOf("=>"))return new Function("$,$$,$$$,$$$$","return "+t);var i=t.match(/^[(\s]*([^()]*?)[)\s]*=>(.*)/);return new Function(i[1],"return "+i[2])}return t},IsIEnumerable:function(t){if(typeof Enumerator!=n.Undefined)try{return new Enumerator(t),!0}catch(t){}return!1},Compare:function(t,e){return t===e?0:t>e?1:-1},Dispose:function(t){null!=t&&t.Dispose()}},r=0,o=1,s=2,a=function(t,e,n){var i=new l,a=r;this.Current=i.Current,this.MoveNext=function(){try{switch(a){case r:a=o,t();case o:return!!e.apply(i)||(this.Dispose(),!1);case s:return!1}}catch(t){throw this.Dispose(),t}},this.Dispose=function(){if(a==o)try{n()}finally{a=s}}},l=function(){var t=null;this.Current=function(){return t},this.Yield=function(e){return t=e,!0}},u=function(t,e,n,r){this.source=t,this.keySelector=i.CreateLambda(e),this.descending=n,this.parent=r};u.prototype=new t,u.prototype.CreateOrderedEnumerable=function(t,e){return new u(this.source,t,e,this)},u.prototype.ThenBy=function(t){return this.CreateOrderedEnumerable(t,!1)},u.prototype.ThenByDescending=function(t){return this.CreateOrderedEnumerable(t,!0)},u.prototype.GetEnumerator=function(){var t,n,i=this,r=0;return new a(function(){t=[],n=[],i.source.ForEach(function(e,i){t.push(e),n.push(i)});var e=c.Create(i,null);e.GenerateKeys(t),n.sort(function(t,n){return e.Compare(t,n)})},function(){return r0:t.prototype.Any.apply(this,arguments)},h.prototype.Count=function(e){return null==e?this.source.length:t.prototype.Count.apply(this,arguments)},h.prototype.ElementAt=function(e){return 0<=e&&e0?this.source[0]:t.prototype.First.apply(this,arguments)},h.prototype.FirstOrDefault=function(e,n){return null!=n?t.prototype.FirstOrDefault.apply(this,arguments):this.source.length>0?this.source[0]:e},h.prototype.Last=function(e){return null==e&&this.source.length>0?this.source[this.source.length-1]:t.prototype.Last.apply(this,arguments)},h.prototype.LastOrDefault=function(e,n){return null!=n?t.prototype.LastOrDefault.apply(this,arguments):this.source.length>0?this.source[this.source.length-1]:e},h.prototype.Skip=function(n){var i=this.source;return new t(function(){var t;return new a(function(){t=n<0?0:n},function(){return t0&&this.Yield(n[--t])},e.Blank)})},h.prototype.SequenceEqual=function(e,n){return(!(e instanceof h||e instanceof Array)||null!=n||t.From(e).Count()==this.Count())&&t.prototype.SequenceEqual.apply(this,arguments)},h.prototype.ToString=function(e,n){return null==n&&this.source instanceof Array?(null==e&&(e=""),this.source.join(e)):t.prototype.ToString.apply(this,arguments)},h.prototype.GetEnumerator=function(){var t=this.source,n=0;return new a(e.Blank,function(){return n=r}};var cookieHelper=new CookieHelper("regiogrid","RegioGrid");cookieHelper.attachOnAcceptFunctions(function(){_adManager.initialize(),_adManager.renderAllAds()}),cookieHelper.initialize(),cookieHelper.isAccepted()&&(_adManager.initialize(),_adManager.renderAllAds());var SearchViewModel=extend(function(){var t=this;this.initialized=ko.observable(!1),this.isSearching=ko.observable(!1),this.searchItemTypes=ko.observableArray([{value:null,text:"Alles"},{value:"NewsItem",text:"Nieuws"},{value:"VideoItem",text:"Video"},{value:"AudioItem",text:"Audio"},{value:"TvSeries",text:"Tv programma's"},{value:"TvSeriesEpisode",text:"Tv afleveringen"},{value:"RadioSeries",text:"Radio programma's"},{value:"RadioSeriesEpisode",text:"Radio afleveringen"},{value:"ContentPage",text:"Pagina's"}]),this.query=ko.observable(),this.query.subscribe(function(){t.search(!0)}),this.afterSearchQuery=ko.observable(),this.from=ko.observable(),this.from.subscribe(function(){t.search(!0)}),this.to=ko.observable(),this.to.subscribe(function(){t.search(!0)}),this.afterSearchPage=ko.observable(),this.searchItemType=ko.observable(),this.searchItemType.subscribe(function(){t.search(!0)}),this.searched=ko.observable(!1),this.total=ko.observable(0),this.searchResults=ko.observableArray([]),this.initialize=function(e){t.initializeBase(),t.query(e.query),t.from(e.from),t.to(e.to),t.currentPage(e.page),t.searchItemType(e.searchItemType),$('[data-widget="datePicker"]').datepicker({format:"dd-mm-yyyy",weekStart:1,language:"nl",autoclose:!0,todayHighlight:!0}),t.initialized(!0)},this.dateSearchEnabled=ko.computed(function(){return"ContentPage"!==t.searchItemType()}),this.dateSearchEnabled.subscribe(function(e){e||(t.from(""),t.to(""))}),this.previousEnabled=ko.computed(function(){var e=t.isSearching(),n=t.currentPage();return!e&&n>1}),this.nextEnabled=ko.computed(function(){var e=t.isSearching(),n=t.currentPage(),i=t.pageCount();return!e&&n1}),this.nextEnabled=ko.computed(function(){var e=t.isSearching(),n=t.currentPage(),i=t.pageCount();return!e&&n .open");n.toggleClass("open",!1),n.length>0&&n[0]===e[0]||e.toggleClass("open",!0)});