mivita/resources/assets/vendor/libs/tableexport/tableexport.js
2018-10-29 09:39:31 +01:00

24 lines
No EOL
35 KiB
JavaScript
Executable file
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(t,e){var o=function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},o.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=199)}({198:function(t,e,o){"use strict";
/**
* @preserve tableExport.jquery.plugin
*
* Version 1.9.11
*
* Copyright (c) 2015-2018 hhurz, https://github.com/hhurz
*
* Original Work Copyright (c) 2014 Giri Raj
*
* Licensed under the MIT License
**/
/**
* @preserve tableExport.jquery.plugin
*
* Version 1.9.11
*
* Copyright (c) 2015-2018 hhurz, https://github.com/hhurz
*
* Original Work Copyright (c) 2014 Giri Raj
*
* Licensed under the MIT License
**/
var n;(n=jQuery).fn.tableExport=function(t){var e,o={csvEnclosure:'"',csvSeparator:",",csvUseBOM:!0,displayTableName:!1,escape:!1,exportHiddenCells:!1,fileName:"tableExport",htmlContent:!1,ignoreColumn:[],ignoreRow:[],jsonScope:"all",jspdf:{orientation:"p",unit:"pt",format:"a4",margins:{left:20,right:10,top:10,bottom:10},onDocCreated:null,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:{doc:null,onAfterAutotable:null,onBeforeAutotable:null,onAutotableText:null,onTable:null,outputImages:!0}}},maxNestedTables:1,mso:{fileFormat:"xlshtml",onMsoNumberFormat:null,pageFormat:"a4",pageOrientation:"portrait",rtl:!1,styles:[],worksheetName:""},numbers:{html:{decimalMark:".",thousandsSeparator:","},output:{decimalMark:".",thousandsSeparator:","}},onCellData:null,onCellHtmlData:null,onIgnoreRow:null,outputMode:"file",pdfmake:{enabled:!1,docDefinition:{pageOrientation:"portrait",defaultStyle:{font:"Roboto"}},fonts:{}},tbodySelector:"tr",tfootSelector:"tr",theadSelector:"tr",tableName:"Table",type:"csv"},r={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],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]},i=1.15,a=this,s=null,l=[],c=[],d=0,h="",f=[],u=[],p=[],m=!1;if(n.extend(!0,o,t),"xlsx"===o.type&&(o.mso.fileFormat=o.type,o.type="excel"),void 0!==o.excelFileFormat&&"undefined"===o.mso.fileFormat&&(o.mso.fileFormat=o.excelFileFormat),void 0!==o.excelPageFormat&&"undefined"===o.mso.pageFormat&&(o.mso.pageFormat=o.excelPageFormat),void 0!==o.excelPageOrientation&&"undefined"===o.mso.pageOrientation&&(o.mso.pageOrientation=o.excelPageOrientation),void 0!==o.excelRTL&&"undefined"===o.mso.rtl&&(o.mso.rtl=o.excelRTL),void 0!==o.excelstyles&&"undefined"===o.mso.styles&&(o.mso.styles=o.excelstyles),void 0!==o.onMsoNumberFormat&&"undefined"===o.mso.onMsoNumberFormat&&(o.mso.onMsoNumberFormat=o.onMsoNumberFormat),void 0!==o.worksheetName&&"undefined"===o.mso.worksheetName&&(o.mso.worksheetName=o.worksheetName),o.mso.pageOrientation="l"===o.mso.pageOrientation.substr(0,1)?"landscape":"portrait",o.maxNestedTables=o.maxNestedTables>=0?o.maxNestedTables:1,f=lt(a),"csv"===o.type||"tsv"===o.type||"txt"===o.type){var g="",v=0;u=[],d=0;var y=function(t,e,r){return t.each(function(){h="",dt(this,e,d,r+t.length,function(t,e,n){h+=function(t,e,n){var r="";if(null!==t){var i=gt(t,e,n),a=null===i||""===i?"":i.toString();"tsv"===o.type?(i instanceof Date&&i.toLocaleString(),r=pt(a,"\t"," ")):i instanceof Date?r=o.csvEnclosure+i.toLocaleString()+o.csvEnclosure:((r=pt(a,o.csvEnclosure,o.csvEnclosure+o.csvEnclosure)).indexOf(o.csvSeparator)>=0||/[\r\n ]/g.test(r))&&(r=o.csvEnclosure+r+o.csvEnclosure)}return r}(t,e,n)+("tsv"===o.type?"\t":o.csvSeparator)}),(h=n.trim(h).substring(0,h.length-1)).length>0&&(g.length>0&&(g+="\n"),g+=h),d++}),t.length};if(v+=y(n(a).find("thead").first().find(o.theadSelector),"th,td",v),at(n(a),"tbody").each(function(){v+=y(st(n(this),o.tbodySelector),"td,th",v)}),o.tfootSelector.length&&y(n(a).find("tfoot").first().find(o.tfootSelector),"td,th",v),g+="\n","string"===o.outputMode)return g;if("base64"===o.outputMode)return Ot(g);if("window"===o.outputMode)return void Tt(!1,"data:text/"+("csv"===o.type?"csv":"plain")+";charset=utf-8,",g);try{e=new Blob([g],{type:"text/"+("csv"===o.type?"csv":"plain")+";charset=utf-8"}),saveAs(e,o.fileName+"."+o.type,"csv"!==o.type||!1===o.csvUseBOM)}catch(t){Tt(o.fileName+"."+o.type,"data:text/"+("csv"===o.type?"csv":"plain")+";charset=utf-8,"+("csv"===o.type&&o.csvUseBOM?"\ufeff":""),g)}}else if("sql"===o.type){d=0,u=[];var b="INSERT INTO `"+o.tableName+"` (";if((l=n(a).find("thead").first().find(o.theadSelector)).each(function(){dt(this,"th,td",d,l.length,function(t,e,o){b+="'"+gt(t,e,o)+"',"}),d++,b=n.trim(b).substring(0,b.length-1)}),b+=") VALUES ",c=it(n(a)),n(c).each(function(){h="",dt(this,"td,th",d,l.length+c.length,function(t,e,o){h+="'"+gt(t,e,o)+"',"}),h.length>3&&(b+="("+h,b=n.trim(b).substring(0,b.length-1),b+="),"),d++}),b=n.trim(b).substring(0,b.length-1),b+=";","string"===o.outputMode)return b;if("base64"===o.outputMode)return Ot(b);try{e=new Blob([b],{type:"text/plain;charset=utf-8"}),saveAs(e,o.fileName+".sql")}catch(t){Tt(o.fileName+".sql","data:application/sql;charset=utf-8,",b)}}else if("json"===o.type){var w=[];u=[],(l=n(a).find("thead").first().find(o.theadSelector)).each(function(){var t=[];dt(this,"th,td",d,l.length,function(e,o,n){t.push(gt(e,o,n))}),w.push(t)});var x=[];c=it(n(a)),n(c).each(function(){var t={},e=0;dt(this,"td,th",d,l.length+c.length,function(o,n,r){w.length?t[w[w.length-1][e]]=gt(o,n,r):t[e]=gt(o,n,r),e++}),!1===n.isEmptyObject(t)&&x.push(t),d++});var S="";if(S="head"===o.jsonScope?JSON.stringify(w):"data"===o.jsonScope?JSON.stringify(x):JSON.stringify({header:w,data:x}),"string"===o.outputMode)return S;if("base64"===o.outputMode)return Ot(S);try{e=new Blob([S],{type:"application/json;charset=utf-8"}),saveAs(e,o.fileName+".json")}catch(t){Tt(o.fileName+".json","data:application/json;charset=utf-8;base64,",S)}}else if("xml"===o.type){d=0,u=[];var C='<?xml version="1.0" encoding="utf-8"?>';C+="<tabledata><fields>",(l=n(a).find("thead").first().find(o.theadSelector)).each(function(){dt(this,"th,td",d,l.length,function(t,e,o){C+="<field>"+gt(t,e,o)+"</field>"}),d++}),C+="</fields><data>";var N=1;if(c=it(n(a)),n(c).each(function(){var t=1;h="",dt(this,"td,th",d,l.length+c.length,function(e,o,n){h+="<column-"+t+">"+gt(e,o,n)+"</column-"+t+">",t++}),h.length>0&&"<column-1></column-1>"!==h&&(C+='<row id="'+N+'">'+h+"</row>",N++),d++}),C+="</data></tabledata>","string"===o.outputMode)return C;if("base64"===o.outputMode)return Ot(C);try{e=new Blob([C],{type:"application/xml;charset=utf-8"}),saveAs(e,o.fileName+".xml")}catch(t){Tt(o.fileName+".xml","data:application/xml;charset=utf-8;base64,",C)}}else if("excel"===o.type&&"xmlss"===o.mso.fileFormat){var k=[],A=[];n(a).filter(function(){return ct(n(this))}).each(function(){var t=n(this),e="";function r(t,e,o){var r=[];return n(t).each(function(){var e=0,i=0;h="",dt(this,"td,th",d,o+t.length,function(t,o,a){if(null!==t){var s="",l=gt(t,o,a),c="String";if(!1!==jQuery.isNumeric(l))c="Number";else{var f=((m=l).indexOf("%")>-1?!1!==(m=mt(m.replace(/%/g,"")))&&(m/=100):m=!1,m);!1!==f&&(l=f,c="Number",s+=' ss:StyleID="pct1"')}"Number"!==c&&(l=l.replace(/\n/g,"<br>"));var u=wt(t),p=xt(t);n.each(r,function(){if(d>=this.s.r&&d<=this.e.r&&i>=this.s.c&&i<=this.e.c)for(var t=0;t<=this.e.c-this.s.c;++t)i++,e++}),(p||u)&&(p=p||1,u=u||1,r.push({s:{r:d,c:i},e:{r:d+p-1,c:i+u-1}})),u>1&&(s+=' ss:MergeAcross="'+(u-1)+'"',i+=u-1),p>1&&(s+=' ss:MergeDown="'+(p-1)+'" ss:StyleID="rsp1"'),e>0&&(s+=' ss:Index="'+(i+1)+'"',e=0),h+="<Cell"+s+'><Data ss:Type="'+c+'">'+n("<div />").text(l).html()+"</Data></Cell>\r",i++}var m}),h.length>0&&(_+='<Row ss:AutoFitHeight="0">\r'+h+"</Row>\r"),d++}),t.length}"string"==typeof o.mso.worksheetName&&o.mso.worksheetName.length?e=o.mso.worksheetName+" "+(A.length+1):void 0!==o.mso.worksheetName[A.length]&&(e=o.mso.worksheetName[A.length]),e.length||(e=t.find("caption").text()||""),e.length||(e="Table "+(A.length+1)),e=n.trim(e.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31)),A.push(n("<div />").text(e).html()),!1===o.exportHiddenCells&&(p=t.find("tr, th, td").filter(":hidden"),m=p.length>0),d=0,f=lt(this),_="<Table>\r";var i=0;i+=r(t.find("thead").first().find(o.theadSelector),"th,td",i),r(it(t),"td,th",i),_+="</Table>\r",k.push(_)});for(var T,O,j={},F={},M=0,P=A.length;M<P;M++)T=A[M],O=j[T],2===(O=j[T]=null==O?1:O+1)&&(A[F[T]]=A[F[T]].substring(0,29)+"-1"),j[T]>1?A[M]=A[M].substring(0,29)+"-"+j[T]:F[T]=M;for(var R=(new Date).toISOString(),D='<?xml version="1.0" encoding="UTF-8"?>\r<?mso-application progid="Excel.Sheet"?>\r<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"\r xmlns:o="urn:schemas-microsoft-com:office:office"\r xmlns:x="urn:schemas-microsoft-com:office:excel"\r xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"\r xmlns:html="http://www.w3.org/TR/REC-html40">\r<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">\r <Created>'+R+'</Created>\r</DocumentProperties>\r<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">\r <AllowPNG/>\r</OfficeDocumentSettings>\r<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">\r <WindowHeight>9000</WindowHeight>\r <WindowWidth>13860</WindowWidth>\r <WindowTopX>0</WindowTopX>\r <WindowTopY>0</WindowTopY>\r <ProtectStructure>False</ProtectStructure>\r <ProtectWindows>False</ProtectWindows>\r</ExcelWorkbook>\r<Styles>\r <Style ss:ID="Default" ss:Name="Normal">\r <Alignment ss:Vertical="Bottom"/>\r <Borders/>\r <Font/>\r <Interior/>\r <NumberFormat/>\r <Protection/>\r </Style>\r <Style ss:ID="rsp1">\r <Alignment ss:Vertical="Center"/>\r </Style>\r <Style ss:ID="pct1">\r <NumberFormat ss:Format="Percent"/>\r </Style>\r</Styles>\r',E=0;E<k.length;E++)D+='<Worksheet ss:Name="'+A[E]+'" ss:RightToLeft="'+(o.mso.rtl?"1":"0")+'">\r'+k[E],o.mso.rtl?D+='<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">\r<DisplayRightToLeft/>\r</WorksheetOptions>\r':D+='<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"/>\r',D+="</Worksheet>\r";if(D+="</Workbook>\r","string"===o.outputMode)return D;if("base64"===o.outputMode)return Ot(D);try{e=new Blob([D],{type:"application/xml;charset=utf-8"}),saveAs(e,o.fileName+".xml")}catch(t){Tt(o.fileName+".xml","data:application/xml;charset=utf-8;base64,",D)}}else if("excel"===o.type&&"xlsx"===o.mso.fileFormat){var I=[],W=[];d=0,(c=n(a).find("thead").first().find(o.theadSelector).toArray()).push.apply(c,it(n(a))),n(c).each(function(){var t=[];dt(this,"th,td",d,c.length,function(e,r,i){if(void 0!==e&&null!==e){var a=gt(e,r,i),s=wt(e),l=xt(e);if(n.each(W,function(){if(d>=this.s.r&&d<=this.e.r&&t.length>=this.s.c&&t.length<=this.e.c)for(var e=0;e<=this.e.c-this.s.c;++e)t.push(null)}),(l||s)&&(l=l||1,s=s||1,W.push({s:{r:d,c:t.length},e:{r:d+l-1,c:t.length+s-1}})),"function"!=typeof o.onCellData&&""!==a&&a===+a&&(a=+a),t.push(""!==a?a:null),s)for(var c=0;c<s-1;++c)t.push(null)}}),I.push(t),d++});var L=new function t(){if(!(this instanceof t))return new t;this.SheetNames=[],this.Sheets={}},U=function(t){for(var e={},o={s:{c:1e7,r:1e7},e:{c:0,r:0}},n=0;n!==t.length;++n)for(var r=0;r!==t[n].length;++r){o.s.r>n&&(o.s.r=n),o.s.c>r&&(o.s.c=r),o.e.r<n&&(o.e.r=n),o.e.c<r&&(o.e.c=r);var i={v:t[n][r]};if(null!==i.v){var a=XLSX.utils.encode_cell({c:r,r:n});"number"==typeof i.v?i.t="n":"boolean"==typeof i.v?i.t="b":i.v instanceof Date?(i.t="n",i.z=XLSX.SSF._table[14],i.v=kt(i.v)):i.t="s",e[a]=i}}return o.s.c<1e7&&(e["!ref"]=XLSX.utils.encode_range(o)),e}(I);U["!merges"]=W,XLSX.utils.book_append_sheet(L,U,o.mso.worksheetName);var B=XLSX.write(L,{type:"binary",bookType:o.mso.fileFormat,bookSST:!1});try{e=new Blob([Nt(B)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"}),saveAs(e,o.fileName+"."+o.mso.fileFormat)}catch(t){Tt(o.fileName+"."+o.mso.fileFormat,"data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8,",Nt(B))}}else if("excel"===o.type||"xls"===o.type||"word"===o.type||"doc"===o.type){var H="excel"===o.type||"xls"===o.type?"excel":"word",z="excel"===H?"xls":"doc",X='xmlns:x="urn:schemas-microsoft-com:office:'+H+'"',_="",K="";n(a).filter(function(){return ct(n(this))}).each(function(){var t=n(this);""===K&&(K=o.mso.worksheetName||t.find("caption").text()||"Table",K=n.trim(K.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31))),!1===o.exportHiddenCells&&(p=t.find("tr, th, td").filter(":hidden"),m=p.length>0),d=0,u=[],f=lt(this),_+="<table><thead>",(l=t.find("thead").first().find(o.theadSelector)).each(function(){h="",dt(this,"th,td",d,l.length,function(t,e,r){if(null!==t){var i="";for(var a in h+="<th",o.mso.styles)if(o.mso.styles.hasOwnProperty(a)){var s=n(t).css(o.mso.styles[a]);""!==s&&"0px none rgb(0, 0, 0)"!==s&&"rgba(0, 0, 0, 0)"!==s&&(i+=""===i?'style="':";",i+=o.mso.styles[a]+":"+s)}""!==i&&(h+=" "+i+'"');var l=wt(t);l>0&&(h+=' colspan="'+l+'"');var c=xt(t);c>0&&(h+=' rowspan="'+c+'"'),h+=">"+gt(t,e,r)+"</th>"}}),h.length>0&&(_+="<tr>"+h+"</tr>"),d++}),_+="</thead><tbody>",c=it(t),n(c).each(function(){var t=n(this);h="",dt(this,"td,th",d,l.length+c.length,function(e,r,i){if(null!==e){var a=gt(e,r,i),s="",l=n(e).data("tableexport-msonumberformat");for(var c in void 0===l&&"function"==typeof o.mso.onMsoNumberFormat&&(l=o.mso.onMsoNumberFormat(e,r,i)),void 0!==l&&""!==l&&(s="style=\"mso-number-format:'"+l+"'"),o.mso.styles)o.mso.styles.hasOwnProperty(c)&&(""===(l=n(e).css(o.mso.styles[c]))&&(l=t.css(o.mso.styles[c])),""!==l&&"0px none rgb(0, 0, 0)"!==l&&"rgba(0, 0, 0, 0)"!==l&&(s+=""===s?'style="':";",s+=o.mso.styles[c]+":"+l));h+="<td",""!==s&&(h+=" "+s+'"');var d=wt(e);d>0&&(h+=' colspan="'+d+'"');var f=xt(e);f>0&&(h+=' rowspan="'+f+'"'),"string"==typeof a&&""!==a&&(a=a.replace(/\n/g,"<br>")),h+=">"+a+"</td>"}}),h.length>0&&(_+="<tr>"+h+"</tr>"),d++}),o.displayTableName&&(_+="<tr><td></td></tr><tr><td></td></tr><tr><td>"+gt(n("<p>"+o.tableName+"</p>"))+"</td></tr>"),_+="</tbody></table>"});var q='<html xmlns:o="urn:schemas-microsoft-com:office:office" '+X+' xmlns="http://www.w3.org/TR/REC-html40">';if(q+='<meta http-equiv="content-type" content="application/vnd.ms-'+H+'; charset=UTF-8">',q+="<head>","excel"===H&&(q+="\x3c!--[if gte mso 9]>",q+="<xml>",q+="<x:ExcelWorkbook>",q+="<x:ExcelWorksheets>",q+="<x:ExcelWorksheet>",q+="<x:Name>",q+=K,q+="</x:Name>",q+="<x:WorksheetOptions>",q+="<x:DisplayGridlines/>",o.mso.rtl&&(q+="<x:DisplayRightToLeft/>"),q+="</x:WorksheetOptions>",q+="</x:ExcelWorksheet>",q+="</x:ExcelWorksheets>",q+="</x:ExcelWorkbook>",q+="</xml>",q+="<![endif]--\x3e"),q+="<style>",q+="@page { size:"+o.mso.pageOrientation+"; mso-page-orientation:"+o.mso.pageOrientation+"; }",q+="@page Section1 {size:"+r[o.mso.pageFormat][0]+"pt "+r[o.mso.pageFormat][1]+"pt",q+="; margin:1.0in 1.25in 1.0in 1.25in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}",q+="div.Section1 {page:Section1;}",q+="@page Section2 {size:"+r[o.mso.pageFormat][1]+"pt "+r[o.mso.pageFormat][0]+"pt",q+=";mso-page-orientation:"+o.mso.pageOrientation+";margin:1.25in 1.0in 1.25in 1.0in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}",q+="div.Section2 {page:Section2;}",q+="br {mso-data-placement:same-cell;}",q+="</style>",q+="</head>",q+="<body>",q+='<div class="Section'+("landscape"===o.mso.pageOrientation?"2":"1")+'">',q+=_,q+="</div>",q+="</body>",q+="</html>","string"===o.outputMode)return q;if("base64"===o.outputMode)return Ot(q);try{e=new Blob([q],{type:"application/vnd.ms-"+o.type}),saveAs(e,o.fileName+"."+z)}catch(t){Tt(o.fileName+"."+z,"data:application/vnd.ms-"+H+";base64,",q)}}else if("png"===o.type)html2canvas(n(a)[0]).then(function(t){for(var n=t.toDataURL(),r=atob(n.substring(22)),i=new ArrayBuffer(r.length),a=new Uint8Array(i),s=0;s<r.length;s++)a[s]=r.charCodeAt(s);if("string"===o.outputMode)return r;if("base64"===o.outputMode)return Ot(n);if("window"!==o.outputMode)try{e=new Blob([i],{type:"image/png"}),saveAs(e,o.fileName+".png")}catch(t){Tt(o.fileName+".png","data:image/png,",e)}else window.open(n)});else if("pdf"===o.type)if(!0===o.pdfmake.enabled){var Q=[],V=[];d=0,u=[];var Y=function(t,e,o){var r=0;return n(t).each(function(){var t=[];dt(this,e,d,o,function(e,o,n){if(void 0!==e&&null!==e){var r=wt(e),i=xt(e),a=gt(e,o,n)||" ";r>1||i>1?(r=r||1,i=i||1,t.push({colSpan:r,rowSpan:i,text:a})):t.push(a)}else t.push(" ")}),t.length&&V.push(t),r<t.length&&(r=t.length),d++}),r};l=n(this).find("thead").first().find(o.theadSelector);for(var J=Y(l,"th,td",l.length),$=Q.length;$<J;$++)Q.push("*");c=it(n(this)),Y(c,"th,td",l.length+c.length);var G={content:[{table:{headerRows:l.length,widths:Q,body:V}}]};n.extend(!0,G,o.pdfmake.docDefinition),pdfMake.fonts={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}},n.extend(!0,pdfMake.fonts,o.pdfmake.fonts),pdfMake.createPdf(G).getBuffer(function(t){try{var e=new Blob([t],{type:"application/pdf"});saveAs(e,o.fileName+".pdf")}catch(e){Tt(o.fileName+".pdf","data:application/pdf;base64,",t)}})}else if(!1===o.jspdf.autotable){var Z={dim:{w:Ct(n(a).first().get(0),"width","mm"),h:Ct(n(a).first().get(0),"height","mm")},pagesplit:!1},tt=new jsPDF(o.jspdf.orientation,o.jspdf.unit,o.jspdf.format);tt.addHTML(n(a).first(),o.jspdf.margins.left,o.jspdf.margins.top,Z,function(){ht(tt,!1)})}else{var et=o.jspdf.autotable.tableExport;if("string"==typeof o.jspdf.format&&"bestfit"===o.jspdf.format.toLowerCase()){var ot="",nt="",rt=0;n(a).each(function(){if(ct(n(this))){var t=Ct(n(this).get(0),"width","pt");if(t>rt){for(var e in t>r.a0[0]&&(ot="a0",nt="l"),r)r.hasOwnProperty(e)&&r[e][1]>t&&(ot=e,nt="l",r[e][0]>t&&(nt="p"));rt=t}}}),o.jspdf.format=""===ot?"a4":ot,o.jspdf.orientation=""===nt?"w":nt}null==et.doc&&(et.doc=new jsPDF(o.jspdf.orientation,o.jspdf.unit,o.jspdf.format),"function"==typeof o.jspdf.onDocCreated&&o.jspdf.onDocCreated(et.doc)),!0===et.outputImages&&(et.images={}),void 0!==et.images&&(n(a).filter(function(){return ct(n(this))}).each(function(){var t=0;u=[],!1===o.exportHiddenCells&&(p=n(this).find("tr, th, td").filter(":hidden"),m=p.length>0),l=n(this).find("thead").find(o.theadSelector),c=it(n(this)),n(c).each(function(){dt(this,"td,th",l.length+t,l.length+c.length,function(t){if(void 0!==t&&null!==t){var e=n(t).children();void 0!==e&&e.length>0&&function t(e,o,r){void 0!==r.images&&o.each(function(){var o=n(this).children();if(n(this).is("img")){var i=At(this.src);r.images[i]={url:this.src,src:this.src}}void 0!==o&&o.length>0&&t(e,o,r)})}(t,e,et)}}),t++})}),l=[],c=[]),function(t,e){var o,n=0,r=0;function i(){e(n)}function a(t){if(t.url){var e=new Image;n=++r,e.crossOrigin="Anonymous",e.onerror=e.onload=function(){if(e.complete&&(0===e.src.indexOf("data:image/")&&(e.width=t.width||e.width||0,e.height=t.height||e.height||0),e.width+e.height)){var o=document.createElement("canvas"),n=o.getContext("2d");o.width=e.width,o.height=e.height,n.drawImage(e,0,0),t.src=o.toDataURL("image/jpeg")}--r||i()},e.src=t.url}}if(void 0!==t.images)for(o in t.images)t.images.hasOwnProperty(o)&&a(t.images[o]);r||i()}(et,function(){n(a).filter(function(){return ct(n(this))}).each(function(){var t;if(d=0,u=[],!1===o.exportHiddenCells&&(p=n(this).find("tr, th, td").filter(":hidden"),m=p.length>0),f=lt(this),et.columns=[],et.rows=[],et.rowoptions={},"function"==typeof et.onTable&&!1===et.onTable(n(this),o))return!0;o.jspdf.autotable.tableExport=null;var e=n.extend(!0,{},o.jspdf.autotable);if(o.jspdf.autotable.tableExport=et,e.margin={},n.extend(!0,e.margin,o.jspdf.margins),e.tableExport=et,"function"!=typeof e.beforePageContent&&(e.beforePageContent=function(t){if(1===t.pageCount){var e=t.table.rows.concat(t.table.headerRow);n.each(e,function(){this.height>0&&(this.height+=(2-i)/2*this.styles.fontSize,t.table.height+=(2-i)/2*this.styles.fontSize)})}}),"function"!=typeof e.createdHeaderCell&&(e.createdHeaderCell=function(t,o){if(t.styles=n.extend({},o.row.styles),void 0!==et.columns[o.column.dataKey]){var r,i=et.columns[o.column.dataKey];void 0!==i.rect&&(t.contentWidth=i.rect.width,void 0!==et.heightRatio&&0!==et.heightRatio||(r=o.row.raw[o.column.dataKey].rowspan?o.row.raw[o.column.dataKey].rect.height/o.row.raw[o.column.dataKey].rowspan:o.row.raw[o.column.dataKey].rect.height,et.heightRatio=t.styles.rowHeight/r),(r=o.row.raw[o.column.dataKey].rect.height*et.heightRatio)>t.styles.rowHeight&&(t.styles.rowHeight=r)),void 0!==i.style&&!0!==i.style.hidden&&(t.styles.halign=i.style.align,"inherit"===e.styles.fillColor&&(t.styles.fillColor=i.style.bcolor),"inherit"===e.styles.textColor&&(t.styles.textColor=i.style.color),"inherit"===e.styles.fontStyle&&(t.styles.fontStyle=i.style.fstyle))}}),"function"!=typeof e.createdCell&&(e.createdCell=function(t,o){var n=et.rowoptions[o.row.index+":"+o.column.dataKey];void 0!==n&&void 0!==n.style&&!0!==n.style.hidden&&(t.styles.halign=n.style.align,"inherit"===e.styles.fillColor&&(t.styles.fillColor=n.style.bcolor),"inherit"===e.styles.textColor&&(t.styles.textColor=n.style.color),"inherit"===e.styles.fontStyle&&(t.styles.fontStyle=n.style.fstyle))}),"function"!=typeof e.drawHeaderCell&&(e.drawHeaderCell=function(t,e){var o=et.columns[e.column.dataKey];return(!0!==o.style.hasOwnProperty("hidden")||!0!==o.style.hidden)&&o.rowIndex>=0&&ft(t,e,o)}),"function"!=typeof e.drawCell&&(e.drawCell=function(t,e){var r=et.rowoptions[e.row.index+":"+e.column.dataKey];if(ft(t,e,r))if(et.doc.rect(t.x,t.y,t.width,t.height,t.styles.fillStyle),void 0!==r&&void 0!==r.kids&&r.kids.length>0){var i=t.height/r.rect.height;(i>et.dh||void 0===et.dh)&&(et.dh=i),et.dw=t.width/r.rect.width;var a=t.textPos.y;!function t(e,r,i){r.each(function(){var r=n(this).children(),a=0;if(n(this).is("div")){var s=yt(St(this,"background-color"),[255,255,255]),l=yt(St(this,"border-top-color"),[0,0,0]),c=Ct(this,"border-top-width",o.jspdf.unit),d=this.getBoundingClientRect(),h=this.offsetLeft*i.dw;a=this.offsetTop*i.dh;var f=d.width*i.dw,u=d.height*i.dh;i.doc.setDrawColor.apply(void 0,l),i.doc.setFillColor.apply(void 0,s),i.doc.setLineWidth(c),i.doc.rect(e.x+h,e.y+a,f,u,c?"FD":"F")}else if(n(this).is("img")&&void 0!==i.images){var p=At(this.src),m=i.images[p];if(void 0!==m){var g=e.width/e.height,v=this.width/this.height,y=e.width,b=e.height;v<=g?(b=Math.min(e.height,this.height),y=this.width*b/this.height):v>g&&(y=Math.min(e.width,this.width),b=this.height*y/this.width),y*=19.049976/25.4,(b*=19.049976/25.4)<e.height&&(a=(e.height-b)/2);try{i.doc.addImage(m.src,e.textPos.x,e.y+a,y,b)}catch(t){}e.textPos.x+=y}}void 0!==r&&r.length>0&&t(e,r,i)})}(t,r.kids,et),t.textPos.y=a,ut(t,r.kids,et)}else ut(t,{},et);return!1}),et.headerrows=[],(l=n(this).find("thead").find(o.theadSelector)).each(function(){t=0,et.headerrows[d]=[],dt(this,"th,td",d,l.length,function(e,o,n){var r=bt(e);r.title=gt(e,o,n),r.key=t++,r.rowIndex=d,et.headerrows[d].push(r)}),d++}),d>0)for(var r=d-1;r>=0;)n.each(et.headerrows[r],function(){var t=this;r>0&&null===this.rect&&(t=et.headerrows[r-1][this.key]),null!==t&&t.rowIndex>=0&&(!0!==t.style.hasOwnProperty("hidden")||!0!==t.style.hidden)&&et.columns.push(t)}),r=et.columns.length>0?-1:r-1;var a=0;c=[],c=it(n(this)),n(c).each(function(){var e=[];t=0,dt(this,"td,th",d,l.length+c.length,function(o,r,i){var s;void 0===et.columns[t]&&(s={title:"",key:t,style:{hidden:!0}},et.columns.push(s)),void 0!==o&&null!==o?((s=bt(o)).kids=n(o).children(),et.rowoptions[a+":"+t++]=s):((s=n.extend(!0,{},et.rowoptions[a+":"+(t-1)])).colspan=-1,et.rowoptions[a+":"+t++]=s),e.push(gt(o,r,i))}),e.length&&(et.rows.push(e),a++),d++}),"function"==typeof et.onBeforeAutotable&&et.onBeforeAutotable(n(this),et.columns,et.rows,e),et.doc.autoTable(et.columns,et.rows,e),"function"==typeof et.onAfterAutotable&&et.onAfterAutotable(n(this),e),o.jspdf.autotable.startY=et.doc.autoTableEndPosY()+e.margin.top}),ht(et.doc,void 0!==et.images&&!1===jQuery.isEmptyObject(et.images)),void 0!==et.headerrows&&(et.headerrows.length=0),void 0!==et.columns&&(et.columns.length=0),void 0!==et.rows&&(et.rows.length=0),delete et.doc,et.doc=null})}function it(t){var e=[];return at(t,"tbody").each(function(){e.push.apply(e,st(n(this),o.tbodySelector).toArray())}),o.tfootSelector.length&&at(t,"tfoot").each(function(){e.push.apply(e,st(n(this),o.tfootSelector).toArray())}),e}function at(t,e){var o=t.parents("table").length;return t.find(e).filter(function(){return n(this).closest("table").parents("table").length===o})}function st(t,e){return t.find(e).filter(function(){return 0===o.maxNestedTables||n(this).find("table").length<o.maxNestedTables&&n(this).parents("table").length<=o.maxNestedTables})}function lt(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 ct(t){var e=void 0!==t[0].cellIndex,o=void 0!==t[0].rowIndex,r=e||o?function(t){var e=[];return m&&(e=p.filter(function(){var e=!1;return this.nodeType===t[0].nodeType&&(void 0!==this.rowIndex&&this.rowIndex===t[0].rowIndex?e=!0:void 0!==this.cellIndex&&this.cellIndex===t[0].cellIndex&&void 0!==this.parentNode.rowIndex&&void 0!==t[0].parentNode.rowIndex&&this.parentNode.rowIndex===t[0].parentNode.rowIndex&&(e=!0)),e})),!1===m||0===e.length}(t):t.is(":visible"),i=t.data("tableexport-display");return e&&"none"!==i&&"always"!==i&&(t=n(t[0].parentNode),o=void 0!==t[0].rowIndex,i=t.data("tableexport-display")),o&&"none"!==i&&"always"!==i&&(i=t.closest("table").data("tableexport-display")),"none"!==i&&(!0===r||"always"===i)}function dt(t,e,r,i,a){if("function"==typeof a){var s=!1;if("function"==typeof o.onIgnoreRow&&(s=o.onIgnoreRow(n(t),r)),!1===s&&-1===n.inArray(r,o.ignoreRow)&&-1===n.inArray(r-i,o.ignoreRow)&&ct(n(t))){var l=n(t).find(e),c=0;l.each(function(t){var e,i=n(this),s=wt(this),d=xt(this);if(n.each(u,function(){if(r>=this.s.r&&r<=this.e.r&&c>=this.s.c&&c<=this.e.c)for(e=0;e<=this.e.c-this.s.c;++e)a(null,r,c++)}),!1===function(t,e,r){var i=!1;return ct(t)?o.ignoreColumn.length>0&&(-1!==n.inArray(r,o.ignoreColumn)||-1!==n.inArray(r-e,o.ignoreColumn)||f.length>r&&void 0!==f[r]&&-1!==n.inArray(f[r],o.ignoreColumn))&&(i=!0):i=!0,i}(i,l.length,t)&&((d||s)&&(d=d||1,s=s||1,u.push({s:{r:r,c:c},e:{r:r+d-1,c:c+s-1}})),a(this,r,c++)),s)for(e=0;e<s-1;++e)a(null,r,c++)}),n.each(u,function(){if(r>=this.s.r&&r<=this.e.r&&c>=this.s.c&&c<=this.e.c)for(P=0;P<=this.e.c-this.s.c;++P)a(null,r,c++)})}}}function ht(t,e){if("string"===o.outputMode)return t.output();if("base64"===o.outputMode)return Ot(t.output());if("window"===o.outputMode)return window.URL=window.URL||window.webkitURL,void window.open(window.URL.createObjectURL(t.output("blob")));try{var n=t.output("blob");saveAs(n,o.fileName+".pdf")}catch(n){Tt(o.fileName+".pdf","data:application/pdf"+(e?"":";base64")+",",e?t.output("blob"):t.output())}}function ft(t,e,o){var n=0;if(void 0!==o&&(n=o.colspan),n>=0){for(var r=t.width,a=t.textPos.x,s=e.table.columns.indexOf(e.column),l=1;l<n;l++){var c=e.table.columns[s+l];r+=c.width}if(n>1&&("right"===t.styles.halign?a=t.textPos.x+r-t.width:"center"===t.styles.halign&&(a=t.textPos.x+(r-t.width)/2)),t.width=r,t.textPos.x=a,void 0!==o&&o.rowspan>1&&(t.height=t.height*o.rowspan),"middle"===t.styles.valign||"bottom"===t.styles.valign){var d="string"==typeof t.text?t.text.split(/\r\n|\r|\n/g):t.text,h=d.length||1;h>2&&(t.textPos.y-=(2-i)/2*e.row.styles.fontSize*(h-2)/3)}return!0}return!1}function ut(t,e,o){if("function"==typeof o.onAutotableText)o.onAutotableText(o.doc,t,e);else{var r=t.textPos.x,i=t.textPos.y,a={halign:t.styles.halign,valign:t.styles.valign};if(e.length){for(var s=e[0];s.previousSibling;)s=s.previousSibling;for(var l=!1,c=!1;s;){var d=s.innerText||s.textContent||"";d=(d.length&&" "===d[0]?" ":"")+n.trim(d)+(d.length>1&&" "===d[d.length-1]?" ":""),n(s).is("br")&&(r=t.textPos.x,i+=o.doc.internal.getFontSize()),n(s).is("b")?l=!0:n(s).is("i")&&(c=!0),(l||c)&&o.doc.setFontType(l&&c?"bolditalic":l?"bold":"italic");var h=o.doc.getStringUnitWidth(d)*o.doc.internal.getFontSize();if(h){if("linebreak"===t.styles.overflow&&r>t.textPos.x&&r+h>t.textPos.x+t.width){if(".,!%*;:=-".indexOf(d.charAt(0))>=0){var f=d.charAt(0);h=o.doc.getStringUnitWidth(f)*o.doc.internal.getFontSize(),r+h<=t.textPos.x+t.width&&(o.doc.autoTableText(f,r,i,a),d=d.substring(1,d.length)),h=o.doc.getStringUnitWidth(d)*o.doc.internal.getFontSize()}r=t.textPos.x,i+=o.doc.internal.getFontSize()}if("visible"!==t.styles.overflow)for(;d.length&&r+h>t.textPos.x+t.width;)d=d.substring(0,d.length-1),h=o.doc.getStringUnitWidth(d)*o.doc.internal.getFontSize();o.doc.autoTableText(d,r,i,a),r+=h}(l||c)&&(n(s).is("b")?l=!1:n(s).is("i")&&(c=!1),o.doc.setFontType(l||c?l?"bold":"italic":"normal")),s=s.nextSibling}t.textPos.x=r,t.textPos.y=i}else o.doc.autoTableText(t.text,t.textPos.x,t.textPos.y,a)}}function pt(t,e,o){return t.replace(new RegExp(function(t){return t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")}(e),"g"),o)}function mt(t){return("number"==typeof(t=pt(t=pt(t=t||"0",o.numbers.html.thousandsSeparator,""),o.numbers.html.decimalMark,"."))||!1!==jQuery.isNumeric(t))&&t}function gt(t,e,r){var i="";if(null!==t){var a,s=n(t);if(s[0].hasAttribute("data-tableexport-value"))a=(a=s.data("tableexport-value"))?a+"":"";else if(a=s.html(),"function"==typeof o.onCellHtmlData)a=o.onCellHtmlData(s,e,r,a);else if(""!==a){var l=n.parseHTML(a),c=0,d=0;a="",n.each(l,function(){n(this).is("input")?a+=s.find("input").eq(c++).val():n(this).is("select")?a+=s.find("select option:selected").eq(d++).text():void 0===n(this).html()?a+=n(this).text():(void 0===jQuery().bootstrapTable||!0!==n(this).hasClass("filterControl")&&0===n(t).parents(".detail-view").length)&&(a+=n(this).html())})}if(!0===o.htmlContent)i=n.trim(a);else if(a&&""!==a){var h=n(t).data("tableexport-cellformat");if(""!==h){var f=a.replace(/\n/g,"\u2028").replace(/<br\s*[\/]?>/gi,""),u=n("<div/>").html(f).contents(),p=!1;if(f="",n.each(u.text().split("\u2028"),function(t,e){t>0&&(f+=" "),f+=n.trim(e)}),n.each(f.split(""),function(t,e){t>0&&(i+="\n"),i+=n.trim(e).replace(/\u00AD/g,"")}),"json"===o.type||"excel"===o.type&&"xmlss"===o.mso.fileFormat||!1===o.numbers.output)!1!==(p=mt(i))&&(i=Number(p));else if((o.numbers.html.decimalMark!==o.numbers.output.decimalMark||o.numbers.html.thousandsSeparator!==o.numbers.output.thousandsSeparator)&&!1!==(p=mt(i))){var m=(""+p.substr(p<0?1:0)).split(".");1===m.length&&(m[1]="");var g=m[0].length>3?m[0].length%3:0;i=(p<0?"-":"")+(o.numbers.output.thousandsSeparator?(g?m[0].substr(0,g)+o.numbers.output.thousandsSeparator:"")+m[0].substr(g).replace(/(\d{3})(?=\d)/g,"$1"+o.numbers.output.thousandsSeparator):m[0])+(m[1].length?o.numbers.output.decimalMark+m[1]:"")}}else i=a}!0===o.escape&&(i=escape(i)),"function"==typeof o.onCellData&&(i=o.onCellData(s,e,r,i))}return i}function vt(t,e,o){return e+"-"+o.toLowerCase()}function yt(t,e){var o=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.exec(t),n=e;return o&&(n=[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]),n}function bt(t){var e=St(t,"text-align"),o=St(t,"font-weight"),n=St(t,"font-style"),r="";"start"===e&&(e="rtl"===St(t,"direction")?"right":"left"),o>=700&&(r="bold"),"italic"===n&&(r+=n),""===r&&(r="normal");var i={style:{align:e,bcolor:yt(St(t,"background-color"),[255,255,255]),color:yt(St(t,"color"),[0,0,0]),fstyle:r},colspan:wt(t),rowspan:xt(t)};if(null!==t){var a=t.getBoundingClientRect();i.rect={width:a.width,height:a.height}}return i}function wt(t){var e=n(t).data("tableexport-colspan");return void 0===e&&n(t).is("[colspan]")&&(e=n(t).attr("colspan")),parseInt(e)||0}function xt(t){var e=n(t).data("tableexport-rowspan");return void 0===e&&n(t).is("[rowspan]")&&(e=n(t).attr("rowspan")),parseInt(e)||0}function St(t,e){try{return window.getComputedStyle?(e=e.replace(/([a-z])([A-Z])/,vt),window.getComputedStyle(t,null).getPropertyValue(e)):t.currentStyle?t.currentStyle[e]:t.style[e]}catch(t){}return""}function Ct(t,e,o){var n=St(t,e),r=n.match(/\d+/);return null!==r?(r=r[0],function(t,e,o){var n=document.createElement("div");n.style.overflow="hidden",n.style.visibility="hidden",t.appendChild(n),n.style.width=100+o;var r=100/n.offsetWidth;return t.removeChild(n),e*r}(t.parentElement,r,o)):0}function Nt(t){for(var e=new ArrayBuffer(t.length),o=new Uint8Array(e),n=0;n!==t.length;++n)o[n]=255&t.charCodeAt(n);return e}function kt(t,e){e&&(t+=1462);var o=Date.parse(t);return(o-new Date(Date.UTC(1899,11,30)))/864e5}function At(t){var e,o,n,r=0;if(0===t.length)return r;for(e=0,n=t.length;e<n;e++)o=t.charCodeAt(e),r=(r<<5)-r+o,r|=0;return r}function Tt(t,e,o){var n=window.navigator.userAgent;if(!1!==t&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(new Blob([o]),t);else if(!1!==t&&(n.indexOf("MSIE ")>0||n.match(/Trident.*rv\:11\./))){var r=document.createElement("iframe");if(r){document.body.appendChild(r),r.setAttribute("style","display:none"),r.contentDocument.open("txt/plain","replace"),r.contentDocument.write(o),r.contentDocument.close(),r.contentDocument.focus();var i=t.substr(t.lastIndexOf(".")+1);switch(i){case"doc":case"json":case"png":case"pdf":case"xls":case"xlsx":t+=".txt"}r.contentDocument.execCommand("SaveAs",!0,t),document.body.removeChild(r)}}else{var a=document.createElement("a");if(a){var l=null;a.style.display="none",!1!==t?a.download=t:a.target="_blank","object"==typeof o?(window.URL=window.URL||window.webkitURL,l=window.URL.createObjectURL(o),a.href=l):e.toLowerCase().indexOf("base64,")>=0?a.href=e+Ot(o):a.href=e+encodeURIComponent(o),document.body.appendChild(a),document.createEvent?(null===s&&(s=document.createEvent("MouseEvents")),s.initEvent("click",!0,!1),a.dispatchEvent(s)):document.createEventObject?a.fireEvent("onclick"):"function"==typeof a.onclick&&a.onclick(),setTimeout(function(){l&&window.URL.revokeObjectURL(l),document.body.removeChild(a)},100)}}}function Ot(t){var e,o,n,r,i,a,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",d=0;for(t=function(t){if("string"==typeof t){t=t.replace(/\x0d\x0a/g,"\n");for(var e="",o=0;o<t.length;o++){var n=t.charCodeAt(o);n<128?e+=String.fromCharCode(n):n>127&&n<2048?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e}return t}(t);d<t.length;)e=t.charCodeAt(d++),o=t.charCodeAt(d++),n=t.charCodeAt(d++),r=e>>2,i=(3&e)<<4|o>>4,a=(15&o)<<2|n>>6,s=63&n,isNaN(o)?a=s=64:isNaN(n)&&(s=64),c=c+l.charAt(r)+l.charAt(i)+l.charAt(a)+l.charAt(s);return c}return this}},199:function(t,e,o){o(198)}});if("object"==typeof o){var n=["object"==typeof module&&"object"==typeof module.exports?module.exports:null,"undefined"!=typeof window?window:null,t&&t!==window?t:null];for(var r in o)n[0]&&(n[0][r]=o[r]),n[1]&&"__esModule"!==r&&(n[1][r]=o[r]),n[2]&&(n[2][r]=o[r])}}(this);