!function(e,t){"function"==typeofdefine&&define.amd?define([],t):"undefined"!=typeofexports?t():(t(),e.FileSaver={})}(this,function(){"use strict";varl="object"==typeofwindow&&window.window===window?window:"object"==typeofself&&self.self===self?self:"object"==typeofglobal&&global.global===global?global:void0;functions(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()}functioni(e){vart=newXMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return200<=t.status&&t.status<=299}functionr(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)}}vard=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=l.saveAs||("object"!=typeofwindow||window!==l?function(){}:"download"inHTMLAnchorElement.prototype&&!d?function(e,t,o){varn=l.URL||l.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?i(a.href)?s(e,t,o):r(a,a.target="_blank"):r(a)):(a.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(a.href)},4e4),setTimeout(function(){r(a)},0))}:"msSaveOrOpenBlob"innavigator?function(e,t,o){varn;t=t||e.name||"download","string"==typeofe?i(e)?s(e,t,o):((n=document.createElement("a")).href=e,n.target="_blank",setTimeout(function(){r(n)})):navigator.msSaveOrOpenBlob((e=e,void0===(o=o)?o={autoBom:!1}:"object"!=typeofo&&(console.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?newBlob([String.fromCharCode(65279),e],{type:e.type}):e),t)}:function(e,t,o,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeofe)returns(e,t,o);vara,i,r,t="application/octet-stream"===e.type,o=/constructor/i.test(l.HTMLElement)||l.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);(c||t&&o||d)&&"undefined"!=typeofFileReader?((a=newFileReader).onloadend=function(){vare=a.result,e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;");n?n.location.href=e:location=e,n=null},a.readAsDataURL(e)):(i=l.URL||l.webkitURL,r=i.createObjectURL(e),n?n.location=r:location.href=r,n=null,setTimeout(function(){i.revokeObjectURL(r)},4e4))});l.saveAs=a.saveAs=a,"undefined"!=typeofmodule&&(module.exports=a)});