/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
import{e as l,f as o}from"./IHG7KTNC.js";import{d as g}from"./WGO4EVOV.js";var p=async(s,e)=>{s.slug&&!s.slug.startsWith(`${s.orgUrlKey}|`)&&(s.slug=g(s.slug,s.orgUrlKey));let{id:r,slug:u}=s,a=r?{slug:u,existingId:r}:{slug:u};return s.slug=await o(a,e),s.typeKeywords=l(s.typeKeywords,s.slug),s};export{p as a};
