/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{e as m,m as d}from"./DPJE33GY.js";import b from"./KFUE7LVT.js";import a from"./AD6GOUND.js";import{w as c}from"./4B3QBH5T.js";import{g as r}from"./KUVOINJC.js";import{b as n,l as s}from"./NKG4FLLR.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{Pb:p,ce:b,f:f},{s:N}])=>{var G={DebounceTimer:400,SliderTimer:100,PopoverTimer:60,customSortLimit:100},R=10,Y={style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3},q=[n.Count,n.Sum,n.Average,n.ContinuousPercentile,n.Minimum,n.Maximum,n.NoAggregation],H=[n.Count,n.Sum];function K(e){let t;switch(e){case r.Title:case r.XAxisTitle:case r.YAxisTitle:case r.LegendTitle:{t=m.Title;break}case r.Description:case r.LegendText:{t=m.Text;break}case r.AxisLabels:case r.GuideLabels:case r.DataLabels:{t=m.Label;break}case r.Background:case r.LeaderLines:case r.AxisLines:case r.GridLines:{t=m.Palette;break}}return t}function X(e,t,i){let a=!1,o=typeof e=="string"?Number.parseFloat(e):e,u=typeof t=="string"?Number.parseFloat(t):t,l=typeof i=="string"?Number.parseFloat(i):i;return Number.isNaN(o)||(a=(u===void 0||Number.isNaN(u)||o>=u)&&(l===void 0||Number.isNaN(l)||o<=l)),a}function $(e,t){let i;if(e!==null){let a=typeof e=="string"?Number.parseFloat(e):e;p(a)?i=a:p(t)&&(i=t)}return i===void 0?"":`${i}`}function J(e){let{inputElement:t,status:i}=e;t.status=i}var Q={IDLE:"idle",INVALID:"invalid"};function V(e,t){let i="";if(e!==void 0&&!Number.isNaN(e)){let a=b(document.documentElement);i=Intl.NumberFormat(a,t).format(e)}return i}function Z(e,t){let i=!1;if(t!==void 0){let a=typeof t=="string"?t.trim():t,o=e.trim();typeof t=="string"?i=a===o||a===f&&o==="":i=a.includes(o)}return i}function _(e){let t;switch(e){case"trailing":t=-200;break;case"leading":t=20;break;default:t=0;break}return t}function z(e){return e===void 0||Number.isNaN(e.r)||Number.isNaN(e.g)||Number.isNaN(e.b)?null:e}var ee=e=>{["e","E"].includes(e.key)&&e.preventDefault()},te=e=>{if(e.pickListElement!==void 0){let t=e.pickListElement.selectedItems;e.eventEmitter.emit({contentKind:e.contentKind,value:t.map(i=>i.value)})}};function ie(e){let t="solid";switch(e){case c.Dash:t="dashed";break;case c.Dot:t="dotted";break;case c.Solid:default:t="solid";break}return t}function ae(e,t){let i=document.createElement("a");i.style.display="none",i.download=t,i.setAttribute("href",e),i.click(),i.remove(),URL.revokeObjectURL(e)}function re(e){return e!=null&&(e.style.removeProperty("opacity"),e.remove()),null}function oe(e){let t=!N(e?.config),i=e.xTemporalBinning?.unit,a=e.yTemporalBinning?.unit,o;return t&&i!==void 0&&a!==void 0&&(i===s.HourOfDay&&a===s.DayOfWeek?o=d.WeekByDayOfWeekAndHourOfDay:i===s.DayOfMonth&&a===s.MonthOfYear&&(o=d.YearByMonthAndDayOfMonth)),o}return{a:G,b:R,c:Y,d:q,e:H,f:K,g:X,h:$,i:J,j:Q,k:V,l:Z,m:_,n:z,o:ee,p:te,q:ie,r:ae,s:re,t:oe}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b)