/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import t from"../Accessor.js";import{getProperties as o}from"./utils.js";function n(s,i){const e=o(s),r=o(i),c=e.store,f=r.store,a=r.metadata;for(const o in a){const i=a[o],e=c.originOf(o),r=f.originOf(o);if(!i.readOnly&&0!==r){if(0!==e){const s=c.get(o),i=f.get(o);s&&i&&i instanceof t&&s instanceof t&&s instanceof i.constructor&&n(s,i);continue}s.set(o,f.get(o))}}}export{n as overrideDefaultsFrom};
