!function(e,t){if("function"==typeofdefine&&define.amd)define([],t);elseif("undefined"!=typeofexports)t();else{t(),e.FileSaver={}}}(this,function(){"use strict";varf="object"==typeofwindow&&window.window===window?window:"object"==typeofself&&self.self===self?self:"object"==typeofglobal&&global.global===global?global:void0;functiond(e,t,o){varn=newXMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){a(n.response,t,o)},n.onerror=function(){console.error("could not download file")},n.send()}functionr(e){vart=newXMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return200<=t.status&&t.status<=299}functionl(t){try{t.dispatchEvent(newMouseEvent("click"))}catch(e){varo=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(o)}}vara=f.saveAs||("object"!=typeofwindow||window!==f?function(){}:"download"inHTMLAnchorElement.prototype?function(e,t,o){varn=f.URL||f.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener","string"==typeofe?(a.href=e,a.origin!==location.origin?r(a.href)?d(e,t,o):l(a,a.target="_blank"):l(a)):(a.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(a.href)},4e4),setTimeout(function(){l(a)},0))}:"msSaveOrOpenBlob"innavigator?function(e,t,o){if(t=t||e.name||"download","string"==typeofe)if(r(e))d(e,t,o);else{varn=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){l(n)})}elsenavigator.msSaveOrOpenBlob((a=e,void0===(i=o)?i={autoBom:!1}:"object"!=typeofi&&(console.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?newBlob([String.fromCharCode(65279),a],{type:a.type}):a),t);vara,i}:function(e,t,o,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeofe)returnd(e,t,o);vara="application/octet-stream"===e.type,i=/constructor/i.test(f.HTMLElement)||f.safari,r=/CriOS\/[\d]+/.test(navigator.userAgent);if((r||a&&i)&&"object"==typeofFileReader){varl=newFileReader;l.onloadend=function(){vare=l.result;e=r?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=e:location=e,n=null},l.readAsDataURL(e)}else{varc=f.URL||f.webkitURL,s=c.createObjectURL(e);n?n.location=s:location.href=s,n=null,setTimeout(function(){c.revokeObjectURL(s)},4e4)}});f.saveAs=a.saveAs=a,"undefined"!=typeofmodule&&(module.exports=a)});