(function(){function t(n){var t=n.split(/\n/),i,r;return t.shift(),t.splice(-1,1),i=t[0].length-t[0].trim().length,r=new RegExp(" {"+i+"}"),t=t.map(function(n){return n.match(r)&&(n=n.substring(i)),n}),t.join("\n")}var n=$("<div id='source-button' class='btn btn-primary btn-xs'>&lt; &gt;<\/div>").click(function(){var n=$(this).parent().html();n=t(n);$("#source-modal pre").text(n);$("#source-modal").modal()});$('.bs-component [data-toggle="popover"]').popover();$('.bs-component [data-toggle="tooltip"]').tooltip();$(".bs-component").hover(function(){$(this).append(n);n.show()},function(){n.hide()})}),function(){var n,f,i,r,u,t=function(n,t){return function(){return n.apply(t,arguments)}},e=[].indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(t in this&&this[t]===n)return t;return-1};f=function(){function n(){}return n.prototype.extend=function(n,t){var i,r;for(i in t)r=t[i],null==n[i]&&(n[i]=r);return n},n.prototype.isMobile=function(n){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n)},n.prototype.createEvent=function(n,t,i,r){var u;return null==t&&(t=!1),null==i&&(i=!1),null==r&&(r=null),null!=document.createEvent?(u=document.createEvent("CustomEvent"),u.initCustomEvent(n,t,i,r)):null!=document.createEventObject?(u=document.createEventObject(),u.eventType=n):u.eventName=n,u},n.prototype.emitEvent=function(n,t){return null!=n.dispatchEvent?n.dispatchEvent(t):t in(null!=n)?n[t]():"on"+t in(null!=n)?n["on"+t]():void 0},n.prototype.addEvent=function(n,t,i){return null!=n.addEventListener?n.addEventListener(t,i,!1):null!=n.attachEvent?n.attachEvent("on"+t,i):n[t]=i},n.prototype.removeEvent=function(n,t,i){return null!=n.removeEventListener?n.removeEventListener(t,i,!1):null!=n.detachEvent?n.detachEvent("on"+t,i):delete n[t]},n.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},n}();i=this.WeakMap||this.MozWeakMap||(i=function(){function n(){this.keys=[];this.values=[]}return n.prototype.get=function(n){var t,u,i,f,r;for(r=this.keys,t=i=0,f=r.length;f>i;t=++i)if(u=r[t],u===n)return this.values[t]},n.prototype.set=function(n,t){var i,f,r,e,u;for(u=this.keys,i=r=0,e=u.length;e>r;i=++r)if(f=u[i],f===n)return void(this.values[i]=t);return this.keys.push(n),this.values.push(t)},n}());n=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(n=function(){function n(){"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 n.notSupported=!0,n.prototype.observe=function(){},n}());r=this.getComputedStyle||function(n){return this.getPropertyValue=function(t){var i;return"float"===t&&(t="styleFloat"),u.test(t)&&t.replace(u,function(n,t){return t.toUpperCase()}),(null!=(i=n.currentStyle)?i[t]:void 0)||null},this};u=/(\-([a-z]){1})/g;this.WOW=function(){function u(n){null==n&&(n={});this.scrollCallback=t(this.scrollCallback,this);this.scrollHandler=t(this.scrollHandler,this);this.resetAnimation=t(this.resetAnimation,this);this.start=t(this.start,this);this.scrolled=!0;this.config=this.util().extend(n,this.defaults);this.animationNameCache=new i;this.wowEvent=this.util().createEvent(this.config.boxClass)}return u.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null},u.prototype.init=function(){var n;return this.element=window.document.documentElement,"interactive"===(n=document.readyState)||"complete"===n?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},u.prototype.start=function(){var t,i,u,r;if(this.stopped=!1,this.boxes=function(){var n,u,i,r;for(i=this.element.querySelectorAll("."+this.config.boxClass),r=[],n=0,u=i.length;u>n;n++)t=i[n],r.push(t);return r}.call(this),this.all=function(){var n,u,i,r;for(i=this.boxes,r=[],n=0,u=i.length;u>n;n++)t=i[n],r.push(t);return r}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(r=this.boxes,i=0,u=r.length;u>i;i++)t=r[i],this.applyStyle(t,!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 n(function(n){return function(t){var i,u,f,e,r;for(r=[],i=0,u=t.length;u>i;i++)e=t[i],r.push(function(){var n,r,t,i;for(t=e.addedNodes||[],i=[],n=0,r=t.length;r>n;n++)f=t[n],i.push(this.doSync(f));return i}.call(n));return r}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},u.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},u.prototype.sync=function(){if(n.notSupported)return this.doSync(this.element)},u.prototype.doSync=function(n){var t,i,f,u,r;if(null==n&&(n=this.element),1===n.nodeType){for(n=n.parentNode||n,u=n.querySelectorAll("."+this.config.boxClass),r=[],i=0,f=u.length;f>i;i++)t=u[i],e.call(this.all,t)<0?(this.boxes.push(t),this.all.push(t),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(t,!0),r.push(this.scrolled=!0)):r.push(void 0);return r}},u.prototype.show=function(n){return this.applyStyle(n),n.className=n.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(n),this.util().emitEvent(n,this.wowEvent),this.util().addEvent(n,"animationend",this.resetAnimation),this.util().addEvent(n,"oanimationend",this.resetAnimation),this.util().addEvent(n,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(n,"MSAnimationEnd",this.resetAnimation),n},u.prototype.applyStyle=function(n,t){var i,r,u;return r=n.getAttribute("data-wow-duration"),i=n.getAttribute("data-wow-delay"),u=n.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(n,t,r,i,u)}}(this))},u.prototype.animate=function(){return"requestAnimationFrame"in window?function(n){return window.requestAnimationFrame(n)}:function(n){return n()}}(),u.prototype.resetStyle=function(){var r,n,u,t,i;for(t=this.boxes,i=[],n=0,u=t.length;u>n;n++)r=t[n],i.push(r.style.visibility="visible");return i},u.prototype.resetAnimation=function(n){var t;if(n.type.toLowerCase().indexOf("animationend")>=0)return(t=n.target||n.srcElement,t.className=t.className.replace(this.config.animateClass,"").trim())},u.prototype.customStyle=function(n,t,i,r,u){return t&&this.cacheAnimationName(n),n.style.visibility=t?"hidden":"visible",i&&this.vendorSet(n.style,{animationDuration:i}),r&&this.vendorSet(n.style,{animationDelay:r}),u&&this.vendorSet(n.style,{animationIterationCount:u}),this.vendorSet(n.style,{animationName:t?"none":this.cachedAnimationName(n)}),n},u.prototype.vendors=["moz","webkit"],u.prototype.vendorSet=function(n,t){var i,r,u,f;r=[];for(i in t)u=t[i],n[""+i]=u,r.push(function(){var t,o,r,e;for(r=this.vendors,e=[],t=0,o=r.length;o>t;t++)f=r[t],e.push(n[""+f+i.charAt(0).toUpperCase()+i.substr(1)]=u);return e}.call(this));return r},u.prototype.vendorCSS=function(n,t){var i,o,f,u,e,s;for(e=r(n),u=e.getPropertyCSSValue(t),f=this.vendors,i=0,o=f.length;o>i;i++)s=f[i],u=u||e.getPropertyCSSValue("-"+s+"-"+t);return u},u.prototype.animationName=function(n){var t;try{t=this.vendorCSS(n,"animation-name").cssText}catch(i){t=r(n).getPropertyValue("animation-name")}return"none"===t?"":t},u.prototype.cacheAnimationName=function(n){return this.animationNameCache.set(n,this.animationName(n))},u.prototype.cachedAnimationName=function(n){return this.animationNameCache.get(n)},u.prototype.scrollHandler=function(){return this.scrolled=!0},u.prototype.scrollCallback=function(){var n;if(this.scrolled&&!(this.scrolled=!1,this.boxes=function(){var t,u,i,r;for(i=this.boxes,r=[],t=0,u=i.length;u>t;t++)n=i[t],n&&(this.isVisible(n)?this.show(n):r.push(n));return r}.call(this),this.boxes.length||this.config.live))return this.stop()},u.prototype.offsetTop=function(n){for(var t;void 0===n.offsetTop;)n=n.parentNode;for(t=n.offsetTop;n=n.offsetParent;)t+=n.offsetTop;return t},u.prototype.isVisible=function(n){var r,u,t,f,i;return u=n.getAttribute("data-wow-offset")||this.config.offset,i=window.pageYOffset,f=i+Math.min(this.element.clientHeight,this.util().innerHeight())-u,t=this.offsetTop(n),r=t+n.clientHeight,f>=t&&r>=i},u.prototype.util=function(){return null!=this._util?this._util:this._util=new f},u.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},u}()}.call(this);!function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.defaults,r)},i;t.defaults={transition_delay:300,refresh_speed:50,display_text:"none",use_percentage:!0,percent_format:function(n){return n+"%"},amount_format:function(n,t){return n+" / "+t},update:n.noop,done:n.noop,fail:n.noop};t.prototype.transition=function(){var u=this.$element,f=u.parent(),o=this.$back_text,e=this.$front_text,i=this.options,c=parseInt(u.attr("data-transitiongoal")),s=parseInt(u.attr("aria-valuemin"))||0,l=parseInt(u.attr("aria-valuemax"))||100,a=f.hasClass("vertical"),v=i.update&&"function"==typeof i.update?i.update:t.defaults.update,y=i.done&&"function"==typeof i.done?i.done:t.defaults.done,p=i.fail&&"function"==typeof i.fail?i.fail:t.defaults.fail,h,r;if(isNaN(c))return void p("data-transitiongoal not set");h=Math.round(100*(c-s)/(l-s));"center"!==i.display_text||o||e||(this.$back_text=o=n("<span>").addClass("progressbar-back-text").prependTo(f),this.$front_text=e=n("<span>").addClass("progressbar-front-text").prependTo(u),a?(r=f.css("height"),o.css({height:r,"line-height":r}),e.css({height:r,"line-height":r}),n(window).resize(function(){r=f.css("height");o.css({height:r,"line-height":r});e.css({height:r,"line-height":r})})):(r=f.css("width"),e.css({width:r}),n(window).resize(function(){r=f.css("width");e.css({width:r})})));setTimeout(function(){var n,t,r,p,w,b;a?u.css("height",h+"%"):u.css("width",h+"%");b=setInterval(function(){a?(r=u.height(),p=f.height()):(r=u.width(),p=f.width());n=Math.round(100*r/p);t=Math.round(s+r/p*(l-s));n>=h&&(n=h,t=c,y(u),clearInterval(b));"none"!==i.display_text&&(w=i.use_percentage?i.percent_format(n):i.amount_format(t,l,s),"fill"===i.display_text?u.text(w):"center"===i.display_text&&(o.text(w),e.text(w)));u.attr("aria-valuenow",t);v(n,u)},i.refresh_speed)},i.transition_delay)};i=n.fn.progressbar;n.fn.progressbar=function(i){return this.each(function(){var u=n(this),r=u.data("bs.progressbar"),f="object"==typeof i&&i;r||u.data("bs.progressbar",r=new t(this,f));r.transition()})};n.fn.progressbar.Constructor=t;n.fn.progressbar.noConflict=function(){return n.fn.progressbar=i,this}}(window.jQuery),function(n,t){function i(){var n=this;n.id=null;n.busy=!1;n.start=function(t,i){n.busy||(n.stop(),n.id=setTimeout(function(){t();n.id=null;n.busy=!1},i),n.busy=!0)};n.stop=function(){n.id!==null&&(clearTimeout(n.id),n.id=null,n.busy=!1)}}function u(r,u,f){var e=this;e.id=f;e.table=r;e.options=u;e.breakpoints=[];e.breakpointNames="";e.columns={};e.plugins=t.footable.plugins.load(e);var h=e.options,o=h.classes,c=h.events,s=h.triggers,l=0;return e.timers={resize:new i,register:function(n){return e.timers[n]=new i,e.timers[n]}},e.init=function(){var u=n(t),i=n(e.table),r;if(t.footable.plugins.init(e),i.hasClass(o.loaded)){e.raise(c.alreadyInitialized);return}e.raise(c.initializing);i.addClass(o.loading);i.find(h.columnDataSelector).each(function(){var n=e.getColumnData(this);e.columns[n.index]=n});for(r in h.breakpoints)e.breakpoints.push({name:r,width:h.breakpoints[r]}),e.breakpointNames+=r+" ";e.breakpoints.sort(function(n,t){return n.width-t.width});i.unbind(s.initialize).bind(s.initialize,function(){i.removeData("footable_info");i.data("breakpoint","");i.trigger(s.resize);i.removeClass(o.loading);i.addClass(o.loaded).addClass(o.main);e.raise(c.initialized)}).unbind(s.redraw).bind(s.redraw,function(){e.redraw()}).unbind(s.resize).bind(s.resize,function(){e.resize()}).unbind(s.expandFirstRow).bind(s.expandFirstRow,function(){i.find(h.toggleSelector).first().not("."+o.detailShow).trigger(s.toggleRow)}).unbind(s.expandAll).bind(s.expandAll,function(){i.find(h.toggleSelector).not("."+o.detailShow).trigger(s.toggleRow)}).unbind(s.collapseAll).bind(s.collapseAll,function(){i.find("."+o.detailShow).trigger(s.toggleRow)});i.trigger(s.initialize);u.bind("resize.footable",function(){e.timers.resize.stop();e.timers.resize.start(function(){e.raise(s.resize)},h.delay)})},e.addRowToggle=function(){var t,r,u,i,f;if(h.addRowToggle){t=n(e.table);r=!1;t.find("span."+o.toggle).remove();for(u in e.columns)if(i=e.columns[u],i.toggle){r=!0;f="> tbody > tr:not(."+o.detail+",."+o.disabled+") > td:nth-child("+(parseInt(i.index,10)+1)+"),> tbody > tr:not(."+o.detail+",."+o.disabled+") > th:nth-child("+(parseInt(i.index,10)+1)+")";t.find(f).not("."+o.detailCell).prepend(n(h.toggleHTMLElement).addClass(o.toggle));return}r||t.find("> tbody > tr:not(."+o.detail+",."+o.disabled+") > td:first-child").add("> tbody > tr:not(."+o.detail+",."+o.disabled+") > th:first-child").not("."+o.detailCell).prepend(n(h.toggleHTMLElement).addClass(o.toggle))}},e.setColumnClasses=function(){var f=n(e.table),u,t,i,r;for(u in e.columns)t=e.columns[u],t.className!==null&&(i="",r=!0,n.each(t.matches,function(n,t){r||(i+=", ");i+="> tbody > tr:not(."+o.detail+") > td:nth-child("+(parseInt(t,10)+1)+")";r=!1}),f.find(i).not("."+o.detailCell).addClass(t.className))},e.bindToggleSelectors=function(){var t=n(e.table);e.hasAnyBreakpointColumn()&&(t.find(h.toggleSelector).unbind(s.toggleRow).bind(s.toggleRow,function(){var t=n(this).is("tr")?n(this):n(this).parents("tr:first");e.toggleDetail(t)}),t.find(h.toggleSelector).unbind("click.footable").bind("click.footable",function(i){t.is(".breakpoint")&&n(i.target).is("td,th,."+o.toggle)&&n(this).trigger(s.toggleRow)}))},e.parse=function(n,t){var i=h.parsers[t.type]||h.parsers.alpha;return i(n)},e.getColumnData=function(t){var i=n(t),o=i.data("hide"),k=i.index(),r,w,y,p,s,u,f,a,v,b;if(o=o||"",o=jQuery.map(o.split(","),function(n){return jQuery.trim(n)}),r={index:k,hide:{},type:i.data("type")||"alpha",name:i.data("name")||n.trim(i.text()),ignore:i.data("ignore")||!1,toggle:i.data("toggle")||!1,className:i.data("class")||null,matches:[],names:{},group:i.data("group")||null,groupName:null,isEditable:i.data("editable")},r.group!==null&&(w=n(e.table).find('> thead > tr.footable-group-row > th[data-group="'+r.group+'"], > thead > tr.footable-group-row > td[data-group="'+r.group+'"]').first(),r.groupName=e.parse(w,{type:"alpha"})),y=parseInt(i.prev().attr("colspan")||0,10),l+=y>1?y-1:0,p=parseInt(i.attr("colspan")||0,10),s=r.index+l,p>1)for(u=i.data("names"),u=u||"",u=u.split(","),f=0;f<p;f++)r.matches.push(f+s),f<u.length&&(r.names[f+s]=u[f]);else r.matches.push(s);r.hide["default"]=i.data("hide")==="all"||n.inArray("default",o)>=0;a=!1;for(v in h.breakpoints)r.hide[v]=i.data("hide")==="all"||n.inArray(v,o)>=0,a=a||r.hide[v];return r.hasBreakpoint=a,b=e.raise(c.columnData,{column:{data:r,th:t}}),b.column.data},e.getViewportWidth=function(){return window.innerWidth||(document.body?document.body.offsetWidth:0)},e.calculateWidth=function(n,t){return jQuery.isFunction(h.calculateWidthOverride)?h.calculateWidthOverride(n,t):(t.viewportWidth<t.width&&(t.width=t.viewportWidth),t.parentWidth<t.width&&(t.width=t.parentWidth),t)},e.hasBreakpointColumn=function(n){for(var t in e.columns)if(e.columns[t].hide[n]){if(e.columns[t].ignore)continue;return!0}return!1},e.hasAnyBreakpointColumn=function(){for(var n in e.columns)if(e.columns[n].hasBreakpoint)return!0;return!1},e.resize=function(){var t=n(e.table),i,r,o,u,h;if(t.is(":visible")){if(!e.hasAnyBreakpointColumn()){t.trigger(s.redraw);return}if(i={width:t.width(),viewportWidth:e.getViewportWidth(),parentWidth:t.parent().width()},i=e.calculateWidth(t,i),r=t.data("footable_info"),t.data("footable_info",i),e.raise(c.resizing,{old:r,info:i}),!r||r&&r.width&&r.width!==i.width){for(o=null,h=0;h<e.breakpoints.length;h++)if(u=e.breakpoints[h],u&&u.width&&i.width<=u.width){o=u;break}var f=o===null?"default":o.name,l=e.hasBreakpointColumn(f),a=t.data("breakpoint");t.data("breakpoint",f).removeClass("default breakpoint").removeClass(e.breakpointNames).addClass(f+(l?" breakpoint":""));f!==a&&(t.trigger(s.redraw),e.raise(c.breakpoint,{breakpoint:f,info:i}))}e.raise(c.resized,{old:r,info:i})}},e.redraw=function(){e.addRowToggle();e.bindToggleSelectors();e.setColumnClasses();var t=n(e.table),i=t.data("breakpoint"),r=e.hasBreakpointColumn(i);t.find("> tbody > tr:not(."+o.detail+")").data("detail_created",!1).end().find("> thead > tr:last-child > th").each(function(){var r=e.columns[n(this).index()],u="",h=!0,f;if(n.each(r.matches,function(n,t){h||(u+=", ");var i=t+1;u+="> tbody > tr:not(."+o.detail+") > td:nth-child("+i+")";u+=", > tfoot > tr:not(."+o.detail+") > td:nth-child("+i+")";u+=", > colgroup > col:nth-child("+i+")";h=!1}),u+=', > thead > tr[data-group-row="true"] > th[data-group="'+r.group+'"]',f=t.find(u).add(this),i!==""&&(r.hide[i]===!1?f.addClass("footable-visible").show():f.removeClass("footable-visible").hide()),t.find("> thead > tr.footable-group-row").length===1){var l=t.find('> thead > tr:last-child > th[data-group="'+r.group+'"]:visible, > thead > tr:last-child > th[data-group="'+r.group+'"]:visible'),c=t.find('> thead > tr.footable-group-row > th[data-group="'+r.group+'"], > thead > tr.footable-group-row > td[data-group="'+r.group+'"]'),s=0;n.each(l,function(){s+=parseInt(n(this).attr("colspan")||1,10)});s>0?c.attr("colspan",s).show():c.hide()}}).end().find("> tbody > tr."+o.detailShow).each(function(){e.createOrUpdateDetailRow(this)});t.find("[data-bind-name]").each(function(){e.toggleInput(this)});t.find("> tbody > tr."+o.detailShow+":visible").each(function(){var t=n(this).next();t.hasClass(o.detail)&&(r?t.show():t.hide())});t.find("> thead > tr > th.footable-last-column, > tbody > tr > td.footable-last-column").removeClass("footable-last-column");t.find("> thead > tr > th.footable-first-column, > tbody > tr > td.footable-first-column").removeClass("footable-first-column");t.find("> thead > tr, > tbody > tr").find("> th.footable-visible:last, > td.footable-visible:last").addClass("footable-last-column").end().find("> th.footable-visible:first, > td.footable-visible:first").addClass("footable-first-column");e.raise(c.redrawn)},e.toggleDetail=function(t){var i=t.jquery?t:n(t),r=i.next();i.hasClass(o.detailShow)?(i.removeClass(o.detailShow),r.hasClass(o.detail)&&r.hide(),e.raise(c.rowCollapsed,{row:i[0]})):(e.createOrUpdateDetailRow(i[0]),i.addClass(o.detailShow).next().show(),e.raise(c.rowExpanded,{row:i[0]}))},e.removeRow=function(t){var i=t.jquery?t:n(t),r;i.hasClass(o.detail)&&(i=i.prev());r=i.next();i.data("detail_created")===!0&&r.remove();i.remove();e.raise(c.rowRemoved)},e.appendRow=function(t){var i=t.jquery?t:n(t);n(e.table).find("tbody").append(i);e.redraw()},e.getColumnFromTdIndex=function(t){var i=null;for(var r in e.columns)if(n.inArray(t,e.columns[r].matches)>=0){i=e.columns[r];break}return i},e.createOrUpdateDetailRow=function(t){var i=n(t),r=i.next(),s,u=[],l,f;return i.data("detail_created")===!0?!0:i.is(":hidden")?!1:(e.raise(c.rowDetailUpdating,{row:i,detail:r}),i.find("> td:hidden").each(function(){var r=n(this).index(),t=e.getColumnFromTdIndex(r),s=t.name,i,h,f;return t.ignore===!0?!0:(r in t.names&&(s=t.names[r]),i=n(this).attr("data-bind-name"),i!=null&&n(this).is(":empty")&&(h=n("."+o.detailInnerValue+'[data-bind-value="'+i+'"]'),n(this).html(n(h).contents().detach())),t.isEditable!==!1&&(t.isEditable||n(this).find(":input").length>0)&&(i==null&&(i="bind-"+n.now()+"-"+r,n(this).attr("data-bind-name",i)),f=n(this).contents().detach()),f||(f=n(this).contents().clone(!0,!0)),u.push({name:s,value:e.parse(this,t),display:f,group:t.group,groupName:t.groupName,bindName:i}),!0)}),u.length===0)?!1:(l=i.find("> td:visible").length,f=r.hasClass(o.detail),f||(r=n('<tr class="'+o.detail+'"><td class="'+o.detailCell+'"><div class="'+o.detailInner+'"><\/div><\/td><\/tr>'),i.after(r)),r.find("> td:first").attr("colspan",l),s=r.find("."+o.detailInner).empty(),h.createDetail(s,u,h.createGroupedDetail,h.detailSeparator,o),i.data("detail_created",!0),e.raise(c.rowDetailUpdated,{row:i,detail:r}),!f)},e.raise=function(t,i){var u,r;return e.options.debug===!0&&n.isFunction(e.options.log)&&e.options.log(t,"event"),i=i||{},u={ft:e},n.extend(!0,u,i),r=n.Event(t,u),r.ft||n.extend(!0,r,u),n(e.table).trigger(r),r},e.reset=function(){var t=n(e.table);t.removeData("footable_info").data("breakpoint","").removeClass(o.loading).removeClass(o.loaded);t.find(h.toggleSelector).unbind(s.toggleRow).unbind("click.footable");t.find("> tbody > tr").removeClass(o.detailShow);t.find("> tbody > tr."+o.detail).remove();e.raise(c.reset)},e.toggleInput=function(t){var r=n(t).attr("data-bind-name"),i;r!=null&&(i=n("."+o.detailInnerValue+'[data-bind-value="'+r+'"]'),i!=null&&(n(t).is(":visible")?n(i).is(":empty")||n(t).html(n(i).contents().detach()):n(t).is(":empty")||n(i).html(n(t).contents().detach())))},e.init(),e}t.footable={options:{delay:100,breakpoints:{phone:480,tablet:1024},parsers:{alpha:function(t){return n(t).data("value")||n.trim(n(t).text())},numeric:function(t){var i=n(t).data("value")||n(t).text().replace(/[^0-9.\-]/g,"");return i=parseFloat(i),isNaN(i)&&(i=0),i}},addRowToggle:!0,calculateWidthOverride:null,toggleSelector:" > tbody > tr:not(.footable-row-detail)",columnDataSelector:"> thead > tr:last-child > th, > thead > tr:last-child > td",detailSeparator:":",toggleHTMLElement:"<span />",createGroupedDetail:function(n){for(var i,r={_none:{name:null,data:[]}},t=0;t<n.length;t++)i=n[t].group,i!==null?(i in r||(r[i]={name:n[t].groupName||n[t].group,data:[]}),r[i].data.push(n[t])):r._none.data.push(n[t]);return r},createDetail:function(t,i,r,u,f){var o=r(i),e,s,h;for(e in o)if(o[e].data.length!==0)for(e!=="_none"&&t.append('<div class="'+f.detailInnerGroup+'">'+o[e].name+"<\/div>"),s=0;s<o[e].data.length;s++)h=o[e].data[s].name?u:"",t.append(n("<div><\/div>").addClass(f.detailInnerRow).append(n("<div><\/div>").addClass(f.detailInnerName).append(o[e].data[s].name+h)).append(n("<div><\/div>").addClass(f.detailInnerValue).attr("data-bind-value",o[e].data[s].bindName).append(o[e].data[s].display)))},classes:{main:"footable",loading:"footable-loading",loaded:"footable-loaded",toggle:"footable-toggle",disabled:"footable-disabled",detail:"footable-row-detail",detailCell:"footable-row-detail-cell",detailInner:"footable-row-detail-inner",detailInnerRow:"footable-row-detail-row",detailInnerGroup:"footable-row-detail-group",detailInnerName:"footable-row-detail-name",detailInnerValue:"footable-row-detail-value",detailShow:"footable-detail-show"},triggers:{initialize:"footable_initialize",resize:"footable_resize",redraw:"footable_redraw",toggleRow:"footable_toggle_row",expandFirstRow:"footable_expand_first_row",expandAll:"footable_expand_all",collapseAll:"footable_collapse_all"},events:{alreadyInitialized:"footable_already_initialized",initializing:"footable_initializing",initialized:"footable_initialized",resizing:"footable_resizing",resized:"footable_resized",redrawn:"footable_redrawn",breakpoint:"footable_breakpoint",columnData:"footable_column_data",rowDetailUpdating:"footable_row_detail_updating",rowDetailUpdated:"footable_row_detail_updated",rowCollapsed:"footable_row_collapsed",rowExpanded:"footable_row_expanded",rowRemoved:"footable_row_removed",reset:"footable_reset"},debug:!1,log:null},version:{major:0,minor:5,toString:function(){return t.footable.version.major+"."+t.footable.version.minor},parse:function(n){var t=/(\d+)\.?(\d+)?\.?(\d+)?/.exec(n);return{major:parseInt(t[1],10)||0,minor:parseInt(t[2],10)||0,patch:parseInt(t[3],10)||0}}},plugins:{_validate:function(i){if(!n.isFunction(i))return t.footable.options.debug===!0&&console.error('Validation failed, expected type "function", received type "{0}".',typeof i),!1;var r=new i;return typeof r.name!="string"?(t.footable.options.debug===!0&&console.error('Validation failed, plugin does not implement a string property called "name".',r),!1):n.isFunction(r.init)?(t.footable.options.debug===!0&&console.log('Validation succeeded for plugin "'+r.name+'".',r),!0):(t.footable.options.debug===!0&&console.error('Validation failed, plugin "'+r.name+'" does not implement a function called "init".',r),!1)},registered:[],register:function(i,r){t.footable.plugins._validate(i)&&(t.footable.plugins.registered.push(i),typeof r=="object"&&n.extend(!0,t.footable.options,r))},load:function(n){for(var r=[],u,i=0;i<t.footable.plugins.registered.length;i++)try{u=t.footable.plugins.registered[i];r.push(new u(n))}catch(f){t.footable.options.debug===!0&&console.error(f)}return r},init:function(n){for(var i=0;i<n.plugins.length;i++)try{n.plugins[i].init(n)}catch(r){t.footable.options.debug===!0&&console.error(r)}}}};var r=0;n.fn.footable=function(i){i=i||{};var f=n.extend(!0,{},t.footable.options,i);return this.each(function(){r++;var t=new u(this,f,r);n(this).data("footable",t)})}}(jQuery,window)