(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a32e7"],{"00a2":function(e,t,n){"use strict";n.r(t),n.d(t,"downloadImage",(function(){return a}));var a=function(e,t){var n=new Image;n.setAttribute("crossOrigin","anonymous"),n.onload=function(){var e=document.createElement("canvas");e.width=n.width,e.height=n.height;var a=e.getContext("2d");a.drawImage(n,0,0,n.width,n.height);var o=e.toDataURL("image/png"),i=document.createElement("a"),c=new MouseEvent("click");i.download=t||"photo",i.href=o,i.dispatchEvent(c)},n.src=e}}}]);