ag-charts-community
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
1 lines • 734 kB
JavaScript
var Ty=Object.defineProperty,Oy=Object.getOwnPropertyDescriptor,f=(e,t,i,s)=>{for(var n=s>1?void 0:s?Oy(t,i):t,a=e.length-1,r;a>=0;a--)(r=e[a])&&(n=(s?r(t,i,n):r(n))||n);return s&&n&&Ty(t,i,n),n};import{and as Vs,array as Ey,boolean as Re,color as Py,date as qh,defined as rt,greaterThan as Uo,lessThan as Ko,lineDashOptionsDef as Ry,number as Bs,or as Qh,positiveNumber as Jh,ratio as tu,string as hi,strokeOptionsDef as zy,typeUnion as $o,undocumented as Fy,union as jy}from"ag-charts-core";import{ErrorType as Vy,ValidationError as By,and as Xo,array as eu,arrayLength as Gy,arrayOf as Ya,arrayOfDefs as qo,attachDescription as Hy,boolean as $,callback as Gt,callbackDefs as iu,callbackOf as Fn,color as su,date as _y,defined as nu,fillOptionsDef as qi,fontOptionsDef as jn,greaterThan as Wy,highlightOptionsDef as Yy,htmlElement as Zy,lessThan as Uy,lineDashOptionsDef as Gs,number as zt,object as Ky,optionsDefs as Qo,or as ze,positiveNumber as Z,ratio as ui,required as Za,shapeHighlightOptionsDef as $y,string as ct,strokeOptionsDef as Ue,typeUnion as Xy,undocumented as Fe,union as bt}from"ag-charts-core";var qy=void 0,Qy=void 0;Qy=qy;var Jy=void 0,tb=void 0;tb=Jy;var eb=void 0,ib=void 0;ib=eb;var sb=void 0,nb=void 0;nb=sb;import{and as Hs,arrayLength as ab,arrayOf as Vn,arrayOfDefs as au,attachDescription as Ua,boolean as Ot,callback as Jo,callbackDefs as rb,callbackOf as ru,color as _s,date as ob,defined as tl,fillOptionsDef as lb,fontOptionsDef as Ka,greaterThan as ou,isValidNumberFormat as cb,lessThan as lu,lineDashOptionsDef as el,number as Qi,object as hb,optionsDefs as il,or as Bn,positiveNumber as ge,positiveNumberNonZero as sl,ratio as nl,required as Ws,string as ee,strokeOptionsDef as al,themeOperator as ub,undocumented as rl,union as Ji}from"ag-charts-core";var ol=Ji("millisecond","second","minute","hour","day","month","year"),cu={unit:Ws(ol),step:sl,epoch:ob,utc:Ot};cu.every=Jo;var hu=il(cu,"a time interval object"),Gn=Ua(cb,"a valid number format string"),uu={enabled:Ot,text:ee,padding:Qi,...Ka},db=Ua({enabled:Ot,type:Ws(Ji("line","range")),range:Hs(Ua((e,{options:t})=>t.type==="range","crossLine type to be 'range'"),Vn(tl),ab(2,2)),value:Hs(Ua((e,{options:t})=>t.type==="line","crossLine type to be 'line'"),tl),label:uu,fill:_s,fillOpacity:nl,...al,...el},"cross-line options"),pb={...db,label:{...uu,position:Ji("top","left","right","bottom","top-left","top-right","bottom-left","bottom-right","inside","inside-left","inside-right","inside-top","inside-bottom","inside-top-left","inside-bottom-left","inside-top-right","inside-bottom-right"),rotation:Qi}},du={enabled:Ot,rotation:Qi,avoidCollisions:Ot,minSpacing:ge,spacing:ge,formatter:Jo,itemStyler:rb({...Ka,spacing:Qi}),...Ka},$a={autoRotate:Ot,autoRotateAngle:Qi,wrapping:Ji("never","always","hyphenate","on-space"),truncate:rl(Ot),...du},pu={format:Gn,...$a},ll={format:Bn(ee,hb),...$a},gu={enabled:Ot,width:ge,size:ge,stroke:_s},fu={enabled:Ot,label:ll,tick:gu},mu={reverse:Ot,gridLine:{enabled:Ot,width:ge,style:au({stroke:Bn(_s,ub),lineDash:Vn(ge)},"a grid-line style object array")},interval:{values:Vn(tl),minSpacing:ge},label:du,line:{enabled:Ot,width:ge,stroke:_s},tick:gu,context:()=>!0};mu.layoutConstraints=rl({stacked:Ws(Ot),align:Ws(Ji("start","end")),unit:Ws(Ji("percent","px")),width:Ws(ge)});var ts={...mu,keys:Vn(ee),crossLines:au(pb,"a cross-line options array"),position:Ji("top","right","bottom","left"),thickness:ge,maxThicknessRatio:nl,title:{enabled:Ot,text:ee,spacing:ge,formatter:Jo,...Ka}},cl={enabled:Ot,...lb,...al,...el};ts.title._enabledFromTheme=rl(Ot);function Ys(e,t){const i={enabled:Ot,xOffset:Qi,yOffset:Qi,formatter:ru(ee),renderer:ru(Bn(ee,il({text:ee,color:_s,backgroundColor:_s,opacity:nl},"crosshair label renderer result object")))};let s;return e&&(s={...i,format:t?Bn(ee,il({millisecond:ee,second:ee,hour:ee,day:ee,month:ee,year:ee})):ee}),{enabled:Ot,snap:Ot,label:s??i,...al,...el}}function Xa(e,t){return{min:Hs(e,lu("max")),max:Hs(e,ou("min")),nice:Ot,interval:{step:t?Bn(sl,ol,hu):sl,values:Vn(e),minSpacing:Hs(ge,lu("maxSpacing")),maxSpacing:Hs(ge,ou("minSpacing"))}}}var qa=ze(bt("circle","cross","diamond","heart","plus","pin","square","star","triangle"),Gt),yu=bt("never","always","hyphenate","on-space"),Qa=bt("top","right","bottom","left","top-right","bottom-right","bottom-left","top-left","center"),hl=ze(Z,bt("exact","nearest")),bu=bt("pointer","start","middle","end"),Ja={enabled:$,text:ct,textAlign:bt("left","center","right"),wrapping:bt("never","always","hyphenate","on-space"),spacing:Z,maxWidth:Z,maxHeight:Z,...jn};Ja.padding=Fe(Z);var tr={enabled:$,text:ct,renderer:Fn(ze(ct,Zy))},ul=["defaults","download","zoom-to-cursor","pan-to-cursor","reset-zoom","toggle-series-visibility","toggle-other-series","separator"],xu={type:bt("action","separator"),showOn:bt("always","series-area","series-node","legend-item"),label:Za(ct),enabled:$,action:Gt,items:(e,t)=>vu(e,t)};xu.iconUrl=Fe(ct);var gb=Qo(xu),fb=Hy((e,t)=>{let i;return typeof e=="string"?ul.includes(e)?i=!0:(i={valid:!1,invalid:[],cleared:null},i.invalid.push(new By(Vy.Invalid,`a context menu item string alias: ["${ul.join('", "')}"]`,e,t.path))):i=gb(e,t),i},`a context menu item object or string alias: [${ul.join(", ")}]`),vu=Ya(fb,"a menu items array",!1),Mu={label:ct,ariaLabel:ct,tooltip:ct,icon:bt("align-center","align-left","align-right","arrow-drawing","arrow-down-drawing","arrow-up-drawing","callout-annotation","candlestick-series","close","comment-annotation","date-range-drawing","date-price-range-drawing","delete","disjoint-channel-drawing","drag-handle","fill-color","line-style-solid","line-style-dashed","line-style-dotted","high-low-series","hlc-series","hollow-candlestick-series","horizontal-line-drawing","line-color","line-series","line-with-markers-series","locked","measurer-drawing","note-annotation","ohlc-series","pan-end","pan-left","pan-right","pan-start","parallel-channel-drawing","position-bottom","position-center","position-top","price-label-annotation","price-range-drawing","reset","settings","step-line-series","text-annotation","trend-line-drawing","fibonacci-retracement-drawing","fibonacci-retracement-trend-based-drawing","unlocked","vertical-line-drawing","zoom-in","zoom-out")},je=ze(ct,Fn(ct)),mb=Qo({x:je,y:je,angle:je,radius:je,size:je,color:je,label:je,secondaryLabel:je,sectorLabel:je,calloutLabel:je,legendItem:je}),Qt={width:Z,height:Z,minWidth:Z,minHeight:Z,suppressFieldDotNotation:$,title:Ja,subtitle:Ja,footnote:Ja,padding:{top:Z,right:Z,bottom:Z,left:Z},seriesArea:{clip:$,padding:{top:Z,right:Z,bottom:Z,left:Z}},legend:{enabled:$,position:bt("top","right","bottom","left"),orientation:bt("horizontal","vertical"),maxWidth:Z,maxHeight:Z,spacing:Z,preventHidingAll:$,reverseOrder:$,toggleSeries:$,item:{marker:{size:Z,shape:qa,padding:Z,strokeWidth:Z},line:{length:Z,strokeWidth:Z},label:{maxLength:Z,formatter:Gt,...jn},maxWidth:Z,paddingX:Z,paddingY:Z,showSeriesStroke:$},pagination:{marker:{size:Z,shape:qa,padding:Z},activeStyle:{...qi,...Ue},inactiveStyle:{...qi,...Ue},highlightStyle:{...qi,...Ue},label:jn},listeners:{legendItemClick:Gt,legendItemDoubleClick:Gt}},gradientLegend:{enabled:$,position:bt("top","right","bottom","left"),spacing:Z,reverseOrder:$,gradient:{preferredLength:Z,thickness:Z},scale:{label:{...jn,minSpacing:Z,format:Gn,formatter:Gt},padding:Z,interval:{step:zt,values:eu,minSpacing:Xo(Z,Uy("maxSpacing")),maxSpacing:Xo(Z,Wy("minSpacing"))}}},listeners:{seriesNodeClick:Gt,seriesNodeDoubleClick:Gt,seriesVisibilityChange:Gt,click:Gt,doubleClick:Gt,annotations:Gt,zoom:Gt},loadGoogleFonts:$,highlight:{range:bt("tooltip","node")},overlays:{loading:tr,noData:tr,noVisibleSeries:tr,unsupportedBrowser:tr},tooltip:{enabled:$,showArrow:$,pagination:$,delay:Z,range:hl,wrapping:yu,mode:bt("single","shared","compact"),position:{anchorTo:bt("pointer","node","chart"),placement:ze(Qa,Ya(Qa)),xOffset:zt,yOffset:zt}},animation:{enabled:$,duration:Z},contextMenu:{enabled:$,items:vu},context:()=>!0,dataSource:{getData:Gt},keyboard:{enabled:$,tabIndex:zt},touch:{dragAction:bt("none","drag","hover")},ranges:{enabled:$,buttons:qo({...Mu,value:ze(zt,Xo(Ya(ze(zt,_y)),Gy(2,2)),Gt)},"range button options array")},locale:{localeText:Ky,getLocaleText:Fn(ct)},background:{visible:$,fill:su,image:{url:Za(ct),top:zt,right:zt,bottom:zt,left:zt,width:Z,height:Z,opacity:ui}},styleNonce:ct,sync:{enabled:$,groupId:ct,axes:bt("x","y","xy"),nodeInteraction:$,zoom:$},zoom:{enabled:$,enableAxisDragging:$,enableDoubleClickToReset:$,enablePanning:$,enableScrolling:$,enableSelecting:$,enableTwoFingerZoom:$,keepAspectRatio:$,anchorPointX:bu,anchorPointY:bu,axes:bt("x","y","xy"),deceleration:ze(bt("off","short","long"),ui),minVisibleItems:Z,panKey:bt("alt","ctrl","meta","shift"),scrollingStep:ui,autoScaling:{enabled:$,padding:ui},buttons:{enabled:$,buttons:qo({...Mu,value:bt("reset","zoom-in","zoom-out","pan-left","pan-right","pan-start","pan-end"),section:ct},"zoom button options array"),visible:bt("always","zoomed","hover")}},formatter:ze(Fn(ct),mb)};Qt.dataSource.requestThrottle=Fe(Z),Qt.dataSource.updateThrottle=Fe(Z),Qt.dataSource.updateDuringInteraction=Fe($),Qt.zoom.enableIndependentAxes=Fe($),Qt.statusBar=Fe(nu),Qt.foreground=Fe({visible:$,text:ct,image:{url:ct,top:zt,right:zt,bottom:zt,left:zt,width:Z,height:Z,opacity:ui},...qi}),Qt.overrideDevicePixelRatio=Fe(zt),Qt.sync.domainMode=Fe(bt("direction","position","key"));var Ke={cursor:ct,context:()=>!0,showInLegend:$,nodeClickRange:hl,listeners:{seriesNodeClick:Gt,seriesNodeDoubleClick:Gt},highlightStyle:{item:{...qi,...Ue},series:{enabled:$,dimOpacity:ui,strokeWidth:Z}},highlight:Yy($y)},$e={...Ke,id:ct,visible:$,context:()=>!0,data:eu};$e.seriesGrouping=Fe(nu);var er={enabled:$,shape:qa,size:Z,itemStyler:iu({...qi,...Ue,...Gs,shape:qa,size:Z}),...qi,...Ue,...Gs},Xe={enabled:$,formatter:Gt,format:Gn,...jn},dl={...Xe,lineHeight:Z,minimumFontSize:Z,wrapping:yu,overflowStrategy:bt("ellipsis","hide")},ir={visible:$,cap:{visible:$,length:Z,lengthRatio:ui,...Ue,...Gs},...Ue,...Gs},pl={...ir,xLowerKey:ct,xUpperKey:ct,yLowerKey:ct,yUpperKey:ct,xLowerName:ct,xUpperName:ct,yLowerName:ct,yUpperName:ct,itemStyler:iu({visible:$,...Ue,...Gs,cap:{visible:$,length:Z,lengthRatio:ui,...Ue,...Gs}})},qe={enabled:$,showArrow:$,range:hl,renderer:Fn(ze(ct,Qo({heading:ct,title:ct,data:qo({label:Za(ct),value:Za(ct)})},"tooltip renderer result object"))),position:{anchorTo:bt("node","pointer","chart"),placement:ze(Qa,Ya(Qa)),xOffset:zt,yOffset:zt},interaction:{enabled:$}},sr={enabled:$,xOffset:zt,yOffset:zt,blur:Z,color:su},Su=Xy({linear:{},smooth:{tension:ui},step:{position:bt("start","middle","end")}},"interpolation line options");import{boolean as gl,constant as yb,fillOptionsDef as bb,lineDashOptionsDef as xb,multiSeriesHighlightOptionsDef as vb,number as Mb,required as fl,shapeHighlightOptionsDef as Iu,string as Hn,strokeOptionsDef as Sb}from"ag-charts-core";var Du=vb(Iu,Iu),Ib={showInMiniChart:gl,connectMissingData:gl,interpolation:Su,label:Xe,marker:er,tooltip:qe,shadow:sr,...Ke,...bb,...Sb,...xb,highlight:Du},wu={...Ib,...$e,highlight:Du,type:fl(yb("area")),xKey:fl(Hn),yKey:fl(Hn),xName:Hn,yName:Hn,stacked:gl,stackGroup:Hn,normalizedTo:Mb};import{barHighlightOptionsDef as ku,boolean as es,callbackDefs as Db,constant as wb,fillOptionsDef as Au,lineDashOptionsDef as Cu,multiSeriesHighlightOptionsDef as kb,number as Lu,positiveNumber as ml,required as yl,string as Zs,strokeOptionsDef as Nu,undocumented as nr,union as bl}from"ag-charts-core";var Tu=kb(ku,ku),Ou={direction:bl("horizontal","vertical"),showInMiniChart:es,cornerRadius:ml,itemStyler:Db({...Au,...Nu,...Cu,cornerRadius:ml}),crisp:es,label:{...Xe,placement:bl("inside-center","inside-start","inside-end","outside-start","outside-end"),padding:ml},errorBar:ir,shadow:sr,tooltip:qe,...Ke,highlight:Tu,...Au,...Nu,...Cu};Ou.sparklineMode=nr(es);var _n={...Ou,...$e,highlight:Tu,type:yl(wb("bar")),xKey:yl(Zs),yKey:yl(Zs),xName:Zs,yName:Zs,direction:bl("horizontal","vertical"),grouped:es,stacked:es,stackGroup:Zs,normalizedTo:Lu,legendItemName:Zs,errorBar:pl};_n.pickOutsideVisibleMinorAxis=nr(es),_n.fastDataProcessing=nr(es),_n.focusPriority=nr(Lu);import{boolean as Wn,constant as Ab,lineDashOptionsDef as Cb,lineHighlightOptionsDef as Lb,multiSeriesHighlightOptionsDef as Nb,number as Eu,required as xl,shapeHighlightOptionsDef as Tb,string as is,strokeOptionsDef as Ob,undocumented as vl}from"ag-charts-core";var Pu=Nb(Tb,Lb),Ru={title:is,showInMiniChart:Wn,connectMissingData:Wn,interpolation:Su,label:Xe,marker:er,tooltip:qe,errorBar:ir,...Ke,...Ob,...Cb,highlight:Pu};Ru.sparklineMode=vl(Wn);var ar={...Ru,...$e,highlight:Pu,type:xl(Ab("line")),xKey:xl(is),yKey:xl(is),xName:is,yName:is,stacked:Wn,stackGroup:is,normalizedTo:Eu,legendItemName:is,errorBar:pl};ar.pickOutsideVisibleMinorAxis=vl(Wn),ar.focusPriority=vl(Eu);import*as Eb from"ag-charts-core";var zu=Symbol("BREAK"),Yn="__decorator_config",rr="__decorator_accessors";function Pb(e,t){Ml(e,t).optional=!0}function Ml(e,t){if(Object.getOwnPropertyDescriptor(e,Yn)==null&&Object.defineProperty(e,Yn,{value:{}}),Object.getOwnPropertyDescriptor(e,rr)==null){const h=Object.getPrototypeOf(e)?.[rr]?.slice()??[];Object.defineProperty(e,rr,{value:h})}const i=e[Yn],s=t.toString();if(i[s]!=null)return i[s];i[s]={setters:[],getters:[],observers:[]};const n=Object.getOwnPropertyDescriptor(e,t);let a=n?.get,r=n?.set;if(a==null||r==null){const c=e[rr];let h=c.indexOf(t);h===-1&&(h=c.push(t)-1),a??(a=function(){let u=this.__accessors;return u==null&&(u=c.slice().fill(void 0),Object.defineProperty(this,"__accessors",{value:u})),u[h]}),r??(r=function(u){let d=this.__accessors;d==null&&(d=c.slice().fill(void 0),Object.defineProperty(this,"__accessors",{value:d})),d[h]=u})}return Object.defineProperty(e,t,{set:function(c){const{setters:h,observers:u}=i[s];let d;h.some(p=>p.length>2)&&(d=a.call(this));for(const p of h)if(c=p(this,t,c,d),c===zu)return;r.call(this,c);for(const p of u)p(this,c,d)},get:function(){let c=a.call(this);for(const h of i[s].getters)if(c=h(this,t,c),c===zu)return;return c},enumerable:!0,configurable:!1}),i[s]}function or(e,t,i){return(s,n)=>{const a=Ml(s,n);a.setters.push(e),t&&a.getters.unshift(t),i&&Object.assign(a,i)}}function Rb(e){return(t,i)=>{Ml(t,i).observers.push(e)}}function Sl(e){return typeof e<"u"&&Yn in e}function Us(e){const t=new Set;for(;Sl(e);)t.add(e?.[Yn]),e=Object.getPrototypeOf(e);return Array.from(t).flatMap(i=>Object.keys(i))}function zb(e){return Us(e).reduce((t,i)=>(t[i]=e[i]??null,t),{})}var{entries:OL,isArray:Il,isObject:Fu,isPlainObject:ss}=Eb;function Ht(e,t){return Array.isArray(e)?!Array.isArray(t)||e.length!==t.length?!1:e.every((i,s)=>Ht(i,t[s])):ss(e)?ss(t)?ju(e,t,Ht):!1:e===t}function ju(e,t,i){if(Object.is(e,t))return!0;for(const s of Object.keys(t))if(!(s in e))return!1;for(const s of Object.keys(e))if(!(s in t)||!i(e[s],t[s]))return!1;return!0}function Et(...e){const t={};for(const i of e){if(!Fu(i))continue;const s=Sl(i)?Us(i):Object.keys(i);for(const n of s)ss(t[n])&&ss(i[n])?t[n]=Et(t[n],i[n]):t[n]??(t[n]=i[n])}return t}function Vu(...e){const t={};for(const i of e){if(!Fu(i))continue;const s=Sl(i)?Us(i):Object.keys(i);for(const n of s)ss(t[n])&&ss(i[n])?t[n]=Vu(t[n],i[n]):n in t||(t[n]??(t[n]=i[n]))}return t}function Fb(e,...t){return t&&Il(e)?e.map(i=>Et(i,...t)):e}function ie(e,t){const i={...e};for(const s of t)delete i[s];return i}function jb(e,t){return(Il(t)?t:t.split(".")).reduce((s,n)=>s[n],e)}var Bu=new Set(["__proto__","constructor","prototype"]);function Vb(e,t,i){const s=Il(t)?t.slice():t.split("."),n=s.pop();if(s.some(r=>Bu.has(r)))return;const a=s.reduce((r,o)=>r[o],e);return a[n]=i,a[n]}function Gu(e,t,i){if(i===void 0)return t;for(const s of e){const n=i[s];n!==void 0&&(t[s]=n)}return t}function Hu(e){return e==null||typeof e!="object"||!ss(e)||(Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t];i!==null&&(typeof i=="object"||typeof i=="function")&&!Object.isFrozen(i)&&Hu(i)})),e}var ce=Symbol("IGNORED_PROP");function Se(e,t){const i={};for(const s of Object.keys(t)){const n=t[s];n!==ce&&Object.hasOwn(e,s)&&(i[s]=n)}return i}function _u(e){const{enabled:t,mode:i,showArrow:s,range:n,position:a,pagination:r,delay:o,wrapping:l,interaction:c,renderer:h,...u}=e,d=Se(e,{enabled:t,showArrow:s,range:n,position:a,interaction:c,renderer:h,...u});return{chartTooltipOptions:Se(e,{enabled:ce,showArrow:ce,range:ce,position:ce,mode:i,pagination:r,delay:o,wrapping:l,...u}),seriesTooltipOptions:d}}function Bb(e){const{animation:t,background:i,container:s,contextMenu:n,context:a,footnote:r,height:o,listeners:l,locale:c,minHeight:h,minWidth:u,overrideDevicePixelRatio:d,padding:p,subtitle:g,theme:y,title:b,width:m,type:v,cursor:M,nodeClickRange:S,tooltip:I={},value:D,scale:w={},startAngle:k,endAngle:A,highlightStyle:C,highlight:L,segmentation:T,bar:N,needle:V,targets:Y,outerRadius:U,innerRadius:it,outerRadiusRatio:J,innerRadiusRatio:et,cornerRadius:q,cornerMode:R,label:H,secondaryLabel:_,spacing:Q,...G}=e,{chartTooltipOptions:B,seriesTooltipOptions:F}=_u(I),j=Se(e,{animation:t,background:i,container:s,contextMenu:n,context:a,footnote:r,height:o,listeners:l,locale:c,minHeight:h,minWidth:u,overrideDevicePixelRatio:d,padding:p,subtitle:g,theme:y,title:b,tooltip:B,width:m}),E=Se(e,{needle:V!=null?{enabled:!0,...V}:ce,startAngle:k,endAngle:A,scale:w,type:v,cursor:M,context:a,nodeClickRange:S,tooltip:F,value:D,highlightStyle:C,highlight:L,segmentation:T,bar:N,targets:Y,outerRadius:U,innerRadius:it,outerRadiusRatio:J,innerRadiusRatio:et,cornerRadius:q,cornerMode:R,label:H,secondaryLabel:_,spacing:Q,...G});return{...j,series:[E]}}function Gb(e){const{animation:t,background:i,container:s,contextMenu:n,context:a,footnote:r,height:o,listeners:l,locale:c,minHeight:h,minWidth:u,overrideDevicePixelRatio:d,padding:p,subtitle:g,theme:y,title:b,width:m,type:v,cursor:M,nodeClickRange:S,tooltip:I={},value:D,scale:w={},direction:k="vertical",thickness:A,highlightStyle:C,highlight:L,segmentation:T,bar:N,targets:V,cornerRadius:Y,cornerMode:U,label:it,...J}=e,{chartTooltipOptions:et,seriesTooltipOptions:q}=_u(I),R=Se(e,{animation:t,background:i,container:s,contextMenu:n,context:a,footnote:r,height:o,listeners:l,locale:c,minHeight:h,minWidth:u,overrideDevicePixelRatio:d,padding:p,subtitle:g,theme:y,title:b,tooltip:et,width:m}),H=Se(e,{scale:w,type:v,cursor:M,context:a,nodeClickRange:S,tooltip:q,value:D,direction:k,thickness:A,highlightStyle:C,highlight:L,segmentation:T,bar:N,targets:V,cornerRadius:Y,cornerMode:U,label:it,...J});return{...R,series:[H]}}function Wu(e,t){if(t==null)return e;const{targets:i,...s}=t;return e=Et(e,s),e.targets!=null&&i!=null&&(e.targets=Fb(e.targets,i)),e}function Hb(e,t){switch(e.type){case"radial-gauge":const i=Wu(e,t);return Bb(i);case"linear-gauge":const s=Wu(e,t);return Gb(s);default:return{}}}import{and as Zn,arrayLength as _b,arrayOf as ns,arrayOfDefs as Yu,boolean as Qe,callback as lr,color as Un,colorStopsOrderValidator as Wb,constant as Zu,fillOptionsDef as as,fontOptionsDef as Uu,greaterThan as Ku,lessThan as $u,lineDashOptionsDef as rs,number as gt,optionsDefs as Yb,or as Xu,positiveNumber as Tt,ratio as cr,required as Ks,string as Kn,strokeOptionsDef as os,undocumented as Li,union as Je}from"ag-charts-core";var hr={fills:Zn(_b(2),ns(Yb({color:Un,stop:gt},"")),Wb),fillMode:Je("continuous","discrete")},qu={value:Ks(gt),text:Kn,shape:Xu(Je("circle","cross","diamond","heart","plus","pin","square","star","triangle","line"),lr),placement:Je("before","after","middle"),spacing:Tt,size:Tt,rotation:gt,...as,...os,...rs},Qu={value:Ks(gt),text:Kn,shape:Xu(Je("circle","cross","diamond","heart","plus","pin","square","star","triangle","line"),lr),placement:Je("inside","outside","middle"),spacing:Tt,size:Tt,rotation:gt,label:{...Xe,spacing:Tt},...as,...os,...rs},Zb={direction:Je("horizontal","vertical"),cornerMode:Je("container","item"),cornerRadius:Tt,thickness:Tt,segmentation:{enabled:Qe,spacing:Tt,interval:{values:ns(gt),step:gt,count:gt}},bar:{enabled:Qe,thickness:Tt,thicknessRatio:cr,...hr,...as,...os,...rs},label:{...dl,text:Kn,spacing:Tt,avoidCollisions:Qe,placement:Je("inside-start","outside-start","inside-end","outside-end","inside-center","bar-inside","bar-inside-end","bar-outside-end","bar-end")},tooltip:qe,...ie(Ke,["listeners"])},ls={...Zb,...ie($e,["listeners"]),type:Ks(Zu("linear-gauge")),value:Ks(gt),scale:{min:Zn(gt,$u("max")),max:Zn(gt,Ku("min")),label:{enabled:Qe,formatter:lr,rotation:gt,spacing:Tt,minSpacing:Tt,placement:Je("before","after"),avoidCollisions:Qe,format:Gn,...Uu},interval:{values:ns(gt),step:gt},...hr,...as,...os,...rs},targets:Yu(qu,"target options array")};ls.margin=Li(gt),ls.defaultColorRange=Li(ns(Un)),ls.defaultTarget=Li({...qu,value:gt,label:{...Xe,spacing:gt}}),ls.defaultScale=Li(ls.scale),ls.scale.defaultFill=Li(Un);var Ub={outerRadius:Tt,innerRadius:Tt,outerRadiusRatio:cr,innerRadiusRatio:cr,startAngle:gt,endAngle:gt,spacing:Tt,cornerMode:Je("container","item"),cornerRadius:Tt,scale:{min:Zn(gt,$u("max")),max:Zn(gt,Ku("min")),label:{enabled:Qe,formatter:lr,rotation:gt,spacing:Tt,minSpacing:Tt,avoidCollisions:Qe,format:Gn,...Uu},interval:{values:ns(gt),step:gt},...hr,...as,...os,...rs},segmentation:{enabled:Qe,spacing:Tt,interval:{values:ns(gt),step:gt,count:gt}},bar:{enabled:Qe,...hr,...as,...os,...rs},needle:{enabled:Qe,spacing:Tt,radiusRatio:cr,...as,...os,...rs},label:{text:Kn,spacing:Tt,...dl},secondaryLabel:{text:Kn,...dl},tooltip:qe,...Ke},ur={...Ub,...$e,type:Ks(Zu("radial-gauge")),value:Ks(gt),targets:Yu(Qu,"target options array")};ur.defaultColorRange=Li(ns(Un)),ur.defaultTarget=Li({...Qu,value:gt,label:{...Xe,spacing:gt}}),ur.scale.defaultFill=Li(Un);import{Logger as Kb}from"ag-charts-core";var RL=Symbol("is-dark-theme"),zL=Symbol("default-separation-lines-colour"),Dl=Symbol("default-shadow-colour"),FL=Symbol("default-caption-layout-style"),jL=Symbol("default-caption-alignment"),$b=Symbol("palette-up-stroke"),Xb=Symbol("palette-down-stroke"),qb=Symbol("palette-up-fill"),Qb=Symbol("palette-down-fill"),Jb=Symbol("palette-neutral-stroke"),tx=Symbol("palette-neutral-fill"),VL=Symbol("palette-alt-up-stroke"),BL=Symbol("palette-alt-down-stroke"),GL=Symbol("palette-alt-up-fill"),HL=Symbol("palette-alt-down-fill"),_L=Symbol("palette-gray-fill"),WL=Symbol("palette-gray-stroke"),YL=Symbol("default-polar-series-stroke"),ex=Symbol("default-sparkline-crosshair-stroke"),di=Symbol("default-financial-charts-annotation-stroke"),Ju=Symbol("default-hierarchy-strokes"),ix=Symbol("default-text-annotation-color"),$s=Symbol("default-financial-charts-annotation-background-fill"),sx=Symbol("default-annotation-handle-fill"),nx=Symbol("default-annotation-statistics-fill"),ax=Symbol("default-annotation-statistics-stroke"),rx=Symbol("default-annotation-statistics-color"),ox=Symbol("default-annotation-statistics-divider-stroke"),td=Symbol("default-annotation-statistics-fill"),ed=Symbol("default-annotation-statistics-stroke"),lx=Symbol("default-textbox-fill"),cx=Symbol("default-textbox-stroke"),hx=Symbol("default-textbox-color"),ZL=Symbol("default-toolbar-position"),UL=Symbol("default-gridline-enabled");import{clamp as pi}from"ag-charts-core";var cs=(e,t,i)=>e*(1-i)+t*i,wl=e=>{const t=e<0?-1:1,i=Math.abs(e);return i<=.04045?e/12.92:t*((i+.055)/1.055)**2.4},kl=e=>{const t=e<0?-1:1,i=Math.abs(e);return i>.0031308?t*(1.055*i**(1/2.4)-.055):12.92*e},id=class ht{constructor(t,i,s,n=1){this.r=pi(0,t||0,1),this.g=pi(0,i||0,1),this.b=pi(0,s||0,1),this.a=pi(0,n||0,1)}static validColorString(t){return t.indexOf("#")>=0?!!ht.parseHex(t):t.indexOf("rgb")>=0?!!ht.stringToRgba(t):ht.nameToHex.has(t.toLowerCase())}static fromString(t){if(t.indexOf("#")>=0)return ht.fromHexString(t);const i=ht.nameToHex.get(t.toLowerCase());if(i)return ht.fromHexString(i);if(t.indexOf("rgb")>=0)return ht.fromRgbaString(t);throw new Error(`Invalid color string: '${t}'`)}static parseHex(t){t=t.replace(/ /g,"").slice(1);let i;switch(t.length){case 6:case 8:i=[];for(let s=0;s<t.length;s+=2)i.push(parseInt(`${t[s]}${t[s+1]}`,16));break;case 3:case 4:i=t.split("").map(s=>parseInt(s,16)).map(s=>s+s*16);break}if(i?.length>=3&&i.every(s=>s>=0))return i.length===3&&i.push(255),i}static fromHexString(t){const i=ht.parseHex(t);if(i){const[s,n,a,r]=i;return new ht(s/255,n/255,a/255,r/255)}throw new Error(`Malformed hexadecimal color string: '${t}'`)}static stringToRgba(t){let i=-1,s=-1;for(let o=0;o<t.length;o++){const l=t[o];if(i===-1&&l==="(")i=o;else if(l===")"){s=o;break}}if(i===-1||s===-1)return;const a=t.substring(i+1,s).split(","),r=[];for(let o=0;o<a.length;o++){const l=a[o];let c=parseFloat(l);if(!Number.isFinite(c))return;l.indexOf("%")>=0?(c=pi(0,c,100),c/=100):o===3?c=pi(0,c,1):(c=pi(0,c,255),c/=255),r.push(c)}return r}static fromRgbaString(t){const i=ht.stringToRgba(t);if(i){if(i.length===3)return new ht(i[0],i[1],i[2]);if(i.length===4)return new ht(i[0],i[1],i[2],i[3])}throw new Error(`Malformed rgb/rgba color string: '${t}'`)}static fromArray(t){if(t.length===4)return new ht(t[0],t[1],t[2],t[3]);if(t.length===3)return new ht(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")}static fromHSB(t,i,s,n=1){const a=ht.HSBtoRGB(t,i,s);return new ht(a[0],a[1],a[2],n)}static fromHSL(t,i,s,n=1){const a=ht.HSLtoRGB(t,i,s);return new ht(a[0],a[1],a[2],n)}static fromOKLCH(t,i,s,n=1){const a=ht.OKLCHtoRGB(t,i,s);return new ht(a[0],a[1],a[2],n)}static padHex(t){return t.length===1?"0"+t:t}toHexString(){let t="#"+ht.padHex(Math.round(this.r*255).toString(16))+ht.padHex(Math.round(this.g*255).toString(16))+ht.padHex(Math.round(this.b*255).toString(16));return this.a<1&&(t+=ht.padHex(Math.round(this.a*255).toString(16))),t}toRgbaString(t=3){const i=[Math.round(this.r*255),Math.round(this.g*255),Math.round(this.b*255)],s=Math.pow(10,t);return this.a!==1?(i.push(Math.round(this.a*s)/s),`rgba(${i.join(", ")})`):`rgb(${i.join(", ")})`}toString(){return this.a===1?this.toHexString():this.toRgbaString()}toHSB(){return ht.RGBtoHSB(this.r,this.g,this.b)}static RGBtoOKLCH(t,i,s){const n=wl(t),a=wl(i),r=wl(s),o=Math.cbrt(.4122214708*n+.5363325363*a+.0514459929*r),l=Math.cbrt(.2119034982*n+.6806995451*a+.1073969566*r),c=Math.cbrt(.0883024619*n+.2817188376*a+.6299787005*r),h=.2104542553*o+.793617785*l-.0040720468*c,u=1.9779984951*o-2.428592205*l+.4505937099*c,d=.0259040371*o+.7827717662*l-.808675766*c,p=Math.atan2(d,u)*180/Math.PI,g=h,y=Math.hypot(u,d),b=p>=0?p:p+360;return[g,y,b]}static OKLCHtoRGB(t,i,s){const n=t,a=i*Math.cos(s*Math.PI/180),r=i*Math.sin(s*Math.PI/180),o=(n+.3963377774*a+.2158037573*r)**3,l=(n-.1055613458*a-.0638541728*r)**3,c=(n-.0894841775*a-1.291485548*r)**3,h=4.0767416621*o-3.3077115913*l+.2309699292*c,u=-1.2684380046*o+2.6097574011*l-.3413193965*c,d=-.0041960863*o-.7034186147*l+1.707614701*c,p=kl(h),g=kl(u),y=kl(d);return[p,g,y]}static RGBtoHSL(t,i,s){const n=Math.min(t,i,s),a=Math.max(t,i,s),r=(a+n)/2;let o,l;if(a===n)o=0,l=0;else{const c=a-n;l=r>.5?c/(2-a-n):c/(a+n),a===t?o=(i-s)/c+(i<s?6:0):a===i?o=(s-t)/c+2:o=(t-i)/c+4,o*=360/6}return[o,l,r]}static HSLtoRGB(t,i,s){if(t=(t%360+360)%360,i===0)return[s,s,s];const n=s<.5?s*(1+i):s+i-s*i,a=2*s-n;function r(h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?a+(n-a)*6*h:h<1/2?n:h<2/3?a+(n-a)*(2/3-h)*6:a}const o=r(t/360+1/3),l=r(t/360),c=r(t/360-1/3);return[o,l,c]}static RGBtoHSB(t,i,s){const n=Math.min(t,i,s),a=Math.max(t,i,s),r=a===0?0:(a-n)/a;let o=0;if(n!==a){const l=a-n,c=(a-t)/l,h=(a-i)/l,u=(a-s)/l;t===a?o=u-h:i===a?o=2+c-u:o=4+h-c,o/=6,o<0&&(o=o+1)}return[o*360,r,a]}static HSBtoRGB(t,i,s){t=(t%360+360)%360/360;let n=0,a=0,r=0;if(i===0)n=a=r=s;else{const o=(t-Math.floor(t))*6,l=o-Math.floor(o),c=s*(1-i),h=s*(1-i*l),u=s*(1-i*(1-l));switch(o>>0){case 0:n=s,a=u,r=c;break;case 1:n=h,a=s,r=c;break;case 2:n=c,a=s,r=u;break;case 3:n=c,a=h,r=s;break;case 4:n=u,a=c,r=s;break;case 5:n=s,a=c,r=h;break}}return[n,a,r]}static mix(t,i,s){return new ht(cs(t.r,i.r,s),cs(t.g,i.g,s),cs(t.b,i.b,s),cs(t.a,i.a,s))}static lighten(t,i){const s=ht.RGBtoOKLCH(t.r,t.g,t.b);return ht.fromOKLCH(pi(0,s[0]+i,1),s[1],s[2])}static darken(t,i){const s=ht.RGBtoOKLCH(t.r,t.g,t.b);return ht.fromOKLCH(pi(0,s[0]-i,1),s[1],s[2])}static interpolate(t,i){const s=1/(t.length-1),n=t.map(a=>ht.RGBtoOKLCH(a.r,a.g,a.b));return Array.from({length:i},(a,r)=>{const o=r/(i-1),l=t.length<=2?0:Math.min(Math.floor(o*(t.length-1)),t.length-2),c=(o-l*s)/s,h=n[l],u=n[l+1];return ht.fromOKLCH(cs(h[0],u[0],c),cs(h[1],u[1],c),cs(h[2],u[2],c))})}};id.nameToHex=new Map([["aliceblue","#F0F8FF"],["antiquewhite","#FAEBD7"],["aqua","#00FFFF"],["aquamarine","#7FFFD4"],["azure","#F0FFFF"],["beige","#F5F5DC"],["bisque","#FFE4C4"],["black","#000000"],["blanchedalmond","#FFEBCD"],["blue","#0000FF"],["blueviolet","#8A2BE2"],["brown","#A52A2A"],["burlywood","#DEB887"],["cadetblue","#5F9EA0"],["chartreuse","#7FFF00"],["chocolate","#D2691E"],["coral","#FF7F50"],["cornflowerblue","#6495ED"],["cornsilk","#FFF8DC"],["crimson","#DC143C"],["cyan","#00FFFF"],["darkblue","#00008B"],["darkcyan","#008B8B"],["darkgoldenrod","#B8860B"],["darkgray","#A9A9A9"],["darkgreen","#006400"],["darkgrey","#A9A9A9"],["darkkhaki","#BDB76B"],["darkmagenta","#8B008B"],["darkolivegreen","#556B2F"],["darkorange","#FF8C00"],["darkorchid","#9932CC"],["darkred","#8B0000"],["darksalmon","#E9967A"],["darkseagreen","#8FBC8F"],["darkslateblue","#483D8B"],["darkslategray","#2F4F4F"],["darkslategrey","#2F4F4F"],["darkturquoise","#00CED1"],["darkviolet","#9400D3"],["deeppink","#FF1493"],["deepskyblue","#00BFFF"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1E90FF"],["firebrick","#B22222"],["floralwhite","#FFFAF0"],["forestgreen","#228B22"],["fuchsia","#FF00FF"],["gainsboro","#DCDCDC"],["ghostwhite","#F8F8FF"],["gold","#FFD700"],["goldenrod","#DAA520"],["gray","#808080"],["green","#008000"],["greenyellow","#ADFF2F"],["grey","#808080"],["honeydew","#F0FFF0"],["hotpink","#FF69B4"],["indianred","#CD5C5C"],["indigo","#4B0082"],["ivory","#FFFFF0"],["khaki","#F0E68C"],["lavender","#E6E6FA"],["lavenderblush","#FFF0F5"],["lawngreen","#7CFC00"],["lemonchiffon","#FFFACD"],["lightblue","#ADD8E6"],["lightcoral","#F08080"],["lightcyan","#E0FFFF"],["lightgoldenrodyellow","#FAFAD2"],["lightgray","#D3D3D3"],["lightgreen","#90EE90"],["lightgrey","#D3D3D3"],["lightpink","#FFB6C1"],["lightsalmon","#FFA07A"],["lightseagreen","#20B2AA"],["lightskyblue","#87CEFA"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#B0C4DE"],["lightyellow","#FFFFE0"],["lime","#00FF00"],["limegreen","#32CD32"],["linen","#FAF0E6"],["magenta","#FF00FF"],["maroon","#800000"],["mediumaquamarine","#66CDAA"],["mediumblue","#0000CD"],["mediumorchid","#BA55D3"],["mediumpurple","#9370DB"],["mediumseagreen","#3CB371"],["mediumslateblue","#7B68EE"],["mediumspringgreen","#00FA9A"],["mediumturquoise","#48D1CC"],["mediumvioletred","#C71585"],["midnightblue","#191970"],["mintcream","#F5FFFA"],["mistyrose","#FFE4E1"],["moccasin","#FFE4B5"],["navajowhite","#FFDEAD"],["navy","#000080"],["oldlace","#FDF5E6"],["olive","#808000"],["olivedrab","#6B8E23"],["orange","#FFA500"],["orangered","#FF4500"],["orchid","#DA70D6"],["palegoldenrod","#EEE8AA"],["palegreen","#98FB98"],["paleturquoise","#AFEEEE"],["palevioletred","#DB7093"],["papayawhip","#FFEFD5"],["peachpuff","#FFDAB9"],["peru","#CD853F"],["pink","#FFC0CB"],["plum","#DDA0DD"],["powderblue","#B0E0E6"],["purple","#800080"],["rebeccapurple","#663399"],["red","#FF0000"],["rosybrown","#BC8F8F"],["royalblue","#4169E1"],["saddlebrown","#8B4513"],["salmon","#FA8072"],["sandybrown","#F4A460"],["seagreen","#2E8B57"],["seashell","#FFF5EE"],["sienna","#A0522D"],["silver","#C0C0C0"],["skyblue","#87CEEB"],["slateblue","#6A5ACD"],["slategray","#708090"],["slategrey","#708090"],["snow","#FFFAFA"],["springgreen","#00FF7F"],["steelblue","#4682B4"],["tan","#D2B48C"],["teal","#008080"],["thistle","#D8BFD8"],["tomato","#FF6347"],["transparent","#00000000"],["turquoise","#40E0D0"],["violet","#EE82EE"],["wheat","#F5DEB3"],["white","#FFFFFF"],["whitesmoke","#F5F5F5"],["yellow","#FFFF00"],["yellowgreen","#9ACD32"]]);var Ni=id,Xs=12,dr=(e=>(e[e.SMALLEST=8/Xs]="SMALLEST",e[e.SMALLER=10/Xs]="SMALLER",e[e.SMALL=12/Xs]="SMALL",e[e.MEDIUM=13/Xs]="MEDIUM",e[e.LARGE=14/Xs]="LARGE",e[e.LARGEST=17/Xs]="LARGEST",e))(dr||{}),ux=[{type:"number",position:{$if:[{$eq:[{$path:["/series/0/direction",void 0]},"horizontal"]},"bottom","left"]}},{type:"category",position:{$if:[{$eq:[{$path:["/series/0/direction",void 0]},"horizontal"]},"left","bottom"]}}],Al={$if:[{$isGradient:{$palette:"fill"}},{$palette:"fillFallback"},{$if:[{$isPattern:{$palette:"fill"}},{$path:["/stroke",{$palette:"fillFallback"},{$palette:"fill"}]},{$palette:"fill"}]}]},hs={type:"pattern",pattern:"forward-slanted-lines",width:10,height:10,padding:2,fill:{$if:[{$or:[{$isGradient:{$palette:"fill"}},{$isImage:{$palette:"fill"}}]},{$palette:"fillFallback"},{$if:[{$isPattern:{$palette:"fill"}},{$path:["/fill",{$palette:"fillFallback"},{$palette:"fill"}]},{$palette:"fill"}]}]},fillOpacity:1,stroke:Al,strokeOpacity:1,strokeWidth:4,backgroundFill:"none",backgroundFillOpacity:1,rotation:0,scale:1},qs={type:"image",backgroundFill:{$palette:"fillFallback"},backgroundFillOpacity:1,repeat:"no-repeat",fit:"contain",rotation:0},sd={stroke:{$path:["../../highlightStyle/item/stroke","rgba(0, 0, 0, 0.4)"]},strokeWidth:{$path:["../../highlightStyle/item/strokeWidth",2]},strokeOpacity:{$path:["../../highlightStyle/item/strokeOpacity",void 0]},opacity:{$path:["../../highlightStyle/item/opacity",1]}},dx={...sd,fill:{$path:["../../highlightStyle/item/fill","rgba(255,255,255, 0.33)"]},fillOpacity:{$path:["../../highlightStyle/item/fillOpacity",void 0]}};function Qs(e=!0){return{enabled:!0,highlightedItem:e?dx:sd,unhighlightedItem:{strokeWidth:{$path:["../../highlightStyle/series/strokeWidth",void 0]}},highlightedSeries:{strokeWidth:{$path:["../../highlightStyle/series/strokeWidth",void 0]}},unhighlightedSeries:{opacity:{$path:["../../highlightStyle/series/dimOpacity",void 0]}}}}var Ie={stroke:di},Kt={fill:sx},nd={color:"white",fill:di},gi={color:di},us={color:ix,fontSize:{$rem:dr.LARGE},fontFamily:{$ref:"fontFamily"}},Cl={...us,fontSize:{$ref:"fontSize"},color:rx,fill:nx,stroke:ax,strokeWidth:1,divider:{stroke:ox,strokeWidth:1,strokeOpacity:.5}},Ll={...Ie,background:{fill:$s,fillOpacity:.2},handle:{...Kt},text:{...gi},statistics:{...Cl}},px={line:{...Ie,handle:{...Kt},text:{...gi}},"horizontal-line":{...Ie,handle:{...Kt},axisLabel:{...nd},text:{...gi}},"vertical-line":{...Ie,handle:{...Kt},axisLabel:{...nd},text:{...gi}},"disjoint-channel":{...Ie,background:{fill:$s,fillOpacity:.2},handle:{...Kt},text:{...gi}},"parallel-channel":{...Ie,background:{fill:$s,fillOpacity:.2},handle:{...Kt},text:{...gi}},"fibonacci-retracement":{...Ie,strokes:Ju,rangeStroke:di,handle:{...Kt},text:{...gi,position:"center"},label:{...us,color:void 0,fontSize:{$rem:dr.SMALLER}}},"fibonacci-retracement-trend-based":{...Ie,strokes:Ju,rangeStroke:di,handle:{...Kt},text:{...gi,position:"center"},label:{...us,color:void 0,fontSize:{$rem:dr.SMALLER}}},callout:{...Ie,...us,color:{$ref:"textColor"},handle:{...Kt},fill:$s,fillOpacity:.2},comment:{...us,color:"white",fontWeight:700,handle:{...Kt},fill:di},note:{...us,color:hx,fill:di,stroke:{$ref:"chartBackgroundColor"},strokeWidth:1,strokeOpacity:1,handle:{...Kt},background:{fill:lx,stroke:cx,strokeWidth:1}},text:{...us,handle:{...Kt}},arrow:{...Ie,handle:{...Kt},text:{...gi}},"arrow-up":{fill:{$palette:"up.fill"},handle:{...Kt,stroke:di}},"arrow-down":{fill:{$palette:"down.fill"},handle:{...Kt,stroke:di}},"date-range":{...Ll},"price-range":{...Ll},"date-price-range":{...Ll},"quick-date-price-range":{up:{...Ie,fill:$s,fillOpacity:.2,handle:{...Kt},statistics:{...Cl,color:"#fff",fill:$s,strokeWidth:0,divider:{stroke:"#fff",strokeWidth:1,strokeOpacity:.5}}},down:{...Ie,stroke:ed,fill:td,fillOpacity:.2,handle:{...Kt,stroke:ed},statistics:{...Cl,color:"#fff",fill:td,strokeWidth:0,divider:{stroke:"#fff",strokeWidth:1,strokeOpacity:.5}}}},axesButtons:{enabled:!0}},gx=["ohlc","line","step-line","hlc","high-low","candlestick","hollow-candlestick"],fx=[{icon:"trend-line-drawing",tooltip:"toolbarAnnotationsLineAnnotations",value:"line-menu"},{icon:"fibonacci-retracement-drawing",tooltip:"toolbarAnnotationsFibonacciAnnotations",value:"fibonacci-menu"},{icon:"text-annotation",tooltip:"toolbarAnnotationsTextAnnotations",value:"text-menu"},{icon:"arrow-drawing",tooltip:"toolbarAnnotationsShapeAnnotations",value:"shape-menu"},{icon:"measurer-drawing",tooltip:"toolbarAnnotationsMeasurerAnnotations",value:"measurer-menu"},{icon:"delete",tooltip:"toolbarAnnotationsClearAll",value:"clear"}];function mx(e,t,i){const{dateKey:s="date",highKey:n="high",openKey:a="open",lowKey:r="low",closeKey:o="close",volumeKey:l="volume",chartType:c="candlestick",navigator:h=!1,volume:u=!0,rangeButtons:d=!0,statusBar:p=!0,toolbar:g=!0,zoom:y=!0,sync:b=!1,theme:m,data:v,formatter:M,...S}=e,I=bx(c,s,n,r,a,o),D=yx(i,a,o,u,l),k={navigator:{enabled:h,...u?{miniChart:{enabled:h,series:[{type:"line",xKey:s,yKey:l,stroke:Al,marker:{enabled:!1}}]},height:40,minHandle:{height:46},maxHandle:{height:46}}:null}},A={annotations:{enabled:g,optionsToolbar:{enabled:g},snap:!0,toolbar:{enabled:g,buttons:fx,padding:0},data:v,xKey:s,volumeKey:u?l:void 0}},C=p?{statusBar:{enabled:!0,data:v,highKey:n,openKey:a,lowKey:r,closeKey:o,volumeKey:u?l:void 0}}:null,L={zoom:{enabled:y,autoScaling:{enabled:!0},enableIndependentAxes:!0}},T={ranges:{enabled:d}},N=b?{sync:{enabled:b,nodeInteraction:!0,zoom:!0}}:null,V=u?[{type:"number",position:"left",keys:[l],label:{enabled:!1},crosshair:{enabled:!1},gridLine:{enabled:!1},nice:!1,layoutConstraints:{stacked:!1,width:20,unit:"percent",align:"end"}}]:[];return{theme:{baseTheme:typeof m=="string"?m:"ag-financial",...Et(typeof m=="object"?m:null,{overrides:{common:{title:{padding:4},padding:{top:6,right:8,bottom:6},chartToolbar:{enabled:g},annotations:{...px},axes:{number:{interval:{maxSpacing:45},label:{format:".2f"}}}},bar:{series:{fillOpacity:.5}},line:{series:{marker:{enabled:!1},...od(c,{hlc:{stroke:{$palette:"altNeutral.stroke"},strokeWidth:2},line:{stroke:{$palette:"neutral.stroke"}},"step-line":{stroke:{$palette:"neutral.stroke"},interpolation:{type:"step"}}})}},candlestick:{series:{...od(c,{"hollow-candlestick":{item:{up:{fill:"transparent"}}}})}},"range-area":{series:{fillOpacity:.3,strokeWidth:2}}}})},animation:{enabled:!1},legend:{enabled:!1},series:[...D,...I],axes:[{type:"number",position:"right",keys:[a,o,n,r],crosshair:{enabled:!0,snap:!1},layoutConstraints:{stacked:!1,width:100,unit:"percent",align:"start"}},...V,{type:"ordinal-time",position:"bottom",line:{enabled:!1},label:{enabled:!0},crosshair:{enabled:!0}}],tooltip:{enabled:!1},data:v,formatter:M,...A,...k,...C,...L,...T,...N,...S}}function yx(e,t,i,s,n){return s?[{type:"bar",xKey:"date",yKey:n,tooltip:{enabled:!1},itemStyler({datum:a}){const{up:r,down:o}=e().palette;return{fill:a[t]<a[i]?r?.fill:o?.fill}},focusPriority:1,fastDataProcessing:!0,highlight:{enabled:!1}}]:[]}var ad="range-area";function bx(e,t,i,s,n,a){const r={xKey:t,openKey:n,closeKey:a,highKey:i,lowKey:s},o={xKey:t,yKey:a},l={pickOutsideVisibleMinorAxis:!0};switch(e??"candlestick"){case"ohlc":return xx(l,r);case"line":case"step-line":return vx(l,o);case"hlc":return Mx(l,o,r);case"high-low":return Sx(l,r);case"candlestick":case"hollow-candlestick":return rd(l,r);default:return Kb.warnOnce(`unknown chart type: ${e}; expected one of: ${gx.join(", ")}`),rd(l,r)}}function xx(e,t){return[{type:"ohlc",focusPriority:0,...e,...t}]}function vx(e,t){return[{type:"line",focusPriority:0,...e,...t}]}function Mx(e,t,{xKey:i,highKey:s,closeKey:n,lowKey:a}){return[{type:ad,focusPriority:0,...e,xKey:i,yHighKey:s,yLowKey:n,fill:qb,stroke:$b},{type:ad,focusPriority:0,...e,xKey:i,yHighKey:n,yLowKey:a,fill:Qb,stroke:Xb},{type:"line",...e,...t}]}function Sx(e,{xKey:t,highKey:i,lowKey:s}){return[{type:"range-bar",...e,xKey:t,yHighKey:i,yLowKey:s,fill:tx,stroke:Jb,tooltip:{range:"nearest"},focusPriority:0,fastDataProcessing:!0}]}function rd(e,t){return[{type:"candlestick",focusPriority:0,...e,...t}]}function od(e,t){return t[e]??t.default}var $n=new WeakMap;function pr(e,t){const i=JSON.stringify(e,null,0);return $n.has(t)||$n.set(t,new Map),$n.get(t)?.has(i)||$n.get(t)?.set(i,t(e)),$n.get(t)?.get(i)}var Nl=class{constructor(){this.weak=new WeakMap,this.strong=new Map,this.set=!1,this.value=void 0}};function Ix(e,t){let i=new Nl;const s=(...n)=>{let a=i;for(const r of n){const o=typeof r=="object"||typeof r=="symbol"?a.weak:a.strong;let l=o.get(r);l==null&&(l=new Nl,o.set(r,l)),a=l}if(a.set)return t?.("hit",e,n),a.value;{const r=e(...n);return a.set=!0,a.value=r,t?.("miss",e,n),r}};return s.reset=()=>{i=new Nl},s}function ld(e,t){const i=new Map,s=(...r)=>r.map(o=>typeof o=="object"||typeof o=="symbol"?o:(i.has(o)||i.set(o,{v:o}),i.get(o))),n={},a=new WeakMap;return(...r)=>{const o=r.length===0?[n]:s(...r);let l=a;for(const u of o.slice(0,-1))l.has(u)||l.set(u,new WeakMap),l=l.get(u);const c=o.at(-1);let h=l.get(c);return h?t?.("hit",e,r):(h=e(...r),l.set(c,h),t?.("miss",e,r)),h}}var cd={title:{enabled:!1},label:{enabled:!1},line:{enabled:!1},gridLine:{enabled:!1},crosshair:{enabled:!1,stroke:ex,lineDash:[0],label:{enabled:!1}}},Tl={...cd,nice:!1},gr={mode:"compact",position:{anchorTo:"node",placement:["right","left"]},showArrow:!1},Ol={style:[{stroke:{$ref:"gridLineColor"}}],width:2},Dx={number:{gridLine:Ol},time:{gridLine:Ol},category:{gridLine:Ol}},wx={overrides:{common:{animation:{enabled:!1},contextMenu:{enabled:!1},keyboard:{enabled:!1},background:{visible:!1},navigator:{enabled:!1},padding:{top:0,right:0,bottom:0,left:0},axes:{number:{...Tl,interval:{values:[0]}},log:{...Tl},time:{...Tl},category:{...cd}}},bar:{series:{crisp:!1,label:{placement:"inside-end",padding:4},sparklineMode:!0},tooltip:{...gr,position:{...gr.position,anchorTo:"pointer"},range:"nearest"},axes:Dx},line:{seriesArea:{padding:{top:2,right:2,bottom:2,left:2}},series:{sparklineMode:!0,strokeWidth:1,marker:{enabled:!1,size:3}},tooltip:gr},area:{seriesArea:{padding:{top:1,right:0,bottom:1,left:0}},series:{strokeWidth:1,fillOpacity:.4},tooltip:gr}}},hd=ld(kx);function kx(e,t){return typeof e=="string"?{...t,baseTheme:e}:e!=null?{...e,baseTheme:hd(e.baseTheme,t)}:t}function ud(e){if(Array.isArray(e)&&e.length!==0){const t=e.find(i=>i!=null);if(typeof t=="number")return{data:e.map((s,n)=>({x:n,y:s})),series:[{xKey:"x",yKey:"y"}],datumKey:"y"};if(Array.isArray(t))return{data:e.map(s=>({x:s?.[0],y:s?.[1],datum:s})),series:[{xKey:"x",yKey:"y"}],datumKey:"datum"}}else if(e?.length===0)return{data:e,series:[{xKey:"x",yKey:"y"}],datumKey:"y"};return{data:e}}function Ax(e){switch(e?.type){case"number":{const{type:n,min:a,max:r,reverse:o}=e;return Se(e,{type:n,reverse:o,min:a,max:r})}case"time":{const{type:n,min:a,max:r,reverse:o}=e;return Se(e,{type:n,reverse:o,min:a,max:r})}case"category":default:const{paddingInner:t,paddingOuter:i,reverse:s}=e??{};return Se({...e,type:"category"},{type:"category",reverse:s,paddingInner:t,paddingOuter:i})}}function Cx(e,t,i){const s={};return e?.stroke!=null&&(s.style=[{stroke:e?.stroke}],s.enabled??(s.enabled=!0)),e?.strokeWidth!=null&&(s.width=e?.strokeWidth,s.enabled??(s.enabled=!0)),i.type==="bar"&&i.direction!=="horizontal"&&(s.enabled??(s.enabled=!0)),e?.visible!=null&&(s.enabled=e.visible),s.enabled??(s.enabled=t),s}var Lx=ld((e,t,i)=>s=>{const n=s.datum[s.xKey],a=s.datum[s.yKey],r=i!=null?s.datum[i]:s.datum,o=t?.renderer?.({context:e,datum:r,xValue:n,yValue:a});if(typeof o=="string")return o;const l=o?.content??a.toFixed(2);return o?.title?{heading:void 0,title:void 0,data:[{label:o.title,value:l}]}:{heading:void 0,title:l,data:[]}});function Nx(e){const{background:t,container:i,height:s,listeners:n,locale:a,minHeight:r,minWidth:o,overrideDevicePixelRatio:l,padding:c,width:h,theme:u,data:d,crosshair:p,axis:g,min:y,max:b,tooltip:m,context:v,styleNonce:M,...S}=e,I=Se(e,{background:t,container:i,height:s,listeners:n,locale:a,minHeight:r,minWidth:o,overrideDevicePixelRatio:l,padding:c,width:h,styleNonce:M,tooltip:ce,context:ce,data:ce,crosshair:ce,axis:ce,min:ce,max:ce,theme:ce}),{data:D,series:[w]=[],datumKey:k}=ud(d),A=S;w!=null&&Object.assign(A,w),A.tooltip={...m,renderer:Lx(v,m,k)},I.theme=hd(u,wx),I.data=D,I.series=[A];const C=A.type!=="bar"||A.direction!=="horizontal",[L,T]=C?["bottom","left"]:["left","bottom"],N={...Ax(g),position:L,...Se(e,{crosshair:p})},V={type:"number",gridLine:Cx(g,!1,e),position:T,...Se(e,{min:y,max:b})};return I.axes=C?[V,N]:[N,V],I}var Tx={chartType:jy("candlestick","hollow-candlestick","ohlc","line","step-line","hlc","high-low"),dateKey:hi,openKey:hi,highKey:hi,lowKey:hi,closeKey:hi,volumeKey:hi,navigator:Re,volume:Re,rangeButtons:Re,statusBar:Re,toolbar:Re,zoom:Re,sync:Re,theme:rt,container:rt,width:rt,height:rt,minWidth:rt,minHeight:rt,listeners:rt,initialState:rt,title:rt,data:Ey,formatter:rt},El={theme:rt,container:rt,animation:rt,background:rt,contextMenu:rt,context:()=>!0,listeners:rt,locale:rt,width:rt,height:rt,minWidth:rt,minHeight:rt,title:rt,subtitle:rt,footnote:rt,padding:rt,tooltip:{...qe,...Qt.tooltip}};El.overrideDevicePixelRatio=Fy(Jh);var Pl=["showInLegend","showInMiniChart","grouped","stacked","stackGroup","tooltip","listeners","errorBar","xKey","yKey","type"],Rl={visible:Re,reverse:Re,stroke:Py,strokeWidth:Jh},zl={context:()=>!0,tooltip:rt,theme:rt,background:rt,container:rt,width:rt,height:rt,minWidth:rt,minHeight:rt,padding:rt,listeners:rt,locale:rt,data:rt,styleNonce:hi,axis:$o({number:{...Rl,min:Vs(Bs,Ko("max")),max:Vs(Bs,Uo("min"))},category:{...Rl,paddingInner:tu,paddingOuter:tu},time:{...Rl,min:Vs(Qh(Bs,qh),Ko("max")),max:Vs(Qh(Bs,qh),Uo("min"))}},"axis options","category"),min:Vs(Bs,Ko("max")),max:Vs(Bs,Uo("min")),crosshair:{enabled:Re,snap:Re,...zy,...Ry},xKey:hi,yKey:hi},Ox={type:"preset",name:"price-volume",enterprise:!0,options:Tx,create:mx},Ex={type:"preset",name:"gauge-preset",enterprise:!0,options:$o({"linear-gauge":{...ie(ls,["type"]),...El},"radial-gauge":{...ie(ur,["type"]),...El}},"gauge options"),create:Hb},Px={type:"preset",name:"sparkline",options:$o({area:{...zl,...ie(wu,Pl)},bar:{...zl,...ie(_n,Pl)},line:{...zl,...ie(ar,Pl)}},"sparkline options"),create:Nx,processData:ud};import{ValidationError as Rx,isObject as zx,validate as Fx}from"ag-charts-core";import{Logger as jx,entries as Fl,groupBy as Vx}from"ag-charts-core";import*as Bx from"ag-charts-core";import{Logger as Gx,createId as Hx,createSvgElement as dd}from"ag-charts-core";import{boxContains as _x,boxesEqual as Wx,clamp as Js}from"ag-charts-core";var fr=Symbol("interpolate"),mr=e=>e[fr]!=null;function jl(e,t,i,s=1/0){const n={nearest:void 0,distanceSquared:s};for(const a of i){const r=a.distanceSquared(e,t);if(r===0)return{nearest:a,distanceSquared:0};r<n.distanceSquared&&(n.nearest=a,n.distanceSquared=r)}return n}var Xn=class zn{constructor(t,i,s,n){this.x=t,this.y=i,this.width=s,this.height=n}static fromDOMRect({x:t,y:i,width:s,height:n}){return new zn(t,i,s,n)}static merge(t){let i=1/0,s=1/0,n=-1/0,a=-1/0;for(const r of t)r.x<i&&(i=r.x),r.y<s&&(s=r.y),r.x+r.width>n&&(n=r.x+r.width),r.y+r.height>a&&(a=r.y+r.height);return new zn(i,s,n-i,a-s)}static nearestBox(t,i,s){return jl(t,i,s)}toDOMRect(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.y,left:this.x,right:this.x+this.width,bottom:this.y+this.height,toJSON(){return{}}}}clone(){const{x:t,y:i,width:s,height:n}=this;return new zn(t,i,s,n)}equals(t){return Wx(this,t)}containsPoint(t,i){return _x(this,t,i)}intersection(t){if(!this.collidesBBox(t))return;const i=Js(t.x,this.x,t.x+t.width),s=Js(t.y,this.y,t.y+t.height),n=Js(t.x,this.x+this.width,t.x+t.width),a=Js(t.y,this.y+this.height,t.y+t.height);return new zn(i,s,n-i,a-s)}collidesBBox(t){return this.x<t.x+t.width&&this.x+this.width>t.x&&this.y<t.y+t.height&&this.y+this.height>t.y}computeCenter(){return{x:this.x+this.width/2,y:this.y+this.height/2}}isFinite(){return Number.isFinite(this.x)&&Number.isFinite(this.y)&&Number.isFinite(this.width)&&Number.isFinite(this.height)}distanceSquared(t,i){if(this.containsPoint(t,i))return 0;const s=t-Js(this.x,t,this.x+this.width),n=i-Js(this.y,i,this.y+this.height);return s*s+n*n}shrink(t,i){if(typeof t=="number")this.applyMargin(t,i);else for(const s of Object.keys(t)){const n=t[s];typeof n=="number"&&this.applyMargin(n,s)}return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this}grow(t,i){if(typeof t=="number")this.applyMargin(-t,i);else for(const s of Object.keys(t)){const n=t[s];typeof n=="number"&&this.applyMargin(-n,s)}return this}applyMargin(t,i){switch(i){case"top":this.y+=t;case"bottom":this.height-=t;break;case"left":this.x+=t;case"right":this.width-=t;break;case"vertical":this.y+=t,this.height-=t*2;break;case"horizontal":this.x+=t,this.width-=t*2;break;case void 0:this.x+=t,this.y+=t,this.width-=t*2,this.height-=t*2;break}}translate(t,i){return this.x+=t,this.y+=i,this}[fr](t,i){return new zn(this.x*(1-i)+t.x*i,this.y*(1-i)+t.y*i,this.width*(1-i)+t.width*i,this.height*(1-i)+t.height*i)}};Xn.zero=Object.freeze(new Xn(0,0,0,0)),Xn.NaN=Object.freeze(new Xn(NaN,NaN,NaN,NaN));var z=Xn;import{arraysEqual as Yx}from"ag-charts-core";var qn=(e,t)=>e===t;function P(e){return function(t,i){const s=`__${i}`;t[i]||Zx(t,i,s,e)}}function De(e){return P(e)}function pd(e){const t=e??{};return t.equals=Yx,P(e)}function Zx(e,t,i,s){const{changeCb:n,convertor:a,checkDirtyOnAssignment:r=!1}=s??{},o={changeCb:n,checkDirtyOnAssignment:r,convertor:a},l=$x(i,Kx(Ux(Xx(i,o),o),o),o);Object.defineProperty(e,t,{set:l,get:function(){return this[i]},enumerable:!0,configurable:!0})}function Ux(e,t){const{convertor:i}=t;return i?function(s){e.call(this,i(s))}:e}var gd=Symbol("no-change");function Kx(e,t){const{changeCb:i}=t;return i?function(s){const n=e.call(this,s);return n!==gd&&i.call(this,this),n}:e}function $x(e,t,i