@graphysdk/react-renderer 1.8.1-beta.1786626875304 → 1.8.1-beta.1786707936521
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editable.cjs +1 -1
- package/dist/editable.d.ts +2 -2
- package/dist/editable.mjs +640 -630
- package/dist/graph-config.cjs +1 -1
- package/dist/graph-config.d.ts +3 -30
- package/dist/graph-config.mjs +21 -47
- package/dist/{history-chords-D_Rvl7hX.js → history-chords-CmDNkDXT.js} +2685 -2732
- package/dist/history-chords-RtuhuAiT.cjs +1 -0
- package/dist/history-chords.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +13 -39
- package/dist/index.mjs +14 -14
- package/dist/typography-Bd5awt67.cjs +2 -0
- package/dist/{font-values-BZDSyJGS.js → typography-CiDZDGza.js} +112 -190
- package/dist/typography.css +1 -0
- package/package.json +2 -2
- package/dist/font-values-B_MGX5Fo.cjs +0 -2
- package/dist/history-chords-Ch2Waaba.cjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require('./history-chords.css');var $o=Object.create,Ve=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,ta=Object.getOwnPropertyNames,ra=Object.getPrototypeOf,na=Object.prototype.hasOwnProperty,oa=(e,t)=>{let r={};for(var n in e)Ve(r,n,{get:e[n],enumerable:!0});return t||Ve(r,Symbol.toStringTag,{value:"Module"}),r},aa=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=ta(t),i=0,s=a.length,l;i<s;i++)l=a[i],!na.call(e,l)&&l!==r&&Ve(e,l,{get:(c=>t[c]).bind(null,l),enumerable:!(n=ea(t,l))||n.enumerable});return e},yt=(e,t,r)=>(r=e!=null?$o(ra(e)):{},aa(t||!e||!e.__esModule?Ve(r,"default",{value:e,enumerable:!0}):r,e));const v=require("./font-values-B_MGX5Fo.cjs");let h=require("@graphysdk/viz-engine"),g=require("react"),o=require("react/jsx-runtime"),Re=require("zustand"),w=require("motion/react"),ia=require("d3-interpolate-path"),D=require("zustand/react/shallow"),Er=require("zustand/vanilla"),St=require("react-dom"),B=require("clsx");B=yt(B,1);let ut=require("lodash-es/merge");ut=yt(ut,1);let sa=require("react-intl"),M=require("@floating-ui/react-dom"),Rr=require("@vanilla-extract/dynamic"),la=require("@tiptap/core"),Lr=require("@tiptap/extension-bold"),ht=require("@tiptap/extension-document"),Tr=require("@tiptap/extension-hard-break"),Br=require("@tiptap/extension-heading"),Mr=require("@tiptap/extension-italic"),Nr=require("@tiptap/extension-link"),Ir=require("@tiptap/extension-text"),Or=require("@tiptap/extension-text-align"),ge=require("@tiptap/extension-text-style"),Dr=require("@tiptap/extension-underline"),We=require("@tiptap/extensions"),ca=require("@tiptap/extension-paragraph"),Pt=require("@tiptap/react"),re=require("@base-ui/react/toolbar"),de=require("@base-ui/react/tooltip"),I=require("@base-ui/react/popover"),Yt=require("react-colorful"),H=require("@base-ui/react/menu"),da=require("@base-ui/react/toggle"),ua=require("color2k");typeof window<"u"&&(window.__GRAPHY_SDK__??={},window.__GRAPHY_SDK__.reactRenderer="1.8.1-beta.1786626875304");var wt=(0,g.createContext)(null),q=()=>{const e=(0,g.useContext)(wt);if(!e)throw new Error("useGraph* hooks must be used inside a <GraphProvider>");return e},C=e=>{const{store:t}=q();return(0,Re.useStore)(t,r=>e(r.compiled))};function T(e){const{colorScheme:t}=q();return(0,g.useMemo)(()=>(0,h.createStyleResolver)({colorScheme:t}).geomReaders(e),[e,t])}var Fr=e=>{const{colorScheme:t}=q(),r=C(n=>n.layers);return(0,g.useMemo)(()=>{const n=r.find(a=>a.id===e);return n===void 0?null:(0,h.createStyleResolver)({colorScheme:t}).geomReaders(n)},[r,e,t])},ha={centerX:0,centerY:0,radius:1},jt=e=>{const t=Math.min(e.width,e.height);return{centerX:(e.width-t)/2+t/2,centerY:(e.height-t)/2+t/2,radius:t/2}},Y=(e,t,r=ha)=>{const n=(0,h.polarToUnit)(e,t);return{x:r.centerX+n.x*r.radius,y:r.centerY-n.y*r.radius}},kt=(e,t)=>({x:(0,h.toViewBoxX)(e),y:(0,h.toViewBoxY)(t)}),J=(e,t)=>{const r=Y(e,t);return{x:(r.x+1)/2,y:(r.y+1)/2}},ga=2,pa=.7,ie=({hit:e,project:t=kt})=>{const r=Fr(e.layerId);if(!e.anchored)return null;const n=r?.get("color",e.observation)??h.DEFAULT_GEOM_COLOR,a=((0,h.getAlpha)(e.observation)??1)*pa,i=(r?.get("size",e.observation)??8)/2,s=r?.get("borderColor",e.observation,"hovered")??h.DEFAULT_HOVER_AFFORDANCE_COLOR,l=t(e.x,e.y);return(0,o.jsx)("circle",{cx:(0,h.toPercent)(l.x),cy:(0,h.toPercent)(l.y),r:i,fill:n,opacity:a,stroke:s,strokeWidth:ga,"data-testid":"companion-point"})},K="_1d8mpa10",te={type:"spring",stiffness:500,damping:60,mass:1},va={duration:0},Ct=e=>e?te:va,gt=(e,t)=>{const r=(0,w.useMotionValue)(e);return(0,g.useEffect)(()=>{const n=(0,ia.interpolatePath)(r.get(),e);(0,w.animate)(0,1,{...t,onUpdate:a=>{const i=n(a);return r.set(i)}})},[t,e,r]),r},Gr=({shouldAnimateTransitions:e,...t})=>e?(0,o.jsx)(ma,{...t}):(0,o.jsx)(fa,{...t}),fa=({fillPath:e,linePath:t,fill:r,fillOpacity:n,stroke:a,strokeWidth:i,strokeOpacity:s,strokeDasharray:l})=>(0,o.jsxs)("g",{children:[(0,o.jsx)("path",{d:e,fill:r,fillOpacity:n,stroke:"none"}),(0,o.jsx)("path",{d:t,fill:"none",stroke:a,strokeWidth:i,strokeOpacity:s,strokeDasharray:l,vectorEffect:"non-scaling-stroke"})]}),ma=({fillPath:e,linePath:t,fill:r,fillOpacity:n,stroke:a,strokeWidth:i,strokeOpacity:s,strokeDasharray:l})=>{const c=gt(e,te),d=gt(t,te);return(0,o.jsxs)("g",{children:[(0,o.jsx)(w.motion.path,{d:c,fill:r,fillOpacity:n,stroke:"none"}),(0,o.jsx)(w.motion.path,{d,fill:"none",stroke:a,strokeWidth:i,strokeOpacity:s,strokeDasharray:l,vectorEffect:"non-scaling-stroke"})]})},Et=(e,t)=>{const r=(t!==void 0?e.delayByKey[t]:void 0)??0;return e.growAxis==="size"?{type:"spring",visualDuration:e.durationSeconds,delay:r}:{duration:e.durationSeconds,ease:e.growAxis==="angle"?"circOut":"backOut",delay:r}},xa=e=>({duration:e.durationSeconds,ease:"easeOut"}),qt=1.1,Kt=1.5,Hr=({intro:e,children:t})=>{const r=(0,g.useId)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("clipPath",{id:r,children:(0,o.jsx)(w.motion.rect,{...ba(e.axis),transition:xa(e)})}),(0,o.jsx)("g",{clipPath:`url(#${r})`,children:t})]})},ba=e=>e==="x"?{x:-.05,y:-.25,height:Kt,initial:{width:0},animate:{width:qt}}:{x:-.25,y:-.05,width:Kt,initial:{height:0},animate:{height:qt}},Aa=(0,g.memo)(function({layer:t,coordSystem:r,shouldAnimateTransitions:n,intro:a}){const i=a?.type==="wipe"?a:null,{lineGenerator:s,areaGenerator:l}=(0,g.useMemo)(()=>(0,h.createAreaPathGenerators)(r,t.params),[t.params,r]),c=T(t),d=(0,g.useMemo)(()=>{const u=(0,h.createStableKeyGenerator)(t.data,t.mapping,t.id),p=[];return t.data.groupBy(h.GROUP_VARIABLES.group).forEach(f=>{const m=(0,h.prepareAreaObservations)([...f],t.params.missingValues),x=l(m),b=s(m);if(!x||!b)return;const y=m[0];if(!y)return;const S=c.get("color",y),A=c.get("strokeWidth",y),P=(0,h.getDashArray)(c.get("lineType",y));p.push({key:u(y),areaPath:x,linePath:b,color:S,fillOpacity:c.get("alpha",y),strokeWidth:A,strokeOpacity:c.get("strokeAlpha",y),strokeDasharray:P})}),p},[l,s,t.data,t.id,t.mapping,t.params,c]).map(u=>(0,o.jsx)(ya,{areaPath:u.areaPath,linePath:u.linePath,color:u.color,fillOpacity:u.fillOpacity,strokeWidth:u.strokeWidth,strokeOpacity:u.strokeOpacity,strokeDasharray:u.strokeDasharray,shouldAnimateTransitions:n},u.key));return(0,o.jsx)("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%","data-geom":"area",className:K,children:i?(0,o.jsx)(Hr,{intro:i,children:d}):d})}),ya=({areaPath:e,linePath:t,color:r,fillOpacity:n,strokeWidth:a,strokeOpacity:i,strokeDasharray:s,shouldAnimateTransitions:l})=>(0,o.jsx)(Gr,{fillPath:e,linePath:t,fill:r,fillOpacity:n,stroke:r,strokeWidth:a,strokeOpacity:i,strokeDasharray:s,shouldAnimateTransitions:l}),Sa="_324dw20",at=1,Pa=2,wa=1,ja=12/2,ka=2.25,xe=({hit:e,project:t=kt,...r})=>{const n=Fr(e.layerId);if(!e.anchored)return null;const a=n?.get("color",e.observation)??h.DEFAULT_GEOM_COLOR,i=(0,h.getAlpha)(e.observation)??1,s=n?.get("borderColor",e.observation,"hovered")??h.DEFAULT_HOVER_AFFORDANCE_COLOR,l=t(e.x,e.y),c=(0,h.toPercent)(l.x),d=(0,h.toPercent)(l.y),u=Ca(e.observation),p=u+at/2+wa+at/2;return(0,o.jsxs)("g",{...r,className:Sa,children:[(0,o.jsx)("circle",{cx:c,cy:d,r:p,fill:"none",stroke:s,strokeWidth:Pa}),(0,o.jsx)("circle",{cx:c,cy:d,r:u,fill:a,opacity:i,stroke:s,strokeWidth:at})]})},Ca=e=>{const t=(0,h.getSize)(e);return(0,h.isDefined)(t)?t/ka:ja},Ea=({layer:e,coordSystem:t,primary:r,companions:n})=>{const a=T(e),i=(0,h.getGroup)(r.observation),s=(0,g.useMemo)(()=>(0,h.prepareAreaObservations)([...e.data.filter(h.GROUP_VARIABLES.group,"eq",i)],e.params.missingValues),[e.data,e.params.missingValues,i]),{areaPath:l,linePath:c}=(0,g.useMemo)(()=>{const{lineGenerator:m,areaGenerator:x}=(0,h.createAreaPathGenerators)(t,e.params);return{areaPath:x(s)??"",linePath:m(s)??""}},[t,e.params,s]);if(!l||!c)return null;const d=a.get("color",r.observation),u=a.get("alpha",r.observation),p=a.get("strokeWidth",r.observation),f=(0,h.getDashArray)(a.get("lineType",r.observation));return(0,o.jsxs)("g",{"data-testid":"hovered-area",children:[(0,o.jsxs)("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%","data-geom":"area",className:K,children:[(0,o.jsx)("path",{d:l,fill:d,fillOpacity:u,stroke:"none","data-testid":"hovered-area-fill"}),(0,o.jsx)("path",{d:c,fill:"none",stroke:d,strokeWidth:p,strokeOpacity:a.get("strokeAlpha",r.observation),strokeDasharray:f,vectorEffect:"non-scaling-stroke","data-testid":"hovered-area-edge"})]}),n.map(m=>(0,o.jsx)(ie,{hit:m},`companion-${m.layerId}-${m.pointIndex}`)),(0,o.jsx)(xe,{hit:r,"data-testid":"hovered-area-point"})]})},Ra={geom:"area",coord:"cartesian",swatchShape:"area",guideMode:"crosshair",render:({layer:e,coordSystem:t,shouldAnimateTransitions:r,intro:n})=>(0,o.jsx)(Aa,{layer:e,coordSystem:t,shouldAnimateTransitions:r,intro:n}),renderHover:({layer:e,coordSystem:t,primary:r,group:n,related:a})=>(0,o.jsx)(Ea,{layer:e,coordSystem:t,primary:r,companions:[...n,...a]}),renderHoverCompanions:({related:e})=>(0,o.jsx)(o.Fragment,{children:e.map(t=>(0,o.jsx)(ie,{hit:t},`companion-${t.layerId}-${t.pointIndex}`))}),getOverlayAnchor:({observation:e,coordSystem:t})=>{if(t.mainAxis==="x"){const a=(0,h.getX)(e),i=(0,h.getYMax)(e)??(0,h.getY)(e);return a===null||i===null?null:{x:a,y:i}}const r=(0,h.getY)(e),n=(0,h.getXMax)(e)??(0,h.getX)(e);return r===null||n===null?null:{x:n,y:r}}},pt=(e,t,r)=>{const n=r===void 0?e.activeIntro:r,a=(0,g.useRef)(n?Et(n,t):null),i=(0,g.useRef)(e.shouldAnimateTransitions);return i.current=e.shouldAnimateTransitions,(0,g.useCallback)(()=>{const s=a.current;return a.current=null,s??Ct(i.current)},[])},Je=(e,t)=>{const r=(0,g.useRef)(!0);(0,g.useEffect)(()=>{r.current=!1},[]);const n=r.current;return(0,g.useMemo)(()=>({isAnimated:t||e!==null,isLayerEntrance:n,activeIntro:n?e:null,shouldAnimateTransitions:t}),[e,t,n])},be=(e,t)=>({borderColor:e.get("borderColor",t),borderWidth:e.get("borderWidth",t),borderRadius:e.get("borderRadius",t),borderAlpha:e.get("alpha",t)}),Vr=(e,t)=>t.growAxis==="x"?{x:t.baseline,y:e.y,width:0,height:e.height}:{x:e.x,y:t.baseline,width:e.width,height:0},La=(0,g.memo)(function({layer:t,coordSystem:r,shouldAnimateTransitions:n,intro:a}){const i=(0,g.useId)(),s=T(t),l=Je(a?.type==="grow"&&(a.growAxis==="x"||a.growAxis==="y")?a:null,n);return(0,o.jsx)(o.Fragment,{children:(0,g.useMemo)(()=>{const c=(0,h.createStableKeyGenerator)(t.data,t.mapping,t.id),d=new Map;for(const u of t.data){const p=(0,h.getBarRectBounds)(r.mainAxis,u);if(!p)continue;const f=(0,h.buildColumnKey)(r.mainAxis,p),m=d.get(f),x={key:c(u),...p,fill:s.get("color",u),opacity:s.get("alpha",u)};m?m.bars.push(x):d.set(f,{bars:[x],style:be(s,u)})}return[...d.values()].map(({bars:u,style:p},f)=>{const m=(0,h.getBoundingRect)(u),x=p.borderColor===void 0?void 0:(0,h.resolveBarBorderTreatment)(p.borderWidth);return{key:u[0]?.key??String(f),id:`${i}${f}`,bars:u,...m,radii:Na({borderRadius:p.borderRadius,mainAxis:r.mainAxis,bounds:m}),borderColor:p.borderColor,outlineOpacity:p.borderAlpha,clippedStrokeWidth:x?.outlineWidth,separatorStrokeWidth:x?.separatorWidth}})},[i,r.mainAxis,t,s]).map(c=>{if(c.bars.length===1&&c.borderColor===void 0){const[d]=c.bars;if(!d)return null;const{key:u,...p}=d;return(0,o.jsx)(Ue,{...p,...c.radii,animation:l,introKey:u},u)}return l.isAnimated?(0,o.jsx)(Ba,{column:c,animation:l},c.key):(0,o.jsx)(Ta,{column:c,animation:l},c.key)})})}),Ta=({column:e,animation:t})=>{const{id:r,bars:n,radii:a,borderColor:i,outlineOpacity:s,clippedStrokeWidth:l,separatorStrokeWidth:c}=e,d=i!==void 0,u=(0,o.jsx)("clipPath",{id:r,children:(0,o.jsx)(Qt,{bounds:e,radii:a})});if(n.length===1){const[p]=n;if(!p)return null;const{key:f,...m}=p;return(0,o.jsxs)(o.Fragment,{children:[u,(0,o.jsx)("g",{clipPath:`url(#${r})`,children:(0,o.jsx)(Ue,{...m,...a,stroke:i,strokeWidth:l,animation:t},f)})]})}return(0,o.jsxs)(o.Fragment,{children:[u,(0,o.jsxs)("g",{clipPath:`url(#${r})`,children:[n.map(p=>{const{key:f,...m}=p;return(0,o.jsx)(Ue,{...m,stroke:i,strokeWidth:c,animation:t},f)}),d&&(0,o.jsx)(Qt,{bounds:e,radii:a,fill:"none",stroke:i,strokeWidth:l,opacity:s})]})]})},Ba=({column:e,animation:t})=>{const{id:r,bars:n,radii:a,borderColor:i,outlineOpacity:s,clippedStrokeWidth:l,separatorStrokeWidth:c}=e,d=i!==void 0,u=Ma(e,t,n[0]?.key),p={style:{transformBox:"view-box",x:u.x,y:u.y,width:u.width,height:u.height},rx:a.rx,ry:a.ry},f=(0,o.jsx)("clipPath",{id:r,children:(0,o.jsx)(w.motion.rect,{...p})});if(n.length===1){const[m]=n;return(0,o.jsxs)(o.Fragment,{children:[f,(0,o.jsx)("g",{clipPath:`url(#${r})`,children:(0,o.jsx)(w.motion.rect,{...p,fill:m?.fill,opacity:m?.opacity,stroke:i,strokeWidth:l})})]})}return(0,o.jsxs)(o.Fragment,{children:[f,(0,o.jsxs)("g",{clipPath:`url(#${r})`,children:[n.map(m=>{const{key:x,...b}=m;return(0,o.jsx)(Ue,{...b,stroke:i,strokeWidth:c,animation:t,introKey:x},x)}),d&&(0,o.jsx)(w.motion.rect,{...p,fill:"none",stroke:i,strokeWidth:l,opacity:s})]})]})},Ue=({animation:e,introKey:t,rx:r,ry:n,stroke:a,strokeWidth:i,...s})=>{const{isAnimated:l,activeIntro:c,shouldAnimateTransitions:d}=e;if(l){const u=c?Vr(s,c):null;return(0,o.jsx)(w.motion.rect,{initial:u?{x:(0,h.toPercent)(u.x),y:(0,h.toPercent)(u.y),width:(0,h.toPercent)(u.width),height:(0,h.toPercent)(u.height),opacity:s.opacity}:!1,style:{transformBox:"view-box"},transition:c?Et(c,t):Ct(d),fill:s.fill,opacity:s.opacity,rx:r,ry:n,stroke:a,strokeWidth:i,animate:{x:(0,h.toPercent)(s.x),y:(0,h.toPercent)(s.y),width:(0,h.toPercent)(s.width),height:(0,h.toPercent)(s.height),opacity:s.opacity}})}return(0,o.jsx)("rect",{style:{transformBox:"view-box"},x:(0,h.toPercent)(s.x),y:(0,h.toPercent)(s.y),width:(0,h.toPercent)(s.width),height:(0,h.toPercent)(s.height),fill:s.fill,opacity:s.opacity,rx:r,ry:n,stroke:a,strokeWidth:i})},Qt=({bounds:e,radii:t,fill:r,stroke:n,strokeWidth:a,opacity:i})=>(0,o.jsx)("rect",{x:(0,h.toPercent)(e.x),y:(0,h.toPercent)(e.y),width:(0,h.toPercent)(e.width),height:(0,h.toPercent)(e.height),rx:t.rx,ry:t.ry,fill:r,stroke:n,strokeWidth:a,opacity:i}),Ma=(e,t,r)=>{const n=t.activeIntro?Vr(e,t.activeIntro):e,a=(0,w.useMotionValue)(n.x),i=(0,w.useMotionValue)(n.y),s=(0,w.useMotionValue)(n.width),l=(0,w.useMotionValue)(n.height),c=pt(t,r);return(0,g.useEffect)(()=>{const d=c(),u=[(0,w.animate)(a,e.x,d),(0,w.animate)(i,e.y,d),(0,w.animate)(s,e.width,d),(0,w.animate)(l,e.height,d)];return()=>{for(const p of u)p.stop()}},[a,i,s,l,e.x,e.y,e.width,e.height,c]),{x:(0,w.useTransform)(a,h.toPercent),y:(0,w.useTransform)(i,h.toPercent),width:(0,w.useTransform)(s,h.toPercent),height:(0,w.useTransform)(l,h.toPercent)}};function Na(e){const t=(0,h.resolveBarCornerRadiiPx)(e);if(e.borderRadius!=="full")return t;const r={};return t.rx!==void 0&&(r.rx=(0,h.toPercent)(t.rx)),t.ry!==void 0&&(r.ry=(0,h.toPercent)(t.ry)),r}var Ia="_1suo8ub0",Wr=(e,t,r)=>{const n=new Map;for(const i of e.data){const s=(0,h.getBarRectBounds)(t,i);if(!s)continue;const l=(0,h.buildColumnKey)(t,s),c=n.get(l);c===void 0?n.set(l,{firstObservation:i,memberBounds:[s]}):c.memberBounds.push(s)}const a=new Map;for(const[i,{firstObservation:s,memberBounds:l}]of n)a.set(i,{style:be(r,s),bounds:(0,h.getBoundingRect)(l)});return a},Ur=(e,t,r,n)=>{const a=(0,h.getBarRectBounds)(t,n);return a?e.get((0,h.buildColumnKey)(t,a))??{style:be(r,n),bounds:a}:null},ze=(e,t)=>({x:e.x*t.width,y:e.y*t.height,width:e.width*t.width,height:e.height*t.height}),Xt=(e,t)=>({x:e.x-t,y:e.y-t,width:Math.max(0,e.width+t*2),height:Math.max(0,e.height+t*2)}),ue=(e,t)=>{const r=Math.max(0,Math.min(t,e.width/2)),n=Math.max(0,Math.min(t,e.height/2)),a=e.x+e.width,i=e.y+e.height;return r<=0||n<=0?`M${e.x},${e.y}H${a}V${i}H${e.x}Z`:[`M${e.x+r},${e.y}`,`H${a-r}`,`A${r},${n} 0 0 1 ${a},${e.y+n}`,`V${i-n}`,`A${r},${n} 0 0 1 ${a-r},${i}`,`H${e.x+r}`,`A${r},${n} 0 0 1 ${e.x},${i-n}`,`V${e.y+n}`,`A${r},${n} 0 0 1 ${e.x+r},${e.y}`,"Z"].join("")},Oa=({observation:e,mainAxis:t,styleReaders:r,column:n,panelRect:a})=>{const i=(0,g.useId)(),s=(0,g.useId)(),l=(0,h.getBarRectBounds)(t,e);if(!l)return null;const c=ze(l,a),d=ze(n.bounds,a),{borderColor:u,borderWidth:p,borderRadius:f,borderAlpha:m}=n.style,x=(0,h.resolveBarBorderRadiusPx)({borderRadius:f,mainAxis:t,bounds:d}),b=ue(c,0),y=ue(d,x),S=r.get("color",e),A=r.get("alpha",e),P=(0,h.resolveBarBorderTreatment)(p);return(0,o.jsxs)("g",{clipPath:`url(#${i})`,children:[(0,o.jsx)("clipPath",{id:i,children:(0,o.jsx)("path",{d:b})}),(0,o.jsx)("clipPath",{id:s,children:(0,o.jsx)("path",{d:y})}),(0,o.jsxs)("g",{clipPath:`url(#${s})`,children:[(0,o.jsx)("path",{d:b,fill:S,opacity:A,"data-testid":"highlight-bar-segment"}),u!==void 0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("path",{d:b,fill:"none",stroke:u,strokeWidth:P.separatorWidth,opacity:A,"data-testid":"highlight-bar-segment-border"}),(0,o.jsx)("path",{d:y,fill:"none",stroke:u,strokeWidth:P.outlineWidth,opacity:m})]})]})]})},Da=({layer:e,sourceLayer:t,coordSystem:r,panelRect:n})=>{const a=T(t),i=(0,g.useMemo)(()=>Wr(t,r.mainAxis,a),[t,r.mainAxis,a]),s=(0,h.createStableKeyGenerator)(e.data,e.mapping,e.id),l=[];for(const c of e.data){const d=Ur(i,r.mainAxis,a,c);d!==null&&l.push((0,o.jsx)(Oa,{observation:c,mainAxis:r.mainAxis,styleReaders:a,column:d,panelRect:n},s(c)))}return l},it=3,Fa=({layer:e,coordSystem:t,primary:r,panelRect:n})=>{const a=T(e),i=(0,g.useId)(),s=(0,g.useId)(),l=(0,g.useId)(),c=(0,g.useMemo)(()=>Wr(e,t.mainAxis,a),[e,t.mainAxis,a]),d=(0,h.getBarRectBounds)(t.mainAxis,r.observation),u=Ur(c,t.mainAxis,a,r.observation);if(!d||u===null)return null;const p=ze(d,n),f=ze(u.bounds,n),{borderColor:m,borderWidth:x,borderRadius:b,borderAlpha:y}=u.style,S=(0,h.resolveBarBorderRadiusPx)({borderRadius:b,mainAxis:t.mainAxis,bounds:f}),A=ue(p,0),P=ue(f,S),k=ue(Xt(p,it),0),E=ue(Xt(f,it),S>0?S+it:0),j=a.get("color",r.observation),R=a.get("alpha",r.observation),L=a.get("borderColor",r.observation,"hovered")??h.DEFAULT_HOVER_AFFORDANCE_COLOR,ae=(0,h.resolveBarBorderTreatment)(x);return(0,o.jsxs)("g",{"data-testid":"hovered-bar",children:[(0,o.jsx)("clipPath",{id:i,children:(0,o.jsx)("path",{d:E})}),(0,o.jsx)("clipPath",{id:s,children:(0,o.jsx)("path",{d:A})}),(0,o.jsx)("clipPath",{id:l,children:(0,o.jsx)("path",{d:P})}),(0,o.jsx)("g",{className:Ia,children:(0,o.jsx)("g",{clipPath:`url(#${i})`,children:(0,o.jsx)("path",{d:k,fill:L,"data-testid":"hovered-bar-border"})})}),(0,o.jsx)("g",{clipPath:`url(#${s})`,children:(0,o.jsxs)("g",{clipPath:`url(#${l})`,children:[(0,o.jsx)("path",{d:A,fill:j,opacity:R,"data-testid":"hovered-bar-fill"}),m!==void 0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("path",{d:A,fill:"none",stroke:m,strokeWidth:ae.separatorWidth,opacity:R,"data-testid":"hovered-bar-inner-border"}),(0,o.jsx)("path",{d:P,fill:"none",stroke:m,strokeWidth:ae.outlineWidth,opacity:y})]})]})})]})},Ga={geom:"bar",coord:"cartesian",swatchShape:"square",guideMode:"band",render:({layer:e,coordSystem:t,shouldAnimateTransitions:r,intro:n})=>(0,o.jsx)(La,{layer:e,coordSystem:t,shouldAnimateTransitions:r,intro:n}),renderHighlight:({layer:e,sourceLayer:t,coordSystem:r,panelRect:n})=>(0,o.jsx)(Da,{layer:e,sourceLayer:t,coordSystem:r,panelRect:n}),renderHover:({layer:e,coordSystem:t,primary:r,panelRect:n})=>(0,o.jsx)(Fa,{layer:e,coordSystem:t,primary:r,panelRect:n}),renderHoverCompanions:()=>null},Ha=(0,g.memo)(function({layer:t,shouldAnimateTransitions:r,intro:n}){const a=n?.type==="wipe"?n:null,i=(0,g.useMemo)(()=>(0,h.createLinePathGenerator)(t.params),[t.params]),s=(0,g.useMemo)(()=>(0,h.createLineFillAreaGenerator)(t.params),[t.params]),l=T(t),c=(0,g.useMemo)(()=>{const d=(0,h.createStableKeyGenerator)(t.data,t.mapping,t.id),u=[];return t.data.groupBy(h.GROUP_VARIABLES.group).forEach(p=>{const f=(0,h.prepareLineObservations)([...p],t.params.missingValues),m=i(f);if(!m)return;const x=f[0];if(!x)return;const b=l.get("fillAlpha",x),y=b===void 0?void 0:s(f)??void 0,S=l.get("color",x),A=l.get("strokeWidth",x),P=(0,h.getDashArray)(l.get("lineType",x));u.push({key:d(x),pathData:m,fillPath:y,fillAlpha:b,color:S,opacity:l.get("alpha",x),strokeWidth:A,strokeDasharray:P})}),u},[i,s,t.data,t.id,t.mapping,t.params,l]).map(d=>(0,o.jsx)(Va,{pathData:d.pathData,fillPath:d.fillPath,fillAlpha:d.fillAlpha,color:d.color,strokeWidth:d.strokeWidth,opacity:d.opacity,strokeDasharray:d.strokeDasharray,shouldAnimateTransitions:r},d.key));return(0,o.jsx)("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%","data-geom":"line",className:K,children:a?(0,o.jsx)(Hr,{intro:a,children:c}):c})}),Va=({pathData:e,fillPath:t,fillAlpha:r,color:n,strokeWidth:a,opacity:i,strokeDasharray:s,shouldAnimateTransitions:l})=>t!==void 0&&r!==void 0?(0,o.jsx)(Wa,{fillPath:t,fillAlpha:r,linePath:e,color:n,strokeWidth:a,opacity:i,strokeDasharray:s,shouldAnimateTransitions:l}):l?(0,o.jsx)(Ua,{pathData:e,color:n,strokeWidth:a,opacity:i,strokeDasharray:s}):(0,o.jsx)("path",{d:e,fill:"none",stroke:n,strokeWidth:a,opacity:i,strokeDasharray:s,vectorEffect:"non-scaling-stroke"}),Wa=({fillPath:e,fillAlpha:t,linePath:r,color:n,strokeWidth:a,opacity:i,strokeDasharray:s,shouldAnimateTransitions:l})=>{const c=`line_fill_gradient_${(0,g.useId)()}`;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("defs",{children:(0,o.jsxs)("linearGradient",{id:c,gradientTransform:"rotate(90 0.5 0.5)",children:[(0,o.jsx)("stop",{offset:"0%",stopColor:n}),(0,o.jsx)("stop",{offset:"70%",stopColor:n,stopOpacity:0}),(0,o.jsx)("stop",{offset:"100%",stopColor:n,stopOpacity:0})]})}),(0,o.jsx)(Gr,{fillPath:e,linePath:r,fill:`url(#${c})`,fillOpacity:t,stroke:n,strokeWidth:a,strokeOpacity:i,strokeDasharray:s,shouldAnimateTransitions:l})]})},Ua=({pathData:e,color:t,strokeWidth:r,opacity:n,strokeDasharray:a})=>{const i=gt(e,te);return(0,o.jsx)(w.motion.path,{d:i,fill:"none",stroke:t,strokeWidth:r,opacity:n,strokeDasharray:a,vectorEffect:"non-scaling-stroke"})},za=({layer:e,primary:t,companions:r})=>{const n=T(e),a=(0,h.getGroup)(t.observation),i=(0,g.useMemo)(()=>(0,h.prepareLineObservations)([...e.data.filter(h.GROUP_VARIABLES.group,"eq",a)],e.params.missingValues),[e.data,e.params.missingValues,a]),s=(0,g.useMemo)(()=>(0,h.createLinePathGenerator)(e.params)(i),[e.params,i]);if(!s)return null;const l=n.get("color",t.observation),c=n.get("alpha",t.observation),d=n.get("strokeWidth",t.observation),u=(0,h.getDashArray)(n.get("lineType",t.observation));return(0,o.jsxs)("g",{"data-testid":"hovered-line",children:[(0,o.jsx)("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%","data-geom":"line",className:K,children:(0,o.jsx)("path",{d:s,fill:"none",stroke:l,strokeWidth:d,opacity:c,strokeDasharray:u,vectorEffect:"non-scaling-stroke","data-testid":"hovered-line-path"})}),r.map(p=>(0,o.jsx)(ie,{hit:p},`companion-${p.layerId}-${p.pointIndex}`)),(0,o.jsx)(xe,{hit:t,"data-testid":"hovered-line-point"})]})},Ya={geom:"line",coord:"cartesian",swatchShape:"line",guideMode:"crosshair",render:({layer:e,shouldAnimateTransitions:t,intro:r})=>(0,o.jsx)(Ha,{layer:e,shouldAnimateTransitions:t,intro:r}),renderHover:({layer:e,primary:t,group:r,related:n})=>(0,o.jsx)(za,{layer:e,primary:t,companions:[...r,...n]}),renderHoverCompanions:({related:e})=>(0,o.jsx)(o.Fragment,{children:e.map(t=>(0,o.jsx)(ie,{hit:t},`companion-${t.layerId}-${t.pointIndex}`))}),getOverlayAnchor:({observation:e})=>{const t=(0,h.getX)(e),r=(0,h.getY)(e);return t===null||r===null?null:{x:t,y:r}}},zr=({observation:e,project:t,styleReaders:r,animation:n,introKey:a})=>{const i=(0,h.getX)(e),s=(0,h.getY)(e);if(i===null||s===null)return null;const l=t(i,s),c=(0,h.toPercent)(l.x),d=(0,h.toPercent)(l.y),u=r.get("size",e)/2,p=r.get("color",e),f=r.get("alpha",e),m=r.get("borderColor",e),x=r.get("borderWidth",e),{isAnimated:b,activeIntro:y,shouldAnimateTransitions:S}=n;return b?(0,o.jsx)(w.motion.circle,{initial:y?{cx:c,cy:d,r:0,opacity:0}:!1,transition:y?Et(y,a):Ct(S),fill:p,stroke:m,strokeWidth:x,animate:{cx:c,cy:d,r:u,opacity:f}}):(0,o.jsx)("circle",{cx:c,cy:d,r:u,fill:p,opacity:f,stroke:m,strokeWidth:x})},qa=(0,g.memo)(function({layer:t,shouldAnimateTransitions:r,intro:n}){const a=T(t),i=Je(n?.type==="grow"&&n.growAxis==="size"?n:null,r);return(0,g.useMemo)(()=>{const s=i.activeIntro?(0,h.createStableKeyGenerator)(t.data,t.mapping,t.id):null,l=[];let c=0;for(const d of t.data)l.push((0,o.jsx)(zr,{observation:d,project:kt,styleReaders:a,animation:i,introKey:s?.(d)},String(c++)));return l},[t.data,t.mapping,t.id,a,i])}),Jt=({primary:e,companions:t})=>{const r=(0,o.jsxs)(o.Fragment,{children:[t.map(n=>(0,o.jsx)(ie,{hit:n},`companion-${n.layerId}-${n.pointIndex}`)),e?(0,o.jsx)(xe,{hit:e}):null]});return e?(0,o.jsx)("g",{"data-testid":"hovered-point",children:r}):r},Ka={geom:"point",coord:"cartesian",swatchShape:"circle",render:({layer:e,shouldAnimateTransitions:t,intro:r})=>(0,o.jsx)(qa,{layer:e,shouldAnimateTransitions:t,intro:r}),renderHover:({primary:e,group:t,related:r})=>(0,o.jsx)(Jt,{primary:e,companions:[...t,...r]}),renderHoverCompanions:({related:e})=>(0,o.jsx)(Jt,{companions:e}),getOverlayAnchor:({observation:e})=>{const t=(0,h.getX)(e),r=(0,h.getY)(e);return t===null||r===null?null:{x:t,y:r}}},Qa={small:1.9,medium:2.3,large:2.6},Xa={small:1,medium:1,large:1.2},Yr=v.FONT_LINE_HEIGHT.sm,W=e=>`${e}px`,Ce={gridLineWidth:"1px",gridLineDash:"2 3",gridLineDotted:"0 3",tooltipBorderRadius:"6px",tooltipBorderWidth:"1px",tooltipPaddingBlock:"8px",tooltipPaddingInline:"10px",tooltipRowGap:"4px",tooltipShadow:"0 4px 12px rgba(0, 0, 0, 0.18)",editorControlHeight:W(32),tickLabelOffset:W(10),legendItemGap:W(8),legendSwatchGap:W(8),legendSwatchWidth:W(10),legendSwatchHeight:W(12),legendPillPaddingInline:W(8),legendPillPaddingBlock:W(2),legendPillBorderWidth:W(1),headlineRowGap:W(2),headlineItemGap:W(24)},N=(e,t)=>`color-mix(in srgb, transparent, ${e} ${t*100}%)`,Ze=(e,t)=>`hsl(from ${e} h s calc(l * ${1-t}))`,Rt=(e,t)=>`hsl(from ${e} h s calc(l * ${1+t}))`,vt=(e,t,r)=>`color-mix(in srgb, ${e}, ${t} ${r*100}%)`,Ja=e=>/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e),Za=e=>e.length===0?!1:typeof CSS<"u"&&typeof CSS.supports=="function"?CSS.supports("color",e):/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e),he={panelOverlay:5,textToolbar:10,textToolbarTooltip:20,textToolbarPopover:30,legendPopover:40,editorOverlay:900,editorOverlayPopover:950,tooltip:1e3},qr={elevationXs:"0 0 2px rgba(15, 15, 24, 0.12), 0 2px 2px rgba(14, 14, 52, 0.08)",elevationSm:"0 0 4px rgba(15, 15, 24, 0.12), 0 4px 4px rgba(14, 14, 52, 0.08)",elevationMd:"0 0 8px rgba(15, 15, 24, 0.12), 0 8px 8px rgba(14, 14, 52, 0.08)",elevationLg:"0 0 16px rgba(15, 15, 24, 0.12), 0 16px 16px rgba(14, 14, 52, 0.08)"},Kr={radiiXs:"4px",radiiSm:"6px",radiiMd:"8px",radiiLg:"12px"},Qr={zIndexToolbar:`${he.textToolbar}`,zIndexToolbarTooltip:`${he.textToolbarTooltip}`,zIndexToolbarPopover:`${he.textToolbarPopover}`,zIndexEditorPopover:`${he.editorOverlayPopover}`},_a=8,ce=e=>`${_a*e}px`,Xr={spaceXxs:ce(.25),spaceXs:ce(.5),spaceSm:ce(.75),spaceMd:ce(1),spaceLg:ce(1.5),spaceXl:ce(2)},$a={transparent:"transparent",white:"#FFFFFF",black:"#000000",grey100:"#FFFFFF",grey95:"#FCFCFC",grey90:"#FAFAFA",grey85:"#F5F5F5",grey80:"#F0F0F0",grey75:"#E8E8E8",grey70:"#E5E5E5",grey60:"#CCCCCC",grey50:"#C4C4C4",grey0:"#1D2129",red60:"#E14B49",red50:"#F93939",amber70:"#FFBA8C",amber50:"#FFC849",amber40:"#FEAE47",amber30:"#E7A816",green60:"#06B299",green50:"#42CD69",blue80:"#2E62FF",blue60:"#3D70FF",purple50:"#7B56EA",purple30:"#E093FE",greyGradient80:"linear-gradient(to top, #F0F0F1, #F9F9FF)"},ei={textPrimary:v.vars.black,textSecondary:N(v.vars.textPrimary,.6),textDisabled:N(v.vars.textPrimary,.5),iconPrimary:"currentColor",iconSecondary:N(v.vars.textPrimary,.6),iconStickerBackground:v.vars.grey100,brand:v.vars.purple50,success:v.vars.green50,warning:v.vars.amber50,alert:v.vars.red50,border100:v.vars.grey0,border50:N(v.vars.grey0,.5),border10:N(v.vars.grey0,.1),sunkenBackground:v.vars.grey90,defaultBackground:v.vars.grey100,raisedBackground:v.vars.grey85,overlayBackground:v.vars.grey100,overlayBorderGradient:v.vars.border10},ti={graphBackground:v.vars.grey100,gridLineColor:v.vars.border10,axisTickColor:v.vars.border10,originLineColor:v.vars.grey0,legendBackground:v.vars.defaultBackground,legendBorderColor:v.vars.border10,legendFocusOutlineColor:v.vars.border50,legendTextColor:v.vars.textPrimary,dimmedSeriesLabelTextColor:v.vars.textDisabled,dimmedSeriesLabelLineColor:v.vars.grey60,trendNegativeColor:v.vars.red60,trendPositiveColor:v.vars.green60,trendNeutralColor:v.vars.textSecondary,toolbarBackgroundColor:v.vars.overlayBackground,toolbarButtonBackgroundColor:"transparent",toolbarButtonBackgroundColorHovered:v.vars.grey80,toolbarButtonBackgroundColorSelected:v.vars.grey60,toolbarSeparatorColor:v.vars.grey60,tooltipBackground:v.vars.white,tooltipBorderColor:v.vars.border10,tooltipHeadingTextColor:v.vars.textPrimary,tooltipLabelTextColor:v.vars.textSecondary,tooltipValueTextColor:v.vars.textPrimary,tooltipPrimaryRowColor:v.vars.grey80,hoverGuideLineColor:N(v.vars.black,.2),hoverGuideFillColor:N(v.vars.black,.04),heatmapEmptyTileBackground:v.vars.grey80,dataLabelOutsideBackground:N(v.vars.textPrimary,.1),dataLabelTextColor:v.vars.textPrimary,dataLabelInsideTextColor:v.vars.white,stackTotalTextColor:v.vars.textPrimary,stackTotalBackground:v.vars.grey100,stackTotalStroke:v.vars.grey60,defaultAnnotationArrowStroke:v.vars.black,defaultAnnotationShapeStroke:v.vars.black,defaultAnnotationShapeFill:v.vars.canvasBlue,arrowAnnotationStickerOutlineColor:"#1D2129",arrowAnnotationStickerOutlineColorInverse:"#FFFFFF",annotationFrameBorderColor:v.vars.blue60,editMenuTriggerIconColor:"#3d414c"},ri={canvasDefault:"#000000",canvasBlue:"#3b82f6",canvasCyan:"#06b6d4",canvasGreen:"#10b981",canvasYellow:"#E5B400",canvasOrange:"#f97316",canvasRed:"#ef4444",canvasPink:"#E845BF",canvasPurple:"#8b5cf6",canvasGray:"#78716c",canvasInverse:"#ffffff"},Jr={...$a,...ei,...qr,...Kr,...Xr,...Qr,...ti,...ri,...Ce,...v.baseTypographyTokens,...v.semanticTypographyTokens,...v.elementTypographyTokens},_e=(e,t)=>e*10*t,z=(e,t)=>({family:e.family,size:e.size.unit==="em"?_e(e.size.value,t):e.size.value,weight:e.weight,style:e.style}),ni=(e,t={})=>{const r=st(e.fontFamilyDefault)??st(v.DEFAULT_FONT_FAMILY)??"",n=a=>{const i=t[a]??{},s=v.MEASURED_ELEMENT_FONT_DEFINITIONS[a],l=Zr(s,e);l===null&&ai(a);const c=l??oi(s);return{family:st(i.family)??r,style:i.style??"normal",weight:i.weight??c.weight,size:i.size??c.size,lineHeight:i.lineHeight??c.lineHeight}};return{dataLabel:n("fontDataLabel"),stackTotal:n("fontStackTotal"),categoryLabel:n("fontCategoryLabel"),tickLabel:n("fontTickLabel"),axisLabel:n("fontAxisLabel"),legendLabel:n("fontLegendLabel"),goalLineLabel:n("fontGoalLineLabel"),familyDefault:r}},Zr=(e,t)=>{const r=v.parseFontWeight(t[e.weight]),n=v.parseFontLength(t[e.size]),a=v.parseUnitlessLineHeight(t[e.lineHeight]);return r===null||n===null||a===null?null:{weight:r,size:n,lineHeight:a}},oi=e=>{const t=Zr(e,Jr);if(t===null)throw new Error("[react-renderer] Base typography leaf tokens failed to parse.");return t},st=e=>e===void 0||e.includes("var(")?null:e.replace(/\s+/g," ").trim(),ai=e=>{process.env.NODE_ENV!=="production"&&console.warn(`[react-renderer] The leaf tokens composing "${e}" could not be resolved to a measurable font. Measurement falls back to the token's default; paint may disagree. Leaf overrides must be concrete values (px/em sizes, numeric weights, unitless line-heights).`)},ii={transparent:"transparent",white:"#FFFFFF",black:"#000000",grey100:"#000000",grey95:"#0D0D0D",grey90:"#1A1A1A",grey85:"#1F1F1F",grey80:"#2A2A2A",grey75:"#2e2e2e",grey70:"#353535",grey60:"#494949",grey50:"#6F6F6F",grey0:"#FFFFFF",red60:"#CB3333",red50:"#F93939",amber70:"#F48135",amber50:"#FEAE47",amber40:"#FFC849",amber30:"#ffd061",green60:"#0AC600",green50:"#42CD69",blue80:"#2E62FF",blue60:"#3D70FF",purple50:"#7B56EA",purple30:"#E093FE",greyGradient80:"linear-gradient(to top, #222429, #31353f)"},si={textPrimary:v.vars.grey0,textSecondary:N(v.vars.textPrimary,.8),textDisabled:N(v.vars.textPrimary,.5),iconPrimary:"currentColor",iconSecondary:N(v.vars.textPrimary,.6),iconStickerBackground:v.vars.grey70,border100:v.vars.grey0,border50:N(v.vars.grey0,.5),border10:N(v.vars.grey0,.1),brand:v.vars.purple50,success:v.vars.green50,warning:v.vars.amber50,alert:v.vars.red50,sunkenBackground:v.vars.grey100,defaultBackground:v.vars.grey90,raisedBackground:v.vars.grey80,overlayBackground:v.vars.grey90,overlayBorderGradient:v.vars.greyGradient80},li={graphBackground:v.vars.grey90,gridLineColor:v.vars.border10,axisTickColor:v.vars.border10,originLineColor:v.vars.grey0,legendBackground:v.vars.defaultBackground,legendBorderColor:v.vars.border10,legendFocusOutlineColor:v.vars.border50,legendTextColor:v.vars.textPrimary,dimmedSeriesLabelTextColor:v.vars.textDisabled,dimmedSeriesLabelLineColor:v.vars.grey60,trendNegativeColor:v.vars.red60,trendPositiveColor:v.vars.green60,trendNeutralColor:v.vars.textSecondary,toolbarBackgroundColor:v.vars.overlayBackground,toolbarButtonBackgroundColor:"transparent",toolbarButtonBackgroundColorHovered:v.vars.grey80,toolbarButtonBackgroundColorSelected:v.vars.grey60,toolbarSeparatorColor:v.vars.grey60,tooltipBackground:v.vars.grey70,tooltipBorderColor:v.vars.grey60,tooltipHeadingTextColor:v.vars.textPrimary,tooltipLabelTextColor:v.vars.textSecondary,tooltipValueTextColor:v.vars.textPrimary,tooltipPrimaryRowColor:v.vars.grey60,hoverGuideLineColor:N(v.vars.white,.2),hoverGuideFillColor:N(v.vars.white,.06),heatmapEmptyTileBackground:v.vars.grey80,dataLabelOutsideBackground:N(v.vars.textPrimary,.1),dataLabelTextColor:v.vars.textPrimary,dataLabelInsideTextColor:v.vars.white,stackTotalTextColor:v.vars.textPrimary,stackTotalBackground:v.vars.grey100,stackTotalStroke:v.vars.grey60,defaultAnnotationArrowStroke:v.vars.white,defaultAnnotationShapeStroke:v.vars.white,defaultAnnotationShapeFill:v.vars.canvasBlue,arrowAnnotationStickerOutlineColor:"#FFFFFF",arrowAnnotationStickerOutlineColorInverse:"#1D2129",annotationFrameBorderColor:v.vars.blue60,editMenuTriggerIconColor:v.vars.white},ci={canvasDefault:"#FFFFFF",canvasBlue:"#60a5fa",canvasCyan:"#22d3ee",canvasGreen:"#34d399",canvasYellow:"#FFC800",canvasOrange:"#fb923c",canvasRed:"#f87171",canvasPink:"#F979D9",canvasPurple:"#a78bfa",canvasGray:"#a8a29e",canvasInverse:"#000000"},di={...ii,...si,...qr,...Kr,...Xr,...Qr,...li,...ci,...Ce,...v.baseTypographyTokens,...v.semanticTypographyTokens,...v.elementTypographyTokens},_r=(e,t={})=>{const r={},n={};for(const[a,i]of Object.entries(t))if(i!=null)if(v.isMeasuredFontTokenKey(a)){const s=i;n[a]=s,r[a]=v.buildFontShorthand(a,s)}else r[a]=i;return{values:{...e==="dark"?di:Jr,...r},fontOverrides:n}},$r=(e,t={})=>_r(e,t).values,en=(e,t={})=>{const{values:r,fontOverrides:n}=_r(e,t),a=U(r.legendPillPaddingInline,8),i=U(r.legendPillPaddingBlock,2),s=U(r.legendPillBorderWidth,1);return{tickLabelOffset:U(r.tickLabelOffset,10),legendSwatchWidth:U(r.legendSwatchWidth,10),legendSwatchHeight:U(r.legendSwatchHeight,12),legendSwatchGap:U(r.legendSwatchGap,8),legendItemGap:U(r.legendItemGap,8),legendPillPaddingInline:a,legendPillPaddingBlock:i,legendPillBorderWidth:s,legendPillHorizontalChrome:2*(a+s),legendPillVerticalChrome:2*(i+s),headlineRowGap:U(r.headlineRowGap,2),headlineItemGap:U(r.headlineItemGap,24),gridDashRatios:{dashed:Zt(r.gridLineDash,Ce.gridLineDash),dotted:Zt(r.gridLineDotted,Ce.gridLineDotted)},fonts:ni(r,n)}},ui=Object.freeze(en("light"));function U(e,t){const r=e.trim();if(!/^-?\d*\.?\d+(px)?$/.test(r))return t;const n=Number.parseFloat(r);return Number.isFinite(n)?n:t}function Zt(e,t){const r=_t(e);return r.length>0?r:_t(t)}function _t(e){const t=e.trim().split(/[\s,]+/);return t.some(r=>!/^\d*\.?\d+$/.test(r))?[]:t.map(r=>Number.parseFloat(r))}var tn=(0,g.createContext)(ui),hi=({metrics:e,children:t})=>(0,o.jsx)(tn.Provider,{value:e,children:t}),Q=()=>(0,g.useContext)(tn),gi=/\p{Emoji_Presentation}|\p{Emoji}\uFE0F/gu,rn="😀",nn=class on{constructor(){this.emojiCorrections=new Map,this.currentFont="";const t=new OffscreenCanvas(1,1).getContext("2d");if(!t)throw new Error("Failed to create OffscreenCanvas 2D context");this.ctx=t}static async create(){return typeof document<"u"&&"fonts"in document&&await document.fonts.ready,new on}measureText(t,r){const n=(0,h.buildFontString)(r);this.setFont(n);const{width:a,fontBoundingBoxAscent:i,fontBoundingBoxDescent:s}=this.ctx.measureText(t);let l=a;const c=pi(t);if(c>0){const d=this.getEmojiCorrection(n);l-=d*c}return{width:l,height:i+s,ascent:i,descent:s}}setFont(t){this.currentFont!==t&&(this.ctx.font=t,this.currentFont=t)}getEmojiCorrection(t){const r=this.emojiCorrections.get(t);if(r!==void 0)return r;this.setFont(t);const n=this.ctx.measureText(rn).width,a=vi(t);let i=0;if(a!==null){const s=n-a;i=s>.5?s:0}return this.emojiCorrections.set(t,i),i}},ee=null,pi=e=>{const t=e.match(gi);return t?t.length:0},vi=e=>{const t=fi();return t?(t.style.font=e,t.getBoundingClientRect().width):null},fi=()=>typeof document>"u"?null:(ee||(ee=document.createElement("span"),ee.style.position="absolute",ee.style.visibility="hidden",ee.style.whiteSpace="nowrap",ee.style.left="-9999px",ee.textContent=rn,document.body.appendChild(ee)),ee),an=(0,g.createContext)(null),sn=({children:e,measurer:t})=>{const[r,n]=(0,g.useState)(null);(0,g.useEffect)(()=>{if(t!==void 0)return;let i=!1;const s=()=>{i||n(mi())};return(async()=>(typeof document<"u"&&"fonts"in document&&await document.fonts.ready,s()))(),typeof document<"u"&&"fonts"in document&&document.fonts.addEventListener("loadingdone",s),()=>{i=!0,typeof document<"u"&&"fonts"in document&&document.fonts.removeEventListener("loadingdone",s)}},[t]);const a=t??r;return a===null?null:(0,o.jsx)(an.Provider,{value:a,children:e})},se=()=>{const e=(0,g.useContext)(an);if(e===null)throw new Error("useTextMeasurer must be used inside a <TextMeasurerProvider>.");return e},mi=()=>{try{return new h.CachedTextMeasurer(new nn)}catch{return new h.CachedTextMeasurer(new h.HeuristicTextMeasurer)}},ln=(0,g.createContext)(null),xi=ln.Provider,bi=null,ne=()=>(0,g.useContext)(ln)??(bi??=An()),Ai="_16vokpr0",yi=(e,t)=>e.mapping.y!==void 0!=(t.mainAxis==="y"),Si=(e,t)=>{const r=(0,h.toPercent)(e?1-t:t);return e?{x1:"0%",y1:r,x2:"100%",y2:r}:{x1:r,y1:"0%",x2:r,y2:"100%"}},Pi=(e,t)=>{const r=(0,h.getRuleDashPattern)(e,t);return r.length===0?{}:{strokeDasharray:r.join(" "),strokeLinecap:"round",...e==="dashed"?{strokeMiterlimit:16}:{}}},wi=(e,t)=>De(e)&&De(t)?`${e}: ${t}`:De(e)?e:De(t)?t:null,De=e=>e!=null&&e.trim()!=="",cn=Object.freeze({}),Lt=(0,g.createContext)(cn),ji=({slots:e,children:t})=>(0,o.jsx)(Lt.Provider,{value:e??cn,children:t});function X(e,t){const r=(0,g.useContext)(Lt)[e];return r===void 0?t:typeof r=="object"&&Ci(r)?r.render:r}function ki(){const e=(0,g.useContext)(Lt);return{measureAxis:e.AxisTicks?.measure,measureAxisLabel:e.AxisLabel?.measure,measureLegend:e.Legend?.measure,measureHeadline:e.Headline?.measure.measureHeadline,measureHeadlineItemWidths:e.Headline?.measure.measureHeadlineItemWidths}}function Ci(e){return"render"in e&&"measure"in e}var Ei="_2qyyu60",$t=2,Ri=12,Li=12,er=1,tr=2,Ti=4,Le=e=>(0,o.jsx)(X("Swatch",dn),{...e}),dn=({shape:e,color:t,lineType:r="solid",width:n=Ri,height:a=Li})=>(0,o.jsx)("svg",{className:Ei,width:n,height:a,viewBox:`0 0 ${n} ${a}`,"aria-hidden":!0,"data-testid":"chart-swatch","data-shape":e,children:Bi({shape:e,color:t,lineType:r,width:n,height:a})}),Bi=({shape:e,color:t,lineType:r,width:n,height:a})=>{const i=Mi(r,n);switch(e){case"square":return(0,o.jsx)("rect",{x:1,y:1,width:n-2,height:a-2,rx:2,fill:t});case"line":return(0,o.jsx)("line",{x1:i.x1,y1:a/2,x2:i.x2,y2:a/2,stroke:t,strokeWidth:$t,strokeLinecap:i.linecap,strokeDasharray:i.dashArray});case"circle":{const s=(Math.min(n,a)-2)/2;return(0,o.jsx)("circle",{cx:n/2,cy:a/2,r:s,fill:t})}case"area":{const s=a/2-1;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("rect",{x:1,y:s,width:n-2,height:a-s-1,fill:t,opacity:.45}),(0,o.jsx)("line",{x1:i.x1,y1:s,x2:i.x2,y2:s,stroke:t,strokeWidth:$t,strokeLinecap:i.linecap,strokeDasharray:i.dashArray})]})}case"slice":return(0,o.jsx)("path",{d:`M 0 ${a} L ${n} ${a} A ${n} ${a} 0 0 0 0 0 Z`,fill:t})}},Mi=(e,t)=>e==="solid"?{x1:0,x2:t,dashArray:void 0,linecap:"round"}:e==="dashed"?{x1:0,x2:t,dashArray:`${(t-er*(tr-1))/tr} ${er}`,linecap:"butt"}:{x1:0,x2:t,dashArray:`1 ${t/(Ti-1)}`,linecap:"round"},Ni=11.7,rr=21.6,Ii="0 0 10 18",Oi="M2.48935 16.9323L9.07098 9.82964C9.51595 9.34944 9.51504 8.60728 9.0689 8.12818L2.48866 1.06172C1.85811 0.384586 0.974477 0 0.049217 0H0V18H0.0443689C0.972463 18 1.85854 17.6131 2.48935 16.9323Z",Di=({labelPosition:e,linePosition:t,color:r,pillWidth:n,pillHeight:a,text:i,shouldAnimateTransitions:s})=>{const l=e==="start",c=l?-13:-(n-13),d=l?c+n-5:c+5-12,u=l?void 0:`rotate(180 ${d+12/2} ${a/2})`,p=l?"0%":"100%",f=(0,h.toPercent)(1-t),m=(0,o.jsxs)("g",{transform:`translate(0, ${-a/2})`,pointerEvents:"none",children:[(0,o.jsx)("rect",{x:c,y:0,width:n,height:a,rx:6,fill:r}),(0,o.jsx)("g",{transform:u,children:(0,o.jsx)("svg",{x:d,y:(a-rr)/2,width:12,height:rr,viewBox:Ii,overflow:"visible",children:(0,o.jsx)("path",{d:Oi,fill:r})})}),(0,o.jsx)("g",{transform:`translate(${c+5}, ${a/2})`,children:i})]});return s?(0,o.jsx)(w.motion.svg,{initial:!1,transition:te,x:p,animate:{y:f},overflow:"visible",children:m}):(0,o.jsx)("svg",{x:p,y:f,overflow:"visible",children:m})},Fi=({labelPosition:e,linePosition:t,color:r,pillWidth:n,pillHeight:a,text:i,shouldAnimateTransitions:s})=>{const l=e==="start",c=l?-13:-(a-13),d=(0,h.toPercent)(t),u=l?"100%":"0%",p=(0,o.jsxs)("g",{transform:`translate(${-n/2}, 0)`,pointerEvents:"none",children:[(0,o.jsx)("rect",{x:0,y:c,width:n,height:a,rx:6,fill:r}),(0,o.jsx)("g",{transform:`translate(5, ${c+a/2})`,children:i})]});return s?(0,o.jsx)(w.motion.svg,{initial:!1,transition:te,y:u,animate:{x:d},overflow:"visible",children:p}):(0,o.jsx)("svg",{x:d,y:u,overflow:"visible",children:p})},Gi=({label:e,textWidth:t,labelPosition:r,isHorizontalLine:n,position:a,color:i,textColor:s,symbolShape:l,symbolColor:c,shouldAnimateTransitions:d})=>{const u=l===null?0:14,p=t+u+10,f=Ni+10,m=(0,o.jsxs)(o.Fragment,{children:[l!==null&&c!==null&&(0,o.jsx)("g",{transform:`translate(0, ${-10/2})`,children:(0,o.jsx)(Le,{shape:l,color:c,surface:"rule-label",width:10,height:10})}),(0,o.jsx)("text",{x:u,textAnchor:"start",dominantBaseline:"central",fill:s,style:{font:v.vars.fontGoalLineLabel},children:e})]});return n?(0,o.jsx)(Di,{labelPosition:r,linePosition:a,color:i,pillWidth:p,pillHeight:f,text:m,shouldAnimateTransitions:d}):(0,o.jsx)(Fi,{labelPosition:r,linePosition:a,color:i,pillWidth:p,pillHeight:f,text:m,shouldAnimateTransitions:d})},Hi=({strokeWidth:e,lineType:t,isHorizontalLine:r,position:n,lineColor:a,shouldAnimateTransitions:i})=>{const s=Si(r,n),l=Pi(t,e);return i?(0,o.jsx)(w.motion.line,{initial:!1,transition:te,animate:{x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2},...l,stroke:a,strokeWidth:e,vectorEffect:"non-scaling-stroke"}):(0,o.jsx)("line",{...s,...l,stroke:a,strokeWidth:e,vectorEffect:"non-scaling-stroke"})},Vi=(0,g.memo)(function({layer:t,coordSystem:r,formattingLocale:n,shouldAnimateTransitions:a}){const i=se(),s=ne(),{guides:l,numberFormat:c,textScale:d,layers:u,colorScale:p}=C((0,D.useShallow)(L=>({guides:L.guides,numberFormat:L.config.numberFormat,textScale:L.config.appearance.textScale,layers:L.spec.layers,colorScale:L.scales.color}))),f=(0,g.useMemo)(()=>(0,h.buildAverageLineSymbols)(u,p).get(t.id)??null,[u,p,t.id]),m=f?s(f.geom,r.type)?.swatchShape??"square":null,x=(0,g.useMemo)(()=>wi(t.params.label,(0,h.formatRuleValue)({guides:l,numberFormat:c,layer:t,locale:n})),[l,c,n,t]),{fonts:b}=Q(),y=(0,g.useMemo)(()=>z(b.goalLineLabel,d),[b.goalLineLabel,d]),S=(0,g.useMemo)(()=>x===null?0:i.measureText(x,y).width,[x,y,i]),A=T(t),P=t.data.getFirst();if(!P)return null;const k=A.get("color",P),E=(0,h.getRuleLabelTextColor)(k),j=yi(t,r),R=j?(0,h.getY)(P):(0,h.getX)(P);return R===null?null:(0,o.jsxs)("g",{"data-geom":"rule",className:Ai,children:[(0,o.jsx)(Hi,{strokeWidth:A.get("strokeWidth",P),lineType:A.get("lineType",P),isHorizontalLine:j,position:R,lineColor:k,shouldAnimateTransitions:a}),x!==null&&(0,o.jsx)(Gi,{label:x,textWidth:S,labelPosition:t.params.labelPosition,isHorizontalLine:j,position:R,color:k,textColor:E,symbolShape:m,symbolColor:f?.color??null,shouldAnimateTransitions:a})]})}),Wi={geom:"rule",coord:"cartesian",render:({layer:e,coordSystem:t,formattingLocale:r,shouldAnimateTransitions:n})=>(0,o.jsx)(Vi,{layer:e,coordSystem:t,formattingLocale:r,shouldAnimateTransitions:n}),renderHover:()=>null,renderHoverCompanions:()=>null},Ye=({primary:e,companions:t})=>{const r=(0,o.jsxs)(o.Fragment,{children:[t.map(n=>(0,o.jsx)(ie,{hit:n,project:J},`companion-${n.layerId}-${n.pointIndex}`)),e?(0,o.jsx)(xe,{hit:e,project:J}):null]});return e?(0,o.jsx)("g",{"data-testid":"hovered-point",children:r}):r},ft=e=>{const[t,...r]=e;if(!t)return"";const n=r.map(a=>`L ${a.x} ${a.y}`).join(" ");return`M ${t.x} ${t.y} ${n} Z`},Ui=(0,g.memo)(function({layer:t}){const r=T(t),n=(0,g.useMemo)(()=>{const a=(0,h.createStableKeyGenerator)(t.data,t.mapping,t.id),i=[];return t.data.groupBy(h.GROUP_VARIABLES.group).forEach(s=>{const l=[...s],c=un(l);if(!c)return;const d=l[0];d&&i.push({key:a(d),fillPath:c.fillPath,outlinePath:c.outlinePath,color:r.get("color",d),fillOpacity:r.get("alpha",d),strokeOpacity:r.get("strokeAlpha",d),strokeWidth:r.get("strokeWidth",d)})}),i},[t.data,t.id,t.mapping,r]);return(0,o.jsx)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"area",className:K,children:n.map(a=>(0,o.jsxs)("g",{children:[(0,o.jsx)("path",{d:a.fillPath,fill:a.color,fillOpacity:a.fillOpacity,fillRule:"evenodd"}),(0,o.jsx)("path",{d:a.outlinePath,fill:"none",stroke:a.color,strokeWidth:a.strokeWidth,opacity:a.strokeOpacity,vectorEffect:"non-scaling-stroke"})]},a.key))})}),un=e=>{const t=[];for(const i of e){const s=(0,h.getX)(i),{innerRadius:l,outerRadius:c}=(0,h.getRadiusExtent)(i);s===null||l===null||c===null||t.push({angle:s,outer:Y(s,c),inner:Y(s,l)})}if(t.length===0)return null;t.sort((i,s)=>i.angle-s.angle);const r=t.map(i=>i.outer),n=t.map(i=>i.inner),a=ft(r);return{fillPath:n.some(i=>i.x!==0||i.y!==0)?`${a} ${ft([...n].reverse())}`:a,outlinePath:a}},zi=({layer:e,primary:t,companions:r})=>{const n=T(e),a=(0,h.getGroup)(t.observation),i=(0,g.useMemo)(()=>un([...e.data.filter(h.GROUP_VARIABLES.group,"eq",a)]),[e.data,a]);if(!i)return null;const s=n.get("color",t.observation),l=n.get("alpha",t.observation),c=n.get("strokeAlpha",t.observation),d=n.get("strokeWidth",t.observation);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"area","data-testid":"hovered-area",className:K,children:[(0,o.jsx)("path",{d:i.fillPath,fill:s,fillOpacity:l,fillRule:"evenodd","data-testid":"hovered-area-fill"}),(0,o.jsx)("path",{d:i.outlinePath,fill:"none",stroke:s,strokeWidth:d,opacity:c,vectorEffect:"non-scaling-stroke","data-testid":"hovered-area-edge"})]}),r.map(u=>(0,o.jsx)(ie,{hit:u,project:J},`companion-${u.layerId}-${u.pointIndex}`)),(0,o.jsx)(xe,{hit:t,project:J,"data-testid":"hovered-area-point"})]})},Yi={geom:"area",coord:"polar",swatchShape:"area",guideMode:"crosshair",render:({layer:e})=>(0,o.jsx)(Ui,{layer:e}),renderHover:({layer:e,primary:t,group:r,related:n})=>(0,o.jsx)(zi,{layer:e,primary:t,companions:[...r,...n]}),renderHoverCompanions:({related:e})=>(0,o.jsx)(Ye,{companions:e}),getOverlayAnchor:({observation:e})=>{const t=(0,h.getX)(e),r=(0,h.getYMax)(e)??(0,h.getY)(e);if(t===null||r===null)return null;const{x:n,y:a}=J(t,r);return{x:n,y:1-a}}},je=(e,t)=>({stroke:e,strokeWidth:t,vectorEffect:"non-scaling-stroke"}),qi=(0,g.memo)(function({layer:t,coordSystem:r,shouldAnimateTransitions:n,intro:a}){const i=(0,g.useId)(),s=Je(a?.type==="grow"&&(a.growAxis==="angle"||a.growAxis==="radius")?a:null,n),l=r.bandAxis!=="x",c=T(t),d=(0,g.useMemo)(()=>{const u=(0,h.createStableKeyGenerator)(t.data,t.mapping,t.id),p=new Map;for(const f of t.data){const m=u(f),{startAngle:x,endAngle:b}=(0,h.getAngleExtent)(f),{innerRadius:y,outerRadius:S}=(0,h.getRadiusExtent)(f);if(x===null||b===null||y===null||S===null)continue;const A={key:m,startAngle:x,endAngle:b,innerRadius:y,outerRadius:S,fill:c.get("color",f),opacity:c.get("alpha",f)},P=(0,h.buildSliceGroupKey)(r.bandAxis,A),k=p.get(P);k?k.items.push(A):p.set(P,{items:[A],style:be(c,f)})}return[...p.values()].map(({items:f,style:m},x)=>({key:f[0]?.key??String(x),items:f,union:(0,h.getUnionExtent)(f),style:m}))},[t.data,t.mapping,t.id,r.bandAxis,c]);return(0,o.jsx)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"bar",className:K,children:d.map((u,p)=>{const{borderColor:f,borderWidth:m,borderRadius:x,borderAlpha:b}=u.style,y=f!==void 0,S=(0,h.resolveBarBorderTreatment)(m),A=f===void 0?{}:je(f,S.separatorWidth),P=f===void 0?void 0:je(f,S.outlineWidth),k=u.items.map(L=>{const{key:ae,...F}=L;return s.isAnimated?(0,o.jsx)(Ki,{...F,animation:s,sweepsInOnLateMount:l,introKey:ae,pathProps:{fill:F.fill,opacity:F.opacity,...A}},ae):(0,o.jsx)("path",{d:(0,h.buildPolarBarArcPath)(F)??void 0,fill:F.fill,opacity:F.opacity,...A},ae)}),E=(0,h.resolvePolarBarCornerRadiusUnit)(x,u.union.outerRadius-u.union.innerRadius);if(!y&&E<=0)return(0,o.jsx)(g.Fragment,{children:k},u.key);const j=`${i}${p}`;if(s.isAnimated)return(0,o.jsx)("g",{clipPath:`url(#${j})`,children:(0,o.jsx)(Qi,{...u.union,cornerRadius:E,animation:s,sweepsInOnLateMount:l,introKey:u.items[0]?.key,clipId:j,outlineProps:P,outlineOpacity:b,children:k})},u.key);const R=(0,h.buildPolarBarArcPath)({...u.union,cornerRadius:E});return(0,o.jsxs)("g",{clipPath:`url(#${j})`,children:[(0,o.jsx)("clipPath",{id:j,children:(0,o.jsx)("path",{d:R})}),k,P!==void 0&&(0,o.jsx)("path",{d:R,fill:"none",opacity:b,...P})]},u.key)})})}),hn=({startAngle:e,endAngle:t,innerRadius:r,outerRadius:n,cornerRadius:a,animation:i,sweepsInOnLateMount:s,introKey:l})=>{const c=i.activeIntro?.growAxis==="angle"?i.activeIntro:null,d=i.activeIntro?.growAxis==="radius"?i.activeIntro:null,u=s&&!i.isLayerEntrance,p=c?.baseline??(u?h.TAU:e),f=c?.baseline??(u?h.TAU:t),m=d?d.baseline:r,x=d?d.baseline:n,b=(0,w.useMotionValue)(p),y=(0,w.useMotionValue)(f),S=(0,w.useMotionValue)(m),A=(0,w.useMotionValue)(x),P=(0,w.useMotionValue)((0,h.buildPolarBarArcPath)({startAngle:p,endAngle:f,innerRadius:m,outerRadius:x,cornerRadius:a})??""),k=pt(i,l,c);(0,g.useEffect)(()=>{const j=k(),R=[(0,w.animate)(b,e,j),(0,w.animate)(y,t,j)];return()=>{for(const L of R)L.stop()}},[b,y,e,t,k]);const E=pt(i,l,d);return(0,g.useEffect)(()=>{const j=E(),R=[(0,w.animate)(S,r,j),(0,w.animate)(A,n,j)];return()=>{for(const L of R)L.stop()}},[S,A,r,n,E]),(0,g.useEffect)(()=>{const j=()=>{P.set((0,h.buildPolarBarArcPath)({startAngle:b.get(),endAngle:y.get(),innerRadius:S.get(),outerRadius:A.get(),cornerRadius:a})??"")};j();const R=[b,y,S,A].map(L=>L.on("change",j));return()=>{for(const L of R)L()}},[b,y,S,A,a,P]),P},Ki=({pathProps:e,...t})=>{const r=hn(t);return(0,o.jsx)(w.motion.path,{d:r,transition:te,...e})},Qi=({clipId:e,outlineProps:t,outlineOpacity:r,children:n,...a})=>{const i=hn(a);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("clipPath",{id:e,children:(0,o.jsx)(w.motion.path,{d:i})}),n,t!==void 0&&(0,o.jsx)(w.motion.path,{d:i,fill:"none",opacity:r,transition:te,...t})]})},Xi=(e,t)=>{const r=e==="solo"||e==="floor",n=e==="solo"||e==="ceiling";return t==="x"?{innerArc:r,outerArc:n,startSpoke:!0,endSpoke:!0}:{innerArc:!0,outerArc:!0,startSpoke:r,endSpoke:n}},gn=(e,t,r)=>{const n=new Map;for(const i of e.data){const s=fn(i);if(s===null)continue;const l=(0,h.buildSliceGroupKey)(t,s),c=n.get(l);c===void 0?n.set(l,{firstObservation:i,innerRadius:s.innerRadius,outerRadius:s.outerRadius}):(c.innerRadius=Math.min(c.innerRadius,s.innerRadius),c.outerRadius=Math.max(c.outerRadius,s.outerRadius))}const a=new Map;for(const[i,{firstObservation:s,innerRadius:l,outerRadius:c}]of n)a.set(i,{style:be(r,s),radialSpan:c-l});return a},pn=(e,t,r,n)=>{const a=fn(n),i=a===null?void 0:e.get((0,h.buildSliceGroupKey)(t,a));return i!==void 0?i:{style:be(r,n),radialSpan:a===null?0:a.outerRadius-a.innerRadius}},vn=({observation:e,bandAxis:t,styleReaders:r,group:n})=>{const a=(0,g.useId)(),i=(0,g.useId)(),{startAngle:s,endAngle:l}=(0,h.getAngleExtent)(e),{innerRadius:c,outerRadius:d}=(0,h.getRadiusExtent)(e);if(s===null||l===null||c===null||d===null)return null;const u={startAngle:s,endAngle:l,innerRadius:c,outerRadius:d},p=(0,h.buildPolarBarArcPath)(u);if(p===void 0)return null;const f=r.get("color",e),m=r.get("alpha",e),{borderColor:x,borderWidth:b,borderRadius:y,borderAlpha:S}=n.style,A=(0,h.resolvePolarBarCornerRadiusUnit)(y,n.radialSpan),P=A>0;if(x===void 0&&!P)return(0,o.jsx)("path",{d:p,fill:f,opacity:m,"data-testid":"arc-segment"});const k=Xi((0,h.getStackRole)(e),t),E=P?(0,h.buildPolarBarArcPath)({...Zi(u,k,A),cornerRadius:A})??p:p,j=x===void 0?null:{color:x,...(0,h.resolveBarBorderTreatment)(b)},R=j===null?"":ar(u,_i(k));return(0,o.jsxs)("g",{clipPath:`url(#${a})`,"data-testid":"arc-segment",children:[(0,o.jsx)("clipPath",{id:a,children:(0,o.jsx)("path",{d:p})}),(0,o.jsx)("path",{d:E,fill:f,opacity:m}),j!==null&&R!==""&&(0,o.jsx)("path",{d:R,fill:"none",opacity:m,...je(j.color,j.separatorWidth)}),j!==null&&(P?(0,o.jsxs)("g",{clipPath:`url(#${i})`,children:[(0,o.jsx)("clipPath",{id:i,children:(0,o.jsx)("path",{d:E})}),(0,o.jsx)("path",{d:E,fill:"none",opacity:S,...je(j.color,j.outlineWidth)})]}):(0,o.jsx)("path",{d:ar(u,k),fill:"none",opacity:S,...je(j.color,j.outlineWidth)}))]})},Ji=({layer:e,sourceLayer:t,coordSystem:r})=>{const n=T(t),a=(0,g.useMemo)(()=>gn(t,r.bandAxis,n),[t,r.bandAxis,n]),i=(0,h.createStableKeyGenerator)(e.data,e.mapping,e.id),s=[];for(const l of e.data)s.push((0,o.jsx)(vn,{observation:l,bandAxis:r.bandAxis,styleReaders:n,group:pn(a,r.bandAxis,n,l)},i(l)));return(0,o.jsx)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"bar",className:K,children:s})},Zi=(e,t,r)=>{let{startAngle:n,endAngle:a,innerRadius:i,outerRadius:s}=e;t.innerArc||(i=Math.max(0,i-r)),t.outerArc||(s=s+r);const l=Math.max(i,r),c=l>0?r/l:0,d=Math.sign(a-n)||1;return t.startSpoke||(n-=c*d),t.endSpoke||(a+=c*d),{startAngle:n,endAngle:a,innerRadius:i,outerRadius:s}},fn=e=>{const{startAngle:t,endAngle:r}=(0,h.getAngleExtent)(e),{innerRadius:n,outerRadius:a}=(0,h.getRadiusExtent)(e);return t===null||r===null||n===null||a===null?null:{startAngle:t,endAngle:r,innerRadius:n,outerRadius:a}},ke=(e,t)=>{const r=Y(t,e);return`${r.x},${r.y}`},nr=(e,t,r)=>{if(e<=0)return"";const n=ke(e,t);if((0,h.isFullTurnSweep)(t,r))return`M${n}A${e},${e} 0 1 1 ${ke(e,t+Math.PI)}A${e},${e} 0 1 1 ${n}`;const a=r-t;return`M${n}A${e},${e} 0 ${Math.abs(a)>Math.PI?1:0} ${a>=0?1:0} ${ke(e,r)}`},or=(e,t,r)=>`M${ke(t,e)}L${ke(r,e)}`,ar=(e,t)=>{const{startAngle:r,endAngle:n,innerRadius:a,outerRadius:i}=e,s=(0,h.isFullTurnSweep)(r,n);return[t.innerArc?nr(a,r,n):"",t.outerArc?nr(i,r,n):"",t.startSpoke&&!s?or(r,a,i):"",t.endSpoke&&!s?or(n,a,i):""].filter(Boolean).join("")},_i=e=>({innerArc:!e.innerArc,outerArc:!e.outerArc,startSpoke:!e.startSpoke,endSpoke:!e.endSpoke}),$i=({layer:e,coordSystem:t,primary:r})=>{const n=T(e),a=pn((0,g.useMemo)(()=>gn(e,t.bandAxis,n),[e,t.bandAxis,n]),t.bandAxis,n,r.observation);return(0,o.jsx)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"arc","data-testid":"hovered-arc",className:K,children:(0,o.jsx)(vn,{observation:r.observation,bandAxis:t.bandAxis,styleReaders:n,group:a})})},es={geom:"bar",coord:"polar",swatchShape:"slice",guideMode:"band",render:({layer:e,coordSystem:t,shouldAnimateTransitions:r,intro:n})=>(0,o.jsx)(qi,{layer:e,coordSystem:t,shouldAnimateTransitions:r,intro:n}),renderHighlight:({layer:e,sourceLayer:t,coordSystem:r})=>(0,o.jsx)(Ji,{layer:e,sourceLayer:t,coordSystem:r}),renderHover:({layer:e,coordSystem:t,primary:r})=>(0,o.jsx)($i,{layer:e,coordSystem:t,primary:r}),renderHoverCompanions:()=>null},ts=(0,g.memo)(function({layer:t}){const r=T(t),n=(0,g.useMemo)(()=>{const a=(0,h.createStableKeyGenerator)(t.data,t.mapping,t.id),i=[];return t.data.groupBy(h.GROUP_VARIABLES.group).forEach(s=>{const l=[...s],c=mn(l);if(!c)return;const d=l[0];d&&i.push({key:a(d),pathData:c,color:r.get("color",d),opacity:r.get("alpha",d),strokeWidth:r.get("strokeWidth",d),strokeDasharray:(0,h.getDashArray)(r.get("lineType",d))})}),i},[t.data,t.id,t.mapping,r]);return(0,o.jsx)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"line",className:K,children:n.map(a=>(0,o.jsx)("path",{d:a.pathData,fill:"none",stroke:a.color,strokeWidth:a.strokeWidth,opacity:a.opacity,strokeDasharray:a.strokeDasharray,vectorEffect:"non-scaling-stroke"},a.key))})}),mn=e=>{const t=[];for(const r of e){const n=(0,h.getX)(r),a=(0,h.getY)(r);n===null||a===null||t.push({angle:n,point:Y(n,a)})}return t.length===0?null:(t.sort((r,n)=>r.angle-n.angle),ft(t.map(r=>r.point)))},rs=({layer:e,primary:t,companions:r})=>{const n=T(e),a=(0,h.getGroup)(t.observation),i=(0,g.useMemo)(()=>mn([...e.data.filter(h.GROUP_VARIABLES.group,"eq",a)]),[e.data,a]);if(!i)return null;const s=n.get("color",t.observation),l=n.get("alpha",t.observation),c=n.get("strokeWidth",t.observation),d=(0,h.getDashArray)(n.get("lineType",t.observation));return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"line","data-testid":"hovered-line",className:K,children:(0,o.jsx)("path",{d:i,fill:"none",stroke:s,strokeWidth:c,opacity:l,strokeDasharray:d,vectorEffect:"non-scaling-stroke","data-testid":"hovered-line-path"})}),r.map(u=>(0,o.jsx)(ie,{hit:u,project:J},`companion-${u.layerId}-${u.pointIndex}`)),(0,o.jsx)(xe,{hit:t,project:J,"data-testid":"hovered-line-point"})]})},ns={geom:"line",coord:"polar",swatchShape:"line",guideMode:"crosshair",render:({layer:e})=>(0,o.jsx)(ts,{layer:e}),renderHover:({layer:e,primary:t,group:r,related:n})=>(0,o.jsx)(rs,{layer:e,primary:t,companions:[...r,...n]}),renderHoverCompanions:({related:e})=>(0,o.jsx)(Ye,{companions:e}),getOverlayAnchor:({observation:e})=>{const t=(0,h.getX)(e),r=(0,h.getY)(e);if(t===null||r===null)return null;const{x:n,y:a}=J(t,r);return{x:n,y:1-a}}},os=(0,g.memo)(function({layer:t,shouldAnimateTransitions:r,intro:n}){const a=T(t),i=Je(n?.type==="grow"&&n.growAxis==="size"?n:null,r);return(0,g.useMemo)(()=>{const s=i.activeIntro?(0,h.createStableKeyGenerator)(t.data,t.mapping,t.id):null,l=[];let c=0;for(const d of t.data)l.push((0,o.jsx)(zr,{observation:d,project:J,styleReaders:a,animation:i,introKey:s?.(d)},String(c++)));return l},[t.data,t.mapping,t.id,a,i])}),as={geom:"point",coord:"polar",swatchShape:"circle",render:({layer:e,shouldAnimateTransitions:t,intro:r})=>(0,o.jsx)(os,{layer:e,shouldAnimateTransitions:t,intro:r}),renderHover:({primary:e,group:t,related:r})=>(0,o.jsx)(Ye,{primary:e,companions:[...t,...r]}),renderHoverCompanions:({related:e})=>(0,o.jsx)(Ye,{companions:e}),getOverlayAnchor:({observation:e})=>{const t=(0,h.getX)(e),r=(0,h.getY)(e);if(t===null||r===null)return null;const{x:n,y:a}=J(t,r);return{x:n,y:1-a}}},xn={bar:{cartesian:Ga,polar:es},line:{cartesian:Ya,polar:ns},area:{cartesian:Ra,polar:Yi},point:{cartesian:Ka,polar:as},rule:{cartesian:Wi}};function $e(e){return typeof e=="function"?{overlay:!1,fn:e}:{overlay:!0,fn:e.fn}}function bn(e){return e?$e(e.render).overlay:!1}function is(e,t){return typeof e=="string"?{...t,geom:e}:{...t,definition:e,geom:e.type}}function An(e=[]){const t={};for(const[r,n]of Object.entries(xn))t[r]={...n};for(const r of e)(t[r.geom]??={})[r.coord]=r;return(r,n)=>t[r]?.[n]??null}var qe=e=>{const t=(0,g.useRef)(e);return t.current=e,t},ss=()=>{const e=new Map;return(0,Er.createStore)(t=>({hover:h.RESTING_HOVER_STATE,tooltipAnchor:null,pointerRegions:[],isPointerSuspended:!1,setHoverState:r=>t(n=>n.hover===r?n:{hover:r}),setTooltipAnchor:r=>t(n=>ls(n.tooltipAnchor,r)?n:{tooltipAnchor:r}),publishPointerRegions:(r,n)=>{n.length===0?e.delete(r):e.set(r,n);const a=(0,h.orderPointerRegions)(e);t(i=>(0,h.arePointerRegionListsEqual)(i.pointerRegions,a)?i:{pointerRegions:a})},setPointerSuspended:r=>t(n=>n.isPointerSuspended===r?n:{isPointerSuspended:r})}))},ls=(e,t)=>e===t?!0:e===null||t===null?!1:e.x===t.x&&e.y===t.y&&e.placement===t.placement&&e.annotationId===t.annotationId,cs=(e,t)=>{const r=(0,g.useMemo)(()=>({layers:e,coordSystem:t}),[e,t]),n=(0,g.useRef)(null);n.current===null&&(n.current=new h.HoverEngine(r));const a=n.current,i=(0,g.useRef)(!1);return(0,g.useEffect)(()=>{if(!i.current){i.current=!0;return}a.update(r)},[a,r]),a},yn=(0,g.createContext)(null),Sn=({children:e})=>{const{layers:t,coordSystem:r}=C((0,D.useShallow)(l=>({layers:l.layers,coordSystem:l.coordSystem}))),n=cs(t,r),[a]=(0,g.useState)(()=>ss()),i=(0,g.useRef)(null),s=(0,g.useRef)(null);return s.current===null&&(s.current={engine:n,store:a,overlayRef:i}),(0,o.jsx)(yn.Provider,{value:s.current,children:e})},le=()=>{const e=(0,g.useContext)(yn);if(e===null)throw new Error("useHoverContext must be used inside a <HoverProvider>.");return e};function Pn(e,t){const{engine:r}=le(),n=(0,g.useRef)(t);(0,g.useEffect)(()=>{n.current=t},[t]),(0,g.useEffect)(()=>(r.registerHitTester(e,a=>n.current(a)),()=>r.unregisterHitTester(e)),[r,e])}var ds=({hitTest:e,input:t})=>{const r=(0,g.useMemo)(()=>e(t),[e,t.layer.data]);return Pn(t.layer.id,r),null},us="graphy_root",Z=()=>typeof document>"u"?null:document.getElementById(us)??document.body,hs="_10igzta0",wn=({rect:e,zIndex:t,container:r,boxRef:n,children:a,...i})=>r===null?null:(0,St.createPortal)((0,o.jsx)("div",{...i,ref:n,className:hs,style:{transform:`translate(${e.left}px, ${e.top}px)`,width:e.width,height:e.height,zIndex:t},children:a}),r),gs=({rect:e,children:t})=>{const[r]=(0,g.useState)(Z);return(0,o.jsx)(wn,{rect:e,zIndex:he.panelOverlay,container:r,children:t})},jn=(e,t)=>{const r=qe(e),n=qe(t),a=(0,g.useRef)(null),i=(0,g.useRef)(null),s=(0,g.useMemo)(()=>{const l=()=>{i.current!==null&&(clearTimeout(i.current),i.current=null),a.current=null},c=()=>{i.current!==null&&(clearTimeout(i.current),i.current=null);const u=a.current;u!==null&&(a.current=null,r.current(...u))};return{run:(...u)=>{if(n.current<=0){r.current(...u);return}a.current=u,i.current!==null&&clearTimeout(i.current),i.current=setTimeout(c,n.current)},flush:c,cancel:l}},[r,n]);return(0,g.useEffect)(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]),s},ps={width:0,height:0,isDefault:!0},kn=({debounce:e=0,onResize:t}={})=>{const[r,n]=(0,g.useState)(ps),a=(0,g.useRef)(null),i=jn(d=>{const u=a.current;u&&u.width===d.width&&u.height===d.height||(a.current={width:d.width,height:d.height},t?.(d),n(d))},e),s=(0,g.useRef)(null),l=(0,g.useRef)(null),c=(0,g.useCallback)(d=>{s.current!==d&&(s.current&&l.current?.unobserve(s.current),s.current=d,d&&(l.current??=new ResizeObserver(([u])=>{if(!u)return;const p=Math.round(u.contentBoxSize[0]?.inlineSize??u.contentRect.width),f=Math.round(u.contentBoxSize[0]?.blockSize??u.contentRect.height);i.run({width:p,height:f,isDefault:!1})}),l.current.observe(d)))},[i]);return{...r,setElement:c}};function Cn(){const[e,t]=(0,g.useState)(null),r=(0,g.useRef)(null),n=(0,g.useRef)(null),a=(0,g.useRef)(null),i=(0,g.useCallback)(()=>{a.current=null;const d=n.current;if(!d)return;const u=d.getBoundingClientRect();if(u.width===0||u.height===0){r.current!==null&&(r.current=null,t(null));return}const p={left:u.left,top:u.top,width:u.width,height:u.height},f=r.current;f&&f.left===p.left&&f.top===p.top&&f.width===p.width&&f.height===p.height||(r.current=p,t(p))},[]),s=(0,g.useCallback)(()=>{a.current===null&&(a.current=requestAnimationFrame(i))},[i]),{setElement:l}=kn({onResize:s}),c=(0,g.useCallback)(d=>{n.current=d,l(d),d&&i()},[l,i]);return(0,g.useEffect)(()=>(window.addEventListener("scroll",s,!0),window.addEventListener("resize",s),()=>{window.removeEventListener("scroll",s,!0),window.removeEventListener("resize",s),a.current!==null&&cancelAnimationFrame(a.current)}),[s]),{measureRef:c,screenRect:e}}function En(e){const{engine:t,store:r}=le();return(0,g.useCallback)((n,a)=>{const{hover:i,setHoverState:s,setTooltipAnchor:l}=r.getState(),c=n===null?h.RESTING_HOVER_STATE:t.resolveHoverByKey(e,n);if(c.primary===null){i.primary?.layerId===e&&(s(h.RESTING_HOVER_STATE),l(null));return}s(c),l(a?{x:a.clientX,y:a.clientY,placement:"top"}:null)},[t,r,e])}var vs=({render:e,input:t})=>{const r=En(t.layer.id),{measureRef:n,screenRect:a}=Cn();return(0,g.useEffect)(()=>()=>r(null),[r]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("rect",{ref:n,x:0,y:0,width:"100%",height:"100%",fill:"none",pointerEvents:"none"}),a&&(0,o.jsx)(gs,{rect:a,children:(0,o.jsx)(fs,{render:e,input:t,pushHover:r,panelRect:a})})]})},fs=({render:e,input:t,pushHover:r,panelRect:n})=>e({...t,overlay:{pushHover:r,panelRect:n}}),Ke={enabled:!0,durationScale:1,stagger:!0,staggerOrder:"main-axis",maxAnimatedGeoms:1500},ms=.3,xs=.3,bs=(e,t)=>t?{intro:{...Ke,enabled:!1},transitions:!1}:typeof e=="boolean"?{intro:{...Ke,enabled:e},transitions:e}:{intro:As(e?.intro),transitions:e?.transitions??!0},As=e=>typeof e=="boolean"?{...Ke,enabled:e}:(0,ut.default)({},Ke,e),ys={save:"حفظ",cancel:"إلغاء",confirm:"تأكيد",delete:"حذف",confirmDelete:e=>`هل أنت متأكد من رغبتك في حذف ${e.item}؟`,abbreviations:{thousands:"ألف",millions:"مليون",billions:"مليار"}},Ss={title:"محرر Graphy",description:"قم بتحرير المحتوى الخاص بك هنا",graphTypes:{column:"أعمدة",columnStacked:"أعمدة مكدسة",columnStackedFill:"أعمدة مكدسة 100%",bar:"شريطي",barStacked:"أشرطة مكدسة",barStackedFill:"أشرطة مكدسة 100%",line:"خطي",areaStacked:"مساحة مكدسة",pie:"دائري",donut:"حلقي",scatter:"نقطي",bubble:"فقاعي",funnel:"قمعي",combo:"مركب",heatmap:"خريطة حرارية",waterfall:"شلالي",mekko:"ميكو",table:"جدول"},sizePanel:{toolbarButton:"الحجم",presetsSection:{title:"إعدادات مسبقة"},customSizeSection:{title:"حجم مخصص"},presets:{googleSlides:"Google Slides / PowerPoint",webEmail:"ويب / بريد إلكتروني",linkedIn:"منشور LinkedIn",instagram:"منشور Instagram",tiktok:"TikTok / قصة Instagram",twitter:"X (Twitter)",mobile:"جوال"},inputs:{unitLabel:"بكسل"},validation:{maxSizeError:e=>`≤ ${e.max} بكسل`,minSizeError:e=>`≥ ${e.min} بكسل`}},graphPanel:{toolbarButton:"الرسم البياني",graphTypeSection:{title:"نوع الرسم البياني"},polarSection:{title:"قطبي",innerRadius:"نصف القطر الداخلي",startAngle:"زاوية البداية"},barSection:{title:"الأعمدة",thickness:"سمك العمود",rounding:"التدوير",roundingOptions:{none:"بلا",xs:"XS",sm:"S",md:"M",lg:"L",xl:"XL",full:"كامل"}},graphOptionsSection:{title:"خيارات الرسم البياني"},gridSection:{title:"الشبكة",horizontalGridLines:"خطوط أفقية",verticalGridLines:"خطوط رأسية",rings:"حلقات",spokes:"أشعة",gridStyle:"نمط الشبكة",gridThickness:"سمك الشبكة",lineStyles:{solid:"متصل",dashed:"متقطع",dotted:"منقط"}},graphOptions:{sortBars:"ترتيب من الأعلى ← الأدنى",showPoints:"إظهار النقاط",lineFill:"تعبئة تحت الخط",smoothLines:"خطوط ناعمة",stackTotals:"مجاميع المكدس",dataLabels:"تسميات البيانات",showPercentages:"إظهار النسب المئوية",categoryLabels:"تسميات الفئات"},legendSection:{title:"وسيلة الإيضاح",auto:"تلقائي",top:"أعلى",bottom:"أسفل",left:"يسار",right:"يمين",none:"بدون",alignLabel:"المحاذاة",align:{auto:"تلقائي",start:"البداية",center:"الوسط",end:"النهاية"},displayLabel:"النمط",display:{auto:"تلقائي",pill:"شارات",direct:"على الرسم"}},numberFormatSection:{title:"تنسيق الأرقام"},numberFormat:{abbreviationLabel:"الاختصار",valueLabel:"القيمة",decimalPlacesLabel:"المنازل العشرية",options:{auto:"تلقائي",custom:"مخصص",none:"بدون"}},headlineNumberSize:{sizeLabel:"الحجم",valueLabel:"القيمة",sizes:{small:"ص",medium:"م",large:"ك"}},lineThickness:{label:"سمك الخط"},pointSize:{label:"حجم النقطة",options:{auto:"تلقائي",custom:"مخصص"}},headlineNumberSection:{title:"الرقم الرئيسي",toggle:"مرئي",metricLabel:"المقياس",compareWithLabel:"مقارنة مع",metrics:{total:"المجموع",average:"المتوسط",current:"الأخير",conversion:"التحويل",left:"يسار"},comparison:{first:"الأول",previous:"السابق"},position:{above:"أعلى",center:"وسط"}},treatEmptyValues:{leaveGap:{label:"ترك فجوة في الرسم البياني",description:"يترك فاصلاً مرئياً في الخط حيث تكون البيانات مفقودة"},fillZero:{label:"ملء بالصفر",description:"يعرض نقاط البيانات المفقودة كصفر"},connectGaps:{label:"الاتصال عبر الفجوات",description:"يربط الخط بين النقاط المتاحة، متخطياً الفجوة"}},comboChartAppearance:{title:"مظهر الرسم البياني المركب",groupedBars:"أشرطة مجمعة",stackedBars:"أشرطة مكدسة",linesOnly:"خطوط فقط"}},columnMapping:{title:"البيانات",xAxis:"المحور السيني",yAxis:"المحور الصادي",leftYAxis:"المحور الصادي (يسار)",rightYAxis:"المحور الصادي (يمين)",slices:"القيم (الشرائح)",labels:"التسميات",size:"الحجم",shape:"الشكل",reset:"إعادة التعيين إلى تلقائي",addSeries:"إضافة سلسلة",removeSeries:"إزالة السلسلة"},axesPanel:{toolbarButton:"المحاور",mainAxisSection:{yAxis:"المحور الصادي",xAxis:"المحور السيني"},crossAxisSection:{xAxis:"المحور السيني",yAxis:"المحور الصادي"},controls:{title:"العنوان",visible:"مرئي",ticks:"العلامات",labels:"التسميات",position:"الموضع",scale:"المقياس",startFrom:"البدء من",endAt:"الانتهاء عند",value:"القيمة",numberOfAxes:"عدد المحاور",reverse:"عكس"},labelMode:{auto:"تلقائي",edges:"الحواف"},scale:{auto:"تلقائي",log:"لوغاريتمي"},startFrom:{auto:"تلقائي",zero:"صفر",custom:"مخصص"},endAt:{auto:"تلقائي",custom:"مخصص"},axisCount:{single:"مفرد",double:"مزدوج"},position:{left:"يسار",right:"يمين",top:"أعلى",bottom:"أسفل"},yesNo:{yes:"نعم",no:"لا"}},colorPanel:{toolbarButton:"اللون",themeSection:{title:"السمة"},appearanceSection:{title:"المظهر",highlightStyle:"التمييز"},paletteSection:{title:"لوحة الألوان",colorScheme:"نظام الألوان",colors:"الألوان",colorPalettes:"لوحات الألوان"},paletteMode:{preset:"مسبق",brand:"العلامة التجارية",freestyle:"حر"},paletteThemes:{colorful:"ملون",pastel:"باستيل",neon:"نيون"},backgroundSection:{title:"الخلفية",black:"أسود",white:"أبيض",grey:"رمادي",tint:"صبغة",custom:"مخصص",none:"بدون"},borderSection:{title:"الحدود",borderColor:"لون الحدود",thickness:"السمك",cornerRadius:"نصف قطر الزاوية"},borderType:{solid:"صلب",gradient:"متدرج",grey:"رمادي",preset:"مسبق",custom:"مخصص",none:"بدون"},presetGradients:{lilac:"ليلكي",neonPink:"وردي نيون",blackberry:"توت أسود",sun:"شمس",iceland:"آيسلندا",sunset:"غروب",ultraviolet:"فوق بنفسجي",purple:"أرجواني",iceCream:"آيس كريم",mint:"نعناع",cool:"بارد",fresh:"منعش"}},designPanel:{toolbarButton:"التصميم",defaultExpanded:"لوحة الألوان"},annotatePanel:{toolbarButton:"التعليقات",callOutSection:{title:"وسائل الشرح",text:"نص",arrow:"سهم",box:"مربع",difference:"الفرق"},highlightSection:{title:"التمييز",button:"تمييز",colorLabel:"لون التمييز"}},annotationsPanel:{toolbarButton:"التعليقات",freeformSection:{title:"حر",text:"نص",arrow:"سهم",box:"مربع",difference:"فرق"},goalSection:{title:"الهدف",labelControl:"التسمية",labelPlaceholder:"الهدف",labelAriaLabel:"تسمية الهدف المخصصة",valueControl:"قيمة الهدف",valueAriaLabel:"قيمة الهدف",byDate:"حسب التاريخ",xAxisValue:"قيمة المحور السيني",optional:"(اختياري)"},trendsAndAveragesSection:{title:"الاتجاهات والمتوسطات",trend:"الاتجاه",average:"المتوسط"},trendType:{label:"نوع الاتجاه",placeholder:"نوع الاتجاه",options:{linear:"خطي",exponential:"أسي",quadratic:"تربيعي",polynomial:"متعدد الحدود",logarithmic:"لوغاريتمي",power:"قوة",loess:"لويس"}},averageLineSeries:{label:"سلسلة خط المتوسط",placeholder:"اختر السلسلة",ariaLabel:"قائمة منسدلة للسلسلة لخط المتوسط"},highlightSection:{title:"التمييز",button:"تمييز",fadeColorLabel:"لون التلاشي"},titleAndSubtitleSection:{title:"العنوان والعنوان الفرعي",toggleTitle:"العنوان",subtitle:"العنوان الفرعي"},captionAndSourceSection:{title:"التسمية التوضيحية والمصدر",caption:"التسمية التوضيحية",source:"المصدر",url:"الرابط",name:"الاسم"}},elementsPanel:{contentVisible:"مرئي",contentValue:"القيمة",toolbarButton:"العناصر",headerSection:{title:"الرأس",toggleTitle:"العنوان",subtitle:"العنوان الفرعي"},footerSection:{title:"التذييل",caption:"التسمية التوضيحية",source:"المصدر",url:"الرابط",name:"الاسم"},textSizeSection:{title:"حجم النص",scaleFormat:e=>`${e.value}x`},fontSection:{title:"الخط"},sourceSection:{title:"المصدر",url:"الرابط",name:"الاسم"}},powerUpPanel:{toolbarButton:"التحسينات",goalSection:{title:"الهدف",toggle:"الهدف",labelControl:"التسمية",labelPlaceholder:"الهدف",labelAriaLabel:"تسمية الهدف المخصصة",valueControl:"قيمة الهدف",byDate:"حسب التاريخ",xAxisValue:"قيمة المحور السيني",optional:" (اختياري)",xAxisReferenceAriaLabel:"قيمة مرجعية للمحور السيني",anyXAxisValue:"أي قيمة للمحور السيني",selectValuePlaceholder:"اختر القيمة"},trendSection:{title:"الاتجاه",toggle:"الاتجاه"},averageSection:{title:"المتوسط",toggle:"المتوسط",seriesLabel:"سلسلة خط المتوسط",seriesPlaceholder:"اختر السلسلة",seriesAriaLabel:"قائمة منسدلة للسلسلة لخط المتوسط"},trendType:{label:"نوع الاتجاه",placeholder:"نوع الاتجاه",options:{linear:"خطي",exponential:"أسي",quadratic:"تربيعي",polynomial:"متعدد الحدود",logarithmic:"لوغاريتمي",power:"قوة",loess:"لويس"}},valueInput:{percentagePlaceholder:"النسبة المئوية",numberPlaceholder:"الرقم",percentageSymbol:"٪"}},highlighting:{modeHelper:{title:"وضع التمييز",hover:"مرر",toHighlight:"للتمييز",anyElement:"أي عنصر",escToExit:"للخروج",esc:"ESC"},emptyState:"لا تتوفر خيارات تمييز",deleteAriaLabel:"حذف التمييز",highlightStyle:{tint:"صبغة",grey:"رمادي"}},fineTunePanel:{toolbarButton:"الضبط الدقيق",detailSection:{title:"التفاصيل",missingValues:"القيم المفقودة"},lineStyleSection:{title:"نمط الخط",lineCurve:"انحناء الخط",sharp:"حاد",smooth:"ناعم"}},customThemeEditor:{patternDropdownAriaLabel:"قائمة منسدلة للنمط للسلسلة",patterns:{solid:"صلب",pattern:"نمط",dotted:"منقط",dashed:"متقطع",hatched:"مظلل"},heatmapColorLabel:"اللون"},accessibility:{toggleSection:e=>`تبديل قسم ${e.title}`},graphyDefaults:{themeOptions:{light:"فاتح",dark:"داكن"}}},Ps={loading:"جاري التحميل",error:"حدث خطأ ما",axisLabels:{placeholder:"إضافة تسمية"},defaultPropertyLabels:{date:"التاريخ",year:"السنة",quarter:"الربع",month:"الشهر",week:"الأسبوع",series:"السلسلة",category:"الفئة",columnNumber:({number:e})=>`العمود ${e}`,rowNumber:({number:e})=>`الصف ${e}`,seriesNumber:({number:e})=>`السلسلة ${e}`},trendComparison:{fromPrevious:{long:({value:e})=>`${e} مقابل السابق`,short:({value:e})=>`${e} مقابل السابق`},fromPreviousYear:{long:({value:e})=>`${e} مقابل السنة السابقة`,short:({value:e})=>`${e} مقابل السنة السابقة`},fromPreviousMonth:{long:({value:e})=>`${e} مقابل الشهر السابق`,short:({value:e})=>`${e} مقابل الشهر السابق`},fromPreviousWeek:{long:({value:e})=>`${e} مقابل الأسبوع السابق`,short:({value:e})=>`${e} مقابل الأسبوع السابق`},fromPreviousDay:{long:({value:e})=>`${e} مقابل اليوم السابق`,short:({value:e})=>`${e} مقابل اليوم السابق`},fromPreviousHour:{long:({value:e})=>`${e} مقابل الساعة السابقة`,short:({value:e})=>`${e} مقابل الساعة السابقة`}},headlineMetrics:{averageLong:({value:e})=>`المتوسط ${e}`,averageShort:({value:e})=>`المتوسط ${e}`,total:({value:e})=>`المجموع ${e}`,totalConversionRate:({value:e})=>`معدل التحويل الإجمالي ${e}`,current:({value:e})=>e,comparisonReference:({value:e})=>`من ${e}`},titleEditor:{titlePlaceholder:"بدون عنوان",subtitlePlaceholder:"إضافة عنوان فرعي"},toolbar:{formatting:{bold:"عريض",italic:"مائل",underline:"تحته خط",link:"رابط"},link:{ariaLabel:"إنشاء رابط",placeholder:"اكتب أو الصق رابطاً...",submit:"إرسال",urlLabel:"عنوان الرابط",apply:"تطبيق الرابط"},font:{label:"الخط",ariaLabel:"عائلة الخط"},heading:{label:"مستوى العنوان",ariaLabel:"نمط النص",text:"نص",caption:"تسمية توضيحية",heading1:"عنوان 1",heading2:"عنوان 2",heading3:"عنوان 3"},textAlign:{left:"محاذاة لليسار",center:"توسيط",right:"محاذاة لليمين"},color:{label:"لون النص"}},colorDropdown:{colors:"الألوان",chartColors:"ألوان الرسم البياني",custom:"مخصص",opacity:"الشفافية",transparent:"شفاف",pickCustom:"اختيار لون مخصص",pickColor:"اختيار لون"},legend:{hiddenItems:"عناصر وسيلة الإيضاح المخفية"},annotations:{differenceArrowToolbar:{label:"خيارات سهم الفرق",labelKind:{ariaLabel:"التسمية",absoluteDifference:"التغير المطلق",relativeDifference:"التغير المئوي",proportion:"النسبة",suspectValue:"تقسم هذه القيمة على أساس يساوي صفرًا.",incomparableEnds:"يقيس الطرفان كميتين مختلفتين، لذا لا معنى للفرق بينهما."},color:"لون السهم",size:{ariaLabel:"الحجم",small:"صغير",medium:"متوسط",large:"كبير"},swap:"عكس الاتجاه",remove:"إزالة السهم"},baseMenu:{pinNumber:"تثبيت الرقم",unpinNumber:"إلغاء تثبيت الرقم",annotate:"تعليق",removeAnnotation:"إزالة التعليق",highlight:"تمييز",highlightWithLabel:e=>`تمييز ${e.label}`,removeHighlight:"إزالة التمييز",differenceArrow:"سهم الفرق",addSticker:"إضافة ملصق",removeSticker:"إزالة الملصق"},textMenu:{title:"تعليق",placeholder:"إضافة تعليق",addButton:"إضافة"},highlights:{menuTitle:"تمييز",labels:{bar:"شريط",barGroup:"مجموعة",barStack:"مكدس",barSeries:"سلسلة",line:"خط",linePoint:"نقطة",lineSeries:"سلسلة",scatterPoint:"نقطة",scatterSeries:"سلسلة",pieSlice:"شريحة",pointOrBar:"نقطة / شريط",lineOrSeries:"خط / سلسلة"}},stickerMenu:{title:"إضافة ملصق"},delete:"حذف",arrow:{thickness:{label:"السمك",thin:"رفيع",medium:"متوسط",thick:"سميك"},arrowhead:{startPoint:"نقطة البداية",endPoint:"نقطة النهاية",lineArrow:"سهم الخط",none:"بدون"},lineStyle:{label:"نمط الخط",solid:"صلب",dotted:"منقط"},stickerEffect:"تأثير الملصق",toolbarAriaLabel:"شريط أدوات السهم الحر",editorAriaLabel:"محرر السهم"},differenceArrow:{type:{proportion:"النسبة",difference:({absoluteDifference:e})=>`الفرق (${e})`,increase:({absoluteDifference:e})=>`الزيادة (${e})`,decrease:({absoluteDifference:e})=>`النقصان (${e})`,percentageChange:({percentageChange:e})=>`تغيير النسبة المئوية (${e})`,percentIncrease:({percentageChange:e})=>`زيادة النسبة المئوية (${e})`,percentDecrease:({percentageChange:e})=>`نقصان النسبة المئوية (${e})`},size:{label:"الحجم",small:"صغير",medium:"متوسط",large:"كبير"},flipArrow:"عكس السهم",color:"اللون",toolbarAriaLabel:"شريط أدوات سهم الفرق",editorAriaLabel:"محرر سهم الفرق"},shape:{color:"اللون",border:{label:"الحدود",none:"بدون",thin:({value:e})=>`رفيع (${e})`,medium:({value:e})=>`متوسط (${e})`,thick:({value:e})=>`سميك (${e})`}}}},ws={common:ys,editor:Ss,graph:Ps,dir:"rtl"},js={save:"Save",cancel:"Cancel",confirm:"Confirm",delete:"Delete",confirmDelete:e=>`Are you sure you want to delete ${e.item}?`,abbreviations:{thousands:"k",millions:"m",billions:"b"}},ks={title:"Graphy Editor",description:"Edit your content here",graphTypes:{column:"Column",columnStacked:"Stacked column",columnStackedFill:"100% stacked column",bar:"Bar",barStacked:"Stacked bar",barStackedFill:"100% stacked bar",line:"Line",areaStacked:"Stacked area",pie:"Pie",donut:"Donut",scatter:"Scatter",bubble:"Bubble",funnel:"Funnel",combo:"Combo",heatmap:"Heatmap",waterfall:"Waterfall",mekko:"Mekko",table:"Table"},sizePanel:{toolbarButton:"Size",presetsSection:{title:"Presets"},customSizeSection:{title:"Custom size"},presets:{googleSlides:"Google Slides / PowerPoint",webEmail:"Web / email",linkedIn:"LinkedIn post",instagram:"Instagram post",tiktok:"TikTok / Instagram story",twitter:"X (Twitter)",mobile:"Mobile"},inputs:{unitLabel:"px"},validation:{maxSizeError:e=>`≤ ${e.max}px`,minSizeError:e=>`≥ ${e.min}px`}},graphPanel:{toolbarButton:"Graph",graphTypeSection:{title:"Graph type"},polarSection:{title:"Polar",innerRadius:"Inner radius",startAngle:"Start angle"},barSection:{title:"Bars",thickness:"Bar thickness",rounding:"Rounding",roundingOptions:{none:"None",xs:"XS",sm:"S",md:"M",lg:"L",xl:"XL",full:"Full"}},graphOptionsSection:{title:"Graph options"},gridSection:{title:"Grid",horizontalGridLines:"Horizontal lines",verticalGridLines:"Vertical lines",rings:"Rings",spokes:"Spokes",gridStyle:"Grid style",gridThickness:"Grid thickness",lineStyles:{solid:"Solid",dashed:"Dashed",dotted:"Dotted"}},graphOptions:{sortBars:"Sort high → low",showPoints:"Show points",lineFill:"Fill under line",smoothLines:"Smooth lines",stackTotals:"Stack totals",dataLabels:"Data labels",showPercentages:"Show percentages",categoryLabels:"Category labels"},legendSection:{title:"Legend",auto:"Auto",top:"Top",bottom:"Bottom",left:"Left",right:"Right",none:"None",alignLabel:"Alignment",align:{auto:"Auto",start:"Start",center:"Center",end:"End"},displayLabel:"Style",display:{auto:"Auto",pill:"Pills",direct:"Direct"}},numberFormatSection:{title:"Number format"},numberFormat:{abbreviationLabel:"Abbreviation",valueLabel:"Value",decimalPlacesLabel:"Decimal places",options:{auto:"Auto",custom:"Custom",none:"None"}},headlineNumberSize:{sizeLabel:"Size",valueLabel:"Value",sizes:{small:"S",medium:"M",large:"L"}},lineThickness:{label:"Line thickness"},pointSize:{label:"Point size",options:{auto:"Auto",custom:"Custom"}},headlineNumberSection:{title:"Headline number",toggle:"Visible",metricLabel:"Metric",compareWithLabel:"Compare with",metrics:{total:"Total",average:"Avg.",current:"Last",conversion:"Conversion",left:"Left"},comparison:{first:"First",previous:"Previous"},position:{above:"Above",center:"Center"}},treatEmptyValues:{leaveGap:{label:"Leave gap in chart",description:"Leaves a visible break in the line where data is missing"},fillZero:{label:"Fill with zero",description:"Displays missing data points as zero"},connectGaps:{label:"Connect across gaps",description:"Joins the line between available points, skipping the gap"}},comboChartAppearance:{title:"Combo chart appearance",groupedBars:"Grouped bars",stackedBars:"Stacked bars",linesOnly:"Lines only"}},columnMapping:{title:"Data",xAxis:"X-axis",yAxis:"Y-axis",leftYAxis:"Y-axis (left)",rightYAxis:"Y-axis (right)",slices:"Values (slices)",labels:"Labels",size:"Size",shape:"Shape",reset:"Reset to auto",addSeries:"Add series",removeSeries:"Remove series"},axesPanel:{toolbarButton:"Axes",mainAxisSection:{yAxis:"Y-axis",xAxis:"X-axis"},crossAxisSection:{xAxis:"X-axis",yAxis:"Y-axis"},controls:{title:"Title",visible:"Visible",ticks:"Ticks",labels:"Labels",position:"Position",scale:"Scale",startFrom:"Start from",endAt:"End at",value:"Value",numberOfAxes:"Number of axes",reverse:"Reverse"},labelMode:{auto:"Auto",edges:"Edges"},scale:{auto:"Auto",log:"Log"},startFrom:{auto:"Auto",zero:"Zero",custom:"Custom"},endAt:{auto:"Auto",custom:"Custom"},axisCount:{single:"Single",double:"Double"},position:{left:"Left",right:"Right",top:"Top",bottom:"Bottom"},yesNo:{yes:"Yes",no:"No"}},colorPanel:{toolbarButton:"Color",themeSection:{title:"Theme"},appearanceSection:{title:"Appearance",highlightStyle:"Highlight"},paletteSection:{title:"Palette",colorScheme:"Color scheme",colors:"Colors",colorPalettes:"Color palettes"},paletteMode:{preset:"Preset",brand:"Brand",freestyle:"Freestyle"},paletteThemes:{colorful:"Colorful",pastel:"Pastel",neon:"Neon"},backgroundSection:{title:"Background",black:"Black",white:"White",grey:"Grey",tint:"Tint",custom:"Custom",none:"None"},borderSection:{title:"Border",borderColor:"Border color",thickness:"Thickness",cornerRadius:"Corner radius"},borderType:{solid:"Solid",gradient:"Gradient",grey:"Grey",preset:"Preset",custom:"Custom",none:"None"},presetGradients:{lilac:"Lilac",neonPink:"Neon Pink",blackberry:"Blackberry",sun:"Sun",iceland:"Iceland",sunset:"Sunset",ultraviolet:"Ultraviolet",purple:"Purple",iceCream:"Ice Cream",mint:"Mint",cool:"Cool",fresh:"Fresh"}},designPanel:{toolbarButton:"Design",defaultExpanded:"Palette"},annotatePanel:{toolbarButton:"Annotate",callOutSection:{title:"Callouts",text:"Text",arrow:"Arrow",box:"Box",difference:"Difference"},highlightSection:{title:"Highlight",button:"Highlight",colorLabel:"Highlight color"}},annotationsPanel:{toolbarButton:"Annotate",freeformSection:{title:"Freeform",text:"Text",arrow:"Arrow",box:"Box",difference:"Difference"},goalSection:{title:"Goal",labelControl:"Label",labelPlaceholder:"Goal",labelAriaLabel:"Custom goal label",valueControl:"Goal value",valueAriaLabel:"Goal value",byDate:"By date",xAxisValue:"X-axis value",optional:"(optional)"},trendsAndAveragesSection:{title:"Trends and Averages",trend:"Trend",average:"Average"},trendType:{label:"Trend type",placeholder:"Trend type",options:{linear:"Linear",exponential:"Exponential",quadratic:"Quadratic",polynomial:"Polynomial",logarithmic:"Logarithmic",power:"Power",loess:"Loess"}},averageLineSeries:{label:"Average line series",placeholder:"Select series",ariaLabel:"Series dropdown for average line"},highlightSection:{title:"Highlight",button:"Highlight",fadeColorLabel:"Fade color"},titleAndSubtitleSection:{title:"Title & Subtitle",toggleTitle:"Title",subtitle:"Subtitle"},captionAndSourceSection:{title:"Caption & Source",caption:"Caption",source:"Source",url:"URL",name:"Name"}},elementsPanel:{contentVisible:"Visible",contentValue:"Value",toolbarButton:"Elements",headerSection:{title:"Header",toggleTitle:"Title",subtitle:"Subtitle"},footerSection:{title:"Footer",caption:"Caption",source:"Source",url:"URL",name:"Name"},textSizeSection:{title:"Text size",scaleFormat:e=>`${e.value}x`},fontSection:{title:"Font"},sourceSection:{title:"Source",url:"URL",name:"Name"}},powerUpPanel:{toolbarButton:"Power-ups",goalSection:{title:"Goal",toggle:"Goal",labelControl:"Label",labelPlaceholder:"Goal",labelAriaLabel:"Custom goal label",valueControl:"Goal value",byDate:"By date",xAxisValue:"X-axis value",optional:" (optional)",xAxisReferenceAriaLabel:"X-axis reference value",anyXAxisValue:"Any x-axis value",selectValuePlaceholder:"Select value"},trendSection:{title:"Trend",toggle:"Trend"},averageSection:{title:"Average",toggle:"Average",seriesLabel:"Average line series",seriesPlaceholder:"Select series",seriesAriaLabel:"Series dropdown for average line"},trendType:{label:"Trend type",placeholder:"Trend type",options:{linear:"Linear",exponential:"Exponential",quadratic:"Quadratic",polynomial:"Polynomial",logarithmic:"Logarithmic",power:"Power",loess:"Loess"}},valueInput:{percentagePlaceholder:"Percentage",numberPlaceholder:"Number",percentageSymbol:"%"}},highlighting:{modeHelper:{title:"Highlight mode",hover:"Hover",toHighlight:"to highlight",anyElement:"any element",escToExit:"to exit",esc:"ESC"},emptyState:"No highlight options available",deleteAriaLabel:"Delete highlight",highlightStyle:{tint:"Tint",grey:"Grey"}},fineTunePanel:{toolbarButton:"Fine tune",detailSection:{title:"Detail",missingValues:"Missing values"},lineStyleSection:{title:"Line style",lineCurve:"Line curve",sharp:"Sharp",smooth:"Smooth"}},customThemeEditor:{patternDropdownAriaLabel:"Pattern dropdown for series",patterns:{solid:"Solid",pattern:"Pattern",dotted:"Dotted",dashed:"Dashed",hatched:"Hatched"},heatmapColorLabel:"Color"},accessibility:{toggleSection:e=>`Toggle ${e.title} section`},graphyDefaults:{themeOptions:{light:"Light",dark:"Dark"}}},Cs={loading:"Loading",error:"Something went wrong",axisLabels:{placeholder:"Add label"},defaultPropertyLabels:{date:"Date",year:"Year",quarter:"Quarter",month:"Month",week:"Week",series:"Series",category:"Category",columnNumber:({number:e})=>`Column ${e}`,rowNumber:({number:e})=>`Row ${e}`,seriesNumber:({number:e})=>`Series ${e}`},trendComparison:{fromPrevious:{long:({value:e})=>`${e} vs previous`,short:({value:e})=>`${e} vs prev`},fromPreviousYear:{long:({value:e})=>`${e} vs previous year`,short:({value:e})=>`${e} vs prev year`},fromPreviousMonth:{long:({value:e})=>`${e} vs previous month`,short:({value:e})=>`${e} vs prev month`},fromPreviousWeek:{long:({value:e})=>`${e} vs previous week`,short:({value:e})=>`${e} vs prev week`},fromPreviousDay:{long:({value:e})=>`${e} vs previous day`,short:({value:e})=>`${e} vs prev day`},fromPreviousHour:{long:({value:e})=>`${e} vs previous hour`,short:({value:e})=>`${e} vs prev hour`}},headlineMetrics:{averageLong:({value:e})=>`Average ${e}`,averageShort:({value:e})=>`Avg. ${e}`,total:({value:e})=>`Total ${e}`,totalConversionRate:({value:e})=>`Total conversion rate ${e}`,current:({value:e})=>e,comparisonReference:({value:e})=>`from ${e}`},titleEditor:{titlePlaceholder:"Untitled",subtitlePlaceholder:"Add a subtitle"},toolbar:{formatting:{bold:"Bold",italic:"Italic",underline:"Underline",link:"Link"},link:{ariaLabel:"Create link",placeholder:"Type or paste a link...",submit:"Submit",urlLabel:"Link URL",apply:"Apply link"},font:{label:"Font",ariaLabel:"Font family"},heading:{label:"Heading level",ariaLabel:"Text style",text:"Text",caption:"Caption",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3"},textAlign:{left:"Align left",center:"Align center",right:"Align right"},color:{label:"Text color"}},colorDropdown:{colors:"Colors",chartColors:"Chart colors",custom:"Custom",opacity:"Opacity",transparent:"Transparent",pickCustom:"Pick custom color",pickColor:"Pick color"},legend:{hiddenItems:"Hidden legend items"},annotations:{differenceArrowToolbar:{label:"Difference arrow options",labelKind:{ariaLabel:"Label",absoluteDifference:"Absolute change",relativeDifference:"Percentage change",proportion:"Proportion",suspectValue:"This value divides by a baseline of zero.",incomparableEnds:"The two ends measure different quantities, so a difference between them has no meaning."},color:"Arrow colour",size:{ariaLabel:"Size",small:"Small",medium:"Medium",large:"Large"},swap:"Swap direction",remove:"Remove arrow"},baseMenu:{pinNumber:"Pin number",unpinNumber:"Unpin number",annotate:"Annotate",removeAnnotation:"Remove annotation",highlight:"Highlight",highlightWithLabel:e=>`Highlight ${e.label}`,removeHighlight:"Remove highlight",differenceArrow:"Difference arrow",addSticker:"Add sticker",removeSticker:"Remove sticker"},textMenu:{title:"Annotate",placeholder:"Add a comment",addButton:"Add"},highlights:{menuTitle:"Highlight",labels:{bar:"bar",barGroup:"group",barStack:"stack",barSeries:"series",line:"line",linePoint:"point",lineSeries:"series",scatterPoint:"point",scatterSeries:"series",pieSlice:"slice",pointOrBar:"point / bar",lineOrSeries:"line / series"}},stickerMenu:{title:"Add sticker"},delete:"Delete",arrow:{thickness:{label:"Thickness",thin:"Thin",medium:"Medium",thick:"Thick"},arrowhead:{startPoint:"Start point",endPoint:"End point",lineArrow:"Line arrow",none:"None"},lineStyle:{label:"Line style",solid:"Solid",dotted:"Dotted"},stickerEffect:"Sticker effect",toolbarAriaLabel:"Free-form arrow toolbar",editorAriaLabel:"Arrow editor"},differenceArrow:{type:{proportion:"Proportion",difference:({absoluteDifference:e})=>`Difference (${e})`,increase:({absoluteDifference:e})=>`Increase (${e})`,decrease:({absoluteDifference:e})=>`Decrease (${e})`,percentageChange:({percentageChange:e})=>`Percentage change (${e})`,percentIncrease:({percentageChange:e})=>`Percent increase (${e})`,percentDecrease:({percentageChange:e})=>`Percent decrease (${e})`},size:{label:"Size",small:"Small",medium:"Medium",large:"Large"},flipArrow:"Flip arrow",color:"Color",toolbarAriaLabel:"Difference arrow toolbar",editorAriaLabel:"Difference arrow editor"},shape:{color:"Color",border:{label:"Border",none:"None",thin:({value:e})=>`Thin (${e})`,medium:({value:e})=>`Medium (${e})`,thick:({value:e})=>`Thick (${e})`}}}},Es={common:js,editor:ks,graph:Cs,dir:"ltr"},Rs={editor:{colorPanel:{backgroundSection:{grey:"Gray"},borderType:{grey:"Gray"}},highlighting:{highlightStyle:{grey:"Gray"}}}},Ls={save:"Guardar",cancel:"Cancelar",confirm:"Confirmar",delete:"Eliminar",confirmDelete:e=>`Tem a certeza que deseja eliminar ${e.item}?`,abbreviations:{thousands:"mil",millions:"M",billions:"MM"}},Ts={title:"Editor Graphy",description:"Edite o seu conteúdo aqui",graphTypes:{column:"Colunas",columnStacked:"Colunas sobrepostas",columnStackedFill:"100% Colunas sobrepostas",bar:"Barras",barStacked:"Barras sobrepostas",barStackedFill:"100% Barras sobrepostas",line:"Linha",areaStacked:"Área sobreposta",pie:"Circular",donut:"Donut",scatter:"Dispersão",bubble:"Bolhas",funnel:"Funil",combo:"Combinado",heatmap:"Mapa de Calor",waterfall:"Cascata",mekko:"Mekko",table:"Tabela"},sizePanel:{toolbarButton:"Tamanho",presetsSection:{title:"Predefinições"},customSizeSection:{title:"Tamanho personalizado"},presets:{googleSlides:"Google Slides / PowerPoint",webEmail:"Web / email",linkedIn:"Publicação LinkedIn",instagram:"Publicação Instagram",tiktok:"TikTok / Instagram story",twitter:"X (Twitter)",mobile:"Móvel"},inputs:{unitLabel:"px"},validation:{maxSizeError:e=>`≤ ${e.max}px`,minSizeError:e=>`≥ ${e.min}px`}},graphPanel:{toolbarButton:"Gráfico",graphTypeSection:{title:"Tipo de gráfico"},polarSection:{title:"Polar",innerRadius:"Raio interno",startAngle:"Ângulo inicial"},barSection:{title:"Barras",thickness:"Espessura da barra",rounding:"Arredondamento",roundingOptions:{none:"Nenhum",xs:"XS",sm:"S",md:"M",lg:"L",xl:"XL",full:"Total"}},graphOptionsSection:{title:"Opções do gráfico"},gridSection:{title:"Grelha",horizontalGridLines:"Linhas horizontais",verticalGridLines:"Linhas verticais",rings:"Anéis",spokes:"Raios",gridStyle:"Estilo da grelha",gridThickness:"Espessura da grelha",lineStyles:{solid:"Sólida",dashed:"Tracejada",dotted:"Pontilhada"}},graphOptions:{sortBars:"Ordenar maior → menor",showPoints:"Mostrar pontos",lineFill:"Preencher sob a linha",smoothLines:"Linhas suaves",stackTotals:"Totais sobrepostos",dataLabels:"Etiquetas de dados",showPercentages:"Mostrar percentagens",categoryLabels:"Etiquetas de categorias"},legendSection:{title:"Legenda",auto:"Automático",top:"Topo",bottom:"Fundo",left:"Esquerda",right:"Direita",none:"Nenhuma",alignLabel:"Alinhamento",align:{auto:"Automático",start:"Início",center:"Centro",end:"Fim"},displayLabel:"Estilo",display:{auto:"Automático",pill:"Etiquetas",direct:"No gráfico"}},numberFormatSection:{title:"Formato numérico"},numberFormat:{abbreviationLabel:"Abreviação",valueLabel:"Valor",decimalPlacesLabel:"Casas decimais",options:{auto:"Automático",custom:"Personalizado",none:"Nenhum"}},headlineNumberSize:{sizeLabel:"Tamanho",valueLabel:"Valor",sizes:{small:"P",medium:"M",large:"G"}},lineThickness:{label:"Espessura da linha"},pointSize:{label:"Tamanho do ponto",options:{auto:"Automático",custom:"Personalizado"}},headlineNumberSection:{title:"Número destaque",toggle:"Visível",metricLabel:"Métrica",compareWithLabel:"Comparar com",metrics:{total:"Total",average:"Média",current:"Último",conversion:"Conversão",left:"Esquerda"},comparison:{first:"Primeiro",previous:"Anterior"},position:{above:"Acima",center:"Centro"}},treatEmptyValues:{leaveGap:{label:"Deixar espaço no gráfico",description:"Deixa uma quebra visível na linha onde faltam dados"},fillZero:{label:"Preencher com zero",description:"Exibe pontos de dados em falta como zero"},connectGaps:{label:"Ligar através dos espaços",description:"Une a linha entre pontos disponíveis, ignorando o espaço"}},comboChartAppearance:{title:"Aparência do gráfico combinado",groupedBars:"Barras agrupadas",stackedBars:"Barras sobrepostas",linesOnly:"Apenas linhas"}},columnMapping:{title:"Dados",xAxis:"Eixo X",yAxis:"Eixo Y",leftYAxis:"Eixo Y (esquerda)",rightYAxis:"Eixo Y (direita)",slices:"Valores (fatias)",labels:"Etiquetas",size:"Tamanho",shape:"Forma",reset:"Repor para automático",addSeries:"Adicionar série",removeSeries:"Remover série"},axesPanel:{toolbarButton:"Eixos",mainAxisSection:{yAxis:"Eixo Y",xAxis:"Eixo X"},crossAxisSection:{xAxis:"Eixo X",yAxis:"Eixo Y"},controls:{title:"Título",visible:"Visível",ticks:"Marcas",labels:"Etiquetas",position:"Posição",scale:"Escala",startFrom:"Iniciar de",endAt:"Terminar em",value:"Valor",numberOfAxes:"Número de eixos",reverse:"Inverter"},labelMode:{auto:"Automático",edges:"Extremos"},scale:{auto:"Automático",log:"Logarítmico"},startFrom:{auto:"Automático",zero:"Zero",custom:"Personalizado"},endAt:{auto:"Automático",custom:"Personalizado"},axisCount:{single:"Único",double:"Duplo"},position:{left:"Esquerda",right:"Direita",top:"Topo",bottom:"Fundo"},yesNo:{yes:"Sim",no:"Não"}},colorPanel:{toolbarButton:"Cor",themeSection:{title:"Tema"},appearanceSection:{title:"Aparência",highlightStyle:"Destaque"},paletteSection:{title:"Paleta",colorScheme:"Esquema de cores",colors:"Cores",colorPalettes:"Paletas de cores"},paletteMode:{preset:"Predefinido",brand:"Marca",freestyle:"Livre"},paletteThemes:{colorful:"Colorido",pastel:"Pastel",neon:"Néon"},backgroundSection:{title:"Fundo",black:"Preto",white:"Branco",grey:"Cinzento",tint:"Tonalidade",custom:"Personalizado",none:"Nenhum"},borderSection:{title:"Contorno",borderColor:"Cor do contorno",thickness:"Espessura",cornerRadius:"Raio dos cantos"},borderType:{solid:"Sólido",gradient:"Gradiente",grey:"Cinzento",preset:"Predefinido",custom:"Personalizado",none:"Nenhum"},presetGradients:{lilac:"Lilás",neonPink:"Rosa Néon",blackberry:"Amora",sun:"Sol",iceland:"Islândia",sunset:"Pôr do Sol",ultraviolet:"Ultravioleta",purple:"Roxo",iceCream:"Gelado",mint:"Menta",cool:"Frio",fresh:"Fresco"}},designPanel:{toolbarButton:"Design",defaultExpanded:"Paleta"},annotatePanel:{toolbarButton:"Anotar",callOutSection:{title:"Destaques",text:"Texto",arrow:"Seta",box:"Caixa",difference:"Diferença"},highlightSection:{title:"Realce",button:"Realçar",colorLabel:"Cor do realce"}},annotationsPanel:{toolbarButton:"Anotar",freeformSection:{title:"Forma livre",text:"Texto",arrow:"Seta",box:"Caixa",difference:"Diferença"},goalSection:{title:"Objetivo",labelControl:"Etiqueta",labelPlaceholder:"Objetivo",labelAriaLabel:"Etiqueta de objetivo personalizada",valueControl:"Valor do objetivo",valueAriaLabel:"Valor do objetivo",byDate:"Por data",xAxisValue:"Valor do eixo X",optional:"(opcional)"},trendsAndAveragesSection:{title:"Tendências e Médias",trend:"Tendência",average:"Média"},trendType:{label:"Tipo de tendência",placeholder:"Tipo de tendência",options:{linear:"Linear",exponential:"Exponencial",quadratic:"Quadrática",polynomial:"Polinomial",logarithmic:"Logarítmica",power:"Potência",loess:"Loess"}},averageLineSeries:{label:"Série da linha de média",placeholder:"Selecionar série",ariaLabel:"Dropdown de séries para linha de média"},highlightSection:{title:"Realce",button:"Realçar",fadeColorLabel:"Cor de esmaecimento"},titleAndSubtitleSection:{title:"Título e Subtítulo",toggleTitle:"Título",subtitle:"Subtítulo"},captionAndSourceSection:{title:"Legenda e Fonte",caption:"Legenda",source:"Fonte",url:"URL",name:"Nome"}},elementsPanel:{contentVisible:"Visível",contentValue:"Valor",toolbarButton:"Elementos",headerSection:{title:"Cabeçalho",toggleTitle:"Título",subtitle:"Subtítulo"},footerSection:{title:"Rodapé",caption:"Legenda",source:"Fonte",url:"URL",name:"Nome"},textSizeSection:{title:"Tamanho do texto",scaleFormat:e=>`${e.value}x`},fontSection:{title:"Tipo de letra"},sourceSection:{title:"Fonte",url:"URL",name:"Nome"}},powerUpPanel:{toolbarButton:"Extras",goalSection:{title:"Objetivo",toggle:"Objetivo",labelControl:"Etiqueta",labelPlaceholder:"Objetivo",labelAriaLabel:"Etiqueta de objetivo personalizada",valueControl:"Valor do objetivo",byDate:"Por data",xAxisValue:"Valor do eixo X",optional:" (opcional)",xAxisReferenceAriaLabel:"Valor de referência do eixo X",anyXAxisValue:"Qualquer valor do eixo X",selectValuePlaceholder:"Selecionar valor"},trendSection:{title:"Tendência",toggle:"Tendência"},averageSection:{title:"Média",toggle:"Média",seriesLabel:"Série da linha de média",seriesPlaceholder:"Selecionar série",seriesAriaLabel:"Dropdown de séries para linha de média"},trendType:{label:"Tipo de tendência",placeholder:"Tipo de tendência",options:{linear:"Linear",exponential:"Exponencial",quadratic:"Quadrática",polynomial:"Polinomial",logarithmic:"Logarítmica",power:"Potência",loess:"Loess"}},valueInput:{percentagePlaceholder:"Percentagem",numberPlaceholder:"Número",percentageSymbol:"%"}},highlighting:{modeHelper:{title:"Modo de realce",hover:"Passe",toHighlight:"para realçar",anyElement:"qualquer elemento",escToExit:"para sair",esc:"ESC"},emptyState:"Sem opções de realce disponíveis",deleteAriaLabel:"Eliminar realce",highlightStyle:{tint:"Tonalidade",grey:"Cinzento"}},fineTunePanel:{toolbarButton:"Ajuste fino",detailSection:{title:"Detalhe",missingValues:"Valores em falta"},lineStyleSection:{title:"Estilo de linha",lineCurve:"Curva da linha",sharp:"Angulosa",smooth:"Suave"}},customThemeEditor:{patternDropdownAriaLabel:"Dropdown de padrões para série",patterns:{solid:"Sólido",pattern:"Padrão",dotted:"Pontilhado",dashed:"Tracejado",hatched:"Hachurado"},heatmapColorLabel:"Cor"},accessibility:{toggleSection:e=>`Alternar secção ${e.title}`},graphyDefaults:{themeOptions:{light:"Claro",dark:"Escuro"}}},Bs={loading:"A carregar",error:"Algo correu mal",axisLabels:{placeholder:"Adicionar etiqueta"},defaultPropertyLabels:{date:"Data",year:"Ano",quarter:"Trimestre",month:"Mês",week:"Semana",series:"Série",category:"Categoria",columnNumber:({number:e})=>`Coluna ${e}`,rowNumber:({number:e})=>`Linha ${e}`,seriesNumber:({number:e})=>`Série ${e}`},trendComparison:{fromPrevious:{long:({value:e})=>`${e} vs anterior`,short:({value:e})=>`${e} vs ant`},fromPreviousYear:{long:({value:e})=>`${e} vs ano anterior`,short:({value:e})=>`${e} vs ano ant`},fromPreviousMonth:{long:({value:e})=>`${e} vs mês anterior`,short:({value:e})=>`${e} vs mês ant`},fromPreviousWeek:{long:({value:e})=>`${e} vs semana anterior`,short:({value:e})=>`${e} vs sem ant`},fromPreviousDay:{long:({value:e})=>`${e} vs dia anterior`,short:({value:e})=>`${e} vs dia ant`},fromPreviousHour:{long:({value:e})=>`${e} vs hora anterior`,short:({value:e})=>`${e} vs hora ant`}},headlineMetrics:{averageLong:({value:e})=>`Média ${e}`,averageShort:({value:e})=>`Méd. ${e}`,total:({value:e})=>`Total ${e}`,totalConversionRate:({value:e})=>`Taxa de conversão total ${e}`,current:({value:e})=>e,comparisonReference:({value:e})=>`de ${e}`},titleEditor:{titlePlaceholder:"Sem título",subtitlePlaceholder:"Adicionar subtítulo"},toolbar:{formatting:{bold:"Negrito",italic:"Itálico",underline:"Sublinhado",link:"Ligação"},link:{ariaLabel:"Criar ligação",placeholder:"Escreva ou cole uma ligação...",submit:"Submeter",urlLabel:"URL da ligação",apply:"Aplicar ligação"},font:{label:"Tipo de letra",ariaLabel:"Família do tipo de letra"},heading:{label:"Nível de título",ariaLabel:"Estilo de texto",text:"Texto",caption:"Legenda",heading1:"Título 1",heading2:"Título 2",heading3:"Título 3"},textAlign:{left:"Alinhar à esquerda",center:"Alinhar ao centro",right:"Alinhar à direita"},color:{label:"Cor do texto"}},colorDropdown:{colors:"Cores",chartColors:"Cores do gráfico",custom:"Personalizado",opacity:"Opacidade",transparent:"Transparente",pickCustom:"Escolher cor personalizada",pickColor:"Escolher cor"},legend:{hiddenItems:"Itens de legenda ocultos"},annotations:{differenceArrowToolbar:{label:"Opções da seta de diferença",labelKind:{ariaLabel:"Etiqueta",absoluteDifference:"Variação absoluta",relativeDifference:"Variação percentual",proportion:"Proporção",suspectValue:"Este valor divide por uma base igual a zero.",incomparableEnds:"As duas pontas medem quantidades diferentes, pelo que a diferença entre elas não tem significado."},color:"Cor da seta",size:{ariaLabel:"Tamanho",small:"Pequeno",medium:"Médio",large:"Grande"},swap:"Inverter sentido",remove:"Remover seta"},baseMenu:{pinNumber:"Fixar número",unpinNumber:"Desafixar número",annotate:"Anotar",removeAnnotation:"Remover anotação",highlight:"Realçar",highlightWithLabel:e=>`Realçar ${e.label}`,removeHighlight:"Remover realce",differenceArrow:"Seta de diferença",addSticker:"Adicionar autocolante",removeSticker:"Remover autocolante"},textMenu:{title:"Anotar",placeholder:"Adicionar comentário",addButton:"Adicionar"},highlights:{menuTitle:"Realçar",labels:{bar:"Barra",barGroup:"Grupo",barStack:"Pilha",barSeries:"Série",line:"Linha",linePoint:"Ponto",lineSeries:"Série",scatterPoint:"Ponto",scatterSeries:"Série",pieSlice:"Fatia",pointOrBar:"Ponto / barra",lineOrSeries:"Linha / série"}},stickerMenu:{title:"Adicionar autocolante"},delete:"Eliminar",arrow:{thickness:{label:"Espessura",thin:"Fina",medium:"Média",thick:"Grossa"},arrowhead:{startPoint:"Ponto inicial",endPoint:"Ponto final",lineArrow:"Seta de linha",none:"Nenhuma"},lineStyle:{label:"Estilo de linha",solid:"Sólida",dotted:"Pontilhada"},stickerEffect:"Efeito de autocolante",toolbarAriaLabel:"Barra de ferramentas de seta livre",editorAriaLabel:"Editor de seta"},differenceArrow:{type:{proportion:"Proporção",difference:({absoluteDifference:e})=>`Diferença (${e})`,increase:({absoluteDifference:e})=>`Aumento (${e})`,decrease:({absoluteDifference:e})=>`Diminuição (${e})`,percentageChange:({percentageChange:e})=>`Variação percentual (${e})`,percentIncrease:({percentageChange:e})=>`Aumento percentual (${e})`,percentDecrease:({percentageChange:e})=>`Diminuição percentual (${e})`},size:{label:"Tamanho",small:"Pequeno",medium:"Médio",large:"Grande"},flipArrow:"Inverter seta",color:"Cor",toolbarAriaLabel:"Barra de ferramentas de seta de diferença",editorAriaLabel:"Editor de seta de diferença"},shape:{color:"Cor",border:{label:"Contorno",none:"Nenhum",thin:({value:e})=>`Fino (${e})`,medium:({value:e})=>`Médio (${e})`,thick:({value:e})=>`Grosso (${e})`}}}},Ms={common:Ls,editor:Ts,graph:Bs,dir:"ltr"},Qe={"en-GB":Es,"en-US":Rs,ar:ws,"pt-PT":Ms},Ns=({locale:e,overrides:t,fallbackLocale:r="en-GB"})=>{const n=t??{};return(a,i)=>{const s=i??{},l=a.split("."),c=n[a];if(c)return typeof c=="function"?c(s):c;const d=ir(Qe[e??r],l);if(d)return typeof d=="function"?d(s):d;const u=ir(Qe[r],l);return u?typeof u=="function"?u(s):u:a}},Is=({locale:e,overrides:t})=>t?.dir??Qe[e].dir??"ltr",ir=(e,t)=>{let r=e;for(const n of t){if(typeof r!="object"||r===null)return;r=r[n]}if(typeof r=="string"||typeof r=="function")return r},Os=e=>{const t="en-GB";if(!e)return t;const r=e.trim().replace("_","-").toLowerCase();return Object.keys(Qe).find(n=>n.toLowerCase()===r)??t},Rn=(0,g.createContext)(null),_=()=>{const e=(0,g.useContext)(Rn);if(!e)throw new Error("useI18n must be used within IntlProvider");return e.translator},Ln=({locale:e,children:t,i18nOverrides:r})=>{const n=Os(e),a=(0,g.useMemo)(()=>({translator:Ns({locale:n,overrides:r,fallbackLocale:"en-GB"}),dir:Is({locale:n,overrides:r})}),[r,n]);return(0,o.jsx)(sa.IntlProvider,{locale:n,timeZone:"UTC",children:(0,o.jsx)(Rn.Provider,{value:a,children:t})})},Xe=.1,Ds={light:.05,dark:.1},Fs=(e,t)=>{switch(e.type){case"none":return null;case"solid":return e.color;case"tinted":return Hs(e.color,t);case"gradient":return Vs(e.color,t);case"preset":return h.BORDER_PRESET_GRADIENTS[e.preset]}},Gs=e=>e.type==="none"?0:e.width,Tn=(e,t,r)=>{if(e.type==="solid")return e.color;if(e.type==="tinted")return vt(r,e.color,Ds[t])},Hs=(e,t)=>t==="dark"?Ze(e,Xe):Rt(e,Xe),Vs=(e,t,r=90)=>`linear-gradient(${r}deg, ${e} 0%, ${t==="dark"?Ze(e,Xe):Rt(e,Xe)} 100%)`,Ws="bow4tg0",Us="bow4tg1",zs="bow4tg2",Ys="bow4tg3",qs="bow4tg4",Tt="_1ii3bsb0",Bn="_1ii3bsb1",Ks={textScale:1,cornerRadius:0,background:{type:"theme"},border:{type:"none"}},Mn=(0,g.createContext)({colorScheme:"light",themeClass:Tt,inlineVarsStyle:{},themeValues:$r("light",{})}),Ae=()=>(0,g.useContext)(Mn),Nn=({colorScheme:e,themeOverrides:t={},appearance:r=Ks,children:n})=>{const a=(0,g.useMemo)(()=>$r(e,t),[e,t]),i=(0,g.useMemo)(()=>{const l={[v.vars.textScale]:String(r.textScale)};for(const d of Object.keys(t)){const u=d;l[v.vars[u]]=a[u]}const c=Tn(r.background,e,a.graphBackground);return c!==void 0&&(l[v.vars.graphBackground]=c),(0,Rr.assignInlineVars)(l)},[r.textScale,r.background,e,a,t]),s=(0,g.useMemo)(()=>({colorScheme:e,themeClass:e==="dark"?Bn:Tt,inlineVarsStyle:i,themeValues:a}),[e,i,a]);return(0,o.jsx)(Mn.Provider,{value:s,children:n})},oe=({children:e,className:t,style:r})=>{const{themeClass:n,inlineVarsStyle:a}=Ae();return(0,o.jsx)("div",{className:(0,B.default)(n,Us,t),style:{...a,...r},children:e})},Qs="_1cocly40",Xs={modern:"'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif",timeless:"'Noto Serif', Georgia, 'Times New Roman', serif",fresh:"'Aeonik', 'Aeonik Fallback', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif",technical:"'PT Mono', 'Courier New', monospace",handwritten:"'Permanent Marker', cursive",fineliner:"'Intruding Cat', cursive",brand:"var(--brand-font-family), 'Aeonik', 'Inter', sans-serif"},Ee=({content:e})=>(0,o.jsx)(o.Fragment,{children:In(e.content??[e])}),In=e=>e.map((t,r)=>Js(t,r)),Js=(e,t)=>{if(e.type==="text")return Zs(e,t);if(e.type==="hardBreak"||e.type==="hard_break")return(0,o.jsx)("br",{},t);const r=e.content?In(e.content):null;switch(e.type){case"doc":return(0,o.jsx)(g.Fragment,{children:r},t);case"heading":{const n=tl(e.attrs?.level);return rl(n,t,r,lr(e.attrs))}case"paragraph":return(0,o.jsx)("p",{"data-variant":fe(e.attrs?.variant)??void 0,style:On(lr(e.attrs)),children:r},t);case"blockquote":return(0,o.jsx)("blockquote",{children:r},t);case"bulletList":case"bullet_list":return(0,o.jsx)("ul",{children:r},t);case"orderedList":case"ordered_list":return(0,o.jsx)("ol",{children:r},t);case"listItem":case"list_item":return(0,o.jsx)("li",{children:r},t);default:return(0,o.jsx)("span",{children:r},t)}},Zs=(e,t)=>{const r=e.text??"";return!e.marks||e.marks.length===0?(0,o.jsx)("span",{children:r},t):e.marks.reduceRight((n,a,i)=>_s(a,n,`${t}-${i}`),r)},_s=(e,t,r)=>{switch(e.type){case"bold":case"strong":return(0,o.jsx)("strong",{children:t},r);case"italic":case"em":return(0,o.jsx)("em",{children:t},r);case"underline":return(0,o.jsx)("u",{children:t},r);case"strike":case"strikethrough":case"s":return(0,o.jsx)("s",{children:t},r);case"code":return(0,o.jsx)("code",{children:t},r);case"link":{const n=fe(e.attrs?.href);return(0,h.isSafeUrl)(n)?(0,o.jsx)("a",{className:Qs,href:n,rel:"noopener noreferrer",target:"_blank",children:t},r):(0,o.jsx)("span",{children:t},r)}case"textStyle":{const n=$s(e.attrs);return n?(0,o.jsx)("span",{style:n,children:t},r):(0,o.jsx)("span",{children:t},r)}default:return(0,o.jsx)("span",{children:t},r)}},sr=e=>{const t=fe(e&&typeof e=="object"?e.fontFamily:e);if(t)return Xs[t]??t},$s=e=>{if(!e)return null;const t={},r=fe(e.color);r&&(t.color=r);const n=sr(e.font)??sr(e.fontFamily);n&&(t.fontFamily=n);const a=el(e.fontSize);return a&&(t.fontSize=a),Object.keys(t).length>0?t:null},el=e=>typeof e=="number"&&Number.isFinite(e)?`${e/10}em`:fe(e),fe=e=>typeof e=="string"&&e.length>0?e:void 0,tl=e=>typeof e!="number"?3:e<1?1:e>3?3:Math.round(e),rl=(e,t,r,n)=>{const a=On(n);switch(e){case 1:return(0,o.jsx)("h1",{style:a,children:r},t);case 2:return(0,o.jsx)("h2",{style:a,children:r},t);case 3:return(0,o.jsx)("h3",{style:a,children:r},t)}},lr=e=>{const t=e?.textAlign;if(t==="left"||t==="right"||t==="center"||t==="justify")return t},On=e=>e?{textAlign:e}:void 0;function pe(e){const{store:t}=le();return(0,Re.useStore)(t,e)}var nl="_19519k80";var ol="_19519k83",al="_19519k84",il="_19519k85",sl="_19519k87",ll="_19519k88",cl="_19519k89",dl="_19519k8a",ul=e=>{const{overlayRef:t}=le(),r=(0,g.useRef)(null),[n,a]=(0,g.useState)(!1),i=qe(e);return(0,g.useEffect)(()=>{const s=t.current;if(!s)return;const l=d=>{r.current={clientX:d.clientX,clientY:d.clientY},a(!0),i.current?.()},c=()=>{r.current=null,a(!1)};return s.addEventListener("pointermove",l),s.addEventListener("pointerleave",c),()=>{s.removeEventListener("pointermove",l),s.removeEventListener("pointerleave",c)}},[t,i]),{cursorRef:r,isInside:n}},hl=24,gl=8,pl={x:0,y:0,top:0,left:0,right:0,bottom:0,width:0,height:0,toJSON:()=>({})},Fe={boundary:[],padding:gl},vl=()=>{const e=C((0,D.useShallow)(A=>({layers:A.layers,coordSystem:A.coordSystem,scales:A.scales,guides:A.guides,numberFormat:A.config.numberFormat,parsingLocale:A.config.parsingLocale,comments:A.annotations.comments}))),{formattingLocale:t,colorScheme:r}=q(),n=pe(A=>A.hover),a=pe(A=>A.tooltipAnchor),i=pe(A=>A.isPointerSuspended),s=X("Tooltip",Dn),l=(0,g.useRef)(()=>{}),{cursorRef:c,isInside:d}=ul(()=>l.current()),u=(0,g.useMemo)(()=>(0,h.buildTooltipContent)({...e,hover:n,colorScheme:r,formattingLocale:t,activeCalloutId:a?.annotationId??null}),[e,n,r,t,a]),p=!i&&u!==null&&(d||a!==null),f=(0,g.useMemo)(()=>({getBoundingClientRect:()=>{if(a!==null)return ml(a);const A=c.current;return A===null?pl:fl(A)}}),[c,a]),{refs:m,floatingStyles:x,update:b}=(0,M.useFloating)(xl({isOpen:p,tooltipAnchor:a,virtualReference:f}));if(l.current=b,!p)return null;const y=(0,o.jsx)("div",{ref:m.setFloating,role:"tooltip",className:dl,style:x,"data-testid":"chart-tooltip",children:(0,o.jsx)(s,{content:u})}),S=Z();return S?(0,St.createPortal)((0,o.jsx)(oe,{children:y}),S):y},Dn=({content:e})=>{const t=ne(),r=C(n=>n.coordSystem);return(0,o.jsxs)("div",{className:nl,children:[e.comment!==null&&(0,o.jsx)("div",{className:"_19519k82",children:(0,o.jsx)(Ee,{content:e.comment})}),e.header!==null&&(0,o.jsx)("div",{className:"_19519k81","data-testid":"chart-tooltip-header",children:e.header}),(0,o.jsx)("div",{className:ol,children:e.rows.map(n=>{const a=t(n.geom,r.type);return(0,o.jsx)(bl,{row:n,swatchShape:a?.swatchShape??"square",shouldHighlight:n.isPrimary&&e.rows.length>1},n.key)})})]})},fl=e=>({x:e.clientX,y:e.clientY,top:e.clientY,left:e.clientX,right:e.clientX,bottom:e.clientY,width:0,height:0,toJSON:()=>({})}),ml=e=>({x:e.x,y:e.y,top:e.y,left:e.x,right:e.x,bottom:e.y,width:0,height:0,toJSON:()=>({})}),xl=({isOpen:e,tooltipAnchor:t,virtualReference:r})=>({open:e,placement:t!==null?t.placement:"right",middleware:t!==null?[(0,M.offset)(h.ANNOTATION_TOOLTIP_MARKER_GAP),(0,M.shift)(Fe),(0,M.flip)(Fe)]:[(0,M.offset)(hl),(0,M.flip)(Fe),(0,M.shift)(Fe)],elements:{reference:r}}),bl=({row:e,swatchShape:t,shouldHighlight:r})=>(0,o.jsxs)("div",{className:(0,B.default)(al,{[il]:r}),"data-testid":"chart-tooltip-row",children:[e.swatchColor===null?(0,o.jsx)("span",{className:sl,"aria-hidden":!0}):(0,o.jsx)(Le,{shape:t,color:e.swatchColor,surface:"tooltip",label:e.label,lineType:e.swatchLineType}),(0,o.jsx)("span",{className:ll,children:e.label}),(0,o.jsx)("span",{className:cl,children:e.value})]}),He={plansByLayerId:null,coordKey:null,chromeDelaySeconds:0},Bt=(0,g.createContext)(He),Al=({intro:e,children:t})=>{const{layers:r,coordSystem:n,scales:a}=C((0,D.useShallow)(s=>({layers:s.layers,coordSystem:s.coordSystem,scales:s.scales}))),[i]=(0,g.useState)(()=>Pl({layers:r,coordSystem:n,scales:a,intro:e}));return(0,o.jsx)(Bt.Provider,{value:i,children:t})},yl=()=>(0,g.useContext)(Bt).chromeDelaySeconds,Sl=e=>{const{plansByLayerId:t,coordKey:r}=(0,g.useContext)(Bt),n=C(a=>Fn(a.coordSystem));return t===null||r!==n?null:t.get(e)??null},Pl=({layers:e,coordSystem:t,scales:r,intro:n})=>{if(!n.enabled||e.reduce((s,l)=>s+(0,h.countLayerGeoms)(l),0)>n.maxAnimatedGeoms)return He;const a={durationScale:n.durationScale,stagger:n.stagger,staggerOrder:n.staggerOrder},i=new Map;for(const s of e){const l=(0,h.buildLayerIntroPlan)({layer:s,coordSystem:t,scales:r,options:a});l!==null&&i.set(s.id,l)}return i.size===0?He:{plansByLayerId:i,coordKey:Fn(t),chromeDelaySeconds:ms*n.durationScale}},Fn=e=>e.type==="cartesian"?`cartesian-${e.mainAxis}`:e.type,wl=({textMeasurer:e,textScale:t,metrics:r})=>{const{tickLabelOffset:n,fonts:a}=r,i=z(a.tickLabel,t);return s=>{const l=s.position==="top"||s.position==="bottom",c=s.ticks.map(u=>e.measureText(u.formattedLabel,i)),d=s.labelMaxWidthPx??Number.POSITIVE_INFINITY;if(l){if(s.labelRotation!==0){const u=c.map(p=>p.width);return cr(u,d)+2*n}return Math.max(...c.map(u=>u.height))+n}return cr(c.map(u=>u.width),d)+n}},cr=(e,t)=>Math.min(Math.max(...e),t),jl=({textScale:e,metrics:t})=>{const r=z(t.fonts.axisLabel,e).size;return()=>r},kl={dataLabel:{x:h.DATA_LABEL_PADDING_X_PX,y:h.DATA_LABEL_PADDING_Y_PX},stackTotal:{x:h.STACK_TOTAL_PADDING_X_PX,y:h.STACK_TOTAL_PADDING_Y_PX},categoryLabel:{x:h.DATA_LABEL_PADDING_X_PX,y:h.DATA_LABEL_PADDING_Y_PX}},Gn=({textMeasurer:e,textScale:t,metrics:r})=>{const n={dataLabel:z(r.fonts.dataLabel,t),stackTotal:z(r.fonts.stackTotal,t),categoryLabel:z(r.fonts.categoryLabel,t)};return(a,i)=>{const s=e.measureText(i,n[a]),l=kl[a];return{...s,width:s.width+l.x*2,height:s.height+l.y*2}}},Cl=({textMeasurer:e,textScale:t,metrics:r})=>(n,a)=>{const{labelLineHeight:i,labelFontWeight:s}=(0,h.getDifferenceArrowDimensions)(a,t);return e.measureText(n,{family:r.fonts.familyDefault,size:i,weight:s})},El=({textMeasurer:e,textScale:t,metrics:r})=>(n,a)=>{const i=Hn(n,a,e,t,r);return{width:Vn(i.map(s=>s.width))+Math.max(0,i.length-1)*r.headlineItemGap,height:Math.max(0,...i.map(s=>s.height))}},Rl=({textMeasurer:e,textScale:t,metrics:r})=>(n,a)=>Hn(n,a,e,t,r).map(i=>i.width),Ll=({textMeasurer:e,textScale:t,metrics:r})=>(n,a)=>{const i=mt("value",a,t,r.fonts.familyDefault);return{width:e.measureText(n,i).width,height:i.size*Yr}},Tl=({textMeasurer:e,textScale:t,metrics:r})=>{const n=El({textMeasurer:e,textScale:t,metrics:r}),a=Ll({textMeasurer:e,textScale:t,metrics:r});return(i,s)=>i.kind==="perGroup"?n(i,s):a(i.value,s)},Hn=(e,t,r,n,a)=>{const i={value:mt("value",t,n,a.fonts.familyDefault),label:mt("label",t,n,a.fonts.familyDefault)},s=l=>Bl(l,i,r);return e.items.map(l=>{const c=(0,h.createHeadlineItemRows)(l).map(s),d=Math.max(0,c.length-1)*a.headlineRowGap;return{width:Math.max(0,...c.map(u=>u.width)),height:Vn(c.map(u=>u.height))+d}})},Bl=(e,t,r)=>{let n=0,a=0;for(const i of e.segments)if(i.kind==="text"){const s=t[i.fontRole];n+=r.measureText(i.text,s).width,a=Math.max(a,s.size*Yr)}else n+=i.size,a=Math.max(a,i.size);return{width:n+Math.max(0,e.segments.length-1)*e.gap,height:a}},mt=(e,t,r,n)=>({family:n,size:_e(e==="value"?Qa[t]:Xa[t],r)}),Vn=e=>e.reduce((t,r)=>t+r,0),Mt=(e,t)=>z(e,t).size*e.lineHeight,Wn=(e,t)=>e?t:0,Ml=({textMeasurer:e,textScale:t,metrics:r})=>n=>{const a=Mt(r.fonts.legendLabel,t),i=z(r.fonts.legendLabel,t);if(n.position==="top"||n.position==="bottom")return Math.max(a,r.legendSwatchHeight)+r.legendPillVerticalChrome;const s=n.items.map(l=>{const c=e.measureText(l.formattedLabel,i).width,d=Wn(l.visual.color,r.legendSwatchWidth);return d+(d>0?r.legendSwatchGap:0)+c});return Math.max(...s)+r.legendPillHorizontalChrome},Nl=({textMeasurer:e,textScale:t,metrics:r})=>{const n=z(r.fonts.tickLabel,t);return a=>e.measureText(a,n)},Il=Object.freeze({}),Ol=(e,t,r,n=Il)=>{const a=(0,g.useRef)(n);return a.current=n,(0,g.useMemo)(()=>{if(!e)return null;const i=wl({textMeasurer:e,textScale:t,metrics:r}),s=jl({textScale:t,metrics:r}),l=Ml({textMeasurer:e,textScale:t,metrics:r}),c=Tl({textMeasurer:e,textScale:t,metrics:r}),d=Rl({textMeasurer:e,textScale:t,metrics:r}),u={measureText:(p,f)=>e.measureText(p,f),textScale:t};return{measureAxis:p=>{if(Fl(p))return 0;const f=a.current.measureAxis;return f?f(p,u):i(p)},measureAxisLabel:p=>{const f=a.current.measureAxisLabel;return f?f(p,u):s()},measureLegend:p=>{if(Gl(p))return 0;const f=a.current.measureLegend;return f?f(p,u):l(p)},measureHeadline:(p,f)=>(a.current.measureHeadline??c)(p,f),measureHeadlineItemWidths:(p,f)=>(a.current.measureHeadlineItemWidths??d)(p,f),measureTickLabel:Nl({textMeasurer:e,textScale:t,metrics:r}),measureDifferenceArrowLabel:Cl({textMeasurer:e,textScale:t,metrics:r}),measureDataLabel:Gn({textMeasurer:e,textScale:t,metrics:r})}},[e,t,r])},Dl=({measurer:e,axes:t,numberFormat:r,parsingLocale:n,formattedLegends:a,containerSize:i,externalMeasurements:s,headline:l,formattingLocale:c,annotations:d,layers:u,coordSystem:p,textScale:f,overflowStrategy:m,layout:x,panelBorder:b})=>(0,g.useMemo)(()=>e?new h.LayoutCompiler(e).compile({axes:t,numberFormat:r,parsingLocale:n,formattedLegends:a,containerSize:i,externalMeasurements:s,headline:l,formattingLocale:c,annotations:d,layers:u,coordSystem:p,textScale:f,overflowStrategy:m,layout:x,panelBorder:b}):null,[t,r,n,a,i,s,m,l,c,d,u,p,f,x,b,e]),Fl=e=>!e.isVisible||e.ticks.length===0,Gl=e=>e.items.length===0,dr=.5,Un=(0,g.createContext)(new Map),zn=(0,g.createContext)(()=>{}),Yn=(0,g.createContext)(new Set),Hl=({children:e})=>{const[t,r]=(0,g.useState)(()=>new Map),[n]=(0,g.useState)(()=>new Set),a=(0,g.useRef)(new Map),i=(0,g.useCallback)((s,l,c)=>{const d=a.current.get(s)??new Set;if(c!==null){d.add(l),a.current.set(s,d),r(u=>Ul(u,s,c));return}d.delete(l),!(d.size>0)&&(a.current.delete(s),r(u=>zl(u,s)))},[]);return(0,o.jsx)(zn.Provider,{value:i,children:(0,o.jsx)(Yn.Provider,{value:n,children:(0,o.jsx)(Un.Provider,{value:t,children:e})})})},qn=()=>(0,g.useContext)(Un),Vl=()=>(0,g.useContext)(zn),Kn=e=>{const t=Vl(),r=(0,g.useId)(),n=(0,g.useRef)(null);return(0,g.useEffect)(()=>{if(typeof ResizeObserver>"u")return;const a=n.current;if(a===null)return;const i=()=>t(e,r,{width:a.offsetWidth,height:a.offsetHeight});i();const s=new ResizeObserver(i);return s.observe(a),()=>{s.disconnect(),t(e,r,null)}},[e,r,t]),n},Wl=()=>(0,g.useContext)(Yn),Ul=(e,t,r)=>{const n=e.get(t);if(n!==void 0&&Math.abs(n.width-r.width)<dr&&Math.abs(n.height-r.height)<dr)return e;const a=new Map(e);return a.set(t,r),a},zl=(e,t)=>{if(!e.has(t))return e;const r=new Map(e);return r.delete(t),r},Nt="data-edit-kind",Qn="data-edit-id",Xn="observation",Yl=new Set(["annotation"]),ql=e=>Yl.has(e.kind),Kl=(e,t)=>e===t?!0:e===null||t===null||e.kind!==t.kind?!1:e.id===t.id,Te=e=>({[Nt]:e.kind,[Qn]:e.id}),Ql=()=>({[Nt]:Xn}),Xl=(e,t)=>e!==null&&e.annotationId===t?e:null,Jl=(e,t)=>e.annotationId===t.annotationId&&e.translation.x===t.translation.x&&e.translation.y===t.translation.y,Zl=(e,t,r)=>e!==null&&e.annotationId===t&&e.endpoint===r?e:null,_l=(e,t)=>e.annotationId===t.annotationId&&e.endpoint===t.endpoint&&(0,h.areAnchorsEqual)(e.point.anchor,t.point.anchor),It=({standingInteraction:e},t)=>e!==null&&ec(e,t)?e:null,$l=(e,t)=>{if(e===null)return!1;switch(t.kind){case"endpoint-drag":return e.kind==="endpoint-drag"&&_l(e,t);case"move-drag":return e.kind==="move-drag"&&Jl(e,t);case"chrome-popup":return e.kind==="chrome-popup";case"menu":return!1}},ec=(e,t)=>e.kind===t,Jn=()=>(0,Er.createStore)(e=>({menuTrigger:null,chromeUnderPointer:null,editTargetUnderPointer:null,standingInteraction:null,setMenuTrigger:t=>e(r=>(0,h.areEditMenuTriggersEqual)(r.menuTrigger,t)?r:{menuTrigger:t}),setChromeUnderPointer:t=>e({chromeUnderPointer:t}),setEditTargetUnderPointer:t=>e(r=>Kl(r.editTargetUnderPointer,t)?r:{editTargetUnderPointer:t}),claimInteraction:t=>e(r=>$l(r.standingInteraction,t)?r:{standingInteraction:t}),releaseInteraction:t=>e(r=>r.standingInteraction?.kind===t?{standingInteraction:null}:r)})),Ot=(0,g.createContext)(null),tc=Jn(),rc=({children:e})=>{const[t]=(0,g.useState)(()=>Jn());return(0,o.jsx)(Ot.Provider,{value:t,children:e})},nc=()=>{const e=(0,g.useContext)(Ot);if(e===null)throw new Error("useEditorStore must be used inside an <EditorProvider>.");return e};function me(e){return(0,Re.useStore)((0,g.useContext)(Ot)??tc,e)}var Zn=(0,g.createContext)(null),oc=({panelRect:e,children:t})=>{const r=ac(e);return(0,o.jsx)(Zn.Provider,{value:r,children:t})},_n=()=>{const e=(0,g.useContext)(Zn);if(e===null)throw new Error("Difference arrows read outside a <DifferenceArrowsProvider>.");return e},ac=e=>{const{formattingLocale:t}=q(),r=se(),{fonts:n}=Q(),a=me(b=>It(b,"endpoint-drag")),{differenceArrows:i,mainAxis:s,textScale:l,parsingLocale:c}=C((0,D.useShallow)(b=>({differenceArrows:b.annotations.differenceArrows,mainAxis:b.coordSystem.type==="cartesian"?b.coordSystem.mainAxis:"x",textScale:b.config.appearance.textScale,parsingLocale:b.config.parsingLocale}))),d=t??c,{width:u,height:p}=e,f=(0,g.useMemo)(()=>({mainAxis:s,panelWidth:u,panelHeight:p,textScale:l,locale:d}),[s,u,p,l,d]),m=(0,g.useMemo)(()=>ic(r,n.familyDefault),[r,n.familyDefault]),x=(0,g.useMemo)(()=>i.map(b=>{const y=ur(b,f,m);return{...y,arrow:b,committedArrow:b,committedLabelBox:y.labelBox,committedLabelText:y.labelText,isDragged:!1,hasComparableEndpoints:(0,h.areEndpointsComparable)(b.start,b.end)}}),[i,f,m]);return(0,g.useMemo)(()=>a===null?x:x.map(b=>{if(b.id!==a.annotationId)return b;const y=sc(b.committedArrow,a);return{...ur(y,f,m),arrow:y,committedArrow:b.committedArrow,committedLabelBox:b.committedLabelBox,committedLabelText:b.committedLabelText,isDragged:!0,hasComparableEndpoints:(0,h.areEndpointsComparable)(y.start,y.end)}}),[x,a,f,m])},ur=(e,t,r)=>{const n=(0,h.computeDifferenceArrow)({arrow:e,...t});return{...n,labelBox:(0,h.getDifferenceArrowLabelBox)({labelPosition:n.labelPosition,measuredTextWidth:r(n.labelText,n.labelLineHeight,n.labelFontWeight),labelLineHeight:n.labelLineHeight,labelPaddingX:n.labelPaddingX,labelPaddingY:n.labelPaddingY})}},ic=(e,t)=>{const r=new Map;return(n,a,i)=>{const s=`${a}|${i}|${n}`,l=r.get(s);if(l!==void 0)return l;const{width:c}=e.measureText(n,{family:t,size:a,weight:i});return r.set(s,c),c}},sc=(e,t)=>{const r=t.endpoint==="start"?t.point:e.start,n=t.endpoint==="end"?t.point:e.end;return{...e,start:r,end:n,color:(0,h.resolveArrowColor)(e.ownColor,r,n)}},lc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABgCAYAAAC65+QhAAAKo0lEQVR42u2de4wdVR3HPzN32+oSUQSsikEoosR3iko08oovEkwMp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/t2jIUUNrJJkbBhxQIU5+Dy3SdSVEpx949JcNpV1NraW7wKxxhWj2ezIi+7VxJrq1o2DivhNr0OS9qUBFCkvN4XgDO6lazdphrvVJUFD5j1jmV5+QdMOFExzD3jGdKOGLcud1Gv0P/rGVyH29B6MiWcmBbARiVAHBNg9srvsqQdV3cDIXuz9ut88Tpp4cSi5I77RSWLGdKOGxUoBXq0Z8cW2C7D8X+n0XFXUtz9nJRhz1lt3xJkFxdvUMV7b7/K5tuAdEStpWgr8MpeVbNGVoHPwG20n6lBs21DhiGVLK9agOrZrwtxq7ePGm48X5PfgeuJWdvN381CG7+pIlBbfryEXCJpxlqRtBG10oHa6NXVx/8Ba+cluUx5B18AAAAASUVORK5CYII=",cc=({className:e})=>(0,o.jsx)("img",{src:lc,alt:"","aria-hidden":"true",className:e,draggable:!1}),dc="https://graphy.app/?utm_source=chart-mark&utm_medium=embed",uc="Made with Graphy — open graphy.app";var hc="vultop0";var gc="vultop2",pc="vultop3",vc="vultop4",fc="vultop5",mc="vultop6",xc="vultop7",bc=e=>{const t=Ac(e.trim());if(t===null)return"light";const r=yc(t);return r<=.22?"dark":r<=.65?"mid":"light"},Ac=e=>{if(!e.startsWith("#"))return null;const t=e.slice(1);if(t.length===3){const r=t[0],n=t[1],a=t[2];return r===void 0||n===void 0||a===void 0?null:{red:Number.parseInt(r+r,16),green:Number.parseInt(n+n,16),blue:Number.parseInt(a+a,16)}}return t.length===6||t.length===8?{red:Number.parseInt(t.slice(0,2),16),green:Number.parseInt(t.slice(2,4),16),blue:Number.parseInt(t.slice(4,6),16)}:null},yc=({red:e,green:t,blue:r})=>{const n=a=>{const i=a/255;return i<=.03928?i/12.92:((i+.055)/1.055)**2.4};return .2126*n(e)+.7152*n(t)+.0722*n(r)},$n=(e,t,r="full")=>!e||t.width<120||t.height<80?"hidden":t.width<200||r==="mini"?"mini":"full",Dt=({visual:e,placement:t})=>{const{colorScheme:r,themeValues:n}=Ae(),a=bc(Tn(C(i=>i.config.appearance).background,r,n.graphBackground)??n.graphBackground);return(0,o.jsxs)("a",{className:(0,B.default)(hc,e==="mini"&&"vultop1",t==="footer"?mc:xc),href:dc,target:"_blank",rel:"noopener noreferrer","aria-label":uc,"data-visual":e,"data-zone":a,children:[(0,o.jsx)("span",{className:gc,children:(0,o.jsx)(cc,{className:pc})}),(0,o.jsxs)("span",{className:vc,children:[(0,o.jsx)("span",{children:"Made with"}),(0,o.jsx)("span",{className:fc,children:"Graphy"})]})]})},Ft=()=>{const{commands:e}=q();return e},Sc="data-variant",eo=ca.Paragraph.extend({addAttributes(){return{variant:{default:null,parseHTML:e=>e.getAttribute("data-variant")??null,renderHTML:e=>e.variant?{[Sc]:e.variant}:{}}}}}),Pc=la.Extension.create({name:"preventBackspaceAcrossTitleBoundary",addOptions(){return{isTitleVisible:!0}},addKeyboardShortcuts(){return{Backspace:({editor:e})=>{if(!this.options.isTitleVisible)return!1;const{selection:t}=e.state;if(!t.empty)return!1;const{$from:r}=t;return r.depth!==1||r.parentOffset!==0?!1:r.index(0)===1}}}}),wc=({titlePlaceholder:e,subtitlePlaceholder:t,isTitleVisible:r,isSubtitleVisible:n})=>[kc({isTitleVisible:r,isSubtitleVisible:n}),eo,Ir.Text,We.UndoRedo,Br.Heading.configure({levels:[1,2,3]}),Lr.Bold,Mr.Italic,Dr.Underline,Or.TextAlign.configure({types:["heading","paragraph"]}),Nr.Link.configure({openOnClick:!1,autolink:!0}),ge.TextStyle,ge.Color,ge.FontFamily,Tr.HardBreak,Pc.configure({isTitleVisible:r}),We.Placeholder.configure({showOnlyCurrent:!1,placeholder:({pos:a,editor:i})=>{if(r&&a===0)return e;const s=r?i.state.doc.firstChild?.nodeSize??-1:0;return n&&a===s?t:""}})],jc=({placeholder:e})=>[ht.Document,eo,Ir.Text,We.UndoRedo,Br.Heading.configure({levels:[1,2,3]}),Lr.Bold,Mr.Italic,Dr.Underline,Or.TextAlign.configure({types:["heading","paragraph"]}),Nr.Link.configure({openOnClick:!1,autolink:!0}),ge.TextStyle,ge.Color,ge.FontFamily,Tr.HardBreak,We.Placeholder.configure({showOnlyCurrent:!1,placeholder:({pos:t})=>t===0?e:""})],kc=({isTitleVisible:e,isSubtitleVisible:t})=>e&&t?ht.Document.extend({content:"block{2,}"}):ht.Document,Cc="yl2d2l0";var to="yl2d2l3",Ec="yl2d2l4",ro="yl2d2l5",xt="yl2d2l6",Rc="yl2d2l7",Lc="yl2d2l8",no="yl2d2l9",Tc="yl2d2la",Bc="yl2d2lb",Mc="yl2d2lc",Nc="yl2d2ld",Ic="yl2d2le",Oc=v.CANVAS_COLOR_KEYS.map(e=>v.vars[e]),Dc=Object.fromEntries(v.CANVAS_COLOR_KEYS.map(e=>[v.vars[e],e])),Fc=({color:e,onChange:t,isOpen:r,onOpenChange:n,children:a,label:i,popupAttributes:s})=>{const l=_(),c=Hc(),d=u=>{t(u),n(!1)};return(0,o.jsxs)(I.Popover.Root,{open:r,onOpenChange:n,children:[(0,o.jsx)(I.Popover.Trigger,{render:(0,o.jsx)(re.Toolbar.Button,{}),"aria-label":i??l("graph.toolbar.color.label"),className:Cc,onMouseDown:u=>u.preventDefault(),children:a??(0,o.jsx)("span",{className:"yl2d2l1",style:{background:e??"transparent"}})}),(0,o.jsx)(I.Popover.Portal,{container:Z(),children:(0,o.jsx)(oe,{children:(0,o.jsx)(I.Popover.Positioner,{sideOffset:6,align:"start",className:to,children:(0,o.jsxs)(I.Popover.Popup,{className:Ec,onMouseDown:u=>u.preventDefault(),...s,children:[(0,o.jsx)(hr,{title:l("graph.colorDropdown.colors"),colors:Oc,currentColor:e,onPick:d}),c.length>0&&(0,o.jsx)(hr,{title:l("graph.colorDropdown.chartColors"),colors:c,currentColor:e,onPick:d}),(0,o.jsx)(Gc,{value:e??"#000000",onChange:t,popupAttributes:s})]})})})})]})},hr=({title:e,colors:t,currentColor:r,onPick:n})=>(0,o.jsxs)("div",{className:ro,children:[(0,o.jsx)("div",{className:xt,children:e}),(0,o.jsx)("div",{className:Rc,children:t.map(a=>(0,o.jsx)("button",{type:"button","aria-label":a,className:Lc,"data-active":Wc(a,r),onMouseDown:i=>i.preventDefault(),onClick:()=>n(a),children:(0,o.jsx)("span",{className:no,style:oo(a)})},a))})]}),Gc=({value:e,onChange:t,popupAttributes:r})=>{const n=_(),[a,i]=(0,g.useState)(!1),s=Za(e)?e:"#000000",l=Vc(s);return(0,o.jsxs)(I.Popover.Root,{open:a,onOpenChange:i,children:[(0,o.jsxs)("div",{className:ro,children:[(0,o.jsx)("div",{className:xt,children:n("graph.colorDropdown.custom")}),(0,o.jsxs)(I.Popover.Trigger,{className:Tc,onMouseDown:c=>c.preventDefault(),"aria-label":n("graph.colorDropdown.pickCustom"),children:[(0,o.jsx)("span",{className:no,style:oo(s)}),(0,o.jsx)("span",{className:Bc,children:l})]})]}),(0,o.jsx)(I.Popover.Portal,{container:Z(),children:(0,o.jsx)(oe,{children:(0,o.jsx)(I.Popover.Positioner,{side:"right",align:"start",sideOffset:18,className:to,children:(0,o.jsxs)(I.Popover.Popup,{className:Mc,onMouseDown:c=>c.preventDefault(),...r,children:[(0,o.jsx)("div",{className:xt,children:n("graph.colorDropdown.pickColor")}),(0,o.jsx)(Yt.HexColorPicker,{color:l,onChange:t,className:Nc}),(0,o.jsx)(Yt.HexColorInput,{color:l,onChange:t,prefixed:!0,className:Ic,onMouseDown:c=>c.stopPropagation()})]})})})})]})},Hc=()=>{const e=C(t=>t.scales.color);return(0,g.useMemo)(()=>{if(!e||e.kind!=="visual")return[];const t=new Set;for(const r of e.domain){const n=e.map(r);typeof n=="string"&&t.add(n)}return[...t]},[e])},oo=e=>({background:e,border:`1px solid ${Ze(e,.1)}`}),Vc=e=>{const{themeValues:t}=Ae();if(Ja(e))return e.toUpperCase();const r=Dc[e];return r?t[r].toUpperCase():"#000000"},Wc=(e,t)=>t===null?!1:e.toLowerCase()===t.toLowerCase(),Uc="_1ebx0ha0",zc="_1ebx0ha1",Yc="_1ebx0ha2",qc=({className:e,...t})=>(0,o.jsx)(de.Tooltip.Provider,{children:(0,o.jsx)(re.Toolbar.Root,{...t,className:(0,B.default)(Uc,e)})}),Kc=({className:e,...t})=>(0,o.jsx)(re.Toolbar.Group,{...t,className:(0,B.default)(zc,e)}),Qc=({className:e,...t})=>(0,o.jsx)(re.Toolbar.Separator,{...t,className:(0,B.default)(Yc,e)}),Xc=({children:e})=>{const t=Z();return t===null?null:(0,St.createPortal)((0,o.jsx)(oe,{children:e}),t)},G={Portal:Xc,Root:qc,Group:Kc,Separator:Qc,Button:re.Toolbar.Button,ColorPicker:Fc},Jc={xxs:8,xs:12,sm:16,md:20,lg:24,xl:36},Zc={primary:"asohov1 asohov0",secondary:"asohov2 asohov0"},$=({children:e,title:t,variant:r="primary",size:n="sm",...a})=>{const i=(0,g.useId)(),s=Jc[n];return(0,o.jsxs)("svg",{className:Zc[r],"aria-labelledby":t?i:void 0,height:s,width:s,fill:"none",viewBox:"0 0 24 24",role:"img",...a,children:[t&&(0,o.jsx)("title",{id:i,children:t}),e]})},Gt=e=>(0,o.jsx)($,{...e,children:(0,o.jsx)("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,o.jsx)("path",{d:"m6 9 6 6 6-6"})})}),_c="'Noto Serif', Georgia, 'Times New Roman', serif, 'Apple Color Emoji', 'NotoColorEmoji'",ao=`'Aeonik', 'Aeonik Fallback', ${v.DEFAULT_FONT_FAMILY}`,$c="'PT Mono', 'Courier New', monospace, 'Apple Color Emoji', 'NotoColorEmoji'",ed="'Intruding Cat', cursive, 'Apple Color Emoji', 'NotoColorEmoji'",td=`var(--brand-font-family), ${ao}`,bt=[{id:"modern",label:"Modern",preview:"Aa",fontFamily:v.DEFAULT_FONT_FAMILY},{id:"fresh",label:"Fresh",preview:"Aa",fontFamily:ao},{id:"timeless",label:"Timeless",preview:"Aa",fontFamily:_c},{id:"technical",label:"Technical",preview:"00",fontFamily:$c},{id:"fineliner",label:"Fineliner",preview:"Aa",fontFamily:ed},{id:"brand",label:"Brand",preview:"Aa",fontFamily:td}],rd=e=>e?bt.find(t=>t.fontFamily===e)??null:null,io="_1qkyw7q0",so="_1qkyw7q1",lo="_1qkyw7q3",co="_1qkyw7q4",uo="_1qkyw7q5",nd=({editor:e,currentFontFamily:t,isOpen:r,onOpenChange:n})=>{const a=_(),i=rd(t)??bt[0],s=l=>{e.chain().focus().setFontFamily(l.fontFamily).run()};return(0,o.jsxs)(H.Menu.Root,{open:r,onOpenChange:n,children:[(0,o.jsxs)(H.Menu.Trigger,{render:(0,o.jsx)(re.Toolbar.Button,{}),"aria-label":a("graph.toolbar.font.ariaLabel"),className:io,onMouseDown:l=>l.preventDefault(),children:[(0,o.jsx)("span",{className:so,style:{fontFamily:i?.fontFamily},children:i?.preview}),(0,o.jsx)(Gt,{size:"sm"})]}),(0,o.jsx)(H.Menu.Portal,{container:Z(),children:(0,o.jsx)(oe,{children:(0,o.jsx)(H.Menu.Positioner,{side:"bottom",align:"start",sideOffset:6,className:lo,children:(0,o.jsx)(H.Menu.Popup,{className:co,onMouseDown:l=>l.preventDefault(),children:bt.map(l=>(0,o.jsx)(H.Menu.Item,{className:uo,"data-selected":l.id===i?.id,onClick:()=>s(l),children:(0,o.jsx)("span",{style:{fontFamily:l.fontFamily},children:l.label})},l.id))})})})})]})},ho={id:"text",translationKey:"graph.toolbar.heading.text",previewFont:v.vars.fontTextEditorBody},gr=[{id:"caption",translationKey:"graph.toolbar.heading.caption",previewFont:v.vars.fontTextEditorH6},ho,{id:"h3",translationKey:"graph.toolbar.heading.heading3",previewFont:v.vars.fontTextEditorH3},{id:"h2",translationKey:"graph.toolbar.heading.heading2",previewFont:v.vars.fontTextEditorH2},{id:"h1",translationKey:"graph.toolbar.heading.heading1",previewFont:v.vars.fontTextEditorH1}],od=({editor:e,activeStyle:t,isOpen:r,onOpenChange:n})=>{const a=_(),i=gr.find(s=>s.id===t)??ho;return(0,o.jsxs)(H.Menu.Root,{open:r,onOpenChange:n,children:[(0,o.jsxs)(H.Menu.Trigger,{render:(0,o.jsx)(re.Toolbar.Button,{}),"aria-label":a("graph.toolbar.heading.ariaLabel"),className:io,onMouseDown:s=>s.preventDefault(),children:[(0,o.jsx)("span",{className:so,children:a(i.translationKey)}),(0,o.jsx)(Gt,{size:"sm"})]}),(0,o.jsx)(H.Menu.Portal,{container:Z(),children:(0,o.jsx)(oe,{children:(0,o.jsx)(H.Menu.Positioner,{side:"bottom",align:"start",sideOffset:6,className:lo,children:(0,o.jsx)(H.Menu.Popup,{className:co,onMouseDown:s=>s.preventDefault(),children:gr.map(s=>(0,o.jsx)(H.Menu.Item,{className:uo,"data-selected":s.id===i.id,onClick:()=>ad(e,s.id),children:(0,o.jsx)(id,{font:s.previewFont,children:a(s.translationKey)})},s.id))})})})})]})},ad=(e,t)=>{switch(t){case"caption":e.chain().focus().setNode("paragraph",{variant:"caption"}).run();return;case"text":e.chain().focus().setNode("paragraph",{variant:null}).run();return;case"h1":e.chain().focus().setHeading({level:1}).run();return;case"h2":e.chain().focus().setHeading({level:2}).run();return;case"h3":e.chain().focus().setHeading({level:3}).run()}},id=({font:e,children:t})=>(0,o.jsx)("span",{style:{font:e,margin:0},children:t}),go=e=>(0,o.jsx)($,{...e,children:(0,o.jsx)("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,o.jsx)("path",{d:"M20 6 9 17l-5-5"})})}),sd=e=>(0,o.jsx)($,{...e,children:(0,o.jsxs)("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),(0,o.jsx)("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})}),ld=e=>(0,o.jsx)($,{...e,children:(0,o.jsxs)("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("path",{d:"M18 6 6 18"}),(0,o.jsx)("path",{d:"m6 6 12 12"})]})}),cd=e=>!e.content||e.content.length===0?!0:e.content.every(t=>!t.content||t.content.length===0),dd=e=>{const{$from:t}=e.state.selection,r=t.parent.textContent,n=t.parentOffset,a=t.start();let i=n;for(;i>0&&pr(r[i-1]);)i-=1;let s=n;for(;s<r.length&&pr(r[s]);)s+=1;return{from:a+i,to:a+s}},pr=e=>e!==void 0&&/\S/.test(e),ud="b5kquu0",hd="b5kquu1",gd="b5kquu2",pd="b5kquu3",vr="b5kquu4",vd=({editor:e,currentUrl:t,isActive:r,isOpen:n,onOpenChange:a})=>{const i=_(),[s,l]=(0,g.useState)(""),c=(0,g.useRef)(null);(0,g.useEffect)(()=>{n&&l(t??"")},[n,t]);const d=()=>{fd(e,s),a(!1)},u=()=>{l(""),a(!1)},p=m=>{l(m.target.value)},f=m=>{m.key==="Enter"&&(m.preventDefault(),d())};return(0,o.jsxs)(I.Popover.Root,{open:n,onOpenChange:a,children:[(0,o.jsx)(I.Popover.Trigger,{render:(0,o.jsx)(re.Toolbar.Button,{}),"aria-label":i("graph.toolbar.formatting.link"),"data-active":r,className:ud,onMouseDown:m=>m.preventDefault(),children:(0,o.jsx)(sd,{})}),(0,o.jsx)(I.Popover.Portal,{container:Z(),children:(0,o.jsx)(oe,{children:(0,o.jsx)(I.Popover.Positioner,{sideOffset:6,align:"end",className:hd,children:(0,o.jsxs)(I.Popover.Popup,{className:gd,initialFocus:c,onMouseDown:m=>m.preventDefault(),children:[(0,o.jsx)("input",{ref:c,type:"url",value:s,placeholder:i("graph.toolbar.link.placeholder"),"aria-label":i("graph.toolbar.link.urlLabel"),className:pd,onMouseDown:m=>m.stopPropagation(),onChange:p,onKeyDown:f}),(0,o.jsx)("button",{type:"button","aria-label":i("common.cancel"),className:vr,onClick:u,children:(0,o.jsx)(ld,{})}),(0,o.jsx)("button",{type:"button","aria-label":i("graph.toolbar.link.apply"),className:vr,onClick:d,children:(0,o.jsx)(go,{})})]})})})})]})},fd=(e,t)=>{const r=t.trim(),{selection:n}=e.state;if(!r){e.chain().focus().extendMarkRange("link").unsetLink().run();return}if(!n.empty){e.chain().focus().setLink({href:r}).run();return}if(e.isActive("link")){e.chain().focus().extendMarkRange("link").setLink({href:r}).run();return}const a=dd(e);e.chain().focus().setTextSelection(a).setLink({href:r}).run()},md=e=>(0,o.jsx)($,{...e,children:(0,o.jsxs)("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("path",{d:"M21 5H3"}),(0,o.jsx)("path",{d:"M17 12H7"}),(0,o.jsx)("path",{d:"M19 19H5"})]})}),xd=e=>(0,o.jsx)($,{...e,children:(0,o.jsxs)("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("path",{d:"M21 5H3"}),(0,o.jsx)("path",{d:"M21 12H9"}),(0,o.jsx)("path",{d:"M21 19H7"})]})}),bd=e=>(0,o.jsx)($,{...e,children:(0,o.jsxs)("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("path",{d:"M21 5H3"}),(0,o.jsx)("path",{d:"M15 12H3"}),(0,o.jsx)("path",{d:"M17 19H3"})]})}),Ad="k91gos0",yd="k91gos1",Sd=6,ve=({label:e,isActive:t,onToggle:r,children:n})=>{const a=i=>i.preventDefault();return(0,o.jsxs)(de.Tooltip.Root,{children:[(0,o.jsx)(de.Tooltip.Trigger,{render:(0,o.jsx)(da.Toggle,{render:(0,o.jsx)(re.Toolbar.Button,{}),pressed:t,onPressedChange:()=>r()}),"aria-label":e,className:Ad,onMouseDown:a,children:n}),(0,o.jsx)(de.Tooltip.Portal,{container:Z(),children:(0,o.jsx)(oe,{children:(0,o.jsx)(de.Tooltip.Positioner,{sideOffset:Sd,children:(0,o.jsx)(de.Tooltip.Popup,{className:yd,children:e})})})})]})},Pd=({editor:e,activeAlignment:t="left"})=>{const r=_();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ve,{label:r("graph.toolbar.textAlign.left"),isActive:t==="left",onToggle:()=>e.chain().focus().setTextAlign("left").run(),children:(0,o.jsx)(bd,{})}),(0,o.jsx)(ve,{label:r("graph.toolbar.textAlign.center"),isActive:t==="center",onToggle:()=>e.chain().focus().setTextAlign("center").run(),children:(0,o.jsx)(md,{})}),(0,o.jsx)(ve,{label:r("graph.toolbar.textAlign.right"),isActive:t==="right",onToggle:()=>e.chain().focus().setTextAlign("right").run(),children:(0,o.jsx)(xd,{})})]})},wd="_1bp10ig0",jd=({editor:e})=>({isBold:e?.isActive("bold")??!1,isItalic:e?.isActive("italic")??!1,isUnderline:e?.isActive("underline")??!1,isLink:e?.isActive("link")??!1,linkUrl:e?.getAttributes("link").href??null,color:e?.getAttributes("textStyle").color??null,fontFamily:e?.getAttributes("textStyle").fontFamily??null,fontSize:kd(e),textAlign:Cd(e)}),kd=e=>e?e.isActive("heading",{level:1})?"h1":e.isActive("heading",{level:2})?"h2":e.isActive("heading",{level:3})?"h3":e.isActive("paragraph",{variant:"caption"})?"caption":"text":"text",Cd=e=>e?e.isActive({textAlign:"center"})?"center":e.isActive({textAlign:"right"})?"right":"left":"left",Ed=8,Rd=8,Ld=({editor:e})=>{const t=_(),[r,n]=(0,g.useState)(!1),[a,i]=(0,g.useState)(null),s=a!==null,l=m=>x=>{i(x?m:null)},{refs:c,floatingStyles:d}=(0,M.useFloating)({placement:"top-start",strategy:"fixed",middleware:[(0,M.offset)(Ed),(0,M.flip)(),(0,M.shift)({padding:Rd})],whileElementsMounted:M.autoUpdate}),u=(0,g.useRef)(null),p=(0,Pt.useEditorState)({editor:e,selector:jd}),f=(0,g.useCallback)(m=>{u.current=m,c.setFloating(m)},[c]);return(0,g.useEffect)(()=>{e&&c.setReference(e.view.dom)},[e,c]),(0,g.useEffect)(()=>{if(!e)return;const m=()=>n(!0),x=({event:b})=>{const{relatedTarget:y,currentTarget:S}=b,A=y instanceof Node&&u.current?.contains(y),P=y instanceof Node&&S instanceof Node&&S.contains(y);!A&&!P&&n(!1)};return e.on("focus",m),e.on("blur",x),()=>{e.off("focus",m),e.off("blur",x)}},[e]),!e||!r&&!s?null:(0,o.jsx)(G.Portal,{children:(0,o.jsxs)(G.Root,{ref:f,className:wd,style:d,children:[(0,o.jsxs)(G.Group,{children:[(0,o.jsx)(G.ColorPicker,{color:p?.color??null,onChange:m=>e.chain().setColor(m).run(),isOpen:a==="color",onOpenChange:l("color")}),(0,o.jsx)(nd,{editor:e,currentFontFamily:p?.fontFamily??null,isOpen:a==="fontFamily",onOpenChange:l("fontFamily")})]}),(0,o.jsx)(G.Separator,{}),(0,o.jsx)(G.Group,{children:(0,o.jsx)(od,{editor:e,activeStyle:p?.fontSize??"text",isOpen:a==="fontSize",onOpenChange:l("fontSize")})}),(0,o.jsx)(G.Separator,{}),(0,o.jsxs)(G.Group,{children:[(0,o.jsx)(ve,{label:t("graph.toolbar.formatting.bold"),isActive:p?.isBold??!1,onToggle:()=>e.chain().focus().toggleBold().run(),children:(0,o.jsx)("strong",{children:"B"})}),(0,o.jsx)(ve,{label:t("graph.toolbar.formatting.italic"),isActive:p?.isItalic??!1,onToggle:()=>e.chain().focus().toggleItalic().run(),children:(0,o.jsx)("em",{children:"I"})}),(0,o.jsx)(ve,{label:t("graph.toolbar.formatting.underline"),isActive:p?.isUnderline??!1,onToggle:()=>e.chain().focus().toggleUnderline().run(),children:(0,o.jsx)("u",{children:"U"})})]}),(0,o.jsx)(G.Separator,{}),(0,o.jsx)(G.Group,{children:(0,o.jsx)(Pd,{editor:e,activeAlignment:p?.textAlign})}),(0,o.jsx)(G.Separator,{}),(0,o.jsx)(G.Group,{children:(0,o.jsx)(vd,{editor:e,currentUrl:p?.linkUrl??null,isActive:p?.isLink??!1,isOpen:a==="link",onOpenChange:l("link")})})]})})},Td="_2ngohc0",po=({editor:e,ariaLabel:t})=>(0,o.jsxs)("div",{className:Td,children:[(0,o.jsx)(Ld,{editor:e}),(0,o.jsx)(Pt.EditorContent,{editor:e,"aria-label":t})]}),Bd=200,vo=({content:e,extensions:t,isEditable:r,onUpdate:n,updateDebounceMs:a=Bd})=>{const i=(0,g.useRef)(fr(e)),s=(0,g.useRef)(!1),l=jn(d=>{s.current=!0,n?.(d)},a),c=(0,Pt.useEditor)({extensions:t,content:i.current,editable:r,immediatelyRender:!1,onUpdate:({editor:d})=>l.run(d.getJSON())});return(0,g.useEffect)(()=>{c?.setEditable(r)},[c,r]),(0,g.useEffect)(()=>{if(!c)return;if(s.current){s.current=!1;return}const d=fr(e),u=c.getJSON();Md(u,d)||(l.cancel(),c.commands.setContent(d,{emitUpdate:!1}))},[c,e,l]),(0,g.useEffect)(()=>()=>l.flush(),[l]),c},fr=e=>e===null?{type:"doc",content:[]}:typeof e=="string"?{type:"doc",content:[{type:"paragraph",content:e?[{type:"text",text:e}]:[]}]}:e,Md=(e,t)=>JSON.stringify(e)===JSON.stringify(t);var Nd="_4dlrid1",Id="xfz7dq0";var Od="xfz7dq2",Dd="xfz7dq3",Fd="xfz7dq4",Gd="xfz7dq5",fo=({ref:e,footerRect:t,mode:r="readonly",caption:n,isCaptionVisible:a,source:i,isSourceVisible:s,brandMark:l})=>{const c=r==="editable",d=a&&(c||n!==null),u=s&&i!==null&&Ud(i),p=l!=="hidden";return!d&&!u&&!p?null:(0,o.jsxs)("div",{ref:e,className:Id,style:{left:t.x,top:t.y,width:t.width},children:[d?c?(0,o.jsx)(zd,{caption:n}):(0,o.jsx)(Hd,{caption:n}):null,(u||p)&&(0,o.jsxs)("div",{className:"xfz7dq1",children:[u&&(0,o.jsx)(Vd,{source:i}),l!=="hidden"?(0,o.jsx)(Dt,{visual:l,placement:"footer"}):null]})]})},Hd=({caption:e})=>e===null?null:typeof e=="string"?(0,o.jsx)("p",{className:Nd,children:e}):(0,o.jsx)(Ee,{content:e}),Vd=({source:e})=>{const t=(0,h.isSafeUrl)(e.url)?e.url:void 0,r=e.label??(t!==void 0?Wd(t):"");return r===""&&t===void 0?null:(0,o.jsxs)("span",{className:Od,children:[(0,o.jsx)("span",{className:Fd,children:"Source:"}),t!==void 0?(0,o.jsx)("a",{className:Dd,href:t,target:"_blank",rel:"noopener noreferrer",children:r}):(0,o.jsx)("span",{className:Gd,children:r})]})},Wd=e=>{try{return new URL(e).hostname}catch{return e}},Ud=e=>e.label!==void 0&&e.label!==""||e.url!==void 0&&e.url!==""&&(0,h.isSafeUrl)(e.url),zd=({caption:e})=>{const{dispatch:t}=Ft();return(0,o.jsx)(po,{editor:vo({content:e,extensions:(0,g.useMemo)(()=>jc({placeholder:"Add caption"}),[]),isEditable:!0,onUpdate:r=>{const n=cd(r)?null:r;t(new h.SetContentCaptionCommand({caption:n}))}}),ariaLabel:"Chart caption"})},Yd="_1k4qtbg0";var qd=3,Kd=({title:e,isTitleVisible:t,subtitle:r,isSubtitleVisible:n})=>{const a=[];return t&&a.push({type:"heading",attrs:{level:qd},content:Xd(e)}),n&&a.push(...Jd(r)),{type:"doc",content:a}},Qd=e=>{const[t,...r]=e.content??[];return{title:Zd(t?.content??[]),subtitle:_d(r)}},Ht=e=>({type:e.type??"text",...e.content!==void 0?{content:e.content.map(Ht)}:{},...e.text!==void 0?{text:e.text}:{},...e.marks!==void 0?{marks:e.marks}:{},...e.attrs!==void 0?{attrs:e.attrs}:{}}),Xd=e=>e===null?[]:typeof e=="string"?e===""?[]:[{type:"text",text:e}]:e.type==="doc"&&e.content?e.content.flatMap(t=>t.content??[]):e.type==="text"||e.type==="hardBreak"?[e]:e.content??[],Jd=e=>e===null?[{type:"paragraph"}]:typeof e=="string"?e===""?[{type:"paragraph"}]:[{type:"paragraph",content:[{type:"text",text:e}]}]:e.type==="doc"&&e.content?e.content.length===0?[{type:"paragraph"}]:e.content.map(mr):[mr(e)],mr=e=>e.type==="paragraph"?e:{type:"paragraph",content:e.content??[e]},Zd=e=>{if(e.length===0)return null;const[t]=e;return t&&e.length===1&&t.type==="text"&&(!t.marks||t.marks.length===0)?t.text??null:{type:"paragraph",content:e.map(Ht)}},_d=e=>{const t=e.filter(n=>(n.content??[]).length>0);if(t.length===0)return null;const[r]=t;if(r&&t.length===1&&r.type==="paragraph"){const n=r.content??[],[a]=n;if(a&&n.length===1&&a.type==="text"&&(!a.marks||a.marks.length===0))return a.text??null}return{type:"doc",content:t.map(Ht)}},$d=22,mo=({ref:e,headerRect:t,mode:r="readonly",title:n,isTitleVisible:a,subtitle:i,isSubtitleVisible:s,brandMark:l})=>{const c=r==="editable",d=a&&(c||n!==null),u=s&&(c||i!==null),p=l!=="hidden";return!d&&!u&&!p?null:(0,o.jsxs)("div",{ref:e,className:(0,B.default)(Yd,p&&"_1k4qtbg1"),style:{left:t.x,top:t.y,width:t.width,...p&&!d&&!u?{minHeight:$d}:{}},children:[c?(0,o.jsx)(tu,{title:n,isTitleVisible:a,isSubtitleVisible:s,subtitle:i},[a?"title":"",s?"subtitle":""].join("-")):(0,o.jsx)(eu,{title:n,isTitleVisible:a,isSubtitleVisible:s,subtitle:i}),l!=="hidden"?(0,o.jsx)(Dt,{visual:l,placement:"header"}):null]})},eu=({title:e,isTitleVisible:t,isSubtitleVisible:r,subtitle:n})=>{const a=t&&e!==null,i=r&&n!==null;return(0,o.jsxs)(o.Fragment,{children:[a&&(typeof e=="string"?(0,o.jsx)("h1",{className:"_4dlrid0",children:e}):(0,o.jsx)(Ee,{content:e})),i&&(typeof n=="string"?(0,o.jsx)("p",{className:"_4dlrid1",children:n}):(0,o.jsx)(Ee,{content:n}))]})},tu=({title:e,isTitleVisible:t,isSubtitleVisible:r,subtitle:n})=>{const{dispatch:a}=Ft(),i=(0,g.useMemo)(()=>wc({titlePlaceholder:"Untitled",subtitlePlaceholder:"Untitled",isTitleVisible:t,isSubtitleVisible:r}),[t,r]);return(0,o.jsx)(po,{editor:vo({content:(0,g.useMemo)(()=>Kd({title:e,isTitleVisible:t,subtitle:n,isSubtitleVisible:r}),[e,t,n,r]),extensions:i,isEditable:!0,onUpdate:s=>{const l=Qd(s);t&&a(new h.SetContentTitleCommand({title:l.title})),r&&a(new h.SetContentSubtitleCommand({subtitle:l.subtitle}))}}),ariaLabel:"Chart title and subtitle"})},ru="_1u9qprb0",nu="_1u9qprb1",ou=oa({groupRow:()=>su,item:()=>xo,trendRow:()=>iu,valueRow:()=>au}),au="_9aen060",iu="_9aen061",su="_9aen062",xo="_9aen063",lu=e=>(0,o.jsx)($,{...e,children:(0,o.jsxs)("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("path",{d:"m5 12 7-7 7 7"}),(0,o.jsx)("path",{d:"M12 19V5"})]})}),cu=e=>(0,o.jsx)($,{...e,children:(0,o.jsx)("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,o.jsx)("path",{d:"M5 12h14"})})}),bo="n7clvo0",du="n7clvo1",uu="n7clvo2",hu="n7clvo3",Ao={small:"n7clvo4",medium:"n7clvo5",large:"n7clvo6"},gu={small:"n7clvo7",medium:"n7clvo8",large:"n7clvo9"},pu={up:"n7clvoa",down:"n7clvob",flat:"n7clvoc"},vu={up:"n7clvoe n7clvod",down:"n7clvof n7clvod",flat:"n7clvog n7clvod"},fu=({segment:e,resolvedSize:t})=>{const r=ne();if(e.kind==="swatch")return(0,o.jsx)(Le,{shape:r(e.swatch.geom,"cartesian")?.swatchShape??"square",color:e.swatch.color,surface:"headline",width:e.size,height:e.size});if(e.kind==="trendArrow")return(0,o.jsx)("div",{className:vu[e.direction],children:e.direction==="flat"?(0,o.jsx)(cu,{size:"xs",title:""}):(0,o.jsx)(lu,{size:"xs",title:""})});const n=e.fontRole==="value"?Ao[t]:gu[t];return(0,o.jsx)("span",{className:(0,B.clsx)(mu(e),n),children:e.text})},mu=e=>{switch(e.textRole){case"value":return bo;case"observation":return du;case"trendPercentage":return pu[e.trendDirection??"up"];case"trendReference":return uu;case"label":return hu}},xu=({item:e,resolvedSize:t})=>(0,o.jsx)("div",{className:xo,children:(0,h.createHeadlineItemRows)(e).map(r=>(0,o.jsx)(bu,{row:r,resolvedSize:t},r.role))}),bu=({row:e,resolvedSize:t})=>{const r=e.role==="trendRow";return(0,o.jsx)("div",{className:ou[e.role],"data-testid":r?"headline-trend":void 0,"data-direction":r?Au(e):void 0,role:r?"img":void 0,"aria-label":r?e.ariaLabel:void 0,children:e.segments.map((n,a)=>(0,o.jsx)(fu,{segment:n,resolvedSize:t},a))})},Au=e=>{const t=e.segments.find(r=>r.kind==="trendArrow");return t?.kind==="trendArrow"?t.direction:void 0},yu=({headline:e,rect:t,resolvedSize:r,visibleItemCount:n})=>{const a={left:t.x,top:t.y,width:t.width,height:t.height};return e.kind==="grandTotal"?(0,o.jsx)("div",{className:nu,style:a,children:(0,o.jsx)("span",{className:(0,B.clsx)(bo,Ao[r]),children:e.value})}):(0,o.jsx)("div",{className:ru,style:a,children:e.items.slice(0,n).map((i,s)=>(0,o.jsx)(xu,{item:i,resolvedSize:r},`${i.label}-${s}`))})},Su="_1oj6yix0";var Pu="_1oj6yix2",wu=8,ju=16,ku=2,Cu=({legends:e,containerRect:t,textScale:r})=>{const{fonts:n}=Q(),a=Mt(n.legendLabel,r),{placements:i,hasOverlap:s}=Eu(e,t,a);if(i.length===0)return null;const l=s?ju:wu,c=l-ku;return(0,o.jsxs)("div",{className:Su,children:[s&&(0,o.jsx)("svg",{className:"_1oj6yix1",width:t.width,height:t.height,children:i.map(d=>(0,o.jsx)(Ru,{anchorY:d.anchorY,labelY:d.y,endX:c,color:d.payload.color},d.payload.key))}),i.map(d=>(0,o.jsx)("span",{className:Pu,style:{left:l,top:d.y,color:d.payload.color},children:d.payload.label},d.payload.key))]})},Eu=(e,t,r)=>(0,g.useMemo)(()=>{const n=[];for(const a of e)for(const i of a.items){if(i.normalizedY===null)continue;const s=typeof i.visual.color=="string"?i.visual.color:void 0;n.push({normalizedY:i.normalizedY,payload:{key:String(n.length),label:i.formattedLabel,color:s}})}return n.length===0||t.height<=0?{placements:[],hasOverlap:!1}:(0,h.computeDirectLabelsLayout)({items:n,containerHeight:t.height,labelHeight:r})},[e,t.height,r]),Ru=({anchorY:e,labelY:t,endX:r,color:n})=>{const a=r/2;return(0,o.jsx)("path",{d:`M0,${e} C${a},${e} ${a},${t} ${r},${t}`,fill:"none",stroke:n??"currentColor",strokeWidth:1,strokeDasharray:"2 2"})},Lu="_6a636s0",Tu="_1kjk02r0",Bu="_1kjk02r1",Mu="_1kjk02r2",Nu="_1kjk02r3",Iu="_1kjk02r4",Ou="_1kjk02r5",Du="_1kjk02r6",Fu="_1kjk02r7",Gu="_1kjk02r8";var Hu="_1dw9dgx0",Vu="#9ca3af",lt="\0",Wu=(e,t)=>{const r=[];return e.forEach((n,a)=>{const i=n.aesthetics.includes("size");for(const s of n.items){if(i){const u=Number(s.visual.size);if(!Number.isFinite(u)||u<=0)continue}const l=s.visual.color??"",c=i?`${lt}${Number(s.visual.size)}`:"",d=s.visual.lineType;r.push({key:`${a}${lt}${String(s.value)}${lt}${l}${c}`,formattedLabel:s.formattedLabel,visual:s.visual,swatchShape:t(s.geom),isBubble:i,primaryLineType:d})}}),r},yo=({pill:e})=>e.isBubble?(0,o.jsx)(Yu,{pill:e}):(0,o.jsx)(zu,{pill:e}),Uu=({color:e,lineType:t,shape:r,label:n})=>{const{legendSwatchWidth:a,legendSwatchHeight:i}=Q();return e?(0,o.jsx)(Le,{shape:r,color:e,surface:"legend",label:n,lineType:t,width:a,height:i}):null},zu=({pill:e})=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Uu,{color:e.visual.color,lineType:e.primaryLineType,shape:e.swatchShape,label:e.formattedLabel}),(0,o.jsx)("span",{children:e.formattedLabel})]}),Yu=({pill:e})=>{const t=Number(e.visual.size);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:Hu,style:{width:t,height:t,backgroundColor:e.visual.color??Vu}}),(0,o.jsx)("span",{children:e.formattedLabel})]})},qu=({hiddenPills:e,placement:t})=>{const r=_(),[n,a]=(0,g.useState)(!1),{refs:i,floatingStyles:s}=(0,M.useFloating)({open:n,placement:t,middleware:[(0,M.offset)(4),(0,M.flip)(),(0,M.shift)({padding:8})]});(0,g.useEffect)(()=>{if(!n)return;const u=f=>{const m=f.target;if(!m)return;const x=i.reference.current,b=i.floating.current;x instanceof Element&&x.contains(m)||b instanceof Element&&b.contains(m)||a(!1)},p=f=>{f.key==="Escape"&&a(!1)};return document.addEventListener("pointerdown",u),document.addEventListener("keydown",p),()=>{document.removeEventListener("pointerdown",u),document.removeEventListener("keydown",p)}},[n,i.floating,i.reference]);const l=t==="left"||t==="right",c=Math.min(e.length-1,2),d=Array.from({length:c},(u,p)=>c-p);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{ref:i.setReference,className:(0,B.clsx)(Tu,{[Mu]:l,[Bu]:!l}),children:[d.map(u=>(0,o.jsx)("span",{className:(0,B.clsx)(Nu,{[Ou]:l,[Iu]:!l}),style:Ku(u,l),"aria-hidden":!0},u)),(0,o.jsx)("button",{type:"button",className:(0,B.clsx)(Du,{[Fu]:n}),onClick:()=>a(u=>!u),"aria-haspopup":"dialog","aria-expanded":n,"aria-label":`Show ${e.length} hidden legend ${e.length===1?"item":"items"}`,children:(0,o.jsxs)("span",{className:Gu,children:["+",e.length]})})]}),n&&(0,o.jsx)("div",{ref:i.setFloating,role:"dialog","aria-label":r("graph.legend.hiddenItems"),className:"_1kjk02r9",style:s,children:(0,o.jsx)("ul",{className:"_1kjk02ra",children:e.map(u=>(0,o.jsx)("li",{className:"_1kjk02rb",children:(0,o.jsx)(yo,{pill:u})},u.key))})})]})},Ku=(e,t)=>{const r=-e*4;return{transform:t?`translateY(${r}px)`:`translateX(${r}px)`}},Qu="_1cecisi0",Xu="_1cecisi1",Ju="_1cecisi2",Zu={start:"_1cecisi3",center:"_1cecisi4",end:"_1cecisi5"},_u={right:"_1cecisi6",left:"_1cecisi7"},$u="_1cecisi8",eh=({edge:e,formattedLegends:t,containerWidth:r,containerHeight:n,textScale:a})=>{const i=se(),s=Q(),l=ne(),c=C(S=>S.coordSystem.type),d=(0,g.useMemo)(()=>Wu(t,S=>l(S,c)?.swatchShape??"square"),[t,l,c]),u=e==="left"||e==="right",p=u?n:r,f=t[0]?.align??"start",m=(0,g.useMemo)(()=>{if(d.length===0)return{visibleCount:0,hasOverflow:!1};if(p<=0)return{visibleCount:d.length,hasOverflow:!1};const S=z(s.fonts.legendLabel,a),A=Mt(s.fonts.legendLabel,a),P=j=>u?th(j,A,s):xr({label:j.formattedLabel,swatchInlineSize:rh(j,s.legendSwatchWidth),textMeasurer:i,font:S,swatchGap:s.legendSwatchGap,horizontalChrome:s.legendPillHorizontalChrome}),k=d.map(P),E=(u?A+s.legendPillVerticalChrome:xr({label:`+${d.length}`,swatchInlineSize:0,textMeasurer:i,font:S,swatchGap:s.legendSwatchGap,horizontalChrome:s.legendPillHorizontalChrome}))+8;return oh({pillSizes:k,overflowPillSize:E,containerSize:p,gap:s.legendItemGap})},[d,p,u,i,a,s]);if(d.length===0)return null;const x=d.slice(0,m.visibleCount),b=d.slice(m.visibleCount),y=m.hasOverflow&&b.length>0;return(0,o.jsxs)("div",{className:(0,B.clsx)(Zu[f],Qu,{[Ju]:u,[Xu]:!u,[_u[e==="left"?"left":"right"]]:u}),children:[x.map(S=>(0,o.jsx)("div",{className:$u,children:(0,o.jsx)(yo,{pill:S})},S.key)),y&&(0,o.jsx)(qu,{hiddenPills:b,placement:ah(e)})]})},xr=({label:e,swatchInlineSize:t,textMeasurer:r,font:n,swatchGap:a,horizontalChrome:i})=>{const s=r.measureText(e,n).width;return t+(t>0?a:0)+s+i},th=(e,t,r)=>{const n=nh(e,r.legendSwatchHeight);return Math.max(t,n)+r.legendPillVerticalChrome},rh=(e,t)=>e.isBubble?Number(e.visual.size):Wn(e.visual.color,t),nh=(e,t)=>e.isBubble?Number(e.visual.size):t,oh=({pillSizes:e,overflowPillSize:t,containerSize:r,gap:n})=>{if(e.length===0)return{visibleCount:0,hasOverflow:!1};let a=0;for(let l=0;l<e.length;l+=1)l>0&&(a+=n),a+=e[l]??0;if(a<=r)return{visibleCount:e.length,hasOverflow:!1};let i=0,s=0;for(const l of e){const c=i+(s>0?n:0)+l;if(c+n+t>r)break;i=c,s+=1}return{visibleCount:s,hasOverflow:!0}},ah=e=>{switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}},ih=(0,g.memo)(function({formattedLegends:t,rects:r,textScale:n}){const a=(0,g.useMemo)(()=>{const i=new Map;for(const s of t){let l=i.get(s.position);l||(l={pill:[],direct:[]},i.set(s.position,l)),s.display==="pill"?l.pill.push(s):l.direct.push(s)}return i},[t]);return(0,o.jsx)(o.Fragment,{children:Array.from(a,([i,s])=>{const l=r[i];return l===void 0?null:(0,o.jsxs)("div",{className:Lu,style:{left:l.x,top:l.y,width:l.width,height:l.height},children:[(0,o.jsx)(eh,{edge:i,formattedLegends:s.pill,containerWidth:l.width,containerHeight:l.height,textScale:n}),(0,o.jsx)(Cu,{legends:s.direct,containerRect:l,textScale:n})]},i)})})}),sh=({layers:e,primaryLayerId:t,coordSystem:r,resolveRenderer:n})=>{const a=e.find(s=>s.id===t);if(!a)return null;const i=n(a.geom,r.type);return i?i.guideMode??null:null},So=1,Po="4 3",br=({panelRect:e})=>{const{coordSystem:t,layers:r,scales:n}=C((0,D.useShallow)(l=>({coordSystem:l.coordSystem,layers:l.layers,scales:l.scales}))),a=pe(l=>l.hover.primary),i=ne();if(r.length===0||a===null||!a.anchored)return null;const s=sh({layers:r,primaryLayerId:a.layerId,coordSystem:t,resolveRenderer:i});return s===null?null:t.type==="polar"?s==="band"?(0,o.jsx)(uh,{coordSystem:t,primary:a,panelRect:e}):(0,o.jsx)(dh,{coordSystem:t,primary:a,panelRect:e}):s==="band"?(0,o.jsx)(ch,{coordSystem:t,scales:n,primary:a,panelRect:e}):(0,o.jsx)(lh,{coordSystem:t,primary:a,panelRect:e})},lh=({coordSystem:e,primary:t,panelRect:r})=>{const n=(0,h.getHoverGuideLineProps)(e,t);return(0,o.jsx)(et,{panelRect:r,children:(0,o.jsx)("line",{...n,stroke:v.vars.hoverGuideLineColor,strokeWidth:So,strokeDasharray:Po,strokeLinecap:"round","data-testid":"hover-guide-line"})})},ch=({coordSystem:e,scales:t,primary:r,panelRect:n})=>{const a=(0,h.getHoverGuideRectProps)(e,t,r);return a===null?null:(0,o.jsx)(et,{panelRect:n,children:(0,o.jsx)("rect",{...a,fill:v.vars.hoverGuideFillColor,"data-testid":"hover-guide-rect"})})},dh=({coordSystem:e,primary:t,panelRect:r})=>{const n=jt(r),a=Y(t.x,e.innerRadius,n),i=Y(t.x,1,n);return(0,o.jsx)(et,{panelRect:r,children:(0,o.jsx)("line",{x1:a.x,y1:a.y,x2:i.x,y2:i.y,stroke:v.vars.hoverGuideLineColor,strokeWidth:So,strokeDasharray:Po,strokeLinecap:"round","data-testid":"hover-guide-line"})})},uh=({coordSystem:e,primary:t,panelRect:r})=>{const n=(0,h.getPolarHoverGuideArcProps)(e,t);if(n===null)return null;const a=(0,h.buildPolarBarArcPath)(n);return a?(0,o.jsx)(et,{panelRect:r,children:(0,o.jsx)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%",style:{overflow:"visible"},children:(0,o.jsx)("path",{d:a,fill:v.vars.hoverGuideFillColor,"data-testid":"hover-guide-arc"})})}):null},et=({panelRect:e,children:t})=>(0,o.jsx)("svg",{x:e.x,y:e.y,width:e.width,height:e.height,style:{overflow:"visible",pointerEvents:"none"},"data-testid":"hover-guide",children:t}),hh=(e,t,r)=>{for(const n of Object.values(wo)){const a=n(e,t,r);if(a!==null)return a}return null},gh=e=>wo[e]!==void 0,Ge=(e,t)=>(r,n,a)=>{const i=e(r).find(s=>s.id===n);return i===void 0?null:t(i,a)},Ar=(e,{panelWidth:t,panelHeight:r},n=0)=>({shape:"rect",rect:{x:e.x*t-n,y:(1-e.y-e.height)*r-n,width:e.width*t+n*2,height:e.height*r+n*2}}),ph=(e,{panelWidth:t,panelHeight:r,measuredBoxes:n})=>{const a=n.get(e.id);if(a===void 0)return null;const i=(0,h.alignUnitFractions)(e.align);return{shape:"rect",rect:{x:e.at.x*t-i.x*a.width,y:(1-e.at.y)*r-(1-i.y)*a.height,width:a.width,height:a.height}}},vh=(e,{panelWidth:t,panelHeight:r})=>{const n={x:e.start.x*t,y:(1-e.start.y)*r},a={x:e.end.x*t,y:(1-e.end.y)*r};return n.x===a.x&&n.y===a.y?null:{shape:"segment",start:n,end:a}},wo={text:Ge(e=>e.textAnnotations,ph),shape:Ge(e=>e.shapes,(e,t)=>Ar(e.region,t,e.strokeWidth/2)),image:Ge(e=>e.images,(e,t)=>Ar(e.region,t)),arrow:Ge(e=>e.arrows,vh)},jo=(e,t)=>{const r=(0,h.findAnnotation)(e,t);return r!==null&&gh(r.kind)&&(0,h.isAnnotationMovable)(r)},fh=200,mh=({engine:e,store:t,overlayRef:r})=>{(0,g.useEffect)(()=>{const n=r.current;if(!n)return;const a=xh(n,e),i=Ah(n,e,t);return()=>{i(),a()}},[e,t,r])},xh=(e,t)=>{const r=()=>{const s=e.getBoundingClientRect();s.width===0||s.height===0||t.setViewport({width:s.width,height:s.height})};let n=null;const a=()=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,r()},fh)},i=new ResizeObserver(a);return i.observe(e),r(),()=>{i.disconnect(),n!==null&&clearTimeout(n)}},bh=(e,t)=>e.kind==="cursor"?null:{x:t.left+e.point.x,y:t.top+e.point.y,placement:e.placement,annotationId:e.annotationId},Ah=(e,t,r)=>{let n=null,a=null;const i=()=>{const m=e.getBoundingClientRect();return m.width>0&&m.height>0?m:null},s=(m,x)=>({x:m.clientX-x.left,y:m.clientY-x.top}),l=()=>{a=null;const m=n;if(n=null,!m)return;const x=i();if(x===null)return;const b=s(m,x),y=r.getState();if(y.isPointerSuspended)return;const S=(0,h.findPointerRegion)(b,y.pointerRegions);if(S!==null){y.setHoverState(t.query(S.cursor)),y.setTooltipAnchor(bh(S.tooltip,x));return}const A=(0,h.toPanelCursor)(b,x);y.setHoverState(t.query(A)),y.setTooltipAnchor(null)},c=()=>{const m=r.getState();m.hover.primary===null&&m.tooltipAnchor===null||(m.setHoverState(h.RESTING_HOVER_STATE),m.setTooltipAnchor(null))},d=m=>{const x=r.getState();if(x.pointerRegions.length===0)return!1;const b=i();return b===null?!1:(0,h.findPointerRegion)(s(m,b),x.pointerRegions)!==null},u=m=>{r.getState().isPointerSuspended||d(m)||(document.removeEventListener("pointermove",u),c())},p=m=>{document.removeEventListener("pointermove",u),n=m,a===null&&(a=requestAnimationFrame(l))},f=m=>{if(n=null,a!==null&&(cancelAnimationFrame(a),a=null),!r.getState().isPointerSuspended){if(d(m)){document.addEventListener("pointermove",u);return}c()}};return e.addEventListener("pointermove",p),e.addEventListener("pointerleave",f),()=>{e.removeEventListener("pointermove",p),e.removeEventListener("pointerleave",f),document.removeEventListener("pointermove",u),a!==null&&cancelAnimationFrame(a),n=null}},yh=({panelRect:e})=>{const{engine:t,store:r,overlayRef:n}=le(),a=me(c=>{const d=c.editTargetUnderPointer;return d!==null&&ql(d)}),i=me(c=>{const d=c.editTargetUnderPointer;return d?.kind==="annotation"?d.id:null}),s=C(c=>c.spec.annotations);mh({engine:t,store:r,overlayRef:n});const l=i!==null&&jo(s,i);return(0,o.jsx)("rect",{ref:n,x:e.x,y:e.y,width:e.width,height:e.height,fill:"transparent",pointerEvents:"all",cursor:Sh(l,a),"data-testid":"pointer-capture-layer"})},Sh=(e,t)=>e?"move":t?"pointer":void 0,ct="data-hover-active",Ph=e=>{const{store:t}=le(),r=(0,Re.useStore)(t,n=>n.hover.primary!==null);(0,g.useEffect)(()=>{const n=e.current;if(n)return r?n.setAttribute(ct,"true"):n.removeAttribute(ct),()=>{n.removeAttribute(ct)}},[e,r])},tt=()=>me(e=>It(e,"move-drag")?.annotationId??null),ye=e=>{const{annotations:t,coordSystem:r}=C((0,D.useShallow)(l=>({annotations:l.annotations,coordSystem:l.coordSystem}))),n=qn(),a=Wl(),i=(0,g.useCallback)(l=>yr(a,"cycle",l,`Annotation reference cycle detected; dropping annotation(s): ${l.join(", ")}`),[a]),s=(0,g.useCallback)(l=>yr(a,"missing-ref",l,`Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${l.join(", ")}`),[a]);return(0,g.useMemo)(()=>(0,h.resolveDeferredAnchors)({annotations:t,panelRect:e,coordSystem:r,measuredBoxes:n,onCycle:i,onMissingRef:s}),[t,r,e,n,i,s])},yr=(e,t,r,n)=>{const a=[t,...[...r].sort()].join("\0");e.has(a)||(e.add(a),console.warn(n))},wh=16,ko=({linePath:e,strokeWidth:t})=>(0,o.jsx)("path",{d:e,stroke:"transparent",strokeWidth:Math.max(t,wh),fill:"none",pointerEvents:"stroke"}),jh=0,kh=1.15,Co=1.15,Ch="rgba(0, 0, 0, 0.16)",Eo=2,Eh=1.4,Ro=({computed:e,isAddressable:t})=>{const r=(0,g.useId)(),{themeValues:n}=Ae(),a=e.color??v.vars.defaultAnnotationArrowStroke,i=e.dashArray?{strokeDasharray:e.dashArray,strokeDashoffset:e.dashOffset}:{},s=(0,g.useMemo)(()=>e.hasStickerStyle?Rh(e,n):null,[e,n]);return(0,o.jsxs)("g",{pointerEvents:t?void 0:"none",children:[t&&(0,o.jsx)(ko,{linePath:e.linePath,strokeWidth:e.strokeWidth}),s!==null&&(0,o.jsx)("defs",{children:(0,o.jsx)("filter",{id:r,filterUnits:"userSpaceOnUse",...s.filterArea,children:(0,o.jsx)("feDropShadow",{dx:jh,dy:kh,stdDeviation:Co,floodColor:Ch})})}),(0,o.jsxs)("g",{filter:s===null?void 0:`url(#${r})`,children:[s!==null&&(0,o.jsx)("path",{d:s.combinedPath,stroke:s.outlineColor,strokeWidth:e.strokeWidth+2*Eo,strokeLinecap:"round",fill:"none"}),(0,o.jsx)("path",{d:e.linePath,stroke:a,strokeWidth:e.strokeWidth,strokeLinecap:"round",fill:"none",...i}),e.startArrowheadPath.length>0&&(0,o.jsx)("path",{d:e.startArrowheadPath,stroke:a,strokeWidth:e.strokeWidth,strokeLinecap:"round",fill:"none"}),e.endArrowheadPath.length>0&&(0,o.jsx)("path",{d:e.endArrowheadPath,stroke:a,strokeWidth:e.strokeWidth,strokeLinecap:"round",fill:"none"})]})]})},Rh=(e,t)=>{const r=e.arrowheadExtent+e.strokeWidth+Eo+Co;return{outlineColor:Lh(e.color,t.arrowAnnotationStickerOutlineColor,t.arrowAnnotationStickerOutlineColorInverse),combinedPath:[e.linePath,e.startArrowheadPath,e.endArrowheadPath].filter(n=>n.length>0).join(" "),filterArea:{x:Math.min(e.startX,e.endX)-r,y:Math.min(e.startY,e.endY)-r,width:Math.abs(e.endX-e.startX)+2*r,height:Math.abs(e.endY-e.startY)+2*r}}},Lh=(e,t,r)=>{if(e===null)return r;try{return(0,ua.getContrast)(e,t)<Eh?r:t}catch{return r}},Th=({panelRect:e,isEditable:t})=>{const{arrows:r}=ye(e),n=tt(),a=(0,g.useMemo)(()=>r.filter(i=>i.id!==n).map(i=>(0,h.computeArrow)({arrow:i,panelWidth:e.width,panelHeight:e.height})).filter(i=>i!==null),[r,n,e.width,e.height]);return a.length===0?null:(0,o.jsx)("g",{transform:`translate(${e.x}, ${e.y})`,"data-testid":"arrows",children:a.map(i=>(0,o.jsx)("g",{...Te({kind:"annotation",id:i.id}),children:(0,o.jsx)(Ro,{computed:i,isAddressable:t})},i.id))})},Lo=()=>{const{selectionStore:e}=q();return(0,Re.useStore)(e,t=>t.selection)},Bh=({linePath:e,arrowheadPath:t,stroke:r,strokeWidth:n,isAddressable:a})=>{const i={stroke:r,strokeWidth:n,strokeLinecap:"round",fill:"none"};return(0,o.jsxs)("g",{pointerEvents:a?void 0:"none",children:[a&&(0,o.jsx)(ko,{linePath:e,strokeWidth:n}),(0,o.jsx)("path",{d:e,...i}),(0,o.jsx)("path",{d:t,...i,strokeLinejoin:"round"})]})},Mh="_1i8rg6j0",Nh=({x:e,y:t,text:r,box:n,lineHeight:a,strokeWidth:i,strokeColor:s,fontWeight:l,isAddressable:c})=>{const{fonts:d}=Q();return(0,o.jsxs)("g",{pointerEvents:c?void 0:"none",children:[(0,o.jsx)("rect",{x:n.x,y:n.y,width:n.width,height:n.height,rx:4,fill:v.vars.graphBackground,stroke:s,strokeWidth:i}),(0,o.jsx)("text",{x:e,y:t,dominantBaseline:"central",textAnchor:"middle",fill:v.vars.textPrimary,style:{fontFamily:d.familyDefault,fontSize:a,fontWeight:l},children:r})]})},Ih="75%",Oh=({panelRect:e,isEditable:t})=>{const r=_n(),n=me(s=>{const l=s.editTargetUnderPointer;return l?.kind==="annotation"?l.id:null}),a=Lo(),i=(0,g.useMemo)(()=>new Set(a.filter(s=>s.kind==="annotation").map(s=>s.id)),[a]);return r.length===0?null:(0,o.jsx)("g",{transform:`translate(${e.x}, ${e.y})`,"data-testid":"difference-arrows",children:r.map(({color:s,id:l,linePath:c,arrowheadPath:d,strokeWidth:u,labelPosition:p,labelBox:f,labelText:m,labelLineHeight:x,labelStrokeWidth:b,labelFontWeight:y,isDragged:S,hasComparableEndpoints:A})=>{const P=n===l||i.has(l),k=S&&!A,E=k?v.vars.alert:s??v.vars.defaultAnnotationArrowStroke,j=P&&!k?Dh(E):E;return(0,o.jsxs)("g",{className:n===l?Mh:void 0,"data-warning":k||void 0,...Te({kind:"annotation",id:l}),children:[(0,o.jsx)(Bh,{linePath:c,arrowheadPath:d,stroke:j,strokeWidth:u,isAddressable:t}),(0,o.jsx)(Nh,{x:p.x,y:p.y,text:m,box:f,lineHeight:x,strokeWidth:b,strokeColor:j,fontWeight:y,isAddressable:t})]},l)})})},Dh=e=>`color-mix(in srgb, ${e} ${Ih}, ${v.vars.textPrimary})`,Fh={fill:"none",contain:"xMidYMid meet",cover:"xMidYMid slice"},To=({image:e})=>{const{src:t,region:r,fit:n,opacity:a}=e;return(0,o.jsx)("image",{href:t,x:(0,h.toPercent)(r.x),y:(0,h.toPercent)(1-r.y-r.height),width:(0,h.toPercent)(r.width),height:(0,h.toPercent)(r.height),preserveAspectRatio:Fh[n],opacity:a})},Sr=({panelRect:e,zOrder:t})=>{const r=ye(e).images,n=tt(),a=r.filter(i=>i.zOrder===t&&i.id!==n);return a.length===0?null:(0,o.jsx)("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible","data-testid":`image-annotations-${t}`,children:a.map(i=>(0,o.jsx)("g",{...Te({kind:"annotation",id:i.id}),children:(0,o.jsx)(To,{image:i})},i.id))})},Bo=({shape:e})=>{const{region:t,fillColor:r,fillOpacity:n,strokeWidth:a,strokeColor:i}=e;return(0,o.jsx)("rect",{x:(0,h.toPercent)(t.x),y:(0,h.toPercent)(1-t.y-t.height),width:(0,h.toPercent)(t.width),height:(0,h.toPercent)(t.height),fill:r??v.vars.defaultAnnotationShapeFill,fillOpacity:n,stroke:a>0?i??v.vars.defaultAnnotationShapeStroke:"none",strokeWidth:a})},Pr=({panelRect:e,zOrder:t})=>{const r=ye(e).shapes,n=tt(),a=r.filter(i=>i.zOrder===t&&i.id!==n);return a.length===0?null:(0,o.jsx)("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible","data-testid":`shapes-${t}`,children:a.map(i=>(0,o.jsx)("g",{...Te({kind:"annotation",id:i.id}),children:(0,o.jsx)(Bo,{shape:i})},i.id))})},Gh="_1aj6s5s0",Mo=({annotation:e,blockRef:t})=>(0,o.jsx)("foreignObject",{x:(0,h.toPercent)(e.at.x),y:(0,h.toPercent)(1-e.at.y),width:(0,h.toPercent)(e.width),height:(0,h.toPercent)(e.at.y),overflow:"visible",pointerEvents:"none",children:(0,o.jsx)("div",{ref:t,className:Gh,style:{...Vh(e.backgroundColor,e.backgroundColorStyle),transform:Hh(e.align)},children:(0,o.jsx)(Ee,{content:e.content})})}),Hh=e=>{const t=(0,h.alignUnitFractions)(e);return`translate(${-t.x*100}%, ${-(1-t.y)*100}%)`},Vh=(e,t)=>e===null||e==="transparent"?{color:v.vars.textPrimary}:t==="fade"?{color:v.vars.textPrimary,backgroundColor:vt(e,v.vars.grey100,.5),boxShadow:`0 0 0 1.5px ${vt(e,v.vars.grey0,.2)}`}:{color:v.vars.textPrimary,backgroundColor:e,boxShadow:`0 0 0 1.5px ${Ze(e,.1)}`},Wh=({panelRect:e})=>{const t=ye(e).textAnnotations,r=tt(),n=t.filter(a=>a.id!==r);return n.length===0?null:(0,o.jsx)("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible","data-testid":"text-annotations",children:n.map(a=>(0,o.jsx)(Uh,{annotation:a},a.id))})},Uh=({annotation:e})=>{const t=Kn(e.id);return(0,o.jsx)("g",{...Te({kind:"annotation",id:e.id}),children:(0,o.jsx)(Mo,{annotation:e,blockRef:t})})},zh=v.FONT_SIZE_EM.sm,Yh=v.DEFAULT_FONT_FAMILY,qh=v.FONT_WEIGHT.medium,Kh="0 1px 1.5px rgba(14, 14, 52, 0.18)",Qh="ph8bdc0";var Xh="ph8bdc2",wr={hittable:"ph8bdc4 ph8bdc3",inert:"ph8bdc5 ph8bdc3"},Jh=({cx:e,cy:t,color:r,radius:n=4})=>(0,o.jsx)("circle",{cx:e,cy:t,r:n,style:{fill:r??v.vars.textPrimary,stroke:v.vars.tooltipBackground,strokeWidth:2,filter:`drop-shadow(${Kh})`}});function Zh(e){const t=se(),{formattingLocale:r}=q(),n=C((0,D.useShallow)(l=>({pinnedNumbers:l.annotations.pinnedNumbers,comments:l.annotations.comments,coordSystem:l.coordSystem,numberFormat:l.config.numberFormat,parsingLocale:l.config.parsingLocale,textScale:l.config.appearance.textScale}))),a=r??n.parsingLocale,i=(0,g.useMemo)(()=>(0,h.buildPinnedNumberValueFormatter)({numberFormat:n.numberFormat,locale:a}),[n.numberFormat,a]),s=(0,g.useMemo)(()=>{const l={family:Yh,size:_e(zh,n.textScale),weight:qh};return(c,d)=>{const u=_h(t,c,d,l),p=t.measureText(u,l),f=c==="pinned-number"?15:0;return{width:p.width+f+16,height:Math.max(p.height,10)+10,text:u}}},[t,n.textScale]);return(0,g.useMemo)(()=>(0,h.placeCallouts)({pinnedNumbers:n.pinnedNumbers,comments:n.comments,panelRect:e,coordSystem:n.coordSystem,measurer:s,formatPinnedNumber:l=>i(l.at)}),[n.pinnedNumbers,n.comments,e,n.coordSystem,s,i])}var _h=(e,t,r,n)=>t!=="comment"?r:(0,h.truncateToWidth)(r,140,a=>e.measureText(a,n).width),jr="callouts",$h=({panelRect:e})=>{const{pinnedNumbers:t,comments:r}=C((0,D.useShallow)(d=>({pinnedNumbers:d.annotations.pinnedNumbers,comments:d.annotations.comments}))),n=C(d=>d.coordSystem),a=ne(),i=Zh(e),{store:s}=le(),l=(0,g.useMemo)(()=>{const d=new Map;for(const u of t)d.set(u.id,u.at);for(const u of r)d.set(u.id,u.at);return d},[t,r]),c=(0,g.useMemo)(()=>(0,h.buildCalloutHitRegions)(i,e),[i,e]);return(0,g.useEffect)(()=>{const d=s.getState();return d.publishPointerRegions(jr,c),()=>{d.publishPointerRegions(jr,[])}},[s,c]),t.length===0&&r.length===0?null:(0,o.jsx)("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible",className:Qh,"data-testid":"callouts",children:i.map(d=>{if(!d.inView)return null;const u=l.get(d.id);if(u===void 0)return null;const p=d.miniRect.width<=e.width&&d.miniRect.height<=e.height;return(0,o.jsxs)("g",{"data-testid":d.kind,children:[(0,o.jsx)("foreignObject",{x:d.miniRect.x,y:d.miniRect.y,width:d.miniRect.width,height:d.miniRect.height,overflow:"visible",children:(0,o.jsxs)("div",{className:p?wr.hittable:wr.inert,children:[d.kind==="pinned-number"&&(0,o.jsx)("span",{className:"ph8bdc1",children:(0,o.jsx)(Le,{shape:a(u.geom,n.type)?.swatchShape??"square",surface:"callout",color:u.color??"currentColor",width:10,height:10})}),(0,o.jsx)("span",{className:Xh,children:d.text})]})}),(0,o.jsx)(Jh,{cx:d.anchorPx.x,cy:d.anchorPx.y,color:u.color})]},d.id)})})},No={"clapping-hands":{aspectRatio:1.059,src:"data:image/png;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00RCnGBwmxmlD6fSsNxtFahEFSCICp/9KObRi9cOG/SuHF5E3EJMMFg0E88G0hEher+707IzvaT3WNZfRAQNhSyM9ps0M3cAIy+IOnz9fXNL06fvvo3Go3Y09f3FYlQI58YfJOAhAnVtIA1Gk0q1GEVz2OgqHQjSCyjVPK0QgGKQECk7rnn5jGPPXbf46mphuJkjfBeJ3Tvew6ors/lzTVRkhbFqIvAcPHDQCf/HB7BaHxx/vybnvX7ocfpPOjcsGEDh0ckz/ptABJ+L11UtJqprm5EN+1igkEla7f7mYyMUazL1cdgUlil1VLa8vJ3HsCNph8O1lBP+XMQbHgXGEM26KffBppxywZjFTEu+uOcOdc+I4pMn9Npd5LYCZKsmr5tkn1CCRv6BTj5CWq2Ni1tRprJdFGOwXDRhF279q7BHMygv+UL9NSL5yBh377D/0Pa0utnZpBfj8HwUx/fKiFI5IfMxdrMzLkWlWrq+EceeXo5gtImDpMwK9a2ceNr16ekTCmwWOZnXohgRCj0k7ECVU7OHJNGU5z385//9vL+fsehoYKBvAcfffS3y1JTZ41LSbnESMD4V/jHDDT5wXJ6enGq0Th7tF4/eQouxt47GxCYAbMfPVr9tNE4s0itnpJHwPhn/Oj5WyXyS3CzeYHBaJyeq9dPnXzy5KkXZRUSwge5x/LN11xzzwKiZmbzpei6FxiG898pLiTEsK8laFd6VWazIsXlCmhYltLee++NuWPGjE757LO97Z988kUfRSmCHMd7WVbl1esBI9CvyM8S5ETKkF5ywRGCkotrpFEY2FEaQQgwosjTgYCCpyiBYxiFX612+7u6RHSp1STgGvL3ZXLjFxzhTDswS9cWTEubiYPmUQLSfCoVeO32dk9BAeWbM2dKoLq6TP7l0vDoQjYyUUnXUDqe0Nf9f0f/APDc5Dseec9LAAAAAElFTkSuQmCC"},"grinning-face":{aspectRatio:1.03,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABECAYAAAA1DeP1AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BA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tTqZSJzq/LWsz4xQigvH9FmyK0bP16ekWtPnTixIxh23YYj6YM153VNC2sY0qrPvroX62rr1+RoJMPjv/QpOglcPHcX/2qexi1ZtUFFzSuQ81JGEYoiS1Gf1xCfoc6ou8Z3rfv0Huvv757sLNz95SqGmY6zTKhkJ6uq0tkent3VHwzrJyh5SDvuZsoylCBrJMJIRN6OKxorququZzL8HAHMLJhve4q+TxBwfJgW353WSiEJ6SQxRPrqGJZGdeDlKmmcNEfoflpDsIBFh54mOHwmvz4+E9y9LYotkW/VL1cAph7PiU/TPxFRAv6k6RqWWnFNHWNi+Se/iQuoszMzHqMUZ5cjVo0wVwXqyHMkriotYkcFo8nEbbLoMZkUYQRR9OyzthYEu18Gtt6bC/8//6z+/m3S0H1XnrW0L+QlhSaWtS8/7kCaVBLSP4NMTXxmxi/FH9i/7+rT2twf4PgbQAAAABJRU5ErkJggg=="}},eg=3.2,tg=({panelRect:e})=>{const t=ye(e).stickers,r=C(i=>i.config.appearance.textScale),n=C(i=>i.coordSystem);if(t.length===0)return null;const a=_e(eg,r);return(0,o.jsx)("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible","data-testid":"stickers",children:t.map(i=>{const s=n.type==="polar"?og(i,e):ng(i);return(0,o.jsx)(rg,{sticker:i,sizePx:a,x:s.x,y:s.y},i.id)})})},rg=({sticker:e,sizePx:t,x:r,y:n})=>{const a=No[e.sticker];if(!a)return null;const{width:i,height:s}=ag(a.aspectRatio,t);return(0,o.jsx)("image",{href:a.src,x:r,y:n,width:i,height:s,transform:`translate(${-i/2}, ${-s/2})`})},ng=e=>({x:(0,h.toPercent)(e.at.x),y:(0,h.toPercent)(1-e.at.y)}),og=(e,t)=>{const r=jt(t),n=r.radius*2;return{x:r.centerX-r.radius+e.at.x*n,y:r.centerY-r.radius+e.at.y*n}},ag=(e,t)=>e>=1?{width:t,height:t/e}:{width:t*e,height:t},ig="_1agclyl0",sg="_1agclyl1",lg="_1agclyl2",cg={inside:"_1agclyl4 _1agclyl3",outside:"_1agclyl5 _1agclyl3"},dg={inside:"_1agclyl6 _1agclyl3",outside:"_1agclyl7 _1agclyl3"},ug="_1agclyl8 _1agclyl3",Io=({x:e,y:t,width:r,height:n,text:a,isRotated:i,target:s,position:l,coordType:c})=>{const d=i?`rotate(-90 ${e} ${t})`:void 0,u=gg(s,l),p=hg(s,l,c);return(0,o.jsxs)("g",{transform:d,children:[p&&(0,o.jsx)("rect",{className:p,x:e-r/2,y:t-n/2,width:r,height:n,rx:4,ry:4}),(0,o.jsx)("text",{className:u,x:e,y:t,textAnchor:"middle",dominantBaseline:"central",children:a})]})},hg=(e,t,r)=>{if(e==="aggregate")return lg;if(t==="outside"&&r==="cartesian")return sg},gg=(e,t)=>{switch(e){case"aggregate":return ug;case"category":return dg[t];case"observation":return cg[t]}},pg=({panelRect:e,formattingLocale:t,plotBottomY:r,isFooterChromeReserved:n})=>{const a=yl(),i=se(),s=Q(),l=C((0,D.useShallow)(p=>({layers:p.layers,coordSystem:p.coordSystem,axes:p.guides.axes,numberFormat:p.config.numberFormat,parsingLocale:p.config.parsingLocale,textScale:p.config.appearance.textScale}))),c=(0,g.useMemo)(()=>Gn({textMeasurer:i,textScale:l.textScale,metrics:s}),[i,l.textScale,s]),d=(0,g.useMemo)(()=>(0,h.buildDataLabelsContent)({...l,panelRect:e,measureDataLabel:c,formattingLocale:t,plotBottomY:r,isFooterChromeReserved:n}),[l,e,c,t,r,n]).labels.map((p,f)=>(0,o.jsx)(Io,{x:p.x,y:p.y,width:p.width,height:p.height,text:p.text,isRotated:p.isRotated,target:p.target,position:p.position,coordType:l.coordSystem.type},`${p.layerId}:${f}`)),u={className:ig,transform:`translate(${e.x}, ${e.y})`,"data-testid":"data-labels"};return a>0?(0,o.jsx)(w.motion.g,{...u,initial:{opacity:0},animate:{opacity:1},transition:{duration:xs,delay:a},children:d}):(0,o.jsx)("g",{...u,children:d})},vg=({edge:e,position:t,labelRotation:r,label:n})=>{const{tickLabelOffset:a}=Q(),i=(0,h.toPercent)(t),s={style:{font:v.vars.fontTickLabel},fill:v.vars.textSecondary},l=r!==0&&(e==="top"||e==="bottom"),c=e==="top";return l?(0,o.jsx)("svg",{x:i,y:c?"100%":0,style:{overflow:"visible"},children:(0,o.jsx)("text",{...mg(c,a,r),...s,children:n})}):(0,o.jsx)("text",{...fg(e,i,a),...s,children:n})},fg=(e,t,r)=>{switch(e){case"bottom":return{x:t,y:r,textAnchor:"middle",dominantBaseline:"hanging"};case"top":return{x:t,y:"100%",dy:-r,textAnchor:"middle",dominantBaseline:"auto"};case"left":return{x:"100%",dx:-r,y:t,textAnchor:"end",dominantBaseline:"central"};case"right":return{x:r,y:t,textAnchor:"start",dominantBaseline:"central"}}},mg=(e,t,r)=>{const n=e?-t:t;return{x:0,y:n,textAnchor:e?"start":"end",dominantBaseline:"central",transform:`rotate(${r}, 0, ${n})`}},xg=({formattedAxis:e,rect:t})=>{const r=e.position==="bottom"||e.position==="top";return(0,o.jsxs)("svg",{x:t.x,y:t.y,width:t.width,height:t.height,style:{overflow:"visible"},children:[!1,e.ticks.map((n,a)=>{const i=n.formattedLabel,s=r?n.position:1-n.position,l=bg(e.position,s,t);return(0,o.jsxs)("g",{children:[e.ticksVisible&&(0,o.jsx)("line",{...l,stroke:v.vars.axisTickColor,strokeWidth:1}),(0,o.jsx)(vg,{edge:e.position,position:s,labelRotation:e.labelRotation,label:i})]},a)})]})},bg=(e,t,r)=>{const n=(0,h.toPercent)(t);switch(e){case"bottom":return{x1:n,y1:0,x2:n,y2:6};case"top":return{x1:n,y1:r.height,x2:n,y2:r.height-6};case"left":return{x1:r.width,y1:n,x2:r.width-6,y2:n};case"right":return{x1:0,y1:n,x2:6,y2:n}}},Ag=({axes:e,rects:t})=>(0,o.jsx)(o.Fragment,{children:e.map(r=>{const n=t[r.position];if(!n||!r.isVisible)return null;const a=yg(r.position,n);return(0,o.jsxs)("g",{transform:`translate(${n.x}, ${n.y})`,children:[!1,(0,o.jsx)("text",{style:{font:v.vars.fontAxisLabel},fill:v.vars.textPrimary,...a,children:r.label})]},`axis-label-${r.position}`)})}),yg=(e,t)=>{const r={x:t.width/2,y:t.height/2,textAnchor:"middle",dominantBaseline:"middle"};return e==="left"?(r.x=0,r.textAnchor="start"):e==="right"&&(r.x=t.width,r.textAnchor="end"),r},Sg=({formattedAxes:e,tickRects:t})=>(0,o.jsx)(o.Fragment,{children:e.map(r=>{if(r.geometry!=="linear")return null;const n=t[r.position];return!n||!r.isVisible?null:(0,o.jsx)(xg,{formattedAxis:r,rect:n},r.scaleAestheticKey)})}),Pg=({formattedAxes:e,labelRects:t})=>(0,o.jsx)(Ag,{axes:e.filter(r=>r.geometry==="linear"),rects:t}),Oo={strokeDashoffset:"0",strokeLinecap:"round"},Do=(e,t,r)=>{if(e!=="solid")return t===null?e==="dashed"?v.vars.gridLineDash:v.vars.gridLineDotted:r[e].map(n=>n*t).join(" ")},Fo=({axes:e,panel:t,panelFrameRect:r,panelRect:n})=>{const{gridDashRatios:a}=Q(),i=n.x-r.x,s=n.y-r.y;return(0,o.jsx)("svg",{"data-testid":"grid",x:r.x,y:r.y,width:r.width,height:r.height,style:{overflow:"visible"},children:e.map(l=>{if(l.geometry!=="linear"||!l.gridVisible)return null;const c=l.position==="bottom"||l.position==="top",d=Do(l.gridLineStyle,l.gridLineWidth,a),u=l.gridLineWidth??v.vars.gridLineWidth;return(0,o.jsx)("g",{children:l.ticks.map((p,f)=>{const m=wg(c,p.position);if(m!==null&&t.border[m].isVisible)return null;const x=c?p.position:1-p.position;let b;if(c){const y=x*n.width+i;b={x1:y,y1:0,x2:y,y2:"100%"}}else{const y=x*n.height+s;b={x1:0,y1:y,x2:"100%",y2:y}}return(0,o.jsx)("line",{...b,...Oo,strokeDasharray:d,strokeWidth:u,stroke:v.vars.gridLineColor},f)})},l.scaleAestheticKey)})})},wg=(e,t)=>t<=0?e?"left":"bottom":t>=1?e?"right":"top":null,jg=({sizes:e,panel:t,panelFrameRect:r})=>{const n=C(s=>s.coordSystem.type==="polar"),{gridDashRatios:a}=Q();if(n)return null;const i=(0,h.computePanelBorderPaths)(t.border,{x:e.left/2,y:e.top/2,width:r.width-(e.left+e.right)/2,height:r.height-(e.top+e.bottom)/2},t.cornerRadius);return i.length===0?null:(0,o.jsx)("svg",{"data-testid":"panel-border",x:r.x,y:r.y,width:r.width,height:r.height,style:{overflow:"visible"},children:i.map((s,l)=>(0,o.jsx)("path",{d:kg(s.segments),fill:"none",stroke:s.color??v.vars.gridLineColor,strokeDasharray:Do(s.lineStyle,s.lineWidth,a),strokeWidth:s.lineWidth??v.vars.gridLineWidth,...Oo},l))})},kg=e=>e.map(t=>{switch(t.type){case"move":return`M ${t.x} ${t.y}`;case"line":return`L ${t.x} ${t.y}`;case"arc":{const r=t.cx+t.radius*Math.cos(t.endAngle),n=t.cy+t.radius*Math.sin(t.endAngle);return`A ${t.radius} ${t.radius} 0 0 1 ${r} ${n}`}case"close":return"Z"}}).join(" ");var Go=(e,t)=>{const r=C(c=>c.coordSystem);if(r.type!=="polar")return null;const n=t.find(c=>c.geometry==="circular");if(!n)return null;const{innerRadius:a,startAngle:i,spokeRotation:s}=r,l=jt(e);return l.radius<=0?null:{circle:l,circularAxis:n,radialAxis:t.find(c=>c.geometry==="radial"),innerRadius:a,startAngle:i,angleFor:c=>(0,h.positionToAngle)(c,i,s),radiusNormFor:c=>a+c*(1-a)}},Cg=3,Eg=16,Rg=({formattedAxes:e,panelRect:t})=>{const r=Go(t,e);if(!r)return null;const{circle:n,circularAxis:a,radialAxis:i,startAngle:s,angleFor:l,radiusNormFor:c}=r,d=Lg(i,c,n.radius);return(0,o.jsxs)("svg",{x:t.x,y:t.y,width:t.width,height:t.height,overflow:"visible","data-testid":"polar-axis-ticks",children:[i?.isVisible&&d.map(({tick:u,radiusNorm:p},f)=>{const m=Y(s,p,n);return(0,o.jsx)("text",{x:m.x,y:m.y,textAnchor:"middle",dominantBaseline:"central",style:{font:v.vars.fontTickLabel,paintOrder:"stroke"},stroke:v.vars.graphBackground,strokeWidth:Cg,fill:v.vars.textSecondary,children:u.formattedLabel},`radial-label-${f}`)}),a.isVisible&&a.ticks.map((u,p)=>{if(u.position>=1-1e-9)return null;const f=l(u.position),m=Y(f,(n.radius+h.POLAR_RIM_LABEL_GAP_PX)/n.radius,n);return(0,o.jsx)("text",{x:m.x,y:m.y,textAnchor:Tg(f),dominantBaseline:"central",style:{font:v.vars.fontTickLabel},fill:v.vars.textSecondary,children:u.formattedLabel},`rim-label-${p}`)})]})},Lg=(e,t,r)=>{if(!e)return[];const n=[];let a=Number.NEGATIVE_INFINITY;for(const i of e.ticks){const s=t(i.position);if(s<=0)continue;const l=s*r;l-a<Eg||(n.push({tick:i,radiusNorm:s}),a=l)}return n},Tg=e=>{const t=Math.sin(e);return Math.abs(t)<.01?"middle":t>0?"start":"end"},Bg=({formattedAxes:e,panelRect:t})=>{const r=Go(t,e);if(!r)return null;const{circle:n,circularAxis:a,radialAxis:i,innerRadius:s,angleFor:l,radiusNormFor:c}=r;return(0,o.jsxs)("svg",{x:t.x,y:t.y,width:t.width,height:t.height,overflow:"visible","data-testid":"polar-grid",children:[i?.gridVisible&&i.ticks.map((d,u)=>{const p=c(d.position)*n.radius;return p<=0||d.position>=1?null:(0,o.jsx)("circle",{cx:n.centerX,cy:n.centerY,r:p,fill:"none",stroke:v.vars.gridLineColor,strokeWidth:v.vars.gridLineWidth},`ring-${u}`)}),i?.gridVisible&&(0,o.jsx)("circle",{cx:n.centerX,cy:n.centerY,r:n.radius,fill:"none",stroke:v.vars.gridLineColor,strokeWidth:v.vars.gridLineWidth}),a.gridVisible&&a.ticks.map((d,u)=>{if(d.position>=1-1e-9)return null;const p=l(d.position),f=Y(p,s,n),m=Y(p,1,n);return(0,o.jsx)("line",{x1:f.x,y1:f.y,x2:m.x,y2:m.y,stroke:v.vars.gridLineColor,strokeWidth:v.vars.gridLineWidth},`spoke-${u}`)})]})},Mg=({layer:e,coordSystem:t,shouldAnimateTransitions:r,isDimmed:n,dimStyle:a,formattingLocale:i})=>{const s=ne(),l=Sl(e.id),c=s(e.geom,t.type);if(c===null)return null;const d=$e(c.render);return d.overlay?null:(0,o.jsx)("g",{style:n?{opacity:a.opacity,...a.saturation===void 0?{}:{filter:`saturate(${a.saturation})`}}:void 0,children:d.fn({layer:e,coordSystem:t,shouldAnimateTransitions:r,formattingLocale:i,intro:l})})};function Ng({renderer:e,layer:t,coordSystem:r,candidates:n}){if(e?.getOverlayAnchor===void 0||n.length===0)return[];const a=[];for(const{observation:i,observationIndex:s}of n){const l=e.getOverlayAnchor({layer:t,coordSystem:r,observation:i});l!==null&&a.push({observation:i,observationIndex:s,anchor:l})}return a}var Ig=4,Og=({renderer:e,layer:t,matchedLayer:r,overlayCandidates:n,coordSystem:a,shouldAnimateTransitions:i,panelRect:s,formattingLocale:l})=>{const{numberFormat:c,textScale:d}=C((0,D.useShallow)(A=>({numberFormat:A.config.numberFormat,textScale:A.config.appearance.textScale}))),u=(0,g.useMemo)(()=>Ng({renderer:e,layer:t,coordSystem:a,candidates:n}),[e,t,a,n]),p=T(t),f=(0,g.useMemo)(()=>(0,h.createSegmentYReader)(t),[t]),m=(0,g.useMemo)(()=>(0,h.buildLayerYValueFormatter)({layer:t,numberFormat:c,locale:l}),[c,t,l]),{fonts:x}=Q(),b=(0,g.useMemo)(()=>z(x.dataLabel,d),[x.dataLabel,d]);if(e===null||r===null&&u.length===0)return null;const y=$e(e.render);let S=null;if(r&&!y.overlay){const A={layer:r,sourceLayer:t,coordSystem:a,shouldAnimateTransitions:i,formattingLocale:l,panelRect:s};S=e.renderHighlight?e.renderHighlight(A):y.fn(A)}return(0,o.jsxs)(o.Fragment,{children:[S,u.map(({observation:A,observationIndex:P,anchor:k})=>(0,o.jsx)(Dg,{observation:A,anchor:k,panelRect:s,fill:p.get("color",A),dotRadius:(p.get("size",A)??8)/2,readSegmentY:f,formatYValue:m,labelFont:b},Fg(A,P)))]})},Dg=({observation:e,anchor:t,panelRect:r,fill:n,dotRadius:a,readSegmentY:i,formatYValue:s,labelFont:l})=>{const c=se(),d=(0,h.toViewBoxX)(t.x),u=(0,h.toViewBoxY)(t.y),p=i(e),f=(0,h.isDefined)(p)?s(p,e):null,m=(0,g.useMemo)(()=>{if(f===null)return null;const x=c.measureText(f,l);return{width:x.width+h.DATA_LABEL_PADDING_X_PX*2,height:x.height+h.DATA_LABEL_PADDING_Y_PX*2}},[f,c,l]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("circle",{"data-testid":"highlight-overlay-dot",cx:(0,h.toPercent)(d),cy:(0,h.toPercent)(u),r:a,fill:n}),f!==null&&m!==null&&(0,o.jsx)(Io,{x:d*r.width,y:u*r.height-a-Ig-m.height/2,width:m.width,height:m.height,text:f,isRotated:!1,target:"observation",position:"outside",coordType:"cartesian"})]})},Fg=(e,t)=>{const r=e[h.GROUP_VARIABLES.group];return`${String(r??"")}\0${t}`},Gg=({layer:e,coordSystem:t,panelRect:r})=>{const{primary:n,group:a,related:i}=pe((0,D.useShallow)(d=>({primary:d.hover.primary,group:d.hover.group,related:d.hover.related}))),s=ne();if(n===null)return null;const l=s(e.geom,t.type);if(l===null||bn(l))return null;const c=i.get(e.id)??[];return n.layerId===e.id?l.renderHover({layer:e,coordSystem:t,primary:n,group:a,related:c,panelRect:r}):c.length===0?null:l.renderHoverCompanions({layer:e,primary:n,related:c})},Hg=e=>{const t=T(e);return(0,g.useMemo)(()=>{const[r]=e.data;return r===void 0?{opacity:void 0,saturation:void 0}:{opacity:t.get("alpha",r,"dimmed"),saturation:t.get("saturation",r,"dimmed")}},[e,t])},Vg="var(--to1jkx0)",Wg="var(--to1jkx1)",Ug="to1jkx2",zg="to1jkx3",Yg=({shouldAnimateTransitions:e,panelRect:t,formattingLocale:r})=>{const{layers:n,coordSystem:a}=C((0,D.useShallow)(i=>({layers:i.layers,coordSystem:i.coordSystem})));return(0,o.jsx)("svg",{x:t.x,y:t.y,width:t.width,height:t.height,className:Ug,"data-testid":"geom-layers",...Ql(),children:n.map(i=>(0,o.jsxs)(g.Fragment,{children:[(0,o.jsx)(Xg,{layer:i,coordSystem:a,shouldAnimateTransitions:e,panelRect:t,formattingLocale:r}),(0,o.jsx)(Gg,{layer:i,coordSystem:a,panelRect:t})]},`${i.id}-${qg(a)}`))})},qg=e=>e.type==="cartesian"?`cartesian-${e.mainAxis}`:e.type,Kg=e=>{if(e.geom!=="rule")return zg},Qg=e=>(0,Rr.assignInlineVars)({...e.opacity===void 0?{}:{[Vg]:String(e.opacity)},...e.saturation===void 0?{}:{[Wg]:`saturate(${e.saturation})`}}),Xg=({layer:e,coordSystem:t,shouldAnimateTransitions:r,panelRect:n,formattingLocale:a})=>{const i=ne(),s=(0,g.useMemo)(()=>i(e.geom,t.type),[i,e,t]),l=e.highlight,c=Hg(e),d={layer:e,coordSystem:t,shouldAnimateTransitions:r,formattingLocale:a},u=s?$e(s.render):null,p=e.spatialKind==="render-hit-test",f=Kg(e);return(0,o.jsxs)("g",{className:f,style:f===void 0?void 0:Qg(c),children:[(0,o.jsx)(Mg,{layer:e,coordSystem:t,shouldAnimateTransitions:r,isDimmed:l?.composition.isDimmed??!1,dimStyle:c,formattingLocale:a}),p&&!u?.overlay&&s?.hitTest&&(0,o.jsx)(ds,{hitTest:s.hitTest,input:d}),p&&u?.overlay&&(0,o.jsx)(vs,{render:u.fn,input:d}),l!==null&&(0,o.jsx)(Og,{renderer:s,layer:e,matchedLayer:l.composition.matchedLayer,overlayCandidates:l.composition.overlayCandidates,coordSystem:t,shouldAnimateTransitions:r,panelRect:n,formattingLocale:a})]})},Jg="_17uhij30",Zg=({formattedAxes:e,panelGuide:t,plotRect:r,panelBorder:n,panelFrameRect:a,panelRect:i,axisRects:s,axisLabelRects:l,shouldAnimateTransitions:c,formattingLocale:d,plotBottomY:u,isFooterChromeReserved:p,isEditable:f})=>{const m=(0,g.useRef)(null);Ph(m);const x=X("Grid",Fo),b=X("AxisTicks",Sg),y=X("AxisLabel",Pg),S=(0,g.useMemo)(()=>At(a,r),[a,r]),A=(0,g.useMemo)(()=>At(i,r),[i,r]),P=(0,g.useMemo)(()=>kr(s,r),[s,r]),k=(0,g.useMemo)(()=>kr(l,r),[l,r]);return(0,o.jsxs)("svg",{ref:m,className:Jg,width:r.width,height:r.height,style:{transform:`translate(${r.x}px, ${r.y}px)`},"data-testid":"plot",children:[(0,o.jsx)(br,{panelRect:A}),(0,o.jsx)(x,{axes:e,panel:t,panelFrameRect:S,panelRect:A}),(0,o.jsx)(b,{formattedAxes:e,tickRects:P}),(0,o.jsx)(y,{formattedAxes:e,labelRects:k}),(0,o.jsx)(Bg,{formattedAxes:e,panelRect:A}),(0,o.jsx)(br,{panelRect:A}),(0,o.jsx)(Pr,{panelRect:A,zOrder:"background"}),(0,o.jsx)(Sr,{panelRect:A,zOrder:"background"}),(0,o.jsx)(jg,{sizes:n,panel:t,panelFrameRect:S}),(0,o.jsx)(Yg,{shouldAnimateTransitions:c,panelRect:A,formattingLocale:d}),(0,o.jsx)(Rg,{formattedAxes:e,panelRect:A}),(0,o.jsx)(pg,{panelRect:A,formattingLocale:d,plotBottomY:u,isFooterChromeReserved:p}),(0,o.jsx)(Oh,{panelRect:A,isEditable:f}),(0,o.jsx)(Pr,{panelRect:A,zOrder:"foreground"}),(0,o.jsx)(Sr,{panelRect:A,zOrder:"foreground"}),(0,o.jsx)(Th,{panelRect:A,isEditable:f}),(0,o.jsx)(Wh,{panelRect:A}),(0,o.jsx)(tg,{panelRect:A}),(0,o.jsx)($h,{panelRect:A}),(0,o.jsx)(yh,{panelRect:A})]})},At=(e,t)=>({x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height}),kr=(e,t)=>{const r={};for(const[n,a]of Object.entries(e))r[n]=At(a,t);return r},_g=e=>{let t,r;return"aspectRatio"in e?"intrinsicWidth"in e?(t=e.intrinsicWidth,r=t/e.aspectRatio):(r=e.intrinsicHeight,t=r*e.aspectRatio):(t=e.intrinsicWidth,r=e.intrinsicHeight),{width:Cr(t,"width"),height:Cr(r,"height")}},Cr=(e,t)=>{if(e<=0||Number.isNaN(e)||!Number.isFinite(e))throw new h.InternalError({message:`Expected ${t} to be a positive, finite number, but got ${e}.`});return e},$g=({sizing:e,onResize:t,children:r})=>{const n=kn({onResize:t});if(e.mode==="keepAspectRatio"){const{intrinsicSize:i,canRender:s,outerStyles:l,innerStyles:c}=ep(e,n.width,!n.isDefault);return(0,o.jsx)("div",{ref:n.setElement,style:l,"data-testid":"graph-sizer",children:s&&(0,o.jsx)("div",{style:c,children:r(i)})})}if(e.mode==="fixed")return(0,o.jsx)("div",{ref:n.setElement,style:{width:e.width,height:e.height},"data-testid":"graph-sizer",children:r({width:e.width,height:e.height})});const a=!n.isDefault&&n.width>0&&n.height>0;return(0,o.jsx)("div",{ref:n.setElement,style:{width:"100%",height:"100%"},"data-testid":"graph-sizer",children:a&&r({width:n.width,height:n.height})})},ep=(e,t,r)=>{const n=_g(e),a=t>0&&n.width>0?t/n.width:1;return{intrinsicSize:n,canRender:r,outerStyles:{width:"100%",...r?{height:n.height*a}:{aspectRatio:`${n.width} / ${n.height}`}},innerStyles:{transformOrigin:"top left",transform:`scale(${a})`,width:n.width,height:n.height}}},tp={mode:"responsive"},dt={headerSize:{width:0,height:0},footerSize:{width:0,height:0}},rp=()=>{const[e,t]=(0,g.useState)(null),[r,n]=(0,g.useState)(null),[a,i]=(0,g.useState)(dt);return(0,g.useEffect)(()=>{const s=()=>{const c=e?{width:e.offsetWidth,height:e.offsetHeight}:dt.headerSize,d=r?{width:r.offsetWidth,height:r.offsetHeight}:dt.footerSize;i(u=>np(u,{headerSize:c,footerSize:d})?{headerSize:c,footerSize:d}:u)};s();const l=new ResizeObserver(s);return e&&l.observe(e),r&&l.observe(r),()=>l.disconnect()},[e,r]),{headerRef:t,footerRef:n,measurements:a}},np=(e,t)=>e.headerSize.width!==t.headerSize.width||e.headerSize.height!==t.headerSize.height||e.footerSize.width!==t.footerSize.width||e.footerSize.height!==t.footerSize.height,op=()=>null,ap=({appearance:e,isEditable:t,style:r,contentRef:n,children:a})=>{const{colorScheme:i,themeClass:s,inlineVarsStyle:l}=Ae(),c=Gs(e.border),d=Math.max(0,e.cornerRadius),u=d===0?0:d+c,p=(0,g.useMemo)(()=>{const x={...r,borderRadius:`${u}px`,...l},b=Fs(e.border,i);return b!==null&&(x.background=b),x},[r,u,l,e.border,i]),f=(0,g.useMemo)(()=>({inset:`${c}px`,borderRadius:`${d}px`}),[c,d]),m=t&&e.background.type==="solid"&&e.background.color==="transparent";return(0,o.jsx)("div",{"data-testid":"graph-wrapper",className:(0,B.default)(Ws,s),style:p,children:(0,o.jsx)("div",{ref:n,"data-testid":"graph-inner",tabIndex:t?0:void 0,className:(0,B.default)(zs,{[Ys]:t,[qs]:m}),style:f,children:a})})},ip=({slots:e,sizing:t=tp,onResize:r,...n})=>{const{formattingLocale:a}=q(),i=C(s=>s.config.parsingLocale);return(0,o.jsx)(Sn,{children:(0,o.jsx)(sn,{children:(0,o.jsx)(Ln,{locale:a??i,children:(0,o.jsx)(ji,{slots:e,children:(0,o.jsx)($g,{sizing:t,onResize:r,children:({width:s,height:l})=>(0,o.jsx)(sp,{width:s,height:l,...n})})})})})})},sp=({width:e,height:t,animation:r,showTooltips:n=!0,mode:a="readonly"})=>{const i=_(),{axes:s,panel:l,legends:c,layers:d,numberFormat:u,parsingLocale:p,appearance:f,annotations:m,coordSystem:x,headline:b,headlineConfig:y,content:S,overflowStrategy:A,layoutConfig:P}=C((0,D.useShallow)(O=>({axes:O.guides.axes,panel:O.guides.panel,legends:O.guides.legends.drawn,layers:O.layers,numberFormat:O.config.numberFormat,parsingLocale:O.config.parsingLocale,appearance:O.config.appearance,annotations:O.annotations,coordSystem:O.coordSystem,headline:O.guides.headline,headlineConfig:O.config.headline,content:O.config.content,overflowStrategy:O.config.panel.overflow,layoutConfig:O.config.layout}))),k=(0,w.useReducedMotion)(),{intro:E,transitions:j}=(0,g.useMemo)(()=>bs(r,k??!1),[r,k]),{headerRef:R,footerRef:L,measurements:ae}=rp(),{formattingLocale:F,colorScheme:rt,themeOverrides:nt}=q(),Be=a==="editable",[Vt,Ho]=(0,g.useState)(null),Me=(0,g.useMemo)(()=>en(rt,nt),[rt,nt]),Vo=X("Header",mo),Wo=X("Footer",fo),Uo=X("Legend",ih),zo=X("Headline",yu),Yo=X("EditorSurface",op),Wt=(0,g.useMemo)(()=>(0,h.formatLegends)({legends:c,numberFormat:u,parsingLocale:p,formattingLocale:F}),[c,u,p,F]),Se=(0,g.useMemo)(()=>(0,h.formatHeadline)({headline:b,show:y.show,numberFormat:u,parsingLocale:p,formattingLocale:F,t:i}),[b,y.show,u,p,F,i]),qo=se(),ot=f.border.type==="none"?0:f.border.width,Pe=(0,g.useMemo)(()=>({width:Math.max(0,e-2*ot),height:Math.max(0,t-2*ot)}),[e,t,ot]),Ut=(0,g.useMemo)(()=>$n(S.brandMark.enabled,Pe,S.brandMark.variant),[S.brandMark.enabled,S.brandMark.variant,Pe]),Ko=S.brandMark.placement==="footer"?Ut:"hidden",Qo=S.brandMark.placement==="header"?Ut:"hidden",Ne=(0,g.useMemo)(()=>Se?{formatted:Se,size:y.size,position:y.position,innerRadius:x.type==="polar"?x.innerRadius:0}:void 0,[Se,y.size,y.position,x]),Xo=ki(),Ie=Ol(qo,f.textScale,Me,Xo),zt=(0,g.useMemo)(()=>(0,h.computePanelBorderSizes)(l.border),[l.border]),we=Dl({measurer:Ie,axes:s,numberFormat:u,parsingLocale:p,formattedLegends:Wt,containerSize:Pe,externalMeasurements:ae,headline:Ne,formattingLocale:F,annotations:m,layers:d,coordSystem:x,textScale:f.textScale,overflowStrategy:A,layout:P,panelBorder:zt}),Oe=(0,g.useMemo)(()=>!we||!Ne||!Ie?null:(0,h.resolveHeadlinePlacement)({headline:Ne,layout:we.layout,containerSize:Pe,measurer:Ie,itemGap:Me.headlineItemGap}),[we,Ne,Ie,Pe,Me.headlineItemGap]);if(!we)return null;const{layout:V,formattedAxes:Jo,plotBottomY:Zo}=we,_o=V.footer.height>0;return(0,o.jsx)(Nn,{colorScheme:rt,themeOverrides:nt,appearance:f,children:(0,o.jsx)(hi,{metrics:Me,children:(0,o.jsx)(Hl,{children:(0,o.jsx)(oc,{panelRect:V.panel,children:(0,o.jsx)(ap,{appearance:f,isEditable:Be,contentRef:Be?Ho:void 0,style:{width:"100%",height:"100%"},children:(0,o.jsxs)(Al,{intro:E,children:[(0,o.jsx)(Vo,{ref:R,headerRect:V.header,mode:a,title:S.title,isTitleVisible:S.isTitleVisible,subtitle:S.subtitle,isSubtitleVisible:S.isSubtitleVisible,brandMark:Qo}),(0,o.jsx)(Zg,{formattedAxes:Jo,panelGuide:l,plotRect:V.plot,panelBorder:zt,panelFrameRect:V.panelFrame,panelRect:V.panel,axisRects:V.axes,axisLabelRects:V.axisLabels,shouldAnimateTransitions:j,formattingLocale:F??p,plotBottomY:Zo,isFooterChromeReserved:_o,isEditable:Be}),(0,o.jsx)(Wo,{ref:L,footerRect:V.footer,mode:a,caption:S.caption,isCaptionVisible:S.isCaptionVisible,source:S.source,isSourceVisible:S.isSourceVisible,brandMark:Ko}),(0,o.jsx)(Uo,{formattedLegends:Wt,rects:V.legends,textScale:f.textScale}),Se&&Oe&&(0,o.jsx)(zo,{headline:Se,rect:Oe.rect,resolvedSize:Oe.resolvedSize,visibleItemCount:Oe.visibleItemCount}),Be&&Vt!==null&&(0,o.jsx)(Yo,{frameElement:Vt,panelRect:V.panel}),n&&(0,o.jsx)(vl,{})]})})})})})})},lp=e=>{const t=(0,g.useContext)(wt);return(0,g.useMemo)(()=>e||(t?{commands:t.commands,undo:t.history.undo,redo:t.history.redo,subscribe:t.store.subscribe,getCompiled:()=>t.store.getState().compiled,getSelection:()=>t.selectionStore.getState().selection,setSelection:r=>t.selectionStore.getState().setSelection(r),subscribeSelection:t.selectionStore.subscribe}:null),[e,t])},cp=e=>(0,g.useSyncExternalStore)(e.subscribe,e.getCompiled,e.getCompiled),dp=e=>{if(e.altKey||!e.metaKey&&!e.ctrlKey)return null;const t=e.key.toLowerCase();return t==="z"?e.shiftKey?"redo":"undo":t==="y"&&e.ctrlKey&&!e.shiftKey?"redo":null};Object.defineProperty(exports,"ArrowAnnotation",{enumerable:!0,get:function(){return Ro}});Object.defineProperty(exports,"BUILT_IN_GEOM_RENDERERS",{enumerable:!0,get:function(){return xn}});Object.defineProperty(exports,"BrandMark",{enumerable:!0,get:function(){return Dt}});Object.defineProperty(exports,"CanvasTextMeasurer",{enumerable:!0,get:function(){return nn}});Object.defineProperty(exports,"CheckIcon",{enumerable:!0,get:function(){return go}});Object.defineProperty(exports,"ChevronDownIcon",{enumerable:!0,get:function(){return Gt}});Object.defineProperty(exports,"DefaultFooter",{enumerable:!0,get:function(){return fo}});Object.defineProperty(exports,"DefaultGrid",{enumerable:!0,get:function(){return Fo}});Object.defineProperty(exports,"DefaultHeader",{enumerable:!0,get:function(){return mo}});Object.defineProperty(exports,"DefaultSwatch",{enumerable:!0,get:function(){return dn}});Object.defineProperty(exports,"DefaultTooltip",{enumerable:!0,get:function(){return Dn}});Object.defineProperty(exports,"EDIT_TARGET_ID_ATTRIBUTE",{enumerable:!0,get:function(){return Qn}});Object.defineProperty(exports,"EDIT_TARGET_KIND_ATTRIBUTE",{enumerable:!0,get:function(){return Nt}});Object.defineProperty(exports,"EditorProvider",{enumerable:!0,get:function(){return rc}});Object.defineProperty(exports,"FloatingToolbar",{enumerable:!0,get:function(){return G}});Object.defineProperty(exports,"GEOM_PAINT_KIND",{enumerable:!0,get:function(){return Xn}});Object.defineProperty(exports,"GeomRendererResolverProvider",{enumerable:!0,get:function(){return xi}});Object.defineProperty(exports,"GraphContext",{enumerable:!0,get:function(){return wt}});Object.defineProperty(exports,"GraphRenderer",{enumerable:!0,get:function(){return ip}});Object.defineProperty(exports,"HoverProvider",{enumerable:!0,get:function(){return Sn}});Object.defineProperty(exports,"Icon",{enumerable:!0,get:function(){return $}});Object.defineProperty(exports,"ImageAnnotation",{enumerable:!0,get:function(){return To}});Object.defineProperty(exports,"IntlProvider",{enumerable:!0,get:function(){return Ln}});Object.defineProperty(exports,"OverlayPortal",{enumerable:!0,get:function(){return wn}});Object.defineProperty(exports,"PortalThemeProvider",{enumerable:!0,get:function(){return oe}});Object.defineProperty(exports,"STICKER_ASSETS",{enumerable:!0,get:function(){return No}});Object.defineProperty(exports,"ShapeAnnotation",{enumerable:!0,get:function(){return Bo}});Object.defineProperty(exports,"TextAnnotation",{enumerable:!0,get:function(){return Mo}});Object.defineProperty(exports,"TextMeasurerProvider",{enumerable:!0,get:function(){return sn}});Object.defineProperty(exports,"ThemeProvider",{enumerable:!0,get:function(){return Nn}});Object.defineProperty(exports,"Z_INDEX",{enumerable:!0,get:function(){return he}});Object.defineProperty(exports,"__toESM",{enumerable:!0,get:function(){return yt}});Object.defineProperty(exports,"canMoveAnnotationOnCanvas",{enumerable:!0,get:function(){return jo}});Object.defineProperty(exports,"chromeTokens",{enumerable:!0,get:function(){return Ce}});Object.defineProperty(exports,"createGeomRendererResolver",{enumerable:!0,get:function(){return An}});Object.defineProperty(exports,"darkTheme",{enumerable:!0,get:function(){return Bn}});Object.defineProperty(exports,"defineGeomRenderer",{enumerable:!0,get:function(){return is}});Object.defineProperty(exports,"isOverlayHosted",{enumerable:!0,get:function(){return bn}});Object.defineProperty(exports,"lightTheme",{enumerable:!0,get:function(){return Tt}});Object.defineProperty(exports,"lightenCss",{enumerable:!0,get:function(){return Rt}});Object.defineProperty(exports,"parsePx",{enumerable:!0,get:function(){return U}});Object.defineProperty(exports,"readDraggedEndpointFor",{enumerable:!0,get:function(){return Zl}});Object.defineProperty(exports,"readMovedAnnotationFor",{enumerable:!0,get:function(){return Xl}});Object.defineProperty(exports,"readStanding",{enumerable:!0,get:function(){return It}});Object.defineProperty(exports,"resolveAnnotationChromeGeometry",{enumerable:!0,get:function(){return hh}});Object.defineProperty(exports,"resolveBrandMarkVisual",{enumerable:!0,get:function(){return $n}});Object.defineProperty(exports,"resolveHistoryStep",{enumerable:!0,get:function(){return dp}});Object.defineProperty(exports,"resolvePortalContainer",{enumerable:!0,get:function(){return Z}});Object.defineProperty(exports,"useCompiledSelector",{enumerable:!0,get:function(){return C}});Object.defineProperty(exports,"useDifferenceArrowGeometries",{enumerable:!0,get:function(){return _n}});Object.defineProperty(exports,"useEditorState",{enumerable:!0,get:function(){return me}});Object.defineProperty(exports,"useEditorStore",{enumerable:!0,get:function(){return nc}});Object.defineProperty(exports,"useElementScreenRect",{enumerable:!0,get:function(){return Cn}});Object.defineProperty(exports,"useGeomHitTest",{enumerable:!0,get:function(){return Pn}});Object.defineProperty(exports,"useGeomHover",{enumerable:!0,get:function(){return En}});Object.defineProperty(exports,"useGraphCommands",{enumerable:!0,get:function(){return Ft}});Object.defineProperty(exports,"useGraphContext",{enumerable:!0,get:function(){return q}});Object.defineProperty(exports,"useGraphHandle",{enumerable:!0,get:function(){return lp}});Object.defineProperty(exports,"useGraphSelection",{enumerable:!0,get:function(){return Lo}});Object.defineProperty(exports,"useHandleCompiled",{enumerable:!0,get:function(){return cp}});Object.defineProperty(exports,"useHoverContext",{enumerable:!0,get:function(){return le}});Object.defineProperty(exports,"useHoverState",{enumerable:!0,get:function(){return pe}});Object.defineProperty(exports,"useI18n",{enumerable:!0,get:function(){return _}});Object.defineProperty(exports,"useLatestRef",{enumerable:!0,get:function(){return qe}});Object.defineProperty(exports,"useMeasuredBoxRef",{enumerable:!0,get:function(){return Kn}});Object.defineProperty(exports,"useMeasuredBoxes",{enumerable:!0,get:function(){return qn}});Object.defineProperty(exports,"useResolvedAnnotations",{enumerable:!0,get:function(){return ye}});Object.defineProperty(exports,"useTextMeasurer",{enumerable:!0,get:function(){return se}});Object.defineProperty(exports,"useThemeContext",{enumerable:!0,get:function(){return Ae}});
|