1/*! For license information please see npm.compressorjs.209081734d0c44d66a6a.js.LICENSE.txt */ 2(globalThis.webpackChunkpod001_frontend=globalThis.webpackChunkpod001_frontend||[]).push([[2941],{98005:function(e){e.exports=function(){"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function t(t){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach(function(e){i(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function r(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function i(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},a.apply(this,arguments)}function n(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var o={exports:{}};!function(e){"undefined"!=typeof window&&function(t){var r=t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype,i=t.Blob&&function(){try{return Boolean(new Blob)}catch(e){return!1}}(),a=i&&t.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(e){return!1}}(),n=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder,o=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,l=(i||n)&&t.atob&&t.ArrayBuffer&&t.Uint8Array&&function(e){var t,r,l,s,c,u,f,h,d;if(!(t=e.match(o)))throw new Error("invalid data URI");for(r=t[2]?t[1]:"text/plain"+(t[3]||";charset=US-ASCII"),l=!!t[4],s=e.slice(t[0].length),c=l?atob(s):decodeURIComponent(s),u=new ArrayBuffer(c.length),f=new Uint8Array(u),h=0;h<c.length;h+=1)f[h]=c.charCodeAt(h);return i?new Blob([a?f:u],{type:r}):((d=new n).append(u),d.getBlob(r))};t.HTMLCanvasElement&&!r.toBlob&&(r.mozGetAsFile?r.toBlob=function(e,t,i){var a=this;setTimeout(function(){i&&r.toDataURL&&l?e(l(a.toDataURL(t,i))):e(a.mozGetAsFile("blob",t))})}:r.toDataURL&&l&&(r.msToBlob?r.toBlob=function(e,t,i){var a=this;setTimeout(function(){(t&&"image/png"!==t||i)&&r.toDataURL&&l?e(l(a.toDataURL(t,i))):e(a.msToBlob(t))})}:r.toBlob=function(e,t,r){var i=this;setTimeout(function(){e(l(i.toDataURL(t,r)))})})),e.exports?e.exports=l:t.dataURLtoBlob=l}(window)}(o);var l=o.exports,s={strict:!0,checkOrientation:!0,retainExif:!1,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},c="undefined"!=typeof window&&void 0!==window.document?window:{},u=function(e){return e>0&&e<1/0},f=Array.prototype.slice;function h(e){return Array.from?Array.from(e):f.call(e)}var d=/^image\/.+$/;function b(e){return d.test(e)}var p=String.fromCharCode;var m=c.btoa;function v(e,t){for(var r=[],i=new Uint8Array(e);i.length>0;)r.push(p.apply(null,h(i.subarray(0,8192)))),i=i.subarray(8192);return"data:".concat(t,";base64,").concat(m(r.join("")))}function g(e){var t,r=new DataView(e);try{var i,a,n;if(255===r.getUint8(0)&&216===r.getUint8(1))for(var o=r.byteLength,l=2;l+1<o;){if(255===r.getUint8(l)&&225===r.getUint8(l+1)){a=l;break}l+=1}if(a){var s=a+10;if("Exif"===function(e,t,r){var i,a="";for(r+=t,i=t;i<r;i+=1)a+=p(e.getUint8(i));return a}(r,a+4,4)){var c=r.getUint16(s);if(((i=18761===c)||19789===c)&&42===r.getUint16(s+2,i)){var u=r.getUint32(s+4,i);u>=8&&(n=s+u)}}}if(n){var f,h,d=r.getUint16(n,i);for(h=0;h<d;h+=1)if(f=n+12*h+2,274===r.getUint16(f,i)){f+=8,t=r.getUint16(f,i),r.setUint16(f,1,i);break}}}catch(e){t=1}return t}var w=/\.\d*(?:0|9){12}\d*$/;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return w.test(e)?Math.round(e*t)/t:e}function B(e){var t=e.aspectRatio,r=e.height,i=e.width,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",n=u(i),o=u(r);if(n&&o){var l=r*t;("contain"===a||"none"===a)&&l>i||"cover"===a&&l<i?r=i/t:i=r*t}else n?r=i/t:o&&(i=r*t);return{width:i,height:r}}var U=c.ArrayBuffer,O=c.FileReader,j=c.URL||c.webkitURL,x=/\.\w+$/,T=c.Compressor;return function(){function e(r,i){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.file=r,this.exif=[],this.image=new Image,this.options=t(t({},s),i),this.aborted=!1,this.result=null,this.init()}return i=e,o=[{key:"noConflict",value:function(){return window.Compressor=T,e}},{key:"setDefaults",value:function(e){a(s,e)}}],(n=[{key:"init",value:function(){var e,t=this,r=this.file,i=this.options;if(e=r,"undefined"!=typeof Blob&&(e instanceof Blob||"[object Blob]"===Object.prototype.toString.call(e))){var n=r.type;if(b(n))if(j&&O){U||(i.checkOrientation=!1,i.retainExif=!1);var o="image/jpeg"===n,l=o&&i.checkOrientation,s=o&&i.retainExif;if(!j||l||s){var c=new O;this.reader=c,c.onload=function(e){var i=e.target.result,o={},c=1;l&&(c=g(i))>1&&a(o,function(e){var t=0,r=1,i=1;switch(e){case 2:r=-1;break;case 3:t=-180;break;case 4:i=-1;break;case 5:t=90,i=-1;break;case 6:t=90;break;case 7:t=90,r=-1;break;case 8:t=-90}return{rotate:t,scaleX:r,scaleY:i}}(c)),s&&(t.exif=function(e){for(var t=h(new Uint8Array(e)),r=t.length,i=[],a=0;a+3<r;){var n=t[a],o=t[a+1];if(255===n&&218===o)break;if(255===n&&216===o)a+=2;else{var l=a+(256*t[a+2]+t[a+3])+2,s=t.slice(a,l);i.push(s),a=l}}return i.reduce(function(e,t){return 255===t[0]&&225===t[1]?e.concat(t):e},[])}(i)),o.url=l||s?!j||c>1?v(i,n):j.createObjectURL(r):i,t.load(o)},c.onabort=function(){t.fail(new Error("Aborted to read the image with FileReader."))},c.onerror=function(){t.fail(new Error("Failed to read the image with FileReader."))},c.onloadend=function(){t.reader=null},l||s?c.readAsArrayBuffer(r):c.readAsDataURL(r)}else this.load({url:j.createObjectURL(r)})}else this.fail(new Error("The current browser does not support image compression."));else this.fail(new Error("The first argument must be an image File or Blob object."))}else this.fail(new Error("The first argument must be a File or Blob object."))}},{key:"load",value:function(e){var r=this,i=this.file,a=this.image;a.onload=function(){r.draw(t(t({},e),{}
2,{naturalWidth:a.naturalWidth,naturalHeight:a.naturalHeight}))},a.onabort=function(){r.fail(new Error("Aborted to load the image."))},a.onerror=function(){r.fail(new Error("Failed to load the image."))},c.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(c.navigator.userAgent)&&(a.crossOrigin="anonymous"),a.alt=i.name,a.src=e.url}},{key:"draw",value:function(e){var t=this,r=e.naturalWidth,i=e.naturalHeight,a=e.rotate,n=void 0===a?0:a,o=e.scaleX,s=void 0===o?1:o,c=e.scaleY,f=void 0===c?1:c,d=this.file,p=this.image,m=this.options,g=document.createElement("canvas"),w=g.getContext("2d"),U=Math.abs(n)%180==90,j=("contain"===m.resize||"cover"===m.resize)&&u(m.width)&&u(m.height),x=Math.max(m.maxWidth,0)||1/0,T=Math.max(m.maxHeight,0)||1/0,k=Math.max(m.minWidth,0)||0,A=Math.max(m.minHeight,0)||0,R=r/i,E=m.width,M=m.height;if(U){var D=[T,x];x=D[0],T=D[1];var L=[A,k];k=L[0],A=L[1];var P=[M,E];E=P[0],M=P[1]}j&&(R=E/M);var C=B({aspectRatio:R,width:x,height:T},"contain");x=C.width,T=C.height;var z=B({aspectRatio:R,width:k,height:A},"cover");if(k=z.width,A=z.height,j){var H=B({aspectRatio:R,width:E,height:M},m.resize);E=H.width,M=H.height}else{var F=B({aspectRatio:R,width:E,height:M}),S=F.width;E=void 0===S?r:S;var W=F.height;M=void 0===W?i:W}var I=-(E=Math.floor(y(Math.min(Math.max(E,k),x))))/2,q=-(M=Math.floor(y(Math.min(Math.max(M,A),T))))/2,$=E,G=M,K=[];if(j){var X,Y,_,N,V=B({aspectRatio:R,width:r,height:i},{contain:"cover",cover:"contain"}[m.resize]);_=V.width,N=V.height,X=(r-_)/2,Y=(i-N)/2,K.push(X,Y,_,N)}if(K.push(I,q,$,G),U){var J=[M,E];E=J[0],M=J[1]}g.width=E,g.height=M,b(m.mimeType)||(m.mimeType=d.type);var Q="transparent";d.size>m.convertSize&&m.convertTypes.indexOf(m.mimeType)>=0&&(m.mimeType="image/jpeg");var Z="image/jpeg"===m.mimeType;if(Z&&(Q="#fff"),w.fillStyle=Q,w.fillRect(0,0,E,M),m.beforeDraw&&m.beforeDraw.call(this,w,g),!this.aborted&&(w.save(),w.translate(E/2,M/2),w.rotate(n*Math.PI/180),w.scale(s,f),w.drawImage.apply(w,[p].concat(K)),w.restore(),m.drew&&m.drew.call(this,w,g),!this.aborted)){var ee=function(e){if(!t.aborted){var a=function(e){return t.done({naturalWidth:r,naturalHeight:i,result:e})};if(e&&Z&&m.retainExif&&t.exif&&t.exif.length>0){var n=function(e){return a(l(v(function(e,t){var r=h(new Uint8Array(e));if(255!==r[2]||224!==r[3])return e;var i=256*r[4]+r[5],a=[255,216].concat(t,r.slice(4+i));return new Uint8Array(a)}(e,t.exif),m.mimeType)))};if(e.arrayBuffer)e.arrayBuffer().then(n).catch(function(){t.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var o=new O;t.reader=o,o.onload=function(e){var t=e.target;n(t.result)},o.onabort=function(){t.fail(new Error("Aborted to read the compressed image with FileReader."))},o.onerror=function(){t.fail(new Error("Failed to read the compressed image with FileReader."))},o.onloadend=function(){t.reader=null},o.readAsArrayBuffer(e)}}else a(e)}};g.toBlob?g.toBlob(ee,m.mimeType,m.quality):ee(l(g.toDataURL(m.mimeType,m.quality)))}}},{key:"done",value:function(e){var t,r,i=e.naturalWidth,a=e.naturalHeight,n=e.result,o=this.file,l=this.image,s=this.options;if(j&&0===l.src.indexOf("blob:")&&j.revokeObjectURL(l.src),n)if(s.strict&&!s.retainExif&&n.size>o.size&&s.mimeType===o.type&&!(s.width>i||s.height>a||s.minWidth>i||s.minHeight>a||s.maxWidth<i||s.maxHeight<a))n=o;else{var c=new Date;n.lastModified=c.getTime(),n.lastModifiedDate=c,n.name=o.name,n.name&&n.type!==o.type&&(n.name=n.name.replace(x,(t=n.type,"jpeg"===(r=b(t)?t.substr(6):"")&&(r="jpg"),".".concat(r))))}else n=o;this.result=n,s.success&&s.success.call(this,n)}},{key:"fail",value:function(e){var t=this.options;if(!t.error)throw e;t.error.call(this,e)}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}])&&r(i.prototype,n),o&&r(i,o),Object.defineProperty(i,"prototype",{writable:!1}),e;var i,n,o}()}()}}]); 3//# sourceMappingURL=npm.compressorjs.209081734d0c44d66a6a.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.