import{e as on}from"./mutations2.js";const listenTo=(i,n,r)=>on("set",((o,t,l)=>{if(o===i){if(Array.isArray(n)&&n.some((i=>JSON.stringify(null==t?void 0:t[i])!==JSON.stringify(null==l?void 0:l[i]))))return r(t,l);if("string"==typeof n){if(JSON.stringify(null==t?void 0:t[n])===JSON.stringify(null==l?void 0:l[n]))return;return r(null==t?void 0:t[n],null==l?void 0:l[n])}}}));export{listenTo as l};