Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),function(e,t){"function"==typeofdefine&&define.amd?define([],t):"object"==typeofmodule&&"undefined"!=typeofexports?module.exports=t():e.Papa=t()}(this,function(){"use strict";vars,e,f="undefined"!=typeofself?self:"undefined"!=typeofwindow?window:void0!==f?f:{},n=!f.document&&!!f.postMessage,o=n&&/(\?|&)papaworker(=|&|$)/.test(f.location.search),a=!1,h={},u=0,k={parse:function(e,t){varr=(t=t||{}).dynamicTyping||!1;M(r)&&(t.dynamicTypingFunction=r,r={});if(t.dynamicTyping=r,t.transform=!!M(t.transform)&&t.transform,t.worker&&k.WORKERS_SUPPORTED){vari=function(){if(!k.WORKERS_SUPPORTED)return!1;if(!a&&null===k.SCRIPT_PATH)thrownewError("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");vare=k.SCRIPT_PATH||s;e+=(-1!==e.indexOf("?")?"&":"?")+"papaworker";vart=newf.Worker(e);returnt.onmessage=m,t.id=u++,h[t.id]=t}();returni.userStep=t.step,i.userChunk=t.chunk,i.userComplete=t.complete,i.userError=t.error,t.step=M(t.step),t.chunk=M(t.chunk),t.complete=M(t.complete),t.error=M(t.error),deletet.worker,voidi.postMessage({input:e,config:t,workerId:i.id})}varn=null;k.NODE_STREAM_INPUT,"string"==typeofe?n=t.download?newc(t):newg(t):!0===e.readable&&M(e.read)&&M(e.on)?n=new_(t):(f.File&&einstanceofFile||einstanceofObject)&&(n=newp(t));returnn.stream(e)},unparse:function(e,t){vari=!1,_=!0,m=",",y="\r\n",n='"',r=!1;!function(){if("object"!=typeoft)return;"string"!=typeoft.delimiter||k.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(m=t.delimiter);("boolean"==typeoft.quotes||Array.isArray(t.quotes))&&(i=t.quotes);"boolean"!=typeoft.skipEmptyLines&&"string"!=typeoft.skipEmptyLines||(r=t.skipEmptyLines);"string"==typeoft.newline&&(y=t.newline);"string"==typeoft.quoteChar&&(n=t.quoteChar);"boolean"==typeoft.header&&(_=t.header)}();vars=newRegExp(n,"g");"string"==typeofe&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))returno(null,e,r);if("object"==typeofe[0])returno(a(e[0]),e,r)}elseif("object"==typeofe)return"string"==typeofe.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:a(e.data[0])),Array.isArray(e.data[0])||"object"==typeofe.data[0]||(e.data=[e.data])),o(e.fields||[],e.data||[],r);throw"exception: Unable to serialize unrecognized input";functiona(e){if("object"!=typeofe)return[];vart=[];for(varrine)t.push(r);returnt}functiono(e,t,r){vari="";"string"==typeofe&&(e=JSON.parse(e)),"string"==typeoft&&(t=JSON.parse(t));varn=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&_){for(vara=0;a<e.length;a++)0<a&&(i+=m),i+=v(e[a],a);0<t.length&&(i+=y)}for(varo=0;o<t.length;o++){varh=n?e.length:t[o].length,u=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(r&&!n&&(u="greedy"===r?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===r&&n){for(vard=[],l=0;l<h;l++){varc=s?e[l]:l;d.push(t[o][c])}u=""===d.join("").trim()}if(!u){for(varp=0;p<h;p++){0<p&&!f&&(i+=m);varg=n&&s?e[p]:p;i+=v(t[o][g],p)}o<t.length-1&&(!r||0<h&&!f)&&(i+=y)}}returni}functionv(e,t){if(null==e)return"";if(e.constructor===Date)returnJSON.stringify(e).slice(1,25);e=e.toString().replace(s,n+n);varr="boolean"==typeofi&&i||Array.isArray(i)&&i[t]||function(e,t){for(varr=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1}(e,k.BAD_DELIMITERS)||-1<e.indexOf(m)||" "===e.charAt(0)||" "===e.charAt(e.length-1);returnr?n+e+n:e}}};if(k.RECORD_SEP=String.fromCharCode(30),k.UNIT_SEP=String.fromCharCode(31),k.BYTE_ORDER_MARK="\ufeff",k.BAD_DELIMITERS=["\r","\n",'"',k.BYTE_ORDER_MARK],k.WORKERS_SUPPORTED=!n&&!!f.Worker,k.SCRIPT_PATH=null,k.NODE_STREAM_INPUT=1,k.LocalChunkSize=10485760,k.RemoteChunkSize=5242880,k.DefaultDelimiter=",",k.Parser=b,k.ParserHandle=r,k.NetworkStreamer=c,k.FileStreamer=p,k.StringStreamer=g,k.ReadableStreamStreamer=_,f.