/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["require","exports","../../../chunks/_rollupPluginBabelHelpers","../../../symbols","../../../intl/date","../../../renderers/support/numberUtils","../../../symbols/SimpleLineSymbol"],(function(A,e,t,l,r,o,n){"use strict";const a="<",i=">",s=r.convertDateFormatToIntlOptions("short-date");function u(A,e,t,l){let n="";0===e?n=`${a} `:e===t&&(n=`${i} `);let u=null;return u=l?r.formatDate(A,s):o.format(A),n+u}const p=["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAANUlEQVQ4jWPMy8v7z0BFwMLAwMAwcdIkqhiWn5fHwEQVk5DAqIGjBo4aOGrgqIEQwEjtKgAATl0Hu6JrzFUAAAAASUVORK5CYII=","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAANUlEQVQ4jWPMy8v7z0BFwMLAwMAwaeIkqhiWl5/HwEQVk5DAqIGjBo4aOGrgqIEQwEjtKgAATl0Hu6sKxboAAAAASUVORK5CYII=","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAANUlEQVQ4jWPMy8v7z0BFwMLAwMAwadJEqhiWl5fPwEQVk5DAqIGjBo4aOGrgqIEQwEjtKgAATl0Hu75+IUcAAAAASUVORK5CYII="];function c(A){return g.apply(this,arguments)}function g(){return(g=t._asyncToGenerator((function*(e){if(!("visualVariables"in e)||!e.visualVariables)return null;const t=e.visualVariables.find((A=>"color"===A.type));if(!t)return null;let l=null,r=null;if(t.stops){if(1===t.stops.length)return t.stops[0].color;l=t.stops[0].value,r=t.stops[t.stops.length-1].value}const o=l+(r-l)/2,{getColor:n}=yield new Promise(((e,t)=>A(["../../../renderers/visualVariables/support/visualVariableUtils"],e,t)));return n(t,o)}))).apply(this,arguments)}function w(A,e){return E.apply(this,arguments)}function E(){return(E=t._asyncToGenerator((function*(A,e){const t=A.trailCap,l=A.trailWidth||1,r=e||(yield c(A))||A.color;return new n({cap:t,color:r,width:l})}))).apply(this,arguments)}e.RGB_IMG_SOURCE=p,e.SPECIAL_CHARS_GREATER_THAN=i,e.SPECIAL_CHARS_LESS_THAN=a,e.createStopLabel=u,e.getMedianColor=c,e.getSymbolForFlowRenderer=w,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
