summaryrefslogtreecommitdiffstats
path: root/web/gui/dashboard/static/js/10.44d9d40b.chunk.js
blob: 8d30dd9f7acfd309c64adb318be778a54322d5a3 (plain)
1
2
(this["webpackJsonp@netdata/dashboard"]=this["webpackJsonp@netdata/dashboard"]||[]).push([[10],{507:function(t,e){var n;(n=jQuery).fn.extend({tableExport:function(t){function e(t){var e=[];return n(t).find("thead").first().find("th").each((function(t,o){void 0!==n(o).attr("data-field")?e[t]=n(o).attr("data-field"):e[t]=t.toString()})),e}function o(t,e,o,i,a){if(-1==n.inArray(o,b.ignoreRow)&&-1==n.inArray(o-i,b.ignoreRow)){var l=n(t).filter((function(){return"none"!=n(this).data("tableexport-display")&&(n(this).is(":visible")||"always"==n(this).data("tableexport-display")||"always"==n(this).closest("table").data("tableexport-display"))})).find(e),r=0;if(l.each((function(t){if("always"==n(this).data("tableexport-display")||"none"!=n(this).css("display")&&"hidden"!=n(this).css("visibility")&&"none"!=n(this).data("tableexport-display")){var e=t,i=!1;if(0<b.ignoreColumn.length&&("string"==typeof b.ignoreColumn[0]?k.length>e&&"undefined"!=typeof k[e]&&-1!=n.inArray(k[e],b.ignoreColumn)&&(i=!0):"number"!=typeof b.ignoreColumn[0]||-1==n.inArray(e,b.ignoreColumn)&&-1==n.inArray(e-l.length,b.ignoreColumn)||(i=!0)),!1===i&&"function"===typeof a){i=0;var s,d=0;if("undefined"!=typeof A[o]&&0<A[o].length)for(e=0;e<=t;e++)"undefined"!=typeof A[o][e]&&(a(null,o,e),delete A[o][e],t++);for(n(this).is("[colspan]")&&(i=parseInt(n(this).attr("colspan")),r+=0<i?i-1:0),n(this).is("[rowspan]")&&(d=parseInt(n(this).attr("rowspan"))),a(this,o,t),e=0;e<i-1;e++)a(null,o,t+e);if(d)for(s=1;s<d;s++)for("undefined"==typeof A[o+s]&&(A[o+s]=[]),A[o+s][t+r]="",e=1;e<i;e++)A[o+s][t+r-e]=""}}})),"undefined"!=typeof A[o]&&0<A[o].length)for(t=0;t<=A[o].length;t++)"undefined"!=typeof A[o][t]&&(a(null,o,t),delete A[o][t])}}function i(t){if(!0===b.consoleLog&&console.log(t.output()),"string"===b.outputMode)return t.output();if("base64"===b.outputMode)return g(t.output());if("window"===b.outputMode)window.open(URL.createObjectURL(t.output("blob")));else try{var e=t.output("blob");saveAs(e,b.fileName+".pdf")}catch(n){y(b.fileName+".pdf","data:application/pdf;base64,",t.output())}}function a(t,e,n){var o=0;if("undefined"!=typeof n&&(o=n.colspan),0<=o){for(var i=t.width,a=t.textPos.x,l=e.table.columns.indexOf(e.column),r=1;r<o;r++)i+=e.table.columns[l+r].width;return 1<o&&("right"===t.styles.halign?a=t.textPos.x+i-t.width:"center"===t.styles.halign&&(a=t.textPos.x+(i-t.width)/2)),t.width=i,t.textPos.x=a,"undefined"!=typeof n&&1<n.rowspan&&(t.height*=n.rowspan),"middle"!==t.styles.valign&&"bottom"!==t.styles.valign||2<(n=("string"===typeof t.text?t.text.split(/\r\n|\r|\n/g):t.text).length||1)&&(t.textPos.y-=(2-1.15)/2*e.row.styles.fontSize*(n-2)/3),!0}return!1}function l(t,e,o){e.each((function(){var e=n(this).children();if(n(this).is("div")){var i=h(c(this,"background-color"),[255,255,255]),a=h(c(this,"border-top-color"),[0,0,0]),r=u(this,"border-top-width",b.jspdf.unit),s=this.getBoundingClientRect(),d=this.offsetLeft*o.dw,f=this.offsetTop*o.dh,y=s.width*o.dw;s=s.height*o.dh,o.doc.setDrawColor.apply(void 0,a),o.doc.setFillColor.apply(void 0,i),o.doc.setLineWidth(r),o.doc.rect(t.x+d,t.y+f,y,s,r?"FD":"F")}else n(this).is("img")&&"undefined"!=typeof o.images&&(f=p(this.src),"undefined"!=typeof(i=o.images[f])&&(a=t.width/t.height,r=this.width/this.height,d=t.width,y=t.height,f=0,r<a?(y=Math.min(t.height,this.height),d=this.width*y/this.height):r>a&&(d=Math.min(t.width,this.width),y=this.height*d/this.width),y<t.height&&(f=(t.height-y)/2),o.doc.addImage(i.src,t.textPos.x,t.y+f,d,y),t.textPos.x+=d));"undefined"!=typeof e&&0<e.length&&l(t,e,o)}))}function r(t,e,n){return t.replace(new RegExp(e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),"g"),n)}function s(t,e,o){var i="";if(null!==t){var a,l=n(t);if(l[0].hasAttribute("data-tableexport-value")?a=l.data("tableexport-value"):""!=(a=l.html())&&(t=n.parseHTML(a),a="",n.each(t,(function(){if(n(this).is("input"))a+=l.find("input").val();else{if(!n(this).is("select"))return a+=l.html(),!1;a+=l.find("select option:selected").text()}}))),"function"===typeof b.onCellHtmlData&&(a=b.onCellHtmlData(l,e,o,a)),!0===b.htmlContent)i=n.trim(a);else{var s=a.replace(/\n/g,"\u2028").replace(/<br\s*[\/]?>/gi,"\u2060");if(t=n("<div/>").html(s).contents(),s="",n.each(t.text().split("\u2028"),(function(t,e){0<t&&(s+=" "),s+=n.trim(e)})),n.each(s.split("\u2060"),(function(t,e){0<t&&(i+="\n"),i+=n.trim(e).replace(/\u00AD/g,"")})),(b.numbers.html.decimalMark!=b.numbers.output.decimalMark||b.numbers.html.thousandsSeparator!=b.numbers.output.thousandsSeparator)&&!1!==(t=function(t){return t=r(t||"0",b.numbers.html.decimalMark,"."),("number"===typeof(t=r(t,b.numbers.html.thousandsSeparator,""))||!1!==jQuery.isNumeric(t))&&t}(i))){var d=(""+t).split(".");1==d.length&&(d[1]="");var h=3<d[0].length?d[0].length%3:0;i=(0>t?"-":"")+(b.numbers.output.thousandsSeparator?(h?d[0].substr(0,h)+b.numbers.output.thousandsSeparator:"")+d[0].substr(h).replace(/(\d{3})(?=\d)/g,"$1"+b.numbers.output.thousandsSeparator):d[0])+(d[1].length?b.numbers.output.decimalMark+d[1]:"")}}!0===b.escape&&(i=escape(i)),"function"===typeof b.onCellData&&(i=b.onCellData(l,e,o,i))}return i}function d(t,e,n){return e+"-"+n.toLowerCase()}function h(t,e){var n=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.exec(t),o=e;return n&&(o=[parseInt(n[1]),parseInt(n[2]),parseInt(n[3])]),o}function f(t){var e=c(t,"text-align"),o=c(t,"font-weight"),i=c(t,"font-style"),a="";return"start"==e&&(e="rtl"==c(t,"direction")?"right":"left"),700<=o&&(a="bold"),"italic"==i&&(a+=i),""===a&&(a="normal"),e={style:{align:e,bcolor:h(c(t,"background-color"),[255,255,255]),color:h(c(t,"color"),[0,0,0]),fstyle:a},colspan:parseInt(n(t).attr("colspan"))||0,rowspan:parseInt(n(t).attr("rowspan"))||0},null!==t&&(t=t.getBoundingClientRect(),e.rect={width:t.width,height:t.height}),e}function c(t,e){try{return window.getComputedStyle?(e=e.replace(/([a-z])([A-Z])/,d),window.getComputedStyle(t,null).getPropertyValue(e)):t.currentStyle?t.currentStyle[e]:t.style[e]}catch(n){}return""}function u(t,e,n){if(null!==(e=c(t,e).match(/\d+/))){e=e[0],t=t.parentElement;var o=document.createElement("div");return o.style.overflow="hidden",o.style.visibility="hidden",t.appendChild(o),o.style.width=100+n,n=100/o.offsetWidth,t.removeChild(o),e*n}return 0}function p(t){var e,n,o=0;if(0===t.length)return o;for(e=0,n=t.length;e<n;e++)o=(o<<5)-o+t.charCodeAt(e),o|=0;return o}function y(t,e,n){var o=window.navigator.userAgent;!1!==t&&(0<o.indexOf("MSIE ")||o.match(/Trident.*rv\:11\./))?window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(new Blob([n]),t):(e=document.createElement("iframe"))&&(document.body.appendChild(e),e.setAttribute("style","display:none"),e.contentDocument.open("txt/html","replace"),e.contentDocument.write(n),e.contentDocument.close(),e.focus(),e.contentDocument.execCommand("SaveAs",!0,t),document.body.removeChild(e)):(o=document.createElement("a"))&&(o.style.display="none",!1!==t?o.download=t:o.target="_blank",0<=e.toLowerCase().indexOf("base64,")?o.href=e+g(n):o.href=e+encodeURIComponent(n),document.body.appendChild(o),document.createEvent?(null===v&&(v=document.createEvent("MouseEvents")),v.initEvent("click",!0,!1),o.dispatchEvent(v)):document.createEventObject?o.fireEvent("onclick"):"function"==typeof o.onclick&&o.onclick(),document.body.removeChild(o))}function g(t){var e,n,o,i,a,l,r="",s=0;for(t=t.replace(/\x0d\x0a/g,"\n"),n="",o=0;o<t.length;o++)128>(i=t.charCodeAt(o))?n+=String.fromCharCode(i):(127<i&&2048>i?n+=String.fromCharCode(i>>6|192):(n+=String.fromCharCode(i>>12|224),n+=String.fromCharCode(i>>6&63|128)),n+=String.fromCharCode(63&i|128));for(t=n;s<t.length;)i=(e=t.charCodeAt(s++))>>2,e=(3&e)<<4|(n=t.charCodeAt(s++))>>4,a=(15&n)<<2|(o=t.charCodeAt(s++))>>6,l=63&o,isNaN(n)?a=l=64:isNaN(o)&&(l=64),r=r+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(i)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(l);return r}var m,b={consoleLog:!1,csvEnclosure:'"',csvSeparator:",",csvUseBOM:!0,displayTableName:!1,escape:!1,excelstyles:[],fileName:"tableExport",htmlContent:!1,ignoreColumn:[],ignoreRow:[],jsonScope:"all",jspdf:{orientation:"p",unit:"pt",format:"a4",margins:{left:20,right:10,top:10,bottom:10},autotable:{styles:{cellPadding:2,rowHeight:12,fontSize:8,fillColor:255,textColor:50,fontStyle:"normal",overflow:"ellipsize",halign:"left",valign:"middle"},headerStyles:{fillColor:[52,73,94],textColor:255,fontStyle:"bold",halign:"center"},alternateRowStyles:{fillColor:245},tableExport:{onAfterAutotable:null,onBeforeAutotable:null,onTable:null,outputImages:!0}}},numbers:{html:{decimalMark:".",thousandsSeparator:","},output:{decimalMark:".",thousandsSeparator:","}},onCellData:null,onCellHtmlData:null,outputMode:"file",pdfmake:{enabled:!1},tbodySelector:"tr",tfootSelector:"tr",theadSelector:"tr",tableName:"myTableName",type:"csv",worksheetName:"xlsWorksheetName"},w=this,v=null,x=[],S=[],C=0,A=[],N="",k=[];if(n.extend(!0,b,t),k=e(w),"csv"==b.type||"tsv"==b.type||"txt"==b.type){var E="",j=(C=0,function(t,e,i){return t.each((function(){N="",o(this,e,C,i+t.length,(function(t,e,n){var o=N,i="";null!==t&&(e=null===(t=s(t,e,n))||""===t?"":t.toString(),"tsv"==b.type?(t instanceof Date&&t.toLocaleString(),i=r(e,"\t"," ")):t instanceof Date?i=b.csvEnclosure+t.toLocaleString()+b.csvEnclosure:(0<=(i=r(e,b.csvEnclosure,b.csvEnclosure+b.csvEnclosure)).indexOf(b.csvSeparator)||/[\r\n ]/g.test(i))&&(i=b.csvEnclosure+i+b.csvEnclosure)),N=o+(i+("tsv"==b.type?"\t":b.csvSeparator))})),0<(N=n.trim(N).substring(0,N.length-1)).length&&(0<E.length&&(E+="\n"),E+=N),C++})),t.length}),M=(M=0)+j(n(w).find("thead").first().find(b.theadSelector),"th,td",M);if(n(w).find("tbody").each((function(){M+=j(n(this).find(b.tbodySelector),"td,th",M)})),b.tfootSelector.length&&j(n(w).find("tfoot").first().find(b.tfootSelector),"td,th",M),E+="\n",!0===b.consoleLog&&console.log(E),"string"===b.outputMode)return E;if("base64"===b.outputMode)return g(E);if("window"===b.outputMode)return void y(!1,"data:text/"+("csv"==b.type?"csv":"plain")+";charset=utf-8,",E);try{m=new Blob([E],{type:"text/"+("csv"==b.type?"csv":"plain")+";charset=utf-8"}),saveAs(m,b.fileName+"."+b.type,"csv"!=b.type||!1===b.csvUseBOM)}catch(V){y(b.fileName+"."+b.type,"data:text/"+("csv"==b.type?"csv":"plain")+";charset=utf-8,"+("csv"==b.type&&b.csvUseBOM?"\ufeff":""),E)}}else if("sql"==b.type){C=0;var O="INSERT INTO `"+b.tableName+"` (";if((x=n(w).find("thead").first().find(b.theadSelector)).each((function(){o(this,"th,td",C,x.length,(function(t,e,n){O+="'"+s(t,e,n)+"',"})),C++,O=n.trim(O),O=n.trim(O).substring(0,O.length-1)})),O+=") VALUES ",n(w).find("tbody").each((function(){S.push.apply(S,n(this).find(b.tbodySelector))})),b.tfootSelector.length&&S.push.apply(S,n(w).find("tfoot").find(b.tfootSelector)),n(S).each((function(){N="",o(this,"td,th",C,x.length+S.length,(function(t,e,n){N+="'"+s(t,e,n)+"',"})),3<N.length&&(O+="("+N,O=n.trim(O).substring(0,O.length-1),O+="),"),C++})),O=n.trim(O).substring(0,O.length-1),O+=";",!0===b.consoleLog&&console.log(O),"string"===b.outputMode)return O;if("base64"===b.outputMode)return g(O);try{m=new Blob([O],{type:"text/plain;charset=utf-8"}),saveAs(m,b.fileName+".sql")}catch(V){y(b.fileName+".sql","data:application/sql;charset=utf-8,",O)}}else if("json"==b.type){var L=[];(x=n(w).find("thead").first().find(b.theadSelector)).each((function(){var t=[];o(this,"th,td",C,x.length,(function(e,n,o){t.push(s(e,n,o))})),L.push(t)}));var D=[];if(n(w).find("tbody").each((function(){S.push.apply(S,n(this).find(b.tbodySelector))})),b.tfootSelector.length&&S.push.apply(S,n(w).find("tfoot").find(b.tfootSelector)),n(S).each((function(){var t={},e=0;o(this,"td,th",C,x.length+S.length,(function(n,o,i){L.length?t[L[L.length-1][e]]=s(n,o,i):t[e]=s(n,o,i),e++})),!1===n.isEmptyObject(t)&&D.push(t),C++})),t="",t="head"==b.jsonScope?JSON.stringify(L):"data"==b.jsonScope?JSON.stringify(D):JSON.stringify({header:L,data:D}),!0===b.consoleLog&&console.log(t),"string"===b.outputMode)return t;if("base64"===b.outputMode)return g(t);try{m=new Blob([t],{type:"application/json;charset=utf-8"}),saveAs(m,b.fileName+".json")}catch(V){y(b.fileName+".json","data:application/json;charset=utf-8;base64,",t)}}else if("xml"===b.type){C=0;var T=(T='<?xml version="1.0" encoding="utf-8"?>')+"<tabledata><fields>";(x=n(w).find("thead").first().find(b.theadSelector)).each((function(){o(this,"th,td",C,x.length,(function(t,e,n){T+="<field>"+s(t,e,n)+"</field>"})),C++})),T+="</fields><data>";var B=1;if(n(w).find("tbody").each((function(){S.push.apply(S,n(this).find(b.tbodySelector))})),b.tfootSelector.length&&S.push.apply(S,n(w).find("tfoot").find(b.tfootSelector)),n(S).each((function(){var t=1;N="",o(this,"td,th",C,x.length+S.length,(function(e,n,o){N+="<column-"+t+">"+s(e,n,o)+"</column-"+t+">",t++})),0<N.length&&"<column-1></column-1>"!=N&&(T+='<row id="'+B+'">'+N+"</row>",B++),C++})),T+="</data></tabledata>",!0===b.consoleLog&&console.log(T),"string"===b.outputMode)return T;if("base64"===b.outputMode)return g(T);try{m=new Blob([T],{type:"application/xml;charset=utf-8"}),saveAs(m,b.fileName+".xml")}catch(V){y(b.fileName+".xml","data:application/xml;charset=utf-8;base64,",T)}}else if("excel"==b.type||"xls"==b.type||"word"==b.type||"doc"==b.type){var P="excel"==(t="excel"==b.type||"xls"==b.type?"excel":"word")?"xls":"doc",R='xmlns:x="urn:schemas-microsoft-com:office:'+t+'"',I="";if(n(w).filter((function(){return"none"!=n(this).data("tableexport-display")&&(n(this).is(":visible")||"always"==n(this).data("tableexport-display"))})).each((function(){var t=n(this);C=0,k=e(this),I+="<table><thead>",(x=t.find("thead").first().find(b.theadSelector)).each((function(){N="",o(this,"th,td",C,x.length,(function(t,e,o){if(null!==t){var i="";for(var a in N+="<th",b.excelstyles)if(b.excelstyles.hasOwnProperty(a)){var l=n(t).css(b.excelstyles[a]);""!==l&&"0px none rgb(0, 0, 0)"!=l&&"rgba(0, 0, 0, 0)"!=l&&(i+=""===i?'style="':";",i+=b.excelstyles[a]+":"+l)}""!==i&&(N+=" "+i+'"'),n(t).is("[colspan]")&&(N+=' colspan="'+n(t).attr("colspan")+'"'),n(t).is("[rowspan]")&&(N+=' rowspan="'+n(t).attr("rowspan")+'"'),N+=">"+s(t,e,o)+"</th>"}})),0<N.length&&(I+="<tr>"+N+"</tr>"),C++})),I+="</thead><tbody>",t.find("tbody").each((function(){S.push.apply(S,n(this).find(b.tbodySelector))})),b.tfootSelector.length&&S.push.apply(S,t.find("tfoot").find(b.tfootSelector)),n(S).each((function(){var t=n(this);N="",o(this,"td,th",C,x.length+S.length,(function(e,o,i){if(null!==e){var a="",l=n(e).data("tableexport-msonumberformat");for(var r in"undefined"==typeof l&&"function"===typeof b.onMsoNumberFormat&&(l=b.onMsoNumberFormat(e,o,i)),"undefined"!=typeof l&&""!==l&&(a="style=\"mso-number-format:'"+l+"'"),b.excelstyles)b.excelstyles.hasOwnProperty(r)&&(""===(l=n(e).css(b.excelstyles[r]))&&(l=t.css(b.excelstyles[r])),""!==l&&"0px none rgb(0, 0, 0)"!=l&&"rgba(0, 0, 0, 0)"!=l&&(a+=""===a?'style="':";",a+=b.excelstyles[r]+":"+l));N+="<td",""!==a&&(N+=" "+a+'"'),n(e).is("[colspan]")&&(N+=' colspan="'+n(e).attr("colspan")+'"'),n(e).is("[rowspan]")&&(N+=' rowspan="'+n(e).attr("rowspan")+'"'),N+=">"+s(e,o,i).replace(/\n/g,"<br>")+"</td>"}})),0<N.length&&(I+="<tr>"+N+"</tr>"),C++})),b.displayTableName&&(I+="<tr><td></td></tr><tr><td></td></tr><tr><td>"+s(n("<p>"+b.tableName+"</p>"))+"</td></tr>"),I+="</tbody></table>",!0===b.consoleLog&&console.log(I)})),R='<html xmlns:o="urn:schemas-microsoft-com:office:office" '+R+' xmlns="http://www.w3.org/TR/REC-html40"><meta http-equiv="content-type" content="application/vnd.ms-'+t+'; charset=UTF-8"><head>',"excel"===t&&(R+="\x3c!--[if gte mso 9]>",R+="<xml>",R+="<x:ExcelWorkbook>",R+="<x:ExcelWorksheets>",R+="<x:ExcelWorksheet>",R+="<x:Name>",R+=b.worksheetName,R+="</x:Name>",R+="<x:WorksheetOptions>",R+="<x:DisplayGridlines/>",R+="</x:WorksheetOptions>",R+="</x:ExcelWorksheet>",R+="</x:ExcelWorksheets>",R+="</x:ExcelWorkbook>",R+="</xml>",R+="<![endif]--\x3e"),R+="<style>br {mso-data-placement:same-cell;}</style>",R+="</head>",R+="<body>",R+=I,R+="</body>",R+="</html>",!0===b.consoleLog&&console.log(R),"string"===b.outputMode)return R;if("base64"===b.outputMode)return g(R);try{m=new Blob([R],{type:"application/vnd.ms-"+b.type}),saveAs(m,b.fileName+"."+P)}catch(V){y(b.fileName+"."+P,"data:application/vnd.ms-"+t+";base64,",R)}}else if("xlsx"==b.type){var U=[],H=[];C=0,S=n(w).find("thead").first().find(b.theadSelector),n(w).find("tbody").each((function(){S.push.apply(S,n(this).find(b.tbodySelector))})),b.tfootSelector.length&&S.push.apply(S,n(w).find("tfoot").find(b.tfootSelector)),n(S).each((function(){var t=[];o(this,"th,td",C,S.length,(function(e,n,o){if("undefined"!==typeof e&&null!==e){var i=parseInt(e.getAttribute("colspan")),a=parseInt(e.getAttribute("rowspan"));if(""!==(e=s(e,n,o))&&e==+e&&(e=+e),H.forEach((function(e){if(C>=e.s.r&&C<=e.e.r&&t.length>=e.s.c&&t.length<=e.e.c)for(var n=0;n<=e.e.c-e.s.c;++n)t.push(null)})),(a||i)&&(i=i||1,H.push({s:{r:C,c:t.length},e:{r:C+(a||1)-1,c:t.length+i-1}})),t.push(""!==e?e:null),i)for(a=0;a<i-1;++a)t.push(null)}})),U.push(t),C++})),t=new function t(){if(!(this instanceof t))return new t;this.SheetNames=[],this.Sheets={}},(P=function(t){for(var e={},n={s:{c:1e7,r:1e7},e:{c:0,r:0}},o=0;o!=t.length;++o)for(var i=0;i!=t[o].length;++i){n.s.r>o&&(n.s.r=o),n.s.c>i&&(n.s.c=i),n.e.r<o&&(n.e.r=o),n.e.c<i&&(n.e.c=i);var a={v:t[o][i]};if(null!==a.v){var l=XLSX.utils.encode_cell({c:i,r:o});if("number"===typeof a.v)a.t="n";else if("boolean"===typeof a.v)a.t="b";else if(a.v instanceof Date){a.t="n",a.z=XLSX.SSF._table[14];var r,s=a;r=(Date.parse(a.v)-new Date(Date.UTC(1899,11,30)))/864e5,s.v=r}else a.t="s";e[l]=a}}return 1e7>n.s.c&&(e["!ref"]=XLSX.utils.encode_range(n)),e}(U))["!merges"]=H,t.SheetNames.push(b.worksheetName),t.Sheets[b.worksheetName]=P,t=XLSX.write(t,{bookType:b.type,bookSST:!1,type:"binary"});try{m=new Blob([function(t){for(var e=new ArrayBuffer(t.length),n=new Uint8Array(e),o=0;o!=t.length;++o)n[o]=255&t.charCodeAt(o);return e}(t)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=UTF-8"}),saveAs(m,b.fileName+"."+b.type)}catch(V){y(b.fileName+"."+b.type,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=UTF-8",U)}}else if("png"==b.type)html2canvas(n(w)[0]).then((function(t){t=t.toDataURL();for(var e=atob(t.substring(22)),n=new ArrayBuffer(e.length),o=new Uint8Array(n),i=0;i<e.length;i++)o[i]=e.charCodeAt(i);if(!0===b.consoleLog&&console.log(e),"string"===b.outputMode)return e;if("base64"===b.outputMode)return g(t);if("window"===b.outputMode)window.open(t);else try{m=new Blob([n],{type:"image/png"}),saveAs(m,b.fileName+".png")}catch(a){y(b.fileName+".png","data:image/png,",t)}}));else if("pdf"==b.type)if(!0===b.pdfmake.enabled){var W=[],F=[];C=0,(x=n(this).find("thead").first().find(b.theadSelector)).each((function(){var t=[];o(this,"th,td",C,x.length,(function(e,n,o){t.push(s(e,n,o))})),t.length&&F.push(t);for(var e=W.length;e<t.length;e++)W.push("*");C++})),n(this).find("tbody").each((function(){S.push.apply(S,n(this).find(b.tbodySelector))})),b.tfootSelector.length&&S.push.apply(S,n(this).find("tfoot").find(b.tfootSelector)),n(S).each((function(){var t=[];o(this,"td,th",C,x.length+S.length,(function(e,n,o){t.push(s(e,n,o))})),t.length&&F.push(t),C++})),pdfMake.createPdf({pageOrientation:"landscape",content:[{table:{headerRows:x.length,widths:W,body:F}}]}).getBuffer((function(t){try{var e=new Blob([t],{type:"application/pdf"});saveAs(e,b.fileName+".pdf")}catch(n){y(b.fileName+".pdf","data:application/pdf;base64,",t)}}))}else if(!1===b.jspdf.autotable){t={dim:{w:u(n(w).first().get(0),"width","mm"),h:u(n(w).first().get(0),"height","mm")},pagesplit:!1};var K=new jsPDF(b.jspdf.orientation,b.jspdf.unit,b.jspdf.format);K.addHTML(n(w).first(),b.jspdf.margins.left,b.jspdf.margins.top,t,(function(){i(K)}))}else{var X=b.jspdf.autotable.tableExport;if("string"===typeof b.jspdf.format&&"bestfit"===b.jspdf.format.toLowerCase()){var z={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89]},q="",J="",Q=0;n(w).filter(":visible").each((function(){if("none"!=n(this).css("display")){var t=u(n(this).get(0),"width","pt");if(t>Q){for(var e in t>z.a0[0]&&(q="a0",J="l"),z)z.hasOwnProperty(e)&&z[e][1]>t&&(q=e,J="l",z[e][0]>t&&(J="p"));Q=t}}})),b.jspdf.format=""===q?"a4":q,b.jspdf.orientation=""===J?"w":J}X.doc=new jsPDF(b.jspdf.orientation,b.jspdf.unit,b.jspdf.format),!0===X.outputImages&&(X.images={}),"undefined"!=typeof X.images&&(n(w).filter((function(){return"none"!=n(this).data("tableexport-display")&&(n(this).is(":visible")||"always"==n(this).data("tableexport-display"))})).each((function(){var t=0;x=n(this).find("thead").find(b.theadSelector),n(this).find("tbody").each((function(){S.push.apply(S,n(this).find(b.tbodySelector))})),b.tfootSelector.length&&S.push.apply(S,n(this).find("tfoot").find(b.tfootSelector)),n(S).each((function(){o(this,"td,th",x.length+t,x.length+S.length,(function(t,e,o){"undefined"!==typeof t&&null!==t&&"undefined"!=typeof(e=n(t).children())&&0<e.length&&function t(e,o,i){"undefined"!=typeof i.images&&o.each((function(){var o=n(this).children();if(n(this).is("img")){var a=p(this.src);i.images[a]={url:this.src,src:this.src}}"undefined"!=typeof o&&0<o.length&&t(e,o,i)}))}(t,e,X)})),t++}))})),x=[],S=[]),function(t,e){function n(t){if(t.url){var n=new Image;i=++a,n.crossOrigin="Anonymous",n.onerror=n.onload=function(){if(n.complete&&(0===n.src.indexOf("data:image/")&&(n.width=t.width||n.width||0,n.height=t.height||n.height||0),n.width+n.height)){var o=document.createElement("canvas"),l=o.getContext("2d");o.width=n.width,o.height=n.height,l.drawImage(n,0,0),t.src=o.toDataURL("image/jpeg")}--a||e(i)},n.src=t.url}}var o,i=0,a=0;if("undefined"!=typeof t.images)for(o in t.images)t.images.hasOwnProperty(o)&&n(t.images[o]);(o=a)||(e(i),o=void 0)}(X,(function(t){n(w).filter((function(){return"none"!=n(this).data("tableexport-display")&&(n(this).is(":visible")||"always"==n(this).data("tableexport-display"))})).each((function(){var t,i=0;if(k=e(this),X.columns=[],X.rows=[],X.rowoptions={},"function"===typeof X.onTable&&!1===X.onTable(n(this),b))return!0;b.jspdf.autotable.tableExport=null;var r=n.extend(!0,{},b.jspdf.autotable);b.jspdf.autotable.tableExport=X,r.margin={},n.extend(!0,r.margin,b.jspdf.margins),r.tableExport=X,"function"!==typeof r.beforePageContent&&(r.beforePageContent=function(t){1==t.pageCount&&t.table.rows.concat(t.table.headerRow).forEach((function(e){0<e.height&&(e.height+=(2-1.15)/2*e.styles.fontSize,t.table.height+=(2-1.15)/2*e.styles.fontSize)}))}),"function"!==typeof r.createdHeaderCell&&(r.createdHeaderCell=function(t,e){if(t.styles=n.extend({},e.row.styles),"undefined"!=typeof X.columns[e.column.dataKey]){var o,i=X.columns[e.column.dataKey];"undefined"!=typeof i.rect&&(t.contentWidth=i.rect.width,"undefined"!=typeof X.heightRatio&&0!==X.heightRatio||(o=e.row.raw[e.column.dataKey].rowspan?e.row.raw[e.column.dataKey].rect.height/e.row.raw[e.column.dataKey].rowspan:e.row.raw[e.column.dataKey].rect.height,X.heightRatio=t.styles.rowHeight/o),(o=e.row.raw[e.column.dataKey].rect.height*X.heightRatio)>t.styles.rowHeight&&(t.styles.rowHeight=o)),"undefined"!=typeof i.style&&!0!==i.style.hidden&&(t.styles.halign=i.style.align,"inherit"===r.styles.fillColor&&(t.styles.fillColor=i.style.bcolor),"inherit"===r.styles.textColor&&(t.styles.textColor=i.style.color),"inherit"===r.styles.fontStyle&&(t.styles.fontStyle=i.style.fstyle))}}),"function"!==typeof r.createdCell&&(r.createdCell=function(t,e){var n=X.rowoptions[e.row.index+":"+e.column.dataKey];"undefined"!=typeof n&&"undefined"!=typeof n.style&&!0!==n.style.hidden&&(t.styles.halign=n.style.align,"inherit"===r.styles.fillColor&&(t.styles.fillColor=n.style.bcolor),"inherit"===r.styles.textColor&&(t.styles.textColor=n.style.color),"inherit"===r.styles.fontStyle&&(t.styles.fontStyle=n.style.fstyle))}),"function"!==typeof r.drawHeaderCell&&(r.drawHeaderCell=function(t,e){var n=X.columns[e.column.dataKey];return(!0!==n.style.hasOwnProperty("hidden")||!0!==n.style.hidden)&&0<=n.rowIndex&&a(t,e,n)}),"function"!==typeof r.drawCell&&(r.drawCell=function(t,e){var n=X.rowoptions[e.row.index+":"+e.column.dataKey];if(a(t,e,n)){if(X.doc.rect(t.x,t.y,t.width,t.height,t.styles.fillStyle),"undefined"!=typeof n&&"undefined"!=typeof n.kids&&0<n.kids.length){var o=t.height/n.rect.height;(o>X.dh||"undefined"==typeof X.dh)&&(X.dh=o),X.dw=t.width/n.rect.width,l(t,n.kids,X)}X.doc.autoTableText(t.text,t.textPos.x,t.textPos.y,{halign:t.styles.halign,valign:t.styles.valign})}return!1}),X.headerrows=[],(x=n(this).find("thead").find(b.theadSelector)).each((function(){t=0,X.headerrows[i]=[],o(this,"th,td",i,x.length,(function(e,n,o){var a=f(e);a.title=s(e,n,o),a.key=t++,a.rowIndex=i,X.headerrows[i].push(a)})),i++})),0<i&&n.each(X.headerrows[i-1],(function(){var t=this;1<i&&null===this.rect&&(t=X.headerrows[i-2][this.key]),null!==t&&X.columns.push(t)}));var d=0;S=[],n(this).find("tbody").each((function(){S.push.apply(S,n(this).find(b.tbodySelector))})),b.tfootSelector.length&&S.push.apply(S,n(this).find("tfoot").find(b.tfootSelector)),n(S).each((function(){var e=[];t=0,o(this,"td,th",i,x.length+S.length,(function(o,i,a){if("undefined"===typeof X.columns[t]){var l={title:"",key:t,style:{hidden:!0}};X.columns.push(l)}"undefined"!==typeof o&&null!==o?(l=f(o)).kids=n(o).children():(l=n.extend(!0,{},X.rowoptions[d+":"+(t-1)])).colspan=-1,X.rowoptions[d+":"+t++]=l,e.push(s(o,i,a))})),e.length&&(X.rows.push(e),d++),i++})),"function"===typeof X.onBeforeAutotable&&X.onBeforeAutotable(n(this),X.columns,X.rows,r),X.doc.autoTable(X.columns,X.rows,r),"function"===typeof X.onAfterAutotable&&X.onAfterAutotable(n(this),r),b.jspdf.autotable.startY=X.doc.autoTableEndPosY()+r.margin.top})),i(X.doc),"undefined"!=typeof X.headerrows&&(X.headerrows.length=0),"undefined"!=typeof X.columns&&(X.columns.length=0),"undefined"!=typeof X.rows&&(X.rows.length=0),delete X.doc,X.doc=null}))}return this}})}}]);
//# sourceMappingURL=10.44d9d40b.chunk.js.map