function n(n){return JSON.parse(JSON.stringify(n))}function r(n,r){if(!r)return n;if(n.value&&n.value.includes("$"))if(n.value.includes("+")){const t=n.value.split("+");n.value=t.map((n=>{if(n.includes("$")){const t=n.replace("$","");return r[t]}return n})).join("")}else{const t=n.value.replace("$","");n.value=r[t]}return n}export{n as c,r}