/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
v4.34.0-next.51 */
export default $arcgis.t(([l])=>{function u(){return!!window.MonacoEnvironment?.getWorkerUrl}var a="",p=new Map;async function c(t,e){let r=await l(t,{responseType:"text"});return new Worker(URL.createObjectURL(new Blob([r.data],{type:"text/javascript"})),{type:"module"})}function k(t){if(u())return;a=t;let e=`${a}/code-editor`,r={arcade:`${e}/arcade.worker.js`,"arcgis-sql-expression":`${e}/sql-expr.worker.js`,html:`${e}/html.worker.js`,css:`${e}/css.worker.js`,typescript:`${e}/ts.worker.js`,json:`${e}/json.worker.js`,default:`${e}/editor.worker.js`},s={arcade:{url:r.arcade},"arcgis-sql-expression":{url:r["arcgis-sql-expression"]},html:{url:r.html},css:{url:r.css},typescript:{url:r.typescript},javascript:{url:r.typescript},json:{url:r.json},default:{url:r.default}};window.MonacoEnvironment={getWorker:async(w,o)=>{let n=p.get(o);if(n)return await c(n);let{url:i,localWorker:d}=s[o]||s.default;return await c(i)}}}return k},"request")