text: !function($){function operate(input,direct,method){var node=input[0],state=/er/.test(method)?_indeterminate:/bl/.test(method)?_disabled:_checked,active=method==_update?{checked:node[_checked],disabled:node[_disabled],indeterminate:"true"==input.attr(_indeterminate)||"false"==input.attr(_determinate)}:node[state];if(/^(ch|di|in)/.test(method)&&!active)on(input,state);else if(/^(un|en|de)/.test(method)&&active)off(input,state);else if(method==_update)for(var each in active)active[each]?on(input,each,!0):off(input,each,!0);else direct&&"toggle"!=method||(direct||input[_callback]("ifClicked"),active?node[_type]!==_radio&&off(input,state):on(input,state))}function on(input,state,keep){var node=input[0],parent=input.parent(),checked=state==_checked,indeterminate=state==_indeterminate,disabled=state==_disabled,callback=indeterminate?_determinate:checked?_unchecked:"enabled",regular=option(input,callback+capitalize(node[_type])),specific=option(input,state+capitalize(node[_type]));if(node[state]!==!0){if(!keep&&state==_checked&&node[_type]==_radio&&node.name){var form=input.closest("form"),inputs='input[name="'+node.name+'"]';inputs=form.length?form.find(inputs):$(inputs),inputs.each(function(){this!==node&&$(this).data(_iCheck)&&off($(this),state)})}indeterminate?(node[state]=!0,node[_checked]&&off(input,_checked,"force")):(keep||(node[state]=!0),checked&&node[_indeterminate]&&off(input,_indeterminate,!1)),callbacks(input,checked,state,keep)}node[_disabled]&&option(input,_cursor,!0)&&parent.find("."+_iCheckHelper).css(_cursor,"default"),parent[_add](specific||option(input,state)||""),parent.attr("role")&&!indeterminate&&parent.attr("aria-"+(disabled?_disabled:_checked),"true"),parent[_remove](regular||option(input,callback)||"")}function off(input,state,keep){var node=input[0],parent=input.parent(),checked=state==_checked,indeterminate=state==_indeterminate,disabled=state==_disabled,callback=indeterminate?_determinate:checked?_unchecked:"enabled",regular=option(input,callback+capitalize(node[_type])),specific=option(input,state+capitalize(node[_type]));node[state]!==!1&&(!indeterminate&&keep&&"force"!=keep||(node[state]=!1),callbacks(input,checked,callback,keep)),!node[_disabled]&&option(input,_cursor,!0)&&parent.find("."+_iCheckHelper).css(_cursor,"pointer"),parent[_remove](specific||option(input,state)||""),parent.attr("role")&&!indeterminate&&parent.attr("aria-"+(disabled?_disabled:_checked),"false"),parent[_add](regular||option(input,callback)||"")}function tidy(input,callback){input.data(_iCheck)&&(input.parent().html(input.attr("style",input.data(_iCheck).s||"")),callback&&input[_callback](callback),input.off(".i").unwrap(),$(_label+'[for="'+input[0].id+'"]').add(input.closest(_label)).off(".i"))}function option(input,state,regular){return input.data(_iCheck)?input.data(_iCheck).o[state+(regular?"":"Class")]:void 0}function capitalize(string){return string.charAt(0).toUpperCase()+string.slice(1)}function callbacks(input,checked,callback,keep){keep||(checked&&input[_callback]("ifToggled"),input[_callback]("ifChanged")[_callback]("if"+capitalize(callback)))}var _iCheck="iCheck",_iCheckHelper=_iCheck+"-helper",_checkbox="checkbox",_radio="radio",_checked="checked",_unchecked="un"+_checked,_disabled="disabled",_determinate="determinate",_indeterminate="in"+_determinate,_update="update",_type="type",_click="click",_touch="touchbegin.i touchend.i",_add="addClass",_remove="removeClass",_callback="trigger",_label="label",_cursor="cursor",_mobile=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);$.fn[_iCheck]=function(options,fire){var handle='input[type="'+_checkbox+'"], input[type="'+_radio+'"]',stack=$(),walker=function(object){object.each(function(){var self=$(this);stack=self.is(handle)?stack.add(self):stack.add(self.find(handle))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(options))return options=options.toLowerCase(),walker(this),stack.each(function(){var self=$(this);"destroy"==options?tidy(self,"ifDestroyed"):operate(self,!0,options),$.isFunction(fire)&&fire()});if("object"!=typeof options&&options)return this;var settings=$.extend({checkedClass:_checked,disabledClass:_disabled,indeterminateClass:_indeterminate,labelHover:!0},options),selector=settings.handle,hoverClass=settings.hoverClass||"hover",focusClass=settings.focusClass||"focus",activeClass=settings.activeClass||"active",labelHover=!!settings.labelHover,labelHoverClass=settings.labelHoverClass||"hover",area=0|(""+settings.increaseArea).replace("%","");return selector!=_checkbox&&selector!=_radio||(handle='input[type="'+selector+'"]'),-50>area&&(area=-50),walker(this),stack.each(function(){var self=$(this);tidy(self);var helper,node=this,id=node.id,offset=-area+"%",size=100+2*area+"%",layer={position:"absolute",top:offset,left:offset,display:"block",width:size,height:size,margin:0,padding:0,background:"#fff",border:0,opacity:0},hide=_mobile?{position:"absolute",visibility:"hidden"}:area?layer:{position:"absolute",opacity:0},className=node[_type]==_checkbox?settings.checkboxClass||"i"+_checkbox:settings.radioClass||"i"+_radio,label=$(_label+'[for="'+id+'"]').add(self.closest(_label)),aria=!!settings.aria,ariaID=_iCheck+"-"+Math.random().toString(36).substr(2,6),parent='<div class="'+className+'" '+(aria?'role="'+node[_type]+'" ':"");aria&&label.each(function(){parent+='aria-labelledby="',this.id?parent+=this.id:(this.id=ariaID,parent+=ariaID),parent+='"'}),parent=self.wrap(parent+"/>")[_callback]("ifCreated").parent().append(settings.insert),helper=$('<ins class="'+_iCheckHelper+'"/>').css(layer).appendTo(parent),self.data(_iCheck,{o:settings,s:self.attr("style")}).css(hide),!!settings.inheritClass&&parent[_add](node.className||""),!!settings.inheritID&&id&&parent.attr("id",_iCheck+"-"+id),"static"==parent.css("position")&&parent.css("position","relative"),operate(self,!0,_update),label.length&&label.on(_click+".i mouseover.i mouseout.i "+_touch,function(event){var type=event[_type],item=$(this);if(!node[_disabled]){if(type==_click){if($(event.target).is("a"))return;operate(self,!1,!0)}else labelHover&&(/ut|nd/.test(type)?(parent[_remove](hoverClass),item[_remove](labelHoverClass)):(parent[_add](hoverClass),item[_add](labelHoverClass)));if(!_mobile)return!1;event.stopPropagation()}}),self.on(_click+".i focus.i blur.i keyup.i keydown.i keypress.i",function(event){var type=event[_type],key=event.keyCode;return type==_click?!1:"keydown"==type&&32==key?(node[_type]==_radio&&node[_checked]||(node[_checked]?off(self,_checked):on(self,_checked)),!1):void("keyup"==type&&node[_type]==_radio?!node[_checked]&&on(self,_checked):/us|ur/.test(type)&&parent["blur"==type?_remove:_add](focusClass))}),helper.on(_click+" mousedown mouseup mouseover mouseout "+_touch,function(event){var type=event[_type],toggle=/wn|up/.test(type)?activeClass:hoverClass;if(!node[_disabled]){if(type==_click?operate(self,!1,!0):(/wn|er|in/.test(type)?parent[_add](toggle):parent[_remove](toggle+" "+activeClass),label.length&&labelHover&&toggle==hoverClass&&label[/ut|nd/.test(type)?_remove:_add](labelHoverClass)),!_mobile)return!1;event.stopPropagation()}})})}}(window.jQuery||window.Zepto),yii=function($){function initRedirectHandler(){$(document).ajaxComplete(function(event,xhr,settings){var url=xhr&&xhr.getResponseHeader("X-Redirect");url&&(window.location=url)})}function initCsrfHandler(){$.ajaxPrefilter(function(options,originalOptions,xhr){!options.crossDomain&&pub.getCsrfParam()&&xhr.setRequestHeader("X-CSRF-Token",pub.getCsrfToken())}),pub.refreshCsrfToken()}function initDataMethods(){var handler=function(event){var $this=$(this),method=$this.data("method"),message=$this.data("confirm"),form=$this.data("form");return void 0===method&&void 0===message&&void 0===form?!0:(void 0!==message?$.proxy(pub.confirm,this)(message,function(){pub.handleAction($this,event)}):pub.handleAction($this,event),event.stopImmediatePropagation(),!1)};$(document).on("click.yii",pub.clickableSelector,handler).on("change.yii",pub.changeableSelector,handler)}function initScriptFilter(){var hostInfo=location.protocol+"//"+location.host,loadedScripts=$("script[src]").map(function(){return"/"===this.src.charAt(0)?hostInfo+this.src:this.src}).toArray();$.ajaxPrefilter("script",function(options,originalOptions,xhr){if("jsonp"!=options.dataType){var url="/"===options.url.charAt(0)?hostInfo+options.url:options.url;if(-1===$.inArray(url,loadedScripts))loadedScripts.push(url);else{var isReloadable=-1!==$.inArray(url,$.map(pub.reloadableScripts,function(script){return"/"===script.charAt(0)?hostInfo+script:script}));isReloadable||xhr.abort()}}}),$(document).ajaxComplete(function(event,xhr,settings){var styleSheets=[];$("link[rel=stylesheet]").each(function(){-1===$.inArray(this.href,pub.reloadableScripts)&&(-1==$.inArray(this.href,styleSheets)?styleSheets.push(this.href):$(this).remove())})})}var pub={reloadableScripts:[],clickableSelector:'a, button, input[type="submit"], input[type="button"], input[type="reset"], input[type="image"]',changeableSelector:"select, input, textarea",getCsrfParam:function(){return $("meta[name=csrf-param]").attr("content")},getCsrfToken:function(){return $("meta[name=csrf-token]").attr("content")},setCsrfToken:function(name,value){$("meta[name=csrf-param]").attr("content",name),$("meta[name=csrf-token]").attr("content",value)},refreshCsrfToken:function(){var token=pub.getCsrfToken();token&&$('form input[name="'+pub.getCsrfParam()+'"]').val(token)},confirm:function(message,ok,cancel){confirm(message)?!ok||ok():!cancel||cancel()},handleAction:function($e,event){var pjaxContainer,$form=$e.attr("data-form")?$("#"+$e.attr("data-form")):$e.closest("form"),method=!$e.data("method")&&$form?$form.attr("method"):$e.data("method"),action=$e.attr("href"),params=$e.data("params"),pjax=$e.data("pjax"),pjaxPushState=!!$e.data("pjax-push-state"),pjaxReplaceState=!!$e.data("pjax-replace-state"),pjaxTimeout=$e.data("pjax-timeout"),pjaxScrollTo=$e.data("pjax-scrollto"),pjaxPushRedirect=$e.data("pjax-push-redirect"),pjaxReplaceRedirect=$e.data("pjax-replace-redirect"),pjaxSkipOuterContainers=$e.data("pjax-skip-outer-containers"),pjaxOptions={};if(void 0!==pjax&&$.support.pjax&&(pjaxContainer=$e.data("pjax-container")?$e.data("pjax-container"):$e.closest('[data-pjax-container=""]'),pjaxContainer.length||(pjaxContainer=$("body")),pjaxOptions={container:pjaxContainer,push:pjaxPushState,replace:pjaxReplaceState,scrollTo:pjaxScrollTo,pushRedirect:pjaxPushRedirect,replaceRedirect:pjaxReplaceRedirect,pjaxSkipOuterContainers:pjaxSkipOuterContainers,timeout:pjaxTimeout,originalEvent:event,originalTarget:$e}),void 0===method)return void(action&&"#"!=action?void 0!==pjax&&$.support.pjax?$.pjax.click(event,pjaxOptions):window.location=action:$e.is(":submit")&&$form.length&&(void 0!==pjax&&$.support.pjax&&$form.on("submit",function(e){$.pjax.submit(e,pjaxOptions)}),$form.trigger("submit")));var newForm=!$form.length;if(newForm){action&&action.match(/(^\/|:\/\/)/)||(action=window.location.href),$form=$("<form/>",{method:method,action:action});var target=$e.attr("target");if(target&&$form.attr("target",target),method.match(/(get|post)/i)||($form.append($("<input/>",{name:"_method",value:method,type:"hidden"})),method="POST"),!method.match(/(get|head|options)/i)){var csrfParam=pub.getCsrfParam();csrfParam&&$form.append($("<input/>",{name:csrfParam,value:pub.getCsrfToken(),type:"hidden"}))}$form.hide().appendTo("body")}var activeFormData=$form.data("yiiActiveForm");activeFormData&&(activeFormData.submitObject=$e),params&&$.isPlainObject(params)&&$.each(params,function(idx,obj){$form.append($("<input/>").attr({name:idx,value:obj,type:"hidden"}))});var oldMethod=$form.attr("method");$form.attr("method",method);var oldAction=null;action&&"#"!=action&&(oldAction=$form.attr("action"),$form.attr("action",action)),void 0!==pjax&&$.support.pjax&&$form.on("submit",function(e){$.pjax.submit(e,pjaxOptions)}),$form.trigger("submit"),$.when($form.data("yiiSubmitFinalizePromise")).then(function(){null!=oldAction&&$form.attr("action",oldAction),$form.attr("method",oldMethod),params&&$.isPlainObject(params)&&$.each(params,function(idx,obj){$('input[name="'+idx+'"]',$form).remove()}),newForm&&$form.remove()})},getQueryParams:function(url){var pos=url.indexOf("?");if(0>pos)return{};var pair,i,pairs=url.substring(pos+1).split("#")[0].split("&"),params={};for(i=0;i<pairs.length;i++){pair=pairs[i].split("=");var name=decodeURIComponent(pair[0]),value=decodeURIComponent(pair[1]);name.length&&(void 0!==params[name]?($.isArray(params[name])||(params[name]=[params[name]]),params[name].push(value||"")):params[name]=value||"")}return params},initModule:function(module){(void 0===module.isActive||module.isActive)&&($.isFunction(module.init)&&module.init(),$.each(module,function(){$.isPlainObject(this)&&pub.initModule(this)}))},init:function(){initCsrfHandler(),initRedirectHandler(),initScriptFilter(),initDataMethods()}};return pub}(jQuery),jQuery(document).ready(function(){yii.initModule(yii)}),yii.validation=function($){function getUploadedFiles(attribute,messages,options){if("undefined"==typeof File)return[];var files=$(attribute.input).get(0).files;return files?0===files.length?(options.skipOnEmpty||messages.push(options.uploadRequired),[]):options.maxFiles&&options.maxFiles<files.length?(messages.push(options.tooMany),[]):files:(messages.push(options.message),[])}function validateFile(file,messages,options){if(options.extensions&&options.extensions.length>0){var index,ext;index=file.name.lastIndexOf("."),ext=~index?file.name.substr(index+1,file.name.length).toLowerCase():"",~options.extensions.indexOf(ext)||messages.push(options.wrongExtension.replace(/\{file\}/g,file.name))}options.mimeTypes&&options.mimeTypes.length>0&&(validateMimeType(options.mimeTypes,file.type)||messages.push(options.wrongMimeType.replace(/\{file\}/g,file.name))),options.maxSize&&options.maxSize<file.size&&messages.push(options.tooBig.replace(/\{file\}/g,file.name)),options.minSize&&options.minSize>file.size&&messages.push(options.tooSmall.replace(/\{file\}/g,file.name))}function validateMimeType(mimeTypes,fileType){for(var i=0,len=mimeTypes.length;len>i;i++)if(new RegExp(mimeTypes[i]).test(fileType))return!0;return!1}var pub={isEmpty:function(value){return null===value||void 0===value||value==[]||""===value},addMessage:function(messages,message,value){messages.push(message.replace(/\{value\}/g,value))},required:function(value,messages,options){var valid=!1;if(void 0===options.requiredValue){var isString="string"==typeof value||value instanceof String;(options.strict&&void 0!==value||!options.strict&&!pub.isEmpty(isString?$.trim(value):value))&&(valid=!0)}else(!options.strict&&value==options.requiredValue||options.strict&&value===options.requiredValue)&&(valid=!0);valid||pub.addMessage(messages,options.message,value)},"boolean":function(value,messages,options){if(!options.skipOnEmpty||!pub.isEmpty(value)){var valid=!options.strict&&(value==options.trueValue||value==options.falseValue)||options.strict&&(value===options.trueValue||value===options.falseValue);valid||pub.addMessage(messages,options.message,value)}},string:function(value,messages,options){if(!options.skipOnEmpty||!pub.isEmpty(value)){if("string"!=typeof value)return void pub.addMessage(messages,options.message,value);void 0!==options.min&&value.length<options.min&&pub.addMessage(messages,options.tooShort,value),void 0!==options.max&&value.length>options.max&&pub.addMessage(messages,options.tooLong,value),void 0!==options.is&&value.length!=options.is&&pub.addMessage(messages,options.notEqual,value)}},file:function(attribute,messages,options){var files=getUploadedFiles(attribute,messages,options);$.each(files,function(i,file){validateFile(file,messages,options)})},image:function(attribute,messages,options,deferred){var files=getUploadedFiles(attribute,messages,options);$.each(files,function(i,file){if(validateFile(file,messages,options),"undefined"!=typeof FileReader){var def=$.Deferred(),fr=new FileReader,img=new Image;img.onload=function(){options.minWidth&&this.width<options.minWidth&&messages.push(options.underWidth.replace(/\{file\}/g,file.name)),options.maxWidth&&this.width>options.maxWidth&&messages.push(options.overWidth.replace(/\{file\}/g,file.name)),options.minHeight&&this.height<options.minHeight&&messages.push(options.underHeight.replace(/\{file\}/g,file.name)),options.maxHeight&&this.height>options.maxHeight&&messages.push(options.overHeight.replace(/\{file\}/g,file.name)),def.resolve()},img.onerror=function(){messages.push(options.notImage.replace(/\{file\}/g,file.name)),def.resolve()},fr.onload=function(){img.src=fr.result},fr.onerror=function(){def.resolve()},fr.readAsDataURL(file),deferred.push(def)}})},number:function(value,messages,options){if(!options.skipOnEmpty||!pub.isEmpty(value)){if("string"==typeof value&&!value.match(options.pattern))return void pub.addMessage(messages,options.message,value);void 0!==options.min&&value<options.min&&pub.addMessage(messages,options.tooSmall,value),void 0!==options.max&&value>options.max&&pub.addMessage(messages,options.tooBig,value)}},range:function(value,messages,options){if(!options.skipOnEmpty||!pub.isEmpty(value)){if(!options.allowArray&&$.isArray(value))return void pub.addMessage(messages,options.message,value);var inArray=!0;$.each($.isArray(value)?value:[value],function(i,v){return-1==$.inArray(v,options.range)?(inArray=!1,!1):!0}),options.not===inArray&&pub.addMessage(messages,options.message,value)}},regularExpression:function(value,messages,options){options.skipOnEmpty&&pub.isEmpty(value)||(!options.not&&!value.match(options.pattern)||options.not&&value.match(options.pattern))&&pub.addMessage(messages,options.message,value)},email:function(value,messages,options){if(!options.skipOnEmpty||!pub.isEmpty(value)){var valid=!0,regexp=/^((?:"?([^"]*)"?\s)?)(?:\s+)?(?:(<?)((.+)@([^>]+))(>?))$/,matches=regexp.exec(value);null===matches?valid=!1:(options.enableIDN&&(matches[5]=punycode.toASCII(matches[5]),matches[6]=punycode.toASCII(matches[6]),value=matches[1]+matches[3]+matches[5]+"@"+matches[6]+matches[7]),valid=matches[5].length>64?!1:(matches[5]+"@"+matches[6]).length>254?!1:value.match(options.pattern)||options.allowName&&value.match(options.fullPattern)),valid||pub.addMessage(messages,options.message,value)}},url:function(value,messages,options){if(!options.skipOnEmpty||!pub.isEmpty(value)){options.defaultScheme&&!value.match(/:\/\//)&&(value=options.defaultScheme+"://"+value);var valid=!0;if(options.enableIDN){var regexp=/^([^:]+):\/\/([^\/]+)(.*)$/,matches=regexp.exec(value);null===matches?valid=!1:value=matches[1]+"://"+punycode.toASCII(matches[2])+matches[3]}valid&&value.match(options.pattern)||pub.addMessage(messages,options.message,value)}},trim:function($form,attribute,options){var $input=$form.find(attribute.input),value=$input.val();return options.skipOnEmpty&&pub.isEmpty(value)||(value=$.trim(value),$input.val(value)),value},captcha:function(value,messages,options){if(!options.skipOnEmpty||!pub.isEmpty(value)){var hash=$("body").data(options.hashKey);hash=null==hash?options.hash:hash[options.caseSensitive?0:1];for(var v=options.caseSensitive?value:value.toLowerCase(),i=v.length-1,h=0;i>=0;--i)h+=v.charCodeAt(i);h!=hash&&pub.addMessage(messages,options.message,value)}},compare:function(value,messages,options){if(!options.skipOnEmpty||!pub.isEmpty(value)){var compareValue,valid=!0;switch(compareValue=void 0===options.compareAttribute?options.compareValue:$("#"+options.compareAttribute).val(),"number"===options.type&&(value=parseFloat(value),compareValue=parseFloat(compareValue)),options.operator){case"==":valid=value==compareValue;break;case"===":valid=value===compareValue;break;case"!=":valid=value!=compareValue;break;case"!==":valid=value!==compareValue;break;case">":valid=value>compareValue;break;case">=":valid=value>=compareValue;break;case"<":valid=compareValue>value;break;case"<=":valid=compareValue>=value;break;default:valid=!1}valid||pub.addMessage(messages,options.message,value)}},ip:function(value,messages,options){var getIpVersion=function(value){return-1===value.indexOf(":")?4:6},negation=null,cidr=null;if(!options.skipOnEmpty||!pub.isEmpty(value)){var matches=new RegExp(options.ipParsePattern).exec(value);return matches&&(negation=matches[1]||null,value=matches[2],cidr=matches[4]||null),options.subnet===!0&&null===cidr?void pub.addMessage(messages,options.messages.noSubnet,value):options.subnet===!1&&null!==cidr?void pub.addMessage(messages,options.messages.hasSubnet,value):options.negation===!1&&null!==negation?void pub.addMessage(messages,options.messages.message,value):void(6==getIpVersion(value)?(options.ipv6||pub.addMessage(messages,options.messages.ipv6NotAllowed,value),new RegExp(options.ipv6Pattern).test(value)||pub.addMessage(messages,options.messages.message,value)):(options.ipv4||pub.addMessage(messages,options.messages.ipv4NotAllowed,value),new RegExp(options.ipv4Pattern).test(value)||pub.addMessage(messages,options.messages.message,value)))}}};return pub}(jQuery),function($){$.fn.yiiActiveForm=function(method){return methods[method]?methods[method].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof method&&method?($.error("Method "+method+" does not exist on jQuery.yiiActiveForm"),!1):methods.init.apply(this,arguments)};var submitDefer,events={beforeValidate:"beforeValidate",afterValidate:"afterValidate",beforeValidateAttribute:"beforeValidateAttribute",afterValidateAttribute:"afterValidateAttribute",beforeSubmit:"beforeSubmit",ajaxBeforeSend:"ajaxBeforeSend",ajaxComplete:"ajaxComplete"},defaults={encodeErrorSummary:!0,errorSummary:".error-summary",validateOnSubmit:!0,errorCssClass:"has-error",successCssClass:"has-success",validatingCssClass:"validating",ajaxParam:"ajax",ajaxDataType:"json",validationUrl:void 0,scrollToError:!0},attributeDefaults={id:void 0,name:void 0,container:void 0,input:void 0,error:".help-block",encodeError:!0,validateOnChange:!0,validateOnBlur:!0,validateOnType:!1,validationDelay:500,enableAjaxValidation:!1,validate:void 0,status:0,cancelled:!1,value:void 0},setSubmitFinalizeDefer=function($form){submitDefer=$.Deferred(),$form.data("yiiSubmitFinalizePromise",submitDefer.promise())},submitFinalize=function($form){submitDefer&&(submitDefer.resolve(),submitDefer=void 0,$form.removeData("yiiSubmitFinalizePromise"))},methods={init:function(attributes,options){return this.each(function(){var $form=$(this);if(!$form.data("yiiActiveForm")){var settings=$.extend({},defaults,options||{});void 0===settings.validationUrl&&(settings.validationUrl=$form.attr("action")),$.each(attributes,function(i){attributes[i]=$.extend({value:getValue($form,this)},attributeDefaults,this),watchAttribute($form,attributes[i])}),$form.data("yiiActiveForm",{settings:settings,attributes:attributes,submitting:!1,validated:!1,target:$form.attr("target")}),$form.bind("reset.yiiActiveForm",methods.resetForm),settings.validateOnSubmit&&($form.on("mouseup.yiiActiveForm keyup.yiiActiveForm",":submit",function(){$form.data("yiiActiveForm").submitObject=$(this)}),$form.on("submit.yiiActiveForm",methods.submitForm))}})},add:function(attribute){var $form=$(this);attribute=$.extend({value:getValue($form,attribute)},attributeDefaults,attribute),$form.data("yiiActiveForm").attributes.push(attribute),watchAttribute($form,attribute)},remove:function(id){var $form=$(this),attributes=$form.data("yiiActiveForm").attributes,index=-1,attribute=void 0;return $.each(attributes,function(i){return attributes[i].id==id?(index=i,attribute=attributes[i],!1):void 0}),index>=0&&(attributes.splice(index,1),unwatchAttribute($form,attribute)),attribute},validateAttribute:function(id){var attribute=methods.find.call(this,id);void 0!=attribute&&validateAttribute($(this),attribute,!0)},find:function(id){var attributes=$(this).data("yiiActiveForm").attributes,result=void 0;return $.each(attributes,function(i){return attributes[i].id==id?(result=attributes[i],!1):void 0}),result},destroy:function(){return this.each(function(){$(this).unbind(".yiiActiveForm"),$(this).removeData("yiiActiveForm")})},data:function(){return this.data("yiiActiveForm")},validate:function(){var $form=$(this),data=$form.data("yiiActiveForm"),needAjaxValidation=!1,messages={},deferreds=deferredArray(),submitting=data.submitting;if(submitting){var event=$.Event(events.beforeValidate);if($form.trigger(event,[messages,deferreds]),event.result===!1)return data.submitting=!1,void submitFinalize($form)}$.each(data.attributes,function(){if(!$(this.input).is(":disabled")&&(this.cancelled=!1,data.submitting||2===this.status||3===this.status)){var msg=messages[this.id];void 0===msg&&(msg=[],messages[this.id]=msg);var event=$.Event(events.beforeValidateAttribute);$form.trigger(event,[this,msg,deferreds]),event.result!==!1?(this.validate&&this.validate(this,getValue($form,this),msg,deferreds,$form),this.enableAjaxValidation&&(needAjaxValidation=!0)):this.cancelled=!0}}),$.when.apply(this,deferreds).always(function(){for(var i in messages)0===messages[i].length&&delete messages[i];if($.isEmptyObject(messages)&&needAjaxValidation){var $button=data.submitObject,extData="&"+data.settings.ajaxParam+"="+$form.attr("id");$button&&$button.length&&$button.attr("name")&&(extData+="&"+$button.attr("name")+"="+$button.attr("value")),$.ajax({url:data.settings.validationUrl,type:$form.attr("method"),data:$form.serialize()+extData,dataType:data.settings.ajaxDataType,complete:function(jqXHR,textStatus){$form.trigger(events.ajaxComplete,[jqXHR,textStatus])},beforeSend:function(jqXHR,settings){$form.trigger(events.ajaxBeforeSend,[jqXHR,settings])},success:function(msgs){null!==msgs&&"object"==typeof msgs?($.each(data.attributes,function(){this.enableAjaxValidation&&!this.cancelled||delete msgs[this.id]}),updateInputs($form,$.extend(messages,msgs),submitting)):updateInputs($form,messages,submitting)},error:function(){data.submitting=!1,submitFinalize($form)}})}else data.submitting?setTimeout(function(){updateInputs($form,messages,submitting)},200):updateInputs($form,messages,submitting)})},submitForm:function(){var $form=$(this),data=$form.data("yiiActiveForm");if(data.validated){data.submitting=!1;var event=$.Event(events.beforeSubmit);return $form.trigger(event),event.result===!1?(data.validated=!1,submitFinalize($form),!1):(updateHiddenButton($form),!0)}return setSubmitFinalizeDefer($form),void 0!==data.settings.timer&&clearTimeout(data.settings.timer),data.submitting=!0,methods.validate.call($form),!1},resetForm:function(){var $form=$(this),data=$form.data("yiiActiveForm");setTimeout(function(){$.each(data.attributes,function(){this.value=getValue($form,this),this.status=0;var $container=$form.find(this.container);$container.removeClass(data.settings.validatingCssClass+" "+data.settings.errorCssClass+" "+data.settings.successCssClass),$container.find(this.error).html("")}),$form.find(data.settings.errorSummary).hide().find("ul").html("")},1)},updateMessages:function(messages,summary){var $form=$(this),data=$form.data("yiiActiveForm");$.each(data.attributes,function(){updateInput($form,this,messages)}),summary&&updateSummary($form,messages)},updateAttribute:function(id,messages){var attribute=methods.find.call(this,id);if(void 0!=attribute){var msg={};msg[id]=messages,updateInput($(this),attribute,msg)}}},watchAttribute=function($form,attribute){var $input=findInput($form,attribute);attribute.validateOnChange&&$input.on("change.yiiActiveForm",function(){validateAttribute($form,attribute,!1)}),attribute.validateOnBlur&&$input.on("blur.yiiActiveForm",function(){0!=attribute.status&&1!=attribute.status||validateAttribute($form,attribute,!0)}),attribute.validateOnType&&$input.on("keyup.yiiActiveForm",function(e){-1===$.inArray(e.which,[16,17,18,37,38,39,40])&&attribute.value!==getValue($form,attribute)&&validateAttribute($form,attribute,!1,attribute.validationDelay)})},unwatchAttribute=function($form,attribute){findInput($form,attribute).off(".yiiActiveForm")},validateAttribute=function($form,attribute,forceValidate,validationDelay){var data=$form.data("yiiActiveForm");forceValidate&&(attribute.status=2),$.each(data.attributes,function(){this.value!==getValue($form,this)&&(this.status=2,forceValidate=!0)}),forceValidate&&(void 0!==data.settings.timer&&clearTimeout(data.settings.timer),data.settings.timer=setTimeout(function(){data.submitting||$form.is(":hidden")||($.each(data.attributes,function(){2===this.status&&(this.status=3,$form.find(this.container).addClass(data.settings.validatingCssClass))}),methods.validate.call($form))},validationDelay?validationDelay:200))},deferredArray=function(){var array=[];return array.add=function(callback){this.push(new $.Deferred(callback))},array},updateInputs=function($form,messages,submitting){var data=$form.data("yiiActiveForm");if(submitting){var errorAttributes=[];if($.each(data.attributes,function(){$(this.input).is(":disabled")||this.cancelled||!updateInput($form,this,messages)||errorAttributes.push(this)}),$form.trigger(events.afterValidate,[messages,errorAttributes]),updateSummary($form,messages),errorAttributes.length){if(data.settings.scrollToError){var top=$form.find($.map(errorAttributes,function(attribute){return attribute.input}).join(",")).first().closest(":visible").offset().top,wtop=$(window).scrollTop();(wtop>top||top>wtop+$(window).height())&&$(window).scrollTop(top)}data.submitting=!1}else{data.validated=!0;var buttonTarget=data.submitObject?data.submitObject.attr("formtarget"):null;buttonTarget&&$form.attr("target",buttonTarget),$form.submit(),$form.attr("target",data.target)}}else $.each(data.attributes,function(){this.cancelled||2!==this.status&&3!==this.status||updateInput($form,this,messages)});submitFinalize($form)},updateHiddenButton=function($form){var data=$form.data("yiiActiveForm"),$button=data.submitObject||$form.find(":submit:first");if($button.length&&"submit"==$button.attr("type")&&$button.attr("name")){var $hiddenButton=$('input[type="hidden"][name="'+$button.attr("name")+'"]',$form);$hiddenButton.length?$hiddenButton.attr("value",$button.attr("value")):$("<input>").attr({type:"hidden",name:$button.attr("name"),value:$button.attr("value")}).appendTo($form)}},updateInput=function($form,attribute,messages){var data=$form.data("yiiActiveForm"),$input=findInput($form,attribute),hasError=!1;if($.isArray(messages[attribute.id])||(messages[attribute.id]=[]),$form.trigger(events.afterValidateAttribute,[attribute,messages[attribute.id]]),attribute.status=1,$input.length){hasError=messages[attribute.id].length>0;var $container=$form.find(attribute.container),$error=$container.find(attribute.error);hasError?(attribute.encodeError?$error.text(messages[attribute.id][0]):$error.html(messages[attribute.id][0]),$container.removeClass(data.settings.validatingCssClass+" "+data.settings.successCssClass).addClass(data.settings.errorCssClass)):($error.empty(),$container.removeClass(data.settings.validatingCssClass+" "+data.settings.errorCssClass+" ").addClass(data.settings.successCssClass)),attribute.value=getValue($form,attribute)}return hasError},updateSummary=function($form,messages){var data=$form.data("yiiActiveForm"),$summary=$form.find(data.settings.errorSummary),$ul=$summary.find("ul").empty();$summary.length&&messages&&($.each(data.attributes,function(){if($.isArray(messages[this.id])&&messages[this.id].length){var error=$("<li/>");data.settings.encodeErrorSummary?error.text(messages[this.id][0]):error.html(messages[this.id][0]),$ul.append(error)}}),$summary.toggle($ul.find("li").length>0))},getValue=function($form,attribute){var $input=findInput($form,attribute),type=$input.attr("type");if("checkbox"===type||"radio"===type){var $realInput=$input.filter(":checked");return $realInput.length||($realInput=$form.find('input[type=hidden][name="'+$input.attr("name")+'"]')),$realInput.val()}return $input.val()},findInput=function($form,attribute){
  var $input=$form.find(attribute.input);return $input.length&&"div"===$input[0].tagName.toLowerCase()?$input.find("input"):$input}}(window.jQuery),function($){$.fn.yiiCaptcha=function(method){return methods[method]?methods[method].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof method&&method?($.error("Method "+method+" does not exist on jQuery.yiiCaptcha"),!1):methods.init.apply(this,arguments)};var defaults={refreshUrl:void 0,hashKey:void 0},methods={init:function(options){return this.each(function(){var $e=$(this),settings=$.extend({},defaults,options||{});$e.data("yiiCaptcha",{settings:settings}),$e.on("click.yiiCaptcha",function(){return methods.refresh.apply($e),!1})})},refresh:function(){var $e=this,settings=this.data("yiiCaptcha").settings;$.ajax({url:$e.data("yiiCaptcha").settings.refreshUrl,dataType:"json",cache:!1,success:function(data){$e.attr("src",data.url),$("body").data(settings.hashKey,[data.hash1,data.hash2])}})},destroy:function(){return this.each(function(){$(window).unbind(".yiiCaptcha"),$(this).removeData("yiiCaptcha")})},data:function(){return this.data("yiiCaptcha")}}}(window.jQuery),function($){$.fn.yiiGridView=function(method){return methods[method]?methods[method].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof method&&method?($.error("Method "+method+" does not exist on jQuery.yiiGridView"),!1):methods.init.apply(this,arguments)};var defaults={filterUrl:void 0,filterSelector:void 0},gridData={},gridEvents={beforeFilter:"beforeFilter",afterFilter:"afterFilter"},methods={init:function(options){return this.each(function(){var $e=$(this),settings=$.extend({},defaults,options||{}),id=$e.attr("id");void 0===gridData[id]&&(gridData[id]={}),gridData[id]=$.extend(gridData[id],{settings:settings});var enterPressed=!1;$(document).off("change.yiiGridView keydown.yiiGridView",settings.filterSelector).on("change.yiiGridView keydown.yiiGridView",settings.filterSelector,function(event){if("keydown"===event.type){if(13!==event.keyCode)return;enterPressed=!0}else if(enterPressed)return void(enterPressed=!1);return methods.applyFilter.apply($e),!1})})},applyFilter:function(){var event,$grid=$(this),settings=gridData[$grid.attr("id")].settings,data={};$.each($(settings.filterSelector).serializeArray(),function(){this.name in data||(data[this.name]=[]),data[this.name].push(this.value)});var namesInFilter=Object.keys(data);$.each(yii.getQueryParams(settings.filterUrl),function(name,value){-1===namesInFilter.indexOf(name)&&-1===namesInFilter.indexOf(name.replace(/\[\]$/,""))&&($.isArray(value)||(value=[value]),name in data?$.each(value,function(i,val){$.inArray(val,data[name])&&data[name].push(val)}):data[name]=value)});var pos=settings.filterUrl.indexOf("?"),url=0>pos?settings.filterUrl:settings.filterUrl.substring(0,pos);$grid.find("form.gridview-filter-form").remove();var $form=$("<form/>",{action:url,method:"get","class":"gridview-filter-form",style:"display:none","data-pjax":""}).appendTo($grid);$.each(data,function(name,values){$.each(values,function(index,value){$form.append($("<input/>").attr({type:"hidden",name:name,value:value}))})}),event=$.Event(gridEvents.beforeFilter),$grid.trigger(event),event.result!==!1&&($form.submit(),$grid.trigger(gridEvents.afterFilter))},setSelectionColumn:function(options){var $grid=$(this),id=$(this).attr("id");if(void 0===gridData.id&&(gridData[id]={}),gridData[id].selectionColumn=options.name,options.multiple&&options.checkAll){var checkAll="#"+id+" input[name='"+options.checkAll+"']",inputs="#"+id+" input[name='"+options.name+"']";$(document).off("click.yiiGridView",checkAll).on("click.yiiGridView",checkAll,function(){$grid.find("input[name='"+options.name+"']:enabled").prop("checked",this.checked)}),$(document).off("click.yiiGridView",inputs+":enabled").on("click.yiiGridView",inputs+":enabled",function(){var all=$grid.find("input[name='"+options.name+"']").length==$grid.find("input[name='"+options.name+"']:checked").length;$grid.find("input[name='"+options.checkAll+"']").prop("checked",all)})}},getSelectedRows:function(){var $grid=$(this),data=gridData[$grid.attr("id")],keys=[];return data.selectionColumn&&$grid.find("input[name='"+data.selectionColumn+"']:checked").each(function(){keys.push($(this).parent().closest("tr").data("key"))}),keys},destroy:function(){return this.each(function(){$(window).unbind(".yiiGridView"),$(this).removeData("yiiGridView")})},data:function(){var id=$(this).attr("id");return gridData[id]}}}(window.jQuery),function($,window,document,undefined){function Plugin(element,options){var _this=this;return this.element=$(element),this.items={},this.settings=$.extend({},defaults,options),this.requests={},this._defaults=defaults,this._name=pluginName,this.init(),{startQuerier:function(){return _this.startQuerier()}}}var pluginName="domainsCheck",defaults={domainRowClass:".check-item","finally":function(){console.log("Done!")},beforeQueryStart:function(item){return!0}};Plugin.prototype={init:function(){this.items=this.element.find(this.settings.domainRowClass),setTimeout(function(){this.startQuerier()}.bind(this),500)},startQuerier:function(){var _this=this;this.items&&$.each(this.items,function(k,item){_this.settings.beforeQueryStart(item)&&this.query(item)}.bind(this))},registerRequest:function(domain,item){this.requests[domain]={domain:domain,state:"progress",item:item}},registerFinish:function(domain){return this.requests[domain].state="finished",this.registerCheckAll()?this.settings["finally"]():!1},registerCheckAll:function(){if(0==this.requests.length)return!1;var all_closed=!0;return $.each(this.requests,function(domain,v){"progress"==v.state&&(all_closed=!1)}),all_closed},query:function(item){var domain=$(item).data("domain");return domain?($.ajax({url:"check",dataType:"html",type:"POST",beforeSend:function(){this.registerRequest(domain)}.bind(this),data:{domain:domain},success:function(data){return this.registerFinish(domain),this.settings.success(data,domain,this.element)}.bind(this)}),this):!1}},$.fn[pluginName]=function(options){return $(this).data("plugin_"+pluginName)||$(this).data("plugin_"+pluginName,new Plugin(this,options)),$(this).data("plugin_"+pluginName)}}(jQuery,window,document),function($,window,document,undefined){function Plugin(element,options){this.element=$(element),this.items={},this.oslist=undefined,this.softlist=undefined,this.osparams=options.osparams,this.settings=$.extend({},defaults,options),this._defaults=defaults,this._name=pluginName,this.init()}var pluginName="osSelector",defaults={panelInput:".reinstall-panel",osimageInput:".reinstall-osimage"};Plugin.prototype={init:function(){this.oslist=this.element.find(".os-list"),this.softlist=this.element.find(".soft-list"),this.bindListeners(),this.afterInit(),this.enableInfoPopover()},bindListeners:function(){var _this=this;this.softlist.find("input").on("change",function(){var soft=$(this).val(),panel=$(this).data("panel"),os=_this.oslist.find("input.radio:checked").first().val();$(_this.settings.osimageInput).val(_this.osparams[os].panel[panel].softpack[soft].osimage),"no"!=panel?($(_this.settings.panelInput).removeAttr("disabled"),$(_this.settings.panelInput).val(panel)):$(_this.settings.panelInput).attr("disabled","disabled")}),$(this.oslist).on("change",function(){_this.update()})},update:function(){var _this=this;this.oslist.find(".radio:enabled:checked").length<1&&this.oslist.find(".radio:enabled").first().prop("checked",!0),this.oslist.find(".radio:enabled").each(function(){if($(this).prop("checked")){_this.softlist.find("input").attr("disabled","disabled"),_this.softlist.find("input").closest("label").addClass("disabled"),_this.softlist.find(".softinfo-bttn").hide();var osName=$(this).val();for(var key in _this.osparams)if(osName==key)for(var panel in _this.osparams[key].panel)for(var soft in _this.osparams[key].panel[panel].softpack){var selectable=_this.osparams[key].panel[panel].softpack[soft],$inputs=_this.softlist.filter('[data-panel="'+panel+'"]');if(selectable){var $selectable_inputs=$inputs.find('input[value="'+soft+'"]'),soft_desc=selectable.html_desc;$selectable_inputs.removeAttr("disabled"),$selectable_inputs.closest("label").removeClass("disabled"),soft_desc&&($selectable_inputs.closest("label").find(".soft-desc").html(soft_desc),$selectable_inputs.closest("label").find(".softinfo-bttn").show())}}0==_this.softlist.find("input:enabled:checked").length&&_this.softlist.find("input:enabled").first().attr("checked","checked"),_this.softlist.find("input:checked").trigger("change").trigger("click")}})},afterInit:function(){this.oslist.find("input:enabled").first().attr("checked","checked").trigger("change")},enableInfoPopover:function(){var counter;$(".softinfo-bttn").popover({trigger:"manual",html:!0,title:function(){return $(this).parent().find(".panel_soft").val()},content:function(){return $(this).parent().find(".soft-desc").html()},container:"body",placement:"auto"}).on("mouseenter",function(){var _this=this;clearTimeout(counter),$(".softinfo-bttn").not(_this).popover("hide"),counter=setTimeout(function(){$(_this).is(":hover")&&$(_this).popover("show"),$(".popover").on("mouseleave",function(){$(".thumbcontainer").popover("hide")})},400)}).on("mouseleave",function(){var _this=this;setTimeout(function(){$(".popover:hover").length||$(_this).is(":hover")||$(_this).popover("hide")},200)}).on("click",function(event){event.preventDefault()})}},$.fn[pluginName]=function(options){return this.each(function(){$.data(this,"plugin_"+pluginName)||$.data(this,"plugin_"+pluginName,new Plugin(this,options))}),this}}(jQuery,window,document),function(factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory(require("jquery")):"function"==typeof define&&define.amd?define("pnotify",["jquery"],factory):factory(jQuery)}(function($){var posTimer,body,default_stack={dir1:"down",dir2:"left",push:"bottom",spacing1:25,spacing2:25,context:$("body")},jwindow=$(window),do_when_ready=function(){body=$("body"),PNotify.prototype.options.stack.context=body,jwindow=$(window),jwindow.bind("resize",function(){posTimer&&clearTimeout(posTimer),posTimer=setTimeout(function(){PNotify.positionAll(!0)},10)})};return PNotify=function(options){this.parseOptions(options),this.init()},$.extend(PNotify.prototype,{version:"2.1.0",options:{title:!1,title_escape:!1,text:!1,text_escape:!1,styling:"brighttheme",addclass:"",cornerclass:"",auto_display:!0,width:"300px",min_height:"16px",type:"notice",icon:!0,opacity:1,animation:"fade",animate_speed:"slow",position_animate_speed:500,shadow:!0,hide:!0,delay:8e3,mouse_reset:!0,remove:!0,insert_brs:!0,destroy:!0,stack:default_stack},modules:{},runModules:function(event,arg){var curArg;for(var module in this.modules)curArg="object"==typeof arg&&module in arg?arg[module]:arg,"function"==typeof this.modules[module][event]&&this.modules[module][event](this,"object"==typeof this.options[module]?this.options[module]:{},curArg)},state:"initializing",timer:null,styles:null,elem:null,container:null,title_container:null,text_container:null,animating:!1,timerHide:!1,init:function(){var that=this;return this.modules={},$.extend(!0,this.modules,PNotify.prototype.modules),"object"==typeof this.options.styling?this.styles=this.options.styling:this.styles=PNotify.styling[this.options.styling],this.elem=$("<div />",{"class":"ui-pnotify "+this.options.addclass,css:{display:"none"},"aria-live":"assertive",mouseenter:function(e){if(that.options.mouse_reset&&"out"===that.animating){if(!that.timerHide)return;that.cancelRemove()}that.options.hide&&that.options.mouse_reset&&that.cancelRemove()},mouseleave:function(e){that.options.hide&&that.options.mouse_reset&&"out"!==that.animating&&that.queueRemove(),PNotify.positionAll()}}),this.container=$("<div />",{"class":this.styles.container+" ui-pnotify-container "+("error"===this.options.type?this.styles.error:"info"===this.options.type?this.styles.info:"success"===this.options.type?this.styles.success:this.styles.notice),role:"alert"}).appendTo(this.elem),""!==this.options.cornerclass&&this.container.removeClass("ui-corner-all").addClass(this.options.cornerclass),this.options.shadow&&this.container.addClass("ui-pnotify-shadow"),this.options.icon!==!1&&$("<div />",{"class":"ui-pnotify-icon"}).append($("<span />",{"class":this.options.icon===!0?"error"===this.options.type?this.styles.error_icon:"info"===this.options.type?this.styles.info_icon:"success"===this.options.type?this.styles.success_icon:this.styles.notice_icon:this.options.icon})).prependTo(this.container),this.title_container=$("<h4 />",{"class":"ui-pnotify-title"}).appendTo(this.container),this.options.title===!1?this.title_container.hide():this.options.title_escape?this.title_container.text(this.options.title):this.title_container.html(this.options.title),this.text_container=$("<div />",{"class":"ui-pnotify-text"}).appendTo(this.container),this.options.text===!1?this.text_container.hide():this.options.text_escape?this.text_container.text(this.options.text):this.text_container.html(this.options.insert_brs?String(this.options.text).replace(/\n/g,"<br />"):this.options.text),"string"==typeof this.options.width&&this.elem.css("width",this.options.width),"string"==typeof this.options.min_height&&this.container.css("min-height",this.options.min_height),"top"===this.options.stack.push?PNotify.notices=$.merge([this],PNotify.notices):PNotify.notices=$.merge(PNotify.notices,[this]),"top"===this.options.stack.push&&this.queuePosition(!1,1),this.options.stack.animation=!1,this.runModules("init"),this.options.auto_display&&this.open(),this},update:function(options){var oldOpts=this.options;return this.parseOptions(oldOpts,options),this.options.cornerclass!==oldOpts.cornerclass&&this.container.removeClass("ui-corner-all "+oldOpts.cornerclass).addClass(this.options.cornerclass),this.options.shadow!==oldOpts.shadow&&(this.options.shadow?this.container.addClass("ui-pnotify-shadow"):this.container.removeClass("ui-pnotify-shadow")),this.options.addclass===!1?this.elem.removeClass(oldOpts.addclass):this.options.addclass!==oldOpts.addclass&&this.elem.removeClass(oldOpts.addclass).addClass(this.options.addclass),this.options.title===!1?this.title_container.slideUp("fast"):this.options.title!==oldOpts.title&&(this.options.title_escape?this.title_container.text(this.options.title):this.title_container.html(this.options.title),oldOpts.title===!1&&this.title_container.slideDown(200)),this.options.text===!1?this.text_container.slideUp("fast"):this.options.text!==oldOpts.text&&(this.options.text_escape?this.text_container.text(this.options.text):this.text_container.html(this.options.insert_brs?String(this.options.text).replace(/\n/g,"<br />"):this.options.text),oldOpts.text===!1&&this.text_container.slideDown(200)),this.options.type!==oldOpts.type&&this.container.removeClass(this.styles.error+" "+this.styles.notice+" "+this.styles.success+" "+this.styles.info).addClass("error"===this.options.type?this.styles.error:"info"===this.options.type?this.styles.info:"success"===this.options.type?this.styles.success:this.styles.notice),(this.options.icon!==oldOpts.icon||this.options.icon===!0&&this.options.type!==oldOpts.type)&&(this.container.find("div.ui-pnotify-icon").remove(),this.options.icon!==!1&&$("<div />",{"class":"ui-pnotify-icon"}).append($("<span />",{"class":this.options.icon===!0?"error"===this.options.type?this.styles.error_icon:"info"===this.options.type?this.styles.info_icon:"success"===this.options.type?this.styles.success_icon:this.styles.notice_icon:this.options.icon})).prependTo(this.container)),this.options.width!==oldOpts.width&&this.elem.animate({width:this.options.width}),this.options.min_height!==oldOpts.min_height&&this.container.animate({minHeight:this.options.min_height}),this.options.opacity!==oldOpts.opacity&&this.elem.fadeTo(this.options.animate_speed,this.options.opacity),this.options.hide?oldOpts.hide||this.queueRemove():this.cancelRemove(),this.queuePosition(!0),this.runModules("update",oldOpts),this},open:function(){this.state="opening",this.runModules("beforeOpen");var that=this;return this.elem.parent().length||this.elem.appendTo(this.options.stack.context?this.options.stack.context:body),"top"!==this.options.stack.push&&this.position(!0),"fade"===this.options.animation||"fade"===this.options.animation.effect_in?this.elem.show().fadeTo(0,0).hide():1!==this.options.opacity&&this.elem.show().fadeTo(0,this.options.opacity).hide(),this.animateIn(function(){that.queuePosition(!0),that.options.hide&&that.queueRemove(),that.state="open",that.runModules("afterOpen")}),this},remove:function(timer_hide){this.state="closing",this.timerHide=!!timer_hide,this.runModules("beforeClose");var that=this;return this.timer&&(window.clearTimeout(this.timer),this.timer=null),this.animateOut(function(){if(that.state="closed",that.runModules("afterClose"),that.queuePosition(!0),that.options.remove&&that.elem.detach(),that.runModules("beforeDestroy"),that.options.destroy&&null!==PNotify.notices){var idx=$.inArray(that,PNotify.notices);-1!==idx&&PNotify.notices.splice(idx,1)}that.runModules("afterDestroy")}),this},get:function(){return this.elem},parseOptions:function(options,moreOptions){this.options=$.extend(!0,{},PNotify.prototype.options),this.options.stack=PNotify.prototype.options.stack;for(var curOpts,optArray=[options,moreOptions],curIndex=0;curIndex<optArray.length&&(curOpts=optArray[curIndex],"undefined"!=typeof curOpts);curIndex++)if("object"!=typeof curOpts)this.options.text=curOpts;else for(var option in curOpts)this.modules[option]?$.extend(!0,this.options[option],curOpts[option]):this.options[option]=curOpts[option]},animateIn:function(callback){this.animating="in";var animation;animation="undefined"!=typeof this.options.animation.effect_in?this.options.animation.effect_in:this.options.animation,"none"===animation?(this.elem.show(),callback()):"show"===animation?this.elem.show(this.options.animate_speed,callback):"fade"===animation?this.elem.show().fadeTo(this.options.animate_speed,this.options.opacity,callback):"slide"===animation?this.elem.slideDown(this.options.animate_speed,callback):"function"==typeof animation?animation("in",callback,this.elem):this.elem.show(animation,"object"==typeof this.options.animation.options_in?this.options.animation.options_in:{},this.options.animate_speed,callback),this.elem.parent().hasClass("ui-effects-wrapper")&&this.elem.parent().css({position:"fixed",overflow:"visible"}),"slide"!==animation&&this.elem.css("overflow","visible"),this.container.css("overflow","hidden")},animateOut:function(callback){this.animating="out";var animation;animation="undefined"!=typeof this.options.animation.effect_out?this.options.animation.effect_out:this.options.animation,"none"===animation?(this.elem.hide(),callback()):"show"===animation?this.elem.hide(this.options.animate_speed,callback):"fade"===animation?this.elem.fadeOut(this.options.animate_speed,callback):"slide"===animation?this.elem.slideUp(this.options.animate_speed,callback):"function"==typeof animation?animation("out",callback,this.elem):this.elem.hide(animation,"object"==typeof this.options.animation.options_out?this.options.animation.options_out:{},this.options.animate_speed,callback),this.elem.parent().hasClass("ui-effects-wrapper")&&this.elem.parent().css({position:"fixed",overflow:"visible"}),"slide"!==animation&&this.elem.css("overflow","visible"),this.container.css("overflow","hidden")},position:function(dontSkipHidden){var s=this.options.stack,e=this.elem;if(e.parent().hasClass("ui-effects-wrapper")&&(e=this.elem.css({left:"0",top:"0",right:"0",bottom:"0"}).parent()),"undefined"==typeof s.context&&(s.context=body),s){"number"!=typeof s.nextpos1&&(s.nextpos1=s.firstpos1),"number"!=typeof s.nextpos2&&(s.nextpos2=s.firstpos2),"number"!=typeof s.addpos2&&(s.addpos2=0);var hidden="none"===e.css("display");if(!hidden||dontSkipHidden){var curpos1,curpos2,csspos1,animate={};switch(s.dir1){case"down":csspos1="top";break;case"up":csspos1="bottom";break;case"left":csspos1="right";break;case"right":csspos1="left"}curpos1=parseInt(e.css(csspos1).replace(/(?:\..*|[^0-9.])/g,"")),isNaN(curpos1)&&(curpos1=0),"undefined"!=typeof s.firstpos1||hidden||(s.firstpos1=curpos1,s.nextpos1=s.firstpos1);var csspos2;switch(s.dir2){case"down":csspos2="top";break;case"up":csspos2="bottom";break;case"left":csspos2="right";break;case"right":csspos2="left"}if(curpos2=parseInt(e.css(csspos2).replace(/(?:\..*|[^0-9.])/g,"")),isNaN(curpos2)&&(curpos2=0),"undefined"!=typeof s.firstpos2||hidden||(s.firstpos2=curpos2,s.nextpos2=s.firstpos2),("down"===s.dir1&&s.nextpos1+e.height()>(s.context.is(body)?jwindow.height():s.context.prop("scrollHeight"))||"up"===s.dir1&&s.nextpos1+e.height()>(s.context.is(body)?jwindow.height():s.context.prop("scrollHeight"))||"left"===s.dir1&&s.nextpos1+e.width()>(s.context.is(body)?jwindow.width():s.context.prop("scrollWidth"))||"right"===s.dir1&&s.nextpos1+e.width()>(s.context.is(body)?jwindow.width():s.context.prop("scrollWidth")))&&(s.nextpos1=s.firstpos1,s.nextpos2+=s.addpos2+("undefined"==typeof s.spacing2?25:s.spacing2),s.addpos2=0),s.animation&&s.nextpos2<curpos2)switch(s.dir2){case"down":animate.top=s.nextpos2+"px";break;case"up":animate.bottom=s.nextpos2+"px";break;case"left":animate.right=s.nextpos2+"px";break;case"right":animate.left=s.nextpos2+"px"}else"number"==typeof s.nextpos2&&e.css(csspos2,s.nextpos2+"px");switch(s.dir2){case"down":case"up":e.outerHeight(!0)>s.addpos2&&(s.addpos2=e.height());break;case"left":case"right":e.outerWidth(!0)>s.addpos2&&(s.addpos2=e.width())}if("number"==typeof s.nextpos1)if(s.animation&&(curpos1>s.nextpos1||animate.top||animate.bottom||animate.right||animate.left))switch(s.dir1){case"down":animate.top=s.nextpos1+"px";break;case"up":animate.bottom=s.nextpos1+"px";break;case"left":animate.right=s.nextpos1+"px";break;case"right":animate.left=s.nextpos1+"px"}else e.css(csspos1,s.nextpos1+"px");switch((animate.top||animate.bottom||animate.right||animate.left)&&e.animate(animate,{duration:this.options.position_animate_speed,queue:!1}),s.dir1){case"down":case"up":s.nextpos1+=e.height()+("undefined"==typeof s.spacing1?25:s.spacing1);break;case"left":case"right":s.nextpos1+=e.width()+("undefined"==typeof s.spacing1?25:s.spacing1)}}return this}},queuePosition:function(animate,milliseconds){return posTimer&&clearTimeout(posTimer),milliseconds||(milliseconds=10),posTimer=setTimeout(function(){PNotify.positionAll(animate)},milliseconds),this},cancelRemove:function(){return this.timer&&window.clearTimeout(this.timer),"closing"===this.state&&(this.elem.stop(!0),this.state="open",this.animating="in",this.elem.css("height","auto").animate({width:this.options.width,opacity:this.options.opacity},"fast")),this},queueRemove:function(){var that=this;return this.cancelRemove(),this.timer=window.setTimeout(function(){that.remove(!0)},isNaN(this.options.delay)?0:this.options.delay),this}}),$.extend(PNotify,{notices:[],removeAll:function(){$.each(PNotify.notices,function(){this.remove&&this.remove(!1)})},positionAll:function(animate){if(posTimer&&clearTimeout(posTimer),posTimer=null,PNotify.notices&&PNotify.notices.length)$.each(PNotify.notices,function(){var s=this.options.stack;s&&(s.nextpos1=s.firstpos1,s.nextpos2=s.firstpos2,s.addpos2=0,s.animation=animate)}),$.each(PNotify.notices,function(){this.position()});else{var s=PNotify.prototype.options.stack;s&&(delete s.nextpos1,delete s.nextpos2)}},styling:{brighttheme:{container:"brighttheme",notice:"brighttheme-notice",notice_icon:"brighttheme-icon-notice",info:"brighttheme-info",info_icon:"brighttheme-icon-info",success:"brighttheme-success",success_icon:"brighttheme-icon-success",error:"brighttheme-error",error_icon:"brighttheme-icon-error"},jqueryui:{container:"ui-widget ui-widget-content ui-corner-all",notice:"ui-state-highlight",notice_icon:"ui-icon ui-icon-info",info:"",info_icon:"ui-icon ui-icon-info",success:"ui-state-default",success_icon:"ui-icon ui-icon-circle-check",error:"ui-state-error",error_icon:"ui-icon ui-icon-alert"},bootstrap2:{container:"alert",notice:"",notice_icon:"icon-exclamation-sign",info:"alert-info",info_icon:"icon-info-sign",success:"alert-success",success_icon:"icon-ok-sign",error:"alert-error",error_icon:"icon-warning-sign"},bootstrap3:{container:"alert",notice:"alert-warning",notice_icon:"glyphicon glyphicon-exclamation-sign",info:"alert-info",info_icon:"glyphicon glyphicon-info-sign",success:"alert-success",success_icon:"glyphicon glyphicon-ok-sign",error:"alert-danger",error_icon:"glyphicon glyphicon-warning-sign"}}}),PNotify.styling.fontawesome=$.extend({},PNotify.styling.bootstrap3),$.extend(PNotify.styling.fontawesome,{notice_icon:"fa fa-exclamation-circle",info_icon:"fa fa-info",success_icon:"fa fa-check",error_icon:"fa fa-warning"}),document.body?do_when_ready():$(do_when_ready),PNotify}),!function(a){"use strict";function b(b,c){this.element=a(b),this.settings=a.extend({},d,c),this._defaults=d,this._init()}var c="Morphext",d={animation:"bounceIn",separator:",",speed:2e3,complete:a.noop};b.prototype={_init:function(){var b=this;this.phrases=[],this.element.addClass("morphext"),a.each(this.element.text().split(this.settings.separator),function(c,d){b.phrases.push(a.trim(d))}),this.index=-1,this.animate(),this.start()},animate:function(){this.index=++this.index%this.phrases.length,this.element[0].innerHTML='<span class="animated '+this.settings.animation+'">'+this.phrases[this.index]+"</span>",a.isFunction(this.settings.complete)&&this.settings.complete.call(this)},start:function(){var a=this;this._interval=setInterval(function(){a.animate()},this.settings.speed)},stop:function(){this._interval=clearInterval(this._interval)}},a.fn[c]=function(d){return this.each(function(){a.data(this,"plugin_"+c)||a.data(this,"plugin_"+c,new b(this,d))})}}(jQuery),function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):jQuery&&!jQuery.fn.hoverIntent&&factory(jQuery)}(function($){"use strict";var cX,cY,_cfg={interval:100,sensitivity:6,timeout:0},INSTANCE_COUNT=0,track=function(ev){cX=ev.pageX,cY=ev.pageY},compare=function(ev,$el,s,cfg){return Math.sqrt((s.pX-cX)*(s.pX-cX)+(s.pY-cY)*(s.pY-cY))<cfg.sensitivity?($el.off(s.event,track),delete s.timeoutId,s.isActive=!0,ev.pageX=cX,ev.pageY=cY,delete s.pX,delete s.pY,cfg.over.apply($el[0],[ev])):(s.pX=cX,s.pY=cY,s.timeoutId=setTimeout(function(){compare(ev,$el,s,cfg)},cfg.interval),void 0)},delay=function(ev,$el,s,out){return delete $el.data("hoverIntent")[s.id],out.apply($el[0],[ev])};$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var instanceId=INSTANCE_COUNT++,cfg=$.extend({},_cfg);$.isPlainObject(handlerIn)?(cfg=$.extend(cfg,handlerIn),$.isFunction(cfg.out)||(cfg.out=cfg.over)):cfg=$.isFunction(handlerOut)?$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector}):$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut});var handleHover=function(e){var ev=$.extend({},e),$el=$(this),hoverIntentData=$el.data("hoverIntent");hoverIntentData||$el.data("hoverIntent",hoverIntentData={});var state=hoverIntentData[instanceId];state||(hoverIntentData[instanceId]=state={id:instanceId}),state.timeoutId&&(state.timeoutId=clearTimeout(state.timeoutId));var mousemove=state.event="mousemove.hoverIntent.hoverIntent"+instanceId;if("mouseenter"===e.type){if(state.isActive)return;state.pX=ev.pageX,state.pY=ev.pageY,$el.off(mousemove,track).on(mousemove,track),state.timeoutId=setTimeout(function(){compare(ev,$el,state,cfg)},cfg.interval)}else{if(!state.isActive)return;$el.off(mousemove,track),state.timeoutId=setTimeout(function(){delay(ev,$el,state,cfg.out)},cfg.timeout)}};return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}}),function(e,s){"use strict";var o=function(){var o={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},n=function(){var s=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return s&&e("html").css("cursor","pointer").on("click",e.noop),s}(),t=function(){var e=document.documentElement.style;return"behavior"in e&&"fill"in e&&/iemobile/i.test(navigator.userAgent)}(),i=function(){return!!s.PointerEvent}(),r=function(e,s){var n=o.menuClass;s.cssArrows&&(n+=" "+o.menuArrowClass),e.toggleClass(n)},a=function(s,n){return s.find("li."+n.pathClass).slice(0,n.pathLevels).addClass(n.hoverClass+" "+o.bcClass).filter(function(){return e(this).children(n.popUpSelector).hide().show().length}).removeClass(n.pathClass)},l=function(e){e.children("a").toggleClass(o.anchorClass)},h=function(e){var s=e.css("ms-touch-action"),o=e.css("touch-action");o=o||s,o="pan-y"===o?"auto":"pan-y",e.css({"ms-touch-action":o,"touch-action":o})},u=function(s,o){var r="li:has("+o.popUpSelector+")";e.fn.hoverIntent&&!o.disableHI?s.hoverIntent(c,f,r):s.on("mouseenter.superfish",r,c).on("mouseleave.superfish",r,f);var a="MSPointerDown.superfish";i&&(a="pointerdown.superfish"),n||(a+=" touchend.superfish"),t&&(a+=" mousedown.superfish"),s.on("focusin.superfish","li",c).on("focusout.superfish","li",f).on(a,"a",o,p)},p=function(s){var o=e(this),n=m(o),t=o.siblings(s.data.popUpSelector);return n.onHandleTouch.call(t)===!1?this:void(t.length>0&&t.is(":hidden")&&(o.one("click.superfish",!1),"MSPointerDown"===s.type||"pointerdown"===s.type?o.trigger("focus"):e.proxy(c,o.parent("li"))()))},c=function(){var s=e(this),o=m(s);clearTimeout(o.sfTimer),s.siblings().superfish("hide").end().superfish("show")},f=function(){var s=e(this),o=m(s);n?e.proxy(d,s,o)():(clearTimeout(o.sfTimer),o.sfTimer=setTimeout(e.proxy(d,s,o),o.delay))},d=function(s){s.retainPath=e.inArray(this[0],s.$path)>-1,this.superfish("hide"),this.parents("."+s.hoverClass).length||(s.onIdle.call(v(this)),s.$path.length&&e.proxy(c,s.$path)())},v=function(e){return e.closest("."+o.menuClass)},m=function(e){return v(e).data("sf-options")};return{hide:function(s){if(this.length){var o=this,n=m(o);if(!n)return this;var t=n.retainPath===!0?n.$path:"",i=o.find("li."+n.hoverClass).add(this).not(t).removeClass(n.hoverClass).children(n.popUpSelector),r=n.speedOut;if(s&&(i.show(),r=0),n.retainPath=!1,n.onBeforeHide.call(i)===!1)return this;i.stop(!0,!0).animate(n.animationOut,r,function(){var s=e(this);n.onHide.call(s)})}return this},show:function(){var e=m(this);if(!e)return this;var s=this.addClass(e.hoverClass),o=s.children(e.popUpSelector);return e.onBeforeShow.call(o)===!1?this:(o.stop(!0,!0).animate(e.animation,e.speed,function(){e.onShow.call(o)}),this)},destroy:function(){return this.each(function(){var s,n=e(this),t=n.data("sf-options");return t?(s=n.find(t.popUpSelector).parent("li"),clearTimeout(t.sfTimer),r(n,t),l(s),h(n),n.off(".superfish").off(".hoverIntent"),s.children(t.popUpSelector).attr("style",function(e,s){return s.replace(/display[^;]+;?/g,"")}),t.$path.removeClass(t.hoverClass+" "+o.bcClass).addClass(t.pathClass),n.find("."+t.hoverClass).removeClass(t.hoverClass),t.onDestroy.call(n),void n.removeData("sf-options")):!1})},init:function(s){return this.each(function(){var n=e(this);if(n.data("sf-options"))return!1;var t=e.extend({},e.fn.superfish.defaults,s),i=n.find(t.popUpSelector).parent("li");t.$path=a(n,t),n.data("sf-options",t),r(n,t),l(i),h(n),u(n,t),i.not("."+o.bcClass).superfish("hide",!0),t.onInit.call(this)})}}}();e.fn.superfish=function(s){return o[s]?o[s].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof s&&s?e.error("Method "+s+" does not exist on jQuery.fn.superfish"):o.init.apply(this,arguments)},e.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:e.noop,onBeforeShow:e.noop,onShow:e.noop,onBeforeHide:e.noop,onHide:e.noop,onIdle:e.noop,onDestroy:e.noop,onHandleTouch:e.noop}}(jQuery,window),"function"!=typeof Object.create&&(Object.create=function(obj){
  function F(){}return F.prototype=obj,new F}),function($,window,document){var Carousel={init:function(options,el){var base=this;base.$elem=$(el),base.options=$.extend({},$.fn.owlCarousel.options,base.$elem.data(),options),base.userOptions=options,base.loadContent()},loadContent:function(){function getData(data){var i,content="";if("function"==typeof base.options.jsonSuccess)base.options.jsonSuccess.apply(this,[data]);else{for(i in data.owl)data.owl.hasOwnProperty(i)&&(content+=data.owl[i].item);base.$elem.html(content)}base.logIn()}var url,base=this;"function"==typeof base.options.beforeInit&&base.options.beforeInit.apply(this,[base.$elem]),"string"==typeof base.options.jsonPath?(url=base.options.jsonPath,$.getJSON(url,getData)):base.logIn()},logIn:function(){var base=this;base.$elem.data("owl-originalStyles",base.$elem.attr("style")),base.$elem.data("owl-originalClasses",base.$elem.attr("class")),base.$elem.css({opacity:0}),base.orignalItems=base.options.items,base.checkBrowser(),base.wrapperWidth=0,base.checkVisible=null,base.setVars()},setVars:function(){var base=this;return 0===base.$elem.children().length?!1:(base.baseClass(),base.eventTypes(),base.$userItems=base.$elem.children(),base.itemsAmount=base.$userItems.length,base.wrapItems(),base.$owlItems=base.$elem.find(".owl-item"),base.$owlWrapper=base.$elem.find(".owl-wrapper"),base.playDirection="next",base.prevItem=0,base.prevArr=[0],base.currentItem=0,base.customEvents(),void base.onStartup())},onStartup:function(){var base=this;base.updateItems(),base.calculateAll(),base.buildControls(),base.updateControls(),base.response(),base.moveEvents(),base.stopOnHover(),base.owlStatus(),base.options.transitionStyle!==!1&&base.transitionTypes(base.options.transitionStyle),base.options.autoPlay===!0&&(base.options.autoPlay=5e3),base.play(),base.$elem.find(".owl-wrapper").css("display","block"),base.$elem.is(":visible")?base.$elem.css("opacity",1):base.watchVisibility(),base.onstartup=!1,base.eachMoveUpdate(),"function"==typeof base.options.afterInit&&base.options.afterInit.apply(this,[base.$elem])},eachMoveUpdate:function(){var base=this;base.options.lazyLoad===!0&&base.lazyLoad(),base.options.autoHeight===!0&&base.autoHeight(),base.onVisibleItems(),"function"==typeof base.options.afterAction&&base.options.afterAction.apply(this,[base.$elem])},updateVars:function(){var base=this;"function"==typeof base.options.beforeUpdate&&base.options.beforeUpdate.apply(this,[base.$elem]),base.watchVisibility(),base.updateItems(),base.calculateAll(),base.updatePosition(),base.updateControls(),base.eachMoveUpdate(),"function"==typeof base.options.afterUpdate&&base.options.afterUpdate.apply(this,[base.$elem])},reload:function(){var base=this;window.setTimeout(function(){base.updateVars()},0)},watchVisibility:function(){var base=this;return base.$elem.is(":visible")!==!1?!1:(base.$elem.css({opacity:0}),window.clearInterval(base.autoPlayInterval),window.clearInterval(base.checkVisible),void(base.checkVisible=window.setInterval(function(){base.$elem.is(":visible")&&(base.reload(),base.$elem.animate({opacity:1},200),window.clearInterval(base.checkVisible))},500)))},wrapItems:function(){var base=this;base.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>'),base.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">'),base.wrapperOuter=base.$elem.find(".owl-wrapper-outer"),base.$elem.css("display","block")},baseClass:function(){var base=this,hasBaseClass=base.$elem.hasClass(base.options.baseClass),hasThemeClass=base.$elem.hasClass(base.options.theme);hasBaseClass||base.$elem.addClass(base.options.baseClass),hasThemeClass||base.$elem.addClass(base.options.theme)},updateItems:function(){var width,i,base=this;if(base.options.responsive===!1)return!1;if(base.options.singleItem===!0)return base.options.items=base.orignalItems=1,base.options.itemsCustom=!1,base.options.itemsDesktop=!1,base.options.itemsDesktopSmall=!1,base.options.itemsTablet=!1,base.options.itemsTabletSmall=!1,base.options.itemsMobile=!1,!1;if(width=$(base.options.responsiveBaseWidth).width(),width>(base.options.itemsDesktop[0]||base.orignalItems)&&(base.options.items=base.orignalItems),base.options.itemsCustom!==!1)for(base.options.itemsCustom.sort(function(a,b){return a[0]-b[0]}),i=0;i<base.options.itemsCustom.length;i+=1)base.options.itemsCustom[i][0]<=width&&(base.options.items=base.options.itemsCustom[i][1]);else width<=base.options.itemsDesktop[0]&&base.options.itemsDesktop!==!1&&(base.options.items=base.options.itemsDesktop[1]),width<=base.options.itemsDesktopSmall[0]&&base.options.itemsDesktopSmall!==!1&&(base.options.items=base.options.itemsDesktopSmall[1]),width<=base.options.itemsTablet[0]&&base.options.itemsTablet!==!1&&(base.options.items=base.options.itemsTablet[1]),width<=base.options.itemsTabletSmall[0]&&base.options.itemsTabletSmall!==!1&&(base.options.items=base.options.itemsTabletSmall[1]),width<=base.options.itemsMobile[0]&&base.options.itemsMobile!==!1&&(base.options.items=base.options.itemsMobile[1]);base.options.items>base.itemsAmount&&base.options.itemsScaleUp===!0&&(base.options.items=base.itemsAmount)},response:function(){var smallDelay,lastWindowWidth,base=this;return base.options.responsive!==!0?!1:(lastWindowWidth=$(window).width(),base.resizer=function(){$(window).width()!==lastWindowWidth&&(base.options.autoPlay!==!1&&window.clearInterval(base.autoPlayInterval),window.clearTimeout(smallDelay),smallDelay=window.setTimeout(function(){lastWindowWidth=$(window).width(),base.updateVars()},base.options.responsiveRefreshRate))},void $(window).resize(base.resizer))},updatePosition:function(){var base=this;base.jumpTo(base.currentItem),base.options.autoPlay!==!1&&base.checkAp()},appendItemsSizes:function(){var base=this,roundPages=0,lastItem=base.itemsAmount-base.options.items;base.$owlItems.each(function(index){var $this=$(this);$this.css({width:base.itemWidth}).data("owl-item",Number(index)),index%base.options.items!==0&&index!==lastItem||index>lastItem||(roundPages+=1),$this.data("owl-roundPages",roundPages)})},appendWrapperSizes:function(){var base=this,width=base.$owlItems.length*base.itemWidth;base.$owlWrapper.css({width:2*width,left:0}),base.appendItemsSizes()},calculateAll:function(){var base=this;base.calculateWidth(),base.appendWrapperSizes(),base.loops(),base.max()},calculateWidth:function(){var base=this;base.itemWidth=Math.round(base.$elem.width()/base.options.items)},max:function(){var base=this,maximum=-1*(base.itemsAmount*base.itemWidth-base.options.items*base.itemWidth);return base.options.items>base.itemsAmount?(base.maximumItem=0,maximum=0,base.maximumPixels=0):(base.maximumItem=base.itemsAmount-base.options.items,base.maximumPixels=maximum),maximum},min:function(){return 0},loops:function(){var i,item,roundPageNum,base=this,prev=0,elWidth=0;for(base.positionsInArray=[0],base.pagesInArray=[],i=0;i<base.itemsAmount;i+=1)elWidth+=base.itemWidth,base.positionsInArray.push(-elWidth),base.options.scrollPerPage===!0&&(item=$(base.$owlItems[i]),roundPageNum=item.data("owl-roundPages"),roundPageNum!==prev&&(base.pagesInArray[prev]=base.positionsInArray[i],prev=roundPageNum))},buildControls:function(){var base=this;base.options.navigation!==!0&&base.options.pagination!==!0||(base.owlControls=$('<div class="owl-controls"/>').toggleClass("clickable",!base.browser.isTouch).appendTo(base.$elem)),base.options.pagination===!0&&base.buildPagination(),base.options.navigation===!0&&base.buildButtons()},buildButtons:function(){var base=this,buttonsWrapper=$('<div class="owl-buttons"/>');base.owlControls.append(buttonsWrapper),base.buttonPrev=$("<div/>",{"class":"owl-prev",html:base.options.navigationText[0]||""}),base.buttonNext=$("<div/>",{"class":"owl-next",html:base.options.navigationText[1]||""}),buttonsWrapper.append(base.buttonPrev).append(base.buttonNext),buttonsWrapper.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(event){event.preventDefault()}),buttonsWrapper.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(event){event.preventDefault(),$(this).hasClass("owl-next")?base.next():base.prev()})},buildPagination:function(){var base=this;base.paginationWrapper=$('<div class="owl-pagination"/>'),base.owlControls.append(base.paginationWrapper),base.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(event){event.preventDefault(),Number($(this).data("owl-page"))!==base.currentItem&&base.goTo(Number($(this).data("owl-page")),!0)})},updatePagination:function(){var counter,lastPage,lastItem,i,paginationButton,paginationButtonInner,base=this;if(base.options.pagination===!1)return!1;for(base.paginationWrapper.html(""),counter=0,lastPage=base.itemsAmount-base.itemsAmount%base.options.items,i=0;i<base.itemsAmount;i+=1)i%base.options.items===0&&(counter+=1,lastPage===i&&(lastItem=base.itemsAmount-base.options.items),paginationButton=$("<div/>",{"class":"owl-page"}),paginationButtonInner=$("<span></span>",{text:base.options.paginationNumbers===!0?counter:"","class":base.options.paginationNumbers===!0?"owl-numbers":""}),paginationButton.append(paginationButtonInner),paginationButton.data("owl-page",lastPage===i?lastItem:i),paginationButton.data("owl-roundPages",counter),base.paginationWrapper.append(paginationButton));base.checkPagination()},checkPagination:function(){var base=this;return base.options.pagination===!1?!1:void base.paginationWrapper.find(".owl-page").each(function(){$(this).data("owl-roundPages")===$(base.$owlItems[base.currentItem]).data("owl-roundPages")&&(base.paginationWrapper.find(".owl-page").removeClass("active"),$(this).addClass("active"))})},checkNavigation:function(){var base=this;return base.options.navigation===!1?!1:void(base.options.rewindNav===!1&&(0===base.currentItem&&0===base.maximumItem?(base.buttonPrev.addClass("disabled"),base.buttonNext.addClass("disabled")):0===base.currentItem&&0!==base.maximumItem?(base.buttonPrev.addClass("disabled"),base.buttonNext.removeClass("disabled")):base.currentItem===base.maximumItem?(base.buttonPrev.removeClass("disabled"),base.buttonNext.addClass("disabled")):0!==base.currentItem&&base.currentItem!==base.maximumItem&&(base.buttonPrev.removeClass("disabled"),base.buttonNext.removeClass("disabled"))))},updateControls:function(){var base=this;base.updatePagination(),base.checkNavigation(),base.owlControls&&(base.options.items>=base.itemsAmount?base.owlControls.hide():base.owlControls.show())},destroyControls:function(){var base=this;base.owlControls&&base.owlControls.remove()},next:function(speed){var base=this;if(base.isTransition)return!1;if(base.currentItem+=base.options.scrollPerPage===!0?base.options.items:1,base.currentItem>base.maximumItem+(base.options.scrollPerPage===!0?base.options.items-1:0)){if(base.options.rewindNav!==!0)return base.currentItem=base.maximumItem,!1;base.currentItem=0,speed="rewind"}base.goTo(base.currentItem,speed)},prev:function(speed){var base=this;if(base.isTransition)return!1;if(base.options.scrollPerPage===!0&&base.currentItem>0&&base.currentItem<base.options.items?base.currentItem=0:base.currentItem-=base.options.scrollPerPage===!0?base.options.items:1,base.currentItem<0){if(base.options.rewindNav!==!0)return base.currentItem=0,!1;base.currentItem=base.maximumItem,speed="rewind"}base.goTo(base.currentItem,speed)},goTo:function(position,speed,drag){var goToPixel,base=this;return base.isTransition?!1:("function"==typeof base.options.beforeMove&&base.options.beforeMove.apply(this,[base.$elem]),position>=base.maximumItem?position=base.maximumItem:0>=position&&(position=0),base.currentItem=base.owl.currentItem=position,base.options.transitionStyle!==!1&&"drag"!==drag&&1===base.options.items&&base.browser.support3d===!0?(base.swapSpeed(0),base.browser.support3d===!0?base.transition3d(base.positionsInArray[position]):base.css2slide(base.positionsInArray[position],1),base.afterGo(),base.singleItemTransition(),!1):(goToPixel=base.positionsInArray[position],base.browser.support3d===!0?(base.isCss3Finish=!1,speed===!0?(base.swapSpeed("paginationSpeed"),window.setTimeout(function(){base.isCss3Finish=!0},base.options.paginationSpeed)):"rewind"===speed?(base.swapSpeed(base.options.rewindSpeed),window.setTimeout(function(){base.isCss3Finish=!0},base.options.rewindSpeed)):(base.swapSpeed("slideSpeed"),window.setTimeout(function(){base.isCss3Finish=!0},base.options.slideSpeed)),base.transition3d(goToPixel)):speed===!0?base.css2slide(goToPixel,base.options.paginationSpeed):"rewind"===speed?base.css2slide(goToPixel,base.options.rewindSpeed):base.css2slide(goToPixel,base.options.slideSpeed),void base.afterGo()))},jumpTo:function(position){var base=this;"function"==typeof base.options.beforeMove&&base.options.beforeMove.apply(this,[base.$elem]),position>=base.maximumItem||-1===position?position=base.maximumItem:0>=position&&(position=0),base.swapSpeed(0),base.browser.support3d===!0?base.transition3d(base.positionsInArray[position]):base.css2slide(base.positionsInArray[position],1),base.currentItem=base.owl.currentItem=position,base.afterGo()},afterGo:function(){var base=this;base.prevArr.push(base.currentItem),base.prevItem=base.owl.prevItem=base.prevArr[base.prevArr.length-2],base.prevArr.shift(0),base.prevItem!==base.currentItem&&(base.checkPagination(),base.checkNavigation(),base.eachMoveUpdate(),base.options.autoPlay!==!1&&base.checkAp()),"function"==typeof base.options.afterMove&&base.prevItem!==base.currentItem&&base.options.afterMove.apply(this,[base.$elem])},stop:function(){var base=this;base.apStatus="stop",window.clearInterval(base.autoPlayInterval)},checkAp:function(){var base=this;"stop"!==base.apStatus&&base.play()},play:function(){var base=this;return base.apStatus="play",base.options.autoPlay===!1?!1:(window.clearInterval(base.autoPlayInterval),void(base.autoPlayInterval=window.setInterval(function(){base.next(!0)},base.options.autoPlay)))},swapSpeed:function(action){var base=this;"slideSpeed"===action?base.$owlWrapper.css(base.addCssSpeed(base.options.slideSpeed)):"paginationSpeed"===action?base.$owlWrapper.css(base.addCssSpeed(base.options.paginationSpeed)):"string"!=typeof action&&base.$owlWrapper.css(base.addCssSpeed(action))},addCssSpeed:function(speed){return{"-webkit-transition":"all "+speed+"ms ease","-moz-transition":"all "+speed+"ms ease","-o-transition":"all "+speed+"ms ease",transition:"all "+speed+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(pixels){return{"-webkit-transform":"translate3d("+pixels+"px, 0px, 0px)","-moz-transform":"translate3d("+pixels+"px, 0px, 0px)","-o-transform":"translate3d("+pixels+"px, 0px, 0px)","-ms-transform":"translate3d("+pixels+"px, 0px, 0px)",transform:"translate3d("+pixels+"px, 0px,0px)"}},transition3d:function(value){var base=this;base.$owlWrapper.css(base.doTranslate(value))},css2move:function(value){var base=this;base.$owlWrapper.css({left:value})},css2slide:function(value,speed){var base=this;base.isCssFinish=!1,base.$owlWrapper.stop(!0,!0).animate({left:value},{duration:speed||base.options.slideSpeed,complete:function(){base.isCssFinish=!0}})},checkBrowser:function(){var regex,asSupport,support3d,isTouch,base=this,translate3D="translate3d(0px, 0px, 0px)",tempElem=document.createElement("div");tempElem.style.cssText="  -moz-transform:"+translate3D+"; -ms-transform:"+translate3D+"; -o-transform:"+translate3D+"; -webkit-transform:"+translate3D+"; transform:"+translate3D,regex=/translate3d\(0px, 0px, 0px\)/g,asSupport=tempElem.style.cssText.match(regex),support3d=null!==asSupport&&1===asSupport.length,isTouch="ontouchstart"in window||window.navigator.msMaxTouchPoints,base.browser={support3d:support3d,isTouch:isTouch}},moveEvents:function(){var base=this;base.options.mouseDrag===!1&&base.options.touchDrag===!1||(base.gestures(),base.disabledEvents())},eventTypes:function(){var base=this,types=["s","e","x"];base.ev_types={},base.options.mouseDrag===!0&&base.options.touchDrag===!0?types=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:base.options.mouseDrag===!1&&base.options.touchDrag===!0?types=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:base.options.mouseDrag===!0&&base.options.touchDrag===!1&&(types=["mousedown.owl","mousemove.owl","mouseup.owl"]),base.ev_types.start=types[0],base.ev_types.move=types[1],base.ev_types.end=types[2]},disabledEvents:function(){var base=this;base.$elem.on("dragstart.owl",function(event){event.preventDefault()}),base.$elem.on("mousedown.disableTextSelect",function(e){return $(e.target).is("input, textarea, select, option")})},gestures:function(){function getTouches(event){if(void 0!==event.touches)return{x:event.touches[0].pageX,y:event.touches[0].pageY};if(void 0===event.touches){if(void 0!==event.pageX)return{x:event.pageX,y:event.pageY};if(void 0===event.pageX)return{x:event.clientX,y:event.clientY}}}function swapEvents(type){"on"===type?($(document).on(base.ev_types.move,dragMove),$(document).on(base.ev_types.end,dragEnd)):"off"===type&&($(document).off(base.ev_types.move),$(document).off(base.ev_types.end))}function dragStart(event){var position,ev=event.originalEvent||event||window.event;if(3===ev.which)return!1;if(!(base.itemsAmount<=base.options.items)){if(base.isCssFinish===!1&&!base.options.dragBeforeAnimFinish)return!1;if(base.isCss3Finish===!1&&!base.options.dragBeforeAnimFinish)return!1;base.options.autoPlay!==!1&&window.clearInterval(base.autoPlayInterval),base.browser.isTouch===!0||base.$owlWrapper.hasClass("grabbing")||base.$owlWrapper.addClass("grabbing"),base.newPosX=0,base.newRelativeX=0,$(this).css(base.removeTransition()),position=$(this).position(),locals.relativePos=position.left,locals.offsetX=getTouches(ev).x-position.left,locals.offsetY=getTouches(ev).y-position.top,swapEvents("on"),locals.sliding=!1,locals.targetElement=ev.target||ev.srcElement}}function dragMove(event){var minSwipe,maxSwipe,ev=event.originalEvent||event||window.event;base.newPosX=getTouches(ev).x-locals.offsetX,base.newPosY=getTouches(ev).y-locals.offsetY,base.newRelativeX=base.newPosX-locals.relativePos,"function"==typeof base.options.startDragging&&locals.dragging!==!0&&0!==base.newRelativeX&&(locals.dragging=!0,base.options.startDragging.apply(base,[base.$elem])),(base.newRelativeX>8||base.newRelativeX<-8)&&base.browser.isTouch===!0&&(void 0!==ev.preventDefault?ev.preventDefault():ev.returnValue=!1,locals.sliding=!0),(base.newPosY>10||base.newPosY<-10)&&locals.sliding===!1&&$(document).off("touchmove.owl"),minSwipe=function(){return base.newRelativeX/5},maxSwipe=function(){return base.maximumPixels+base.newRelativeX/5},base.newPosX=Math.max(Math.min(base.newPosX,minSwipe()),maxSwipe()),base.browser.support3d===!0?base.transition3d(base.newPosX):base.css2move(base.newPosX)}function dragEnd(event){var newPosition,handlers,owlStopEvent,ev=event.originalEvent||event||window.event;ev.target=ev.target||ev.srcElement,locals.dragging=!1,base.browser.isTouch!==!0&&base.$owlWrapper.removeClass("grabbing"),base.newRelativeX<0?base.dragDirection=base.owl.dragDirection="left":base.dragDirection=base.owl.dragDirection="right",0!==base.newRelativeX&&(newPosition=base.getNewPosition(),base.goTo(newPosition,!1,"drag"),locals.targetElement===ev.target&&base.browser.isTouch!==!0&&($(ev.target).on("click.disable",function(ev){ev.stopImmediatePropagation(),ev.stopPropagation(),ev.preventDefault(),$(ev.target).off("click.disable")}),handlers=$._data(ev.target,"events").click,owlStopEvent=handlers.pop(),handlers.splice(0,0,owlStopEvent))),swapEvents("off")}var base=this,locals={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};base.isCssFinish=!0,base.$elem.on(base.ev_types.start,".owl-wrapper",dragStart)},getNewPosition:function(){var base=this,newPosition=base.closestItem();return newPosition>base.maximumItem?(base.currentItem=base.maximumItem,newPosition=base.maximumItem):base.newPosX>=0&&(newPosition=0,base.currentItem=0),newPosition},closestItem:function(){var base=this,array=base.options.scrollPerPage===!0?base.pagesInArray:base.positionsInArray,goal=base.newPosX,closest=null;return $.each(array,function(i,v){goal-base.itemWidth/20>array[i+1]&&goal-base.itemWidth/20<v&&"left"===base.moveDirection()?(closest=v,base.options.scrollPerPage===!0?base.currentItem=$.inArray(closest,base.positionsInArray):base.currentItem=i):goal+base.itemWidth/20<v&&goal+base.itemWidth/20>(array[i+1]||array[i]-base.itemWidth)&&"right"===base.moveDirection()&&(base.options.scrollPerPage===!0?(closest=array[i+1]||array[array.length-1],base.currentItem=$.inArray(closest,base.positionsInArray)):(closest=array[i+1],base.currentItem=i+1))}),base.currentItem},moveDirection:function(){var direction,base=this;return base.newRelativeX<0?(direction="right",base.playDirection="next"):(direction="left",base.playDirection="prev"),direction},customEvents:function(){var base=this;base.$elem.on("owl.next",function(){base.next()}),base.$elem.on("owl.prev",function(){base.prev()}),base.$elem.on("owl.play",function(event,speed){base.options.autoPlay=speed,base.play(),base.hoverStatus="play"}),base.$elem.on("owl.stop",function(){base.stop(),base.hoverStatus="stop"}),base.$elem.on("owl.goTo",function(event,item){base.goTo(item)}),base.$elem.on("owl.jumpTo",function(event,item){base.jumpTo(item)})},stopOnHover:function(){var base=this;base.options.stopOnHover===!0&&base.browser.isTouch!==!0&&base.options.autoPlay!==!1&&(base.$elem.on("mouseover",function(){base.stop()}),base.$elem.on("mouseout",function(){"stop"!==base.hoverStatus&&base.play()}))},lazyLoad:function(){var i,$item,itemNumber,$lazyImg,follow,base=this;if(base.options.lazyLoad===!1)return!1;for(i=0;i<base.itemsAmount;i+=1)$item=$(base.$owlItems[i]),"loaded"!==$item.data("owl-loaded")&&(itemNumber=$item.data("owl-item"),$lazyImg=$item.find(".lazyOwl"),"string"==typeof $lazyImg.data("src")?(void 0===$item.data("owl-loaded")&&($lazyImg.hide(),$item.addClass("loading").data("owl-loaded","checked")),follow=base.options.lazyFollow===!0?itemNumber>=base.currentItem:!0,follow&&itemNumber<base.currentItem+base.options.items&&$lazyImg.length&&base.lazyPreload($item,$lazyImg)):$item.data("owl-loaded","loaded"))},lazyPreload:function($item,$lazyImg){function showImage(){$item.data("owl-loaded","loaded").removeClass("loading"),$lazyImg.removeAttr("data-src"),"fade"===base.options.lazyEffect?$lazyImg.fadeIn(400):$lazyImg.show(),"function"==typeof base.options.afterLazyLoad&&base.options.afterLazyLoad.apply(this,[base.$elem])}function checkLazyImage(){iterations+=1,base.completeImg($lazyImg.get(0))||isBackgroundImg===!0?showImage():100>=iterations?window.setTimeout(checkLazyImage,100):showImage()}var isBackgroundImg,base=this,iterations=0;"DIV"===$lazyImg.prop("tagName")?($lazyImg.css("background-image","url("+$lazyImg.data("src")+")"),isBackgroundImg=!0):$lazyImg[0].src=$lazyImg.data("src"),checkLazyImage()},autoHeight:function(){function addHeight(){var $currentItem=$(base.$owlItems[base.currentItem]).height();base.wrapperOuter.css("height",$currentItem+"px"),base.wrapperOuter.hasClass("autoHeight")||window.setTimeout(function(){base.wrapperOuter.addClass("autoHeight")},0)}function checkImage(){iterations+=1,base.completeImg($currentimg.get(0))?addHeight():100>=iterations?window.setTimeout(checkImage,100):base.wrapperOuter.css("height","")}var iterations,base=this,$currentimg=$(base.$owlItems[base.currentItem]).find("img");void 0!==$currentimg.get(0)?(iterations=0,checkImage()):addHeight()},completeImg:function(img){var naturalWidthType;return img.complete?(naturalWidthType=typeof img.naturalWidth,"undefined"===naturalWidthType||0!==img.naturalWidth):!1},onVisibleItems:function(){var i,base=this;for(base.options.addClassActive===!0&&base.$owlItems.removeClass("active"),base.visibleItems=[],i=base.currentItem;i<base.currentItem+base.options.items;i+=1)base.visibleItems.push(i),base.options.addClassActive===!0&&$(base.$owlItems[i]).addClass("active");base.owl.visibleItems=base.visibleItems},transitionTypes:function(className){var base=this;base.outClass="owl-"+className+"-out",base.inClass="owl-"+className+"-in"},singleItemTransition:function(){function transStyles(prevPos){return{position:"relative",left:prevPos+"px"}}var base=this,outClass=base.outClass,inClass=base.inClass,$currentItem=base.$owlItems.eq(base.currentItem),$prevItem=base.$owlItems.eq(base.prevItem),prevPos=Math.abs(base.positionsInArray[base.currentItem])+base.positionsInArray[base.prevItem],origin=Math.abs(base.positionsInArray[base.currentItem])+base.itemWidth/2,animEnd="webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend";base.isTransition=!0,base.$owlWrapper.addClass("owl-origin").css({"-webkit-transform-origin":origin+"px","-moz-perspective-origin":origin+"px","perspective-origin":origin+"px"}),$prevItem.css(transStyles(prevPos,10)).addClass(outClass).on(animEnd,function(){base.endPrev=!0,$prevItem.off(animEnd),base.clearTransStyle($prevItem,outClass)}),$currentItem.addClass(inClass).on(animEnd,function(){base.endCurrent=!0,$currentItem.off(animEnd),base.clearTransStyle($currentItem,inClass)})},clearTransStyle:function(item,classToRemove){var base=this;item.css({position:"",left:""}).removeClass(classToRemove),base.endPrev&&base.endCurrent&&(base.$owlWrapper.removeClass("owl-origin"),base.endPrev=!1,base.endCurrent=!1,base.isTransition=!1)},owlStatus:function(){var base=this;base.owl={userOptions:base.userOptions,baseElement:base.$elem,userItems:base.$userItems,owlItems:base.$owlItems,currentItem:base.currentItem,prevItem:base.prevItem,visibleItems:base.visibleItems,isTouch:base.browser.isTouch,browser:base.browser,dragDirection:base.dragDirection}},clearEvents:function(){var base=this;base.$elem.off(".owl owl mousedown.disableTextSelect"),$(document).off(".owl owl"),$(window).off("resize",base.resizer)},unWrap:function(){var base=this;0!==base.$elem.children().length&&(base.$owlWrapper.unwrap(),base.$userItems.unwrap().unwrap(),base.owlControls&&base.owlControls.remove()),base.clearEvents(),base.$elem.attr("style",base.$elem.data("owl-originalStyles")||"").attr("class",base.$elem.data("owl-originalClasses"))},destroy:function(){var base=this;base.stop(),window.clearInterval(base.checkVisible),base.unWrap(),base.$elem.removeData()},reinit:function(newOptions){var base=this,options=$.extend({},base.userOptions,newOptions);base.unWrap(),base.init(options,base.$elem)},addItem:function(htmlString,targetPosition){var position,base=this;return htmlString?0===base.$elem.children().length?(base.$elem.append(htmlString),base.setVars(),!1):(base.unWrap(),position=void 0===targetPosition||-1===targetPosition?-1:targetPosition,position>=base.$userItems.length||-1===position?base.$userItems.eq(-1).after(htmlString):base.$userItems.eq(position).before(htmlString),void base.setVars()):!1},removeItem:function(targetPosition){var position,base=this;return 0===base.$elem.children().length?!1:(position=void 0===targetPosition||-1===targetPosition?-1:targetPosition,base.unWrap(),base.$userItems.eq(position).remove(),void base.setVars())}};$.fn.owlCarousel=function(options){return this.each(function(){if($(this).data("owl-init")===!0)return!1;$(this).data("owl-init",!0);var carousel=Object.create(Carousel);carousel.init(options,this),$.data(this,"owlCarousel",carousel)})},$.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document),$.fn.materialripple=function(options){var defaults={rippleClass:"ripple-wrapper"};$.extend(defaults,options),$("body").on("animationend webkitAnimationEnd oAnimationEnd","."+defaults.rippleClass,function(){removeRippleElement(this)});var addRippleElement=function(element,e){$(element).append('<span class="added '+defaults.rippleClass+'"></span>'),newRippleElement=$(element).find(".added"),newRippleElement.removeClass("added");e.pageX,e.pageY;elementWidth=$(element).outerWidth(),elementHeight=$(element).outerHeight(),d=Math.max(elementWidth,elementHeight),newRippleElement.css({width:d,height:d});var rippleX=e.clientX-$(element).offset().left-d/2+$(window).scrollLeft(),rippleY=e.clientY-$(element).offset().top-d/2+$(window).scrollTop();newRippleElement.css("top",rippleY+"px").css("left",rippleX+"px").addClass("animated")},removeRippleElement=function($element){$element.remove()};$(this).addClass("has-ripple"),$(this).bind("click",function(e){addRippleElement(this,e)})},function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationNameCache=new c,
  this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}.call(this),$(function(){$.fn.hasAttr=function(e){var t=this.attr(e);return"undefined"!=typeof t&&t!==!1},$.fn.materialForm=function(){function e(e){var t=e.attr("type");return"hidden"!=t&&"submit"!=t&&"button"!=t&&"checkbox"!=t&&"radio"!=t&&"file"!=t?1:0}function t(e){e.val()?e.addClass("filled"):e.removeClass("filled")}this.find("input, textarea").each(function(){if(e($(this))){var n=$(this).attr("name");$(this).attr("id",n);var r=$(this).wrap("<div class='material-input'></div>").parent();r.append("<span class='material-bar'></span>");var i=$(this).prop("tagName").toLowerCase();r.addClass(i);var s=$(this).attr("placeholder");s&&(r.append("<label for='"+n+"'>"+s+"</label>"),$(this).removeAttr("placeholder")),t($(this))}}),this.find("input, textarea").on("blur",function(){e($(this))&&t($(this))}),this.find("select").each(function(e){var t=$(this).attr("data-placeholder"),n=$(this).attr("multiple")?"checkbox":"radio",r=id=$(this).attr("name"),i=$(this).wrap("<div class='material-select'></div>").parent();if("checkbox"==n){r+="[]";var s=$('<span class="material-bar"></span>');i.append(s).addClass("checkbox")}else{var o=$('<span class="material-title">'+t+"</span>");i.prepend(o)}var u=$('<label for="select-'+e+'"><span>'+t+"</span><strong></strong></label>"),a=$('<input type="checkbox" id="select-'+e+'">');i.prepend(a),i.prepend(u);var f=$('<ul class="'+n+'"></ul>');i.append(f);var h,l=0,c=$(this).children("option").length;if($(this).children("option").each(function(e){var t=$(this).text(),i=$(this).val(),s=$(this).hasAttr("selected"),o=$("<li></li>");f.append(o);var u=$('<label for="'+id+"-"+e+'">'+t+"</label>"),a=$('<input type="'+n+'" value="'+i+'" name="'+r+'" id="'+id+"-"+e+'">');s&&(h=a.prop("checked",!0),l++),o.append(a),o.append(u)}),s){var p=l/c*100;s.width(p+"%")}else l&&(u.children("span").text(h.next("label").text()),i.addClass("filled"));$(this).remove()}),$(document).on("click",function(e){0===$(e.target).closest(".material-select").length&&$(".material-select > input").prop("checked",!1)}),$(".material-select > input").on("change",function(){var e=$(this).attr("id");$(".material-select > input").each(function(){var t=$(this).attr("id");e!=t&&$(this).prop("checked",!1)})}),$(".material-select ul input").on("change",function(){if($(this).closest(".material-select.checkbox").length){var e=$(this).closest("ul"),t=e.find("input").length,n=e.find("input:checked").length,r=n/t*100;$(this).closest(".material-select").find(".material-bar").width(r+"%")}else{var i=$(this).closest(".material-select"),s=i.children("label").children("span"),o=$(this).next("label");s.text(o.text()),i.children("input").prop("checked",!1),i.addClass("filled")}})}}),!function(e,n,t){function a(n,t){this.element=n,this.settings=e.extend({},i,t),this._defaults=i,this._name=s,this.init()}var i={label:"MENU",duplicate:!0,duration:200,easingOpen:"swing",easingClose:"swing",closedSymbol:"&#9658;",openedSymbol:"&#9660;",prependTo:"body",appendTo:"",parentTag:"a",closeOnClick:!1,allowParentLinks:!1,nestedParentLinks:!0,showChildren:!1,removeIds:!1,removeClasses:!1,removeStyles:!1,brand:"",init:function(){},beforeOpen:function(){},beforeClose:function(){},afterOpen:function(){},afterClose:function(){}},s="slicknav",l="slicknav";a.prototype.init=function(){var t,a,i=this,s=e(this.element),o=this.settings;if(o.duplicate?(i.mobileNav=s.clone(),i.mobileNav.removeAttr("id"),i.mobileNav.find("*").each(function(n,t){e(t).removeAttr("id")})):(i.mobileNav=s,i.mobileNav.removeAttr("id"),i.mobileNav.find("*").each(function(n,t){e(t).removeAttr("id")})),o.removeClasses&&(i.mobileNav.removeAttr("class"),i.mobileNav.find("*").each(function(n,t){e(t).removeAttr("class")})),o.removeStyles&&(i.mobileNav.removeAttr("style"),i.mobileNav.find("*").each(function(n,t){e(t).removeAttr("style")})),t=l+"_icon",""===o.label&&(t+=" "+l+"_no-text"),"a"==o.parentTag&&(o.parentTag='a href="#"'),i.mobileNav.attr("class",l+"_nav"),a=e('<div class="'+l+'_menu"></div>'),""!==o.brand){var r=e('<div class="'+l+'_brand">'+o.brand+"</div>");e(a).append(r)}i.btn=e(["<"+o.parentTag+' aria-haspopup="true" tabindex="0" class="'+l+"_btn "+l+'_collapsed">','<span class="'+l+'_menutxt">'+o.label+"</span>",'<span class="'+t+'">','<span class="'+l+'_icon-bar"></span>','<span class="'+l+'_icon-bar"></span>','<span class="'+l+'_icon-bar"></span>',"</span>","</"+o.parentTag+">"].join("")),e(a).append(i.btn),""!==o.appendTo?e(o.appendTo).append(a):e(o.prependTo).prepend(a),a.append(i.mobileNav);var d=i.mobileNav.find("li");e(d).each(function(){var n=e(this),t={};if(t.children=n.children("ul").attr("role","menu"),n.data("menu",t),t.children.length>0){var a=n.contents(),s=!1,r=[];e(a).each(function(){return e(this).is("ul")?!1:(r.push(this),void(e(this).is("a")&&(s=!0)))});var d=e("<"+o.parentTag+' role="menuitem" aria-haspopup="true" tabindex="-1" class="'+l+'_item"/>');if(o.allowParentLinks&&!o.nestedParentLinks&&s)e(r).wrapAll('<span class="'+l+"_parent-link "+l+'_row"/>').parent();else{var c=e(r).wrapAll(d).parent();c.addClass(l+"_row")}o.showChildren?n.addClass(l+"_open"):n.addClass(l+"_collapsed"),n.addClass(l+"_parent");var p=e('<span class="'+l+'_arrow">'+(o.showChildren?o.openedSymbol:o.closedSymbol)+"</span>");o.allowParentLinks&&!o.nestedParentLinks&&s&&(p=p.wrap(d).parent()),e(r).last().after(p)}else 0===n.children().length&&n.addClass(l+"_txtnode");n.children("a").attr("role","menuitem").click(function(n){o.closeOnClick&&!e(n.target).parent().closest("li").hasClass(l+"_parent")&&e(i.btn).click()}),o.closeOnClick&&o.allowParentLinks&&(n.children("a").children("a").click(function(n){e(i.btn).click()}),n.find("."+l+"_parent-link a:not(."+l+"_item)").click(function(n){e(i.btn).click()}))}),e(d).each(function(){var n=e(this).data("menu");o.showChildren||i._visibilityToggle(n.children,null,!1,null,!0)}),i._visibilityToggle(i.mobileNav,null,!1,"init",!0),i.mobileNav.attr("role","menu"),e(n).mousedown(function(){i._outlines(!1)}),e(n).keyup(function(){i._outlines(!0)}),e(i.btn).click(function(e){e.preventDefault(),i._menuToggle()}),i.mobileNav.on("click","."+l+"_item",function(n){n.preventDefault(),i._itemClick(e(this))}),e(i.btn).keydown(function(e){var n=e||event;13==n.keyCode&&(e.preventDefault(),i._menuToggle())}),i.mobileNav.on("keydown","."+l+"_item",function(n){var t=n||event;13==t.keyCode&&(n.preventDefault(),i._itemClick(e(n.target)))}),o.allowParentLinks&&o.nestedParentLinks&&e("."+l+"_item a").click(function(e){e.stopImmediatePropagation()})},a.prototype._menuToggle=function(e){var n=this,t=n.btn,a=n.mobileNav;t.hasClass(l+"_collapsed")?(t.removeClass(l+"_collapsed"),t.addClass(l+"_open")):(t.removeClass(l+"_open"),t.addClass(l+"_collapsed")),t.addClass(l+"_animating"),n._visibilityToggle(a,t.parent(),!0,t)},a.prototype._itemClick=function(e){var n=this,t=n.settings,a=e.data("menu");a||(a={},a.arrow=e.children("."+l+"_arrow"),a.ul=e.next("ul"),a.parent=e.parent(),a.parent.hasClass(l+"_parent-link")&&(a.parent=e.parent().parent(),a.ul=e.parent().next("ul")),e.data("menu",a)),a.parent.hasClass(l+"_collapsed")?(a.arrow.html(t.openedSymbol),a.parent.removeClass(l+"_collapsed"),a.parent.addClass(l+"_open"),a.parent.addClass(l+"_animating"),n._visibilityToggle(a.ul,a.parent,!0,e)):(a.arrow.html(t.closedSymbol),a.parent.addClass(l+"_collapsed"),a.parent.removeClass(l+"_open"),a.parent.addClass(l+"_animating"),n._visibilityToggle(a.ul,a.parent,!0,e))},a.prototype._visibilityToggle=function(n,t,a,i,s){var o=this,r=o.settings,d=o._getActionItems(n),c=0;a&&(c=r.duration),n.hasClass(l+"_hidden")?(n.removeClass(l+"_hidden"),s||r.beforeOpen(i),n.slideDown(c,r.easingOpen,function(){e(i).removeClass(l+"_animating"),e(t).removeClass(l+"_animating"),s||r.afterOpen(i)}),n.attr("aria-hidden","false"),d.attr("tabindex","0"),o._setVisAttr(n,!1)):(n.addClass(l+"_hidden"),s||r.beforeClose(i),n.slideUp(c,this.settings.easingClose,function(){n.attr("aria-hidden","true"),d.attr("tabindex","-1"),o._setVisAttr(n,!0),n.hide(),e(i).removeClass(l+"_animating"),e(t).removeClass(l+"_animating"),s?"init"==i&&r.init():r.afterClose(i)}))},a.prototype._setVisAttr=function(n,t){var a=this,i=n.children("li").children("ul").not("."+l+"_hidden");t?i.each(function(){var n=e(this);n.attr("aria-hidden","true");var i=a._getActionItems(n);i.attr("tabindex","-1"),a._setVisAttr(n,t)}):i.each(function(){var n=e(this);n.attr("aria-hidden","false");var i=a._getActionItems(n);i.attr("tabindex","0"),a._setVisAttr(n,t)})},a.prototype._getActionItems=function(e){var n=e.data("menu");if(!n){n={};var t=e.children("li"),a=t.find("a");n.links=a.add(t.find("."+l+"_item")),e.data("menu",n)}return n.links},a.prototype._outlines=function(n){n?e("."+l+"_item, ."+l+"_btn").css("outline",""):e("."+l+"_item, ."+l+"_btn").css("outline","none")},a.prototype.toggle=function(){var e=this;e._menuToggle()},a.prototype.open=function(){var e=this;e.btn.hasClass(l+"_collapsed")&&e._menuToggle()},a.prototype.close=function(){var e=this;e.btn.hasClass(l+"_open")&&e._menuToggle()},e.fn[s]=function(n){var t=arguments;if(void 0===n||"object"==typeof n)return this.each(function(){e.data(this,"plugin_"+s)||e.data(this,"plugin_"+s,new a(this,n))});if("string"==typeof n&&"_"!==n[0]&&"init"!==n){var i;return this.each(function(){var l=e.data(this,"plugin_"+s);l instanceof a&&"function"==typeof l[n]&&(i=l[n].apply(l,Array.prototype.slice.call(t,1)))}),void 0!==i?i:this}}}(jQuery,document,window),!function(){function a(){}function b(a){return f.retinaImageSuffix+a}function c(a,c){if(this.path=a||"","undefined"!=typeof c&&null!==c)this.at_2x_path=c,this.perform_check=!1;else{if(void 0!==document.createElement){var d=document.createElement("a");d.href=this.path,d.pathname=d.pathname.replace(g,b),this.at_2x_path=d.href}else{var e=this.path.split("?");e[0]=e[0].replace(g,b),this.at_2x_path=e.join("?")}this.perform_check=!0}}function d(a){this.el=a,this.path=new c(this.el.getAttribute("src"),this.el.getAttribute("data-at2x"));var b=this;this.path.check_2x_variant(function(a){a&&b.swap()})}var e="undefined"==typeof exports?window:exports,f={retinaImageSuffix:"@2x",check_mime_type:!0,force_original_dimensions:!0};e.Retina=a,a.configure=function(a){null===a&&(a={});for(var b in a)a.hasOwnProperty(b)&&(f[b]=a[b])},a.init=function(a){null===a&&(a=e);var b=a.onload||function(){};a.onload=function(){var a,c,e=document.getElementsByTagName("img"),f=[];for(a=0;a<e.length;a+=1)c=e[a],c.getAttributeNode("data-no-retina")||f.push(new d(c));b()}},a.isRetina=function(){var a="(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)";return e.devicePixelRatio>1?!0:!(!e.matchMedia||!e.matchMedia(a).matches)};var g=/\.\w+$/;e.RetinaImagePath=c,c.confirmed_paths=[],c.prototype.is_external=function(){return!(!this.path.match(/^https?\:/i)||this.path.match("//"+document.domain))},c.prototype.check_2x_variant=function(a){var b,d=this;return this.is_external()?a(!1):this.perform_check||"undefined"==typeof this.at_2x_path||null===this.at_2x_path?this.at_2x_path in c.confirmed_paths?a(!0):(b=new XMLHttpRequest,b.open("HEAD",this.at_2x_path),b.onreadystatechange=function(){if(4!==b.readyState)return a(!1);if(b.status>=200&&b.status<=399){if(f.check_mime_type){var e=b.getResponseHeader("Content-Type");if(null===e||!e.match(/^image/i))return a(!1)}return c.confirmed_paths.push(d.at_2x_path),a(!0)}return a(!1)},void b.send()):a(!0)},e.RetinaImage=d,d.prototype.swap=function(a){function b(){c.el.complete?(f.force_original_dimensions&&(c.el.setAttribute("width",c.el.offsetWidth),c.el.setAttribute("height",c.el.offsetHeight)),c.el.setAttribute("src",a)):setTimeout(b,5)}"undefined"==typeof a&&(a=this.path.at_2x_path);var c=this;b()},a.isRetina()&&a.init(e)}(),!function(a){function b(){}function c(a){function c(b){b.prototype.option||(b.prototype.option=function(b){a.isPlainObject(b)&&(this.options=a.extend(!0,this.options,b))})}function e(b,c){a.fn[b]=function(e){if("string"==typeof e){for(var g=d.call(arguments,1),h=0,i=this.length;i>h;h++){var j=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){var l=k[e].apply(k,g);if(void 0!==l)return l}else f("no such method '"+e+"' for "+b+" instance");else f("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}return this}return this.each(function(){var d=a.data(this,b);d?(d.option(e),d._init()):(d=new c(this,e),a.data(this,b,d))})}}if(a){var f="undefined"==typeof console?b:function(a){console.error(a)};return a.bridget=function(a,b){c(b),e(a,b)},a.bridget}}var d=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],c):c("object"==typeof exports?require("jquery"):a.jQuery)}(window),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):"object"==typeof exports?module.exports=f:a.eventie=f}(window),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if(a instanceof RegExp){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if(a instanceof RegExp)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:e.EventEmitter=a}.call(this),function(a){function b(a){if(a){if("string"==typeof d[a])return a;a=a.charAt(0).toUpperCase()+a.slice(1);for(var b,e=0,f=c.length;f>e;e++)if(b=c[e]+a,"string"==typeof d[b])return b}}var c="Webkit Moz ms Ms O".split(" "),d=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return b}):"object"==typeof exports?module.exports=b:a.getStyleProperty=b}(window),function(a,b){function c(a){var b=parseFloat(a),c=-1===a.indexOf("%")&&!isNaN(b);return c&&b}function d(){}function e(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0,c=h.length;c>b;b++){var d=h[b];a[d]=0}return a}function f(b){function d(){if(!m){m=!0;var d=a.getComputedStyle;if(j=function(){var a=d?function(a){return d(a,null)}:function(a){return a.currentStyle};return function(b){var c=a(b);return c||g("Style returned "+c+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),c}}(),k=b("boxSizing")){var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style[k]="border-box";var f=document.body||document.documentElement;f.appendChild(e);var h=j(e);l=200===c(h.width),f.removeChild(e)}}}function f(a){if(d(),"string"==typeof a&&(a=document.querySelector(a)),a&&"object"==typeof a&&a.nodeType){var b=j(a);if("none"===b.display)return e();var f={};f.width=a.offsetWidth,f.height=a.offsetHeight;for(var g=f.isBorderBox=!(!k||!b[k]||"border-box"!==b[k]),m=0,n=h.length;n>m;m++){var o=h[m],p=b[o];p=i(a,p);var q=parseFloat(p);f[o]=isNaN(q)?0:q}var r=f.paddingLeft+f.paddingRight,s=f.paddingTop+f.paddingBottom,t=f.marginLeft+f.marginRight,u=f.marginTop+f.marginBottom,v=f.borderLeftWidth+f.borderRightWidth,w=f.borderTopWidth+f.borderBottomWidth,x=g&&l,y=c(b.width);y!==!1&&(f.width=y+(x?0:r+v));var z=c(b.height);return z!==!1&&(f.height=z+(x?0:s+w)),f.innerWidth=f.width-(r+v),f.innerHeight=f.height-(s+w),f.outerWidth=f.width+t,f.outerHeight=f.height+u,f}}function i(b,c){if(a.getComputedStyle||-1===c.indexOf("%"))return c;var d=b.style,e=d.left,f=b.runtimeStyle,g=f&&f.left;return g&&(f.left=b.currentStyle.left),d.left=c,c=d.pixelLeft,d.left=e,g&&(f.left=g),c}var j,k,l,m=!1;return f}var g="undefined"==typeof console?d:function(a){console.error(a)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],f):"object"==typeof exports?module.exports=f(require("desandro-get-style-property")):a.getSize=f(a.getStyleProperty)}(window),function(a){function b(a){"function"==typeof a&&(b.isReady?a():g.push(a))}function c(a){var c="readystatechange"===a.type&&"complete"!==f.readyState;b.isReady||c||d()}function d(){b.isReady=!0;for(var a=0,c=g.length;c>a;a++){var d=g[a];d()}}function e(e){return"complete"===f.readyState?d():(e.bind(f,"DOMContentLoaded",c),e.bind(f,"readystatechange",c),e.bind(a,"load",c)),b}var f=a.document,g=[];b.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],e):"object"==typeof exports?module.exports=e(require("eventie")):a.docReady=e(a.eventie)}(window),function(a){"use strict";function b(a,b){return a[g](b)}function c(a){if(!a.parentNode){var b=document.createDocumentFragment();b.appendChild(a)}}function d(a,b){c(a);for(var d=a.parentNode.querySelectorAll(b),e=0,f=d.length;f>e;e++)if(d[e]===a)return!0;return!1}function e(a,d){return c(a),b(a,d)}var f,g=function(){if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0,d=b.length;d>c;c++){var e=b[c],f=e+"MatchesSelector";if(a[f])return f}}();if(g){var h=document.createElement("div"),i=b(h,"div");f=i?b:e}else f=d;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return f}):"object"==typeof exports?module.exports=f:window.matchesSelector=f}(Element.prototype),function(a,b){"use strict";"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("doc-ready"),require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.docReady,a.matchesSelector)}(window,function(a,b,c){var d={};d.extend=function(a,b){for(var c in b)a[c]=b[c];return a},d.modulo=function(a,b){return(a%b+b)%b};var e=Object.prototype.toString;d.isArray=function(a){return"[object Array]"==e.call(a)},d.makeArray=function(a){var b=[];if(d.isArray(a))b=a;else if(a&&"number"==typeof a.length)for(var c=0,e=a.length;e>c;c++)b.push(a[c]);else b.push(a);return b},d.indexOf=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},d.removeFrom=function(a,b){var c=d.indexOf(a,b);-1!=c&&a.splice(c,1)},d.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(a){return a instanceof HTMLElement}:function(a){return a&&"object"==typeof a&&1==a.nodeType&&"string"==typeof a.nodeName},d.setText=function(){function a(a,c){b=b||(void 0!==document.documentElement.textContent?"textContent":"innerText"),a[b]=c}var b;return a}(),d.getParent=function(a,b){for(;a!=document.body;)if(a=a.parentNode,c(a,b))return a},d.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a},d.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},d.filterFindElements=function(a,b){a=d.makeArray(a);for(var e=[],f=0,g=a.length;g>f;f++){var h=a[f];if(d.isElement(h))if(b){c(h,b)&&e.push(h);for(var i=h.querySelectorAll(b),j=0,k=i.length;k>j;j++)e.push(i[j])}else e.push(h)}return e},d.debounceMethod=function(a,b,c){var d=a.prototype[b],e=b+"Timeout";a.prototype[b]=function(){var a=this[e];a&&clearTimeout(a);var b=arguments,f=this;this[e]=setTimeout(function(){d.apply(f,b),delete f[e]},c||100)}},d.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()};var f=a.console;return d.htmlInit=function(c,e){b(function(){for(var b=d.toDashed(e),g=document.querySelectorAll(".js-"+b),h="data-"+b+"-options",i=0,j=g.length;j>i;i++){var k,l=g[i],m=l.getAttribute(h);try{k=m&&JSON.parse(m)}catch(n){f&&f.error("Error parsing "+h+" on "+l.nodeName.toLowerCase()+(l.id?"#"+l.id:"")+": "+n);continue}var o=new c(l,k),p=a.jQuery;p&&p.data(l,e,o)}})},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(c,d,e,f){return b(a,c,d,e,f)}):"object"==typeof exports?module.exports=b(a,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(a.Outlayer={},a.Outlayer.Item=b(a,a.EventEmitter,a.getSize,a.getStyleProperty,a.fizzyUIUtils))}(window,function(a,b,c,d,e){"use strict";function f(a){for(var b in a)return!1;return b=null,!0}function g(a,b){a&&(this.element=a,this.layout=b,this.position={x:0,y:0},this._create())}function h(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}var i=a.getComputedStyle,j=i?function(a){return i(a,null)}:function(a){return a.currentStyle},k=d("transition"),l=d("transform"),m=k&&l,n=!!d("perspective"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[k],p=["transform","transition","transitionDuration","transitionProperty"],q=function(){for(var a={},b=0,c=p.length;c>b;b++){var e=p[b],f=d(e);f&&f!==e&&(a[e]=f)}return a}();e.extend(g.prototype,b.prototype),g.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.getSize=function(){this.size=c(this.element)},g.prototype.css=function(a){var b=this.element.style;for(var c in a){var d=q[c]||c;b[d]=a[c]}},g.prototype.getPosition=function(){var a=j(this.element),b=this.layout.options,c=b.isOriginLeft,d=b.isOriginTop,e=a[c?"left":"right"],f=a[d?"top":"bottom"],g=this.layout.size,h=-1!=e.indexOf("%")?parseFloat(e)/100*g.width:parseInt(e,10),i=-1!=f.indexOf("%")?parseFloat(f)/100*g.height:parseInt(f,10);h=isNaN(h)?0:h,i=isNaN(i)?0:i,h-=c?g.paddingLeft:g.paddingRight,i-=d?g.paddingTop:g.paddingBottom,this.position.x=h,this.position.y=i},g.prototype.layoutPosition=function(){var a=this.layout.size,b=this.layout.options,c={},d=b.isOriginLeft?"paddingLeft":"paddingRight",e=b.isOriginLeft?"left":"right",f=b.isOriginLeft?"right":"left",g=this.position.x+a[d];c[e]=this.getXValue(g),c[f]="";var h=b.isOriginTop?"paddingTop":"paddingBottom",i=b.isOriginTop?"top":"bottom",j=b.isOriginTop?"bottom":"top",k=this.position.y+a[h];c[i]=this.getYValue(k),c[j]="",this.css(c),this.emitEvent("layout",[this])},g.prototype.getXValue=function(a){var b=this.layout.options;return b.percentPosition&&!b.isHorizontal?a/this.layout.size.width*100+"%":a+"px"},g.prototype.getYValue=function(a){var b=this.layout.options;return b.percentPosition&&b.isHorizontal?a/this.layout.size.height*100+"%":a+"px"},g.prototype._transitionTo=function(a,b){this.getPosition();var c=this.position.x,d=this.position.y,e=parseInt(a,10),f=parseInt(b,10),g=e===this.position.x&&f===this.position.y;if(this.setPosition(a,b),g&&!this.isTransitioning)return void this.layoutPosition();var h=a-c,i=b-d,j={};j.transform=this.getTranslate(h,i),this.transition({to:j,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},g.prototype.getTranslate=function(a,b){var c=this.layout.options;return a=c.isOriginLeft?a:-a,b=c.isOriginTop?b:-b,n?"translate3d("+a+"px, "+b+"px, 0)":"translate("+a+"px, "+b+"px)"},g.prototype.goTo=function(a,b){this.setPosition(a,b),this.layoutPosition()},g.prototype.moveTo=m?g.prototype._transitionTo:g.prototype.goTo,g.prototype.setPosition=function(a,b){this.position.x=parseInt(a,10),this.position.y=parseInt(b,10)},g.prototype._nonTransition=function(a){this.css(a.to),a.isCleaning&&this._removeStyles(a.to);
  for(var b in a.onTransitionEnd)a.onTransitionEnd[b].call(this)},g.prototype._transition=function(a){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(a);var b=this._transn;for(var c in a.onTransitionEnd)b.onEnd[c]=a.onTransitionEnd[c];for(c in a.to)b.ingProperties[c]=!0,a.isCleaning&&(b.clean[c]=!0);if(a.from){this.css(a.from);var d=this.element.offsetHeight;d=null}this.enableTransition(a.to),this.css(a.to),this.isTransitioning=!0};var r="opacity,"+h(q.transform||"transform");g.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:r,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(o,this,!1))},g.prototype.transition=g.prototype[k?"_transition":"_nonTransition"],g.prototype.onwebkitTransitionEnd=function(a){this.ontransitionend(a)},g.prototype.onotransitionend=function(a){this.ontransitionend(a)};var s={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};g.prototype.ontransitionend=function(a){if(a.target===this.element){var b=this._transn,c=s[a.propertyName]||a.propertyName;if(delete b.ingProperties[c],f(b.ingProperties)&&this.disableTransition(),c in b.clean&&(this.element.style[a.propertyName]="",delete b.clean[c]),c in b.onEnd){var d=b.onEnd[c];d.call(this),delete b.onEnd[c]}this.emitEvent("transitionEnd",[this])}},g.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},g.prototype._removeStyles=function(a){var b={};for(var c in a)b[c]="";this.css(b)};var t={transitionProperty:"",transitionDuration:""};return g.prototype.removeTransitionStyles=function(){this.css(t)},g.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},g.prototype.remove=function(){if(!k||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var a=this;this.once("transitionEnd",function(){a.removeElem()}),this.hide()},g.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("visibleStyle");b[c]=this.onRevealTransitionEnd,this.transition({from:a.hiddenStyle,to:a.visibleStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},g.prototype.getHideRevealTransitionEndProperty=function(a){var b=this.layout.options[a];if(b.opacity)return"opacity";for(var c in b)return c},g.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");b[c]=this.onHideTransitionEnd,this.transition({from:a.visibleStyle,to:a.hiddenStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},g.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},g}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,d,e,f,g){return b(a,c,d,e,f,g)}):"object"==typeof exports?module.exports=b(a,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):a.Outlayer=b(a,a.eventie,a.EventEmitter,a.getSize,a.fizzyUIUtils,a.Outlayer.Item)}(window,function(a,b,c,d,e,f){"use strict";function g(a,b){var c=e.getQueryElement(a);if(!c)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(c||a)));this.element=c,i&&(this.$element=i(this.element)),this.options=e.extend({},this.constructor.defaults),this.option(b);var d=++k;this.element.outlayerGUID=d,l[d]=this,this._create(),this.options.isInitLayout&&this.layout()}var h=a.console,i=a.jQuery,j=function(){},k=0,l={};return g.namespace="outlayer",g.Item=f,g.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e.extend(g.prototype,c.prototype),g.prototype.option=function(a){e.extend(this.options,a)},g.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},g.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},g.prototype._itemize=function(a){for(var b=this._filterFindItemElements(a),c=this.constructor.Item,d=[],e=0,f=b.length;f>e;e++){var g=b[e],h=new c(g,this);d.push(h)}return d},g.prototype._filterFindItemElements=function(a){return e.filterFindElements(a,this.options.itemSelector)},g.prototype.getItemElements=function(){for(var a=[],b=0,c=this.items.length;c>b;b++)a.push(this.items[b].element);return a},g.prototype.layout=function(){this._resetLayout(),this._manageStamps();var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,a),this._isLayoutInited=!0},g.prototype._init=g.prototype.layout,g.prototype._resetLayout=function(){this.getSize()},g.prototype.getSize=function(){this.size=d(this.element)},g.prototype._getMeasurement=function(a,b){var c,f=this.options[a];f?("string"==typeof f?c=this.element.querySelector(f):e.isElement(f)&&(c=f),this[a]=c?d(c)[b]:f):this[a]=0},g.prototype.layoutItems=function(a,b){a=this._getItemsForLayout(a),this._layoutItems(a,b),this._postLayout()},g.prototype._getItemsForLayout=function(a){for(var b=[],c=0,d=a.length;d>c;c++){var e=a[c];e.isIgnored||b.push(e)}return b},g.prototype._layoutItems=function(a,b){if(this._emitCompleteOnItems("layout",a),a&&a.length){for(var c=[],d=0,e=a.length;e>d;d++){var f=a[d],g=this._getItemLayoutPosition(f);g.item=f,g.isInstant=b||f.isLayoutInstant,c.push(g)}this._processLayoutQueue(c)}},g.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},g.prototype._processLayoutQueue=function(a){for(var b=0,c=a.length;c>b;b++){var d=a[b];this._positionItem(d.item,d.x,d.y,d.isInstant)}},g.prototype._positionItem=function(a,b,c,d){d?a.goTo(b,c):a.moveTo(b,c)},g.prototype._postLayout=function(){this.resizeContainer()},g.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var a=this._getContainerSize();a&&(this._setContainerMeasure(a.width,!0),this._setContainerMeasure(a.height,!1))}},g.prototype._getContainerSize=j,g.prototype._setContainerMeasure=function(a,b){if(void 0!==a){var c=this.size;c.isBorderBox&&(a+=b?c.paddingLeft+c.paddingRight+c.borderLeftWidth+c.borderRightWidth:c.paddingBottom+c.paddingTop+c.borderTopWidth+c.borderBottomWidth),a=Math.max(a,0),this.element.style[b?"width":"height"]=a+"px"}},g.prototype._emitCompleteOnItems=function(a,b){function c(){e.dispatchEvent(a+"Complete",null,[b])}function d(){g++,g===f&&c()}var e=this,f=b.length;if(!b||!f)return void c();for(var g=0,h=0,i=b.length;i>h;h++){var j=b[h];j.once(a,d)}},g.prototype.dispatchEvent=function(a,b,c){var d=b?[b].concat(c):c;if(this.emitEvent(a,d),i)if(this.$element=this.$element||i(this.element),b){var e=i.Event(b);e.type=a,this.$element.trigger(e,c)}else this.$element.trigger(a,c)},g.prototype.ignore=function(a){var b=this.getItem(a);b&&(b.isIgnored=!0)},g.prototype.unignore=function(a){var b=this.getItem(a);b&&delete b.isIgnored},g.prototype.stamp=function(a){if(a=this._find(a)){this.stamps=this.stamps.concat(a);for(var b=0,c=a.length;c>b;b++){var d=a[b];this.ignore(d)}}},g.prototype.unstamp=function(a){if(a=this._find(a))for(var b=0,c=a.length;c>b;b++){var d=a[b];e.removeFrom(this.stamps,d),this.unignore(d)}},g.prototype._find=function(a){return a?("string"==typeof a&&(a=this.element.querySelectorAll(a)),a=e.makeArray(a)):void 0},g.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var a=0,b=this.stamps.length;b>a;a++){var c=this.stamps[a];this._manageStamp(c)}}},g.prototype._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),b=this.size;this._boundingRect={left:a.left+b.paddingLeft+b.borderLeftWidth,top:a.top+b.paddingTop+b.borderTopWidth,right:a.right-(b.paddingRight+b.borderRightWidth),bottom:a.bottom-(b.paddingBottom+b.borderBottomWidth)}},g.prototype._manageStamp=j,g.prototype._getElementOffset=function(a){var b=a.getBoundingClientRect(),c=this._boundingRect,e=d(a),f={left:b.left-c.left-e.marginLeft,top:b.top-c.top-e.marginTop,right:c.right-b.right-e.marginRight,bottom:c.bottom-b.bottom-e.marginBottom};return f},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.bindResize=function(){this.isResizeBound||(b.bind(a,"resize",this),this.isResizeBound=!0)},g.prototype.unbindResize=function(){this.isResizeBound&&b.unbind(a,"resize",this),this.isResizeBound=!1},g.prototype.onresize=function(){function a(){b.resize(),delete b.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var b=this;this.resizeTimeout=setTimeout(a,100)},g.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},g.prototype.needsResizeLayout=function(){var a=d(this.element),b=this.size&&a;return b&&a.innerWidth!==this.size.innerWidth},g.prototype.addItems=function(a){var b=this._itemize(a);return b.length&&(this.items=this.items.concat(b)),b},g.prototype.appended=function(a){var b=this.addItems(a);b.length&&(this.layoutItems(b,!0),this.reveal(b))},g.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){var c=this.items.slice(0);this.items=b.concat(c),this._resetLayout(),this._manageStamps(),this.layoutItems(b,!0),this.reveal(b),this.layoutItems(c)}},g.prototype.reveal=function(a){this._emitCompleteOnItems("reveal",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.reveal()}},g.prototype.hide=function(a){this._emitCompleteOnItems("hide",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.hide()}},g.prototype.revealItemElements=function(a){var b=this.getItems(a);this.reveal(b)},g.prototype.hideItemElements=function(a){var b=this.getItems(a);this.hide(b)},g.prototype.getItem=function(a){for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];if(d.element===a)return d}},g.prototype.getItems=function(a){a=e.makeArray(a);for(var b=[],c=0,d=a.length;d>c;c++){var f=a[c],g=this.getItem(f);g&&b.push(g)}return b},g.prototype.remove=function(a){var b=this.getItems(a);if(this._emitCompleteOnItems("remove",b),b&&b.length)for(var c=0,d=b.length;d>c;c++){var f=b[c];f.remove(),e.removeFrom(this.items,f)}},g.prototype.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="";for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];d.destroy()}this.unbindResize();var e=this.element.outlayerGUID;delete l[e],delete this.element.outlayerGUID,i&&i.removeData(this.element,this.constructor.namespace)},g.data=function(a){a=e.getQueryElement(a);var b=a&&a.outlayerGUID;return b&&l[b]},g.create=function(a,b){function c(){g.apply(this,arguments)}return Object.create?c.prototype=Object.create(g.prototype):e.extend(c.prototype,g.prototype),c.prototype.constructor=c,c.defaults=e.extend({},g.defaults),e.extend(c.defaults,b),c.prototype.settings={},c.namespace=a,c.data=g.data,c.Item=function(){f.apply(this,arguments)},c.Item.prototype=new f,e.htmlInit(c,a),i&&i.bridget&&i.bridget(a,c),c},g.Item=f,g}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],b):"object"==typeof exports?module.exports=b(require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.Item=b(a.Outlayer))}(window,function(a){"use strict";function b(){a.Item.apply(this,arguments)}b.prototype=new a.Item,b.prototype._create=function(){this.id=this.layout.itemGUID++,a.Item.prototype._create.call(this),this.sortData={}},b.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var a=this.layout.options.getSortData,b=this.layout._sorters;for(var c in a){var d=b[c];this.sortData[c]=d(this.element,this)}}};var c=b.prototype.destroy;return b.prototype.destroy=function(){c.apply(this,arguments),this.css({display:""})},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],b):"object"==typeof exports?module.exports=b(require("get-size"),require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.LayoutMode=b(a.getSize,a.Outlayer))}(window,function(a,b){"use strict";function c(a){this.isotope=a,a&&(this.options=a.options[this.namespace],this.element=a.element,this.items=a.filteredItems,this.size=a.size)}return function(){function a(a){return function(){return b.prototype[a].apply(this.isotope,arguments)}}for(var d=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],e=0,f=d.length;f>e;e++){var g=d[e];c.prototype[g]=a(g)}}(),c.prototype.needsVerticalResizeLayout=function(){var b=a(this.isotope.element),c=this.isotope.size&&b;return c&&b.innerHeight!=this.isotope.size.innerHeight},c.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},c.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},c.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},c.prototype.getSegmentSize=function(a,b){var c=a+b,d="outer"+b;if(this._getMeasurement(c,d),!this[c]){var e=this.getFirstItemSize();this[c]=e&&e[d]||this.isotope.size["inner"+b]}},c.prototype.getFirstItemSize=function(){var b=this.isotope.filteredItems[0];return b&&b.element&&a(b.element)},c.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},c.prototype.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},c.modes={},c.create=function(a,b){function d(){c.apply(this,arguments)}return d.prototype=new c,b&&(d.options=b),d.prototype.namespace=a,c.modes[a]=d,d},c}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],b):"object"==typeof exports?module.exports=b(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):a.Masonry=b(a.Outlayer,a.getSize,a.fizzyUIUtils)}(window,function(a,b,c){var d=a.create("masonry");return d.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var a=this.cols;for(this.colYs=[];a--;)this.colYs.push(0);this.maxY=0},d.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var a=this.items[0],c=a&&a.element;this.columnWidth=c&&b(c).outerWidth||this.containerWidth}var d=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,f=e/d,g=d-e%d,h=g&&1>g?"round":"floor";f=Math[h](f),this.cols=Math.max(f,1)},d.prototype.getContainerWidth=function(){var a=this.options.isFitWidth?this.element.parentNode:this.element,c=b(a);this.containerWidth=c&&c.innerWidth},d.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth%this.columnWidth,d=b&&1>b?"round":"ceil",e=Math[d](a.size.outerWidth/this.columnWidth);e=Math.min(e,this.cols);for(var f=this._getColGroup(e),g=Math.min.apply(Math,f),h=c.indexOf(f,g),i={x:this.columnWidth*h,y:g},j=g+a.size.outerHeight,k=this.cols+1-f.length,l=0;k>l;l++)this.colYs[h+l]=j;return i},d.prototype._getColGroup=function(a){if(2>a)return this.colYs;for(var b=[],c=this.cols+1-a,d=0;c>d;d++){var e=this.colYs.slice(d,d+a);b[d]=Math.max.apply(Math,e)}return b},d.prototype._manageStamp=function(a){var c=b(a),d=this._getElementOffset(a),e=this.options.isOriginLeft?d.left:d.right,f=e+c.outerWidth,g=Math.floor(e/this.columnWidth);g=Math.max(0,g);var h=Math.floor(f/this.columnWidth);h-=f%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var i=(this.options.isOriginTop?d.top:d.bottom)+c.outerHeight,j=g;h>=j;j++)this.colYs[j]=Math.max(i,this.colYs[j])},d.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var a={height:this.maxY};return this.options.isFitWidth&&(a.width=this._getContainerFitWidth()),a},d.prototype._getContainerFitWidth=function(){for(var a=0,b=this.cols;--b&&0===this.colYs[b];)a++;return(this.cols-a)*this.columnWidth-this.gutter},d.prototype.needsResizeLayout=function(){var a=this.containerWidth;return this.getContainerWidth(),a!==this.containerWidth},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],b):"object"==typeof exports?module.exports=b(require("../layout-mode"),require("masonry-layout")):b(a.Isotope.LayoutMode,a.Masonry)}(window,function(a,b){"use strict";function c(a,b){for(var c in b)a[c]=b[c];return a}var d=a.create("masonry"),e=d.prototype._getElementOffset,f=d.prototype.layout,g=d.prototype._getMeasurement;c(d.prototype,b.prototype),d.prototype._getElementOffset=e,d.prototype.layout=f,d.prototype._getMeasurement=g;var h=d.prototype.measureColumns;d.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,h.call(this)};var i=d.prototype._manageStamp;return d.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,i.apply(this,arguments)},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("fitRows");return b.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth+this.gutter,c=this.isotope.size.innerWidth+this.gutter;0!==this.x&&b+this.x>c&&(this.x=0,this.y=this.maxY);var d={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+a.size.outerHeight),this.x+=b,d},b.prototype._getContainerSize=function(){return{height:this.maxY}},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("vertical",{horizontalAlignment:0});return b.prototype._resetLayout=function(){this.y=0},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=(this.isotope.size.innerWidth-a.size.outerWidth)*this.options.horizontalAlignment,c=this.y;return this.y+=a.size.outerHeight,{x:b,y:c}},b.prototype._getContainerSize=function(){return{height:this.y}},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(c,d,e,f,g,h){return b(a,c,d,e,f,g,h)}):"object"==typeof exports?module.exports=b(a,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):a.Isotope=b(a,a.Outlayer,a.getSize,a.matchesSelector,a.fizzyUIUtils,a.Isotope.Item,a.Isotope.LayoutMode)}(window,function(a,b,c,d,e,f,g){function h(a,b){return function(c,d){for(var e=0,f=a.length;f>e;e++){var g=a[e],h=c.sortData[g],i=d.sortData[g];if(h>i||i>h){var j=void 0!==b[g]?b[g]:b,k=j?1:-1;return(h>i?1:-1)*k}}return 0}}var i=a.jQuery,j=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s+|\s+$/g,"")},k=document.documentElement,l=k.textContent?function(a){return a.textContent}:function(a){return a.innerText},m=b.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});m.Item=f,m.LayoutMode=g,m.prototype._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),b.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var a in g.modes)this._initLayoutMode(a)},m.prototype.reloadItems=function(){this.itemGUID=0,b.prototype.reloadItems.call(this)},m.prototype._itemize=function(){for(var a=b.prototype._itemize.apply(this,arguments),c=0,d=a.length;d>c;c++){var e=a[c];e.id=this.itemGUID++}return this._updateItemsSortData(a),a},m.prototype._initLayoutMode=function(a){var b=g.modes[a],c=this.options[a]||{};this.options[a]=b.options?e.extend(b.options,c):c,this.modes[a]=new b(this)},m.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?void this.arrange():void this._layout()},m.prototype._layout=function(){var a=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,a),this._isLayoutInited=!0},m.prototype.arrange=function(a){function b(){d.reveal(c.needReveal),d.hide(c.needHide)}this.option(a),this._getIsInstant();var c=this._filter(this.items);this.filteredItems=c.matches;var d=this;this._bindArrangeComplete(),this._isInstant?this._noTransition(b):b(),this._sort(),this._layout()},m.prototype._init=m.prototype.arrange,m.prototype._getIsInstant=function(){var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=a,a},m.prototype._bindArrangeComplete=function(){function a(){b&&c&&d&&e.dispatchEvent("arrangeComplete",null,[e.filteredItems])}var b,c,d,e=this;this.once("layoutComplete",function(){b=!0,a()}),this.once("hideComplete",function(){c=!0,a()}),this.once("revealComplete",function(){d=!0,a()})},m.prototype._filter=function(a){var b=this.options.filter;b=b||"*";for(var c=[],d=[],e=[],f=this._getFilterTest(b),g=0,h=a.length;h>g;g++){var i=a[g];if(!i.isIgnored){var j=f(i);j&&c.push(i),j&&i.isHidden?d.push(i):j||i.isHidden||e.push(i)}}return{matches:c,needReveal:d,needHide:e}},m.prototype._getFilterTest=function(a){return i&&this.options.isJQueryFiltering?function(b){return i(b.element).is(a)}:"function"==typeof a?function(b){return a(b.element)}:function(b){return d(b.element,a)}},m.prototype.updateSortData=function(a){var b;a?(a=e.makeArray(a),b=this.getItems(a)):b=this.items,this._getSorters(),this._updateItemsSortData(b)},m.prototype._getSorters=function(){var a=this.options.getSortData;for(var b in a){var c=a[b];this._sorters[b]=n(c)}},m.prototype._updateItemsSortData=function(a){for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.updateSortData()}};var n=function(){function a(a){if("string"!=typeof a)return a;var c=j(a).split(" "),d=c[0],e=d.match(/^\[(.+)\]$/),f=e&&e[1],g=b(f,d),h=m.sortDataParsers[c[1]];return a=h?function(a){return a&&h(g(a))}:function(a){return a&&g(a)}}function b(a,b){var c;return c=a?function(b){return b.getAttribute(a)}:function(a){var c=a.querySelector(b);return c&&l(c)}}return a}();m.sortDataParsers={parseInt:function(a){return parseInt(a,10)},parseFloat:function(a){return parseFloat(a)}},m.prototype._sort=function(){var a=this.options.sortBy;if(a){var b=[].concat.apply(a,this.sortHistory),c=h(b,this.options.sortAscending);this.filteredItems.sort(c),a!=this.sortHistory[0]&&this.sortHistory.unshift(a)}},m.prototype._mode=function(){var a=this.options.layoutMode,b=this.modes[a];if(!b)throw new Error("No layout mode: "+a);return b.options=this.options[a],b},m.prototype._resetLayout=function(){b.prototype._resetLayout.call(this),this._mode()._resetLayout()},m.prototype._getItemLayoutPosition=function(a){return this._mode()._getItemLayoutPosition(a)},m.prototype._manageStamp=function(a){this._mode()._manageStamp(a)},m.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},m.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},m.prototype.appended=function(a){var b=this.addItems(a);if(b.length){var c=this._filterRevealAdded(b);this.filteredItems=this.filteredItems.concat(c)}},m.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){this._resetLayout(),this._manageStamps();var c=this._filterRevealAdded(b);this.layoutItems(this.filteredItems),this.filteredItems=c.concat(this.filteredItems),this.items=b.concat(this.items)}},m.prototype._filterRevealAdded=function(a){var b=this._filter(a);return this.hide(b.needHide),this.reveal(b.matches),this.layoutItems(b.matches,!0),b.matches},m.prototype.insert=function(a){var b=this.addItems(a);if(b.length){var c,d,e=b.length;for(c=0;e>c;c++)d=b[c],this.element.appendChild(d.element);var f=this._filter(b).matches;for(c=0;e>c;c++)b[c].isLayoutInstant=!0;for(this.arrange(),c=0;e>c;c++)delete b[c].isLayoutInstant;this.reveal(f)}};var o=m.prototype.remove;return m.prototype.remove=function(a){a=e.makeArray(a);var b=this.getItems(a);o.call(this,a);var c=b&&b.length;if(c)for(var d=0;c>d;d++){var f=b[d];e.removeFrom(this.filteredItems,f)}},m.prototype.shuffle=function(){for(var a=0,b=this.items.length;b>a;a++){var c=this.items[a];c.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},m.prototype._noTransition=function(a){var b=this.options.transitionDuration;this.options.transitionDuration=0;var c=a.call(this);return this.options.transitionDuration=b,c},m.prototype.getFilteredItemElements=function(){for(var a=[],b=0,c=this.filteredItems.length;c>b;b++)a.push(this.filteredItems[b].element);return a},m}),"undefined"==typeof Tablesaw&&(Tablesaw={i18n:{modes:["Stack","Swipe","Toggle"],columns:'Col<span class="a11y-sm">umn</span>s',columnBtnText:"Columns",columnsDialogError:"No eligible columns.",sort:"Sort"},mustard:"querySelector"in document&&(!window.blackberry||window.WebKitPoint)&&!window.operamini}),Tablesaw.config||(Tablesaw.config={}),Tablesaw.mustard&&jQuery(document.documentElement).addClass("tablesaw-enhanced"),function($){var pluginName="table",classes={toolbar:"tablesaw-bar"},events={create:"tablesawcreate",destroy:"tablesawdestroy",refresh:"tablesawrefresh"},defaultMode="stack",initSelector="table[data-tablesaw-mode],table[data-tablesaw-sortable]",Table=function(element){if(!element)throw new Error("Tablesaw requires an element.");this.table=element,this.$table=$(element),this.mode=this.$table.attr("data-tablesaw-mode")||defaultMode,this.init()};Table.prototype.init=function(){this.$table.attr("id")||this.$table.attr("id",pluginName+"-"+Math.round(1e4*Math.random())),this.createToolbar();var colstart=this._initCells();this.$table.trigger(events.create,[this,colstart])},Table.prototype._initCells=function(){var colstart,thrs=this.table.querySelectorAll("thead tr"),self=this;return $(thrs).each(function(){var coltally=0;$(this).children().each(function(){var span=parseInt(this.getAttribute("colspan"),10),sel=":nth-child("+(coltally+1)+")";if(colstart=coltally+1,span)for(var k=0;span-1>k;k++)coltally++,sel+=", :nth-child("+(coltally+1)+")";this.cells=self.$table.find("tr").not(thrs[0]).not(this).children().filter(sel),coltally++})}),colstart},Table.prototype.refresh=function(){this._initCells(),this.$table.trigger(events.refresh)},Table.prototype.createToolbar=function(){var $toolbar=this.$table.prev().filter("."+classes.toolbar);$toolbar.length||($toolbar=$("<div>").addClass(classes.toolbar).insertBefore(this.$table)),this.$toolbar=$toolbar,this.mode&&this.$toolbar.addClass("mode-"+this.mode)},Table.prototype.destroy=function(){this.$table.prev().filter("."+classes.toolbar).each(function(){this.className=this.className.replace(/\bmode\-\w*\b/gi,"")});var tableId=this.$table.attr("id");$(document).unbind("."+tableId),$(window).unbind("."+tableId),this.$table.trigger(events.destroy,[this]),this.$table.removeAttr("data-tablesaw-mode"),this.$table.removeData(pluginName)},$.fn[pluginName]=function(){return this.each(function(){var $t=$(this);if(!$t.data(pluginName)){var table=new Table(this);$t.data(pluginName,table)}})},$(document).on("enhance.tablesaw",function(e){Tablesaw.mustard&&$(e.target).find(initSelector)[pluginName]()})}(jQuery),function(win,$,undefined){var classes={stackTable:"tablesaw-stack",cellLabels:"tablesaw-cell-label",cellContentLabels:"tablesaw-cell-content"},data={obj:"tablesaw-stack"},attrs={labelless:"data-tablesaw-no-labels",hideempty:"data-tablesaw-hide-empty"},Stack=function(element){this.$table=$(element),this.labelless=this.$table.is("["+attrs.labelless+"]"),this.hideempty=this.$table.is("["+attrs.hideempty+"]"),this.labelless||(this.allHeaders=this.$table.find("th")),this.$table.data(data.obj,this)};Stack.prototype.init=function(colstart){if(this.$table.addClass(classes.stackTable),!this.labelless){var reverseHeaders=$(this.allHeaders),hideempty=this.hideempty;reverseHeaders.each(function(){var $t=$(this),$cells=$(this.cells).filter(function(){return!($(this).parent().is("["+attrs.labelless+"]")||hideempty&&$(this).is(":empty"))}),hierarchyClass=$cells.not(this).filter("thead th").length&&" tablesaw-cell-label-top",$sortableButton=$t.find(".tablesaw-sortable-btn"),html=$sortableButton.length?$sortableButton.html():$t.html();if(""!==html)if(hierarchyClass){var iteration=parseInt($(this).attr("colspan"),10),filter="";iteration&&(filter="td:nth-child("+iteration+"n + "+colstart+")"),$cells.filter(filter).prepend("<b class='"+classes.cellLabels+hierarchyClass+"'>"+html+"</b>")}else $cells.wrapInner("<span class='"+classes.cellContentLabels+"'></span>"),$cells.prepend("<b class='"+classes.cellLabels+"'>"+html+"</b>")})}},Stack.prototype.destroy=function(){this.$table.removeClass(classes.stackTable),this.$table.find("."+classes.cellLabels).remove(),this.$table.find("."+classes.cellContentLabels).each(function(){$(this).replaceWith(this.childNodes)})},$(document).on("tablesawcreate",function(e,Tablesaw,colstart){if("stack"===Tablesaw.mode){var table=new Stack(Tablesaw.table);table.init(colstart)}}),$(document).on("tablesawdestroy",function(e,Tablesaw){"stack"===Tablesaw.mode&&$(Tablesaw.table).data(data.obj).destroy()})}(this,jQuery),function($){var pluginName="tablesawbtn",methods={_create:function(){return $(this).each(function(){$(this).trigger("beforecreate."+pluginName)[pluginName]("_init").trigger("create."+pluginName)})},_init:function(){var oEl=$(this),sel=this.getElementsByTagName("select")[0];return sel&&$(this).addClass("btn-select")[pluginName]("_select",sel),oEl},_select:function(sel){var update=function(oEl,sel){var label,el,children,opts=$(sel).find("option");if(opts.each(function(){var opt=this;opt.selected&&(label=document.createTextNode(opt.text))}),children=oEl.childNodes,opts.length>0)for(var i=0,l=children.length;l>i;i++)el=children[i],el&&3===el.nodeType&&oEl.replaceChild(label,el)};update(this,sel),$(this).bind("change refresh",function(){update(this,sel)})}};$.fn[pluginName]=function(arrg,a,b,c){return this.each(function(){return arrg&&"string"==typeof arrg?$.fn[pluginName].prototype[arrg].call(this,a,b,c):$(this).data(pluginName+"active")?$(this):($(this).data(pluginName+"active",!0),void $.fn[pluginName].prototype._create.call(this))})},$.extend($.fn[pluginName].prototype,methods)}(jQuery),function(win,$,undefined){var ColumnToggle=function(element){this.$table=$(element),this.classes={columnToggleTable:"tablesaw-columntoggle",columnBtnContain:"tablesaw-columntoggle-btnwrap tablesaw-advance",columnBtn:"tablesaw-columntoggle-btn tablesaw-nav-btn down",popup:"tablesaw-columntoggle-popup",priorityPrefix:"tablesaw-priority-",toolbar:"tablesaw-bar"},this.headers=this.$table.find("tr:first > th"),this.$table.data("tablesaw-coltoggle",this)};ColumnToggle.prototype.init=function(){function openPopup(){$btnContain.addClass("visible"),$menuButton.removeClass("down").addClass("up"),
  $(document).unbind("click."+tableId,closePopup),window.clearTimeout(closeTimeout),closeTimeout=window.setTimeout(function(){$(document).one("click."+tableId,closePopup)},15)}function closePopup(event){event&&$(event.target).closest("."+self.classes.popup).length||($(document).unbind("click."+tableId),$menuButton.removeClass("up").addClass("down"),$btnContain.removeClass("visible"))}var tableId,id,$menuButton,$popup,$menu,$btnContain,self=this;this.$table.addClass(this.classes.columnToggleTable),tableId=this.$table.attr("id"),id=tableId+"-popup",$btnContain=$("<div class='"+this.classes.columnBtnContain+"'></div>"),$menuButton=$("<a href='#"+id+"' class='btn btn-micro "+this.classes.columnBtn+"' data-popup-link><span>"+Tablesaw.i18n.columnBtnText+"</span></a>"),$popup=$("<div class='dialog-table-coltoggle "+this.classes.popup+"' id='"+id+"'></div>"),$menu=$("<div class='btn-group'></div>");var hasNonPersistentHeaders=!1;$(this.headers).not("td").each(function(){var $this=$(this),priority=$this.attr("data-tablesaw-priority"),$cells=self.$getCells(this);priority&&"persist"!==priority&&($cells.addClass(self.classes.priorityPrefix+priority),$("<label><input type='checkbox' checked>"+$this.text()+"</label>").appendTo($menu).children(0).data("tablesaw-header",this),hasNonPersistentHeaders=!0)}),hasNonPersistentHeaders||$menu.append("<label>"+Tablesaw.i18n.columnsDialogError+"</label>"),$menu.appendTo($popup),$menu.find('input[type="checkbox"]').on("change",function(e){var checked=e.target.checked;self.$getCellsFromCheckbox(e.target).toggleClass("tablesaw-cell-hidden",!checked).toggleClass("tablesaw-cell-visible",checked),self.$table.trigger("tablesawcolumns")}),$menuButton.appendTo($btnContain),$btnContain.appendTo(this.$table.prev().filter("."+this.classes.toolbar));var closeTimeout;$menuButton.on("click.tablesaw",function(event){event.preventDefault(),$btnContain.is(".visible")?closePopup():openPopup()}),$popup.appendTo($btnContain),this.$menu=$menu,$(window).on("resize."+tableId,function(){self.refreshToggle()}),this.refreshToggle()},ColumnToggle.prototype.$getCells=function(th){return $(th).add(th.cells)},ColumnToggle.prototype.$getCellsFromCheckbox=function(checkbox){var th=$(checkbox).data("tablesaw-header");return this.$getCells(th)},ColumnToggle.prototype.refreshToggle=function(){var self=this;this.$menu.find("input").each(function(){this.checked="table-cell"===self.$getCellsFromCheckbox(this).eq(0).css("display")})},ColumnToggle.prototype.refreshPriority=function(){var self=this;$(this.headers).not("td").each(function(){var $this=$(this),priority=$this.attr("data-tablesaw-priority"),$cells=$this.add(this.cells);priority&&"persist"!==priority&&$cells.addClass(self.classes.priorityPrefix+priority)})},ColumnToggle.prototype.destroy=function(){this.$table.removeClass(this.classes.columnToggleTable),this.$table.find("th, td").each(function(){var $cell=$(this);$cell.removeClass("tablesaw-cell-hidden").removeClass("tablesaw-cell-visible"),this.className=this.className.replace(/\bui\-table\-priority\-\d\b/g,"")})},$(document).on("tablesawcreate",function(e,Tablesaw){if("columntoggle"===Tablesaw.mode){var table=new ColumnToggle(Tablesaw.table);table.init()}}),$(document).on("tablesawdestroy",function(e,Tablesaw){"columntoggle"===Tablesaw.mode&&$(Tablesaw.table).data("tablesaw-coltoggle").destroy()})}(this,jQuery),function(win,$,undefined){function isIE8(){var div=document.createElement("div"),all=div.getElementsByTagName("i");return div.innerHTML="<!--[if lte IE 8]><i></i><![endif]-->",!!all.length}function createSwipeTable($table){function $getCells(headerCell){return $(headerCell.cells).add(headerCell)}function showColumn(headerCell){$getCells(headerCell).removeClass("tablesaw-cell-hidden")}function hideColumn(headerCell){$getCells(headerCell).addClass("tablesaw-cell-hidden")}function persistColumn(headerCell){$getCells(headerCell).addClass("tablesaw-cell-persist")}function isPersistent(headerCell){return $(headerCell).is('[data-tablesaw-priority="persist"]')}function unmaintainWidths(){$table.removeClass(persistWidths),$("#"+tableId+"-persist").remove()}function maintainWidths(){var newHash,prefix="#"+tableId+".tablesaw-swipe ",styles=[],tableWidth=$table.width(),hash=[];$headerCells.each(function(index){var width;isPersistent(this)&&(width=$(this).outerWidth(),.75*tableWidth>width&&(hash.push(index+"-"+width),styles.push(prefix+" .tablesaw-cell-persist:nth-child("+(index+1)+") { width: "+width+"px; }")))}),newHash=hash.join("_"),$table.addClass(persistWidths);var $style=$("#"+tableId+"-persist");$style.length&&$style.data("hash")===newHash||($style.remove(),styles.length&&$("<style>"+styles.join("\n")+"</style>").attr("id",tableId+"-persist").data("hash",newHash).appendTo($head))}function getNext(){var checkFound,next=[];return $headerCellsNoPersist.each(function(i){var $t=$(this),isHidden="none"===$t.css("display")||$t.is(".tablesaw-cell-hidden");if(isHidden||checkFound){if(isHidden&&checkFound)return next[1]=i,!1}else checkFound=!0,next[0]=i}),next}function getPrev(){var next=getNext();return[next[1]-1,next[0]-1]}function nextpair(fwd){return fwd?getNext():getPrev()}function canAdvance(pair){return pair[1]>-1&&pair[1]<$headerCellsNoPersist.length}function matchesMedia(){var matchMedia=$table.attr("data-tablesaw-swipe-media");return!matchMedia||"matchMedia"in win&&win.matchMedia(matchMedia).matches}function fakeBreakpoints(){if(matchesMedia()){var extraPaddingPixels=20,containerWidth=$table.parent().width(),persist=[],sum=0,sums=[],visibleNonPersistantCount=$headerCells.length;$headerCells.each(function(index){var $t=$(this),isPersist=$t.is('[data-tablesaw-priority="persist"]');persist.push(isPersist),sum+=headerWidths[index]+(isPersist?0:extraPaddingPixels),sums.push(sum),(isPersist||sum>containerWidth)&&visibleNonPersistantCount--});var needsNonPersistentColumn=0===visibleNonPersistantCount;$headerCells.each(function(index){return persist[index]?void persistColumn(this):void(sums[index]<=containerWidth||needsNonPersistentColumn?(needsNonPersistentColumn=!1,showColumn(this)):hideColumn(this))}),supportsNthChild&&unmaintainWidths(),$table.trigger("tablesawcolumns")}}function advance(fwd){var pair=nextpair(fwd);canAdvance(pair)&&(isNaN(pair[0])&&(fwd?pair[0]=0:pair[0]=$headerCellsNoPersist.length-1),supportsNthChild&&maintainWidths(),hideColumn($headerCellsNoPersist.get(pair[0])),showColumn($headerCellsNoPersist.get(pair[1])),$table.trigger("tablesawcolumns"))}function getCoord(event,key){return(event.touches||event.originalEvent.touches)[0][key]}var $btns=$("<div class='tablesaw-advance'></div>"),$prevBtn=$("<a href='#' class='tablesaw-nav-btn btn btn-micro left' title='Previous Column'></a>").appendTo($btns),$nextBtn=$("<a href='#' class='tablesaw-nav-btn btn btn-micro right' title='Next Column'></a>").appendTo($btns),hideBtn="disabled",persistWidths="tablesaw-fix-persist",$headerCells=$table.find("thead th"),$headerCellsNoPersist=$headerCells.not('[data-tablesaw-priority="persist"]'),headerWidths=[],$head=$(document.head||"head"),tableId=$table.attr("id"),supportsNthChild=!isIE8();if(!$headerCells.length)throw new Error("tablesaw swipe: no header cells found. Are you using <th> inside of <thead>?");$table.css("width","auto"),$headerCells.each(function(){headerWidths.push($(this).outerWidth())}),$table.css("width",""),$btns.appendTo($table.prev().filter(".tablesaw-bar")),$table.addClass("tablesaw-swipe"),tableId||(tableId="tableswipe-"+Math.round(1e4*Math.random()),$table.attr("id",tableId)),$prevBtn.add($nextBtn).click(function(e){advance(!!$(e.target).closest($nextBtn).length),e.preventDefault()}),$table.bind("touchstart.swipetoggle",function(e){var x,y,originX=getCoord(e,"pageX"),originY=getCoord(e,"pageY");$(win).off("resize",fakeBreakpoints),$(this).bind("touchmove",function(e){x=getCoord(e,"pageX"),y=getCoord(e,"pageY");var cfg=Tablesaw.config.swipe;Math.abs(x-originX)>cfg.horizontalThreshold&&Math.abs(y-originY)<cfg.verticalThreshold&&e.preventDefault()}).bind("touchend.swipetoggle",function(){var cfg=Tablesaw.config.swipe;Math.abs(y-originY)<cfg.verticalThreshold&&(x-originX<-1*cfg.horizontalThreshold&&advance(!0),x-originX>cfg.horizontalThreshold&&advance(!1)),window.setTimeout(function(){$(win).on("resize",fakeBreakpoints)},300),$(this).unbind("touchmove touchend")})}).bind("tablesawcolumns.swipetoggle",function(){$prevBtn[canAdvance(getPrev())?"removeClass":"addClass"](hideBtn),$nextBtn[canAdvance(getNext())?"removeClass":"addClass"](hideBtn)}).bind("tablesawnext.swipetoggle",function(){advance(!0)}).bind("tablesawprev.swipetoggle",function(){advance(!1)}).bind("tablesawdestroy.swipetoggle",function(){var $t=$(this);$t.removeClass("tablesaw-swipe"),$t.prev().filter(".tablesaw-bar").find(".tablesaw-advance").remove(),$(win).off("resize",fakeBreakpoints),$t.unbind(".swipetoggle")}),fakeBreakpoints(),$(win).on("resize",fakeBreakpoints)}$.extend(Tablesaw.config,{swipe:{horizontalThreshold:15,verticalThreshold:30}}),$(document).on("tablesawcreate",function(e,Tablesaw){"swipe"===Tablesaw.mode&&createSwipeTable(Tablesaw.$table)})}(this,jQuery),function($){function getSortValue(cell){return $.map(cell.childNodes,function(el){var $el=$(el);if($el.is("input, select"))return $el.val();if(!$el.hasClass("tablesaw-cell-label"))return $.trim($el.text())}).join("")}var pluginName="tablesaw-sortable",initSelector="table[data-"+pluginName+"]",sortableSwitchSelector="[data-"+pluginName+"-switch]",attrs={defaultCol:"data-tablesaw-sortable-default-col",numericCol:"data-tablesaw-sortable-numeric"},classes={head:pluginName+"-head",ascend:pluginName+"-ascending",descend:pluginName+"-descending",switcher:pluginName+"-switch",tableToolbar:"tablesaw-toolbar",sortButton:pluginName+"-btn"},methods={_create:function(o){return $(this).each(function(){var init=$(this).data("init"+pluginName);return init?!1:void $(this).data("init"+pluginName,!0).trigger("beforecreate."+pluginName)[pluginName]("_init",o).trigger("create."+pluginName)})},_init:function(){var heads,$switcher,el=$(this),addClassToTable=function(){el.addClass(pluginName)},addClassToHeads=function(h){$.each(h,function(i,v){$(v).addClass(classes.head)})},makeHeadsActionable=function(h,fn){$.each(h,function(i,v){var b=$("<button class='"+classes.sortButton+"'/>");b.bind("click",{col:v},fn),$(v).wrapInner(b)})},clearOthers=function(sibs){$.each(sibs,function(i,v){var col=$(v);col.removeAttr(attrs.defaultCol),col.removeClass(classes.ascend),col.removeClass(classes.descend)})},headsOnAction=function(e){if(!$(e.target).is("a[href]")){e.stopPropagation();var head=$(this).parent(),v=e.data.col,newSortValue=heads.index(head);clearOthers(head.siblings()),head.hasClass(classes.descend)?(el[pluginName]("sortBy",v,!0),newSortValue+="_asc"):(el[pluginName]("sortBy",v),newSortValue+="_desc"),$switcher&&$switcher.find("select").val(newSortValue).trigger("refresh"),e.preventDefault()}},handleDefault=function(heads){$.each(heads,function(idx,el){var $el=$(el);$el.is("["+attrs.defaultCol+"]")&&($el.hasClass(classes.descend)||$el.addClass(classes.ascend))})},addSwitcher=function(heads){$switcher=$("<div>").addClass(classes.switcher).addClass(classes.tableToolbar).html(function(){var html=["<label>"+Tablesaw.i18n.sort+":"];return html.push('<span class="btn btn-small">&#160;<select>'),heads.each(function(j){var $t=$(this),isDefaultCol=$t.is("["+attrs.defaultCol+"]"),isDescending=$t.hasClass(classes.descend),hasNumericAttribute=$t.is("[data-sortable-numeric]"),numericCount=0,numericCountMax=5;$(this.cells).slice(0,numericCountMax).each(function(){isNaN(parseInt(getSortValue(this),10))||numericCount++});var isNumeric=numericCount===numericCountMax;hasNumericAttribute||$t.attr("data-sortable-numeric",isNumeric?"":"false"),html.push("<option"+(isDefaultCol&&!isDescending?" selected":"")+' value="'+j+'_asc">'+$t.text()+" "+(isNumeric?"&#x2191;":"(A-Z)")+"</option>"),html.push("<option"+(isDefaultCol&&isDescending?" selected":"")+' value="'+j+'_desc">'+$t.text()+" "+(isNumeric?"&#x2193;":"(Z-A)")+"</option>")}),html.push("</select></span></label>"),html.join("")});var $toolbar=el.prev().filter(".tablesaw-bar"),$firstChild=$toolbar.children().eq(0);$firstChild.length?$switcher.insertBefore($firstChild):$switcher.appendTo($toolbar),$switcher.find(".btn").tablesawbtn(),$switcher.find("select").on("change",function(){var val=$(this).val().split("_"),head=heads.eq(val[0]);clearOthers(head.siblings()),el[pluginName]("sortBy",head.get(0),"asc"===val[1])})};addClassToTable(),heads=el.find("thead th[data-"+pluginName+"-col]"),addClassToHeads(heads),makeHeadsActionable(heads,headsOnAction),handleDefault(heads),el.is(sortableSwitchSelector)&&addSwitcher(heads,el.find("tbody tr:nth-child(-n+3)"))},getColumnNumber:function(col){return $(col).prevAll().length},getTableRows:function(){return $(this).find("tbody tr")},sortRows:function(rows,colNum,ascending,col){var cells,fn,sorted,getCells=function(rows){var cells=[];return $.each(rows,function(i,r){var element=$(r).children().get(colNum);cells.push({element:element,cell:getSortValue(element),rowNum:i})}),cells},getSortFxn=function(ascending,forceNumeric){var fn,regex=/[^\-\+\d\.]/g;return fn=ascending?function(a,b){return forceNumeric?parseFloat(a.cell.replace(regex,""))-parseFloat(b.cell.replace(regex,"")):a.cell.toLowerCase()>b.cell.toLowerCase()?1:-1}:function(a,b){return forceNumeric?parseFloat(b.cell.replace(regex,""))-parseFloat(a.cell.replace(regex,"")):a.cell.toLowerCase()<b.cell.toLowerCase()?1:-1}},applyToRows=function(sorted,rows){var i,l,cur,newRows=[];for(i=0,l=sorted.length;l>i;i++)cur=sorted[i].rowNum,newRows.push(rows[cur]);return newRows};cells=getCells(rows);var customFn=$(col).data("tablesaw-sort");return fn=(customFn&&"function"==typeof customFn?customFn(ascending):!1)||getSortFxn(ascending,$(col).is("[data-sortable-numeric]")&&!$(col).is('[data-sortable-numeric="false"]')),sorted=cells.sort(fn),rows=applyToRows(sorted,rows)},replaceTableRows:function(rows){var el=$(this),body=el.find("tbody");body.html(rows)},makeColDefault:function(col,a){var c=$(col);c.attr(attrs.defaultCol,"true"),a?(c.removeClass(classes.descend),c.addClass(classes.ascend)):(c.removeClass(classes.ascend),c.addClass(classes.descend))},sortBy:function(col,ascending){var colNum,rows,el=$(this);colNum=el[pluginName]("getColumnNumber",col),rows=el[pluginName]("getTableRows"),rows=el[pluginName]("sortRows",rows,colNum,ascending,col),el[pluginName]("replaceTableRows",rows),el[pluginName]("makeColDefault",col,ascending)}};$.fn[pluginName]=function(arrg){var returnVal,args=Array.prototype.slice.call(arguments,1);return arrg&&"string"==typeof arrg?(returnVal=$.fn[pluginName].prototype[arrg].apply(this[0],args),"undefined"!=typeof returnVal?returnVal:$(this)):($(this).data(pluginName+"data")||($(this).data(pluginName+"active",!0),$.fn[pluginName].prototype._create.call(this,arrg)),$(this))},$.extend($.fn[pluginName].prototype,methods),$(document).on("tablesawcreate",function(e,Tablesaw){Tablesaw.$table.is(initSelector)&&Tablesaw.$table[pluginName]()})}(jQuery),function(win,$,undefined){function createMiniMap($table){function showMinimap($table){var mq=$table.attr(MM.attr.init);return!mq||win.matchMedia&&win.matchMedia(mq).matches}function showHideNav(){if(!showMinimap($table))return void $btns.hide();$btns.show();var dots=$dotNav.find("li").removeClass(hideDot);$table.find("thead th").each(function(i){"none"===$(this).css("display")&&dots.eq(i).addClass(hideDot)})}var $btns=$('<div class="tablesaw-advance minimap">'),$dotNav=$('<ul class="tablesaw-advance-dots">').appendTo($btns),hideDot="tablesaw-advance-dots-hide",$headerCells=$table.find("thead th");$headerCells.each(function(){$dotNav.append("<li><i></i></li>")}),$btns.appendTo($table.prev().filter(".tablesaw-bar")),showHideNav(),$(win).on("resize",showHideNav),$table.bind("tablesawcolumns.minimap",function(){showHideNav()}).bind("tablesawdestroy.minimap",function(){var $t=$(this);$t.prev().filter(".tablesaw-bar").find(".tablesaw-advance").remove(),$(win).off("resize",showHideNav),$t.unbind(".minimap")})}var MM={attr:{init:"data-tablesaw-minimap"}};$(document).on("tablesawcreate",function(e,Tablesaw){"swipe"!==Tablesaw.mode&&"columntoggle"!==Tablesaw.mode||!Tablesaw.$table.is("[ "+MM.attr.init+"]")||createMiniMap(Tablesaw.$table)})}(this,jQuery),function(win,$){var S={selectors:{init:"table[data-tablesaw-mode-switch]"},attributes:{excludeMode:"data-tablesaw-mode-exclude"},classes:{main:"tablesaw-modeswitch",toolbar:"tablesaw-toolbar"},modes:["stack","swipe","columntoggle"],init:function(table){var $table=$(table),ignoreMode=$table.attr(S.attributes.excludeMode),$toolbar=$table.prev().filter(".tablesaw-bar"),modeVal="",$switcher=$("<div>").addClass(S.classes.main+" "+S.classes.toolbar).html(function(){var isSelected,html=["<label>"+Tablesaw.i18n.columns+":"],dataMode=$table.attr("data-tablesaw-mode");html.push('<span class="btn btn-small">&#160;<select>');for(var j=0,k=S.modes.length;k>j;j++)ignoreMode&&ignoreMode.toLowerCase()===S.modes[j]||(isSelected=dataMode===S.modes[j],isSelected&&(modeVal=S.modes[j]),html.push("<option"+(isSelected?" selected":"")+' value="'+S.modes[j]+'">'+Tablesaw.i18n.modes[j]+"</option>"));return html.push("</select></span></label>"),html.join("")}),$otherToolbarItems=$toolbar.find(".tablesaw-advance").eq(0);$otherToolbarItems.length?$switcher.insertBefore($otherToolbarItems):$switcher.appendTo($toolbar),$switcher.find(".btn").tablesawbtn(),$switcher.find("select").bind("change",S.onModeChange)},onModeChange:function(){var $t=$(this),$switcher=$t.closest("."+S.classes.main),$table=$t.closest(".tablesaw-bar").nextUntil($table).eq(0),val=$t.val();$switcher.remove(),$table.data("table").destroy(),$table.attr("data-tablesaw-mode",val),$table.table()}};$(win.document).on("tablesawcreate",function(e,Tablesaw){Tablesaw.$table.is(S.selectors.init)&&S.init(Tablesaw.table)})}(this,jQuery),function($){$(function(){$(document).trigger("enhance.tablesaw")})}(jQuery),equalheight=function(container){var $el,currentTallest=0,currentRowStart=0,rowDivs=new Array;$(container).each(function(){if($el=$(this),$($el).height("auto"),topPostion=$el.position().top,currentRowStart!=topPostion){for(currentDiv=0;currentDiv<rowDivs.length;currentDiv++)rowDivs[currentDiv].height(currentTallest);rowDivs.length=0,currentRowStart=topPostion,currentTallest=$el.height(),rowDivs.push($el)}else rowDivs.push($el),currentTallest=currentTallest<$el.height()?$el.height():currentTallest;for(currentDiv=0;currentDiv<rowDivs.length;currentDiv++)rowDivs[currentDiv].height(currentTallest)})};var Hisite=function(){var publicMethods={updateCart:function(topcartUrl,callback){$("#top-cart i").replaceWith('<i class="fa fa-refresh fa-spin"></i>'),$.post(topcartUrl,function(data){$("#top-cart").replaceWith(data)}).done(callback())}};return publicMethods}();!function($){"use strict";$(window).load(function(){equalheight("#testimonials-carousel .testimonial-content, .newplanscolumn, .pricingbox .pricing-plan, .order-boxes .block-grid-item")}),$(window).resize(function(){equalheight("#testimonials-carousel .testimonial-content, .newplanscolumn, .pricingbox .pricing-plan, .order-boxes .block-grid-item")}),$(document).ready(function(){$('[data-toggle="popover"]').popover(),$('[rel="shared-popover"]').popover({trigger:"click",container:"body",html:!0,template:'<div class="popover sharing" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>',content:function(){var clone=$($(this).data("popover-content")).clone(!0).removeClass("hide");return clone}}).click(function(e){e.preventDefault()}),0!=$("#testimonials-carousel").length&&$("#testimonials-carousel").owlCarousel({items:3,autoPlay:5e3,itemsDesktop:[1199,3],itemsDesktopSmall:[979,2],itemsTablet:[768,2]}),$("#navigation").superfish({delay:300,animation:{opacity:"show",height:"show"},speed:"fast",dropShadows:!1}),$(function(){$("#navigation").slicknav({label:"",closedSymbol:"&#8594;",openedSymbol:"&#8595;"})});var nav=$(".header");$(window).width()>767&&$(window).scroll(function(){$(this).scrollTop()>200?nav.addClass("f-nav fadeindown"):nav.removeClass("f-nav fadeindown")}),$("input").blur(function(){$(this).val()?$(this).addClass("used"):$(this).removeClass("used")}),$(function(){$(".ripple").materialripple()}),$(function(){$("form.material").materialForm()});var wow=new WOW({boxClass:"wow",animateClass:"animated",offset:0,mobile:!1});wow.init(),$(window).scroll(function(){$(this).scrollTop()>300?$("#back-to-top").fadeIn("slow"):$("#back-to-top").fadeOut("slow")}),$("#back-to-top").click(function(){return $("html, body").animate({scrollTop:0},600),!1})}),$(document).on("click","a.add-to-cart-button",function(event){event.preventDefault();var addToCartElem=$(this);return addToCartElem.button("loading"),$.post(addToCartElem.data("domain-url"),function(){Hisite.updateCart(addToCartElem.data("topcart"),function(){addToCartElem.button("complete"),setTimeout(function(){addToCartElem.addClass("disabled")},0)})}),!1}),$.fn.isOnScreen=function(x,y){null!=x&&"undefined"!=typeof x||(x=1),null!=y&&"undefined"!=typeof y||(y=1);var win=$(window),viewport={top:win.scrollTop(),left:win.scrollLeft()};viewport.right=viewport.left+win.width(),viewport.bottom=viewport.top+win.height();var height=this.outerHeight(),width=this.outerWidth();if(!width||!height)return!1;var bounds=this.offset();bounds.right=bounds.left+width,bounds.bottom=bounds.top+height;var visible=!(viewport.right<bounds.left||viewport.left>bounds.right||viewport.bottom<bounds.top||viewport.top>bounds.bottom);if(!visible)return!1;var deltas={top:Math.min(1,(bounds.bottom-viewport.top)/height),bottom:Math.min(1,(viewport.bottom-bounds.top)/height),left:Math.min(1,(bounds.right-viewport.left)/width),right:Math.min(1,(viewport.right-bounds.left)/width)};return deltas.left*deltas.right>=x&&deltas.top*deltas.bottom>=y},$(".domain-list").domainsCheck({domainRowClass:".domain-line",success:function(data,domain,element){var $elem=$(element).find("div[data-domain='"+domain+"']"),$parentElem=$(element).find("div[data-domain='"+domain+"']").parents("div.domain-iso-line").eq(0);return $elem.replaceWith($(data).find(".domain-line")),$parentElem.attr("class",$(data).attr("class")),this},beforeQueryStart:function(item){var $item=$(item);return $item.isOnScreen()&&!$item.hasClass("checked")&&$item.is(":visible")?($item.addClass("checked"),!0):!1},"finally":function(){function concatValues(obj){var value="";for(var prop in obj)value+=obj[prop];return value}var grid=$(".domain-list").isotope({itemSelector:".domain-iso-line",layout:"vertical",isInitLayout:!1});grid.isotope("on","arrangeComplete",function(){$(".domain-iso-line").css({visibility:"visible"}),$(".domain-list").domainsCheck().startQuerier()}),grid.isotope();var filters={};$(".filters").on("click","a",function(event){event.preventDefault();var $buttonGroup=$(this).parents(".filter-nav"),$filterGroup=$buttonGroup.attr("data-filter-group");filters[$filterGroup]=$(this).attr("data-filter");var filterValue=concatValues(filters);grid.isotope({filter:filterValue}),$("html, body").animate({scrollTop:$(".domain-form-container").offset().top},"fast")}),$(".filter-nav").each(function(i,buttonGroup){$(buttonGroup).on("click","a",function(event){$(buttonGroup).find(".active").removeClass("active"),$(this).parents("li").addClass("active")})})}}),$(document).on("scroll",function(){$(".domain-list").length&&$(".domain-list").domainsCheck().startQuerier()})}(jQuery);