1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a50f8f6e-f98f-49cb-9768-e72345bc8078",e._sentryDebugIdIdentifier="sentry-dbid-a50f8f6e-f98f-49cb-9768-e72345bc8078")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4913],{4913:(e,t,n)=>{async function a(e){var t;if(!("image/heic"===(t=e).type||t.name.toLowerCase().endsWith(".heic")))return e;try{let{default:t}=await n.e(5761).then(n.t.bind(n,29778,23)),a=await t({blob:e,toType:"image/jpeg",quality:.8});return new File([a],e.name.replace(/\.heic$/i,".jpg"),{type:"image/jpeg"})}catch(e){throw console.error("Error converting HEIC to JPEG:",e),e}}function o(e){let t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;if("undefined"==typeof document)throw Error("compressImage can only be used on the client side");let{width:o,height:i}=e,l=.88,c=Math.min(1400,Math.max(o,i));function h(t,n,a){let o=document.createElement("canvas");o.width=t,o.height=n;let i=o.getContext("2d");if(!i)return r(o),e.toDataURL("image/jpeg",a);i.imageSmoothingEnabled=!0,i.imageSmoothingQuality="high",i.drawImage(e,0,0,t,n);let l="object"==typeof WebAssembly,c=o.toDataURL(l?"image/webp":"image/jpeg",a);return r(o),c}let d=o/i;o>i?n=(t=Math.min(c,o))/d:t=(n=Math.min(c,i))*d;let g=h(t,n,l),s=0;for(;g.length>1402.88*a&&s<4;)++s<=2?l=Math.max(.6,l-.15):(c=Math.max(800,.8*c),o>i?n=(t=Math.min(c,o))/d:t=(n=Math.min(c,i))*d),g=h(t,n,l);return g}function r(e){let t=e.getContext("2d");t&&t.clearRect(0,0,e.width,e.height)}function i(e){return new Promise(t=>{let n=.75*e.length/1024;if(n<=2500){t(e);return}let a=new Image;a.onload=()=>{let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let l=i.getContext("2d");if(!l){t(e);return}l.drawImage(a,0,0);try{let a=e;a=o(i,2500);let l=.75*a.length/1024;l>2500&&(a=o(i,2e3),l=.75*a.length/1024),l>2500&&(a=o(i,1500),l=.75*a.length/1024),console.log("[SmartCompress] ".concat(Math.round(n),"KB â ").concat(Math.round(l),"KB")),r(i),t(a)}catch(n){console.error("[SmartCompress] Compression failed:",n),r(i),t(e)}},a.onerror=()=>{console.error("[SmartCompress] Image load failed"),t(e)},a.src=e})}n.d(t,{Le:()=>r,convertHeicToJpeg:()=>a,q7:()=>i})}}]);
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.