jsroot
Version:
JavaScript ROOT
2 lines • 2.42 MB
JavaScript
// https://root.cern/js/ v7.10.1
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).JSROOT=t.JSROOT||{})}(this,function(t){"use strict";var e="undefined"!=typeof document?document.currentScript:null;const i="7.10.1",n="26/11/2025",r=i+" "+n,s=Boolean("object"==typeof process&&process.versions?.node&&process.versions.v8),a={id_counter:1},o="undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("jsroot.min.js",document.baseURI).href,l="$jsrootsys";function h(t){return t&&"object"==typeof t}function c(t){return"function"==typeof t}function d(t){return"string"==typeof t}function f(t){return h(t)&&c(t.then)}function u(t,e){return new Promise(i=>{setTimeout(()=>{const e=c(t)?t():t;i(e)},e)})}function p(t){return f(t)?t:Promise.resolve(t)}if(t.source_dir="","$"!==l[0])t.source_dir=l;else if(o&&d(o)){let e=o.indexOf("modules/core.mjs");e<0&&(e=o.indexOf("build/jsroot.js")),e<0&&(e=o.indexOf("build/jsroot.min.js")),e>=0?t.source_dir=o.slice(0,e):a.ignore_v6=!0}s||(t.source_dir?console.log(`Set jsroot source_dir to ${t.source_dir}, ${r}`):console.log(`jsroot bundle, ${r}`));let m=s;function g(){return m}function x(t){m=Boolean(t)}function _(){return s}const y=_()?t=>Buffer.from(t,"base64").toString("latin1"):globalThis?.atob,v=_()?t=>Buffer.from(t,"latin1").toString("base64"):globalThis?.btoa,A={isFirefox:!0,isSafari:!1,isChrome:!1,isWin:!1,touches:!1,screenWidth:1200};function b(t){if(t.length<14||t.indexOf("[object "))return 0;const e=t.indexOf("Array]");return e<0||e!==t.length-6?0:14===t.length?1:2}"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!=typeof navigator&&(navigator.userAgentData?.brands?.forEach(t=>{"HeadlessChrome"===t.brand?(A.isChromeHeadless=!0,A.chromeVersion=parseInt(t.version)):"Chromium"===t.brand&&(A.isChrome=!0,A.chromeVersion=parseInt(t.version))}),A.chromeVersion?(A.isFirefox=!1,A.isWin="Windows"===navigator.userAgentData.platform):(A.isFirefox=navigator.userAgent.indexOf("Firefox")>=0,A.isSafari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,A.isChrome=Boolean(window.chrome),A.isChromeHeadless=navigator.userAgent.indexOf("HeadlessChrome")>=0,A.chromeVersion=A.isChrome||A.isChromeHeadless?navigator.userAgent.indexOf("Chrom")>0?parseInt(navigator.userAgent.match(/Chrom(?:e|ium)\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/)[1]):134:0,A.isWin=navigator.userAgent.indexOf("Windows")>=0),A.android=/android/i.test(navigator.userAgent),A.touches="ontouchend"in document,A.screenWidth=window.screen?.width??1200);const w={Render3D:{Default:0,WebGL:1,WebGLImage:2,SVG:3,None:4,fromString(t){return"webgl"===t||"gl"===t?this.WebGL:"img"===t?this.WebGLImage:"svg"===t?this.SVG:"none"===t?this.None:this.Default}},Embed3D:{NoEmbed:-1,Default:0,Overlay:1,Embed:2,EmbedSVG:3,fromString(t){return"embed"===t?this.Embed:"overlay"===t?this.Overlay:this.Default}},Latex:{Off:0,Symbols:1,Normal:2,MathJax:3,AlwaysMathJax:4,fromString(t){if(!t||!d(t))return this.Normal;switch(t){case"off":return this.Off;case"symbols":return this.Symbols;case"normal":case"latex":case"exp":case"experimental":return this.Normal;case"MathJax":case"mathjax":case"math":return this.MathJax;case"AlwaysMathJax":case"alwaysmath":case"alwaysmathjax":return this.AlwaysMathJax}const e=parseInt(t);return Number.isInteger(e)&&e>=this.Off&&e<=this.AlwaysMathJax?e:this.Normal}}},M={Render3D:w.Render3D.Default,Render3DBatch:w.Render3D.Default,Embed3D:w.Embed3D.Default,CanvasWidth:1200,CanvasHeight:800,CanvasScale:1,Tooltip:!s,TooltipAnimation:500,ContextMenu:!s,Zooming:!s,ZoomMouse:!s,ZoomWheel:!s,ZoomTouch:!s,MoveResize:!A.touches&&!s,HandleKeys:!s,DragAndDrop:!s,DragGraphs:!0,UserSelect:"none",ProgressBox:!s,ToolBar:!s&&"popup",ToolBarSide:"left",ToolBarVert:!1,CanEnlarge:!0,CanAdjustFrame:!1,ApproxTextSize:!1,LoadSymbolTtf:!1,OptimizeDraw:1,AutoStat:!0,FrameNDC:{},SmallPad:{width:150,height:100},Palette:57,Latex:w.Latex.Normal,GeoGradPerSegm:6,GeoCompressComp:!0,IgnoreUrlOptions:!1,HierarchyLimit:250,DislpayKind:"simple",BrowserWidth:250,XValuesFormat:void 0,YValuesFormat:void 0,ZValuesFormat:void 0,HandleWrongHttpResponse:!1,UseStamp:!s,MaxRanges:200,TreeReadBunchSize:1e6,FilesTimeout:0,FilesRemap:{"https://root.cern/":"https://root-eos.web.cern.ch/"},WithCredentials:!1,SkipStreamerInfos:!1,OnlyLastCycle:!1,DarkMode:!1,PreferSavedPoints:!1,AxisTiltAngle:25,StripAxisLabels:!0,CutAxisLabels:!1,FuncAsCurve:!1,TimeZone:"",NewTabUrl:"",NewTabUrlPars:"",NewTabUrlExportSettings:!1,Debug:!1},S={fName:"Modern",fOptLogx:0,fOptLogy:0,fOptLogz:0,fOptDate:0,fOptFile:0,fDateX:.01,fDateY:.01,fOptTitle:1,fCanvasColor:0,fPadColor:0,fPadBottomMargin:.1,fPadTopMargin:.1,fPadLeftMargin:.1,fPadRightMargin:.1,fPadGridX:!1,fPadGridY:!1,fPadTickX:0,fPadTickY:0,fPadBorderSize:2,fPadBorderMode:0,fCanvasBorderSize:2,fCanvasBorderMode:0,fStatColor:0,fStatStyle:1e3,fStatTextColor:1,fStatFontSize:0,fStatFont:42,fStatBorderSize:1,fStatFormat:"6.4g",fStatX:.98,fStatY:.935,fStatW:.2,fStatH:.16,fTitleAlign:23,fTitleColor:0,fTitleTextColor:1,fTitleBorderSize:0,fTitleFont:42,fTitleFontSize:.05,fTitleStyle:0,fTitleX:.5,fTitleY:.995,fTitleW:0,fTitleH:0,fFitFormat:"5.4g",fOptStat:1111,fOptFit:0,fNumberContours:20,fGridColor:0,fGridStyle:3,fGridWidth:1,fFrameFillColor:0,fFrameFillStyle:1001,fFrameLineColor:1,fFrameLineWidth:1,fFrameLineStyle:1,fFrameBorderSize:1,fFrameBorderMode:0,fEndErrorSize:2,fErrorX:.5,fHistMinimumZero:!1,fHistTopMargin:.05,fHistFillColor:0,fHistFillStyle:1001,fHistLineColor:602,fHistLineStyle:1,fHistLineWidth:1,fPaintTextFormat:"g",fTimeOffset:788918400,fLegendBorderSize:1,fLegendFont:42,fLegendTextSize:0,fLegendFillColor:0,fLegendFillStyle:1001,fHatchesLineWidth:1,fHatchesSpacing:1,fCandleWhiskerRange:1,fCandleBoxRange:.5,fCandleScaled:!1,fViolinScaled:!0,fCandleCircleLineWidth:1,fCandleCrossLineWidth:1,fOrthoCamera:!1,fXAxisExpXOffset:0,fXAxisExpYOffset:0,fYAxisExpXOffset:0,fYAxisExpYOffset:0,fAxisMaxDigits:5,fStripDecimals:!0,fBarWidth:1,fBarOffset:0};function T(){return s?a.nodejs_document:"undefined"!=typeof document?document:"object"==typeof window?window.document:void 0}function C(t){return 1<<t}function P(t,e,i){if(!t)return null;if(e){const i=e.obj.indexOf(t);if(i>=0)return e.clones[i]}else e={obj:[],clones:[],nofunc:i};const n=b(Object.prototype.toString.apply(t));if(1===n){const i=[];e.obj.push(t),e.clones.push(i);for(let n=0;n<t.length;++n)i.push(h(t[n])?P(t[n],e):t[n]);return i}if(2===n){const i=[];e.obj.push(t),e.clones.push(i);for(let e=0;e<t.length;++e)i.push(t[e]);return i}const r={};e.obj.push(t),e.clones.push(r);for(const i in t)h(t[i])?r[i]=P(t[i],e):e.nofunc&&c(t[i])||(r[i]=t[i]);return r}t._ensureJSROOT=null;const E=Object.assign;function k(e){if(!e)return null;const i=d(e)?JSON.parse(e):e,n=[];let r;const s=e=>{if(null==e)return;if(d(e)){if(r||e.length<6||e.indexOf("$ref:"))return;const t=parseInt(e.slice(5));if(!Number.isInteger(t)||t<0||t>=n.length)return;return r=!1,n[t]}if("object"!=typeof e)return;if(b(Object.prototype.toString.apply(e))>0){for(let t=0;t<e.length;++t){const i=s(e[t]);void 0!==i&&(e[t]=i)}return}const i=Object.keys(e),a=i.length;if(!1!==r&&1===a&&"$ref"===i[0]){const t=parseInt(e.$ref);if(!Number.isInteger(t)||t<0||t>=n.length)return;return r=!0,n[t]}if(!1!==r&&a>1&&"$arr"===i[0]&&"len"===i[1]){let t;switch(e.$arr){case"Int8":t=new Int8Array(e.len);break;case"Uint8":t=new Uint8Array(e.len);break;case"Int16":t=new Int16Array(e.len);break;case"Uint16":t=new Uint16Array(e.len);break;case"Int32":t=new Int32Array(e.len);break;case"Uint32":t=new Uint32Array(e.len);break;case"Float32":t=new Float32Array(e.len);break;case"Int64":case"Uint64":case"Float64":t=new Float64Array(e.len);break;default:t=new Array(e.len)}if(t.fill("Bool"!==e.$arr&&0),void 0!==e.b){const i=y(e.b);if(!t.buffer)throw new Error("base64 coding supported only for native arrays with binary data");{const n=new DataView(t.buffer,e.o||0),r=Math.min(i.length,n.byteLength);for(let t=0;t<r;++t)n.setUint8(t,i.charCodeAt(t))}}else{let n=2,r=0;for(;n<a;){if("p"===i[n][0]&&(r=e[i[n++]]),"v"!==i[n][0])throw new Error(`Unexpected member ${i[n]} in array decoding`);const s=e[i[n++]];if("object"==typeof s)for(let e=0;e<s.length;++e)t[r++]=s[e];else if(t[r++]=s,n<a&&"n"===i[n][0]){let a=e[i[n++]];for(;--a;)t[r++]=s}}}return t}if(!1!==r&&3===a&&"$pair"===i[0]&&"first"===i[1]&&"second"===i[2]){r=!0;const t=s(e.first),i=s(e.second);return void 0!==t&&(e.first=t),void 0!==i&&(e.second=i),e._typename=e.$pair,void delete e.$pair}if(!(n.indexOf(e)>=0)){n.push(e),e._typename&&t.addMethods(e);for(let t=0;t<a;++t){const n=i[t],r=s(e[n]);void 0!==r&&(e[n]=r)}}};return s(i),i}function N(t){if(!t)return null;const e=JSON.parse(t);if(e?.length)for(let t=0;t<e.length;++t)e[t]=k(e[t]);return e}function L(t,e){if(!h(t))return"";const i=[],n=t=>{if(c(t))return;if(null==t||!h(t))return t;if(b(Object.prototype.toString.apply(t))>0){const e=new Array(t.length);for(let i=0;i<t.length;++i)e[i]=n(t[i]);return e}const e=i.indexOf(t);if(e>=0)return{$ref:e};const r=Object.keys(t),s=r.length,a={};if(3===s&&"$pair"===r[0]&&"first"===r[1]&&"second"===r[2])return a.$pair=t.$pair,a.first=n(t.first),a.second=n(t.second),a;i.push(t);for(let e=0;e<s;++e){const i=r[e];i&&"$"!==i[0]&&(a[i]=n(t[i]))}return a},r=n(t);return JSON.stringify(r,null,e)}function D(t){const e={opts:{},has(t){return void 0!==this.opts[t]},get(t,e){return this.opts[t]??e}};if(!t||!d(t)){if(M.IgnoreUrlOptions||"undefined"==typeof document)return e;t=document.URL}e.url=t;const i=t.indexOf("?");if(i<0)return e;for(t=decodeURI(t.slice(i+1));t;){let i=0,n=0,r=-1,s=-1;for(;i<t.length&&(n||"&"!==t[i]&&"#"!==t[i]);){switch(t[i]){case"'":n>=0&&(n=(n+1)%2),s<0&&(s=i);break;case'"':n<=0&&(n=(n-1)%2),s<0&&(s=i);break;case"=":s<0&&r<0&&(r=i)}i++}if(r<0&&s<0)e.opts[t.slice(0,i)]="";else if(r>0){let n=t.slice(r+1,i);"'"!==n[0]&&'"'!==n[0]||n.at(0)!==n.at(-1)||(n=n.slice(1,n.length-1)),e.opts[t.slice(0,r)]=n}if(i>=t.length||"#"===t[i])break;t=t.slice(i+1)}return e}function O(t){if(c(t))return t;if(!d(t))return null;const e=t.split(".");let i=globalThis;for(let t=0;i&&t<e.length;++t)i=i[e[t]];return c(i)?i:null}function F(t,e,i,n,r){function a(r){r.http_callback=c(i)?i.bind(r):()=>{},r.error_callback=c(n)?n.bind(r):function(t){console.warn(t.message),this.http_callback(null)}.bind(r),e||(e="buf");let a="GET",o=!0;const l=e.indexOf(";sync");switch(l>0&&(e=e.slice(0,l),o=!1),e){case"head":a="HEAD";break;case"posttext":a="POST",e="text";break;case"postbuf":a="POST",e="buf";break;case"post":case"multi":a="POST"}return r.kind=e,M.WithCredentials&&(r.withCredentials=!0),M.HandleWrongHttpResponse&&"GET"===a&&c(r.addEventListener)&&r.addEventListener("progress",function(t){t.lengthComputable&&this.expected_size&&t.loaded>this.expected_size&&(this.did_abort=!0,this.abort(),this.error_callback(Error(`Server sends more bytes ${t.loaded} than expected ${this.expected_size}. Abort I/O operation`),598))}.bind(r)),r.onreadystatechange=function(){if(!this.did_abort){if(2===this.readyState&&this.expected_size){const t=parseInt(this.getResponseHeader("Content-Length"));if(Number.isInteger(t)&&t>this.expected_size&&!M.HandleWrongHttpResponse)return this.did_abort="large",this.abort(),this.error_callback(Error(`Server response size ${t} larger than expected ${this.expected_size}. Abort I/O operation`),599)}if(4===this.readyState){if(200!==this.status&&206!==this.status&&!A.qt6&&(0!==this.status||0!==t.indexOf("file://")&&0!==t.indexOf("blob:")))return this.error_callback(Error(`Fail to load url ${t}`),this.status);if(this.nodejs_checkzip&&"gzip"===this.getResponseHeader("content-encoding"))return Promise.resolve().then(function(){return QI}).then(t=>{const e=t.unzipSync(Buffer.from(this.response)),i=JSON.parse(e);return this.http_callback(k(i))});switch(this.kind){case"xml":return this.http_callback(this.responseXML);case"text":return this.http_callback(this.responseText);case"object":return this.http_callback(k(this.responseText));case"multi":return this.http_callback(N(this.responseText));case"head":return this.http_callback(this)}if(void 0===this.responseType)return this.http_callback(this.responseText);if("bin"===this.kind&&"byteLength"in this.response){const t=new Uint8Array(this.response);let e="";for(let i=0;i<t.length;++i)e+=String.fromCharCode(t[i]);return this.http_callback(e)}this.http_callback(this.response)}}},r.open(a,t,o),"bin"!==e&&"buf"!==e||(r.responseType="arraybuffer"),s&&"GET"===a&&"object"===e&&t.indexOf(".json.gz")>0&&(r.nodejs_checkzip=!0,r.responseType="arraybuffer"),r}if(_()){if(!r)throw Error("Not allowed to create http requests in node.js without promise");return Promise.resolve().then(function(){return QI}).then(t=>a(new t.default))}const o=a(new XMLHttpRequest);return r?Promise.resolve(o):o}async function z(t,e,i){return new Promise((n,r)=>{F(t,e,n,r,!0).then(t=>t.send(i||null))})}async function R(e){if(s){let t,i;return Promise.resolve().then(function(){return QI}).then(e=>(t=e.tmpNameSync()+".js",Promise.resolve().then(function(){return QI}))).then(n=>(i=n,i.writeFileSync(t,e),import("file://"+t))).finally(()=>i.unlinkSync(t))}if("undefined"!=typeof document){const i=document.getElementsByTagName("script");for(let t=0;t<i.length;++t)if(i[t].innerText===e)return!0;const n=e.indexOf("JSROOT.require")>=0,r=!n&&e.indexOf("import {")>0&&e.indexOf("} from '")>0,s=!n&&!r&&e.indexOf("JSROOT.ObjectPainter")>=0,o=n?t._ensureJSROOT():Promise.resolve(!0);return s&&!globalThis.JSROOT&&(globalThis.JSROOT=a.jsroot),o.then(()=>{const t=document.createElement("script");return t.setAttribute("type",r?"module":"text/javascript"),t.innerText=e,document.head.appendChild(t),!!g()||u(!0,10)})}return!1}async function I(t){return d(t)&&(t=t.split(";")),!t.length||import(t.shift()).then(()=>I(t))}async function B(e){if(!e)return!0;if(d(e)&&e.indexOf(";")>=0&&(e=e.split(";")),!d(e)){const t=e,i=()=>!t.length||B(t.shift()).then(i,i);return i()}0===e.indexOf("$$$")&&(0===(e=e.slice(3)).indexOf("style/")&&e.indexOf(".css")<0&&(e+=".css"),e=t.source_dir+e);const i=e.indexOf(".css")>0;if(s)return i?null:0===e.indexOf("http:")||0===e.indexOf("https:")?z(e,"text").then(t=>R(t)):0===e.indexOf("./")?Promise.resolve().then(function(){return QI}).then(t=>R(t.readFileSync(e))):import(e);const n=t=>{if(t===e)return!0;const i=t.indexOf(e);return i>0&&i+e.length===t.length&&"/"===t[i-1]};if(i){const t=document.getElementsByTagName("link");for(let e=0;e<t.length;++e)if(t[e].href&&"text/css"===t[e].type&&"stylesheet"===t[e].rel&&n(t[e].href))return!0}else{const t=document.getElementsByTagName("script");for(let e=0;e<t.length;++e)if(n(t[e].src))return!0}let r;return i?(r=document.createElement("link"),r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("href",e)):(r=document.createElement("script"),r.setAttribute("type","text/javascript"),r.setAttribute("src",e)),new Promise((t,i)=>{r.onload=()=>t(!0),r.onerror=()=>{r.remove(),i(Error(`Fail to load ${e}`))},document.head.appendChild(r)})}t.addMethods=null,t._ensureJSROOT=async function(){return(globalThis.JSROOT?Promise.resolve(!0):B(t.source_dir+"scripts/JSRoot.core.js")).then(()=>{if(globalThis.JSROOT?._complete_loading)return globalThis.JSROOT._complete_loading()}).then(()=>globalThis.JSROOT)};const U="ROOT.",j="TObject",q="TNamed",$="TString",G="TObjString",H="TKey",X="TFile",V="TTree",Y="TList",W="THashList",Z="TMap",K="TObjArray",J="TClonesArray",Q="TAttLine",tt="TAttFill",et="TAttMarker",it="TAttText",nt="THStack",rt="TGraph",st="TMultiGraph",at="TCutG",ot="TGraph2DErrors",lt="TGraph2DAsymmErrors",ht="TGraphPolar",ct="TGraphPolargram",dt="TGraphTime",ft="TPave",ut="TPaveText",pt="TPaveStats",mt="TPavesText",gt="TPaveLabel",xt="TPaveClass",_t="TDiamond",yt="TLegend",vt="TLegendEntry",At="TPaletteAxis",bt="TImagePalette",wt="TText",Mt="TLink",St="TLatex",Tt="TMathText",Ct="TAnnotation",Pt="TColor",Et="TLine",kt="TMarker",Nt="TBox",Lt="TPolyLine",Dt="TPolyLine3D",Ot="TPolyMarker3D",Ft="TAttPad",zt="TPad",Rt="TCanvas",It="TFrame",Bt="TAttCanvas",Ut="TGaxis",jt="TAttAxis",qt="TAxis",$t="TStyle",Gt="TH1",Ht="TH1I",Xt="TH1F",Vt="TH1D",Yt="TH2",Wt="TH2I",Zt="TH2F",Kt="TH2D",Jt="TH3",Qt="TF1",te="TF12",ee="TF2",ie="TF3",ne="TProfile",re="TProfile2D",se="TProfile3D",ae="TGeoVolume",oe="TGeoNode",le="TGeoNodeMatrix",he="ROOT::",ce=he+"Experimental::",de="http://www.w3.org/2000/svg",fe=-1111,ue=C(9),pe="inspect",me="title",ge="https://root.cern/doc/master/class";function xe(e,i){const n=i||{};switch(e){case j:E(n,{fUniqueID:0,fBits:0});break;case q:E(n,{fUniqueID:0,fBits:0,fName:"",fTitle:""});break;case Y:case W:E(n,{name:e,arr:[],opt:[]});break;case K:E(n,{name:e,arr:[]});break;case jt:E(n,{fNdivisions:510,fAxisColor:1,fLabelColor:1,fLabelFont:42,fLabelOffset:.005,fLabelSize:.035,fTickLength:.03,fTitleOffset:1,fTitleSize:.035,fTitleColor:1,fTitleFont:42});break;case qt:xe(q,n),xe(jt,n),E(n,{fNbins:1,fXmin:0,fXmax:1,fXbins:[],fFirst:0,fLast:0,fBits2:0,fTimeDisplay:!1,fTimeFormat:"",fLabels:null,fModLabs:null});break;case Q:E(n,{fLineColor:1,fLineStyle:1,fLineWidth:1});break;case tt:E(n,{fFillColor:0,fFillStyle:0});break;case et:E(n,{fMarkerColor:1,fMarkerStyle:1,fMarkerSize:1});break;case Et:xe(j,n),xe(Q,n),E(n,{fX1:0,fX2:1,fY1:0,fY2:1});break;case kt:xe(j,n),xe(et,n),E(n,{fX:0,fY:0});break;case Nt:xe(j,n),xe(Q,n),xe(tt,n),E(n,{fX1:0,fX2:1,fY1:0,fY2:1});break;case ft:xe(Nt,n),E(n,{fX1NDC:0,fY1NDC:0,fX2NDC:0,fY2NDC:0,fBorderSize:0,fInit:1,fShadowColor:1,fCornerRadius:0,fOption:"brNDC",fName:""});break;case it:E(n,{fTextAngle:0,fTextSize:0,fTextAlign:22,fTextColor:1,fTextFont:42});break;case ut:xe(ft,n),xe(it,n),E(n,{fLabel:"",fLongest:27,fMargin:.05,fLines:xe(Y)});break;case pt:xe(ut,n),E(n,{fFillColor:S.fStatColor,fFillStyle:S.fStatStyle,fTextFont:S.fStatFont,fTextSize:S.fStatFontSize,fTextColor:S.fStatTextColor,fBorderSize:S.fStatBorderSize,fOptFit:S.fOptFit,fOptStat:S.fOptStat,fFitFormat:S.fFitFormat,fStatFormat:S.fStatFormat,fParent:null});break;case yt:xe(ft,n),xe(it,n),E(n,{fColumnSeparation:0,fEntrySeparation:.1,fMargin:.25,fNColumns:1,fPrimitives:xe(Y),fName:ft,fBorderSize:S.fLegendBorderSize,fTextFont:S.fLegendFont,fTextSize:S.fLegendTextSize,fFillColor:S.fLegendFillColor,fFillStyle:S.fLegendFillStyle});break;case At:xe(ft,n),E(n,{fAxis:xe(Ut),fH:null,fName:ft});break;case vt:xe(j,n),xe(it,n),xe(Q,n),xe(tt,n),xe(et,n),E(n,{fLabel:"",fObject:null,fOption:"",fTextAlign:0,fTextColor:0,fTextFont:0});break;case wt:xe(q,n),xe(it,n),E(n,{fX:0,fY:0});break;case St:xe(wt,n),xe(Q,n),E(n,{fLimitFactorSize:3,fOriginSize:.04});break;case G:xe(j,n),E(n,{fString:""});break;case Gt:xe(q,n),xe(Q,n),xe(tt,n),xe(et,n),E(n,{fBits:8,fNcells:0,fXaxis:xe(qt),fYaxis:xe(qt),fZaxis:xe(qt),fFillColor:S.fHistFillColor,fFillStyle:S.fHistFillStyle,fLineColor:S.fHistLineColor,fLineStyle:S.fHistLineStyle,fLineWidth:S.fHistLineWidth,fBarOffset:0,fBarWidth:1e3,fEntries:0,fTsumw:0,fTsumw2:0,fTsumwx:0,fTsumwx2:0,fMaximum:fe,fMinimum:fe,fNormFactor:0,fContour:[],fSumw2:[],fOption:"",fFunctions:xe(Y),fBufferSize:0,fBuffer:[],fBinStatErrOpt:0,fStatOverflows:2});break;case Ht:case Vt:case"TH1L64":case"TH1F":case"TH1S":case"TH1C":xe(Gt,n),n.fArray=[];break;case Yt:xe(Gt,n),E(n,{fScalefactor:1,fTsumwy:0,fTsumwy2:0,fTsumwxy:0});break;case Wt:case"TH2L64":case Zt:case"TH2D":case"TH2S":case"TH2C":xe(Yt,n),n.fArray=[];break;case Jt:xe(Gt,n),E(n,{fTsumwy:0,fTsumwy2:0,fTsumwz:0,fTsumwz2:0,fTsumwxy:0,fTsumwxz:0,fTsumwyz:0});break;case"TH3I":case"TH3L64":case"TH3F":case"TH3D":case"TH3S":case"TH3C":xe(Jt,n),n.fArray=[];break;case nt:xe(q,n),E(n,{fHists:xe(Y),fHistogram:null,fMaximum:fe,fMinimum:fe});break;case rt:xe(q,n),xe(Q,n),xe(tt,n),xe(et,n),E(n,{fFunctions:xe(Y),fHistogram:null,fMaxSize:0,fMaximum:fe,fMinimum:fe,fNpoints:0,fX:[],fY:[]});break;case"TGraphAsymmErrors":xe(rt,n),E(n,{fEXlow:[],fEXhigh:[],fEYlow:[],fEYhigh:[]});break;case st:xe(q,n),E(n,{fFunctions:xe(Y),fGraphs:xe(Y),fHistogram:null,fMaximum:fe,fMinimum:fe});break;case ct:xe(q,n),xe(it,n),xe(Q,n),E(n,{fRadian:!1,fDegree:!1,fGrad:!1,fPolarLabelColor:1,fRadialLabelColor:1,fAxisAngle:0,fPolarOffset:.04,fPolarTextSize:.04,fRadialOffset:.025,fRadialTextSize:.035,fRwrmin:0,fRwrmax:1,fRwtmin:0,fRwtmax:2*Math.PI,fTickpolarSize:.02,fPolarLabelFont:62,fRadialLabelFont:62,fCutRadial:0,fNdivRad:508,fNdivPol:508});break;case Lt:xe(j,n),xe(Q,n),xe(tt,n),E(n,{fLastPoint:-1,fN:0,fOption:"",fX:null,fY:null});break;case Ut:xe(Et,n),xe(it,n),E(n,{fChopt:"",fFunctionName:"",fGridLength:0,fLabelColor:1,fLabelFont:42,fLabelOffset:.005,fLabelSize:.035,fName:"",fNdiv:12,fTickSize:.02,fTimeFormat:"",fTitle:"",fTitleOffset:1,fTitleSize:.035,fWmax:100,fWmin:0});break;case Ft:E(n,{fLeftMargin:S.fPadLeftMargin,fRightMargin:S.fPadRightMargin,fBottomMargin:S.fPadBottomMargin,fTopMargin:S.fPadTopMargin,fXfile:2,fYfile:2,fAfile:1,fXstat:.99,fYstat:.99,fAstat:2,fFrameFillColor:S.fFrameFillColor,fFrameFillStyle:S.fFrameFillStyle,fFrameLineColor:S.fFrameLineColor,fFrameLineWidth:S.fFrameLineWidth,fFrameLineStyle:S.fFrameLineStyle,fFrameBorderSize:S.fFrameBorderSize,fFrameBorderMode:S.fFrameBorderMode});break;case zt:xe(j,n),xe(Q,n),xe(tt,n),xe(Ft,n),E(n,{fFillColor:S.fPadColor,fFillStyle:1001,fX1:0,fY1:0,fX2:1,fY2:1,fXtoAbsPixelk:1,fXtoPixelk:1,fXtoPixel:1,fYtoAbsPixelk:1,fYtoPixelk:1,fYtoPixel:1,fUtoAbsPixelk:1,fUtoPixelk:1,fUtoPixel:1,fVtoAbsPixelk:1,fVtoPixelk:1,fVtoPixel:1,fAbsPixeltoXk:1,fPixeltoXk:1,fPixeltoX:1,fAbsPixeltoYk:1,fPixeltoYk:1,fPixeltoY:1,fXlowNDC:0,fYlowNDC:0,fXUpNDC:0,fYUpNDC:0,fWNDC:1,fHNDC:1,fAbsXlowNDC:0,fAbsYlowNDC:0,fAbsWNDC:1,fAbsHNDC:1,fUxmin:0,fUymin:0,fUxmax:0,fUymax:0,fTheta:30,fPhi:30,fAspectRatio:0,fNumber:0,fLogx:S.fOptLogx,fLogy:S.fOptLogy,fLogz:S.fOptLogz,fTickx:S.fPadTickX,fTicky:S.fPadTickY,fPadPaint:0,fCrosshair:0,fCrosshairPos:0,fBorderSize:S.fPadBorderSize,fBorderMode:S.fPadBorderMode,fModified:!1,fGridx:S.fPadGridX,fGridy:S.fPadGridY,fAbsCoord:!1,fEditable:!0,fFixedAspectRatio:!1,fPrimitives:xe(Y),fExecs:null,fName:"pad",fTitle:"canvas"});break;case Bt:E(n,{fXBetween:2,fYBetween:2,fTitleFromTop:1.2,fXdate:.2,fYdate:.3,fAdate:1});break;case Rt:xe(zt,n),E(n,{fFillColor:S.fCanvasColor,fFillStyle:1001,fNumPaletteColor:0,fNextPaletteColor:0,fDISPLAY:"$DISPLAY",fDoubleBuffer:0,fRetained:!0,fXsizeUser:0,fYsizeUser:0,fXsizeReal:20,fYsizeReal:10,fWindowTopX:0,fWindowTopY:0,fWindowWidth:0,fWindowHeight:0,fBorderSize:S.fCanvasBorderSize,fBorderMode:S.fCanvasBorderMode,fCw:M.CanvasWidth,fCh:M.CanvasHeight,fCatt:xe(Bt),kMoveOpaque:!0,kResizeOpaque:!0,fHighLightColor:5,fBatch:!0,kShowEventStatus:!1,kAutoExec:!0,kMenuBar:!0});break;case ae:xe(q,n),xe(Q,n),xe(tt,n),E(n,{fGeoAtt:0,fFinder:null,fMedium:null,fNodes:null,fNtotal:0,fNumber:0,fRefCount:0,fShape:null,fVoxels:null});break;case oe:xe(q,n),E(n,{fGeoAtt:0,fMother:null,fNovlp:0,fNumber:0,fOverlaps:null,fVolume:null});break;case le:xe(oe,n),E(n,{fMatrix:null});break;case"TGeoTrack":xe(j,n),xe(Q,n),xe(et,n),E(n,{fGeoAtt:0,fNpoints:0,fPoints:[]});break;case Dt:xe(j,n),xe(Q,n),E(n,{fLastPoint:-1,fN:0,fOption:"",fP:[]});break;case Ot:xe(j,n),xe(et,n),E(n,{fLastPoint:-1,fN:0,fName:"",fOption:"",fP:[]})}return n._typename=e,t.addMethods(n,e),n}function _e(t,e,i,n){const r=xe(t);if(!r.fXaxis||!r.fYaxis||!r.fZaxis)return null;switch(r.fName="hist",r.fTitle="title",e&&E(r.fXaxis,{fNbins:e,fXmin:0,fXmax:e}),i&&E(r.fYaxis,{fNbins:i,fXmin:0,fXmax:i}),n&&E(r.fZaxis,{fNbins:n,fXmin:0,fXmax:n}),parseInt(t[2])){case 1:e&&(r.fNcells=e+2);break;case 2:e&&i&&(r.fNcells=(e+2)*(i+2));break;case 3:e&&i&&n&&(r.fNcells=(e+2)*(i+2)*(n+2))}if(r.fNcells>0){switch(t[3]){case"C":r.fArray=new Int8Array(r.fNcells);break;case"S":r.fArray=new Int16Array(r.fNcells);break;case"I":r.fArray=new Int32Array(r.fNcells);break;case"F":r.fArray=new Float32Array(r.fNcells);break;case"L":case"D":r.fArray=new Float64Array(r.fNcells);break;default:r.fArray=new Array(r.fNcells)}r.fArray.fill(0)}return r}function ye(t,e){if(t&&d(e))if(e.indexOf(";")<0)t.fTitle=e;else{const i=e.split(";");t.fTitle=i[0],i.length>1&&(t.fXaxis.fTitle=i[1]),i.length>2&&(t.fYaxis.fTitle=i[2]),i.length>3&&(t.fZaxis.fTitle=i[3])}}function ve(t,e){const i=xe(Lt);return t&&(i.fN=t,e?(i.fX=new Int32Array(t),i.fY=new Int32Array(t)):(i.fX=new Float32Array(t),i.fY=new Float32Array(t))),i}function Ae(t,e,i){const n=E(xe(rt),{fBits:1032,fName:"graph",fTitle:"title"});if(t>0){n.fMaxSize=n.fNpoints=t;const r=h(e)&&e.length===t,s=h(i)&&i.length===t;for(let a=0;a<t;++a)n.fX.push(r?e[a]:a/t),n.fY.push(s?i[a]:a/t)}return n}function be(...t){const e=xe(nt);for(let i=0;i<t.length;++i)e.fHists.Add(t[i],"");return e}function we(...t){const e=xe(st);for(let i=0;i<t.length;++i)e.fGraphs.Add(t[i],"");return e}const Me={};function Se(t,e){let i=Me[t];const n=void 0!==i;return n||(i={}),t!==j&&t!==q&&void 0===e?.fBits||void 0===i.TestBit&&(i.TestBit=function(t){return Boolean(this.fBits&t)},i.InvertBit=function(t){this.fBits^=16777215&t},i.SetBit=function(t,e=!0){this.fBits=e?this.fBits|t:this.fBits&~t}),n||(t!==Y&&t!==W||(i.Clear=function(){this.arr=[],this.opt=[]},i.Add=function(t,e){this.arr.push(t),this.opt.push(d(e)?e:"")},i.AddFirst=function(t,e){this.arr.unshift(t),this.opt.unshift(d(e)?e:"")},i.RemoveAt=function(t){this.arr.splice(t,1),this.opt.splice(t,1)}),t!==ut&&t!==pt||(i.AddText=function(t){const e=xe(St);e.fTitle=t,e.fTextAlign=0,e.fTextColor=0,e.fTextFont=0,e.fTextSize=0,this.fLines.Add(e)},i.Clear=function(){this.fLines.Clear()}),0!==t.indexOf(Qt)&&t!==te&&t!==ee&&t!==ie||(i.addFormula=function(t){t&&(void 0===this.formulas&&(this.formulas=[]),this.formulas.push(t))},i.GetParName=function(t){if(this.fParams?.fParNames)return this.fParams.fParNames[t];if(this.fFormula?.fParams)for(let e=0,i=this.fFormula.fParams;e<i.length;++e)if(i[e].second===t)return i[e].first;return this.fNames&&this.fNames[t]?this.fNames[t]:`p${t}`},i.GetParValue=function(t){return this.fParams?.fParameters?this.fParams.fParameters[t]:this.fFormula?.fClingParameters?this.fFormula.fClingParameters[t]:this.fParams?this.fParams[t]:void 0},i.GetParError=function(t){return this.fParErrors?this.fParErrors[t]:void 0},i.GetNumPars=function(){return this.fNpar}),0!==t.indexOf(rt)&&t!==at||t===ct||t===dt||(i.IsInside=function(t,e){const i=this.fX,n=this.fY;let r=0,s=this.fNpoints-1,a=!1;for(;r<this.fNpoints;++r)(n[r]<e&&n[s]>=e||n[s]<e&&n[r]>=e)&&i[r]+(e-n[r])/(n[s]-n[r])*(i[s]-i[r])<t&&(a=!a),s=r;return a}),0!==t.indexOf(Gt)&&0!==t.indexOf(Yt)&&0!==t.indexOf(Jt)||(i.getBinError=function(t){return t>=this.fNcells&&(t=this.fNcells-1),t<0&&(t=0),t<this.fSumw2.length?Math.sqrt(this.fSumw2[t]):Math.sqrt(Math.abs(this.fArray[t]))},i.setBinContent=function(t,e){this.fEntries++,this.fTsumw=0,t>=0&&t<this.fArray.length&&(this.fArray[t]=e)}),0===t.indexOf(Gt)&&(i.getBin=function(t){return t},i.getBinContent=function(t){return this.fArray[t]},i.Fill=function(t,e){const i=this.fXaxis,n=Math.max(0,1+Math.min(i.fNbins,Math.floor((t-i.fXmin)/(i.fXmax-i.fXmin)*i.fNbins)));this.fArray[n]+=e??1,this.fEntries++}),0===t.indexOf(Yt)&&(i.getBin=function(t,e){return t+(this.fXaxis.fNbins+2)*e},i.getBinContent=function(t,e){return this.fArray[this.getBin(t,e)]},i.Fill=function(t,e,i){const n=this.fXaxis,r=this.fYaxis,s=Math.max(0,1+Math.min(n.fNbins,Math.floor((t-n.fXmin)/(n.fXmax-n.fXmin)*n.fNbins))),a=Math.max(0,1+Math.min(r.fNbins,Math.floor((e-r.fXmin)/(r.fXmax-r.fXmin)*r.fNbins)));this.fArray[s+(n.fNbins+2)*a]+=i??1,this.fEntries++}),0===t.indexOf(Jt)&&(i.getBin=function(t,e,i){return t+(this.fXaxis.fNbins+2)*(e+(this.fYaxis.fNbins+2)*i)},i.getBinContent=function(t,e,i){return this.fArray[this.getBin(t,e,i)]},i.Fill=function(t,e,i,n){const r=this.fXaxis,s=this.fYaxis,a=this.fZaxis,o=Math.max(0,1+Math.min(r.fNbins,Math.floor((t-r.fXmin)/(r.fXmax-r.fXmin)*r.fNbins))),l=Math.max(0,1+Math.min(s.fNbins,Math.floor((e-s.fXmin)/(s.fXmax-s.fXmin)*s.fNbins))),h=Math.max(0,1+Math.min(a.fNbins,Math.floor((i-a.fXmin)/(a.fXmax-a.fXmin)*a.fNbins)));this.fArray[o+(r.fNbins+2)*(l+(s.fNbins+2)*h)]+=n??1,this.fEntries++}),t!==zt&&t!==Rt||(i.Divide=function(t,e,i=.01,n=.01,r=0){if(!e){const i=t;if(i<2)return this;(t=e=Math.round(Math.sqrt(i)))*e<i&&(t+=1)}if(t*e<2)return 0;this.fPrimitives.Clear();const s=1/e,a=1/t;let o=0;for(let l=0;l<e;l++){const e=1-l*s-n,h=Math.max(0,e-s+2*n);if(!(h>e))for(let n=0;n<t;n++){const t=n*a+i,s=t+a-2*i;if(t>s)continue;o++;const l=xe(zt);l.fName=l.fTitle=`${this.fName}_${o}`,l.fNumber=o,this._typename!==Rt?(l.fAbsWNDC=(s-t)*this.fAbsWNDC,l.fAbsHNDC=(e-h)*this.fAbsHNDC,l.fAbsXlowNDC=this.fAbsXlowNDC+t*this.fAbsWNDC,l.fAbsYlowNDC=this.fAbsYlowNDC+h*this.fAbsHNDC):(l.fAbsWNDC=s-t,l.fAbsHNDC=e-h,l.fAbsXlowNDC=t,l.fAbsYlowNDC=h),l.fFillColor=r||this.fFillColor,this.fPrimitives.Add(l)}}return t*e},i.GetPad=function(t){return this.fPrimitives.arr.find(e=>e._typename===zt&&e.fNumber===t)}),0===t.indexOf(ne)&&(t===se?(i.getBin=function(t,e,i){return t+(this.fXaxis.fNbins+2)*(e+(this.fYaxis.fNbins+2)*i)},i.getBinContent=function(t,e,i){const n=this.getBin(t,e,i);return n<0||n>=this.fNcells||this.fBinEntries[n]<1e-300?0:this.fArray?this.fArray[n]/this.fBinEntries[n]:0},i.getBinEntries=function(t,e,i){const n=this.getBin(t,e,i);return n<0||n>=this.fNcells?0:this.fBinEntries[n]}):t===re?(i.getBin=function(t,e){return t+(this.fXaxis.fNbins+2)*e},i.getBinContent=function(t,e){const i=this.getBin(t,e);return i<0||i>=this.fNcells||this.fBinEntries[i]<1e-300?0:this.fArray?this.fArray[i]/this.fBinEntries[i]:0},i.getBinEntries=function(t,e){const i=this.getBin(t,e);return i<0||i>=this.fNcells?0:this.fBinEntries[i]}):(i.getBin=function(t){return t},i.getBinContent=function(t){return t<0||t>=this.fNcells||this.fBinEntries[t]<1e-300?0:this.fArray?this.fArray[t]/this.fBinEntries[t]:0},i.getBinEntries=function(t){return t<0||t>=this.fNcells?0:this.fBinEntries[t]}),i.getBinEffectiveEntries=function(t){if(t<0||t>=this.fNcells)return 0;const e=this.fBinEntries[t];if(!this.fBinSumw2||this.fBinSumw2.length!==this.fNcells)return e;const i=this.fBinSumw2[t];return i>0?e*e/i:0},i.getBinError=function(t){if(t<0||t>=this.fNcells)return 0;const e=this.fArray[t],i=this.fBinEntries[t],n=this.fSumw2[t],r=this.getBinEffectiveEntries(t);if(i<1e-300)return 0;const s=1,a=2,o=3;if(this.fErrorMode===o)return 1/Math.sqrt(i);const l=e/i,h=Math.sqrt(Math.abs(n/i-l**2));return this.fErrorMode===a?h?h/Math.sqrt(r):1/Math.sqrt(12*r):this.fErrorMode===s?h:h/Math.sqrt(r)}),t===qt&&(i.GetBinLowEdge=function(t){return this.fNbins<=0?0:this.fXbins.length?t>0&&t<=this.fNbins+1?this.fXbins[t-1]:0===t?2*this.fXbins[0]-this.fXbins[1]:t===this.fNbins+2?2*this.fXbins[t-2]-this.fXbins[t-3]:0:this.fXmin+(t-1)*(this.fXmax-this.fXmin)/this.fNbins},i.GetBinCenter=function(t){return this.fNbins<=0?0:this.fXbins.length?t>0&&t<=this.fNbins?(this.fXbins[t-1]+this.fXbins[t])/2:0===t?1.5*this.fXbins[0]-.5*this.fXbins[1]:t===this.fNbins+1?1.5*this.fXbins[t-1]-.5*this.fXbins[t-2]:0:this.fXmin+(t-.5)*(this.fXmax-this.fXmin)/this.fNbins}),0===t.indexOf(he+"Math::LorentzVector")&&(i.Px=i.X=function(){return this.fCoordinates.Px()},i.Py=i.Y=function(){return this.fCoordinates.Py()},i.Pz=i.Z=function(){return this.fCoordinates.Pz()},i.E=i.T=function(){return this.fCoordinates.E()},i.M2=function(){return this.fCoordinates.M2()},i.M=function(){return this.fCoordinates.M()},i.R=i.P=function(){return this.fCoordinates.R()},i.P2=function(){return this.P()*this.P()},i.Pt=i.pt=function(){return Math.sqrt(this.P2())},i.Phi=i.phi=function(){return Math.atan2(this.fCoordinates.Py(),this.fCoordinates.Px())},i.Eta=i.eta=function(){return Math.atanh(this.Pz()/this.P())}),0===t.indexOf(he+"Math::PxPyPzE4D")&&(i.Px=i.X=function(){return this.fX},i.Py=i.Y=function(){return this.fY},i.Pz=i.Z=function(){return this.fZ},i.E=i.T=function(){return this.fT},i.P2=function(){return this.fX**2+this.fY**2+this.fZ**2},i.R=i.P=function(){return Math.sqrt(this.P2())},i.Mag2=i.M2=function(){return this.fT**2-this.fX**2-this.fY**2-this.fZ**2},i.Mag=i.M=function(){return this.M2()>=0?Math.sqrt(this.M2()):-Math.sqrt(-this.M2())},i.Perp2=i.Pt2=function(){return this.fX**2+this.fY**2},i.Pt=i.pt=function(){return Math.sqrt(this.P2())},i.Phi=i.phi=function(){return Math.atan2(this.fY,this.fX)},i.Eta=i.eta=function(){return Math.atanh(this.Pz/this.P())}),Me[t]=i),i}function Te(t,e){Me[t]=e}function Ce(t,e){if(h(t)){if(t.$kind===Y||t.$kind===K)return!0;e||(e=t._typename)}return e===Y||e===W||e===Z||e===K||e===J}function Pe(t){return d(t)&&0===t.indexOf(he)?t:U+t}function Ee(t){return d(t)?0===t.indexOf(U)?t.slice(5):0===t.indexOf(he)?t:null:null}t.addMethods=function(t,e){E(t,Se(e||t._typename,t))},S.fXaxis=xe(jt),S.fYaxis=xe(jt),S.fZaxis=xe(jt),a.jsroot={version:r,source_dir:t.source_dir,settings:M,gStyle:S,parse:k,isBatchMode:g};var ke=Object.freeze({__proto__:null,BIT:C,get _ensureJSROOT(){return t._ensureJSROOT},get addMethods(){return t.addMethods},atob_func:y,browser:A,btoa_func:v,clTAnnotation:Ct,clTAttCanvas:Bt,clTAttFill:tt,clTAttLine:Q,clTAttMarker:et,clTAttText:it,clTAxis:qt,clTBox:Nt,clTCanvas:Rt,clTClonesArray:J,clTColor:Pt,clTCutG:at,clTDiamond:_t,clTF1:Qt,clTF12:te,clTF2:ee,clTF3:ie,clTFile:X,clTFrame:It,clTGaxis:Ut,clTGeoNode:oe,clTGeoNodeMatrix:le,clTGeoVolume:ae,clTGraph:rt,clTGraph2DAsymmErrors:lt,clTGraph2DErrors:ot,clTGraphPolar:ht,clTGraphPolargram:ct,clTGraphTime:dt,clTH1:Gt,clTH1D:Vt,clTH1F:Xt,clTH1I:Ht,clTH2:Yt,clTH2D:Kt,clTH2F:Zt,clTH2I:Wt,clTH3:Jt,clTHStack:nt,clTHashList:W,clTImagePalette:bt,clTKey:H,clTLatex:St,clTLegend:yt,clTLegendEntry:vt,clTLine:Et,clTLink:Mt,clTList:Y,clTMap:Z,clTMarker:kt,clTMathText:Tt,clTMultiGraph:st,clTNamed:q,clTObjArray:K,clTObjString:G,clTObject:j,clTPad:zt,clTPaletteAxis:At,clTPave:ft,clTPaveClass:xt,clTPaveLabel:gt,clTPaveStats:pt,clTPaveText:ut,clTPavesText:mt,clTPolyLine:Lt,clTPolyLine3D:Dt,clTPolyMarker3D:Ot,clTProfile:ne,clTProfile2D:re,clTProfile3D:se,clTString:$,clTStyle:$t,clTText:wt,clTTree:V,clone:P,constants:w,create:xe,createHistogram:_e,createHttpRequest:F,createTGraph:Ae,createTHStack:be,createTMultiGraph:we,createTPolyLine:ve,decodeUrl:D,findFunction:O,gStyle:S,getDocument:T,getKindForType:Pe,getMethods:Se,getPromise:p,getTypeForKind:Ee,httpRequest:z,injectCode:R,internals:a,isArrayProto:b,isBatchMode:g,isFunc:c,isNodeJs:_,isObject:h,isPromise:f,isRootCollection:Ce,isStr:d,kInspect:pe,kNoStats:ue,kNoZoom:fe,kTitle:me,loadModules:I,loadScript:B,nsREX:ce,nsROOT:he,nsSVG:de,parse:k,parseMulti:N,postponePromise:u,prROOT:U,registerMethods:Te,setBatchMode:x,setHistogramTitle:ye,settings:M,get source_dir(){return t.source_dir},toJSON:L,urlClassPrefix:ge,version:r,version_date:n,version_id:i});function Ne(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function Le(t,e){var i=Object.create(t.prototype);for(var n in e)i[n]=e[n];return i}function De(){}var Oe=.7,Fe=1/Oe,ze="\\s*([+-]?\\d+)\\s*",Re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Be=/^#([0-9a-f]{3,8})$/,Ue=new RegExp(`^rgb\\(${ze},${ze},${ze}\\)$`),je=new RegExp(`^rgb\\(${Ie},${Ie},${Ie}\\)$`),qe=new RegExp(`^rgba\\(${ze},${ze},${ze},${Re}\\)$`),$e=new RegExp(`^rgba\\(${Ie},${Ie},${Ie},${Re}\\)$`),Ge=new RegExp(`^hsl\\(${Re},${Ie},${Ie}\\)$`),He=new RegExp(`^hsla\\(${Re},${Ie},${Ie},${Re}\\)$`),Xe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ve(){return this.rgb().formatHex()}function Ye(){return this.rgb().formatRgb()}function We(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Be.exec(t))?(i=e[1].length,e=parseInt(e[1],16),6===i?Ze(e):3===i?new ti(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?Ke(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?Ke(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ue.exec(t))?new ti(e[1],e[2],e[3],1):(e=je.exec(t))?new ti(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=qe.exec(t))?Ke(e[1],e[2],e[3],e[4]):(e=$e.exec(t))?Ke(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ge.exec(t))?ai(e[1],e[2]/100,e[3]/100,1):(e=He.exec(t))?ai(e[1],e[2]/100,e[3]/100,e[4]):Xe.hasOwnProperty(t)?Ze(Xe[t]):"transparent"===t?new ti(NaN,NaN,NaN,0):null}function Ze(t){return new ti(t>>16&255,t>>8&255,255&t,1)}function Ke(t,e,i,n){return n<=0&&(t=e=i=NaN),new ti(t,e,i,n)}function Je(t){return t instanceof De||(t=We(t)),t?new ti((t=t.rgb()).r,t.g,t.b,t.opacity):new ti}function Qe(t,e,i,n){return 1===arguments.length?Je(t):new ti(t,e,i,null==n?1:n)}function ti(t,e,i,n){this.r=+t,this.g=+e,this.b=+i,this.opacity=+n}function ei(){return`#${si(this.r)}${si(this.g)}${si(this.b)}`}function ii(){const t=ni(this.opacity);return`${1===t?"rgb(":"rgba("}${ri(this.r)}, ${ri(this.g)}, ${ri(this.b)}${1===t?")":`, ${t})`}`}function ni(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ri(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function si(t){return((t=ri(t))<16?"0":"")+t.toString(16)}function ai(t,e,i,n){return n<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new li(t,e,i,n)}function oi(t){if(t instanceof li)return new li(t.h,t.s,t.l,t.opacity);if(t instanceof De||(t=We(t)),!t)return new li;if(t instanceof li)return t;var e=(t=t.rgb()).r/255,i=t.g/255,n=t.b/255,r=Math.min(e,i,n),s=Math.max(e,i,n),a=NaN,o=s-r,l=(s+r)/2;return o?(a=e===s?(i-n)/o+6*(i<n):i===s?(n-e)/o+2:(e-i)/o+4,o/=l<.5?s+r:2-s-r,a*=60):o=l>0&&l<1?0:a,new li(a,o,l,t.opacity)}function li(t,e,i,n){this.h=+t,this.s=+e,this.l=+i,this.opacity=+n}function hi(t){return(t=(t||0)%360)<0?t+360:t}function ci(t){return Math.max(0,Math.min(1,t||0))}function di(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}Ne(De,We,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ve,formatHex:Ve,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return oi(this).formatHsl()},formatRgb:Ye,toString:Ye}),Ne(ti,Qe,Le(De,{brighter(t){return t=null==t?Fe:Math.pow(Fe,t),new ti(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Oe:Math.pow(Oe,t),new ti(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ti(ri(this.r),ri(this.g),ri(this.b),ni(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ei,formatHex:ei,formatHex8:function(){return`#${si(this.r)}${si(this.g)}${si(this.b)}${si(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ii,toString:ii})),Ne(li,function(t,e,i,n){return 1===arguments.length?oi(t):new li(t,e,i,null==n?1:n)},Le(De,{brighter(t){return t=null==t?Fe:Math.pow(Fe,t),new li(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Oe:Math.pow(Oe,t),new li(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*e,r=2*i-n;return new ti(di(t>=240?t-240:t+120,r,n),di(t,r,n),di(t<120?t+240:t-120,r,n),this.opacity)},clamp(){return new li(hi(this.h),ci(this.s),ci(this.l),ni(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ni(this.opacity);return`${1===t?"hsl(":"hsla("}${hi(this.h)}, ${100*ci(this.s)}%, ${100*ci(this.l)}%${1===t?")":`, ${t})`}`}}));const fi=Math.PI/180,ui=180/Math.PI,pi=.96422,mi=.82521,gi=4/29,xi=6/29,_i=3*xi*xi,yi=xi*xi*xi;function vi(t){if(t instanceof Ai)return new Ai(t.l,t.a,t.b,t.opacity);if(t instanceof Ti)return Ci(t);t instanceof ti||(t=Je(t));var e,i,n=Si(t.r),r=Si(t.g),s=Si(t.b),a=bi((.2225045*n+.7168786*r+.0606169*s)/1);return n===r&&r===s?e=i=a:(e=bi((.4360747*n+.3850649*r+.1430804*s)/pi),i=bi((.0139322*n+.0971045*r+.7141733*s)/mi)),new Ai(116*a-16,500*(e-a),200*(a-i),t.opacity)}function Ai(t,e,i,n){this.l=+t,this.a=+e,this.b=+i,this.opacity=+n}function bi(t){return t>yi?Math.pow(t,1/3):t/_i+gi}function wi(t){return t>xi?t*t*t:_i*(t-gi)}function Mi(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Si(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ti(t,e,i,n){this.h=+t,this.c=+e,this.l=+i,this.opacity=+n}function Ci(t){if(isNaN(t.h))return new Ai(t.l,0,0,t.opacity);var e=t.h*fi;return new Ai(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Ne(Ai,function(t,e,i,n){return 1===arguments.length?vi(t):new Ai(t,e,i,null==n?1:n)},Le(De,{brighter(t){return new Ai(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new Ai(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return new ti(Mi(3.1338561*(e=pi*wi(e))-1.6168667*(t=1*wi(t))-.4906146*(i=mi*wi(i))),Mi(-.9787684*e+1.9161415*t+.033454*i),Mi(.0719453*e-.2289914*t+1.4052427*i),this.opacity)}})),Ne(Ti,function(t,e,i,n){return 1===arguments.length?function(t){if(t instanceof Ti)return new Ti(t.h,t.c,t.l,t.opacity);if(t instanceof Ai||(t=vi(t)),0===t.a&&0===t.b)return new Ti(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*ui;return new Ti(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Ti(t,e,i,null==n?1:n)},Le(De,{brighter(t){return new Ti(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new Ti(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return Ci(this).rgb()}}));var Pi=-.14861,Ei=1.78277,ki=-.29227,Ni=-.90649,Li=1.97294,Di=Li*Ni,Oi=Li*Ei,Fi=Ei*ki-Ni*Pi;function zi(t,e,i,n){this.h=+t,this.s=+e,this.l=+i,this.opacity=+n}Ne(zi,function(t,e,i,n){return 1===arguments.length?function(t){if(t instanceof zi)return new zi(t.h,t.s,t.l,t.opacity);t instanceof ti||(t=Je(t));var e=t.r/255,i=t.g/255,n=t.b/255,r=(Fi*n+Di*e-Oi*i)/(Fi+Di-Oi),s=n-r,a=(Li*(i-r)-ki*s)/Ni,o=Math.sqrt(a*a+s*s)/(Li*r*(1-r)),l=o?Math.atan2(a,s)*ui-120:NaN;return new zi(l<0?l+360:l,o,r,t.opacity)}(t):new zi(t,e,i,null==n?1:n)},Le(De,{brighter(t){return t=null==t?Fe:Math.pow(Fe,t),new zi(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Oe:Math.pow(Oe,t),new zi(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*fi,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),r=Math.sin(t);return new ti(255*(e+i*(Pi*n+Ei*r)),255*(e+i*(ki*n+Ni*r)),255*(e+i*(Li*n)),this.opacity)}}));var Ri=Math.abs,Ii=Math.cos,Bi=Math.sin,Ui=Math.PI,ji=Ui/2,qi=2*Ui,$i=Math.max,Gi=1e-12;function Hi(t,e){return Array.from({length:e-t},(e,i)=>t+i)}function Xi(){return function(t){var e=0,i=null,n=null,r=null;function s(s){var a,o=s.length,l=new Array(o),h=Hi(0,o),c=new Array(o*o),d=new Array(o),f=0;s=Float64Array.from({length:o*o},(t,e)=>s[e/o|0][e%o]);for(let e=0;e<o;++e){let i=0;for(let n=0;n<o;++n)i+=s[e*o+n]+t*s[n*o+e];f+=l[e]=i}a=(f=$i(0,qi-e*o)/f)?e:qi/o;{let t=0;i&&h.sort((t,e)=>i(l[t],l[e]));for(const e of h){const i=t;{const r=Hi(0,o).filter(t=>s[e*o+t]||s[t*o+e]);n&&r.sort((t,i)=>n(s[e*o+t],s[e*o+i]));for(const i of r){let n;if(e<i?(n=c[e*o+i]||(c[e*o+i]={source:null,target:null}),n.source={index:e,startAngle:t,endAngle:t+=s[e*o+i]*f,value:s[e*o+i]}):(n=c[i*o+e]||(c[i*o+e]={source:null,target:null}),n.target={index:e,startAngle:t,endAngle:t+=s[e*o+i]*f,value:s[e*o+i]},e===i&&(n.source=n.target)),n.source&&n.target&&n.source.value<n.target.value){const t=n.source;n.source=n.target,n.target=t}}d[e]={index:e,startAngle:i,endAngle:t,value:l[e]}}t+=a}}return(c=Object.values(c)).groups=d,r?c.sort(r):c}return s.padAngle=function(t){return arguments.length?(e=$i(0,t),s):e},s.sortGroups=function(t){return arguments.length?(i=t,s):i},s.sortSubgroups=function(t){return arguments.length?(n=t,s):n},s.sortChords=function(t){return arguments.length?(null==t?r=null:(e=t,r=function(t,i){return e(t.source.value+t.target.value,i.source.value+i.target.value)})._=t,s):r&&r._;var e},s}(!1)}const Vi=Math.PI,Yi=2*Vi,Wi=1e-6,Zi=Yi-Wi;function Ki(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=arguments[e]+t[e]}let Ji=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Ki:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Ki;const i=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*i)/i+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,i,n){this._append`Q${+t},${+e},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,e,i,n,r,s){this._append`C${+t},${+e},${+i},${+n},${this._x1=+r},${this._y1=+s}`}arcTo(t,e,i,n,r){if(t=+t,e=+e,i=+i,n=+n,(r=+r)<0)throw new Error(`negative radius: ${r}`);let s=this._x1,a=this._y1,o=i-t,l=n-e,h=s-t,c=a-e,d=h*h+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(d>Wi)if(Math.abs(c*o-l*h)>Wi&&r){let f=i-s,u=n-a,p=o*o+l*l,m=f*f+u*u,g=Math.sqrt(p),x=Math.sqrt(d),_=r*Math.tan((Vi-Math.acos((p+d-m)/(2*g*x)))/2),y=_/x,v=_/g;Math.abs(y-1)>Wi&&this._append`L${t+y*h},${e+y*c}`,this._append`A${r},${r},0,0,${+(c*f>h*u)},${this._x1=t+v*o},${this._y1=e+v*l}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,i,n,r,s){if(t=+t,e=+e,s=!!s,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(n),o=i*Math.sin(n),l=t+a,h=e+o,c=1^s,d=s?n-r:r-n;null===this._x1?this._append`M${l},${h}`:(Math.abs(this._x1-l)>Wi||Math.abs(this._y1-h)>Wi)&&this._append`L${l},${h}`,i&&(d<0&&(d=d%Yi+Yi),d>Zi?this._append`A${i},${i},0,1,${c},${t-a},${e-o}A${i},${i},0,1,${c},${this._x1=l},${this._y1=h}`:d>Wi&&this._append`A${i},${i},0,${+(d>=Vi)},${c},${this._x1=t+i*Math.cos(r)},${this._y1=e+i*Math.sin(r)}`)}rect(t,e,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}};function Qi(){return new Ji}Qi.prototype=Ji.prototype;var tn=Array.prototype.slice;function en(t){return function(){return t}}function nn(t){return t.source}function rn(t){return t.target}function sn(t){return t.radius}function an(t){return t.startAngle}function on(t){return t.endAngle}function ln(){return 0}function hn(){return function(){var t=nn,e=rn,i=sn,n=sn,r=an,s=on,a=ln,o=null;function l(){var l,h=t.apply(this,arguments),c=e.apply(this,arguments),d=a.apply(this,arguments)/2,f=tn.call(arguments),u=+i.apply(this,(f[0]=h,f)),p=r.apply(this,f)-ji,m=s.apply(this,f)-ji,g=+n.apply(this,(f[0]=c,f)),x=r.apply(this,f)-ji,_=s.apply(this,f)-ji;if(o||(o=l=Qi()),d>Gi&&(Ri(m-p)>2*d+Gi?m>p?(p+=d,m-=d):(p-=d,m+=d):p=m=(p+m)/2,Ri(_-x)>2*d+Gi?_>x?(x+=d,_-=d):(x-=d,_+=d):x=_=(x+_)/2),o.moveTo(u*Ii(p),u*Bi(p)),o.arc(0,0,u,p,m),p===x&&m===_||(o.quadraticCurveTo(0,0,g*Ii(x),g*Bi(x)),o.arc(0,0,g,x,_)),o.quadraticCurveTo(0,0,u*Ii(p),u*Bi(p)),o.closePath(),l)return o=null,l+""||null}return l.radius=function(t){return arguments.length?(i=n="function"==typeof t?t:en(+t),l):i},l.sourceRadius=function(t){return arguments.length?(i="function"==typeof t?t:en(+t),l):i},l.targetRadius=function(t){return arguments.length?(n="function"==typeof t?t:en(+t),l):n},l.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:en(+t),l):r},l.endAngle=function(t){return arguments.length?(s="function"==typeof t?t:en(+t),l):s},l.padAn