text: !function(a,b,c){var d=function(c,d){"use strict";var e=function(a,b){var d=this;if(!this instanceof e)return void alert("FixedColumns warning: FixedColumns must be initialised with the 'new' keyword.");"undefined"==typeof b&&(b={}),c.fn.dataTable.camelToHungarian&&c.fn.dataTable.camelToHungarian(e.defaults,b);var f=c.fn.dataTable.Api?new c.fn.dataTable.Api(a).settings()[0]:a.fnSettings();this.s={dt:f,iTableColumns:f.aoColumns.length,aiOuterWidths:[],aiInnerWidths:[]},this.dom={scroller:null,header:null,body:null,footer:null,grid:{wrapper:null,dt:null,left:{wrapper:null,head:null,body:null,foot:null},right:{wrapper:null,head:null,body:null,foot:null}},clone:{left:{header:null,body:null,footer:null},right:{header:null,body:null,footer:null}}},f._oFixedColumns=this,f._bInitComplete?this._fnConstruct(b):f.oApi._fnCallbackReg(f,"aoInitComplete",function(){d._fnConstruct(b)},"FixedColumns")};return e.prototype={fnUpdate:function(){this._fnDraw(!0)},fnRedrawLayout:function(){this._fnColCalc(),this._fnGridLayout(),this.fnUpdate()},fnRecalculateHeight:function(a){delete a._DTTC_iHeight,a.style.height="auto"},fnSetRowHeight:function(a,b){a.style.height=b+"px"},fnGetPosition:function(a){var b,d=this.s.dt.oInstance;if(c(a).parents(".DTFC_Cloned").length){if("tr"===a.nodeName.toLowerCase())return b=c(a).index(),d.fnGetPosition(c("tr",this.s.dt.nTBody)[b]);var e=c(a).index();b=c(a.parentNode).index();var f=d.fnGetPosition(c("tr",this.s.dt.nTBody)[b]);return[f,e,d.oApi._fnVisibleToColumnIndex(this.s.dt,e)]}return d.fnGetPosition(a)},_fnConstruct:function(d){var f=this;if("function"!=typeof this.s.dt.oInstance.fnVersionCheck||this.s.dt.oInstance.fnVersionCheck("1.8.0")!==!0)return void alert("FixedColumns "+e.VERSION+" required DataTables 1.8.0 or later. Please upgrade your DataTables installation");if(""===this.s.dt.oScroll.sX)return void this.s.dt.oInstance.oApi._fnLog(this.s.dt,1,"FixedColumns is not needed (no x-scrolling in DataTables enabled), so no action will be taken. Use 'FixedHeader' for column fixing when scrolling is not enabled");this.s=c.extend(!0,this.s,e.defaults,d);var g=this.s.dt.oClasses;this.dom.grid.dt=c(this.s.dt.nTable).parents("div."+g.sScrollWrapper)[0],this.dom.scroller=c("div."+g.sScrollBody,this.dom.grid.dt)[0],this._fnColCalc(),this._fnGridSetup();var h;c(this.dom.scroller).on("mouseover.DTFC touchstart.DTFC",function(){h="main"}).on("scroll.DTFC",function(){"main"===h&&(f.s.iLeftColumns>0&&(f.dom.grid.left.liner.scrollTop=f.dom.scroller.scrollTop),f.s.iRightColumns>0&&(f.dom.grid.right.liner.scrollTop=f.dom.scroller.scrollTop))});var i="onwheel"in b.createElement("div")?"wheel.DTFC":"mousewheel.DTFC";f.s.iLeftColumns>0&&c(f.dom.grid.left.liner).on("mouseover.DTFC touchstart.DTFC",function(){h="left"}).on("scroll.DTFC",function(){"left"===h&&(f.dom.scroller.scrollTop=f.dom.grid.left.liner.scrollTop,f.s.iRightColumns>0&&(f.dom.grid.right.liner.scrollTop=f.dom.grid.left.liner.scrollTop))}).on(i,function(a){var b="wheel"===a.type?-a.originalEvent.deltaX:a.originalEvent.wheelDeltaX;f.dom.scroller.scrollLeft-=b}),f.s.iRightColumns>0&&c(f.dom.grid.right.liner).on("mouseover.DTFC touchstart.DTFC",function(){h="right"}).on("scroll.DTFC",function(){"right"===h&&(f.dom.scroller.scrollTop=f.dom.grid.right.liner.scrollTop,f.s.iLeftColumns>0&&(f.dom.grid.left.liner.scrollTop=f.dom.grid.right.liner.scrollTop))}).on(i,function(a){var b="wheel"===a.type?-a.originalEvent.deltaX:a.originalEvent.wheelDeltaX;f.dom.scroller.scrollLeft-=b}),c(a).on("resize.DTFC",function(){f._fnGridLayout.call(f)});var j=!0,k=c(this.s.dt.nTable);k.on("draw.dt.DTFC",function(){f._fnDraw.call(f,j),j=!1}).on("column-sizing.dt.DTFC",function(){f._fnColCalc(),f._fnGridLayout(f)}).on("column-visibility.dt.DTFC",function(){f._fnColCalc(),f._fnGridLayout(f),f._fnDraw(!0)}).on("destroy.dt.DTFC",function(){k.off("column-sizing.dt.DTFC destroy.dt.DTFC draw.dt.DTFC"),c(f.dom.scroller).off("scroll.DTFC mouseover.DTFC"),c(a).off("resize.DTFC"),c(f.dom.grid.left.liner).off("scroll.DTFC mouseover.DTFC "+i),c(f.dom.grid.left.wrapper).remove(),c(f.dom.grid.right.liner).off("scroll.DTFC mouseover.DTFC "+i),c(f.dom.grid.right.wrapper).remove()}),this._fnGridLayout(),this.s.dt.oInstance.fnDraw(!1)},_fnColCalc:function(){var a=this,b=0,d=0;this.s.aiInnerWidths=[],this.s.aiOuterWidths=[],c.each(this.s.dt.aoColumns,function(e,f){var g,h=c(f.nTh);if(h.filter(":visible").length){var i=h.outerWidth();0===a.s.aiOuterWidths.length&&(g=c(a.s.dt.nTable).css("border-left-width"),i+="string"==typeof g?1:parseInt(g,10)),a.s.aiOuterWidths.length===a.s.dt.aoColumns.length-1&&(g=c(a.s.dt.nTable).css("border-right-width"),i+="string"==typeof g?1:parseInt(g,10)),a.s.aiOuterWidths.push(i),a.s.aiInnerWidths.push(h.width()),e<a.s.iLeftColumns&&(b+=i),a.s.iTableColumns-a.s.iRightColumns<=e&&(d+=i)}else a.s.aiInnerWidths.push(0),a.s.aiOuterWidths.push(0)}),this.s.iLeftWidth=b,this.s.iRightWidth=d},_fnGridSetup:function(){var a,b=this._fnDTOverflow();this.dom.body=this.s.dt.nTable,this.dom.header=this.s.dt.nTHead.parentNode,this.dom.header.parentNode.parentNode.style.position="relative";var d=c('<div class="DTFC_ScrollWrapper" style="position:relative; clear:both;"><div class="DTFC_LeftWrapper" style="position:absolute; top:0; left:0;"><div class="DTFC_LeftHeadWrapper" style="position:relative; top:0; left:0; overflow:hidden;"></div><div class="DTFC_LeftBodyWrapper" style="position:relative; top:0; left:0; overflow:hidden;"><div class="DTFC_LeftBodyLiner" style="position:relative; top:0; left:0; overflow-y:scroll;"></div></div><div class="DTFC_LeftFootWrapper" style="position:relative; top:0; left:0; overflow:hidden;"></div></div><div class="DTFC_RightWrapper" style="position:absolute; top:0; left:0;"><div class="DTFC_RightHeadWrapper" style="position:relative; top:0; left:0;"><div class="DTFC_RightHeadBlocker DTFC_Blocker" style="position:absolute; top:0; bottom:0;"></div></div><div class="DTFC_RightBodyWrapper" style="position:relative; top:0; left:0; overflow:hidden;"><div class="DTFC_RightBodyLiner" style="position:relative; top:0; left:0; overflow-y:scroll;"></div></div><div class="DTFC_RightFootWrapper" style="position:relative; top:0; left:0;"><div class="DTFC_RightFootBlocker DTFC_Blocker" style="position:absolute; top:0; bottom:0;"></div></div></div></div>')[0],e=d.childNodes[0],f=d.childNodes[1];this.dom.grid.dt.parentNode.insertBefore(d,this.dom.grid.dt),d.appendChild(this.dom.grid.dt),this.dom.grid.wrapper=d,this.s.iLeftColumns>0&&(this.dom.grid.left.wrapper=e,this.dom.grid.left.head=e.childNodes[0],this.dom.grid.left.body=e.childNodes[1],this.dom.grid.left.liner=c("div.DTFC_LeftBodyLiner",d)[0],d.appendChild(e)),this.s.iRightColumns>0&&(this.dom.grid.right.wrapper=f,this.dom.grid.right.head=f.childNodes[0],this.dom.grid.right.body=f.childNodes[1],this.dom.grid.right.liner=c("div.DTFC_RightBodyLiner",d)[0],a=c("div.DTFC_RightHeadBlocker",d)[0],a.style.width=b.bar+"px",a.style.right=-b.bar+"px",this.dom.grid.right.headBlock=a,a=c("div.DTFC_RightFootBlocker",d)[0],a.style.width=b.bar+"px",a.style.right=-b.bar+"px",this.dom.grid.right.footBlock=a,d.appendChild(f)),this.s.dt.nTFoot&&(this.dom.footer=this.s.dt.nTFoot.parentNode,this.s.iLeftColumns>0&&(this.dom.grid.left.foot=e.childNodes[2]),this.s.iRightColumns>0&&(this.dom.grid.right.foot=f.childNodes[2]))},_fnGridLayout:function(){var a,b=this.dom.grid,d=c(b.wrapper).width(),e=c(this.s.dt.nTable.parentNode).outerHeight(),f=c(this.s.dt.nTable.parentNode.parentNode).outerHeight(),g=this._fnDTOverflow(),h=this.s.iLeftWidth,i=this.s.iRightWidth;g.x&&(e-=g.bar),b.wrapper.style.height=f+"px",this.s.iLeftColumns>0&&(b.left.wrapper.style.width=h+"px",b.left.wrapper.style.height="1px",b.left.body.style.height=e+"px",b.left.foot&&(b.left.foot.style.top=(g.x?g.bar:0)+"px"),b.left.liner.style.width=h+g.bar+"px",b.left.liner.style.height=e+"px"),this.s.iRightColumns>0&&(a=d-i,g.y&&(a-=g.bar),b.right.wrapper.style.width=i+"px",b.right.wrapper.style.left=a+"px",b.right.wrapper.style.height="1px",b.right.body.style.height=e+"px",b.right.foot&&(b.right.foot.style.top=(g.x?g.bar:0)+"px"),b.right.liner.style.width=i+g.bar+"px",b.right.liner.style.height=e+"px",b.right.headBlock.style.display=g.y?"block":"none",b.right.footBlock.style.display=g.y?"block":"none")},_fnDTOverflow:function(){var a=this.s.dt.nTable,b=a.parentNode,c={x:!1,y:!1,bar:this.s.dt.oScroll.iBarWidth};return a.offsetWidth>b.clientWidth&&(c.x=!0),a.offsetHeight>b.clientHeight&&(c.y=!0),c},_fnDraw:function(a){this._fnGridLayout(),this._fnCloneLeft(a),this._fnCloneRight(a),null!==this.s.fnDrawCallback&&this.s.fnDrawCallback.call(this,this.dom.clone.left,this.dom.clone.right),c(this).trigger("draw.dtfc",{leftClone:this.dom.clone.left,rightClone:this.dom.clone.right})},_fnCloneRight:function(a){if(!(this.s.iRightColumns<=0)){var b,c=[];for(b=this.s.iTableColumns-this.s.iRightColumns;b<this.s.iTableColumns;b++)this.s.dt.aoColumns[b].bVisible&&c.push(b);this._fnClone(this.dom.clone.right,this.dom.grid.right,c,a)}},_fnCloneLeft:function(a){if(!(this.s.iLeftColumns<=0)){var b,c=[];for(b=0;b<this.s.iLeftColumns;b++)this.s.dt.aoColumns[b].bVisible&&c.push(b);this._fnClone(this.dom.clone.left,this.dom.grid.left,c,a)}},_fnCopyLayout:function(a,b){for(var d=[],e=[],f=[],g=0,h=a.length;g<h;g++){var i=[];i.nTr=c(a[g].nTr).clone(!0,!0)[0];for(var j=0,k=this.s.iTableColumns;j<k;j++)if(c.inArray(j,b)!==-1){var l=c.inArray(a[g][j].cell,f);if(l===-1){var m=c(a[g][j].cell).clone(!0,!0)[0];e.push(m),f.push(a[g][j].cell),i.push({cell:m,unique:a[g][j].unique})}else i.push({cell:e[l],unique:a[g][j].unique})}d.push(i)}return d},_fnClone:function(a,b,d,e){var f,g,h,i,j,k,l,m,n,o,p=this;if(e){for(null!==a.header&&a.header.parentNode.removeChild(a.header),a.header=c(this.dom.header).clone(!0,!0)[0],a.header.className+=" DTFC_Cloned",a.header.style.width="100%",b.head.appendChild(a.header),m=this._fnCopyLayout(this.s.dt.aoHeader,d),n=c(">thead",a.header),n.empty(),f=0,g=m.length;f<g;f++)n[0].appendChild(m[f].nTr);this.s.dt.oApi._fnDrawHead(this.s.dt,m,!0)}else for(m=this._fnCopyLayout(this.s.dt.aoHeader,d),o=[],this.s.dt.oApi._fnDetectHeader(o,c(">thead",a.header)[0]),f=0,g=m.length;f<g;f++)for(h=0,i=m[f].length;h<i;h++)o[f][h].cell.className=m[f][h].cell.className,c("span.DataTables_sort_icon",o[f][h].cell).each(function(){this.className=c("span.DataTables_sort_icon",m[f][h].cell)[0].className});this._fnEqualiseHeights("thead",this.dom.header,a.header),"auto"==this.s.sHeightMatch&&c(">tbody>tr",p.dom.body).css("height","auto"),null!==a.body&&(a.body.parentNode.removeChild(a.body),a.body=null),a.body=c(this.dom.body).clone(!0)[0],a.body.className+=" DTFC_Cloned",a.body.style.paddingBottom=this.s.dt.oScroll.iBarWidth+"px",a.body.style.marginBottom=2*this.s.dt.oScroll.iBarWidth+"px",null!==a.body.getAttribute("id")&&a.body.removeAttribute("id"),c(">thead>tr",a.body).empty(),c(">tfoot",a.body).remove();var q=c("tbody",a.body)[0];if(c(q).empty(),this.s.dt.aiDisplay.length>0){var r=c(">thead>tr",a.body)[0];for(l=0;l<d.length;l++){j=d[l],k=c(this.s.dt.aoColumns[j].nTh).clone(!0)[0],k.innerHTML="";var s=k.style;s.paddingTop="0",s.paddingBottom="0",s.borderTopWidth="0",s.borderBottomWidth="0",s.height=0,s.width=p.s.aiInnerWidths[j]+"px",r.appendChild(k)}c(">tbody>tr",p.dom.body).each(function(a){var b=this.cloneNode(!1);b.removeAttribute("id");var e=p.s.dt.oFeatures.bServerSide===!1?p.s.dt.aiDisplay[p.s.dt._iDisplayStart+a]:a;for(l=0;l<d.length;l++){var f=p.s.dt.aoData[e].anCells||p.s.dt.oApi._fnGetTdNodes(p.s.dt,e);j=d[l],f.length>0&&(k=c(f[j]).clone(!0,!0)[0],b.appendChild(k))}q.appendChild(b)})}else c(">tbody>tr",p.dom.body).each(function(a){k=this.cloneNode(!0),k.className+=" DTFC_NoData",c("td",k).html(""),q.appendChild(k)});if(a.body.style.width="100%",a.body.style.margin="0",a.body.style.padding="0",e&&"undefined"!=typeof this.s.dt.oScroller&&b.liner.appendChild(this.s.dt.oScroller.dom.force.cloneNode(!0)),b.liner.appendChild(a.body),this._fnEqualiseHeights("tbody",p.dom.body,a.body),null!==this.s.dt.nTFoot){if(e){null!==a.footer&&a.footer.parentNode.removeChild(a.footer),a.footer=c(this.dom.footer).clone(!0,!0)[0],a.footer.className+=" DTFC_Cloned",a.footer.style.width="100%",b.foot.appendChild(a.footer),m=this._fnCopyLayout(this.s.dt.aoFooter,d);var t=c(">tfoot",a.footer);for(t.empty(),f=0,g=m.length;f<g;f++)t[0].appendChild(m[f].nTr);this.s.dt.oApi._fnDrawHead(this.s.dt,m,!0)}else{m=this._fnCopyLayout(this.s.dt.aoFooter,d);var u=[];for(this.s.dt.oApi._fnDetectHeader(u,c(">tfoot",a.footer)[0]),f=0,g=m.length;f<g;f++)for(h=0,i=m[f].length;h<i;h++)u[f][h].cell.className=m[f][h].cell.className}this._fnEqualiseHeights("tfoot",this.dom.footer,a.footer)}var v=this.s.dt.oApi._fnGetUniqueThs(this.s.dt,c(">thead",a.header)[0]);c(v).each(function(a){j=d[a],this.style.width=p.s.aiInnerWidths[j]+"px"}),null!==p.s.dt.nTFoot&&(v=this.s.dt.oApi._fnGetUniqueThs(this.s.dt,c(">tfoot",a.footer)[0]),c(v).each(function(a){j=d[a],this.style.width=p.s.aiInnerWidths[j]+"px"}))},_fnGetTrNodes:function(a){for(var b=[],c=0,d=a.childNodes.length;c<d;c++)"TR"==a.childNodes[c].nodeName.toUpperCase()&&b.push(a.childNodes[c]);return b},_fnEqualiseHeights:function(a,b,d){if("none"!=this.s.sHeightMatch||"thead"===a||"tfoot"===a){var e,f,g,h,i,j=b.getElementsByTagName(a)[0],k=d.getElementsByTagName(a)[0],l=c(">"+a+">tr:eq(0)",b).children(":first"),m=(l.outerHeight()-l.height(),this._fnGetTrNodes(j)),n=this._fnGetTrNodes(k),o=[];for(e=0,f=n.length;e<f;e++)h=m[e].offsetHeight,i=n[e].offsetHeight,g=i>h?i:h,"semiauto"==this.s.sHeightMatch&&(m[e]._DTTC_iHeight=g),o.push(g);for(e=0,f=n.length;e<f;e++)n[e].style.height=o[e]+"px",m[e].style.height=o[e]+"px"}}},e.defaults={iLeftColumns:1,iRightColumns:0,fnDrawCallback:null,sHeightMatch:"semiauto"},e.version="3.0.2",c.fn.dataTable.FixedColumns=e,c.fn.DataTable.FixedColumns=e,e};"function"==typeof define&&define.amd?define(["jquery","datatables"],d):"object"==typeof exports?d(require("jquery"),require("datatables")):jQuery&&!jQuery.fn.dataTable.FixedColumns&&d(jQuery,jQuery.fn.dataTable)}(window,document);