','請先上傳要處理的圖片','height','2249510IgJDkN','entries','block','onload','9104bCkmBZ','.icoshanchu','generateAsync','data','html','find','length','.filename','3dNMsVe','776664ZNYDaM','
','laydate','image/png','370822sDWbch','load','attr','width','remove','src','createObjectURL','each','337163rwUQlr','parent','catch','then','images','body','.imglist>div','1683mqOtID','msg','.gifaddsetup','file','createElement','all','','1837040EOZTgk','blob','map','','img'];_0x1334=function(){return _0x4a32cb;};return _0x1334();}const _0x382a0d=_0x372e;(function(_0x18de64,_0x59e17d){const _0x44bf61=_0x372e,_0x332348=_0x18de64();while(!![]){try{const _0x478123=-parseInt(_0x44bf61(0xa5))/0x1+parseInt(_0x44bf61(0xd9))/0x2*(parseInt(_0x44bf61(0xd4))/0x3)+parseInt(_0x44bf61(0xc4))/0x4+parseInt(_0x44bf61(0xc8))/0x5*(parseInt(_0x44bf61(0xb9))/0x6)+-parseInt(_0x44bf61(0xd5))/0x7+parseInt(_0x44bf61(0xcc))/0x8*(-parseInt(_0x44bf61(0xac))/0x9)+-parseInt(_0x44bf61(0xb3))/0xa;if(_0x478123===_0x59e17d)break;else _0x332348['push'](_0x332348['shift']());}catch(_0x3fc035){_0x332348['push'](_0x332348['shift']());}}}(_0x1334,0x5b0ea),layui['use']([_0x382a0d(0xc1),'layer'],function(){const _0x2cecb8=_0x382a0d;var _0x178d80=layui[_0x2cecb8(0xc1)],_0x2106ae=layui[_0x2cecb8(0xbe)],_0x420877=layui[_0x2cecb8(0xd7)];_0x178d80['render']({'elem':'.upimgs','accept':_0x2cecb8(0xa9),'auto':![],'exts':'jpg|png|bmp|jpeg|webp','multiple':!![],'choose':function(_0x2b6b8c){const _0x1bce97=_0x2cecb8;_0x2b6b8c[_0x1bce97(0xc0)](function(_0x30b596,_0x9c7b22,_0x53e908){const _0x338fac=_0x1bce97;let _0x164b41=_0x338fac(0xb8);_0x164b41+=_0x338fac(0xb8),_0x164b41+=_0x338fac(0xbb),_0x164b41+='
',_0x164b41+=_0x338fac(0xb6)+_0x9c7b22['name']+_0x338fac(0xb2),_0x164b41+=_0x338fac(0xd6),_0x164b41+='',_0x164b41+=_0x338fac(0xbf),_0x164b41+=_0x338fac(0xbf),$(_0x338fac(0xba))['append'](_0x164b41)['css']('display',_0x338fac(0xca)),$(_0x338fac(0xae))['css'](_0x338fac(0xc2),_0x338fac(0xca));});}});}));async function img_heibai(){const _0x354069=_0x382a0d;let _0x42d7d9={};$(_0x354069(0xab))[_0x354069(0xa4)](function(){const _0x43e35f=_0x354069;let _0x47c18f=$(this)['find'](_0x43e35f(0xd3))[_0x43e35f(0xd0)]();_0x42d7d9[_0x47c18f]=$(this)[_0x43e35f(0xd1)](_0x43e35f(0xb7))[_0x43e35f(0xdb)](_0x43e35f(0xde));});if(_0x42d7d9[_0x354069(0xd2)]<0x1)return layer[_0x354069(0xad)](_0x354069(0xc6)),![];layer[_0x354069(0xda)](0x3);const _0x1499d4=new JSZip();await Promise[_0x354069(0xb1)](Object[_0x354069(0xc9)](_0x42d7d9)[_0x354069(0xb5)](async([_0x48a73b,_0x4f01ba])=>{const _0x391407=_0x354069,_0x13afbc=await convertToGrayscale(_0x4f01ba);_0x1499d4[_0x391407(0xaf)](_0x48a73b,_0x13afbc);}));const _0x48fb71=await _0x1499d4[_0x354069(0xce)]({'type':_0x354069(0xb4)});layer[_0x354069(0xbd)](),saveAs(_0x48fb71,'dow_images.zip');}function convertToGrayscale(_0x1d419e){return new Promise((_0xdad22c,_0x57d5be)=>{const _0x5b1c04=_0x372e;fetch(_0x1d419e)[_0x5b1c04(0xa8)](_0xf23331=>_0xf23331[_0x5b1c04(0xb4)]())[_0x5b1c04(0xa8)](_0xe07cc5=>{const _0x55a94a=_0x5b1c04,_0x361771=new Image();_0x361771[_0x55a94a(0xcb)]=()=>{const _0x410057=_0x55a94a,_0x1ecc96=document[_0x410057(0xb0)]('canvas');_0x1ecc96[_0x410057(0xdc)]=_0x361771['width'],_0x1ecc96['height']=_0x361771[_0x410057(0xc7)];const _0x5c614b=_0x1ecc96['getContext']('2d');_0x5c614b['drawImage'](_0x361771,0x0,0x0);const _0xa6a775=_0x5c614b[_0x410057(0xbc)](0x0,0x0,_0x1ecc96[_0x410057(0xdc)],_0x1ecc96[_0x410057(0xc7)]),_0x461710=_0xa6a775[_0x410057(0xcf)];for(let _0x788878=0x0;_0x788878<_0x461710['length'];_0x788878+=0x4){const _0x304b84=0.299*_0x461710[_0x788878]+0.587*_0x461710[_0x788878+0x1]+0.114*_0x461710[_0x788878+0x2];_0x461710[_0x788878]=_0x461710[_0x788878+0x1]=_0x461710[_0x788878+0x2]=_0x304b84;}_0x5c614b['putImageData'](_0xa6a775,0x0,0x0),_0x1ecc96[_0x410057(0xc3)](_0x2c8c94=>_0xdad22c(_0x2c8c94),_0x410057(0xd8));},_0x361771['src']=URL[_0x55a94a(0xdf)](_0xe07cc5);})[_0x5b1c04(0xa7)](_0x57d5be);});}function _0x372e(_0x1bdb02,_0x43966f){const _0x133460=_0x1334();return _0x372e=function(_0x372e07,_0x3701fc){_0x372e07=_0x372e07-0xa4;let _0xeec3fe=_0x133460[_0x372e07];return _0xeec3fe;},_0x372e(_0x1bdb02,_0x43966f);}$(_0x382a0d(0xaa))['on']('click',_0x382a0d(0xcd),function(){const _0x377261=_0x382a0d;$(this)[_0x377261(0xa6)]()[_0x377261(0xa6)]()[_0x377261(0xa6)]()[_0x377261(0xa6)]()[_0x377261(0xdd)]();});