@antv/infographic 0.0.1-beta.3 → 0.0.1-beta.4
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/infographic.min.js +67 -67
- package/dist/infographic.min.js.map +1 -1
- package/esm/designs/components/Title.js +1 -1
- package/esm/designs/structures/sequence-color-snake-steps.js +7 -5
- package/esm/designs/types.d.ts +2 -2
- package/esm/index.d.ts +7 -5
- package/esm/index.js +2 -2
- package/esm/jsx-dev-runtime.d.ts +1 -0
- package/esm/jsx-dev-runtime.js +1 -0
- package/esm/options/parser.js +4 -1
- package/esm/renderer/composites/shape.js +5 -4
- package/esm/renderer/composites/text.js +6 -1
- package/esm/renderer/stylize/pattern.d.ts +3 -2
- package/esm/renderer/stylize/pattern.js +8 -15
- package/lib/designs/components/Title.js +1 -1
- package/lib/designs/structures/sequence-color-snake-steps.js +7 -5
- package/lib/designs/types.d.ts +2 -2
- package/lib/index.d.ts +7 -5
- package/lib/index.js +36 -3
- package/lib/jsx-dev-runtime.d.ts +1 -0
- package/lib/jsx-dev-runtime.js +17 -0
- package/lib/options/parser.js +4 -1
- package/lib/renderer/composites/shape.js +5 -4
- package/lib/renderer/composites/text.js +6 -1
- package/lib/renderer/stylize/pattern.d.ts +3 -2
- package/lib/renderer/stylize/pattern.js +8 -18
- package/package.json +7 -5
- package/src/designs/components/Title.tsx +1 -1
- package/src/designs/structures/sequence-color-snake-steps.tsx +15 -7
- package/src/designs/types.ts +1 -1
- package/src/index.ts +78 -5
- package/src/jsx-dev-runtime.ts +1 -0
- package/src/options/parser.ts +4 -1
- package/src/renderer/composites/shape.ts +6 -5
- package/src/renderer/composites/text.ts +6 -1
- package/src/renderer/stylize/pattern.ts +9 -20
package/dist/infographic.min.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
(function(R,Dt){typeof exports=="object"&&typeof module!="undefined"?Dt(exports):typeof define=="function"&&define.amd?define(["exports"],Dt):(R=typeof globalThis!="undefined"?globalThis:R||self,Dt(R.AntVInfographic={}))})(this,(function(R){"use strict";var QM=Object.defineProperty,KM=Object.defineProperties;var JM=Object.getOwnPropertyDescriptors;var ug=Object.getOwnPropertySymbols;var tO=Object.prototype.hasOwnProperty,eO=Object.prototype.propertyIsEnumerable;var gr=Math.pow,dg=(R,Dt,re)=>Dt in R?QM(R,Dt,{enumerable:!0,configurable:!0,writable:!0,value:re}):R[Dt]=re,Jt=(R,Dt)=>{for(var re in Dt||(Dt={}))tO.call(Dt,re)&&dg(R,re,Dt[re]);if(ug)for(var re of ug(Dt))eO.call(Dt,re)&&dg(R,re,Dt[re]);return R},se=(R,Dt)=>KM(R,JM(Dt));const Dt=new Map;function re(t,e){Dt.set(t,e)}function Ha(t){return Dt.get(t)}function pg(){return Array.from(Dt.keys())}var gg=Object.defineProperty,La=Object.getOwnPropertySymbols,mg=Object.prototype.hasOwnProperty,yg=Object.prototype.propertyIsEnumerable,Ra=(t,e,n)=>e in t?gg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xg=(t,e)=>{for(var n in e||(e={}))mg.call(e,n)&&Ra(t,n,e[n]);if(La)for(var n of La(e))yg.call(e,n)&&Ra(t,n,e[n]);return t};const _g={"tech-style":{edgeType:"straight",edgeStyle:"solid",edgeColorMode:"gradient",edgeMarker:"arrow",markerSize:12,edgeCornerRadius:5},"dashed-line":{edgeStyle:"dashed",edgeCornerRadius:10,edgeDashPattern:"10,5",edgeColorMode:"gradient",edgeMarker:"dot",markerSize:6,edgeOffset:6},"distributed-origin":{edgeOrigin:"distributed",edgeOriginPadding:30,edgeMarker:"arrow",edgeCornerRadius:10,markerSize:12,edgeColorMode:"gradient"},"curved-line":{edgeType:"curved",edgeColorMode:"gradient",edgeMarker:"none"},"dashed-arrow":{edgeType:"straight",edgeStyle:"dashed",edgeDashPattern:"8,4",edgeMarker:"arrow",markerSize:10,edgeCornerRadius:0}},bg=["capsule-item","rounded-rect-node","compact-card","badge-card","ribbon-card"],Na={},wg="hierarchy-tree";for(const t of bg)for(const[e,n]of Object.entries(_g)){const r=`${wg}-${e}-${t}`;Na[r]={design:{structure:xg({type:"hierarchy-tree"},n),item:{type:t}}}}var vg=Object.defineProperty,Da=Object.getOwnPropertySymbols,$g=Object.prototype.hasOwnProperty,Pg=Object.prototype.propertyIsEnumerable,ja=(t,e,n)=>e in t?vg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Mg=(t,e)=>{for(var n in e||(e={}))$g.call(e,n)&&ja(t,n,e[n]);if(Da)for(var n of Da(e))Pg.call(e,n)&&ja(t,n,e[n]);return t};const Og=Mg({"compare-hierarchy-left-right-circle-node-pill-badge":{design:{structure:{type:"compare-hierarchy-left-right",decoration:"split-line",surround:!1,groupGap:-20},title:"default",items:[{type:"circle-node",width:240},"pill-badge"]},themeConfig:{}},"compare-hierarchy-left-right-circle-node-plain-text":{design:{title:"default",structure:{type:"compare-hierarchy-left-right",decoration:"dot-line",flipLeaf:!0,groupGap:-10},items:[{type:"circle-node",width:180},{type:"plain-text"}]}},"list-pyramid-rounded-rect-node":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"rounded-rect-node"}]}},"list-pyramid-badge-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"badge-card"}]}},"list-pyramid-compact-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"compact-card"}]}},"list-column-done-list":{design:{title:"default",structure:{type:"list-column"},items:[{type:"done-list"}]}},"list-column-vertical-icon-arrow":{design:{title:"default",structure:{type:"list-column",gap:-5,zigzag:!0},items:[{type:"vertical-icon-arrow"}]}},"list-grid-badge-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"badge-card"}]}},"list-grid-candy-card-lite":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"candy-card-lite"}]}},"chart-column-simple":{design:{title:"default",structure:{type:"chart-column"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-grid-circular-progress":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"circular-progress"}]}},"list-grid-compact-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"compact-card"}]}},"list-grid-done-list":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"done-list"}]}},"list-grid-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-grid",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"list-grid-progress-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"progress-card"}]}},"list-grid-ribbon-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"ribbon-card"}]}},"list-grid-simple":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"simple"}]}},"list-row-circular-progress":{design:{title:"default",structure:{type:"list-row"},items:[{type:"circular-progress"}]}},"list-row-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"relation-circle-circular-progress":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"circular-progress"}]}},"relation-circle-icon-badge":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"icon-badge"}]}},"sequence-steps-badge-card":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"badge-card"}]}},"sequence-steps-simple":{design:{title:"default",structure:{type:"sequence-steps",gap:10},items:[{type:"simple"}]}},"sequence-timeline-done-list":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"done-list"}]}},"sequence-timeline-plain-text":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"plain-text"}]}},"sequence-timeline-rounded-rect-node":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"rounded-rect-node"}]}},"sequence-ascending-steps":{design:{title:"default",structure:{type:"sequence-ascending-steps",vGap:-46,hGap:-20},items:[{type:"l-corner-card"}]}},"sequence-timeline-simple":{design:{title:"default",structure:{type:"sequence-timeline",gap:20},items:[{type:"simple"}]}},"sequence-cylinders-3d-simple":{design:{title:"default",structure:{type:"sequence-cylinders-3d",gapY:20},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-column-simple-vertical-arrow":{design:{title:"default",structure:{type:"list-column",gap:0,zigzag:!0},items:[{type:"simple-vertical-arrow"}]}},"list-row-simple-horizontal-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"simple-horizontal-arrow"}]}},"compare-swot":{design:{title:"default",structure:{type:"compare-hierarchy-row",itemGap:32,itemPadding:40,showColumnBackground:!0,columnBackgroundAlpha:.08},items:[{type:"letter-card",showBottomShade:!1},{type:"plain-text",formatter:t=>`● ${t}`,usePaletteColor:!0}]}},"compare-hierarchy-row-letter-card-compact-card":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"compact-card"}]}},"compare-hierarchy-row-letter-card-rounded-rect-node":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"rounded-rect-node"}]}},"sequence-snake-steps-compact-card":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"compact-card"}]}},"sequence-snake-steps-pill-badge":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"pill-badge"}]}},"sequence-snake-steps-simple":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple"}]}},"sequence-color-snake-steps-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"horizontal-icon-line"}]}},"sequence-pyramid-simple":{design:{title:"default",structure:{type:"sequence-pyramid"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-row-horizontal-icon-line":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-line"}]}},"list-sector-simple":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"simple"}]}},"list-sector-plain-text":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"plain-text"}]}},"list-sector-half-plain-text":{design:{title:"default",structure:{type:"list-sector",startAngle:-180,endAngle:0},items:[{type:"plain-text"}]}},"quadrant-quarter-simple-card":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-simple-card"}]}},"quadrant-quarter-circular":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-plain-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"plain-text"}]}},"sequence-roadmap-vertical-simple":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"simple",showIcon:!1}]}},"sequence-roadmap-vertical-badge-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"badge-card"}]}},"sequence-roadmap-vertical-pill-badge":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"pill-badge"}]}},"sequence-roadmap-vertical-quarter-circular":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-quarter-simple-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical",flipped:!0},items:[{type:"quarter-simple-card"}]}},"sequence-horizontal-zigzag-simple-illus":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-illus"}]}},"sequence-horizontal-zigzag-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"horizontal-icon-line"}]}},"sequence-horizontal-zigzag-plain-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"plain-text"}]}},"sequence-horizontal-zigzag-simple-horizontal-arrow":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-horizontal-arrow"}]}},"sequence-horizontal-zigzag-simple":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple"}]}},"list-row-simple-illus":{design:{title:"default",structure:{type:"list-row"},items:[{type:"simple-illus"}]}},"quadrant-simple-illus":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"simple-illus"}]}},"sequence-color-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"simple-illus"}]}},"sequence-timeline-simple-illus":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"simple-illus",usePaletteColor:!0}]}},"sequence-zigzag-steps-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-steps"},items:[{type:"underline-text"}]}},"sequence-horizontal-zigzag-underline-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"underline-text"}]}},"sequence-roadmap-vertical-underline-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"underline-text"}]}},"sequence-snake-steps-underline-text":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"underline-text"}]}},"sequence-circle-arrows-indexed-card":{design:{title:"default",structure:{type:"sequence-circle-arrows"},items:[{type:"indexed-card"}]}},"sequence-zigzag-pucks-3d-simple":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-zigzag-pucks-3d-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"underline-text"}]}},"sequence-zigzag-pucks-3d-indexed-card":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"indexed-card"}]}},"sequence-ascending-stairs-3d-simple":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-ascending-stairs-3d-underline-text":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"underline-text"}]}},"sequence-circular-underline-text":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"underline-text"}]}},"sequence-circular-simple":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-filter-mesh-underline-text":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"underline-text"}]}},"sequence-filter-mesh-simple":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-mountain-underline-text":{design:{title:"default",structure:{type:"sequence-mountain"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-simple-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"compact-card"}]}}},Na);Object.entries(Og).forEach(([t,e])=>{re(t,e)});const gt=Symbol.for("@antv/infographic/Fragment");function h(t,e={}){return{type:t,props:e}}const O=h,uo=Symbol.for("@antv/infographic/Defs");function yt(t){return{type:uo,props:t}}function xt(t){var e,n,r,i;const{x:o=0,y:s=0,width:a=0,height:l=0}=t;return(e=t.cx)!=null||(t.cx=o+a/2),(n=t.cy)!=null||(t.cy=s+l/2),(r=t.rx)!=null||(t.rx=a/2),(i=t.ry)!=null||(t.ry=l/2),{type:"ellipse",props:t}}function B(t){const{x:e=0,y:n=0}=t;return(e||n)&&(t.transform||(t.transform=`translate(${e}, ${n})`)),{type:"g",props:t}}var Cg=Object.defineProperty,Fa=Object.getOwnPropertySymbols,Sg=Object.prototype.hasOwnProperty,Ig=Object.prototype.propertyIsEnumerable,Ba=(t,e,n)=>e in t?Cg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ag=(t,e)=>{for(var n in e||(e={}))Sg.call(e,n)&&Ba(t,n,e[n]);if(Fa)for(var n of Fa(e))Ig.call(e,n)&&Ba(t,n,e[n]);return t};function ot(t){const{x:e,y:n}=t,r=Ag({},t);return(e!==void 0||n!==void 0)&&(r.transform=`translate(${e!=null?e:0}, ${n!=null?n:0})`),{type:"path",props:r}}var kg=Object.defineProperty,Eg=Object.defineProperties,zg=Object.getOwnPropertyDescriptors,mr=Object.getOwnPropertySymbols,Wa=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable,Ya=(t,e,n)=>e in t?kg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Tg=(t,e)=>{for(var n in e||(e={}))Wa.call(e,n)&&Ya(t,n,e[n]);if(mr)for(var n of mr(e))Xa.call(e,n)&&Ya(t,n,e[n]);return t},Hg=(t,e)=>Eg(t,zg(e)),Lg=(t,e)=>{var n={};for(var r in t)Wa.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&mr)for(var r of mr(t))e.indexOf(r)<0&&Xa.call(t,r)&&(n[r]=t[r]);return n};function _e(t){var e=t,{points:n=[]}=e,r=Lg(e,["points"]);const{x:i,y:o}=r,s=n.map(({x:c,y:f})=>`${c},${f}`).join(" "),a=Hg(Tg({},r),{points:s});return(i!==void 0||o!==void 0)&&(a.transform=`translate(${i!=null?i:0}, ${o!=null?o:0})`),{type:"polygon",props:a}}function dt(t){return{type:"rect",props:t}}var Rg=Object.defineProperty,Ng=Object.defineProperties,Dg=Object.getOwnPropertyDescriptors,yr=Object.getOwnPropertySymbols,Va=Object.prototype.hasOwnProperty,qa=Object.prototype.propertyIsEnumerable,Ga=(t,e,n)=>e in t?Rg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Mt=(t,e)=>{for(var n in e||(e={}))Va.call(e,n)&&Ga(t,n,e[n]);if(yr)for(var n of yr(e))qa.call(e,n)&&Ga(t,n,e[n]);return t},xr=(t,e)=>Ng(t,Dg(e)),jg=(t,e)=>{var n={};for(var r in t)Va.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&yr)for(var r of yr(t))e.indexOf(r)<0&&qa.call(t,r)&&(n[r]=t[r]);return n};const Fg={center:"middle",right:"end",left:"start"};function Et(t){const e=t,{id:n,x:r=0,y:i=0,width:o=0,height:s=0,alignHorizontal:a="left",alignVertical:l="top",children:c,fontSize:f=14,fontFamily:d,fontStyle:u,fontWeight:p,textDecoration:g,letterSpacing:m,wordSpacing:y,opacity:_,fill:x="black",lineHeight:b,wordWrap:w,backgroundColor:P="none",backgroundOpacity:v=1,backgroundRadius:$=0}=e,M=jg(e,["id","x","y","width","height","alignHorizontal","alignVertical","children","fontSize","fontFamily","fontStyle","fontWeight","textDecoration","letterSpacing","wordSpacing","opacity","fill","lineHeight","wordWrap","backgroundColor","backgroundOpacity","backgroundRadius"]),I=Object.entries(Mt(Mt(Mt(Mt({},b!==void 0&&{"line-height":b}),w!==void 0&&{"data-word-wrap":w}),o!==void 0&&{width:o}),s!==void 0&&{height:s})).reduce((T,[N,F])=>xr(Mt({},T),{[N]:F}),{}),S=a==="center"?r+o/2:a==="right"?r+o:r,k=(()=>{if(l==="middle")return i+s/2;if(l==="bottom")return i+s;const T=+f,N=.88;if(b&&b>1){const X=T*b-T;return i+X/2+T*N}return i+T*N})(),A=()=>l==="middle"?"central":"baseline",z=Mt(Mt(Mt(Mt(Mt(Mt(Mt(Mt(Mt(xr(Mt(Mt(Mt(Mt(Mt(Mt({"data-element-type":"text"},S&&{x:S}),k&&{y:k}),o&&{width:o}),s&&{height:s}),r&&{"data-x":r}),i&&{"data-y":i}),{fill:x,fontSize:f,textAnchor:Fg[a],dominantBaseline:A(),"data-text-alignment":`${a.toUpperCase()} ${l.toUpperCase()}`,children:c}),I),M),d&&{fontFamily:d}),u&&{fontStyle:u}),p&&{fontWeight:p}),g&&g!=="none"&&{textDecoration:g}),m&&{letterSpacing:m}),y&&{wordSpacing:y}),_!==void 0&&_!==1&&{opacity:_}),j=Mt(Mt(Mt(Mt({},r&&{x:r}),i&&{y:i}),o&&{width:o}),s&&{height:s}),E=Mt(Mt({},j),n&&{id:n});if(!(P&&P!=="none"))return{type:"text",props:Mt(Mt({},E),z)};const L=xr(Mt({"data-element-type":"shape"},j),{fill:P,fillOpacity:v,rx:$,ry:$});return{type:"g",props:xr(Mt({},E),{children:[{type:"rect",props:L},{type:"text",props:z}]})}}const An=Symbol.for("@antv/infographic/Fragment");function _r(t,e={}){return{type:t,props:e}}function Bg(t={}){return _r(An,t)}const Wg=_r,Xg=_r;function Yg(t){return!t||typeof t!="object"||Array.isArray(t)?!1:t.type===An}function Ua(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&"type"in t}function kn(t){return En(t).filter(Ua)}function En(t,e=[]){var n;if(!t||typeof t=="boolean")return e;if(Array.isArray(t))t.forEach(r=>En(r,e));else if(Yg(t)){const r=(n=t.props)==null?void 0:n.children;(Array.isArray(r)?r:[r]).filter(Boolean).forEach(i=>{En(i,e)})}else e.push(t);return e}function Ot(t){return typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t)}const br=()=>({x:0,y:0,width:0,height:0});function Za(t){if(!t||t.length===0)return br();let e=1/0,n=1/0,r=-1/0,i=-1/0;for(const o of t){const{x:s,y:a,width:l,height:c}=o,f=s+l,d=a+c;s<e&&(e=s),a<n&&(n=a),f>r&&(r=f),d>i&&(i=d)}return e===1/0||n===1/0||r===-1/0||i===-1/0?{x:0,y:0,width:0,height:0}:{x:e,y:n,width:Math.max(0,r-e),height:Math.max(0,i-n)}}function G(t){var e,n,r,i;if(!t)return br();if(Array.isArray(t)){const p=kn(t);return Be(p)}if(typeof t!="object")return br();const{type:o,props:s={}}=t;if(_o(t)){const p=rl(t);return G(p)}if(typeof o=="function"){const p=(e=s.x)!=null?e:0,g=(n=s.y)!=null?n:0,m=s.width,y=s.height;if(Ot(m)&&Ot(y))return{x:p,y:g,width:m,height:y};const _=o(s);if(!_)return{x:p,y:g,width:m!=null?m:0,height:y!=null?y:0};if(Array.isArray(_)){const x=kn(_),b=Be(x);if(Ot(m)&&Ot(y))return{x:p,y:g,width:m,height:y};const w=b.width!==0?b.width:m!=null?m:0,P=b.height!==0?b.height:y!=null?y:0;return{x:p+b.x,y:g+b.y,width:w,height:P}}if(Ua(_)){const x=_,b=G(x);if(Vg(x,s))return b;const w=x.props&&Ot(x.props.width)&&Ot(x.props.height),$=Qa(x).flatMap(C=>kn(C)).length>0,M=x.props&&x.props.x===s.x&&x.props.y===s.y;if(w)return{x:M?b.x:p+b.x,y:M?b.y:g+b.y,width:b.width,height:b.height};if(Ot(m)&&Ot(y))return $?{x:M?b.x:p,y:M?b.y:g,width:m,height:y}:{x:M?b.x:p+b.x,y:M?b.y:g+b.y,width:m,height:y};const I=b.width!==0?b.width:m!=null?m:0,S=b.height!==0?b.height:y!=null?y:0;return{x:M?b.x:p+b.x,y:M?b.y:g+b.y,width:I,height:S}}return{x:p,y:g,width:m!=null?m:0,height:y!=null?y:0}}const a=(r=s.x)!=null?r:0,l=(i=s.y)!=null?i:0,c=Ot(s.width)?s.width:void 0,f=Ot(s.height)?s.height:void 0;if(Ot(c)&&Ot(f))return{x:a,y:l,width:c,height:f};const u=Qa(t).flatMap(p=>kn(p));if(u.length>0){const p=Be(u);return{x:a+p.x,y:l+p.y,width:Ot(c)?c:p.width,height:Ot(f)?f:p.height}}return{x:a,y:l,width:c!=null?c:0,height:f!=null?f:0}}function Be(t){if(!t||!Array.isArray(t)||t.length===0)return br();const e=[];for(const n of t){const r=kn(n);for(const i of r){const o=G(i);o&&e.push(o)}}return Za(e)}function Vg(t,e){if(!(t!=null&&t.props)||!e)return!1;const n=t.props;if(Ot(n.x)&&Ot(n.y)&&Ot(e.x)&&Ot(e.y)&&n.x===e.x&&n.y===e.y){const r=Ot(n.width)&&Ot(n.height),i=Ot(e.width)&&Ot(e.height);if(!r&&!i)return!0}return Ot(n.x)&&Ot(n.y)&&Ot(n.width)&&Ot(n.height)&&Ot(e.x)&&Ot(e.y)&&Ot(e.width)&&Ot(e.height)?n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height:!1}function Qa(t){var e;const n=(e=t.props)==null?void 0:e.children;return n?Array.isArray(n)?n:[n]:[]}function po(t){var e;return t==null||typeof t=="boolean"?[]:Array.isArray(t)?En(t):typeof t=="object"?En((e=t.props)==null?void 0:e.children):[t]}var qg=Object.defineProperty,wr=Object.getOwnPropertySymbols,Ka=Object.prototype.hasOwnProperty,Ja=Object.prototype.propertyIsEnumerable,tl=(t,e,n)=>e in t?qg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,go=(t,e)=>{for(var n in e||(e={}))Ka.call(e,n)&&tl(t,n,e[n]);if(wr)for(var n of wr(e))Ja.call(e,n)&&tl(t,n,e[n]);return t},Gg=(t,e)=>{var n={};for(var r in t)Ka.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&wr)for(var r of wr(t))e.indexOf(r)<0&&Ja.call(t,r)&&(n[r]=t[r]);return n};const ke=(t,e)=>{const n=t,{type:r,props:i}=n,o=Gg(n,["type","props"]);return go({type:r,props:go(go({},i),e)},o)},el=()=>({defs:new Map});function mo(t){const e={"&":"&","<":"<",">":">",'"':""","'":"'"};return String(t).replace(/[&<>"']/g,n=>e[n])}const nl={className:"class",viewBox:"viewBox",preserveAspectRatio:"preserveAspectRatio",gradientUnits:"gradientUnits",gradientTransform:"gradientTransform",patternUnits:"patternUnits",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",maskUnits:"maskUnits",maskContentUnits:"maskContentUnits",clipPathUnits:"clipPathUnits",primitiveUnits:"primitiveUnits",filterUnits:"filterUnits",markerUnits:"markerUnits",markerWidth:"markerWidth",markerHeight:"markerHeight",refX:"refX",refY:"refY",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink",xlinkHref:"href",xlinkTitle:"xlink:title",xlinkShow:"xlink:show",xlinkActuate:"xlink:actuate",textLength:"textLength",lengthAdjust:"lengthAdjust",repeatCount:"repeatCount",repeatDur:"repeatDur",calcMode:"calcMode",keyTimes:"keyTimes",keySplines:"keySplines",keyPoints:"keyPoints",stdDeviation:"stdDeviation",baseFrequency:"baseFrequency",numOctaves:"numOctaves",pathLength:"pathLength",systemLanguage:"systemLanguage",requiredFeatures:"requiredFeatures",requiredExtensions:"requiredExtensions"};function Ug(t){return nl[t]?nl[t]:t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}const yo=new Map;function xo(t){const e=Symbol("layout");return yo.set(e,t),r=>({type:e,props:r})}function _o(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)&&typeof t.type=="symbol"&&yo.has(t.type)}function rl(t,e=el()){const n=yo.get(t.type);if(!n)return console.warn("Layout function not found for symbol:",t.type),t;const r=po(t).filter(i=>typeof i=="object");return n(r,t.props,e)}var Zg=Object.defineProperty,Qg=Object.defineProperties,Kg=Object.getOwnPropertyDescriptors,vr=Object.getOwnPropertySymbols,il=Object.prototype.hasOwnProperty,ol=Object.prototype.propertyIsEnumerable,sl=(t,e,n)=>e in t?Zg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Jg=(t,e)=>{for(var n in e||(e={}))il.call(e,n)&&sl(t,n,e[n]);if(vr)for(var n of vr(e))ol.call(e,n)&&sl(t,n,e[n]);return t},t1=(t,e)=>Qg(t,Kg(e)),al=(t,e)=>{var n={};for(var r in t)il.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&vr)for(var r of vr(t))e.indexOf(r)<0&&ol.call(t,r)&&(n[r]=t[r]);return n};function zn(t,e){if(t==null||typeof t=="boolean")return null;if(typeof t=="string"||typeof t=="number")return t;if(Array.isArray(t))return t.map(r=>zn(r,e)).filter(Boolean);if(_o(t)){const r=rl(t,e);return zn(r,e)}if(typeof t.type=="function"){const r=t.type(t.props);return zn(r,e)}const n=po(t).map(r=>zn(r,e)).filter(Boolean);return t.type===An?n:t.type===uo?(n.forEach(r=>{typeof r=="object"&&r.props.id&&e.defs.set(r.props.id,r)}),null):n.length?ke(t,{children:n}):t}function Tn(t,e){if(t==null)return"";if(typeof t=="string")return mo(t);if(typeof t=="number")return String(t);const{type:n,props:r}=t;if(!n)return"";const i=po(t);if(n===An)return i.map(l=>Tn(l)).filter(Boolean).join("");if(n===uo)return"";if(typeof n=="function"||_o(t))return console.warn("Unexpected unprocessed component in render:",t),"";const o=cl(r),s=i.map(l=>Tn(l)).filter(Boolean).join(""),a=String(n);return s?`<${a}${o}>${s}</${a}>`:`<${a}${o} />`}function ll(t,e={}){const n=el(),r=zn(t,n);if(!r)return"";const i=Array.isArray(r)?r.map(y=>Tn(y)).join(""):Tn(r),o=e,{x:s,y:a,width:l,height:c,style:f}=o,d=al(o,["x","y","width","height","style"]),u=t1(Jg({},d),{xmlns:"http://www.w3.org/2000/svg"});if(!u.viewBox)if(l&&c)u.viewBox=`${s!=null?s:0} ${a!=null?a:0} ${l!=null?l:0} ${c!=null?c:0}`;else{const y=G(r);if(y){const{x:_,y:x,width:b,height:w}=y;u.viewBox=`${_} ${x} ${b} ${w}`}}const p=cl(u),g=e1(f),m=n.defs.size?`<defs>${Array.from(n.defs.values()).map(y=>Tn(y)).join("")}</defs>`:"";return`<svg${p}${g}>${m}${i}</svg>`}function cl(t){if(!t)return"";const e=t,{children:n}=e,r=al(e,["children"]);return Object.entries(r).filter(([,i])=>i!=null).map(([i,o])=>{const s=Ug(i),a=typeof o=="string"?mo(String(o)):String(o);return` ${s}="${a}"`}).join("")}function e1(t){if(!t||Object.keys(t).length===0)return"";const e=Object.entries(t).map(([n,r])=>`${n.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}: ${r};`).join("");return` style="${mo(e)}"`}var n1=Object.defineProperty,$r=Object.getOwnPropertySymbols,hl=Object.prototype.hasOwnProperty,fl=Object.prototype.propertyIsEnumerable,ul=(t,e,n)=>e in t?n1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Pr=(t,e)=>{for(var n in e||(e={}))hl.call(e,n)&&ul(t,n,e[n]);if($r)for(var n of $r(e))fl.call(e,n)&&ul(t,n,e[n]);return t},dl=(t,e)=>{var n={};for(var r in t)hl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&$r)for(var r of $r(t))e.indexOf(r)<0&&fl.call(t,r)&&(n[r]=t[r]);return n};const W=t=>{const e=t,{indexes:n}=e,r=dl(e,["indexes"]);return h(dt,Pr(Pr({},{fill:"#B9EBCA",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":"btn-add"}),r))},St=t=>{const e=t,{indexes:n}=e,r=dl(e,["indexes"]);return h(dt,Pr(Pr({},{fill:"#F9C0C0",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":"btn-remove"}),r))};var r1=Object.defineProperty,pl=Object.getOwnPropertySymbols,i1=Object.prototype.hasOwnProperty,o1=Object.prototype.propertyIsEnumerable,gl=(t,e,n)=>e in t?r1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,s1=(t,e)=>{for(var n in e||(e={}))i1.call(e,n)&&gl(t,n,e[n]);if(pl)for(var n of pl(e))o1.call(e,n)&&gl(t,n,e[n]);return t};const pt=t=>h(B,s1({"data-element-type":"btns-group",width:0,height:0},t)),Tt=()=>h(gt,{});var a1=Object.defineProperty,Mr=Object.getOwnPropertySymbols,ml=Object.prototype.hasOwnProperty,yl=Object.prototype.propertyIsEnumerable,xl=(t,e,n)=>e in t?a1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bo=(t,e)=>{for(var n in e||(e={}))ml.call(e,n)&&xl(t,n,e[n]);if(Mr)for(var n of Mr(e))yl.call(e,n)&&xl(t,n,e[n]);return t},l1=(t,e)=>{var n={};for(var r in t)ml.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Mr)for(var r of Mr(t))e.indexOf(r)<0&&yl.call(t,r)&&(n[r]=t[r]);return n};const _l=t=>{var e=t,{indexes:n}=e,r=l1(e,["indexes"]);const o=bo(bo({},{fill:"lightgray"}),r);return n?(o["data-indexes"]=n,o["data-element-type"]="item-illus"):o["data-element-type"]="illus",h(dt,bo({},o))};var c1=Object.defineProperty,h1=Object.defineProperties,f1=Object.getOwnPropertyDescriptors,Or=Object.getOwnPropertySymbols,bl=Object.prototype.hasOwnProperty,wl=Object.prototype.propertyIsEnumerable,vl=(t,e,n)=>e in t?c1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$l=(t,e)=>{for(var n in e||(e={}))bl.call(e,n)&&vl(t,n,e[n]);if(Or)for(var n of Or(e))wl.call(e,n)&&vl(t,n,e[n]);return t},u1=(t,e)=>h1(t,f1(e)),d1=(t,e)=>{var n={};for(var r in t)bl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Or)for(var r of Or(t))e.indexOf(r)<0&&wl.call(t,r)&&(n[r]=t[r]);return n};const It=t=>{var e=t,{indexes:n,lineNumber:r=2,children:i}=e,o=d1(e,["indexes","lineNumber","children"]),s;if(!i)return null;const a=$l({width:100,fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:i},o);return(s=a.height)!=null||(a.height=Math.ceil(r*+a.lineHeight*+a.fontSize)),h(Et,u1($l({},a),{"data-indexes":n,"data-element-type":"item-desc"}))};var p1=Object.defineProperty,g1=Object.defineProperties,m1=Object.getOwnPropertyDescriptors,Cr=Object.getOwnPropertySymbols,Pl=Object.prototype.hasOwnProperty,Ml=Object.prototype.propertyIsEnumerable,Ol=(t,e,n)=>e in t?p1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Hn=(t,e)=>{for(var n in e||(e={}))Pl.call(e,n)&&Ol(t,n,e[n]);if(Cr)for(var n of Cr(e))Ml.call(e,n)&&Ol(t,n,e[n]);return t},Sr=(t,e)=>g1(t,m1(e)),Cl=(t,e)=>{var n={};for(var r in t)Pl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Cr)for(var r of Cr(t))e.indexOf(r)<0&&Ml.call(t,r)&&(n[r]=t[r]);return n};const qt=t=>{const e=t,{indexes:n,size:r=32}=e,i=Cl(e,["indexes","size"]),o=Hn({fill:"lightgray",width:r,height:r},i);return h(dt,Sr(Hn({},o),{"data-indexes":n,"data-element-type":"item-icon"}))},We=t=>{const e=t,{indexes:n,size:r=50,fill:i,colorBg:o="white"}=e,s=Cl(e,["indexes","size","fill","colorBg"]),a=r/Math.SQRT2*.9,l=(r-a)/2,c=Sr(Hn({fill:o},s),{x:l,y:l,width:a,height:a});return O(B,Sr(Hn({},s),{width:r,height:r,"data-element-type":"item-icon-group",children:[h(xt,{width:r,height:r,fill:i,"data-element-type":"shape"}),h(dt,Sr(Hn({},c),{"data-indexes":n,"data-element-type":"item-icon"}))]}))};var y1=Object.defineProperty,x1=Object.defineProperties,_1=Object.getOwnPropertyDescriptors,Ir=Object.getOwnPropertySymbols,Sl=Object.prototype.hasOwnProperty,Il=Object.prototype.propertyIsEnumerable,Al=(t,e,n)=>e in t?y1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,kl=(t,e)=>{for(var n in e||(e={}))Sl.call(e,n)&&Al(t,n,e[n]);if(Ir)for(var n of Ir(e))Il.call(e,n)&&Al(t,n,e[n]);return t},b1=(t,e)=>x1(t,_1(e)),w1=(t,e)=>{var n={};for(var r in t)Sl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ir)for(var r of Ir(t))e.indexOf(r)<0&&Il.call(t,r)&&(n[r]=t[r]);return n};const ft=t=>{var e=t,{indexes:n,children:r}=e,i=w1(e,["indexes","children"]),o;const s=kl({fontSize:18,fontWeight:"bold",fill:"#252525",width:100,lineHeight:1.4,children:r},i);return(o=s.height)!=null||(s.height=Math.ceil(+s.lineHeight*+s.fontSize)),h(Et,b1(kl({},s),{"data-indexes":n,"data-element-type":"item-label"}))};var v1=Object.defineProperty,El=Object.getOwnPropertySymbols,$1=Object.prototype.hasOwnProperty,P1=Object.prototype.propertyIsEnumerable,zl=(t,e,n)=>e in t?v1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,M1=(t,e)=>{for(var n in e||(e={}))$1.call(e,n)&&zl(t,n,e[n]);if(El)for(var n of El(e))P1.call(e,n)&&zl(t,n,e[n]);return t};const _t=t=>h(B,M1({"data-element-type":"items-group"},t));var O1=Object.defineProperty,C1=Object.defineProperties,S1=Object.getOwnPropertyDescriptors,Ar=Object.getOwnPropertySymbols,Tl=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable,Ll=(t,e,n)=>e in t?O1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Rl=(t,e)=>{for(var n in e||(e={}))Tl.call(e,n)&&Ll(t,n,e[n]);if(Ar)for(var n of Ar(e))Hl.call(e,n)&&Ll(t,n,e[n]);return t},I1=(t,e)=>C1(t,S1(e)),A1=(t,e)=>{var n={};for(var r in t)Tl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ar)for(var r of Ar(t))e.indexOf(r)<0&&Hl.call(t,r)&&(n[r]=t[r]);return n};const Ln=t=>{var e=t,{indexes:n,value:r,formatter:i=l=>String(l)}=e,o=A1(e,["indexes","value","formatter"]),s;const a=Rl({width:100,fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:i(r),"data-value":r},o);return(s=a.height)!=null||(a.height=Math.ceil(+a.lineHeight*+a.fontSize)),h(Et,I1(Rl({},a),{"data-indexes":n,"data-element-type":"item-value"}))};var k1=Object.defineProperty,Nl=Object.getOwnPropertySymbols,E1=Object.prototype.hasOwnProperty,z1=Object.prototype.propertyIsEnumerable,Dl=(t,e,n)=>e in t?k1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,T1=(t,e)=>{for(var n in e||(e={}))E1.call(e,n)&&Dl(t,n,e[n]);if(Nl)for(var n of Nl(e))z1.call(e,n)&&Dl(t,n,e[n]);return t};const Nt=t=>h(B,T1({"data-element-type":"shapes-group"},t));var H1=Object.defineProperty,L1=Object.defineProperties,R1=Object.getOwnPropertyDescriptors,kr=Object.getOwnPropertySymbols,jl=Object.prototype.hasOwnProperty,Fl=Object.prototype.propertyIsEnumerable,Bl=(t,e,n)=>e in t?H1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,wo=(t,e)=>{for(var n in e||(e={}))jl.call(e,n)&&Bl(t,n,e[n]);if(kr)for(var n of kr(e))Fl.call(e,n)&&Bl(t,n,e[n]);return t},N1=(t,e)=>L1(t,R1(e)),D1=(t,e)=>{var n={};for(var r in t)jl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&kr)for(var r of kr(t))e.indexOf(r)<0&&Fl.call(t,r)&&(n[r]=t[r]);return n};const an=xo((t,e)=>{var n=e,{horizontal:r,vertical:i}=n,o=D1(n,["horizontal","vertical"]),s,a;if(!t||t.length===0)return h(B,wo({},o));const l=t.map(_=>G(_)),c=o.width!==void 0,f=o.height!==void 0;let d=[...t];const u=Be(t),p=c?o.width:u.width,g=f?o.height:u.height,m=c?o.x||0:u.x,y=f?o.y||0:u.y;if(d=t.map((_,x)=>{const b=l[x],w=wo({},_.props);if(r)switch(r){case"left":w.x=m;break;case"center":w.x=m+(p-b.width)/2;break;case"right":w.x=m+p-b.width;break}else w.x=_.props.x||b.x;if(i)switch(i){case"top":w.y=y;break;case"middle":w.y=y+(g-b.height)/2;break;case"bottom":w.y=y+g-b.height;break}else w.y=_.props.y||b.y;return ke(_,w)}),!c||!f){const _=Be(d);c||(s=o.width)!=null||(o.width=_.width),f||(a=o.height)!=null||(o.height=_.height)}return h(B,N1(wo({},o),{children:d}))});var j1=Object.defineProperty,F1=Object.defineProperties,B1=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertySymbols,Wl=Object.prototype.hasOwnProperty,Xl=Object.prototype.propertyIsEnumerable,Yl=(t,e,n)=>e in t?j1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ln=(t,e)=>{for(var n in e||(e={}))Wl.call(e,n)&&Yl(t,n,e[n]);if(Er)for(var n of Er(e))Xl.call(e,n)&&Yl(t,n,e[n]);return t},W1=(t,e)=>F1(t,B1(e)),X1=(t,e)=>{var n={};for(var r in t)Wl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Er)for(var r of Er(t))e.indexOf(r)<0&&Xl.call(t,r)&&(n[r]=t[r]);return n};const rt=xo((t,e)=>{var n=e,{flexDirection:r="row",justifyContent:i="flex-start",alignItems:o="flex-start",alignContent:s="flex-start",flexWrap:a="nowrap",gap:l=0}=n,c=X1(n,["flexDirection","justifyContent","alignItems","alignContent","flexWrap","gap"]),f,d;if(!t||t.length===0)return h(B,ln({},c));const u=r==="row"||r==="row-reverse",p=r==="row-reverse"||r==="column-reverse",g=t.map(v=>G(v)),m=c.width!==void 0&&c.height!==void 0,y=c.width||0,_=c.height||0,x=[];if(a==="wrap"&&m){let v=[],$=[],M=0;for(let I=0;I<t.length;I++){const S=t[I],C=g[I],k=u?C.width:C.height,A=u?y:_;v.length===0||M+l+k<=A?(v.push(S),$.push(C),M+=(v.length>1?l:0)+k):(x.push({children:v,bounds:$}),v=[S],$=[C],M=k)}v.length>0&&x.push({children:v,bounds:$})}else x.push({children:t,bounds:g});const b=[];let w=0;const P=[];if(x.forEach(v=>{const{children:$,bounds:M}=v,I=M.reduce((j,E,D)=>{const L=u?E.width:E.height;return j+L+(D>0?l:0)},0),S=Math.max(...M.map(j=>u?j.height:j.width));P.push(S);let C=0;const k=(u?y:_)-I;if(m)switch(i){case"flex-end":C=k;break;case"center":C=k/2;break;case"space-between":C=0;break;default:C=0;break}let A=l;m&&i==="space-between"&&$.length>1&&(A=k/($.length-1)+l);let z=C;$.forEach((j,E)=>{const D=M[E],L=u?D.width:D.height,T=u?D.height:D.width;let N=w;if(m)switch(o){case"flex-end":N=w+S-T;break;case"center":N=w+(S-T)/2;break;default:N=w;break}let F,X;u?(F=p?y-z-L:z,X=N):(F=N,X=p?_-z-L:z);const H=ke(j,{x:F,y:X});b.push(H),z+=L+A}),w+=S+l}),x.length>1&&m){const v=P.reduce((I,S)=>I+S,0)+(x.length-1)*l,$=(u?_:y)-v;let M=0;switch(s){case"flex-end":M=$;break;case"center":M=$/2;break;case"space-between":if(x.length>1){const I=$/(x.length-1);let S=0;x.forEach((C,k)=>{const A=x.slice(0,k).reduce((j,E)=>j+E.children.length,0),z=A+C.children.length;for(let j=A;j<z;j++){const E=b[j],D=ln({},E.props);u?D.y=(D.y||0)+S:D.x=(D.x||0)+S,b[j]=ke(E,D)}S+=P[k]+l+(k<x.length-1?I:0)});break}break;default:M=0;break}M!==0&&s!=="space-between"&&b.forEach((I,S)=>{const C=ln({},I.props);u?C.y=(C.y||0)+M:C.x=(C.x||0)+M,b[S]=ke(I,C)})}if(!m){if(o==="center"&&!u){const $=Math.max(...g.map(M=>M.width));b.forEach((M,I)=>{const S=g[I],C=($-S.width)/2,k=ln({},M.props);k.x=(k.x||0)+C,b[I]=ke(M,k)})}else if(o==="center"&&u){const $=Math.max(...g.map(M=>M.height));b.forEach((M,I)=>{const S=g[I],C=($-S.height)/2,k=ln({},M.props);k.y=(k.y||0)+C,b[I]=ke(M,k)})}const v=Be(b);(f=c.width)!=null||(c.width=v.width),(d=c.height)!=null||(c.height=v.height)}return h(B,W1(ln({},c),{children:b}))});var Y1=Object.defineProperty,V1=Object.defineProperties,q1=Object.getOwnPropertyDescriptors,Vl=Object.getOwnPropertySymbols,G1=Object.prototype.hasOwnProperty,U1=Object.prototype.propertyIsEnumerable,ql=(t,e,n)=>e in t?Y1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zr=(t,e)=>{for(var n in e||(e={}))G1.call(e,n)&&ql(t,n,e[n]);if(Vl)for(var n of Vl(e))U1.call(e,n)&&ql(t,n,e[n]);return t},Gl=(t,e)=>V1(t,q1(e));const Ul=t=>{const{x:e=0,y:n=0,width:r=720,alignHorizontal:i="center",title:o,desc:s,descLineNumber:a=2,themeColors:l}=t;return O(rt,{flexDirection:"column",x:e,y:n,width:r,gap:8,children:[o&&h(d=>{const u={fontSize:24,fill:l.colorPrimaryText,width:r,height:s?32:64,lineHeight:1.4,alignHorizontal:i};return h(Et,Gl(zr(zr({},u),d),{"data-element-type":"title",children:o}))},{}),s&&h(d=>{const u={fontSize:16,fill:l.colorTextSecondary,width:r,alignHorizontal:i,lineHeight:1.4,height:a*24};return h(Et,Gl(zr(zr({},u),d),{"data-element-type":"desc",children:s}))},{})]})};function Tr(t){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tr(t)}var Z1=/^\s+/,Q1=/\s+$/;function Q(t,e){if(t=t||"",e=e||{},t instanceof Q)return t;if(!(this instanceof Q))return new Q(t,e);var n=K1(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Q.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),n,r,i,o,s,a;return n=e.r/255,r=e.g/255,i=e.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*s+.0722*a},setAlpha:function(e){return this._a=ec(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Ql(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Ql(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=Zl(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Zl(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return Kl(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return nm(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Lt(this._r,255)*100)+"%",g:Math.round(Lt(this._g,255)*100)+"%",b:Math.round(Lt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Lt(this._r,255)*100)+"%, "+Math.round(Lt(this._g,255)*100)+"%, "+Math.round(Lt(this._b,255)*100)+"%)":"rgba("+Math.round(Lt(this._r,255)*100)+"%, "+Math.round(Lt(this._g,255)*100)+"%, "+Math.round(Lt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:pm[Kl(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var n="#"+Jl(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(e){var o=Q(e);r="#"+Jl(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(e){var n=!!e;e=e||this._format;var r=!1,i=this._a<1&&this._a>=0,o=!n&&i&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return o?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Q(this.toString())},_applyModification:function(e,n){var r=e.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(sm,arguments)},brighten:function(){return this._applyModification(am,arguments)},darken:function(){return this._applyModification(lm,arguments)},desaturate:function(){return this._applyModification(rm,arguments)},saturate:function(){return this._applyModification(im,arguments)},greyscale:function(){return this._applyModification(om,arguments)},spin:function(){return this._applyModification(cm,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(um,arguments)},complement:function(){return this._applyCombination(hm,arguments)},monochromatic:function(){return this._applyCombination(dm,arguments)},splitcomplement:function(){return this._applyCombination(fm,arguments)},triad:function(){return this._applyCombination(tc,[3])},tetrad:function(){return this._applyCombination(tc,[4])}},Q.fromRatio=function(t,e){if(Tr(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(r==="a"?n[r]=t[r]:n[r]=Rn(t[r]));t=n}return Q(t,e)};function K1(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,a=!1;return typeof t=="string"&&(t=xm(t)),Tr(t)=="object"&&(Me(t.r)&&Me(t.g)&&Me(t.b)?(e=J1(t.r,t.g,t.b),s=!0,a=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Me(t.h)&&Me(t.s)&&Me(t.v)?(r=Rn(t.s),i=Rn(t.v),e=em(t.h,r,i),s=!0,a="hsv"):Me(t.h)&&Me(t.s)&&Me(t.l)&&(r=Rn(t.s),o=Rn(t.l),e=tm(t.h,r,o),s=!0,a="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=ec(n),{ok:s,format:t.format||a,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}function J1(t,e,n){return{r:Lt(t,255)*255,g:Lt(e,255)*255,b:Lt(n,255)*255}}function Zl(t,e,n){t=Lt(t,255),e=Lt(e,255),n=Lt(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o,s,a=(r+i)/2;if(r==i)o=s=0;else{var l=r-i;switch(s=a>.5?l/(2-r-i):l/(r+i),r){case t:o=(e-n)/l+(e<n?6:0);break;case e:o=(n-t)/l+2;break;case n:o=(t-e)/l+4;break}o/=6}return{h:o,s,l:a}}function tm(t,e,n){var r,i,o;t=Lt(t,360),e=Lt(e,100),n=Lt(n,100);function s(c,f,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?c+(f-c)*6*d:d<1/2?f:d<2/3?c+(f-c)*(2/3-d)*6:c}if(e===0)r=i=o=n;else{var a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=s(l,a,t+1/3),i=s(l,a,t),o=s(l,a,t-1/3)}return{r:r*255,g:i*255,b:o*255}}function Ql(t,e,n){t=Lt(t,255),e=Lt(e,255),n=Lt(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o,s,a=r,l=r-i;if(s=r===0?0:l/r,r==i)o=0;else{switch(r){case t:o=(e-n)/l+(e<n?6:0);break;case e:o=(n-t)/l+2;break;case n:o=(t-e)/l+4;break}o/=6}return{h:o,s,v:a}}function em(t,e,n){t=Lt(t,360)*6,e=Lt(e,100),n=Lt(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),s=n*(1-i*e),a=n*(1-(1-i)*e),l=r%6,c=[n,s,o,o,a,n][l],f=[a,n,n,s,o,o][l],d=[o,o,a,n,n,s][l];return{r:c*255,g:f*255,b:d*255}}function Kl(t,e,n,r){var i=[he(Math.round(t).toString(16)),he(Math.round(e).toString(16)),he(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function nm(t,e,n,r,i){var o=[he(Math.round(t).toString(16)),he(Math.round(e).toString(16)),he(Math.round(n).toString(16)),he(nc(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Jl(t,e,n,r){var i=[he(nc(r)),he(Math.round(t).toString(16)),he(Math.round(e).toString(16)),he(Math.round(n).toString(16))];return i.join("")}Q.equals=function(t,e){return!t||!e?!1:Q(t).toRgbString()==Q(e).toRgbString()},Q.random=function(){return Q.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function rm(t,e){e=e===0?0:e||10;var n=Q(t).toHsl();return n.s-=e/100,n.s=Hr(n.s),Q(n)}function im(t,e){e=e===0?0:e||10;var n=Q(t).toHsl();return n.s+=e/100,n.s=Hr(n.s),Q(n)}function om(t){return Q(t).desaturate(100)}function sm(t,e){e=e===0?0:e||10;var n=Q(t).toHsl();return n.l+=e/100,n.l=Hr(n.l),Q(n)}function am(t,e){e=e===0?0:e||10;var n=Q(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),Q(n)}function lm(t,e){e=e===0?0:e||10;var n=Q(t).toHsl();return n.l-=e/100,n.l=Hr(n.l),Q(n)}function cm(t,e){var n=Q(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,Q(n)}function hm(t){var e=Q(t).toHsl();return e.h=(e.h+180)%360,Q(e)}function tc(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Q(t).toHsl(),r=[Q(t)],i=360/e,o=1;o<e;o++)r.push(Q({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function fm(t){var e=Q(t).toHsl(),n=e.h;return[Q(t),Q({h:(n+72)%360,s:e.s,l:e.l}),Q({h:(n+216)%360,s:e.s,l:e.l})]}function um(t,e,n){e=e||6,n=n||30;var r=Q(t).toHsl(),i=360/n,o=[Q(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(Q(r));return o}function dm(t,e){e=e||6;for(var n=Q(t).toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/e;e--;)s.push(Q({h:r,s:i,v:o})),o=(o+a)%1;return s}Q.mix=function(t,e,n){n=n===0?0:n||50;var r=Q(t).toRgb(),i=Q(e).toRgb(),o=n/100,s={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return Q(s)},Q.readability=function(t,e){var n=Q(t),r=Q(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Q.isReadable=function(t,e,n){var r=Q.readability(t,e),i,o;switch(o=!1,i=_m(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o},Q.mostReadable=function(t,e,n){var r=null,i=0,o,s,a,l;n=n||{},s=n.includeFallbackColors,a=n.level,l=n.size;for(var c=0;c<e.length;c++)o=Q.readability(t,e[c]),o>i&&(i=o,r=Q(e[c]));return Q.isReadable(t,r,{level:a,size:l})||!s?r:(n.includeFallbackColors=!1,Q.mostReadable(t,["#fff","#000"],n))};var vo=Q.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},pm=Q.hexNames=gm(vo);function gm(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function ec(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Lt(t,e){mm(t)&&(t="100%");var n=ym(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Hr(t){return Math.min(1,Math.max(0,t))}function ie(t){return parseInt(t,16)}function mm(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function ym(t){return typeof t=="string"&&t.indexOf("%")!=-1}function he(t){return t.length==1?"0"+t:""+t}function Rn(t){return t<=1&&(t=t*100+"%"),t}function nc(t){return Math.round(parseFloat(t)*255).toString(16)}function rc(t){return ie(t)/255}var fe=(function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Me(t){return!!fe.CSS_UNIT.exec(t)}function xm(t){t=t.replace(Z1,"").replace(Q1,"").toLowerCase();var e=!1;if(vo[t])t=vo[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=fe.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=fe.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=fe.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=fe.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=fe.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=fe.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=fe.hex8.exec(t))?{r:ie(n[1]),g:ie(n[2]),b:ie(n[3]),a:rc(n[4]),format:e?"name":"hex8"}:(n=fe.hex6.exec(t))?{r:ie(n[1]),g:ie(n[2]),b:ie(n[3]),format:e?"name":"hex"}:(n=fe.hex4.exec(t))?{r:ie(n[1]+""+n[1]),g:ie(n[2]+""+n[2]),b:ie(n[3]+""+n[3]),a:rc(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=fe.hex3.exec(t))?{r:ie(n[1]+""+n[1]),g:ie(n[2]+""+n[2]),b:ie(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function _m(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:e,size:n}}const ic=(t,e)=>{if(typeof t=="number"){if(e===3)return{mode:"rgb",r:(t>>8&15|t>>4&240)/255,g:(t>>4&15|t&240)/255,b:(t&15|t<<4&240)/255};if(e===4)return{mode:"rgb",r:(t>>12&15|t>>8&240)/255,g:(t>>8&15|t>>4&240)/255,b:(t>>4&15|t&240)/255,alpha:(t&15|t<<4&240)/255};if(e===6)return{mode:"rgb",r:(t>>16&255)/255,g:(t>>8&255)/255,b:(t&255)/255};if(e===8)return{mode:"rgb",r:(t>>24&255)/255,g:(t>>16&255)/255,b:(t>>8&255)/255,alpha:(t&255)/255}}},bm={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},wm=t=>ic(bm[t.toLowerCase()],6),vm=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,$m=t=>{let e;return(e=t.match(vm))?ic(parseInt(e[1],16),e[1].length):void 0},Ee="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Nn=`${Ee}%`,$o=`(?:${Ee}%|${Ee})`,Pm=`(?:${Ee}(deg|grad|rad|turn)|${Ee})`,cn="\\s*,\\s*",Mm=new RegExp(`^rgba?\\(\\s*${Ee}${cn}${Ee}${cn}${Ee}\\s*(?:,\\s*${$o}\\s*)?\\)$`),Om=new RegExp(`^rgba?\\(\\s*${Nn}${cn}${Nn}${cn}${Nn}\\s*(?:,\\s*${$o}\\s*)?\\)$`),Cm=t=>{let e={mode:"rgb"},n;if(n=t.match(Mm))n[1]!==void 0&&(e.r=n[1]/255),n[2]!==void 0&&(e.g=n[2]/255),n[3]!==void 0&&(e.b=n[3]/255);else if(n=t.match(Om))n[1]!==void 0&&(e.r=n[1]/100),n[2]!==void 0&&(e.g=n[2]/100),n[3]!==void 0&&(e.b=n[3]/100);else return;return n[4]!==void 0?e.alpha=Math.max(0,Math.min(1,n[4]/100)):n[5]!==void 0&&(e.alpha=Math.max(0,Math.min(1,+n[5]))),e},Sm=(t,e)=>t===void 0?void 0:typeof t!="object"?Oe(t):t.mode!==void 0?t:e?se(Jt({},t),{mode:e}):void 0,Po=(t="rgb")=>e=>(e=Sm(e,t))!==void 0?e.mode===t?e:be[e.mode][t]?be[e.mode][t](e):t==="rgb"?be[e.mode].rgb(e):be.rgb[t](be[e.mode].rgb(e)):void 0,be={},oc={},Lr=[],sc={},Im=t=>t,bt=t=>(be[t.mode]=Jt(Jt({},be[t.mode]),t.toMode),Object.keys(t.fromMode||{}).forEach(e=>{be[e]||(be[e]={}),be[e][t.mode]=t.fromMode[e]}),t.ranges||(t.ranges={}),t.difference||(t.difference={}),t.channels.forEach(e=>{if(t.ranges[e]===void 0&&(t.ranges[e]=[0,1]),!t.interpolate[e])throw new Error(`Missing interpolator for: ${e}`);typeof t.interpolate[e]=="function"&&(t.interpolate[e]={use:t.interpolate[e]}),t.interpolate[e].fixup||(t.interpolate[e].fixup=Im)}),oc[t.mode]=t,(t.parse||[]).forEach(e=>{km(e,t.mode)}),Po(t.mode)),Am=t=>oc[t],km=(t,e)=>{if(typeof t=="string"){if(!e)throw new Error("'mode' required when 'parser' is a string");sc[t]=e}else typeof t=="function"&&Lr.indexOf(t)<0&&Lr.push(t)},Mo=/[^\x00-\x7F]|[a-zA-Z_]/,Em=/[^\x00-\x7F]|[-\w]/,Y={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"};let st=0;function Rr(t){let e=t[st],n=t[st+1];return e==="-"||e==="+"?/\d/.test(n)||n==="."&&/\d/.test(t[st+2]):e==="."?/\d/.test(n):/\d/.test(e)}function Oo(t){if(st>=t.length)return!1;let e=t[st];if(Mo.test(e))return!0;if(e==="-"){if(t.length-st<2)return!1;let n=t[st+1];return!!(n==="-"||Mo.test(n))}return!1}const zm={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Dn(t){let e="";if((t[st]==="-"||t[st]==="+")&&(e+=t[st++]),e+=Nr(t),t[st]==="."&&/\d/.test(t[st+1])&&(e+=t[st++]+Nr(t)),(t[st]==="e"||t[st]==="E")&&((t[st+1]==="-"||t[st+1]==="+")&&/\d/.test(t[st+2])?e+=t[st++]+t[st++]+Nr(t):/\d/.test(t[st+1])&&(e+=t[st++]+Nr(t))),Oo(t)){let n=Dr(t);return n==="deg"||n==="rad"||n==="turn"||n==="grad"?{type:Y.Hue,value:e*zm[n]}:void 0}return t[st]==="%"?(st++,{type:Y.Percentage,value:+e}):{type:Y.Number,value:+e}}function Nr(t){let e="";for(;/\d/.test(t[st]);)e+=t[st++];return e}function Dr(t){let e="";for(;st<t.length&&Em.test(t[st]);)e+=t[st++];return e}function Tm(t){let e=Dr(t);return t[st]==="("?(st++,{type:Y.Function,value:e}):e==="none"?{type:Y.None,value:void 0}:{type:Y.Ident,value:e}}function Hm(t=""){let e=t.trim(),n=[],r;for(st=0;st<e.length;){if(r=e[st++],r===`
|
|
1
|
+
(function(z,Dt){typeof exports=="object"&&typeof module!="undefined"?Dt(exports):typeof define=="function"&&define.amd?define(["exports"],Dt):(z=typeof globalThis!="undefined"?globalThis:z||self,Dt(z.AntVInfographic={}))})(this,(function(z){"use strict";var aS=Object.defineProperty,lS=Object.defineProperties;var cS=Object.getOwnPropertyDescriptors;var Zg=Object.getOwnPropertySymbols;var hS=Object.prototype.hasOwnProperty,fS=Object.prototype.propertyIsEnumerable;var Pr=Math.pow,Qg=(z,Dt,re)=>Dt in z?aS(z,Dt,{enumerable:!0,configurable:!0,writable:!0,value:re}):z[Dt]=re,te=(z,Dt)=>{for(var re in Dt||(Dt={}))hS.call(Dt,re)&&Qg(z,re,Dt[re]);if(Zg)for(var re of Zg(Dt))fS.call(Dt,re)&&Qg(z,re,Dt[re]);return z},se=(z,Dt)=>lS(z,cS(Dt));const Dt=new Map;function re(t,e){Dt.set(t,e)}function Qa(t){return Dt.get(t)}function Kg(){return Array.from(Dt.keys())}var Jg=Object.defineProperty,Ka=Object.getOwnPropertySymbols,t1=Object.prototype.hasOwnProperty,e1=Object.prototype.propertyIsEnumerable,Ja=(t,e,n)=>e in t?Jg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,n1=(t,e)=>{for(var n in e||(e={}))t1.call(e,n)&&Ja(t,n,e[n]);if(Ka)for(var n of Ka(e))e1.call(e,n)&&Ja(t,n,e[n]);return t};const r1={"tech-style":{edgeType:"straight",edgeStyle:"solid",edgeColorMode:"gradient",edgeMarker:"arrow",markerSize:12,edgeCornerRadius:5},"dashed-line":{edgeStyle:"dashed",edgeCornerRadius:10,edgeDashPattern:"10,5",edgeColorMode:"gradient",edgeMarker:"dot",markerSize:6,edgeOffset:6},"distributed-origin":{edgeOrigin:"distributed",edgeOriginPadding:30,edgeMarker:"arrow",edgeCornerRadius:10,markerSize:12,edgeColorMode:"gradient"},"curved-line":{edgeType:"curved",edgeColorMode:"gradient",edgeMarker:"none"},"dashed-arrow":{edgeType:"straight",edgeStyle:"dashed",edgeDashPattern:"8,4",edgeMarker:"arrow",markerSize:10,edgeCornerRadius:0}},i1=["capsule-item","rounded-rect-node","compact-card","badge-card","ribbon-card"],tl={},o1="hierarchy-tree";for(const t of i1)for(const[e,n]of Object.entries(r1)){const r=`${o1}-${e}-${t}`;tl[r]={design:{structure:n1({type:"hierarchy-tree"},n),item:{type:t}}}}var s1=Object.defineProperty,el=Object.getOwnPropertySymbols,a1=Object.prototype.hasOwnProperty,l1=Object.prototype.propertyIsEnumerable,nl=(t,e,n)=>e in t?s1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,c1=(t,e)=>{for(var n in e||(e={}))a1.call(e,n)&&nl(t,n,e[n]);if(el)for(var n of el(e))l1.call(e,n)&&nl(t,n,e[n]);return t};const h1=c1({"compare-hierarchy-left-right-circle-node-pill-badge":{design:{structure:{type:"compare-hierarchy-left-right",decoration:"split-line",surround:!1,groupGap:-20},title:"default",items:[{type:"circle-node",width:240},"pill-badge"]},themeConfig:{}},"compare-hierarchy-left-right-circle-node-plain-text":{design:{title:"default",structure:{type:"compare-hierarchy-left-right",decoration:"dot-line",flipLeaf:!0,groupGap:-10},items:[{type:"circle-node",width:180},{type:"plain-text"}]}},"list-pyramid-rounded-rect-node":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"rounded-rect-node"}]}},"list-pyramid-badge-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"badge-card"}]}},"list-pyramid-compact-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"compact-card"}]}},"list-column-done-list":{design:{title:"default",structure:{type:"list-column"},items:[{type:"done-list"}]}},"list-column-vertical-icon-arrow":{design:{title:"default",structure:{type:"list-column",gap:-5,zigzag:!0},items:[{type:"vertical-icon-arrow"}]}},"list-grid-badge-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"badge-card"}]}},"list-grid-candy-card-lite":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"candy-card-lite"}]}},"chart-column-simple":{design:{title:"default",structure:{type:"chart-column"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-grid-circular-progress":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"circular-progress"}]}},"list-grid-compact-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"compact-card"}]}},"list-grid-done-list":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"done-list"}]}},"list-grid-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-grid",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"list-grid-progress-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"progress-card"}]}},"list-grid-ribbon-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"ribbon-card"}]}},"list-grid-simple":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"simple"}]}},"list-row-circular-progress":{design:{title:"default",structure:{type:"list-row"},items:[{type:"circular-progress"}]}},"list-row-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"relation-circle-circular-progress":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"circular-progress"}]}},"relation-circle-icon-badge":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"icon-badge"}]}},"sequence-steps-badge-card":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"badge-card"}]}},"sequence-steps-simple":{design:{title:"default",structure:{type:"sequence-steps",gap:10},items:[{type:"simple"}]}},"sequence-timeline-done-list":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"done-list"}]}},"sequence-timeline-plain-text":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"plain-text"}]}},"sequence-timeline-rounded-rect-node":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"rounded-rect-node"}]}},"sequence-ascending-steps":{design:{title:"default",structure:{type:"sequence-ascending-steps",vGap:-46,hGap:-20},items:[{type:"l-corner-card"}]}},"sequence-timeline-simple":{design:{title:"default",structure:{type:"sequence-timeline",gap:20},items:[{type:"simple"}]}},"sequence-cylinders-3d-simple":{design:{title:"default",structure:{type:"sequence-cylinders-3d",gapY:20},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-column-simple-vertical-arrow":{design:{title:"default",structure:{type:"list-column",gap:0,zigzag:!0},items:[{type:"simple-vertical-arrow"}]}},"list-row-simple-horizontal-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"simple-horizontal-arrow"}]}},"compare-swot":{design:{title:"default",structure:{type:"compare-hierarchy-row",itemGap:32,itemPadding:40,showColumnBackground:!0,columnBackgroundAlpha:.08},items:[{type:"letter-card",showBottomShade:!1},{type:"plain-text",formatter:t=>`● ${t}`,usePaletteColor:!0}]}},"compare-hierarchy-row-letter-card-compact-card":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"compact-card"}]}},"compare-hierarchy-row-letter-card-rounded-rect-node":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"rounded-rect-node"}]}},"sequence-snake-steps-compact-card":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"compact-card"}]}},"sequence-snake-steps-pill-badge":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"pill-badge"}]}},"sequence-snake-steps-simple":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple"}]}},"sequence-color-snake-steps-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"horizontal-icon-line"}]}},"sequence-pyramid-simple":{design:{title:"default",structure:{type:"sequence-pyramid"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-row-horizontal-icon-line":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-line"}]}},"list-sector-simple":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"simple"}]}},"list-sector-plain-text":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"plain-text"}]}},"list-sector-half-plain-text":{design:{title:"default",structure:{type:"list-sector",startAngle:-180,endAngle:0},items:[{type:"plain-text"}]}},"quadrant-quarter-simple-card":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-simple-card"}]}},"quadrant-quarter-circular":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-plain-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"plain-text"}]}},"sequence-roadmap-vertical-simple":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"simple",showIcon:!1}]}},"sequence-roadmap-vertical-badge-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"badge-card"}]}},"sequence-roadmap-vertical-pill-badge":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"pill-badge"}]}},"sequence-roadmap-vertical-quarter-circular":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-quarter-simple-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical",flipped:!0},items:[{type:"quarter-simple-card"}]}},"sequence-horizontal-zigzag-simple-illus":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-illus"}]}},"sequence-horizontal-zigzag-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"horizontal-icon-line"}]}},"sequence-horizontal-zigzag-plain-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"plain-text"}]}},"sequence-horizontal-zigzag-simple-horizontal-arrow":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-horizontal-arrow"}]}},"sequence-horizontal-zigzag-simple":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple"}]}},"list-row-simple-illus":{design:{title:"default",structure:{type:"list-row"},items:[{type:"simple-illus"}]}},"quadrant-simple-illus":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"simple-illus"}]}},"sequence-color-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"simple-illus"}]}},"sequence-timeline-simple-illus":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"simple-illus",usePaletteColor:!0}]}},"sequence-zigzag-steps-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-steps"},items:[{type:"underline-text"}]}},"sequence-horizontal-zigzag-underline-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"underline-text"}]}},"sequence-roadmap-vertical-underline-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"underline-text"}]}},"sequence-snake-steps-underline-text":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"underline-text"}]}},"sequence-circle-arrows-indexed-card":{design:{title:"default",structure:{type:"sequence-circle-arrows"},items:[{type:"indexed-card"}]}},"sequence-zigzag-pucks-3d-simple":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-zigzag-pucks-3d-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"underline-text"}]}},"sequence-zigzag-pucks-3d-indexed-card":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"indexed-card"}]}},"sequence-ascending-stairs-3d-simple":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-ascending-stairs-3d-underline-text":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"underline-text"}]}},"sequence-circular-underline-text":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"underline-text"}]}},"sequence-circular-simple":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-filter-mesh-underline-text":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"underline-text"}]}},"sequence-filter-mesh-simple":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-mountain-underline-text":{design:{title:"default",structure:{type:"sequence-mountain"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-simple-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"compact-card"}]}}},tl);Object.entries(h1).forEach(([t,e])=>{re(t,e)});const gt=Symbol.for("@antv/infographic/Fragment");function h(t,e={}){return{type:t,props:e}}const O=h,$o=Symbol.for("@antv/infographic/Defs");function yt(t){return{type:$o,props:t}}function _t(t){var e,n,r,i;const{x:o=0,y:s=0,width:a=0,height:l=0}=t;return(e=t.cx)!=null||(t.cx=o+a/2),(n=t.cy)!=null||(t.cy=s+l/2),(r=t.rx)!=null||(t.rx=a/2),(i=t.ry)!=null||(t.ry=l/2),{type:"ellipse",props:t}}function F(t){const{x:e=0,y:n=0}=t;return(e||n)&&(t.transform||(t.transform=`translate(${e}, ${n})`)),{type:"g",props:t}}var f1=Object.defineProperty,rl=Object.getOwnPropertySymbols,u1=Object.prototype.hasOwnProperty,d1=Object.prototype.propertyIsEnumerable,il=(t,e,n)=>e in t?f1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,p1=(t,e)=>{for(var n in e||(e={}))u1.call(e,n)&&il(t,n,e[n]);if(rl)for(var n of rl(e))d1.call(e,n)&&il(t,n,e[n]);return t};function ot(t){const{x:e,y:n}=t,r=p1({},t);return(e!==void 0||n!==void 0)&&(r.transform=`translate(${e!=null?e:0}, ${n!=null?n:0})`),{type:"path",props:r}}var g1=Object.defineProperty,m1=Object.defineProperties,y1=Object.getOwnPropertyDescriptors,Mr=Object.getOwnPropertySymbols,ol=Object.prototype.hasOwnProperty,sl=Object.prototype.propertyIsEnumerable,al=(t,e,n)=>e in t?g1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_1=(t,e)=>{for(var n in e||(e={}))ol.call(e,n)&&al(t,n,e[n]);if(Mr)for(var n of Mr(e))sl.call(e,n)&&al(t,n,e[n]);return t},x1=(t,e)=>m1(t,y1(e)),b1=(t,e)=>{var n={};for(var r in t)ol.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Mr)for(var r of Mr(t))e.indexOf(r)<0&&sl.call(t,r)&&(n[r]=t[r]);return n};function be(t){var e=t,{points:n=[]}=e,r=b1(e,["points"]);const{x:i,y:o}=r,s=n.map(({x:c,y:f})=>`${c},${f}`).join(" "),a=x1(_1({},r),{points:s});return(i!==void 0||o!==void 0)&&(a.transform=`translate(${i!=null?i:0}, ${o!=null?o:0})`),{type:"polygon",props:a}}function dt(t){return{type:"rect",props:t}}var v1=Object.defineProperty,w1=Object.defineProperties,$1=Object.getOwnPropertyDescriptors,Or=Object.getOwnPropertySymbols,ll=Object.prototype.hasOwnProperty,cl=Object.prototype.propertyIsEnumerable,hl=(t,e,n)=>e in t?v1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Mt=(t,e)=>{for(var n in e||(e={}))ll.call(e,n)&&hl(t,n,e[n]);if(Or)for(var n of Or(e))cl.call(e,n)&&hl(t,n,e[n]);return t},Cr=(t,e)=>w1(t,$1(e)),P1=(t,e)=>{var n={};for(var r in t)ll.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Or)for(var r of Or(t))e.indexOf(r)<0&&cl.call(t,r)&&(n[r]=t[r]);return n};const M1={center:"middle",right:"end",left:"start"};function kt(t){const e=t,{id:n,x:r=0,y:i=0,width:o=0,height:s=0,alignHorizontal:a="left",alignVertical:l="top",children:c,fontSize:f=14,fontFamily:u,fontStyle:d,fontWeight:p,textDecoration:g,letterSpacing:m,wordSpacing:y,opacity:x,fill:_="black",lineHeight:b,wordWrap:v,backgroundColor:P="none",backgroundOpacity:w=1,backgroundRadius:$=0}=e,M=P1(e,["id","x","y","width","height","alignHorizontal","alignVertical","children","fontSize","fontFamily","fontStyle","fontWeight","textDecoration","letterSpacing","wordSpacing","opacity","fill","lineHeight","wordWrap","backgroundColor","backgroundOpacity","backgroundRadius"]),I=Object.entries(Mt(Mt(Mt(Mt({},b!==void 0&&{"line-height":b}),v!==void 0&&{"data-word-wrap":v}),o!==void 0&&{width:o}),s!==void 0&&{height:s})).reduce((H,[N,B])=>Cr(Mt({},H),{[N]:B}),{}),S=a==="center"?r+o/2:a==="right"?r+o:r,E=(()=>{if(l==="middle")return i+s/2;if(l==="bottom")return i+s;const H=+f,N=.88;if(b&&b>1){const X=H*b-H;return i+X/2+H*N}return i+H*N})(),A=()=>l==="middle"?"central":"baseline",R=Mt(Mt(Mt(Mt(Mt(Mt(Mt(Mt(Mt(Cr(Mt(Mt(Mt(Mt(Mt(Mt({"data-element-type":"text"},S&&{x:S}),E&&{y:E}),o&&{width:o}),s&&{height:s}),r&&{"data-x":r}),i&&{"data-y":i}),{fill:_,fontSize:f,textAnchor:M1[a],dominantBaseline:A(),"data-text-alignment":`${a.toUpperCase()} ${l.toUpperCase()}`,children:c}),I),M),u&&{fontFamily:u}),d&&{fontStyle:d}),p&&{fontWeight:p}),g&&g!=="none"&&{textDecoration:g}),m&&{letterSpacing:m}),y&&{wordSpacing:y}),x!==void 0&&x!==1&&{opacity:x}),D=Mt(Mt(Mt(Mt({},r&&{x:r}),i&&{y:i}),o&&{width:o}),s&&{height:s}),k=Mt(Mt({},D),n&&{id:n});if(!(P&&P!=="none"))return{type:"text",props:Mt(Mt({},k),R)};const L=Cr(Mt({"data-element-type":"shape"},D),{fill:P,fillOpacity:w,rx:$,ry:$});return{type:"g",props:Cr(Mt({},k),{children:[{type:"rect",props:L},{type:"text",props:R}]})}}const Ln=Symbol.for("@antv/infographic/Fragment");function Sr(t,e={}){return{type:t,props:e}}function O1(t={}){return Sr(Ln,t)}const C1=Sr,S1=Sr;function I1(t){return!t||typeof t!="object"||Array.isArray(t)?!1:t.type===Ln}function fl(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&"type"in t}function Rn(t){return Nn(t).filter(fl)}function Nn(t,e=[]){var n;if(!t||typeof t=="boolean")return e;if(Array.isArray(t))t.forEach(r=>Nn(r,e));else if(I1(t)){const r=(n=t.props)==null?void 0:n.children;(Array.isArray(r)?r:[r]).filter(Boolean).forEach(i=>{Nn(i,e)})}else e.push(t);return e}function Ot(t){return typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t)}const Ir=()=>({x:0,y:0,width:0,height:0});function ul(t){if(!t||t.length===0)return Ir();let e=1/0,n=1/0,r=-1/0,i=-1/0;for(const o of t){const{x:s,y:a,width:l,height:c}=o,f=s+l,u=a+c;s<e&&(e=s),a<n&&(n=a),f>r&&(r=f),u>i&&(i=u)}return e===1/0||n===1/0||r===-1/0||i===-1/0?{x:0,y:0,width:0,height:0}:{x:e,y:n,width:Math.max(0,r-e),height:Math.max(0,i-n)}}function G(t){var e,n,r,i;if(!t)return Ir();if(Array.isArray(t)){const p=Rn(t);return Ye(p)}if(typeof t!="object")return Ir();const{type:o,props:s={}}=t;if(Io(t)){const p=xl(t);return G(p)}if(typeof o=="function"){const p=(e=s.x)!=null?e:0,g=(n=s.y)!=null?n:0,m=s.width,y=s.height;if(Ot(m)&&Ot(y))return{x:p,y:g,width:m,height:y};const x=o(s);if(!x)return{x:p,y:g,width:m!=null?m:0,height:y!=null?y:0};if(Array.isArray(x)){const _=Rn(x),b=Ye(_);if(Ot(m)&&Ot(y))return{x:p,y:g,width:m,height:y};const v=b.width!==0?b.width:m!=null?m:0,P=b.height!==0?b.height:y!=null?y:0;return{x:p+b.x,y:g+b.y,width:v,height:P}}if(fl(x)){const _=x,b=G(_);if(A1(_,s))return b;const v=_.props&&Ot(_.props.width)&&Ot(_.props.height),$=dl(_).flatMap(C=>Rn(C)).length>0,M=_.props&&_.props.x===s.x&&_.props.y===s.y;if(v)return{x:M?b.x:p+b.x,y:M?b.y:g+b.y,width:b.width,height:b.height};if(Ot(m)&&Ot(y))return $?{x:M?b.x:p,y:M?b.y:g,width:m,height:y}:{x:M?b.x:p+b.x,y:M?b.y:g+b.y,width:m,height:y};const I=b.width!==0?b.width:m!=null?m:0,S=b.height!==0?b.height:y!=null?y:0;return{x:M?b.x:p+b.x,y:M?b.y:g+b.y,width:I,height:S}}return{x:p,y:g,width:m!=null?m:0,height:y!=null?y:0}}const a=(r=s.x)!=null?r:0,l=(i=s.y)!=null?i:0,c=Ot(s.width)?s.width:void 0,f=Ot(s.height)?s.height:void 0;if(Ot(c)&&Ot(f))return{x:a,y:l,width:c,height:f};const d=dl(t).flatMap(p=>Rn(p));if(d.length>0){const p=Ye(d);return{x:a+p.x,y:l+p.y,width:Ot(c)?c:p.width,height:Ot(f)?f:p.height}}return{x:a,y:l,width:c!=null?c:0,height:f!=null?f:0}}function Ye(t){if(!t||!Array.isArray(t)||t.length===0)return Ir();const e=[];for(const n of t){const r=Rn(n);for(const i of r){const o=G(i);o&&e.push(o)}}return ul(e)}function A1(t,e){if(!(t!=null&&t.props)||!e)return!1;const n=t.props;if(Ot(n.x)&&Ot(n.y)&&Ot(e.x)&&Ot(e.y)&&n.x===e.x&&n.y===e.y){const r=Ot(n.width)&&Ot(n.height),i=Ot(e.width)&&Ot(e.height);if(!r&&!i)return!0}return Ot(n.x)&&Ot(n.y)&&Ot(n.width)&&Ot(n.height)&&Ot(e.x)&&Ot(e.y)&&Ot(e.width)&&Ot(e.height)?n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height:!1}function dl(t){var e;const n=(e=t.props)==null?void 0:e.children;return n?Array.isArray(n)?n:[n]:[]}function Po(t){var e;return t==null||typeof t=="boolean"?[]:Array.isArray(t)?Nn(t):typeof t=="object"?Nn((e=t.props)==null?void 0:e.children):[t]}var E1=Object.defineProperty,Ar=Object.getOwnPropertySymbols,pl=Object.prototype.hasOwnProperty,gl=Object.prototype.propertyIsEnumerable,ml=(t,e,n)=>e in t?E1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Mo=(t,e)=>{for(var n in e||(e={}))pl.call(e,n)&&ml(t,n,e[n]);if(Ar)for(var n of Ar(e))gl.call(e,n)&&ml(t,n,e[n]);return t},k1=(t,e)=>{var n={};for(var r in t)pl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ar)for(var r of Ar(t))e.indexOf(r)<0&&gl.call(t,r)&&(n[r]=t[r]);return n};const Te=(t,e)=>{const n=t,{type:r,props:i}=n,o=k1(n,["type","props"]);return Mo({type:r,props:Mo(Mo({},i),e)},o)},yl=()=>({defs:new Map});function Oo(t){const e={"&":"&","<":"<",">":">",'"':""","'":"'"};return String(t).replace(/[&<>"']/g,n=>e[n])}const _l={className:"class",viewBox:"viewBox",preserveAspectRatio:"preserveAspectRatio",gradientUnits:"gradientUnits",gradientTransform:"gradientTransform",patternUnits:"patternUnits",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",maskUnits:"maskUnits",maskContentUnits:"maskContentUnits",clipPathUnits:"clipPathUnits",primitiveUnits:"primitiveUnits",filterUnits:"filterUnits",markerUnits:"markerUnits",markerWidth:"markerWidth",markerHeight:"markerHeight",refX:"refX",refY:"refY",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink",xlinkHref:"href",xlinkTitle:"xlink:title",xlinkShow:"xlink:show",xlinkActuate:"xlink:actuate",textLength:"textLength",lengthAdjust:"lengthAdjust",repeatCount:"repeatCount",repeatDur:"repeatDur",calcMode:"calcMode",keyTimes:"keyTimes",keySplines:"keySplines",keyPoints:"keyPoints",stdDeviation:"stdDeviation",baseFrequency:"baseFrequency",numOctaves:"numOctaves",pathLength:"pathLength",systemLanguage:"systemLanguage",requiredFeatures:"requiredFeatures",requiredExtensions:"requiredExtensions"};function T1(t){return _l[t]?_l[t]:t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}const Co=new Map;function So(t){const e=Symbol("layout");return Co.set(e,t),r=>({type:e,props:r})}function Io(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)&&typeof t.type=="symbol"&&Co.has(t.type)}function xl(t,e=yl()){const n=Co.get(t.type);if(!n)return console.warn("Layout function not found for symbol:",t.type),t;const r=Po(t).filter(i=>typeof i=="object");return n(r,t.props,e)}var z1=Object.defineProperty,H1=Object.defineProperties,L1=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertySymbols,bl=Object.prototype.hasOwnProperty,vl=Object.prototype.propertyIsEnumerable,wl=(t,e,n)=>e in t?z1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R1=(t,e)=>{for(var n in e||(e={}))bl.call(e,n)&&wl(t,n,e[n]);if(Er)for(var n of Er(e))vl.call(e,n)&&wl(t,n,e[n]);return t},N1=(t,e)=>H1(t,L1(e)),$l=(t,e)=>{var n={};for(var r in t)bl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Er)for(var r of Er(t))e.indexOf(r)<0&&vl.call(t,r)&&(n[r]=t[r]);return n};function jn(t,e){if(t==null||typeof t=="boolean")return null;if(typeof t=="string"||typeof t=="number")return t;if(Array.isArray(t))return t.map(r=>jn(r,e)).filter(Boolean);if(Io(t)){const r=xl(t,e);return jn(r,e)}if(typeof t.type=="function"){const r=t.type(t.props);return jn(r,e)}const n=Po(t).map(r=>jn(r,e)).filter(Boolean);return t.type===Ln?n:t.type===$o?(n.forEach(r=>{typeof r=="object"&&r.props.id&&e.defs.set(r.props.id,r)}),null):n.length?Te(t,{children:n}):t}function Dn(t,e){if(t==null)return"";if(typeof t=="string")return Oo(t);if(typeof t=="number")return String(t);const{type:n,props:r}=t;if(!n)return"";const i=Po(t);if(n===Ln)return i.map(l=>Dn(l)).filter(Boolean).join("");if(n===$o)return"";if(typeof n=="function"||Io(t))return console.warn("Unexpected unprocessed component in render:",t),"";const o=Ml(r),s=i.map(l=>Dn(l)).filter(Boolean).join(""),a=String(n);return s?`<${a}${o}>${s}</${a}>`:`<${a}${o} />`}function Pl(t,e={}){const n=yl(),r=jn(t,n);if(!r)return"";const i=Array.isArray(r)?r.map(y=>Dn(y)).join(""):Dn(r),o=e,{x:s,y:a,width:l,height:c,style:f}=o,u=$l(o,["x","y","width","height","style"]),d=N1(R1({},u),{xmlns:"http://www.w3.org/2000/svg"});if(!d.viewBox)if(l&&c)d.viewBox=`${s!=null?s:0} ${a!=null?a:0} ${l!=null?l:0} ${c!=null?c:0}`;else{const y=G(r);if(y){const{x,y:_,width:b,height:v}=y;d.viewBox=`${x} ${_} ${b} ${v}`}}const p=Ml(d),g=j1(f),m=n.defs.size?`<defs>${Array.from(n.defs.values()).map(y=>Dn(y)).join("")}</defs>`:"";return`<svg${p}${g}>${m}${i}</svg>`}function Ml(t){if(!t)return"";const e=t,{children:n}=e,r=$l(e,["children"]);return Object.entries(r).filter(([,i])=>i!=null).map(([i,o])=>{const s=T1(i),a=typeof o=="string"?Oo(String(o)):String(o);return` ${s}="${a}"`}).join("")}function j1(t){if(!t||Object.keys(t).length===0)return"";const e=Object.entries(t).map(([n,r])=>`${n.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}: ${r};`).join("");return` style="${Oo(e)}"`}var D1=Object.defineProperty,kr=Object.getOwnPropertySymbols,Ol=Object.prototype.hasOwnProperty,Cl=Object.prototype.propertyIsEnumerable,Sl=(t,e,n)=>e in t?D1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Tr=(t,e)=>{for(var n in e||(e={}))Ol.call(e,n)&&Sl(t,n,e[n]);if(kr)for(var n of kr(e))Cl.call(e,n)&&Sl(t,n,e[n]);return t},Il=(t,e)=>{var n={};for(var r in t)Ol.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&kr)for(var r of kr(t))e.indexOf(r)<0&&Cl.call(t,r)&&(n[r]=t[r]);return n};const W=t=>{const e=t,{indexes:n}=e,r=Il(e,["indexes"]);return h(dt,Tr(Tr({},{fill:"#B9EBCA",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":"btn-add"}),r))},St=t=>{const e=t,{indexes:n}=e,r=Il(e,["indexes"]);return h(dt,Tr(Tr({},{fill:"#F9C0C0",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":"btn-remove"}),r))};var B1=Object.defineProperty,Al=Object.getOwnPropertySymbols,F1=Object.prototype.hasOwnProperty,W1=Object.prototype.propertyIsEnumerable,El=(t,e,n)=>e in t?B1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,X1=(t,e)=>{for(var n in e||(e={}))F1.call(e,n)&&El(t,n,e[n]);if(Al)for(var n of Al(e))W1.call(e,n)&&El(t,n,e[n]);return t};const pt=t=>h(F,X1({"data-element-type":"btns-group",width:0,height:0},t)),zt=()=>h(gt,{});var Y1=Object.defineProperty,zr=Object.getOwnPropertySymbols,kl=Object.prototype.hasOwnProperty,Tl=Object.prototype.propertyIsEnumerable,zl=(t,e,n)=>e in t?Y1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ao=(t,e)=>{for(var n in e||(e={}))kl.call(e,n)&&zl(t,n,e[n]);if(zr)for(var n of zr(e))Tl.call(e,n)&&zl(t,n,e[n]);return t},V1=(t,e)=>{var n={};for(var r in t)kl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&zr)for(var r of zr(t))e.indexOf(r)<0&&Tl.call(t,r)&&(n[r]=t[r]);return n};const Hl=t=>{var e=t,{indexes:n}=e,r=V1(e,["indexes"]);const o=Ao(Ao({},{fill:"lightgray"}),r);return n?(o["data-indexes"]=n,o["data-element-type"]="item-illus"):o["data-element-type"]="illus",h(dt,Ao({},o))};var q1=Object.defineProperty,G1=Object.defineProperties,U1=Object.getOwnPropertyDescriptors,Hr=Object.getOwnPropertySymbols,Ll=Object.prototype.hasOwnProperty,Rl=Object.prototype.propertyIsEnumerable,Nl=(t,e,n)=>e in t?q1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,jl=(t,e)=>{for(var n in e||(e={}))Ll.call(e,n)&&Nl(t,n,e[n]);if(Hr)for(var n of Hr(e))Rl.call(e,n)&&Nl(t,n,e[n]);return t},Z1=(t,e)=>G1(t,U1(e)),Q1=(t,e)=>{var n={};for(var r in t)Ll.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Hr)for(var r of Hr(t))e.indexOf(r)<0&&Rl.call(t,r)&&(n[r]=t[r]);return n};const It=t=>{var e=t,{indexes:n,lineNumber:r=2,children:i}=e,o=Q1(e,["indexes","lineNumber","children"]),s;if(!i)return null;const a=jl({width:100,fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:i},o);return(s=a.height)!=null||(a.height=Math.ceil(r*+a.lineHeight*+a.fontSize)),h(kt,Z1(jl({},a),{"data-indexes":n,"data-element-type":"item-desc"}))};var K1=Object.defineProperty,J1=Object.defineProperties,tm=Object.getOwnPropertyDescriptors,Lr=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,Bl=Object.prototype.propertyIsEnumerable,Fl=(t,e,n)=>e in t?K1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Bn=(t,e)=>{for(var n in e||(e={}))Dl.call(e,n)&&Fl(t,n,e[n]);if(Lr)for(var n of Lr(e))Bl.call(e,n)&&Fl(t,n,e[n]);return t},Rr=(t,e)=>J1(t,tm(e)),Wl=(t,e)=>{var n={};for(var r in t)Dl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Lr)for(var r of Lr(t))e.indexOf(r)<0&&Bl.call(t,r)&&(n[r]=t[r]);return n};const Gt=t=>{const e=t,{indexes:n,size:r=32}=e,i=Wl(e,["indexes","size"]),o=Bn({fill:"lightgray",width:r,height:r},i);return h(dt,Rr(Bn({},o),{"data-indexes":n,"data-element-type":"item-icon"}))},Ve=t=>{const e=t,{indexes:n,size:r=50,fill:i,colorBg:o="white"}=e,s=Wl(e,["indexes","size","fill","colorBg"]),a=r/Math.SQRT2*.9,l=(r-a)/2,c=Rr(Bn({fill:o},s),{x:l,y:l,width:a,height:a});return O(F,Rr(Bn({},s),{width:r,height:r,"data-element-type":"item-icon-group",children:[h(_t,{width:r,height:r,fill:i,"data-element-type":"shape"}),h(dt,Rr(Bn({},c),{"data-indexes":n,"data-element-type":"item-icon"}))]}))};var em=Object.defineProperty,nm=Object.defineProperties,rm=Object.getOwnPropertyDescriptors,Nr=Object.getOwnPropertySymbols,Xl=Object.prototype.hasOwnProperty,Yl=Object.prototype.propertyIsEnumerable,Vl=(t,e,n)=>e in t?em(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ql=(t,e)=>{for(var n in e||(e={}))Xl.call(e,n)&&Vl(t,n,e[n]);if(Nr)for(var n of Nr(e))Yl.call(e,n)&&Vl(t,n,e[n]);return t},im=(t,e)=>nm(t,rm(e)),om=(t,e)=>{var n={};for(var r in t)Xl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Nr)for(var r of Nr(t))e.indexOf(r)<0&&Yl.call(t,r)&&(n[r]=t[r]);return n};const ft=t=>{var e=t,{indexes:n,children:r}=e,i=om(e,["indexes","children"]),o;const s=ql({fontSize:18,fontWeight:"bold",fill:"#252525",width:100,lineHeight:1.4,children:r},i);return(o=s.height)!=null||(s.height=Math.ceil(+s.lineHeight*+s.fontSize)),h(kt,im(ql({},s),{"data-indexes":n,"data-element-type":"item-label"}))};var sm=Object.defineProperty,Gl=Object.getOwnPropertySymbols,am=Object.prototype.hasOwnProperty,lm=Object.prototype.propertyIsEnumerable,Ul=(t,e,n)=>e in t?sm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,cm=(t,e)=>{for(var n in e||(e={}))am.call(e,n)&&Ul(t,n,e[n]);if(Gl)for(var n of Gl(e))lm.call(e,n)&&Ul(t,n,e[n]);return t};const xt=t=>h(F,cm({"data-element-type":"items-group"},t));var hm=Object.defineProperty,fm=Object.defineProperties,um=Object.getOwnPropertyDescriptors,jr=Object.getOwnPropertySymbols,Zl=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable,Kl=(t,e,n)=>e in t?hm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Jl=(t,e)=>{for(var n in e||(e={}))Zl.call(e,n)&&Kl(t,n,e[n]);if(jr)for(var n of jr(e))Ql.call(e,n)&&Kl(t,n,e[n]);return t},dm=(t,e)=>fm(t,um(e)),pm=(t,e)=>{var n={};for(var r in t)Zl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&jr)for(var r of jr(t))e.indexOf(r)<0&&Ql.call(t,r)&&(n[r]=t[r]);return n};const Fn=t=>{var e=t,{indexes:n,value:r,formatter:i=l=>String(l)}=e,o=pm(e,["indexes","value","formatter"]),s;const a=Jl({width:100,fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:i(r),"data-value":r},o);return(s=a.height)!=null||(a.height=Math.ceil(+a.lineHeight*+a.fontSize)),h(kt,dm(Jl({},a),{"data-indexes":n,"data-element-type":"item-value"}))};var gm=Object.defineProperty,tc=Object.getOwnPropertySymbols,mm=Object.prototype.hasOwnProperty,ym=Object.prototype.propertyIsEnumerable,ec=(t,e,n)=>e in t?gm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_m=(t,e)=>{for(var n in e||(e={}))mm.call(e,n)&&ec(t,n,e[n]);if(tc)for(var n of tc(e))ym.call(e,n)&&ec(t,n,e[n]);return t};const jt=t=>h(F,_m({"data-element-type":"shapes-group"},t));var xm=Object.defineProperty,bm=Object.defineProperties,vm=Object.getOwnPropertyDescriptors,Dr=Object.getOwnPropertySymbols,nc=Object.prototype.hasOwnProperty,rc=Object.prototype.propertyIsEnumerable,ic=(t,e,n)=>e in t?xm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Eo=(t,e)=>{for(var n in e||(e={}))nc.call(e,n)&&ic(t,n,e[n]);if(Dr)for(var n of Dr(e))rc.call(e,n)&&ic(t,n,e[n]);return t},wm=(t,e)=>bm(t,vm(e)),$m=(t,e)=>{var n={};for(var r in t)nc.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Dr)for(var r of Dr(t))e.indexOf(r)<0&&rc.call(t,r)&&(n[r]=t[r]);return n};const hn=So((t,e)=>{var n=e,{horizontal:r,vertical:i}=n,o=$m(n,["horizontal","vertical"]),s,a;if(!t||t.length===0)return h(F,Eo({},o));const l=t.map(x=>G(x)),c=o.width!==void 0,f=o.height!==void 0;let u=[...t];const d=Ye(t),p=c?o.width:d.width,g=f?o.height:d.height,m=c?o.x||0:d.x,y=f?o.y||0:d.y;if(u=t.map((x,_)=>{const b=l[_],v=Eo({},x.props);if(r)switch(r){case"left":v.x=m;break;case"center":v.x=m+(p-b.width)/2;break;case"right":v.x=m+p-b.width;break}else v.x=x.props.x||b.x;if(i)switch(i){case"top":v.y=y;break;case"middle":v.y=y+(g-b.height)/2;break;case"bottom":v.y=y+g-b.height;break}else v.y=x.props.y||b.y;return Te(x,v)}),!c||!f){const x=Ye(u);c||(s=o.width)!=null||(o.width=x.width),f||(a=o.height)!=null||(o.height=x.height)}return h(F,wm(Eo({},o),{children:u}))});var Pm=Object.defineProperty,Mm=Object.defineProperties,Om=Object.getOwnPropertyDescriptors,Br=Object.getOwnPropertySymbols,oc=Object.prototype.hasOwnProperty,sc=Object.prototype.propertyIsEnumerable,ac=(t,e,n)=>e in t?Pm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fn=(t,e)=>{for(var n in e||(e={}))oc.call(e,n)&&ac(t,n,e[n]);if(Br)for(var n of Br(e))sc.call(e,n)&&ac(t,n,e[n]);return t},Cm=(t,e)=>Mm(t,Om(e)),Sm=(t,e)=>{var n={};for(var r in t)oc.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Br)for(var r of Br(t))e.indexOf(r)<0&&sc.call(t,r)&&(n[r]=t[r]);return n};const rt=So((t,e)=>{var n=e,{flexDirection:r="row",justifyContent:i="flex-start",alignItems:o="flex-start",alignContent:s="flex-start",flexWrap:a="nowrap",gap:l=0}=n,c=Sm(n,["flexDirection","justifyContent","alignItems","alignContent","flexWrap","gap"]),f,u;if(!t||t.length===0)return h(F,fn({},c));const d=r==="row"||r==="row-reverse",p=r==="row-reverse"||r==="column-reverse",g=t.map(w=>G(w)),m=c.width!==void 0&&c.height!==void 0,y=c.width||0,x=c.height||0,_=[];if(a==="wrap"&&m){let w=[],$=[],M=0;for(let I=0;I<t.length;I++){const S=t[I],C=g[I],E=d?C.width:C.height,A=d?y:x;w.length===0||M+l+E<=A?(w.push(S),$.push(C),M+=(w.length>1?l:0)+E):(_.push({children:w,bounds:$}),w=[S],$=[C],M=E)}w.length>0&&_.push({children:w,bounds:$})}else _.push({children:t,bounds:g});const b=[];let v=0;const P=[];if(_.forEach(w=>{const{children:$,bounds:M}=w,I=M.reduce((D,k,j)=>{const L=d?k.width:k.height;return D+L+(j>0?l:0)},0),S=Math.max(...M.map(D=>d?D.height:D.width));P.push(S);let C=0;const E=(d?y:x)-I;if(m)switch(i){case"flex-end":C=E;break;case"center":C=E/2;break;case"space-between":C=0;break;default:C=0;break}let A=l;m&&i==="space-between"&&$.length>1&&(A=E/($.length-1)+l);let R=C;$.forEach((D,k)=>{const j=M[k],L=d?j.width:j.height,H=d?j.height:j.width;let N=v;if(m)switch(o){case"flex-end":N=v+S-H;break;case"center":N=v+(S-H)/2;break;default:N=v;break}let B,X;d?(B=p?y-R-L:R,X=N):(B=N,X=p?x-R-L:R);const T=Te(D,{x:B,y:X});b.push(T),R+=L+A}),v+=S+l}),_.length>1&&m){const w=P.reduce((I,S)=>I+S,0)+(_.length-1)*l,$=(d?x:y)-w;let M=0;switch(s){case"flex-end":M=$;break;case"center":M=$/2;break;case"space-between":if(_.length>1){const I=$/(_.length-1);let S=0;_.forEach((C,E)=>{const A=_.slice(0,E).reduce((D,k)=>D+k.children.length,0),R=A+C.children.length;for(let D=A;D<R;D++){const k=b[D],j=fn({},k.props);d?j.y=(j.y||0)+S:j.x=(j.x||0)+S,b[D]=Te(k,j)}S+=P[E]+l+(E<_.length-1?I:0)});break}break;default:M=0;break}M!==0&&s!=="space-between"&&b.forEach((I,S)=>{const C=fn({},I.props);d?C.y=(C.y||0)+M:C.x=(C.x||0)+M,b[S]=Te(I,C)})}if(!m){if(o==="center"&&!d){const $=Math.max(...g.map(M=>M.width));b.forEach((M,I)=>{const S=g[I],C=($-S.width)/2,E=fn({},M.props);E.x=(E.x||0)+C,b[I]=Te(M,E)})}else if(o==="center"&&d){const $=Math.max(...g.map(M=>M.height));b.forEach((M,I)=>{const S=g[I],C=($-S.height)/2,E=fn({},M.props);E.y=(E.y||0)+C,b[I]=Te(M,E)})}const w=Ye(b);(f=c.width)!=null||(c.width=w.width),(u=c.height)!=null||(c.height=w.height)}return h(F,Cm(fn({},c),{children:b}))});var Im=Object.defineProperty,Am=Object.defineProperties,Em=Object.getOwnPropertyDescriptors,lc=Object.getOwnPropertySymbols,km=Object.prototype.hasOwnProperty,Tm=Object.prototype.propertyIsEnumerable,cc=(t,e,n)=>e in t?Im(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fr=(t,e)=>{for(var n in e||(e={}))km.call(e,n)&&cc(t,n,e[n]);if(lc)for(var n of lc(e))Tm.call(e,n)&&cc(t,n,e[n]);return t},hc=(t,e)=>Am(t,Em(e));const fc=t=>{const{x:e=0,y:n=0,width:r=720,alignHorizontal:i="center",title:o,desc:s,descLineNumber:a=2,themeColors:l}=t;return O(rt,{flexDirection:"column",x:e,y:n,width:r,gap:8,children:[o&&h(u=>{const d={fontSize:24,fill:l.colorPrimaryText,width:r,height:32,lineHeight:1.4,alignHorizontal:i};return h(kt,hc(Fr(Fr({},d),u),{"data-element-type":"title",children:o}))},{}),s&&h(u=>{const d={fontSize:16,fill:l.colorTextSecondary,width:r,alignHorizontal:i,lineHeight:1.4,height:a*24};return h(kt,hc(Fr(Fr({},d),u),{"data-element-type":"desc",children:s}))},{})]})};function Wr(t){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(t)}var zm=/^\s+/,Hm=/\s+$/;function tt(t,e){if(t=t||"",e=e||{},t instanceof tt)return t;if(!(this instanceof tt))return new tt(t,e);var n=Lm(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}tt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),n,r,i,o,s,a;return n=e.r/255,r=e.g/255,i=e.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*s+.0722*a},setAlpha:function(e){return this._a=yc(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=dc(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=dc(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=uc(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=uc(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return pc(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return Dm(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Rt(this._r,255)*100)+"%",g:Math.round(Rt(this._g,255)*100)+"%",b:Math.round(Rt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Rt(this._r,255)*100)+"%, "+Math.round(Rt(this._g,255)*100)+"%, "+Math.round(Rt(this._b,255)*100)+"%)":"rgba("+Math.round(Rt(this._r,255)*100)+"%, "+Math.round(Rt(this._g,255)*100)+"%, "+Math.round(Rt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Km[pc(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var n="#"+gc(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(e){var o=tt(e);r="#"+gc(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(e){var n=!!e;e=e||this._format;var r=!1,i=this._a<1&&this._a>=0,o=!n&&i&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return o?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return tt(this.toString())},_applyModification:function(e,n){var r=e.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(Xm,arguments)},brighten:function(){return this._applyModification(Ym,arguments)},darken:function(){return this._applyModification(Vm,arguments)},desaturate:function(){return this._applyModification(Bm,arguments)},saturate:function(){return this._applyModification(Fm,arguments)},greyscale:function(){return this._applyModification(Wm,arguments)},spin:function(){return this._applyModification(qm,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(Zm,arguments)},complement:function(){return this._applyCombination(Gm,arguments)},monochromatic:function(){return this._applyCombination(Qm,arguments)},splitcomplement:function(){return this._applyCombination(Um,arguments)},triad:function(){return this._applyCombination(mc,[3])},tetrad:function(){return this._applyCombination(mc,[4])}},tt.fromRatio=function(t,e){if(Wr(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(r==="a"?n[r]=t[r]:n[r]=Wn(t[r]));t=n}return tt(t,e)};function Lm(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,a=!1;return typeof t=="string"&&(t=n2(t)),Wr(t)=="object"&&(Oe(t.r)&&Oe(t.g)&&Oe(t.b)?(e=Rm(t.r,t.g,t.b),s=!0,a=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Oe(t.h)&&Oe(t.s)&&Oe(t.v)?(r=Wn(t.s),i=Wn(t.v),e=jm(t.h,r,i),s=!0,a="hsv"):Oe(t.h)&&Oe(t.s)&&Oe(t.l)&&(r=Wn(t.s),o=Wn(t.l),e=Nm(t.h,r,o),s=!0,a="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=yc(n),{ok:s,format:t.format||a,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}function Rm(t,e,n){return{r:Rt(t,255)*255,g:Rt(e,255)*255,b:Rt(n,255)*255}}function uc(t,e,n){t=Rt(t,255),e=Rt(e,255),n=Rt(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o,s,a=(r+i)/2;if(r==i)o=s=0;else{var l=r-i;switch(s=a>.5?l/(2-r-i):l/(r+i),r){case t:o=(e-n)/l+(e<n?6:0);break;case e:o=(n-t)/l+2;break;case n:o=(t-e)/l+4;break}o/=6}return{h:o,s,l:a}}function Nm(t,e,n){var r,i,o;t=Rt(t,360),e=Rt(e,100),n=Rt(n,100);function s(c,f,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?c+(f-c)*6*u:u<1/2?f:u<2/3?c+(f-c)*(2/3-u)*6:c}if(e===0)r=i=o=n;else{var a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=s(l,a,t+1/3),i=s(l,a,t),o=s(l,a,t-1/3)}return{r:r*255,g:i*255,b:o*255}}function dc(t,e,n){t=Rt(t,255),e=Rt(e,255),n=Rt(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o,s,a=r,l=r-i;if(s=r===0?0:l/r,r==i)o=0;else{switch(r){case t:o=(e-n)/l+(e<n?6:0);break;case e:o=(n-t)/l+2;break;case n:o=(t-e)/l+4;break}o/=6}return{h:o,s,v:a}}function jm(t,e,n){t=Rt(t,360)*6,e=Rt(e,100),n=Rt(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),s=n*(1-i*e),a=n*(1-(1-i)*e),l=r%6,c=[n,s,o,o,a,n][l],f=[a,n,n,s,o,o][l],u=[o,o,a,n,n,s][l];return{r:c*255,g:f*255,b:u*255}}function pc(t,e,n,r){var i=[fe(Math.round(t).toString(16)),fe(Math.round(e).toString(16)),fe(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Dm(t,e,n,r,i){var o=[fe(Math.round(t).toString(16)),fe(Math.round(e).toString(16)),fe(Math.round(n).toString(16)),fe(_c(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function gc(t,e,n,r){var i=[fe(_c(r)),fe(Math.round(t).toString(16)),fe(Math.round(e).toString(16)),fe(Math.round(n).toString(16))];return i.join("")}tt.equals=function(t,e){return!t||!e?!1:tt(t).toRgbString()==tt(e).toRgbString()},tt.random=function(){return tt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Bm(t,e){e=e===0?0:e||10;var n=tt(t).toHsl();return n.s-=e/100,n.s=Xr(n.s),tt(n)}function Fm(t,e){e=e===0?0:e||10;var n=tt(t).toHsl();return n.s+=e/100,n.s=Xr(n.s),tt(n)}function Wm(t){return tt(t).desaturate(100)}function Xm(t,e){e=e===0?0:e||10;var n=tt(t).toHsl();return n.l+=e/100,n.l=Xr(n.l),tt(n)}function Ym(t,e){e=e===0?0:e||10;var n=tt(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),tt(n)}function Vm(t,e){e=e===0?0:e||10;var n=tt(t).toHsl();return n.l-=e/100,n.l=Xr(n.l),tt(n)}function qm(t,e){var n=tt(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,tt(n)}function Gm(t){var e=tt(t).toHsl();return e.h=(e.h+180)%360,tt(e)}function mc(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=tt(t).toHsl(),r=[tt(t)],i=360/e,o=1;o<e;o++)r.push(tt({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function Um(t){var e=tt(t).toHsl(),n=e.h;return[tt(t),tt({h:(n+72)%360,s:e.s,l:e.l}),tt({h:(n+216)%360,s:e.s,l:e.l})]}function Zm(t,e,n){e=e||6,n=n||30;var r=tt(t).toHsl(),i=360/n,o=[tt(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(tt(r));return o}function Qm(t,e){e=e||6;for(var n=tt(t).toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/e;e--;)s.push(tt({h:r,s:i,v:o})),o=(o+a)%1;return s}tt.mix=function(t,e,n){n=n===0?0:n||50;var r=tt(t).toRgb(),i=tt(e).toRgb(),o=n/100,s={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return tt(s)},tt.readability=function(t,e){var n=tt(t),r=tt(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},tt.isReadable=function(t,e,n){var r=tt.readability(t,e),i,o;switch(o=!1,i=r2(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o},tt.mostReadable=function(t,e,n){var r=null,i=0,o,s,a,l;n=n||{},s=n.includeFallbackColors,a=n.level,l=n.size;for(var c=0;c<e.length;c++)o=tt.readability(t,e[c]),o>i&&(i=o,r=tt(e[c]));return tt.isReadable(t,r,{level:a,size:l})||!s?r:(n.includeFallbackColors=!1,tt.mostReadable(t,["#fff","#000"],n))};var ko=tt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Km=tt.hexNames=Jm(ko);function Jm(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function yc(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Rt(t,e){t2(t)&&(t="100%");var n=e2(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Xr(t){return Math.min(1,Math.max(0,t))}function ie(t){return parseInt(t,16)}function t2(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function e2(t){return typeof t=="string"&&t.indexOf("%")!=-1}function fe(t){return t.length==1?"0"+t:""+t}function Wn(t){return t<=1&&(t=t*100+"%"),t}function _c(t){return Math.round(parseFloat(t)*255).toString(16)}function xc(t){return ie(t)/255}var ue=(function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Oe(t){return!!ue.CSS_UNIT.exec(t)}function n2(t){t=t.replace(zm,"").replace(Hm,"").toLowerCase();var e=!1;if(ko[t])t=ko[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=ue.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=ue.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ue.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=ue.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ue.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=ue.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ue.hex8.exec(t))?{r:ie(n[1]),g:ie(n[2]),b:ie(n[3]),a:xc(n[4]),format:e?"name":"hex8"}:(n=ue.hex6.exec(t))?{r:ie(n[1]),g:ie(n[2]),b:ie(n[3]),format:e?"name":"hex"}:(n=ue.hex4.exec(t))?{r:ie(n[1]+""+n[1]),g:ie(n[2]+""+n[2]),b:ie(n[3]+""+n[3]),a:xc(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=ue.hex3.exec(t))?{r:ie(n[1]+""+n[1]),g:ie(n[2]+""+n[2]),b:ie(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function r2(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:e,size:n}}const bc=(t,e)=>{if(typeof t=="number"){if(e===3)return{mode:"rgb",r:(t>>8&15|t>>4&240)/255,g:(t>>4&15|t&240)/255,b:(t&15|t<<4&240)/255};if(e===4)return{mode:"rgb",r:(t>>12&15|t>>8&240)/255,g:(t>>8&15|t>>4&240)/255,b:(t>>4&15|t&240)/255,alpha:(t&15|t<<4&240)/255};if(e===6)return{mode:"rgb",r:(t>>16&255)/255,g:(t>>8&255)/255,b:(t&255)/255};if(e===8)return{mode:"rgb",r:(t>>24&255)/255,g:(t>>16&255)/255,b:(t>>8&255)/255,alpha:(t&255)/255}}},i2={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},o2=t=>bc(i2[t.toLowerCase()],6),s2=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,a2=t=>{let e;return(e=t.match(s2))?bc(parseInt(e[1],16),e[1].length):void 0},ze="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Xn=`${ze}%`,To=`(?:${ze}%|${ze})`,l2=`(?:${ze}(deg|grad|rad|turn)|${ze})`,un="\\s*,\\s*",c2=new RegExp(`^rgba?\\(\\s*${ze}${un}${ze}${un}${ze}\\s*(?:,\\s*${To}\\s*)?\\)$`),h2=new RegExp(`^rgba?\\(\\s*${Xn}${un}${Xn}${un}${Xn}\\s*(?:,\\s*${To}\\s*)?\\)$`),f2=t=>{let e={mode:"rgb"},n;if(n=t.match(c2))n[1]!==void 0&&(e.r=n[1]/255),n[2]!==void 0&&(e.g=n[2]/255),n[3]!==void 0&&(e.b=n[3]/255);else if(n=t.match(h2))n[1]!==void 0&&(e.r=n[1]/100),n[2]!==void 0&&(e.g=n[2]/100),n[3]!==void 0&&(e.b=n[3]/100);else return;return n[4]!==void 0?e.alpha=Math.max(0,Math.min(1,n[4]/100)):n[5]!==void 0&&(e.alpha=Math.max(0,Math.min(1,+n[5]))),e},u2=(t,e)=>t===void 0?void 0:typeof t!="object"?Ce(t):t.mode!==void 0?t:e?se(te({},t),{mode:e}):void 0,zo=(t="rgb")=>e=>(e=u2(e,t))!==void 0?e.mode===t?e:ve[e.mode][t]?ve[e.mode][t](e):t==="rgb"?ve[e.mode].rgb(e):ve.rgb[t](ve[e.mode].rgb(e)):void 0,ve={},vc={},Yr=[],wc={},d2=t=>t,bt=t=>(ve[t.mode]=te(te({},ve[t.mode]),t.toMode),Object.keys(t.fromMode||{}).forEach(e=>{ve[e]||(ve[e]={}),ve[e][t.mode]=t.fromMode[e]}),t.ranges||(t.ranges={}),t.difference||(t.difference={}),t.channels.forEach(e=>{if(t.ranges[e]===void 0&&(t.ranges[e]=[0,1]),!t.interpolate[e])throw new Error(`Missing interpolator for: ${e}`);typeof t.interpolate[e]=="function"&&(t.interpolate[e]={use:t.interpolate[e]}),t.interpolate[e].fixup||(t.interpolate[e].fixup=d2)}),vc[t.mode]=t,(t.parse||[]).forEach(e=>{g2(e,t.mode)}),zo(t.mode)),p2=t=>vc[t],g2=(t,e)=>{if(typeof t=="string"){if(!e)throw new Error("'mode' required when 'parser' is a string");wc[t]=e}else typeof t=="function"&&Yr.indexOf(t)<0&&Yr.push(t)},Ho=/[^\x00-\x7F]|[a-zA-Z_]/,m2=/[^\x00-\x7F]|[-\w]/,Y={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"};let st=0;function Vr(t){let e=t[st],n=t[st+1];return e==="-"||e==="+"?/\d/.test(n)||n==="."&&/\d/.test(t[st+2]):e==="."?/\d/.test(n):/\d/.test(e)}function Lo(t){if(st>=t.length)return!1;let e=t[st];if(Ho.test(e))return!0;if(e==="-"){if(t.length-st<2)return!1;let n=t[st+1];return!!(n==="-"||Ho.test(n))}return!1}const y2={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Yn(t){let e="";if((t[st]==="-"||t[st]==="+")&&(e+=t[st++]),e+=qr(t),t[st]==="."&&/\d/.test(t[st+1])&&(e+=t[st++]+qr(t)),(t[st]==="e"||t[st]==="E")&&((t[st+1]==="-"||t[st+1]==="+")&&/\d/.test(t[st+2])?e+=t[st++]+t[st++]+qr(t):/\d/.test(t[st+1])&&(e+=t[st++]+qr(t))),Lo(t)){let n=Gr(t);return n==="deg"||n==="rad"||n==="turn"||n==="grad"?{type:Y.Hue,value:e*y2[n]}:void 0}return t[st]==="%"?(st++,{type:Y.Percentage,value:+e}):{type:Y.Number,value:+e}}function qr(t){let e="";for(;/\d/.test(t[st]);)e+=t[st++];return e}function Gr(t){let e="";for(;st<t.length&&m2.test(t[st]);)e+=t[st++];return e}function _2(t){let e=Gr(t);return t[st]==="("?(st++,{type:Y.Function,value:e}):e==="none"?{type:Y.None,value:void 0}:{type:Y.Ident,value:e}}function x2(t=""){let e=t.trim(),n=[],r;for(st=0;st<e.length;){if(r=e[st++],r===`
|
|
2
2
|
`||r===" "||r===" "){for(;st<e.length&&(e[st]===`
|
|
3
|
-
`||e[st]===" "||e[st]===" ");)st++;continue}if(r===",")return;if(r===")"){n.push({type:Y.ParenClose});continue}if(r==="+"){if(st--,
|
|
4
|
-
`||e[st]===" "||e[st]===" ");)st++;let i;if(Rr(e)&&(i=Dn(e),i.type!==Y.Hue)){n.push({type:Y.Alpha,value:i});continue}if(Oo(e)&&Dr(e)==="none"){n.push({type:Y.Alpha,value:{type:Y.None,value:void 0}});continue}return}if(/\d/.test(r)){st--,n.push(Dn(e));continue}if(Mo.test(r)){st--,n.push(Tm(e));continue}return}return n}function Lm(t){t._i=0;let e=t[t._i++];if(!e||e.type!==Y.Function||e.value!=="color"||(e=t[t._i++],e.type!==Y.Ident))return;const n=sc[e.value];if(!n)return;const r={mode:n},i=ac(t,!1);if(!i)return;const o=Am(n).channels;for(let s=0,a,l;s<o.length;s++)a=i[s],l=o[s],a.type!==Y.None&&(r[l]=a.type===Y.Number?a.value:a.value/100,l==="alpha"&&(r[l]=Math.max(0,Math.min(1,r[l]))));return r}function ac(t,e){const n=[];let r;for(;t._i<t.length;){if(r=t[t._i++],r.type===Y.None||r.type===Y.Number||r.type===Y.Alpha||r.type===Y.Percentage||e&&r.type===Y.Hue){n.push(r);continue}if(r.type===Y.ParenClose){if(t._i<t.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==Y.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:Y.None,value:void 0}),n.every(i=>i.type!==Y.Alpha)?n:void 0}}function Rm(t,e){t._i=0;let n=t[t._i++];if(!n||n.type!==Y.Function)return;let r=ac(t,e);if(r)return r.unshift(n.value),r}const Oe=t=>{if(typeof t!="string")return;const e=Hm(t),n=e?Rm(e,!0):void 0;let r,i=0,o=Lr.length;for(;i<o;)if((r=Lr[i++](t,n))!==void 0)return r;return e?Lm(e):void 0};function Nm(t,e){if(!e||e[0]!=="rgb"&&e[0]!=="rgba")return;const n={mode:"rgb"},[,r,i,o,s]=e;if(!(r.type===Y.Hue||i.type===Y.Hue||o.type===Y.Hue))return r.type!==Y.None&&(n.r=r.type===Y.Number?r.value/255:r.value/100),i.type!==Y.None&&(n.g=i.type===Y.Number?i.value/255:i.value/100),o.type!==Y.None&&(n.b=o.type===Y.Number?o.value/255:o.value/100),s.type!==Y.None&&(n.alpha=Math.min(1,Math.max(0,s.type===Y.Number?s.value:s.value/100))),n}const Dm=t=>t==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,jm=(t,e,n)=>t+n*(e-t),Fm=t=>{let e=[];for(let n=0;n<t.length-1;n++){let r=t[n],i=t[n+1];r===void 0&&i===void 0?e.push(void 0):r!==void 0&&i!==void 0?e.push([r,i]):e.push(r!==void 0?[r,r]:[i,i])}return e},J=(t=>e=>{let n=Fm(e);return r=>{let i=r*n.length,o=r>=1?n.length-1:Math.max(Math.floor(i),0),s=n[o];return s===void 0?void 0:t(s[0],s[1],i-o)}})(jm),Ft=t=>{let e=!1,n=t.map(r=>r!==void 0?(e=!0,r):1);return e?n:t},hn={mode:"rgb",channels:["r","g","b","alpha"],parse:[Nm,$m,Cm,wm,Dm,"srgb"],serialize:"srgb",interpolate:{r:J,g:J,b:J,alpha:{use:J,fixup:Ft}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Co=(t=0)=>Math.pow(Math.abs(t),563/256)*Math.sign(t),lc=t=>{let e=Co(t.r),n=Co(t.g),r=Co(t.b),i={mode:"xyz65",x:.5766690429101305*e+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*e+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*e+.0706888525358272*n+.9913375368376386*r};return t.alpha!==void 0&&(i.alpha=t.alpha),i},So=t=>Math.pow(Math.abs(t),256/563)*Math.sign(t),cc=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"a98",r:So(t*2.0415879038107465-e*.5650069742788597-.3447313507783297*n),g:So(t*-.9692436362808798+e*1.8759675015077206+.0415550574071756*n),b:So(t*.0134442806320312-e*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},Io=(t=0)=>{const e=Math.abs(t);return e<=.04045?t/12.92:(Math.sign(t)||1)*Math.pow((e+.055)/1.055,2.4)},fn=({r:t,g:e,b:n,alpha:r})=>{let i={mode:"lrgb",r:Io(t),g:Io(e),b:Io(n)};return r!==void 0&&(i.alpha=r),i},Xe=t=>{let{r:e,g:n,b:r,alpha:i}=fn(t),o={mode:"xyz65",x:.4123907992659593*e+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*e+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*e+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(o.alpha=i),o},Ao=(t=0)=>{const e=Math.abs(t);return e>.0031308?(Math.sign(t)||1)*(1.055*Math.pow(e,1/2.4)-.055):t*12.92},un=({r:t,g:e,b:n,alpha:r},i="rgb")=>{let o={mode:i,r:Ao(t),g:Ao(e),b:Ao(n)};return r!==void 0&&(o.alpha=r),o},Ye=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=un({r:t*3.2409699419045226-e*1.537383177570094-.4986107602930034*n,g:t*-.9692436362808796+e*1.8759675015077204+.0415550574071756*n,b:t*.0556300796969936-e*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i},Bm=se(Jt({},hn),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:t=>cc(Xe(t)),xyz65:cc},toMode:{rgb:t=>Ye(lc(t)),xyz65:lc}}),Vt=t=>(t=t%360)<0?t+360:t,Wm=(t,e)=>t.map((n,r,i)=>{if(n===void 0)return n;let o=Vt(n);return r===0||t[r-1]===void 0?o:e(o-Vt(i[r-1]))}).reduce((n,r)=>!n.length||r===void 0||n[n.length-1]===void 0?(n.push(r),n):(n.push(r+n[n.length-1]),n),[]),Ce=t=>Wm(t,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),Wt=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Xm=Math.PI/180,Ym=180/Math.PI;let hc=Wt[3]*Wt[4],fc=Wt[1]*Wt[4],uc=Wt[1]*Wt[2]-Wt[0]*Wt[3];const Vm=({r:t,g:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(uc*n+t*hc-e*fc)/(uc+hc-fc),o=n-i,s=(Wt[4]*(e-i)-Wt[2]*o)/Wt[3],a={mode:"cubehelix",l:i,s:i===0||i===1?void 0:Math.sqrt(o*o+s*s)/(Wt[4]*i*(1-i))};return a.s&&(a.h=Math.atan2(s,o)*Ym-120),r!==void 0&&(a.alpha=r),a},qm=({h:t,s:e,l:n,alpha:r})=>{let i={mode:"rgb"};t=(t===void 0?0:t+120)*Xm,n===void 0&&(n=0);let o=e===void 0?0:e*n*(1-n),s=Math.cos(t),a=Math.sin(t);return i.r=n+o*(Wt[0]*s+Wt[1]*a),i.g=n+o*(Wt[2]*s+Wt[3]*a),i.b=n+o*(Wt[4]*s+Wt[5]*a),r!==void 0&&(i.alpha=r),i},jr=(t,e)=>{if(t.h===void 0||e.h===void 0||!t.s||!e.s)return 0;let n=Vt(t.h),r=Vt(e.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.s*e.s)*i},Gm=(t,e)=>{if(t.h===void 0||e.h===void 0)return 0;let n=Vt(t.h),r=Vt(e.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},Fr=(t,e)=>{if(t.h===void 0||e.h===void 0||!t.c||!e.c)return 0;let n=Vt(t.h),r=Vt(e.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.c*e.c)*i},Se=t=>{let e=t.reduce((r,i)=>{if(i!==void 0){let o=i*Math.PI/180;r.sin+=Math.sin(o),r.cos+=Math.cos(o)}return r},{sin:0,cos:0}),n=Math.atan2(e.sin,e.cos)*180/Math.PI;return n<0?360+n:n},Um={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Vm},toMode:{rgb:qm},interpolate:{h:{use:J,fixup:Ce},s:J,l:J,alpha:{use:J,fixup:Ft}},difference:{h:jr},average:{h:Se}},ze=({l:t,a:e,b:n,alpha:r},i="lch")=>{e===void 0&&(e=0),n===void 0&&(n=0);let o=Math.sqrt(e*e+n*n),s={mode:i,l:t,c:o};return o&&(s.h=Vt(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(s.alpha=r),s},Te=({l:t,c:e,h:n,alpha:r},i="lab")=>{n===void 0&&(n=0);let o={mode:i,l:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return r!==void 0&&(o.alpha=r),o},dc=Math.pow(29,3)/Math.pow(3,3),pc=Math.pow(6,3)/Math.pow(29,3),jt={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},dn={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329};let ko=t=>Math.pow(t,3)>pc?Math.pow(t,3):(116*t-16)/dc;const gc=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(t+16)/116,o=e/500+i,s=i-n/200,a={mode:"xyz65",x:ko(o)*dn.X,y:ko(i)*dn.Y,z:ko(s)*dn.Z};return r!==void 0&&(a.alpha=r),a},Br=t=>Ye(gc(t)),Eo=t=>t>pc?Math.cbrt(t):(dc*t+16)/116,mc=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Eo(t/dn.X),o=Eo(e/dn.Y),s=Eo(n/dn.Z),a={mode:"lab65",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},Wr=t=>{let e=mc(Xe(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Xr=1,yc=1,jn=26/180*Math.PI,Yr=Math.cos(jn),Vr=Math.sin(jn),xc=100/Math.log(139/100),zo=({l:t,c:e,h:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"lab65",l:(Math.exp(t*Xr/xc)-1)/.0039},o=(Math.exp(.0435*e*yc*Xr)-1)/.075,s=o*Math.cos(n/180*Math.PI-jn),a=o*Math.sin(n/180*Math.PI-jn);return i.a=s*Yr-a/.83*Vr,i.b=s*Vr+a/.83*Yr,r!==void 0&&(i.alpha=r),i},To=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=e*Yr+n*Vr,o=.83*(n*Yr-e*Vr),s=Math.sqrt(i*i+o*o),a={mode:"dlch",l:xc/Xr*Math.log(1+.0039*t),c:Math.log(1+.075*s)/(.0435*yc*Xr)};return a.c&&(a.h=Vt((Math.atan2(o,i)+jn)/Math.PI*180)),r!==void 0&&(a.alpha=r),a},_c=t=>zo(ze(t,"dlch")),bc=t=>Te(To(t),"dlab"),Zm={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:_c,rgb:t=>Br(_c(t))},fromMode:{lab65:bc,rgb:t=>bc(Wr(t))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:J,a:J,b:J,alpha:{use:J,fixup:Ft}}},Qm={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:zo,dlab:t=>Te(t,"dlab"),rgb:t=>Br(zo(t))},fromMode:{lab65:To,dlab:t=>ze(t,"dlch"),rgb:t=>To(Wr(t))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:J,c:J,h:{use:J,fixup:Ce},alpha:{use:J,fixup:Ft}},difference:{h:Fr},average:{h:Se}};function Km({h:t,s:e,i:n,alpha:r}){t=Vt(t!==void 0?t:0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.abs(t/60%2-1),o;switch(Math.floor(t/60)){case 0:o={r:n*(1+e*(3/(2-i)-1)),g:n*(1+e*(3*(1-i)/(2-i)-1)),b:n*(1-e)};break;case 1:o={r:n*(1+e*(3*(1-i)/(2-i)-1)),g:n*(1+e*(3/(2-i)-1)),b:n*(1-e)};break;case 2:o={r:n*(1-e),g:n*(1+e*(3/(2-i)-1)),b:n*(1+e*(3*(1-i)/(2-i)-1))};break;case 3:o={r:n*(1-e),g:n*(1+e*(3*(1-i)/(2-i)-1)),b:n*(1+e*(3/(2-i)-1))};break;case 4:o={r:n*(1+e*(3*(1-i)/(2-i)-1)),g:n*(1-e),b:n*(1+e*(3/(2-i)-1))};break;case 5:o={r:n*(1+e*(3/(2-i)-1)),g:n*(1-e),b:n*(1+e*(3*(1-i)/(2-i)-1))};break;default:o={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return o.mode="rgb",r!==void 0&&(o.alpha=r),o}function Jm({r:t,g:e,b:n,alpha:r}){t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsi",s:t+e+n===0?0:1-3*o/(t+e+n),i:(t+e+n)/3};return i-o!==0&&(s.h=(i===t?(e-n)/(i-o)+(e<n)*6:i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const t2={mode:"hsi",toMode:{rgb:Km},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:Jm},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:J,fixup:Ce},s:J,i:J,alpha:{use:J,fixup:Ft}},difference:{h:jr},average:{h:Se}};function e2({h:t,s:e,l:n,alpha:r}){t=Vt(t!==void 0?t:0),e===void 0&&(e=0),n===void 0&&(n=0);let i=n+e*(n<.5?n:1-n),o=i-(i-n)*2*Math.abs(t/60%2-1),s;switch(Math.floor(t/60)){case 0:s={r:i,g:o,b:2*n-i};break;case 1:s={r:o,g:i,b:2*n-i};break;case 2:s={r:2*n-i,g:i,b:o};break;case 3:s={r:2*n-i,g:o,b:i};break;case 4:s={r:o,g:2*n-i,b:i};break;case 5:s={r:i,g:2*n-i,b:o};break;default:s={r:2*n-i,g:2*n-i,b:2*n-i}}return s.mode="rgb",r!==void 0&&(s.alpha=r),s}function n2({r:t,g:e,b:n,alpha:r}){t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsl",s:i===o?0:(i-o)/(1-Math.abs(i+o-1)),l:.5*(i+o)};return i-o!==0&&(s.h=(i===t?(e-n)/(i-o)+(e<n)*6:i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const r2=(t,e)=>{switch(e){case"deg":return+t;case"rad":return t/Math.PI*180;case"grad":return t/10*9;case"turn":return t*360}},i2=new RegExp(`^hsla?\\(\\s*${Pm}${cn}${Nn}${cn}${Nn}\\s*(?:,\\s*${$o}\\s*)?\\)$`),o2=t=>{let e=t.match(i2);if(!e)return;let n={mode:"hsl"};return e[3]!==void 0?n.h=+e[3]:e[1]!==void 0&&e[2]!==void 0&&(n.h=r2(e[1],e[2])),e[4]!==void 0&&(n.s=Math.min(Math.max(0,e[4]/100),1)),e[5]!==void 0&&(n.l=Math.min(Math.max(0,e[5]/100),1)),e[6]!==void 0?n.alpha=Math.max(0,Math.min(1,e[6]/100)):e[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+e[7]))),n};function s2(t,e){if(!e||e[0]!=="hsl"&&e[0]!=="hsla")return;const n={mode:"hsl"},[,r,i,o,s]=e;if(r.type!==Y.None){if(r.type===Y.Percentage)return;n.h=r.value}if(i.type!==Y.None){if(i.type===Y.Hue)return;n.s=i.value/100}if(o.type!==Y.None){if(o.type===Y.Hue)return;n.l=o.value/100}return s.type!==Y.None&&(n.alpha=Math.min(1,Math.max(0,s.type===Y.Number?s.value:s.value/100))),n}const wc={mode:"hsl",toMode:{rgb:e2},fromMode:{rgb:n2},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[s2,o2],serialize:t=>`hsl(${t.h!==void 0?t.h:"none"} ${t.s!==void 0?t.s*100+"%":"none"} ${t.l!==void 0?t.l*100+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:J,fixup:Ce},s:J,l:J,alpha:{use:J,fixup:Ft}},difference:{h:jr},average:{h:Se}};function vc({h:t,s:e,v:n,alpha:r}){t=Vt(t!==void 0?t:0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.abs(t/60%2-1),o;switch(Math.floor(t/60)){case 0:o={r:n,g:n*(1-e*i),b:n*(1-e)};break;case 1:o={r:n*(1-e*i),g:n,b:n*(1-e)};break;case 2:o={r:n*(1-e),g:n,b:n*(1-e*i)};break;case 3:o={r:n*(1-e),g:n*(1-e*i),b:n};break;case 4:o={r:n*(1-e*i),g:n*(1-e),b:n};break;case 5:o={r:n,g:n*(1-e),b:n*(1-e*i)};break;default:o={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return o.mode="rgb",r!==void 0&&(o.alpha=r),o}function $c({r:t,g:e,b:n,alpha:r}){t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsv",s:i===0?0:1-o/i,v:i};return i-o!==0&&(s.h=(i===t?(e-n)/(i-o)+(e<n)*6:i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const Pc={mode:"hsv",toMode:{rgb:vc},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:$c},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:J,fixup:Ce},s:J,v:J,alpha:{use:J,fixup:Ft}},difference:{h:jr},average:{h:Se}};function a2({h:t,w:e,b:n,alpha:r}){if(e===void 0&&(e=0),n===void 0&&(n=0),e+n>1){let i=e+n;e/=i,n/=i}return vc({h:t,s:n===1?1:1-e/(1-n),v:1-n,alpha:r})}function l2(t){let e=$c(t);if(e===void 0)return;let n=e.s!==void 0?e.s:0,r=e.v!==void 0?e.v:0,i={mode:"hwb",w:(1-n)*r,b:1-r};return e.h!==void 0&&(i.h=e.h),e.alpha!==void 0&&(i.alpha=e.alpha),i}function c2(t,e){if(!e||e[0]!=="hwb")return;const n={mode:"hwb"},[,r,i,o,s]=e;if(r.type!==Y.None){if(r.type===Y.Percentage)return;n.h=r.value}if(i.type!==Y.None){if(i.type===Y.Hue)return;n.w=i.value/100}if(o.type!==Y.None){if(o.type===Y.Hue)return;n.b=o.value/100}return s.type!==Y.None&&(n.alpha=Math.min(1,Math.max(0,s.type===Y.Number?s.value:s.value/100))),n}const h2={mode:"hwb",toMode:{rgb:a2},fromMode:{rgb:l2},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[c2],serialize:t=>`hwb(${t.h!==void 0?t.h:"none"} ${t.w!==void 0?t.w*100+"%":"none"} ${t.b!==void 0?t.b*100+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:J,fixup:Ce},w:J,b:J,alpha:{use:J,fixup:Ft}},difference:{h:Gm},average:{h:Se}},Mc=203,qr=.1593017578125,Oc=78.84375,Gr=.8359375,Ur=18.8515625,Zr=18.6875;function Ho(t){if(t<0)return 0;const e=Math.pow(t,1/Oc);return 1e4*Math.pow(Math.max(0,e-Gr)/(Ur-Zr*e),1/qr)}function Lo(t){if(t<0)return 0;const e=Math.pow(t/1e4,qr);return Math.pow((Gr+Ur*e)/(1+Zr*e),Oc)}const Ro=t=>Math.max(t/Mc,0),Cc=({i:t,t:e,p:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i=Ho(t+.008609037037932761*e+.11102962500302593*n),o=Ho(t-.00860903703793275*e-.11102962500302599*n),s=Ho(t+.5600313357106791*e-.32062717498731885*n),a={mode:"xyz65",x:Ro(2.070152218389422*i-1.3263473389671556*o+.2066510476294051*s),y:Ro(.3647385209748074*i+.680566024947227*o-.0453045459220346*s),z:Ro(-.049747207535812*i-.0492609666966138*o+1.1880659249923042*s)};return r!==void 0&&(a.alpha=r),a},No=(t=0)=>Math.max(t*Mc,0),Sc=({x:t,y:e,z:n,alpha:r})=>{const i=No(t),o=No(e),s=No(n),a=Lo(.3592832590121217*i+.6976051147779502*o-.0358915932320289*s),l=Lo(-.1920808463704995*i+1.1004767970374323*o+.0753748658519118*s),c=Lo(.0070797844607477*i+.0748396662186366*o+.8433265453898765*s),f=.5*a+.5*l,d=1.61376953125*a-3.323486328125*l+1.709716796875*c,u=4.378173828125*a-4.24560546875*l-.132568359375*c,p={mode:"itp",i:f,t:d,p:u};return r!==void 0&&(p.alpha=r),p},f2={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Cc,rgb:t=>Ye(Cc(t))},fromMode:{xyz65:Sc,rgb:t=>Sc(Xe(t))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:J,t:J,p:J,alpha:{use:J,fixup:Ft}}},u2=134.03437499999998,d2=16295499532821565e-27,Do=t=>{if(t<0)return 0;let e=Math.pow(t/1e4,qr);return Math.pow((Gr+Ur*e)/(1+Zr*e),u2)},jo=(t=0)=>Math.max(t*203,0),Ic=({x:t,y:e,z:n,alpha:r})=>{t=jo(t),e=jo(e),n=jo(n);let i=1.15*t-.15*n,o=.66*e+.34*t,s=Do(.41478972*i+.579999*o+.014648*n),a=Do(-.20151*i+1.120649*o+.0531008*n),l=Do(-.0166008*i+.2648*o+.6684799*n),c=(s+a)/2,f={mode:"jab",j:.44*c/(1-.56*c)-d2,a:3.524*s-4.066708*a+.542708*l,b:.199076*s+1.096799*a-1.295875*l};return r!==void 0&&(f.alpha=r),f},p2=134.03437499999998,Ac=16295499532821565e-27,Fo=t=>{if(t<0)return 0;let e=Math.pow(t,1/p2);return 1e4*Math.pow((Gr-e)/(Zr*e-Ur),1/qr)},Bo=t=>t/203,kc=({j:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(t+Ac)/(.44+.56*(t+Ac)),o=Fo(i+.13860504*e+.058047316*n),s=Fo(i-.13860504*e-.058047316*n),a=Fo(i-.096019242*e-.8118919*n),l={mode:"xyz65",x:Bo(1.661373024652174*o-.914523081304348*s+.23136208173913045*a),y:Bo(-.3250758611844533*o+1.571847026732543*s-.21825383453227928*a),z:Bo(-.090982811*o-.31272829*s+1.5227666*a)};return r!==void 0&&(l.alpha=r),l},Ec=t=>{let e=Ic(Xe(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},zc=t=>Ye(kc(t)),g2={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Ec,xyz65:Ic},toMode:{rgb:zc,xyz65:kc},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:J,a:J,b:J,alpha:{use:J,fixup:Ft}}},Tc=({j:t,a:e,b:n,alpha:r})=>{e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.sqrt(e*e+n*n),o={mode:"jch",j:t,c:i};return i&&(o.h=Vt(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},Hc=({j:t,c:e,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:"jab",j:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},m2={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Hc,rgb:t=>zc(Hc(t))},fromMode:{rgb:t=>Tc(Ec(t)),jab:Tc},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:J,fixup:Ce},c:J,j:J,alpha:{use:J,fixup:Ft}},difference:{h:Fr},average:{h:Se}},Qr=Math.pow(29,3)/Math.pow(3,3),Wo=Math.pow(6,3)/Math.pow(29,3);let Xo=t=>Math.pow(t,3)>Wo?Math.pow(t,3):(116*t-16)/Qr;const Yo=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(t+16)/116,o=e/500+i,s=i-n/200,a={mode:"xyz50",x:Xo(o)*jt.X,y:Xo(i)*jt.Y,z:Xo(s)*jt.Z};return r!==void 0&&(a.alpha=r),a},Fn=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=un({r:t*3.1341359569958707-e*1.6173863321612538-.4906619460083532*n,g:t*-.978795502912089+e*1.916254567259524+.03344273116131949*n,b:t*.07195537988411677-e*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i},Lc=t=>Fn(Yo(t)),Bn=t=>{let{r:e,g:n,b:r,alpha:i}=fn(t),o={mode:"xyz50",x:.436065742824811*e+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*e+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*e+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(o.alpha=i),o},Vo=t=>t>Wo?Math.cbrt(t):(Qr*t+16)/116,qo=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Vo(t/jt.X),o=Vo(e/jt.Y),s=Vo(n/jt.Z),a={mode:"lab",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},Rc=t=>{let e=qo(Bn(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e};function y2(t,e){if(!e||e[0]!=="lab")return;const n={mode:"lab"},[,r,i,o,s]=e;if(!(r.type===Y.Hue||i.type===Y.Hue||o.type===Y.Hue))return r.type!==Y.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==Y.None&&(n.a=i.type===Y.Number?i.value:i.value*125/100),o.type!==Y.None&&(n.b=o.type===Y.Number?o.value:o.value*125/100),s.type!==Y.None&&(n.alpha=Math.min(1,Math.max(0,s.type===Y.Number?s.value:s.value/100))),n}const Go={mode:"lab",toMode:{xyz50:Yo,rgb:Lc},fromMode:{xyz50:qo,rgb:Rc},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[y2],serialize:t=>`lab(${t.l!==void 0?t.l:"none"} ${t.a!==void 0?t.a:"none"} ${t.b!==void 0?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{l:J,a:J,b:J,alpha:{use:J,fixup:Ft}}},x2=se(Jt({},Go),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:gc,rgb:Br},fromMode:{xyz65:mc,rgb:Wr},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}});function _2(t,e){if(!e||e[0]!=="lch")return;const n={mode:"lch"},[,r,i,o,s]=e;if(r.type!==Y.None){if(r.type===Y.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==Y.None&&(n.c=Math.max(0,i.type===Y.Number?i.value:i.value*150/100)),o.type!==Y.None){if(o.type===Y.Percentage)return;n.h=o.value}return s.type!==Y.None&&(n.alpha=Math.min(1,Math.max(0,s.type===Y.Number?s.value:s.value/100))),n}const Uo={mode:"lch",toMode:{lab:Te,rgb:t=>Lc(Te(t))},fromMode:{rgb:t=>ze(Rc(t)),lab:ze},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[_2],serialize:t=>`lch(${t.l!==void 0?t.l:"none"} ${t.c!==void 0?t.c:"none"} ${t.h!==void 0?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:J,fixup:Ce},c:J,l:J,alpha:{use:J,fixup:Ft}},difference:{h:Fr},average:{h:Se}},b2=se(Jt({},Uo),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:t=>Te(t,"lab65"),rgb:t=>Br(Te(t,"lab65"))},fromMode:{rgb:t=>ze(Wr(t),"lch65"),lab65:t=>ze(t,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Nc=({l:t,u:e,v:n,alpha:r})=>{e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.sqrt(e*e+n*n),o={mode:"lchuv",l:t,c:i};return i&&(o.h=Vt(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},Dc=({l:t,c:e,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:"luv",l:t,u:e?e*Math.cos(n/180*Math.PI):0,v:e?e*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},jc=(t,e,n)=>4*t/(t+15*e+3*n),Fc=(t,e,n)=>9*e/(t+15*e+3*n),w2=jc(jt.X,jt.Y,jt.Z),v2=Fc(jt.X,jt.Y,jt.Z),$2=t=>t<=Wo?Qr*t:116*Math.cbrt(t)-16,Zo=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=$2(e/jt.Y),o=jc(t,e,n),s=Fc(t,e,n);!isFinite(o)||!isFinite(s)?i=o=s=0:(o=13*i*(o-w2),s=13*i*(s-v2));let a={mode:"luv",l:i,u:o,v:s};return r!==void 0&&(a.alpha=r),a},P2=(t,e,n)=>4*t/(t+15*e+3*n),M2=(t,e,n)=>9*e/(t+15*e+3*n),O2=P2(jt.X,jt.Y,jt.Z),C2=M2(jt.X,jt.Y,jt.Z),Qo=({l:t,u:e,v:n,alpha:r})=>{if(t===void 0&&(t=0),t===0)return{mode:"xyz50",x:0,y:0,z:0};e===void 0&&(e=0),n===void 0&&(n=0);let i=e/(13*t)+O2,o=n/(13*t)+C2,s=jt.Y*(t<=8?t/Qr:Math.pow((t+16)/116,3)),a=s*(9*i)/(4*o),l=s*(12-3*i-20*o)/(4*o),c={mode:"xyz50",x:a,y:s,z:l};return r!==void 0&&(c.alpha=r),c},S2={mode:"lchuv",toMode:{luv:Dc,rgb:t=>Fn(Qo(Dc(t)))},fromMode:{rgb:t=>Nc(Zo(Bn(t))),luv:Nc},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:J,fixup:Ce},c:J,l:J,alpha:{use:J,fixup:Ft}},difference:{h:Fr},average:{h:Se}},I2=se(Jt({},hn),{mode:"lrgb",toMode:{rgb:un},fromMode:{rgb:fn},parse:["srgb-linear"],serialize:"srgb-linear"}),A2={mode:"luv",toMode:{xyz50:Qo,rgb:t=>Fn(Qo(t))},fromMode:{xyz50:Zo,rgb:t=>Zo(Bn(t))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:J,u:J,v:J,alpha:{use:J,fixup:Ft}}},Bc=({r:t,g:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*t+.5363325372617348*e+.0514459932675022*n),o=Math.cbrt(.2119034958178252*t+.6806995506452344*e+.1073969535369406*n),s=Math.cbrt(.0883024591900564*t+.2817188391361215*e+.6299787016738222*n),a={mode:"oklab",l:.210454268309314*i+.7936177747023054*o-.0040720430116193*s,a:1.9779985324311684*i-2.42859224204858*o+.450593709617411*s,b:.0259040424655478*i+.7827717124575296*o-.8086757549230774*s};return r!==void 0&&(a.alpha=r),a},Kr=t=>{let e=Bc(fn(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Wn=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.pow(t+.3963377773761749*e+.2158037573099136*n,3),o=Math.pow(t-.1055613458156586*e-.0638541728258133*n,3),s=Math.pow(t-.0894841775298119*e-1.2914855480194092*n,3),a={mode:"lrgb",r:4.076741636075957*i-3.3077115392580616*o+.2309699031821044*s,g:-1.2684379732850317*i+2.6097573492876887*o-.3413193760026573*s,b:-.0041960761386756*i-.7034186179359362*o+1.7076146940746117*s};return r!==void 0&&(a.alpha=r),a},Jr=t=>un(Wn(t));function Ko(t){const r=1.170873786407767;return .5*(r*t-.206+Math.sqrt((r*t-.206)*(r*t-.206)+4*.03*r*t))}function ti(t){return(t*t+.206*t)/(1.170873786407767*(t+.03))}function k2(t,e){let n,r,i,o,s,a,l,c;-1.88170328*t-.80936493*e>1?(n=1.19086277,r=1.76576728,i=.59662641,o=.75515197,s=.56771245,a=4.0767416621,l=-3.3077115913,c=.2309699292):1.81444104*t-1.19445276*e>1?(n=.73956515,r=-.45954404,i=.08285427,o=.1254107,s=.14503204,a=-1.2684380046,l=2.6097574011,c=-.3413193965):(n=1.35733652,r=-.00915799,i=-1.1513021,o=-.50559606,s=.00692167,a=-.0041960863,l=-.7034186147,c=1.707614701);let f=n+r*t+i*e+o*t*t+s*t*e,d=.3963377774*t+.2158037573*e,u=-.1055613458*t-.0638541728*e,p=-.0894841775*t-1.291485548*e;{let g=1+f*d,m=1+f*u,y=1+f*p,_=g*g*g,x=m*m*m,b=y*y*y,w=3*d*g*g,P=3*u*m*m,v=3*p*y*y,$=6*d*d*g,M=6*u*u*m,I=6*p*p*y,S=a*_+l*x+c*b,C=a*w+l*P+c*v,k=a*$+l*M+c*I;f=f-S*C/(C*C-.5*S*k)}return f}function Jo(t,e){let n=k2(t,e),r=Wn({l:1,a:n*t,b:n*e}),i=Math.cbrt(1/Math.max(r.r,r.g,r.b)),o=i*n;return[i,o]}function E2(t,e,n,r,i,o=null){o||(o=Jo(t,e));let s;if((n-i)*o[1]-(o[0]-i)*r<=0)s=o[1]*i/(r*o[0]+o[1]*(i-n));else{s=o[1]*(i-1)/(r*(o[0]-1)+o[1]*(i-n));{let a=n-i,l=r,c=.3963377774*t+.2158037573*e,f=-.1055613458*t-.0638541728*e,d=-.0894841775*t-1.291485548*e,u=a+l*c,p=a+l*f,g=a+l*d;{let m=i*(1-s)+s*n,y=s*r,_=m+y*c,x=m+y*f,b=m+y*d,w=_*_*_,P=x*x*x,v=b*b*b,$=3*u*_*_,M=3*p*x*x,I=3*g*b*b,S=6*u*u*_,C=6*p*p*x,k=6*g*g*b,A=4.0767416621*w-3.3077115913*P+.2309699292*v-1,z=4.0767416621*$-3.3077115913*M+.2309699292*I,j=4.0767416621*S-3.3077115913*C+.2309699292*k,E=z/(z*z-.5*A*j),D=-A*E,L=-1.2684380046*w+2.6097574011*P-.3413193965*v-1,T=-1.2684380046*$+2.6097574011*M-.3413193965*I,N=-1.2684380046*S+2.6097574011*C-.3413193965*k,F=T/(T*T-.5*L*N),X=-L*F,H=-.0041960863*w-.7034186147*P+1.707614701*v-1,tt=-.0041960863*$-.7034186147*M+1.707614701*I,K=-.0041960863*S-.7034186147*C+1.707614701*k,nt=tt/(tt*tt-.5*H*K),V=-H*nt;D=E>=0?D:1e6,X=F>=0?X:1e6,V=nt>=0?V:1e6,s+=Math.min(D,Math.min(X,V))}}}return s}function ts(t,e,n=null){n||(n=Jo(t,e));let r=n[0],i=n[1];return[i/r,i/(1-r)]}function Wc(t,e,n){let r=Jo(e,n),i=E2(e,n,t,1,t,r),o=ts(e,n,r),s=.11516993+1/(7.4477897+4.1590124*n+e*(-2.19557347+1.75198401*n+e*(-2.13704948-10.02301043*n+e*(-4.24894561+5.38770819*n+4.69891013*e)))),a=.11239642+1/(1.6132032-.68124379*n+e*(.40370612+.90148123*n+e*(-.27087943+.6122399*n+e*(.00299215-.45399568*n-.14661872*e)))),l=i/Math.min(t*o[0],(1-t)*o[1]),c=t*s,f=(1-t)*a,d=.9*l*Math.sqrt(Math.sqrt(1/(1/(c*c*c*c)+1/(f*f*f*f))));return c=t*.4,f=(1-t)*.8,[Math.sqrt(1/(1/(c*c)+1/(f*f))),d,i]}function Xc(t){const e=t.l!==void 0?t.l:0,n=t.a!==void 0?t.a:0,r=t.b!==void 0?t.b:0,i={mode:"okhsl",l:Ko(e)};t.alpha!==void 0&&(i.alpha=t.alpha);let o=Math.sqrt(n*n+r*r);if(!o)return i.s=0,i;let[s,a,l]=Wc(e,n/o,r/o),c;if(o<a){let f=0,d=.8*s,u=1-d/a;c=(o-f)/(d+u*(o-f))*.8}else{let f=a,d=.2*a*a*1.25*1.25/s,u=1-d/(l-a);c=.8+.2*((o-f)/(d+u*(o-f)))}return c&&(i.s=c,i.h=Vt(Math.atan2(r,n)*180/Math.PI)),i}function Yc(t){let e=t.h!==void 0?t.h:0,n=t.s!==void 0?t.s:0,r=t.l!==void 0?t.l:0;const i={mode:"oklab",l:ti(r)};if(t.alpha!==void 0&&(i.alpha=t.alpha),!n||r===1)return i.a=i.b=0,i;let o=Math.cos(e/180*Math.PI),s=Math.sin(e/180*Math.PI),[a,l,c]=Wc(i.l,o,s),f,d,u,p;n<.8?(f=1.25*n,d=0,u=.8*a,p=1-u/l):(f=5*(n-.8),d=l,u=.2*l*l*1.25*1.25/a,p=1-u/(c-l));let g=d+f*u/(1-p*f);return i.a=g*o,i.b=g*s,i}const z2=se(Jt({},wc),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Xc,rgb:t=>Xc(Kr(t))},toMode:{oklab:Yc,rgb:t=>Jr(Yc(t))}});function Vc(t){let e=t.l!==void 0?t.l:0,n=t.a!==void 0?t.a:0,r=t.b!==void 0?t.b:0,i=Math.sqrt(n*n+r*r),o=i?n/i:1,s=i?r/i:1,[a,l]=ts(o,s),c=.5,f=1-c/a,d=l/(i+e*l),u=d*e,p=d*i,g=ti(u),m=p*g/u,y=Wn({l:g,a:o*m,b:s*m}),_=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));e=e/_,i=i/_*Ko(e)/e,e=Ko(e);const x={mode:"okhsv",s:i?(c+l)*p/(l*c+l*f*p):0,v:e?e/u:0};return x.s&&(x.h=Vt(Math.atan2(r,n)*180/Math.PI)),t.alpha!==void 0&&(x.alpha=t.alpha),x}function qc(t){const e={mode:"oklab"};t.alpha!==void 0&&(e.alpha=t.alpha);const n=t.h!==void 0?t.h:0,r=t.s!==void 0?t.s:0,i=t.v!==void 0?t.v:0,o=Math.cos(n/180*Math.PI),s=Math.sin(n/180*Math.PI),[a,l]=ts(o,s),c=.5,f=1-c/a,d=1-r*c/(c+l-l*f*r),u=r*l*c/(c+l-l*f*r),p=ti(d),g=u*p/d,m=Wn({l:p,a:o*g,b:s*g}),y=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),_=ti(i*d),x=u*_/d;return e.l=_*y,e.a=x*o*y,e.b=x*s*y,e}const T2=se(Jt({},Pc),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Vc,rgb:t=>Vc(Kr(t))},toMode:{oklab:qc,rgb:t=>Jr(qc(t))}});function H2(t,e){if(!e||e[0]!=="oklab")return;const n={mode:"oklab"},[,r,i,o,s]=e;if(!(r.type===Y.Hue||i.type===Y.Hue||o.type===Y.Hue))return r.type!==Y.None&&(n.l=Math.min(Math.max(0,r.type===Y.Number?r.value:r.value/100),1)),i.type!==Y.None&&(n.a=i.type===Y.Number?i.value:i.value*.4/100),o.type!==Y.None&&(n.b=o.type===Y.Number?o.value:o.value*.4/100),s.type!==Y.None&&(n.alpha=Math.min(1,Math.max(0,s.type===Y.Number?s.value:s.value/100))),n}const L2=se(Jt({},Go),{mode:"oklab",toMode:{lrgb:Wn,rgb:Jr},fromMode:{lrgb:Bc,rgb:Kr},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[H2],serialize:t=>`oklab(${t.l!==void 0?t.l:"none"} ${t.a!==void 0?t.a:"none"} ${t.b!==void 0?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`});function R2(t,e){if(!e||e[0]!=="oklch")return;const n={mode:"oklch"},[,r,i,o,s]=e;if(r.type!==Y.None){if(r.type===Y.Hue)return;n.l=Math.min(Math.max(0,r.type===Y.Number?r.value:r.value/100),1)}if(i.type!==Y.None&&(n.c=Math.max(0,i.type===Y.Number?i.value:i.value*.4/100)),o.type!==Y.None){if(o.type===Y.Percentage)return;n.h=o.value}return s.type!==Y.None&&(n.alpha=Math.min(1,Math.max(0,s.type===Y.Number?s.value:s.value/100))),n}const Gc=se(Jt({},Uo),{mode:"oklch",toMode:{oklab:t=>Te(t,"oklab"),rgb:t=>Jr(Te(t,"oklab"))},fromMode:{rgb:t=>ze(Kr(t),"oklch"),oklab:t=>ze(t,"oklch")},parse:[R2],serialize:t=>`oklch(${t.l!==void 0?t.l:"none"} ${t.c!==void 0?t.c:"none"} ${t.h!==void 0?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),Uc=t=>{let{r:e,g:n,b:r,alpha:i}=fn(t),o={mode:"xyz65",x:.486570948648216*e+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*e+.6917385218365062*n+.079286914093745*r,z:0*e+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(o.alpha=i),o},Zc=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=un({r:t*2.4934969119414263-e*.9313836179191242-.402710784450717*n,g:t*-.8294889695615749+e*1.7626640603183465+.0236246858419436*n,b:t*.0358458302437845-e*.0761723892680418+.9568845240076871*n},"p3");return r!==void 0&&(i.alpha=r),i},N2=se(Jt({},hn),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:t=>Zc(Xe(t)),xyz65:Zc},toMode:{rgb:t=>Ye(Uc(t)),xyz65:Uc}}),es=t=>{let e=Math.abs(t);return e>=1/512?Math.sign(t)*Math.pow(e,1/1.8):16*t},Qc=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"prophoto",r:es(t*1.3457868816471585-e*.2555720873797946-.0511018649755453*n),g:es(t*-.5446307051249019+e*1.5082477428451466+.0205274474364214*n),b:es(t*0+e*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},ns=(t=0)=>{let e=Math.abs(t);return e>=16/512?Math.sign(t)*Math.pow(e,1.8):t/16},Kc=t=>{let e=ns(t.r),n=ns(t.g),r=ns(t.b),i={mode:"xyz50",x:.7977666449006423*e+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*e+.7118352342418731*n+899369387256e-16*r,z:0*e+0*n+.8251046025104602*r};return t.alpha!==void 0&&(i.alpha=t.alpha),i},D2=se(Jt({},hn),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Qc,rgb:t=>Qc(Bn(t))},toMode:{xyz50:Kc,rgb:t=>Fn(Kc(t))}}),Jc=1.09929682680944,j2=.018053968510807,rs=t=>{const e=Math.abs(t);return e>j2?(Math.sign(t)||1)*(Jc*Math.pow(e,.45)-(Jc-1)):4.5*t},th=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"rec2020",r:rs(t*1.7166511879712683-e*.3556707837763925-.2533662813736599*n),g:rs(t*-.6666843518324893+e*1.6164812366349395+.0157685458139111*n),b:rs(t*.0176398574453108-e*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},eh=1.09929682680944,F2=.018053968510807,is=(t=0)=>{let e=Math.abs(t);return e<F2*4.5?t/4.5:(Math.sign(t)||1)*Math.pow((e+eh-1)/eh,1/.45)},nh=t=>{let e=is(t.r),n=is(t.g),r=is(t.b),i={mode:"xyz65",x:.6369580483012911*e+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*e+.6779980715188708*n+.059301716469862*r,z:0*e+.0280726930490874*n+1.0609850577107909*r};return t.alpha!==void 0&&(i.alpha=t.alpha),i},B2=se(Jt({},hn),{mode:"rec2020",fromMode:{xyz65:th,rgb:t=>th(Xe(t))},toMode:{xyz65:nh,rgb:t=>Ye(nh(t))},parse:["rec2020"],serialize:"rec2020"}),Ve=.0037930732552754493,rh=Math.cbrt(Ve),os=t=>Math.cbrt(t)-rh,W2=t=>{const{r:e,g:n,b:r,alpha:i}=fn(t),o=os(.3*e+.622*n+.078*r+Ve),s=os(.23*e+.692*n+.078*r+Ve),a=os(.2434226892454782*e+.2047674442449682*n+.5518098665095535*r+Ve),l={mode:"xyb",x:(o-s)/2,y:(o+s)/2,b:a-(o+s)/2};return i!==void 0&&(l.alpha=i),l},ss=t=>Math.pow(t+rh,3),X2={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:({x:t,y:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i=ss(t+e)-Ve,o=ss(e-t)-Ve,s=ss(n+e)-Ve,a=un({r:11.031566904639861*i-9.866943908131562*o-.16462299650829934*s,g:-3.2541473810744237*i+4.418770377582723*o-.16462299650829934*s,b:-3.6588512867136815*i+2.7129230459360922*o+1.9459282407775895*s});return r!==void 0&&(a.alpha=r),a}},fromMode:{rgb:W2},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:J,y:J,b:J,alpha:{use:J,fixup:Ft}}},Y2={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Fn,lab:qo},fromMode:{rgb:Bn,lab:Yo},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:J,y:J,z:J,alpha:{use:J,fixup:Ft}}},V2={mode:"xyz65",toMode:{rgb:Ye,xyz50:t=>{let{x:e,y:n,z:r,alpha:i}=t;e===void 0&&(e=0),n===void 0&&(n=0),r===void 0&&(r=0);let o={mode:"xyz50",x:1.0479298208405488*e+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*e+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*e+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(o.alpha=i),o}},fromMode:{rgb:Xe,xyz50:t=>{let{x:e,y:n,z:r,alpha:i}=t;e===void 0&&(e=0),n===void 0&&(n=0),r===void 0&&(r=0);let o={mode:"xyz65",x:.9554734527042182*e-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*e+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*e-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(o.alpha=i),o}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:J,y:J,z:J,alpha:{use:J,fixup:Ft}}},q2={mode:"yiq",toMode:{rgb:({y:t,i:e,q:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i={mode:"rgb",r:t+.95608445*e+.6208885*n,g:t-.27137664*e-.6486059*n,b:t-1.10561724*e+1.70250126*n};return r!==void 0&&(i.alpha=r),i}},fromMode:{rgb:({r:t,g:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i={mode:"yiq",y:.29889531*t+.58662247*e+.11448223*n,i:.59597799*t-.2741761*e-.32180189*n,q:.21147017*t-.52261711*e+.31114694*n};return r!==void 0&&(i.alpha=r),i}},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:J,i:J,q:J,alpha:{use:J,fixup:Ft}}},G2=t=>Math.max(0,Math.min(1,t||0)),ei=t=>Math.round(G2(t)*255),ih=Po("rgb"),oh=t=>{if(t===void 0)return;let e=ei(t.r),n=ei(t.g),r=ei(t.b);return"#"+(1<<24|e<<16|n<<8|r).toString(16).slice(1)},U2=t=>{if(t===void 0)return;let e=ei(t.alpha!==void 0?t.alpha:1);return oh(t)+(256|e).toString(16).slice(1)},Xn=t=>oh(ih(t)),Z2=t=>U2(ih(t));function as(t){let e=Po("lrgb")(t);return .2126*e.r+.7152*e.g+.0722*e.b}function ls(t,e){let n=as(t),r=as(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}bt(Bm),bt(Um),bt(Zm),bt(Qm),bt(t2),bt(wc),bt(Pc),bt(h2),bt(f2),bt(g2),bt(m2),bt(Go),bt(x2),bt(Uo),bt(b2),bt(S2),bt(I2),bt(A2),bt(z2),bt(T2),bt(L2);const sh=bt(Gc);bt(N2),bt(D2),bt(B2),bt(hn),bt(X2),bt(Y2),bt(V2),bt(q2);function Yn(t){if(!t)return!1;const e=t.trim().toLowerCase();return!(e==="none"||e==="transparent"||e==="")}function ah(t){const e=Oe(t);return e?as(e)<.5:!1}var cs=Array.isArray,Q2=typeof global=="object"&&global&&global.Object===Object&&global,K2=typeof self=="object"&&self&&self.Object===Object&&self,hs=Q2||K2||Function("return this")(),pn=hs.Symbol,lh=Object.prototype,J2=lh.hasOwnProperty,ty=lh.toString,Vn=pn?pn.toStringTag:void 0;function ey(t){var e=J2.call(t,Vn),n=t[Vn];try{t[Vn]=void 0;var r=!0}catch(o){}var i=ty.call(t);return r&&(e?t[Vn]=n:delete t[Vn]),i}var ny=Object.prototype,ry=ny.toString;function iy(t){return ry.call(t)}var oy="[object Null]",sy="[object Undefined]",ch=pn?pn.toStringTag:void 0;function hh(t){return t==null?t===void 0?sy:oy:ch&&ch in Object(t)?ey(t):iy(t)}function ay(t){return t!=null&&typeof t=="object"}var ly="[object Symbol]";function fs(t){return typeof t=="symbol"||ay(t)&&hh(t)==ly}var cy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hy=/^\w*$/;function fy(t,e){if(cs(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||fs(t)?!0:hy.test(t)||!cy.test(t)||e!=null&&t in Object(e)}function fh(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var uy="[object AsyncFunction]",dy="[object Function]",py="[object GeneratorFunction]",gy="[object Proxy]";function my(t){if(!fh(t))return!1;var e=hh(t);return e==dy||e==py||e==uy||e==gy}var us=hs["__core-js_shared__"],uh=(function(){var t=/[^.]+$/.exec(us&&us.keys&&us.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function yy(t){return!!uh&&uh in t}var xy=Function.prototype,_y=xy.toString;function by(t){if(t!=null){try{return _y.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var wy=/[\\^$.*+?()[\]{}|]/g,vy=/^\[object .+?Constructor\]$/,$y=Function.prototype,Py=Object.prototype,My=$y.toString,Oy=Py.hasOwnProperty,Cy=RegExp("^"+My.call(Oy).replace(wy,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sy(t){if(!fh(t)||yy(t))return!1;var e=my(t)?Cy:vy;return e.test(by(t))}function Iy(t,e){return t==null?void 0:t[e]}function dh(t,e){var n=Iy(t,e);return Sy(n)?n:void 0}var qn=dh(Object,"create");function Ay(){this.__data__=qn?qn(null):{},this.size=0}function ky(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Ey="__lodash_hash_undefined__",zy=Object.prototype,Ty=zy.hasOwnProperty;function Hy(t){var e=this.__data__;if(qn){var n=e[t];return n===Ey?void 0:n}return Ty.call(e,t)?e[t]:void 0}var Ly=Object.prototype,Ry=Ly.hasOwnProperty;function Ny(t){var e=this.__data__;return qn?e[t]!==void 0:Ry.call(e,t)}var Dy="__lodash_hash_undefined__";function jy(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=qn&&e===void 0?Dy:e,this}function qe(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}qe.prototype.clear=Ay,qe.prototype.delete=ky,qe.prototype.get=Hy,qe.prototype.has=Ny,qe.prototype.set=jy;function Fy(){this.__data__=[],this.size=0}function By(t,e){return t===e||t!==t&&e!==e}function ni(t,e){for(var n=t.length;n--;)if(By(t[n][0],e))return n;return-1}var Wy=Array.prototype,Xy=Wy.splice;function Yy(t){var e=this.__data__,n=ni(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Xy.call(e,n,1),--this.size,!0}function Vy(t){var e=this.__data__,n=ni(e,t);return n<0?void 0:e[n][1]}function qy(t){return ni(this.__data__,t)>-1}function Gy(t,e){var n=this.__data__,r=ni(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function gn(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}gn.prototype.clear=Fy,gn.prototype.delete=Yy,gn.prototype.get=Vy,gn.prototype.has=qy,gn.prototype.set=Gy;var Uy=dh(hs,"Map");function Zy(){this.size=0,this.__data__={hash:new qe,map:new(Uy||gn),string:new qe}}function Qy(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function ri(t,e){var n=t.__data__;return Qy(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Ky(t){var e=ri(this,t).delete(t);return this.size-=e?1:0,e}function Jy(t){return ri(this,t).get(t)}function tx(t){return ri(this,t).has(t)}function ex(t,e){var n=ri(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Ge(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ge.prototype.clear=Zy,Ge.prototype.delete=Ky,Ge.prototype.get=Jy,Ge.prototype.has=tx,Ge.prototype.set=ex;var nx="Expected a function";function ds(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(nx);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(ds.Cache||Ge),n}ds.Cache=Ge;var rx=500;function ix(t){var e=ds(t,function(r){return n.size===rx&&n.clear(),r}),n=e.cache;return e}var ox=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sx=/\\(\\)?/g,ax=ix(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ox,function(n,r,i,o){e.push(i?o.replace(sx,"$1"):r||n)}),e});function lx(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var ph=pn?pn.prototype:void 0,gh=ph?ph.toString:void 0;function mh(t){if(typeof t=="string")return t;if(cs(t))return lx(t,mh)+"";if(fs(t))return gh?gh.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Gn(t){return t==null?"":mh(t)}function cx(t,e){return cs(t)?t:fy(t,e)?[t]:ax(Gn(t))}function hx(t){if(typeof t=="string"||fs(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function fx(t,e){e=cx(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[hx(e[n++])];return n&&n==r?t:void 0}function yh(t,e,n){var r=t==null?void 0:fx(t,e);return r===void 0?n:r}function ii(t,e){if(e.length===0)return{};const n=Array.isArray(t)?t[e[0]]:t.items[e[0]];if(e.length===1)return n;const r=e.slice(1).map(i=>`children[${i}]`).join(".");return yh(n,r)}function ux(t,e={title:"信息图标题",desc:"信息图描述",items:"信息图的内容项",label:"项目标签文本",value:"项目数值内容",icon:"项目图标",illus:"项目插图",children:"子级项目(多层结构)"}){const{structure:n,items:r}=t,i=[],o=l=>" ".repeat(l);function s(l,c,f){const d=e[l];return d?`${o(f)}/** ${d} */
|
|
5
|
-
${o(f)}${l}: ${c};`:`${o(f)}${l}: ${c};`}function a(l,c){const f=r[l],
|
|
6
|
-
${
|
|
3
|
+
`||e[st]===" "||e[st]===" ");)st++;continue}if(r===",")return;if(r===")"){n.push({type:Y.ParenClose});continue}if(r==="+"){if(st--,Vr(e)){n.push(Yn(e));continue}return}if(r==="-"){if(st--,Vr(e)){n.push(Yn(e));continue}if(Lo(e)){n.push({type:Y.Ident,value:Gr(e)});continue}return}if(r==="."){if(st--,Vr(e)){n.push(Yn(e));continue}return}if(r==="/"){for(;st<e.length&&(e[st]===`
|
|
4
|
+
`||e[st]===" "||e[st]===" ");)st++;let i;if(Vr(e)&&(i=Yn(e),i.type!==Y.Hue)){n.push({type:Y.Alpha,value:i});continue}if(Lo(e)&&Gr(e)==="none"){n.push({type:Y.Alpha,value:{type:Y.None,value:void 0}});continue}return}if(/\d/.test(r)){st--,n.push(Yn(e));continue}if(Ho.test(r)){st--,n.push(_2(e));continue}return}return n}function b2(t){t._i=0;let e=t[t._i++];if(!e||e.type!==Y.Function||e.value!=="color"||(e=t[t._i++],e.type!==Y.Ident))return;const n=wc[e.value];if(!n)return;const r={mode:n},i=$c(t,!1);if(!i)return;const o=p2(n).channels;for(let s=0,a,l;s<o.length;s++)a=i[s],l=o[s],a.type!==Y.None&&(r[l]=a.type===Y.Number?a.value:a.value/100,l==="alpha"&&(r[l]=Math.max(0,Math.min(1,r[l]))));return r}function $c(t,e){const n=[];let r;for(;t._i<t.length;){if(r=t[t._i++],r.type===Y.None||r.type===Y.Number||r.type===Y.Alpha||r.type===Y.Percentage||e&&r.type===Y.Hue){n.push(r);continue}if(r.type===Y.ParenClose){if(t._i<t.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==Y.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:Y.None,value:void 0}),n.every(i=>i.type!==Y.Alpha)?n:void 0}}function v2(t,e){t._i=0;let n=t[t._i++];if(!n||n.type!==Y.Function)return;let r=$c(t,e);if(r)return r.unshift(n.value),r}const Ce=t=>{if(typeof t!="string")return;const e=x2(t),n=e?v2(e,!0):void 0;let r,i=0,o=Yr.length;for(;i<o;)if((r=Yr[i++](t,n))!==void 0)return r;return e?b2(e):void 0};function w2(t,e){if(!e||e[0]!=="rgb"&&e[0]!=="rgba")return;const n={mode:"rgb"},[,r,i,o,s]=e;if(!(r.type===Y.Hue||i.type===Y.Hue||o.type===Y.Hue))return r.type!==Y.None&&(n.r=r.type===Y.Number?r.value/255:r.value/100),i.type!==Y.None&&(n.g=i.type===Y.Number?i.value/255:i.value/100),o.type!==Y.None&&(n.b=o.type===Y.Number?o.value/255:o.value/100),s.type!==Y.None&&(n.alpha=Math.min(1,Math.max(0,s.type===Y.Number?s.value:s.value/100))),n}const $2=t=>t==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,P2=(t,e,n)=>t+n*(e-t),M2=t=>{let e=[];for(let n=0;n<t.length-1;n++){let r=t[n],i=t[n+1];r===void 0&&i===void 0?e.push(void 0):r!==void 0&&i!==void 0?e.push([r,i]):e.push(r!==void 0?[r,r]:[i,i])}return e},K=(t=>e=>{let n=M2(e);return r=>{let i=r*n.length,o=r>=1?n.length-1:Math.max(Math.floor(i),0),s=n[o];return s===void 0?void 0:t(s[0],s[1],i-o)}})(P2),Ft=t=>{let e=!1,n=t.map(r=>r!==void 0?(e=!0,r):1);return e?n:t},dn={mode:"rgb",channels:["r","g","b","alpha"],parse:[w2,a2,f2,o2,$2,"srgb"],serialize:"srgb",interpolate:{r:K,g:K,b:K,alpha:{use:K,fixup:Ft}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Ro=(t=0)=>Math.pow(Math.abs(t),563/256)*Math.sign(t),Pc=t=>{let e=Ro(t.r),n=Ro(t.g),r=Ro(t.b),i={mode:"xyz65",x:.5766690429101305*e+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*e+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*e+.0706888525358272*n+.9913375368376386*r};return t.alpha!==void 0&&(i.alpha=t.alpha),i},No=t=>Math.pow(Math.abs(t),256/563)*Math.sign(t),Mc=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"a98",r:No(t*2.0415879038107465-e*.5650069742788597-.3447313507783297*n),g:No(t*-.9692436362808798+e*1.8759675015077206+.0415550574071756*n),b:No(t*.0134442806320312-e*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},jo=(t=0)=>{const e=Math.abs(t);return e<=.04045?t/12.92:(Math.sign(t)||1)*Math.pow((e+.055)/1.055,2.4)},pn=({r:t,g:e,b:n,alpha:r})=>{let i={mode:"lrgb",r:jo(t),g:jo(e),b:jo(n)};return r!==void 0&&(i.alpha=r),i},qe=t=>{let{r:e,g:n,b:r,alpha:i}=pn(t),o={mode:"xyz65",x:.4123907992659593*e+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*e+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*e+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(o.alpha=i),o},Do=(t=0)=>{const e=Math.abs(t);return e>.0031308?(Math.sign(t)||1)*(1.055*Math.pow(e,1/2.4)-.055):t*12.92},gn=({r:t,g:e,b:n,alpha:r},i="rgb")=>{let o={mode:i,r:Do(t),g:Do(e),b:Do(n)};return r!==void 0&&(o.alpha=r),o},Ge=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=gn({r:t*3.2409699419045226-e*1.537383177570094-.4986107602930034*n,g:t*-.9692436362808796+e*1.8759675015077204+.0415550574071756*n,b:t*.0556300796969936-e*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i},O2=se(te({},dn),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:t=>Mc(qe(t)),xyz65:Mc},toMode:{rgb:t=>Ge(Pc(t)),xyz65:Pc}}),qt=t=>(t=t%360)<0?t+360:t,C2=(t,e)=>t.map((n,r,i)=>{if(n===void 0)return n;let o=qt(n);return r===0||t[r-1]===void 0?o:e(o-qt(i[r-1]))}).reduce((n,r)=>!n.length||r===void 0||n[n.length-1]===void 0?(n.push(r),n):(n.push(r+n[n.length-1]),n),[]),Se=t=>C2(t,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),Xt=[-.14861,1.78277,-.29227,-.90649,1.97294,0],S2=Math.PI/180,I2=180/Math.PI;let Oc=Xt[3]*Xt[4],Cc=Xt[1]*Xt[4],Sc=Xt[1]*Xt[2]-Xt[0]*Xt[3];const A2=({r:t,g:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(Sc*n+t*Oc-e*Cc)/(Sc+Oc-Cc),o=n-i,s=(Xt[4]*(e-i)-Xt[2]*o)/Xt[3],a={mode:"cubehelix",l:i,s:i===0||i===1?void 0:Math.sqrt(o*o+s*s)/(Xt[4]*i*(1-i))};return a.s&&(a.h=Math.atan2(s,o)*I2-120),r!==void 0&&(a.alpha=r),a},E2=({h:t,s:e,l:n,alpha:r})=>{let i={mode:"rgb"};t=(t===void 0?0:t+120)*S2,n===void 0&&(n=0);let o=e===void 0?0:e*n*(1-n),s=Math.cos(t),a=Math.sin(t);return i.r=n+o*(Xt[0]*s+Xt[1]*a),i.g=n+o*(Xt[2]*s+Xt[3]*a),i.b=n+o*(Xt[4]*s+Xt[5]*a),r!==void 0&&(i.alpha=r),i},Ur=(t,e)=>{if(t.h===void 0||e.h===void 0||!t.s||!e.s)return 0;let n=qt(t.h),r=qt(e.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.s*e.s)*i},k2=(t,e)=>{if(t.h===void 0||e.h===void 0)return 0;let n=qt(t.h),r=qt(e.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},Zr=(t,e)=>{if(t.h===void 0||e.h===void 0||!t.c||!e.c)return 0;let n=qt(t.h),r=qt(e.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.c*e.c)*i},Ie=t=>{let e=t.reduce((r,i)=>{if(i!==void 0){let o=i*Math.PI/180;r.sin+=Math.sin(o),r.cos+=Math.cos(o)}return r},{sin:0,cos:0}),n=Math.atan2(e.sin,e.cos)*180/Math.PI;return n<0?360+n:n},T2={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:A2},toMode:{rgb:E2},interpolate:{h:{use:K,fixup:Se},s:K,l:K,alpha:{use:K,fixup:Ft}},difference:{h:Ur},average:{h:Ie}},He=({l:t,a:e,b:n,alpha:r},i="lch")=>{e===void 0&&(e=0),n===void 0&&(n=0);let o=Math.sqrt(e*e+n*n),s={mode:i,l:t,c:o};return o&&(s.h=qt(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(s.alpha=r),s},Le=({l:t,c:e,h:n,alpha:r},i="lab")=>{n===void 0&&(n=0);let o={mode:i,l:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return r!==void 0&&(o.alpha=r),o},Ic=Math.pow(29,3)/Math.pow(3,3),Ac=Math.pow(6,3)/Math.pow(29,3),Bt={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},mn={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329};let Bo=t=>Math.pow(t,3)>Ac?Math.pow(t,3):(116*t-16)/Ic;const Ec=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(t+16)/116,o=e/500+i,s=i-n/200,a={mode:"xyz65",x:Bo(o)*mn.X,y:Bo(i)*mn.Y,z:Bo(s)*mn.Z};return r!==void 0&&(a.alpha=r),a},Qr=t=>Ge(Ec(t)),Fo=t=>t>Ac?Math.cbrt(t):(Ic*t+16)/116,kc=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Fo(t/mn.X),o=Fo(e/mn.Y),s=Fo(n/mn.Z),a={mode:"lab65",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},Kr=t=>{let e=kc(qe(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Jr=1,Tc=1,Vn=26/180*Math.PI,ti=Math.cos(Vn),ei=Math.sin(Vn),zc=100/Math.log(139/100),Wo=({l:t,c:e,h:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"lab65",l:(Math.exp(t*Jr/zc)-1)/.0039},o=(Math.exp(.0435*e*Tc*Jr)-1)/.075,s=o*Math.cos(n/180*Math.PI-Vn),a=o*Math.sin(n/180*Math.PI-Vn);return i.a=s*ti-a/.83*ei,i.b=s*ei+a/.83*ti,r!==void 0&&(i.alpha=r),i},Xo=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=e*ti+n*ei,o=.83*(n*ti-e*ei),s=Math.sqrt(i*i+o*o),a={mode:"dlch",l:zc/Jr*Math.log(1+.0039*t),c:Math.log(1+.075*s)/(.0435*Tc*Jr)};return a.c&&(a.h=qt((Math.atan2(o,i)+Vn)/Math.PI*180)),r!==void 0&&(a.alpha=r),a},Hc=t=>Wo(He(t,"dlch")),Lc=t=>Le(Xo(t),"dlab"),z2={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Hc,rgb:t=>Qr(Hc(t))},fromMode:{lab65:Lc,rgb:t=>Lc(Kr(t))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:K,a:K,b:K,alpha:{use:K,fixup:Ft}}},H2={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Wo,dlab:t=>Le(t,"dlab"),rgb:t=>Qr(Wo(t))},fromMode:{lab65:Xo,dlab:t=>He(t,"dlch"),rgb:t=>Xo(Kr(t))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:K,c:K,h:{use:K,fixup:Se},alpha:{use:K,fixup:Ft}},difference:{h:Zr},average:{h:Ie}};function L2({h:t,s:e,i:n,alpha:r}){t=qt(t!==void 0?t:0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.abs(t/60%2-1),o;switch(Math.floor(t/60)){case 0:o={r:n*(1+e*(3/(2-i)-1)),g:n*(1+e*(3*(1-i)/(2-i)-1)),b:n*(1-e)};break;case 1:o={r:n*(1+e*(3*(1-i)/(2-i)-1)),g:n*(1+e*(3/(2-i)-1)),b:n*(1-e)};break;case 2:o={r:n*(1-e),g:n*(1+e*(3/(2-i)-1)),b:n*(1+e*(3*(1-i)/(2-i)-1))};break;case 3:o={r:n*(1-e),g:n*(1+e*(3*(1-i)/(2-i)-1)),b:n*(1+e*(3/(2-i)-1))};break;case 4:o={r:n*(1+e*(3*(1-i)/(2-i)-1)),g:n*(1-e),b:n*(1+e*(3/(2-i)-1))};break;case 5:o={r:n*(1+e*(3/(2-i)-1)),g:n*(1-e),b:n*(1+e*(3*(1-i)/(2-i)-1))};break;default:o={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return o.mode="rgb",r!==void 0&&(o.alpha=r),o}function R2({r:t,g:e,b:n,alpha:r}){t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsi",s:t+e+n===0?0:1-3*o/(t+e+n),i:(t+e+n)/3};return i-o!==0&&(s.h=(i===t?(e-n)/(i-o)+(e<n)*6:i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const N2={mode:"hsi",toMode:{rgb:L2},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:R2},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:K,fixup:Se},s:K,i:K,alpha:{use:K,fixup:Ft}},difference:{h:Ur},average:{h:Ie}};function j2({h:t,s:e,l:n,alpha:r}){t=qt(t!==void 0?t:0),e===void 0&&(e=0),n===void 0&&(n=0);let i=n+e*(n<.5?n:1-n),o=i-(i-n)*2*Math.abs(t/60%2-1),s;switch(Math.floor(t/60)){case 0:s={r:i,g:o,b:2*n-i};break;case 1:s={r:o,g:i,b:2*n-i};break;case 2:s={r:2*n-i,g:i,b:o};break;case 3:s={r:2*n-i,g:o,b:i};break;case 4:s={r:o,g:2*n-i,b:i};break;case 5:s={r:i,g:2*n-i,b:o};break;default:s={r:2*n-i,g:2*n-i,b:2*n-i}}return s.mode="rgb",r!==void 0&&(s.alpha=r),s}function D2({r:t,g:e,b:n,alpha:r}){t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsl",s:i===o?0:(i-o)/(1-Math.abs(i+o-1)),l:.5*(i+o)};return i-o!==0&&(s.h=(i===t?(e-n)/(i-o)+(e<n)*6:i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const B2=(t,e)=>{switch(e){case"deg":return+t;case"rad":return t/Math.PI*180;case"grad":return t/10*9;case"turn":return t*360}},F2=new RegExp(`^hsla?\\(\\s*${l2}${un}${Xn}${un}${Xn}\\s*(?:,\\s*${To}\\s*)?\\)$`),W2=t=>{let e=t.match(F2);if(!e)return;let n={mode:"hsl"};return e[3]!==void 0?n.h=+e[3]:e[1]!==void 0&&e[2]!==void 0&&(n.h=B2(e[1],e[2])),e[4]!==void 0&&(n.s=Math.min(Math.max(0,e[4]/100),1)),e[5]!==void 0&&(n.l=Math.min(Math.max(0,e[5]/100),1)),e[6]!==void 0?n.alpha=Math.max(0,Math.min(1,e[6]/100)):e[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+e[7]))),n};function X2(t,e){if(!e||e[0]!=="hsl"&&e[0]!=="hsla")return;const n={mode:"hsl"},[,r,i,o,s]=e;if(r.type!==Y.None){if(r.type===Y.Percentage)return;n.h=r.value}if(i.type!==Y.None){if(i.type===Y.Hue)return;n.s=i.value/100}if(o.type!==Y.None){if(o.type===Y.Hue)return;n.l=o.value/100}return s.type!==Y.None&&(n.alpha=Math.min(1,Math.max(0,s.type===Y.Number?s.value:s.value/100))),n}const Rc={mode:"hsl",toMode:{rgb:j2},fromMode:{rgb:D2},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[X2,W2],serialize:t=>`hsl(${t.h!==void 0?t.h:"none"} ${t.s!==void 0?t.s*100+"%":"none"} ${t.l!==void 0?t.l*100+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:K,fixup:Se},s:K,l:K,alpha:{use:K,fixup:Ft}},difference:{h:Ur},average:{h:Ie}};function Nc({h:t,s:e,v:n,alpha:r}){t=qt(t!==void 0?t:0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.abs(t/60%2-1),o;switch(Math.floor(t/60)){case 0:o={r:n,g:n*(1-e*i),b:n*(1-e)};break;case 1:o={r:n*(1-e*i),g:n,b:n*(1-e)};break;case 2:o={r:n*(1-e),g:n,b:n*(1-e*i)};break;case 3:o={r:n*(1-e),g:n*(1-e*i),b:n};break;case 4:o={r:n*(1-e*i),g:n*(1-e),b:n};break;case 5:o={r:n,g:n*(1-e),b:n*(1-e*i)};break;default:o={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return o.mode="rgb",r!==void 0&&(o.alpha=r),o}function jc({r:t,g:e,b:n,alpha:r}){t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsv",s:i===0?0:1-o/i,v:i};return i-o!==0&&(s.h=(i===t?(e-n)/(i-o)+(e<n)*6:i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const Dc={mode:"hsv",toMode:{rgb:Nc},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:jc},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:K,fixup:Se},s:K,v:K,alpha:{use:K,fixup:Ft}},difference:{h:Ur},average:{h:Ie}};function Y2({h:t,w:e,b:n,alpha:r}){if(e===void 0&&(e=0),n===void 0&&(n=0),e+n>1){let i=e+n;e/=i,n/=i}return Nc({h:t,s:n===1?1:1-e/(1-n),v:1-n,alpha:r})}function V2(t){let e=jc(t);if(e===void 0)return;let n=e.s!==void 0?e.s:0,r=e.v!==void 0?e.v:0,i={mode:"hwb",w:(1-n)*r,b:1-r};return e.h!==void 0&&(i.h=e.h),e.alpha!==void 0&&(i.alpha=e.alpha),i}function q2(t,e){if(!e||e[0]!=="hwb")return;const n={mode:"hwb"},[,r,i,o,s]=e;if(r.type!==Y.None){if(r.type===Y.Percentage)return;n.h=r.value}if(i.type!==Y.None){if(i.type===Y.Hue)return;n.w=i.value/100}if(o.type!==Y.None){if(o.type===Y.Hue)return;n.b=o.value/100}return s.type!==Y.None&&(n.alpha=Math.min(1,Math.max(0,s.type===Y.Number?s.value:s.value/100))),n}const G2={mode:"hwb",toMode:{rgb:Y2},fromMode:{rgb:V2},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[q2],serialize:t=>`hwb(${t.h!==void 0?t.h:"none"} ${t.w!==void 0?t.w*100+"%":"none"} ${t.b!==void 0?t.b*100+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:K,fixup:Se},w:K,b:K,alpha:{use:K,fixup:Ft}},difference:{h:k2},average:{h:Ie}},Bc=203,ni=.1593017578125,Fc=78.84375,ri=.8359375,ii=18.8515625,oi=18.6875;function Yo(t){if(t<0)return 0;const e=Math.pow(t,1/Fc);return 1e4*Math.pow(Math.max(0,e-ri)/(ii-oi*e),1/ni)}function Vo(t){if(t<0)return 0;const e=Math.pow(t/1e4,ni);return Math.pow((ri+ii*e)/(1+oi*e),Fc)}const qo=t=>Math.max(t/Bc,0),Wc=({i:t,t:e,p:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i=Yo(t+.008609037037932761*e+.11102962500302593*n),o=Yo(t-.00860903703793275*e-.11102962500302599*n),s=Yo(t+.5600313357106791*e-.32062717498731885*n),a={mode:"xyz65",x:qo(2.070152218389422*i-1.3263473389671556*o+.2066510476294051*s),y:qo(.3647385209748074*i+.680566024947227*o-.0453045459220346*s),z:qo(-.049747207535812*i-.0492609666966138*o+1.1880659249923042*s)};return r!==void 0&&(a.alpha=r),a},Go=(t=0)=>Math.max(t*Bc,0),Xc=({x:t,y:e,z:n,alpha:r})=>{const i=Go(t),o=Go(e),s=Go(n),a=Vo(.3592832590121217*i+.6976051147779502*o-.0358915932320289*s),l=Vo(-.1920808463704995*i+1.1004767970374323*o+.0753748658519118*s),c=Vo(.0070797844607477*i+.0748396662186366*o+.8433265453898765*s),f=.5*a+.5*l,u=1.61376953125*a-3.323486328125*l+1.709716796875*c,d=4.378173828125*a-4.24560546875*l-.132568359375*c,p={mode:"itp",i:f,t:u,p:d};return r!==void 0&&(p.alpha=r),p},U2={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Wc,rgb:t=>Ge(Wc(t))},fromMode:{xyz65:Xc,rgb:t=>Xc(qe(t))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:K,t:K,p:K,alpha:{use:K,fixup:Ft}}},Z2=134.03437499999998,Q2=16295499532821565e-27,Uo=t=>{if(t<0)return 0;let e=Math.pow(t/1e4,ni);return Math.pow((ri+ii*e)/(1+oi*e),Z2)},Zo=(t=0)=>Math.max(t*203,0),Yc=({x:t,y:e,z:n,alpha:r})=>{t=Zo(t),e=Zo(e),n=Zo(n);let i=1.15*t-.15*n,o=.66*e+.34*t,s=Uo(.41478972*i+.579999*o+.014648*n),a=Uo(-.20151*i+1.120649*o+.0531008*n),l=Uo(-.0166008*i+.2648*o+.6684799*n),c=(s+a)/2,f={mode:"jab",j:.44*c/(1-.56*c)-Q2,a:3.524*s-4.066708*a+.542708*l,b:.199076*s+1.096799*a-1.295875*l};return r!==void 0&&(f.alpha=r),f},K2=134.03437499999998,Vc=16295499532821565e-27,Qo=t=>{if(t<0)return 0;let e=Math.pow(t,1/K2);return 1e4*Math.pow((ri-e)/(oi*e-ii),1/ni)},Ko=t=>t/203,qc=({j:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(t+Vc)/(.44+.56*(t+Vc)),o=Qo(i+.13860504*e+.058047316*n),s=Qo(i-.13860504*e-.058047316*n),a=Qo(i-.096019242*e-.8118919*n),l={mode:"xyz65",x:Ko(1.661373024652174*o-.914523081304348*s+.23136208173913045*a),y:Ko(-.3250758611844533*o+1.571847026732543*s-.21825383453227928*a),z:Ko(-.090982811*o-.31272829*s+1.5227666*a)};return r!==void 0&&(l.alpha=r),l},Gc=t=>{let e=Yc(qe(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Uc=t=>Ge(qc(t)),J2={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Gc,xyz65:Yc},toMode:{rgb:Uc,xyz65:qc},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:K,a:K,b:K,alpha:{use:K,fixup:Ft}}},Zc=({j:t,a:e,b:n,alpha:r})=>{e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.sqrt(e*e+n*n),o={mode:"jch",j:t,c:i};return i&&(o.h=qt(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},Qc=({j:t,c:e,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:"jab",j:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},ty={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Qc,rgb:t=>Uc(Qc(t))},fromMode:{rgb:t=>Zc(Gc(t)),jab:Zc},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:K,fixup:Se},c:K,j:K,alpha:{use:K,fixup:Ft}},difference:{h:Zr},average:{h:Ie}},si=Math.pow(29,3)/Math.pow(3,3),Jo=Math.pow(6,3)/Math.pow(29,3);let ts=t=>Math.pow(t,3)>Jo?Math.pow(t,3):(116*t-16)/si;const es=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(t+16)/116,o=e/500+i,s=i-n/200,a={mode:"xyz50",x:ts(o)*Bt.X,y:ts(i)*Bt.Y,z:ts(s)*Bt.Z};return r!==void 0&&(a.alpha=r),a},qn=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=gn({r:t*3.1341359569958707-e*1.6173863321612538-.4906619460083532*n,g:t*-.978795502912089+e*1.916254567259524+.03344273116131949*n,b:t*.07195537988411677-e*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i},Kc=t=>qn(es(t)),Gn=t=>{let{r:e,g:n,b:r,alpha:i}=pn(t),o={mode:"xyz50",x:.436065742824811*e+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*e+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*e+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(o.alpha=i),o},ns=t=>t>Jo?Math.cbrt(t):(si*t+16)/116,rs=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=ns(t/Bt.X),o=ns(e/Bt.Y),s=ns(n/Bt.Z),a={mode:"lab",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},Jc=t=>{let e=rs(Gn(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e};function ey(t,e){if(!e||e[0]!=="lab")return;const n={mode:"lab"},[,r,i,o,s]=e;if(!(r.type===Y.Hue||i.type===Y.Hue||o.type===Y.Hue))return r.type!==Y.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==Y.None&&(n.a=i.type===Y.Number?i.value:i.value*125/100),o.type!==Y.None&&(n.b=o.type===Y.Number?o.value:o.value*125/100),s.type!==Y.None&&(n.alpha=Math.min(1,Math.max(0,s.type===Y.Number?s.value:s.value/100))),n}const is={mode:"lab",toMode:{xyz50:es,rgb:Kc},fromMode:{xyz50:rs,rgb:Jc},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[ey],serialize:t=>`lab(${t.l!==void 0?t.l:"none"} ${t.a!==void 0?t.a:"none"} ${t.b!==void 0?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{l:K,a:K,b:K,alpha:{use:K,fixup:Ft}}},ny=se(te({},is),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Ec,rgb:Qr},fromMode:{xyz65:kc,rgb:Kr},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}});function ry(t,e){if(!e||e[0]!=="lch")return;const n={mode:"lch"},[,r,i,o,s]=e;if(r.type!==Y.None){if(r.type===Y.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==Y.None&&(n.c=Math.max(0,i.type===Y.Number?i.value:i.value*150/100)),o.type!==Y.None){if(o.type===Y.Percentage)return;n.h=o.value}return s.type!==Y.None&&(n.alpha=Math.min(1,Math.max(0,s.type===Y.Number?s.value:s.value/100))),n}const os={mode:"lch",toMode:{lab:Le,rgb:t=>Kc(Le(t))},fromMode:{rgb:t=>He(Jc(t)),lab:He},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[ry],serialize:t=>`lch(${t.l!==void 0?t.l:"none"} ${t.c!==void 0?t.c:"none"} ${t.h!==void 0?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:K,fixup:Se},c:K,l:K,alpha:{use:K,fixup:Ft}},difference:{h:Zr},average:{h:Ie}},iy=se(te({},os),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:t=>Le(t,"lab65"),rgb:t=>Qr(Le(t,"lab65"))},fromMode:{rgb:t=>He(Kr(t),"lch65"),lab65:t=>He(t,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),th=({l:t,u:e,v:n,alpha:r})=>{e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.sqrt(e*e+n*n),o={mode:"lchuv",l:t,c:i};return i&&(o.h=qt(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},eh=({l:t,c:e,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:"luv",l:t,u:e?e*Math.cos(n/180*Math.PI):0,v:e?e*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},nh=(t,e,n)=>4*t/(t+15*e+3*n),rh=(t,e,n)=>9*e/(t+15*e+3*n),oy=nh(Bt.X,Bt.Y,Bt.Z),sy=rh(Bt.X,Bt.Y,Bt.Z),ay=t=>t<=Jo?si*t:116*Math.cbrt(t)-16,ss=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=ay(e/Bt.Y),o=nh(t,e,n),s=rh(t,e,n);!isFinite(o)||!isFinite(s)?i=o=s=0:(o=13*i*(o-oy),s=13*i*(s-sy));let a={mode:"luv",l:i,u:o,v:s};return r!==void 0&&(a.alpha=r),a},ly=(t,e,n)=>4*t/(t+15*e+3*n),cy=(t,e,n)=>9*e/(t+15*e+3*n),hy=ly(Bt.X,Bt.Y,Bt.Z),fy=cy(Bt.X,Bt.Y,Bt.Z),as=({l:t,u:e,v:n,alpha:r})=>{if(t===void 0&&(t=0),t===0)return{mode:"xyz50",x:0,y:0,z:0};e===void 0&&(e=0),n===void 0&&(n=0);let i=e/(13*t)+hy,o=n/(13*t)+fy,s=Bt.Y*(t<=8?t/si:Math.pow((t+16)/116,3)),a=s*(9*i)/(4*o),l=s*(12-3*i-20*o)/(4*o),c={mode:"xyz50",x:a,y:s,z:l};return r!==void 0&&(c.alpha=r),c},uy={mode:"lchuv",toMode:{luv:eh,rgb:t=>qn(as(eh(t)))},fromMode:{rgb:t=>th(ss(Gn(t))),luv:th},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:K,fixup:Se},c:K,l:K,alpha:{use:K,fixup:Ft}},difference:{h:Zr},average:{h:Ie}},dy=se(te({},dn),{mode:"lrgb",toMode:{rgb:gn},fromMode:{rgb:pn},parse:["srgb-linear"],serialize:"srgb-linear"}),py={mode:"luv",toMode:{xyz50:as,rgb:t=>qn(as(t))},fromMode:{xyz50:ss,rgb:t=>ss(Gn(t))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:K,u:K,v:K,alpha:{use:K,fixup:Ft}}},ih=({r:t,g:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*t+.5363325372617348*e+.0514459932675022*n),o=Math.cbrt(.2119034958178252*t+.6806995506452344*e+.1073969535369406*n),s=Math.cbrt(.0883024591900564*t+.2817188391361215*e+.6299787016738222*n),a={mode:"oklab",l:.210454268309314*i+.7936177747023054*o-.0040720430116193*s,a:1.9779985324311684*i-2.42859224204858*o+.450593709617411*s,b:.0259040424655478*i+.7827717124575296*o-.8086757549230774*s};return r!==void 0&&(a.alpha=r),a},ai=t=>{let e=ih(pn(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Un=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.pow(t+.3963377773761749*e+.2158037573099136*n,3),o=Math.pow(t-.1055613458156586*e-.0638541728258133*n,3),s=Math.pow(t-.0894841775298119*e-1.2914855480194092*n,3),a={mode:"lrgb",r:4.076741636075957*i-3.3077115392580616*o+.2309699031821044*s,g:-1.2684379732850317*i+2.6097573492876887*o-.3413193760026573*s,b:-.0041960761386756*i-.7034186179359362*o+1.7076146940746117*s};return r!==void 0&&(a.alpha=r),a},li=t=>gn(Un(t));function ls(t){const r=1.170873786407767;return .5*(r*t-.206+Math.sqrt((r*t-.206)*(r*t-.206)+4*.03*r*t))}function ci(t){return(t*t+.206*t)/(1.170873786407767*(t+.03))}function gy(t,e){let n,r,i,o,s,a,l,c;-1.88170328*t-.80936493*e>1?(n=1.19086277,r=1.76576728,i=.59662641,o=.75515197,s=.56771245,a=4.0767416621,l=-3.3077115913,c=.2309699292):1.81444104*t-1.19445276*e>1?(n=.73956515,r=-.45954404,i=.08285427,o=.1254107,s=.14503204,a=-1.2684380046,l=2.6097574011,c=-.3413193965):(n=1.35733652,r=-.00915799,i=-1.1513021,o=-.50559606,s=.00692167,a=-.0041960863,l=-.7034186147,c=1.707614701);let f=n+r*t+i*e+o*t*t+s*t*e,u=.3963377774*t+.2158037573*e,d=-.1055613458*t-.0638541728*e,p=-.0894841775*t-1.291485548*e;{let g=1+f*u,m=1+f*d,y=1+f*p,x=g*g*g,_=m*m*m,b=y*y*y,v=3*u*g*g,P=3*d*m*m,w=3*p*y*y,$=6*u*u*g,M=6*d*d*m,I=6*p*p*y,S=a*x+l*_+c*b,C=a*v+l*P+c*w,E=a*$+l*M+c*I;f=f-S*C/(C*C-.5*S*E)}return f}function cs(t,e){let n=gy(t,e),r=Un({l:1,a:n*t,b:n*e}),i=Math.cbrt(1/Math.max(r.r,r.g,r.b)),o=i*n;return[i,o]}function my(t,e,n,r,i,o=null){o||(o=cs(t,e));let s;if((n-i)*o[1]-(o[0]-i)*r<=0)s=o[1]*i/(r*o[0]+o[1]*(i-n));else{s=o[1]*(i-1)/(r*(o[0]-1)+o[1]*(i-n));{let a=n-i,l=r,c=.3963377774*t+.2158037573*e,f=-.1055613458*t-.0638541728*e,u=-.0894841775*t-1.291485548*e,d=a+l*c,p=a+l*f,g=a+l*u;{let m=i*(1-s)+s*n,y=s*r,x=m+y*c,_=m+y*f,b=m+y*u,v=x*x*x,P=_*_*_,w=b*b*b,$=3*d*x*x,M=3*p*_*_,I=3*g*b*b,S=6*d*d*x,C=6*p*p*_,E=6*g*g*b,A=4.0767416621*v-3.3077115913*P+.2309699292*w-1,R=4.0767416621*$-3.3077115913*M+.2309699292*I,D=4.0767416621*S-3.3077115913*C+.2309699292*E,k=R/(R*R-.5*A*D),j=-A*k,L=-1.2684380046*v+2.6097574011*P-.3413193965*w-1,H=-1.2684380046*$+2.6097574011*M-.3413193965*I,N=-1.2684380046*S+2.6097574011*C-.3413193965*E,B=H/(H*H-.5*L*N),X=-L*B,T=-.0041960863*v-.7034186147*P+1.707614701*w-1,J=-.0041960863*$-.7034186147*M+1.707614701*I,Q=-.0041960863*S-.7034186147*C+1.707614701*E,nt=J/(J*J-.5*T*Q),V=-T*nt;j=k>=0?j:1e6,X=B>=0?X:1e6,V=nt>=0?V:1e6,s+=Math.min(j,Math.min(X,V))}}}return s}function hs(t,e,n=null){n||(n=cs(t,e));let r=n[0],i=n[1];return[i/r,i/(1-r)]}function oh(t,e,n){let r=cs(e,n),i=my(e,n,t,1,t,r),o=hs(e,n,r),s=.11516993+1/(7.4477897+4.1590124*n+e*(-2.19557347+1.75198401*n+e*(-2.13704948-10.02301043*n+e*(-4.24894561+5.38770819*n+4.69891013*e)))),a=.11239642+1/(1.6132032-.68124379*n+e*(.40370612+.90148123*n+e*(-.27087943+.6122399*n+e*(.00299215-.45399568*n-.14661872*e)))),l=i/Math.min(t*o[0],(1-t)*o[1]),c=t*s,f=(1-t)*a,u=.9*l*Math.sqrt(Math.sqrt(1/(1/(c*c*c*c)+1/(f*f*f*f))));return c=t*.4,f=(1-t)*.8,[Math.sqrt(1/(1/(c*c)+1/(f*f))),u,i]}function sh(t){const e=t.l!==void 0?t.l:0,n=t.a!==void 0?t.a:0,r=t.b!==void 0?t.b:0,i={mode:"okhsl",l:ls(e)};t.alpha!==void 0&&(i.alpha=t.alpha);let o=Math.sqrt(n*n+r*r);if(!o)return i.s=0,i;let[s,a,l]=oh(e,n/o,r/o),c;if(o<a){let f=0,u=.8*s,d=1-u/a;c=(o-f)/(u+d*(o-f))*.8}else{let f=a,u=.2*a*a*1.25*1.25/s,d=1-u/(l-a);c=.8+.2*((o-f)/(u+d*(o-f)))}return c&&(i.s=c,i.h=qt(Math.atan2(r,n)*180/Math.PI)),i}function ah(t){let e=t.h!==void 0?t.h:0,n=t.s!==void 0?t.s:0,r=t.l!==void 0?t.l:0;const i={mode:"oklab",l:ci(r)};if(t.alpha!==void 0&&(i.alpha=t.alpha),!n||r===1)return i.a=i.b=0,i;let o=Math.cos(e/180*Math.PI),s=Math.sin(e/180*Math.PI),[a,l,c]=oh(i.l,o,s),f,u,d,p;n<.8?(f=1.25*n,u=0,d=.8*a,p=1-d/l):(f=5*(n-.8),u=l,d=.2*l*l*1.25*1.25/a,p=1-d/(c-l));let g=u+f*d/(1-p*f);return i.a=g*o,i.b=g*s,i}const yy=se(te({},Rc),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:sh,rgb:t=>sh(ai(t))},toMode:{oklab:ah,rgb:t=>li(ah(t))}});function lh(t){let e=t.l!==void 0?t.l:0,n=t.a!==void 0?t.a:0,r=t.b!==void 0?t.b:0,i=Math.sqrt(n*n+r*r),o=i?n/i:1,s=i?r/i:1,[a,l]=hs(o,s),c=.5,f=1-c/a,u=l/(i+e*l),d=u*e,p=u*i,g=ci(d),m=p*g/d,y=Un({l:g,a:o*m,b:s*m}),x=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));e=e/x,i=i/x*ls(e)/e,e=ls(e);const _={mode:"okhsv",s:i?(c+l)*p/(l*c+l*f*p):0,v:e?e/d:0};return _.s&&(_.h=qt(Math.atan2(r,n)*180/Math.PI)),t.alpha!==void 0&&(_.alpha=t.alpha),_}function ch(t){const e={mode:"oklab"};t.alpha!==void 0&&(e.alpha=t.alpha);const n=t.h!==void 0?t.h:0,r=t.s!==void 0?t.s:0,i=t.v!==void 0?t.v:0,o=Math.cos(n/180*Math.PI),s=Math.sin(n/180*Math.PI),[a,l]=hs(o,s),c=.5,f=1-c/a,u=1-r*c/(c+l-l*f*r),d=r*l*c/(c+l-l*f*r),p=ci(u),g=d*p/u,m=Un({l:p,a:o*g,b:s*g}),y=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),x=ci(i*u),_=d*x/u;return e.l=x*y,e.a=_*o*y,e.b=_*s*y,e}const _y=se(te({},Dc),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:lh,rgb:t=>lh(ai(t))},toMode:{oklab:ch,rgb:t=>li(ch(t))}});function xy(t,e){if(!e||e[0]!=="oklab")return;const n={mode:"oklab"},[,r,i,o,s]=e;if(!(r.type===Y.Hue||i.type===Y.Hue||o.type===Y.Hue))return r.type!==Y.None&&(n.l=Math.min(Math.max(0,r.type===Y.Number?r.value:r.value/100),1)),i.type!==Y.None&&(n.a=i.type===Y.Number?i.value:i.value*.4/100),o.type!==Y.None&&(n.b=o.type===Y.Number?o.value:o.value*.4/100),s.type!==Y.None&&(n.alpha=Math.min(1,Math.max(0,s.type===Y.Number?s.value:s.value/100))),n}const by=se(te({},is),{mode:"oklab",toMode:{lrgb:Un,rgb:li},fromMode:{lrgb:ih,rgb:ai},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[xy],serialize:t=>`oklab(${t.l!==void 0?t.l:"none"} ${t.a!==void 0?t.a:"none"} ${t.b!==void 0?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`});function vy(t,e){if(!e||e[0]!=="oklch")return;const n={mode:"oklch"},[,r,i,o,s]=e;if(r.type!==Y.None){if(r.type===Y.Hue)return;n.l=Math.min(Math.max(0,r.type===Y.Number?r.value:r.value/100),1)}if(i.type!==Y.None&&(n.c=Math.max(0,i.type===Y.Number?i.value:i.value*.4/100)),o.type!==Y.None){if(o.type===Y.Percentage)return;n.h=o.value}return s.type!==Y.None&&(n.alpha=Math.min(1,Math.max(0,s.type===Y.Number?s.value:s.value/100))),n}const hh=se(te({},os),{mode:"oklch",toMode:{oklab:t=>Le(t,"oklab"),rgb:t=>li(Le(t,"oklab"))},fromMode:{rgb:t=>He(ai(t),"oklch"),oklab:t=>He(t,"oklch")},parse:[vy],serialize:t=>`oklch(${t.l!==void 0?t.l:"none"} ${t.c!==void 0?t.c:"none"} ${t.h!==void 0?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),fh=t=>{let{r:e,g:n,b:r,alpha:i}=pn(t),o={mode:"xyz65",x:.486570948648216*e+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*e+.6917385218365062*n+.079286914093745*r,z:0*e+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(o.alpha=i),o},uh=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=gn({r:t*2.4934969119414263-e*.9313836179191242-.402710784450717*n,g:t*-.8294889695615749+e*1.7626640603183465+.0236246858419436*n,b:t*.0358458302437845-e*.0761723892680418+.9568845240076871*n},"p3");return r!==void 0&&(i.alpha=r),i},wy=se(te({},dn),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:t=>uh(qe(t)),xyz65:uh},toMode:{rgb:t=>Ge(fh(t)),xyz65:fh}}),fs=t=>{let e=Math.abs(t);return e>=1/512?Math.sign(t)*Math.pow(e,1/1.8):16*t},dh=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"prophoto",r:fs(t*1.3457868816471585-e*.2555720873797946-.0511018649755453*n),g:fs(t*-.5446307051249019+e*1.5082477428451466+.0205274474364214*n),b:fs(t*0+e*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},us=(t=0)=>{let e=Math.abs(t);return e>=16/512?Math.sign(t)*Math.pow(e,1.8):t/16},ph=t=>{let e=us(t.r),n=us(t.g),r=us(t.b),i={mode:"xyz50",x:.7977666449006423*e+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*e+.7118352342418731*n+899369387256e-16*r,z:0*e+0*n+.8251046025104602*r};return t.alpha!==void 0&&(i.alpha=t.alpha),i},$y=se(te({},dn),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:dh,rgb:t=>dh(Gn(t))},toMode:{xyz50:ph,rgb:t=>qn(ph(t))}}),gh=1.09929682680944,Py=.018053968510807,ds=t=>{const e=Math.abs(t);return e>Py?(Math.sign(t)||1)*(gh*Math.pow(e,.45)-(gh-1)):4.5*t},mh=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"rec2020",r:ds(t*1.7166511879712683-e*.3556707837763925-.2533662813736599*n),g:ds(t*-.6666843518324893+e*1.6164812366349395+.0157685458139111*n),b:ds(t*.0176398574453108-e*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},yh=1.09929682680944,My=.018053968510807,ps=(t=0)=>{let e=Math.abs(t);return e<My*4.5?t/4.5:(Math.sign(t)||1)*Math.pow((e+yh-1)/yh,1/.45)},_h=t=>{let e=ps(t.r),n=ps(t.g),r=ps(t.b),i={mode:"xyz65",x:.6369580483012911*e+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*e+.6779980715188708*n+.059301716469862*r,z:0*e+.0280726930490874*n+1.0609850577107909*r};return t.alpha!==void 0&&(i.alpha=t.alpha),i},Oy=se(te({},dn),{mode:"rec2020",fromMode:{xyz65:mh,rgb:t=>mh(qe(t))},toMode:{xyz65:_h,rgb:t=>Ge(_h(t))},parse:["rec2020"],serialize:"rec2020"}),Ue=.0037930732552754493,xh=Math.cbrt(Ue),gs=t=>Math.cbrt(t)-xh,Cy=t=>{const{r:e,g:n,b:r,alpha:i}=pn(t),o=gs(.3*e+.622*n+.078*r+Ue),s=gs(.23*e+.692*n+.078*r+Ue),a=gs(.2434226892454782*e+.2047674442449682*n+.5518098665095535*r+Ue),l={mode:"xyb",x:(o-s)/2,y:(o+s)/2,b:a-(o+s)/2};return i!==void 0&&(l.alpha=i),l},ms=t=>Math.pow(t+xh,3),Sy={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:({x:t,y:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i=ms(t+e)-Ue,o=ms(e-t)-Ue,s=ms(n+e)-Ue,a=gn({r:11.031566904639861*i-9.866943908131562*o-.16462299650829934*s,g:-3.2541473810744237*i+4.418770377582723*o-.16462299650829934*s,b:-3.6588512867136815*i+2.7129230459360922*o+1.9459282407775895*s});return r!==void 0&&(a.alpha=r),a}},fromMode:{rgb:Cy},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:K,y:K,b:K,alpha:{use:K,fixup:Ft}}},Iy={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:qn,lab:rs},fromMode:{rgb:Gn,lab:es},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:K,y:K,z:K,alpha:{use:K,fixup:Ft}}},Ay={mode:"xyz65",toMode:{rgb:Ge,xyz50:t=>{let{x:e,y:n,z:r,alpha:i}=t;e===void 0&&(e=0),n===void 0&&(n=0),r===void 0&&(r=0);let o={mode:"xyz50",x:1.0479298208405488*e+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*e+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*e+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(o.alpha=i),o}},fromMode:{rgb:qe,xyz50:t=>{let{x:e,y:n,z:r,alpha:i}=t;e===void 0&&(e=0),n===void 0&&(n=0),r===void 0&&(r=0);let o={mode:"xyz65",x:.9554734527042182*e-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*e+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*e-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(o.alpha=i),o}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:K,y:K,z:K,alpha:{use:K,fixup:Ft}}},Ey={mode:"yiq",toMode:{rgb:({y:t,i:e,q:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i={mode:"rgb",r:t+.95608445*e+.6208885*n,g:t-.27137664*e-.6486059*n,b:t-1.10561724*e+1.70250126*n};return r!==void 0&&(i.alpha=r),i}},fromMode:{rgb:({r:t,g:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i={mode:"yiq",y:.29889531*t+.58662247*e+.11448223*n,i:.59597799*t-.2741761*e-.32180189*n,q:.21147017*t-.52261711*e+.31114694*n};return r!==void 0&&(i.alpha=r),i}},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:K,i:K,q:K,alpha:{use:K,fixup:Ft}}},ky=t=>Math.max(0,Math.min(1,t||0)),hi=t=>Math.round(ky(t)*255),bh=zo("rgb"),vh=t=>{if(t===void 0)return;let e=hi(t.r),n=hi(t.g),r=hi(t.b);return"#"+(1<<24|e<<16|n<<8|r).toString(16).slice(1)},Ty=t=>{if(t===void 0)return;let e=hi(t.alpha!==void 0?t.alpha:1);return vh(t)+(256|e).toString(16).slice(1)},Zn=t=>vh(bh(t)),zy=t=>Ty(bh(t));function ys(t){let e=zo("lrgb")(t);return .2126*e.r+.7152*e.g+.0722*e.b}function _s(t,e){let n=ys(t),r=ys(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}bt(O2),bt(T2),bt(z2),bt(H2),bt(N2),bt(Rc),bt(Dc),bt(G2),bt(U2),bt(J2),bt(ty),bt(is),bt(ny),bt(os),bt(iy),bt(uy),bt(dy),bt(py),bt(yy),bt(_y),bt(by);const wh=bt(hh);bt(wy),bt($y),bt(Oy),bt(dn),bt(Sy),bt(Iy),bt(Ay),bt(Ey);function Qn(t){if(!t)return!1;const e=t.trim().toLowerCase();return!(e==="none"||e==="transparent"||e==="")}function $h(t){const e=Ce(t);return e?ys(e)<.5:!1}var yn=Array.isArray,Ph=typeof global=="object"&&global&&global.Object===Object&&global,Hy=typeof self=="object"&&self&&self.Object===Object&&self,_n=Ph||Hy||Function("return this")(),xn=_n.Symbol,Mh=Object.prototype,Ly=Mh.hasOwnProperty,Ry=Mh.toString,Kn=xn?xn.toStringTag:void 0;function Ny(t){var e=Ly.call(t,Kn),n=t[Kn];try{t[Kn]=void 0;var r=!0}catch(o){}var i=Ry.call(t);return r&&(e?t[Kn]=n:delete t[Kn]),i}var jy=Object.prototype,Dy=jy.toString;function By(t){return Dy.call(t)}var Fy="[object Null]",Wy="[object Undefined]",Oh=xn?xn.toStringTag:void 0;function Jn(t){return t==null?t===void 0?Wy:Fy:Oh&&Oh in Object(t)?Ny(t):By(t)}function bn(t){return t!=null&&typeof t=="object"}var Xy="[object Symbol]";function xs(t){return typeof t=="symbol"||bn(t)&&Jn(t)==Xy}var Yy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vy=/^\w*$/;function qy(t,e){if(yn(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||xs(t)?!0:Vy.test(t)||!Yy.test(t)||e!=null&&t in Object(e)}function Ze(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Gy="[object AsyncFunction]",Uy="[object Function]",Zy="[object GeneratorFunction]",Qy="[object Proxy]";function bs(t){if(!Ze(t))return!1;var e=Jn(t);return e==Uy||e==Zy||e==Gy||e==Qy}var vs=_n["__core-js_shared__"],Ch=(function(){var t=/[^.]+$/.exec(vs&&vs.keys&&vs.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Ky(t){return!!Ch&&Ch in t}var Jy=Function.prototype,t_=Jy.toString;function e_(t){if(t!=null){try{return t_.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var n_=/[\\^$.*+?()[\]{}|]/g,r_=/^\[object .+?Constructor\]$/,i_=Function.prototype,o_=Object.prototype,s_=i_.toString,a_=o_.hasOwnProperty,l_=RegExp("^"+s_.call(a_).replace(n_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c_(t){if(!Ze(t)||Ky(t))return!1;var e=bs(t)?l_:r_;return e.test(e_(t))}function h_(t,e){return t==null?void 0:t[e]}function ws(t,e){var n=h_(t,e);return c_(n)?n:void 0}var tr=ws(Object,"create");function f_(){this.__data__=tr?tr(null):{},this.size=0}function u_(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var d_="__lodash_hash_undefined__",p_=Object.prototype,g_=p_.hasOwnProperty;function m_(t){var e=this.__data__;if(tr){var n=e[t];return n===d_?void 0:n}return g_.call(e,t)?e[t]:void 0}var y_=Object.prototype,__=y_.hasOwnProperty;function x_(t){var e=this.__data__;return tr?e[t]!==void 0:__.call(e,t)}var b_="__lodash_hash_undefined__";function v_(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=tr&&e===void 0?b_:e,this}function Qe(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Qe.prototype.clear=f_,Qe.prototype.delete=u_,Qe.prototype.get=m_,Qe.prototype.has=x_,Qe.prototype.set=v_;function w_(){this.__data__=[],this.size=0}function fi(t,e){return t===e||t!==t&&e!==e}function ui(t,e){for(var n=t.length;n--;)if(fi(t[n][0],e))return n;return-1}var $_=Array.prototype,P_=$_.splice;function M_(t){var e=this.__data__,n=ui(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():P_.call(e,n,1),--this.size,!0}function O_(t){var e=this.__data__,n=ui(e,t);return n<0?void 0:e[n][1]}function C_(t){return ui(this.__data__,t)>-1}function S_(t,e){var n=this.__data__,r=ui(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Ae(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ae.prototype.clear=w_,Ae.prototype.delete=M_,Ae.prototype.get=O_,Ae.prototype.has=C_,Ae.prototype.set=S_;var Sh=ws(_n,"Map");function I_(){this.size=0,this.__data__={hash:new Qe,map:new(Sh||Ae),string:new Qe}}function A_(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function di(t,e){var n=t.__data__;return A_(e)?n[typeof e=="string"?"string":"hash"]:n.map}function E_(t){var e=di(this,t).delete(t);return this.size-=e?1:0,e}function k_(t){return di(this,t).get(t)}function T_(t){return di(this,t).has(t)}function z_(t,e){var n=di(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Re(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Re.prototype.clear=I_,Re.prototype.delete=E_,Re.prototype.get=k_,Re.prototype.has=T_,Re.prototype.set=z_;var H_="Expected a function";function $s(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(H_);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new($s.Cache||Re),n}$s.Cache=Re;var L_=500;function R_(t){var e=$s(t,function(r){return n.size===L_&&n.clear(),r}),n=e.cache;return e}var N_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,j_=/\\(\\)?/g,D_=R_(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(N_,function(n,r,i,o){e.push(i?o.replace(j_,"$1"):r||n)}),e});function B_(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var Ih=xn?xn.prototype:void 0,Ah=Ih?Ih.toString:void 0;function Eh(t){if(typeof t=="string")return t;if(yn(t))return B_(t,Eh)+"";if(xs(t))return Ah?Ah.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function er(t){return t==null?"":Eh(t)}function F_(t,e){return yn(t)?t:qy(t,e)?[t]:D_(er(t))}function W_(t){if(typeof t=="string"||xs(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function X_(t,e){e=F_(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[W_(e[n++])];return n&&n==r?t:void 0}function kh(t,e,n){var r=t==null?void 0:X_(t,e);return r===void 0?n:r}function pi(t,e){if(e.length===0)return{};const n=Array.isArray(t)?t[e[0]]:t.items[e[0]];if(e.length===1)return n;const r=e.slice(1).map(i=>`children[${i}]`).join(".");return kh(n,r)}function Y_(t,e={title:"信息图标题",desc:"信息图描述",items:"信息图的内容项",label:"项目标签文本",value:"项目数值内容",icon:"项目图标",illus:"项目插图",children:"子级项目(多层结构)"}){const{structure:n,items:r}=t,i=[],o=l=>" ".repeat(l);function s(l,c,f){const u=e[l];return u?`${o(f)}/** ${u} */
|
|
5
|
+
${o(f)}${l}: ${c};`:`${o(f)}${l}: ${c};`}function a(l,c){const f=r[l],u=[];for(const d of f){const p=d==="value"?"number":"string";u.push(s(d,p,c+1))}return r[l+1]&&u.push(s("children",`Array<${a(l+1,c+1)}>`,c+1)),`{
|
|
6
|
+
${u.join(`
|
|
7
7
|
`)}
|
|
8
8
|
${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push(s("title","string",1)),i.push(s("desc","string",1))),n.includes("item")&&r.length>0&&i.push(s("items",`Array<${a(0,1)}>`,1)),i.push("}"),i.join(`
|
|
9
|
-
`)}var
|
|
9
|
+
`)}var Ne=(t=>(t.Background="background",t.Text="text",t.IconGroup="icon-group",t.Icon="icon",t.Geometry="geometry",t.Button="button",t.IllusGroup="illus-group",t.IllusVolume="illus-volume",t.Illus="illus",t))(Ne||{}),V_=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function q_(t){return t.startsWith("data:")}function Th(t){return V_(this,null,function*(){var e;if(!t||!q_(t))return null;const n=(e=t.match(/^data:([^;]+)/))==null?void 0:e[1];if(!n)return null;const r=()=>new Promise((c,f)=>{const u=new Image;u.onload=()=>{const d=u.naturalWidth,p=u.naturalHeight,g=document.createElement("canvas"),m=g.getContext("2d");if(!m)return c({width:d,height:p,hasAlpha:!1});if(["image/jpeg","image/jpg","image/webp","image/gif"].includes(n))return c({width:d,height:p,hasAlpha:!1});g.width=d,g.height=p,m.drawImage(u,0,0);let y=!1;const x=10;for(let _=0;_<d&&!y;_+=x)for(let b=0;b<p;b+=x)if(m.getImageData(_,b,1,1).data[3]<255){y=!0;break}c({width:d,height:p,hasAlpha:y})},u.onerror=()=>f(new Error("Failed to analysis image")),u.src=t}),{width:i,height:o,hasAlpha:s}=yield r(),l=(()=>{if(s||n!=null&&n.includes("image/gif")||n!=null&&n.includes("image/svg")||Math.min(i,o)<=200)return"xMidYMid meet";const f=i/o;return f>=.6&&f<=1.67||f<.3||f>3.33?"xMidYMid meet":"xMidYMid slice"})();return vn(`
|
|
10
10
|
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${i} ${o}" preserveAspectRatio="${l}">
|
|
11
11
|
<image href="${t}" width="${i}" height="${o}" />
|
|
12
|
-
</symbol>`)})}function gx(t){return t.startsWith("<svg")||t.startsWith("<symbol")}function ps(t){if(!t||!gx(t))return null;const e=t.startsWith("<svg")?t.replace(/<svg/,"<symbol").replace(/svg>/,"symbol>"):t;return mn(e)}var mx=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function yx(t){try{return!!new URL(t)}catch(e){return!1}}function xx(t){return mx(this,null,function*(){if(!t||!yx(t))return null;const e=yield fetch(t);if(!e.ok)throw new Error("Failed to load resource");if((e.headers.get("Content-Type")||"").includes("image/svg+xml")){const o=yield e.text();return ps(o)}const r=yield e.blob(),i=yield _x(r);return xh(i)})}function _x(t){return new Promise((e,n)=>{const r=new FileReader;r.onloadend=()=>{e(r.result)},r.onerror=n,r.readAsDataURL(t)})}let _h=null;function bx(t){_h=t}function wx(){return _h}var oi=(t=>(t.Image="image",t.SVG="svg",t.Remote="remote",t))(oi||{});function bh(t){if(!t.startsWith("data:"))return{type:"custom",data:t};const e=t.indexOf(",");if(e===-1)return null;const n=t.slice(5,e),r=t.slice(e+1),i=n.split(";"),o=i[0];if(i.includes("base64"))return{type:oi.Image,data:t};const a={"text/url":oi.Remote,"image/svg+xml":oi.SVG}[o];return a?{type:a,data:r}:{type:"custom",data:t}}function vx(t){let e=0;if(t.length===0)return e.toString();for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e=(e<<5)-e+r,e=e&e}return Math.abs(e).toString()}function gs(t){return t?typeof t=="string"?bh(t):t:null}function ms(t){const e=typeof t=="string"?bh(t):t;return e?vx(JSON.stringify(e)):null}function wh(t){const e=ms(t);return e?`#${e}`:null}var vh=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function $x(t){return vh(this,null,function*(){const e=gs(t);if(!e)return null;const{type:n,data:r}=e;if(n==="image")return yield xh(r);if(n==="svg")return ps(r);if(n==="remote")return yield xx(r);{const i=wx();if(i)return yield i(e)}return null})}const $h=new Map,ys=new WeakMap;function Ph(t,e){return vh(this,null,function*(){if(!t)return null;const n=gs(e);if(!n)return null;const r=ms(n),i=$h.has(r)?$h.get(r)||null:yield $x(n);if(!i)return null;ys.has(t)||ys.set(t,new Map);const o=ys.get(t);if(o.has(r))return r;const s=si(t);return i.id=r,s.appendChild(i),o.set(r,i),r})}function ut(t,e={}){const n=document.createElementNS("http://www.w3.org/2000/svg",t);return Le(n,e),n}function mn(t){const n=new DOMParser().parseFromString(t,"image/svg+xml");if(n.querySelector("parsererror"))throw new Error("Invalid SVG string");return n.documentElement}function Le(t,e){Object.entries(e).forEach(([n,r])=>{r===null?t.removeAttribute(n):t.setAttribute(n,r)})}function Re(t,e,n=!0){return e.reduce((r,i)=>{const o=t.getAttribute(i);return(!n||o!==null&&o!=="")&&(r[i]=o),r},{})}function Px(t,e){e.forEach(n=>{t.removeAttribute(n)})}function si(t,e="infographic-defs"){const n=e?`defs#${e}`:"defs",r=t.querySelector(n);if(r)return r;const i=ut("defs");return e&&(i.id=e),t.prepend(i),i}function Mx(t){try{const e=t.width.baseVal.value||0,n=t.height.baseVal.value||0;return[e,n]}catch(e){const n=t.getAttribute("viewBox");if(n){const[r,i,o,s]=n.split(" ").map(Number);return[o-r,s-i]}return console.error("Error getting size baseVal from SVG:",e),[0,0]}}var Ox=Object.defineProperty,Cx=Object.defineProperties,Sx=Object.getOwnPropertyDescriptors,Mh=Object.getOwnPropertySymbols,Ix=Object.prototype.hasOwnProperty,Ax=Object.prototype.propertyIsEnumerable,Oh=(t,e,n)=>e in t?Ox(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,kx=(t,e)=>{for(var n in e||(e={}))Ix.call(e,n)&&Oh(t,n,e[n]);if(Mh)for(var n of Mh(e))Ax.call(e,n)&&Oh(t,n,e[n]);return t},Ex=(t,e)=>Cx(t,Sx(e));function zx(t,e={}){const n=ut("use",Ex(kx({"data-element-type":He.Icon},e),{href:wh(t)}));return Tx(n),n}function Tx(t){const{stroke:e,fill:n}=Re(t,["fill","stroke"]);t.style.color=n||e||"currentColor"}const Hx=",",Lx=(t,e=Hx)=>t.split(e).map(n=>parseInt(n,10)),Ch=t=>Lx(t);function Sh(...t){return t.map(e=>e.replace(/^\/+|\/+$/g,"")).filter(e=>e.trim().length>0).join("/")}function xs(t){return t?typeof t=="number"?[t,t,t,t]:t.length===1?[t[0],t[0],t[0],t[0]]:t.length===2?[t[0],t[1],t[0],t[1]]:t.length===3?[t[0],t[1],t[2],t[1]]:t.length===4?[t[0],t[1],t[2],t[3]]:[0,0,0,0]:[0,0,0,0]}const ue=(t,e)=>t.dataset.elementType===e,Rx=t=>ue(t,"title"),Nx=t=>ue(t,"desc"),Dx=t=>ue(t,"shape"),jx=t=>ue(t,"shapes-group"),Fx=t=>ue(t,"illus"),Bx=t=>t instanceof SVGElement&&t.tagName==="text",Wx=t=>t instanceof SVGElement&&t.tagName==="g",Xx=t=>ue(t,"item-icon"),Yx=t=>ue(t,"item-label"),Vx=t=>ue(t,"item-desc"),qx=t=>ue(t,"item-value"),Gx=t=>ue(t,"item-illus"),Ux=t=>ue(t,"btns-group");function Zx(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function Qx(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:Zx(t,e,n)}var Kx="\\ud800-\\udfff",Jx="\\u0300-\\u036f",t_="\\ufe20-\\ufe2f",e_="\\u20d0-\\u20ff",n_=Jx+t_+e_,r_="\\ufe0e\\ufe0f",i_="\\u200d",o_=RegExp("["+i_+Kx+n_+r_+"]");function Ih(t){return o_.test(t)}function s_(t){return t.split("")}var Ah="\\ud800-\\udfff",a_="\\u0300-\\u036f",l_="\\ufe20-\\ufe2f",c_="\\u20d0-\\u20ff",h_=a_+l_+c_,f_="\\ufe0e\\ufe0f",u_="["+Ah+"]",_s="["+h_+"]",bs="\\ud83c[\\udffb-\\udfff]",d_="(?:"+_s+"|"+bs+")",kh="[^"+Ah+"]",Eh="(?:\\ud83c[\\udde6-\\uddff]){2}",zh="[\\ud800-\\udbff][\\udc00-\\udfff]",p_="\\u200d",Th=d_+"?",Hh="["+f_+"]?",g_="(?:"+p_+"(?:"+[kh,Eh,zh].join("|")+")"+Hh+Th+")*",m_=Hh+Th+g_,y_="(?:"+[kh+_s+"?",_s,Eh,zh,u_].join("|")+")",x_=RegExp(bs+"(?="+bs+")|"+y_+m_,"g");function __(t){return t.match(x_)||[]}function b_(t){return Ih(t)?__(t):s_(t)}function w_(t){return function(e){e=Gn(e);var n=Ih(e)?b_(e):void 0,r=n?n[0]:e.charAt(0),i=n?Qx(n,1).join(""):e.slice(1);return r[t]()+i}}var v_=w_("toUpperCase");function $_(t){return v_(Gn(t).toLowerCase())}function P_(t,e,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;)n=e(n,t[i],i,t);return n}function M_(t){return function(e){return t==null?void 0:t[e]}}var O_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},C_=M_(O_),S_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,I_="\\u0300-\\u036f",A_="\\ufe20-\\ufe2f",k_="\\u20d0-\\u20ff",E_=I_+A_+k_,z_="["+E_+"]",T_=RegExp(z_,"g");function H_(t){return t=Gn(t),t&&t.replace(S_,C_).replace(T_,"")}var L_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function R_(t){return t.match(L_)||[]}var N_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function D_(t){return N_.test(t)}var Lh="\\ud800-\\udfff",j_="\\u0300-\\u036f",F_="\\ufe20-\\ufe2f",B_="\\u20d0-\\u20ff",W_=j_+F_+B_,Rh="\\u2700-\\u27bf",Nh="a-z\\xdf-\\xf6\\xf8-\\xff",X_="\\xac\\xb1\\xd7\\xf7",Y_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",V_="\\u2000-\\u206f",q_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Dh="A-Z\\xc0-\\xd6\\xd8-\\xde",G_="\\ufe0e\\ufe0f",jh=X_+Y_+V_+q_,Fh="['’]",Bh="["+jh+"]",U_="["+W_+"]",Wh="\\d+",Z_="["+Rh+"]",Xh="["+Nh+"]",Yh="[^"+Lh+jh+Wh+Rh+Nh+Dh+"]",Q_="\\ud83c[\\udffb-\\udfff]",K_="(?:"+U_+"|"+Q_+")",J_="[^"+Lh+"]",Vh="(?:\\ud83c[\\udde6-\\uddff]){2}",qh="[\\ud800-\\udbff][\\udc00-\\udfff]",yn="["+Dh+"]",t5="\\u200d",Gh="(?:"+Xh+"|"+Yh+")",e5="(?:"+yn+"|"+Yh+")",Uh="(?:"+Fh+"(?:d|ll|m|re|s|t|ve))?",Zh="(?:"+Fh+"(?:D|LL|M|RE|S|T|VE))?",Qh=K_+"?",Kh="["+G_+"]?",n5="(?:"+t5+"(?:"+[J_,Vh,qh].join("|")+")"+Kh+Qh+")*",r5="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i5="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",o5=Kh+Qh+n5,s5="(?:"+[Z_,Vh,qh].join("|")+")"+o5,a5=RegExp([yn+"?"+Xh+"+"+Uh+"(?="+[Bh,yn,"$"].join("|")+")",e5+"+"+Zh+"(?="+[Bh,yn+Gh,"$"].join("|")+")",yn+"?"+Gh+"+"+Uh,yn+"+"+Zh,i5,r5,Wh,s5].join("|"),"g");function l5(t){return t.match(a5)||[]}function c5(t,e,n){return t=Gn(t),e=e,e===void 0?D_(t)?l5(t):R_(t):t.match(e)||[]}var h5="['’]",f5=RegExp(h5,"g");function Jh(t){return function(e){return P_(c5(H_(e).replace(f5,"")),t,"")}}var u5=Jh(function(t,e,n){return e=e.toLowerCase(),t+(n?$_(e):e)}),tf=Object.getOwnPropertySymbols,d5=Object.prototype.hasOwnProperty,p5=Object.prototype.propertyIsEnumerable,g5=(t,e)=>{var n={};for(var r in t)d5.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&tf)for(var r of tf(t))e.indexOf(r)<0&&p5.call(t,r)&&(n[r]=t[r]);return n};function m5(t,e){const n=document.createElement("span");n.textContent=t,Object.assign(n.style,x5(e));let{width:r,height:i}=e;if(!r||!i){const u=_5(n);r||(r=String(u.width)),i||(i=String(u.height))}const{id:o,x:s,y:a,"text-alignment":l="LEFT TOP"}=e,[c,f]=b5(l);Object.assign(n.style,y5(c,f));const d=ut("foreignObject",{id:o,x:s,y:a,width:r,height:i,overflow:"visible","data-element-type":He.Text});return d.appendChild(n),d}function y5(t,e){const n={width:"100%",height:"100%",display:"flex",flexWrap:"wrap",wordBreak:"break-word"};switch(t){case"LEFT":n.textAlign="left",n.justifyContent="flex-start";break;case"CENTER":n.textAlign="center",n.justifyContent="center";break;case"RIGHT":n.textAlign="right",n.justifyContent="flex-end";break}switch(e){case"TOP":n.alignContent="flex-start",n.alignItems="flex-start";break;case"MIDDLE":n.alignContent="center",n.alignItems="center";break;case"BOTTOM":n.alignContent="flex-end",n.alignItems="flex-end";break}return n}function x5(t){const e=t,{x:n,y:r,width:i,height:o,["text-alignment"]:s,["font-size"]:a,["letter-spacing"]:l,["line-height"]:c,fill:f,["stroke-width"]:d,["text-anchor"]:u,["dominant-baseline"]:p,["font-family"]:g}=e,m=g5(e,["x","y","width","height","text-alignment","font-size","letter-spacing","line-height","fill","stroke-width","text-anchor","dominant-baseline","font-family"]),y={color:f,overflow:"visible"};return Object.entries(m).forEach(([_,x])=>{y[u5(_)]=x}),a&&(y.fontSize=`${a}px`),c&&(y.lineHeight=typeof c=="string"&&c.endsWith("px")?c:+c),l&&(y.letterSpacing=`${l}px`),d&&(y.strokeWidth=`${d}px`),g&&(y.fontFamily=ai(g)),y}function _5(t){const e=t.parentNode;t.style.visibility="hidden",document.body.appendChild(t);const n=t.getBoundingClientRect();return e?e.appendChild(t):document.body.removeChild(t),t.style.visibility="visible",n}function b5(t){if(!t)return["LEFT","TOP"];const[e="CENTER",n="MIDDLE"]=t.split(" ");return[e,n]}function w5(){return crypto&&crypto.randomUUID?crypto.randomUUID():"xxxx-xxxx-4xxx-yxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}function ef(t){return t.trim().replace(/["']/g,"")}function ai(t){return t.startsWith('"')?t:/^\d/.test(t)?`"${t}"`:t.includes(" ")?`"${t}"`:t}const v5={100:"thin",hairline:"thin",200:"extralight",ultralight:"extralight",300:"light",400:"regular",normal:"regular",500:"medium",600:"semibold",demibold:"semibold",700:"bold",800:"extrabold",ultrabold:"bold",900:"black",heavy:"black",950:"extrablack",ultrablack:"extrablack"};function $5(t){const e=String(t).toLowerCase();return v5[e]||"regular"}var P5=Object.defineProperty,nf=Object.getOwnPropertySymbols,M5=Object.prototype.hasOwnProperty,O5=Object.prototype.propertyIsEnumerable,rf=(t,e,n)=>e in t?P5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,C5=(t,e)=>{for(var n in e||(e={}))M5.call(e,n)&&rf(t,n,e[n]);if(nf)for(var n of nf(e))O5.call(e,n)&&rf(t,n,e[n]);return t};const ws=new Map;R.DEFAULT_FONT="Alibaba PuHuiTi";function vs(t){const e=ws.get(ef(t));return e||null}function of(){return Array.from(ws.values())}function S5(t){R.DEFAULT_FONT=ai(t)}function sf(t){const e=C5({},t);return ws.set(e.fontFamily,e),e.fontFamily=ai(e.fontFamily),e}function af(t){const e=vs(t);if(!e)return[];const{baseUrl:n,fontWeight:r}=e;return Object.values(r).filter(Boolean).map(i=>Sh(n,i))}function I5(t,e){const n=vs(t);if(!n)return null;const r=$5(e),i=n.fontWeight[r];return i?Sh(n.baseUrl,i.replace(/\/result.css$/,"")):null}const $s=new WeakMap;function lf(t,e){const n=t.ownerDocument,r=(n==null?void 0:n.head)||document.head;if(!r)return;$s.has(r)||$s.set(r,new Map);const i=$s.get(r),o=[];af(e).forEach(a=>{const l=`${e}-${a}`;if(i.has(l))return;const c=n.createElement("link");c.id=l,c.rel="stylesheet",c.href=a,o.push(c),i.set(l,c)}),o.length&&r.tagName==="HEAD"&&o.forEach(a=>r.appendChild(a))}function cf(t){of().forEach(n=>lf(t,n.fontFamily))}const Un="https://assets.antv.antgroup.com",xn=t=>`${t}/result.css`;[{fontFamily:"Alibaba PuHuiTi",name:"阿里巴巴普惠体",baseUrl:Un,fontWeight:{regular:xn("AlibabaPuHuiTi-Regular"),bold:xn("AlibabaPuHuiTi-Bold")}},{fontFamily:"Source Han Sans",name:"黑体",baseUrl:Un,fontWeight:{regular:xn("SourceHanSansCN-Regular")}},{fontFamily:"Source Han Serif",name:"宋体",baseUrl:Un,fontWeight:{regular:xn("SourceHanSerifCN-Regular")}},{fontFamily:"LXGW WenKai",name:"楷体",baseUrl:Un,fontWeight:{regular:xn("LXGWWenKai-Regular")}},{fontFamily:"851tegakizatsu",name:"手写体",baseUrl:Un,fontWeight:{regular:xn("851tegakizatsu-Regular")}}].forEach(sf);const hf=new Map;function Ps(t,e){hf.set(t,e)}function ff(t){return hf.get(t)}Ps("antv",["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#70CAF8"]),Ps("spectral",(t,e,n)=>{const r=[["#fc8d59","#ffffbf","#99d594"],["#d7191c","#fdae61","#abdda4","#2b83ba"],["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]],i=Math.min(Math.max(n,3),11);return r[i-3][e%i]});const li=(t=[],e,n)=>{var r;const i=typeof t=="string"?ff(t)||[]:t,o=(r=e[0])!=null?r:0;if(typeof i=="function"){const s=n?o/n:0;return i(s,o,n!=null?n:0)}if(Array.isArray(i))return i.length===0?void 0:i[o%i.length]};function A5(t,e){var n;const r=t.parentElement;r&&(r.style.backgroundColor=e||"none");const i=t.querySelector("#background");if(!e)return i==null?void 0:i.remove();if(t.style.backgroundColor=e,i)i.setAttribute("fill",e);else if((n=t.viewBox)!=null&&n.baseVal){const{x:o,y:s,width:a,height:l}=t.viewBox.baseVal,c=ut("rect",{x:o,y:s,width:a,height:l,fill:e,"data-element-type":He.Background});t.prepend(c)}}const uf="btn-add-icon",df="btn-remove-icon";function k5(t,e){Le(e,{display:"none"});const n=e.querySelectorAll('[id^="btn-add-"]'),r=e.querySelectorAll('[id^="btn-remove-"]');E5(t),n.forEach(z5),r.forEach(T5)}function E5(t){const e=ut("defs",{id:"btn-icon-defs"}),n=mn(`<symbol class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
|
|
12
|
+
</symbol>`)})}function G_(t){return t.startsWith("<svg")||t.startsWith("<symbol")}function Ps(t){if(!t||!G_(t))return null;const e=t.startsWith("<svg")?t.replace(/<svg/,"<symbol").replace(/svg>/,"symbol>"):t;return vn(e)}var U_=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function Z_(t){try{return!!new URL(t)}catch(e){return!1}}function Q_(t){return U_(this,null,function*(){if(!t||!Z_(t))return null;const e=yield fetch(t);if(!e.ok)throw new Error("Failed to load resource");if((e.headers.get("Content-Type")||"").includes("image/svg+xml")){const o=yield e.text();return Ps(o)}const r=yield e.blob(),i=yield K_(r);return Th(i)})}function K_(t){return new Promise((e,n)=>{const r=new FileReader;r.onloadend=()=>{e(r.result)},r.onerror=n,r.readAsDataURL(t)})}let zh=null;function J_(t){zh=t}function tx(){return zh}var gi=(t=>(t.Image="image",t.SVG="svg",t.Remote="remote",t))(gi||{});function Hh(t){if(!t.startsWith("data:"))return{type:"custom",data:t};const e=t.indexOf(",");if(e===-1)return null;const n=t.slice(5,e),r=t.slice(e+1),i=n.split(";"),o=i[0];if(i.includes("base64"))return{type:gi.Image,data:t};const a={"text/url":gi.Remote,"image/svg+xml":gi.SVG}[o];return a?{type:a,data:r}:{type:"custom",data:t}}function ex(t){let e=0;if(t.length===0)return e.toString();for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e=(e<<5)-e+r,e=e&e}return Math.abs(e).toString()}function Ms(t){return t?typeof t=="string"?Hh(t):t:null}function Os(t){const e=typeof t=="string"?Hh(t):t;return e?ex(JSON.stringify(e)):null}function Lh(t){const e=Os(t);return e?`#${e}`:null}var Rh=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function nx(t){return Rh(this,null,function*(){const e=Ms(t);if(!e)return null;const{type:n,data:r}=e;if(n==="image")return yield Th(r);if(n==="svg")return Ps(r);if(n==="remote")return yield Q_(r);{const i=tx();if(i)return yield i(e)}return null})}const Nh=new Map,Cs=new WeakMap;function jh(t,e){return Rh(this,null,function*(){if(!t)return null;const n=Ms(e);if(!n)return null;const r=Os(n),i=Nh.has(r)?Nh.get(r)||null:yield nx(n);if(!i)return null;Cs.has(t)||Cs.set(t,new Map);const o=Cs.get(t);if(o.has(r))return r;const s=mi(t);return i.id=r,s.appendChild(i),o.set(r,i),r})}function ut(t,e={}){const n=document.createElementNS("http://www.w3.org/2000/svg",t);return je(n,e),n}function vn(t){const n=new DOMParser().parseFromString(t,"image/svg+xml");if(n.querySelector("parsererror"))throw new Error("Invalid SVG string");return n.documentElement}function je(t,e){Object.entries(e).forEach(([n,r])=>{r===null?t.removeAttribute(n):t.setAttribute(n,r)})}function De(t,e,n=!0){return e.reduce((r,i)=>{const o=t.getAttribute(i);return(!n||o!==null&&o!=="")&&(r[i]=o),r},{})}function rx(t,e){e.forEach(n=>{t.removeAttribute(n)})}function mi(t,e="infographic-defs"){const n=e?`defs#${e}`:"defs",r=t.querySelector(n);if(r)return r;const i=ut("defs");return e&&(i.id=e),t.prepend(i),i}function ix(t){try{const e=t.width.baseVal.value||0,n=t.height.baseVal.value||0;return[e,n]}catch(e){const n=t.getAttribute("viewBox");if(n){const[r,i,o,s]=n.split(" ").map(Number);return[o-r,s-i]}return console.error("Error getting size baseVal from SVG:",e),[0,0]}}var ox=Object.defineProperty,sx=Object.defineProperties,ax=Object.getOwnPropertyDescriptors,Dh=Object.getOwnPropertySymbols,lx=Object.prototype.hasOwnProperty,cx=Object.prototype.propertyIsEnumerable,Bh=(t,e,n)=>e in t?ox(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hx=(t,e)=>{for(var n in e||(e={}))lx.call(e,n)&&Bh(t,n,e[n]);if(Dh)for(var n of Dh(e))cx.call(e,n)&&Bh(t,n,e[n]);return t},fx=(t,e)=>sx(t,ax(e));function ux(t,e={}){const n=ut("use",fx(hx({"data-element-type":Ne.Icon},e),{href:Lh(t)}));return dx(n),n}function dx(t){const{stroke:e,fill:n}=De(t,["fill","stroke"]);t.style.color=n||e||"currentColor"}const px=",",gx=(t,e=px)=>t.split(e).map(n=>parseInt(n,10)),Fh=t=>gx(t);function Wh(...t){return t.map(e=>e.replace(/^\/+|\/+$/g,"")).filter(e=>e.trim().length>0).join("/")}function Ss(t){return t?typeof t=="number"?[t,t,t,t]:t.length===1?[t[0],t[0],t[0],t[0]]:t.length===2?[t[0],t[1],t[0],t[1]]:t.length===3?[t[0],t[1],t[2],t[1]]:t.length===4?[t[0],t[1],t[2],t[3]]:[0,0,0,0]:[0,0,0,0]}const de=(t,e)=>t.dataset.elementType===e,mx=t=>de(t,"title"),yx=t=>de(t,"desc"),_x=t=>de(t,"shape"),xx=t=>de(t,"shapes-group"),bx=t=>de(t,"illus"),vx=t=>t instanceof SVGElement&&t.tagName==="text",wx=t=>t instanceof SVGElement&&t.tagName==="g",$x=t=>de(t,"item-icon"),Px=t=>de(t,"item-label"),Mx=t=>de(t,"item-desc"),Ox=t=>de(t,"item-value"),Cx=t=>de(t,"item-illus"),Sx=t=>de(t,"btns-group");function Ix(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function Ax(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:Ix(t,e,n)}var Ex="\\ud800-\\udfff",kx="\\u0300-\\u036f",Tx="\\ufe20-\\ufe2f",zx="\\u20d0-\\u20ff",Hx=kx+Tx+zx,Lx="\\ufe0e\\ufe0f",Rx="\\u200d",Nx=RegExp("["+Rx+Ex+Hx+Lx+"]");function Xh(t){return Nx.test(t)}function jx(t){return t.split("")}var Yh="\\ud800-\\udfff",Dx="\\u0300-\\u036f",Bx="\\ufe20-\\ufe2f",Fx="\\u20d0-\\u20ff",Wx=Dx+Bx+Fx,Xx="\\ufe0e\\ufe0f",Yx="["+Yh+"]",Is="["+Wx+"]",As="\\ud83c[\\udffb-\\udfff]",Vx="(?:"+Is+"|"+As+")",Vh="[^"+Yh+"]",qh="(?:\\ud83c[\\udde6-\\uddff]){2}",Gh="[\\ud800-\\udbff][\\udc00-\\udfff]",qx="\\u200d",Uh=Vx+"?",Zh="["+Xx+"]?",Gx="(?:"+qx+"(?:"+[Vh,qh,Gh].join("|")+")"+Zh+Uh+")*",Ux=Zh+Uh+Gx,Zx="(?:"+[Vh+Is+"?",Is,qh,Gh,Yx].join("|")+")",Qx=RegExp(As+"(?="+As+")|"+Zx+Ux,"g");function Kx(t){return t.match(Qx)||[]}function Jx(t){return Xh(t)?Kx(t):jx(t)}function tb(t){return function(e){e=er(e);var n=Xh(e)?Jx(e):void 0,r=n?n[0]:e.charAt(0),i=n?Ax(n,1).join(""):e.slice(1);return r[t]()+i}}var eb=tb("toUpperCase");function nb(t){return eb(er(t).toLowerCase())}function rb(t,e,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;)n=e(n,t[i],i,t);return n}function ib(t){return function(e){return t==null?void 0:t[e]}}var ob={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},sb=ib(ob),ab=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lb="\\u0300-\\u036f",cb="\\ufe20-\\ufe2f",hb="\\u20d0-\\u20ff",fb=lb+cb+hb,ub="["+fb+"]",db=RegExp(ub,"g");function pb(t){return t=er(t),t&&t.replace(ab,sb).replace(db,"")}var gb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function mb(t){return t.match(gb)||[]}var yb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function _b(t){return yb.test(t)}var Qh="\\ud800-\\udfff",xb="\\u0300-\\u036f",bb="\\ufe20-\\ufe2f",vb="\\u20d0-\\u20ff",wb=xb+bb+vb,Kh="\\u2700-\\u27bf",Jh="a-z\\xdf-\\xf6\\xf8-\\xff",$b="\\xac\\xb1\\xd7\\xf7",Pb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mb="\\u2000-\\u206f",Ob=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tf="A-Z\\xc0-\\xd6\\xd8-\\xde",Cb="\\ufe0e\\ufe0f",ef=$b+Pb+Mb+Ob,nf="['’]",rf="["+ef+"]",Sb="["+wb+"]",of="\\d+",Ib="["+Kh+"]",sf="["+Jh+"]",af="[^"+Qh+ef+of+Kh+Jh+tf+"]",Ab="\\ud83c[\\udffb-\\udfff]",Eb="(?:"+Sb+"|"+Ab+")",kb="[^"+Qh+"]",lf="(?:\\ud83c[\\udde6-\\uddff]){2}",cf="[\\ud800-\\udbff][\\udc00-\\udfff]",wn="["+tf+"]",Tb="\\u200d",hf="(?:"+sf+"|"+af+")",zb="(?:"+wn+"|"+af+")",ff="(?:"+nf+"(?:d|ll|m|re|s|t|ve))?",uf="(?:"+nf+"(?:D|LL|M|RE|S|T|VE))?",df=Eb+"?",pf="["+Cb+"]?",Hb="(?:"+Tb+"(?:"+[kb,lf,cf].join("|")+")"+pf+df+")*",Lb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Nb=pf+df+Hb,jb="(?:"+[Ib,lf,cf].join("|")+")"+Nb,Db=RegExp([wn+"?"+sf+"+"+ff+"(?="+[rf,wn,"$"].join("|")+")",zb+"+"+uf+"(?="+[rf,wn+hf,"$"].join("|")+")",wn+"?"+hf+"+"+ff,wn+"+"+uf,Rb,Lb,of,jb].join("|"),"g");function Bb(t){return t.match(Db)||[]}function Fb(t,e,n){return t=er(t),e=e,e===void 0?_b(t)?Bb(t):mb(t):t.match(e)||[]}var Wb="['’]",Xb=RegExp(Wb,"g");function gf(t){return function(e){return rb(Fb(pb(e).replace(Xb,"")),t,"")}}var Yb=gf(function(t,e,n){return e=e.toLowerCase(),t+(n?nb(e):e)}),mf=Object.getOwnPropertySymbols,Vb=Object.prototype.hasOwnProperty,qb=Object.prototype.propertyIsEnumerable,Gb=(t,e)=>{var n={};for(var r in t)Vb.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&mf)for(var r of mf(t))e.indexOf(r)<0&&qb.call(t,r)&&(n[r]=t[r]);return n};function Ub(t,e){const n=document.createElement("span");n.textContent=t,Object.assign(n.style,Qb(e));let{width:r,height:i}=e;if(!r||!i){const d=Kb(n);r||(r=String(d.width)),i||(i=String(d.height))}const{id:o,x:s,y:a,"text-alignment":l="LEFT TOP"}=e,[c,f]=Jb(l);Object.assign(n.style,Zb(c,f));const u=ut("foreignObject",{id:o,x:s,y:a,width:r,height:i,overflow:"visible","data-element-type":Ne.Text});return u.appendChild(n),u}function Zb(t,e){const n={width:"100%",height:"100%",display:"flex",flexWrap:"wrap",wordBreak:"break-word"};switch(t){case"LEFT":n.textAlign="left",n.justifyContent="flex-start";break;case"CENTER":n.textAlign="center",n.justifyContent="center";break;case"RIGHT":n.textAlign="right",n.justifyContent="flex-end";break}switch(e){case"TOP":n.alignContent="flex-start",n.alignItems="flex-start";break;case"MIDDLE":n.alignContent="center",n.alignItems="center";break;case"BOTTOM":n.alignContent="flex-end",n.alignItems="flex-end";break}return n}function Qb(t){const e=t,{x:n,y:r,width:i,height:o,["text-alignment"]:s,["font-size"]:a,["letter-spacing"]:l,["line-height"]:c,fill:f,["stroke-width"]:u,["text-anchor"]:d,["dominant-baseline"]:p,["font-family"]:g}=e,m=Gb(e,["x","y","width","height","text-alignment","font-size","letter-spacing","line-height","fill","stroke-width","text-anchor","dominant-baseline","font-family"]),y={color:f,overflow:"visible"};return Object.entries(m).forEach(([x,_])=>{y[Yb(x)]=_}),a&&(y.fontSize=`${a}px`),c&&(y.lineHeight=typeof c=="string"&&c.endsWith("px")?c:+c),l&&(y.letterSpacing=`${l}px`),u&&(y.strokeWidth=`${u}px`),g&&(y.fontFamily=nr(g)),y}function Kb(t){const e=t.parentNode;t.style.visibility="hidden",document.body.appendChild(t);const n=t.getBoundingClientRect();return e?e.appendChild(t):document.body.removeChild(t),t.style.visibility="visible",n}function Jb(t){if(!t)return["LEFT","TOP"];const[e="CENTER",n="MIDDLE"]=t.split(" ");return[e,n]}function t5(){return crypto&&crypto.randomUUID?crypto.randomUUID():"xxxx-xxxx-4xxx-yxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}function yf(t){return t.trim().replace(/["']/g,"")}function nr(t){return t.startsWith('"')?t:/^\d/.test(t)?`"${t}"`:t.includes(" ")?`"${t}"`:t}const e5={100:"thin",hairline:"thin",200:"extralight",ultralight:"extralight",300:"light",400:"regular",normal:"regular",500:"medium",600:"semibold",demibold:"semibold",700:"bold",800:"extrabold",ultrabold:"bold",900:"black",heavy:"black",950:"extrablack",ultrablack:"extrablack"};function n5(t){const e=String(t).toLowerCase();return e5[e]||"regular"}var r5=Object.defineProperty,_f=Object.getOwnPropertySymbols,i5=Object.prototype.hasOwnProperty,o5=Object.prototype.propertyIsEnumerable,xf=(t,e,n)=>e in t?r5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,s5=(t,e)=>{for(var n in e||(e={}))i5.call(e,n)&&xf(t,n,e[n]);if(_f)for(var n of _f(e))o5.call(e,n)&&xf(t,n,e[n]);return t};const Es=new Map;z.DEFAULT_FONT="Alibaba PuHuiTi";function ks(t){const e=Es.get(yf(t));return e||null}function bf(){return Array.from(Es.values())}function a5(t){z.DEFAULT_FONT=nr(t)}function vf(t){const e=s5({},t);return Es.set(e.fontFamily,e),e.fontFamily=nr(e.fontFamily),e}function wf(t){const e=ks(t);if(!e)return[];const{baseUrl:n,fontWeight:r}=e;return Object.values(r).filter(Boolean).map(i=>Wh(n,i))}function l5(t,e){const n=ks(t);if(!n)return null;const r=n5(e),i=n.fontWeight[r];return i?Wh(n.baseUrl,i.replace(/\/result.css$/,"")):null}const Ts=new WeakMap;function $f(t,e){const n=t.ownerDocument,r=(n==null?void 0:n.head)||document.head;if(!r)return;Ts.has(r)||Ts.set(r,new Map);const i=Ts.get(r),o=[];wf(e).forEach(a=>{const l=`${e}-${a}`;if(i.has(l))return;const c=n.createElement("link");c.id=l,c.rel="stylesheet",c.href=a,o.push(c),i.set(l,c)}),o.length&&r.tagName==="HEAD"&&o.forEach(a=>r.appendChild(a))}function Pf(t){bf().forEach(n=>$f(t,n.fontFamily))}const rr="https://assets.antv.antgroup.com",$n=t=>`${t}/result.css`;[{fontFamily:"Alibaba PuHuiTi",name:"阿里巴巴普惠体",baseUrl:rr,fontWeight:{regular:$n("AlibabaPuHuiTi-Regular"),bold:$n("AlibabaPuHuiTi-Bold")}},{fontFamily:"Source Han Sans",name:"黑体",baseUrl:rr,fontWeight:{regular:$n("SourceHanSansCN-Regular")}},{fontFamily:"Source Han Serif",name:"宋体",baseUrl:rr,fontWeight:{regular:$n("SourceHanSerifCN-Regular")}},{fontFamily:"LXGW WenKai",name:"楷体",baseUrl:rr,fontWeight:{regular:$n("LXGWWenKai-Regular")}},{fontFamily:"851tegakizatsu",name:"手写体",baseUrl:rr,fontWeight:{regular:$n("851tegakizatsu-Regular")}}].forEach(vf);const Mf=new Map;function zs(t,e){Mf.set(t,e)}function Of(t){return Mf.get(t)}zs("antv",["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#70CAF8"]),zs("spectral",(t,e,n)=>{const r=[["#fc8d59","#ffffbf","#99d594"],["#d7191c","#fdae61","#abdda4","#2b83ba"],["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]],i=Math.min(Math.max(n,3),11);return r[i-3][e%i]});const yi=(t=[],e,n)=>{var r;const i=typeof t=="string"?Of(t)||[]:t,o=(r=e[0])!=null?r:0;if(typeof i=="function"){const s=n?o/n:0;return i(s,o,n!=null?n:0)}if(Array.isArray(i))return i.length===0?void 0:i[o%i.length]};function c5(t,e){var n;const r=t.parentElement;r&&(r.style.backgroundColor=e||"none");const i=t.querySelector("#background");if(!e)return i==null?void 0:i.remove();if(t.style.backgroundColor=e,i)i.setAttribute("fill",e);else if((n=t.viewBox)!=null&&n.baseVal){const{x:o,y:s,width:a,height:l}=t.viewBox.baseVal,c=ut("rect",{x:o,y:s,width:a,height:l,fill:e,"data-element-type":Ne.Background});t.prepend(c)}}const Cf="btn-add-icon",Sf="btn-remove-icon";function h5(t,e){je(e,{display:"none"});const n=e.querySelectorAll('[id^="btn-add-"]'),r=e.querySelectorAll('[id^="btn-remove-"]');f5(t),n.forEach(u5),r.forEach(d5)}function f5(t){const e=ut("defs",{id:"btn-icon-defs"}),n=vn(`<symbol class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
|
|
13
13
|
<path
|
|
14
14
|
d="M512 1024C229.216 1024 0 794.784 0 512S229.216 0 512 0s512 229.216 512 512-229.216 512-512 512z m0-960C264.576 64 64 264.576 64 512s200.576 448 448 448 448-200.576 448-448S759.424 64 512 64z m192 480h-160v160a32 32 0 0 1-64 0v-160h-160a32 32 0 0 1 0-64h160v-160a32 32 0 0 1 64 0v160h160a32 32 0 0 1 0 64z"
|
|
15
15
|
fill="#339900"></path>
|
|
16
|
-
</symbol>`);n&&(n.setAttribute("id",
|
|
16
|
+
</symbol>`);n&&(n.setAttribute("id",Cf),e.appendChild(n));const r=vn(`<symbol viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
|
|
17
17
|
<path d="M874.971429 149.942857C776.228571 54.857143 648.228571 0 512.914286 0S245.942857 54.857143 150.857143 149.942857c-201.142857 201.142857-201.142857 522.971429 0 724.114286C245.942857 969.142857 377.6 1024 512.914286 1024s266.971429-54.857143 362.057143-149.942857c201.142857-201.142857 201.142857-522.971429 0-724.114286m-51.2 672.914286C739.657143 906.971429 629.942857 950.857143 512.914286 950.857143s-226.742857-43.885714-310.857143-128c-171.885714-171.885714-171.885714-449.828571 0-621.714286C286.171429 117.028571 395.885714 73.142857 512.914286 73.142857s226.742857 43.885714 310.857143 128c171.885714 171.885714 171.885714 449.828571 0 621.714286" fill="#E63C33"></path>
|
|
18
18
|
<path d="M772.571429 475.428571H253.257143c-21.942857 0-36.571429 14.628571-36.571429 36.571429 0 10.971429 3.657143 18.285714 10.971429 25.6s14.628571 10.971429 25.6 10.971429H768.914286c21.942857 0 36.571429-14.628571 36.571428-36.571429s-14.628571-36.571429-32.914285-36.571429" fill="#E63C33"></path>
|
|
19
|
-
</symbol>`);r&&(r.setAttribute("id",df),e.appendChild(r)),t.prepend(e)}function pf(t,e){const{id:n,x:r=0,y:i=0,width:o=0,height:s=0}=Re(t,["id","x","y","width","height"]),a=ut("g",{id:n,class:"btn-group",transform:`translate(${r}, ${i})`,"data-element-type":He.Button}),l=t.getAttribute("data-items");l&&a.setAttribute("data-items",l);const c=Math.max(+o,+s)/2,f=ut("circle",{cx:c,cy:c,r:c,fill:"#fff",stroke:"transparent"});a.appendChild(f);const d=ut("use",{href:`#${e}`,width:o,height:s});a.appendChild(d),a.style.cursor="pointer",t.replaceWith(a)}function z5(t){pf(t,uf)}function T5(t){pf(t,df)}function ci(t,e){return Object.entries(e).reduce((r,[i,o])=>{if(typeof o=="function"){const s=o(t.getAttribute(i));s&&(r[i]=s)}else Object.assign(r,{[i]:o});return r},{})}function gf(t){return t.replace(/#|%|\.| |\/|\(|\)/g,"").replace(/,/g,"-")}var H5=Object.defineProperty,mf=Object.getOwnPropertySymbols,L5=Object.prototype.hasOwnProperty,R5=Object.prototype.propertyIsEnumerable,yf=(t,e,n)=>e in t?H5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ms=(t,e)=>{for(var n in e||(e={}))L5.call(e,n)&&yf(t,n,e[n]);if(mf)for(var n of mf(e))R5.call(e,n)&&yf(t,n,e[n]);return t};function N5(t,e,n,r){var i;if(!n)return null;const{themeConfig:o}=r,s=Ms({},(i=o.item)==null?void 0:i.icon),a=ci(e,s);return D5(t,e,n,a)}function D5(t,e,n,r){return Ph(t,n),zx(n,Ms(Ms({},Re(e,["id","x","y","width","height","fill","stroke"])),r))}var j5=Object.defineProperty,F5=Object.defineProperties,B5=Object.getOwnPropertyDescriptors,hi=Object.getOwnPropertySymbols,xf=Object.prototype.hasOwnProperty,_f=Object.prototype.propertyIsEnumerable,bf=(t,e,n)=>e in t?j5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fi=(t,e)=>{for(var n in e||(e={}))xf.call(e,n)&&bf(t,n,e[n]);if(hi)for(var n of hi(e))_f.call(e,n)&&bf(t,n,e[n]);return t},wf=(t,e)=>F5(t,B5(e)),W5=(t,e)=>{var n={};for(var r in t)xf.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&hi)for(var r of hi(t))e.indexOf(r)<0&&_f.call(t,r)&&(n[r]=t[r]);return n};function vf(t,e,n){if(!n)return null;const r=gs(n);if(!r)return null;const i=ms(r),o=X5(t,e,i);Ph(t,r);const{data:s,color:a}=r;return Y5(i,fi(wf(fi({},V5(e)),{"clip-path":`url(#${o})`}),a?{color:a}:{}),s)}function X5(t,e,n){const r=`clip-${n}-${w5()}`;if(t.querySelector(`#${r}`))return r;const i=si(t),o=ut("clipPath",{id:r}),s=e.cloneNode();return Px(s,["id","data-illus-bounds","data-element-type"]),o.appendChild(s),i.appendChild(o),r}function Y5(t,e,n){const r=e,{"clip-path":i}=r,o=W5(r,["clip-path"]),{x:s="0",y:a="0",width:l="0",height:c="0"}=o,f=ut("rect",{id:`${t}-volume`,"data-element-type":He.IllusVolume,x:s,y:a,width:l,height:c,fill:"transparent"}),d=ut("g",{"data-element-type":He.IllusGroup,"clip-path":i,id:`${t}-group`});d.appendChild(f);const u=ut("use",wf(fi({id:t,fill:"lightgray"},o),{href:wh(n),"data-element-type":He.Illus}));return d.appendChild(u),d}function V5(t){const e=t.getAttribute("data-illus-bounds");if(!e)return fi({x:"0",y:"0",width:"0",height:"0"},Re(t,["x","y","width","height"]));const[n,r,i,o]=e.split(" ");return{x:n,y:r,width:i,height:o}}var q5=Object.defineProperty,$f=Object.getOwnPropertySymbols,G5=Object.prototype.hasOwnProperty,U5=Object.prototype.propertyIsEnumerable,Pf=(t,e,n)=>e in t?q5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Z5=(t,e)=>{for(var n in e||(e={}))G5.call(e,n)&&Pf(t,n,e[n]);if($f)for(var n of $f(e))U5.call(e,n)&&Pf(t,n,e[n]);return t};function Mf(t,e,n,r){const i=t.getAttribute(r),o=Q5(i,n),{type:s,colors:a=[]}=o,l=a.length-1,c=a.map((p,g)=>typeof p=="string"?ut("stop",{offset:`${g/l}`,"stop-color":p}):ut("stop",{offset:`${p.offset}`,"stop-color":p.color})),f=K5(n);if(s==="linear-gradient"){const{angle:p=0}=o,[[g,m],[y,_]]=J5(p),x=ut("linearGradient",{id:f,x1:g,y1:m,x2:y,y2:_});c.forEach(b=>x.appendChild(b)),Of(e,f,x)}else if(s==="radial-gradient"){const p=ut("radialGradient",{id:f});c.forEach(g=>p.appendChild(g)),Of(e,f,p)}const d=t.getAttribute("fill"),u=t.getAttribute("stroke");Yn(d)&&t.setAttribute("fill",`url(#${f})`),Yn(u)&&t.setAttribute("stroke",`url(#${f})`)}function Of(t,e,n){const r=si(t);n.setAttribute("id",e);const i=r.querySelector(`#${e}`);i?i.replaceWith(n):r.appendChild(n)}function Q5(t,e){var n;if((n=e.colors)!=null&&n.length||!t)return e;const r=Q(t),i=Z5({},e);return i.colors=r.isDark()?[t,r.lighten(20).toHexString()]:[r.darken(20).toHexString(),t],!("angle"in e)&&i.type==="linear-gradient"&&(i.angle=225),i}function K5(t){const{type:e,colors:n=[]}=t,r=gf(n.map(i=>typeof i=="string"?i:`${i.color}_${i.offset}`).join("-"));if(e==="linear-gradient"){const{angle:i=0}=t;return`${e}-${r}-${i}`}return`${e}-${r}`}function J5(t){const e=Math.PI/180*t,n=Math.cos(e),r=Math.sin(e);return[[.5-n/2,.5-r/2],[.5+n/2,.5+r/2]]}const tb=Object.freeze(Object.defineProperty({__proto__:null,diamond:({scale:t=.5,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-diamond",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("path",{d:"M0,0 L20,20 M20,0 L0,20",stroke:n,"stroke-width":"1"});return r.appendChild(i),r.appendChild(o),r},dot:({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-dot",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("circle",{cx:"5",cy:"5",r:"3",fill:n}),s=ut("circle",{cx:"15",cy:"15",r:"3",fill:n});return r.appendChild(i),r.appendChild(o),r.appendChild(s),r},hex:({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-hex",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("path",{d:"M10,0 L20,5 L20,15 L10,20 L0,15 L0,5 Z",fill:n});return r.appendChild(i),r.appendChild(o),r},line:({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const o=ut("pattern",{id:"pattern-line",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),s=ut("rect",{width:"100%",height:"100%",fill:e}),a=ut("line",{x1:"7",y1:"-3",x2:"23",y2:"13",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"}),l=ut("line",{x1:"-3",y1:"7",x2:"13",y2:"23",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"});return o.appendChild(s),o.appendChild(a),o.appendChild(l),o},mosaic:({scale:t=1,backgroundColor:e="#ffffff",foregroundColor:n="#000000"})=>{const a=ut("pattern",{id:"pattern-mosaic",width:20,height:20,patternUnits:"userSpaceOnUse",patternTransform:`scale(${t})`}),l=ut("rect",{width:"100%",height:"100%",fill:e});a.appendChild(l);for(let c=0;c<4;c++)for(let f=0;f<4;f++)if((f+c)%2===0){const d=ut("rect",{x:f*5,y:c*5,width:5,height:5,fill:n});a.appendChild(d)}return a},square:({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-square",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("path",{d:"M0,0 L20,0 L20,20 L0,20 Z",fill:n});return r.appendChild(i),r.appendChild(o),r}},Symbol.toStringTag,{value:"Module"}));var eb=Object.defineProperty,ui=Object.getOwnPropertySymbols,Cf=Object.prototype.hasOwnProperty,Sf=Object.prototype.propertyIsEnumerable,If=(t,e,n)=>e in t?eb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Os=(t,e)=>{for(var n in e||(e={}))Cf.call(e,n)&&If(t,n,e[n]);if(ui)for(var n of ui(e))Sf.call(e,n)&&If(t,n,e[n]);return t},nb=(t,e)=>{var n={};for(var r in t)Cf.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ui)for(var r of ui(t))e.indexOf(r)<0&&Sf.call(t,r)&&(n[r]=t[r]);return n};const Cs=new Map;function rb(t,e){Cs.has(t)&&console.warn(`Pattern ${t} will be overwritten`),Cs.set(t,e)}for(const[t,e]of Object.entries(tb))rb(t,e);function ib(t,e,n){const r=n,{pattern:i}=r,o=nb(r,["pattern"]),s=Cs.get(i);if(!s)return console.warn(`Pattern ${i} not found`);const{fill:a,stroke:l}=Re(t,["fill","stroke"]),c=Os({backgroundColor:Q("#fff").toHexString(),foregroundColor:Af(a||"white","#fff")>Af(l||"white","#fff")?a:l},o),f=sb(Os(Os({},n),c));ob(e,f,s(c)),Yn(a)&&(t.setAttribute("fill",`url(#${f})`),!t.getAttribute("stroke")&&a&&t.setAttribute("stroke",a))}function ob(t,e,n){const r=si(t);n.setAttribute("id",e);const i=r.querySelector(`pattern#${e}`);i?i.replaceWith(n):r.appendChild(n)}function sb(t){const{pattern:e,foregroundColor:n="unset",backgroundColor:r="unset",scale:i="unset"}=t;return gf(`pattern-${e}-${n}-${r}-${i}`)}function Af(t,e){const n=Q(t).toRgb(),r=Q(e).toRgb();return Math.sqrt(Math.pow(r.r-n.r,2)+Math.pow(r.g-n.g,2)+Math.pow(r.b-n.b,2))}function Ss(t,e,n){if(t&&t.length){const[r,i]=e,o=Math.PI/180*n,s=Math.cos(o),a=Math.sin(o);for(const l of t){const[c,f]=l;l[0]=(c-r)*s-(f-i)*a+r,l[1]=(c-r)*a+(f-i)*s+i}}}function ab(t,e){return t[0]===e[0]&&t[1]===e[1]}function lb(t,e,n,r=1){const i=n,o=Math.max(e,.1),s=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,a=[0,0];if(i)for(const c of s)Ss(c,a,i);const l=(function(c,f,d){const u=[];for(const x of c){const b=[...x];ab(b[0],b[b.length-1])||b.push([b[0][0],b[0][1]]),b.length>2&&u.push(b)}const p=[];f=Math.max(f,.1);const g=[];for(const x of u)for(let b=0;b<x.length-1;b++){const w=x[b],P=x[b+1];if(w[1]!==P[1]){const v=Math.min(w[1],P[1]);g.push({ymin:v,ymax:Math.max(w[1],P[1]),x:v===w[1]?w[0]:P[0],islope:(P[0]-w[0])/(P[1]-w[1])})}}if(g.sort(((x,b)=>x.ymin<b.ymin?-1:x.ymin>b.ymin?1:x.x<b.x?-1:x.x>b.x?1:x.ymax===b.ymax?0:(x.ymax-b.ymax)/Math.abs(x.ymax-b.ymax))),!g.length)return p;let m=[],y=g[0].ymin,_=0;for(;m.length||g.length;){if(g.length){let x=-1;for(let b=0;b<g.length&&!(g[b].ymin>y);b++)x=b;g.splice(0,x+1).forEach((b=>{m.push({s:y,edge:b})}))}if(m=m.filter((x=>!(x.edge.ymax<=y))),m.sort(((x,b)=>x.edge.x===b.edge.x?0:(x.edge.x-b.edge.x)/Math.abs(x.edge.x-b.edge.x))),(d!==1||_%f==0)&&m.length>1)for(let x=0;x<m.length;x+=2){const b=x+1;if(b>=m.length)break;const w=m[x].edge,P=m[b].edge;p.push([[Math.round(w.x),y],[Math.round(P.x),y]])}y+=d,m.forEach((x=>{x.edge.x=x.edge.x+d*x.edge.islope})),_++}return p})(s,o,r);if(i){for(const c of s)Ss(c,a,-i);(function(c,f,d){const u=[];c.forEach((p=>u.push(...p))),Ss(u,f,d)})(l,a,-i)}return l}function Zn(t,e){var n;const r=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return e.roughness>=1&&(((n=e.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(o=i),lb(t,i,r,o||1)}class Is{constructor(e){this.helper=e}fillPolygons(e,n){return this._fillPolygons(e,n)}_fillPolygons(e,n){const r=Zn(e,n);return{type:"fillSketch",ops:this.renderLines(r,n)}}renderLines(e,n){const r=[];for(const i of e)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],n));return r}}function di(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class cb extends Is{fillPolygons(e,n){let r=n.hachureGap;r<0&&(r=4*n.strokeWidth),r=Math.max(r,.1);const i=Zn(e,Object.assign({},n,{hachureGap:r})),o=Math.PI/180*n.hachureAngle,s=[],a=.5*r*Math.cos(o),l=.5*r*Math.sin(o);for(const[c,f]of i)di([c,f])&&s.push([[c[0]-a,c[1]+l],[...f]],[[c[0]+a,c[1]-l],[...f]]);return{type:"fillSketch",ops:this.renderLines(s,n)}}}class hb extends Is{fillPolygons(e,n){const r=this._fillPolygons(e,n),i=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),o=this._fillPolygons(e,i);return r.ops=r.ops.concat(o.ops),r}}class fb{constructor(e){this.helper=e}fillPolygons(e,n){const r=Zn(e,n=Object.assign({},n,{hachureAngle:0}));return this.dotsOnLines(r,n)}dotsOnLines(e,n){const r=[];let i=n.hachureGap;i<0&&(i=4*n.strokeWidth),i=Math.max(i,.1);let o=n.fillWeight;o<0&&(o=n.strokeWidth/2);const s=i/4;for(const a of e){const l=di(a),c=l/i,f=Math.ceil(c)-1,d=l-f*i,u=(a[0][0]+a[1][0])/2-i/4,p=Math.min(a[0][1],a[1][1]);for(let g=0;g<f;g++){const m=p+d+g*i,y=u-s+2*Math.random()*s,_=m-s+2*Math.random()*s,x=this.helper.ellipse(y,_,o,o,n);r.push(...x.ops)}}return{type:"fillSketch",ops:r}}}let ub=class{constructor(e){this.helper=e}fillPolygons(e,n){const r=Zn(e,n);return{type:"fillSketch",ops:this.dashedLine(r,n)}}dashedLine(e,n){const r=n.dashOffset<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashOffset,i=n.dashGap<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashGap,o=[];return e.forEach((s=>{const a=di(s),l=Math.floor(a/(r+i)),c=(a+i-l*(r+i))/2;let f=s[0],d=s[1];f[0]>d[0]&&(f=s[1],d=s[0]);const u=Math.atan((d[1]-f[1])/(d[0]-f[0]));for(let p=0;p<l;p++){const g=p*(r+i),m=g+r,y=[f[0]+g*Math.cos(u)+c*Math.cos(u),f[1]+g*Math.sin(u)+c*Math.sin(u)],_=[f[0]+m*Math.cos(u)+c*Math.cos(u),f[1]+m*Math.sin(u)+c*Math.sin(u)];o.push(...this.helper.doubleLineOps(y[0],y[1],_[0],_[1],n))}})),o}};class db{constructor(e){this.helper=e}fillPolygons(e,n){const r=n.hachureGap<0?4*n.strokeWidth:n.hachureGap,i=n.zigzagOffset<0?r:n.zigzagOffset,o=Zn(e,n=Object.assign({},n,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(o,i,n)}}zigzagLines(e,n,r){const i=[];return e.forEach((o=>{const s=di(o),a=Math.round(s/(2*n));let l=o[0],c=o[1];l[0]>c[0]&&(l=o[1],c=o[0]);const f=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let d=0;d<a;d++){const u=2*d*n,p=2*(d+1)*n,g=Math.sqrt(2*Math.pow(n,2)),m=[l[0]+u*Math.cos(f),l[1]+u*Math.sin(f)],y=[l[0]+p*Math.cos(f),l[1]+p*Math.sin(f)],_=[m[0]+g*Math.cos(f+Math.PI/4),m[1]+g*Math.sin(f+Math.PI/4)];i.push(...this.helper.doubleLineOps(m[0],m[1],_[0],_[1],r),...this.helper.doubleLineOps(_[0],_[1],y[0],y[1],r))}})),i}}const te={};class pb{constructor(e){this.seed=e}next(){return this.seed?(gr(2,31)-1&(this.seed=Math.imul(48271,this.seed)))/gr(2,31):Math.random()}}const gb=0,As=1,kf=2,pi={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function ks(t,e){return t.type===e}function Es(t){const e=[],n=(function(s){const a=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))a[a.length]={type:gb,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];a[a.length]={type:As,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return a[a.length]={type:kf,text:""},a})(t);let r="BOD",i=0,o=n[i];for(;!ks(o,kf);){let s=0;const a=[];if(r==="BOD"){if(o.text!=="M"&&o.text!=="m")return Es("M0,0"+t);i++,s=pi[o.text],r=o.text}else ks(o,As)?s=pi[r]:(i++,s=pi[o.text],r=o.text);if(!(i+s<n.length))throw new Error("Path data ended short");for(let l=i;l<i+s;l++){const c=n[l];if(!ks(c,As))throw new Error("Param not a number: "+r+","+c.text);a[a.length]=+c.text}if(typeof pi[r]!="number")throw new Error("Bad segment: "+r);{const l={key:r,data:a};e.push(l),i+=s,o=n[i],r==="M"&&(r="L"),r==="m"&&(r="l")}}return e}function Ef(t){let e=0,n=0,r=0,i=0;const o=[];for(const{key:s,data:a}of t)switch(s){case"M":o.push({key:"M",data:[...a]}),[e,n]=a,[r,i]=a;break;case"m":e+=a[0],n+=a[1],o.push({key:"M",data:[e,n]}),r=e,i=n;break;case"L":o.push({key:"L",data:[...a]}),[e,n]=a;break;case"l":e+=a[0],n+=a[1],o.push({key:"L",data:[e,n]});break;case"C":o.push({key:"C",data:[...a]}),e=a[4],n=a[5];break;case"c":{const l=a.map(((c,f)=>f%2?c+n:c+e));o.push({key:"C",data:l}),e=l[4],n=l[5];break}case"Q":o.push({key:"Q",data:[...a]}),e=a[2],n=a[3];break;case"q":{const l=a.map(((c,f)=>f%2?c+n:c+e));o.push({key:"Q",data:l}),e=l[2],n=l[3];break}case"A":o.push({key:"A",data:[...a]}),e=a[5],n=a[6];break;case"a":e+=a[5],n+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,n]});break;case"H":o.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...a]}),e=a[2],n=a[3];break;case"s":{const l=a.map(((c,f)=>f%2?c+n:c+e));o.push({key:"S",data:l}),e=l[2],n=l[3];break}case"T":o.push({key:"T",data:[...a]}),e=a[0],n=a[1];break;case"t":e+=a[0],n+=a[1],o.push({key:"T",data:[e,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=r,n=i}return o}function zf(t){const e=[];let n="",r=0,i=0,o=0,s=0,a=0,l=0;for(const{key:c,data:f}of t){switch(c){case"M":e.push({key:"M",data:[...f]}),[r,i]=f,[o,s]=f;break;case"C":e.push({key:"C",data:[...f]}),r=f[4],i=f[5],a=f[2],l=f[3];break;case"L":e.push({key:"L",data:[...f]}),[r,i]=f;break;case"H":r=f[0],e.push({key:"L",data:[r,i]});break;case"V":i=f[0],e.push({key:"L",data:[r,i]});break;case"S":{let d=0,u=0;n==="C"||n==="S"?(d=r+(r-a),u=i+(i-l)):(d=r,u=i),e.push({key:"C",data:[d,u,...f]}),a=f[0],l=f[1],r=f[2],i=f[3];break}case"T":{const[d,u]=f;let p=0,g=0;n==="Q"||n==="T"?(p=r+(r-a),g=i+(i-l)):(p=r,g=i);const m=r+2*(p-r)/3,y=i+2*(g-i)/3,_=d+2*(p-d)/3,x=u+2*(g-u)/3;e.push({key:"C",data:[m,y,_,x,d,u]}),a=p,l=g,r=d,i=u;break}case"Q":{const[d,u,p,g]=f,m=r+2*(d-r)/3,y=i+2*(u-i)/3,_=p+2*(d-p)/3,x=g+2*(u-g)/3;e.push({key:"C",data:[m,y,_,x,p,g]}),a=d,l=u,r=p,i=g;break}case"A":{const d=Math.abs(f[0]),u=Math.abs(f[1]),p=f[2],g=f[3],m=f[4],y=f[5],_=f[6];d===0||u===0?(e.push({key:"C",data:[r,i,y,_,y,_]}),r=y,i=_):(r!==y||i!==_)&&(Tf(r,i,y,_,d,u,p,g,m).forEach((function(x){e.push({key:"C",data:x})})),r=y,i=_);break}case"Z":e.push({key:"Z",data:[]}),r=o,i=s}n=c}return e}function Qn(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function Tf(t,e,n,r,i,o,s,a,l,c){const f=(d=s,Math.PI*d/180);var d;let u=[],p=0,g=0,m=0,y=0;if(c)[p,g,m,y]=c;else{[t,e]=Qn(t,e,-f),[n,r]=Qn(n,r,-f);const A=(t-n)/2,z=(e-r)/2;let j=A*A/(i*i)+z*z/(o*o);j>1&&(j=Math.sqrt(j),i*=j,o*=j);const E=i*i,D=o*o,L=E*D-E*z*z-D*A*A,T=E*z*z+D*A*A,N=(a===l?-1:1)*Math.sqrt(Math.abs(L/T));m=N*i*z/o+(t+n)/2,y=N*-o*A/i+(e+r)/2,p=Math.asin(parseFloat(((e-y)/o).toFixed(9))),g=Math.asin(parseFloat(((r-y)/o).toFixed(9))),t<m&&(p=Math.PI-p),n<m&&(g=Math.PI-g),p<0&&(p=2*Math.PI+p),g<0&&(g=2*Math.PI+g),l&&p>g&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let _=g-p;if(Math.abs(_)>120*Math.PI/180){const A=g,z=n,j=r;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,u=Tf(n=m+i*Math.cos(g),r=y+o*Math.sin(g),z,j,i,o,s,0,l,[g,A,m,y])}_=g-p;const x=Math.cos(p),b=Math.sin(p),w=Math.cos(g),P=Math.sin(g),v=Math.tan(_/4),$=4/3*i*v,M=4/3*o*v,I=[t,e],S=[t+$*b,e-M*x],C=[n+$*P,r-M*w],k=[n,r];if(S[0]=2*I[0]-S[0],S[1]=2*I[1]-S[1],c)return[S,C,k].concat(u);{u=[S,C,k].concat(u);const A=[];for(let z=0;z<u.length;z+=3){const j=Qn(u[z][0],u[z][1],f),E=Qn(u[z+1][0],u[z+1][1],f),D=Qn(u[z+2][0],u[z+2][1],f);A.push([j[0],j[1],E[0],E[1],D[0],D[1]])}return A}}const mb={randOffset:function(t,e){return at(t,e)},randOffsetWithRange:function(t,e,n){return mi(t,e,n)},ellipse:function(t,e,n,r,i){const o=Rf(n,r,i);return zs(t,e,i,o).opset},doubleLineOps:function(t,e,n,r,i){return Ne(t,e,n,r,i,!0)}};function Hf(t,e,n,r,i){return{type:"path",ops:Ne(t,e,n,r,i)}}function gi(t,e,n){const r=(t||[]).length;if(r>2){const i=[];for(let o=0;o<r-1;o++)i.push(...Ne(t[o][0],t[o][1],t[o+1][0],t[o+1][1],n));return e&&i.push(...Ne(t[r-1][0],t[r-1][1],t[0][0],t[0][1],n)),{type:"path",ops:i}}return r===2?Hf(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function yb(t,e,n,r,i){return(function(o,s){return gi(o,!0,s)})([[t,e],[t+n,e],[t+n,e+r],[t,e+r]],i)}function Lf(t,e){if(t.length){const n=typeof t[0][0]=="number"?[t]:t,r=yi(n[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:yi(n[0],1.5*(1+.22*e.roughness),jf(e));for(let o=1;o<n.length;o++){const s=n[o];if(s.length){const a=yi(s,1*(1+.2*e.roughness),e),l=e.disableMultiStroke?[]:yi(s,1.5*(1+.22*e.roughness),jf(e));for(const c of a)c.op!=="move"&&r.push(c);for(const c of l)c.op!=="move"&&i.push(c)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function Rf(t,e,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),o=2*Math.PI/i;let s=Math.abs(t/2),a=Math.abs(e/2);const l=1-n.curveFitting;return s+=at(s*l,n),a+=at(a*l,n),{increment:o,rx:s,ry:a}}function zs(t,e,n,r){const[i,o]=Bf(r.increment,t,e,r.rx,r.ry,1,r.increment*mi(.1,mi(.4,1,n),n),n);let s=xi(i,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[a]=Bf(r.increment,t,e,r.rx,r.ry,1.5,0,n),l=xi(a,null,n);s=s.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function Nf(t,e,n,r,i,o,s,a,l){const c=t,f=e;let d=Math.abs(n/2),u=Math.abs(r/2);d+=at(.01*d,l),u+=at(.01*u,l);let p=i,g=o;for(;p<0;)p+=2*Math.PI,g+=2*Math.PI;g-p>2*Math.PI&&(p=0,g=2*Math.PI);const m=2*Math.PI/l.curveStepCount,y=Math.min(m/2,(g-p)/2),_=Wf(y,c,f,d,u,p,g,1,l);if(!l.disableMultiStroke){const x=Wf(y,c,f,d,u,p,g,1.5,l);_.push(...x)}return s&&(a?_.push(...Ne(c,f,c+d*Math.cos(p),f+u*Math.sin(p),l),...Ne(c,f,c+d*Math.cos(g),f+u*Math.sin(g),l)):_.push({op:"lineTo",data:[c,f]},{op:"lineTo",data:[c+d*Math.cos(p),f+u*Math.sin(p)]})),{type:"path",ops:_}}function Df(t,e){const n=zf(Ef(Es(t))),r=[];let i=[0,0],o=[0,0];for(const{key:s,data:a}of n)switch(s){case"M":o=[a[0],a[1]],i=[a[0],a[1]];break;case"L":r.push(...Ne(o[0],o[1],a[0],a[1],e)),o=[a[0],a[1]];break;case"C":{const[l,c,f,d,u,p]=a;r.push(...xb(l,c,f,d,u,p,o,e)),o=[u,p];break}case"Z":r.push(...Ne(o[0],o[1],i[0],i[1],e)),o=[i[0],i[1]]}return{type:"path",ops:r}}function Ts(t,e){const n=[];for(const r of t)if(r.length){const i=e.maxRandomnessOffset||0,o=r.length;if(o>2){n.push({op:"move",data:[r[0][0]+at(i,e),r[0][1]+at(i,e)]});for(let s=1;s<o;s++)n.push({op:"lineTo",data:[r[s][0]+at(i,e),r[s][1]+at(i,e)]})}}return{type:"fillPath",ops:n}}function _n(t,e){return(function(n,r){let i=n.fillStyle||"hachure";if(!te[i])switch(i){case"zigzag":te[i]||(te[i]=new cb(r));break;case"cross-hatch":te[i]||(te[i]=new hb(r));break;case"dots":te[i]||(te[i]=new fb(r));break;case"dashed":te[i]||(te[i]=new ub(r));break;case"zigzag-line":te[i]||(te[i]=new db(r));break;default:i="hachure",te[i]||(te[i]=new Is(r))}return te[i]})(e,mb).fillPolygons(t,e)}function jf(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function Ff(t){return t.randomizer||(t.randomizer=new pb(t.seed||0)),t.randomizer.next()}function mi(t,e,n,r=1){return n.roughness*r*(Ff(n)*(e-t)+t)}function at(t,e,n=1){return mi(-t,t,e,n)}function Ne(t,e,n,r,i,o=!1){const s=o?i.disableMultiStrokeFill:i.disableMultiStroke,a=Hs(t,e,n,r,i,!0,!1);if(s)return a;const l=Hs(t,e,n,r,i,!0,!0);return a.concat(l)}function Hs(t,e,n,r,i,o,s){const a=Math.pow(t-n,2)+Math.pow(e-r,2),l=Math.sqrt(a);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let f=i.maxRandomnessOffset||0;f*f*100>a&&(f=l/10);const d=f/2,u=.2+.2*Ff(i);let p=i.bowing*i.maxRandomnessOffset*(r-e)/200,g=i.bowing*i.maxRandomnessOffset*(t-n)/200;p=at(p,i,c),g=at(g,i,c);const m=[],y=()=>at(d,i,c),_=()=>at(f,i,c),x=i.preserveVertices;return s?m.push({op:"move",data:[t+(x?0:y()),e+(x?0:y())]}):m.push({op:"move",data:[t+(x?0:at(f,i,c)),e+(x?0:at(f,i,c))]}),s?m.push({op:"bcurveTo",data:[p+t+(n-t)*u+y(),g+e+(r-e)*u+y(),p+t+2*(n-t)*u+y(),g+e+2*(r-e)*u+y(),n+(x?0:y()),r+(x?0:y())]}):m.push({op:"bcurveTo",data:[p+t+(n-t)*u+_(),g+e+(r-e)*u+_(),p+t+2*(n-t)*u+_(),g+e+2*(r-e)*u+_(),n+(x?0:_()),r+(x?0:_())]}),m}function yi(t,e,n){if(!t.length)return[];const r=[];r.push([t[0][0]+at(e,n),t[0][1]+at(e,n)]),r.push([t[0][0]+at(e,n),t[0][1]+at(e,n)]);for(let i=1;i<t.length;i++)r.push([t[i][0]+at(e,n),t[i][1]+at(e,n)]),i===t.length-1&&r.push([t[i][0]+at(e,n),t[i][1]+at(e,n)]);return xi(r,null,n)}function xi(t,e,n){const r=t.length,i=[];if(r>3){const o=[],s=1-n.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let a=1;a+2<r;a++){const l=t[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(s*t[a+1][0]-s*t[a-1][0])/6,l[1]+(s*t[a+1][1]-s*t[a-1][1])/6],o[2]=[t[a+1][0]+(s*t[a][0]-s*t[a+2][0])/6,t[a+1][1]+(s*t[a][1]-s*t[a+2][1])/6],o[3]=[t[a+1][0],t[a+1][1]],i.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else r===3?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):r===2&&i.push(...Hs(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return i}function Bf(t,e,n,r,i,o,s,a){const l=[],c=[];if(a.roughness===0){t/=4,c.push([e+r*Math.cos(-t),n+i*Math.sin(-t)]);for(let f=0;f<=2*Math.PI;f+=t){const d=[e+r*Math.cos(f),n+i*Math.sin(f)];l.push(d),c.push(d)}c.push([e+r*Math.cos(0),n+i*Math.sin(0)]),c.push([e+r*Math.cos(t),n+i*Math.sin(t)])}else{const f=at(.5,a)-Math.PI/2;c.push([at(o,a)+e+.9*r*Math.cos(f-t),at(o,a)+n+.9*i*Math.sin(f-t)]);const d=2*Math.PI+f-.01;for(let u=f;u<d;u+=t){const p=[at(o,a)+e+r*Math.cos(u),at(o,a)+n+i*Math.sin(u)];l.push(p),c.push(p)}c.push([at(o,a)+e+r*Math.cos(f+2*Math.PI+.5*s),at(o,a)+n+i*Math.sin(f+2*Math.PI+.5*s)]),c.push([at(o,a)+e+.98*r*Math.cos(f+s),at(o,a)+n+.98*i*Math.sin(f+s)]),c.push([at(o,a)+e+.9*r*Math.cos(f+.5*s),at(o,a)+n+.9*i*Math.sin(f+.5*s)])}return[c,l]}function Wf(t,e,n,r,i,o,s,a,l){const c=o+at(.1,l),f=[];f.push([at(a,l)+e+.9*r*Math.cos(c-t),at(a,l)+n+.9*i*Math.sin(c-t)]);for(let d=c;d<=s;d+=t)f.push([at(a,l)+e+r*Math.cos(d),at(a,l)+n+i*Math.sin(d)]);return f.push([e+r*Math.cos(s),n+i*Math.sin(s)]),f.push([e+r*Math.cos(s),n+i*Math.sin(s)]),xi(f,null,l)}function xb(t,e,n,r,i,o,s,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let f=[0,0];const d=a.disableMultiStroke?1:2,u=a.preserveVertices;for(let p=0;p<d;p++)p===0?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(u?0:at(c[0],a)),s[1]+(u?0:at(c[0],a))]}),f=u?[i,o]:[i+at(c[p],a),o+at(c[p],a)],l.push({op:"bcurveTo",data:[t+at(c[p],a),e+at(c[p],a),n+at(c[p],a),r+at(c[p],a),f[0],f[1]]});return l}function Kn(t){return[...t]}function Xf(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(n===3)r.push(Kn(t[0]),Kn(t[1]),Kn(t[2]),Kn(t[2]));else{const i=[];i.push(t[0],t[0]);for(let a=1;a<t.length;a++)i.push(t[a]),a===t.length-1&&i.push(t[a]);const o=[],s=1-e;r.push(Kn(i[0]));for(let a=1;a+2<i.length;a++){const l=i[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(s*i[a+1][0]-s*i[a-1][0])/6,l[1]+(s*i[a+1][1]-s*i[a-1][1])/6],o[2]=[i[a+1][0]+(s*i[a][0]-s*i[a+2][0])/6,i[a+1][1]+(s*i[a][1]-s*i[a+2][1])/6],o[3]=[i[a+1][0],i[a+1][1]],r.push(o[1],o[2],o[3])}}return r}function _i(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function _b(t,e,n){const r=_i(e,n);if(r===0)return _i(t,e);let i=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/r;return i=Math.max(0,Math.min(1,i)),_i(t,Ue(e,n,i))}function Ue(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function Ls(t,e,n,r){const i=r||[];if((function(a,l){const c=a[l+0],f=a[l+1],d=a[l+2],u=a[l+3];let p=3*f[0]-2*c[0]-u[0];p*=p;let g=3*f[1]-2*c[1]-u[1];g*=g;let m=3*d[0]-2*u[0]-c[0];m*=m;let y=3*d[1]-2*u[1]-c[1];return y*=y,p<m&&(p=m),g<y&&(g=y),p+g})(t,e)<n){const a=t[e+0];i.length?(o=i[i.length-1],s=a,Math.sqrt(_i(o,s))>1&&i.push(a)):i.push(a),i.push(t[e+3])}else{const l=t[e+0],c=t[e+1],f=t[e+2],d=t[e+3],u=Ue(l,c,.5),p=Ue(c,f,.5),g=Ue(f,d,.5),m=Ue(u,p,.5),y=Ue(p,g,.5),_=Ue(m,y,.5);Ls([l,u,m,_],0,n,i),Ls([_,y,g,d],0,n,i)}var o,s;return i}function bb(t,e){return bi(t,0,t.length,e)}function bi(t,e,n,r,i){const o=i||[],s=t[e],a=t[n-1];let l=0,c=1;for(let f=e+1;f<n-1;++f){const d=_b(t[f],s,a);d>l&&(l=d,c=f)}return Math.sqrt(l)>r?(bi(t,e,c+1,r,o),bi(t,c,n,r,o)):(o.length||o.push(s),o.push(a)),o}function Rs(t,e=.15,n){const r=[],i=(t.length-1)/3;for(let o=0;o<i;o++)Ls(t,3*o,e,r);return n&&n>0?bi(r,0,r.length,n):r}const oe="none";class wi{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*gr(2,31))}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,n,r){return{shape:e,sets:n||[],options:r||this.defaultOptions}}line(e,n,r,i,o){const s=this._o(o);return this._d("line",[Hf(e,n,r,i,s)],s)}rectangle(e,n,r,i,o){const s=this._o(o),a=[],l=yb(e,n,r,i,s);if(s.fill){const c=[[e,n],[e+r,n],[e+r,n+i],[e,n+i]];s.fillStyle==="solid"?a.push(Ts([c],s)):a.push(_n([c],s))}return s.stroke!==oe&&a.push(l),this._d("rectangle",a,s)}ellipse(e,n,r,i,o){const s=this._o(o),a=[],l=Rf(r,i,s),c=zs(e,n,s,l);if(s.fill)if(s.fillStyle==="solid"){const f=zs(e,n,s,l).opset;f.type="fillPath",a.push(f)}else a.push(_n([c.estimatedPoints],s));return s.stroke!==oe&&a.push(c.opset),this._d("ellipse",a,s)}circle(e,n,r,i){const o=this.ellipse(e,n,r,r,i);return o.shape="circle",o}linearPath(e,n){const r=this._o(n);return this._d("linearPath",[gi(e,!1,r)],r)}arc(e,n,r,i,o,s,a=!1,l){const c=this._o(l),f=[],d=Nf(e,n,r,i,o,s,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const u=Object.assign({},c);u.disableMultiStroke=!0;const p=Nf(e,n,r,i,o,s,!0,!1,u);p.type="fillPath",f.push(p)}else f.push((function(u,p,g,m,y,_,x){const b=u,w=p;let P=Math.abs(g/2),v=Math.abs(m/2);P+=at(.01*P,x),v+=at(.01*v,x);let $=y,M=_;for(;$<0;)$+=2*Math.PI,M+=2*Math.PI;M-$>2*Math.PI&&($=0,M=2*Math.PI);const I=(M-$)/x.curveStepCount,S=[];for(let C=$;C<=M;C+=I)S.push([b+P*Math.cos(C),w+v*Math.sin(C)]);return S.push([b+P*Math.cos(M),w+v*Math.sin(M)]),S.push([b,w]),_n([S],x)})(e,n,r,i,o,s,c));return c.stroke!==oe&&f.push(d),this._d("arc",f,c)}curve(e,n){const r=this._o(n),i=[],o=Lf(e,r);if(r.fill&&r.fill!==oe)if(r.fillStyle==="solid"){const s=Lf(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],a=e;if(a.length){const l=typeof a[0][0]=="number"?[a]:a;for(const c of l)c.length<3?s.push(...c):c.length===3?s.push(...Rs(Xf([c[0],c[0],c[1],c[2]]),10,(1+r.roughness)/2)):s.push(...Rs(Xf(c),10,(1+r.roughness)/2))}s.length&&i.push(_n([s],r))}return r.stroke!==oe&&i.push(o),this._d("curve",i,r)}polygon(e,n){const r=this._o(n),i=[],o=gi(e,!0,r);return r.fill&&(r.fillStyle==="solid"?i.push(Ts([e],r)):i.push(_n([e],r))),r.stroke!==oe&&i.push(o),this._d("polygon",i,r)}path(e,n){const r=this._o(n),i=[];if(!e)return this._d("path",i,r);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=r.fill&&r.fill!=="transparent"&&r.fill!==oe,s=r.stroke!==oe,a=!!(r.simplification&&r.simplification<1),l=(function(f,d,u){const p=zf(Ef(Es(f))),g=[];let m=[],y=[0,0],_=[];const x=()=>{_.length>=4&&m.push(...Rs(_,d)),_=[]},b=()=>{x(),m.length&&(g.push(m),m=[])};for(const{key:P,data:v}of p)switch(P){case"M":b(),y=[v[0],v[1]],m.push(y);break;case"L":x(),m.push([v[0],v[1]]);break;case"C":if(!_.length){const $=m.length?m[m.length-1]:y;_.push([$[0],$[1]])}_.push([v[0],v[1]]),_.push([v[2],v[3]]),_.push([v[4],v[5]]);break;case"Z":x(),m.push([y[0],y[1]])}if(b(),!u)return g;const w=[];for(const P of g){const v=bb(P,u);v.length&&w.push(v)}return w})(e,1,a?4-4*(r.simplification||1):(1+r.roughness)/2),c=Df(e,r);if(o)if(r.fillStyle==="solid")if(l.length===1){const f=Df(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else i.push(Ts(l,r));else i.push(_n(l,r));return s&&(a?l.forEach((f=>{i.push(gi(f,!1,r))})):i.push(c)),this._d("path",i,r)}opsToPath(e,n){let r="";for(const i of e.ops){const o=typeof n=="number"&&n>=0?i.data.map((s=>+s.toFixed(n))):i.data;switch(i.op){case"move":r+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":r+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":r+=`L${o[0]} ${o[1]} `}}return r.trim()}toPaths(e){const n=e.sets||[],r=e.options||this.defaultOptions,i=[];for(const o of n){let s=null;switch(o.type){case"path":s={d:this.opsToPath(o),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:oe};break;case"fillPath":s={d:this.opsToPath(o),stroke:oe,strokeWidth:0,fill:r.fill||oe};break;case"fillSketch":s=this.fillSketch(o,r)}s&&i.push(s)}return i}fillSketch(e,n){let r=n.fillWeight;return r<0&&(r=n.strokeWidth/2),{d:this.opsToPath(e),stroke:n.fill||oe,strokeWidth:r,fill:oe}}_mergedShape(e){return e.filter(((n,r)=>r===0||n.op!=="move"))}}class wb{constructor(e,n){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new wi(n)}draw(e){const n=e.sets||[],r=e.options||this.getDefaultOptions(),i=this.ctx,o=e.options.fixedDecimalPlaceDigits;for(const s of n)switch(s.type){case"path":i.save(),i.strokeStyle=r.stroke==="none"?"transparent":r.stroke,i.lineWidth=r.strokeWidth,r.strokeLineDash&&i.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(i.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(i,s,o),i.restore();break;case"fillPath":{i.save(),i.fillStyle=r.fill||"";const a=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,o,a),i.restore();break}case"fillSketch":this.fillSketch(i,s,r)}}fillSketch(e,n,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2),e.save(),r.fillLineDash&&e.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(e.lineDashOffset=r.fillLineDashOffset),e.strokeStyle=r.fill||"",e.lineWidth=i,this._drawToContext(e,n,r.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,n,r,i="nonzero"){e.beginPath();for(const o of n.ops){const s=typeof r=="number"&&r>=0?o.data.map((a=>+a.toFixed(r))):o.data;switch(o.op){case"move":e.moveTo(s[0],s[1]);break;case"bcurveTo":e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":e.lineTo(s[0],s[1])}}n.type==="fillPath"?e.fill(i):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,n,r,i,o){const s=this.gen.line(e,n,r,i,o);return this.draw(s),s}rectangle(e,n,r,i,o){const s=this.gen.rectangle(e,n,r,i,o);return this.draw(s),s}ellipse(e,n,r,i,o){const s=this.gen.ellipse(e,n,r,i,o);return this.draw(s),s}circle(e,n,r,i){const o=this.gen.circle(e,n,r,i);return this.draw(o),o}linearPath(e,n){const r=this.gen.linearPath(e,n);return this.draw(r),r}polygon(e,n){const r=this.gen.polygon(e,n);return this.draw(r),r}arc(e,n,r,i,o,s,a=!1,l){const c=this.gen.arc(e,n,r,i,o,s,a,l);return this.draw(c),c}curve(e,n){const r=this.gen.curve(e,n);return this.draw(r),r}path(e,n){const r=this.gen.path(e,n);return this.draw(r),r}}const vi="http://www.w3.org/2000/svg";class vb{constructor(e,n){this.svg=e,this.gen=new wi(n)}draw(e){const n=e.sets||[],r=e.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,o=i.createElementNS(vi,"g"),s=e.options.fixedDecimalPlaceDigits;for(const a of n){let l=null;switch(a.type){case"path":l=i.createElementNS(vi,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke",r.stroke),l.setAttribute("stroke-width",r.strokeWidth+""),l.setAttribute("fill","none"),r.strokeLineDash&&l.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":l=i.createElementNS(vi,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",r.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(i,a,r)}l&&o.appendChild(l)}return o}fillSketch(e,n,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const o=e.createElementNS(vi,"path");return o.setAttribute("d",this.opsToPath(n,r.fixedDecimalPlaceDigits)),o.setAttribute("stroke",r.fill||""),o.setAttribute("stroke-width",i+""),o.setAttribute("fill","none"),r.fillLineDash&&o.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,n){return this.gen.opsToPath(e,n)}line(e,n,r,i,o){const s=this.gen.line(e,n,r,i,o);return this.draw(s)}rectangle(e,n,r,i,o){const s=this.gen.rectangle(e,n,r,i,o);return this.draw(s)}ellipse(e,n,r,i,o){const s=this.gen.ellipse(e,n,r,i,o);return this.draw(s)}circle(e,n,r,i){const o=this.gen.circle(e,n,r,i);return this.draw(o)}linearPath(e,n){const r=this.gen.linearPath(e,n);return this.draw(r)}polygon(e,n){const r=this.gen.polygon(e,n);return this.draw(r)}arc(e,n,r,i,o,s,a=!1,l){const c=this.gen.arc(e,n,r,i,o,s,a,l);return this.draw(c)}curve(e,n){const r=this.gen.curve(e,n);return this.draw(r)}path(e,n){const r=this.gen.path(e,n);return this.draw(r)}}var $b={canvas:(t,e)=>new wb(t,e),svg:(t,e)=>new vb(t,e),generator:t=>new wi(t),newSeed:()=>wi.newSeed()},Pb=Object.defineProperty,Yf=Object.getOwnPropertySymbols,Mb=Object.prototype.hasOwnProperty,Ob=Object.prototype.propertyIsEnumerable,Vf=(t,e,n)=>e in t?Pb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Cb=(t,e)=>{for(var n in e||(e={}))Mb.call(e,n)&&Vf(t,n,e[n]);if(Yf)for(var n of Yf(e))Ob.call(e,n)&&Vf(t,n,e[n]);return t};function Sb(t,e,n){if(!t||!e){console.warn("Invalid node or svg element");return}const r=$b.svg(e,{options:{seed:1e3}}),i=ut("g");t.hasAttribute("transform")&&i.setAttribute("transform",t.getAttribute("transform")||"");const o=t.cloneNode();Le(o,{opacity:.5}),o.hasAttribute("transform")&&o.removeAttribute("transform"),o.classList.add("rough-volume"),i.appendChild(o);const s=Ab(r,t,n);if(s){const{element:l,svgAttributes:c}=s;l.classList.add("rough-element"),l.style.pointerEvents="none",Ib(l,c),i.appendChild(l)}t.id&&(i.id=t.id,o.setAttribute("id",`${t.id}-volume`),s!=null&&s.element&&s.element.setAttribute("id",`${t.id}-rough`)),Array.from(t.classList).forEach(l=>{i.classList.contains(l)||i.classList.add(l)}),Array.from(t.attributes).forEach(l=>{l.name.startsWith("data-")&&i.setAttribute(l.name,l.value)}),i.childElementCount>0?t.replaceWith(i):t.remove()}function Ib(t,e){e.opacity!==void 0&&t.setAttribute("opacity",String(e.opacity)),e.fillOpacity!==void 0&&t.setAttribute("fill-opacity",String(e.fillOpacity)),e.strokeOpacity!==void 0&&t.setAttribute("stroke-opacity",String(e.strokeOpacity)),e.strokeLinecap&&t.setAttribute("stroke-linecap",e.strokeLinecap),e.strokeLinejoin&&t.setAttribute("stroke-linejoin",e.strokeLinejoin),e.strokeDasharray&&t.setAttribute("stroke-dasharray",e.strokeDasharray),e.filter&&t.setAttribute("filter",e.filter),e.clipPath&&t.setAttribute("clip-path",e.clipPath),e.mask&&t.setAttribute("mask",e.mask)}function Ab(t,e,n){const r=e.nodeName.toLowerCase(),i=(o,s)=>{const a=Re(o,[...s,"fill","fill-opacity","stroke","stroke-opacity","stroke-width","stroke-dasharray","stroke-linecap","stroke-linejoin","opacity","filter","clip-path","mask"],!0),l={},c=Cb({},n),f={};s.forEach($=>{a[$]!==void 0&&(l[$]=a[$])});const{fill:d,"fill-opacity":u,stroke:p,"stroke-opacity":g,"stroke-width":m,"stroke-dasharray":y,"stroke-linecap":_,"stroke-linejoin":x,opacity:b,filter:w,"clip-path":P,mask:v}=a;if(c.fill=d||"none",c.stroke=p||(d&&d!=="none"?d:"currentColor"),m&&(c.strokeWidth=parseFloat(m)),y&&y!=="none"){const $=y.split(/[\s,]+/).map(M=>parseFloat(M)).filter(M=>!isNaN(M));$.length>0&&(c.strokeLineDash=$)}return u&&(f.fillOpacity=parseFloat(u)),g&&(f.strokeOpacity=parseFloat(g)),b&&(f.opacity=parseFloat(b)),_&&(f.strokeLinecap=_),x&&(f.strokeLinejoin=x),y&&y!=="none"&&(f.strokeDasharray=y),w&&(f.filter=w),P&&(f.clipPath=P),v&&(f.mask=v),[l,c,f]};try{let o=null,s={};switch(r){case"circle":{const[a,l,c]=i(e,["cx","cy","r"]),f=parseFloat(a.cx)||0,d=parseFloat(a.cy)||0,u=parseFloat(a.r)||0;o=t.circle(f,d,u*2,l),s=c;break}case"ellipse":{const[a,l,c]=i(e,["cx","cy","rx","ry"]),f=parseFloat(a.cx)||0,d=parseFloat(a.cy)||0,u=parseFloat(a.rx)||0,p=parseFloat(a.ry)||0;o=t.ellipse(f,d,u*2,p*2,l),s=c;break}case"line":{const[a,l,c]=i(e,["x1","y1","x2","y2"]),f=parseFloat(a.x1)||0,d=parseFloat(a.y1)||0,u=parseFloat(a.x2)||0,p=parseFloat(a.y2)||0;o=t.line(f,d,u,p,l),s=c;break}case"rect":{const[a,l,c]=i(e,["x","y","width","height","rx","ry"]),f=parseFloat(a.x)||0,d=parseFloat(a.y)||0,u=parseFloat(a.width)||0,p=parseFloat(a.height)||0,g=parseFloat(a.rx)||0,m=parseFloat(a.ry)||0;if(g>0||m>0){const x=kb(f,d,u,p,g||m,m||g);o=t.path(x,l)}else o=t.rectangle(f,d,u,p,l);s=c;break}case"path":{const[a,l,c]=i(e,["d"]),f=a.d||"";if(!f)return console.warn("Path element has no d attribute"),null;o=t.path(f,l),s=c;break}case"polygon":{const[a,l,c]=i(e,["points"]),f=qf(a.points||"");if(f.length<3)return console.warn("Polygon needs at least 3 points"),null;o=t.polygon(f,l),s=c;break}case"polyline":{const[a,l,c]=i(e,["points"]),f=qf(a.points||"");if(f.length<2)return console.warn("Polyline needs at least 2 points"),null;o=t.linearPath(f,l),s=c;break}default:return console.warn(`Unsupported shape type: ${r}`),null}return o?{element:o,svgAttributes:s}:null}catch(o){return console.error(`Error creating rough shape for ${r}:`,o),null}}function kb(t,e,n,r,i,o){return i=Math.min(i,n/2),o=Math.min(o,r/2),`
|
|
19
|
+
</symbol>`);r&&(r.setAttribute("id",Sf),e.appendChild(r)),t.prepend(e)}function If(t,e){const{id:n,x:r=0,y:i=0,width:o=0,height:s=0}=De(t,["id","x","y","width","height"]),a=ut("g",{id:n,class:"btn-group",transform:`translate(${r}, ${i})`,"data-element-type":Ne.Button}),l=t.getAttribute("data-items");l&&a.setAttribute("data-items",l);const c=Math.max(+o,+s)/2,f=ut("circle",{cx:c,cy:c,r:c,fill:"#fff",stroke:"transparent"});a.appendChild(f);const u=ut("use",{href:`#${e}`,width:o,height:s});a.appendChild(u),a.style.cursor="pointer",t.replaceWith(a)}function u5(t){If(t,Cf)}function d5(t){If(t,Sf)}function _i(t,e){return Object.entries(e).reduce((r,[i,o])=>{if(typeof o=="function"){const s=o(t.getAttribute(i));s&&(r[i]=s)}else Object.assign(r,{[i]:o});return r},{})}function Af(t){return t.replace(/#|%|\.| |\/|\(|\)/g,"").replace(/,/g,"-")}var p5=Object.defineProperty,Ef=Object.getOwnPropertySymbols,g5=Object.prototype.hasOwnProperty,m5=Object.prototype.propertyIsEnumerable,kf=(t,e,n)=>e in t?p5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Hs=(t,e)=>{for(var n in e||(e={}))g5.call(e,n)&&kf(t,n,e[n]);if(Ef)for(var n of Ef(e))m5.call(e,n)&&kf(t,n,e[n]);return t};function y5(t,e,n,r){var i;if(!n)return null;const{themeConfig:o}=r,s=Hs({},(i=o.item)==null?void 0:i.icon),a=_i(e,s);return _5(t,e,n,a)}function _5(t,e,n,r){return jh(t,n),ux(n,Hs(Hs({},De(e,["id","x","y","width","height","fill","stroke"])),r))}var x5=Object.defineProperty,b5=Object.defineProperties,v5=Object.getOwnPropertyDescriptors,xi=Object.getOwnPropertySymbols,Tf=Object.prototype.hasOwnProperty,zf=Object.prototype.propertyIsEnumerable,Hf=(t,e,n)=>e in t?x5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bi=(t,e)=>{for(var n in e||(e={}))Tf.call(e,n)&&Hf(t,n,e[n]);if(xi)for(var n of xi(e))zf.call(e,n)&&Hf(t,n,e[n]);return t},Lf=(t,e)=>b5(t,v5(e)),w5=(t,e)=>{var n={};for(var r in t)Tf.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&xi)for(var r of xi(t))e.indexOf(r)<0&&zf.call(t,r)&&(n[r]=t[r]);return n};function Rf(t,e,n){if(!n)return null;const r=Ms(n);if(!r)return null;const i=Os(r),o=$5(t,e,i);jh(t,r);const{data:s,color:a}=r;return P5(i,bi(Lf(bi({},M5(e)),{"clip-path":`url(#${o})`}),a?{color:a}:{}),s)}function $5(t,e,n){const r=`clip-${n}-${t5()}`;if(t.querySelector(`#${r}`))return r;const i=mi(t),o=ut("clipPath",{id:r}),s=e.cloneNode();return rx(s,["id","data-illus-bounds","data-element-type"]),o.appendChild(s),i.appendChild(o),r}function P5(t,e,n){const r=e,{"clip-path":i}=r,o=w5(r,["clip-path"]),{x:s="0",y:a="0",width:l="0",height:c="0"}=o,f=ut("rect",{id:`${t}-volume`,"data-element-type":Ne.IllusVolume,x:s,y:a,width:l,height:c,fill:"transparent"}),u=ut("g",{"data-element-type":Ne.IllusGroup,"clip-path":i,id:`${t}-group`});u.appendChild(f);const d=ut("use",Lf(bi({id:t,fill:"lightgray"},o),{href:Lh(n),"data-element-type":Ne.Illus}));return u.appendChild(d),u}function M5(t){const e=t.getAttribute("data-illus-bounds");if(!e)return bi({x:"0",y:"0",width:"0",height:"0"},De(t,["x","y","width","height"]));const[n,r,i,o]=e.split(" ");return{x:n,y:r,width:i,height:o}}var O5=Object.defineProperty,Nf=Object.getOwnPropertySymbols,C5=Object.prototype.hasOwnProperty,S5=Object.prototype.propertyIsEnumerable,jf=(t,e,n)=>e in t?O5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,I5=(t,e)=>{for(var n in e||(e={}))C5.call(e,n)&&jf(t,n,e[n]);if(Nf)for(var n of Nf(e))S5.call(e,n)&&jf(t,n,e[n]);return t};function Df(t,e,n,r){const i=t.getAttribute(r),o=A5(i,n),{type:s,colors:a=[]}=o,l=a.length-1,c=a.map((p,g)=>typeof p=="string"?ut("stop",{offset:`${g/l}`,"stop-color":p}):ut("stop",{offset:`${p.offset}`,"stop-color":p.color})),f=E5(n);if(s==="linear-gradient"){const{angle:p=0}=o,[[g,m],[y,x]]=k5(p),_=ut("linearGradient",{id:f,x1:g,y1:m,x2:y,y2:x});c.forEach(b=>_.appendChild(b)),Bf(e,f,_)}else if(s==="radial-gradient"){const p=ut("radialGradient",{id:f});c.forEach(g=>p.appendChild(g)),Bf(e,f,p)}const u=t.getAttribute("fill"),d=t.getAttribute("stroke");Qn(u)&&t.setAttribute("fill",`url(#${f})`),Qn(d)&&t.setAttribute("stroke",`url(#${f})`)}function Bf(t,e,n){const r=mi(t);n.setAttribute("id",e);const i=r.querySelector(`#${e}`);i?i.replaceWith(n):r.appendChild(n)}function A5(t,e){var n;if((n=e.colors)!=null&&n.length||!t)return e;const r=tt(t),i=I5({},e);return i.colors=r.isDark()?[t,r.lighten(20).toHexString()]:[r.darken(20).toHexString(),t],!("angle"in e)&&i.type==="linear-gradient"&&(i.angle=225),i}function E5(t){const{type:e,colors:n=[]}=t,r=Af(n.map(i=>typeof i=="string"?i:`${i.color}_${i.offset}`).join("-"));if(e==="linear-gradient"){const{angle:i=0}=t;return`${e}-${r}-${i}`}return`${e}-${r}`}function k5(t){const e=Math.PI/180*t,n=Math.cos(e),r=Math.sin(e);return[[.5-n/2,.5-r/2],[.5+n/2,.5+r/2]]}const T5=Object.freeze(Object.defineProperty({__proto__:null,diamond:({scale:t=.5,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-diamond",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("path",{d:"M0,0 L20,20 M20,0 L0,20",stroke:n,"stroke-width":"1"});return r.appendChild(i),r.appendChild(o),r},dot:({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-dot",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("circle",{cx:"5",cy:"5",r:"3",fill:n}),s=ut("circle",{cx:"15",cy:"15",r:"3",fill:n});return r.appendChild(i),r.appendChild(o),r.appendChild(s),r},hex:({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-hex",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("path",{d:"M10,0 L20,5 L20,15 L10,20 L0,15 L0,5 Z",fill:n});return r.appendChild(i),r.appendChild(o),r},line:({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const o=ut("pattern",{id:"pattern-line",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),s=ut("rect",{width:"100%",height:"100%",fill:e}),a=ut("line",{x1:"7",y1:"-3",x2:"23",y2:"13",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"}),l=ut("line",{x1:"-3",y1:"7",x2:"13",y2:"23",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"});return o.appendChild(s),o.appendChild(a),o.appendChild(l),o},mosaic:({scale:t=1,backgroundColor:e="#ffffff",foregroundColor:n="#000000"})=>{const a=ut("pattern",{id:"pattern-mosaic",width:20,height:20,patternUnits:"userSpaceOnUse",patternTransform:`scale(${t})`}),l=ut("rect",{width:"100%",height:"100%",fill:e});a.appendChild(l);for(let c=0;c<4;c++)for(let f=0;f<4;f++)if((f+c)%2===0){const u=ut("rect",{x:f*5,y:c*5,width:5,height:5,fill:n});a.appendChild(u)}return a},square:({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-square",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("path",{d:"M0,0 L20,0 L20,20 L0,20 Z",fill:n});return r.appendChild(i),r.appendChild(o),r}},Symbol.toStringTag,{value:"Module"}));var z5=Object.defineProperty,vi=Object.getOwnPropertySymbols,Ff=Object.prototype.hasOwnProperty,Wf=Object.prototype.propertyIsEnumerable,Xf=(t,e,n)=>e in t?z5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ls=(t,e)=>{for(var n in e||(e={}))Ff.call(e,n)&&Xf(t,n,e[n]);if(vi)for(var n of vi(e))Wf.call(e,n)&&Xf(t,n,e[n]);return t},H5=(t,e)=>{var n={};for(var r in t)Ff.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&vi)for(var r of vi(t))e.indexOf(r)<0&&Wf.call(t,r)&&(n[r]=t[r]);return n};const Rs=new Map;function L5(t,e){Rs.has(t)&&console.warn(`Pattern ${t} will be overwritten`),Rs.set(t,e)}for(const[t,e]of Object.entries(T5))L5(t,e);function R5(t,e,n){const r=n.themeConfig.stylize;if(!r||r.type!=="pattern")return;const i=r,{pattern:o}=i,s=H5(i,["pattern"]),a=Rs.get(o);if(!a)return console.warn(`Pattern ${o} not found`);const{fill:l}=De(t,["fill","stroke"]),c=l,f=Ls({backgroundColor:c,foregroundColor:c},s),u=j5(Ls(Ls({},r),f));N5(e,u,a(f)),Qn(l)&&(t.setAttribute("fill",`url(#${u})`),!t.getAttribute("stroke")&&l&&t.setAttribute("stroke",l))}function N5(t,e,n){const r=mi(t);n.setAttribute("id",e);const i=r.querySelector(`pattern#${e}`);i?i.replaceWith(n):r.appendChild(n)}function j5(t){const{pattern:e,foregroundColor:n="unset",backgroundColor:r="unset",scale:i="unset"}=t;return Af(`pattern-${e}-${n}-${r}-${i}`)}function Ns(t,e,n){if(t&&t.length){const[r,i]=e,o=Math.PI/180*n,s=Math.cos(o),a=Math.sin(o);for(const l of t){const[c,f]=l;l[0]=(c-r)*s-(f-i)*a+r,l[1]=(c-r)*a+(f-i)*s+i}}}function D5(t,e){return t[0]===e[0]&&t[1]===e[1]}function B5(t,e,n,r=1){const i=n,o=Math.max(e,.1),s=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,a=[0,0];if(i)for(const c of s)Ns(c,a,i);const l=(function(c,f,u){const d=[];for(const _ of c){const b=[..._];D5(b[0],b[b.length-1])||b.push([b[0][0],b[0][1]]),b.length>2&&d.push(b)}const p=[];f=Math.max(f,.1);const g=[];for(const _ of d)for(let b=0;b<_.length-1;b++){const v=_[b],P=_[b+1];if(v[1]!==P[1]){const w=Math.min(v[1],P[1]);g.push({ymin:w,ymax:Math.max(v[1],P[1]),x:w===v[1]?v[0]:P[0],islope:(P[0]-v[0])/(P[1]-v[1])})}}if(g.sort(((_,b)=>_.ymin<b.ymin?-1:_.ymin>b.ymin?1:_.x<b.x?-1:_.x>b.x?1:_.ymax===b.ymax?0:(_.ymax-b.ymax)/Math.abs(_.ymax-b.ymax))),!g.length)return p;let m=[],y=g[0].ymin,x=0;for(;m.length||g.length;){if(g.length){let _=-1;for(let b=0;b<g.length&&!(g[b].ymin>y);b++)_=b;g.splice(0,_+1).forEach((b=>{m.push({s:y,edge:b})}))}if(m=m.filter((_=>!(_.edge.ymax<=y))),m.sort(((_,b)=>_.edge.x===b.edge.x?0:(_.edge.x-b.edge.x)/Math.abs(_.edge.x-b.edge.x))),(u!==1||x%f==0)&&m.length>1)for(let _=0;_<m.length;_+=2){const b=_+1;if(b>=m.length)break;const v=m[_].edge,P=m[b].edge;p.push([[Math.round(v.x),y],[Math.round(P.x),y]])}y+=u,m.forEach((_=>{_.edge.x=_.edge.x+u*_.edge.islope})),x++}return p})(s,o,r);if(i){for(const c of s)Ns(c,a,-i);(function(c,f,u){const d=[];c.forEach((p=>d.push(...p))),Ns(d,f,u)})(l,a,-i)}return l}function ir(t,e){var n;const r=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return e.roughness>=1&&(((n=e.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(o=i),B5(t,i,r,o||1)}class js{constructor(e){this.helper=e}fillPolygons(e,n){return this._fillPolygons(e,n)}_fillPolygons(e,n){const r=ir(e,n);return{type:"fillSketch",ops:this.renderLines(r,n)}}renderLines(e,n){const r=[];for(const i of e)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],n));return r}}function wi(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class F5 extends js{fillPolygons(e,n){let r=n.hachureGap;r<0&&(r=4*n.strokeWidth),r=Math.max(r,.1);const i=ir(e,Object.assign({},n,{hachureGap:r})),o=Math.PI/180*n.hachureAngle,s=[],a=.5*r*Math.cos(o),l=.5*r*Math.sin(o);for(const[c,f]of i)wi([c,f])&&s.push([[c[0]-a,c[1]+l],[...f]],[[c[0]+a,c[1]-l],[...f]]);return{type:"fillSketch",ops:this.renderLines(s,n)}}}class W5 extends js{fillPolygons(e,n){const r=this._fillPolygons(e,n),i=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),o=this._fillPolygons(e,i);return r.ops=r.ops.concat(o.ops),r}}class X5{constructor(e){this.helper=e}fillPolygons(e,n){const r=ir(e,n=Object.assign({},n,{hachureAngle:0}));return this.dotsOnLines(r,n)}dotsOnLines(e,n){const r=[];let i=n.hachureGap;i<0&&(i=4*n.strokeWidth),i=Math.max(i,.1);let o=n.fillWeight;o<0&&(o=n.strokeWidth/2);const s=i/4;for(const a of e){const l=wi(a),c=l/i,f=Math.ceil(c)-1,u=l-f*i,d=(a[0][0]+a[1][0])/2-i/4,p=Math.min(a[0][1],a[1][1]);for(let g=0;g<f;g++){const m=p+u+g*i,y=d-s+2*Math.random()*s,x=m-s+2*Math.random()*s,_=this.helper.ellipse(y,x,o,o,n);r.push(..._.ops)}}return{type:"fillSketch",ops:r}}}let Y5=class{constructor(e){this.helper=e}fillPolygons(e,n){const r=ir(e,n);return{type:"fillSketch",ops:this.dashedLine(r,n)}}dashedLine(e,n){const r=n.dashOffset<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashOffset,i=n.dashGap<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashGap,o=[];return e.forEach((s=>{const a=wi(s),l=Math.floor(a/(r+i)),c=(a+i-l*(r+i))/2;let f=s[0],u=s[1];f[0]>u[0]&&(f=s[1],u=s[0]);const d=Math.atan((u[1]-f[1])/(u[0]-f[0]));for(let p=0;p<l;p++){const g=p*(r+i),m=g+r,y=[f[0]+g*Math.cos(d)+c*Math.cos(d),f[1]+g*Math.sin(d)+c*Math.sin(d)],x=[f[0]+m*Math.cos(d)+c*Math.cos(d),f[1]+m*Math.sin(d)+c*Math.sin(d)];o.push(...this.helper.doubleLineOps(y[0],y[1],x[0],x[1],n))}})),o}};class V5{constructor(e){this.helper=e}fillPolygons(e,n){const r=n.hachureGap<0?4*n.strokeWidth:n.hachureGap,i=n.zigzagOffset<0?r:n.zigzagOffset,o=ir(e,n=Object.assign({},n,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(o,i,n)}}zigzagLines(e,n,r){const i=[];return e.forEach((o=>{const s=wi(o),a=Math.round(s/(2*n));let l=o[0],c=o[1];l[0]>c[0]&&(l=o[1],c=o[0]);const f=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let u=0;u<a;u++){const d=2*u*n,p=2*(u+1)*n,g=Math.sqrt(2*Math.pow(n,2)),m=[l[0]+d*Math.cos(f),l[1]+d*Math.sin(f)],y=[l[0]+p*Math.cos(f),l[1]+p*Math.sin(f)],x=[m[0]+g*Math.cos(f+Math.PI/4),m[1]+g*Math.sin(f+Math.PI/4)];i.push(...this.helper.doubleLineOps(m[0],m[1],x[0],x[1],r),...this.helper.doubleLineOps(x[0],x[1],y[0],y[1],r))}})),i}}const ee={};class q5{constructor(e){this.seed=e}next(){return this.seed?(Pr(2,31)-1&(this.seed=Math.imul(48271,this.seed)))/Pr(2,31):Math.random()}}const G5=0,Ds=1,Yf=2,$i={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Bs(t,e){return t.type===e}function Fs(t){const e=[],n=(function(s){const a=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))a[a.length]={type:G5,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];a[a.length]={type:Ds,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return a[a.length]={type:Yf,text:""},a})(t);let r="BOD",i=0,o=n[i];for(;!Bs(o,Yf);){let s=0;const a=[];if(r==="BOD"){if(o.text!=="M"&&o.text!=="m")return Fs("M0,0"+t);i++,s=$i[o.text],r=o.text}else Bs(o,Ds)?s=$i[r]:(i++,s=$i[o.text],r=o.text);if(!(i+s<n.length))throw new Error("Path data ended short");for(let l=i;l<i+s;l++){const c=n[l];if(!Bs(c,Ds))throw new Error("Param not a number: "+r+","+c.text);a[a.length]=+c.text}if(typeof $i[r]!="number")throw new Error("Bad segment: "+r);{const l={key:r,data:a};e.push(l),i+=s,o=n[i],r==="M"&&(r="L"),r==="m"&&(r="l")}}return e}function Vf(t){let e=0,n=0,r=0,i=0;const o=[];for(const{key:s,data:a}of t)switch(s){case"M":o.push({key:"M",data:[...a]}),[e,n]=a,[r,i]=a;break;case"m":e+=a[0],n+=a[1],o.push({key:"M",data:[e,n]}),r=e,i=n;break;case"L":o.push({key:"L",data:[...a]}),[e,n]=a;break;case"l":e+=a[0],n+=a[1],o.push({key:"L",data:[e,n]});break;case"C":o.push({key:"C",data:[...a]}),e=a[4],n=a[5];break;case"c":{const l=a.map(((c,f)=>f%2?c+n:c+e));o.push({key:"C",data:l}),e=l[4],n=l[5];break}case"Q":o.push({key:"Q",data:[...a]}),e=a[2],n=a[3];break;case"q":{const l=a.map(((c,f)=>f%2?c+n:c+e));o.push({key:"Q",data:l}),e=l[2],n=l[3];break}case"A":o.push({key:"A",data:[...a]}),e=a[5],n=a[6];break;case"a":e+=a[5],n+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,n]});break;case"H":o.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...a]}),e=a[2],n=a[3];break;case"s":{const l=a.map(((c,f)=>f%2?c+n:c+e));o.push({key:"S",data:l}),e=l[2],n=l[3];break}case"T":o.push({key:"T",data:[...a]}),e=a[0],n=a[1];break;case"t":e+=a[0],n+=a[1],o.push({key:"T",data:[e,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=r,n=i}return o}function qf(t){const e=[];let n="",r=0,i=0,o=0,s=0,a=0,l=0;for(const{key:c,data:f}of t){switch(c){case"M":e.push({key:"M",data:[...f]}),[r,i]=f,[o,s]=f;break;case"C":e.push({key:"C",data:[...f]}),r=f[4],i=f[5],a=f[2],l=f[3];break;case"L":e.push({key:"L",data:[...f]}),[r,i]=f;break;case"H":r=f[0],e.push({key:"L",data:[r,i]});break;case"V":i=f[0],e.push({key:"L",data:[r,i]});break;case"S":{let u=0,d=0;n==="C"||n==="S"?(u=r+(r-a),d=i+(i-l)):(u=r,d=i),e.push({key:"C",data:[u,d,...f]}),a=f[0],l=f[1],r=f[2],i=f[3];break}case"T":{const[u,d]=f;let p=0,g=0;n==="Q"||n==="T"?(p=r+(r-a),g=i+(i-l)):(p=r,g=i);const m=r+2*(p-r)/3,y=i+2*(g-i)/3,x=u+2*(p-u)/3,_=d+2*(g-d)/3;e.push({key:"C",data:[m,y,x,_,u,d]}),a=p,l=g,r=u,i=d;break}case"Q":{const[u,d,p,g]=f,m=r+2*(u-r)/3,y=i+2*(d-i)/3,x=p+2*(u-p)/3,_=g+2*(d-g)/3;e.push({key:"C",data:[m,y,x,_,p,g]}),a=u,l=d,r=p,i=g;break}case"A":{const u=Math.abs(f[0]),d=Math.abs(f[1]),p=f[2],g=f[3],m=f[4],y=f[5],x=f[6];u===0||d===0?(e.push({key:"C",data:[r,i,y,x,y,x]}),r=y,i=x):(r!==y||i!==x)&&(Gf(r,i,y,x,u,d,p,g,m).forEach((function(_){e.push({key:"C",data:_})})),r=y,i=x);break}case"Z":e.push({key:"Z",data:[]}),r=o,i=s}n=c}return e}function or(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function Gf(t,e,n,r,i,o,s,a,l,c){const f=(u=s,Math.PI*u/180);var u;let d=[],p=0,g=0,m=0,y=0;if(c)[p,g,m,y]=c;else{[t,e]=or(t,e,-f),[n,r]=or(n,r,-f);const A=(t-n)/2,R=(e-r)/2;let D=A*A/(i*i)+R*R/(o*o);D>1&&(D=Math.sqrt(D),i*=D,o*=D);const k=i*i,j=o*o,L=k*j-k*R*R-j*A*A,H=k*R*R+j*A*A,N=(a===l?-1:1)*Math.sqrt(Math.abs(L/H));m=N*i*R/o+(t+n)/2,y=N*-o*A/i+(e+r)/2,p=Math.asin(parseFloat(((e-y)/o).toFixed(9))),g=Math.asin(parseFloat(((r-y)/o).toFixed(9))),t<m&&(p=Math.PI-p),n<m&&(g=Math.PI-g),p<0&&(p=2*Math.PI+p),g<0&&(g=2*Math.PI+g),l&&p>g&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let x=g-p;if(Math.abs(x)>120*Math.PI/180){const A=g,R=n,D=r;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,d=Gf(n=m+i*Math.cos(g),r=y+o*Math.sin(g),R,D,i,o,s,0,l,[g,A,m,y])}x=g-p;const _=Math.cos(p),b=Math.sin(p),v=Math.cos(g),P=Math.sin(g),w=Math.tan(x/4),$=4/3*i*w,M=4/3*o*w,I=[t,e],S=[t+$*b,e-M*_],C=[n+$*P,r-M*v],E=[n,r];if(S[0]=2*I[0]-S[0],S[1]=2*I[1]-S[1],c)return[S,C,E].concat(d);{d=[S,C,E].concat(d);const A=[];for(let R=0;R<d.length;R+=3){const D=or(d[R][0],d[R][1],f),k=or(d[R+1][0],d[R+1][1],f),j=or(d[R+2][0],d[R+2][1],f);A.push([D[0],D[1],k[0],k[1],j[0],j[1]])}return A}}const U5={randOffset:function(t,e){return at(t,e)},randOffsetWithRange:function(t,e,n){return Mi(t,e,n)},ellipse:function(t,e,n,r,i){const o=Qf(n,r,i);return Ws(t,e,i,o).opset},doubleLineOps:function(t,e,n,r,i){return Be(t,e,n,r,i,!0)}};function Uf(t,e,n,r,i){return{type:"path",ops:Be(t,e,n,r,i)}}function Pi(t,e,n){const r=(t||[]).length;if(r>2){const i=[];for(let o=0;o<r-1;o++)i.push(...Be(t[o][0],t[o][1],t[o+1][0],t[o+1][1],n));return e&&i.push(...Be(t[r-1][0],t[r-1][1],t[0][0],t[0][1],n)),{type:"path",ops:i}}return r===2?Uf(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function Z5(t,e,n,r,i){return(function(o,s){return Pi(o,!0,s)})([[t,e],[t+n,e],[t+n,e+r],[t,e+r]],i)}function Zf(t,e){if(t.length){const n=typeof t[0][0]=="number"?[t]:t,r=Oi(n[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:Oi(n[0],1.5*(1+.22*e.roughness),tu(e));for(let o=1;o<n.length;o++){const s=n[o];if(s.length){const a=Oi(s,1*(1+.2*e.roughness),e),l=e.disableMultiStroke?[]:Oi(s,1.5*(1+.22*e.roughness),tu(e));for(const c of a)c.op!=="move"&&r.push(c);for(const c of l)c.op!=="move"&&i.push(c)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function Qf(t,e,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),o=2*Math.PI/i;let s=Math.abs(t/2),a=Math.abs(e/2);const l=1-n.curveFitting;return s+=at(s*l,n),a+=at(a*l,n),{increment:o,rx:s,ry:a}}function Ws(t,e,n,r){const[i,o]=nu(r.increment,t,e,r.rx,r.ry,1,r.increment*Mi(.1,Mi(.4,1,n),n),n);let s=Ci(i,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[a]=nu(r.increment,t,e,r.rx,r.ry,1.5,0,n),l=Ci(a,null,n);s=s.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function Kf(t,e,n,r,i,o,s,a,l){const c=t,f=e;let u=Math.abs(n/2),d=Math.abs(r/2);u+=at(.01*u,l),d+=at(.01*d,l);let p=i,g=o;for(;p<0;)p+=2*Math.PI,g+=2*Math.PI;g-p>2*Math.PI&&(p=0,g=2*Math.PI);const m=2*Math.PI/l.curveStepCount,y=Math.min(m/2,(g-p)/2),x=ru(y,c,f,u,d,p,g,1,l);if(!l.disableMultiStroke){const _=ru(y,c,f,u,d,p,g,1.5,l);x.push(..._)}return s&&(a?x.push(...Be(c,f,c+u*Math.cos(p),f+d*Math.sin(p),l),...Be(c,f,c+u*Math.cos(g),f+d*Math.sin(g),l)):x.push({op:"lineTo",data:[c,f]},{op:"lineTo",data:[c+u*Math.cos(p),f+d*Math.sin(p)]})),{type:"path",ops:x}}function Jf(t,e){const n=qf(Vf(Fs(t))),r=[];let i=[0,0],o=[0,0];for(const{key:s,data:a}of n)switch(s){case"M":o=[a[0],a[1]],i=[a[0],a[1]];break;case"L":r.push(...Be(o[0],o[1],a[0],a[1],e)),o=[a[0],a[1]];break;case"C":{const[l,c,f,u,d,p]=a;r.push(...Q5(l,c,f,u,d,p,o,e)),o=[d,p];break}case"Z":r.push(...Be(o[0],o[1],i[0],i[1],e)),o=[i[0],i[1]]}return{type:"path",ops:r}}function Xs(t,e){const n=[];for(const r of t)if(r.length){const i=e.maxRandomnessOffset||0,o=r.length;if(o>2){n.push({op:"move",data:[r[0][0]+at(i,e),r[0][1]+at(i,e)]});for(let s=1;s<o;s++)n.push({op:"lineTo",data:[r[s][0]+at(i,e),r[s][1]+at(i,e)]})}}return{type:"fillPath",ops:n}}function Pn(t,e){return(function(n,r){let i=n.fillStyle||"hachure";if(!ee[i])switch(i){case"zigzag":ee[i]||(ee[i]=new F5(r));break;case"cross-hatch":ee[i]||(ee[i]=new W5(r));break;case"dots":ee[i]||(ee[i]=new X5(r));break;case"dashed":ee[i]||(ee[i]=new Y5(r));break;case"zigzag-line":ee[i]||(ee[i]=new V5(r));break;default:i="hachure",ee[i]||(ee[i]=new js(r))}return ee[i]})(e,U5).fillPolygons(t,e)}function tu(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function eu(t){return t.randomizer||(t.randomizer=new q5(t.seed||0)),t.randomizer.next()}function Mi(t,e,n,r=1){return n.roughness*r*(eu(n)*(e-t)+t)}function at(t,e,n=1){return Mi(-t,t,e,n)}function Be(t,e,n,r,i,o=!1){const s=o?i.disableMultiStrokeFill:i.disableMultiStroke,a=Ys(t,e,n,r,i,!0,!1);if(s)return a;const l=Ys(t,e,n,r,i,!0,!0);return a.concat(l)}function Ys(t,e,n,r,i,o,s){const a=Math.pow(t-n,2)+Math.pow(e-r,2),l=Math.sqrt(a);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let f=i.maxRandomnessOffset||0;f*f*100>a&&(f=l/10);const u=f/2,d=.2+.2*eu(i);let p=i.bowing*i.maxRandomnessOffset*(r-e)/200,g=i.bowing*i.maxRandomnessOffset*(t-n)/200;p=at(p,i,c),g=at(g,i,c);const m=[],y=()=>at(u,i,c),x=()=>at(f,i,c),_=i.preserveVertices;return s?m.push({op:"move",data:[t+(_?0:y()),e+(_?0:y())]}):m.push({op:"move",data:[t+(_?0:at(f,i,c)),e+(_?0:at(f,i,c))]}),s?m.push({op:"bcurveTo",data:[p+t+(n-t)*d+y(),g+e+(r-e)*d+y(),p+t+2*(n-t)*d+y(),g+e+2*(r-e)*d+y(),n+(_?0:y()),r+(_?0:y())]}):m.push({op:"bcurveTo",data:[p+t+(n-t)*d+x(),g+e+(r-e)*d+x(),p+t+2*(n-t)*d+x(),g+e+2*(r-e)*d+x(),n+(_?0:x()),r+(_?0:x())]}),m}function Oi(t,e,n){if(!t.length)return[];const r=[];r.push([t[0][0]+at(e,n),t[0][1]+at(e,n)]),r.push([t[0][0]+at(e,n),t[0][1]+at(e,n)]);for(let i=1;i<t.length;i++)r.push([t[i][0]+at(e,n),t[i][1]+at(e,n)]),i===t.length-1&&r.push([t[i][0]+at(e,n),t[i][1]+at(e,n)]);return Ci(r,null,n)}function Ci(t,e,n){const r=t.length,i=[];if(r>3){const o=[],s=1-n.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let a=1;a+2<r;a++){const l=t[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(s*t[a+1][0]-s*t[a-1][0])/6,l[1]+(s*t[a+1][1]-s*t[a-1][1])/6],o[2]=[t[a+1][0]+(s*t[a][0]-s*t[a+2][0])/6,t[a+1][1]+(s*t[a][1]-s*t[a+2][1])/6],o[3]=[t[a+1][0],t[a+1][1]],i.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else r===3?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):r===2&&i.push(...Ys(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return i}function nu(t,e,n,r,i,o,s,a){const l=[],c=[];if(a.roughness===0){t/=4,c.push([e+r*Math.cos(-t),n+i*Math.sin(-t)]);for(let f=0;f<=2*Math.PI;f+=t){const u=[e+r*Math.cos(f),n+i*Math.sin(f)];l.push(u),c.push(u)}c.push([e+r*Math.cos(0),n+i*Math.sin(0)]),c.push([e+r*Math.cos(t),n+i*Math.sin(t)])}else{const f=at(.5,a)-Math.PI/2;c.push([at(o,a)+e+.9*r*Math.cos(f-t),at(o,a)+n+.9*i*Math.sin(f-t)]);const u=2*Math.PI+f-.01;for(let d=f;d<u;d+=t){const p=[at(o,a)+e+r*Math.cos(d),at(o,a)+n+i*Math.sin(d)];l.push(p),c.push(p)}c.push([at(o,a)+e+r*Math.cos(f+2*Math.PI+.5*s),at(o,a)+n+i*Math.sin(f+2*Math.PI+.5*s)]),c.push([at(o,a)+e+.98*r*Math.cos(f+s),at(o,a)+n+.98*i*Math.sin(f+s)]),c.push([at(o,a)+e+.9*r*Math.cos(f+.5*s),at(o,a)+n+.9*i*Math.sin(f+.5*s)])}return[c,l]}function ru(t,e,n,r,i,o,s,a,l){const c=o+at(.1,l),f=[];f.push([at(a,l)+e+.9*r*Math.cos(c-t),at(a,l)+n+.9*i*Math.sin(c-t)]);for(let u=c;u<=s;u+=t)f.push([at(a,l)+e+r*Math.cos(u),at(a,l)+n+i*Math.sin(u)]);return f.push([e+r*Math.cos(s),n+i*Math.sin(s)]),f.push([e+r*Math.cos(s),n+i*Math.sin(s)]),Ci(f,null,l)}function Q5(t,e,n,r,i,o,s,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let f=[0,0];const u=a.disableMultiStroke?1:2,d=a.preserveVertices;for(let p=0;p<u;p++)p===0?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(d?0:at(c[0],a)),s[1]+(d?0:at(c[0],a))]}),f=d?[i,o]:[i+at(c[p],a),o+at(c[p],a)],l.push({op:"bcurveTo",data:[t+at(c[p],a),e+at(c[p],a),n+at(c[p],a),r+at(c[p],a),f[0],f[1]]});return l}function sr(t){return[...t]}function iu(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(n===3)r.push(sr(t[0]),sr(t[1]),sr(t[2]),sr(t[2]));else{const i=[];i.push(t[0],t[0]);for(let a=1;a<t.length;a++)i.push(t[a]),a===t.length-1&&i.push(t[a]);const o=[],s=1-e;r.push(sr(i[0]));for(let a=1;a+2<i.length;a++){const l=i[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(s*i[a+1][0]-s*i[a-1][0])/6,l[1]+(s*i[a+1][1]-s*i[a-1][1])/6],o[2]=[i[a+1][0]+(s*i[a][0]-s*i[a+2][0])/6,i[a+1][1]+(s*i[a][1]-s*i[a+2][1])/6],o[3]=[i[a+1][0],i[a+1][1]],r.push(o[1],o[2],o[3])}}return r}function Si(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function K5(t,e,n){const r=Si(e,n);if(r===0)return Si(t,e);let i=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/r;return i=Math.max(0,Math.min(1,i)),Si(t,Ke(e,n,i))}function Ke(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function Vs(t,e,n,r){const i=r||[];if((function(a,l){const c=a[l+0],f=a[l+1],u=a[l+2],d=a[l+3];let p=3*f[0]-2*c[0]-d[0];p*=p;let g=3*f[1]-2*c[1]-d[1];g*=g;let m=3*u[0]-2*d[0]-c[0];m*=m;let y=3*u[1]-2*d[1]-c[1];return y*=y,p<m&&(p=m),g<y&&(g=y),p+g})(t,e)<n){const a=t[e+0];i.length?(o=i[i.length-1],s=a,Math.sqrt(Si(o,s))>1&&i.push(a)):i.push(a),i.push(t[e+3])}else{const l=t[e+0],c=t[e+1],f=t[e+2],u=t[e+3],d=Ke(l,c,.5),p=Ke(c,f,.5),g=Ke(f,u,.5),m=Ke(d,p,.5),y=Ke(p,g,.5),x=Ke(m,y,.5);Vs([l,d,m,x],0,n,i),Vs([x,y,g,u],0,n,i)}var o,s;return i}function J5(t,e){return Ii(t,0,t.length,e)}function Ii(t,e,n,r,i){const o=i||[],s=t[e],a=t[n-1];let l=0,c=1;for(let f=e+1;f<n-1;++f){const u=K5(t[f],s,a);u>l&&(l=u,c=f)}return Math.sqrt(l)>r?(Ii(t,e,c+1,r,o),Ii(t,c,n,r,o)):(o.length||o.push(s),o.push(a)),o}function qs(t,e=.15,n){const r=[],i=(t.length-1)/3;for(let o=0;o<i;o++)Vs(t,3*o,e,r);return n&&n>0?Ii(r,0,r.length,n):r}const oe="none";class Ai{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*Pr(2,31))}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,n,r){return{shape:e,sets:n||[],options:r||this.defaultOptions}}line(e,n,r,i,o){const s=this._o(o);return this._d("line",[Uf(e,n,r,i,s)],s)}rectangle(e,n,r,i,o){const s=this._o(o),a=[],l=Z5(e,n,r,i,s);if(s.fill){const c=[[e,n],[e+r,n],[e+r,n+i],[e,n+i]];s.fillStyle==="solid"?a.push(Xs([c],s)):a.push(Pn([c],s))}return s.stroke!==oe&&a.push(l),this._d("rectangle",a,s)}ellipse(e,n,r,i,o){const s=this._o(o),a=[],l=Qf(r,i,s),c=Ws(e,n,s,l);if(s.fill)if(s.fillStyle==="solid"){const f=Ws(e,n,s,l).opset;f.type="fillPath",a.push(f)}else a.push(Pn([c.estimatedPoints],s));return s.stroke!==oe&&a.push(c.opset),this._d("ellipse",a,s)}circle(e,n,r,i){const o=this.ellipse(e,n,r,r,i);return o.shape="circle",o}linearPath(e,n){const r=this._o(n);return this._d("linearPath",[Pi(e,!1,r)],r)}arc(e,n,r,i,o,s,a=!1,l){const c=this._o(l),f=[],u=Kf(e,n,r,i,o,s,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const d=Object.assign({},c);d.disableMultiStroke=!0;const p=Kf(e,n,r,i,o,s,!0,!1,d);p.type="fillPath",f.push(p)}else f.push((function(d,p,g,m,y,x,_){const b=d,v=p;let P=Math.abs(g/2),w=Math.abs(m/2);P+=at(.01*P,_),w+=at(.01*w,_);let $=y,M=x;for(;$<0;)$+=2*Math.PI,M+=2*Math.PI;M-$>2*Math.PI&&($=0,M=2*Math.PI);const I=(M-$)/_.curveStepCount,S=[];for(let C=$;C<=M;C+=I)S.push([b+P*Math.cos(C),v+w*Math.sin(C)]);return S.push([b+P*Math.cos(M),v+w*Math.sin(M)]),S.push([b,v]),Pn([S],_)})(e,n,r,i,o,s,c));return c.stroke!==oe&&f.push(u),this._d("arc",f,c)}curve(e,n){const r=this._o(n),i=[],o=Zf(e,r);if(r.fill&&r.fill!==oe)if(r.fillStyle==="solid"){const s=Zf(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],a=e;if(a.length){const l=typeof a[0][0]=="number"?[a]:a;for(const c of l)c.length<3?s.push(...c):c.length===3?s.push(...qs(iu([c[0],c[0],c[1],c[2]]),10,(1+r.roughness)/2)):s.push(...qs(iu(c),10,(1+r.roughness)/2))}s.length&&i.push(Pn([s],r))}return r.stroke!==oe&&i.push(o),this._d("curve",i,r)}polygon(e,n){const r=this._o(n),i=[],o=Pi(e,!0,r);return r.fill&&(r.fillStyle==="solid"?i.push(Xs([e],r)):i.push(Pn([e],r))),r.stroke!==oe&&i.push(o),this._d("polygon",i,r)}path(e,n){const r=this._o(n),i=[];if(!e)return this._d("path",i,r);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=r.fill&&r.fill!=="transparent"&&r.fill!==oe,s=r.stroke!==oe,a=!!(r.simplification&&r.simplification<1),l=(function(f,u,d){const p=qf(Vf(Fs(f))),g=[];let m=[],y=[0,0],x=[];const _=()=>{x.length>=4&&m.push(...qs(x,u)),x=[]},b=()=>{_(),m.length&&(g.push(m),m=[])};for(const{key:P,data:w}of p)switch(P){case"M":b(),y=[w[0],w[1]],m.push(y);break;case"L":_(),m.push([w[0],w[1]]);break;case"C":if(!x.length){const $=m.length?m[m.length-1]:y;x.push([$[0],$[1]])}x.push([w[0],w[1]]),x.push([w[2],w[3]]),x.push([w[4],w[5]]);break;case"Z":_(),m.push([y[0],y[1]])}if(b(),!d)return g;const v=[];for(const P of g){const w=J5(P,d);w.length&&v.push(w)}return v})(e,1,a?4-4*(r.simplification||1):(1+r.roughness)/2),c=Jf(e,r);if(o)if(r.fillStyle==="solid")if(l.length===1){const f=Jf(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else i.push(Xs(l,r));else i.push(Pn(l,r));return s&&(a?l.forEach((f=>{i.push(Pi(f,!1,r))})):i.push(c)),this._d("path",i,r)}opsToPath(e,n){let r="";for(const i of e.ops){const o=typeof n=="number"&&n>=0?i.data.map((s=>+s.toFixed(n))):i.data;switch(i.op){case"move":r+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":r+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":r+=`L${o[0]} ${o[1]} `}}return r.trim()}toPaths(e){const n=e.sets||[],r=e.options||this.defaultOptions,i=[];for(const o of n){let s=null;switch(o.type){case"path":s={d:this.opsToPath(o),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:oe};break;case"fillPath":s={d:this.opsToPath(o),stroke:oe,strokeWidth:0,fill:r.fill||oe};break;case"fillSketch":s=this.fillSketch(o,r)}s&&i.push(s)}return i}fillSketch(e,n){let r=n.fillWeight;return r<0&&(r=n.strokeWidth/2),{d:this.opsToPath(e),stroke:n.fill||oe,strokeWidth:r,fill:oe}}_mergedShape(e){return e.filter(((n,r)=>r===0||n.op!=="move"))}}class tv{constructor(e,n){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new Ai(n)}draw(e){const n=e.sets||[],r=e.options||this.getDefaultOptions(),i=this.ctx,o=e.options.fixedDecimalPlaceDigits;for(const s of n)switch(s.type){case"path":i.save(),i.strokeStyle=r.stroke==="none"?"transparent":r.stroke,i.lineWidth=r.strokeWidth,r.strokeLineDash&&i.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(i.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(i,s,o),i.restore();break;case"fillPath":{i.save(),i.fillStyle=r.fill||"";const a=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,o,a),i.restore();break}case"fillSketch":this.fillSketch(i,s,r)}}fillSketch(e,n,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2),e.save(),r.fillLineDash&&e.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(e.lineDashOffset=r.fillLineDashOffset),e.strokeStyle=r.fill||"",e.lineWidth=i,this._drawToContext(e,n,r.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,n,r,i="nonzero"){e.beginPath();for(const o of n.ops){const s=typeof r=="number"&&r>=0?o.data.map((a=>+a.toFixed(r))):o.data;switch(o.op){case"move":e.moveTo(s[0],s[1]);break;case"bcurveTo":e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":e.lineTo(s[0],s[1])}}n.type==="fillPath"?e.fill(i):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,n,r,i,o){const s=this.gen.line(e,n,r,i,o);return this.draw(s),s}rectangle(e,n,r,i,o){const s=this.gen.rectangle(e,n,r,i,o);return this.draw(s),s}ellipse(e,n,r,i,o){const s=this.gen.ellipse(e,n,r,i,o);return this.draw(s),s}circle(e,n,r,i){const o=this.gen.circle(e,n,r,i);return this.draw(o),o}linearPath(e,n){const r=this.gen.linearPath(e,n);return this.draw(r),r}polygon(e,n){const r=this.gen.polygon(e,n);return this.draw(r),r}arc(e,n,r,i,o,s,a=!1,l){const c=this.gen.arc(e,n,r,i,o,s,a,l);return this.draw(c),c}curve(e,n){const r=this.gen.curve(e,n);return this.draw(r),r}path(e,n){const r=this.gen.path(e,n);return this.draw(r),r}}const Ei="http://www.w3.org/2000/svg";class ev{constructor(e,n){this.svg=e,this.gen=new Ai(n)}draw(e){const n=e.sets||[],r=e.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,o=i.createElementNS(Ei,"g"),s=e.options.fixedDecimalPlaceDigits;for(const a of n){let l=null;switch(a.type){case"path":l=i.createElementNS(Ei,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke",r.stroke),l.setAttribute("stroke-width",r.strokeWidth+""),l.setAttribute("fill","none"),r.strokeLineDash&&l.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":l=i.createElementNS(Ei,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",r.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(i,a,r)}l&&o.appendChild(l)}return o}fillSketch(e,n,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const o=e.createElementNS(Ei,"path");return o.setAttribute("d",this.opsToPath(n,r.fixedDecimalPlaceDigits)),o.setAttribute("stroke",r.fill||""),o.setAttribute("stroke-width",i+""),o.setAttribute("fill","none"),r.fillLineDash&&o.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,n){return this.gen.opsToPath(e,n)}line(e,n,r,i,o){const s=this.gen.line(e,n,r,i,o);return this.draw(s)}rectangle(e,n,r,i,o){const s=this.gen.rectangle(e,n,r,i,o);return this.draw(s)}ellipse(e,n,r,i,o){const s=this.gen.ellipse(e,n,r,i,o);return this.draw(s)}circle(e,n,r,i){const o=this.gen.circle(e,n,r,i);return this.draw(o)}linearPath(e,n){const r=this.gen.linearPath(e,n);return this.draw(r)}polygon(e,n){const r=this.gen.polygon(e,n);return this.draw(r)}arc(e,n,r,i,o,s,a=!1,l){const c=this.gen.arc(e,n,r,i,o,s,a,l);return this.draw(c)}curve(e,n){const r=this.gen.curve(e,n);return this.draw(r)}path(e,n){const r=this.gen.path(e,n);return this.draw(r)}}var nv={canvas:(t,e)=>new tv(t,e),svg:(t,e)=>new ev(t,e),generator:t=>new Ai(t),newSeed:()=>Ai.newSeed()},rv=Object.defineProperty,ou=Object.getOwnPropertySymbols,iv=Object.prototype.hasOwnProperty,ov=Object.prototype.propertyIsEnumerable,su=(t,e,n)=>e in t?rv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,sv=(t,e)=>{for(var n in e||(e={}))iv.call(e,n)&&su(t,n,e[n]);if(ou)for(var n of ou(e))ov.call(e,n)&&su(t,n,e[n]);return t};function av(t,e,n){if(!t||!e){console.warn("Invalid node or svg element");return}const r=nv.svg(e,{options:{seed:1e3}}),i=ut("g");t.hasAttribute("transform")&&i.setAttribute("transform",t.getAttribute("transform")||"");const o=t.cloneNode();je(o,{opacity:.5}),o.hasAttribute("transform")&&o.removeAttribute("transform"),o.classList.add("rough-volume"),i.appendChild(o);const s=cv(r,t,n);if(s){const{element:l,svgAttributes:c}=s;l.classList.add("rough-element"),l.style.pointerEvents="none",lv(l,c),i.appendChild(l)}t.id&&(i.id=t.id,o.setAttribute("id",`${t.id}-volume`),s!=null&&s.element&&s.element.setAttribute("id",`${t.id}-rough`)),Array.from(t.classList).forEach(l=>{i.classList.contains(l)||i.classList.add(l)}),Array.from(t.attributes).forEach(l=>{l.name.startsWith("data-")&&i.setAttribute(l.name,l.value)}),i.childElementCount>0?t.replaceWith(i):t.remove()}function lv(t,e){e.opacity!==void 0&&t.setAttribute("opacity",String(e.opacity)),e.fillOpacity!==void 0&&t.setAttribute("fill-opacity",String(e.fillOpacity)),e.strokeOpacity!==void 0&&t.setAttribute("stroke-opacity",String(e.strokeOpacity)),e.strokeLinecap&&t.setAttribute("stroke-linecap",e.strokeLinecap),e.strokeLinejoin&&t.setAttribute("stroke-linejoin",e.strokeLinejoin),e.strokeDasharray&&t.setAttribute("stroke-dasharray",e.strokeDasharray),e.filter&&t.setAttribute("filter",e.filter),e.clipPath&&t.setAttribute("clip-path",e.clipPath),e.mask&&t.setAttribute("mask",e.mask)}function cv(t,e,n){const r=e.nodeName.toLowerCase(),i=(o,s)=>{const a=De(o,[...s,"fill","fill-opacity","stroke","stroke-opacity","stroke-width","stroke-dasharray","stroke-linecap","stroke-linejoin","opacity","filter","clip-path","mask"],!0),l={},c=sv({},n),f={};s.forEach($=>{a[$]!==void 0&&(l[$]=a[$])});const{fill:u,"fill-opacity":d,stroke:p,"stroke-opacity":g,"stroke-width":m,"stroke-dasharray":y,"stroke-linecap":x,"stroke-linejoin":_,opacity:b,filter:v,"clip-path":P,mask:w}=a;if(c.fill=u||"none",c.stroke=p||(u&&u!=="none"?u:"currentColor"),m&&(c.strokeWidth=parseFloat(m)),y&&y!=="none"){const $=y.split(/[\s,]+/).map(M=>parseFloat(M)).filter(M=>!isNaN(M));$.length>0&&(c.strokeLineDash=$)}return d&&(f.fillOpacity=parseFloat(d)),g&&(f.strokeOpacity=parseFloat(g)),b&&(f.opacity=parseFloat(b)),x&&(f.strokeLinecap=x),_&&(f.strokeLinejoin=_),y&&y!=="none"&&(f.strokeDasharray=y),v&&(f.filter=v),P&&(f.clipPath=P),w&&(f.mask=w),[l,c,f]};try{let o=null,s={};switch(r){case"circle":{const[a,l,c]=i(e,["cx","cy","r"]),f=parseFloat(a.cx)||0,u=parseFloat(a.cy)||0,d=parseFloat(a.r)||0;o=t.circle(f,u,d*2,l),s=c;break}case"ellipse":{const[a,l,c]=i(e,["cx","cy","rx","ry"]),f=parseFloat(a.cx)||0,u=parseFloat(a.cy)||0,d=parseFloat(a.rx)||0,p=parseFloat(a.ry)||0;o=t.ellipse(f,u,d*2,p*2,l),s=c;break}case"line":{const[a,l,c]=i(e,["x1","y1","x2","y2"]),f=parseFloat(a.x1)||0,u=parseFloat(a.y1)||0,d=parseFloat(a.x2)||0,p=parseFloat(a.y2)||0;o=t.line(f,u,d,p,l),s=c;break}case"rect":{const[a,l,c]=i(e,["x","y","width","height","rx","ry"]),f=parseFloat(a.x)||0,u=parseFloat(a.y)||0,d=parseFloat(a.width)||0,p=parseFloat(a.height)||0,g=parseFloat(a.rx)||0,m=parseFloat(a.ry)||0;if(g>0||m>0){const _=hv(f,u,d,p,g||m,m||g);o=t.path(_,l)}else o=t.rectangle(f,u,d,p,l);s=c;break}case"path":{const[a,l,c]=i(e,["d"]),f=a.d||"";if(!f)return console.warn("Path element has no d attribute"),null;o=t.path(f,l),s=c;break}case"polygon":{const[a,l,c]=i(e,["points"]),f=au(a.points||"");if(f.length<3)return console.warn("Polygon needs at least 3 points"),null;o=t.polygon(f,l),s=c;break}case"polyline":{const[a,l,c]=i(e,["points"]),f=au(a.points||"");if(f.length<2)return console.warn("Polyline needs at least 2 points"),null;o=t.linearPath(f,l),s=c;break}default:return console.warn(`Unsupported shape type: ${r}`),null}return o?{element:o,svgAttributes:s}:null}catch(o){return console.error(`Error creating rough shape for ${r}:`,o),null}}function hv(t,e,n,r,i,o){return i=Math.min(i,n/2),o=Math.min(o,r/2),`
|
|
20
20
|
M ${t+i} ${e}
|
|
21
21
|
L ${t+n-i} ${e}
|
|
22
22
|
A ${i} ${o} 0 0 1 ${t+n} ${e+o}
|
|
@@ -27,79 +27,79 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
|
|
|
27
27
|
L ${t} ${e+o}
|
|
28
28
|
A ${i} ${o} 0 0 1 ${t+i} ${e}
|
|
29
29
|
Z
|
|
30
|
-
`.replace(/\s+/g," ").trim()}function qf(t){if(!t||typeof t!="string")return[];try{const n=t.trim().replace(/,/g," ").replace(/\s+/g," ").split(" ").filter(Boolean),r=[];for(let i=0;i<n.length-1;i+=2){const o=parseFloat(n[i]),s=parseFloat(n[i+1]);if(isNaN(o)||isNaN(s)){console.warn(`Invalid coordinate pair at index ${i}: "${n[i]}", "${n[i+1]}"`);continue}r.push([o,s])}return n.length%2!==0&&console.warn(`Odd number of coordinates in points attribute, last value ignored: "${n[n.length-1]}"`),r}catch(e){return console.error("Failed to parse polygon points:",t,e),[]}}function Gf(t,e,n){var r;const{themeConfig:i}=n,o=Object.assign({},(r=i.base)==null?void 0:r.shape,i.shape),s=ci(e,o);return Le(e,s),zb(e,t,i.stylize),e}function Eb(t,e){var n;Le(t,((n=e.themeConfig.base)==null?void 0:n.shape)||{})}function zb(t,e,n){if(!n)return t;const{type:r}=n;if(!r)return t;if(r==="rough")return Sb(t,e,n);if(r==="pattern")return ib(t,e,n);if(r==="linear-gradient"||r==="radial-gradient"){const{fill:i,stroke:o}=Re(t,["fill","stroke"]);Yn(i)&&Mf(t,e,n,"fill"),Yn(o)&&Mf(t,e,n,"stroke");return}}var Tb=Jh(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});function Ns(t,e,n={}){if(!e)return null;const r=t,i=ci(r,n);Le(r,i);const o=Rb(e,r);for(const s in r.dataset)o.setAttribute(`data-${Tb(s)}`,r.dataset[s]);return o.setAttribute("id",t.getAttribute("id")),o}function Hb(t,e,n){var r,i;const o=e.nodeName==="text"?e:null;if(!o)return null;const{data:s,themeConfig:a}=n,l=Ch(e.dataset.indexes||"0"),c=String(yh(ii(s,l),t,"")),f=Object.assign({},(r=a.base)==null?void 0:r.text,(i=a.item)==null?void 0:i[t]),d=ci(o,f);return Ns(e,e.textContent||c,d)}function Lb(t,e){var n;Le(t,((n=e.themeConfig.base)==null?void 0:n.text)||{}),t.style.userSelect="none",t.style.pointerEvents="none"}const $i=(t,e)=>t?parseFloat(t):e;function Rb(t,e){const n=$i(e.dataset.x,0),r=$i(e.dataset.y,0),i=$i(e.getAttribute("width")),o=$i(e.getAttribute("height")),s=Nb(e);return Object.assign(s,{x:n,y:r,width:i,height:o,"text-alignment":e.dataset.textAlignment||"LEFT TOP"}),m5(t,s)}function Nb(t){return Re(t,["font-family","font-size","font-weight","font-style","font-variant","letter-spacing","line-height","fill","stroke","stroke-width"])}const Ze=(t,e)=>{t!==e&&(e?t.replaceWith(e):t.remove())};class Uf{constructor(e,n){this.options=e,this.template=n,this.rendered=!1}getOptions(){return this.options}getSVG(){return this.template}render(){const e=this.getSVG();if(this.rendered)return e;Db(e,this.options),e.style.visibility="hidden";const n=new MutationObserver(r=>{r.forEach(i=>{i.addedNodes.forEach(o=>{(o===e||o.contains(e))&&(Bb(this.template,this.options),cf(this.template),n.disconnect(),e.style.visibility="")})})});return n.observe(document,{childList:!0,subtree:!0}),this.rendered=!0,e}}function Db(t,e){jb(t,e),Fb(t,e);const{themeConfig:n}=e;A5(t,n==null?void 0:n.colorBg)}function jb(t,e){const{themeConfig:n,data:r}=e;t.querySelectorAll("[data-element-type]").forEach(o=>{var s,a,l,c,f,d;const u=o.id||"";if(Rx(o)){const p=Ns(o,r.title||"",Object.assign({},(s=n.base)==null?void 0:s.text,n.title));return Ze(o,p)}if(Nx(o)){const p=Ns(o,r.desc||"",Object.assign({},(a=n.base)==null?void 0:a.text,n.desc));return Ze(o,p)}if(Fx(o)){const p=vf(t,o,(l=r.illus)==null?void 0:l[u]);return Ze(o,p)}if(jx(o))return Array.from(o.children).forEach(p=>{Gf(t,p,e)});if(Dx(o)){const p=Gf(t,o,e);return Ze(o,p)}if(Ux(o))return k5(t,o);if((c=o.dataset.elementType)!=null&&c.startsWith("item-")){const p=Ch(o.dataset.indexes||"0"),g=o.dataset.elementType;if(Yx(o)||Vx(o)||qx(o)){const m=Hb(g,o,e);return Ze(o,m)}if(Gx(o)){const m=vf(t,o,(f=ii(r,p))==null?void 0:f.illus);return Ze(o,m)}if(Xx(o)){const m=N5(t,o,(d=ii(r,p))==null?void 0:d.icon,e);return Ze(o,m)}}if(Bx(o))return Lb(o,e);if(!Wx(o))return Eb(o,e)})}function Fb(t,e){const{width:n,height:r}=e,{style:i={},attributes:o={},id:s,className:a}=e.svg||{};s&&(t.id=s),a&&t.classList.add(a),n!==void 0&&t.setAttribute("width",typeof n=="number"?`${n}px`:n),r!==void 0&&t.setAttribute("height",typeof r=="number"?`${r}px`:r),Object.assign(t.style,i),Le(t,o)}function Bb(t,e){const{padding:n=20,viewBox:r}=e;r?t.setAttribute("viewBox",r):n!==void 0&&Wb(t,xs(n))}function Wb(t,e,n={}){const{preserveAspectRatio:r=!1}=n;if(!t.isConnected)return!1;try{const i=t.getBBox();if(i.width===0||i.height===0)return!1;const[o,s]=Mx(t),a=o||t.clientWidth||0,l=s||t.clientHeight||0,c=t.parentElement,f=a||(c?c.clientWidth:300),d=l||(c?c.clientHeight:150);let u;if(f>0&&d>0){const g=i.width/f,m=i.height/d;if(r){const y=Math.max(g,m);u=e.map(_=>_*y)}else u=[e[0]*m,e[1]*g,e[2]*m,e[3]*g]}else u=[...e];const p=[i.x-u[3],i.y-u[0],i.width+u[1]+u[3],i.height+u[0]+u[2]].join(" ");return t.setAttribute("viewBox",p),!0}catch(i){return!1}}const Ds=new Map;function js(t,e){Ds.set(t,e)}function Zf(t){return Ds.get(t)}function Xb(){return Array.from(Ds.keys())}js("dark",{colorBg:"#1F1F1F",base:{text:{fill:"#fff"}}}),js("hand-drawn",{base:{text:{"font-family":"851tegakizatsu"}},stylize:{type:"rough"}});var Yb=Object.defineProperty,Vb=Object.defineProperties,qb=Object.getOwnPropertyDescriptors,Qf=Object.getOwnPropertySymbols,Gb=Object.prototype.hasOwnProperty,Ub=Object.prototype.propertyIsEnumerable,Kf=(t,e,n)=>e in t?Yb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Jn=(t,e)=>{for(var n in e||(e={}))Gb.call(e,n)&&Kf(t,n,e[n]);if(Qf)for(var n of Qf(e))Ub.call(e,n)&&Kf(t,n,e[n]);return t},tr=(t,e)=>Vb(t,qb(e));bt(Gc);const Jf=({colorPrimary:t,colorBg:e="#ffffff",isDarkMode:n=!1})=>{const r=Oe(t),i=Oe(e),o=ew({primaryColor:r,bgColor:i});return nw(o,{primaryColor:r,bgColor:i,isDarkMode:n})},Zb=(t,e)=>Z2(tr(Jn({},t),{alpha:e?.2:.1}))||"#ffffff",Qb=(t,e)=>{if(e)return"#ffffff";const n=Oe("#262626");return ls(n,t)>=7?Xn(n):"#000000"},Kb=t=>{const e=sh(Oe(t)),n=tr(Jn({},e),{l:Math.min(1,e.l+.2)});return Xn(n)},Jb=(t,e)=>{const n=Oe(t),r=Oe("#262626"),i=Oe("#ffffff"),o=ls(r,n);return ls(i,n)>=3?Xn(i):o>=4.5?Xn(r):"#ffffff"},tw=(t,e)=>{const n=sh(t);if(e){const r=tr(Jn({},n),{l:Math.min(1,n.l+.1)});return Pi(r,"#1f1f1f")}else{if(n.l>.95)return"#ffffff";{const r=tr(Jn({},n),{l:Math.min(1,n.l+.05)});return Pi(r,"#ffffff")}}},ew=({primaryColor:t,bgColor:e})=>({colorPrimary:Pi(t,"#1677ff"),colorBg:Pi(e,"#ffffff"),colorWhite:"#ffffff"}),nw=(t,{primaryColor:e,bgColor:n,isDarkMode:r})=>{const i=Qb(n,r),o=Zb(e,r);return tr(Jn({},t),{isDarkMode:r,colorPrimaryBg:o,colorText:i,colorTextSecondary:Kb(i),colorPrimaryText:Jb(o,r),colorBgElevated:tw(n,r)})};function Pi(t,e="#000000"){var n;return(n=Xn(t))!=null?n:e}const Fs="#1890FF";function Ut(t){var e;return((e=t==null?void 0:t.themeConfig)==null?void 0:e.colorPrimary)||Fs}function tu(t){var e;const{themeConfig:n={},data:r}=t,{colorPrimary:i,palette:o}=n;return!o||o.length===0?Array(((e=r==null?void 0:r.items)==null?void 0:e.length)||1).fill(i||Fs):r.items.map((s,a)=>li(o,[a],r.items.length)||Fs)}function wt(t,e){var n,r,i;return li((n=t==null?void 0:t.themeConfig)==null?void 0:n.palette,e,(i=(r=t.data)==null?void 0:r.items)==null?void 0:i.length)}function de(t,e){var n;const{colorBg:r=((n=e==null?void 0:e.themeConfig)==null?void 0:n.colorBg)||"white",colorPrimary:i=e?Ut(e):"black"}=t;return Jf({colorPrimary:i,isDarkMode:ah(r),colorBg:r})}function Mi(t,e){const{depth:n,originalIndexes:r,flatIndex:i}=t;switch(e){case"level":return[n];case"branch":return n===0?[0]:n===1?[r[1]+1]:[r[1]+1];case"node":return r;case"node-flat":return i!==void 0?[i]:(console.warn("node-flat mode requires flatIndex in HierarchyNode, falling back to originalIndexes"),r);default:return[0]}}var rw=Object.defineProperty,eu=Object.getOwnPropertySymbols,iw=Object.prototype.hasOwnProperty,ow=Object.prototype.propertyIsEnumerable,nu=(t,e,n)=>e in t?rw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,sw=(t,e)=>{for(var n in e||(e={}))iw.call(e,n)&&nu(t,n,e[n]);if(eu)for(var n of eu(e))ow.call(e,n)&&nu(t,n,e[n]);return t};function At(t,e=[]){const n=sw({},t),r={};return["indexes","data","datum","positionH","positionV","themeColors","valueFormatter",...e].forEach(o=>{o in n&&(r[o]=n[o],delete n[o])}),["x","y","width","height"].forEach(o=>{o in t&&(n[o]=t[o])}),[r,n]}function ru(t,e){var n;return t.length===0?()=>null:e===void 0?t[0]:(n=t[e])!=null?n:t[0]}const Bs=new Map;function kt(t,e){Bs.set(t,e)}function iu(t){return Bs.get(t)}function aw(){return Array.from(Bs.keys())}var lw=Object.defineProperty,cw=Object.defineProperties,hw=Object.getOwnPropertyDescriptors,ou=Object.getOwnPropertySymbols,fw=Object.prototype.hasOwnProperty,uw=Object.prototype.propertyIsEnumerable,su=(t,e,n)=>e in t?lw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dw=(t,e)=>{for(var n in e||(e={}))fw.call(e,n)&&su(t,n,e[n]);if(ou)for(var n of ou(e))uw.call(e,n)&&su(t,n,e[n]);return t},pw=(t,e)=>cw(t,hw(e));const au=t=>{const[{datum:e,indexes:n,width:r=200,height:i=80,iconSize:o=24,badgeSize:s=32,gap:a=8,positionH:l="normal",themeColors:c,valueFormatter:f},d]=At(t,["width","height","iconSize","badgeSize","gap"]),u=e.value,p=u!==void 0,g=!!e.desc,m=!!e.icon,y=`${c.colorPrimary}-badge`,_=l==="flipped"?r-a-s:a,x=m?l==="flipped"?a:s+2*a:a,b=r-a*2,w=m?r-s-3*a:b,P=a+14+18+8,v=P-a,$=g?a:(i-s)/2,M=!p&&!g?(i-14)/2:a;return O(B,pw(dw({},d),{width:r,height:i,children:[h(yt,{children:O("radialGradient",{id:y,cx:"50%",cy:"50%",r:"50%",children:[h("stop",{offset:"0%",stopColor:c.colorPrimary}),h("stop",{offset:"100%",stopColor:Q(c.colorPrimary).darken(20).toHexString()})]})}),h(dt,{"data-element-type":"shape",x:0,y:0,width:r,height:i,fill:c.colorPrimaryBg,rx:8,ry:8}),m&&O(gt,{children:[h(xt,{x:_,y:$,width:s,height:s,fill:`url(#${y})`}),h(qt,{indexes:n,x:_+(s-o)/2,y:$+(s-o)/2,size:o,fill:c.colorWhite})]}),O(rt,{flexDirection:"column",x,y:M,width:w,height:!p&&!g?void 0:v,alignItems:"center",justifyContent:"center",children:[h(ft,{indexes:n,width:w,alignHorizontal:l==="flipped"?"right":"left",alignVertical:"middle",fontSize:14,fill:c.colorText,children:e.label}),p&&h(Ln,{indexes:n,width:w,alignHorizontal:l==="flipped"?"right":"left",alignVertical:"middle",fontSize:18,lineHeight:1,fontWeight:"bold",fill:c.colorPrimary,value:u,formatter:f})]}),g&&h(It,{indexes:n,x:a,y:P,width:b,alignHorizontal:l==="flipped"?"right":"left",fontSize:11,fill:c.colorTextSecondary,lineNumber:2,lineHeight:1.2,wordWrap:!0,children:e.desc})]}))};kt("badge-card",{component:au,composites:["icon","label","value","desc"]});var gw=Object.defineProperty,mw=Object.defineProperties,yw=Object.getOwnPropertyDescriptors,lu=Object.getOwnPropertySymbols,xw=Object.prototype.hasOwnProperty,_w=Object.prototype.propertyIsEnumerable,cu=(t,e,n)=>e in t?gw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bw=(t,e)=>{for(var n in e||(e={}))xw.call(e,n)&&cu(t,n,e[n]);if(lu)for(var n of lu(e))_w.call(e,n)&&cu(t,n,e[n]);return t},ww=(t,e)=>mw(t,yw(e));const hu=t=>{const[{indexes:e,datum:n,width:r=280,height:i=140,themeColors:o},s]=At(t,["width","height"]);return O(B,ww(bw({},s),{children:[h("rect",{x:0,y:0,width:r,height:i,rx:18,ry:18,fill:o.colorPrimaryBg,stroke:o.colorPrimary,"data-element-type":"shape"}),h(ot,{x:r-85,y:.5,width:85,height:65,d:"M0.496704 0H61.7558C74.0725 0 84.0571 9.99394 84.0571 22.3221V60.1302L78.4401 62.9458C64.9296 68.1198 49.0492 65.0802 38.3968 53.9843L10.7444 25.1801C5.41799 19.6306 2.15489 12.855 0.935998 5.80383L0.496704 0Z",fill:o.colorBg,"data-element-type":"shape"}),h(ft,{indexes:e,x:20,y:24,width:200,alignHorizontal:"left",alignVertical:"middle",fill:o.colorText,children:n.label}),h(It,{indexes:e,x:20,y:58,width:220,height:70,fill:o.colorTextSecondary,alignHorizontal:"left",alignVertical:"top",children:n.desc}),h(qt,{indexes:e,x:r-48,y:12,width:32,height:32,fill:o.colorPrimary})]}))};kt("candy-card-lite",{component:hu,composites:["icon","label","desc"]});var vw=Object.defineProperty,$w=Object.defineProperties,Pw=Object.getOwnPropertyDescriptors,Oi=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,uu=Object.prototype.propertyIsEnumerable,du=(t,e,n)=>e in t?vw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Mw=(t,e)=>{for(var n in e||(e={}))fu.call(e,n)&&du(t,n,e[n]);if(Oi)for(var n of Oi(e))uu.call(e,n)&&du(t,n,e[n]);return t},Ow=(t,e)=>$w(t,Pw(e)),Cw=(t,e)=>{var n={};for(var r in t)fu.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Oi)for(var r of Oi(t))e.indexOf(r)<0&&uu.call(t,r)&&(n[r]=t[r]);return n};const Ws=t=>{const e=t,{color:n="black",opacity:r=.8}=e,i=Cw(e,["color","opacity"]);return h("filter",Ow(Mw({id:"drop-shadow",x:"-25%",y:"-25%",width:"200%",height:"200%"},i),{children:h("feDropShadow",{dx:"4",dy:"4",stdDeviation:"4","flood-color":n,"flood-opacity":r})}))};var Sw=Object.defineProperty,Iw=Object.defineProperties,Aw=Object.getOwnPropertyDescriptors,pu=Object.getOwnPropertySymbols,kw=Object.prototype.hasOwnProperty,Ew=Object.prototype.propertyIsEnumerable,gu=(t,e,n)=>e in t?Sw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zw=(t,e)=>{for(var n in e||(e={}))kw.call(e,n)&&gu(t,n,e[n]);if(pu)for(var n of pu(e))Ew.call(e,n)&&gu(t,n,e[n]);return t},Tw=(t,e)=>Iw(t,Aw(e));const Xs=t=>{const{id:e="linear-gradient",startColor:n="black",stopColor:r="white",direction:i="left-right"}=t;return O("linearGradient",Tw(zw({id:e},{"left-right":{x1:"0%",y1:"0%",x2:"100%",y2:"0%"},"right-left":{x1:"100%",y1:"0%",x2:"0%",y2:"0%"},"top-bottom":{x1:"0%",y1:"0%",x2:"0%",y2:"100%"},"bottom-top":{x1:"0%",y1:"100%",x2:"0%",y2:"0%"}}[i]),{children:[h("stop",{offset:"0%",stopColor:n}),h("stop",{offset:"100%",stopColor:r})]}))};var Hw=Object.defineProperty,Lw=Object.defineProperties,Rw=Object.getOwnPropertyDescriptors,mu=Object.getOwnPropertySymbols,Nw=Object.prototype.hasOwnProperty,Dw=Object.prototype.propertyIsEnumerable,yu=(t,e,n)=>e in t?Hw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,er=(t,e)=>{for(var n in e||(e={}))Nw.call(e,n)&&yu(t,n,e[n]);if(mu)for(var n of mu(e))Dw.call(e,n)&&yu(t,n,e[n]);return t},nr=(t,e)=>Lw(t,Rw(e));const xu=t=>{const[{datum:e,indexes:n,width:r=300,height:i=80,gap:o=12,positionH:s="normal",iconPadding:a=i/10,themeColors:l},c]=At(t,["width","height","gap","iconPadding"]),f=i/2,d=i-a*2,u=s==="flipped",p=!!e.icon,g=p?r-i-o:r-o*2,m=p?u?o:i:o,y=p?u?"right":"left":"center",_={indexes:n,width:g,alignHorizontal:y,alignVertical:"middle",fontSize:16,fontWeight:"600",fill:l.colorWhite},x=G(h(ft,nr(er({},_),{children:e.label}))),b={indexes:n,width:g,alignHorizontal:y,alignVertical:"top",fontSize:12,lineNumber:1,fill:l.colorWhite},w=G(e.desc?h(It,nr(er({},b),{children:e.desc})):null),P=4,v=x.height+P+w.height,M=(i-v)/2,I=M+x.height+P,S=u?r-i+a:a,C=a;return O(B,nr(er({},c),{children:[h(yt,{children:h(Ws,{})}),h(dt,{x:0,y:0,width:r,height:i,fill:l.colorPrimary,rx:f,ry:f,"data-element-type":"shape"}),e.icon&&O(gt,{children:[h(xt,{x:S,y:C,width:d,height:d,fillOpacity:.5,fill:l.colorBg,filter:"url(#drop-shadow)"}),h(We,{indexes:n,x:S,y:C,size:d,fill:l.colorBg,colorBg:l.colorPrimary})]}),e.label&&h(ft,nr(er({x:m,y:M},_),{children:e.label})),e.desc&&h(It,nr(er({x:m,y:I},b),{children:e.desc}))]}))};kt("capsule-item",{component:xu,composites:["icon","label","desc"]});var jw=Object.defineProperty,Fw=Object.defineProperties,Bw=Object.getOwnPropertyDescriptors,_u=Object.getOwnPropertySymbols,Ww=Object.prototype.hasOwnProperty,Xw=Object.prototype.propertyIsEnumerable,bu=(t,e,n)=>e in t?jw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ys=(t,e)=>{for(var n in e||(e={}))Ww.call(e,n)&&bu(t,n,e[n]);if(_u)for(var n of _u(e))Xw.call(e,n)&&bu(t,n,e[n]);return t},Vs=(t,e)=>Fw(t,Bw(e));const wu=t=>{const[{indexes:e,datum:n,themeColors:r,positionH:i="normal",width:o=240,height:s=o},a]=At(t,["width","height"]),l=Math.min(o,s),c=l*.7,f=(l-c)/2,d=c*Math.sqrt(2)/2,u=(l-d)/2,p=Q(r.colorPrimary),g=Ci(p,80,.2),m=Ci(p,20,.8),y=Ci(p,75,.32),_=Ci(p,45,.4),x=p.clone().darken(5).toRgbString(),b=`${r.colorPrimary}-${i}-outer`,w=`${r.colorPrimary}-${i}-inner`,P=i==="flipped"?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"100%",y1:"0%",x2:"0%",y2:"0%"};return O(B,Vs(Ys({},a),{children:[O(yt,{children:[O("linearGradient",Vs(Ys({id:b},P),{children:[h("stop",{offset:"0%",stopColor:g}),h("stop",{offset:"100%",stopColor:m})]})),O("linearGradient",Vs(Ys({id:w},P),{children:[h("stop",{offset:"0%",stopColor:y}),h("stop",{offset:"100%",stopColor:_})]}))]}),h(xt,{width:l,height:l,fill:`url(#${b})`,"data-element-type":"shape"}),h(xt,{x:f,y:f,width:c,height:c,fill:`url(#${w})`,stroke:"#FFFFFF",strokeWidth:1,"data-element-type":"shape"}),h(ft,{indexes:e,x:u,y:u,width:d,height:d,lineHeight:1.1,alignHorizontal:"center",alignVertical:"middle",fill:x,fontWeight:"500",children:n.label})]}))};kt("circle-node",{component:wu,composites:["label"]});function Ci(t,e,n){return Q.mix(t,"#ffffff",e).setAlpha(n).toRgbString()}var Yw=Object.defineProperty,Vw=Object.defineProperties,qw=Object.getOwnPropertyDescriptors,vu=Object.getOwnPropertySymbols,Gw=Object.prototype.hasOwnProperty,Uw=Object.prototype.propertyIsEnumerable,$u=(t,e,n)=>e in t?Yw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Pu=(t,e)=>{for(var n in e||(e={}))Gw.call(e,n)&&$u(t,n,e[n]);if(vu)for(var n of vu(e))Uw.call(e,n)&&$u(t,n,e[n]);return t},Mu=(t,e)=>Vw(t,qw(e));const Ou=t=>{var e;const[{datum:n,indexes:r,size:i=120,strokeWidth:o=12,gap:s=8,themeColors:a,valueFormatter:l=w=>`${Math.round(w)}%`},c]=At(t,["size","strokeWidth","gap"]),f=(e=n.value)!=null?e:0,u=Math.min(Math.max(f/100,0),1),p=(i-o)/2,g=i/2,m=o/2,y=i-o,_=u*360,x=Zw(g,g,p,0,_),b={x:m,y:m,width:y,height:y};return O(B,Mu(Pu({},c),{width:i,height:i+s+20,children:[h(dt,{width:i,height:i,fill:"none"}),h(xt,Mu(Pu({},b),{fill:"none",stroke:"#f0f0f0",strokeWidth:o,"data-element-type":"shape"})),h(ot,{d:x,fill:"none",stroke:a.colorPrimary,strokeWidth:o,strokeLinecap:"round","data-element-type":"shape"}),h(Ln,{indexes:r,x:o,y:o,width:y-o,height:y-o,fontSize:24,fontWeight:"bold",fill:a.colorPrimary,alignHorizontal:"center",alignVertical:"middle",value:f,formatter:l}),h(ft,{indexes:r,x:0,y:i+s,width:i,alignHorizontal:"center",fontSize:12,fill:a.colorTextSecondary,children:n.label})]}))};function Zw(t,e,n,r,i){const o=Cu(t,e,n,i),s=Cu(t,e,n,r),a=i-r<=180?"0":"1";return`M ${o.x} ${o.y} A ${n} ${n} 0 ${a} 0 ${s.x} ${s.y}`}function Cu(t,e,n,r){const i=(r-90)*Math.PI/180;return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}}kt("circular-progress",{component:Ou,composites:["label","value"]});var Qw=Object.defineProperty,Kw=Object.defineProperties,Jw=Object.getOwnPropertyDescriptors,Su=Object.getOwnPropertySymbols,tv=Object.prototype.hasOwnProperty,ev=Object.prototype.propertyIsEnumerable,Iu=(t,e,n)=>e in t?Qw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nv=(t,e)=>{for(var n in e||(e={}))tv.call(e,n)&&Iu(t,n,e[n]);if(Su)for(var n of Su(e))ev.call(e,n)&&Iu(t,n,e[n]);return t},rv=(t,e)=>Kw(t,Jw(e));const Au=t=>{const[{datum:e,indexes:n,width:r=200,height:i=60,iconSize:o=20,gap:s=8,positionH:a="normal",themeColors:l,valueFormatter:c},f]=At(t,["width","height","iconSize","gap"]),d=e.value,u=d!=null,p="compact-shadow",g=a==="flipped"?r-s-o:s,m=a==="flipped"?s:o+2*s,y=r-o-3*s,_=u?y*.8:y,x=u?y*.2:0;return O(B,rv(nv({},f),{children:[h(yt,{children:h("filter",{id:p,children:h("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodOpacity:"0.15"})})}),h(dt,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorBgElevated,strokeWidth:1,rx:6,ry:6,filter:`url(#${p})`,"data-element-type":"shape"}),h(dt,{x:a==="flipped"?r-3:0,y:0,width:3,height:i,fill:l.colorPrimary,rx:1.5,ry:1.5,"data-element-type":"shape"}),h(qt,{indexes:n,x:g,y:(i-o)/2,size:o,fill:l.colorPrimary}),O(rt,{x:m,y:s,width:y,height:i-s*2,flexDirection:"column",justifyContent:"center",alignItems:"flex-start",children:[O(rt,{width:y,flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[h(ft,{indexes:n,width:_,alignHorizontal:"left",fontSize:12,fill:l.colorText,children:e.label}),u&&h(Ln,{indexes:n,width:x,alignHorizontal:"right",fontSize:12,fontWeight:"bold",fill:l.colorPrimary,value:d,formatter:c})]}),h(It,{indexes:n,width:y,alignHorizontal:"left",alignVertical:"middle",fontSize:10,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]})]}))};kt("compact-card",{component:Au,composites:["icon","label","value","desc"]});var iv=Object.defineProperty,ov=Object.defineProperties,sv=Object.getOwnPropertyDescriptors,ku=Object.getOwnPropertySymbols,av=Object.prototype.hasOwnProperty,lv=Object.prototype.propertyIsEnumerable,Eu=(t,e,n)=>e in t?iv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,cv=(t,e)=>{for(var n in e||(e={}))av.call(e,n)&&Eu(t,n,e[n]);if(ku)for(var n of ku(e))lv.call(e,n)&&Eu(t,n,e[n]);return t},hv=(t,e)=>ov(t,sv(e));const zu=t=>{const[{datum:e,indexes:n,width:r=300,height:i=30,iconSize:o=30,gap:s=5,positionH:a="normal",positionV:l="middle",themeColors:c},f]=At(t,["width","height","iconSize","gap"]),d=r-o-s,u=l==="middle"?(i-o)/2:l==="flipped"?i-o:0;return O(B,hv(cv({},f),{children:[h(ot,{"data-element-type":"shape",x:a==="flipped"?d+s:0,y:u,fill:c.colorPrimary,width:o,height:o,d:"M14.7273 30C6.54538 30 0 22.9077 0 14.7269C0 6.54617 6.54538 0 14.7273 0C22.9092 0 30 6.54617 30 14.7269C30 22.9077 22.9092 30 14.7273 30ZM24.5454 10.9077C22.9092 9.27307 22.9092 9.27307 22.9092 9.27307C22.3638 8.72692 22.3638 8.7269 21.8181 8.7269C21.2727 8.7269 21.2727 8.72692 20.7273 9.27307C13.0908 16.9077 13.0908 16.9077 13.0908 16.9077C8.72731 12.5461 8.72731 12.5462 8.72731 12.5462C8.18193 12.5462 8.18193 12 7.63654 12L7.09077 12.5462C4.90923 14.1808 4.90923 14.1808 4.90923 14.1808C4.90923 14.7269 4.90923 14.7269 4.90923 15.2731C4.90923 15.8192 4.90923 15.8192 4.90923 16.3654C12 23.4539 12 23.4538 12 23.4538C12.5454 23.4538 12.5454 23.4538 13.0908 23.4538C13.6365 23.4538 13.6365 23.4538 14.1819 23.4538C24.5454 12.5461 24.5454 12.5462 24.5454 12.5462L25.0908 12C25.0908 11.4538 24.5454 10.9077 24.5454 10.9077Z"}),h(ft,{indexes:n,x:a==="flipped"?0:o+s,width:d,height:i,fontWeight:"normal",alignVertical:"middle",wordWrap:!1,fill:"#666",children:e.label||e.desc})]}))};kt("done-list",{component:zu,composites:["label"]});var fv=Object.defineProperty,uv=Object.defineProperties,dv=Object.getOwnPropertyDescriptors,Tu=Object.getOwnPropertySymbols,pv=Object.prototype.hasOwnProperty,gv=Object.prototype.propertyIsEnumerable,Hu=(t,e,n)=>e in t?fv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mv=(t,e)=>{for(var n in e||(e={}))pv.call(e,n)&&Hu(t,n,e[n]);if(Tu)for(var n of Tu(e))gv.call(e,n)&&Hu(t,n,e[n]);return t},yv=(t,e)=>uv(t,dv(e));const Lu=t=>{const[{indexes:e,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=At(t,["width"]),a=o!=="flipped",l=o==="normal"?"bottom":"top",c=h(ft,{indexes:e,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),f=h(It,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),d=h(We,{indexes:e,fill:i.colorPrimary,colorBg:i.colorWhite}),u=h(_v,{width:8,height:30,fill:i.colorPrimary,positionV:o}),p=5,g=25,m=30,y=G(c),_=G(f),x=G(d),b=G(u),w=y.height+_.height+p+b.height-x.height-g,P=x.height+g+m+b.height+p+y.height+_.height;return h(B,yv(mv({width:r,height:P},s),{children:O(rt,{flexDirection:"column",alignItems:"center",children:[a?O(gt,{children:[f,c,h(Tt,{height:p}),u]}):O(gt,{children:[h(Tt,{height:w}),d,h(Tt,{height:g})]}),O(an,{horizontal:"center",vertical:"middle",children:[h(xv,{width:r,height:m,fill:i.colorPrimary}),h(Et,{width:r,height:m,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),a?O(gt,{children:[h(Tt,{height:g}),d]}):O(gt,{children:[u,h(Tt,{height:p}),c,f]})]})}))},xv=t=>{const{x:e=0,y:n=0,width:r=100,height:i=40,fill:o="#1890FF",size:s=10}=t;return h(_e,{width:r,height:i,points:[{x:e,y:n},{x:e+r-s,y:n},{x:e+r,y:n+i/2},{x:e+r-s,y:n+i},{x:e,y:n+i},{x:e+s,y:n+i/2}],fill:o,"data-element-type":"shape"})},_v=t=>{const{x:e=0,y:n=0,width:r=10,height:i=50,fill:o,positionV:s="top"}=t,a=r/2,l=i-a,c=2,f=a;return O(Nt,{x:e,y:n,width:r,height:i,children:[h(xt,{width:r,height:r,fill:o,y:s==="top"?0:l-a}),h(ot,{d:s==="top"?`M${f},${a} L${f},${a+l}`:`M${f},0 L${f},${l-a}`,strokeWidth:c,stroke:o})]})};kt("horizontal-icon-arrow",{component:Lu,composites:["icon","label","desc","time"]});var bv=Object.defineProperty,wv=Object.defineProperties,vv=Object.getOwnPropertyDescriptors,Ru=Object.getOwnPropertySymbols,$v=Object.prototype.hasOwnProperty,Pv=Object.prototype.propertyIsEnumerable,Nu=(t,e,n)=>e in t?bv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Du=(t,e)=>{for(var n in e||(e={}))$v.call(e,n)&&Nu(t,n,e[n]);if(Ru)for(var n of Ru(e))Pv.call(e,n)&&Nu(t,n,e[n]);return t},ju=(t,e)=>wv(t,vv(e));const Fu=t=>{const[{indexes:e,datum:n,width:r=160,themeColors:i,positionH:o="center",positionV:s="normal"},a]=At(t,["width"]),l=o==="normal"?"left":o==="flipped"?"right":"center",c=h(ft,{indexes:e,width:r,alignHorizontal:l,fill:i.colorPrimary,children:n.label}),f=G(c),d=n.desc?h(It,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:s==="flipped"?"top":"bottom",children:n.desc}):null,u=G(d),g=n.icon?h(We,{size:45,indexes:e,colorBg:i.colorBg,fill:i.colorPrimary}):null,m=G(g),y=n.time?h(Et,{width:r,height:30,alignHorizontal:"center",alignVertical:"middle",fill:i.colorPrimary,fontSize:18,fontWeight:"bold",children:n.time}):null,_=G(y),x=18,b=O(an,{horizontal:"center",width:r,height:x,children:[h(dt,{width:r,height:x,fill:i.colorPrimary,"data-element-type":"shape"}),h(xt,{y:-3,width:x+6,height:x+6,fill:i.colorBg,fillOpacity:.5,"data-element-type":"shape"}),h(xt,{y:(x-12)/2,width:12,height:12,fill:"white","data-element-type":"shape"})]}),w=f.height+u.height,P=m.height+_.height+5,v=Math.abs(P-w),$=P>w?v:0,M=w>P?v:0;return s==="flipped"?O(rt,ju(Du({},a),{flexDirection:"column",alignItems:"center",children:[h(Tt,{height:M}),y,g,h(Tt,{height:5}),b,c,d,h(Tt,{height:$})]})):O(rt,ju(Du({},a),{flexDirection:"column",alignItems:"center",children:[h(Tt,{height:$}),c,d,b,h(Tt,{height:5}),g,y,h(Tt,{height:M})]}))};kt("horizontal-icon-line",{component:Fu,composites:["icon","label","desc"]});var Mv=Object.defineProperty,Ov=Object.defineProperties,Cv=Object.getOwnPropertyDescriptors,Bu=Object.getOwnPropertySymbols,Sv=Object.prototype.hasOwnProperty,Iv=Object.prototype.propertyIsEnumerable,Wu=(t,e,n)=>e in t?Mv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Av=(t,e)=>{for(var n in e||(e={}))Sv.call(e,n)&&Wu(t,n,e[n]);if(Bu)for(var n of Bu(e))Iv.call(e,n)&&Wu(t,n,e[n]);return t},kv=(t,e)=>Ov(t,Cv(e));const Xu=t=>{var e;const[{datum:n,indexes:r,size:i=80,iconSize:o=28,badgeSize:s=24,gap:a=8,themeColors:l,width:c=84,height:f=105},d]=At(t,["size","iconSize","badgeSize","gap"]),u=(e=n.value)!=null?e:0,p=`${l.colorPrimary}-icon`,g="#ff6b6b-badge";return O(B,kv(Av({},d),{width:c,height:f,children:[O(yt,{children:[O("radialGradient",{id:p,cx:"50%",cy:"30%",r:"70%",children:[h("stop",{offset:"0%",stopColor:Q(l.colorPrimary).lighten(30).toHexString()}),h("stop",{offset:"100%",stopColor:l.colorPrimary})]}),O("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:"#ff6b6b"}),h("stop",{offset:"100%",stopColor:"#ee5a52"})]})]}),h(xt,{x:0,y:0,width:i,height:i,fill:`url(#${p})`,"data-element-type":"shape"}),h(qt,{indexes:r,x:(i-o)/2,y:(i-o)/2,size:o,fill:l.colorPrimaryText}),h(xt,{x:i-s+4,y:0,width:s,height:s,fill:`url(#${g})`}),h(Et,{x:i-s/2+4,y:s/2,fontSize:10,fontWeight:"bold",fill:l.colorWhite,alignHorizontal:"center",alignVertical:"middle",children:u>99?"99+":Math.round(u)}),h(ft,{indexes:r,x:0,y:i+a,width:i,alignHorizontal:"center",fontSize:12,fill:l.colorText,children:n.label})]}))};kt("icon-badge",{component:Xu,composites:["icon","label"]});var Ev=Object.defineProperty,zv=Object.defineProperties,Tv=Object.getOwnPropertyDescriptors,Yu=Object.getOwnPropertySymbols,Hv=Object.prototype.hasOwnProperty,Lv=Object.prototype.propertyIsEnumerable,Vu=(t,e,n)=>e in t?Ev(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Rv=(t,e)=>{for(var n in e||(e={}))Hv.call(e,n)&&Vu(t,n,e[n]);if(Yu)for(var n of Yu(e))Lv.call(e,n)&&Vu(t,n,e[n]);return t},Nv=(t,e)=>zv(t,Tv(e));const qu=t=>{const[{datum:e,indexes:n,width:r=200,borderRadius:i=12,padding:o=16,separatorHeight:s=2,indexFontSize:a=20,labelFontSize:l=16,gap:c=8,themeColors:f},d]=At(t,["width","height","borderRadius","padding","separatorHeight","indexFontSize","labelFontSize","gap"]),u=n[0]+1,p=String(u).padStart(2,"0"),g=e.label!==void 0,m=e.desc!==void 0,y=Q.mix(f.colorPrimary,f.colorWhite,40).toHexString(),_=f.colorBgElevated||f.colorWhite,x=r-2*o,b=G(h(Et,{fontSize:a,fontWeight:"bold",children:p})),w=x-b.width-c,P=g?G(h(ft,{indexes:n,width:w,fontSize:l,fontWeight:"bold",x:a,children:e.label})):{height:0},v=m?G(h(It,{indexes:n,width:x,fontSize:14,lineHeight:1.5,wordWrap:!0,children:e.desc})):{height:0},$=Math.max(b.height,P.height),M=o*2+$+(g||m?c:0)+s+(m?c:0)+v.height;return O(B,Nv(Rv({},d),{width:r,height:M,children:[h(dt,{x:0,y:0,width:r,height:M,rx:i,ry:i,fill:_,stroke:Q(_).darken(5).toHexString(),strokeWidth:.5,"data-element-type":"shape"}),O(B,{x:o,y:o,children:[O(B,{x:0,y:0,children:[h(Et,{x:0,y:0,fontSize:a,fontWeight:"bold",fill:f.colorPrimary,alignVertical:"top",children:p}),g&&h(ft,{indexes:n,x:a+c,y:0,width:w,fontSize:l,fontWeight:"bold",fill:f.colorTextSecondary,alignVertical:"top",children:e.label})]}),h(dt,{x:0,y:$+c,width:x,height:s,fill:y,"data-element-type":"shape"}),m&&h(It,{indexes:n,x:0,y:$+c+s+c,width:x,fontSize:14,lineHeight:1.5,wordWrap:!0,fill:f.colorTextSecondary,children:e.desc})]})]}))};kt("indexed-card",{component:qu,composites:["label","desc"]});var Dv=Object.defineProperty,jv=Object.defineProperties,Fv=Object.getOwnPropertyDescriptors,Gu=Object.getOwnPropertySymbols,Bv=Object.prototype.hasOwnProperty,Wv=Object.prototype.propertyIsEnumerable,Uu=(t,e,n)=>e in t?Dv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xv=(t,e)=>{for(var n in e||(e={}))Bv.call(e,n)&&Uu(t,n,e[n]);if(Gu)for(var n of Gu(e))Wv.call(e,n)&&Uu(t,n,e[n]);return t},Yv=(t,e)=>jv(t,Fv(e));const Zu=t=>{const[{indexes:e,datum:n,width:r=140,iconSize:i=24,themeColors:o},s]=At(t,["width","iconSize"]),{label:a,desc:l}=n,c=8,f=16,d=12,u=f+d,p=r-u,g=60,m=i+44,y=f,_=g+d,x=g+f+d,b=[{x:0,y:x},{x:y,y:_},{x:y,y:x}],w=r-y-d,P=y+d,v=P+w,$=_+c/2,M=$+m,I=`M ${P} ${M} L ${P} ${$} L ${v} ${$}`,S=c/2,C=P+S,k=$+S,A=8;return O(B,Yv(Xv({},s),{children:[h(It,{indexes:e,x:u,width:p,height:g,fontSize:12,alignHorizontal:"left",alignVertical:"bottom",fill:o.colorTextSecondary,children:l}),h(_e,{points:b,fill:o.colorPrimary,opacity:.9,width:f,height:f,"data-element-type":"shape"}),h(ot,{d:I,stroke:o.colorPrimary,strokeWidth:c,fill:"none","data-element-type":"shape"}),h(qt,{indexes:e,x:C+w/2-i/2,y:k+A,size:i,fill:o.colorPrimary}),h(ft,{indexes:e,x:C,y:k+i+A*2,width:w,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:o.colorText,children:a})]}))};kt("l-corner-card",{component:Zu,composites:["icon","label","desc"]});var Vv=Object.defineProperty,qv=Object.defineProperties,Gv=Object.getOwnPropertyDescriptors,Qu=Object.getOwnPropertySymbols,Uv=Object.prototype.hasOwnProperty,Zv=Object.prototype.propertyIsEnumerable,Ku=(t,e,n)=>e in t?Vv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Qv=(t,e)=>{for(var n in e||(e={}))Uv.call(e,n)&&Ku(t,n,e[n]);if(Qu)for(var n of Qu(e))Zv.call(e,n)&&Ku(t,n,e[n]);return t},Kv=(t,e)=>qv(t,Gv(e));const Ju=t=>{var e,n;const[{datum:r,indexes:i,width:o=280,height:s=160,showStripe:a=!0,showGradient:l=!0,showBottomShade:c=!0,themeColors:f},d]=At(t,["width","height","showStripe","showGradient","showBottomShade"]),u=(e=r.label)==null?void 0:e[0].toUpperCase(),p=(n=r.label)==null?void 0:n.toUpperCase(),g=f.colorPrimary,m=Q(g),y=4,_=6,x=45,b=40,w=12,v=m.clone().darken(4).toHexString(),$=m.clone().lighten(w).toHexString(),M="rgba(255, 255, 255, 0)",I="rgba(0, 0, 0, 0.03)",S=`letter-card-${i.join("-")}`,C=`${S}-gradient`,k=`${S}-pattern`,A=`${S}-shade`,z=y+_,j=1,E=96,D=E*j,L=16,T=L*j,N=s/16,F=D+N+T,X=(s-F)/2,H=X+D+N;return O(B,Kv(Qv({},d),{width:o,height:s,children:[O(yt,{children:[l&&O("linearGradient",{id:C,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:v}),h("stop",{offset:"100%",stopColor:$})]}),a&&O("pattern",{id:k,patternUnits:"userSpaceOnUse",width:z,height:z,patternTransform:`rotate(${x})`,children:[h("rect",{x:"0",y:"0",width:z,height:z,fill:M}),h("rect",{x:"0",y:"0",width:y,height:z,fill:I})]}),c&&O("linearGradient",{id:A,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:"rgba(0,0,0,0)"}),h("stop",{offset:"100%",stopColor:"rgba(0,0,0,0.16)"})]})]}),h(dt,{x:0,y:0,width:o,height:s,fill:l?`url(#${C})`:g,rx:0,ry:0,"data-element-type":"shape"}),a&&h(dt,{x:0,y:0,width:o,height:s,fill:`url(#${k})`,rx:0,ry:0}),c&&h(dt,{x:0,y:s-b,width:o,height:b,fill:`url(#${A})`,rx:0,ry:0}),u&&h(ft,{indexes:i,x:0,y:X,width:o,fontSize:E,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"top",lineHeight:1,children:u}),h(ft,{indexes:i,x:0,y:H,width:o,fontSize:L,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"middle",lineHeight:1,children:p})]}))};kt("letter-card",{component:Ju,composites:["label"]});var Jv=Object.defineProperty,t3=Object.defineProperties,e3=Object.getOwnPropertyDescriptors,td=Object.getOwnPropertySymbols,n3=Object.prototype.hasOwnProperty,r3=Object.prototype.propertyIsEnumerable,ed=(t,e,n)=>e in t?Jv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,i3=(t,e)=>{for(var n in e||(e={}))n3.call(e,n)&&ed(t,n,e[n]);if(td)for(var n of td(e))r3.call(e,n)&&ed(t,n,e[n]);return t},o3=(t,e)=>t3(t,e3(e));const nd=t=>{const[{datum:e,indexes:n,width:r=300,pillWidth:i=120,pillHeight:o=36,gap:s=16,positionH:a="normal",themeColors:l},c]=At(t,["width","pillWidth","pillHeight","gap"]),f=!!e.desc,d=f?r:i,u=f?a==="center"?(d-i)/2:a==="flipped"?d-i:0:0,p=0,g=0,m=o+s,y=d,_=`drop-shadow-${l.colorPrimary}`,x="linear-gradient-white-top-bottom";return O(B,o3(i3({},c),{children:[O(yt,{children:[h(Ws,{id:_,color:l.colorPrimary}),h(Xs,{id:x,startColor:"#fff",stopColor:"#ffffff33",direction:"top-bottom"})]}),h(dt,{x:u,y:p,width:i,height:o,fill:l.colorPrimaryBg,stroke:l.colorPrimary,rx:o/2,ry:o/2,filter:`url(#${_})`,"data-element-type":"shape"}),h(dt,{x:u,y:p,width:i,height:o,fill:`url(#${x})`,opacity:l.isDarkMode?.4:.7,rx:o/2,ry:o/2}),h(ft,{indexes:n,x:u,y:p,width:i,height:o,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:l.colorText,children:e.label}),e.desc&&h(It,{indexes:n,x:g,y:m,width:y,alignHorizontal:a==="center"?"center":a==="flipped"?"right":"left",fontSize:12,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]}))};kt("pill-badge",{component:nd,composites:["label","desc"]});var s3=Object.defineProperty,a3=Object.defineProperties,l3=Object.getOwnPropertyDescriptors,rd=Object.getOwnPropertySymbols,c3=Object.prototype.hasOwnProperty,h3=Object.prototype.propertyIsEnumerable,id=(t,e,n)=>e in t?s3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,f3=(t,e)=>{for(var n in e||(e={}))c3.call(e,n)&&id(t,n,e[n]);if(rd)for(var n of rd(e))h3.call(e,n)&&id(t,n,e[n]);return t},u3=(t,e)=>a3(t,l3(e));const od=t=>{const[{indexes:e,datum:n,width:r=120,themeColors:i,positionH:o="normal",formatter:s=c=>c||"",usePaletteColor:a=!1},l]=At(t,["width","formatter","usePaletteColor"]);return h(ft,u3(f3({},l),{indexes:e,width:r,fill:a?i.colorPrimary:i.colorText,fontSize:14,fontWeight:"regular",alignHorizontal:o==="flipped"?"right":o==="center"?"center":"left",alignVertical:"middle",children:s(n.label||n.desc)}))};kt("plain-text",{component:od,composites:["label"]});function Si(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function d3(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function sd(t){let e,n,r;t.length!==2?(e=Si,n=(a,l)=>Si(t(a),l),r=(a,l)=>t(a)-l):(e=t===Si||t===d3?t:p3,n=t,r=t);function i(a,l,c=0,f=a.length){if(c<f){if(e(l,l)!==0)return f;do{const d=c+f>>>1;n(a[d],l)<0?c=d+1:f=d}while(c<f)}return c}function o(a,l,c=0,f=a.length){if(c<f){if(e(l,l)!==0)return f;do{const d=c+f>>>1;n(a[d],l)<=0?c=d+1:f=d}while(c<f)}return c}function s(a,l,c=0,f=a.length){const d=i(a,l,c,f-1);return d>c&&r(a[d-1],l)>-r(a[d],l)?d-1:d}return{left:i,center:s,right:o}}function p3(){return 0}function g3(t){return t===null?NaN:+t}const m3=sd(Si).right;sd(g3).center;const y3=Math.sqrt(50),x3=Math.sqrt(10),_3=Math.sqrt(2);function Ii(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=y3?10:o>=x3?5:o>=_3?2:1;let a,l,c;return i<0?(c=Math.pow(10,-i)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,i)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?Ii(t,e,n*2):[a,l,c]}function b3(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[i,o,s]=r?Ii(e,t,n):Ii(t,e,n);if(!(o>=i))return[];const a=o-i+1,l=new Array(a);if(r)if(s<0)for(let c=0;c<a;++c)l[c]=(o-c)/-s;else for(let c=0;c<a;++c)l[c]=(o-c)*s;else if(s<0)for(let c=0;c<a;++c)l[c]=(i+c)/-s;else for(let c=0;c<a;++c)l[c]=(i+c)*s;return l}function qs(t,e,n){return e=+e,t=+t,n=+n,Ii(t,e,n)[2]}function w3(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?qs(e,t,n):qs(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}var v3={value:()=>{}};function Gs(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Ai(n)}function Ai(t){this._=t}function $3(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Ai.prototype=Gs.prototype={constructor:Ai,on:function(t,e){var n=this._,r=$3(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=P3(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=ad(n[i],t.name,e);else if(e==null)for(i in n)n[i]=ad(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Ai(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function P3(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function ad(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=v3,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var Us="http://www.w3.org/1999/xhtml";const ld={svg:"http://www.w3.org/2000/svg",xhtml:Us,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ki(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),ld.hasOwnProperty(e)?{space:ld[e],local:t}:t}function M3(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Us&&e.documentElement.namespaceURI===Us?e.createElement(t):e.createElementNS(n,t)}}function O3(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function cd(t){var e=ki(t);return(e.local?O3:M3)(e)}function C3(){}function Zs(t){return t==null?C3:function(){return this.querySelector(t)}}function S3(t){typeof t!="function"&&(t=Zs(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=new Array(s),l,c,f=0;f<s;++f)(l=o[f])&&(c=t.call(l,l.__data__,f,o))&&("__data__"in l&&(c.__data__=l.__data__),a[f]=c);return new pe(r,this._parents)}function I3(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function A3(){return[]}function hd(t){return t==null?A3:function(){return this.querySelectorAll(t)}}function k3(t){return function(){return I3(t.apply(this,arguments))}}function E3(t){typeof t=="function"?t=k3(t):t=hd(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(t.call(l,l.__data__,c,s)),i.push(l));return new pe(r,i)}function fd(t){return function(){return this.matches(t)}}function ud(t){return function(e){return e.matches(t)}}var z3=Array.prototype.find;function T3(t){return function(){return z3.call(this.children,t)}}function H3(){return this.firstElementChild}function L3(t){return this.select(t==null?H3:T3(typeof t=="function"?t:ud(t)))}var R3=Array.prototype.filter;function N3(){return Array.from(this.children)}function D3(t){return function(){return R3.call(this.children,t)}}function j3(t){return this.selectAll(t==null?N3:D3(typeof t=="function"?t:ud(t)))}function F3(t){typeof t!="function"&&(t=fd(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new pe(r,this._parents)}function dd(t){return new Array(t.length)}function B3(){return new pe(this._enter||this._groups.map(dd),this._parents)}function Ei(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Ei.prototype={constructor:Ei,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function W3(t){return function(){return t}}function X3(t,e,n,r,i,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Ei(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function Y3(t,e,n,r,i,o,s){var a,l,c=new Map,f=e.length,d=o.length,u=new Array(f),p;for(a=0;a<f;++a)(l=e[a])&&(u[a]=p=s.call(l,l.__data__,a,e)+"",c.has(p)?i[a]=l:c.set(p,l));for(a=0;a<d;++a)p=s.call(t,o[a],a,o)+"",(l=c.get(p))?(r[a]=l,l.__data__=o[a],c.delete(p)):n[a]=new Ei(t,o[a]);for(a=0;a<f;++a)(l=e[a])&&c.get(u[a])===l&&(i[a]=l)}function V3(t){return t.__data__}function q3(t,e){if(!arguments.length)return Array.from(this,V3);var n=e?Y3:X3,r=this._parents,i=this._groups;typeof t!="function"&&(t=W3(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var f=r[c],d=i[c],u=d.length,p=G3(t.call(f,f&&f.__data__,c,r)),g=p.length,m=a[c]=new Array(g),y=s[c]=new Array(g),_=l[c]=new Array(u);n(f,d,m,y,_,p,e);for(var x=0,b=0,w,P;x<g;++x)if(w=m[x]){for(x>=b&&(b=x+1);!(P=y[b])&&++b<g;);w._next=P||null}}return s=new pe(s,r),s._enter=a,s._exit=l,s}function G3(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function U3(){return new pe(this._exit||this._groups.map(dd),this._parents)}function Z3(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function Q3(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var c=n[l],f=r[l],d=c.length,u=a[l]=new Array(d),p,g=0;g<d;++g)(p=c[g]||f[g])&&(u[g]=p);for(;l<i;++l)a[l]=n[l];return new pe(a,this._parents)}function K3(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function J3(t){t||(t=t4);function e(d,u){return d&&u?t(d.__data__,u.__data__):!d-!u}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),c,f=0;f<a;++f)(c=s[f])&&(l[f]=c);l.sort(e)}return new pe(i,this._parents).order()}function t4(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function e4(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function n4(){return Array.from(this)}function r4(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function i4(){let t=0;for(const e of this)++t;return t}function o4(){return!this.node()}function s4(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function a4(t){return function(){this.removeAttribute(t)}}function l4(t){return function(){this.removeAttributeNS(t.space,t.local)}}function c4(t,e){return function(){this.setAttribute(t,e)}}function h4(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function f4(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function u4(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function d4(t,e){var n=ki(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?l4:a4:typeof e=="function"?n.local?u4:f4:n.local?h4:c4)(n,e))}function pd(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function p4(t){return function(){this.style.removeProperty(t)}}function g4(t,e,n){return function(){this.style.setProperty(t,e,n)}}function m4(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function y4(t,e,n){return arguments.length>1?this.each((e==null?p4:typeof e=="function"?m4:g4)(t,e,n==null?"":n)):bn(this.node(),t)}function bn(t,e){return t.style.getPropertyValue(e)||pd(t).getComputedStyle(t,null).getPropertyValue(e)}function x4(t){return function(){delete this[t]}}function _4(t,e){return function(){this[t]=e}}function b4(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function w4(t,e){return arguments.length>1?this.each((e==null?x4:typeof e=="function"?b4:_4)(t,e)):this.node()[t]}function gd(t){return t.trim().split(/^|\s+/)}function Qs(t){return t.classList||new md(t)}function md(t){this._node=t,this._names=gd(t.getAttribute("class")||"")}md.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function yd(t,e){for(var n=Qs(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function xd(t,e){for(var n=Qs(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function v4(t){return function(){yd(this,t)}}function $4(t){return function(){xd(this,t)}}function P4(t,e){return function(){(e.apply(this,arguments)?yd:xd)(this,t)}}function M4(t,e){var n=gd(t+"");if(arguments.length<2){for(var r=Qs(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?P4:e?v4:$4)(n,e))}function O4(){this.textContent=""}function C4(t){return function(){this.textContent=t}}function S4(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function I4(t){return arguments.length?this.each(t==null?O4:(typeof t=="function"?S4:C4)(t)):this.node().textContent}function A4(){this.innerHTML=""}function k4(t){return function(){this.innerHTML=t}}function E4(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function z4(t){return arguments.length?this.each(t==null?A4:(typeof t=="function"?E4:k4)(t)):this.node().innerHTML}function T4(){this.nextSibling&&this.parentNode.appendChild(this)}function H4(){return this.each(T4)}function L4(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function R4(){return this.each(L4)}function N4(t){var e=typeof t=="function"?t:cd(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function D4(){return null}function j4(t,e){var n=typeof t=="function"?t:cd(t),r=e==null?D4:typeof e=="function"?e:Zs(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function F4(){var t=this.parentNode;t&&t.removeChild(this)}function B4(){return this.each(F4)}function W4(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function X4(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Y4(t){return this.select(t?X4:W4)}function V4(t){return arguments.length?this.property("__data__",t):this.node().__data__}function q4(t){return function(e){t.call(this,e,this.__data__)}}function G4(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function U4(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function Z4(t,e,n){return function(){var r=this.__on,i,o=q4(e);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function Q4(t,e,n){var r=G4(t+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,f;l<c;++l)for(i=0,f=a[l];i<o;++i)if((s=r[i]).type===f.type&&s.name===f.name)return f.value}return}for(a=e?Z4:U4,i=0;i<o;++i)this.each(a(r[i],e,n));return this}function _d(t,e,n){var r=pd(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function K4(t,e){return function(){return _d(this,t,e)}}function J4(t,e){return function(){return _d(this,t,e.apply(this,arguments))}}function t6(t,e){return this.each((typeof e=="function"?J4:K4)(t,e))}function*e6(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var n6=[null];function pe(t,e){this._groups=t,this._parents=e}function rr(){return new pe([[document.documentElement]],n6)}function r6(){return this}pe.prototype=rr.prototype={constructor:pe,select:S3,selectAll:E3,selectChild:L3,selectChildren:j3,filter:F3,data:q3,enter:B3,exit:U3,join:Z3,merge:Q3,selection:r6,order:K3,sort:J3,call:e4,nodes:n4,node:r4,size:i4,empty:o4,each:s4,attr:d4,style:y4,property:w4,classed:M4,text:I4,html:z4,raise:H4,lower:R4,append:N4,insert:j4,remove:B4,clone:Y4,datum:V4,on:Q4,dispatch:t6,[Symbol.iterator]:e6};function Ks(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function bd(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ir(){}var or=.7,zi=1/or,wn="\\s*([+-]?\\d+)\\s*",sr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",we="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",i6=/^#([0-9a-f]{3,8})$/,o6=new RegExp(`^rgb\\(${wn},${wn},${wn}\\)$`),s6=new RegExp(`^rgb\\(${we},${we},${we}\\)$`),a6=new RegExp(`^rgba\\(${wn},${wn},${wn},${sr}\\)$`),l6=new RegExp(`^rgba\\(${we},${we},${we},${sr}\\)$`),c6=new RegExp(`^hsl\\(${sr},${we},${we}\\)$`),h6=new RegExp(`^hsla\\(${sr},${we},${we},${sr}\\)$`),wd={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ks(ir,Qe,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:vd,formatHex:vd,formatHex8:f6,formatHsl:u6,formatRgb:$d,toString:$d});function vd(){return this.rgb().formatHex()}function f6(){return this.rgb().formatHex8()}function u6(){return Sd(this).formatHsl()}function $d(){return this.rgb().formatRgb()}function Qe(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=i6.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Pd(e):n===3?new ee(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Ti(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Ti(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=o6.exec(t))?new ee(e[1],e[2],e[3],1):(e=s6.exec(t))?new ee(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=a6.exec(t))?Ti(e[1],e[2],e[3],e[4]):(e=l6.exec(t))?Ti(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=c6.exec(t))?Cd(e[1],e[2]/100,e[3]/100,1):(e=h6.exec(t))?Cd(e[1],e[2]/100,e[3]/100,e[4]):wd.hasOwnProperty(t)?Pd(wd[t]):t==="transparent"?new ee(NaN,NaN,NaN,0):null}function Pd(t){return new ee(t>>16&255,t>>8&255,t&255,1)}function Ti(t,e,n,r){return r<=0&&(t=e=n=NaN),new ee(t,e,n,r)}function d6(t){return t instanceof ir||(t=Qe(t)),t?(t=t.rgb(),new ee(t.r,t.g,t.b,t.opacity)):new ee}function Js(t,e,n,r){return arguments.length===1?d6(t):new ee(t,e,n,r==null?1:r)}function ee(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Ks(ee,Js,bd(ir,{brighter(t){return t=t==null?zi:Math.pow(zi,t),new ee(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?or:Math.pow(or,t),new ee(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ee(Ke(this.r),Ke(this.g),Ke(this.b),Hi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Md,formatHex:Md,formatHex8:p6,formatRgb:Od,toString:Od}));function Md(){return`#${Je(this.r)}${Je(this.g)}${Je(this.b)}`}function p6(){return`#${Je(this.r)}${Je(this.g)}${Je(this.b)}${Je((isNaN(this.opacity)?1:this.opacity)*255)}`}function Od(){const t=Hi(this.opacity);return`${t===1?"rgb(":"rgba("}${Ke(this.r)}, ${Ke(this.g)}, ${Ke(this.b)}${t===1?")":`, ${t})`}`}function Hi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ke(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Je(t){return t=Ke(t),(t<16?"0":"")+t.toString(16)}function Cd(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ge(t,e,n,r)}function Sd(t){if(t instanceof ge)return new ge(t.h,t.s,t.l,t.opacity);if(t instanceof ir||(t=Qe(t)),!t)return new ge;if(t instanceof ge)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(e===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-e)/a+2:s=(e-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new ge(s,a,l,t.opacity)}function g6(t,e,n,r){return arguments.length===1?Sd(t):new ge(t,e,n,r==null?1:r)}function ge(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Ks(ge,g6,bd(ir,{brighter(t){return t=t==null?zi:Math.pow(zi,t),new ge(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?or:Math.pow(or,t),new ge(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ee(ta(t>=240?t-240:t+120,i,r),ta(t,i,r),ta(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new ge(Id(this.h),Li(this.s),Li(this.l),Hi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Hi(this.opacity);return`${t===1?"hsl(":"hsla("}${Id(this.h)}, ${Li(this.s)*100}%, ${Li(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Id(t){return t=(t||0)%360,t<0?t+360:t}function Li(t){return Math.max(0,Math.min(1,t||0))}function ta(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const ea=t=>()=>t;function m6(t,e){return function(n){return t+n*e}}function y6(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function x6(t){return(t=+t)==1?Ad:function(e,n){return n-e?y6(e,n,t):ea(isNaN(e)?n:e)}}function Ad(t,e){var n=e-t;return n?m6(t,n):ea(isNaN(t)?e:t)}const Ri=(function t(e){var n=x6(e);function r(i,o){var s=n((i=Js(i)).r,(o=Js(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),c=Ad(i.opacity,o.opacity);return function(f){return i.r=s(f),i.g=a(f),i.b=l(f),i.opacity=c(f),i+""}}return r.gamma=t,r})(1);function _6(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function b6(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function w6(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=ia(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(a){for(s=0;s<r;++s)o[s]=i[s](a);return o}}function v6(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function me(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function $6(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=ia(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var na=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ra=new RegExp(na.source,"g");function P6(t){return function(){return t}}function M6(t){return function(e){return t(e)+""}}function kd(t,e){var n=na.lastIndex=ra.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=na.exec(t))&&(i=ra.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:me(r,i)})),n=ra.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?M6(l[0].x):P6(e):(e=l.length,function(c){for(var f=0,d;f<e;++f)a[(d=l[f]).i]=d.x(c);return a.join("")})}function ia(t,e){var n=typeof e,r;return e==null||n==="boolean"?ea(e):(n==="number"?me:n==="string"?(r=Qe(e))?(e=r,Ri):kd:e instanceof Qe?Ri:e instanceof Date?v6:b6(e)?_6:Array.isArray(e)?w6:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?$6:me)(t,e)}function O6(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Ed=180/Math.PI,oa={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function zd(t,e,n,r,i,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*Ed,skewX:Math.atan(l)*Ed,scaleX:s,scaleY:a}}var Ni;function C6(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?oa:zd(e.a,e.b,e.c,e.d,e.e,e.f)}function S6(t){return t==null||(Ni||(Ni=document.createElementNS("http://www.w3.org/2000/svg","g")),Ni.setAttribute("transform",t),!(t=Ni.transform.baseVal.consolidate()))?oa:(t=t.matrix,zd(t.a,t.b,t.c,t.d,t.e,t.f))}function Td(t,e,n,r){function i(c){return c.length?c.pop()+" ":""}function o(c,f,d,u,p,g){if(c!==d||f!==u){var m=p.push("translate(",null,e,null,n);g.push({i:m-4,x:me(c,d)},{i:m-2,x:me(f,u)})}else(d||u)&&p.push("translate("+d+e+u+n)}function s(c,f,d,u){c!==f?(c-f>180?f+=360:f-c>180&&(c+=360),u.push({i:d.push(i(d)+"rotate(",null,r)-2,x:me(c,f)})):f&&d.push(i(d)+"rotate("+f+r)}function a(c,f,d,u){c!==f?u.push({i:d.push(i(d)+"skewX(",null,r)-2,x:me(c,f)}):f&&d.push(i(d)+"skewX("+f+r)}function l(c,f,d,u,p,g){if(c!==d||f!==u){var m=p.push(i(p)+"scale(",null,",",null,")");g.push({i:m-4,x:me(c,d)},{i:m-2,x:me(f,u)})}else(d!==1||u!==1)&&p.push(i(p)+"scale("+d+","+u+")")}return function(c,f){var d=[],u=[];return c=t(c),f=t(f),o(c.translateX,c.translateY,f.translateX,f.translateY,d,u),s(c.rotate,f.rotate,d,u),a(c.skewX,f.skewX,d,u),l(c.scaleX,c.scaleY,f.scaleX,f.scaleY,d,u),c=f=null,function(p){for(var g=-1,m=u.length,y;++g<m;)d[(y=u[g]).i]=y.x(p);return d.join("")}}}var I6=Td(C6,"px, ","px)","deg)"),A6=Td(S6,", ",")",")"),vn=0,ar=0,lr=0,Hd=1e3,Di,cr,ji=0,tn=0,Fi=0,hr=typeof performance=="object"&&performance.now?performance:Date,Ld=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function sa(){return tn||(Ld(k6),tn=hr.now()+Fi)}function k6(){tn=0}function Bi(){this._call=this._time=this._next=null}Bi.prototype=aa.prototype={constructor:Bi,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?sa():+n)+(e==null?0:+e),!this._next&&cr!==this&&(cr?cr._next=this:Di=this,cr=this),this._call=t,this._time=n,la()},stop:function(){this._call&&(this._call=null,this._time=1/0,la())}};function aa(t,e,n){var r=new Bi;return r.restart(t,e,n),r}function E6(){sa(),++vn;for(var t=Di,e;t;)(e=tn-t._time)>=0&&t._call.call(void 0,e),t=t._next;--vn}function Rd(){tn=(ji=hr.now())+Fi,vn=ar=0;try{E6()}finally{vn=0,T6(),tn=0}}function z6(){var t=hr.now(),e=t-ji;e>Hd&&(Fi-=e,ji=t)}function T6(){for(var t,e=Di,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Di=n);cr=t,la(r)}function la(t){if(!vn){ar&&(ar=clearTimeout(ar));var e=t-tn;e>24?(t<1/0&&(ar=setTimeout(Rd,t-hr.now()-Fi)),lr&&(lr=clearInterval(lr))):(lr||(ji=hr.now(),lr=setInterval(z6,Hd)),vn=1,Ld(Rd))}}function Nd(t,e,n){var r=new Bi;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var H6=Gs("start","end","cancel","interrupt"),L6=[],Dd=0,jd=1,ca=2,Wi=3,Fd=4,ha=5,Xi=6;function Yi(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;R6(t,n,{name:e,index:r,group:i,on:H6,tween:L6,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Dd})}function fa(t,e){var n=ye(t,e);if(n.state>Dd)throw new Error("too late; already scheduled");return n}function ve(t,e){var n=ye(t,e);if(n.state>Wi)throw new Error("too late; already running");return n}function ye(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function R6(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=aa(o,0,n.time);function o(c){n.state=jd,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var f,d,u,p;if(n.state!==jd)return l();for(f in r)if(p=r[f],p.name===n.name){if(p.state===Wi)return Nd(s);p.state===Fd?(p.state=Xi,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[f]):+f<e&&(p.state=Xi,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[f])}if(Nd(function(){n.state===Wi&&(n.state=Fd,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=ca,n.on.call("start",t,t.__data__,n.index,n.group),n.state===ca){for(n.state=Wi,i=new Array(u=n.tween.length),f=0,d=-1;f<u;++f)(p=n.tween[f].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=p);i.length=d+1}}function a(c){for(var f=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=ha,1),d=-1,u=i.length;++d<u;)i[d].call(t,f);n.state===ha&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=Xi,n.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function N6(t,e){var n=t.__transition,r,i,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((r=n[s]).name!==e){o=!1;continue}i=r.state>ca&&r.state<ha,r.state=Xi,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function D6(t){return this.each(function(){N6(this,t)})}function j6(t,e){var n,r;return function(){var i=ve(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function F6(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=ve(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=a;break}l===c&&i.push(a)}o.tween=i}}function B6(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=ye(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===t)return s.value;return null}return this.each((e==null?j6:F6)(n,t,e))}function ua(t,e,n){var r=t._id;return t.each(function(){var i=ve(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return ye(i,r).value[e]}}function Bd(t,e){var n;return(typeof e=="number"?me:e instanceof Qe?Ri:(n=Qe(e))?(e=n,Ri):kd)(t,e)}function W6(t){return function(){this.removeAttribute(t)}}function X6(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Y6(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttribute(t);return s===i?null:s===r?o:o=e(r=s,n)}}function V6(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===r?o:o=e(r=s,n)}}function q6(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function G6(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function U6(t,e){var n=ki(t),r=n==="transform"?A6:Bd;return this.attrTween(t,typeof e=="function"?(n.local?G6:q6)(n,r,ua(this,"attr."+t,e)):e==null?(n.local?X6:W6)(n):(n.local?V6:Y6)(n,r,e))}function Z6(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Q6(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function K6(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&Q6(t,o)),n}return i._value=e,i}function J6(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&Z6(t,o)),n}return i._value=e,i}function t8(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=ki(t);return this.tween(n,(r.local?K6:J6)(r,e))}function e8(t,e){return function(){fa(this,t).delay=+e.apply(this,arguments)}}function n8(t,e){return e=+e,function(){fa(this,t).delay=e}}function r8(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?e8:n8)(e,t)):ye(this.node(),e).delay}function i8(t,e){return function(){ve(this,t).duration=+e.apply(this,arguments)}}function o8(t,e){return e=+e,function(){ve(this,t).duration=e}}function s8(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?i8:o8)(e,t)):ye(this.node(),e).duration}function a8(t,e){if(typeof e!="function")throw new Error;return function(){ve(this,t).ease=e}}function l8(t){var e=this._id;return arguments.length?this.each(a8(e,t)):ye(this.node(),e).ease}function c8(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;ve(this,t).ease=n}}function h8(t){if(typeof t!="function")throw new Error;return this.each(c8(this._id,t))}function f8(t){typeof t!="function"&&(t=fd(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new Ie(r,this._parents,this._name,this._id)}function u8(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=e[a],c=n[a],f=l.length,d=s[a]=new Array(f),u,p=0;p<f;++p)(u=l[p]||c[p])&&(d[p]=u);for(;a<r;++a)s[a]=e[a];return new Ie(s,this._parents,this._name,this._id)}function d8(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function p8(t,e,n){var r,i,o=d8(e)?fa:ve;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}function g8(t,e){var n=this._id;return arguments.length<2?ye(this.node(),n).on.on(t):this.each(p8(n,t,e))}function m8(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function y8(){return this.on("end.remove",m8(this._id))}function x8(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Zs(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),f,d,u=0;u<l;++u)(f=a[u])&&(d=t.call(f,f.__data__,u,a))&&("__data__"in f&&(d.__data__=f.__data__),c[u]=d,Yi(c[u],e,n,u,c,ye(f,n)));return new Ie(o,this._parents,e,n)}function _8(t){var e=this._name,n=this._id;typeof t!="function"&&(t=hd(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],c=l.length,f,d=0;d<c;++d)if(f=l[d]){for(var u=t.call(f,f.__data__,d,l),p,g=ye(f,n),m=0,y=u.length;m<y;++m)(p=u[m])&&Yi(p,e,n,m,u,g);o.push(u),s.push(f)}return new Ie(o,s,e,n)}var b8=rr.prototype.constructor;function w8(){return new b8(this._groups,this._parents)}function v8(t,e){var n,r,i;return function(){var o=bn(this,t),s=(this.style.removeProperty(t),bn(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}function Wd(t){return function(){this.style.removeProperty(t)}}function $8(t,e,n){var r,i=n+"",o;return function(){var s=bn(this,t);return s===i?null:s===r?o:o=e(r=s,n)}}function P8(t,e,n){var r,i,o;return function(){var s=bn(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),bn(this,t))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a))}}function M8(t,e){var n,r,i,o="style."+e,s="end."+o,a;return function(){var l=ve(this,t),c=l.on,f=l.value[o]==null?a||(a=Wd(e)):void 0;(c!==n||i!==f)&&(r=(n=c).copy()).on(s,i=f),l.on=r}}function O8(t,e,n){var r=(t+="")=="transform"?I6:Bd;return e==null?this.styleTween(t,v8(t,r)).on("end.style."+t,Wd(t)):typeof e=="function"?this.styleTween(t,P8(t,r,ua(this,"style."+t,e))).each(M8(this._id,t)):this.styleTween(t,$8(t,r,e),n).on("end.style."+t,null)}function C8(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function S8(t,e,n){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&C8(t,s,n)),r}return o._value=e,o}function I8(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,S8(t,e,n==null?"":n))}function A8(t){return function(){this.textContent=t}}function k8(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function E8(t){return this.tween("text",typeof t=="function"?k8(ua(this,"text",t)):A8(t==null?"":t+""))}function z8(t){return function(e){this.textContent=t.call(this,e)}}function T8(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&z8(i)),e}return r._value=t,r}function H8(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,T8(t))}function L8(){for(var t=this._name,e=this._id,n=Xd(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var f=ye(l,e);Yi(l,t,n,c,s,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Ie(r,this._parents,t,n)}function R8(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var c=ve(this,r),f=c.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),i===0&&o()})}var N8=0;function Ie(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Xd(){return++N8}var Ae=rr.prototype;Ie.prototype={constructor:Ie,select:x8,selectAll:_8,selectChild:Ae.selectChild,selectChildren:Ae.selectChildren,filter:f8,merge:u8,selection:w8,transition:L8,call:Ae.call,nodes:Ae.nodes,node:Ae.node,size:Ae.size,empty:Ae.empty,each:Ae.each,on:g8,attr:U6,attrTween:t8,style:O8,styleTween:I8,text:E8,textTween:H8,remove:y8,tween:B6,delay:r8,duration:s8,ease:l8,easeVarying:h8,end:R8,[Symbol.iterator]:Ae[Symbol.iterator]};function D8(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var j8={time:null,delay:0,duration:250,ease:D8};function F8(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function B8(t){var e,n;t instanceof Ie?(e=t._id,t=t._name):(e=Xd(),(n=j8).time=sa(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&Yi(l,t,e,c,s,n||F8(l,e));return new Ie(r,this._parents,t,e)}rr.prototype.interrupt=D6,rr.prototype.transition=B8;const da=Math.PI,pa=2*da,en=1e-6,W8=pa-en;function Yd(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function X8(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Yd;const n=gr(10,e);return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class Y8{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Yd:X8(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,i){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,n,r,i,o,s){this._append`C${+e},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(e,n,r,i,o){if(e=+e,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,l=r-e,c=i-n,f=s-e,d=a-n,u=f*f+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(u>en)if(!(Math.abs(d*l-c*f)>en)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let p=r-s,g=i-a,m=l*l+c*c,y=p*p+g*g,_=Math.sqrt(m),x=Math.sqrt(u),b=o*Math.tan((da-Math.acos((m+u-y)/(2*_*x)))/2),w=b/x,P=b/_;Math.abs(w-1)>en&&this._append`L${e+w*f},${n+w*d}`,this._append`A${o},${o},0,0,${+(d*p>f*g)},${this._x1=e+P*l},${this._y1=n+P*c}`}}arc(e,n,r,i,o,s){if(e=+e,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),l=r*Math.sin(i),c=e+a,f=n+l,d=1^s,u=s?i-o:o-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>en||Math.abs(this._y1-f)>en)&&this._append`L${c},${f}`,r&&(u<0&&(u=u%pa+pa),u>W8?this._append`A${r},${r},0,1,${d},${e-a},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=f}`:u>en&&this._append`A${r},${r},0,${+(u>=da)},${d},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function V8(t,e){var n,r=1;t==null&&(t=0),e==null&&(e=0);function i(){var o,s=n.length,a,l=0,c=0;for(o=0;o<s;++o)a=n[o],l+=a.x,c+=a.y;for(l=(l/s-t)*r,c=(c/s-e)*r,o=0;o<s;++o)a=n[o],a.x-=l,a.y-=c}return i.initialize=function(o){n=o},i.x=function(o){return arguments.length?(t=+o,i):t},i.y=function(o){return arguments.length?(e=+o,i):e},i.strength=function(o){return arguments.length?(r=+o,i):r},i}function q8(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return Vd(this.cover(e,n),e,n,t)}function Vd(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o=t._root,s={data:r},a=t._x0,l=t._y0,c=t._x1,f=t._y1,d,u,p,g,m,y,_,x;if(!o)return t._root=s,t;for(;o.length;)if((m=e>=(d=(a+c)/2))?a=d:c=d,(y=n>=(u=(l+f)/2))?l=u:f=u,i=o,!(o=o[_=y<<1|m]))return i[_]=s,t;if(p=+t._x.call(null,o.data),g=+t._y.call(null,o.data),e===p&&n===g)return s.next=o,i?i[_]=s:t._root=s,t;do i=i?i[_]=new Array(4):t._root=new Array(4),(m=e>=(d=(a+c)/2))?a=d:c=d,(y=n>=(u=(l+f)/2))?l=u:f=u;while((_=y<<1|m)===(x=(g>=u)<<1|p>=d));return i[x]=o,i[_]=s,t}function G8(t){var e,n,r=t.length,i,o,s=new Array(r),a=new Array(r),l=1/0,c=1/0,f=-1/0,d=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(o=+this._y.call(null,e))||(s[n]=i,a[n]=o,i<l&&(l=i),i>f&&(f=i),o<c&&(c=o),o>d&&(d=o));if(l>f||c>d)return this;for(this.cover(l,c).cover(f,d),n=0;n<r;++n)Vd(this,s[n],a[n],t[n]);return this}function U8(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var s=i-n||1,a=this._root,l,c;n>t||t>=i||r>e||e>=o;)switch(c=(e<r)<<1|t<n,l=new Array(4),l[c]=a,a=l,s*=2,c){case 0:i=n+s,o=r+s;break;case 1:n=i-s,o=r+s;break;case 2:i=n+s,r=o-s;break;case 3:n=i-s,r=o-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this}function Z8(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function Q8(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Zt(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function K8(t,e,n){var r,i=this._x0,o=this._y0,s,a,l,c,f=this._x1,d=this._y1,u=[],p=this._root,g,m;for(p&&u.push(new Zt(p,i,o,f,d)),n==null?n=1/0:(i=t-n,o=e-n,f=t+n,d=e+n,n*=n);g=u.pop();)if(!(!(p=g.node)||(s=g.x0)>f||(a=g.y0)>d||(l=g.x1)<i||(c=g.y1)<o))if(p.length){var y=(s+l)/2,_=(a+c)/2;u.push(new Zt(p[3],y,_,l,c),new Zt(p[2],s,_,y,c),new Zt(p[1],y,a,l,_),new Zt(p[0],s,a,y,_)),(m=(e>=_)<<1|t>=y)&&(g=u[u.length-1],u[u.length-1]=u[u.length-1-m],u[u.length-1-m]=g)}else{var x=t-+this._x.call(null,p.data),b=e-+this._y.call(null,p.data),w=x*x+b*b;if(w<n){var P=Math.sqrt(n=w);i=t-P,o=e-P,f=t+P,d=e+P,r=p.data}}return r}function J8(t){if(isNaN(f=+this._x.call(null,t))||isNaN(d=+this._y.call(null,t)))return this;var e,n=this._root,r,i,o,s=this._x0,a=this._y0,l=this._x1,c=this._y1,f,d,u,p,g,m,y,_;if(!n)return this;if(n.length)for(;;){if((g=f>=(u=(s+l)/2))?s=u:l=u,(m=d>=(p=(a+c)/2))?a=p:c=p,e=n,!(n=n[y=m<<1|g]))return this;if(!n.length)break;(e[y+1&3]||e[y+2&3]||e[y+3&3])&&(r=e,_=y)}for(;n.data!==t;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):e?(o?e[y]=o:delete e[y],(n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[_]=n:this._root=n),this):(this._root=o,this)}function t9(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}function e9(){return this._root}function n9(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function r9(t){var e=[],n,r=this._root,i,o,s,a,l;for(r&&e.push(new Zt(r,this._x0,this._y0,this._x1,this._y1));n=e.pop();)if(!t(r=n.node,o=n.x0,s=n.y0,a=n.x1,l=n.y1)&&r.length){var c=(o+a)/2,f=(s+l)/2;(i=r[3])&&e.push(new Zt(i,c,f,a,l)),(i=r[2])&&e.push(new Zt(i,o,f,c,l)),(i=r[1])&&e.push(new Zt(i,c,s,a,f)),(i=r[0])&&e.push(new Zt(i,o,s,c,f))}return this}function i9(t){var e=[],n=[],r;for(this._root&&e.push(new Zt(this._root,this._x0,this._y0,this._x1,this._y1));r=e.pop();){var i=r.node;if(i.length){var o,s=r.x0,a=r.y0,l=r.x1,c=r.y1,f=(s+l)/2,d=(a+c)/2;(o=i[0])&&e.push(new Zt(o,s,a,f,d)),(o=i[1])&&e.push(new Zt(o,f,a,l,d)),(o=i[2])&&e.push(new Zt(o,s,d,f,c)),(o=i[3])&&e.push(new Zt(o,f,d,l,c))}n.push(r)}for(;r=n.pop();)t(r.node,r.x0,r.y0,r.x1,r.y1);return this}function o9(t){return t[0]}function s9(t){return arguments.length?(this._x=t,this):this._x}function a9(t){return t[1]}function l9(t){return arguments.length?(this._y=t,this):this._y}function ga(t,e,n){var r=new ma(e==null?o9:e,n==null?a9:n,NaN,NaN,NaN,NaN);return t==null?r:r.addAll(t)}function ma(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function qd(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Qt=ga.prototype=ma.prototype;Qt.copy=function(){var t=new ma(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,n,r;if(!e)return t;if(!e.length)return t._root=qd(e),t;for(n=[{source:e,target:t._root=new Array(4)}];e=n.pop();)for(var i=0;i<4;++i)(r=e.source[i])&&(r.length?n.push({source:r,target:e.target[i]=new Array(4)}):e.target[i]=qd(r));return t},Qt.add=q8,Qt.addAll=G8,Qt.cover=U8,Qt.data=Z8,Qt.extent=Q8,Qt.find=K8,Qt.remove=J8,Qt.removeAll=t9,Qt.root=e9,Qt.size=n9,Qt.visit=r9,Qt.visitAfter=i9,Qt.x=s9,Qt.y=l9;function nn(t){return function(){return t}}function De(t){return(t()-.5)*1e-6}function c9(t){return t.x+t.vx}function h9(t){return t.y+t.vy}function f9(t){var e,n,r,i=1,o=1;typeof t!="function"&&(t=nn(t==null?1:+t));function s(){for(var c,f=e.length,d,u,p,g,m,y,_=0;_<o;++_)for(d=ga(e,c9,h9).visitAfter(a),c=0;c<f;++c)u=e[c],m=n[u.index],y=m*m,p=u.x+u.vx,g=u.y+u.vy,d.visit(x);function x(b,w,P,v,$){var M=b.data,I=b.r,S=m+I;if(M){if(M.index>u.index){var C=p-M.x-M.vx,k=g-M.y-M.vy,A=C*C+k*k;A<S*S&&(C===0&&(C=De(r),A+=C*C),k===0&&(k=De(r),A+=k*k),A=(S-(A=Math.sqrt(A)))/A*i,u.vx+=(C*=A)*(S=(I*=I)/(y+I)),u.vy+=(k*=A)*S,M.vx-=C*(S=1-S),M.vy-=k*S)}return}return w>p+S||v<p-S||P>g+S||$<g-S}}function a(c){if(c.data)return c.r=n[c.data.index];for(var f=c.r=0;f<4;++f)c[f]&&c[f].r>c.r&&(c.r=c[f].r)}function l(){if(e){var c,f=e.length,d;for(n=new Array(f),c=0;c<f;++c)d=e[c],n[d.index]=+t(d,c,e)}}return s.initialize=function(c,f){e=c,r=f,l()},s.iterations=function(c){return arguments.length?(o=+c,s):o},s.strength=function(c){return arguments.length?(i=+c,s):i},s.radius=function(c){return arguments.length?(t=typeof c=="function"?c:nn(+c),l(),s):t},s}function u9(t){return t.index}function Gd(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function d9(t){var e=u9,n=d,r,i=nn(30),o,s,a,l,c,f=1;t==null&&(t=[]);function d(y){return 1/Math.min(a[y.source.index],a[y.target.index])}function u(y){for(var _=0,x=t.length;_<f;++_)for(var b=0,w,P,v,$,M,I,S;b<x;++b)w=t[b],P=w.source,v=w.target,$=v.x+v.vx-P.x-P.vx||De(c),M=v.y+v.vy-P.y-P.vy||De(c),I=Math.sqrt($*$+M*M),I=(I-o[b])/I*y*r[b],$*=I,M*=I,v.vx-=$*(S=l[b]),v.vy-=M*S,P.vx+=$*(S=1-S),P.vy+=M*S}function p(){if(s){var y,_=s.length,x=t.length,b=new Map(s.map((P,v)=>[e(P,v,s),P])),w;for(y=0,a=new Array(_);y<x;++y)w=t[y],w.index=y,typeof w.source!="object"&&(w.source=Gd(b,w.source)),typeof w.target!="object"&&(w.target=Gd(b,w.target)),a[w.source.index]=(a[w.source.index]||0)+1,a[w.target.index]=(a[w.target.index]||0)+1;for(y=0,l=new Array(x);y<x;++y)w=t[y],l[y]=a[w.source.index]/(a[w.source.index]+a[w.target.index]);r=new Array(x),g(),o=new Array(x),m()}}function g(){if(s)for(var y=0,_=t.length;y<_;++y)r[y]=+n(t[y],y,t)}function m(){if(s)for(var y=0,_=t.length;y<_;++y)o[y]=+i(t[y],y,t)}return u.initialize=function(y,_){s=y,c=_,p()},u.links=function(y){return arguments.length?(t=y,p(),u):t},u.id=function(y){return arguments.length?(e=y,u):e},u.iterations=function(y){return arguments.length?(f=+y,u):f},u.strength=function(y){return arguments.length?(n=typeof y=="function"?y:nn(+y),g(),u):n},u.distance=function(y){return arguments.length?(i=typeof y=="function"?y:nn(+y),m(),u):i},u}const p9=1664525,g9=1013904223,Ud=4294967296;function m9(){let t=1;return()=>(t=(p9*t+g9)%Ud)/Ud}function y9(t){return t.x}function x9(t){return t.y}var _9=10,b9=Math.PI*(3-Math.sqrt(5));function w9(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=new Map,l=aa(d),c=Gs("tick","end"),f=m9();t==null&&(t=[]);function d(){u(),c.call("tick",e),n<r&&(l.stop(),c.call("end",e))}function u(m){var y,_=t.length,x;m===void 0&&(m=1);for(var b=0;b<m;++b)for(n+=(o-n)*i,a.forEach(function(w){w(n)}),y=0;y<_;++y)x=t[y],x.fx==null?x.x+=x.vx*=s:(x.x=x.fx,x.vx=0),x.fy==null?x.y+=x.vy*=s:(x.y=x.fy,x.vy=0);return e}function p(){for(var m=0,y=t.length,_;m<y;++m){if(_=t[m],_.index=m,_.fx!=null&&(_.x=_.fx),_.fy!=null&&(_.y=_.fy),isNaN(_.x)||isNaN(_.y)){var x=_9*Math.sqrt(.5+m),b=m*b9;_.x=x*Math.cos(b),_.y=x*Math.sin(b)}(isNaN(_.vx)||isNaN(_.vy))&&(_.vx=_.vy=0)}}function g(m){return m.initialize&&m.initialize(t,f),m}return p(),e={tick:u,restart:function(){return l.restart(d),e},stop:function(){return l.stop(),e},nodes:function(m){return arguments.length?(t=m,p(),a.forEach(g),e):t},alpha:function(m){return arguments.length?(n=+m,e):n},alphaMin:function(m){return arguments.length?(r=+m,e):r},alphaDecay:function(m){return arguments.length?(i=+m,e):+i},alphaTarget:function(m){return arguments.length?(o=+m,e):o},velocityDecay:function(m){return arguments.length?(s=1-m,e):1-s},randomSource:function(m){return arguments.length?(f=m,a.forEach(g),e):f},force:function(m,y){return arguments.length>1?(y==null?a.delete(m):a.set(m,g(y)),e):a.get(m)},find:function(m,y,_){var x=0,b=t.length,w,P,v,$,M;for(_==null?_=1/0:_*=_,x=0;x<b;++x)$=t[x],w=m-$.x,P=y-$.y,v=w*w+P*P,v<_&&(M=$,_=v);return M},on:function(m,y){return arguments.length>1?(c.on(m,y),e):c.on(m)}}}function v9(){var t,e,n,r,i=nn(-30),o,s=1,a=1/0,l=.81;function c(p){var g,m=t.length,y=ga(t,y9,x9).visitAfter(d);for(r=p,g=0;g<m;++g)e=t[g],y.visit(u)}function f(){if(t){var p,g=t.length,m;for(o=new Array(g),p=0;p<g;++p)m=t[p],o[m.index]=+i(m,p,t)}}function d(p){var g=0,m,y,_=0,x,b,w;if(p.length){for(x=b=w=0;w<4;++w)(m=p[w])&&(y=Math.abs(m.value))&&(g+=m.value,_+=y,x+=y*m.x,b+=y*m.y);p.x=x/_,p.y=b/_}else{m=p,m.x=m.data.x,m.y=m.data.y;do g+=o[m.data.index];while(m=m.next)}p.value=g}function u(p,g,m,y){if(!p.value)return!0;var _=p.x-e.x,x=p.y-e.y,b=y-g,w=_*_+x*x;if(b*b/l<w)return w<a&&(_===0&&(_=De(n),w+=_*_),x===0&&(x=De(n),w+=x*x),w<s&&(w=Math.sqrt(s*w)),e.vx+=_*p.value*r/w,e.vy+=x*p.value*r/w),!0;if(p.length||w>=a)return;(p.data!==e||p.next)&&(_===0&&(_=De(n),w+=_*_),x===0&&(x=De(n),w+=x*x),w<s&&(w=Math.sqrt(s*w)));do p.data!==e&&(b=o[p.data.index]*r/w,e.vx+=_*b,e.vy+=x*b);while(p=p.next)}return c.initialize=function(p,g){t=p,n=g,f()},c.strength=function(p){return arguments.length?(i=typeof p=="function"?p:nn(+p),f(),c):i},c.distanceMin=function(p){return arguments.length?(s=p*p,c):Math.sqrt(s)},c.distanceMax=function(p){return arguments.length?(a=p*p,c):Math.sqrt(a)},c.theta=function(p){return arguments.length?(l=p*p,c):Math.sqrt(l)},c}function $9(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Vi(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function $n(t){return t=Vi(Math.abs(t)),t?t[1]:NaN}function P9(t,e){return function(n,r){for(var i=n.length,o=[],s=0,a=t[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(n.substring(i-=a,i+a)),!((l+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(e)}}function M9(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var O9=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qi(t){if(!(e=O9.exec(t)))throw new Error("invalid format: "+t);var e;return new ya({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}qi.prototype=ya.prototype;function ya(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}ya.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function C9(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var Zd;function S9(t,e){var n=Vi(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Zd=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Vi(t,Math.max(0,e+o-1))[0]}function Qd(t,e){var n=Vi(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Kd={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:$9,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Qd(t*100,e),r:Qd,s:S9,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Jd(t){return t}var t0=Array.prototype.map,e0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function I9(t){var e=t.grouping===void 0||t.thousands===void 0?Jd:P9(t0.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Jd:M9(t0.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(d){d=qi(d);var u=d.fill,p=d.align,g=d.sign,m=d.symbol,y=d.zero,_=d.width,x=d.comma,b=d.precision,w=d.trim,P=d.type;P==="n"?(x=!0,P="g"):Kd[P]||(b===void 0&&(b=12),w=!0,P="g"),(y||u==="0"&&p==="=")&&(y=!0,u="0",p="=");var v=m==="$"?n:m==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",$=m==="$"?r:/[%p]/.test(P)?s:"",M=Kd[P],I=/[defgprs%]/.test(P);b=b===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function S(C){var k=v,A=$,z,j,E;if(P==="c")A=M(C)+A,C="";else{C=+C;var D=C<0||1/C<0;if(C=isNaN(C)?l:M(Math.abs(C),b),w&&(C=C9(C)),D&&+C==0&&g!=="+"&&(D=!1),k=(D?g==="("?g:a:g==="-"||g==="("?"":g)+k,A=(P==="s"?e0[8+Zd/3]:"")+A+(D&&g==="("?")":""),I){for(z=-1,j=C.length;++z<j;)if(E=C.charCodeAt(z),48>E||E>57){A=(E===46?i+C.slice(z+1):C.slice(z))+A,C=C.slice(0,z);break}}}x&&!y&&(C=e(C,1/0));var L=k.length+C.length+A.length,T=L<_?new Array(_-L+1).join(u):"";switch(x&&y&&(C=e(T+C,T.length?_-A.length:1/0),T=""),p){case"<":C=k+C+A+T;break;case"=":C=k+T+C+A;break;case"^":C=T.slice(0,L=T.length>>1)+k+C+A+T.slice(L);break;default:C=T+k+C+A;break}return o(C)}return S.toString=function(){return d+""},S}function f(d,u){var p=c((d=qi(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor($n(u)/3)))*3,m=Math.pow(10,-g),y=e0[8+g/3];return function(_){return p(m*_)+y}}return{format:c,formatPrefix:f}}var Gi,n0,r0;A9({thousands:",",grouping:[3],currency:["$",""]});function A9(t){return Gi=I9(t),n0=Gi.format,r0=Gi.formatPrefix,Gi}function k9(t){return Math.max(0,-$n(Math.abs(t)))}function E9(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor($n(e)/3)))*3-$n(Math.abs(t)))}function z9(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,$n(e)-$n(t))+1}function T9(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function H9(){return this.eachAfter(T9)}function L9(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this}function R9(t,e){for(var n=this,r=[n],i,o,s=-1;n=r.pop();)if(t.call(e,n,++s,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function N9(t,e){for(var n=this,r=[n],i=[],o,s,a,l=-1;n=r.pop();)if(i.push(n),o=n.children)for(s=0,a=o.length;s<a;++s)r.push(o[s]);for(;n=i.pop();)t.call(e,n,++l,this);return this}function D9(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r}function j9(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})}function F9(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function B9(t){for(var e=this,n=W9(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function W9(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function X9(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function Y9(){return Array.from(this)}function V9(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function q9(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*G9(){var t=this,e,n=[t],r,i,o;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function xa(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=Q9)):e===void 0&&(e=Z9);for(var n=new fr(t),r,i=[n],o,s,a,l;r=i.pop();)if((s=e(r.data))&&(l=(s=Array.from(s)).length))for(r.children=s,a=l-1;a>=0;--a)i.push(o=s[a]=new fr(s[a])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(J9)}function U9(){return xa(this).eachBefore(K9)}function Z9(t){return t.children}function Q9(t){return Array.isArray(t)?t[1]:null}function K9(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function J9(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function fr(t){this.data=t,this.depth=this.height=0,this.parent=null}fr.prototype=xa.prototype={constructor:fr,count:H9,each:L9,eachAfter:N9,eachBefore:R9,find:D9,sum:j9,sort:F9,path:B9,ancestors:X9,descendants:Y9,leaves:V9,links:q9,copy:U9,[Symbol.iterator]:G9};function t7(t,e){return t.parent===e.parent?1:2}function _a(t){var e=t.children;return e?e[0]:t.t}function ba(t){var e=t.children;return e?e[e.length-1]:t.t}function e7(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function n7(t){for(var e=0,n=0,r=t.children,i=r.length,o;--i>=0;)o=r[i],o.z+=e,o.m+=e,e+=o.s+(n+=o.c)}function r7(t,e,n){return t.a.parent===e.parent?t.a:n}function Ui(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}Ui.prototype=Object.create(fr.prototype);function i7(t){for(var e=new Ui(t,0),n,r=[e],i,o,s,a;n=r.pop();)if(o=n._.children)for(n.children=new Array(a=o.length),s=a-1;s>=0;--s)r.push(i=n.children[s]=new Ui(o[s],s)),i.parent=n;return(e.parent=new Ui(null,0)).children=[e],e}function o7(){var t=t7,e=1,n=1,r=null;function i(c){var f=i7(c);if(f.eachAfter(o),f.parent.m=-f.z,f.eachBefore(s),r)c.eachBefore(l);else{var d=c,u=c,p=c;c.eachBefore(function(x){x.x<d.x&&(d=x),x.x>u.x&&(u=x),x.depth>p.depth&&(p=x)});var g=d===u?1:t(d,u)/2,m=g-d.x,y=e/(u.x+g+m),_=n/(p.depth||1);c.eachBefore(function(x){x.x=(x.x+m)*y,x.y=x.depth*_})}return c}function o(c){var f=c.children,d=c.parent.children,u=c.i?d[c.i-1]:null;if(f){n7(c);var p=(f[0].z+f[f.length-1].z)/2;u?(c.z=u.z+t(c._,u._),c.m=c.z-p):c.z=p}else u&&(c.z=u.z+t(c._,u._));c.parent.A=a(c,u,c.parent.A||d[0])}function s(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function a(c,f,d){if(f){for(var u=c,p=c,g=f,m=u.parent.children[0],y=u.m,_=p.m,x=g.m,b=m.m,w;g=ba(g),u=_a(u),g&&u;)m=_a(m),p=ba(p),p.a=c,w=g.z+x-u.z-y+t(g._,u._),w>0&&(e7(r7(g,c,d),c,w),y+=w,_+=w),x+=g.m,y+=u.m,b+=m.m,_+=p.m;g&&!ba(p)&&(p.t=g,p.m+=x-_),u&&!_a(m)&&(m.t=u,m.m+=y-b,d=c)}return d}function l(c){c.x*=e,c.y=c.depth*n}return i.separation=function(c){return arguments.length?(t=c,i):t},i.size=function(c){return arguments.length?(r=!1,e=+c[0],n=+c[1],i):r?null:[e,n]},i.nodeSize=function(c){return arguments.length?(r=!0,e=+c[0],n=+c[1],i):r?[e,n]:null},i}function s7(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function a7(t){return function(){return t}}function l7(t){return+t}var i0=[0,1];function Pn(t){return t}function wa(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:a7(isNaN(e)?NaN:.5)}function c7(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function h7(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=wa(i,r),o=n(s,o)):(r=wa(r,i),o=n(o,s)),function(a){return o(r(a))}}function f7(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)i[s]=wa(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(a){var l=m3(t,a,1,r)-1;return o[l](i[l](a))}}function u7(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function d7(){var t=i0,e=i0,n=ia,r,i,o,s=Pn,a,l,c;function f(){var u=Math.min(t.length,e.length);return s!==Pn&&(s=c7(t[0],t[u-1])),a=u>2?f7:h7,l=c=null,d}function d(u){return u==null||isNaN(u=+u)?o:(l||(l=a(t.map(r),e,n)))(r(s(u)))}return d.invert=function(u){return s(i((c||(c=a(e,t.map(r),me)))(u)))},d.domain=function(u){return arguments.length?(t=Array.from(u,l7),f()):t.slice()},d.range=function(u){return arguments.length?(e=Array.from(u),f()):e.slice()},d.rangeRound=function(u){return e=Array.from(u),n=O6,f()},d.clamp=function(u){return arguments.length?(s=u?!0:Pn,f()):s!==Pn},d.interpolate=function(u){return arguments.length?(n=u,f()):n},d.unknown=function(u){return arguments.length?(o=u,d):o},function(u,p){return r=u,i=p,f()}}function p7(){return d7()(Pn,Pn)}function g7(t,e,n,r){var i=w3(t,e,n),o;switch(r=qi(r==null?",f":r),r.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=E9(i,s))&&(r.precision=o),r0(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=z9(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=k9(i))&&(r.precision=o-(r.type==="%")*2);break}}return n0(r)}function m7(t){var e=t.domain;return t.ticks=function(n){var r=e();return b3(r[0],r[r.length-1],n==null?10:n)},t.tickFormat=function(n,r){var i=e();return g7(i[0],i[i.length-1],n==null?10:n,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,s=r[i],a=r[o],l,c,f=10;for(a<s&&(c=s,s=a,a=c,c=i,i=o,o=c);f-- >0;){if(c=qs(s,a,n),c===l)return r[i]=s,r[o]=a,e(r);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else if(c<0)s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c;else break;l=c}return t},t}function va(){var t=p7();return t.copy=function(){return u7(t,va())},s7.apply(t,arguments),m7(t)}function Mn(t){return function(){return t}}function y7(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new Y8(e)}function x7(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function o0(t){this._context=t}o0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function s0(t){return new o0(t)}function _7(t){return t[0]}function b7(t){return t[1]}function w7(t,e){var n=Mn(!0),r=null,i=s0,o=null,s=y7(a);t=typeof t=="function"?t:t===void 0?_7:Mn(t),e=typeof e=="function"?e:e===void 0?b7:Mn(e);function a(l){var c,f=(l=x7(l)).length,d,u=!1,p;for(r==null&&(o=i(p=s())),c=0;c<=f;++c)!(c<f&&n(d=l[c],c,l))===u&&((u=!u)?o.lineStart():o.lineEnd()),u&&o.point(+t(d,c,l),+e(d,c,l));if(p)return o=null,p+""||null}return a.x=function(l){return arguments.length?(t=typeof l=="function"?l:Mn(+l),a):t},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:Mn(+l),a):e},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Mn(!!l),a):n},a.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),a):i},a.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),a):r},a}function ur(t,e,n){this.k=t,this.x=e,this.y=n}ur.prototype={constructor:ur,scale:function(t){return t===1?this:new ur(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ur(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},ur.prototype;var v7=Object.defineProperty,$7=Object.defineProperties,P7=Object.getOwnPropertyDescriptors,a0=Object.getOwnPropertySymbols,M7=Object.prototype.hasOwnProperty,O7=Object.prototype.propertyIsEnumerable,l0=(t,e,n)=>e in t?v7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,C7=(t,e)=>{for(var n in e||(e={}))M7.call(e,n)&&l0(t,n,e[n]);if(a0)for(var n of a0(e))O7.call(e,n)&&l0(t,n,e[n]);return t},S7=(t,e)=>$7(t,P7(e));const c0=t=>{const[{datum:e,data:n,indexes:r,width:i=280,height:o=120,iconSize:s=32,gap:a=12,progressHeight:l=8,borderRadius:c=12,positionH:f="normal",themeColors:d,valueFormatter:u=j=>`${j}%`},p]=At(t,["width","height","iconSize","gap","progressHeight","borderRadius"]),g=e.value,m=g!=null?g:0,y=Math.max(...n.items.map(j=>{var E;return(E=j.value)!=null?E:0}),100),_=i-2*a,b=va().domain([0,y]).range([0,_])(m),w=`${d.colorPrimary}-progress`,P=`${d.colorPrimaryBg}-progress-bg`,v=G(h(ft,{indexes:r})),$=a,M=f==="flipped"?i-a-s:a,I=$,S=f==="flipped"?a:s+2*a,C=i-s-3*a,k=I,A=o-a-l,z=g!==void 0;return O(B,S7(C7({},p),{children:[O(yt,{children:[O("linearGradient",{id:w,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[h("stop",{offset:"0%",stopColor:d.colorPrimary}),h("stop",{offset:"100%",stopColor:Q.mix(d.colorPrimary,"#fff",20).toHexString()})]}),O("linearGradient",{id:P,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[h("stop",{offset:"0%",stopColor:d.colorPrimaryBg}),h("stop",{offset:"100%",stopColor:d.colorBg})]})]}),h(dt,{x:0,y:0,width:i,height:o,fill:d.colorBgElevated,stroke:d.colorPrimaryBg,strokeWidth:1,rx:c,ry:c,"data-element-type":"shape"}),h(qt,{indexes:r,x:M,y:I,size:s,fill:d.colorPrimary}),h(ft,{indexes:r,x:S,y:k,width:C,alignHorizontal:f==="flipped"?"right":"left",alignVertical:"top",fontSize:16,fontWeight:"medium",fill:d.colorText,children:e.label}),z&&h(Ln,{indexes:r,x:S,y:k+v.height,width:C,alignHorizontal:f==="flipped"?"right":"left",alignVertical:"top",lineHeight:1,fontSize:24,fontWeight:"bold",fill:d.colorPrimary,value:m,formatter:u}),h(It,{indexes:r,x:S,y:k+v.height+(z?27:4),width:C,alignHorizontal:f==="flipped"?"right":"left",alignVertical:"top",fontSize:11,fill:d.colorTextSecondary,lineNumber:z?2:3,wordWrap:!0,children:e.desc}),h(dt,{x:a,y:A,width:_,height:l,fill:`url(#${P})`,rx:l/2,ry:l/2,"data-element-type":"shape"}),h(dt,{x:a,y:A,width:b,height:l,fill:`url(#${w})`,rx:l/2,ry:l/2,"data-element-type":"shape"})]}))};kt("progress-card",{component:c0,composites:["icon","label","value","desc"]});var I7=Object.defineProperty,A7=Object.defineProperties,k7=Object.getOwnPropertyDescriptors,h0=Object.getOwnPropertySymbols,E7=Object.prototype.hasOwnProperty,z7=Object.prototype.propertyIsEnumerable,f0=(t,e,n)=>e in t?I7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,T7=(t,e)=>{for(var n in e||(e={}))E7.call(e,n)&&f0(t,n,e[n]);if(h0)for(var n of h0(e))z7.call(e,n)&&f0(t,n,e[n]);return t},H7=(t,e)=>A7(t,k7(e));const u0=t=>{const[{datum:e,indexes:n,width:r=280,height:i=120,iconSize:o=30,circleRadius:s=80,positionH:a="normal",positionV:l="normal",themeColors:c},f]=At(t,["width","height","iconSize","circleRadius"]),d=4*s/(3*Math.PI),u=2,p=4,g=28,m=20,y=m+20,_=m,x=8,b=35,w=40,P=30,v=String(n[0]+1).padStart(2,"0"),$=a==="flipped",M=a==="center",I=l==="flipped",S=()=>{if($)return{diagonalStartX:r-p,diagonalStartY:I?i-b:b,diagonalEndX:r-w,diagonalEndY:I?i-p:p,topLineStartX:r-w,topLineEndX:d,topLineY:I?i-p:p};if(M){const L=r-s-w,T=(r-L)/2;return{diagonalStartX:T+p,diagonalStartY:I?i-b:b,diagonalEndX:T+w,diagonalEndY:I?i-p:p,topLineStartX:T+w,topLineEndX:T+L-d,topLineY:I?i-p:p}}else return{diagonalStartX:p,diagonalStartY:I?i-b:b,diagonalEndX:w,diagonalEndY:I?i-p:p,topLineStartX:w,topLineEndX:r-d,topLineY:I?i-p:p}},C=()=>{if($){const L=s+10,T=r-L-w;return{valueX:r-P,contentX:L,contentWidth:T,circleX:0,circleY:I?0:i,iconX:d-o/2}}else if(M){const L=r-s-w,T=(r-L)/2;return{valueX:T,contentX:T+w,contentWidth:L-s-10,circleX:T+L,circleY:I?0:i,iconX:T+L-d-o/2}}else return{valueX:0,contentX:w,contentWidth:r-w-s-10,circleX:r,circleY:I?0:i,iconX:r-d-o/2}},k=S(),A=C(),z=I?d-o/2:i-d-o/2,j=G(h(ft,{indexes:n,width:A.contentWidth,children:e.label})),E=_+j.height+x,D=()=>{const{circleX:L,circleY:T}=A;return $?I?`M ${L} ${T} L ${L} ${T+s} A ${s} ${s} 0 0 0 ${L+s} ${T} Z`:`M ${L} ${T} L ${L} ${T-s} A ${s} ${s} 0 0 1 ${L+s} ${T} Z`:I?`M ${L} ${T} L ${L} ${T+s} A ${s} ${s} 0 0 1 ${L-s} ${T} Z`:`M ${L} ${T} L ${L} ${T-s} A ${s} ${s} 0 0 0 ${L-s} ${T} Z`};return O(B,H7(T7({},f),{width:r,height:i,children:[O(Nt,{children:[h(ot,{d:`M ${k.diagonalStartX} ${k.diagonalStartY} L ${k.diagonalEndX} ${k.diagonalEndY}`,stroke:c.colorPrimary,strokeWidth:u,fill:"none"}),h(ot,{d:`M ${k.topLineStartX} ${k.topLineY} L ${k.topLineEndX} ${k.topLineY}`,stroke:c.colorPrimary,strokeWidth:u,fill:"none"}),h(xt,{x:k.diagonalStartX-p,y:k.diagonalStartY-p,width:p*2,height:p*2,fill:c.colorPrimary}),h(xt,{x:k.topLineEndX-p,y:k.topLineY-p,width:p*2,height:p*2,fill:c.colorPrimary})]}),O(B,{children:[h(Et,{x:A.valueX,y,fontSize:g,fontWeight:"bold",fill:c.colorPrimary,width:40,children:v}),h(ot,{d:D(),fill:c.colorPrimary,"data-element-type":"shape"}),e.icon&&h(qt,{indexes:n,x:A.iconX,y:z,size:o,fill:c.colorWhite}),e.label&&h(ft,{indexes:n,x:A.contentX,y:_,width:A.contentWidth,fontWeight:"bold",fill:c.colorText,children:e.label}),e.desc&&h(It,{indexes:n,x:A.contentX,y:E,width:A.contentWidth,fill:c.colorTextSecondary,children:e.desc})]})]}))};kt("quarter-circular",{component:u0,composites:["icon","label","desc"]});var L7=Object.defineProperty,R7=Object.defineProperties,N7=Object.getOwnPropertyDescriptors,d0=Object.getOwnPropertySymbols,D7=Object.prototype.hasOwnProperty,j7=Object.prototype.propertyIsEnumerable,p0=(t,e,n)=>e in t?L7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,F7=(t,e)=>{for(var n in e||(e={}))D7.call(e,n)&&p0(t,n,e[n]);if(d0)for(var n of d0(e))j7.call(e,n)&&p0(t,n,e[n]);return t},B7=(t,e)=>R7(t,N7(e));const g0=t=>{const[{datum:e,indexes:n,width:r=150,height:i=150,iconSize:o=30,padding:s=20,borderRadius:a=16,positionH:l="center",positionV:c="middle",themeColors:f},d]=At(t,["width","height","iconSize","padding","borderRadius"]),u=r-s*2,p=s,g=s,m=l==="flipped"?r-s-o:l==="center"?(r-o)/2:p,y=g,_=y+o+8,x=G(h(ft,{indexes:n,width:u,children:e.label})),b=l==="flipped"?r-s-u:l==="center"?s:p,w=_+x.height+4,P=b,v=a;let $="";return l==="center"&&c==="middle"?$=`
|
|
31
|
-
M ${
|
|
32
|
-
L ${r-
|
|
33
|
-
Q ${r} 0 ${r} ${
|
|
34
|
-
L ${r} ${i-
|
|
35
|
-
Q ${r} ${i} ${r-
|
|
36
|
-
L ${
|
|
37
|
-
Q 0 ${i} 0 ${i-
|
|
38
|
-
L 0 ${
|
|
39
|
-
Q 0 0 ${
|
|
30
|
+
`.replace(/\s+/g," ").trim()}function au(t){if(!t||typeof t!="string")return[];try{const n=t.trim().replace(/,/g," ").replace(/\s+/g," ").split(" ").filter(Boolean),r=[];for(let i=0;i<n.length-1;i+=2){const o=parseFloat(n[i]),s=parseFloat(n[i+1]);if(isNaN(o)||isNaN(s)){console.warn(`Invalid coordinate pair at index ${i}: "${n[i]}", "${n[i+1]}"`);continue}r.push([o,s])}return n.length%2!==0&&console.warn(`Odd number of coordinates in points attribute, last value ignored: "${n[n.length-1]}"`),r}catch(e){return console.error("Failed to parse polygon points:",t,e),[]}}function lu(t,e,n){var r;const{themeConfig:i}=n,o=Object.assign({},(r=i.base)==null?void 0:r.shape,i.shape),s=_i(e,o);return je(e,s),uv(e,t,n),e}function fv(t,e){var n;je(t,((n=e.themeConfig.base)==null?void 0:n.shape)||{})}function uv(t,e,n){const r=n.themeConfig.stylize;if(!r)return t;const{type:i}=r;if(!i)return t;if(i==="rough")return av(t,e,r);if(i==="pattern")return R5(t,e,n);if(i==="linear-gradient"||i==="radial-gradient"){const{fill:o,stroke:s}=De(t,["fill","stroke"]);Qn(o)&&Df(t,e,r,"fill"),Qn(s)&&Df(t,e,r,"stroke");return}}function cu(t){return t}var hu=Object.create,dv=(function(){function t(){}return function(e){if(!Ze(e))return{};if(hu)return hu(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function pv(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function gv(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var mv=800,yv=16,_v=Date.now;function xv(t){var e=0,n=0;return function(){var r=_v(),i=yv-(r-n);if(n=r,i>0){if(++e>=mv)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function bv(t){return function(){return t}}var ki=(function(){try{var t=ws(Object,"defineProperty");return t({},"",{}),t}catch(e){}})(),vv=ki?function(t,e){return ki(t,"toString",{configurable:!0,enumerable:!1,value:bv(e),writable:!0})}:cu,wv=xv(vv),$v=9007199254740991,Pv=/^(?:0|[1-9]\d*)$/;function fu(t,e){var n=typeof t;return e=e==null?$v:e,!!e&&(n=="number"||n!="symbol"&&Pv.test(t))&&t>-1&&t%1==0&&t<e}function Gs(t,e,n){e=="__proto__"&&ki?ki(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Mv=Object.prototype,Ov=Mv.hasOwnProperty;function Cv(t,e,n){var r=t[e];(!(Ov.call(t,e)&&fi(r,n))||n===void 0&&!(e in t))&&Gs(t,e,n)}function Sv(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=void 0;l===void 0&&(l=t[a]),i?Gs(n,a,l):Cv(n,a,l)}return n}var uu=Math.max;function Iv(t,e,n){return e=uu(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=uu(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(s),pv(t,this,a)}}function Av(t,e){return wv(Iv(t,e,cu),t+"")}var Ev=9007199254740991;function du(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Ev}function Us(t){return t!=null&&du(t.length)&&!bs(t)}function kv(t,e,n){if(!Ze(n))return!1;var r=typeof e;return(r=="number"?Us(n)&&fu(e,n.length):r=="string"&&e in n)?fi(n[e],t):!1}function Tv(t){return Av(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,s&&kv(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,o)}return e})}var zv=Object.prototype;function pu(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||zv;return t===n}function Hv(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Lv="[object Arguments]";function gu(t){return bn(t)&&Jn(t)==Lv}var mu=Object.prototype,Rv=mu.hasOwnProperty,Nv=mu.propertyIsEnumerable,Zs=gu((function(){return arguments})())?gu:function(t){return bn(t)&&Rv.call(t,"callee")&&!Nv.call(t,"callee")};function jv(){return!1}var yu=typeof z=="object"&&z&&!z.nodeType&&z,_u=yu&&typeof module=="object"&&module&&!module.nodeType&&module,Dv=_u&&_u.exports===yu,xu=Dv?_n.Buffer:void 0,Bv=xu?xu.isBuffer:void 0,bu=Bv||jv,Fv="[object Arguments]",Wv="[object Array]",Xv="[object Boolean]",Yv="[object Date]",Vv="[object Error]",qv="[object Function]",Gv="[object Map]",Uv="[object Number]",Zv="[object Object]",Qv="[object RegExp]",Kv="[object Set]",Jv="[object String]",tw="[object WeakMap]",ew="[object ArrayBuffer]",nw="[object DataView]",rw="[object Float32Array]",iw="[object Float64Array]",ow="[object Int8Array]",sw="[object Int16Array]",aw="[object Int32Array]",lw="[object Uint8Array]",cw="[object Uint8ClampedArray]",hw="[object Uint16Array]",fw="[object Uint32Array]",Ht={};Ht[rw]=Ht[iw]=Ht[ow]=Ht[sw]=Ht[aw]=Ht[lw]=Ht[cw]=Ht[hw]=Ht[fw]=!0,Ht[Fv]=Ht[Wv]=Ht[ew]=Ht[Xv]=Ht[nw]=Ht[Yv]=Ht[Vv]=Ht[qv]=Ht[Gv]=Ht[Uv]=Ht[Zv]=Ht[Qv]=Ht[Kv]=Ht[Jv]=Ht[tw]=!1;function uw(t){return bn(t)&&du(t.length)&&!!Ht[Jn(t)]}function dw(t){return function(e){return t(e)}}var vu=typeof z=="object"&&z&&!z.nodeType&&z,ar=vu&&typeof module=="object"&&module&&!module.nodeType&&module,pw=ar&&ar.exports===vu,Qs=pw&&Ph.process,wu=(function(){try{var t=ar&&ar.require&&ar.require("util").types;return t||Qs&&Qs.binding&&Qs.binding("util")}catch(e){}})(),$u=wu&&wu.isTypedArray,Pu=$u?dw($u):uw;function gw(t,e){var n=yn(t),r=!n&&Zs(t),i=!n&&!r&&bu(t),o=!n&&!r&&!i&&Pu(t),s=n||r||i||o,a=s?Hv(t.length,String):[],l=a.length;for(var c in t)s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||fu(c,l))||a.push(c);return a}function mw(t,e){return function(n){return t(e(n))}}function yw(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var _w=Object.prototype,xw=_w.hasOwnProperty;function bw(t){if(!Ze(t))return yw(t);var e=pu(t),n=[];for(var r in t)r=="constructor"&&(e||!xw.call(t,r))||n.push(r);return n}function Mu(t){return Us(t)?gw(t):bw(t)}var Ou=mw(Object.getPrototypeOf,Object),vw="[object Object]",ww=Function.prototype,$w=Object.prototype,Cu=ww.toString,Pw=$w.hasOwnProperty,Mw=Cu.call(Object);function Ow(t){if(!bn(t)||Jn(t)!=vw)return!1;var e=Ou(t);if(e===null)return!0;var n=Pw.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Cu.call(n)==Mw}function Cw(){this.__data__=new Ae,this.size=0}function Sw(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Iw(t){return this.__data__.get(t)}function Aw(t){return this.__data__.has(t)}var Ew=200;function kw(t,e){var n=this.__data__;if(n instanceof Ae){var r=n.__data__;if(!Sh||r.length<Ew-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Re(r)}return n.set(t,e),this.size=n.size,this}function Mn(t){var e=this.__data__=new Ae(t);this.size=e.size}Mn.prototype.clear=Cw,Mn.prototype.delete=Sw,Mn.prototype.get=Iw,Mn.prototype.has=Aw,Mn.prototype.set=kw;var Su=typeof z=="object"&&z&&!z.nodeType&&z,Iu=Su&&typeof module=="object"&&module&&!module.nodeType&&module,Tw=Iu&&Iu.exports===Su,Au=Tw?_n.Buffer:void 0;Au&&Au.allocUnsafe;function zw(t,e){return t.slice()}var Eu=_n.Uint8Array;function Hw(t){var e=new t.constructor(t.byteLength);return new Eu(e).set(new Eu(t)),e}function Lw(t,e){var n=Hw(t.buffer);return new t.constructor(n,t.byteOffset,t.length)}function Rw(t){return typeof t.constructor=="function"&&!pu(t)?dv(Ou(t)):{}}function Nw(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[++i];if(n(o[l],l,o)===!1)break}return e}}var jw=Nw();function Ks(t,e,n){(n!==void 0&&!fi(t[e],n)||n===void 0&&!(e in t))&&Gs(t,e,n)}function Dw(t){return bn(t)&&Us(t)}function Js(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function Bw(t){return Sv(t,Mu(t))}function Fw(t,e,n,r,i,o,s){var a=Js(t,n),l=Js(e,n),c=s.get(l);if(c){Ks(t,n,c);return}var f=o?o(a,l,n+"",t,e,s):void 0,u=f===void 0;if(u){var d=yn(l),p=!d&&bu(l),g=!d&&!p&&Pu(l);f=l,d||p||g?yn(a)?f=a:Dw(a)?f=gv(a):p?(u=!1,f=zw(l)):g?(u=!1,f=Lw(l)):f=[]:Ow(l)||Zs(l)?(f=a,Zs(a)?f=Bw(a):(!Ze(a)||bs(a))&&(f=Rw(l))):u=!1}u&&(s.set(l,f),i(f,l,r,o,s),s.delete(l)),Ks(t,n,f)}function ku(t,e,n,r,i){t!==e&&jw(e,function(o,s){if(i||(i=new Mn),Ze(o))Fw(t,e,s,n,ku,r,i);else{var a=r?r(Js(t,s),o,s+"",t,e,i):void 0;a===void 0&&(a=o),Ks(t,s,a)}},Mu)}var Ww=gf(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Xw=Tv(function(t,e,n){ku(t,e,n)});function ta(t,e,n={}){if(!e)return null;const r=t,i=_i(r,n);je(r,i);const o=qw(e,r);for(const s in r.dataset)o.setAttribute(`data-${Ww(s)}`,r.dataset[s]);return o.setAttribute("id",t.getAttribute("id")),o}function Yw(t,e,n){var r,i;const o=e.nodeName==="text"?e:null;if(!o)return null;const{data:s,themeConfig:a}=n,l=Fh(e.dataset.indexes||"0"),c=String(kh(pi(s,l),t,"")),f=Object.assign({},(r=a.base)==null?void 0:r.text,(i=a.item)==null?void 0:i[t]),u=_i(o,f);return ta(e,e.textContent||c,u)}function Vw(t,e){var n;const r=((n=e.themeConfig.base)==null?void 0:n.text)||{};je(t,r),r["font-family"]&&t.setAttribute("font-family",nr(r["font-family"])),t.style.userSelect="none",t.style.pointerEvents="none"}const Ti=(t,e)=>t?parseFloat(t):e;function qw(t,e){const n=Ti(e.dataset.x,0),r=Ti(e.dataset.y,0),i=Ti(e.getAttribute("width")),o=Ti(e.getAttribute("height")),s=Gw(e);return Object.assign(s,{x:n,y:r,width:i,height:o,"text-alignment":e.dataset.textAlignment||"LEFT TOP"}),Ub(t,s)}function Gw(t){return De(t,["font-family","font-size","font-weight","font-style","font-variant","letter-spacing","line-height","fill","stroke","stroke-width"])}const Je=(t,e)=>{t!==e&&(e?t.replaceWith(e):t.remove())};class Tu{constructor(e,n){this.options=e,this.template=n,this.rendered=!1}getOptions(){return this.options}getSVG(){return this.template}render(){const e=this.getSVG();if(this.rendered)return e;Uw(e,this.options),e.style.visibility="hidden";const n=new MutationObserver(r=>{r.forEach(i=>{i.addedNodes.forEach(o=>{(o===e||o.contains(e))&&(Kw(this.template,this.options),Pf(this.template),n.disconnect(),e.style.visibility="")})})});return n.observe(document,{childList:!0,subtree:!0}),this.rendered=!0,e}}function Uw(t,e){Zw(t,e),Qw(t,e);const{themeConfig:n}=e;c5(t,n==null?void 0:n.colorBg)}function Zw(t,e){const{themeConfig:n,data:r}=e;t.querySelectorAll("[data-element-type]").forEach(o=>{var s,a,l,c,f,u;const d=o.id||"";if(mx(o)){const p=ta(o,r.title||"",Object.assign({},(s=n.base)==null?void 0:s.text,n.title));return Je(o,p)}if(yx(o)){const p=ta(o,r.desc||"",Object.assign({},(a=n.base)==null?void 0:a.text,n.desc));return Je(o,p)}if(bx(o)){const p=Rf(t,o,(l=r.illus)==null?void 0:l[d]);return Je(o,p)}if(xx(o))return Array.from(o.children).forEach(p=>{lu(t,p,e)});if(_x(o)){const p=lu(t,o,e);return Je(o,p)}if(Sx(o))return h5(t,o);if((c=o.dataset.elementType)!=null&&c.startsWith("item-")){const p=Fh(o.dataset.indexes||"0"),g=o.dataset.elementType;if(Px(o)||Mx(o)||Ox(o)){const m=Yw(g,o,e);return Je(o,m)}if(Cx(o)){const m=Rf(t,o,(f=pi(r,p))==null?void 0:f.illus);return Je(o,m)}if($x(o)){const m=y5(t,o,(u=pi(r,p))==null?void 0:u.icon,e);return Je(o,m)}}if(vx(o))return Vw(o,e);if(!wx(o))return fv(o,e)})}function Qw(t,e){const{width:n,height:r}=e,{style:i={},attributes:o={},id:s,className:a}=e.svg||{};s&&(t.id=s),a&&t.classList.add(a),n!==void 0&&t.setAttribute("width",typeof n=="number"?`${n}px`:n),r!==void 0&&t.setAttribute("height",typeof r=="number"?`${r}px`:r),Object.assign(t.style,i),je(t,o)}function Kw(t,e){const{padding:n=20,viewBox:r}=e;r?t.setAttribute("viewBox",r):n!==void 0&&Jw(t,Ss(n))}function Jw(t,e,n={}){const{preserveAspectRatio:r=!1}=n;if(!t.isConnected)return!1;try{const i=t.getBBox();if(i.width===0||i.height===0)return!1;const[o,s]=ix(t),a=o||t.clientWidth||0,l=s||t.clientHeight||0,c=t.parentElement,f=a||(c?c.clientWidth:300),u=l||(c?c.clientHeight:150);let d;if(f>0&&u>0){const g=i.width/f,m=i.height/u;if(r){const y=Math.max(g,m);d=e.map(x=>x*y)}else d=[e[0]*m,e[1]*g,e[2]*m,e[3]*g]}else d=[...e];const p=[i.x-d[3],i.y-d[0],i.width+d[1]+d[3],i.height+d[0]+d[2]].join(" ");return t.setAttribute("viewBox",p),!0}catch(i){return!1}}const ea=new Map;function na(t,e){ea.set(t,e)}function zu(t){return ea.get(t)}function t3(){return Array.from(ea.keys())}na("dark",{colorBg:"#1F1F1F",base:{text:{fill:"#fff"}}}),na("hand-drawn",{base:{text:{"font-family":"851tegakizatsu"}},stylize:{type:"rough"}});var e3=Object.defineProperty,n3=Object.defineProperties,r3=Object.getOwnPropertyDescriptors,Hu=Object.getOwnPropertySymbols,i3=Object.prototype.hasOwnProperty,o3=Object.prototype.propertyIsEnumerable,Lu=(t,e,n)=>e in t?e3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,lr=(t,e)=>{for(var n in e||(e={}))i3.call(e,n)&&Lu(t,n,e[n]);if(Hu)for(var n of Hu(e))o3.call(e,n)&&Lu(t,n,e[n]);return t},cr=(t,e)=>n3(t,r3(e));bt(hh);const Ru=({colorPrimary:t,colorBg:e="#ffffff",isDarkMode:n=!1})=>{const r=Ce(t),i=Ce(e),o=f3({primaryColor:r,bgColor:i});return u3(o,{primaryColor:r,bgColor:i,isDarkMode:n})},s3=(t,e)=>zy(cr(lr({},t),{alpha:e?.2:.1}))||"#ffffff",a3=(t,e)=>{if(e)return"#ffffff";const n=Ce("#262626");return _s(n,t)>=7?Zn(n):"#000000"},l3=t=>{const e=wh(Ce(t)),n=cr(lr({},e),{l:Math.min(1,e.l+.2)});return Zn(n)},c3=(t,e)=>{const n=Ce(t),r=Ce("#262626"),i=Ce("#ffffff"),o=_s(r,n);return _s(i,n)>=3?Zn(i):o>=4.5?Zn(r):"#ffffff"},h3=(t,e)=>{const n=wh(t);if(e){const r=cr(lr({},n),{l:Math.min(1,n.l+.1)});return zi(r,"#1f1f1f")}else{if(n.l>.95)return"#ffffff";{const r=cr(lr({},n),{l:Math.min(1,n.l+.05)});return zi(r,"#ffffff")}}},f3=({primaryColor:t,bgColor:e})=>({colorPrimary:zi(t,"#1677ff"),colorBg:zi(e,"#ffffff"),colorWhite:"#ffffff"}),u3=(t,{primaryColor:e,bgColor:n,isDarkMode:r})=>{const i=a3(n,r),o=s3(e,r);return cr(lr({},t),{isDarkMode:r,colorPrimaryBg:o,colorText:i,colorTextSecondary:l3(i),colorPrimaryText:c3(o,r),colorBgElevated:h3(n,r)})};function zi(t,e="#000000"){var n;return(n=Zn(t))!=null?n:e}const ra="#1890FF";function Zt(t){var e;return((e=t==null?void 0:t.themeConfig)==null?void 0:e.colorPrimary)||ra}function Nu(t){var e;const{themeConfig:n={},data:r}=t,{colorPrimary:i,palette:o}=n;return!o||o.length===0?Array(((e=r==null?void 0:r.items)==null?void 0:e.length)||1).fill(i||ra):r.items.map((s,a)=>yi(o,[a],r.items.length)||ra)}function vt(t,e){var n,r,i;return yi((n=t==null?void 0:t.themeConfig)==null?void 0:n.palette,e,(i=(r=t.data)==null?void 0:r.items)==null?void 0:i.length)}function pe(t,e){var n;const{colorBg:r=((n=e==null?void 0:e.themeConfig)==null?void 0:n.colorBg)||"white",colorPrimary:i=e?Zt(e):"black"}=t;return Ru({colorPrimary:i,isDarkMode:$h(r),colorBg:r})}function Hi(t,e){const{depth:n,originalIndexes:r,flatIndex:i}=t;switch(e){case"level":return[n];case"branch":return n===0?[0]:n===1?[r[1]+1]:[r[1]+1];case"node":return r;case"node-flat":return i!==void 0?[i]:(console.warn("node-flat mode requires flatIndex in HierarchyNode, falling back to originalIndexes"),r);default:return[0]}}var d3=Object.defineProperty,ju=Object.getOwnPropertySymbols,p3=Object.prototype.hasOwnProperty,g3=Object.prototype.propertyIsEnumerable,Du=(t,e,n)=>e in t?d3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,m3=(t,e)=>{for(var n in e||(e={}))p3.call(e,n)&&Du(t,n,e[n]);if(ju)for(var n of ju(e))g3.call(e,n)&&Du(t,n,e[n]);return t};function At(t,e=[]){const n=m3({},t),r={};return["indexes","data","datum","positionH","positionV","themeColors","valueFormatter",...e].forEach(o=>{o in n&&(r[o]=n[o],delete n[o])}),["x","y","width","height"].forEach(o=>{o in t&&(n[o]=t[o])}),[r,n]}function Bu(t,e){var n;return t.length===0?()=>null:e===void 0?t[0]:(n=t[e])!=null?n:t[0]}const ia=new Map;function Et(t,e){ia.set(t,e)}function Fu(t){return ia.get(t)}function y3(){return Array.from(ia.keys())}var _3=Object.defineProperty,x3=Object.defineProperties,b3=Object.getOwnPropertyDescriptors,Wu=Object.getOwnPropertySymbols,v3=Object.prototype.hasOwnProperty,w3=Object.prototype.propertyIsEnumerable,Xu=(t,e,n)=>e in t?_3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$3=(t,e)=>{for(var n in e||(e={}))v3.call(e,n)&&Xu(t,n,e[n]);if(Wu)for(var n of Wu(e))w3.call(e,n)&&Xu(t,n,e[n]);return t},P3=(t,e)=>x3(t,b3(e));const Yu=t=>{const[{datum:e,indexes:n,width:r=200,height:i=80,iconSize:o=24,badgeSize:s=32,gap:a=8,positionH:l="normal",themeColors:c,valueFormatter:f},u]=At(t,["width","height","iconSize","badgeSize","gap"]),d=e.value,p=d!==void 0,g=!!e.desc,m=!!e.icon,y=`${c.colorPrimary}-badge`,x=l==="flipped"?r-a-s:a,_=m?l==="flipped"?a:s+2*a:a,b=r-a*2,v=m?r-s-3*a:b,P=a+14+18+8,w=P-a,$=g?a:(i-s)/2,M=!p&&!g?(i-14)/2:a;return O(F,P3($3({},u),{width:r,height:i,children:[h(yt,{children:O("radialGradient",{id:y,cx:"50%",cy:"50%",r:"50%",children:[h("stop",{offset:"0%",stopColor:c.colorPrimary}),h("stop",{offset:"100%",stopColor:tt(c.colorPrimary).darken(20).toHexString()})]})}),h(dt,{"data-element-type":"shape",x:0,y:0,width:r,height:i,fill:c.colorPrimaryBg,rx:8,ry:8}),m&&O(gt,{children:[h(_t,{x,y:$,width:s,height:s,fill:`url(#${y})`}),h(Gt,{indexes:n,x:x+(s-o)/2,y:$+(s-o)/2,size:o,fill:c.colorWhite})]}),O(rt,{flexDirection:"column",x:_,y:M,width:v,height:!p&&!g?void 0:w,alignItems:"center",justifyContent:"center",children:[h(ft,{indexes:n,width:v,alignHorizontal:l==="flipped"?"right":"left",alignVertical:"middle",fontSize:14,fill:c.colorText,children:e.label}),p&&h(Fn,{indexes:n,width:v,alignHorizontal:l==="flipped"?"right":"left",alignVertical:"middle",fontSize:18,lineHeight:1,fontWeight:"bold",fill:c.colorPrimary,value:d,formatter:f})]}),g&&h(It,{indexes:n,x:a,y:P,width:b,alignHorizontal:l==="flipped"?"right":"left",fontSize:11,fill:c.colorTextSecondary,lineNumber:2,lineHeight:1.2,wordWrap:!0,children:e.desc})]}))};Et("badge-card",{component:Yu,composites:["icon","label","value","desc"]});var M3=Object.defineProperty,O3=Object.defineProperties,C3=Object.getOwnPropertyDescriptors,Vu=Object.getOwnPropertySymbols,S3=Object.prototype.hasOwnProperty,I3=Object.prototype.propertyIsEnumerable,qu=(t,e,n)=>e in t?M3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,A3=(t,e)=>{for(var n in e||(e={}))S3.call(e,n)&&qu(t,n,e[n]);if(Vu)for(var n of Vu(e))I3.call(e,n)&&qu(t,n,e[n]);return t},E3=(t,e)=>O3(t,C3(e));const Gu=t=>{const[{indexes:e,datum:n,width:r=280,height:i=140,themeColors:o},s]=At(t,["width","height"]);return O(F,E3(A3({},s),{children:[h("rect",{x:0,y:0,width:r,height:i,rx:18,ry:18,fill:o.colorPrimaryBg,stroke:o.colorPrimary,"data-element-type":"shape"}),h(ot,{x:r-85,y:.5,width:85,height:65,d:"M0.496704 0H61.7558C74.0725 0 84.0571 9.99394 84.0571 22.3221V60.1302L78.4401 62.9458C64.9296 68.1198 49.0492 65.0802 38.3968 53.9843L10.7444 25.1801C5.41799 19.6306 2.15489 12.855 0.935998 5.80383L0.496704 0Z",fill:o.colorBg,"data-element-type":"shape"}),h(ft,{indexes:e,x:20,y:24,width:200,alignHorizontal:"left",alignVertical:"middle",fill:o.colorText,children:n.label}),h(It,{indexes:e,x:20,y:58,width:220,height:70,fill:o.colorTextSecondary,alignHorizontal:"left",alignVertical:"top",children:n.desc}),h(Gt,{indexes:e,x:r-48,y:12,width:32,height:32,fill:o.colorPrimary})]}))};Et("candy-card-lite",{component:Gu,composites:["icon","label","desc"]});var k3=Object.defineProperty,T3=Object.defineProperties,z3=Object.getOwnPropertyDescriptors,Li=Object.getOwnPropertySymbols,Uu=Object.prototype.hasOwnProperty,Zu=Object.prototype.propertyIsEnumerable,Qu=(t,e,n)=>e in t?k3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,H3=(t,e)=>{for(var n in e||(e={}))Uu.call(e,n)&&Qu(t,n,e[n]);if(Li)for(var n of Li(e))Zu.call(e,n)&&Qu(t,n,e[n]);return t},L3=(t,e)=>T3(t,z3(e)),R3=(t,e)=>{var n={};for(var r in t)Uu.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Li)for(var r of Li(t))e.indexOf(r)<0&&Zu.call(t,r)&&(n[r]=t[r]);return n};const oa=t=>{const e=t,{color:n="black",opacity:r=.8}=e,i=R3(e,["color","opacity"]);return h("filter",L3(H3({id:"drop-shadow",x:"-25%",y:"-25%",width:"200%",height:"200%"},i),{children:h("feDropShadow",{dx:"4",dy:"4",stdDeviation:"4","flood-color":n,"flood-opacity":r})}))};var N3=Object.defineProperty,j3=Object.defineProperties,D3=Object.getOwnPropertyDescriptors,Ku=Object.getOwnPropertySymbols,B3=Object.prototype.hasOwnProperty,F3=Object.prototype.propertyIsEnumerable,Ju=(t,e,n)=>e in t?N3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,W3=(t,e)=>{for(var n in e||(e={}))B3.call(e,n)&&Ju(t,n,e[n]);if(Ku)for(var n of Ku(e))F3.call(e,n)&&Ju(t,n,e[n]);return t},X3=(t,e)=>j3(t,D3(e));const sa=t=>{const{id:e="linear-gradient",startColor:n="black",stopColor:r="white",direction:i="left-right"}=t;return O("linearGradient",X3(W3({id:e},{"left-right":{x1:"0%",y1:"0%",x2:"100%",y2:"0%"},"right-left":{x1:"100%",y1:"0%",x2:"0%",y2:"0%"},"top-bottom":{x1:"0%",y1:"0%",x2:"0%",y2:"100%"},"bottom-top":{x1:"0%",y1:"100%",x2:"0%",y2:"0%"}}[i]),{children:[h("stop",{offset:"0%",stopColor:n}),h("stop",{offset:"100%",stopColor:r})]}))};var Y3=Object.defineProperty,V3=Object.defineProperties,q3=Object.getOwnPropertyDescriptors,td=Object.getOwnPropertySymbols,G3=Object.prototype.hasOwnProperty,U3=Object.prototype.propertyIsEnumerable,ed=(t,e,n)=>e in t?Y3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hr=(t,e)=>{for(var n in e||(e={}))G3.call(e,n)&&ed(t,n,e[n]);if(td)for(var n of td(e))U3.call(e,n)&&ed(t,n,e[n]);return t},fr=(t,e)=>V3(t,q3(e));const nd=t=>{const[{datum:e,indexes:n,width:r=300,height:i=80,gap:o=12,positionH:s="normal",iconPadding:a=i/10,themeColors:l},c]=At(t,["width","height","gap","iconPadding"]),f=i/2,u=i-a*2,d=s==="flipped",p=!!e.icon,g=p?r-i-o:r-o*2,m=p?d?o:i:o,y=p?d?"right":"left":"center",x={indexes:n,width:g,alignHorizontal:y,alignVertical:"middle",fontSize:16,fontWeight:"600",fill:l.colorWhite},_=G(h(ft,fr(hr({},x),{children:e.label}))),b={indexes:n,width:g,alignHorizontal:y,alignVertical:"top",fontSize:12,lineNumber:1,fill:l.colorWhite},v=G(e.desc?h(It,fr(hr({},b),{children:e.desc})):null),P=4,w=_.height+P+v.height,M=(i-w)/2,I=M+_.height+P,S=d?r-i+a:a,C=a;return O(F,fr(hr({},c),{children:[h(yt,{children:h(oa,{})}),h(dt,{x:0,y:0,width:r,height:i,fill:l.colorPrimary,rx:f,ry:f,"data-element-type":"shape"}),e.icon&&O(gt,{children:[h(_t,{x:S,y:C,width:u,height:u,fillOpacity:.5,fill:l.colorBg,filter:"url(#drop-shadow)"}),h(Ve,{indexes:n,x:S,y:C,size:u,fill:l.colorBg,colorBg:l.colorPrimary})]}),e.label&&h(ft,fr(hr({x:m,y:M},x),{children:e.label})),e.desc&&h(It,fr(hr({x:m,y:I},b),{children:e.desc}))]}))};Et("capsule-item",{component:nd,composites:["icon","label","desc"]});var Z3=Object.defineProperty,Q3=Object.defineProperties,K3=Object.getOwnPropertyDescriptors,rd=Object.getOwnPropertySymbols,J3=Object.prototype.hasOwnProperty,t4=Object.prototype.propertyIsEnumerable,id=(t,e,n)=>e in t?Z3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,aa=(t,e)=>{for(var n in e||(e={}))J3.call(e,n)&&id(t,n,e[n]);if(rd)for(var n of rd(e))t4.call(e,n)&&id(t,n,e[n]);return t},la=(t,e)=>Q3(t,K3(e));const od=t=>{const[{indexes:e,datum:n,themeColors:r,positionH:i="normal",width:o=240,height:s=o},a]=At(t,["width","height"]),l=Math.min(o,s),c=l*.7,f=(l-c)/2,u=c*Math.sqrt(2)/2,d=(l-u)/2,p=tt(r.colorPrimary),g=Ri(p,80,.2),m=Ri(p,20,.8),y=Ri(p,75,.32),x=Ri(p,45,.4),_=p.clone().darken(5).toRgbString(),b=`${r.colorPrimary}-${i}-outer`,v=`${r.colorPrimary}-${i}-inner`,P=i==="flipped"?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"100%",y1:"0%",x2:"0%",y2:"0%"};return O(F,la(aa({},a),{children:[O(yt,{children:[O("linearGradient",la(aa({id:b},P),{children:[h("stop",{offset:"0%",stopColor:g}),h("stop",{offset:"100%",stopColor:m})]})),O("linearGradient",la(aa({id:v},P),{children:[h("stop",{offset:"0%",stopColor:y}),h("stop",{offset:"100%",stopColor:x})]}))]}),h(_t,{width:l,height:l,fill:`url(#${b})`,"data-element-type":"shape"}),h(_t,{x:f,y:f,width:c,height:c,fill:`url(#${v})`,stroke:"#FFFFFF",strokeWidth:1,"data-element-type":"shape"}),h(ft,{indexes:e,x:d,y:d,width:u,height:u,lineHeight:1.1,alignHorizontal:"center",alignVertical:"middle",fill:_,fontWeight:"500",children:n.label})]}))};Et("circle-node",{component:od,composites:["label"]});function Ri(t,e,n){return tt.mix(t,"#ffffff",e).setAlpha(n).toRgbString()}var e4=Object.defineProperty,n4=Object.defineProperties,r4=Object.getOwnPropertyDescriptors,sd=Object.getOwnPropertySymbols,i4=Object.prototype.hasOwnProperty,o4=Object.prototype.propertyIsEnumerable,ad=(t,e,n)=>e in t?e4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ld=(t,e)=>{for(var n in e||(e={}))i4.call(e,n)&&ad(t,n,e[n]);if(sd)for(var n of sd(e))o4.call(e,n)&&ad(t,n,e[n]);return t},cd=(t,e)=>n4(t,r4(e));const hd=t=>{var e;const[{datum:n,indexes:r,size:i=120,strokeWidth:o=12,gap:s=8,themeColors:a,valueFormatter:l=v=>`${Math.round(v)}%`},c]=At(t,["size","strokeWidth","gap"]),f=(e=n.value)!=null?e:0,d=Math.min(Math.max(f/100,0),1),p=(i-o)/2,g=i/2,m=o/2,y=i-o,x=d*360,_=s4(g,g,p,0,x),b={x:m,y:m,width:y,height:y};return O(F,cd(ld({},c),{width:i,height:i+s+20,children:[h(dt,{width:i,height:i,fill:"none"}),h(_t,cd(ld({},b),{fill:"none",stroke:"#f0f0f0",strokeWidth:o,"data-element-type":"shape"})),h(ot,{d:_,fill:"none",stroke:a.colorPrimary,strokeWidth:o,strokeLinecap:"round","data-element-type":"shape"}),h(Fn,{indexes:r,x:o,y:o,width:y-o,height:y-o,fontSize:24,fontWeight:"bold",fill:a.colorPrimary,alignHorizontal:"center",alignVertical:"middle",value:f,formatter:l}),h(ft,{indexes:r,x:0,y:i+s,width:i,alignHorizontal:"center",fontSize:12,fill:a.colorTextSecondary,children:n.label})]}))};function s4(t,e,n,r,i){const o=fd(t,e,n,i),s=fd(t,e,n,r),a=i-r<=180?"0":"1";return`M ${o.x} ${o.y} A ${n} ${n} 0 ${a} 0 ${s.x} ${s.y}`}function fd(t,e,n,r){const i=(r-90)*Math.PI/180;return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}}Et("circular-progress",{component:hd,composites:["label","value"]});var a4=Object.defineProperty,l4=Object.defineProperties,c4=Object.getOwnPropertyDescriptors,ud=Object.getOwnPropertySymbols,h4=Object.prototype.hasOwnProperty,f4=Object.prototype.propertyIsEnumerable,dd=(t,e,n)=>e in t?a4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u4=(t,e)=>{for(var n in e||(e={}))h4.call(e,n)&&dd(t,n,e[n]);if(ud)for(var n of ud(e))f4.call(e,n)&&dd(t,n,e[n]);return t},d4=(t,e)=>l4(t,c4(e));const pd=t=>{const[{datum:e,indexes:n,width:r=200,height:i=60,iconSize:o=20,gap:s=8,positionH:a="normal",themeColors:l,valueFormatter:c},f]=At(t,["width","height","iconSize","gap"]),u=e.value,d=u!=null,p="compact-shadow",g=a==="flipped"?r-s-o:s,m=a==="flipped"?s:o+2*s,y=r-o-3*s,x=d?y*.8:y,_=d?y*.2:0;return O(F,d4(u4({},f),{children:[h(yt,{children:h("filter",{id:p,children:h("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodOpacity:"0.15"})})}),h(dt,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorBgElevated,strokeWidth:1,rx:6,ry:6,filter:`url(#${p})`,"data-element-type":"shape"}),h(dt,{x:a==="flipped"?r-3:0,y:0,width:3,height:i,fill:l.colorPrimary,rx:1.5,ry:1.5,"data-element-type":"shape"}),h(Gt,{indexes:n,x:g,y:(i-o)/2,size:o,fill:l.colorPrimary}),O(rt,{x:m,y:s,width:y,height:i-s*2,flexDirection:"column",justifyContent:"center",alignItems:"flex-start",children:[O(rt,{width:y,flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[h(ft,{indexes:n,width:x,alignHorizontal:"left",fontSize:12,fill:l.colorText,children:e.label}),d&&h(Fn,{indexes:n,width:_,alignHorizontal:"right",fontSize:12,fontWeight:"bold",fill:l.colorPrimary,value:u,formatter:c})]}),h(It,{indexes:n,width:y,alignHorizontal:"left",alignVertical:"middle",fontSize:10,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]})]}))};Et("compact-card",{component:pd,composites:["icon","label","value","desc"]});var p4=Object.defineProperty,g4=Object.defineProperties,m4=Object.getOwnPropertyDescriptors,gd=Object.getOwnPropertySymbols,y4=Object.prototype.hasOwnProperty,_4=Object.prototype.propertyIsEnumerable,md=(t,e,n)=>e in t?p4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,x4=(t,e)=>{for(var n in e||(e={}))y4.call(e,n)&&md(t,n,e[n]);if(gd)for(var n of gd(e))_4.call(e,n)&&md(t,n,e[n]);return t},b4=(t,e)=>g4(t,m4(e));const yd=t=>{const[{datum:e,indexes:n,width:r=300,height:i=30,iconSize:o=30,gap:s=5,positionH:a="normal",positionV:l="middle",themeColors:c},f]=At(t,["width","height","iconSize","gap"]),u=r-o-s,d=l==="middle"?(i-o)/2:l==="flipped"?i-o:0;return O(F,b4(x4({},f),{children:[h(ot,{"data-element-type":"shape",x:a==="flipped"?u+s:0,y:d,fill:c.colorPrimary,width:o,height:o,d:"M14.7273 30C6.54538 30 0 22.9077 0 14.7269C0 6.54617 6.54538 0 14.7273 0C22.9092 0 30 6.54617 30 14.7269C30 22.9077 22.9092 30 14.7273 30ZM24.5454 10.9077C22.9092 9.27307 22.9092 9.27307 22.9092 9.27307C22.3638 8.72692 22.3638 8.7269 21.8181 8.7269C21.2727 8.7269 21.2727 8.72692 20.7273 9.27307C13.0908 16.9077 13.0908 16.9077 13.0908 16.9077C8.72731 12.5461 8.72731 12.5462 8.72731 12.5462C8.18193 12.5462 8.18193 12 7.63654 12L7.09077 12.5462C4.90923 14.1808 4.90923 14.1808 4.90923 14.1808C4.90923 14.7269 4.90923 14.7269 4.90923 15.2731C4.90923 15.8192 4.90923 15.8192 4.90923 16.3654C12 23.4539 12 23.4538 12 23.4538C12.5454 23.4538 12.5454 23.4538 13.0908 23.4538C13.6365 23.4538 13.6365 23.4538 14.1819 23.4538C24.5454 12.5461 24.5454 12.5462 24.5454 12.5462L25.0908 12C25.0908 11.4538 24.5454 10.9077 24.5454 10.9077Z"}),h(ft,{indexes:n,x:a==="flipped"?0:o+s,width:u,height:i,fontWeight:"normal",alignVertical:"middle",wordWrap:!1,fill:"#666",children:e.label||e.desc})]}))};Et("done-list",{component:yd,composites:["label"]});var v4=Object.defineProperty,w4=Object.defineProperties,$4=Object.getOwnPropertyDescriptors,_d=Object.getOwnPropertySymbols,P4=Object.prototype.hasOwnProperty,M4=Object.prototype.propertyIsEnumerable,xd=(t,e,n)=>e in t?v4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,O4=(t,e)=>{for(var n in e||(e={}))P4.call(e,n)&&xd(t,n,e[n]);if(_d)for(var n of _d(e))M4.call(e,n)&&xd(t,n,e[n]);return t},C4=(t,e)=>w4(t,$4(e));const bd=t=>{const[{indexes:e,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=At(t,["width"]),a=o!=="flipped",l=o==="normal"?"bottom":"top",c=h(ft,{indexes:e,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),f=h(It,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=h(Ve,{indexes:e,fill:i.colorPrimary,colorBg:i.colorWhite}),d=h(I4,{width:8,height:30,fill:i.colorPrimary,positionV:o}),p=5,g=25,m=30,y=G(c),x=G(f),_=G(u),b=G(d),v=y.height+x.height+p+b.height-_.height-g,P=_.height+g+m+b.height+p+y.height+x.height;return h(F,C4(O4({width:r,height:P},s),{children:O(rt,{flexDirection:"column",alignItems:"center",children:[a?O(gt,{children:[f,c,h(zt,{height:p}),d]}):O(gt,{children:[h(zt,{height:v}),u,h(zt,{height:g})]}),O(hn,{horizontal:"center",vertical:"middle",children:[h(S4,{width:r,height:m,fill:i.colorPrimary}),h(kt,{width:r,height:m,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),a?O(gt,{children:[h(zt,{height:g}),u]}):O(gt,{children:[d,h(zt,{height:p}),c,f]})]})}))},S4=t=>{const{x:e=0,y:n=0,width:r=100,height:i=40,fill:o="#1890FF",size:s=10}=t;return h(be,{width:r,height:i,points:[{x:e,y:n},{x:e+r-s,y:n},{x:e+r,y:n+i/2},{x:e+r-s,y:n+i},{x:e,y:n+i},{x:e+s,y:n+i/2}],fill:o,"data-element-type":"shape"})},I4=t=>{const{x:e=0,y:n=0,width:r=10,height:i=50,fill:o,positionV:s="top"}=t,a=r/2,l=i-a,c=2,f=a;return O(jt,{x:e,y:n,width:r,height:i,children:[h(_t,{width:r,height:r,fill:o,y:s==="top"?0:l-a}),h(ot,{d:s==="top"?`M${f},${a} L${f},${a+l}`:`M${f},0 L${f},${l-a}`,strokeWidth:c,stroke:o})]})};Et("horizontal-icon-arrow",{component:bd,composites:["icon","label","desc","time"]});var A4=Object.defineProperty,E4=Object.defineProperties,k4=Object.getOwnPropertyDescriptors,vd=Object.getOwnPropertySymbols,T4=Object.prototype.hasOwnProperty,z4=Object.prototype.propertyIsEnumerable,wd=(t,e,n)=>e in t?A4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$d=(t,e)=>{for(var n in e||(e={}))T4.call(e,n)&&wd(t,n,e[n]);if(vd)for(var n of vd(e))z4.call(e,n)&&wd(t,n,e[n]);return t},Pd=(t,e)=>E4(t,k4(e));const Md=t=>{const[{indexes:e,datum:n,width:r=160,themeColors:i,positionH:o="center",positionV:s="normal"},a]=At(t,["width"]),l=o==="normal"?"left":o==="flipped"?"right":"center",c=h(ft,{indexes:e,width:r,alignHorizontal:l,fill:i.colorPrimary,children:n.label}),f=G(c),u=n.desc?h(It,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:s==="flipped"?"top":"bottom",children:n.desc}):null,d=G(u),g=n.icon?h(Ve,{size:45,indexes:e,colorBg:i.colorBg,fill:i.colorPrimary}):null,m=G(g),y=n.time?h(kt,{width:r,height:30,alignHorizontal:"center",alignVertical:"middle",fill:i.colorPrimary,fontSize:18,fontWeight:"bold",children:n.time}):null,x=G(y),_=18,b=O(hn,{horizontal:"center",width:r,height:_,children:[h(dt,{width:r,height:_,fill:i.colorPrimary,"data-element-type":"shape"}),h(_t,{y:-3,width:_+6,height:_+6,fill:i.colorBg,fillOpacity:.5,"data-element-type":"shape"}),h(_t,{y:(_-12)/2,width:12,height:12,fill:"white","data-element-type":"shape"})]}),v=f.height+d.height,P=m.height+x.height+5,w=Math.abs(P-v),$=P>v?w:0,M=v>P?w:0;return s==="flipped"?O(rt,Pd($d({},a),{flexDirection:"column",alignItems:"center",children:[h(zt,{height:M}),y,g,h(zt,{height:5}),b,c,u,h(zt,{height:$})]})):O(rt,Pd($d({},a),{flexDirection:"column",alignItems:"center",children:[h(zt,{height:$}),c,u,b,h(zt,{height:5}),g,y,h(zt,{height:M})]}))};Et("horizontal-icon-line",{component:Md,composites:["icon","label","desc"]});var H4=Object.defineProperty,L4=Object.defineProperties,R4=Object.getOwnPropertyDescriptors,Od=Object.getOwnPropertySymbols,N4=Object.prototype.hasOwnProperty,j4=Object.prototype.propertyIsEnumerable,Cd=(t,e,n)=>e in t?H4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,D4=(t,e)=>{for(var n in e||(e={}))N4.call(e,n)&&Cd(t,n,e[n]);if(Od)for(var n of Od(e))j4.call(e,n)&&Cd(t,n,e[n]);return t},B4=(t,e)=>L4(t,R4(e));const Sd=t=>{var e;const[{datum:n,indexes:r,size:i=80,iconSize:o=28,badgeSize:s=24,gap:a=8,themeColors:l,width:c=84,height:f=105},u]=At(t,["size","iconSize","badgeSize","gap"]),d=(e=n.value)!=null?e:0,p=`${l.colorPrimary}-icon`,g="#ff6b6b-badge";return O(F,B4(D4({},u),{width:c,height:f,children:[O(yt,{children:[O("radialGradient",{id:p,cx:"50%",cy:"30%",r:"70%",children:[h("stop",{offset:"0%",stopColor:tt(l.colorPrimary).lighten(30).toHexString()}),h("stop",{offset:"100%",stopColor:l.colorPrimary})]}),O("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:"#ff6b6b"}),h("stop",{offset:"100%",stopColor:"#ee5a52"})]})]}),h(_t,{x:0,y:0,width:i,height:i,fill:`url(#${p})`,"data-element-type":"shape"}),h(Gt,{indexes:r,x:(i-o)/2,y:(i-o)/2,size:o,fill:l.colorPrimaryText}),h(_t,{x:i-s+4,y:0,width:s,height:s,fill:`url(#${g})`}),h(kt,{x:i-s/2+4,y:s/2,fontSize:10,fontWeight:"bold",fill:l.colorWhite,alignHorizontal:"center",alignVertical:"middle",children:d>99?"99+":Math.round(d)}),h(ft,{indexes:r,x:0,y:i+a,width:i,alignHorizontal:"center",fontSize:12,fill:l.colorText,children:n.label})]}))};Et("icon-badge",{component:Sd,composites:["icon","label"]});var F4=Object.defineProperty,W4=Object.defineProperties,X4=Object.getOwnPropertyDescriptors,Id=Object.getOwnPropertySymbols,Y4=Object.prototype.hasOwnProperty,V4=Object.prototype.propertyIsEnumerable,Ad=(t,e,n)=>e in t?F4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,q4=(t,e)=>{for(var n in e||(e={}))Y4.call(e,n)&&Ad(t,n,e[n]);if(Id)for(var n of Id(e))V4.call(e,n)&&Ad(t,n,e[n]);return t},G4=(t,e)=>W4(t,X4(e));const Ed=t=>{const[{datum:e,indexes:n,width:r=200,borderRadius:i=12,padding:o=16,separatorHeight:s=2,indexFontSize:a=20,labelFontSize:l=16,gap:c=8,themeColors:f},u]=At(t,["width","height","borderRadius","padding","separatorHeight","indexFontSize","labelFontSize","gap"]),d=n[0]+1,p=String(d).padStart(2,"0"),g=e.label!==void 0,m=e.desc!==void 0,y=tt.mix(f.colorPrimary,f.colorWhite,40).toHexString(),x=f.colorBgElevated||f.colorWhite,_=r-2*o,b=G(h(kt,{fontSize:a,fontWeight:"bold",children:p})),v=_-b.width-c,P=g?G(h(ft,{indexes:n,width:v,fontSize:l,fontWeight:"bold",x:a,children:e.label})):{height:0},w=m?G(h(It,{indexes:n,width:_,fontSize:14,lineHeight:1.5,wordWrap:!0,children:e.desc})):{height:0},$=Math.max(b.height,P.height),M=o*2+$+(g||m?c:0)+s+(m?c:0)+w.height;return O(F,G4(q4({},u),{width:r,height:M,children:[h(dt,{x:0,y:0,width:r,height:M,rx:i,ry:i,fill:x,stroke:tt(x).darken(5).toHexString(),strokeWidth:.5,"data-element-type":"shape"}),O(F,{x:o,y:o,children:[O(F,{x:0,y:0,children:[h(kt,{x:0,y:0,fontSize:a,fontWeight:"bold",fill:f.colorPrimary,alignVertical:"top",children:p}),g&&h(ft,{indexes:n,x:a+c,y:0,width:v,fontSize:l,fontWeight:"bold",fill:f.colorTextSecondary,alignVertical:"top",children:e.label})]}),h(dt,{x:0,y:$+c,width:_,height:s,fill:y,"data-element-type":"shape"}),m&&h(It,{indexes:n,x:0,y:$+c+s+c,width:_,fontSize:14,lineHeight:1.5,wordWrap:!0,fill:f.colorTextSecondary,children:e.desc})]})]}))};Et("indexed-card",{component:Ed,composites:["label","desc"]});var U4=Object.defineProperty,Z4=Object.defineProperties,Q4=Object.getOwnPropertyDescriptors,kd=Object.getOwnPropertySymbols,K4=Object.prototype.hasOwnProperty,J4=Object.prototype.propertyIsEnumerable,Td=(t,e,n)=>e in t?U4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,t6=(t,e)=>{for(var n in e||(e={}))K4.call(e,n)&&Td(t,n,e[n]);if(kd)for(var n of kd(e))J4.call(e,n)&&Td(t,n,e[n]);return t},e6=(t,e)=>Z4(t,Q4(e));const zd=t=>{const[{indexes:e,datum:n,width:r=140,iconSize:i=24,themeColors:o},s]=At(t,["width","iconSize"]),{label:a,desc:l}=n,c=8,f=16,u=12,d=f+u,p=r-d,g=60,m=i+44,y=f,x=g+u,_=g+f+u,b=[{x:0,y:_},{x:y,y:x},{x:y,y:_}],v=r-y-u,P=y+u,w=P+v,$=x+c/2,M=$+m,I=`M ${P} ${M} L ${P} ${$} L ${w} ${$}`,S=c/2,C=P+S,E=$+S,A=8;return O(F,e6(t6({},s),{children:[h(It,{indexes:e,x:d,width:p,height:g,fontSize:12,alignHorizontal:"left",alignVertical:"bottom",fill:o.colorTextSecondary,children:l}),h(be,{points:b,fill:o.colorPrimary,opacity:.9,width:f,height:f,"data-element-type":"shape"}),h(ot,{d:I,stroke:o.colorPrimary,strokeWidth:c,fill:"none","data-element-type":"shape"}),h(Gt,{indexes:e,x:C+v/2-i/2,y:E+A,size:i,fill:o.colorPrimary}),h(ft,{indexes:e,x:C,y:E+i+A*2,width:v,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:o.colorText,children:a})]}))};Et("l-corner-card",{component:zd,composites:["icon","label","desc"]});var n6=Object.defineProperty,r6=Object.defineProperties,i6=Object.getOwnPropertyDescriptors,Hd=Object.getOwnPropertySymbols,o6=Object.prototype.hasOwnProperty,s6=Object.prototype.propertyIsEnumerable,Ld=(t,e,n)=>e in t?n6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,a6=(t,e)=>{for(var n in e||(e={}))o6.call(e,n)&&Ld(t,n,e[n]);if(Hd)for(var n of Hd(e))s6.call(e,n)&&Ld(t,n,e[n]);return t},l6=(t,e)=>r6(t,i6(e));const Rd=t=>{var e,n;const[{datum:r,indexes:i,width:o=280,height:s=160,showStripe:a=!0,showGradient:l=!0,showBottomShade:c=!0,themeColors:f},u]=At(t,["width","height","showStripe","showGradient","showBottomShade"]),d=(e=r.label)==null?void 0:e[0].toUpperCase(),p=(n=r.label)==null?void 0:n.toUpperCase(),g=f.colorPrimary,m=tt(g),y=4,x=6,_=45,b=40,v=12,w=m.clone().darken(4).toHexString(),$=m.clone().lighten(v).toHexString(),M="rgba(255, 255, 255, 0)",I="rgba(0, 0, 0, 0.03)",S=`letter-card-${i.join("-")}`,C=`${S}-gradient`,E=`${S}-pattern`,A=`${S}-shade`,R=y+x,D=1,k=96,j=k*D,L=16,H=L*D,N=s/16,B=j+N+H,X=(s-B)/2,T=X+j+N;return O(F,l6(a6({},u),{width:o,height:s,children:[O(yt,{children:[l&&O("linearGradient",{id:C,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:w}),h("stop",{offset:"100%",stopColor:$})]}),a&&O("pattern",{id:E,patternUnits:"userSpaceOnUse",width:R,height:R,patternTransform:`rotate(${_})`,children:[h("rect",{x:"0",y:"0",width:R,height:R,fill:M}),h("rect",{x:"0",y:"0",width:y,height:R,fill:I})]}),c&&O("linearGradient",{id:A,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:"rgba(0,0,0,0)"}),h("stop",{offset:"100%",stopColor:"rgba(0,0,0,0.16)"})]})]}),h(dt,{x:0,y:0,width:o,height:s,fill:l?`url(#${C})`:g,rx:0,ry:0,"data-element-type":"shape"}),a&&h(dt,{x:0,y:0,width:o,height:s,fill:`url(#${E})`,rx:0,ry:0}),c&&h(dt,{x:0,y:s-b,width:o,height:b,fill:`url(#${A})`,rx:0,ry:0}),d&&h(ft,{indexes:i,x:0,y:X,width:o,fontSize:k,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"top",lineHeight:1,children:d}),h(ft,{indexes:i,x:0,y:T,width:o,fontSize:L,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"middle",lineHeight:1,children:p})]}))};Et("letter-card",{component:Rd,composites:["label"]});var c6=Object.defineProperty,h6=Object.defineProperties,f6=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,u6=Object.prototype.hasOwnProperty,d6=Object.prototype.propertyIsEnumerable,jd=(t,e,n)=>e in t?c6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,p6=(t,e)=>{for(var n in e||(e={}))u6.call(e,n)&&jd(t,n,e[n]);if(Nd)for(var n of Nd(e))d6.call(e,n)&&jd(t,n,e[n]);return t},g6=(t,e)=>h6(t,f6(e));const Dd=t=>{const[{datum:e,indexes:n,width:r=300,pillWidth:i=120,pillHeight:o=36,gap:s=16,positionH:a="normal",themeColors:l},c]=At(t,["width","pillWidth","pillHeight","gap"]),f=!!e.desc,u=f?r:i,d=f?a==="center"?(u-i)/2:a==="flipped"?u-i:0:0,p=0,g=0,m=o+s,y=u,x=`drop-shadow-${l.colorPrimary}`,_="linear-gradient-white-top-bottom";return O(F,g6(p6({},c),{children:[O(yt,{children:[h(oa,{id:x,color:l.colorPrimary}),h(sa,{id:_,startColor:"#fff",stopColor:"#ffffff33",direction:"top-bottom"})]}),h(dt,{x:d,y:p,width:i,height:o,fill:l.colorPrimaryBg,stroke:l.colorPrimary,rx:o/2,ry:o/2,filter:`url(#${x})`,"data-element-type":"shape"}),h(dt,{x:d,y:p,width:i,height:o,fill:`url(#${_})`,opacity:l.isDarkMode?.4:.7,rx:o/2,ry:o/2}),h(ft,{indexes:n,x:d,y:p,width:i,height:o,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:l.colorText,children:e.label}),e.desc&&h(It,{indexes:n,x:g,y:m,width:y,alignHorizontal:a==="center"?"center":a==="flipped"?"right":"left",fontSize:12,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]}))};Et("pill-badge",{component:Dd,composites:["label","desc"]});var m6=Object.defineProperty,y6=Object.defineProperties,_6=Object.getOwnPropertyDescriptors,Bd=Object.getOwnPropertySymbols,x6=Object.prototype.hasOwnProperty,b6=Object.prototype.propertyIsEnumerable,Fd=(t,e,n)=>e in t?m6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,v6=(t,e)=>{for(var n in e||(e={}))x6.call(e,n)&&Fd(t,n,e[n]);if(Bd)for(var n of Bd(e))b6.call(e,n)&&Fd(t,n,e[n]);return t},w6=(t,e)=>y6(t,_6(e));const Wd=t=>{const[{indexes:e,datum:n,width:r=120,themeColors:i,positionH:o="normal",formatter:s=c=>c||"",usePaletteColor:a=!1},l]=At(t,["width","formatter","usePaletteColor"]);return h(ft,w6(v6({},l),{indexes:e,width:r,fill:a?i.colorPrimary:i.colorText,fontSize:14,fontWeight:"regular",alignHorizontal:o==="flipped"?"right":o==="center"?"center":"left",alignVertical:"middle",children:s(n.label||n.desc)}))};Et("plain-text",{component:Wd,composites:["label"]});function Ni(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $6(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Xd(t){let e,n,r;t.length!==2?(e=Ni,n=(a,l)=>Ni(t(a),l),r=(a,l)=>t(a)-l):(e=t===Ni||t===$6?t:P6,n=t,r=t);function i(a,l,c=0,f=a.length){if(c<f){if(e(l,l)!==0)return f;do{const u=c+f>>>1;n(a[u],l)<0?c=u+1:f=u}while(c<f)}return c}function o(a,l,c=0,f=a.length){if(c<f){if(e(l,l)!==0)return f;do{const u=c+f>>>1;n(a[u],l)<=0?c=u+1:f=u}while(c<f)}return c}function s(a,l,c=0,f=a.length){const u=i(a,l,c,f-1);return u>c&&r(a[u-1],l)>-r(a[u],l)?u-1:u}return{left:i,center:s,right:o}}function P6(){return 0}function M6(t){return t===null?NaN:+t}const O6=Xd(Ni).right;Xd(M6).center;const C6=Math.sqrt(50),S6=Math.sqrt(10),I6=Math.sqrt(2);function ji(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=C6?10:o>=S6?5:o>=I6?2:1;let a,l,c;return i<0?(c=Math.pow(10,-i)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,i)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?ji(t,e,n*2):[a,l,c]}function A6(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[i,o,s]=r?ji(e,t,n):ji(t,e,n);if(!(o>=i))return[];const a=o-i+1,l=new Array(a);if(r)if(s<0)for(let c=0;c<a;++c)l[c]=(o-c)/-s;else for(let c=0;c<a;++c)l[c]=(o-c)*s;else if(s<0)for(let c=0;c<a;++c)l[c]=(i+c)/-s;else for(let c=0;c<a;++c)l[c]=(i+c)*s;return l}function ca(t,e,n){return e=+e,t=+t,n=+n,ji(t,e,n)[2]}function E6(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?ca(e,t,n):ca(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}var k6={value:()=>{}};function ha(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Di(n)}function Di(t){this._=t}function T6(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Di.prototype=ha.prototype={constructor:Di,on:function(t,e){var n=this._,r=T6(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=z6(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=Yd(n[i],t.name,e);else if(e==null)for(i in n)n[i]=Yd(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Di(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function z6(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function Yd(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=k6,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var fa="http://www.w3.org/1999/xhtml";const Vd={svg:"http://www.w3.org/2000/svg",xhtml:fa,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Bi(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Vd.hasOwnProperty(e)?{space:Vd[e],local:t}:t}function H6(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===fa&&e.documentElement.namespaceURI===fa?e.createElement(t):e.createElementNS(n,t)}}function L6(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function qd(t){var e=Bi(t);return(e.local?L6:H6)(e)}function R6(){}function ua(t){return t==null?R6:function(){return this.querySelector(t)}}function N6(t){typeof t!="function"&&(t=ua(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=new Array(s),l,c,f=0;f<s;++f)(l=o[f])&&(c=t.call(l,l.__data__,f,o))&&("__data__"in l&&(c.__data__=l.__data__),a[f]=c);return new ge(r,this._parents)}function j6(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function D6(){return[]}function Gd(t){return t==null?D6:function(){return this.querySelectorAll(t)}}function B6(t){return function(){return j6(t.apply(this,arguments))}}function F6(t){typeof t=="function"?t=B6(t):t=Gd(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(t.call(l,l.__data__,c,s)),i.push(l));return new ge(r,i)}function Ud(t){return function(){return this.matches(t)}}function Zd(t){return function(e){return e.matches(t)}}var W6=Array.prototype.find;function X6(t){return function(){return W6.call(this.children,t)}}function Y6(){return this.firstElementChild}function V6(t){return this.select(t==null?Y6:X6(typeof t=="function"?t:Zd(t)))}var q6=Array.prototype.filter;function G6(){return Array.from(this.children)}function U6(t){return function(){return q6.call(this.children,t)}}function Z6(t){return this.selectAll(t==null?G6:U6(typeof t=="function"?t:Zd(t)))}function Q6(t){typeof t!="function"&&(t=Ud(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new ge(r,this._parents)}function Qd(t){return new Array(t.length)}function K6(){return new ge(this._enter||this._groups.map(Qd),this._parents)}function Fi(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Fi.prototype={constructor:Fi,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function J6(t){return function(){return t}}function t8(t,e,n,r,i,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Fi(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function e8(t,e,n,r,i,o,s){var a,l,c=new Map,f=e.length,u=o.length,d=new Array(f),p;for(a=0;a<f;++a)(l=e[a])&&(d[a]=p=s.call(l,l.__data__,a,e)+"",c.has(p)?i[a]=l:c.set(p,l));for(a=0;a<u;++a)p=s.call(t,o[a],a,o)+"",(l=c.get(p))?(r[a]=l,l.__data__=o[a],c.delete(p)):n[a]=new Fi(t,o[a]);for(a=0;a<f;++a)(l=e[a])&&c.get(d[a])===l&&(i[a]=l)}function n8(t){return t.__data__}function r8(t,e){if(!arguments.length)return Array.from(this,n8);var n=e?e8:t8,r=this._parents,i=this._groups;typeof t!="function"&&(t=J6(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var f=r[c],u=i[c],d=u.length,p=i8(t.call(f,f&&f.__data__,c,r)),g=p.length,m=a[c]=new Array(g),y=s[c]=new Array(g),x=l[c]=new Array(d);n(f,u,m,y,x,p,e);for(var _=0,b=0,v,P;_<g;++_)if(v=m[_]){for(_>=b&&(b=_+1);!(P=y[b])&&++b<g;);v._next=P||null}}return s=new ge(s,r),s._enter=a,s._exit=l,s}function i8(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function o8(){return new ge(this._exit||this._groups.map(Qd),this._parents)}function s8(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function a8(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var c=n[l],f=r[l],u=c.length,d=a[l]=new Array(u),p,g=0;g<u;++g)(p=c[g]||f[g])&&(d[g]=p);for(;l<i;++l)a[l]=n[l];return new ge(a,this._parents)}function l8(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function c8(t){t||(t=h8);function e(u,d){return u&&d?t(u.__data__,d.__data__):!u-!d}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),c,f=0;f<a;++f)(c=s[f])&&(l[f]=c);l.sort(e)}return new ge(i,this._parents).order()}function h8(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function f8(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function u8(){return Array.from(this)}function d8(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function p8(){let t=0;for(const e of this)++t;return t}function g8(){return!this.node()}function m8(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function y8(t){return function(){this.removeAttribute(t)}}function _8(t){return function(){this.removeAttributeNS(t.space,t.local)}}function x8(t,e){return function(){this.setAttribute(t,e)}}function b8(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function v8(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function w8(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function $8(t,e){var n=Bi(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?_8:y8:typeof e=="function"?n.local?w8:v8:n.local?b8:x8)(n,e))}function Kd(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function P8(t){return function(){this.style.removeProperty(t)}}function M8(t,e,n){return function(){this.style.setProperty(t,e,n)}}function O8(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function C8(t,e,n){return arguments.length>1?this.each((e==null?P8:typeof e=="function"?O8:M8)(t,e,n==null?"":n)):On(this.node(),t)}function On(t,e){return t.style.getPropertyValue(e)||Kd(t).getComputedStyle(t,null).getPropertyValue(e)}function S8(t){return function(){delete this[t]}}function I8(t,e){return function(){this[t]=e}}function A8(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function E8(t,e){return arguments.length>1?this.each((e==null?S8:typeof e=="function"?A8:I8)(t,e)):this.node()[t]}function Jd(t){return t.trim().split(/^|\s+/)}function da(t){return t.classList||new t0(t)}function t0(t){this._node=t,this._names=Jd(t.getAttribute("class")||"")}t0.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function e0(t,e){for(var n=da(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function n0(t,e){for(var n=da(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function k8(t){return function(){e0(this,t)}}function T8(t){return function(){n0(this,t)}}function z8(t,e){return function(){(e.apply(this,arguments)?e0:n0)(this,t)}}function H8(t,e){var n=Jd(t+"");if(arguments.length<2){for(var r=da(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?z8:e?k8:T8)(n,e))}function L8(){this.textContent=""}function R8(t){return function(){this.textContent=t}}function N8(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function j8(t){return arguments.length?this.each(t==null?L8:(typeof t=="function"?N8:R8)(t)):this.node().textContent}function D8(){this.innerHTML=""}function B8(t){return function(){this.innerHTML=t}}function F8(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function W8(t){return arguments.length?this.each(t==null?D8:(typeof t=="function"?F8:B8)(t)):this.node().innerHTML}function X8(){this.nextSibling&&this.parentNode.appendChild(this)}function Y8(){return this.each(X8)}function V8(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function q8(){return this.each(V8)}function G8(t){var e=typeof t=="function"?t:qd(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function U8(){return null}function Z8(t,e){var n=typeof t=="function"?t:qd(t),r=e==null?U8:typeof e=="function"?e:ua(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Q8(){var t=this.parentNode;t&&t.removeChild(this)}function K8(){return this.each(Q8)}function J8(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function t9(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function e9(t){return this.select(t?t9:J8)}function n9(t){return arguments.length?this.property("__data__",t):this.node().__data__}function r9(t){return function(e){t.call(this,e,this.__data__)}}function i9(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function o9(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function s9(t,e,n){return function(){var r=this.__on,i,o=r9(e);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function a9(t,e,n){var r=i9(t+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,f;l<c;++l)for(i=0,f=a[l];i<o;++i)if((s=r[i]).type===f.type&&s.name===f.name)return f.value}return}for(a=e?s9:o9,i=0;i<o;++i)this.each(a(r[i],e,n));return this}function r0(t,e,n){var r=Kd(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function l9(t,e){return function(){return r0(this,t,e)}}function c9(t,e){return function(){return r0(this,t,e.apply(this,arguments))}}function h9(t,e){return this.each((typeof e=="function"?c9:l9)(t,e))}function*f9(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var u9=[null];function ge(t,e){this._groups=t,this._parents=e}function ur(){return new ge([[document.documentElement]],u9)}function d9(){return this}ge.prototype=ur.prototype={constructor:ge,select:N6,selectAll:F6,selectChild:V6,selectChildren:Z6,filter:Q6,data:r8,enter:K6,exit:o8,join:s8,merge:a8,selection:d9,order:l8,sort:c8,call:f8,nodes:u8,node:d8,size:p8,empty:g8,each:m8,attr:$8,style:C8,property:E8,classed:H8,text:j8,html:W8,raise:Y8,lower:q8,append:G8,insert:Z8,remove:K8,clone:e9,datum:n9,on:a9,dispatch:h9,[Symbol.iterator]:f9};function pa(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i0(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function dr(){}var pr=.7,Wi=1/pr,Cn="\\s*([+-]?\\d+)\\s*",gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",we="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",p9=/^#([0-9a-f]{3,8})$/,g9=new RegExp(`^rgb\\(${Cn},${Cn},${Cn}\\)$`),m9=new RegExp(`^rgb\\(${we},${we},${we}\\)$`),y9=new RegExp(`^rgba\\(${Cn},${Cn},${Cn},${gr}\\)$`),_9=new RegExp(`^rgba\\(${we},${we},${we},${gr}\\)$`),x9=new RegExp(`^hsl\\(${gr},${we},${we}\\)$`),b9=new RegExp(`^hsla\\(${gr},${we},${we},${gr}\\)$`),o0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};pa(dr,tn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:s0,formatHex:s0,formatHex8:v9,formatHsl:w9,formatRgb:a0,toString:a0});function s0(){return this.rgb().formatHex()}function v9(){return this.rgb().formatHex8()}function w9(){return u0(this).formatHsl()}function a0(){return this.rgb().formatRgb()}function tn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=p9.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?l0(e):n===3?new ne(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Xi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Xi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=g9.exec(t))?new ne(e[1],e[2],e[3],1):(e=m9.exec(t))?new ne(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=y9.exec(t))?Xi(e[1],e[2],e[3],e[4]):(e=_9.exec(t))?Xi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=x9.exec(t))?f0(e[1],e[2]/100,e[3]/100,1):(e=b9.exec(t))?f0(e[1],e[2]/100,e[3]/100,e[4]):o0.hasOwnProperty(t)?l0(o0[t]):t==="transparent"?new ne(NaN,NaN,NaN,0):null}function l0(t){return new ne(t>>16&255,t>>8&255,t&255,1)}function Xi(t,e,n,r){return r<=0&&(t=e=n=NaN),new ne(t,e,n,r)}function $9(t){return t instanceof dr||(t=tn(t)),t?(t=t.rgb(),new ne(t.r,t.g,t.b,t.opacity)):new ne}function ga(t,e,n,r){return arguments.length===1?$9(t):new ne(t,e,n,r==null?1:r)}function ne(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}pa(ne,ga,i0(dr,{brighter(t){return t=t==null?Wi:Math.pow(Wi,t),new ne(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?pr:Math.pow(pr,t),new ne(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ne(en(this.r),en(this.g),en(this.b),Yi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:c0,formatHex:c0,formatHex8:P9,formatRgb:h0,toString:h0}));function c0(){return`#${nn(this.r)}${nn(this.g)}${nn(this.b)}`}function P9(){return`#${nn(this.r)}${nn(this.g)}${nn(this.b)}${nn((isNaN(this.opacity)?1:this.opacity)*255)}`}function h0(){const t=Yi(this.opacity);return`${t===1?"rgb(":"rgba("}${en(this.r)}, ${en(this.g)}, ${en(this.b)}${t===1?")":`, ${t})`}`}function Yi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function en(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function nn(t){return t=en(t),(t<16?"0":"")+t.toString(16)}function f0(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new me(t,e,n,r)}function u0(t){if(t instanceof me)return new me(t.h,t.s,t.l,t.opacity);if(t instanceof dr||(t=tn(t)),!t)return new me;if(t instanceof me)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(e===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-e)/a+2:s=(e-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new me(s,a,l,t.opacity)}function M9(t,e,n,r){return arguments.length===1?u0(t):new me(t,e,n,r==null?1:r)}function me(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}pa(me,M9,i0(dr,{brighter(t){return t=t==null?Wi:Math.pow(Wi,t),new me(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?pr:Math.pow(pr,t),new me(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ne(ma(t>=240?t-240:t+120,i,r),ma(t,i,r),ma(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new me(d0(this.h),Vi(this.s),Vi(this.l),Yi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Yi(this.opacity);return`${t===1?"hsl(":"hsla("}${d0(this.h)}, ${Vi(this.s)*100}%, ${Vi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function d0(t){return t=(t||0)%360,t<0?t+360:t}function Vi(t){return Math.max(0,Math.min(1,t||0))}function ma(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const ya=t=>()=>t;function O9(t,e){return function(n){return t+n*e}}function C9(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function S9(t){return(t=+t)==1?p0:function(e,n){return n-e?C9(e,n,t):ya(isNaN(e)?n:e)}}function p0(t,e){var n=e-t;return n?O9(t,n):ya(isNaN(t)?e:t)}const qi=(function t(e){var n=S9(e);function r(i,o){var s=n((i=ga(i)).r,(o=ga(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),c=p0(i.opacity,o.opacity);return function(f){return i.r=s(f),i.g=a(f),i.b=l(f),i.opacity=c(f),i+""}}return r.gamma=t,r})(1);function I9(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function A9(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function E9(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=ba(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(a){for(s=0;s<r;++s)o[s]=i[s](a);return o}}function k9(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function ye(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function T9(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=ba(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var _a=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xa=new RegExp(_a.source,"g");function z9(t){return function(){return t}}function H9(t){return function(e){return t(e)+""}}function g0(t,e){var n=_a.lastIndex=xa.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=_a.exec(t))&&(i=xa.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:ye(r,i)})),n=xa.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?H9(l[0].x):z9(e):(e=l.length,function(c){for(var f=0,u;f<e;++f)a[(u=l[f]).i]=u.x(c);return a.join("")})}function ba(t,e){var n=typeof e,r;return e==null||n==="boolean"?ya(e):(n==="number"?ye:n==="string"?(r=tn(e))?(e=r,qi):g0:e instanceof tn?qi:e instanceof Date?k9:A9(e)?I9:Array.isArray(e)?E9:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?T9:ye)(t,e)}function L9(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var m0=180/Math.PI,va={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function y0(t,e,n,r,i,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*m0,skewX:Math.atan(l)*m0,scaleX:s,scaleY:a}}var Gi;function R9(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?va:y0(e.a,e.b,e.c,e.d,e.e,e.f)}function N9(t){return t==null||(Gi||(Gi=document.createElementNS("http://www.w3.org/2000/svg","g")),Gi.setAttribute("transform",t),!(t=Gi.transform.baseVal.consolidate()))?va:(t=t.matrix,y0(t.a,t.b,t.c,t.d,t.e,t.f))}function _0(t,e,n,r){function i(c){return c.length?c.pop()+" ":""}function o(c,f,u,d,p,g){if(c!==u||f!==d){var m=p.push("translate(",null,e,null,n);g.push({i:m-4,x:ye(c,u)},{i:m-2,x:ye(f,d)})}else(u||d)&&p.push("translate("+u+e+d+n)}function s(c,f,u,d){c!==f?(c-f>180?f+=360:f-c>180&&(c+=360),d.push({i:u.push(i(u)+"rotate(",null,r)-2,x:ye(c,f)})):f&&u.push(i(u)+"rotate("+f+r)}function a(c,f,u,d){c!==f?d.push({i:u.push(i(u)+"skewX(",null,r)-2,x:ye(c,f)}):f&&u.push(i(u)+"skewX("+f+r)}function l(c,f,u,d,p,g){if(c!==u||f!==d){var m=p.push(i(p)+"scale(",null,",",null,")");g.push({i:m-4,x:ye(c,u)},{i:m-2,x:ye(f,d)})}else(u!==1||d!==1)&&p.push(i(p)+"scale("+u+","+d+")")}return function(c,f){var u=[],d=[];return c=t(c),f=t(f),o(c.translateX,c.translateY,f.translateX,f.translateY,u,d),s(c.rotate,f.rotate,u,d),a(c.skewX,f.skewX,u,d),l(c.scaleX,c.scaleY,f.scaleX,f.scaleY,u,d),c=f=null,function(p){for(var g=-1,m=d.length,y;++g<m;)u[(y=d[g]).i]=y.x(p);return u.join("")}}}var j9=_0(R9,"px, ","px)","deg)"),D9=_0(N9,", ",")",")"),Sn=0,mr=0,yr=0,x0=1e3,Ui,_r,Zi=0,rn=0,Qi=0,xr=typeof performance=="object"&&performance.now?performance:Date,b0=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function wa(){return rn||(b0(B9),rn=xr.now()+Qi)}function B9(){rn=0}function Ki(){this._call=this._time=this._next=null}Ki.prototype=$a.prototype={constructor:Ki,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?wa():+n)+(e==null?0:+e),!this._next&&_r!==this&&(_r?_r._next=this:Ui=this,_r=this),this._call=t,this._time=n,Pa()},stop:function(){this._call&&(this._call=null,this._time=1/0,Pa())}};function $a(t,e,n){var r=new Ki;return r.restart(t,e,n),r}function F9(){wa(),++Sn;for(var t=Ui,e;t;)(e=rn-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Sn}function v0(){rn=(Zi=xr.now())+Qi,Sn=mr=0;try{F9()}finally{Sn=0,X9(),rn=0}}function W9(){var t=xr.now(),e=t-Zi;e>x0&&(Qi-=e,Zi=t)}function X9(){for(var t,e=Ui,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Ui=n);_r=t,Pa(r)}function Pa(t){if(!Sn){mr&&(mr=clearTimeout(mr));var e=t-rn;e>24?(t<1/0&&(mr=setTimeout(v0,t-xr.now()-Qi)),yr&&(yr=clearInterval(yr))):(yr||(Zi=xr.now(),yr=setInterval(W9,x0)),Sn=1,b0(v0))}}function w0(t,e,n){var r=new Ki;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var Y9=ha("start","end","cancel","interrupt"),V9=[],$0=0,P0=1,Ma=2,Ji=3,M0=4,Oa=5,to=6;function eo(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;q9(t,n,{name:e,index:r,group:i,on:Y9,tween:V9,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:$0})}function Ca(t,e){var n=_e(t,e);if(n.state>$0)throw new Error("too late; already scheduled");return n}function $e(t,e){var n=_e(t,e);if(n.state>Ji)throw new Error("too late; already running");return n}function _e(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function q9(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=$a(o,0,n.time);function o(c){n.state=P0,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var f,u,d,p;if(n.state!==P0)return l();for(f in r)if(p=r[f],p.name===n.name){if(p.state===Ji)return w0(s);p.state===M0?(p.state=to,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[f]):+f<e&&(p.state=to,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[f])}if(w0(function(){n.state===Ji&&(n.state=M0,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=Ma,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Ma){for(n.state=Ji,i=new Array(d=n.tween.length),f=0,u=-1;f<d;++f)(p=n.tween[f].value.call(t,t.__data__,n.index,n.group))&&(i[++u]=p);i.length=u+1}}function a(c){for(var f=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=Oa,1),u=-1,d=i.length;++u<d;)i[u].call(t,f);n.state===Oa&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=to,n.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function G9(t,e){var n=t.__transition,r,i,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((r=n[s]).name!==e){o=!1;continue}i=r.state>Ma&&r.state<Oa,r.state=to,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function U9(t){return this.each(function(){G9(this,t)})}function Z9(t,e){var n,r;return function(){var i=$e(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function Q9(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=$e(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=a;break}l===c&&i.push(a)}o.tween=i}}function K9(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=_e(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===t)return s.value;return null}return this.each((e==null?Z9:Q9)(n,t,e))}function Sa(t,e,n){var r=t._id;return t.each(function(){var i=$e(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return _e(i,r).value[e]}}function O0(t,e){var n;return(typeof e=="number"?ye:e instanceof tn?qi:(n=tn(e))?(e=n,qi):g0)(t,e)}function J9(t){return function(){this.removeAttribute(t)}}function t7(t){return function(){this.removeAttributeNS(t.space,t.local)}}function e7(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttribute(t);return s===i?null:s===r?o:o=e(r=s,n)}}function n7(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===r?o:o=e(r=s,n)}}function r7(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function i7(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function o7(t,e){var n=Bi(t),r=n==="transform"?D9:O0;return this.attrTween(t,typeof e=="function"?(n.local?i7:r7)(n,r,Sa(this,"attr."+t,e)):e==null?(n.local?t7:J9)(n):(n.local?n7:e7)(n,r,e))}function s7(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function a7(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function l7(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&a7(t,o)),n}return i._value=e,i}function c7(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&s7(t,o)),n}return i._value=e,i}function h7(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Bi(t);return this.tween(n,(r.local?l7:c7)(r,e))}function f7(t,e){return function(){Ca(this,t).delay=+e.apply(this,arguments)}}function u7(t,e){return e=+e,function(){Ca(this,t).delay=e}}function d7(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?f7:u7)(e,t)):_e(this.node(),e).delay}function p7(t,e){return function(){$e(this,t).duration=+e.apply(this,arguments)}}function g7(t,e){return e=+e,function(){$e(this,t).duration=e}}function m7(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?p7:g7)(e,t)):_e(this.node(),e).duration}function y7(t,e){if(typeof e!="function")throw new Error;return function(){$e(this,t).ease=e}}function _7(t){var e=this._id;return arguments.length?this.each(y7(e,t)):_e(this.node(),e).ease}function x7(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;$e(this,t).ease=n}}function b7(t){if(typeof t!="function")throw new Error;return this.each(x7(this._id,t))}function v7(t){typeof t!="function"&&(t=Ud(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new Ee(r,this._parents,this._name,this._id)}function w7(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=e[a],c=n[a],f=l.length,u=s[a]=new Array(f),d,p=0;p<f;++p)(d=l[p]||c[p])&&(u[p]=d);for(;a<r;++a)s[a]=e[a];return new Ee(s,this._parents,this._name,this._id)}function $7(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function P7(t,e,n){var r,i,o=$7(e)?Ca:$e;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}function M7(t,e){var n=this._id;return arguments.length<2?_e(this.node(),n).on.on(t):this.each(P7(n,t,e))}function O7(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function C7(){return this.on("end.remove",O7(this._id))}function S7(t){var e=this._name,n=this._id;typeof t!="function"&&(t=ua(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),f,u,d=0;d<l;++d)(f=a[d])&&(u=t.call(f,f.__data__,d,a))&&("__data__"in f&&(u.__data__=f.__data__),c[d]=u,eo(c[d],e,n,d,c,_e(f,n)));return new Ee(o,this._parents,e,n)}function I7(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Gd(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],c=l.length,f,u=0;u<c;++u)if(f=l[u]){for(var d=t.call(f,f.__data__,u,l),p,g=_e(f,n),m=0,y=d.length;m<y;++m)(p=d[m])&&eo(p,e,n,m,d,g);o.push(d),s.push(f)}return new Ee(o,s,e,n)}var A7=ur.prototype.constructor;function E7(){return new A7(this._groups,this._parents)}function k7(t,e){var n,r,i;return function(){var o=On(this,t),s=(this.style.removeProperty(t),On(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}function C0(t){return function(){this.style.removeProperty(t)}}function T7(t,e,n){var r,i=n+"",o;return function(){var s=On(this,t);return s===i?null:s===r?o:o=e(r=s,n)}}function z7(t,e,n){var r,i,o;return function(){var s=On(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),On(this,t))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a))}}function H7(t,e){var n,r,i,o="style."+e,s="end."+o,a;return function(){var l=$e(this,t),c=l.on,f=l.value[o]==null?a||(a=C0(e)):void 0;(c!==n||i!==f)&&(r=(n=c).copy()).on(s,i=f),l.on=r}}function L7(t,e,n){var r=(t+="")=="transform"?j9:O0;return e==null?this.styleTween(t,k7(t,r)).on("end.style."+t,C0(t)):typeof e=="function"?this.styleTween(t,z7(t,r,Sa(this,"style."+t,e))).each(H7(this._id,t)):this.styleTween(t,T7(t,r,e),n).on("end.style."+t,null)}function R7(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function N7(t,e,n){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&R7(t,s,n)),r}return o._value=e,o}function j7(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,N7(t,e,n==null?"":n))}function D7(t){return function(){this.textContent=t}}function B7(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function F7(t){return this.tween("text",typeof t=="function"?B7(Sa(this,"text",t)):D7(t==null?"":t+""))}function W7(t){return function(e){this.textContent=t.call(this,e)}}function X7(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&W7(i)),e}return r._value=t,r}function Y7(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,X7(t))}function V7(){for(var t=this._name,e=this._id,n=S0(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var f=_e(l,e);eo(l,t,n,c,s,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Ee(r,this._parents,t,n)}function q7(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var c=$e(this,r),f=c.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),i===0&&o()})}var G7=0;function Ee(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function S0(){return++G7}var ke=ur.prototype;Ee.prototype={constructor:Ee,select:S7,selectAll:I7,selectChild:ke.selectChild,selectChildren:ke.selectChildren,filter:v7,merge:w7,selection:E7,transition:V7,call:ke.call,nodes:ke.nodes,node:ke.node,size:ke.size,empty:ke.empty,each:ke.each,on:M7,attr:o7,attrTween:h7,style:L7,styleTween:j7,text:F7,textTween:Y7,remove:C7,tween:K9,delay:d7,duration:m7,ease:_7,easeVarying:b7,end:q7,[Symbol.iterator]:ke[Symbol.iterator]};function U7(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Z7={time:null,delay:0,duration:250,ease:U7};function Q7(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function K7(t){var e,n;t instanceof Ee?(e=t._id,t=t._name):(e=S0(),(n=Z7).time=wa(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&eo(l,t,e,c,s,n||Q7(l,e));return new Ee(r,this._parents,t,e)}ur.prototype.interrupt=U9,ur.prototype.transition=K7;const Ia=Math.PI,Aa=2*Ia,on=1e-6,J7=Aa-on;function I0(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function t$(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return I0;const n=Pr(10,e);return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class e${constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?I0:t$(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,i){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,n,r,i,o,s){this._append`C${+e},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(e,n,r,i,o){if(e=+e,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,l=r-e,c=i-n,f=s-e,u=a-n,d=f*f+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(d>on)if(!(Math.abs(u*l-c*f)>on)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let p=r-s,g=i-a,m=l*l+c*c,y=p*p+g*g,x=Math.sqrt(m),_=Math.sqrt(d),b=o*Math.tan((Ia-Math.acos((m+d-y)/(2*x*_)))/2),v=b/_,P=b/x;Math.abs(v-1)>on&&this._append`L${e+v*f},${n+v*u}`,this._append`A${o},${o},0,0,${+(u*p>f*g)},${this._x1=e+P*l},${this._y1=n+P*c}`}}arc(e,n,r,i,o,s){if(e=+e,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),l=r*Math.sin(i),c=e+a,f=n+l,u=1^s,d=s?i-o:o-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>on||Math.abs(this._y1-f)>on)&&this._append`L${c},${f}`,r&&(d<0&&(d=d%Aa+Aa),d>J7?this._append`A${r},${r},0,1,${u},${e-a},${n-l}A${r},${r},0,1,${u},${this._x1=c},${this._y1=f}`:d>on&&this._append`A${r},${r},0,${+(d>=Ia)},${u},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function n$(t,e){var n,r=1;t==null&&(t=0),e==null&&(e=0);function i(){var o,s=n.length,a,l=0,c=0;for(o=0;o<s;++o)a=n[o],l+=a.x,c+=a.y;for(l=(l/s-t)*r,c=(c/s-e)*r,o=0;o<s;++o)a=n[o],a.x-=l,a.y-=c}return i.initialize=function(o){n=o},i.x=function(o){return arguments.length?(t=+o,i):t},i.y=function(o){return arguments.length?(e=+o,i):e},i.strength=function(o){return arguments.length?(r=+o,i):r},i}function r$(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return A0(this.cover(e,n),e,n,t)}function A0(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o=t._root,s={data:r},a=t._x0,l=t._y0,c=t._x1,f=t._y1,u,d,p,g,m,y,x,_;if(!o)return t._root=s,t;for(;o.length;)if((m=e>=(u=(a+c)/2))?a=u:c=u,(y=n>=(d=(l+f)/2))?l=d:f=d,i=o,!(o=o[x=y<<1|m]))return i[x]=s,t;if(p=+t._x.call(null,o.data),g=+t._y.call(null,o.data),e===p&&n===g)return s.next=o,i?i[x]=s:t._root=s,t;do i=i?i[x]=new Array(4):t._root=new Array(4),(m=e>=(u=(a+c)/2))?a=u:c=u,(y=n>=(d=(l+f)/2))?l=d:f=d;while((x=y<<1|m)===(_=(g>=d)<<1|p>=u));return i[_]=o,i[x]=s,t}function i$(t){var e,n,r=t.length,i,o,s=new Array(r),a=new Array(r),l=1/0,c=1/0,f=-1/0,u=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(o=+this._y.call(null,e))||(s[n]=i,a[n]=o,i<l&&(l=i),i>f&&(f=i),o<c&&(c=o),o>u&&(u=o));if(l>f||c>u)return this;for(this.cover(l,c).cover(f,u),n=0;n<r;++n)A0(this,s[n],a[n],t[n]);return this}function o$(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var s=i-n||1,a=this._root,l,c;n>t||t>=i||r>e||e>=o;)switch(c=(e<r)<<1|t<n,l=new Array(4),l[c]=a,a=l,s*=2,c){case 0:i=n+s,o=r+s;break;case 1:n=i-s,o=r+s;break;case 2:i=n+s,r=o-s;break;case 3:n=i-s,r=o-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this}function s$(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function a$(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Qt(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function l$(t,e,n){var r,i=this._x0,o=this._y0,s,a,l,c,f=this._x1,u=this._y1,d=[],p=this._root,g,m;for(p&&d.push(new Qt(p,i,o,f,u)),n==null?n=1/0:(i=t-n,o=e-n,f=t+n,u=e+n,n*=n);g=d.pop();)if(!(!(p=g.node)||(s=g.x0)>f||(a=g.y0)>u||(l=g.x1)<i||(c=g.y1)<o))if(p.length){var y=(s+l)/2,x=(a+c)/2;d.push(new Qt(p[3],y,x,l,c),new Qt(p[2],s,x,y,c),new Qt(p[1],y,a,l,x),new Qt(p[0],s,a,y,x)),(m=(e>=x)<<1|t>=y)&&(g=d[d.length-1],d[d.length-1]=d[d.length-1-m],d[d.length-1-m]=g)}else{var _=t-+this._x.call(null,p.data),b=e-+this._y.call(null,p.data),v=_*_+b*b;if(v<n){var P=Math.sqrt(n=v);i=t-P,o=e-P,f=t+P,u=e+P,r=p.data}}return r}function c$(t){if(isNaN(f=+this._x.call(null,t))||isNaN(u=+this._y.call(null,t)))return this;var e,n=this._root,r,i,o,s=this._x0,a=this._y0,l=this._x1,c=this._y1,f,u,d,p,g,m,y,x;if(!n)return this;if(n.length)for(;;){if((g=f>=(d=(s+l)/2))?s=d:l=d,(m=u>=(p=(a+c)/2))?a=p:c=p,e=n,!(n=n[y=m<<1|g]))return this;if(!n.length)break;(e[y+1&3]||e[y+2&3]||e[y+3&3])&&(r=e,x=y)}for(;n.data!==t;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):e?(o?e[y]=o:delete e[y],(n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[x]=n:this._root=n),this):(this._root=o,this)}function h$(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}function f$(){return this._root}function u$(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function d$(t){var e=[],n,r=this._root,i,o,s,a,l;for(r&&e.push(new Qt(r,this._x0,this._y0,this._x1,this._y1));n=e.pop();)if(!t(r=n.node,o=n.x0,s=n.y0,a=n.x1,l=n.y1)&&r.length){var c=(o+a)/2,f=(s+l)/2;(i=r[3])&&e.push(new Qt(i,c,f,a,l)),(i=r[2])&&e.push(new Qt(i,o,f,c,l)),(i=r[1])&&e.push(new Qt(i,c,s,a,f)),(i=r[0])&&e.push(new Qt(i,o,s,c,f))}return this}function p$(t){var e=[],n=[],r;for(this._root&&e.push(new Qt(this._root,this._x0,this._y0,this._x1,this._y1));r=e.pop();){var i=r.node;if(i.length){var o,s=r.x0,a=r.y0,l=r.x1,c=r.y1,f=(s+l)/2,u=(a+c)/2;(o=i[0])&&e.push(new Qt(o,s,a,f,u)),(o=i[1])&&e.push(new Qt(o,f,a,l,u)),(o=i[2])&&e.push(new Qt(o,s,u,f,c)),(o=i[3])&&e.push(new Qt(o,f,u,l,c))}n.push(r)}for(;r=n.pop();)t(r.node,r.x0,r.y0,r.x1,r.y1);return this}function g$(t){return t[0]}function m$(t){return arguments.length?(this._x=t,this):this._x}function y$(t){return t[1]}function _$(t){return arguments.length?(this._y=t,this):this._y}function Ea(t,e,n){var r=new ka(e==null?g$:e,n==null?y$:n,NaN,NaN,NaN,NaN);return t==null?r:r.addAll(t)}function ka(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function E0(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Kt=Ea.prototype=ka.prototype;Kt.copy=function(){var t=new ka(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,n,r;if(!e)return t;if(!e.length)return t._root=E0(e),t;for(n=[{source:e,target:t._root=new Array(4)}];e=n.pop();)for(var i=0;i<4;++i)(r=e.source[i])&&(r.length?n.push({source:r,target:e.target[i]=new Array(4)}):e.target[i]=E0(r));return t},Kt.add=r$,Kt.addAll=i$,Kt.cover=o$,Kt.data=s$,Kt.extent=a$,Kt.find=l$,Kt.remove=c$,Kt.removeAll=h$,Kt.root=f$,Kt.size=u$,Kt.visit=d$,Kt.visitAfter=p$,Kt.x=m$,Kt.y=_$;function sn(t){return function(){return t}}function Fe(t){return(t()-.5)*1e-6}function x$(t){return t.x+t.vx}function b$(t){return t.y+t.vy}function v$(t){var e,n,r,i=1,o=1;typeof t!="function"&&(t=sn(t==null?1:+t));function s(){for(var c,f=e.length,u,d,p,g,m,y,x=0;x<o;++x)for(u=Ea(e,x$,b$).visitAfter(a),c=0;c<f;++c)d=e[c],m=n[d.index],y=m*m,p=d.x+d.vx,g=d.y+d.vy,u.visit(_);function _(b,v,P,w,$){var M=b.data,I=b.r,S=m+I;if(M){if(M.index>d.index){var C=p-M.x-M.vx,E=g-M.y-M.vy,A=C*C+E*E;A<S*S&&(C===0&&(C=Fe(r),A+=C*C),E===0&&(E=Fe(r),A+=E*E),A=(S-(A=Math.sqrt(A)))/A*i,d.vx+=(C*=A)*(S=(I*=I)/(y+I)),d.vy+=(E*=A)*S,M.vx-=C*(S=1-S),M.vy-=E*S)}return}return v>p+S||w<p-S||P>g+S||$<g-S}}function a(c){if(c.data)return c.r=n[c.data.index];for(var f=c.r=0;f<4;++f)c[f]&&c[f].r>c.r&&(c.r=c[f].r)}function l(){if(e){var c,f=e.length,u;for(n=new Array(f),c=0;c<f;++c)u=e[c],n[u.index]=+t(u,c,e)}}return s.initialize=function(c,f){e=c,r=f,l()},s.iterations=function(c){return arguments.length?(o=+c,s):o},s.strength=function(c){return arguments.length?(i=+c,s):i},s.radius=function(c){return arguments.length?(t=typeof c=="function"?c:sn(+c),l(),s):t},s}function w$(t){return t.index}function k0(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function $$(t){var e=w$,n=u,r,i=sn(30),o,s,a,l,c,f=1;t==null&&(t=[]);function u(y){return 1/Math.min(a[y.source.index],a[y.target.index])}function d(y){for(var x=0,_=t.length;x<f;++x)for(var b=0,v,P,w,$,M,I,S;b<_;++b)v=t[b],P=v.source,w=v.target,$=w.x+w.vx-P.x-P.vx||Fe(c),M=w.y+w.vy-P.y-P.vy||Fe(c),I=Math.sqrt($*$+M*M),I=(I-o[b])/I*y*r[b],$*=I,M*=I,w.vx-=$*(S=l[b]),w.vy-=M*S,P.vx+=$*(S=1-S),P.vy+=M*S}function p(){if(s){var y,x=s.length,_=t.length,b=new Map(s.map((P,w)=>[e(P,w,s),P])),v;for(y=0,a=new Array(x);y<_;++y)v=t[y],v.index=y,typeof v.source!="object"&&(v.source=k0(b,v.source)),typeof v.target!="object"&&(v.target=k0(b,v.target)),a[v.source.index]=(a[v.source.index]||0)+1,a[v.target.index]=(a[v.target.index]||0)+1;for(y=0,l=new Array(_);y<_;++y)v=t[y],l[y]=a[v.source.index]/(a[v.source.index]+a[v.target.index]);r=new Array(_),g(),o=new Array(_),m()}}function g(){if(s)for(var y=0,x=t.length;y<x;++y)r[y]=+n(t[y],y,t)}function m(){if(s)for(var y=0,x=t.length;y<x;++y)o[y]=+i(t[y],y,t)}return d.initialize=function(y,x){s=y,c=x,p()},d.links=function(y){return arguments.length?(t=y,p(),d):t},d.id=function(y){return arguments.length?(e=y,d):e},d.iterations=function(y){return arguments.length?(f=+y,d):f},d.strength=function(y){return arguments.length?(n=typeof y=="function"?y:sn(+y),g(),d):n},d.distance=function(y){return arguments.length?(i=typeof y=="function"?y:sn(+y),m(),d):i},d}const P$=1664525,M$=1013904223,T0=4294967296;function O$(){let t=1;return()=>(t=(P$*t+M$)%T0)/T0}function C$(t){return t.x}function S$(t){return t.y}var I$=10,A$=Math.PI*(3-Math.sqrt(5));function E$(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=new Map,l=$a(u),c=ha("tick","end"),f=O$();t==null&&(t=[]);function u(){d(),c.call("tick",e),n<r&&(l.stop(),c.call("end",e))}function d(m){var y,x=t.length,_;m===void 0&&(m=1);for(var b=0;b<m;++b)for(n+=(o-n)*i,a.forEach(function(v){v(n)}),y=0;y<x;++y)_=t[y],_.fx==null?_.x+=_.vx*=s:(_.x=_.fx,_.vx=0),_.fy==null?_.y+=_.vy*=s:(_.y=_.fy,_.vy=0);return e}function p(){for(var m=0,y=t.length,x;m<y;++m){if(x=t[m],x.index=m,x.fx!=null&&(x.x=x.fx),x.fy!=null&&(x.y=x.fy),isNaN(x.x)||isNaN(x.y)){var _=I$*Math.sqrt(.5+m),b=m*A$;x.x=_*Math.cos(b),x.y=_*Math.sin(b)}(isNaN(x.vx)||isNaN(x.vy))&&(x.vx=x.vy=0)}}function g(m){return m.initialize&&m.initialize(t,f),m}return p(),e={tick:d,restart:function(){return l.restart(u),e},stop:function(){return l.stop(),e},nodes:function(m){return arguments.length?(t=m,p(),a.forEach(g),e):t},alpha:function(m){return arguments.length?(n=+m,e):n},alphaMin:function(m){return arguments.length?(r=+m,e):r},alphaDecay:function(m){return arguments.length?(i=+m,e):+i},alphaTarget:function(m){return arguments.length?(o=+m,e):o},velocityDecay:function(m){return arguments.length?(s=1-m,e):1-s},randomSource:function(m){return arguments.length?(f=m,a.forEach(g),e):f},force:function(m,y){return arguments.length>1?(y==null?a.delete(m):a.set(m,g(y)),e):a.get(m)},find:function(m,y,x){var _=0,b=t.length,v,P,w,$,M;for(x==null?x=1/0:x*=x,_=0;_<b;++_)$=t[_],v=m-$.x,P=y-$.y,w=v*v+P*P,w<x&&(M=$,x=w);return M},on:function(m,y){return arguments.length>1?(c.on(m,y),e):c.on(m)}}}function k$(){var t,e,n,r,i=sn(-30),o,s=1,a=1/0,l=.81;function c(p){var g,m=t.length,y=Ea(t,C$,S$).visitAfter(u);for(r=p,g=0;g<m;++g)e=t[g],y.visit(d)}function f(){if(t){var p,g=t.length,m;for(o=new Array(g),p=0;p<g;++p)m=t[p],o[m.index]=+i(m,p,t)}}function u(p){var g=0,m,y,x=0,_,b,v;if(p.length){for(_=b=v=0;v<4;++v)(m=p[v])&&(y=Math.abs(m.value))&&(g+=m.value,x+=y,_+=y*m.x,b+=y*m.y);p.x=_/x,p.y=b/x}else{m=p,m.x=m.data.x,m.y=m.data.y;do g+=o[m.data.index];while(m=m.next)}p.value=g}function d(p,g,m,y){if(!p.value)return!0;var x=p.x-e.x,_=p.y-e.y,b=y-g,v=x*x+_*_;if(b*b/l<v)return v<a&&(x===0&&(x=Fe(n),v+=x*x),_===0&&(_=Fe(n),v+=_*_),v<s&&(v=Math.sqrt(s*v)),e.vx+=x*p.value*r/v,e.vy+=_*p.value*r/v),!0;if(p.length||v>=a)return;(p.data!==e||p.next)&&(x===0&&(x=Fe(n),v+=x*x),_===0&&(_=Fe(n),v+=_*_),v<s&&(v=Math.sqrt(s*v)));do p.data!==e&&(b=o[p.data.index]*r/v,e.vx+=x*b,e.vy+=_*b);while(p=p.next)}return c.initialize=function(p,g){t=p,n=g,f()},c.strength=function(p){return arguments.length?(i=typeof p=="function"?p:sn(+p),f(),c):i},c.distanceMin=function(p){return arguments.length?(s=p*p,c):Math.sqrt(s)},c.distanceMax=function(p){return arguments.length?(a=p*p,c):Math.sqrt(a)},c.theta=function(p){return arguments.length?(l=p*p,c):Math.sqrt(l)},c}function T$(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function no(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function In(t){return t=no(Math.abs(t)),t?t[1]:NaN}function z$(t,e){return function(n,r){for(var i=n.length,o=[],s=0,a=t[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(n.substring(i-=a,i+a)),!((l+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(e)}}function H$(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var L$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ro(t){if(!(e=L$.exec(t)))throw new Error("invalid format: "+t);var e;return new Ta({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}ro.prototype=Ta.prototype;function Ta(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Ta.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function R$(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var z0;function N$(t,e){var n=no(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(z0=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+no(t,Math.max(0,e+o-1))[0]}function H0(t,e){var n=no(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const L0={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:T$,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>H0(t*100,e),r:H0,s:N$,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function R0(t){return t}var N0=Array.prototype.map,j0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function j$(t){var e=t.grouping===void 0||t.thousands===void 0?R0:z$(N0.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?R0:H$(N0.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(u){u=ro(u);var d=u.fill,p=u.align,g=u.sign,m=u.symbol,y=u.zero,x=u.width,_=u.comma,b=u.precision,v=u.trim,P=u.type;P==="n"?(_=!0,P="g"):L0[P]||(b===void 0&&(b=12),v=!0,P="g"),(y||d==="0"&&p==="=")&&(y=!0,d="0",p="=");var w=m==="$"?n:m==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",$=m==="$"?r:/[%p]/.test(P)?s:"",M=L0[P],I=/[defgprs%]/.test(P);b=b===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function S(C){var E=w,A=$,R,D,k;if(P==="c")A=M(C)+A,C="";else{C=+C;var j=C<0||1/C<0;if(C=isNaN(C)?l:M(Math.abs(C),b),v&&(C=R$(C)),j&&+C==0&&g!=="+"&&(j=!1),E=(j?g==="("?g:a:g==="-"||g==="("?"":g)+E,A=(P==="s"?j0[8+z0/3]:"")+A+(j&&g==="("?")":""),I){for(R=-1,D=C.length;++R<D;)if(k=C.charCodeAt(R),48>k||k>57){A=(k===46?i+C.slice(R+1):C.slice(R))+A,C=C.slice(0,R);break}}}_&&!y&&(C=e(C,1/0));var L=E.length+C.length+A.length,H=L<x?new Array(x-L+1).join(d):"";switch(_&&y&&(C=e(H+C,H.length?x-A.length:1/0),H=""),p){case"<":C=E+C+A+H;break;case"=":C=E+H+C+A;break;case"^":C=H.slice(0,L=H.length>>1)+E+C+A+H.slice(L);break;default:C=H+E+C+A;break}return o(C)}return S.toString=function(){return u+""},S}function f(u,d){var p=c((u=ro(u),u.type="f",u)),g=Math.max(-8,Math.min(8,Math.floor(In(d)/3)))*3,m=Math.pow(10,-g),y=j0[8+g/3];return function(x){return p(m*x)+y}}return{format:c,formatPrefix:f}}var io,D0,B0;D$({thousands:",",grouping:[3],currency:["$",""]});function D$(t){return io=j$(t),D0=io.format,B0=io.formatPrefix,io}function B$(t){return Math.max(0,-In(Math.abs(t)))}function F$(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(In(e)/3)))*3-In(Math.abs(t)))}function W$(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,In(e)-In(t))+1}function X$(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function Y$(){return this.eachAfter(X$)}function V$(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this}function q$(t,e){for(var n=this,r=[n],i,o,s=-1;n=r.pop();)if(t.call(e,n,++s,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function G$(t,e){for(var n=this,r=[n],i=[],o,s,a,l=-1;n=r.pop();)if(i.push(n),o=n.children)for(s=0,a=o.length;s<a;++s)r.push(o[s]);for(;n=i.pop();)t.call(e,n,++l,this);return this}function U$(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r}function Z$(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})}function Q$(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function K$(t){for(var e=this,n=J$(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function J$(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function tP(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function eP(){return Array.from(this)}function nP(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function rP(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*iP(){var t=this,e,n=[t],r,i,o;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function za(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=aP)):e===void 0&&(e=sP);for(var n=new br(t),r,i=[n],o,s,a,l;r=i.pop();)if((s=e(r.data))&&(l=(s=Array.from(s)).length))for(r.children=s,a=l-1;a>=0;--a)i.push(o=s[a]=new br(s[a])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(cP)}function oP(){return za(this).eachBefore(lP)}function sP(t){return t.children}function aP(t){return Array.isArray(t)?t[1]:null}function lP(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function cP(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function br(t){this.data=t,this.depth=this.height=0,this.parent=null}br.prototype=za.prototype={constructor:br,count:Y$,each:V$,eachAfter:G$,eachBefore:q$,find:U$,sum:Z$,sort:Q$,path:K$,ancestors:tP,descendants:eP,leaves:nP,links:rP,copy:oP,[Symbol.iterator]:iP};function hP(t,e){return t.parent===e.parent?1:2}function Ha(t){var e=t.children;return e?e[0]:t.t}function La(t){var e=t.children;return e?e[e.length-1]:t.t}function fP(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function uP(t){for(var e=0,n=0,r=t.children,i=r.length,o;--i>=0;)o=r[i],o.z+=e,o.m+=e,e+=o.s+(n+=o.c)}function dP(t,e,n){return t.a.parent===e.parent?t.a:n}function oo(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}oo.prototype=Object.create(br.prototype);function pP(t){for(var e=new oo(t,0),n,r=[e],i,o,s,a;n=r.pop();)if(o=n._.children)for(n.children=new Array(a=o.length),s=a-1;s>=0;--s)r.push(i=n.children[s]=new oo(o[s],s)),i.parent=n;return(e.parent=new oo(null,0)).children=[e],e}function gP(){var t=hP,e=1,n=1,r=null;function i(c){var f=pP(c);if(f.eachAfter(o),f.parent.m=-f.z,f.eachBefore(s),r)c.eachBefore(l);else{var u=c,d=c,p=c;c.eachBefore(function(_){_.x<u.x&&(u=_),_.x>d.x&&(d=_),_.depth>p.depth&&(p=_)});var g=u===d?1:t(u,d)/2,m=g-u.x,y=e/(d.x+g+m),x=n/(p.depth||1);c.eachBefore(function(_){_.x=(_.x+m)*y,_.y=_.depth*x})}return c}function o(c){var f=c.children,u=c.parent.children,d=c.i?u[c.i-1]:null;if(f){uP(c);var p=(f[0].z+f[f.length-1].z)/2;d?(c.z=d.z+t(c._,d._),c.m=c.z-p):c.z=p}else d&&(c.z=d.z+t(c._,d._));c.parent.A=a(c,d,c.parent.A||u[0])}function s(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function a(c,f,u){if(f){for(var d=c,p=c,g=f,m=d.parent.children[0],y=d.m,x=p.m,_=g.m,b=m.m,v;g=La(g),d=Ha(d),g&&d;)m=Ha(m),p=La(p),p.a=c,v=g.z+_-d.z-y+t(g._,d._),v>0&&(fP(dP(g,c,u),c,v),y+=v,x+=v),_+=g.m,y+=d.m,b+=m.m,x+=p.m;g&&!La(p)&&(p.t=g,p.m+=_-x),d&&!Ha(m)&&(m.t=d,m.m+=y-b,u=c)}return u}function l(c){c.x*=e,c.y=c.depth*n}return i.separation=function(c){return arguments.length?(t=c,i):t},i.size=function(c){return arguments.length?(r=!1,e=+c[0],n=+c[1],i):r?null:[e,n]},i.nodeSize=function(c){return arguments.length?(r=!0,e=+c[0],n=+c[1],i):r?[e,n]:null},i}function mP(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function yP(t){return function(){return t}}function _P(t){return+t}var F0=[0,1];function An(t){return t}function Ra(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:yP(isNaN(e)?NaN:.5)}function xP(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function bP(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=Ra(i,r),o=n(s,o)):(r=Ra(r,i),o=n(o,s)),function(a){return o(r(a))}}function vP(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)i[s]=Ra(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(a){var l=O6(t,a,1,r)-1;return o[l](i[l](a))}}function wP(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function $P(){var t=F0,e=F0,n=ba,r,i,o,s=An,a,l,c;function f(){var d=Math.min(t.length,e.length);return s!==An&&(s=xP(t[0],t[d-1])),a=d>2?vP:bP,l=c=null,u}function u(d){return d==null||isNaN(d=+d)?o:(l||(l=a(t.map(r),e,n)))(r(s(d)))}return u.invert=function(d){return s(i((c||(c=a(e,t.map(r),ye)))(d)))},u.domain=function(d){return arguments.length?(t=Array.from(d,_P),f()):t.slice()},u.range=function(d){return arguments.length?(e=Array.from(d),f()):e.slice()},u.rangeRound=function(d){return e=Array.from(d),n=L9,f()},u.clamp=function(d){return arguments.length?(s=d?!0:An,f()):s!==An},u.interpolate=function(d){return arguments.length?(n=d,f()):n},u.unknown=function(d){return arguments.length?(o=d,u):o},function(d,p){return r=d,i=p,f()}}function PP(){return $P()(An,An)}function MP(t,e,n,r){var i=E6(t,e,n),o;switch(r=ro(r==null?",f":r),r.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=F$(i,s))&&(r.precision=o),B0(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=W$(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=B$(i))&&(r.precision=o-(r.type==="%")*2);break}}return D0(r)}function OP(t){var e=t.domain;return t.ticks=function(n){var r=e();return A6(r[0],r[r.length-1],n==null?10:n)},t.tickFormat=function(n,r){var i=e();return MP(i[0],i[i.length-1],n==null?10:n,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,s=r[i],a=r[o],l,c,f=10;for(a<s&&(c=s,s=a,a=c,c=i,i=o,o=c);f-- >0;){if(c=ca(s,a,n),c===l)return r[i]=s,r[o]=a,e(r);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else if(c<0)s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c;else break;l=c}return t},t}function Na(){var t=PP();return t.copy=function(){return wP(t,Na())},mP.apply(t,arguments),OP(t)}function En(t){return function(){return t}}function CP(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new e$(e)}function SP(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function W0(t){this._context=t}W0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function X0(t){return new W0(t)}function IP(t){return t[0]}function AP(t){return t[1]}function EP(t,e){var n=En(!0),r=null,i=X0,o=null,s=CP(a);t=typeof t=="function"?t:t===void 0?IP:En(t),e=typeof e=="function"?e:e===void 0?AP:En(e);function a(l){var c,f=(l=SP(l)).length,u,d=!1,p;for(r==null&&(o=i(p=s())),c=0;c<=f;++c)!(c<f&&n(u=l[c],c,l))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+t(u,c,l),+e(u,c,l));if(p)return o=null,p+""||null}return a.x=function(l){return arguments.length?(t=typeof l=="function"?l:En(+l),a):t},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:En(+l),a):e},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:En(!!l),a):n},a.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),a):i},a.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),a):r},a}function vr(t,e,n){this.k=t,this.x=e,this.y=n}vr.prototype={constructor:vr,scale:function(t){return t===1?this:new vr(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new vr(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},vr.prototype;var kP=Object.defineProperty,TP=Object.defineProperties,zP=Object.getOwnPropertyDescriptors,Y0=Object.getOwnPropertySymbols,HP=Object.prototype.hasOwnProperty,LP=Object.prototype.propertyIsEnumerable,V0=(t,e,n)=>e in t?kP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,RP=(t,e)=>{for(var n in e||(e={}))HP.call(e,n)&&V0(t,n,e[n]);if(Y0)for(var n of Y0(e))LP.call(e,n)&&V0(t,n,e[n]);return t},NP=(t,e)=>TP(t,zP(e));const q0=t=>{const[{datum:e,data:n,indexes:r,width:i=280,height:o=120,iconSize:s=32,gap:a=12,progressHeight:l=8,borderRadius:c=12,positionH:f="normal",themeColors:u,valueFormatter:d=D=>`${D}%`},p]=At(t,["width","height","iconSize","gap","progressHeight","borderRadius"]),g=e.value,m=g!=null?g:0,y=Math.max(...n.items.map(D=>{var k;return(k=D.value)!=null?k:0}),100),x=i-2*a,b=Na().domain([0,y]).range([0,x])(m),v=`${u.colorPrimary}-progress`,P=`${u.colorPrimaryBg}-progress-bg`,w=G(h(ft,{indexes:r})),$=a,M=f==="flipped"?i-a-s:a,I=$,S=f==="flipped"?a:s+2*a,C=i-s-3*a,E=I,A=o-a-l,R=g!==void 0;return O(F,NP(RP({},p),{children:[O(yt,{children:[O("linearGradient",{id:v,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[h("stop",{offset:"0%",stopColor:u.colorPrimary}),h("stop",{offset:"100%",stopColor:tt.mix(u.colorPrimary,"#fff",20).toHexString()})]}),O("linearGradient",{id:P,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[h("stop",{offset:"0%",stopColor:u.colorPrimaryBg}),h("stop",{offset:"100%",stopColor:u.colorBg})]})]}),h(dt,{x:0,y:0,width:i,height:o,fill:u.colorBgElevated,stroke:u.colorPrimaryBg,strokeWidth:1,rx:c,ry:c,"data-element-type":"shape"}),h(Gt,{indexes:r,x:M,y:I,size:s,fill:u.colorPrimary}),h(ft,{indexes:r,x:S,y:E,width:C,alignHorizontal:f==="flipped"?"right":"left",alignVertical:"top",fontSize:16,fontWeight:"medium",fill:u.colorText,children:e.label}),R&&h(Fn,{indexes:r,x:S,y:E+w.height,width:C,alignHorizontal:f==="flipped"?"right":"left",alignVertical:"top",lineHeight:1,fontSize:24,fontWeight:"bold",fill:u.colorPrimary,value:m,formatter:d}),h(It,{indexes:r,x:S,y:E+w.height+(R?27:4),width:C,alignHorizontal:f==="flipped"?"right":"left",alignVertical:"top",fontSize:11,fill:u.colorTextSecondary,lineNumber:R?2:3,wordWrap:!0,children:e.desc}),h(dt,{x:a,y:A,width:x,height:l,fill:`url(#${P})`,rx:l/2,ry:l/2,"data-element-type":"shape"}),h(dt,{x:a,y:A,width:b,height:l,fill:`url(#${v})`,rx:l/2,ry:l/2,"data-element-type":"shape"})]}))};Et("progress-card",{component:q0,composites:["icon","label","value","desc"]});var jP=Object.defineProperty,DP=Object.defineProperties,BP=Object.getOwnPropertyDescriptors,G0=Object.getOwnPropertySymbols,FP=Object.prototype.hasOwnProperty,WP=Object.prototype.propertyIsEnumerable,U0=(t,e,n)=>e in t?jP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,XP=(t,e)=>{for(var n in e||(e={}))FP.call(e,n)&&U0(t,n,e[n]);if(G0)for(var n of G0(e))WP.call(e,n)&&U0(t,n,e[n]);return t},YP=(t,e)=>DP(t,BP(e));const Z0=t=>{const[{datum:e,indexes:n,width:r=280,height:i=120,iconSize:o=30,circleRadius:s=80,positionH:a="normal",positionV:l="normal",themeColors:c},f]=At(t,["width","height","iconSize","circleRadius"]),u=4*s/(3*Math.PI),d=2,p=4,g=28,m=20,y=m+20,x=m,_=8,b=35,v=40,P=30,w=String(n[0]+1).padStart(2,"0"),$=a==="flipped",M=a==="center",I=l==="flipped",S=()=>{if($)return{diagonalStartX:r-p,diagonalStartY:I?i-b:b,diagonalEndX:r-v,diagonalEndY:I?i-p:p,topLineStartX:r-v,topLineEndX:u,topLineY:I?i-p:p};if(M){const L=r-s-v,H=(r-L)/2;return{diagonalStartX:H+p,diagonalStartY:I?i-b:b,diagonalEndX:H+v,diagonalEndY:I?i-p:p,topLineStartX:H+v,topLineEndX:H+L-u,topLineY:I?i-p:p}}else return{diagonalStartX:p,diagonalStartY:I?i-b:b,diagonalEndX:v,diagonalEndY:I?i-p:p,topLineStartX:v,topLineEndX:r-u,topLineY:I?i-p:p}},C=()=>{if($){const L=s+10,H=r-L-v;return{valueX:r-P,contentX:L,contentWidth:H,circleX:0,circleY:I?0:i,iconX:u-o/2}}else if(M){const L=r-s-v,H=(r-L)/2;return{valueX:H,contentX:H+v,contentWidth:L-s-10,circleX:H+L,circleY:I?0:i,iconX:H+L-u-o/2}}else return{valueX:0,contentX:v,contentWidth:r-v-s-10,circleX:r,circleY:I?0:i,iconX:r-u-o/2}},E=S(),A=C(),R=I?u-o/2:i-u-o/2,D=G(h(ft,{indexes:n,width:A.contentWidth,children:e.label})),k=x+D.height+_,j=()=>{const{circleX:L,circleY:H}=A;return $?I?`M ${L} ${H} L ${L} ${H+s} A ${s} ${s} 0 0 0 ${L+s} ${H} Z`:`M ${L} ${H} L ${L} ${H-s} A ${s} ${s} 0 0 1 ${L+s} ${H} Z`:I?`M ${L} ${H} L ${L} ${H+s} A ${s} ${s} 0 0 1 ${L-s} ${H} Z`:`M ${L} ${H} L ${L} ${H-s} A ${s} ${s} 0 0 0 ${L-s} ${H} Z`};return O(F,YP(XP({},f),{width:r,height:i,children:[O(jt,{children:[h(ot,{d:`M ${E.diagonalStartX} ${E.diagonalStartY} L ${E.diagonalEndX} ${E.diagonalEndY}`,stroke:c.colorPrimary,strokeWidth:d,fill:"none"}),h(ot,{d:`M ${E.topLineStartX} ${E.topLineY} L ${E.topLineEndX} ${E.topLineY}`,stroke:c.colorPrimary,strokeWidth:d,fill:"none"}),h(_t,{x:E.diagonalStartX-p,y:E.diagonalStartY-p,width:p*2,height:p*2,fill:c.colorPrimary}),h(_t,{x:E.topLineEndX-p,y:E.topLineY-p,width:p*2,height:p*2,fill:c.colorPrimary})]}),O(F,{children:[h(kt,{x:A.valueX,y,fontSize:g,fontWeight:"bold",fill:c.colorPrimary,width:40,children:w}),h(ot,{d:j(),fill:c.colorPrimary,"data-element-type":"shape"}),e.icon&&h(Gt,{indexes:n,x:A.iconX,y:R,size:o,fill:c.colorWhite}),e.label&&h(ft,{indexes:n,x:A.contentX,y:x,width:A.contentWidth,fontWeight:"bold",fill:c.colorText,children:e.label}),e.desc&&h(It,{indexes:n,x:A.contentX,y:k,width:A.contentWidth,fill:c.colorTextSecondary,children:e.desc})]})]}))};Et("quarter-circular",{component:Z0,composites:["icon","label","desc"]});var VP=Object.defineProperty,qP=Object.defineProperties,GP=Object.getOwnPropertyDescriptors,Q0=Object.getOwnPropertySymbols,UP=Object.prototype.hasOwnProperty,ZP=Object.prototype.propertyIsEnumerable,K0=(t,e,n)=>e in t?VP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,QP=(t,e)=>{for(var n in e||(e={}))UP.call(e,n)&&K0(t,n,e[n]);if(Q0)for(var n of Q0(e))ZP.call(e,n)&&K0(t,n,e[n]);return t},KP=(t,e)=>qP(t,GP(e));const J0=t=>{const[{datum:e,indexes:n,width:r=150,height:i=150,iconSize:o=30,padding:s=20,borderRadius:a=16,positionH:l="center",positionV:c="middle",themeColors:f},u]=At(t,["width","height","iconSize","padding","borderRadius"]),d=r-s*2,p=s,g=s,m=l==="flipped"?r-s-o:l==="center"?(r-o)/2:p,y=g,x=y+o+8,_=G(h(ft,{indexes:n,width:d,children:e.label})),b=l==="flipped"?r-s-d:l==="center"?s:p,v=x+_.height+4,P=b,w=a;let $="";return l==="center"&&c==="middle"?$=`
|
|
31
|
+
M ${w} 0
|
|
32
|
+
L ${r-w} 0
|
|
33
|
+
Q ${r} 0 ${r} ${w}
|
|
34
|
+
L ${r} ${i-w}
|
|
35
|
+
Q ${r} ${i} ${r-w} ${i}
|
|
36
|
+
L ${w} ${i}
|
|
37
|
+
Q 0 ${i} 0 ${i-w}
|
|
38
|
+
L 0 ${w}
|
|
39
|
+
Q 0 0 ${w} 0
|
|
40
40
|
Z
|
|
41
41
|
`:l==="flipped"&&c==="flipped"?$=`
|
|
42
|
-
M ${
|
|
43
|
-
L ${r-
|
|
44
|
-
Q ${r} 0 ${r} ${
|
|
45
|
-
L ${r} ${i-
|
|
46
|
-
Q ${r} ${i} ${r-
|
|
47
|
-
L ${
|
|
48
|
-
Q 0 ${i} 0 ${i-
|
|
42
|
+
M ${w} 0
|
|
43
|
+
L ${r-w} 0
|
|
44
|
+
Q ${r} 0 ${r} ${w}
|
|
45
|
+
L ${r} ${i-w}
|
|
46
|
+
Q ${r} ${i} ${r-w} ${i}
|
|
47
|
+
L ${w} ${i}
|
|
48
|
+
Q 0 ${i} 0 ${i-w}
|
|
49
49
|
L 0 0
|
|
50
|
-
L ${
|
|
50
|
+
L ${w} 0
|
|
51
51
|
Z
|
|
52
52
|
`:l==="normal"&&c==="flipped"?$=`
|
|
53
53
|
M 0 0
|
|
54
54
|
L ${r} 0
|
|
55
|
-
L ${r} ${i-
|
|
56
|
-
Q ${r} ${i} ${r-
|
|
57
|
-
L ${
|
|
58
|
-
Q 0 ${i} 0 ${i-
|
|
59
|
-
L 0 ${
|
|
60
|
-
Q 0 0 ${
|
|
55
|
+
L ${r} ${i-w}
|
|
56
|
+
Q ${r} ${i} ${r-w} ${i}
|
|
57
|
+
L ${w} ${i}
|
|
58
|
+
Q 0 ${i} 0 ${i-w}
|
|
59
|
+
L 0 ${w}
|
|
60
|
+
Q 0 0 ${w} 0
|
|
61
61
|
Z
|
|
62
62
|
`:l==="flipped"?$=`
|
|
63
|
-
M ${
|
|
64
|
-
L ${r-
|
|
65
|
-
Q ${r} 0 ${r} ${
|
|
66
|
-
L ${r} ${i-
|
|
67
|
-
Q ${r} ${i} ${r-
|
|
63
|
+
M ${w} 0
|
|
64
|
+
L ${r-w} 0
|
|
65
|
+
Q ${r} 0 ${r} ${w}
|
|
66
|
+
L ${r} ${i-w}
|
|
67
|
+
Q ${r} ${i} ${r-w} ${i}
|
|
68
68
|
L 0 ${i}
|
|
69
|
-
L 0 ${
|
|
70
|
-
Q 0 0 ${
|
|
69
|
+
L 0 ${w}
|
|
70
|
+
Q 0 0 ${w} 0
|
|
71
71
|
Z
|
|
72
72
|
`:$=`
|
|
73
|
-
M ${
|
|
74
|
-
L ${r-
|
|
75
|
-
Q ${r} 0 ${r} ${
|
|
73
|
+
M ${w} 0
|
|
74
|
+
L ${r-w} 0
|
|
75
|
+
Q ${r} 0 ${r} ${w}
|
|
76
76
|
L ${r} ${i}
|
|
77
|
-
L ${
|
|
78
|
-
Q 0 ${i} 0 ${i-
|
|
79
|
-
L 0 ${
|
|
80
|
-
Q 0 0 ${
|
|
77
|
+
L ${w} ${i}
|
|
78
|
+
Q 0 ${i} 0 ${i-w}
|
|
79
|
+
L 0 ${w}
|
|
80
|
+
Q 0 0 ${w} 0
|
|
81
81
|
Z
|
|
82
|
-
`,O(B,B7(F7({},d),{children:[h(ot,{d:$,x:0,y:0,width:r,height:i,fill:f.colorPrimary,"data-element-type":"shape"}),h(qt,{indexes:n,x:m,y,size:o,fill:f.colorBg}),h(ft,{indexes:n,x:b,y:_,width:u,fontSize:14,fontWeight:"bold",fill:f.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:e.label}),e.desc&&h(It,{indexes:n,x:P,y:w,width:u,fontSize:11,wordWrap:!0,fill:f.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:e.desc})]}))};kt("quarter-simple-card",{component:g0,composites:["icon","label","desc"]});var W7=Object.defineProperty,X7=Object.defineProperties,Y7=Object.getOwnPropertyDescriptors,m0=Object.getOwnPropertySymbols,V7=Object.prototype.hasOwnProperty,q7=Object.prototype.propertyIsEnumerable,y0=(t,e,n)=>e in t?W7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,G7=(t,e)=>{for(var n in e||(e={}))V7.call(e,n)&&y0(t,n,e[n]);if(m0)for(var n of m0(e))q7.call(e,n)&&y0(t,n,e[n]);return t},U7=(t,e)=>X7(t,Y7(e));const x0=t=>{const[{datum:e,indexes:n,width:r=240,height:i=140,iconSize:o=28,gap:s=12,ribbonHeight:a=32,themeColors:l},c]=At(t,["width","height","iconSize","gap","ribbonHeight"]),f=`${l.colorPrimary}-ribbon`;return O(B,U7(G7({},c),{children:[h(yt,{children:O("linearGradient",{id:f,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[h("stop",{offset:"0%",stopColor:l.colorPrimary}),h("stop",{offset:"100%",stopColor:Q(l.colorPrimary).darken(15).toHexString()})]})}),O(Nt,{children:[h(dt,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorPrimaryBg,strokeWidth:1,rx:8,ry:8}),h(dt,{x:0,y:0,width:r,height:a,fill:`url(#${f})`,rx:8,ry:8}),h(dt,{x:0,y:8,width:r,height:a-8,fill:`url(#${f})`}),h(ot,{x:r-20,y:a,width:20,height:8,fill:Q(l.colorPrimary).darken(25).toHexString(),d:"M0,0 L20,0 L15,8 L5,8 Z"})]}),h(qt,{indexes:n,x:s,y:a+s,size:o,fill:l.colorPrimary}),h(ft,{indexes:n,x:o+2*s,y:a+s,width:r-o-3*s,height:o,alignHorizontal:"left",alignVertical:"middle",lineHeight:1,fontWeight:"bold",fill:l.colorText,children:e.label}),h(It,{indexes:n,x:s,y:a+o+s+5,width:r-2*s,alignHorizontal:"left",fill:l.colorTextSecondary,lineNumber:3,wordWrap:!0,children:e.desc}),h(qt,{indexes:n,x:r-s-8,y:s/2,size:16,fill:l.colorWhite})]}))};kt("ribbon-card",{component:x0,composites:["icon","label","desc"]});var Z7=Object.defineProperty,Q7=Object.defineProperties,K7=Object.getOwnPropertyDescriptors,_0=Object.getOwnPropertySymbols,J7=Object.prototype.hasOwnProperty,t$=Object.prototype.propertyIsEnumerable,b0=(t,e,n)=>e in t?Z7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,e$=(t,e)=>{for(var n in e||(e={}))J7.call(e,n)&&b0(t,n,e[n]);if(_0)for(var n of _0(e))t$.call(e,n)&&b0(t,n,e[n]);return t},n$=(t,e)=>Q7(t,K7(e));const w0=t=>{const[{indexes:e,datum:n,themeColors:r,width:i=300,height:o=40,padding:s=4,positionH:a="normal"},l]=At(t,["width","height","borderRadius","padding"]),c=o/2,f=c,d=s,u=i-c*2,p=o-s*2;return O(B,n$(e$({},l),{children:[h(dt,{"data-element-type":"shape",width:i,height:o,rx:c,ry:c,fill:r.colorPrimaryBg,stroke:r.colorPrimary,strokeWidth:1,opacity:.8}),h(ft,{indexes:e,x:f,y:d,width:u,height:p,alignHorizontal:a==="flipped"?"right":a==="center"?"center":"left",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:r.colorText,children:n.label})]}))};kt("rounded-rect-node",{component:w0,composites:["label"]});var r$=Object.defineProperty,i$=Object.defineProperties,o$=Object.getOwnPropertyDescriptors,v0=Object.getOwnPropertySymbols,s$=Object.prototype.hasOwnProperty,a$=Object.prototype.propertyIsEnumerable,$0=(t,e,n)=>e in t?r$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,l$=(t,e)=>{for(var n in e||(e={}))s$.call(e,n)&&$0(t,n,e[n]);if(v0)for(var n of v0(e))a$.call(e,n)&&$0(t,n,e[n]);return t},c$=(t,e)=>i$(t,o$(e));const P0=t=>{const[{indexes:e,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=At(t,["width"]),a=o!=="flipped",l=a?"bottom":"top",c=h(ft,{indexes:e,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),f=h(It,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),d=30,u=10,p=G(c),g=G(f),m=p.height+g.height,y=m+u+d+u+m;return h(B,c$(l$({width:r,height:y},s),{children:O(rt,{flexDirection:"column",alignItems:"center",children:[a?O(gt,{children:[f,c,h(Tt,{height:u})]}):h(gt,{children:h(Tt,{height:m+u})}),O(an,{horizontal:"center",vertical:"middle",children:[h(h$,{width:r,height:d,fill:i.colorPrimary}),h(Et,{width:r,height:d,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),a?h(gt,{children:h(Tt,{height:m+u})}):O(gt,{children:[h(Tt,{height:u}),c,f]})]})}))},h$=t=>{const{x:e=0,y:n=0,width:r=100,height:i=40,fill:o="#1890FF",size:s=10}=t;return h(_e,{width:r,height:i,points:[{x:e,y:n},{x:e+r-s,y:n},{x:e+r,y:n+i/2},{x:e+r-s,y:n+i},{x:e,y:n+i},{x:e+s,y:n+i/2}],fill:o,"data-element-type":"shape"})};kt("simple-horizontal-arrow",{component:P0,composites:["label","desc","time"]});var f$=Object.defineProperty,u$=Object.defineProperties,d$=Object.getOwnPropertyDescriptors,M0=Object.getOwnPropertySymbols,p$=Object.prototype.hasOwnProperty,g$=Object.prototype.propertyIsEnumerable,O0=(t,e,n)=>e in t?f$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,m$=(t,e)=>{for(var n in e||(e={}))p$.call(e,n)&&O0(t,n,e[n]);if(M0)for(var n of M0(e))g$.call(e,n)&&O0(t,n,e[n]);return t},y$=(t,e)=>u$(t,d$(e));const C0=t=>{const[{indexes:e,datum:n,width:r=180,illusSize:i=r,gap:o=8,themeColors:s,usePaletteColor:a=!1},l]=At(t,["width","illusSize","gap","usePaletteColor"]),{label:c,desc:f}=n,d=a?s.colorPrimary:s.colorText,u=h(ft,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"middle",fill:d,children:c}),p=G(u);return O(rt,y$(m$({},l),{width:r,height:i+o+p.height+o+48,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o,children:[h(_l,{indexes:e,width:i,height:i}),u,h(It,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"top",fill:s.colorTextSecondary,lineNumber:3,children:f})]}))};kt("simple-illus",{component:C0,composites:["illus","label","desc"]});var x$=Object.defineProperty,_$=Object.defineProperties,b$=Object.getOwnPropertyDescriptors,S0=Object.getOwnPropertySymbols,w$=Object.prototype.hasOwnProperty,v$=Object.prototype.propertyIsEnumerable,I0=(t,e,n)=>e in t?x$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$a=(t,e)=>{for(var n in e||(e={}))w$.call(e,n)&&I0(t,n,e[n]);if(S0)for(var n of S0(e))v$.call(e,n)&&I0(t,n,e[n]);return t},Pa=(t,e)=>_$(t,b$(e));const A0=t=>{const[{indexes:e,datum:n,width:r=200,height:i,gap:o=4,showIcon:s=!0,iconSize:a=30,iconType:l="default",positionH:c="normal",positionV:f="normal",usePaletteColor:d=!1,themeColors:u},p]=At(t,["width","height","gap","showIcon","iconSize","iconType","usePaletteColor"]),{label:g,desc:m,icon:y}=n,x=(E=>E==="normal"?"left":E==="flipped"?"right":"center")(c),b=d?u.colorPrimary:u.colorText,w=14,P=1.4,$=G(h(ft,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"middle",fill:b,children:g})),M=s?l==="circle"?h(We,{indexes:e,size:a,fill:u.colorPrimary,colorBg:u.colorBg}):h(qt,{indexes:e,size:a,fill:u.colorTextSecondary}):null;if(!s||!y){const E=i?Math.max(0,i-$.height-o):void 0,D=E?E<=60?1:Math.floor(E/(P*w)):2,L=i?f==="middle"?(i-$.height-(E||0)-o)/2:f==="flipped"?i-$.height-(E||0)-o:0:0;return O(B,Pa($a({},p),{children:[h(ft,{indexes:e,width:r,y:L,alignHorizontal:x,alignVertical:"middle",fill:b,children:g}),h(It,{indexes:e,width:r,height:E,y:L+$.height+o,alignHorizontal:x,alignVertical:z(),lineNumber:D,fill:u.colorTextSecondary,children:m})]}))}if(c==="center"){const E=s&&y?a:0,D=i?Math.max(0,i-$.height-E-o*2):void 0,L=D?D<=60?1:Math.floor(D/(P*w)):2,T=$.height+(D||0)+o,N=i?f==="middle"?(i-T-E-o)/2:f==="flipped"?i-T-E-o:0:0;return h(rt,Pa($a({},p),{flexDirection:"column",gap:o,alignItems:"center",children:f==="flipped"?O(gt,{children:[O(B,{children:[h(ft,{indexes:e,width:r,y:N,alignHorizontal:"center",alignVertical:"middle",fill:b,children:g}),h(It,{indexes:e,width:r,height:D,y:N+$.height+o,alignHorizontal:"center",alignVertical:"bottom",lineNumber:L,fill:u.colorTextSecondary,children:m})]}),M]}):O(gt,{children:[M,O(B,{children:[h(ft,{indexes:e,width:r,y:N,alignHorizontal:"center",alignVertical:"middle",fill:b,children:g}),h(It,{indexes:e,width:r,height:D,y:N+$.height+o,alignHorizontal:"center",alignVertical:"top",lineNumber:L,fill:u.colorTextSecondary,children:m})]})]})}))}const I=G(M),S=Math.max(r-I.width-o,0),C=i?Math.max(0,i-$.height-o):void 0,k=C?C<=60?1:Math.floor(C/(P*w)):2,A=i?f==="middle"?(i-$.height-(C||0)-o)/2:f==="flipped"?i-$.height-(C||0)-o:0:0;return h(rt,Pa($a({},p),{flexDirection:"row",gap:o,alignItems:j(f),children:c==="flipped"?O(gt,{children:[O(B,{children:[h(ft,{indexes:e,width:S,y:A,alignHorizontal:"right",alignVertical:"middle",fill:b,children:g}),h(It,{indexes:e,width:S,height:C,y:A+$.height+o,alignHorizontal:"right",alignVertical:z(),lineNumber:k,fill:u.colorTextSecondary,children:m})]}),M]}):O(gt,{children:[M,O(B,{children:[h(ft,{indexes:e,width:S,y:A,alignHorizontal:"left",alignVertical:"middle",fill:b,children:g}),h(It,{indexes:e,width:S,height:C,y:A+$.height+o,alignHorizontal:"left",alignVertical:z(),lineNumber:k,fill:u.colorTextSecondary,children:m})]})]})}));function z(E,D){return"top"}function j(E){return E==="normal"?"flex-start":E==="flipped"?"flex-end":"center"}};kt("simple",{component:A0,composites:["icon","label","desc"]});var $$=Object.defineProperty,P$=Object.defineProperties,M$=Object.getOwnPropertyDescriptors,k0=Object.getOwnPropertySymbols,O$=Object.prototype.hasOwnProperty,C$=Object.prototype.propertyIsEnumerable,E0=(t,e,n)=>e in t?$$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,S$=(t,e)=>{for(var n in e||(e={}))O$.call(e,n)&&E0(t,n,e[n]);if(k0)for(var n of k0(e))C$.call(e,n)&&E0(t,n,e[n]);return t},I$=(t,e)=>P$(t,M$(e));const z0=t=>{const[{indexes:e,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=At(t,["height"]),a=o==="normal"?"right":"left",l=h(ft,{indexes:e,width:120,fill:i.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=h(It,{indexes:e,width:120,fill:i.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),f=o!=="flipped",d=15,u=30,p=120,g=p+d+u+d+p;return h(B,I$(S$({width:g,height:r},s),{children:O(rt,{flexDirection:"row",alignItems:"center",children:[f?O(gt,{children:[O(rt,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),h(Tt,{width:d})]}):h(gt,{children:h(Tt,{width:p+d})}),O(an,{horizontal:"center",vertical:"middle",children:[h(A$,{width:u,height:r,fill:i.colorPrimary}),h(Et,{width:u,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),f?h(gt,{children:h(Tt,{width:p+d})}):O(gt,{children:[h(Tt,{width:d}),O(rt,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},A$=t=>{const{x:e=0,y:n=0,width:r=30,height:i=100,fill:o="#1890FF",size:s=10}=t;return h(_e,{width:r,height:i,points:[{x:e,y:n},{x:e+r/2,y:n+s},{x:e+r,y:n},{x:e+r,y:n+i-s},{x:e+r/2,y:n+i},{x:e,y:n+i-s}],fill:o,"data-element-type":"shape"})};kt("simple-vertical-arrow",{component:z0,composites:["label","desc"]});var k$=Object.defineProperty,E$=Object.defineProperties,z$=Object.getOwnPropertyDescriptors,T0=Object.getOwnPropertySymbols,T$=Object.prototype.hasOwnProperty,H$=Object.prototype.propertyIsEnumerable,H0=(t,e,n)=>e in t?k$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,L$=(t,e)=>{for(var n in e||(e={}))T$.call(e,n)&&H0(t,n,e[n]);if(T0)for(var n of T0(e))H$.call(e,n)&&H0(t,n,e[n]);return t},R$=(t,e)=>E$(t,z$(e));const Ma=80,Oa=3,L0=t=>{const[{datum:e,indexes:n,width:r=200,gap:i=4,positionH:o="center",themeColors:s},a]=At(t,["width","height","gap"]),l=G(h(ft,{indexes:n,fontSize:18,fontWeight:"bold",width:r,children:e.label})),c=e.desc?G(h(It,{indexes:n,width:r,wordWrap:!0,children:e.desc})):{height:0},f=l.height+i+Oa+(e.desc?i*2+c.height:0),d=0,u=0,p=o==="center"?"center":o==="flipped"?"right":"left",g=o==="center"?(r-Ma)/2:o==="flipped"?r-Ma:0,m=u+l.height+i,y=0,_=m+Oa+i*2;return O(B,R$(L$({width:r,height:f},a),{children:[e.label&&h(ft,{indexes:n,x:d,y:u,width:r,alignHorizontal:p,fill:s.colorPrimary,fontSize:18,fontWeight:"bold",children:e.label}),e.label&&h(dt,{x:g,y:m,width:Ma,height:Oa,fill:s.colorPrimary,"data-element-type":"shape"}),e.desc&&h(It,{indexes:n,width:r,x:y,y:_,alignHorizontal:p,wordWrap:!0,fill:s.colorText,children:e.desc})]}))};kt("underline-text",{component:L0,composites:["label","desc"]});var N$=Object.defineProperty,D$=Object.defineProperties,j$=Object.getOwnPropertyDescriptors,R0=Object.getOwnPropertySymbols,F$=Object.prototype.hasOwnProperty,B$=Object.prototype.propertyIsEnumerable,N0=(t,e,n)=>e in t?N$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,W$=(t,e)=>{for(var n in e||(e={}))F$.call(e,n)&&N0(t,n,e[n]);if(R0)for(var n of R0(e))B$.call(e,n)&&N0(t,n,e[n]);return t},X$=(t,e)=>D$(t,j$(e));const D0=t=>{const[{indexes:e,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=At(t,["height"]),l=o!=="flipped"?"right":"left",c=h(ft,{indexes:e,width:120,fill:i.colorText,alignHorizontal:l,alignVertical:"middle",fontSize:14,children:n.label}),f=h(It,{indexes:e,width:120,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:"top",children:n.desc}),d=h(We,{indexes:e,fill:i.colorPrimary,colorBg:i.colorWhite}),u=h(V$,{width:30,height:8,fill:i.colorPrimary,positionH:o}),p=o!=="flipped",g=5,m=25,y=30,_=G(c),x=G(d),b=G(u),w=_.width+g+b.width-x.width-m,P=Math.max(_.width+g+b.width,m+x.width)*2+y;return h(B,X$(W$({width:P,height:r},s),{children:O(rt,{flexDirection:"row",alignItems:"center",children:[p?O(gt,{children:[O(rt,{flexDirection:"column",alignItems:"flex-end",children:[c,f]}),h(Tt,{width:g}),u]}):O(gt,{children:[h(Tt,{width:w}),d,h(Tt,{width:m})]}),O(an,{horizontal:"center",vertical:"middle",children:[h(Y$,{width:y,height:r,fill:i.colorPrimary}),h(Et,{width:y,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),p?O(gt,{children:[h(Tt,{width:m}),d]}):O(gt,{children:[u,h(Tt,{width:g}),O(rt,{flexDirection:"column",alignItems:"flex-start",children:[c,f]})]})]})}))},Y$=t=>{const{x:e=0,y:n=0,width:r=30,height:i=100,fill:o="#1890FF",size:s=10}=t;return h(_e,{width:r,height:i,points:[{x:e,y:n},{x:e+r/2,y:n+s},{x:e+r,y:n},{x:e+r,y:n+i-s},{x:e+r/2,y:n+i},{x:e,y:n+i-s}],fill:o,"data-element-type":"shape"})},V$=t=>{const{x:e=0,y:n=0,width:r=50,height:i=10,fill:o,positionH:s="normal"}=t,a=i/2,l=r-a,c=2,f=a;return O(B,{x:e,y:n,width:r,height:i,children:[h(xt,{width:i,height:i,fill:o,x:s==="normal"?0:l-a,"data-element-type":"shape"}),h(ot,{d:s==="normal"?`M${a},${f} L${a+l},${f}`:`M0,${f} L${l-a},${f}`,strokeWidth:c,stroke:o,"data-element-type":"shape"})]})};kt("vertical-icon-arrow",{component:D0,composites:["icon","label","desc"]});const Ca=new Map;function vt(t,e){Ca.set(t,e)}function j0(t){return Ca.get(t)}function q$(){return Array.from(Ca.keys())}const F0=t=>{const{Title:e,Item:n,data:r,columnGap:i=60,columnWidth:o=50,padding:s=20,showValue:a=!0,options:l,valueFormatter:c=T=>T.toString()}=t,{title:f,desc:d,items:u=[]}=r,p=e?h(e,{title:f,desc:d}):null;if(u.length===0)return h(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:p});const g=de(l.themeConfig),y=[...u.map(T=>{var N;return(N=T.value)!=null?N:0}),0].sort((T,N)=>T-N),_=y[0]<0,x=u.length*o+(u.length-1)*i,b=300,[w,P,v,$]=xs(s),M=a?24:0,I=10,S=_&&a?M+I:I,C=x+$+P,k=b+w+v+S,A=va().domain([y[0],y[y.length-1]]).range([b,0]),z=A(0),j=[],E=[],D=[],L=[];return u.forEach((T,N)=>{var F;const X=[N],H=(F=T.value)!=null?F:0,tt=$+N*(o+i),K=H>=0?A(H):z,nt=Math.abs(A(H)-z),V=wt(l,[N])||g.colorPrimary,lt=`${V}-column-positive-${N}`,q=`${V}-column-negative-${N}`;L.push(O("linearGradient",{id:H>=0?lt:q,x1:"0%",y1:H>=0?"0%":"100%",x2:"0%",y2:H>=0?"100%":"0%",children:[h("stop",{offset:"0%",stopColor:V}),h("stop",{offset:"100%",stopColor:Q.mix(V,"#fff",40).toHexString()})]})),j.push(h(dt,{x:tt,y:w+K,width:o,height:nt,fill:`url(#${H>=0?lt:q})`,rx:8,ry:8,"data-element-type":"shape"})),a&&E.push(h(Et,{x:tt+o/2,y:H>=0?w+K-10:w+K+nt+20,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:H>=0?"bottom":"top",fill:V,children:c(H,T)}));const U=o+i,Z=w+b+S;D.push(h(n,{indexes:X,datum:T,data:r,x:tt+o/2-U/2,y:Z,width:U,positionH:"center"}))}),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,O(B,{width:C,height:k,children:[h(yt,{children:L}),h(B,{children:j}),h(B,{children:E}),h(_t,{children:D})]})]})};vt("chart-column",{component:F0,composites:["title","item"]});const B0=new Map,Sa=(t,e)=>{B0.set(t,e)},G$=t=>{var e;return t&&(e=B0.get(t))!=null?e:null};var U$=Object.defineProperty,Z$=Object.defineProperties,Q$=Object.getOwnPropertyDescriptors,W0=Object.getOwnPropertySymbols,K$=Object.prototype.hasOwnProperty,J$=Object.prototype.propertyIsEnumerable,X0=(t,e,n)=>e in t?U$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Y0=(t,e)=>{for(var n in e||(e={}))K$.call(e,n)&&X0(t,n,e[n]);if(W0)for(var n of W0(e))J$.call(e,n)&&X0(t,n,e[n]);return t},V0=(t,e)=>Z$(t,Q$(e));Sa("pros-cons-arrow",t=>{const{x:e,y:n,colorPositive:r,colorNegative:i,colorBg:o}=t,s=200,a=141,l={width:90,height:40,fontSize:22,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return O(B,{x:e,y:n,width:s,height:a,children:[O(Nt,{children:[h("path",{d:"M137 54C137 54.2903 137 54.5806 136.706 54.7742L108.614 86.0323H64.7619C64.4071 86.0204 64.0557 86.1043 63.7453 86.2747C63.4349 86.4452 63.1773 86.6959 63 87C63.0037 86.7447 63.1092 86.5012 63.2936 86.3226L91.3862 55.0645H135.238C135.593 55.0763 135.944 54.9925 136.255 54.822C136.565 54.6516 136.823 54.4009 137 54.0968V54Z",fill:"#D9D9D9"}),h("path",{d:"M39.3272 0.484649C39.6146 0.234929 39.9662 0.0736935 40.3407 0.0198929C40.7152 -0.0339076 41.0971 0.0219605 41.4414 0.180925C41.7857 0.33989 42.0783 0.595358 42.2846 0.917314C42.491 1.23927 42.6026 1.61434 42.6063 1.99848V14.8156H136.013C136.54 14.8156 137.045 15.0282 137.418 15.4068C137.791 15.7853 138 16.2987 138 16.834V53.166C138 53.7013 137.791 54.2147 137.418 54.5932C137.045 54.9718 136.54 55.1844 136.013 55.1844H42.6063V68.0015C42.6026 68.3857 42.491 68.7607 42.2846 69.0827C42.0783 69.4046 41.7857 69.6601 41.4414 69.8191C41.0971 69.9781 40.7152 70.0339 40.3407 69.9801C39.9662 69.9263 39.6146 69.7651 39.3272 69.5154L0.672847 36.5138C0.461378 36.3244 0.292014 36.0915 0.176005 35.8305C0.0599968 35.5695 0 35.2864 0 35C0 34.7136 0.0599968 34.4306 0.176005 34.1696C0.292014 33.9085 0.461378 33.6756 0.672847 33.4862L39.4265 0.484649H39.3272Z",fill:r}),h("path",{d:"M157.394 73.0007C157.397 72.6162 157.509 72.2407 157.715 71.9183C157.922 71.596 158.214 71.3403 158.559 71.1811C158.903 71.022 159.285 70.9661 159.659 71.0199C160.034 71.0738 160.385 71.2352 160.673 71.4852L199.327 104.524C199.539 104.714 199.708 104.947 199.824 105.208C199.94 105.47 200 105.753 200 106.04C200 106.326 199.94 106.61 199.824 106.871C199.708 107.132 199.539 107.366 199.327 107.555L160.573 140.594C160.285 140.815 159.943 140.951 159.584 140.989C159.225 141.027 158.862 140.965 158.535 140.809C158.208 140.653 157.929 140.41 157.728 140.105C157.527 139.8 157.411 139.445 157.394 139.078V126.247H63.9874C63.4603 126.247 62.9548 126.034 62.5821 125.655C62.2094 125.276 62 124.762 62 124.226V87.8531C62 87.3172 62.2094 86.8032 62.5821 86.4242C62.9548 86.0453 63.4603 85.8324 63.9874 85.8324H157.394V73.0007Z",fill:i})]}),h(Et,V0(Y0({x:45,y:15},l),{children:"Pros"})),h(Et,V0(Y0({x:65,y:86},l),{children:"Cons"}))]})});var tP=Object.defineProperty,eP=Object.defineProperties,nP=Object.getOwnPropertyDescriptors,q0=Object.getOwnPropertySymbols,rP=Object.prototype.hasOwnProperty,iP=Object.prototype.propertyIsEnumerable,G0=(t,e,n)=>e in t?tP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,U0=(t,e)=>{for(var n in e||(e={}))rP.call(e,n)&&G0(t,n,e[n]);if(q0)for(var n of q0(e))iP.call(e,n)&&G0(t,n,e[n]);return t},Z0=(t,e)=>eP(t,nP(e));Sa("pros-cons-fold",t=>{const{x:e,y:n,colorPositive:r,colorNegative:i,colorBg:o}=t,s=240,a=300,l={width:85,height:30,fontSize:20,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return O(B,{x:e,y:n,width:s,height:a,children:[O(Nt,{children:[h("path",{d:"M136.914 38.7755C137.303 38.7733 137.683 38.6617 138.011 38.4534C138.339 38.2451 138.602 37.9485 138.77 37.5977C138.937 37.247 139.002 36.8561 138.957 36.4701C138.913 36.084 138.76 35.7183 138.517 35.415L110.741 0.982313C110.548 0.735138 110.301 0.535238 110.018 0.397762C109.736 0.260286 109.426 0.188841 109.112 0.188841C108.798 0.188841 108.488 0.260286 108.206 0.397762C107.924 0.535238 107.676 0.735138 107.483 0.982313L79.7069 35.415C79.4639 35.7183 79.3113 36.084 79.2667 36.4701C79.222 36.8561 79.2871 37.247 79.4545 37.5977C79.6219 37.9485 79.8847 38.2451 80.213 38.4534C80.5412 38.6617 80.9216 38.7733 81.3104 38.7755H92.8965C93.0517 57.1293 97.5517 64.9878 105.259 73.7252C107.017 75.7932 108.983 77.8612 111.103 80.1361C113.276 82.4626 122.121 88.9252 131.069 95.181C129.362 88.7701 128.172 81.2218 127.293 73.7252C125.224 55.9918 125.017 38.7755 125.017 38.7755H136.914Z",fill:r,fillOpacity:.4}),h("path",{d:"M237.931 109.967C238.48 109.967 239.006 109.749 239.394 109.362C239.782 108.974 240 108.448 240 107.899V75.7932C240 75.2447 239.782 74.7187 239.394 74.3309C239.006 73.9431 238.48 73.7252 237.931 73.7252H127.241C128.172 81.2218 129.362 88.7701 131.069 95.181C138.182 100.171 145.337 105.1 152.534 109.967H237.931Z",fill:r}),h("path",{d:"M152.586 109.967C152.586 109.967 141.724 102.678 131.069 95.181C124.122 90.5838 117.455 85.5772 111.103 80.1878C109.034 77.8612 107.017 75.7415 105.259 73.7252H48.6207V56.6639C48.6091 56.2797 48.4905 55.9063 48.2784 55.5857C48.0662 55.2651 47.7689 55.0099 47.4197 54.8488C47.0705 54.6878 46.6833 54.6271 46.3016 54.6738C45.9199 54.7204 45.5587 54.8725 45.2586 55.1129L1.50002 90.2694C1.26208 90.4633 1.07029 90.7078 0.938585 90.985C0.80688 91.2622 0.738558 91.5652 0.738558 91.8721C0.738558 92.179 0.80688 92.482 0.938585 92.7592C1.07029 93.0365 1.26208 93.2809 1.50002 93.4748L45.2586 128.631C45.5621 128.874 45.928 129.027 46.3142 129.071C46.7005 129.116 47.0914 129.051 47.4424 128.884C47.7933 128.716 48.09 128.454 48.2984 128.125C48.5068 127.797 48.6185 127.417 48.6207 127.029V109.967H152.586Z",fill:"#BFBFBF"}),h("path",{d:"M36.1034 88.9252H28.9655V93.785H36.1034V101.85H41.4828V93.785H48.6207V88.8735H41.4828V81.1701H36.1034V88.9252Z",fill:"#404040"}),h("path",{d:"M103.086 261.224C102.697 261.227 102.317 261.338 101.989 261.547C101.661 261.755 101.398 262.051 101.23 262.402C101.063 262.753 100.998 263.144 101.043 263.53C101.087 263.916 101.24 264.282 101.483 264.585L129.259 299.018C129.452 299.265 129.699 299.465 129.982 299.602C130.264 299.74 130.574 299.811 130.888 299.811C131.202 299.811 131.512 299.74 131.794 299.602C132.076 299.465 132.324 299.265 132.517 299.018L160.293 264.585C160.536 264.282 160.689 263.916 160.733 263.53C160.778 263.144 160.713 262.753 160.546 262.402C160.378 262.051 160.115 261.755 159.787 261.547C159.459 261.338 159.078 261.227 158.69 261.224H147.103C146.948 242.871 142.448 235.012 134.741 226.275C132.983 224.207 131.017 222.139 128.897 219.864C126.724 217.537 117.879 211.075 108.931 204.819C110.677 211.877 111.938 219.045 112.707 226.275C114.776 244.008 114.983 261.224 114.983 261.224H103.086Z",fill:i,fillOpacity:.4}),h("path",{d:"M2.06897 190.033C1.52025 190.033 0.993996 190.251 0.605989 190.638C0.217983 191.026 5.00679e-06 191.552 5.00679e-06 192.101V224.207C5.00679e-06 224.755 0.217983 225.281 0.605989 225.669C0.993996 226.057 1.52025 226.275 2.06897 226.275H112.759C111.828 218.778 110.638 211.23 108.931 204.819C99.9827 198.512 90.931 192.411 88.2414 190.55C87.7206 190.204 87.1077 190.024 86.4828 190.033H2.06897Z",fill:i}),h("path",{d:"M87.4138 190.033C87.4138 190.033 98.2759 197.322 108.931 204.819C115.878 209.416 122.545 214.423 128.897 219.812C130.966 222.139 132.983 224.258 134.741 226.275H191.379V243.336C191.391 243.72 191.51 244.094 191.722 244.414C191.934 244.735 192.231 244.99 192.58 245.151C192.929 245.312 193.317 245.373 193.698 245.326C194.08 245.28 194.441 245.128 194.741 244.887L238.5 209.731C238.738 209.537 238.93 209.292 239.061 209.015C239.193 208.738 239.261 208.435 239.261 208.128C239.261 207.821 239.193 207.518 239.061 207.241C238.93 206.964 238.738 206.719 238.5 206.525L194.741 171.369C194.438 171.126 194.072 170.973 193.686 170.929C193.3 170.884 192.909 170.949 192.558 171.116C192.207 171.284 191.91 171.546 191.702 171.875C191.493 172.203 191.382 172.583 191.379 172.971V190.033H87.4138Z",fill:"#BFBFBF"}),h("path",{d:"M192.414 205.905V210.816H212.069V205.905H192.414Z",fill:"#404040"})]}),h(Et,Z0(U0({x:153,y:77},l),{children:"PROS"})),h(Et,Z0(U0({x:2,y:193},l),{children:"CONS"}))]})}),Sa("vs",t=>{const{x:e,y:n,colorPrimary:r,colorBg:i}=t,o=100,s=100,a=Q(r).lighten(20).toString();return O(B,{x:e,y:n,width:o,height:s,children:[O(yt,{children:[h("filter",{id:"vs-divider-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:h("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"})}),h(Ws,{})]}),h(xt,{x:0,y:0,width:o,height:s,fill:a,filter:"url(#vs-divider-glow-filter)",opacity:.6}),h(xt,{x:0,y:0,width:o,height:s,fill:r,"data-element-type":"shape"}),h("text",{x:o/2,y:s/2,fontSize:Math.min(o,s)/1.5,fontWeight:"bold",fill:i,textAnchor:"middle",dominantBaseline:"central",filter:"url(#drop-shadow)",children:"VS"})]})});const Q0=t=>{const{Title:e,Item:n,data:r,gap:i=20,groupGap:o=20,opposite:s=!0,flipped:a=!0,dividerType:l="vs",options:c}=t,{title:f,desc:d,items:u=[]}=r,p=e?h(e,{title:f,desc:d}):null;if(u.length===0)return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,h(B,{children:h(pt,{children:h(W,{indexes:[0],x:0,y:0})})})]});const g=u[0]||{children:[]},m=u[1]||{children:[]},y=g.children||[],_=m.children||[],x=de(c.themeConfig),b=G(h(n,{indexes:[0,0],data:r,datum:y[0]||{}})),w=G(h(W,{indexes:[0]})),P=G$(l),v=P?G(h(P,{x:0,y:0,colorPrimary:x.colorPrimary,colorBg:x.colorBg,colorPositive:x.colorPrimary,colorNegative:x.colorPrimary})):{width:0,height:0},$=[],M=[],I=[],S=Math.max(y.length,_.length),C=S>0?S*(b.height+i)-i:0,k=5,A=S>0?i/2+w.height/2:w.height/2,z=w.width+k,j=z+b.width+o,E=j+v.width+o,D=a?"flipped":"normal",L=a?"normal":s?"flipped":"normal";if(y.forEach((T,N)=>{const F=A+N*(b.height+i),X=[0,N];$.push(h(n,{indexes:X,datum:T,data:r,x:z,y:F,positionH:D,positionV:"middle"})),M.push(h(St,{indexes:X,x:z-w.width-k,y:F+(b.height-w.height)/2})),N<y.length-1&&M.push(h(W,{indexes:[0,N+1],x:z+(b.width-w.width)/2,y:F+b.height+i/2-w.height/2}))}),y.length>0){M.push(h(W,{indexes:[0,0],x:z+(b.width-w.width)/2,y:A-i/2-w.height/2}));const T=A+(y.length-1)*(b.height+i);M.push(h(W,{indexes:[0,y.length],x:z+(b.width-w.width)/2,y:T+b.height+i/2-w.height/2}))}else u.length>=1&&M.push(h(W,{indexes:[0,0],x:z+(b.width-w.width)/2,y:A-w.height/2}));if(_.forEach((T,N)=>{const F=A+N*(b.height+i),X=[1,N];$.push(h(n,{indexes:X,datum:T,data:r,x:E,y:F,positionH:L,positionV:"middle"})),M.push(h(St,{indexes:X,x:E+b.width+k,y:F+(b.height-w.height)/2})),N<_.length-1&&M.push(h(W,{indexes:[1,N+1],x:E+(b.width-w.width)/2,y:F+b.height+i/2-w.height/2}))}),_.length>0){M.push(h(W,{indexes:[1,0],x:E+(b.width-w.width)/2,y:A-i/2-w.height/2}));const T=A+(_.length-1)*(b.height+i);M.push(h(W,{indexes:[1,_.length],x:E+(b.width-w.width)/2,y:T+b.height+i/2-w.height/2}))}else u.length>=2&&M.push(h(W,{indexes:[1,0],x:E+(b.width-w.width)/2,y:A-w.height/2}));return u.length<2&&M.push(h(W,{indexes:[1],x:E+(b.width-w.width)/2,y:A+(C-w.height)/2})),P&&I.push(h(P,{x:j,y:A+(C-v.height)/2,colorPrimary:x.colorPrimary,colorBg:x.colorBg,colorPositive:wt(c,[0])||x.colorPrimary,colorNegative:wt(c,[1])||x.colorPrimary})),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,O(B,{children:[h(B,{children:I}),h(_t,{children:$}),h(pt,{children:M})]})]})};vt("compare-binary-horizontal",{component:Q0,composites:["title","item"]});var oP=Object.defineProperty,K0=Object.getOwnPropertySymbols,sP=Object.prototype.hasOwnProperty,aP=Object.prototype.propertyIsEnumerable,J0=(t,e,n)=>e in t?oP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,tp=(t,e)=>{for(var n in e||(e={}))sP.call(e,n)&&J0(t,n,e[n]);if(K0)for(var n of K0(e))aP.call(e,n)&&J0(t,n,e[n]);return t};const lP={none:5,"dot-line":100,"arc-dot":20,"split-line":5},ep=t=>{var e,n;const{Title:r,Items:i,data:o,gap:s=20,groupGap:a=0,decoration:l="none",surround:c=!0,flipRoot:f=!1,flipLeaf:d=!1,options:u}=t,[p,g]=i,{title:m,desc:y,items:_=[]}=o,x=r?h(r,{title:m,desc:y}):null,b=h(p,{indexes:[0],data:o,datum:o.items[0],themeColors:{}}),w=h(g,{indexes:[0,0],data:o,datum:((n=(e=_[0])==null?void 0:e.children)==null?void 0:n[0])||_[2]}),P=G(b),v=G(w),$=[],M=[],[I,S]=_,C=(I==null?void 0:I.children)||[],k=(S==null?void 0:S.children)||[],A=Math.max(P.height,C.length*(v.height+s)-s,k.length*(v.height+s)-s),z=lP[l]||0,j=v.width+z,E=j+P.width+a,D=(A-P.height)/2;I&&$.push(h(p,{indexes:[0],x:j,y:D,data:o,datum:I,positionH:f?"normal":"flipped"})),S&&$.push(h(p,{indexes:[1],x:E,y:D,data:o,datum:S,positionH:f?"flipped":"normal"}));const L=(T,N,F)=>{if(l==="none")return;const[X,H]=N,tt=wt(u,F),K={x:X,y:H,width:v.width,height:v.height,side:T,color:tt||"#ccc",colorBg:u.themeConfig.colorBg||"#fff"};l==="split-line"?M.push(h(cP,tp({},K))):l==="dot-line"&&M.push(h(hP,tp({},K)))};if(c){const N=(2*P.width+a+v.width)/2+z,F=j+P.width+a/2,X=D+P.height/2;C.forEach((H,tt)=>{const K=C.length*(v.height+s)-s,V=(A-K)/2+tt*(v.height+s),q=V+v.height/2-X,U=Math.max(0,N*N-q*q),et=F-Math.sqrt(U)-v.width/2;$.push(h(g,{indexes:[0,tt],datum:H,data:o,x:et,y:V,positionH:d?"flipped":"normal"})),L("left",[et,V],[0,tt])}),k.forEach((H,tt)=>{const K=k.length*(v.height+s)-s,V=(A-K)/2+tt*(v.height+s),q=V+v.height/2-X,U=Math.max(0,N*N-q*q),et=F+Math.sqrt(U)-v.width/2;$.push(h(g,{indexes:[1,tt],datum:H,data:o,x:et,y:V,positionH:d?"normal":"flipped"})),L("right",[et,V],[1,tt])})}else C.forEach((T,N)=>{const F=C.length*(v.height+s)-s,H=(A-F)/2+N*(v.height+s),tt=[0,N],K=0;$.push(h(g,{indexes:tt,datum:T,data:o,x:K,y:H,positionH:d?"flipped":"normal"})),L("left",[K,H],tt)}),k.forEach((T,N)=>{const F=k.length*(v.height+s)-s,H=(A-F)/2+N*(v.height+s),tt=[1,N],K=E+P.width+z;$.push(h(g,{indexes:tt,datum:T,data:o,x:K,y:H,positionH:d?"normal":"flipped"})),L("right",[K,H],tt)});return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[x,O(B,{children:[h(_t,{children:$}),h(B,{width:0,height:0,children:M})]})]})},cP=t=>{const{x:e,y:n,width:r,height:i,color:o,colorBg:s,side:a}=t,l=n+i,c=`split-line-linear-gradient-${a}`;return O(gt,{children:[h(yt,{children:h(Xs,{id:c,startColor:o,stopColor:s,direction:a==="left"?"left-right":"right-left"})}),h(dt,{x:e,y:l,width:r,height:1,fill:`url(#${c})`})]})},hP=t=>{const{x:e,y:n,side:r,width:i,height:o,color:s,colorBg:a}=t,l=6,c=l/3,f=l*2,d=c*2,u=5,p=r==="left"?e+i+l+u:e-l-u,g=n+o/2,m=p-c,y=g-c,_=80,x=r==="left"?_:-_,b=`dot-line-linear-gradient-${r}`;return O(B,{children:[h(yt,{children:h(Xs,{id:b,startColor:s,stopColor:a,direction:r==="left"?"left-right":"right-left"})}),O(Nt,{children:[h(xt,{x:p-l,y:g-l,width:f,height:f,fill:"none",strokeWidth:1,stroke:s}),h(xt,{x:m,y,width:d,height:d,fill:s})]}),h(dt,{x:r==="left"?p:p+x,y:g-.5,width:_,height:1,fill:`url(#${b})`})]})};vt("compare-hierarchy-left-right",{component:ep,composites:["title","item"]});const np=t=>{var e,n;const{Title:r,Items:i,data:o,gap:s=0,itemGap:a=20,columnWidth:l=280,itemPadding:c=5,showColumnBackground:f=!0,columnBackgroundAlpha:d=.08,options:u}=t,[p,g]=i,{title:m,desc:y,items:_=[]}=o,x=r?h(r,{title:m,desc:y}):null,b=tu(u),w=[],P=[],v=l-c*2,$=G(h(p,{indexes:[0],data:o,datum:_[0],width:l})),M=G(h(g,{indexes:[0,0],data:o,datum:((n=(e=_[0])==null?void 0:e.children)==null?void 0:n[0])||{},width:v})),I=G(h(W,{indexes:[0]})),S=Math.max(..._.map(k=>{var A;return((A=k.children)==null?void 0:A.length)||0}),0),C=$.height+a+S*(M.height+a);if(_.forEach((k,A)=>{const{children:z=[]}=k,j=A*(l+s),E=j,D=0;if(f){const F=`${b[A%b.length]}${Math.round(d*255).toString(16).padStart(2,"0")}`;w.push(h(dt,{x:j,y:D,width:l,height:C,fill:F,rx:0,ry:0,"data-element-type":"shape"}))}w.push(h(p,{indexes:[A],datum:k,data:o,x:E,y:D,width:l})),P.push(h(St,{indexes:[A],x:E+$.width-I.width-10,y:D+10})),A===0&&P.push(h(W,{indexes:[A],x:E+$.width/2-I.width/2,y:D-I.height-5}));const L=D+$.height+a;z.forEach((N,F)=>{const X=L+F*(M.height+a),H=E+c,tt=[A,F];w.push(h(g,{indexes:tt,datum:N,data:o,x:H,y:X,width:v})),P.push(h(St,{indexes:tt,x:H+M.width-I.width-10,y:X+(M.height-I.height)/2})),F<z.length-1&&P.push(h(W,{indexes:[A,F+1],x:H+M.width/2-I.width/2,y:X+M.height-I.height/2}))});const T=E+c;if(z.length>0){const N=L+z.length*(M.height+a);P.push(h(W,{indexes:[A,z.length],x:T+M.width/2-I.width/2,y:N-M.height/2-I.height/2}))}else P.push(h(W,{indexes:[A,0],x:T+M.width/2-I.width/2,y:L-a/2-I.height/2}))}),_.length>0){const k=_.length*(l+s);P.push(h(W,{indexes:[_.length],x:k-s/2-I.width/2,y:-I.height-5}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[x,O(B,{children:[h(_t,{children:w}),h(pt,{children:P})]})]})};vt("compare-hierarchy-row",{component:np,composites:["title","item"]});var fP=Object.defineProperty,uP=Object.defineProperties,dP=Object.getOwnPropertyDescriptors,rp=Object.getOwnPropertySymbols,pP=Object.prototype.hasOwnProperty,gP=Object.prototype.propertyIsEnumerable,ip=(t,e,n)=>e in t?fP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Zi=(t,e)=>{for(var n in e||(e={}))pP.call(e,n)&&ip(t,n,e[n]);if(rp)for(var n of rp(e))gP.call(e,n)&&ip(t,n,e[n]);return t},Qi=(t,e)=>uP(t,dP(e));const op=t=>{const{Title:e,Items:n,data:r,levelGap:i=80,nodeGap:o=60,edgeType:s="straight",edgeColorMode:a="gradient",edgeWidth:l=3,edgeStyle:c="solid",edgeDashPattern:f="5,5",edgeCornerRadius:d=0,edgeOffset:u=0,edgeOrigin:p="center",edgeOriginPadding:g=20,edgeMarker:m="none",markerSize:y=12,colorMode:_="branch",options:x}=t,{title:b,desc:w}=r,P=Ut(x),v=q=>{var U;const Z=[...q];return(U=Z[0])!=null&&U.children||(Z[0]=Qi(Zi({},Z[0]),{children:Z.slice(1)}),Z.splice(1)),Z},$=(q,U,Z,et,ct)=>{const it=U+(et-U)/2,ht=Math.min(ct,Math.abs(et-U)/2,Math.abs(Z-q)/2);return ht===0?`M ${q} ${U} L ${q} ${it} L ${Z} ${it} L ${Z} ${et}`:`M ${q} ${U}
|
|
82
|
+
`,O(F,KP(QP({},u),{children:[h(ot,{d:$,x:0,y:0,width:r,height:i,fill:f.colorPrimary,"data-element-type":"shape"}),h(Gt,{indexes:n,x:m,y,size:o,fill:f.colorBg}),h(ft,{indexes:n,x:b,y:x,width:d,fontSize:14,fontWeight:"bold",fill:f.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:e.label}),e.desc&&h(It,{indexes:n,x:P,y:v,width:d,fontSize:11,wordWrap:!0,fill:f.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:e.desc})]}))};Et("quarter-simple-card",{component:J0,composites:["icon","label","desc"]});var JP=Object.defineProperty,tM=Object.defineProperties,eM=Object.getOwnPropertyDescriptors,tp=Object.getOwnPropertySymbols,nM=Object.prototype.hasOwnProperty,rM=Object.prototype.propertyIsEnumerable,ep=(t,e,n)=>e in t?JP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,iM=(t,e)=>{for(var n in e||(e={}))nM.call(e,n)&&ep(t,n,e[n]);if(tp)for(var n of tp(e))rM.call(e,n)&&ep(t,n,e[n]);return t},oM=(t,e)=>tM(t,eM(e));const np=t=>{const[{datum:e,indexes:n,width:r=240,height:i=140,iconSize:o=28,gap:s=12,ribbonHeight:a=32,themeColors:l},c]=At(t,["width","height","iconSize","gap","ribbonHeight"]),f=`${l.colorPrimary}-ribbon`;return O(F,oM(iM({},c),{children:[h(yt,{children:O("linearGradient",{id:f,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[h("stop",{offset:"0%",stopColor:l.colorPrimary}),h("stop",{offset:"100%",stopColor:tt(l.colorPrimary).darken(15).toHexString()})]})}),O(jt,{children:[h(dt,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorPrimaryBg,strokeWidth:1,rx:8,ry:8}),h(dt,{x:0,y:0,width:r,height:a,fill:`url(#${f})`,rx:8,ry:8}),h(dt,{x:0,y:8,width:r,height:a-8,fill:`url(#${f})`}),h(ot,{x:r-20,y:a,width:20,height:8,fill:tt(l.colorPrimary).darken(25).toHexString(),d:"M0,0 L20,0 L15,8 L5,8 Z"})]}),h(Gt,{indexes:n,x:s,y:a+s,size:o,fill:l.colorPrimary}),h(ft,{indexes:n,x:o+2*s,y:a+s,width:r-o-3*s,height:o,alignHorizontal:"left",alignVertical:"middle",lineHeight:1,fontWeight:"bold",fill:l.colorText,children:e.label}),h(It,{indexes:n,x:s,y:a+o+s+5,width:r-2*s,alignHorizontal:"left",fill:l.colorTextSecondary,lineNumber:3,wordWrap:!0,children:e.desc}),h(Gt,{indexes:n,x:r-s-8,y:s/2,size:16,fill:l.colorWhite})]}))};Et("ribbon-card",{component:np,composites:["icon","label","desc"]});var sM=Object.defineProperty,aM=Object.defineProperties,lM=Object.getOwnPropertyDescriptors,rp=Object.getOwnPropertySymbols,cM=Object.prototype.hasOwnProperty,hM=Object.prototype.propertyIsEnumerable,ip=(t,e,n)=>e in t?sM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fM=(t,e)=>{for(var n in e||(e={}))cM.call(e,n)&&ip(t,n,e[n]);if(rp)for(var n of rp(e))hM.call(e,n)&&ip(t,n,e[n]);return t},uM=(t,e)=>aM(t,lM(e));const op=t=>{const[{indexes:e,datum:n,themeColors:r,width:i=300,height:o=40,padding:s=4,positionH:a="normal"},l]=At(t,["width","height","borderRadius","padding"]),c=o/2,f=c,u=s,d=i-c*2,p=o-s*2;return O(F,uM(fM({},l),{children:[h(dt,{"data-element-type":"shape",width:i,height:o,rx:c,ry:c,fill:r.colorPrimaryBg,stroke:r.colorPrimary,strokeWidth:1,opacity:.8}),h(ft,{indexes:e,x:f,y:u,width:d,height:p,alignHorizontal:a==="flipped"?"right":a==="center"?"center":"left",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:r.colorText,children:n.label})]}))};Et("rounded-rect-node",{component:op,composites:["label"]});var dM=Object.defineProperty,pM=Object.defineProperties,gM=Object.getOwnPropertyDescriptors,sp=Object.getOwnPropertySymbols,mM=Object.prototype.hasOwnProperty,yM=Object.prototype.propertyIsEnumerable,ap=(t,e,n)=>e in t?dM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_M=(t,e)=>{for(var n in e||(e={}))mM.call(e,n)&&ap(t,n,e[n]);if(sp)for(var n of sp(e))yM.call(e,n)&&ap(t,n,e[n]);return t},xM=(t,e)=>pM(t,gM(e));const lp=t=>{const[{indexes:e,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=At(t,["width"]),a=o!=="flipped",l=a?"bottom":"top",c=h(ft,{indexes:e,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),f=h(It,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=30,d=10,p=G(c),g=G(f),m=p.height+g.height,y=m+d+u+d+m;return h(F,xM(_M({width:r,height:y},s),{children:O(rt,{flexDirection:"column",alignItems:"center",children:[a?O(gt,{children:[f,c,h(zt,{height:d})]}):h(gt,{children:h(zt,{height:m+d})}),O(hn,{horizontal:"center",vertical:"middle",children:[h(bM,{width:r,height:u,fill:i.colorPrimary}),h(kt,{width:r,height:u,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),a?h(gt,{children:h(zt,{height:m+d})}):O(gt,{children:[h(zt,{height:d}),c,f]})]})}))},bM=t=>{const{x:e=0,y:n=0,width:r=100,height:i=40,fill:o="#1890FF",size:s=10}=t;return h(be,{width:r,height:i,points:[{x:e,y:n},{x:e+r-s,y:n},{x:e+r,y:n+i/2},{x:e+r-s,y:n+i},{x:e,y:n+i},{x:e+s,y:n+i/2}],fill:o,"data-element-type":"shape"})};Et("simple-horizontal-arrow",{component:lp,composites:["label","desc","time"]});var vM=Object.defineProperty,wM=Object.defineProperties,$M=Object.getOwnPropertyDescriptors,cp=Object.getOwnPropertySymbols,PM=Object.prototype.hasOwnProperty,MM=Object.prototype.propertyIsEnumerable,hp=(t,e,n)=>e in t?vM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,OM=(t,e)=>{for(var n in e||(e={}))PM.call(e,n)&&hp(t,n,e[n]);if(cp)for(var n of cp(e))MM.call(e,n)&&hp(t,n,e[n]);return t},CM=(t,e)=>wM(t,$M(e));const fp=t=>{const[{indexes:e,datum:n,width:r=180,illusSize:i=r,gap:o=8,themeColors:s,usePaletteColor:a=!1},l]=At(t,["width","illusSize","gap","usePaletteColor"]),{label:c,desc:f}=n,u=a?s.colorPrimary:s.colorText,d=h(ft,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"middle",fill:u,children:c}),p=G(d);return O(rt,CM(OM({},l),{width:r,height:i+o+p.height+o+48,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o,children:[h(Hl,{indexes:e,width:i,height:i}),d,h(It,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"top",fill:s.colorTextSecondary,lineNumber:3,children:f})]}))};Et("simple-illus",{component:fp,composites:["illus","label","desc"]});var SM=Object.defineProperty,IM=Object.defineProperties,AM=Object.getOwnPropertyDescriptors,up=Object.getOwnPropertySymbols,EM=Object.prototype.hasOwnProperty,kM=Object.prototype.propertyIsEnumerable,dp=(t,e,n)=>e in t?SM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ja=(t,e)=>{for(var n in e||(e={}))EM.call(e,n)&&dp(t,n,e[n]);if(up)for(var n of up(e))kM.call(e,n)&&dp(t,n,e[n]);return t},Da=(t,e)=>IM(t,AM(e));const pp=t=>{const[{indexes:e,datum:n,width:r=200,height:i,gap:o=4,showIcon:s=!0,iconSize:a=30,iconType:l="default",positionH:c="normal",positionV:f="normal",usePaletteColor:u=!1,themeColors:d},p]=At(t,["width","height","gap","showIcon","iconSize","iconType","usePaletteColor"]),{label:g,desc:m,icon:y}=n,_=(k=>k==="normal"?"left":k==="flipped"?"right":"center")(c),b=u?d.colorPrimary:d.colorText,v=14,P=1.4,$=G(h(ft,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"middle",fill:b,children:g})),M=s?l==="circle"?h(Ve,{indexes:e,size:a,fill:d.colorPrimary,colorBg:d.colorBg}):h(Gt,{indexes:e,size:a,fill:d.colorTextSecondary}):null;if(!s||!y){const k=i?Math.max(0,i-$.height-o):void 0,j=k?k<=60?1:Math.floor(k/(P*v)):2,L=i?f==="middle"?(i-$.height-(k||0)-o)/2:f==="flipped"?i-$.height-(k||0)-o:0:0;return O(F,Da(ja({},p),{children:[h(ft,{indexes:e,width:r,y:L,alignHorizontal:_,alignVertical:"middle",fill:b,children:g}),h(It,{indexes:e,width:r,height:k,y:L+$.height+o,alignHorizontal:_,alignVertical:R(),lineNumber:j,fill:d.colorTextSecondary,children:m})]}))}if(c==="center"){const k=s&&y?a:0,j=i?Math.max(0,i-$.height-k-o*2):void 0,L=j?j<=60?1:Math.floor(j/(P*v)):2,H=$.height+(j||0)+o,N=i?f==="middle"?(i-H-k-o)/2:f==="flipped"?i-H-k-o:0:0;return h(rt,Da(ja({},p),{flexDirection:"column",gap:o,alignItems:"center",children:f==="flipped"?O(gt,{children:[O(F,{children:[h(ft,{indexes:e,width:r,y:N,alignHorizontal:"center",alignVertical:"middle",fill:b,children:g}),h(It,{indexes:e,width:r,height:j,y:N+$.height+o,alignHorizontal:"center",alignVertical:"bottom",lineNumber:L,fill:d.colorTextSecondary,children:m})]}),M]}):O(gt,{children:[M,O(F,{children:[h(ft,{indexes:e,width:r,y:N,alignHorizontal:"center",alignVertical:"middle",fill:b,children:g}),h(It,{indexes:e,width:r,height:j,y:N+$.height+o,alignHorizontal:"center",alignVertical:"top",lineNumber:L,fill:d.colorTextSecondary,children:m})]})]})}))}const I=G(M),S=Math.max(r-I.width-o,0),C=i?Math.max(0,i-$.height-o):void 0,E=C?C<=60?1:Math.floor(C/(P*v)):2,A=i?f==="middle"?(i-$.height-(C||0)-o)/2:f==="flipped"?i-$.height-(C||0)-o:0:0;return h(rt,Da(ja({},p),{flexDirection:"row",gap:o,alignItems:D(f),children:c==="flipped"?O(gt,{children:[O(F,{children:[h(ft,{indexes:e,width:S,y:A,alignHorizontal:"right",alignVertical:"middle",fill:b,children:g}),h(It,{indexes:e,width:S,height:C,y:A+$.height+o,alignHorizontal:"right",alignVertical:R(),lineNumber:E,fill:d.colorTextSecondary,children:m})]}),M]}):O(gt,{children:[M,O(F,{children:[h(ft,{indexes:e,width:S,y:A,alignHorizontal:"left",alignVertical:"middle",fill:b,children:g}),h(It,{indexes:e,width:S,height:C,y:A+$.height+o,alignHorizontal:"left",alignVertical:R(),lineNumber:E,fill:d.colorTextSecondary,children:m})]})]})}));function R(k,j){return"top"}function D(k){return k==="normal"?"flex-start":k==="flipped"?"flex-end":"center"}};Et("simple",{component:pp,composites:["icon","label","desc"]});var TM=Object.defineProperty,zM=Object.defineProperties,HM=Object.getOwnPropertyDescriptors,gp=Object.getOwnPropertySymbols,LM=Object.prototype.hasOwnProperty,RM=Object.prototype.propertyIsEnumerable,mp=(t,e,n)=>e in t?TM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,NM=(t,e)=>{for(var n in e||(e={}))LM.call(e,n)&&mp(t,n,e[n]);if(gp)for(var n of gp(e))RM.call(e,n)&&mp(t,n,e[n]);return t},jM=(t,e)=>zM(t,HM(e));const yp=t=>{const[{indexes:e,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=At(t,["height"]),a=o==="normal"?"right":"left",l=h(ft,{indexes:e,width:120,fill:i.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=h(It,{indexes:e,width:120,fill:i.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),f=o!=="flipped",u=15,d=30,p=120,g=p+u+d+u+p;return h(F,jM(NM({width:g,height:r},s),{children:O(rt,{flexDirection:"row",alignItems:"center",children:[f?O(gt,{children:[O(rt,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),h(zt,{width:u})]}):h(gt,{children:h(zt,{width:p+u})}),O(hn,{horizontal:"center",vertical:"middle",children:[h(DM,{width:d,height:r,fill:i.colorPrimary}),h(kt,{width:d,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),f?h(gt,{children:h(zt,{width:p+u})}):O(gt,{children:[h(zt,{width:u}),O(rt,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},DM=t=>{const{x:e=0,y:n=0,width:r=30,height:i=100,fill:o="#1890FF",size:s=10}=t;return h(be,{width:r,height:i,points:[{x:e,y:n},{x:e+r/2,y:n+s},{x:e+r,y:n},{x:e+r,y:n+i-s},{x:e+r/2,y:n+i},{x:e,y:n+i-s}],fill:o,"data-element-type":"shape"})};Et("simple-vertical-arrow",{component:yp,composites:["label","desc"]});var BM=Object.defineProperty,FM=Object.defineProperties,WM=Object.getOwnPropertyDescriptors,_p=Object.getOwnPropertySymbols,XM=Object.prototype.hasOwnProperty,YM=Object.prototype.propertyIsEnumerable,xp=(t,e,n)=>e in t?BM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,VM=(t,e)=>{for(var n in e||(e={}))XM.call(e,n)&&xp(t,n,e[n]);if(_p)for(var n of _p(e))YM.call(e,n)&&xp(t,n,e[n]);return t},qM=(t,e)=>FM(t,WM(e));const Ba=80,Fa=3,bp=t=>{const[{datum:e,indexes:n,width:r=200,gap:i=4,positionH:o="center",themeColors:s},a]=At(t,["width","height","gap"]),l=G(h(ft,{indexes:n,fontSize:18,fontWeight:"bold",width:r,children:e.label})),c=e.desc?G(h(It,{indexes:n,width:r,wordWrap:!0,children:e.desc})):{height:0},f=l.height+i+Fa+(e.desc?i*2+c.height:0),u=0,d=0,p=o==="center"?"center":o==="flipped"?"right":"left",g=o==="center"?(r-Ba)/2:o==="flipped"?r-Ba:0,m=d+l.height+i,y=0,x=m+Fa+i*2;return O(F,qM(VM({width:r,height:f},a),{children:[e.label&&h(ft,{indexes:n,x:u,y:d,width:r,alignHorizontal:p,fill:s.colorPrimary,fontSize:18,fontWeight:"bold",children:e.label}),e.label&&h(dt,{x:g,y:m,width:Ba,height:Fa,fill:s.colorPrimary,"data-element-type":"shape"}),e.desc&&h(It,{indexes:n,width:r,x:y,y:x,alignHorizontal:p,wordWrap:!0,fill:s.colorText,children:e.desc})]}))};Et("underline-text",{component:bp,composites:["label","desc"]});var GM=Object.defineProperty,UM=Object.defineProperties,ZM=Object.getOwnPropertyDescriptors,vp=Object.getOwnPropertySymbols,QM=Object.prototype.hasOwnProperty,KM=Object.prototype.propertyIsEnumerable,wp=(t,e,n)=>e in t?GM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,JM=(t,e)=>{for(var n in e||(e={}))QM.call(e,n)&&wp(t,n,e[n]);if(vp)for(var n of vp(e))KM.call(e,n)&&wp(t,n,e[n]);return t},tO=(t,e)=>UM(t,ZM(e));const $p=t=>{const[{indexes:e,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=At(t,["height"]),l=o!=="flipped"?"right":"left",c=h(ft,{indexes:e,width:120,fill:i.colorText,alignHorizontal:l,alignVertical:"middle",fontSize:14,children:n.label}),f=h(It,{indexes:e,width:120,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:"top",children:n.desc}),u=h(Ve,{indexes:e,fill:i.colorPrimary,colorBg:i.colorWhite}),d=h(nO,{width:30,height:8,fill:i.colorPrimary,positionH:o}),p=o!=="flipped",g=5,m=25,y=30,x=G(c),_=G(u),b=G(d),v=x.width+g+b.width-_.width-m,P=Math.max(x.width+g+b.width,m+_.width)*2+y;return h(F,tO(JM({width:P,height:r},s),{children:O(rt,{flexDirection:"row",alignItems:"center",children:[p?O(gt,{children:[O(rt,{flexDirection:"column",alignItems:"flex-end",children:[c,f]}),h(zt,{width:g}),d]}):O(gt,{children:[h(zt,{width:v}),u,h(zt,{width:m})]}),O(hn,{horizontal:"center",vertical:"middle",children:[h(eO,{width:y,height:r,fill:i.colorPrimary}),h(kt,{width:y,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),p?O(gt,{children:[h(zt,{width:m}),u]}):O(gt,{children:[d,h(zt,{width:g}),O(rt,{flexDirection:"column",alignItems:"flex-start",children:[c,f]})]})]})}))},eO=t=>{const{x:e=0,y:n=0,width:r=30,height:i=100,fill:o="#1890FF",size:s=10}=t;return h(be,{width:r,height:i,points:[{x:e,y:n},{x:e+r/2,y:n+s},{x:e+r,y:n},{x:e+r,y:n+i-s},{x:e+r/2,y:n+i},{x:e,y:n+i-s}],fill:o,"data-element-type":"shape"})},nO=t=>{const{x:e=0,y:n=0,width:r=50,height:i=10,fill:o,positionH:s="normal"}=t,a=i/2,l=r-a,c=2,f=a;return O(F,{x:e,y:n,width:r,height:i,children:[h(_t,{width:i,height:i,fill:o,x:s==="normal"?0:l-a,"data-element-type":"shape"}),h(ot,{d:s==="normal"?`M${a},${f} L${a+l},${f}`:`M0,${f} L${l-a},${f}`,strokeWidth:c,stroke:o,"data-element-type":"shape"})]})};Et("vertical-icon-arrow",{component:$p,composites:["icon","label","desc"]});const Wa=new Map;function wt(t,e){Wa.set(t,e)}function Pp(t){return Wa.get(t)}function rO(){return Array.from(Wa.keys())}const Mp=t=>{const{Title:e,Item:n,data:r,columnGap:i=60,columnWidth:o=50,padding:s=20,showValue:a=!0,options:l,valueFormatter:c=H=>H.toString()}=t,{title:f,desc:u,items:d=[]}=r,p=e?h(e,{title:f,desc:u}):null;if(d.length===0)return h(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:p});const g=pe(l.themeConfig),y=[...d.map(H=>{var N;return(N=H.value)!=null?N:0}),0].sort((H,N)=>H-N),x=y[0]<0,_=d.length*o+(d.length-1)*i,b=300,[v,P,w,$]=Ss(s),M=a?24:0,I=10,S=x&&a?M+I:I,C=_+$+P,E=b+v+w+S,A=Na().domain([y[0],y[y.length-1]]).range([b,0]),R=A(0),D=[],k=[],j=[],L=[];return d.forEach((H,N)=>{var B;const X=[N],T=(B=H.value)!=null?B:0,J=$+N*(o+i),Q=T>=0?A(T):R,nt=Math.abs(A(T)-R),V=vt(l,[N])||g.colorPrimary,lt=`${V}-column-positive-${N}`,q=`${V}-column-negative-${N}`;L.push(O("linearGradient",{id:T>=0?lt:q,x1:"0%",y1:T>=0?"0%":"100%",x2:"0%",y2:T>=0?"100%":"0%",children:[h("stop",{offset:"0%",stopColor:V}),h("stop",{offset:"100%",stopColor:tt.mix(V,"#fff",40).toHexString()})]})),D.push(h(dt,{x:J,y:v+Q,width:o,height:nt,fill:`url(#${T>=0?lt:q})`,rx:8,ry:8,"data-element-type":"shape"})),a&&k.push(h(kt,{x:J+o/2,y:T>=0?v+Q-10:v+Q+nt+20,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:T>=0?"bottom":"top",fill:V,children:c(T,H)}));const U=o+i,Z=v+b+S;j.push(h(n,{indexes:X,datum:H,data:r,x:J+o/2-U/2,y:Z,width:U,positionH:"center"}))}),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,O(F,{width:C,height:E,children:[h(yt,{children:L}),h(F,{children:D}),h(F,{children:k}),h(xt,{children:j})]})]})};wt("chart-column",{component:Mp,composites:["title","item"]});const Op=new Map,Xa=(t,e)=>{Op.set(t,e)},iO=t=>{var e;return t&&(e=Op.get(t))!=null?e:null};var oO=Object.defineProperty,sO=Object.defineProperties,aO=Object.getOwnPropertyDescriptors,Cp=Object.getOwnPropertySymbols,lO=Object.prototype.hasOwnProperty,cO=Object.prototype.propertyIsEnumerable,Sp=(t,e,n)=>e in t?oO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ip=(t,e)=>{for(var n in e||(e={}))lO.call(e,n)&&Sp(t,n,e[n]);if(Cp)for(var n of Cp(e))cO.call(e,n)&&Sp(t,n,e[n]);return t},Ap=(t,e)=>sO(t,aO(e));Xa("pros-cons-arrow",t=>{const{x:e,y:n,colorPositive:r,colorNegative:i,colorBg:o}=t,s=200,a=141,l={width:90,height:40,fontSize:22,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return O(F,{x:e,y:n,width:s,height:a,children:[O(jt,{children:[h("path",{d:"M137 54C137 54.2903 137 54.5806 136.706 54.7742L108.614 86.0323H64.7619C64.4071 86.0204 64.0557 86.1043 63.7453 86.2747C63.4349 86.4452 63.1773 86.6959 63 87C63.0037 86.7447 63.1092 86.5012 63.2936 86.3226L91.3862 55.0645H135.238C135.593 55.0763 135.944 54.9925 136.255 54.822C136.565 54.6516 136.823 54.4009 137 54.0968V54Z",fill:"#D9D9D9"}),h("path",{d:"M39.3272 0.484649C39.6146 0.234929 39.9662 0.0736935 40.3407 0.0198929C40.7152 -0.0339076 41.0971 0.0219605 41.4414 0.180925C41.7857 0.33989 42.0783 0.595358 42.2846 0.917314C42.491 1.23927 42.6026 1.61434 42.6063 1.99848V14.8156H136.013C136.54 14.8156 137.045 15.0282 137.418 15.4068C137.791 15.7853 138 16.2987 138 16.834V53.166C138 53.7013 137.791 54.2147 137.418 54.5932C137.045 54.9718 136.54 55.1844 136.013 55.1844H42.6063V68.0015C42.6026 68.3857 42.491 68.7607 42.2846 69.0827C42.0783 69.4046 41.7857 69.6601 41.4414 69.8191C41.0971 69.9781 40.7152 70.0339 40.3407 69.9801C39.9662 69.9263 39.6146 69.7651 39.3272 69.5154L0.672847 36.5138C0.461378 36.3244 0.292014 36.0915 0.176005 35.8305C0.0599968 35.5695 0 35.2864 0 35C0 34.7136 0.0599968 34.4306 0.176005 34.1696C0.292014 33.9085 0.461378 33.6756 0.672847 33.4862L39.4265 0.484649H39.3272Z",fill:r}),h("path",{d:"M157.394 73.0007C157.397 72.6162 157.509 72.2407 157.715 71.9183C157.922 71.596 158.214 71.3403 158.559 71.1811C158.903 71.022 159.285 70.9661 159.659 71.0199C160.034 71.0738 160.385 71.2352 160.673 71.4852L199.327 104.524C199.539 104.714 199.708 104.947 199.824 105.208C199.94 105.47 200 105.753 200 106.04C200 106.326 199.94 106.61 199.824 106.871C199.708 107.132 199.539 107.366 199.327 107.555L160.573 140.594C160.285 140.815 159.943 140.951 159.584 140.989C159.225 141.027 158.862 140.965 158.535 140.809C158.208 140.653 157.929 140.41 157.728 140.105C157.527 139.8 157.411 139.445 157.394 139.078V126.247H63.9874C63.4603 126.247 62.9548 126.034 62.5821 125.655C62.2094 125.276 62 124.762 62 124.226V87.8531C62 87.3172 62.2094 86.8032 62.5821 86.4242C62.9548 86.0453 63.4603 85.8324 63.9874 85.8324H157.394V73.0007Z",fill:i})]}),h(kt,Ap(Ip({x:45,y:15},l),{children:"Pros"})),h(kt,Ap(Ip({x:65,y:86},l),{children:"Cons"}))]})});var hO=Object.defineProperty,fO=Object.defineProperties,uO=Object.getOwnPropertyDescriptors,Ep=Object.getOwnPropertySymbols,dO=Object.prototype.hasOwnProperty,pO=Object.prototype.propertyIsEnumerable,kp=(t,e,n)=>e in t?hO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Tp=(t,e)=>{for(var n in e||(e={}))dO.call(e,n)&&kp(t,n,e[n]);if(Ep)for(var n of Ep(e))pO.call(e,n)&&kp(t,n,e[n]);return t},zp=(t,e)=>fO(t,uO(e));Xa("pros-cons-fold",t=>{const{x:e,y:n,colorPositive:r,colorNegative:i,colorBg:o}=t,s=240,a=300,l={width:85,height:30,fontSize:20,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return O(F,{x:e,y:n,width:s,height:a,children:[O(jt,{children:[h("path",{d:"M136.914 38.7755C137.303 38.7733 137.683 38.6617 138.011 38.4534C138.339 38.2451 138.602 37.9485 138.77 37.5977C138.937 37.247 139.002 36.8561 138.957 36.4701C138.913 36.084 138.76 35.7183 138.517 35.415L110.741 0.982313C110.548 0.735138 110.301 0.535238 110.018 0.397762C109.736 0.260286 109.426 0.188841 109.112 0.188841C108.798 0.188841 108.488 0.260286 108.206 0.397762C107.924 0.535238 107.676 0.735138 107.483 0.982313L79.7069 35.415C79.4639 35.7183 79.3113 36.084 79.2667 36.4701C79.222 36.8561 79.2871 37.247 79.4545 37.5977C79.6219 37.9485 79.8847 38.2451 80.213 38.4534C80.5412 38.6617 80.9216 38.7733 81.3104 38.7755H92.8965C93.0517 57.1293 97.5517 64.9878 105.259 73.7252C107.017 75.7932 108.983 77.8612 111.103 80.1361C113.276 82.4626 122.121 88.9252 131.069 95.181C129.362 88.7701 128.172 81.2218 127.293 73.7252C125.224 55.9918 125.017 38.7755 125.017 38.7755H136.914Z",fill:r,fillOpacity:.4}),h("path",{d:"M237.931 109.967C238.48 109.967 239.006 109.749 239.394 109.362C239.782 108.974 240 108.448 240 107.899V75.7932C240 75.2447 239.782 74.7187 239.394 74.3309C239.006 73.9431 238.48 73.7252 237.931 73.7252H127.241C128.172 81.2218 129.362 88.7701 131.069 95.181C138.182 100.171 145.337 105.1 152.534 109.967H237.931Z",fill:r}),h("path",{d:"M152.586 109.967C152.586 109.967 141.724 102.678 131.069 95.181C124.122 90.5838 117.455 85.5772 111.103 80.1878C109.034 77.8612 107.017 75.7415 105.259 73.7252H48.6207V56.6639C48.6091 56.2797 48.4905 55.9063 48.2784 55.5857C48.0662 55.2651 47.7689 55.0099 47.4197 54.8488C47.0705 54.6878 46.6833 54.6271 46.3016 54.6738C45.9199 54.7204 45.5587 54.8725 45.2586 55.1129L1.50002 90.2694C1.26208 90.4633 1.07029 90.7078 0.938585 90.985C0.80688 91.2622 0.738558 91.5652 0.738558 91.8721C0.738558 92.179 0.80688 92.482 0.938585 92.7592C1.07029 93.0365 1.26208 93.2809 1.50002 93.4748L45.2586 128.631C45.5621 128.874 45.928 129.027 46.3142 129.071C46.7005 129.116 47.0914 129.051 47.4424 128.884C47.7933 128.716 48.09 128.454 48.2984 128.125C48.5068 127.797 48.6185 127.417 48.6207 127.029V109.967H152.586Z",fill:"#BFBFBF"}),h("path",{d:"M36.1034 88.9252H28.9655V93.785H36.1034V101.85H41.4828V93.785H48.6207V88.8735H41.4828V81.1701H36.1034V88.9252Z",fill:"#404040"}),h("path",{d:"M103.086 261.224C102.697 261.227 102.317 261.338 101.989 261.547C101.661 261.755 101.398 262.051 101.23 262.402C101.063 262.753 100.998 263.144 101.043 263.53C101.087 263.916 101.24 264.282 101.483 264.585L129.259 299.018C129.452 299.265 129.699 299.465 129.982 299.602C130.264 299.74 130.574 299.811 130.888 299.811C131.202 299.811 131.512 299.74 131.794 299.602C132.076 299.465 132.324 299.265 132.517 299.018L160.293 264.585C160.536 264.282 160.689 263.916 160.733 263.53C160.778 263.144 160.713 262.753 160.546 262.402C160.378 262.051 160.115 261.755 159.787 261.547C159.459 261.338 159.078 261.227 158.69 261.224H147.103C146.948 242.871 142.448 235.012 134.741 226.275C132.983 224.207 131.017 222.139 128.897 219.864C126.724 217.537 117.879 211.075 108.931 204.819C110.677 211.877 111.938 219.045 112.707 226.275C114.776 244.008 114.983 261.224 114.983 261.224H103.086Z",fill:i,fillOpacity:.4}),h("path",{d:"M2.06897 190.033C1.52025 190.033 0.993996 190.251 0.605989 190.638C0.217983 191.026 5.00679e-06 191.552 5.00679e-06 192.101V224.207C5.00679e-06 224.755 0.217983 225.281 0.605989 225.669C0.993996 226.057 1.52025 226.275 2.06897 226.275H112.759C111.828 218.778 110.638 211.23 108.931 204.819C99.9827 198.512 90.931 192.411 88.2414 190.55C87.7206 190.204 87.1077 190.024 86.4828 190.033H2.06897Z",fill:i}),h("path",{d:"M87.4138 190.033C87.4138 190.033 98.2759 197.322 108.931 204.819C115.878 209.416 122.545 214.423 128.897 219.812C130.966 222.139 132.983 224.258 134.741 226.275H191.379V243.336C191.391 243.72 191.51 244.094 191.722 244.414C191.934 244.735 192.231 244.99 192.58 245.151C192.929 245.312 193.317 245.373 193.698 245.326C194.08 245.28 194.441 245.128 194.741 244.887L238.5 209.731C238.738 209.537 238.93 209.292 239.061 209.015C239.193 208.738 239.261 208.435 239.261 208.128C239.261 207.821 239.193 207.518 239.061 207.241C238.93 206.964 238.738 206.719 238.5 206.525L194.741 171.369C194.438 171.126 194.072 170.973 193.686 170.929C193.3 170.884 192.909 170.949 192.558 171.116C192.207 171.284 191.91 171.546 191.702 171.875C191.493 172.203 191.382 172.583 191.379 172.971V190.033H87.4138Z",fill:"#BFBFBF"}),h("path",{d:"M192.414 205.905V210.816H212.069V205.905H192.414Z",fill:"#404040"})]}),h(kt,zp(Tp({x:153,y:77},l),{children:"PROS"})),h(kt,zp(Tp({x:2,y:193},l),{children:"CONS"}))]})}),Xa("vs",t=>{const{x:e,y:n,colorPrimary:r,colorBg:i}=t,o=100,s=100,a=tt(r).lighten(20).toString();return O(F,{x:e,y:n,width:o,height:s,children:[O(yt,{children:[h("filter",{id:"vs-divider-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:h("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"})}),h(oa,{})]}),h(_t,{x:0,y:0,width:o,height:s,fill:a,filter:"url(#vs-divider-glow-filter)",opacity:.6}),h(_t,{x:0,y:0,width:o,height:s,fill:r,"data-element-type":"shape"}),h("text",{x:o/2,y:s/2,fontSize:Math.min(o,s)/1.5,fontWeight:"bold",fill:i,textAnchor:"middle",dominantBaseline:"central",filter:"url(#drop-shadow)",children:"VS"})]})});const Hp=t=>{const{Title:e,Item:n,data:r,gap:i=20,groupGap:o=20,opposite:s=!0,flipped:a=!0,dividerType:l="vs",options:c}=t,{title:f,desc:u,items:d=[]}=r,p=e?h(e,{title:f,desc:u}):null;if(d.length===0)return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,h(F,{children:h(pt,{children:h(W,{indexes:[0],x:0,y:0})})})]});const g=d[0]||{children:[]},m=d[1]||{children:[]},y=g.children||[],x=m.children||[],_=pe(c.themeConfig),b=G(h(n,{indexes:[0,0],data:r,datum:y[0]||{}})),v=G(h(W,{indexes:[0]})),P=iO(l),w=P?G(h(P,{x:0,y:0,colorPrimary:_.colorPrimary,colorBg:_.colorBg,colorPositive:_.colorPrimary,colorNegative:_.colorPrimary})):{width:0,height:0},$=[],M=[],I=[],S=Math.max(y.length,x.length),C=S>0?S*(b.height+i)-i:0,E=5,A=S>0?i/2+v.height/2:v.height/2,R=v.width+E,D=R+b.width+o,k=D+w.width+o,j=a?"flipped":"normal",L=a?"normal":s?"flipped":"normal";if(y.forEach((H,N)=>{const B=A+N*(b.height+i),X=[0,N];$.push(h(n,{indexes:X,datum:H,data:r,x:R,y:B,positionH:j,positionV:"middle"})),M.push(h(St,{indexes:X,x:R-v.width-E,y:B+(b.height-v.height)/2})),N<y.length-1&&M.push(h(W,{indexes:[0,N+1],x:R+(b.width-v.width)/2,y:B+b.height+i/2-v.height/2}))}),y.length>0){M.push(h(W,{indexes:[0,0],x:R+(b.width-v.width)/2,y:A-i/2-v.height/2}));const H=A+(y.length-1)*(b.height+i);M.push(h(W,{indexes:[0,y.length],x:R+(b.width-v.width)/2,y:H+b.height+i/2-v.height/2}))}else d.length>=1&&M.push(h(W,{indexes:[0,0],x:R+(b.width-v.width)/2,y:A-v.height/2}));if(x.forEach((H,N)=>{const B=A+N*(b.height+i),X=[1,N];$.push(h(n,{indexes:X,datum:H,data:r,x:k,y:B,positionH:L,positionV:"middle"})),M.push(h(St,{indexes:X,x:k+b.width+E,y:B+(b.height-v.height)/2})),N<x.length-1&&M.push(h(W,{indexes:[1,N+1],x:k+(b.width-v.width)/2,y:B+b.height+i/2-v.height/2}))}),x.length>0){M.push(h(W,{indexes:[1,0],x:k+(b.width-v.width)/2,y:A-i/2-v.height/2}));const H=A+(x.length-1)*(b.height+i);M.push(h(W,{indexes:[1,x.length],x:k+(b.width-v.width)/2,y:H+b.height+i/2-v.height/2}))}else d.length>=2&&M.push(h(W,{indexes:[1,0],x:k+(b.width-v.width)/2,y:A-v.height/2}));return d.length<2&&M.push(h(W,{indexes:[1],x:k+(b.width-v.width)/2,y:A+(C-v.height)/2})),P&&I.push(h(P,{x:D,y:A+(C-w.height)/2,colorPrimary:_.colorPrimary,colorBg:_.colorBg,colorPositive:vt(c,[0])||_.colorPrimary,colorNegative:vt(c,[1])||_.colorPrimary})),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,O(F,{children:[h(F,{children:I}),h(xt,{children:$}),h(pt,{children:M})]})]})};wt("compare-binary-horizontal",{component:Hp,composites:["title","item"]});var gO=Object.defineProperty,Lp=Object.getOwnPropertySymbols,mO=Object.prototype.hasOwnProperty,yO=Object.prototype.propertyIsEnumerable,Rp=(t,e,n)=>e in t?gO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Np=(t,e)=>{for(var n in e||(e={}))mO.call(e,n)&&Rp(t,n,e[n]);if(Lp)for(var n of Lp(e))yO.call(e,n)&&Rp(t,n,e[n]);return t};const _O={none:5,"dot-line":100,"arc-dot":20,"split-line":5},jp=t=>{var e,n;const{Title:r,Items:i,data:o,gap:s=20,groupGap:a=0,decoration:l="none",surround:c=!0,flipRoot:f=!1,flipLeaf:u=!1,options:d}=t,[p,g]=i,{title:m,desc:y,items:x=[]}=o,_=r?h(r,{title:m,desc:y}):null,b=h(p,{indexes:[0],data:o,datum:o.items[0],themeColors:{}}),v=h(g,{indexes:[0,0],data:o,datum:((n=(e=x[0])==null?void 0:e.children)==null?void 0:n[0])||x[2]}),P=G(b),w=G(v),$=[],M=[],[I,S]=x,C=(I==null?void 0:I.children)||[],E=(S==null?void 0:S.children)||[],A=Math.max(P.height,C.length*(w.height+s)-s,E.length*(w.height+s)-s),R=_O[l]||0,D=w.width+R,k=D+P.width+a,j=(A-P.height)/2;I&&$.push(h(p,{indexes:[0],x:D,y:j,data:o,datum:I,positionH:f?"normal":"flipped"})),S&&$.push(h(p,{indexes:[1],x:k,y:j,data:o,datum:S,positionH:f?"flipped":"normal"}));const L=(H,N,B)=>{if(l==="none")return;const[X,T]=N,J=vt(d,B),Q={x:X,y:T,width:w.width,height:w.height,side:H,color:J||"#ccc",colorBg:d.themeConfig.colorBg||"#fff"};l==="split-line"?M.push(h(xO,Np({},Q))):l==="dot-line"&&M.push(h(bO,Np({},Q)))};if(c){const N=(2*P.width+a+w.width)/2+R,B=D+P.width+a/2,X=j+P.height/2;C.forEach((T,J)=>{const Q=C.length*(w.height+s)-s,V=(A-Q)/2+J*(w.height+s),q=V+w.height/2-X,U=Math.max(0,N*N-q*q),et=B-Math.sqrt(U)-w.width/2;$.push(h(g,{indexes:[0,J],datum:T,data:o,x:et,y:V,positionH:u?"flipped":"normal"})),L("left",[et,V],[0,J])}),E.forEach((T,J)=>{const Q=E.length*(w.height+s)-s,V=(A-Q)/2+J*(w.height+s),q=V+w.height/2-X,U=Math.max(0,N*N-q*q),et=B+Math.sqrt(U)-w.width/2;$.push(h(g,{indexes:[1,J],datum:T,data:o,x:et,y:V,positionH:u?"normal":"flipped"})),L("right",[et,V],[1,J])})}else C.forEach((H,N)=>{const B=C.length*(w.height+s)-s,T=(A-B)/2+N*(w.height+s),J=[0,N],Q=0;$.push(h(g,{indexes:J,datum:H,data:o,x:Q,y:T,positionH:u?"flipped":"normal"})),L("left",[Q,T],J)}),E.forEach((H,N)=>{const B=E.length*(w.height+s)-s,T=(A-B)/2+N*(w.height+s),J=[1,N],Q=k+P.width+R;$.push(h(g,{indexes:J,datum:H,data:o,x:Q,y:T,positionH:u?"normal":"flipped"})),L("right",[Q,T],J)});return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[_,O(F,{children:[h(xt,{children:$}),h(F,{width:0,height:0,children:M})]})]})},xO=t=>{const{x:e,y:n,width:r,height:i,color:o,colorBg:s,side:a}=t,l=n+i,c=`split-line-linear-gradient-${a}`;return O(gt,{children:[h(yt,{children:h(sa,{id:c,startColor:o,stopColor:s,direction:a==="left"?"left-right":"right-left"})}),h(dt,{x:e,y:l,width:r,height:1,fill:`url(#${c})`})]})},bO=t=>{const{x:e,y:n,side:r,width:i,height:o,color:s,colorBg:a}=t,l=6,c=l/3,f=l*2,u=c*2,d=5,p=r==="left"?e+i+l+d:e-l-d,g=n+o/2,m=p-c,y=g-c,x=80,_=r==="left"?x:-x,b=`dot-line-linear-gradient-${r}`;return O(F,{children:[h(yt,{children:h(sa,{id:b,startColor:s,stopColor:a,direction:r==="left"?"left-right":"right-left"})}),O(jt,{children:[h(_t,{x:p-l,y:g-l,width:f,height:f,fill:"none",strokeWidth:1,stroke:s}),h(_t,{x:m,y,width:u,height:u,fill:s})]}),h(dt,{x:r==="left"?p:p+_,y:g-.5,width:x,height:1,fill:`url(#${b})`})]})};wt("compare-hierarchy-left-right",{component:jp,composites:["title","item"]});const Dp=t=>{var e,n;const{Title:r,Items:i,data:o,gap:s=0,itemGap:a=20,columnWidth:l=280,itemPadding:c=5,showColumnBackground:f=!0,columnBackgroundAlpha:u=.08,options:d}=t,[p,g]=i,{title:m,desc:y,items:x=[]}=o,_=r?h(r,{title:m,desc:y}):null,b=Nu(d),v=[],P=[],w=l-c*2,$=G(h(p,{indexes:[0],data:o,datum:x[0],width:l})),M=G(h(g,{indexes:[0,0],data:o,datum:((n=(e=x[0])==null?void 0:e.children)==null?void 0:n[0])||{},width:w})),I=G(h(W,{indexes:[0]})),S=Math.max(...x.map(E=>{var A;return((A=E.children)==null?void 0:A.length)||0}),0),C=$.height+a+S*(M.height+a);if(x.forEach((E,A)=>{const{children:R=[]}=E,D=A*(l+s),k=D,j=0;if(f){const B=`${b[A%b.length]}${Math.round(u*255).toString(16).padStart(2,"0")}`;v.push(h(dt,{x:D,y:j,width:l,height:C,fill:B,rx:0,ry:0,"data-element-type":"shape"}))}v.push(h(p,{indexes:[A],datum:E,data:o,x:k,y:j,width:l})),P.push(h(St,{indexes:[A],x:k+$.width-I.width-10,y:j+10})),A===0&&P.push(h(W,{indexes:[A],x:k+$.width/2-I.width/2,y:j-I.height-5}));const L=j+$.height+a;R.forEach((N,B)=>{const X=L+B*(M.height+a),T=k+c,J=[A,B];v.push(h(g,{indexes:J,datum:N,data:o,x:T,y:X,width:w})),P.push(h(St,{indexes:J,x:T+M.width-I.width-10,y:X+(M.height-I.height)/2})),B<R.length-1&&P.push(h(W,{indexes:[A,B+1],x:T+M.width/2-I.width/2,y:X+M.height-I.height/2}))});const H=k+c;if(R.length>0){const N=L+R.length*(M.height+a);P.push(h(W,{indexes:[A,R.length],x:H+M.width/2-I.width/2,y:N-M.height/2-I.height/2}))}else P.push(h(W,{indexes:[A,0],x:H+M.width/2-I.width/2,y:L-a/2-I.height/2}))}),x.length>0){const E=x.length*(l+s);P.push(h(W,{indexes:[x.length],x:E-s/2-I.width/2,y:-I.height-5}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[_,O(F,{children:[h(xt,{children:v}),h(pt,{children:P})]})]})};wt("compare-hierarchy-row",{component:Dp,composites:["title","item"]});var vO=Object.defineProperty,wO=Object.defineProperties,$O=Object.getOwnPropertyDescriptors,Bp=Object.getOwnPropertySymbols,PO=Object.prototype.hasOwnProperty,MO=Object.prototype.propertyIsEnumerable,Fp=(t,e,n)=>e in t?vO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,so=(t,e)=>{for(var n in e||(e={}))PO.call(e,n)&&Fp(t,n,e[n]);if(Bp)for(var n of Bp(e))MO.call(e,n)&&Fp(t,n,e[n]);return t},ao=(t,e)=>wO(t,$O(e));const Wp=t=>{const{Title:e,Items:n,data:r,levelGap:i=80,nodeGap:o=60,edgeType:s="straight",edgeColorMode:a="gradient",edgeWidth:l=3,edgeStyle:c="solid",edgeDashPattern:f="5,5",edgeCornerRadius:u=0,edgeOffset:d=0,edgeOrigin:p="center",edgeOriginPadding:g=20,edgeMarker:m="none",markerSize:y=12,colorMode:x="branch",options:_}=t,{title:b,desc:v}=r,P=Zt(_),w=q=>{var U;const Z=[...q];return(U=Z[0])!=null&&U.children||(Z[0]=ao(so({},Z[0]),{children:Z.slice(1)}),Z.splice(1)),Z},$=(q,U,Z,et,ct)=>{const it=U+(et-U)/2,ht=Math.min(ct,Math.abs(et-U)/2,Math.abs(Z-q)/2);return ht===0?`M ${q} ${U} L ${q} ${it} L ${Z} ${it} L ${Z} ${et}`:`M ${q} ${U}
|
|
83
83
|
L ${q} ${it-ht}
|
|
84
84
|
Q ${q} ${it} ${q+(Z>q?ht:-ht)} ${it}
|
|
85
85
|
L ${Z-(Z>q?ht:-ht)} ${it}
|
|
86
86
|
Q ${Z} ${it} ${Z} ${it+ht}
|
|
87
|
-
L ${Z} ${et}`},M=q=>{var U;if(!q.length)return null;const Z=q[0],et=(ct,it=[],ht=0)=>{var Pt,Ct;const
|
|
87
|
+
L ${Z} ${et}`},M=q=>{var U;if(!q.length)return null;const Z=q[0],et=(ct,it=[],ht=0)=>{var Pt,Ct;const Tt=[...it,ht];return ao(so({},ct),{_originalIndex:Tt,_depth:Tt.length-1,children:(Ct=(Pt=ct.children)==null?void 0:Pt.map((mt,Nt)=>et(mt,Tt,Nt)))!=null?Ct:[]})};return(U=Z.children)!=null&&U.length?et(Z):ao(so({},Z),{_originalIndex:[0],_depth:0,children:q.slice(1).map((ct,it)=>ao(so({},ct),{_originalIndex:[it+1],_depth:1}))})},I=q=>{let U=0,Z=0;const et=new Map;for(let ct=0;ct<q;ct++){const it=Bu(n,ct),ht=Array(ct+1).fill(0),Pt=G(h(it,{indexes:ht,data:r,datum:pi(E,ht),positionH:"center"}));et.set(ct,Pt),U=Math.max(U,Pt.width),Z=Math.max(Z,Pt.height)}return{levelBounds:et,maxWidth:U,maxHeight:Z}},S=(q,U,Z,et,ct,it)=>{const{x:ht,y:Pt,depth:Ct,data:Tt,parent:mt}=q,Nt=Tt._originalIndex,xe=Bu(n,Ct),Yt=U.get(Ct),Jt=ht+et.x-Yt.width/2,Ut=Pt+et.y,Wt={items:[],btns:[],deco:[]},We=Hi({depth:Ct,originalIndexes:Nt,flatIndex:Tt._flatIndex},x),ln=vt(_,We),Xe=pe({colorPrimary:ln},_);if(Wt.items.push(h(xe,{indexes:Nt,datum:Tt,data:r,x:Jt,y:Ut,positionH:"center",themeColors:Xe})),Wt.btns.push(h(St,{indexes:Nt,x:Jt+(Yt.width-Z.width)/2,y:Ut+Yt.height+5}),h(W,{indexes:[...Nt,0],x:Jt+(Yt.width-Z.width)/2,y:Ut+Yt.height+Z.height+10})),mt){const le=U.get(mt.depth),vo=it.filter(Vt=>Vt.parent===mt),qg=vo.findIndex(Vt=>Vt===q),$r=vo.length;let ce;if(p==="distributed"&&$r>1){const Vt=mt.x+et.x-le.width/2+g,Hn=(mt.x+et.x+le.width/2-g-Vt)/$r;ce=Vt+Hn*qg+Hn/2}else ce=mt.x+et.x;const Me=mt.y+et.y+le.height+d,he=ht+et.x;let cn=Pt+et.y-d;m==="arrow"&&(cn-=y);let wo;if(s==="curved"){const Vt=Me+(cn-Me)/2;wo=`M ${ce} ${Me} C ${ce} ${Vt}, ${he} ${Vt}, ${he} ${cn}`}else if(u>0)wo=$(ce,Me,he,cn,u);else{const Vt=Me+(cn-Me)/2;wo=`M ${ce} ${Me} L ${ce} ${Vt} L ${he} ${Vt} L ${he} ${cn}`}let Gg=P;if(a==="gradient"){const Vt=Hi({depth:mt.depth,originalIndexes:mt.data._originalIndex,flatIndex:mt.data._flatIndex},x),zn=Hi({depth:Ct,originalIndexes:Nt,flatIndex:Tt._flatIndex},x),Hn=vt(_,Vt),sS=vt(_,zn),Ug=`gradient-${mt.data._originalIndex.join("-")}-${Nt.join("-")}`;ct.push(O("linearGradient",{id:Ug,x1:ce,y1:Me,x2:he,y2:cn,gradientUnits:"userSpaceOnUse",children:[h("stop",{offset:"0%",stopColor:Hn}),h("stop",{offset:"100%",stopColor:sS})]})),Gg=`url(#${Ug})`}const oS=c==="dashed"?f:"";if(Wt.deco.push(h(ot,{d:wo,stroke:Gg,strokeWidth:l,strokeDasharray:oS,fill:"none"})),m==="arrow"){const Vt=a==="gradient"?vt(_,We):Zt(_),zn=[{x:he,y:Pt+et.y-d},{x:he-y/2,y:Pt+et.y-d-y},{x:he+y/2,y:Pt+et.y-d-y}];Wt.deco.push(h(be,{points:zn,fill:Vt,width:y,height:y}))}if(m==="dot"){const Vt=Hi({depth:mt.depth,originalIndexes:mt.data._originalIndex,flatIndex:mt.data._flatIndex},x),zn=a==="gradient"?vt(_,Vt):Zt(_);Wt.deco.push(h(_t,{x:ce-y,y:mt.y+et.y+le.height+d-y,width:y*2,height:y*2,fill:zn}));const Hn=a==="gradient"?vt(_,We):Zt(_);Wt.deco.push(h(_t,{x:he-y,y:Pt+et.y-d-y,width:y*2,height:y*2,fill:Hn}))}}return Wt},C=(q,U,Z)=>{const et=new Map;q.forEach(it=>{var ht;const Pt=it.parent?it.parent.data._originalIndex.join("-"):"root";((ht=et.get(Pt))!=null?ht:et.set(Pt,[]).get(Pt)).push(it)});const ct=[];return et.forEach(it=>{if(it.length<=1)return;const ht=it.slice().sort((Ct,Tt)=>Ct.x-Tt.x),Pt=ht[0].y+Z.y-U.height-5;for(let Ct=0;Ct<ht.length-1;Ct++){const Tt=(ht[Ct].x+ht[Ct+1].x)/2+Z.x-U.width/2,mt=ht[Ct].data._originalIndex.slice(0,-1),Nt=ht[Ct].data._originalIndex.at(-1)+1;ct.push(h(W,{indexes:[...mt,Nt],x:Tt,y:Pt}))}}),ct},E=w(r.items),A=e?h(e,{title:b,desc:v}):null,R=G(h(W,{indexes:[0]}));if(!E.length)return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[A,h(F,{children:h(pt,{children:h(W,{indexes:[0],x:-R.width/2,y:-R.height/2})})})]});const D=M(E),k=za(D),{levelBounds:j,maxWidth:L,maxHeight:H}=I(k.height+1),B=gP().nodeSize([L+o,H+i]).separation(()=>1)(k).descendants(),X=Math.min(...B.map(q=>q.x)),T=Math.min(...B.map(q=>q.y)),J={x:Math.max(0,-X+L/2),y:Math.max(0,-T+R.height+10)},Q=[],nt=[],V=[],lt=[];return B.forEach((q,U)=>{q.data._flatIndex=U}),B.forEach(q=>{const{items:U,btns:Z,deco:et}=S(q,j,R,J,lt,B);Q.push(...U),nt.push(...Z),V.push(...et)}),nt.push(...C(B,R,J)),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[A,O(F,{children:[lt.length>0&&h(yt,{children:lt}),h(jt,{children:V}),h(xt,{children:Q}),h(pt,{children:nt})]})]})};wt("hierarchy-tree",{component:Wp,composites:["title","item"]});const Xp=t=>{const{Title:e,Item:n,data:r,gap:i=20,width:o,zigzag:s}=t,{title:a,desc:l,items:c=[]}=r,f=G(h(W,{indexes:[0]})),u=G(h(n,{indexes:[0],data:r,datum:c[0]})),d=o||u.width,p=e?h(e,{title:a,desc:l}):null,g=[],m=[],y=(d-f.width)/2;if(c.forEach((x,_)=>{const b=(u.height+i)*_,v=[_];m.push(h(n,{indexes:v,datum:x,data:r,y:b,width:d,positionV:"middle",positionH:s?_%2===0?"normal":"flipped":"normal"})),g.push(h(St,{indexes:v,x:-f.width-10,y:b+(u.height-f.height)/2}));const P=_===0?-f.height:b-i/2-f.height/2;g.push(h(W,{indexes:v,x:y,y:P}))}),c.length>0){const _=(u.height+i)*(c.length-1)+u.height;g.push(h(W,{indexes:[c.length],x:y,y:_}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,O(F,{children:[h(xt,{children:m}),h(pt,{children:g})]})]})};wt("list-column",{component:Xp,composites:["title","item"]});const Yp=t=>{const{Title:e,Item:n,data:r,columns:i=3,gap:o=24,zigzag:s}=t,{title:a,desc:l,items:c=[]}=r,f=e?h(e,{title:a,desc:l}):null,u=G(h(W,{indexes:[0]})),d=G(h(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),p=[],g=[],m=d.height+o,y=d.width+o,x=new Set;return c.forEach((_,b)=>{const v=Math.floor(b/i),P=b%i,w=P*y,$=v*m,M=[b];g.push(h(n,{indexes:M,datum:_,data:r,x:w,y:$,positionH:"center",positionV:s&&b%2===0?"normal":"flipped"})),p.push(h(St,{indexes:M,x:w+(d.width-u.width)/2,y:$+d.height})),P<i-1&&p.push(h(W,{indexes:[b+1],x:w+d.width+(o-u.width)/2,y:$+(d.height-u.height)/2})),P===0&&!x.has(v)&&(p.push(h(W,{indexes:[b],x:w-o/2-u.width/2,y:$+(d.height-u.height)/2})),x.add(v)),(P===i-1||b===c.length-1)&&p.push(h(W,{indexes:[b+1],x:w+d.width+o/2-u.width/2,y:$+(d.height-u.height)/2}))}),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,O(F,{children:[h(xt,{children:g}),h(pt,{children:p})]})]})};wt("list-grid",{component:Yp,composites:["title","item"]});const Vp=t=>{const{Title:e,Item:n,data:r,gap:i=20,levelGap:o=20}=t,{title:s,desc:a,items:l=[]}=r,c=e?h(e,{title:s,desc:a}):null,f=G(h(W,{indexes:[0]})),u=G(h(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),d=[],p=[],g=Math.ceil(Math.sqrt(l.length)),m=[];let y=l.length;for(let P=0;P<g;P++){const w=Math.min(P+1,y);if(m.push(w),y-=w,y<=0)break}let x=0;const _=Math.max(...m),v=(_*u.width+(_-1)*i)/2;return m.forEach((P,w)=>{const $=w*(u.height+o),M=P*u.width+(P-1)*i,I=v-M/2;for(let S=0;S<P&&x<l.length;S++){const C=I+S*(u.width+i),E=l[x],A=[x];p.push(h(n,{indexes:A,datum:E,data:r,x:C,y:$,positionH:"center"})),d.push(h(St,{indexes:A,x:C+(u.width-f.width)/2,y:$+u.height})),S<P-1&&d.push(h(W,{indexes:[x+1],x:C+u.width+(i-f.width)/2,y:$+(u.height-f.height)/2})),S===0&&d.push(h(W,{indexes:[x],x:C-i/2-f.width/2,y:$+(u.height-f.height)/2})),S===P-1&&d.push(h(W,{indexes:[x+1],x:C+u.width+i/2-f.width/2,y:$+(u.height-f.height)/2})),x++}}),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,O(F,{children:[h(xt,{children:p}),h(pt,{children:d})]})]})};wt("list-pyramid",{component:Vp,composites:["title","item"]});const qp=t=>{const{Title:e,Item:n,data:r,gap:i=20,zigzag:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?h(e,{title:s,desc:a}):null,f=G(h(W,{indexes:[0]})),u=G(h(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),d=[],p=[],g=(u.height-f.height)/2,m=u.height;if(l.forEach((y,x)=>{const _=(u.width+i)*x,b=[x];p.push(h(n,{indexes:b,datum:y,data:r,x:_,positionH:"center",positionV:o&&x%2===0?"normal":"flipped"})),d.push(h(St,{indexes:b,x:_+(u.width-f.width)/2,y:m}));const v=x===0?-(i+f.width)/2:_-(i+f.width)/2;d.push(h(W,{indexes:b,x:v,y:g}))}),l.length>0){const x=(u.width+i)*(l.length-1)+u.width+(i-f.width)/2;d.push(h(W,{indexes:[l.length],x,y:g}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,O(F,{children:[h(xt,{children:p}),h(pt,{children:d})]})]})};wt("list-row",{component:qp,composites:["title","item"]});var OO=Object.defineProperty,Gp=Object.getOwnPropertySymbols,CO=Object.prototype.hasOwnProperty,SO=Object.prototype.propertyIsEnumerable,Up=(t,e,n)=>e in t?OO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,IO=(t,e)=>{for(var n in e||(e={}))CO.call(e,n)&&Up(t,n,e[n]);if(Gp)for(var n of Gp(e))SO.call(e,n)&&Up(t,n,e[n]);return t};const Zp=t=>{const{Item:e,data:n,outerRadius:r=250,innerRadius:i=120,startAngle:o=-90,endAngle:s=270,gapAngle:a=1,options:l}=t,{title:c,items:f=[]}=n,u=pe(l.themeConfig),d=G(h(W,{indexes:[0]})),p=[],g=[],m=[],y=r+100,x=r+100,_=s-o,b=Math.abs(_-360)<.01,v=f.length>0?a*(b?f.length:f.length-1):0,P=_-v,w=f.length>0?P/f.length:0;if(f.forEach((A,R)=>{var D;const k=[R],j=o+(w+a)*R,L=j+w,N=a*Math.PI*r/180/i*(180/Math.PI),B=a,X=(j+B/2)*Math.PI/180,T=(L-B/2)*Math.PI/180,J=(j+N/2)*Math.PI/180,Q=(L-N/2)*Math.PI/180,nt=y+r*Math.cos(X),V=x+r*Math.sin(X),lt=y+r*Math.cos(T),q=x+r*Math.sin(T),U=y+i*Math.cos(J),Z=x+i*Math.sin(J),et=y+i*Math.cos(Q),ct=x+i*Math.sin(Q),it=w>180?1:0,ht=`
|
|
88
88
|
M ${nt} ${V}
|
|
89
89
|
A ${r} ${r} 0 ${it} 1 ${lt} ${q}
|
|
90
90
|
L ${et} ${ct}
|
|
91
91
|
A ${i} ${i} 0 ${it} 0 ${U} ${Z}
|
|
92
92
|
Z
|
|
93
|
-
`.trim(),Pt=
|
|
94
|
-
M ${y} ${
|
|
95
|
-
L ${
|
|
96
|
-
A ${$} ${$} 0 ${
|
|
93
|
+
`.trim(),Pt=vt(l,k);m.push(h(ot,{id:"shape-sector",d:ht,fill:Pt,width:r*2+200,height:r*2+200,"data-element-type":"shape"}));const Tt=(j+w/2)*Math.PI/180,mt=(r+i)/2,Nt=r-i,xe=w*Math.PI/180,Yt=mt*xe,Jt=Math.min(Yt*.8,Nt*.9),Ut=Math.min(Nt*.9,Yt*.8),Wt=G(h(e,{indexes:[0],data:n,datum:f[0],positionH:"center",width:Jt,height:Ut})),We=y+mt*Math.cos(Tt)-Wt.width/2,ln=x+mt*Math.sin(Tt)-Wt.height/2;g.push(h(e,{indexes:k,datum:A,data:n,x:We,y:ln,positionH:"center",width:Jt,height:Ut,themeColors:IO({},pe({colorBg:vt(l,k),colorPrimary:((D=l.themeConfig)==null?void 0:D.colorBg)||"white"}))}));const Xe=r+10,le=y+Xe*Math.cos(Tt)-d.width/2,vo=x+Xe*Math.sin(Tt)-d.height/2;if(p.push(h(St,{indexes:k,x:le,y:vo})),b||R<f.length-1){const $r=(L+a/2)*Math.PI/180,ce=mt,Me=y+ce*Math.cos($r)-d.width/2,he=x+ce*Math.sin($r)-d.height/2;p.push(h(W,{indexes:[R+1],x:Me,y:he}))}}),f.length>0){const R=(o-a/2)*Math.PI/180,D=(r+i)/2,k=y+D*Math.cos(R)-d.width/2,j=x+D*Math.sin(R)-d.height/2;p.push(h(W,{indexes:[0],x:k,y:j}))}const $=i*.9;let M=y,I=x,S=$*1.4,C=$*1.4;if(!b){const R=(o+s)/2*Math.PI/180,D=$*.5;M=y+D*Math.cos(R),I=x+D*Math.sin(R);const k=_*Math.PI*D/180;S=Math.min(k*.8,$*1.4),C=Math.min(D*1.5,$*1.4)}let E="";if(b)E="";else{const A=o*Math.PI/180,R=s*Math.PI/180,D=y+$*Math.cos(A),k=x+$*Math.sin(A),j=y+$*Math.cos(R),L=x+$*Math.sin(R),H=_>180?1:0;E=`
|
|
94
|
+
M ${y} ${x}
|
|
95
|
+
L ${D} ${k}
|
|
96
|
+
A ${$} ${$} 0 ${H} 1 ${j} ${L}
|
|
97
97
|
Z
|
|
98
|
-
`.trim()}return O(B,{id:"infographic-container",children:[h(B,{children:m}),b?h(xt,{id:"shape-center-circle",x:y-$,y:_-$,width:$*2,height:$*2,fill:d.colorPrimaryBg,fillOpacity:.5,"data-element-type":"shape"}):h(ot,{id:"shape-center-sector",d:k,fill:d.colorPrimaryBg,fillOpacity:.5,width:r*2+200,height:r*2+200,"data-element-type":"shape"}),h(Et,{id:"title",x:M-S/2,y:I-C/2,width:S,height:C,alignHorizontal:"center",alignVertical:"middle",fontSize:24,fontWeight:"bold",fill:d.colorText,children:c}),h(_t,{children:g}),h(pt,{children:p})]})};vt("list-sector",{component:up,composites:["title","item"]});const dp=t=>{const{Title:e,Item:n,data:r,columns:i=4,gap:o=20,stepOffset:s=40}=t,{title:a,desc:l,items:c=[]}=r,f=e?h(e,{title:a,desc:l}):null,d=G(h(W,{indexes:[0]})),u=G(h(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),p=[],g=[],m=u.width+o;return c.forEach((y,_)=>{const x=_%i,b=Math.floor(_/i),w=x*m,P=b*(u.height+o),v=x*s,$=P+v,M=[_];g.push(h(n,{indexes:M,datum:y,data:r,x:w,y:$,positionH:"center"})),p.push(h(St,{indexes:M,x:w+(u.width-d.width)/2,y:$+u.height+5}))}),c.forEach((y,_)=>{const x=_%i,b=Math.floor(_/i),w=x*m,P=b*(u.height+o),v=x*s,$=P+v;if(_===0&&p.push(h(W,{indexes:[0],x:w-o/2-d.width/2,y:$+(u.height-d.height)/2})),x<i-1&&_<c.length-1){const M=Math.floor((_+1)/i);b===M&&p.push(h(W,{indexes:[_+1],x:w+u.width+(o-d.width)/2,y:$+(u.height-d.height)/2}))}(x===i-1||_===c.length-1)&&p.push(h(W,{indexes:[_+1],x:w+u.width+(o-d.width)/2,y:$+(u.height-d.height)/2}))}),c.length===0&&p.push(h(W,{indexes:[0],x:(i-1)*m/2+(u.width-d.width)/2,y:0})),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,O(B,{children:[h(_t,{children:g}),h(pt,{children:p})]})]})};vt("list-waterfall",{component:dp,composites:["title","item"]});const Ia={axisColor:"#D9D9D9",axisArrowSize:5,strokeWidth:1,dashArray:"4,2",defaultExtraSpacing:20},pp=t=>{const{Title:e,Item:n,data:r,quadrantWidth:i,quadrantHeight:o,showAxis:s=!0,dashedAxis:a=!0}=t,{title:l,desc:c,items:f=[]}=r,d=e?h(e,{title:l,desc:c}):null,u=Array.from({length:4},(b,w)=>f[w]),p=u[0]?G(h(n,{indexes:[0],data:r,datum:u[0]})):{width:0,height:0},g=i!=null?i:p.width+Ia.defaultExtraSpacing,m=o!=null?o:p.height+Ia.defaultExtraSpacing,y=wP(g,m,p),_=u.map((b,w)=>{if(!b)return null;const P=y[w];return h(n,{indexes:[w],datum:b,data:r,x:P.x,y:P.y,positionH:w%2?"flipped":"normal",positionV:w<2?"normal":"flipped"})}).filter(Boolean),x=bP(g,m,s,a);return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,O(B,{width:g*2,height:m*2,children:[x,h(_t,{children:_})]})]})};function bP(t,e,n,r){if(!n)return[];const{axisColor:i,axisArrowSize:o,strokeWidth:s,dashArray:a}=Ia,l=t,c=e,f=t*2,d=e*2,u=r?a:void 0;return[h(ot,{d:`M 0 ${c} L ${f} ${c}`,stroke:i,strokeWidth:s,strokeDasharray:u,fill:"none","data-element-type":"shape"}),O(Nt,{transform:`translate(${f}, ${c})`,children:[h(ot,{d:`M 0 0 L ${-o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),h(ot,{d:`M 0 0 L ${-o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),O(Nt,{transform:`translate(0, ${c})`,children:[h(ot,{d:`M 0 0 L ${o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),h(ot,{d:`M 0 0 L ${o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),h(ot,{d:`M ${l} 0 L ${l} ${d}`,stroke:i,strokeWidth:s,strokeDasharray:u,fill:"none","data-element-type":"shape"}),O(Nt,{transform:`translate(${l}, 0)`,children:[h(ot,{d:`M 0 0 L ${-o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"}),h(ot,{d:`M 0 0 L ${o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"})]}),O(Nt,{transform:`translate(${l}, ${d})`,children:[h(ot,{d:`M 0 0 L ${-o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"}),h(ot,{d:`M 0 0 L ${o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"})]})]}function wP(t,e,n){const r=t/2,i=e/2;return[{x:r-n.width/2,y:i-n.height/2},{x:t+r-n.width/2,y:i-n.height/2},{x:r-n.width/2,y:e+i-n.height/2},{x:t+r-n.width/2,y:e+i-n.height/2}]}vt("quadrant",{component:pp,composites:["title","item"]});const gp=t=>{const{Title:e,Item:n,data:r,radius:i=150,startMode:o="top"}=t,{title:s,desc:a,items:l=[]}=r,c=e?h(e,{title:s,desc:a}):null,f=G(h(W,{indexes:[0]})),d=G(h(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),u=[],p=[];if(l.length===0)return u.push(h(W,{indexes:[0],x:-f.width/2,y:-f.height/2})),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,h(B,{children:h(pt,{children:u})})]});const g=Math.max(d.width,d.height),m=Math.max(i,g),y=m+g/2,_=l.map(()=>{const v=d.width,$=d.height;return(v+$)/2}),x=_.reduce((v,$)=>v+$,0);let b;o==="equal"?b=-Math.PI/2:b=-Math.PI/2+2*Math.PI/l.length/2;let w=b;l.forEach((v,$)=>{const M=_[$]/x*2*Math.PI,I=w+M/2;w+=M;const S=y+m*Math.cos(I)-d.width/2,C=y+m*Math.sin(I)-d.height/2;p.push(h(n,{indexes:[$],datum:v,data:r,x:S,y:C}));const k=m-Math.max(d.width,d.height)/2-20,A=y+k*Math.cos(I)-f.width/2,z=y+k*Math.sin(I)-f.height/2;u.push(h(St,{indexes:[$],x:A,y:z}))});const P=m-Math.max(d.width,d.height)/2-20;if(l.length>0)for(let v=0;v<l.length;v++){const $=v*2*Math.PI/l.length-Math.PI/2,M=(v+1)%l.length*2*Math.PI/l.length-Math.PI/2;let I;if(v===l.length-1){const k=M+2*Math.PI-$;I=$+k/2}else I=($+M)/2;const S=y+P*Math.cos(I)-f.width/2,C=y+P*Math.sin(I)-f.height/2;u.push(h(W,{indexes:[v+1],x:S,y:C}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,O(B,{children:[h(_t,{children:p}),h(pt,{children:u})]})]})};vt("relation-circle",{component:gp,composites:["title","item"]});const mp=t=>{const{Title:e,Item:n,data:r,spacing:i=120,showConnections:o=!0,options:s}=t,{title:a,desc:l,items:c=[]}=r,f=e?h(e,{title:a,desc:l}):null;if(c.length===0)return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,h(B,{children:h(_t,{})})]});const d=G(h(n,{indexes:[0],data:r,datum:c[0],positionH:"center"}));function u(){const $=c.map((S,C)=>({id:C,data:S,isCenter:C===0,_originalIndex:[C]})),M=c.slice(1).map((S,C)=>({source:0,target:C+1})),I=w9($).force("link",d9(M).id(S=>S.id).distance(i)).force("charge",v9().strength(-50)).force("center",V8(0,0)).force("collision",f9().radius(Math.max(d.width,d.height)/2+10));for(let S=0;S<300;++S)I.tick();return{nodes:$,links:M}}const{nodes:p,links:g}=u(),m=Math.min(...p.map($=>{var M;return(M=$.x)!=null?M:0})),y=Math.min(...p.map($=>{var M;return(M=$.y)!=null?M:0})),_=Math.max(0,-m+d.width/2),x=Math.max(0,-y+d.height/2),b=($,M)=>({positionH:$<-50?"flipped":$>50?"normal":"center",positionV:M<-50?"flipped":M>50?"normal":"middle"}),w=p.map($=>{if($.x==null||$.y==null)return null;const M=$.x+_-d.width/2,I=$.y+x-d.height/2,{positionH:S,positionV:C}=b($.x,$.y);return h(n,{indexes:$._originalIndex,datum:$.data,data:r,x:M,y:I,positionH:S,positionV:C},$.id)}).filter(Boolean),P=new Map(p.map($=>[$.id,$])),v=o?g.map($=>{const M=typeof $.source=="object"?$.source:P.get($.source),I=typeof $.target=="object"?$.target:P.get($.target);if(!M||!I||M.x==null||M.y==null||I.x==null||I.y==null)return null;const S=`M ${M.x+_} ${M.y+x} L ${I.x+_} ${I.y+x}`;return h(ot,{d:S,stroke:Ut(s),strokeWidth:2,strokeOpacity:.6})}).filter(Boolean):[];return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,O(B,{children:[h(B,{children:v}),h(_t,{children:w})]})]})};vt("relation-network",{component:mp,composites:["title","item"]});var vP=Object.defineProperty,$P=Object.defineProperties,PP=Object.getOwnPropertyDescriptors,Ki=Object.getOwnPropertySymbols,yp=Object.prototype.hasOwnProperty,xp=Object.prototype.propertyIsEnumerable,_p=(t,e,n)=>e in t?vP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,MP=(t,e)=>{for(var n in e||(e={}))yp.call(e,n)&&_p(t,n,e[n]);if(Ki)for(var n of Ki(e))xp.call(e,n)&&_p(t,n,e[n]);return t},OP=(t,e)=>$P(t,PP(e)),CP=(t,e)=>{var n={};for(var r in t)yp.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ki)for(var r of Ki(t))e.indexOf(r)<0&&xp.call(t,r)&&(n[r]=t[r]);return n};const Aa=t=>{var e=t,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0}=e,s=CP(e,["width","height","colorPrimary","rotation"]);const a=`gradient-arrow-stroke-${i.replace("#","")}`,l=`gradient-arrow-fill-${i.replace("#","")}`,c=Math.round(n*.515),f=Math.round(r*.275),d=Math.round(r*.875),u=[{x:0,y:f},{x:c,y:f},{x:c,y:r*.075},{x:n,y:r*.575},{x:c,y:r*1.075},{x:c,y:d},{x:0,y:d}],p=n/2,g=r/2,m=`rotate(${o} ${p} ${g})`;return O(gt,{children:[h(_e,OP(MP({},s),{width:n,height:r,points:u,fill:`url(#${l})`,stroke:`url(#${a})`,transform:m,"data-element-type":"shape"})),O(yt,{children:[O("linearGradient",{id:l,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[h("stop",{offset:"0%","stop-color":i,"stop-opacity":"0.36"}),h("stop",{offset:"100%","stop-color":i,"stop-opacity":"0"})]}),O("linearGradient",{id:a,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[h("stop",{offset:"0%","stop-color":i}),h("stop",{offset:"58%","stop-color":i,"stop-opacity":"0"})]})]})]})},SP=({text:t,x:e=0,y:n=0,fontSize:r=56,fontWeight:i="bold",fill:o="#FFFFFF",textAnchor:s="middle",dominantBaseline:a="middle",shadowOffsetX:l=2,shadowOffsetY:c=4,midShadowOffsetX:f=1,midShadowOffsetY:d=2,deepShadowOpacity:u=.3,midShadowOpacity:p=.5})=>O(B,{children:[h("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:u,textAnchor:s,dominantBaseline:a,transform:`translate(${l}, ${c})`,children:t}),h("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:p,textAnchor:s,dominantBaseline:a,transform:`translate(${f}, ${d})`,children:t}),h("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,textAnchor:s,dominantBaseline:a,children:t})]});var IP=Object.defineProperty,AP=Object.defineProperties,kP=Object.getOwnPropertyDescriptors,Ji=Object.getOwnPropertySymbols,bp=Object.prototype.hasOwnProperty,wp=Object.prototype.propertyIsEnumerable,vp=(t,e,n)=>e in t?IP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,EP=(t,e)=>{for(var n in e||(e={}))bp.call(e,n)&&vp(t,n,e[n]);if(Ji)for(var n of Ji(e))wp.call(e,n)&&vp(t,n,e[n]);return t},zP=(t,e)=>AP(t,kP(e)),TP=(t,e)=>{var n={};for(var r in t)bp.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ji)for(var r of Ji(t))e.indexOf(r)<0&&wp.call(t,r)&&(n[r]=t[r]);return n};const HP=t=>{var e=t,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0,strokeWidth:s=4}=e,a=TP(e,["width","height","colorPrimary","rotation","strokeWidth"]);const l=[{x:n/2,y:0},{x:n,y:r},{x:0,y:r}],c=n/2,f=r/2,d=`rotate(${o} ${c} ${f})`;return h(_e,zP(EP({},a),{width:n,height:r,points:l,fill:i,stroke:i,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",transform:d}))},LP=-118,$p=118,Pp=240,RP=180,NP=40,DP="M238.9 69.7a6 6 0 0 1-.1 1v.2l-.2.3v.3l-.1.3a6.2 6.2 0 0 1-.3.6l-.1.3-.2.3-.2.4-.3.5-.1.1a10.9 10.9 0 0 1-.8 1v.1l-.5.5h-.1l-.4.4-.3.3-.3.2-.3.3-.4.2a13 13 0 0 1-.7.5l-.4.3-.5.3-97.5 56.7-.7.4h-.2l-.6.4h-.1l-.8.4h-.2l-.6.4h-.2l-.8.3h-.2l-.5.3-.5.1-.5.1-.5.2h-.5a33.7 33.7 0 0 1-3.2.7h-.2l-1 .2h-1.6l-.7.1h-4.7l-.8-.1h-.2a38.2 38.2 0 0 1-2-.4h-.4l-.7-.2h-.4l-.7-.2-.4-.1a27.3 27.3 0 0 1-2.2-.7h-.2a44.2 44.2 0 0 1-.9-.3l-.5-.3-.4-.1-.5-.2-.3-.2-.5-.2-.3-.2-.8-.4L6.5 78C2.2 75.6 0 72.4 0 69v41.7c0 3.2 2.1 6.5 6.4 9l98.1 56.6a23.2 23.2 0 0 0 1 .6l.6.3.3.1.5.2.4.2.3.1h.2l.2.2a21.4 21.4 0 0 0 1.9.6l.3.1h.2l.7.2a77.6 77.6 0 0 1 1.1.3h.3l.7.2h.4a42.5 42.5 0 0 0 1 .2l1 .2h1.1l.4.1h2.1l.7.1h1.5a22 22 0 0 0 1.8-.2h.4l1.1-.1h.2l1.2-.2h.1l.3-.1.6-.1a12.5 12.5 0 0 0 1-.3h.5l.5-.2a29 29 0 0 0 1-.3h.2l.3-.2h.2a27 27 0 0 0 1.6-.7h.2l.8-.4a19.4 19.4 0 0 0 1.6-.9l97.5-56.7.3-.1.2-.2.4-.2.4-.3.3-.2.3-.3.4-.2.3-.3.3-.3h.1l.3-.3.5-.6h.1l.3-.5h.1v-.1l.4-.4v-.1l.4-.5v-.1l.1-.2.1-.2.2-.3.1-.3.1-.3.1-.1a6.9 6.9 0 0 0 .2-.8l.1-.3v-.4l.1-.3v-1l.2-41.4v.4Z",jP="M232.5 60.4c8.5 4.9 8.5 12.8.1 17.7l-97.5 56.7c-8.4 4.9-22 4.9-30.5 0L6.5 78C-2 73-2 65.3 6.4 60.4l97.5-56.7c8.4-5 22-5 30.5 0l98.1 56.7Z",FP="M119.1 0A31 31 0 0 0 104 3.7L6.4 60.4C-2 65.3-2 73.2 6.4 78l98.2 56.7c4.2 2.4 9.8 3.7 15.3 3.7a31 31 0 0 0 15.2-3.7L232.6 78c8.4-5 8.4-12.8 0-17.7L134.3 3.7A31.2 31.2 0 0 0 119.1 0Zm0 2.5c5.4 0 10.3 1.2 14 3.3l98.2 56.7c3.3 2 5.1 4.3 5.1 6.8 0 2.4-1.8 4.7-5 6.6l-97.5 56.7a28.3 28.3 0 0 1-14 3.4c-5.3 0-10.3-1.2-14-3.4L7.7 76c-3.3-1.9-5-4.3-5-6.7 0-2.4 1.7-4.8 5-6.7L105 5.8a29 29 0 0 1 14-3.3Z",Mp=O("filter",{id:"sequence-ascending-stairs-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[h("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),h("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),h("feOffset",{dx:"0",dy:"4"}),h("feGaussianBlur",{stdDeviation:"6"}),h("feComposite",{in2:"hardAlpha",operator:"out"}),h("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),h("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),h("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),Op=t=>{const{Title:e,Item:n,data:r,options:i,cubeWidth:o=Pp}=t,{title:s,desc:a,items:l=[]}=r,c=e?h(e,{title:s,desc:a}):null;if(l.length===0)return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h(yt,{children:Mp}),c,h(B,{children:h(pt,{children:h(W,{indexes:[0],x:0,y:0})})})]});const f=G(h(W,{indexes:[0]})),d=[],u=[],p=[],g=o/Pp,m=RP*g;return l.forEach((y,_)=>{const x=[_],b=wt(i,x),w=_*(o+LP),P=(l.length-1-_)*$p,v=`cube-gradient-bottom-${_}`,$=`cube-gradient-top-${_}`,M=`cube-gradient-stroke-${_}`;p.push(O(B,{x:w,y:P,id:`cube-${_}`,width:o,height:m,filter:"url(#sequence-ascending-stairs-3d-shadow-filter)",children:[O(yt,{children:[O("linearGradient",{id:v,x1:"0",y1:"124.5",x2:"238.9",y2:"124.5",gradientUnits:"userSpaceOnUse",children:[h("stop",{offset:"0",stopColor:b,stopOpacity:"0.8"}),h("stop",{offset:"1",stopColor:b,stopOpacity:"0.4"})]}),O("linearGradient",{id:$,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[h("stop",{offset:"0",stopColor:b,stopOpacity:"0.9"}),h("stop",{offset:"1",stopColor:b,stopOpacity:"0.5"})]}),O("linearGradient",{id:M,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[h("stop",{offset:"0",stopColor:b}),h("stop",{offset:"1",stopColor:b,stopOpacity:"0.7"})]})]}),O(Nt,{transform:`scale(${g})`,children:[h(ot,{d:DP,fill:`url(#${v})`}),h(ot,{d:jP,fill:`url(#${$})`}),h(ot,{d:FP,fill:`url(#${M})`})]}),h(SP,{text:_+1,x:115,y:65,fontSize:56})]}));const I=w+o+NP,S=P+m/2;if(u.push(h(n,{indexes:x,datum:y,data:r,x:I,y:S,positionH:"normal"})),d.push(h(St,{indexes:x,x:w+o-f.width/2,y:P-f.height/2})),_===0&&d.push(h(W,{indexes:[0],x:w-30-f.width/2,y:P+m/2-f.height/2})),_<l.length-1){const C=(l.length-1-(_+1))*$p,k=w+o-f.width/2,A=(P+m/2+C+m/2)/2-f.height/2;d.push(h(W,{indexes:[_+1],x:k,y:A}))}else d.push(h(W,{indexes:[l.length],x:w+o+30-f.width/2,y:P+m/2-f.height/2}))}),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[h(yt,{children:Mp}),c,O(B,{x:0,y:0,children:[h(B,{children:p}),h(_t,{children:u}),h(pt,{children:d})]})]})};vt("sequence-ascending-stairs-3d",{component:Op,composites:["title","item"]});const Cp=t=>{const{Title:e,Item:n,data:r,hGap:i=0,vGap:o=0}=t,{title:s,desc:a,items:l=[]}=r,c=e?h(e,{title:s,desc:a}):null,f=G(h(n,{indexes:[0],data:r,datum:l[0]})),d=[],u=[],p=l.length,g=f.width+i,m=f.height/2+o,y=f.width/2,x=0+(p-1)*m;return l.forEach((b,w)=>{const P=y+w*g,v=x-w*m,$=[w];d.push(h(n,{indexes:$,datum:b,data:r,x:P,y:v})),u.push(h(St,{indexes:$,x:P+f.width-30,y:v+f.height/2+10})),u.push(h(W,{indexes:$,x:P+f.width+i/2,y:v-30}))}),O(rt,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,O(B,{children:[h(_t,{children:d}),h(pt,{children:u})]})]})};vt("sequence-ascending-steps",{component:Cp,composites:["title","item"]});const BP=20,Sp=5,Ip=t=>{const{Title:e,Item:n,data:r,options:i,radius:o=150,arrowSize:s=4,strokeWidth:a=10}=t,{title:l,desc:c,items:f=[]}=r,d=G(h(W,{indexes:[0]})),u=Ut(i);if(!n)return O(rt,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[e?h(e,{title:l,desc:c}):null,h(B,{children:h(pt,{children:h(W,{indexes:[0],x:0,y:0})})})]});const p=f.length;if(p===0)return O(rt,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[e?h(e,{title:l,desc:c}):null,h(B,{children:h(pt,{children:h(W,{indexes:[0],x:0,y:0})})})]});const g=G(h(n,{indexes:[0],data:r,datum:f[0]})),m=0,y=0,_=2*Math.PI/p,x=[];let b=1/0,w=1/0,P=-1/0,v=-1/0;for(let E=0;E<p;E++){const D=E*_-Math.PI/2,L=m+o*Math.cos(D),T=y+o*Math.sin(D);x.push({x:L,y:T}),b=Math.min(b,L),w=Math.min(w,T),P=Math.max(P,L),v=Math.max(v,T)}const $=[];for(let E=0;E<p;E++){const D=x[E],L=x[(E+1)%p],T=Math.sqrt(Math.pow(L.x-D.x,2)+Math.pow(L.y-D.y,2)),N=Math.min(T*.5,100),F=(D.x+L.x)/2,X=(D.y+L.y)/2;b=Math.min(b,F-N/2),w=Math.min(w,X-N/2),P=Math.max(P,F+N/2),v=Math.max(v,X+N/2);const H=Math.atan2(X-y,F-m),tt=H<0?H+2*Math.PI:H;let K,nt;const V=tt*180/Math.PI,lt=N/2+BP,q=F+Math.cos(H)*lt,U=X+Math.sin(H)*lt;V>=337.5||V<22.5?(K=q,nt=U-g.height/2):V>=22.5&&V<67.5?(K=q,nt=U):V>=67.5&&V<112.5?(K=q-g.width/2,nt=U):V>=112.5&&V<157.5?(K=q-g.width,nt=U):V>=157.5&&V<202.5?(K=q-g.width,nt=U-g.height/2):V>=202.5&&V<247.5?(K=q-g.width,nt=U-g.height):V>=247.5&&V<292.5?(K=q-g.width/2,nt=U-g.height):(K=q,nt=U-g.height),$.push({lineLength:T,circleBigW:N,midX:F,midY:X,itemX:K,itemY:nt}),b=Math.min(b,K),w=Math.min(w,nt),P=Math.max(P,K+g.width+d.width+5),v=Math.max(v,nt+g.height)}const M=Math.max(0,-b),I=Math.max(0,-w),S=e?h(e,{title:l,desc:c}):null,C=[],k=[],A=[],z=[],j=x.map(E=>({x:E.x+M,y:E.y+I}));for(let E=0;E<p;E++){const D=j[E],L=j[(E+1)%p],T=(E+1)%p,N=[E],{lineLength:F,circleBigW:X,midX:H,midY:tt}=$[E],K=Math.max(X-20,20),nt=Math.max(K*.4,16),V=wt(i,N)||u,lt=L.x-D.x,q=L.y-D.y,U=F,Z=lt/U,et=q/U,ct=Sp*2+s,it=Math.min(Sp,(U-ct)/2),ht=Math.max(0,D.x+Z*it),Pt=Math.max(0,D.y+et*it),Ct=Math.max(0,L.x-Z*it),zt=Math.max(0,L.y-et*it),Rt=w7().x(ae=>Math.max(0,ae.x)).y(ae=>Math.max(0,ae.y)).curve(s0)([{x:ht,y:Pt},{x:Ct,y:zt}])||"",Xt=`fork-arrow-${V.replace(/[^a-zA-Z0-9]/g,"")}-${E}`,Kt=`
|
|
98
|
+
`.trim()}return O(F,{id:"infographic-container",children:[h(F,{children:m}),b?h(_t,{id:"shape-center-circle",x:y-$,y:x-$,width:$*2,height:$*2,fill:u.colorPrimaryBg,fillOpacity:.5,"data-element-type":"shape"}):h(ot,{id:"shape-center-sector",d:E,fill:u.colorPrimaryBg,fillOpacity:.5,width:r*2+200,height:r*2+200,"data-element-type":"shape"}),h(kt,{id:"title",x:M-S/2,y:I-C/2,width:S,height:C,alignHorizontal:"center",alignVertical:"middle",fontSize:24,fontWeight:"bold",fill:u.colorText,children:c}),h(xt,{children:g}),h(pt,{children:p})]})};wt("list-sector",{component:Zp,composites:["title","item"]});const Qp=t=>{const{Title:e,Item:n,data:r,columns:i=4,gap:o=20,stepOffset:s=40}=t,{title:a,desc:l,items:c=[]}=r,f=e?h(e,{title:a,desc:l}):null,u=G(h(W,{indexes:[0]})),d=G(h(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),p=[],g=[],m=d.width+o;return c.forEach((y,x)=>{const _=x%i,b=Math.floor(x/i),v=_*m,P=b*(d.height+o),w=_*s,$=P+w,M=[x];g.push(h(n,{indexes:M,datum:y,data:r,x:v,y:$,positionH:"center"})),p.push(h(St,{indexes:M,x:v+(d.width-u.width)/2,y:$+d.height+5}))}),c.forEach((y,x)=>{const _=x%i,b=Math.floor(x/i),v=_*m,P=b*(d.height+o),w=_*s,$=P+w;if(x===0&&p.push(h(W,{indexes:[0],x:v-o/2-u.width/2,y:$+(d.height-u.height)/2})),_<i-1&&x<c.length-1){const M=Math.floor((x+1)/i);b===M&&p.push(h(W,{indexes:[x+1],x:v+d.width+(o-u.width)/2,y:$+(d.height-u.height)/2}))}(_===i-1||x===c.length-1)&&p.push(h(W,{indexes:[x+1],x:v+d.width+(o-u.width)/2,y:$+(d.height-u.height)/2}))}),c.length===0&&p.push(h(W,{indexes:[0],x:(i-1)*m/2+(d.width-u.width)/2,y:0})),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,O(F,{children:[h(xt,{children:g}),h(pt,{children:p})]})]})};wt("list-waterfall",{component:Qp,composites:["title","item"]});const Ya={axisColor:"#D9D9D9",axisArrowSize:5,strokeWidth:1,dashArray:"4,2",defaultExtraSpacing:20},Kp=t=>{const{Title:e,Item:n,data:r,quadrantWidth:i,quadrantHeight:o,showAxis:s=!0,dashedAxis:a=!0}=t,{title:l,desc:c,items:f=[]}=r,u=e?h(e,{title:l,desc:c}):null,d=Array.from({length:4},(b,v)=>f[v]),p=d[0]?G(h(n,{indexes:[0],data:r,datum:d[0]})):{width:0,height:0},g=i!=null?i:p.width+Ya.defaultExtraSpacing,m=o!=null?o:p.height+Ya.defaultExtraSpacing,y=EO(g,m,p),x=d.map((b,v)=>{if(!b)return null;const P=y[v];return h(n,{indexes:[v],datum:b,data:r,x:P.x,y:P.y,positionH:v%2?"flipped":"normal",positionV:v<2?"normal":"flipped"})}).filter(Boolean),_=AO(g,m,s,a);return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,O(F,{width:g*2,height:m*2,children:[_,h(xt,{children:x})]})]})};function AO(t,e,n,r){if(!n)return[];const{axisColor:i,axisArrowSize:o,strokeWidth:s,dashArray:a}=Ya,l=t,c=e,f=t*2,u=e*2,d=r?a:void 0;return[h(ot,{d:`M 0 ${c} L ${f} ${c}`,stroke:i,strokeWidth:s,strokeDasharray:d,fill:"none","data-element-type":"shape"}),O(jt,{transform:`translate(${f}, ${c})`,children:[h(ot,{d:`M 0 0 L ${-o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),h(ot,{d:`M 0 0 L ${-o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),O(jt,{transform:`translate(0, ${c})`,children:[h(ot,{d:`M 0 0 L ${o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),h(ot,{d:`M 0 0 L ${o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),h(ot,{d:`M ${l} 0 L ${l} ${u}`,stroke:i,strokeWidth:s,strokeDasharray:d,fill:"none","data-element-type":"shape"}),O(jt,{transform:`translate(${l}, 0)`,children:[h(ot,{d:`M 0 0 L ${-o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"}),h(ot,{d:`M 0 0 L ${o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"})]}),O(jt,{transform:`translate(${l}, ${u})`,children:[h(ot,{d:`M 0 0 L ${-o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"}),h(ot,{d:`M 0 0 L ${o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"})]})]}function EO(t,e,n){const r=t/2,i=e/2;return[{x:r-n.width/2,y:i-n.height/2},{x:t+r-n.width/2,y:i-n.height/2},{x:r-n.width/2,y:e+i-n.height/2},{x:t+r-n.width/2,y:e+i-n.height/2}]}wt("quadrant",{component:Kp,composites:["title","item"]});const Jp=t=>{const{Title:e,Item:n,data:r,radius:i=150,startMode:o="top"}=t,{title:s,desc:a,items:l=[]}=r,c=e?h(e,{title:s,desc:a}):null,f=G(h(W,{indexes:[0]})),u=G(h(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),d=[],p=[];if(l.length===0)return d.push(h(W,{indexes:[0],x:-f.width/2,y:-f.height/2})),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,h(F,{children:h(pt,{children:d})})]});const g=Math.max(u.width,u.height),m=Math.max(i,g),y=m+g/2,x=l.map(()=>{const w=u.width,$=u.height;return(w+$)/2}),_=x.reduce((w,$)=>w+$,0);let b;o==="equal"?b=-Math.PI/2:b=-Math.PI/2+2*Math.PI/l.length/2;let v=b;l.forEach((w,$)=>{const M=x[$]/_*2*Math.PI,I=v+M/2;v+=M;const S=y+m*Math.cos(I)-u.width/2,C=y+m*Math.sin(I)-u.height/2;p.push(h(n,{indexes:[$],datum:w,data:r,x:S,y:C}));const E=m-Math.max(u.width,u.height)/2-20,A=y+E*Math.cos(I)-f.width/2,R=y+E*Math.sin(I)-f.height/2;d.push(h(St,{indexes:[$],x:A,y:R}))});const P=m-Math.max(u.width,u.height)/2-20;if(l.length>0)for(let w=0;w<l.length;w++){const $=w*2*Math.PI/l.length-Math.PI/2,M=(w+1)%l.length*2*Math.PI/l.length-Math.PI/2;let I;if(w===l.length-1){const E=M+2*Math.PI-$;I=$+E/2}else I=($+M)/2;const S=y+P*Math.cos(I)-f.width/2,C=y+P*Math.sin(I)-f.height/2;d.push(h(W,{indexes:[w+1],x:S,y:C}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,O(F,{children:[h(xt,{children:p}),h(pt,{children:d})]})]})};wt("relation-circle",{component:Jp,composites:["title","item"]});const tg=t=>{const{Title:e,Item:n,data:r,spacing:i=120,showConnections:o=!0,options:s}=t,{title:a,desc:l,items:c=[]}=r,f=e?h(e,{title:a,desc:l}):null;if(c.length===0)return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,h(F,{children:h(xt,{})})]});const u=G(h(n,{indexes:[0],data:r,datum:c[0],positionH:"center"}));function d(){const $=c.map((S,C)=>({id:C,data:S,isCenter:C===0,_originalIndex:[C]})),M=c.slice(1).map((S,C)=>({source:0,target:C+1})),I=E$($).force("link",$$(M).id(S=>S.id).distance(i)).force("charge",k$().strength(-50)).force("center",n$(0,0)).force("collision",v$().radius(Math.max(u.width,u.height)/2+10));for(let S=0;S<300;++S)I.tick();return{nodes:$,links:M}}const{nodes:p,links:g}=d(),m=Math.min(...p.map($=>{var M;return(M=$.x)!=null?M:0})),y=Math.min(...p.map($=>{var M;return(M=$.y)!=null?M:0})),x=Math.max(0,-m+u.width/2),_=Math.max(0,-y+u.height/2),b=($,M)=>({positionH:$<-50?"flipped":$>50?"normal":"center",positionV:M<-50?"flipped":M>50?"normal":"middle"}),v=p.map($=>{if($.x==null||$.y==null)return null;const M=$.x+x-u.width/2,I=$.y+_-u.height/2,{positionH:S,positionV:C}=b($.x,$.y);return h(n,{indexes:$._originalIndex,datum:$.data,data:r,x:M,y:I,positionH:S,positionV:C},$.id)}).filter(Boolean),P=new Map(p.map($=>[$.id,$])),w=o?g.map($=>{const M=typeof $.source=="object"?$.source:P.get($.source),I=typeof $.target=="object"?$.target:P.get($.target);if(!M||!I||M.x==null||M.y==null||I.x==null||I.y==null)return null;const S=`M ${M.x+x} ${M.y+_} L ${I.x+x} ${I.y+_}`;return h(ot,{d:S,stroke:Zt(s),strokeWidth:2,strokeOpacity:.6})}).filter(Boolean):[];return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,O(F,{children:[h(F,{children:w}),h(xt,{children:v})]})]})};wt("relation-network",{component:tg,composites:["title","item"]});var kO=Object.defineProperty,TO=Object.defineProperties,zO=Object.getOwnPropertyDescriptors,lo=Object.getOwnPropertySymbols,eg=Object.prototype.hasOwnProperty,ng=Object.prototype.propertyIsEnumerable,rg=(t,e,n)=>e in t?kO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,HO=(t,e)=>{for(var n in e||(e={}))eg.call(e,n)&&rg(t,n,e[n]);if(lo)for(var n of lo(e))ng.call(e,n)&&rg(t,n,e[n]);return t},LO=(t,e)=>TO(t,zO(e)),RO=(t,e)=>{var n={};for(var r in t)eg.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&lo)for(var r of lo(t))e.indexOf(r)<0&&ng.call(t,r)&&(n[r]=t[r]);return n};const Va=t=>{var e=t,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0}=e,s=RO(e,["width","height","colorPrimary","rotation"]);const a=`gradient-arrow-stroke-${i.replace("#","")}`,l=`gradient-arrow-fill-${i.replace("#","")}`,c=Math.round(n*.515),f=Math.round(r*.275),u=Math.round(r*.875),d=[{x:0,y:f},{x:c,y:f},{x:c,y:r*.075},{x:n,y:r*.575},{x:c,y:r*1.075},{x:c,y:u},{x:0,y:u}],p=n/2,g=r/2,m=`rotate(${o} ${p} ${g})`;return O(gt,{children:[h(be,LO(HO({},s),{width:n,height:r,points:d,fill:`url(#${l})`,stroke:`url(#${a})`,transform:m,"data-element-type":"shape"})),O(yt,{children:[O("linearGradient",{id:l,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[h("stop",{offset:"0%","stop-color":i,"stop-opacity":"0.36"}),h("stop",{offset:"100%","stop-color":i,"stop-opacity":"0"})]}),O("linearGradient",{id:a,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[h("stop",{offset:"0%","stop-color":i}),h("stop",{offset:"58%","stop-color":i,"stop-opacity":"0"})]})]})]})},NO=({text:t,x:e=0,y:n=0,fontSize:r=56,fontWeight:i="bold",fill:o="#FFFFFF",textAnchor:s="middle",dominantBaseline:a="middle",shadowOffsetX:l=2,shadowOffsetY:c=4,midShadowOffsetX:f=1,midShadowOffsetY:u=2,deepShadowOpacity:d=.3,midShadowOpacity:p=.5})=>O(F,{children:[h("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:d,textAnchor:s,dominantBaseline:a,transform:`translate(${l}, ${c})`,children:t}),h("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:p,textAnchor:s,dominantBaseline:a,transform:`translate(${f}, ${u})`,children:t}),h("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,textAnchor:s,dominantBaseline:a,children:t})]});var jO=Object.defineProperty,DO=Object.defineProperties,BO=Object.getOwnPropertyDescriptors,co=Object.getOwnPropertySymbols,ig=Object.prototype.hasOwnProperty,og=Object.prototype.propertyIsEnumerable,sg=(t,e,n)=>e in t?jO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,FO=(t,e)=>{for(var n in e||(e={}))ig.call(e,n)&&sg(t,n,e[n]);if(co)for(var n of co(e))og.call(e,n)&&sg(t,n,e[n]);return t},WO=(t,e)=>DO(t,BO(e)),XO=(t,e)=>{var n={};for(var r in t)ig.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&co)for(var r of co(t))e.indexOf(r)<0&&og.call(t,r)&&(n[r]=t[r]);return n};const YO=t=>{var e=t,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0,strokeWidth:s=4}=e,a=XO(e,["width","height","colorPrimary","rotation","strokeWidth"]);const l=[{x:n/2,y:0},{x:n,y:r},{x:0,y:r}],c=n/2,f=r/2,u=`rotate(${o} ${c} ${f})`;return h(be,WO(FO({},a),{width:n,height:r,points:l,fill:i,stroke:i,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",transform:u}))},VO=-118,ag=118,lg=240,qO=180,GO=40,UO="M238.9 69.7a6 6 0 0 1-.1 1v.2l-.2.3v.3l-.1.3a6.2 6.2 0 0 1-.3.6l-.1.3-.2.3-.2.4-.3.5-.1.1a10.9 10.9 0 0 1-.8 1v.1l-.5.5h-.1l-.4.4-.3.3-.3.2-.3.3-.4.2a13 13 0 0 1-.7.5l-.4.3-.5.3-97.5 56.7-.7.4h-.2l-.6.4h-.1l-.8.4h-.2l-.6.4h-.2l-.8.3h-.2l-.5.3-.5.1-.5.1-.5.2h-.5a33.7 33.7 0 0 1-3.2.7h-.2l-1 .2h-1.6l-.7.1h-4.7l-.8-.1h-.2a38.2 38.2 0 0 1-2-.4h-.4l-.7-.2h-.4l-.7-.2-.4-.1a27.3 27.3 0 0 1-2.2-.7h-.2a44.2 44.2 0 0 1-.9-.3l-.5-.3-.4-.1-.5-.2-.3-.2-.5-.2-.3-.2-.8-.4L6.5 78C2.2 75.6 0 72.4 0 69v41.7c0 3.2 2.1 6.5 6.4 9l98.1 56.6a23.2 23.2 0 0 0 1 .6l.6.3.3.1.5.2.4.2.3.1h.2l.2.2a21.4 21.4 0 0 0 1.9.6l.3.1h.2l.7.2a77.6 77.6 0 0 1 1.1.3h.3l.7.2h.4a42.5 42.5 0 0 0 1 .2l1 .2h1.1l.4.1h2.1l.7.1h1.5a22 22 0 0 0 1.8-.2h.4l1.1-.1h.2l1.2-.2h.1l.3-.1.6-.1a12.5 12.5 0 0 0 1-.3h.5l.5-.2a29 29 0 0 0 1-.3h.2l.3-.2h.2a27 27 0 0 0 1.6-.7h.2l.8-.4a19.4 19.4 0 0 0 1.6-.9l97.5-56.7.3-.1.2-.2.4-.2.4-.3.3-.2.3-.3.4-.2.3-.3.3-.3h.1l.3-.3.5-.6h.1l.3-.5h.1v-.1l.4-.4v-.1l.4-.5v-.1l.1-.2.1-.2.2-.3.1-.3.1-.3.1-.1a6.9 6.9 0 0 0 .2-.8l.1-.3v-.4l.1-.3v-1l.2-41.4v.4Z",ZO="M232.5 60.4c8.5 4.9 8.5 12.8.1 17.7l-97.5 56.7c-8.4 4.9-22 4.9-30.5 0L6.5 78C-2 73-2 65.3 6.4 60.4l97.5-56.7c8.4-5 22-5 30.5 0l98.1 56.7Z",QO="M119.1 0A31 31 0 0 0 104 3.7L6.4 60.4C-2 65.3-2 73.2 6.4 78l98.2 56.7c4.2 2.4 9.8 3.7 15.3 3.7a31 31 0 0 0 15.2-3.7L232.6 78c8.4-5 8.4-12.8 0-17.7L134.3 3.7A31.2 31.2 0 0 0 119.1 0Zm0 2.5c5.4 0 10.3 1.2 14 3.3l98.2 56.7c3.3 2 5.1 4.3 5.1 6.8 0 2.4-1.8 4.7-5 6.6l-97.5 56.7a28.3 28.3 0 0 1-14 3.4c-5.3 0-10.3-1.2-14-3.4L7.7 76c-3.3-1.9-5-4.3-5-6.7 0-2.4 1.7-4.8 5-6.7L105 5.8a29 29 0 0 1 14-3.3Z",cg=O("filter",{id:"sequence-ascending-stairs-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[h("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),h("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),h("feOffset",{dx:"0",dy:"4"}),h("feGaussianBlur",{stdDeviation:"6"}),h("feComposite",{in2:"hardAlpha",operator:"out"}),h("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),h("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),h("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),hg=t=>{const{Title:e,Item:n,data:r,options:i,cubeWidth:o=lg}=t,{title:s,desc:a,items:l=[]}=r,c=e?h(e,{title:s,desc:a}):null;if(l.length===0)return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h(yt,{children:cg}),c,h(F,{children:h(pt,{children:h(W,{indexes:[0],x:0,y:0})})})]});const f=G(h(W,{indexes:[0]})),u=[],d=[],p=[],g=o/lg,m=qO*g;return l.forEach((y,x)=>{const _=[x],b=vt(i,_),v=x*(o+VO),P=(l.length-1-x)*ag,w=`cube-gradient-bottom-${x}`,$=`cube-gradient-top-${x}`,M=`cube-gradient-stroke-${x}`;p.push(O(F,{x:v,y:P,id:`cube-${x}`,width:o,height:m,filter:"url(#sequence-ascending-stairs-3d-shadow-filter)",children:[O(yt,{children:[O("linearGradient",{id:w,x1:"0",y1:"124.5",x2:"238.9",y2:"124.5",gradientUnits:"userSpaceOnUse",children:[h("stop",{offset:"0",stopColor:b,stopOpacity:"0.8"}),h("stop",{offset:"1",stopColor:b,stopOpacity:"0.4"})]}),O("linearGradient",{id:$,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[h("stop",{offset:"0",stopColor:b,stopOpacity:"0.9"}),h("stop",{offset:"1",stopColor:b,stopOpacity:"0.5"})]}),O("linearGradient",{id:M,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[h("stop",{offset:"0",stopColor:b}),h("stop",{offset:"1",stopColor:b,stopOpacity:"0.7"})]})]}),O(jt,{transform:`scale(${g})`,children:[h(ot,{d:UO,fill:`url(#${w})`}),h(ot,{d:ZO,fill:`url(#${$})`}),h(ot,{d:QO,fill:`url(#${M})`})]}),h(NO,{text:x+1,x:115,y:65,fontSize:56})]}));const I=v+o+GO,S=P+m/2;if(d.push(h(n,{indexes:_,datum:y,data:r,x:I,y:S,positionH:"normal"})),u.push(h(St,{indexes:_,x:v+o-f.width/2,y:P-f.height/2})),x===0&&u.push(h(W,{indexes:[0],x:v-30-f.width/2,y:P+m/2-f.height/2})),x<l.length-1){const C=(l.length-1-(x+1))*ag,E=v+o-f.width/2,A=(P+m/2+C+m/2)/2-f.height/2;u.push(h(W,{indexes:[x+1],x:E,y:A}))}else u.push(h(W,{indexes:[l.length],x:v+o+30-f.width/2,y:P+m/2-f.height/2}))}),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[h(yt,{children:cg}),c,O(F,{x:0,y:0,children:[h(F,{children:p}),h(xt,{children:d}),h(pt,{children:u})]})]})};wt("sequence-ascending-stairs-3d",{component:hg,composites:["title","item"]});const fg=t=>{const{Title:e,Item:n,data:r,hGap:i=0,vGap:o=0}=t,{title:s,desc:a,items:l=[]}=r,c=e?h(e,{title:s,desc:a}):null,f=G(h(n,{indexes:[0],data:r,datum:l[0]})),u=[],d=[],p=l.length,g=f.width+i,m=f.height/2+o,y=f.width/2,_=0+(p-1)*m;return l.forEach((b,v)=>{const P=y+v*g,w=_-v*m,$=[v];u.push(h(n,{indexes:$,datum:b,data:r,x:P,y:w})),d.push(h(St,{indexes:$,x:P+f.width-30,y:w+f.height/2+10})),d.push(h(W,{indexes:$,x:P+f.width+i/2,y:w-30}))}),O(rt,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,O(F,{children:[h(xt,{children:u}),h(pt,{children:d})]})]})};wt("sequence-ascending-steps",{component:fg,composites:["title","item"]});const KO=20,ug=5,dg=t=>{const{Title:e,Item:n,data:r,options:i,radius:o=150,arrowSize:s=4,strokeWidth:a=10}=t,{title:l,desc:c,items:f=[]}=r,u=G(h(W,{indexes:[0]})),d=Zt(i);if(!n)return O(rt,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[e?h(e,{title:l,desc:c}):null,h(F,{children:h(pt,{children:h(W,{indexes:[0],x:0,y:0})})})]});const p=f.length;if(p===0)return O(rt,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[e?h(e,{title:l,desc:c}):null,h(F,{children:h(pt,{children:h(W,{indexes:[0],x:0,y:0})})})]});const g=G(h(n,{indexes:[0],data:r,datum:f[0]})),m=0,y=0,x=2*Math.PI/p,_=[];let b=1/0,v=1/0,P=-1/0,w=-1/0;for(let k=0;k<p;k++){const j=k*x-Math.PI/2,L=m+o*Math.cos(j),H=y+o*Math.sin(j);_.push({x:L,y:H}),b=Math.min(b,L),v=Math.min(v,H),P=Math.max(P,L),w=Math.max(w,H)}const $=[];for(let k=0;k<p;k++){const j=_[k],L=_[(k+1)%p],H=Math.sqrt(Math.pow(L.x-j.x,2)+Math.pow(L.y-j.y,2)),N=Math.min(H*.5,100),B=(j.x+L.x)/2,X=(j.y+L.y)/2;b=Math.min(b,B-N/2),v=Math.min(v,X-N/2),P=Math.max(P,B+N/2),w=Math.max(w,X+N/2);const T=Math.atan2(X-y,B-m),J=T<0?T+2*Math.PI:T;let Q,nt;const V=J*180/Math.PI,lt=N/2+KO,q=B+Math.cos(T)*lt,U=X+Math.sin(T)*lt;V>=337.5||V<22.5?(Q=q,nt=U-g.height/2):V>=22.5&&V<67.5?(Q=q,nt=U):V>=67.5&&V<112.5?(Q=q-g.width/2,nt=U):V>=112.5&&V<157.5?(Q=q-g.width,nt=U):V>=157.5&&V<202.5?(Q=q-g.width,nt=U-g.height/2):V>=202.5&&V<247.5?(Q=q-g.width,nt=U-g.height):V>=247.5&&V<292.5?(Q=q-g.width/2,nt=U-g.height):(Q=q,nt=U-g.height),$.push({lineLength:H,circleBigW:N,midX:B,midY:X,itemX:Q,itemY:nt}),b=Math.min(b,Q),v=Math.min(v,nt),P=Math.max(P,Q+g.width+u.width+5),w=Math.max(w,nt+g.height)}const M=Math.max(0,-b),I=Math.max(0,-v),S=e?h(e,{title:l,desc:c}):null,C=[],E=[],A=[],R=[],D=_.map(k=>({x:k.x+M,y:k.y+I}));for(let k=0;k<p;k++){const j=D[k],L=D[(k+1)%p],H=(k+1)%p,N=[k],{lineLength:B,circleBigW:X,midX:T,midY:J}=$[k],Q=Math.max(X-20,20),nt=Math.max(Q*.4,16),V=vt(i,N)||d,lt=L.x-j.x,q=L.y-j.y,U=B,Z=lt/U,et=q/U,ct=ug*2+s,it=Math.min(ug,(U-ct)/2),ht=Math.max(0,j.x+Z*it),Pt=Math.max(0,j.y+et*it),Ct=Math.max(0,L.x-Z*it),Tt=Math.max(0,L.y-et*it),Nt=EP().x(le=>Math.max(0,le.x)).y(le=>Math.max(0,le.y)).curve(X0)([{x:ht,y:Pt},{x:Ct,y:Tt}])||"",Yt=`fork-arrow-${V.replace(/[^a-zA-Z0-9]/g,"")}-${k}`,Jt=`
|
|
99
99
|
M ${-s*.6} ${-s*.4}
|
|
100
100
|
L 0 0
|
|
101
101
|
L ${-s*.6} ${s*.4}
|
|
102
|
-
`;
|
|
102
|
+
`;R.push(h("marker",{id:Yt,viewBox:`${-s} ${-s*.6} ${s*1.2} ${s*1.2}`,refX:-s*.08,refY:0,markerWidth:s,markerHeight:s,orient:"auto",markerUnits:"strokeWidth",children:h("path",{d:Jt,fill:"none",stroke:V,strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"})})),A.push(h(ot,{d:Nt,stroke:V,strokeWidth:a,fill:"none",markerEnd:`url(#${Yt})`,strokeLinecap:"round","data-element-type":"shape"}));const Ut=T+M,Wt=J+I,We=pe({colorPrimary:V},i);A.push(h(_t,{x:Math.max(0,Ut-X/2),y:Math.max(0,Wt-X/2),width:X,height:X,fill:We.colorPrimaryBg,"data-element-type":"shape"})),A.push(h(_t,{x:Math.max(0,Ut-Q/2),y:Math.max(0,Wt-Q/2),width:Q,height:Q,fill:"#ffffff"})),A.push(h(Gt,{x:Math.max(0,Ut-nt/2),y:Math.max(0,Wt-nt/2),size:nt,indexes:N,fill:V}));const ln=Math.max(0,Ut-u.width/2),Xe=Math.max(0,Wt-u.height/2);C.push(h(W,{indexes:[H],x:ln,y:Xe}))}for(let k=0;k<p;k++){const j=[k],L=f[k],{itemX:H,itemY:N}=$[k],B=Math.max(0,H+M),X=Math.max(0,N+I);E.push(h(n,{indexes:j,datum:L,data:r,x:B,y:X}));const T=Math.max(0,B+g.width+5),J=Math.max(0,X+g.height/2-u.height/2);C.push(h(St,{indexes:j,x:T,y:J}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[S,O(F,{x:0,y:0,children:[h(yt,{children:R}),h(F,{children:A}),h(xt,{children:E}),h(pt,{children:C})]})]})};wt("sequence-circle-arrows",{component:dg,composites:["title","item"]});const JO=100,tC=50,eC=6,nC="40",pg=t=>{const{Title:e,Item:n,data:r,options:i,outerRadius:o=180,innerRadius:s=120,itemDistance:a=310,gapAngle:l=5,iconRadius:c=34,iconBgRadius:f=38,iconSize:u=36}=t,{title:d,desc:p,items:g=[]}=r,m=e?h(e,{title:d,desc:p}):null,y=Math.max(a+JO,o+tC),x=Math.min(a,o),_=G(h(W,{indexes:[0]}));if(g.length===0)return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,h(F,{children:h(pt,{children:h(W,{indexes:[0],x:y-20,y:x-20})})})]});const b=[],v=[],P=[],w=[],$=G(h(n,{indexes:[0],data:r,datum:g[0]})),S=(360-g.length*l)/g.length,C=(N,B,X,T,J,Q)=>{const nt=J*Math.PI/180,V=Q*Math.PI/180,lt=N+X*Math.cos(nt),q=B+X*Math.sin(nt),U=N+T*Math.cos(nt),Z=B+T*Math.sin(nt),et=N+T*Math.cos(V),ct=B+T*Math.sin(V),it=N+X*Math.cos(V),ht=B+X*Math.sin(V),Pt=Q-J<=180?"0":"1";return[`M ${lt} ${q}`,`L ${U} ${Z}`,`A ${T} ${T} 0 ${Pt} 1 ${et} ${ct}`,`L ${it} ${ht}`,`A ${X} ${X} 0 ${Pt} 0 ${lt} ${q}`,"Z"].join(" ")},E=({centerX:N,outerRadius:B,angleRad:X,btnBounds:T})=>{const J=N+(B+20)*Math.cos(X)-T.width/2,Q=x+(B+20)*Math.sin(X)-T.height/2;return{x:J,y:Q}},A=eC,R=(s+o)/2,D=A/R*(180/Math.PI);g.forEach((N,B)=>{const X=[B],T=B*(S+l)+270,J=T+S,Q=(T+J)/2,nt=Q*Math.PI/180,V=vt(i,X),lt=V+nC,q=C(y,x,s,o,T,J);P.push(h(ot,{d:q,fill:lt,width:o*2,height:o*2,"data-element-type":"shape"}));const U=C(y,x,s+A,o-A,T+D,J-D);P.push(h(ot,{d:U,fill:V,width:o*2,height:o*2,"data-element-type":"shape"}));const Z=(s+o)/2,et=y+Z*Math.cos(nt),ct=x+Z*Math.sin(nt);w.push(h(_t,{x:et-f,y:ct-f,width:f*2,height:f*2,fill:"#ffffff","data-element-type":"shape"})),w.push(h(_t,{x:et-c,y:ct-c,width:c*2,height:c*2,fill:V,"data-element-type":"shape"})),N.icon&&w.push(h(Gt,{x:et-u/2,y:ct-u/2,indexes:X,size:u,fill:"#fff"}));const it=(Q%360+360)%360,ht=it>=270||it<=90,Pt=it>=75&&it<=105;let Ct,Tt="normal",mt="normal";Pt?(Ct=it,mt="normal",Tt="center"):ht?(it>=270?Ct=-60+(it-270)/90*60:Ct=it/90*60,Tt="normal"):(Ct=120+(it-90)/180*120,Tt="flipped");const Nt=Ct*Math.PI/180,xe=y+a*Math.cos(Nt)-$.width/2;let Yt=x+a*Math.sin(Nt)-$.height/2;Pt&&(Yt=x+o+$.height/2),v.push(h(n,{indexes:X,datum:N,data:r,x:xe,y:Yt,positionH:Tt,positionV:mt}));const Jt=a+40,Ut=y+Jt*Math.cos(Nt)-_.width/2,Wt=x+Jt*Math.sin(Nt)-_.height/2;b.push(h(St,{indexes:X,x:Ut,y:Wt}));const ln=(T+S+l/2)*Math.PI/180,{x:Xe,y:le}=E({centerX:y,outerRadius:o,angleRad:ln,btnBounds:_});b.push(h(W,{indexes:[B+1],x:Xe,y:le}))});const j=(270-l/2)*Math.PI/180,{x:L,y:H}=E({centerX:y,outerRadius:o,angleRad:j,btnBounds:_});return b.unshift(h(W,{indexes:[0],x:L,y:H})),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:50,children:[m,O(F,{children:[h(F,{children:P}),h(F,{children:w}),h(xt,{children:v}),h(pt,{children:b})]})]})};wt("sequence-circular",{component:pg,composites:["title","item"]});const gg=t=>{const{Title:e,Item:n,data:r,gap:i=0,rowGap:o=0,itemsPerRow:s=3,circleStrokeWidth:a=18,options:l}=t,{title:c,desc:f,items:u=[]}=r,d=e?h(e,{title:c,desc:f}):null,p=Zt(l),g=G(h(W,{indexes:[0]})),m=G(h(n,{indexes:[0],data:r,datum:u[0],positionH:"center"})),y=[],x=[],_=[],b=(o+m.height)/2,v=b;if(u.forEach((P,w)=>{const $=Math.floor(w/s),M=w%s,I=$%2===1,C=(I?s-1-M:M)*(m.width+i)+v,E=$*(m.height+o),A=[w];if(x.push(h(n,{indexes:A,datum:P,data:r,x:C,y:E,positionH:"center",positionV:w%2===1?"flipped":"normal"})),y.push(h(St,{indexes:A,x:C+(m.width-g.width)/2,y:E+m.height+10})),w===0&&y.push(h(W,{indexes:A,x:C+(m.width-g.width)/2,y:E-g.height-10})),w<u.length-1){const R=Math.floor((w+1)/s);if($===R)y.push(h(W,{indexes:[w+1],x:C+(m.width-g.width)/2,y:E-g.height-10}));else{const k=E+m.height/2,j=E+m.height+o+m.height/2;let L,H,N;I?(L=C,N=0,H=`M ${L} ${k} A ${b} ${b} 0 0 ${N} ${L} ${j}`):(L=C+m.width,N=1,H=`M ${L} ${k} A ${b} ${b} 0 0 ${N} ${L} ${j}`);const B=j-k,X=vt(l,A),T=vt(l,[w+1]),J=`gradient-arc-${w}`;_.push(O(gt,{children:[h(yt,{children:O("linearGradient",{id:J,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:X||p}),h("stop",{offset:"100%",stopColor:T||p})]})}),h(ot,{d:H,stroke:`url(#${J})`,strokeWidth:a,fill:"none",width:v,height:B,"data-element-type":"shape"})]}));const Q=I?L-b-g.width/2:L+b-g.width/2,nt=E+m.height+o/2-g.height/2;y.push(h(W,{indexes:[w+1],x:Q,y:nt}))}}}),u.length>0){const P=u.length-1,w=Math.floor(P/s),$=P%s,S=(w%2===1?s-1-$:$)*(m.width+i),C=w*(m.height+o);y.push(h(W,{indexes:[u.length],x:S+(m.width-g.width)/2,y:C+m.height+g.height+20}))}if(u.length/s>2){const P=(o+m.height)/2,w=vt(l,[0]);_.push(h(dt,{x:0,y:m.height/2-a/2,width:P,height:a,fill:w||p,"data-element-type":"shape"}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,O(F,{width:s*m.width+(s-1)*i+b*2,height:Math.ceil(u.length/s)*(m.height+o),children:[h(F,{children:_}),h(xt,{children:x}),h(pt,{children:y})]})]})};wt("sequence-color-snake-steps",{component:gg,composites:["title","item"]});const ho=(t,e)=>t===0?0:t===1?e/2:e/2+(t-1)*(e/2*3),fo=(t,e,n)=>{if(t)return 0;const o=e===0?2:n;return n*2+o},rC=(t,e,n,r,i,o,s,a)=>{const l=Math.max(6,o*.15),c=r+(t-1)*i,f=t*l,u=100,p=c+f+u+50,g=p-u;let m=0,y=0,x=0,_=0;if(t>0){let v=1/0,P=-1/0;for(let R=0;R<t;R++){const D=R%2===0,k=Math.floor(R/2),j=ho(k,n),H=0+fo(D,k,n)+j;v=Math.min(v,H-n),P=Math.max(P,H+n)}const w=(v+P)/2,$=0;m=0,_=m+e.width+a+s+n,x=_-$+w;const C=m+e.width/2,E=x-C;y=x+E-e.width/2}return{canvasHeight:p,startY:g,leftItemAlignedX:m,rightItemAlignedX:y,cylinderAreaStartX:_}},iC=(t,e,n,r,i,o,s)=>{const a=t%2===0,l=Math.floor(t/2),c=ho(l,e),f=fo(a,l,e),u=s+f+c,d=o-t*i,p=n+t*r,g=d-p;return{x:u,y:g,height:p,bottomY:d,topY:g}},oC=(t,e,n,r,i,o,s,a,l)=>{const c=t%2===0,f=e.topY+e.height*.05;let u,d;c?(u=i,d=u+n.width+l):(u=o,d=u-l);let p;s==="top"?p=f:s==="bottom"?p=f-n.height:p=f-n.height/2,p+=a;const g=c?e.x-r:e.x+r,m=c?g-l:g+l;return{itemPos:{x:u,y:p},lineStartX:m,lineEndX:d,lineY:f}},sC=(t,e)=>{const n=tt(e),r=[];return r.push(O("linearGradient",{id:`cylinderGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:n.toRgbString(),stopOpacity:.7}),h("stop",{offset:"40%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.65}),h("stop",{offset:"70%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:.6}),h("stop",{offset:"100%",stopColor:n.clone().lighten(20).toRgbString(),stopOpacity:.55})]})),r.push(O("linearGradient",{id:`topGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:1}),h("stop",{offset:"100%",stopColor:"#fafafa",stopOpacity:1})]})),r.push(O("linearGradient",{id:`bottomGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:n.clone().darken(8).toRgbString(),stopOpacity:.75}),h("stop",{offset:"50%",stopColor:n.clone().darken(5).toRgbString(),stopOpacity:.7}),h("stop",{offset:"100%",stopColor:n.clone().darken(12).toRgbString(),stopOpacity:.65})]})),r.push(O("linearGradient",{id:`numberGradient${t}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:n.clone().darken(0).toRgbString(),stopOpacity:.9}),h("stop",{offset:"50%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.85}),h("stop",{offset:"100%",stopColor:n.clone().lighten(10).toRgbString(),stopOpacity:.8})]})),r.push(O("linearGradient",{id:`glowGradient${t}`,x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:[h("stop",{offset:"0%",stopColor:"#FFFFFF",stopOpacity:.2}),h("stop",{offset:"90%",stopColor:"#FFFFFF",stopOpacity:0})]})),r},aC=(t,e,n,r)=>{const{x:i,topY:o,bottomY:s}=e,a=[];a.push(h("ellipse",{id:`cylinder-bottom-${t}`,cx:i,cy:s,rx:n,ry:r,fill:`url(#bottomGradient${t})`,opacity:.7})),a.push(h(ot,{id:`cylinder-body-${t}`,d:`
|
|
103
103
|
M ${i-n} ${o}
|
|
104
104
|
A ${n} ${r} 0 0 0 ${i} ${o+r}
|
|
105
105
|
A ${n} ${r} 0 0 0 ${i+n} ${o}
|
|
@@ -107,23 +107,23 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
|
|
|
107
107
|
A ${n} ${r} 0 0 1 ${i} ${s+r}
|
|
108
108
|
A ${n} ${r} 0 0 1 ${i-n} ${s}
|
|
109
109
|
Z
|
|
110
|
-
`,fill:`url(#cylinderGradient${t})`,stroke:"none"})),a.push(h(dt,{id:`cylinder-glow-${t}`,x:i-n,y:o-r*3,width:n*2,height:r*3,fill:`url(#glowGradient${t})`})),a.push(h("ellipse",{id:`cylinder-top-${t}`,cx:i,cy:o,rx:n,ry:r,fill:`url(#topGradient${t})`}));const l=i,c=o+2,
|
|
111
|
-
M ${f} ${
|
|
112
|
-
L ${
|
|
110
|
+
`,fill:`url(#cylinderGradient${t})`,stroke:"none"})),a.push(h(dt,{id:`cylinder-glow-${t}`,x:i-n,y:o-r*3,width:n*2,height:r*3,fill:`url(#glowGradient${t})`})),a.push(h("ellipse",{id:`cylinder-top-${t}`,cx:i,cy:o,rx:n,ry:r,fill:`url(#topGradient${t})`}));const l=i,c=o+2,d=`translate(${l}, ${c}) matrix(1, 0, ${-.6}, ${.6}, 0, 0) translate(${-l}, ${-c})`;return a.push(h(kt,{id:`cylinder-number-${t}`,x:l,y:c,fontFamily:"Arial Black, sans-serif",fontSize:32,fontWeight:900,fill:`url(#numberGradient${t})`,alignHorizontal:"center",alignVertical:"middle",transform:d,children:t+1})),a},lC=(t,e,n,r,i)=>{const s=[];return s.push(h("circle",{id:`decoration-dot-start-${t}`,cx:e,cy:r,r:2,fill:i})),s.push(h("line",{id:`decoration-line-${t}`,x1:e,y1:r,x2:n,y2:r,stroke:i,strokeWidth:1,opacity:.8})),s.push(h("circle",{id:`decoration-dot-end-${t}`,cx:n,cy:r,r:2,fill:i,opacity:.9})),s},cC=(t,e,n,r,i)=>{if(t===0)return null;const o=[];for(let v=0;v<t;v++){const P=v%2===0,w=Math.floor(v/2),$=ho(w,e),M=fo(P,w,e),I=n+M+$,S=r-v*i;o.push({x:I,y:S})}const s=o[0],a=o[o.length-1],l=6,c=t>5?t*16:100,f=s.x-e-c,u=s.x+e+c,d=s.y+l+c/6,p=a.x-e-c,g=a.x+e+c,m=a.y+l-c/6,y=`
|
|
111
|
+
M ${f} ${d}
|
|
112
|
+
L ${u} ${d}
|
|
113
113
|
L ${g} ${m}
|
|
114
114
|
L ${p} ${m}
|
|
115
115
|
Z
|
|
116
|
-
`,
|
|
117
|
-
M ${
|
|
118
|
-
L ${
|
|
116
|
+
`,x=`
|
|
117
|
+
M ${u} ${d}
|
|
118
|
+
L ${u} ${d+l}
|
|
119
119
|
L ${g} ${m+l}
|
|
120
120
|
L ${g} ${m}
|
|
121
121
|
Z
|
|
122
|
-
`,
|
|
123
|
-
M ${f} ${
|
|
124
|
-
L ${
|
|
125
|
-
L ${
|
|
126
|
-
L ${f} ${
|
|
122
|
+
`,_=`
|
|
123
|
+
M ${f} ${d}
|
|
124
|
+
L ${u} ${d}
|
|
125
|
+
L ${u} ${d+l}
|
|
126
|
+
L ${f} ${d+l}
|
|
127
127
|
Z
|
|
128
|
-
`;return O(B,{children:[h(yt,{children:O(gt,{children:[O("linearGradient",{id:"basePlateTopGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:"#fafafa",stopOpacity:1}),h("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:.98}),h("stop",{offset:"100%",stopColor:"#ececec",stopOpacity:.95})]}),O("linearGradient",{id:"basePlateFrontGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:"#e0e0e0",stopOpacity:.95}),h("stop",{offset:"50%",stopColor:"#d2d2d2",stopOpacity:.93}),h("stop",{offset:"100%",stopColor:"#c5c5c5",stopOpacity:.9})]}),O("linearGradient",{id:"basePlateSideGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:"#b8b8b8",stopOpacity:.92}),h("stop",{offset:"50%",stopColor:"#c0c0c0",stopOpacity:.88}),h("stop",{offset:"100%",stopColor:"#adadad",stopOpacity:.85})]})]})}),h(ot,{id:"base-plate-front",d:x,fill:"url(#basePlateFrontGradient)",stroke:"#c5c5c5",strokeWidth:.3,opacity:.92}),h(ot,{id:"base-plate-side",d:_,fill:"url(#basePlateSideGradient)",stroke:"#aaaaaa",strokeWidth:.3,opacity:.88}),h(ot,{id:"base-plate-top",d:y,fill:"url(#basePlateTopGradient)",stroke:"#e5e5e5",strokeWidth:.5,opacity:.93})]})},Ep=t=>{const{Title:e,Item:n,data:r,options:i,cylinderRx:o=28,cylinderRy:s=18,baseHeight:a=120,heightIncrement:l=40,depthSpacing:c=60,itemVerticalAlign:f="top",itemVerticalOffset:d=-12,firstDecorationWidth:u=90}=t,{title:p,desc:g,items:m=[]}=r,y=e?h(e,{title:p,desc:g}):null,_=G(h(n,{indexes:[0],data:r,datum:m[0],positionH:"center"})),x=G(h(W,{indexes:[0]})),b=Ut(i),w=10,P=Math.max(6,c*.15),v=qP(m.length,_,o,a,l,c,u,w),{startY:$,leftItemAlignedX:M,rightItemAlignedX:I,cylinderAreaStartX:S}=v,C=[],k=[];m.forEach((X,H)=>{const tt=wt(i,[H])||b;C.push(...ZP(H,tt));const K=GP(H,o,a,l,P,$,S),nt=QP(H,K,o,s),{itemPos:V,lineStartX:lt,lineEndX:q,lineY:U}=UP(H,K,_,o,M,I,f,d,w),Z=KP(H,lt,q,U,tt);nt.push(...Z);const et=h(n,{indexes:[H],datum:X,data:r,x:V.x,y:V.y,positionH:H%2===0?"flipped":"normal"}),ct=[h(St,{indexes:[H],x:V.x+_.width/2-x.width/2,y:V.y+_.height+10}),h(W,{indexes:[H],x:V.x+_.width/2-x.width/2,y:V.y-x.height-10})];k[H]={cylinderNodes:nt,itemNode:et,btnNodes:ct,itemX:V.x,itemY:V.y}});let A=1/0,z=1/0,j=-1/0,E=-1/0;k.forEach(X=>{const{itemX:H,itemY:tt}=X;A=Math.min(A,H),z=Math.min(z,tt),j=Math.max(j,H+_.width),E=Math.max(E,tt+_.height)});const D=j-A,L=E-z,T=[h(yt,{children:C})],N=[],F=JP(m.length,o,S,$,P);F&&T.push(F);for(let X=m.length-1;X>=0;X--){const H=k[X];H&&(T.push(O(B,{children:[h(B,{children:H.cylinderNodes}),H.itemNode]})),N.push(...H.btnNodes))}if(m.length>0){const X=m.length%2===0,H=Math.floor(m.length/2),tt=to(H,o),K=eo(X,H,o),nt=S+K+tt,V=$-m.length*P;N.push(h(W,{indexes:[m.length],x:nt,y:V-100}))}return O(rt,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y,O(B,{width:D,height:L,children:[h(_t,{children:T}),h(pt,{children:N})]})]})};vt("sequence-cylinders-3d",{component:Ep,composites:["title","item"]});const $t={WIDTH:160,HEIGHT:260,ARROW_HEIGHT:148,ARROW_WIDTH:100,LINE_X:100,RECT_X:0,RECT_Y:80,RECT_WIDTH:100,RECT_HEIGHT:130},$e={SIZE:8,MAX_COUNT:40,MIN_COUNT:5,ARROW_RATIO:.6,MIN_ARROW_COUNT:3};function tM(t,e,n){return(t+e*7+n*13)%100}function eM(t){const e=Math.ceil(Math.sqrt(t*1.5)),n=Math.ceil(t/e);return{cols:e,rows:n}}function nM(t,e,n,r,i,o,s,a){const l=Math.max(i,Math.min(t+n,o)),c=Math.max(s,Math.min(e+r,a));return{x:l,y:c}}function zp({count:t,rectX:e,rectY:n,rectWidth:r,rectHeight:i,seed:o}){const s=[],a=$e.SIZE/2,{cols:l,rows:c}=eM(t),f=(r-a*2)/(l+1),d=(i-a*2)/(c+1);let u=0;for(let p=0;p<c&&u<t;p++)for(let g=0;g<l&&u<t;g++){const m=tM(o,p,g),y=m%16-8,_=m*3%12-6,x=p%2===1?f/2:0,b=e+a+(g+1)*f+x,w=n+a+(p+1)*d,{x:P,y:v}=nM(b,w,y,_,e+a,e+r-a,n+a,n+i-a);s.push({x:P,y:v,colorIndex:u}),u++}return s}function rM(t,e){if(e<=1)return $e.MAX_COUNT;const n=t/(e-1),r=$e.MAX_COUNT-$e.MIN_COUNT;return Math.round($e.MAX_COUNT-r*n)}function iM(){const s={topLeft:{x:40,y:25},topRight:{x:160,y:75},bottomLeft:{x:40,y:205},bottomRight:{x:160,y:255}},a=[];for(let l=0;l<=12;l++){const c=l/12,f={x:s.topLeft.x+(s.bottomLeft.x-s.topLeft.x)*c,y:s.topLeft.y+(s.bottomLeft.y-s.topLeft.y)*c},d={x:s.topRight.x+(s.bottomRight.x-s.topRight.x)*c,y:s.topRight.y+(s.bottomRight.y-s.topRight.y)*c};a.push(`M${f.x} ${f.y}L${d.x} ${d.y}`);const u={x:s.topLeft.x+(s.topRight.x-s.topLeft.x)*c,y:s.topLeft.y+(s.topRight.y-s.topLeft.y)*c},p={x:s.bottomLeft.x+(s.bottomRight.x-s.bottomLeft.x)*c,y:s.bottomLeft.y+(s.bottomRight.y-s.bottomLeft.y)*c};a.push(`M${u.x} ${u.y}L${p.x} ${p.y}`)}return a.join("")}function Tp(t,e){return t.map(n=>{const r=wt(e,[n.colorIndex]);return h(ot,{d:"M4 0L8 4L4 8L0 4Z",fill:r,x:n.x,y:n.y,width:$e.SIZE,height:$e.SIZE,"data-element-type":"shape"})})}function oM(t,e,n,r,i){return O(B,{x:e,y:0,width:$t.WIDTH,height:$t.HEIGHT,children:[O(Nt,{children:[h(ot,{d:iM(),stroke:"#D9D9D9",strokeWidth:2}),h(ot,{d:`M${$t.LINE_X} 25V260`,stroke:"#BFBFBF",strokeWidth:2,strokeLinecap:"round"}),h(dt,{x:$t.RECT_X,y:$t.RECT_Y,width:$t.RECT_WIDTH,height:$t.RECT_HEIGHT,fill:"#FFCB0E",fillOpacity:.2})]}),h(gt,{children:Tp(r,i)}),h(Et,{x:$t.LINE_X-25,y:0,width:50,height:20,fontSize:20,fontWeight:"bold",alignHorizontal:"center",alignVertical:"top",fill:n,children:String(t+1).padStart(2,"0")})]})}function sM(t,e){const n=$t.RECT_Y+$t.RECT_HEIGHT/2-$t.ARROW_HEIGHT/2,r=Math.max(Math.round($e.MIN_COUNT*$e.ARROW_RATIO),$e.MIN_ARROW_COUNT),i=zp({count:r,rectX:0,rectY:14,rectWidth:57,rectHeight:120,seed:999});return O(B,{x:t+$t.WIDTH,y:n,children:[h(ot,{d:"M0 13.9679H57.1429V0L100 74L57.1429 148V134.032H0V13.9679Z",width:$t.ARROW_WIDTH,height:$t.ARROW_HEIGHT,fill:"#FFCB0E",fillOpacity:.2,"data-element-type":"shape"}),h(gt,{children:Tp(i,e)})]})}const Hp=t=>{const{Title:e,Item:n,data:r,gap:i=20,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?h(e,{title:s,desc:a}):null,f=G(h(W,{indexes:[0]})),d=G(h(n,{indexes:[0],data:r,datum:l[0],width:$t.WIDTH,positionH:"center"})),u=[],p=[],g=[],m=$t.HEIGHT+i,y=m+d.height+10;if(l.forEach((_,x)=>{const b=x*$t.WIDTH,w=[x],P=wt(o,w),v=rM(x,l.length),$=zp({count:v,rectX:$t.RECT_X,rectY:$t.RECT_Y,rectWidth:$t.RECT_WIDTH,rectHeight:$t.RECT_HEIGHT,seed:x*100});u.push(oM(x,b,P,$,o)),x===l.length-1&&u.push(sM(b,o)),p.push(h(n,{indexes:w,datum:_,data:r,width:$t.WIDTH,x:b+$t.LINE_X-$t.WIDTH/2,y:m,positionH:"center"})),g.push(h(St,{indexes:w,x:b+$t.LINE_X-f.width/2,y})),x<l.length-1&&g.push(h(W,{indexes:[x+1],x:b+$t.WIDTH-f.width/2,y}))}),l.length>0){g.unshift(h(W,{indexes:[0],x:-f.width/2,y}));const _=(l.length-1)*$t.WIDTH;g.push(h(W,{indexes:[l.length],x:_+$t.WIDTH-f.width/2,y}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,O(B,{width:$t.WIDTH*l.length+$t.ARROW_WIDTH,height:$t.HEIGHT+i+d.height,children:[h(B,{children:u}),h(_t,{children:p}),h(pt,{children:g})]})]})};vt("sequence-filter-mesh",{component:Hp,composites:["title","item"]});const Lp=t=>{const{Title:e,Item:n,data:r,gap:i=30,cardPadding:o=10,options:s}=t,{title:a,desc:l,items:c=[]}=r,f=e?h(e,{title:a,desc:l}):null,d=Ut(s),u=de({colorPrimary:d},s),p=G(h(W,{indexes:[0]})),g=G(h(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),m=[],y=[],_=[],x=g.width+o*2,b=g.height+o*2+30,w=8,P=6,v=Math.max(p.height+20,40),$=40;if(c.forEach((M,I)=>{const S=I%2===0,C=I*(x+i);let k;S?I%4===2?k=v:k=v+$:k=v+$+60;const A=[I],z=wt(s,A)||d;if(S){const L=z===d?u.colorPrimaryBg||"#E8F3FF":`${z}20`,T=h(dt,{x:C,y:k,width:x,height:b,fill:L,rx:20,ry:20});_.push(T)}y.push(h(n,{indexes:A,datum:M,data:r,x:C+o,y:k+o,positionH:"center",positionV:"normal"}));const j=c.length*w+(c.length-1)*P,E=C+(x-j)/2,D=k+g.height+20;for(let L=0;L<c.length;L++){const T=E+L*(w+P),N=L===I;_.push(h(xt,{x:T,y:D,width:w,height:w,fill:N?z:"transparent",stroke:z,strokeWidth:2}))}m.push(h(St,{indexes:A,x:C+(x-p.width)/2,y:k+b+10})),I===0?m.push(h(W,{indexes:A,x:C+(x-p.width)/2,y:k-p.height-10})):m.push(h(W,{indexes:A,x:C-i/2-p.width/2,y:v-p.height-10}))}),c.length>0){const M=[],S=i/2,C=6,k=v+$,A=0-S,z=k+b/2;M.push(`M ${A} ${z-C}`),c.forEach((nt,V)=>{const lt=V%2===0,q=V*(x+i);let U;lt?V%4===2?U=v:U=v+$:U=v+$+60;const Z=q-S,et=q+x+S,ct=U-S,it=U+b+S,ht=U+b/2;lt?(M.push(`L ${Z} ${ct+35}`),M.push(`Q ${Z} ${ct} ${Z+35} ${ct}`),M.push(`L ${et-35} ${ct}`),M.push(`Q ${et} ${ct} ${et} ${ct+35}`),M.push(`L ${et} ${ht-C}`)):(M.push(`L ${Z} ${ht}`),M.push(`L ${Z} ${it-35}`),M.push(`Q ${Z} ${it} ${Z+35} ${it}`),M.push(`L ${et-35} ${it}`),M.push(`Q ${et} ${it} ${et} ${it-35}`),M.push(`L ${et} ${ht+C}`))});const j=c.length-1,E=j%2===0,D=j*(x+i);let L;E?j%4===2?L=v:L=v+$:L=v+$+60;const T=D+x+S,N=L+b/2,F=M.join(" "),X="gradient-zigzag-path",H=wt(s,[0])||d,tt=wt(s,[c.length-1])||d,K=c.map((nt,V)=>{const lt=V/(c.length-1)*100,q=wt(s,[V])||d;return h("stop",{offset:`${lt}%`,stopColor:q})});_.unshift(O(gt,{children:[h(yt,{children:h("linearGradient",{id:X,x1:A,y1:z,x2:T,y2:N,gradientUnits:"userSpaceOnUse",children:K})}),h(ot,{d:F,stroke:`url(#${X})`,strokeWidth:2,fill:"none",width:(c.length-1)*(x+i)+x+S*2,height:b+120})]})),_.unshift(h(xt,{x:A-C,y:z-C,width:C*2,height:C*2,fill:"transparent",stroke:H,strokeWidth:2})),_.unshift(h(xt,{x:T-C,y:N-C,width:C*2,height:C*2,fill:"transparent",stroke:tt,strokeWidth:2}))}if(c.length>0){const I=(c.length-1)*(x+i);m.push(h(W,{indexes:[c.length],x:I+x+(i-p.width)/2,y:v-p.height-10}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,O(B,{children:[h(Nt,{children:_}),h(_t,{children:y}),h(pt,{children:m})]})]})};vt("sequence-horizontal-zigzag",{component:Lp,composites:["title","item"]});var aM=Object.defineProperty,lM=Object.defineProperties,cM=Object.getOwnPropertyDescriptors,Rp=Object.getOwnPropertySymbols,hM=Object.prototype.hasOwnProperty,fM=Object.prototype.propertyIsEnumerable,Np=(t,e,n)=>e in t?aM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,no=(t,e)=>{for(var n in e||(e={}))hM.call(e,n)&&Np(t,n,e[n]);if(Rp)for(var n of Rp(e))fM.call(e,n)&&Np(t,n,e[n]);return t},ro=(t,e)=>lM(t,cM(e));function uM(t){const{width:e,height:n,colorPrimary:r}=t,i=r,o=Q.mix(r,"#000",20).toHexString(),s=Q.mix(r,"#fff",50).toHexString(),a=Q.mix(s,"#000",15).toHexString();function l($,M){const S=[{position:.25,offset:.1},{position:.45,offset:-.02},{position:.6,offset:.04},{position:.75,offset:-.1}],C={x:0,y:M},k={x:$,y:M},A={x:$/2,y:0},z={x:$/2,y:M},j=M*.35,E=j/M,D={x:A.x*(1-E)+C.x*E,y:j},L={x:A.x,y:j},T={x:A.x*(1-E)+k.x*E,y:j},N=S.map(H=>{const tt=D.x+(T.x-D.x)*H.position,K=j,nt=M*H.offset;return{x:tt,y:K+nt,position:H.position,offset:H.offset}});N.sort((H,tt)=>H.position-tt.position);const F=N.filter(H=>H.x<=L.x),X=N.filter(H=>H.x>L.x);return{leftBottom:C,rightBottom:k,peak:A,centerBottom:z,snowLineY:j,leftEdge:D,centerSnow:L,rightEdge:T,leftRipples:F,rightRipples:X}}const{leftRipples:c,rightRipples:f,leftBottom:d,rightBottom:u,peak:p,centerBottom:g,leftEdge:m,centerSnow:y,rightEdge:_}=l(e,n),x=[p,m,...c,y],b=[p,y,...f,_],w=[m,...c,y,g,d],P=[y,...f,_,u,g],v=$=>$.map(M=>`${M.x},${M.y}`).join(" ");return O(Nt,ro(no({},t),{children:[h("polygon",{points:v(x),fill:s}),h("polygon",{points:v(b),fill:a}),h("polygon",{points:v(w),fill:i}),h("polygon",{points:v(P),fill:o})]}))}function dM(t){const n={tiny:27,small:48,medium:54,large:72}[t]||54,r="#17C76F",i="#139B57",o="#737373",s=n*.7,a=n-s,l=s*.8,c=l,f=c/6,d=(c-f)/2,u=s;return O(Nt,{width:c,height:n,children:[h("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:r,clipPath:"inset(0 50% 0 0)"}),h("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:i,clipPath:"inset(0 0 0 50%)"}),h("rect",{x:d,y:u,width:f,height:a,fill:o})]})}function pM(t){const{width:e,height:n}=t,r=e/2,i=n/2,o=Math.min(e,n)*.28,s=Math.min(e,n)*.14,a=Math.min(e,n)*.07,l=0,c=i-a/2,f=a*.4,d=8,u=Array.from({length:d},(p,g)=>{const m=360/d*g;return h("rect",{x:l,y:c,width:s,height:a,rx:f,ry:f,fill:"#FFCB0E",transform:`rotate(${m}, ${r}, ${i})`})});return O(Nt,ro(no({},t),{children:[h("circle",{cx:r,cy:i,r:o,fill:"#FFCB0E"}),...u]}))}function gM(t){return t.type==="single"?h(Nt,ro(no({},t),{width:54,height:36,children:h("path",{d:"M10.2635 13.3806C11.0019 9.99045 12.7381 6.91002 15.2405 4.55004C17.743 2.19007 20.8929 0.662716 24.2701 0.171643C27.6473 -0.31943 31.0914 0.24912 34.143 1.80148C37.1946 3.35385 39.7087 5.81625 41.3501 8.86031C44.8835 9.0468 48.1994 10.6544 50.5684 13.3294C52.9373 16.0044 54.1653 19.5277 53.9821 23.1242C53.7989 26.7207 52.2195 30.0959 49.5914 32.5071C46.9634 34.9184 43.5019 36.1683 39.9684 35.9818H11.1517C4.93436 35.9818 0 30.9593 0 24.6309C0.0598447 21.8016 1.13799 19.093 3.02989 17.0192C4.9218 14.9454 7.49584 13.6506 10.2635 13.3806Z",fill:"#70CAF8"})})):O(Nt,ro(no({},t),{width:73,height:40,children:[h("path",{d:"M61.6461 14.9716C60.8681 11.1875 58.9581 7.73823 56.1763 5.09315C53.3944 2.44806 49.8758 0.735682 46.0992 0.189041C42.3226 -0.357601 38.4714 0.288046 35.0699 2.03812C31.6683 3.7882 28.8815 6.5577 27.0889 9.96971C23.161 10.1687 19.4719 11.9405 16.8333 14.8953C14.1947 17.8502 12.8227 21.746 13.0191 25.7258C13.2155 29.7055 14.9642 33.4433 17.8806 36.1167C20.7969 38.7901 24.642 40.1802 28.5699 39.9812H60.6588C67.5702 39.9812 73.0006 34.4791 73.0006 27.4764C73.0006 20.9739 67.8664 15.4718 61.6461 14.9716Z",fill:"#70CAF8"}),h("path",{d:"M21.9691 6.47136e-09C25.9369 6.47136e-09 29.5264 1.62125 32.0003 4.21094C30.0604 5.7917 28.4423 7.75571 27.2581 10C23.3149 10.1989 19.6111 11.9702 16.9622 14.9238C14.3136 17.8774 12.936 21.772 13.1331 25.75C13.2057 27.2131 13.4902 28.6432 13.9652 30H10.7689C7.96116 29.8907 5.29664 28.7203 3.30402 26.7217C1.31144 24.7231 0.135825 22.0419 0.0110544 19.21C-0.113702 16.378 0.821178 13.6017 2.63019 11.4326C4.43921 9.26356 6.99065 7.8602 9.77766 7.5C11.9582 3.00012 16.6168 8.76701e-05 21.9691 6.47136e-09Z",fill:"#5BA2C6"})]}))}const Dp=t=>{const{Title:e,Item:n,data:r,gap:i=20,minHeight:o=100,maxHeight:s=200,minWidth:a=260,maxWidth:l=300,options:c}=t,{title:f,desc:d,items:u=[]}=r,p=e?h(e,{title:f,desc:d}):null,g=[],m=[],y=[],_=[],x=u.length,b=de(c.themeConfig),w=60,P={single:{width:54,height:36},double:{width:73,height:40}},v=[],$=[];let M=0,I=0;u.forEach((N,F)=>{const X=x>1?F/(x-1):0,tt=(o+(s-o)*X)*1.6,K=Math.max(a,Math.min(l,tt));v.push(K);const nt=I;$.push(nt),I+=K/2,F===x-1&&(M=nt+K)});const S=$[0],C=$[x-1]+v[x-1],k=C-S,A=x>1?(k-i*(x-1))/x:k,z=G(h(n,{indexes:[0],data:r,datum:u[0],width:A})),j=32,E=s+i,D=E+j+10;u.forEach((N,F)=>{const X=[F],H=o+(s-o)*(x>1?F/(x-1):0),tt=v[F],K=$[F],nt=s-H,V=wt(c,[F])||b.colorPrimary;y.push(h(uM,{colorPrimary:V,x:K,y:nt,width:tt,height:H}));const lt=S+F*(A+i);_.push(h(Et,{x:lt,y:E,width:A,height:j,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:V,backgroundColor:V,backgroundOpacity:.5,backgroundRadius:4,children:String(F+1).padStart(2,"0")})),g.push(h(n,{indexes:X,datum:N,data:r,x:lt,y:D,width:A}))});const L=G(h(W,{indexes:[0]})),T=D+z.height+10;if(u.forEach((N,F)=>{const X=[F],H=S+F*(A+i);m.push(h(St,{indexes:X,x:H+A/2-L.width/2,y:T})),F<u.length-1&&m.push(h(W,{indexes:[F+1],x:H+A+i/2-L.width/2,y:T}))}),x>0){const N=S;m.unshift(h(W,{indexes:[0],x:N-i/2-L.width/2,y:T}));const F=S+(x-1)*(A+i);m.push(h(W,{indexes:[x],x:F+A+i/2-L.width/2,y:T})),y.push(h(pM,{x:M-w-20,y:-35,width:w,height:w}));const X=["tiny","small","medium","large"],H={tiny:27,small:48,medium:54,large:72},tt={tiny:14.85,small:26.4,medium:29.7,large:39.6},K=[],nt=(lt,q,U=5)=>K.some(Z=>!(lt+q+U<Z.x||lt>Z.x+Z.width+U));u.forEach((lt,q)=>{const U=$[q],Z=v[q],ct=q===x-1?3:q===0?1:2;for(let it=0;it<ct;it++){const ht=q*100+it*37,Pt=ht*17%X.length,Ct=X[Pt],zt=H[Ct],mt=tt[Ct];let Rt=0,xe=0,Xt=!1;for(;Rt<20&&!Xt;){const Kt=(ht*13+Rt*19)%100/100,Gt=U+Z*.15,Bt=U+Z*.85-mt;xe=Gt+(Bt-Gt)*Kt,nt(xe,mt)||(Xt=!0),Rt++}if(Xt){K.push({x:xe,width:mt});const Kt=s-zt;y.push(h(B,{x:xe,y:Kt,children:dM(Ct)}))}}});const V=Math.max(1,Math.floor(x/1.5));for(let lt=0;lt<V;lt++){const q=lt*11+x*5+1,U=q%2===0?"single":"double",Z=P[U],et=C-S-Z.width,ct=S+q*7%100/100*et,it=q*13%40;y.push(h(gM,{type:U,x:ct,y:it,width:Z.width,height:Z.height}))}}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,O(B,{children:[h(B,{children:y}),h(B,{children:_}),h(_t,{children:g}),h(pt,{children:m})]})]})};vt("sequence-mountain",{component:Dp,composites:["title","item"]});const io=t=>Math.round(t*1e10)/1e10,ka=(t,e)=>io(Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))),oo=Math.PI,mM=oo*2,yM=(t,e)=>{const n=e-t;return n>oo&&n<mM||n<0&&n>-oo?-1:1},xM=(t,e,n,r,i,o)=>{const s=Math.atan2(t.y-e.y,t.x-e.x),a=Math.atan2(n.y-e.y,n.x-e.x),l=Math.acos((r*r+o*o-i*i)/(2*r*o)),c=1/Math.tan(l/2),f=yM(s,a),d=s+f*l/2;return{prev:s,next:a,main:l,vel:c,dir:f,bis:d}},Ea=Math.PI,_M=(t,e,n)=>t.reduce((r,i)=>{const{x:o,y:s,angle:{prev:a,next:l},arc:{x:c,y:f,radius:d}}=i,u=i.angle.dir*-1,p=a+u*Ea/2,g=(u*Ea+l-a)%Ea,m=n-1,y=g/m,_=[];if(!y)return r.concat({x:o,y:s});for(let x=0;x<=m;x++)_.push({x:c+Math.cos(p+y*x)*d,y:f+Math.sin(p+y*x)*d});return r.concat(_)},[]),bM=(t,e=0)=>{const n=t.length,r=[],i=[],o=[];t.forEach((l,c)=>{const f=t[(c-1+n)%n],d=t[(c+1)%n],u=ka(f,l),p=ka(f,d),g=ka(l,d),m=xM(f,l,d,u,p,g);m.main===0&&(m.main=Number.EPSILON,m.vel=Number.MAX_SAFE_INTEGER),m.main===oo&&(m.vel=0);const y={x:l.x,y:l.y,angle:m,offset:0,arc:{radius:e,hit:e,lim:Math.min(g/m.vel,u/m.vel,l.r||0)},in:{length:u,rest:u},out:{length:g,rest:g},locked:!1,id:c,get prev(){return r[(c-1+n)%n]},get next(){return r[(c+1)%n]}};isNaN(m.main)&&(m.main=0,m.bis=m.prev||m.next,o.push(y)),typeof l.r=="number"&&(l.r===0?o.push(y):i.push(y)),r.push(y)}),o.forEach(l=>{l.angle.vel=0,l.arc.radius=0,za(l)}),r.forEach(l=>{l.arc.hit=Math.min(l.out.rest/(l.angle.vel+l.next.angle.vel),l.in.rest/(l.angle.vel+l.prev.angle.vel))});let s=so(i);for(;s;)wM(s),s=so(i);for(s=so(r);s;)vM(s,e),s=so(r);const a=r.map(l=>{const c=l.arc.radius/Math.sin(l.angle.main/2);return{id:l.id,x:l.x,y:l.y,angle:{main:io(l.angle.main),prev:l.angle.prev,next:l.angle.next,bis:l.angle.bis,dir:l.angle.dir},offset:io(l.offset),arc:{radius:io(l.arc.radius),x:l.x+(Math.cos(l.angle.bis)*c||0),y:l.y+(Math.sin(l.angle.bis)*c||0)},in:{length:l.in.length,x:l.x+Math.cos(l.angle.prev)*l.offset,y:l.y+Math.sin(l.angle.prev)*l.offset},out:{length:l.out.length,x:l.x+Math.cos(l.angle.next)*l.offset,y:l.y+Math.sin(l.angle.next)*l.offset},get prev(){return a[(l.id-1+n)%n]},get next(){return a[(l.id+1)%n]}}});return a},wM=t=>{const{prev:e,next:n}=t;e.locked&&!n.locked?t.arc.radius=Math.min(Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.in.rest/t.angle.vel,t.arc.lim):n.locked&&!e.locked?t.arc.radius=Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),t.out.rest/t.angle.vel,t.arc.lim):n.locked&&e.locked?t.arc.radius=Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.lim):t.arc.radius=Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.arc.lim),za(t)},vM=(t,e)=>{if(e>t.arc.hit){const{prev:n,next:r}=t;n.locked&&!r.locked?t.arc.radius=Math.max(Math.min(t.in.rest/t.angle.vel,t.out.length/(t.angle.vel+r.angle.vel),t.arc.radius),0):r.locked&&!n.locked?t.arc.radius=Math.max(Math.min(t.out.rest/t.angle.vel,t.in.length/(t.angle.vel+n.angle.vel),t.arc.radius),0):r.locked&&n.locked?t.arc.radius=Math.max(Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.radius),0):t.arc.radius=t.arc.hit}za(t)},za=t=>{const{prev:e,next:n}=t;t.offset=t.arc.radius*t.angle.vel,e.out.rest-=t.offset,t.in.rest-=t.offset,t.out.rest-=t.offset,n.in.rest-=t.offset,t.locked=!0,e.arc.hit=Math.min(e.in.length/(e.angle.vel+e.prev.angle.vel),e.in.rest/e.angle.vel,e.out.rest/e.angle.vel),n.arc.hit=Math.min(n.out.length/(n.angle.vel+n.next.angle.vel),n.out.rest/n.angle.vel,n.in.rest/n.angle.vel)},so=t=>t.reduce((e,n)=>n.locked?e:e?n.arc.hit<e.arc.hit?n:e:n,null),jp=t=>{const{Title:e,Item:n,data:r,gap:i=10,width:o=700,pyramidWidth:s,itemHeight:a=60,options:l}=t,{title:c,desc:f,items:d=[]}=r,u=e?h(e,{title:c,desc:f}):null;if(d.length===0)return h(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:u});const p=5,g=de(l.themeConfig),m=30,y=[],_=[],x=[],b=[],w=s!=null?s:o*.6,P=o-w,v=a*1.2,$=d.length*v+(d.length-1)*i;return d.forEach((M,I)=>{const S=[I],C=I===0,k=wt(l,[I])||g.colorPrimary,{points:A,topWidth:z,bottomWidth:j}=$M(w,v,i,d.length,I),E=bM(A,p),D=_M(E,"AMOUNT",10),L=w/2,T=I*(v+i),N=(v-a)/2,F=T+N,X=L+z/2,H=L+j/2,K=X-p,nt=P+p,V=a,lt=K+nt,q=L-m/2,U=T+v/2-m/2+(C?8:0),Z=H,et=lt-H,ct=F;x.push(h(dt,{x:K,y:F,width:nt,height:V,ry:"10",fill:g.colorPrimaryBg,"data-element-type":"shape"}));const it=`${k}-pyramid-${I}`;_.push(h(yt,{children:O("linearGradient",{id:it,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[h("stop",{offset:"0","stop-color":k}),h("stop",{offset:"100%","stop-color":Q.mix(k,"#fff",40).toHexString()})]})}),h(_e,{points:D,fill:`url(#${it})`,y:T,"data-element-type":"shape"})),b.push(h(qt,{indexes:S,x:q,y:U,size:m,fill:"#fff"})),y.push(h(n,{indexes:S,datum:M,data:r,x:Z,y:ct,width:et,height:a,positionV:"middle"}))}),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,O(B,{width:o,height:$,children:[h(B,{children:x}),h(B,{children:_}),h(B,{children:b}),h(_t,{children:y}),h(pt,{})]})]})};function $M(t,e,n,r,i){const o=t/2,s=r*e+(r-1)*n,a=i*(e+n),l=a+e,c=a/s*t,f=l/s*t;let d;if(i===0){const u={x:o,y:0},p={x:o+f/2,y:e},g={x:o-f/2,y:e};d=[u,p,g]}else{const u={x:o+c/2,y:0},p={x:o+f/2,y:e},g={x:o-f/2,y:e},m={x:o-c/2,y:0};d=[u,p,g,m]}return{points:d,topWidth:c,bottomWidth:f}}vt("sequence-pyramid",{component:jp,composites:["title","item"]});const dr={iconSize:50,roadWidth:24,outerRadius:60,rowWidth:400,spacing:30,colorDefault:"#666666"},Fp=(t,e)=>`M ${t} ${e}`,Ht=(t,e)=>`L ${t} ${e}`,On=(t,e,n,r)=>`A ${t} ${t} 0 0 ${e} ${n} ${r}`,PM=(t,{roadWidth:e,innerRadius:n,outerRadius:r})=>{const i=(e+n*2)*t;return{y1:i,y2:i+e,y3:i+e+n,y4:i+e+n*2,y5:i+r*2}};function MM({i:t,direction:e,x:n,y:r,color:i,data:o,itemBounds:s,item:a,Item:l,flipped:c}){const{iconSize:f}=dr,d=e==="left",u=d?n.x4-f/2:n.x3-f/2,p=r.y3-f/2,g=d?n.x6+dr.spacing:n.x1-dr.spacing-s.width,m=r.y3-s.height/2,y=d?c?"flipped":"normal":c?"normal":"flipped";return{icon:h(We,{indexes:[t],x:u,y:p,size:f,fill:i}),label:h(Et,{x:d?u-10:u+f+10,y:p+f/2-15,fontSize:30,fill:i,alignHorizontal:d?"right":"left",children:String(t+1).padStart(2,"0")}),item:h(l,{indexes:[t],data:o,datum:a,x:g,y:m,positionH:y})}}function OM({direction:t,x:e,y:n,color:r,elements:i}){const o=t==="left";i.push(h(HP,{x:o?e.x6+10:e.x1-20,y:n.y3-5,width:10,height:8,rotation:o?90:-90,colorPrimary:r,"data-element-type":"shape"}))}const Bp=t=>{const{Title:e,Item:n,data:r,spacing:i=dr.spacing,options:o,flipped:s=!1}=t,{title:a,desc:l,items:c=[]}=r,f=e?h(e,{title:a,desc:l}):null,d=G(h(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),{roadWidth:u,outerRadius:p,rowWidth:g,colorDefault:m}=dr,y=u/2,_=p-u,x=(d.width+i)*2+g,b=d.width+i,w=b+p,P=b+g-p,$=P+_+u,M=b+g/2,I=[],S=[],C=[],k=[],A=[],z=[],j=[];for(let L=0;L<c.length;L++){const T=wt(o,[L])||m,N=L%2===0?"right":"left",F=L===0,X=L===c.length-1,H=PM(L,{roadWidth:u,innerRadius:_,outerRadius:p});if(N==="right"){const V=F?[$,H.y1]:[P,H.y1],lt=[w,H.y1],q=[w,H.y5],U=F?[$,H.y2]:[P,H.y2],Z=[w,H.y2];if(I.push(F?Fp($,H.y1+y):Ht(P,H.y1+y),Ht(w,H.y1+y),On(p-y,0,w,H.y4+y)),S.push(F?Fp(...V):Ht(...V),Ht(...lt),On(p,0,...q)),C.push(Ht(...U),Ht(...Z),On(_,1,...Z)),X){const et=u/2;S.push(Ht(M,H.y5),Ht(M,H.y5+et),Ht(M+u,H.y5-et),Ht(M,H.y4-et),Ht(M,H.y4),Ht(w,H.y4)),I.push(Ht(M,H.y4+y))}}else{const V=[w,H.y2],lt=[P,H.y2],q=[P,H.y4],U=[w,H.y1],Z=[P,H.y1];if(I.push(Ht(P,H.y1+y),On(p-y,1,P,H.y4+y)),S.push(Ht(...V),Ht(...lt),On(_,1,...q)),C.push(Ht(...U),Ht(...Z),On(p,0,...Z)),X){const et=u/2;S.push(Ht(M,H.y4),Ht(M,H.y4-et),Ht(M-u,H.y4+et),Ht(M,H.y5+et),Ht(M,H.y5),Ht(P,H.y5)),I.push(Ht(M,H.y4+y))}}OM({direction:N,x:{x1:b,x6:$},y:H,color:T,elements:j});const{icon:tt,label:K,item:nt}=MM({i:L,direction:N,x:{x1:b,x3:w,x4:P,x6:$},y:H,color:T,data:r,itemBounds:d,item:c[L],Item:n,flipped:s});k.push(tt),A.push(K),z.push(nt)}const E=[...S,...C.reverse(),"Z"],D=c.length*(u+_*2)+u*1.5;return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,O(B,{width:x,height:d.height<=p*2?D:D+d.height-p*2,children:[h(ot,{width:g,height:D,d:E.join(" "),fill:m,stroke:m,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),h(ot,{d:I.join(" "),stroke:"white",fill:"none",strokeWidth:"3",strokeDasharray:"8 8",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),O(gt,{children:[k,A,z,j]})]})]})};vt("sequence-roadmap-vertical",{component:Bp,composites:["title","item"]});const Wp=t=>{const{Title:e,Item:n,data:r,gap:i=40,itemsPerRow:o=3,rowGap:s=80,options:a}=t,{title:l,desc:c,items:f=[]}=r,d=e?h(e,{title:l,desc:c}):null,u=Ut(a),p=G(h(W,{indexes:[0]})),g=G(h(n,{indexes:[0],data:r,datum:f[0],positionH:"center"})),m=[],y=[],_=[],x=25,b=25;if(f.forEach((w,P)=>{const v=Math.floor(P/o),$=P%o,M=v%2===1,S=(M?o-1-$:$)*(g.width+i),C=v*(g.height+s),k=[P];if(y.push(h(n,{indexes:k,datum:w,data:r,x:S,y:C,positionH:"center"})),m.push(h(St,{indexes:k,x:S+(g.width-p.width)/2,y:C+g.height+10})),P===0&&m.push(h(W,{indexes:k,x:S+(g.width-p.width)/2,y:C-p.height-10})),P<f.length-1){const A=Math.floor((P+1)/o),z=(P+1)%o,D=(A%2===1?o-1-z:z)*(g.width+i);if(v===A){const T=M,N=T?D+g.width+(i-x)/2:S+g.width+(i-x)/2,F=C+g.height/2-b/2;_.push(h(Aa,{x:N,y:F,width:x,height:b,colorPrimary:u,rotation:T?180:0})),m.push(h(W,{indexes:[P+1],x:N+(x-p.width)/2,y:C-p.height-10}))}else{const T=S+g.width/2-x/2,N=C+g.height+(s-b)/2;_.push(h(Aa,{x:T,y:N,width:x,height:b,colorPrimary:u,rotation:90})),m.push(h(W,{indexes:[P+1],x:T+(x-p.width)/2,y:N+(b-p.height)/2}))}}}),f.length>0){const w=f.length-1,P=Math.floor(w/o),v=w%o,I=(P%2===1?o-1-v:v)*(g.width+i),S=P*(g.height+s);m.push(h(W,{indexes:[f.length],x:I+(g.width-p.width)/2,y:S+g.height+p.height+20}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,O(B,{children:[h(B,{children:_}),h(_t,{children:y}),h(pt,{children:m})]})]})};vt("sequence-snake-steps",{component:Wp,composites:["title","item"]});const Xp=t=>{const{Title:e,Item:n,data:r,gap:i=40,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?h(e,{title:s,desc:a}):null,f=Ut(o),d=G(h(W,{indexes:[0]})),u=G(h(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),p=[],g=[],m=[],y=25,_=25,x=Math.max(d.height+20,30);if(l.forEach((b,w)=>{const P=w*(u.width+i),v=[w];if(g.push(h(n,{indexes:v,datum:b,data:r,x:P,y:x,positionH:"center"})),p.push(h(St,{indexes:v,x:P+(u.width-d.width)/2,y:x+u.height+10})),w===0?p.push(h(W,{indexes:v,x:P+(u.width-d.width)/2,y:x-d.height-10})):p.push(h(W,{indexes:v,x:P-i/2-d.width/2,y:x-d.height-10})),w<l.length-1){const $=P+u.width+(i-y)/2,M=x+u.height/2-_/2;m.push(h(Aa,{x:$,y:M,width:y,height:_,colorPrimary:f}))}}),l.length>0){const b=(l.length-1)*(u.width+i);p.push(h(W,{indexes:[l.length],x:b+u.width+(i-d.width)/2,y:x-d.height-10}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,O(B,{children:[h(B,{children:m}),h(_t,{children:g}),h(pt,{children:p})]})]})};vt("sequence-steps",{component:Xp,composites:["title","item"]});const Yp=t=>{const{Title:e,Item:n,data:r,gap:i=10,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?h(e,{title:s,desc:a}):null,f=Ut(o),d=tu(o),u=G(h(W,{indexes:[0]})),p=G(h(n,{indexes:[0],data:r,datum:l[0],positionH:"normal"})),g=[],m=[],y=[],_=10,x=_+70+10,b=x+30,w=6;if(l.length>1){const P=p.height/2+w,v=(l.length-1)*(p.height+i)+p.height/2-w,$=`M ${x} ${P} L ${x} ${v}`,M="gradient-timeline-line",I=v-P,S=l.map((C,k)=>{const z=(k*(p.height+i)+p.height/2-P)/I*100,j=wt(o,[k]);return h("stop",{offset:`${z}%`,stopColor:j||f})});y.push(O(gt,{children:[h(yt,{children:h("linearGradient",{id:M,x1:x,y1:P,x2:x,y2:v,gradientUnits:"userSpaceOnUse",children:S})}),h(ot,{d:$,stroke:`url(#${M})`,strokeWidth:2,width:1,height:v-P})]}))}if(l.forEach((P,v)=>{const $=v*(p.height+i),M=$+p.height/2,I=[v];y.push(h(Et,{x:_,y:M,width:70,fontSize:18,fontWeight:"bold",alignHorizontal:"left",alignVertical:"middle",fill:d[v%d.length],children:`STEP ${v+1}`})),m.push(h(n,{indexes:I,datum:P,data:r,x:b,y:$,positionH:"normal"})),y.push(h(xt,{x:x-w,y:M-w,width:w*2,height:w*2,fill:d[v%d.length]})),g.push(h(St,{indexes:I,x:b-u.width-10,y:$+(p.height-u.height)/2})),v===0?g.push(h(W,{indexes:I,x:b+(p.width-u.width)/2,y:$-u.height-10})):g.push(h(W,{indexes:I,x:b+(p.width-u.width)/2,y:$-i/2-u.height/2}))}),l.length>0){const P=(l.length-1)*(p.height+i);g.push(h(W,{indexes:[l.length],x:b+(p.width-u.width)/2,y:P+p.height+10}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,O(B,{children:[h(Nt,{children:y}),h(_t,{children:m}),h(pt,{children:g})]})]})};vt("sequence-timeline",{component:Yp,composites:["title","item"]});const Vp=120,qp=108,ao=30,CM="M0 34.4903C0 37.8781 0.849901 41.1522 2.43491 44.2451C4.23514 47.7639 6.98606 51.0482 10.5164 54.0008C21.3317 63.0477 39.4607 68.9799 59.9998 68.9799C80.5391 68.9799 98.6691 63.0477 109.483 54.0008C113.013 51.0482 115.765 47.7639 117.564 44.2451C119.149 41.1522 120 37.8781 120 34.4903C120 15.4417 93.1366 0 59.9998 0C26.8632 0 0 15.4417 0 34.4903Z",SM="M0 34.4904V53.9996C0 57.3885 0.849901 60.6616 2.43491 63.7555C9.75384 78.0548 32.7566 88.4909 59.9998 88.4909C87.2438 88.4909 110.246 78.0548 117.564 63.7555C119.149 60.6616 120 57.3885 120 53.9996V34.4904C120 37.8781 119.149 41.1522 117.564 44.2451C115.765 47.7639 113.013 51.0482 109.483 54.0008C98.6691 63.0477 80.5391 68.9799 59.9998 68.9799C39.4607 68.9799 21.3317 63.0477 10.5164 54.0008C6.98606 51.0482 4.23514 47.7639 2.43491 44.2451C0.849901 41.1522 0 37.8781 0 34.4904Z",IM="M0 53.9996V73.5106C0 92.5595 26.8632 108 59.9998 108C93.1366 108 120 92.5595 120 73.5106V53.9996C120 57.3885 119.149 60.6616 117.564 63.7555C110.246 78.0548 87.2438 88.4909 59.9998 88.4909C32.7566 88.4909 9.75384 78.0548 2.43491 63.7555C0.849901 60.6616 0 57.3885 0 53.9996Z",Gp=O("filter",{id:"sequence-zigzag-pucks-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[h("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),h("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),h("feOffset",{dx:"-7",dy:"7"}),h("feGaussianBlur",{stdDeviation:"7.5"}),h("feComposite",{in2:"hardAlpha",operator:"out"}),h("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"}),h("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),h("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),Up=t=>{const{Title:e,Item:n,data:r,options:i,gap:o=80}=t,s=Vp,a=qp,{title:l,desc:c,items:f=[]}=r,d=e?h(e,{title:l,desc:c}):null,u=Ut(i);if(f.length===0)return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h(yt,{children:Gp}),d,h(B,{children:h(pt,{children:h(W,{indexes:[0],x:0,y:0})})})]});const p=G(h(n,{indexes:[0],data:r,datum:f[0],positionH:"center"})),g=G(h(W,{indexes:[0]})),m=[],y=[],_=[];let x=-1/0;const b=p.height+ao+a;return f.forEach((w,P)=>{const v=[P],$=wt(i,v),M=P%2===0,I=P*(s+o),S=M?0:p.height+ao,C=`puck-gradient-middle-${P}`,k=`puck-gradient-bottom-${P}`;_.push(O(B,{x:I,y:S,id:`puck-${P}`,width:s,height:a,filter:"url(#sequence-zigzag-pucks-3d-shadow-filter)",children:[O(yt,{children:[O("linearGradient",{id:C,x1:"115",y1:"55.9991",x2:"15.0002",y2:"55.9991",gradientUnits:"userSpaceOnUse",children:[h("stop",{offset:"0",stopColor:$||u}),h("stop",{offset:"1",stopColor:$||u,stopOpacity:"0.6"})]}),O("linearGradient",{id:k,x1:"115",y1:"72.1803",x2:"15.0002",y2:"72.1803",gradientUnits:"userSpaceOnUse",children:[h("stop",{offset:"0",stopColor:"#F4F4FB"}),h("stop",{offset:"1",stopColor:"#8E8C90"})]})]}),O(Nt,{width:Vp,height:qp,children:[h(ot,{d:CM,fill:$||u}),h(ot,{d:SM,fill:`url(#${C})`}),h(ot,{d:IM,fill:`url(#${k})`})]}),h("text",{x:65,y:40,width:50,height:50,fontSize:40,fontWeight:"bold",fill:"#FFFFFF",textAnchor:"middle",dominantBaseline:"middle",transform:"rotate(-15 65 40) scale(1, 0.8)",children:P+1})]}));const A=I+(s-p.width)/2,z=M?S+a+ao:S-ao-p.height;if(x=Math.max(x,z+p.height),y.push(h(n,{indexes:v,datum:w,data:r,x:A,y:z,positionH:"center"})),m.push(h(St,{indexes:v,x:A+p.width-g.width/2,y:z+p.height-g.height/2})),P===0&&m.push(h(W,{indexes:[0],x:I+s/2-g.width/2-(o+s)/2,y:S+a/2-g.height/2})),P<f.length-1){const E=(P+1)%2===0?0:b,D=I+s+o/2-g.width/2,L=(S+a/2+E+a/2)/2-g.height/2;m.push(h(W,{indexes:[P+1],x:D,y:L}))}else m.push(h(W,{indexes:[f.length],x:I+s+o/2-g.width/2,y:S+a/2-g.height/2}))}),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[h(yt,{children:Gp}),d,O(B,{x:0,y:0,children:[h(B,{children:_}),h(_t,{children:y}),h(pt,{children:m})]})]})};vt("sequence-zigzag-pucks-3d",{component:Up,composites:["title","item"]});const AM=240,kM=130,EM=105,rn=12,zM=120,Zp=50,TM=.6,HM="M132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30824 50.6599C2.43719 47.8482 0.00459679 44.1562 0.0152907 40.472L3.17695e-05 45.6925C-0.0101404 49.378 2.42245 53.0686 7.29298 55.8803L52.7289 82.1129C62.4094 87.7011 78.0485 87.7011 87.6652 82.1129L132.806 55.8803C137.583 53.1038 139.975 49.4705 139.986 45.832L140 40.6116C139.989 44.2501 137.598 47.8834 132.821 50.6599Z",Qp="M132.707 30.4224C142.386 36.0119 142.437 45.0704 132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30825 50.6599C-2.37126 45.0717 -2.42225 36.0132 7.19414 30.4237L52.335 4.19115C61.9517 -1.39705 77.5908 -1.39705 87.2713 4.19115L132.707 30.4224Z",Kp=70+rn/2,Jp=40+rn/2,tg=h("filter",{id:"sequence-zigzag-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:h("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"15",result:"blur"})}),eg=t=>{var e;const{Title:n,Item:r,data:i,options:o,dx:s=AM,dy:a=kM,iconSize:l=30}=t,{title:c,desc:f,items:d=[]}=i,u=n?h(n,{title:c,desc:f}):null,p=Ut(o);if(d.length===0)return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h(yt,{children:tg}),u,h(B,{children:h(pt,{children:h(W,{indexes:[0],x:0,y:0})})})]});const g=G(h(r,{indexes:[0],data:i,datum:d[0]})),m=G(h(W,{indexes:[0]})),y=[],_=[],x=[],b=[],w=[];let P=0,v=0,$="",M=1/0,I=-1/0,S=1/0,C=1/0;const k=[];d.forEach((j,E)=>{const D=P,L=v;k.push({x:D,y:L}),M=Math.min(M,L);const T=D-Kp,N=L-Jp;S=Math.min(S,T),C=Math.min(C,N);const F=E%2===0;E<d.length-1&&(P+=s,v=F?v+a:v-a)});const A=Math.max(0,-S),z=Math.max(0,-C);if(P=0,v=0,d.forEach((j,E)=>{const D=[E],L=k[E],T=L.x+A,N=L.y+z,F=wt(o,D),X=Math.max(0,T-Kp),H=Math.max(0,N-Jp),tt=10,K=Zp+10,{colorPrimaryBg:nt}=de({colorPrimary:F});if(b.push(O(Nt,{x:X,y:H,width:140,height:110,children:[h(xt,{x:tt,y:K,width:zM,height:Zp,fill:F||p,filter:"url(#sequence-zigzag-glow-filter)",opacity:TM}),h(ot,{d:HM,fill:F||p}),h(ot,{d:Qp,fill:"#fff"}),h(ot,{d:Qp,fill:nt||nt})]})),j.icon){const q=Math.max(0,T-l/2-rn/2),U=Math.max(0,N-l/2-rn/2);w.push(h(qt,{x:q,y:U,size:l,indexes:D,fill:F}))}const V=T-g.width/2-rn/2,lt=Math.max(0,N+EM-rn/2);if(I=Math.max(I,lt+g.height),E===0?$=`M ${T} ${N}`:$+=` L ${T} ${N}`,_.push(h(r,{indexes:D,datum:j,data:i,x:V,y:lt})),y.push(h(St,{indexes:D,x:Math.max(0,V+g.width-m.width/2),y:Math.max(0,lt+g.height-m.height/2)})),E<d.length-1){const q=k[E+1],U=q.x+A,Z=q.y+z,et=Math.max(0,T+(U-T)/2-m.width/2),ct=Math.max(0,N+(Z-N)/2-m.height/2);y.push(h(W,{indexes:[E+1],x:et,y:ct}))}else y.push(h(W,{indexes:[d.length],x:Math.max(0,V+g.width+s/4),y:Math.max(0,lt+g.height/2-m.height/2)}))}),$){const j=(((e=k[k.length-1])==null?void 0:e.x)||0)+A;x.push(h(ot,{d:$,stroke:"#f3f2f1",strokeWidth:rn,fill:"none",width:j,height:I-Math.min(M+z,0)}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[h(yt,{children:tg}),u,O(B,{x:0,y:0,children:[h(B,{children:[...x,...b,...w]}),h(_t,{children:_}),h(pt,{children:y})]})]})};vt("sequence-zigzag-steps",{component:eg,composites:["title","item"]});var LM=Object.defineProperty,RM=Object.defineProperties,NM=Object.getOwnPropertyDescriptors,lo=Object.getOwnPropertySymbols,ng=Object.prototype.hasOwnProperty,rg=Object.prototype.propertyIsEnumerable,ig=(t,e,n)=>e in t?LM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ne=(t,e)=>{for(var n in e||(e={}))ng.call(e,n)&&ig(t,n,e[n]);if(lo)for(var n of lo(e))rg.call(e,n)&&ig(t,n,e[n]);return t},co=(t,e)=>RM(t,NM(e)),Cn=(t,e)=>{var n={};for(var r in t)ng.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&lo)for(var r of lo(t))e.indexOf(r)<0&&rg.call(t,r)&&(n[r]=t[r]);return n};function DM(t){const e=t,{container:n="#container",padding:r=0,template:i,design:o,theme:s,themeConfig:a}=e,l=Cn(e,["container","padding","template","design","theme","themeConfig"]),c=typeof n=="string"?document.querySelector(n)||document.createElement("div"):n,d=i?Ha(i)||{}:{},{design:u}=d,p=Cn(d,["design"]);return co(ne(ne({},p),l),{container:c,padding:xs(r),template:i,design:jM(ne(ne({},u),o),t),theme:s,themeConfig:WM(s,a)})}function Ta(t){if(typeof t=="string")return{type:t};if(!("type"in t))throw new Error("Type is required");return t}function jM(t,e){const{structure:n,title:r,item:i,items:o}=t||{},s=og(i||(o==null?void 0:o[0]),e);return{structure:FM(n),title:BM(r,e),item:s,items:o?o.map(a=>og(a,e)):[s]}}function FM(t){if(!t)throw new Error("Structure is required in design or template");const e=Ta(t),{type:n}=e,r=Cn(e,["type"]),i=j0(n);if(!i)throw new Error(`Structure ${n} not found`);const{component:o}=i;return co(ne({},i),{component:s=>o(ne(ne({},s),r))})}function BM(t,e){if(!t)return{component:null};const n=Ta(t),{type:r}=n,i=Cn(n,["type"]),{themeConfig:o}=e,s=(o==null?void 0:o.colorBg)||"#fff",a=sg(s,s);return{component:l=>Ul(ne(co(ne({},l),{themeColors:a}),i))}}function og(t,e){if(!t)throw new Error("Item is required in design or template");const n=Ta(t),{type:r}=n,i=Cn(n,["type"]),o=iu(r);if(!o)throw new Error(`Item ${r} not found`);const{component:s,options:a}=o;return co(ne({},o),{component:l=>{var c;const{indexes:f}=l,{data:d,themeConfig:u}=e,p=(u==null?void 0:u.colorBg)||"#fff",g=l,{themeColors:m=sg(li(u==null?void 0:u.palette,f,(c=d==null?void 0:d.items)==null?void 0:c.length)||(u==null?void 0:u.colorPrimary)||"#1677FF",p)}=g,y=Cn(g,["themeColors"]);return s(ne(ne({themeColors:m},y),i))},options:a})}function WM(t,e={}){const n=t?Zf(t)||{}:{},r=ne(ne({},n),e);return r.colorPrimary||(r.colorPrimary="#1677FF"),r.palette||(r.palette=[r.colorPrimary]),r}function sg(t,e="#fff"){return Jf({colorPrimary:t,isDarkMode:ah(e),colorBg:e})}var XM=Object.defineProperty,ag=Object.getOwnPropertySymbols,YM=Object.prototype.hasOwnProperty,VM=Object.prototype.propertyIsEnumerable,lg=(t,e,n)=>e in t?XM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,qM=(t,e)=>{for(var n in e||(e={}))YM.call(e,n)&&lg(t,n,e[n]);if(ag)for(var n of ag(e))VM.call(e,n)&&lg(t,n,e[n]);return t};class GM{constructor(e){this.options=e,this.parsedOptions=DM(this.options)}render(){const{container:e}=this.parsedOptions,n=this.compose(),i=new Uf(this.parsedOptions,n).render();e.replaceChildren(i)}compose(){const{design:e,data:n}=this.parsedOptions,{title:r,item:i,items:o,structure:s}=e,{component:a,props:l}=s,c=r.component,f=i.component,d=o.map(g=>g.component),u=ll(h(a,qM({data:n,Title:c,Item:f,Items:d,options:this.parsedOptions},l))),p=mn(u);if(!p)throw new Error("Failed to parse SVG template");return p}getTypes(){const e=this.parsedOptions.design,n=e.structure.composites||[],r=e.items.map(i=>i.composites||[]);return ux({structure:n,items:r})}}R.AlignLayout=an,R.BadgeCard=au,R.BtnAdd=W,R.BtnRemove=St,R.BtnsGroup=pt,R.CandyCardLite=hu,R.CapsuleItem=xu,R.ChartColumn=F0,R.CircleNode=wu,R.CircularProgress=Ou,R.CompactCard=Au,R.CompareBinaryHorizontal=Q0,R.CompareHierarchyLeftRight=ep,R.CompareHierarchyRow=np,R.Defs=yt,R.DoneList=zu,R.Ellipse=xt,R.FlexLayout=rt,R.Fragment=An,R.Gap=Tt,R.Group=B,R.HierarchyTree=op,R.HorizontalIconArrow=Lu,R.HorizontalIconLine=Fu,R.IconBadge=Xu,R.Illus=_l,R.IndexedCard=qu,R.Infographic=GM,R.ItemDesc=It,R.ItemIcon=qt,R.ItemIconCircle=We,R.ItemLabel=ft,R.ItemValue=Ln,R.ItemsGroup=_t,R.LCornerCard=Zu,R.LabelText=od,R.LetterCard=Ju,R.ListColumn=sp,R.ListGrid=ap,R.ListPyramid=lp,R.ListRow=cp,R.ListSector=up,R.ListWaterfall=dp,R.Path=ot,R.PillBadge=nd,R.Polygon=_e,R.ProgressCard=c0,R.Quadrant=pp,R.QuarterCircular=u0,R.QuarterSimpleCard=g0,R.Rect=dt,R.RelationCircle=gp,R.RelationNetwork=mp,R.Renderer=Uf,R.RibbonCard=x0,R.RoundedRectNode=w0,R.SequenceAscendingStairs3d=Op,R.SequenceAscendingSteps=Cp,R.SequenceCircleArrows=Ip,R.SequenceCircular=Ap,R.SequenceColorSnakeSteps=kp,R.SequenceFilterMesh=Hp,R.SequenceHorizontalZigzag=Lp,R.SequenceMountain=Dp,R.SequencePyramid=jp,R.SequenceRoadmapVertical=Bp,R.SequenceSnakeSteps=Wp,R.SequenceSteps=Xp,R.SequenceTimeline=Yp,R.SequenceZigzagPucks3d=Up,R.SequenceZigzagSteps=eg,R.ShapesGroup=Nt,R.SimpleHorizontalArrow=P0,R.SimpleIllusItem=C0,R.SimpleItem=A0,R.SimpleVerticalArrow=z0,R.Text=Et,R.Title=Ul,R.UnderlineText=L0,R.VerticalIconArrow=D0,R.cloneElement=ke,R.createFragment=Bg,R.createLayout=xo,R.decodeFontFamily=ef,R.encodeFontFamily=ai,R.getCombinedBounds=Za,R.getElementBounds=G,R.getElementsBounds=Be,R.getFont=vs,R.getFontURLs=af,R.getFonts=of,R.getItem=iu,R.getItemProps=At,R.getItems=aw,R.getPalette=ff,R.getPaletteColor=li,R.getStructure=j0,R.getStructures=q$,R.getTemplate=Ha,R.getTemplates=pg,R.getTheme=Zf,R.getThemeColors=de,R.getThemes=Xb,R.getWoff2BaseURL=I5,R.jsx=_r,R.jsxDEV=Xg,R.jsxs=Wg,R.loadFont=lf,R.loadFonts=cf,R.loadSVGResource=ps,R.parseSVG=mn,R.registerFont=sf,R.registerItem=kt,R.registerPalette=Ps,R.registerResourceLoader=bx,R.registerStructure=vt,R.registerTemplate=re,R.registerTheme=js,R.renderSVG=ll,R.sequenceCylinders3d=Ep,R.setDefaultFont=S5,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
|
|
128
|
+
`;return O(F,{children:[h(yt,{children:O(gt,{children:[O("linearGradient",{id:"basePlateTopGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:"#fafafa",stopOpacity:1}),h("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:.98}),h("stop",{offset:"100%",stopColor:"#ececec",stopOpacity:.95})]}),O("linearGradient",{id:"basePlateFrontGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:"#e0e0e0",stopOpacity:.95}),h("stop",{offset:"50%",stopColor:"#d2d2d2",stopOpacity:.93}),h("stop",{offset:"100%",stopColor:"#c5c5c5",stopOpacity:.9})]}),O("linearGradient",{id:"basePlateSideGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[h("stop",{offset:"0%",stopColor:"#b8b8b8",stopOpacity:.92}),h("stop",{offset:"50%",stopColor:"#c0c0c0",stopOpacity:.88}),h("stop",{offset:"100%",stopColor:"#adadad",stopOpacity:.85})]})]})}),h(ot,{id:"base-plate-front",d:_,fill:"url(#basePlateFrontGradient)",stroke:"#c5c5c5",strokeWidth:.3,opacity:.92}),h(ot,{id:"base-plate-side",d:x,fill:"url(#basePlateSideGradient)",stroke:"#aaaaaa",strokeWidth:.3,opacity:.88}),h(ot,{id:"base-plate-top",d:y,fill:"url(#basePlateTopGradient)",stroke:"#e5e5e5",strokeWidth:.5,opacity:.93})]})},mg=t=>{const{Title:e,Item:n,data:r,options:i,cylinderRx:o=28,cylinderRy:s=18,baseHeight:a=120,heightIncrement:l=40,depthSpacing:c=60,itemVerticalAlign:f="top",itemVerticalOffset:u=-12,firstDecorationWidth:d=90}=t,{title:p,desc:g,items:m=[]}=r,y=e?h(e,{title:p,desc:g}):null,x=G(h(n,{indexes:[0],data:r,datum:m[0],positionH:"center"})),_=G(h(W,{indexes:[0]})),b=Zt(i),v=10,P=Math.max(6,c*.15),w=rC(m.length,x,o,a,l,c,d,v),{startY:$,leftItemAlignedX:M,rightItemAlignedX:I,cylinderAreaStartX:S}=w,C=[],E=[];m.forEach((X,T)=>{const J=vt(i,[T])||b;C.push(...sC(T,J));const Q=iC(T,o,a,l,P,$,S),nt=aC(T,Q,o,s),{itemPos:V,lineStartX:lt,lineEndX:q,lineY:U}=oC(T,Q,x,o,M,I,f,u,v),Z=lC(T,lt,q,U,J);nt.push(...Z);const et=h(n,{indexes:[T],datum:X,data:r,x:V.x,y:V.y,positionH:T%2===0?"flipped":"normal"}),ct=[h(St,{indexes:[T],x:V.x+x.width/2-_.width/2,y:V.y+x.height+10}),h(W,{indexes:[T],x:V.x+x.width/2-_.width/2,y:V.y-_.height-10})];E[T]={cylinderNodes:nt,itemNode:et,btnNodes:ct,itemX:V.x,itemY:V.y}});let A=1/0,R=1/0,D=-1/0,k=-1/0;E.forEach(X=>{const{itemX:T,itemY:J}=X;A=Math.min(A,T),R=Math.min(R,J),D=Math.max(D,T+x.width),k=Math.max(k,J+x.height)});const j=D-A,L=k-R,H=[h(yt,{children:C})],N=[],B=cC(m.length,o,S,$,P);B&&H.push(B);for(let X=m.length-1;X>=0;X--){const T=E[X];T&&(H.push(O(F,{children:[h(F,{children:T.cylinderNodes}),T.itemNode]})),N.push(...T.btnNodes))}if(m.length>0){const X=m.length%2===0,T=Math.floor(m.length/2),J=ho(T,o),Q=fo(X,T,o),nt=S+Q+J,V=$-m.length*P;N.push(h(W,{indexes:[m.length],x:nt,y:V-100}))}return O(rt,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y,O(F,{width:j,height:L,children:[h(xt,{children:H}),h(pt,{children:N})]})]})};wt("sequence-cylinders-3d",{component:mg,composites:["title","item"]});const $t={WIDTH:160,HEIGHT:260,ARROW_HEIGHT:148,ARROW_WIDTH:100,LINE_X:100,RECT_X:0,RECT_Y:80,RECT_WIDTH:100,RECT_HEIGHT:130},Pe={SIZE:8,MAX_COUNT:40,MIN_COUNT:5,ARROW_RATIO:.6,MIN_ARROW_COUNT:3};function hC(t,e,n){return(t+e*7+n*13)%100}function fC(t){const e=Math.ceil(Math.sqrt(t*1.5)),n=Math.ceil(t/e);return{cols:e,rows:n}}function uC(t,e,n,r,i,o,s,a){const l=Math.max(i,Math.min(t+n,o)),c=Math.max(s,Math.min(e+r,a));return{x:l,y:c}}function yg({count:t,rectX:e,rectY:n,rectWidth:r,rectHeight:i,seed:o}){const s=[],a=Pe.SIZE/2,{cols:l,rows:c}=fC(t),f=(r-a*2)/(l+1),u=(i-a*2)/(c+1);let d=0;for(let p=0;p<c&&d<t;p++)for(let g=0;g<l&&d<t;g++){const m=hC(o,p,g),y=m%16-8,x=m*3%12-6,_=p%2===1?f/2:0,b=e+a+(g+1)*f+_,v=n+a+(p+1)*u,{x:P,y:w}=uC(b,v,y,x,e+a,e+r-a,n+a,n+i-a);s.push({x:P,y:w,colorIndex:d}),d++}return s}function dC(t,e){if(e<=1)return Pe.MAX_COUNT;const n=t/(e-1),r=Pe.MAX_COUNT-Pe.MIN_COUNT;return Math.round(Pe.MAX_COUNT-r*n)}function pC(){const s={topLeft:{x:40,y:25},topRight:{x:160,y:75},bottomLeft:{x:40,y:205},bottomRight:{x:160,y:255}},a=[];for(let l=0;l<=12;l++){const c=l/12,f={x:s.topLeft.x+(s.bottomLeft.x-s.topLeft.x)*c,y:s.topLeft.y+(s.bottomLeft.y-s.topLeft.y)*c},u={x:s.topRight.x+(s.bottomRight.x-s.topRight.x)*c,y:s.topRight.y+(s.bottomRight.y-s.topRight.y)*c};a.push(`M${f.x} ${f.y}L${u.x} ${u.y}`);const d={x:s.topLeft.x+(s.topRight.x-s.topLeft.x)*c,y:s.topLeft.y+(s.topRight.y-s.topLeft.y)*c},p={x:s.bottomLeft.x+(s.bottomRight.x-s.bottomLeft.x)*c,y:s.bottomLeft.y+(s.bottomRight.y-s.bottomLeft.y)*c};a.push(`M${d.x} ${d.y}L${p.x} ${p.y}`)}return a.join("")}function _g(t,e){return t.map(n=>{const r=vt(e,[n.colorIndex]);return h(ot,{d:"M4 0L8 4L4 8L0 4Z",fill:r,x:n.x,y:n.y,width:Pe.SIZE,height:Pe.SIZE,"data-element-type":"shape"})})}function gC(t,e,n,r,i){return O(F,{x:e,y:0,width:$t.WIDTH,height:$t.HEIGHT,children:[O(jt,{children:[h(ot,{d:pC(),stroke:"#D9D9D9",strokeWidth:2}),h(ot,{d:`M${$t.LINE_X} 25V260`,stroke:"#BFBFBF",strokeWidth:2,strokeLinecap:"round"}),h(dt,{x:$t.RECT_X,y:$t.RECT_Y,width:$t.RECT_WIDTH,height:$t.RECT_HEIGHT,fill:"#FFCB0E",fillOpacity:.2})]}),h(gt,{children:_g(r,i)}),h(kt,{x:$t.LINE_X-25,y:0,width:50,height:20,fontSize:20,fontWeight:"bold",alignHorizontal:"center",alignVertical:"top",fill:n,children:String(t+1).padStart(2,"0")})]})}function mC(t,e){const n=$t.RECT_Y+$t.RECT_HEIGHT/2-$t.ARROW_HEIGHT/2,r=Math.max(Math.round(Pe.MIN_COUNT*Pe.ARROW_RATIO),Pe.MIN_ARROW_COUNT),i=yg({count:r,rectX:0,rectY:14,rectWidth:57,rectHeight:120,seed:999});return O(F,{x:t+$t.WIDTH,y:n,children:[h(ot,{d:"M0 13.9679H57.1429V0L100 74L57.1429 148V134.032H0V13.9679Z",width:$t.ARROW_WIDTH,height:$t.ARROW_HEIGHT,fill:"#FFCB0E",fillOpacity:.2,"data-element-type":"shape"}),h(gt,{children:_g(i,e)})]})}const xg=t=>{const{Title:e,Item:n,data:r,gap:i=20,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?h(e,{title:s,desc:a}):null,f=G(h(W,{indexes:[0]})),u=G(h(n,{indexes:[0],data:r,datum:l[0],width:$t.WIDTH,positionH:"center"})),d=[],p=[],g=[],m=$t.HEIGHT+i,y=m+u.height+10;if(l.forEach((x,_)=>{const b=_*$t.WIDTH,v=[_],P=vt(o,v),w=dC(_,l.length),$=yg({count:w,rectX:$t.RECT_X,rectY:$t.RECT_Y,rectWidth:$t.RECT_WIDTH,rectHeight:$t.RECT_HEIGHT,seed:_*100});d.push(gC(_,b,P,$,o)),_===l.length-1&&d.push(mC(b,o)),p.push(h(n,{indexes:v,datum:x,data:r,width:$t.WIDTH,x:b+$t.LINE_X-$t.WIDTH/2,y:m,positionH:"center"})),g.push(h(St,{indexes:v,x:b+$t.LINE_X-f.width/2,y})),_<l.length-1&&g.push(h(W,{indexes:[_+1],x:b+$t.WIDTH-f.width/2,y}))}),l.length>0){g.unshift(h(W,{indexes:[0],x:-f.width/2,y}));const x=(l.length-1)*$t.WIDTH;g.push(h(W,{indexes:[l.length],x:x+$t.WIDTH-f.width/2,y}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,O(F,{width:$t.WIDTH*l.length+$t.ARROW_WIDTH,height:$t.HEIGHT+i+u.height,children:[h(F,{children:d}),h(xt,{children:p}),h(pt,{children:g})]})]})};wt("sequence-filter-mesh",{component:xg,composites:["title","item"]});const bg=t=>{const{Title:e,Item:n,data:r,gap:i=30,cardPadding:o=10,options:s}=t,{title:a,desc:l,items:c=[]}=r,f=e?h(e,{title:a,desc:l}):null,u=Zt(s),d=pe({colorPrimary:u},s),p=G(h(W,{indexes:[0]})),g=G(h(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),m=[],y=[],x=[],_=g.width+o*2,b=g.height+o*2+30,v=8,P=6,w=Math.max(p.height+20,40),$=40;if(c.forEach((M,I)=>{const S=I%2===0,C=I*(_+i);let E;S?I%4===2?E=w:E=w+$:E=w+$+60;const A=[I],R=vt(s,A)||u;if(S){const L=R===u?d.colorPrimaryBg||"#E8F3FF":`${R}20`,H=h(dt,{x:C,y:E,width:_,height:b,fill:L,rx:20,ry:20});x.push(H)}y.push(h(n,{indexes:A,datum:M,data:r,x:C+o,y:E+o,positionH:"center",positionV:"normal"}));const D=c.length*v+(c.length-1)*P,k=C+(_-D)/2,j=E+g.height+20;for(let L=0;L<c.length;L++){const H=k+L*(v+P),N=L===I;x.push(h(_t,{x:H,y:j,width:v,height:v,fill:N?R:"transparent",stroke:R,strokeWidth:2}))}m.push(h(St,{indexes:A,x:C+(_-p.width)/2,y:E+b+10})),I===0?m.push(h(W,{indexes:A,x:C+(_-p.width)/2,y:E-p.height-10})):m.push(h(W,{indexes:A,x:C-i/2-p.width/2,y:w-p.height-10}))}),c.length>0){const M=[],S=i/2,C=6,E=w+$,A=0-S,R=E+b/2;M.push(`M ${A} ${R-C}`),c.forEach((nt,V)=>{const lt=V%2===0,q=V*(_+i);let U;lt?V%4===2?U=w:U=w+$:U=w+$+60;const Z=q-S,et=q+_+S,ct=U-S,it=U+b+S,ht=U+b/2;lt?(M.push(`L ${Z} ${ct+35}`),M.push(`Q ${Z} ${ct} ${Z+35} ${ct}`),M.push(`L ${et-35} ${ct}`),M.push(`Q ${et} ${ct} ${et} ${ct+35}`),M.push(`L ${et} ${ht-C}`)):(M.push(`L ${Z} ${ht}`),M.push(`L ${Z} ${it-35}`),M.push(`Q ${Z} ${it} ${Z+35} ${it}`),M.push(`L ${et-35} ${it}`),M.push(`Q ${et} ${it} ${et} ${it-35}`),M.push(`L ${et} ${ht+C}`))});const D=c.length-1,k=D%2===0,j=D*(_+i);let L;k?D%4===2?L=w:L=w+$:L=w+$+60;const H=j+_+S,N=L+b/2,B=M.join(" "),X="gradient-zigzag-path",T=vt(s,[0])||u,J=vt(s,[c.length-1])||u,Q=c.map((nt,V)=>{const lt=V/(c.length-1)*100,q=vt(s,[V])||u;return h("stop",{offset:`${lt}%`,stopColor:q})});x.unshift(O(gt,{children:[h(yt,{children:h("linearGradient",{id:X,x1:A,y1:R,x2:H,y2:N,gradientUnits:"userSpaceOnUse",children:Q})}),h(ot,{d:B,stroke:`url(#${X})`,strokeWidth:2,fill:"none",width:(c.length-1)*(_+i)+_+S*2,height:b+120})]})),x.unshift(h(_t,{x:A-C,y:R-C,width:C*2,height:C*2,fill:"transparent",stroke:T,strokeWidth:2})),x.unshift(h(_t,{x:H-C,y:N-C,width:C*2,height:C*2,fill:"transparent",stroke:J,strokeWidth:2}))}if(c.length>0){const I=(c.length-1)*(_+i);m.push(h(W,{indexes:[c.length],x:I+_+(i-p.width)/2,y:w-p.height-10}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,O(F,{children:[h(jt,{children:x}),h(xt,{children:y}),h(pt,{children:m})]})]})};wt("sequence-horizontal-zigzag",{component:bg,composites:["title","item"]});var yC=Object.defineProperty,_C=Object.defineProperties,xC=Object.getOwnPropertyDescriptors,vg=Object.getOwnPropertySymbols,bC=Object.prototype.hasOwnProperty,vC=Object.prototype.propertyIsEnumerable,wg=(t,e,n)=>e in t?yC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,uo=(t,e)=>{for(var n in e||(e={}))bC.call(e,n)&&wg(t,n,e[n]);if(vg)for(var n of vg(e))vC.call(e,n)&&wg(t,n,e[n]);return t},po=(t,e)=>_C(t,xC(e));function wC(t){const{width:e,height:n,colorPrimary:r}=t,i=r,o=tt.mix(r,"#000",20).toHexString(),s=tt.mix(r,"#fff",50).toHexString(),a=tt.mix(s,"#000",15).toHexString();function l($,M){const S=[{position:.25,offset:.1},{position:.45,offset:-.02},{position:.6,offset:.04},{position:.75,offset:-.1}],C={x:0,y:M},E={x:$,y:M},A={x:$/2,y:0},R={x:$/2,y:M},D=M*.35,k=D/M,j={x:A.x*(1-k)+C.x*k,y:D},L={x:A.x,y:D},H={x:A.x*(1-k)+E.x*k,y:D},N=S.map(T=>{const J=j.x+(H.x-j.x)*T.position,Q=D,nt=M*T.offset;return{x:J,y:Q+nt,position:T.position,offset:T.offset}});N.sort((T,J)=>T.position-J.position);const B=N.filter(T=>T.x<=L.x),X=N.filter(T=>T.x>L.x);return{leftBottom:C,rightBottom:E,peak:A,centerBottom:R,snowLineY:D,leftEdge:j,centerSnow:L,rightEdge:H,leftRipples:B,rightRipples:X}}const{leftRipples:c,rightRipples:f,leftBottom:u,rightBottom:d,peak:p,centerBottom:g,leftEdge:m,centerSnow:y,rightEdge:x}=l(e,n),_=[p,m,...c,y],b=[p,y,...f,x],v=[m,...c,y,g,u],P=[y,...f,x,d,g],w=$=>$.map(M=>`${M.x},${M.y}`).join(" ");return O(jt,po(uo({},t),{children:[h("polygon",{points:w(_),fill:s}),h("polygon",{points:w(b),fill:a}),h("polygon",{points:w(v),fill:i}),h("polygon",{points:w(P),fill:o})]}))}function $C(t){const n={tiny:27,small:48,medium:54,large:72}[t]||54,r="#17C76F",i="#139B57",o="#737373",s=n*.7,a=n-s,l=s*.8,c=l,f=c/6,u=(c-f)/2,d=s;return O(jt,{width:c,height:n,children:[h("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:r,clipPath:"inset(0 50% 0 0)"}),h("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:i,clipPath:"inset(0 0 0 50%)"}),h("rect",{x:u,y:d,width:f,height:a,fill:o})]})}function PC(t){const{width:e,height:n}=t,r=e/2,i=n/2,o=Math.min(e,n)*.28,s=Math.min(e,n)*.14,a=Math.min(e,n)*.07,l=0,c=i-a/2,f=a*.4,u=8,d=Array.from({length:u},(p,g)=>{const m=360/u*g;return h("rect",{x:l,y:c,width:s,height:a,rx:f,ry:f,fill:"#FFCB0E",transform:`rotate(${m}, ${r}, ${i})`})});return O(jt,po(uo({},t),{children:[h("circle",{cx:r,cy:i,r:o,fill:"#FFCB0E"}),...d]}))}function MC(t){return t.type==="single"?h(jt,po(uo({},t),{width:54,height:36,children:h("path",{d:"M10.2635 13.3806C11.0019 9.99045 12.7381 6.91002 15.2405 4.55004C17.743 2.19007 20.8929 0.662716 24.2701 0.171643C27.6473 -0.31943 31.0914 0.24912 34.143 1.80148C37.1946 3.35385 39.7087 5.81625 41.3501 8.86031C44.8835 9.0468 48.1994 10.6544 50.5684 13.3294C52.9373 16.0044 54.1653 19.5277 53.9821 23.1242C53.7989 26.7207 52.2195 30.0959 49.5914 32.5071C46.9634 34.9184 43.5019 36.1683 39.9684 35.9818H11.1517C4.93436 35.9818 0 30.9593 0 24.6309C0.0598447 21.8016 1.13799 19.093 3.02989 17.0192C4.9218 14.9454 7.49584 13.6506 10.2635 13.3806Z",fill:"#70CAF8"})})):O(jt,po(uo({},t),{width:73,height:40,children:[h("path",{d:"M61.6461 14.9716C60.8681 11.1875 58.9581 7.73823 56.1763 5.09315C53.3944 2.44806 49.8758 0.735682 46.0992 0.189041C42.3226 -0.357601 38.4714 0.288046 35.0699 2.03812C31.6683 3.7882 28.8815 6.5577 27.0889 9.96971C23.161 10.1687 19.4719 11.9405 16.8333 14.8953C14.1947 17.8502 12.8227 21.746 13.0191 25.7258C13.2155 29.7055 14.9642 33.4433 17.8806 36.1167C20.7969 38.7901 24.642 40.1802 28.5699 39.9812H60.6588C67.5702 39.9812 73.0006 34.4791 73.0006 27.4764C73.0006 20.9739 67.8664 15.4718 61.6461 14.9716Z",fill:"#70CAF8"}),h("path",{d:"M21.9691 6.47136e-09C25.9369 6.47136e-09 29.5264 1.62125 32.0003 4.21094C30.0604 5.7917 28.4423 7.75571 27.2581 10C23.3149 10.1989 19.6111 11.9702 16.9622 14.9238C14.3136 17.8774 12.936 21.772 13.1331 25.75C13.2057 27.2131 13.4902 28.6432 13.9652 30H10.7689C7.96116 29.8907 5.29664 28.7203 3.30402 26.7217C1.31144 24.7231 0.135825 22.0419 0.0110544 19.21C-0.113702 16.378 0.821178 13.6017 2.63019 11.4326C4.43921 9.26356 6.99065 7.8602 9.77766 7.5C11.9582 3.00012 16.6168 8.76701e-05 21.9691 6.47136e-09Z",fill:"#5BA2C6"})]}))}const $g=t=>{const{Title:e,Item:n,data:r,gap:i=20,minHeight:o=100,maxHeight:s=200,minWidth:a=260,maxWidth:l=300,options:c}=t,{title:f,desc:u,items:d=[]}=r,p=e?h(e,{title:f,desc:u}):null,g=[],m=[],y=[],x=[],_=d.length,b=pe(c.themeConfig),v=60,P={single:{width:54,height:36},double:{width:73,height:40}},w=[],$=[];let M=0,I=0;d.forEach((N,B)=>{const X=_>1?B/(_-1):0,J=(o+(s-o)*X)*1.6,Q=Math.max(a,Math.min(l,J));w.push(Q);const nt=I;$.push(nt),I+=Q/2,B===_-1&&(M=nt+Q)});const S=$[0],C=$[_-1]+w[_-1],E=C-S,A=_>1?(E-i*(_-1))/_:E,R=G(h(n,{indexes:[0],data:r,datum:d[0],width:A})),D=32,k=s+i,j=k+D+10;d.forEach((N,B)=>{const X=[B],T=o+(s-o)*(_>1?B/(_-1):0),J=w[B],Q=$[B],nt=s-T,V=vt(c,[B])||b.colorPrimary;y.push(h(wC,{colorPrimary:V,x:Q,y:nt,width:J,height:T}));const lt=S+B*(A+i);x.push(h(kt,{x:lt,y:k,width:A,height:D,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:V,backgroundColor:V,backgroundOpacity:.5,backgroundRadius:4,children:String(B+1).padStart(2,"0")})),g.push(h(n,{indexes:X,datum:N,data:r,x:lt,y:j,width:A}))});const L=G(h(W,{indexes:[0]})),H=j+R.height+10;if(d.forEach((N,B)=>{const X=[B],T=S+B*(A+i);m.push(h(St,{indexes:X,x:T+A/2-L.width/2,y:H})),B<d.length-1&&m.push(h(W,{indexes:[B+1],x:T+A+i/2-L.width/2,y:H}))}),_>0){const N=S;m.unshift(h(W,{indexes:[0],x:N-i/2-L.width/2,y:H}));const B=S+(_-1)*(A+i);m.push(h(W,{indexes:[_],x:B+A+i/2-L.width/2,y:H})),y.push(h(PC,{x:M-v-20,y:-35,width:v,height:v}));const X=["tiny","small","medium","large"],T={tiny:27,small:48,medium:54,large:72},J={tiny:14.85,small:26.4,medium:29.7,large:39.6},Q=[],nt=(lt,q,U=5)=>Q.some(Z=>!(lt+q+U<Z.x||lt>Z.x+Z.width+U));d.forEach((lt,q)=>{const U=$[q],Z=w[q],ct=q===_-1?3:q===0?1:2;for(let it=0;it<ct;it++){const ht=q*100+it*37,Pt=ht*17%X.length,Ct=X[Pt],Tt=T[Ct],mt=J[Ct];let Nt=0,xe=0,Yt=!1;for(;Nt<20&&!Yt;){const Jt=(ht*13+Nt*19)%100/100,Ut=U+Z*.15,Wt=U+Z*.85-mt;xe=Ut+(Wt-Ut)*Jt,nt(xe,mt)||(Yt=!0),Nt++}if(Yt){Q.push({x:xe,width:mt});const Jt=s-Tt;y.push(h(F,{x:xe,y:Jt,children:$C(Ct)}))}}});const V=Math.max(1,Math.floor(_/1.5));for(let lt=0;lt<V;lt++){const q=lt*11+_*5+1,U=q%2===0?"single":"double",Z=P[U],et=C-S-Z.width,ct=S+q*7%100/100*et,it=q*13%40;y.push(h(MC,{type:U,x:ct,y:it,width:Z.width,height:Z.height}))}}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,O(F,{children:[h(F,{children:y}),h(F,{children:x}),h(xt,{children:g}),h(pt,{children:m})]})]})};wt("sequence-mountain",{component:$g,composites:["title","item"]});const go=t=>Math.round(t*1e10)/1e10,qa=(t,e)=>go(Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))),mo=Math.PI,OC=mo*2,CC=(t,e)=>{const n=e-t;return n>mo&&n<OC||n<0&&n>-mo?-1:1},SC=(t,e,n,r,i,o)=>{const s=Math.atan2(t.y-e.y,t.x-e.x),a=Math.atan2(n.y-e.y,n.x-e.x),l=Math.acos((r*r+o*o-i*i)/(2*r*o)),c=1/Math.tan(l/2),f=CC(s,a),u=s+f*l/2;return{prev:s,next:a,main:l,vel:c,dir:f,bis:u}},Ga=Math.PI,IC=(t,e,n)=>t.reduce((r,i)=>{const{x:o,y:s,angle:{prev:a,next:l},arc:{x:c,y:f,radius:u}}=i,d=i.angle.dir*-1,p=a+d*Ga/2,g=(d*Ga+l-a)%Ga,m=n-1,y=g/m,x=[];if(!y)return r.concat({x:o,y:s});for(let _=0;_<=m;_++)x.push({x:c+Math.cos(p+y*_)*u,y:f+Math.sin(p+y*_)*u});return r.concat(x)},[]),AC=(t,e=0)=>{const n=t.length,r=[],i=[],o=[];t.forEach((l,c)=>{const f=t[(c-1+n)%n],u=t[(c+1)%n],d=qa(f,l),p=qa(f,u),g=qa(l,u),m=SC(f,l,u,d,p,g);m.main===0&&(m.main=Number.EPSILON,m.vel=Number.MAX_SAFE_INTEGER),m.main===mo&&(m.vel=0);const y={x:l.x,y:l.y,angle:m,offset:0,arc:{radius:e,hit:e,lim:Math.min(g/m.vel,d/m.vel,l.r||0)},in:{length:d,rest:d},out:{length:g,rest:g},locked:!1,id:c,get prev(){return r[(c-1+n)%n]},get next(){return r[(c+1)%n]}};isNaN(m.main)&&(m.main=0,m.bis=m.prev||m.next,o.push(y)),typeof l.r=="number"&&(l.r===0?o.push(y):i.push(y)),r.push(y)}),o.forEach(l=>{l.angle.vel=0,l.arc.radius=0,Ua(l)}),r.forEach(l=>{l.arc.hit=Math.min(l.out.rest/(l.angle.vel+l.next.angle.vel),l.in.rest/(l.angle.vel+l.prev.angle.vel))});let s=yo(i);for(;s;)EC(s),s=yo(i);for(s=yo(r);s;)kC(s,e),s=yo(r);const a=r.map(l=>{const c=l.arc.radius/Math.sin(l.angle.main/2);return{id:l.id,x:l.x,y:l.y,angle:{main:go(l.angle.main),prev:l.angle.prev,next:l.angle.next,bis:l.angle.bis,dir:l.angle.dir},offset:go(l.offset),arc:{radius:go(l.arc.radius),x:l.x+(Math.cos(l.angle.bis)*c||0),y:l.y+(Math.sin(l.angle.bis)*c||0)},in:{length:l.in.length,x:l.x+Math.cos(l.angle.prev)*l.offset,y:l.y+Math.sin(l.angle.prev)*l.offset},out:{length:l.out.length,x:l.x+Math.cos(l.angle.next)*l.offset,y:l.y+Math.sin(l.angle.next)*l.offset},get prev(){return a[(l.id-1+n)%n]},get next(){return a[(l.id+1)%n]}}});return a},EC=t=>{const{prev:e,next:n}=t;e.locked&&!n.locked?t.arc.radius=Math.min(Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.in.rest/t.angle.vel,t.arc.lim):n.locked&&!e.locked?t.arc.radius=Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),t.out.rest/t.angle.vel,t.arc.lim):n.locked&&e.locked?t.arc.radius=Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.lim):t.arc.radius=Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.arc.lim),Ua(t)},kC=(t,e)=>{if(e>t.arc.hit){const{prev:n,next:r}=t;n.locked&&!r.locked?t.arc.radius=Math.max(Math.min(t.in.rest/t.angle.vel,t.out.length/(t.angle.vel+r.angle.vel),t.arc.radius),0):r.locked&&!n.locked?t.arc.radius=Math.max(Math.min(t.out.rest/t.angle.vel,t.in.length/(t.angle.vel+n.angle.vel),t.arc.radius),0):r.locked&&n.locked?t.arc.radius=Math.max(Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.radius),0):t.arc.radius=t.arc.hit}Ua(t)},Ua=t=>{const{prev:e,next:n}=t;t.offset=t.arc.radius*t.angle.vel,e.out.rest-=t.offset,t.in.rest-=t.offset,t.out.rest-=t.offset,n.in.rest-=t.offset,t.locked=!0,e.arc.hit=Math.min(e.in.length/(e.angle.vel+e.prev.angle.vel),e.in.rest/e.angle.vel,e.out.rest/e.angle.vel),n.arc.hit=Math.min(n.out.length/(n.angle.vel+n.next.angle.vel),n.out.rest/n.angle.vel,n.in.rest/n.angle.vel)},yo=t=>t.reduce((e,n)=>n.locked?e:e?n.arc.hit<e.arc.hit?n:e:n,null),Pg=t=>{const{Title:e,Item:n,data:r,gap:i=10,width:o=700,pyramidWidth:s,itemHeight:a=60,options:l}=t,{title:c,desc:f,items:u=[]}=r,d=e?h(e,{title:c,desc:f}):null;if(u.length===0)return h(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:d});const p=5,g=pe(l.themeConfig),m=30,y=[],x=[],_=[],b=[],v=s!=null?s:o*.6,P=o-v,w=a*1.2,$=u.length*w+(u.length-1)*i;return u.forEach((M,I)=>{const S=[I],C=I===0,E=vt(l,[I])||g.colorPrimary,{points:A,topWidth:R,bottomWidth:D}=TC(v,w,i,u.length,I),k=AC(A,p),j=IC(k,"AMOUNT",10),L=v/2,H=I*(w+i),N=(w-a)/2,B=H+N,X=L+R/2,T=L+D/2,Q=X-p,nt=P+p,V=a,lt=Q+nt,q=L-m/2,U=H+w/2-m/2+(C?8:0),Z=T,et=lt-T,ct=B;_.push(h(dt,{x:Q,y:B,width:nt,height:V,ry:"10",fill:g.colorPrimaryBg,"data-element-type":"shape"}));const it=`${E}-pyramid-${I}`;x.push(h(yt,{children:O("linearGradient",{id:it,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[h("stop",{offset:"0","stop-color":E}),h("stop",{offset:"100%","stop-color":tt.mix(E,"#fff",40).toHexString()})]})}),h(be,{points:j,fill:`url(#${it})`,y:H,"data-element-type":"shape"})),b.push(h(Gt,{indexes:S,x:q,y:U,size:m,fill:"#fff"})),y.push(h(n,{indexes:S,datum:M,data:r,x:Z,y:ct,width:et,height:a,positionV:"middle"}))}),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,O(F,{width:o,height:$,children:[h(F,{children:_}),h(F,{children:x}),h(F,{children:b}),h(xt,{children:y}),h(pt,{})]})]})};function TC(t,e,n,r,i){const o=t/2,s=r*e+(r-1)*n,a=i*(e+n),l=a+e,c=a/s*t,f=l/s*t;let u;if(i===0){const d={x:o,y:0},p={x:o+f/2,y:e},g={x:o-f/2,y:e};u=[d,p,g]}else{const d={x:o+c/2,y:0},p={x:o+f/2,y:e},g={x:o-f/2,y:e},m={x:o-c/2,y:0};u=[d,p,g,m]}return{points:u,topWidth:c,bottomWidth:f}}wt("sequence-pyramid",{component:Pg,composites:["title","item"]});const wr={iconSize:50,roadWidth:24,outerRadius:60,rowWidth:400,spacing:30,colorDefault:"#666666"},Mg=(t,e)=>`M ${t} ${e}`,Lt=(t,e)=>`L ${t} ${e}`,kn=(t,e,n,r)=>`A ${t} ${t} 0 0 ${e} ${n} ${r}`,zC=(t,{roadWidth:e,innerRadius:n,outerRadius:r})=>{const i=(e+n*2)*t;return{y1:i,y2:i+e,y3:i+e+n,y4:i+e+n*2,y5:i+r*2}};function HC({i:t,direction:e,x:n,y:r,color:i,data:o,itemBounds:s,item:a,Item:l,flipped:c}){const{iconSize:f}=wr,u=e==="left",d=u?n.x4-f/2:n.x3-f/2,p=r.y3-f/2,g=u?n.x6+wr.spacing:n.x1-wr.spacing-s.width,m=r.y3-s.height/2,y=u?c?"flipped":"normal":c?"normal":"flipped";return{icon:h(Ve,{indexes:[t],x:d,y:p,size:f,fill:i}),label:h(kt,{x:u?d-10:d+f+10,y:p+f/2-15,fontSize:30,fill:i,alignHorizontal:u?"right":"left",children:String(t+1).padStart(2,"0")}),item:h(l,{indexes:[t],data:o,datum:a,x:g,y:m,positionH:y})}}function LC({direction:t,x:e,y:n,color:r,elements:i}){const o=t==="left";i.push(h(YO,{x:o?e.x6+10:e.x1-20,y:n.y3-5,width:10,height:8,rotation:o?90:-90,colorPrimary:r,"data-element-type":"shape"}))}const Og=t=>{const{Title:e,Item:n,data:r,spacing:i=wr.spacing,options:o,flipped:s=!1}=t,{title:a,desc:l,items:c=[]}=r,f=e?h(e,{title:a,desc:l}):null,u=G(h(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),{roadWidth:d,outerRadius:p,rowWidth:g,colorDefault:m}=wr,y=d/2,x=p-d,_=(u.width+i)*2+g,b=u.width+i,v=b+p,P=b+g-p,$=P+x+d,M=b+g/2,I=[],S=[],C=[],E=[],A=[],R=[],D=[];for(let L=0;L<c.length;L++){const H=vt(o,[L])||m,N=L%2===0?"right":"left",B=L===0,X=L===c.length-1,T=zC(L,{roadWidth:d,innerRadius:x,outerRadius:p});if(N==="right"){const V=B?[$,T.y1]:[P,T.y1],lt=[v,T.y1],q=[v,T.y5],U=B?[$,T.y2]:[P,T.y2],Z=[v,T.y2];if(I.push(B?Mg($,T.y1+y):Lt(P,T.y1+y),Lt(v,T.y1+y),kn(p-y,0,v,T.y4+y)),S.push(B?Mg(...V):Lt(...V),Lt(...lt),kn(p,0,...q)),C.push(Lt(...U),Lt(...Z),kn(x,1,...Z)),X){const et=d/2;S.push(Lt(M,T.y5),Lt(M,T.y5+et),Lt(M+d,T.y5-et),Lt(M,T.y4-et),Lt(M,T.y4),Lt(v,T.y4)),I.push(Lt(M,T.y4+y))}}else{const V=[v,T.y2],lt=[P,T.y2],q=[P,T.y4],U=[v,T.y1],Z=[P,T.y1];if(I.push(Lt(P,T.y1+y),kn(p-y,1,P,T.y4+y)),S.push(Lt(...V),Lt(...lt),kn(x,1,...q)),C.push(Lt(...U),Lt(...Z),kn(p,0,...Z)),X){const et=d/2;S.push(Lt(M,T.y4),Lt(M,T.y4-et),Lt(M-d,T.y4+et),Lt(M,T.y5+et),Lt(M,T.y5),Lt(P,T.y5)),I.push(Lt(M,T.y4+y))}}LC({direction:N,x:{x1:b,x6:$},y:T,color:H,elements:D});const{icon:J,label:Q,item:nt}=HC({i:L,direction:N,x:{x1:b,x3:v,x4:P,x6:$},y:T,color:H,data:r,itemBounds:u,item:c[L],Item:n,flipped:s});E.push(J),A.push(Q),R.push(nt)}const k=[...S,...C.reverse(),"Z"],j=c.length*(d+x*2)+d*1.5;return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,O(F,{width:_,height:u.height<=p*2?j:j+u.height-p*2,children:[h(ot,{width:g,height:j,d:k.join(" "),fill:m,stroke:m,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),h(ot,{d:I.join(" "),stroke:"white",fill:"none",strokeWidth:"3",strokeDasharray:"8 8",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),O(gt,{children:[E,A,R,D]})]})]})};wt("sequence-roadmap-vertical",{component:Og,composites:["title","item"]});const Cg=t=>{const{Title:e,Item:n,data:r,gap:i=40,itemsPerRow:o=3,rowGap:s=80,options:a}=t,{title:l,desc:c,items:f=[]}=r,u=e?h(e,{title:l,desc:c}):null,d=Zt(a),p=G(h(W,{indexes:[0]})),g=G(h(n,{indexes:[0],data:r,datum:f[0],positionH:"center"})),m=[],y=[],x=[],_=25,b=25;if(f.forEach((v,P)=>{const w=Math.floor(P/o),$=P%o,M=w%2===1,S=(M?o-1-$:$)*(g.width+i),C=w*(g.height+s),E=[P];if(y.push(h(n,{indexes:E,datum:v,data:r,x:S,y:C,positionH:"center"})),m.push(h(St,{indexes:E,x:S+(g.width-p.width)/2,y:C+g.height+10})),P===0&&m.push(h(W,{indexes:E,x:S+(g.width-p.width)/2,y:C-p.height-10})),P<f.length-1){const A=Math.floor((P+1)/o),R=(P+1)%o,j=(A%2===1?o-1-R:R)*(g.width+i);if(w===A){const H=M,N=H?j+g.width+(i-_)/2:S+g.width+(i-_)/2,B=C+g.height/2-b/2;x.push(h(Va,{x:N,y:B,width:_,height:b,colorPrimary:d,rotation:H?180:0})),m.push(h(W,{indexes:[P+1],x:N+(_-p.width)/2,y:C-p.height-10}))}else{const H=S+g.width/2-_/2,N=C+g.height+(s-b)/2;x.push(h(Va,{x:H,y:N,width:_,height:b,colorPrimary:d,rotation:90})),m.push(h(W,{indexes:[P+1],x:H+(_-p.width)/2,y:N+(b-p.height)/2}))}}}),f.length>0){const v=f.length-1,P=Math.floor(v/o),w=v%o,I=(P%2===1?o-1-w:w)*(g.width+i),S=P*(g.height+s);m.push(h(W,{indexes:[f.length],x:I+(g.width-p.width)/2,y:S+g.height+p.height+20}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,O(F,{children:[h(F,{children:x}),h(xt,{children:y}),h(pt,{children:m})]})]})};wt("sequence-snake-steps",{component:Cg,composites:["title","item"]});const Sg=t=>{const{Title:e,Item:n,data:r,gap:i=40,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?h(e,{title:s,desc:a}):null,f=Zt(o),u=G(h(W,{indexes:[0]})),d=G(h(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),p=[],g=[],m=[],y=25,x=25,_=Math.max(u.height+20,30);if(l.forEach((b,v)=>{const P=v*(d.width+i),w=[v];if(g.push(h(n,{indexes:w,datum:b,data:r,x:P,y:_,positionH:"center"})),p.push(h(St,{indexes:w,x:P+(d.width-u.width)/2,y:_+d.height+10})),v===0?p.push(h(W,{indexes:w,x:P+(d.width-u.width)/2,y:_-u.height-10})):p.push(h(W,{indexes:w,x:P-i/2-u.width/2,y:_-u.height-10})),v<l.length-1){const $=P+d.width+(i-y)/2,M=_+d.height/2-x/2;m.push(h(Va,{x:$,y:M,width:y,height:x,colorPrimary:f}))}}),l.length>0){const b=(l.length-1)*(d.width+i);p.push(h(W,{indexes:[l.length],x:b+d.width+(i-u.width)/2,y:_-u.height-10}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,O(F,{children:[h(F,{children:m}),h(xt,{children:g}),h(pt,{children:p})]})]})};wt("sequence-steps",{component:Sg,composites:["title","item"]});const Ig=t=>{const{Title:e,Item:n,data:r,gap:i=10,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?h(e,{title:s,desc:a}):null,f=Zt(o),u=Nu(o),d=G(h(W,{indexes:[0]})),p=G(h(n,{indexes:[0],data:r,datum:l[0],positionH:"normal"})),g=[],m=[],y=[],x=10,_=x+70+10,b=_+30,v=6;if(l.length>1){const P=p.height/2+v,w=(l.length-1)*(p.height+i)+p.height/2-v,$=`M ${_} ${P} L ${_} ${w}`,M="gradient-timeline-line",I=w-P,S=l.map((C,E)=>{const R=(E*(p.height+i)+p.height/2-P)/I*100,D=vt(o,[E]);return h("stop",{offset:`${R}%`,stopColor:D||f})});y.push(O(gt,{children:[h(yt,{children:h("linearGradient",{id:M,x1:_,y1:P,x2:_,y2:w,gradientUnits:"userSpaceOnUse",children:S})}),h(ot,{d:$,stroke:`url(#${M})`,strokeWidth:2,width:1,height:w-P})]}))}if(l.forEach((P,w)=>{const $=w*(p.height+i),M=$+p.height/2,I=[w];y.push(h(kt,{x,y:M,width:70,fontSize:18,fontWeight:"bold",alignHorizontal:"left",alignVertical:"middle",fill:u[w%u.length],children:`STEP ${w+1}`})),m.push(h(n,{indexes:I,datum:P,data:r,x:b,y:$,positionH:"normal"})),y.push(h(_t,{x:_-v,y:M-v,width:v*2,height:v*2,fill:u[w%u.length]})),g.push(h(St,{indexes:I,x:b-d.width-10,y:$+(p.height-d.height)/2})),w===0?g.push(h(W,{indexes:I,x:b+(p.width-d.width)/2,y:$-d.height-10})):g.push(h(W,{indexes:I,x:b+(p.width-d.width)/2,y:$-i/2-d.height/2}))}),l.length>0){const P=(l.length-1)*(p.height+i);g.push(h(W,{indexes:[l.length],x:b+(p.width-d.width)/2,y:P+p.height+10}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,O(F,{children:[h(jt,{children:y}),h(xt,{children:m}),h(pt,{children:g})]})]})};wt("sequence-timeline",{component:Ig,composites:["title","item"]});const Ag=120,Eg=108,_o=30,RC="M0 34.4903C0 37.8781 0.849901 41.1522 2.43491 44.2451C4.23514 47.7639 6.98606 51.0482 10.5164 54.0008C21.3317 63.0477 39.4607 68.9799 59.9998 68.9799C80.5391 68.9799 98.6691 63.0477 109.483 54.0008C113.013 51.0482 115.765 47.7639 117.564 44.2451C119.149 41.1522 120 37.8781 120 34.4903C120 15.4417 93.1366 0 59.9998 0C26.8632 0 0 15.4417 0 34.4903Z",NC="M0 34.4904V53.9996C0 57.3885 0.849901 60.6616 2.43491 63.7555C9.75384 78.0548 32.7566 88.4909 59.9998 88.4909C87.2438 88.4909 110.246 78.0548 117.564 63.7555C119.149 60.6616 120 57.3885 120 53.9996V34.4904C120 37.8781 119.149 41.1522 117.564 44.2451C115.765 47.7639 113.013 51.0482 109.483 54.0008C98.6691 63.0477 80.5391 68.9799 59.9998 68.9799C39.4607 68.9799 21.3317 63.0477 10.5164 54.0008C6.98606 51.0482 4.23514 47.7639 2.43491 44.2451C0.849901 41.1522 0 37.8781 0 34.4904Z",jC="M0 53.9996V73.5106C0 92.5595 26.8632 108 59.9998 108C93.1366 108 120 92.5595 120 73.5106V53.9996C120 57.3885 119.149 60.6616 117.564 63.7555C110.246 78.0548 87.2438 88.4909 59.9998 88.4909C32.7566 88.4909 9.75384 78.0548 2.43491 63.7555C0.849901 60.6616 0 57.3885 0 53.9996Z",kg=O("filter",{id:"sequence-zigzag-pucks-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[h("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),h("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),h("feOffset",{dx:"-7",dy:"7"}),h("feGaussianBlur",{stdDeviation:"7.5"}),h("feComposite",{in2:"hardAlpha",operator:"out"}),h("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"}),h("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),h("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),Tg=t=>{const{Title:e,Item:n,data:r,options:i,gap:o=80}=t,s=Ag,a=Eg,{title:l,desc:c,items:f=[]}=r,u=e?h(e,{title:l,desc:c}):null,d=Zt(i);if(f.length===0)return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h(yt,{children:kg}),u,h(F,{children:h(pt,{children:h(W,{indexes:[0],x:0,y:0})})})]});const p=G(h(n,{indexes:[0],data:r,datum:f[0],positionH:"center"})),g=G(h(W,{indexes:[0]})),m=[],y=[],x=[];let _=-1/0;const b=p.height+_o+a;return f.forEach((v,P)=>{const w=[P],$=vt(i,w),M=P%2===0,I=P*(s+o),S=M?0:p.height+_o,C=`puck-gradient-middle-${P}`,E=`puck-gradient-bottom-${P}`;x.push(O(F,{x:I,y:S,id:`puck-${P}`,width:s,height:a,filter:"url(#sequence-zigzag-pucks-3d-shadow-filter)",children:[O(yt,{children:[O("linearGradient",{id:C,x1:"115",y1:"55.9991",x2:"15.0002",y2:"55.9991",gradientUnits:"userSpaceOnUse",children:[h("stop",{offset:"0",stopColor:$||d}),h("stop",{offset:"1",stopColor:$||d,stopOpacity:"0.6"})]}),O("linearGradient",{id:E,x1:"115",y1:"72.1803",x2:"15.0002",y2:"72.1803",gradientUnits:"userSpaceOnUse",children:[h("stop",{offset:"0",stopColor:"#F4F4FB"}),h("stop",{offset:"1",stopColor:"#8E8C90"})]})]}),O(jt,{width:Ag,height:Eg,children:[h(ot,{d:RC,fill:$||d}),h(ot,{d:NC,fill:`url(#${C})`}),h(ot,{d:jC,fill:`url(#${E})`})]}),h("text",{x:65,y:40,width:50,height:50,fontSize:40,fontWeight:"bold",fill:"#FFFFFF",textAnchor:"middle",dominantBaseline:"middle",transform:"rotate(-15 65 40) scale(1, 0.8)",children:P+1})]}));const A=I+(s-p.width)/2,R=M?S+a+_o:S-_o-p.height;if(_=Math.max(_,R+p.height),y.push(h(n,{indexes:w,datum:v,data:r,x:A,y:R,positionH:"center"})),m.push(h(St,{indexes:w,x:A+p.width-g.width/2,y:R+p.height-g.height/2})),P===0&&m.push(h(W,{indexes:[0],x:I+s/2-g.width/2-(o+s)/2,y:S+a/2-g.height/2})),P<f.length-1){const k=(P+1)%2===0?0:b,j=I+s+o/2-g.width/2,L=(S+a/2+k+a/2)/2-g.height/2;m.push(h(W,{indexes:[P+1],x:j,y:L}))}else m.push(h(W,{indexes:[f.length],x:I+s+o/2-g.width/2,y:S+a/2-g.height/2}))}),O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[h(yt,{children:kg}),u,O(F,{x:0,y:0,children:[h(F,{children:x}),h(xt,{children:y}),h(pt,{children:m})]})]})};wt("sequence-zigzag-pucks-3d",{component:Tg,composites:["title","item"]});const DC=240,BC=130,FC=105,an=12,WC=120,zg=50,XC=.6,YC="M132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30824 50.6599C2.43719 47.8482 0.00459679 44.1562 0.0152907 40.472L3.17695e-05 45.6925C-0.0101404 49.378 2.42245 53.0686 7.29298 55.8803L52.7289 82.1129C62.4094 87.7011 78.0485 87.7011 87.6652 82.1129L132.806 55.8803C137.583 53.1038 139.975 49.4705 139.986 45.832L140 40.6116C139.989 44.2501 137.598 47.8834 132.821 50.6599Z",Hg="M132.707 30.4224C142.386 36.0119 142.437 45.0704 132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30825 50.6599C-2.37126 45.0717 -2.42225 36.0132 7.19414 30.4237L52.335 4.19115C61.9517 -1.39705 77.5908 -1.39705 87.2713 4.19115L132.707 30.4224Z",Lg=70+an/2,Rg=40+an/2,Ng=h("filter",{id:"sequence-zigzag-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:h("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"15",result:"blur"})}),jg=t=>{var e;const{Title:n,Item:r,data:i,options:o,dx:s=DC,dy:a=BC,iconSize:l=30}=t,{title:c,desc:f,items:u=[]}=i,d=n?h(n,{title:c,desc:f}):null,p=Zt(o);if(u.length===0)return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h(yt,{children:Ng}),d,h(F,{children:h(pt,{children:h(W,{indexes:[0],x:0,y:0})})})]});const g=G(h(r,{indexes:[0],data:i,datum:u[0]})),m=G(h(W,{indexes:[0]})),y=[],x=[],_=[],b=[],v=[];let P=0,w=0,$="",M=1/0,I=-1/0,S=1/0,C=1/0;const E=[];u.forEach((D,k)=>{const j=P,L=w;E.push({x:j,y:L}),M=Math.min(M,L);const H=j-Lg,N=L-Rg;S=Math.min(S,H),C=Math.min(C,N);const B=k%2===0;k<u.length-1&&(P+=s,w=B?w+a:w-a)});const A=Math.max(0,-S),R=Math.max(0,-C);if(P=0,w=0,u.forEach((D,k)=>{const j=[k],L=E[k],H=L.x+A,N=L.y+R,B=vt(o,j),X=Math.max(0,H-Lg),T=Math.max(0,N-Rg),J=10,Q=zg+10,{colorPrimaryBg:nt}=pe({colorPrimary:B});if(b.push(O(jt,{x:X,y:T,width:140,height:110,children:[h(_t,{x:J,y:Q,width:WC,height:zg,fill:B||p,filter:"url(#sequence-zigzag-glow-filter)",opacity:XC}),h(ot,{d:YC,fill:B||p}),h(ot,{d:Hg,fill:"#fff"}),h(ot,{d:Hg,fill:nt||nt})]})),D.icon){const q=Math.max(0,H-l/2-an/2),U=Math.max(0,N-l/2-an/2);v.push(h(Gt,{x:q,y:U,size:l,indexes:j,fill:B}))}const V=H-g.width/2-an/2,lt=Math.max(0,N+FC-an/2);if(I=Math.max(I,lt+g.height),k===0?$=`M ${H} ${N}`:$+=` L ${H} ${N}`,x.push(h(r,{indexes:j,datum:D,data:i,x:V,y:lt})),y.push(h(St,{indexes:j,x:Math.max(0,V+g.width-m.width/2),y:Math.max(0,lt+g.height-m.height/2)})),k<u.length-1){const q=E[k+1],U=q.x+A,Z=q.y+R,et=Math.max(0,H+(U-H)/2-m.width/2),ct=Math.max(0,N+(Z-N)/2-m.height/2);y.push(h(W,{indexes:[k+1],x:et,y:ct}))}else y.push(h(W,{indexes:[u.length],x:Math.max(0,V+g.width+s/4),y:Math.max(0,lt+g.height/2-m.height/2)}))}),$){const D=(((e=E[E.length-1])==null?void 0:e.x)||0)+A;_.push(h(ot,{d:$,stroke:"#f3f2f1",strokeWidth:an,fill:"none",width:D,height:I-Math.min(M+R,0)}))}return O(rt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[h(yt,{children:Ng}),d,O(F,{x:0,y:0,children:[h(F,{children:[..._,...b,...v]}),h(xt,{children:x}),h(pt,{children:y})]})]})};wt("sequence-zigzag-steps",{component:jg,composites:["title","item"]});var VC=Object.defineProperty,qC=Object.defineProperties,GC=Object.getOwnPropertyDescriptors,xo=Object.getOwnPropertySymbols,Dg=Object.prototype.hasOwnProperty,Bg=Object.prototype.propertyIsEnumerable,Fg=(t,e,n)=>e in t?VC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ae=(t,e)=>{for(var n in e||(e={}))Dg.call(e,n)&&Fg(t,n,e[n]);if(xo)for(var n of xo(e))Bg.call(e,n)&&Fg(t,n,e[n]);return t},bo=(t,e)=>qC(t,GC(e)),Tn=(t,e)=>{var n={};for(var r in t)Dg.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&xo)for(var r of xo(t))e.indexOf(r)<0&&Bg.call(t,r)&&(n[r]=t[r]);return n};function UC(t){const e=t,{container:n="#container",padding:r=0,template:i,design:o,theme:s,themeConfig:a}=e,l=Tn(e,["container","padding","template","design","theme","themeConfig"]),c=typeof n=="string"?document.querySelector(n)||document.createElement("div"):n,u=i?Qa(i)||{}:{},{design:d}=u,p=Tn(u,["design"]);return bo(ae(ae({},p),l),{container:c,padding:Ss(r),template:i,design:ZC(ae(ae({},d),o),t),theme:s,themeConfig:JC(s,a)})}function Za(t){if(typeof t=="string")return{type:t};if(!("type"in t))throw new Error("Type is required");return t}function ZC(t,e){const{structure:n,title:r,item:i,items:o}=t||{},s=Wg(i||(o==null?void 0:o[0]),e);return{structure:QC(n),title:KC(r,e),item:s,items:o?o.map(a=>Wg(a,e)):[s]}}function QC(t){if(!t)throw new Error("Structure is required in design or template");const e=Za(t),{type:n}=e,r=Tn(e,["type"]),i=Pp(n);if(!i)throw new Error(`Structure ${n} not found`);const{component:o}=i;return bo(ae({},i),{component:s=>o(ae(ae({},s),r))})}function KC(t,e){if(!t)return{component:null};const n=Za(t),{type:r}=n,i=Tn(n,["type"]),{themeConfig:o}=e,s=(o==null?void 0:o.colorBg)||"#fff",a=Xg(s,s);return{component:l=>fc(ae(bo(ae({},l),{themeColors:a}),i))}}function Wg(t,e){if(!t)throw new Error("Item is required in design or template");const n=Za(t),{type:r}=n,i=Tn(n,["type"]),o=Fu(r);if(!o)throw new Error(`Item ${r} not found`);const{component:s,options:a}=o;return bo(ae({},o),{component:l=>{var c;const{indexes:f}=l,{data:u,themeConfig:d}=e,p=(d==null?void 0:d.colorBg)||"#fff",g=l,{themeColors:m=Xg(yi(d==null?void 0:d.palette,f,(c=u==null?void 0:u.items)==null?void 0:c.length)||(d==null?void 0:d.colorPrimary)||"#1677FF",p)}=g,y=Tn(g,["themeColors"]);return s(ae(ae({themeColors:m},y),i))},options:a})}function JC(t,e={}){var n;const r=t?zu(t)||{}:{},i=Xw({},r,e);return i.palette=e.palette||r.palette,i.stylize=(n=e.stylize)!=null?n:r.stylize,i.colorPrimary||(i.colorPrimary="#1677FF"),i.palette||(i.palette=[i.colorPrimary]),i}function Xg(t,e="#fff"){return Ru({colorPrimary:t,isDarkMode:$h(e),colorBg:e})}var tS=Object.defineProperty,Yg=Object.getOwnPropertySymbols,eS=Object.prototype.hasOwnProperty,nS=Object.prototype.propertyIsEnumerable,Vg=(t,e,n)=>e in t?tS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rS=(t,e)=>{for(var n in e||(e={}))eS.call(e,n)&&Vg(t,n,e[n]);if(Yg)for(var n of Yg(e))nS.call(e,n)&&Vg(t,n,e[n]);return t};class iS{constructor(e){this.options=e,this.parsedOptions=UC(this.options)}render(){const{container:e}=this.parsedOptions,n=this.compose(),i=new Tu(this.parsedOptions,n).render();e.replaceChildren(i)}compose(){const{design:e,data:n}=this.parsedOptions,{title:r,item:i,items:o,structure:s}=e,{component:a,props:l}=s,c=r.component,f=i.component,u=o.map(g=>g.component),d=Pl(h(a,rS({data:n,Title:c,Item:f,Items:u,options:this.parsedOptions},l))),p=vn(d);if(!p)throw new Error("Failed to parse SVG template");return p}getTypes(){const e=this.parsedOptions.design,n=e.structure.composites||[],r=e.items.map(i=>i.composites||[]);return Y_({structure:n,items:r})}}z.AlignLayout=hn,z.BadgeCard=Yu,z.BtnAdd=W,z.BtnRemove=St,z.BtnsGroup=pt,z.CandyCardLite=Gu,z.CapsuleItem=nd,z.ChartColumn=Mp,z.CircleNode=od,z.CircularProgress=hd,z.CompactCard=pd,z.CompareBinaryHorizontal=Hp,z.CompareHierarchyLeftRight=jp,z.CompareHierarchyRow=Dp,z.Defs=yt,z.DoneList=yd,z.Ellipse=_t,z.FlexLayout=rt,z.Fragment=Ln,z.Gap=zt,z.Group=F,z.HierarchyTree=Wp,z.HorizontalIconArrow=bd,z.HorizontalIconLine=Md,z.IconBadge=Sd,z.Illus=Hl,z.IndexedCard=Ed,z.Infographic=iS,z.ItemDesc=It,z.ItemIcon=Gt,z.ItemIconCircle=Ve,z.ItemLabel=ft,z.ItemValue=Fn,z.ItemsGroup=xt,z.LCornerCard=zd,z.LabelText=Wd,z.LetterCard=Rd,z.ListColumn=Xp,z.ListGrid=Yp,z.ListPyramid=Vp,z.ListRow=qp,z.ListSector=Zp,z.ListWaterfall=Qp,z.Path=ot,z.PillBadge=Dd,z.Polygon=be,z.ProgressCard=q0,z.Quadrant=Kp,z.QuarterCircular=Z0,z.QuarterSimpleCard=J0,z.Rect=dt,z.RelationCircle=Jp,z.RelationNetwork=tg,z.Renderer=Tu,z.RibbonCard=np,z.RoundedRectNode=op,z.SequenceAscendingStairs3d=hg,z.SequenceAscendingSteps=fg,z.SequenceCircleArrows=dg,z.SequenceCircular=pg,z.SequenceColorSnakeSteps=gg,z.SequenceFilterMesh=xg,z.SequenceHorizontalZigzag=bg,z.SequenceMountain=$g,z.SequencePyramid=Pg,z.SequenceRoadmapVertical=Og,z.SequenceSnakeSteps=Cg,z.SequenceSteps=Sg,z.SequenceTimeline=Ig,z.SequenceZigzagPucks3d=Tg,z.SequenceZigzagSteps=jg,z.ShapesGroup=jt,z.SimpleHorizontalArrow=lp,z.SimpleIllusItem=fp,z.SimpleItem=pp,z.SimpleVerticalArrow=yp,z.Text=kt,z.Title=fc,z.UnderlineText=bp,z.VerticalIconArrow=$p,z.cloneElement=Te,z.createFragment=O1,z.createLayout=So,z.decodeFontFamily=yf,z.encodeFontFamily=nr,z.getCombinedBounds=ul,z.getElementBounds=G,z.getElementsBounds=Ye,z.getFont=ks,z.getFontURLs=wf,z.getFonts=bf,z.getItem=Fu,z.getItemProps=At,z.getItems=y3,z.getPalette=Of,z.getPaletteColor=yi,z.getStructure=Pp,z.getStructures=rO,z.getTemplate=Qa,z.getTemplates=Kg,z.getTheme=zu,z.getThemeColors=pe,z.getThemes=t3,z.getWoff2BaseURL=l5,z.jsx=Sr,z.jsxDEV=S1,z.jsxs=C1,z.loadFont=$f,z.loadFonts=Pf,z.loadSVGResource=Ps,z.parseSVG=vn,z.registerFont=vf,z.registerItem=Et,z.registerPalette=zs,z.registerResourceLoader=J_,z.registerStructure=wt,z.registerTemplate=re,z.registerTheme=na,z.renderSVG=Pl,z.sequenceCylinders3d=mg,z.setDefaultFont=a5,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})}));
|
|
129
129
|
//# sourceMappingURL=infographic.min.js.map
|