/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
function n(n,r){if(null==n)return null;if(null==r)return n.symbol;if(null!=n.symbol&&l(n.symbol,r))return n.symbol;for(const t of n.alternateSymbols??[])if(l(t,r))return t;return null}function l(n,l){if("cim"!==n.type)return!0;const r=n.data?.minScale??0,t=n.data?.maxScale??0;return(!t||l>t)&&(!r||l<=r)}export{n as getScaleDependentSymbol};
