@arcgis/charts-components 5.1.24 → 5.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/cdn/{4VDUZQHB.js → 2EDW3T3V.js} +1 -1
  2. package/dist/cdn/{AUHCVCCV.js → 2I5554N6.js} +1 -1
  3. package/dist/cdn/{HLBH3NS2.js → 2UZDNTJ4.js} +1 -1
  4. package/dist/cdn/{B4DQKN6G.js → 2VBNXJAA.js} +1 -1
  5. package/dist/cdn/{T4BN3H6G.js → 35SRTCM2.js} +1 -1
  6. package/dist/cdn/{QQNWRVUU.js → 3DFDTMQI.js} +1 -1
  7. package/dist/cdn/{SDDJGB6P.js → 3WLDDC6F.js} +1 -1
  8. package/dist/cdn/{VPCXQS7C.js → 4HT2R5F2.js} +1 -1
  9. package/dist/cdn/{BIZBJRHH.js → 4OSX7FWY.js} +1 -1
  10. package/dist/cdn/{UXQBXYGB.js → 55NOHCWX.js} +1 -1
  11. package/dist/cdn/{UKOCGD4X.js → 57DCYBM2.js} +1 -1
  12. package/dist/cdn/{NSCQUGH7.js → 5MZ5BGO3.js} +1 -1
  13. package/dist/cdn/{7TYN6UNC.js → 5OSH5RAP.js} +1 -1
  14. package/dist/cdn/{AKCNYUNT.js → 63MQUCKA.js} +1 -1
  15. package/dist/cdn/{VDRNQIIC.js → 6PBKGD7K.js} +1 -1
  16. package/dist/cdn/{G2OB327R.js → ABMZ4KYW.js} +1 -1
  17. package/dist/cdn/{TVLVHLSE.js → AWHGWZ43.js} +1 -1
  18. package/dist/cdn/{FNNW7M6Z.js → BE5EUBWR.js} +1 -1
  19. package/dist/cdn/{E3U7BQAM.js → BEACQTP7.js} +1 -1
  20. package/dist/cdn/{KNLGTOOI.js → BIOR7YOX.js} +1 -1
  21. package/dist/cdn/{7YYHTEDR.js → BTVQIIC2.js} +1 -1
  22. package/dist/cdn/{OAFU3PR4.js → BVFXPV3H.js} +1 -1
  23. package/dist/cdn/{Z6IIXN7Z.js → C33U2DDU.js} +1 -1
  24. package/dist/cdn/{RNP7O7WW.js → CILV6VTC.js} +1 -1
  25. package/dist/cdn/{RHMQCMEK.js → D2VXRZXH.js} +1 -1
  26. package/dist/cdn/{7AK4SPBI.js → D6SSP4RH.js} +1 -1
  27. package/dist/cdn/{RZZO4CGD.js → DSV3SFNB.js} +1 -1
  28. package/dist/cdn/{25VQ2GPE.js → DVU4FEOB.js} +1 -1
  29. package/dist/cdn/{BBXXVG5W.js → EWAYQPD4.js} +1 -1
  30. package/dist/cdn/{6JT73YLB.js → FEAR74N7.js} +1 -1
  31. package/dist/cdn/{YXWYCNGC.js → FO4ZXJ4N.js} +1 -1
  32. package/dist/cdn/{Y5NXCJVY.js → GKY2GGZM.js} +1 -1
  33. package/dist/cdn/{CRQ2IRDD.js → GZZC4ROO.js} +1 -1
  34. package/dist/cdn/{I3Y6OYMP.js → H77PHG2R.js} +1 -1
  35. package/dist/cdn/{JJN27SZR.js → ICJXFL2C.js} +1 -1
  36. package/dist/cdn/{MULA23EX.js → IG2NVGY7.js} +1 -1
  37. package/dist/cdn/{KOJPIJLU.js → IIYBEYSB.js} +1 -1
  38. package/dist/cdn/{C6AYK4D3.js → IPUW64KA.js} +1 -1
  39. package/dist/cdn/{MS4Y6ETG.js → J6D6JA2D.js} +1 -1
  40. package/dist/cdn/{VB7UUEAI.js → K6TVBCNN.js} +1 -1
  41. package/dist/cdn/{VDGZ2K2P.js → KH3RTQEA.js} +1 -1
  42. package/dist/cdn/{POJTU6FN.js → KRA2XQ33.js} +1 -1
  43. package/dist/cdn/{5XCEZZSU.js → KS45LFYI.js} +1 -1
  44. package/dist/cdn/{VRVS6HAE.js → KWYE5AMC.js} +1 -1
  45. package/dist/cdn/{LWQJPENE.js → KXBHVXU5.js} +1 -1
  46. package/dist/cdn/{CNBW5VX4.js → LRKNSX6T.js} +1 -1
  47. package/dist/cdn/{FJV5YOSW.js → LT5EZ52M.js} +1 -1
  48. package/dist/cdn/{D77NU6RA.js → LUQXY57R.js} +1 -1
  49. package/dist/cdn/{RIHDUWJD.js → N6FLAUUD.js} +1 -1
  50. package/dist/cdn/{LCLRSHLC.js → N7CYLKDL.js} +1 -1
  51. package/dist/cdn/{SZ7VUURX.js → NEIOWBE3.js} +1 -1
  52. package/dist/cdn/{EHO2HH2K.js → NNSOP4UE.js} +1 -1
  53. package/dist/cdn/{ZSTE65TY.js → NSFE5EFO.js} +1 -1
  54. package/dist/cdn/{FKVG5GMV.js → OACIXT4R.js} +1 -1
  55. package/dist/cdn/{2KKM7XMG.js → OE2F4JWR.js} +1 -1
  56. package/dist/cdn/{DZEIYH5L.js → P7AST4KF.js} +1 -1
  57. package/dist/cdn/{INOOYHX7.js → PCKL7VWS.js} +1 -1
  58. package/dist/cdn/{J5CYANTD.js → PIUJGTXT.js} +1 -1
  59. package/dist/cdn/{7E6BOTCG.js → Q267K4RG.js} +1 -1
  60. package/dist/cdn/{SFNDPCJ7.js → Q2A4ULOC.js} +1 -1
  61. package/dist/cdn/{UMBB7BPZ.js → QB5CCITI.js} +1 -1
  62. package/dist/cdn/{LKPGW4JC.js → QMSAER2E.js} +1 -1
  63. package/dist/cdn/{H66OIBYV.js → QSFQ5PNV.js} +1 -1
  64. package/dist/cdn/{AGSFGQPQ.js → QY7DNIGM.js} +1 -1
  65. package/dist/cdn/{5KE747FP.js → SK7F7BVY.js} +1 -1
  66. package/dist/cdn/{QDMEH2X2.js → SWNOB6TW.js} +1 -1
  67. package/dist/cdn/{WWFTXCTV.js → TCXBDTTJ.js} +1 -1
  68. package/dist/cdn/{KELUCFO3.js → TJWMSYWR.js} +1 -1
  69. package/dist/cdn/{MLTCCMLC.js → TUSDZV6L.js} +1 -1
  70. package/dist/cdn/{7TE4FIKJ.js → UF4G3VZQ.js} +1 -1
  71. package/dist/cdn/{PLVLMWO7.js → USI47LHP.js} +1 -1
  72. package/dist/cdn/{SOZ24LFW.js → UVRH5BMZ.js} +1 -1
  73. package/dist/cdn/{4OH7ZV7G.js → V2B5VVBQ.js} +1 -1
  74. package/dist/cdn/{WEMLOR76.js → V5UPD25L.js} +1 -1
  75. package/dist/cdn/{H6MWLSIC.js → VHBAV4W3.js} +1 -1
  76. package/dist/cdn/{LSHK2M2F.js → VXJAMFU4.js} +1 -1
  77. package/dist/cdn/{IRNKBCU6.js → WME7U22E.js} +1 -1
  78. package/dist/cdn/{MSJDJQWU.js → XFBES7ZB.js} +1 -1
  79. package/dist/cdn/{L2HKWYSU.js → XFI3UAE3.js} +1 -1
  80. package/dist/cdn/{HFXLXCLX.js → XMU2NMYA.js} +1 -1
  81. package/dist/cdn/{J4EAJF2T.js → XTNWSVP5.js} +1 -1
  82. package/dist/cdn/{L5PBF35H.js → XTPYJTMS.js} +1 -1
  83. package/dist/cdn/{HU2UNQWO.js → XUQ4GT5F.js} +1 -1
  84. package/dist/cdn/{HWNY4AMD.js → XXG3ABG4.js} +1 -1
  85. package/dist/cdn/{SRSD6BXD.js → XXH5C5MV.js} +1 -1
  86. package/dist/cdn/{QXVVM425.js → Y6LHMOFA.js} +1 -1
  87. package/dist/cdn/{OLUX4P5T.js → YFWT3XVN.js} +1 -1
  88. package/dist/cdn/{BNO3THEE.js → YL6YWVXC.js} +1 -1
  89. package/dist/cdn/{7D6GCPFH.js → YQTKCPC6.js} +1 -1
  90. package/dist/cdn/{V5JF7V4R.js → YS7WAYG4.js} +1 -1
  91. package/dist/cdn/{GWZR3DJN.js → Z7GABJVX.js} +1 -1
  92. package/dist/cdn/{PLQAXIS6.js → ZIBMELOH.js} +1 -1
  93. package/dist/cdn/{SAMWUXOR.js → ZJFQFY7R.js} +1 -1
  94. package/dist/cdn/{5F3ROJAG.js → ZLA2ZMVA.js} +1 -1
  95. package/dist/cdn/{VIYQYI6B.js → ZVFB5P6I.js} +1 -1
  96. package/dist/cdn/{RYZQLC6T.js → ZXMSQOLF.js} +1 -1
  97. package/dist/cdn/index.js +1 -1
  98. package/dist/cdn/model/shared/setup-utils.js +1 -1
  99. package/dist/chunks/runtime.js +1 -1
  100. package/dist/docs/api.json +1 -1
  101. package/dist/docs/docs.json +1 -1
  102. package/dist/docs/web-types.json +1 -1
  103. package/package.json +3 -3
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as u}from"./QQNWRVUU.js";import{a as f}from"./7YYHTEDR.js";import{a as o}from"./TJQGGNGV.js";import d from"./KELUCFO3.js";import{a as S}from"./Y5NXCJVY.js";import"./MZ2UZAFW.js";import b from"./5F3ROJAG.js";import"./KGNYAMFB.js";import a from"./HWNY4AMD.js";import"./777EBGS5.js";import{d as p}from"./TA5LVOWS.js";import"./IQAKPU7N.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./CRQ2IRDD.js";import{A as c,C as m,E as g,G as C,g as h,i as r}from"./SFNDPCJ7.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{p:v}])=>{var O=h`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}`,l=class extends c{constructor(){super(...arguments),this._messages=S(),this.seriesPopover=null,this.open=!1,this.seriesNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let s=e.detail?.name;this.model.setSeriesName(s,this.selectedSeriesIndex??-1)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:s}=e.detail;this.model.colorMatch=!1,s!==void 0&&(this.model.setSeriesColor(s,this.selectedSeriesIndex??-1),this.model.setSeriesMarkerColor(s,this.selectedSeriesIndex??-1))}},this.seriesLineStyleChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{lineStyle:s}=e.detail;s!==void 0&&this.model.setSeriesLineStyle(s,this.selectedSeriesIndex??-1)}},this.seriesLineWidthChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{lineWidth:s}=e.detail;s!==void 0&&(this.model.setSeriesLineWidth(s,this.selectedSeriesIndex??-1),this.model.setSeriesMarkerSize(s*2,this.selectedSeriesIndex??-1))}},this.seriesPopoverClose=e=>{let{selectedSeriesIndex:s}=e.detail;this.selectedSeriesIndex===s&&(this.seriesPopover=o(this.seriesPopover),this.selectedSeriesIndex=void 0)},this.onModelConfigChange=()=>{this.requestUpdate()},this.seriesOrderResetCounter=0,this.activeColorMatch=!1,this.popoverPlacement="leading"}static{this.properties={selectedSeriesIndex:16,seriesOrderResetCounter:16,messageOverrides:0,model:0,activeColorMatch:5,popoverPlacement:1}}static{this.styles=O}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSeriesIndex")&&this.selectedSeriesIndexChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,s){s?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSeriesIndexChange(){this.selectedSeriesIndex!==void 0&&(this.seriesPopover=g(r`<arcgis-charts-config-line-chart-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .placement=${this.popoverPlacement} .open=${this.open} .selectedSeriesIndex=${this.selectedSeriesIndex} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-line-chart-series-popover>`),this.seriesPopover&&!document.body.contains(this.seriesPopover)&&document.body.appendChild(this.seriesPopover))}removeSeriesPopover(){this.seriesPopover!==void 0&&this.seriesPopover!==null&&(this.seriesPopover.open=!1,this.seriesPopover=o(this.seriesPopover))}buildSeriesListItems(){let e=this.model.seriesLength,s=Array.from({length:e},(i,t)=>t);return u(s,i=>this.model.getSeriesId(i),i=>{let t=this.model.getSeriesId(i),n=this.model.getSeriesColor(i),I=this.model.getSeriesName(i),x=this.model.chartSubType===p.BarAndLineFromFields?this._messages.series:t,$=this.model.getSeriesLineStyle(i),P=v($),a="#CCCCCC",d="minus-circle";if((e>1||!this.activeColorMatch)&&n!==void 0){d=`line-${P}`;let[L,b,y,M]=[...n];a=`rgba(${L},${b},${y},${M/255})`}return r`<calcite-list-item .label=${I??t??""} .description=${x} .value=${t} .selected=${this.selectedSeriesIndex===i} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${d} style=${m({color:a})}></calcite-icon></calcite-list-item>`})}buildSeriesList(){return f(this.seriesOrderResetCounter,r`<calcite-list label drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}resetSeriesOriginal(){this.selectedSeriesIndex=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:s,oldIndex:i}=e.detail;this.model.moveSeries(i??0,s??i??0),this.seriesOrderResetCounter+=1}}openSeriesPopOver(e){e.stopImmediatePropagation(),this.removeSeriesPopover();let s=e.target,i=s.localName==="calcite-list-item"?s:s.parentNode,t=this.model.getSeriesIndex(i.value);this.open=this.selectedSeriesIndex!==t,this.selectedSeriesIndex=this.selectedSeriesIndex!==t?t:void 0}render(){return r`<calcite-panel .heading=${this._messages.series}><calcite-button slot=header-actions-end @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent scale=s icon-end=reset>${this._messages.reset}</calcite-button>${this.buildSeriesList()}</calcite-panel>`}};C("arcgis-charts-config-line-chart-series",l);return l},a,b,d)
2
+ import{a as u}from"./3DFDTMQI.js";import{a as f}from"./BTVQIIC2.js";import{a as o}from"./TJQGGNGV.js";import d from"./TJWMSYWR.js";import{a as S}from"./GKY2GGZM.js";import"./MZ2UZAFW.js";import b from"./ZLA2ZMVA.js";import"./KGNYAMFB.js";import a from"./XXG3ABG4.js";import"./777EBGS5.js";import{d as p}from"./TA5LVOWS.js";import"./IQAKPU7N.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./GZZC4ROO.js";import{A as c,C as m,E as g,G as C,g as h,i as r}from"./Q2A4ULOC.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{p:v}])=>{var O=h`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}`,l=class extends c{constructor(){super(...arguments),this._messages=S(),this.seriesPopover=null,this.open=!1,this.seriesNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let s=e.detail?.name;this.model.setSeriesName(s,this.selectedSeriesIndex??-1)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:s}=e.detail;this.model.colorMatch=!1,s!==void 0&&(this.model.setSeriesColor(s,this.selectedSeriesIndex??-1),this.model.setSeriesMarkerColor(s,this.selectedSeriesIndex??-1))}},this.seriesLineStyleChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{lineStyle:s}=e.detail;s!==void 0&&this.model.setSeriesLineStyle(s,this.selectedSeriesIndex??-1)}},this.seriesLineWidthChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{lineWidth:s}=e.detail;s!==void 0&&(this.model.setSeriesLineWidth(s,this.selectedSeriesIndex??-1),this.model.setSeriesMarkerSize(s*2,this.selectedSeriesIndex??-1))}},this.seriesPopoverClose=e=>{let{selectedSeriesIndex:s}=e.detail;this.selectedSeriesIndex===s&&(this.seriesPopover=o(this.seriesPopover),this.selectedSeriesIndex=void 0)},this.onModelConfigChange=()=>{this.requestUpdate()},this.seriesOrderResetCounter=0,this.activeColorMatch=!1,this.popoverPlacement="leading"}static{this.properties={selectedSeriesIndex:16,seriesOrderResetCounter:16,messageOverrides:0,model:0,activeColorMatch:5,popoverPlacement:1}}static{this.styles=O}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSeriesIndex")&&this.selectedSeriesIndexChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,s){s?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSeriesIndexChange(){this.selectedSeriesIndex!==void 0&&(this.seriesPopover=g(r`<arcgis-charts-config-line-chart-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .placement=${this.popoverPlacement} .open=${this.open} .selectedSeriesIndex=${this.selectedSeriesIndex} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-line-chart-series-popover>`),this.seriesPopover&&!document.body.contains(this.seriesPopover)&&document.body.appendChild(this.seriesPopover))}removeSeriesPopover(){this.seriesPopover!==void 0&&this.seriesPopover!==null&&(this.seriesPopover.open=!1,this.seriesPopover=o(this.seriesPopover))}buildSeriesListItems(){let e=this.model.seriesLength,s=Array.from({length:e},(i,t)=>t);return u(s,i=>this.model.getSeriesId(i),i=>{let t=this.model.getSeriesId(i),n=this.model.getSeriesColor(i),I=this.model.getSeriesName(i),x=this.model.chartSubType===p.BarAndLineFromFields?this._messages.series:t,$=this.model.getSeriesLineStyle(i),P=v($),a="#CCCCCC",d="minus-circle";if((e>1||!this.activeColorMatch)&&n!==void 0){d=`line-${P}`;let[L,b,y,M]=[...n];a=`rgba(${L},${b},${y},${M/255})`}return r`<calcite-list-item .label=${I??t??""} .description=${x} .value=${t} .selected=${this.selectedSeriesIndex===i} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${d} style=${m({color:a})}></calcite-icon></calcite-list-item>`})}buildSeriesList(){return f(this.seriesOrderResetCounter,r`<calcite-list label drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}resetSeriesOriginal(){this.selectedSeriesIndex=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:s,oldIndex:i}=e.detail;this.model.moveSeries(i??0,s??i??0),this.seriesOrderResetCounter+=1}}openSeriesPopOver(e){e.stopImmediatePropagation(),this.removeSeriesPopover();let s=e.target,i=s.localName==="calcite-list-item"?s:s.parentNode,t=this.model.getSeriesIndex(i.value);this.open=this.selectedSeriesIndex!==t,this.selectedSeriesIndex=this.selectedSeriesIndex!==t?t:void 0}render(){return r`<calcite-panel .heading=${this._messages.series}><calcite-button slot=header-actions-end @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent scale=s icon-end=reset>${this._messages.reset}</calcite-button>${this.buildSeriesList()}</calcite-panel>`}};C("arcgis-charts-config-line-chart-series",l);return l},a,b,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import f from"./VB7UUEAI.js";import e from"./OAFU3PR4.js";import d from"./J4EAJF2T.js";import{c as re}from"./AUECIKS7.js";import c from"./UMBB7BPZ.js";import b from"./5F3ROJAG.js";import{g as pe,i as I,j as C,k as N,l as Se,m as gi,n as ui}from"./KGNYAMFB.js";import a from"./HWNY4AMD.js";import{e as K,f as Pe}from"./777EBGS5.js";import{c as P,d as E,n as O}from"./TA5LVOWS.js";import{$ as Ee,G as ge,H as ue,I as we,V as Re,_ as Oe,ba as Me,f as Ne,wa as Ve}from"./IQAKPU7N.js";import{a as ke,f as Le}from"./75Y43JLP.js";import{d as ve,g as J,k as Ie}from"./FIMXZMTB.js";import{a as se}from"./EZM4ZDQI.js";import{a as ce}from"./43P4WOC4.js";import{a as h,b as A,e as Ce,h as Ae,k as G,n as V,o as qe,v as q}from"./XOB365BI.js";export default $arcgis.t(([{substitute:$},{B:$e,Eb:si,H:Ze,K:We,Nb:ti,Pb:ri,Q:Ye,R:ie,S:_e,T:Y,Ua:He,W:Ue,Wa:ye,X:k,bb:ze,cc:ai,d:De,eb:Qe,ec:ni,gc:oi,hb:Je,hc:li,kc:ci,m:Z,n:je,pb:Ge,qb:Ke,rb:W,s:ee,sb:ei,tb:_,ua:Xe,ub:ii,vb:me,wb:de,zb:fe},{a:D,b:te,d:L,e:Fe,f:yi,g:xe,r:mi},{a:di,b:fi,c:pi},{a:Si,e:Fi},{b:X},{a:xi,b:Be,f:j,g:U,i:he}])=>{var ms=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.size),e},Ci=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.unit),e},ds=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.timeAggregationType),e},fs=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.trimIncompleteTimeInterval),e},ps=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.nullPolicy),e},Ai=(i,e)=>{e?.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.size=i)}),L({config:e,value:null,axisIndex:1,isMax:!1}),L({config:e,value:null,axisIndex:1,isMax:!0})},qi=(i,e)=>{e?.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.nullPolicy=i)}),L({config:e,value:null,axisIndex:1,isMax:!1}),L({config:e,value:null,axisIndex:1,isMax:!0})},Ss=(i,e)=>{e.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.unit=i)}),L({config:e,value:null,axisIndex:1,isMax:!1}),L({config:e,value:null,axisIndex:1,isMax:!0})},Fs=(i,e)=>{e.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.timeAggregationType=i)}),L({config:e,value:null,axisIndex:1,isMax:!1}),L({config:e,value:null,axisIndex:1,isMax:!0})},xs=(i,e)=>{e.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.trimIncompleteTimeInterval=i)}),L({config:e,value:null,axisIndex:1,isMax:!1}),L({config:e,value:null,axisIndex:1,isMax:!0})},ki=i=>{Ai(0,i)},Li=Object.defineProperty,Ni=Object.getOwnPropertyDescriptor,wi=(i,e,s,a)=>{for(var r=Ni(e,s),t=i.length-1,n;t>=0;t--)(n=i[t])&&(r=n(e,s,r)||r);return r&&Li(e,s,r),r},Ri=i=>{let e;return Z(i)?e=i.outTimeZone:i?.series.forEach(s=>{(s.type===h.BarSeries||s.type===h.RadarSeries||s.type===h.LineSeries)&&s.temporalBinning&&(e=s.temporalBinning.outTimeZone)}),e||(e=i?.axes?.[0]?.valueFormat.type===h.DateAxisFormat?i.axes[0].valueFormat.intlOptions.timeZone:void 0),e},Bi=(i,e)=>{let s=ri(i);Z(e)?i?e.outTimeZone=s:delete e.outTimeZone:e?.series.forEach(a=>{(a.type===h.BarSeries||a.type===h.RadarSeries||a.type===h.LineSeries)&&(i?(a.temporalBinning??={},a.temporalBinning.outTimeZone=s):a.temporalBinning&&delete a.temporalBinning.outTimeZone)}),e?.axes?.[0]?.valueFormat.type===h.DateAxisFormat&&(i?e.axes[0].valueFormat.intlOptions.timeZone=s:delete e.axes[0].valueFormat.intlOptions.timeZone)},be=class extends fi{get timeZone(){return Ri(this._config)}set timeZone(e){Bi(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}};wi([pi],be.prototype,"timeZone");function Bs(i,e){let s;return e!==void 0&&(s={...e},s.legend!==void 0&&(s.legend.position=i)),s}function hs(i,e){let s;return e!==void 0&&(s={...e},s.legend!==void 0&&(s.legend.visible=i)),s}function bs(i,e){let s;return e!==void 0&&(s={...e,rotated:i}),s}function Oi(i){let e;return i!==void 0&&(e={...i},delete e.axes?.[0]?.minimum,delete e.axes?.[0]?.maximum,delete e.axes?.[1]?.minimum,delete e.axes?.[1]?.maximum),e}function Ts(i,e){return e!=null||pe(i)}async function vs(i){let{config:e,layer:s,abortSignal:a}=i,r=!1;return K(s)||Pe(e)?e&&K(s)&&(r=await Je({config:e,layer:s,abortSignal:a})):r=!0,r}async function Ei(i){let{queryObject:e,chartConfig:s,splitByField:a,errorStrings:r,abortSignal:t,runtimeDataFilters:n,ignoreViewExtent:l,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:d,chartLimits:F}=i,g=[],u,y=J(s),m=y.series[0],o=si({queryObject:e,chartConfig:y,runtimeDataFilters:n,ignoreViewExtent:l});if(o.outStatistics?.[0]?.outStatisticFieldName&&(o.outStatistics[0].outStatisticFieldName=Ne.outStatistics.outStatisticFieldName),k(m)&&Ue({xAxisValueFormatType:De(y),setTimeBinningInfoWhenNotProvided:c,seriesConfig:m,queryObject:e})&&Ze(a,e)){let{temporalBinning:f,x:b}=m,{uniqueQuery:v}=ye({chartConfig:y,queryConfig:o,queryObject:e,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:d,chartLimits:F}),x=s.axes?.[0].valueFormat.type===h.DateAxisFormat?s.axes[0].valueFormat.intlOptions.timeZone:void 0;u=await Qe({queryObject:e,dateField:b,splitByField:a,queryConfig:v,axisTimeZone:x,temporalBinning:f,errorStrings:r,abortSignal:t}),g=Array.from(new Set(u.flatMap(S=>{let{stackedAttributes:w}=S,p=[];return w&&(p=w.map(B=>B[a]).filter(B=>B!==void 0)),p})).values())}else{let{uniqueQuery:f}=ye({chartConfig:y,queryObject:e,queryConfig:o,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:d,chartLimits:F}),{elementCount:b}=await ai({chartConfig:y,queryObject:e,queryConfig:o,behaviorAfterLimit:F?.behaviorAfterLimit,numberMaxOfFeaturesToFetch:f.num,abortSignal:t});u=await ze({queryObject:e,queryConfig:f,featureCount:b,errorStrings:r,abortSignal:t}),g=Array.from(new Set(u.map(v=>v.attributes[a]).filter(v=>v!==void 0)).values())}return{allValues:g,preFetchedQueryResponse:u}}function Mi(i,e){let s=new Map;return i.series.forEach(a=>{let r=ie({where:a.query?.where,normalize:!0,escape:!1});e&&r!==null&&(r=Number(r));let t=ce([a]);t!==void 0&&s.set(t,[...s.get(t)??[],r])}),s}function Vi(i){let{allValues:e,configUniqueValuesPerSeriesType:s,initialConfigWasEmpty:a}=i,r=new Map;return Array.from(s.keys()).forEach(t=>{let n=s.get(t)??[],l=[];a?l=e:e.forEach(c=>{n.includes(c)||l.push(c)}),r.set(t,l)}),r}function Pi(i){let{chartConfig:e,missingValue:s,splitByField:a,seriesTemplate:r}=i,t=JSON.parse(JSON.stringify({...e.series[0],...r}));if(t.query){if(s===null?t.id=P.nullValue:s===""?t.id=P.emptyStringValue:t.id=`${s}`,t.name=`${s}`,t.query.outStatistics?.[0]!==void 0){let l=t.id;t.query.outStatistics[0].outStatisticFieldName=l,"y"in t&&(t.y=l)}let n=typeof s=="number"||s===null?s:`'${s}'`;t.query.where=`${a}=${n}`}return t}async function Di(i){let{updateSplitBySeries:e,config:s,queryObject:a,errorStrings:r,abortSignal:t,runtimeDataFilters:n,ignoreViewExtent:l,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:d,chartLimits:F}=i,{seriesTemplate:g}=e??{},u;if(a&&!K(a)&&e!==void 0&&s!==void 0&&(s.series.length>0||g!==void 0)&&e.addMissingSeries){let y=s.series.length===0;s.series.length===0&&g!==void 0&&s.series.push(g);let m=Y(s.series);if(m===E.BoxPlotMonoFieldAndSplitBy||m===E.BoxPlotMultiFieldsAndSplitBy||m===E.BoxPlotMonoFieldAndCategoryAndSplitBy||m===E.BarAndLineSplitBy||m===E.BarAndLineSplitByNoAggregation){let o=Ye(s.series[0]?.query?.where),f=Ge(a),b=Ke(o,f),v=b?ei(b):!1,x=await Ei({queryObject:a,chartConfig:s,splitByField:o,abortSignal:t,runtimeDataFilters:n,ignoreViewExtent:l,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:d,chartLimits:F,errorStrings:r}),{allValues:S}=x;if({preFetchedQueryResponse:u}=x,S.length>0){let w=Mi(s,v),p=Vi({allValues:S,configUniqueValuesPerSeriesType:w,initialConfigWasEmpty:y});Array.from(p.keys()).forEach(B=>{(p.get(B)??[]).forEach(M=>{s.series.push(Pi({chartConfig:s,seriesTemplate:g,missingValue:M,splitByField:o}))}),y&&s.series.shift()})}}}return u}function ji(i,e){e&&!pe(e)&&(e=We({chartConfig:e,queryObject:i}))}async function Is(i){let{configToAlter:e,layer:s,addMissingSeries:a,updateSplitBySeries:r,chartContainer:t,queryObject:n,abortSignal:l,runtimeDataFilters:c,ignoreViewExtent:d,setTimeBinningInfoWhenNotProvided:F,returnFeaturesExtent:g,chartLimits:u,timeZone:y,errorStrings:m}=i,o=e,f;return o&&(ji(s,o),o=await di(o,s,void 0,l),a&&n&&(f=await Di({updateSplitBySeries:r,config:o,queryObject:n,errorStrings:m,abortSignal:l,runtimeDataFilters:c,ignoreViewExtent:d,setTimeBinningInfoWhenNotProvided:F,returnFeaturesExtent:g,chartLimits:u})),o=Xe(o,t),Bi(y,o)),{alteredConfig:o,preFetchedQueryResponse:f}}function $i(i,e){let s=!1;if(e!==void 0){let a=oi({key:$e.Average,splitBy:e});s=Number.isFinite(i[a])}return s}function Cs(i){let{data:e,config:s,showEmptySeries:a}=i,r=s.series.length,t=J(s),n=!1;if(!a&&r>1&&e){let l=ni(e),c=ce(s?.series),d=Y(s?.series),F=new Set;switch(c){case h.ComboLineAndBarSeries:case h.BarSeries:case h.RadarSeries:case h.LineSeries:{t.series.forEach(u=>{if(Array.isArray(l)){let y="";"y"in u&&(y=Array.isArray(u.y)?u.y[0]:u.y,d===E.BarAndLineSplitByNoAggregation&&(y=`${y}_${ie({where:u.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),l.some(m=>ci({dataItem:m,x:u.x,y,aggregationType:s.series[0].query?.outStatistics?.[0]?.statisticType}))&&F.add(u))}});break}case h.BoxPlotSeries:{if(je(s)){let u=He(s);s.series.forEach(y=>{let m,o;y.type===h.BoxPlotSeries?(m=e.dataItems,o=m?.some(f=>li({dataItem:f,splitBy:y.query?.where,showOutliers:u}))):y.type===h.LineSeries&&(m=e.meanLines,o=m?.some(f=>$i(f,y.query?.where))),o&&F.add(y)})}break}}let g=Array.from(F.values());n=g.length>0&&g.length<r,n&&(t.series=g)}return{seriesFilteredOut:n,filteredConfig:t}}var As=i=>i.hideEmptyRowsAndColumns,qs=(i,e)=>{i.hideEmptyRowsAndColumns=e},ks=(i,e)=>{let s=i.series[0];s.heatRulesType=e},Ls=i=>i.series[0].heatRulesType,Ns=(i,e)=>{let s=i.series[0];s.gradientRules=e},ws=i=>i.series[0].gradientRules,Rs=i=>{let{yField:e,config:s,layerInfo:a}=i,{layerFieldsInfo:r}=a,t=re(1,s),n=Zi(s),l=X(s),c=s.series[0];if(typeof e=="string"&&n!==e&&c&&(c.y=e,Oi(s),n===t||l)){let d=O(r,e);D(s,1,d)}},Zi=i=>i.series[0].y??"",Os=i=>{let{binning:e,config:s,commonStrings:a}=i,r=s.series[0];if(r.xTemporalBinning=e,e?.unit!==void 0&&e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits){let t=a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];D(s,0,t)}},Es=i=>i.series[0].xTemporalBinning,Ms=i=>{let{binning:e,config:s,commonStrings:a}=i,r=s.series[0];if(r.yTemporalBinning=e,e?.unit!==void 0&&e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits){let t=a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];D(s,1,t)}},Vs=i=>i.series[0].yTemporalBinning,Wi=(i,e)=>{e.orderOptions??={};let s=e.axes?.[0]?.valueFormat?.type==="category"?q.Category:q.YValue,a=Te(e)[0],r=e.axes?.[1]?.valueFormat?.type==="category"?q.Category:q.YValue,t=Te(e)[1],n={...e.orderOptions.data??{},orderType:q.MultiAxes};a===se.customSort&&s===q.Category&&(n.orderByX=[...i]),t===se.customSort&&r===q.Category&&(n.orderByY=[...i]),Object.keys(n).length>1&&(e.orderOptions.data=n)},Ps=(i,e)=>{let s=e.series[0];s.gridLine&&(s.gridLine.width=i)},Ds=i=>i.series[0].gridLine?.width,js=(i,e)=>{let s=e.series[0],a=i?.length===4&&i.every(r=>typeof r=="number");s.gridLine&&a&&(s.gridLine.color=i)},$s=i=>i.series[0].gridLine?.color,Zs=(i,e)=>{let s=e.legend;s&&(s.position=i)},Ws=i=>i.legend?.position??Ce.Bottom,Ys=i=>i.series[0].query?.outStatistics?.[0]?.onStatisticField,_s=i=>{let{field:e,config:s,layerInfo:a,commonStrings:r}=i,t=s.series[0].query?.outStatistics?.[0],n=oe(s,a,r);t?(t.onStatisticField=e,t.outStatisticFieldName=`${t.statisticType}_${e}`):s.series[0].query={outStatistics:[{onStatisticField:e,outStatisticFieldName:`${A.Count}_${e}`,statisticType:A.Count}]},n&&s.title&&(s.title.content.text=Q(s,a,r))},Us=i=>i.series[0].query?.outStatistics?.[0].statisticType??A.Count,Xs=i=>{let{aggregationType:e,config:s,layerInfo:a,commonStrings:r}=i,t=s.series[0]?.query?.outStatistics?.[0],n=oe(s,a,r);t&&e!==A.NoAggregation&&(t.statisticType=e,t.outStatisticFieldName=`${e}_${t.onStatisticField}`),(e===A.Count||e===A.Sum)&&Yi(V.Zero,s),n&&s.title&&(s.title.content.text=Q(s,a,r))},Hs=i=>i.nullPolicy,Yi=(i,e)=>{e.nullPolicy=i},zs=i=>i.series[0].emptyCells,Qs=(i,e)=>{e.series[0].emptyCells=i},Js=i=>i.series[0].emptyCells?.text,Gs=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.text=i:e.series[0].emptyCells={text:i}},Ks=i=>i.includeLeapDay,et=(i,e)=>{e.includeLeapDay=i},it=i=>i.series[0].emptyCells?.symbol,st=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.symbol=i:e.series[0].emptyCells={symbol:i}};function tt(i){return i.viewType}function rt(i,e){ti(e)||(e.viewType=i)}function at(i){return i.series[0].classBreaksRules?.breaksCount??P.classBreaks.breaksCount}function nt(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.breaksCount=i??P.classBreaks.breaksCount:e.series[0].classBreaksRules={breaksCount:i??P.classBreaks.breaksCount}}function ot(i){return i.series[0].classBreaksRules?.classificationMethod}function lt(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.classificationMethod=i:e.series[0].classBreaksRules={classificationMethod:i},e.series[0].classBreaksRules.breaksCount=e.series[0].classBreaksRules.breaksCount??P.classBreaks.breaksCount}function ct(i,e){e.firstDayOfWeek=i}function gt(i){return i.firstDayOfWeek}function ut(i){return i.series[0].classBreaksRules?.colorRampInfo?.name}function yt(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.colorRampInfo={...e.series[0].classBreaksRules.colorRampInfo,name:i}:e.series[0].classBreaksRules={colorRampInfo:{name:i,flipped:!1}}}function mt(i){return i.series[0].classBreaksRules?.colorRampInfo?.flipped??!1}function dt(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.colorRampInfo={...e.series[0].classBreaksRules.colorRampInfo,flipped:i}:e.series[0].classBreaksRules={colorRampInfo:{flipped:i}}}function H(i){let{seriesIndex:e,xAxisField:s,aggregationType:a,config:r,layerInfo:t,commonStrings:n}=i,l=W(t?.layer).idField,c,d=r.series[e??0],F=!1,g=!1,u=!1;if(d===void 0){let o=r.series;F=o.slice(0,e).every(f=>I(f)),g=o.slice(0,e).every(f=>C(f)),u=o.slice(0,e).every(f=>Se(f))}else F=I(d),g=C(d),u=Se(d);F?c=Oe({commonStrings:n,seriesIndex:e,objectIDField:l}):g?c=Ee({commonStrings:n,seriesIndex:e,objectIDField:l}):u?c=Re(n,l):c=Me({seriesIndex:e,objectIDField:l,commonStrings:n});let y=r.series[0]?.dataLabels,m={...c,x:s,y:"",dataLabels:{...c.dataLabels,type:c.dataLabels?.type??h.Text,content:{...c.dataLabels?.content,...y?.content,type:Le.TS},visible:y?.visible??!1}};if(m.query={groupByFieldsForStatistics:[s]},a!==A.NoAggregation&&l!==void 0){let o=`${a}_${l}_0`.toUpperCase();m.y=o,m.query.outStatistics=[{statisticType:a,onStatisticField:l,outStatisticFieldName:o}]}if(k(r.series[0])&&k(m)){let o=Ci(r);o===G.Quarter&&(o=G.Month),m.temporalBinning={...r.series[0]?.temporalBinning,unit:o}}return J(m)}function Q(i,e,s){let{layerFieldsInfo:a}=e,{idField:r,isTraditionalTypeOID:t}=W(e.layer),n=j(i),l=ne(i),c=bi(i),d=ae(i),F=t&&(l.length===0||l.includes(r)),g=Ve(c,s),u=F?"":l.map(x=>O(a??[],x)).join(", "),y=O(a??[],n),m=O(a??[],d),o=i.series.some(x=>N(x)),f=o?"category":"xAxisField",b=y,v="";if(he({fieldName:n,numericFields:l,fieldList:a}))v=$(s.titleLabels.aggrTypeOfAggrFields,{aggregationType:g,aggregationFields:u});else if(c===A.NoAggregation){let x=F?r:u;if(d===""){let S=o?"aggrTypeCategory":"aggrTypeXAxisField";v=$(s.titleLabels[S],{aggregationType:x,[f]:b})}else{let S=o?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";v=$(s.titleLabels[S],{aggregationType:x,[f]:b,splitByField:m})}}else if(c===A.Count)if(d===""){let x=o?"aggrTypeCategory":"aggrTypeXAxisField";v=$(s.titleLabels[x],{aggregationType:g,[f]:b})}else{let x=o?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";v=$(s.titleLabels[x],{aggregationType:g,[f]:b,splitByField:m})}else if(d!==""){let x=o?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";v=$(s.titleLabels[x],{aggregationType:g,aggregationField:u,[f]:b,splitByField:m})}else if(l.length>0){let x=o?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";v=$(s.titleLabels[x],{aggregationType:g,aggregationFields:u,[f]:b})}return v}var hi=i=>ie({where:i.query?.where,normalize:!1,escape:!1})??"",bi=i=>i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??A.NoAggregation,ae=ve(i=>{let e=i?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return _e(i?.series?.[0]?.query?.where)?"":e},i=>i?.series?.[0]?.query?.where),ne=i=>{let e=[];if(ae(i)==="")e=i?.series.map(s=>{let a=s.query?.outStatistics?.map(r=>r.onStatisticField)??[];return a?.length>0?a:s.y}).flat()??[];else{let s=i?.series?.[0],a=s?.query?.outStatistics?.[0]?.onStatisticField??[s?.y].flat()[0];e=a!==void 0?[a]:[]}return e.filter(s=>s!=="")};function Ti(i){let{splitByField:e,numericFields:s,layer:a,seriesIndex:r}=i,t=W(a).idField??"";return e===""?s[r]??t:s[0]??t}function _i(i){let{numericFields:e,aggregationType:s,config:a,layerInfo:r}=i,t=!1;s===A.Count?t=!0:s===A.NoAggregation&&(t=e.every(c=>{let d=r.layerFieldsInfo.find(F=>F.name===c);return d!==void 0?de(d):!1})),xe(a,1,t);let n=a.series.some(c=>I(c)),l=a.series.some(c=>C(c));if(n||l){let c=j(a),d=r.layerFieldsInfo.find(g=>g.name===c),F=d!==void 0&&de(d);xe(a,0,F)}}var Te=i=>{let e;if(Z(i)){let s=i.orderOptions?.data?.orderByX??[""],a=i.orderOptions?.data?.orderByY??[""],r=i.axes?.[0]?.valueFormat?.type==="category"?q.Category:q.YValue,t=i.axes?.[1]?.valueFormat?.type==="category"?q.Category:q.YValue;e=[Be(s,r),Be(a,t)]}else{let s=i.orderOptions?.data?.orderType??q.Category,a=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy:Ae.Ascending;e=[xi(a,s)]}return e};function Ui(i){let{xAxisField:e,numericFields:s,aggregationType:a,config:r,layerInfo:t,commonStrings:n}=i,{layerFieldsInfo:l}=t,c=!1,d=H({config:r,xAxisField:e,aggregationType:a,layerInfo:t,seriesIndex:0,commonStrings:n}),F=U({config:r,xAxisField:e,numericFields:s,aggregationType:a,layer:t.layer,fieldList:l}).name,g={...d,id:`series_${Date.now()}`,name:n.axisLabels.values,x:ee,y:F},u=[];for(let m of s)u.push({onStatisticField:m,outStatisticFieldName:`${m}_0`.toUpperCase(),statisticType:a});g.query={outStatistics:u};let y=r.series[0];return y!==void 0&&(g.id=y.id,(I(g)&&I(y)||C(g)&&C(y))&&z(g,y),r.colorMatch||(N(y)&&N(g)?g.fillSymbol=y.fillSymbol:(I(g)&&I(y)||C(g)&&C(y))&&(g.lineSymbol=y.lineSymbol,g.markerSymbol=y.markerSymbol),c=!0),g.id=y.id,y.name!==d.name&&(g.name=y.name)),r.series.length===1&&((I(g)||C(g))&&z(g,r.series[0]),r.colorMatch||(N(g)?g.fillSymbol=r.series[0].fillSymbol:(I(g)||C(g))&&(g.lineSymbol=r.series[0].lineSymbol,g.markerSymbol=r.series[0].markerSymbol),c=!0)),r.colorMatch=!c,[g]}function vi(i){let{xAxisField:e,numericFields:s,aggregationType:a,config:r,layerInfo:t,commonStrings:n}=i,{layerFieldsInfo:l}=t,c=W(t.layer).idField,d=[],F=!1;for(let o=0;o<s.length;o+=1){let f=H({config:r,xAxisField:e,aggregationType:a,layerInfo:t,seriesIndex:o,commonStrings:n}),b=r.series[o]?.y,v=typeof b=="string"&&b.trim()!==""&&!l.find(B=>B.name===b)?b:U({config:r,xAxisField:e,numericFields:s,aggregationType:a,layer:t.layer,numericFieldIndex:o,fieldList:l}).name,x=s[o],S={...f,query:{...f.query}};s&&x!==c&&(S={...S,id:x,name:O(l,x)});let w=x;S.query!==void 0&&(a!==A.NoAggregation?(w=v,S.query.outStatistics=[{...f.query?.outStatistics?.[0]??{},onStatisticField:x,outStatisticFieldName:v,statisticType:a}]):delete S.query.outStatistics),S.y=w;let p=r.series.find(B=>B.query?.outStatistics?.[0]?.onStatisticField===x&&B.query.where===void 0||B.query?.outStatistics===void 0&&(B.y===x||B.x===x));if(p!==void 0&&typeof p.y=="string"&&p.y.trim()!==""){(I(S)&&I(p)||C(S)&&C(p))&&z(S,p),r.colorMatch||(N(S)&&N(p)?S.fillSymbol=p.fillSymbol:(I(S)&&I(p)||C(S)&&C(p))&&(S.lineSymbol=p.lineSymbol,S.markerSymbol=p.markerSymbol),F=!0);let B=H({config:r,xAxisField:e,aggregationType:a,layerInfo:t,seriesIndex:o,commonStrings:n});S.id=p.id,p.id!==B.id&&p.name!==B.name&&(S.id=p.id,S.name=p.name),S.assignToSecondValueAxis=p.assignToSecondValueAxis,S.type===h.HeatSeries&&p.type===h.HeatSeries&&(S.y=p.y,S.heatRulesType=p.heatRulesType)}d.push(S)}let g=d.filter(o=>N(o)),u=d.filter(o=>I(o)||C(o)),y=r.series.filter(o=>N(o)),m=r.series.filter(o=>I(o)||C(o));return y.length===1&&g.length===1&&!r.colorMatch&&(N(y[0])&&N(g[0])&&(g[0].fillSymbol=y[0].fillSymbol),F=!0),m.length===1&&u.length===1&&((I(m[0])&&I(u[0])||C(m[0])&&C(u[0]))&&z(u[0],m[0]),r.colorMatch||((I(m[0])&&I(u[0])||C(m[0])&&C(u[0]))&&(u[0].lineSymbol=m[0].lineSymbol,u[0].markerSymbol=m[0].markerSymbol),F=!0)),r.colorMatch=!F,d}function ft(i){let{aggregationType:e,config:s,layerInfo:a,commonStrings:r}=i,{layerFieldsInfo:t,layer:n}=a,l=j(s),c=ne(s),d=ae(s),F=oe(s,a,r),g=Ii(s,a,r);if(s.series.forEach((u,y)=>{let m=U({config:s,xAxisField:l,numericFields:c,aggregationType:e,splitByField:d,layer:n,seriesIndex:y,numericFieldIndex:y,fieldList:t}).name;u.y=m;let o=Ti({splitByField:d,numericFields:c,layer:n,seriesIndex:y}),f=u.query?.outStatistics?.[0]?.onStatisticField??o;u.query={...u.query,outStatistics:e===A.NoAggregation?void 0:[{...u.query?.outStatistics?.[0],outStatisticFieldName:m,statisticType:e,onStatisticField:f}]},"temporalBinning"in u&&u.temporalBinning!==void 0&&(u.temporalBinning.nullPolicy=e===A.NoAggregation?V.Interpolate:V.Null),e===A.NoAggregation&&ki(s)}),F&&s.title&&(s.title.content.text=Q(s,a,r)),g&&s.series[0].type!==h.HeatSeries){let u=te({config:s,layerInfo:a,commonStrings:r,numericFields:c,aggregationType:e});D(s,1,u)}}function Xi(i){let{splitByField:e,xAxisField:s,numericFields:a,aggregationType:r,config:t,layerInfo:n,commonStrings:l,splitByFieldInfos:c}=i,{layer:d,layerFieldsInfo:F}=n,{categoriesArray:g,splitByFieldType:u}=c,y=Ti({splitByField:e,numericFields:a,layer:d,seriesIndex:0}),m=[],o=!1;if(g.length===0){m=vi({xAxisField:s,numericFields:a,aggregationType:r,config:t,layerInfo:n,commonStrings:l});for(let f of m)f.query&&(f.query.where=`${e}=''`)}else for(let f=0;f<g.length;f+=1){let b=g[f],v=U({config:t,xAxisField:s,numericFields:a,aggregationType:r,layer:n.layer,seriesIndex:f,splitByField:e,fieldList:F}).name,x=H({config:t,xAxisField:s,aggregationType:r,layerInfo:n,seriesIndex:f,commonStrings:l}),S=fe({queryObject:n.layer,fieldName:e,fieldValue:b??""}),w=`${b}`,p={...x,id:w,name:S??w,y:v,query:{...x.query,where:`${e}=${u===ke.String&&b!==null?`'${b}'`:b}`,outStatistics:r!==A.NoAggregation?[{...x.query?.outStatistics?.[0]??{},onStatisticField:y,outStatisticFieldName:v,statisticType:r}]:void 0}},B=t.series.find(M=>String(hi(M)).trim().replace(/'/gu,"")===w);B!==void 0&&((I(p)&&I(B)||C(p)&&C(B))&&z(p,B),t.colorMatch||(N(p)&&N(B)?p.fillSymbol=B.fillSymbol:(I(p)&&I(B)||C(p)&&C(B))&&(p.lineSymbol=B.lineSymbol,p.markerSymbol=B.markerSymbol),o=!0),p.id=B.id,p.name=B.name,p.assignToSecondValueAxis=B.assignToSecondValueAxis),p.query&&(p.query.fetchNullValues=t.series.some(M=>M.query?.fetchNullValues)),m.push(p)}return t.colorMatch=!o,m}var pt=i=>{let{xAxisFieldName:e,splitByField:s,numericFields:a,aggregationType:r,config:t,layerInfo:n,commonStrings:l,splitByFieldInfos:c}=i,{layerFieldsInfo:d}=n??{},F=Fi(t),g=j(t),u=d.find(T=>T.name===g),y=t.series[0].query?.fetchNullValues,m="nullCategory"in t.series?.[0]?t.series[0].nullCategory:void 0,o=t.series[0]?.query===void 0,f=d.find(T=>T.name===e),b=oe(t,n,l),v=Ii(t,n,l),x=Hi(t,n),S=Fe(t),w=t.series.some(T=>N(T)),p=gi(t.series),B=ui(t.series),M=Z(t),R={};M&&(R.classBreaksRules=t.series[0]?.classBreaksRules,R.xTemporalBinning=t.series[0]?.xTemporalBinning,R.yTemporalBinning=t.series[0]?.yTemporalBinning,R.emptyCells=t.series[0]?.emptyCells,R.nullPolicy=t.nullPolicy);let le=!1;if(ii(f)?S=ge():!me(u)&&me(f)?S=ue():!_(u)&&_(f)?(S=ue(),le=!0):_(u)&&!_(f)&&(w?S=ge():S=we(),le=!0),S!==void 0&&yi(t,l,S),F===0&&(t.series=[H({config:t,xAxisField:e,aggregationType:r,layerInfo:n,commonStrings:l})]),t.series.forEach(T=>{T.x=e,T.query!==void 0&&(T.query.groupByFieldsForStatistics=[e])}),s===""||a.length>1?he({fieldName:e,numericFields:a,fieldList:d})?t.series=Ui({config:t,layerInfo:n,xAxisField:e,numericFields:a,aggregationType:r,commonStrings:l}):t.series=vi({config:t,layerInfo:n,xAxisField:e,numericFields:a,aggregationType:r,commonStrings:l}):c&&(t.series=Xi({config:t,layerInfo:n,splitByField:s,xAxisField:e,numericFields:a,aggregationType:r,commonStrings:l,splitByFieldInfos:c})),x&&t.series[0].type!==h.HeatSeries){let T=O(d,e);D(t,0,T)}if(v&&t.series[0].type!==h.HeatSeries){let T=te({config:t,layerInfo:n,commonStrings:l,numericFields:a,aggregationType:r});D(t,1,T)}if(b&&t.title&&(t.title.content.text=Q(t,n,l)),L({config:t,value:null,axisIndex:1,isMax:!1}),L({config:t,value:null,axisIndex:1,isMax:!0}),_i({numericFields:a,aggregationType:r,config:t,layerInfo:n}),(p||B)&&(L({config:t,value:null,axisIndex:0,isMax:!1}),L({config:t,value:null,axisIndex:0,isMax:!0}),le&&r!==A.NoAggregation)){let T=S?.type===h.DateAxisFormat?V.Null:V.Interpolate;qi(T,t)}M&&(t.series[0].classBreaksRules=R.classBreaksRules,t.series[0].xTemporalBinning=R.xTemporalBinning,t.series[0].yTemporalBinning=R.yTemporalBinning,t.series[0].emptyCells=R.emptyCells,t.nullPolicy=R.nullPolicy),o?t.series.forEach(T=>{delete T.query}):y&&t.series.forEach(T=>{T.query&&(T.query.fetchNullValues=y)}),m&&t.series.forEach(T=>{(T.type===h.BarSeries||T.type===h.LineSeries||T.type===h.RadarSeries)&&(T.nullCategory=m)})},z=(i,e)=>{i.markerVisible=e.markerVisible,i.lineSmoothed=e.lineSmoothed,i.showArea=e.showArea,i.areaColor=e.areaColor,i.stackNegativeValuesToBaseline=e.stackNegativeValuesToBaseline,e.lineSymbol&&(i.lineSymbol={...e.lineSymbol,color:i.lineSymbol?.color}),e.markerSymbol&&(i.markerSymbol={...e.markerSymbol,color:i.markerSymbol?.color})},St=i=>{let{config:e,seriesIndex:s,layerInfo:a,commonStrings:r}=i,t=e.series?.[s],n=ae(e),l;if(Y(e.series)===E.BarAndLineFromFields)l=r.axisLabels.values;else if(Ie(n)){let c=t.query?.outStatistics?.[0]?.onStatisticField;c!==void 0&&c!==W(a.layer).idField&&(l=O(a.layerFieldsInfo,c))}else{let c=String(hi(t)).trim().replace(/'/gu,"");l=fe({queryObject:a.layer,fieldName:n,fieldValue:c??""})??c}return l??t.id},Ft=(i,e)=>{if(Z(e))Wi(i,e);else{e.orderOptions??={};let s=e.orderOptions?.data?.orderType;Te(e)[0]===se.customSort&&s===q.Category&&(e.orderOptions.data={orderType:q.Category,orderBy:[...i]})}},xt=async i=>{let{config:e,layerInfo:s,errorStrings:a}=i,r=j(e),t=Fe(e)?.type,n=ne(e),l=Y(e.series),c=[];return t===h.CategoryAxisFormat&&(l===E.BarAndLineFromFields||r===ee?c=n.map(d=>O(s?.layerFieldsInfo,d)):r.trim()!==""&&r!==ee&&s!==void 0&&(c=await mi({layerInfo:s,config:e,category:r,errorStrings:a}))),c};function oe(i,e,s){let a=Q(i,e,s),r=Si(i),t=X(i);return a===r||t}function Ii(i,e,s){let a=te({config:i,layerInfo:e,commonStrings:s,numericFields:ne(i),aggregationType:bi(i)}),r=re(1,i),t=X(i);return a===r||t}function Hi(i,e){let s=O(e.layerFieldsInfo,j(i)),a=re(0,i),r=X(i);return s===a||r}function Bt(i){return k(i.series[0])?i.series[0].binTemporalData??!0:!1}function ht(i,e){e?.series.forEach(s=>{(s?.type===h.BarSeries||s?.type===h.LineSeries)&&(s.binTemporalData=i,i?s.temporalBinning={unit:G.Day,size:0,timeAggregationType:qe.Start,trimIncompleteTimeInterval:!0,nullPolicy:V.Null}:delete s.temporalBinning)})}return{a:ms,b:Ci,c:ds,d:fs,e:ps,f:Ai,g:qi,h:Ss,i:Fs,j:xs,k:ki,l:Bi,m:be,n:Bs,o:hs,p:bs,q:Oi,r:Ts,s:vs,t:Is,u:Cs,v:As,w:qs,x:ks,y:Ls,z:Ns,A:ws,B:Rs,C:Zi,D:Os,E:Es,F:Ms,G:Vs,H:Ps,I:Ds,J:js,K:$s,L:Zs,M:Ws,N:Ys,O:_s,P:Us,Q:Xs,R:Hs,S:Yi,T:zs,U:Qs,V:Js,W:Gs,X:Ks,Y:et,Z:it,_:st,$:tt,aa:rt,ba:at,ca:nt,da:ot,ea:lt,fa:ct,ga:gt,ha:ut,ia:yt,ja:mt,ka:dt,la:Q,ma:bi,na:ae,oa:ne,pa:Te,qa:ft,ra:pt,sa:St,ta:Ft,ua:xt,va:Bt,wa:ht}},"intl",a,b,c,d,e,f)
2
+ import f from"./K6TVBCNN.js";import e from"./BVFXPV3H.js";import d from"./XTNWSVP5.js";import{c as re}from"./AUECIKS7.js";import c from"./QB5CCITI.js";import b from"./ZLA2ZMVA.js";import{g as pe,i as I,j as C,k as N,l as Se,m as gi,n as ui}from"./KGNYAMFB.js";import a from"./XXG3ABG4.js";import{e as K,f as Pe}from"./777EBGS5.js";import{c as P,d as E,n as O}from"./TA5LVOWS.js";import{$ as Ee,G as ge,H as ue,I as we,V as Re,_ as Oe,ba as Me,f as Ne,wa as Ve}from"./IQAKPU7N.js";import{a as ke,f as Le}from"./75Y43JLP.js";import{d as ve,g as J,k as Ie}from"./FIMXZMTB.js";import{a as se}from"./EZM4ZDQI.js";import{a as ce}from"./43P4WOC4.js";import{a as h,b as A,e as Ce,h as Ae,k as G,n as V,o as qe,v as q}from"./XOB365BI.js";export default $arcgis.t(([{substitute:$},{B:$e,Eb:si,H:Ze,K:We,Nb:ti,Pb:ri,Q:Ye,R:ie,S:_e,T:Y,Ua:He,W:Ue,Wa:ye,X:k,bb:ze,cc:ai,d:De,eb:Qe,ec:ni,gc:oi,hb:Je,hc:li,kc:ci,m:Z,n:je,pb:Ge,qb:Ke,rb:W,s:ee,sb:ei,tb:_,ua:Xe,ub:ii,vb:me,wb:de,zb:fe},{a:D,b:te,d:L,e:Fe,f:yi,g:xe,r:mi},{a:di,b:fi,c:pi},{a:Si,e:Fi},{b:X},{a:xi,b:Be,f:j,g:U,i:he}])=>{var ms=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.size),e},Ci=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.unit),e},ds=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.timeAggregationType),e},fs=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.trimIncompleteTimeInterval),e},ps=i=>{let e,s=i.series[0];return k(s)&&(e=s.temporalBinning?.nullPolicy),e},Ai=(i,e)=>{e?.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.size=i)}),L({config:e,value:null,axisIndex:1,isMax:!1}),L({config:e,value:null,axisIndex:1,isMax:!0})},qi=(i,e)=>{e?.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.nullPolicy=i)}),L({config:e,value:null,axisIndex:1,isMax:!1}),L({config:e,value:null,axisIndex:1,isMax:!0})},Ss=(i,e)=>{e.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.unit=i)}),L({config:e,value:null,axisIndex:1,isMax:!1}),L({config:e,value:null,axisIndex:1,isMax:!0})},Fs=(i,e)=>{e.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.timeAggregationType=i)}),L({config:e,value:null,axisIndex:1,isMax:!1}),L({config:e,value:null,axisIndex:1,isMax:!0})},xs=(i,e)=>{e.series?.forEach(s=>{k(s)&&(s.temporalBinning??={},s.temporalBinning.trimIncompleteTimeInterval=i)}),L({config:e,value:null,axisIndex:1,isMax:!1}),L({config:e,value:null,axisIndex:1,isMax:!0})},ki=i=>{Ai(0,i)},Li=Object.defineProperty,Ni=Object.getOwnPropertyDescriptor,wi=(i,e,s,a)=>{for(var r=Ni(e,s),t=i.length-1,n;t>=0;t--)(n=i[t])&&(r=n(e,s,r)||r);return r&&Li(e,s,r),r},Ri=i=>{let e;return Z(i)?e=i.outTimeZone:i?.series.forEach(s=>{(s.type===h.BarSeries||s.type===h.RadarSeries||s.type===h.LineSeries)&&s.temporalBinning&&(e=s.temporalBinning.outTimeZone)}),e||(e=i?.axes?.[0]?.valueFormat.type===h.DateAxisFormat?i.axes[0].valueFormat.intlOptions.timeZone:void 0),e},Bi=(i,e)=>{let s=ri(i);Z(e)?i?e.outTimeZone=s:delete e.outTimeZone:e?.series.forEach(a=>{(a.type===h.BarSeries||a.type===h.RadarSeries||a.type===h.LineSeries)&&(i?(a.temporalBinning??={},a.temporalBinning.outTimeZone=s):a.temporalBinning&&delete a.temporalBinning.outTimeZone)}),e?.axes?.[0]?.valueFormat.type===h.DateAxisFormat&&(i?e.axes[0].valueFormat.intlOptions.timeZone=s:delete e.axes[0].valueFormat.intlOptions.timeZone)},be=class extends fi{get timeZone(){return Ri(this._config)}set timeZone(e){Bi(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}};wi([pi],be.prototype,"timeZone");function Bs(i,e){let s;return e!==void 0&&(s={...e},s.legend!==void 0&&(s.legend.position=i)),s}function hs(i,e){let s;return e!==void 0&&(s={...e},s.legend!==void 0&&(s.legend.visible=i)),s}function bs(i,e){let s;return e!==void 0&&(s={...e,rotated:i}),s}function Oi(i){let e;return i!==void 0&&(e={...i},delete e.axes?.[0]?.minimum,delete e.axes?.[0]?.maximum,delete e.axes?.[1]?.minimum,delete e.axes?.[1]?.maximum),e}function Ts(i,e){return e!=null||pe(i)}async function vs(i){let{config:e,layer:s,abortSignal:a}=i,r=!1;return K(s)||Pe(e)?e&&K(s)&&(r=await Je({config:e,layer:s,abortSignal:a})):r=!0,r}async function Ei(i){let{queryObject:e,chartConfig:s,splitByField:a,errorStrings:r,abortSignal:t,runtimeDataFilters:n,ignoreViewExtent:l,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:d,chartLimits:F}=i,g=[],u,y=J(s),m=y.series[0],o=si({queryObject:e,chartConfig:y,runtimeDataFilters:n,ignoreViewExtent:l});if(o.outStatistics?.[0]?.outStatisticFieldName&&(o.outStatistics[0].outStatisticFieldName=Ne.outStatistics.outStatisticFieldName),k(m)&&Ue({xAxisValueFormatType:De(y),setTimeBinningInfoWhenNotProvided:c,seriesConfig:m,queryObject:e})&&Ze(a,e)){let{temporalBinning:f,x:b}=m,{uniqueQuery:v}=ye({chartConfig:y,queryConfig:o,queryObject:e,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:d,chartLimits:F}),x=s.axes?.[0].valueFormat.type===h.DateAxisFormat?s.axes[0].valueFormat.intlOptions.timeZone:void 0;u=await Qe({queryObject:e,dateField:b,splitByField:a,queryConfig:v,axisTimeZone:x,temporalBinning:f,errorStrings:r,abortSignal:t}),g=Array.from(new Set(u.flatMap(S=>{let{stackedAttributes:w}=S,p=[];return w&&(p=w.map(B=>B[a]).filter(B=>B!==void 0)),p})).values())}else{let{uniqueQuery:f}=ye({chartConfig:y,queryObject:e,queryConfig:o,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:d,chartLimits:F}),{elementCount:b}=await ai({chartConfig:y,queryObject:e,queryConfig:o,behaviorAfterLimit:F?.behaviorAfterLimit,numberMaxOfFeaturesToFetch:f.num,abortSignal:t});u=await ze({queryObject:e,queryConfig:f,featureCount:b,errorStrings:r,abortSignal:t}),g=Array.from(new Set(u.map(v=>v.attributes[a]).filter(v=>v!==void 0)).values())}return{allValues:g,preFetchedQueryResponse:u}}function Mi(i,e){let s=new Map;return i.series.forEach(a=>{let r=ie({where:a.query?.where,normalize:!0,escape:!1});e&&r!==null&&(r=Number(r));let t=ce([a]);t!==void 0&&s.set(t,[...s.get(t)??[],r])}),s}function Vi(i){let{allValues:e,configUniqueValuesPerSeriesType:s,initialConfigWasEmpty:a}=i,r=new Map;return Array.from(s.keys()).forEach(t=>{let n=s.get(t)??[],l=[];a?l=e:e.forEach(c=>{n.includes(c)||l.push(c)}),r.set(t,l)}),r}function Pi(i){let{chartConfig:e,missingValue:s,splitByField:a,seriesTemplate:r}=i,t=JSON.parse(JSON.stringify({...e.series[0],...r}));if(t.query){if(s===null?t.id=P.nullValue:s===""?t.id=P.emptyStringValue:t.id=`${s}`,t.name=`${s}`,t.query.outStatistics?.[0]!==void 0){let l=t.id;t.query.outStatistics[0].outStatisticFieldName=l,"y"in t&&(t.y=l)}let n=typeof s=="number"||s===null?s:`'${s}'`;t.query.where=`${a}=${n}`}return t}async function Di(i){let{updateSplitBySeries:e,config:s,queryObject:a,errorStrings:r,abortSignal:t,runtimeDataFilters:n,ignoreViewExtent:l,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:d,chartLimits:F}=i,{seriesTemplate:g}=e??{},u;if(a&&!K(a)&&e!==void 0&&s!==void 0&&(s.series.length>0||g!==void 0)&&e.addMissingSeries){let y=s.series.length===0;s.series.length===0&&g!==void 0&&s.series.push(g);let m=Y(s.series);if(m===E.BoxPlotMonoFieldAndSplitBy||m===E.BoxPlotMultiFieldsAndSplitBy||m===E.BoxPlotMonoFieldAndCategoryAndSplitBy||m===E.BarAndLineSplitBy||m===E.BarAndLineSplitByNoAggregation){let o=Ye(s.series[0]?.query?.where),f=Ge(a),b=Ke(o,f),v=b?ei(b):!1,x=await Ei({queryObject:a,chartConfig:s,splitByField:o,abortSignal:t,runtimeDataFilters:n,ignoreViewExtent:l,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:d,chartLimits:F,errorStrings:r}),{allValues:S}=x;if({preFetchedQueryResponse:u}=x,S.length>0){let w=Mi(s,v),p=Vi({allValues:S,configUniqueValuesPerSeriesType:w,initialConfigWasEmpty:y});Array.from(p.keys()).forEach(B=>{(p.get(B)??[]).forEach(M=>{s.series.push(Pi({chartConfig:s,seriesTemplate:g,missingValue:M,splitByField:o}))}),y&&s.series.shift()})}}}return u}function ji(i,e){e&&!pe(e)&&(e=We({chartConfig:e,queryObject:i}))}async function Is(i){let{configToAlter:e,layer:s,addMissingSeries:a,updateSplitBySeries:r,chartContainer:t,queryObject:n,abortSignal:l,runtimeDataFilters:c,ignoreViewExtent:d,setTimeBinningInfoWhenNotProvided:F,returnFeaturesExtent:g,chartLimits:u,timeZone:y,errorStrings:m}=i,o=e,f;return o&&(ji(s,o),o=await di(o,s,void 0,l),a&&n&&(f=await Di({updateSplitBySeries:r,config:o,queryObject:n,errorStrings:m,abortSignal:l,runtimeDataFilters:c,ignoreViewExtent:d,setTimeBinningInfoWhenNotProvided:F,returnFeaturesExtent:g,chartLimits:u})),o=Xe(o,t),Bi(y,o)),{alteredConfig:o,preFetchedQueryResponse:f}}function $i(i,e){let s=!1;if(e!==void 0){let a=oi({key:$e.Average,splitBy:e});s=Number.isFinite(i[a])}return s}function Cs(i){let{data:e,config:s,showEmptySeries:a}=i,r=s.series.length,t=J(s),n=!1;if(!a&&r>1&&e){let l=ni(e),c=ce(s?.series),d=Y(s?.series),F=new Set;switch(c){case h.ComboLineAndBarSeries:case h.BarSeries:case h.RadarSeries:case h.LineSeries:{t.series.forEach(u=>{if(Array.isArray(l)){let y="";"y"in u&&(y=Array.isArray(u.y)?u.y[0]:u.y,d===E.BarAndLineSplitByNoAggregation&&(y=`${y}_${ie({where:u.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),l.some(m=>ci({dataItem:m,x:u.x,y,aggregationType:s.series[0].query?.outStatistics?.[0]?.statisticType}))&&F.add(u))}});break}case h.BoxPlotSeries:{if(je(s)){let u=He(s);s.series.forEach(y=>{let m,o;y.type===h.BoxPlotSeries?(m=e.dataItems,o=m?.some(f=>li({dataItem:f,splitBy:y.query?.where,showOutliers:u}))):y.type===h.LineSeries&&(m=e.meanLines,o=m?.some(f=>$i(f,y.query?.where))),o&&F.add(y)})}break}}let g=Array.from(F.values());n=g.length>0&&g.length<r,n&&(t.series=g)}return{seriesFilteredOut:n,filteredConfig:t}}var As=i=>i.hideEmptyRowsAndColumns,qs=(i,e)=>{i.hideEmptyRowsAndColumns=e},ks=(i,e)=>{let s=i.series[0];s.heatRulesType=e},Ls=i=>i.series[0].heatRulesType,Ns=(i,e)=>{let s=i.series[0];s.gradientRules=e},ws=i=>i.series[0].gradientRules,Rs=i=>{let{yField:e,config:s,layerInfo:a}=i,{layerFieldsInfo:r}=a,t=re(1,s),n=Zi(s),l=X(s),c=s.series[0];if(typeof e=="string"&&n!==e&&c&&(c.y=e,Oi(s),n===t||l)){let d=O(r,e);D(s,1,d)}},Zi=i=>i.series[0].y??"",Os=i=>{let{binning:e,config:s,commonStrings:a}=i,r=s.series[0];if(r.xTemporalBinning=e,e?.unit!==void 0&&e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits){let t=a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];D(s,0,t)}},Es=i=>i.series[0].xTemporalBinning,Ms=i=>{let{binning:e,config:s,commonStrings:a}=i,r=s.series[0];if(r.yTemporalBinning=e,e?.unit!==void 0&&e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits){let t=a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];D(s,1,t)}},Vs=i=>i.series[0].yTemporalBinning,Wi=(i,e)=>{e.orderOptions??={};let s=e.axes?.[0]?.valueFormat?.type==="category"?q.Category:q.YValue,a=Te(e)[0],r=e.axes?.[1]?.valueFormat?.type==="category"?q.Category:q.YValue,t=Te(e)[1],n={...e.orderOptions.data??{},orderType:q.MultiAxes};a===se.customSort&&s===q.Category&&(n.orderByX=[...i]),t===se.customSort&&r===q.Category&&(n.orderByY=[...i]),Object.keys(n).length>1&&(e.orderOptions.data=n)},Ps=(i,e)=>{let s=e.series[0];s.gridLine&&(s.gridLine.width=i)},Ds=i=>i.series[0].gridLine?.width,js=(i,e)=>{let s=e.series[0],a=i?.length===4&&i.every(r=>typeof r=="number");s.gridLine&&a&&(s.gridLine.color=i)},$s=i=>i.series[0].gridLine?.color,Zs=(i,e)=>{let s=e.legend;s&&(s.position=i)},Ws=i=>i.legend?.position??Ce.Bottom,Ys=i=>i.series[0].query?.outStatistics?.[0]?.onStatisticField,_s=i=>{let{field:e,config:s,layerInfo:a,commonStrings:r}=i,t=s.series[0].query?.outStatistics?.[0],n=oe(s,a,r);t?(t.onStatisticField=e,t.outStatisticFieldName=`${t.statisticType}_${e}`):s.series[0].query={outStatistics:[{onStatisticField:e,outStatisticFieldName:`${A.Count}_${e}`,statisticType:A.Count}]},n&&s.title&&(s.title.content.text=Q(s,a,r))},Us=i=>i.series[0].query?.outStatistics?.[0].statisticType??A.Count,Xs=i=>{let{aggregationType:e,config:s,layerInfo:a,commonStrings:r}=i,t=s.series[0]?.query?.outStatistics?.[0],n=oe(s,a,r);t&&e!==A.NoAggregation&&(t.statisticType=e,t.outStatisticFieldName=`${e}_${t.onStatisticField}`),(e===A.Count||e===A.Sum)&&Yi(V.Zero,s),n&&s.title&&(s.title.content.text=Q(s,a,r))},Hs=i=>i.nullPolicy,Yi=(i,e)=>{e.nullPolicy=i},zs=i=>i.series[0].emptyCells,Qs=(i,e)=>{e.series[0].emptyCells=i},Js=i=>i.series[0].emptyCells?.text,Gs=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.text=i:e.series[0].emptyCells={text:i}},Ks=i=>i.includeLeapDay,et=(i,e)=>{e.includeLeapDay=i},it=i=>i.series[0].emptyCells?.symbol,st=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.symbol=i:e.series[0].emptyCells={symbol:i}};function tt(i){return i.viewType}function rt(i,e){ti(e)||(e.viewType=i)}function at(i){return i.series[0].classBreaksRules?.breaksCount??P.classBreaks.breaksCount}function nt(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.breaksCount=i??P.classBreaks.breaksCount:e.series[0].classBreaksRules={breaksCount:i??P.classBreaks.breaksCount}}function ot(i){return i.series[0].classBreaksRules?.classificationMethod}function lt(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.classificationMethod=i:e.series[0].classBreaksRules={classificationMethod:i},e.series[0].classBreaksRules.breaksCount=e.series[0].classBreaksRules.breaksCount??P.classBreaks.breaksCount}function ct(i,e){e.firstDayOfWeek=i}function gt(i){return i.firstDayOfWeek}function ut(i){return i.series[0].classBreaksRules?.colorRampInfo?.name}function yt(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.colorRampInfo={...e.series[0].classBreaksRules.colorRampInfo,name:i}:e.series[0].classBreaksRules={colorRampInfo:{name:i,flipped:!1}}}function mt(i){return i.series[0].classBreaksRules?.colorRampInfo?.flipped??!1}function dt(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.colorRampInfo={...e.series[0].classBreaksRules.colorRampInfo,flipped:i}:e.series[0].classBreaksRules={colorRampInfo:{flipped:i}}}function H(i){let{seriesIndex:e,xAxisField:s,aggregationType:a,config:r,layerInfo:t,commonStrings:n}=i,l=W(t?.layer).idField,c,d=r.series[e??0],F=!1,g=!1,u=!1;if(d===void 0){let o=r.series;F=o.slice(0,e).every(f=>I(f)),g=o.slice(0,e).every(f=>C(f)),u=o.slice(0,e).every(f=>Se(f))}else F=I(d),g=C(d),u=Se(d);F?c=Oe({commonStrings:n,seriesIndex:e,objectIDField:l}):g?c=Ee({commonStrings:n,seriesIndex:e,objectIDField:l}):u?c=Re(n,l):c=Me({seriesIndex:e,objectIDField:l,commonStrings:n});let y=r.series[0]?.dataLabels,m={...c,x:s,y:"",dataLabels:{...c.dataLabels,type:c.dataLabels?.type??h.Text,content:{...c.dataLabels?.content,...y?.content,type:Le.TS},visible:y?.visible??!1}};if(m.query={groupByFieldsForStatistics:[s]},a!==A.NoAggregation&&l!==void 0){let o=`${a}_${l}_0`.toUpperCase();m.y=o,m.query.outStatistics=[{statisticType:a,onStatisticField:l,outStatisticFieldName:o}]}if(k(r.series[0])&&k(m)){let o=Ci(r);o===G.Quarter&&(o=G.Month),m.temporalBinning={...r.series[0]?.temporalBinning,unit:o}}return J(m)}function Q(i,e,s){let{layerFieldsInfo:a}=e,{idField:r,isTraditionalTypeOID:t}=W(e.layer),n=j(i),l=ne(i),c=bi(i),d=ae(i),F=t&&(l.length===0||l.includes(r)),g=Ve(c,s),u=F?"":l.map(x=>O(a??[],x)).join(", "),y=O(a??[],n),m=O(a??[],d),o=i.series.some(x=>N(x)),f=o?"category":"xAxisField",b=y,v="";if(he({fieldName:n,numericFields:l,fieldList:a}))v=$(s.titleLabels.aggrTypeOfAggrFields,{aggregationType:g,aggregationFields:u});else if(c===A.NoAggregation){let x=F?r:u;if(d===""){let S=o?"aggrTypeCategory":"aggrTypeXAxisField";v=$(s.titleLabels[S],{aggregationType:x,[f]:b})}else{let S=o?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";v=$(s.titleLabels[S],{aggregationType:x,[f]:b,splitByField:m})}}else if(c===A.Count)if(d===""){let x=o?"aggrTypeCategory":"aggrTypeXAxisField";v=$(s.titleLabels[x],{aggregationType:g,[f]:b})}else{let x=o?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";v=$(s.titleLabels[x],{aggregationType:g,[f]:b,splitByField:m})}else if(d!==""){let x=o?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";v=$(s.titleLabels[x],{aggregationType:g,aggregationField:u,[f]:b,splitByField:m})}else if(l.length>0){let x=o?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";v=$(s.titleLabels[x],{aggregationType:g,aggregationFields:u,[f]:b})}return v}var hi=i=>ie({where:i.query?.where,normalize:!1,escape:!1})??"",bi=i=>i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??A.NoAggregation,ae=ve(i=>{let e=i?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return _e(i?.series?.[0]?.query?.where)?"":e},i=>i?.series?.[0]?.query?.where),ne=i=>{let e=[];if(ae(i)==="")e=i?.series.map(s=>{let a=s.query?.outStatistics?.map(r=>r.onStatisticField)??[];return a?.length>0?a:s.y}).flat()??[];else{let s=i?.series?.[0],a=s?.query?.outStatistics?.[0]?.onStatisticField??[s?.y].flat()[0];e=a!==void 0?[a]:[]}return e.filter(s=>s!=="")};function Ti(i){let{splitByField:e,numericFields:s,layer:a,seriesIndex:r}=i,t=W(a).idField??"";return e===""?s[r]??t:s[0]??t}function _i(i){let{numericFields:e,aggregationType:s,config:a,layerInfo:r}=i,t=!1;s===A.Count?t=!0:s===A.NoAggregation&&(t=e.every(c=>{let d=r.layerFieldsInfo.find(F=>F.name===c);return d!==void 0?de(d):!1})),xe(a,1,t);let n=a.series.some(c=>I(c)),l=a.series.some(c=>C(c));if(n||l){let c=j(a),d=r.layerFieldsInfo.find(g=>g.name===c),F=d!==void 0&&de(d);xe(a,0,F)}}var Te=i=>{let e;if(Z(i)){let s=i.orderOptions?.data?.orderByX??[""],a=i.orderOptions?.data?.orderByY??[""],r=i.axes?.[0]?.valueFormat?.type==="category"?q.Category:q.YValue,t=i.axes?.[1]?.valueFormat?.type==="category"?q.Category:q.YValue;e=[Be(s,r),Be(a,t)]}else{let s=i.orderOptions?.data?.orderType??q.Category,a=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy:Ae.Ascending;e=[xi(a,s)]}return e};function Ui(i){let{xAxisField:e,numericFields:s,aggregationType:a,config:r,layerInfo:t,commonStrings:n}=i,{layerFieldsInfo:l}=t,c=!1,d=H({config:r,xAxisField:e,aggregationType:a,layerInfo:t,seriesIndex:0,commonStrings:n}),F=U({config:r,xAxisField:e,numericFields:s,aggregationType:a,layer:t.layer,fieldList:l}).name,g={...d,id:`series_${Date.now()}`,name:n.axisLabels.values,x:ee,y:F},u=[];for(let m of s)u.push({onStatisticField:m,outStatisticFieldName:`${m}_0`.toUpperCase(),statisticType:a});g.query={outStatistics:u};let y=r.series[0];return y!==void 0&&(g.id=y.id,(I(g)&&I(y)||C(g)&&C(y))&&z(g,y),r.colorMatch||(N(y)&&N(g)?g.fillSymbol=y.fillSymbol:(I(g)&&I(y)||C(g)&&C(y))&&(g.lineSymbol=y.lineSymbol,g.markerSymbol=y.markerSymbol),c=!0),g.id=y.id,y.name!==d.name&&(g.name=y.name)),r.series.length===1&&((I(g)||C(g))&&z(g,r.series[0]),r.colorMatch||(N(g)?g.fillSymbol=r.series[0].fillSymbol:(I(g)||C(g))&&(g.lineSymbol=r.series[0].lineSymbol,g.markerSymbol=r.series[0].markerSymbol),c=!0)),r.colorMatch=!c,[g]}function vi(i){let{xAxisField:e,numericFields:s,aggregationType:a,config:r,layerInfo:t,commonStrings:n}=i,{layerFieldsInfo:l}=t,c=W(t.layer).idField,d=[],F=!1;for(let o=0;o<s.length;o+=1){let f=H({config:r,xAxisField:e,aggregationType:a,layerInfo:t,seriesIndex:o,commonStrings:n}),b=r.series[o]?.y,v=typeof b=="string"&&b.trim()!==""&&!l.find(B=>B.name===b)?b:U({config:r,xAxisField:e,numericFields:s,aggregationType:a,layer:t.layer,numericFieldIndex:o,fieldList:l}).name,x=s[o],S={...f,query:{...f.query}};s&&x!==c&&(S={...S,id:x,name:O(l,x)});let w=x;S.query!==void 0&&(a!==A.NoAggregation?(w=v,S.query.outStatistics=[{...f.query?.outStatistics?.[0]??{},onStatisticField:x,outStatisticFieldName:v,statisticType:a}]):delete S.query.outStatistics),S.y=w;let p=r.series.find(B=>B.query?.outStatistics?.[0]?.onStatisticField===x&&B.query.where===void 0||B.query?.outStatistics===void 0&&(B.y===x||B.x===x));if(p!==void 0&&typeof p.y=="string"&&p.y.trim()!==""){(I(S)&&I(p)||C(S)&&C(p))&&z(S,p),r.colorMatch||(N(S)&&N(p)?S.fillSymbol=p.fillSymbol:(I(S)&&I(p)||C(S)&&C(p))&&(S.lineSymbol=p.lineSymbol,S.markerSymbol=p.markerSymbol),F=!0);let B=H({config:r,xAxisField:e,aggregationType:a,layerInfo:t,seriesIndex:o,commonStrings:n});S.id=p.id,p.id!==B.id&&p.name!==B.name&&(S.id=p.id,S.name=p.name),S.assignToSecondValueAxis=p.assignToSecondValueAxis,S.type===h.HeatSeries&&p.type===h.HeatSeries&&(S.y=p.y,S.heatRulesType=p.heatRulesType)}d.push(S)}let g=d.filter(o=>N(o)),u=d.filter(o=>I(o)||C(o)),y=r.series.filter(o=>N(o)),m=r.series.filter(o=>I(o)||C(o));return y.length===1&&g.length===1&&!r.colorMatch&&(N(y[0])&&N(g[0])&&(g[0].fillSymbol=y[0].fillSymbol),F=!0),m.length===1&&u.length===1&&((I(m[0])&&I(u[0])||C(m[0])&&C(u[0]))&&z(u[0],m[0]),r.colorMatch||((I(m[0])&&I(u[0])||C(m[0])&&C(u[0]))&&(u[0].lineSymbol=m[0].lineSymbol,u[0].markerSymbol=m[0].markerSymbol),F=!0)),r.colorMatch=!F,d}function ft(i){let{aggregationType:e,config:s,layerInfo:a,commonStrings:r}=i,{layerFieldsInfo:t,layer:n}=a,l=j(s),c=ne(s),d=ae(s),F=oe(s,a,r),g=Ii(s,a,r);if(s.series.forEach((u,y)=>{let m=U({config:s,xAxisField:l,numericFields:c,aggregationType:e,splitByField:d,layer:n,seriesIndex:y,numericFieldIndex:y,fieldList:t}).name;u.y=m;let o=Ti({splitByField:d,numericFields:c,layer:n,seriesIndex:y}),f=u.query?.outStatistics?.[0]?.onStatisticField??o;u.query={...u.query,outStatistics:e===A.NoAggregation?void 0:[{...u.query?.outStatistics?.[0],outStatisticFieldName:m,statisticType:e,onStatisticField:f}]},"temporalBinning"in u&&u.temporalBinning!==void 0&&(u.temporalBinning.nullPolicy=e===A.NoAggregation?V.Interpolate:V.Null),e===A.NoAggregation&&ki(s)}),F&&s.title&&(s.title.content.text=Q(s,a,r)),g&&s.series[0].type!==h.HeatSeries){let u=te({config:s,layerInfo:a,commonStrings:r,numericFields:c,aggregationType:e});D(s,1,u)}}function Xi(i){let{splitByField:e,xAxisField:s,numericFields:a,aggregationType:r,config:t,layerInfo:n,commonStrings:l,splitByFieldInfos:c}=i,{layer:d,layerFieldsInfo:F}=n,{categoriesArray:g,splitByFieldType:u}=c,y=Ti({splitByField:e,numericFields:a,layer:d,seriesIndex:0}),m=[],o=!1;if(g.length===0){m=vi({xAxisField:s,numericFields:a,aggregationType:r,config:t,layerInfo:n,commonStrings:l});for(let f of m)f.query&&(f.query.where=`${e}=''`)}else for(let f=0;f<g.length;f+=1){let b=g[f],v=U({config:t,xAxisField:s,numericFields:a,aggregationType:r,layer:n.layer,seriesIndex:f,splitByField:e,fieldList:F}).name,x=H({config:t,xAxisField:s,aggregationType:r,layerInfo:n,seriesIndex:f,commonStrings:l}),S=fe({queryObject:n.layer,fieldName:e,fieldValue:b??""}),w=`${b}`,p={...x,id:w,name:S??w,y:v,query:{...x.query,where:`${e}=${u===ke.String&&b!==null?`'${b}'`:b}`,outStatistics:r!==A.NoAggregation?[{...x.query?.outStatistics?.[0]??{},onStatisticField:y,outStatisticFieldName:v,statisticType:r}]:void 0}},B=t.series.find(M=>String(hi(M)).trim().replace(/'/gu,"")===w);B!==void 0&&((I(p)&&I(B)||C(p)&&C(B))&&z(p,B),t.colorMatch||(N(p)&&N(B)?p.fillSymbol=B.fillSymbol:(I(p)&&I(B)||C(p)&&C(B))&&(p.lineSymbol=B.lineSymbol,p.markerSymbol=B.markerSymbol),o=!0),p.id=B.id,p.name=B.name,p.assignToSecondValueAxis=B.assignToSecondValueAxis),p.query&&(p.query.fetchNullValues=t.series.some(M=>M.query?.fetchNullValues)),m.push(p)}return t.colorMatch=!o,m}var pt=i=>{let{xAxisFieldName:e,splitByField:s,numericFields:a,aggregationType:r,config:t,layerInfo:n,commonStrings:l,splitByFieldInfos:c}=i,{layerFieldsInfo:d}=n??{},F=Fi(t),g=j(t),u=d.find(T=>T.name===g),y=t.series[0].query?.fetchNullValues,m="nullCategory"in t.series?.[0]?t.series[0].nullCategory:void 0,o=t.series[0]?.query===void 0,f=d.find(T=>T.name===e),b=oe(t,n,l),v=Ii(t,n,l),x=Hi(t,n),S=Fe(t),w=t.series.some(T=>N(T)),p=gi(t.series),B=ui(t.series),M=Z(t),R={};M&&(R.classBreaksRules=t.series[0]?.classBreaksRules,R.xTemporalBinning=t.series[0]?.xTemporalBinning,R.yTemporalBinning=t.series[0]?.yTemporalBinning,R.emptyCells=t.series[0]?.emptyCells,R.nullPolicy=t.nullPolicy);let le=!1;if(ii(f)?S=ge():!me(u)&&me(f)?S=ue():!_(u)&&_(f)?(S=ue(),le=!0):_(u)&&!_(f)&&(w?S=ge():S=we(),le=!0),S!==void 0&&yi(t,l,S),F===0&&(t.series=[H({config:t,xAxisField:e,aggregationType:r,layerInfo:n,commonStrings:l})]),t.series.forEach(T=>{T.x=e,T.query!==void 0&&(T.query.groupByFieldsForStatistics=[e])}),s===""||a.length>1?he({fieldName:e,numericFields:a,fieldList:d})?t.series=Ui({config:t,layerInfo:n,xAxisField:e,numericFields:a,aggregationType:r,commonStrings:l}):t.series=vi({config:t,layerInfo:n,xAxisField:e,numericFields:a,aggregationType:r,commonStrings:l}):c&&(t.series=Xi({config:t,layerInfo:n,splitByField:s,xAxisField:e,numericFields:a,aggregationType:r,commonStrings:l,splitByFieldInfos:c})),x&&t.series[0].type!==h.HeatSeries){let T=O(d,e);D(t,0,T)}if(v&&t.series[0].type!==h.HeatSeries){let T=te({config:t,layerInfo:n,commonStrings:l,numericFields:a,aggregationType:r});D(t,1,T)}if(b&&t.title&&(t.title.content.text=Q(t,n,l)),L({config:t,value:null,axisIndex:1,isMax:!1}),L({config:t,value:null,axisIndex:1,isMax:!0}),_i({numericFields:a,aggregationType:r,config:t,layerInfo:n}),(p||B)&&(L({config:t,value:null,axisIndex:0,isMax:!1}),L({config:t,value:null,axisIndex:0,isMax:!0}),le&&r!==A.NoAggregation)){let T=S?.type===h.DateAxisFormat?V.Null:V.Interpolate;qi(T,t)}M&&(t.series[0].classBreaksRules=R.classBreaksRules,t.series[0].xTemporalBinning=R.xTemporalBinning,t.series[0].yTemporalBinning=R.yTemporalBinning,t.series[0].emptyCells=R.emptyCells,t.nullPolicy=R.nullPolicy),o?t.series.forEach(T=>{delete T.query}):y&&t.series.forEach(T=>{T.query&&(T.query.fetchNullValues=y)}),m&&t.series.forEach(T=>{(T.type===h.BarSeries||T.type===h.LineSeries||T.type===h.RadarSeries)&&(T.nullCategory=m)})},z=(i,e)=>{i.markerVisible=e.markerVisible,i.lineSmoothed=e.lineSmoothed,i.showArea=e.showArea,i.areaColor=e.areaColor,i.stackNegativeValuesToBaseline=e.stackNegativeValuesToBaseline,e.lineSymbol&&(i.lineSymbol={...e.lineSymbol,color:i.lineSymbol?.color}),e.markerSymbol&&(i.markerSymbol={...e.markerSymbol,color:i.markerSymbol?.color})},St=i=>{let{config:e,seriesIndex:s,layerInfo:a,commonStrings:r}=i,t=e.series?.[s],n=ae(e),l;if(Y(e.series)===E.BarAndLineFromFields)l=r.axisLabels.values;else if(Ie(n)){let c=t.query?.outStatistics?.[0]?.onStatisticField;c!==void 0&&c!==W(a.layer).idField&&(l=O(a.layerFieldsInfo,c))}else{let c=String(hi(t)).trim().replace(/'/gu,"");l=fe({queryObject:a.layer,fieldName:n,fieldValue:c??""})??c}return l??t.id},Ft=(i,e)=>{if(Z(e))Wi(i,e);else{e.orderOptions??={};let s=e.orderOptions?.data?.orderType;Te(e)[0]===se.customSort&&s===q.Category&&(e.orderOptions.data={orderType:q.Category,orderBy:[...i]})}},xt=async i=>{let{config:e,layerInfo:s,errorStrings:a}=i,r=j(e),t=Fe(e)?.type,n=ne(e),l=Y(e.series),c=[];return t===h.CategoryAxisFormat&&(l===E.BarAndLineFromFields||r===ee?c=n.map(d=>O(s?.layerFieldsInfo,d)):r.trim()!==""&&r!==ee&&s!==void 0&&(c=await mi({layerInfo:s,config:e,category:r,errorStrings:a}))),c};function oe(i,e,s){let a=Q(i,e,s),r=Si(i),t=X(i);return a===r||t}function Ii(i,e,s){let a=te({config:i,layerInfo:e,commonStrings:s,numericFields:ne(i),aggregationType:bi(i)}),r=re(1,i),t=X(i);return a===r||t}function Hi(i,e){let s=O(e.layerFieldsInfo,j(i)),a=re(0,i),r=X(i);return s===a||r}function Bt(i){return k(i.series[0])?i.series[0].binTemporalData??!0:!1}function ht(i,e){e?.series.forEach(s=>{(s?.type===h.BarSeries||s?.type===h.LineSeries)&&(s.binTemporalData=i,i?s.temporalBinning={unit:G.Day,size:0,timeAggregationType:qe.Start,trimIncompleteTimeInterval:!0,nullPolicy:V.Null}:delete s.temporalBinning)})}return{a:ms,b:Ci,c:ds,d:fs,e:ps,f:Ai,g:qi,h:Ss,i:Fs,j:xs,k:ki,l:Bi,m:be,n:Bs,o:hs,p:bs,q:Oi,r:Ts,s:vs,t:Is,u:Cs,v:As,w:qs,x:ks,y:Ls,z:Ns,A:ws,B:Rs,C:Zi,D:Os,E:Es,F:Ms,G:Vs,H:Ps,I:Ds,J:js,K:$s,L:Zs,M:Ws,N:Ys,O:_s,P:Us,Q:Xs,R:Hs,S:Yi,T:zs,U:Qs,V:Js,W:Gs,X:Ks,Y:et,Z:it,_:st,$:tt,aa:rt,ba:at,ca:nt,da:ot,ea:lt,fa:ct,ga:gt,ha:ut,ia:yt,ja:mt,ka:dt,la:Q,ma:bi,na:ae,oa:ne,pa:Te,qa:ft,ra:pt,sa:St,ta:Ft,ua:xt,va:Bt,wa:ht}},"intl",a,b,c,d,e,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b}from"./TJQGGNGV.js";import g from"./KELUCFO3.js";import{a as $}from"./Y5NXCJVY.js";import"./MZ2UZAFW.js";import e from"./5F3ROJAG.js";import"./KGNYAMFB.js";import d from"./HWNY4AMD.js";import"./777EBGS5.js";import"./TA5LVOWS.js";import{i as S}from"./IQAKPU7N.js";import{b as i}from"./75Y43JLP.js";import"./FIMXZMTB.js";import"./CRQ2IRDD.js";import{A as f,B as l,D as c,G as y,g as C,i as v,n as s,y as a,z as o}from"./SFNDPCJ7.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{f:w,g:E,h:r,i:d}])=>{var n={jsAppFlyout:"js-app-flyout",sizeSection:"size-section",dropdownText:"dropdown-text",panelChildrenContainer:"panel-children-container"},x=C`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host calcite-panel .size-section{padding:0 1rem 1rem;display:flex}:host calcite-panel .size-section calcite-label{flex:1 1 0px;width:0;padding:0}:host calcite-panel .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`,h=class extends f{constructor(){super(...arguments),this._messages=$(),this.popoverElement=a(),this.lineWidthInputElement=a(),this.lineStyleDropdownElement=a(),this.open=!1,this.arcgisChartsConfigPopoverClose=s(),this.arcgisChartsConfigSeriesPopoverColorChange=s(),this.arcgisChartsConfigSeriesPopoverLineStyleChange=s(),this.arcgisChartsConfigSeriesPopoverLineWidthChange=s(),this.arcgisChartsConfigSeriesPopoverNameChange=s()}static{this.properties={messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedLineStyle:1,selectedSeriesIndex:9,selectedLineWidth:9,placement:1,open:5}}static{this.styles=x}async reposition(){await this.popoverElement.value?.reposition()}updated(){b(this.popoverElement.value,this.open)}seriesNameChange(e){let t=e.target.value;this.selectedName!==t&&(this.selectedName=t,this.arcgisChartsConfigSeriesPopoverNameChange.emit({name:t}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit({selectedSeriesIndex:this.selectedSeriesIndex??-1})}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[p,m,g]=t,u=S*255;this.selectedColor=[p,m,g,u],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[p,m,g,u]})}lineStyleChange(){let e=this.lineStyleDropdownElement.value?.selectedItems[0].accessKey;this.selectedLineStyle=e,this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({lineStyle:e})}lineWidthChange(){let e=Number.parseInt(this.lineWidthInputElement.value?.value??"");this.lineWidthInputElement.value?.value!==void 0&&w(e,this.lineWidthInputElement.value.min,this.lineWidthInputElement.value.max)?(this.selectedLineWidth=e,this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({lineWidth:e}),r({inputElement:this.lineWidthInputElement.value,status:d.IDLE})):this.lineWidthInputElement.value&&r({inputElement:this.lineWidthInputElement.value,status:d.INVALID})}getSelectedLineStyleInfo(){let e,t;switch(this.selectedLineStyle){case i.Dot:e="line-dotted",t=this._messages.dot??"";break;case i.Dash:e="line-dashed",t=this._messages.dash??"";break;case i.Solid:default:e="line-solid",t=this._messages.solid??"";break}return{icon:e,style:t}}render(){let e=this.selectedColor;return v`<div class=${l({[n.jsAppFlyout]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${o(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${l(n.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${l(n.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${o(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.getSelectedLineStyleInfo().icon} slot=trigger kind=neutral appearance=outline-fill><label class=${l(n.dropdownText)}>${this.getSelectedLineStyleInfo().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.selectedLineStyle===i.Solid} accesskey=${i.Solid??c}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.selectedLineStyle===i.Dot} accesskey=${i.Dot??c}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.selectedLineStyle===i.Dash} accesskey=${i.Dash??c}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${E(this.selectedLineWidth)} @calciteInputInput=${this.lineWidthChange} ${o(this.lineWidthInputElement)}></calcite-input></calcite-label></div><div class=${l(n.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`}};y("arcgis-charts-config-line-chart-series-popover",h);return h},d,e,g)
2
+ import{b}from"./TJQGGNGV.js";import g from"./TJWMSYWR.js";import{a as $}from"./GKY2GGZM.js";import"./MZ2UZAFW.js";import e from"./ZLA2ZMVA.js";import"./KGNYAMFB.js";import d from"./XXG3ABG4.js";import"./777EBGS5.js";import"./TA5LVOWS.js";import{i as S}from"./IQAKPU7N.js";import{b as i}from"./75Y43JLP.js";import"./FIMXZMTB.js";import"./GZZC4ROO.js";import{A as f,B as l,D as c,G as y,g as C,i as v,n as s,y as a,z as o}from"./Q2A4ULOC.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{f:w,g:E,h:r,i:d}])=>{var n={jsAppFlyout:"js-app-flyout",sizeSection:"size-section",dropdownText:"dropdown-text",panelChildrenContainer:"panel-children-container"},x=C`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host calcite-panel .size-section{padding:0 1rem 1rem;display:flex}:host calcite-panel .size-section calcite-label{flex:1 1 0px;width:0;padding:0}:host calcite-panel .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`,h=class extends f{constructor(){super(...arguments),this._messages=$(),this.popoverElement=a(),this.lineWidthInputElement=a(),this.lineStyleDropdownElement=a(),this.open=!1,this.arcgisChartsConfigPopoverClose=s(),this.arcgisChartsConfigSeriesPopoverColorChange=s(),this.arcgisChartsConfigSeriesPopoverLineStyleChange=s(),this.arcgisChartsConfigSeriesPopoverLineWidthChange=s(),this.arcgisChartsConfigSeriesPopoverNameChange=s()}static{this.properties={messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedLineStyle:1,selectedSeriesIndex:9,selectedLineWidth:9,placement:1,open:5}}static{this.styles=x}async reposition(){await this.popoverElement.value?.reposition()}updated(){b(this.popoverElement.value,this.open)}seriesNameChange(e){let t=e.target.value;this.selectedName!==t&&(this.selectedName=t,this.arcgisChartsConfigSeriesPopoverNameChange.emit({name:t}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit({selectedSeriesIndex:this.selectedSeriesIndex??-1})}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[p,m,g]=t,u=S*255;this.selectedColor=[p,m,g,u],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[p,m,g,u]})}lineStyleChange(){let e=this.lineStyleDropdownElement.value?.selectedItems[0].accessKey;this.selectedLineStyle=e,this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({lineStyle:e})}lineWidthChange(){let e=Number.parseInt(this.lineWidthInputElement.value?.value??"");this.lineWidthInputElement.value?.value!==void 0&&w(e,this.lineWidthInputElement.value.min,this.lineWidthInputElement.value.max)?(this.selectedLineWidth=e,this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({lineWidth:e}),r({inputElement:this.lineWidthInputElement.value,status:d.IDLE})):this.lineWidthInputElement.value&&r({inputElement:this.lineWidthInputElement.value,status:d.INVALID})}getSelectedLineStyleInfo(){let e,t;switch(this.selectedLineStyle){case i.Dot:e="line-dotted",t=this._messages.dot??"";break;case i.Dash:e="line-dashed",t=this._messages.dash??"";break;case i.Solid:default:e="line-solid",t=this._messages.solid??"";break}return{icon:e,style:t}}render(){let e=this.selectedColor;return v`<div class=${l({[n.jsAppFlyout]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${o(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${l(n.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${l(n.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${o(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.getSelectedLineStyleInfo().icon} slot=trigger kind=neutral appearance=outline-fill><label class=${l(n.dropdownText)}>${this.getSelectedLineStyleInfo().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.selectedLineStyle===i.Solid} accesskey=${i.Solid??c}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.selectedLineStyle===i.Dot} accesskey=${i.Dot??c}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.selectedLineStyle===i.Dash} accesskey=${i.Dash??c}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${E(this.selectedLineWidth)} @calciteInputInput=${this.lineWidthChange} ${o(this.lineWidthInputElement)}></calcite-input></calcite-label></div><div class=${l(n.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`}};y("arcgis-charts-config-line-chart-series-popover",h);return h},d,e,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b as l}from"./TJQGGNGV.js";import{a as d}from"./Y5NXCJVY.js";import"./FIMXZMTB.js";import"./CRQ2IRDD.js";import{A as o,G as r,i as e,n as i,y as t,z as a}from"./SFNDPCJ7.js";import"./QPIMTXPL.js";var s=class extends o{constructor(){super(...arguments),this._messages=d(),this.popoverElement=t(),this.onAddXGuide=()=>{this.open=!1,this.arcgisChartsAddXAxisGuide.emit()},this.onAddYGuide=()=>{this.open=!1,this.arcgisChartsAddYAxisGuide.emit()},this.enableXAxisGuide=!1,this.enableYAxisGuide=!1,this.placement="bottom",this.open=!1,this.arcgisChartsAddXAxisGuide=i(),this.arcgisChartsAddYAxisGuide=i(),this.arcgisChartsConfigPopoverClose=i()}static{this.properties={enableXAxisGuide:5,enableYAxisGuide:5,messageOverrides:0,referenceElement:0,placement:1,open:5}}async reposition(){await this.popoverElement.value?.reposition()}updated(){l(this.popoverElement.value,this.open)}guidePopoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}render(){return e`<calcite-popover .open=${this.open} .referenceElement=${this.referenceElement??document.body} flip-disabled pointer-disabled offset-distance=-18 @calcitePopoverClose=${this.guidePopoverClose} .placement=${this.placement} auto-close label ${a(this.popoverElement)}><calcite-panel .heading=${this._messages.guideType} closable @calcitePanelClose=${this.guidePopoverClose}>${this.enableXAxisGuide?e`<calcite-action .label=${this._messages.addXAxisGuide} .text=${this._messages.addXAxisGuide??""} @click=${this.onAddXGuide} icon=x-axis-guide text-enabled></calcite-action>`:null}${this.enableYAxisGuide?e`<calcite-action .label=${this._messages.addYAxisGuide} .text=${this._messages.addYAxisGuide??""} @click=${this.onAddYGuide} icon=y-axis-guide text-enabled></calcite-action>`:null}</calcite-panel></calcite-popover>`}};r("arcgis-charts-config-guides-type-popover",s);export{s as ArcgisChartsConfigGuidesTypePopover};
2
+ import{b as l}from"./TJQGGNGV.js";import{a as d}from"./GKY2GGZM.js";import"./FIMXZMTB.js";import"./GZZC4ROO.js";import{A as o,G as r,i as e,n as i,y as t,z as a}from"./Q2A4ULOC.js";import"./QPIMTXPL.js";var s=class extends o{constructor(){super(...arguments),this._messages=d(),this.popoverElement=t(),this.onAddXGuide=()=>{this.open=!1,this.arcgisChartsAddXAxisGuide.emit()},this.onAddYGuide=()=>{this.open=!1,this.arcgisChartsAddYAxisGuide.emit()},this.enableXAxisGuide=!1,this.enableYAxisGuide=!1,this.placement="bottom",this.open=!1,this.arcgisChartsAddXAxisGuide=i(),this.arcgisChartsAddYAxisGuide=i(),this.arcgisChartsConfigPopoverClose=i()}static{this.properties={enableXAxisGuide:5,enableYAxisGuide:5,messageOverrides:0,referenceElement:0,placement:1,open:5}}async reposition(){await this.popoverElement.value?.reposition()}updated(){l(this.popoverElement.value,this.open)}guidePopoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}render(){return e`<calcite-popover .open=${this.open} .referenceElement=${this.referenceElement??document.body} flip-disabled pointer-disabled offset-distance=-18 @calcitePopoverClose=${this.guidePopoverClose} .placement=${this.placement} auto-close label ${a(this.popoverElement)}><calcite-panel .heading=${this._messages.guideType} closable @calcitePanelClose=${this.guidePopoverClose}>${this.enableXAxisGuide?e`<calcite-action .label=${this._messages.addXAxisGuide} .text=${this._messages.addXAxisGuide??""} @click=${this.onAddXGuide} icon=x-axis-guide text-enabled></calcite-action>`:null}${this.enableYAxisGuide?e`<calcite-action .label=${this._messages.addYAxisGuide} .text=${this._messages.addYAxisGuide??""} @click=${this.onAddYGuide} icon=y-axis-guide text-enabled></calcite-action>`:null}</calcite-panel></calcite-popover>`}};r("arcgis-charts-config-guides-type-popover",s);export{s as ArcgisChartsConfigGuidesTypePopover};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import t from"./FJV5YOSW.js";import s from"./2KKM7XMG.js";import q from"./OLUX4P5T.js";import p from"./V5JF7V4R.js";import o from"./VB7UUEAI.js";import n from"./I3Y6OYMP.js";import m from"./BBXXVG5W.js";import l from"./RNP7O7WW.js";import k from"./UKOCGD4X.js";import"./7MKAC33Z.js";import j from"./LKPGW4JC.js";import i from"./Z6IIXN7Z.js";import h from"./OAFU3PR4.js";import g from"./SZ7VUURX.js";import f from"./J4EAJF2T.js";import"./AUECIKS7.js";import e from"./UMBB7BPZ.js";import d from"./MULA23EX.js";import b from"./5F3ROJAG.js";import"./KGNYAMFB.js";import a from"./HWNY4AMD.js";import"./777EBGS5.js";import{r as S}from"./TA5LVOWS.js";import{pa as _}from"./IQAKPU7N.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./CRQ2IRDD.js";import"./SFNDPCJ7.js";import"./TOO3T62Y.js";import{c as r}from"./EZM4ZDQI.js";import"./43P4WOC4.js";import{a as u,b as c}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{rb:l},,,{c:i},,,,,,,,,,{e:y},,,{$:J,A:x,B:v,C:L,D:b,E:R,F:w,G:D,H:I,I:P,J:k,K:B,L:N,M:U,N:W,O:M,P:h,Q:m,R:Y,S:E,T:G,U:H,V:V,W:X,X:j,Y:Z,Z:q,_:z,aa:K,ba:Q,ca:$,da:tt,ea:et,fa:it,ga:st,ha:ot,ia:rt,ja:nt,ka:at,la:gt,pa:f,v:C,w:T,x:A,y:F,z:O},{a:pt,b:ct,d:lt}])=>{var yt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,s=(p,t,o,a)=>{for(var n=ht(t,o),g=p.length-1,d;g>=0;g--)(d=p[g])&&(n=d(t,o,n)||n);return n&&yt(t,o,n),n},e=class extends lt{constructor(){super(...arguments),this._chartType=u.HeatSeries}generateChartTitle(){return this.layerInfo!==void 0?gt(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){let t=this.yTemporalBinning?.unit;return t!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[t]:""}get layer(){return super.layer}async setup(t){await this.loadConfigFromLayer(t),this.setupLocalProps(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get yAxisField(){return L(this._config)}set yAxisField(t){v({yField:t,config:this._config,layerInfo:this.layerInfo})}get viewType(){return J(this._config)}set viewType(t){this.guardSetterFromAsyncOverwrite(()=>{K(t,this._config),this.emitConfigUpdate("heatChartViewType")})}get xTemporalBinning(){return R(this._config)}set xTemporalBinning(t){b({commonStrings:this.commonStrings,binning:t,config:this._config})}get yTemporalBinning(){return D(this._config)}set yTemporalBinning(t){w({commonStrings:this.commonStrings,binning:t,config:this._config})}get breaksCount(){return Q(this._config)}set breaksCount(t){this.guardSetterFromAsyncOverwrite(()=>{$(t,this._config),this.emitConfigUpdate("breaksCount")})}get classificationMethod(){return tt(this._config)}set classificationMethod(t){this.guardSetterFromAsyncOverwrite(()=>{t&&(et(t,this._config),this.emitConfigUpdate("classificationMethod"))})}get colorRampName(){return ot(this._config)}set colorRampName(t){rt(t,this._config)}get isColorRampFlipped(){return nt(this._config)}set isColorRampFlipped(t){at(t,this._config)}get hideEmptyRowsAndColumns(){return C(this._config)}set hideEmptyRowsAndColumns(t){T(this._config,t)}get gridLineWidth(){return P(this._config)}set gridLineWidth(t){I(t,this._config)}get gridLineColor(){return B(this._config)}set gridLineColor(t){k(t,this._config)}get seriesName(){return pt(0,this._config)}set seriesName(t){typeof t=="string"&&ct(t,0,this._config)}get heatRulesType(){return F(this._config)}set heatRulesType(t){A(this._config,t)}get gradientRules(){return x(this._config)}set gradientRules(t){O(this._config,t)}getGridLinesSymbol(){return this._config.series?.[0]?.gridLine}setGridLinesSymbol(t){this._config.series?.[0]&&(this._config.series[0].gridLine=t)}get numericFields(){let t=W(this._config);return t!==void 0?[t]:[]}set numericFields(t){let{idField:o}=l(this.layerInfo.layer),a=S(t[0]),n=a?o:t[0];M({field:n,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings});let g=h(this._config);a&&g!==c.Count&&m({aggregationType:c.Count,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get aggregationType(){return h(this._config)}set aggregationType(t){m({aggregationType:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return""}set splitByField(t){}get legendPosition(){return U(this._config)}set legendPosition(t){N(t,this._config)}get nullPolicy(){return Y(this._config)}set nullPolicy(t){E(t,this._config)}get emptyCell(){return G(this._config)}set emptyCell(t){this.guardSetterFromAsyncOverwrite(()=>{H(t,this._config),this.emitConfigUpdate("emptyCell")})}getSortOrder(){return r.Asc}setSortOrder(t,o){}getXAxisSortOrder(){let t=f(this._config)[0];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setXAxisSortOrder(t,o){y(t,this._config,o)}getYAxisSortOrder(){let t=f(this._config)[1];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setYAxisSortOrder(t,o){y(t,this._config,o,!0)}get emptyCellText(){return V(this._config)}set emptyCellText(t){X(t,this._config)}get includeLeapDay(){return j(this._config)}set includeLeapDay(t){this.guardSetterFromAsyncOverwrite(()=>{Z(t,this._config),this.emitConfigUpdate("includeLeapDay")})}get firstDayOfWeek(){return st(this._config)}set firstDayOfWeek(t){this.guardSetterFromAsyncOverwrite(()=>{it(t,this._config),this.emitConfigUpdate("firstDayOfWeek")})}get emptyCellSymbol(){return q(this._config)}set emptyCellSymbol(t){z(t,this._config)}get rotated(){return!1}set rotated(t){}setAssignToSecondValueAxis(t,o){}set stackedType(t){}set binTemporalData(t){}set nullCategory(t){}generateDefaultConfig(){let t=_(this.commonStrings,l(this.layerInfo.layer).idField);return t.axes?.forEach((o,a)=>{o&&(o.valueFormat={intlOptions:{timeZone:void 0,dateStyle:a>0?"long":"medium"},type:"date"})}),t}};s([i],e.prototype,"yAxisField");s([i],e.prototype,"xTemporalBinning");s([i],e.prototype,"yTemporalBinning");s([i],e.prototype,"colorRampName");s([i],e.prototype,"isColorRampFlipped");s([i],e.prototype,"hideEmptyRowsAndColumns");s([i],e.prototype,"gridLineWidth");s([i],e.prototype,"gridLineColor");s([i],e.prototype,"seriesName");s([i],e.prototype,"heatRulesType");s([i],e.prototype,"gradientRules");s([i],e.prototype,"setGridLinesSymbol");s([i],e.prototype,"numericFields");s([i],e.prototype,"aggregationType");s([i],e.prototype,"splitByField");s([i],e.prototype,"legendPosition");s([i],e.prototype,"nullPolicy");s([i],e.prototype,"setSortOrder");s([i],e.prototype,"setXAxisSortOrder");s([i],e.prototype,"setYAxisSortOrder");s([i],e.prototype,"emptyCellText");s([i],e.prototype,"firstDayOfWeek");s([i],e.prototype,"emptyCellSymbol");s([i],e.prototype,"rotated");s([i],e.prototype,"setAssignToSecondValueAxis");s([i],e.prototype,"stackedType");s([i],e.prototype,"binTemporalData");s([i],e.prototype,"nullCategory");return e},a,b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,s,t)
2
+ import t from"./LT5EZ52M.js";import s from"./OE2F4JWR.js";import q from"./YFWT3XVN.js";import p from"./YS7WAYG4.js";import o from"./K6TVBCNN.js";import n from"./H77PHG2R.js";import m from"./EWAYQPD4.js";import l from"./CILV6VTC.js";import k from"./57DCYBM2.js";import"./7MKAC33Z.js";import j from"./QMSAER2E.js";import i from"./C33U2DDU.js";import h from"./BVFXPV3H.js";import g from"./NEIOWBE3.js";import f from"./XTNWSVP5.js";import"./AUECIKS7.js";import e from"./QB5CCITI.js";import d from"./IG2NVGY7.js";import b from"./ZLA2ZMVA.js";import"./KGNYAMFB.js";import a from"./XXG3ABG4.js";import"./777EBGS5.js";import{r as S}from"./TA5LVOWS.js";import{pa as _}from"./IQAKPU7N.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./GZZC4ROO.js";import"./Q2A4ULOC.js";import"./TOO3T62Y.js";import{c as r}from"./EZM4ZDQI.js";import"./43P4WOC4.js";import{a as u,b as c}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{rb:l},,,{c:i},,,,,,,,,,{e:y},,,{$:J,A:x,B:v,C:L,D:b,E:R,F:w,G:D,H:I,I:P,J:k,K:B,L:N,M:U,N:W,O:M,P:h,Q:m,R:Y,S:E,T:G,U:H,V:V,W:X,X:j,Y:Z,Z:q,_:z,aa:K,ba:Q,ca:$,da:tt,ea:et,fa:it,ga:st,ha:ot,ia:rt,ja:nt,ka:at,la:gt,pa:f,v:C,w:T,x:A,y:F,z:O},{a:pt,b:ct,d:lt}])=>{var yt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,s=(p,t,o,a)=>{for(var n=ht(t,o),g=p.length-1,d;g>=0;g--)(d=p[g])&&(n=d(t,o,n)||n);return n&&yt(t,o,n),n},e=class extends lt{constructor(){super(...arguments),this._chartType=u.HeatSeries}generateChartTitle(){return this.layerInfo!==void 0?gt(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){let t=this.yTemporalBinning?.unit;return t!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[t]:""}get layer(){return super.layer}async setup(t){await this.loadConfigFromLayer(t),this.setupLocalProps(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get yAxisField(){return L(this._config)}set yAxisField(t){v({yField:t,config:this._config,layerInfo:this.layerInfo})}get viewType(){return J(this._config)}set viewType(t){this.guardSetterFromAsyncOverwrite(()=>{K(t,this._config),this.emitConfigUpdate("heatChartViewType")})}get xTemporalBinning(){return R(this._config)}set xTemporalBinning(t){b({commonStrings:this.commonStrings,binning:t,config:this._config})}get yTemporalBinning(){return D(this._config)}set yTemporalBinning(t){w({commonStrings:this.commonStrings,binning:t,config:this._config})}get breaksCount(){return Q(this._config)}set breaksCount(t){this.guardSetterFromAsyncOverwrite(()=>{$(t,this._config),this.emitConfigUpdate("breaksCount")})}get classificationMethod(){return tt(this._config)}set classificationMethod(t){this.guardSetterFromAsyncOverwrite(()=>{t&&(et(t,this._config),this.emitConfigUpdate("classificationMethod"))})}get colorRampName(){return ot(this._config)}set colorRampName(t){rt(t,this._config)}get isColorRampFlipped(){return nt(this._config)}set isColorRampFlipped(t){at(t,this._config)}get hideEmptyRowsAndColumns(){return C(this._config)}set hideEmptyRowsAndColumns(t){T(this._config,t)}get gridLineWidth(){return P(this._config)}set gridLineWidth(t){I(t,this._config)}get gridLineColor(){return B(this._config)}set gridLineColor(t){k(t,this._config)}get seriesName(){return pt(0,this._config)}set seriesName(t){typeof t=="string"&&ct(t,0,this._config)}get heatRulesType(){return F(this._config)}set heatRulesType(t){A(this._config,t)}get gradientRules(){return x(this._config)}set gradientRules(t){O(this._config,t)}getGridLinesSymbol(){return this._config.series?.[0]?.gridLine}setGridLinesSymbol(t){this._config.series?.[0]&&(this._config.series[0].gridLine=t)}get numericFields(){let t=W(this._config);return t!==void 0?[t]:[]}set numericFields(t){let{idField:o}=l(this.layerInfo.layer),a=S(t[0]),n=a?o:t[0];M({field:n,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings});let g=h(this._config);a&&g!==c.Count&&m({aggregationType:c.Count,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get aggregationType(){return h(this._config)}set aggregationType(t){m({aggregationType:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return""}set splitByField(t){}get legendPosition(){return U(this._config)}set legendPosition(t){N(t,this._config)}get nullPolicy(){return Y(this._config)}set nullPolicy(t){E(t,this._config)}get emptyCell(){return G(this._config)}set emptyCell(t){this.guardSetterFromAsyncOverwrite(()=>{H(t,this._config),this.emitConfigUpdate("emptyCell")})}getSortOrder(){return r.Asc}setSortOrder(t,o){}getXAxisSortOrder(){let t=f(this._config)[0];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setXAxisSortOrder(t,o){y(t,this._config,o)}getYAxisSortOrder(){let t=f(this._config)[1];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setYAxisSortOrder(t,o){y(t,this._config,o,!0)}get emptyCellText(){return V(this._config)}set emptyCellText(t){X(t,this._config)}get includeLeapDay(){return j(this._config)}set includeLeapDay(t){this.guardSetterFromAsyncOverwrite(()=>{Z(t,this._config),this.emitConfigUpdate("includeLeapDay")})}get firstDayOfWeek(){return st(this._config)}set firstDayOfWeek(t){this.guardSetterFromAsyncOverwrite(()=>{it(t,this._config),this.emitConfigUpdate("firstDayOfWeek")})}get emptyCellSymbol(){return q(this._config)}set emptyCellSymbol(t){z(t,this._config)}get rotated(){return!1}set rotated(t){}setAssignToSecondValueAxis(t,o){}set stackedType(t){}set binTemporalData(t){}set nullCategory(t){}generateDefaultConfig(){let t=_(this.commonStrings,l(this.layerInfo.layer).idField);return t.axes?.forEach((o,a)=>{o&&(o.valueFormat={intlOptions:{timeZone:void 0,dateStyle:a>0?"long":"medium"},type:"date"})}),t}};s([i],e.prototype,"yAxisField");s([i],e.prototype,"xTemporalBinning");s([i],e.prototype,"yTemporalBinning");s([i],e.prototype,"colorRampName");s([i],e.prototype,"isColorRampFlipped");s([i],e.prototype,"hideEmptyRowsAndColumns");s([i],e.prototype,"gridLineWidth");s([i],e.prototype,"gridLineColor");s([i],e.prototype,"seriesName");s([i],e.prototype,"heatRulesType");s([i],e.prototype,"gradientRules");s([i],e.prototype,"setGridLinesSymbol");s([i],e.prototype,"numericFields");s([i],e.prototype,"aggregationType");s([i],e.prototype,"splitByField");s([i],e.prototype,"legendPosition");s([i],e.prototype,"nullPolicy");s([i],e.prototype,"setSortOrder");s([i],e.prototype,"setXAxisSortOrder");s([i],e.prototype,"setYAxisSortOrder");s([i],e.prototype,"emptyCellText");s([i],e.prototype,"firstDayOfWeek");s([i],e.prototype,"emptyCellSymbol");s([i],e.prototype,"rotated");s([i],e.prototype,"setAssignToSecondValueAxis");s([i],e.prototype,"stackedType");s([i],e.prototype,"binTemporalData");s([i],e.prototype,"nullCategory");return e},a,b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,s,t)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b as g}from"./TJQGGNGV.js";import{a as d}from"./Y5NXCJVY.js";import{d as m}from"./777EBGS5.js";import"./FIMXZMTB.js";import"./CRQ2IRDD.js";import{A as h,B as s,G as p,g as o,i as a,n as i,y as r,z as n}from"./SFNDPCJ7.js";import{k as e}from"./EZM4ZDQI.js";import"./QPIMTXPL.js";var c={selectChartComponent:"select-chart-component",jsAppFlyout:"js-app-flyout",panel:"panel"},C=o`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.select-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}calcite-block{width:var(--arcgis-charts-config-calcite-block-default-width);height:var(--arcgis-charts-config-calcite-block-default-height);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.header{margin:0}.panel{max-height:60vh}`,l=class extends h{constructor(){super(...arguments),this._messages=d(),this.selectChartTypePopover=r(),this.open=!1,this.arcgisChartsConfigPopoverClose=i(),this.arcgisChartsConfigSelectChartTypeChange=i()}static{this.properties={messageOverrides:0,headerTitle:1,layerId:1,layerType:1,isRasterBarChartSupported:5,open:5,referenceElement:0,popoverPlacement:1,selectedModelType:1}}static{this.styles=C}async reposition(){await this.selectChartTypePopover.value?.reposition()}updated(){g(this.selectChartTypePopover.value,this.open)}buildRasterChartTypesList(){let t=this.isRasterBarChartSupported===!0;return a`<calcite-list label @click=${this.onChartTypeClick}>${t?a`<calcite-list-item .label=${this._messages.barChart} .value=${e.BarChart} .selected=${this.selectedModelType===e.BarChart}><calcite-icon slot=content-start icon=graph-bar></calcite-icon></calcite-list-item>`:null}<calcite-list-item .label=${this._messages.histogram} .value=${e.Histogram} .selected=${this.selectedModelType===e.Histogram}><calcite-icon slot=content-start icon=graph-histogram></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.scatterplot} .value=${e.Scatterplot} .selected=${this.selectedModelType===e.Scatterplot}><calcite-icon slot=content-start icon=graph-scatter-plot></calcite-icon></calcite-list-item></calcite-list>`}buildChartTypesList(){let t;return m(this.layerType)?t=this.buildRasterChartTypesList():t=a`<calcite-list label @click=${this.onChartTypeClick}><calcite-list-item .label=${this._messages.barChart} .value=${e.BarChart} .selected=${this.selectedModelType===e.BarChart}><calcite-icon slot=content-start icon=graph-bar></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.lineChart} .value=${e.LineChart} .selected=${this.selectedModelType===e.LineChart}><calcite-icon slot=content-start icon=graph-time-series></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.pieChart} .value=${e.PieChart} .selected=${this.selectedModelType===e.PieChart}><calcite-icon slot=content-start icon=pie-chart></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.histogram} .value=${e.Histogram} .selected=${this.selectedModelType===e.Histogram}><calcite-icon slot=content-start icon=graph-histogram></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.scatterplot} .value=${e.Scatterplot} .selected=${this.selectedModelType===e.Scatterplot}><calcite-icon slot=content-start icon=graph-scatter-plot></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.boxPlot} .value=${e.BoxPlot} .selected=${this.selectedModelType===e.BoxPlot}><calcite-icon slot=content-start icon=box-chart></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.calendarHeatChart} .value=${e.HeatChart} .selected=${this.selectedModelType===e.HeatChart}><calcite-icon slot=content-start icon=calendar-heat-chart></calcite-icon></calcite-list-item></calcite-list>`,t}onChartTypeClick(t){t.target?.localName==="calcite-list-item"?this.selectedModelType=t.target?.value:this.selectedModelType=t.target?.parentNode?.value,this.arcgisChartsConfigSelectChartTypeChange.emit()}popoverOpen(){setTimeout(()=>{this.selectChartTypePopover.value?.setFocus()},250)}popoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit(),setTimeout(()=>{this.referenceElement?.setFocus()},250)}render(){return a`<div class=${s({[c.selectChartComponent]:!0,[c.jsAppFlyout]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.popoverPlacement} .flipPlacements=${["top","bottom"]} @calcitePopoverOpen=${this.popoverOpen} @calcitePopoverClose=${this.popoverClose} .open=${this.open} auto-close label ${n(this.selectChartTypePopover)}><calcite-panel class=${s(c.panel)} .heading=${this.headerTitle??this._messages.chooseChartType} closable @calcitePanelClose=${this.popoverClose} .closed=${!this.open}>${this.buildChartTypesList()}</calcite-panel></calcite-popover></div>`}};p("arcgis-charts-config-select-chart-type-popover",l);export{l as ArcgisChartsConfigSelectChartTypePopover};
2
+ import{b as g}from"./TJQGGNGV.js";import{a as d}from"./GKY2GGZM.js";import{d as m}from"./777EBGS5.js";import"./FIMXZMTB.js";import"./GZZC4ROO.js";import{A as h,B as s,G as p,g as o,i as a,n as i,y as r,z as n}from"./Q2A4ULOC.js";import{k as e}from"./EZM4ZDQI.js";import"./QPIMTXPL.js";var c={selectChartComponent:"select-chart-component",jsAppFlyout:"js-app-flyout",panel:"panel"},C=o`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.select-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}calcite-block{width:var(--arcgis-charts-config-calcite-block-default-width);height:var(--arcgis-charts-config-calcite-block-default-height);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.header{margin:0}.panel{max-height:60vh}`,l=class extends h{constructor(){super(...arguments),this._messages=d(),this.selectChartTypePopover=r(),this.open=!1,this.arcgisChartsConfigPopoverClose=i(),this.arcgisChartsConfigSelectChartTypeChange=i()}static{this.properties={messageOverrides:0,headerTitle:1,layerId:1,layerType:1,isRasterBarChartSupported:5,open:5,referenceElement:0,popoverPlacement:1,selectedModelType:1}}static{this.styles=C}async reposition(){await this.selectChartTypePopover.value?.reposition()}updated(){g(this.selectChartTypePopover.value,this.open)}buildRasterChartTypesList(){let t=this.isRasterBarChartSupported===!0;return a`<calcite-list label @click=${this.onChartTypeClick}>${t?a`<calcite-list-item .label=${this._messages.barChart} .value=${e.BarChart} .selected=${this.selectedModelType===e.BarChart}><calcite-icon slot=content-start icon=graph-bar></calcite-icon></calcite-list-item>`:null}<calcite-list-item .label=${this._messages.histogram} .value=${e.Histogram} .selected=${this.selectedModelType===e.Histogram}><calcite-icon slot=content-start icon=graph-histogram></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.scatterplot} .value=${e.Scatterplot} .selected=${this.selectedModelType===e.Scatterplot}><calcite-icon slot=content-start icon=graph-scatter-plot></calcite-icon></calcite-list-item></calcite-list>`}buildChartTypesList(){let t;return m(this.layerType)?t=this.buildRasterChartTypesList():t=a`<calcite-list label @click=${this.onChartTypeClick}><calcite-list-item .label=${this._messages.barChart} .value=${e.BarChart} .selected=${this.selectedModelType===e.BarChart}><calcite-icon slot=content-start icon=graph-bar></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.lineChart} .value=${e.LineChart} .selected=${this.selectedModelType===e.LineChart}><calcite-icon slot=content-start icon=graph-time-series></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.pieChart} .value=${e.PieChart} .selected=${this.selectedModelType===e.PieChart}><calcite-icon slot=content-start icon=pie-chart></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.histogram} .value=${e.Histogram} .selected=${this.selectedModelType===e.Histogram}><calcite-icon slot=content-start icon=graph-histogram></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.scatterplot} .value=${e.Scatterplot} .selected=${this.selectedModelType===e.Scatterplot}><calcite-icon slot=content-start icon=graph-scatter-plot></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.boxPlot} .value=${e.BoxPlot} .selected=${this.selectedModelType===e.BoxPlot}><calcite-icon slot=content-start icon=box-chart></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.calendarHeatChart} .value=${e.HeatChart} .selected=${this.selectedModelType===e.HeatChart}><calcite-icon slot=content-start icon=calendar-heat-chart></calcite-icon></calcite-list-item></calcite-list>`,t}onChartTypeClick(t){t.target?.localName==="calcite-list-item"?this.selectedModelType=t.target?.value:this.selectedModelType=t.target?.parentNode?.value,this.arcgisChartsConfigSelectChartTypeChange.emit()}popoverOpen(){setTimeout(()=>{this.selectChartTypePopover.value?.setFocus()},250)}popoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit(),setTimeout(()=>{this.referenceElement?.setFocus()},250)}render(){return a`<div class=${s({[c.selectChartComponent]:!0,[c.jsAppFlyout]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.popoverPlacement} .flipPlacements=${["top","bottom"]} @calcitePopoverOpen=${this.popoverOpen} @calcitePopoverClose=${this.popoverClose} .open=${this.open} auto-close label ${n(this.selectChartTypePopover)}><calcite-panel class=${s(c.panel)} .heading=${this.headerTitle??this._messages.chooseChartType} closable @calcitePanelClose=${this.popoverClose} .closed=${!this.open}>${this.buildChartTypesList()}</calcite-panel></calcite-popover></div>`}};p("arcgis-charts-config-select-chart-type-popover",l);export{l as ArcgisChartsConfigSelectChartTypePopover};
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vt=Symbol(),Mt=new WeakMap,M=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==vt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=Mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Mt.set(e,t))}return t}toString(){return this.cssText}},kt=o=>new M(typeof o=="string"?o:o+"",void 0,vt),Ce=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[r+1],o[0]);return new M(e,o,vt)},jt=(o,t)=>{if(Z)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),n=Y.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},Et=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return kt(e)})(o):o;var{is:we,defineProperty:Oe,getOwnPropertyDescriptor:Te,getOwnPropertyNames:Se,getOwnPropertySymbols:Pe,getPrototypeOf:Ne}=Object,tt=globalThis,Ht=tt.trustedTypes,De=Ht?Ht.emptyScript:"",xe=tt.reactiveElementPolyfillSupport,k=(o,t)=>o,X={toAttribute(o,t){switch(t){case Boolean:o=o?De:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},j=(o,t)=>!we(o,t),zt={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:j};Symbol.metadata??=Symbol("metadata"),tt.litPropertyMetadata??=new WeakMap;var A=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Oe(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){let{get:n,set:r}=Te(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let a=n?.call(this);r?.call(this,i),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;let t=Ne(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){let e=this.properties,s=[...Se(e),...Pe(e)];for(let n of s)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)e.unshift(Et(n))}else t!==void 0&&e.push(Et(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:X).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:X;this._$Em=n;let a=i.fromAttribute(e,r.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(t,e,s,n=!1,r){if(t!==void 0){let i=this.constructor;if(n===!1&&(r=this[t]),s??=i.getPropertyOptions(t),!((s.hasChanged??j)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:r},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),r!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s){let{wrapped:i}=r,a=this[n];i!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[k("elementProperties")]=new Map,A[k("finalized")]=new Map,xe?.({ReactiveElement:A}),(tt.reactiveElementVersions??=[]).push("2.1.2");var bt=globalThis,Vt=o=>o,et=bt.trustedTypes,Bt=et?et.createPolicy("lit-html",{createHTML:o=>o}):void 0,At="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,_t="?"+_,Le=`<${_t}>`,T=document,z=()=>T.createComment(""),V=o=>o===null||typeof o!="object"&&typeof o!="function",Ct=Array.isArray,Qt=o=>Ct(o)||typeof o?.[Symbol.iterator]=="function",$t=`[
3
3
  \f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wt=/-->/g,Ft=/>/g,w=RegExp(`>|${$t}(?:([^\\s"'>=/]+)(${$t}*=${$t}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),qt=/'/g,Gt=/"/g,Jt=/^(?:script|style|textarea|title)$/i,wt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ms=wt(1),ys=wt(2),gs=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Kt=new WeakMap,O=T.createTreeWalker(T,129);function Yt(o,t){if(!Ct(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bt!==void 0?Bt.createHTML(t):t}var Zt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,u=i.exec(c),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Wt:u[1]!==void 0?i=Ft:u[2]!==void 0?(Jt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=n??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?w:u[3]==='"'?Gt:qt):i===Gt||i===qt?i=w:i===Wt||i===Ft?i=H:(i=w,n=void 0);let v=i===w&&o[a+1].startsWith("/>")?" ":"";r+=i===H?c+Le:h>=0?(s.push(l),c.slice(0,h)+At+c.slice(h)+_+v):c+_+(h===-2?a:v)}return[Yt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},B=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[l,u]=Zt(t,e);if(this.el=o.createElement(l,s),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=O.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(At)){let m=u[i++],v=n.getAttribute(h).split(_),C=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:C[2],strings:v,ctor:C[1]==="."?ot:C[1]==="?"?nt:C[1]==="@"?rt:P}),n.removeAttribute(h)}else h.startsWith(_)&&(c.push({type:6,index:r}),n.removeAttribute(h));if(Jt.test(n.tagName)){let h=n.textContent.split(_),m=h.length-1;if(m>0){n.textContent=et?et.emptyScript:"";for(let v=0;v<m;v++)n.append(h[v],z()),O.nextNode(),c.push({type:2,index:++r});n.append(h[m],z())}}}else if(n.nodeType===8)if(n.data===_t)c.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(_,h+1))!==-1;)c.push({type:7,index:r}),h+=_.length-1}r++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=V(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=S(o,n._$AS(o,t.values),n,s)),t}var st=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,n=(t?.creationScope??T).importNode(e,!0);O.currentNode=n;let r=O.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new L(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new it(r,this,t)),this._$AV.push(l),c=s[++a]}i!==c?.index&&(r=O.nextNode(),i++)}return O.currentNode=T,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},L=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),V(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(Yt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new st(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Kt.get(t.strings);return e===void 0&&Kt.set(t.strings,e=new B(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(z()),this.O(z()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=Vt(t).nextSibling;Vt(t).remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=S(this,t,e,0),i=!V(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=r[0],c=0;c<r.length-1;c++)l=S(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),i||=!V(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},nt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},rt=class extends P{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},it=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Xt={M:At,P:_,A:_t,C:1,L:Zt,R:st,D:Qt,V:S,I:L,H:P,N:nt,U:rt,B:ot,F:it},Ue=bt.litHtmlPolyfillSupport;Ue?.(B,L),(bt.litHtmlVersions??=[]).push("3.3.2");var at=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new L(t.insertBefore(z(),r),r,void 0,e??{})}return n._$AI(o),n};var Ot=globalThis,E=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:E});var Re=Ot.litElementPolyfillSupport;Re?.({LitElement:E});(Ot.litElementVersions??=[]).push("4.2.2");var te=new Set,ee;var se=o=>typeof o=="string"?o:"el"in o?o.el.localName:"localName"in o?o.localName:o.declaredClass,Ns=(o,t,e,s)=>{let n=se(t);if(s?.once){let i=`${o}${n}${e}`;if(te.has(i))return;te.add(i)}let r;if(s?.detail){r={};for(let[i,a]of Object.entries(s.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(r,i,{enumerable:!0,get(){return c.deref()}})}else r[i]=a;ee?.log.interceptors?.forEach(i=>i(o,n,e,r)),console[o](`[${n}]: ${e}`,r)}else ee?.log.interceptors?.forEach(i=>i(o,n,e)),console[o](`[${n}]: ${e}`)},oe=o=>{let t=`[${se(o)}] `;return e=>{let s=e instanceof Error&&e.message?e:new Error(String(e));s.message=`${t}${s.message}`,setTimeout(()=>{throw e})}};var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},W=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var q=Symbol.for("controller"),Ie=o=>typeof o=="object"&&o!==null&&(q in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Ls=o=>typeof o?.then=="function";var F,D=o=>{F!==o&&(F=o,queueMicrotask(()=>F===o?F=void 0:0))},G=o=>F,N=[],ne=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,U,Us=o=>{U!==o&&(U=o,queueMicrotask(()=>U===o?U=void 0:0))},Me=()=>{let o=U;return U=void 0,o},ie=async(o,t)=>{let e=lt(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},ae=async o=>{let t=lt(o);return await t.ready,t},lt=o=>{let e=G().manager.X(o);if(e!==void 0)return e;if(Ie(o))return o;let s=Me();if(s!==void 0)return s},ct=!1,Rs=o=>{ct=!0;try{return o()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};var ce=(o,t)=>{let e=t>ke?je:t/He,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},ke=4e3,je=2e3,He=4;var ze=(o,t,e)=>{let s=Object.keys(o),n=s.length;R===void 0&&queueMicrotask(I),R??=new Map;let r=R.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},R.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=l=>p(t,null,l),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},R,I=()=>{R?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),R=void 0},Ve=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>p(t,void 0,e===r?n:void 0)),e},Be=(o=[G(),...re()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>ze(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){Ve(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(o="",t={},e=G())=>{let s={emit:n=>{o===""&&I();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&Be(void 0,n=>o=n.key,s),s},Fe=We.bind(null,""),de;de=q;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#n=[],this.#r=[],this.#c=[],this.#l=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,s=t??G(new.target.name);e.#o=s,e.ready=e.P.promise,e.#a=he(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(ne(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#n;#r;#c;#l;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(oe(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(this.#o),lt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#n.push(t)}onUpdate(t){this.#r.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#n.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#r.forEach(le,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(le,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#i.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#i.push(n.remove)})}};function le(o){p(o,void 0,this)}var pe=Tt,he=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var{I:qe}=Xt,ue=o=>o;var ht=o=>o.strings===void 0,fe=()=>document.createComment(""),qs=(o,t,e)=>{let s=o._$AA.parentNode,n=t===void 0?o._$AB:t._$AA;if(e===void 0){let r=s.insertBefore(fe(),n),i=s.insertBefore(fe(),n);e=new qe(r,i,o,o.options)}else{let r=e._$AB.nextSibling,i=e._$AM,a=i!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==i._$AU&&e._$AP(c)}if(r!==n||a){let c=e._$AA;for(;c!==r;){let l=ue(c).nextSibling;ue(s).insertBefore(c,n),c=l}}}return e},Gs=(o,t,e=o)=>(o._$AI(t,e),o),Ge={},me=(o,t=Ge)=>o._$AH=t,Ks=o=>o._$AH,Qs=o=>{o._$AR(),o._$AA.remove()};var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=o=>(...t)=>({_$litDirective$:o,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var K=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),K(s,t);return!0},dt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},ye=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Je(t)}};function Ke(o){this._$AN!==void 0?(dt(this),this._$AM=o,ye(this)):this._$AM=o}function Qe(o,t=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)K(s[r],!1),dt(s[r]);else s!=null&&(K(s,!1),dt(s));else K(this,o)}var Je=o=>{o.type==y.CHILD&&(o._$AP??=Qe,o._$AQ??=Ke)},pt=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(this,t),dt(this))}setValue(t){if(ht(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var ro=()=>new Pt,Pt=class{},St=new WeakMap,Nt=$(class extends pt{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?St.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ut=o=>o.replace(Ze,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ze=/[A-Z]+(?![a-z])|[A-Z]/gu;var Eo="randomUUID"in crypto;var xt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Lt={};function Ut(){}function Rt(o){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;o.prototype["f"+e]=async function(...s){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:s}))}}}var Xe=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,l="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=l.split(";"),C=h?h?.split(",").map(ts):void 0,gt=C?.map(([x])=>x),J=class extends Dt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=gt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=o}constructor(){!J.B&&(J.B=c(),J.F()),super()}};customElements.define(a,J)}},ft=Object.defineProperty,ts=o=>{let t=o.split(":");return t.length===1?[t[0],ut(t[0])]:t},es=globalThis.HTMLElement??Ut,Dt=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#n({a:e.A}):e.B.then(async s=>{await e.K.p,t.#n(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])ft(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ft(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])ft(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{Rt(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=xt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#n(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(h=>h.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let l=document.createElement(i);r.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(n).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([o,t]){this[o]=t}var os=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},t.hasAttribute=function(n){return e.hasAttribute.call(this.el,n)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends pe{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=yt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),D(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=ce(t,ns)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},ns=1e3,yt="autoDestroyDisabled";var ve=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var Ee="important",rs=" !"+Ee,$e=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(rs);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?Ee:""):e[s]=n}}return f}});var is=$(class extends g{constructor(o){if(super(o),o.type!==y.PROPERTY&&o.type!==y.ATTRIBUTE&&o.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ht(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===y.PROPERTY){if(t===e[s])return f}else if(o.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===y.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return me(o),t}});var be=class o extends E{constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#n=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??j,i={attribute:s&1&&typeof t=="string"?ut(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),useDefault:!!(s&128),c:!1,...n,hasChanged(a,c){let l=r(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,i))}}}static{this.lumina=!0}static{Rt(this)}#t;#e;#s;#n;#r;#c;get elementInternals(){return this.#c??=this.el.attachInternals(),this.#c}connectedCallback(){this.hasAttribute("defer-hydration")||this.#l(!0)}#l(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#r=e;let s=!this.manager.connectedCalled;t&&super.connectedCallback(),s?queueMicrotask(()=>this.#i().catch(n=>{this.#n.reject(n),setTimeout(()=>{throw n})})):e&&this.requestUpdate()}#d(t){try{this.#r.clear(),this.constructor.K.r(this.#r,()=>super.update(t))}catch(e){throw this.#r.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#r?.destroy(),this.#r=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Lt?this.el:this.el.attachShadow(s));if(t)return this.manager.connectedCalled||this.#l(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#i(){let t=this.el.G??xt(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(W(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():p(n.hostLoaded,n);this.loaded?.(),this.#n.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#r?this.#d(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#n.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var _e=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var Nn=o=>typeof o=="object"&&o!=null?ve(o):o,Dn=o=>typeof o=="object"&&o!=null?$e(o):o;var It=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(n){return e.#t.call(this,n)}}render(t){return typeof t=="function"?(this.#t=t,Nt(this.#e)):Nt(t)}},xn=$(It);var Ln=d;var Un=o=>{let t=document.createElement("div");return at(o,t),t.firstElementChild};var Q=_e({defaultAssetPath:"https://js.arcgis.com/5.1.24/charts-components/",hydratedAttribute:"hydrated"}),{customElement:jn,getAssetPath:Hn,setAssetPath:zn}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{Ls as a,D as b,ne as c,re as d,Us as e,Rs as f,Ce as g,j as h,ms as i,f as j,d as k,Ns as l,Be as m,Fe as n,Tt as o,Xe as p,y as q,$ as r,g as s,qs as t,Gs as u,me as v,Ks as w,Qs as x,ro as y,Nt as z,be as A,Nn as B,Dn as C,Ln as D,Un as E,Q as F,jn as G,Hn as H};
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),qt=/'/g,Gt=/"/g,Jt=/^(?:script|style|textarea|title)$/i,wt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ms=wt(1),ys=wt(2),gs=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Kt=new WeakMap,O=T.createTreeWalker(T,129);function Yt(o,t){if(!Ct(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bt!==void 0?Bt.createHTML(t):t}var Zt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,u=i.exec(c),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Wt:u[1]!==void 0?i=Ft:u[2]!==void 0?(Jt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=n??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?w:u[3]==='"'?Gt:qt):i===Gt||i===qt?i=w:i===Wt||i===Ft?i=H:(i=w,n=void 0);let v=i===w&&o[a+1].startsWith("/>")?" ":"";r+=i===H?c+Le:h>=0?(s.push(l),c.slice(0,h)+At+c.slice(h)+_+v):c+_+(h===-2?a:v)}return[Yt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},B=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[l,u]=Zt(t,e);if(this.el=o.createElement(l,s),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=O.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(At)){let m=u[i++],v=n.getAttribute(h).split(_),C=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:C[2],strings:v,ctor:C[1]==="."?ot:C[1]==="?"?nt:C[1]==="@"?rt:P}),n.removeAttribute(h)}else h.startsWith(_)&&(c.push({type:6,index:r}),n.removeAttribute(h));if(Jt.test(n.tagName)){let h=n.textContent.split(_),m=h.length-1;if(m>0){n.textContent=et?et.emptyScript:"";for(let v=0;v<m;v++)n.append(h[v],z()),O.nextNode(),c.push({type:2,index:++r});n.append(h[m],z())}}}else if(n.nodeType===8)if(n.data===_t)c.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(_,h+1))!==-1;)c.push({type:7,index:r}),h+=_.length-1}r++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=V(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=S(o,n._$AS(o,t.values),n,s)),t}var st=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,n=(t?.creationScope??T).importNode(e,!0);O.currentNode=n;let r=O.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new L(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new it(r,this,t)),this._$AV.push(l),c=s[++a]}i!==c?.index&&(r=O.nextNode(),i++)}return O.currentNode=T,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},L=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),V(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(Yt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new st(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Kt.get(t.strings);return e===void 0&&Kt.set(t.strings,e=new B(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(z()),this.O(z()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=Vt(t).nextSibling;Vt(t).remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=S(this,t,e,0),i=!V(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=r[0],c=0;c<r.length-1;c++)l=S(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),i||=!V(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},nt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},rt=class extends P{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},it=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Xt={M:At,P:_,A:_t,C:1,L:Zt,R:st,D:Qt,V:S,I:L,H:P,N:nt,U:rt,B:ot,F:it},Ue=bt.litHtmlPolyfillSupport;Ue?.(B,L),(bt.litHtmlVersions??=[]).push("3.3.2");var at=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new L(t.insertBefore(z(),r),r,void 0,e??{})}return n._$AI(o),n};var Ot=globalThis,E=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:E});var Re=Ot.litElementPolyfillSupport;Re?.({LitElement:E});(Ot.litElementVersions??=[]).push("4.2.2");var te=new Set,ee;var se=o=>typeof o=="string"?o:"el"in o?o.el.localName:"localName"in o?o.localName:o.declaredClass,Ns=(o,t,e,s)=>{let n=se(t);if(s?.once){let i=`${o}${n}${e}`;if(te.has(i))return;te.add(i)}let r;if(s?.detail){r={};for(let[i,a]of Object.entries(s.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(r,i,{enumerable:!0,get(){return c.deref()}})}else r[i]=a;ee?.log.interceptors?.forEach(i=>i(o,n,e,r)),console[o](`[${n}]: ${e}`,r)}else ee?.log.interceptors?.forEach(i=>i(o,n,e)),console[o](`[${n}]: ${e}`)},oe=o=>{let t=`[${se(o)}] `;return e=>{let s=e instanceof Error&&e.message?e:new Error(String(e));s.message=`${t}${s.message}`,setTimeout(()=>{throw e})}};var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},W=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var q=Symbol.for("controller"),Ie=o=>typeof o=="object"&&o!==null&&(q in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Ls=o=>typeof o?.then=="function";var F,D=o=>{F!==o&&(F=o,queueMicrotask(()=>F===o?F=void 0:0))},G=o=>F,N=[],ne=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,U,Us=o=>{U!==o&&(U=o,queueMicrotask(()=>U===o?U=void 0:0))},Me=()=>{let o=U;return U=void 0,o},ie=async(o,t)=>{let e=lt(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},ae=async o=>{let t=lt(o);return await t.ready,t},lt=o=>{let e=G().manager.X(o);if(e!==void 0)return e;if(Ie(o))return o;let s=Me();if(s!==void 0)return s},ct=!1,Rs=o=>{ct=!0;try{return o()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};var ce=(o,t)=>{let e=t>ke?je:t/He,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},ke=4e3,je=2e3,He=4;var ze=(o,t,e)=>{let s=Object.keys(o),n=s.length;R===void 0&&queueMicrotask(I),R??=new Map;let r=R.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},R.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=l=>p(t,null,l),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},R,I=()=>{R?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),R=void 0},Ve=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>p(t,void 0,e===r?n:void 0)),e},Be=(o=[G(),...re()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>ze(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){Ve(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(o="",t={},e=G())=>{let s={emit:n=>{o===""&&I();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&Be(void 0,n=>o=n.key,s),s},Fe=We.bind(null,""),de;de=q;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#n=[],this.#r=[],this.#c=[],this.#l=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,s=t??G(new.target.name);e.#o=s,e.ready=e.P.promise,e.#a=he(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(ne(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#n;#r;#c;#l;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(oe(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(this.#o),lt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#n.push(t)}onUpdate(t){this.#r.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#n.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#r.forEach(le,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(le,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#i.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#i.push(n.remove)})}};function le(o){p(o,void 0,this)}var pe=Tt,he=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var{I:qe}=Xt,ue=o=>o;var ht=o=>o.strings===void 0,fe=()=>document.createComment(""),qs=(o,t,e)=>{let s=o._$AA.parentNode,n=t===void 0?o._$AB:t._$AA;if(e===void 0){let r=s.insertBefore(fe(),n),i=s.insertBefore(fe(),n);e=new qe(r,i,o,o.options)}else{let r=e._$AB.nextSibling,i=e._$AM,a=i!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==i._$AU&&e._$AP(c)}if(r!==n||a){let c=e._$AA;for(;c!==r;){let l=ue(c).nextSibling;ue(s).insertBefore(c,n),c=l}}}return e},Gs=(o,t,e=o)=>(o._$AI(t,e),o),Ge={},me=(o,t=Ge)=>o._$AH=t,Ks=o=>o._$AH,Qs=o=>{o._$AR(),o._$AA.remove()};var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=o=>(...t)=>({_$litDirective$:o,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var K=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),K(s,t);return!0},dt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},ye=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Je(t)}};function Ke(o){this._$AN!==void 0?(dt(this),this._$AM=o,ye(this)):this._$AM=o}function Qe(o,t=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)K(s[r],!1),dt(s[r]);else s!=null&&(K(s,!1),dt(s));else K(this,o)}var Je=o=>{o.type==y.CHILD&&(o._$AP??=Qe,o._$AQ??=Ke)},pt=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(this,t),dt(this))}setValue(t){if(ht(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var ro=()=>new Pt,Pt=class{},St=new WeakMap,Nt=$(class extends pt{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?St.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ut=o=>o.replace(Ze,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ze=/[A-Z]+(?![a-z])|[A-Z]/gu;var Eo="randomUUID"in crypto;var xt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Lt={};function Ut(){}function Rt(o){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;o.prototype["f"+e]=async function(...s){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:s}))}}}var Xe=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,l="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=l.split(";"),C=h?h?.split(",").map(ts):void 0,gt=C?.map(([x])=>x),J=class extends Dt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=gt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=o}constructor(){!J.B&&(J.B=c(),J.F()),super()}};customElements.define(a,J)}},ft=Object.defineProperty,ts=o=>{let t=o.split(":");return t.length===1?[t[0],ut(t[0])]:t},es=globalThis.HTMLElement??Ut,Dt=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#n({a:e.A}):e.B.then(async s=>{await e.K.p,t.#n(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])ft(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ft(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])ft(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{Rt(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=xt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#n(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(h=>h.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let l=document.createElement(i);r.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(n).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([o,t]){this[o]=t}var os=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},t.hasAttribute=function(n){return e.hasAttribute.call(this.el,n)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends pe{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=yt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),D(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=ce(t,ns)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},ns=1e3,yt="autoDestroyDisabled";var ve=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var Ee="important",rs=" !"+Ee,$e=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(rs);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?Ee:""):e[s]=n}}return f}});var is=$(class extends g{constructor(o){if(super(o),o.type!==y.PROPERTY&&o.type!==y.ATTRIBUTE&&o.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ht(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===y.PROPERTY){if(t===e[s])return f}else if(o.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===y.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return me(o),t}});var be=class o extends E{constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#n=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??j,i={attribute:s&1&&typeof t=="string"?ut(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),useDefault:!!(s&128),c:!1,...n,hasChanged(a,c){let l=r(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,i))}}}static{this.lumina=!0}static{Rt(this)}#t;#e;#s;#n;#r;#c;get elementInternals(){return this.#c??=this.el.attachInternals(),this.#c}connectedCallback(){this.hasAttribute("defer-hydration")||this.#l(!0)}#l(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#r=e;let s=!this.manager.connectedCalled;t&&super.connectedCallback(),s?queueMicrotask(()=>this.#i().catch(n=>{this.#n.reject(n),setTimeout(()=>{throw n})})):e&&this.requestUpdate()}#d(t){try{this.#r.clear(),this.constructor.K.r(this.#r,()=>super.update(t))}catch(e){throw this.#r.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#r?.destroy(),this.#r=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Lt?this.el:this.el.attachShadow(s));if(t)return this.manager.connectedCalled||this.#l(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#i(){let t=this.el.G??xt(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(W(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():p(n.hostLoaded,n);this.loaded?.(),this.#n.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#r?this.#d(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#n.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var _e=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var Nn=o=>typeof o=="object"&&o!=null?ve(o):o,Dn=o=>typeof o=="object"&&o!=null?$e(o):o;var It=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(n){return e.#t.call(this,n)}}render(t){return typeof t=="function"?(this.#t=t,Nt(this.#e)):Nt(t)}},xn=$(It);var Ln=d;var Un=o=>{let t=document.createElement("div");return at(o,t),t.firstElementChild};var Q=_e({defaultAssetPath:"https://js.arcgis.com/5.1.25/charts-components/",hydratedAttribute:"hydrated"}),{customElement:jn,getAssetPath:Hn,setAssetPath:zn}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{Ls as a,D as b,ne as c,re as d,Us as e,Rs as f,Ce as g,j as h,ms as i,f as j,d as k,Ns as l,Be as m,Fe as n,Tt as o,Xe as p,y as q,$ as r,g as s,qs as t,Gs as u,me as v,Ks as w,Qs as x,ro as y,Nt as z,be as A,Nn as B,Dn as C,Ln as D,Un as E,Q as F,jn as G,Hn as H};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./MULA23EX.js";import{a as ce,b as de,g as le}from"./KGNYAMFB.js";import a from"./HWNY4AMD.js";import{e as Q}from"./777EBGS5.js";import{d as p,r as D,z as O}from"./TA5LVOWS.js";import{L as H,a as V,ha as $,o as W,p as z,ya as Y}from"./IQAKPU7N.js";import{g as n,k as h}from"./FIMXZMTB.js";import{f as j,g as A}from"./CRQ2IRDD.js";import{H as G}from"./SFNDPCJ7.js";import{a as S}from"./43P4WOC4.js";import{a as u,b as x,d as N,h as v,k as B,p as w,q as M,v as y}from"./XOB365BI.js";export default $arcgis.t(([,,,,,,,,,,,,,,,,,,,,{Bb:T,Db:E,Gb:se,Hb:ne,J:Z,L:U,M:J,N:X,Q:ee,R:te,T:F,X:re,a:K,dc:ae,m:q,n:I,nb:C,pb:ie,q:L,rb:oe},{a:ue,e:pe,f:ye,h:me}])=>{var _=(r=>(r.NONE="none",r.ROTATE="rotate",r.STAGGER="stagger",r.WRAP="wrap",r))(_||{});function Ne(r){let{configToUpdate:e,chartContainer:i,layer:t}=r,o=n(e);if(t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek===!0&&(!("firstDayOfWeek"in e)||e.firstDayOfWeek===void 0||e.firstDayOfWeek===null)){let{lang:s}=A(i??document.documentElement);try{o.firstDayOfWeek=K.local().setLocale(s.replaceAll("_","-")).startOf("week",{useLocaleWeeks:!0}).weekday}catch{}}return o}function Ve(r){let e=n(r);if(q(e)){let i=e.series[0],t=e.chartRenderer?.classBreakInfos;if(t?.length&&i?.classBreaksRules){i.classBreaksRules.colorRampInfo=i.classBreaksRules.colorRampInfo??{};let{name:o,flipped:s}=i.classBreaksRules.colorRampInfo,a=pe(t,me.esriColorRamps);if(!o&&a?.name&&(i.classBreaksRules.colorRampInfo.name=a.name),s===void 0&&a){let d=ue({numberOfClassBreaks:t.length,selectedColorRamp:a});d.length===t.length&&(i.classBreaksRules.colorRampInfo.flipped=ye(d,t))}}}return e}function We(r){let e=n(r);return h(r.axes)||(e.axes=r.axes?.map(i=>{let t=i;return delete t.calculateAutomaticMaximum,delete t.calculateAutomaticMinimum,t.title?.content.font?.style!==void 0&&(t.title.content.font.style=t.title.content.font.style.toLowerCase()),t})),e}function ze(r){let e=n(r);return h(r.series)||(e.series=r.series.map((i,t)=>{let o=i;i.id===void 0&&(o.id=`Series ${Date.now()}-${t}`);let s=S(r.series,t);return(s===u.BarSeries||s===u.LineSeries||s===u.RadarSeries)&&o.query?.outStatistics?.[0]?.statisticType==="median"&&(o.query.outStatistics[0].statisticType=x.ContinuousPercentile),s===u.BarSeries&&o.multipleBarType!==void 0&&(o.stackedType=o.multipleBarType,delete o.multipleBarType),s===u.PieSeries&&o.sliceGrouping!==void 0&&(o.sliceGrouping.sliceId=W.defaultGroupOfSlicesId,o.sliceGrouping.groupName!==void 0&&(o.sliceGrouping={...o.sliceGrouping,label:o.sliceGrouping.groupName},delete o.sliceGrouping.groupName),o.sliceGrouping.groupSliceSymbol!==void 0&&(o.sliceGrouping={...o.sliceGrouping,fillSymbol:o.sliceGrouping.groupSliceSymbol},delete o.sliceGrouping.groupSliceSymbol)),o})),e}function fe(r,e){let i=[];return r.forEach(t=>{if(!D(t)){let o=O(t,!1);if(o.fieldToSort!==void 0){let s=T({queryObject:e,fieldToMatch:o.fieldToSort});s!==void 0&&i.push(o.orderBy===void 0?s:`${s} ${o.orderBy}`)}}}),i}async function He(r){let{configToUpdate:e,layer:i,abortSignal:t}=r,o={...e},s=i;if(!s){let a=le(e)?e.iLayer:e.dataSource?.layer;a&&(s=await C(a,t))}if(s){let a=F(o.series),d=S(o.series),b=o.series&&o.series.length>0&&o.series[0].x.trim()===""||d===u.GaugeSeries&&!ae(e)||a===p.PieFromFields||a===p.BarAndLineFromFields||a===p.BoxPlotMonoField||a===p.BoxPlotMonoFieldAndSplitBy||a===p.BoxPlotMultiFields||a===p.BoxPlotMultiFieldsAndSplitBy,je=d===u.ScatterSeries||d===u.HeatSeries||a===p.BarAndLineNoAggregation||a===p.BarAndLineSplitByNoAggregation||a===p.BoxPlotMonoField||a===p.BoxPlotMonoFieldAndSplitBy||a===p.BoxPlotMonoFieldAndCategory||a===p.BoxPlotMonoFieldAndCategoryAndSplitBy||a===p.PieNoAggregation;if(o.series=e.series.map(l=>{let c={...l};if(b||(c.x=T({queryObject:s,fieldToMatch:l.x})),"y"in c&&je){let m=c.y;if(Array.isArray(m)){let f=E({fieldsList:m,queryObject:s});f!==void 0&&"y"in c&&(c.y=f)}else"y"in c&&typeof m=="string"&&(c.y=T({queryObject:s,fieldToMatch:m}))}if(l.query!==void 0){let{where:m,groupByFieldsForStatistics:f,outStatistics:g}=l.query;if(f=E({fieldsList:f,queryObject:s}),g!==void 0&&(g=g.map(P=>{let k={...P};return k.onStatisticField=T({queryObject:s,fieldToMatch:P.onStatisticField}),k})),m!==void 0&&a===p.BarAndLineSplitBy){let P=ee(l.query?.where),k=te({where:l.query?.where,normalize:!1,escape:!1});m=`${T({queryObject:s,fieldToMatch:P})}=${k}`}c.query!==void 0&&(m!==void 0&&(c.query.where=m),f!==void 0&&(c.query.groupByFieldsForStatistics=f),g!==void 0&&(c.query.outStatistics=g))}return c}),o.series[0]?.query!==void 0){let l=o.series[0].query,{orderByFields:c}=l;c!==void 0&&c.length>0&&(c=fe(c,s),c.length>0&&l.orderByFields!==void 0&&(o.series[0].query.orderByFields=c))}if(o.orderOptions?.orderByFields!==void 0){let{orderByFields:l}=o.orderOptions;l!==void 0&&l.length>0&&(l=fe(l,s),l.length>0&&(o.orderOptions.orderByFields=l))}if(d===u.GaugeSeries&&e.axes?.[0]!==void 0){let{minimumFromField:l,maximumFromField:c}=e.axes[0];if(l!==void 0){let m=typeof l=="string"?l:l.onStatisticField,f=T({queryObject:s,fieldToMatch:m}),g=l;typeof e.axes[0].minimumFromField=="string"?g=f:typeof l=="object"&&(g={...l,onStatisticField:f}),e.axes[0].minimumFromField=g}if(c!==void 0){let m=typeof c=="string"?c:c.onStatisticField,f=T({queryObject:s,fieldToMatch:m}),g=c;typeof e.axes[0].maximumFromField=="string"?g=f:typeof c=="object"&&(g={...c,onStatisticField:f}),e.axes[0].maximumFromField=g}}}return o}function $e(r){let e=n(r);if(!h(r.series)&&S(r.series)===u.BoxPlotSeries){let i=e.series[0];i&&(i.showOutliers!==void 0&&(r.showOutliers===void 0&&(e.showOutliers=i.showOutliers),delete i.showOutliers),i.standardizeValues!==void 0&&(r.standardizeValues===void 0&&(e.standardizeValues=i.standardizeValues),delete i.standardizeValues),i.showMean!==void 0&&(r.showMean===void 0&&(e.showMean=i.showMean),delete i.showMean))}return e}function Ye(r){let e={orderType:y.Category,orderBy:v.Ascending},i=r.query?.orderByFields?.[0];if(i!==void 0){let{outStatisticFieldName:t,statisticType:o}=r.query?.outStatistics?.[0]??{},s=O(i);t!==void 0&&s.fieldToSort===t&&o!==void 0&&(o===x.Average||o==="mean"?e.orderType=y.Mean:o===x.ContinuousPercentile&&(e.orderType=y.Median)),e.orderBy=s.orderBy??v.Ascending}return e}function Qe(r){let e=!1,i=Array.from(new Set(r.series.map(t=>t.type)));return i.length===2&&i.includes(u.BoxPlotSeries)&&i.includes(u.LineSeries)&&(e=r.series.find(t=>t.type===u.LineSeries)?.query?.outStatistics?.[0]!==void 0),e}function Ke(r){let e=n(r);if(!h(e.series)&&S(r.series)===u.BoxPlotSeries){if(e.orderOptions?.data===void 0){let i=Ye(r.series[0]);i.orderType!==void 0&&(e.orderOptions??={},e.orderOptions.data={orderType:i.orderType,orderBy:i.orderBy})}if(e.series=r.series.map(i=>{let t=i;return h(t.x?.trim())&&(t.x=z),delete t.query?.orderByFields,t}),Qe(e)){e.showMean=!0;let i=e.series.find(t=>t.type===u.BoxPlotSeries);e.series.forEach(t=>{t.type===u.LineSeries&&(delete t.query?.groupByFieldsForStatistics,delete t.query?.outStatistics,delete t.query?.orderByFields,i&&(t.y=i.y))})}e.series=r.series.map(i=>{let t=i;return delete t.query?.outStatistics,t})}return e}function Ze(r){let e=n(r);return e.legend!==void 0&&!Number.isFinite(e.legend.maxHeight)&&(e.legend.maxHeight=void 0),e}function Je(r){let e=n(r);return"dataSource"in e&&e.dataSource.layer&&(e.iLayer=e.dataSource.layer,delete e.dataSource),e}function Xe(r){let e=n(r),i=new Set,t=e.id??"";return i.add(t),e.series.forEach(o=>{let s=o.id;i.has(s)&&(s=`${s}_${Date.now()}`,o.id=s),i.add(s)}),e}async function et(r){let{configToUpdate:e,layer:i,chartContainer:t,abortSignal:o}=r,s=n(e);if(s=We(s),s=ze(s),s=await He({configToUpdate:s,layer:i,abortSignal:o}),I(s)){let a=$e(s);s=Ke(a)}return s=Ze(s),s=Xe(s),q(s)&&!Q(i)&&(s=Ne({configToUpdate:s,chartContainer:t,layer:i})),s}function tt(r){let e=n(r);return e?.orderOptions?.orderByFields!==void 0&&F(r.series)===p.PieFromFields&&(e.orderOptions.orderByFields=r?.orderOptions?.orderByFields?.map(i=>{let t=n(i);return i!==void 0&&i.includes("arcgis_charts_pie_category_from_fields_name")&&(t=i.replace("arcgis_charts_pie_category_from_fields_name",L)),t})),e}function rt(r){let e=n(r);if(!h(r.series)&&e.axes?.[0]!==void 0&&S(r.series)===u.GaugeSeries&&r.axes?.[0]!==void 0){let i=r.axes[0];i.ticks!==void 0&&Object.hasOwn(i.ticks,"spacing")&&delete i.ticks.spacing,e.axes[0]=i}return e}function it(r){let e=n(r),{extent:i}=e.series[0]?.query??{};return i!==void 0&&(e.dataFilters={...e.dataFilters,geometry:i},e.series.forEach(t=>{"query"in t&&"extent"in t.query&&delete t.query.extent})),e}function Ee(r){let e=n(r);return h(r.series)||(ce(r)&&r.rotated===void 0&&(e.rotated=r.series[0].rotated??$()),e.series.forEach(i=>{i.rotated!==void 0&&delete i.rotated})),e}function ot(r){let e=n(r),i=r.dataSource;return"dataSource"in e&&!h(i)&&(i.type==="featureLayer"&&e.dataSource!==void 0&&(e.dataSource.type="layer"),"featureLayer"in i&&(e.dataSource.layer=i.featureLayer,delete e.dataSource.featureLayer)),e}function st(r){let e=n(r);if("dataSource"in r){let i=r.dataSource;if(i.filter!==void 0&&i.filter.trim()!==""){let t=ne([i.filter,e.dataFilters?.where]);e.dataFilters={...e.dataFilters,where:t},delete e.dataSource.filter}}return e}function nt(r){return r!=="originalValue"}function _e(r){let e;switch(r){case"mean":e=y.Mean;break;case"median":e=y.Median;break;case"category":e=y.Category;break}return e}function at(r){let e=n(r);if(!h(r.series)&&S(r.series)===u.PieSeries){let i=e.series[0];if(i){if(i.sortLabelsBy==="originalValue")e.sortLabelsBy=i.sortLabelsBy;else if(i.sortLabelsBy!==void 0&&e.orderOptions?.data===void 0){let t=R(e);t!==void 0&&(e.orderOptions??={},e.orderOptions.data=t)}i.sortLabelsBy&&delete i.sortLabelsBy}}return e}function ct(r){let e=n(r);return h(r.series)||(de(r)&&r.stackedType===void 0&&(e.stackedType=r.series[0].stackedType??Y()),e.series.forEach(i=>{"stackedType"in i&&delete i.stackedType})),e}function dt(r){let e=n(r),i=r.sortOptions?.sortSeriesBy;return e.orderOptions===void 0&&typeof i=="string"&&(e.orderOptions??={},e.orderOptions.series={orderBy:i==="DESC"?v.Descending:v.Ascending}),e}function lt(r){let e=n(r);return e.colorMatch===void 0&&e.series[0]?.colorType!==void 0&&(e.colorMatch=e.series[0]?.colorType===N.Match),e.series.forEach(i=>{i.colorType!==void 0&&delete i.colorType}),e}function ut(r){let e=n(r);if(e.sortDataBy!==void 0){if(e.orderOptions?.data===void 0){let i=r.sortDataBy,t=_e(i?.sortType);t&&t!==y.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:t,orderBy:i?.sortOrder??v.Ascending})}delete e.sortDataBy}return e}function pt(r){let e=n(r);return e.axes?.forEach(i=>{i!==void 0&&i.scrollbarVisible!==void 0&&i.scrollbar?.visible===void 0&&(i.scrollbar={...i.scrollbar,visible:i.scrollbarVisible},delete i.scrollbarVisible)}),e}function yt(r){let e=n(r),i=e.series[0]?.query?.orderByFields;if(i!==void 0&&i.length>0&&e.orderOptions?.orderByFields===void 0){e.orderOptions??={};let t=!0;if(i.length===1){let{fieldToSort:o,orderBy:s}=O(i[0]),a;o===r.series[0].x||o===L?a=y.Category:"y"in r.series[0]&&o===r.series[0].y&&(a=y.YValue),a&&a!==y.MultiAxes&&(t=!1,e.orderOptions.data===void 0&&(e.orderOptions.data={orderType:a,orderBy:s?.toUpperCase()==="DESC"?v.Descending:v.Ascending}))}t&&(e.orderOptions.orderByFields=i)}return e.series.forEach(t=>{delete t.query?.orderByFields}),e}function R(r){let e,i=r.orderOptions?.orderByFields?.[0];if(r.series?.length>0){let t=S(r.series),o=F(r.series);if(t!==u.PieSeries&&o!==p.BarAndLineFromFields&&(i=i??r.series[0].x),i&&!D(i)){let{fieldToSort:s,orderBy:a}=O(i),d;s===r.series[0].x||s===L?d=y.Category:"y"in r.series[0]&&s===r.series[0].y&&(d=y.YValue),d&&d!==y.MultiAxes&&(e={orderType:d,orderBy:a?.toUpperCase()==="DESC"?v.Descending:v.Ascending})}}return e}function mt(r){let e=n(r),i=r,t=r,o=r,s=r,a=r;if(e){if(e.orderOptions?.series===void 0&&i.sortOptions?.sortSeriesBy!==void 0&&(e.orderOptions??={},e.orderOptions.series={preferLabel:nt(t.sortLabelsBy??i.sortOptions.sortSeriesBy.sortType),orderBy:i.sortOptions.sortSeriesBy.sortOrder??v.Ascending}),t.sortLabelsBy==="originalValue"||s.orderOptions?.data?.preferDataLabel===!1||a.orderOptions?.data?.preferLabel===!1)e.orderOptions?.data&&delete e.orderOptions.data;else if(e.orderOptions?.data===void 0)if(S(e.series)===u.BoxPlotSeries){if(t.sortLabelsBy||o.sortOptions?.sortDataBy!==void 0){let d=_e(o.sortOptions?.sortDataBy?.sortType);d&&d!==y.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:d,orderBy:o.sortOptions?.sortDataBy?.sortOrder??v.Ascending})}}else{let d=R(e);d!==void 0&&(e.orderOptions??={},e.orderOptions.data=d)}"sortLabelsBy"in e&&delete e.sortLabelsBy,"sortOptions"in e&&delete e.sortOptions}return e}function ft(r){let e=n(r);if(e){let i=F(e.series);if((i===p.BarAndLineFromFields||i===p.PieFromFields)&&e.orderOptions?.data===void 0&&e.orderOptions?.orderByFields!==void 0){let t=R(e);t!==void 0&&(e.orderOptions??={},e.orderOptions.data=t,delete e.orderOptions.orderByFields)}}return e}function gt(r){let e=n(r);return e.horizontalAxisLabelsBehavior===_.NONE&&(e.horizontalAxisLabelsBehavior=w.Hide),e.verticalAxisLabelsBehavior===_.NONE&&(e.verticalAxisLabelsBehavior=w.Hide),e}function vt(r){let e=n(r),i=e.series[0];if(i&&!i.temporalBinning&&re(e.series[0])&&("timeIntervalSize"in i||"timeIntervalUnits"in i||"timeAggregationType"in i||"trimIncompleteTimeInterval"in i||"nullPolicy"in i)){if(i.temporalBinning={},i.timeIntervalSize!==void 0&&(i.temporalBinning.size=i.timeIntervalSize,delete i.timeIntervalSize),i.timeIntervalUnits){let t;switch(i.timeIntervalUnits){case"esriTimeUnitsSeconds":t=B.Second;break;case"esriTimeUnitsMinutes":t=B.Minute;break;case"esriTimeUnitsHours":t=B.Hour;break;case"esriTimeUnitsDays":t=B.Day;break;case"esriTimeUnitsWeeks":t=B.Week;break;case"esriTimeUnitsMonths":t=B.Month;break;case"esriTimeUnitsYears":t=B.Year;break}t!==void 0&&(i.temporalBinning.unit=t),delete i.timeIntervalUnits}i.timeAggregationType&&(i.temporalBinning.timeAggregationType=i.timeAggregationType,delete i.timeAggregationType),i.trimIncompleteTimeInterval!==void 0&&(i.temporalBinning.trimIncompleteTimeInterval=i.trimIncompleteTimeInterval,delete i.trimIncompleteTimeInterval),i.nullPolicy&&(i.temporalBinning.nullPolicy=i.nullPolicy,delete i.nullPolicy)}return e}function ht(r){let e=n(r);return e.series.forEach(i=>{i.query?.outStatistics?.forEach(t=>{t.statisticType==="percentile_cont"?t.statisticType=x.ContinuousPercentile:t.statisticType==="percentile_disc"&&(t.statisticType=x.DiscretePercentile)})}),e}function St(r){let e=n(r);return e.subtitle===void 0&&e.subTitle&&(e.subtitle=e.subTitle),delete e.subTitle,e}function Bt(r){let e=n(r),i=e.series[0];return i?.temporalBinning&&delete i.temporalBinning?.type,e}function Tt(r){let e=n(r),i=e.series[0],t=r;return t.series[0]?.xTemporalBinning&&(i.xTemporalBinning={...t.series[0]?.xTemporalBinning,type:u.CalendarDateParts}),t.series[0]?.yTemporalBinning&&(i.yTemporalBinning={...t.series[0]?.yTemporalBinning,type:u.CalendarDateParts}),e}function xt(r){let e=n(r);return e=tt(e),e}function ge(r){let e=n(r);return e=rt(e),e}function ve(r){let e=n(r);return e=it(e),e}function he(r){let e=n(r);return e=Ee(e),e}function Se(r){let e=n(r);return e=ot(e),e}function Be(r){let e=n(r);return e=st(e),e}function Te(r){let e=n(r);return e=at(e),e}function xe(r){let e=n(r);return e=dt(e),e}function be(r){let e=n(r);return e=lt(e),e}function Oe(r){return pt(r)}function Fe(r){let e=n(r);return I(e)&&(e=ut(e)),e}function Ce(r){return ct(r)}function Pe(r){return mt(r)}function ke(r){return Je(r)}function Ae(r){return ft(r)}function Le(r){return gt(r)}function we(r){return vt(r)}function Me(r){return ht(r)}function De(r){let e=n(r);return e=Ee(e),St(e)}function qe(r){let e=n(r);return e=Bt(e),e}function Ie(r){let e=n(r);return e=Tt(e),e}function Ue(r){let e=n(r);return e=Ve(e),e}function bt(r){let{versionsToConvert:e,configToUpdate:i}=r,t=n(i);return e.length>0&&t!==void 0&&(t=yt(t),e.includes(U)||e.includes(J)?(t=xt(t),t=ge(t),t=ve(t),t=he(t),t=Se(t),t=Be(t),t=Te(t),t=xe(t),t=be(t),t=Oe(t),t=Fe(t),t=Ce(t),t=Pe(t),t=ke(t),t=Ae(t),t=Le(t),t=we(t),t=Me(t),t=De(t),t=qe(t),t=Ie(t),t=Ue(t)):e.forEach(o=>{if(t!==void 0)switch(o){case"1.0.1":t=ge(t);break;case"3.4.0":t=ve(t);break;case"4.0.0":t=he(t);break;case"4.0.1":t=Se(t);break;case"6.4.0":t=Be(t);break;case"7.5.1":t=Te(t);break;case"8.0.0":t=xe(t);break;case"9.2.0":t=be(t);break;case"9.7.0":t=Oe(t);break;case"10.0.0":t=Fe(t);break;case"11.0.0":t=Ce(t);break;case"14.0.1":t=Pe(t);break;case"16.0.0":t=ke(t);break;case"16.1.0":t=Ae(t);break;case"18.1.3":t=Le(t);break;case"20.1.0":t=we(t);break;case"21.0.0":t=Me(t);break;case"23.2.0":t=De(t);break;case"24.7.0":t=qe(t);break;case"24.8.0":t=Ie(t);break;case"25.0.0":t=Ue(t);break}}),t.version=V),t}async function Re(r,e,i,t){let o=r;if(r){let s=Z(e);await s?.load({signal:t}),o=await et({configToUpdate:r,layer:s,chartContainer:i,abortSignal:t});let a=r.version??U,{versionStatus:d,versions:b}=X(a);(d===M.Older||d===M.Unrecognized)&&(o=bt({versionsToConvert:b,configToUpdate:o}))}return o}var Ge=class extends EventTarget{constructor(...e){super(),this.dirtyAsyncSetters=[],this.asyncConfigUpdateInProgress=!1,this.pendingUpdates=0,this.dataStore={},this.asyncUpdatesPromise=new Promise(i=>{this.resolveSetup=i}),this.emitConfigUpdate=i=>{this.dispatchEvent(new CustomEvent("arcgisChartsModelConfigChange",{detail:{config:this._config,setterName:i}}))},this.guardSetterFromAsyncOverwrite=async i=>{i(),this.asyncConfigUpdateInProgress&&(await this.asyncUpdatesPromise,i())}}get chartType(){return this._chartType}isSameChartAs(e){let i=e?.layer;return i!==void 0&&this._config.id===e?.chartId&&this.layerInfo?.layer.id===i.id}async update(){await this.asyncUpdatesPromise}async loadConfigFromLayer(e){let{layer:i,iLayer:t,config:o,commonStrings:s}=e;this.commonStrings=s??await j(A(document.documentElement).t9nLocale,G("./assets/common/t9n"),"messages.");let a=i;if(!a&&t?a=await C(t):!a&&o?.iLayer&&(a=await C(o.iLayer)),a){await se(a);let d=ie(a,!0),b=oe(a).idField;this.layerInfo={layer:a,layerFieldsInfo:d,objectIdField:b}}this._config=o?await Re(o):this.generateDefaultConfig(),this._config.legend!==void 0&&this._config.legend?.title===void 0&&(this._config.legend.title=H().title),t&&(this._config.iLayer=t)}startAsyncUpdate(){this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!0,this.asyncUpdatesPromise=new Promise(e=>{this.resolveSetup=e})),this.pendingUpdates+=1}finishAsyncUpdate(){this.pendingUpdates-=1,this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!1,this.resolveSetup?.())}};function pr(r,e,i){let t=i.set,o=i.value;return t&&(i.set=function(s){this.guardSetterFromAsyncOverwrite(()=>{t.call(this,s),this.emitConfigUpdate(e)})}),o&&(i.value=function(...s){this.guardSetterFromAsyncOverwrite(()=>{o.apply(this,s),this.emitConfigUpdate(e)})}),i}return{a:Re,b:Ge,c:pr}},"layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","core/promiseUtils","request","geometry/Point","applications/Components/imageryUtils","AttributeBinsGraphic","layers/support/CodedValueDomain","intl","core/sql","geometry/Extent",a,b)
2
+ import b from"./IG2NVGY7.js";import{a as ce,b as de,g as le}from"./KGNYAMFB.js";import a from"./XXG3ABG4.js";import{e as Q}from"./777EBGS5.js";import{d as p,r as D,z as O}from"./TA5LVOWS.js";import{L as H,a as V,ha as $,o as W,p as z,ya as Y}from"./IQAKPU7N.js";import{g as n,k as h}from"./FIMXZMTB.js";import{f as j,g as A}from"./GZZC4ROO.js";import{H as G}from"./Q2A4ULOC.js";import{a as S}from"./43P4WOC4.js";import{a as u,b as x,d as N,h as v,k as B,p as w,q as M,v as y}from"./XOB365BI.js";export default $arcgis.t(([,,,,,,,,,,,,,,,,,,,,{Bb:T,Db:E,Gb:se,Hb:ne,J:Z,L:U,M:J,N:X,Q:ee,R:te,T:F,X:re,a:K,dc:ae,m:q,n:I,nb:C,pb:ie,q:L,rb:oe},{a:ue,e:pe,f:ye,h:me}])=>{var _=(r=>(r.NONE="none",r.ROTATE="rotate",r.STAGGER="stagger",r.WRAP="wrap",r))(_||{});function Ne(r){let{configToUpdate:e,chartContainer:i,layer:t}=r,o=n(e);if(t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek===!0&&(!("firstDayOfWeek"in e)||e.firstDayOfWeek===void 0||e.firstDayOfWeek===null)){let{lang:s}=A(i??document.documentElement);try{o.firstDayOfWeek=K.local().setLocale(s.replaceAll("_","-")).startOf("week",{useLocaleWeeks:!0}).weekday}catch{}}return o}function Ve(r){let e=n(r);if(q(e)){let i=e.series[0],t=e.chartRenderer?.classBreakInfos;if(t?.length&&i?.classBreaksRules){i.classBreaksRules.colorRampInfo=i.classBreaksRules.colorRampInfo??{};let{name:o,flipped:s}=i.classBreaksRules.colorRampInfo,a=pe(t,me.esriColorRamps);if(!o&&a?.name&&(i.classBreaksRules.colorRampInfo.name=a.name),s===void 0&&a){let d=ue({numberOfClassBreaks:t.length,selectedColorRamp:a});d.length===t.length&&(i.classBreaksRules.colorRampInfo.flipped=ye(d,t))}}}return e}function We(r){let e=n(r);return h(r.axes)||(e.axes=r.axes?.map(i=>{let t=i;return delete t.calculateAutomaticMaximum,delete t.calculateAutomaticMinimum,t.title?.content.font?.style!==void 0&&(t.title.content.font.style=t.title.content.font.style.toLowerCase()),t})),e}function ze(r){let e=n(r);return h(r.series)||(e.series=r.series.map((i,t)=>{let o=i;i.id===void 0&&(o.id=`Series ${Date.now()}-${t}`);let s=S(r.series,t);return(s===u.BarSeries||s===u.LineSeries||s===u.RadarSeries)&&o.query?.outStatistics?.[0]?.statisticType==="median"&&(o.query.outStatistics[0].statisticType=x.ContinuousPercentile),s===u.BarSeries&&o.multipleBarType!==void 0&&(o.stackedType=o.multipleBarType,delete o.multipleBarType),s===u.PieSeries&&o.sliceGrouping!==void 0&&(o.sliceGrouping.sliceId=W.defaultGroupOfSlicesId,o.sliceGrouping.groupName!==void 0&&(o.sliceGrouping={...o.sliceGrouping,label:o.sliceGrouping.groupName},delete o.sliceGrouping.groupName),o.sliceGrouping.groupSliceSymbol!==void 0&&(o.sliceGrouping={...o.sliceGrouping,fillSymbol:o.sliceGrouping.groupSliceSymbol},delete o.sliceGrouping.groupSliceSymbol)),o})),e}function fe(r,e){let i=[];return r.forEach(t=>{if(!D(t)){let o=O(t,!1);if(o.fieldToSort!==void 0){let s=T({queryObject:e,fieldToMatch:o.fieldToSort});s!==void 0&&i.push(o.orderBy===void 0?s:`${s} ${o.orderBy}`)}}}),i}async function He(r){let{configToUpdate:e,layer:i,abortSignal:t}=r,o={...e},s=i;if(!s){let a=le(e)?e.iLayer:e.dataSource?.layer;a&&(s=await C(a,t))}if(s){let a=F(o.series),d=S(o.series),b=o.series&&o.series.length>0&&o.series[0].x.trim()===""||d===u.GaugeSeries&&!ae(e)||a===p.PieFromFields||a===p.BarAndLineFromFields||a===p.BoxPlotMonoField||a===p.BoxPlotMonoFieldAndSplitBy||a===p.BoxPlotMultiFields||a===p.BoxPlotMultiFieldsAndSplitBy,je=d===u.ScatterSeries||d===u.HeatSeries||a===p.BarAndLineNoAggregation||a===p.BarAndLineSplitByNoAggregation||a===p.BoxPlotMonoField||a===p.BoxPlotMonoFieldAndSplitBy||a===p.BoxPlotMonoFieldAndCategory||a===p.BoxPlotMonoFieldAndCategoryAndSplitBy||a===p.PieNoAggregation;if(o.series=e.series.map(l=>{let c={...l};if(b||(c.x=T({queryObject:s,fieldToMatch:l.x})),"y"in c&&je){let m=c.y;if(Array.isArray(m)){let f=E({fieldsList:m,queryObject:s});f!==void 0&&"y"in c&&(c.y=f)}else"y"in c&&typeof m=="string"&&(c.y=T({queryObject:s,fieldToMatch:m}))}if(l.query!==void 0){let{where:m,groupByFieldsForStatistics:f,outStatistics:g}=l.query;if(f=E({fieldsList:f,queryObject:s}),g!==void 0&&(g=g.map(P=>{let k={...P};return k.onStatisticField=T({queryObject:s,fieldToMatch:P.onStatisticField}),k})),m!==void 0&&a===p.BarAndLineSplitBy){let P=ee(l.query?.where),k=te({where:l.query?.where,normalize:!1,escape:!1});m=`${T({queryObject:s,fieldToMatch:P})}=${k}`}c.query!==void 0&&(m!==void 0&&(c.query.where=m),f!==void 0&&(c.query.groupByFieldsForStatistics=f),g!==void 0&&(c.query.outStatistics=g))}return c}),o.series[0]?.query!==void 0){let l=o.series[0].query,{orderByFields:c}=l;c!==void 0&&c.length>0&&(c=fe(c,s),c.length>0&&l.orderByFields!==void 0&&(o.series[0].query.orderByFields=c))}if(o.orderOptions?.orderByFields!==void 0){let{orderByFields:l}=o.orderOptions;l!==void 0&&l.length>0&&(l=fe(l,s),l.length>0&&(o.orderOptions.orderByFields=l))}if(d===u.GaugeSeries&&e.axes?.[0]!==void 0){let{minimumFromField:l,maximumFromField:c}=e.axes[0];if(l!==void 0){let m=typeof l=="string"?l:l.onStatisticField,f=T({queryObject:s,fieldToMatch:m}),g=l;typeof e.axes[0].minimumFromField=="string"?g=f:typeof l=="object"&&(g={...l,onStatisticField:f}),e.axes[0].minimumFromField=g}if(c!==void 0){let m=typeof c=="string"?c:c.onStatisticField,f=T({queryObject:s,fieldToMatch:m}),g=c;typeof e.axes[0].maximumFromField=="string"?g=f:typeof c=="object"&&(g={...c,onStatisticField:f}),e.axes[0].maximumFromField=g}}}return o}function $e(r){let e=n(r);if(!h(r.series)&&S(r.series)===u.BoxPlotSeries){let i=e.series[0];i&&(i.showOutliers!==void 0&&(r.showOutliers===void 0&&(e.showOutliers=i.showOutliers),delete i.showOutliers),i.standardizeValues!==void 0&&(r.standardizeValues===void 0&&(e.standardizeValues=i.standardizeValues),delete i.standardizeValues),i.showMean!==void 0&&(r.showMean===void 0&&(e.showMean=i.showMean),delete i.showMean))}return e}function Ye(r){let e={orderType:y.Category,orderBy:v.Ascending},i=r.query?.orderByFields?.[0];if(i!==void 0){let{outStatisticFieldName:t,statisticType:o}=r.query?.outStatistics?.[0]??{},s=O(i);t!==void 0&&s.fieldToSort===t&&o!==void 0&&(o===x.Average||o==="mean"?e.orderType=y.Mean:o===x.ContinuousPercentile&&(e.orderType=y.Median)),e.orderBy=s.orderBy??v.Ascending}return e}function Qe(r){let e=!1,i=Array.from(new Set(r.series.map(t=>t.type)));return i.length===2&&i.includes(u.BoxPlotSeries)&&i.includes(u.LineSeries)&&(e=r.series.find(t=>t.type===u.LineSeries)?.query?.outStatistics?.[0]!==void 0),e}function Ke(r){let e=n(r);if(!h(e.series)&&S(r.series)===u.BoxPlotSeries){if(e.orderOptions?.data===void 0){let i=Ye(r.series[0]);i.orderType!==void 0&&(e.orderOptions??={},e.orderOptions.data={orderType:i.orderType,orderBy:i.orderBy})}if(e.series=r.series.map(i=>{let t=i;return h(t.x?.trim())&&(t.x=z),delete t.query?.orderByFields,t}),Qe(e)){e.showMean=!0;let i=e.series.find(t=>t.type===u.BoxPlotSeries);e.series.forEach(t=>{t.type===u.LineSeries&&(delete t.query?.groupByFieldsForStatistics,delete t.query?.outStatistics,delete t.query?.orderByFields,i&&(t.y=i.y))})}e.series=r.series.map(i=>{let t=i;return delete t.query?.outStatistics,t})}return e}function Ze(r){let e=n(r);return e.legend!==void 0&&!Number.isFinite(e.legend.maxHeight)&&(e.legend.maxHeight=void 0),e}function Je(r){let e=n(r);return"dataSource"in e&&e.dataSource.layer&&(e.iLayer=e.dataSource.layer,delete e.dataSource),e}function Xe(r){let e=n(r),i=new Set,t=e.id??"";return i.add(t),e.series.forEach(o=>{let s=o.id;i.has(s)&&(s=`${s}_${Date.now()}`,o.id=s),i.add(s)}),e}async function et(r){let{configToUpdate:e,layer:i,chartContainer:t,abortSignal:o}=r,s=n(e);if(s=We(s),s=ze(s),s=await He({configToUpdate:s,layer:i,abortSignal:o}),I(s)){let a=$e(s);s=Ke(a)}return s=Ze(s),s=Xe(s),q(s)&&!Q(i)&&(s=Ne({configToUpdate:s,chartContainer:t,layer:i})),s}function tt(r){let e=n(r);return e?.orderOptions?.orderByFields!==void 0&&F(r.series)===p.PieFromFields&&(e.orderOptions.orderByFields=r?.orderOptions?.orderByFields?.map(i=>{let t=n(i);return i!==void 0&&i.includes("arcgis_charts_pie_category_from_fields_name")&&(t=i.replace("arcgis_charts_pie_category_from_fields_name",L)),t})),e}function rt(r){let e=n(r);if(!h(r.series)&&e.axes?.[0]!==void 0&&S(r.series)===u.GaugeSeries&&r.axes?.[0]!==void 0){let i=r.axes[0];i.ticks!==void 0&&Object.hasOwn(i.ticks,"spacing")&&delete i.ticks.spacing,e.axes[0]=i}return e}function it(r){let e=n(r),{extent:i}=e.series[0]?.query??{};return i!==void 0&&(e.dataFilters={...e.dataFilters,geometry:i},e.series.forEach(t=>{"query"in t&&"extent"in t.query&&delete t.query.extent})),e}function Ee(r){let e=n(r);return h(r.series)||(ce(r)&&r.rotated===void 0&&(e.rotated=r.series[0].rotated??$()),e.series.forEach(i=>{i.rotated!==void 0&&delete i.rotated})),e}function ot(r){let e=n(r),i=r.dataSource;return"dataSource"in e&&!h(i)&&(i.type==="featureLayer"&&e.dataSource!==void 0&&(e.dataSource.type="layer"),"featureLayer"in i&&(e.dataSource.layer=i.featureLayer,delete e.dataSource.featureLayer)),e}function st(r){let e=n(r);if("dataSource"in r){let i=r.dataSource;if(i.filter!==void 0&&i.filter.trim()!==""){let t=ne([i.filter,e.dataFilters?.where]);e.dataFilters={...e.dataFilters,where:t},delete e.dataSource.filter}}return e}function nt(r){return r!=="originalValue"}function _e(r){let e;switch(r){case"mean":e=y.Mean;break;case"median":e=y.Median;break;case"category":e=y.Category;break}return e}function at(r){let e=n(r);if(!h(r.series)&&S(r.series)===u.PieSeries){let i=e.series[0];if(i){if(i.sortLabelsBy==="originalValue")e.sortLabelsBy=i.sortLabelsBy;else if(i.sortLabelsBy!==void 0&&e.orderOptions?.data===void 0){let t=R(e);t!==void 0&&(e.orderOptions??={},e.orderOptions.data=t)}i.sortLabelsBy&&delete i.sortLabelsBy}}return e}function ct(r){let e=n(r);return h(r.series)||(de(r)&&r.stackedType===void 0&&(e.stackedType=r.series[0].stackedType??Y()),e.series.forEach(i=>{"stackedType"in i&&delete i.stackedType})),e}function dt(r){let e=n(r),i=r.sortOptions?.sortSeriesBy;return e.orderOptions===void 0&&typeof i=="string"&&(e.orderOptions??={},e.orderOptions.series={orderBy:i==="DESC"?v.Descending:v.Ascending}),e}function lt(r){let e=n(r);return e.colorMatch===void 0&&e.series[0]?.colorType!==void 0&&(e.colorMatch=e.series[0]?.colorType===N.Match),e.series.forEach(i=>{i.colorType!==void 0&&delete i.colorType}),e}function ut(r){let e=n(r);if(e.sortDataBy!==void 0){if(e.orderOptions?.data===void 0){let i=r.sortDataBy,t=_e(i?.sortType);t&&t!==y.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:t,orderBy:i?.sortOrder??v.Ascending})}delete e.sortDataBy}return e}function pt(r){let e=n(r);return e.axes?.forEach(i=>{i!==void 0&&i.scrollbarVisible!==void 0&&i.scrollbar?.visible===void 0&&(i.scrollbar={...i.scrollbar,visible:i.scrollbarVisible},delete i.scrollbarVisible)}),e}function yt(r){let e=n(r),i=e.series[0]?.query?.orderByFields;if(i!==void 0&&i.length>0&&e.orderOptions?.orderByFields===void 0){e.orderOptions??={};let t=!0;if(i.length===1){let{fieldToSort:o,orderBy:s}=O(i[0]),a;o===r.series[0].x||o===L?a=y.Category:"y"in r.series[0]&&o===r.series[0].y&&(a=y.YValue),a&&a!==y.MultiAxes&&(t=!1,e.orderOptions.data===void 0&&(e.orderOptions.data={orderType:a,orderBy:s?.toUpperCase()==="DESC"?v.Descending:v.Ascending}))}t&&(e.orderOptions.orderByFields=i)}return e.series.forEach(t=>{delete t.query?.orderByFields}),e}function R(r){let e,i=r.orderOptions?.orderByFields?.[0];if(r.series?.length>0){let t=S(r.series),o=F(r.series);if(t!==u.PieSeries&&o!==p.BarAndLineFromFields&&(i=i??r.series[0].x),i&&!D(i)){let{fieldToSort:s,orderBy:a}=O(i),d;s===r.series[0].x||s===L?d=y.Category:"y"in r.series[0]&&s===r.series[0].y&&(d=y.YValue),d&&d!==y.MultiAxes&&(e={orderType:d,orderBy:a?.toUpperCase()==="DESC"?v.Descending:v.Ascending})}}return e}function mt(r){let e=n(r),i=r,t=r,o=r,s=r,a=r;if(e){if(e.orderOptions?.series===void 0&&i.sortOptions?.sortSeriesBy!==void 0&&(e.orderOptions??={},e.orderOptions.series={preferLabel:nt(t.sortLabelsBy??i.sortOptions.sortSeriesBy.sortType),orderBy:i.sortOptions.sortSeriesBy.sortOrder??v.Ascending}),t.sortLabelsBy==="originalValue"||s.orderOptions?.data?.preferDataLabel===!1||a.orderOptions?.data?.preferLabel===!1)e.orderOptions?.data&&delete e.orderOptions.data;else if(e.orderOptions?.data===void 0)if(S(e.series)===u.BoxPlotSeries){if(t.sortLabelsBy||o.sortOptions?.sortDataBy!==void 0){let d=_e(o.sortOptions?.sortDataBy?.sortType);d&&d!==y.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:d,orderBy:o.sortOptions?.sortDataBy?.sortOrder??v.Ascending})}}else{let d=R(e);d!==void 0&&(e.orderOptions??={},e.orderOptions.data=d)}"sortLabelsBy"in e&&delete e.sortLabelsBy,"sortOptions"in e&&delete e.sortOptions}return e}function ft(r){let e=n(r);if(e){let i=F(e.series);if((i===p.BarAndLineFromFields||i===p.PieFromFields)&&e.orderOptions?.data===void 0&&e.orderOptions?.orderByFields!==void 0){let t=R(e);t!==void 0&&(e.orderOptions??={},e.orderOptions.data=t,delete e.orderOptions.orderByFields)}}return e}function gt(r){let e=n(r);return e.horizontalAxisLabelsBehavior===_.NONE&&(e.horizontalAxisLabelsBehavior=w.Hide),e.verticalAxisLabelsBehavior===_.NONE&&(e.verticalAxisLabelsBehavior=w.Hide),e}function vt(r){let e=n(r),i=e.series[0];if(i&&!i.temporalBinning&&re(e.series[0])&&("timeIntervalSize"in i||"timeIntervalUnits"in i||"timeAggregationType"in i||"trimIncompleteTimeInterval"in i||"nullPolicy"in i)){if(i.temporalBinning={},i.timeIntervalSize!==void 0&&(i.temporalBinning.size=i.timeIntervalSize,delete i.timeIntervalSize),i.timeIntervalUnits){let t;switch(i.timeIntervalUnits){case"esriTimeUnitsSeconds":t=B.Second;break;case"esriTimeUnitsMinutes":t=B.Minute;break;case"esriTimeUnitsHours":t=B.Hour;break;case"esriTimeUnitsDays":t=B.Day;break;case"esriTimeUnitsWeeks":t=B.Week;break;case"esriTimeUnitsMonths":t=B.Month;break;case"esriTimeUnitsYears":t=B.Year;break}t!==void 0&&(i.temporalBinning.unit=t),delete i.timeIntervalUnits}i.timeAggregationType&&(i.temporalBinning.timeAggregationType=i.timeAggregationType,delete i.timeAggregationType),i.trimIncompleteTimeInterval!==void 0&&(i.temporalBinning.trimIncompleteTimeInterval=i.trimIncompleteTimeInterval,delete i.trimIncompleteTimeInterval),i.nullPolicy&&(i.temporalBinning.nullPolicy=i.nullPolicy,delete i.nullPolicy)}return e}function ht(r){let e=n(r);return e.series.forEach(i=>{i.query?.outStatistics?.forEach(t=>{t.statisticType==="percentile_cont"?t.statisticType=x.ContinuousPercentile:t.statisticType==="percentile_disc"&&(t.statisticType=x.DiscretePercentile)})}),e}function St(r){let e=n(r);return e.subtitle===void 0&&e.subTitle&&(e.subtitle=e.subTitle),delete e.subTitle,e}function Bt(r){let e=n(r),i=e.series[0];return i?.temporalBinning&&delete i.temporalBinning?.type,e}function Tt(r){let e=n(r),i=e.series[0],t=r;return t.series[0]?.xTemporalBinning&&(i.xTemporalBinning={...t.series[0]?.xTemporalBinning,type:u.CalendarDateParts}),t.series[0]?.yTemporalBinning&&(i.yTemporalBinning={...t.series[0]?.yTemporalBinning,type:u.CalendarDateParts}),e}function xt(r){let e=n(r);return e=tt(e),e}function ge(r){let e=n(r);return e=rt(e),e}function ve(r){let e=n(r);return e=it(e),e}function he(r){let e=n(r);return e=Ee(e),e}function Se(r){let e=n(r);return e=ot(e),e}function Be(r){let e=n(r);return e=st(e),e}function Te(r){let e=n(r);return e=at(e),e}function xe(r){let e=n(r);return e=dt(e),e}function be(r){let e=n(r);return e=lt(e),e}function Oe(r){return pt(r)}function Fe(r){let e=n(r);return I(e)&&(e=ut(e)),e}function Ce(r){return ct(r)}function Pe(r){return mt(r)}function ke(r){return Je(r)}function Ae(r){return ft(r)}function Le(r){return gt(r)}function we(r){return vt(r)}function Me(r){return ht(r)}function De(r){let e=n(r);return e=Ee(e),St(e)}function qe(r){let e=n(r);return e=Bt(e),e}function Ie(r){let e=n(r);return e=Tt(e),e}function Ue(r){let e=n(r);return e=Ve(e),e}function bt(r){let{versionsToConvert:e,configToUpdate:i}=r,t=n(i);return e.length>0&&t!==void 0&&(t=yt(t),e.includes(U)||e.includes(J)?(t=xt(t),t=ge(t),t=ve(t),t=he(t),t=Se(t),t=Be(t),t=Te(t),t=xe(t),t=be(t),t=Oe(t),t=Fe(t),t=Ce(t),t=Pe(t),t=ke(t),t=Ae(t),t=Le(t),t=we(t),t=Me(t),t=De(t),t=qe(t),t=Ie(t),t=Ue(t)):e.forEach(o=>{if(t!==void 0)switch(o){case"1.0.1":t=ge(t);break;case"3.4.0":t=ve(t);break;case"4.0.0":t=he(t);break;case"4.0.1":t=Se(t);break;case"6.4.0":t=Be(t);break;case"7.5.1":t=Te(t);break;case"8.0.0":t=xe(t);break;case"9.2.0":t=be(t);break;case"9.7.0":t=Oe(t);break;case"10.0.0":t=Fe(t);break;case"11.0.0":t=Ce(t);break;case"14.0.1":t=Pe(t);break;case"16.0.0":t=ke(t);break;case"16.1.0":t=Ae(t);break;case"18.1.3":t=Le(t);break;case"20.1.0":t=we(t);break;case"21.0.0":t=Me(t);break;case"23.2.0":t=De(t);break;case"24.7.0":t=qe(t);break;case"24.8.0":t=Ie(t);break;case"25.0.0":t=Ue(t);break}}),t.version=V),t}async function Re(r,e,i,t){let o=r;if(r){let s=Z(e);await s?.load({signal:t}),o=await et({configToUpdate:r,layer:s,chartContainer:i,abortSignal:t});let a=r.version??U,{versionStatus:d,versions:b}=X(a);(d===M.Older||d===M.Unrecognized)&&(o=bt({versionsToConvert:b,configToUpdate:o}))}return o}var Ge=class extends EventTarget{constructor(...e){super(),this.dirtyAsyncSetters=[],this.asyncConfigUpdateInProgress=!1,this.pendingUpdates=0,this.dataStore={},this.asyncUpdatesPromise=new Promise(i=>{this.resolveSetup=i}),this.emitConfigUpdate=i=>{this.dispatchEvent(new CustomEvent("arcgisChartsModelConfigChange",{detail:{config:this._config,setterName:i}}))},this.guardSetterFromAsyncOverwrite=async i=>{i(),this.asyncConfigUpdateInProgress&&(await this.asyncUpdatesPromise,i())}}get chartType(){return this._chartType}isSameChartAs(e){let i=e?.layer;return i!==void 0&&this._config.id===e?.chartId&&this.layerInfo?.layer.id===i.id}async update(){await this.asyncUpdatesPromise}async loadConfigFromLayer(e){let{layer:i,iLayer:t,config:o,commonStrings:s}=e;this.commonStrings=s??await j(A(document.documentElement).t9nLocale,G("./assets/common/t9n"),"messages.");let a=i;if(!a&&t?a=await C(t):!a&&o?.iLayer&&(a=await C(o.iLayer)),a){await se(a);let d=ie(a,!0),b=oe(a).idField;this.layerInfo={layer:a,layerFieldsInfo:d,objectIdField:b}}this._config=o?await Re(o):this.generateDefaultConfig(),this._config.legend!==void 0&&this._config.legend?.title===void 0&&(this._config.legend.title=H().title),t&&(this._config.iLayer=t)}startAsyncUpdate(){this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!0,this.asyncUpdatesPromise=new Promise(e=>{this.resolveSetup=e})),this.pendingUpdates+=1}finishAsyncUpdate(){this.pendingUpdates-=1,this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!1,this.resolveSetup?.())}};function pr(r,e,i){let t=i.set,o=i.value;return t&&(i.set=function(s){this.guardSetterFromAsyncOverwrite(()=>{t.call(this,s),this.emitConfigUpdate(e)})}),o&&(i.value=function(...s){this.guardSetterFromAsyncOverwrite(()=>{o.apply(this,s),this.emitConfigUpdate(e)})}),i}return{a:Re,b:Ge,c:pr}},"layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","core/promiseUtils","request","geometry/Point","applications/Components/imageryUtils","AttributeBinsGraphic","layers/support/CodedValueDomain","intl","core/sql","geometry/Extent",a,b)