text: (function(a,b){if("function"==typeof define&&define.amd)define([],b);else if("undefined"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){"use strict";(function(a,b){if("function"==typeof define&&define.amd)define([],b);else if("undefined"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(void 0,function(){function a(a,b){return"undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function b(a,b,c){var d=new XMLHttpRequest;d.open("GET",a),d.responseType="blob",d.onload=function(){f(d.response,b,c)},d.onerror=function(){console.error("could not download file")},d.send()}function c(a,b,c){var d=new XMLHttpRequest;d.open("GET",a,!0),d.onload=function(){var a=200<=d.status&&299>=d.status;a?b():c()};try{d.send()}catch(a){}return 200<=d.status&&299>=d.status}function d(a){try{a.dispatchEvent(new MouseEvent("click"))}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var e="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,f=e.saveAs||("object"!=typeof window||window!==e?function(){}:"download"in HTMLAnchorElement.prototype?function(f,g,h){var i=e.URL||e.webkitURL,j=document.createElement("a");g=g||f.name||"download",j.download=g,j.rel="noopener","string"==typeof f?(j.href=f,j.origin===location.origin?d(j):c(j.href,function(){b(f,g,h)},function(){d(j,j.target="_blank")})):(j.href=i.createObjectURL(f),setTimeout(function(){i.revokeObjectURL(j.href)},4e4),setTimeout(function(){d(j)},0))}:"msSaveOrOpenBlob"in navigator?function(e,f,g){f=f||e.name||"download","string"==typeof e?c(e,function(){b(e,f,g)},function(){var b=document.createElement("a");b.href=e,b.target="_blank",setTimeout(function(){d(b)})}):navigator.msSaveOrOpenBlob(a(e,g),f)}:function(a,c,d,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),"string"==typeof a)return b(a,c,d);var g="application/octet-stream"===a.type,h=/constructor/i.test(e.HTMLElement)||e.safari,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||g&&h)&&"undefined"!=typeof FileReader){var j=new FileReader;j.onloadend=function(){var a=j.result;a=i?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=a:location=a,f=null},j.readAsDataURL(a)}else{var k=e.URL||e.webkitURL,l=k.createObjectURL(a);f?f.location=l:location.href=l,f=null,setTimeout(function(){k.revokeObjectURL(l)},4e4)}});e.saveAs=f.saveAs=f,"undefined"!=typeof module&&(module.exports=f)})});
  
  //# sourceMappingURL=FileSaver.min.js.map