/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import s from"../../../../core/Error.js";const e="upload-assets",o=()=>new Error;class r extends s{constructor(){super(`${e}:unsupported`,"Layer does not support asset uploads.",o())}}class t extends s{constructor(){super(`${e}:no-glb-support`,"Layer does not support glb.",o())}}class n extends s{constructor(){super(`${e}:no-supported-source`,"No supported external source found",o())}}class u extends s{constructor(){super(`${e}:not-base-64`,"Expected gltf data in base64 format after conversion.",o())}}class p extends s{constructor(){super(`${e}:unable-to-prepare-options`,"Unable to prepare uploadAsset request options.",o())}}class a extends s{constructor(s,r){super(`${e}:bad-response`,`Bad response. Uploaded ${s} items and received ${r} results.`,o())}}class d extends s{constructor(s,r){super(`${e}-layer:upload-failed`,`Failed to upload mesh file ${s}. Error code: ${r?.code??"-1"}. Error message: ${r?.messages??"unknown"}`,o())}}class c extends s{constructor(s){super(`${e}-layer:unsupported-format`,`The service allowed us to upload an asset of FormatID ${s}, but it does not list it in its supported formats.`,o())}}class l extends s{constructor(){super(`${e}:convert3D-failed`,"convert3D failed.")}}class i extends s{constructor(){super("invalid-input:no-model","No supported model found")}}class m extends s{constructor(){super("invalid-input:multiple-models","Multiple supported models found")}}export{a as BadResponseError,l as Convert3DFailedError,m as MultipleModelsError,t as NoGlbSupportError,i as NoModelError,n as NoSupportedSourceError,u as NotBase64Error,p as UnableToPrepareOptionsError,r as UnsupportedError,c as UnsupportedFormatUploadedError,d as UploadFailedError};
