PageSourceSearch

https://www.svgai.org/_next/static/chunks/7310.daf61969de8ee3b7.js

js svgai.org collected 2026-10-04 08:38:23 UTC 2,474 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7310],{10651:(e,t,r)=>{r.d(t,{JX:()=>u,N$:()=>i,OD:()=>o,pc:()=>c,zx:()=>n});class s extends Error{constructor(e,t,r=400){super(e),this.name=this.constructor.name,this.code=t,this.statusCode=r,Object.setPrototypeOf(this,new.target.prototype)}}class o extends s{constructor(e,t="FILE_VALIDATION_FAILED"){super(e,t,400)}}class n extends s{constructor(e,t="CONVERSION_FAILED"){super(e,t,500)}}class i extends s{constructor(e,t,r){super(r||(e?`Format '${e}' is not supported`:"Unsupported file format"),"UNSUPPORTED_FORMAT",400),this.format=e,this.supportedFormats=t}}class c extends s{constructor(e,t){super(e?`The ${e.toUpperCase()} file appears to be corrupted or invalid. ${t||"Please try with a different file."}`:`The file appears to be corrupted or invalid. ${t||"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 t=e.message.toLowerCase();return t.includes("memory")||t.includes("heap")?"The file is too large to process. Please try with a smaller file or reduce its dimensions.":t.includes("timeout")?a.TIMEOUT:t.includes("network")||t.includes("fetch")?a.NETWORK_ERROR:t.includes("encoding")||t.includes("decode")?a.ENCODING_ERROR:e.message}return"An unexpected error occurred. Please try again."}},27310:(e,t,r)=>{r.d(t,{svgToMp4Handler:()=>n});var s=r(10651),o=r(119);let n=async(e,t={})=>{try{throw!function(e){if("string"==typeof e){let t=e.trim();if(!t.includes("<svg")&&!t.includes("<?xml"))throw new s.OD("Invalid SVG: Missing SVG tag");return}let t=(0,o.ST)(e);if("svg"!==t)throw new s.N$(t||"unknown",["svg"],`Expected SVG format but received ${t||"unknown format"}`);e.toString("utf8")}(e),new s.zx("SVG to MP4 conversion is a premium feature. Please upgrade your account to access video export functionality.","PREMIUM_FEATURE_REQUIRED")}catch(e){if(e instanceof s.OD||e instanceof s.N$||e instanceof s.zx)throw e;if(e instanceof Error)throw new s.zx(`SVG to MP4 conversion failed: ${e.message}`,"SVG_TO_MP4_FAILED");throw new s.zx("SVG to MP4 conversion is a premium feature. Please upgrade your account to access video export functionality.","PREMIUM_FEATURE_REQUIRED")}}}}]);

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.