PageSourceSearch

https://demo-webapp.trendemon.com/chunk-I5KRNORF.js

js trendemon.com collected 2026-09-25 21:03:10 UTC 7,072 bytes, 46 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e05b1f14-c4a7-5ba3-948d-b6c202d28130")}catch(e){}}();
3import{a as P}from"./chunk-4QJAOIVL.js";import{a as z}from"./chunk-TLX52M7T.js";import"./chunk-BZZE4OCD.js";import{a as D}from"./chunk-U5XLHPB3.js";import"./chunk-FNG2XWV6.js";import"./chunk-HOF77NJ6.js";import"./chunk-JVG3FUZH.js";import"./chunk-OISQRTQF.js";import"./chunk-KEDO2YHZ.js";import"./chunk-V4ZX3JQE.js";import"./chunk-34GC4EKI.js";import"./chunk-PKF2PXN6.js";import"./chunk-ZCWDPTHA.js";import"./chunk-W4LMZAON.js";import"./chunk-AWWMQ55A.js";import"./chunk-OELZQMZ3.js";import"./chunk-2JHVJLXQ.js";import"./chunk-I6NOPF6Q.js";import"./chunk-KDZS726T.js";import{o as y}from"./chunk-5TZIIZRQ.js";import"./chunk-JWYWGG7Y.js";import"./chunk-Q2BQXW7Z.js";import{O as S,T as k,U as O,V as R,W as I,X as _,Y as E,Z as F,i as L,k as T,u as A}from"./chunk-ALWF5ZN4.js";import{b}from"./chunk-VVUXP3HJ.js";import{a as i}from"./chunk-5FXDVLID.js";import{a as C,h as M}from"./chunk-OO2NDPJI.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},w=32,G={axes:[],curves:[],options:x},g=structuredClone(G),K=T.radar,N=i(()=>y(C(C({},K),A().radar)),"getConfig"),B=i(()=>g.axes,"getAxes"),Y=i(()=>g.curves,"getCurves"),Z=i(()=>g.options,"getOptions"),q=i(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),J=i(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Q(t.entries)}))},"setCurves"),Q=i(a=>{if(a[0].axis==null)return a.map(e=>e.value);let t=B();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{let r=a.find(n=>n.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),tt=i(a=>{let t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>w&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${w}). Using ${w} instead.`),g.options.ticks=w)},"setOptions"),et=i(()=>{k(),g=structuredClone(G)},"clear"),$={getAxes:B,getCurves:Y,getOptions:Z,setAxes:q,setCurves:J,setOptions:tt,getConfig:N,clear:et,setAccTitle:O,getAccTitle:R,setDiagramTitle:E,getDiagramTitle:F,getAccDescription:_,setAccDescription:I},at=i(a=>{P(a,$);let{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),rt={parse:i(a=>M(null,null,function*(){let t=yield z("radar",a);b.debug(t),at(t)}),"parse")},nt=i((a,t,e,r)=>{let n=r.db,l=n.getAxes(),c=n.getCurves(),s=n.getOptions(),o=n.getConfig(),d=n.getDiagramTitle(),p=D(t),u=st(p,o),m=s.max??Math.max(...c.map(f=>Math.max(...f.entries))),h=s.min,v=Math.min(o.width,o.height)/2;ot(u,l,v,s.ticks,s.graticule),it(u,l,v,o),W(u,l,c,h,m,s.graticule,o),j(u,c,s.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),st=i((a,t)=>{let e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,n={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return S(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${n.x}, ${n.y})`)},"drawFrame"),ot=i((a,t,e,r,n)=>{if(n==="circle")for(let l=0;l<r;l++){let c=e*(l+1)/r;a.append("circle").attr("r",c).attr("class","radarGraticule")}else if(n==="polygon"){let l=t.length;for(let c=0;c<r;c++){let s=e*(c+1)/r,o=t.map((d,p)=>{let u=2*p*Math.PI/l-Math.PI/2,m=s*Math.cos(u),h=s*Math.sin(u);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),it=i((a,t,e,r)=>{let n=t.length;for(let l=0;l<n;l++){let c=t[l].label,s=2*l*Math.PI/n-Math.PI/2,o=Math.cos(s),d=Math.sin(s);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");let p=o>
vendor: 2,864 bytes, lines 3-46
3.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(c).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function W(a,t,e,r,n,l,c){let s=t.length,o=Math.min(c.width,c.height)/2;e.forEach((d,p)=>{if(d.entries.length!==s)return;let u=d.entries.map((m,h)=>{let v=2*Math.PI*h/s-Math.PI/2,f=V(m,r,n,o),U=f*Math.cos(v),X=f*Math.sin(v);return{x:U,y:X}});l==="circle"?a.append("path").attr("d",H(u,c.curveTension)).attr("class",`radarCurve-${p}`):l==="polygon"&&a.append("polygon").attr("points",u.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}i(W,"drawCurves");function V(a,t,e,r){let n=Math.min(Math.max(a,t),e);return r*(n-t)/(e-t)}i(V,"relativeRadius");function H(a,t){let e=a.length,r=`M${a[0].x},${a[0].y}`;for(let n=0;n<e;n++){let l=a[(n-1+e)%e],c=a[n],s=a[(n+1)%e],o=a[(n+2)%e],d={x:c.x+(s.x-l.x)*t,y:c.y+(s.y-l.y)*t},p={x:s.x-(o.x-c.x)*t,y:s.y-(o.y-c.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${s.x},${s.y}`}return`${r} Z`}i(H,"closedRoundCurve");function j(a,t,e,r){if(!e)return;let n=(r.width/2+r.marginRight)*3/4,l=-(r.height/2+r.marginTop)*3/4,c=20;t.forEach((s,o)=>{let d=a.append("g").attr("transform",`translate(${n}, ${l+o*c})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(s.label)})}i(j,"drawLegend");var lt={draw:nt},ct=i((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){let n=a[`cScale${r}`];e+=`
4		.radarCurve-${r} {
5			color: ${n};
6			fill: ${n};
7			fill-opacity: ${t.curveOpacity};
8			stroke: ${n};
9			stroke-width: ${t.curveStrokeWidth};
10		}
11		.radarLegendBox-${r} {
12			fill: ${n};
13			fill-opacity: ${t.curveOpacity};
14			stroke: ${n};
15		}
16		`}return e},"genIndexStyles"),dt=i(a=>{let t=L(),e=A(),r=y(t,e.themeVariables),n=y(r.radar,a);return{themeVariables:r,radarOptions:n}},"buildRadarStyleOptions"),ut=i(({radar:a}={})=>{let{themeVariables:t,radarOptions:e}=dt(a);return`
17	.radarTitle {
18		font-size: ${t.fontSize};
19		color: ${t.titleColor};
20		dominant-baseline: hanging;
21		text-anchor: middle;
22	}
23	.radarAxisLine {
24		stroke: ${e.axisColor};
25		stroke-width: ${e.axisStrokeWidth};
26	}
27	.radarAxisLabel {
28		font-size: ${e.axisLabelFontSize}px;
29		color: ${e.axisColor};
30	}
31	.radarGraticule {
32		fill: ${e.graticuleColor};
33		fill-opacity: ${e.graticuleOpacity};
34		stroke: ${e.graticuleColor};
35		stroke-width: ${e.graticuleStrokeWidth};
36	}
37	.radarLegendText {
38		text-anchor: start;
39		font-size: ${e.legendFontSize}px;
40		dominant-baseline: hanging;
41	}
42	${ct(t,e)}
43	`},"styles"),ft={parser:rt,db:$,renderer:lt,styles:ut};export{ft as diagram};
44//# sourceMappingURL=chunk-I5KRNORF.js.map
45
46//# debugId=e05b1f14-c4a7-5ba3-948d-b6c202d28130

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.