text: (function(a,b){a.MixItUp=function(){var c=this;c._execAction("_constructor",0);a.extend(c,{selectors:{target:".mix",filter:".filter",sort:".sort"},animation:{enable:true,effects:"fade scale",duration:600,easing:"ease",perspectiveDistance:"3000",perspectiveOrigin:"50% 50%",queue:true,queueLimit:1,animateChangeLayout:false,animateResizeContainer:true,animateResizeTargets:false,staggerSequence:false,reverseOut:false},callbacks:{onMixLoad:false,onMixStart:false,onMixBusy:false,onMixEnd:false,onMixFail:false,_user:false},controls:{enable:true,live:false,toggleFilterButtons:false,toggleLogic:"or",activeClass:"active"},layout:{display:"inline-block",containerClass:"",containerClassFail:"fail"},load:{filter:"all",sort:false},_$body:null,_$container:null,_$targets:null,_$parent:null,_$sortButtons:null,_$filterButtons:null,_suckMode:false,_mixing:false,_sorting:false,_clicking:false,_loading:true,_changingLayout:false,_changingClass:false,_changingDisplay:false,_origOrder:[],_startOrder:[],_newOrder:[],_activeFilter:null,_toggleArray:[],_toggleString:"",_activeSort:"default:asc",_newSort:null,_startHeight:null,_newHeight:null,_incPadding:true,_newDisplay:null,_newClass:null,_targetsBound:0,_targetsDone:0,_queue:[],_$show:a(),_$hide:a()});c._execAction("_constructor",1)};a.MixItUp.prototype={constructor:a.MixItUp,_instances:{},_handled:{_filter:{},_sort:{}},_bound:{_filter:{},_sort:{}},_actions:{},_filters:{},extend:function(c){for(var d in c){a.MixItUp.prototype[d]=c[d]}},addAction:function(d,e,c,f){a.MixItUp.prototype._addHook("_actions",d,e,c,f)},addFilter:function(d,e,c,f){a.MixItUp.prototype._addHook("_filters",d,e,c,f)},_addHook:function(i,e,f,d,h){var c=a.MixItUp.prototype[i],g={};h=(h===1||h==="post")?"post":"pre";g[e]={};g[e][h]={};g[e][h][f]=d;a.extend(true,c,g)},_init:function(d,c){var f=this;f._execAction("_init",0,arguments);c&&a.extend(true,f,c);f._$body=a("body");f._domNode=d;f._$container=a(d);f._$container.addClass(f.layout.containerClass);f._id=d.id;f._platformDetect();f._brake=f._getPrefixedCSS("transition","none");f._refresh(true);f._$parent=f._$targets.parent().length?f._$targets.parent():f._$container;if(f.load.sort){f._newSort=f._parseSort(f.load.sort);f._newSortString=f.load.sort;f._activeSort=f.load.sort;f._sort();f._printSort()}f._activeFilter=f.load.filter==="all"?f.selectors.target:f.load.filter==="none"?"":f.load.filter;f.controls.enable&&f._bindHandlers();if(f.controls.toggleFilterButtons){f._buildToggleArray();for(var e=0;e<f._toggleArray.length;e++){f._updateControls({filter:f._toggleArray[e],sort:f._activeSort},true)}}else{if(f.controls.enable){f._updateControls({filter:f._activeFilter,sort:f._activeSort})}}f._filter();f._init=true;f._$container.data("mixItUp",f);f._execAction("_init",1,arguments);f._buildState();f._$targets.css(f._brake);f._goMix(f.animation.enable)},_platformDetect:function(){var f=this,i=["Webkit","Moz","O","ms"],h=["webkit","moz"],c=window.navigator.appVersion.match(/Chrome\/(\d+)\./)||false,d=typeof InstallTrigger!=="undefined",e=function(k){for(var l=0;l<i.length;l++){if(i[l]+"Transition" in k.style){return{prefix:"-"+i[l].toLowerCase()+"-",vendor:i[l]}}}return"transition" in k.style?"":false},g=e(f._domNode);f._execAction("_platformDetect",0);f._chrome=c?parseInt(c[1],10):false;f._ff=d?parseInt(window.navigator.userAgent.match(/rv:([^)]+)\)/)[1]):false;f._prefix=g.prefix;f._vendor=g.vendor;f._suckMode=window.atob&&f._prefix?false:true;f._suckMode&&(f.animation.enable=false);(f._ff&&f._ff<=4)&&(f.animation.enable=false);for(var j=0;j<h.length&&!window.requestAnimationFrame;j++){window.requestAnimationFrame=window[h[j]+"RequestAnimationFrame"]}if(typeof Object.getPrototypeOf!=="function"){if(typeof"test".__proto__==="object"){Object.getPrototypeOf=function(k){return k.__proto__}}else{Object.getPrototypeOf=function(k){return k.constructor.prototype}}}if(f._domNode.nextElementSibling===b){Object.defineProperty(Element.prototype,"nextElementSibling",{get:function(){var k=this.nextSibling;while(k){if(k.nodeType===1){return k}k=k.nextSibling}return null}})}f._execAction("_platformDetect",1)},_refresh:function(g,e){var l=this;l._execAction("_refresh",0,arguments);l._$targets=l._$container.find(l.selectors.target);for(var f=0;f<l._$targets.length;f++){var m=l._$targets[f];if(m.dataset===b||e){m.dataset={};for(var h=0;h<m.attributes.length;h++){var c=m.attributes[h],k=c.name,n=c.value;if(k.indexOf("data-")>-1){var d=l._helpers._camelCase(k.substring(5,k.length));m.dataset[d]=n}}}if(m.mixParent===b){m.mixParent=l._id}}if((l._$targets.length&&g)||(!l._origOrder.length&&l._$targets.length)){l._origOrder=[];for(var f=0;f<l._$targets.length;f++){var m=l._$targets[f];l._origOrder.push(m)}}l._execAction("_refresh",1,arguments)},_bindHandlers:function(){var d=this,c=a.MixItUp.prototype._bound._filter,e=a.MixItUp.prototype._bound._sort;d._execAction("_bindHandlers",0);if(d.controls.live){d._$body.on("click.mixItUp."+d._id,d.selectors.sort,function(){d._processClick(a(this),"sort")}).on("click.mixItUp."+d._id,d.selectors.filter,function(){d._processClick(a(this),"filter")})}else{d._$sortButtons=a(d.selectors.sort);d._$filterButtons=a(d.selectors.filter);d._$sortButtons.on("click.mixItUp."+d._id,function(){d._processClick(a(this),"sort")});d._$filterButtons.on("click.mixItUp."+d._id,function(){d._processClick(a(this),"filter")})}c[d.selectors.filter]=(c[d.selectors.filter]===b)?1:c[d.selectors.filter]+1;e[d.selectors.sort]=(e[d.selectors.sort]===b)?1:e[d.selectors.sort]+1;d._execAction("_bindHandlers",1)},_processClick:function(c,j){var f=this,i=function(k,n,l){var m=a.MixItUp.prototype;m._handled["_"+n][f.selectors[n]]=(m._handled["_"+n][f.selectors[n]]===b)?1:m._handled["_"+n][f.selectors[n]]+1;if(m._handled["_"+n][f.selectors[n]]===m._bound["_"+n][f.selectors[n]]){k[(l?"remove":"add")+"Class"](f.controls.activeClass);delete m._handled["_"+n][f.selectors[n]]}};f._execAction("_processClick",0,arguments);if(!f._mixing||(f.animation.queue&&f._queue.length<f.animation.queueLimit)){f._clicking=true;if(j==="sort"){var h=c.attr("data-sort");if(!c.hasClass(f.controls.activeClass)||h.indexOf("random")>-1){a(f.selectors.sort).removeClass(f.controls.activeClass);i(c,j);f.sort(h)}}if(j==="filter"){var d=c.attr("data-filter"),e,g=f.controls.toggleLogic==="or"?",":"";if(!f.controls.toggleFilterButtons){if(!c.hasClass(f.controls.activeClass)){a(f.selectors.filter).removeClass(f.controls.activeClass);i(c,j);f.filter(d)}}else{f._buildToggleArray();if(!c.hasClass(f.controls.activeClass)){i(c,j);f._toggleArray.push(d)}else{i(c,j,true);e=f._toggleArray.indexOf(d);f._toggleArray.splice(e,1)}f._toggleArray=a.grep(f._toggleArray,function(k){return(k)});f._toggleString=f._toggleArray.join(g);f.filter(f._toggleString)}}f._execAction("_processClick",1,arguments)}else{if(typeof f.callbacks.onMixBusy==="function"){f.callbacks.onMixBusy.call(f._domNode,f._state,f)}f._execAction("_processClickBusy",1,arguments)}},_buildToggleArray:function(){var f=this,c=f._activeFilter.replace(/\s/g,"");f._execAction("_buildToggleArray",0,arguments);if(f.controls.toggleLogic==="or"){f._toggleArray=c.split(",")}else{f._toggleArray=c.split(".");!f._toggleArray[0]&&f._toggleArray.shift();for(var e=0,d;d=f._toggleArray[e];e++){f._toggleArray[e]="."+d}}f._execAction("_buildToggleArray",1,arguments)},_updateControls:function(d,f){var h=this,g={filter:d.filter,sort:d.sort},k=function(i,m){try{(f&&j==="filter"&&!(g.filter==="none"||g.filter===""))?i.filter(m).addClass(h.controls.activeClass):i.removeClass(h.controls.activeClass).filter(m).addClass(h.controls.activeClass)}catch(l){}},j="filter",c=null;h._execAction("_updateControls",0,arguments);(d.filter===b)&&(g.filter=h._activeFilter);(d.sort===b)&&(g.sort=h._activeSort);(g.filter===h.selectors.target)&&(g.filter="all");for(var e=0;e<2;e++){c=h.controls.live?a(h.selectors[j]):h["_$"+j+"Buttons"];c&&k(c,"[data-"+j+'="'+g[j]+'"]');j="sort"}h._execAction("_updateControls",1,arguments)},_filter:function(){var e=this;e._execAction("_filter",0);for(var d=0;d<e._$targets.length;d++){var c=a(e._$targets[d]);if(c.is(e._activeFilter)){e._$show=e._$show.add(c)}else{e._$hide=e._$hide.add(c)}}e._execAction("_filter",1)},_sort:function(){var e=this,c=function(k){var j=k.slice(),h=j.length,g=h;while(g--){var l=parseInt(Math.random()*h);var m=j[g];j[g]=j[l];j[l]=m}return j};e._execAction("_sort",0);e._startOrder=[];for(var d=0;d<e._$targets.length;d++){var f=e._$targets[d];e._startOrder.push(f)}switch(e._newSort[0].sortBy){case"default":e._newOrder=e._origOrder;break;case"random":e._newOrder=c(e._startOrder);break;case"custom":e._newOrder=e._newSort[0].order;break;default:e._newOrder=e._startOrder.concat().sort(function(g,h){return e._compare(g,h)})}e._execAction("_sort",1)},_compare:function(c,f,g){g=g?g:0;var j=this,i=j._newSort[g].order,h=function(k){return k.dataset[j._newSort[g].sortBy]||0},d=isNaN(h(c)*1)?h(c).toLowerCase():h(c)*1,e=isNaN(h(f)*1)?h(f).toLowerCase():h(f)*1;if(d<e){return i==="asc"?-1:1}if(d>e){return i==="asc"?1:-1}if(d===e&&j._newSort.length>g+1){return j._compare(c,f,g+1)}return 0},_printSort:function(j){var k=this,h=j?k._startOrder:k._newOrder,m=k._$parent[0].querySelectorAll(k.selectors.target),g=m.length?m[m.length-1].nextElementSibling:null,e=document.createDocumentFragment();k._execAction("_printSort",0,arguments);for(var f=0;f<m.length;f++){var l=m[f],n=l.nextSibling;if(l.style.position==="absolute"){continue}if(n&&n.nodeName==="#text"){k._$parent[0].removeChild(n)}k._$parent[0].removeChild(l)}for(var f=0;f<h.length;f++){var c=h[f];if(k._newSort[0].sortBy==="default"&&k._newSort[0].order==="desc"&&!j){var d=e.firstChild;e.insertBefore(c,d);e.insertBefore(document.createTextNode(" "),c)}else{e.appendChild(c);e.appendChild(document.createTextNode(" "))}}g?k._$parent[0].insertBefore(e,g):k._$parent[0].appendChild(e);k._execAction("_printSort",1,arguments)},_parseSort:function(j){var h=this,g=typeof j==="string"?j.split(" "):[j],d=[];for(var c=0;c<g.length;c++){var e=typeof j==="string"?g[c].split(":"):["custom",g[c]],f={sortBy:h._helpers._camelCase(e[0]),order:e[1]||"asc"};d.push(f);if(f.sortBy==="default"||f.sortBy==="random"){break}}return h._execFilter("_parseSort",d,arguments)},_parseEffects:function(){var g=this,d={opacity:"",transformIn:"",transformOut:"",filter:""},f=function(h,i,l){if(g.animation.effects.indexOf(h)>-1){if(i){var k=g.animation.effects.indexOf(h+"(");if(k>-1){var m=g.animation.effects.substring(k),j=/\(([^)]+)\)/.exec(m),n=j[1];return{val:n}}}return true}else{return false}},e=function(i,h){if(h){return i.charAt(0)==="-"?i.substr(1,i.length):"-"+i}else{return i}},c=function(m,k){var o=[["scale",".01"],["translateX","20px"],["translateY","20px"],["translateZ","20px"],["rotateX","90deg"],["rotateY","90deg"],["rotateZ","180deg"],];for(var j=0;j<o.length;j++){var n=o[j][0],h=o[j][1],l=k&&n!=="scale";d[m]+=f(n)?n+"("+e(f(n,true).val||h,l)+") ":""}};d.opacity=f("fade")?f("fade",true).val||"0":"1";c("transformIn");g.animation.reverseOut?c("transformOut",true):(d.transformOut=d.transformIn);d.transition={};d.transition=g._getPrefixedCSS("transition","all "+g.animation.duration+"ms "+g.animation.easing+", opacity "+g.animation.duration+"ms linear");g.animation.stagger=f("stagger")?true:false;g.animation.staggerDuration=parseInt(f("stagger")?(f("stagger",true).val?f("stagger",true).val:100):100);return g._execFilter("_parseEffects",d)},_buildState:function(c){var d=this,e={};d._execAction("_buildState",0);e={activeFilter:d._activeFilter===""?"none":d._activeFilter,activeSort:c&&d._newSortString?d._newSortString:d._activeSort,fail:!d._$show.length&&d._activeFilter!=="",$targets:d._$targets,$show:d._$show,$hide:d._$hide,totalTargets:d._$targets.length,totalShow:d._$show.length,totalHide:d._$hide.length,display:c&&d._newDisplay?d._newDisplay:d.layout.display};if(c){return d._execFilter("_buildState",e)}else{d._state=e;d._execAction("_buildState",1)}},_goMix:function(c){var i=this,f=function(){if(i._chrome&&(i._chrome===31)){d(i._$parent[0])}i._setInter();g()},g=function(){var l=window.pageYOffset,k=window.pageXOffset,j=document.documentElement.scrollHeight;i._getInterMixData();i._setFinal();i._getFinalMixData();(window.pageYOffset!==l)&&window.scrollTo(k,l);i._prepTargets();if(window.requestAnimationFrame){requestAnimationFrame(h)}else{setTimeout(function(){h()},20)}},h=function(){i._animateTargets();if(i._targetsBound===0){i._cleanUp()}},d=function(k){var l=k.parentElement,m=document.createElement("div"),j=document.createDocumentFragment();l.insertBefore(m,k);j.appendChild(k);l.replaceChild(k,m)},e=i._buildState(true);i._execAction("_goMix",0,arguments);!i.animation.duration&&(c=false);i._mixing=true;i._$container.removeClass(i.layout.containerClassFail);if(typeof i.callbacks.onMixStart==="function"){i.callbacks.onMixStart.call(i._domNode,i._state,e,i)}i._$container.trigger("mixStart",[i._state,e,i]);i._getOrigMixData();if(c&&!i._suckMode){window.requestAnimationFrame?requestAnimationFrame(f):f()}else{i._cleanUp()}i._execAction("_goMix",1,arguments)},_getTargetData:function(c,f){var e=this,d;c.dataset[f+"PosX"]=c.offsetLeft;c.dataset[f+"PosY"]=c.offsetTop;if(e.animation.animateResizeTargets){d=!e._suckMode?window.getComputedStyle(c):{marginBottom:"",marginRight:""};c.dataset[f+"MarginBottom"]=parseInt(d.marginBottom);c.dataset[f+"MarginRight"]=parseInt(d.marginRight);c.dataset[f+"Width"]=c.offsetWidth;c.dataset[f+"Height"]=c.offsetHeight}},_getOrigMixData:function(){var g=this,f=!g._suckMode?window.getComputedStyle(g._$parent[0]):{boxSizing:""},e=f.boxSizing||f[g._vendor+"BoxSizing"];g._incPadding=(e==="border-box");g._execAction("_getOrigMixData",0);!g._suckMode&&(g.effects=g._parseEffects());g._$toHide=g._$hide.filter(":visible");g._$toShow=g._$show.filter(":hidden");g._$pre=g._$targets.filter(":visible");g._startHeight=g._incPadding?g._$parent.outerHeight():g._$parent.height();for(var d=0;d<g._$pre.length;d++){var c=g._$pre[d];g._getTargetData(c,"orig")}g._execAction("_getOrigMixData",1)},_setInter:function(){var c=this;c._execAction("_setInter",0);if(c._changingLayout&&c.animation.animateChangeLayout){c._$toShow.css("display",c._newDisplay);if(c._changingClass){c._$container.removeClass(c.layout.containerClass).addClass(c._newClass)}}else{c._$toShow.css("display",c.layout.display)}c._execAction("_setInter",1)},_getInterMixData:function(){var e=this;e._execAction("_getInterMixData",0);for(var d=0;d<e._$toShow.length;d++){var c=e._$toShow[d];e._getTargetData(c,"inter")}for(var d=0;d<e._$pre.length;d++){var c=e._$pre[d];e._getTargetData(c,"inter")}e._execAction("_getInterMixData",1)},_setFinal:function(){var c=this;c._execAction("_setFinal",0);c._sorting&&c._printSort();c._$toHide.removeStyle("display");if(c._changingLayout&&c.animation.animateChangeLayout){c._$pre.css("display",c._newDisplay)}c._execAction("_setFinal",1)},_getFinalMixData:function(){var e=this;e._execAction("_getFinalMixData",0);for(var d=0;d<e._$toShow.length;d++){var c=e._$toShow[d];e._getTargetData(c,"final")}for(var d=0;d<e._$pre.length;d++){var c=e._$pre[d];e._getTargetData(c,"final")}e._newHeight=e._incPadding?e._$parent.outerHeight():e._$parent.height();e._sorting&&e._printSort(true);e._$toShow.removeStyle("display");e._$pre.css("display",e.layout.display);if(e._changingClass&&e.animation.animateChangeLayout){e._$container.removeClass(e._newClass).addClass(e.layout.containerClass)}e._execAction("_getFinalMixData",1)},_prepTargets:function(){var f=this,g={_in:f._getPrefixedCSS("transform",f.effects.transformIn),_out:f._getPrefixedCSS("transform",f.effects.transformOut)};f._execAction("_prepTargets",0);if(f.animation.animateResizeContainer){f._$parent.css("height",f._startHeight+"px")}for(var e=0;e<f._$toShow.length;e++){var d=f._$toShow[e],c=a(d);d.style.opacity=f.effects.opacity;d.style.display=(f._changingLayout&&f.animation.animateChangeLayout)?f._newDisplay:f.layout.display;c.css(g._in);if(f.animation.animateResizeTargets){d.style.width=d.dataset.finalWidth+"px";d.style.height=d.dataset.finalHeight+"px";d.style.marginRight=-(d.dataset.finalWidth-d.dataset.interWidth)+(d.dataset.finalMarginRight*1)+"px";d.style.marginBottom=-(d.dataset.finalHeight-d.dataset.interHeight)+(d.dataset.finalMarginBottom*1)+"px"}}for(var e=0;e<f._$pre.length;e++){var d=f._$pre[e],c=a(d),h={x:d.dataset.origPosX-d.dataset.interPosX,y:d.dataset.origPosY-d.dataset.interPosY},g=f._getPrefixedCSS("transform","translate("+h.x+"px,"+h.y+"px)");c.css(g);if(f.animation.animateResizeTargets){d.style.width=d.dataset.origWidth+"px";d.style.height=d.dataset.origHeight+"px";if(d.dataset.origWidth-d.dataset.finalWidth){d.style.marginRight=-(d.dataset.origWidth-d.dataset.interWidth)+(d.dataset.origMarginRight*1)+"px"}if(d.dataset.origHeight-d.dataset.finalHeight){d.style.marginBottom=-(d.dataset.origHeight-d.dataset.interHeight)+(d.dataset.origMarginBottom*1)+"px"}}}f._execAction("_prepTargets",1)},_animateTargets:function(){var k=this;k._execAction("_animateTargets",0);k._targetsDone=0;k._targetsBound=0;k._$parent.css(k._getPrefixedCSS("perspective",k.animation.perspectiveDistance+"px")).css(k._getPrefixedCSS("perspective-origin",k.animation.perspectiveOrigin));if(k.animation.animateResizeContainer){k._$parent.css(k._getPrefixedCSS("transition","height "+k.animation.duration+"ms ease")).css("height",k._newHeight+"px")}for(var g=0;g<k._$toShow.length;g++){var f=k._$toShow[g],c=a(f),n={x:f.dataset.finalPosX-f.dataset.interPosX,y:f.dataset.finalPosY-f.dataset.interPosY},e=k._getDelay(g),m={};f.style.opacity="";for(var h=0;h<2;h++){var d=h===0?d=k._prefix:"";if(k._ff&&k._ff<=20){m[d+"transition-property"]="all";m[d+"transition-timing-function"]=k.animation.easing+"ms";m[d+"transition-duration"]=k.animation.duration+"ms"}m[d+"transition-delay"]=e+"ms";m[d+"transform"]="translate("+n.x+"px,"+n.y+"px)"}if(k.effects.transform||k.effects.opacity){k._bindTargetDone(c)}(k._ff&&k._ff<=20)?c.css(m):c.css(k.effects.transition).css(m)}for(var g=0;g<k._$pre.length;g++){var f=k._$pre[g],c=a(f),n={x:f.dataset.finalPosX-f.dataset.interPosX,y:f.dataset.finalPosY-f.dataset.interPosY},e=k._getDelay(g);if(!(f.dataset.finalPosX===f.dataset.origPosX&&f.dataset.finalPosY===f.dataset.origPosY)){k._bindTargetDone(c)}c.css(k._getPrefixedCSS("transition","all "+k.animation.duration+"ms "+k.animation.easing+" "+e+"ms"));c.css(k._getPrefixedCSS("transform","translate("+n.x+"px,"+n.y+"px)"));if(k.animation.animateResizeTargets){if(f.dataset.origWidth-f.dataset.finalWidth&&f.dataset.finalWidth*1){f.style.width=f.dataset.finalWidth+"px";f.style.marginRight=-(f.dataset.finalWidth-f.dataset.interWidth)+(f.dataset.finalMarginRight*1)+"px"}if(f.dataset.origHeight-f.dataset.finalHeight&&f.dataset.finalHeight*1){f.style.height=f.dataset.finalHeight+"px";f.style.marginBottom=-(f.dataset.finalHeight-f.dataset.interHeight)+(f.dataset.finalMarginBottom*1)+"px"}}}if(k._changingClass){k._$container.removeClass(k.layout.containerClass).addClass(k._newClass)}for(var g=0;g<k._$toHide.length;g++){var f=k._$toHide[g],c=a(f),e=k._getDelay(g),l={};for(var h=0;h<2;h++){var d=h===0?d=k._prefix:"";l[d+"transition-delay"]=e+"ms";l[d+"transform"]=k.effects.transformOut;l.opacity=k.effects.opacity}c.css(k.effects.transition).css(l);if(k.effects.transform||k.effects.opacity){k._bindTargetDone(c)}}k._execAction("_animateTargets",1)},_bindTargetDone:function(c){var e=this,d=c[0];e._execAction("_bindTargetDone",0,arguments);if(!d.dataset.bound){d.dataset.bound=true;e._targetsBound++;c.on("webkitTransitionEnd.mixItUp transitionend.mixItUp",function(f){if((f.originalEvent.propertyName.indexOf("transform")>-1||f.originalEvent.propertyName.indexOf("opacity")>-1)&&a(f.originalEvent.target).is(e.selectors.target)){c.off(".mixItUp");delete d.dataset.bound;e._targetDone()}})}e._execAction("_bindTargetDone",1,arguments)},_targetDone:function(){var c=this;c._execAction("_targetDone",0);c._targetsDone++;(c._targetsDone===c._targetsBound)&&c._cleanUp();c._execAction("_targetDone",1)},_cleanUp:function(){var c=this,d=c.animation.animateResizeTargets?"transform opacity width height margin-bottom margin-right":"transform opacity",e=function(){c._$targets.removeStyle("transition",c._prefix)};c._execAction("_cleanUp",0);!c._changingLayout?c._$show.css("display",c.layout.display):c._$show.css("display",c._newDisplay);c._$targets.css(c._brake);c._$targets.removeStyle(d,c._prefix).removeAttr("data-inter-pos-x data-inter-pos-y data-final-pos-x data-final-pos-y data-orig-pos-x data-orig-pos-y data-orig-height data-orig-width data-final-height data-final-width data-inter-width data-inter-height data-orig-margin-right data-orig-margin-bottom data-inter-margin-right data-inter-margin-bottom data-final-margin-right data-final-margin-bottom");c._$hide.removeStyle("display");c._$parent.removeStyle("height transition perspective-distance perspective perspective-origin-x perspective-origin-y perspective-origin perspectiveOrigin",c._prefix);if(c._sorting){c._printSort();c._activeSort=c._newSortString;c._sorting=false}if(c._changingLayout){if(c._changingDisplay){c.layout.display=c._newDisplay;c._changingDisplay=false}if(c._changingClass){c._$parent.removeClass(c.layout.containerClass).addClass(c._newClass);c.layout.containerClass=c._newClass;c._changingClass=false}c._changingLayout=false}c._refresh();c._buildState();if(c._state.fail){c._$container.addClass(c.layout.containerClassFail)}c._$show=a();c._$hide=a();if(window.requestAnimationFrame){requestAnimationFrame(e)}c._mixing=false;if(typeof c.callbacks._user==="function"){c.callbacks._user.call(c._domNode,c._state,c)}if(typeof c.callbacks.onMixEnd==="function"){c.callbacks.onMixEnd.call(c._domNode,c._state,c)}c._$container.trigger("mixEnd",[c._state,c]);if(c._state.fail){(typeof c.callbacks.onMixFail==="function")&&c.callbacks.onMixFail.call(c._domNode,c._state,c);c._$container.trigger("mixFail",[c._state,c])}if(c._loading){(typeof c.callbacks.onMixLoad==="function")&&c.callbacks.onMixLoad.call(c._domNode,c._state,c);c._$container.trigger("mixLoad",[c._state,c])}if(c._queue.length){c._execAction("_queue",0);c.multiMix(c._queue[0][0],c._queue[0][1],c._queue[0][2]);c._queue.splice(0,1)}c._execAction("_cleanUp",1);c._loading=false},_getPrefixedCSS:function(f,j,e){var g=this,h={},d="",c=-1;for(c=0;c<2;c++){d=c===0?g._prefix:"";e?h[d+f]=d+j:h[d+f]=j}return g._execFilter("_getPrefixedCSS",h,arguments)},_getDelay:function(d){var f=this,e=typeof f.animation.staggerSequence==="function"?f.animation.staggerSequence.call(f._domNode,d,f._state):d,c=f.animation.stagger?e*f.animation.staggerDuration:0;return f._execFilter("_getDelay",c,arguments)},_parseMultiMixArgs:function(d){var g=this,f={command:null,animate:g.animation.enable,callback:null};for(var e=0;e<d.length;e++){var c=d[e];if(c!==null){if(typeof c==="object"||typeof c==="string"){f.command=c}else{if(typeof c==="boolean"){f.animate=c}else{if(typeof c==="function"){f.callback=c}}}}}return g._execFilter("_parseMultiMixArgs",f,arguments)},_parseInsertArgs:function(d){var g=this,f={index:0,$object:a(),multiMix:{filter:g._state.activeFilter},callback:null};for(var e=0;e<d.length;e++){var c=d[e];if(typeof c==="number"){f.index=c}else{if(typeof c==="object"&&c instanceof a){f.$object=c}else{if(typeof c==="object"&&g._helpers._isElement(c)){f.$object=a(c)}else{if(typeof c==="object"&&c!==null){f.multiMix=c}else{if(typeof c==="boolean"&&!c){f.multiMix=false}else{if(typeof c==="function"){f.callback=c}}}}}}}return g._execFilter("_parseInsertArgs",f,arguments)},_execAction:function(g,e,c){var h=this,d=e?"post":"pre";if(!h._actions.isEmptyObject&&h._actions.hasOwnProperty(g)){for(var f in h._actions[g][d]){h._actions[g][d][f].call(h,c)}}},_execFilter:function(e,g,c){var f=this;if(!f._filters.isEmptyObject&&f._filters.hasOwnProperty(e)){for(var d in f._filters[e]){return f._filters[e][d].call(f,c)}}else{return g}},_helpers:{_camelCase:function(c){return c.replace(/-([a-z])/g,function(d){return d[1].toUpperCase()})},_isElement:function(c){if(window.HTMLElement){return c instanceof HTMLElement}else{return(c!==null&&c.nodeType===1&&c.nodeName==="string")}}},isMixing:function(){var c=this;return c._execFilter("isMixing",c._mixing)},filter:function(){var d=this,c=d._parseMultiMixArgs(arguments);d._clicking&&(d._toggleString="");d.multiMix({filter:c.command},c.animate,c.callback)},sort:function(){var d=this,c=d._parseMultiMixArgs(arguments);d.multiMix({sort:c.command},c.animate,c.callback)},changeLayout:function(){var d=this,c=d._parseMultiMixArgs(arguments);d.multiMix({changeLayout:c.command},c.animate,c.callback)},multiMix:function(){var f=this,c=f._parseMultiMixArgs(arguments);f._execAction("multiMix",0,arguments);if(!f._mixing){if(f.controls.enable&&!f._clicking){f.controls.toggleFilterButtons&&f._buildToggleArray();f._updateControls(c.command,f.controls.toggleFilterButtons)}(f._queue.length<2)&&(f._clicking=false);delete f.callbacks._user;if(c.callback){f.callbacks._user=c.callback}var g=c.command.sort,e=c.command.filter,d=c.command.changeLayout;f._refresh();if(g){f._newSort=f._parseSort(g);f._newSortString=g;f._sorting=true;f._sort()}if(e!==b){e=(e==="all")?f.selectors.target:e;f._activeFilter=e}f._filter();if(d){f._newDisplay=(typeof d==="string")?d:d.display||f.layout.display;f._newClass=d.containerClass||"";if(f._newDisplay!==f.layout.display||f._newClass!==f.layout.containerClass){f._changingLayout=true;f._changingClass=(f._newClass!==f.layout.containerClass);f._changingDisplay=(f._newDisplay!==f.layout.display)}}f._$targets.css(f._brake);f._goMix(c.animate^f.animation.enable?c.animate:f.animation.enable);f._execAction("multiMix",1,arguments)}else{if(f.animation.queue&&f._queue.length<f.animation.queueLimit){f._queue.push(arguments);(f.controls.enable&&!f._clicking)&&f._updateControls(c.command);f._execAction("multiMixQueue",1,arguments)}else{if(typeof f.callbacks.onMixBusy==="function"){f.callbacks.onMixBusy.call(f._domNode,f._state,f)}f._$container.trigger("mixBusy",[f._state,f]);f._execAction("multiMixBusy",1,arguments)}}},insert:function(){var h=this,c=h._parseInsertArgs(arguments),d=(typeof c.callback==="function")?c.callback:null,f=document.createDocumentFragment(),j=(function(){h._refresh();if(h._$targets.length){return(c.index<h._$targets.length||!h._$targets.length)?h._$targets[c.index]:h._$targets[h._$targets.length-1].nextElementSibling}else{return h._$parent[0].children[0]}})();h._execAction("insert",0,arguments);if(c.$object){for(var g=0;g<c.$object.length;g++){var e=c.$object[g];f.appendChild(e);f.appendChild(document.createTextNode(" "))}h._$parent[0].insertBefore(f,j)}h._execAction("insert",1,arguments);if(typeof c.multiMix==="object"){h.multiMix(c.multiMix,d)}},prepend:function(){var d=this,c=d._parseInsertArgs(arguments);d.insert(0,c.$object,c.multiMix,c.callback)},append:function(){var d=this,c=d._parseInsertArgs(arguments);d.insert(d._state.totalTargets,c.$object,c.multiMix,c.callback)},getOption:function(e){var d=this,c=function(k,n){var m=n.split("."),j=m.pop(),h=m.length,g=1,f=m[0]||n;while((k=k[f])&&g<h){f=m[g];g++}if(k!==b){return k[j]!==b?k[j]:k}};return e?d._execFilter("getOption",c(d,e),arguments):d},setOptions:function(c){var d=this;d._execAction("setOptions",0,arguments);typeof c==="object"&&a.extend(true,d,c);d._execAction("setOptions",1,arguments)},getState:function(){var c=this;return c._execFilter("getState",c._state,c)},forceRefresh:function(){var c=this;c._refresh(false,true)},destroy:function(d){var f=this,c=a.MixItUp.prototype._bound._filter,g=a.MixItUp.prototype._bound._sort;f._execAction("destroy",0,arguments);f._$body.add(a(f.selectors.sort)).add(a(f.selectors.filter)).off(".mixItUp");for(var e=0;e<f._$targets.length;e++){var h=f._$targets[e];d&&(h.style.display="");delete h.mixParent}f._execAction("destroy",1,arguments);if(c[f.selectors.filter]&&c[f.selectors.filter]>1){c[f.selectors.filter]--}else{if(c[f.selectors.filter]===1){delete c[f.selectors.filter]}}if(g[f.selectors.sort]&&g[f.selectors.sort]>1){g[f.selectors.sort]--}else{if(g[f.selectors.sort]===1){delete g[f.selectors.sort]}}delete a.MixItUp.prototype._instances[f._id]}};a.fn.mixItUp=function(){var d=arguments,e=[],f,c=function(g,j){var h=new a.MixItUp(),i=function(){return("00000"+(Math.random()*16777216<<0).toString(16)).substr(-6).toUpperCase()};h._execAction("_instantiate",0,arguments);g.id=!g.id?"MixItUp"+i():g.id;if(!h._instances[g.id]){h._instances[g.id]=h;h._init(g,j)}h._execAction("_instantiate",1,arguments)};f=this.each(function(){if(d&&typeof d[0]==="string"){var h=a.MixItUp.prototype._instances[this.id];if(d[0]==="isLoaded"){e.push(h?true:false)}else{var g=h[d[0]](d[1],d[2],d[3]);if(g!==b){e.push(g)}}}else{c(this,d[0])}});if(e.length){return e.length>1?e:e[0]}else{return f}};a.fn.removeStyle=function(d,c){c=c?c:"";return this.each(function(){var e=this,k=d.split(" ");for(var f=0;f<k.length;f++){for(var g=0;g<4;g++){switch(g){case 0:var h=k[f];break;case 1:var h=a.MixItUp.prototype._helpers._camelCase(h);break;case 2:var h=c+k[f];break;case 3:var h=a.MixItUp.prototype._helpers._camelCase(c+k[f])}if(e.style[h]!==b&&typeof e.style[h]!=="unknown"&&e.style[h].length>0){e.style[h]=""}if(!c&&g===1){break}}}if(e.attributes&&e.attributes.style&&e.attributes.style!==b&&e.attributes.style.value===""){e.attributes.removeNamedItem("style")}})}})(jQuery);