1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[46975],{46975:(e,t,o)=>{function r(e){let t=e.name.toLowerCase();if(t.endsWith(".heic")||t.endsWith(".heif"))return!0;let o=e.type.toLowerCase();return"image/heic"===o||"image/heif"===o}async function a(e){try{let t=(await o.e(2e3).then(o.t.bind(o,2402,23))).default,r=await t({blob:e,toType:"image/jpeg",quality:.9}),a=e.name.replace(/\.(heic|heif)$/i,".jpg");return new File([r],a,{type:"image/jpeg",lastModified:Date.now()})}catch(e){throw console.error("HEIC conversion error:",e),Error("Failed to convert HEIC image to JPG")}}async function i(e){return r(e)?(console.log("Converting HEIC file to JPG:",e.name),await a(e)):e}async function n(e){let t=await i(e),o=new FormData;o.append("file",t);try{let e=await fetch("/api/upload/keycdn",{method:"POST",body:o});if(!e.ok)throw Error("Failed to upload to KeyCDN");return(await e.json()).url}catch(e){throw console.error("KeyCDN upload error:",e),e}}o.d(t,{isHeicFile:()=>r,processImageFile:()=>i,uploadToKeyCDN:()=>n})}}]);
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.