You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4 lines
118 KiB
4 lines
118 KiB
4 months ago
|
/* WebUploader 1.0.0 */!function(a,b){var c,d={},e=function(a,b){var c,d,e;if("string"==typeof a)return h(a);for(c=[],d=a.length,e=0;d>e;e++)c.push(h(a[e]));return b.apply(null,c)},f=function(a,b,c){2===arguments.length&&(c=b,b=null),e(b||[],function(){g(a,c,arguments)})},g=function(a,b,c){var f,g={exports:b};"function"==typeof b&&(c.length||(c=[e,g.exports,g]),f=b.apply(null,c),void 0!==f&&(g.exports=f)),d[a]=g.exports},h=function(b){var c=d[b]||a[b];if(!c)throw new Error("`"+b+"` is undefined");return c},i=function(a){var b,c,e,f,g,h;h=function(a){return a&&a.charAt(0).toUpperCase()+a.substr(1)};for(b in d)if(c=a,d.hasOwnProperty(b)){for(e=b.split("/"),g=h(e.pop());f=h(e.shift());)c[f]=c[f]||{},c=c[f];c[g]=d[b]}return a},j=function(c){return a.__dollar=c,i(b(a,f,e))};"object"==typeof module&&"object"==typeof module.exports?module.exports=j():"function"==typeof define&&define.amd?define(["jquery"],j):(c=a.WebUploader,a.WebUploader=j(),a.WebUploader.noConflict=function(){a.WebUploader=c})}(window,function(a,b,c){return b("dollar-third",[],function(){var b=a.require,c=a.__dollar||a.jQuery||a.Zepto||b("jquery")||b("zepto");if(!c)throw new Error("jQuery or Zepto not found!");return c}),b("dollar",["dollar-third"],function(a){return a}),b("promise-third",["dollar"],function(a){return{Deferred:a.Deferred,when:a.when,isPromise:function(a){return a&&"function"==typeof a.then}}}),b("promise",["promise-third"],function(a){return a}),b("base",["dollar","promise"],function(b,c){function d(a){return function(){return h.apply(a,arguments)}}function e(a,b){return function(){return a.apply(b,arguments)}}function f(a){var b;return Object.create?Object.create(a):(b=function(){},b.prototype=a,new b)}var g=function(){},h=Function.call;return{version:"1.0.0",$:b,Deferred:c.Deferred,isPromise:c.isPromise,when:c.when,browser:function(a){var b={},c=a.match(/WebKit\/([\d.]+)/),d=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),e=a.match(/MSIE\s([\d\.]+)/)||a.match(/(?:trident)(?:.*rv:([\w.]+))?/i),f=a.match(/Firefox\/([\d.]+)/),g=a.match(/Safari\/([\d.]+)/),h=a.match(/OPR\/([\d.]+)/);return c&&(b.webkit=parseFloat(c[1])),d&&(b.chrome=parseFloat(d[1])),e&&(b.ie=parseFloat(e[1])),f&&(b.firefox=parseFloat(f[1])),g&&(b.safari=parseFloat(g[1])),h&&(b.opera=parseFloat(h[1])),b}(navigator.userAgent),os:function(a){var b={},c=a.match(/(?:Android);?[\s\/]+([\d.]+)?/),d=a.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return c&&(b.android=parseFloat(c[1])),d&&(b.ios=parseFloat(d[1].replace(/_/g,"."))),b}(navigator.userAgent),inherits:function(a,c,d){var e;return"function"==typeof c?(e=c,c=null):e=c&&c.hasOwnProperty("constructor")?c.constructor:function(){return a.apply(this,arguments)},b.extend(!0,e,a,d||{}),e.__super__=a.prototype,e.prototype=f(a.prototype),c&&b.extend(!0,e.prototype,c),e},noop:g,bindFn:e,log:function(){return a.console?e(console.log,console):g}(),nextTick:function(){return function(a){setTimeout(a,1)}}(),slice:d([].slice),guid:function(){var a=0;return function(b){for(var c=(+new Date).toString(32),d=0;5>d;d++)c+=Math.floor(65535*Math.random()).toString(32);return(b||"wu_")+c+(a++).toString(32)}}(),formatSize:function(a,b,c){var d;for(c=c||["B","K","M","G","TB"];(d=c.shift())&&a>1024;)a/=1024;return("B"===d?a:a.toFixed(b||2))+d}}}),b("mediator",["base"],function(a){function b(a,b,c,d){return f.grep(a,function(a){return!(!a||b&&a.e!==b||c&&a.cb!==c&&a.cb._cb!==c||d&&a.ctx!==d)})}function c(a,b,c){f.each((a||"").split(h),function(a,d){c(d,b)})}function d(a,b){for(var c,d=!1,e=-1,f=a.length;++e<f;)if(c=a[e],c.cb.apply(c.ctx2,b)===!1){d=!0;break}return!d}var e,f=a.$,g=[].slice,h=/\s+/;return e={on:function(a,b,d){var e,f=this;return b?(e=this._events||(this._events=[]),c(a,b,function(a,b){var c={e:a};c.cb=b,c.ctx=d,c.ctx2=d||f,c.id=e.length,e.push(c)}),this):this},once:function(a,b,d){var e=this;return b?(c(a,b,function(a,b){var c=function(){return e.off(a,c),b.apply(d||e,arguments)};c._cb=b,e.on(a,c,d)}),e):e},off:function(a,d,e){var g=this._events;return g?a||d||e?(c(a,d,function(a,c){f.each(b(g,a,c,e),function(){delete g[this.id]}
|
||
|
}}return e},sizeUTF8:function(a){for(var b=a.length,c=0,d=0;b>d;d++){var e=a.charCodeAt(d);if(0==(4294967168&e))c++;else if(0==(4294965248&e))c+=2;else if(0==(4294901760&e))c+=3;else{if(0!=(4292870144&e))throw"e";c+=4}}return c}},d.F={},d.F.deflateRaw=function(a,b,c,e){var f=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][e],g=d.F.U,h=d.F._goodIndex;d.F._hash;var i=d.F._putsE,j=0,k=c<<3,l=0,m=a.length;if(0==e){for(;m>j;)i(b,k,j+(y=Math.min(65535,m-j))==m?1:0),k=d.F._copyExact(a,j,y,b,k+8),j+=y;return k>>>3}var n=g.lits,o=g.strt,p=g.prev,q=0,r=0,s=0,t=0,u=0,v=0;for(m>2&&(o[v=d.F._hash(a,0)]=0),j=0;m>j;j++){if(u=v,m-2>j+1){v=d.F._hash(a,j+1);var w=32767&j+1;p[w]=o[v],o[v]=w}if(j>=l){(q>14e3||r>26697)&&m-j>100&&(j>l&&(n[q]=j-l,q+=2,l=j),k=d.F._writeBlock(j==m-1||l==m?1:0,n,q,t,a,s,j-s,b,k),q=r=t=0,s=j);var x=0;m-2>j&&(x=d.F._bestMatch(a,j,p,u,Math.min(f[2],m-j),f[3]));var y=x>>>16,z=65535&x;if(0!=x){z=65535&x;var A=h(y=x>>>16,g.of0);g.lhst[257+A]++;var B=h(z,g.df0);g.dhst[B]++,t+=g.exb[A]+g.dxb[B],n[q]=y<<23|j-l,n[q+1]=z<<16|A<<8|B,q+=2,l=j+y}else g.lhst[a[j]]++;r++}}for(s==j&&0!=a.length||(j>l&&(n[q]=j-l,q+=2,l=j),k=d.F._writeBlock(1,n,q,t,a,s,j-s,b,k),q=0,r=0,q=r=t=0,s=j);0!=(7&k);)k++;return k>>>3},d.F._bestMatch=function(a,b,c,e,f,g){var h=32767&b,i=c[h],j=32767&h-i+32768;if(i==h||e!=d.F._hash(a,b-j))return 0;for(var k=0,l=0,m=Math.min(32767,b);m>=j&&0!=--g&&i!=h;){if(0==k||a[b+k]==a[b+k-j]){var n=d.F._howLong(a,b,j);if(n>k){if(l=j,(k=n)>=f)break;n>j+2&&(n=j+2);for(var o=0,p=0;n-2>p;p++){var q=32767&b-j+p+32768,r=32767&q-c[q]+32768;r>o&&(o=r,i=q)}}}j+=32767&(h=i)-(i=c[h])+32768}return k<<16|l},d.F._howLong=function(a,b,c){if(a[b]!=a[b-c]||a[b+1]!=a[b+1-c]||a[b+2]!=a[b+2-c])return 0;var d=b,e=Math.min(a.length,b+258);for(b+=3;e>b&&a[b]==a[b-c];)b++;return b-d},d.F._hash=function(a,b){return 65535&(a[b]<<8|a[b+1])+(a[b+2]<<4)},d.saved=0,d.F._writeBlock=function(a,b,c,e,f,g,h,i,j){var k,l,m,n,o,p,q,r,s,t=d.F.U,u=d.F._putsF,v=d.F._putsE;t.lhst[256]++,l=(k=d.F.getTrees())[0],m=k[1],n=k[2],o=k[3],p=k[4],q=k[5],r=k[6],s=k[7];var w=32+(0==(7&j+3)?0:8-(7&j+3))+(h<<3),x=e+d.F.contSize(t.fltree,t.lhst)+d.F.contSize(t.fdtree,t.dhst),y=e+d.F.contSize(t.ltree,t.lhst)+d.F.contSize(t.dtree,t.dhst);y+=14+3*q+d.F.contSize(t.itree,t.ihst)+(2*t.ihst[16]+3*t.ihst[17]+7*t.ihst[18]);for(var z=0;286>z;z++)t.lhst[z]=0;for(z=0;30>z;z++)t.dhst[z]=0;for(z=0;19>z;z++)t.ihst[z]=0;var A=x>w&&y>w?0:y>x?1:2;if(u(i,j,a),u(i,j+1,A),j+=3,0==A){for(;0!=(7&j);)j++;j=d.F._copyExact(f,g,h,i,j)}else{var B,C;if(1==A&&(B=t.fltree,C=t.fdtree),2==A){d.F.makeCodes(t.ltree,l),d.F.revCodes(t.ltree,l),d.F.makeCodes(t.dtree,m),d.F.revCodes(t.dtree,m),d.F.makeCodes(t.itree,n),d.F.revCodes(t.itree,n),B=t.ltree,C=t.dtree,v(i,j,o-257),v(i,j+=5,p-1),v(i,j+=5,q-4),j+=4;for(var D=0;q>D;D++)v(i,j+3*D,t.itree[1+(t.ordr[D]<<1)]);j+=3*q,j=d.F._codeTiny(r,t.itree,i,j),j=d.F._codeTiny(s,t.itree,i,j)}for(var E=g,F=0;c>F;F+=2){for(var G=b[F],H=G>>>23,I=E+(8388607&G);I>E;)j=d.F._writeLit(f[E++],B,i,j);if(0!=H){var J=b[F+1],K=J>>16,L=255&J>>8,M=255&J;v(i,j=d.F._writeLit(257+L,B,i,j),H-t.of0[L]),j+=t.exb[L],u(i,j=d.F._writeLit(M,C,i,j),K-t.df0[M]),j+=t.dxb[M],E+=H}}j=d.F._writeLit(256,B,i,j)}return j},d.F._copyExact=function(a,b,c,d,e){var f=e>>>3;return d[f]=c,d[f+1]=c>>>8,d[f+2]=255-d[f],d[f+3]=255-d[f+1],f+=4,d.set(new Uint8Array(a.buffer,b,c),f),e+(c+4<<3)},d.F.getTrees=function(){for(var a=d.F.U,b=d.F._hufTree(a.lhst,a.ltree,15),c=d.F._hufTree(a.dhst,a.dtree,15),e=[],f=d.F._lenCodes(a.ltree,e),g=[],h=d.F._lenCodes(a.dtree,g),i=0;i<e.length;i+=2)a.ihst[e[i]]++;for(i=0;i<g.length;i+=2)a.ihst[g[i]]++;for(var j=d.F._hufTree(a.ihst,a.itree,7),k=19;k>4&&0==a.itree[1+(a.ordr[k-1]<<1)];)k--;return[b,c,j,f,h,k,e,g]},d.F.getSecond=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(a[c+1]);return b},d.F.nonZero=function(a){for(var b="",c=0;c<a.length;c+=2)0!=a[c+1]&&(b+=(c>>1)+",");return b},d.F.contSize=function(a,b){for(var c=0,d=0;d<b.length;d++)c+=b[d]*a[1+(d<<1)];return c},d.F._
|
||
|
if(j.i0>=k||j.i1<=k)j.est.L=0;else{var l={i0:j.i0,i1:k,bst:null,est:null,tdst:0,left:null,right:null};l.bst=r(a,l.i0,l.i1),l.est=s(l.bst);var m={i0:k,i1:j.i1,bst:null,est:null,tdst:0,left:null,right:null};for(m.bst={R:[],m:[],N:j.bst.N-l.bst.N},i=0;16>i;i++)m.bst.R[i]=j.bst.R[i]-l.bst.R[i];for(i=0;4>i;i++)m.bst.m[i]=j.bst.m[i]-l.bst.m[i];m.est=s(m.bst),j.left=l,j.right=m,f[h]=l,f.push(m)}}for(f.sort(function(a,b){return b.bst.N-a.bst.N}),i=0;i<f.length;i++)f[i].ind=i;return[e,f]}function n(a,b,c,d,e){if(null==a.left)return a.tdst=function(a,b,c,d,e){var f=b-a[0],g=c-a[1],h=d-a[2],i=e-a[3];return f*f+g*g+h*h+i*i}(a.est.q,b,c,d,e),a;var f=o(a.est,b,c,d,e),g=a.left,h=a.right;f>0&&(g=a.right,h=a.left);var i=n(g,b,c,d,e);if(i.tdst<=f*f)return i;var j=n(h,b,c,d,e);return j.tdst<i.tdst?j:i}function o(a,b,c,d,e){var f=a.e;return f[0]*b+f[1]*c+f[2]*d+f[3]*e-a.eMq}function p(a,b,c,d,e,f){for(d-=4;d>c;){for(;q(a,c,e)<=f;)c+=4;for(;q(a,d,e)>f;)d-=4;if(c>=d)break;var g=b[c>>2];b[c>>2]=b[d>>2],b[d>>2]=g,c+=4,d-=4}for(;q(a,c,e)>f;)c-=4;return c+4}function q(a,b,c){return a[b]*c[0]+a[b+1]*c[1]+a[b+2]*c[2]+a[b+3]*c[3]}function r(a,b,c){for(var d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=[0,0,0,0],f=c-b>>2,g=b;c>g;g+=4){var h=a[g]*(1/255),i=a[g+1]*(1/255),j=a[g+2]*(1/255),k=a[g+3]*(1/255);e[0]+=h,e[1]+=i,e[2]+=j,e[3]+=k,d[0]+=h*h,d[1]+=h*i,d[2]+=h*j,d[3]+=h*k,d[5]+=i*i,d[6]+=i*j,d[7]+=i*k,d[10]+=j*j,d[11]+=j*k,d[15]+=k*k}return d[4]=d[1],d[8]=d[2],d[9]=d[6],d[12]=d[3],d[13]=d[7],d[14]=d[11],{R:d,m:e,N:f}}function s(a){var b=a.R,c=a.m,d=a.N,e=c[0],f=c[1],g=c[2],h=c[3],i=0==d?0:1/d,j=[b[0]-e*e*i,b[1]-e*f*i,b[2]-e*g*i,b[3]-e*h*i,b[4]-f*e*i,b[5]-f*f*i,b[6]-f*g*i,b[7]-f*h*i,b[8]-g*e*i,b[9]-g*f*i,b[10]-g*g*i,b[11]-g*h*i,b[12]-h*e*i,b[13]-h*f*i,b[14]-h*g*i,b[15]-h*h*i],k=j,l=x,m=[Math.random(),Math.random(),Math.random(),Math.random()],n=0,o=0;if(0!=d)for(var p=0;16>p&&(m=l.multVec(k,m),o=Math.sqrt(l.dot(m,m)),m=l.sml(1/o,m),!(0!=p&&Math.abs(o-n)<1e-9));p++)n=o;var q=[e*i,f*i,g*i,h*i];return{Cov:j,q:q,e:m,L:n,eMq255:l.dot(l.sml(255,q),m),eMq:l.dot(m,q),rgba:(Math.round(255*q[3])<<24|Math.round(255*q[2])<<16|Math.round(255*q[1])<<8|Math.round(255*q[0])<<0)>>>0}}var t=C._copyTile,u=C._bin,v=C._paeth,w={table:function(){for(var a=new Uint32Array(256),b=0;256>b;b++){for(var c=b,d=0;8>d;d++)1&c?c=3988292384^c>>>1:c>>>=1;a[b]=c}return a}(),update:function(a,b,c,d){for(var e=0;d>e;e++)a=w.table[255&(a^b[c+e])]^a>>>8;return a},crc:function(a,b,c){return 4294967295^w.update(4294967295,a,b,c)}},x={multVec:function(a,b){return[a[0]*b[0]+a[1]*b[1]+a[2]*b[2]+a[3]*b[3],a[4]*b[0]+a[5]*b[1]+a[6]*b[2]+a[7]*b[3],a[8]*b[0]+a[9]*b[1]+a[10]*b[2]+a[11]*b[3],a[12]*b[0]+a[13]*b[1]+a[14]*b[2]+a[15]*b[3]]},dot:function(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]+a[3]*b[3]},sml:function(a,b){return[a*b[0],a*b[1],a*b[2],a*b[3]]}};C.encode=function(a,b,c,d,h,i,j){null==d&&(d=0),null==j&&(j=!1);var k=g(a,b,c,d,[!1,!1,!1,0,j,!1]);return f(k,-1),e(k,b,c,h,i)},C.encodeLL=function(a,b,c,d,g,h,i,j){for(var k={ctype:0+(1==d?0:2)+(0==g?0:4),depth:h,frames:[]},l=(d+g)*h,m=l*b,n=0;n<a.length;n++)k.frames.push({rect:{x:0,y:0,width:b,height:c},img:new Uint8Array(a[n]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(m/8)});return f(k,0,!0),e(k,b,c,i,j)},C.encode.compress=g,C.encode.dither=d,C.quantize=l,C.quantize.getKDtree=m,C.quantize.getNearest=n}();var D,E={toArrayBuffer:function(a,b){function c(a){s.setUint16(w,a,!0),w+=2}function d(a){s.setUint32(w,a,!0),w+=4}function e(a){w+=a}var f,g,h,i,j=a.width,k=a.height,l=j<<2,m=a.getContext("2d").getImageData(0,0,j,k),n=new Uint32Array(m.data.buffer),o=(32*j+31)/32<<2,p=o*k,q=122+p,r=new ArrayBuffer(q),s=new DataView(r),t=1<<20,u=t,v=0,w=0,x=0;c(19778),d(q),e(4),d(122),d(108),d(j),d(-k>>>0),c(1),c(32),d(3),d(p),d(2835),d(2835),e(8),d(16711680),d(65280),d(255),d(4278190080),d(1466527264),function y(){for(;k>v&&u>0;){for(i=122+v*o,f=0;l>f;)u--,g=n[x++],h=g>>>24,s.setUint32(i+f,g<<8|h),f+=4;v++}x<n.length?(u=t,setTimeout(y,E._dly)):b(r)}()},toBlob:function(a,b){this.toArrayBuffer(a,function(a){b(new c([a],{type:"image/bmp"}))})},_dly:9},F={CHROME
|
||
|
return b={parsers:{65505:[]},maxMetaDataSize:262144,parse:function(a,b){var c=this,d=new FileReader;d.onload=function(){b(!1,c._parse(this.result)),d=d.onload=d.onerror=null},d.onerror=function(a){b(a.message),d=d.onload=d.onerror=null},a=a.slice(0,c.maxMetaDataSize),d.readAsArrayBuffer(a.getSource())},_parse:function(a,c){if(!(a.byteLength<6)){var d,e,f,g,h=new DataView(a),i=2,j=h.byteLength-4,k=i,l={};if(65496===h.getUint16(0)){for(;j>i&&(d=h.getUint16(i),d>=65504&&65519>=d||65534===d)&&(e=h.getUint16(i+2)+2,!(i+e>h.byteLength));){if(f=b.parsers[d],!c&&f)for(g=0;g<f.length;g+=1)f[g].call(b,h,i,e,l);i+=e,k=i}k>6&&(l.imageHead=a.slice?a.slice(2,k):new Uint8Array(a).subarray(2,k))}return l}},updateImageHead:function(a,b){var c,d,e,f=this._parse(a,!0);return e=2,f.imageHead&&(e=2+f.imageHead.byteLength),d=a.slice?a.slice(e):new Uint8Array(a).subarray(e),c=new Uint8Array(b.byteLength+2+d.byteLength),c[0]=255,c[1]=216,c.set(new Uint8Array(b),2),c.set(new Uint8Array(d),b.byteLength+2),c.buffer}},a.parseMeta=function(){return b.parse.apply(b,arguments)},a.updateImageHead=function(){return b.updateImageHead.apply(b,arguments)},b}),b("runtime/html5/imagemeta/exif",["base","runtime/html5/imagemeta"],function(a,b){var c={};return c.ExifMap=function(){return this},c.ExifMap.prototype.map={Orientation:274},c.ExifMap.prototype.get=function(a){return this[a]||this[this.map[a]]},c.exifTagTypes={1:{getValue:function(a,b){return a.getUint8(b)},size:1},2:{getValue:function(a,b){return String.fromCharCode(a.getUint8(b))},size:1,ascii:!0},3:{getValue:function(a,b,c){return a.getUint16(b,c)},size:2},4:{getValue:function(a,b,c){return a.getUint32(b,c)},size:4},5:{getValue:function(a,b,c){return a.getUint32(b,c)/a.getUint32(b+4,c)},size:8},9:{getValue:function(a,b,c){return a.getInt32(b,c)},size:4},10:{getValue:function(a,b,c){return a.getInt32(b,c)/a.getInt32(b+4,c)},size:8}},c.exifTagTypes[7]=c.exifTagTypes[1],c.getExifValue=function(b,d,e,f,g,h){var i,j,k,l,m,n,o=c.exifTagTypes[f];if(!o)return a.log("Invalid Exif data: Invalid tag type."),void 0;if(i=o.size*g,j=i>4?d+b.getUint32(e+8,h):e+8,j+i>b.byteLength)return a.log("Invalid Exif data: Invalid data offset."),void 0;if(1===g)return o.getValue(b,j,h);for(k=[],l=0;g>l;l+=1)k[l]=o.getValue(b,j+l*o.size,h);if(o.ascii){for(m="",l=0;l<k.length&&(n=k[l],"\0"!==n);l+=1)m+=n;return m}return k},c.parseExifTag=function(a,b,d,e,f){var g=a.getUint16(d,e);f.exif[g]=c.getExifValue(a,b,d,a.getUint16(d+2,e),a.getUint32(d+4,e),e)},c.parseExifTags=function(b,c,d,e,f){var g,h,i;if(d+6>b.byteLength)return a.log("Invalid Exif data: Invalid directory offset."),void 0;if(g=b.getUint16(d,e),h=d+2+12*g,h+4>b.byteLength)return a.log("Invalid Exif data: Invalid directory size."),void 0;for(i=0;g>i;i+=1)this.parseExifTag(b,c,d+2+12*i,e,f);return b.getUint32(h,e)},c.parseExifData=function(b,d,e,f){var g,h,i=d+10;if(1165519206===b.getUint32(d+4)){if(i+8>b.byteLength)return a.log("Invalid Exif data: Invalid segment size."),void 0;if(0!==b.getUint16(d+8))return a.log("Invalid Exif data: Missing byte alignment offset."),void 0;switch(b.getUint16(i)){case 18761:g=!0;break;case 19789:g=!1;break;default:return a.log("Invalid Exif data: Invalid byte alignment marker."),void 0}if(42!==b.getUint16(i+2,g))return a.log("Invalid Exif data: Missing TIFF marker."),void 0;h=b.getUint32(i+4,g),f.exif=new c.ExifMap,h=c.parseExifTags(b,i,i+h,g,f)}},b.parsers[65505].push(c.parseExifData),c}),b("runtime/html5/jpegencoder",[],function(){function a(a){function b(a){for(var b=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],c=0;64>c;c++){var d=y((b[c]*a+50)/100);1>d?d=1:d>255&&(d=255),z[P[c]]=d}for(var e=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],f=0;64>f;f++){var g=y((e[f]*a+50)/100);1>g?g=1:g>255&&(g=255),A[P[f]]=g}for(var h=[1,1.3870398
|