import{validation}from"../../Validation.js";import{parseAndExecuteScript}from"@arcgis/core/arcade/arcade";class ArcadeScript{execute(r,a){var t=validation.string("script",r.script,validation.never);const e={};var c={vars:e};if(r.parameters)for(const s in r.parameters){var i=r.parameters[s];e["$"+s]=i}return{result:parseAndExecuteScript(t,c,null)}}}ArcadeScript.action="gcx:wf:arcgis::ArcadeScript",ArcadeScript.suite="gcx:wf:builtin";export{ArcadeScript};