!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,n){varo=newXMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){a(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.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){varn=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}varu=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=f.saveAs||("object"!=typeofwindow||window!==f?function(){}:"download"inHTMLAnchorElement.prototype&&!u?function(e,t,n){varo=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?i(a.href)?d(e,t,n):r(a,a.target="_blank"):r(a)):(a.href=o.createObjectURL(e),setTimeout(function(){o.revokeObjectURL(a.href)},4e4),setTimeout(function(){r(a)},0))}:"msSaveOrOpenBlob"innavigator?function(e,t,n){if(t=t||e.name||"download","string"==typeofe)if(i(e))d(e,t,n);else{varo=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){r(o)})}elsenavigator.msSaveOrOpenBlob(function(e,t){returnvoid0===t?t={autoBom:!1}:"object"!=typeoft&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.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}(e,n),t)}:function(e,t,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeofe)returnd(e,t,n);vara="application/octet-stream"===e.type,i=/constructor/i.test(f.HTMLElement)||f.safari,r=/CriOS\/[\d]+/.test(navigator.userAgent);if((r||a&&i||u)&&"undefined"!=typeofFileReader){varl=newFileReader;l.onloadend=function(){vare=l.result;e=r?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},l.readAsDataURL(e)}else{vars=f.URL||f.webkitURL,c=s.createObjectURL(e);o?o.location=c:location.href=c,o=null,setTimeout(function(){s.revokeObjectURL(c)},4e4)}});f.saveAs=a.saveAs=a,"undefined"!=typeofmodule&&(module.exports=a)});