PageSourceSearch

https://www.svgai.org/_next/static/chunks/3433.1f89b98e762b5241.js

js svgai.org collected 2026-10-04 08:37:41 UTC 2,193 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3433],{10651:(e,r,t)=>{t.d(r,{JX:()=>u,N$:()=>i,OD:()=>o,pc:()=>c,zx:()=>n});class s extends Error{constructor(e,r,t=400){super(e),this.name=this.constructor.name,this.code=r,this.statusCode=t,Object.setPrototypeOf(this,new.target.prototype)}}class o extends s{constructor(e,r="FILE_VALIDATION_FAILED"){super(e,r,400)}}class n extends s{constructor(e,r="CONVERSION_FAILED"){super(e,r,500)}}class i extends s{constructor(e,r,t){super(t||(e?`Format '${e}' is not supported`:"Unsupported file format"),"UNSUPPORTED_FORMAT",400),this.format=e,this.supportedFormats=r}}class c extends s{constructor(e,r){super(e?`The ${e.toUpperCase()} file appears to be corrupted or invalid. ${r||"Please try with a different file."}`:`The file appears to be corrupted or invalid. ${r||"Please try with a different file."}`,"CORRUPTED_FILE",400)}}let a={NETWORK_ERROR:"Network error occurred during conversion",TIMEOUT:"Conversion timed out. Please try with a smaller file",ENCODING_ERROR:"Unable to process the file encoding. Please ensure the file is not corrupted."};function u(e){if(e instanceof s)return e.message;if(e instanceof Error){let r=e.message.toLowerCase();return r.includes("memory")||r.includes("heap")?"The file is too large to process. Please try with a smaller file or reduce its dimensions.":r.includes("timeout")?a.TIMEOUT:r.includes("network")||r.includes("fetch")?a.NETWORK_ERROR:r.includes("encoding")||r.includes("decode")?a.ENCODING_ERROR:e.message}return"An unexpected error occurred. Please try again."}},83433:(e,r,t)=>{t.d(r,{b2:()=>o}),t(10651);var s=t(87358);async function o(e,r,t,n,i={}){try{let s=function(){throw console.error("[Convertio] Attempting to use Convertio API in browser - this should run server-side"),Error("Convertio API cannot be used in the browser. This converter must run server-side.")}();return await s.convertFile(e,r,t,n,i)}catch(e){throw console.error("[Convertio] Failed to initialize or convert:",{error:e instanceof Error?e.message:e,environment:"browser",apiKeyPresent:!!s.env.CONVERTIO_API_KEY,publicApiKeyPresent:!!s.env.NEXT_PUBLIC_CONVERTIO_API_KEY}),e}}t(44134).Buffer}}]);

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.