@arcgis/charts-components 5.1.17 → 5.1.18

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/{TTK7QOQK.js → 233WQ7B5.js} +1 -1
  2. package/dist/cdn/{SRETD6LT.js → 2CELKOVZ.js} +1 -1
  3. package/dist/cdn/{3LYRX3VR.js → 2HW4BWSX.js} +1 -1
  4. package/dist/cdn/{FHJEIROT.js → 32ZMY4G4.js} +1 -1
  5. package/dist/cdn/{ZACHNMBL.js → 3IKZO7OS.js} +1 -1
  6. package/dist/cdn/{WNWPLCC5.js → 3P46NBNC.js} +1 -1
  7. package/dist/cdn/{ASUBVEE3.js → 42VL22R4.js} +1 -1
  8. package/dist/cdn/{D45EHXZD.js → 433ZTQXI.js} +1 -1
  9. package/dist/cdn/{ACY7BYCY.js → 44KY2VCD.js} +1 -1
  10. package/dist/cdn/{CUKCDT6O.js → 4D75GGNC.js} +1 -1
  11. package/dist/cdn/{ZKDYBA4V.js → 4EL2GIVS.js} +1 -1
  12. package/dist/cdn/{ID2K2AXQ.js → 4LWTG7JS.js} +1 -1
  13. package/dist/cdn/{YXW5NKGW.js → 4P4QWJTV.js} +1 -1
  14. package/dist/cdn/{VL6IRX4C.js → 4V3ZNB2E.js} +1 -1
  15. package/dist/cdn/{6GA6S2RY.js → 63L5H37U.js} +1 -1
  16. package/dist/cdn/{HFUITMBM.js → 6GVPAO4U.js} +1 -1
  17. package/dist/cdn/{TITLNBXS.js → 6HBGJTP3.js} +1 -1
  18. package/dist/cdn/{65T2UN6O.js → 7AIIJ4X2.js} +1 -1
  19. package/dist/cdn/{CEQBEW2C.js → 7C64MLDW.js} +1 -1
  20. package/dist/cdn/{M42HPZUH.js → 7JZGVLL3.js} +1 -1
  21. package/dist/cdn/{I5KLX5G4.js → 7KNHQCLQ.js} +1 -1
  22. package/dist/cdn/{RRAQIRSF.js → AGZ22VFP.js} +1 -1
  23. package/dist/cdn/{3HYFDCRX.js → AJYDXFTP.js} +1 -1
  24. package/dist/cdn/{GRL3IZQL.js → AMLOUYNK.js} +1 -1
  25. package/dist/cdn/{MIBJMIWI.js → AO4MHNRS.js} +1 -1
  26. package/dist/cdn/{CPED36ZF.js → BAAEO2HR.js} +1 -1
  27. package/dist/cdn/{GPSDCIP7.js → BTSPAMCI.js} +1 -1
  28. package/dist/cdn/{ZL2TAVD7.js → C2BIB3MG.js} +1 -1
  29. package/dist/cdn/{QZWV2IBS.js → CKRG5IN2.js} +1 -1
  30. package/dist/cdn/{FTP7CKND.js → CLY4TKVN.js} +1 -1
  31. package/dist/cdn/{4OLPGLWU.js → COP6OWIK.js} +1 -1
  32. package/dist/cdn/{DN7UTEWP.js → CPCLDDZX.js} +1 -1
  33. package/dist/cdn/{LAK6F7HE.js → CTSNEM5K.js} +1 -1
  34. package/dist/cdn/{ITGXOFVT.js → D2CHFTNT.js} +1 -1
  35. package/dist/cdn/{72HNNYVN.js → D6U4AX72.js} +1 -1
  36. package/dist/cdn/{SXUFQAOQ.js → D7KHPI5A.js} +1 -1
  37. package/dist/cdn/{C4XY4KML.js → DL5IRYE7.js} +1 -1
  38. package/dist/cdn/{2ZJFU3KJ.js → EWGV6Z5L.js} +1 -1
  39. package/dist/cdn/{PJQQ3ME6.js → FF3DIGI7.js} +1 -1
  40. package/dist/cdn/{VMGHGLAP.js → GBBSOI2C.js} +1 -1
  41. package/dist/cdn/{IQN65I2M.js → GDJT2RFF.js} +1 -1
  42. package/dist/cdn/{CWGB4HZD.js → GKN2SOET.js} +1 -1
  43. package/dist/cdn/{AA77VVTU.js → GOLNR6ZD.js} +1 -1
  44. package/dist/cdn/{WARNEMHX.js → GSVEZDUO.js} +1 -1
  45. package/dist/cdn/{6X4KIIF7.js → HTZOS66U.js} +1 -1
  46. package/dist/cdn/{JUEYCF6F.js → I5YT5IMB.js} +1 -1
  47. package/dist/cdn/{GQR4CD4Q.js → IF7GZKB5.js} +1 -1
  48. package/dist/cdn/{QWSM2IEV.js → J3FFQGY5.js} +1 -1
  49. package/dist/cdn/{4TCMKONI.js → JGUPKBMD.js} +1 -1
  50. package/dist/cdn/{3NOAFT7A.js → JYX2ZHFV.js} +1 -1
  51. package/dist/cdn/{IOQADEYZ.js → KBU22IU5.js} +1 -1
  52. package/dist/cdn/{W36GE4OT.js → KDP4PJLX.js} +1 -1
  53. package/dist/cdn/{35VPQWQR.js → KIG7TJAX.js} +1 -1
  54. package/dist/cdn/{KI35RTEB.js → KTRHTYMZ.js} +1 -1
  55. package/dist/cdn/{QF2M54VK.js → M2KMQDO6.js} +1 -1
  56. package/dist/cdn/{VLI3SSQA.js → MA4DBTUS.js} +1 -1
  57. package/dist/cdn/{O7CKT6I3.js → NAXIQS2B.js} +1 -1
  58. package/dist/cdn/{L7F55YGM.js → NJZ3X4TH.js} +1 -1
  59. package/dist/cdn/{DZTS4LLF.js → O3ARDFTB.js} +1 -1
  60. package/dist/cdn/{L3F4N4UF.js → O4WHDQEF.js} +1 -1
  61. package/dist/cdn/{UM5GZX77.js → O5X7T7FX.js} +1 -1
  62. package/dist/cdn/{ECTFV2SG.js → OVCUSYXS.js} +1 -1
  63. package/dist/cdn/{TWHTCWDJ.js → P55A3575.js} +1 -1
  64. package/dist/cdn/{VI3NOGA3.js → PN727AHE.js} +1 -1
  65. package/dist/cdn/{NTY4A5YA.js → PPCBKOGC.js} +1 -1
  66. package/dist/cdn/{EYJKHFDP.js → PT3RO6SC.js} +1 -1
  67. package/dist/cdn/{EGBKGQWD.js → Q3NTO2MF.js} +1 -1
  68. package/dist/cdn/{IVYTN7GT.js → QDJWGCAB.js} +1 -1
  69. package/dist/cdn/{RGDZPFBB.js → QZVA53YN.js} +1 -1
  70. package/dist/cdn/{S76JSK7R.js → R665DR3T.js} +1 -1
  71. package/dist/cdn/{WDYEW5YK.js → RLLPYA3S.js} +1 -1
  72. package/dist/cdn/{GEGAXK3A.js → RRIQS6A7.js} +1 -1
  73. package/dist/cdn/{PA2KOZKS.js → SGSBVZZQ.js} +1 -1
  74. package/dist/cdn/{XF7GKZVR.js → TBVWBSV4.js} +1 -1
  75. package/dist/cdn/{P5MX2B3Z.js → TZMH3CXI.js} +1 -1
  76. package/dist/cdn/{NRMOTIKL.js → UG54FVYV.js} +1 -1
  77. package/dist/cdn/{HBTY2DWO.js → UJHUTOUV.js} +1 -1
  78. package/dist/cdn/{ALRG7REN.js → UOZ4QVG4.js} +1 -1
  79. package/dist/cdn/{CD5IZD4J.js → USB3AF7C.js} +1 -1
  80. package/dist/cdn/{P4RUSHHB.js → V3YBM2H5.js} +1 -1
  81. package/dist/cdn/{UN6ZCUUO.js → VBLGXU6E.js} +1 -1
  82. package/dist/cdn/{NVSEFGFN.js → VKE7XAAZ.js} +1 -1
  83. package/dist/cdn/{6DC5CKXT.js → VNGNNAR2.js} +1 -1
  84. package/dist/cdn/{AAHYOQZ6.js → W42XUCKM.js} +1 -1
  85. package/dist/cdn/{JBNFMZDZ.js → WFUABU4A.js} +1 -1
  86. package/dist/cdn/{C6WBYETP.js → WGNKQSCN.js} +1 -1
  87. package/dist/cdn/{K7XWYWHL.js → WHHPSUJE.js} +1 -1
  88. package/dist/cdn/{4RWECNKW.js → WIBE6ZG3.js} +1 -1
  89. package/dist/cdn/{YUJ4MZPM.js → XHYOERLE.js} +1 -1
  90. package/dist/cdn/{CCRSED2F.js → YOIDKLJ2.js} +1 -1
  91. package/dist/cdn/{S4JRTJVD.js → YOK4W4JN.js} +1 -1
  92. package/dist/cdn/{3PVC6HIF.js → YU3DJJ65.js} +1 -1
  93. package/dist/cdn/{VG2STBLJ.js → Z3LKXSMC.js} +1 -1
  94. package/dist/cdn/{OQQ52RFY.js → ZBB374YG.js} +1 -1
  95. package/dist/cdn/{X6G7LYO6.js → ZUH2TKTM.js} +1 -1
  96. package/dist/cdn/{TZVYE64S.js → ZZFRLSV2.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{d as i}from"./MZ2UZAFW.js";import{g as F}from"./KGNYAMFB.js";import a from"./NVSEFGFN.js";import{e as p}from"./777EBGS5.js";import"./TA5LVOWS.js";import"./IQAKPU7N.js";import"./75Y43JLP.js";import{l as h}from"./FIMXZMTB.js";import"./3NOAFT7A.js";import{A as d,G as c,g as l,i as t,n as r}from"./VI3NOGA3.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{F:g,Gb:y,jb:m,nb:f,pb:u}])=>{var b=l`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,n=class extends d{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)},this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1,this.arcgisChartsConfigWebChartChange=r()}static{this.properties={layerFieldsInfo:16,model:0,popoverPlacement:1,r2:9,calculatedDataMinMaxBounds:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=b}async load(){await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let a=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("r2")&&this.r2Change(this.r2),e.has("layer")&&this.layer!==void 0&&!h(e.get("layer"),this.layer)&&(a=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(a=!0),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}r2Change(e){Number.isFinite(e)||(this.r2=void 0)}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,s=this.layer;if(!s){let o=F(a)?a.iLayer:void 0;o&&(s=await f(o))}if(s){await y(s);let o=this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled;this.layerFieldsInfo=p(s)?m({layer:s,popupTemplateFieldInfosEnabled:o,chartType:a?.type}):u(s,o)}}render(){let e;switch(this.page){case i.Data:let a=g(this.layer),s=a&&"isTable"in a?a.isTable:!1;e=t`<arcgis-charts-config-scatter-plot-data .model=${this.model} .r2=${this.r2} .layerFieldsInfo=${this.layerFieldsInfo} .isTableLayer=${s}></arcgis-charts-config-scatter-plot-data>`;break;case i.Axes:e=t`<arcgis-charts-config-axes .model=${this.model} show-min-x-bound-option show-max-x-bound-option show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;break;case i.Guides:e=t`<arcgis-charts-config-guides .model=${this.model} enable-x-axis-guide enable-y-axis-guide></arcgis-charts-config-guides>`;break;case i.Format:e=t`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:e=t`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};c("arcgis-charts-config-scatter-plot",n);return n},a)
2
+ import{d as i}from"./MZ2UZAFW.js";import{g as F}from"./KGNYAMFB.js";import a from"./VKE7XAAZ.js";import{e as p}from"./777EBGS5.js";import"./TA5LVOWS.js";import"./IQAKPU7N.js";import"./75Y43JLP.js";import{l as h}from"./FIMXZMTB.js";import"./JYX2ZHFV.js";import{A as d,G as c,g as l,i as t,n as r}from"./PN727AHE.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{F:g,Gb:y,jb:m,nb:f,pb:u}])=>{var b=l`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,n=class extends d{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)},this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1,this.arcgisChartsConfigWebChartChange=r()}static{this.properties={layerFieldsInfo:16,model:0,popoverPlacement:1,r2:9,calculatedDataMinMaxBounds:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=b}async load(){await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let a=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("r2")&&this.r2Change(this.r2),e.has("layer")&&this.layer!==void 0&&!h(e.get("layer"),this.layer)&&(a=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(a=!0),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}r2Change(e){Number.isFinite(e)||(this.r2=void 0)}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,s=this.layer;if(!s){let o=F(a)?a.iLayer:void 0;o&&(s=await f(o))}if(s){await y(s);let o=this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled;this.layerFieldsInfo=p(s)?m({layer:s,popupTemplateFieldInfosEnabled:o,chartType:a?.type}):u(s,o)}}render(){let e;switch(this.page){case i.Data:let a=g(this.layer),s=a&&"isTable"in a?a.isTable:!1;e=t`<arcgis-charts-config-scatter-plot-data .model=${this.model} .r2=${this.r2} .layerFieldsInfo=${this.layerFieldsInfo} .isTableLayer=${s}></arcgis-charts-config-scatter-plot-data>`;break;case i.Axes:e=t`<arcgis-charts-config-axes .model=${this.model} show-min-x-bound-option show-max-x-bound-option show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;break;case i.Guides:e=t`<arcgis-charts-config-guides .model=${this.model} enable-x-axis-guide enable-y-axis-guide></arcgis-charts-config-guides>`;break;case i.Format:e=t`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:e=t`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};c("arcgis-charts-config-scatter-plot",n);return n},a)
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{i as we}from"./PDWS67CW.js";import{c as W}from"./MZ2UZAFW.js";import g from"./WDYEW5YK.js";import f from"./L7F55YGM.js";import e from"./CCRSED2F.js";import d from"./GQR4CD4Q.js";import c from"./NTY4A5YA.js";import b from"./D45EHXZD.js";import a from"./NVSEFGFN.js";import{c as h,d as y,r as V}from"./TA5LVOWS.js";import{Ba as ne,Ca as Y,Ea as k,Fa as se,p as N,q as E}from"./IQAKPU7N.js";import{a as le}from"./75Y43JLP.js";import{e as v,l as ie,m as U,s as K}from"./FIMXZMTB.js";import{e as G}from"./EZM4ZDQI.js";import{a as re}from"./43P4WOC4.js";import{a as O,l as D}from"./XOB365BI.js";export default $arcgis.t(([{B:S,J:ue,La:de,T:T,a:Q,ic:I,rb:ce,tb:me,wa:fe,zb:be},{c:X},{f:ye,g:_},{k:q,l:H,m:ee,x:ge},{b:pe},{a:xe,c:Le,d:Fe},{ma:te,na:ve,oa:ae}])=>{function he(l){let{hour:e,minute:t=0,format:a,locale:o="en-US"}=l,i=a&&Object.keys(a).length>0?a:{hour:"numeric",minute:"2-digit",hour12:!1},r=e.toString();if(Number.isInteger(e)&&e>=0&&e<=23&&Number.isInteger(t)&&t>=0&&t<=59){let n=new Date(2e3,0,1,e,t);r=new Intl.DateTimeFormat(o,i).format(n),r.includes(":")||r.startsWith("0")&&(r=r.slice(1))}return r}function Ce(l){let{weekdayNumber:e,format:t,locale:a="en-US",firstDayOfWeek:o=7}=l,i=t&&Object.keys(t).length>0?t:{weekday:"long"},r=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(o)&&o>0&&o<=7){let n=(e+o-1)%7,s=new Date(2e3,0,2+n);r=new Intl.DateTimeFormat(a,i).format(s)}return r}function Oe(l){let{monthNumber:e,format:t,locale:a="en-US"}=l,o=t&&Object.keys(t).length>0?t:{month:"long"},i=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let r=new Date(2e3,e-1);i=new Intl.DateTimeFormat(a,o).format(r)}return i}function Be(l){let{value:e,formatLocale:t,unit:a,config:o,utilsStrings:i}=l,r={label:"",value:e.toString()};switch(a){case D.DayOfWeek:r={label:i.heatChartCalendarDatePartsUnits.dayOfWeek,value:Ce({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in o?o.firstDayOfWeek:se,locale:t})};break;case D.MonthOfYear:r={label:i.heatChartCalendarDatePartsUnits.monthOfYear,value:Oe({monthNumber:e,locale:t})};break;case D.HourOfDay:r={label:i.heatChartCalendarDatePartsUnits.hourOfDay,value:he({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case D.DayOfMonth:r={label:i.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case D.DayOfYear:r={label:i.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case D.MinuteOfDay:r={label:i.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case D.WeekOfYear:r={label:i.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case D.QuarterOfYear:r={label:i.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return r}function ke(l,e){return!ie(l,e)}function ut(l,e){return ke(l,e)||l!==e}function $e(l){return(new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}function Me(l){return new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??"."}var Se=l=>{let{value:e,quoteAll:t=!1,locale:a,roundDecimals:o}=l,i=e==null?"":String(e);if(e===null)i="null";else if(e===void 0)i="";else if(typeof e=="number"&&Number.isFinite(e)&&a!==void 0){let r=Me(a),n=o??i.split(r)[1]?.length??2;i=new Intl.NumberFormat(a,{maximumFractionDigits:n}).format(e).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(i))&&(i=`"${i.replace(/"/gu,'""')}"`),i};function ft(l,e={}){let{columns:t,delimiter:a,includeHeader:o=!0,quoteAll:i=!1,locale:r,roundDecimals:n}=e,s=l.length===0,f="";if(!s){let c=t??Object.keys(l[0]),u=[],g=a??$e(r??"en");if(r!==void 0&&g!==","&&(f+=`sep=${g}\r
2
+ import{i as we}from"./PDWS67CW.js";import{c as W}from"./MZ2UZAFW.js";import g from"./RLLPYA3S.js";import f from"./NJZ3X4TH.js";import e from"./YOIDKLJ2.js";import d from"./IF7GZKB5.js";import c from"./PPCBKOGC.js";import b from"./433ZTQXI.js";import a from"./VKE7XAAZ.js";import{c as h,d as y,r as V}from"./TA5LVOWS.js";import{Ba as ne,Ca as Y,Ea as k,Fa as se,p as N,q as E}from"./IQAKPU7N.js";import{a as le}from"./75Y43JLP.js";import{e as v,l as ie,m as U,s as K}from"./FIMXZMTB.js";import{e as G}from"./EZM4ZDQI.js";import{a as re}from"./43P4WOC4.js";import{a as O,l as D}from"./XOB365BI.js";export default $arcgis.t(([{B:S,J:ue,La:de,T:T,a:Q,ic:I,rb:ce,tb:me,wa:fe,zb:be},{c:X},{f:ye,g:_},{k:q,l:H,m:ee,x:ge},{b:pe},{a:xe,c:Le,d:Fe},{ma:te,na:ve,oa:ae}])=>{function he(l){let{hour:e,minute:t=0,format:a,locale:o="en-US"}=l,i=a&&Object.keys(a).length>0?a:{hour:"numeric",minute:"2-digit",hour12:!1},r=e.toString();if(Number.isInteger(e)&&e>=0&&e<=23&&Number.isInteger(t)&&t>=0&&t<=59){let n=new Date(2e3,0,1,e,t);r=new Intl.DateTimeFormat(o,i).format(n),r.includes(":")||r.startsWith("0")&&(r=r.slice(1))}return r}function Ce(l){let{weekdayNumber:e,format:t,locale:a="en-US",firstDayOfWeek:o=7}=l,i=t&&Object.keys(t).length>0?t:{weekday:"long"},r=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(o)&&o>0&&o<=7){let n=(e+o-1)%7,s=new Date(2e3,0,2+n);r=new Intl.DateTimeFormat(a,i).format(s)}return r}function Oe(l){let{monthNumber:e,format:t,locale:a="en-US"}=l,o=t&&Object.keys(t).length>0?t:{month:"long"},i=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let r=new Date(2e3,e-1);i=new Intl.DateTimeFormat(a,o).format(r)}return i}function Be(l){let{value:e,formatLocale:t,unit:a,config:o,utilsStrings:i}=l,r={label:"",value:e.toString()};switch(a){case D.DayOfWeek:r={label:i.heatChartCalendarDatePartsUnits.dayOfWeek,value:Ce({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in o?o.firstDayOfWeek:se,locale:t})};break;case D.MonthOfYear:r={label:i.heatChartCalendarDatePartsUnits.monthOfYear,value:Oe({monthNumber:e,locale:t})};break;case D.HourOfDay:r={label:i.heatChartCalendarDatePartsUnits.hourOfDay,value:he({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case D.DayOfMonth:r={label:i.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case D.DayOfYear:r={label:i.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case D.MinuteOfDay:r={label:i.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case D.WeekOfYear:r={label:i.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case D.QuarterOfYear:r={label:i.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return r}function ke(l,e){return!ie(l,e)}function ut(l,e){return ke(l,e)||l!==e}function $e(l){return(new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}function Me(l){return new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??"."}var Se=l=>{let{value:e,quoteAll:t=!1,locale:a,roundDecimals:o}=l,i=e==null?"":String(e);if(e===null)i="null";else if(e===void 0)i="";else if(typeof e=="number"&&Number.isFinite(e)&&a!==void 0){let r=Me(a),n=o??i.split(r)[1]?.length??2;i=new Intl.NumberFormat(a,{maximumFractionDigits:n}).format(e).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(i))&&(i=`"${i.replace(/"/gu,'""')}"`),i};function ft(l,e={}){let{columns:t,delimiter:a,includeHeader:o=!0,quoteAll:i=!1,locale:r,roundDecimals:n}=e,s=l.length===0,f="";if(!s){let c=t??Object.keys(l[0]),u=[],g=a??$e(r??"en");if(r!==void 0&&g!==","&&(f+=`sep=${g}\r
3
3
  `),o){let w=c.map(p=>Se({value:p,quoteAll:i,locale:r,roundDecimals:n}));u.push(w.join(g))}l.forEach(w=>{let p=c.map(x=>Se({value:w[x],quoteAll:i,locale:r,roundDecimals:n}));u.push(p.join(g))}),f+=u.join(`\r
4
4
  `)}return f}function dt(l){let{rawData:e,config:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n,formatLocale:s,utilsStrings:f}=l,c=[];if(t!==void 0&&Array.isArray(e)&&e.length>0){let u=re(t?.series);u===O.HistogramSeries?c=Ve(t,e,i):u===O.HeatSeries?c=Re({config:t,rows:e,layer:a,fieldList:o,formatLocale:s,utilsStrings:f}):u===O.BarSeries||u===O.LineSeries||u===O.ComboLineAndBarSeries?c=Ie({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}):u===O.PieSeries?c=Ue({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}):u===O.BoxPlotSeries&&(c=Ye({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}))}return c}function A(l){let{value:e,originalValue:t,formatter:a}=l,o=e;return a!==void 0&&(e===null||e instanceof Date||typeof e=="number"||typeof e=="string")&&(o=a(e,t)),o}function M(l){let{field:e,value:t,dataContext:a,layer:o,fieldList:i,formatter:r,timeZone:n}=l,s;if(t==null||typeof t=="boolean"||Array.isArray(t))s=t;else if(typeof t=="string"||typeof t=="number"||t instanceof Date){let f=Ne({fieldName:e,dataContext:a})??(o!==void 0&&(typeof t=="string"||typeof t=="number")?be({queryObject:o,fieldName:e,fieldValue:t}):void 0);s=De({field:e,value:f??t,fieldList:i,timeZone:n})}else s=t;return A({value:s,originalValue:t,formatter:r})}function $(l){let{field:e,row:t,layer:a,fieldList:o,formatter:i,useRendererLabel:r=!1,timeZone:n}=l,s=Object.keys(t).find(u=>u.toLocaleLowerCase()===e.toLocaleLowerCase()),f=t[s??e],c=fe({value:f,dataContext:t,useRendererLabel:r});return M({field:e,value:c,dataContext:t,layer:a,fieldList:o,formatter:i,timeZone:n})}function Ze(l,e){let t=!1;if(l===e)t=!0;else if(l!=null&&e!=null){let a=String(l),o=String(e);t=a===o||!Number.isNaN(Number(a))&&!Number.isNaN(Number(o))&&Number(a)===Number(o)}return t}function Ne(l){let{fieldName:e,dataContext:t}=l,a=h.rendererSymbolField;return e===a&&t!==void 0?de(t):void 0}function Ae(l){let{config:e,splitByField:t,splitByValue:a,splitByValueIndex:o,layer:i,fieldList:r,timeZone:n}=l,s,f=e.series[o??-1]?.name;return f!==void 0?s=f:s=M({field:t,value:a,layer:i,fieldList:r,timeZone:n}),s}function Re(l){let{config:e,rows:t,layer:a,fieldList:o,formatLocale:i,utilsStrings:r}=l,[n]=e.series,s=n.x,f=te(e),c=ae(e),u=_({config:e,xAxisField:s,numericFields:c,aggregationType:f,layer:a,fieldList:o});return t.map(g=>{let w=g[E.xField],p=g[E.yField],x=g[E.valueField],F=typeof x=="number"&&Number.isFinite(x)?x.toFixed(2):x,m={label:n.x,value:w},b={label:n.y,value:p};if(n.xTemporalBinning!==void 0){let{label:d,value:L}=Be({value:Number(w),config:e,formatLocale:i,unit:n.xTemporalBinning.unit,utilsStrings:r});!V(d)&&!V(L)&&(m={label:d,value:L})}if(n.yTemporalBinning!==void 0){let{label:d,value:L}=Be({value:Number(p),config:e,formatLocale:i,unit:n.yTemporalBinning.unit,utilsStrings:r});!V(d)&&!V(L)&&(b={label:d,value:L})}return{[m.label]:m.value,[b.label]:b.value,[u.description]:F}})}function Ve(l,e,t){let a=pe(l),o=`${v(W.Min)} of ${a}`,i=`${v(W.Max)} of ${a}`,r=`${v(W.Count)} of ${a}`;return e.map(n=>{let{minValue:s,maxValue:f,count:c}=n,u=U(s),g=U(f),w=U(c),p={};if(u&&(p[o]=A({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter})),g&&(p[i]=A({value:f,originalValue:f,formatter:t?.xAxisLabelFormatter})),u&&g){let x=A({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter}),F=A({value:f,originalValue:f,formatter:t?.xAxisLabelFormatter});p.Label=`${String(x??"")} - ${String(F??"")}`}return w&&(p[r]=c),p})}function Te(l,e,t){let a=Object.keys(l),o=[];return t?o=t.map(i=>a.find(r=>r.toLowerCase().includes(i.toLowerCase()))||""):o=a.filter(i=>i.toLowerCase().includes(e.toLowerCase())),o.filter(i=>i.trim()!=="")}function Ie(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=ye(e),f=te(e),c=v(f),u=ae(e),g=T(e.series),w=X(e),p=ve(e),{idField:x,isTraditionalTypeOID:F}=ce(ue(a)),m=F&&u.length===1&&u[0]===x,b;switch(g){case y.BarAndLineNoAggregation:b=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),B={[s]:L};return Object.assign(B,...u.map(P=>({[P]:A({value:d[P],originalValue:d[P]})}))),B});break;case y.BarAndLineFromFields:b=K(u,t).map(([d,L])=>{let B=I(e.series)[0],P={};return L!==void 0&&d!==void 0&&(P.Field=A({value:L[s],originalValue:L[s],formatter:i?.xAxisLabelFormatter}),P.Value=A({value:L[B],originalValue:L[B]})),P});break;case y.BarAndLineMonoField:case y.BarAndLineMultiFields:b=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),B={[s]:L};return u.forEach((P,C)=>{let Z=_({config:e,xAxisField:s,numericFields:u,aggregationType:f,layer:a,numericFieldIndex:C,fieldList:o}),R=I(e.series)[C],oe=R,J=R;R.toLowerCase()===Z.name.toLowerCase()&&(oe=Z.description,J=Z.name),B[oe]=A({value:d[J],originalValue:d[J]})}),B});break;case y.BarAndLineSplitBy:b=t.flatMap(d=>{let L=I(e.series),B=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});return w.map((P,C)=>{let Z=Ae({config:e,splitByField:p,splitByValue:P,splitByValueIndex:C,layer:a,fieldList:o,timeZone:n});return{[s]:B,[p]:Z,[m?c:`${c} of ${u[0]}`]:d[L[C]]}})});break;case y.BarAndLineSplitByNoAggregation:b=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),B=Te(d,u[0],w),P=d[p],C=w.findIndex(R=>Ze(R,P)),Z=Ae({config:e,splitByField:p,splitByValue:P,splitByValueIndex:C>=0?C:void 0,layer:a,fieldList:o,timeZone:n});return{[s]:L,[p]:Z,[u[0]]:d[B[0]]}});break;default:b=t}return b}function je(l){if(l.length===0)return[];let e=l.reduce((t,a)=>{for(let[o,i]of Object.entries(a))typeof i=="number"&&Number.isFinite(i)&&(t[o]=(t[o]??0)+i);return t},{});return l.map(t=>{let a={...t};for(let[o,i]of Object.entries(t))if(typeof i=="number"&&e[o]>0){let r=i/e[o];a[`${o}${k}`]=r.toPrecision(2)}return a})}function Ue(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=xe(e),f=T(e.series),c=je(t),u=Le(e),g=f!==y.PieFromFields?G.Category:G.Fields,w=Fe(e,g),p=_({config:e,xAxisField:s,numericFields:u,aggregationType:w,mode:g,layer:a,fieldList:o}),x=I(e.series)[0];return f===y.PieFromCategory||f===y.PieNoAggregation?c=c.map(F=>{let m=$({field:s,row:F,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),b={[s]:m},d=x,L=x;return f===y.PieFromCategory&&x.toLowerCase()===p.name.toLowerCase()&&(d=p.description,L=p.name),b[d]=A({value:F[L],originalValue:F[L]}),b[v(k.trim())]=A({value:F[`${L}${k}`],originalValue:F[`${L}${k}`]}),b}):f===y.PieFromFields&&(c=K(u,c).map(([F,m])=>{let b={};return m!==void 0&&F!==void 0&&(b.Field=A({value:m[s],originalValue:m[s],formatter:i?.xAxisLabelFormatter}),b.Value=A({value:m[x],originalValue:m[x]}),b[v(k.trim())]=A({value:m[`${x}${k}`],originalValue:m[`${x}${k}`]})),b})),c}function z(l){let{rawData:e,keyBase:t="",outRow:a}=l;for(let[o,i]of Object.entries(S)){let r=e[t+i];r!==void 0&&(a[o]=r);let n=e[t+i+ne];n!==void 0&&(a[`${o} Outlier`]=n);let s=e[t+i+Y];s!==void 0&&(a[`${o} Z-Score`]=s)}}function j(l){let{rawData:e,outRow:t,config:a,boxPlotSubType:o,layer:i,fieldList:r,timeZone:n}=l,s=q(a),f=ee(a),c=H(a),u=S.Outlier,g=N;switch(o){case y.BoxPlotMonoFieldAndCategory:{let x=De({field:s,value:e[s],fieldList:r,timeZone:n});t[s]=x,t[v(S.Outlier)]=e[u];break}case y.BoxPlotMultiFieldsAndCategory:{t[v(s)]=e[s],u=`${f.find(x=>Object.keys(e).some(F=>F.toLowerCase().includes(x.toLowerCase())))??""}_${u}`,t[v(S.Outlier)]=e[u];break}case y.BoxPlotMonoFieldAndSplitBy:case y.BoxPlotMultiFieldsAndSplitBy:{let x=String(e[c]),F=M({field:c,value:x,layer:i,fieldList:r,timeZone:n});u=`${x}_${u}`,t.Field=e[g],t[v(c)]=F,t[v(S.Outlier)]=e[u];break}case y.BoxPlotMonoFieldAndCategoryAndSplitBy:{let x=String(e[c]),F=M({field:c,value:x,layer:i,fieldList:r,timeZone:n});u=`${x}_${u}`,t[v(s)]=e[s],t[v(c)]=F,t[v(S.Outlier)]=e[u];break}case y.BoxPlotMonoField:case y.BoxPlotMultiFields:default:{t.Field=e[g],t[v(S.Outlier)]=e[u];break}}let w=`${u}${Y}`,p=e[w];p!==void 0&&(t[`${v(S.Outlier)} Z-Score`]=p)}function Ee(l){let{rawData:e,outRow:t,config:a,splitByValue:o,layer:i,fieldList:r,timeZone:n}=l,s=T(a.series),f=e[`${o}_${S.Average}`],c=H(a),u=q(a),g="";switch(s){case y.BoxPlotMonoFieldAndSplitBy:{g=`${o}_${c}`,t.Field=e[N],t[v(c)]=M({field:c,value:e[g],layer:i,fieldList:r,timeZone:n});break}case y.BoxPlotMultiFieldsAndSplitBy:{g=`${o}_${S.Average}`,t.Field=e[N],t[v(c)]=M({field:c,value:e[g],layer:i,fieldList:r,timeZone:n});break}case y.BoxPlotMonoFieldAndCategoryAndSplitBy:{g=`${o}_${S.Average}`,t[u]=e[u],t[v(c)]=M({field:c,value:o,layer:i,fieldList:r,timeZone:n});break}}t[v(S.Average)]=f;let w=`${String(f)}${Y}`,p=e[w];p!==void 0&&(t[`${v(S.Average)} Z-Score`]=p)}function Ye(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=T(e.series),f=s,c=ge(e),u=Array.isArray(t)&&t.length>0&&t.every(m=>m[h.boxPlot.boxPlotMeanLineMarkerId]!==void 0);c&&!u&&(s===y.BoxPlotMonoFieldAndSplitBy?f=y.BoxPlotMonoField:s===y.BoxPlotMultiFieldsAndSplitBy?f=y.BoxPlotMultiFields:s===y.BoxPlotMonoFieldAndCategoryAndSplitBy&&(f=y.BoxPlotMonoFieldAndCategory));let g=q(e),w=ee(e),p=X(e),x=H(e),F;switch(f){case y.BoxPlotMonoField:case y.BoxPlotMonoFieldAndCategory:{F=t.map(m=>{let b={};if(m[h.boxPlot.boxPlotOutlierId])j({rawData:m,outRow:b,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n});else{if(f===y.BoxPlotMonoFieldAndCategory){let d=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});b[g]=d}else f===y.BoxPlotMonoField&&(b.Field=m[N]);z({rawData:m,outRow:b})}return b});break}case y.BoxPlotMultiFields:{F=t.flatMap(m=>{let b={};return m[h.boxPlot.boxPlotOutlierId]?j({rawData:m,outRow:b,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}):(b.Field=m[N],z({rawData:m,outRow:b})),[b]});break}case y.BoxPlotMultiFieldsAndCategory:{F=t.flatMap(m=>w.map(b=>{let d={},L="";if(d.Field=b,m[h.boxPlot.boxPlotOutlierId])j({rawData:m,outRow:d,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n});else{if(f===y.BoxPlotMultiFieldsAndCategory){let B=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});d[g]=B,L=`${b}_`}z({rawData:m,outRow:d,keyBase:L})}return d}));break}case y.BoxPlotMonoFieldAndSplitBy:case y.BoxPlotMultiFieldsAndSplitBy:case y.BoxPlotMonoFieldAndCategoryAndSplitBy:{F=t.flatMap(m=>{if(m[h.boxPlot.boxPlotOutlierId]){let b={};return j({rawData:m,outRow:b,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}),[b]}else return m[h.boxPlot.boxPlotMeanLineMarkerId]?p?.map(b=>{let d={};return Ee({rawData:m,outRow:d,splitByValue:b,config:e,layer:a,fieldList:o,timeZone:n}),d}):p.map(b=>{let d={},L=M({field:x,value:b,layer:a,fieldList:o});if(f===y.BoxPlotMonoFieldAndCategoryAndSplitBy){let B=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});d[g]=B}return m[h.boxPlot.boxPlotOutlierId]?j({rawData:m,outRow:d,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}):(d[x]=L,z({rawData:m,outRow:d,keyBase:`${b}_`})),d})});break}default:F=t}return F}var Pe=l=>{let e=!1;return(typeof l=="string"||typeof l=="number")&&(e=!Number.isNaN(new Date(l).getTime())),e},We=(l,e)=>Q.fromJSDate(l,{zone:e??"local"}).toFormat("yyyy-LL-dd"),_e=(l,e)=>Q.fromJSDate(l,{zone:e??"local"}).toFormat("yyyy-LL-dd'T'HH:mm:ss"),De=l=>{let{field:e,value:t,fieldList:a,timeZone:o}=l,i=t,r=a?.find(n=>n.name===e);if(r){let n=r.type===le.DateOnly;me(r)&&!n?i=Pe(t)?_e(new Date(t),o):t:n&&typeof t!="string"&&(i=Pe(t)?We(new Date(t),o):t)}return i};function ct(l){let{runtimeDataFilters:e,view:t,viewTimeExtentChangePolicy:a,syncViewTimeExtent:o}=l,i=e;return t&&(a===we.Refresh||o)&&t.timeExtent?.start!=null&&t.timeExtent?.end!=null&&(i={...e,timeExtent:[t.timeExtent.start.valueOf(),t.timeExtent.end.valueOf()]}),i}return{a:he,b:Ce,c:Oe,d:Be,e:ke,f:ut,g:ft,h:dt,i:ct}},a,b,c,d,e,f,g)