1
This commit is contained in:
1 parent
5b540acade
commit
5c3be71186
28 files changed
+1002
-55
No files matched your search
@@ -0,0 +1,42 @@
|
||||
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function i(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=i(s);fetch(s.href,a)}})();var sC={exports:{}},wy={};var oz;function W6(){if(oz)return wy;oz=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function i(n,s,a){var o=null;if(a!==void 0&&(o=""+a),s.key!==void 0&&(o=""+s.key),"key"in s){a={};for(var r in s)r!=="key"&&(a[r]=s[r])}else a=s;return s=a.ref,{$$typeof:t,type:n,key:o,ref:s!==void 0?s:null,props:a}}return wy.Fragment=e,wy.jsx=i,wy.jsxs=i,wy}var rz;function K6(){return rz||(rz=1,sC.exports=W6()),sC.exports}var si=K6(),aC={exports:{}},re={};var lz;function Y6(){if(lz)return re;lz=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),r=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),g=Symbol.iterator;function f(G){return G===null||typeof G!="object"?null:(G=g&&G[g]||G["@@iterator"],typeof G=="function"?G:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function D(G,et,st){this.props=G,this.context=et,this.refs=S,this.updater=st||y}D.prototype.isReactComponent={},D.prototype.setState=function(G,et){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,et,"setState")},D.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function A(){}A.prototype=D.prototype;function I(G,et,st){this.props=G,this.context=et,this.refs=S,this.updater=st||y}var w=I.prototype=new A;w.constructor=I,x(w,D.prototype),w.isPureReactComponent=!0;var N=Array.isArray;function O(){}var L={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function P(G,et,st){var lt=st.ref;return{$$typeof:t,type:G,key:et,ref:lt!==void 0?lt:null,props:st}}function B(G,et){return P(G.type,et,G.props)}function F(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function H(G){var et={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(st){return et[st]})}var $=/\/+/g;function Y(G,et){return typeof G=="object"&&G!==null&&G.key!=null?H(""+G.key):et.toString(36)}function U(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status=="string"?G.then(O,O):(G.status="pending",G.then(function(et){G.status==="pending"&&(G.status="fulfilled",G.value=et)},function(et){G.status==="pending"&&(G.status="rejected",G.reason=et)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function V(G,et,st,lt,mt){var Dt=typeof G;(Dt==="undefined"||Dt==="boolean")&&(G=null);var kt=!1;if(G===null)kt=!0;else switch(Dt){case"bigint":case"string":case"number":kt=!0;break;case"object":switch(G.$$typeof){case t:case e:kt=!0;break;case u:return kt=G._init,V(kt(G._payload),et,st,lt,mt)}}if(kt)return mt=mt(G),kt=lt===""?"."+Y(G,0):lt,N(mt)?(st="",kt!=null&&(st=kt.replace($,"$&/")+"/"),V(mt,et,st,"",function(ae){return ae})):mt!=null&&(F(mt)&&(mt=B(mt,st+(mt.key==null||G&&G.key===mt.key?"":(""+mt.key).replace($,"$&/")+"/")+kt)),et.push(mt)),1;kt=0;var Vt=lt===""?".":lt+":";if(N(G))for(var Kt=0;Kt<G.length;Kt++)lt=G[Kt],Dt=Vt+Y(lt,Kt),kt+=V(lt,et,st,Dt,mt);else if(Kt=f(G),typeof Kt=="function")for(G=Kt.call(G),Kt=0;!(lt=G.next()).done;)lt=lt.value,Dt=Vt+Y(lt,Kt++),kt+=V(lt,et,st,Dt,mt);else if(Dt==="object"){if(typeof G.then=="function")return V(U(G),et,st,lt,mt);throw et=String(G),Error("Objects are not valid as a React child (found: "+(et==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":et)+"). If you meant to render a collection of children, use an array instead.")}return kt}function Z(G,et,st){if(G==null)return G;var lt=[],mt=0;return V(G,lt,"","",function(Dt){return et.call(st,Dt,mt++)}),lt}function W(G){if(G._status===-1){var et=G._result;et=et(),et.then(function(st){(G._status===0||G._status===-1)&&(G._status=1,G._result=st)},function(st){(G._status===0||G._status===-1)&&(G._status=2,G._result=st)}),G._status===-1&&(G._status=0,G._result=etLine truncated
|
||||
at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||||
`+Qt+h+zt}var ue=!1;function oe(h,p){if(!h||ue)return"";ue=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(p){var St=function(){throw Error()};if(Object.defineProperty(St.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(St,[])}catch(ft){var ct=ft}Reflect.construct(h,[],St)}else{try{St.call()}catch(ft){ct=ft}h.call(St.prototype)}}else{try{throw Error()}catch(ft){ct=ft}(St=h())&&typeof St.catch=="function"&&St.catch(function(){})}}catch(ft){if(ft&&ct&&typeof ft.stack=="string")return[ft.stack,ct.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var k=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");k&&k.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=v.DetermineComponentFrameRoot(),E=C[0],_=C[1];if(E&&_){var Q=E.split(`
|
||||
`),rt=_.split(`
|
||||
`);for(k=v=0;v<Q.length&&!Q[v].includes("DetermineComponentFrameRoot");)v++;for(;k<rt.length&&!rt[k].includes("DetermineComponentFrameRoot");)k++;if(v===Q.length||k===rt.length)for(v=Q.length-1,k=rt.length-1;1<=v&&0<=k&&Q[v]!==rt[k];)k--;for(;1<=v&&0<=k;v--,k--)if(Q[v]!==rt[k]){if(v!==1||k!==1)do if(v--,k--,0>k||Q[v]!==rt[k]){var yt=`
|
||||
`+Q[v].replace(" at new "," at ");return h.displayName&&yt.includes("<anonymous>")&&(yt=yt.replace("<anonymous>",h.displayName)),yt}while(1<=v&&0<=k);break}}}finally{ue=!1,Error.prepareStackTrace=m}return(m=h?h.displayName||h.name:"")?Pt(m):""}function ke(h,p){switch(h.tag){case 26:case 27:case 5:return Pt(h.type);case 16:return Pt("Lazy");case 13:return h.child!==p&&p!==null?Pt("Suspense Fallback"):Pt("Suspense");case 19:return Pt("SuspenseList");case 0:case 15:return oe(h.type,!1);case 11:return oe(h.type.render,!1);case 1:return oe(h.type,!0);case 31:return Pt("Activity");default:return""}}function Ye(h){try{var p="",m=null;do p+=ke(h,m),m=h,h=h.return;while(h);return p}catch(v){return`
|
||||
Error generating stack: `+v.message+`
|
||||
`+v.stack}}var Ce=Object.prototype.hasOwnProperty,Di=t.unstable_scheduleCallback,zn=t.unstable_cancelCallback,Kn=t.unstable_shouldYield,ln=t.unstable_requestPaint,mi=t.unstable_now,Ya=t.unstable_getCurrentPriorityLevel,Lo=t.unstable_ImmediatePriority,mr=t.unstable_UserBlockingPriority,nh=t.unstable_NormalPriority,fv=t.unstable_LowPriority,cE=t.unstable_IdlePriority,CY=t.log,wY=t.unstable_setDisableYieldValue,zm=null,$a=null;function sh(h){if(typeof CY=="function"&&wY(h),$a&&typeof $a.setStrictMode=="function")try{$a.setStrictMode(zm,h)}catch{}}var Xa=Math.clz32?Math.clz32:LY,NY=Math.log,TY=Math.LN2;function LY(h){return h>>>=0,h===0?32:31-(NY(h)/TY|0)|0}var mv=256,yv=262144,bv=4194304;function Ju(h){var p=h&42;if(p!==0)return p;switch(h&-h){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return h&261888;case 262144:case 524288:case 1048576:case 2097152:return h&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return h&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return h}}function xv(h,p,m){var v=h.pendingLanes;if(v===0)return 0;var k=0,C=h.suspendedLanes,E=h.pingedLanes;h=h.warmLanes;var _=v&134217727;return _!==0?(v=_&~C,v!==0?k=Ju(v):(E&=_,E!==0?k=Ju(E):m||(m=_&~h,m!==0&&(k=Ju(m))))):(_=v&~C,_!==0?k=Ju(_):E!==0?k=Ju(E):m||(m=v&~h,m!==0&&(k=Ju(m)))),k===0?0:p!==0&&p!==k&&(p&C)===0&&(C=k&-k,m=p&-p,C>=m||C===32&&(m&4194048)!==0)?p:k}function Bm(h,p){return(h.pendingLanes&~(h.suspendedLanes&~h.pingedLanes)&p)===0}function OY(h,p){switch(h){case 1:case 2:case 4:case 8:case 64:return p+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return p+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hE(){var h=bv;return bv<<=1,(bv&62914560)===0&&(bv=4194304),h}function KA(h){for(var p=[],m=0;31>m;m++)p.push(h);return p}function Vm(h,p){h.pendingLanes|=p,p!==268435456&&(h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0)}function EY(h,p,m,v,k,C){var E=h.pendingLanes;h.pendingLanes=m,h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0,h.expiredLanes&=m,h.entangledLanes&=m,h.errorRecoveryDisabledLanes&=m,h.shellSuspendCounter=0;var _=h.entanglements,Q=h.expirationTimes,rt=h.hiddenUpdates;for(m=E&~m;0<m;){var yt=31-Xa(m),St=1<<yt;_[yt]=0,Q[yt]=-1;var ct=rt[yt];if(ct!==null)for(rt[yt]=null,yt=0;yt<ct.length;yt++){var ft=ct[yt];ft!==null&&(ft.lane&=-536870913)}m&=~St}v!==0&&uE(h,v,0),C!==0&&k===0&&h.tag!==0&&(h.suspendedLanes|=C&~(E&~p))}function uE(h,p,m){h.pendingLanes|=p,h.suspendedLanes&=~p;var v=31-Xa(p);h.entangledLanes|=p,h.entanglements[v]=h.entanglements[v]|1073741824|m&261930}function dE(h,p){var m=h.entangledLanes|=p;for(h=h.entanglements;m;){var v=31-Xa(m),k=1<<v;k&p|h[v]&p&&(h[v]|=p),m&=~k}}function pE(h,p){var m=p&-p;return m=(m&42)!==0?1:YA(m),(m&(h.suspendedLanes|p))!==0?0:m}function YA(h){switch(h){case 2:h=1;break;case 8:h=4;break;case 32:h=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:h=128;break;case 268435456:h=134217728;break;default:h=0}return h}function $A(h){return h&=-h,2<h?8<h?(h&134217727)!==0?32:268435456:8:2}function gE(){var h=Z.p;return h!==0?h:(h=window.event,h===void 0?32:J2(h.type))}function fE(h,p){var m=Z.p;try{return Z.p=h,p()}finally{Z.p=m}}var ah=Math.random().toString(36).slice(2),os="__reactFiber$"+ah,pa="__reactProps$"+ah,Kp="__reactContainer$"+ah,XA="__reactEvents$"+ah,RY="__reactListeners$"+ah,PY="__reactHandles$"+ah,mE="__reactResources$"+ah,_m="__reactMarker$"+ah;function ZA(h){delete h[os],delete h[pa],delete h[XA],delete h[RY],delete h[PY]}function Yp(h){var p=h[os];if(p)return p;for(var m=h.parentNode;m;){if(p=m[Kp]||m[os]){if(m=p.alternate,p.child!==null||m!==null&&m.child!==null)for(h=B2(h);h!==null;){if(m=h[os])return m;h=B2(h)}return p}h=m,m=h.parentNode}return null}function $p(h){if(h=h[os]||h[Kp]){var p=h.tag;if(p===5||p===6||p===13||p===31||p===26||p===27||p===3)return h}return null}function Fm(h){var p=h.tag;if(p===5||p===26||p===27||p===6)return h.stateNode;throw Error(n(33))}function Xp(h){var p=h[mE];return p||(p=h[mE]={hoistableStyles:new Map,hoistableScripts:new Map}),p}function Yn(h){h[_m]=!0}var yE=new Set,bE={};function td(h,p){Zp(h,p),Zp(h+"Capture",p)}function Zp(h,p){for(bE[h]=p,h=0;h<p.length;h++)yE.add(p[h])}var zY=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200
Line truncated
|
||||
`).replace(p6,"")}function C2(h,p){return p=k2(p),k2(h)===p}function li(h,p,m,v,k,C){switch(m){case"children":typeof v=="string"?p==="body"||p==="textarea"&&v===""||Qp(h,v):(typeof v=="number"||typeof v=="bigint")&&p!=="body"&&Qp(h,""+v);break;case"className":Sv(h,"class",v);break;case"tabIndex":Sv(h,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Sv(h,m,v);break;case"style":CE(h,v,C);break;case"data":if(p!=="object"){Sv(h,"data",v);break}case"src":case"href":if(v===""&&(p!=="a"||m!=="href")){h.removeAttribute(m);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){h.removeAttribute(m);break}v=Dv(""+v),h.setAttribute(m,v);break;case"action":case"formAction":if(typeof v=="function"){h.setAttribute(m,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(m==="formAction"?(p!=="input"&&li(h,p,"name",k.name,k,null),li(h,p,"formEncType",k.formEncType,k,null),li(h,p,"formMethod",k.formMethod,k,null),li(h,p,"formTarget",k.formTarget,k,null)):(li(h,p,"encType",k.encType,k,null),li(h,p,"method",k.method,k,null),li(h,p,"target",k.target,k,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){h.removeAttribute(m);break}v=Dv(""+v),h.setAttribute(m,v);break;case"onClick":v!=null&&(h.onclick=Yl);break;case"onScroll":v!=null&&Se("scroll",h);break;case"onScrollEnd":v!=null&&Se("scrollend",h);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(n(61));if(m=v.__html,m!=null){if(k.children!=null)throw Error(n(60));h.innerHTML=m}}break;case"multiple":h.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":h.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){h.removeAttribute("xlink:href");break}m=Dv(""+v),h.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?h.setAttribute(m,""+v):h.removeAttribute(m);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?h.setAttribute(m,""):h.removeAttribute(m);break;case"capture":case"download":v===!0?h.setAttribute(m,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?h.setAttribute(m,v):h.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?h.setAttribute(m,v):h.removeAttribute(m);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?h.removeAttribute(m):h.setAttribute(m,v);break;case"popover":Se("beforetoggle",h),Se("toggle",h),vv(h,"popover",v);break;case"xlinkActuate":Kl(h,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":Kl(h,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":Kl(h,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":Kl(h,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":Kl(h,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":Kl(h,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":Kl(h,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":Kl(h,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":Kl(h,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":vv(h,"is",v);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=HY.get(m)||m,vv(h,m,v))}}function Fk(h,p,m,v,k,C){switch(m){case"style":CE(h,v,C);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(n(61));if(m=v.__html,m!=null){if(k.children!=null)throw Error(n(60));h.innerHTML=m}}break;case"children":typeof v=="string"?Qp(h,v):(typeof v=="number"||typeof v=="bigint")&&Qp(h,""+v);break;case"onScroll":v!=null&&Se("scroll",h);break;case"onScrollEnd":v!=null&&Se("scrollend",h);break;case"onClick":v!=null&&(h.onclick=Yl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
|
||||
`))}function cX(t){for(const e of t.flat())y1(e)}function hX(){gx.clear(),kl.clear()}function uX(t){return kl.has(t)}function*dX(){for(const t of kl.values())yield t}function*pX(t){for(const e of kl.values())_f(t,e)&&(yield e)}function gX(t){const e=kl.get(t);if(_f("axis",e))return e}function fX(t){const e=kl.get(t);if(_f("chart",e))return e;throw new Error("AG Charts - Unknown chart type; Check options are correctly structured and series types are specified")}function mX(t){const e=kl.get(t);if(_f("preset",e))return e}function yX(t){const e=kl.get(t);if(_f("series",e))return e}function bX(t){gx.add(t)}function xX(){return gx.has("enterprise")}function vX(){return gx.has("integrated")}function SX(){return gx.has("umd")}function _f(t,e){return e?.type===t}var qe=class{constructor(){this.callbacks=new Set}flush(){for(const t of this.callbacks)t();this.callbacks.clear()}merge(t){for(const e of t.callbacks)this.callbacks.add(e)}register(...t){for(const e of t)e&&this.callbacks.add(e)}},Ln=class{constructor(){this.cleanup=new qe}destroy(){this.cleanup.flush()}},Ff="…",au=/\r?\n/g,Rb="",i4=/[\s.,;:-]{1,5}$/,Ty;function n4(t){if(Ty==null){const i=Ml("Option");Ty=new i().style}Ty.color=t;const e=Ty.color||null;return Ty.color="",e}function ff(t){return t?.ownerDocument.defaultView?.getComputedStyle(t).direction==="rtl"}function tM(t,e){if(!t)return;const{x:i,y:n,width:s,height:a}=MX(e);O0(t.style,"width",s),O0(t.style,"height",a),O0(t.style,"left",i),O0(t.style,"top",n)}function s4(t){const e=Number.parseFloat(t.style.width),i=Number.parseFloat(t.style.height),n=Number.parseFloat(t.style.left),s=Number.parseFloat(t.style.top),a=Number.isFinite(e)?e:t.offsetWidth,o=Number.isFinite(i)?i:t.offsetHeight,r=Number.isFinite(n)?n:t.offsetLeft,l=Number.isFinite(s)?s:t.offsetTop;return{x:r,y:l,width:a,height:o}}function b1(t){if(t.focus({preventScroll:!0}),t.lastChild?.textContent==null)return;const{ownerDocument:e}=t,i=e.createRange();i.setStart(t.lastChild,t.lastChild.textContent.length),i.setEnd(t.lastChild,t.lastChild.textContent.length);const n=e.defaultView?.getSelection();n?.removeAllRanges(),n?.addRange(i)}function a4(){const t=Ml("navigator");if("scheduling"in t){const e=t.scheduling;if("isInputPending"in e)return e.isInputPending({includeContinuous:!0})}return!1}function mu(t){return`ag-charts-icon ag-charts-icon-${t}`}function MX(t){let{x:e,y:i,width:n,height:s}=t;return(n==null||n>0)&&(s==null||s>0)?t:(e!=null&&n!=null&&n<0&&(n=-n,e=e-n),i!=null&&s!=null&&s<0&&(s=-s,i=i-s),{x:e,y:i,width:n,height:s})}function O0(t,e,i){i==null?t.removeProperty(e):t.setProperty(e,`${i}px`)}function go(t){return t!=null}function qt(t){return Array.isArray(t)}function o4(t){return typeof t=="boolean"}function aa(t){return t instanceof Date}function Ac(t){return aa(t)&&!Number.isNaN(Number(t))}function r4(t){return t instanceof RegExp}function Cl(t){return typeof t=="function"}function Bt(t){return typeof t=="object"&&t!==null&&!qt(t)}function Pb(t){return qt(t)||Ie(t)}function Ie(t){return typeof t=="object"&&t!==null&&t.constructor?.name==="Object"}function cb(t){if(typeof t!="object"||t===null)return!1;for(const e in t)return!1;return!0}function zi(t){return typeof t=="string"}function Je(t){return typeof t=="number"}function Ae(t){return Number.isFinite(t)}function x1(t){return t!=null&&t.nodeType===1&&"style"in t}function DX(t,e){return zi(e)&&Object.keys(t).includes(e)}function AX(t,e){return Object.values(t).includes(e)}function hb(t){return typeof t=="symbol"}function l4(t){return zi(t)&&(t==="none"||n4(t)!=null)}function jd(t,e){return t in e}function v1({fontSize:t,fontStyle:e,fontWeight:i,fontFamily:n}){let s="";return e&&e!=="normal"&&(s+=`${e} `),i&&i!=="normal"&&i!==400&&(s+=`${i===700?"bold":i} `),s+=`${t}px`,s+=` ${n}`,s}function nr(t,e=1.15){return Math.round(t*e)}function bi(t){return String(t??"")}function qw(t){return S1(t.replace(i4,""))+Ff}var IX=new Set([1575,1577,1583,1584,1585,1586,1608]);function kX(t){return t>=1568&&t<=1610&&!IX.has(t)}function S1(t){if(!t)return t;const e=t.codePointAt(t.length-1);return kX(e)?t+"":t}function c4(t){return Rb+t+Rb}function h4(t){return t.replaceAll(Rb,"")}function u4(t){return qt(t)?JM(t.at(-1)):wu(bi(t))}function wu(t){return t.endsWith(Ff)}function JM(t){return bi(t?.text).endsWith(Ff)}var bz=typeof Intl<"u"&&typeof Intl.Segmenter=="function"?new Intl.Segmenter(void 0,{granularity:"grapheme"}):void 0;function Sc(t){return bz?Array.from(bz.segment(t),e=>e.segment):Array.from(t)}function yu(t,e="and",i=String,n=1/0){if(t.length===0)return"";if(t.length===1)return i(t[0]);t=t.map(i);const s=t.pop();if(t.length>=n){const a=t.length-(n-1);return`${t.slice(0,n-1).join(", ")}, and ${a} more ${e} ${s}`}return`${t.join(", ")} ${e} ${s}`}function zb(t,e=1/0){if(typeof t=="number"){if(Number.isNaN(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity"}const i=JSON.stringify(t)??typeof t;return i.length>e?`${i.slice(0,e)}... (+${i.length-e} characters)`:i}
Line truncated
|
||||
|
||||
${a.join(`
|
||||
|
||||
`)}
|
||||
|
||||
`),uo(o,s);return}n.restoreMemento(this.version,e.version,s)}}encode(e,i){try{return JSON.parse(JSON.stringify(i,iN.encodeTypes))}catch(n){throw new Error(`Failed to encode [${e.mementoOriginatorKey}] value [${n}].`,{cause:n})}}decode(e,i){if(i==null)return i;try{return JSON.parse(JSON.stringify(i),iN.decodeTypes)}catch(n){throw new Error(`Failed to decode [${e.mementoOriginatorKey}] value [${n}].`,{cause:n})}}static encodeTypes(e,i){return aa(this[e])?{__type:"date",value:this[e].toISOString()}:i}static decodeTypes(e,i){return Bt(this[e])&&"__type"in this[e]&&this[e].__type==="date"?new Date(this[e].value):i}},z=(t=>(t.X="x",t.Y="y",t.Angle="angle",t.Radius="radius",t))(z||{}),Ct=(t=>(t[t.FULL=0]="FULL",t[t.UPDATE_DATA=1]="UPDATE_DATA",t[t.PROCESS_DATA=2]="PROCESS_DATA",t[t.PROCESS_DOMAIN=3]="PROCESS_DOMAIN",t[t.PROCESS_RANGE=4]="PROCESS_RANGE",t[t.PERFORM_LAYOUT=5]="PERFORM_LAYOUT",t[t.PRE_SERIES_UPDATE=6]="PRE_SERIES_UPDATE",t[t.SERIES_UPDATE=7]="SERIES_UPDATE",t[t.PRE_SCENE_RENDER=8]="PRE_SCENE_RENDER",t[t.SCENE_RENDER=9]="SCENE_RENDER",t[t.NONE=10]="NONE",t))(Ct||{}),pe=(t=>(t[t.CHART_BACKGROUND=0]="CHART_BACKGROUND",t[t.AXIS_BAND_HIGHLIGHT=1]="AXIS_BAND_HIGHLIGHT",t[t.AXIS_GRID=2]="AXIS_GRID",t[t.AXIS=3]="AXIS",t[t.SERIES_AREA_CONTAINER=4]="SERIES_AREA_CONTAINER",t[t.ZOOM_SELECTION=5]="ZOOM_SELECTION",t[t.SERIES_CROSSLINE_RANGE=6]="SERIES_CROSSLINE_RANGE",t[t.SERIES_LAYER=7]="SERIES_LAYER",t[t.AXIS_FOREGROUND=8]="AXIS_FOREGROUND",t[t.SERIES_CROSSHAIR=9]="SERIES_CROSSHAIR",t[t.SERIES_CROSSLINE_LINE=10]="SERIES_CROSSLINE_LINE",t[t.SERIES_ANNOTATION=11]="SERIES_ANNOTATION",t[t.CHART_ANNOTATION=12]="CHART_ANNOTATION",t[t.CHART_ANNOTATION_FOCUSED=13]="CHART_ANNOTATION_FOCUSED",t[t.STATUS_BAR=14]="STATUS_BAR",t[t.SERIES_LABEL=15]="SERIES_LABEL",t[t.LEGEND=16]="LEGEND",t[t.NAVIGATOR=17]="NAVIGATOR",t[t.FOREGROUND=18]="FOREGROUND",t))(pe||{}),Vs=(t=>(t[t.BACKGROUND=0]="BACKGROUND",t[t.ANY_CONTENT=1]="ANY_CONTENT",t))(Vs||{}),Mc=(t=>(t[t.FOREGROUND=0]="FOREGROUND",t[t.HIGHLIGHT=1]="HIGHLIGHT",t[t.LABEL=2]="LABEL",t))(Mc||{}),gl=(t=>(t[t.BACKGROUND=0]="BACKGROUND",t[t.FOREGROUND=1]="FOREGROUND",t[t.HIGHLIGHT=2]="HIGHLIGHT",t[t.LABEL=3]="LABEL",t))(gl||{});function qd(t){const{placement:e="bottom",floating:i=!1,xOffset:n=0,yOffset:s=0}=typeof t=="string"?{placement:t,floating:!1}:t;return{placement:e,floating:i,xOffset:n,yOffset:s}}var xt=class{handleUnknownProperties(t,e){}set(t){const{className:e=this.constructor.name}=this.constructor;if(t==null)return this.clear(),this;if(typeof t!="object")return cl(`unable to set ${e} - expecting a properties object`),this;const i=new Set(Object.keys(t));for(const n of ru(this))if(i.has(n)){const s=t[n],a=this;if(of(a[n]))if(a[n]instanceof ss){const o=a[n].reset(s);o==null?cl(`unable to set [${String(n)}] - expecting a properties array`):a[n]=o}else a[n].set(s);else Ie(s)?a[n]=Hb(s,a[n]??{}):a[n]=s;i.delete(n)}this.handleUnknownProperties(i,t);for(const n of i)cl(`unable to set [${String(n)}] in ${e} - property is unknown`);return this}clear(){for(const t of ru(this)){const e=this[t];of(e)?e.clear():this[t]=void 0}return this}toJson(){return ru(this).reduce((t,e)=>{const i=this[e];return t[String(e)]=of(i)?i.toJson():i,t},{})}},ss=class q4 extends Array{constructor(e,...i){super(i.length);const s=(a=>!!a?.prototype?.constructor?.name)(e)?a=>new e().set(a):e;Object.defineProperty(this,"itemFactory",{value:s,enumerable:!1,configurable:!1}),this.set(i)}set(e){if(qt(e)){this.length=e.length;for(let i=0;i<e.length;i++)this[i]=this.itemFactory(e[i])}return this}reset(e){if(Array.isArray(e))return new q4(this.itemFactory,...e)}toJson(){return this.map(e=>e?.toJson?.()??e)}};function of(t){return t instanceof xt||t instanceof ss}var Mp=class extends xt{constructor(){super(...arguments),this.type="linear",this.tension=1,this.position="end"}};Br([b],Mp.prototype,"type");Br([b],Mp.prototype,"tension");Br([b],Mp.prototype,"position");function bf(t,e){const[i,n]=xi(e);return Nt(i,t,n)}function xi(t){if(t.length===0)return[];const e=[1/0,-1/0];for(const i of t)i<e[0]&&(e[0]=i),i>e[1]&&(e[1]=i);return e}function Tc(t){const[e,i]=xi(t);return i-e}function Gf(t){return t=Math.trunc(t),t<=0?1:t===1?2:1<<32-Math.clz32(t-1)}function nN(t){return t=Math.trunc(t),t<=0?0:t===1?1:1<<31-Math.clz32(t)}var Ca=0,wa=1,Na=2,Ta=3,er=4,Vc=1e3,s8=10,Ou=64,sp=4294967295,a8=3,o8=20,pC=100;function sN(t,e,i,n,s,a,o,r){let l=0;for(;l<pC&&t[n]==null&&n<s;)n+=1,l+=1;for(;l<pC&&t[s]==null&&s>n;)s-=1,l+=1;if(l>=pC||n>=s)return a;const c=Number.isFinite(e)?ar(t[s],e,i,r)-ar(t[n],e,i,r):xf(s,t.length)-xf(n,t.length);if(c===0||!Number.isFinite(c))return a;const u=Math.abs(c)/(s-n);let d;if(o<a8?d=!0:o>o8?d=!1:d=u<=a,a=Math.min(a,u),!d)return a;const g=Math.floor((n+s)/2),f=sN(t,e,i,n,g,a,o+1,r),y=sN(t,e,i,g+1,s,a,o+1,r);return Math.min(f,y,a)}function r8(t,e,i,n){return sN(t,e,i,0,t.length-1,1/(t.length-1),0,n)}function _c(t,e,i,n){if(Number.isFinite(e)){const s=n?.smallestKeyInterval,a=n?.xNeedsValueOf??!0,o=s==nu
Line truncated
|
||||
`)}function kc(t,e){return Ox(t,e).join(`
|
||||
`)}function Ox(t,e){return BS(t,e)}function tp(t,e,i,n){const s=e.textWidth(Ff),a=Sc(t);let o=0,r=0;for(const c of a){const u=e.textWidth(c);if(o+u>i)break;o+=u,r+=c.length}if(r===t.length&&(!n||o+s<=i))return n?qw(t):t;t=t.slice(0,r).trimEnd();const l=Sc(t);for(;l.length&&e.textWidth(t)+s>i;){for(l.pop();l.length&&l.at(-1).trim()==="";)l.pop();t=l.join("")}return qw(t)}function BS(t,e,i=0){const n=t.split(au),s=Ve(e.font),a=[];if(e.textWrap==="never"){for(const c of n){const u=tp(c.trimEnd(),s,Math.max(0,e.maxWidth-i));if(!u)break;a.push(u),i=0}return Az(a,e)?[]:a}const o=e.textWrap==="hyphenate",r=e.textWrap==null||e.textWrap==="on-space";for(const c of n){let u=c.trimEnd();if(u===""){a.push(u);continue}let d=Sc(u),g=0,f=0,y=0,x=0;for(a.length||(y=i);g<d.length;){const S=d[g];if(S===" "&&(x=f),y+=s.textWidth(S),y>e.maxWidth){if(g===0){u="";break}let D=s.textWidth(u.slice(0,f+S.length));if(a.length||(D+=i),D<=e.maxWidth){y=D,f+=S.length,g++;continue}if(x){const N=_8(u,x+1),O=s.textWidth(N);if(O<=e.maxWidth){a.push(u.slice(0,x).trimEnd()),u=u.slice(x).trimStart(),d=Sc(u),g=0,f=0,y=0,x=0;continue}else r&&O>e.maxWidth&&a.push(u.slice(0,x).trimEnd(),tp(u.slice(x).trimStart(),s,e.maxWidth,!0))}else if(r){const N=tp(u,s,e.maxWidth,!0);N&&a.push(N)}if(r){u="";break}const A=o?"-":"";let I=u.slice(0,f).trim();const w=Sc(I);for(;w.length&&s.textWidth(I+A)>e.maxWidth;){for(w.pop();w.length&&w.at(-1).trim()==="";)w.pop();I=w.join("")}if(I&&I!==Rb)a.push(S1(I)+A);else{u="";break}u=u.slice(I.length).trimStart(),d=Sc(u),g=0,f=0,y=0,x=0;continue}f+=S.length,g++}u&&a.push(u)}F8(a,s,e);const l=kj(a,s,e);return Az(l,e)?[]:l}function _8(t,e){const i=t.indexOf(" ",e);return i===-1?t.slice(e):t.slice(e,i)}function kj(t,e,i){if(!Ae(i.maxHeight))return t;const{height:n,lineMetrics:s}=e.measureLines(t);if(n<=i.maxHeight)return t;for(let a=0,o=0;a<s.length;a++)if(o+=s[a].height,o>i.maxHeight){if(i.overflow==="hide"||a===0)return[];const r=t.slice(0,a),l=r.pop();return r.concat(wu(l)?l:tp(l,e,i.maxWidth,!0))}return t}function F8(t,e,i){if(i.avoidOrphans===!1||t.length<2)return;const{length:n}=t,s=t[n-1],a=t[n-2];if(Sc(a).length<Sc(s).length)return;const o=a.lastIndexOf(" ");if(o===-1||o===a.indexOf(" ")||s.includes(" "))return;const r=a.slice(o+1);e.textWidth(s+r)<=i.maxWidth&&(t[n-2]=a.slice(0,o),t[n-1]=r+" "+s)}function gT(t,e){const{maxHeight:i=1/0}=e,n=[];let s=0,a=0;function o(){const r=n.pop();if(!r)return;const l=Ve(r),c=tp(r.text,l,e.maxWidth,!0),u=l.measureText(c);n.push({...r,text:c,textMetrics:u})}for(const{width:r,height:l,segments:c}of Va(t,e.font).lineMetrics){if(a+l>i){n.length&&o();break}if(s+r<=e.maxWidth){s+=r,a+=l,n.push(...c);continue}for(const u of c){if(s+u.textMetrics.width<=e.maxWidth){s+=u.textMetrics.width,n.push(u);continue}const d=Ve(u),g=c4(u.text),f={...e,font:u,maxHeight:i-a};let y=BS(g,{...f,overflow:"hide"},s);if(y.length===0)if(e.textWrap==="never")y=BS(g,f,s);else{y=BS(g,f);const D=n.at(-1);D&&(D.text+=`
|
||||
`,s=0)}if(y.length===0){o();break}const x=y.findIndex(wu);x!==-1&&(y=y.slice(0,x+1));const S=y.at(-1);for(const D of y){const A=h4(D),I=d.measureText(A),w={...u,text:A,textMetrics:I};D===S?s+=I.width:(w.text+=`
|
||||
`,s=0),a+=I.height,n.push(w)}if(x!==-1)break}}return n}function pM(t,[e,i],[n,s]){const a=s-n,o=i-e,r=e+o*t[0],l=e+o*t[1];return[(r-n)/a,(l-n)/a]}var rf=1e3,tu=rf*60,ep=tu*60,op=ep*24,Cj=op*7,fT=op*30,Kb=op*365,Tg=new Date().getTimezoneOffset()*tu,Kf={millisecond:{milliseconds:1,hierarchy:"day",encode(t){return t.getTime()},decode(t){return new Date(t)}},second:{milliseconds:rf,hierarchy:"day",encode(t,e){const i=e?0:Tg;return Math.floor((t.getTime()-i)/rf)},decode(t,e){const i=e?0:Tg;return new Date(i+t*rf)}},minute:{milliseconds:tu,hierarchy:"day",encode(t,e){const i=e?0:Tg;return Math.floor((t.getTime()-i)/tu)},decode(t,e){const i=e?0:Tg;return new Date(i+t*tu)}},hour:{milliseconds:ep,hierarchy:"day",encode(t,e){const i=e?0:Tg;return Math.floor((t.getTime()-i)/ep)},decode(t,e){const i=e?0:Tg;return new Date(i+t*ep)}},day:{milliseconds:op,hierarchy:"month",encode(t,e){const i=e?0:t.getTimezoneOffset()*tu;return Math.floor((t.getTime()-i)/op)},decode(t,e){let i;return e?(i=new Date(0),i.setUTCDate(i.getUTCDate()+t),i.setUTCHours(0,0,0,0)):(i=new Date(1970,0,1),i.setDate(i.getDate()+t)),i}},month:{milliseconds:fT,hierarchy:"year",encode(t,e){return e?t.getUTCFullYear()*12+t.getUTCMonth():t.getFullYear()*12+t.getMonth()},decode(t,e){if(e){const i=Math.floor(t/12),n=t-i*12;return new Date(Date.UTC(i,n,1))}else{const i=Math.floor(t/12),n=t-i*12;return new Date(i,n,1)}}},year:{milliseconds:Kb,hierarchy:void 0,encode(t,e){return e?t.getUTCFullYear():t.getFullYear()},decode(t,e){let i;return e?(i=new Date,i.setUTCFullYear(t),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)):i=new Date(t,0,1,0,0,0,0),i}}};function Yf(t){return typeof t=="string"?{unit:t,step:1,epoch:void 0,utc:!1}:{unit:t.unit,step:t.step??1,epoch:t.epoch,utc:t.utc??!1}}function Ex(t,e,i,n){if(i==null)return 0;const s=Kf[t];return Math.floor(s.encode(new Date(i),n))%e}function Sf(t,e,i,n,s){const a=Kf[e];return Math.floor((a.encode(new Date(t),n)-s)/i)}function $f(t,e,i,n,s){return Kf[e].decode(t*i+s,n)}function gM(t,e,i,n,s){const a=new Date(t),o=Sf(a,e,i,n,s);return $f(o,e,i,n,s)}function fM(t,e,i,n,s){const a=new Date(Number(t)-1),o=Sf(a,e,i,n,s);return $f(o+1,e,i,n,s)}function La(t,e){const{unit:i,step:n,epoch:s,utc:a}=Yf(t),o=Ex(i,n,s,a);return gM(e,i,n,a,o)}function wj(t,e){const{unit:i,step:n,epoch:s,utc:a}=Yf(t),o=Ex(i,n,s,a);return fM(e,i,n,a,o)}function Nj(t,e){const{unit:i,step:n,epoch:s,utc:a}=Yf(t),o=Ex(i,n,s,a);return $f(Sf(fM(e,i,n,a,o),i,n,a,o)-1,i,n,a,o)}function mT(t,e){const{unit:i,step:n,epoch:s,utc:a}=Yf(t),o=Ex(i,n,s,a);return $f(Sf(gM(e,i,n,a,o),i,n,a,o)+1,i,n,a,o)}function yT(t,e,i){if(t.valueOf()>e.valueOf()&&([t,e]=[e,t],i!=null&&(i=[1-i[1],1-i[0]])),i!=null){const n=e.valueOf()-t.valueOf(),s=t.valueOf();t=new Date(s+i[0]*n),e=new Date(s+i[1]*n)}return[new Date(t),new Date(e)]}function Yb(t,e,i,{extend:n=!1,visibleRange:s=[0,1],limit:a,defaultAlignment:o="start"}={}){const r=Yf(t),{unit:l,step:c,utc:u}=r;let d;r.epoch!=null?d=r.epoch:o==="interval"?d=void 0:e.valueOf()>i.valueOf()?d=i:d=e;const g=Ex(r.unit,r.step,d,r.utc);let[f,y]=yT(e,i,s);f=n?gM(f,l,c,u,g):fM(f,l,c,u,g),y=n?fM(y,l,c,u,g):gM(y,l,c,u,g);const x=Sf(f,l,c,u,g);let S=Sf(y,l,c,u,g);return a!=null&&S-x>a&&(S=x+a),{range:[x,S],unit:l,step:c,utc:u,offset:g}}function mM(t,e,i,n){const{range:[s,a]}=Yb(t,e,i,n);return Math.abs(a-s)}function fo(t,e,i,n){const{range:[s,a],unit:o,step:r,utc:l,offset:c}=Yb(t,e,i,n),u=[];for(let d=s;d<=a;d+=1){const g=$f(d,o,r,l,c);u.push(g)}return u}function Tj(t,e,i,n){const{range:[s,a],unit:o,step:r,utc:l,offset:c}=Yb(t,e,i,n),u=Math.max(0,a-s+1),d=new Array(u);for(let g=0;g<u;g++)d[g]=s+g;return{encodedValues:d,encodingParams:{unit:o,step:r,utc:l,offset:c}}}function Lj(t,e){return $f(t,e.unit,e.step,e.utc,e.offset)}var bC=new Date().getTimezoneOffset()*6e4,H8=1e3,j8=6e4,G8=36e5;function Hh(t,e){const{unit:i,step:n,utc:s,offset:a}=e,o=t*n+a;switch(i){case"millisecond":return o;case"second":return(s?0:bC)+o*H8;case"minute":return(s?0:bC)+o*j8;case"hour":return(s?0:bC)+o*G8;default:return Kf[i].decode(o,s).valueOf()}}function bT(t,e,i,{extend:n,visibleRange:s,limit:a,defaultAlignment:o}={}){const{range:[r]}=Yb(t,e,i,{extend:n,visibleRange:s,limit:a,defaultAlignment:o}),{range:[l]}=Yb(t,e,i,{extend:n,limit:a,defaultAlignment:o});return r-l}var U8={millisecond:{adjust(t,e,i){const n=new Date;return n.setTime(t.getTime()+e),n}},second:{adjust(t,e,i){const n=new Date(t.getTime());return i?n.setUTCSeconds(t.getUTCSeconds()+e):n.setSeconds(t.getSeconds()+e),n}},minute:{adjust(t,e,i){const n=new Date(t.getTime());return i?n.setUTCMinutes(t.getUTCMinutes()+e):n.setMinutes(t.getMinutes()+e),n}},hour:{adjust(t,e,i){const n=new Date(t.getTime());return i?n.setUTCHours(t.getUTCHours()+e):n.setHours(t.getHours()+e),n}},day:{adjust(t,e,i){const n=new Date(t.getTime());return i?n.setUTCDate(t.getUTCDate()+e):n.setDate(t.getDate()+e),n}},month:{adjust(t,e,i){const n=new Date(t.getTime());if(i){if(n.setUTCMonth(t.getUTCMonth()+e),e!==0)for(;n.getUTCMonth()==
Line truncated
|
||||
`).filter(s=>s!=="Error"&&!s.includes(".markDebugProperties")&&!s.includes(".markDirty")&&!s.includes("Object.assign ")&&!s.includes(`${this.constructor.name}.`))??"unknown";i.push(n[0].replace(" at ","").trim()),this._debugDirtyProperties?.set(e,i)}debugDirtyProperties(){if(this._debugDirtyProperties!=null){if(!this._debugDirtyProperties.has("__first__"))for(const[e,i]of this._debugDirtyProperties.entries())i.length>1&&pt.logGroup(`Property changed multiple times before render: ${this.constructor.name}.${e} (${i.length}x)`,()=>{for(const n of i)pt.log(n)});this._debugDirtyProperties.clear()}}static handleNodeZIndexChange(e){e.onZIndexChange()}onZIndexChange(){this.parentNode?.markDirtyChildrenOrder()}resolveFont(){}toSVG(){}};hp.className="AbstractNode";hp._nextSerialNumber=0;hp._debugEnabled=!1;T([fe()],hp.prototype,"visible",2);T([fe({changeCb:hp.handleNodeZIndexChange})],hp.prototype,"zIndex",2);var Oc=hp,OD=class{ticks(t,e,i){}niceDomain(t,e=this.domain){return e}get bandwidth(){}get step(){}get inset(){}},ED=(t,e)=>{const i=Symbol(String(e));t[i]=void 0,Object.defineProperty(t,e,{get(){return this[i]},set(n){this[i]!==n&&(this[i]=n,this.invalid=!0)},enumerable:!0,configurable:!1})};function uG(t,e,i){if(i==null||i[0]===0&&i[1]===1)return;const n=Nt(0,Math.floor(i[0]*t.length),t.length),s=Nt(0,Math.ceil(i[1]*t.length),t.length),a=e?t.length-s:n,o=e?t.length-n:s;return[a,o]}function zz(t,e,i){return uG(t,e,i)??[0,t.length]}function dG(t,e,i){const n=uG(t,e,i);if(n==null)return{ticks:t,count:t.length,firstTickIndex:0};const[s,a]=n;return{ticks:t.slice(s,a),count:t.length,firstTickIndex:s}}function RD(t){const e=pN(t.at(0)),i=pN(t.at(-1));return e!=null&&i!=null?[e,i]:[void 0,void 0]}var Bz=t=>{const e=se.fromString(t),[i,n,s]=se.RGBtoOKLCH(e.r,e.g,e.b);return{l:i,c:n,h:s,a:e.a}},MC=1e-6,Vz=t=>t.c<MC||t.l<MC||t.l>1-MC,Y9=(t,e,i)=>{i=Nt(0,i,1);let n;if(Vz(t))n=e.h;else if(Vz(e))n=t.h;else{const r=t.h;let l=e.h;const c=e.h-t.h;c>180?l-=360:c<-180&&(l+=360),n=r*(1-i)+l*i}const s=t.c*(1-i)+e.c*i,a=t.l*(1-i)+e.l*i,o=t.a*(1-i)+e.a*i;return se.fromOKLCH(a,s,n,o)},qf=class extends OD{constructor(){super(...arguments),this.type="color",this.defaultTickCount=0,this.invalid=!0,this.domain=[0,1],this.range=["red","blue"],this.parsedRange=this.range.map(Bz)}update(){const{domain:e,range:i}=this;e.length<2&&(pt.warnOnce("`colorDomain` should have at least 2 values."),e.length===0?e.push(0,1):e.length===1&&e.push(e[0]+1));for(let n=1;n<e.length;n++){const s=e[n-1],a=e[n];if(s>a){pt.warnOnce("`colorDomain` values should be supplied in ascending order."),e.sort((o,r)=>o-r);break}}if(i.length<e.length)for(let n=i.length;n<e.length;n++)i.push(i.length>0?i[0]:"black");this.parsedRange=this.range.map(Bz)}normalizeDomains(...e){return{domain:e.map(i=>i.domain).flat(),animatable:!0}}toDomain(){}convert(e){this.refresh();const{domain:i,range:n,parsedRange:s}=this,a=i[0],o=i.at(-1),r=n[0],l=n.at(-1);if(e<=a)return r;if(e>=o)return l;let c,u;if(i.length===2){const f=(e-a)/(o-a),y=1/(n.length-1);c=n.length<=2?0:Math.min(Math.floor(f*(n.length-1)),n.length-2),u=(f-c*y)/y}else{for(c=0;c<i.length-2&&!(e<i[c+1]);c++);const f=i[c],y=i[c+1];u=(e-f)/(y-f)}const d=s[c],g=s[c+1];return Y9(d,g,u).toRgbaString()}invert(){}getDomainMinMax(){return RD(this.domain)}refresh(){this.invalid&&(this.invalid=!1,this.update(),this.invalid&&pt.warnOnce("Expected update to not invalidate scale"))}};T([ED],qf.prototype,"domain",2);T([ED],qf.prototype,"range",2);var TT=class{constructor(t,e=[],i){this.colorSpace=t,this.stops=e,this.bbox=i,this._cache=void 0}createGradient(t,e,i){const n=this.bbox??e;if(!n.isFinite())return;if(this._cache?.ctx===t&&this._cache.bbox.equals(n))return this._cache.gradient;const{stops:s,colorSpace:a}=this;if(s.length===0)return;if(s.length===1)return s[0].color;let o=this.createCanvasGradient(t,n,i);if(o==null)return;const r=a==="oklch",l=.05;let c=s[0];o.addColorStop(c.stop,c.color);for(let u=1;u<s.length;u+=1){const d=s[u];if(r){const g=new qf;g.domain=[c.stop,d.stop],g.range=[c.color,d.color];for(let f=c.stop+l;f<d.stop;f+=l)o.addColorStop(f,g.convert(f)??"transparent")}o.addColorStop(d.stop,d.color),c=d}return"createPattern"in o&&(o=o.createPattern()),this._cache={ctx:t,bbox:n,gradient:o},o}toSvg(t){const e=this.bbox??t,i=this.createSvgGradient(e);for(const{stop:n,color:s}of this.stops){const a=$i("stop");a.setAttribute("offset",`${n}`),a.setAttribute("stop-color",`${s}`),i.appendChild(a)}return i}},$9=class extends TT{constructor(t,e,i=0,n){super(t,e,n),this.angle=i}createCanvasGradient(t,e,i){const{angle:s}=this,a=Dl(s+-90),o=i?.centerX??e.x+e.width*.5,r=i?.centerY??e.y+e.height*.5;return t.createConicGradient(a,o,r)}createSvgGradient(t){return $i("linearGradient")}},X9=class extends TT{constructor(t,e,i=0,n){super(t,e,n),this.angle=i}getGradientPoints(t){const{angle:i}=this,n=Dl(i+90),s=Math.cos(n),a=Math.sin(n),o=t.width,r=t.height,l=t.x+o*.5,c=t.y+r*.5,u=Math.hypot(r,o)/2,d=Math.atan2(r,o);let g;n<Math.PI/2?g=n:n<Math
Line truncated
|
||||
`,PT=class{constructor(){this.cleanup=new qe,this.destroyed=!1}destroy(){this.cleanup.flush(),this.destroyed=!0}},zZ=class HS{constructor(e,i,n){this.element=e,this.topTabGuard=i,this.bottomTabGuard=n,this.cleanup=new qe,this.guardTabIndex=0,this.hasFocus=!1,this.initTabGuard(this.topTabGuard,!1),this.initTabGuard(this.bottomTabGuard,!0),this.element.addEventListener("focus",()=>this.onFocus(),{capture:!0}),this.element.addEventListener("blur",s=>this.onBlur(s),{capture:!0})}set tabIndex(e){this.guardTabIndex=e,this.guardTabIndex===0?this.setGuardIndices(void 0):this.hasFocus||this.setGuardIndices(this.guardTabIndex)}destroy(){this.cleanup.flush()}initTabGuard(e,i){this.cleanup.register(Qe(e,"focus",()=>this.onTab(e,i)))}setGuardIndices(e){const i=e;ye(this.topTabGuard,"tabindex",i),ye(this.bottomTabGuard,"tabindex",i)}onFocus(){this.hasFocus=!0,this.guardTabIndex!==0&&this.setGuardIndices(0)}onBlur({relatedTarget:e}){const{topTabGuard:i,bottomTabGuard:n}=this;this.hasFocus=!1,this.guardTabIndex!==0&&e!==i&&e!==n&&this.setGuardIndices(this.guardTabIndex)}onTab(e,i){if(this.guardTabIndex!==0){let n;e.tabIndex===0?(n=this.findExitTarget(!i),this.setGuardIndices(this.guardTabIndex)):n=this.findEnterTarget(i),n?.focus()}}static queryFocusable(e,i){const n=e.ownerDocument.defaultView;return Array.from(e.querySelectorAll(i)).filter(s=>{if(Eb(s)){const a=n.getComputedStyle(s);return a.display!=="none"&&a.visibility!=="none"}return!1})}findEnterTarget(e){const i=HS.queryFocusable(this.element,'[tabindex="0"]'),n=e?i.length-1:0;return i[n]}findExitTarget(e){const i=HS.queryFocusable(this.element.ownerDocument.body,"[tabindex]").filter(a=>a.tabIndex>0).sort((a,o)=>a.tabIndex-o.tabIndex),{before:n,after:s}=HS.findBeforeAndAfter(i,this.guardTabIndex);return e?n:s}static findBeforeAndAfter(e,i){let n=0,s=e.length-1,a,o;for(;n<=s;){const r=Math.floor((n+s)/2),l=e[r].tabIndex;if(l===i){a=e[r-1]||void 0,o=e[r+1]||void 0;break}else l<i?(a=e[r],n=r+1):(o=e[r],s=r-1)}return{before:a,after:o}}},BZ=class{constructor(t,e){this.agDocument=t,this.callback=e,this.devicePixelRatioMediaQuery=void 0,this.devicePixelRatioListener=i=>{i.matches||(this.devicePixelRatio=this.agDocument.devicePixelRatio,this.unregisterDevicePixelRatioListener(),this.registerDevicePixelRatioListener(),this.callback(this.pixelRatio))},this.devicePixelRatio=t.devicePixelRatio}get pixelRatio(){return this.devicePixelRatio}observe(){this.registerDevicePixelRatioListener()}disconnect(){this.unregisterDevicePixelRatioListener()}unregisterDevicePixelRatioListener(){this.devicePixelRatioMediaQuery?.removeEventListener("change",this.devicePixelRatioListener),this.devicePixelRatioMediaQuery=void 0}registerDevicePixelRatioListener(){const t=this.agDocument.matchMedia(`(resolution: ${this.pixelRatio}dppx)`);t?.addEventListener("change",this.devicePixelRatioListener),this.devicePixelRatioMediaQuery=t}},VZ=class{constructor(t){this.elements=new Map,this.documentReady=!1,this.queuedObserveRequests=[],this.onLoad=()=>{this.documentReady=!0;for(const[i,n,s]of this.queuedObserveRequests)this.observe(i,n,s);this.queuedObserveRequests=[],this.observeWindow()},this.resizeObserver=t.createResizeObserver(i=>{for(const{target:n,contentRect:{width:s,height:a}}of i){const o=this.elements.get(n);this.checkSize(o,n,s,a)}});let e;this.pixelRatioObserver=new BZ(t,()=>{clearTimeout(e),e=setTimeout(()=>this.checkPixelRatio(),0)}),this.documentReady=t.isReady(),this.documentReady?this.observeWindow():this.removeLoadListener=t.attachListener("load",this.onLoad)}destroy(){this.removeLoadListener?.(),this.removeLoadListener=void 0,this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.pixelRatioObserver?.disconnect(),this.pixelRatioObserver=void 0}observeWindow(){this.pixelRatioObserver?.observe()}checkPixelRatio(){const t=this.pixelRatioObserver?.pixelRatio??1;for(const[e,i]of this.elements)if(i.size!=null&&i.size.pixelRatio!==t){const{width:n,height:s}=i.size;i.size={width:n,height:s,pixelRatio:t},i.cb(i.size,e)}}checkSize(t,e,i,n){if(t&&(i!==t.size?.width||n!==t.size?.height)){const s=this.pixelRatioObserver?.pixelRatio??1;t.size={width:i,height:n,pixelRatio:s},t.cb(t.size,e)}}observe(t,e,i){if(!this.documentReady){this.queuedObserveRequests.push([t,e,i]);return}this.elements.has(t)?this.removeFromQueue(t):this.resizeObserver?.observe(t);const n={cb:e};if(this.elements.set(t,n),!i?.skipInitialRead){const s=t.ownerDocument.defaultView?.getComputedStyle(t),a=t.clientWidth-(Number.parseFloat(s?.paddingLeft??"0")+Number.parseFloat(s?.paddingRight??"0")),o=t.clientHeight-(Number.parseFloat(s?.paddingTop??"0")+Number.parseFloat(s?.paddingBottom??"0"));(a>0||o>0)&&this.checkSize(n,t,a,o)}}unobserve(t){this.resizeObserver?.unobserve(t),this.elements.delete(t),this.removeFromQueue(t),this.elements.size||this.destroy()}removeFromQueue(t){this.queuedObserveRequests=this.queuedObserveRequests.filter(([e])=>e!==t)}},DM=class extends Map{constructor(t,e){super(),this.defaultValue=t,this.defa
Line truncated
|
||||
`;this.domManager.addStyles(`google-font-${e.join("-")}`,s)}observeFontStatus(t){const e=WH();if(e===void 0)return;const n=this.domManager.getDocument().createElement("div",{position:"absolute",top:"0",margin:"0",padding:"0",overflow:"hidden",visibility:"hidden",width:"auto",maxWidth:"none",fontSynthesis:"none",fontFamily:t,fontSize:"16px",whiteSpace:"nowrap"});n.textContent="UVWxyz",this.domManager.addChild("canvas-container",`font-check-${encodeURIComponent(t)}`,n);const s=new e(a=>{const o=a?.at(0)?.contentBoxSize.at(0)?.inlineSize;o!=null&&o>0&&(Ve.clear(),this.eventsHub.emit("font:load",null))});s.observe(n),this.observers.push(s)}},kG=class{constructor(){this.registeredListeners=new Map}addListener(t,e){const i={symbol:Symbol(t),handler:e};return this.registeredListeners.has(t)?this.registeredListeners.get(t).push(i):this.registeredListeners.set(t,[i]),()=>this.removeListener(i.symbol)}removeListener(t){for(const[e,i]of this.registeredListeners.entries()){const n=i.findIndex(s=>s.symbol===t);if(n>=0){i.splice(n,1),i.length===0&&this.registeredListeners.delete(e);break}}}dispatch(t,...e){for(const i of this.getListenersByType(t))try{i.handler(...e)}catch(n){pt.errorOnce(n)}}getListenersByType(t){return this.registeredListeners.get(t)??[]}destroy(){this.registeredListeners.clear()}},il={millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e",month:"%b",year:"%Y"},mq={millisecond:"%Y %b %e %H:%M:%S.%L",second:"%Y %b %e %H:%M:%S",minute:"%Y %b %e %H:%M",hour:"%Y %b %e %H:%M",day:"%Y %b %e",month:"%Y %b",year:"%Y"},Rs={year:0,month:1,day:2,hour:3,minute:4,second:5,millisecond:6},yq=/%[-_0]?L/,bq=/%[-_0]?S/,xq=/%[-_0]?M/,vq=/%[-_0]?[HI]/,Sq=/^%[-_0]?[de]$/,Mq=/^%[-_0]?[Bbm]$/,Dq=/^%[-_0]?[Yy]$/;function Aq(t,e,i){if(typeof t=="string")return t;t??(t=il);const{millisecond:n=il.millisecond,second:s=il.second,minute:a=il.minute,hour:o=il.hour,day:r=il.day,month:l=il.month,year:c=il.year}=t,u=Rs[e],d=mq[e],g=i?Rs[i]:-1;if(g<Rs.year&&u>=Rs.year&&!Dq.test(c)||g<Rs.month&&u>=Rs.month&&!Mq.test(l)||g<Rs.day&&u>=Rs.day&&!Sq.test(r))return d;let f;switch(e){case"year":return c;case"month":return g<Rs.year?`${l} ${c}`:l;case"day":return g<Rs.year?`${l} ${r} ${c}`:`${l} ${r}`;case"hour":f=o;break;case"minute":f=a;break;case"second":f=s;break;case"millisecond":f=n;break;default:return d}if(u>=Rs.hour&&!vq.test(f)||u>=Rs.minute&&!xq.test(f)||u>=Rs.second&&!bq.test(f)||u>=Rs.millisecond&&!yq.test(f))return d;let y;return g<Rs.year?y=`${l} ${r} ${c}`:g<Rs.month&&(y=`${l} ${r}`),y?`${f} ${y}`:f}var Tf=class GS extends kG{constructor(){super(...arguments),this.formats=new Map,this.dateFormatter=Pu((e,i,n,s,a)=>{const o=GS.mergeSpecifiers(e,i)??il;return GS.getFormatter("date",o,n,s,{truncateDate:a})}),this.formatter=void 0}static mergeSpecifiers(...e){let i;for(const n of e)Ie(n)&&Ie(i)?i={...i,...n}:i=n;return i}static getFormatter(e,i,n,s="long",{truncateDate:a}={}){if(Ie(i)){if(e!=="date"){pt.warn("Date formatter configuration is not supported for non-date types.");return}n??(n="millisecond");const o=s==="component"?i?.[n]??il[n]:Aq(i,n,a);return kf(o)}switch(e){case"number":{const o=iD(i);return o==null?void 0:C1(o)}case"date":return kf(i);case"category":return o=>i.replace("%s",String(o))}}setFormatter(e){this.formatter!==e&&(this.formatter=e,this.formats.clear(),this.dateFormatter.reset(),this.dispatch("format-changed"))}format(e,i,{specifier:n,truncateDate:s,allowNull:a}={}){if(i.value==null&&!a)return;const{formatter:o}=this;if(o==null)return;if(typeof o=="function"){const u=e(o,i);return u==null?void 0:String(u)}const r=o[i.property];if(r==null)return;if(typeof r=="function"){const u=e(r,i);return u==null?u:bi(u)}else if(i.type==="date"){const{unit:u,style:d}=i;return this.dateFormatter(r,n,u,d,s)?.(i.value)}const l=n??r;if(typeof l!="string")return;let c=this.formats.get(l);return c==null&&(c=GS.getFormatter(i.type,l),this.formats.set(l,c)),c?.(i.value,i.type==="number"?i.fractionDigits:void 0)}defaultFormat(e,{specifier:i,truncateDate:n}={}){const{formatter:s}=this,a=typeof s=="function"?void 0:s?.[e.property];switch(e.type){case"date":{const{unit:o,style:r}=e,l=a!=null&&typeof a!="function"?a:void 0;return this.dateFormatter(l,i,o,r,n)?.(e.value)??String(e.value)}case"number":return Or(e.value,e.fractionDigits);case"category":return e.value==null?"":Array.isArray(e.value)?e.value.join(" - "):typeof e.value=="string"?e.value:typeof e.value=="number"?Or(e.value):String(e.value)}}},CG={activeItem:{type:ht(fx()("series-node","legend")),seriesId:K,itemId:ht(Xt(K,X))},frozen:J},Fx={mode:Mt(dt("integrated","standalone")),withinStudio:Mt(J),container:A1,context:()=>!0,theme:jt,series:wl,annotations:jt,navigator:jt,scrollbar:jt,initialState:{active:CG,chartType:K,annotations:jt,legend:Xi({visible:J,seriesId:K,itemId:K,legendItemName:K},"legend state array"),zoom:jt}},Iq={...Zt,...Fx,axes:Nu,data:wl,dataIdKey:K},kq={...Zt,...Fx,axes:Nu,data:wl,dataIdKey:K},Cq={...Zt,...Fx,data:wl,dataIdKey:K,topol
Line truncated
|
||||
`,"<br>"))}function tb(t,e){const{path:i,size:n}=t,{x:s,y:a}=t;i.clear();let o=!1;for(const[r,l]of e){const c=s+(r-.5)*n,u=a+(l-.5)*n;o?i.lineTo(c,u):i.moveTo(c,u),o=!0}i.closePath()}var AJ={circle({path:t,x:e,y:i,size:n}){const s=n/2;t.arc(e,i,s,0,Math.PI*2),t.closePath()},cross(t){tb(t,[[.25,0],[.5,.25],[.75,0],[1,.25],[.75,.5],[1,.75],[.75,1],[.5,.75],[.25,1],[0,.75],[.25,.5],[0,.25]])},diamond(t){tb(t,[[.5,0],[1,.5],[.5,1],[0,.5]])},heart({path:t,x:e,y:i,size:n}){const s=n/4;i=i+s/2,t.arc(e-s,i-s,s,Ze(130),Ze(330)),t.arc(e+s,i-s,s,Ze(220),Ze(50)),t.lineTo(e,i+s),t.closePath()},pin({path:t,x:e,y:i,size:n}){t.moveTo(e+(.891-.5)*n,i+(.391-.5)*n),t.cubicCurveTo(e+(.891-.5)*n,i+(.606-.5)*n,e+(.5-.5)*n,i+(1-.5)*n,e+(.5-.5)*n,i+(1-.5)*n),t.cubicCurveTo(e+(.5-.5)*n,i+(1-.5)*n,e+(.109-.5)*n,i+(.606-.5)*n,e+(.109-.5)*n,i+(.391-.5)*n),t.cubicCurveTo(e+(.109-.5)*n,i+(.175-.5)*n,e+(.284-.5)*n,i+(0-.5)*n,e+(.5-.5)*n,i+(0-.5)*n),t.cubicCurveTo(e+(.716-.5)*n,i+(0-.5)*n,e+(.891-.5)*n,i+(.175-.5)*n,e+(.891-.5)*n,i+(.391-.5)*n),t.closePath()},plus(t){tb(t,[[1/3,0],[2/3,0],[2/3,1/3],[1,1/3],[1,2/3],[2/3,2/3],[2/3,1],[1/3,1],[1/3,2/3],[0,2/3],[0,1/3],[1/3,1/3]])},square({path:t,x:e,y:i,size:n,pixelRatio:s}){const a=n/2;t.moveTo(Fn(s,e-a),Fn(s,i-a)),t.lineTo(Fn(s,e+a),Fn(s,i-a)),t.lineTo(Fn(s,e+a),Fn(s,i+a)),t.lineTo(Fn(s,e-a),Fn(s,i+a)),t.closePath()},star({path:t,x:e,y:i,size:n}){const a=n/2,o=a/2,r=Math.PI/2;for(let l=0;l<10;l++){const c=l%2===0?a:o,u=l*Math.PI/5-r,d=e+Math.cos(u)*c,g=i+Math.sin(u)*c;t.lineTo(d,g)}t.closePath()},triangle(t){tb(t,[[.5,0],[1,.87],[0,.87]])}},Kx=class extends Tn{constructor(){super(...arguments),this.shape="square",this.x=0,this.y=0,this.size=12}isPointInPath(t,e){return this.distanceSquared(t,e)<=0}get midPoint(){return{x:this.x,y:this.y}}distanceSquared(t,e){const i=wn.anchor(this.shape),n=t-this.x+(i.x-.5)*this.size,s=e-this.y+(i.y-.5)*this.size,a=this.size/2;return Math.max(n*n+s*s-a*a,0)}updatePath(){const{path:t,shape:e,x:i,y:n,size:s}=this,a=this.layerManager?.canvas?.pixelRatio??1,o=wn.anchor(e),r={path:t,x:i-(o.x-.5)*s,y:n-(o.y-.5)*s,size:s,pixelRatio:a};t.clear(),typeof e=="string"?AJ[e](r):typeof e=="function"&&e(r)}computeBBox(){const{x:t,y:e,size:i}=this,n=wn.anchor(this.shape);return new Tt(t-i*n.x,e-i*n.y,i,i)}executeFill(t,e){if(e)return super.executeFill(t,e)}executeStroke(t,e){if(e)return super.executeStroke(t,e)}};T([_x({})],Kx.prototype,"shape",2);T([fe()],Kx.prototype,"x",2);T([fe()],Kx.prototype,"y",2);T([fe({convertor:Math.abs})],Kx.prototype,"size",2);var wn=class extends Qf(PD(Jf(Kx))){static anchor(e){return e==="pin"?{x:.5,y:1}:typeof e=="function"&&"anchor"in e?e.anchor:{x:.5,y:.5}}constructor(e){super(e),e?.shape!=null&&(this.shape=e.shape)}resetAnimationProperties(e,i,n,s,a,o){this.__x=e,this.__y=i,this.__size=n,this.__opacity=s,this.resetScalingProperties(a,o,e,i),this.dirtyPath=!0,this.markDirty()}};function IJ(t,e,i=e*(5/3)){const n=new ee,s=Math.min(t.marker.strokeWidth??1,2),a=t.line?.enabled?Math.min(t.line.strokeWidth,2):0,o=Math.max(t.marker.enabled===!1?0:e,t.line==null?0:i),r=Math.max(t.marker.enabled===!1?0:e,a);if(t.line?.enabled){const{stroke:l,strokeOpacity:c,lineDash:u}=t.line,d=new mo;d.x1=0,d.y1=r/2,d.x2=o,d.y2=r/2,d.stroke=l,d.strokeOpacity=c,d.strokeWidth=a,d.lineDash=u,n.append(d)}if(t.marker.enabled!==!1){const{shape:l,fill:c,fillOpacity:u,stroke:d,strokeOpacity:g,lineDash:f,lineDashOffset:y}=t.marker,x=new wn;x.shape=l??"square",x.size=e,x.fill=c,x.fillOpacity=u??1,x.stroke=d,x.strokeOpacity=g??1,x.strokeWidth=s,x.lineDash=f,x.lineDashOffset=y??0;const S=wn.anchor(l),D=o/2+(S.x-.5)*e,A=r/2+(S.y-.5)*e,I=e/(e+s);x.x=D,x.y=A,x.scalingCenterX=D,x.scalingCenterY=A,x.scalingX=I,x.scalingY=I,n.append(x)}return ee.toSVG(n,o,r)}var es="ag-charts-tooltip",kJ="ag-charts-tooltip--dark";function Cc(t){return t==null?!1:Array.isArray(t)?t.some(e=>Cc(e.text)):bi(t).trim()!==""}function dp(t,e=!1){return t==null?!e:typeof t=="number"&&!Number.isFinite(t)}function CJ(t){return t.type==="raw"||!t.data||t.data.length===0?!1:t.data.every(e=>e.missing===!0)}function w3(t){const e=[],i=new Map;for(const n of t)if(!CJ(n))if(n.type==="structured"){const{heading:s}=n,a=Cc(s)?i.get(s):void 0,o={type:"structured",heading:s,items:[n]};a==null?(i.set(s,o),e.push(o)):a.items.push(n)}else e.push(n);return e}function wJ(t){const e=bp().createElement("div");e.innerHTML=t;const i=e.textContent?.trim();return i??(pt.warnOnce("cannot retrieve tooltip textContent (required for aria-label)"),"")}function NJ(t){const e=w3(t),i=[];for(const n of e){if(n.type==="raw"){i.push(wJ(n.rawHtmlString));continue}Cc(n.heading)&&i.push(ce(n.heading));for(const s of n.items)if(Cc(s.title)&&i.push(ce(s.title)),s.data)for(const a of s.data)a.missing!==!0&&i.push(a.label??a.fallbackLabel,ce(a.value))}return i.filter(n=>n!=="").join("; ")}function N3(t,e,i){let n="";Cc(t)?(n+=`<span class="${es}-label">${cf(t)}</span>`,n+=" ",n+=`<span class="${es}-value">${cf(e)}</span>`):n+=`<span class="${esLine truncated
|
||||
`))}}function itt(t){return t.moduleId??t.name}function P3(t){return` ${t},`}function ntt(t,e){return t.length?`import {
|
||||
${t.map(P3).join(`
|
||||
`)}
|
||||
} from 'ag-charts-${e}';`:null}function stt(t,e){const i=ntt(["ModuleRegistry"].concat(t),e),n=t.map(P3).join(`
|
||||
`);return`${i}
|
||||
|
||||
ModuleRegistry.registerModules([
|
||||
${n}
|
||||
]);`}function att(t,e){const i=new Map,n="axes"in e&&Bt(e.axes)?e.axes:{},s=new Set(Object.values(n).map(r=>r?.type).filter(go)),a=new Set(e.series?.map(r=>r.type).filter(go));function o(r){i.set(r.name,r)}for(const r of iu.values())if(!Ut.hasModule(r.name)&&!ttt.has(r.name)&&!(t&&r.chartType&&t!==r.chartType))switch(r.type){case"chart":break;case"axis":if(s.has(r.name)){for(const u of Object.keys(n))n?.[u].type===r.name&&delete n[u];o(r)}break;case"series":a.has(r.name)&&(e.series=e.series.filter(u=>u.type!==r.name),o(r));break;case"plugin":const l=r.name,c=e[l];Bt(c)&&(c.enabled!==!1&&o(r),delete e[l]);break;case"axis:plugin":for(const u of Object.values(n)){const d=r.name;u?.[d]&&(u[d].enabled!==!1&&o(r),delete u[d])}break;case"series:plugin":for(const u of e.series??[])u[r.name]&&(delete u[r.name],o(r));break}for(const r of a){const l=iu.get(r);l?.type===Le.Series&&!Ut.hasModule(l.name)&&!i.has(l.name)&&(e.series=e.series.filter(c=>c.type!==l.name),o(l))}return Array.from(i.values())}function jB(t,e){const i="axes"in e&&Bt(e.axes),n="series"in e&&qt(e.series),s=o=>t==null||!o.chartType||o.chartType===t,a=[];for(const o of Ut.listModules())if(Ut.isModuleType(Le.Plugin,o))s(o)||(delete e[o.name],a.push(o.name));else if(Ut.isModuleType(Le.AxisPlugin,o)){if(i&&!s(o)){for(const r of Object.values(e.axes))delete r[o.name];a.push(o.name)}}else if(Ut.isModuleType(Le.SeriesPlugin,o)&&n&&!s(o)){for(const r of e.series)delete r[o.name];a.push(o.name)}return a}var RC="#192232",us={BLUE:"#5090dc",ORANGE:"#ffa03a",GREEN:"#459d55",CYAN:"#34bfe1",YELLOW:"#e1cc00",VIOLET:"#9669cb",GRAY:"#b5b5b5",MAGENTA:"#bd5aa7",BROWN:"#8a6224",RED:"#ef5452"},vd={BLUE:"#74a8e6",ORANGE:"#ffbe70",GREEN:"#6cb176",CYAN:"#75d4ef",YELLOW:"#f6e559",VIOLET:"#aa86d8",GRAY:"#a1a1a1",MAGENTA:"#ce7ab9",BROWN:"#997b52",RED:"#ff7872"},sm=class extends Pr{getDefaultColors(){return{fills:us,fillsFallback:Object.values(us),strokes:vd,sequentialColors:So(us),divergingColors:[us.ORANGE,us.YELLOW,us.GREEN],hierarchyColors:["#192834","#253746","#324859","#3f596c","#4d6a80"],secondSequentialColors:["#5090dc","#4882c6","#4073b0","#38659a","#305684","#28486e","#203a58","#182b42"],secondDivergingColors:[us.GREEN,us.YELLOW,us.RED],secondHierarchyColors:["#192834","#3b5164","#496275","#577287","#668399"],up:{fill:us.GREEN,stroke:vd.GREEN},down:{fill:us.RED,stroke:vd.RED},neutral:{fill:us.GRAY,stroke:vd.GRAY},altUp:{fill:us.BLUE,stroke:vd.BLUE},altDown:{fill:us.ORANGE,stroke:vd.ORANGE},altNeutral:{fill:us.GRAY,stroke:vd.GRAY}}}getThemeParameters(){return{...super.getThemeParameters(),axisColor:{$foregroundBackgroundMix:.737},backgroundColor:RC,borderColor:{$foregroundBackgroundMix:.216},chromeBackgroundColor:{$foregroundBackgroundMix:.07},focusColor:{$mix:[{$ref:"backgroundColor"},{$ref:"accentColor"},.22]},foregroundColor:"#fff",gridLineColor:{$foregroundBackgroundMix:.257},popupShadow:"0 0 16px rgba(0, 0, 0, 0.33)",subtleTextColor:{$mix:[{$ref:"textColor"},{$ref:"chartBackgroundColor"},.57]},separationLinesColor:{$foregroundBackgroundMix:.44},crosshairLabelBackgroundColor:{$foregroundBackgroundMix:.65}}}getTemplateParameters(){const t=super.getTemplateParameters();return t.set(Qd,!0),t.set(xD,RC),t.set(ra,us.BLUE),t.set(SD,"#fff"),t.set(Ws,us.BLUE),t.set(vx,RC),t.set(Sx,"#28313e"),t.set(Mx,"#4b525d"),t.set(Dx,"#fff"),t.set(Ax,"#fff"),t.set(Ix,"#28313e"),t.set(kx,"#4b525d"),t.set(Cx,"#fff"),t}constructor(t){super(t)}},va={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#A9A9A9"},Sd={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#909090"},ott=class extends sm{getDefaultColors(){return{...super.getDefaultColors(),fills:{...va},fillsFallback:Object.values({...va}),strokes:{...Sd},sequentialColors:So(va),divergingColors:[va.GREEN,va.BLUE,va.RED],secondSequentialColors:["#5090dc","#4882c6","#4073b0","#38659a","#305684","#28486e","#203a58","#182b42"],up:{fill:va.GREEN,stroke:Sd.GREEN},down:{fill:va.RED,stroke:Sd.RED},neutral:{fill:va.BLUE,stroke:Sd.BLUE},altUp:{fill:va.GREEN,stroke:Sd.GREEN},altDown:{fill:va.RED,stroke:Sd.RED},altNeutral:{fill:va.GRAY,stroke:Sd.GRAY}}}getThemeParameters(){return{...super.getThemeParameters(),chartPadding:0,gridLineColor:{$foregroundBackgroundMix:.12}}}getTemplateParameters(){const t=super.getTemplateParameters();return t.set(ra,va.BLUE),t.set(Ws,va.BLUE),t.set(qh,"overlay"),t.set(Qh,"left"),t.set(wx,"bottom"),t}},Sa={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#A9A9A9"},Md={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#909090"},rtt=class extends Pr{getDefaultColors(){return{...super.getDefaultColors(),fills:{...Sa},fillsFallback:Object.values({...Sa}),strokes:{...Md},sequentialColors:So(Sa),divergingColors:[Sa.GREEN,Sa.BLUE,Sa.RED],up:{fill:Sa.GREEN,stroke:Md.GREEN},down:{fill:Sa.RED,stroke:Md.RED},neutral:{fill:Sa.BLUE,stroke:Md.BLUE},altUp:{fill:Sa.GREEN,stroke:Md.GREEN},altDown:{fill:Sa.RED,stroke:Md.RED},altNeutral:{fill:Sa.GRAY,stroke:Md.GRAY}}}getThemeParameters(){return{...super.getThemeParameters(),chartP
Line truncated
|
||||
`))}diagramKey(e){let i=this.diagramKeys.get(e);return i||(i=`${this.diagramKeys.size}`,this.diagramKeys.set(e,i)),i}diagramLabel(e,i,n){let s=this.diagramKeys.get(e);if(s)return s;s=this.diagramKey(e);const a={[bs]:"UO",[yi]:"DE",[Qg]:"DEP",[Qr]:"OP",[Jr]:"OPV",[ka]:"OV"};let o=n?a[n]??void 0:void 0;return o=o?`:::${o}`:"",typeof i.value=="symbol"?`${s}[/"[symbol]"\\]${o}`:Array.isArray(i.value)?`${s}[/"[array]"\\]${o}`:typeof i.value=="object"?`${s}[/"[object]"\\]${o}`:n===yi||n===bs||n===ka?`${s}("${i.value}")${o}`:`${s}["${i.value}"]${o}`}diagramVertex(e,i,n,s){const a=this.getPathArray(i),o=a.length>0?a.join("."):"root";this.diagramNeighbours(e,o,i,n+1,s);let r=this.diagramKeys.get(o);r||(r=this.diagramKey(o),e.push(` ${r}["${i.value}"]`))}diagramNeighbours(e,i,n,s,a){for(const f of this.neighboursWithEdgeValue(n,ki)??[]){const y=this.getPathArray(f),x=y.length>0?y.join("."):"root";s<a&&this.diagramVertex(e,f,s+1,a),this.diagramChild(e,ki,i,n,x,n)}const o=this.neighboursWithEdgeValue(n,bs)??[];let r=0;for(const f of o)this.diagramChild(e,bs,i,n,`${i}.${bs}.${r}`,f),r++;const l=this.neighboursWithEdgeValue(n,yi)??[];r=0;for(const f of l)this.diagramChildWithNeighbours(e,yi,i,n,`${i}.${yi}.${r}`,f,s+1,a),r++;const c=this.neighboursWithEdgeValue(n,Qr)??[];r=0;const[u]=c;u&&(this.diagramChildWithNeighbours(e,Qr,i,n,`${i}.${Qr}.${r}`,u,s+1,a),r++);const d=this.neighboursWithEdgeValue(n,Jr)??[];r=0;for(const f of d)this.diagramChildWithNeighbours(e,Jr,i,n,`${i}.${Jr}.${r}`,f,s+1,a),r++;const g=this.neighboursWithEdgeValue(n,Qg)??[];r=0;for(const f of g)this.diagramChildWithNeighbours(e,Qg,i,n,this.getPathArray(f).join("."),f,s+1,a),r++}diagramChild(e,i,n,s,a,o){let r=this.diagramEdges.get(n);if(r?.has(a))return;r||(r=new Set,this.diagramEdges.set(n,r)),r.add(a);const l=i===ki?"":`|${i}|`;e.push(` ${this.diagramLabel(n,s)} -->${l} ${this.diagramLabel(a,o,i)}`)}diagramChildWithNeighbours(e,i,n,s,a,o,r,l){this.diagramChild(e,i,n,s,a,o),this.diagramNeighbours(e,a,o,r+1,l)}};Uu.EDGE_PRIORITY=[bs,ka,yi];Uu.GRAFT_EDGE=yi;Uu.SHALLOW_KEYS=new Set(["context","data","topology"]);Uu.COMPLEX_KEYS=["annotations","axes","series"];Uu.ANNOTATIONS_OPTIONS_KEYS=["axesButtons","data","enabled","optionsToolbar","snap","toolbar","xKey","volumeKey"];Uu.UNSAFE_CLEAR_KEYS=new Set(["itemStyler","styler"]);Uu.valueCache=new Map;var FU=Uu,nV=t=>`'${t}'`,VC="__AXIS_ID_",Td={top:z.X,bottom:z.X,left:z.Y,right:z.Y},Ep=class _n{constructor(e,i,n,s,a,o,r=!1,l){this.themeParameters={},this.optionMetadata=a??{},this.processedOverrides=n??{};let c=null;e instanceof _n?(c=e,this.specialOverrides=c.specialOverrides,o&&(this.userDeltaKeys=new Set(Object.keys(o))),o??(o=or(c.userOptions,i,_n.JSON_DIFF_OPTS)),this.userOptions=le(Hb(o,c.userOptions),{..._n.OPTIONS_CLONE_OPTS_SLOW,seen:[]})):(this.userOptions=le(e??i,{..._n.OPTIONS_CLONE_OPTS_SLOW,seen:[]}),this.specialOverrides=this.specialOverridesDefaults({...s})),this.findSeriesWithUserVisiblity(i,o),r&&this.removeLeftoverSymbols(this.userOptions);const u=e instanceof _n&&o?.data!==void 0&&o?.data?.length!==e.userOptions.data?.length;let d,g,f,y,x,S,D;if(!r&&this.seriesWithUserVisibility==null&&o!==void 0&&_n.isFastPathDelta(o)&&c!=null&&!u?({activeTheme:d,processedOptions:g,fastDelta:f}=this.fastSetup(o,c),y=c.themeParameters,x=c.annotationThemes):(_n.perfDebug("ChartOptions.slowSetup()"),{activeTheme:d,processedOptions:g,themeParameters:y,annotationThemes:x,googleFonts:S,optionsGraph:D}=this.slowSetup(n,o,r)),this.activeTheme=d,this.processedOptions=g,this.fastDelta=f??void 0,this.themeParameters=y,this.annotationThemes=x,this.googleFonts=S,this.optionsGraph=D,l!==void 0&&typeof l=="number"&&!Number.isNaN(l)){const A=performance.now();this.optionsProcessingTime=A-l}Gt.inDevelopmentMode(()=>za(this))}static isFastPathDelta(e){for(const i of Object.keys(e??{}))if(!this.FAST_PATH_OPTIONS.has(i))return _n.perfDebug("ChartOptions.isFastPathDelta() - slow path required due to presence of: ",i),!1;return _n.perfDebug("ChartOptions.isFastPathDelta() - fast path possible."),!0}findSeriesWithUserVisiblity(e,i){for(const n of[e,i]){const s=n?.series;if(Array.isArray(s))for(let a=0;a<s.length;a++){const o=s[a];"visible"in o&&(this.seriesWithUserVisibility??(this.seriesWithUserVisibility={identifiers:new Set,indices:new Set}),o.id?this.seriesWithUserVisibility.identifiers.add(o.id):this.seriesWithUserVisibility.indices.add(a))}}}fastSetup(e,i){const{activeTheme:n,processedOptions:s}=i,{presetType:a}=this.optionMetadata;if(a!=null&&e?.data!=null){const r=Ut.getPresetModule(a);if(r?.processData){const{series:l,data:c}=r.processData(e.data);e=Et({series:l,data:c},e)}}this.fastSeriesSetup(e,s);const o=Et(e,s);return _n.debug("ChartOptions.fastSetup() - processed options",o),{activeTheme:n,processedOptions:o,fastDelta:e}}fastSeriesSetup(e,i){e?.series&&(e.series?.every((n,s)=>fj(n,i.series?.[s]??{}))?delete e.series:e.series=e.series.map((n,s)=>Hb(n,i.series?.[s]??{})))}slowSetup(e,i,n=!1){let s=le(this.userOptiLine truncated
|
||||
`));xc(()=>[">>> AgCharts.createOrUpdate() user options",le(n)]);const{presetType:f}=r;let y=n;Jo.optionsMutationFn&&y&&(y=Jo.optionsMutationFn(le(y,Ab.OPTIONS_CLONE_OPTS_FAST),f),xc(()=>[">>> AgCharts.createOrUpdate() MUTATED user options",le(y)]));const x=this.getPool(r);let S=!1,D,A=i?.chart;A==null&&x?.hasFree()&&(D=x.obtainFree(),A=D.item);const{document:I,window:w,styleContainer:N,skipCss:O,...L}=y??{},R=A?.getChartOptions(),P=new Ab(R,L,a,{...o,document:I,window:w,styleContainer:N,skipCss:O},r,l,u,d);(A==null||Mb(P.processedOptions)!==Mb(A.chartOptions.processedOptions))&&(D?.release(),D=this.getPool(P.optionMetadata)?.obtain(P),D?A=D.item:(S=!0,A=ib.createChartInstance(P,A))),P.optionsGraph&&A.ctx.optionsGraphService.updateCallback((B,F,H)=>P.optionsGraph?.resolvePartial(B,F,H));for(const[B,F]of g)A.ctx.domManager.addStyles(B,F);return A.ctx.fontManager.updateFonts(P.googleFonts),c!=null&&A.ctx.dataService.restoreData(c),i==null?(i=new sV(A,ib.callbackApi,s),i.releaseChart=D?.release):(D||S)&&(i.releaseChart?.(),i.chart=A,i.releaseChart=D?.release),xc.check()&&typeof globalThis.window<"u"&&(globalThis.agChartInstances??(globalThis.agChartInstances={}),globalThis.agChartInstances[A.id]=A),A.queuedUserOptions.push(P.userOptions),A.queuedChartOptions.push(P),A.requestFactoryUpdate(B=>{xc.group(">>>> Chart.applyOptions()",()=>{B.applyOptions(P);const F=B.queuedUserOptions.indexOf(P.userOptions)+1;B.queuedUserOptions.splice(0,F),B.queuedChartOptions.splice(0,F)})}),i}static updateUserDelta(e,i,n){i=le(i,Ab.OPTIONS_CLONE_OPTS_FAST);const s=Ic(i,ib.markRemovedProperties,new Set(["data"]),void 0,void 0,!1);xc(()=>[">>> AgCharts.updateUserDelta() user delta",le(i)]),ib.createOrUpdate({proxy:e,deltaOptions:i,stripSymbols:s,apiStartTime:n})}static createChartInstance(e,i){const n=i?.destroy({keepTransferableResources:!0}),s=Mb(e.processedOptions);return Ut.getChartModule(s).create(e,n)}static getPool(e){if(e.pool===!0)return zet.getPool(e.presetType??"default",this.createChartInstance,this.detachAndClear,this.destroy,1/0)}};ll.caretaker=new H1(oi);ll.callbackApi={caretaker:ll.caretaker,create(t,e,i,n,s){return ll.createOrUpdate({userOptions:t,processedOverrides:e,specialOverrides:i,optionsMetadata:n,data:s})},update(t,e,i,n){return ll.createOrUpdate({userOptions:t,proxy:e,specialOverrides:i,apiStartTime:n})},updateUserDelta(t,e,i){return ll.updateUserDelta(t,e,i)}};ll.markRemovedProperties=(t,e,i,n)=>{let s=n??!1;if(typeof t!="object"||t==null)return s;for(const a of hl(t))t[a]===void 0&&(Object.assign(t,{[a]:Symbol("UNSET")}),s||(s=!0));return s};ll.detachAndClear=t=>t.detachAndClear();ll.destroy=t=>t.destroy();var aV=ll,j={};Ap(j,{APPROXIMATE_THRESHOLD:()=>Z7,AbstractBarSeries:()=>oW,AbstractBarSeriesProperties:()=>Jx,AggregationManager:()=>dA,AnchoredPopover:()=>PW,ApproximateOrdinalTimeScale:()=>zit,Arc:()=>Bl,Axis:()=>JT,AxisGroupZIndexMap:()=>g3,AxisInterval:()=>wp,AxisLabel:()=>Mi,AxisTick:()=>Np,BBox:()=>Tt,Background:()=>tm,BandScale:()=>Rr,BaseToolbar:()=>TL,Caption:()=>Ri,CartesianAxis:()=>Gx,CartesianCrossLine:()=>Xs,CartesianSeries:()=>Wu,CartesianSeriesNodeEvent:()=>mL,CartesianSeriesProperties:()=>jr,CategoryAxis:()=>qx,CategoryScale:()=>Of,Chart:()=>QD,ChartAxes:()=>zD,ChartOptions:()=>Ab,CollapseMode:()=>dW,ColorScale:()=>qf,ContextMenuRegistry:()=>$G,ContinuousScale:()=>ti,DEFAULT_CARTESIAN_DIRECTION_KEYS:()=>hm,DEFAULT_CARTESIAN_DIRECTION_NAMES:()=>um,DEFAULT_POLAR_DIRECTION_KEYS:()=>SW,DEFAULT_POLAR_DIRECTION_NAMES:()=>MW,DOMElementProxy:()=>jS,DOMManager:()=>AG,DataController:()=>l3,DataModel:()=>IN,DataModelSeries:()=>fL,DataSet:()=>Sb,DiscreteTimeAxis:()=>IW,DraggablePopover:()=>zW,DropShadow:()=>zl,ExtendedPath2D:()=>Cf,FillGradientDefaults:()=>Fu,FillImageDefaults:()=>jc,FillPatternDefaults:()=>En,FloatingToolbar:()=>jit,FormatManager:()=>Tf,Group:()=>ee,GroupWidget:()=>IG,HierarchyHighlightState:()=>DW,HierarchyNode:()=>Iit,HierarchySeries:()=>kit,HierarchySeriesProperties:()=>Ku,HighlightManager:()=>qG,HighlightProperties:()=>Hc,HighlightState:()=>QG,Image:()=>dm,InteractionManager:()=>NG,InteractionState:()=>wG,LARGEST_KEY_INTERVAL:()=>YG,Label:()=>Do,LabelStyle:()=>Mo,LayoutElement:()=>XT,Line:()=>mo,LinearScale:()=>np,LogScale:()=>pL,Marker:()=>wn,Menu:()=>Bit,MercatorScale:()=>Cit,NODE_UPDATE_STATE_TO_PHASE_MAPPING:()=>wr,NativeWidget:()=>Nf,NiceMode:()=>p3,Node:()=>Oc,OrdinalTimeScale:()=>du,PHASE_METADATA:()=>Zb,PanToBBoxScalingModeEnum:()=>s3,Path:()=>Tn,PointerEvents:()=>hG,PolarAxis:()=>wL,PolarSeries:()=>CL,QuadtreeNearest:()=>KU,RadialColumnShape:()=>Gr,Range:()=>El,Rect:()=>On,Rotatable:()=>Qf,RotatableText:()=>MG,SMALLEST_KEY_INTERVAL:()=>KG,Scalable:()=>PD,ScalableGroup:()=>gZ,Scene:()=>HD,Sector:()=>Ts,SectorBox:()=>NW,SegmentedPath:()=>gL,Selection:()=>pn,Series:()=>Wx,SeriesItemHighlightStyle:()=>_u,SeriesMarker:()=>la,SeriesNodeEvent:()=>qD,SeriesNodePickMode:()=>C3,SeriesProperties:()=>Fr,SeriesTooltip:()=>Wc,Shape:()=>Ip,SliderWidget:()=>_T,StopProperties:()=>LT,
Line truncated
|
||||
`;function ew(t,e,i){const n=Math.floor(t.length/2);return EV(t,e,n,e,i)||EV(t,t.length-e,n,-e,i)}function EV(t,e,i,n,s){let a=t[0];for(let o=e;n>0?o<=i:o>i;o+=n){const r=t[o];if(s(a,r))return!0;a=r}return!1}var{AxisInterval:Dst}=j,qL=class extends Dst{};M([b],qL.prototype,"minSpacing");var{Group:iw,LabelStyle:Ast}=j,ym=class extends Ast{constructor(){super(...arguments),this.padding=5}};M([b],ym.prototype,"enabled");M([b],ym.prototype,"padding");M([b],ym.prototype,"text");M([b],ym.prototype,"parallel");var qs=class extends xt{constructor(){super(...arguments),this.id=Nn(this),this.defaultColorRange=[],this.shape="polygon",this.label=new ym,this.scale=void 0,this.clippedRange=[-1/0,1/0],this.gridLength=0,this.gridPadding=0,this.sideFlag=-1,this.parallelFlipRotation=0,this.regularFlipRotation=0,this.direction=z.Angle,this.axisInnerRadius=0,this.axisOuterRadius=0,this.lineGroup=new iw({name:this.id}),this.rangeGroup=new iw({name:this.id}),this.labelGroup=new iw({name:this.id}),this._isRange=void 0}assignCrossLineGroup(t,e){t!==this._isRange&&(t?this.rangeGroup.appendChild(e):this.lineGroup.appendChild(e)),this._isRange=t}setSectorNodeProps(t){t.fill=this.fill,t.fillOpacity=this.fillOpacity??1,t.stroke=this.stroke,t.strokeOpacity=this.strokeOpacity??1,t.strokeWidth=this.strokeWidth??1,t.lineDash=this.lineDash}setLabelNodeProps(t,e,i,n,s){const{label:a}=this;t.x=e,t.y=i,t.text=a.text,t.textAlign="center",t.textBaseline=n,t.rotation=s,t.rotationCenterX=e,t.rotationCenterY=i,t.fill=a.color,t.setFont(a),t.setBoxing(a),t.visible=!0}};qs.className="PolarCrossLine";M([b],qs.prototype,"enabled");M([b],qs.prototype,"type");M([b],qs.prototype,"range");M([b],qs.prototype,"value");M([b],qs.prototype,"defaultColorRange");M([b],qs.prototype,"fill");M([b],qs.prototype,"fillOpacity");M([b],qs.prototype,"stroke");M([b],qs.prototype,"strokeWidth");M([b],qs.prototype,"strokeOpacity");M([b],qs.prototype,"lineDash");M([b],qs.prototype,"shape");M([b],qs.prototype,"label");var{getCrossLineValue:Ist,validateCrossLineValue:kst,Group:Cst,Path:RV,Sector:wst,RotatableText:Nst,ContinuousScale:Tst}=j,QL=class extends qs{constructor(){super(),this.direction=z.Angle,this.polygonNode=new RV,this.sectorNode=new wst,this.lineNode=new RV,this.crossLineRange=new Cst,this.labelNode=new Nst,this.ticks=[],this.crossLineRange.append(this.polygonNode),this.crossLineRange.append(this.sectorNode),this.crossLineRange.append(this.lineNode),this.labelGroup.append(this.labelNode)}visibilityCheck(){if(!Tst.is(this.scale))return!0;const[t,e]=this.scale.domain,i=Ist(this);if(this.type==="range"){const[n,s]=i;return n>=t&&n<=e&&s>=n&&s<=e}else return i>=t&&i<=e}update(t){const{scale:e}=this;if(!e||!kst(this,e)||!this.visibilityCheck()){this.rangeGroup.visible=!1,this.lineGroup.visible=!1,this.labelGroup.visible=!1;return}this.rangeGroup.visible=t,this.lineGroup.visible=t,this.labelGroup.visible=t,this.updateLineNode(t),this.updatePolygonNode(t),this.updateSectorNode(t),this.updateLabelNode(t)}updateLineNode(t){const{scale:e,type:i,value:n,lineNode:s}=this;if(!t||i!=="line"||!e){s.visible=!1;return}const a=e.convert(n);if(Number.isNaN(a)){s.visible=!1;return}const{axisInnerRadius:o,axisOuterRadius:r}=this;s.visible=!0,s.stroke=this.stroke,s.strokeOpacity=this.strokeOpacity??1,s.strokeWidth=this.strokeWidth??1,s.fill=void 0,s.lineDash=this.lineDash;const l=r*Math.cos(a),c=r*Math.sin(a),u=o*Math.cos(a),d=o*Math.sin(a);s.path.clear(!0),s.path.moveTo(u,d),s.path.lineTo(l,c),this.assignCrossLineGroup(!1,this.crossLineRange)}updatePolygonNode(t){const{polygonNode:e,range:i,scale:n,shape:s,type:a,ticks:o}=this;if(!t||a!=="range"||s!=="polygon"||!n||!i){e.visible=!1;return}const{axisInnerRadius:r,axisOuterRadius:l}=this,c=o.indexOf(i[0]),u=o.indexOf(i[1]),g=(c<=u?o.slice(c,u+1):o.slice(c).concat(o.slice(0,u+1))).map(y=>n.convert(y));e.visible=!0,this.setSectorNodeProps(e);const{path:f}=e;f.clear(!0);for(const[y,x]of g.entries()){const S=l*Math.cos(x),D=l*Math.sin(x);y===0?f.moveTo(S,D):f.lineTo(S,D)}if(r===0)f.lineTo(0,0);else{const y=g.slice().reverse();for(const x of y){const S=r*Math.cos(x),D=r*Math.sin(x);f.lineTo(S,D)}}e.path.closePath(),this.assignCrossLineGroup(!0,this.crossLineRange)}updateSectorNode(t){const{sectorNode:e,range:i,scale:n,shape:s,type:a}=this;if(!t||a!=="range"||s!=="circle"||!n||!i){e.visible=!1;return}const{axisInnerRadius:o,axisOuterRadius:r}=this,l=i.map(d=>n.convert(d)),c=n.step??0,u=n instanceof j.BandScale?c/2:0;e.visible=!0,this.setSectorNodeProps(e),e.centerX=0,e.centerY=0,e.innerRadius=o,e.outerRadius=r,e.startAngle=l[0]-u,e.endAngle=l[1]+u,this.assignCrossLineGroup(!0,this.crossLineRange)}updateLabelNode(t){const{label:e,labelNode:i,range:n,scale:s,type:a,ticks:o}=this;if(!t||e.enabled===!1||!e.text||!s||a==="range"&&!n){i.visible=!1;return}i.visible=!0;const{axisInnerRadius:r,axisOuterRadius:l}=this;let c,u,d,g;if(a==="line"){const f=ze(s.convert(this.value)),y=1.5*Math.PI,x=be(f,y)||f>y||f<Math.PI/2,S=(r+l)/2*Math.cos(f),D=(r+l)/2*M
Line truncated
|
||||
<span>${i}</span>
|
||||
</div>`,styles:o}}};XK.className="CrosshairLabel";var{Group:Wot,TranslatableGroup:Kot,Line:Yot,BBox:v_,InteractionState:Ph}=j,Fl=class extends Ln{constructor(t){super(),this.ctx=t,this.id=Nn(this),this.enabled=!1,this.stroke="rgb(195, 195, 195)",this.lineDash=[6,3],this.lineDashOffset=0,this.strokeWidth=1,this.strokeOpacity=1,this.snap=!0,this.label=new qu,this.seriesRect=new v_(0,0,0,0),this.bounds=new v_(0,0,0,0),this.crosshairGroup=new Kot({name:"crosshairs",zIndex:pe.SERIES_CROSSHAIR}),this.lineGroup=this.crosshairGroup.appendChild(new Wot({name:`${this.id}-crosshair-lines`,zIndex:pe.SERIES_CROSSHAIR})),this.lineGroupSelection=j.Selection.select(this.lineGroup,Yot,!1),this.activeHighlight=void 0,this.activeHighlightInViewport=!1,this.axisCtx=t.parent,this.labels={},this.hideCrosshairs(),t.domManager.addEventListener("focusin",({target:i})=>{if(this.checkInteractionState())return;const n=i instanceof HTMLElement&&t.domManager.contains(i,"series-area");this.crosshairGroup.visible&&!n&&(this.hideCrosshairs(),this.ctx.eventsHub.emit("chart:request-update",{type:Ct.SCENE_RENDER}))});const{seriesDragInterpreter:e}=t.widgets;this.cleanup.register(t.scene.attachNode(this.crosshairGroup),t.widgets.seriesWidget.addListener("mousemove",i=>this.onMouseHoverLike(i)),t.widgets.seriesWidget.addListener("mouseleave",()=>this.onMouseOut()),t.eventsHub.on("series:focus-change",()=>this.onKeyPress()),t.eventsHub.on("zoom:pan-start",()=>this.onMouseOut()),t.eventsHub.on("zoom:change-complete",()=>this.onMouseOut()),t.eventsHub.on("highlight:change",i=>this.onHighlightChange(i)),t.eventsHub.on("layout:complete",i=>this.layout(i)),()=>{for(const i of Object.values(this.labels))i.destroy()}),e&&this.cleanup.register(e.events.on("drag-move",i=>this.onMouseHoverLike(i)),e.events.on("click",i=>this.onClick(i)))}checkInteractionState(){return this.ctx.interactionManager.isState(Ph.Frozen)}layout({series:{rect:t,visible:e},axes:i}){if(!e||!i||!this.enabled)return;this.seriesRect=t;const{position:n="left",axisId:s}=this.axisCtx,a=i[s];if(!a)return;this.axisLayout=a,this.bounds=t.clone().grow(a.gridPadding+a.seriesAreaPadding,n);const{crosshairGroup:o,bounds:r}=this;o.translationX=Math.round(r.x),o.translationY=Math.round(r.y);const l=["pointer",...this.axisCtx.seriesKeyProperties()];this.updateSelections(l),!(!this.snap&&this.activeHighlight)&&(this.updateLines(),this.updateLabels(l),!(this.snap&&!this.activeHighlightInViewport)&&this.refreshPositions())}updateSelections(t){this.lineGroupSelection.update(t,void 0,e=>e)}updateLabels(t){const{labels:e,ctx:i}=this;for(const n of t)this.label.enabled&&(e[n]??(e[n]=new XK(i.domManager,n,this.axisCtx.axisId))),e[n]&&this.updateLabel(e[n])}updateLabel(t){const{enabled:e,xOffset:i,yOffset:n,format:s,renderer:a}=this.label;t.enabled=e,t.xOffset=i,t.yOffset=n,t.format=s,t.renderer=a}updateLines(){const{lineGroupSelection:t,bounds:e,stroke:i,strokeWidth:n,strokeOpacity:s,lineDash:a,lineDashOffset:o,axisLayout:r}=this;if(!r)return;const l=this.isVertical();t.each(c=>{c.stroke=i,c.strokeWidth=n,c.strokeOpacity=s,c.lineDash=a,c.lineDashOffset=o,c.y1=0,c.y2=l?e.height:0,c.x1=0,c.x2=l?0:e.width})}isVertical(){return this.axisCtx.direction===z.X}isHover(t){return t.type==="mousemove"||t.type==="click"||t.device==="touch"&&this.ctx.chartService.touch.dragAction==="hover"}formatValue(t){return ce(this.axisCtx.formatScaleValue(t,"crosshair",this.label))}onClick(t){t.device==="touch"&&this.onMouseHoverLike(t)}onMouseHoverLike(t){if(!this.enabled||this.snap)return;const e=this.isHover(t)?Ph.Hoverable|Ph.Frozen:Ph.AnnotationsMoveable;this.ctx.interactionManager.isState(e)&&(this.updatePositions(this.getData(t)),this.crosshairGroup.visible=!0,this.ctx.eventsHub.emit("chart:request-update",{type:Ct.SCENE_RENDER}))}onMouseOut(){const t=this.snap?Ph.Hoverable:Ph.Hoverable|Ph.Frozen;this.ctx.interactionManager.isState(t)&&(this.hideCrosshairs(),this.ctx.eventsHub.emit("chart:request-update",{type:Ct.SCENE_RENDER}))}onKeyPress(){this.enabled&&!this.snap&&this.ctx.interactionManager.isState(Ph.Default)&&this.hideCrosshairs()}onHighlightChange(t){if(!this.enabled)return;const{crosshairGroup:e,axisCtx:i}=this,{datum:n,series:s}=t.currentHighlight??{},a=n&&(s?.axes.x?.id===i.axisId||s?.axes.y?.id===i.axisId);if(this.activeHighlight=a?t.currentHighlight:void 0,this.activeHighlightInViewport=t.highlightInViewport,!this.activeHighlight)this.hideCrosshairs();else if(this.snap)if(t.highlightInViewport){const o=this.getActiveHighlightData(this.activeHighlight);this.updatePositions(o),e.visible=!0}else this.hideCrosshairs();this.ctx.eventsHub.emit("chart:request-update",{type:Ct.SCENE_RENDER})}isInRange(t){return this.axisCtx.inRange(t)}refreshPositions(){this.activeHighlight&&this.updatePositions(this.getActiveHighlightData(this.activeHighlight))}updatePositions(t){const{seriesRect:e,lineGroupSelection:i}=this;i.each((n,s)=>{const a=t[s];if(!a){n.visible=!1,this.hideLabel(s);return}n.visible=!0;const{vaLine truncated
|
||||
`);return[{width:S,height:D,text:A,fontSize:r,lineHeight:d},g.meta]})}function V_(t){return t?.minimumFontSize!=null&&t?.fontSize!=null&&t?.minimumFontSize>t?.fontSize}function EO(t,e,i,n,s,a){const o=e.enabled?t:void 0,r=n.enabled?i:void 0;(V_(e)||V_(n))&&pt.warnOnce("minimumFontSize should be set to a value less than or equal to the font size");let l;o!=null&&r!=null&&(l=e5(o,e,r,n,s,a));let c;if(l==null&&o!=null&&(c=rx(o,e,s,a)),c!=null){const[d,g]=c;l={width:d.width,height:d.height,meta:g,label:d,secondaryLabel:void 0}}let u;if(l==null&&o==null&&r!=null&&(u=rx(r,n,s,a)),u!=null){const[d,g]=u;l={width:d.width,height:d.height,meta:g,label:void 0,secondaryLabel:d}}return l}function __(t,e,i,n,s,a,o){const r=Ox(e,{maxWidth:i,maxHeight:n,font:s,textWrap:a,overflow:o});if(!r.length)return;const l=Ve(s),c=t.lineHeight??l.lineHeight(),{width:u}=l.measureLines(r);return{width:u,lineHeight:c,text:r.join(`
|
||||
`),height:r.length*c,fontSize:s.fontSize}}var Lm=class extends j.Label{constructor(){super(...arguments),this.wrapping="on-space",this.overflowStrategy="ellipsis"}};M([b],Lm.prototype,"wrapping");M([b],Lm.prototype,"overflowStrategy");M([b],Lm.prototype,"lineHeight");M([b],Lm.prototype,"minimumFontSize");var Om=class extends Lm{constructor(){super(...arguments),this.spacing=0}};M([b],Om.prototype,"spacing");var PA=class extends Lm{},{CartesianSeriesProperties:dlt,makeSeriesTooltip:plt}=j,as=class extends dlt{constructor(){super(...arguments),this.colorRange=["black","black"],this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.textAlign="center",this.verticalAlign="middle",this.itemPadding=0,this.label=new Om,this.tooltip=plt()}};M([b],as.prototype,"title");M([b],as.prototype,"xKey");M([b],as.prototype,"yKey");M([b],as.prototype,"colorKey");M([b],as.prototype,"xName");M([b],as.prototype,"yName");M([b],as.prototype,"colorName");M([b],as.prototype,"colorRange");M([b],as.prototype,"stroke");M([b],as.prototype,"strokeOpacity");M([b],as.prototype,"strokeWidth");M([b],as.prototype,"textAlign");M([b],as.prototype,"verticalAlign");M([b],as.prototype,"itemPadding");M([b],as.prototype,"itemStyler");M([b],as.prototype,"label");M([b],as.prototype,"tooltip");var{SeriesNodePickMode:F_,computeBarFocusBounds:glt,getMissCount:flt,valueProperty:fw,DEFAULT_CARTESIAN_DIRECTION_KEYS:mlt,DEFAULT_CARTESIAN_DIRECTION_NAMES:ylt,createDatumId:blt,ColorScale:xlt,Rect:vlt,PointerEvents:Slt,addHitTestersToQuadtree:Mlt,findQuadtreeMatch:H_,updateLabelNode:Dlt,upsertNodeDatum:Alt}=j,Ilt=class extends j.CartesianSeriesNodeEvent{constructor(t,e,i,n){super(t,e,i,n),this.colorKey=n.properties.colorKey}},klt={left:-.5,center:0,right:-.5},Clt={top:-.5,middle:0,bottom:-.5},i5=class extends j.CartesianSeries{constructor(t){super({moduleCtx:t,propertyKeys:{...mlt,color:["colorKey"]},propertyNames:{...ylt,color:["colorName"]},categoryKey:void 0,pickModes:[F_.NEAREST_NODE,F_.EXACT_SHAPE_MATCH],pathsPerSeries:[]}),this.properties=new as,this.NodeEvent=Ilt,this.colorScale=new xlt}async processData(t){const e=this.axes[z.X],i=this.axes[z.Y];if(!e||!i)return;const{xKey:n,yKey:s,colorRange:a,colorKey:o}=this.properties,r=this.axes[z.X]?.scale,l=this.axes[z.Y]?.scale,{xScaleType:c,yScaleType:u}=this.getScaleInformation({xScale:r,yScale:l}),d=this.colorScale.type,g=this.properties.allowNullKeys??!1,{dataModel:f,processedData:y}=await this.requestDataModel(t,this.data,{props:[fw(n,c,{id:"xValue",allowNullKey:g}),fw(s,u,{id:"yValue",allowNullKey:g}),...o?[fw(o,d,{id:"colorValue",invalidValue:void 0})]:[]]});if(this.isColorScaleValid()){const x=f.resolveProcessedDataIndexById(this,"colorValue"),S=y.domain.values[x].filter(A=>A!=null),D=Ll(S);if(this.colorScale.domain=D??[],D?.length&&D[0]===D[1]){const A=Math.floor(a.length/2);this.colorScale.range=[a[A],a[A]]}else this.colorScale.range=a;this.colorScale.update()}}isColorScaleValid(){const{colorKey:t}=this.properties;if(!t)return!1;const{dataModel:e,processedData:i}=this;if(!e||!i)return!1;const n=e.resolveProcessedDataIndexById(this,"colorValue"),s=i.input.count,a=flt(this,i.defs.values[n].missing),o=e.resolveProcessedDataIndexById(this,"colorValue"),r=i.domain.values[o].filter(c=>c!=null).length;return!(s===0||s===a||r===0)}xCoordinateRange(t,e){const i=this.axes[z.X].scale,n=e*(i.bandwidth??0)/2,s=i.convert(t)+n,a=e*(i.bandwidth??10);return[s,s+a]}yCoordinateRange(t,e){const i=this.axes[z.Y].scale,n=e*(i.bandwidth??0)/2,s=i.convert(t[0])+n,a=e*(i.bandwidth??10);return[s,s+a]}getSeriesDomain(t){const{dataModel:e,processedData:i}=this;return!e||!i?{domain:[]}:t===z.X?{domain:e.getDomain(this,"xValue","value",i).domain}:{domain:e.getDomain(this,"yValue","value",i).domain}}getSeriesRange(){return[Number.NaN,Number.NaN]}validateCreateNodeDataPreconditions(){const t=super.validateCreateNodeDataPreconditions();if(!t)return;const{xAxis:e,yAxis:i}=t;if(e.type!=="category"||i.type!=="category"){pt.warnOnce(`Heatmap series expected axes to have "category" type, but received "${e.type}" and "${i.type}" instead.`);return}return t}populateNodeData(t){for(const[e,i]of t.rawData.entries()){const n=Alt(t,{datumIndex:e,datum:i},(s,a)=>this.createNodeDatum(s,a.datumIndex,a.datum),(s,a,o)=>this.updateNodeDatum(s,a,o.datumIndex,o.datum));if(n){const s=this.createLabelDatum(t,e,i,n);s&&t.labels.push(s)}}}initializeResult(t){return{itemId:this.properties.yKey??this.id,nodeData:t.nodes,labelData:t.labels,scales:this.calculateScaling(),visible:this.visible}}createNodeDatumContext(t,e){const{dataModel:i,processedData:n,contextNodeData:s}=this;if(!i||!n)return;const{xKey:a,xName:o,yKey:r,yName:l,colorKey:c,colorName:u,textAlign:d,verticalAlign:g,itemPadding:f}=this.properties,y=t.scale,x=e.scale,S=i.resolveColumnById(this,"xValue",n),D=i.resolveColumnById(this,"yValue",n),A=c?i.resolveColumnById(this,"colorValue",n):void 0,I=c?i.getDomain(this,"colorValue","value",n).domain:[],w=y.bandwidth??10,N=x.bandwidth??10,O=n.da
Line truncated
|
||||
`),n=(t.lineHeight??e.lineHeight())*(i?.length??1);return t.spacing+n}horizontalLabelInset(){const{scale:t,properties:e}=this,{scale:i,label:n}=e,s=n.text?.split(`
|
||||
`),a=Ve(n),o=i.interval.values??t.ticks({nice:[!1,!1],interval:i.interval.step,minTickCount:0,maxTickCount:6,tickCount:5})?.ticks??[],l=(s??o?.map(c=>ux(this.id,this.ctx,this.labelDatum(n,c))??"")).reduce((c,u)=>{const{width:d}=qt(u)?Va(u,n):a.measureLines(bi(u));return Math.max(c,d)},0);return n.spacing+l}tickFormatter(t,e){const{format:i,formatter:n}=this.properties.scale.label;let s;return i!=null&&(s=vT(e,typeof i=="string"?i:void 0)),(a,o)=>{let r;return n&&(r??(r=cx(this.ctx,n,{value:a,index:o,domain:t,boundSeries:void 0}))),r??(r=s?.(a)),r??this.formatLabel(a)}}createNodeData(){const{id:t,properties:e,horizontal:i,scale:n,seriesRect:s}=this,{value:a,segmentation:o,thickness:r,cornerRadius:l,cornerMode:c,bar:u,scale:d,label:g,defaultColorRange:f,defaultScale:y}=e;n.domain=[d.min,d.max],n.range=i?[0,s.width]:[s.height,0];let x,S;i?(S=1,x=Math.PI/-2):d.label.placement==="before"?(S=1,x=0):(S=-1,x=0);let D,A,I,w;i?(D=0,A=s.width,I=(s.height-r)/2,w=I+r,g.placement==="outside-start"?D+=this.horizontalLabelInset():g.placement==="outside-end"&&(A-=this.horizontalLabelInset())):(D=(s.width-r)/2,A=D+r,w=0,I=s.height,g.placement==="outside-start"?I-=this.verticalLabelInset():g.placement==="outside-end"&&(w+=this.verticalLabelInset())),this.gaugeRect=new el(Math.min(D,A),Math.min(I,w),Math.abs(A-D),Math.abs(w-I));const N=0,O=0;n.domain=[d.min,d.max],n.range=i?[D,A]:[I,w];const L=Et({parallel:i},d.label,y.label),{tickData:{ticks:R}}=dpt({scale:n,label:L,interval:d.interval,tickFormatter:(Qt,zt)=>this.tickFormatter(Qt,zt),domain:n.domain,range:this.range,reverse:!1,primaryTickCount:void 0,defaultTickMinSpacing:0,visibleRange:[0,1],niceMode:[WF.Off,WF.Off],labelOffset:0,axisRotation:x,sideFlag:S}),P=this.getTargets(),B=[],F=[],H=[],$=[],[Y,U]=n.range,V=Math.abs(U-Y),Z=i?n.convert(a):A,W=i?w:n.convert(a),q=o.enabled?o.spacing/2:0,nt=i?q:0,G=i?0:q,et=Math.min(u.thickness??Math.round(u.thicknessRatio*r),r),st=-(r-et)/2,lt=i?0:st,mt=i?st:0,Dt=c==="item",kt=Math.ceil(V);let Vt=o.enabled?o.interval.getSegments(n,kt):void 0;const Kt=u.getStyle(f,i,n),ae=d.getStyle(u.enabled,f,i,n);if(Vt==null&&Dt){const Qt=Math.min(...n.domain),zt=Math.max(...n.domain),Pt={value:a,segmentStart:Qt,segmentEnd:zt};if(u.enabled){const Di=Math.min(l,et/2,V/2)*1,zn=i?Di:0,Kn=i?0:Di;B.push({series:this,itemId:"value",datum:Pt,datumIndex:{type:0},type:0,x0:N+D-zn-lt,y0:O+I-Kn-mt,x1:N+Z+zn+lt,y1:O+W+Kn+mt,clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:l,topRightCornerRadius:l,bottomRightCornerRadius:l,bottomLeftCornerRadius:l,horizontalInset:nt,verticalInset:G,style:Kt})}const oe=Math.min(l,r/2,V/2)*1,ke=i?oe:0,Ye=i?0:oe;$.push({series:this,itemId:"scale",datum:Pt,datumIndex:{type:0},type:0,x0:N+D-ke,y0:O+I-Ye,x1:N+A+ke,y1:O+w+Ye,clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:l,topRightCornerRadius:l,bottomRightCornerRadius:l,bottomLeftCornerRadius:l,horizontalInset:nt,verticalInset:G,style:ae})}else{Vt??(Vt=n.domain);const Qt=N+D-lt,zt=O+I-mt,Pt=N+Z+lt,ue=O+W+mt;for(let oe=0;oe<Vt.length-1;oe+=1){const ke=Vt[oe+0],Ye=Vt[oe+1],Ce={value:a,segmentStart:ke,segmentEnd:Ye},Di=oe===0,zn=oe===Vt.length-2,Kn=n.convert(ke),ln=n.convert(Ye),mi=Dt||Di?l:0,Ya=Dt||zn?l:0,Lo=i?mi:Ya,mr=Ya,nh=i?Ya:mi,fv=mi;u.enabled&&B.push({series:this,itemId:`value-${oe}`,datum:Ce,datumIndex:{type:0},type:0,x0:N+(i?Kn:D),y0:O+(i?I:Kn),x1:N+(i?ln:A),y1:O+(i?w:ln),clipX0:Qt,clipY0:zt,clipX1:Pt,clipY1:ue,topLeftCornerRadius:Lo,topRightCornerRadius:mr,bottomRightCornerRadius:nh,bottomLeftCornerRadius:fv,horizontalInset:nt,verticalInset:G,style:Kt}),$.push({series:this,itemId:`scale-${oe}`,datum:Ce,datumIndex:{type:0},type:0,x0:N+(i?Kn:D),y0:O+(i?I:Kn),x1:N+(i?ln:A),y1:O+(i?w:ln),clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:Lo,topRightCornerRadius:mr,bottomRightCornerRadius:nh,bottomLeftCornerRadius:fv,horizontalInset:nt,verticalInset:G,style:ae})}}for(const Qt of[$,B])for(const zt of Qt){const Pt=zt.clipX0??zt.x0,ue=zt.clipX1??zt.x1,oe=zt.clipY0??zt.y0,ke=zt.clipY1??zt.y1;zt.midPoint={x:(Pt+ue)/2,y:(oe+ke)/2}}g.enabled&&H.push(this.labelDatum(g,a));const ne=i?ppt:gpt;for(let Qt=0;Qt<P.length;Qt+=1){const zt=P[Qt],{value:Pt,text:ue,shape:oe,size:ke,style:Ye}=zt,Ce=this.getTargetPoint(zt),Di=Ze(zt.rotation+ne[zt.placement]);F.push({series:this,itemId:`target-${Qt}`,midPoint:Ce,datum:{value:Pt},datumIndex:{type:1,index:Qt},type:1,value:Pt,text:ue,x:Ce.x,y:Ce.y,shape:oe,size:ke,rotation:Di,label:this.getTargetLabel(zt),style:Ye})}return{itemId:t,nodeData:B,tickData:R,targetData:F,labelData:H,scaleData:$}}findNodeDatum(t){return O5(this,t)}updateSelections(t){(this.nodeDataRefresh||t)&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}highlightDatum(t){if(t?.series===this&&t.type===1)return t}update({seriesRect:t}){const{datumSelection:e,labelSelection:i,targetSelection:n,targetLabelSelection:s,scaleSelection:a,highlightTargetSelection:o,tickSelection:r}=this;this.seriesRect=t?
Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
:root{color:#161616;background:#f5e8d8;font-family:Microsoft YaHei,PingFang SC,Segoe UI,Arial,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0;overflow:hidden}button{font:inherit}.wea-right-menu-show,.wea-right-menu{display:none!important}.dashboard-shell{position:relative;min-height:100vh;background:#f5e8d8;overflow:hidden}.watermark-layer{position:absolute;inset:-30px;z-index:0;display:grid;grid-template-columns:repeat(4,minmax(260px,1fr));grid-auto-rows:128px;align-items:center;pointer-events:none;color:#968c8033;font-size:16px;letter-spacing:0;transform:rotate(-18deg)}.watermark-layer span{display:block;white-space:nowrap}.workspace{position:relative;z-index:1;display:grid;grid-template-columns:minmax(540px,52vw) 1fr;gap:28px;height:100vh;padding:8px 28px 18px 64px}.chart-area{display:grid;grid-template-rows:minmax(0,1fr);min-width:0}.chart-title{display:flex;align-items:center;justify-content:center;gap:6px}.chart-title h1{margin:0;font-size:16px;font-weight:500;letter-spacing:0;line-height:1}.chart-title button{display:grid;width:18px;height:18px;place-items:center;padding:0;border:1px solid rgba(95,88,80,.18);border-radius:2px;color:#6d6258;background:#fff9f15c;cursor:pointer;transition:background-color .12s ease,border-color .12s ease,color .12s ease,transform .12s ease,box-shadow .12s ease}.chart-title button:hover{border-color:#0078a85c;color:#0078a8;background:#fffcf8f0;box-shadow:0 1px 5px #4536241f}.chart-title button:active{transform:translateY(1px)}.chart-title button:focus-visible{outline:2px solid rgba(0,120,168,.34);outline-offset:2px}.chart-title button span{position:relative;width:11px;height:11px}.chart-title button span:before{position:absolute;top:5px;left:1px;width:10px;height:1px;background:currentColor;transform:rotate(-35deg);content:""}.chart-title button span:after{position:absolute;right:1px;bottom:1px;width:4px;height:1px;background:currentColor;content:""}.chart-frame{position:relative;min-width:0;min-height:0;padding:26px 0 0}.workspace:fullscreen{position:relative;z-index:10;display:grid;grid-template-columns:minmax(540px,52vw) 1fr;gap:28px;width:100vw;height:100vh;padding:8px 28px 18px 64px;background:#f5e8d8}.workspace:fullscreen .chart-area{height:calc(100vh - 26px)}.workspace:fullscreen .right-panel{display:block;min-width:0;height:100%}.chart-frame>div{height:100%}.chart-frame>.statistic-switcher-menu,.chart-frame>.chart-status{height:auto}.chart-frame .ag-charts-wrapper{--ag-charts-accent-color: #0078a8;--ag-charts-button-background-color: rgba(255, 249, 241, .72);--ag-charts-button-border-radius: 3px;--ag-charts-border-color: rgba(90, 82, 72, .22);--ag-charts-chrome-background-color: rgba(255, 249, 241, .84)}.chart-frame .ag-charts-toolbar{gap:8px;padding:0;background:transparent;border:0;box-shadow:none}.chart-frame .ag-charts-annotations__toolbar{left:-46px;top:24px;overflow:visible!important}.chart-frame .ag-charts-annotations__toolbar .ag-charts-toolbar{overflow:visible!important}.statistic-switcher-menu{position:absolute;left:70px;top:24px;z-index:14;width:max-content;min-width:86px;padding:4px 0;border:1px solid rgba(90,82,72,.22);border-radius:3px;background:#fbede1;box-shadow:0 4px 14px #45362424}.statistic-switcher-menu-item{display:block;width:100%;min-height:30px;padding:0 12px;border:0;color:#262a33;background:transparent;font-size:13px;line-height:30px;text-align:left;white-space:nowrap;cursor:pointer}.statistic-switcher-menu-item:hover,.statistic-switcher-menu-item[aria-current=true]{color:#0078a8;background:#fffcf8f0}.metric-switcher{position:absolute;left:74px;top:272px;z-index:12}.metric-switcher-button{display:block;width:22px;min-height:112px;padding:8px 2px;border:1px solid rgba(90,82,72,.16);border-radius:3px;color:#111827;background:#fff1e5ad;font-size:12px;letter-spacing:2px;line-height:1.25;text-align:center;cursor:pointer;transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease;writing-mode:vertical-rl;text-orientation:upright}.metric-switcher-button:hover,.metric-switcher-button[aria-expanded=true]{color:#0078a8;border-color:#0078a85c;background:#fffcf8f0;box-shadow:0 1px 5px #4536241f}.metric-switcher-menu{position:absolute;left:30px;top:8px;width:max-content;min-width:196px;padding:4px 0;border:1px solid rgba(90,82,72,.22);border-radius:3px;background:#fbede1;box-shadow:0 4px 14px #45362424}.metric-switcher-menu-item{display:block;width:100%;min-height:30px;padding:0 12px;border:0;color:#262a33;background:transparent;font-size:13px;line-height:30px;text-align:left;white-space:nowrap;cursor:pointer}.metric-switcher-menu-item:hover,.metric-switcher-menu-item[aria-current=true]{color:#0078a8;background:#fffcf8f0}.chart-status{position:absolute;top:62px;left:74px;z-index:11;padding:4px 8px;border:1px solid rgba(90,82,72,.16);border-radius:3px;color:Line truncated
|
||||
Reference in new issue
Block a user