/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import s from"./config.js";import t from"./request.js";import r from"./core/Error.js";import o from"./core/Logger.js";import{join as e}from"./core/urlUtils.js";function i(s,r){return t(n(s),r)}function n(t){if(!s.assetsPath)throw o.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new r("assets:path-not-set","config.assetsPath is not set");return e(s.assetsPath,t)}export{i as fetchAsset,n as getAssetUrl};
