@arcgis/charts-components 5.0.15 → 5.0.17

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 (106) hide show
  1. package/dist/cdn/{MZJOVOLM.js → 2B4C3ACN.js} +1 -1
  2. package/dist/cdn/{7RITDPAC.js → 2HNT7UIF.js} +1 -1
  3. package/dist/cdn/{NMW4OLDF.js → 2IVNI4QY.js} +1 -1
  4. package/dist/cdn/{SEQVPHVU.js → 2JSLAANS.js} +1 -1
  5. package/dist/cdn/{PA2Z3X5R.js → 2RW52MPZ.js} +1 -1
  6. package/dist/cdn/{I4BWEV2K.js → 2WPEHU4S.js} +1 -1
  7. package/dist/cdn/{GOWFIKXH.js → 3KRF4GCV.js} +1 -1
  8. package/dist/cdn/{LD4XL6TG.js → 3P34ZWYO.js} +1 -1
  9. package/dist/cdn/{RQODMNCB.js → 4RO77GHW.js} +1 -1
  10. package/dist/cdn/{MCYCVGFF.js → 4YD6Q2LJ.js} +1 -1
  11. package/dist/cdn/{3AEJ6FGM.js → 5NMHXB64.js} +1 -1
  12. package/dist/cdn/{VHDKHAB6.js → 5P2PCO4T.js} +1 -1
  13. package/dist/cdn/{5IM2MIEE.js → 62IBZZ3K.js} +1 -1
  14. package/dist/cdn/{23IGHNK5.js → 64LXKNPM.js} +1 -1
  15. package/dist/cdn/{PBTFVLME.js → 6G26PZXB.js} +1 -1
  16. package/dist/cdn/{3PBXXZAY.js → 6JTXRVIC.js} +1 -1
  17. package/dist/cdn/{ZOEYGVPR.js → 6OQRQZ6H.js} +1 -1
  18. package/dist/cdn/{BJV64A7R.js → 6PMH4QTR.js} +1 -1
  19. package/dist/cdn/{CW2ROPNJ.js → 6XSUNJFU.js} +1 -1
  20. package/dist/cdn/{D6WQME2F.js → 7BTMHLKK.js} +1 -1
  21. package/dist/cdn/{QC6ARI7T.js → 7FIJ7RLY.js} +1 -1
  22. package/dist/cdn/{RTDPL42S.js → 7K5UZY62.js} +1 -1
  23. package/dist/cdn/{TB63RRU7.js → 7WZUWVWQ.js} +1 -1
  24. package/dist/cdn/{PWEYR5XJ.js → AHYEJNPT.js} +1 -1
  25. package/dist/cdn/{BLSAFBHN.js → ANNYGQG2.js} +1 -1
  26. package/dist/cdn/{WZHFSASD.js → BBQTH6UW.js} +14 -14
  27. package/dist/cdn/BG6FH7IR.js +2 -0
  28. package/dist/cdn/{3OHJETRE.js → BJSMDFX7.js} +1 -1
  29. package/dist/cdn/{XRVH23BY.js → BRLYQD3N.js} +1 -1
  30. package/dist/cdn/{GS52EQQ2.js → BROWVODM.js} +1 -1
  31. package/dist/cdn/{Z52ON6HN.js → BZLVU77P.js} +1 -1
  32. package/dist/cdn/{LEAMCU7F.js → C534ZIOE.js} +1 -1
  33. package/dist/cdn/{KQPVEI2X.js → CESGNYCC.js} +1 -1
  34. package/dist/cdn/{L6F7NADV.js → CXEJMYLT.js} +1 -1
  35. package/dist/cdn/{YH3XTXFG.js → DBK463OY.js} +1 -1
  36. package/dist/cdn/{4KK3EBEB.js → E2QSOYAS.js} +1 -1
  37. package/dist/cdn/{4IRYZXWR.js → EYIUFDDU.js} +1 -1
  38. package/dist/cdn/{QH7CF26P.js → F46D76FH.js} +1 -1
  39. package/dist/cdn/{3DAPTI75.js → F665Z5IH.js} +1 -1
  40. package/dist/cdn/{VVH3WKVP.js → FQYL2QII.js} +1 -1
  41. package/dist/cdn/{QPCBHMFQ.js → FS7372SO.js} +1 -1
  42. package/dist/cdn/{5F64IGYY.js → FSX7VKDG.js} +1 -1
  43. package/dist/cdn/{GS2XP4FM.js → GX3552M3.js} +1 -1
  44. package/dist/cdn/{NHQM4EC7.js → HDBTBVSI.js} +1 -1
  45. package/dist/cdn/{YBUDSDWI.js → HJKSCWLU.js} +1 -1
  46. package/dist/cdn/{MVFRVSBA.js → J4W4C6XS.js} +1 -1
  47. package/dist/cdn/{SVB75NXA.js → JAVQCMEE.js} +1 -1
  48. package/dist/cdn/{W62RV5DB.js → K6K6BLVE.js} +1 -1
  49. package/dist/cdn/{OD2V742A.js → KD2DCL2A.js} +1 -1
  50. package/dist/cdn/{GUE5XBIM.js → KK7GHCNA.js} +1 -1
  51. package/dist/cdn/{N6YB3TIX.js → L56ID5Z4.js} +1 -1
  52. package/dist/cdn/{Q4EH2667.js → LAQRWAX7.js} +1 -1
  53. package/dist/cdn/{Q35I4OEY.js → M27MHHYC.js} +1 -1
  54. package/dist/cdn/{34RXKT7V.js → M3RSYITQ.js} +1 -1
  55. package/dist/cdn/{KDWITT3I.js → M7U2WDN7.js} +1 -1
  56. package/dist/cdn/{HFEJIVDF.js → MN3EJXWC.js} +1 -1
  57. package/dist/cdn/{NVNDAFCH.js → N3DDOKRC.js} +1 -1
  58. package/dist/cdn/{KGMCQQHP.js → N5JAK3CR.js} +1 -1
  59. package/dist/cdn/{JTX5KS3K.js → NIT3KN4X.js} +1 -1
  60. package/dist/cdn/{TRZH436L.js → OMGPBFKS.js} +1 -1
  61. package/dist/cdn/{FSPBZ7TE.js → ORBCGUX3.js} +1 -1
  62. package/dist/cdn/{NU2VVD6Z.js → OUQ6UQEV.js} +1 -1
  63. package/dist/cdn/{A5YYXQV6.js → P3ZFMD7J.js} +1 -1
  64. package/dist/cdn/{C5JZOWBJ.js → PNQFXJQD.js} +1 -1
  65. package/dist/cdn/{6IJI7FTH.js → QHUE2QPR.js} +1 -1
  66. package/dist/cdn/{ZUVE6PPC.js → QOB46ESO.js} +1 -1
  67. package/dist/cdn/{PNAN4NKT.js → QVKMLR34.js} +1 -1
  68. package/dist/cdn/{WGOW3TB2.js → RA3O5BEL.js} +1 -1
  69. package/dist/cdn/{ENHMZFYN.js → RDEUARET.js} +1 -1
  70. package/dist/cdn/{LG74H46I.js → RWMPVJNK.js} +1 -1
  71. package/dist/cdn/{OC37XIGA.js → SF35YKKB.js} +1 -1
  72. package/dist/cdn/{HVNHATFT.js → SHTKJOFN.js} +1 -1
  73. package/dist/cdn/{5KQTRLK4.js → SR7CEB3R.js} +1 -1
  74. package/dist/cdn/{2IG5X7BD.js → SWKG53Y4.js} +1 -1
  75. package/dist/cdn/{XH3ITNM5.js → TASFPX3Q.js} +1 -1
  76. package/dist/cdn/{2MULDCY5.js → TMUJQRMA.js} +1 -1
  77. package/dist/cdn/{KQFJGR55.js → TWQMMUMI.js} +1 -1
  78. package/dist/cdn/{IQHNN2RA.js → TWV5ZXEU.js} +1 -1
  79. package/dist/cdn/{IBXPLOGX.js → U342JGXA.js} +1 -1
  80. package/dist/cdn/{4T7ZAXXT.js → U7GRWMAG.js} +1 -1
  81. package/dist/cdn/{LS6G45DW.js → U7INSK53.js} +1 -1
  82. package/dist/cdn/{OZRUIX7Z.js → UHAXW24Z.js} +1 -1
  83. package/dist/cdn/{DKQ7ULXH.js → UIQOGFAR.js} +1 -1
  84. package/dist/cdn/{5DHPCZ5X.js → V4FUINLG.js} +1 -1
  85. package/dist/cdn/{5A7BFWFX.js → VM4PMBLL.js} +1 -1
  86. package/dist/cdn/{54OM2RUL.js → WBUOSSFO.js} +1 -1
  87. package/dist/cdn/{2I2A72AQ.js → WJ5XMES3.js} +1 -1
  88. package/dist/cdn/{P4ZADG4T.js → WW7QVQ6V.js} +1 -1
  89. package/dist/cdn/{KC2KXCL4.js → WY23JKXZ.js} +1 -1
  90. package/dist/cdn/{XZV5JNPT.js → WZUW6CDS.js} +1 -1
  91. package/dist/cdn/{FL7HKOZQ.js → XOR6OANK.js} +1 -1
  92. package/dist/cdn/{4X32NC3J.js → Y3UFLCJ4.js} +1 -1
  93. package/dist/cdn/{JV3BXAUH.js → YDPBNGTT.js} +1 -1
  94. package/dist/cdn/{RGWZNAUR.js → YHEN4D53.js} +1 -1
  95. package/dist/cdn/{7JUSBFFS.js → YKPZJYUK.js} +1 -1
  96. package/dist/cdn/{CKSCWVHZ.js → YTWYYKBB.js} +1 -1
  97. package/dist/cdn/{UT5QHTPU.js → YZPO3O6D.js} +1 -1
  98. package/dist/cdn/index.js +1 -1
  99. package/dist/chunks/runtime.js +1 -1
  100. package/dist/components/arcgis-chart/customElement.js +3279 -3267
  101. package/dist/components/arcgis-charts-info-modal/customElement.js +5 -5
  102. package/dist/docs/api.json +1 -1
  103. package/dist/docs/docs.json +1 -1
  104. package/dist/docs/web-types.json +1 -1
  105. package/package.json +3 -3
  106. package/dist/cdn/LX57UO2K.js +0 -2
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{c as h}from"./DPJE33GY.js";import g from"./W62RV5DB.js";import f from"./3AEJ6FGM.js";import e from"./HFEJIVDF.js";import d from"./NU2VVD6Z.js";import c from"./KGMCQQHP.js";import b from"./CW2ROPNJ.js";import a from"./OZRUIX7Z.js";import{e as x,n as K,o as A,u as V,v as J}from"./4B3QBH5T.js";import{e as q}from"./KUVOINJC.js";import{a as B,y as W}from"./NKG4FLLR.js";export default $arcgis.t(([{Dc:U,E:M,Na:Q,Nc:X,Nd:k,Oa:R,Pc:Y,Qa:v,Ra:L,gd:C,xb:P,yb:d},{c:H},{f:ee,g:E},{ea:oe,fa:te,ga:ie},{k:T,l:I,m:Z,x:re},{b:ae},{a:le,c:ne,d:se}])=>{var Re=[B.BarSeries,B.BoxPlotSeries,B.LineSeries,B.PieSeries,B.HistogramSeries,B.ScatterSeries],he=1,Te={PNG:"png"};function ce(l,e){return!K(l,e)}function Ie(l,e){return ce(l,e)||l!==e}function fe(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 de=l=>{let{value:e,quoteAll:o=!1,locale:s}=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)&&s!==void 0){let t=me(s),a=i.split(t)[1]?.length??3;i=new Intl.NumberFormat(s,{maximumFractionDigits:a}).format(e).replace(/\u202F/gu," ")}return(o||/[",\r\n]/u.test(i))&&(i=`"${i.replace(/"/gu,'""')}"`),i};function Ne(l,e={}){let{columns:o,delimiter:s,includeHeader:i=!0,quoteAll:t=!1,locale:a}=e,m=l.length===0,n="";if(!m){let f=o??Object.keys(l[0]),y=[],b=s??fe(a??"en");if(a!==void 0&&b!==","&&(n+=`sep=${b}\r
2
+ import{c as h}from"./DPJE33GY.js";import g from"./K6K6BLVE.js";import f from"./5NMHXB64.js";import e from"./MN3EJXWC.js";import d from"./OUQ6UQEV.js";import c from"./N5JAK3CR.js";import b from"./6XSUNJFU.js";import a from"./UHAXW24Z.js";import{e as x,n as K,o as A,u as V,v as J}from"./4B3QBH5T.js";import{e as q}from"./KUVOINJC.js";import{a as B,y as W}from"./NKG4FLLR.js";export default $arcgis.t(([{Dc:U,E:M,Na:Q,Nc:X,Nd:k,Oa:R,Pc:Y,Qa:v,Ra:L,gd:C,xb:P,yb:d},{c:H},{f:ee,g:E},{ea:oe,fa:te,ga:ie},{k:T,l:I,m:Z,x:re},{b:ae},{a:le,c:ne,d:se}])=>{var Re=[B.BarSeries,B.BoxPlotSeries,B.LineSeries,B.PieSeries,B.HistogramSeries,B.ScatterSeries],he=1,Te={PNG:"png"};function ce(l,e){return!K(l,e)}function Ie(l,e){return ce(l,e)||l!==e}function fe(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 de=l=>{let{value:e,quoteAll:o=!1,locale:s}=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)&&s!==void 0){let t=me(s),a=i.split(t)[1]?.length??3;i=new Intl.NumberFormat(s,{maximumFractionDigits:a}).format(e).replace(/\u202F/gu," ")}return(o||/[",\r\n]/u.test(i))&&(i=`"${i.replace(/"/gu,'""')}"`),i};function Ne(l,e={}){let{columns:o,delimiter:s,includeHeader:i=!0,quoteAll:t=!1,locale:a}=e,m=l.length===0,n="";if(!m){let f=o??Object.keys(l[0]),y=[],b=s??fe(a??"en");if(a!==void 0&&b!==","&&(n+=`sep=${b}\r
3
3
  `),i){let p=f.map(r=>de({value:r,quoteAll:t,locale:a}));y.push(p.join(b))}l.forEach(p=>{let r=f.map(u=>de({value:p[u],quoteAll:t,locale:a}));y.push(r.join(b))}),n+=y.join(`\r
4
4
  `)}return n}function je(l){let{rawData:e,config:o,layer:s,fieldList:i}=l,t=e;if(o!==void 0&&Array.isArray(e)&&e.length>0){let a=W(o?.series);a===B.HistogramSeries?t=pe(o,e):a===B.BarSeries||a===B.LineSeries||a===B.ComboLineAndBarSeries?t=ge({config:o,rows:e,layer:s,fieldList:i}):a===B.PieSeries?t=ye({config:o,rows:e,layer:s,fieldList:i}):a===B.BoxPlotSeries&&(t=Pe({config:o,rows:e,fieldList:i}))}return t}function pe(l,e){let o=ae(l),s=`${x(h.Min)} of ${o}`,i=`${x(h.Max)} of ${o}`,t=`${x(h.Count)} of ${o}`;return e.map(a=>{let{minValue:m,maxValue:n,count:f}=a,y=A(m),b=A(n),p=A(f),r={};return y&&(r[s]=m.toFixed(2)),b&&(r[i]=n.toFixed(2)),y&&b&&(r.Label=`${m.toFixed(2)} - ${n.toFixed(2)}`),p&&(r[t]=f),r})}function be(l,e,o){let s=Object.keys(l),i=[];return o?i=o.map(t=>s.find(a=>a.toLowerCase().includes(t.toLowerCase()))||""):i=s.filter(t=>t.toLowerCase().includes(e.toLowerCase())),i.filter(t=>t.trim()!=="")}function ge(l){let{config:e,rows:o,layer:s,fieldList:i}=l,t=ee(e),a=oe(e),m=x(a),n=ie(e),f=C(e.series),y=H(e),b=te(e),{idField:p,isTraditionalTypeOID:r}=X(U(s)),u=r&&n.length===1&&n[0]===p,c;switch(f){case d.BarAndLineNoAggregation:c=o.map(g=>{let F=S({field:t,value:g[t],fieldList:i}),w={[t]:F};return Object.assign(w,...n.map($=>({[$]:g[$]}))),w});break;case d.BarAndLineFromFields:c=V(n,o).map(([g,F])=>{let w=k(e.series)[0],$={};return F!==void 0&&g!==void 0&&($.Field=F[t],$.Value=F[w]),$});break;case d.BarAndLineMonoField:case d.BarAndLineMultiFields:c=o.map(g=>{let F=S({field:t,value:g[t],fieldList:i}),w={[t]:F};return n.forEach(($,O)=>{let j=E({config:e,xAxisField:t,numericFields:n,aggregationType:a,layer:s,numericFieldIndex:O,fieldList:i}),_=k(e.series)[O],z=_,G=_;_.toLowerCase()===j.name.toLowerCase()&&(z=j.description,G=j.name),w[z]=g[G]}),w});break;case d.BarAndLineSplitBy:c=o.flatMap(g=>{let F=k(e.series),w=S({field:t,value:g[t],fieldList:i});return y.map(($,O)=>({[t]:w,[b]:$,[u?m:`${m} of ${n[0]}`]:g[F[O]]}))});break;case d.BarAndLineSplitByNoAggregation:c=o.map(g=>{let F=S({field:t,value:g[t],fieldList:i}),w=be(g,n[0],y);return{[t]:F,[b]:g[b],[n[0]]:g[w[0]]}});break;default:c=o}return c}function xe(l){if(l.length===0)return[];let e=l.reduce((o,s)=>{for(let[i,t]of Object.entries(s))typeof t=="number"&&Number.isFinite(t)&&(o[i]=(o[i]??0)+t);return o},{});return l.map(o=>{let s={...o};for(let[i,t]of Object.entries(o))if(typeof t=="number"&&e[i]>0){let a=t/e[i];s[`${i}${v}`]=a.toPrecision(2)}return s})}function ye(l){let{config:e,rows:o,layer:s,fieldList:i}=l,t=le(e),a=C(e.series),m=xe(o),n=ne(e),f=a!==d.PieFromFields?q.Category:q.Fields,y=se(e,f),b=E({config:e,xAxisField:t,numericFields:n,aggregationType:y,mode:f,layer:s,fieldList:i}),p=k(e.series)[0];return a===d.PieFromCategory||a===d.PieNoAggregation?m=m.map(r=>{let u=S({field:t,value:r[t],fieldList:i}),c={[t]:u},g=p,F=p;return a===d.PieFromCategory&&p.toLowerCase()===b.name.toLowerCase()&&(g=b.description,F=b.name),c[g]=r[F],c[x(v.trim())]=r[`${F}${v}`],c}):a===d.PieFromFields&&(m=V(n,m).map(([r,u])=>{let c={};return u!==void 0&&r!==void 0&&(c.Field=u[t],c.Value=u[p],c[x(v.trim())]=u[`${p}${v}`]),c})),m}function N(l){let{rawData:e,keyBase:o="",outRow:s}=l;for(let[i,t]of Object.entries(P)){let a=e[o+t];a!==void 0&&(s[i]=A(a)?a.toFixed(2):a);let m=e[o+t+Q];m!==void 0&&(s[`${i} Outlier`]=A(m)?m.toFixed(2):m);let n=e[o+t+R];n!==void 0&&(s[`${i} Z-Score`]=A(n)?n.toFixed(2):n)}}function D(l){let{rawData:e,outRow:o,config:s,boxPlotSubType:i,fieldList:t}=l,a=T(s),m=Z(s),n=I(s),f=P.Outlier,y=M;switch(i){case d.BoxPlotMonoFieldAndCategory:{let r=S({field:a,value:e[a],fieldList:t});o[a]=r,o[x(P.Outlier)]=e[f];break}case d.BoxPlotMultiFieldsAndCategory:{o[x(a)]=e[a],f=`${m.find(r=>Object.keys(e).some(u=>u.toLowerCase().includes(r.toLowerCase())))??""}_${f}`,o[x(P.Outlier)]=e[f];break}case d.BoxPlotMonoFieldAndSplitBy:case d.BoxPlotMultiFieldsAndSplitBy:{let r=e[n];f=`${r}_${f}`,o.Field=e[y],o[x(n)]=r,o[x(P.Outlier)]=e[f];break}case d.BoxPlotMonoFieldAndCategoryAndSplitBy:{let r=e[n];f=`${r}_${f}`,o[x(a)]=e[a],o[x(n)]=r,o[x(P.Outlier)]=e[f];break}case d.BoxPlotMonoField:case d.BoxPlotMultiFields:default:{o.Field=e[y],o[x(P.Outlier)]=e[f];break}}let b=`${f}${R}`,p=e[b];p!==void 0&&(o[`${x(P.Outlier)} Z-Score`]=A(p)?p.toFixed(2):p)}function Fe(l){let{rawData:e,outRow:o,config:s,splitByValue:i}=l,t=C(s.series),a=e[`${i}_${P.Average}`],m=I(s),n=T(s),f="";switch(t){case d.BoxPlotMonoFieldAndSplitBy:{f=`${i}_${m}`,o.Field=e[M],o[x(m)]=e[f];break}case d.BoxPlotMultiFieldsAndSplitBy:{f=`${i}_${P.Average}`,o.Field=e[M],o[x(m)]=e[f];break}case d.BoxPlotMonoFieldAndCategoryAndSplitBy:{f=`${i}_${P.Average}`,o[n]=e[n],o[x(m)]=i;break}}o[x(P.Average)]=A(a)?a.toFixed(2):a;let y=`${a}${R}`,b=e[y];b!==void 0&&(o[`${x(P.Average)} Z-Score`]=A(b)?b.toFixed(2):b)}function Pe(l){let{config:e,rows:o,fieldList:s}=l,i=C(e.series),t=i,a=re(e),m=Array.isArray(o)&&o.length>0&&o.every(r=>r[L.boxPlot.boxPlotMeanLineMarkerId]!==void 0);a&&!m&&(i===d.BoxPlotMonoFieldAndSplitBy?t=d.BoxPlotMonoField:i===d.BoxPlotMultiFieldsAndSplitBy?t=d.BoxPlotMultiFields:i===d.BoxPlotMonoFieldAndCategoryAndSplitBy&&(t=d.BoxPlotMonoFieldAndCategory));let n=T(e),f=Z(e),y=H(e),b=I(e),p;switch(t){case d.BoxPlotMonoField:case d.BoxPlotMonoFieldAndCategory:{p=o.map(r=>{let u={};if(r[L.boxPlot.boxPlotOutlierId])D({rawData:r,outRow:u,config:e,boxPlotSubType:t});else{if(t===d.BoxPlotMonoFieldAndCategory){let c=S({field:n,value:r[n],fieldList:s});u[n]=c}else t===d.BoxPlotMonoField&&(u.Field=r[M]);N({rawData:r,outRow:u})}return u});break}case d.BoxPlotMultiFields:{p=o.flatMap(r=>{let u={};return r[L.boxPlot.boxPlotOutlierId]?D({rawData:r,outRow:u,config:e,boxPlotSubType:t}):(u.Field=r[M],N({rawData:r,outRow:u})),[u]});break}case d.BoxPlotMultiFieldsAndCategory:{p=o.flatMap(r=>f.map(u=>{let c={},g="";if(c.Field=u,r[L.boxPlot.boxPlotOutlierId])D({rawData:r,outRow:c,config:e,boxPlotSubType:t});else{if(t===d.BoxPlotMultiFieldsAndCategory){let F=S({field:n,value:r[n],fieldList:s});c[n]=F,g=`${u}_`}N({rawData:r,outRow:c,keyBase:g})}return c}));break}case d.BoxPlotMonoFieldAndSplitBy:case d.BoxPlotMultiFieldsAndSplitBy:case d.BoxPlotMonoFieldAndCategoryAndSplitBy:{p=o.flatMap(r=>{if(r[L.boxPlot.boxPlotOutlierId]){let u={};return D({rawData:r,outRow:u,config:e,boxPlotSubType:t}),[u]}else return r[L.boxPlot.boxPlotMeanLineMarkerId]?y?.map(u=>{let c={};return Fe({rawData:r,outRow:c,splitByValue:u,config:e}),c}):y.map(u=>{let c={};if(t===d.BoxPlotMonoFieldAndCategoryAndSplitBy){let g=S({field:n,value:r[n],fieldList:s});c[n]=g}return r[L.boxPlot.boxPlotOutlierId]?D({rawData:r,outRow:c,config:e,boxPlotSubType:t}):(c[b]=u,N({rawData:r,outRow:c,keyBase:`${u}_`})),c})});break}default:p=o}return p}var ue=l=>{let e=!1;return(typeof l=="string"||typeof l=="number")&&(e=!Number.isNaN(new Date(l).getTime())),e},S=l=>{let{field:e,value:o,fieldList:s}=l,i=o,t=s?.find(a=>a.name===e);if(t){let a=t.type===J.DateOnly;Y(t)&&!a?i=ue(o)?new Date(o).toISOString():o:a&&typeof o!="string"&&(i=ue(o)?new Date(o).toISOString().split("T")[0]:o)}return i};function _e(){let l=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${l()+l()}-${l()}-${l()}-${l()}-${l()}${l()}${l()}`}return{a:Re,b:he,c:Te,d:ce,e:Ie,f:Ne,g:je,h:_e}},a,b,c,d,e,f,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import q from"./NU2VVD6Z.js";import o from"./ZUVE6PPC.js";import n from"./KGMCQQHP.js";import m from"./A5YYXQV6.js";import l from"./UT5QHTPU.js";import k from"./7RITDPAC.js";import j from"./GUE5XBIM.js";import i from"./34RXKT7V.js";import g from"./3OHJETRE.js";import f from"./XRVH23BY.js";import e from"./VHDKHAB6.js";import c from"./4KK3EBEB.js";import b from"./P4ZADG4T.js";import{i as p,j as d,k as h}from"./UG7LOBJE.js";import a from"./OZRUIX7Z.js";import{n as O}from"./4B3QBH5T.js";import{a as E}from"./KUVOINJC.js";import{a as P,b as y,f as S}from"./NKG4FLLR.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{$:V,Nc:R,Wd:k,Z:w,f:_,fa:D,ka:U,oa:L},{a:W,b:x,d:F,o:N,p:j,q:z},{c:o},B,{b:fe,d:ue,f:Se},{b:pe,d:he,f:me},{a:ye,b:de},Fe,{b:ce},{a:ne,b:ae,c:le,d:ge},{a:_e,b:xe},{d:T,e:A,f:q},{b:M},{da:te,ea:f,fa:se,g:X,ga:u,h:Y,ha:I,i:Z,ia:C,j:$,k:G,ka:b,l:H,la:v,m:J,ma:re,n:K,na:oe,o:Q,p:ee,q:ie}])=>{var Te=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,Ae=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:r}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=U(r,P.BarSeries)[1]),t.series&&t.series.forEach((a,c)=>{c===i?a.assignToSecondValueAxis=e:c!==i&&a?.assignToSecondValueAxis!==!0&&(a.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(a=>a.assignToSecondValueAxis)&&t.axes.splice(2,1)},Ie=(s,e)=>e.series?.[s]?.name,Ce=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},be=(s,e)=>{let i=e.series?.[s],t;return h(i)?t=i.fillSymbol?.color:p(i)&&(t=i.lineSymbol?.color),t},ve=(s,e,i)=>{let t=i.series?.[e];t&&(h(t)?t.fillSymbol={...L(e),...t.fillSymbol,color:s}:p(t)&&(t.lineSymbol={...D(e),...t.lineSymbol,color:s}))},Be=s=>s.series.map(e=>e.id),Oe=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(r=>i.id===r)-s.findIndex(r=>t.id===r))},Pe=s=>s.stackedType??S.Side,we=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:r}=s;if(i.stackedType=e,t!==void 0){let a=x({config:i,layerInfo:t,commonStrings:r,numericFields:u(i),aggregationType:f(i)});W(i,1,a)}i.axes?.[1]&&(e===S.Stacked100?i.axes[1].valueFormat=V():i.axes[1].valueFormat=w()),F({config:i,value:null,axisIndex:1,isMax:!1}),F({config:i,value:null,axisIndex:1,isMax:!0})},Ve=s=>{let e,i=s.series.find(t=>(h(t)||p(t)||d(t))&&t.nullCategory!==void 0);return(h(i)||p(i)||d(i))&&(e=i?.nullCategory),e},De=(s,e)=>{s.series.forEach(i=>{(h(i)||p(i)||d(i))&&(i.nullCategory=e)})},Ue=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,m=(s,e,i,t)=>{for(var r=Le(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(r=c(e,i,r)||r);return r&&Ue(e,i,r),r},g=class extends B{get temporalBinningSize(){return X(this._config)}set temporalBinningSize(e){H(e,this._config)}get temporalBinningUnit(){return Y(this._config)}set temporalBinningUnit(e){K(e,this._config)}get timeAggregationType(){return Z(this._config)}set timeAggregationType(e){Q(e,this._config)}get trimIncompleteTimeInterval(){return $(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return G(this._config)}set nullPolicy(e){J(e,this._config)}resetTimeInterval(){ie(this._config)}};m([o],g.prototype,"temporalBinningSize");m([o],g.prototype,"temporalBinningUnit");m([o],g.prototype,"timeAggregationType");m([o],g.prototype,"trimIncompleteTimeInterval");m([o],g.prototype,"nullPolicy");m([o],g.prototype,"resetTimeInterval");var Re=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,l=(s,e,i,t)=>{for(var r=ke(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(r=c(e,i,r)||r);return r&&Re(e,i,r),r},n=class extends B{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=y.Count,this._splitByField="",this._numericFields=[]}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,this.dirtyAsyncSetters.push("xAxisField"),e.trim()===""||e===_){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild()}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,this.dirtyAsyncSetters.push("aggregationType"),this.processSeriesRebuild()}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&N(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.dirtyAsyncSetters.push("splitByField"),this.processSeriesRebuild())}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=j(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===_)&&e.length===0;if(i&&!t){let r=R(this.layerInfo.layer).idField;e.length===0&&r!==void 0?(e.push(r),this._aggregationType=y.Count):this._aggregationType===y.Count&&e.length>=1&&r!==void 0&&!e.includes(r)&&(this._aggregationType=y.Sum),this._numericFields=e,this.dirtyAsyncSetters.push("numericFields"),this.numericFields.length>1&&(this._splitByField="",this.dirtyAsyncSetters.push("splitByField")),this.processSeriesRebuild()}else t&&this.resetConfig()}getAssignToSecondValueAxis(e){return Te(e,this._config)}setAssignToSecondValueAxis(e,i){Ae({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSortOrder(){return I(this._config)[0]}setSortOrder(e,i){A(e,this._config,i)}async getCustomSortValues(){return await v(this._config,this.layerInfo)}async setDataFilters(e){super.setDataFilters(e);let i=I(this._config)[0];if(i===E.customSort){this.startAsyncUpdate();let t=await v(this._config,this.layerInfo);A(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return T(this._config)}set orderByList(e){!k(this._config)&&b(e,this._config)}async updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&(this.dirtyAsyncSetters.push("updateSeriesFromLayerFilter"),await this.processSeriesRebuild())}get binTemporalData(){return re(this._config)}set binTemporalData(e){oe(e,this._config)}getSeriesName(e){return Ie(e,this._config)}setSeriesName(e,i){Ce(e,i,this._config)}getSeriesColor(e){return be(e,this._config)}setSeriesColor(e,i){ve(e,i,this._config)}getOrderOfSeries(){return Be(this._config)}setOrderOfSeries(e){Oe(e,this._config)}get stackedType(){return Pe(this._config)}set stackedType(e){we({newStackedType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(e,i){let t=this.getOrderOfSeries(),[r]=t.splice(e,1);t.splice(i,0,r),this.setOrderOfSeries(t)}moveCustomSortValuesInOrderByList(e,i){let t=T(this._config),[r]=t.splice(e,1);t.splice(i,0,r),b(t,this._config)}get nullCategory(){return Ve(this._config)}set nullCategory(e){let i=this.nullCategory;O(i,e)||De(this._config,e)}setupLocalProps(){this._xAxisField=q(this._config),this._aggregationType=f(this._config),this._splitByField=se(this._config),this._numericFields=u(this._config)}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}canUseSynchronousSeriesRebuild(){return this.splitByField===""||this.numericFields.length>1}async processSeriesRebuild(){if(this.layerInfo!==void 0){let e=this.dirtyAsyncSetters[this.dirtyAsyncSetters.length-1];if(this.canUseSynchronousSeriesRebuild())this.dirtyAsyncSetters=[],C(this.getBuildNewSeriesProps());else if(!this.asyncConfigUpdateInProgress){for(this.startAsyncUpdate();this.dirtyAsyncSetters.length>0;)this.dirtyAsyncSetters=[],await C(this.getBuildNewSeriesProps());this.finishAsyncUpdate()}this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}}getBuildNewSeriesProps(){return{xAxisField:this.xAxisField,splitByField:this.splitByField,numericFields:this.numericFields,aggregationType:this.aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}}generateChartTitle(){return this.layerInfo!==void 0?te(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?x({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:u(this._config),aggregationType:f(this._config)}):""}};l([o],n.prototype,"setAssignToSecondValueAxis");l([o],n.prototype,"setSortOrder");l([o],n.prototype,"setDataFilters");l([o],n.prototype,"orderByList");l([o],n.prototype,"binTemporalData");l([o],n.prototype,"setSeriesName");l([o],n.prototype,"setSeriesColor");l([o],n.prototype,"setOrderOfSeries");l([o],n.prototype,"stackedType");l([o],n.prototype,"moveSeries");l([o],n.prototype,"moveCustomSortValuesInOrderByList");l([o],n.prototype,"nullCategory");l([o],n.prototype,"resetConfig");var Ee=[_e,le,ge,ne,M,ae,ce,Fe,xe,g,fe,de,ue,ye,pe,he,me,Se];z(n,Ee);return{a:Ie,b:Ce,c:ve,d:n}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c,e,f,g,i,j,k,l,m,n,o,q)
2
+ import q from"./OUQ6UQEV.js";import o from"./QOB46ESO.js";import n from"./N5JAK3CR.js";import m from"./P3ZFMD7J.js";import l from"./YZPO3O6D.js";import k from"./2HNT7UIF.js";import j from"./KK7GHCNA.js";import i from"./M3RSYITQ.js";import g from"./BJSMDFX7.js";import f from"./BRLYQD3N.js";import e from"./5P2PCO4T.js";import c from"./E2QSOYAS.js";import b from"./WW7QVQ6V.js";import{i as p,j as d,k as h}from"./UG7LOBJE.js";import a from"./UHAXW24Z.js";import{n as O}from"./4B3QBH5T.js";import{a as E}from"./KUVOINJC.js";import{a as P,b as y,f as S}from"./NKG4FLLR.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{$:V,Nc:R,Wd:k,Z:w,f:_,fa:D,ka:U,oa:L},{a:W,b:x,d:F,o:N,p:j,q:z},{c:o},B,{b:fe,d:ue,f:Se},{b:pe,d:he,f:me},{a:ye,b:de},Fe,{b:ce},{a:ne,b:ae,c:le,d:ge},{a:_e,b:xe},{d:T,e:A,f:q},{b:M},{da:te,ea:f,fa:se,g:X,ga:u,h:Y,ha:I,i:Z,ia:C,j:$,k:G,ka:b,l:H,la:v,m:J,ma:re,n:K,na:oe,o:Q,p:ee,q:ie}])=>{var Te=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,Ae=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:r}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=U(r,P.BarSeries)[1]),t.series&&t.series.forEach((a,c)=>{c===i?a.assignToSecondValueAxis=e:c!==i&&a?.assignToSecondValueAxis!==!0&&(a.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(a=>a.assignToSecondValueAxis)&&t.axes.splice(2,1)},Ie=(s,e)=>e.series?.[s]?.name,Ce=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},be=(s,e)=>{let i=e.series?.[s],t;return h(i)?t=i.fillSymbol?.color:p(i)&&(t=i.lineSymbol?.color),t},ve=(s,e,i)=>{let t=i.series?.[e];t&&(h(t)?t.fillSymbol={...L(e),...t.fillSymbol,color:s}:p(t)&&(t.lineSymbol={...D(e),...t.lineSymbol,color:s}))},Be=s=>s.series.map(e=>e.id),Oe=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(r=>i.id===r)-s.findIndex(r=>t.id===r))},Pe=s=>s.stackedType??S.Side,we=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:r}=s;if(i.stackedType=e,t!==void 0){let a=x({config:i,layerInfo:t,commonStrings:r,numericFields:u(i),aggregationType:f(i)});W(i,1,a)}i.axes?.[1]&&(e===S.Stacked100?i.axes[1].valueFormat=V():i.axes[1].valueFormat=w()),F({config:i,value:null,axisIndex:1,isMax:!1}),F({config:i,value:null,axisIndex:1,isMax:!0})},Ve=s=>{let e,i=s.series.find(t=>(h(t)||p(t)||d(t))&&t.nullCategory!==void 0);return(h(i)||p(i)||d(i))&&(e=i?.nullCategory),e},De=(s,e)=>{s.series.forEach(i=>{(h(i)||p(i)||d(i))&&(i.nullCategory=e)})},Ue=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,m=(s,e,i,t)=>{for(var r=Le(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(r=c(e,i,r)||r);return r&&Ue(e,i,r),r},g=class extends B{get temporalBinningSize(){return X(this._config)}set temporalBinningSize(e){H(e,this._config)}get temporalBinningUnit(){return Y(this._config)}set temporalBinningUnit(e){K(e,this._config)}get timeAggregationType(){return Z(this._config)}set timeAggregationType(e){Q(e,this._config)}get trimIncompleteTimeInterval(){return $(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return G(this._config)}set nullPolicy(e){J(e,this._config)}resetTimeInterval(){ie(this._config)}};m([o],g.prototype,"temporalBinningSize");m([o],g.prototype,"temporalBinningUnit");m([o],g.prototype,"timeAggregationType");m([o],g.prototype,"trimIncompleteTimeInterval");m([o],g.prototype,"nullPolicy");m([o],g.prototype,"resetTimeInterval");var Re=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,l=(s,e,i,t)=>{for(var r=ke(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(r=c(e,i,r)||r);return r&&Re(e,i,r),r},n=class extends B{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=y.Count,this._splitByField="",this._numericFields=[]}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,this.dirtyAsyncSetters.push("xAxisField"),e.trim()===""||e===_){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild()}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,this.dirtyAsyncSetters.push("aggregationType"),this.processSeriesRebuild()}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&N(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.dirtyAsyncSetters.push("splitByField"),this.processSeriesRebuild())}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=j(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===_)&&e.length===0;if(i&&!t){let r=R(this.layerInfo.layer).idField;e.length===0&&r!==void 0?(e.push(r),this._aggregationType=y.Count):this._aggregationType===y.Count&&e.length>=1&&r!==void 0&&!e.includes(r)&&(this._aggregationType=y.Sum),this._numericFields=e,this.dirtyAsyncSetters.push("numericFields"),this.numericFields.length>1&&(this._splitByField="",this.dirtyAsyncSetters.push("splitByField")),this.processSeriesRebuild()}else t&&this.resetConfig()}getAssignToSecondValueAxis(e){return Te(e,this._config)}setAssignToSecondValueAxis(e,i){Ae({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSortOrder(){return I(this._config)[0]}setSortOrder(e,i){A(e,this._config,i)}async getCustomSortValues(){return await v(this._config,this.layerInfo)}async setDataFilters(e){super.setDataFilters(e);let i=I(this._config)[0];if(i===E.customSort){this.startAsyncUpdate();let t=await v(this._config,this.layerInfo);A(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return T(this._config)}set orderByList(e){!k(this._config)&&b(e,this._config)}async updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&(this.dirtyAsyncSetters.push("updateSeriesFromLayerFilter"),await this.processSeriesRebuild())}get binTemporalData(){return re(this._config)}set binTemporalData(e){oe(e,this._config)}getSeriesName(e){return Ie(e,this._config)}setSeriesName(e,i){Ce(e,i,this._config)}getSeriesColor(e){return be(e,this._config)}setSeriesColor(e,i){ve(e,i,this._config)}getOrderOfSeries(){return Be(this._config)}setOrderOfSeries(e){Oe(e,this._config)}get stackedType(){return Pe(this._config)}set stackedType(e){we({newStackedType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(e,i){let t=this.getOrderOfSeries(),[r]=t.splice(e,1);t.splice(i,0,r),this.setOrderOfSeries(t)}moveCustomSortValuesInOrderByList(e,i){let t=T(this._config),[r]=t.splice(e,1);t.splice(i,0,r),b(t,this._config)}get nullCategory(){return Ve(this._config)}set nullCategory(e){let i=this.nullCategory;O(i,e)||De(this._config,e)}setupLocalProps(){this._xAxisField=q(this._config),this._aggregationType=f(this._config),this._splitByField=se(this._config),this._numericFields=u(this._config)}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}canUseSynchronousSeriesRebuild(){return this.splitByField===""||this.numericFields.length>1}async processSeriesRebuild(){if(this.layerInfo!==void 0){let e=this.dirtyAsyncSetters[this.dirtyAsyncSetters.length-1];if(this.canUseSynchronousSeriesRebuild())this.dirtyAsyncSetters=[],C(this.getBuildNewSeriesProps());else if(!this.asyncConfigUpdateInProgress){for(this.startAsyncUpdate();this.dirtyAsyncSetters.length>0;)this.dirtyAsyncSetters=[],await C(this.getBuildNewSeriesProps());this.finishAsyncUpdate()}this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}}getBuildNewSeriesProps(){return{xAxisField:this.xAxisField,splitByField:this.splitByField,numericFields:this.numericFields,aggregationType:this.aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}}generateChartTitle(){return this.layerInfo!==void 0?te(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?x({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:u(this._config),aggregationType:f(this._config)}):""}};l([o],n.prototype,"setAssignToSecondValueAxis");l([o],n.prototype,"setSortOrder");l([o],n.prototype,"setDataFilters");l([o],n.prototype,"orderByList");l([o],n.prototype,"binTemporalData");l([o],n.prototype,"setSeriesName");l([o],n.prototype,"setSeriesColor");l([o],n.prototype,"setOrderOfSeries");l([o],n.prototype,"stackedType");l([o],n.prototype,"moveSeries");l([o],n.prototype,"moveCustomSortValuesInOrderByList");l([o],n.prototype,"nullCategory");l([o],n.prototype,"resetConfig");var Ee=[_e,le,ge,ne,M,ae,ce,Fe,xe,g,fe,de,ue,ye,pe,he,me,Se];z(n,Ee);return{a:Ie,b:Ce,c:ve,d:n}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c,e,f,g,i,j,k,l,m,n,o,q)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import c from"./C5JZOWBJ.js";import b from"./4KK3EBEB.js";import{i as o,j as t}from"./UG7LOBJE.js";import a from"./OZRUIX7Z.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{ea:m},{b:p,c:k},{a:b,b:d,c:v,d:f}])=>{var K=(s,e)=>{if(o(e.series[s])||t(e.series[s]))return b(e.series[s])},M=(s,e,i)=>{(o(i.series[e])||t(i.series[e]))&&d(s,i.series[e])},Q=(s,e)=>{if(o(e.series[s])||t(e.series[s]))return v(e.series[s])},R=(s,e,i)=>{(o(i.series[e])||t(i.series[e]))&&f(s,i.series[e])},U=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].markerSymbol?.color:void 0,X=(s,e,i)=>{if(o(i.series[e])||t(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=m()),r.markerSymbol.color=s}},Y=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.markerSymbol?.style:void 0,Z=(s,e,i)=>{if(o(i.series[e])||t(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=m()),r.markerSymbol.style=s}},$=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.markerSymbol?.size:void 0,ee=(s,e,i)=>{if(o(i.series[e])||t(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=m()),r.markerSymbol.size=s}},se=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.lineSmoothed??!1:!1,ie=s=>{let{smoothed:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].lineSmoothed=e)},re=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].showArea??!1:!1,oe=s=>{let{visible:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].showArea=e)},te=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].markerVisible??!0:!1,ae=s=>{let{visible:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].markerVisible=e)},me=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].areaColor:void 0,ne=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.connectLines:void 0,ce=s=>{let{connect:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].connectLines=e)},g=Object.defineProperty,S=Object.getOwnPropertyDescriptor,y=(s,e,i,r)=>{for(var a=S(e,i),n=s.length-1,l;n>=0;n--)(l=s[n])&&(a=l(e,i,a)||a);return a&&g(e,i,a),a},u=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].stackNegativeValuesToBaseline??!0:!1,h=s=>{let{stackNegativeValuesToBaseline:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].stackNegativeValuesToBaseline=e)},c=class extends p{isNegativeValuesStackedToBaseline(e){return u(e,this._config)}setNegativeValuesStackedToBaseline(e,i){h({stackNegativeValuesToBaseline:e,seriesIndex:i,config:this._config})}};y([k],c.prototype,"setNegativeValuesStackedToBaseline");return{a:K,b:M,c:Q,d:R,e:U,f:X,g:Y,h:Z,i:$,j:ee,k:se,l:ie,m:re,n:oe,o:te,p:ae,q:me,r:ne,s:ce,t:c}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c)
2
+ import c from"./PNQFXJQD.js";import b from"./E2QSOYAS.js";import{i as o,j as t}from"./UG7LOBJE.js";import a from"./UHAXW24Z.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{ea:m},{b:p,c:k},{a:b,b:d,c:v,d:f}])=>{var K=(s,e)=>{if(o(e.series[s])||t(e.series[s]))return b(e.series[s])},M=(s,e,i)=>{(o(i.series[e])||t(i.series[e]))&&d(s,i.series[e])},Q=(s,e)=>{if(o(e.series[s])||t(e.series[s]))return v(e.series[s])},R=(s,e,i)=>{(o(i.series[e])||t(i.series[e]))&&f(s,i.series[e])},U=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].markerSymbol?.color:void 0,X=(s,e,i)=>{if(o(i.series[e])||t(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=m()),r.markerSymbol.color=s}},Y=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.markerSymbol?.style:void 0,Z=(s,e,i)=>{if(o(i.series[e])||t(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=m()),r.markerSymbol.style=s}},$=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.markerSymbol?.size:void 0,ee=(s,e,i)=>{if(o(i.series[e])||t(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=m()),r.markerSymbol.size=s}},se=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.lineSmoothed??!1:!1,ie=s=>{let{smoothed:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].lineSmoothed=e)},re=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].showArea??!1:!1,oe=s=>{let{visible:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].showArea=e)},te=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].markerVisible??!0:!1,ae=s=>{let{visible:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].markerVisible=e)},me=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].areaColor:void 0,ne=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.connectLines:void 0,ce=s=>{let{connect:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].connectLines=e)},g=Object.defineProperty,S=Object.getOwnPropertyDescriptor,y=(s,e,i,r)=>{for(var a=S(e,i),n=s.length-1,l;n>=0;n--)(l=s[n])&&(a=l(e,i,a)||a);return a&&g(e,i,a),a},u=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].stackNegativeValuesToBaseline??!0:!1,h=s=>{let{stackNegativeValuesToBaseline:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].stackNegativeValuesToBaseline=e)},c=class extends p{isNegativeValuesStackedToBaseline(e){return u(e,this._config)}setNegativeValuesStackedToBaseline(e,i){h({stackNegativeValuesToBaseline:e,seriesIndex:i,config:this._config})}};y([k],c.prototype,"setNegativeValuesStackedToBaseline");return{a:K,b:M,c:Q,d:R,e:U,f:X,g:Y,h:Z,i:$,j:ee,k:se,l:ie,m:re,n:oe,o:te,p:ae,q:me,r:ne,s:ce,t:c}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import d from"./VVH3WKVP.js";import"./DPJE33GY.js";import{a as m}from"./CKSCWVHZ.js";import b from"./P4ZADG4T.js";import"./UG7LOBJE.js";import a from"./OZRUIX7Z.js";import"./4B3QBH5T.js";import"./4IRYZXWR.js";import"./KUVOINJC.js";import"./NKG4FLLR.js";import{F as l,g as o,h as g,m as c,z as h}from"./IQHNN2RA.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,{n:n}])=>{var u="arcgis-charts-config-storage-colors",_=o`:host{--calcite-color-border-1: transparent}.color-header{margin-bottom:.5rem}`,a=class extends h{constructor(){super(...arguments),this._messages=m(),this.arcgisColorSelect=c()}static{this.properties={messageOverrides:0,rgba:0,heading:1}}static{this.styles=_}onColorSelect(s){let{value:e}=s.target;if(e!==null){let{r,g:t,b:v}=e,i=[r,t,v,255];this.isNewColor(i)&&this.arcgisColorSelect.emit(i)}}isNewColor(s){let e=!1;return this.rgba===void 0?e=!0:s===void 0?e=!1:e=s[0]!==this.rgba[0]||s[1]!==this.rgba[1]||s[2]!==this.rgba[2],e}render(){let s;if(this.rgba!==void 0){let[e,r,t]=this.rgba;s={r:e,g:r,b:t}}return g`<calcite-label>${this.heading??this._messages.color}</calcite-label><calcite-color-picker .value=${n(s)} @calciteColorPickerInput=${this.onColorSelect} .messageOverrides=${{g:this._messages.g,green:this._messages.green,h:this._messages.h,hex:this._messages.hex,hsv:this._messages.hsv,hue:this._messages.hue,r:this._messages.r,red:this._messages.red,rgb:this._messages.rgb,s:this._messages.s,saturation:this._messages.saturation,saveColor:this._messages.saveColor,saved:this._messages.saved,v:this._messages.v,value:this._messages.value}} clearable .storageId=${u} format=rgb></calcite-color-picker>`}};l("arcgis-charts-config-colors",a);return a},a,b,d)
2
+ import d from"./FQYL2QII.js";import"./DPJE33GY.js";import{a as m}from"./YTWYYKBB.js";import b from"./WW7QVQ6V.js";import"./UG7LOBJE.js";import a from"./UHAXW24Z.js";import"./4B3QBH5T.js";import"./EYIUFDDU.js";import"./KUVOINJC.js";import"./NKG4FLLR.js";import{F as l,g as o,h as g,m as c,z as h}from"./TWV5ZXEU.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,{n:n}])=>{var u="arcgis-charts-config-storage-colors",_=o`:host{--calcite-color-border-1: transparent}.color-header{margin-bottom:.5rem}`,a=class extends h{constructor(){super(...arguments),this._messages=m(),this.arcgisColorSelect=c()}static{this.properties={messageOverrides:0,rgba:0,heading:1}}static{this.styles=_}onColorSelect(s){let{value:e}=s.target;if(e!==null){let{r,g:t,b:v}=e,i=[r,t,v,255];this.isNewColor(i)&&this.arcgisColorSelect.emit(i)}}isNewColor(s){let e=!1;return this.rgba===void 0?e=!0:s===void 0?e=!1:e=s[0]!==this.rgba[0]||s[1]!==this.rgba[1]||s[2]!==this.rgba[2],e}render(){let s;if(this.rgba!==void 0){let[e,r,t]=this.rgba;s={r:e,g:r,b:t}}return g`<calcite-label>${this.heading??this._messages.color}</calcite-label><calcite-color-picker .value=${n(s)} @calciteColorPickerInput=${this.onColorSelect} .messageOverrides=${{g:this._messages.g,green:this._messages.green,h:this._messages.h,hex:this._messages.hex,hsv:this._messages.hsv,hue:this._messages.hue,r:this._messages.r,red:this._messages.red,rgb:this._messages.rgb,s:this._messages.s,saturation:this._messages.saturation,saveColor:this._messages.saveColor,saved:this._messages.saved,v:this._messages.v,value:this._messages.value}} clearable .storageId=${u} format=rgb></calcite-color-picker>`}};l("arcgis-charts-config-colors",a);return a},a,b,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import f from"./VVH3WKVP.js";import"./DPJE33GY.js";import{a as C}from"./CKSCWVHZ.js";import e from"./P4ZADG4T.js";import"./UG7LOBJE.js";import b from"./OZRUIX7Z.js";import{B as v,C as l,D as s,E as c,r as n}from"./4B3QBH5T.js";import"./4IRYZXWR.js";import"./KUVOINJC.js";import"./NKG4FLLR.js";import{A as i,F as g,g as y,h as a,m,x as S,y as d,z as u}from"./IQHNN2RA.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{U:b},,{g:$,h:x,i:f,j:h}])=>{var E={arial:"Arial",arialBlack:"Arial Black",bookman:"Bookman",candara:"Candara",courier:"Courier",courierNew:"Courier New",garamond:"Garamond",georgia:"Georgia",impact:"Impact",palatino:"Palatino",roboto:"Roboto",times:"Times",timesNewRoman:"Times New Roman",verdana:"Verdana"},o={fontStyleContainer:"font-style-container",font:"font",numberInput:"number-input",inputLabel:"input-label"},I=y`.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{overflow-y:auto}:host calcite-panel .font-style-container{display:flex;padding:0 1rem}:host calcite-panel .font-style-container .input-label{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important}:host calcite-panel .font-style-container .number-input{margin-bottom:.5rem;display:flex}:host calcite-panel .font-style-container .number-input>div{width:100%}:host calcite-panel .font-style-container calcite-action,:host calcite-panel .font-style-container calcite-label{flex:1 1 0px;display:flex;flex-grow:inherit;width:80px}:host calcite-panel .font-style-container calcite-label{flex-grow:2}:host calcite-panel calcite-label.font{display:block;margin-top:1rem}`,p=class extends u{constructor(){super(...arguments),this._messages=C(),this.fontSizeInputElement=S(),this.fontStyle={type:v.TS},this.arcgisChartsConfigFontStyleChange=m(),this.arcgisChartsConfigFontStyleClose=m()}static{this.properties={messageOverrides:0,fontStyle:0,header:1,open:5,enableClose:5}}static{this.styles=I}closePanel(t){t.target.closed&&this.enableClose===!0&&(this.open=!1,this.arcgisChartsConfigFontStyleClose.emit())}fontChange(t){let e=t.target.selectedOption.value;if(e!==void 0){let r={family:e};this.isNewFontProperty("family",r)&&(this.fontStyle=n(this.fontStyle,{font:r}),this.emitFontStyleEvent({font:r}))}}fontSizeChange(){let t=this.fontSizeInputElement.value?.value;if(t!==void 0&&$(t,this.fontSizeInputElement.value?.min,this.fontSizeInputElement.value?.max)){let e={size:Number.parseInt(t)};this.isNewFontProperty("size",e)&&(this.fontStyle=n(this.fontStyle,{font:e}),this.emitFontStyleEvent({font:e})),this.fontSizeInputElement.value&&f({inputElement:this.fontSizeInputElement.value,status:h.IDLE})}else this.fontSizeInputElement.value&&f({inputElement:this.fontSizeInputElement.value,status:h.INVALID})}boldSelect(){let t=s.Bold;this.fontStyle?.font?.weight===t&&(t=s.Normal);let e={weight:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}italicSelect(){let t=l.Italic;this.fontStyle?.font?.style===t&&(t=l.Normal);let e={style:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}underlineSelect(){let t=c.Underline;this.fontStyle?.font?.decoration===t&&(t=c.None);let e={decoration:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}colorChange(t){let e=t.detail;this.fontStyle=n(this.fontStyle,{color:e}),this.emitFontStyleEvent({color:e})}emitFontStyleEvent(t){this.arcgisChartsConfigFontStyleChange.emit(t)}isNewFontProperty(t,e){return this.fontStyle?.font?.[t]!==e[t]}renderFonts(){let t=Object.values(E).map(e=>a`<calcite-option .value=${e} .selected=${e===this.fontStyle?.font?.family||e===b().font?.family?.split(",")[0]&&this.fontStyle?.font?.family===void 0}>${e}</calcite-option>`);return this.fontStyle?.font?.family===""&&t.push(a`<calcite-option value selected></calcite-option>`),t}render(){return a`<calcite-panel .heading=${this.header??this._messages.header} .closed=${this.open===!1} .closable=${this.enableClose??!1} @calcitePanelClose=${this.closePanel}><div class=${i(o.fontStyleContainer)}><calcite-label class=${i(o.font)}>${this._messages.font}<calcite-select .label=${this._messages.font??""} @calciteSelectChange=${this.fontChange}>${this.renderFonts()}</calcite-select></calcite-label></div><div class=${i(o.fontStyleContainer)}><calcite-label class=${i(o.inputLabel)}>${this._messages.size}<calcite-input class=${i(o.numberInput)} type=number min=6 max=40 step=1 .value=${x(this.fontStyle?.font?.size)} @calciteInputInput=${this.fontSizeChange} ${d(this.fontSizeInputElement)}></calcite-input></calcite-label><calcite-action appearance=transparent .text=${this._messages.bold??""} @click=${this.boldSelect} scale=l .active=${this.fontStyle?.font?.weight===s.Bold}><calcite-icon scale=s icon=bold></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.italic??""} @click=${this.italicSelect} scale=l .active=${this.fontStyle?.font?.style===l.Italic}><calcite-icon scale=s icon=italicize></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.underline??""} @click=${this.underlineSelect} scale=l .active=${this.fontStyle?.font?.decoration===c.Underline}><calcite-icon scale=s icon=underline></calcite-icon></calcite-action></div><div class=${i(o.fontStyleContainer)}><arcgis-charts-config-colors .rgba=${this.fontStyle?.color??void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel>`}};g("arcgis-charts-config-font-style",p);return p},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",b,e,f)
2
+ import f from"./FQYL2QII.js";import"./DPJE33GY.js";import{a as C}from"./YTWYYKBB.js";import e from"./WW7QVQ6V.js";import"./UG7LOBJE.js";import b from"./UHAXW24Z.js";import{B as v,C as l,D as s,E as c,r as n}from"./4B3QBH5T.js";import"./EYIUFDDU.js";import"./KUVOINJC.js";import"./NKG4FLLR.js";import{A as i,F as g,g as y,h as a,m,x as S,y as d,z as u}from"./TWV5ZXEU.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{U:b},,{g:$,h:x,i:f,j:h}])=>{var E={arial:"Arial",arialBlack:"Arial Black",bookman:"Bookman",candara:"Candara",courier:"Courier",courierNew:"Courier New",garamond:"Garamond",georgia:"Georgia",impact:"Impact",palatino:"Palatino",roboto:"Roboto",times:"Times",timesNewRoman:"Times New Roman",verdana:"Verdana"},o={fontStyleContainer:"font-style-container",font:"font",numberInput:"number-input",inputLabel:"input-label"},I=y`.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{overflow-y:auto}:host calcite-panel .font-style-container{display:flex;padding:0 1rem}:host calcite-panel .font-style-container .input-label{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important}:host calcite-panel .font-style-container .number-input{margin-bottom:.5rem;display:flex}:host calcite-panel .font-style-container .number-input>div{width:100%}:host calcite-panel .font-style-container calcite-action,:host calcite-panel .font-style-container calcite-label{flex:1 1 0px;display:flex;flex-grow:inherit;width:80px}:host calcite-panel .font-style-container calcite-label{flex-grow:2}:host calcite-panel calcite-label.font{display:block;margin-top:1rem}`,p=class extends u{constructor(){super(...arguments),this._messages=C(),this.fontSizeInputElement=S(),this.fontStyle={type:v.TS},this.arcgisChartsConfigFontStyleChange=m(),this.arcgisChartsConfigFontStyleClose=m()}static{this.properties={messageOverrides:0,fontStyle:0,header:1,open:5,enableClose:5}}static{this.styles=I}closePanel(t){t.target.closed&&this.enableClose===!0&&(this.open=!1,this.arcgisChartsConfigFontStyleClose.emit())}fontChange(t){let e=t.target.selectedOption.value;if(e!==void 0){let r={family:e};this.isNewFontProperty("family",r)&&(this.fontStyle=n(this.fontStyle,{font:r}),this.emitFontStyleEvent({font:r}))}}fontSizeChange(){let t=this.fontSizeInputElement.value?.value;if(t!==void 0&&$(t,this.fontSizeInputElement.value?.min,this.fontSizeInputElement.value?.max)){let e={size:Number.parseInt(t)};this.isNewFontProperty("size",e)&&(this.fontStyle=n(this.fontStyle,{font:e}),this.emitFontStyleEvent({font:e})),this.fontSizeInputElement.value&&f({inputElement:this.fontSizeInputElement.value,status:h.IDLE})}else this.fontSizeInputElement.value&&f({inputElement:this.fontSizeInputElement.value,status:h.INVALID})}boldSelect(){let t=s.Bold;this.fontStyle?.font?.weight===t&&(t=s.Normal);let e={weight:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}italicSelect(){let t=l.Italic;this.fontStyle?.font?.style===t&&(t=l.Normal);let e={style:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}underlineSelect(){let t=c.Underline;this.fontStyle?.font?.decoration===t&&(t=c.None);let e={decoration:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}colorChange(t){let e=t.detail;this.fontStyle=n(this.fontStyle,{color:e}),this.emitFontStyleEvent({color:e})}emitFontStyleEvent(t){this.arcgisChartsConfigFontStyleChange.emit(t)}isNewFontProperty(t,e){return this.fontStyle?.font?.[t]!==e[t]}renderFonts(){let t=Object.values(E).map(e=>a`<calcite-option .value=${e} .selected=${e===this.fontStyle?.font?.family||e===b().font?.family?.split(",")[0]&&this.fontStyle?.font?.family===void 0}>${e}</calcite-option>`);return this.fontStyle?.font?.family===""&&t.push(a`<calcite-option value selected></calcite-option>`),t}render(){return a`<calcite-panel .heading=${this.header??this._messages.header} .closed=${this.open===!1} .closable=${this.enableClose??!1} @calcitePanelClose=${this.closePanel}><div class=${i(o.fontStyleContainer)}><calcite-label class=${i(o.font)}>${this._messages.font}<calcite-select .label=${this._messages.font??""} @calciteSelectChange=${this.fontChange}>${this.renderFonts()}</calcite-select></calcite-label></div><div class=${i(o.fontStyleContainer)}><calcite-label class=${i(o.inputLabel)}>${this._messages.size}<calcite-input class=${i(o.numberInput)} type=number min=6 max=40 step=1 .value=${x(this.fontStyle?.font?.size)} @calciteInputInput=${this.fontSizeChange} ${d(this.fontSizeInputElement)}></calcite-input></calcite-label><calcite-action appearance=transparent .text=${this._messages.bold??""} @click=${this.boldSelect} scale=l .active=${this.fontStyle?.font?.weight===s.Bold}><calcite-icon scale=s icon=bold></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.italic??""} @click=${this.italicSelect} scale=l .active=${this.fontStyle?.font?.style===l.Italic}><calcite-icon scale=s icon=italicize></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.underline??""} @click=${this.underlineSelect} scale=l .active=${this.fontStyle?.font?.decoration===c.Underline}><calcite-icon scale=s icon=underline></calcite-icon></calcite-action></div><div class=${i(o.fontStyleContainer)}><arcgis-charts-config-colors .rgba=${this.fontStyle?.color??void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel>`}};g("arcgis-charts-config-font-style",p);return p},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",b,e,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import h from"./VVH3WKVP.js";import"./DPJE33GY.js";import{a as A}from"./CKSCWVHZ.js";import g from"./XRVH23BY.js";import f from"./PNAN4NKT.js";import e from"./4KK3EBEB.js";import c from"./P4ZADG4T.js";import"./UG7LOBJE.js";import b from"./OZRUIX7Z.js";import{m as v}from"./4B3QBH5T.js";import"./4IRYZXWR.js";import{k as d,m as o,q as n}from"./IHRGRUHQ.js";import"./KUVOINJC.js";import{e as a}from"./NKG4FLLR.js";import{A as i,F as $,g as x,h as l,x as T,y as u,z as C}from"./IQHNN2RA.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{Wd:f},,,,{a:c,c:g,e:b},{i:y,j:m}])=>{var s={textInput:"text-input",label:"label",labelContainer:"label-container",select:"select"},I=x`.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{display:flex;flex-direction:column;margin-top:var(--arcgis-charts-top-section-margin)}.text-input,.select{margin-bottom:var(--arcgis-charts-inter-section-margin)}.label{display:flex;justify-content:space-between}.label-container{display:flex;flex-direction:column;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}`,p=class extends C{constructor(){super(...arguments),this._messages=A(),this.characterLimitInputElement=T(),this.onModelConfigChange=()=>{this.requestUpdate()},this.resetChartTitleToBeDynamic=()=>{let e=this.model.generateChartTitle();this.model.titleText=e,this.disableResetButtonForChartTitle=!1},this.resetXAxisTitleToBeDynamic=()=>{if(c(this.model)&&b(this.model)){let e=this.model.generateXAxisTitle();this.model.xAxisTitleText=e}this.disableResetButtonForXAxisTitle=!1},this.resetYAxisTitleToBeDynamic=()=>{if(o(this.model)){let e=d(this.model)?this.model.getDefaultXAxisTitleText():this.model.generateYAxisTitle();this.model.setAxisTitleText(e,1)}this.disableResetButtonForYAxisTitle=!1},this.isPartialConfig=!1,this.disableResetButtonForChartTitle=!1,this.disableResetButtonForXAxisTitle=!1,this.disableResetButtonForYAxisTitle=!1,this.isChartTitleInvalid=!1,this.open=!1}static{this.properties={disableResetButtonForChartTitle:16,disableResetButtonForXAxisTitle:16,disableResetButtonForYAxisTitle:16,isChartTitleInvalid:16,messageOverrides:0,model:0,open:5}}static{this.styles=I}load(){this.modelChange(this.model)}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),this.handleResetButtons()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}handleResetButtons(){this.isPartialConfig=f(this.model.config);let e=this.model.generateChartTitle(),t=this.model.titleText;if(this.disableResetButtonForChartTitle=this.isPartialConfig||e===t,c(this.model)&&b(this.model)){let r=this.model.generateXAxisTitle(),h=this.model.xAxisTitleText;this.disableResetButtonForXAxisTitle=this.isPartialConfig||r===h}if(o(this.model)){let r=d(this.model)?this.model.getDefaultXAxisTitleText():this.model.generateYAxisTitle(),h=this.model.getAxisTitleText(1);this.disableResetButtonForYAxisTitle=this.isPartialConfig||r===h}}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}setChartTitle(e){let{value:t}=e.target;this.isChartTitleInvalid=v(t.trim()),this.characterLimitInputElement.value&&y({inputElement:this.characterLimitInputElement.value,status:this.isChartTitleInvalid?m.INVALID:m.IDLE}),this.isChartTitleInvalid||(this.model.titleText=t)}setChartLegendTitle(e){let{value:t}=e.target;t!==void 0&&n(this.model)&&(this.model.legendTitleText=t)}setChartXAxisTitle(e){let{value:t}=e.target;t!==void 0&&c(this.model)&&(this.model.xAxisTitleText=t)}setChartYAxisTitle(e){let{value:t}=e.target;t!==void 0&&o(this.model)&&this.model.setAxisTitleText(t,1)}setChartDescription(e){let{value:t}=e.target;t!==void 0&&(this.model.descriptionText=t)}enableChartTitle(e){let t=e.target.checked;this.model.chartTitleVisibility=t}enableXAxisTitle(e){let t=e.target.checked;g(this.model)&&(this.model.xAxisTitleVisibility=t)}enableYAxisTitle(e){let t=e.target.checked;o(this.model)&&this.model.setAxisTitleVisibility(t,1)}enableLegendTitle(e){let t=e.target.checked;n(this.model)&&(this.model.legendTitleVisibility=t)}enableDescription(e){let t=e.target.checked;this.model.descriptionVisibility=t}legendPositionChange(e){let t=e.target?.selectedItems[0]?.value;n(this.model)&&(this.model.legendPosition=t)}renderLegendPositions(){return n(this.model)?[l`<calcite-combobox-item .value=${a.Right} .heading=${this._messages.legendRightPosition??""} .selected=${this.model.legendPosition===a.Right} icon=right-edge></calcite-combobox-item>`,l`<calcite-combobox-item .value=${a.Left} .heading=${this._messages.legendLeftPosition??""} .selected=${this.model.legendPosition===a.Left} icon=left-edge></calcite-combobox-item>`,l`<calcite-combobox-item .value=${a.Top} .heading=${this._messages.legendTopPosition??""} .selected=${this.model.legendPosition===a.Top} icon=upload-to></calcite-combobox-item>`,l`<calcite-combobox-item .value=${a.Bottom} .heading=${this._messages.legendBottomPosition??""} .selected=${this.model.legendPosition===a.Bottom} icon=download-to></calcite-combobox-item>`]:[]}render(){return l`<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.chartTitle}<div><calcite-button @click=${this.resetChartTitleToBeDynamic} .disabled=${this.disableResetButtonForChartTitle} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button><calcite-switch .checked=${this.model.chartTitleVisibility} @calciteSwitchChange=${this.enableChartTitle}></calcite-switch></div></calcite-label><calcite-input class=${i(s.textInput)} type=text .disabled=${!this.model.chartTitleVisibility} .value=${this.isPartialConfig?"":this.model.titleText} @calciteInputInput=${this.setChartTitle} ${u(this.characterLimitInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.emptyChartTitle} .isInvalid=${this.isChartTitleInvalid}></arcgis-charts-config-invalid-input-message></div>${c(this.model)&&g(this.model)?[l`<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.xAxisTitle}<div><calcite-button @click=${this.resetXAxisTitleToBeDynamic} .disabled=${this.disableResetButtonForXAxisTitle} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button><calcite-switch .checked=${this.model.xAxisTitleVisibility} @calciteSwitchChange=${this.enableXAxisTitle}></calcite-switch></div></calcite-label><calcite-input class=${i(s.textInput)} type=text .disabled=${!this.model.xAxisTitleVisibility} .value=${this.isPartialConfig?"":this.model.xAxisTitleText} @calciteInputInput=${this.setChartXAxisTitle}></calcite-input></div>`,o(this.model)?l`<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.yAxisTitle}<div><calcite-button @click=${this.resetYAxisTitleToBeDynamic} .disabled=${this.disableResetButtonForYAxisTitle} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button><calcite-switch .checked=${this.model.getAxisTitleVisibility(1)} @calciteSwitchChange=${this.enableYAxisTitle}></calcite-switch></div></calcite-label><calcite-input class=${i(s.textInput)} tabindex=1 type=text .disabled=${!this.model.getAxisTitleVisibility(1)} .value=${this.model.getAxisTitleText(1)} @calciteInputInput=${this.setChartYAxisTitle}></calcite-input></div>`:null]:null}${n(this.model)?l`<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.legendTitle}<calcite-switch .checked=${this.model.legendTitleVisibility} @calciteSwitchChange=${this.enableLegendTitle}></calcite-switch></calcite-label><calcite-input class=${i(s.textInput)} type=text .disabled=${!this.model.legendTitleVisibility} .value=${this.model.legendTitleText} @calciteInputInput=${this.setChartLegendTitle}></calcite-input></div>`:null}<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.legendPosition}</calcite-label><calcite-combobox clear-disabled label class=${i(s.select)} @calciteComboboxChange=${this.legendPositionChange} selection-mode=single>${this.renderLegendPositions()}</calcite-combobox></div><div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.description}<calcite-switch .checked=${this.model.descriptionVisibility} @calciteSwitchChange=${this.enableDescription}></calcite-switch></calcite-label><calcite-text-area .disabled=${!this.model.descriptionVisibility} .value=${this.model.descriptionText} @calciteTextAreaInput=${this.setChartDescription}></calcite-text-area></div>`}};$("arcgis-charts-config-general",p);return p},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",b,c,e,f,g,h)
2
+ import h from"./FQYL2QII.js";import"./DPJE33GY.js";import{a as A}from"./YTWYYKBB.js";import g from"./BRLYQD3N.js";import f from"./QVKMLR34.js";import e from"./E2QSOYAS.js";import c from"./WW7QVQ6V.js";import"./UG7LOBJE.js";import b from"./UHAXW24Z.js";import{m as v}from"./4B3QBH5T.js";import"./EYIUFDDU.js";import{k as d,m as o,q as n}from"./IHRGRUHQ.js";import"./KUVOINJC.js";import{e as a}from"./NKG4FLLR.js";import{A as i,F as $,g as x,h as l,x as T,y as u,z as C}from"./TWV5ZXEU.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{Wd:f},,,,{a:c,c:g,e:b},{i:y,j:m}])=>{var s={textInput:"text-input",label:"label",labelContainer:"label-container",select:"select"},I=x`.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{display:flex;flex-direction:column;margin-top:var(--arcgis-charts-top-section-margin)}.text-input,.select{margin-bottom:var(--arcgis-charts-inter-section-margin)}.label{display:flex;justify-content:space-between}.label-container{display:flex;flex-direction:column;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}`,p=class extends C{constructor(){super(...arguments),this._messages=A(),this.characterLimitInputElement=T(),this.onModelConfigChange=()=>{this.requestUpdate()},this.resetChartTitleToBeDynamic=()=>{let e=this.model.generateChartTitle();this.model.titleText=e,this.disableResetButtonForChartTitle=!1},this.resetXAxisTitleToBeDynamic=()=>{if(c(this.model)&&b(this.model)){let e=this.model.generateXAxisTitle();this.model.xAxisTitleText=e}this.disableResetButtonForXAxisTitle=!1},this.resetYAxisTitleToBeDynamic=()=>{if(o(this.model)){let e=d(this.model)?this.model.getDefaultXAxisTitleText():this.model.generateYAxisTitle();this.model.setAxisTitleText(e,1)}this.disableResetButtonForYAxisTitle=!1},this.isPartialConfig=!1,this.disableResetButtonForChartTitle=!1,this.disableResetButtonForXAxisTitle=!1,this.disableResetButtonForYAxisTitle=!1,this.isChartTitleInvalid=!1,this.open=!1}static{this.properties={disableResetButtonForChartTitle:16,disableResetButtonForXAxisTitle:16,disableResetButtonForYAxisTitle:16,isChartTitleInvalid:16,messageOverrides:0,model:0,open:5}}static{this.styles=I}load(){this.modelChange(this.model)}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),this.handleResetButtons()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}handleResetButtons(){this.isPartialConfig=f(this.model.config);let e=this.model.generateChartTitle(),t=this.model.titleText;if(this.disableResetButtonForChartTitle=this.isPartialConfig||e===t,c(this.model)&&b(this.model)){let r=this.model.generateXAxisTitle(),h=this.model.xAxisTitleText;this.disableResetButtonForXAxisTitle=this.isPartialConfig||r===h}if(o(this.model)){let r=d(this.model)?this.model.getDefaultXAxisTitleText():this.model.generateYAxisTitle(),h=this.model.getAxisTitleText(1);this.disableResetButtonForYAxisTitle=this.isPartialConfig||r===h}}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}setChartTitle(e){let{value:t}=e.target;this.isChartTitleInvalid=v(t.trim()),this.characterLimitInputElement.value&&y({inputElement:this.characterLimitInputElement.value,status:this.isChartTitleInvalid?m.INVALID:m.IDLE}),this.isChartTitleInvalid||(this.model.titleText=t)}setChartLegendTitle(e){let{value:t}=e.target;t!==void 0&&n(this.model)&&(this.model.legendTitleText=t)}setChartXAxisTitle(e){let{value:t}=e.target;t!==void 0&&c(this.model)&&(this.model.xAxisTitleText=t)}setChartYAxisTitle(e){let{value:t}=e.target;t!==void 0&&o(this.model)&&this.model.setAxisTitleText(t,1)}setChartDescription(e){let{value:t}=e.target;t!==void 0&&(this.model.descriptionText=t)}enableChartTitle(e){let t=e.target.checked;this.model.chartTitleVisibility=t}enableXAxisTitle(e){let t=e.target.checked;g(this.model)&&(this.model.xAxisTitleVisibility=t)}enableYAxisTitle(e){let t=e.target.checked;o(this.model)&&this.model.setAxisTitleVisibility(t,1)}enableLegendTitle(e){let t=e.target.checked;n(this.model)&&(this.model.legendTitleVisibility=t)}enableDescription(e){let t=e.target.checked;this.model.descriptionVisibility=t}legendPositionChange(e){let t=e.target?.selectedItems[0]?.value;n(this.model)&&(this.model.legendPosition=t)}renderLegendPositions(){return n(this.model)?[l`<calcite-combobox-item .value=${a.Right} .heading=${this._messages.legendRightPosition??""} .selected=${this.model.legendPosition===a.Right} icon=right-edge></calcite-combobox-item>`,l`<calcite-combobox-item .value=${a.Left} .heading=${this._messages.legendLeftPosition??""} .selected=${this.model.legendPosition===a.Left} icon=left-edge></calcite-combobox-item>`,l`<calcite-combobox-item .value=${a.Top} .heading=${this._messages.legendTopPosition??""} .selected=${this.model.legendPosition===a.Top} icon=upload-to></calcite-combobox-item>`,l`<calcite-combobox-item .value=${a.Bottom} .heading=${this._messages.legendBottomPosition??""} .selected=${this.model.legendPosition===a.Bottom} icon=download-to></calcite-combobox-item>`]:[]}render(){return l`<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.chartTitle}<div><calcite-button @click=${this.resetChartTitleToBeDynamic} .disabled=${this.disableResetButtonForChartTitle} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button><calcite-switch .checked=${this.model.chartTitleVisibility} @calciteSwitchChange=${this.enableChartTitle}></calcite-switch></div></calcite-label><calcite-input class=${i(s.textInput)} type=text .disabled=${!this.model.chartTitleVisibility} .value=${this.isPartialConfig?"":this.model.titleText} @calciteInputInput=${this.setChartTitle} ${u(this.characterLimitInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.emptyChartTitle} .isInvalid=${this.isChartTitleInvalid}></arcgis-charts-config-invalid-input-message></div>${c(this.model)&&g(this.model)?[l`<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.xAxisTitle}<div><calcite-button @click=${this.resetXAxisTitleToBeDynamic} .disabled=${this.disableResetButtonForXAxisTitle} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button><calcite-switch .checked=${this.model.xAxisTitleVisibility} @calciteSwitchChange=${this.enableXAxisTitle}></calcite-switch></div></calcite-label><calcite-input class=${i(s.textInput)} type=text .disabled=${!this.model.xAxisTitleVisibility} .value=${this.isPartialConfig?"":this.model.xAxisTitleText} @calciteInputInput=${this.setChartXAxisTitle}></calcite-input></div>`,o(this.model)?l`<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.yAxisTitle}<div><calcite-button @click=${this.resetYAxisTitleToBeDynamic} .disabled=${this.disableResetButtonForYAxisTitle} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button><calcite-switch .checked=${this.model.getAxisTitleVisibility(1)} @calciteSwitchChange=${this.enableYAxisTitle}></calcite-switch></div></calcite-label><calcite-input class=${i(s.textInput)} tabindex=1 type=text .disabled=${!this.model.getAxisTitleVisibility(1)} .value=${this.model.getAxisTitleText(1)} @calciteInputInput=${this.setChartYAxisTitle}></calcite-input></div>`:null]:null}${n(this.model)?l`<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.legendTitle}<calcite-switch .checked=${this.model.legendTitleVisibility} @calciteSwitchChange=${this.enableLegendTitle}></calcite-switch></calcite-label><calcite-input class=${i(s.textInput)} type=text .disabled=${!this.model.legendTitleVisibility} .value=${this.model.legendTitleText} @calciteInputInput=${this.setChartLegendTitle}></calcite-input></div>`:null}<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.legendPosition}</calcite-label><calcite-combobox clear-disabled label class=${i(s.select)} @calciteComboboxChange=${this.legendPositionChange} selection-mode=single>${this.renderLegendPositions()}</calcite-combobox></div><div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.description}<calcite-switch .checked=${this.model.descriptionVisibility} @calciteSwitchChange=${this.enableDescription}></calcite-switch></calcite-label><calcite-text-area .disabled=${!this.model.descriptionVisibility} .value=${this.model.descriptionText} @calciteTextAreaInput=${this.setChartDescription}></calcite-text-area></div>`}};$("arcgis-charts-config-general",p);return p},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",b,c,e,f,g,h)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import l from"./W62RV5DB.js";import k from"./KGMCQQHP.js";import j from"./UT5QHTPU.js";import i from"./7RITDPAC.js";import f from"./VHDKHAB6.js";import e from"./CW2ROPNJ.js";import d from"./PNAN4NKT.js";import c from"./4KK3EBEB.js";import b from"./P4ZADG4T.js";import"./UG7LOBJE.js";import a from"./OZRUIX7Z.js";import{B as h,g as x}from"./4B3QBH5T.js";import"./4IRYZXWR.js";import{e as u,f as g}from"./KUVOINJC.js";import{a as p}from"./NKG4FLLR.js";import{k as I}from"./IQHNN2RA.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{Aa:T,D:y,Nc:F,Wd:N,Z:_,aa:f,gd:S,ra:b,ta:V,yb:m},{p:M,q:O,r:w},{c:s},,,j,{b:q},{a:U,b:K,c:D,d:X},,{a:L,b:A,c:G,d:k,e:W,f:B,g:z,h:E,i:R,j:v,k:C}])=>{var $=i=>i.legend?.displayNumericValue??!1,ee=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayNumericValue=i)},ie=i=>i.legend?.displayCategory??!1,te=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayCategory=i)},se=i=>i.legend?.displayPercentage??!1,re=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayPercentage=i)},oe=i=>i.legend?.labelMaxWidth??200,ae=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.labelMaxWidth=i)},ne=i=>i.legend?.valueLabelMaxWidth??200,le=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.valueLabelMaxWidth=i)},ge=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,P=(i,e,t,a)=>{for(var n=ce(e,t),l=i.length-1,c;l>=0;l--)(c=i[l])&&(n=c(e,t,n)||n);return n&&ge(e,t,n),n},d=class extends D{getDisplayNumericValue(){return $(this._config)}setDisplayNumericValue(e){ee(e,this._config)}getDisplayPercentage(){return se(this._config)}setDisplayPercentage(e){re(e,this._config)}getLabelMaxWidth(){return oe(this._config)}setLabelMaxWidth(e){ae(e,this._config)}get valueLabelMaxWidth(){return ne(this._config)}set valueLabelMaxWidth(e){le(e,this._config),this.emitConfigUpdate("valueLabelMaxWidth")}get displayCategory(){return ie(this._config)}set displayCategory(e){te(e,this._config),this.emitConfigUpdate("displayCategory")}};P([s],d.prototype,"setDisplayNumericValue");P([s],d.prototype,"setDisplayPercentage");P([s],d.prototype,"setLabelMaxWidth");var pe=[D];O(d,pe);var de=i=>i.series?.[0]?.innerRadius,fe=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},he=i=>i.series?.[0]?.dataLabelsCharacterLimit,me=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},H=i=>i.series[0]?.startAngle,ue=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},ye=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},_e=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,be=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,Se=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Oe=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,Le=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,ve=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,Ce=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},De=i=>i.series?.[0]?.valuePrefix,Pe=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},Ie=i=>i.series?.[0]?.valueSuffix,xe=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Ve=i=>i.series?.[0]?.percentagePrefix,Te=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},Fe=i=>i.series?.[0]?.percentageSuffix,Ne=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},Me=i=>{let e,t=i.series?.[0];return t?.displayNumericValueOnDataLabel===!0&&t?.displayPercentageOnDataLabel===!0?e=g.Both:t?.displayNumericValueOnDataLabel===!0?e=g.Value:e=g.Percentage,e},we=(i,e)=>{let t=i===g.Value||i===g.Both,a=i===g.Percentage||i===g.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=t,e.series[0].displayPercentageOnDataLabel=a),e.legend&&(e.legend={...e.legend,displayNumericValue:t,displayPercentage:a})},Ae=i=>i.series?.[0]?.alignDataLabels??!1,Ge=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},ke=i=>i.series?.[0]?.dataLabelsInside??!1,We=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},Be=i=>i.series?.[0]?.dataLabelsOffset??10,ze=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},Ee=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Re=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=_(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=_(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},je=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ue=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},Ke=i=>i.series[0]?.ticks?.visible??!1,Xe=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=b(),e.series[0].ticks.visible=i)},qe=i=>i.series[0]?.ticks?.lineSymbol,He=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=b(),e.series[0].ticks.lineSymbol=x(i))},Je=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,Qe=(i,e)=>e.series?.[0]?.slices?.[i]?.label,Ye=(i,e,t)=>{t.series?.[0]?.slices?.[e]&&(t.series[0].slices[e].label=i)},Ze=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,$e=(i,e,t)=>{let a=t.series?.[0]?.slices?.[e]?.fillSymbol;a!==void 0?(a.color=i,a.outline!==void 0?a.outline.color=i:a.outline={type:h.SLS,color:i}):t.series?.[0]?.slices?.[e]!==void 0&&(t.series[0].slices[e].fillSymbol={type:h.SFS,color:i,outline:{type:h.SLS,color:i}})},ei=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),J=(i,e)=>{e.series?.[0]?.slices?.sort((t,a)=>i.findIndex(n=>t.sliceId===n)-i.findIndex(n=>a.sliceId===n))},ii=i=>i.series?.[0]?.sliceGrouping,Q=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},Y=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,ti=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:y.defaultGroupOfSlicesId,percentageThreshold:i}},si=i=>i.series?.[0]?.slices,Z=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},ri=i=>{Z(void 0,i),Q({sliceId:y.defaultGroupOfSlicesId,percentageThreshold:Y(i)??0},i)},oi=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ai=(i,e)=>e.series[0]?.slices?.findIndex(t=>t.sliceId===i),ni=i=>i.series[0]?.slices?.length??0,li=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,o=(i,e,t,a)=>{for(var n=gi(e,t),l=i.length-1,c;l>=0;l--)(c=i[l])&&(n=c(e,t,n)||n);return n&&li(e,t,n),n},r=class extends j{constructor(){super(...arguments),this._chartType=p.PieSeries,this._mode=u.Category,this._groupedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:t}=e;if(t!==void 0){let a=S(t.series);this._mode=a!==m.PieFromFields?u.Category:u.Fields}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return L(this._config)}set category(e){(!N(this._config)||e.trim()!=="")&&(z({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return G(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||M(this.layerInfo.layerFieldsInfo,e)?(R({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):I("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return k(this._config,this._mode)}set aggregationType(e){E({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return A(this._config,this._mode)}setSortOrder(e,t){B({newSortOrderKind:e,config:this._config,orderByList:t})}get orderByList(){return v(this._config,this._mode)}set orderByList(e){C({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(){let e=L(this._config),t=S(this._config.series),a=[];return t===m.PieFromFields?a=this.numericFields:e.trim()!==""&&t===m.PieFromCategory&&(a=await w({category:e,config:this._config,layerInfo:this.layerInfo})),a}moveCustomSortValuesInOrderByList(e,t){let a=v(this._config,this._mode),[n]=a.splice(e,1);a.splice(t,0,n),C({values:a,config:this._config,mode:this._mode})}get ticksSymbol(){return qe(this._config)}set ticksSymbol(e){He(e,this._config)}get slices(){return si(this._config)}set slices(e){Z(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return ii(this._config)}set sliceGrouping(e){Q(e,this._config)}get innerRadiusSize(){return de(this._config)??0}set innerRadiusSize(e){fe(e,this._config)}get groupingThreshold(){return Y(this._config)??0}set groupingThreshold(e){ti(e,this._config)}get labelCharacterLimit(){return he(this._config)??null}set labelCharacterLimit(e){me(e,this._config)}get decimalPlaces(){return Ee(this._config)??1}set decimalPlaces(e){Re(e,this._config)}get displayType(){return Me(this._config)}set displayType(e){we(e,this._config)}generateDefaultConfig(){let e=T(this.commonStrings);return e.series=[V(this.commonStrings,F(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return Je(e,this._config)}getSliceName(e){return Qe(e,this._config)}setSliceName(e,t){Ye(e,t,this._config)}getSliceColor(e){return Ze(e,this._config)}setSliceColor(e,t){$e(e,t,this._config)}get orderOfSlices(){return ei(this._config)}set orderOfSlices(e){e!==void 0&&J(e,this._config)}moveSeries(e,t){let a=this.orderOfSlices;if(a!==void 0){let[n]=a.splice(e,1);a.splice(t,0,n),J(a,this._config)}}getSliceId(e){return oi(e,this._config)}getSliceIndex(e){return ai(e,this._config)}getSlicesLength(){return ni(this._config)}resetSlices(){ri(this._config)}resetAvailable(){let e=!this.colorMatch,t=!1,a=this.slices?.length??0;for(let n=0;n<a;n+=1){let l=this.getOriginalSliceName(n),c=this.getSliceName(n);if(l!==void 0&&l?.toString()!==c?.toString()){t=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(t=!0),e||t}get ticksVisibility(){return Ke(this._config)}set ticksVisibility(e){Xe(e,this._config)}get startAngle(){return H(this._config)}set startAngle(e){ue(e,this._config)}get endAngle(){return H(this._config)}set endAngle(e){ye(e,this._config)}get displayCategoryOnDataLabel(){return be(this._config)}set displayCategoryOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayCategoryOnDataLabel=e,this.emitConfigUpdate("displayCategoryOnDataLabel")})}get displayCategoryValueOnTooltip(){return _e(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return Se(this._config)}set displayNumericValueOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayNumericValueOnDataLabel=e,this.emitConfigUpdate("displayNumericValueOnDataLabel")})}get displayPercentageOnDataLabel(){return Oe(this._config)}set displayPercentageOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayPercentageOnDataLabel=e,this.emitConfigUpdate("displayPercentageOnDataLabel")})}get displayNumericValueOnTooltip(){return Le(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return ve(this._config)}set displayPercentageOnTooltip(e){Ce(e,this._config)}get valuePrefix(){return De(this._config)}set valuePrefix(e){Pe(e,this._config)}get valueSuffix(){return Ie(this._config)}set valueSuffix(e){xe(e,this._config)}get percentagePrefix(){return Ve(this._config)}set percentagePrefix(e){Te(e,this._config)}get percentageSuffix(){return Fe(this._config)}set percentageSuffix(e){Ne(e,this._config)}get dataLabelsOffset(){return Be(this._config)}set dataLabelsOffset(e){ze(e,this._config)}get alignDataLabels(){return Ae(this._config)}set alignDataLabels(e){Ge(e,this._config)}get dataLabelsInside(){return ke(this._config)}set dataLabelsInside(e){We(e,this._config)}get optimizeDataLabelsOverlapping(){return je(this._config)}set optimizeDataLabelsOverlapping(e){Ue(e,this._config)}generateChartTitle(){return W({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};o([s],r.prototype,"category");o([s],r.prototype,"numericFields");o([s],r.prototype,"aggregationType");o([s],r.prototype,"setSortOrder");o([s],r.prototype,"orderByList");o([s],r.prototype,"mode");o([s],r.prototype,"moveCustomSortValuesInOrderByList");o([s],r.prototype,"ticksSymbol");o([s],r.prototype,"slices");o([s],r.prototype,"groupedSliceIds");o([s],r.prototype,"sliceGrouping");o([s],r.prototype,"innerRadiusSize");o([s],r.prototype,"groupingThreshold");o([s],r.prototype,"labelCharacterLimit");o([s],r.prototype,"decimalPlaces");o([s],r.prototype,"displayType");o([s],r.prototype,"setSliceName");o([s],r.prototype,"setSliceColor");o([s],r.prototype,"orderOfSlices");o([s],r.prototype,"moveSeries");o([s],r.prototype,"resetSlices");o([s],r.prototype,"ticksVisibility");o([s],r.prototype,"startAngle");o([s],r.prototype,"endAngle");o([s],r.prototype,"displayCategoryValueOnTooltip");o([s],r.prototype,"displayNumericValueOnTooltip");o([s],r.prototype,"displayPercentageOnTooltip");o([s],r.prototype,"valuePrefix");o([s],r.prototype,"valueSuffix");o([s],r.prototype,"percentagePrefix");o([s],r.prototype,"percentageSuffix");o([s],r.prototype,"dataLabelsOffset");o([s],r.prototype,"alignDataLabels");o([s],r.prototype,"dataLabelsInside");o([s],r.prototype,"optimizeDataLabelsOverlapping");var ci=[d,X,U,K,q];O(r,ci);return r},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c,d,e,f,i,j,k,l)
2
+ import l from"./K6K6BLVE.js";import k from"./N5JAK3CR.js";import j from"./YZPO3O6D.js";import i from"./2HNT7UIF.js";import f from"./5P2PCO4T.js";import e from"./6XSUNJFU.js";import d from"./QVKMLR34.js";import c from"./E2QSOYAS.js";import b from"./WW7QVQ6V.js";import"./UG7LOBJE.js";import a from"./UHAXW24Z.js";import{B as h,g as x}from"./4B3QBH5T.js";import"./EYIUFDDU.js";import{e as u,f as g}from"./KUVOINJC.js";import{a as p}from"./NKG4FLLR.js";import{k as I}from"./TWV5ZXEU.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{Aa:T,D:y,Nc:F,Wd:N,Z:_,aa:f,gd:S,ra:b,ta:V,yb:m},{p:M,q:O,r:w},{c:s},,,j,{b:q},{a:U,b:K,c:D,d:X},,{a:L,b:A,c:G,d:k,e:W,f:B,g:z,h:E,i:R,j:v,k:C}])=>{var $=i=>i.legend?.displayNumericValue??!1,ee=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayNumericValue=i)},ie=i=>i.legend?.displayCategory??!1,te=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayCategory=i)},se=i=>i.legend?.displayPercentage??!1,re=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayPercentage=i)},oe=i=>i.legend?.labelMaxWidth??200,ae=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.labelMaxWidth=i)},ne=i=>i.legend?.valueLabelMaxWidth??200,le=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.valueLabelMaxWidth=i)},ge=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,P=(i,e,t,a)=>{for(var n=ce(e,t),l=i.length-1,c;l>=0;l--)(c=i[l])&&(n=c(e,t,n)||n);return n&&ge(e,t,n),n},d=class extends D{getDisplayNumericValue(){return $(this._config)}setDisplayNumericValue(e){ee(e,this._config)}getDisplayPercentage(){return se(this._config)}setDisplayPercentage(e){re(e,this._config)}getLabelMaxWidth(){return oe(this._config)}setLabelMaxWidth(e){ae(e,this._config)}get valueLabelMaxWidth(){return ne(this._config)}set valueLabelMaxWidth(e){le(e,this._config),this.emitConfigUpdate("valueLabelMaxWidth")}get displayCategory(){return ie(this._config)}set displayCategory(e){te(e,this._config),this.emitConfigUpdate("displayCategory")}};P([s],d.prototype,"setDisplayNumericValue");P([s],d.prototype,"setDisplayPercentage");P([s],d.prototype,"setLabelMaxWidth");var pe=[D];O(d,pe);var de=i=>i.series?.[0]?.innerRadius,fe=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},he=i=>i.series?.[0]?.dataLabelsCharacterLimit,me=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},H=i=>i.series[0]?.startAngle,ue=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},ye=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},_e=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,be=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,Se=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Oe=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,Le=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,ve=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,Ce=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},De=i=>i.series?.[0]?.valuePrefix,Pe=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},Ie=i=>i.series?.[0]?.valueSuffix,xe=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Ve=i=>i.series?.[0]?.percentagePrefix,Te=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},Fe=i=>i.series?.[0]?.percentageSuffix,Ne=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},Me=i=>{let e,t=i.series?.[0];return t?.displayNumericValueOnDataLabel===!0&&t?.displayPercentageOnDataLabel===!0?e=g.Both:t?.displayNumericValueOnDataLabel===!0?e=g.Value:e=g.Percentage,e},we=(i,e)=>{let t=i===g.Value||i===g.Both,a=i===g.Percentage||i===g.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=t,e.series[0].displayPercentageOnDataLabel=a),e.legend&&(e.legend={...e.legend,displayNumericValue:t,displayPercentage:a})},Ae=i=>i.series?.[0]?.alignDataLabels??!1,Ge=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},ke=i=>i.series?.[0]?.dataLabelsInside??!1,We=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},Be=i=>i.series?.[0]?.dataLabelsOffset??10,ze=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},Ee=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Re=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=_(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=_(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},je=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ue=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},Ke=i=>i.series[0]?.ticks?.visible??!1,Xe=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=b(),e.series[0].ticks.visible=i)},qe=i=>i.series[0]?.ticks?.lineSymbol,He=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=b(),e.series[0].ticks.lineSymbol=x(i))},Je=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,Qe=(i,e)=>e.series?.[0]?.slices?.[i]?.label,Ye=(i,e,t)=>{t.series?.[0]?.slices?.[e]&&(t.series[0].slices[e].label=i)},Ze=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,$e=(i,e,t)=>{let a=t.series?.[0]?.slices?.[e]?.fillSymbol;a!==void 0?(a.color=i,a.outline!==void 0?a.outline.color=i:a.outline={type:h.SLS,color:i}):t.series?.[0]?.slices?.[e]!==void 0&&(t.series[0].slices[e].fillSymbol={type:h.SFS,color:i,outline:{type:h.SLS,color:i}})},ei=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),J=(i,e)=>{e.series?.[0]?.slices?.sort((t,a)=>i.findIndex(n=>t.sliceId===n)-i.findIndex(n=>a.sliceId===n))},ii=i=>i.series?.[0]?.sliceGrouping,Q=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},Y=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,ti=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:y.defaultGroupOfSlicesId,percentageThreshold:i}},si=i=>i.series?.[0]?.slices,Z=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},ri=i=>{Z(void 0,i),Q({sliceId:y.defaultGroupOfSlicesId,percentageThreshold:Y(i)??0},i)},oi=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ai=(i,e)=>e.series[0]?.slices?.findIndex(t=>t.sliceId===i),ni=i=>i.series[0]?.slices?.length??0,li=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,o=(i,e,t,a)=>{for(var n=gi(e,t),l=i.length-1,c;l>=0;l--)(c=i[l])&&(n=c(e,t,n)||n);return n&&li(e,t,n),n},r=class extends j{constructor(){super(...arguments),this._chartType=p.PieSeries,this._mode=u.Category,this._groupedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:t}=e;if(t!==void 0){let a=S(t.series);this._mode=a!==m.PieFromFields?u.Category:u.Fields}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return L(this._config)}set category(e){(!N(this._config)||e.trim()!=="")&&(z({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return G(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||M(this.layerInfo.layerFieldsInfo,e)?(R({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):I("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return k(this._config,this._mode)}set aggregationType(e){E({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return A(this._config,this._mode)}setSortOrder(e,t){B({newSortOrderKind:e,config:this._config,orderByList:t})}get orderByList(){return v(this._config,this._mode)}set orderByList(e){C({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(){let e=L(this._config),t=S(this._config.series),a=[];return t===m.PieFromFields?a=this.numericFields:e.trim()!==""&&t===m.PieFromCategory&&(a=await w({category:e,config:this._config,layerInfo:this.layerInfo})),a}moveCustomSortValuesInOrderByList(e,t){let a=v(this._config,this._mode),[n]=a.splice(e,1);a.splice(t,0,n),C({values:a,config:this._config,mode:this._mode})}get ticksSymbol(){return qe(this._config)}set ticksSymbol(e){He(e,this._config)}get slices(){return si(this._config)}set slices(e){Z(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return ii(this._config)}set sliceGrouping(e){Q(e,this._config)}get innerRadiusSize(){return de(this._config)??0}set innerRadiusSize(e){fe(e,this._config)}get groupingThreshold(){return Y(this._config)??0}set groupingThreshold(e){ti(e,this._config)}get labelCharacterLimit(){return he(this._config)??null}set labelCharacterLimit(e){me(e,this._config)}get decimalPlaces(){return Ee(this._config)??1}set decimalPlaces(e){Re(e,this._config)}get displayType(){return Me(this._config)}set displayType(e){we(e,this._config)}generateDefaultConfig(){let e=T(this.commonStrings);return e.series=[V(this.commonStrings,F(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return Je(e,this._config)}getSliceName(e){return Qe(e,this._config)}setSliceName(e,t){Ye(e,t,this._config)}getSliceColor(e){return Ze(e,this._config)}setSliceColor(e,t){$e(e,t,this._config)}get orderOfSlices(){return ei(this._config)}set orderOfSlices(e){e!==void 0&&J(e,this._config)}moveSeries(e,t){let a=this.orderOfSlices;if(a!==void 0){let[n]=a.splice(e,1);a.splice(t,0,n),J(a,this._config)}}getSliceId(e){return oi(e,this._config)}getSliceIndex(e){return ai(e,this._config)}getSlicesLength(){return ni(this._config)}resetSlices(){ri(this._config)}resetAvailable(){let e=!this.colorMatch,t=!1,a=this.slices?.length??0;for(let n=0;n<a;n+=1){let l=this.getOriginalSliceName(n),c=this.getSliceName(n);if(l!==void 0&&l?.toString()!==c?.toString()){t=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(t=!0),e||t}get ticksVisibility(){return Ke(this._config)}set ticksVisibility(e){Xe(e,this._config)}get startAngle(){return H(this._config)}set startAngle(e){ue(e,this._config)}get endAngle(){return H(this._config)}set endAngle(e){ye(e,this._config)}get displayCategoryOnDataLabel(){return be(this._config)}set displayCategoryOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayCategoryOnDataLabel=e,this.emitConfigUpdate("displayCategoryOnDataLabel")})}get displayCategoryValueOnTooltip(){return _e(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return Se(this._config)}set displayNumericValueOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayNumericValueOnDataLabel=e,this.emitConfigUpdate("displayNumericValueOnDataLabel")})}get displayPercentageOnDataLabel(){return Oe(this._config)}set displayPercentageOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayPercentageOnDataLabel=e,this.emitConfigUpdate("displayPercentageOnDataLabel")})}get displayNumericValueOnTooltip(){return Le(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return ve(this._config)}set displayPercentageOnTooltip(e){Ce(e,this._config)}get valuePrefix(){return De(this._config)}set valuePrefix(e){Pe(e,this._config)}get valueSuffix(){return Ie(this._config)}set valueSuffix(e){xe(e,this._config)}get percentagePrefix(){return Ve(this._config)}set percentagePrefix(e){Te(e,this._config)}get percentageSuffix(){return Fe(this._config)}set percentageSuffix(e){Ne(e,this._config)}get dataLabelsOffset(){return Be(this._config)}set dataLabelsOffset(e){ze(e,this._config)}get alignDataLabels(){return Ae(this._config)}set alignDataLabels(e){Ge(e,this._config)}get dataLabelsInside(){return ke(this._config)}set dataLabelsInside(e){We(e,this._config)}get optimizeDataLabelsOverlapping(){return je(this._config)}set optimizeDataLabelsOverlapping(e){Ue(e,this._config)}generateChartTitle(){return W({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};o([s],r.prototype,"category");o([s],r.prototype,"numericFields");o([s],r.prototype,"aggregationType");o([s],r.prototype,"setSortOrder");o([s],r.prototype,"orderByList");o([s],r.prototype,"mode");o([s],r.prototype,"moveCustomSortValuesInOrderByList");o([s],r.prototype,"ticksSymbol");o([s],r.prototype,"slices");o([s],r.prototype,"groupedSliceIds");o([s],r.prototype,"sliceGrouping");o([s],r.prototype,"innerRadiusSize");o([s],r.prototype,"groupingThreshold");o([s],r.prototype,"labelCharacterLimit");o([s],r.prototype,"decimalPlaces");o([s],r.prototype,"displayType");o([s],r.prototype,"setSliceName");o([s],r.prototype,"setSliceColor");o([s],r.prototype,"orderOfSlices");o([s],r.prototype,"moveSeries");o([s],r.prototype,"resetSlices");o([s],r.prototype,"ticksVisibility");o([s],r.prototype,"startAngle");o([s],r.prototype,"endAngle");o([s],r.prototype,"displayCategoryValueOnTooltip");o([s],r.prototype,"displayNumericValueOnTooltip");o([s],r.prototype,"displayPercentageOnTooltip");o([s],r.prototype,"valuePrefix");o([s],r.prototype,"valueSuffix");o([s],r.prototype,"percentagePrefix");o([s],r.prototype,"percentageSuffix");o([s],r.prototype,"dataLabelsOffset");o([s],r.prototype,"alignDataLabels");o([s],r.prototype,"dataLabelsInside");o([s],r.prototype,"optimizeDataLabelsOverlapping");var ci=[d,X,U,K,q];O(r,ci);return r},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c,d,e,f,i,j,k,l)
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/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,gt=Symbol(),Rt=new WeakMap,k=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==gt)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=Rt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Rt.set(e,t))}return t}toString(){return this.cssText}},Mt=o=>new k(typeof o=="string"?o:o+"",void 0,gt),be=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,r,i)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[i+1],o[0]);return new k(e,o,gt)},It=(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"),r=Y.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},vt=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Mt(e)})(o):o;var{is:_e,defineProperty:Ae,getOwnPropertyDescriptor:Ce,getOwnPropertyNames:we,getOwnPropertySymbols:Oe,getPrototypeOf:Te}=Object,tt=globalThis,kt=tt.trustedTypes,Se=kt?kt.emptyScript:"",Pe=tt.reactiveElementPolyfillSupport,j=(o,t)=>o,X={toAttribute(o,t){switch(t){case Boolean:o=o?Se: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}},H=(o,t)=>!_e(o,t),jt={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:H};Symbol.metadata??=Symbol("metadata"),tt.litPropertyMetadata??=new WeakMap;var _=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=jt){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(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&Ae(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){let{get:r,set:i}=Ce(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:r,set(n){let a=r?.call(this);i?.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??jt}static _$Ei(){if(this.hasOwnProperty(j("elementProperties")))return;let t=Te(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(j("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(j("properties"))){let e=this.properties,s=[...we(e),...Oe(e)];for(let r of s)this.createProperty(r,e[r])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,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 r of s)e.unshift(vt(r))}else t!==void 0&&e.push(vt(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 It(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),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){let i=(s.converter?.toAttribute!==void 0?s.converter:X).toAttribute(e,s.type);this._$Em=t,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){let s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let i=s.getPropertyOptions(r),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:X;this._$Em=r;let a=n.fromAttribute(e,i.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,e,s,r=!1,i){if(t!==void 0){let n=this.constructor;if(r===!1&&(i=this[t]),s??=n.getPropertyOptions(t),!((s.hasChanged??H)(i,e)||s.useDefault&&s.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:r,wrapped:i},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),r===!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[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[r,i]of s){let{wrapped:n}=i,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,i,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){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[j("elementProperties")]=new Map,_[j("finalized")]=new Map,Pe?.({ReactiveElement:_}),(tt.reactiveElementVersions??=[]).push("2.1.2");var $t=globalThis,Ht=o=>o,et=$t.trustedTypes,Vt=et?et.createPolicy("lit-html",{createHTML:o=>o}):void 0,bt="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,_t="?"+A,Ne=`<${_t}>`,T=document,z=()=>T.createComment(""),B=o=>o===null||typeof o!="object"&&typeof o!="function",At=Array.isArray,Gt=o=>At(o)||typeof o?.[Symbol.iterator]=="function",Et=`[
3
3
  \f\r]`,V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zt=/-->/g,Bt=/>/g,w=RegExp(`>|${Et}(?:([^\\s"'>=/]+)(${Et}*=${Et}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Wt=/'/g,Ft=/"/g,Kt=/^(?:script|style|textarea|title)$/i,Ct=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),us=Ct(1),fs=Ct(2),ms=Ct(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),qt=new WeakMap,O=T.createTreeWalker(T,129);function Qt(o,t){if(!At(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}var Jt=(o,t)=>{let e=o.length-1,s=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=V;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===V?u[1]==="!--"?n=zt:u[1]!==void 0?n=Bt:u[2]!==void 0?(Kt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=r??V,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,l=u[1],n=u[3]===void 0?w:u[3]==='"'?Ft:Wt):n===Ft||n===Wt?n=w:n===zt||n===Bt?n=V:(n=w,r=void 0);let g=n===w&&o[a+1].startsWith("/>")?" ":"";i+=n===V?c+Ne:h>=0?(s.push(l),c.slice(0,h)+bt+c.slice(h)+A+g):c+A+(h===-2?a:g)}return[Qt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},W=class o{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0,a=t.length-1,c=this.parts,[l,u]=Jt(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(;(r=O.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(bt)){let y=u[n++],g=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:i,name:C[2],strings:g,ctor:C[1]==="."?ot:C[1]==="?"?rt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:i}),r.removeAttribute(h));if(Kt.test(r.tagName)){let h=r.textContent.split(A),y=h.length-1;if(y>0){r.textContent=et?et.emptyScript:"";for(let g=0;g<y;g++)r.append(h[g],z()),O.nextNode(),c.push({type:2,index:++i});r.append(h[y],z())}}}else if(r.nodeType===8)if(r.data===_t)c.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:i}),h+=A.length-1}i++}}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 r=s!==void 0?e._$Co?.[s]:e._$Cl,i=B(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(o),r._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=r:e._$Cl=r),r!==void 0&&(t=S(o,r._$AS(o,t.values),r,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,r=(t?.creationScope??T).importNode(e,!0);O.currentNode=r;let i=O.nextNode(),n=0,a=0,c=s[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new U(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new nt(i,this,t)),this._$AV.push(l),c=s[++a]}n!==c?.index&&(i=O.nextNode(),n++)}return O.currentNode=T,r}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++}},U=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=r?.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),B(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):Gt(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&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=W.createElement(Qt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new st(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=qt.get(t.strings);return e===void 0&&qt.set(t.strings,e=new W(t)),e}k(t){At(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,r=0;for(let i of t)r===e.length?e.push(s=new o(this.O(z()),this.O(z()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=Ht(t).nextSibling;Ht(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,r,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,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,r){let i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=S(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),n||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}n&&!r&&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}},rt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,r=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==d&&(s===d||r);r&&this.element.removeEventListener(this.name,this,s),i&&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)}},nt=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)}},Yt={M:bt,P:A,A:_t,C:1,L:Jt,R:st,D:Gt,V:S,I:U,H:P,N:rt,U:it,B:ot,F:nt},De=$t.litHtmlPolyfillSupport;De?.(W,U),($t.litHtmlVersions??=[]).push("3.3.2");var at=(o,t,e)=>{let s=e?.renderBefore??t,r=s._$litPart$;if(r===void 0){let i=e?.renderBefore??null;s._$litPart$=r=new U(t.insertBefore(z(),i),i,void 0,e??{})}return r._$AI(o),r};var wt=globalThis,$=class extends _{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}};$._$litElement$=!0,$.finalized=!0,wt.litElementHydrateSupport?.({LitElement:$});var xe=wt.litElementPolyfillSupport;xe?.({LitElement:$});(wt.litElementVersions??=[]).push("4.2.2");var Zt=new Set,Xt;var te=o=>typeof o=="string"?o:"el"in o?o.el.localName:"localName"in o?o.localName:o.declaredClass,Ss=(o,t,e,s)=>{let r=te(t);if(s?.once){let n=`${o}${r}${e}`;if(Zt.has(n))return;Zt.add(n)}let i;if(s?.detail){i={};for(let[n,a]of Object.entries(s.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(i,n,{get(){return c.deref()}})}else i[n]=a;Xt?.log.interceptors?.forEach(n=>n(o,r,e,i)),console[o](`[${r}]: ${e}`,i)}else Xt?.log.interceptors?.forEach(n=>n(o,r,e)),console[o](`[${r}]: ${e}`)},ee=o=>{let t=`[${te(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)}},F=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var G=Symbol.for("controller"),Le=o=>typeof o=="object"&&o!==null&&(G in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Ds=o=>typeof o?.then=="function";var q,D=o=>{q!==o&&(q=o,queueMicrotask(()=>q===o?q=void 0:0))},K=o=>q,N=[],se=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},oe=()=>N,R,xs=o=>{R!==o&&(R=o,queueMicrotask(()=>R===o?R=void 0:0))},Ue=()=>{let o=R;return R=void 0,o},re=async(o,t)=>{let e=lt(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(r=>t(r,s))}return e.exports},ie=async o=>{let t=lt(o);return await t.ready,t},lt=o=>{let e=K().manager.X(o);if(e!==void 0)return e;if(Le(o))return o;let s=Ue();if(s!==void 0)return s},ct=!1,Ls=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})}},ne=(o,t)=>{let e=t>Re?Me:t/Ie,s=0,r=setInterval(()=>{s+=e,s>=t&&(clearInterval(r),o())},e);return r},Re=4e3,Me=2e3,Ie=4;var ke=(o,t,e)=>{let s=Object.keys(o),r=s.length;M===void 0&&queueMicrotask(I),M??=new Map;let i=M.get(o);return i===void 0&&(i={callbacks:[],keyCount:r},M.set(o,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(s)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=l=>p(t,null,l),c=n[r];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},M,I=()=>{M?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),M=void 0},je=(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((r,i)=>p(t,void 0,e===i?r:void 0)),e},He=(o=[K(),...oe()],t,e)=>{let s=Array.isArray(o)?o:[o],r=s.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};s.forEach(n=>ke(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of s)if("manager"in n&&n.manager.component===n){je(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},Ve=(o="",t={},e=K())=>{let s={emit:r=>{o===""&&I();let i=new CustomEvent(o,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return o===""&&He(void 0,r=>o=r.key,s),s},ze=Ve.bind(null,""),le;le=G;var Ot=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#i=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[le]=!0,this.#a=[];let e=this,s=t??K(new.target.name);e.#o=s,e.ready=e.P.promise,e.#n=ce(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(se(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#i;#c;#l;#p;#h;#d;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(ee(this.#o))}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?ce(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return D(this.#o),re}get useRef(){return D(this.#o),ie}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.#r.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.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.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await F(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(F)),this.P.resolve(this.#n)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#i.forEach(ae,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(ae,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#h.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#h.push(r.remove)})}};function ae(o){p(o,void 0,this)}var he=Ot,ce=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,r,i){if(!((r==="exports"||r==="_exports")&&r in s&&s[r]===e)&&(r in s||r in Promise.prototype||typeof r=="symbol"))return typeof s=="function"?s[r]:Reflect.get(s,r,i)}},e=new Proxy(o,t);return e};var{I:Be}=Yt,de=o=>o;var ht=o=>o.strings===void 0,pe=()=>document.createComment(""),Ws=(o,t,e)=>{let s=o._$AA.parentNode,r=t===void 0?o._$AB:t._$AA;if(e===void 0){let i=s.insertBefore(pe(),r),n=s.insertBefore(pe(),r);e=new Be(i,n,o,o.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==n._$AU&&e._$AP(c)}if(i!==r||a){let c=e._$AA;for(;c!==i;){let l=de(c).nextSibling;de(s).insertBefore(c,r),c=l}}}return e},Fs=(o,t,e=o)=>(o._$AI(t,e),o),We={},ue=(o,t=We)=>o._$AH=t,qs=o=>o._$AH,Gs=o=>{o._$AR(),o._$AA.remove()};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=o=>(...t)=>({_$litDirective$:o,values:t}),v=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 Q=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),Q(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)},fe=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),Ge(t)}};function Fe(o){this._$AN!==void 0?(dt(this),this._$AM=o,fe(this)):this._$AM=o}function qe(o,t=!1,e=0){let s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let i=e;i<s.length;i++)Q(s[i],!1),dt(s[i]);else s!=null&&(Q(s,!1),dt(s));else Q(this,o)}var Ge=o=>{o.type==m.CHILD&&(o._$AP??=qe,o._$AQ??=Fe)},pt=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),fe(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Q(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 oo=()=>new St,St=class{},Tt=new WeakMap,Pt=E(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=Tt.get(t);e===void 0&&(e=new WeakMap,Tt.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"?Tt.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(Qe,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Qe=/[A-Z]+(?![a-z])|[A-Z]/gu;var go="randomUUID"in crypto;var Dt=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},xt={};function Lt(){}var Je=(o,t)=>function(s,r){if(!globalThis.customElements)return;let n=(r??s??{}).resourcesUrl;n&&o.setAssetPath(n);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,y]=l.split(";"),g=u?u?.split(",").map(Ye):void 0,C=g?.map(([L])=>L),x=class extends Nt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=h?h?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=o}constructor(){!x.B&&(x.B=c(),x.F()),super()}};customElements.define(a,x)}},ft=Object.defineProperty,Ye=o=>{let t=o.split(":");return t.length===1?[t[0],ut(t[0])]:t},Ze=globalThis.HTMLElement??Lt,Nt=class extends Ze{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.#r({a:e.A}):e.B.then(async s=>{await e.K.p,t.#r(await(s.default?.then(r=>typeof r=="function"?{a:r}:r)??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})}#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=Dt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#r(t){let e=this.constructor,s=e.L,r=this.#e,i=Object.values(t).find(h=>h.L===s),n=`${s}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);ts(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let l=document.createElement(n);i.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(Xe,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function Xe([o,t]){this[o]=t}var ts=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends he{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",$.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=()=>void this.#e.destroy();this.#t=ne(t,es)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(r=>r(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)}},es=1e3,yt="autoDestroyDisabled";var ye=E(class extends v{constructor(o){if(super(o),o.type!==m.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 r=!!t[s];r===this.st.has(s)||this.nt?.has(s)||(r?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var ge="important",ss=" !"+ge,ve=E(class extends v{constructor(o){if(super(o),o.type!==m.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 r=t[s];if(r!=null){this.ft.add(s);let i=typeof r=="string"&&r.endsWith(ss);s.includes("-")||i?e.setProperty(s,i?r.slice(0,-11):r,i?ge:""):e[s]=r}}return f}});var os=E(class extends v{constructor(o){if(super(o),o.type!==m.PROPERTY&&o.type!==m.ATTRIBUTE&&o.type!==m.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===m.PROPERTY){if(t===e[s])return f}else if(o.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===m.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return ue(o),t}});var Ee=class o extends ${constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,s=e.N,r=e.K.o,i=o.prototype.shouldUpdate;t.#r=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=Lt,t.shouldUpdate!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===xt;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,r=Array.isArray(e)?e[1]:void 0,i=r?.hasChanged??H,n={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),c:!1,...r,hasChanged(a,c){let l=i(a,c);return n.c=l,l}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,s){let r=this.K,i=super.getPropertyDescriptor(t,e,s);return s.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){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 "${n}"`);i.set.call(this,n??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#r;#i;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(s=>{this.#r.reject(s),setTimeout(()=>{throw s})})):t&&this.requestUpdate()}#c(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,i=t??(s===xt?this.el:this.el.attachShadow(s));if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#l(){let t=this.el.G??Dt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(F(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let s=this.J.filter(r=>!r.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#r.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#i?this.#c(t):super.update(t)}listen(t,e,s){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,s),()=>this.el.removeEventListener(t,r,s)))}listenOn(t,e,s,r){let i=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(G 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=r=>{t=new URL(r,globalThis.location?.href||void 0).href},s={...o,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=s,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(o.defaultAssetPath),s};var Or=o=>typeof o=="object"&&o!=null?ye(o):o,Tr=o=>typeof o=="object"&&o!=null?ve(o):o;var Ut=class extends v{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Pt(this.#e)):Pt(t)}},Sr=E(Ut);var Pr=d;var Nr=o=>{let t=document.createElement("div");return at(o,t),t.firstElementChild};var J=$e({defaultAssetPath:"https://js.arcgis.com/5.0.15/charts-components/",hydratedAttribute:"hydrated"}),{customElement:Rr,getAssetPath:Mr,setAssetPath:Ir}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{Ds as a,D as b,se as c,oe as d,xs as e,Ls as f,be as g,us as h,f as i,d as j,Ss as k,He as l,ze as m,Ot as n,Je as o,m as p,E as q,v as r,Ws as s,Fs as t,ue as u,qs as v,Gs as w,oo as x,Pt as y,Ee as z,Or as A,Tr as B,Pr as C,Nr as D,J as E,Rr as F,Mr as G};
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Wt=/'/g,Ft=/"/g,Kt=/^(?:script|style|textarea|title)$/i,Ct=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),us=Ct(1),fs=Ct(2),ms=Ct(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),qt=new WeakMap,O=T.createTreeWalker(T,129);function Qt(o,t){if(!At(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}var Jt=(o,t)=>{let e=o.length-1,s=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=V;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===V?u[1]==="!--"?n=zt:u[1]!==void 0?n=Bt:u[2]!==void 0?(Kt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=r??V,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,l=u[1],n=u[3]===void 0?w:u[3]==='"'?Ft:Wt):n===Ft||n===Wt?n=w:n===zt||n===Bt?n=V:(n=w,r=void 0);let g=n===w&&o[a+1].startsWith("/>")?" ":"";i+=n===V?c+Ne:h>=0?(s.push(l),c.slice(0,h)+bt+c.slice(h)+A+g):c+A+(h===-2?a:g)}return[Qt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},W=class o{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0,a=t.length-1,c=this.parts,[l,u]=Jt(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(;(r=O.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(bt)){let y=u[n++],g=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:i,name:C[2],strings:g,ctor:C[1]==="."?ot:C[1]==="?"?rt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:i}),r.removeAttribute(h));if(Kt.test(r.tagName)){let h=r.textContent.split(A),y=h.length-1;if(y>0){r.textContent=et?et.emptyScript:"";for(let g=0;g<y;g++)r.append(h[g],z()),O.nextNode(),c.push({type:2,index:++i});r.append(h[y],z())}}}else if(r.nodeType===8)if(r.data===_t)c.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:i}),h+=A.length-1}i++}}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 r=s!==void 0?e._$Co?.[s]:e._$Cl,i=B(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(o),r._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=r:e._$Cl=r),r!==void 0&&(t=S(o,r._$AS(o,t.values),r,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,r=(t?.creationScope??T).importNode(e,!0);O.currentNode=r;let i=O.nextNode(),n=0,a=0,c=s[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new U(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new nt(i,this,t)),this._$AV.push(l),c=s[++a]}n!==c?.index&&(i=O.nextNode(),n++)}return O.currentNode=T,r}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++}},U=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=r?.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),B(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):Gt(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&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=W.createElement(Qt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new st(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=qt.get(t.strings);return e===void 0&&qt.set(t.strings,e=new W(t)),e}k(t){At(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,r=0;for(let i of t)r===e.length?e.push(s=new o(this.O(z()),this.O(z()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=Ht(t).nextSibling;Ht(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,r,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,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,r){let i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=S(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),n||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}n&&!r&&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}},rt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,r=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==d&&(s===d||r);r&&this.element.removeEventListener(this.name,this,s),i&&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)}},nt=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)}},Yt={M:bt,P:A,A:_t,C:1,L:Jt,R:st,D:Gt,V:S,I:U,H:P,N:rt,U:it,B:ot,F:nt},De=$t.litHtmlPolyfillSupport;De?.(W,U),($t.litHtmlVersions??=[]).push("3.3.2");var at=(o,t,e)=>{let s=e?.renderBefore??t,r=s._$litPart$;if(r===void 0){let i=e?.renderBefore??null;s._$litPart$=r=new U(t.insertBefore(z(),i),i,void 0,e??{})}return r._$AI(o),r};var wt=globalThis,$=class extends _{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}};$._$litElement$=!0,$.finalized=!0,wt.litElementHydrateSupport?.({LitElement:$});var xe=wt.litElementPolyfillSupport;xe?.({LitElement:$});(wt.litElementVersions??=[]).push("4.2.2");var Zt=new Set,Xt;var te=o=>typeof o=="string"?o:"el"in o?o.el.localName:"localName"in o?o.localName:o.declaredClass,Ss=(o,t,e,s)=>{let r=te(t);if(s?.once){let n=`${o}${r}${e}`;if(Zt.has(n))return;Zt.add(n)}let i;if(s?.detail){i={};for(let[n,a]of Object.entries(s.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(i,n,{get(){return c.deref()}})}else i[n]=a;Xt?.log.interceptors?.forEach(n=>n(o,r,e,i)),console[o](`[${r}]: ${e}`,i)}else Xt?.log.interceptors?.forEach(n=>n(o,r,e)),console[o](`[${r}]: ${e}`)},ee=o=>{let t=`[${te(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)}},F=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var G=Symbol.for("controller"),Le=o=>typeof o=="object"&&o!==null&&(G in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Ds=o=>typeof o?.then=="function";var q,D=o=>{q!==o&&(q=o,queueMicrotask(()=>q===o?q=void 0:0))},K=o=>q,N=[],se=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},oe=()=>N,R,xs=o=>{R!==o&&(R=o,queueMicrotask(()=>R===o?R=void 0:0))},Ue=()=>{let o=R;return R=void 0,o},re=async(o,t)=>{let e=lt(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(r=>t(r,s))}return e.exports},ie=async o=>{let t=lt(o);return await t.ready,t},lt=o=>{let e=K().manager.X(o);if(e!==void 0)return e;if(Le(o))return o;let s=Ue();if(s!==void 0)return s},ct=!1,Ls=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})}},ne=(o,t)=>{let e=t>Re?Me:t/Ie,s=0,r=setInterval(()=>{s+=e,s>=t&&(clearInterval(r),o())},e);return r},Re=4e3,Me=2e3,Ie=4;var ke=(o,t,e)=>{let s=Object.keys(o),r=s.length;M===void 0&&queueMicrotask(I),M??=new Map;let i=M.get(o);return i===void 0&&(i={callbacks:[],keyCount:r},M.set(o,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(s)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=l=>p(t,null,l),c=n[r];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},M,I=()=>{M?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),M=void 0},je=(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((r,i)=>p(t,void 0,e===i?r:void 0)),e},He=(o=[K(),...oe()],t,e)=>{let s=Array.isArray(o)?o:[o],r=s.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};s.forEach(n=>ke(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of s)if("manager"in n&&n.manager.component===n){je(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},Ve=(o="",t={},e=K())=>{let s={emit:r=>{o===""&&I();let i=new CustomEvent(o,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return o===""&&He(void 0,r=>o=r.key,s),s},ze=Ve.bind(null,""),le;le=G;var Ot=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#i=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[le]=!0,this.#a=[];let e=this,s=t??K(new.target.name);e.#o=s,e.ready=e.P.promise,e.#n=ce(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(se(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#i;#c;#l;#p;#h;#d;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(ee(this.#o))}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?ce(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return D(this.#o),re}get useRef(){return D(this.#o),ie}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.#r.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.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.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await F(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(F)),this.P.resolve(this.#n)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#i.forEach(ae,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(ae,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#h.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#h.push(r.remove)})}};function ae(o){p(o,void 0,this)}var he=Ot,ce=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,r,i){if(!((r==="exports"||r==="_exports")&&r in s&&s[r]===e)&&(r in s||r in Promise.prototype||typeof r=="symbol"))return typeof s=="function"?s[r]:Reflect.get(s,r,i)}},e=new Proxy(o,t);return e};var{I:Be}=Yt,de=o=>o;var ht=o=>o.strings===void 0,pe=()=>document.createComment(""),Ws=(o,t,e)=>{let s=o._$AA.parentNode,r=t===void 0?o._$AB:t._$AA;if(e===void 0){let i=s.insertBefore(pe(),r),n=s.insertBefore(pe(),r);e=new Be(i,n,o,o.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==n._$AU&&e._$AP(c)}if(i!==r||a){let c=e._$AA;for(;c!==i;){let l=de(c).nextSibling;de(s).insertBefore(c,r),c=l}}}return e},Fs=(o,t,e=o)=>(o._$AI(t,e),o),We={},ue=(o,t=We)=>o._$AH=t,qs=o=>o._$AH,Gs=o=>{o._$AR(),o._$AA.remove()};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=o=>(...t)=>({_$litDirective$:o,values:t}),v=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 Q=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),Q(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)},fe=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),Ge(t)}};function Fe(o){this._$AN!==void 0?(dt(this),this._$AM=o,fe(this)):this._$AM=o}function qe(o,t=!1,e=0){let s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let i=e;i<s.length;i++)Q(s[i],!1),dt(s[i]);else s!=null&&(Q(s,!1),dt(s));else Q(this,o)}var Ge=o=>{o.type==m.CHILD&&(o._$AP??=qe,o._$AQ??=Fe)},pt=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),fe(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Q(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 oo=()=>new St,St=class{},Tt=new WeakMap,Pt=E(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=Tt.get(t);e===void 0&&(e=new WeakMap,Tt.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"?Tt.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(Qe,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Qe=/[A-Z]+(?![a-z])|[A-Z]/gu;var go="randomUUID"in crypto;var Dt=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},xt={};function Lt(){}var Je=(o,t)=>function(s,r){if(!globalThis.customElements)return;let n=(r??s??{}).resourcesUrl;n&&o.setAssetPath(n);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,y]=l.split(";"),g=u?u?.split(",").map(Ye):void 0,C=g?.map(([L])=>L),x=class extends Nt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=h?h?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=o}constructor(){!x.B&&(x.B=c(),x.F()),super()}};customElements.define(a,x)}},ft=Object.defineProperty,Ye=o=>{let t=o.split(":");return t.length===1?[t[0],ut(t[0])]:t},Ze=globalThis.HTMLElement??Lt,Nt=class extends Ze{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.#r({a:e.A}):e.B.then(async s=>{await e.K.p,t.#r(await(s.default?.then(r=>typeof r=="function"?{a:r}:r)??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})}#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=Dt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#r(t){let e=this.constructor,s=e.L,r=this.#e,i=Object.values(t).find(h=>h.L===s),n=`${s}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);ts(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let l=document.createElement(n);i.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(Xe,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function Xe([o,t]){this[o]=t}var ts=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends he{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",$.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=()=>void this.#e.destroy();this.#t=ne(t,es)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(r=>r(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)}},es=1e3,yt="autoDestroyDisabled";var ye=E(class extends v{constructor(o){if(super(o),o.type!==m.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 r=!!t[s];r===this.st.has(s)||this.nt?.has(s)||(r?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var ge="important",ss=" !"+ge,ve=E(class extends v{constructor(o){if(super(o),o.type!==m.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 r=t[s];if(r!=null){this.ft.add(s);let i=typeof r=="string"&&r.endsWith(ss);s.includes("-")||i?e.setProperty(s,i?r.slice(0,-11):r,i?ge:""):e[s]=r}}return f}});var os=E(class extends v{constructor(o){if(super(o),o.type!==m.PROPERTY&&o.type!==m.ATTRIBUTE&&o.type!==m.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===m.PROPERTY){if(t===e[s])return f}else if(o.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===m.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return ue(o),t}});var Ee=class o extends ${constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,s=e.N,r=e.K.o,i=o.prototype.shouldUpdate;t.#r=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=Lt,t.shouldUpdate!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===xt;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,r=Array.isArray(e)?e[1]:void 0,i=r?.hasChanged??H,n={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),c:!1,...r,hasChanged(a,c){let l=i(a,c);return n.c=l,l}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,s){let r=this.K,i=super.getPropertyDescriptor(t,e,s);return s.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){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 "${n}"`);i.set.call(this,n??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#r;#i;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(s=>{this.#r.reject(s),setTimeout(()=>{throw s})})):t&&this.requestUpdate()}#c(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,i=t??(s===xt?this.el:this.el.attachShadow(s));if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#l(){let t=this.el.G??Dt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(F(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let s=this.J.filter(r=>!r.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#r.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#i?this.#c(t):super.update(t)}listen(t,e,s){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,s),()=>this.el.removeEventListener(t,r,s)))}listenOn(t,e,s,r){let i=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(G 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=r=>{t=new URL(r,globalThis.location?.href||void 0).href},s={...o,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=s,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(o.defaultAssetPath),s};var Or=o=>typeof o=="object"&&o!=null?ye(o):o,Tr=o=>typeof o=="object"&&o!=null?ve(o):o;var Ut=class extends v{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Pt(this.#e)):Pt(t)}},Sr=E(Ut);var Pr=d;var Nr=o=>{let t=document.createElement("div");return at(o,t),t.firstElementChild};var J=$e({defaultAssetPath:"https://js.arcgis.com/5.0.17/charts-components/",hydratedAttribute:"hydrated"}),{customElement:Rr,getAssetPath:Mr,setAssetPath:Ir}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{Ds as a,D as b,se as c,oe as d,xs as e,Ls as f,be as g,us as h,f as i,d as j,Ss as k,He as l,ze as m,Ot as n,Je as o,m as p,E as q,v as r,Ws as s,Fs as t,ue as u,qs as v,Gs as w,oo as x,Pt as y,Ee as z,Or as A,Tr as B,Pr as C,Nr as D,J as E,Rr as F,Mr as G};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{b as e,c as n,d as o}from"./J7TZPMJS.js";import b from"./ZUVE6PPC.js";import a from"./OZRUIX7Z.js";import{d,q as y}from"./IHRGRUHQ.js";import{a as l,y as S}from"./NKG4FLLR.js";export default $arcgis.t(([,,,,,,,{Ib:p,Rb:x,Wd:C,gd:B,u:m,yb:g},{a:h}])=>{var v=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsCSV,e.ExportAsImage],D=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],w=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],L=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],T=[e.EditChart,e.Legend,e.FilterBySelection,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage],V=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],Z=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],M=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],P=[e.EditChart,e.FilterByExtent,e.ExportAsImage,e.ExportAsCSV];function U(a){switch(a){case l.BarSeries:return v;case l.LineSeries:return D;case l.ComboLineAndBarSeries:return w;case l.PieSeries:return L;case l.HistogramSeries:return V;case l.ScatterSeries:return Z;case l.BoxPlotSeries:return M;case l.GaugeSeries:return P;case l.HeatSeries:return T;default:return[]}}var X=(a,i,t)=>{let r=a.target.assignedNodes().find(c=>"legendToggle"in c),s=S(t?.series);return r&&(r.chartType=s,R({actionBar:r,chartComponent:i,config:t})),r};function R(a){let{actionBar:i,chartComponent:t,config:r,isWarningDisplayed:s}=a,c=x(t.selectionData),f=r?.legend?r.legend.visible??!0:!1;if(i.chartType=S(r?.series),t.enableConfiguration){let F=i.hiddenActions??[];i.hiddenActions=F.filter(I=>I!==e.EditChart)}i.editChartState=t.enableConfiguration?o.Enabled:o.Disabled;let E=r&&p(r.series);i.legendState=E?o.Enabled:o.Disabled;let A=d(t?.model)&&y(t?.model)?t.model.legendVisibility:f;i.legendToggle=E&&A?n.Active:n.Inactive;let b=d(t?.model)&&h(t.model)?t.model.rotatedState:r?.rotated;i.rotateChartToggle=b?n.Active:n.Inactive;let u=B(r?.series??[])===g.PieFromFields;i.filterBySelectionState=!u&&(t.filterBySelection===!0||!c&&t.filterByExtent!==!0)?o.Enabled:o.Disabled,i.filterBySelectionToggle=t.filterBySelection===!0?n.Active:n.Inactive,i.filterByExtentState=t.filterByExtent===!0||t.filterBySelection!==!0?o.Enabled:o.Disabled,i.filterByExtentToggle=t.filterByExtent===!0?n.Active:n.Inactive,i.zoomState=t.filterBySelection?o.Disabled:o.Enabled,i.zoomToggle=t.actionMode===m.Zoom?n.Active:n.Inactive,i.selectionState=t.filterBySelection?o.Disabled:o.Enabled,i.selectionToggle=(t.actionMode??i.actionBarSelectionMode)===i.actionBarSelectionMode?n.Active:n.Inactive,i.clearSelectionState=c?o.Disabled:o.Enabled,i.fullExtentState=t.filterBySelection?o.Disabled:o.Enabled,i.switchSelectionState=t.filterBySelection?o.Disabled:o.Enabled,i.exportActionState=s||C(r)?o.Disabled:o.Enabled}return{a:U,b:X,c:R}},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","intl",a,b)
2
+ import{b as e,c as n,d as o}from"./J7TZPMJS.js";import b from"./QOB46ESO.js";import a from"./UHAXW24Z.js";import{d,q as y}from"./IHRGRUHQ.js";import{a as l,y as S}from"./NKG4FLLR.js";export default $arcgis.t(([,,,,,,,{Ib:p,Rb:x,Wd:C,gd:B,u:m,yb:g},{a:h}])=>{var v=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsCSV,e.ExportAsImage],D=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],w=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],L=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],T=[e.EditChart,e.Legend,e.FilterBySelection,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage],V=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],Z=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],M=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],P=[e.EditChart,e.FilterByExtent,e.ExportAsImage,e.ExportAsCSV];function U(a){switch(a){case l.BarSeries:return v;case l.LineSeries:return D;case l.ComboLineAndBarSeries:return w;case l.PieSeries:return L;case l.HistogramSeries:return V;case l.ScatterSeries:return Z;case l.BoxPlotSeries:return M;case l.GaugeSeries:return P;case l.HeatSeries:return T;default:return[]}}var X=(a,i,t)=>{let r=a.target.assignedNodes().find(c=>"legendToggle"in c),s=S(t?.series);return r&&(r.chartType=s,R({actionBar:r,chartComponent:i,config:t})),r};function R(a){let{actionBar:i,chartComponent:t,config:r,isWarningDisplayed:s}=a,c=x(t.selectionData),f=r?.legend?r.legend.visible??!0:!1;if(i.chartType=S(r?.series),t.enableConfiguration){let F=i.hiddenActions??[];i.hiddenActions=F.filter(I=>I!==e.EditChart)}i.editChartState=t.enableConfiguration?o.Enabled:o.Disabled;let E=r&&p(r.series);i.legendState=E?o.Enabled:o.Disabled;let A=d(t?.model)&&y(t?.model)?t.model.legendVisibility:f;i.legendToggle=E&&A?n.Active:n.Inactive;let b=d(t?.model)&&h(t.model)?t.model.rotatedState:r?.rotated;i.rotateChartToggle=b?n.Active:n.Inactive;let u=B(r?.series??[])===g.PieFromFields;i.filterBySelectionState=!u&&(t.filterBySelection===!0||!c&&t.filterByExtent!==!0)?o.Enabled:o.Disabled,i.filterBySelectionToggle=t.filterBySelection===!0?n.Active:n.Inactive,i.filterByExtentState=t.filterByExtent===!0||t.filterBySelection!==!0?o.Enabled:o.Disabled,i.filterByExtentToggle=t.filterByExtent===!0?n.Active:n.Inactive,i.zoomState=t.filterBySelection?o.Disabled:o.Enabled,i.zoomToggle=t.actionMode===m.Zoom?n.Active:n.Inactive,i.selectionState=t.filterBySelection?o.Disabled:o.Enabled,i.selectionToggle=(t.actionMode??i.actionBarSelectionMode)===i.actionBarSelectionMode?n.Active:n.Inactive,i.clearSelectionState=c?o.Disabled:o.Enabled,i.fullExtentState=t.filterBySelection?o.Disabled:o.Enabled,i.switchSelectionState=t.filterBySelection?o.Disabled:o.Enabled,i.exportActionState=s||C(r)?o.Disabled:o.Enabled}return{a:U,b:X,c:R}},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","intl",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import s from"./HVNHATFT.js";import q from"./NU2VVD6Z.js";import p from"./ZUVE6PPC.js";import o from"./KGMCQQHP.js";import n from"./A5YYXQV6.js";import m from"./UT5QHTPU.js";import l from"./7RITDPAC.js";import k from"./GUE5XBIM.js";import j from"./34RXKT7V.js";import i from"./3OHJETRE.js";import h from"./XRVH23BY.js";import g from"./VHDKHAB6.js";import f from"./CW2ROPNJ.js";import e from"./PNAN4NKT.js";import d from"./4KK3EBEB.js";import b from"./P4ZADG4T.js";import"./UG7LOBJE.js";import a from"./OZRUIX7Z.js";import"./4B3QBH5T.js";import"./4IRYZXWR.js";import"./IHRGRUHQ.js";import{c as r}from"./KUVOINJC.js";import{a as u,b as c}from"./NKG4FLLR.js";import"./IQHNN2RA.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{Da:_,Kb:S,Nc:m},,{c:i},,,,,,,,,,,{e:l},,{$:tt,A:w,B:D,C:I,D:B,E:P,F:k,G:R,H:W,I:U,J:E,K:M,L:y,M:h,N:G,O:H,P:N,Q:Y,R:j,S:V,T:X,U:q,V:z,W:J,X:K,Y:Q,Z:Z,_:$,aa:et,ba:it,ca:ot,da:st,ha:f,r:C,s:T,t:A,u:O,v:x,w:F,x:b,y:v,z:L},{a:rt,b:nt,d:at}])=>{var gt=Object.defineProperty,pt=Object.getOwnPropertyDescriptor,o=(p,t,s,a)=>{for(var n=pt(t,s),g=p.length-1,d;g>=0;g--)(d=p[g])&&(n=d(t,s,n)||n);return n&&gt(t,s,n),n},e=class extends at{constructor(){super(...arguments),this._chartType=u.HeatSeries}generateChartTitle(){return this.layerInfo!==void 0?st(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){let t=this.yTemporalBinning?.unit;return t!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[t]:""}async setup(t){await this.loadConfigFromLayer(t),this.setupLocalProps(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get yAxisField(){return v(this._config)}set yAxisField(t){b({yField:t,config:this._config,layerInfo:this.layerInfo})}get viewType(){return K(this._config)}set viewType(t){this.guardSetterFromAsyncOverwrite(()=>{Q(t,this._config),this.emitConfigUpdate("heatChartViewType")})}get xTemporalBinning(){return w(this._config)}set xTemporalBinning(t){L({commonStrings:this.commonStrings,binning:t,config:this._config})}get yTemporalBinning(){return I(this._config)}set yTemporalBinning(t){D({commonStrings:this.commonStrings,binning:t,config:this._config})}get breaksCount(){return Z(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 hideEmptyRowsAndColumns(){return C(this._config)}set hideEmptyRowsAndColumns(t){T(this._config,t)}get gridLineWidth(){return P(this._config)}set gridLineWidth(t){B(t,this._config)}get gridLineColor(){return R(this._config)}set gridLineColor(t){k(t,this._config)}get seriesName(){return rt(0,this._config)}set seriesName(t){typeof t=="string"&&nt(t,0,this._config)}get heatRulesType(){return O(this._config)}set heatRulesType(t){A(this._config,t)}get gradientRules(){return F(this._config)}set gradientRules(t){x(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=E(this._config);return t!==void 0?[t]:[]}set numericFields(t){let{idField:s}=m(this.layerInfo.layer),a=S(t[0]),n=a?s:t[0];M({field:n,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings});let g=y(this._config);a&&g!==c.Count&&h({aggregationType:c.Count,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get aggregationType(){return y(this._config)}set aggregationType(t){h({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){W(t,this._config)}get nullPolicy(){return G(this._config)}set nullPolicy(t){H(t,this._config)}get emptyCell(){return N(this._config)}set emptyCell(t){this.guardSetterFromAsyncOverwrite(()=>{Y(t,this._config),this.emitConfigUpdate("emptyCell")})}getSortOrder(){return r.Asc}setSortOrder(t,s){}getXAxisSortOrder(){let t=f(this._config)[0];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setXAxisSortOrder(t,s){l(t,this._config,s)}getYAxisSortOrder(){let t=f(this._config)[1];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setYAxisSortOrder(t,s){l(t,this._config,s,!0)}get emptyCellText(){return j(this._config)}set emptyCellText(t){V(t,this._config)}get includeLeapDay(){return X(this._config)}set includeLeapDay(t){this.guardSetterFromAsyncOverwrite(()=>{q(t,this._config),this.emitConfigUpdate("includeLeapDay")})}get firstDayOfWeek(){return ot(this._config)}set firstDayOfWeek(t){this.guardSetterFromAsyncOverwrite(()=>{it(t,this._config),this.emitConfigUpdate("firstDayOfWeek")})}get emptyCellSymbol(){return z(this._config)}set emptyCellSymbol(t){J(t,this._config)}get rotatedState(){return!1}set rotatedState(t){}setAssignToSecondValueAxis(t,s){}set stackedType(t){}set binTemporalData(t){}set nullCategory(t){}generateDefaultConfig(){let t=_(this.commonStrings,m(this.layerInfo.layer).idField);return t.axes?.forEach((s,a)=>{s&&(s.valueFormat={intlOptions:{timeZone:void 0,dateStyle:a>0?"long":"medium"},type:"date"})}),t}};o([i],e.prototype,"yAxisField");o([i],e.prototype,"xTemporalBinning");o([i],e.prototype,"yTemporalBinning");o([i],e.prototype,"hideEmptyRowsAndColumns");o([i],e.prototype,"gridLineWidth");o([i],e.prototype,"gridLineColor");o([i],e.prototype,"seriesName");o([i],e.prototype,"heatRulesType");o([i],e.prototype,"gradientRules");o([i],e.prototype,"setGridLinesSymbol");o([i],e.prototype,"numericFields");o([i],e.prototype,"aggregationType");o([i],e.prototype,"splitByField");o([i],e.prototype,"legendPosition");o([i],e.prototype,"nullPolicy");o([i],e.prototype,"setSortOrder");o([i],e.prototype,"setXAxisSortOrder");o([i],e.prototype,"setYAxisSortOrder");o([i],e.prototype,"emptyCellText");o([i],e.prototype,"firstDayOfWeek");o([i],e.prototype,"emptyCellSymbol");o([i],e.prototype,"rotatedState");o([i],e.prototype,"setAssignToSecondValueAxis");o([i],e.prototype,"stackedType");o([i],e.prototype,"binTemporalData");o([i],e.prototype,"nullCategory");return e},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,s)
2
+ import s from"./SHTKJOFN.js";import q from"./OUQ6UQEV.js";import p from"./QOB46ESO.js";import o from"./N5JAK3CR.js";import n from"./P3ZFMD7J.js";import m from"./YZPO3O6D.js";import l from"./2HNT7UIF.js";import k from"./KK7GHCNA.js";import j from"./M3RSYITQ.js";import i from"./BJSMDFX7.js";import h from"./BRLYQD3N.js";import g from"./5P2PCO4T.js";import f from"./6XSUNJFU.js";import e from"./QVKMLR34.js";import d from"./E2QSOYAS.js";import b from"./WW7QVQ6V.js";import"./UG7LOBJE.js";import a from"./UHAXW24Z.js";import"./4B3QBH5T.js";import"./EYIUFDDU.js";import"./IHRGRUHQ.js";import{c as r}from"./KUVOINJC.js";import{a as u,b as c}from"./NKG4FLLR.js";import"./TWV5ZXEU.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{Da:_,Kb:S,Nc:m},,{c:i},,,,,,,,,,,{e:l},,{$:tt,A:w,B:D,C:I,D:B,E:P,F:k,G:R,H:W,I:U,J:E,K:M,L:y,M:h,N:G,O:H,P:N,Q:Y,R:j,S:V,T:X,U:q,V:z,W:J,X:K,Y:Q,Z:Z,_:$,aa:et,ba:it,ca:ot,da:st,ha:f,r:C,s:T,t:A,u:O,v:x,w:F,x:b,y:v,z:L},{a:rt,b:nt,d:at}])=>{var gt=Object.defineProperty,pt=Object.getOwnPropertyDescriptor,o=(p,t,s,a)=>{for(var n=pt(t,s),g=p.length-1,d;g>=0;g--)(d=p[g])&&(n=d(t,s,n)||n);return n&&gt(t,s,n),n},e=class extends at{constructor(){super(...arguments),this._chartType=u.HeatSeries}generateChartTitle(){return this.layerInfo!==void 0?st(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){let t=this.yTemporalBinning?.unit;return t!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[t]:""}async setup(t){await this.loadConfigFromLayer(t),this.setupLocalProps(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get yAxisField(){return v(this._config)}set yAxisField(t){b({yField:t,config:this._config,layerInfo:this.layerInfo})}get viewType(){return K(this._config)}set viewType(t){this.guardSetterFromAsyncOverwrite(()=>{Q(t,this._config),this.emitConfigUpdate("heatChartViewType")})}get xTemporalBinning(){return w(this._config)}set xTemporalBinning(t){L({commonStrings:this.commonStrings,binning:t,config:this._config})}get yTemporalBinning(){return I(this._config)}set yTemporalBinning(t){D({commonStrings:this.commonStrings,binning:t,config:this._config})}get breaksCount(){return Z(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 hideEmptyRowsAndColumns(){return C(this._config)}set hideEmptyRowsAndColumns(t){T(this._config,t)}get gridLineWidth(){return P(this._config)}set gridLineWidth(t){B(t,this._config)}get gridLineColor(){return R(this._config)}set gridLineColor(t){k(t,this._config)}get seriesName(){return rt(0,this._config)}set seriesName(t){typeof t=="string"&&nt(t,0,this._config)}get heatRulesType(){return O(this._config)}set heatRulesType(t){A(this._config,t)}get gradientRules(){return F(this._config)}set gradientRules(t){x(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=E(this._config);return t!==void 0?[t]:[]}set numericFields(t){let{idField:s}=m(this.layerInfo.layer),a=S(t[0]),n=a?s:t[0];M({field:n,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings});let g=y(this._config);a&&g!==c.Count&&h({aggregationType:c.Count,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get aggregationType(){return y(this._config)}set aggregationType(t){h({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){W(t,this._config)}get nullPolicy(){return G(this._config)}set nullPolicy(t){H(t,this._config)}get emptyCell(){return N(this._config)}set emptyCell(t){this.guardSetterFromAsyncOverwrite(()=>{Y(t,this._config),this.emitConfigUpdate("emptyCell")})}getSortOrder(){return r.Asc}setSortOrder(t,s){}getXAxisSortOrder(){let t=f(this._config)[0];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setXAxisSortOrder(t,s){l(t,this._config,s)}getYAxisSortOrder(){let t=f(this._config)[1];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setYAxisSortOrder(t,s){l(t,this._config,s,!0)}get emptyCellText(){return j(this._config)}set emptyCellText(t){V(t,this._config)}get includeLeapDay(){return X(this._config)}set includeLeapDay(t){this.guardSetterFromAsyncOverwrite(()=>{q(t,this._config),this.emitConfigUpdate("includeLeapDay")})}get firstDayOfWeek(){return ot(this._config)}set firstDayOfWeek(t){this.guardSetterFromAsyncOverwrite(()=>{it(t,this._config),this.emitConfigUpdate("firstDayOfWeek")})}get emptyCellSymbol(){return z(this._config)}set emptyCellSymbol(t){J(t,this._config)}get rotatedState(){return!1}set rotatedState(t){}setAssignToSecondValueAxis(t,s){}set stackedType(t){}set binTemporalData(t){}set nullCategory(t){}generateDefaultConfig(){let t=_(this.commonStrings,m(this.layerInfo.layer).idField);return t.axes?.forEach((s,a)=>{s&&(s.valueFormat={intlOptions:{timeZone:void 0,dateStyle:a>0?"long":"medium"},type:"date"})}),t}};o([i],e.prototype,"yAxisField");o([i],e.prototype,"xTemporalBinning");o([i],e.prototype,"yTemporalBinning");o([i],e.prototype,"hideEmptyRowsAndColumns");o([i],e.prototype,"gridLineWidth");o([i],e.prototype,"gridLineColor");o([i],e.prototype,"seriesName");o([i],e.prototype,"heatRulesType");o([i],e.prototype,"gradientRules");o([i],e.prototype,"setGridLinesSymbol");o([i],e.prototype,"numericFields");o([i],e.prototype,"aggregationType");o([i],e.prototype,"splitByField");o([i],e.prototype,"legendPosition");o([i],e.prototype,"nullPolicy");o([i],e.prototype,"setSortOrder");o([i],e.prototype,"setXAxisSortOrder");o([i],e.prototype,"setYAxisSortOrder");o([i],e.prototype,"emptyCellText");o([i],e.prototype,"firstDayOfWeek");o([i],e.prototype,"emptyCellSymbol");o([i],e.prototype,"rotatedState");o([i],e.prototype,"setAssignToSecondValueAxis");o([i],e.prototype,"stackedType");o([i],e.prototype,"binTemporalData");o([i],e.prototype,"nullCategory");return e},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,s)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{A as e,F as a,g as s,h as l,z as c}from"./IQHNN2RA.js";import"./OR4HXHSY.js";var t={fieldSelectButtonSection:"field-select-btn-section",fieldSelectButton:"field-select-btn",fieldSelectButtonText:"field-select-btn-text",fieldSelectButtonIcon:"field-select-btn-icon",fieldSelectButtonInvalid:"field-select-btn-invalid"},d=s`.field-select-btn-section{background-color:var(--arcgis-charts-input-background);min-width:100%}.field-select-btn{background:var(--arcgis-charts-background-clear);border:1px solid;border-radius:var(--arcgis-charts-border-radius);display:flex;align-items:center;justify-content:space-between;padding:var(--arcgis-charts-side-spacing-half) var(--arcgis-charts-side-spacing-quarter);cursor:pointer;width:100%;text-align:unset}.field-select-btn:not(.field-select-btn-invalid){border-color:var(--arcgis-charts-border)}.field-select-btn.field-select-btn-invalid{border-color:var(--arcgis-charts-border-invalid)}.field-select-btn-exp{width:calc(100% - 32px)}.field-select-btn-exp .field-select-btn{border:none;border-radius:0;border-right:1px solid var(--arcgis-charts-border)}.field-select-btn-text{flex:0 1 auto;overflow:hidden;padding:0 var(--arcgis-charts-side-spacing-eighth);text-overflow:ellipsis;white-space:nowrap}.field-select-btn-icon{flex:0 0 0%;padding:0 var(--arcgis-charts-side-spacing-half)}.field-select-btn:disabled{cursor:default}`,i=class extends c{constructor(){super(...arguments),this.disabled=!1,this.invalid=!1}static{this.properties={label:1,disabled:5,invalid:5}}static{this.styles=d}render(){let r=`${t.fieldSelectButton} ${this.invalid?t.fieldSelectButtonInvalid:""}`;return l`<div class=${e(t.fieldSelectButtonSection)}><button class=${e(r)} .disabled=${this.disabled}><span class=${e(t.fieldSelectButtonText)}>${this.label}</span><slot name=fieldSelectSlot></slot><span class=${e(t.fieldSelectButtonIcon)}><calcite-icon scale=s icon=chevron-down></calcite-icon></span></button></div>`}};a("arcgis-charts-config-field-select",i);export{i as ArcgisChartsConfigFieldSelect};
2
+ import{A as e,F as a,g as s,h as l,z as c}from"./TWV5ZXEU.js";import"./OR4HXHSY.js";var t={fieldSelectButtonSection:"field-select-btn-section",fieldSelectButton:"field-select-btn",fieldSelectButtonText:"field-select-btn-text",fieldSelectButtonIcon:"field-select-btn-icon",fieldSelectButtonInvalid:"field-select-btn-invalid"},d=s`.field-select-btn-section{background-color:var(--arcgis-charts-input-background);min-width:100%}.field-select-btn{background:var(--arcgis-charts-background-clear);border:1px solid;border-radius:var(--arcgis-charts-border-radius);display:flex;align-items:center;justify-content:space-between;padding:var(--arcgis-charts-side-spacing-half) var(--arcgis-charts-side-spacing-quarter);cursor:pointer;width:100%;text-align:unset}.field-select-btn:not(.field-select-btn-invalid){border-color:var(--arcgis-charts-border)}.field-select-btn.field-select-btn-invalid{border-color:var(--arcgis-charts-border-invalid)}.field-select-btn-exp{width:calc(100% - 32px)}.field-select-btn-exp .field-select-btn{border:none;border-radius:0;border-right:1px solid var(--arcgis-charts-border)}.field-select-btn-text{flex:0 1 auto;overflow:hidden;padding:0 var(--arcgis-charts-side-spacing-eighth);text-overflow:ellipsis;white-space:nowrap}.field-select-btn-icon{flex:0 0 0%;padding:0 var(--arcgis-charts-side-spacing-half)}.field-select-btn:disabled{cursor:default}`,i=class extends c{constructor(){super(...arguments),this.disabled=!1,this.invalid=!1}static{this.properties={label:1,disabled:5,invalid:5}}static{this.styles=d}render(){let r=`${t.fieldSelectButton} ${this.invalid?t.fieldSelectButtonInvalid:""}`;return l`<div class=${e(t.fieldSelectButtonSection)}><button class=${e(r)} .disabled=${this.disabled}><span class=${e(t.fieldSelectButtonText)}>${this.label}</span><slot name=fieldSelectSlot></slot><span class=${e(t.fieldSelectButtonIcon)}><calcite-icon scale=s icon=chevron-down></calcite-icon></span></button></div>`}};a("arcgis-charts-config-field-select",i);export{i as ArcgisChartsConfigFieldSelect};