text: /*
     Copyright 2008-2014 SpryMedia Ltd.
  
   This source file is free software, available under the following license:
     MIT license - http://datatables.net/license
  
   This source file is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
  
   For details please refer to: http://www.datatables.net
     Copyright 2014 SpryMedia Ltd.
  
   This source file is free software, available under the following license:
     MIT license - http://datatables.net/license/mit
  
   This source file is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
  
   For details please refer to: http://www.datatables.net
  */
  (function(s,C,g){(function(d){"function"===typeof define&&define.amd?define("datatables",["jquery"],d):"object"===typeof exports?d(require("jquery")):jQuery&&!jQuery.fn.dataTable&&d(jQuery)})(function(d){function Q(a){var b,c,e={};d.each(a,function(f,h){(b=f.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" ")&&(c=f.replace(b[0],b[2].toLowerCase()),e[c]=f,"o"===b[1]&&Q(a[f]))});a._hungarianMap=e}function w(a,b,c){a._hungarianMap||Q(a);var e;d.each(b,function(f,h){e=a._hungarianMap[f];
  e===g||!c&&b[e]!==g||("o"===e.charAt(0)?(b[e]||(b[e]={}),d.extend(!0,b[e],b[f]),w(a[e],b[e],c)):b[e]=b[f])})}function U(a){var b=A.defaults.oLanguage,c=a.sZeroRecords;!a.sEmptyTable&&c&&"No data available in table"===b.sEmptyTable&&oa(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&c&&"Loading..."===b.sLoadingRecords&&oa(a,a,"sZeroRecords","sLoadingRecords");a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&mb(a)}function J(a){da(a,"ordering","bSort");da(a,"orderMulti","bSortMulti");
  da(a,"orderClasses","bSortClasses");da(a,"orderCellsTop","bSortCellsTop");da(a,"order","aaSorting");da(a,"orderFixed","aaSortingFixed");da(a,"paging","bPaginate");da(a,"pagingType","sPaginationType");da(a,"pageLength","iDisplayLength");da(a,"searching","bFilter");if(a=a.aoSearchCols)for(var b=0,c=a.length;b<c;b++)a[b]&&w(A.models.oSearch,a[b])}function p(a){da(a,"orderable","bSortable");da(a,"orderData","aDataSort");da(a,"orderSequence","asSorting");da(a,"orderDataType","sortDataType")}function q(a){a=
  a.oBrowser;var b=d("<div/>").css({position:"absolute",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(d("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(d('<div class="test"/>').css({width:"100%",height:10}))).appendTo("body"),c=b.find(".test");a.bScrollOversize=100===c[0].offsetWidth;a.bScrollbarLeft=1!==c.offset().left;b.remove()}function t(a,b,c,e,f,h){var l,m=!1;c!==g&&(l=c,m=!0);for(;e!==f;)a.hasOwnProperty(e)&&(l=m?b(l,a[e],e,a):a[e],m=!0,e+=h);return l}
  function B(a,b){var c=A.defaults.column,e=a.aoColumns.length,c=d.extend({},A.models.oColumn,c,{nTh:b?b:C.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[e],mData:c.mData?c.mData:e,idx:e});a.aoColumns.push(c);c=a.aoPreSearchCols;c[e]=d.extend({},A.models.oSearch,c[e]);I(a,e,null)}function I(a,b,c){b=a.aoColumns[b];var e=a.oClasses,f=d(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=f.attr("width")||null;var h=(f.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);
  h&&(b.sWidthOrig=h[1])}c!==g&&null!==c&&(p(c),w(A.defaults.column,c),c.mDataProp===g||c.mData||(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),d.extend(b,c),oa(b,c,"sWidth","sWidthOrig"),"number"===typeof c.iDataSort&&(b.aDataSort=[c.iDataSort]),oa(b,c,"aDataSort"));var l=b.mData,m=aa(l),n=b.mRender?aa(b.mRender):null;c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};b._bAttrSrc=d.isPlainObject(l)&&(c(l.sort)||c(l.type)||c(l.filter));
  b.fnGetData=function(a,b,c){var e=m(a,b,g,c);return n&&b?n(e,b,a,c):e};b.fnSetData=function(a,b,c){return sa(l)(a,b,c)};"number"!==typeof l&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,f.addClass(e.sSortableNone));a=-1!==d.inArray("asc",b.asSorting);c=-1!==d.inArray("desc",b.asSorting);b.bSortable&&(a||c)?a&&!c?(b.sSortingClass=e.sSortableAsc,b.sSortingClassJUI=e.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=e.sSortableDesc,b.sSortingClassJUI=e.sSortJUIDescAllowed):(b.sSortingClass=e.sSortable,
  b.sSortingClassJUI=e.sSortJUI):(b.sSortingClass=e.sSortableNone,b.sSortingClassJUI="")}function ja(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Ua(a);for(var c=0,e=b.length;c<e;c++)b[c].nTh.style.width=b[c].sWidth}b=a.oScroll;""===b.sY&&""===b.sX||Ba(a);S(a,null,"column-sizing",[a])}function ka(a,b){var c=ta(a,"bVisible");return"number"===typeof c[b]?c[b]:null}function fa(a,b){var c=ta(a,"bVisible"),c=d.inArray(b,c);return-1!==c?c:null}function pa(a){return ta(a,"bVisible").length}function ta(a,
  b){var c=[];d.map(a.aoColumns,function(a,f){a[b]&&c.push(f)});return c}function Ca(a){var b=a.aoColumns,c=a.aoData,e=A.ext.type.detect,f,h,l,m,d,v,y,E,r;f=0;for(h=b.length;f<h;f++)if(y=b[f],r=[],!y.sType&&y._sManualType)y.sType=y._sManualType;else if(!y.sType){l=0;for(m=e.length;l<m;l++){d=0;for(v=c.length;d<v&&(r[d]===g&&(r[d]=P(a,d,f,"type")),E=e[l](r[d],a),E&&"html"!==E);d++);if(E){y.sType=E;break}}y.sType||(y.sType="string")}}function Ia(a,b,c,e){var f,h,l,m,n,v,y=a.aoColumns;if(b)for(f=b.length-
  1;0<=f;f--){v=b[f];var E=v.targets!==g?v.targets:v.aTargets;d.isArray(E)||(E=[E]);h=0;for(l=E.length;h<l;h++)if("number"===typeof E[h]&&0<=E[h]){for(;y.length<=E[h];)B(a);e(E[h],v)}else if("number"===typeof E[h]&&0>E[h])e(y.length+E[h],v);else if("string"===typeof E[h])for(m=0,n=y.length;m<n;m++)("_all"==E[h]||d(y[m].nTh).hasClass(E[h]))&&e(m,v)}if(c)for(f=0,a=c.length;f<a;f++)e(f,c[f])}function la(a,b,c,e){var f=a.aoData.length,h=d.extend(!0,{},A.models.oRow,{src:c?"dom":"data"});h._aData=b;a.aoData.push(h);
  b=a.aoColumns;for(var h=0,l=b.length;h<l;h++)c&&Da(a,f,h,P(a,f,h)),b[h].sType=null;a.aiDisplayMaster.push(f);!c&&a.oFeatures.bDeferRender||X(a,f,c,e);return f}function ua(a,b){var c;b instanceof d||(b=d(b));return b.map(function(b,f){c=ga(a,f);return la(a,c.data,f,c.cells)})}function P(a,b,c,e){var f=a.iDraw,h=a.aoColumns[c],l=a.aoData[b]._aData,m=h.sDefaultContent;c=h.fnGetData(l,e,{settings:a,row:b,col:c});if(c===g)return a.iDrawError!=f&&null===m&&(wa(a,0,"Requested unknown parameter "+("function"==
  typeof h.mData?"{function}":"'"+h.mData+"'")+" for row "+b,4),a.iDrawError=f),m;if((c===l||null===c)&&null!==m)c=m;else if("function"===typeof c)return c.call(l);return null===c&&"display"==e?"":c}function Da(a,b,c,e){a.aoColumns[c].fnSetData(a.aoData[b]._aData,e,{settings:a,row:b,col:c})}function xa(a){return d.map(a.match(/(\\.|[^\.])+/g),function(a){return a.replace(/\\./g,".")})}function aa(a){if(d.isPlainObject(a)){var b={};d.each(a,function(a,c){c&&(b[a]=aa(c))});return function(a,c,h,l){var m=
  b[c]||b._;return m!==g?m(a,c,h,l):a}}if(null===a)return function(a){return a};if("function"===typeof a)return function(b,c,h,l){return a(b,c,h,l)};if("string"!==typeof a||-1===a.indexOf(".")&&-1===a.indexOf("[")&&-1===a.indexOf("("))return function(b,c){return b[a]};var c=function(a,b,h){var l,m;if(""!==h){m=xa(h);for(var d=0,v=m.length;d<v;d++){h=m[d].match(Ea);l=m[d].match(ya);if(h){m[d]=m[d].replace(Ea,"");""!==m[d]&&(a=a[m[d]]);l=[];m.splice(0,d+1);m=m.join(".");d=0;for(v=a.length;d<v;d++)l.push(c(a[d],
  b,m));a=h[0].substring(1,h[0].length-1);a=""===a?l:l.join(a);break}else if(l){m[d]=m[d].replace(ya,"");a=a[m[d]]();continue}if(null===a||a[m[d]]===g)return g;a=a[m[d]]}}return a};return function(b,f){return c(b,f,a)}}function sa(a){if(d.isPlainObject(a))return sa(a._);if(null===a)return function(){};if("function"===typeof a)return function(b,e,f){a(b,"set",e,f)};if("string"!==typeof a||-1===a.indexOf(".")&&-1===a.indexOf("[")&&-1===a.indexOf("("))return function(b,e){b[a]=e};var b=function(a,e,f){f=
  xa(f);var h;h=f[f.length-1];for(var l,d,n=0,v=f.length-1;n<v;n++){l=f[n].match(Ea);d=f[n].match(ya);if(l){f[n]=f[n].replace(Ea,"");a[f[n]]=[];h=f.slice();h.splice(0,n+1);l=h.join(".");d=0;for(v=e.length;d<v;d++)h={},b(h,e[d],l),a[f[n]].push(h);return}d&&(f[n]=f[n].replace(ya,""),a=a[f[n]](e));if(null===a[f[n]]||a[f[n]]===g)a[f[n]]={};a=a[f[n]]}if(h.match(ya))a[h.replace(ya,"")](e);else a[h.replace(Ea,"")]=e};return function(c,e){return b(c,e,a)}}function Fa(a){return ma(a.aoData,"_aData")}function va(a){a.aoData.length=
  0;a.aiDisplayMaster.length=0;a.aiDisplay.length=0}function u(a,b,c){for(var e=-1,f=0,h=a.length;f<h;f++)a[f]==b?e=f:a[f]>b&&a[f]--; -1!=e&&c===g&&a.splice(e,1)}function D(a,b,c,e){var f=a.aoData[b],h;if("dom"!==c&&(c&&"auto"!==c||"dom"!==f.src)){var l=f.anCells,d;if(l)for(c=0,h=l.length;c<h;c++){for(d=l[c];d.childNodes.length;)d.removeChild(d.firstChild);l[c].innerHTML=P(a,b,c,"display")}}else f._aData=ga(a,f).data;f._aSortData=null;f._aFilterData=null;a=a.aoColumns;if(e!==g)a[e].sType=null;else for(c=
  0,h=a.length;c<h;c++)a[c].sType=null;x(f)}function ga(a,b){var c=[],e=b.firstChild,f,h,l=0,m,n=a.aoColumns,v=a._rowReadObject,y=v?{}:[],E=function(a,b){if("string"===typeof a){var c=a.indexOf("@");-1!==c&&(c=a.substring(c+1),sa(a)(y,b.getAttribute(c)))}},r=function(a){h=n[l];m=d.trim(a.innerHTML);h&&h._bAttrSrc?(sa(h.mData._)(y,m),E(h.mData.sort,a),E(h.mData.type,a),E(h.mData.filter,a)):v?(h._setter||(h._setter=sa(h.mData)),h._setter(y,m)):y.push(m);l++};if(e)for(;e;){f=e.nodeName.toUpperCase();if("TD"==
  f||"TH"==f)r(e),c.push(e);e=e.nextSibling}else for(c=b.anCells,e=0,f=c.length;e<f;e++)r(c[e]);return{data:y,cells:c}}function X(a,b,c,e){var f=a.aoData[b],h=f._aData,l=[],d,n,v,y,E;if(null===f.nTr){d=c||C.createElement("tr");f.nTr=d;f.anCells=l;d._DT_RowIndex=b;x(f);y=0;for(E=a.aoColumns.length;y<E;y++){v=a.aoColumns[y];n=c?e[y]:C.createElement(v.sCellType);l.push(n);if(!c||v.mRender||v.mData!==y)n.innerHTML=P(a,b,y,"display");v.sClass&&(n.className+=" "+v.sClass);v.bVisible&&!c?d.appendChild(n):
  !v.bVisible&&c&&n.parentNode.removeChild(n);v.fnCreatedCell&&v.fnCreatedCell.call(a.oInstance,n,P(a,b,y),h,b,y)}S(a,"aoRowCreatedCallback",null,[d,h,b])}f.nTr.setAttribute("role","row")}function x(a){var b=a.nTr,c=a._aData;if(b){c.DT_RowId&&(b.id=c.DT_RowId);if(c.DT_RowClass){var e=c.DT_RowClass.split(" ");a.__rowc=a.__rowc?Va(a.__rowc.concat(e)):e;d(b).removeClass(a.__rowc.join(" ")).addClass(c.DT_RowClass)}c.DT_RowData&&d(b).data(c.DT_RowData)}}function L(a){var b,c,e,f,h,l=a.nTHead,m=a.nTFoot,
  n=0===d("th, td",l).length,v=a.oClasses,y=a.aoColumns;n&&(f=d("<tr/>").appendTo(l));b=0;for(c=y.length;b<c;b++)h=y[b],e=d(h.nTh).addClass(h.sClass),n&&e.appendTo(f),a.oFeatures.bSort&&(e.addClass(h.sSortingClass),!1!==h.bSortable&&(e.attr("tabindex",a.iTabIndex).attr("aria-controls",a.sTableId),Wa(a,h.nTh,b))),h.sTitle!=e.html()&&e.html(h.sTitle),Xa(a,"header")(a,e,h,v);n&&Ga(a.aoHeader,l);d(l).find(">tr").attr("role","row");d(l).find(">tr>th, >tr>td").addClass(v.sHeaderTH);d(m).find(">tr>th, >tr>td").addClass(v.sFooterTH);
  if(null!==m)for(a=a.aoFooter[0],b=0,c=a.length;b<c;b++)h=y[b],h.nTf=a[b].cell,h.sClass&&d(h.nTf).addClass(h.sClass)}function z(a,b,c){var e,f,h,l=[],m=[],n=a.aoColumns.length,v;if(b){c===g&&(c=!1);e=0;for(f=b.length;e<f;e++){l[e]=b[e].slice();l[e].nTr=b[e].nTr;for(h=n-1;0<=h;h--)a.aoColumns[h].bVisible||c||l[e].splice(h,1);m.push([])}e=0;for(f=l.length;e<f;e++){if(a=l[e].nTr)for(;h=a.firstChild;)a.removeChild(h);h=0;for(b=l[e].length;h<b;h++)if(v=n=1,m[e][h]===g){a.appendChild(l[e][h].cell);for(m[e][h]=
  1;l[e+n]!==g&&l[e][h].cell==l[e+n][h].cell;)m[e+n][h]=1,n++;for(;l[e][h+v]!==g&&l[e][h].cell==l[e][h+v].cell;){for(c=0;c<n;c++)m[e+c][h+v]=1;v++}d(l[e][h].cell).attr("rowspan",n).attr("colspan",v)}}}}function Z(a){var b=S(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==d.inArray(!1,b))ha(a,!1);else{var b=[],c=0,e=a.asStripeClasses,f=e.length,h=a.oLanguage,l=a.iInitDisplayStart,m="ssp"==ea(a),n=a.aiDisplay;a.bDrawing=!0;l!==g&&-1!==l&&(a._iDisplayStart=m?l:l>=a.fnRecordsDisplay()?0:l,a.iInitDisplayStart=
  -1);var l=a._iDisplayStart,v=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,ha(a,!1);else if(!m)a.iDraw++;else if(!a.bDestroying&&!V(a))return;if(0!==n.length)for(h=m?a.aoData.length:v,m=m?0:l;m<h;m++){var y=n[m],E=a.aoData[y];null===E.nTr&&X(a,y);y=E.nTr;if(0!==f){var r=e[c%f];E._sRowStripe!=r&&(d(y).removeClass(E._sRowStripe).addClass(r),E._sRowStripe=r)}S(a,"aoRowCallback",null,[y,E._aData,c,m]);b.push(y);c++}else c=h.sZeroRecords,1==a.iDraw&&"ajax"==ea(a)?c=h.sLoadingRecords:
  h.sEmptyTable&&0===a.fnRecordsTotal()&&(c=h.sEmptyTable),b[0]=d("<tr/>",{"class":f?e[0]:""}).append(d("<td />",{valign:"top",colSpan:pa(a),"class":a.oClasses.sRowEmpty}).html(c))[0];S(a,"aoHeaderCallback","header",[d(a.nTHead).children("tr")[0],Fa(a),l,v,n]);S(a,"aoFooterCallback","footer",[d(a.nTFoot).children("tr")[0],Fa(a),l,v,n]);e=d(a.nTBody);e.children().detach();e.append(d(b));S(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function K(a,b){var c=a.oFeatures,e=c.bFilter;
  c.bSort&&nb(a);e?ia(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;Z(a);a._drawHold=!1}function ob(a){var b=a.oClasses,c=d(a.nTable),c=d("<div/>").insertBefore(c),e=a.oFeatures,f=d("<div/>",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=f[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var h=a.sDom.split(""),l,m,n,v,y,E,r=0;r<h.length;r++){l=null;m=h[r];if("<"==m){n=d("<div/>")[0];
  v=h[r+1];if("'"==v||'"'==v){y="";for(E=2;h[r+E]!=v;)y+=h[r+E],E++;"H"==y?y=b.sJUIHeader:"F"==y&&(y=b.sJUIFooter);-1!=y.indexOf(".")?(v=y.split("."),n.id=v[0].substr(1,v[0].length-1),n.className=v[1]):"#"==y.charAt(0)?n.id=y.substr(1,y.length-1):n.className=y;r+=E}f.append(n);f=d(n)}else if(">"==m)f=f.parent();else if("l"==m&&e.bPaginate&&e.bLengthChange)l=pb(a);else if("f"==m&&e.bFilter)l=O(a);else if("r"==m&&e.bProcessing)l=qb(a);else if("t"==m)l=rb(a);else if("i"==m&&e.bInfo)l=sb(a);else if("p"==
  m&&e.bPaginate)l=tb(a);else if(0!==A.ext.feature.length)for(n=A.ext.feature,E=0,v=n.length;E<v;E++)if(m==n[E].cFeature){l=n[E].fnInit(a);break}l&&(n=a.aanFeatures,n[m]||(n[m]=[]),n[m].push(l),f.append(l))}c.replaceWith(f)}function Ga(a,b){var c=d(b).children("tr"),e,f,h,l,m,n,v,y,E,r;a.splice(0,a.length);h=0;for(n=c.length;h<n;h++)a.push([]);h=0;for(n=c.length;h<n;h++)for(e=c[h],f=e.firstChild;f;){if("TD"==f.nodeName.toUpperCase()||"TH"==f.nodeName.toUpperCase()){y=1*f.getAttribute("colspan");E=1*
  f.getAttribute("rowspan");y=y&&0!==y&&1!==y?y:1;E=E&&0!==E&&1!==E?E:1;l=0;for(m=a[h];m[l];)l++;v=l;r=1===y?!0:!1;for(m=0;m<y;m++)for(l=0;l<E;l++)a[h+l][v+m]={cell:f,unique:r},a[h+l].nTr=e}f=f.nextSibling}}function Ja(a,b,c){var e=[];c||(c=a.aoHeader,b&&(c=[],Ga(c,b)));b=0;for(var f=c.length;b<f;b++)for(var h=0,l=c[b].length;h<l;h++)!c[b][h].unique||e[h]&&a.bSortCellsTop||(e[h]=c[b][h].cell);return e}function H(a,b,c){S(a,"aoServerParams","serverParams",[b]);if(b&&d.isArray(b)){var e={},f=/(.*?)\[\]$/;
  d.each(b,function(a,b){var c=b.name.match(f);c?(c=c[0],e[c]||(e[c]=[]),e[c].push(b.value)):e[b.name]=b.value});b=e}var h,l=a.ajax,m=a.oInstance;if(d.isPlainObject(l)&&l.data){h=l.data;var n=d.isFunction(h)?h(b):h;b=d.isFunction(h)&&n?n:d.extend(!0,b,n);delete l.data}n={data:b,success:function(b){var e=b.error||b.sError;e&&a.oApi._fnLog(a,0,e);a.json=b;S(a,null,"xhr",[a,b]);c(b)},dataType:"json",cache:!1,type:a.sServerMethod,error:function(b,c,e){e=a.oApi._fnLog;"parsererror"==c?e(a,0,"Invalid JSON response",
  1):4===b.readyState&&e(a,0,"Ajax error",7);ha(a,!1)}};a.oAjaxData=b;S(a,null,"preXhr",[a,b]);a.fnServerData?a.fnServerData.call(m,a.sAjaxSource,d.map(b,function(a,b){return{name:b,value:a}}),c,a):a.sAjaxSource||"string"===typeof l?a.jqXHR=d.ajax(d.extend(n,{url:l||a.sAjaxSource})):d.isFunction(l)?a.jqXHR=l.call(m,b,c,a):(a.jqXHR=d.ajax(d.extend(n,l)),l.data=h)}function V(a){return a.bAjaxDataGet?(a.iDraw++,ha(a,!0),H(a,F(a),function(b){ba(a,b)}),!1):!0}function F(a){var b=a.aoColumns,c=b.length,e=
  a.oFeatures,f=a.oPreviousSearch,h=a.aoPreSearchCols,l,m=[],n,v,y,g=za(a);l=a._iDisplayStart;n=!1!==e.bPaginate?a._iDisplayLength:-1;var r=function(a,b){m.push({name:a,value:b})};r("sEcho",a.iDraw);r("iColumns",c);r("sColumns",ma(b,"sName").join(","));r("iDisplayStart",l);r("iDisplayLength",n);var u={draw:a.iDraw,columns:[],order:[],start:l,length:n,search:{value:f.sSearch,regex:f.bRegex}};for(l=0;l<c;l++)v=b[l],y=h[l],n="function"==typeof v.mData?"function":v.mData,u.columns.push({data:n,name:v.sName,
  searchable:v.bSearchable,orderable:v.bSortable,search:{value:y.sSearch,regex:y.bRegex}}),r("mDataProp_"+l,n),e.bFilter&&(r("sSearch_"+l,y.sSearch),r("bRegex_"+l,y.bRegex),r("bSearchable_"+l,v.bSearchable)),e.bSort&&r("bSortable_"+l,v.bSortable);e.bFilter&&(r("sSearch",f.sSearch),r("bRegex",f.bRegex));e.bSort&&(d.each(g,function(a,b){u.order.push({column:b.col,dir:b.dir});r("iSortCol_"+a,b.col);r("sSortDir_"+a,b.dir)}),r("iSortingCols",g.length));b=A.ext.legacy.ajax;return null===b?a.sAjaxSource?m:
  u:b?m:u}function ba(a,b){var c=function(a,c){return b[a]!==g?b[a]:b[c]},e=c("sEcho","draw"),f=c("iTotalRecords","recordsTotal"),c=c("iTotalDisplayRecords","recordsFiltered");if(e){if(1*e<a.iDraw)return;a.iDraw=1*e}va(a);a._iRecordsTotal=parseInt(f,10);a._iRecordsDisplay=parseInt(c,10);e=T(a,b);f=0;for(c=e.length;f<c;f++)la(a,e[f]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;Z(a);a._bInitComplete||Ka(a,b);a.bAjaxDataGet=!0;ha(a,!1)}function T(a,b){var c=d.isPlainObject(a.ajax)&&a.ajax.dataSrc!==
  g?a.ajax.dataSrc:a.sAjaxDataProp;return"data"===c?b.aaData||b[c]:""!==c?aa(c)(b):b}function O(a){var b=a.oClasses,c=a.sTableId,e=a.oLanguage,f=a.oPreviousSearch,h=a.aanFeatures,l='<input type="search" class="'+b.sFilterInput+'"/>',m=e.sSearch,m=m.match(/_INPUT_/)?m.replace("_INPUT_",l):m+l,b=d("<div/>",{id:h.f?null:c+"_filter","class":b.sFilter}).append(d("<label/>").append(m)),h=function(){var b=this.value?this.value:"";b!=f.sSearch&&(ia(a,{sSearch:b,bRegex:f.bRegex,bSmart:f.bSmart,bCaseInsensitive:f.bCaseInsensitive}),
  a._iDisplayStart=0,Z(a))},l=null!==a.searchDelay?a.searchDelay:"ssp"===ea(a)?400:0,n=d("input",b).val(f.sSearch).attr("placeholder",e.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT",l?La(h,l):h).bind("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);d(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{n[0]!==C.activeElement&&n.val(f.sSearch)}catch(e){}});return b[0]}function ia(a,b,c){var e=a.oPreviousSearch,f=a.aoPreSearchCols,h=function(a){e.sSearch=
  a.sSearch;e.bRegex=a.bRegex;e.bSmart=a.bSmart;e.bCaseInsensitive=a.bCaseInsensitive},l=function(a){return a.bEscapeRegex!==g?!a.bEscapeRegex:a.bRegex};Ca(a);if("ssp"!=ea(a)){ub(a,b.sSearch,c,l(b),b.bSmart,b.bCaseInsensitive);h(b);for(b=0;b<f.length;b++)na(a,f[b].sSearch,b,l(f[b]),f[b].bSmart,f[b].bCaseInsensitive);vb(a)}else h(b);a.bFiltered=!0;S(a,null,"search",[a])}function vb(a){for(var b=A.ext.search,c=a.aiDisplay,e,f,h=0,l=b.length;h<l;h++){for(var d=[],n=0,v=c.length;n<v;n++)f=c[n],e=a.aoData[f],
  b[h](a,e._aFilterData,f,e._aData,n)&&d.push(f);c.length=0;c.push.apply(c,d)}}function na(a,b,c,e,f,h){if(""!==b){var l=a.aiDisplay;e=Ya(b,e,f,h);for(f=l.length-1;0<=f;f--)b=a.aoData[l[f]]._aFilterData[c],e.test(b)||l.splice(f,1)}}function ub(a,b,c,e,f,h){e=Ya(b,e,f,h);f=a.oPreviousSearch.sSearch;h=a.aiDisplayMaster;var l;0!==A.ext.search.length&&(c=!0);l=wb(a);if(0>=b.length)a.aiDisplay=h.slice();else{if(l||c||f.length>b.length||0!==b.indexOf(f)||a.bSorted)a.aiDisplay=h.slice();b=a.aiDisplay;for(c=
  b.length-1;0<=c;c--)e.test(a.aoData[b[c]]._sFilterRow)||b.splice(c,1)}}function Ya(a,b,c,e){a=b?a:Za(a);c&&(a="^(?=.*?"+d.map(a.match(/"[^"]+"|[^ ]+/g)||"",function(a){if('"'===a.charAt(0)){var b=a.match(/^"(.*)"$/);a=b?b[1]:a}return a.replace('"',"")}).join(")(?=.*?")+").*$");return new RegExp(a,e?"i":"")}function Za(a){return a.replace(Ub,"\\$1")}function wb(a){var b=a.aoColumns,c,e,f,h,l,d,n,v,y=A.ext.type.search;c=!1;e=0;for(h=a.aoData.length;e<h;e++)if(v=a.aoData[e],!v._aFilterData){d=[];f=0;
  for(l=b.length;f<l;f++)c=b[f],c.bSearchable?(n=P(a,e,f,"filter"),y[c.sType]&&(n=y[c.sType](n)),null===n&&(n=""),"string"!==typeof n&&n.toString&&(n=n.toString())):n="",n.indexOf&&-1!==n.indexOf("&")&&(Ma.innerHTML=n,n=Vb?Ma.textContent:Ma.innerText),n.replace&&(n=n.replace(/[\r\n]/g,"")),d.push(n);v._aFilterData=d;v._sFilterRow=d.join("  ");c=!0}return c}function xb(a){return{search:a.sSearch,smart:a.bSmart,regex:a.bRegex,caseInsensitive:a.bCaseInsensitive}}function yb(a){return{sSearch:a.search,
  bSmart:a.smart,bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function sb(a){var b=a.sTableId,c=a.aanFeatures.i,e=d("<div/>",{"class":a.oClasses.sInfo,id:c?null:b+"_info"});c||(a.aoDrawCallback.push({fn:zb,sName:"information"}),e.attr("role","status").attr("aria-live","polite"),d(a.nTable).attr("aria-describedby",b+"_info"));return e[0]}function zb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,e=a._iDisplayStart+1,f=a.fnDisplayEnd(),h=a.fnRecordsTotal(),l=a.fnRecordsDisplay(),m=
  l?c.sInfo:c.sInfoEmpty;l!==h&&(m+=" "+c.sInfoFiltered);m+=c.sInfoPostFix;m=Ab(a,m);c=c.fnInfoCallback;null!==c&&(m=c.call(a.oInstance,a,e,f,h,l,m));d(b).html(m)}}function Ab(a,b){var c=a.fnFormatNumber,e=a._iDisplayStart+1,f=a._iDisplayLength,h=a.fnRecordsDisplay(),l=-1===f;return b.replace(/_START_/g,c.call(a,e)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,h)).replace(/_PAGE_/g,c.call(a,l?1:Math.ceil(e/f))).replace(/_PAGES_/g,
  c.call(a,l?1:Math.ceil(h/f)))}function Na(a){var b,c,e=a.iInitDisplayStart,f=a.aoColumns,h;c=a.oFeatures;if(a.bInitialised){ob(a);L(a);z(a,a.aoHeader);z(a,a.aoFooter);ha(a,!0);c.bAutoWidth&&Ua(a);b=0;for(c=f.length;b<c;b++)h=f[b],h.sWidth&&(h.nTh.style.width=M(h.sWidth));K(a);f=ea(a);"ssp"!=f&&("ajax"==f?H(a,[],function(c){var h=T(a,c);for(b=0;b<h.length;b++)la(a,h[b]);a.iInitDisplayStart=e;K(a);ha(a,!1);Ka(a,c)},a):(ha(a,!1),Ka(a)))}else setTimeout(function(){Na(a)},200)}function Ka(a,b){a._bInitComplete=
  !0;b&&ja(a);S(a,"aoInitComplete","init",[a,b])}function $a(a,b){var c=parseInt(b,10);a._iDisplayLength=c;ab(a);S(a,null,"length",[a,c])}function pb(a){for(var b=a.oClasses,c=a.sTableId,e=a.aLengthMenu,f=d.isArray(e[0]),h=f?e[0]:e,e=f?e[1]:e,f=d("<select/>",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),l=0,m=h.length;l<m;l++)f[0][l]=new Option(e[l],h[l]);var n=d("<div><label/></div>").addClass(b.sLength);a.aanFeatures.l||(n[0].id=c+"_length");n.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",
  f[0].outerHTML));d("select",n).val(a._iDisplayLength).bind("change.DT",function(b){$a(a,d(this).val());Z(a)});d(a.nTable).bind("length.dt.DT",function(b,c,e){a===c&&d("select",n).val(e)});return n[0]}function tb(a){var b=a.sPaginationType,c=A.ext.pager[b],e="function"===typeof c,f=function(a){Z(a)},b=d("<div/>").addClass(a.oClasses.sPaging+b)[0],h=a.aanFeatures;e||c.fnInit(a,b,f);h.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(e){var b=a._iDisplayStart,d=a._iDisplayLength,
  v=a.fnRecordsDisplay(),y=-1===d,b=y?0:Math.ceil(b/d),d=y?1:Math.ceil(v/d),v=c(b,d),g,y=0;for(g=h.p.length;y<g;y++)Xa(a,"pageButton")(a,h.p[y],y,v,b,d)}else c.fnUpdate(a,f)},sName:"pagination"}));return b}function bb(a,b,c){var e=a._iDisplayStart,f=a._iDisplayLength,h=a.fnRecordsDisplay();0===h||-1===f?e=0:"number"===typeof b?(e=b*f,e>h&&(e=0)):"first"==b?e=0:"previous"==b?(e=0<=f?e-f:0,0>e&&(e=0)):"next"==b?e+f<h&&(e+=f):"last"==b?e=Math.floor((h-1)/f)*f:wa(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==
  e;a._iDisplayStart=e;b&&(S(a,null,"page",[a]),c&&Z(a));return b}function qb(a){return d("<div/>",{id:a.aanFeatures.r?null:a.sTableId+"_processing","class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function ha(a,b){a.oFeatures.bProcessing&&d(a.aanFeatures.r).css("display",b?"block":"none");S(a,null,"processing",[a,b])}function rb(a){var b=d(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var e=c.sX,f=c.sY,h=a.oClasses,l=
  b.children("caption"),m=l.length?l[0]._captionSide:null,n=d(b[0].cloneNode(!1)),v=d(b[0].cloneNode(!1)),y=b.children("tfoot");c.sX&&"100%"===b.attr("width")&&b.removeAttr("width");y.length||(y=null);c=d("<div/>",{"class":h.sScrollWrapper}).append(d("<div/>",{"class":h.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:e?e?M(e):null:"100%"}).append(d("<div/>",{"class":h.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(n.removeAttr("id").css("margin-left",
  0).append(b.children("thead")))).append("top"===m?l:null)).append(d("<div/>",{"class":h.sScrollBody}).css({overflow:"auto",height:f?M(f):null,width:e?M(e):null}).append(b));y&&c.append(d("<div/>",{"class":h.sScrollFoot}).css({overflow:"hidden",border:0,width:e?e?M(e):null:"100%"}).append(d("<div/>",{"class":h.sScrollFootInner}).append(v.removeAttr("id").css("margin-left",0).append(b.children("tfoot")))).append("bottom"===m?l:null));var b=c.children(),g=b[0],h=b[1],r=y?b[2]:null;e&&d(h).scroll(function(a){a=
  this.scrollLeft;g.scrollLeft=a;y&&(r.scrollLeft=a)});a.nScrollHead=g;a.nScrollBody=h;a.nScrollFoot=r;a.aoDrawCallback.push({fn:Ba,sName:"scrolling"});return c[0]}function Ba(a){var b=a.oScroll,c=b.sX,e=b.sXInner,f=b.sY,h=b.iBarWidth,l=d(a.nScrollHead),m=l[0].style,n=l.children("div"),v=n[0].style,y=n.children("table"),n=a.nScrollBody,g=d(n),r=n.style,u=d(a.nScrollFoot).children("div"),D=u.children("table"),x=d(a.nTHead),p=d(a.nTable),A=p[0],z=A.style,ga=a.nTFoot?d(a.nTFoot):null,F=a.oBrowser,t=F.bScrollOversize,
  q,L,T,J,K,X=[],B=[],I=[],V,G=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};p.children("thead, tfoot").remove();K=x.clone().prependTo(p);q=x.find("tr");T=K.find("tr");K.find("th, td").removeAttr("tabindex");ga&&(J=ga.clone().prependTo(p),L=ga.find("tr"),J=J.find("tr"));c||(r.width="100%",l[0].style.width="100%");d.each(Ja(a,K),function(b,c){V=ka(a,b);c.style.width=a.aoColumns[V].sWidth});ga&&qa(function(a){a.style.width=""},J);b.bCollapse&&
  ""!==f&&(r.height=g[0].offsetHeight+x[0].offsetHeight+"px");l=p.outerWidth();""===c?(z.width="100%",t&&(p.find("tbody").height()>n.offsetHeight||"scroll"==g.css("overflow-y"))&&(z.width=M(p.outerWidth()-h))):""!==e?z.width=M(e):l==g.width()&&g.height()<p.height()?(z.width=M(l-h),p.outerWidth()>l-h&&(z.width=M(l))):z.width=M(l);l=p.outerWidth();qa(G,T);qa(function(a){I.push(a.innerHTML);X.push(M(d(a).css("width")))},T);qa(function(a,b){a.style.width=X[b]},q);d(T).height(0);ga&&(qa(G,J),qa(function(a){B.push(M(d(a).css("width")))},
  J),qa(function(a,b){a.style.width=B[b]},L),d(J).height(0));qa(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+I[b]+"</div>";a.style.width=X[b]},T);ga&&qa(function(a,b){a.innerHTML="";a.style.width=B[b]},J);p.outerWidth()<l?(L=n.scrollHeight>n.offsetHeight||"scroll"==g.css("overflow-y")?l+h:l,t&&(n.scrollHeight>n.offsetHeight||"scroll"==g.css("overflow-y"))&&(z.width=M(L-h)),""!==c&&""===e||wa(a,1,"Possible column misalignment",6)):L="100%";r.width=M(L);
  m.width=M(L);ga&&(a.nScrollFoot.style.width=M(L));!f&&t&&(r.height=M(A.offsetHeight+h));f&&b.bCollapse&&(r.height=M(f),b=c&&A.offsetWidth>n.offsetWidth?h:0,A.offsetHeight<n.offsetHeight&&(r.height=M(A.offsetHeight+b)));b=p.outerWidth();y[0].style.width=M(b);v.width=M(b);y=p.height()>n.clientHeight||"scroll"==g.css("overflow-y");F="padding"+(F.bScrollbarLeft?"Left":"Right");v[F]=y?h+"px":"0px";ga&&(D[0].style.width=M(b),u[0].style.width=M(b),u[0].style[F]=y?h+"px":"0px");g.scroll();!a.bSorted&&!a.bFiltered||
  a._drawHold||(n.scrollTop=0)}function qa(a,b,c){for(var e=0,f=0,h=b.length,l,d;f<h;){l=b[f].firstChild;for(d=c?c[f].firstChild:null;l;)1===l.nodeType&&(c?a(l,d,e):a(l,e),e++),l=l.nextSibling,d=c?d.nextSibling:null;f++}}function Ua(a){var b=a.nTable,c=a.aoColumns,e=a.oScroll,f=e.sY,h=e.sX,l=e.sXInner,m=c.length,e=ta(a,"bVisible"),n=d("th",a.nTHead),v=b.getAttribute("width"),y=b.parentNode,g=!1,r,u;for(r=0;r<e.length;r++)u=c[e[r]],null!==u.sWidth&&(u.sWidth=Bb(u.sWidthOrig,y),g=!0);if(g||h||f||m!=pa(a)||
  m!=n.length){m=d(b).clone().empty().css("visibility","hidden").removeAttr("id").append(d(a.nTHead).clone(!1)).append(d(a.nTFoot).clone(!1)).append(d("<tbody><tr/></tbody>"));m.find("tfoot th, tfoot td").css("width","");var D=m.find("tbody tr"),n=Ja(a,m.find("thead")[0]);for(r=0;r<e.length;r++)u=c[e[r]],n[r].style.width=null!==u.sWidthOrig&&""!==u.sWidthOrig?M(u.sWidthOrig):"";if(a.aoData.length)for(r=0;r<e.length;r++)g=e[r],u=c[g],d(Cb(a,g)).clone(!1).append(u.sContentPadding).appendTo(D);m.appendTo(y);
  h&&l?m.width(l):h?(m.css("width","auto"),m.width()<y.offsetWidth&&m.width(y.offsetWidth)):f?m.width(y.offsetWidth):v&&m.width(v);Db(a,m[0]);if(h){for(r=l=0;r<e.length;r++)u=c[e[r]],f=d(n[r]).outerWidth(),l+=null===u.sWidthOrig?f:parseInt(u.sWidth,10)+f-d(n[r]).width();m.width(M(l));b.style.width=M(l)}for(r=0;r<e.length;r++)if(u=c[e[r]],f=d(n[r]).width())u.sWidth=M(f);b.style.width=M(m.css("width"));m.remove()}else for(r=0;r<m;r++)c[r].sWidth=M(n.eq(r).width());v&&(b.style.width=M(v));!v&&!h||a._reszEvt||
  (d(s).bind("resize.DT-"+a.sInstance,La(function(){ja(a)})),a._reszEvt=!0)}function La(a,b){var c=b!==g?b:200,e,f;return function(){var b=this,l=+new Date,d=arguments;e&&l<e+c?(clearTimeout(f),f=setTimeout(function(){e=g;a.apply(b,d)},c)):e?(e=l,a.apply(b,d)):e=l}}function Bb(a,b){if(!a)return 0;var c=d("<div/>").css("width",M(a)).appendTo(b||C.body),e=c[0].offsetWidth;c.remove();return e}function Db(a,b){var c=a.oScroll;if(c.sX||c.sY)c=c.sX?0:c.iBarWidth,b.style.width=M(d(b).outerWidth()-c)}function Cb(a,
  b){var c=Eb(a,b);if(0>c)return null;var e=a.aoData[c];return e.nTr?e.anCells[b]:d("<td/>").html(P(a,c,b,"display"))[0]}function Eb(a,b){for(var c,e=-1,f=-1,h=0,l=a.aoData.length;h<l;h++)c=P(a,h,b,"display")+"",c=c.replace(Wb,""),c.length>e&&(e=c.length,f=h);return f}function M(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function Fb(){if(!A.__scrollbarWidth){var a=d("<p/>").css({width:"100%",height:200,padding:0})[0],b=d("<div/>").css({position:"absolute",top:0,
  left:0,width:200,height:150,padding:0,overflow:"hidden",visibility:"hidden"}).append(a).appendTo("body"),c=a.offsetWidth;b.css("overflow","scroll");a=a.offsetWidth;c===a&&(a=b[0].clientWidth);b.remove();A.__scrollbarWidth=c-a}return A.__scrollbarWidth}function za(a){var b,c,e=[],f=a.aoColumns,h,l,m,n;b=a.aaSortingFixed;c=d.isPlainObject(b);var v=[];h=function(a){a.length&&!d.isArray(a[0])?v.push(a):v.push.apply(v,a)};d.isArray(b)&&h(b);c&&b.pre&&h(b.pre);h(a.aaSorting);c&&b.post&&h(b.post);for(a=
  0;a<v.length;a++)for(n=v[a][0],h=f[n].aDataSort,b=0,c=h.length;b<c;b++)l=h[b],m=f[l].sType||"string",v[a]._idx===g&&(v[a]._idx=d.inArray(v[a][1],f[l].asSorting)),e.push({src:n,col:l,dir:v[a][1],index:v[a]._idx,type:m,formatter:A.ext.type.order[m+"-pre"]});return e}function nb(a){var b,c,e=[],f=A.ext.type.order,h=a.aoData,l=0,d,n=a.aiDisplayMaster,v;Ca(a);v=za(a);b=0;for(c=v.length;b<c;b++)d=v[b],d.formatter&&l++,Gb(a,d.col);if("ssp"!=ea(a)&&0!==v.length){b=0;for(c=n.length;b<c;b++)e[n[b]]=b;l===v.length?
  n.sort(function(a,b){var c,f,l,d,m=v.length,n=h[a]._aSortData,g=h[b]._aSortData;for(l=0;l<m;l++)if(d=v[l],c=n[d.col],f=g[d.col],c=c<f?-1:c>f?1:0,0!==c)return"asc"===d.dir?c:-c;c=e[a];f=e[b];return c<f?-1:c>f?1:0}):n.sort(function(a,b){var c,l,d,m,n=v.length,g=h[a]._aSortData,u=h[b]._aSortData;for(d=0;d<n;d++)if(m=v[d],c=g[m.col],l=u[m.col],m=f[m.type+"-"+m.dir]||f["string-"+m.dir],c=m(c,l),0!==c)return c;c=e[a];l=e[b];return c<l?-1:c>l?1:0})}a.bSorted=!0}function Hb(a){var b,c,e=a.aoColumns,f=za(a);
  a=a.oLanguage.oAria;for(var h=0,l=e.length;h<l;h++){c=e[h];var d=c.asSorting;b=c.sTitle.replace(/<.*?>/g,"");var n=c.nTh;n.removeAttribute("aria-sort");c.bSortable&&(0<f.length&&f[0].col==h?(n.setAttribute("aria-sort","asc"==f[0].dir?"ascending":"descending"),c=d[f[0].index+1]||d[0]):c=d[0],b+="asc"===c?a.sSortAscending:a.sSortDescending);n.setAttribute("aria-label",b)}}function cb(a,b,c,e){var f=a.aaSorting,h=a.aoColumns[b].asSorting,l=function(a,b){var c=a._idx;c===g&&(c=d.inArray(a[1],h));return c+
  1<h.length?c+1:b?null:0};"number"===typeof f[0]&&(f=a.aaSorting=[f]);c&&a.oFeatures.bSortMulti?(c=d.inArray(b,ma(f,"0")),-1!==c?(b=l(f[c],!0),null===b?f.splice(c,1):(f[c][1]=h[b],f[c]._idx=b)):(f.push([b,h[0],0]),f[f.length-1]._idx=0)):f.length&&f[0][0]==b?(b=l(f[0]),f.length=1,f[0][1]=h[b],f[0]._idx=b):(f.length=0,f.push([b,h[0]]),f[0]._idx=0);K(a);"function"==typeof e&&e(a)}function Wa(a,b,c,e){var f=a.aoColumns[c];db(b,{},function(b){!1!==f.bSortable&&(a.oFeatures.bProcessing?(ha(a,!0),setTimeout(function(){cb(a,
  c,b.shiftKey,e);"ssp"!==ea(a)&&ha(a,!1)},0)):cb(a,c,b.shiftKey,e))})}function Oa(a){var b=a.aLastSort,c=a.oClasses.sSortColumn,e=za(a),f=a.oFeatures,h,l;if(f.bSort&&f.bSortClasses){f=0;for(h=b.length;f<h;f++)l=b[f].src,d(ma(a.aoData,"anCells",l)).removeClass(c+(2>f?f+1:3));f=0;for(h=e.length;f<h;f++)l=e[f].src,d(ma(a.aoData,"anCells",l)).addClass(c+(2>f?f+1:3))}a.aLastSort=e}function Gb(a,b){var c=a.aoColumns[b],e=A.ext.order[c.sSortDataType],f;e&&(f=e.call(a.oInstance,a,b,fa(a,b)));for(var h,l=A.ext.type.order[c.sType+
  "-pre"],d=0,n=a.aoData.length;d<n;d++)if(c=a.aoData[d],c._aSortData||(c._aSortData=[]),!c._aSortData[b]||e)h=e?f[d]:P(a,d,b,"sort"),c._aSortData[b]=l?l(h):h}function Pa(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b={time:+new Date,start:a._iDisplayStart,length:a._iDisplayLength,order:d.extend(!0,[],a.aaSorting),search:xb(a.oPreviousSearch),columns:d.map(a.aoColumns,function(b,e){return{visible:b.bVisible,search:xb(a.aoPreSearchCols[e])}})};S(a,"aoStateSaveParams","stateSaveParams",[a,b]);a.oSavedState=
  b;a.fnStateSaveCallback.call(a.oInstance,a,b)}}function Ib(a,b){var c,e,f=a.aoColumns;if(a.oFeatures.bStateSave){var h=a.fnStateLoadCallback.call(a.oInstance,a);if(h&&h.time&&(c=S(a,"aoStateLoadParams","stateLoadParams",[a,h]),-1===d.inArray(!1,c)&&(c=a.iStateDuration,!(0<c&&h.time<+new Date-1E3*c)&&f.length===h.columns.length))){a.oLoadedState=d.extend(!0,{},h);a._iDisplayStart=h.start;a.iInitDisplayStart=h.start;a._iDisplayLength=h.length;a.aaSorting=[];d.each(h.order,function(b,c){a.aaSorting.push(c[0]>=
  f.length?[0,c[1]]:c)});d.extend(a.oPreviousSearch,yb(h.search));c=0;for(e=h.columns.length;c<e;c++){var l=h.columns[c];f[c].bVisible=l.visible;d.extend(a.aoPreSearchCols[c],yb(l.search))}S(a,"aoStateLoaded","stateLoaded",[a,h])}}}function Qa(a){var b=A.settings;a=d.inArray(a,ma(b,"nTable"));return-1!==a?b[a]:null}function wa(a,b,c,e){c="DataTables warning: "+(null!==a?"table id="+a.sTableId+" - ":"")+c;e&&(c+=". For more information about this error, please see http://datatables.net/tn/"+e);if(b)s.console&&
  console.log&&console.log(c);else if(a=A.ext,"alert"==(a.sErrMode||a.errMode))alert(c);else throw Error(c);}function oa(a,b,c,e){d.isArray(c)?d.each(c,function(c,e){d.isArray(e)?oa(a,b,e[0],e[1]):oa(a,b,e)}):(e===g&&(e=c),b[c]!==g&&(a[e]=b[c]))}function Jb(a,b,c){var e,f;for(f in b)b.hasOwnProperty(f)&&(e=b[f],d.isPlainObject(e)?(d.isPlainObject(a[f])||(a[f]={}),d.extend(!0,a[f],e)):c&&"data"!==f&&"aaData"!==f&&d.isArray(e)?a[f]=e.slice():a[f]=e);return a}function db(a,b,c){d(a).bind("click.DT",b,
  function(b){a.blur();c(b)}).bind("keypress.DT",b,function(a){13===a.which&&(a.preventDefault(),c(a))}).bind("selectstart.DT",function(){return!1})}function ca(a,b,c,e){c&&a[b].push({fn:c,sName:e})}function S(a,b,c,e){var f=[];b&&(f=d.map(a[b].slice().reverse(),function(b,c){return b.fn.apply(a.oInstance,e)}));null!==c&&d(a.nTable).trigger(c+".dt",e);return f}function ab(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),e=a._iDisplayLength;b>=c&&(b=c-e);if(-1===e||0>b)b=0;a._iDisplayStart=b}function Xa(a,
  b){var c=a.renderer,e=A.ext.renderer[b];return d.isPlainObject(c)&&c[b]?e[c[b]]||e._:"string"===typeof c?e[c]||e._:e._}function ea(a){return a.oFeatures.bServerSide?"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function eb(a,b){var c=[],c=Kb.numbers_length,e=Math.floor(c/2);b<=c?c=Aa(0,b):a<=e?(c=Aa(0,c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-e?c=Aa(b-(c-2),b):(c=Aa(a-1,a+2),c.push("ellipsis"),c.push(b-1)),c.splice(0,0,"ellipsis"),c.splice(0,0,0));c.DT_el="span";return c}function mb(a){d.each({num:function(b){return Ra(b,
  a)},"num-fmt":function(b){return Ra(b,a,fb)},"html-num":function(b){return Ra(b,a,Sa)},"html-num-fmt":function(b){return Ra(b,a,Sa,fb)}},function(b,c){Y.type.order[b+a+"-pre"]=c})}function Lb(a){return function(){var b=[Qa(this[A.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return A.ext.internal[a].apply(this,b)}}var A,Y,N,G,R,gb={},Mb=/[\r\n]/g,Sa=/<.*?>/g,Xb=/^[\w\+\-]/,Yb=/[\w\+\-]$/,Ub=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),fb=/[',$\u00a3\u20ac\u00a5%\u2009\u202F]/g,
  ra=function(a){return a&&!0!==a&&"-"!==a?!1:!0},Nb=function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},Ob=function(a,b){gb[b]||(gb[b]=new RegExp(Za(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace(gb[b],"."):a},hb=function(a,b,c){var e="string"===typeof a;b&&e&&(a=Ob(a,b));c&&e&&(a=a.replace(fb,""));return ra(a)||!isNaN(parseFloat(a))&&isFinite(a)},Pb=function(a,b,c){return ra(a)?!0:ra(a)||"string"===typeof a?hb(a.replace(Sa,""),b,c)?!0:null:null},ma=function(a,
  b,c){var e=[],f=0,h=a.length;if(c!==g)for(;f<h;f++)a[f]&&a[f][b]&&e.push(a[f][b][c]);else for(;f<h;f++)a[f]&&e.push(a[f][b]);return e},Ha=function(a,b,c,e){var f=[],h=0,l=b.length;if(e!==g)for(;h<l;h++)f.push(a[b[h]][c][e]);else for(;h<l;h++)f.push(a[b[h]][c]);return f},Aa=function(a,b){var c=[],e;b===g?(b=0,e=a):(e=b,b=a);for(var f=b;f<e;f++)c.push(f);return c},Va=function(a){var b=[],c,e,f=a.length,h,l=0;e=0;a:for(;e<f;e++){c=a[e];for(h=0;h<l;h++)if(b[h]===c)continue a;b.push(c);l++}return b},da=
  function(a,b,c){a[b]!==g&&(a[c]=a[b])},Ea=/\[.*?\]$/,ya=/\(\)$/,Ma=d("<div>")[0],Vb=Ma.textContent!==g,Wb=/<.*?>/g;A=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new N(Qa(this[Y.iApiIndex])):new N(this)};this.fnAddData=function(a,b){var c=this.api(!0),e=d.isArray(a)&&(d.isArray(a[0])||d.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===g||b)&&c.draw();return e.flatten().toArray()};this.fnAdjustColumnSizing=
  function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],e=c.oScroll;a===g||a?b.draw(!1):""===e.sX&&""===e.sY||Ba(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===g||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var e=this.api(!0);a=e.rows(a);var f=a.settings()[0],d=f.aoData[a[0][0]];a.remove();b&&b.call(this,f,d);(c===g||c)&&e.draw();return d};this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(!a)};
  this.fnFilter=function(a,b,c,e,f,d){f=this.api(!0);null===b||b===g?f.search(a,c,e,d):f.column(b).search(a,c,e,d);f.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==g){var e=a.nodeName?a.nodeName.toLowerCase():"";return b!==g||"td"==e||"th"==e?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==g?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();
  return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===g||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===g||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return Qa(this[Y.iApiIndex])};
  this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,e,f){var d=this.api(!0);c===g||null===c?d.row(b).data(a):d.cell(b,c).data(a);(f===g||f)&&d.columns.adjust();(e===g||e)&&d.draw();return 0};this.fnVersionCheck=Y.fnVersionCheck;var b=this,c=a===g,e=this.length;c&&(a={});this.oApi=this.internal=Y.internal;for(var f in A.ext.internal)f&&(this[f]=Lb(f));this.each(function(){var f={},l=1<e?Jb(f,a,!0):
  a,m=0,n,v=this.getAttribute("id"),f=!1,u=A.defaults;if("table"!=this.nodeName.toLowerCase())wa(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{J(u);p(u.column);w(u,u,!0);w(u.column,u.column,!0);w(u,l);var D=A.settings,m=0;for(n=D.length;m<n;m++){if(D[m].nTable==this){n=l.bRetrieve!==g?l.bRetrieve:u.bRetrieve;if(c||n)return D[m].oInstance;if(l.bDestroy!==g?l.bDestroy:u.bDestroy){D[m].oInstance.fnDestroy();break}else{wa(D[m],0,"Cannot reinitialise DataTable",3);return}}if(D[m].sTableId==
  this.id){D.splice(m,1);break}}if(null===v||""===v)this.id=v="DataTables_Table_"+A.ext._unique++;var r=d.extend(!0,{},A.models.oSettings,{nTable:this,oApi:b.internal,oInit:l,sDestroyWidth:d(this)[0].style.width,sInstance:v,sTableId:v});D.push(r);r.oInstance=1===b.length?b:d(this).dataTable();J(l);l.oLanguage&&U(l.oLanguage);l.aLengthMenu&&!l.iDisplayLength&&(l.iDisplayLength=d.isArray(l.aLengthMenu[0])?l.aLengthMenu[0][0]:l.aLengthMenu[0]);l=Jb(d.extend(!0,{},u),l);oa(r.oFeatures,l,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));
  oa(r,l,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]);oa(r.oScroll,l,[["sScrollX","sX"],["sScrollXInner",
  "sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);oa(r.oLanguage,l,"fnInfoCallback");ca(r,"aoDrawCallback",l.fnDrawCallback,"user");ca(r,"aoServerParams",l.fnServerParams,"user");ca(r,"aoStateSaveParams",l.fnStateSaveParams,"user");ca(r,"aoStateLoadParams",l.fnStateLoadParams,"user");ca(r,"aoStateLoaded",l.fnStateLoaded,"user");ca(r,"aoRowCallback",l.fnRowCallback,"user");ca(r,"aoRowCreatedCallback",l.fnCreatedRow,"user");ca(r,"aoHeaderCallback",l.fnHeaderCallback,"user");ca(r,"aoFooterCallback",
  l.fnFooterCallback,"user");ca(r,"aoInitComplete",l.fnInitComplete,"user");ca(r,"aoPreDrawCallback",l.fnPreDrawCallback,"user");v=r.oClasses;l.bJQueryUI?(d.extend(v,A.ext.oJUIClasses,l.oClasses),l.sDom===u.sDom&&"lfrtip"===u.sDom&&(r.sDom='<"H"lfr>t<"F"ip>'),r.renderer)?d.isPlainObject(r.renderer)&&!r.renderer.header&&(r.renderer.header="jqueryui"):r.renderer="jqueryui":d.extend(v,A.ext.classes,l.oClasses);d(this).addClass(v.sTable);if(""!==r.oScroll.sX||""!==r.oScroll.sY)r.oScroll.iBarWidth=Fb();
  !0===r.oScroll.sX&&(r.oScroll.sX="100%");r.iInitDisplayStart===g&&(r.iInitDisplayStart=l.iDisplayStart,r._iDisplayStart=l.iDisplayStart);null!==l.iDeferLoading&&(r.bDeferLoading=!0,m=d.isArray(l.iDeferLoading),r._iRecordsDisplay=m?l.iDeferLoading[0]:l.iDeferLoading,r._iRecordsTotal=m?l.iDeferLoading[1]:l.iDeferLoading);""!==l.oLanguage.sUrl?(r.oLanguage.sUrl=l.oLanguage.sUrl,d.getJSON(r.oLanguage.sUrl,null,function(a){U(a);w(u.oLanguage,a);d.extend(!0,r.oLanguage,l.oLanguage,a);Na(r)}),f=!0):d.extend(!0,
  r.oLanguage,l.oLanguage);null===l.asStripeClasses&&(r.asStripeClasses=[v.sStripeOdd,v.sStripeEven]);var m=r.asStripeClasses,x=d("tbody tr:eq(0)",this);-1!==d.inArray(!0,d.map(m,function(a,b){return x.hasClass(a)}))&&(d("tbody tr",this).removeClass(m.join(" ")),r.asDestroyStripes=m.slice());var D=[],z,m=this.getElementsByTagName("thead");0!==m.length&&(Ga(r.aoHeader,m[0]),D=Ja(r));if(null===l.aoColumns)for(z=[],m=0,n=D.length;m<n;m++)z.push(null);else z=l.aoColumns;m=0;for(n=z.length;m<n;m++)B(r,D?
  D[m]:null);Ia(r,l.aoColumnDefs,z,function(a,b){I(r,a,b)});if(x.length){var F=function(a,b){return a.getAttribute("data-"+b)?b:null};d.each(ga(r,x[0]).cells,function(a,b){var c=r.aoColumns[a];if(c.mData===a){var e=F(b,"sort")||F(b,"order"),f=F(b,"filter")||F(b,"search");if(null!==e||null!==f)c.mData={_:a+".display",sort:null!==e?a+".@data-"+e:g,type:null!==e?a+".@data-"+e:g,filter:null!==f?a+".@data-"+f:g},I(r,a)}})}var t=r.oFeatures;l.bStateSave&&(t.bStateSave=!0,Ib(r,l),ca(r,"aoDrawCallback",Pa,
  "state_save"));if(l.aaSorting===g)for(D=r.aaSorting,m=0,n=D.length;m<n;m++)D[m][1]=r.aoColumns[m].asSorting[0];Oa(r);t.bSort&&ca(r,"aoDrawCallback",function(){if(r.bSorted){var a=za(r),b={};d.each(a,function(a,c){b[c.src]=c.dir});S(r,null,"order",[r,a,b]);Hb(r)}});ca(r,"aoDrawCallback",function(){(r.bSorted||"ssp"===ea(r)||t.bDeferRender)&&Oa(r)},"sc");q(r);m=d(this).children("caption").each(function(){this._captionSide=d(this).css("caption-side")});n=d(this).children("thead");0===n.length&&(n=d("<thead/>").appendTo(this));
  r.nTHead=n[0];n=d(this).children("tbody");0===n.length&&(n=d("<tbody/>").appendTo(this));r.nTBody=n[0];n=d(this).children("tfoot");0===n.length&&0<m.length&&(""!==r.oScroll.sX||""!==r.oScroll.sY)&&(n=d("<tfoot/>").appendTo(this));0===n.length||0===n.children().length?d(this).addClass(v.sNoFooter):0<n.length&&(r.nTFoot=n[0],Ga(r.aoFooter,r.nTFoot));if(l.aaData)for(m=0;m<l.aaData.length;m++)la(r,l.aaData[m]);else(r.bDeferLoading||"dom"==ea(r))&&ua(r,d(r.nTBody).children("tr"));r.aiDisplay=r.aiDisplayMaster.slice();
  r.bInitialised=!0;!1===f&&Na(r)}});b=null;return this};var Qb=[],W=Array.prototype,Zb=function(a){var b,c,e=A.settings,f=d.map(e,function(a,b){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=d.inArray(a,f),-1!==b?[e[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?c=d(a):a instanceof d&&(c=a)}else return[];if(c)return c.map(function(a){b=d.inArray(this,f);return-1!==b?e[b]:null}).toArray()};
  N=function(a,b){if(!this instanceof N)throw"DT API must be constructed as a new object";var c=[],e=function(a){(a=Zb(a))&&c.push.apply(c,a)};if(d.isArray(a))for(var f=0,h=a.length;f<h;f++)e(a[f]);else e(a);this.context=Va(c);b&&this.push.apply(this,b.toArray?b.toArray():b);this.selector={rows:null,cols:null,opts:null};N.extend(this,this,Qb)};A.Api=N;N.prototype={concat:W.concat,context:[],each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=
  this.context;return b.length>a?new N(b[a],this[a]):null},filter:function(a){var b=[];if(W.filter)b=W.filter.call(this,a,this);else for(var c=0,e=this.length;c<e;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new N(this.context,b)},flatten:function(){var a=[];return new N(this.context,a.concat.apply(a,this.toArray()))},join:W.join,indexOf:W.indexOf||function(a,b){for(var c=b||0,e=this.length;c<e;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,c){var e=[],f,d,l,m,n,u=this.context,
  D,p,r=this.selector;"string"===typeof a&&(c=b,b=a,a=!1);d=0;for(l=u.length;d<l;d++){var x=new N(u[d]);if("table"===b)f=c.call(x,u[d],d),f!==g&&e.push(f);else if("columns"===b||"rows"===b)f=c.call(x,u[d],this[d],d),f!==g&&e.push(f);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b)for(p=this[d],"column-rows"===b&&(D=Ta(u[d],r.opts)),m=0,n=p.length;m<n;m++)f=p[m],f="cell"===b?c.call(x,u[d],f.row,f.column,d,m):c.call(x,u[d],f,d,m,D),f!==g&&e.push(f)}return e.length?(a=new N(u,a?e.concat.apply([],
  e):e),b=a.selector,b.rows=r.rows,b.cols=r.cols,b.opts=r.opts,a):this},lastIndexOf:W.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(a){var b=[];if(W.map)b=W.map.call(this,a,this);else for(var c=0,e=this.length;c<e;c++)b.push(a.call(this,this[c],c));return new N(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:W.pop,push:W.push,reduce:W.reduce||function(a,b){return t(this,a,b,0,this.length,1)},reduceRight:W.reduceRight||
  function(a,b){return t(this,a,b,this.length-1,-1,-1)},reverse:W.reverse,selector:null,shift:W.shift,sort:W.sort,splice:W.splice,toArray:function(){return W.slice.call(this)},to$:function(){return d(this)},toJQuery:function(){return d(this)},unique:function(){return new N(this.context,Va(this))},unshift:W.unshift};N.extend=function(a,b,c){if(b&&(b instanceof N||b.__dt_wrapper)){var e,f,h,l=function(a,b,c){return function(){var e=b.apply(a,arguments);N.extend(e,e,c.methodExt);return e}};e=0;for(f=c.length;e<
  f;e++)h=c[e],b[h.name]="function"===typeof h.val?l(a,h.val,h):d.isPlainObject(h.val)?{}:h.val,b[h.name].__dt_wrapper=!0,N.extend(a,b[h.name],h.propExt)}};N.register=G=function(a,b){if(d.isArray(a))for(var c=0,e=a.length;c<e;c++)N.register(a[c],b);else for(var f=a.split("."),h=Qb,l,m,c=0,e=f.length;c<e;c++){l=(m=-1!==f[c].indexOf("()"))?f[c].replace("()",""):f[c];var n;a:{n=0;for(var u=h.length;n<u;n++)if(h[n].name===l){n=h[n];break a}n=null}n||(n={name:l,val:{},methodExt:[],propExt:[]},h.push(n));
  c===e-1?n.val=b:h=m?n.methodExt:n.propExt}};N.registerPlural=R=function(a,b,c){N.register(a,c);N.register(b,function(){var a=c.apply(this,arguments);return a===this?this:a instanceof N?a.length?d.isArray(a[0])?new N(a.context,a[0]):a[0]:g:a})};var $b=function(a,b){if("number"===typeof a)return[b[a]];var c=d.map(b,function(a,b){return a.nTable});return d(c).filter(a).map(function(a){a=d.inArray(this,c);return b[a]}).toArray()};G("tables()",function(a){return a?new N($b(a,this.context)):this});G("table()",
  function(a){a=this.tables(a);var b=a.context;return b.length?new N(b[0]):a});R("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable})});R("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody})});R("tables().header()","table().header()",function(){return this.iterator("table",function(a){return a.nTHead})});R("tables().footer()","table().footer()",function(){return this.iterator("table",function(a){return a.nTFoot})});
  R("tables().containers()","table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper})});G("draw()",function(a){return this.iterator("table",function(b){K(b,!1===a)})});G("page()",function(a){return a===g?this.page.info().page:this.iterator("table",function(b){bb(b,a)})});G("page.info()",function(a){if(0===this.context.length)return g;a=this.context[0];var b=a._iDisplayStart,c=a._iDisplayLength,e=a.fnRecordsDisplay(),f=-1===c;return{page:f?0:Math.floor(b/c),pages:f?
  1:Math.ceil(e/c),start:b,end:a.fnDisplayEnd(),length:c,recordsTotal:a.fnRecordsTotal(),recordsDisplay:e}});G("page.len()",function(a){return a===g?0!==this.context.length?this.context[0]._iDisplayLength:g:this.iterator("table",function(b){$a(b,a)})});var Rb=function(a,b,c){"ssp"==ea(a)?K(a,b):(ha(a,!0),H(a,[],function(c){va(a);c=T(a,c);for(var e=0,d=c.length;e<d;e++)la(a,c[e]);K(a,b);ha(a,!1)}));if(c){var e=new N(a);e.one("draw",function(){c(e.ajax.json())})}};G("ajax.json()",function(){var a=this.context;
  if(0<a.length)return a[0].json});G("ajax.params()",function(){var a=this.context;if(0<a.length)return a[0].oAjaxData});G("ajax.reload()",function(a,b){return this.iterator("table",function(c){Rb(c,!1===b,a)})});G("ajax.url()",function(a){var b=this.context;if(a===g){if(0===b.length)return g;b=b[0];return b.ajax?d.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource}return this.iterator("table",function(b){d.isPlainObject(b.ajax)?b.ajax.url=a:b.ajax=a})});G("ajax.url().load()",function(a,b){return this.iterator("table",
  function(c){Rb(c,!1===b,a)})});var ib=function(a,b){var c=[],e,f,h,l,m,n;e=typeof a;a&&"string"!==e&&"function"!==e&&a.length!==g||(a=[a]);h=0;for(l=a.length;h<l;h++)for(f=a[h]&&a[h].split?a[h].split(","):[a[h]],m=0,n=f.length;m<n;m++)(e=b("string"===typeof f[m]?d.trim(f[m]):f[m]))&&e.length&&c.push.apply(c,e);return c},jb=function(a){a||(a={});a.filter&&!a.search&&(a.search=a.filter);return{search:a.search||"none",order:a.order||"current",page:a.page||"all"}},kb=function(a){for(var b=0,c=a.length;b<
  c;b++)if(0<a[b].length)return a[0]=a[b],a.length=1,a.context=[a.context[b]],a;a.length=0;return a},Ta=function(a,b){var c,e,f,h=[],l=a.aiDisplay;c=a.aiDisplayMaster;var m=b.search;e=b.order;f=b.page;if("ssp"==ea(a))return"removed"===m?[]:Aa(0,c.length);if("current"==f)for(c=a._iDisplayStart,e=a.fnDisplayEnd();c<e;c++)h.push(l[c]);else if("current"==e||"applied"==e)h="none"==m?c.slice():"applied"==m?l.slice():d.map(c,function(a,b){return-1===d.inArray(a,l)?a:null});else if("index"==e||"original"==
  e)for(c=0,e=a.aoData.length;c<e;c++)"none"==m?h.push(c):(f=d.inArray(c,l),(-1===f&&"removed"==m||0<=f&&"applied"==m)&&h.push(c));return h},ac=function(a,b,c){return ib(b,function(b){var f=Nb(b);if(null!==f&&!c)return[f];var h=Ta(a,c);if(null!==f&&-1!==d.inArray(f,h))return[f];if(!b)return h;f=Ha(a.aoData,h,"nTr");return"function"===typeof b?d.map(h,function(c){var f=a.aoData[c];return b(c,f._aData,f.nTr)?c:null}):b.nodeName&&-1!==d.inArray(b,f)?[b._DT_RowIndex]:d(f).filter(b).map(function(){return this._DT_RowIndex}).toArray()})};
  G("rows()",function(a,b){a===g?a="":d.isPlainObject(a)&&(b=a,a="");b=jb(b);var c=this.iterator("table",function(c){return ac(c,a,b)});c.selector.rows=a;c.selector.opts=b;return c});G("rows().nodes()",function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||g})});G("rows().data()",function(){return this.iterator(!0,"rows",function(a,b){return Ha(a.aoData,b,"_aData")})});R("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){var e=b.aoData[c];return"search"===
  a?e._aFilterData:e._aSortData})});R("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row",function(b,c){D(b,c,a)})});R("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,b){return b})});R("rows().remove()","row().remove()",function(){var a=this;return this.iterator("row",function(b,c,e){var f=b.aoData;f.splice(c,1);for(var h=0,l=f.length;h<l;h++)null!==f[h].nTr&&(f[h].nTr._DT_RowIndex=h);d.inArray(c,b.aiDisplay);u(b.aiDisplayMaster,c);u(b.aiDisplay,
  c);u(a[e],c,!1);ab(b)})});G("rows.add()",function(a){var b=this.iterator("table",function(b){var c,d,l,m=[];d=0;for(l=a.length;d<l;d++)c=a[d],c.nodeName&&"TR"===c.nodeName.toUpperCase()?m.push(ua(b,c)[0]):m.push(la(b,c));return m}),c=this.rows(-1);c.pop();c.push.apply(c,b.toArray());return c});G("row()",function(a,b){return kb(this.rows(a,b))});G("row().data()",function(a){var b=this.context;if(a===g)return b.length&&this.length?b[0].aoData[this[0]]._aData:g;b[0].aoData[this[0]]._aData=a;D(b[0],this[0],
  "data");return this});G("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||null:null});G("row.add()",function(a){a instanceof d&&a.length&&(a=a[0]);var b=this.iterator("table",function(b){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?ua(b,a)[0]:la(b,a)});return this.row(b[0])});var bc=function(a,b,c,e){var f=[],h=function(b,c){if(b.nodeName&&"tr"===b.nodeName.toLowerCase())f.push(b);else{var e=d("<tr><td/></tr>").addClass(c);d("td",e).addClass(c).html(b)[0].colSpan=
  pa(a);f.push(e[0])}};if(d.isArray(c)||c instanceof d)for(var l=0,m=c.length;l<m;l++)h(c[l],e);else h(c,e);b._details&&b._details.remove();b._details=d(f);b._detailsShow&&b._details.insertAfter(b.nTr)},lb=function(a,b){var c=a.context;c.length&&(c=c[0].aoData[b!==g?b:a[0]],c._details&&(c._details.remove(),c._detailsShow=g,c._details=g))},Sb=function(a,b){var c=a.context;if(c.length&&a.length){var e=c[0].aoData[a[0]];e._details&&((e._detailsShow=b)?e._details.insertAfter(e.nTr):e._details.detach(),
  cc(c[0]))}},cc=function(a){var b=new N(a),c=a.aoData;b.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");0<ma(c,"_details").length&&(b.on("draw.dt.DT_details",function(e,f){a===f&&b.rows({page:"current"}).eq(0).each(function(a){a=c[a];a._detailsShow&&a._details.insertAfter(a.nTr)})}),b.on("column-visibility.dt.DT_details",function(b,f,d,l){if(a===f)for(f=pa(f),d=0,l=c.length;d<l;d++)b=c[d],b._details&&b._details.children("td[colspan]").attr("colspan",f)}),b.on("destroy.dt.DT_details",
  function(e,f){if(a===f)for(var d=0,l=c.length;d<l;d++)c[d]._details&&lb(b,d)}))};G("row().child()",function(a,b){var c=this.context;if(a===g)return c.length&&this.length?c[0].aoData[this[0]]._details:g;!0===a?this.child.show():!1===a?lb(this):c.length&&this.length&&bc(c[0],c[0].aoData[this[0]],a,b);return this});G(["row().child.show()","row().child().show()"],function(a){Sb(this,!0);return this});G(["row().child.hide()","row().child().hide()"],function(){Sb(this,!1);return this});G(["row().child.remove()",
  "row().child().remove()"],function(){lb(this);return this});G("row().child.isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var dc=/^(.+):(name|visIdx|visible)$/,Tb=function(a,b,c,e,f){c=[];e=0;for(var d=f.length;e<d;e++)c.push(P(a,f[e],b));return c},ec=function(a,b,c){var e=a.aoColumns,f=ma(e,"sName"),h=ma(e,"nTh");return ib(b,function(b){var m=Nb(b);if(""===b)return Aa(e.length);if(null!==m)return[0<=m?m:e.length+m];if("function"===
  typeof b){var n=Ta(a,c);return d.map(e,function(c,e){return b(e,Tb(a,e,0,0,n),h[e])?e:null})}var u="string"===typeof b?b.match(dc):"";if(u)switch(u[2]){case "visIdx":case "visible":m=parseInt(u[1],10);if(0>m){var g=d.map(e,function(a,b){return a.bVisible?b:null});return[g[g.length+m]]}return[ka(a,m)];case "name":return d.map(f,function(a,b){return a===u[1]?b:null})}else return d(h).filter(b).map(function(){return d.inArray(this,h)}).toArray()})};G("columns()",function(a,b){a===g?a="":d.isPlainObject(a)&&
  (b=a,a="");b=jb(b);var c=this.iterator("table",function(c){return ec(c,a,b)});c.selector.cols=a;c.selector.opts=b;return c});R("columns().header()","column().header()",function(a,b){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh})});R("columns().footer()","column().footer()",function(a,b){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf})});R("columns().data()","column().data()",function(){return this.iterator("column-rows",Tb)});R("columns().dataSrc()",
  "column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData})});R("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,e,f,d){return Ha(b.aoData,d,"search"===a?"_aFilterData":"_aSortData",c)})});R("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,e,f){return Ha(a.aoData,f,"anCells",b)})});R("columns().visible()","column().visible()",function(a,b){return this.iterator("column",
  function(c,e){var f;if(a===g)f=c.aoColumns[e].bVisible;else{var h=c.aoColumns;f=h[e];var l=c.aoData,m,n,u;if(a===g)f=f.bVisible;else{if(f.bVisible!==a){if(a){var D=d.inArray(!0,ma(h,"bVisible"),e+1);m=0;for(n=l.length;m<n;m++)u=l[m].nTr,h=l[m].anCells,u&&u.insertBefore(h[e],h[D]||null)}else d(ma(c.aoData,"anCells",e)).detach();f.bVisible=a;z(c,c.aoHeader);z(c,c.aoFooter);if(b===g||b)ja(c),(c.oScroll.sX||c.oScroll.sY)&&Ba(c);S(c,null,"column-visibility",[c,e,a]);Pa(c)}f=void 0}}return f})});R("columns().indexes()",
  "column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?fa(b,c):c})});G("columns.adjust()",function(){return this.iterator("table",function(a){ja(a)})});G("column.index()",function(a,b){if(0!==this.context.length){var c=this.context[0];if("fromVisible"===a||"toData"===a)return ka(c,b);if("fromData"===a||"toVisible"===a)return fa(c,b)}});G("column()",function(a,b){return kb(this.columns(a,b))});var fc=function(a,b,c){var e=a.aoData,f=Ta(a,c);c=Ha(e,f,"anCells");
  var h=d([].concat.apply([],c)),l,m=a.aoColumns.length,n,u,D,p,r,x;return ib(b,function(b){var c="function"===typeof b;if(null===b||b===g||c){n=[];u=0;for(D=f.length;u<D;u++)for(l=f[u],p=0;p<m;p++)r={row:l,column:p},c?(x=a.aoData[l],b(r,P(a,l,p),x.anCells[p])&&n.push(r)):n.push(r);return n}return d.isPlainObject(b)?[b]:h.filter(b).map(function(a,b){l=b.parentNode._DT_RowIndex;return{row:l,column:d.inArray(b,e[l].anCells)}}).toArray()})};G("cells()",function(a,b,c){d.isPlainObject(a)&&(typeof a.row!==
  g?(c=b,b=null):(c=a,a=null));d.isPlainObject(b)&&(c=b,b=null);if(null===b||b===g)return this.iterator("table",function(b){return fc(b,a,jb(c))});var e=this.columns(b,c),f=this.rows(a,c),h,l,m,n,u,D=this.iterator("table",function(a,b){h=[];l=0;for(m=f[b].length;l<m;l++)for(n=0,u=e[b].length;n<u;n++)h.push({row:f[b][l],column:e[b][n]});return h});d.extend(D.selector,{cols:b,rows:a,opts:c});return D});R("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(a,b,c){return a.aoData[b].anCells[c]})});
  G("cells().data()",function(){return this.iterator("cell",function(a,b,c){return P(a,b,c)})});R("cells().cache()","cell().cache()",function(a){a="search"===a?"_aFilterData":"_aSortData";return this.iterator("cell",function(b,c,e){return b.aoData[c][a][e]})});R("cells().render()","cell().render()",function(a){return this.iterator("cell",function(b,c,e){return P(b,c,e,a)})});R("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:fa(a,
  c)}})});G(["cells().invalidate()","cell().invalidate()"],function(a){var b=this.selector;this.rows(b.rows,b.opts).invalidate(a);return this});G("cell()",function(a,b,c){return kb(this.cells(a,b,c))});G("cell().data()",function(a){var b=this.context,c=this[0];if(a===g)return b.length&&c.length?P(b[0],c[0].row,c[0].column):g;Da(b[0],c[0].row,c[0].column,a);D(b[0],c[0].row,"data",c[0].column);return this});G("order()",function(a,b){var c=this.context;if(a===g)return 0!==c.length?c[0].aaSorting:g;"number"===
  typeof a?a=[[a,b]]:d.isArray(a[0])||(a=Array.prototype.slice.call(arguments));return this.iterator("table",function(b){b.aaSorting=a.slice()})});G("order.listener()",function(a,b,c){return this.iterator("table",function(e){Wa(e,a,b,c)})});G(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,e){var f=[];d.each(b[e],function(b,c){f.push([c,a])});c.aaSorting=f})});G("search()",function(a,b,c,e){var f=this.context;return a===g?0!==f.length?f[0].oPreviousSearch.sSearch:
  g:this.iterator("table",function(f){f.oFeatures.bFilter&&ia(f,d.extend({},f.oPreviousSearch,{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===e?!0:e}),1)})});R("columns().search()","column().search()",function(a,b,c,e){return this.iterator("column",function(f,h){var l=f.aoPreSearchCols;if(a===g)return l[h].sSearch;f.oFeatures.bFilter&&(d.extend(l[h],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===e?!0:e}),ia(f,f.oPreviousSearch,1))})});
  G("state()",function(){return this.context.length?this.context[0].oSavedState:null});G("state.clear()",function(){return this.iterator("table",function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});G("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});G("state.save()",function(){return this.iterator("table",function(a){Pa(a)})});A.versionCheck=A.fnVersionCheck=function(a){var b=A.version.split(".");a=a.split(".");for(var c,e,f=0,d=a.length;f<d;f++)if(c=
  parseInt(b[f],10)||0,e=parseInt(a[f],10)||0,c!==e)return c>e;return!0};A.isDataTable=A.fnIsDataTable=function(a){var b=d(a).get(0),c=!1;d.each(A.settings,function(a,f){if(f.nTable===b||f.nScrollHead===b||f.nScrollFoot===b)c=!0});return c};A.tables=A.fnTables=function(a){return jQuery.map(A.settings,function(b){if(!a||a&&d(b.nTable).is(":visible"))return b.nTable})};A.util={throttle:La};A.camelToHungarian=w;G("$()",function(a,b){var c=this.rows(b).nodes(),c=d(c);return d([].concat(c.filter(a).toArray(),
  c.find(a).toArray()))});d.each(["on","one","off"],function(a,b){G(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0].match(/\.dt\b/)||(a[0]+=".dt");var e=d(this.tables().nodes());e[b].apply(e,a);return this})});G("clear()",function(){return this.iterator("table",function(a){va(a)})});G("settings()",function(){return new N(this.context,this.context)});G("data()",function(){return this.iterator("table",function(a){return ma(a.aoData,"_aData")}).flatten()});G("destroy()",function(a){a=
  a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,e=b.oClasses,f=b.nTable,h=b.nTBody,l=b.nTHead,m=b.nTFoot,n=d(f),h=d(h),u=d(b.nTableWrapper),g=d.map(b.aoData,function(a){return a.nTr}),D;b.bDestroying=!0;S(b,"aoDestroyCallback","destroy",[b]);a||(new N(b)).columns().visible(!0);u.unbind(".DT").find(":not(tbody *)").unbind(".DT");d(s).unbind(".DT-"+b.sInstance);f!=l.parentNode&&(n.children("thead").detach(),n.append(l));m&&f!=m.parentNode&&(n.children("tfoot").detach(),
  n.append(m));n.detach();u.detach();b.aaSorting=[];b.aaSortingFixed=[];Oa(b);d(g).removeClass(b.asStripeClasses.join(" "));d("th, td",l).removeClass(e.sSortable+" "+e.sSortableAsc+" "+e.sSortableDesc+" "+e.sSortableNone);b.bJUI&&(d("th span."+e.sSortIcon+", td span."+e.sSortIcon,l).detach(),d("th, td",l).each(function(){var a=d("div."+e.sSortJUIWrapper,this);d(this).append(a.contents());a.detach()}));!a&&c&&c.insertBefore(f,b.nTableReinsertBefore);h.children().detach();h.append(g);n.css("width",b.sDestroyWidth).removeClass(e.sTable);
  (D=b.asDestroyStripes.length)&&h.children().each(function(a){d(this).addClass(b.asDestroyStripes[a%D])});c=d.inArray(b,A.settings);-1!==c&&A.settings.splice(c,1)})});A.version="1.10.3";A.settings=[];A.models={};A.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};A.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null};A.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,
  _sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};A.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,
  bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,
  fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,
  oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",
  sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:d.extend({},A.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null};Q(A.defaults);A.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,
  sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};Q(A.defaults.column);A.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1},
  ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,
  bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:g,oAjaxData:g,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,
  bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==ea(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==ea(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=this._iDisplayLength,b=this._iDisplayStart,c=b+a,e=this.aiDisplay.length,f=this.oFeatures,d=f.bPaginate;return f.bServerSide?!1===d||-1===a?b+e:Math.min(b+a,this._iRecordsDisplay):!d||c>e||-1===a?e:c},oInstance:null,sInstance:null,
  iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{}};A.ext=Y={classes:{},errMode:"alert",feature:[],search:[],internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:A.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:A.version};d.extend(Y,{afnFiltering:Y.search,aTypes:Y.type.detect,ofnSearch:Y.type.search,oSort:Y.type.order,afnSortData:Y.order,aoFeatures:Y.feature,oApi:Y.internal,oStdClasses:Y.classes,
  oPagination:Y.pager});d.extend(A.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",
  sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",
  sJUIHeader:"",sJUIFooter:""});(function(){var a="",a="",b=a+"ui-state-default",c=a+"css_right ui-icon ui-icon-",a=a+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";d.extend(A.ext.oJUIClasses,A.ext.classes,{sPageButton:"fg-button ui-button "+b,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:b+" sorting_asc",sSortDesc:b+" sorting_desc",sSortable:b+
  " sorting",sSortableAsc:b+" sorting_asc_disabled",sSortableDesc:b+" sorting_desc_disabled",sSortableNone:b+" sorting_disabled",sSortJUIAsc:c+"triangle-1-n",sSortJUIDesc:c+"triangle-1-s",sSortJUI:c+"carat-2-n-s",sSortJUIAscAllowed:c+"carat-1-n",sSortJUIDescAllowed:c+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+b,sScrollFoot:"dataTables_scrollFoot "+b,sHeaderTH:b,sFooterTH:b,sJUIHeader:a+" ui-corner-tl ui-corner-tr",sJUIFooter:a+
  " ui-corner-bl ui-corner-br"})})();var Kb=A.ext.pager;d.extend(Kb,{simple:function(a,b){return["previous","next"]},full:function(a,b){return["first","previous","next","last"]},simple_numbers:function(a,b){return["previous",eb(a,b),"next"]},full_numbers:function(a,b){return["first","previous",eb(a,b),"next","last"]},_numbers:eb,numbers_length:7});d.extend(!0,A.ext.renderer,{pageButton:{_:function(a,b,c,e,f,h){var l=a.oClasses,m=a.oLanguage.oPaginate,n,u,g=0,D=function(b,e){var r,p,x,z,A=function(b){bb(a,
  b.data.action,!0)};r=0;for(p=e.length;r<p;r++)if(z=e[r],d.isArray(z))x=d("<"+(z.DT_el||"div")+"/>").appendTo(b),D(x,z);else{u=n="";switch(z){case "ellipsis":b.append("<span>&hellip;</span>");break;case "first":n=m.sFirst;u=z+(0<f?"":" "+l.sPageButtonDisabled);break;case "previous":n=m.sPrevious;u=z+(0<f?"":" "+l.sPageButtonDisabled);break;case "next":n=m.sNext;u=z+(f<h-1?"":" "+l.sPageButtonDisabled);break;case "last":n=m.sLast;u=z+(f<h-1?"":" "+l.sPageButtonDisabled);break;default:n=z+1,u=f===z?
  l.sPageButtonActive:""}n&&(x=d("<a>",{"class":l.sPageButton+" "+u,"aria-controls":a.sTableId,"data-dt-idx":g,tabindex:a.iTabIndex,id:0===c&&"string"===typeof z?a.sTableId+"_"+z:null}).html(n).appendTo(b),db(x,{action:z},A),g++)}};try{var r=d(C.activeElement).data("dt-idx");D(d(b).empty(),e);null!==r&&d(b).find("[data-dt-idx="+r+"]").focus()}catch(p){}}}});var Ra=function(a,b,c,e){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Ob(a,b));a.replace&&(c&&(a=a.replace(c,"")),e&&(a=a.replace(e,"")));return 1*
  a};d.extend(Y.type.order,{"date-pre":function(a){return Date.parse(a)||0},"html-pre":function(a){return ra(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return ra(a)?"":"string"===typeof a?a.toLowerCase():a.toString?a.toString():""},"string-asc":function(a,b){return a<b?-1:a>b?1:0},"string-desc":function(a,b){return a<b?1:a>b?-1:0}});mb("");d.extend(A.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return hb(a,c)?"num"+c:null},function(a,b){if(!(!a||
  a instanceof Date||Xb.test(a)&&Yb.test(a)))return null;var c=Date.parse(a);return null!==c&&!isNaN(c)||ra(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return hb(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Pb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Pb(a,c,!0)?"html-num-fmt"+c:null},function(a,b){return ra(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);d.extend(A.ext.type.search,{html:function(a){return ra(a)?a:"string"===
  typeof a?a.replace(Mb," ").replace(Sa,""):""},string:function(a){return ra(a)?a:"string"===typeof a?a.replace(Mb," "):a}});d.extend(!0,A.ext.renderer,{header:{_:function(a,b,c,e){d(a.nTable).on("order.dt.DT",function(f,d,l,m){a===d&&(f=c.idx,b.removeClass(c.sSortingClass+" "+e.sSortAsc+" "+e.sSortDesc).addClass("asc"==m[f]?e.sSortAsc:"desc"==m[f]?e.sSortDesc:c.sSortingClass))})},jqueryui:function(a,b,c,e){d("<div/>").addClass(e.sSortJUIWrapper).append(b.contents()).append(d("<span/>").addClass(e.sSortIcon+
  " "+c.sSortingClassJUI)).appendTo(b);d(a.nTable).on("order.dt.DT",function(f,d,l,m){a===d&&(f=c.idx,b.removeClass(e.sSortAsc+" "+e.sSortDesc).addClass("asc"==m[f]?e.sSortAsc:"desc"==m[f]?e.sSortDesc:c.sSortingClass),b.find("span."+e.sSortIcon).removeClass(e.sSortJUIAsc+" "+e.sSortJUIDesc+" "+e.sSortJUI+" "+e.sSortJUIAscAllowed+" "+e.sSortJUIDescAllowed).addClass("asc"==m[f]?e.sSortJUIAsc:"desc"==m[f]?e.sSortJUIDesc:c.sSortingClassJUI))})}}});A.render={number:function(a,b,c,e){return{display:function(f){var d=
  0>f?"-":"";f=Math.abs(parseFloat(f));var l=parseInt(f,10);f=c?b+(f-l).toFixed(c).substring(2):"";return d+(e||"")+l.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+f}}}};d.extend(A.ext.internal,{_fnExternApiFunc:Lb,_fnBuildAjax:H,_fnAjaxUpdate:V,_fnAjaxParameters:F,_fnAjaxUpdateDraw:ba,_fnAjaxDataSrc:T,_fnAddColumn:B,_fnColumnOptions:I,_fnAdjustColumnSizing:ja,_fnVisibleToColumnIndex:ka,_fnColumnIndexToVisible:fa,_fnVisbleColumns:pa,_fnGetColumns:ta,_fnColumnTypes:Ca,_fnApplyColumnDefs:Ia,_fnHungarianMap:Q,
  _fnCamelToHungarian:w,_fnLanguageCompat:U,_fnBrowserDetect:q,_fnAddData:la,_fnAddTr:ua,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==g?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,c){return d.inArray(c,a.aoData[b].anCells)},_fnGetCellData:P,_fnSetCellData:Da,_fnSplitObjNotation:xa,_fnGetObjectDataFn:aa,_fnSetObjectDataFn:sa,_fnGetDataMaster:Fa,_fnClearTable:va,_fnDeleteIndex:u,_fnInvalidateRow:D,_fnGetRowElements:ga,_fnCreateTr:X,_fnBuildHead:L,_fnDrawHead:z,_fnDraw:Z,_fnReDraw:K,
  _fnAddOptionsHtml:ob,_fnDetectHeader:Ga,_fnGetUniqueThs:Ja,_fnFeatureHtmlFilter:O,_fnFilterComplete:ia,_fnFilterCustom:vb,_fnFilterColumn:na,_fnFilter:ub,_fnFilterCreateSearch:Ya,_fnEscapeRegex:Za,_fnFilterData:wb,_fnFeatureHtmlInfo:sb,_fnUpdateInfo:zb,_fnInfoMacros:Ab,_fnInitialise:Na,_fnInitComplete:Ka,_fnLengthChange:$a,_fnFeatureHtmlLength:pb,_fnFeatureHtmlPaginate:tb,_fnPageChange:bb,_fnFeatureHtmlProcessing:qb,_fnProcessingDisplay:ha,_fnFeatureHtmlTable:rb,_fnScrollDraw:Ba,_fnApplyToChildren:qa,
  _fnCalculateColumnWidths:Ua,_fnThrottle:La,_fnConvertToWidth:Bb,_fnScrollingWidthAdjust:Db,_fnGetWidestNode:Cb,_fnGetMaxLenString:Eb,_fnStringToCss:M,_fnScrollBarWidth:Fb,_fnSortFlatten:za,_fnSort:nb,_fnSortAria:Hb,_fnSortListener:cb,_fnSortAttachListener:Wa,_fnSortingClasses:Oa,_fnSortData:Gb,_fnSaveState:Pa,_fnLoadState:Ib,_fnSettingsFromNode:Qa,_fnLog:wa,_fnMap:oa,_fnBindAction:db,_fnCallbackReg:ca,_fnCallbackFire:S,_fnLengthOverflow:ab,_fnRenderer:Xa,_fnDataSource:ea,_fnRowAttributes:x,_fnCalculateEnd:function(){}});
  d.fn.dataTable=A;d.fn.dataTableSettings=A.settings;d.fn.dataTableExt=A.ext;d.fn.DataTable=function(a){return d(this).dataTable(a).api()};d.each(A,function(a,b){d.fn.DataTable[a]=b});return d.fn.dataTable})})(window,document);
  $.fn.dataTableExt.oApi.fnPagingInfo=function(s){return{iStart:s._iDisplayStart,iEnd:s.fnDisplayEnd(),iLength:s._iDisplayLength,iTotal:s.fnRecordsTotal(),iFilteredTotal:s.fnRecordsDisplay(),iPage:-1===s._iDisplayLength?0:Math.ceil(s._iDisplayStart/s._iDisplayLength),iTotalPages:-1===s._iDisplayLength?0:Math.ceil(s.fnRecordsDisplay()/s._iDisplayLength)}};
  $.extend($.fn.dataTableExt.oPagination,{bootstrap:{fnInit:function(s,C,g){var d=function(d){d.preventDefault();s.oApi._fnPageChange(s,d.data.action)&&g(s)};$(C).append('<ul class="pagination"><li class="prev arrow unavailable"><a href="">&laquo;</a></li><li class="next arrow unavailable"><a href="">&raquo;</a></li></ul>');C=$("a",C);$(C[0]).bind("click.DT",{action:"previous"},d);$(C[1]).bind("click.DT",{action:"next"},d)},fnUpdate:function(s,C){var g=s.oInstance.fnPagingInfo(),d=s.aanFeatures.p,Q=
  [],w,U,J,p;if(6>=g.iTotalPages)for(w=0;w<g.iTotalPages;w++)Q.push(w);else{Q.push(g.iPage);U=g.iPage+2>=g.iTotalPages?g.iTotalPages:g.iPage+2;for(w=g.iPage+1;w<U;w++)Q.push(w);U<g.iTotalPages-2&&Q.push(null);-1===$.inArray(g.iTotalPages-2,Q)&&g.iPage<g.iTotalPages-2&&Q.push(g.iTotalPages-2);-1===$.inArray(g.iTotalPages-1,Q)&&Q.push(g.iTotalPages-1);U=0<g.iPage-2?g.iPage-2:0;for(w=g.iPage-1;w>U;w--)Q.unshift(w);1<U&&Q.unshift(null);-1===$.inArray(1,Q)&&1<g.iTotalPages&&Q.unshift(1);-1===$.inArray(0,
  Q)&&Q.unshift(0)}w=0;for(U=d.length;w<U;w++)p=d[w],$("li:gt(0)",p).filter(":not(:last)").remove(),$.each(Q,function(d,t){J=null===t?"unavailable":t===g.iPage?"current":"";$('<li class="'+J+'"><a href="">'+(null===t?"&hellip;":t+1)+"</a></li>").insertBefore($("li:last",p)).bind("click",function(d){d.preventDefault();s._iDisplayStart=(parseInt($("a",this).text(),10)-1)*g.iLength;C(s)})}),0===g.iPage?$("li:first",p).addClass("unavailable"):$("li:first",p).removeClass("unavailable"),g.iPage===g.iTotalPages-
  1||0===g.iTotalPages?$("li:last",p).addClass("unavailable"):$("li:last",p).removeClass("unavailable")}}});var tableIdReverse=function(s){return-1};$.fn.dataTableExt.oApi.reloadAjax=function(s,C){"undefined"!=typeof C&&null!=C&&(S3.dataTables.ajax_urls[s.nTable.id]=C);this.oApi._fnProcessingDisplay(s,!0);var g=this;s.ajax([],function(d){g.oApi._fnClearTable(s);g.fnDraw();g.oApi._fnProcessingDisplay(s,!1)},s)};
  jQuery.fn.dataTableExt.oSort["formatted-num-asc"]=function(s,C){var g=s.match(/\d/)?s.replace(/[^\d\-\.]/g,""):0,d=C.match(/\d/)?C.replace(/[^\d\-\.]/g,""):0;return parseFloat(g)-parseFloat(d)};jQuery.fn.dataTableExt.oSort["formatted-num-desc"]=function(s,C){var g=s.match(/\d/)?s.replace(/[^\d\-\.]/g,""):0,d=C.match(/\d/)?C.replace(/[^\d\-\.]/g,""):0;return parseFloat(d)-parseFloat(g)};
  (function(s,C,g){g=function(d,g){var w=function(J,p){if(!g.versionCheck||!g.versionCheck("1.10.1"))throw"DataTables Responsive requires DataTables 1.10.1 or newer";this.s={dt:new g.Api(J),columns:[]};this.s.dt.settings()[0].responsive||(p&&"string"===typeof p.details&&(p.details={type:p.details}),this.c=d.extend(!0,{},w.defaults,g.defaults.responsive,p),J.responsive=this,this._constructor())};w.prototype={_constructor:function(){var g=this,p=this.s.dt;p.settings()[0]._responsive=this;d(s).on("resize.dtr orientationchange.dtr",
  p.settings()[0].oApi._fnThrottle(function(){g._resize()}));p.on("destroy.dtr",function(){d(s).off("resize.dtr orientationchange.dtr")});this.c.breakpoints.sort(function(d,g){return d.width<g.width?1:d.width>g.width?-1:0});this._classLogic();this._resizeAuto();this._resize();var q=this.c.details;q.type&&(g._detailsInit(),this._detailsVis(),p.on("column-visibility.dtr",function(){g._detailsVis()}),d(p.table().node()).addClass("dtr-"+q.type))},_columnsVisiblity:function(g){var p=this.s.dt,q=this.s.columns,
  t,B,I=d.map(q,function(p){return p.auto&&null===p.minWidth?!1:!0===p.auto?"-":-1!==d.inArray(g,p.includeIn)}),ja=0;t=0;for(B=I.length;t<B;t++)!0===I[t]&&(ja+=q[t].minWidth);p=p.table().container().offsetWidth-ja;t=0;for(B=I.length;t<B;t++)q[t].control?p-=q[t].minWidth:"-"===I[t]&&(I[t]=0>p-q[t].minWidth?!1:!0,p-=q[t].minWidth);p=!1;t=0;for(B=q.length;t<B;t++)if(!q[t].control&&!q[t].never&&!I[t]){p=!0;break}t=0;for(B=q.length;t<B;t++)q[t].control&&(I[t]=p);-1===d.inArray(!0,I)&&(I[0]=!0);return I},
  _classLogic:function(){var g=this,p=this.c.breakpoints,q=this.s.dt.columns().eq(0).map(function(d){d=this.column(d).header().className;return{className:d,includeIn:[],auto:!1,control:!1,never:d.match(/\bnever\b/)?!0:!1}}),t=function(g,p){var t=q[g].includeIn;-1===d.inArray(p,t)&&t.push(p)},B=function(d,B,s,w){if(!s)q[d].includeIn.push(B);else if("max-"===s)for(w=g._find(B).width,B=0,s=p.length;B<s;B++)p[B].width<=w&&t(d,p[B].name);else if("min-"===s)for(w=g._find(B).width,B=0,s=p.length;B<s;B++)p[B].width>=
  w&&t(d,p[B].name);else if("not-"===s)for(B=0,s=p.length;B<s;B++)-1===p[B].name.indexOf(w)&&t(d,p[B].name)};q.each(function(g,t){for(var q=g.className.split(" "),J=!1,s=0,w=q.length;s<w;s++){var C=d.trim(q[s]);if("all"===C){J=!0;g.includeIn=d.map(p,function(d){return d.name});return}if("none"===C||"never"===C){J=!0;return}if("control"===C){J=!0;g.control=!0;return}d.each(p,function(d,g){var p=g.name.split("-"),q=C.match(new RegExp("(min\\-|max\\-|not\\-)?("+p[0]+")(\\-[_a-zA-Z0-9])?"));q&&(J=!0,q[2]===
  p[0]&&q[3]==="-"+p[1]?B(t,g.name,q[1],q[2]+q[3]):q[2]!==p[0]||q[3]||B(t,g.name,q[1],q[2]))})}J||(g.auto=!0)});this.s.columns=q},_detailsInit:function(){var g=this,p=this.s.dt,q=this.c.details;"inline"===q.type&&(q.target="td:first-child");var t=q.target,q="string"===typeof t?t:"td";d(p.table().body()).on("click",q,function(q){if(d(p.table().node()).hasClass("collapsed")&&p.row(d(this).closest("tr")).length){if("number"===typeof t&&(q=0>t?p.columns().eq(0).length+t:t,p.cell(this).index().column!==
  q))return;q=p.row(d(this).closest("tr"));if(q.child.isShown())q.child(!1),d(q.node()).removeClass("parent");else{var s=g.c.details.renderer(p,q[0]);q.child(s,"child").show();d(q.node()).addClass("parent")}}})},_detailsVis:function(){var g=this,p=this.s.dt,q=p.columns().indexes().filter(function(g){var q=p.column(g);return q.visible()?null:d(q.header()).hasClass("never")?null:g}),t=!0;if(0===q.length||1===q.length&&this.s.columns[q[0]].control)t=!1;t?(d(p.table().node()).addClass("collapsed"),p.rows().eq(0).each(function(d){d=
  p.row(d);if(d.child()){var q=g.c.details.renderer(p,d[0]);!1===q?d.child.hide():d.child(q,"child").show()}})):(d(p.table().node()).removeClass("collapsed"),p.rows().eq(0).each(function(d){p.row(d).child.hide()}))},_find:function(d){for(var g=this.c.breakpoints,q=0,t=g.length;q<t;q++)if(g[q].name===d)return g[q]},_resize:function(){for(var g=this.s.dt,p=d(s).width(),q=this.c.breakpoints,t=q[0].name,B=q.length-1;0<=B;B--)if(p<=q[B].width){t=q[B].name;break}var w=this._columnsVisiblity(t);g.columns().eq(0).each(function(d,
  p){g.column(d).visible(w[p])})},_resizeAuto:function(){var g=this.s.dt,p=this.s.columns;if(this.c.auto&&-1!==d.inArray(!0,d.map(p,function(d){return d.auto}))){g.table().node();var q=g.table().node().cloneNode(!1),t=d(g.table().header().cloneNode(!1)).appendTo(q),s=d(g.table().body().cloneNode(!1)).appendTo(q);g.rows({page:"current"}).indexes().flatten().each(function(p){var q=g.row(p).node().cloneNode(!0);g.columns(":hidden").flatten().length&&d(q).append(g.cells(p,":hidden").nodes().to$().clone());
  d(q).appendTo(s)});var w=g.columns().header().to$().clone(!1).wrapAll("tr").appendTo(t),q=d("<div/>").css({width:1,height:1,overflow:"hidden"}).append(q).insertBefore(g.table().node());g.columns().eq(0).each(function(d){p[d].minWidth=w[d].offsetWidth||0});q.remove()}}};w.breakpoints=[{name:"desktop",width:Infinity},{name:"tablet-l",width:1024},{name:"tablet-p",width:768},{name:"mobile-l",width:480},{name:"mobile-p",width:320}];w.defaults={breakpoints:w.breakpoints,auto:!0,details:{renderer:function(g,
  p){var q=g.cells(p,":hidden").eq(0).map(function(p){var q=d(g.column(p.column).header());p=g.cell(p).index();if(q.hasClass("control")||q.hasClass("never"))return"";var s=g.settings()[0],s=s.oApi._fnGetCellData(s,p.row,p.column,"display");return'<li data-dtr-index="'+p.column+'"><span class="dtr-title">'+q.text()+':</span> <span class="dtr-data">'+s+"</span></li>"}).toArray().join("");return q?d('<ul data-dtr-index="'+p+'"/>').append(q):!1},target:0,type:"inline"}};var U=d.fn.dataTable.Api;U.register("responsive()",
  function(){return this});U.register("responsive.recalc()",function(){this.iterator("table",function(d){d._responsive&&(d._responsive._resizeAuto(),d._responsive._resize())})});U.register("responsive.index()",function(g){g=d(g);return{column:g.data("dtr-index"),row:g.parent().data("dtr-index")}});w.version="1.0.2";d.fn.dataTable.Responsive=w;d.fn.DataTable.Responsive=w;d(C).on("init.dt.dtr",function(s,p,q){if(d(p.nTable).hasClass("responsive")||d(p.nTable).hasClass("dt-responsive")||p.oInit.responsive||
  g.defaults.responsive)s=p.oInit.responsive,!1!==s&&new w(p,d.isPlainObject(s)?s:{})});return w};"function"===typeof define&&define.amd?define(["jquery","datatables"],g):"object"===typeof exports?g(require("jquery"),require("datatables")):jQuery&&!jQuery.fn.dataTable.Responsive&&g(jQuery,jQuery.fn.dataTable)})(window,document);
  (function(){var s,C,g=[],d={},Q=[],w=[],U=[],J=[],p=[],q=[],t=[],B=[],I=[];S3.dataTables.ajax_urls=d;var ja=function(d,g,p){d=d.split("?");var q="";g=d[0]+"."+g;if(1<d.length)return p&&(q="&"+p),g+"?"+d[1]+q;p&&(q="?"+p);return g+q},ka=function(d,g){var p=g.length,q=d.attr("class").split(/\s+/),x="";$.each(q,function(d,u){u.substr(0,p)==g&&(x=u)});return x},fa=function(d){var g=$(".sublevel"+d.substr(6));g.each(function(){obj=$(this);if(obj.hasClass("group")&&obj.is(":visible")){var d=ka(obj,"group_");
  fa(d)}});g.hide();$(".arrow_e"+d).show();$(".arrow_s"+d).hide();$(".ui-icon-triangle-1-e").show();$(".ui-icon-triangle-1-s").hide();$("."+d).removeClass("activeRow")},pa=function(d){var g=".sublevel"+d.substr(6);$(g).show();$(".arrow_e"+d).hide();$(".arrow_s"+d).show();$("#"+d+"_closed").hide();$("#"+d+"_open").show();$("."+d).addClass("activeRow");$(g+".spacer").show();d=$(g+":first");d.hasClass("spacer")&&(d=d.next());d.hasClass("collapsable")&&(d=ka(d,"group_"))&&pa(d)},ta=function(d){for(var g=
  S3.dataTables.id.length,p=0;p<g;p++)if(t[p]==d)return p;return-1},Ca=function(){$(this).parent().toggle().siblings(".dt-truncate").toggle();return!1};S3.dataTables.toggleRow=function(d){var g=".sublevel"+d.substr(6),p=$(g),q="#"+d;p.is(":visible")?(fa(d),p.hide(),$(q+"_closed").show(),$(q+"_open").hide(),$(q+"_in").show(),$(q+"_out").hide(),$(g+".spacer").show()):(p.show(),$(q+"_closed").hide(),$(q+"_open").show(),$(q+"_in").hide(),$(q+"_out").show())};var Ia=function(d,g){var p="",q="",x=$(g).attr("class").split(/\s+/);
  $.each(x,function(d,g){"level_"==g.substr(0,6)&&(p=g);"group_"==g.substr(0,6)&&(q=g)});la(d,p,q)},la=function(d,g,p){var q=g.substr(6);d=$(t[d]);ka(d,"level_");d=d.attr("class").split(/\s+/);var x,s;$.each(d,function(d,g){"level_"==g.substr(0,6)&&g.substr(6)>=q&&(x=$(".activeRow."+g),$.each(x,function(d,g){s=ka($(g),"group_");fa(s)}))});pa(p);$(".spacer.alwaysOpen").show();var z;$.each($(".activeRow"),function(d,g){s=ka($(g),"group_");z=".sublevel"+s.substr(6);$(z+".spacer").show()})};S3.dataTables.accordionRow=
  la;var ua=function(d){var g=p[d].length;"Exclusive"==q[d]&&(g=I[d]-g);2==g?$(t[d]+" .pair-action").removeClass("hide"):$(t[d]+" .pair-action").addClass("hide")},P=function(d,g){for(var p=0,q=g.length;p<q;p++)if(d==g[p])return p;return-1},Da=function(d,g,q){if(0<g.rowActions.length)for(var s=0;s<q.length;s++)$("#"+q[s][0]).unbind("click").bind("click",q[s][1]);if(g.bulkActions)$(".bulkcheckbox").unbind("click.bulkSelect").on("click.bulkSelect",function(g){var q=this.id.substr(6),D=p[d];g=P(q,D);-1==
  g?(D.push(q),g=0):(D.splice(g,1),g=-1);q=$(this).closest("tr");ua(d);xa(d,q,g)})},xa=function(d,D,t){var w=$("#totalAvailable"),x=$("#totalSelected"),L=p[d].length;"Inclusive"==q[d]?(x.length&&w.length&&$("#totalSelected").text(L),-1==t?($(D).removeClass("row_selected"),$(".bulkcheckbox",D).prop("checked",!1)):($(D).addClass("row_selected"),$(".bulkcheckbox",D).prop("checked",!0)),L==I[d]&&($("#modeSelectionAll").prop("checked",!0),q[d]="Exclusive",p[d]=[])):(x.length&&w.length&&$("#totalSelected").text(parseInt($("#totalAvailable").text(),
  10)-L),-1==t?($(D).addClass("row_selected"),$(".bulkcheckbox",D).prop("checked",!0)):($(D).removeClass("row_selected"),$(".bulkcheckbox",D).prop("checked",!1)),L==I[d]&&($("#modeSelectionAll").prop("checked",!1),q[d]="Inclusive",p[d]=[]));Q[d].bulkActions&&($(g[d][0]).val(q[d]),$(g[d][1]).val(p[d].join(",")),$(".dataTable-action").remove(),$(s).insertBefore("#bulk_select_options"),L=p[d].length,D="Inclusive"==q[d]?0:I[d],$(".selected-action").prop("disabled",L==D),ua(d))},aa=function(d,g,p,q,x,s,
  z,t,K,w,B,C,H,V,F,ba){var T="level_"+p,O="group_"+d+p+V;V="";for(var ia=1;ia<p;ia++)V+="<div style='float:left;width:10px;'>&nbsp;</div>";1<p&&(V=V+('<div id="'+O+'_closed" class="ui-icon ui-icon-triangle-1-e" style="float:left;"></div>')+('<div id="'+O+'_open" class="ui-icon ui-icon-triangle-1-s" style="float:left;display:none;"></div>'));p="";null!=s[g]?p=" ("+s[g]+")":(g=z+g,null!=s[g]&&(p=" ("+s[g]+")"));s=document.createElement("tr");s.className="group";if(C||H)$(s).addClass("headerRow").addClass(O).addClass(T),
  q&&$(s).addClass(q).addClass("collapsable");K?($(s).addClass("expandable"),H=z=K=g="","text"==w&&(z="\u2192",H="\u2193"),C?("icon"==w&&(g='class="ui-icon ui-icon-arrowthick-1-e" ',K='class="ui-icon ui-icon-arrowthick-1-s" '),w='<a id="'+O+'_in" href="javascript:S3.dataTables.toggleRow(\''+O+"');\" "+g+' style="float:right">'+z+"</a>",d='<a id="'+O+'_out" href="javascript:S3.dataTables.toggleRow(\''+O+"');\" "+K+' style="float:right; display:none">'+H+"</a>"):("icon"==w?(g='class="ui-icon ui-icon-arrowthick-1-e arrow_e'+
  O+'" ',K='class="ui-icon ui-icon-arrowthick-1-s arrow_s'+O+'" '):(g='class="arrow_e'+O+'" ',K='class="arrow_s'+O+'" '),w="<a href=\"javascript:S3.dataTables.accordionRow('"+d+"', '"+T+"', '"+O+"');\" "+g+' style="float:right">'+z+"</a>",d="<a href=\"javascript:S3.dataTables.accordionRow('"+d+"', '"+T+"', '"+O+"');\" "+K+' style="float:right; display:none">'+H+"</a>"),d=t+p+w+d):d=t+p;t=document.createElement("td");t.colSpan=x;t.innerHTML=V+d;s.appendChild(t);ba?$(s).insertBefore(F):$(s).insertAfter(F);
  B&&(B=document.createElement("tr"),F=$(B),F.addClass("spacer"),q?F.addClass(q).addClass("collapsable"):F.addClass("alwaysOpen"),t=document.createElement("td"),t.colSpan=x,B.appendChild(t),F.insertAfter(s))},sa=function(d,g,p,q,x,s,z,t){var w=Q[p];if("individual"==w.shrinkGroupedRows)var B=!0,C=!1;else"accordion"==w.shrinkGroupedRows?(B=!1,C=!0):C=B=!1;var J=w.groupSpacing,w=w.groupIcon,w=w.length>=t?w[t-1]:"icon",H=$(g+" tbody tr"),V=$(g+" thead tr")[0].getElementsByTagName("th").length,F="",ba="",
  T=1,O=0,ia=0,I="",na="level_"+t;$(g).addClass(na);for(g=0;g<H.length;g++)if(na=$(H[g]),!na.hasClass("spacer"))if(na.hasClass("group"))for(I="sublevel"+ka($(H[g]),"group_").substr(6),ba=F="",na=0;na<s.length;na++)try{ba+=d.data[d.aiDisplay[ia]]._aData[s[na]]+"_"}catch(U){}else{var P=d.data[d.aiDisplay[ia]]._aData[q];if(P!=F){for(;z.length>O&&P!=z[O][0];)F=z[O][1],aa(p,F,t,I,V,x,ba,F,!1,w,J,B,C,T,H[g],!0),O++,T++;z.length>O?(F=z[O][1],aa(p,F,t,I,V,x,ba,F,!0,w,J,B,C,T,H[g],!0),O++):aa(p,P,t,I,V,x,ba,
  P,!0,w,J,B,C,T,H[g],!0);T++;F=P}ia+=1;(B||C)&&na.hide()}for(;z.length>O;)F=z[O][1],aa(p,F,t,I,V,x,ba,F,!1,w,J,B,C,T,H[H.length-1],!1),O++,T++},Fa=function(d,g,p){var q=g.groupTitles,x=[];d="group-title-"+d;for(var s=q[0].length,t=0;t<s;t++)x[q[0][t][0]]=t;$.fn.dataTableExt.oSort[d+"-asc"]=function(d,g){return x[d]<x[g]?-1:x[d]>x[g]?1:0};$.fn.dataTableExt.oSort[d+"-desc"]=function(d,g){return x[d]<x[g]?1:x[d]>x[g]?-1:0};p[g.group[0][0]]={sType:d}};$.fn.dataTable.pipeline=function(g){var p=$.extend({cache:{},
  pages:2,data:null,method:"GET"},g);g=p.cache;var q=void 0!=g.cacheLower?g.cacheLower:-1,s=g.cacheUpper||null,x=g.cacheLastRequest||null,t=g.cacheLastJson||null;return function(g,u,w){if(this.hasOwnProperty("nTable"))x=t=null,q=-1,s=null,u({});else{var B=!1,C=g.start,J=g.start,H=g.length,V=w.nTable.id,F=ta("#"+V);t&&t.hasOwnProperty("recordsTotal")?I[F]=t.recordsTotal:I[F]=g.recordsTotal;-1==H&&(F=I[F],"undefined"!=typeof F?H=F:B=!0);B||(F=C+H,t&&t.hasOwnProperty("recordsFiltered")&&t.recordsFiltered<
  F&&(F=t.recordsFiltered),w.clearCache?(B=!0,w.clearCache=!1):0>q||C<q||F>s?B=!0:!x||JSON.stringify(g.order)===JSON.stringify(x.order)&&JSON.stringify(g.columns)===JSON.stringify(x.columns)&&JSON.stringify(g.search)===JSON.stringify(x.search)||(B=!0));x=$.extend(!0,{},g);if(B){C<q&&(C-=H*(p.pages-1),0>C&&(C=0));q=C;s=-1!=g.length?C+H*p.pages:H;g.start=C;g.length=H*p.pages;$.isFunction(p.data)?(B=p.data(g))&&$.extend(g,B):$.isPlainObject(p.data)&&$.extend(g,p.data);limit=-1==H?"none":g.length;B=[{name:"draw",
  value:g.draw},{name:"limit",value:limit}];0!=C&&B.push({name:"start",value:C});g.search&&g.search.value&&(B.push({name:"sSearch",value:g.search.value}),B.push({name:"iColumns",value:g.columns.length}));if(C=g.order.length)for(B.push({name:"iSortingCols",value:C}),F=0;F<C;F++){var ba=g.order[F];B.push({name:"iSortCol_"+F,value:ba.column});B.push({name:"sSortDir_"+F,value:ba.dir})}w.jqXHR=$.ajaxS3({type:p.method,url:d[V],data:B,dataType:"json",cache:!1,success:function(d){t=$.extend(!0,{},d);s=q+d.data.length;
  q!=J&&d.data.splice(0,J-q);-1!=H&&d.data.splice(H,d.data.length);u(d)}})}else w=$.extend(!0,{},t),w.draw=g.draw,w.data.splice(0,C-q),-1!=H&&w.data.splice(H,w.data.length),u(w)}}};$.fn.dataTable.Api.register("clearPipeline()",function(){return this.iterator("table",function(d){d.clearCache=!0})});var va=function(u,t,I){var X=$(u+"_configurations");if(0<X.length){var x=$.parseJSON(X.val()),X=[];Q[t]=x;w[t]=X;0<x.groupTitles.length&&Fa(t,x,X);fnActionCallBacks=[];for(var L=$(u).find("thead tr").first().children().length,
  z=0;z<L;z++)X[z]=null;1>x.rowActions.length&&(x.rowActions=S3.dataTables.Actions?S3.dataTables.Actions:[]);0<x.rowActions.length&&(X[x.actionCol]={sTitle:" ",bSortable:!1});x.bulkActions&&(X[x.bulkCol]={sTitle:'<div id="bulk_select_options"><input id="modeSelectionAll" type="checkbox">'+i18n.selectAll+"</input></div>",bSortable:!1});B[t]=[x.textMaxLength,x.textShrinkLength];if(0<x.group.length){for(var L=x.group,z=[],Z=0;Z<L.length;Z++)z.push(L[Z][0]);J[t]={bVisible:!1,aTargets:z}}else J[t]={bVisible:!1,
  aTargets:[]};if(x.bulkActions){L="";z=0;for(Z=x.bulkActions.length;z<Z;z++){var K=x.bulkActions[z],aa,fa,pa="";K instanceof Array?(fa=K[0],aa=K[1],3==K.length&&(pa=K[2])):aa=fa=K;L+='<input type="submit" id="'+aa+'-selected-action" class="'+pa+' selected-action" name="'+aa+'" value="'+fa+'">&nbsp;'}s='<div class="dataTable-action">'+L+"</div>";C=$.parseJSON($(u+"_dataTable_bulkSelection").val());null===C&&(C=[]);p[t]=C;q[t]="Inclusive";$(u+"_dataTable_bulkSelectAll").val()&&(q[t]="Exclusive");g[t]=
  [u+"_dataTable_bulkMode",u+"_dataTable_bulkSelection"]}"true"==x.pagination?(z=L=!0,d[u.slice(1)]=x.ajaxUrl,Z=x.pageLength,K=0<$(u+"_dataTable_cache").length?$.parseJSON($(u+"_dataTable_cache").val()):{},U[t]=$.fn.dataTable.pipeline({cache:K})):(z=L=!1,Z=x.pageLength,U[t]=null);var H;H=$(u).dataTable({ajax:U[t],autoWidth:!1,columnDefs:[J[t]],columns:X,deferRender:!0,destroy:I,dom:x.dom,lengthMenu:x.lengthMenu,order:x.order,orderFixed:x.group,ordering:!0,pageLength:Z,pagingType:x.pagingType,processing:z,
  responsive:!0,searchDelay:450,searching:"true"==x.searching,serverSide:L,language:{aria:{sortAscending:": "+i18n.sortAscending,sortDescending:": "+i18n.sortDescending},paginate:{first:i18n.first,last:i18n.last,next:i18n.next,previous:i18n.previous},emptyTable:i18n.emptyTable,info:i18n.info,infoEmpty:i18n.infoEmpty,infoFiltered:i18n.infoFiltered,infoThousands:i18n.infoThousands,lengthMenu:i18n.lengthMenu,loadingRecords:i18n.loadingRecords+"...",processing:i18n.processing+"...",search:i18n.search+":",
  zeroRecords:i18n.zeroRecords},headerCallback:function(d,g,u,s,x){$("#modeSelectionAll").unbind("click.selectAll").on("click.selectAll",function(d){p[t]=[];$(this).prop("checked")?q[t]="Exclusive":q[t]="Inclusive";H.api().draw(!1)});$(".ui-icon-zoomin, .ui-icon-zoomout").unbind("click.dtToggleCell")},rowCallback:function(d,g,q){var u=x.actionCol,s=/>(.*)</i;q=s.exec(g[u]);q=null===q?g[u]:q[1];if(x.rowActions.length||x.bulkActions){var w="";if(x.rowActions.length)for(var C=x.rowActions,z,H=0;H<C.length;H++)if(z=
  C[H],!("restrict"in z&&-1==P(q,z.restrict))){var J=z._class,I=S3.Utf8.decode(z.label),L=I,s=/%5Bid%5D/g;z.icon?I='<i class="'+z.icon+'" alt="'+I+'"> </i>':z.img&&(I='<img src="'+z.icon+'" alt="'+I+'"></img>');z._onclick?(L=C[H]._onclick.replace(s,q),w=w+'<a class="'+J+'" onclick="'+L+'">'+I+"</a>&nbsp;"):z._jqclick?(w=w+'<span class="'+J+'" id="'+q+'">'+I+"</span>&nbsp;","undefined"!=typeof S3ActionCallBack&&fnActionCallBacks.push([q,S3ActionCallBack])):z.url?(s=z.url.replace(s,q),z=(z=z._target)?
  ' target="'+z+'"':"",w=w+'<a db_id="'+q+'" class="'+J+'" href="'+s+'" title="'+L+'"'+z+">"+I+"</a>&nbsp;"):(z=(z=z._ajaxurl)?' data-url="'+z+'"':"",w=w+'<a db_id="'+q+'" class="'+J+'" title="'+L+'"'+z+">"+I+"</a>&nbsp;")}0<x.group.length&&x.group[0][0]<u&&--u;$("td:eq("+u+")",d).addClass("actions").html(w)}x.bulkActions&&xa(t,d,P(q,p[t]));u=x.rowStyles;if(u.length){var w=$(d),K;for(K in u)-1<P(q,u[K])&&w.addClass(K)}K=0;q=[];if(x.group.length)for(u=x.group,w=0;w<u.length;w++)q.push(u[w][0]);for(u=
  0;u<g.length;u++)-1==$.inArray(u,q)&&(!g[u].match(/<.*>/)&&g[u].length>B[t][0]&&(w='<div class="dt-truncate"><span class="ui-icon ui-icon-zoomin" style="float:right"></span>'+g[u].substr(0,B[t][1])+"&hellip;</div>",C='<div  style="display:none" class="dt-truncate"><span class="ui-icon ui-icon-zoomout" style="float:right"></span>'+g[u]+"</div>",$("td:eq("+K+")",d).html(w+C)),K++);return d},drawCallback:function(g){var p=d[u.slice(1)];p&&$(u).closest(".dt-wrapper").find("a.permalink").each(function(){var d=
  $(this),g;g=d.attr("href").split("?");var q=p.split("?"),t=1<g.length?g[1].split("&"):[],q=1<q.length?q[1].split("&"):[],u=[],s,w,x;s=0;for(w=t.length;s<w;s++)x=t[s].split("="),1<x.length&&(k=decodeURIComponent(x[0]),-1==k.indexOf(".")&&"("!=k[0]&&"w"!=k[0]&&u.push(t[s]));s=0;for(w=q.length;s<w;s++)x=q[s].split("="),1<x.length&&(k=decodeURIComponent(x[0]),-1==k.indexOf(".")&&"("!=k[0]||u.push(q[s]));g=u.length?g[0]+"?"+u.join("&"):g[0];d.attr("href",g)});$(".dt-truncate .ui-icon-zoomin, .dt-truncate .ui-icon-zoomout").bind("click.dtToggleCell",
  Ca);Da(t,x,fnActionCallBacks);if(0!==g.aiDisplay.length){if(x.group.length){for(var q=x.group,s=0;s<q.length;s++){for(var w=[],z=0;z<s;z++)w.push(q[z][0]);sa(g,u,t,q[s][0],x.groupTotals.length>s?x.groupTotals[s]:[],w,x.groupTitles.length>s?x.groupTitles[s]:[],s+1)}q="accordion"==x.shrinkGroupedRows;if("individual"==x.shrinkGroupedRows||q){s=$(u+" tbody tr");w="";for(z=0;z<s.length;z++)obj=$(s[z]),obj.hasClass("headerRow")?(item=ka(obj,"group_"),w="sublevel"+item.substr(6)):$(s[z]).addClass(w).addClass("collapsable");
  $(".collapsable").hide();q&&la(t,"level_1","group_"+t+"11");$(".expandable").click(function(){Ia(t,this)})}}1<Math.ceil(g.fnRecordsDisplay()/g._iDisplayLength)?$(u+"_paginate").css("display","block"):$(u+"_paginate").css("display","none");$(u).find(".s3_modal").length&&S3.addModals();0<g.fnRecordsDisplay()?$(u).closest(".dt-contents").find(".empty").hide().siblings(".dt-wrapper").show():$(u).closest(".dt-contents").find(".empty").show().siblings(".dtwrapper").hide()}},initComplete:S3.dataTables.initComplete});
  H.delegate(".dt-ajax-delete","click.datatable",function(d){d.stopPropagation();if(confirm(i18n.delete_confirmation)){var g=$(this);d=g.attr("db_id");(g=g.data("url"))&&d&&(g=g.replace(/%5Bid%5D/g,d));$.ajaxS3({url:g,type:"POST",dataType:"json",data:"",success:function(d){H.dataTable().reloadAjax()}})}else return event.preventDefault(),!1});H.closest(".dt-wrapper").find(".dt-export").off("click.datatable").on("click.datatable",function(){var d=H.attr("id"),g=H.dataTableSettings[t],p=$(this).data("url"),
  q=$(this).data("extension");if(g){arguments="id="+d;d=$("#"+d+"_dataTable_filter");""!==d.val()&&(arguments+="&sFilter="+d.val());arguments+="&sSearch="+g.oPreviousSearch.sSearch;w=g.aoColumns;var s,d=0;for(s=w.length;d<s;d++)w[d].bSortable||(arguments+="&bSortable_"+d+"=false");g=null!==g.aaSortingFixed?g.aaSortingFixed.concat(g.aaSorting):g.aaSorting.slice();arguments+="&iSortingCols="+g.length;d=0;for(s=g.length;d<s;d++)arguments+="&iSortCol_"+d+"="+g[d][0],arguments+="&sSortDir_"+d+"="+g[d][1];
  p=ja(p,q,arguments)}else p=ja(p,q,"");window.open(p)});S3.dataTables.Resize&&H.columns.adjust()}};S3.dataTables.initDataTable=va;S3.dataTables.initAll=function(){if(S3.dataTables.id)for(var d=S3.dataTables.id.length,g=0;g<d;g++){var p="#"+S3.dataTables.id[g];t[g]=p;va(p,g,!1)}}})();$(document).ready(function(){S3.dataTables.initAll()});
  