PageSourceSearch

https://herpractice.ai/_next/static/chunks/6463.1c0e890937aa7c1c.js

js herpractice.ai collected 2026-10-05 14:33:43 UTC 7,106 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6463],{39804:function(t,e,a){function n(t,e){var a,n,r;t.accDescr&&(null===(a=e.setAccDescription)||void 0===a||a.call(e,t.accDescr)),t.accTitle&&(null===(n=e.setAccTitle)||void 0===n||n.call(e,t.accTitle)),t.title&&(null===(r=e.setDiagramTitle)||void 0===r||r.call(e,t.title))}a.d(e,{A:function(){return n}}),(0,a(52016).eW)(n,"populateCommonDb")},66463:function(t,e,a){a.d(e,{diagram:function(){return D}});var n=a(39804),r=a(80424),i=a(41716),c=a(52016),o=a(75693),l={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},s={axes:[],curves:[],options:l},d=structuredClone(s),u=c.vZ.radar,g=(0,c.eW)(()=>(0,r.Rb)({...u,...(0,c.iE)().radar}),"getConfig"),h=(0,c.eW)(()=>d.axes,"getAxes"),p=(0,c.eW)(()=>d.curves,"getCurves"),x=(0,c.eW)(()=>d.options,"getOptions"),v=(0,c.eW)(t=>{d.axes=t.map(t=>{var e;return{name:t.name,label:null!==(e=t.label)&&void 0!==e?e:t.name}})},"setAxes"),m=(0,c.eW)(t=>{d.curves=t.map(t=>{var e;return{name:t.name,label:null!==(e=t.label)&&void 0!==e?e:t.name,entries:f(t.entries)}})},"setCurves"),f=(0,c.eW)(t=>{if(null==t[0].axis)return t.map(t=>t.value);let e=h();if(0===e.length)throw Error("Axes must be populated before curves for reference entries");return e.map(e=>{let a=t.find(t=>{var a;return(null===(a=t.axis)||void 0===a?void 0:a.$refText)===e.name});if(void 0===a)throw Error("Missing entry for axis "+e.label);return a.value})},"computeCurveEntries"),y={getAxes:h,getCurves:p,getOptions:x,setAxes:v,setCurves:m,setOptions:(0,c.eW)(t=>{var e,a,n,r,i,c,o,s,u,g;let h=t.reduce((t,e)=>(t[e.name]=e,t),{});d.options={showLegend:null!==(c=null===(e=h.showLegend)||void 0===e?void 0:e.value)&&void 0!==c?c:l.showLegend,ticks:null!==(o=null===(a=h.ticks)||void 0===a?void 0:a.value)&&void 0!==o?o:l.ticks,max:null!==(s=null===(n=h.max)||void 0===n?void 0:n.value)&&void 0!==s?s:l.max,min:null!==(u=null===(r=h.min)||void 0===r?void 0:r.value)&&void 0!==u?u:l.min,graticule:null!==(g=null===(i=h.graticule)||void 0===i?void 0:i.value)&&void 0!==g?g:l.graticule}},"setOptions"),getConfig:g,clear:(0,c.eW)(()=>{(0,c.ZH)(),d=structuredClone(s)},"clear"),setAccTitle:c.GN,getAccTitle:c.eu,setDiagramTitle:c.g2,getDiagramTitle:c.Kr,getAccDescription:c.Mx,setAccDescription:c.U$},b=(0,c.eW)(t=>{(0,n.A)(t,y);let{axes:e,curves:a,options:r}=t;y.setAxes(e),y.setCurves(a),y.setOptions(r)},"populate"),w={parse:(0,c.eW)(async t=>{let e=await (0,o.Qc)("radar",t);c.cM.debug(e),b(e)},"parse")},C=(0,c.eW)((t,e,a,n)=>{var r;let c=n.db,o=c.getAxes(),l=c.getCurves(),s=c.getOptions(),d=c.getConfig(),u=c.getDiagramTitle(),g=M((0,i.P)(e),d),h=null!==(r=s.max)&&void 0!==r?r:Math.max(...l.map(t=>Math.max(...t.entries))),p=s.min,x=Math.min(d.width,d.height)/2;W(g,o,x,s.ticks,s.graticule),L(g,o,x,d),T(g,o,l,p,h,s.graticule,d),O(g,l,s.showLegend,d),g.append("text").attr("class","radarTitle").text(u).attr("x",0).attr("y",-d.height/2-d.marginTop)},"draw"),M=(0,c.eW)((t,e)=>{let a=e.width+e.marginLeft+e.marginRight,n=e.height+e.marginTop+e.marginBottom,r=e.marginLeft+e.width/2,i=e.marginTop+e.height/2;return t.attr("viewbox","0 0 ".concat(a," ").concat(n)).attr("width",a).attr("height",n),t.append("g").attr("transform","translate(".concat(r,", ").concat(i,")"))},"drawFrame"),W=(0,c.eW)((t,e,a,n,r)=>{if("circle"===r)for(let e=0;e<n;e++){let r=a*(e+1)/n;t.append("circle").attr("r",r).attr("class","radarGraticule")}else if("polygon"===r){let r=e.length;for(let i=0;i<n;i++){let c=a*(i+1)/n,o=e.map((t,e)=>{let a=2*e*Math.PI/r-Math.PI/2;return"".concat(c*Math.cos(a),",").concat(c*Math.sin(a))}).join(" ");t.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),L=(0,c.eW)((t,e,a,n)=>{let r=e.length;for(let i=0;i<r;i++){let c=e[i].label,o=2*i*Math.PI/r-Math.PI/2;t.append("line").attr("x1",0).attr("y1",0).attr("x2",a*n.axisScaleFactor*Math.cos(o)).attr("y2",a*n.axisScaleFactor*Math.sin(o)).attr("class","radarAxisLine"),t.append("text").text(c).attr("x",a*n.axisLabelFactor*Math.cos(o)).attr("y",a*n.axisLabelFactor*Math.sin(o)).attr("class","radarAxisLabel")}},"drawAxes");function T(t,e,a,n,r,i,c){let o=e.length,l=Math.min(c.width,c.height)/2;a.forEach((e,a)=>{if(e.entries.length!==o)return;let s=e.entries.map((t,e)=>{let a=2*Math.PI*e/o-Math.PI/2,i=A(t,n,r,l);return{x:i*Math.cos(a),y:i*Math.sin(a)}});"circle"===i?t.append("path").attr("d",k(s,c.curveTension)).attr("class","radarCurve-".concat(a)):"polygon"===i&&t.append("pol
1ygon").attr("points",s.map(t=>"".concat(t.x,",").concat(t.y)).join(" ")).attr("class","radarCurve-".concat(a))})}function A(t,e,a,n){return n*(Math.min(Math.max(t,e),a)-e)/(a-e)}function k(t,e){let a=t.length,n="M".concat(t[0].x,",").concat(t[0].y);for(let r=0;r<a;r++){let i=t[(r-1+a)%a],c=t[r],o=t[(r+1)%a],l=t[(r+2)%a],s={x:c.x+(o.x-i.x)*e,y:c.y+(o.y-i.y)*e},d={x:o.x-(l.x-c.x)*e,y:o.y-(l.y-c.y)*e};n+=" C".concat(s.x,",").concat(s.y," ").concat(d.x,",").concat(d.y," ").concat(o.x,",").concat(o.y)}return"".concat(n," Z")}function O(t,e,a,n){if(!a)return;let r=3*(n.width/2+n.marginRight)/4,i=-(3*(n.height/2+n.marginTop))/4;e.forEach((e,a)=>{let n=t.append("g").attr("transform","translate(".concat(r,", ").concat(i+20*a,")"));n.append("rect").attr("width",12).attr("height",12).attr("class","radarLegendBox-".concat(a)),n.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(e.label)})}(0,c.eW)(T,"drawCurves"),(0,c.eW)(A,"relativeRadius"),(0,c.eW)(k,"closedRoundCurve"),(0,c.eW)(O,"drawLegend");var E=(0,c.eW)((t,e)=>{let a="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++){let r=t["cScale".concat(n)];
1a+="\n		.radarCurve-".concat(n," {\n			color: ").concat(r,";\n			fill: ").concat(r,";\n			fill-opacity: ").concat(e.curveOpacity,";\n			stroke: ").concat(r,";\n			stroke-width: ").concat(e.curveStrokeWidth,";\n		}\n		.radarLegendBox-").concat(n," {\n			fill: ").concat(r,";\n			fill-opacity: ").concat(e.curveOpacity,";\n			stroke: ").concat(r,";\n		}\n		")}return a},"genIndexStyles"),S=(0,c.eW)(t=>{let e=(0,c.xN)(),a=(0,c.iE)(),n=(0,r.Rb)(e,a.themeVariables);return{themeVariables:n,radarOptions:(0,r.Rb)(n.radar,t)}},"buildRadarStyleOptions"),D={parser:w,db:y,renderer:{draw:C},styles:(0,c.eW)(function(){let{radar:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{themeVariables:e,radarOptions:a}=S(t);return"\n	.radarTitle {\n		font-size: ".concat(e.fontSize,";\n		color: ").concat(e.titleColor,";\n		dominant-baseline: hanging;\n		text-anchor: middle;\n	}\n	.radarAxisLine {\n		stroke: ").concat(a.axisColor,";\n		stroke-width: ").concat(a.axisStrokeWidth,";\n	}\n	.radarAxisLabel {\n		dominant-baseline: middle;\n		text-anchor: middle;\n		font-size: ").concat(a.axisLabelFontSize,"px;\n		color: ").concat(a.axisColor,";\n	}\n	.radarGraticule {\n		fill: ").concat(a.graticuleColor,";\n		fill-opacity: ").concat(a.graticuleOpacity,";\n		stroke: ").concat(a.graticuleColor,";\n		stroke-width: ").concat(a.graticuleStrokeWidth,";\n	}\n	.radarLegendText {\n		text-anchor: start;\n		font-size: ").concat(a.legendFontSize,"px;\n		dominant-baseline: hanging;\n	}\n	").concat(E(e,a),"\n	")},"styles")}}}]);

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.