/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../chunks/_rollupPluginBabelHelpers","../../../renderers/support/rasterRendererHelper","../support/utils"],(function(e,t,r,n){"use strict";function a(e){return s.apply(this,arguments)}function s(){return(s=t._asyncToGenerator((function*(e){const t=[(e=yield n.processRasterRendererParameters(e)).bandId||0],a={bandIds:t,stretchType:e.stretchType,includeStatisticsInStretch:e.includeStatisticsInStretch},s=e.layer,{rasterInfo:d}=s;let l=r.createStretchRenderer(d,a);return e.estimateStatisticsHistograms&&l.dynamicRangeAdjustment&&(yield s.updateRasterInfoWithEstimatedStats({renderingRule:e.renderingRule,signal:e.signal}),l=r.createStretchRenderer(d,a)),i(l,e),{renderer:l,bandId:t[0]}}))).apply(this,arguments)}function i(e,t){const{gamma:r,useGamma:n,dynamicRangeAdjustment:a,colorRamp:s}=t;null!=r&&(e.gamma=[r]),null!=n&&(e.useGamma=n),null!=a&&(e.dynamicRangeAdjustment=a),void 0!==s&&(e.colorRamp=s)}e.createRenderer=a,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
