@arcgis/charts-components 5.1.22 → 5.1.24

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 (104) hide show
  1. package/dist/cdn/{LSXGSPN7.js → 25VQ2GPE.js} +1 -1
  2. package/dist/cdn/{XO4UBAHV.js → 2KKM7XMG.js} +1 -1
  3. package/dist/cdn/{EUVIIXAP.js → 4OH7ZV7G.js} +1 -1
  4. package/dist/cdn/{676HN3EU.js → 4VDUZQHB.js} +1 -1
  5. package/dist/cdn/{XCHZG2NL.js → 5F3ROJAG.js} +1 -1
  6. package/dist/cdn/{BID5V7ZZ.js → 5KE747FP.js} +1 -1
  7. package/dist/cdn/{MLH5C3FI.js → 5XCEZZSU.js} +1 -1
  8. package/dist/cdn/{EDBSSAVW.js → 6JT73YLB.js} +1 -1
  9. package/dist/cdn/{COZ7C3OO.js → 7AK4SPBI.js} +1 -1
  10. package/dist/cdn/{4TEBNKMV.js → 7D6GCPFH.js} +1 -1
  11. package/dist/cdn/{KPJFRISX.js → 7E6BOTCG.js} +1 -1
  12. package/dist/cdn/{C3I6XCVW.js → 7TE4FIKJ.js} +1 -1
  13. package/dist/cdn/{JZQ4JSUS.js → 7TYN6UNC.js} +1 -1
  14. package/dist/cdn/{VDJZXKAS.js → 7YYHTEDR.js} +1 -1
  15. package/dist/cdn/{P7WTDPKK.js → AGSFGQPQ.js} +1 -1
  16. package/dist/cdn/{U3EGWYAL.js → AKCNYUNT.js} +1 -1
  17. package/dist/cdn/{DJ3K7XWO.js → AUHCVCCV.js} +1 -1
  18. package/dist/cdn/{O27JYQZH.js → B4DQKN6G.js} +1 -1
  19. package/dist/cdn/{RSZY2E47.js → BBXXVG5W.js} +1 -1
  20. package/dist/cdn/{WLY2DBKZ.js → BIZBJRHH.js} +1 -1
  21. package/dist/cdn/{QZLH2XN4.js → BNO3THEE.js} +1 -1
  22. package/dist/cdn/{SVADGHAC.js → C6AYK4D3.js} +1 -1
  23. package/dist/cdn/{D7XBA6IH.js → CNBW5VX4.js} +1 -1
  24. package/dist/cdn/{JFQQ2ONR.js → CRQ2IRDD.js} +1 -1
  25. package/dist/cdn/{SIDUEIIA.js → D77NU6RA.js} +1 -1
  26. package/dist/cdn/{UE2W6YAW.js → DZEIYH5L.js} +1 -1
  27. package/dist/cdn/{5FY2TOBL.js → E3U7BQAM.js} +1 -1
  28. package/dist/cdn/{SZGS3IHT.js → EHO2HH2K.js} +1 -1
  29. package/dist/cdn/{7DKEDK6K.js → FJV5YOSW.js} +1 -1
  30. package/dist/cdn/{JHDWREAF.js → FKVG5GMV.js} +1 -1
  31. package/dist/cdn/{EPUCOI4X.js → FNNW7M6Z.js} +1 -1
  32. package/dist/cdn/{4NC2OEIN.js → G2OB327R.js} +1 -1
  33. package/dist/cdn/{BP7Z2OH7.js → GWZR3DJN.js} +1 -1
  34. package/dist/cdn/{Y6IVUQJL.js → H66OIBYV.js} +1 -1
  35. package/dist/cdn/{6RMTHJRS.js → H6MWLSIC.js} +1 -1
  36. package/dist/cdn/{HHKQVZIE.js → HFXLXCLX.js} +1 -1
  37. package/dist/cdn/{3BHO34FR.js → HLBH3NS2.js} +1 -1
  38. package/dist/cdn/{YWYFDOUS.js → HU2UNQWO.js} +1 -1
  39. package/dist/cdn/{DHHZSYJ4.js → HWNY4AMD.js} +2 -2
  40. package/dist/cdn/{QJV2PXDL.js → I3Y6OYMP.js} +1 -1
  41. package/dist/cdn/{MN54JRCH.js → INOOYHX7.js} +1 -1
  42. package/dist/cdn/{BZZGRXDH.js → IRNKBCU6.js} +1 -1
  43. package/dist/cdn/{TGZ76QWF.js → J4EAJF2T.js} +1 -1
  44. package/dist/cdn/{K7IOJXLF.js → J5CYANTD.js} +1 -1
  45. package/dist/cdn/{YJWAHKSK.js → JJN27SZR.js} +1 -1
  46. package/dist/cdn/{DR5SYYCC.js → KELUCFO3.js} +1 -1
  47. package/dist/cdn/{4VS3H7TQ.js → KNLGTOOI.js} +1 -1
  48. package/dist/cdn/{NLS6T6JX.js → KOJPIJLU.js} +1 -1
  49. package/dist/cdn/{JZB3H6UD.js → L2HKWYSU.js} +1 -1
  50. package/dist/cdn/{PAKCBEG5.js → L5PBF35H.js} +1 -1
  51. package/dist/cdn/{ZAGMEI4N.js → LCLRSHLC.js} +1 -1
  52. package/dist/cdn/{LURG7HG6.js → LKPGW4JC.js} +1 -1
  53. package/dist/cdn/{LQTDYKZC.js → LSHK2M2F.js} +1 -1
  54. package/dist/cdn/{7PPWNAM3.js → LWQJPENE.js} +1 -1
  55. package/dist/cdn/{HGLT52P7.js → MLTCCMLC.js} +1 -1
  56. package/dist/cdn/{EGFIKAAI.js → MS4Y6ETG.js} +1 -1
  57. package/dist/cdn/{E2WLMRKE.js → MSJDJQWU.js} +1 -1
  58. package/dist/cdn/{YNA5H4OP.js → MULA23EX.js} +1 -1
  59. package/dist/cdn/{AD4FEETT.js → NSCQUGH7.js} +1 -1
  60. package/dist/cdn/{4534U6QH.js → OAFU3PR4.js} +1 -1
  61. package/dist/cdn/{XU5JJESO.js → OLUX4P5T.js} +1 -1
  62. package/dist/cdn/{DG6JFXQ4.js → PLQAXIS6.js} +1 -1
  63. package/dist/cdn/{DWM4EMMQ.js → PLVLMWO7.js} +1 -1
  64. package/dist/cdn/{QAV2BNSN.js → POJTU6FN.js} +1 -1
  65. package/dist/cdn/{H77C3UQR.js → QDMEH2X2.js} +1 -1
  66. package/dist/cdn/{G3JBFRLR.js → QQNWRVUU.js} +1 -1
  67. package/dist/cdn/{RDTEZSEJ.js → QXVVM425.js} +1 -1
  68. package/dist/cdn/{54742WX5.js → RHMQCMEK.js} +1 -1
  69. package/dist/cdn/{6SVNJBPM.js → RIHDUWJD.js} +1 -1
  70. package/dist/cdn/{KKFGNHMJ.js → RNP7O7WW.js} +1 -1
  71. package/dist/cdn/{GAAO4XCQ.js → RYZQLC6T.js} +1 -1
  72. package/dist/cdn/{R5YHKXUN.js → RZZO4CGD.js} +1 -1
  73. package/dist/cdn/{ETBNSIGL.js → SAMWUXOR.js} +1 -1
  74. package/dist/cdn/{PCGNS7J2.js → SDDJGB6P.js} +1 -1
  75. package/dist/cdn/{F7G5S2LL.js → SFNDPCJ7.js} +1 -1
  76. package/dist/cdn/{AEKE2IOI.js → SOZ24LFW.js} +1 -1
  77. package/dist/cdn/{F7OEHBII.js → SRSD6BXD.js} +1 -1
  78. package/dist/cdn/{B45JCKP6.js → SZ7VUURX.js} +1 -1
  79. package/dist/cdn/{B55SOPAA.js → T4BN3H6G.js} +1 -1
  80. package/dist/cdn/{HB5ZLCT2.js → TVLVHLSE.js} +1 -1
  81. package/dist/cdn/{V5EC2ME3.js → UKOCGD4X.js} +1 -1
  82. package/dist/cdn/{5GQTT5YV.js → UMBB7BPZ.js} +1 -1
  83. package/dist/cdn/{7HD4S2SK.js → UXQBXYGB.js} +1 -1
  84. package/dist/cdn/{FR2SBBTW.js → V5JF7V4R.js} +1 -1
  85. package/dist/cdn/{26SK2WPI.js → VB7UUEAI.js} +1 -1
  86. package/dist/cdn/{CPRRZQM2.js → VDGZ2K2P.js} +1 -1
  87. package/dist/cdn/{2UY4XCC6.js → VDRNQIIC.js} +1 -1
  88. package/dist/cdn/{IQR6BDMI.js → VIYQYI6B.js} +1 -1
  89. package/dist/cdn/{6F2W52TS.js → VPCXQS7C.js} +1 -1
  90. package/dist/cdn/{JCYT4PFC.js → VRVS6HAE.js} +1 -1
  91. package/dist/cdn/{ROQV4TTU.js → WEMLOR76.js} +1 -1
  92. package/dist/cdn/{3N4NG3YM.js → WWFTXCTV.js} +1 -1
  93. package/dist/cdn/{ONA24XJN.js → Y5NXCJVY.js} +1 -1
  94. package/dist/cdn/{ZV5QF224.js → YXWYCNGC.js} +1 -1
  95. package/dist/cdn/{JCSM2PX7.js → Z6IIXN7Z.js} +1 -1
  96. package/dist/cdn/{2IZYPDEV.js → ZSTE65TY.js} +1 -1
  97. package/dist/cdn/index.js +1 -1
  98. package/dist/cdn/model/shared/setup-utils.js +1 -1
  99. package/dist/chunks/index2.js +129 -129
  100. package/dist/chunks/runtime.js +1 -1
  101. package/dist/docs/api.json +1 -1
  102. package/dist/docs/docs.json +1 -1
  103. package/dist/docs/web-types.json +1 -1
  104. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vt=Symbol(),Mt=new WeakMap,M=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==vt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=Mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Mt.set(e,t))}return t}toString(){return this.cssText}},kt=o=>new M(typeof o=="string"?o:o+"",void 0,vt),Ce=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[r+1],o[0]);return new M(e,o,vt)},jt=(o,t)=>{if(Z)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),n=Y.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},Et=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return kt(e)})(o):o;var{is:we,defineProperty:Oe,getOwnPropertyDescriptor:Te,getOwnPropertyNames:Se,getOwnPropertySymbols:Pe,getPrototypeOf:Ne}=Object,tt=globalThis,Ht=tt.trustedTypes,De=Ht?Ht.emptyScript:"",xe=tt.reactiveElementPolyfillSupport,k=(o,t)=>o,X={toAttribute(o,t){switch(t){case Boolean:o=o?De:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},j=(o,t)=>!we(o,t),zt={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:j};Symbol.metadata??=Symbol("metadata"),tt.litPropertyMetadata??=new WeakMap;var A=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Oe(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){let{get:n,set:r}=Te(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let a=n?.call(this);r?.call(this,i),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;let t=Ne(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){let e=this.properties,s=[...Se(e),...Pe(e)];for(let n of s)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)e.unshift(Et(n))}else t!==void 0&&e.push(Et(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:X).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:X;this._$Em=n;let a=i.fromAttribute(e,r.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(t,e,s,n=!1,r){if(t!==void 0){let i=this.constructor;if(n===!1&&(r=this[t]),s??=i.getPropertyOptions(t),!((s.hasChanged??j)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:r},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),r!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s){let{wrapped:i}=r,a=this[n];i!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[k("elementProperties")]=new Map,A[k("finalized")]=new Map,xe?.({ReactiveElement:A}),(tt.reactiveElementVersions??=[]).push("2.1.2");var bt=globalThis,Vt=o=>o,et=bt.trustedTypes,Bt=et?et.createPolicy("lit-html",{createHTML:o=>o}):void 0,At="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,_t="?"+_,Le=`<${_t}>`,T=document,z=()=>T.createComment(""),V=o=>o===null||typeof o!="object"&&typeof o!="function",Ct=Array.isArray,Qt=o=>Ct(o)||typeof o?.[Symbol.iterator]=="function",$t=`[
3
3
  \f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wt=/-->/g,Ft=/>/g,w=RegExp(`>|${$t}(?:([^\\s"'>=/]+)(${$t}*=${$t}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),qt=/'/g,Gt=/"/g,Jt=/^(?:script|style|textarea|title)$/i,wt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ms=wt(1),ys=wt(2),gs=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Kt=new WeakMap,O=T.createTreeWalker(T,129);function Yt(o,t){if(!Ct(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bt!==void 0?Bt.createHTML(t):t}var Zt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,u=i.exec(c),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Wt:u[1]!==void 0?i=Ft:u[2]!==void 0?(Jt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=n??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?w:u[3]==='"'?Gt:qt):i===Gt||i===qt?i=w:i===Wt||i===Ft?i=H:(i=w,n=void 0);let v=i===w&&o[a+1].startsWith("/>")?" ":"";r+=i===H?c+Le:h>=0?(s.push(l),c.slice(0,h)+At+c.slice(h)+_+v):c+_+(h===-2?a:v)}return[Yt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},B=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[l,u]=Zt(t,e);if(this.el=o.createElement(l,s),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=O.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(At)){let m=u[i++],v=n.getAttribute(h).split(_),C=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:C[2],strings:v,ctor:C[1]==="."?ot:C[1]==="?"?nt:C[1]==="@"?rt:P}),n.removeAttribute(h)}else h.startsWith(_)&&(c.push({type:6,index:r}),n.removeAttribute(h));if(Jt.test(n.tagName)){let h=n.textContent.split(_),m=h.length-1;if(m>0){n.textContent=et?et.emptyScript:"";for(let v=0;v<m;v++)n.append(h[v],z()),O.nextNode(),c.push({type:2,index:++r});n.append(h[m],z())}}}else if(n.nodeType===8)if(n.data===_t)c.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(_,h+1))!==-1;)c.push({type:7,index:r}),h+=_.length-1}r++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=V(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=S(o,n._$AS(o,t.values),n,s)),t}var st=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,n=(t?.creationScope??T).importNode(e,!0);O.currentNode=n;let r=O.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new L(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new it(r,this,t)),this._$AV.push(l),c=s[++a]}i!==c?.index&&(r=O.nextNode(),i++)}return O.currentNode=T,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},L=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),V(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(Yt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new st(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Kt.get(t.strings);return e===void 0&&Kt.set(t.strings,e=new B(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(z()),this.O(z()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=Vt(t).nextSibling;Vt(t).remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=S(this,t,e,0),i=!V(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=r[0],c=0;c<r.length-1;c++)l=S(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),i||=!V(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},nt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},rt=class extends P{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},it=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Xt={M:At,P:_,A:_t,C:1,L:Zt,R:st,D:Qt,V:S,I:L,H:P,N:nt,U:rt,B:ot,F:it},Ue=bt.litHtmlPolyfillSupport;Ue?.(B,L),(bt.litHtmlVersions??=[]).push("3.3.2");var at=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new L(t.insertBefore(z(),r),r,void 0,e??{})}return n._$AI(o),n};var Ot=globalThis,E=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:E});var Re=Ot.litElementPolyfillSupport;Re?.({LitElement:E});(Ot.litElementVersions??=[]).push("4.2.2");var te=new Set,ee;var se=o=>typeof o=="string"?o:"el"in o?o.el.localName:"localName"in o?o.localName:o.declaredClass,Ns=(o,t,e,s)=>{let n=se(t);if(s?.once){let i=`${o}${n}${e}`;if(te.has(i))return;te.add(i)}let r;if(s?.detail){r={};for(let[i,a]of Object.entries(s.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(r,i,{enumerable:!0,get(){return c.deref()}})}else r[i]=a;ee?.log.interceptors?.forEach(i=>i(o,n,e,r)),console[o](`[${n}]: ${e}`,r)}else ee?.log.interceptors?.forEach(i=>i(o,n,e)),console[o](`[${n}]: ${e}`)},oe=o=>{let t=`[${se(o)}] `;return e=>{let s=e instanceof Error&&e.message?e:new Error(String(e));s.message=`${t}${s.message}`,setTimeout(()=>{throw e})}};var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},W=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var q=Symbol.for("controller"),Ie=o=>typeof o=="object"&&o!==null&&(q in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Ls=o=>typeof o?.then=="function";var F,D=o=>{F!==o&&(F=o,queueMicrotask(()=>F===o?F=void 0:0))},G=o=>F,N=[],ne=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,U,Us=o=>{U!==o&&(U=o,queueMicrotask(()=>U===o?U=void 0:0))},Me=()=>{let o=U;return U=void 0,o},ie=async(o,t)=>{let e=lt(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},ae=async o=>{let t=lt(o);return await t.ready,t},lt=o=>{let e=G().manager.X(o);if(e!==void 0)return e;if(Ie(o))return o;let s=Me();if(s!==void 0)return s},ct=!1,Rs=o=>{ct=!0;try{return o()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};var ce=(o,t)=>{let e=t>ke?je:t/He,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},ke=4e3,je=2e3,He=4;var ze=(o,t,e)=>{let s=Object.keys(o),n=s.length;R===void 0&&queueMicrotask(I),R??=new Map;let r=R.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},R.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=l=>p(t,null,l),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},R,I=()=>{R?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),R=void 0},Ve=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>p(t,void 0,e===r?n:void 0)),e},Be=(o=[G(),...re()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>ze(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){Ve(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(o="",t={},e=G())=>{let s={emit:n=>{o===""&&I();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&Be(void 0,n=>o=n.key,s),s},Fe=We.bind(null,""),de;de=q;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#n=[],this.#r=[],this.#c=[],this.#l=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,s=t??G(new.target.name);e.#o=s,e.ready=e.P.promise,e.#a=he(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(ne(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#n;#r;#c;#l;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(oe(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(this.#o),lt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#n.push(t)}onUpdate(t){this.#r.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#n.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#r.forEach(le,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(le,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#i.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#i.push(n.remove)})}};function le(o){p(o,void 0,this)}var pe=Tt,he=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var{I:qe}=Xt,ue=o=>o;var ht=o=>o.strings===void 0,fe=()=>document.createComment(""),qs=(o,t,e)=>{let s=o._$AA.parentNode,n=t===void 0?o._$AB:t._$AA;if(e===void 0){let r=s.insertBefore(fe(),n),i=s.insertBefore(fe(),n);e=new qe(r,i,o,o.options)}else{let r=e._$AB.nextSibling,i=e._$AM,a=i!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==i._$AU&&e._$AP(c)}if(r!==n||a){let c=e._$AA;for(;c!==r;){let l=ue(c).nextSibling;ue(s).insertBefore(c,n),c=l}}}return e},Gs=(o,t,e=o)=>(o._$AI(t,e),o),Ge={},me=(o,t=Ge)=>o._$AH=t,Ks=o=>o._$AH,Qs=o=>{o._$AR(),o._$AA.remove()};var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=o=>(...t)=>({_$litDirective$:o,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var K=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),K(s,t);return!0},dt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},ye=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Je(t)}};function Ke(o){this._$AN!==void 0?(dt(this),this._$AM=o,ye(this)):this._$AM=o}function Qe(o,t=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)K(s[r],!1),dt(s[r]);else s!=null&&(K(s,!1),dt(s));else K(this,o)}var Je=o=>{o.type==y.CHILD&&(o._$AP??=Qe,o._$AQ??=Ke)},pt=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(this,t),dt(this))}setValue(t){if(ht(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var ro=()=>new Pt,Pt=class{},St=new WeakMap,Nt=$(class extends pt{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?St.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ut=o=>o.replace(Ze,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ze=/[A-Z]+(?![a-z])|[A-Z]/gu;var Eo="randomUUID"in crypto;var xt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Lt={};function Ut(){}function Rt(o){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;o.prototype["f"+e]=async function(...s){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:s}))}}}var Xe=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,l="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=l.split(";"),C=h?h?.split(",").map(ts):void 0,gt=C?.map(([x])=>x),J=class extends Dt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=gt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=o}constructor(){!J.B&&(J.B=c(),J.F()),super()}};customElements.define(a,J)}},ft=Object.defineProperty,ts=o=>{let t=o.split(":");return t.length===1?[t[0],ut(t[0])]:t},es=globalThis.HTMLElement??Ut,Dt=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#n({a:e.A}):e.B.then(async s=>{await e.K.p,t.#n(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])ft(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ft(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])ft(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{Rt(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=xt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#n(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(h=>h.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let l=document.createElement(i);r.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(n).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([o,t]){this[o]=t}var os=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},t.hasAttribute=function(n){return e.hasAttribute.call(this.el,n)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends pe{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=yt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),D(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=ce(t,ns)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},ns=1e3,yt="autoDestroyDisabled";var ve=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var Ee="important",rs=" !"+Ee,$e=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(rs);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?Ee:""):e[s]=n}}return f}});var is=$(class extends g{constructor(o){if(super(o),o.type!==y.PROPERTY&&o.type!==y.ATTRIBUTE&&o.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ht(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===y.PROPERTY){if(t===e[s])return f}else if(o.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===y.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return me(o),t}});var be=class o extends E{constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#n=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??j,i={attribute:s&1&&typeof t=="string"?ut(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),useDefault:!!(s&128),c:!1,...n,hasChanged(a,c){let l=r(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,i))}}}static{this.lumina=!0}static{Rt(this)}#t;#e;#s;#n;#r;#c;get elementInternals(){return this.#c??=this.el.attachInternals(),this.#c}connectedCallback(){this.hasAttribute("defer-hydration")||this.#l(!0)}#l(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#r=e;let s=!this.manager.connectedCalled;t&&super.connectedCallback(),s?queueMicrotask(()=>this.#i().catch(n=>{this.#n.reject(n),setTimeout(()=>{throw n})})):e&&this.requestUpdate()}#d(t){try{this.#r.clear(),this.constructor.K.r(this.#r,()=>super.update(t))}catch(e){throw this.#r.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#r?.destroy(),this.#r=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Lt?this.el:this.el.attachShadow(s));if(t)return this.manager.connectedCalled||this.#l(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#i(){let t=this.el.G??xt(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(W(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():p(n.hostLoaded,n);this.loaded?.(),this.#n.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#r?this.#d(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#n.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var _e=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var Nn=o=>typeof o=="object"&&o!=null?ve(o):o,Dn=o=>typeof o=="object"&&o!=null?$e(o):o;var It=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(n){return e.#t.call(this,n)}}render(t){return typeof t=="function"?(this.#t=t,Nt(this.#e)):Nt(t)}},xn=$(It);var Ln=d;var Un=o=>{let t=document.createElement("div");return at(o,t),t.firstElementChild};var Q=_e({defaultAssetPath:"https://js.arcgis.com/5.1.22/charts-components/",hydratedAttribute:"hydrated"}),{customElement:jn,getAssetPath:Hn,setAssetPath:zn}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{Ls as a,D as b,ne as c,re as d,Us as e,Rs as f,Ce as g,j as h,ms as i,f as j,d as k,Ns as l,Be as m,Fe as n,Tt as o,Xe as p,y as q,$ as r,g as s,qs as t,Gs as u,me as v,Ks as w,Qs as x,ro as y,Nt as z,be as A,Nn as B,Dn as C,Ln as D,Un as E,Q as F,jn as G,Hn as H};
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),qt=/'/g,Gt=/"/g,Jt=/^(?:script|style|textarea|title)$/i,wt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ms=wt(1),ys=wt(2),gs=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Kt=new WeakMap,O=T.createTreeWalker(T,129);function Yt(o,t){if(!Ct(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bt!==void 0?Bt.createHTML(t):t}var Zt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,u=i.exec(c),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Wt:u[1]!==void 0?i=Ft:u[2]!==void 0?(Jt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=n??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?w:u[3]==='"'?Gt:qt):i===Gt||i===qt?i=w:i===Wt||i===Ft?i=H:(i=w,n=void 0);let v=i===w&&o[a+1].startsWith("/>")?" ":"";r+=i===H?c+Le:h>=0?(s.push(l),c.slice(0,h)+At+c.slice(h)+_+v):c+_+(h===-2?a:v)}return[Yt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},B=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[l,u]=Zt(t,e);if(this.el=o.createElement(l,s),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=O.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(At)){let m=u[i++],v=n.getAttribute(h).split(_),C=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:C[2],strings:v,ctor:C[1]==="."?ot:C[1]==="?"?nt:C[1]==="@"?rt:P}),n.removeAttribute(h)}else h.startsWith(_)&&(c.push({type:6,index:r}),n.removeAttribute(h));if(Jt.test(n.tagName)){let h=n.textContent.split(_),m=h.length-1;if(m>0){n.textContent=et?et.emptyScript:"";for(let v=0;v<m;v++)n.append(h[v],z()),O.nextNode(),c.push({type:2,index:++r});n.append(h[m],z())}}}else if(n.nodeType===8)if(n.data===_t)c.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(_,h+1))!==-1;)c.push({type:7,index:r}),h+=_.length-1}r++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=V(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=S(o,n._$AS(o,t.values),n,s)),t}var st=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,n=(t?.creationScope??T).importNode(e,!0);O.currentNode=n;let r=O.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new L(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new it(r,this,t)),this._$AV.push(l),c=s[++a]}i!==c?.index&&(r=O.nextNode(),i++)}return O.currentNode=T,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},L=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),V(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(Yt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new st(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Kt.get(t.strings);return e===void 0&&Kt.set(t.strings,e=new B(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(z()),this.O(z()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=Vt(t).nextSibling;Vt(t).remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=S(this,t,e,0),i=!V(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=r[0],c=0;c<r.length-1;c++)l=S(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),i||=!V(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},nt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},rt=class extends P{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},it=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Xt={M:At,P:_,A:_t,C:1,L:Zt,R:st,D:Qt,V:S,I:L,H:P,N:nt,U:rt,B:ot,F:it},Ue=bt.litHtmlPolyfillSupport;Ue?.(B,L),(bt.litHtmlVersions??=[]).push("3.3.2");var at=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new L(t.insertBefore(z(),r),r,void 0,e??{})}return n._$AI(o),n};var Ot=globalThis,E=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:E});var Re=Ot.litElementPolyfillSupport;Re?.({LitElement:E});(Ot.litElementVersions??=[]).push("4.2.2");var te=new Set,ee;var se=o=>typeof o=="string"?o:"el"in o?o.el.localName:"localName"in o?o.localName:o.declaredClass,Ns=(o,t,e,s)=>{let n=se(t);if(s?.once){let i=`${o}${n}${e}`;if(te.has(i))return;te.add(i)}let r;if(s?.detail){r={};for(let[i,a]of Object.entries(s.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(r,i,{enumerable:!0,get(){return c.deref()}})}else r[i]=a;ee?.log.interceptors?.forEach(i=>i(o,n,e,r)),console[o](`[${n}]: ${e}`,r)}else ee?.log.interceptors?.forEach(i=>i(o,n,e)),console[o](`[${n}]: ${e}`)},oe=o=>{let t=`[${se(o)}] `;return e=>{let s=e instanceof Error&&e.message?e:new Error(String(e));s.message=`${t}${s.message}`,setTimeout(()=>{throw e})}};var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},W=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var q=Symbol.for("controller"),Ie=o=>typeof o=="object"&&o!==null&&(q in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Ls=o=>typeof o?.then=="function";var F,D=o=>{F!==o&&(F=o,queueMicrotask(()=>F===o?F=void 0:0))},G=o=>F,N=[],ne=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,U,Us=o=>{U!==o&&(U=o,queueMicrotask(()=>U===o?U=void 0:0))},Me=()=>{let o=U;return U=void 0,o},ie=async(o,t)=>{let e=lt(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},ae=async o=>{let t=lt(o);return await t.ready,t},lt=o=>{let e=G().manager.X(o);if(e!==void 0)return e;if(Ie(o))return o;let s=Me();if(s!==void 0)return s},ct=!1,Rs=o=>{ct=!0;try{return o()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};var ce=(o,t)=>{let e=t>ke?je:t/He,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},ke=4e3,je=2e3,He=4;var ze=(o,t,e)=>{let s=Object.keys(o),n=s.length;R===void 0&&queueMicrotask(I),R??=new Map;let r=R.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},R.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=l=>p(t,null,l),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},R,I=()=>{R?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),R=void 0},Ve=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>p(t,void 0,e===r?n:void 0)),e},Be=(o=[G(),...re()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>ze(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){Ve(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(o="",t={},e=G())=>{let s={emit:n=>{o===""&&I();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&Be(void 0,n=>o=n.key,s),s},Fe=We.bind(null,""),de;de=q;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#n=[],this.#r=[],this.#c=[],this.#l=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,s=t??G(new.target.name);e.#o=s,e.ready=e.P.promise,e.#a=he(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(ne(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#n;#r;#c;#l;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(oe(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(this.#o),lt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#n.push(t)}onUpdate(t){this.#r.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#n.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#r.forEach(le,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(le,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#i.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#i.push(n.remove)})}};function le(o){p(o,void 0,this)}var pe=Tt,he=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var{I:qe}=Xt,ue=o=>o;var ht=o=>o.strings===void 0,fe=()=>document.createComment(""),qs=(o,t,e)=>{let s=o._$AA.parentNode,n=t===void 0?o._$AB:t._$AA;if(e===void 0){let r=s.insertBefore(fe(),n),i=s.insertBefore(fe(),n);e=new qe(r,i,o,o.options)}else{let r=e._$AB.nextSibling,i=e._$AM,a=i!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==i._$AU&&e._$AP(c)}if(r!==n||a){let c=e._$AA;for(;c!==r;){let l=ue(c).nextSibling;ue(s).insertBefore(c,n),c=l}}}return e},Gs=(o,t,e=o)=>(o._$AI(t,e),o),Ge={},me=(o,t=Ge)=>o._$AH=t,Ks=o=>o._$AH,Qs=o=>{o._$AR(),o._$AA.remove()};var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=o=>(...t)=>({_$litDirective$:o,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var K=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),K(s,t);return!0},dt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},ye=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Je(t)}};function Ke(o){this._$AN!==void 0?(dt(this),this._$AM=o,ye(this)):this._$AM=o}function Qe(o,t=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)K(s[r],!1),dt(s[r]);else s!=null&&(K(s,!1),dt(s));else K(this,o)}var Je=o=>{o.type==y.CHILD&&(o._$AP??=Qe,o._$AQ??=Ke)},pt=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(this,t),dt(this))}setValue(t){if(ht(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var ro=()=>new Pt,Pt=class{},St=new WeakMap,Nt=$(class extends pt{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?St.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ut=o=>o.replace(Ze,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ze=/[A-Z]+(?![a-z])|[A-Z]/gu;var Eo="randomUUID"in crypto;var xt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Lt={};function Ut(){}function Rt(o){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;o.prototype["f"+e]=async function(...s){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:s}))}}}var Xe=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,l="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=l.split(";"),C=h?h?.split(",").map(ts):void 0,gt=C?.map(([x])=>x),J=class extends Dt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=gt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=o}constructor(){!J.B&&(J.B=c(),J.F()),super()}};customElements.define(a,J)}},ft=Object.defineProperty,ts=o=>{let t=o.split(":");return t.length===1?[t[0],ut(t[0])]:t},es=globalThis.HTMLElement??Ut,Dt=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#n({a:e.A}):e.B.then(async s=>{await e.K.p,t.#n(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])ft(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ft(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])ft(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{Rt(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=xt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#n(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(h=>h.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let l=document.createElement(i);r.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(n).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([o,t]){this[o]=t}var os=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},t.hasAttribute=function(n){return e.hasAttribute.call(this.el,n)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends pe{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=yt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),D(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=ce(t,ns)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},ns=1e3,yt="autoDestroyDisabled";var ve=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var Ee="important",rs=" !"+Ee,$e=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(rs);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?Ee:""):e[s]=n}}return f}});var is=$(class extends g{constructor(o){if(super(o),o.type!==y.PROPERTY&&o.type!==y.ATTRIBUTE&&o.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ht(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===y.PROPERTY){if(t===e[s])return f}else if(o.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===y.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return me(o),t}});var be=class o extends E{constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#n=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??j,i={attribute:s&1&&typeof t=="string"?ut(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),useDefault:!!(s&128),c:!1,...n,hasChanged(a,c){let l=r(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,i))}}}static{this.lumina=!0}static{Rt(this)}#t;#e;#s;#n;#r;#c;get elementInternals(){return this.#c??=this.el.attachInternals(),this.#c}connectedCallback(){this.hasAttribute("defer-hydration")||this.#l(!0)}#l(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#r=e;let s=!this.manager.connectedCalled;t&&super.connectedCallback(),s?queueMicrotask(()=>this.#i().catch(n=>{this.#n.reject(n),setTimeout(()=>{throw n})})):e&&this.requestUpdate()}#d(t){try{this.#r.clear(),this.constructor.K.r(this.#r,()=>super.update(t))}catch(e){throw this.#r.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#r?.destroy(),this.#r=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Lt?this.el:this.el.attachShadow(s));if(t)return this.manager.connectedCalled||this.#l(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#i(){let t=this.el.G??xt(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(W(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():p(n.hostLoaded,n);this.loaded?.(),this.#n.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#r?this.#d(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#n.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var _e=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var Nn=o=>typeof o=="object"&&o!=null?ve(o):o,Dn=o=>typeof o=="object"&&o!=null?$e(o):o;var It=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(n){return e.#t.call(this,n)}}render(t){return typeof t=="function"?(this.#t=t,Nt(this.#e)):Nt(t)}},xn=$(It);var Ln=d;var Un=o=>{let t=document.createElement("div");return at(o,t),t.firstElementChild};var Q=_e({defaultAssetPath:"https://js.arcgis.com/5.1.24/charts-components/",hydratedAttribute:"hydrated"}),{customElement:jn,getAssetPath:Hn,setAssetPath:zn}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{Ls as a,D as b,ne as c,re as d,Us as e,Rs as f,Ce as g,j as h,ms as i,f as j,d as k,Ns as l,Be as m,Fe as n,Tt as o,Xe as p,y as q,$ as r,g as s,qs as t,Gs as u,me as v,Ks as w,Qs as x,ro as y,Nt as z,be as A,Nn as B,Dn as C,Ln as D,Un as E,Q as F,jn as G,Hn as H};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as i,b as n,c}from"./TOO3T62Y.js";import{k as r}from"./EZM4ZDQI.js";async function d(t){let a="config"in t?n(t.config):t.chartType,o;if(!("layer"in t)&&!("iLayer"in t)&&"config"in t&&t.config.iLayer===void 0)throw new Error("The source is missing. You can provide it to createModel through either `iLayer`, `layer`, or by setting the `config.iLayer` property.");switch(a){case r.LineChart:{let{LineChartModel:e}=await import("./R5YHKXUN.js").then(m=>m.default.then(e=>({LineChartModel:e})));o=new e;break}case r.ComboBarLineChart:{let{ComboBarLineChartModel:e}=await import("./JZQ4JSUS.js").then(m=>m.default.then(e=>({ComboBarLineChartModel:e})));o=new e;break}case r.PieChart:{let{PieChartModel:e}=await import("./EGFIKAAI.js").then(m=>m.default.then(e=>({PieChartModel:e})));o=new e;break}case r.Histogram:{let{HistogramModel:e}=await import("./BZZGRXDH.js").then(m=>m.default.then(e=>({HistogramModel:e})));o=new e;break}case r.Scatterplot:{let{ScatterplotModel:e}=await import("./P7WTDPKK.js").then(m=>m.default.then(e=>({ScatterplotModel:e})));o=new e;break}case r.BoxPlot:{let{BoxPlotModel:e}=await import("./SIDUEIIA.js").then(m=>m.default.then(e=>({BoxPlotModel:e})));o=new e;break}case r.Gauge:{let{GaugeModel:e}=await import("./AD4FEETT.js").then(m=>m.default.then(e=>({GaugeModel:e})));o=new e;break}case r.RadarChart:{let{RadarChartModel:e}=await import("./HHKQVZIE.js").then(m=>m.default.then(e=>({RadarChartModel:e})));o=new e;break}case r.HeatChart:{let{HeatChartModel:e}=await import("./K7IOJXLF.js").then(m=>m.default.then(e=>({HeatChartModel:e})));o=new e;break}case r.BarChart:default:{let{BarChartModel:e}=await import("./JZB3H6UD.js").then(m=>m.default.then(e=>({BarChartModel:e})));o=new e;break}}if(await o?.setup({layer:"layer"in t?t.layer:void 0,iLayer:"iLayer"in t?t.iLayer:void 0,config:"config"in t?t.config:void 0,commonStrings:"commonStrings"in t?t.commonStrings:void 0}),a!==void 0&&c(o,a))return o;{let e=i(o.chartType);throw new Error(`Please check the arguments provided to \`createModel\`. The generated model's type (\`${e}\`) does not match the type specified by either the \`chartType\` or the \`config\` argument (\`${a}\`).`)}}export{d as a};
2
+ import{a as i,b as n,c}from"./TOO3T62Y.js";import{k as r}from"./EZM4ZDQI.js";async function d(t){let a="config"in t?n(t.config):t.chartType,o;if(!("layer"in t)&&!("iLayer"in t)&&"config"in t&&t.config.iLayer===void 0)throw new Error("The source is missing. You can provide it to createModel through either `iLayer`, `layer`, or by setting the `config.iLayer` property.");switch(a){case r.LineChart:{let{LineChartModel:e}=await import("./RZZO4CGD.js").then(m=>m.default.then(e=>({LineChartModel:e})));o=new e;break}case r.ComboBarLineChart:{let{ComboBarLineChartModel:e}=await import("./7TYN6UNC.js").then(m=>m.default.then(e=>({ComboBarLineChartModel:e})));o=new e;break}case r.PieChart:{let{PieChartModel:e}=await import("./MS4Y6ETG.js").then(m=>m.default.then(e=>({PieChartModel:e})));o=new e;break}case r.Histogram:{let{HistogramModel:e}=await import("./IRNKBCU6.js").then(m=>m.default.then(e=>({HistogramModel:e})));o=new e;break}case r.Scatterplot:{let{ScatterplotModel:e}=await import("./AGSFGQPQ.js").then(m=>m.default.then(e=>({ScatterplotModel:e})));o=new e;break}case r.BoxPlot:{let{BoxPlotModel:e}=await import("./D77NU6RA.js").then(m=>m.default.then(e=>({BoxPlotModel:e})));o=new e;break}case r.Gauge:{let{GaugeModel:e}=await import("./NSCQUGH7.js").then(m=>m.default.then(e=>({GaugeModel:e})));o=new e;break}case r.RadarChart:{let{RadarChartModel:e}=await import("./HFXLXCLX.js").then(m=>m.default.then(e=>({RadarChartModel:e})));o=new e;break}case r.HeatChart:{let{HeatChartModel:e}=await import("./J5CYANTD.js").then(m=>m.default.then(e=>({HeatChartModel:e})));o=new e;break}case r.BarChart:default:{let{BarChartModel:e}=await import("./L2HKWYSU.js").then(m=>m.default.then(e=>({BarChartModel:e})));o=new e;break}}if(await o?.setup({layer:"layer"in t?t.layer:void 0,iLayer:"iLayer"in t?t.iLayer:void 0,config:"config"in t?t.config:void 0,commonStrings:"commonStrings"in t?t.commonStrings:void 0}),a!==void 0&&c(o,a))return o;{let e=i(o.chartType);throw new Error(`Please check the arguments provided to \`createModel\`. The generated model's type (\`${e}\`) does not match the type specified by either the \`chartType\` or the \`config\` argument (\`${a}\`).`)}}export{d as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as h}from"./G3JBFRLR.js";import{a as R}from"./VDJZXKAS.js";import{b as j}from"./TJQGGNGV.js";import k from"./DR5SYYCC.js";import{a as x}from"./ONA24XJN.js";import{l as c,m as v}from"./MZ2UZAFW.js";import i from"./YNA5H4OP.js";import e from"./XCHZG2NL.js";import"./KGNYAMFB.js";import a from"./DHHZSYJ4.js";import"./777EBGS5.js";import{c as b,n as D}from"./TA5LVOWS.js";import{i as E,wa as _}from"./IQAKPU7N.js";import{a as A}from"./75Y43JLP.js";import{l as T}from"./FIMXZMTB.js";import"./JFQQ2ONR.js";import{A as I,B as r,C as L,D as g,G as P,g as F,i as l,n as d,y as u,z as p}from"./F7G5S2LL.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import{b as S,w as f,x as C}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([O,{sb:N,tb:B},,{c:$,d:y},{a:M,c:k,k:m}])=>{var q=F`.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)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.pick-list-item-label{font-size:small}.panel{max-height:60vh}.color-ramp-popover{display:flex;flex-direction:column;gap:.75rem;min-width:320px;max-width:480px}.color-ramp-toolbar{display:flex;gap:.5rem;align-items:center;padding:5px 5px 0}.ramp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;max-height:300px;overflow:auto;padding:.25rem}.ramp-item{display:flex;flex-direction:column;border:1px solid var(--calcite-color-foreground-3);background:var(--calcite-color-foreground-1);cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s;border-radius:2px;min-height:56px;padding:4px}.ramp-item:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}.ramp-name{font-size:.625rem;line-height:1;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-3)}.ramp-item.selected{background-color:var(--calcite-color-brand)!important;border-color:var(--calcite-color-brand)!important;outline:2px solid var(--calcite-color-brand)!important;color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-name{color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-strip{box-shadow:none;border:none}.ramp-strips{display:flex;flex:1;height:28px;width:100%;overflow:hidden}.ramp-strip{flex:1;min-width:0}.ramp-strip-fallback{background:repeating-linear-gradient(45deg,var(--calcite-color-foreground-3) 0,var(--calcite-color-foreground-3) 5px,var(--calcite-color-foreground-2) 5px,var(--calcite-color-foreground-2) 10px)}.ramp-empty{grid-column:1/-1;font-size:.75rem;color:var(--calcite-color-text-3)}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`,s={jsAppFlyout:"js-app-flyout",name:"bar-chart-data-popover",header:"header",pickListItemLabel:"pick-list-item-label",panel:"panel",colorRampPopover:"color-ramp-popover",colorRampToolbar:"color-ramp-toolbar",rampGrid:"ramp-grid",rampItem:"ramp-item",rampName:"ramp-name",rampStrips:"ramp-strips",rampStrip:"ramp-strip",rampStripFallback:"ramp-strip-fallback",rampEmpty:"ramp-empty",panelChildrenContainer:"panel-children-container",colorRampPopoverFooter:"color-ramp-popover-footer"},w=class extends I{constructor(){super(...arguments),this._messages=x(),this.commonStrings=x({name:"common",blocking:!0}),this.picklist=u(),this.popoverElement=u(),this.placement="leading",this.offsetDistance=-200,this.availableColorRamps=[],this.selectedCategory=y.all,this.aggregationLabels=[],this.isFlipped=!1,this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigHeatChartColorRampChange=d(),this.arcgisChartsConfigHeatChartDataPopoverChange=d(),this.arcgisChartsConfigPopoverClose=d(),this.arcgisChartsConfigPopoverEmptyCellColorChange=d(),this.arcgisChartsConfigPopoverEmptyCellNameChange=d()}static{this.properties={availableColorRamps:16,selectedColorRampName:16,selectedCategory:16,aggregationLabels:16,isFlipped:5,model:0,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1,colorRamps:0}}static{this.styles=q}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(){let e=k.map(t=>_(t,this.commonStrings));T(this.aggregationLabels,e)||(this.aggregationLabels=e),this.colorRamps&&this.colorRamps!==this.availableColorRamps&&(this.availableColorRamps=this.colorRamps),this.contentKind===c.colorScheme&&this.selectedContent&&!this.selectedColorRampName&&(this.selectedColorRampName=this.selectedContent)}updated(){setTimeout(()=>{this.picklist.value?.setFocus()},M.PopoverTimer),j(this.popoverElement.value,this.open)}buildAggregationListItems(){return h(k.filter(e=>e!==S.NoAggregation),e=>e,(e,t)=>l`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${m(e,this.selectedContent)}></calcite-list-item>`)}buildPickListItem(e){return R(e.name,l`<calcite-list-item .label=${D(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${m(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,a=[];switch(e){case c.numericFields:{let i=R(" ",l`<calcite-list-item label=" " value=" " .selected=${m("",this.selectedContent)}></calcite-list-item>`);a.push(i);for(let o=0;o<t;o+=1){let n=this.layerFieldsInfo?.[o];n&&N(n)&&a.push(this.buildPickListItem(n))}break}case c.xAxisField:{for(let i=0;i<t;i+=1){let o=this.layerFieldsInfo?.[i];o&&B(o)&&a.push(this.buildPickListItem(o))}break}}return a}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){let t=e.target.selectedItems;this.arcgisChartsConfigHeatChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(a=>a.value)[0]}),this.open=!1}filterColorRamps(){let e=[];if(this.selectedCategory===y.all)e=this.availableColorRamps;else{let t=$[this.selectedCategory];e=this.availableColorRamps?.filter(a=>t.some(i=>a.tags.includes(i)))}return e}getRampColors(e){let t=e.colors;return this.isFlipped?[...t].reverse():t}rampColorToCss(e){let t="#000000";try{if(e){if(e instanceof O){let a=e.toHex();typeof a=="string"&&a.length&&(t=a)}else if(Array.isArray(e)){let[a,i,o,n]=e;[a,i,o].every(H=>typeof H=="number")&&(t=`rgba(${a},${i},${o},${n??1})`)}else if(typeof e=="object"&&e){let{r:a,g:i,b:o,a:n}=e;if(a!=null&&i!=null&&o!=null)return`rgba(${a},${i},${o},${n??1})`}}}catch{}return t}onCategoryDropdownSelect(e){let t=e.target.selectedItems[0]?.getAttribute("data-tag");t&&(this.selectedCategory=t)}onFlipAll(){if(this.isFlipped=!this.isFlipped,this.selectedColorRampName){let e=this.availableColorRamps.find(t=>t.name===this.selectedColorRampName);if(e){let t={...e,colors:this.getRampColors(e)};this.arcgisChartsConfigHeatChartColorRampChange.emit({rampName:e.name,ramp:t,isFlipped:this.isFlipped})}}}onRampSelect(e){this.selectedColorRampName=e.name;let t={...e,colors:this.getRampColors(e)};this.arcgisChartsConfigHeatChartColorRampChange.emit({rampName:e.name,ramp:t,isFlipped:this.isFlipped})}nameChange(e){let t=e.target.value;this.model.emptyCellText!==t&&(this.model.emptyCellText=t,this.arcgisChartsConfigPopoverEmptyCellNameChange.emit({name:t}))}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[a,i,o]=t,n=E*255;this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({color:[a,i,o,n]})}renderAggregationType(){let e=this.buildAggregationListItems();return l`<calcite-list label class=${r(s.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderXAxisFieldSelect(){let e=this.buildPickListItems(c.xAxisField);return l`<calcite-list label class=${r(s.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(c.numericFields);return l`<calcite-list label class=${r(s.pickListItemLabel)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderCalendarType(){let e=this.layerFieldsInfo.find(i=>i.name===this.model.xAxisField),t=Object.values(v).filter(i=>i!==v.WeekByDayOfWeekAndHourOfDay||e?.type!==A.DateOnly),a=h(t,i=>i,i=>{let o=this._messages[i];return l`<calcite-list-item .label=${o} .value=${i} .selected=${m(i,this.selectedContent)}></calcite-list-item>`});return l`<calcite-list label class=${r(s.pickListItemLabel)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${a}</calcite-list>`}renderCalendarViewType(){let e=h(Object.values(f),t=>t,t=>{let a=this._messages[t];return l`<calcite-list-item .label=${a} .value=${t} .disabled=${t!==f.singleCalendarView} .selected=${m(t,this.selectedContent)}></calcite-list-item>`});return l`<calcite-list label class=${r(s.pickListItemLabel)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderClassBreakMethod(){let e=[{value:C.naturalBreaks,title:this._messages?.classBreaksMethod?.naturalBreaks,msg:this._messages?.classBreaksMethod?.naturalBreaksMsg},{value:C.equalInterval,title:this._messages?.classBreaksMethod?.equalInterval,msg:this._messages?.classBreaksMethod?.equalIntervalMsg},{value:C.quantile,title:this._messages?.classBreaksMethod?.quantile,msg:this._messages?.classBreaksMethod?.quantileMsg}],t=h(Object.values(e),({value:a})=>a,a=>{let{title:i,msg:o,value:n}=a;return l`<calcite-list-item .label=${i} .description=${o} .value=${n} .selected=${m(n,this.selectedContent)}></calcite-list-item>`});return l`<calcite-list label class=${r(s.pickListItemLabel)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${t}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case c.aggregation:e=this.renderAggregationType();break;case c.numericFields:e=this.renderNumericFields();break;case c.xAxisField:e=this.renderXAxisFieldSelect();break;case c.calendarType:e=this.renderCalendarType();break;case c.calendarViewType:e=this.renderCalendarViewType();break;case c.classBreakMethod:e=this.renderClassBreakMethod();break;case c.colorScheme:e=this.renderColorRampSelect();break;case c.null:e=this.renderEmptyCellUI();break;default:e=l`<div></div>`;break}return e}renderColorRampSelect(){let e=this.filterColorRamps(),t=this._messages?.colorRampCategories?this._messages.colorRampCategories[this.selectedCategory]:this.selectedCategory;return l`<div class=${r(s.colorRampPopover)}><div class=${r(s.colorRampToolbar)}><calcite-dropdown selection-mode=single placement=bottom-start @calciteDropdownSelect=${this.onCategoryDropdownSelect}><calcite-button slot=trigger appearance=outline icon-end=chevron-down>${t}</calcite-button><calcite-dropdown-group group-title=${this._messages?.colorRamp?.allCategories??"All color ramps"??g}>${Object.keys($).map(a=>l`<calcite-dropdown-item data-tag=${a??g} .selected=${this.selectedCategory===a}>${this._messages?.colorRampCategories?this._messages.colorRampCategories[a]:a}</calcite-dropdown-item>`)}</calcite-dropdown-group></calcite-dropdown><calcite-button appearance=outline icon-start=arrow-up-down @click=${this.onFlipAll}>${this._messages?.colorRamp?.flipRampColors}</calcite-button></div><div class=${r(s.rampGrid)}>${e.length===0&&l`<div class=${r(s.rampEmpty)}>${this._messages?.colorRamp?.noRamps} ${this.selectedCategory!=="all"?`"${this.selectedCategory}"`:""}</div>`||""}${e.map(a=>{let i=this.getRampColors(a),o=a.name===this.selectedColorRampName;return l`<div class=${`${s.rampItem} ${o?"selected":""}`} title=${a.name??g} @click=${()=>this.onRampSelect(a)}><div class=${r(s.rampName)} aria-hidden=true>${a.name}</div><div class=${r(s.rampStrips)}>${h(i,n=>n,n=>l`<div class=${r(s.rampStrip)} style=${L({backgroundColor:this.rampColorToCss(n)})}></div>`)}${i.length===0&&l`<div class=${`${s.rampStrip} ${s.rampStripFallback}`}></div>`||""}</div></div>`})}</div><div class=${r(s.colorRampPopoverFooter)}><calcite-button appearance=solid kind=brand @click=${this.closePopover}>${this._messages?.colorRamp?.done}</calcite-button></div></div>`}renderEmptyCellUI(){let e=this.model.emptyCellSymbol?.color??b.grayColor,t=this.model.emptyCellText??b.nullCategory?.text??"";return l`<div><div class=${r(s.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.nameChange}></calcite-input></calcite-label></div><div class=${r(s.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages?.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></div>`}render(){return l`<div class=${r(s.jsAppFlyout)}><calcite-popover class=${r(s.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${p(this.popoverElement)}><calcite-panel class=${r(s.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(s.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${void 0}</calcite-panel></calcite-popover></div>`}};P("arcgis-charts-config-heat-chart-popover",w);return w},"Color",a,e,i,k)
2
+ import{a as h}from"./QQNWRVUU.js";import{a as R}from"./7YYHTEDR.js";import{b as j}from"./TJQGGNGV.js";import k from"./KELUCFO3.js";import{a as x}from"./Y5NXCJVY.js";import{l as c,m as v}from"./MZ2UZAFW.js";import i from"./MULA23EX.js";import e from"./5F3ROJAG.js";import"./KGNYAMFB.js";import a from"./HWNY4AMD.js";import"./777EBGS5.js";import{c as b,n as D}from"./TA5LVOWS.js";import{i as E,wa as _}from"./IQAKPU7N.js";import{a as A}from"./75Y43JLP.js";import{l as T}from"./FIMXZMTB.js";import"./CRQ2IRDD.js";import{A as I,B as r,C as L,D as g,G as P,g as F,i as l,n as d,y as u,z as p}from"./SFNDPCJ7.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import{b as S,w as f,x as C}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([O,{sb:N,tb:B},,{c:$,d:y},{a:M,c:k,k:m}])=>{var q=F`.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)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.pick-list-item-label{font-size:small}.panel{max-height:60vh}.color-ramp-popover{display:flex;flex-direction:column;gap:.75rem;min-width:320px;max-width:480px}.color-ramp-toolbar{display:flex;gap:.5rem;align-items:center;padding:5px 5px 0}.ramp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;max-height:300px;overflow:auto;padding:.25rem}.ramp-item{display:flex;flex-direction:column;border:1px solid var(--calcite-color-foreground-3);background:var(--calcite-color-foreground-1);cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s;border-radius:2px;min-height:56px;padding:4px}.ramp-item:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}.ramp-name{font-size:.625rem;line-height:1;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-3)}.ramp-item.selected{background-color:var(--calcite-color-brand)!important;border-color:var(--calcite-color-brand)!important;outline:2px solid var(--calcite-color-brand)!important;color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-name{color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-strip{box-shadow:none;border:none}.ramp-strips{display:flex;flex:1;height:28px;width:100%;overflow:hidden}.ramp-strip{flex:1;min-width:0}.ramp-strip-fallback{background:repeating-linear-gradient(45deg,var(--calcite-color-foreground-3) 0,var(--calcite-color-foreground-3) 5px,var(--calcite-color-foreground-2) 5px,var(--calcite-color-foreground-2) 10px)}.ramp-empty{grid-column:1/-1;font-size:.75rem;color:var(--calcite-color-text-3)}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`,s={jsAppFlyout:"js-app-flyout",name:"bar-chart-data-popover",header:"header",pickListItemLabel:"pick-list-item-label",panel:"panel",colorRampPopover:"color-ramp-popover",colorRampToolbar:"color-ramp-toolbar",rampGrid:"ramp-grid",rampItem:"ramp-item",rampName:"ramp-name",rampStrips:"ramp-strips",rampStrip:"ramp-strip",rampStripFallback:"ramp-strip-fallback",rampEmpty:"ramp-empty",panelChildrenContainer:"panel-children-container",colorRampPopoverFooter:"color-ramp-popover-footer"},w=class extends I{constructor(){super(...arguments),this._messages=x(),this.commonStrings=x({name:"common",blocking:!0}),this.picklist=u(),this.popoverElement=u(),this.placement="leading",this.offsetDistance=-200,this.availableColorRamps=[],this.selectedCategory=y.all,this.aggregationLabels=[],this.isFlipped=!1,this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigHeatChartColorRampChange=d(),this.arcgisChartsConfigHeatChartDataPopoverChange=d(),this.arcgisChartsConfigPopoverClose=d(),this.arcgisChartsConfigPopoverEmptyCellColorChange=d(),this.arcgisChartsConfigPopoverEmptyCellNameChange=d()}static{this.properties={availableColorRamps:16,selectedColorRampName:16,selectedCategory:16,aggregationLabels:16,isFlipped:5,model:0,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1,colorRamps:0}}static{this.styles=q}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(){let e=k.map(t=>_(t,this.commonStrings));T(this.aggregationLabels,e)||(this.aggregationLabels=e),this.colorRamps&&this.colorRamps!==this.availableColorRamps&&(this.availableColorRamps=this.colorRamps),this.contentKind===c.colorScheme&&this.selectedContent&&!this.selectedColorRampName&&(this.selectedColorRampName=this.selectedContent)}updated(){setTimeout(()=>{this.picklist.value?.setFocus()},M.PopoverTimer),j(this.popoverElement.value,this.open)}buildAggregationListItems(){return h(k.filter(e=>e!==S.NoAggregation),e=>e,(e,t)=>l`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${m(e,this.selectedContent)}></calcite-list-item>`)}buildPickListItem(e){return R(e.name,l`<calcite-list-item .label=${D(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${m(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,a=[];switch(e){case c.numericFields:{let i=R(" ",l`<calcite-list-item label=" " value=" " .selected=${m("",this.selectedContent)}></calcite-list-item>`);a.push(i);for(let o=0;o<t;o+=1){let n=this.layerFieldsInfo?.[o];n&&N(n)&&a.push(this.buildPickListItem(n))}break}case c.xAxisField:{for(let i=0;i<t;i+=1){let o=this.layerFieldsInfo?.[i];o&&B(o)&&a.push(this.buildPickListItem(o))}break}}return a}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){let t=e.target.selectedItems;this.arcgisChartsConfigHeatChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(a=>a.value)[0]}),this.open=!1}filterColorRamps(){let e=[];if(this.selectedCategory===y.all)e=this.availableColorRamps;else{let t=$[this.selectedCategory];e=this.availableColorRamps?.filter(a=>t.some(i=>a.tags.includes(i)))}return e}getRampColors(e){let t=e.colors;return this.isFlipped?[...t].reverse():t}rampColorToCss(e){let t="#000000";try{if(e){if(e instanceof O){let a=e.toHex();typeof a=="string"&&a.length&&(t=a)}else if(Array.isArray(e)){let[a,i,o,n]=e;[a,i,o].every(H=>typeof H=="number")&&(t=`rgba(${a},${i},${o},${n??1})`)}else if(typeof e=="object"&&e){let{r:a,g:i,b:o,a:n}=e;if(a!=null&&i!=null&&o!=null)return`rgba(${a},${i},${o},${n??1})`}}}catch{}return t}onCategoryDropdownSelect(e){let t=e.target.selectedItems[0]?.getAttribute("data-tag");t&&(this.selectedCategory=t)}onFlipAll(){if(this.isFlipped=!this.isFlipped,this.selectedColorRampName){let e=this.availableColorRamps.find(t=>t.name===this.selectedColorRampName);if(e){let t={...e,colors:this.getRampColors(e)};this.arcgisChartsConfigHeatChartColorRampChange.emit({rampName:e.name,ramp:t,isFlipped:this.isFlipped})}}}onRampSelect(e){this.selectedColorRampName=e.name;let t={...e,colors:this.getRampColors(e)};this.arcgisChartsConfigHeatChartColorRampChange.emit({rampName:e.name,ramp:t,isFlipped:this.isFlipped})}nameChange(e){let t=e.target.value;this.model.emptyCellText!==t&&(this.model.emptyCellText=t,this.arcgisChartsConfigPopoverEmptyCellNameChange.emit({name:t}))}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[a,i,o]=t,n=E*255;this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({color:[a,i,o,n]})}renderAggregationType(){let e=this.buildAggregationListItems();return l`<calcite-list label class=${r(s.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderXAxisFieldSelect(){let e=this.buildPickListItems(c.xAxisField);return l`<calcite-list label class=${r(s.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(c.numericFields);return l`<calcite-list label class=${r(s.pickListItemLabel)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderCalendarType(){let e=this.layerFieldsInfo.find(i=>i.name===this.model.xAxisField),t=Object.values(v).filter(i=>i!==v.WeekByDayOfWeekAndHourOfDay||e?.type!==A.DateOnly),a=h(t,i=>i,i=>{let o=this._messages[i];return l`<calcite-list-item .label=${o} .value=${i} .selected=${m(i,this.selectedContent)}></calcite-list-item>`});return l`<calcite-list label class=${r(s.pickListItemLabel)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${a}</calcite-list>`}renderCalendarViewType(){let e=h(Object.values(f),t=>t,t=>{let a=this._messages[t];return l`<calcite-list-item .label=${a} .value=${t} .disabled=${t!==f.singleCalendarView} .selected=${m(t,this.selectedContent)}></calcite-list-item>`});return l`<calcite-list label class=${r(s.pickListItemLabel)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderClassBreakMethod(){let e=[{value:C.naturalBreaks,title:this._messages?.classBreaksMethod?.naturalBreaks,msg:this._messages?.classBreaksMethod?.naturalBreaksMsg},{value:C.equalInterval,title:this._messages?.classBreaksMethod?.equalInterval,msg:this._messages?.classBreaksMethod?.equalIntervalMsg},{value:C.quantile,title:this._messages?.classBreaksMethod?.quantile,msg:this._messages?.classBreaksMethod?.quantileMsg}],t=h(Object.values(e),({value:a})=>a,a=>{let{title:i,msg:o,value:n}=a;return l`<calcite-list-item .label=${i} .description=${o} .value=${n} .selected=${m(n,this.selectedContent)}></calcite-list-item>`});return l`<calcite-list label class=${r(s.pickListItemLabel)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${t}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case c.aggregation:e=this.renderAggregationType();break;case c.numericFields:e=this.renderNumericFields();break;case c.xAxisField:e=this.renderXAxisFieldSelect();break;case c.calendarType:e=this.renderCalendarType();break;case c.calendarViewType:e=this.renderCalendarViewType();break;case c.classBreakMethod:e=this.renderClassBreakMethod();break;case c.colorScheme:e=this.renderColorRampSelect();break;case c.null:e=this.renderEmptyCellUI();break;default:e=l`<div></div>`;break}return e}renderColorRampSelect(){let e=this.filterColorRamps(),t=this._messages?.colorRampCategories?this._messages.colorRampCategories[this.selectedCategory]:this.selectedCategory;return l`<div class=${r(s.colorRampPopover)}><div class=${r(s.colorRampToolbar)}><calcite-dropdown selection-mode=single placement=bottom-start @calciteDropdownSelect=${this.onCategoryDropdownSelect}><calcite-button slot=trigger appearance=outline icon-end=chevron-down>${t}</calcite-button><calcite-dropdown-group group-title=${this._messages?.colorRamp?.allCategories??"All color ramps"??g}>${Object.keys($).map(a=>l`<calcite-dropdown-item data-tag=${a??g} .selected=${this.selectedCategory===a}>${this._messages?.colorRampCategories?this._messages.colorRampCategories[a]:a}</calcite-dropdown-item>`)}</calcite-dropdown-group></calcite-dropdown><calcite-button appearance=outline icon-start=arrow-up-down @click=${this.onFlipAll}>${this._messages?.colorRamp?.flipRampColors}</calcite-button></div><div class=${r(s.rampGrid)}>${e.length===0&&l`<div class=${r(s.rampEmpty)}>${this._messages?.colorRamp?.noRamps} ${this.selectedCategory!=="all"?`"${this.selectedCategory}"`:""}</div>`||""}${e.map(a=>{let i=this.getRampColors(a),o=a.name===this.selectedColorRampName;return l`<div class=${`${s.rampItem} ${o?"selected":""}`} title=${a.name??g} @click=${()=>this.onRampSelect(a)}><div class=${r(s.rampName)} aria-hidden=true>${a.name}</div><div class=${r(s.rampStrips)}>${h(i,n=>n,n=>l`<div class=${r(s.rampStrip)} style=${L({backgroundColor:this.rampColorToCss(n)})}></div>`)}${i.length===0&&l`<div class=${`${s.rampStrip} ${s.rampStripFallback}`}></div>`||""}</div></div>`})}</div><div class=${r(s.colorRampPopoverFooter)}><calcite-button appearance=solid kind=brand @click=${this.closePopover}>${this._messages?.colorRamp?.done}</calcite-button></div></div>`}renderEmptyCellUI(){let e=this.model.emptyCellSymbol?.color??b.grayColor,t=this.model.emptyCellText??b.nullCategory?.text??"";return l`<div><div class=${r(s.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.nameChange}></calcite-input></calcite-label></div><div class=${r(s.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages?.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></div>`}render(){return l`<div class=${r(s.jsAppFlyout)}><calcite-popover class=${r(s.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${p(this.popoverElement)}><calcite-panel class=${r(s.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(s.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${void 0}</calcite-panel></calcite-popover></div>`}};P("arcgis-charts-config-heat-chart-popover",w);return w},"Color",a,e,i,k)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import e from"./TGZ76QWF.js";import d from"./5GQTT5YV.js";import c from"./XCHZG2NL.js";import b from"./DHHZSYJ4.js";import{w as k}from"./TA5LVOWS.js";import{C as p,E as f,c as a}from"./IQAKPU7N.js";export default $arcgis.t(([{T:E},{q:N},{b:i,c:l},{a:R,b:q,d:U,f:M}])=>{var H=Object.defineProperty,W=Object.getOwnPropertyDescriptor,Z=(e,t,o,c)=>{for(var r=W(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&H(t,o,r),r},J=e=>e.title?.content,K=(e,t)=>{if(e){let o=R(t);t.title===void 0&&(t.title=f({text:"",visible:!0,font:p(a.ChartTitle),type:a.ChartTitle})),t.title.content=e,t.title.content.text=o}},g=class extends i{get titleSymbol(){return J(this._config)}set titleSymbol(t){K(t,this._config)}};Z([l],g.prototype,"titleSymbol");var Q=Object.defineProperty,X=Object.getOwnPropertyDescriptor,$=(e,t,o,c)=>{for(var r=X(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&Q(t,o,r),r},b=class extends i{get config(){return this._config}set config(t){this._config=t}};$([l],b.prototype,"config");var V=class extends i{get layer(){return this.layerInfo?.layer}},G=e=>e.id,tt=(e,t)=>{t.id=e},F=class extends i{get chartId(){return G(this._config)}set chartId(t){tt(t,this._config)}},et=e=>e.version,w=class extends i{get version(){return et(this._config)}},rt=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,st=(e,t,o,c)=>{for(var r=ot(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&rt(t,o,r),r},Y=e=>e.subtitle?.content.text??"",nt=(e,t)=>{t.subtitle!==void 0?t.subtitle.content.text=e:e!==void 0&&(t.subtitle=f({text:e,visible:!0,font:p(a.ChartSubtitle)}))},d=class extends i{get subtitleText(){return Y(this._config)}set subtitleText(t){nt(t,this._config)}};st([l],d.prototype,"subtitleText");var it=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,lt=(e,t,o,c)=>{for(var r=ct(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&it(t,o,r),r},at=e=>e.subtitle?.content,pt=(e,t)=>{if(e){let o=Y(t);t.subtitle===void 0&&(t.subtitle=f({text:"",visible:!0,font:p(a.ChartSubtitle),type:a.ChartSubtitle})),t.subtitle.content=e,t.subtitle.content.text=o}},h=class extends i{get subtitleSymbol(){return at(this._config)}set subtitleSymbol(t){pt(t,this._config)}};lt([l],h.prototype,"subtitleSymbol");var ft=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,bt=(e,t,o,c)=>{for(var r=gt(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&ft(t,o,r),r},A=e=>e.footer?.content.text??"",dt=(e,t)=>{t.footer!==void 0?t.footer.content.text=e:e!==void 0&&(t.footer=f({text:e,visible:!0,font:p(a.DescriptionText)}))},u=class extends i{get descriptionText(){return A(this._config)}set descriptionText(t){dt(t,this._config)}};bt([l],u.prototype,"descriptionText");var ht=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,yt=(e,t,o,c)=>{for(var r=ut(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&ht(t,o,r),r},vt=e=>e.footer?.content,xt=(e,t)=>{if(e){let o=A(t);t.footer===void 0&&(t.footer=f({text:"",visible:!0,font:p(a.DescriptionText),type:a.DescriptionText})),t.footer.content=e,t.footer.content.text=o}},y=class extends i{get descriptionSymbol(){return vt(this._config)}set descriptionSymbol(t){xt(t,this._config)}};yt([l],y.prototype,"descriptionSymbol");var Ot=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,jt=(e,t,o,c)=>{for(var r=_t(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&Ot(t,o,r),r},Pt=e=>e.title?e.title.visible??!0:!1,mt=(e,t)=>{t.title!==void 0?t.title.visible=e:t.title=f({text:"",visible:e,font:p(a.ChartTitle)})},v=class extends i{get chartTitleVisibility(){return Pt(this._config)}set chartTitleVisibility(t){mt(t,this._config)}};jt([l],v.prototype,"chartTitleVisibility");var Dt=Object.defineProperty,St=Object.getOwnPropertyDescriptor,Tt=(e,t,o,c)=>{for(var r=St(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&Dt(t,o,r),r},Vt=e=>e.subtitle?e.subtitle.visible??!0:!1,Ft=(e,t)=>{t.subtitle!==void 0?t.subtitle.visible=e:t.subtitle=f({text:"",visible:e,font:p(a.ChartSubtitle)})},x=class extends i{get chartSubtitleVisibility(){return Vt(this._config)}set chartSubtitleVisibility(t){Ft(t,this._config)}};Tt([l],x.prototype,"chartSubtitleVisibility");var wt=Object.defineProperty,Ct=Object.getOwnPropertyDescriptor,It=(e,t,o,c)=>{for(var r=Ct(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&wt(t,o,r),r},B=e=>e.footer?.visible??!1,zt=(e,t)=>{t.footer!==void 0?t.footer.visible=e:e!==B(t)&&(t.footer=f({text:"",visible:!0,font:p(a.DescriptionText)}))},O=class extends i{get descriptionVisibility(){return B(this._config)}set descriptionVisibility(t){zt(t,this._config)}};It([l],O.prototype,"descriptionVisibility");var Lt=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Et=(e,t,o,c)=>{for(var r=kt(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&Lt(t,o,r),r},Nt=e=>e.chartRenderer,Rt=(e,t)=>{t.chartRenderer=e},_=class extends i{get chartRenderer(){return Nt(this._config)}set chartRenderer(t){Rt(t,this._config)}};Et([l],_.prototype,"chartRenderer");var qt=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor,Mt=(e,t,o,c)=>{for(var r=Ut(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&qt(t,o,r),r},Yt=e=>e.background,At=(e,t)=>{t.background=e},j=class extends i{get backgroundColor(){return Yt(this._config)}set backgroundColor(t){At(t,this._config)}};Mt([l],j.prototype,"backgroundColor");var Bt=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Wt=(e,t,o,c)=>{for(var r=Ht(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&Bt(t,o,r),r},Zt=(e,t)=>t.series[e].visible??!0,Jt=(e,t)=>{k({detail:e},t)},P=class extends i{getSeriesVisibility(t){return Zt(t,this._config)}setSeriesVisibility(t){Jt(t,this._config)}};Wt([l],P.prototype,"setSeriesVisibility");var Kt=(e,t)=>t.series[e]?.id,C=class extends i{getSeriesId(t){return Kt(t,this._config)}},Qt=(e,t)=>t.series.findIndex(o=>o.id===e),I=class extends i{getSeriesIndex(t){return Qt(t,this._config)}},Xt=e=>E(e.series),z=class extends i{get chartSubType(){return Xt(this._config)}},$t=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,te=(e,t,o,c)=>{for(var r=Gt(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&$t(t,o,r),r},ee=(e,t)=>e.length!==0&&t<e.length?e[t].dataTooltipFontSize:void 0,re=e=>{let{series:t,seriesIndex:o,fontSize:c}=e;t.length!==0&&o<t.length&&(t[o].dataTooltipFontSize=c)},m=class extends i{getDataTooltipFontSize(t){return ee(this._config.series,t)}setDataTooltipFontSize(t,o){re({series:this._config.series,seriesIndex:o,fontSize:t})}};te([l],m.prototype,"setDataTooltipFontSize");var oe=Object.defineProperty,se=Object.getOwnPropertyDescriptor,ne=(e,t,o,c)=>{for(var r=se(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&oe(t,o,r),r},ie=(e,t)=>{let o;return e.length!==0&&t<e.length&&(o=e[t].dataTooltipValueFormat),o},ce=e=>{let{series:t,seriesIndex:o,valueFormat:c}=e;t.length!==0&&o<t.length&&(t[o].dataTooltipValueFormat=c)},D=class extends i{getDataTooltipValueFormat(t){return ie(this._config.series,t)}setDataTooltipValueFormat(t,o){ce({series:this._config.series,seriesIndex:t,valueFormat:o})}};ne([l],D.prototype,"setDataTooltipValueFormat");var le=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,pe=(e,t,o,c)=>{for(var r=ae(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&le(t,o,r),r},fe=(e,t)=>{t.series.forEach(o=>{o.query&&(o.query.fetchNullValues=e)})},ge=e=>e.series.some(t=>t.query?.fetchNullValues),S=class extends i{get fetchNULLValues(){return ge(this._config)}set fetchNULLValues(t){fe(t,this._config)}};pe([l],S.prototype,"fetchNULLValues");var be=Object.defineProperty,de=Object.getOwnPropertyDescriptor,he=(e,t,o,c)=>{for(var r=de(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&be(t,o,r),r},ue=e=>e.dataFilters,ye=(e,t)=>{e!==void 0?t.dataFilters=e:delete t.dataFilters},T=class extends i{getDataFilters(){return ue(this._config)}async setDataFilters(t){ye(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}};he([l],T.prototype,"setDataFilters");var L=class extends i{},ve=[b,V,F,q,g,w,d,h,u,y,v,x,O,_,j,P,C,I,M,z,D,m,S,U,T];N(L,ve);return L},b,c,d,e)
2
+ import e from"./J4EAJF2T.js";import d from"./UMBB7BPZ.js";import c from"./5F3ROJAG.js";import b from"./HWNY4AMD.js";import{w as k}from"./TA5LVOWS.js";import{C as p,E as f,c as a}from"./IQAKPU7N.js";export default $arcgis.t(([{T:E},{q:N},{b:i,c:l},{a:R,b:q,d:U,f:M}])=>{var H=Object.defineProperty,W=Object.getOwnPropertyDescriptor,Z=(e,t,o,c)=>{for(var r=W(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&H(t,o,r),r},J=e=>e.title?.content,K=(e,t)=>{if(e){let o=R(t);t.title===void 0&&(t.title=f({text:"",visible:!0,font:p(a.ChartTitle),type:a.ChartTitle})),t.title.content=e,t.title.content.text=o}},g=class extends i{get titleSymbol(){return J(this._config)}set titleSymbol(t){K(t,this._config)}};Z([l],g.prototype,"titleSymbol");var Q=Object.defineProperty,X=Object.getOwnPropertyDescriptor,$=(e,t,o,c)=>{for(var r=X(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&Q(t,o,r),r},b=class extends i{get config(){return this._config}set config(t){this._config=t}};$([l],b.prototype,"config");var V=class extends i{get layer(){return this.layerInfo?.layer}},G=e=>e.id,tt=(e,t)=>{t.id=e},F=class extends i{get chartId(){return G(this._config)}set chartId(t){tt(t,this._config)}},et=e=>e.version,w=class extends i{get version(){return et(this._config)}},rt=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,st=(e,t,o,c)=>{for(var r=ot(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&rt(t,o,r),r},Y=e=>e.subtitle?.content.text??"",nt=(e,t)=>{t.subtitle!==void 0?t.subtitle.content.text=e:e!==void 0&&(t.subtitle=f({text:e,visible:!0,font:p(a.ChartSubtitle)}))},d=class extends i{get subtitleText(){return Y(this._config)}set subtitleText(t){nt(t,this._config)}};st([l],d.prototype,"subtitleText");var it=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,lt=(e,t,o,c)=>{for(var r=ct(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&it(t,o,r),r},at=e=>e.subtitle?.content,pt=(e,t)=>{if(e){let o=Y(t);t.subtitle===void 0&&(t.subtitle=f({text:"",visible:!0,font:p(a.ChartSubtitle),type:a.ChartSubtitle})),t.subtitle.content=e,t.subtitle.content.text=o}},h=class extends i{get subtitleSymbol(){return at(this._config)}set subtitleSymbol(t){pt(t,this._config)}};lt([l],h.prototype,"subtitleSymbol");var ft=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,bt=(e,t,o,c)=>{for(var r=gt(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&ft(t,o,r),r},A=e=>e.footer?.content.text??"",dt=(e,t)=>{t.footer!==void 0?t.footer.content.text=e:e!==void 0&&(t.footer=f({text:e,visible:!0,font:p(a.DescriptionText)}))},u=class extends i{get descriptionText(){return A(this._config)}set descriptionText(t){dt(t,this._config)}};bt([l],u.prototype,"descriptionText");var ht=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,yt=(e,t,o,c)=>{for(var r=ut(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&ht(t,o,r),r},vt=e=>e.footer?.content,xt=(e,t)=>{if(e){let o=A(t);t.footer===void 0&&(t.footer=f({text:"",visible:!0,font:p(a.DescriptionText),type:a.DescriptionText})),t.footer.content=e,t.footer.content.text=o}},y=class extends i{get descriptionSymbol(){return vt(this._config)}set descriptionSymbol(t){xt(t,this._config)}};yt([l],y.prototype,"descriptionSymbol");var Ot=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,jt=(e,t,o,c)=>{for(var r=_t(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&Ot(t,o,r),r},Pt=e=>e.title?e.title.visible??!0:!1,mt=(e,t)=>{t.title!==void 0?t.title.visible=e:t.title=f({text:"",visible:e,font:p(a.ChartTitle)})},v=class extends i{get chartTitleVisibility(){return Pt(this._config)}set chartTitleVisibility(t){mt(t,this._config)}};jt([l],v.prototype,"chartTitleVisibility");var Dt=Object.defineProperty,St=Object.getOwnPropertyDescriptor,Tt=(e,t,o,c)=>{for(var r=St(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&Dt(t,o,r),r},Vt=e=>e.subtitle?e.subtitle.visible??!0:!1,Ft=(e,t)=>{t.subtitle!==void 0?t.subtitle.visible=e:t.subtitle=f({text:"",visible:e,font:p(a.ChartSubtitle)})},x=class extends i{get chartSubtitleVisibility(){return Vt(this._config)}set chartSubtitleVisibility(t){Ft(t,this._config)}};Tt([l],x.prototype,"chartSubtitleVisibility");var wt=Object.defineProperty,Ct=Object.getOwnPropertyDescriptor,It=(e,t,o,c)=>{for(var r=Ct(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&wt(t,o,r),r},B=e=>e.footer?.visible??!1,zt=(e,t)=>{t.footer!==void 0?t.footer.visible=e:e!==B(t)&&(t.footer=f({text:"",visible:!0,font:p(a.DescriptionText)}))},O=class extends i{get descriptionVisibility(){return B(this._config)}set descriptionVisibility(t){zt(t,this._config)}};It([l],O.prototype,"descriptionVisibility");var Lt=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Et=(e,t,o,c)=>{for(var r=kt(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&Lt(t,o,r),r},Nt=e=>e.chartRenderer,Rt=(e,t)=>{t.chartRenderer=e},_=class extends i{get chartRenderer(){return Nt(this._config)}set chartRenderer(t){Rt(t,this._config)}};Et([l],_.prototype,"chartRenderer");var qt=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor,Mt=(e,t,o,c)=>{for(var r=Ut(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&qt(t,o,r),r},Yt=e=>e.background,At=(e,t)=>{t.background=e},j=class extends i{get backgroundColor(){return Yt(this._config)}set backgroundColor(t){At(t,this._config)}};Mt([l],j.prototype,"backgroundColor");var Bt=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Wt=(e,t,o,c)=>{for(var r=Ht(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&Bt(t,o,r),r},Zt=(e,t)=>t.series[e].visible??!0,Jt=(e,t)=>{k({detail:e},t)},P=class extends i{getSeriesVisibility(t){return Zt(t,this._config)}setSeriesVisibility(t){Jt(t,this._config)}};Wt([l],P.prototype,"setSeriesVisibility");var Kt=(e,t)=>t.series[e]?.id,C=class extends i{getSeriesId(t){return Kt(t,this._config)}},Qt=(e,t)=>t.series.findIndex(o=>o.id===e),I=class extends i{getSeriesIndex(t){return Qt(t,this._config)}},Xt=e=>E(e.series),z=class extends i{get chartSubType(){return Xt(this._config)}},$t=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,te=(e,t,o,c)=>{for(var r=Gt(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&$t(t,o,r),r},ee=(e,t)=>e.length!==0&&t<e.length?e[t].dataTooltipFontSize:void 0,re=e=>{let{series:t,seriesIndex:o,fontSize:c}=e;t.length!==0&&o<t.length&&(t[o].dataTooltipFontSize=c)},m=class extends i{getDataTooltipFontSize(t){return ee(this._config.series,t)}setDataTooltipFontSize(t,o){re({series:this._config.series,seriesIndex:o,fontSize:t})}};te([l],m.prototype,"setDataTooltipFontSize");var oe=Object.defineProperty,se=Object.getOwnPropertyDescriptor,ne=(e,t,o,c)=>{for(var r=se(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&oe(t,o,r),r},ie=(e,t)=>{let o;return e.length!==0&&t<e.length&&(o=e[t].dataTooltipValueFormat),o},ce=e=>{let{series:t,seriesIndex:o,valueFormat:c}=e;t.length!==0&&o<t.length&&(t[o].dataTooltipValueFormat=c)},D=class extends i{getDataTooltipValueFormat(t){return ie(this._config.series,t)}setDataTooltipValueFormat(t,o){ce({series:this._config.series,seriesIndex:t,valueFormat:o})}};ne([l],D.prototype,"setDataTooltipValueFormat");var le=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,pe=(e,t,o,c)=>{for(var r=ae(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&le(t,o,r),r},fe=(e,t)=>{t.series.forEach(o=>{o.query&&(o.query.fetchNullValues=e)})},ge=e=>e.series.some(t=>t.query?.fetchNullValues),S=class extends i{get fetchNULLValues(){return ge(this._config)}set fetchNULLValues(t){fe(t,this._config)}};pe([l],S.prototype,"fetchNULLValues");var be=Object.defineProperty,de=Object.getOwnPropertyDescriptor,he=(e,t,o,c)=>{for(var r=de(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&be(t,o,r),r},ue=e=>e.dataFilters,ye=(e,t)=>{e!==void 0?t.dataFilters=e:delete t.dataFilters},T=class extends i{getDataFilters(){return ue(this._config)}async setDataFilters(t){ye(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}};he([l],T.prototype,"setDataFilters");var L=class extends i{},ve=[b,V,F,q,g,w,d,h,u,y,v,x,O,_,j,P,C,I,M,z,D,m,S,U,T];N(L,ve);return L},b,c,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import c from"./DR5SYYCC.js";import{a as g}from"./ONA24XJN.js";import"./MZ2UZAFW.js";import b from"./XCHZG2NL.js";import"./KGNYAMFB.js";import a from"./DHHZSYJ4.js";import"./777EBGS5.js";import"./TA5LVOWS.js";import{D as u}from"./IQAKPU7N.js";import{f as d}from"./75Y43JLP.js";import{p as n}from"./FIMXZMTB.js";import"./JFQQ2ONR.js";import{A as y,B as i,G as S,g as h,i as o,n as s,y as m,z as p}from"./F7G5S2LL.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{f:b,g:v,h:c,i:r}])=>{var C={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"},a={fontStyleContainer:"font-style-container",font:"font",numberInput:"number-input",inputLabel:"input-label"},$=h`.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}`,f=class extends y{constructor(){super(...arguments),this._messages=g(),this.fontSizeInputElement=m(),this.fontStyle={type:d.TS},this.open=!1,this.enableClose=!1,this.arcgisChartsConfigFontStyleChange=s(),this.arcgisChartsConfigFontStyleClose=s()}static{this.properties={messageOverrides:0,fontStyle:0,header:1,open:5,enableClose:5}}static{this.styles=$}closePanel(t){t.target.closed&&this.enableClose&&(this.open=!1,this.arcgisChartsConfigFontStyleClose.emit())}fontChange(t){let e=t.target.selectedOption.value;if(e!==void 0){let l={family:e};this.isNewFontProperty("family",l)&&(this.fontStyle=n(this.fontStyle,{font:l}),this.emitFontStyleEvent({font:l}))}}fontSizeChange(){let t=this.fontSizeInputElement.value?.value;if(t!==void 0&&b(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&&c({inputElement:this.fontSizeInputElement.value,status:r.IDLE})}else this.fontSizeInputElement.value&&c({inputElement:this.fontSizeInputElement.value,status:r.INVALID})}boldSelect(){let t="bold";this.fontStyle?.font?.weight===t&&(t="normal");let e={weight:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}italicSelect(){let t="italic";this.fontStyle?.font?.style===t&&(t="normal");let e={style:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}underlineSelect(){let t="underline";this.fontStyle?.font?.decoration===t&&(t="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(C).map(e=>o`<calcite-option .value=${e} .selected=${e===this.fontStyle?.font?.family||e===u().font?.family?.split(",")[0]&&this.fontStyle?.font?.family===void 0}>${e}</calcite-option>`);return this.fontStyle?.font?.family===""&&t.push(o`<calcite-option value selected></calcite-option>`),t}render(){return o`<calcite-panel .heading=${this.header??this._messages.header} .closed=${!this.open} .closable=${this.enableClose??!1} @calcitePanelClose=${this.closePanel}><div class=${i(a.fontStyleContainer)}><calcite-label class=${i(a.font)}>${this._messages.font}<calcite-select .label=${this._messages.font??""} @calciteSelectChange=${this.fontChange}>${this.renderFonts()}</calcite-select></calcite-label></div><div class=${i(a.fontStyleContainer)}><calcite-label class=${i(a.inputLabel)}>${this._messages.size}<calcite-input class=${i(a.numberInput)} type=number min=6 max=40 step=1 .value=${v(this.fontStyle?.font?.size)} @calciteInputInput=${this.fontSizeChange} ${p(this.fontSizeInputElement)}></calcite-input></calcite-label><calcite-action appearance=transparent .text=${this._messages.bold??""} @click=${this.boldSelect} scale=l .active=${this.fontStyle?.font?.weight==="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==="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==="underline"}><calcite-icon scale=s icon=underline></calcite-icon></calcite-action></div><div class=${i(a.fontStyleContainer)}><arcgis-charts-config-colors .rgba=${this.fontStyle?.color??void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel>`}};S("arcgis-charts-config-font-style",f);return f},a,b,c)
2
+ import c from"./KELUCFO3.js";import{a as g}from"./Y5NXCJVY.js";import"./MZ2UZAFW.js";import b from"./5F3ROJAG.js";import"./KGNYAMFB.js";import a from"./HWNY4AMD.js";import"./777EBGS5.js";import"./TA5LVOWS.js";import{D as u}from"./IQAKPU7N.js";import{f as d}from"./75Y43JLP.js";import{p as n}from"./FIMXZMTB.js";import"./CRQ2IRDD.js";import{A as y,B as i,G as S,g as h,i as o,n as s,y as m,z as p}from"./SFNDPCJ7.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{f:b,g:v,h:c,i:r}])=>{var C={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"},a={fontStyleContainer:"font-style-container",font:"font",numberInput:"number-input",inputLabel:"input-label"},$=h`.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}`,f=class extends y{constructor(){super(...arguments),this._messages=g(),this.fontSizeInputElement=m(),this.fontStyle={type:d.TS},this.open=!1,this.enableClose=!1,this.arcgisChartsConfigFontStyleChange=s(),this.arcgisChartsConfigFontStyleClose=s()}static{this.properties={messageOverrides:0,fontStyle:0,header:1,open:5,enableClose:5}}static{this.styles=$}closePanel(t){t.target.closed&&this.enableClose&&(this.open=!1,this.arcgisChartsConfigFontStyleClose.emit())}fontChange(t){let e=t.target.selectedOption.value;if(e!==void 0){let l={family:e};this.isNewFontProperty("family",l)&&(this.fontStyle=n(this.fontStyle,{font:l}),this.emitFontStyleEvent({font:l}))}}fontSizeChange(){let t=this.fontSizeInputElement.value?.value;if(t!==void 0&&b(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&&c({inputElement:this.fontSizeInputElement.value,status:r.IDLE})}else this.fontSizeInputElement.value&&c({inputElement:this.fontSizeInputElement.value,status:r.INVALID})}boldSelect(){let t="bold";this.fontStyle?.font?.weight===t&&(t="normal");let e={weight:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}italicSelect(){let t="italic";this.fontStyle?.font?.style===t&&(t="normal");let e={style:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}underlineSelect(){let t="underline";this.fontStyle?.font?.decoration===t&&(t="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(C).map(e=>o`<calcite-option .value=${e} .selected=${e===this.fontStyle?.font?.family||e===u().font?.family?.split(",")[0]&&this.fontStyle?.font?.family===void 0}>${e}</calcite-option>`);return this.fontStyle?.font?.family===""&&t.push(o`<calcite-option value selected></calcite-option>`),t}render(){return o`<calcite-panel .heading=${this.header??this._messages.header} .closed=${!this.open} .closable=${this.enableClose??!1} @calcitePanelClose=${this.closePanel}><div class=${i(a.fontStyleContainer)}><calcite-label class=${i(a.font)}>${this._messages.font}<calcite-select .label=${this._messages.font??""} @calciteSelectChange=${this.fontChange}>${this.renderFonts()}</calcite-select></calcite-label></div><div class=${i(a.fontStyleContainer)}><calcite-label class=${i(a.inputLabel)}>${this._messages.size}<calcite-input class=${i(a.numberInput)} type=number min=6 max=40 step=1 .value=${v(this.fontStyle?.font?.size)} @calciteInputInput=${this.fontSizeChange} ${p(this.fontSizeInputElement)}></calcite-input></calcite-label><calcite-action appearance=transparent .text=${this._messages.bold??""} @click=${this.boldSelect} scale=l .active=${this.fontStyle?.font?.weight==="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==="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==="underline"}><calcite-icon scale=s icon=underline></calcite-icon></calcite-action></div><div class=${i(a.fontStyleContainer)}><arcgis-charts-config-colors .rgba=${this.fontStyle?.color??void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel>`}};S("arcgis-charts-config-font-style",f);return f},a,b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as k}from"./VDJZXKAS.js";import{a as E}from"./TJQGGNGV.js";import{a as P}from"./ONA24XJN.js";import{h as s}from"./MZ2UZAFW.js";import c from"./26SK2WPI.js";import a from"./DHHZSYJ4.js";import"./777EBGS5.js";import{n as m}from"./TA5LVOWS.js";import"./IQAKPU7N.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./JFQQ2ONR.js";import{A as u,B as o,E as b,G as v,g as C,i as r,n as d,y as n,z as h}from"./F7G5S2LL.js";import{e as g}from"./EZM4ZDQI.js";import"./43P4WOC4.js";import{b as y}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{q:c,rb:$},{h:F}])=>{var l={label:"label",fieldList:"field-list",fab:"fab"},w=C`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;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}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}`,p=class extends u{constructor(){super(...arguments),this._messages=P(),this.pieChartPopover=null,this.sortOrderElement=n(),this.categoryElement=n(),this.numericFieldsElement=n(),this.onPieChartDataChange=e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:t}=e.detail,i=[...e.detail.value];switch(t){case s.aggregation:this.model.aggregationType=i[0]!==y.NoAggregation?i[0]:"";break;case s.category:{let a=i[0]?.trim()||"";this.updateMode(a);let f=this.model.numericFields;f.length>1&&a!==c&&(this.model.numericFields=[f[0]]),this.model.category=a,this.model.colorMatch=!0;break}case s.numericFields:i.length>1&&(this.updateMode(c),this.model.category=c),this.model.numericFields=i;break;case s.sortOrder:this.model.setSortOrder(i[0]);break;default:break}}}catch(t){throw t instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}this.requestUpdate()},this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverClose=e=>{this.pieChartPopover===e?.target&&this.removePieChartDataPopover()},this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=d(),this.arcgisChartsConfigPieChartDataNumericFieldValidate=d()}static{this.properties={messageOverrides:0,model:0,layerFieldsInfo:0}}static{this.styles=w}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model"))}disconnectedCallback(){super.disconnectedCallback(),this.removePieChartDataPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}buildNumericFieldItem(e){return k(e,r`<calcite-list-item .label=${m(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}onSortOrderSelect(e){this.contentKind=s.sortOrder,this.setupPopover(e)}onCategorySelect(e){this.contentKind=s.category,this.setupPopover(e)}onAddNumericFields(e){this.contentKind=s.numericFields,this.setupPopover(e)}onRemoveNumericField(e){let t=e.target.value;this.model.numericFields=this.model.numericFields.filter(i=>i!==t)}onShowDataLabelsChange(e){this.model.dataLabelsVisibility=e.target.checked}updateMode(e){let t=e!==c&&e.trim()!=="";this.model.mode=t?g.Category:g.Fields}setupPopover(e){e.stopImmediatePropagation(),this.removePieChartDataPopover();let t,i,a;switch(this.contentKind){case s.category:t=this.categoryElement.value,i=this._messages.categoryHeader,a=this.model.category;break;case s.numericFields:t=this.numericFieldsElement.value,i=this._messages.numericFieldsMultipleHeader,a=this.model.numericFields;break;case s.sortOrder:t=this.sortOrderElement.value,i=this._messages.sortOrderHeader,a=this.model.getSortOrder();break}this.pieChartPopover=b(r`<arcgis-charts-config-pie-chart-popover .headingTitle=${i} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${a} @arcgisChartsConfigPieChartDataPopoverChange=${this.onPieChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-pie-chart-popover>`),!document.body.contains(this.pieChartPopover)&&this.pieChartPopover!==null&&document.body.appendChild(this.pieChartPopover)}getCorrectedCategoryValue(){return F({fieldName:this.model.category,fieldList:this.layerFieldsInfo})?"":m(this.layerFieldsInfo,this.model.category)}removePieChartDataPopover(){this.pieChartPopover!==null&&(this.pieChartPopover.open=!1,this.pieChartPopover=E(this.pieChartPopover))}renderSorting(){return r`<arcgis-charts-config-field-select .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${h(this.sortOrderElement)}></arcgis-charts-config-field-select>`}renderCategory(){let e=this.getCorrectedCategoryValue();return r`<arcgis-charts-config-field-select .label=${e} @click=${this.onCategorySelect} ${h(this.categoryElement)}></arcgis-charts-config-field-select>`}renderNumericFields(e){let t=$(this.model.layer).idField,i=[];for(let a of e)a!==t&&i.push(this.buildNumericFieldItem(a));return r`<calcite-list label class=${o(l.fieldList)} ${h(this.numericFieldsElement)}>${i}</calcite-list>`}render(){let e=this.renderCategory(),t=this.renderSorting(),i=this.renderNumericFields([...this.model.numericFields]);return r`<calcite-label class=${o(l.label)}>${this._messages.category}${e}</calcite-label>${[r`<calcite-label class=${o(l.label)}>${this._messages.numericFields}${i}</calcite-label>`,r`<div class=${o(l.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div>`]}<calcite-label class=${o(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${o(l.label)}>${this._messages.sortOrder}${t}</calcite-label>`}};v("arcgis-charts-config-pie-chart-data",p);return p},a,c)
2
+ import{a as k}from"./7YYHTEDR.js";import{a as E}from"./TJQGGNGV.js";import{a as P}from"./Y5NXCJVY.js";import{h as s}from"./MZ2UZAFW.js";import c from"./VB7UUEAI.js";import a from"./HWNY4AMD.js";import"./777EBGS5.js";import{n as m}from"./TA5LVOWS.js";import"./IQAKPU7N.js";import"./75Y43JLP.js";import"./FIMXZMTB.js";import"./CRQ2IRDD.js";import{A as u,B as o,E as b,G as v,g as C,i as r,n as d,y as n,z as h}from"./SFNDPCJ7.js";import{e as g}from"./EZM4ZDQI.js";import"./43P4WOC4.js";import{b as y}from"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{q:c,rb:$},{h:F}])=>{var l={label:"label",fieldList:"field-list",fab:"fab"},w=C`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;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}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}`,p=class extends u{constructor(){super(...arguments),this._messages=P(),this.pieChartPopover=null,this.sortOrderElement=n(),this.categoryElement=n(),this.numericFieldsElement=n(),this.onPieChartDataChange=e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:t}=e.detail,i=[...e.detail.value];switch(t){case s.aggregation:this.model.aggregationType=i[0]!==y.NoAggregation?i[0]:"";break;case s.category:{let a=i[0]?.trim()||"";this.updateMode(a);let f=this.model.numericFields;f.length>1&&a!==c&&(this.model.numericFields=[f[0]]),this.model.category=a,this.model.colorMatch=!0;break}case s.numericFields:i.length>1&&(this.updateMode(c),this.model.category=c),this.model.numericFields=i;break;case s.sortOrder:this.model.setSortOrder(i[0]);break;default:break}}}catch(t){throw t instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}this.requestUpdate()},this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverClose=e=>{this.pieChartPopover===e?.target&&this.removePieChartDataPopover()},this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=d(),this.arcgisChartsConfigPieChartDataNumericFieldValidate=d()}static{this.properties={messageOverrides:0,model:0,layerFieldsInfo:0}}static{this.styles=w}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model"))}disconnectedCallback(){super.disconnectedCallback(),this.removePieChartDataPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}buildNumericFieldItem(e){return k(e,r`<calcite-list-item .label=${m(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}onSortOrderSelect(e){this.contentKind=s.sortOrder,this.setupPopover(e)}onCategorySelect(e){this.contentKind=s.category,this.setupPopover(e)}onAddNumericFields(e){this.contentKind=s.numericFields,this.setupPopover(e)}onRemoveNumericField(e){let t=e.target.value;this.model.numericFields=this.model.numericFields.filter(i=>i!==t)}onShowDataLabelsChange(e){this.model.dataLabelsVisibility=e.target.checked}updateMode(e){let t=e!==c&&e.trim()!=="";this.model.mode=t?g.Category:g.Fields}setupPopover(e){e.stopImmediatePropagation(),this.removePieChartDataPopover();let t,i,a;switch(this.contentKind){case s.category:t=this.categoryElement.value,i=this._messages.categoryHeader,a=this.model.category;break;case s.numericFields:t=this.numericFieldsElement.value,i=this._messages.numericFieldsMultipleHeader,a=this.model.numericFields;break;case s.sortOrder:t=this.sortOrderElement.value,i=this._messages.sortOrderHeader,a=this.model.getSortOrder();break}this.pieChartPopover=b(r`<arcgis-charts-config-pie-chart-popover .headingTitle=${i} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${a} @arcgisChartsConfigPieChartDataPopoverChange=${this.onPieChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-pie-chart-popover>`),!document.body.contains(this.pieChartPopover)&&this.pieChartPopover!==null&&document.body.appendChild(this.pieChartPopover)}getCorrectedCategoryValue(){return F({fieldName:this.model.category,fieldList:this.layerFieldsInfo})?"":m(this.layerFieldsInfo,this.model.category)}removePieChartDataPopover(){this.pieChartPopover!==null&&(this.pieChartPopover.open=!1,this.pieChartPopover=E(this.pieChartPopover))}renderSorting(){return r`<arcgis-charts-config-field-select .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${h(this.sortOrderElement)}></arcgis-charts-config-field-select>`}renderCategory(){let e=this.getCorrectedCategoryValue();return r`<arcgis-charts-config-field-select .label=${e} @click=${this.onCategorySelect} ${h(this.categoryElement)}></arcgis-charts-config-field-select>`}renderNumericFields(e){let t=$(this.model.layer).idField,i=[];for(let a of e)a!==t&&i.push(this.buildNumericFieldItem(a));return r`<calcite-list label class=${o(l.fieldList)} ${h(this.numericFieldsElement)}>${i}</calcite-list>`}render(){let e=this.renderCategory(),t=this.renderSorting(),i=this.renderNumericFields([...this.model.numericFields]);return r`<calcite-label class=${o(l.label)}>${this._messages.category}${e}</calcite-label>${[r`<calcite-label class=${o(l.label)}>${this._messages.numericFields}${i}</calcite-label>`,r`<div class=${o(l.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div>`]}<calcite-label class=${o(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${o(l.label)}>${this._messages.sortOrder}${t}</calcite-label>`}};v("arcgis-charts-config-pie-chart-data",p);return p},a,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{g as v,h as S}from"./AUECIKS7.js";import a from"./5GQTT5YV.js";import{C as m,E as p,F as g,c}from"./IQAKPU7N.js";import{g as b}from"./FIMXZMTB.js";export default $arcgis.t(([{b:l,c:a}])=>{var d=Object.defineProperty,u=Object.getOwnPropertyDescriptor,L=(e,t,o,i)=>{for(var s=u(t,o),r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=n(t,o,s)||s);return s&&d(t,o,s),s};function Z(e){return e!==void 0&&"xAxisTitleSymbol"in e}var f=class extends l{get xAxisTitleSymbol(){return v(this._config,0)}set xAxisTitleSymbol(t){S({symbol:t,axisIndex:0,config:this._config})}};L([a],f.prototype,"xAxisTitleSymbol");var h=Object.defineProperty,O=Object.getOwnPropertyDescriptor,j=(e,t,o,i)=>{for(var s=O(t,o),r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=n(t,o,s)||s);return s&&h(t,o,s),s},A=e=>{for(let t of e.axes??[])if(t?.labels!==void 0)return t.labels.content},P=(e,t)=>{for(let o of t.axes??[])if(o!==void 0){let i=o.labels?.content.text;e===void 0?o.labels=p({text:"",visible:!0,font:m(c.AxisLabels),type:c.AxisLabels}):o.labels.content=b(e),o.labels.content.text=i}};function k(e){return e!==void 0&&"axisLabelsSymbol"in e}var x=class extends l{get axisLabelsSymbol(){return A(this._config)}set axisLabelsSymbol(t){P(t,this._config)}};j([a],x.prototype,"axisLabelsSymbol");var _=Object.defineProperty,T=Object.getOwnPropertyDescriptor,D=(e,t,o,i)=>{for(var s=T(t,o),r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=n(t,o,s)||s);return s&&_(t,o,s),s},I=e=>{for(let t of e.axes??[])if(t?.lineSymbol!==void 0)return t.lineSymbol},w=(e,t)=>{for(let o of t.axes??[])o!==void 0&&(o.lineSymbol=b(e)??g())};function q(e){return e!==void 0&&"axisLinesSymbol"in e}var y=class extends l{get axisLinesSymbol(){return I(this._config)}set axisLinesSymbol(t){w(t,this._config)}};D([a],y.prototype,"axisLinesSymbol");return{a:Z,b:f,c:k,d:x,e:q,f:y}},a)
2
+ import{g as v,h as S}from"./AUECIKS7.js";import a from"./UMBB7BPZ.js";import{C as m,E as p,F as g,c}from"./IQAKPU7N.js";import{g as b}from"./FIMXZMTB.js";export default $arcgis.t(([{b:l,c:a}])=>{var d=Object.defineProperty,u=Object.getOwnPropertyDescriptor,L=(e,t,o,i)=>{for(var s=u(t,o),r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=n(t,o,s)||s);return s&&d(t,o,s),s};function Z(e){return e!==void 0&&"xAxisTitleSymbol"in e}var f=class extends l{get xAxisTitleSymbol(){return v(this._config,0)}set xAxisTitleSymbol(t){S({symbol:t,axisIndex:0,config:this._config})}};L([a],f.prototype,"xAxisTitleSymbol");var h=Object.defineProperty,O=Object.getOwnPropertyDescriptor,j=(e,t,o,i)=>{for(var s=O(t,o),r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=n(t,o,s)||s);return s&&h(t,o,s),s},A=e=>{for(let t of e.axes??[])if(t?.labels!==void 0)return t.labels.content},P=(e,t)=>{for(let o of t.axes??[])if(o!==void 0){let i=o.labels?.content.text;e===void 0?o.labels=p({text:"",visible:!0,font:m(c.AxisLabels),type:c.AxisLabels}):o.labels.content=b(e),o.labels.content.text=i}};function k(e){return e!==void 0&&"axisLabelsSymbol"in e}var x=class extends l{get axisLabelsSymbol(){return A(this._config)}set axisLabelsSymbol(t){P(t,this._config)}};j([a],x.prototype,"axisLabelsSymbol");var _=Object.defineProperty,T=Object.getOwnPropertyDescriptor,D=(e,t,o,i)=>{for(var s=T(t,o),r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=n(t,o,s)||s);return s&&_(t,o,s),s},I=e=>{for(let t of e.axes??[])if(t?.lineSymbol!==void 0)return t.lineSymbol},w=(e,t)=>{for(let o of t.axes??[])o!==void 0&&(o.lineSymbol=b(e)??g())};function q(e){return e!==void 0&&"axisLinesSymbol"in e}var y=class extends l{get axisLinesSymbol(){return I(this._config)}set axisLinesSymbol(t){w(t,this._config)}};D([a],y.prototype,"axisLinesSymbol");return{a:Z,b:f,c:k,d:x,e:q,f:y}},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./YNA5H4OP.js";import{a as ce,b as de,g as le}from"./KGNYAMFB.js";import a from"./DHHZSYJ4.js";import{e as Q}from"./777EBGS5.js";import{d as p,r as D,z as O}from"./TA5LVOWS.js";import{L as H,a as V,ha as $,o as W,p as z,ya as Y}from"./IQAKPU7N.js";import{g as n,k as h}from"./FIMXZMTB.js";import{f as j,g as A}from"./JFQQ2ONR.js";import{H as G}from"./F7G5S2LL.js";import{a as S}from"./43P4WOC4.js";import{a as u,b as x,d as N,h as v,k as B,p as w,q as M,v as y}from"./XOB365BI.js";export default $arcgis.t(([,,,,,,,,,,,,,,,,,,,,{Bb:T,Db:E,Gb:se,Hb:ne,J:Z,L:U,M:J,N:X,Q:ee,R:te,T:F,X:re,a:K,dc:ae,m:q,n:I,nb:C,pb:ie,q:L,rb:oe},{a:ue,e:pe,f:ye,h:me}])=>{var _=(r=>(r.NONE="none",r.ROTATE="rotate",r.STAGGER="stagger",r.WRAP="wrap",r))(_||{});function Ne(r){let{configToUpdate:e,chartContainer:i,layer:t}=r,o=n(e);if(t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek===!0&&(!("firstDayOfWeek"in e)||e.firstDayOfWeek===void 0||e.firstDayOfWeek===null)){let{lang:s}=A(i??document.documentElement);try{o.firstDayOfWeek=K.local().setLocale(s.replaceAll("_","-")).startOf("week",{useLocaleWeeks:!0}).weekday}catch{}}return o}function Ve(r){let e=n(r);if(q(e)){let i=e.series[0],t=e.chartRenderer?.classBreakInfos;if(t?.length&&i?.classBreaksRules){i.classBreaksRules.colorRampInfo=i.classBreaksRules.colorRampInfo??{};let{name:o,flipped:s}=i.classBreaksRules.colorRampInfo,a=pe(t,me.esriColorRamps);if(!o&&a?.name&&(i.classBreaksRules.colorRampInfo.name=a.name),s===void 0&&a){let d=ue({numberOfClassBreaks:t.length,selectedColorRamp:a});d.length===t.length&&(i.classBreaksRules.colorRampInfo.flipped=ye(d,t))}}}return e}function We(r){let e=n(r);return h(r.axes)||(e.axes=r.axes?.map(i=>{let t=i;return delete t.calculateAutomaticMaximum,delete t.calculateAutomaticMinimum,t.title?.content.font?.style!==void 0&&(t.title.content.font.style=t.title.content.font.style.toLowerCase()),t})),e}function ze(r){let e=n(r);return h(r.series)||(e.series=r.series.map((i,t)=>{let o=i;i.id===void 0&&(o.id=`Series ${Date.now()}-${t}`);let s=S(r.series,t);return(s===u.BarSeries||s===u.LineSeries||s===u.RadarSeries)&&o.query?.outStatistics?.[0]?.statisticType==="median"&&(o.query.outStatistics[0].statisticType=x.ContinuousPercentile),s===u.BarSeries&&o.multipleBarType!==void 0&&(o.stackedType=o.multipleBarType,delete o.multipleBarType),s===u.PieSeries&&o.sliceGrouping!==void 0&&(o.sliceGrouping.sliceId=W.defaultGroupOfSlicesId,o.sliceGrouping.groupName!==void 0&&(o.sliceGrouping={...o.sliceGrouping,label:o.sliceGrouping.groupName},delete o.sliceGrouping.groupName),o.sliceGrouping.groupSliceSymbol!==void 0&&(o.sliceGrouping={...o.sliceGrouping,fillSymbol:o.sliceGrouping.groupSliceSymbol},delete o.sliceGrouping.groupSliceSymbol)),o})),e}function fe(r,e){let i=[];return r.forEach(t=>{if(!D(t)){let o=O(t,!1);if(o.fieldToSort!==void 0){let s=T({queryObject:e,fieldToMatch:o.fieldToSort});s!==void 0&&i.push(o.orderBy===void 0?s:`${s} ${o.orderBy}`)}}}),i}async function He(r){let{configToUpdate:e,layer:i,abortSignal:t}=r,o={...e},s=i;if(!s){let a=le(e)?e.iLayer:e.dataSource?.layer;a&&(s=await C(a,t))}if(s){let a=F(o.series),d=S(o.series),b=o.series&&o.series.length>0&&o.series[0].x.trim()===""||d===u.GaugeSeries&&!ae(e)||a===p.PieFromFields||a===p.BarAndLineFromFields||a===p.BoxPlotMonoField||a===p.BoxPlotMonoFieldAndSplitBy||a===p.BoxPlotMultiFields||a===p.BoxPlotMultiFieldsAndSplitBy,je=d===u.ScatterSeries||d===u.HeatSeries||a===p.BarAndLineNoAggregation||a===p.BarAndLineSplitByNoAggregation||a===p.BoxPlotMonoField||a===p.BoxPlotMonoFieldAndSplitBy||a===p.BoxPlotMonoFieldAndCategory||a===p.BoxPlotMonoFieldAndCategoryAndSplitBy||a===p.PieNoAggregation;if(o.series=e.series.map(l=>{let c={...l};if(b||(c.x=T({queryObject:s,fieldToMatch:l.x})),"y"in c&&je){let m=c.y;if(Array.isArray(m)){let f=E({fieldsList:m,queryObject:s});f!==void 0&&"y"in c&&(c.y=f)}else"y"in c&&typeof m=="string"&&(c.y=T({queryObject:s,fieldToMatch:m}))}if(l.query!==void 0){let{where:m,groupByFieldsForStatistics:f,outStatistics:g}=l.query;if(f=E({fieldsList:f,queryObject:s}),g!==void 0&&(g=g.map(P=>{let k={...P};return k.onStatisticField=T({queryObject:s,fieldToMatch:P.onStatisticField}),k})),m!==void 0&&a===p.BarAndLineSplitBy){let P=ee(l.query?.where),k=te({where:l.query?.where,normalize:!1,escape:!1});m=`${T({queryObject:s,fieldToMatch:P})}=${k}`}c.query!==void 0&&(m!==void 0&&(c.query.where=m),f!==void 0&&(c.query.groupByFieldsForStatistics=f),g!==void 0&&(c.query.outStatistics=g))}return c}),o.series[0]?.query!==void 0){let l=o.series[0].query,{orderByFields:c}=l;c!==void 0&&c.length>0&&(c=fe(c,s),c.length>0&&l.orderByFields!==void 0&&(o.series[0].query.orderByFields=c))}if(o.orderOptions?.orderByFields!==void 0){let{orderByFields:l}=o.orderOptions;l!==void 0&&l.length>0&&(l=fe(l,s),l.length>0&&(o.orderOptions.orderByFields=l))}if(d===u.GaugeSeries&&e.axes?.[0]!==void 0){let{minimumFromField:l,maximumFromField:c}=e.axes[0];if(l!==void 0){let m=typeof l=="string"?l:l.onStatisticField,f=T({queryObject:s,fieldToMatch:m}),g=l;typeof e.axes[0].minimumFromField=="string"?g=f:typeof l=="object"&&(g={...l,onStatisticField:f}),e.axes[0].minimumFromField=g}if(c!==void 0){let m=typeof c=="string"?c:c.onStatisticField,f=T({queryObject:s,fieldToMatch:m}),g=c;typeof e.axes[0].maximumFromField=="string"?g=f:typeof c=="object"&&(g={...c,onStatisticField:f}),e.axes[0].maximumFromField=g}}}return o}function $e(r){let e=n(r);if(!h(r.series)&&S(r.series)===u.BoxPlotSeries){let i=e.series[0];i&&(i.showOutliers!==void 0&&(r.showOutliers===void 0&&(e.showOutliers=i.showOutliers),delete i.showOutliers),i.standardizeValues!==void 0&&(r.standardizeValues===void 0&&(e.standardizeValues=i.standardizeValues),delete i.standardizeValues),i.showMean!==void 0&&(r.showMean===void 0&&(e.showMean=i.showMean),delete i.showMean))}return e}function Ye(r){let e={orderType:y.Category,orderBy:v.Ascending},i=r.query?.orderByFields?.[0];if(i!==void 0){let{outStatisticFieldName:t,statisticType:o}=r.query?.outStatistics?.[0]??{},s=O(i);t!==void 0&&s.fieldToSort===t&&o!==void 0&&(o===x.Average||o==="mean"?e.orderType=y.Mean:o===x.ContinuousPercentile&&(e.orderType=y.Median)),e.orderBy=s.orderBy??v.Ascending}return e}function Qe(r){let e=!1,i=Array.from(new Set(r.series.map(t=>t.type)));return i.length===2&&i.includes(u.BoxPlotSeries)&&i.includes(u.LineSeries)&&(e=r.series.find(t=>t.type===u.LineSeries)?.query?.outStatistics?.[0]!==void 0),e}function Ke(r){let e=n(r);if(!h(e.series)&&S(r.series)===u.BoxPlotSeries){if(e.orderOptions?.data===void 0){let i=Ye(r.series[0]);i.orderType!==void 0&&(e.orderOptions??={},e.orderOptions.data={orderType:i.orderType,orderBy:i.orderBy})}if(e.series=r.series.map(i=>{let t=i;return h(t.x?.trim())&&(t.x=z),delete t.query?.orderByFields,t}),Qe(e)){e.showMean=!0;let i=e.series.find(t=>t.type===u.BoxPlotSeries);e.series.forEach(t=>{t.type===u.LineSeries&&(delete t.query?.groupByFieldsForStatistics,delete t.query?.outStatistics,delete t.query?.orderByFields,i&&(t.y=i.y))})}e.series=r.series.map(i=>{let t=i;return delete t.query?.outStatistics,t})}return e}function Ze(r){let e=n(r);return e.legend!==void 0&&!Number.isFinite(e.legend.maxHeight)&&(e.legend.maxHeight=void 0),e}function Je(r){let e=n(r);return"dataSource"in e&&e.dataSource.layer&&(e.iLayer=e.dataSource.layer,delete e.dataSource),e}function Xe(r){let e=n(r),i=new Set,t=e.id??"";return i.add(t),e.series.forEach(o=>{let s=o.id;i.has(s)&&(s=`${s}_${Date.now()}`,o.id=s),i.add(s)}),e}async function et(r){let{configToUpdate:e,layer:i,chartContainer:t,abortSignal:o}=r,s=n(e);if(s=We(s),s=ze(s),s=await He({configToUpdate:s,layer:i,abortSignal:o}),I(s)){let a=$e(s);s=Ke(a)}return s=Ze(s),s=Xe(s),q(s)&&!Q(i)&&(s=Ne({configToUpdate:s,chartContainer:t,layer:i})),s}function tt(r){let e=n(r);return e?.orderOptions?.orderByFields!==void 0&&F(r.series)===p.PieFromFields&&(e.orderOptions.orderByFields=r?.orderOptions?.orderByFields?.map(i=>{let t=n(i);return i!==void 0&&i.includes("arcgis_charts_pie_category_from_fields_name")&&(t=i.replace("arcgis_charts_pie_category_from_fields_name",L)),t})),e}function rt(r){let e=n(r);if(!h(r.series)&&e.axes?.[0]!==void 0&&S(r.series)===u.GaugeSeries&&r.axes?.[0]!==void 0){let i=r.axes[0];i.ticks!==void 0&&Object.hasOwn(i.ticks,"spacing")&&delete i.ticks.spacing,e.axes[0]=i}return e}function it(r){let e=n(r),{extent:i}=e.series[0]?.query??{};return i!==void 0&&(e.dataFilters={...e.dataFilters,geometry:i},e.series.forEach(t=>{"query"in t&&"extent"in t.query&&delete t.query.extent})),e}function Ee(r){let e=n(r);return h(r.series)||(ce(r)&&r.rotated===void 0&&(e.rotated=r.series[0].rotated??$()),e.series.forEach(i=>{i.rotated!==void 0&&delete i.rotated})),e}function ot(r){let e=n(r),i=r.dataSource;return"dataSource"in e&&!h(i)&&(i.type==="featureLayer"&&e.dataSource!==void 0&&(e.dataSource.type="layer"),"featureLayer"in i&&(e.dataSource.layer=i.featureLayer,delete e.dataSource.featureLayer)),e}function st(r){let e=n(r);if("dataSource"in r){let i=r.dataSource;if(i.filter!==void 0&&i.filter.trim()!==""){let t=ne([i.filter,e.dataFilters?.where]);e.dataFilters={...e.dataFilters,where:t},delete e.dataSource.filter}}return e}function nt(r){return r!=="originalValue"}function _e(r){let e;switch(r){case"mean":e=y.Mean;break;case"median":e=y.Median;break;case"category":e=y.Category;break}return e}function at(r){let e=n(r);if(!h(r.series)&&S(r.series)===u.PieSeries){let i=e.series[0];if(i){if(i.sortLabelsBy==="originalValue")e.sortLabelsBy=i.sortLabelsBy;else if(i.sortLabelsBy!==void 0&&e.orderOptions?.data===void 0){let t=R(e);t!==void 0&&(e.orderOptions??={},e.orderOptions.data=t)}i.sortLabelsBy&&delete i.sortLabelsBy}}return e}function ct(r){let e=n(r);return h(r.series)||(de(r)&&r.stackedType===void 0&&(e.stackedType=r.series[0].stackedType??Y()),e.series.forEach(i=>{"stackedType"in i&&delete i.stackedType})),e}function dt(r){let e=n(r),i=r.sortOptions?.sortSeriesBy;return e.orderOptions===void 0&&typeof i=="string"&&(e.orderOptions??={},e.orderOptions.series={orderBy:i==="DESC"?v.Descending:v.Ascending}),e}function lt(r){let e=n(r);return e.colorMatch===void 0&&e.series[0]?.colorType!==void 0&&(e.colorMatch=e.series[0]?.colorType===N.Match),e.series.forEach(i=>{i.colorType!==void 0&&delete i.colorType}),e}function ut(r){let e=n(r);if(e.sortDataBy!==void 0){if(e.orderOptions?.data===void 0){let i=r.sortDataBy,t=_e(i?.sortType);t&&t!==y.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:t,orderBy:i?.sortOrder??v.Ascending})}delete e.sortDataBy}return e}function pt(r){let e=n(r);return e.axes?.forEach(i=>{i!==void 0&&i.scrollbarVisible!==void 0&&i.scrollbar?.visible===void 0&&(i.scrollbar={...i.scrollbar,visible:i.scrollbarVisible},delete i.scrollbarVisible)}),e}function yt(r){let e=n(r),i=e.series[0]?.query?.orderByFields;if(i!==void 0&&i.length>0&&e.orderOptions?.orderByFields===void 0){e.orderOptions??={};let t=!0;if(i.length===1){let{fieldToSort:o,orderBy:s}=O(i[0]),a;o===r.series[0].x||o===L?a=y.Category:"y"in r.series[0]&&o===r.series[0].y&&(a=y.YValue),a&&a!==y.MultiAxes&&(t=!1,e.orderOptions.data===void 0&&(e.orderOptions.data={orderType:a,orderBy:s?.toUpperCase()==="DESC"?v.Descending:v.Ascending}))}t&&(e.orderOptions.orderByFields=i)}return e.series.forEach(t=>{delete t.query?.orderByFields}),e}function R(r){let e,i=r.orderOptions?.orderByFields?.[0];if(r.series?.length>0){let t=S(r.series),o=F(r.series);if(t!==u.PieSeries&&o!==p.BarAndLineFromFields&&(i=i??r.series[0].x),i&&!D(i)){let{fieldToSort:s,orderBy:a}=O(i),d;s===r.series[0].x||s===L?d=y.Category:"y"in r.series[0]&&s===r.series[0].y&&(d=y.YValue),d&&d!==y.MultiAxes&&(e={orderType:d,orderBy:a?.toUpperCase()==="DESC"?v.Descending:v.Ascending})}}return e}function mt(r){let e=n(r),i=r,t=r,o=r,s=r,a=r;if(e){if(e.orderOptions?.series===void 0&&i.sortOptions?.sortSeriesBy!==void 0&&(e.orderOptions??={},e.orderOptions.series={preferLabel:nt(t.sortLabelsBy??i.sortOptions.sortSeriesBy.sortType),orderBy:i.sortOptions.sortSeriesBy.sortOrder??v.Ascending}),t.sortLabelsBy==="originalValue"||s.orderOptions?.data?.preferDataLabel===!1||a.orderOptions?.data?.preferLabel===!1)e.orderOptions?.data&&delete e.orderOptions.data;else if(e.orderOptions?.data===void 0)if(S(e.series)===u.BoxPlotSeries){if(t.sortLabelsBy||o.sortOptions?.sortDataBy!==void 0){let d=_e(o.sortOptions?.sortDataBy?.sortType);d&&d!==y.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:d,orderBy:o.sortOptions?.sortDataBy?.sortOrder??v.Ascending})}}else{let d=R(e);d!==void 0&&(e.orderOptions??={},e.orderOptions.data=d)}"sortLabelsBy"in e&&delete e.sortLabelsBy,"sortOptions"in e&&delete e.sortOptions}return e}function ft(r){let e=n(r);if(e){let i=F(e.series);if((i===p.BarAndLineFromFields||i===p.PieFromFields)&&e.orderOptions?.data===void 0&&e.orderOptions?.orderByFields!==void 0){let t=R(e);t!==void 0&&(e.orderOptions??={},e.orderOptions.data=t,delete e.orderOptions.orderByFields)}}return e}function gt(r){let e=n(r);return e.horizontalAxisLabelsBehavior===_.NONE&&(e.horizontalAxisLabelsBehavior=w.Hide),e.verticalAxisLabelsBehavior===_.NONE&&(e.verticalAxisLabelsBehavior=w.Hide),e}function vt(r){let e=n(r),i=e.series[0];if(i&&!i.temporalBinning&&re(e.series[0])&&("timeIntervalSize"in i||"timeIntervalUnits"in i||"timeAggregationType"in i||"trimIncompleteTimeInterval"in i||"nullPolicy"in i)){if(i.temporalBinning={},i.timeIntervalSize!==void 0&&(i.temporalBinning.size=i.timeIntervalSize,delete i.timeIntervalSize),i.timeIntervalUnits){let t;switch(i.timeIntervalUnits){case"esriTimeUnitsSeconds":t=B.Second;break;case"esriTimeUnitsMinutes":t=B.Minute;break;case"esriTimeUnitsHours":t=B.Hour;break;case"esriTimeUnitsDays":t=B.Day;break;case"esriTimeUnitsWeeks":t=B.Week;break;case"esriTimeUnitsMonths":t=B.Month;break;case"esriTimeUnitsYears":t=B.Year;break}t!==void 0&&(i.temporalBinning.unit=t),delete i.timeIntervalUnits}i.timeAggregationType&&(i.temporalBinning.timeAggregationType=i.timeAggregationType,delete i.timeAggregationType),i.trimIncompleteTimeInterval!==void 0&&(i.temporalBinning.trimIncompleteTimeInterval=i.trimIncompleteTimeInterval,delete i.trimIncompleteTimeInterval),i.nullPolicy&&(i.temporalBinning.nullPolicy=i.nullPolicy,delete i.nullPolicy)}return e}function ht(r){let e=n(r);return e.series.forEach(i=>{i.query?.outStatistics?.forEach(t=>{t.statisticType==="percentile_cont"?t.statisticType=x.ContinuousPercentile:t.statisticType==="percentile_disc"&&(t.statisticType=x.DiscretePercentile)})}),e}function St(r){let e=n(r);return e.subtitle===void 0&&e.subTitle&&(e.subtitle=e.subTitle),delete e.subTitle,e}function Bt(r){let e=n(r),i=e.series[0];return i?.temporalBinning&&delete i.temporalBinning?.type,e}function Tt(r){let e=n(r),i=e.series[0],t=r;return t.series[0]?.xTemporalBinning&&(i.xTemporalBinning={...t.series[0]?.xTemporalBinning,type:u.CalendarDateParts}),t.series[0]?.yTemporalBinning&&(i.yTemporalBinning={...t.series[0]?.yTemporalBinning,type:u.CalendarDateParts}),e}function xt(r){let e=n(r);return e=tt(e),e}function ge(r){let e=n(r);return e=rt(e),e}function ve(r){let e=n(r);return e=it(e),e}function he(r){let e=n(r);return e=Ee(e),e}function Se(r){let e=n(r);return e=ot(e),e}function Be(r){let e=n(r);return e=st(e),e}function Te(r){let e=n(r);return e=at(e),e}function xe(r){let e=n(r);return e=dt(e),e}function be(r){let e=n(r);return e=lt(e),e}function Oe(r){return pt(r)}function Fe(r){let e=n(r);return I(e)&&(e=ut(e)),e}function Ce(r){return ct(r)}function Pe(r){return mt(r)}function ke(r){return Je(r)}function Ae(r){return ft(r)}function Le(r){return gt(r)}function we(r){return vt(r)}function Me(r){return ht(r)}function De(r){let e=n(r);return e=Ee(e),St(e)}function qe(r){let e=n(r);return e=Bt(e),e}function Ie(r){let e=n(r);return e=Tt(e),e}function Ue(r){let e=n(r);return e=Ve(e),e}function bt(r){let{versionsToConvert:e,configToUpdate:i}=r,t=n(i);return e.length>0&&t!==void 0&&(t=yt(t),e.includes(U)||e.includes(J)?(t=xt(t),t=ge(t),t=ve(t),t=he(t),t=Se(t),t=Be(t),t=Te(t),t=xe(t),t=be(t),t=Oe(t),t=Fe(t),t=Ce(t),t=Pe(t),t=ke(t),t=Ae(t),t=Le(t),t=we(t),t=Me(t),t=De(t),t=qe(t),t=Ie(t),t=Ue(t)):e.forEach(o=>{if(t!==void 0)switch(o){case"1.0.1":t=ge(t);break;case"3.4.0":t=ve(t);break;case"4.0.0":t=he(t);break;case"4.0.1":t=Se(t);break;case"6.4.0":t=Be(t);break;case"7.5.1":t=Te(t);break;case"8.0.0":t=xe(t);break;case"9.2.0":t=be(t);break;case"9.7.0":t=Oe(t);break;case"10.0.0":t=Fe(t);break;case"11.0.0":t=Ce(t);break;case"14.0.1":t=Pe(t);break;case"16.0.0":t=ke(t);break;case"16.1.0":t=Ae(t);break;case"18.1.3":t=Le(t);break;case"20.1.0":t=we(t);break;case"21.0.0":t=Me(t);break;case"23.2.0":t=De(t);break;case"24.7.0":t=qe(t);break;case"24.8.0":t=Ie(t);break;case"25.0.0":t=Ue(t);break}}),t.version=V),t}async function Re(r,e,i,t){let o=r;if(r){let s=Z(e);await s?.load({signal:t}),o=await et({configToUpdate:r,layer:s,chartContainer:i,abortSignal:t});let a=r.version??U,{versionStatus:d,versions:b}=X(a);(d===M.Older||d===M.Unrecognized)&&(o=bt({versionsToConvert:b,configToUpdate:o}))}return o}var Ge=class extends EventTarget{constructor(...e){super(),this.dirtyAsyncSetters=[],this.asyncConfigUpdateInProgress=!1,this.pendingUpdates=0,this.dataStore={},this.asyncUpdatesPromise=new Promise(i=>{this.resolveSetup=i}),this.emitConfigUpdate=i=>{this.dispatchEvent(new CustomEvent("arcgisChartsModelConfigChange",{detail:{config:this._config,setterName:i}}))},this.guardSetterFromAsyncOverwrite=async i=>{i(),this.asyncConfigUpdateInProgress&&(await this.asyncUpdatesPromise,i())}}get chartType(){return this._chartType}isSameChartAs(e){let i=e?.layer;return i!==void 0&&this._config.id===e?.chartId&&this.layerInfo?.layer.id===i.id}async update(){await this.asyncUpdatesPromise}async loadConfigFromLayer(e){let{layer:i,iLayer:t,config:o,commonStrings:s}=e;this.commonStrings=s??await j(A(document.documentElement).t9nLocale,G("./assets/common/t9n"),"messages.");let a=i;if(!a&&t?a=await C(t):!a&&o?.iLayer&&(a=await C(o.iLayer)),a){await se(a);let d=ie(a,!0),b=oe(a).idField;this.layerInfo={layer:a,layerFieldsInfo:d,objectIdField:b}}this._config=o?await Re(o):this.generateDefaultConfig(),this._config.legend!==void 0&&this._config.legend?.title===void 0&&(this._config.legend.title=H().title),t&&(this._config.iLayer=t)}startAsyncUpdate(){this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!0,this.asyncUpdatesPromise=new Promise(e=>{this.resolveSetup=e})),this.pendingUpdates+=1}finishAsyncUpdate(){this.pendingUpdates-=1,this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!1,this.resolveSetup?.())}};function pr(r,e,i){let t=i.set,o=i.value;return t&&(i.set=function(s){this.guardSetterFromAsyncOverwrite(()=>{t.call(this,s),this.emitConfigUpdate(e)})}),o&&(i.value=function(...s){this.guardSetterFromAsyncOverwrite(()=>{o.apply(this,s),this.emitConfigUpdate(e)})}),i}return{a:Re,b:Ge,c:pr}},"layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","core/promiseUtils","request","geometry/Point","applications/Components/imageryUtils","AttributeBinsGraphic","layers/support/CodedValueDomain","intl","core/sql","geometry/Extent",a,b)
2
+ import b from"./MULA23EX.js";import{a as ce,b as de,g as le}from"./KGNYAMFB.js";import a from"./HWNY4AMD.js";import{e as Q}from"./777EBGS5.js";import{d as p,r as D,z as O}from"./TA5LVOWS.js";import{L as H,a as V,ha as $,o as W,p as z,ya as Y}from"./IQAKPU7N.js";import{g as n,k as h}from"./FIMXZMTB.js";import{f as j,g as A}from"./CRQ2IRDD.js";import{H as G}from"./SFNDPCJ7.js";import{a as S}from"./43P4WOC4.js";import{a as u,b as x,d as N,h as v,k as B,p as w,q as M,v as y}from"./XOB365BI.js";export default $arcgis.t(([,,,,,,,,,,,,,,,,,,,,{Bb:T,Db:E,Gb:se,Hb:ne,J:Z,L:U,M:J,N:X,Q:ee,R:te,T:F,X:re,a:K,dc:ae,m:q,n:I,nb:C,pb:ie,q:L,rb:oe},{a:ue,e:pe,f:ye,h:me}])=>{var _=(r=>(r.NONE="none",r.ROTATE="rotate",r.STAGGER="stagger",r.WRAP="wrap",r))(_||{});function Ne(r){let{configToUpdate:e,chartContainer:i,layer:t}=r,o=n(e);if(t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek===!0&&(!("firstDayOfWeek"in e)||e.firstDayOfWeek===void 0||e.firstDayOfWeek===null)){let{lang:s}=A(i??document.documentElement);try{o.firstDayOfWeek=K.local().setLocale(s.replaceAll("_","-")).startOf("week",{useLocaleWeeks:!0}).weekday}catch{}}return o}function Ve(r){let e=n(r);if(q(e)){let i=e.series[0],t=e.chartRenderer?.classBreakInfos;if(t?.length&&i?.classBreaksRules){i.classBreaksRules.colorRampInfo=i.classBreaksRules.colorRampInfo??{};let{name:o,flipped:s}=i.classBreaksRules.colorRampInfo,a=pe(t,me.esriColorRamps);if(!o&&a?.name&&(i.classBreaksRules.colorRampInfo.name=a.name),s===void 0&&a){let d=ue({numberOfClassBreaks:t.length,selectedColorRamp:a});d.length===t.length&&(i.classBreaksRules.colorRampInfo.flipped=ye(d,t))}}}return e}function We(r){let e=n(r);return h(r.axes)||(e.axes=r.axes?.map(i=>{let t=i;return delete t.calculateAutomaticMaximum,delete t.calculateAutomaticMinimum,t.title?.content.font?.style!==void 0&&(t.title.content.font.style=t.title.content.font.style.toLowerCase()),t})),e}function ze(r){let e=n(r);return h(r.series)||(e.series=r.series.map((i,t)=>{let o=i;i.id===void 0&&(o.id=`Series ${Date.now()}-${t}`);let s=S(r.series,t);return(s===u.BarSeries||s===u.LineSeries||s===u.RadarSeries)&&o.query?.outStatistics?.[0]?.statisticType==="median"&&(o.query.outStatistics[0].statisticType=x.ContinuousPercentile),s===u.BarSeries&&o.multipleBarType!==void 0&&(o.stackedType=o.multipleBarType,delete o.multipleBarType),s===u.PieSeries&&o.sliceGrouping!==void 0&&(o.sliceGrouping.sliceId=W.defaultGroupOfSlicesId,o.sliceGrouping.groupName!==void 0&&(o.sliceGrouping={...o.sliceGrouping,label:o.sliceGrouping.groupName},delete o.sliceGrouping.groupName),o.sliceGrouping.groupSliceSymbol!==void 0&&(o.sliceGrouping={...o.sliceGrouping,fillSymbol:o.sliceGrouping.groupSliceSymbol},delete o.sliceGrouping.groupSliceSymbol)),o})),e}function fe(r,e){let i=[];return r.forEach(t=>{if(!D(t)){let o=O(t,!1);if(o.fieldToSort!==void 0){let s=T({queryObject:e,fieldToMatch:o.fieldToSort});s!==void 0&&i.push(o.orderBy===void 0?s:`${s} ${o.orderBy}`)}}}),i}async function He(r){let{configToUpdate:e,layer:i,abortSignal:t}=r,o={...e},s=i;if(!s){let a=le(e)?e.iLayer:e.dataSource?.layer;a&&(s=await C(a,t))}if(s){let a=F(o.series),d=S(o.series),b=o.series&&o.series.length>0&&o.series[0].x.trim()===""||d===u.GaugeSeries&&!ae(e)||a===p.PieFromFields||a===p.BarAndLineFromFields||a===p.BoxPlotMonoField||a===p.BoxPlotMonoFieldAndSplitBy||a===p.BoxPlotMultiFields||a===p.BoxPlotMultiFieldsAndSplitBy,je=d===u.ScatterSeries||d===u.HeatSeries||a===p.BarAndLineNoAggregation||a===p.BarAndLineSplitByNoAggregation||a===p.BoxPlotMonoField||a===p.BoxPlotMonoFieldAndSplitBy||a===p.BoxPlotMonoFieldAndCategory||a===p.BoxPlotMonoFieldAndCategoryAndSplitBy||a===p.PieNoAggregation;if(o.series=e.series.map(l=>{let c={...l};if(b||(c.x=T({queryObject:s,fieldToMatch:l.x})),"y"in c&&je){let m=c.y;if(Array.isArray(m)){let f=E({fieldsList:m,queryObject:s});f!==void 0&&"y"in c&&(c.y=f)}else"y"in c&&typeof m=="string"&&(c.y=T({queryObject:s,fieldToMatch:m}))}if(l.query!==void 0){let{where:m,groupByFieldsForStatistics:f,outStatistics:g}=l.query;if(f=E({fieldsList:f,queryObject:s}),g!==void 0&&(g=g.map(P=>{let k={...P};return k.onStatisticField=T({queryObject:s,fieldToMatch:P.onStatisticField}),k})),m!==void 0&&a===p.BarAndLineSplitBy){let P=ee(l.query?.where),k=te({where:l.query?.where,normalize:!1,escape:!1});m=`${T({queryObject:s,fieldToMatch:P})}=${k}`}c.query!==void 0&&(m!==void 0&&(c.query.where=m),f!==void 0&&(c.query.groupByFieldsForStatistics=f),g!==void 0&&(c.query.outStatistics=g))}return c}),o.series[0]?.query!==void 0){let l=o.series[0].query,{orderByFields:c}=l;c!==void 0&&c.length>0&&(c=fe(c,s),c.length>0&&l.orderByFields!==void 0&&(o.series[0].query.orderByFields=c))}if(o.orderOptions?.orderByFields!==void 0){let{orderByFields:l}=o.orderOptions;l!==void 0&&l.length>0&&(l=fe(l,s),l.length>0&&(o.orderOptions.orderByFields=l))}if(d===u.GaugeSeries&&e.axes?.[0]!==void 0){let{minimumFromField:l,maximumFromField:c}=e.axes[0];if(l!==void 0){let m=typeof l=="string"?l:l.onStatisticField,f=T({queryObject:s,fieldToMatch:m}),g=l;typeof e.axes[0].minimumFromField=="string"?g=f:typeof l=="object"&&(g={...l,onStatisticField:f}),e.axes[0].minimumFromField=g}if(c!==void 0){let m=typeof c=="string"?c:c.onStatisticField,f=T({queryObject:s,fieldToMatch:m}),g=c;typeof e.axes[0].maximumFromField=="string"?g=f:typeof c=="object"&&(g={...c,onStatisticField:f}),e.axes[0].maximumFromField=g}}}return o}function $e(r){let e=n(r);if(!h(r.series)&&S(r.series)===u.BoxPlotSeries){let i=e.series[0];i&&(i.showOutliers!==void 0&&(r.showOutliers===void 0&&(e.showOutliers=i.showOutliers),delete i.showOutliers),i.standardizeValues!==void 0&&(r.standardizeValues===void 0&&(e.standardizeValues=i.standardizeValues),delete i.standardizeValues),i.showMean!==void 0&&(r.showMean===void 0&&(e.showMean=i.showMean),delete i.showMean))}return e}function Ye(r){let e={orderType:y.Category,orderBy:v.Ascending},i=r.query?.orderByFields?.[0];if(i!==void 0){let{outStatisticFieldName:t,statisticType:o}=r.query?.outStatistics?.[0]??{},s=O(i);t!==void 0&&s.fieldToSort===t&&o!==void 0&&(o===x.Average||o==="mean"?e.orderType=y.Mean:o===x.ContinuousPercentile&&(e.orderType=y.Median)),e.orderBy=s.orderBy??v.Ascending}return e}function Qe(r){let e=!1,i=Array.from(new Set(r.series.map(t=>t.type)));return i.length===2&&i.includes(u.BoxPlotSeries)&&i.includes(u.LineSeries)&&(e=r.series.find(t=>t.type===u.LineSeries)?.query?.outStatistics?.[0]!==void 0),e}function Ke(r){let e=n(r);if(!h(e.series)&&S(r.series)===u.BoxPlotSeries){if(e.orderOptions?.data===void 0){let i=Ye(r.series[0]);i.orderType!==void 0&&(e.orderOptions??={},e.orderOptions.data={orderType:i.orderType,orderBy:i.orderBy})}if(e.series=r.series.map(i=>{let t=i;return h(t.x?.trim())&&(t.x=z),delete t.query?.orderByFields,t}),Qe(e)){e.showMean=!0;let i=e.series.find(t=>t.type===u.BoxPlotSeries);e.series.forEach(t=>{t.type===u.LineSeries&&(delete t.query?.groupByFieldsForStatistics,delete t.query?.outStatistics,delete t.query?.orderByFields,i&&(t.y=i.y))})}e.series=r.series.map(i=>{let t=i;return delete t.query?.outStatistics,t})}return e}function Ze(r){let e=n(r);return e.legend!==void 0&&!Number.isFinite(e.legend.maxHeight)&&(e.legend.maxHeight=void 0),e}function Je(r){let e=n(r);return"dataSource"in e&&e.dataSource.layer&&(e.iLayer=e.dataSource.layer,delete e.dataSource),e}function Xe(r){let e=n(r),i=new Set,t=e.id??"";return i.add(t),e.series.forEach(o=>{let s=o.id;i.has(s)&&(s=`${s}_${Date.now()}`,o.id=s),i.add(s)}),e}async function et(r){let{configToUpdate:e,layer:i,chartContainer:t,abortSignal:o}=r,s=n(e);if(s=We(s),s=ze(s),s=await He({configToUpdate:s,layer:i,abortSignal:o}),I(s)){let a=$e(s);s=Ke(a)}return s=Ze(s),s=Xe(s),q(s)&&!Q(i)&&(s=Ne({configToUpdate:s,chartContainer:t,layer:i})),s}function tt(r){let e=n(r);return e?.orderOptions?.orderByFields!==void 0&&F(r.series)===p.PieFromFields&&(e.orderOptions.orderByFields=r?.orderOptions?.orderByFields?.map(i=>{let t=n(i);return i!==void 0&&i.includes("arcgis_charts_pie_category_from_fields_name")&&(t=i.replace("arcgis_charts_pie_category_from_fields_name",L)),t})),e}function rt(r){let e=n(r);if(!h(r.series)&&e.axes?.[0]!==void 0&&S(r.series)===u.GaugeSeries&&r.axes?.[0]!==void 0){let i=r.axes[0];i.ticks!==void 0&&Object.hasOwn(i.ticks,"spacing")&&delete i.ticks.spacing,e.axes[0]=i}return e}function it(r){let e=n(r),{extent:i}=e.series[0]?.query??{};return i!==void 0&&(e.dataFilters={...e.dataFilters,geometry:i},e.series.forEach(t=>{"query"in t&&"extent"in t.query&&delete t.query.extent})),e}function Ee(r){let e=n(r);return h(r.series)||(ce(r)&&r.rotated===void 0&&(e.rotated=r.series[0].rotated??$()),e.series.forEach(i=>{i.rotated!==void 0&&delete i.rotated})),e}function ot(r){let e=n(r),i=r.dataSource;return"dataSource"in e&&!h(i)&&(i.type==="featureLayer"&&e.dataSource!==void 0&&(e.dataSource.type="layer"),"featureLayer"in i&&(e.dataSource.layer=i.featureLayer,delete e.dataSource.featureLayer)),e}function st(r){let e=n(r);if("dataSource"in r){let i=r.dataSource;if(i.filter!==void 0&&i.filter.trim()!==""){let t=ne([i.filter,e.dataFilters?.where]);e.dataFilters={...e.dataFilters,where:t},delete e.dataSource.filter}}return e}function nt(r){return r!=="originalValue"}function _e(r){let e;switch(r){case"mean":e=y.Mean;break;case"median":e=y.Median;break;case"category":e=y.Category;break}return e}function at(r){let e=n(r);if(!h(r.series)&&S(r.series)===u.PieSeries){let i=e.series[0];if(i){if(i.sortLabelsBy==="originalValue")e.sortLabelsBy=i.sortLabelsBy;else if(i.sortLabelsBy!==void 0&&e.orderOptions?.data===void 0){let t=R(e);t!==void 0&&(e.orderOptions??={},e.orderOptions.data=t)}i.sortLabelsBy&&delete i.sortLabelsBy}}return e}function ct(r){let e=n(r);return h(r.series)||(de(r)&&r.stackedType===void 0&&(e.stackedType=r.series[0].stackedType??Y()),e.series.forEach(i=>{"stackedType"in i&&delete i.stackedType})),e}function dt(r){let e=n(r),i=r.sortOptions?.sortSeriesBy;return e.orderOptions===void 0&&typeof i=="string"&&(e.orderOptions??={},e.orderOptions.series={orderBy:i==="DESC"?v.Descending:v.Ascending}),e}function lt(r){let e=n(r);return e.colorMatch===void 0&&e.series[0]?.colorType!==void 0&&(e.colorMatch=e.series[0]?.colorType===N.Match),e.series.forEach(i=>{i.colorType!==void 0&&delete i.colorType}),e}function ut(r){let e=n(r);if(e.sortDataBy!==void 0){if(e.orderOptions?.data===void 0){let i=r.sortDataBy,t=_e(i?.sortType);t&&t!==y.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:t,orderBy:i?.sortOrder??v.Ascending})}delete e.sortDataBy}return e}function pt(r){let e=n(r);return e.axes?.forEach(i=>{i!==void 0&&i.scrollbarVisible!==void 0&&i.scrollbar?.visible===void 0&&(i.scrollbar={...i.scrollbar,visible:i.scrollbarVisible},delete i.scrollbarVisible)}),e}function yt(r){let e=n(r),i=e.series[0]?.query?.orderByFields;if(i!==void 0&&i.length>0&&e.orderOptions?.orderByFields===void 0){e.orderOptions??={};let t=!0;if(i.length===1){let{fieldToSort:o,orderBy:s}=O(i[0]),a;o===r.series[0].x||o===L?a=y.Category:"y"in r.series[0]&&o===r.series[0].y&&(a=y.YValue),a&&a!==y.MultiAxes&&(t=!1,e.orderOptions.data===void 0&&(e.orderOptions.data={orderType:a,orderBy:s?.toUpperCase()==="DESC"?v.Descending:v.Ascending}))}t&&(e.orderOptions.orderByFields=i)}return e.series.forEach(t=>{delete t.query?.orderByFields}),e}function R(r){let e,i=r.orderOptions?.orderByFields?.[0];if(r.series?.length>0){let t=S(r.series),o=F(r.series);if(t!==u.PieSeries&&o!==p.BarAndLineFromFields&&(i=i??r.series[0].x),i&&!D(i)){let{fieldToSort:s,orderBy:a}=O(i),d;s===r.series[0].x||s===L?d=y.Category:"y"in r.series[0]&&s===r.series[0].y&&(d=y.YValue),d&&d!==y.MultiAxes&&(e={orderType:d,orderBy:a?.toUpperCase()==="DESC"?v.Descending:v.Ascending})}}return e}function mt(r){let e=n(r),i=r,t=r,o=r,s=r,a=r;if(e){if(e.orderOptions?.series===void 0&&i.sortOptions?.sortSeriesBy!==void 0&&(e.orderOptions??={},e.orderOptions.series={preferLabel:nt(t.sortLabelsBy??i.sortOptions.sortSeriesBy.sortType),orderBy:i.sortOptions.sortSeriesBy.sortOrder??v.Ascending}),t.sortLabelsBy==="originalValue"||s.orderOptions?.data?.preferDataLabel===!1||a.orderOptions?.data?.preferLabel===!1)e.orderOptions?.data&&delete e.orderOptions.data;else if(e.orderOptions?.data===void 0)if(S(e.series)===u.BoxPlotSeries){if(t.sortLabelsBy||o.sortOptions?.sortDataBy!==void 0){let d=_e(o.sortOptions?.sortDataBy?.sortType);d&&d!==y.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:d,orderBy:o.sortOptions?.sortDataBy?.sortOrder??v.Ascending})}}else{let d=R(e);d!==void 0&&(e.orderOptions??={},e.orderOptions.data=d)}"sortLabelsBy"in e&&delete e.sortLabelsBy,"sortOptions"in e&&delete e.sortOptions}return e}function ft(r){let e=n(r);if(e){let i=F(e.series);if((i===p.BarAndLineFromFields||i===p.PieFromFields)&&e.orderOptions?.data===void 0&&e.orderOptions?.orderByFields!==void 0){let t=R(e);t!==void 0&&(e.orderOptions??={},e.orderOptions.data=t,delete e.orderOptions.orderByFields)}}return e}function gt(r){let e=n(r);return e.horizontalAxisLabelsBehavior===_.NONE&&(e.horizontalAxisLabelsBehavior=w.Hide),e.verticalAxisLabelsBehavior===_.NONE&&(e.verticalAxisLabelsBehavior=w.Hide),e}function vt(r){let e=n(r),i=e.series[0];if(i&&!i.temporalBinning&&re(e.series[0])&&("timeIntervalSize"in i||"timeIntervalUnits"in i||"timeAggregationType"in i||"trimIncompleteTimeInterval"in i||"nullPolicy"in i)){if(i.temporalBinning={},i.timeIntervalSize!==void 0&&(i.temporalBinning.size=i.timeIntervalSize,delete i.timeIntervalSize),i.timeIntervalUnits){let t;switch(i.timeIntervalUnits){case"esriTimeUnitsSeconds":t=B.Second;break;case"esriTimeUnitsMinutes":t=B.Minute;break;case"esriTimeUnitsHours":t=B.Hour;break;case"esriTimeUnitsDays":t=B.Day;break;case"esriTimeUnitsWeeks":t=B.Week;break;case"esriTimeUnitsMonths":t=B.Month;break;case"esriTimeUnitsYears":t=B.Year;break}t!==void 0&&(i.temporalBinning.unit=t),delete i.timeIntervalUnits}i.timeAggregationType&&(i.temporalBinning.timeAggregationType=i.timeAggregationType,delete i.timeAggregationType),i.trimIncompleteTimeInterval!==void 0&&(i.temporalBinning.trimIncompleteTimeInterval=i.trimIncompleteTimeInterval,delete i.trimIncompleteTimeInterval),i.nullPolicy&&(i.temporalBinning.nullPolicy=i.nullPolicy,delete i.nullPolicy)}return e}function ht(r){let e=n(r);return e.series.forEach(i=>{i.query?.outStatistics?.forEach(t=>{t.statisticType==="percentile_cont"?t.statisticType=x.ContinuousPercentile:t.statisticType==="percentile_disc"&&(t.statisticType=x.DiscretePercentile)})}),e}function St(r){let e=n(r);return e.subtitle===void 0&&e.subTitle&&(e.subtitle=e.subTitle),delete e.subTitle,e}function Bt(r){let e=n(r),i=e.series[0];return i?.temporalBinning&&delete i.temporalBinning?.type,e}function Tt(r){let e=n(r),i=e.series[0],t=r;return t.series[0]?.xTemporalBinning&&(i.xTemporalBinning={...t.series[0]?.xTemporalBinning,type:u.CalendarDateParts}),t.series[0]?.yTemporalBinning&&(i.yTemporalBinning={...t.series[0]?.yTemporalBinning,type:u.CalendarDateParts}),e}function xt(r){let e=n(r);return e=tt(e),e}function ge(r){let e=n(r);return e=rt(e),e}function ve(r){let e=n(r);return e=it(e),e}function he(r){let e=n(r);return e=Ee(e),e}function Se(r){let e=n(r);return e=ot(e),e}function Be(r){let e=n(r);return e=st(e),e}function Te(r){let e=n(r);return e=at(e),e}function xe(r){let e=n(r);return e=dt(e),e}function be(r){let e=n(r);return e=lt(e),e}function Oe(r){return pt(r)}function Fe(r){let e=n(r);return I(e)&&(e=ut(e)),e}function Ce(r){return ct(r)}function Pe(r){return mt(r)}function ke(r){return Je(r)}function Ae(r){return ft(r)}function Le(r){return gt(r)}function we(r){return vt(r)}function Me(r){return ht(r)}function De(r){let e=n(r);return e=Ee(e),St(e)}function qe(r){let e=n(r);return e=Bt(e),e}function Ie(r){let e=n(r);return e=Tt(e),e}function Ue(r){let e=n(r);return e=Ve(e),e}function bt(r){let{versionsToConvert:e,configToUpdate:i}=r,t=n(i);return e.length>0&&t!==void 0&&(t=yt(t),e.includes(U)||e.includes(J)?(t=xt(t),t=ge(t),t=ve(t),t=he(t),t=Se(t),t=Be(t),t=Te(t),t=xe(t),t=be(t),t=Oe(t),t=Fe(t),t=Ce(t),t=Pe(t),t=ke(t),t=Ae(t),t=Le(t),t=we(t),t=Me(t),t=De(t),t=qe(t),t=Ie(t),t=Ue(t)):e.forEach(o=>{if(t!==void 0)switch(o){case"1.0.1":t=ge(t);break;case"3.4.0":t=ve(t);break;case"4.0.0":t=he(t);break;case"4.0.1":t=Se(t);break;case"6.4.0":t=Be(t);break;case"7.5.1":t=Te(t);break;case"8.0.0":t=xe(t);break;case"9.2.0":t=be(t);break;case"9.7.0":t=Oe(t);break;case"10.0.0":t=Fe(t);break;case"11.0.0":t=Ce(t);break;case"14.0.1":t=Pe(t);break;case"16.0.0":t=ke(t);break;case"16.1.0":t=Ae(t);break;case"18.1.3":t=Le(t);break;case"20.1.0":t=we(t);break;case"21.0.0":t=Me(t);break;case"23.2.0":t=De(t);break;case"24.7.0":t=qe(t);break;case"24.8.0":t=Ie(t);break;case"25.0.0":t=Ue(t);break}}),t.version=V),t}async function Re(r,e,i,t){let o=r;if(r){let s=Z(e);await s?.load({signal:t}),o=await et({configToUpdate:r,layer:s,chartContainer:i,abortSignal:t});let a=r.version??U,{versionStatus:d,versions:b}=X(a);(d===M.Older||d===M.Unrecognized)&&(o=bt({versionsToConvert:b,configToUpdate:o}))}return o}var Ge=class extends EventTarget{constructor(...e){super(),this.dirtyAsyncSetters=[],this.asyncConfigUpdateInProgress=!1,this.pendingUpdates=0,this.dataStore={},this.asyncUpdatesPromise=new Promise(i=>{this.resolveSetup=i}),this.emitConfigUpdate=i=>{this.dispatchEvent(new CustomEvent("arcgisChartsModelConfigChange",{detail:{config:this._config,setterName:i}}))},this.guardSetterFromAsyncOverwrite=async i=>{i(),this.asyncConfigUpdateInProgress&&(await this.asyncUpdatesPromise,i())}}get chartType(){return this._chartType}isSameChartAs(e){let i=e?.layer;return i!==void 0&&this._config.id===e?.chartId&&this.layerInfo?.layer.id===i.id}async update(){await this.asyncUpdatesPromise}async loadConfigFromLayer(e){let{layer:i,iLayer:t,config:o,commonStrings:s}=e;this.commonStrings=s??await j(A(document.documentElement).t9nLocale,G("./assets/common/t9n"),"messages.");let a=i;if(!a&&t?a=await C(t):!a&&o?.iLayer&&(a=await C(o.iLayer)),a){await se(a);let d=ie(a,!0),b=oe(a).idField;this.layerInfo={layer:a,layerFieldsInfo:d,objectIdField:b}}this._config=o?await Re(o):this.generateDefaultConfig(),this._config.legend!==void 0&&this._config.legend?.title===void 0&&(this._config.legend.title=H().title),t&&(this._config.iLayer=t)}startAsyncUpdate(){this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!0,this.asyncUpdatesPromise=new Promise(e=>{this.resolveSetup=e})),this.pendingUpdates+=1}finishAsyncUpdate(){this.pendingUpdates-=1,this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!1,this.resolveSetup?.())}};function pr(r,e,i){let t=i.set,o=i.value;return t&&(i.set=function(s){this.guardSetterFromAsyncOverwrite(()=>{t.call(this,s),this.emitConfigUpdate(e)})}),o&&(i.value=function(...s){this.guardSetterFromAsyncOverwrite(()=>{o.apply(this,s),this.emitConfigUpdate(e)})}),i}return{a:Re,b:Ge,c:pr}},"layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","core/promiseUtils","request","geometry/Point","applications/Components/imageryUtils","AttributeBinsGraphic","layers/support/CodedValueDomain","intl","core/sql","geometry/Extent",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as m}from"./VDJZXKAS.js";import{b as P}from"./TJQGGNGV.js";import d from"./DR5SYYCC.js";import{a as u}from"./ONA24XJN.js";import{j as r}from"./MZ2UZAFW.js";import b from"./XCHZG2NL.js";import"./KGNYAMFB.js";import a from"./DHHZSYJ4.js";import"./777EBGS5.js";import{n as y}from"./TA5LVOWS.js";import"./IQAKPU7N.js";import{f as h}from"./75Y43JLP.js";import"./FIMXZMTB.js";import"./JFQQ2ONR.js";import{A as f,B as l,G as v,g,i as s,n as o,y as c,z as p}from"./F7G5S2LL.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{sb:$},,{a:S,k:d,l:b}])=>{var n={jsAppFlyout:"js-app-flyout",scatterplotPopover:"scatter-plot-popover",fillColor:"fill-color",header:"header",pickListItemLabel:"pick-list-item-label",pickListPanel:"pick-list-panel"},k=g`.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{width:100%}.pick-list-panel{max-height:60vh}`,C=class extends f{constructor(){super(...arguments),this.picklist=c(),this._messages=u(),this.popoverElement=c(),this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigPopoverClose=o(),this.arcgisChartsConfigScatterplotFillColorChange=o(),this.arcgisChartsConfigScatterplotLineStyleChange=o(),this.arcgisChartsConfigScatterplotSizeVariableFieldChange=o(),this.arcgisChartsConfigScatterplotAdditionalTooltipFieldChange=o(),this.arcgisChartsConfigScatterplotXYFieldChange=o()}static{this.properties={messageOverrides:0,headingTitle:1,contentKind:1,selectedContent:1,referenceElement:0,placement:1,open:5,layerFieldsInfo:0}}static{this.styles=k}async reposition(){await this.popoverElement.value?.reposition()}updated(){setTimeout(()=>{this.picklist.value?.setFocus()},S.PopoverTimer),P(this.popoverElement.value,this.open)}seriesPopoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}updateSymbolProperties(e){this.selectedContent=e.target.lineStyle,this.arcgisChartsConfigScatterplotLineStyleChange.emit(e.detail)}updateColorProperties(e){this.selectedContent=e.detail,this.arcgisChartsConfigScatterplotFillColorChange.emit(e.detail)}onFieldSelectionChange(e){let t=e.target.selectedItems;this.contentKind===r.sizeVariable?this.arcgisChartsConfigScatterplotSizeVariableFieldChange.emit(t.map(i=>i.value)[0]):this.contentKind===r.additionalTooltipFields?this.arcgisChartsConfigScatterplotAdditionalTooltipFieldChange.emit(t.map(i=>i.value)[0]):this.arcgisChartsConfigScatterplotXYFieldChange.emit(t.map(i=>i.value)[0]),this.open=!1}render(){let e=this.selectedContent,t=this.selectedContent;return s`<div class=${l({[n.jsAppFlyout]:!0})}><calcite-popover class=${l(n.scatterplotPopover)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${b(this.placement)} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${p(this.popoverElement)}>${Array.isArray(e)?s`<arcgis-charts-config-color-style .header=${this._messages.fillColor} class=${l(n.fillColor)} enable-close .open=${this.open} .selectedColor=${e} @arcgisChartsConfigColorStyleClose=${this.seriesPopoverClose} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>`:null}${t?.type===h.SLS?s`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${t} @arcgisChartsConfigLineStyleClose=${this.seriesPopoverClose} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>`:null}${!Array.isArray(e)&&t?.type!==h.SLS?this.renderVariablePickList():null}</calcite-popover></div>`}renderVariablePickList(){let e=this.layerFieldsInfo?.length??0,t=[];(this.contentKind===r.sizeVariable||this.contentKind===r.additionalTooltipFields)&&t.push(m(" ",s`<calcite-list-item label=" " value=" " .selected=${d("",this.selectedContent)}></calcite-list-item>`));for(let i=0;i<e;i+=1){let a=this.layerFieldsInfo?.[i]??void 0;if(a!==void 0&&(this.contentKind===r.additionalTooltipFields||$(a))){let F=y(this.layerFieldsInfo,a.name);t.push(m(a.name,s`<calcite-list-item .label=${F} .value=${a.name} .selected=${d(a.name,this.selectedContent)}></calcite-list-item>`))}}return s`<calcite-panel class=${l(n.pickListPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${l(n.header)}>${this.headingTitle??""}</div><calcite-list label class=${l(n.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onFieldSelectionChange} ${p(this.picklist)}>${t}</calcite-list></calcite-panel>`}};v("arcgis-charts-config-scatter-plot-popover",C);return C},a,b,d)
2
+ import{a as m}from"./7YYHTEDR.js";import{b as P}from"./TJQGGNGV.js";import d from"./KELUCFO3.js";import{a as u}from"./Y5NXCJVY.js";import{j as r}from"./MZ2UZAFW.js";import b from"./5F3ROJAG.js";import"./KGNYAMFB.js";import a from"./HWNY4AMD.js";import"./777EBGS5.js";import{n as y}from"./TA5LVOWS.js";import"./IQAKPU7N.js";import{f as h}from"./75Y43JLP.js";import"./FIMXZMTB.js";import"./CRQ2IRDD.js";import{A as f,B as l,G as v,g,i as s,n as o,y as c,z as p}from"./SFNDPCJ7.js";import"./EZM4ZDQI.js";import"./43P4WOC4.js";import"./XOB365BI.js";import"./QPIMTXPL.js";export default $arcgis.t(([{sb:$},,{a:S,k:d,l:b}])=>{var n={jsAppFlyout:"js-app-flyout",scatterplotPopover:"scatter-plot-popover",fillColor:"fill-color",header:"header",pickListItemLabel:"pick-list-item-label",pickListPanel:"pick-list-panel"},k=g`.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{width:100%}.pick-list-panel{max-height:60vh}`,C=class extends f{constructor(){super(...arguments),this.picklist=c(),this._messages=u(),this.popoverElement=c(),this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigPopoverClose=o(),this.arcgisChartsConfigScatterplotFillColorChange=o(),this.arcgisChartsConfigScatterplotLineStyleChange=o(),this.arcgisChartsConfigScatterplotSizeVariableFieldChange=o(),this.arcgisChartsConfigScatterplotAdditionalTooltipFieldChange=o(),this.arcgisChartsConfigScatterplotXYFieldChange=o()}static{this.properties={messageOverrides:0,headingTitle:1,contentKind:1,selectedContent:1,referenceElement:0,placement:1,open:5,layerFieldsInfo:0}}static{this.styles=k}async reposition(){await this.popoverElement.value?.reposition()}updated(){setTimeout(()=>{this.picklist.value?.setFocus()},S.PopoverTimer),P(this.popoverElement.value,this.open)}seriesPopoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}updateSymbolProperties(e){this.selectedContent=e.target.lineStyle,this.arcgisChartsConfigScatterplotLineStyleChange.emit(e.detail)}updateColorProperties(e){this.selectedContent=e.detail,this.arcgisChartsConfigScatterplotFillColorChange.emit(e.detail)}onFieldSelectionChange(e){let t=e.target.selectedItems;this.contentKind===r.sizeVariable?this.arcgisChartsConfigScatterplotSizeVariableFieldChange.emit(t.map(i=>i.value)[0]):this.contentKind===r.additionalTooltipFields?this.arcgisChartsConfigScatterplotAdditionalTooltipFieldChange.emit(t.map(i=>i.value)[0]):this.arcgisChartsConfigScatterplotXYFieldChange.emit(t.map(i=>i.value)[0]),this.open=!1}render(){let e=this.selectedContent,t=this.selectedContent;return s`<div class=${l({[n.jsAppFlyout]:!0})}><calcite-popover class=${l(n.scatterplotPopover)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${b(this.placement)} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${p(this.popoverElement)}>${Array.isArray(e)?s`<arcgis-charts-config-color-style .header=${this._messages.fillColor} class=${l(n.fillColor)} enable-close .open=${this.open} .selectedColor=${e} @arcgisChartsConfigColorStyleClose=${this.seriesPopoverClose} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>`:null}${t?.type===h.SLS?s`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${t} @arcgisChartsConfigLineStyleClose=${this.seriesPopoverClose} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>`:null}${!Array.isArray(e)&&t?.type!==h.SLS?this.renderVariablePickList():null}</calcite-popover></div>`}renderVariablePickList(){let e=this.layerFieldsInfo?.length??0,t=[];(this.contentKind===r.sizeVariable||this.contentKind===r.additionalTooltipFields)&&t.push(m(" ",s`<calcite-list-item label=" " value=" " .selected=${d("",this.selectedContent)}></calcite-list-item>`));for(let i=0;i<e;i+=1){let a=this.layerFieldsInfo?.[i]??void 0;if(a!==void 0&&(this.contentKind===r.additionalTooltipFields||$(a))){let F=y(this.layerFieldsInfo,a.name);t.push(m(a.name,s`<calcite-list-item .label=${F} .value=${a.name} .selected=${d(a.name,this.selectedContent)}></calcite-list-item>`))}}return s`<calcite-panel class=${l(n.pickListPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${l(n.header)}>${this.headingTitle??""}</div><calcite-list label class=${l(n.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onFieldSelectionChange} ${p(this.picklist)}>${t}</calcite-list></calcite-panel>`}};v("arcgis-charts-config-scatter-plot-popover",C);return C},a,b,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./5GQTT5YV.js";import{h as d}from"./TA5LVOWS.js";export default $arcgis.t(([{b:c,c:n}])=>{var h=Object.defineProperty,m=Object.getOwnPropertyDescriptor,f=(t,e,a,u)=>{for(var r=m(e,a),i=t.length-1,s;i>=0;i--)(s=t[i])&&(r=s(e,a,r)||r);return r&&h(e,a,r),r};function S(t){return t!==void 0&&"rotated"in t}var p=t=>d(t),g=(t,e)=>{e.rotated=t},o=class extends c{get rotatedState(){return p(this._config)}set rotatedState(e){g(e,this._config)}get rotated(){return p(this._config)}set rotated(e){g(e,this._config)}};f([n],o.prototype,"rotatedState");f([n],o.prototype,"rotated");return{a:S,b:o}},a)
2
+ import a from"./UMBB7BPZ.js";import{h as d}from"./TA5LVOWS.js";export default $arcgis.t(([{b:c,c:n}])=>{var h=Object.defineProperty,m=Object.getOwnPropertyDescriptor,f=(t,e,a,u)=>{for(var r=m(e,a),i=t.length-1,s;i>=0;i--)(s=t[i])&&(r=s(e,a,r)||r);return r&&h(e,a,r),r};function S(t){return t!==void 0&&"rotated"in t}var p=t=>d(t),g=(t,e)=>{e.rotated=t},o=class extends c{get rotatedState(){return p(this._config)}set rotatedState(e){g(e,this._config)}get rotated(){return p(this._config)}set rotated(e){g(e,this._config)}};f([n],o.prototype,"rotatedState");f([n],o.prototype,"rotated");return{a:S,b:o}},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./DHHZSYJ4.js";import{e as B}from"./777EBGS5.js";import{d as $}from"./TA5LVOWS.js";import{p as O}from"./IQAKPU7N.js";import{e as m}from"./FIMXZMTB.js";import{a,c as f,e as I}from"./EZM4ZDQI.js";import{a as C}from"./43P4WOC4.js";import{a as n,b as y,h as c,v as d}from"./XOB365BI.js";export default $arcgis.t(([{Cb:S,J:_,T:h,ib:b,m:F,q:L,r:T,rb:v,s:D,t:N}])=>{function R(e,r){let s;return r===d.Category&&Array.isArray(e)?s=a.customSort:r===d.Category?s=e===c.Ascending?a.xAxisAsc:a.xAxisDesc:e===c.Ascending?s=a.yAxisAsc:s=a.yAxisDesc,s}function Z(e,r){let s;return r===d.Category&&Array.isArray(e)?s=f.customSort:s=e===c.Ascending?f.Asc:f.Desc,s}var w=e=>{let r=e.orderOptions?.data&&"orderBy"in e.orderOptions.data?e.orderOptions.data.orderBy:c.Ascending;return R(r,e.orderOptions?.data?.orderType??d.Category)},V=e=>{let r=C(e.series),s=!1;return(r===n.BarSeries||r===n.LineSeries)&&(s=w(e)===a.customSort),s},ee=e=>{let r=[],s=e.orderOptions?.data?.orderType;return V(e)&&s===d.Category&&(r=e.orderOptions?.data?.orderBy),r},re=(e,r,s,i)=>{let o=C(r.series),A=F(r);r.orderOptions??={};let t=A?[""]:c.Ascending;if(A)e===f.customSort&&s!==void 0?t=[...s]:t=e===f.Desc?c.Descending:c.Ascending,i?r.orderOptions.data={...r.orderOptions.data,orderByY:t,orderType:d.MultiAxes}:r.orderOptions.data={...r.orderOptions.data,orderByX:t,orderType:d.MultiAxes};else if(o===n.BarSeries||o===n.LineSeries){let l=d.Category;e===a.customSort&&s!==void 0?(t=[...s],r.orderOptions.data={orderType:l,orderBy:t}):(l=e===a.xAxisAsc||e===a.xAxisDesc?d.Category:d.YValue,t=e===a.xAxisAsc||e===a.yAxisAsc?c.Ascending:c.Descending,r.orderOptions.data={orderType:l,orderBy:t})}},se=e=>e?.series?.[0]?.x??"",ie=e=>{let{config:r,xAxisField:s,numericFields:i,aggregationType:o,mode:A,layer:t,numericFieldIndex:l,seriesIndex:k,splitByField:U="",fieldList:Y}=e,H=C(r.series),M=h(r.series),u;if(B(t)){let g=b(t);u=i.length===1&&i[0]===g}else{let{idField:g,isTraditionalTypeOID:P}=v(_(t));u=P&&i.length===1&&i[0]===g}let p="y",x="y";switch(H){case n.PieSeries:{o!==y.NoAggregation?A===I.Category?(p=`${o}_${i[0]}_0`.toUpperCase(),x=u?m(y.Count):m(`${o} of ${i[0]}`)):p=T:p=i[0];break}case n.BarSeries:case n.LineSeries:case n.ComboLineAndBarSeries:case n.RadarSeries:case n.HeatSeries:{if(U===""||i.length>1)E({fieldName:s,numericFields:i,fieldList:Y??[]})||M===$.BarAndLineFromFields?p=N:(p=o!==y.NoAggregation?`${o}_${i[l??0]}_${l??0}`.toUpperCase():i[l??0],x=u?m(y.Count):m(`${o} of ${i[l??0]}`));else{let g=i[0];p=o!==y.NoAggregation?`${o}_${g}_${k??0}`.toUpperCase():g,x=u?m(y.Count):m(`${o} of ${g}`)}break}}return{name:p,description:x}};function z(e){let{fieldName:r,fieldList:s}=e,i=S(s??[],r);return r===D||r===L||r===O||r===void 0||r.trim()===""||i===void 0}function E(e){let{fieldName:r,fieldList:s,numericFields:i}=e,o=i.filter(A=>S(s??[],A)?.type!=="esriFieldTypeOID");return z({fieldName:r,fieldList:s})&&(o?.length??0)>0}return{a:R,b:Z,c:w,d:ee,e:re,f:se,g:ie,h:z,i:E}},b)
2
+ import b from"./HWNY4AMD.js";import{e as B}from"./777EBGS5.js";import{d as $}from"./TA5LVOWS.js";import{p as O}from"./IQAKPU7N.js";import{e as m}from"./FIMXZMTB.js";import{a,c as f,e as I}from"./EZM4ZDQI.js";import{a as C}from"./43P4WOC4.js";import{a as n,b as y,h as c,v as d}from"./XOB365BI.js";export default $arcgis.t(([{Cb:S,J:_,T:h,ib:b,m:F,q:L,r:T,rb:v,s:D,t:N}])=>{function R(e,r){let s;return r===d.Category&&Array.isArray(e)?s=a.customSort:r===d.Category?s=e===c.Ascending?a.xAxisAsc:a.xAxisDesc:e===c.Ascending?s=a.yAxisAsc:s=a.yAxisDesc,s}function Z(e,r){let s;return r===d.Category&&Array.isArray(e)?s=f.customSort:s=e===c.Ascending?f.Asc:f.Desc,s}var w=e=>{let r=e.orderOptions?.data&&"orderBy"in e.orderOptions.data?e.orderOptions.data.orderBy:c.Ascending;return R(r,e.orderOptions?.data?.orderType??d.Category)},V=e=>{let r=C(e.series),s=!1;return(r===n.BarSeries||r===n.LineSeries)&&(s=w(e)===a.customSort),s},ee=e=>{let r=[],s=e.orderOptions?.data?.orderType;return V(e)&&s===d.Category&&(r=e.orderOptions?.data?.orderBy),r},re=(e,r,s,i)=>{let o=C(r.series),A=F(r);r.orderOptions??={};let t=A?[""]:c.Ascending;if(A)e===f.customSort&&s!==void 0?t=[...s]:t=e===f.Desc?c.Descending:c.Ascending,i?r.orderOptions.data={...r.orderOptions.data,orderByY:t,orderType:d.MultiAxes}:r.orderOptions.data={...r.orderOptions.data,orderByX:t,orderType:d.MultiAxes};else if(o===n.BarSeries||o===n.LineSeries){let l=d.Category;e===a.customSort&&s!==void 0?(t=[...s],r.orderOptions.data={orderType:l,orderBy:t}):(l=e===a.xAxisAsc||e===a.xAxisDesc?d.Category:d.YValue,t=e===a.xAxisAsc||e===a.yAxisAsc?c.Ascending:c.Descending,r.orderOptions.data={orderType:l,orderBy:t})}},se=e=>e?.series?.[0]?.x??"",ie=e=>{let{config:r,xAxisField:s,numericFields:i,aggregationType:o,mode:A,layer:t,numericFieldIndex:l,seriesIndex:k,splitByField:U="",fieldList:Y}=e,H=C(r.series),M=h(r.series),u;if(B(t)){let g=b(t);u=i.length===1&&i[0]===g}else{let{idField:g,isTraditionalTypeOID:P}=v(_(t));u=P&&i.length===1&&i[0]===g}let p="y",x="y";switch(H){case n.PieSeries:{o!==y.NoAggregation?A===I.Category?(p=`${o}_${i[0]}_0`.toUpperCase(),x=u?m(y.Count):m(`${o} of ${i[0]}`)):p=T:p=i[0];break}case n.BarSeries:case n.LineSeries:case n.ComboLineAndBarSeries:case n.RadarSeries:case n.HeatSeries:{if(U===""||i.length>1)E({fieldName:s,numericFields:i,fieldList:Y??[]})||M===$.BarAndLineFromFields?p=N:(p=o!==y.NoAggregation?`${o}_${i[l??0]}_${l??0}`.toUpperCase():i[l??0],x=u?m(y.Count):m(`${o} of ${i[l??0]}`));else{let g=i[0];p=o!==y.NoAggregation?`${o}_${g}_${k??0}`.toUpperCase():g,x=u?m(y.Count):m(`${o} of ${g}`)}break}}return{name:p,description:x}};function z(e){let{fieldName:r,fieldList:s}=e,i=S(s??[],r);return r===D||r===L||r===O||r===void 0||r.trim()===""||i===void 0}function E(e){let{fieldName:r,fieldList:s,numericFields:i}=e,o=i.filter(A=>S(s??[],A)?.type!=="esriFieldTypeOID");return z({fieldName:r,fieldList:s})&&(o?.length??0)>0}return{a:R,b:Z,c:w,d:ee,e:re,f:se,g:ie,h:z,i:E}},b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as u}from"./ONA24XJN.js";import"./JFQQ2ONR.js";import{A as e,G as d,g as t,i as n}from"./F7G5S2LL.js";import"./QPIMTXPL.js";var h=t`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width)}`,o=class extends e{constructor(){super(...arguments),this._messages=u(),this.open=!1,this.showMinXBoundOption=!1,this.showMaxXBoundOption=!1,this.showMinYBoundOption=!1,this.showMaxYBoundOption=!1,this.showEnableXLogOption=!1,this.showEnableYLogOption=!1}static{this.properties={messageOverrides:0,model:0,calculatedDataMinMaxBounds:0,open:5,showMinXBoundOption:5,showMaxXBoundOption:5,showMinYBoundOption:5,showMaxYBoundOption:5,showEnableXLogOption:5,showEnableYLogOption:5,calculatedMinMaxBounds:0}}static{this.styles=h}getMinFromCalculatedDataBounds(i){return this.calculatedDataMinMaxBounds?.find(s=>s.isXAxis===i)?.minimum??Number.NaN}getMaxFromCalculatedDataBounds(i){return this.calculatedDataMinMaxBounds?.find(s=>s.isXAxis===i)?.maximum??Number.NaN}render(){let i=this.calculatedMinMaxBounds?.find(a=>a.isXAxis),s=this.calculatedMinMaxBounds?.find(a=>!a.isXAxis);return n`<arcgis-charts-config-axis .model=${this.model} is-x-axis .axisTitle=${this._messages.xAxis} .showMinBoundOption=${this.showMinXBoundOption} .showMaxBoundOption=${this.showMaxXBoundOption} .showEnableLogOption=${this.showEnableXLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!0)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!0)} .initialMaxBound=${i?.maximum} .initialMinBound=${i?.minimum}></arcgis-charts-config-axis><arcgis-charts-config-axis .model=${this.model} .axisTitle=${this._messages.yAxis} .showMinBoundOption=${this.showMinYBoundOption} .showMaxBoundOption=${this.showMaxYBoundOption} .showEnableLogOption=${this.showEnableYLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!1)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!1)} .initialMaxBound=${s?.maximum} .initialMinBound=${s?.minimum}></arcgis-charts-config-axis>`}};d("arcgis-charts-config-axes",o);export{o as ArcgisChartsConfigAxes};
2
+ import{a as u}from"./Y5NXCJVY.js";import"./CRQ2IRDD.js";import{A as e,G as d,g as t,i as n}from"./SFNDPCJ7.js";import"./QPIMTXPL.js";var h=t`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width)}`,o=class extends e{constructor(){super(...arguments),this._messages=u(),this.open=!1,this.showMinXBoundOption=!1,this.showMaxXBoundOption=!1,this.showMinYBoundOption=!1,this.showMaxYBoundOption=!1,this.showEnableXLogOption=!1,this.showEnableYLogOption=!1}static{this.properties={messageOverrides:0,model:0,calculatedDataMinMaxBounds:0,open:5,showMinXBoundOption:5,showMaxXBoundOption:5,showMinYBoundOption:5,showMaxYBoundOption:5,showEnableXLogOption:5,showEnableYLogOption:5,calculatedMinMaxBounds:0}}static{this.styles=h}getMinFromCalculatedDataBounds(i){return this.calculatedDataMinMaxBounds?.find(s=>s.isXAxis===i)?.minimum??Number.NaN}getMaxFromCalculatedDataBounds(i){return this.calculatedDataMinMaxBounds?.find(s=>s.isXAxis===i)?.maximum??Number.NaN}render(){let i=this.calculatedMinMaxBounds?.find(a=>a.isXAxis),s=this.calculatedMinMaxBounds?.find(a=>!a.isXAxis);return n`<arcgis-charts-config-axis .model=${this.model} is-x-axis .axisTitle=${this._messages.xAxis} .showMinBoundOption=${this.showMinXBoundOption} .showMaxBoundOption=${this.showMaxXBoundOption} .showEnableLogOption=${this.showEnableXLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!0)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!0)} .initialMaxBound=${i?.maximum} .initialMinBound=${i?.minimum}></arcgis-charts-config-axis><arcgis-charts-config-axis .model=${this.model} .axisTitle=${this._messages.yAxis} .showMinBoundOption=${this.showMinYBoundOption} .showMaxBoundOption=${this.showMaxYBoundOption} .showEnableLogOption=${this.showEnableYLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!1)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!1)} .initialMaxBound=${s?.maximum} .initialMinBound=${s?.minimum}></arcgis-charts-config-axis>`}};d("arcgis-charts-config-axes",o);export{o as ArcgisChartsConfigAxes};