@antv/infographic 0.1.3 → 0.1.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 +110 -105
- package/dist/infographic.min.js.map +1 -1
- package/esm/constants/element.d.ts +1 -1
- package/esm/constants/index.d.ts +1 -0
- package/esm/constants/index.js +1 -0
- package/esm/constants/service.d.ts +1 -0
- package/esm/constants/service.js +1 -0
- package/esm/designs/components/Illus.js +1 -1
- package/esm/designs/structures/chart-wordcloud.d.ts +11 -0
- package/esm/designs/structures/chart-wordcloud.js +156 -0
- package/esm/designs/structures/hierarchy-tree.d.ts +2 -0
- package/esm/designs/structures/hierarchy-tree.js +179 -50
- package/esm/designs/structures/index.d.ts +2 -0
- package/esm/designs/structures/index.js +2 -0
- package/esm/designs/structures/sequence-stairs-front.d.ts +8 -0
- package/esm/designs/structures/sequence-stairs-front.js +116 -0
- package/esm/designs/types.d.ts +8 -0
- package/esm/editor/managers/state.js +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.js +1 -0
- package/esm/options/parser.d.ts +1 -1
- package/esm/options/parser.js +33 -15
- package/esm/renderer/composites/icon.js +1 -1
- package/esm/renderer/composites/illus.js +1 -1
- package/esm/resource/loader.d.ts +2 -2
- package/esm/resource/loader.js +22 -11
- package/esm/resource/loaders/index.d.ts +1 -0
- package/esm/resource/loaders/index.js +1 -0
- package/esm/resource/loaders/remote.d.ts +1 -1
- package/esm/resource/loaders/remote.js +10 -2
- package/esm/resource/loaders/search.d.ts +1 -0
- package/esm/resource/loaders/search.js +51 -0
- package/esm/resource/types/index.d.ts +1 -0
- package/esm/resource/types/resource.d.ts +8 -1
- package/esm/resource/types/scene.d.ts +1 -0
- package/esm/resource/utils/data-uri.js +20 -11
- package/esm/resource/utils/parser.js +92 -1
- package/esm/resource/utils/ref.js +2 -2
- package/esm/runtime/Infographic.d.ts +7 -6
- package/esm/runtime/Infographic.js +48 -17
- package/esm/runtime/utils.d.ts +4 -2
- package/esm/runtime/utils.js +33 -13
- package/esm/syntax/index.d.ts +3 -0
- package/esm/syntax/index.js +101 -0
- package/esm/syntax/mapper.d.ts +3 -0
- package/esm/syntax/mapper.js +238 -0
- package/esm/syntax/parser.d.ts +14 -0
- package/esm/syntax/parser.js +142 -0
- package/esm/syntax/schema.d.ts +6 -0
- package/esm/syntax/schema.js +74 -0
- package/esm/syntax/types.d.ts +61 -0
- package/esm/syntax/types.js +1 -0
- package/esm/templates/built-in.js +4 -0
- package/esm/templates/hierarchy-tree.js +25 -11
- package/esm/templates/sequence-stairs.d.ts +2 -0
- package/esm/templates/sequence-stairs.js +42 -0
- package/esm/templates/word-cloud.d.ts +2 -0
- package/esm/templates/word-cloud.js +19 -0
- package/esm/themes/types.d.ts +1 -1
- package/esm/utils/design.d.ts +2 -0
- package/esm/utils/design.js +10 -0
- package/esm/utils/font.js +11 -1
- package/esm/utils/index.d.ts +1 -0
- package/esm/utils/index.js +1 -0
- package/lib/constants/element.d.ts +1 -1
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +1 -0
- package/lib/constants/service.d.ts +1 -0
- package/lib/constants/service.js +4 -0
- package/lib/designs/components/Illus.js +1 -1
- package/lib/designs/structures/chart-wordcloud.d.ts +11 -0
- package/lib/designs/structures/chart-wordcloud.js +160 -0
- package/lib/designs/structures/hierarchy-tree.d.ts +2 -0
- package/lib/designs/structures/hierarchy-tree.js +179 -50
- package/lib/designs/structures/index.d.ts +2 -0
- package/lib/designs/structures/index.js +2 -0
- package/lib/designs/structures/sequence-stairs-front.d.ts +8 -0
- package/lib/designs/structures/sequence-stairs-front.js +120 -0
- package/lib/designs/types.d.ts +8 -0
- package/lib/editor/managers/state.js +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +4 -1
- package/lib/options/parser.d.ts +1 -1
- package/lib/options/parser.js +32 -14
- package/lib/renderer/composites/icon.js +1 -1
- package/lib/renderer/composites/illus.js +1 -1
- package/lib/resource/loader.d.ts +2 -2
- package/lib/resource/loader.js +21 -10
- package/lib/resource/loaders/index.d.ts +1 -0
- package/lib/resource/loaders/index.js +1 -0
- package/lib/resource/loaders/remote.d.ts +1 -1
- package/lib/resource/loaders/remote.js +10 -2
- package/lib/resource/loaders/search.d.ts +1 -0
- package/lib/resource/loaders/search.js +54 -0
- package/lib/resource/types/index.d.ts +1 -0
- package/lib/resource/types/resource.d.ts +8 -1
- package/lib/resource/types/scene.d.ts +1 -0
- package/lib/resource/utils/data-uri.js +20 -11
- package/lib/resource/utils/parser.js +92 -1
- package/lib/resource/utils/ref.js +2 -2
- package/lib/runtime/Infographic.d.ts +7 -6
- package/lib/runtime/Infographic.js +47 -16
- package/lib/runtime/utils.d.ts +4 -2
- package/lib/runtime/utils.js +35 -13
- package/lib/syntax/index.d.ts +3 -0
- package/lib/syntax/index.js +104 -0
- package/lib/syntax/mapper.d.ts +3 -0
- package/lib/syntax/mapper.js +242 -0
- package/lib/syntax/parser.d.ts +14 -0
- package/lib/syntax/parser.js +146 -0
- package/lib/syntax/schema.d.ts +6 -0
- package/lib/syntax/schema.js +77 -0
- package/lib/syntax/types.d.ts +61 -0
- package/lib/syntax/types.js +2 -0
- package/lib/templates/built-in.js +4 -0
- package/lib/templates/hierarchy-tree.js +25 -11
- package/lib/templates/sequence-stairs.d.ts +2 -0
- package/lib/templates/sequence-stairs.js +45 -0
- package/lib/templates/word-cloud.d.ts +2 -0
- package/lib/templates/word-cloud.js +22 -0
- package/lib/themes/types.d.ts +1 -1
- package/lib/utils/design.d.ts +2 -0
- package/lib/utils/design.js +13 -0
- package/lib/utils/font.js +11 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/package.json +1 -1
- package/src/constants/element.ts +1 -1
- package/src/constants/index.ts +1 -0
- package/src/constants/service.ts +1 -0
- package/src/designs/components/Illus.tsx +1 -1
- package/src/designs/structures/chart-wordcloud.tsx +278 -0
- package/src/designs/structures/hierarchy-tree.tsx +212 -59
- package/src/designs/structures/index.ts +2 -0
- package/src/designs/structures/sequence-stairs-front.tsx +291 -0
- package/src/designs/types.ts +9 -0
- package/src/editor/managers/state.ts +1 -1
- package/src/index.ts +2 -0
- package/src/options/parser.ts +57 -28
- package/src/renderer/composites/icon.ts +1 -1
- package/src/renderer/composites/illus.ts +1 -1
- package/src/resource/loader.ts +22 -8
- package/src/resource/loaders/index.ts +1 -0
- package/src/resource/loaders/remote.ts +9 -2
- package/src/resource/loaders/search.ts +52 -0
- package/src/resource/types/index.ts +2 -1
- package/src/resource/types/resource.ts +12 -1
- package/src/resource/types/scene.ts +1 -0
- package/src/resource/utils/data-uri.ts +20 -11
- package/src/resource/utils/parser.ts +103 -2
- package/src/resource/utils/ref.ts +2 -2
- package/src/runtime/Infographic.tsx +74 -22
- package/src/runtime/utils.ts +38 -16
- package/src/syntax/index.ts +124 -0
- package/src/syntax/mapper.ts +362 -0
- package/src/syntax/parser.ts +171 -0
- package/src/syntax/schema.ts +98 -0
- package/src/syntax/types.ts +89 -0
- package/src/templates/built-in.ts +4 -0
- package/src/templates/hierarchy-tree.ts +34 -11
- package/src/templates/sequence-stairs.ts +44 -0
- package/src/templates/word-cloud.ts +21 -0
- package/src/themes/types.ts +1 -1
- package/src/utils/design.ts +14 -0
- package/src/utils/font.ts +11 -1
- package/src/utils/index.ts +1 -0
- package/esm/resource/types/font.d.ts +0 -12
- package/lib/resource/types/font.d.ts +0 -12
- package/src/resource/types/font.ts +0 -23
- /package/esm/resource/types/{font.js → scene.js} +0 -0
- /package/lib/resource/types/{font.js → scene.js} +0 -0
package/dist/infographic.min.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
(function(j,he){typeof exports=="object"&&typeof module!="undefined"?he(exports):typeof define=="function"&&define.amd?define(["exports"],he):(j=typeof globalThis!="undefined"?globalThis:j||self,he(j.AntVInfographic={}))})(this,(function(j){"use strict";var QR=Object.defineProperty,JR=Object.defineProperties;var tD=Object.getOwnPropertyDescriptors;var f3=Object.getOwnPropertySymbols;var eD=Object.prototype.hasOwnProperty,nD=Object.prototype.propertyIsEnumerable;var Ci=Math.pow,p3=(j,he,ke)=>he in j?QR(j,he,{enumerable:!0,configurable:!0,writable:!0,value:ke}):j[he]=ke,pe=(j,he)=>{for(var ke in he||(he={}))eD.call(he,ke)&&p3(j,ke,he[ke]);if(f3)for(var ke of f3(he))nD.call(he,ke)&&p3(j,ke,he[ke]);return j},Me=(j,he)=>JR(j,tD(he));const ke={version:"0.1.3"},Ws=new Map;function Jc(t,e){Ws.set(t,e)}function th(t){return Ws.get(t)}function g3(){return Array.from(Ws.keys())}var m3=Object.defineProperty,eh=Object.getOwnPropertySymbols,y3=Object.prototype.hasOwnProperty,v3=Object.prototype.propertyIsEnumerable,nh=(t,e,n)=>e in t?m3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rh=(t,e)=>{for(var n in e||(e={}))y3.call(e,n)&&nh(t,n,e[n]);if(eh)for(var n of eh(e))v3.call(e,n)&&nh(t,n,e[n]);return t};const Sr={edgeType:"curved",edgeColorMode:"gradient",edgeWidth:2,colorMode:"branch",levelGap:80,nodeGap:18},Er={edgeType:"curved",edgeWidth:2,edgeColorMode:"gradient",colorMode:"level",levelGap:80,nodeGap:18},ih={type:"lined-text",usePaletteColor:!0,showUnderline:!0,underlineThickness:2},oh={type:"capsule-item"},sh={type:"circular-progress"},ah={type:"rounded-rect-node",positionH:"center"},lh={type:"compact-card"},x3=(t,e)=>rh(rh({type:"hierarchy-mindmap"},e!==void 0?{edgeAlign:e}:{}),t),Ve=(t,e,n,r)=>[t,{design:{structure:x3(e,r),item:n}}],b3=Object.fromEntries([Ve("hierarchy-mindmap-branch-gradient-lined-palette",Sr,ih,"bottom"),Ve("hierarchy-mindmap-level-gradient-lined-palette",Er,ih,"bottom"),Ve("hierarchy-mindmap-branch-gradient-capsule-item",Sr,oh),Ve("hierarchy-mindmap-level-gradient-capsule-item",Er,oh),Ve("hierarchy-mindmap-branch-gradient-circle-progress",Sr,sh,.4),Ve("hierarchy-mindmap-level-gradient-circle-progress",Er,sh,.4),Ve("hierarchy-mindmap-branch-gradient-rounded-rect",Sr,ah),Ve("hierarchy-mindmap-level-gradient-rounded-rect",Er,ah),Ve("hierarchy-mindmap-branch-gradient-compact-card",Sr,lh),Ve("hierarchy-mindmap-level-gradient-compact-card",Er,lh)]);var _3=Object.defineProperty,ch=Object.getOwnPropertySymbols,w3=Object.prototype.hasOwnProperty,$3=Object.prototype.propertyIsEnumerable,hh=(t,e,n)=>e in t?_3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,P3=(t,e)=>{for(var n in e||(e={}))w3.call(e,n)&&hh(t,n,e[n]);if(ch)for(var n of ch(e))$3.call(e,n)&&hh(t,n,e[n]);return t};const O3={"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}},C3=["capsule-item","rounded-rect-node","compact-card","badge-card","ribbon-card"],dh={},M3="hierarchy-tree";for(const t of C3)for(const[e,n]of Object.entries(O3)){const r=`${M3}-${e}-${t}`;dh[r]={design:{structure:P3({type:"hierarchy-tree"},n),item:{type:t}}}}var S3=Object.defineProperty,uh=Object.getOwnPropertySymbols,E3=Object.prototype.hasOwnProperty,I3=Object.prototype.propertyIsEnumerable,fh=(t,e,n)=>e in t?S3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ph=(t,e)=>{for(var n in e||(e={}))E3.call(e,n)&&fh(t,n,e[n]);if(uh)for(var n of uh(e))I3.call(e,n)&&fh(t,n,e[n]);return t};const T3=ph(ph({"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",positionV:"middle"}]}},"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}]},themeConfig:{colorPrimary:"#1677ff"}},"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"}]}},"chart-bar-plain-text":{design:{title:"default",structure:{type:"chart-bar"},items:[{type:"plain-text",positionH:"flipped"}]}},"chart-line-plain-text":{design:{title:"default",structure:{type:"chart-line"},items:[{type:"plain-text",lineNumber:2}]}},"chart-pie-plain-text":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"plain-text"}]}},"chart-pie-compact-card":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"compact-card"}]}},"chart-pie-pill-badge":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"pill-badge"}]}},"chart-pie-donut-plain-text":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"plain-text"}]}},"chart-pie-donut-compact-card":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"compact-card"}]}},"chart-pie-donut-pill-badge":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"pill-badge"}]}}},dh),b3);Object.entries(T3).forEach(([t,e])=>{Jc(t,e)});const It=Symbol.for("@antv/infographic/Fragment");function d(t,e={}){return{type:t,props:e}}const E=d,Ys="infographic-component";var Ct=(t=>(t.Background="background",t.Title="title",t.Desc="desc",t.ItemsGroup="items-group",t.ItemIconGroup="item-icon-group",t.ItemIcon="item-icon",t.ItemLabel="item-label",t.ItemDesc="item-desc",t.ItemValue="item-value",t.ItemsIllus="items-illus",t.BtnAdd="btn-add",t.BtnRemove="btn-remove",t.IllusGroup="illus-group",t.IllusVolume="illus-volume",t.Illus="illus",t.BtnsGroup="btns-group",t.Unknown="unknown",t))(Ct||{});const Xs=Symbol.for("@antv/infographic/Defs");function Mt(t){return{type:Xs,props:t}}function St(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 X(t){const{x:e=0,y:n=0}=t;return(e||n)&&(t.transform||(t.transform=`translate(${e}, ${n})`)),{type:"g",props:t}}var A3=Object.defineProperty,gh=Object.getOwnPropertySymbols,k3=Object.prototype.hasOwnProperty,z3=Object.prototype.propertyIsEnumerable,mh=(t,e,n)=>e in t?A3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,L3=(t,e)=>{for(var n in e||(e={}))k3.call(e,n)&&mh(t,n,e[n]);if(gh)for(var n of gh(e))z3.call(e,n)&&mh(t,n,e[n]);return t};function at(t){const{x:e,y:n}=t,r=L3({},t);return(e!==void 0||n!==void 0)&&(r.transform=`translate(${e!=null?e:0}, ${n!=null?n:0})`),{type:"path",props:r}}var H3=Object.defineProperty,R3=Object.defineProperties,D3=Object.getOwnPropertyDescriptors,Mi=Object.getOwnPropertySymbols,yh=Object.prototype.hasOwnProperty,vh=Object.prototype.propertyIsEnumerable,xh=(t,e,n)=>e in t?H3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,N3=(t,e)=>{for(var n in e||(e={}))yh.call(e,n)&&xh(t,n,e[n]);if(Mi)for(var n of Mi(e))vh.call(e,n)&&xh(t,n,e[n]);return t},j3=(t,e)=>R3(t,D3(e)),B3=(t,e)=>{var n={};for(var r in t)yh.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Mi)for(var r of Mi(t))e.indexOf(r)<0&&vh.call(t,r)&&(n[r]=t[r]);return n};function We(t){var e=t,{points:n=[]}=e,r=B3(e,["points"]);const{x:i,y:o}=r,s=n.map(({x:c,y:h})=>`${c},${h}`).join(" "),a=j3(N3({},r),{points:s});return(i!==void 0||o!==void 0)&&(a.transform=`translate(${i!=null?i:0}, ${o!=null?o:0})`+(a.transform||"")),{type:"polygon",props:a}}function xt(t){return{type:"rect",props:t}}function bh(t){return Object.keys(t[0]).reduce((e,n)=>{const r=n;return t.every(i=>i[r]===t[0][r])&&(e[r]=t[0][r]),e},{})}const _h=(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}}},F3={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},V3=t=>_h(F3[t.toLowerCase()],6),W3=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Y3=t=>{let e;return(e=t.match(W3))?_h(parseInt(e[1],16),e[1].length):void 0},pn="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Ir=`${pn}%`,Gs=`(?:${pn}%|${pn})`,X3=`(?:${pn}(deg|grad|rad|turn)|${pn})`,ir="\\s*,\\s*",G3=new RegExp(`^rgba?\\(\\s*${pn}${ir}${pn}${ir}${pn}\\s*(?:,\\s*${Gs}\\s*)?\\)$`),q3=new RegExp(`^rgba?\\(\\s*${Ir}${ir}${Ir}${ir}${Ir}\\s*(?:,\\s*${Gs}\\s*)?\\)$`),U3=t=>{let e={mode:"rgb"},n;if(n=t.match(G3))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(q3))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},Z3=(t,e)=>t===void 0?void 0:typeof t!="object"?Xe(t):t.mode!==void 0?t:e?Me(pe({},t),{mode:e}):void 0,qs=(t="rgb")=>e=>(e=Z3(e,t))!==void 0?e.mode===t?e:Ye[e.mode][t]?Ye[e.mode][t](e):t==="rgb"?Ye[e.mode].rgb(e):Ye.rgb[t](Ye[e.mode].rgb(e)):void 0,Ye={},wh={},Si=[],$h={},K3=t=>t,Tt=t=>(Ye[t.mode]=pe(pe({},Ye[t.mode]),t.toMode),Object.keys(t.fromMode||{}).forEach(e=>{Ye[e]||(Ye[e]={}),Ye[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=K3)}),wh[t.mode]=t,(t.parse||[]).forEach(e=>{J3(e,t.mode)}),qs(t.mode)),Q3=t=>wh[t],J3=(t,e)=>{if(typeof t=="string"){if(!e)throw new Error("'mode' required when 'parser' is a string");$h[t]=e}else typeof t=="function"&&Si.indexOf(t)<0&&Si.push(t)},Us=/[^\x00-\x7F]|[a-zA-Z_]/,tv=/[^\x00-\x7F]|[-\w]/,et={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"};let ut=0;function Ei(t){let e=t[ut],n=t[ut+1];return e==="-"||e==="+"?/\d/.test(n)||n==="."&&/\d/.test(t[ut+2]):e==="."?/\d/.test(n):/\d/.test(e)}function Zs(t){if(ut>=t.length)return!1;let e=t[ut];if(Us.test(e))return!0;if(e==="-"){if(t.length-ut<2)return!1;let n=t[ut+1];return!!(n==="-"||Us.test(n))}return!1}const ev={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Tr(t){let e="";if((t[ut]==="-"||t[ut]==="+")&&(e+=t[ut++]),e+=Ii(t),t[ut]==="."&&/\d/.test(t[ut+1])&&(e+=t[ut++]+Ii(t)),(t[ut]==="e"||t[ut]==="E")&&((t[ut+1]==="-"||t[ut+1]==="+")&&/\d/.test(t[ut+2])?e+=t[ut++]+t[ut++]+Ii(t):/\d/.test(t[ut+1])&&(e+=t[ut++]+Ii(t))),Zs(t)){let n=Ti(t);return n==="deg"||n==="rad"||n==="turn"||n==="grad"?{type:et.Hue,value:e*ev[n]}:void 0}return t[ut]==="%"?(ut++,{type:et.Percentage,value:+e}):{type:et.Number,value:+e}}function Ii(t){let e="";for(;/\d/.test(t[ut]);)e+=t[ut++];return e}function Ti(t){let e="";for(;ut<t.length&&tv.test(t[ut]);)e+=t[ut++];return e}function nv(t){let e=Ti(t);return t[ut]==="("?(ut++,{type:et.Function,value:e}):e==="none"?{type:et.None,value:void 0}:{type:et.Ident,value:e}}function rv(t=""){let e=t.trim(),n=[],r;for(ut=0;ut<e.length;){if(r=e[ut++],r===`
|
|
2
|
-
`||r===" "||r===" "){for(;
|
|
3
|
-
`||e[
|
|
4
|
-
`||e[ut]===" "||e[ut]===" ");)ut++;let i;if(Ei(e)&&(i=Tr(e),i.type!==et.Hue)){n.push({type:et.Alpha,value:i});continue}if(Zs(e)&&Ti(e)==="none"){n.push({type:et.Alpha,value:{type:et.None,value:void 0}});continue}return}if(/\d/.test(r)){ut--,n.push(Tr(e));continue}if(Us.test(r)){ut--,n.push(nv(e));continue}return}return n}function iv(t){t._i=0;let e=t[t._i++];if(!e||e.type!==et.Function||e.value!=="color"||(e=t[t._i++],e.type!==et.Ident))return;const n=$h[e.value];if(!n)return;const r={mode:n},i=Ph(t,!1);if(!i)return;const o=Q3(n).channels;for(let s=0,a,l;s<o.length;s++)a=i[s],l=o[s],a.type!==et.None&&(r[l]=a.type===et.Number?a.value:a.value/100,l==="alpha"&&(r[l]=Math.max(0,Math.min(1,r[l]))));return r}function Ph(t,e){const n=[];let r;for(;t._i<t.length;){if(r=t[t._i++],r.type===et.None||r.type===et.Number||r.type===et.Alpha||r.type===et.Percentage||e&&r.type===et.Hue){n.push(r);continue}if(r.type===et.ParenClose){if(t._i<t.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==et.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:et.None,value:void 0}),n.every(i=>i.type!==et.Alpha)?n:void 0}}function ov(t,e){t._i=0;let n=t[t._i++];if(!n||n.type!==et.Function)return;let r=Ph(t,e);if(r)return r.unshift(n.value),r}const Xe=t=>{if(typeof t!="string")return;const e=rv(t),n=e?ov(e,!0):void 0;let r,i=0,o=Si.length;for(;i<o;)if((r=Si[i++](t,n))!==void 0)return r;return e?iv(e):void 0};function sv(t,e){if(!e||e[0]!=="rgb"&&e[0]!=="rgba")return;const n={mode:"rgb"},[,r,i,o,s]=e;if(!(r.type===et.Hue||i.type===et.Hue||o.type===et.Hue))return r.type!==et.None&&(n.r=r.type===et.Number?r.value/255:r.value/100),i.type!==et.None&&(n.g=i.type===et.Number?i.value/255:i.value/100),o.type!==et.None&&(n.b=o.type===et.Number?o.value/255:o.value/100),s.type!==et.None&&(n.alpha=Math.min(1,Math.max(0,s.type===et.Number?s.value:s.value/100))),n}const av=t=>t==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,lv=(t,e,n)=>t+n*(e-t),cv=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},rt=(t=>e=>{let n=cv(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)}})(lv),ie=t=>{let e=!1,n=t.map(r=>r!==void 0?(e=!0,r):1);return e?n:t},or={mode:"rgb",channels:["r","g","b","alpha"],parse:[sv,Y3,U3,V3,av,"srgb"],serialize:"srgb",interpolate:{r:rt,g:rt,b:rt,alpha:{use:rt,fixup:ie}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Ks=(t=0)=>Math.pow(Math.abs(t),563/256)*Math.sign(t),Oh=t=>{let e=Ks(t.r),n=Ks(t.g),r=Ks(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},Qs=t=>Math.pow(Math.abs(t),256/563)*Math.sign(t),Ch=({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:Qs(t*2.0415879038107465-e*.5650069742788597-.3447313507783297*n),g:Qs(t*-.9692436362808798+e*1.8759675015077206+.0415550574071756*n),b:Qs(t*.0134442806320312-e*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},Js=(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)},sr=({r:t,g:e,b:n,alpha:r})=>{let i={mode:"lrgb",r:Js(t),g:Js(e),b:Js(n)};return r!==void 0&&(i.alpha=r),i},In=t=>{let{r:e,g:n,b:r,alpha:i}=sr(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},ta=(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},ar=({r:t,g:e,b:n,alpha:r},i="rgb")=>{let o={mode:i,r:ta(t),g:ta(e),b:ta(n)};return r!==void 0&&(o.alpha=r),o},Tn=({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=ar({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},hv=Me(pe({},or),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:t=>Ch(In(t)),xyz65:Ch},toMode:{rgb:t=>Tn(Oh(t)),xyz65:Oh}}),de=t=>(t=t%360)<0?t+360:t,dv=(t,e)=>t.map((n,r,i)=>{if(n===void 0)return n;let o=de(n);return r===0||t[r-1]===void 0?o:e(o-de(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),[]),rn=t=>dv(t,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),se=[-.14861,1.78277,-.29227,-.90649,1.97294,0],uv=Math.PI/180,fv=180/Math.PI;let Mh=se[3]*se[4],Sh=se[1]*se[4],Eh=se[1]*se[2]-se[0]*se[3];const pv=({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=(Eh*n+t*Mh-e*Sh)/(Eh+Mh-Sh),o=n-i,s=(se[4]*(e-i)-se[2]*o)/se[3],a={mode:"cubehelix",l:i,s:i===0||i===1?void 0:Math.sqrt(o*o+s*s)/(se[4]*i*(1-i))};return a.s&&(a.h=Math.atan2(s,o)*fv-120),r!==void 0&&(a.alpha=r),a},gv=({h:t,s:e,l:n,alpha:r})=>{let i={mode:"rgb"};t=(t===void 0?0:t+120)*uv,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*(se[0]*s+se[1]*a),i.g=n+o*(se[2]*s+se[3]*a),i.b=n+o*(se[4]*s+se[5]*a),r!==void 0&&(i.alpha=r),i},Ai=(t,e)=>{if(t.h===void 0||e.h===void 0||!t.s||!e.s)return 0;let n=de(t.h),r=de(e.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.s*e.s)*i},mv=(t,e)=>{if(t.h===void 0||e.h===void 0)return 0;let n=de(t.h),r=de(e.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},ki=(t,e)=>{if(t.h===void 0||e.h===void 0||!t.c||!e.c)return 0;let n=de(t.h),r=de(e.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.c*e.c)*i},on=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},yv={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:pv},toMode:{rgb:gv},interpolate:{h:{use:rt,fixup:rn},s:rt,l:rt,alpha:{use:rt,fixup:ie}},difference:{h:Ai},average:{h:on}},gn=({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=de(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(s.alpha=r),s},mn=({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},Ih=Math.pow(29,3)/Math.pow(3,3),Th=Math.pow(6,3)/Math.pow(29,3),ne={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},lr={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329};let ea=t=>Math.pow(t,3)>Th?Math.pow(t,3):(116*t-16)/Ih;const Ah=({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:ea(o)*lr.X,y:ea(i)*lr.Y,z:ea(s)*lr.Z};return r!==void 0&&(a.alpha=r),a},zi=t=>Tn(Ah(t)),na=t=>t>Th?Math.cbrt(t):(Ih*t+16)/116,kh=({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=na(t/lr.X),o=na(e/lr.Y),s=na(n/lr.Z),a={mode:"lab65",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},Li=t=>{let e=kh(In(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Hi=1,zh=1,Ar=26/180*Math.PI,Ri=Math.cos(Ar),Di=Math.sin(Ar),Lh=100/Math.log(139/100),ra=({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*Hi/Lh)-1)/.0039},o=(Math.exp(.0435*e*zh*Hi)-1)/.075,s=o*Math.cos(n/180*Math.PI-Ar),a=o*Math.sin(n/180*Math.PI-Ar);return i.a=s*Ri-a/.83*Di,i.b=s*Di+a/.83*Ri,r!==void 0&&(i.alpha=r),i},ia=({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*Ri+n*Di,o=.83*(n*Ri-e*Di),s=Math.sqrt(i*i+o*o),a={mode:"dlch",l:Lh/Hi*Math.log(1+.0039*t),c:Math.log(1+.075*s)/(.0435*zh*Hi)};return a.c&&(a.h=de((Math.atan2(o,i)+Ar)/Math.PI*180)),r!==void 0&&(a.alpha=r),a},Hh=t=>ra(gn(t,"dlch")),Rh=t=>mn(ia(t),"dlab"),vv={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Hh,rgb:t=>zi(Hh(t))},fromMode:{lab65:Rh,rgb:t=>Rh(Li(t))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:rt,a:rt,b:rt,alpha:{use:rt,fixup:ie}}},xv={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:ra,dlab:t=>mn(t,"dlab"),rgb:t=>zi(ra(t))},fromMode:{lab65:ia,dlab:t=>gn(t,"dlch"),rgb:t=>ia(Li(t))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:rt,c:rt,h:{use:rt,fixup:rn},alpha:{use:rt,fixup:ie}},difference:{h:ki},average:{h:on}};function bv({h:t,s:e,i:n,alpha:r}){t=de(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 _v({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 wv={mode:"hsi",toMode:{rgb:bv},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:_v},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:rt,fixup:rn},s:rt,i:rt,alpha:{use:rt,fixup:ie}},difference:{h:Ai},average:{h:on}};function $v({h:t,s:e,l:n,alpha:r}){t=de(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 Pv({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 Ov=(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}},Cv=new RegExp(`^hsla?\\(\\s*${X3}${ir}${Ir}${ir}${Ir}\\s*(?:,\\s*${Gs}\\s*)?\\)$`),Mv=t=>{let e=t.match(Cv);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=Ov(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 Sv(t,e){if(!e||e[0]!=="hsl"&&e[0]!=="hsla")return;const n={mode:"hsl"},[,r,i,o,s]=e;if(r.type!==et.None){if(r.type===et.Percentage)return;n.h=r.value}if(i.type!==et.None){if(i.type===et.Hue)return;n.s=i.value/100}if(o.type!==et.None){if(o.type===et.Hue)return;n.l=o.value/100}return s.type!==et.None&&(n.alpha=Math.min(1,Math.max(0,s.type===et.Number?s.value:s.value/100))),n}const Dh={mode:"hsl",toMode:{rgb:$v},fromMode:{rgb:Pv},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Sv,Mv],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:rt,fixup:rn},s:rt,l:rt,alpha:{use:rt,fixup:ie}},difference:{h:Ai},average:{h:on}};function Nh({h:t,s:e,v:n,alpha:r}){t=de(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 jh({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 Bh={mode:"hsv",toMode:{rgb:Nh},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:jh},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:rt,fixup:rn},s:rt,v:rt,alpha:{use:rt,fixup:ie}},difference:{h:Ai},average:{h:on}};function Ev({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 Nh({h:t,s:n===1?1:1-e/(1-n),v:1-n,alpha:r})}function Iv(t){let e=jh(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 Tv(t,e){if(!e||e[0]!=="hwb")return;const n={mode:"hwb"},[,r,i,o,s]=e;if(r.type!==et.None){if(r.type===et.Percentage)return;n.h=r.value}if(i.type!==et.None){if(i.type===et.Hue)return;n.w=i.value/100}if(o.type!==et.None){if(o.type===et.Hue)return;n.b=o.value/100}return s.type!==et.None&&(n.alpha=Math.min(1,Math.max(0,s.type===et.Number?s.value:s.value/100))),n}const Av={mode:"hwb",toMode:{rgb:Ev},fromMode:{rgb:Iv},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Tv],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:rt,fixup:rn},w:rt,b:rt,alpha:{use:rt,fixup:ie}},difference:{h:mv},average:{h:on}},Fh=203,Ni=.1593017578125,Vh=78.84375,ji=.8359375,Bi=18.8515625,Fi=18.6875;function oa(t){if(t<0)return 0;const e=Math.pow(t,1/Vh);return 1e4*Math.pow(Math.max(0,e-ji)/(Bi-Fi*e),1/Ni)}function sa(t){if(t<0)return 0;const e=Math.pow(t/1e4,Ni);return Math.pow((ji+Bi*e)/(1+Fi*e),Vh)}const aa=t=>Math.max(t/Fh,0),Wh=({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=oa(t+.008609037037932761*e+.11102962500302593*n),o=oa(t-.00860903703793275*e-.11102962500302599*n),s=oa(t+.5600313357106791*e-.32062717498731885*n),a={mode:"xyz65",x:aa(2.070152218389422*i-1.3263473389671556*o+.2066510476294051*s),y:aa(.3647385209748074*i+.680566024947227*o-.0453045459220346*s),z:aa(-.049747207535812*i-.0492609666966138*o+1.1880659249923042*s)};return r!==void 0&&(a.alpha=r),a},la=(t=0)=>Math.max(t*Fh,0),Yh=({x:t,y:e,z:n,alpha:r})=>{const i=la(t),o=la(e),s=la(n),a=sa(.3592832590121217*i+.6976051147779502*o-.0358915932320289*s),l=sa(-.1920808463704995*i+1.1004767970374323*o+.0753748658519118*s),c=sa(.0070797844607477*i+.0748396662186366*o+.8433265453898765*s),h=.5*a+.5*l,u=1.61376953125*a-3.323486328125*l+1.709716796875*c,f=4.378173828125*a-4.24560546875*l-.132568359375*c,p={mode:"itp",i:h,t:u,p:f};return r!==void 0&&(p.alpha=r),p},kv={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Wh,rgb:t=>Tn(Wh(t))},fromMode:{xyz65:Yh,rgb:t=>Yh(In(t))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:rt,t:rt,p:rt,alpha:{use:rt,fixup:ie}}},zv=134.03437499999998,Lv=16295499532821565e-27,ca=t=>{if(t<0)return 0;let e=Math.pow(t/1e4,Ni);return Math.pow((ji+Bi*e)/(1+Fi*e),zv)},ha=(t=0)=>Math.max(t*203,0),Xh=({x:t,y:e,z:n,alpha:r})=>{t=ha(t),e=ha(e),n=ha(n);let i=1.15*t-.15*n,o=.66*e+.34*t,s=ca(.41478972*i+.579999*o+.014648*n),a=ca(-.20151*i+1.120649*o+.0531008*n),l=ca(-.0166008*i+.2648*o+.6684799*n),c=(s+a)/2,h={mode:"jab",j:.44*c/(1-.56*c)-Lv,a:3.524*s-4.066708*a+.542708*l,b:.199076*s+1.096799*a-1.295875*l};return r!==void 0&&(h.alpha=r),h},Hv=134.03437499999998,Gh=16295499532821565e-27,da=t=>{if(t<0)return 0;let e=Math.pow(t,1/Hv);return 1e4*Math.pow((ji-e)/(Fi*e-Bi),1/Ni)},ua=t=>t/203,qh=({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+Gh)/(.44+.56*(t+Gh)),o=da(i+.13860504*e+.058047316*n),s=da(i-.13860504*e-.058047316*n),a=da(i-.096019242*e-.8118919*n),l={mode:"xyz65",x:ua(1.661373024652174*o-.914523081304348*s+.23136208173913045*a),y:ua(-.3250758611844533*o+1.571847026732543*s-.21825383453227928*a),z:ua(-.090982811*o-.31272829*s+1.5227666*a)};return r!==void 0&&(l.alpha=r),l},Uh=t=>{let e=Xh(In(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Zh=t=>Tn(qh(t)),Rv={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Uh,xyz65:Xh},toMode:{rgb:Zh,xyz65:qh},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:rt,a:rt,b:rt,alpha:{use:rt,fixup:ie}}},Kh=({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=de(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},Qh=({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},Dv={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Qh,rgb:t=>Zh(Qh(t))},fromMode:{rgb:t=>Kh(Uh(t)),jab:Kh},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:rt,fixup:rn},c:rt,j:rt,alpha:{use:rt,fixup:ie}},difference:{h:ki},average:{h:on}},Vi=Math.pow(29,3)/Math.pow(3,3),fa=Math.pow(6,3)/Math.pow(29,3);let pa=t=>Math.pow(t,3)>fa?Math.pow(t,3):(116*t-16)/Vi;const ga=({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:pa(o)*ne.X,y:pa(i)*ne.Y,z:pa(s)*ne.Z};return r!==void 0&&(a.alpha=r),a},kr=({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=ar({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},Jh=t=>kr(ga(t)),zr=t=>{let{r:e,g:n,b:r,alpha:i}=sr(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},ma=t=>t>fa?Math.cbrt(t):(Vi*t+16)/116,ya=({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=ma(t/ne.X),o=ma(e/ne.Y),s=ma(n/ne.Z),a={mode:"lab",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},td=t=>{let e=ya(zr(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e};function Nv(t,e){if(!e||e[0]!=="lab")return;const n={mode:"lab"},[,r,i,o,s]=e;if(!(r.type===et.Hue||i.type===et.Hue||o.type===et.Hue))return r.type!==et.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==et.None&&(n.a=i.type===et.Number?i.value:i.value*125/100),o.type!==et.None&&(n.b=o.type===et.Number?o.value:o.value*125/100),s.type!==et.None&&(n.alpha=Math.min(1,Math.max(0,s.type===et.Number?s.value:s.value/100))),n}const va={mode:"lab",toMode:{xyz50:ga,rgb:Jh},fromMode:{xyz50:ya,rgb:td},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Nv],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:rt,a:rt,b:rt,alpha:{use:rt,fixup:ie}}},jv=Me(pe({},va),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Ah,rgb:zi},fromMode:{xyz65:kh,rgb:Li},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}});function Bv(t,e){if(!e||e[0]!=="lch")return;const n={mode:"lch"},[,r,i,o,s]=e;if(r.type!==et.None){if(r.type===et.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==et.None&&(n.c=Math.max(0,i.type===et.Number?i.value:i.value*150/100)),o.type!==et.None){if(o.type===et.Percentage)return;n.h=o.value}return s.type!==et.None&&(n.alpha=Math.min(1,Math.max(0,s.type===et.Number?s.value:s.value/100))),n}const xa={mode:"lch",toMode:{lab:mn,rgb:t=>Jh(mn(t))},fromMode:{rgb:t=>gn(td(t)),lab:gn},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Bv],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:rt,fixup:rn},c:rt,l:rt,alpha:{use:rt,fixup:ie}},difference:{h:ki},average:{h:on}},Fv=Me(pe({},xa),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:t=>mn(t,"lab65"),rgb:t=>zi(mn(t,"lab65"))},fromMode:{rgb:t=>gn(Li(t),"lch65"),lab65:t=>gn(t,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),ed=({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=de(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},nd=({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},rd=(t,e,n)=>4*t/(t+15*e+3*n),id=(t,e,n)=>9*e/(t+15*e+3*n),Vv=rd(ne.X,ne.Y,ne.Z),Wv=id(ne.X,ne.Y,ne.Z),Yv=t=>t<=fa?Vi*t:116*Math.cbrt(t)-16,ba=({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=Yv(e/ne.Y),o=rd(t,e,n),s=id(t,e,n);!isFinite(o)||!isFinite(s)?i=o=s=0:(o=13*i*(o-Vv),s=13*i*(s-Wv));let a={mode:"luv",l:i,u:o,v:s};return r!==void 0&&(a.alpha=r),a},Xv=(t,e,n)=>4*t/(t+15*e+3*n),Gv=(t,e,n)=>9*e/(t+15*e+3*n),qv=Xv(ne.X,ne.Y,ne.Z),Uv=Gv(ne.X,ne.Y,ne.Z),_a=({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)+qv,o=n/(13*t)+Uv,s=ne.Y*(t<=8?t/Vi: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},Zv={mode:"lchuv",toMode:{luv:nd,rgb:t=>kr(_a(nd(t)))},fromMode:{rgb:t=>ed(ba(zr(t))),luv:ed},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:rt,fixup:rn},c:rt,l:rt,alpha:{use:rt,fixup:ie}},difference:{h:ki},average:{h:on}},Kv=Me(pe({},or),{mode:"lrgb",toMode:{rgb:ar},fromMode:{rgb:sr},parse:["srgb-linear"],serialize:"srgb-linear"}),Qv={mode:"luv",toMode:{xyz50:_a,rgb:t=>kr(_a(t))},fromMode:{xyz50:ba,rgb:t=>ba(zr(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:rt,u:rt,v:rt,alpha:{use:rt,fixup:ie}}},od=({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},Wi=t=>{let e=od(sr(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Lr=({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},Yi=t=>ar(Lr(t));function wa(t){const r=1.170873786407767;return .5*(r*t-.206+Math.sqrt((r*t-.206)*(r*t-.206)+4*.03*r*t))}function Xi(t){return(t*t+.206*t)/(1.170873786407767*(t+.03))}function Jv(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 h=n+r*t+i*e+o*t*t+s*t*e,u=.3963377774*t+.2158037573*e,f=-.1055613458*t-.0638541728*e,p=-.0894841775*t-1.291485548*e;{let g=1+h*u,y=1+h*f,m=1+h*p,x=g*g*g,v=y*y*y,b=m*m*m,_=3*u*g*g,w=3*f*y*y,$=3*p*m*m,P=6*u*u*g,O=6*f*f*y,T=6*p*p*m,I=a*x+l*v+c*b,S=a*_+l*w+c*$,R=a*P+l*O+c*T;h=h-I*S/(S*S-.5*I*R)}return h}function $a(t,e){let n=Jv(t,e),r=Lr({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 tx(t,e,n,r,i,o=null){o||(o=$a(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,h=-.1055613458*t-.0638541728*e,u=-.0894841775*t-1.291485548*e,f=a+l*c,p=a+l*h,g=a+l*u;{let y=i*(1-s)+s*n,m=s*r,x=y+m*c,v=y+m*h,b=y+m*u,_=x*x*x,w=v*v*v,$=b*b*b,P=3*f*x*x,O=3*p*v*v,T=3*g*b*b,I=6*f*f*x,S=6*p*p*v,R=6*g*g*b,M=4.0767416621*_-3.3077115913*w+.2309699292*$-1,A=4.0767416621*P-3.3077115913*O+.2309699292*T,W=4.0767416621*I-3.3077115913*S+.2309699292*R,k=A/(A*A-.5*M*W),D=-M*k,z=-1.2684380046*_+2.6097574011*w-.3413193965*$-1,N=-1.2684380046*P+2.6097574011*O-.3413193965*T,B=-1.2684380046*I+2.6097574011*S-.3413193965*R,Y=N/(N*N-.5*z*B),L=-z*Y,C=-.0041960863*_-.7034186147*w+1.707614701*$-1,H=-.0041960863*P-.7034186147*O+1.707614701*T,F=-.0041960863*I-.7034186147*S+1.707614701*R,Q=H/(H*H-.5*C*F),V=-C*Q;D=k>=0?D:1e6,L=Y>=0?L:1e6,V=Q>=0?V:1e6,s+=Math.min(D,Math.min(L,V))}}}return s}function Pa(t,e,n=null){n||(n=$a(t,e));let r=n[0],i=n[1];return[i/r,i/(1-r)]}function sd(t,e,n){let r=$a(e,n),i=tx(e,n,t,1,t,r),o=Pa(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,h=(1-t)*a,u=.9*l*Math.sqrt(Math.sqrt(1/(1/(c*c*c*c)+1/(h*h*h*h))));return c=t*.4,h=(1-t)*.8,[Math.sqrt(1/(1/(c*c)+1/(h*h))),u,i]}function ad(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:wa(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]=sd(e,n/o,r/o),c;if(o<a){let h=0,u=.8*s,f=1-u/a;c=(o-h)/(u+f*(o-h))*.8}else{let h=a,u=.2*a*a*1.25*1.25/s,f=1-u/(l-a);c=.8+.2*((o-h)/(u+f*(o-h)))}return c&&(i.s=c,i.h=de(Math.atan2(r,n)*180/Math.PI)),i}function ld(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:Xi(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]=sd(i.l,o,s),h,u,f,p;n<.8?(h=1.25*n,u=0,f=.8*a,p=1-f/l):(h=5*(n-.8),u=l,f=.2*l*l*1.25*1.25/a,p=1-f/(c-l));let g=u+h*f/(1-p*h);return i.a=g*o,i.b=g*s,i}const ex=Me(pe({},Dh),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:ad,rgb:t=>ad(Wi(t))},toMode:{oklab:ld,rgb:t=>Yi(ld(t))}});function cd(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]=Pa(o,s),c=.5,h=1-c/a,u=l/(i+e*l),f=u*e,p=u*i,g=Xi(f),y=p*g/f,m=Lr({l:g,a:o*y,b:s*y}),x=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));e=e/x,i=i/x*wa(e)/e,e=wa(e);const v={mode:"okhsv",s:i?(c+l)*p/(l*c+l*h*p):0,v:e?e/f:0};return v.s&&(v.h=de(Math.atan2(r,n)*180/Math.PI)),t.alpha!==void 0&&(v.alpha=t.alpha),v}function hd(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]=Pa(o,s),c=.5,h=1-c/a,u=1-r*c/(c+l-l*h*r),f=r*l*c/(c+l-l*h*r),p=Xi(u),g=f*p/u,y=Lr({l:p,a:o*g,b:s*g}),m=Math.cbrt(1/Math.max(y.r,y.g,y.b,0)),x=Xi(i*u),v=f*x/u;return e.l=x*m,e.a=v*o*m,e.b=v*s*m,e}const nx=Me(pe({},Bh),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:cd,rgb:t=>cd(Wi(t))},toMode:{oklab:hd,rgb:t=>Yi(hd(t))}});function rx(t,e){if(!e||e[0]!=="oklab")return;const n={mode:"oklab"},[,r,i,o,s]=e;if(!(r.type===et.Hue||i.type===et.Hue||o.type===et.Hue))return r.type!==et.None&&(n.l=Math.min(Math.max(0,r.type===et.Number?r.value:r.value/100),1)),i.type!==et.None&&(n.a=i.type===et.Number?i.value:i.value*.4/100),o.type!==et.None&&(n.b=o.type===et.Number?o.value:o.value*.4/100),s.type!==et.None&&(n.alpha=Math.min(1,Math.max(0,s.type===et.Number?s.value:s.value/100))),n}const ix=Me(pe({},va),{mode:"oklab",toMode:{lrgb:Lr,rgb:Yi},fromMode:{lrgb:od,rgb:Wi},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[rx],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 ox(t,e){if(!e||e[0]!=="oklch")return;const n={mode:"oklch"},[,r,i,o,s]=e;if(r.type!==et.None){if(r.type===et.Hue)return;n.l=Math.min(Math.max(0,r.type===et.Number?r.value:r.value/100),1)}if(i.type!==et.None&&(n.c=Math.max(0,i.type===et.Number?i.value:i.value*.4/100)),o.type!==et.None){if(o.type===et.Percentage)return;n.h=o.value}return s.type!==et.None&&(n.alpha=Math.min(1,Math.max(0,s.type===et.Number?s.value:s.value/100))),n}const dd=Me(pe({},xa),{mode:"oklch",toMode:{oklab:t=>mn(t,"oklab"),rgb:t=>Yi(mn(t,"oklab"))},fromMode:{rgb:t=>gn(Wi(t),"oklch"),oklab:t=>gn(t,"oklch")},parse:[ox],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]}}),ud=t=>{let{r:e,g:n,b:r,alpha:i}=sr(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},fd=({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=ar({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},sx=Me(pe({},or),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:t=>fd(In(t)),xyz65:fd},toMode:{rgb:t=>Tn(ud(t)),xyz65:ud}}),Oa=t=>{let e=Math.abs(t);return e>=1/512?Math.sign(t)*Math.pow(e,1/1.8):16*t},pd=({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:Oa(t*1.3457868816471585-e*.2555720873797946-.0511018649755453*n),g:Oa(t*-.5446307051249019+e*1.5082477428451466+.0205274474364214*n),b:Oa(t*0+e*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},Ca=(t=0)=>{let e=Math.abs(t);return e>=16/512?Math.sign(t)*Math.pow(e,1.8):t/16},gd=t=>{let e=Ca(t.r),n=Ca(t.g),r=Ca(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},ax=Me(pe({},or),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:pd,rgb:t=>pd(zr(t))},toMode:{xyz50:gd,rgb:t=>kr(gd(t))}}),md=1.09929682680944,lx=.018053968510807,Ma=t=>{const e=Math.abs(t);return e>lx?(Math.sign(t)||1)*(md*Math.pow(e,.45)-(md-1)):4.5*t},yd=({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:Ma(t*1.7166511879712683-e*.3556707837763925-.2533662813736599*n),g:Ma(t*-.6666843518324893+e*1.6164812366349395+.0157685458139111*n),b:Ma(t*.0176398574453108-e*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},vd=1.09929682680944,cx=.018053968510807,Sa=(t=0)=>{let e=Math.abs(t);return e<cx*4.5?t/4.5:(Math.sign(t)||1)*Math.pow((e+vd-1)/vd,1/.45)},xd=t=>{let e=Sa(t.r),n=Sa(t.g),r=Sa(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},hx=Me(pe({},or),{mode:"rec2020",fromMode:{xyz65:yd,rgb:t=>yd(In(t))},toMode:{xyz65:xd,rgb:t=>Tn(xd(t))},parse:["rec2020"],serialize:"rec2020"}),An=.0037930732552754493,bd=Math.cbrt(An),Ea=t=>Math.cbrt(t)-bd,dx=t=>{const{r:e,g:n,b:r,alpha:i}=sr(t),o=Ea(.3*e+.622*n+.078*r+An),s=Ea(.23*e+.692*n+.078*r+An),a=Ea(.2434226892454782*e+.2047674442449682*n+.5518098665095535*r+An),l={mode:"xyb",x:(o-s)/2,y:(o+s)/2,b:a-(o+s)/2};return i!==void 0&&(l.alpha=i),l},Ia=t=>Math.pow(t+bd,3),ux={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=Ia(t+e)-An,o=Ia(e-t)-An,s=Ia(n+e)-An,a=ar({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:dx},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:rt,y:rt,b:rt,alpha:{use:rt,fixup:ie}}},fx={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:kr,lab:ya},fromMode:{rgb:zr,lab:ga},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:rt,y:rt,z:rt,alpha:{use:rt,fixup:ie}}},px={mode:"xyz65",toMode:{rgb:Tn,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:In,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:rt,y:rt,z:rt,alpha:{use:rt,fixup:ie}}},gx={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:rt,i:rt,q:rt,alpha:{use:rt,fixup:ie}}},mx=t=>Math.max(0,Math.min(1,t||0)),Gi=t=>Math.round(mx(t)*255),_d=qs("rgb"),wd=t=>{if(t===void 0)return;let e=Gi(t.r),n=Gi(t.g),r=Gi(t.b);return"#"+(1<<24|e<<16|n<<8|r).toString(16).slice(1)},yx=t=>{if(t===void 0)return;let e=Gi(t.alpha!==void 0?t.alpha:1);return wd(t)+(256|e).toString(16).slice(1)},Hr=t=>wd(_d(t)),vx=t=>yx(_d(t));function Ta(t){let e=qs("lrgb")(t);return .2126*e.r+.7152*e.g+.0722*e.b}function Aa(t,e){let n=Ta(t),r=Ta(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}Tt(hv),Tt(yv),Tt(vv),Tt(xv),Tt(wv),Tt(Dh),Tt(Bh),Tt(Av),Tt(kv),Tt(Rv),Tt(Dv),Tt(va),Tt(jv),Tt(xa),Tt(Fv),Tt(Zv),Tt(Kv),Tt(Qv),Tt(ex),Tt(nx),Tt(ix);const $d=Tt(dd);Tt(sx),Tt(ax),Tt(hx),Tt(or),Tt(ux),Tt(fx),Tt(px),Tt(gx);function kn(t){if(!t)return!1;const e=t.trim().toLowerCase();return!(e==="none"||e==="transparent"||e==="")}function Pd(t){const e=Xe(t);return e?Ta(e)<.5:!1}var yn=Array.isArray,Od=typeof global=="object"&&global&&global.Object===Object&&global,xx=typeof self=="object"&&self&&self.Object===Object&&self,Ge=Od||xx||Function("return this")(),vn=Ge.Symbol,Cd=Object.prototype,bx=Cd.hasOwnProperty,_x=Cd.toString,Rr=vn?vn.toStringTag:void 0;function wx(t){var e=bx.call(t,Rr),n=t[Rr];try{t[Rr]=void 0;var r=!0}catch(o){}var i=_x.call(t);return r&&(e?t[Rr]=n:delete t[Rr]),i}var $x=Object.prototype,Px=$x.toString;function Ox(t){return Px.call(t)}var Cx="[object Null]",Mx="[object Undefined]",Md=vn?vn.toStringTag:void 0;function zn(t){return t==null?t===void 0?Mx:Cx:Md&&Md in Object(t)?wx(t):Ox(t)}function xn(t){return t!=null&&typeof t=="object"}var Sx="[object Symbol]";function qi(t){return typeof t=="symbol"||xn(t)&&zn(t)==Sx}var Ex=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ix=/^\w*$/;function Tx(t,e){if(yn(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||qi(t)?!0:Ix.test(t)||!Ex.test(t)||e!=null&&t in Object(e)}function qe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ax="[object AsyncFunction]",kx="[object Function]",zx="[object GeneratorFunction]",Lx="[object Proxy]";function ka(t){if(!qe(t))return!1;var e=zn(t);return e==kx||e==zx||e==Ax||e==Lx}var za=Ge["__core-js_shared__"],Sd=(function(){var t=/[^.]+$/.exec(za&&za.keys&&za.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Hx(t){return!!Sd&&Sd in t}var Rx=Function.prototype,Dx=Rx.toString;function Ln(t){if(t!=null){try{return Dx.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Nx=/[\\^$.*+?()[\]{}|]/g,jx=/^\[object .+?Constructor\]$/,Bx=Function.prototype,Fx=Object.prototype,Vx=Bx.toString,Wx=Fx.hasOwnProperty,Yx=RegExp("^"+Vx.call(Wx).replace(Nx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xx(t){if(!qe(t)||Hx(t))return!1;var e=ka(t)?Yx:jx;return e.test(Ln(t))}function Gx(t,e){return t==null?void 0:t[e]}function Hn(t,e){var n=Gx(t,e);return Xx(n)?n:void 0}var Dr=Hn(Object,"create");function qx(){this.__data__=Dr?Dr(null):{},this.size=0}function Ux(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Zx="__lodash_hash_undefined__",Kx=Object.prototype,Qx=Kx.hasOwnProperty;function Jx(t){var e=this.__data__;if(Dr){var n=e[t];return n===Zx?void 0:n}return Qx.call(e,t)?e[t]:void 0}var tb=Object.prototype,eb=tb.hasOwnProperty;function nb(t){var e=this.__data__;return Dr?e[t]!==void 0:eb.call(e,t)}var rb="__lodash_hash_undefined__";function ib(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Dr&&e===void 0?rb:e,this}function Rn(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])}}Rn.prototype.clear=qx,Rn.prototype.delete=Ux,Rn.prototype.get=Jx,Rn.prototype.has=nb,Rn.prototype.set=ib;function ob(){this.__data__=[],this.size=0}function Ui(t,e){return t===e||t!==t&&e!==e}function Zi(t,e){for(var n=t.length;n--;)if(Ui(t[n][0],e))return n;return-1}var sb=Array.prototype,ab=sb.splice;function lb(t){var e=this.__data__,n=Zi(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():ab.call(e,n,1),--this.size,!0}function cb(t){var e=this.__data__,n=Zi(e,t);return n<0?void 0:e[n][1]}function hb(t){return Zi(this.__data__,t)>-1}function db(t,e){var n=this.__data__,r=Zi(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function sn(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])}}sn.prototype.clear=ob,sn.prototype.delete=lb,sn.prototype.get=cb,sn.prototype.has=hb,sn.prototype.set=db;var Nr=Hn(Ge,"Map");function ub(){this.size=0,this.__data__={hash:new Rn,map:new(Nr||sn),string:new Rn}}function fb(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ki(t,e){var n=t.__data__;return fb(e)?n[typeof e=="string"?"string":"hash"]:n.map}function pb(t){var e=Ki(this,t).delete(t);return this.size-=e?1:0,e}function gb(t){return Ki(this,t).get(t)}function mb(t){return Ki(this,t).has(t)}function yb(t,e){var n=Ki(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function bn(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])}}bn.prototype.clear=ub,bn.prototype.delete=pb,bn.prototype.get=gb,bn.prototype.has=mb,bn.prototype.set=yb;var vb="Expected a function";function La(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(vb);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(La.Cache||bn),n}La.Cache=bn;var xb=500;function bb(t){var e=La(t,function(r){return n.size===xb&&n.clear(),r}),n=e.cache;return e}var _b=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wb=/\\(\\)?/g,$b=bb(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(_b,function(n,r,i,o){e.push(i?o.replace(wb,"$1"):r||n)}),e});function Pb(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 Ed=vn?vn.prototype:void 0,Id=Ed?Ed.toString:void 0;function Td(t){if(typeof t=="string")return t;if(yn(t))return Pb(t,Td)+"";if(qi(t))return Id?Id.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function jr(t){return t==null?"":Td(t)}function Ob(t,e){return yn(t)?t:Tx(t,e)?[t]:$b(jr(t))}function Cb(t){if(typeof t=="string"||qi(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Mb(t,e){e=Ob(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Cb(e[n++])];return n&&n==r?t:void 0}function Ad(t,e,n){var r=t==null?void 0:Mb(t,e);return r===void 0?n:r}function cr(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 Ad(n,r)}function Sb(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 Eb(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:Sb(t,e,n)}var Ib="\\ud800-\\udfff",Tb="\\u0300-\\u036f",Ab="\\ufe20-\\ufe2f",kb="\\u20d0-\\u20ff",zb=Tb+Ab+kb,Lb="\\ufe0e\\ufe0f",Hb="\\u200d",Rb=RegExp("["+Hb+Ib+zb+Lb+"]");function kd(t){return Rb.test(t)}function Db(t){return t.split("")}var zd="\\ud800-\\udfff",Nb="\\u0300-\\u036f",jb="\\ufe20-\\ufe2f",Bb="\\u20d0-\\u20ff",Fb=Nb+jb+Bb,Vb="\\ufe0e\\ufe0f",Wb="["+zd+"]",Ha="["+Fb+"]",Ra="\\ud83c[\\udffb-\\udfff]",Yb="(?:"+Ha+"|"+Ra+")",Ld="[^"+zd+"]",Hd="(?:\\ud83c[\\udde6-\\uddff]){2}",Rd="[\\ud800-\\udbff][\\udc00-\\udfff]",Xb="\\u200d",Dd=Yb+"?",Nd="["+Vb+"]?",Gb="(?:"+Xb+"(?:"+[Ld,Hd,Rd].join("|")+")"+Nd+Dd+")*",qb=Nd+Dd+Gb,Ub="(?:"+[Ld+Ha+"?",Ha,Hd,Rd,Wb].join("|")+")",Zb=RegExp(Ra+"(?="+Ra+")|"+Ub+qb,"g");function Kb(t){return t.match(Zb)||[]}function Qb(t){return kd(t)?Kb(t):Db(t)}function Jb(t){return function(e){e=jr(e);var n=kd(e)?Qb(e):void 0,r=n?n[0]:e.charAt(0),i=n?Eb(n,1).join(""):e.slice(1);return r[t]()+i}}var t4=Jb("toUpperCase");function e4(t){return t4(jr(t).toLowerCase())}function n4(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 r4(t){return function(e){return t==null?void 0:t[e]}}var i4={À:"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"},o4=r4(i4),s4=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a4="\\u0300-\\u036f",l4="\\ufe20-\\ufe2f",c4="\\u20d0-\\u20ff",h4=a4+l4+c4,d4="["+h4+"]",u4=RegExp(d4,"g");function f4(t){return t=jr(t),t&&t.replace(s4,o4).replace(u4,"")}var p4=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function g4(t){return t.match(p4)||[]}var m4=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function y4(t){return m4.test(t)}var jd="\\ud800-\\udfff",v4="\\u0300-\\u036f",x4="\\ufe20-\\ufe2f",b4="\\u20d0-\\u20ff",_4=v4+x4+b4,Bd="\\u2700-\\u27bf",Fd="a-z\\xdf-\\xf6\\xf8-\\xff",w4="\\xac\\xb1\\xd7\\xf7",$4="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",P4="\\u2000-\\u206f",O4=" \\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",Vd="A-Z\\xc0-\\xd6\\xd8-\\xde",C4="\\ufe0e\\ufe0f",Wd=w4+$4+P4+O4,Yd="['’]",Xd="["+Wd+"]",M4="["+_4+"]",Gd="\\d+",S4="["+Bd+"]",qd="["+Fd+"]",Ud="[^"+jd+Wd+Gd+Bd+Fd+Vd+"]",E4="\\ud83c[\\udffb-\\udfff]",I4="(?:"+M4+"|"+E4+")",T4="[^"+jd+"]",Zd="(?:\\ud83c[\\udde6-\\uddff]){2}",Kd="[\\ud800-\\udbff][\\udc00-\\udfff]",hr="["+Vd+"]",A4="\\u200d",Qd="(?:"+qd+"|"+Ud+")",k4="(?:"+hr+"|"+Ud+")",Jd="(?:"+Yd+"(?:d|ll|m|re|s|t|ve))?",tu="(?:"+Yd+"(?:D|LL|M|RE|S|T|VE))?",eu=I4+"?",nu="["+C4+"]?",z4="(?:"+A4+"(?:"+[T4,Zd,Kd].join("|")+")"+nu+eu+")*",L4="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",H4="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",R4=nu+eu+z4,D4="(?:"+[S4,Zd,Kd].join("|")+")"+R4,N4=RegExp([hr+"?"+qd+"+"+Jd+"(?="+[Xd,hr,"$"].join("|")+")",k4+"+"+tu+"(?="+[Xd,hr+Qd,"$"].join("|")+")",hr+"?"+Qd+"+"+Jd,hr+"+"+tu,H4,L4,Gd,D4].join("|"),"g");function j4(t){return t.match(N4)||[]}function B4(t,e,n){return t=jr(t),e=e,e===void 0?y4(t)?j4(t):g4(t):t.match(e)||[]}var F4="['’]",V4=RegExp(F4,"g");function ru(t){return function(e){return n4(B4(f4(e).replace(V4,"")),t,"")}}var W4=ru(function(t,e,n){return e=e.toLowerCase(),t+(n?e4(e):e)});function Dn(t){return t.trim().replace(/["']/g,"")}function dr(t){return t.startsWith('"')?t:/^\d/.test(t)?`"${t}"`:t.includes(" ")?`"${t}"`:t}const Y4={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 iu(t){const e=String(t).toLowerCase();return Y4[e]||"regular"}function ft(t,e={}){const n=document.createElementNS("http://www.w3.org/2000/svg",t);return Bt(n,e),n}function ur(t){const n=new DOMParser().parseFromString(t,"image/svg+xml");if(n.querySelector("parsererror"))throw new Error("Invalid SVG string");return n.documentElement}function Bt(t,e){Object.entries(e).forEach(([n,r])=>{r==null?t.removeAttribute(n):t.setAttribute(n,r)})}function Se(t,e,n=!0){return e.reduce((r,i)=>{const o=t.getAttribute(i);return(!n||o!==null&&o!==""&&o!==void 0)&&(r[i]=o),r},{})}function X4(t,e){e.forEach(n=>{t.removeAttribute(n)})}function Da(t,e){if(e(t)===!1)return;Array.from(t.children).forEach(r=>{Da(r,e)})}function Qi(t,e="infographic-defs"){const n=e?`defs#${e}`:"defs",r=t.querySelector(n);if(r)return r;const i=ft("defs");return e&&(i.id=e),t.prepend(i),i}var ou=Object.getOwnPropertySymbols,G4=Object.prototype.hasOwnProperty,q4=Object.prototype.propertyIsEnumerable,U4=(t,e)=>{var n={};for(var r in t)G4.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ou)for(var r of ou(t))e.indexOf(r)<0&&q4.call(t,r)&&(n[r]=t[r]);return n};function Nn(t){return lu(t)?t.querySelector("span"):null}function Z4(t,e){const n=document.createElement("span"),r=ft("foreignObject",{overflow:"visible"});return r.appendChild(n),su(r,{textContent:t,attributes:e}),r}function su(t,e){const{textContent:n,attributes:r}=e;if(n!==void 0&&ja(t,n),!r)return;const i=Nn(t);let{width:o,height:s}=r;const a={};if(i){if(Object.assign(i.style,Q4(r)),!o||!s){const p=J4(i);!o&&!t.hasAttribute("width")&&(o=String(p.width)),!s&&!t.hasAttribute("height")&&(s=String(p.height))}const{"data-horizontal-align":u,"data-vertical-align":f}=r;Object.assign(i.style,K4(u,f))}const{id:l,x:c,y:h}=r;l&&(a.id=l),c!==void 0&&(a.x=String(c)),h!==void 0&&(a.y=String(h)),o!==void 0&&(a.width=String(o)),s!==void 0&&(a.height=String(s)),Bt(t,a)}function K4(t,e){const n={width:"100%",height:"100%",display:"flex",flexWrap:"wrap",wordBreak:"break-word",whiteSpace:"pre-wrap"};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 Q4(t){const e=t,{x:n,y:r,width:i,height:o,["data-horizontal-align"]:s,["data-vertical-align"]:a,["font-size"]:l,["letter-spacing"]:c,["line-height"]:h,fill:u,["stroke-width"]:f,["text-anchor"]:p,["dominant-baseline"]:g,["font-family"]:y}=e,m=U4(e,["x","y","width","height","data-horizontal-align","data-vertical-align","font-size","letter-spacing","line-height","fill","stroke-width","text-anchor","dominant-baseline","font-family"]),x={overflow:"visible"};return u&&(x.color=u),Object.entries(m).forEach(([v,b])=>{x[W4(v)]=b}),l&&(x.fontSize=`${l}px`),h&&(x.lineHeight=typeof h=="string"&&h.endsWith("px")?h:+h),c&&(x.letterSpacing=`${c}px`),f&&(x.strokeWidth=`${f}px`),x.fontFamily=y?dr(y):y||"",x}function J4(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 Na(t){var e;return((e=Nn(t))==null?void 0:e.innerText)||""}function ja(t,e){const n=Nn(t);n&&(n.innerText=e)}function Ba(t){const e=Nn(t);if(!e)return{};const{color:n,fontSize:r,fontFamily:i,justifyContent:o,alignContent:s,fontWeight:a}=e.style,[l,c]=t_(o,s),h={"data-horizontal-align":l,"data-vertical-align":c};return i&&(h["font-family"]=Dn(i)),a&&(h["font-weight"]=a),r&&(h["font-size"]=String(parseInt(r))),n&&(h.fill=n),{attributes:h,textContent:Na(t)}}function t_(t,e){let n="LEFT",r="TOP";switch(t){case"flex-start":n="LEFT";break;case"center":n="CENTER";break;case"flex-end":n="RIGHT";break}switch(e){case"flex-start":r="TOP";break;case"center":r="MIDDLE";break;case"flex-end":r="BOTTOM";break}return[n,r]}const be=(t,e)=>{var n;return((n=t==null?void 0:t.dataset)==null?void 0:n.elementType)===e},e_=t=>be(t,"title"),n_=t=>be(t,"desc"),r_=t=>be(t,"shape"),i_=t=>be(t,"shapes-group"),o_=t=>be(t,"illus"),s_=t=>t instanceof SVGElement&&t.tagName==="text",a_=t=>t instanceof SVGElement&&t.tagName==="g",Fa=t=>be(t,"item-icon"),au=t=>be(t,"item-icon-group"),l_=t=>be(t,"item-label"),c_=t=>be(t,"item-desc"),h_=t=>be(t,"item-value"),d_=t=>be(t,"item-illus"),u_=t=>be(t,"edit-area"),f_=t=>be(t,"btns-group"),p_=t=>be(t,"rough-element"),g_=t=>be(t,"rough-volume");function lu(t){return t.tagName==="foreignObject"}function m_(t){return t.tagName==="SPAN"}function an(t){const e=Va(t);return[Ct.Title,Ct.Desc,Ct.ItemLabel,Ct.ItemDesc].includes(e)}function cu(t){if(!t||!an(t))return!1;const e=Nn(t);return e?e.hasAttribute("contenteditable"):!1}function y_(t){const e=t.tagName.toLowerCase();return["rect","circle","ellipse","line","polygon","polyline","path"].includes(e)}function _n(t){return Fa(t)||au(t)}function v_(t){let e=t;for(;e;){if(fr(e,Ys))return!0;e=e.parentElement}return!1}function Br(t,e){t.setAttribute("data-element-type",e)}function fr(t,e){return t.querySelector(`[data-element-type="${e}"]`)}function Va(t){return _n(t)?Ct.ItemIcon:t.getAttribute("data-element-type")||Ct.Unknown}function x_(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,h){const u=e[l];return u?`${o(h)}/** ${u} */
|
|
1
|
+
(function(F,pe){typeof exports=="object"&&typeof module!="undefined"?pe(exports):typeof define=="function"&&define.amd?define(["exports"],pe):(F=typeof globalThis!="undefined"?globalThis:F||self,pe(F.AntVInfographic={}))})(this,(function(F){"use strict";var mN=Object.defineProperty,yN=Object.defineProperties;var vN=Object.getOwnPropertyDescriptors;var ov=Object.getOwnPropertySymbols;var bN=Object.prototype.hasOwnProperty,xN=Object.prototype.propertyIsEnumerable;var Bi=Math.pow,sv=(F,pe,He)=>pe in F?mN(F,pe,{enumerable:!0,configurable:!0,writable:!0,value:He}):F[pe]=He,ye=(F,pe)=>{for(var He in pe||(pe={}))bN.call(pe,He)&&sv(F,He,pe[He]);if(ov)for(var He of ov(pe))xN.call(pe,He)&&sv(F,He,pe[He]);return F},Ae=(F,pe)=>yN(F,vN(pe));const He={version:"0.1.4"},ca=new Map;function _h(t,e){ca.set(t,e)}function $h(t){return ca.get(t)}function av(){return Array.from(ca.keys())}var lv=Object.defineProperty,Ph=Object.getOwnPropertySymbols,cv=Object.prototype.hasOwnProperty,hv=Object.prototype.propertyIsEnumerable,Oh=(t,e,n)=>e in t?lv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ch=(t,e)=>{for(var n in e||(e={}))cv.call(e,n)&&Oh(t,n,e[n]);if(Ph)for(var n of Ph(e))hv.call(e,n)&&Oh(t,n,e[n]);return t};const Fr={edgeType:"curved",edgeColorMode:"gradient",edgeWidth:2,colorMode:"branch",levelGap:80,nodeGap:18},Br={edgeType:"curved",edgeWidth:2,edgeColorMode:"gradient",colorMode:"level",levelGap:80,nodeGap:18},Mh={type:"lined-text",usePaletteColor:!0,showUnderline:!0,underlineThickness:2},Sh={type:"capsule-item"},Eh={type:"circular-progress"},Ih={type:"rounded-rect-node",positionH:"center"},Th={type:"compact-card"},dv=(t,e)=>Ch(Ch({type:"hierarchy-mindmap"},e!==void 0?{edgeAlign:e}:{}),t),Ke=(t,e,n,r)=>[t,{design:{structure:dv(e,r),item:n}}],uv=Object.fromEntries([Ke("hierarchy-mindmap-branch-gradient-lined-palette",Fr,Mh,"bottom"),Ke("hierarchy-mindmap-level-gradient-lined-palette",Br,Mh,"bottom"),Ke("hierarchy-mindmap-branch-gradient-capsule-item",Fr,Sh),Ke("hierarchy-mindmap-level-gradient-capsule-item",Br,Sh),Ke("hierarchy-mindmap-branch-gradient-circle-progress",Fr,Eh,.4),Ke("hierarchy-mindmap-level-gradient-circle-progress",Br,Eh,.4),Ke("hierarchy-mindmap-branch-gradient-rounded-rect",Fr,Ih),Ke("hierarchy-mindmap-level-gradient-rounded-rect",Br,Ih),Ke("hierarchy-mindmap-branch-gradient-compact-card",Fr,Th),Ke("hierarchy-mindmap-level-gradient-compact-card",Br,Th)]);var fv=Object.defineProperty,Ah=Object.getOwnPropertySymbols,pv=Object.prototype.hasOwnProperty,gv=Object.prototype.propertyIsEnumerable,kh=(t,e,n)=>e in t?fv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zh=(t,e)=>{for(var n in e||(e={}))pv.call(e,n)&&kh(t,n,e[n]);if(Ah)for(var n of Ah(e))gv.call(e,n)&&kh(t,n,e[n]);return t};const mv={"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}},yv=["capsule-item","rounded-rect-node","compact-card","badge-card","ribbon-card"],Lh={},Rh="hierarchy-tree",vv=[{key:""},{key:"bt",orientation:"bottom-top"},{key:"lr",orientation:"left-right"},{key:"rl",orientation:"right-left"}],bv=(t,e,n)=>t?`${Rh}-${t}-${e}-${n}`:`${Rh}-${e}-${n}`;for(const t of yv)for(const[e,n]of Object.entries(mv))for(const{key:r,orientation:i}of vv){const o=bv(r,e,t);Lh[o]={design:{structure:zh(zh({type:"hierarchy-tree"},i?{orientation:i}:{}),n),item:{type:t}}}}const xv={"sequence-stairs-front-pill-badge":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"pill-badge"}]}},"sequence-stairs-front-compact-card":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"compact-card"}]}},"sequence-stairs-front-simple":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"simple",usePaletteColor:!0}]}}},wv={"chart-wordcloud-rotate":{design:{structure:{type:"chart-wordcloud"},item:"simple"}},"chart-wordcloud":{design:{structure:{type:"chart-wordcloud",enableRotate:!1},item:"simple"}}};var _v=Object.defineProperty,Hh=Object.getOwnPropertySymbols,$v=Object.prototype.hasOwnProperty,Pv=Object.prototype.propertyIsEnumerable,Dh=(t,e,n)=>e in t?_v(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Wi=(t,e)=>{for(var n in e||(e={}))$v.call(e,n)&&Dh(t,n,e[n]);if(Hh)for(var n of Hh(e))Pv.call(e,n)&&Dh(t,n,e[n]);return t};const Ov=Wi(Wi(Wi(Wi({"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",positionV:"middle"}]}},"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}]},themeConfig:{colorPrimary:"#1677ff"}},"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"}]}},"chart-bar-plain-text":{design:{title:"default",structure:{type:"chart-bar"},items:[{type:"plain-text",positionH:"flipped"}]}},"chart-line-plain-text":{design:{title:"default",structure:{type:"chart-line"},items:[{type:"plain-text",lineNumber:2}]}},"chart-pie-plain-text":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"plain-text"}]}},"chart-pie-compact-card":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"compact-card"}]}},"chart-pie-pill-badge":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"pill-badge"}]}},"chart-pie-donut-plain-text":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"plain-text"}]}},"chart-pie-donut-compact-card":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"compact-card"}]}},"chart-pie-donut-pill-badge":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"pill-badge"}]}}},Lh),uv),xv),wv);Object.entries(Ov).forEach(([t,e])=>{_h(t,e)});const Rt=Symbol.for("@antv/infographic/Fragment");function d(t,e={}){return{type:t,props:e}}const E=d,ha="infographic-component";var kt=(t=>(t.Background="background",t.Title="title",t.Desc="desc",t.ItemsGroup="items-group",t.ItemIconGroup="item-icon-group",t.ItemIcon="item-icon",t.ItemLabel="item-label",t.ItemDesc="item-desc",t.ItemValue="item-value",t.ItemIllus="item-illus",t.BtnAdd="btn-add",t.BtnRemove="btn-remove",t.IllusGroup="illus-group",t.IllusVolume="illus-volume",t.Illus="illus",t.BtnsGroup="btns-group",t.Unknown="unknown",t))(kt||{});const Cv="https://www.weavefox.cn/api/open/v1/icon",da=Symbol.for("@antv/infographic/Defs");function zt(t){return{type:da,props:t}}function Lt(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 Y(t){const{x:e=0,y:n=0}=t;return(e||n)&&(t.transform||(t.transform=`translate(${e}, ${n})`)),{type:"g",props:t}}var Mv=Object.defineProperty,Nh=Object.getOwnPropertySymbols,Sv=Object.prototype.hasOwnProperty,Ev=Object.prototype.propertyIsEnumerable,jh=(t,e,n)=>e in t?Mv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Iv=(t,e)=>{for(var n in e||(e={}))Sv.call(e,n)&&jh(t,n,e[n]);if(Nh)for(var n of Nh(e))Ev.call(e,n)&&jh(t,n,e[n]);return t};function ht(t){const{x:e,y:n}=t,r=Iv({},t);return(e!==void 0||n!==void 0)&&(r.transform=`translate(${e!=null?e:0}, ${n!=null?n:0})`),{type:"path",props:r}}var Tv=Object.defineProperty,Av=Object.defineProperties,kv=Object.getOwnPropertyDescriptors,Vi=Object.getOwnPropertySymbols,Fh=Object.prototype.hasOwnProperty,Bh=Object.prototype.propertyIsEnumerable,Wh=(t,e,n)=>e in t?Tv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zv=(t,e)=>{for(var n in e||(e={}))Fh.call(e,n)&&Wh(t,n,e[n]);if(Vi)for(var n of Vi(e))Bh.call(e,n)&&Wh(t,n,e[n]);return t},Lv=(t,e)=>Av(t,kv(e)),Rv=(t,e)=>{var n={};for(var r in t)Fh.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&&Bh.call(t,r)&&(n[r]=t[r]);return n};function De(t){var e=t,{points:n=[]}=e,r=Rv(e,["points"]);const{x:i,y:o}=r,s=n.map(({x:c,y:h})=>`${c},${h}`).join(" "),a=Lv(zv({},r),{points:s});return(i!==void 0||o!==void 0)&&(a.transform=`translate(${i!=null?i:0}, ${o!=null?o:0})`+(a.transform||"")),{type:"polygon",props:a}}function St(t){return{type:"rect",props:t}}function Vh(t){return Object.keys(t[0]).reduce((e,n)=>{const r=n;return t.every(i=>i[r]===t[0][r])&&(e[r]=t[0][r]),e},{})}const Yh=(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}}},Hv={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},Dv=t=>Yh(Hv[t.toLowerCase()],6),Nv=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,jv=t=>{let e;return(e=t.match(Nv))?Yh(parseInt(e[1],16),e[1].length):void 0},$n="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Wr=`${$n}%`,ua=`(?:${$n}%|${$n})`,Fv=`(?:${$n}(deg|grad|rad|turn)|${$n})`,mr="\\s*,\\s*",Bv=new RegExp(`^rgba?\\(\\s*${$n}${mr}${$n}${mr}${$n}\\s*(?:,\\s*${ua}\\s*)?\\)$`),Wv=new RegExp(`^rgba?\\(\\s*${Wr}${mr}${Wr}${mr}${Wr}\\s*(?:,\\s*${ua}\\s*)?\\)$`),Vv=t=>{let e={mode:"rgb"},n;if(n=t.match(Bv))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(Wv))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},Yv=(t,e)=>t===void 0?void 0:typeof t!="object"?Je(t):t.mode!==void 0?t:e?Ae(ye({},t),{mode:e}):void 0,fa=(t="rgb")=>e=>(e=Yv(e,t))!==void 0?e.mode===t?e:Qe[e.mode][t]?Qe[e.mode][t](e):t==="rgb"?Qe[e.mode].rgb(e):Qe.rgb[t](Qe[e.mode].rgb(e)):void 0,Qe={},Xh={},Yi=[],Gh={},Xv=t=>t,Ht=t=>(Qe[t.mode]=ye(ye({},Qe[t.mode]),t.toMode),Object.keys(t.fromMode||{}).forEach(e=>{Qe[e]||(Qe[e]={}),Qe[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=Xv)}),Xh[t.mode]=t,(t.parse||[]).forEach(e=>{qv(e,t.mode)}),fa(t.mode)),Gv=t=>Xh[t],qv=(t,e)=>{if(typeof t=="string"){if(!e)throw new Error("'mode' required when 'parser' is a string");Gh[t]=e}else typeof t=="function"&&Yi.indexOf(t)<0&&Yi.push(t)},pa=/[^\x00-\x7F]|[a-zA-Z_]/,Uv=/[^\x00-\x7F]|[-\w]/,J={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"};let xt=0;function Xi(t){let e=t[xt],n=t[xt+1];return e==="-"||e==="+"?/\d/.test(n)||n==="."&&/\d/.test(t[xt+2]):e==="."?/\d/.test(n):/\d/.test(e)}function ga(t){if(xt>=t.length)return!1;let e=t[xt];if(pa.test(e))return!0;if(e==="-"){if(t.length-xt<2)return!1;let n=t[xt+1];return!!(n==="-"||pa.test(n))}return!1}const Zv={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Vr(t){let e="";if((t[xt]==="-"||t[xt]==="+")&&(e+=t[xt++]),e+=Gi(t),t[xt]==="."&&/\d/.test(t[xt+1])&&(e+=t[xt++]+Gi(t)),(t[xt]==="e"||t[xt]==="E")&&((t[xt+1]==="-"||t[xt+1]==="+")&&/\d/.test(t[xt+2])?e+=t[xt++]+t[xt++]+Gi(t):/\d/.test(t[xt+1])&&(e+=t[xt++]+Gi(t))),ga(t)){let n=qi(t);return n==="deg"||n==="rad"||n==="turn"||n==="grad"?{type:J.Hue,value:e*Zv[n]}:void 0}return t[xt]==="%"?(xt++,{type:J.Percentage,value:+e}):{type:J.Number,value:+e}}function Gi(t){let e="";for(;/\d/.test(t[xt]);)e+=t[xt++];return e}function qi(t){let e="";for(;xt<t.length&&Uv.test(t[xt]);)e+=t[xt++];return e}function Kv(t){let e=qi(t);return t[xt]==="("?(xt++,{type:J.Function,value:e}):e==="none"?{type:J.None,value:void 0}:{type:J.Ident,value:e}}function Qv(t=""){let e=t.trim(),n=[],r;for(xt=0;xt<e.length;){if(r=e[xt++],r===`
|
|
2
|
+
`||r===" "||r===" "){for(;xt<e.length&&(e[xt]===`
|
|
3
|
+
`||e[xt]===" "||e[xt]===" ");)xt++;continue}if(r===",")return;if(r===")"){n.push({type:J.ParenClose});continue}if(r==="+"){if(xt--,Xi(e)){n.push(Vr(e));continue}return}if(r==="-"){if(xt--,Xi(e)){n.push(Vr(e));continue}if(ga(e)){n.push({type:J.Ident,value:qi(e)});continue}return}if(r==="."){if(xt--,Xi(e)){n.push(Vr(e));continue}return}if(r==="/"){for(;xt<e.length&&(e[xt]===`
|
|
4
|
+
`||e[xt]===" "||e[xt]===" ");)xt++;let i;if(Xi(e)&&(i=Vr(e),i.type!==J.Hue)){n.push({type:J.Alpha,value:i});continue}if(ga(e)&&qi(e)==="none"){n.push({type:J.Alpha,value:{type:J.None,value:void 0}});continue}return}if(/\d/.test(r)){xt--,n.push(Vr(e));continue}if(pa.test(r)){xt--,n.push(Kv(e));continue}return}return n}function Jv(t){t._i=0;let e=t[t._i++];if(!e||e.type!==J.Function||e.value!=="color"||(e=t[t._i++],e.type!==J.Ident))return;const n=Gh[e.value];if(!n)return;const r={mode:n},i=qh(t,!1);if(!i)return;const o=Gv(n).channels;for(let s=0,a,l;s<o.length;s++)a=i[s],l=o[s],a.type!==J.None&&(r[l]=a.type===J.Number?a.value:a.value/100,l==="alpha"&&(r[l]=Math.max(0,Math.min(1,r[l]))));return r}function qh(t,e){const n=[];let r;for(;t._i<t.length;){if(r=t[t._i++],r.type===J.None||r.type===J.Number||r.type===J.Alpha||r.type===J.Percentage||e&&r.type===J.Hue){n.push(r);continue}if(r.type===J.ParenClose){if(t._i<t.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==J.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:J.None,value:void 0}),n.every(i=>i.type!==J.Alpha)?n:void 0}}function tb(t,e){t._i=0;let n=t[t._i++];if(!n||n.type!==J.Function)return;let r=qh(t,e);if(r)return r.unshift(n.value),r}const Je=t=>{if(typeof t!="string")return;const e=Qv(t),n=e?tb(e,!0):void 0;let r,i=0,o=Yi.length;for(;i<o;)if((r=Yi[i++](t,n))!==void 0)return r;return e?Jv(e):void 0};function eb(t,e){if(!e||e[0]!=="rgb"&&e[0]!=="rgba")return;const n={mode:"rgb"},[,r,i,o,s]=e;if(!(r.type===J.Hue||i.type===J.Hue||o.type===J.Hue))return r.type!==J.None&&(n.r=r.type===J.Number?r.value/255:r.value/100),i.type!==J.None&&(n.g=i.type===J.Number?i.value/255:i.value/100),o.type!==J.None&&(n.b=o.type===J.Number?o.value/255:o.value/100),s.type!==J.None&&(n.alpha=Math.min(1,Math.max(0,s.type===J.Number?s.value:s.value/100))),n}const nb=t=>t==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,rb=(t,e,n)=>t+n*(e-t),ib=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},it=(t=>e=>{let n=ib(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)}})(rb),ce=t=>{let e=!1,n=t.map(r=>r!==void 0?(e=!0,r):1);return e?n:t},yr={mode:"rgb",channels:["r","g","b","alpha"],parse:[eb,jv,Vv,Dv,nb,"srgb"],serialize:"srgb",interpolate:{r:it,g:it,b:it,alpha:{use:it,fixup:ce}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},ma=(t=0)=>Math.pow(Math.abs(t),563/256)*Math.sign(t),Uh=t=>{let e=ma(t.r),n=ma(t.g),r=ma(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},ya=t=>Math.pow(Math.abs(t),256/563)*Math.sign(t),Zh=({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:ya(t*2.0415879038107465-e*.5650069742788597-.3447313507783297*n),g:ya(t*-.9692436362808798+e*1.8759675015077206+.0415550574071756*n),b:ya(t*.0134442806320312-e*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},va=(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)},vr=({r:t,g:e,b:n,alpha:r})=>{let i={mode:"lrgb",r:va(t),g:va(e),b:va(n)};return r!==void 0&&(i.alpha=r),i},Nn=t=>{let{r:e,g:n,b:r,alpha:i}=vr(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},ba=(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},br=({r:t,g:e,b:n,alpha:r},i="rgb")=>{let o={mode:i,r:ba(t),g:ba(e),b:ba(n)};return r!==void 0&&(o.alpha=r),o},jn=({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=br({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},ob=Ae(ye({},yr),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:t=>Zh(Nn(t)),xyz65:Zh},toMode:{rgb:t=>jn(Uh(t)),xyz65:Uh}}),ge=t=>(t=t%360)<0?t+360:t,sb=(t,e)=>t.map((n,r,i)=>{if(n===void 0)return n;let o=ge(n);return r===0||t[r-1]===void 0?o:e(o-ge(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),[]),un=t=>sb(t,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),de=[-.14861,1.78277,-.29227,-.90649,1.97294,0],ab=Math.PI/180,lb=180/Math.PI;let Kh=de[3]*de[4],Qh=de[1]*de[4],Jh=de[1]*de[2]-de[0]*de[3];const cb=({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=(Jh*n+t*Kh-e*Qh)/(Jh+Kh-Qh),o=n-i,s=(de[4]*(e-i)-de[2]*o)/de[3],a={mode:"cubehelix",l:i,s:i===0||i===1?void 0:Math.sqrt(o*o+s*s)/(de[4]*i*(1-i))};return a.s&&(a.h=Math.atan2(s,o)*lb-120),r!==void 0&&(a.alpha=r),a},hb=({h:t,s:e,l:n,alpha:r})=>{let i={mode:"rgb"};t=(t===void 0?0:t+120)*ab,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*(de[0]*s+de[1]*a),i.g=n+o*(de[2]*s+de[3]*a),i.b=n+o*(de[4]*s+de[5]*a),r!==void 0&&(i.alpha=r),i},Ui=(t,e)=>{if(t.h===void 0||e.h===void 0||!t.s||!e.s)return 0;let n=ge(t.h),r=ge(e.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.s*e.s)*i},db=(t,e)=>{if(t.h===void 0||e.h===void 0)return 0;let n=ge(t.h),r=ge(e.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},Zi=(t,e)=>{if(t.h===void 0||e.h===void 0||!t.c||!e.c)return 0;let n=ge(t.h),r=ge(e.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.c*e.c)*i},fn=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},ub={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:cb},toMode:{rgb:hb},interpolate:{h:{use:it,fixup:un},s:it,l:it,alpha:{use:it,fixup:ce}},difference:{h:Ui},average:{h:fn}},Pn=({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=ge(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(s.alpha=r),s},On=({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},td=Math.pow(29,3)/Math.pow(3,3),ed=Math.pow(6,3)/Math.pow(29,3),se={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},xr={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329};let xa=t=>Math.pow(t,3)>ed?Math.pow(t,3):(116*t-16)/td;const nd=({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:xa(o)*xr.X,y:xa(i)*xr.Y,z:xa(s)*xr.Z};return r!==void 0&&(a.alpha=r),a},Ki=t=>jn(nd(t)),wa=t=>t>ed?Math.cbrt(t):(td*t+16)/116,rd=({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=wa(t/xr.X),o=wa(e/xr.Y),s=wa(n/xr.Z),a={mode:"lab65",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},Qi=t=>{let e=rd(Nn(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Ji=1,id=1,Yr=26/180*Math.PI,to=Math.cos(Yr),eo=Math.sin(Yr),od=100/Math.log(139/100),_a=({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*Ji/od)-1)/.0039},o=(Math.exp(.0435*e*id*Ji)-1)/.075,s=o*Math.cos(n/180*Math.PI-Yr),a=o*Math.sin(n/180*Math.PI-Yr);return i.a=s*to-a/.83*eo,i.b=s*eo+a/.83*to,r!==void 0&&(i.alpha=r),i},$a=({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*to+n*eo,o=.83*(n*to-e*eo),s=Math.sqrt(i*i+o*o),a={mode:"dlch",l:od/Ji*Math.log(1+.0039*t),c:Math.log(1+.075*s)/(.0435*id*Ji)};return a.c&&(a.h=ge((Math.atan2(o,i)+Yr)/Math.PI*180)),r!==void 0&&(a.alpha=r),a},sd=t=>_a(Pn(t,"dlch")),ad=t=>On($a(t),"dlab"),fb={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:sd,rgb:t=>Ki(sd(t))},fromMode:{lab65:ad,rgb:t=>ad(Qi(t))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:it,a:it,b:it,alpha:{use:it,fixup:ce}}},pb={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:_a,dlab:t=>On(t,"dlab"),rgb:t=>Ki(_a(t))},fromMode:{lab65:$a,dlab:t=>Pn(t,"dlch"),rgb:t=>$a(Qi(t))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:it,c:it,h:{use:it,fixup:un},alpha:{use:it,fixup:ce}},difference:{h:Zi},average:{h:fn}};function gb({h:t,s:e,i:n,alpha:r}){t=ge(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 mb({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 yb={mode:"hsi",toMode:{rgb:gb},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:mb},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:it,fixup:un},s:it,i:it,alpha:{use:it,fixup:ce}},difference:{h:Ui},average:{h:fn}};function vb({h:t,s:e,l:n,alpha:r}){t=ge(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 bb({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 xb=(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}},wb=new RegExp(`^hsla?\\(\\s*${Fv}${mr}${Wr}${mr}${Wr}\\s*(?:,\\s*${ua}\\s*)?\\)$`),_b=t=>{let e=t.match(wb);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=xb(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 $b(t,e){if(!e||e[0]!=="hsl"&&e[0]!=="hsla")return;const n={mode:"hsl"},[,r,i,o,s]=e;if(r.type!==J.None){if(r.type===J.Percentage)return;n.h=r.value}if(i.type!==J.None){if(i.type===J.Hue)return;n.s=i.value/100}if(o.type!==J.None){if(o.type===J.Hue)return;n.l=o.value/100}return s.type!==J.None&&(n.alpha=Math.min(1,Math.max(0,s.type===J.Number?s.value:s.value/100))),n}const ld={mode:"hsl",toMode:{rgb:vb},fromMode:{rgb:bb},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[$b,_b],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:it,fixup:un},s:it,l:it,alpha:{use:it,fixup:ce}},difference:{h:Ui},average:{h:fn}};function cd({h:t,s:e,v:n,alpha:r}){t=ge(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 hd({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 dd={mode:"hsv",toMode:{rgb:cd},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:hd},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:it,fixup:un},s:it,v:it,alpha:{use:it,fixup:ce}},difference:{h:Ui},average:{h:fn}};function Pb({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 cd({h:t,s:n===1?1:1-e/(1-n),v:1-n,alpha:r})}function Ob(t){let e=hd(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 Cb(t,e){if(!e||e[0]!=="hwb")return;const n={mode:"hwb"},[,r,i,o,s]=e;if(r.type!==J.None){if(r.type===J.Percentage)return;n.h=r.value}if(i.type!==J.None){if(i.type===J.Hue)return;n.w=i.value/100}if(o.type!==J.None){if(o.type===J.Hue)return;n.b=o.value/100}return s.type!==J.None&&(n.alpha=Math.min(1,Math.max(0,s.type===J.Number?s.value:s.value/100))),n}const Mb={mode:"hwb",toMode:{rgb:Pb},fromMode:{rgb:Ob},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Cb],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:it,fixup:un},w:it,b:it,alpha:{use:it,fixup:ce}},difference:{h:db},average:{h:fn}},ud=203,no=.1593017578125,fd=78.84375,ro=.8359375,io=18.8515625,oo=18.6875;function Pa(t){if(t<0)return 0;const e=Math.pow(t,1/fd);return 1e4*Math.pow(Math.max(0,e-ro)/(io-oo*e),1/no)}function Oa(t){if(t<0)return 0;const e=Math.pow(t/1e4,no);return Math.pow((ro+io*e)/(1+oo*e),fd)}const Ca=t=>Math.max(t/ud,0),pd=({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=Pa(t+.008609037037932761*e+.11102962500302593*n),o=Pa(t-.00860903703793275*e-.11102962500302599*n),s=Pa(t+.5600313357106791*e-.32062717498731885*n),a={mode:"xyz65",x:Ca(2.070152218389422*i-1.3263473389671556*o+.2066510476294051*s),y:Ca(.3647385209748074*i+.680566024947227*o-.0453045459220346*s),z:Ca(-.049747207535812*i-.0492609666966138*o+1.1880659249923042*s)};return r!==void 0&&(a.alpha=r),a},Ma=(t=0)=>Math.max(t*ud,0),gd=({x:t,y:e,z:n,alpha:r})=>{const i=Ma(t),o=Ma(e),s=Ma(n),a=Oa(.3592832590121217*i+.6976051147779502*o-.0358915932320289*s),l=Oa(-.1920808463704995*i+1.1004767970374323*o+.0753748658519118*s),c=Oa(.0070797844607477*i+.0748396662186366*o+.8433265453898765*s),h=.5*a+.5*l,u=1.61376953125*a-3.323486328125*l+1.709716796875*c,f=4.378173828125*a-4.24560546875*l-.132568359375*c,p={mode:"itp",i:h,t:u,p:f};return r!==void 0&&(p.alpha=r),p},Sb={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:pd,rgb:t=>jn(pd(t))},fromMode:{xyz65:gd,rgb:t=>gd(Nn(t))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:it,t:it,p:it,alpha:{use:it,fixup:ce}}},Eb=134.03437499999998,Ib=16295499532821565e-27,Sa=t=>{if(t<0)return 0;let e=Math.pow(t/1e4,no);return Math.pow((ro+io*e)/(1+oo*e),Eb)},Ea=(t=0)=>Math.max(t*203,0),md=({x:t,y:e,z:n,alpha:r})=>{t=Ea(t),e=Ea(e),n=Ea(n);let i=1.15*t-.15*n,o=.66*e+.34*t,s=Sa(.41478972*i+.579999*o+.014648*n),a=Sa(-.20151*i+1.120649*o+.0531008*n),l=Sa(-.0166008*i+.2648*o+.6684799*n),c=(s+a)/2,h={mode:"jab",j:.44*c/(1-.56*c)-Ib,a:3.524*s-4.066708*a+.542708*l,b:.199076*s+1.096799*a-1.295875*l};return r!==void 0&&(h.alpha=r),h},Tb=134.03437499999998,yd=16295499532821565e-27,Ia=t=>{if(t<0)return 0;let e=Math.pow(t,1/Tb);return 1e4*Math.pow((ro-e)/(oo*e-io),1/no)},Ta=t=>t/203,vd=({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+yd)/(.44+.56*(t+yd)),o=Ia(i+.13860504*e+.058047316*n),s=Ia(i-.13860504*e-.058047316*n),a=Ia(i-.096019242*e-.8118919*n),l={mode:"xyz65",x:Ta(1.661373024652174*o-.914523081304348*s+.23136208173913045*a),y:Ta(-.3250758611844533*o+1.571847026732543*s-.21825383453227928*a),z:Ta(-.090982811*o-.31272829*s+1.5227666*a)};return r!==void 0&&(l.alpha=r),l},bd=t=>{let e=md(Nn(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},xd=t=>jn(vd(t)),Ab={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:bd,xyz65:md},toMode:{rgb:xd,xyz65:vd},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:it,a:it,b:it,alpha:{use:it,fixup:ce}}},wd=({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=ge(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},_d=({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},kb={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:_d,rgb:t=>xd(_d(t))},fromMode:{rgb:t=>wd(bd(t)),jab:wd},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:it,fixup:un},c:it,j:it,alpha:{use:it,fixup:ce}},difference:{h:Zi},average:{h:fn}},so=Math.pow(29,3)/Math.pow(3,3),Aa=Math.pow(6,3)/Math.pow(29,3);let ka=t=>Math.pow(t,3)>Aa?Math.pow(t,3):(116*t-16)/so;const za=({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:ka(o)*se.X,y:ka(i)*se.Y,z:ka(s)*se.Z};return r!==void 0&&(a.alpha=r),a},Xr=({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=br({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},$d=t=>Xr(za(t)),Gr=t=>{let{r:e,g:n,b:r,alpha:i}=vr(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},La=t=>t>Aa?Math.cbrt(t):(so*t+16)/116,Ra=({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=La(t/se.X),o=La(e/se.Y),s=La(n/se.Z),a={mode:"lab",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},Pd=t=>{let e=Ra(Gr(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e};function zb(t,e){if(!e||e[0]!=="lab")return;const n={mode:"lab"},[,r,i,o,s]=e;if(!(r.type===J.Hue||i.type===J.Hue||o.type===J.Hue))return r.type!==J.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==J.None&&(n.a=i.type===J.Number?i.value:i.value*125/100),o.type!==J.None&&(n.b=o.type===J.Number?o.value:o.value*125/100),s.type!==J.None&&(n.alpha=Math.min(1,Math.max(0,s.type===J.Number?s.value:s.value/100))),n}const Ha={mode:"lab",toMode:{xyz50:za,rgb:$d},fromMode:{xyz50:Ra,rgb:Pd},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[zb],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:it,a:it,b:it,alpha:{use:it,fixup:ce}}},Lb=Ae(ye({},Ha),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:nd,rgb:Ki},fromMode:{xyz65:rd,rgb:Qi},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}});function Rb(t,e){if(!e||e[0]!=="lch")return;const n={mode:"lch"},[,r,i,o,s]=e;if(r.type!==J.None){if(r.type===J.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==J.None&&(n.c=Math.max(0,i.type===J.Number?i.value:i.value*150/100)),o.type!==J.None){if(o.type===J.Percentage)return;n.h=o.value}return s.type!==J.None&&(n.alpha=Math.min(1,Math.max(0,s.type===J.Number?s.value:s.value/100))),n}const Da={mode:"lch",toMode:{lab:On,rgb:t=>$d(On(t))},fromMode:{rgb:t=>Pn(Pd(t)),lab:Pn},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Rb],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:it,fixup:un},c:it,l:it,alpha:{use:it,fixup:ce}},difference:{h:Zi},average:{h:fn}},Hb=Ae(ye({},Da),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:t=>On(t,"lab65"),rgb:t=>Ki(On(t,"lab65"))},fromMode:{rgb:t=>Pn(Qi(t),"lch65"),lab65:t=>Pn(t,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Od=({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=ge(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},Cd=({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},Md=(t,e,n)=>4*t/(t+15*e+3*n),Sd=(t,e,n)=>9*e/(t+15*e+3*n),Db=Md(se.X,se.Y,se.Z),Nb=Sd(se.X,se.Y,se.Z),jb=t=>t<=Aa?so*t:116*Math.cbrt(t)-16,Na=({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=jb(e/se.Y),o=Md(t,e,n),s=Sd(t,e,n);!isFinite(o)||!isFinite(s)?i=o=s=0:(o=13*i*(o-Db),s=13*i*(s-Nb));let a={mode:"luv",l:i,u:o,v:s};return r!==void 0&&(a.alpha=r),a},Fb=(t,e,n)=>4*t/(t+15*e+3*n),Bb=(t,e,n)=>9*e/(t+15*e+3*n),Wb=Fb(se.X,se.Y,se.Z),Vb=Bb(se.X,se.Y,se.Z),ja=({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)+Wb,o=n/(13*t)+Vb,s=se.Y*(t<=8?t/so: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},Yb={mode:"lchuv",toMode:{luv:Cd,rgb:t=>Xr(ja(Cd(t)))},fromMode:{rgb:t=>Od(Na(Gr(t))),luv:Od},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:it,fixup:un},c:it,l:it,alpha:{use:it,fixup:ce}},difference:{h:Zi},average:{h:fn}},Xb=Ae(ye({},yr),{mode:"lrgb",toMode:{rgb:br},fromMode:{rgb:vr},parse:["srgb-linear"],serialize:"srgb-linear"}),Gb={mode:"luv",toMode:{xyz50:ja,rgb:t=>Xr(ja(t))},fromMode:{xyz50:Na,rgb:t=>Na(Gr(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:it,u:it,v:it,alpha:{use:it,fixup:ce}}},Ed=({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},ao=t=>{let e=Ed(vr(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},qr=({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},lo=t=>br(qr(t));function Fa(t){const r=1.170873786407767;return .5*(r*t-.206+Math.sqrt((r*t-.206)*(r*t-.206)+4*.03*r*t))}function co(t){return(t*t+.206*t)/(1.170873786407767*(t+.03))}function qb(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 h=n+r*t+i*e+o*t*t+s*t*e,u=.3963377774*t+.2158037573*e,f=-.1055613458*t-.0638541728*e,p=-.0894841775*t-1.291485548*e;{let g=1+h*u,y=1+h*f,m=1+h*p,b=g*g*g,v=y*y*y,x=m*m*m,w=3*u*g*g,_=3*f*y*y,$=3*p*m*m,P=6*u*u*g,O=6*f*f*y,T=6*p*p*m,I=a*b+l*v+c*x,S=a*w+l*_+c*$,H=a*P+l*O+c*T;h=h-I*S/(S*S-.5*I*H)}return h}function Ba(t,e){let n=qb(t,e),r=qr({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 Ub(t,e,n,r,i,o=null){o||(o=Ba(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,h=-.1055613458*t-.0638541728*e,u=-.0894841775*t-1.291485548*e,f=a+l*c,p=a+l*h,g=a+l*u;{let y=i*(1-s)+s*n,m=s*r,b=y+m*c,v=y+m*h,x=y+m*u,w=b*b*b,_=v*v*v,$=x*x*x,P=3*f*b*b,O=3*p*v*v,T=3*g*x*x,I=6*f*f*b,S=6*p*p*v,H=6*g*g*x,C=4.0767416621*w-3.3077115913*_+.2309699292*$-1,A=4.0767416621*P-3.3077115913*O+.2309699292*T,B=4.0767416621*I-3.3077115913*S+.2309699292*H,k=A/(A*A-.5*C*B),D=-C*k,z=-1.2684380046*w+2.6097574011*_-.3413193965*$-1,N=-1.2684380046*P+2.6097574011*O-.3413193965*T,j=-1.2684380046*I+2.6097574011*S-.3413193965*H,X=N/(N*N-.5*z*j),L=-z*X,M=-.0041960863*w-.7034186147*_+1.707614701*$-1,R=-.0041960863*P-.7034186147*O+1.707614701*T,W=-.0041960863*I-.7034186147*S+1.707614701*H,U=R/(R*R-.5*M*W),V=-M*U;D=k>=0?D:1e6,L=X>=0?L:1e6,V=U>=0?V:1e6,s+=Math.min(D,Math.min(L,V))}}}return s}function Wa(t,e,n=null){n||(n=Ba(t,e));let r=n[0],i=n[1];return[i/r,i/(1-r)]}function Id(t,e,n){let r=Ba(e,n),i=Ub(e,n,t,1,t,r),o=Wa(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,h=(1-t)*a,u=.9*l*Math.sqrt(Math.sqrt(1/(1/(c*c*c*c)+1/(h*h*h*h))));return c=t*.4,h=(1-t)*.8,[Math.sqrt(1/(1/(c*c)+1/(h*h))),u,i]}function Td(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:Fa(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]=Id(e,n/o,r/o),c;if(o<a){let h=0,u=.8*s,f=1-u/a;c=(o-h)/(u+f*(o-h))*.8}else{let h=a,u=.2*a*a*1.25*1.25/s,f=1-u/(l-a);c=.8+.2*((o-h)/(u+f*(o-h)))}return c&&(i.s=c,i.h=ge(Math.atan2(r,n)*180/Math.PI)),i}function Ad(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:co(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]=Id(i.l,o,s),h,u,f,p;n<.8?(h=1.25*n,u=0,f=.8*a,p=1-f/l):(h=5*(n-.8),u=l,f=.2*l*l*1.25*1.25/a,p=1-f/(c-l));let g=u+h*f/(1-p*h);return i.a=g*o,i.b=g*s,i}const Zb=Ae(ye({},ld),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Td,rgb:t=>Td(ao(t))},toMode:{oklab:Ad,rgb:t=>lo(Ad(t))}});function kd(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]=Wa(o,s),c=.5,h=1-c/a,u=l/(i+e*l),f=u*e,p=u*i,g=co(f),y=p*g/f,m=qr({l:g,a:o*y,b:s*y}),b=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));e=e/b,i=i/b*Fa(e)/e,e=Fa(e);const v={mode:"okhsv",s:i?(c+l)*p/(l*c+l*h*p):0,v:e?e/f:0};return v.s&&(v.h=ge(Math.atan2(r,n)*180/Math.PI)),t.alpha!==void 0&&(v.alpha=t.alpha),v}function zd(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]=Wa(o,s),c=.5,h=1-c/a,u=1-r*c/(c+l-l*h*r),f=r*l*c/(c+l-l*h*r),p=co(u),g=f*p/u,y=qr({l:p,a:o*g,b:s*g}),m=Math.cbrt(1/Math.max(y.r,y.g,y.b,0)),b=co(i*u),v=f*b/u;return e.l=b*m,e.a=v*o*m,e.b=v*s*m,e}const Kb=Ae(ye({},dd),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:kd,rgb:t=>kd(ao(t))},toMode:{oklab:zd,rgb:t=>lo(zd(t))}});function Qb(t,e){if(!e||e[0]!=="oklab")return;const n={mode:"oklab"},[,r,i,o,s]=e;if(!(r.type===J.Hue||i.type===J.Hue||o.type===J.Hue))return r.type!==J.None&&(n.l=Math.min(Math.max(0,r.type===J.Number?r.value:r.value/100),1)),i.type!==J.None&&(n.a=i.type===J.Number?i.value:i.value*.4/100),o.type!==J.None&&(n.b=o.type===J.Number?o.value:o.value*.4/100),s.type!==J.None&&(n.alpha=Math.min(1,Math.max(0,s.type===J.Number?s.value:s.value/100))),n}const Jb=Ae(ye({},Ha),{mode:"oklab",toMode:{lrgb:qr,rgb:lo},fromMode:{lrgb:Ed,rgb:ao},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Qb],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 tx(t,e){if(!e||e[0]!=="oklch")return;const n={mode:"oklch"},[,r,i,o,s]=e;if(r.type!==J.None){if(r.type===J.Hue)return;n.l=Math.min(Math.max(0,r.type===J.Number?r.value:r.value/100),1)}if(i.type!==J.None&&(n.c=Math.max(0,i.type===J.Number?i.value:i.value*.4/100)),o.type!==J.None){if(o.type===J.Percentage)return;n.h=o.value}return s.type!==J.None&&(n.alpha=Math.min(1,Math.max(0,s.type===J.Number?s.value:s.value/100))),n}const Ld=Ae(ye({},Da),{mode:"oklch",toMode:{oklab:t=>On(t,"oklab"),rgb:t=>lo(On(t,"oklab"))},fromMode:{rgb:t=>Pn(ao(t),"oklch"),oklab:t=>Pn(t,"oklch")},parse:[tx],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]}}),Rd=t=>{let{r:e,g:n,b:r,alpha:i}=vr(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},Hd=({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=br({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},ex=Ae(ye({},yr),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:t=>Hd(Nn(t)),xyz65:Hd},toMode:{rgb:t=>jn(Rd(t)),xyz65:Rd}}),Va=t=>{let e=Math.abs(t);return e>=1/512?Math.sign(t)*Math.pow(e,1/1.8):16*t},Dd=({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:Va(t*1.3457868816471585-e*.2555720873797946-.0511018649755453*n),g:Va(t*-.5446307051249019+e*1.5082477428451466+.0205274474364214*n),b:Va(t*0+e*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},Ya=(t=0)=>{let e=Math.abs(t);return e>=16/512?Math.sign(t)*Math.pow(e,1.8):t/16},Nd=t=>{let e=Ya(t.r),n=Ya(t.g),r=Ya(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},nx=Ae(ye({},yr),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Dd,rgb:t=>Dd(Gr(t))},toMode:{xyz50:Nd,rgb:t=>Xr(Nd(t))}}),jd=1.09929682680944,rx=.018053968510807,Xa=t=>{const e=Math.abs(t);return e>rx?(Math.sign(t)||1)*(jd*Math.pow(e,.45)-(jd-1)):4.5*t},Fd=({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:Xa(t*1.7166511879712683-e*.3556707837763925-.2533662813736599*n),g:Xa(t*-.6666843518324893+e*1.6164812366349395+.0157685458139111*n),b:Xa(t*.0176398574453108-e*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},Bd=1.09929682680944,ix=.018053968510807,Ga=(t=0)=>{let e=Math.abs(t);return e<ix*4.5?t/4.5:(Math.sign(t)||1)*Math.pow((e+Bd-1)/Bd,1/.45)},Wd=t=>{let e=Ga(t.r),n=Ga(t.g),r=Ga(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},ox=Ae(ye({},yr),{mode:"rec2020",fromMode:{xyz65:Fd,rgb:t=>Fd(Nn(t))},toMode:{xyz65:Wd,rgb:t=>jn(Wd(t))},parse:["rec2020"],serialize:"rec2020"}),Fn=.0037930732552754493,Vd=Math.cbrt(Fn),qa=t=>Math.cbrt(t)-Vd,sx=t=>{const{r:e,g:n,b:r,alpha:i}=vr(t),o=qa(.3*e+.622*n+.078*r+Fn),s=qa(.23*e+.692*n+.078*r+Fn),a=qa(.2434226892454782*e+.2047674442449682*n+.5518098665095535*r+Fn),l={mode:"xyb",x:(o-s)/2,y:(o+s)/2,b:a-(o+s)/2};return i!==void 0&&(l.alpha=i),l},Ua=t=>Math.pow(t+Vd,3),ax={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=Ua(t+e)-Fn,o=Ua(e-t)-Fn,s=Ua(n+e)-Fn,a=br({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:sx},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:it,y:it,b:it,alpha:{use:it,fixup:ce}}},lx={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Xr,lab:Ra},fromMode:{rgb:Gr,lab:za},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:it,y:it,z:it,alpha:{use:it,fixup:ce}}},cx={mode:"xyz65",toMode:{rgb:jn,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:Nn,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:it,y:it,z:it,alpha:{use:it,fixup:ce}}},hx={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:it,i:it,q:it,alpha:{use:it,fixup:ce}}},dx=t=>Math.max(0,Math.min(1,t||0)),ho=t=>Math.round(dx(t)*255),Yd=fa("rgb"),Xd=t=>{if(t===void 0)return;let e=ho(t.r),n=ho(t.g),r=ho(t.b);return"#"+(1<<24|e<<16|n<<8|r).toString(16).slice(1)},ux=t=>{if(t===void 0)return;let e=ho(t.alpha!==void 0?t.alpha:1);return Xd(t)+(256|e).toString(16).slice(1)},Ur=t=>Xd(Yd(t)),fx=t=>ux(Yd(t));function Za(t){let e=fa("lrgb")(t);return .2126*e.r+.7152*e.g+.0722*e.b}function Ka(t,e){let n=Za(t),r=Za(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}Ht(ob),Ht(ub),Ht(fb),Ht(pb),Ht(yb),Ht(ld),Ht(dd),Ht(Mb),Ht(Sb),Ht(Ab),Ht(kb),Ht(Ha),Ht(Lb),Ht(Da),Ht(Hb),Ht(Yb),Ht(Xb),Ht(Gb),Ht(Zb),Ht(Kb),Ht(Jb);const Gd=Ht(Ld);Ht(ex),Ht(nx),Ht(ox),Ht(yr),Ht(ax),Ht(lx),Ht(cx),Ht(hx);function Bn(t){if(!t)return!1;const e=t.trim().toLowerCase();return!(e==="none"||e==="transparent"||e==="")}function qd(t){const e=Je(t);return e?Za(e)<.5:!1}var Cn=Array.isArray,Ud=typeof global=="object"&&global&&global.Object===Object&&global,px=typeof self=="object"&&self&&self.Object===Object&&self,tn=Ud||px||Function("return this")(),Mn=tn.Symbol,Zd=Object.prototype,gx=Zd.hasOwnProperty,mx=Zd.toString,Zr=Mn?Mn.toStringTag:void 0;function yx(t){var e=gx.call(t,Zr),n=t[Zr];try{t[Zr]=void 0;var r=!0}catch(o){}var i=mx.call(t);return r&&(e?t[Zr]=n:delete t[Zr]),i}var vx=Object.prototype,bx=vx.toString;function xx(t){return bx.call(t)}var wx="[object Null]",_x="[object Undefined]",Kd=Mn?Mn.toStringTag:void 0;function Wn(t){return t==null?t===void 0?_x:wx:Kd&&Kd in Object(t)?yx(t):xx(t)}function Sn(t){return t!=null&&typeof t=="object"}var $x="[object Symbol]";function uo(t){return typeof t=="symbol"||Sn(t)&&Wn(t)==$x}var Px=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ox=/^\w*$/;function Cx(t,e){if(Cn(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||uo(t)?!0:Ox.test(t)||!Px.test(t)||e!=null&&t in Object(e)}function en(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Mx="[object AsyncFunction]",Sx="[object Function]",Ex="[object GeneratorFunction]",Ix="[object Proxy]";function Qa(t){if(!en(t))return!1;var e=Wn(t);return e==Sx||e==Ex||e==Mx||e==Ix}var Ja=tn["__core-js_shared__"],Qd=(function(){var t=/[^.]+$/.exec(Ja&&Ja.keys&&Ja.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Tx(t){return!!Qd&&Qd in t}var Ax=Function.prototype,kx=Ax.toString;function Vn(t){if(t!=null){try{return kx.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var zx=/[\\^$.*+?()[\]{}|]/g,Lx=/^\[object .+?Constructor\]$/,Rx=Function.prototype,Hx=Object.prototype,Dx=Rx.toString,Nx=Hx.hasOwnProperty,jx=RegExp("^"+Dx.call(Nx).replace(zx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Fx(t){if(!en(t)||Tx(t))return!1;var e=Qa(t)?jx:Lx;return e.test(Vn(t))}function Bx(t,e){return t==null?void 0:t[e]}function Yn(t,e){var n=Bx(t,e);return Fx(n)?n:void 0}var Kr=Yn(Object,"create");function Wx(){this.__data__=Kr?Kr(null):{},this.size=0}function Vx(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Yx="__lodash_hash_undefined__",Xx=Object.prototype,Gx=Xx.hasOwnProperty;function qx(t){var e=this.__data__;if(Kr){var n=e[t];return n===Yx?void 0:n}return Gx.call(e,t)?e[t]:void 0}var Ux=Object.prototype,Zx=Ux.hasOwnProperty;function Kx(t){var e=this.__data__;return Kr?e[t]!==void 0:Zx.call(e,t)}var Qx="__lodash_hash_undefined__";function Jx(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Kr&&e===void 0?Qx:e,this}function Xn(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])}}Xn.prototype.clear=Wx,Xn.prototype.delete=Vx,Xn.prototype.get=qx,Xn.prototype.has=Kx,Xn.prototype.set=Jx;function tw(){this.__data__=[],this.size=0}function fo(t,e){return t===e||t!==t&&e!==e}function po(t,e){for(var n=t.length;n--;)if(fo(t[n][0],e))return n;return-1}var ew=Array.prototype,nw=ew.splice;function rw(t){var e=this.__data__,n=po(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():nw.call(e,n,1),--this.size,!0}function iw(t){var e=this.__data__,n=po(e,t);return n<0?void 0:e[n][1]}function ow(t){return po(this.__data__,t)>-1}function sw(t,e){var n=this.__data__,r=po(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function pn(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])}}pn.prototype.clear=tw,pn.prototype.delete=rw,pn.prototype.get=iw,pn.prototype.has=ow,pn.prototype.set=sw;var Qr=Yn(tn,"Map");function aw(){this.size=0,this.__data__={hash:new Xn,map:new(Qr||pn),string:new Xn}}function lw(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function go(t,e){var n=t.__data__;return lw(e)?n[typeof e=="string"?"string":"hash"]:n.map}function cw(t){var e=go(this,t).delete(t);return this.size-=e?1:0,e}function hw(t){return go(this,t).get(t)}function dw(t){return go(this,t).has(t)}function uw(t,e){var n=go(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function En(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])}}En.prototype.clear=aw,En.prototype.delete=cw,En.prototype.get=hw,En.prototype.has=dw,En.prototype.set=uw;var fw="Expected a function";function tl(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(fw);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(tl.Cache||En),n}tl.Cache=En;var pw=500;function gw(t){var e=tl(t,function(r){return n.size===pw&&n.clear(),r}),n=e.cache;return e}var mw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yw=/\\(\\)?/g,vw=gw(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(mw,function(n,r,i,o){e.push(i?o.replace(yw,"$1"):r||n)}),e});function bw(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 Jd=Mn?Mn.prototype:void 0,tu=Jd?Jd.toString:void 0;function eu(t){if(typeof t=="string")return t;if(Cn(t))return bw(t,eu)+"";if(uo(t))return tu?tu.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Jr(t){return t==null?"":eu(t)}function xw(t,e){return Cn(t)?t:Cx(t,e)?[t]:vw(Jr(t))}function ww(t){if(typeof t=="string"||uo(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function _w(t,e){e=xw(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[ww(e[n++])];return n&&n==r?t:void 0}function nu(t,e,n){var r=t==null?void 0:_w(t,e);return r===void 0?n:r}function wr(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 nu(n,r)}function ru(t){const{structure:e,item:n,items:r}=t;return!(!e||!n||r.some(i=>!i))}function $w(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 Pw(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:$w(t,e,n)}var Ow="\\ud800-\\udfff",Cw="\\u0300-\\u036f",Mw="\\ufe20-\\ufe2f",Sw="\\u20d0-\\u20ff",Ew=Cw+Mw+Sw,Iw="\\ufe0e\\ufe0f",Tw="\\u200d",Aw=RegExp("["+Tw+Ow+Ew+Iw+"]");function iu(t){return Aw.test(t)}function kw(t){return t.split("")}var ou="\\ud800-\\udfff",zw="\\u0300-\\u036f",Lw="\\ufe20-\\ufe2f",Rw="\\u20d0-\\u20ff",Hw=zw+Lw+Rw,Dw="\\ufe0e\\ufe0f",Nw="["+ou+"]",el="["+Hw+"]",nl="\\ud83c[\\udffb-\\udfff]",jw="(?:"+el+"|"+nl+")",su="[^"+ou+"]",au="(?:\\ud83c[\\udde6-\\uddff]){2}",lu="[\\ud800-\\udbff][\\udc00-\\udfff]",Fw="\\u200d",cu=jw+"?",hu="["+Dw+"]?",Bw="(?:"+Fw+"(?:"+[su,au,lu].join("|")+")"+hu+cu+")*",Ww=hu+cu+Bw,Vw="(?:"+[su+el+"?",el,au,lu,Nw].join("|")+")",Yw=RegExp(nl+"(?="+nl+")|"+Vw+Ww,"g");function Xw(t){return t.match(Yw)||[]}function Gw(t){return iu(t)?Xw(t):kw(t)}function qw(t){return function(e){e=Jr(e);var n=iu(e)?Gw(e):void 0,r=n?n[0]:e.charAt(0),i=n?Pw(n,1).join(""):e.slice(1);return r[t]()+i}}var Uw=qw("toUpperCase");function Zw(t){return Uw(Jr(t).toLowerCase())}function Kw(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 Qw(t){return function(e){return t==null?void 0:t[e]}}var Jw={À:"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"},t_=Qw(Jw),e_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n_="\\u0300-\\u036f",r_="\\ufe20-\\ufe2f",i_="\\u20d0-\\u20ff",o_=n_+r_+i_,s_="["+o_+"]",a_=RegExp(s_,"g");function l_(t){return t=Jr(t),t&&t.replace(e_,t_).replace(a_,"")}var c_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function h_(t){return t.match(c_)||[]}var d_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function u_(t){return d_.test(t)}var du="\\ud800-\\udfff",f_="\\u0300-\\u036f",p_="\\ufe20-\\ufe2f",g_="\\u20d0-\\u20ff",m_=f_+p_+g_,uu="\\u2700-\\u27bf",fu="a-z\\xdf-\\xf6\\xf8-\\xff",y_="\\xac\\xb1\\xd7\\xf7",v_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",b_="\\u2000-\\u206f",x_=" \\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",pu="A-Z\\xc0-\\xd6\\xd8-\\xde",w_="\\ufe0e\\ufe0f",gu=y_+v_+b_+x_,mu="['’]",yu="["+gu+"]",__="["+m_+"]",vu="\\d+",$_="["+uu+"]",bu="["+fu+"]",xu="[^"+du+gu+vu+uu+fu+pu+"]",P_="\\ud83c[\\udffb-\\udfff]",O_="(?:"+__+"|"+P_+")",C_="[^"+du+"]",wu="(?:\\ud83c[\\udde6-\\uddff]){2}",_u="[\\ud800-\\udbff][\\udc00-\\udfff]",_r="["+pu+"]",M_="\\u200d",$u="(?:"+bu+"|"+xu+")",S_="(?:"+_r+"|"+xu+")",Pu="(?:"+mu+"(?:d|ll|m|re|s|t|ve))?",Ou="(?:"+mu+"(?:D|LL|M|RE|S|T|VE))?",Cu=O_+"?",Mu="["+w_+"]?",E_="(?:"+M_+"(?:"+[C_,wu,_u].join("|")+")"+Mu+Cu+")*",I_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",T_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",A_=Mu+Cu+E_,k_="(?:"+[$_,wu,_u].join("|")+")"+A_,z_=RegExp([_r+"?"+bu+"+"+Pu+"(?="+[yu,_r,"$"].join("|")+")",S_+"+"+Ou+"(?="+[yu,_r+$u,"$"].join("|")+")",_r+"?"+$u+"+"+Pu,_r+"+"+Ou,T_,I_,vu,k_].join("|"),"g");function L_(t){return t.match(z_)||[]}function R_(t,e,n){return t=Jr(t),e=e,e===void 0?u_(t)?L_(t):h_(t):t.match(e)||[]}var H_="['’]",D_=RegExp(H_,"g");function Su(t){return function(e){return Kw(R_(l_(e).replace(D_,"")),t,"")}}var N_=Su(function(t,e,n){return e=e.toLowerCase(),t+(n?Zw(e):e)});function Gn(t){return t.trim().replace(/["']/g,"")}function $r(t){return t.startsWith('"')?t:/^\d/.test(t)?`"${t}"`:t.includes(" ")?`"${t}"`:t}const j_={100:"thin",hairline:"thin",thin:"thin",200:"extralight",ultralight:"extralight",extralight:"extralight",300:"light",light:"light",400:"regular",normal:"regular",regular:"regular",500:"medium",medium:"medium",600:"semibold",demibold:"semibold",semibold:"semibold",700:"bold",bold:"bold",800:"extrabold",ultrabold:"extrabold",extrabold:"extrabold",900:"black",heavy:"black",black:"black",950:"extrablack",ultrablack:"extrablack",extrablack:"extrablack"};function Eu(t){const e=String(t).toLowerCase();return j_[e]||"regular"}function wt(t,e={}){const n=document.createElementNS("http://www.w3.org/2000/svg",t);return Yt(n,e),n}function Pr(t){const n=new DOMParser().parseFromString(t,"image/svg+xml");if(n.querySelector("parsererror"))throw new Error("Invalid SVG string");return n.documentElement}function Yt(t,e){Object.entries(e).forEach(([n,r])=>{r==null?t.removeAttribute(n):t.setAttribute(n,r)})}function ke(t,e,n=!0){return e.reduce((r,i)=>{const o=t.getAttribute(i);return(!n||o!==null&&o!==""&&o!==void 0)&&(r[i]=o),r},{})}function F_(t,e){e.forEach(n=>{t.removeAttribute(n)})}function rl(t,e){if(e(t)===!1)return;Array.from(t.children).forEach(r=>{rl(r,e)})}function mo(t,e="infographic-defs"){const n=e?`defs#${e}`:"defs",r=t.querySelector(n);if(r)return r;const i=wt("defs");return e&&(i.id=e),t.prepend(i),i}var Iu=Object.getOwnPropertySymbols,B_=Object.prototype.hasOwnProperty,W_=Object.prototype.propertyIsEnumerable,V_=(t,e)=>{var n={};for(var r in t)B_.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Iu)for(var r of Iu(t))e.indexOf(r)<0&&W_.call(t,r)&&(n[r]=t[r]);return n};function qn(t){return ku(t)?t.querySelector("span"):null}function Y_(t,e){const n=document.createElement("span"),r=wt("foreignObject",{overflow:"visible"});return r.appendChild(n),Tu(r,{textContent:t,attributes:e}),r}function Tu(t,e){const{textContent:n,attributes:r}=e;if(n!==void 0&&ol(t,n),!r)return;const i=qn(t);let{width:o,height:s}=r;const a={};if(i){if(Object.assign(i.style,G_(r)),!o||!s){const p=q_(i);!o&&!t.hasAttribute("width")&&(o=String(p.width)),!s&&!t.hasAttribute("height")&&(s=String(p.height))}const{"data-horizontal-align":u,"data-vertical-align":f}=r;Object.assign(i.style,X_(u,f))}const{id:l,x:c,y:h}=r;l&&(a.id=l),c!==void 0&&(a.x=String(c)),h!==void 0&&(a.y=String(h)),o!==void 0&&(a.width=String(o)),s!==void 0&&(a.height=String(s)),Yt(t,a)}function X_(t,e){const n={width:"100%",height:"100%",display:"flex",flexWrap:"wrap",wordBreak:"break-word",whiteSpace:"pre-wrap"};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 G_(t){const e=t,{x:n,y:r,width:i,height:o,["data-horizontal-align"]:s,["data-vertical-align"]:a,["font-size"]:l,["letter-spacing"]:c,["line-height"]:h,fill:u,["stroke-width"]:f,["text-anchor"]:p,["dominant-baseline"]:g,["font-family"]:y}=e,m=V_(e,["x","y","width","height","data-horizontal-align","data-vertical-align","font-size","letter-spacing","line-height","fill","stroke-width","text-anchor","dominant-baseline","font-family"]),b={overflow:"visible"};return u&&(b.color=u),Object.entries(m).forEach(([v,x])=>{b[N_(v)]=x}),l&&(b.fontSize=`${l}px`),h&&(b.lineHeight=typeof h=="string"&&h.endsWith("px")?h:+h),c&&(b.letterSpacing=`${c}px`),f&&(b.strokeWidth=`${f}px`),b.fontFamily=y?$r(y):y||"",b}function q_(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 il(t){var e;return((e=qn(t))==null?void 0:e.innerText)||""}function ol(t,e){const n=qn(t);n&&(n.innerText=e)}function sl(t){const e=qn(t);if(!e)return{};const{color:n,fontSize:r,fontFamily:i,justifyContent:o,alignContent:s,fontWeight:a}=e.style,[l,c]=U_(o,s),h={"data-horizontal-align":l,"data-vertical-align":c};return i&&(h["font-family"]=Gn(i)),a&&(h["font-weight"]=a),r&&(h["font-size"]=String(parseInt(r))),n&&(h.fill=n),{attributes:h,textContent:il(t)}}function U_(t,e){let n="LEFT",r="TOP";switch(t){case"flex-start":n="LEFT";break;case"center":n="CENTER";break;case"flex-end":n="RIGHT";break}switch(e){case"flex-start":r="TOP";break;case"center":r="MIDDLE";break;case"flex-end":r="BOTTOM";break}return[n,r]}const _e=(t,e)=>{var n;return((n=t==null?void 0:t.dataset)==null?void 0:n.elementType)===e},Z_=t=>_e(t,"title"),K_=t=>_e(t,"desc"),Q_=t=>_e(t,"shape"),J_=t=>_e(t,"shapes-group"),t4=t=>_e(t,"illus"),e4=t=>t instanceof SVGElement&&t.tagName==="text",n4=t=>t instanceof SVGElement&&t.tagName==="g",al=t=>_e(t,"item-icon"),Au=t=>_e(t,"item-icon-group"),r4=t=>_e(t,"item-label"),i4=t=>_e(t,"item-desc"),o4=t=>_e(t,"item-value"),s4=t=>_e(t,"item-illus"),a4=t=>_e(t,"edit-area"),l4=t=>_e(t,"btns-group"),c4=t=>_e(t,"rough-element"),h4=t=>_e(t,"rough-volume");function ku(t){return t.tagName==="foreignObject"}function d4(t){return t.tagName==="SPAN"}function gn(t){const e=ll(t);return[kt.Title,kt.Desc,kt.ItemLabel,kt.ItemDesc].includes(e)}function zu(t){if(!t||!gn(t))return!1;const e=qn(t);return e?e.hasAttribute("contenteditable"):!1}function u4(t){const e=t.tagName.toLowerCase();return["rect","circle","ellipse","line","polygon","polyline","path"].includes(e)}function In(t){return al(t)||Au(t)}function f4(t){let e=t;for(;e;){if(Or(e,ha))return!0;e=e.parentElement}return!1}function ti(t,e){t.setAttribute("data-element-type",e)}function Or(t,e){return t.querySelector(`[data-element-type="${e}"]`)}function ll(t){return In(t)?kt.ItemIcon:t.getAttribute("data-element-type")||kt.Unknown}function p4(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,h){const u=e[l];return u?`${o(h)}/** ${u} */
|
|
5
5
|
${o(h)}${l}: ${c};`:`${o(h)}${l}: ${c};`}function a(l,c){const h=r[l],u=[];for(const f of h){const p=f==="value"?"number":"string";u.push(s(f,p,c+1))}return r[l+1]&&u.push(s("children",`Array<${a(l+1,c+1)}>`,c+1)),`{
|
|
6
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
|
-
`)}function
|
|
9
|
+
`)}function Lu(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()}var g4=(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 m4(t){return t.startsWith("data:")}function ei(t){return g4(this,null,function*(){var e;if(!t||!m4(t))return null;const n=(e=t.match(/^data:([^;]+)/))==null?void 0:e[1];if(!n)return null;const r=()=>new Promise((c,h)=>{const u=new Image;u.onload=()=>{const f=u.naturalWidth,p=u.naturalHeight,g=document.createElement("canvas"),y=g.getContext("2d");if(!y)return c({width:f,height:p,hasAlpha:!1});if(["image/jpeg","image/jpg","image/webp","image/gif"].includes(n))return c({width:f,height:p,hasAlpha:!1});g.width=f,g.height=p,y.drawImage(u,0,0);let m=!1;const b=10;for(let v=0;v<f&&!m;v+=b)for(let x=0;x<p;x+=b)if(y.getImageData(v,x,1,1).data[3]<255){m=!0;break}c({width:f,height:p,hasAlpha:m})},u.onerror=()=>h(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 h=i/o;return h>=.6&&h<=1.67||h<.3||h>3.33?"xMidYMid meet":"xMidYMid slice"})();return Pr(`
|
|
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 w_(t){return t.startsWith("<svg")||t.startsWith("<symbol")}function Wa(t){if(!t||!w_(t))return null;const e=t.startsWith("<svg")?t.replace(/<svg/,"<symbol").replace(/svg>/,"symbol>"):t;return ur(e)}var $_=(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 P_(t){try{return!!new URL(t)}catch(e){return!1}}function O_(t){return $_(this,null,function*(){if(!t||!P_(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 Wa(o)}const r=yield e.blob(),i=yield C_(r);return du(i)})}function C_(t){return new Promise((e,n)=>{const r=new FileReader;r.onloadend=()=>{e(r.result)},r.onerror=n,r.readAsDataURL(t)})}let uu=null;function M_(t){uu=t}function S_(){return uu}var Ji=(t=>(t.Image="image",t.SVG="svg",t.Remote="remote",t))(Ji||{});function fu(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:Ji.Image,data:t};const a={"text/url":Ji.Remote,"image/svg+xml":Ji.SVG}[o];return a?{type:a,data:r}:{type:"custom",data:t}}function Ya(t){return t?typeof t=="string"?fu(t):t:null}function Xa(t){const e=typeof t=="string"?fu(t):t;return e?"rsc-"+hu(JSON.stringify(e)):null}function pu(t){const e=Xa(t);return e?`#${e}`:null}var gu=(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 E_(t){return gu(this,null,function*(){const e=Ya(t);if(!e)return null;const{type:n,data:r}=e;if(n==="image")return yield du(r);if(n==="svg")return Wa(r);if(n==="remote")return yield O_(r);{const i=S_();if(i)return yield i(e)}return null})}const mu=new Map,Ga=new WeakMap;function yu(t,e){return gu(this,null,function*(){if(!t)return null;const n=Ya(e);if(!n)return null;const r=Xa(n),i=mu.has(r)?mu.get(r)||null:yield E_(n);if(!i)return null;Ga.has(t)||Ga.set(t,new Map);const o=Ga.get(t);if(o.has(r))return r;const s=Qi(t);return i.id=r,s.appendChild(i),o.set(r,i),r})}var I_=Object.defineProperty,T_=Object.defineProperties,A_=Object.getOwnPropertyDescriptors,vu=Object.getOwnPropertySymbols,k_=Object.prototype.hasOwnProperty,z_=Object.prototype.propertyIsEnumerable,xu=(t,e,n)=>e in t?I_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,L_=(t,e)=>{for(var n in e||(e={}))k_.call(e,n)&&xu(t,n,e[n]);if(vu)for(var n of vu(e))z_.call(e,n)&&xu(t,n,e[n]);return t},H_=(t,e)=>T_(t,A_(e));const R_=new WeakMap;function D_(t,e={}){const n=ft("use",H_(L_({},e),{href:pu(t)}));return bu(n),R_.set(n,t),n}function bu(t){const{stroke:e,fill:n}=Se(t,["fill","stroke"]);t.style.color=n||e||"currentColor"}function to(t){return t.tagName==="use"?t:t.querySelector("use")}function qa(t){const e=to(t);return e?Se(e,["width","height","x","y","width","height","fill","fill-opacity","stroke","opacity"]):{}}function N_(t,e,n){const r=to(t);r&&(n&&Bt(r,n),bu(r))}const j_=",",B_=(t,e=j_)=>t.split(e).map(n=>parseInt(n,10)),_u=t=>B_(t);function Ua(...t){return t.map(e=>e.replace(/^\/+|\/+$/g,"")).filter(e=>e.trim().length>0).join("/")}const eo=new Map;let F_="sans-serif";const V_={fontFamily:"sans-serif",fontWeight:400,fontStyle:"normal",unitsPerEm:2048,metrics:{ascender:2189,descender:-555,lineGap:0},glyphs:{'"':727,"%":1821,"'":391,"(":682,")":682,"*":797,"+":1196,"-":682,"<":1196,"=":1196,">":1196,"@":2079,C:1479,D:1479,F:1251,G:1593,H:1479,J:1024,M:1706,N:1479,O:1593,Q:1593,R:1479,T:1251,U:1479,W:1933,Z:1251,"^":961,_:1024,"`":682,c:1024,i:455,j:455,k:1024,l:455,m:1706,r:682,s:1024,v:1024,w:1479,x:1024,y:1024,z:1024,"{":684,"|":532,"}":684,"~":1196},glyphsByWidth:{569:" !,./:;I[\\]ft",1139:"#$0123456789?Labdeghnopqu",1366:"&ABEKPSVXY"},defaultWidth:1139};function wu(t){if(t===void 0||t==="normal")return"400";if(t==="bold")return"700";const e={thin:"100",hairline:"100","extra-light":"200","ultra-light":"200",light:"300",regular:"400",normal:"400",medium:"500","semi-bold":"600",semibold:"600","demi-bold":"600",demibold:"600","extra-bold":"800",extrabold:"800","ultra-bold":"800",ultrabold:"800",black:"900",heavy:"900","extra-black":"950",extrablack:"950","ultra-black":"950",ultrablack:"950",bolder:"900",lighter:"300"};if(typeof t=="string"){const n=t.toLowerCase();return e[n]||t}return String(t)}function $u(t){return t||"normal"}function W_(t){const e=t.fontFamily,n=wu(t.fontWeight),r=$u(t.fontStyle);if(t.glyphsByWidth){const s=pe({},t.glyphs||{});for(const[a,l]of Object.entries(t.glyphsByWidth))if(typeof l=="string"){const c=Number(a);for(const h of l)s[h]=c}else s[a]=l;t=Me(pe({},t),{glyphs:s,glyphsByWidth:void 0})}eo.has(e)||eo.set(e,new Map);const i=eo.get(e);i.has(n)||i.set(n,new Map),i.get(n).set(r,t)}function Y_(t,e,n){const r=t||F_,i=wu(e),o=$u(n),s=eo.get(r);if(!s)return console.warn(`Font family "${r}" not registered, using fallback font data`),V_;let a=s.get(i);if(a){let c=a.get(o);if(c||o!=="normal"&&(c=a.get("normal"),c))return c;const h=a.values().next().value;if(h)return h}if(a=s.get("400"),a){let c=a.get(o);if(c||o!=="normal"&&(c=a.get("normal"),c))return c;const h=a.values().next().value;if(h)return h}const l=s.values().next().value;if(l){const c=l.values().next().value;if(c)return c}throw new Error(`No font data found for family "${r}" with weight "${i}" and style "${o}"`)}function X_(t,e){if(!e||e==="none")return t;switch(e){case"uppercase":return t.toUpperCase();case"lowercase":return t.toLowerCase();case"capitalize":return t.split(" ").map(n=>n.length===0?n:n[0].toUpperCase()+n.slice(1).toLowerCase()).join(" ");default:return t}}function Pu(t){if(t===void 0)return 14;if(typeof t=="number")return t;const e=parseFloat(t);return isNaN(e)?16:e}function G_(t,e){const n=Pu(t.fontSize),r=t.lineHeight;if(r===void 0){const{ascender:i,descender:o,lineGap:s=0}=e.metrics;return(i-o+s)/e.unitsPerEm*n}return typeof r=="number"?r*n:r.type==="pixel"?r.value:r.type==="percent"?r.value/100*n:n}function q_(t,e={}){var f;const n=X_(t,e.textTransform),r=Y_(e.fontFamily,e.fontWeight,e.fontStyle),i=Pu(e.fontSize),o=e.letterSpacing||0,s=e.wordSpacing||0;let a=0;const l=Array.from(n);for(let p=0;p<l.length;p++){const g=l[p],y=p<l.length-1?l[p+1]:void 0;let m=(f=r.glyphs)==null?void 0:f[g];m===void 0&&(m=r.defaultWidth||r.unitsPerEm/2);const x=m/r.unitsPerEm*i;if(a+=x,y&&r.kerning){const v=g+y,b=r.kerning[v];b!==void 0&&(a+=b/r.unitsPerEm*i)}p<l.length-1&&(a+=o),g===" "&&(a+=s)}const c=G_(e,r),{ascender:h}=r.metrics,u=h/r.unitsPerEm*i;return{width:a,height:c,baseline:u}}const U_={fontFamily:"Alibaba PuHuiTi",fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:1060,descender:-340,lineGap:0},glyphs:{" ":257,"!":361,'"':405,"#":600,"%":821,"&":640,"'":253,"(":359,")":359,"*":430,",":302,"-":440,".":302,"/":500,":":378,";":378,"?":431,"@":860,B:620,C:599,D:699,F:527,G:685,H:708,J:271,K:614,L:507,M:830,N:737,P:597,R:614,S:566,T:528,V:617,W:898,X:624,Y:594,Z:626,"[":294,"\\":510,"]":294,_:500,"`":346,b:635,c:497,d:635,f:349,g:636,k:518,l:286,m:921,p:635,q:636,r:379,s:479,t:337,v:526,w:828,x:516,y:527,z:506,"{":299,"|":183,"}":299," ":257,"¡":357,"¦":183,"§":479,"¨":346,"©":806,ª:483,"«":511,"":440,"®":404,"¯":346,"°":363,"´":346,"¶":593,"·":357,"¸":346,º:445,"»":511,"¼":902,"½":914,"¾":902,"¿":431,Æ:889,Ç:599,Ð:719,Ñ:737,Ý:594,Þ:597,ß:610,æ:926,ç:497,ý:527,þ:635,ÿ:527,Ć:599,ć:497,Ĉ:599,ĉ:497,Ċ:599,ċ:497,Č:599,č:497,Ď:699,ď:640,Đ:719,đ:635,Ĝ:685,ĝ:636,Ğ:685,ğ:636,Ġ:685,ġ:636,Ģ:685,ģ:636,Ĥ:708,Ħ:708,IJ:545,ij:536,Ĵ:271,Ķ:614,ķ:518,ĸ:518,Ĺ:507,ĺ:286,Ļ:507,ļ:286,Ľ:507,ľ:290,Ŀ:507,ŀ:291,Ł:507,ł:286,Ń:737,Ņ:737,Ň:737,ʼn:669,Ŋ:737,Œ:987,œ:917,Ŕ:614,ŕ:379,Ŗ:614,ŗ:379,Ř:614,ř:379,Ś:566,ś:479,Ŝ:566,ŝ:479,Ş:566,ş:479,Š:566,š:479,Ţ:528,ţ:337,Ť:528,ť:340,Ŧ:528,ŧ:337,Ŵ:898,ŵ:828,Ŷ:594,ŷ:527,Ÿ:594,Ź:626,ź:506,Ż:626,ż:506,Ž:626,ž:506,ſ:310,Ə:719,ǎ:608,ǐ:265,ǒ:614,ǔ:609,ǖ:609,ǘ:609,ǚ:609,ǜ:609,Ǽ:889,ǽ:926,Ș:566,ș:479,Ț:528,ț:337,"ʹ":255,"͵":255,";":378,"΄":346,"΅":346,Ά:670,"·":357,Έ:628,Ή:779,Ί:346,Ό:765,Ύ:726,Ώ:765,ΐ:312,Β:620,Γ:507,Ζ:626,Η:708,Κ:614,Λ:617,Μ:830,Ν:737,Π:708,Ρ:597,Σ:596,Τ:528,Υ:594,Φ:831,Χ:624,Ψ:804,Ϋ:594,έ:509,ή:643,ί:312,ΰ:593,β:610,γ:526,ε:509,ζ:465,η:643,θ:638,ι:312,κ:518,λ:514,ν:526,ξ:465,π:616,ρ:619,ς:497,σ:639,τ:437,υ:593,φ:774,χ:509,ψ:745,ω:782,ϊ:312,ϋ:593,ύ:593,ώ:782,"‐":440,"‑":440,"–":495,"—":684,"―":684,"‗":500,"‘":270,"’":270,"‚":270,"‛":270,"“":784,"”":784,"„":468,"†":500,"‡":500,"•":308,"…":1085,"‰":1174,"′":256,"″":472,"‴":689,"‵":256,"‶":472,"‷":689,"‹":312,"›":312,"‼":589,"‽":433,"‾":500,"⁄":120,"⁺":407,"⁻":407,"⁼":407,"⁽":225,"⁾":225,ⁿ:486,"₊":407,"₋":407,"₌":407,"₍":225,"₎":225,"ₙ":486,"₡":599,"₣":527,"₤":600,"₥":921,"₦":625,"₨":1093,"₩":769,"₪":754,"₫":635,"₭":614,"₮":528,"₯":1288,"₰":950,"₲":685,"₴":576,"₵":599,"₶":576,"₷":700,"₸":528,"₻":750,"₼":683,"₾":577,"₿":620,"℃":915,"℅":825,"℉":868,ℓ:385,"№":1176,"℗":806,"℡":1022,"™":903,"℮":903,"⅛":930,"⅜":931,"⅝":931,"⅞":871,"Ⅶ":1166,"∂":587,"∈":663,"∏":708,"∑":596,"√":604,"∞":679,"∧":617,"∫":531,"∮":654,"≈":600,"≒":662,"◊":600," ":0,"〞":472},glyphsByWidth:{268:"ijìíîïĩīĭįıĵȷ",274:"IÌÍÎÏĨĪĬĮİΙΪ",406:"²³¹⁰⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉",552:"+<=>^~¬±×÷−∕∙≠≤≥≦≧≮≯",556:"EÈÉÊËĒĔĖĘĚΕΞ",575:"$0123456789¢£¤¥ƒ₢₧€₱₹₺₽",578:"eèéêëēĕėęě",612:"aàáâãäåāăąǻ",613:"uµùúûüũūŭůűųάαμ∨",618:"hnoðñòóôõöøĥħńņňŋōŏőǿδοό",667:"AÀÁÂÃÄÅĀĂĄǺΑΔ₳∆",701:"UÙÚÛÜŨŪŬŮŰŲ",743:"OQÒÓÔÕÖØŌŎŐǾΘΟΩΩ",1e3:"─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▓▔▕■□▲△▼▽◆◇○◎●◢◣◤◥★☆☉♀♂〾"},defaultWidth:984,kerning:{'""':-56,"\"'":-57,'",':-179,'".':-179,"'\"":-56,"''":-57,"',":-179,"'.":-179,"(j":60,',"':-160,",'":-160,",1":-140,",7":-41,",9":-39,'."':-160,".'":-160,".1":-140,".7":-41,".9":-39,"//":-120,"1,":-99,"1.":-99,"1:":-99,"1;":-99,"7,":-160,"7.":-160,"7:":-99,"7;":-99,":1":-79,":7":-59,";1":-79,";7":-59,'A"':-100,"A'":-100,AC:-20,AG:-20,AO:-20,AQ:-20,AT:-80,AU:-10,AV:-70,AW:-39,AY:-81,Af:-20,Al:-10,At:-20,Av:-20,Ay:-20,BC:-10,BG:-10,BO:-10,BQ:-10,BT:-40,BV:-20,BX:-20,BY:-21,"D,":-59,"D.":-59,DA:-20,DT:-36,DV:-30,DW:-19,DX:-20,DY:-40,DZ:-20,Da:-39,Ej:19,"F,":-159,"F.":-159,FA:-40,Fa:-59,Fh:1,Fk:1,GV:-11,GY:-21,JJ:7,KA:-19,KC:-20,KG:-20,KO:-20,KQ:-20,KT:-19,KU:-39,KV:-39,KW:-39,KY:-40,Kc:-39,Kd:-39,Ke:-39,Kg:-39,Kl:-39,Ko:-39,Kq:-39,Ks:-19,Kt:-10,Ku:-40,Kv:-60,Kw:-40,Ky:-60,'L"':-99,"L'":-99,LA:20,LC:-59,LG:-59,LO:-59,LQ:-59,LT:-79,LU:-19,LV:-79,LW:-39,LY:-100,Lv:-41,Lw:-21,Ly:-41,"O,":-59,"O.":-59,OA:-20,OT:-36,OV:-30,OW:-19,OX:-20,OY:-40,OZ:-20,Oa:-39,"P,":-199,"P.":-199,PA:-60,PT:-29,PV:-10,PW:-10,PX:-50,PY:-20,PZ:-39,Pa:-60,"Q,":-59,"Q.":-59,QA:-20,QJ:7,QT:-36,QV:-30,QW:-19,QX:-20,QY:-40,QZ:-20,Qa:-39,RC:-15,RG:-15,RO:-15,RQ:-15,RT:-40,RU:-10,RV:-21,RW:-10,RX:-29,RY:-41,Rc:-20,Rd:-20,Re:-20,Rg:-20,Ro:-20,Rq:-20,Rt:-20,Ru:-10,Rv:-10,Rx:20,Ry:-10,"S,":-20,"S.":-20,SS:-1,ST:-1,SV:-21,SW:-10,SY:-21,St:-1,Sv:-20,Sw:-10,Sx:-1,Sy:-20,'T"':2,"T'":2,"T,":-154,"T.":-154,TA:-80,TC:-20,TG:-20,TO:-20,TQ:-20,TS:-1,Ta:-80,Tc:-59,Td:-59,Te:-59,Tg:-59,Ti:-20,Tj:-19,Tm:-59,Tn:-59,To:-59,Tp:-58,Tq:-59,Tr:-59,Ts:-60,Tt:20,Tu:-79,Tv:-39,Tw:-19,Tx:-39,Ty:-39,Tz:-59,UA:-10,UX:-19,Ux:-1,"V,":-140,"V.":-140,"V:":-41,"V;":-41,VA:-70,VC:-30,VG:-30,VO:-30,VQ:-30,VS:-10,Va:-41,Vc:-21,Vd:-21,Ve:-21,Vg:-21,Vh:1,Vk:1,Vo:-21,Vq:-21,Vs:-21,Vv:-1,Vy:-1,"W,":-79,"W.":-79,"W:":-39,"W;":-39,WA:-40,WC:-19,WG:-19,WO:-19,WQ:-19,Wa:-40,Wc:-20,Wd:-20,We:-20,Wg:-20,Wo:-20,Wq:-20,Ws:-20,XA:-19,XC:-20,XG:-20,XO:-20,XQ:-20,XT:-19,XU:-39,XV:-39,XW:-39,XY:-40,Xc:-39,Xd:-39,Xe:-39,Xg:-39,Xl:-39,Xo:-39,Xq:-39,Xs:-19,Xt:-10,Xu:-40,Xv:-60,Xw:-40,Xy:-60,'Y"':1,"Y'":1,"Y,":-141,"Y.":-141,"Y:":-60,"Y;":-60,YA:-81,YC:-40,YG:-40,YO:-40,YQ:-40,YS:-1,Ya:-101,Yc:-60,Yd:-60,Ye:-60,Yf:-1,Yg:-60,Yh:1,Yi:-19,Yk:1,Ym:-41,Yn:-41,Yo:-60,Yp:-40,Yq:-60,Yr:-41,Ys:-61,Yt:-1,Yu:-40,Yv:-40,Yx:-41,Yy:-40,Yz:-41,ZC:-20,ZG:-20,ZO:-20,ZQ:-20,"[j":80,aT:-60,aV:-21,aY:-61,av:-10,aw:-10,ay:-10,"b,":-40,"b.":-40,bT:-59,bV:-21,bW:-20,bX:-39,bY:-60,bv:-10,bx:-20,by:-10,"e,":-20,"e.":-20,eT:-59,eY:-40,ej:20,'f"':3,"f'":3,"f)":1,"f*":61,"f,":-1,"f.":-1,"f?":40,fT:40,fV:21,fW:21,fX:21,fY:1,"f]":21,fa:-29,fc:-19,fd:-19,fe:-19,ff:1,fg:-39,fh:-19,fi:-19,fj:-19,fk:-19,fl:-19,fo:-19,fq:-19,fs:-19,ft:1,"f}":3,hT:-58,hY:-39,hv:-10,hy:-10,'i"':2,"i'":2,"i)":2,"i?":3,iT:-20,"i]":41,"i}":22,jT:-20,kT:-39,kU:-1,kW:-20,ka:-20,kc:-20,kd:-20,ke:-20,kg:-20,kl:-20,ko:-20,kq:-20,ku:-10,lf:-20,lv:-19,lw:-10,ly:-19,mT:-58,mY:-39,mv:-10,my:-10,nT:-58,nY:-39,nv:-10,ny:-10,"o,":-40,"o.":-40,oT:-59,oV:-21,oW:-20,oX:-39,oY:-60,ov:-10,ox:-20,oy:-10,"p,":-40,"p.":-40,pT:-59,pV:-21,pW:-20,pX:-39,pY:-60,pv:-10,px:-20,py:-10,qT:-19,qY:-19,qj:20,'r"':2,"r'":2,"r,":-90,"r.":-90,ra:-49,rc:-19,rd:-19,re:-19,rf:1,ro:-19,rq:-19,rt:20,sT:-59,sV:-21,sW:-20,sX:-19,sY:-60,sv:-19,sx:-10,sy:-19,tf:1,uT:-40,uY:-19,"v,":-90,"v.":-90,vT:-39,vX:-39,va:-35,vc:-10,vd:-10,ve:-10,vo:-10,vq:-10,"w,":-50,"w.":-50,wT:-19,wX:-39,wa:-30,xT:-39,xU:-1,xW:-20,xa:-20,xc:-20,xd:-20,xe:-20,xg:-20,xl:-20,xo:-20,xq:-20,xu:-10,"y,":-90,"y.":-90,yT:-39,yX:-39,ya:-35,yc:-10,yd:-10,ye:-10,yo:-10,yq:-10,zT:-59,"{h":2,"{j":79,"{k":2}};var Z_=Object.defineProperty,Ou=Object.getOwnPropertySymbols,K_=Object.prototype.hasOwnProperty,Q_=Object.prototype.propertyIsEnumerable,Cu=(t,e,n)=>e in t?Z_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,J_=(t,e)=>{for(var n in e||(e={}))K_.call(e,n)&&Cu(t,n,e[n]);if(Ou)for(var n of Ou(e))Q_.call(e,n)&&Cu(t,n,e[n]);return t};const Za=new Map;let Ka="Alibaba PuHuiTi";function Qa(t){const e=Za.get(Dn(t));return e||null}function Ja(){return Array.from(Za.values())}function t5(t){Ka=dr(t)}function Mu(t){const e=J_({},t);return Za.set(e.fontFamily,e),e.fontFamily=dr(e.fontFamily),e}function Su(t){const e=Qa(t);if(!e)return[];const{baseUrl:n,fontWeight:r}=e;return Object.values(r).filter(Boolean).map(i=>Ua(n,i))}function e5(t,e){const n=Qa(t);if(!n)return null;const r=iu(e),i=n.fontWeight[r];return i?Ua(n.baseUrl,i.replace(/\/result.css$/,"")):null}const tl=new WeakMap;function n5(t,e){const n=t.ownerDocument,r=(n==null?void 0:n.head)||document.head;if(!r)return;tl.has(r)||tl.set(r,new Map);const i=tl.get(r),o=[];Su(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 r5(t){Ja().forEach(n=>n5(t,n.fontFamily))}const Fr="https://assets.antv.antgroup.com",pr=t=>`${t}/result.css`;[{fontFamily:"Alibaba PuHuiTi",name:"阿里巴巴普惠体",baseUrl:Fr,fontWeight:{regular:pr("AlibabaPuHuiTi-Regular"),bold:pr("AlibabaPuHuiTi-Bold")}},{fontFamily:"Source Han Sans",name:"黑体",baseUrl:Fr,fontWeight:{regular:pr("SourceHanSansCN-Regular")}},{fontFamily:"Source Han Serif",name:"宋体",baseUrl:Fr,fontWeight:{regular:pr("SourceHanSerifCN-Regular")}},{fontFamily:"LXGW WenKai",name:"楷体",baseUrl:Fr,fontWeight:{regular:pr("LXGWWenKai-Regular")}},{fontFamily:"851tegakizatsu",name:"手写体",baseUrl:Fr,fontWeight:{regular:pr("851tegakizatsu-Regular")}}].forEach(Mu);const Eu=new Map;function el(t,e){Eu.set(t,e)}function Iu(t){return Eu.get(t)}el("antv",["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#70CAF8"]),el("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 no=(t=[],e,n)=>{var r;const i=typeof t=="string"?Iu(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 i5(t,e){var n;const r=t.parentElement;r&&(r.style.backgroundColor=e||"none");const i=fr(t,Ct.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=ft("rect",{x:o,y:s,width:a,height:l,fill:e,"data-element-type":Ct.Background});t.prepend(c)}}function Vr(t,e){return Object.entries(e).reduce((r,[i,o])=>{if(typeof o=="function"){const s=o(t.getAttribute(i),t);s!=null&&(r[i]=s)}else Object.assign(r,{[i]:o});return r},{})}function Tu(t){return t.replace(/#|%|\.| |\/|\(|\)/g,"").replace(/,/g,"-")}function o5(t,e){e&&Object.keys(e).length>0&&Da(t,n=>{const r=Vr(n,e);Bt(n,r)})}const Au="btn-add-icon",ku="btn-remove-icon";function s5(t,e){Bt(e,{display:"none"});const n=e.querySelectorAll('[id^="btn-add-"]'),r=e.querySelectorAll('[id^="btn-remove-"]');l5(t),n.forEach(c5),r.forEach(h5)}const a5="btn-icon-defs";function l5(t){const e=ft("defs");Br(e,a5);const n=ur(`<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 y4(t){return t.startsWith("<svg")||t.startsWith("<symbol")}function Cr(t){if(!t||!y4(t))return null;const e=t.startsWith("<svg")?t.replace(/<svg/,"<symbol").replace(/svg>/,"symbol>"):t;return Pr(e)}var v4=(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 b4(t){try{return!!new URL(t)}catch(e){return!1}}function x4(t,e){return!!(t.toLowerCase().includes("image/svg")||!t&&e==="svg")}function Ru(t,e){return v4(this,null,function*(){if(!t||!b4(t))return null;const n=yield fetch(t);if(!n.ok)throw new Error("Failed to load resource");const r=n.headers.get("Content-Type")||"";if(x4(r,e)){const s=yield n.text();return Cr(s)}const i=yield n.blob(),o=yield w4(i);return ei(o)})}function w4(t){return new Promise((e,n)=>{const r=new FileReader;r.onloadend=()=>{e(r.result)},r.onerror=n,r.readAsDataURL(t)})}var Hu=(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())});const _4=t=>Hu(null,null,function*(){var e;try{const n=new URLSearchParams({text:t,topK:"1"}),r=`${Cv}?${n.toString()}`,i=yield fetch(r);if(!i.ok)return null;const o=yield i.json();return!(o!=null&&o.status)||!Array.isArray((e=o.data)==null?void 0:e.data)?null:o.data.data[0]||null}catch(n){return console.error(`Failed to query icon for "${t}":`,n),null}});function $4(t){return t.startsWith("data:")}function P4(t){const e=t.trim();return e.startsWith("<svg")||e.startsWith("<symbol")}function O4(t,e){return Hu(this,null,function*(){var n;if(!t)return null;const r=yield _4(t);if(!r)return null;if(P4(r))return Cr(r);if($4(r)){const i=((n=r.match(/^data:([^;]+)/))==null?void 0:n[1])||"",o=r.includes(";base64,");if(i==="image/svg+xml"&&!o){const s=r.indexOf(","),a=s>=0?r.slice(s+1):r;return Cr(a)}return ei(r)}return Ru(r,e)})}let Du=null;function C4(t){Du=t}function M4(){return Du}function S4(t){if(!t.startsWith("data:"))return null;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],s=i.includes("base64");return o==="image/svg+xml"&&!s?{source:"inline",format:"svg",encoding:"raw",data:r.startsWith("%3C")?decodeURIComponent(r):r}:o.startsWith("image/")?{source:"inline",format:o==="image/svg+xml"?"svg":"image",encoding:s?"base64":"data-uri",data:t}:null}const E4=new Set(["svg","png","jpg","jpeg","webp","gif"]);function I4(t){const e=t.trim();return e.startsWith("<svg")||e.startsWith("<symbol")}function T4(t){const e=t.toLowerCase();if(e.endsWith(".svg")||e.includes(".svg?"))return"svg";if(e.endsWith(".png")||e.endsWith(".jpg")||e.endsWith(".jpeg")||e.endsWith(".webp")||e.endsWith(".gif"))return"image"}function A4(t){var e;if(!t.startsWith("ref:"))return null;const n=t.slice(4),[r,...i]=n.split(":");if(!r||i.length===0)return null;let o;i.length>1&&E4.has(i[0].toLowerCase())&&(o=(e=i.shift())==null?void 0:e.toLowerCase());const s=i.join(":");if(!s)return null;const a=r==="url"?"remote":r;return a==="remote"?{source:"remote",format:o||T4(s)||void 0,data:s}:a==="search"?{source:"search",format:o||"svg",data:s}:a==="svg"?{source:"inline",format:"svg",data:s,encoding:"raw"}:{source:"custom",data:t,format:o}}function yo(t){if(!t)return null;if(typeof t!="string"){if(t.source)return t;const r=t;return r.type==="image"?{source:"inline",format:"image",data:r.data}:r.type==="svg"?{source:"inline",format:"svg",encoding:"raw",data:r.data}:r.type==="remote"?{source:"remote",format:r.format,data:r.data}:r.type==="search"?{source:"search",format:r.format||"svg",data:r.data}:r.type==="custom"?{source:"custom",data:r.data}:null}const e=S4(t);if(e)return e;const n=A4(t);return n||(I4(t)?{source:"inline",format:"svg",encoding:"raw",data:t}:{source:"custom",data:t})}function cl(t){const e=typeof t=="string"?yo(t):t;return e?"rsc-"+Lu(JSON.stringify(e)):null}function Nu(t){const e=cl(t);return e?`#${e}`:null}var ju=(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 k4(t,e){return ju(this,null,function*(){const n=yo(e);if(!n)return null;n.scene||(n.scene=t);const{source:r,data:i,format:o,encoding:s}=n;if(r==="inline"){const a=i.startsWith("data:");return o==="svg"&&s==="raw"?Cr(i):o==="svg"&&a?yield ei(i):a||o==="image"?yield ei(i):Cr(i)}else{if(r==="remote")return yield Ru(i,o);if(r==="search")return yield O4(i,o);{const a=M4();if(a)return yield a(n)}}return null})}const Fu=new Map,hl=new WeakMap;function Bu(t,e,n){return ju(this,null,function*(){if(!t)return null;const r=yo(n);if(!r)return null;const i=cl(r),o=Fu.has(i)?Fu.get(i)||null:yield k4(e,r);if(!o)return null;hl.has(t)||hl.set(t,new Map);const s=hl.get(t);if(s.has(i))return i;const a=mo(t);return o.id=i,a.appendChild(o),s.set(i,o),i})}var z4=Object.defineProperty,L4=Object.defineProperties,R4=Object.getOwnPropertyDescriptors,Wu=Object.getOwnPropertySymbols,H4=Object.prototype.hasOwnProperty,D4=Object.prototype.propertyIsEnumerable,Vu=(t,e,n)=>e in t?z4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,N4=(t,e)=>{for(var n in e||(e={}))H4.call(e,n)&&Vu(t,n,e[n]);if(Wu)for(var n of Wu(e))D4.call(e,n)&&Vu(t,n,e[n]);return t},j4=(t,e)=>L4(t,R4(e));const F4=new WeakMap;function B4(t,e={}){const n=wt("use",j4(N4({},e),{href:Nu(t)}));return Yu(n),F4.set(n,t),n}function Yu(t){const{stroke:e,fill:n}=ke(t,["fill","stroke"]);t.style.color=n||e||"currentColor"}function vo(t){return t.tagName==="use"?t:t.querySelector("use")}function dl(t){const e=vo(t);return e?ke(e,["width","height","x","y","width","height","fill","fill-opacity","stroke","opacity"]):{}}function W4(t,e,n){const r=vo(t);r&&(n&&Yt(r,n),Yu(r))}const V4=",",Y4=(t,e=V4)=>t.split(e).map(n=>parseInt(n,10)),Xu=t=>Y4(t);function ul(...t){return t.map(e=>e.replace(/^\/+|\/+$/g,"")).filter(e=>e.trim().length>0).join("/")}const bo=new Map;let X4="sans-serif";const G4={fontFamily:"sans-serif",fontWeight:400,fontStyle:"normal",unitsPerEm:2048,metrics:{ascender:2189,descender:-555,lineGap:0},glyphs:{'"':727,"%":1821,"'":391,"(":682,")":682,"*":797,"+":1196,"-":682,"<":1196,"=":1196,">":1196,"@":2079,C:1479,D:1479,F:1251,G:1593,H:1479,J:1024,M:1706,N:1479,O:1593,Q:1593,R:1479,T:1251,U:1479,W:1933,Z:1251,"^":961,_:1024,"`":682,c:1024,i:455,j:455,k:1024,l:455,m:1706,r:682,s:1024,v:1024,w:1479,x:1024,y:1024,z:1024,"{":684,"|":532,"}":684,"~":1196},glyphsByWidth:{569:" !,./:;I[\\]ft",1139:"#$0123456789?Labdeghnopqu",1366:"&ABEKPSVXY"},defaultWidth:1139};function Gu(t){if(t===void 0||t==="normal")return"400";if(t==="bold")return"700";const e={thin:"100",hairline:"100","extra-light":"200","ultra-light":"200",light:"300",regular:"400",normal:"400",medium:"500","semi-bold":"600",semibold:"600","demi-bold":"600",demibold:"600","extra-bold":"800",extrabold:"800","ultra-bold":"800",ultrabold:"800",black:"900",heavy:"900","extra-black":"950",extrablack:"950","ultra-black":"950",ultrablack:"950",bolder:"900",lighter:"300"};if(typeof t=="string"){const n=t.toLowerCase();return e[n]||t}return String(t)}function qu(t){return t||"normal"}function q4(t){const e=t.fontFamily,n=Gu(t.fontWeight),r=qu(t.fontStyle);if(t.glyphsByWidth){const s=ye({},t.glyphs||{});for(const[a,l]of Object.entries(t.glyphsByWidth))if(typeof l=="string"){const c=Number(a);for(const h of l)s[h]=c}else s[a]=l;t=Ae(ye({},t),{glyphs:s,glyphsByWidth:void 0})}bo.has(e)||bo.set(e,new Map);const i=bo.get(e);i.has(n)||i.set(n,new Map),i.get(n).set(r,t)}function U4(t,e,n){const r=t||X4,i=Gu(e),o=qu(n),s=bo.get(r);if(!s)return console.warn(`Font family "${r}" not registered, using fallback font data`),G4;let a=s.get(i);if(a){let c=a.get(o);if(c||o!=="normal"&&(c=a.get("normal"),c))return c;const h=a.values().next().value;if(h)return h}if(a=s.get("400"),a){let c=a.get(o);if(c||o!=="normal"&&(c=a.get("normal"),c))return c;const h=a.values().next().value;if(h)return h}const l=s.values().next().value;if(l){const c=l.values().next().value;if(c)return c}throw new Error(`No font data found for family "${r}" with weight "${i}" and style "${o}"`)}function Z4(t,e){if(!e||e==="none")return t;switch(e){case"uppercase":return t.toUpperCase();case"lowercase":return t.toLowerCase();case"capitalize":return t.split(" ").map(n=>n.length===0?n:n[0].toUpperCase()+n.slice(1).toLowerCase()).join(" ");default:return t}}function Uu(t){if(t===void 0)return 14;if(typeof t=="number")return t;const e=parseFloat(t);return isNaN(e)?16:e}function K4(t,e){const n=Uu(t.fontSize),r=t.lineHeight;if(r===void 0){const{ascender:i,descender:o,lineGap:s=0}=e.metrics;return(i-o+s)/e.unitsPerEm*n}return typeof r=="number"?r*n:r.type==="pixel"?r.value:r.type==="percent"?r.value/100*n:n}function Q4(t,e={}){var f;const n=Z4(t,e.textTransform),r=U4(e.fontFamily,e.fontWeight,e.fontStyle),i=Uu(e.fontSize),o=e.letterSpacing||0,s=e.wordSpacing||0;let a=0;const l=Array.from(n);for(let p=0;p<l.length;p++){const g=l[p],y=p<l.length-1?l[p+1]:void 0;let m=(f=r.glyphs)==null?void 0:f[g];m===void 0&&(m=r.defaultWidth||r.unitsPerEm/2);const b=m/r.unitsPerEm*i;if(a+=b,y&&r.kerning){const v=g+y,x=r.kerning[v];x!==void 0&&(a+=x/r.unitsPerEm*i)}p<l.length-1&&(a+=o),g===" "&&(a+=s)}const c=K4(e,r),{ascender:h}=r.metrics,u=h/r.unitsPerEm*i;return{width:a,height:c,baseline:u}}const J4={fontFamily:"Alibaba PuHuiTi",fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:1060,descender:-340,lineGap:0},glyphs:{" ":257,"!":361,'"':405,"#":600,"%":821,"&":640,"'":253,"(":359,")":359,"*":430,",":302,"-":440,".":302,"/":500,":":378,";":378,"?":431,"@":860,B:620,C:599,D:699,F:527,G:685,H:708,J:271,K:614,L:507,M:830,N:737,P:597,R:614,S:566,T:528,V:617,W:898,X:624,Y:594,Z:626,"[":294,"\\":510,"]":294,_:500,"`":346,b:635,c:497,d:635,f:349,g:636,k:518,l:286,m:921,p:635,q:636,r:379,s:479,t:337,v:526,w:828,x:516,y:527,z:506,"{":299,"|":183,"}":299," ":257,"¡":357,"¦":183,"§":479,"¨":346,"©":806,ª:483,"«":511,"":440,"®":404,"¯":346,"°":363,"´":346,"¶":593,"·":357,"¸":346,º:445,"»":511,"¼":902,"½":914,"¾":902,"¿":431,Æ:889,Ç:599,Ð:719,Ñ:737,Ý:594,Þ:597,ß:610,æ:926,ç:497,ý:527,þ:635,ÿ:527,Ć:599,ć:497,Ĉ:599,ĉ:497,Ċ:599,ċ:497,Č:599,č:497,Ď:699,ď:640,Đ:719,đ:635,Ĝ:685,ĝ:636,Ğ:685,ğ:636,Ġ:685,ġ:636,Ģ:685,ģ:636,Ĥ:708,Ħ:708,IJ:545,ij:536,Ĵ:271,Ķ:614,ķ:518,ĸ:518,Ĺ:507,ĺ:286,Ļ:507,ļ:286,Ľ:507,ľ:290,Ŀ:507,ŀ:291,Ł:507,ł:286,Ń:737,Ņ:737,Ň:737,ʼn:669,Ŋ:737,Œ:987,œ:917,Ŕ:614,ŕ:379,Ŗ:614,ŗ:379,Ř:614,ř:379,Ś:566,ś:479,Ŝ:566,ŝ:479,Ş:566,ş:479,Š:566,š:479,Ţ:528,ţ:337,Ť:528,ť:340,Ŧ:528,ŧ:337,Ŵ:898,ŵ:828,Ŷ:594,ŷ:527,Ÿ:594,Ź:626,ź:506,Ż:626,ż:506,Ž:626,ž:506,ſ:310,Ə:719,ǎ:608,ǐ:265,ǒ:614,ǔ:609,ǖ:609,ǘ:609,ǚ:609,ǜ:609,Ǽ:889,ǽ:926,Ș:566,ș:479,Ț:528,ț:337,"ʹ":255,"͵":255,";":378,"΄":346,"΅":346,Ά:670,"·":357,Έ:628,Ή:779,Ί:346,Ό:765,Ύ:726,Ώ:765,ΐ:312,Β:620,Γ:507,Ζ:626,Η:708,Κ:614,Λ:617,Μ:830,Ν:737,Π:708,Ρ:597,Σ:596,Τ:528,Υ:594,Φ:831,Χ:624,Ψ:804,Ϋ:594,έ:509,ή:643,ί:312,ΰ:593,β:610,γ:526,ε:509,ζ:465,η:643,θ:638,ι:312,κ:518,λ:514,ν:526,ξ:465,π:616,ρ:619,ς:497,σ:639,τ:437,υ:593,φ:774,χ:509,ψ:745,ω:782,ϊ:312,ϋ:593,ύ:593,ώ:782,"‐":440,"‑":440,"–":495,"—":684,"―":684,"‗":500,"‘":270,"’":270,"‚":270,"‛":270,"“":784,"”":784,"„":468,"†":500,"‡":500,"•":308,"…":1085,"‰":1174,"′":256,"″":472,"‴":689,"‵":256,"‶":472,"‷":689,"‹":312,"›":312,"‼":589,"‽":433,"‾":500,"⁄":120,"⁺":407,"⁻":407,"⁼":407,"⁽":225,"⁾":225,ⁿ:486,"₊":407,"₋":407,"₌":407,"₍":225,"₎":225,"ₙ":486,"₡":599,"₣":527,"₤":600,"₥":921,"₦":625,"₨":1093,"₩":769,"₪":754,"₫":635,"₭":614,"₮":528,"₯":1288,"₰":950,"₲":685,"₴":576,"₵":599,"₶":576,"₷":700,"₸":528,"₻":750,"₼":683,"₾":577,"₿":620,"℃":915,"℅":825,"℉":868,ℓ:385,"№":1176,"℗":806,"℡":1022,"™":903,"℮":903,"⅛":930,"⅜":931,"⅝":931,"⅞":871,"Ⅶ":1166,"∂":587,"∈":663,"∏":708,"∑":596,"√":604,"∞":679,"∧":617,"∫":531,"∮":654,"≈":600,"≒":662,"◊":600," ":0,"〞":472},glyphsByWidth:{268:"ijìíîïĩīĭįıĵȷ",274:"IÌÍÎÏĨĪĬĮİΙΪ",406:"²³¹⁰⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉",552:"+<=>^~¬±×÷−∕∙≠≤≥≦≧≮≯",556:"EÈÉÊËĒĔĖĘĚΕΞ",575:"$0123456789¢£¤¥ƒ₢₧€₱₹₺₽",578:"eèéêëēĕėęě",612:"aàáâãäåāăąǻ",613:"uµùúûüũūŭůűųάαμ∨",618:"hnoðñòóôõöøĥħńņňŋōŏőǿδοό",667:"AÀÁÂÃÄÅĀĂĄǺΑΔ₳∆",701:"UÙÚÛÜŨŪŬŮŰŲ",743:"OQÒÓÔÕÖØŌŎŐǾΘΟΩΩ",1e3:"─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▓▔▕■□▲△▼▽◆◇○◎●◢◣◤◥★☆☉♀♂〾"},defaultWidth:984,kerning:{'""':-56,"\"'":-57,'",':-179,'".':-179,"'\"":-56,"''":-57,"',":-179,"'.":-179,"(j":60,',"':-160,",'":-160,",1":-140,",7":-41,",9":-39,'."':-160,".'":-160,".1":-140,".7":-41,".9":-39,"//":-120,"1,":-99,"1.":-99,"1:":-99,"1;":-99,"7,":-160,"7.":-160,"7:":-99,"7;":-99,":1":-79,":7":-59,";1":-79,";7":-59,'A"':-100,"A'":-100,AC:-20,AG:-20,AO:-20,AQ:-20,AT:-80,AU:-10,AV:-70,AW:-39,AY:-81,Af:-20,Al:-10,At:-20,Av:-20,Ay:-20,BC:-10,BG:-10,BO:-10,BQ:-10,BT:-40,BV:-20,BX:-20,BY:-21,"D,":-59,"D.":-59,DA:-20,DT:-36,DV:-30,DW:-19,DX:-20,DY:-40,DZ:-20,Da:-39,Ej:19,"F,":-159,"F.":-159,FA:-40,Fa:-59,Fh:1,Fk:1,GV:-11,GY:-21,JJ:7,KA:-19,KC:-20,KG:-20,KO:-20,KQ:-20,KT:-19,KU:-39,KV:-39,KW:-39,KY:-40,Kc:-39,Kd:-39,Ke:-39,Kg:-39,Kl:-39,Ko:-39,Kq:-39,Ks:-19,Kt:-10,Ku:-40,Kv:-60,Kw:-40,Ky:-60,'L"':-99,"L'":-99,LA:20,LC:-59,LG:-59,LO:-59,LQ:-59,LT:-79,LU:-19,LV:-79,LW:-39,LY:-100,Lv:-41,Lw:-21,Ly:-41,"O,":-59,"O.":-59,OA:-20,OT:-36,OV:-30,OW:-19,OX:-20,OY:-40,OZ:-20,Oa:-39,"P,":-199,"P.":-199,PA:-60,PT:-29,PV:-10,PW:-10,PX:-50,PY:-20,PZ:-39,Pa:-60,"Q,":-59,"Q.":-59,QA:-20,QJ:7,QT:-36,QV:-30,QW:-19,QX:-20,QY:-40,QZ:-20,Qa:-39,RC:-15,RG:-15,RO:-15,RQ:-15,RT:-40,RU:-10,RV:-21,RW:-10,RX:-29,RY:-41,Rc:-20,Rd:-20,Re:-20,Rg:-20,Ro:-20,Rq:-20,Rt:-20,Ru:-10,Rv:-10,Rx:20,Ry:-10,"S,":-20,"S.":-20,SS:-1,ST:-1,SV:-21,SW:-10,SY:-21,St:-1,Sv:-20,Sw:-10,Sx:-1,Sy:-20,'T"':2,"T'":2,"T,":-154,"T.":-154,TA:-80,TC:-20,TG:-20,TO:-20,TQ:-20,TS:-1,Ta:-80,Tc:-59,Td:-59,Te:-59,Tg:-59,Ti:-20,Tj:-19,Tm:-59,Tn:-59,To:-59,Tp:-58,Tq:-59,Tr:-59,Ts:-60,Tt:20,Tu:-79,Tv:-39,Tw:-19,Tx:-39,Ty:-39,Tz:-59,UA:-10,UX:-19,Ux:-1,"V,":-140,"V.":-140,"V:":-41,"V;":-41,VA:-70,VC:-30,VG:-30,VO:-30,VQ:-30,VS:-10,Va:-41,Vc:-21,Vd:-21,Ve:-21,Vg:-21,Vh:1,Vk:1,Vo:-21,Vq:-21,Vs:-21,Vv:-1,Vy:-1,"W,":-79,"W.":-79,"W:":-39,"W;":-39,WA:-40,WC:-19,WG:-19,WO:-19,WQ:-19,Wa:-40,Wc:-20,Wd:-20,We:-20,Wg:-20,Wo:-20,Wq:-20,Ws:-20,XA:-19,XC:-20,XG:-20,XO:-20,XQ:-20,XT:-19,XU:-39,XV:-39,XW:-39,XY:-40,Xc:-39,Xd:-39,Xe:-39,Xg:-39,Xl:-39,Xo:-39,Xq:-39,Xs:-19,Xt:-10,Xu:-40,Xv:-60,Xw:-40,Xy:-60,'Y"':1,"Y'":1,"Y,":-141,"Y.":-141,"Y:":-60,"Y;":-60,YA:-81,YC:-40,YG:-40,YO:-40,YQ:-40,YS:-1,Ya:-101,Yc:-60,Yd:-60,Ye:-60,Yf:-1,Yg:-60,Yh:1,Yi:-19,Yk:1,Ym:-41,Yn:-41,Yo:-60,Yp:-40,Yq:-60,Yr:-41,Ys:-61,Yt:-1,Yu:-40,Yv:-40,Yx:-41,Yy:-40,Yz:-41,ZC:-20,ZG:-20,ZO:-20,ZQ:-20,"[j":80,aT:-60,aV:-21,aY:-61,av:-10,aw:-10,ay:-10,"b,":-40,"b.":-40,bT:-59,bV:-21,bW:-20,bX:-39,bY:-60,bv:-10,bx:-20,by:-10,"e,":-20,"e.":-20,eT:-59,eY:-40,ej:20,'f"':3,"f'":3,"f)":1,"f*":61,"f,":-1,"f.":-1,"f?":40,fT:40,fV:21,fW:21,fX:21,fY:1,"f]":21,fa:-29,fc:-19,fd:-19,fe:-19,ff:1,fg:-39,fh:-19,fi:-19,fj:-19,fk:-19,fl:-19,fo:-19,fq:-19,fs:-19,ft:1,"f}":3,hT:-58,hY:-39,hv:-10,hy:-10,'i"':2,"i'":2,"i)":2,"i?":3,iT:-20,"i]":41,"i}":22,jT:-20,kT:-39,kU:-1,kW:-20,ka:-20,kc:-20,kd:-20,ke:-20,kg:-20,kl:-20,ko:-20,kq:-20,ku:-10,lf:-20,lv:-19,lw:-10,ly:-19,mT:-58,mY:-39,mv:-10,my:-10,nT:-58,nY:-39,nv:-10,ny:-10,"o,":-40,"o.":-40,oT:-59,oV:-21,oW:-20,oX:-39,oY:-60,ov:-10,ox:-20,oy:-10,"p,":-40,"p.":-40,pT:-59,pV:-21,pW:-20,pX:-39,pY:-60,pv:-10,px:-20,py:-10,qT:-19,qY:-19,qj:20,'r"':2,"r'":2,"r,":-90,"r.":-90,ra:-49,rc:-19,rd:-19,re:-19,rf:1,ro:-19,rq:-19,rt:20,sT:-59,sV:-21,sW:-20,sX:-19,sY:-60,sv:-19,sx:-10,sy:-19,tf:1,uT:-40,uY:-19,"v,":-90,"v.":-90,vT:-39,vX:-39,va:-35,vc:-10,vd:-10,ve:-10,vo:-10,vq:-10,"w,":-50,"w.":-50,wT:-19,wX:-39,wa:-30,xT:-39,xU:-1,xW:-20,xa:-20,xc:-20,xd:-20,xe:-20,xg:-20,xl:-20,xo:-20,xq:-20,xu:-10,"y,":-90,"y.":-90,yT:-39,yX:-39,ya:-35,yc:-10,yd:-10,ye:-10,yo:-10,yq:-10,zT:-59,"{h":2,"{j":79,"{k":2}};var t5=Object.defineProperty,Zu=Object.getOwnPropertySymbols,e5=Object.prototype.hasOwnProperty,n5=Object.prototype.propertyIsEnumerable,Ku=(t,e,n)=>e in t?t5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,r5=(t,e)=>{for(var n in e||(e={}))e5.call(e,n)&&Ku(t,n,e[n]);if(Zu)for(var n of Zu(e))n5.call(e,n)&&Ku(t,n,e[n]);return t};const fl=new Map;let pl="Alibaba PuHuiTi";function gl(t){const e=fl.get(Gn(t));return e||null}function ml(){return Array.from(fl.values())}function i5(t){pl=$r(t)}function Qu(t){const e=r5({},t);return fl.set(e.fontFamily,e),e.fontFamily=$r(e.fontFamily),e}function Ju(t){const e=gl(t);if(!e)return[];const{baseUrl:n,fontWeight:r}=e;return Object.values(r).filter(Boolean).map(i=>ul(n,i))}function o5(t,e){const n=gl(t);if(!n)return null;const r=Eu(e),i=n.fontWeight[r];return i?ul(n.baseUrl,i.replace(/\/result.css$/,"")):null}const yl=new WeakMap;function s5(t,e){const n=t.ownerDocument,r=(n==null?void 0:n.head)||document.head;if(!r)return;yl.has(r)||yl.set(r,new Map);const i=yl.get(r),o=[];Ju(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 a5(t){ml().forEach(n=>s5(t,n.fontFamily))}const ni="https://assets.antv.antgroup.com",Mr=t=>`${t}/result.css`;[{fontFamily:"Alibaba PuHuiTi",name:"阿里巴巴普惠体",baseUrl:ni,fontWeight:{regular:Mr("AlibabaPuHuiTi-Regular"),bold:Mr("AlibabaPuHuiTi-Bold")}},{fontFamily:"Source Han Sans",name:"黑体",baseUrl:ni,fontWeight:{regular:Mr("SourceHanSansCN-Regular")}},{fontFamily:"Source Han Serif",name:"宋体",baseUrl:ni,fontWeight:{regular:Mr("SourceHanSerifCN-Regular")}},{fontFamily:"LXGW WenKai",name:"楷体",baseUrl:ni,fontWeight:{regular:Mr("LXGWWenKai-Regular")}},{fontFamily:"851tegakizatsu",name:"手写体",baseUrl:ni,fontWeight:{regular:Mr("851tegakizatsu-Regular")}}].forEach(Qu);const tf=new Map;function vl(t,e){tf.set(t,e)}function ef(t){return tf.get(t)}vl("antv",["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#70CAF8"]),vl("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 xo=(t=[],e,n)=>{var r;const i=typeof t=="string"?ef(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 l5(t,e){var n;const r=t.parentElement;r&&(r.style.backgroundColor=e||"none");const i=Or(t,kt.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=wt("rect",{x:o,y:s,width:a,height:l,fill:e,"data-element-type":kt.Background});t.prepend(c)}}function ri(t,e){return Object.entries(e).reduce((r,[i,o])=>{if(typeof o=="function"){const s=o(t.getAttribute(i),t);s!=null&&(r[i]=s)}else Object.assign(r,{[i]:o});return r},{})}function nf(t){return t.replace(/#|%|\.| |\/|\(|\)/g,"").replace(/,/g,"-")}function c5(t,e){e&&Object.keys(e).length>0&&rl(t,n=>{const r=ri(n,e);Yt(n,r)})}const rf="btn-add-icon",of="btn-remove-icon";function h5(t,e){Yt(e,{display:"none"});const n=e.querySelectorAll('[id^="btn-add-"]'),r=e.querySelectorAll('[id^="btn-remove-"]');u5(t),n.forEach(f5),r.forEach(p5)}const d5="btn-icon-defs";function u5(t){const e=wt("defs");ti(e,d5);const n=Pr(`<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",rf),e.appendChild(n));const r=Pr(`<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",ku),e.appendChild(r)),t.prepend(e)}function zu(t,e){const{id:n,x:r=0,y:i=0,width:o=0,height:s=0}=Se(t,["id","x","y","width","height"]),a=ft("g",{id:n,class:"btn-group",transform:`translate(${r}, ${i})`}),l=t.getAttribute("data-items");l&&a.setAttribute("data-items",l);const c=Math.max(+o,+s)/2,h=ft("circle",{cx:c,cy:c,r:c,fill:"#fff",stroke:"transparent"});a.appendChild(h);const u=ft("use",{href:`#${e}`,width:o,height:s});a.appendChild(u),a.style.cursor="pointer",t.replaceWith(a)}function c5(t){zu(t,Au)}function h5(t){zu(t,ku)}var d5=Object.defineProperty,Lu=Object.getOwnPropertySymbols,u5=Object.prototype.hasOwnProperty,f5=Object.prototype.propertyIsEnumerable,Hu=(t,e,n)=>e in t?d5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nl=(t,e)=>{for(var n in e||(e={}))u5.call(e,n)&&Hu(t,n,e[n]);if(Lu)for(var n of Lu(e))f5.call(e,n)&&Hu(t,n,e[n]);return t};function p5(t,e,n,r){var i;if(!n)return null;const{themeConfig:o}=r,s=nl({},(i=o.item)==null?void 0:i.icon),a=Vr(e,s);return g5(t,e,n,a)}function g5(t,e,n,r){return yu(t,n),D_(n,nl(nl({},Se(e,["id","x","y","width","height","fill","stroke","data-element-type","data-indexes"])),r))}var m5=Object.defineProperty,y5=Object.defineProperties,v5=Object.getOwnPropertyDescriptors,ro=Object.getOwnPropertySymbols,Ru=Object.prototype.hasOwnProperty,Du=Object.prototype.propertyIsEnumerable,Nu=(t,e,n)=>e in t?m5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,io=(t,e)=>{for(var n in e||(e={}))Ru.call(e,n)&&Nu(t,n,e[n]);if(ro)for(var n of ro(e))Du.call(e,n)&&Nu(t,n,e[n]);return t},ju=(t,e)=>y5(t,v5(e)),x5=(t,e)=>{var n={};for(var r in t)Ru.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ro)for(var r of ro(t))e.indexOf(r)<0&&Du.call(t,r)&&(n[r]=t[r]);return n};function Bu(t,e,n){if(!n)return null;const r=Ya(n);if(!r)return null;const i=Xa(r),o=b5(t,e,i);yu(t,r);const{data:s,color:a}=r;return _5(i,io(ju(io({},w5(e)),{"clip-path":`url(#${o})`}),a?{color:a}:{}),s)}function b5(t,e,n){const r=`clip-${n}-${J9()}`;if(t.querySelector(`#${r}`))return r;const i=Qi(t),o=ft("clipPath",{id:r}),s=e.cloneNode();return X4(s,["id","data-illus-bounds","data-element-type"]),o.appendChild(s),i.appendChild(o),r}function _5(t,e,n){const r=e,{"clip-path":i}=r,o=x5(r,["clip-path"]),{x:s="0",y:a="0",width:l="0",height:c="0"}=o,h=ft("rect",{id:`${t}-volume`,"data-element-type":Ct.IllusVolume,x:s,y:a,width:l,height:c,fill:"transparent"}),u=ft("g",{"data-element-type":Ct.IllusGroup,"clip-path":i,id:`${t}-group`});u.appendChild(h);const f=ft("use",ju(io({id:t,fill:"lightgray"},o),{href:pu(n),"data-element-type":Ct.Illus}));return u.appendChild(f),u}function w5(t){const e=t.getAttribute("data-illus-bounds");if(!e)return io({x:"0",y:"0",width:"0",height:"0"},Se(t,["x","y","width","height"]));const[n,r,i,o]=e.split(" ");return{x:n,y:r,width:i,height:o}}function oo(t){"@babel/helpers - typeof";return oo=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},oo(t)}var $5=/^\s+/,P5=/\s+$/;function it(t,e){if(t=t||"",e=e||{},t instanceof it)return t;if(!(this instanceof it))return new it(t,e);var n=O5(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}it.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=Gu(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Vu(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Vu(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=Fu(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Fu(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 Wu(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return E5(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(Gt(this._r,255)*100)+"%",g:Math.round(Gt(this._g,255)*100)+"%",b:Math.round(Gt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Gt(this._r,255)*100)+"%, "+Math.round(Gt(this._g,255)*100)+"%, "+Math.round(Gt(this._b,255)*100)+"%)":"rgba("+Math.round(Gt(this._r,255)*100)+"%, "+Math.round(Gt(this._g,255)*100)+"%, "+Math.round(Gt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:B5[Wu(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var n="#"+Yu(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(e){var o=it(e);r="#"+Yu(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 it(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(k5,arguments)},brighten:function(){return this._applyModification(z5,arguments)},darken:function(){return this._applyModification(L5,arguments)},desaturate:function(){return this._applyModification(I5,arguments)},saturate:function(){return this._applyModification(T5,arguments)},greyscale:function(){return this._applyModification(A5,arguments)},spin:function(){return this._applyModification(H5,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(N5,arguments)},complement:function(){return this._applyCombination(R5,arguments)},monochromatic:function(){return this._applyCombination(j5,arguments)},splitcomplement:function(){return this._applyCombination(D5,arguments)},triad:function(){return this._applyCombination(Xu,[3])},tetrad:function(){return this._applyCombination(Xu,[4])}},it.fromRatio=function(t,e){if(oo(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(r==="a"?n[r]=t[r]:n[r]=Wr(t[r]));t=n}return it(t,e)};function O5(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=Y5(t)),oo(t)=="object"&&(ln(t.r)&&ln(t.g)&&ln(t.b)?(e=C5(t.r,t.g,t.b),s=!0,a=String(t.r).substr(-1)==="%"?"prgb":"rgb"):ln(t.h)&&ln(t.s)&&ln(t.v)?(r=Wr(t.s),i=Wr(t.v),e=S5(t.h,r,i),s=!0,a="hsv"):ln(t.h)&&ln(t.s)&&ln(t.l)&&(r=Wr(t.s),o=Wr(t.l),e=M5(t.h,r,o),s=!0,a="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=Gu(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 C5(t,e,n){return{r:Gt(t,255)*255,g:Gt(e,255)*255,b:Gt(n,255)*255}}function Fu(t,e,n){t=Gt(t,255),e=Gt(e,255),n=Gt(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 M5(t,e,n){var r,i,o;t=Gt(t,360),e=Gt(e,100),n=Gt(n,100);function s(c,h,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?c+(h-c)*6*u:u<1/2?h:u<2/3?c+(h-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 Vu(t,e,n){t=Gt(t,255),e=Gt(e,255),n=Gt(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 S5(t,e,n){t=Gt(t,360)*6,e=Gt(e,100),n=Gt(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],h=[a,n,n,s,o,o][l],u=[o,o,a,n,n,s][l];return{r:c*255,g:h*255,b:u*255}}function Wu(t,e,n,r){var i=[Le(Math.round(t).toString(16)),Le(Math.round(e).toString(16)),Le(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 E5(t,e,n,r,i){var o=[Le(Math.round(t).toString(16)),Le(Math.round(e).toString(16)),Le(Math.round(n).toString(16)),Le(qu(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 Yu(t,e,n,r){var i=[Le(qu(r)),Le(Math.round(t).toString(16)),Le(Math.round(e).toString(16)),Le(Math.round(n).toString(16))];return i.join("")}it.equals=function(t,e){return!t||!e?!1:it(t).toRgbString()==it(e).toRgbString()},it.random=function(){return it.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function I5(t,e){e=e===0?0:e||10;var n=it(t).toHsl();return n.s-=e/100,n.s=so(n.s),it(n)}function T5(t,e){e=e===0?0:e||10;var n=it(t).toHsl();return n.s+=e/100,n.s=so(n.s),it(n)}function A5(t){return it(t).desaturate(100)}function k5(t,e){e=e===0?0:e||10;var n=it(t).toHsl();return n.l+=e/100,n.l=so(n.l),it(n)}function z5(t,e){e=e===0?0:e||10;var n=it(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)))),it(n)}function L5(t,e){e=e===0?0:e||10;var n=it(t).toHsl();return n.l-=e/100,n.l=so(n.l),it(n)}function H5(t,e){var n=it(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,it(n)}function R5(t){var e=it(t).toHsl();return e.h=(e.h+180)%360,it(e)}function Xu(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=it(t).toHsl(),r=[it(t)],i=360/e,o=1;o<e;o++)r.push(it({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function D5(t){var e=it(t).toHsl(),n=e.h;return[it(t),it({h:(n+72)%360,s:e.s,l:e.l}),it({h:(n+216)%360,s:e.s,l:e.l})]}function N5(t,e,n){e=e||6,n=n||30;var r=it(t).toHsl(),i=360/n,o=[it(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(it(r));return o}function j5(t,e){e=e||6;for(var n=it(t).toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/e;e--;)s.push(it({h:r,s:i,v:o})),o=(o+a)%1;return s}it.mix=function(t,e,n){n=n===0?0:n||50;var r=it(t).toRgb(),i=it(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 it(s)},it.readability=function(t,e){var n=it(t),r=it(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},it.isReadable=function(t,e,n){var r=it.readability(t,e),i,o;switch(o=!1,i=X5(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},it.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=it.readability(t,e[c]),o>i&&(i=o,r=it(e[c]));return it.isReadable(t,r,{level:a,size:l})||!s?r:(n.includeFallbackColors=!1,it.mostReadable(t,["#fff","#000"],n))};var rl=it.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"},B5=it.hexNames=F5(rl);function F5(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function Gu(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Gt(t,e){V5(t)&&(t="100%");var n=W5(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 so(t){return Math.min(1,Math.max(0,t))}function Ee(t){return parseInt(t,16)}function V5(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function W5(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Le(t){return t.length==1?"0"+t:""+t}function Wr(t){return t<=1&&(t=t*100+"%"),t}function qu(t){return Math.round(parseFloat(t)*255).toString(16)}function Uu(t){return Ee(t)/255}var He=(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 ln(t){return!!He.CSS_UNIT.exec(t)}function Y5(t){t=t.replace($5,"").replace(P5,"").toLowerCase();var e=!1;if(rl[t])t=rl[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=He.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=He.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=He.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=He.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=He.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=He.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=He.hex8.exec(t))?{r:Ee(n[1]),g:Ee(n[2]),b:Ee(n[3]),a:Uu(n[4]),format:e?"name":"hex8"}:(n=He.hex6.exec(t))?{r:Ee(n[1]),g:Ee(n[2]),b:Ee(n[3]),format:e?"name":"hex"}:(n=He.hex4.exec(t))?{r:Ee(n[1]+""+n[1]),g:Ee(n[2]+""+n[2]),b:Ee(n[3]+""+n[3]),a:Uu(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=He.hex3.exec(t))?{r:Ee(n[1]+""+n[1]),g:Ee(n[2]+""+n[2]),b:Ee(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function X5(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}}var G5=Object.defineProperty,Zu=Object.getOwnPropertySymbols,q5=Object.prototype.hasOwnProperty,U5=Object.prototype.propertyIsEnumerable,Ku=(t,e,n)=>e in t?G5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Z5=(t,e)=>{for(var n in e||(e={}))q5.call(e,n)&&Ku(t,n,e[n]);if(Zu)for(var n of Zu(e))U5.call(e,n)&&Ku(t,n,e[n]);return t};function Qu(t,e,n,r){const i=t.getAttribute(r),o=K5(i,n),{type:s,colors:a=[]}=o,l=a.length-1,c=a.map((p,g)=>typeof p=="string"?ft("stop",{offset:`${g/l}`,"stop-color":p}):ft("stop",{offset:`${p.offset}`,"stop-color":p.color})),h=Q5(n);if(s==="linear-gradient"){const{angle:p=0}=o,[[g,y],[m,x]]=J5(p),v=ft("linearGradient",{id:h,x1:g,y1:y,x2:m,y2:x});c.forEach(b=>v.appendChild(b)),Ju(e,h,v)}else if(s==="radial-gradient"){const p=ft("radialGradient",{id:h});c.forEach(g=>p.appendChild(g)),Ju(e,h,p)}const u=t.getAttribute("fill"),f=t.getAttribute("stroke");kn(u)&&t.setAttribute("fill",`url(#${h})`),kn(f)&&t.setAttribute("stroke",`url(#${h})`)}function Ju(t,e,n){const r=Qi(t);n.setAttribute("id",e);const i=r.querySelector(`#${e}`);i?i.replaceWith(n):r.appendChild(n)}function K5(t,e){var n;if((n=e.colors)!=null&&n.length||!t)return e;const r=it(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 Q5(t){const{type:e,colors:n=[]}=t,r=Tu(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 tw=Object.freeze(Object.defineProperty({__proto__:null,diamond:({scale:t=.5,backgroundColor:e,foregroundColor:n})=>{const r=ft("pattern",{id:"pattern-diamond",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ft("rect",{width:"100%",height:"100%",fill:e}),o=ft("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=ft("pattern",{id:"pattern-dot",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ft("rect",{width:"100%",height:"100%",fill:e}),o=ft("circle",{cx:"5",cy:"5",r:"3",fill:n}),s=ft("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=ft("pattern",{id:"pattern-hex",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ft("rect",{width:"100%",height:"100%",fill:e}),o=ft("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=ft("pattern",{id:"pattern-line",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),s=ft("rect",{width:"100%",height:"100%",fill:e}),a=ft("line",{x1:"7",y1:"-3",x2:"23",y2:"13",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"}),l=ft("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=ft("pattern",{id:"pattern-mosaic",width:20,height:20,patternUnits:"userSpaceOnUse",patternTransform:`scale(${t})`}),l=ft("rect",{width:"100%",height:"100%",fill:e});a.appendChild(l);for(let c=0;c<4;c++)for(let h=0;h<4;h++)if((h+c)%2===0){const u=ft("rect",{x:h*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=ft("pattern",{id:"pattern-square",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ft("rect",{width:"100%",height:"100%",fill:e}),o=ft("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 ew=Object.defineProperty,ao=Object.getOwnPropertySymbols,tf=Object.prototype.hasOwnProperty,ef=Object.prototype.propertyIsEnumerable,nf=(t,e,n)=>e in t?ew(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,il=(t,e)=>{for(var n in e||(e={}))tf.call(e,n)&&nf(t,n,e[n]);if(ao)for(var n of ao(e))ef.call(e,n)&&nf(t,n,e[n]);return t},nw=(t,e)=>{var n={};for(var r in t)tf.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ao)for(var r of ao(t))e.indexOf(r)<0&&ef.call(t,r)&&(n[r]=t[r]);return n};const ol=new Map;function rf(t,e){ol.has(t)&&console.warn(`Pattern ${t} will be overwritten`),ol.set(t,e)}for(const[t,e]of Object.entries(tw))rf(t,e);function rw(t,e,n){const r=n.themeConfig.stylize;if(!r||r.type!=="pattern")return;const i=r,{pattern:o}=i,s=nw(i,["pattern"]),a=ol.get(o);if(!a)return console.warn(`Pattern ${o} not found`);const{fill:l}=Se(t,["fill","stroke"]),c=l,h=il({backgroundColor:c&&it(c).setAlpha(.5).toRgbString(),foregroundColor:c},s),u=ow(il(il({},r),h));iw(e,u,a(h)),kn(l)&&(t.setAttribute("fill",`url(#${u})`),!t.getAttribute("stroke")&&l&&t.setAttribute("stroke",l))}function iw(t,e,n){const r=Qi(t);n.setAttribute("id",e);const i=r.querySelector(`pattern#${e}`);i?i.replaceWith(n):r.appendChild(n)}function ow(t){const{pattern:e,foregroundColor:n="unset",backgroundColor:r="unset",scale:i="unset"}=t;return Tu(`pattern-${e}-${n}-${r}-${i}`)}function sl(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,h]=l;l[0]=(c-r)*s-(h-i)*a+r,l[1]=(c-r)*a+(h-i)*s+i}}}function sw(t,e){return t[0]===e[0]&&t[1]===e[1]}function aw(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)sl(c,a,i);const l=(function(c,h,u){const f=[];for(const v of c){const b=[...v];sw(b[0],b[b.length-1])||b.push([b[0][0],b[0][1]]),b.length>2&&f.push(b)}const p=[];h=Math.max(h,.1);const g=[];for(const v of f)for(let b=0;b<v.length-1;b++){const _=v[b],w=v[b+1];if(_[1]!==w[1]){const $=Math.min(_[1],w[1]);g.push({ymin:$,ymax:Math.max(_[1],w[1]),x:$===_[1]?_[0]:w[0],islope:(w[0]-_[0])/(w[1]-_[1])})}}if(g.sort(((v,b)=>v.ymin<b.ymin?-1:v.ymin>b.ymin?1:v.x<b.x?-1:v.x>b.x?1:v.ymax===b.ymax?0:(v.ymax-b.ymax)/Math.abs(v.ymax-b.ymax))),!g.length)return p;let y=[],m=g[0].ymin,x=0;for(;y.length||g.length;){if(g.length){let v=-1;for(let b=0;b<g.length&&!(g[b].ymin>m);b++)v=b;g.splice(0,v+1).forEach((b=>{y.push({s:m,edge:b})}))}if(y=y.filter((v=>!(v.edge.ymax<=m))),y.sort(((v,b)=>v.edge.x===b.edge.x?0:(v.edge.x-b.edge.x)/Math.abs(v.edge.x-b.edge.x))),(u!==1||x%h==0)&&y.length>1)for(let v=0;v<y.length;v+=2){const b=v+1;if(b>=y.length)break;const _=y[v].edge,w=y[b].edge;p.push([[Math.round(_.x),m],[Math.round(w.x),m]])}m+=u,y.forEach((v=>{v.edge.x=v.edge.x+u*v.edge.islope})),x++}return p})(s,o,r);if(i){for(const c of s)sl(c,a,-i);(function(c,h,u){const f=[];c.forEach((p=>f.push(...p))),sl(f,h,u)})(l,a,-i)}return l}function Yr(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),aw(t,i,r,o||1)}class al{constructor(e){this.helper=e}fillPolygons(e,n){return this._fillPolygons(e,n)}_fillPolygons(e,n){const r=Yr(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 lo(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))}let lw=class extends al{fillPolygons(e,n){let r=n.hachureGap;r<0&&(r=4*n.strokeWidth),r=Math.max(r,.1);const i=Yr(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,h]of i)lo([c,h])&&s.push([[c[0]-a,c[1]+l],[...h]],[[c[0]+a,c[1]-l],[...h]]);return{type:"fillSketch",ops:this.renderLines(s,n)}}},cw=class extends al{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}},hw=class{constructor(e){this.helper=e}fillPolygons(e,n){const r=Yr(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=lo(a),c=l/i,h=Math.ceil(c)-1,u=l-h*i,f=(a[0][0]+a[1][0])/2-i/4,p=Math.min(a[0][1],a[1][1]);for(let g=0;g<h;g++){const y=p+u+g*i,m=f-s+2*Math.random()*s,x=y-s+2*Math.random()*s,v=this.helper.ellipse(m,x,o,o,n);r.push(...v.ops)}}return{type:"fillSketch",ops:r}}},dw=class{constructor(e){this.helper=e}fillPolygons(e,n){const r=Yr(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=lo(s),l=Math.floor(a/(r+i)),c=(a+i-l*(r+i))/2;let h=s[0],u=s[1];h[0]>u[0]&&(h=s[1],u=s[0]);const f=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let p=0;p<l;p++){const g=p*(r+i),y=g+r,m=[h[0]+g*Math.cos(f)+c*Math.cos(f),h[1]+g*Math.sin(f)+c*Math.sin(f)],x=[h[0]+y*Math.cos(f)+c*Math.cos(f),h[1]+y*Math.sin(f)+c*Math.sin(f)];o.push(...this.helper.doubleLineOps(m[0],m[1],x[0],x[1],n))}})),o}};class uw{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=Yr(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=lo(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 h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let u=0;u<a;u++){const f=2*u*n,p=2*(u+1)*n,g=Math.sqrt(2*Math.pow(n,2)),y=[l[0]+f*Math.cos(h),l[1]+f*Math.sin(h)],m=[l[0]+p*Math.cos(h),l[1]+p*Math.sin(h)],x=[y[0]+g*Math.cos(h+Math.PI/4),y[1]+g*Math.sin(h+Math.PI/4)];i.push(...this.helper.doubleLineOps(y[0],y[1],x[0],x[1],r),...this.helper.doubleLineOps(x[0],x[1],m[0],m[1],r))}})),i}}const Pe={};let fw=class{constructor(e){this.seed=e}next(){return this.seed?(Ci(2,31)-1&(this.seed=Math.imul(48271,this.seed)))/Ci(2,31):Math.random()}};const pw=0,ll=1,of=2,co={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 cl(t,e){return t.type===e}function hl(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:pw,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:ll,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return a[a.length]={type:of,text:""},a})(t);let r="BOD",i=0,o=n[i];for(;!cl(o,of);){let s=0;const a=[];if(r==="BOD"){if(o.text!=="M"&&o.text!=="m")return hl("M0,0"+t);i++,s=co[o.text],r=o.text}else cl(o,ll)?s=co[r]:(i++,s=co[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(!cl(c,ll))throw new Error("Param not a number: "+r+","+c.text);a[a.length]=+c.text}if(typeof co[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 sf(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,h)=>h%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,h)=>h%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,h)=>h%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 af(t){const e=[];let n="",r=0,i=0,o=0,s=0,a=0,l=0;for(const{key:c,data:h}of t){switch(c){case"M":e.push({key:"M",data:[...h]}),[r,i]=h,[o,s]=h;break;case"C":e.push({key:"C",data:[...h]}),r=h[4],i=h[5],a=h[2],l=h[3];break;case"L":e.push({key:"L",data:[...h]}),[r,i]=h;break;case"H":r=h[0],e.push({key:"L",data:[r,i]});break;case"V":i=h[0],e.push({key:"L",data:[r,i]});break;case"S":{let u=0,f=0;n==="C"||n==="S"?(u=r+(r-a),f=i+(i-l)):(u=r,f=i),e.push({key:"C",data:[u,f,...h]}),a=h[0],l=h[1],r=h[2],i=h[3];break}case"T":{const[u,f]=h;let p=0,g=0;n==="Q"||n==="T"?(p=r+(r-a),g=i+(i-l)):(p=r,g=i);const y=r+2*(p-r)/3,m=i+2*(g-i)/3,x=u+2*(p-u)/3,v=f+2*(g-f)/3;e.push({key:"C",data:[y,m,x,v,u,f]}),a=p,l=g,r=u,i=f;break}case"Q":{const[u,f,p,g]=h,y=r+2*(u-r)/3,m=i+2*(f-i)/3,x=p+2*(u-p)/3,v=g+2*(f-g)/3;e.push({key:"C",data:[y,m,x,v,p,g]}),a=u,l=f,r=p,i=g;break}case"A":{const u=Math.abs(h[0]),f=Math.abs(h[1]),p=h[2],g=h[3],y=h[4],m=h[5],x=h[6];u===0||f===0?(e.push({key:"C",data:[r,i,m,x,m,x]}),r=m,i=x):(r!==m||i!==x)&&(lf(r,i,m,x,u,f,p,g,y).forEach((function(v){e.push({key:"C",data:v})})),r=m,i=x);break}case"Z":e.push({key:"Z",data:[]}),r=o,i=s}n=c}return e}function Xr(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function lf(t,e,n,r,i,o,s,a,l,c){const h=(u=s,Math.PI*u/180);var u;let f=[],p=0,g=0,y=0,m=0;if(c)[p,g,y,m]=c;else{[t,e]=Xr(t,e,-h),[n,r]=Xr(n,r,-h);const M=(t-n)/2,A=(e-r)/2;let W=M*M/(i*i)+A*A/(o*o);W>1&&(W=Math.sqrt(W),i*=W,o*=W);const k=i*i,D=o*o,z=k*D-k*A*A-D*M*M,N=k*A*A+D*M*M,B=(a===l?-1:1)*Math.sqrt(Math.abs(z/N));y=B*i*A/o+(t+n)/2,m=B*-o*M/i+(e+r)/2,p=Math.asin(parseFloat(((e-m)/o).toFixed(9))),g=Math.asin(parseFloat(((r-m)/o).toFixed(9))),t<y&&(p=Math.PI-p),n<y&&(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 M=g,A=n,W=r;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,f=lf(n=y+i*Math.cos(g),r=m+o*Math.sin(g),A,W,i,o,s,0,l,[g,M,y,m])}x=g-p;const v=Math.cos(p),b=Math.sin(p),_=Math.cos(g),w=Math.sin(g),$=Math.tan(x/4),P=4/3*i*$,O=4/3*o*$,T=[t,e],I=[t+P*b,e-O*v],S=[n+P*w,r-O*_],R=[n,r];if(I[0]=2*T[0]-I[0],I[1]=2*T[1]-I[1],c)return[I,S,R].concat(f);{f=[I,S,R].concat(f);const M=[];for(let A=0;A<f.length;A+=3){const W=Xr(f[A][0],f[A][1],h),k=Xr(f[A+1][0],f[A+1][1],h),D=Xr(f[A+2][0],f[A+2][1],h);M.push([W[0],W[1],k[0],k[1],D[0],D[1]])}return M}}const gw={randOffset:function(t,e){return pt(t,e)},randOffsetWithRange:function(t,e,n){return uo(t,e,n)},ellipse:function(t,e,n,r,i){const o=df(n,r,i);return dl(t,e,i,o).opset},doubleLineOps:function(t,e,n,r,i){return wn(t,e,n,r,i,!0)}};function cf(t,e,n,r,i){return{type:"path",ops:wn(t,e,n,r,i)}}function ho(t,e,n){const r=(t||[]).length;if(r>2){const i=[];for(let o=0;o<r-1;o++)i.push(...wn(t[o][0],t[o][1],t[o+1][0],t[o+1][1],n));return e&&i.push(...wn(t[r-1][0],t[r-1][1],t[0][0],t[0][1],n)),{type:"path",ops:i}}return r===2?cf(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function mw(t,e,n,r,i){return(function(o,s){return ho(o,!0,s)})([[t,e],[t+n,e],[t+n,e+r],[t,e+r]],i)}function hf(t,e){if(t.length){const n=typeof t[0][0]=="number"?[t]:t,r=fo(n[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:fo(n[0],1.5*(1+.22*e.roughness),pf(e));for(let o=1;o<n.length;o++){const s=n[o];if(s.length){const a=fo(s,1*(1+.2*e.roughness),e),l=e.disableMultiStroke?[]:fo(s,1.5*(1+.22*e.roughness),pf(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 df(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+=pt(s*l,n),a+=pt(a*l,n),{increment:o,rx:s,ry:a}}function dl(t,e,n,r){const[i,o]=mf(r.increment,t,e,r.rx,r.ry,1,r.increment*uo(.1,uo(.4,1,n),n),n);let s=po(i,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[a]=mf(r.increment,t,e,r.rx,r.ry,1.5,0,n),l=po(a,null,n);s=s.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function uf(t,e,n,r,i,o,s,a,l){const c=t,h=e;let u=Math.abs(n/2),f=Math.abs(r/2);u+=pt(.01*u,l),f+=pt(.01*f,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 y=2*Math.PI/l.curveStepCount,m=Math.min(y/2,(g-p)/2),x=yf(m,c,h,u,f,p,g,1,l);if(!l.disableMultiStroke){const v=yf(m,c,h,u,f,p,g,1.5,l);x.push(...v)}return s&&(a?x.push(...wn(c,h,c+u*Math.cos(p),h+f*Math.sin(p),l),...wn(c,h,c+u*Math.cos(g),h+f*Math.sin(g),l)):x.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(p),h+f*Math.sin(p)]})),{type:"path",ops:x}}function ff(t,e){const n=af(sf(hl(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(...wn(o[0],o[1],a[0],a[1],e)),o=[a[0],a[1]];break;case"C":{const[l,c,h,u,f,p]=a;r.push(...yw(l,c,h,u,f,p,o,e)),o=[f,p];break}case"Z":r.push(...wn(o[0],o[1],i[0],i[1],e)),o=[i[0],i[1]]}return{type:"path",ops:r}}function ul(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]+pt(i,e),r[0][1]+pt(i,e)]});for(let s=1;s<o;s++)n.push({op:"lineTo",data:[r[s][0]+pt(i,e),r[s][1]+pt(i,e)]})}}return{type:"fillPath",ops:n}}function gr(t,e){return(function(n,r){let i=n.fillStyle||"hachure";if(!Pe[i])switch(i){case"zigzag":Pe[i]||(Pe[i]=new lw(r));break;case"cross-hatch":Pe[i]||(Pe[i]=new cw(r));break;case"dots":Pe[i]||(Pe[i]=new hw(r));break;case"dashed":Pe[i]||(Pe[i]=new dw(r));break;case"zigzag-line":Pe[i]||(Pe[i]=new uw(r));break;default:i="hachure",Pe[i]||(Pe[i]=new al(r))}return Pe[i]})(e,gw).fillPolygons(t,e)}function pf(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function gf(t){return t.randomizer||(t.randomizer=new fw(t.seed||0)),t.randomizer.next()}function uo(t,e,n,r=1){return n.roughness*r*(gf(n)*(e-t)+t)}function pt(t,e,n=1){return uo(-t,t,e,n)}function wn(t,e,n,r,i,o=!1){const s=o?i.disableMultiStrokeFill:i.disableMultiStroke,a=fl(t,e,n,r,i,!0,!1);if(s)return a;const l=fl(t,e,n,r,i,!0,!0);return a.concat(l)}function fl(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 h=i.maxRandomnessOffset||0;h*h*100>a&&(h=l/10);const u=h/2,f=.2+.2*gf(i);let p=i.bowing*i.maxRandomnessOffset*(r-e)/200,g=i.bowing*i.maxRandomnessOffset*(t-n)/200;p=pt(p,i,c),g=pt(g,i,c);const y=[],m=()=>pt(u,i,c),x=()=>pt(h,i,c),v=i.preserveVertices;return s?y.push({op:"move",data:[t+(v?0:m()),e+(v?0:m())]}):y.push({op:"move",data:[t+(v?0:pt(h,i,c)),e+(v?0:pt(h,i,c))]}),s?y.push({op:"bcurveTo",data:[p+t+(n-t)*f+m(),g+e+(r-e)*f+m(),p+t+2*(n-t)*f+m(),g+e+2*(r-e)*f+m(),n+(v?0:m()),r+(v?0:m())]}):y.push({op:"bcurveTo",data:[p+t+(n-t)*f+x(),g+e+(r-e)*f+x(),p+t+2*(n-t)*f+x(),g+e+2*(r-e)*f+x(),n+(v?0:x()),r+(v?0:x())]}),y}function fo(t,e,n){if(!t.length)return[];const r=[];r.push([t[0][0]+pt(e,n),t[0][1]+pt(e,n)]),r.push([t[0][0]+pt(e,n),t[0][1]+pt(e,n)]);for(let i=1;i<t.length;i++)r.push([t[i][0]+pt(e,n),t[i][1]+pt(e,n)]),i===t.length-1&&r.push([t[i][0]+pt(e,n),t[i][1]+pt(e,n)]);return po(r,null,n)}function po(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(...fl(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return i}function mf(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 h=0;h<=2*Math.PI;h+=t){const u=[e+r*Math.cos(h),n+i*Math.sin(h)];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 h=pt(.5,a)-Math.PI/2;c.push([pt(o,a)+e+.9*r*Math.cos(h-t),pt(o,a)+n+.9*i*Math.sin(h-t)]);const u=2*Math.PI+h-.01;for(let f=h;f<u;f+=t){const p=[pt(o,a)+e+r*Math.cos(f),pt(o,a)+n+i*Math.sin(f)];l.push(p),c.push(p)}c.push([pt(o,a)+e+r*Math.cos(h+2*Math.PI+.5*s),pt(o,a)+n+i*Math.sin(h+2*Math.PI+.5*s)]),c.push([pt(o,a)+e+.98*r*Math.cos(h+s),pt(o,a)+n+.98*i*Math.sin(h+s)]),c.push([pt(o,a)+e+.9*r*Math.cos(h+.5*s),pt(o,a)+n+.9*i*Math.sin(h+.5*s)])}return[c,l]}function yf(t,e,n,r,i,o,s,a,l){const c=o+pt(.1,l),h=[];h.push([pt(a,l)+e+.9*r*Math.cos(c-t),pt(a,l)+n+.9*i*Math.sin(c-t)]);for(let u=c;u<=s;u+=t)h.push([pt(a,l)+e+r*Math.cos(u),pt(a,l)+n+i*Math.sin(u)]);return h.push([e+r*Math.cos(s),n+i*Math.sin(s)]),h.push([e+r*Math.cos(s),n+i*Math.sin(s)]),po(h,null,l)}function yw(t,e,n,r,i,o,s,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let h=[0,0];const u=a.disableMultiStroke?1:2,f=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]+(f?0:pt(c[0],a)),s[1]+(f?0:pt(c[0],a))]}),h=f?[i,o]:[i+pt(c[p],a),o+pt(c[p],a)],l.push({op:"bcurveTo",data:[t+pt(c[p],a),e+pt(c[p],a),n+pt(c[p],a),r+pt(c[p],a),h[0],h[1]]});return l}function Gr(t){return[...t]}function vf(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(Gr(t[0]),Gr(t[1]),Gr(t[2]),Gr(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(Gr(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 go(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function vw(t,e,n){const r=go(e,n);if(r===0)return go(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)),go(t,jn(e,n,i))}function jn(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function pl(t,e,n,r){const i=r||[];if((function(a,l){const c=a[l+0],h=a[l+1],u=a[l+2],f=a[l+3];let p=3*h[0]-2*c[0]-f[0];p*=p;let g=3*h[1]-2*c[1]-f[1];g*=g;let y=3*u[0]-2*f[0]-c[0];y*=y;let m=3*u[1]-2*f[1]-c[1];return m*=m,p<y&&(p=y),g<m&&(g=m),p+g})(t,e)<n){const a=t[e+0];i.length?(o=i[i.length-1],s=a,Math.sqrt(go(o,s))>1&&i.push(a)):i.push(a),i.push(t[e+3])}else{const l=t[e+0],c=t[e+1],h=t[e+2],u=t[e+3],f=jn(l,c,.5),p=jn(c,h,.5),g=jn(h,u,.5),y=jn(f,p,.5),m=jn(p,g,.5),x=jn(y,m,.5);pl([l,f,y,x],0,n,i),pl([x,m,g,u],0,n,i)}var o,s;return i}function xw(t,e){return mo(t,0,t.length,e)}function mo(t,e,n,r,i){const o=i||[],s=t[e],a=t[n-1];let l=0,c=1;for(let h=e+1;h<n-1;++h){const u=vw(t[h],s,a);u>l&&(l=u,c=h)}return Math.sqrt(l)>r?(mo(t,e,c+1,r,o),mo(t,c,n,r,o)):(o.length||o.push(s),o.push(a)),o}function gl(t,e=.15,n){const r=[],i=(t.length-1)/3;for(let o=0;o<i;o++)pl(t,3*o,e,r);return n&&n>0?mo(r,0,r.length,n):r}const Ie="none";class yo{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()*Ci(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",[cf(e,n,r,i,s)],s)}rectangle(e,n,r,i,o){const s=this._o(o),a=[],l=mw(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(ul([c],s)):a.push(gr([c],s))}return s.stroke!==Ie&&a.push(l),this._d("rectangle",a,s)}ellipse(e,n,r,i,o){const s=this._o(o),a=[],l=df(r,i,s),c=dl(e,n,s,l);if(s.fill)if(s.fillStyle==="solid"){const h=dl(e,n,s,l).opset;h.type="fillPath",a.push(h)}else a.push(gr([c.estimatedPoints],s));return s.stroke!==Ie&&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",[ho(e,!1,r)],r)}arc(e,n,r,i,o,s,a=!1,l){const c=this._o(l),h=[],u=uf(e,n,r,i,o,s,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const f=Object.assign({},c);f.disableMultiStroke=!0;const p=uf(e,n,r,i,o,s,!0,!1,f);p.type="fillPath",h.push(p)}else h.push((function(f,p,g,y,m,x,v){const b=f,_=p;let w=Math.abs(g/2),$=Math.abs(y/2);w+=pt(.01*w,v),$+=pt(.01*$,v);let P=m,O=x;for(;P<0;)P+=2*Math.PI,O+=2*Math.PI;O-P>2*Math.PI&&(P=0,O=2*Math.PI);const T=(O-P)/v.curveStepCount,I=[];for(let S=P;S<=O;S+=T)I.push([b+w*Math.cos(S),_+$*Math.sin(S)]);return I.push([b+w*Math.cos(O),_+$*Math.sin(O)]),I.push([b,_]),gr([I],v)})(e,n,r,i,o,s,c));return c.stroke!==Ie&&h.push(u),this._d("arc",h,c)}curve(e,n){const r=this._o(n),i=[],o=hf(e,r);if(r.fill&&r.fill!==Ie)if(r.fillStyle==="solid"){const s=hf(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(...gl(vf([c[0],c[0],c[1],c[2]]),10,(1+r.roughness)/2)):s.push(...gl(vf(c),10,(1+r.roughness)/2))}s.length&&i.push(gr([s],r))}return r.stroke!==Ie&&i.push(o),this._d("curve",i,r)}polygon(e,n){const r=this._o(n),i=[],o=ho(e,!0,r);return r.fill&&(r.fillStyle==="solid"?i.push(ul([e],r)):i.push(gr([e],r))),r.stroke!==Ie&&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!==Ie,s=r.stroke!==Ie,a=!!(r.simplification&&r.simplification<1),l=(function(h,u,f){const p=af(sf(hl(h))),g=[];let y=[],m=[0,0],x=[];const v=()=>{x.length>=4&&y.push(...gl(x,u)),x=[]},b=()=>{v(),y.length&&(g.push(y),y=[])};for(const{key:w,data:$}of p)switch(w){case"M":b(),m=[$[0],$[1]],y.push(m);break;case"L":v(),y.push([$[0],$[1]]);break;case"C":if(!x.length){const P=y.length?y[y.length-1]:m;x.push([P[0],P[1]])}x.push([$[0],$[1]]),x.push([$[2],$[3]]),x.push([$[4],$[5]]);break;case"Z":v(),y.push([m[0],m[1]])}if(b(),!f)return g;const _=[];for(const w of g){const $=xw(w,f);$.length&&_.push($)}return _})(e,1,a?4-4*(r.simplification||1):(1+r.roughness)/2),c=ff(e,r);if(o)if(r.fillStyle==="solid")if(l.length===1){const h=ff(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else i.push(ul(l,r));else i.push(gr(l,r));return s&&(a?l.forEach((h=>{i.push(ho(h,!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:Ie};break;case"fillPath":s={d:this.opsToPath(o),stroke:Ie,strokeWidth:0,fill:r.fill||Ie};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||Ie,strokeWidth:r,fill:Ie}}_mergedShape(e){return e.filter(((n,r)=>r===0||n.op!=="move"))}}class bw{constructor(e,n){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new yo(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 vo="http://www.w3.org/2000/svg";class _w{constructor(e,n){this.svg=e,this.gen=new yo(n)}draw(e){const n=e.sets||[],r=e.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,o=i.createElementNS(vo,"g"),s=e.options.fixedDecimalPlaceDigits;for(const a of n){let l=null;switch(a.type){case"path":l=i.createElementNS(vo,"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(vo,"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(vo,"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 ww={canvas:(t,e)=>new bw(t,e),svg:(t,e)=>new _w(t,e),generator:t=>new yo(t),newSeed:()=>yo.newSeed()},$w=Object.defineProperty,xf=Object.getOwnPropertySymbols,Pw=Object.prototype.hasOwnProperty,Ow=Object.prototype.propertyIsEnumerable,bf=(t,e,n)=>e in t?$w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Cw=(t,e)=>{for(var n in e||(e={}))Pw.call(e,n)&&bf(t,n,e[n]);if(xf)for(var n of xf(e))Ow.call(e,n)&&bf(t,n,e[n]);return t};function Mw(t,e,n){if(!t||!e){console.warn("Invalid node or svg element");return}const r=ww.svg(e,{options:{seed:1e3}}),i=ft("g");t.hasAttribute("transform")&&i.setAttribute("transform",t.getAttribute("transform")||"");const o=t.cloneNode();Bt(o,{opacity:.5}),o.hasAttribute("transform")&&o.removeAttribute("transform"),o.dataset.elementType="rough-volume",i.appendChild(o);const s=Ew(r,t,n);if(s){const{element:l,svgAttributes:c}=s;l.dataset.elementType="rough-element",l.style.pointerEvents="none",Sw(l,c),i.appendChild(l)}t.id&&(i.id=t.id),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 Sw(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 Ew(t,e,n){const r=e.nodeName.toLowerCase(),i=(o,s)=>{const a=Se(o,[...s,"fill","fill-opacity","stroke","stroke-opacity","stroke-width","stroke-dasharray","stroke-linecap","stroke-linejoin","opacity","filter","clip-path","mask"],!0),l={},c=Cw({},n),h={};s.forEach(P=>{a[P]!==void 0&&(l[P]=a[P])});const{fill:u,"fill-opacity":f,stroke:p,"stroke-opacity":g,"stroke-width":y,"stroke-dasharray":m,"stroke-linecap":x,"stroke-linejoin":v,opacity:b,filter:_,"clip-path":w,mask:$}=a;if(c.fill=u||"none",c.stroke=p||(u&&u!=="none"?u:"currentColor"),y&&(c.strokeWidth=parseFloat(y)),m&&m!=="none"){const P=m.split(/[\s,]+/).map(O=>parseFloat(O)).filter(O=>!isNaN(O));P.length>0&&(c.strokeLineDash=P)}return f&&(h.fillOpacity=parseFloat(f)),g&&(h.strokeOpacity=parseFloat(g)),b&&(h.opacity=parseFloat(b)),x&&(h.strokeLinecap=x),v&&(h.strokeLinejoin=v),m&&m!=="none"&&(h.strokeDasharray=m),_&&(h.filter=_),w&&(h.clipPath=w),$&&(h.mask=$),[l,c,h]};try{let o=null,s={};switch(r){case"circle":{const[a,l,c]=i(e,["cx","cy","r"]),h=parseFloat(a.cx)||0,u=parseFloat(a.cy)||0,f=parseFloat(a.r)||0;o=t.circle(h,u,f*2,l),s=c;break}case"ellipse":{const[a,l,c]=i(e,["cx","cy","rx","ry"]),h=parseFloat(a.cx)||0,u=parseFloat(a.cy)||0,f=parseFloat(a.rx)||0,p=parseFloat(a.ry)||0;o=t.ellipse(h,u,f*2,p*2,l),s=c;break}case"line":{const[a,l,c]=i(e,["x1","y1","x2","y2"]),h=parseFloat(a.x1)||0,u=parseFloat(a.y1)||0,f=parseFloat(a.x2)||0,p=parseFloat(a.y2)||0;o=t.line(h,u,f,p,l),s=c;break}case"rect":{const[a,l,c]=i(e,["x","y","width","height","rx","ry"]),h=parseFloat(a.x)||0,u=parseFloat(a.y)||0,f=parseFloat(a.width)||0,p=parseFloat(a.height)||0,g=parseFloat(a.rx)||0,y=parseFloat(a.ry)||0;if(g>0||y>0){const v=Iw(h,u,f,p,g||y,y||g);o=t.path(v,l)}else o=t.rectangle(h,u,f,p,l);s=c;break}case"path":{const[a,l,c]=i(e,["d"]),h=a.d||"";if(!h)return console.warn("Path element has no d attribute"),null;o=t.path(h,l),s=c;break}case"polygon":{const[a,l,c]=i(e,["points"]),h=_f(a.points||"");if(h.length<3)return console.warn("Polygon needs at least 3 points"),null;o=t.polygon(h,l),s=c;break}case"polyline":{const[a,l,c]=i(e,["points"]),h=_f(a.points||"");if(h.length<2)return console.warn("Polyline needs at least 2 points"),null;o=t.linearPath(h,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 Iw(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",of),e.appendChild(r)),t.prepend(e)}function sf(t,e){const{id:n,x:r=0,y:i=0,width:o=0,height:s=0}=ke(t,["id","x","y","width","height"]),a=wt("g",{id:n,class:"btn-group",transform:`translate(${r}, ${i})`}),l=t.getAttribute("data-items");l&&a.setAttribute("data-items",l);const c=Math.max(+o,+s)/2,h=wt("circle",{cx:c,cy:c,r:c,fill:"#fff",stroke:"transparent"});a.appendChild(h);const u=wt("use",{href:`#${e}`,width:o,height:s});a.appendChild(u),a.style.cursor="pointer",t.replaceWith(a)}function f5(t){sf(t,rf)}function p5(t){sf(t,of)}var g5=Object.defineProperty,af=Object.getOwnPropertySymbols,m5=Object.prototype.hasOwnProperty,y5=Object.prototype.propertyIsEnumerable,lf=(t,e,n)=>e in t?g5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bl=(t,e)=>{for(var n in e||(e={}))m5.call(e,n)&&lf(t,n,e[n]);if(af)for(var n of af(e))y5.call(e,n)&&lf(t,n,e[n]);return t};function v5(t,e,n,r){var i;if(!n)return null;const{themeConfig:o}=r,s=bl({},(i=o.item)==null?void 0:i.icon),a=ri(e,s);return b5(t,e,n,a)}function b5(t,e,n,r){return Bu(t,"icon",n),B4(n,bl(bl({},ke(e,["id","x","y","width","height","fill","stroke","data-element-type","data-indexes"])),r))}var x5=Object.defineProperty,w5=Object.defineProperties,_5=Object.getOwnPropertyDescriptors,wo=Object.getOwnPropertySymbols,cf=Object.prototype.hasOwnProperty,hf=Object.prototype.propertyIsEnumerable,df=(t,e,n)=>e in t?x5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_o=(t,e)=>{for(var n in e||(e={}))cf.call(e,n)&&df(t,n,e[n]);if(wo)for(var n of wo(e))hf.call(e,n)&&df(t,n,e[n]);return t},uf=(t,e)=>w5(t,_5(e)),$5=(t,e)=>{var n={};for(var r in t)cf.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&wo)for(var r of wo(t))e.indexOf(r)<0&&hf.call(t,r)&&(n[r]=t[r]);return n};function ff(t,e,n){if(!n)return null;const r=yo(n);if(!r)return null;const i=cl(r),o=P5(t,e,i);Bu(t,"illus",r);const{data:s,color:a}=r;return O5(i,_o(uf(_o({},C5(e)),{"clip-path":`url(#${o})`}),a?{color:a}:{}),s)}function P5(t,e,n){const r=`clip-${n}-${r$()}`;if(t.querySelector(`#${r}`))return r;const i=mo(t),o=wt("clipPath",{id:r}),s=e.cloneNode();return F_(s,["id","data-illus-bounds","data-element-type"]),o.appendChild(s),i.appendChild(o),r}function O5(t,e,n){const r=e,{"clip-path":i}=r,o=$5(r,["clip-path"]),{x:s="0",y:a="0",width:l="0",height:c="0"}=o,h=wt("rect",{id:`${t}-volume`,"data-element-type":kt.IllusVolume,x:s,y:a,width:l,height:c,fill:"transparent"}),u=wt("g",{"data-element-type":kt.IllusGroup,"clip-path":i,id:`${t}-group`});u.appendChild(h);const f=wt("use",uf(_o({id:t,fill:"lightgray"},o),{href:Nu(n),"data-element-type":kt.Illus}));return u.appendChild(f),u}function C5(t){const e=t.getAttribute("data-illus-bounds");if(!e)return _o({x:"0",y:"0",width:"0",height:"0"},ke(t,["x","y","width","height"]));const[n,r,i,o]=e.split(" ");return{x:n,y:r,width:i,height:o}}function $o(t){"@babel/helpers - typeof";return $o=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},$o(t)}var M5=/^\s+/,S5=/\s+$/;function ot(t,e){if(t=t||"",e=e||{},t instanceof ot)return t;if(!(this instanceof ot))return new ot(t,e);var n=E5(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}ot.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=bf(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=gf(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=gf(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=pf(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=pf(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 mf(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return k5(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(Jt(this._r,255)*100)+"%",g:Math.round(Jt(this._g,255)*100)+"%",b:Math.round(Jt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Jt(this._r,255)*100)+"%, "+Math.round(Jt(this._g,255)*100)+"%, "+Math.round(Jt(this._b,255)*100)+"%)":"rgba("+Math.round(Jt(this._r,255)*100)+"%, "+Math.round(Jt(this._g,255)*100)+"%, "+Math.round(Jt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Y5[mf(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var n="#"+yf(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(e){var o=ot(e);r="#"+yf(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 ot(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(H5,arguments)},brighten:function(){return this._applyModification(D5,arguments)},darken:function(){return this._applyModification(N5,arguments)},desaturate:function(){return this._applyModification(z5,arguments)},saturate:function(){return this._applyModification(L5,arguments)},greyscale:function(){return this._applyModification(R5,arguments)},spin:function(){return this._applyModification(j5,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(W5,arguments)},complement:function(){return this._applyCombination(F5,arguments)},monochromatic:function(){return this._applyCombination(V5,arguments)},splitcomplement:function(){return this._applyCombination(B5,arguments)},triad:function(){return this._applyCombination(vf,[3])},tetrad:function(){return this._applyCombination(vf,[4])}},ot.fromRatio=function(t,e){if($o(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(r==="a"?n[r]=t[r]:n[r]=ii(t[r]));t=n}return ot(t,e)};function E5(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=U5(t)),$o(t)=="object"&&(mn(t.r)&&mn(t.g)&&mn(t.b)?(e=I5(t.r,t.g,t.b),s=!0,a=String(t.r).substr(-1)==="%"?"prgb":"rgb"):mn(t.h)&&mn(t.s)&&mn(t.v)?(r=ii(t.s),i=ii(t.v),e=A5(t.h,r,i),s=!0,a="hsv"):mn(t.h)&&mn(t.s)&&mn(t.l)&&(r=ii(t.s),o=ii(t.l),e=T5(t.h,r,o),s=!0,a="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=bf(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 I5(t,e,n){return{r:Jt(t,255)*255,g:Jt(e,255)*255,b:Jt(n,255)*255}}function pf(t,e,n){t=Jt(t,255),e=Jt(e,255),n=Jt(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 T5(t,e,n){var r,i,o;t=Jt(t,360),e=Jt(e,100),n=Jt(n,100);function s(c,h,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?c+(h-c)*6*u:u<1/2?h:u<2/3?c+(h-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 gf(t,e,n){t=Jt(t,255),e=Jt(e,255),n=Jt(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 A5(t,e,n){t=Jt(t,360)*6,e=Jt(e,100),n=Jt(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],h=[a,n,n,s,o,o][l],u=[o,o,a,n,n,s][l];return{r:c*255,g:h*255,b:u*255}}function mf(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 k5(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(xf(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 yf(t,e,n,r){var i=[Fe(xf(r)),Fe(Math.round(t).toString(16)),Fe(Math.round(e).toString(16)),Fe(Math.round(n).toString(16))];return i.join("")}ot.equals=function(t,e){return!t||!e?!1:ot(t).toRgbString()==ot(e).toRgbString()},ot.random=function(){return ot.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function z5(t,e){e=e===0?0:e||10;var n=ot(t).toHsl();return n.s-=e/100,n.s=Po(n.s),ot(n)}function L5(t,e){e=e===0?0:e||10;var n=ot(t).toHsl();return n.s+=e/100,n.s=Po(n.s),ot(n)}function R5(t){return ot(t).desaturate(100)}function H5(t,e){e=e===0?0:e||10;var n=ot(t).toHsl();return n.l+=e/100,n.l=Po(n.l),ot(n)}function D5(t,e){e=e===0?0:e||10;var n=ot(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)))),ot(n)}function N5(t,e){e=e===0?0:e||10;var n=ot(t).toHsl();return n.l-=e/100,n.l=Po(n.l),ot(n)}function j5(t,e){var n=ot(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,ot(n)}function F5(t){var e=ot(t).toHsl();return e.h=(e.h+180)%360,ot(e)}function vf(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=ot(t).toHsl(),r=[ot(t)],i=360/e,o=1;o<e;o++)r.push(ot({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function B5(t){var e=ot(t).toHsl(),n=e.h;return[ot(t),ot({h:(n+72)%360,s:e.s,l:e.l}),ot({h:(n+216)%360,s:e.s,l:e.l})]}function W5(t,e,n){e=e||6,n=n||30;var r=ot(t).toHsl(),i=360/n,o=[ot(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(ot(r));return o}function V5(t,e){e=e||6;for(var n=ot(t).toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/e;e--;)s.push(ot({h:r,s:i,v:o})),o=(o+a)%1;return s}ot.mix=function(t,e,n){n=n===0?0:n||50;var r=ot(t).toRgb(),i=ot(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 ot(s)},ot.readability=function(t,e){var n=ot(t),r=ot(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},ot.isReadable=function(t,e,n){var r=ot.readability(t,e),i,o;switch(o=!1,i=Z5(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},ot.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=ot.readability(t,e[c]),o>i&&(i=o,r=ot(e[c]));return ot.isReadable(t,r,{level:a,size:l})||!s?r:(n.includeFallbackColors=!1,ot.mostReadable(t,["#fff","#000"],n))};var xl=ot.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"},Y5=ot.hexNames=X5(xl);function X5(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function bf(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Jt(t,e){G5(t)&&(t="100%");var n=q5(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 Po(t){return Math.min(1,Math.max(0,t))}function ze(t){return parseInt(t,16)}function G5(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function q5(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Fe(t){return t.length==1?"0"+t:""+t}function ii(t){return t<=1&&(t=t*100+"%"),t}function xf(t){return Math.round(parseFloat(t)*255).toString(16)}function wf(t){return ze(t)/255}var Be=(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 mn(t){return!!Be.CSS_UNIT.exec(t)}function U5(t){t=t.replace(M5,"").replace(S5,"").toLowerCase();var e=!1;if(xl[t])t=xl[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Be.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=Be.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Be.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=Be.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Be.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=Be.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Be.hex8.exec(t))?{r:ze(n[1]),g:ze(n[2]),b:ze(n[3]),a:wf(n[4]),format:e?"name":"hex8"}:(n=Be.hex6.exec(t))?{r:ze(n[1]),g:ze(n[2]),b:ze(n[3]),format:e?"name":"hex"}:(n=Be.hex4.exec(t))?{r:ze(n[1]+""+n[1]),g:ze(n[2]+""+n[2]),b:ze(n[3]+""+n[3]),a:wf(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=Be.hex3.exec(t))?{r:ze(n[1]+""+n[1]),g:ze(n[2]+""+n[2]),b:ze(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function Z5(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}}var K5=Object.defineProperty,_f=Object.getOwnPropertySymbols,Q5=Object.prototype.hasOwnProperty,J5=Object.prototype.propertyIsEnumerable,$f=(t,e,n)=>e in t?K5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,t6=(t,e)=>{for(var n in e||(e={}))Q5.call(e,n)&&$f(t,n,e[n]);if(_f)for(var n of _f(e))J5.call(e,n)&&$f(t,n,e[n]);return t};function Pf(t,e,n,r){const i=t.getAttribute(r),o=e6(i,n),{type:s,colors:a=[]}=o,l=a.length-1,c=a.map((p,g)=>typeof p=="string"?wt("stop",{offset:`${g/l}`,"stop-color":p}):wt("stop",{offset:`${p.offset}`,"stop-color":p.color})),h=n6(n);if(s==="linear-gradient"){const{angle:p=0}=o,[[g,y],[m,b]]=r6(p),v=wt("linearGradient",{id:h,x1:g,y1:y,x2:m,y2:b});c.forEach(x=>v.appendChild(x)),Of(e,h,v)}else if(s==="radial-gradient"){const p=wt("radialGradient",{id:h});c.forEach(g=>p.appendChild(g)),Of(e,h,p)}const u=t.getAttribute("fill"),f=t.getAttribute("stroke");Bn(u)&&t.setAttribute("fill",`url(#${h})`),Bn(f)&&t.setAttribute("stroke",`url(#${h})`)}function Of(t,e,n){const r=mo(t);n.setAttribute("id",e);const i=r.querySelector(`#${e}`);i?i.replaceWith(n):r.appendChild(n)}function e6(t,e){var n;if((n=e.colors)!=null&&n.length||!t)return e;const r=ot(t),i=t6({},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 n6(t){const{type:e,colors:n=[]}=t,r=nf(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 r6(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 i6=Object.freeze(Object.defineProperty({__proto__:null,diamond:({scale:t=.5,backgroundColor:e,foregroundColor:n})=>{const r=wt("pattern",{id:"pattern-diamond",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=wt("rect",{width:"100%",height:"100%",fill:e}),o=wt("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=wt("pattern",{id:"pattern-dot",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=wt("rect",{width:"100%",height:"100%",fill:e}),o=wt("circle",{cx:"5",cy:"5",r:"3",fill:n}),s=wt("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=wt("pattern",{id:"pattern-hex",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=wt("rect",{width:"100%",height:"100%",fill:e}),o=wt("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=wt("pattern",{id:"pattern-line",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),s=wt("rect",{width:"100%",height:"100%",fill:e}),a=wt("line",{x1:"7",y1:"-3",x2:"23",y2:"13",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"}),l=wt("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=wt("pattern",{id:"pattern-mosaic",width:20,height:20,patternUnits:"userSpaceOnUse",patternTransform:`scale(${t})`}),l=wt("rect",{width:"100%",height:"100%",fill:e});a.appendChild(l);for(let c=0;c<4;c++)for(let h=0;h<4;h++)if((h+c)%2===0){const u=wt("rect",{x:h*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=wt("pattern",{id:"pattern-square",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=wt("rect",{width:"100%",height:"100%",fill:e}),o=wt("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 o6=Object.defineProperty,Oo=Object.getOwnPropertySymbols,Cf=Object.prototype.hasOwnProperty,Mf=Object.prototype.propertyIsEnumerable,Sf=(t,e,n)=>e in t?o6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,wl=(t,e)=>{for(var n in e||(e={}))Cf.call(e,n)&&Sf(t,n,e[n]);if(Oo)for(var n of Oo(e))Mf.call(e,n)&&Sf(t,n,e[n]);return t},s6=(t,e)=>{var n={};for(var r in t)Cf.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Oo)for(var r of Oo(t))e.indexOf(r)<0&&Mf.call(t,r)&&(n[r]=t[r]);return n};const _l=new Map;function Ef(t,e){_l.has(t)&&console.warn(`Pattern ${t} will be overwritten`),_l.set(t,e)}for(const[t,e]of Object.entries(i6))Ef(t,e);function a6(t,e,n){const r=n.themeConfig.stylize;if(!r||r.type!=="pattern")return;const i=r,{pattern:o}=i,s=s6(i,["pattern"]),a=_l.get(o);if(!a)return console.warn(`Pattern ${o} not found`);const{fill:l}=ke(t,["fill","stroke"]),c=l,h=wl({backgroundColor:c&&ot(c).setAlpha(.5).toRgbString(),foregroundColor:c},s),u=c6(wl(wl({},r),h));l6(e,u,a(h)),Bn(l)&&(t.setAttribute("fill",`url(#${u})`),!t.getAttribute("stroke")&&l&&t.setAttribute("stroke",l))}function l6(t,e,n){const r=mo(t);n.setAttribute("id",e);const i=r.querySelector(`pattern#${e}`);i?i.replaceWith(n):r.appendChild(n)}function c6(t){const{pattern:e,foregroundColor:n="unset",backgroundColor:r="unset",scale:i="unset"}=t;return nf(`pattern-${e}-${n}-${r}-${i}`)}function $l(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,h]=l;l[0]=(c-r)*s-(h-i)*a+r,l[1]=(c-r)*a+(h-i)*s+i}}}function h6(t,e){return t[0]===e[0]&&t[1]===e[1]}function d6(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)$l(c,a,i);const l=(function(c,h,u){const f=[];for(const v of c){const x=[...v];h6(x[0],x[x.length-1])||x.push([x[0][0],x[0][1]]),x.length>2&&f.push(x)}const p=[];h=Math.max(h,.1);const g=[];for(const v of f)for(let x=0;x<v.length-1;x++){const w=v[x],_=v[x+1];if(w[1]!==_[1]){const $=Math.min(w[1],_[1]);g.push({ymin:$,ymax:Math.max(w[1],_[1]),x:$===w[1]?w[0]:_[0],islope:(_[0]-w[0])/(_[1]-w[1])})}}if(g.sort(((v,x)=>v.ymin<x.ymin?-1:v.ymin>x.ymin?1:v.x<x.x?-1:v.x>x.x?1:v.ymax===x.ymax?0:(v.ymax-x.ymax)/Math.abs(v.ymax-x.ymax))),!g.length)return p;let y=[],m=g[0].ymin,b=0;for(;y.length||g.length;){if(g.length){let v=-1;for(let x=0;x<g.length&&!(g[x].ymin>m);x++)v=x;g.splice(0,v+1).forEach((x=>{y.push({s:m,edge:x})}))}if(y=y.filter((v=>!(v.edge.ymax<=m))),y.sort(((v,x)=>v.edge.x===x.edge.x?0:(v.edge.x-x.edge.x)/Math.abs(v.edge.x-x.edge.x))),(u!==1||b%h==0)&&y.length>1)for(let v=0;v<y.length;v+=2){const x=v+1;if(x>=y.length)break;const w=y[v].edge,_=y[x].edge;p.push([[Math.round(w.x),m],[Math.round(_.x),m]])}m+=u,y.forEach((v=>{v.edge.x=v.edge.x+u*v.edge.islope})),b++}return p})(s,o,r);if(i){for(const c of s)$l(c,a,-i);(function(c,h,u){const f=[];c.forEach((p=>f.push(...p))),$l(f,h,u)})(l,a,-i)}return l}function oi(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),d6(t,i,r,o||1)}class Pl{constructor(e){this.helper=e}fillPolygons(e,n){return this._fillPolygons(e,n)}_fillPolygons(e,n){const r=oi(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 Co(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))}let u6=class extends Pl{fillPolygons(e,n){let r=n.hachureGap;r<0&&(r=4*n.strokeWidth),r=Math.max(r,.1);const i=oi(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,h]of i)Co([c,h])&&s.push([[c[0]-a,c[1]+l],[...h]],[[c[0]+a,c[1]-l],[...h]]);return{type:"fillSketch",ops:this.renderLines(s,n)}}},f6=class extends Pl{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}},p6=class{constructor(e){this.helper=e}fillPolygons(e,n){const r=oi(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=Co(a),c=l/i,h=Math.ceil(c)-1,u=l-h*i,f=(a[0][0]+a[1][0])/2-i/4,p=Math.min(a[0][1],a[1][1]);for(let g=0;g<h;g++){const y=p+u+g*i,m=f-s+2*Math.random()*s,b=y-s+2*Math.random()*s,v=this.helper.ellipse(m,b,o,o,n);r.push(...v.ops)}}return{type:"fillSketch",ops:r}}},g6=class{constructor(e){this.helper=e}fillPolygons(e,n){const r=oi(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=Co(s),l=Math.floor(a/(r+i)),c=(a+i-l*(r+i))/2;let h=s[0],u=s[1];h[0]>u[0]&&(h=s[1],u=s[0]);const f=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let p=0;p<l;p++){const g=p*(r+i),y=g+r,m=[h[0]+g*Math.cos(f)+c*Math.cos(f),h[1]+g*Math.sin(f)+c*Math.sin(f)],b=[h[0]+y*Math.cos(f)+c*Math.cos(f),h[1]+y*Math.sin(f)+c*Math.sin(f)];o.push(...this.helper.doubleLineOps(m[0],m[1],b[0],b[1],n))}})),o}};class m6{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=oi(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=Co(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 h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let u=0;u<a;u++){const f=2*u*n,p=2*(u+1)*n,g=Math.sqrt(2*Math.pow(n,2)),y=[l[0]+f*Math.cos(h),l[1]+f*Math.sin(h)],m=[l[0]+p*Math.cos(h),l[1]+p*Math.sin(h)],b=[y[0]+g*Math.cos(h+Math.PI/4),y[1]+g*Math.sin(h+Math.PI/4)];i.push(...this.helper.doubleLineOps(y[0],y[1],b[0],b[1],r),...this.helper.doubleLineOps(b[0],b[1],m[0],m[1],r))}})),i}}const Ce={};let y6=class{constructor(e){this.seed=e}next(){return this.seed?(Bi(2,31)-1&(this.seed=Math.imul(48271,this.seed)))/Bi(2,31):Math.random()}};const v6=0,Ol=1,If=2,Mo={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 Cl(t,e){return t.type===e}function Ml(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:v6,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:Ol,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return a[a.length]={type:If,text:""},a})(t);let r="BOD",i=0,o=n[i];for(;!Cl(o,If);){let s=0;const a=[];if(r==="BOD"){if(o.text!=="M"&&o.text!=="m")return Ml("M0,0"+t);i++,s=Mo[o.text],r=o.text}else Cl(o,Ol)?s=Mo[r]:(i++,s=Mo[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(!Cl(c,Ol))throw new Error("Param not a number: "+r+","+c.text);a[a.length]=+c.text}if(typeof Mo[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 Tf(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,h)=>h%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,h)=>h%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,h)=>h%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 Af(t){const e=[];let n="",r=0,i=0,o=0,s=0,a=0,l=0;for(const{key:c,data:h}of t){switch(c){case"M":e.push({key:"M",data:[...h]}),[r,i]=h,[o,s]=h;break;case"C":e.push({key:"C",data:[...h]}),r=h[4],i=h[5],a=h[2],l=h[3];break;case"L":e.push({key:"L",data:[...h]}),[r,i]=h;break;case"H":r=h[0],e.push({key:"L",data:[r,i]});break;case"V":i=h[0],e.push({key:"L",data:[r,i]});break;case"S":{let u=0,f=0;n==="C"||n==="S"?(u=r+(r-a),f=i+(i-l)):(u=r,f=i),e.push({key:"C",data:[u,f,...h]}),a=h[0],l=h[1],r=h[2],i=h[3];break}case"T":{const[u,f]=h;let p=0,g=0;n==="Q"||n==="T"?(p=r+(r-a),g=i+(i-l)):(p=r,g=i);const y=r+2*(p-r)/3,m=i+2*(g-i)/3,b=u+2*(p-u)/3,v=f+2*(g-f)/3;e.push({key:"C",data:[y,m,b,v,u,f]}),a=p,l=g,r=u,i=f;break}case"Q":{const[u,f,p,g]=h,y=r+2*(u-r)/3,m=i+2*(f-i)/3,b=p+2*(u-p)/3,v=g+2*(f-g)/3;e.push({key:"C",data:[y,m,b,v,p,g]}),a=u,l=f,r=p,i=g;break}case"A":{const u=Math.abs(h[0]),f=Math.abs(h[1]),p=h[2],g=h[3],y=h[4],m=h[5],b=h[6];u===0||f===0?(e.push({key:"C",data:[r,i,m,b,m,b]}),r=m,i=b):(r!==m||i!==b)&&(kf(r,i,m,b,u,f,p,g,y).forEach((function(v){e.push({key:"C",data:v})})),r=m,i=b);break}case"Z":e.push({key:"Z",data:[]}),r=o,i=s}n=c}return e}function si(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function kf(t,e,n,r,i,o,s,a,l,c){const h=(u=s,Math.PI*u/180);var u;let f=[],p=0,g=0,y=0,m=0;if(c)[p,g,y,m]=c;else{[t,e]=si(t,e,-h),[n,r]=si(n,r,-h);const C=(t-n)/2,A=(e-r)/2;let B=C*C/(i*i)+A*A/(o*o);B>1&&(B=Math.sqrt(B),i*=B,o*=B);const k=i*i,D=o*o,z=k*D-k*A*A-D*C*C,N=k*A*A+D*C*C,j=(a===l?-1:1)*Math.sqrt(Math.abs(z/N));y=j*i*A/o+(t+n)/2,m=j*-o*C/i+(e+r)/2,p=Math.asin(parseFloat(((e-m)/o).toFixed(9))),g=Math.asin(parseFloat(((r-m)/o).toFixed(9))),t<y&&(p=Math.PI-p),n<y&&(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 b=g-p;if(Math.abs(b)>120*Math.PI/180){const C=g,A=n,B=r;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,f=kf(n=y+i*Math.cos(g),r=m+o*Math.sin(g),A,B,i,o,s,0,l,[g,C,y,m])}b=g-p;const v=Math.cos(p),x=Math.sin(p),w=Math.cos(g),_=Math.sin(g),$=Math.tan(b/4),P=4/3*i*$,O=4/3*o*$,T=[t,e],I=[t+P*x,e-O*v],S=[n+P*_,r-O*w],H=[n,r];if(I[0]=2*T[0]-I[0],I[1]=2*T[1]-I[1],c)return[I,S,H].concat(f);{f=[I,S,H].concat(f);const C=[];for(let A=0;A<f.length;A+=3){const B=si(f[A][0],f[A][1],h),k=si(f[A+1][0],f[A+1][1],h),D=si(f[A+2][0],f[A+2][1],h);C.push([B[0],B[1],k[0],k[1],D[0],D[1]])}return C}}const b6={randOffset:function(t,e){return _t(t,e)},randOffsetWithRange:function(t,e,n){return Eo(t,e,n)},ellipse:function(t,e,n,r,i){const o=Rf(n,r,i);return Sl(t,e,i,o).opset},doubleLineOps:function(t,e,n,r,i){return Tn(t,e,n,r,i,!0)}};function zf(t,e,n,r,i){return{type:"path",ops:Tn(t,e,n,r,i)}}function So(t,e,n){const r=(t||[]).length;if(r>2){const i=[];for(let o=0;o<r-1;o++)i.push(...Tn(t[o][0],t[o][1],t[o+1][0],t[o+1][1],n));return e&&i.push(...Tn(t[r-1][0],t[r-1][1],t[0][0],t[0][1],n)),{type:"path",ops:i}}return r===2?zf(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function x6(t,e,n,r,i){return(function(o,s){return So(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=Io(n[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:Io(n[0],1.5*(1+.22*e.roughness),Nf(e));for(let o=1;o<n.length;o++){const s=n[o];if(s.length){const a=Io(s,1*(1+.2*e.roughness),e),l=e.disableMultiStroke?[]:Io(s,1.5*(1+.22*e.roughness),Nf(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+=_t(s*l,n),a+=_t(a*l,n),{increment:o,rx:s,ry:a}}function Sl(t,e,n,r){const[i,o]=Ff(r.increment,t,e,r.rx,r.ry,1,r.increment*Eo(.1,Eo(.4,1,n),n),n);let s=To(i,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[a]=Ff(r.increment,t,e,r.rx,r.ry,1.5,0,n),l=To(a,null,n);s=s.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function Hf(t,e,n,r,i,o,s,a,l){const c=t,h=e;let u=Math.abs(n/2),f=Math.abs(r/2);u+=_t(.01*u,l),f+=_t(.01*f,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 y=2*Math.PI/l.curveStepCount,m=Math.min(y/2,(g-p)/2),b=Bf(m,c,h,u,f,p,g,1,l);if(!l.disableMultiStroke){const v=Bf(m,c,h,u,f,p,g,1.5,l);b.push(...v)}return s&&(a?b.push(...Tn(c,h,c+u*Math.cos(p),h+f*Math.sin(p),l),...Tn(c,h,c+u*Math.cos(g),h+f*Math.sin(g),l)):b.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(p),h+f*Math.sin(p)]})),{type:"path",ops:b}}function Df(t,e){const n=Af(Tf(Ml(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(...Tn(o[0],o[1],a[0],a[1],e)),o=[a[0],a[1]];break;case"C":{const[l,c,h,u,f,p]=a;r.push(...w6(l,c,h,u,f,p,o,e)),o=[f,p];break}case"Z":r.push(...Tn(o[0],o[1],i[0],i[1],e)),o=[i[0],i[1]]}return{type:"path",ops:r}}function El(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]+_t(i,e),r[0][1]+_t(i,e)]});for(let s=1;s<o;s++)n.push({op:"lineTo",data:[r[s][0]+_t(i,e),r[s][1]+_t(i,e)]})}}return{type:"fillPath",ops:n}}function Sr(t,e){return(function(n,r){let i=n.fillStyle||"hachure";if(!Ce[i])switch(i){case"zigzag":Ce[i]||(Ce[i]=new u6(r));break;case"cross-hatch":Ce[i]||(Ce[i]=new f6(r));break;case"dots":Ce[i]||(Ce[i]=new p6(r));break;case"dashed":Ce[i]||(Ce[i]=new g6(r));break;case"zigzag-line":Ce[i]||(Ce[i]=new m6(r));break;default:i="hachure",Ce[i]||(Ce[i]=new Pl(r))}return Ce[i]})(e,b6).fillPolygons(t,e)}function Nf(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function jf(t){return t.randomizer||(t.randomizer=new y6(t.seed||0)),t.randomizer.next()}function Eo(t,e,n,r=1){return n.roughness*r*(jf(n)*(e-t)+t)}function _t(t,e,n=1){return Eo(-t,t,e,n)}function Tn(t,e,n,r,i,o=!1){const s=o?i.disableMultiStrokeFill:i.disableMultiStroke,a=Il(t,e,n,r,i,!0,!1);if(s)return a;const l=Il(t,e,n,r,i,!0,!0);return a.concat(l)}function Il(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 h=i.maxRandomnessOffset||0;h*h*100>a&&(h=l/10);const u=h/2,f=.2+.2*jf(i);let p=i.bowing*i.maxRandomnessOffset*(r-e)/200,g=i.bowing*i.maxRandomnessOffset*(t-n)/200;p=_t(p,i,c),g=_t(g,i,c);const y=[],m=()=>_t(u,i,c),b=()=>_t(h,i,c),v=i.preserveVertices;return s?y.push({op:"move",data:[t+(v?0:m()),e+(v?0:m())]}):y.push({op:"move",data:[t+(v?0:_t(h,i,c)),e+(v?0:_t(h,i,c))]}),s?y.push({op:"bcurveTo",data:[p+t+(n-t)*f+m(),g+e+(r-e)*f+m(),p+t+2*(n-t)*f+m(),g+e+2*(r-e)*f+m(),n+(v?0:m()),r+(v?0:m())]}):y.push({op:"bcurveTo",data:[p+t+(n-t)*f+b(),g+e+(r-e)*f+b(),p+t+2*(n-t)*f+b(),g+e+2*(r-e)*f+b(),n+(v?0:b()),r+(v?0:b())]}),y}function Io(t,e,n){if(!t.length)return[];const r=[];r.push([t[0][0]+_t(e,n),t[0][1]+_t(e,n)]),r.push([t[0][0]+_t(e,n),t[0][1]+_t(e,n)]);for(let i=1;i<t.length;i++)r.push([t[i][0]+_t(e,n),t[i][1]+_t(e,n)]),i===t.length-1&&r.push([t[i][0]+_t(e,n),t[i][1]+_t(e,n)]);return To(r,null,n)}function To(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(...Il(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return i}function Ff(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 h=0;h<=2*Math.PI;h+=t){const u=[e+r*Math.cos(h),n+i*Math.sin(h)];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 h=_t(.5,a)-Math.PI/2;c.push([_t(o,a)+e+.9*r*Math.cos(h-t),_t(o,a)+n+.9*i*Math.sin(h-t)]);const u=2*Math.PI+h-.01;for(let f=h;f<u;f+=t){const p=[_t(o,a)+e+r*Math.cos(f),_t(o,a)+n+i*Math.sin(f)];l.push(p),c.push(p)}c.push([_t(o,a)+e+r*Math.cos(h+2*Math.PI+.5*s),_t(o,a)+n+i*Math.sin(h+2*Math.PI+.5*s)]),c.push([_t(o,a)+e+.98*r*Math.cos(h+s),_t(o,a)+n+.98*i*Math.sin(h+s)]),c.push([_t(o,a)+e+.9*r*Math.cos(h+.5*s),_t(o,a)+n+.9*i*Math.sin(h+.5*s)])}return[c,l]}function Bf(t,e,n,r,i,o,s,a,l){const c=o+_t(.1,l),h=[];h.push([_t(a,l)+e+.9*r*Math.cos(c-t),_t(a,l)+n+.9*i*Math.sin(c-t)]);for(let u=c;u<=s;u+=t)h.push([_t(a,l)+e+r*Math.cos(u),_t(a,l)+n+i*Math.sin(u)]);return h.push([e+r*Math.cos(s),n+i*Math.sin(s)]),h.push([e+r*Math.cos(s),n+i*Math.sin(s)]),To(h,null,l)}function w6(t,e,n,r,i,o,s,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let h=[0,0];const u=a.disableMultiStroke?1:2,f=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]+(f?0:_t(c[0],a)),s[1]+(f?0:_t(c[0],a))]}),h=f?[i,o]:[i+_t(c[p],a),o+_t(c[p],a)],l.push({op:"bcurveTo",data:[t+_t(c[p],a),e+_t(c[p],a),n+_t(c[p],a),r+_t(c[p],a),h[0],h[1]]});return l}function ai(t){return[...t]}function Wf(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(ai(t[0]),ai(t[1]),ai(t[2]),ai(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(ai(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 Ao(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function _6(t,e,n){const r=Ao(e,n);if(r===0)return Ao(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)),Ao(t,Un(e,n,i))}function Un(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function Tl(t,e,n,r){const i=r||[];if((function(a,l){const c=a[l+0],h=a[l+1],u=a[l+2],f=a[l+3];let p=3*h[0]-2*c[0]-f[0];p*=p;let g=3*h[1]-2*c[1]-f[1];g*=g;let y=3*u[0]-2*f[0]-c[0];y*=y;let m=3*u[1]-2*f[1]-c[1];return m*=m,p<y&&(p=y),g<m&&(g=m),p+g})(t,e)<n){const a=t[e+0];i.length?(o=i[i.length-1],s=a,Math.sqrt(Ao(o,s))>1&&i.push(a)):i.push(a),i.push(t[e+3])}else{const l=t[e+0],c=t[e+1],h=t[e+2],u=t[e+3],f=Un(l,c,.5),p=Un(c,h,.5),g=Un(h,u,.5),y=Un(f,p,.5),m=Un(p,g,.5),b=Un(y,m,.5);Tl([l,f,y,b],0,n,i),Tl([b,m,g,u],0,n,i)}var o,s;return i}function $6(t,e){return ko(t,0,t.length,e)}function ko(t,e,n,r,i){const o=i||[],s=t[e],a=t[n-1];let l=0,c=1;for(let h=e+1;h<n-1;++h){const u=_6(t[h],s,a);u>l&&(l=u,c=h)}return Math.sqrt(l)>r?(ko(t,e,c+1,r,o),ko(t,c,n,r,o)):(o.length||o.push(s),o.push(a)),o}function Al(t,e=.15,n){const r=[],i=(t.length-1)/3;for(let o=0;o<i;o++)Tl(t,3*o,e,r);return n&&n>0?ko(r,0,r.length,n):r}const Le="none";class zo{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()*Bi(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",[zf(e,n,r,i,s)],s)}rectangle(e,n,r,i,o){const s=this._o(o),a=[],l=x6(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(El([c],s)):a.push(Sr([c],s))}return s.stroke!==Le&&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=Sl(e,n,s,l);if(s.fill)if(s.fillStyle==="solid"){const h=Sl(e,n,s,l).opset;h.type="fillPath",a.push(h)}else a.push(Sr([c.estimatedPoints],s));return s.stroke!==Le&&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",[So(e,!1,r)],r)}arc(e,n,r,i,o,s,a=!1,l){const c=this._o(l),h=[],u=Hf(e,n,r,i,o,s,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const f=Object.assign({},c);f.disableMultiStroke=!0;const p=Hf(e,n,r,i,o,s,!0,!1,f);p.type="fillPath",h.push(p)}else h.push((function(f,p,g,y,m,b,v){const x=f,w=p;let _=Math.abs(g/2),$=Math.abs(y/2);_+=_t(.01*_,v),$+=_t(.01*$,v);let P=m,O=b;for(;P<0;)P+=2*Math.PI,O+=2*Math.PI;O-P>2*Math.PI&&(P=0,O=2*Math.PI);const T=(O-P)/v.curveStepCount,I=[];for(let S=P;S<=O;S+=T)I.push([x+_*Math.cos(S),w+$*Math.sin(S)]);return I.push([x+_*Math.cos(O),w+$*Math.sin(O)]),I.push([x,w]),Sr([I],v)})(e,n,r,i,o,s,c));return c.stroke!==Le&&h.push(u),this._d("arc",h,c)}curve(e,n){const r=this._o(n),i=[],o=Lf(e,r);if(r.fill&&r.fill!==Le)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(...Al(Wf([c[0],c[0],c[1],c[2]]),10,(1+r.roughness)/2)):s.push(...Al(Wf(c),10,(1+r.roughness)/2))}s.length&&i.push(Sr([s],r))}return r.stroke!==Le&&i.push(o),this._d("curve",i,r)}polygon(e,n){const r=this._o(n),i=[],o=So(e,!0,r);return r.fill&&(r.fillStyle==="solid"?i.push(El([e],r)):i.push(Sr([e],r))),r.stroke!==Le&&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!==Le,s=r.stroke!==Le,a=!!(r.simplification&&r.simplification<1),l=(function(h,u,f){const p=Af(Tf(Ml(h))),g=[];let y=[],m=[0,0],b=[];const v=()=>{b.length>=4&&y.push(...Al(b,u)),b=[]},x=()=>{v(),y.length&&(g.push(y),y=[])};for(const{key:_,data:$}of p)switch(_){case"M":x(),m=[$[0],$[1]],y.push(m);break;case"L":v(),y.push([$[0],$[1]]);break;case"C":if(!b.length){const P=y.length?y[y.length-1]:m;b.push([P[0],P[1]])}b.push([$[0],$[1]]),b.push([$[2],$[3]]),b.push([$[4],$[5]]);break;case"Z":v(),y.push([m[0],m[1]])}if(x(),!f)return g;const w=[];for(const _ of g){const $=$6(_,f);$.length&&w.push($)}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 h=Df(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else i.push(El(l,r));else i.push(Sr(l,r));return s&&(a?l.forEach((h=>{i.push(So(h,!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:Le};break;case"fillPath":s={d:this.opsToPath(o),stroke:Le,strokeWidth:0,fill:r.fill||Le};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||Le,strokeWidth:r,fill:Le}}_mergedShape(e){return e.filter(((n,r)=>r===0||n.op!=="move"))}}class P6{constructor(e,n){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new zo(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 Lo="http://www.w3.org/2000/svg";class O6{constructor(e,n){this.svg=e,this.gen=new zo(n)}draw(e){const n=e.sets||[],r=e.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,o=i.createElementNS(Lo,"g"),s=e.options.fixedDecimalPlaceDigits;for(const a of n){let l=null;switch(a.type){case"path":l=i.createElementNS(Lo,"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(Lo,"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(Lo,"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 C6={canvas:(t,e)=>new P6(t,e),svg:(t,e)=>new O6(t,e),generator:t=>new zo(t),newSeed:()=>zo.newSeed()},M6=Object.defineProperty,Vf=Object.getOwnPropertySymbols,S6=Object.prototype.hasOwnProperty,E6=Object.prototype.propertyIsEnumerable,Yf=(t,e,n)=>e in t?M6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,I6=(t,e)=>{for(var n in e||(e={}))S6.call(e,n)&&Yf(t,n,e[n]);if(Vf)for(var n of Vf(e))E6.call(e,n)&&Yf(t,n,e[n]);return t};function T6(t,e,n){if(!t||!e){console.warn("Invalid node or svg element");return}const r=C6.svg(e,{options:{seed:1e3}}),i=wt("g");t.hasAttribute("transform")&&i.setAttribute("transform",t.getAttribute("transform")||"");const o=t.cloneNode();Yt(o,{opacity:.5}),o.hasAttribute("transform")&&o.removeAttribute("transform"),o.dataset.elementType="rough-volume",i.appendChild(o);const s=k6(r,t,n);if(s){const{element:l,svgAttributes:c}=s;l.dataset.elementType="rough-element",l.style.pointerEvents="none",A6(l,c),i.appendChild(l)}t.id&&(i.id=t.id),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 A6(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 k6(t,e,n){const r=e.nodeName.toLowerCase(),i=(o,s)=>{const a=ke(o,[...s,"fill","fill-opacity","stroke","stroke-opacity","stroke-width","stroke-dasharray","stroke-linecap","stroke-linejoin","opacity","filter","clip-path","mask"],!0),l={},c=I6({},n),h={};s.forEach(P=>{a[P]!==void 0&&(l[P]=a[P])});const{fill:u,"fill-opacity":f,stroke:p,"stroke-opacity":g,"stroke-width":y,"stroke-dasharray":m,"stroke-linecap":b,"stroke-linejoin":v,opacity:x,filter:w,"clip-path":_,mask:$}=a;if(c.fill=u||"none",c.stroke=p||(u&&u!=="none"?u:"currentColor"),y&&(c.strokeWidth=parseFloat(y)),m&&m!=="none"){const P=m.split(/[\s,]+/).map(O=>parseFloat(O)).filter(O=>!isNaN(O));P.length>0&&(c.strokeLineDash=P)}return f&&(h.fillOpacity=parseFloat(f)),g&&(h.strokeOpacity=parseFloat(g)),x&&(h.opacity=parseFloat(x)),b&&(h.strokeLinecap=b),v&&(h.strokeLinejoin=v),m&&m!=="none"&&(h.strokeDasharray=m),w&&(h.filter=w),_&&(h.clipPath=_),$&&(h.mask=$),[l,c,h]};try{let o=null,s={};switch(r){case"circle":{const[a,l,c]=i(e,["cx","cy","r"]),h=parseFloat(a.cx)||0,u=parseFloat(a.cy)||0,f=parseFloat(a.r)||0;o=t.circle(h,u,f*2,l),s=c;break}case"ellipse":{const[a,l,c]=i(e,["cx","cy","rx","ry"]),h=parseFloat(a.cx)||0,u=parseFloat(a.cy)||0,f=parseFloat(a.rx)||0,p=parseFloat(a.ry)||0;o=t.ellipse(h,u,f*2,p*2,l),s=c;break}case"line":{const[a,l,c]=i(e,["x1","y1","x2","y2"]),h=parseFloat(a.x1)||0,u=parseFloat(a.y1)||0,f=parseFloat(a.x2)||0,p=parseFloat(a.y2)||0;o=t.line(h,u,f,p,l),s=c;break}case"rect":{const[a,l,c]=i(e,["x","y","width","height","rx","ry"]),h=parseFloat(a.x)||0,u=parseFloat(a.y)||0,f=parseFloat(a.width)||0,p=parseFloat(a.height)||0,g=parseFloat(a.rx)||0,y=parseFloat(a.ry)||0;if(g>0||y>0){const v=z6(h,u,f,p,g||y,y||g);o=t.path(v,l)}else o=t.rectangle(h,u,f,p,l);s=c;break}case"path":{const[a,l,c]=i(e,["d"]),h=a.d||"";if(!h)return console.warn("Path element has no d attribute"),null;o=t.path(h,l),s=c;break}case"polygon":{const[a,l,c]=i(e,["points"]),h=Xf(a.points||"");if(h.length<3)return console.warn("Polygon needs at least 3 points"),null;o=t.polygon(h,l),s=c;break}case"polyline":{const[a,l,c]=i(e,["points"]),h=Xf(a.points||"");if(h.length<2)return console.warn("Polyline needs at least 2 points"),null;o=t.linearPath(h,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 z6(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,7 +27,7 @@ ${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 _f(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 wf(t,e,n){var r;const{themeConfig:i}=n,o=Object.assign({},(r=i.base)==null?void 0:r.shape,i.shape),s=Vr(e,o);return Bt(e,s),Aw(e,t,n),e}function Tw(t,e){var n;Bt(t,((n=e.themeConfig.base)==null?void 0:n.shape)||{})}function Aw(t,e,n){const r=n.themeConfig.stylize;if(!r)return t;const{type:i}=r;if(!i)return t;if(i==="rough")return Mw(t,e,r);if(i==="pattern")return rw(t,e,n);if(i==="linear-gradient"||i==="radial-gradient"){const{fill:o,stroke:s}=Se(t,["fill","stroke"]);kn(o)&&Qu(t,e,r,"fill"),kn(s)&&Qu(t,e,r,"stroke");return}}function kw(t,e){var n;const{themeConfig:r}=e,{"font-family":i=Ka}=((n=r.base)==null?void 0:n.text)||{};t.setAttribute("font-family",i)}var zw=/\s/;function Lw(t){for(var e=t.length;e--&&zw.test(t.charAt(e)););return e}var Hw=/^\s+/;function Rw(t){return t&&t.slice(0,Lw(t)+1).replace(Hw,"")}var $f=NaN,Dw=/^[-+]0x[0-9a-f]+$/i,Nw=/^0b[01]+$/i,jw=/^0o[0-7]+$/i,Bw=parseInt;function ml(t){if(typeof t=="number")return t;if(qi(t))return $f;if(qe(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=qe(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Rw(t);var n=Nw.test(t);return n||jw.test(t)?Bw(t.slice(2),n?2:8):Dw.test(t)?$f:+t}function Pf(t){return t}var yl=Hn(Ge,"WeakMap"),Of=Object.create,Fw=(function(){function t(){}return function(e){if(!qe(e))return{};if(Of)return Of(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function Vw(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 Ww(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Yw=800,Xw=16,Gw=Date.now;function qw(t){var e=0,n=0;return function(){var r=Gw(),i=Xw-(r-n);if(n=r,i>0){if(++e>=Yw)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Uw(t){return function(){return t}}var xo=(function(){try{var t=Hn(Object,"defineProperty");return t({},"",{}),t}catch(e){}})(),Zw=xo?function(t,e){return xo(t,"toString",{configurable:!0,enumerable:!1,value:Uw(e),writable:!0})}:Pf,Kw=qw(Zw);function Qw(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var Jw=9007199254740991,t6=/^(?:0|[1-9]\d*)$/;function Cf(t,e){var n=typeof t;return e=e==null?Jw:e,!!e&&(n=="number"||n!="symbol"&&t6.test(t))&&t>-1&&t%1==0&&t<e}function vl(t,e,n){e=="__proto__"&&xo?xo(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var e6=Object.prototype,n6=e6.hasOwnProperty;function Mf(t,e,n){var r=t[e];(!(n6.call(t,e)&&Ui(r,n))||n===void 0&&!(e in t))&&vl(t,e,n)}function r6(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?vl(n,a,l):Mf(n,a,l)}return n}var Sf=Math.max;function i6(t,e,n){return e=Sf(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Sf(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),Vw(t,this,a)}}function o6(t,e){return Kw(i6(t,e,Pf),t+"")}var s6=9007199254740991;function Ef(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=s6}function bo(t){return t!=null&&Ef(t.length)&&!ka(t)}function a6(t,e,n){if(!qe(n))return!1;var r=typeof e;return(r=="number"?bo(n)&&Cf(e,n.length):r=="string"&&e in n)?Ui(n[e],t):!1}function l6(t){return o6(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&&a6(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 c6=Object.prototype;function xl(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||c6;return t===n}function h6(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var d6="[object Arguments]";function If(t){return xn(t)&&zn(t)==d6}var Tf=Object.prototype,u6=Tf.hasOwnProperty,f6=Tf.propertyIsEnumerable,bl=If((function(){return arguments})())?If:function(t){return xn(t)&&u6.call(t,"callee")&&!f6.call(t,"callee")};function p6(){return!1}var Af=typeof j=="object"&&j&&!j.nodeType&&j,kf=Af&&typeof module=="object"&&module&&!module.nodeType&&module,g6=kf&&kf.exports===Af,zf=g6?Ge.Buffer:void 0,m6=zf?zf.isBuffer:void 0,_l=m6||p6,y6="[object Arguments]",v6="[object Array]",x6="[object Boolean]",b6="[object Date]",_6="[object Error]",w6="[object Function]",$6="[object Map]",P6="[object Number]",O6="[object Object]",C6="[object RegExp]",M6="[object Set]",S6="[object String]",E6="[object WeakMap]",I6="[object ArrayBuffer]",T6="[object DataView]",A6="[object Float32Array]",k6="[object Float64Array]",z6="[object Int8Array]",L6="[object Int16Array]",H6="[object Int32Array]",R6="[object Uint8Array]",D6="[object Uint8ClampedArray]",N6="[object Uint16Array]",j6="[object Uint32Array]",Wt={};Wt[A6]=Wt[k6]=Wt[z6]=Wt[L6]=Wt[H6]=Wt[R6]=Wt[D6]=Wt[N6]=Wt[j6]=!0,Wt[y6]=Wt[v6]=Wt[I6]=Wt[x6]=Wt[T6]=Wt[b6]=Wt[_6]=Wt[w6]=Wt[$6]=Wt[P6]=Wt[O6]=Wt[C6]=Wt[M6]=Wt[S6]=Wt[E6]=!1;function B6(t){return xn(t)&&Ef(t.length)&&!!Wt[zn(t)]}function wl(t){return function(e){return t(e)}}var Lf=typeof j=="object"&&j&&!j.nodeType&&j,qr=Lf&&typeof module=="object"&&module&&!module.nodeType&&module,F6=qr&&qr.exports===Lf,$l=F6&&Od.process,mr=(function(){try{var t=qr&&qr.require&&qr.require("util").types;return t||$l&&$l.binding&&$l.binding("util")}catch(e){}})(),Hf=mr&&mr.isTypedArray,Rf=Hf?wl(Hf):B6,V6=Object.prototype,W6=V6.hasOwnProperty;function Df(t,e){var n=yn(t),r=!n&&bl(t),i=!n&&!r&&_l(t),o=!n&&!r&&!i&&Rf(t),s=n||r||i||o,a=s?h6(t.length,String):[],l=a.length;for(var c in t)(e||W6.call(t,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Cf(c,l)))&&a.push(c);return a}function Nf(t,e){return function(n){return t(e(n))}}var Y6=Nf(Object.keys,Object),X6=Object.prototype,G6=X6.hasOwnProperty;function q6(t){if(!xl(t))return Y6(t);var e=[];for(var n in Object(t))G6.call(t,n)&&n!="constructor"&&e.push(n);return e}function U6(t){return bo(t)?Df(t):q6(t)}function Z6(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var K6=Object.prototype,Q6=K6.hasOwnProperty;function J6(t){if(!qe(t))return Z6(t);var e=xl(t),n=[];for(var r in t)r=="constructor"&&(e||!Q6.call(t,r))||n.push(r);return n}function jf(t){return bo(t)?Df(t,!0):J6(t)}function t7(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var Bf=Nf(Object.getPrototypeOf,Object),e7="[object Object]",n7=Function.prototype,r7=Object.prototype,Ff=n7.toString,i7=r7.hasOwnProperty,o7=Ff.call(Object);function s7(t){if(!xn(t)||zn(t)!=e7)return!1;var e=Bf(t);if(e===null)return!0;var n=i7.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Ff.call(n)==o7}function a7(t,e,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),e!==void 0&&(t=t>=e?t:e)),t}function l7(t,e,n){return n===void 0&&(n=e,e=void 0),n!==void 0&&(n=ml(n),n=n===n?n:0),e!==void 0&&(e=ml(e),e=e===e?e:0),a7(ml(t),e,n)}function c7(){this.__data__=new sn,this.size=0}function h7(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function d7(t){return this.__data__.get(t)}function u7(t){return this.__data__.has(t)}var f7=200;function p7(t,e){var n=this.__data__;if(n instanceof sn){var r=n.__data__;if(!Nr||r.length<f7-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new bn(r)}return n.set(t,e),this.size=n.size,this}function Bn(t){var e=this.__data__=new sn(t);this.size=e.size}Bn.prototype.clear=c7,Bn.prototype.delete=h7,Bn.prototype.get=d7,Bn.prototype.has=u7,Bn.prototype.set=p7;var Vf=typeof j=="object"&&j&&!j.nodeType&&j,Wf=Vf&&typeof module=="object"&&module&&!module.nodeType&&module,g7=Wf&&Wf.exports===Vf,Yf=g7?Ge.Buffer:void 0,Xf=Yf?Yf.allocUnsafe:void 0;function Gf(t,e){if(e)return t.slice();var n=t.length,r=Xf?Xf(n):new t.constructor(n);return t.copy(r),r}function m7(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function y7(){return[]}var v7=Object.prototype,x7=v7.propertyIsEnumerable,qf=Object.getOwnPropertySymbols,b7=qf?function(t){return t==null?[]:(t=Object(t),m7(qf(t),function(e){return x7.call(t,e)}))}:y7;function _7(t,e,n){var r=e(t);return yn(t)?r:t7(r,n(t))}function w7(t){return _7(t,U6,b7)}var Pl=Hn(Ge,"DataView"),Ol=Hn(Ge,"Promise"),Cl=Hn(Ge,"Set"),Uf="[object Map]",$7="[object Object]",Zf="[object Promise]",Kf="[object Set]",Qf="[object WeakMap]",Jf="[object DataView]",P7=Ln(Pl),O7=Ln(Nr),C7=Ln(Ol),M7=Ln(Cl),S7=Ln(yl),cn=zn;(Pl&&cn(new Pl(new ArrayBuffer(1)))!=Jf||Nr&&cn(new Nr)!=Uf||Ol&&cn(Ol.resolve())!=Zf||Cl&&cn(new Cl)!=Kf||yl&&cn(new yl)!=Qf)&&(cn=function(t){var e=zn(t),n=e==$7?t.constructor:void 0,r=n?Ln(n):"";if(r)switch(r){case P7:return Jf;case O7:return Uf;case C7:return Zf;case M7:return Kf;case S7:return Qf}return e});var E7=Object.prototype,I7=E7.hasOwnProperty;function T7(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&I7.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var t0=Ge.Uint8Array;function Ml(t){var e=new t.constructor(t.byteLength);return new t0(e).set(new t0(t)),e}function A7(t,e){var n=Ml(t.buffer);return new t.constructor(n,t.byteOffset,t.byteLength)}var k7=/\w*$/;function z7(t){var e=new t.constructor(t.source,k7.exec(t));return e.lastIndex=t.lastIndex,e}var e0=vn?vn.prototype:void 0,n0=e0?e0.valueOf:void 0;function L7(t){return n0?Object(n0.call(t)):{}}function r0(t,e){var n=e?Ml(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var H7="[object Boolean]",R7="[object Date]",D7="[object Map]",N7="[object Number]",j7="[object RegExp]",B7="[object Set]",F7="[object String]",V7="[object Symbol]",W7="[object ArrayBuffer]",Y7="[object DataView]",X7="[object Float32Array]",G7="[object Float64Array]",q7="[object Int8Array]",U7="[object Int16Array]",Z7="[object Int32Array]",K7="[object Uint8Array]",Q7="[object Uint8ClampedArray]",J7="[object Uint16Array]",t9="[object Uint32Array]";function e9(t,e,n){var r=t.constructor;switch(e){case W7:return Ml(t);case H7:case R7:return new r(+t);case Y7:return A7(t);case X7:case G7:case q7:case U7:case Z7:case K7:case Q7:case J7:case t9:return r0(t,n);case D7:return new r;case N7:case F7:return new r(t);case j7:return z7(t);case B7:return new r;case V7:return L7(t)}}function i0(t){return typeof t.constructor=="function"&&!xl(t)?Fw(Bf(t)):{}}var n9="[object Map]";function r9(t){return xn(t)&&cn(t)==n9}var o0=mr&&mr.isMap,i9=o0?wl(o0):r9,o9="[object Set]";function s9(t){return xn(t)&&cn(t)==o9}var s0=mr&&mr.isSet,a9=s0?wl(s0):s9,l9=1,a0="[object Arguments]",c9="[object Array]",h9="[object Boolean]",d9="[object Date]",u9="[object Error]",l0="[object Function]",f9="[object GeneratorFunction]",p9="[object Map]",g9="[object Number]",c0="[object Object]",m9="[object RegExp]",y9="[object Set]",v9="[object String]",x9="[object Symbol]",b9="[object WeakMap]",_9="[object ArrayBuffer]",w9="[object DataView]",$9="[object Float32Array]",P9="[object Float64Array]",O9="[object Int8Array]",C9="[object Int16Array]",M9="[object Int32Array]",S9="[object Uint8Array]",E9="[object Uint8ClampedArray]",I9="[object Uint16Array]",T9="[object Uint32Array]",Vt={};Vt[a0]=Vt[c9]=Vt[_9]=Vt[w9]=Vt[h9]=Vt[d9]=Vt[$9]=Vt[P9]=Vt[O9]=Vt[C9]=Vt[M9]=Vt[p9]=Vt[g9]=Vt[c0]=Vt[m9]=Vt[y9]=Vt[v9]=Vt[x9]=Vt[S9]=Vt[E9]=Vt[I9]=Vt[T9]=!0,Vt[u9]=Vt[l0]=Vt[b9]=!1;function _o(t,e,n,r,i,o){var s,a=e&l9;if(s!==void 0)return s;if(!qe(t))return t;var l=yn(t);if(l)s=T7(t);else{var c=cn(t),h=c==l0||c==f9;if(_l(t))return Gf(t,a);if(c==c0||c==a0||h&&!i)s=h?{}:i0(t);else{if(!Vt[c])return i?t:{};s=e9(t,c,a)}}o||(o=new Bn);var u=o.get(t);if(u)return u;o.set(t,s),a9(t)?t.forEach(function(g){s.add(_o(g,e,n,g,t,o))}):i9(t)&&t.forEach(function(g,y){s.set(y,_o(g,e,n,y,t,o))});var f=w7,p=l?void 0:f(t);return Qw(p||t,function(g,y){p&&(y=g,g=t[y]),Mf(s,y,_o(g,e,n,y,t,o))}),s}var A9=1,k9=4;function h0(t){return _o(t,A9|k9)}function z9(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 L9=z9();function Sl(t,e,n){(n!==void 0&&!Ui(t[e],n)||n===void 0&&!(e in t))&&vl(t,e,n)}function H9(t){return xn(t)&&bo(t)}function El(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function R9(t){return r6(t,jf(t))}function D9(t,e,n,r,i,o,s){var a=El(t,n),l=El(e,n),c=s.get(l);if(c){Sl(t,n,c);return}var h=o?o(a,l,n+"",t,e,s):void 0,u=h===void 0;if(u){var f=yn(l),p=!f&&_l(l),g=!f&&!p&&Rf(l);h=l,f||p||g?yn(a)?h=a:H9(a)?h=Ww(a):p?(u=!1,h=Gf(l,!0)):g?(u=!1,h=r0(l,!0)):h=[]:s7(l)||bl(l)?(h=a,bl(a)?h=R9(a):(!qe(a)||ka(a))&&(h=i0(l))):u=!1}u&&(s.set(l,h),i(h,l,r,o,s),s.delete(l)),Sl(t,n,h)}function d0(t,e,n,r,i){t!==e&&L9(e,function(o,s){if(i||(i=new Bn),qe(o))D9(t,e,s,n,d0,r,i);else{var a=r?r(El(t,s),o,s+"",t,e,i):void 0;a===void 0&&(a=o),Sl(t,s,a)}},jf)}var N9=ru(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),u0=l6(function(t,e,n){d0(t,e,n)});function Il(t,e,n={}){if(!e)return null;const r=t,i=Vr(r,n);Bt(r,i);const o=F9(e,r);for(const s in r.dataset)o.setAttribute(`data-${N9(s)}`,r.dataset[s]);return o}function j9(t,e,n){var r,i;const o=e.nodeName==="text"?e:null;if(!o)return null;const{data:s,themeConfig:a}=n,l=_u(e.dataset.indexes||"0"),c=String(Ad(cr(s,l),t,"")),h=Object.assign({},(r=a.base)==null?void 0:r.text,(i=a.item)==null?void 0:i[t]),u=Vr(o,h);return Il(e,e.textContent||c,u)}function B9(t,e){var n;const r=((n=e.themeConfig.base)==null?void 0:n.text)||{};Bt(t,r),r["font-family"]&&t.setAttribute("font-family",dr(r["font-family"])),t.style.userSelect="none",t.style.pointerEvents="none"}const wo=(t,e)=>t?parseFloat(t):e;function F9(t,e){const n=wo(e.dataset.x,0),r=wo(e.dataset.y,0),i=wo(e.getAttribute("width")),o=wo(e.getAttribute("height")),s=V9(e);return Object.assign(s,{x:n,y:r,width:i,height:o,"data-horizontal-align":e.dataset.horizontalAlign||"LEFT","data-vertical-align":e.dataset.verticalAlign||"TOP"}),Z4(t,s)}function V9(t){return Se(t,["font-family","font-size","font-weight","font-style","font-variant","letter-spacing","line-height","fill","stroke","stroke-width"])}const Fn=(t,e)=>{t!==e&&(e?t.replaceWith(e):t.remove())};class W9{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;Y9(e,this.options),e.style.visibility="hidden";const n=new MutationObserver(r=>{r.forEach(i=>{i.addedNodes.forEach(o=>{(o===e||o.contains(e))&&(q9(this.template,this.options),r5(this.template),n.disconnect(),e.style.visibility="")})})});return n.observe(document,{childList:!0,subtree:!0}),this.rendered=!0,e}}function Y9(t,e){X9(t,e),G9(t,e);const{themeConfig:n}=e;i5(t,n==null?void 0:n.colorBg)}function X9(t,e){var n;const{themeConfig:r,data:i}=e;o5(t,(n=r.base)==null?void 0:n.global),t.querySelectorAll("[data-element-type]").forEach(s=>{var a,l,c,h,u,f;const p=s.id||"";if(e_(s)){const g=Il(s,i.title||"",Object.assign({},(a=r.base)==null?void 0:a.text,r.title));return Fn(s,g)}if(n_(s)){const g=Il(s,i.desc||"",Object.assign({},(l=r.base)==null?void 0:l.text,r.desc));return Fn(s,g)}if(o_(s)){const g=Bu(t,s,(c=i.illus)==null?void 0:c[p]);return Fn(s,g)}if(i_(s))return Array.from(s.children).forEach(g=>{wf(t,g,e)});if(r_(s)){const g=wf(t,s,e);return Fn(s,g)}if(f_(s))return s5(t,s);if((h=s.dataset.elementType)!=null&&h.startsWith("item-")){const g=_u(s.dataset.indexes||"0"),y=s.dataset.elementType.replace("item-","");if(l_(s)||c_(s)||h_(s)){const m=j9(y,s,e);return Fn(s,m)}if(d_(s)){const m=Bu(t,s,(u=cr(i,g))==null?void 0:u.illus);return Fn(s,m)}if(Fa(s)){const m=p5(t,s,(f=cr(i,g))==null?void 0:f.icon,e);return Fn(s,m)}}if(s_(s))return B9(s,e);if(!a_(s))return Tw(s,e)}),kw(t,e)}function G9(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),Bt(t,o)}function q9(t,e){const{padding:n=0,viewBox:r}=e;r?t.setAttribute("viewBox",r):n!==void 0&&f0(t,Vn(n))}W_(U_);function U9(t="",e){if(e.width&&e.height)return{width:e.width,height:e.height};let n=0,r=0;const{fontFamily:i=Ka,fontSize:o=14,fontWeight:s="normal",lineHeight:a=1.4}=e,l=q_(t.toString(),{fontFamily:i,fontSize:+o,fontWeight:s,lineHeight:a});return n||(n=Math.ceil(l.width*1.01)),r||(r=Math.ceil(l.height*1.01)),{width:n,height:r}}const Z9=!!(typeof process!="undefined"&&process.versions&&process.versions.node);function Tl(t){const e=t.getAttribute("viewBox");if(e){const[s,a,l,c]=e.split(" ").map(Number);return{x:s,y:a,width:l,height:c}}const n=t.getAttribute("width"),r=t.getAttribute("height"),i=Number(n)||0,o=Number(r)||0;return{x:0,y:0,width:i,height:o}}function Vn(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]}function f0(t,e){if(Z9)K9(t,e);else if(document.contains(t))p0(t,e);else{const n=new MutationObserver(r=>{r.forEach(i=>{i.addedNodes.forEach(o=>{(o===t||o.contains(t))&&(Q9(t,()=>{p0(t,e)}),n.disconnect())})})});n.observe(document,{childList:!0,subtree:!0})}}function K9(t,e){const n=Tl(t),[r,i,o,s]=e;Bt(t,{viewBox:`${n.x-s} ${n.y-r} ${n.width+s+i} ${n.height+r+o}`})}function p0(t,e){const n=t.getBBox(),r=t.getBoundingClientRect(),i=r.width>0?n.width/r.width:1,o=r.height>0?n.height/r.height:1,[s,a,l,c]=e,h=s*o,u=a*i,f=l*o,p=c*i,g=n.x-p,y=n.y-h,m=n.width+p+u,x=n.height+h+f;Bt(t,{viewBox:`${g} ${y} ${m} ${x}`})}function Q9(t,e){requestAnimationFrame(()=>{const n=()=>{const r=t.getBoundingClientRect();r.width>0&&r.height>0?e():requestAnimationFrame(n)};n()})}function Ue(t,e){if(document.getElementById(t))return;const n=document.createElement("style");n.id=t,n.textContent=e,document.head.appendChild(n)}function J9(){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)})}var t8=Object.defineProperty,e8=Object.defineProperties,n8=Object.getOwnPropertyDescriptors,$o=Object.getOwnPropertySymbols,g0=Object.prototype.hasOwnProperty,m0=Object.prototype.propertyIsEnumerable,y0=(t,e,n)=>e in t?t8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_e=(t,e)=>{for(var n in e||(e={}))g0.call(e,n)&&y0(t,n,e[n]);if($o)for(var n of $o(e))m0.call(e,n)&&y0(t,n,e[n]);return t},Al=(t,e)=>e8(t,n8(e)),r8=(t,e)=>{var n={};for(var r in t)g0.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&$o)for(var r of $o(t))e.indexOf(r)<0&&m0.call(t,r)&&(n[r]=t[r]);return n};function $t(t){const e=t,{id:n,x:r=0,y:i=0,width:o,height:s,alignHorizontal:a="left",alignVertical:l="top",children:c,fontSize:h=14,fontFamily:u,fontStyle:f,fontWeight:p,textDecoration:g,letterSpacing:y,wordSpacing:m,opacity:x,fill:v="black",lineHeight:b,wordWrap:_,backgroundColor:w="none",backgroundOpacity:$=1,backgroundRadius:P=0}=e,O=r8(e,["id","x","y","width","height","alignHorizontal","alignVertical","children","fontSize","fontFamily","fontStyle","fontWeight","textDecoration","letterSpacing","wordSpacing","opacity","fill","lineHeight","wordWrap","backgroundColor","backgroundOpacity","backgroundRadius"]);let T=o,I=s,S=0,R=0;if(!T||!I){const B=U9(c,t);T||(T=B.width),I||(I=B.height)}o&&(S=a==="center"?T/2:a==="right"?T:0),s&&(R=l==="middle"?I/2:l==="bottom"?I:0);const M=Object.entries(_e(_e({width:T,height:I},b!==void 0&&{"line-height":b}),_!==void 0&&{"data-word-wrap":_})).reduce((B,[Y,L])=>Al(_e({},B),{[Y]:L}),{}),k=_e(_e(_e(_e(_e(_e(_e(_e(_e({"data-element-type":"text",width:T,height:I,x:S,y:R,"data-x":0,"data-y":0,fill:v,fontSize:h,textAnchor:a==="center"?"middle":a==="right"?"end":"start",dominantBaseline:l==="middle"?"central":l==="bottom"?"baseline":"hanging","data-horizontal-align":a.toUpperCase(),"data-vertical-align":l.toUpperCase(),children:c},M),O),u&&{fontFamily:u}),f&&{fontStyle:f}),p&&{fontWeight:p}),g&&g!=="none"&&{textDecoration:g}),y&&{letterSpacing:y}),m&&{wordSpacing:m}),x!==void 0&&x!==1&&{opacity:x}),D=_e(Al(_e({},r!==0||i!==0?{x:r,y:i,transform:`translate(${r}, ${i})`}:{}),{width:T,height:I}),n&&{id:n}),N=w&&w!=="none"?{"data-element-type":"shape",x:0,y:0,width:T,height:I,fill:w,fillOpacity:$,rx:P,ry:P}:void 0;return{type:"g",props:Al(_e({},D),{children:[...N?[{type:"rect",props:N}]:[],{type:"text",props:k}]})}}const Ur=Symbol.for("@antv/infographic/Fragment");function Po(t,e={}){return{type:t,props:e}}function i8(t={}){return Po(Ur,t)}const o8=Po,s8=Po;function a8(t){return!t||typeof t!="object"||Array.isArray(t)?!1:t.type===Ur}function v0(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&"type"in t}function Zr(t){return Kr(t).filter(v0)}function Kr(t,e=[]){var n;if(!t||typeof t=="boolean")return e;if(Array.isArray(t))t.forEach(r=>Kr(r,e));else if(a8(t)){const r=(n=t.props)==null?void 0:n.children;(Array.isArray(r)?r:[r]).filter(Boolean).forEach(i=>{Kr(i,e)})}else e.push(t);return e}function zt(t){return typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t)}const Oo=()=>({x:0,y:0,width:0,height:0});function yr(t){if(!t||t.length===0)return Oo();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,h=s+l,u=a+c;s<e&&(e=s),a<n&&(n=a),h>r&&(r=h),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 tt(t){var e,n,r,i;if(!t)return Oo();if(Array.isArray(t)){const p=Zr(t);return Wn(p)}if(typeof t!="object")return Oo();const{type:o,props:s={}}=t;if(Dl(t)){const p=O0(t);return tt(p)}if(typeof o=="function"){const p=(e=s.x)!=null?e:0,g=(n=s.y)!=null?n:0,y=s.width,m=s.height;if(zt(y)&&zt(m))return{x:p,y:g,width:y,height:m};const x=o(s);if(!x)return{x:p,y:g,width:y!=null?y:0,height:m!=null?m:0};if(Array.isArray(x)){const v=Zr(x),b=Wn(v);if(zt(y)&&zt(m))return{x:p,y:g,width:y,height:m};const _=b.width!==0?b.width:y!=null?y:0,w=b.height!==0?b.height:m!=null?m:0;return{x:p+b.x,y:g+b.y,width:_,height:w}}if(v0(x)){const v=x,b=tt(v);if(l8(v,s))return b;const _=v.props&&zt(v.props.width)&&zt(v.props.height),P=x0(v).flatMap(S=>Zr(S)).length>0,O=v.props&&v.props.x===s.x&&v.props.y===s.y;if(_)return{x:O?b.x:p+b.x,y:O?b.y:g+b.y,width:b.width,height:b.height};if(zt(y)&&zt(m))return P?{x:O?b.x:p,y:O?b.y:g,width:y,height:m}:{x:O?b.x:p+b.x,y:O?b.y:g+b.y,width:y,height:m};const T=b.width!==0?b.width:y!=null?y:0,I=b.height!==0?b.height:m!=null?m:0;return{x:O?b.x:p+b.x,y:O?b.y:g+b.y,width:T,height:I}}return{x:p,y:g,width:y!=null?y:0,height:m!=null?m:0}}const a=(r=s.x)!=null?r:0,l=(i=s.y)!=null?i:0,c=zt(s.width)?s.width:void 0,h=zt(s.height)?s.height:void 0;if(zt(c)&&zt(h))return{x:a,y:l,width:c,height:h};const f=x0(t).flatMap(p=>Zr(p));if(f.length>0){const p=Wn(f);return{x:a+p.x,y:l+p.y,width:zt(c)?c:p.width,height:zt(h)?h:p.height}}return{x:a,y:l,width:c!=null?c:0,height:h!=null?h:0}}function Wn(t){if(!t||!Array.isArray(t)||t.length===0)return Oo();const e=[];for(const n of t){const r=Zr(n);for(const i of r){const o=tt(i);o&&e.push(o)}}return yr(e)}function l8(t,e){if(!(t!=null&&t.props)||!e)return!1;const n=t.props;if(zt(n.x)&&zt(n.y)&&zt(e.x)&&zt(e.y)&&n.x===e.x&&n.y===e.y){const r=zt(n.width)&&zt(n.height),i=zt(e.width)&&zt(e.height);if(!r&&!i)return!0}return zt(n.x)&&zt(n.y)&&zt(n.width)&&zt(n.height)&&zt(e.x)&&zt(e.y)&&zt(e.width)&&zt(e.height)?n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height:!1}function x0(t){var e;const n=(e=t.props)==null?void 0:e.children;return n?Array.isArray(n)?n:[n]:[]}function kl(t){var e;return t==null||typeof t=="boolean"?[]:Array.isArray(t)?Kr(t):typeof t=="object"?Kr((e=t.props)==null?void 0:e.children):[t]}var c8=Object.defineProperty,Co=Object.getOwnPropertySymbols,b0=Object.prototype.hasOwnProperty,_0=Object.prototype.propertyIsEnumerable,w0=(t,e,n)=>e in t?c8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zl=(t,e)=>{for(var n in e||(e={}))b0.call(e,n)&&w0(t,n,e[n]);if(Co)for(var n of Co(e))_0.call(e,n)&&w0(t,n,e[n]);return t},h8=(t,e)=>{var n={};for(var r in t)b0.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&&_0.call(t,r)&&(n[r]=t[r]);return n};const $n=(t,e)=>{const n=t,{type:r,props:i}=n,o=h8(n,["type","props"]);return zl({type:r,props:zl(zl({},i),e)},o)},$0=()=>({defs:new Map});function Ll(t){const e={"&":"&","<":"<",">":">",'"':""","'":"'"};return String(t).replace(/[&<>"']/g,n=>e[n])}const P0={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 d8(t){return P0[t]?P0[t]:t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}const Hl=new Map;function Rl(t){const e=Symbol("layout");return Hl.set(e,t),r=>({type:e,props:r})}function Dl(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)&&typeof t.type=="symbol"&&Hl.has(t.type)}function O0(t,e=$0()){const n=Hl.get(t.type);if(!n)return console.warn("Layout function not found for symbol:",t.type),t;const r=kl(t).filter(i=>typeof i=="object");return n(r,t.props,e)}var u8=Object.defineProperty,f8=Object.defineProperties,p8=Object.getOwnPropertyDescriptors,Mo=Object.getOwnPropertySymbols,C0=Object.prototype.hasOwnProperty,M0=Object.prototype.propertyIsEnumerable,S0=(t,e,n)=>e in t?u8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,g8=(t,e)=>{for(var n in e||(e={}))C0.call(e,n)&&S0(t,n,e[n]);if(Mo)for(var n of Mo(e))M0.call(e,n)&&S0(t,n,e[n]);return t},m8=(t,e)=>f8(t,p8(e)),E0=(t,e)=>{var n={};for(var r in t)C0.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Mo)for(var r of Mo(t))e.indexOf(r)<0&&M0.call(t,r)&&(n[r]=t[r]);return n};function Qr(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=>Qr(r,e)).filter(Boolean);if(Dl(t)){const r=O0(t,e);return Qr(r,e)}if(typeof t.type=="function"){const r=t.type(t.props);return Qr(r,e)}const n=kl(t).map(r=>Qr(r,e)).filter(Boolean);return t.type===Ur?n:t.type===Xs?(n.forEach(r=>{typeof r=="object"&&r.props.id&&e.defs.set(r.props.id,r)}),null):n.length?$n(t,{children:n}):t}function Jr(t,e){if(t==null)return"";if(typeof t=="string")return Ll(t);if(typeof t=="number")return String(t);const{type:n,props:r}=t;if(!n)return"";const i=kl(t);if(n===Ur)return i.map(l=>Jr(l)).filter(Boolean).join("");if(n===Xs)return"";if(typeof n=="function"||Dl(t))return console.warn("Unexpected unprocessed component in render:",t),"";const o=T0(r),s=i.map(l=>Jr(l)).filter(Boolean).join(""),a=String(n);return s?`<${a}${o}>${s}</${a}>`:`<${a}${o} />`}function I0(t,e={}){const n=$0(),r=Qr(t,n);if(!r)return"";const i=Array.isArray(r)?r.map(m=>Jr(m)).join(""):Jr(r),o=e,{x:s,y:a,width:l,height:c,style:h}=o,u=E0(o,["x","y","width","height","style"]),f=m8(g8({},u),{xmlns:"http://www.w3.org/2000/svg"});if(!f.viewBox)if(l&&c)f.viewBox=`${s!=null?s:0} ${a!=null?a:0} ${l!=null?l:0} ${c!=null?c:0}`;else{const m=tt(r);if(m){const{x,y:v,width:b,height:_}=m;f.viewBox=`${x} ${v} ${b} ${_}`}}const p=T0(f),g=y8(h),y=n.defs.size?`<defs>${Array.from(n.defs.values()).map(m=>Jr(m)).join("")}</defs>`:"";return`<svg${p}${g}>${y}${i}</svg>`}function T0(t){if(!t)return"";const e=t,{children:n}=e,r=E0(e,["children"]);return Object.entries(r).filter(([,i])=>i!=null).map(([i,o])=>{const s=d8(i),a=typeof o=="string"?Ll(String(o)):String(o);return` ${s}="${a}"`}).join("")}function y8(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="${Ll(e)}"`}var v8=Object.defineProperty,So=Object.getOwnPropertySymbols,A0=Object.prototype.hasOwnProperty,k0=Object.prototype.propertyIsEnumerable,z0=(t,e,n)=>e in t?v8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Eo=(t,e)=>{for(var n in e||(e={}))A0.call(e,n)&&z0(t,n,e[n]);if(So)for(var n of So(e))k0.call(e,n)&&z0(t,n,e[n]);return t},L0=(t,e)=>{var n={};for(var r in t)A0.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&So)for(var r of So(t))e.indexOf(r)<0&&k0.call(t,r)&&(n[r]=t[r]);return n};const K=t=>{const e=t,{indexes:n}=e,r=L0(e,["indexes"]),i={fill:"#B9EBCA",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":Ct.BtnAdd};return d(xt,Eo(Eo({},i),r))},Ht=t=>{const e=t,{indexes:n}=e,r=L0(e,["indexes"]),i={fill:"#F9C0C0",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":Ct.BtnRemove};return d(xt,Eo(Eo({},i),r))};var x8=Object.defineProperty,b8=Object.defineProperties,_8=Object.getOwnPropertyDescriptors,H0=Object.getOwnPropertySymbols,w8=Object.prototype.hasOwnProperty,$8=Object.prototype.propertyIsEnumerable,R0=(t,e,n)=>e in t?x8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,P8=(t,e)=>{for(var n in e||(e={}))w8.call(e,n)&&R0(t,n,e[n]);if(H0)for(var n of H0(e))$8.call(e,n)&&R0(t,n,e[n]);return t},O8=(t,e)=>b8(t,_8(e));const bt=t=>d(X,O8(P8({"data-element-type":Ct.BtnsGroup,width:0,height:0},t),{display:"none"})),Yt=()=>d(It,{});var C8=Object.defineProperty,Io=Object.getOwnPropertySymbols,D0=Object.prototype.hasOwnProperty,N0=Object.prototype.propertyIsEnumerable,j0=(t,e,n)=>e in t?C8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Nl=(t,e)=>{for(var n in e||(e={}))D0.call(e,n)&&j0(t,n,e[n]);if(Io)for(var n of Io(e))N0.call(e,n)&&j0(t,n,e[n]);return t},M8=(t,e)=>{var n={};for(var r in t)D0.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Io)for(var r of Io(t))e.indexOf(r)<0&&N0.call(t,r)&&(n[r]=t[r]);return n};const B0=t=>{var e=t,{indexes:n}=e,r=M8(e,["indexes"]);const o=Nl(Nl({},{fill:"lightgray"}),r);return n?(o["data-indexes"]=n,o["data-element-type"]=Ct.ItemsIllus):o["data-element-type"]=Ct.Illus,d(xt,Nl({},o))};var S8=Object.defineProperty,E8=Object.defineProperties,I8=Object.getOwnPropertyDescriptors,To=Object.getOwnPropertySymbols,F0=Object.prototype.hasOwnProperty,V0=Object.prototype.propertyIsEnumerable,W0=(t,e,n)=>e in t?S8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Y0=(t,e)=>{for(var n in e||(e={}))F0.call(e,n)&&W0(t,n,e[n]);if(To)for(var n of To(e))V0.call(e,n)&&W0(t,n,e[n]);return t},T8=(t,e)=>E8(t,I8(e)),A8=(t,e)=>{var n={};for(var r in t)F0.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&To)for(var r of To(t))e.indexOf(r)<0&&V0.call(t,r)&&(n[r]=t[r]);return n};const Ft=t=>{var e=t,{indexes:n,lineNumber:r=2,children:i}=e,o=A8(e,["indexes","lineNumber","children"]),s;if(!i)return null;const a=Y0({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)),d($t,T8(Y0({},a),{"data-indexes":n,"data-element-type":Ct.ItemDesc}))};var k8=Object.defineProperty,z8=Object.defineProperties,L8=Object.getOwnPropertyDescriptors,Ao=Object.getOwnPropertySymbols,X0=Object.prototype.hasOwnProperty,G0=Object.prototype.propertyIsEnumerable,q0=(t,e,n)=>e in t?k8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ti=(t,e)=>{for(var n in e||(e={}))X0.call(e,n)&&q0(t,n,e[n]);if(Ao)for(var n of Ao(e))G0.call(e,n)&&q0(t,n,e[n]);return t},ko=(t,e)=>z8(t,L8(e)),U0=(t,e)=>{var n={};for(var r in t)X0.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ao)for(var r of Ao(t))e.indexOf(r)<0&&G0.call(t,r)&&(n[r]=t[r]);return n};const ge=t=>{const e=t,{indexes:n,size:r=32}=e,i=U0(e,["indexes","size"]),o=ti({fill:"lightgray",width:r,height:r},i);return d(xt,ko(ti({},o),{"data-indexes":n,"data-element-type":"item-icon"}))},Yn=t=>{const e=t,{indexes:n,size:r=50,fill:i,colorBg:o="white"}=e,s=U0(e,["indexes","size","fill","colorBg"]),a=r/Math.SQRT2*.9,l=(r-a)/2,c=ko(ti({fill:o},s),{x:l,y:l,width:a,height:a});return E(X,ko(ti({},s),{width:r,height:r,"data-element-type":Ct.ItemIconGroup,children:[d(St,{width:r,height:r,fill:i,"data-element-type":"shape"}),d(xt,ko(ti({},c),{"data-indexes":n,"data-element-type":Ct.ItemIcon}))]}))};var H8=Object.defineProperty,R8=Object.defineProperties,D8=Object.getOwnPropertyDescriptors,zo=Object.getOwnPropertySymbols,Z0=Object.prototype.hasOwnProperty,K0=Object.prototype.propertyIsEnumerable,Q0=(t,e,n)=>e in t?H8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,J0=(t,e)=>{for(var n in e||(e={}))Z0.call(e,n)&&Q0(t,n,e[n]);if(zo)for(var n of zo(e))K0.call(e,n)&&Q0(t,n,e[n]);return t},N8=(t,e)=>R8(t,D8(e)),j8=(t,e)=>{var n={};for(var r in t)Z0.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&zo)for(var r of zo(t))e.indexOf(r)<0&&K0.call(t,r)&&(n[r]=t[r]);return n};const vt=t=>{var e=t,{indexes:n,children:r}=e,i=j8(e,["indexes","children"]),o;const s=J0({fontSize:18,fontWeight:"bold",fill:"#252525",lineHeight:1.4,children:r},i);return(o=s.height)!=null||(s.height=Math.ceil(+s.lineHeight*+s.fontSize)),d($t,N8(J0({},s),{"data-indexes":n,"data-element-type":Ct.ItemLabel}))};var B8=Object.defineProperty,tp=Object.getOwnPropertySymbols,F8=Object.prototype.hasOwnProperty,V8=Object.prototype.propertyIsEnumerable,ep=(t,e,n)=>e in t?B8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,W8=(t,e)=>{for(var n in e||(e={}))F8.call(e,n)&&ep(t,n,e[n]);if(tp)for(var n of tp(e))V8.call(e,n)&&ep(t,n,e[n]);return t};const Pt=t=>d(X,W8({"data-element-type":Ct.ItemsGroup},t));var Y8=Object.defineProperty,X8=Object.defineProperties,G8=Object.getOwnPropertyDescriptors,Lo=Object.getOwnPropertySymbols,np=Object.prototype.hasOwnProperty,rp=Object.prototype.propertyIsEnumerable,ip=(t,e,n)=>e in t?Y8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,op=(t,e)=>{for(var n in e||(e={}))np.call(e,n)&&ip(t,n,e[n]);if(Lo)for(var n of Lo(e))rp.call(e,n)&&ip(t,n,e[n]);return t},q8=(t,e)=>X8(t,G8(e)),U8=(t,e)=>{var n={};for(var r in t)np.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&&rp.call(t,r)&&(n[r]=t[r]);return n};const ei=t=>{var e=t,{indexes:n,value:r,formatter:i=l=>String(l)}=e,o=U8(e,["indexes","value","formatter"]),s;const a=op({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)),d($t,q8(op({},a),{"data-indexes":n,"data-element-type":Ct.ItemValue}))};var Z8=Object.defineProperty,sp=Object.getOwnPropertySymbols,K8=Object.prototype.hasOwnProperty,Q8=Object.prototype.propertyIsEnumerable,ap=(t,e,n)=>e in t?Z8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,J8=(t,e)=>{for(var n in e||(e={}))K8.call(e,n)&&ap(t,n,e[n]);if(sp)for(var n of sp(e))Q8.call(e,n)&&ap(t,n,e[n]);return t};const qt=t=>d(X,J8({"data-element-type":"shapes-group"},t));var t$=Object.defineProperty,e$=Object.defineProperties,n$=Object.getOwnPropertyDescriptors,Ho=Object.getOwnPropertySymbols,lp=Object.prototype.hasOwnProperty,cp=Object.prototype.propertyIsEnumerable,hp=(t,e,n)=>e in t?t$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ro=(t,e)=>{for(var n in e||(e={}))lp.call(e,n)&&hp(t,n,e[n]);if(Ho)for(var n of Ho(e))cp.call(e,n)&&hp(t,n,e[n]);return t},dp=(t,e)=>e$(t,n$(e)),r$=(t,e)=>{var n={};for(var r in t)lp.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ho)for(var r of Ho(t))e.indexOf(r)<0&&cp.call(t,r)&&(n[r]=t[r]);return n};const ni=Rl((t,e)=>{var n=e,{horizontal:r,vertical:i}=n,o=r$(n,["horizontal","vertical"]),s,a,l,c;if(!t||t.length===0)return d(X,Ro({},o));const h=t.map(v=>tt(v)),u=Wn(t),f=(s=o.x)!=null?s:u.x,p=(a=o.y)!=null?a:u.y,g=(l=o.width)!=null?l:u.width,y=(c=o.height)!=null?c:u.height,m=t.map((v,b)=>{const _=h[b],w=Ro({},v.props);if(r!==void 0)switch(r){case"left":w.x=0;break;case"center":w.x=(g-_.width)/2;break;case"right":w.x=g-_.width;break}else w.x===void 0&&(w.x=_.x-f);if(i!==void 0)switch(i){case"top":w.y=0;break;case"middle":w.y=(y-_.height)/2;break;case"bottom":w.y=y-_.height;break}else w.y===void 0&&(w.y=_.y-p);return $n(v,w)}),x=dp(Ro({},o),{x:f,y:p,width:g,height:y});return d(X,dp(Ro({},x),{children:m}))});var i$=Object.defineProperty,o$=Object.defineProperties,s$=Object.getOwnPropertyDescriptors,Do=Object.getOwnPropertySymbols,up=Object.prototype.hasOwnProperty,fp=Object.prototype.propertyIsEnumerable,pp=(t,e,n)=>e in t?i$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xn=(t,e)=>{for(var n in e||(e={}))up.call(e,n)&&pp(t,n,e[n]);if(Do)for(var n of Do(e))fp.call(e,n)&&pp(t,n,e[n]);return t},gp=(t,e)=>o$(t,s$(e)),a$=(t,e)=>{var n={};for(var r in t)up.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Do)for(var r of Do(t))e.indexOf(r)<0&&fp.call(t,r)&&(n[r]=t[r]);return n};const ot=Rl((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=a$(n,["flexDirection","justifyContent","alignItems","alignContent","flexWrap","gap"]),h,u,f,p,g,y;if(!t||t.length===0)return d(X,Xn({},c));const m=r==="row"||r==="row-reverse",x=r==="row-reverse"||r==="column-reverse",v=t.map(M=>tt(M)),b=Wn(t),_=(h=c.width)!=null?h:b.width,w=(u=c.height)!=null?u:b.height,$=c.width!==void 0&&c.height!==void 0,P=[];if(a==="wrap"&&$){let M=[],A=[],W=0;for(let k=0;k<t.length;k++){const D=t[k],z=v[k],N=m?z.width:z.height,B=m?_:w;M.length===0||W+l+N<=B?(M.push(D),A.push(z),W+=(M.length>1?l:0)+N):(P.push({children:M,bounds:A}),M=[D],A=[z],W=N)}M.length>0&&P.push({children:M,bounds:A})}else P.push({children:t,bounds:v});const O=[];let T=0;const I=[];if(P.forEach(M=>{const{children:A,bounds:W}=M,k=W.reduce((L,C,H)=>{const F=m?C.width:C.height;return L+F+(H>0?l:0)},0),D=Math.max(...W.map(L=>m?L.height:L.width));I.push(D);let z=0;const N=(m?_:w)-k;if($)switch(i){case"flex-end":z=N;break;case"center":z=N/2;break;case"space-between":z=0;break;default:z=0;break}let B=l;$&&i==="space-between"&&A.length>1&&(B=N/(A.length-1)+l);let Y=z;A.forEach((L,C)=>{const H=W[C],F=m?H.width:H.height,Q=m?H.height:H.width;let V=T;if($)switch(o){case"flex-end":V=T+D-Q;break;case"center":V=T+(D-Q)/2;break;default:V=T;break}let q,G;m?(q=x?_-Y-F:Y,G=V):(q=V,G=x?w-Y-F:Y);const U=$n(L,{x:q,y:G});O.push(U),Y+=F+B}),T+=D+l}),P.length>1&&$){const M=I.reduce((k,D)=>k+D,0)+(P.length-1)*l,A=(m?w:_)-M;let W=0;switch(s){case"flex-end":W=A;break;case"center":W=A/2;break;case"space-between":if(P.length>1){const k=A/(P.length-1);let D=0;P.forEach((z,N)=>{const B=P.slice(0,N).reduce((L,C)=>L+C.children.length,0),Y=B+z.children.length;for(let L=B;L<Y;L++){const C=O[L],H=Xn({},C.props);m?H.y=(H.y||0)+D:H.x=(H.x||0)+D,O[L]=$n(C,H)}D+=I[N]+l+(N<P.length-1?k:0)});break}break;default:W=0;break}W!==0&&s!=="space-between"&&O.forEach((k,D)=>{const z=Xn({},k.props);m?z.y=(z.y||0)+W:z.x=(z.x||0)+W,O[D]=$n(k,z)})}if(!$&&o==="center")if(m){const M=Math.max(...v.map(A=>A.height));O.forEach((A,W)=>{const k=v[W],D=(M-k.height)/2,z=Xn({},A.props);z.y=(z.y||0)+D,O[W]=$n(A,z)})}else{const M=Math.max(...v.map(A=>A.width));O.forEach((A,W)=>{const k=v[W],D=(M-k.width)/2,z=Xn({},A.props);z.x=(z.x||0)+D,O[W]=$n(A,z)})}const S=Wn(O),R=gp(Xn({},c),{x:(f=c.x)!=null?f:b.x,y:(p=c.y)!=null?p:b.y,width:(g=c.width)!=null?g:S.width,height:(y=c.height)!=null?y:S.height});return d(X,gp(Xn({},R),{children:O}))});var l$=Object.defineProperty,c$=Object.defineProperties,h$=Object.getOwnPropertyDescriptors,mp=Object.getOwnPropertySymbols,d$=Object.prototype.hasOwnProperty,u$=Object.prototype.propertyIsEnumerable,yp=(t,e,n)=>e in t?l$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,No=(t,e)=>{for(var n in e||(e={}))d$.call(e,n)&&yp(t,n,e[n]);if(mp)for(var n of mp(e))u$.call(e,n)&&yp(t,n,e[n]);return t},vp=(t,e)=>c$(t,h$(e));const xp=t=>{const{x:e=0,y:n=0,alignHorizontal:r="center",title:i,desc:o,descLineNumber:s=2,themeColors:a}=t,l=h=>{const u={fontSize:24,fill:a.colorPrimaryText,lineHeight:1.4,alignHorizontal:r};return d($t,vp(No(No({},u),h),{"data-element-type":"title",children:i}))},c=h=>{const u={fontSize:16,fill:a.colorTextSecondary,alignHorizontal:r,lineHeight:1.4,height:s*24};return d($t,vp(No(No({},u),h),{"data-element-type":"desc",children:o}))};return!i&&!o?null:E(ot,{flexDirection:"column",justifyContent:"center",alignItems:"center",x:e,y:n,gap:8,children:[i&&d(l,{}),o&&d(c,{})]})},jl=new Map;function Bl(t,e){jl.set(t,e)}function bp(t){return jl.get(t)}function f$(){return Array.from(jl.keys())}Bl("dark",{colorBg:"#1F1F1F",base:{text:{fill:"#fff"}}}),Bl("hand-drawn",{base:{text:{"font-family":"851tegakizatsu"}},stylize:{type:"rough"}});var p$=Object.defineProperty,g$=Object.defineProperties,m$=Object.getOwnPropertyDescriptors,_p=Object.getOwnPropertySymbols,y$=Object.prototype.hasOwnProperty,v$=Object.prototype.propertyIsEnumerable,wp=(t,e,n)=>e in t?p$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ri=(t,e)=>{for(var n in e||(e={}))y$.call(e,n)&&wp(t,n,e[n]);if(_p)for(var n of _p(e))v$.call(e,n)&&wp(t,n,e[n]);return t},ii=(t,e)=>g$(t,m$(e));Tt(dd);const $p=({colorPrimary:t,colorBg:e="#ffffff",isDarkMode:n=!1})=>{const r=Xe(t),i=Xe(e),o=P$({primaryColor:r,bgColor:i});return O$(o,{primaryColor:r,bgColor:i,isDarkMode:n})},x$=(t,e)=>vx(ii(ri({},t),{alpha:e?.2:.1}))||"#ffffff",b$=(t,e)=>{if(e)return"#ffffff";const n=Xe("#262626");return Aa(n,t)>=7?Hr(n):"#000000"},_$=t=>{const e=$d(Xe(t)),n=ii(ri({},e),{l:Math.min(1,e.l+.2)});return Hr(n)},w$=(t,e)=>{const n=Xe(t),r=Xe("#262626"),i=Xe("#ffffff"),o=Aa(r,n);return Aa(i,n)>=3?Hr(i):o>=4.5?Hr(r):"#ffffff"},$$=(t,e)=>{const n=$d(t);if(e){const r=ii(ri({},n),{l:Math.min(1,n.l+.1)});return jo(r,"#1f1f1f")}else{if(n.l>.95)return"#ffffff";{const r=ii(ri({},n),{l:Math.min(1,n.l+.05)});return jo(r,"#ffffff")}}},P$=({primaryColor:t,bgColor:e})=>({colorPrimary:jo(t,"#FF356A"),colorBg:jo(e,"#ffffff"),colorWhite:"#ffffff"}),O$=(t,{primaryColor:e,bgColor:n,isDarkMode:r})=>{const i=b$(n,r),o=x$(e,r);return ii(ri({},t),{isDarkMode:r,colorPrimaryBg:o,colorText:i,colorTextSecondary:_$(i),colorPrimaryText:w$(o,r),colorBgElevated:$$(n,r)})};function jo(t,e="#000000"){var n;return(n=Hr(t))!=null?n:e}const Fl="#FF356A";function oe(t){var e;return((e=t==null?void 0:t.themeConfig)==null?void 0:e.colorPrimary)||Fl}function Pp(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||Fl):r.items.map((s,a)=>no(o,[a],r.items.length)||Fl)}function _t(t,e){var n,r,i;return no((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 me(t,e){var n;const{colorBg:r=((n=e==null?void 0:e.themeConfig)==null?void 0:n.colorBg)||"white",colorPrimary:i=e?oe(e):"black"}=t;return $p({colorPrimary:i,isDarkMode:Pd(r),colorBg:r})}function oi(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 C$=Object.defineProperty,Op=Object.getOwnPropertySymbols,M$=Object.prototype.hasOwnProperty,S$=Object.prototype.propertyIsEnumerable,Cp=(t,e,n)=>e in t?C$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,E$=(t,e)=>{for(var n in e||(e={}))M$.call(e,n)&&Cp(t,n,e[n]);if(Op)for(var n of Op(e))S$.call(e,n)&&Cp(t,n,e[n]);return t};function Dt(t,e=[]){const n=E$({},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 Bo(t,e){var n;return t.length===0?()=>null:e===void 0?t[0]:(n=t[e])!=null?n:t[0]}const Vl=new Map;function Nt(t,e){Vl.set(t,e)}function Mp(t){return Vl.get(t)}function I$(){return Array.from(Vl.keys())}var T$=Object.defineProperty,A$=Object.defineProperties,k$=Object.getOwnPropertyDescriptors,Sp=Object.getOwnPropertySymbols,z$=Object.prototype.hasOwnProperty,L$=Object.prototype.propertyIsEnumerable,Ep=(t,e,n)=>e in t?T$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,H$=(t,e)=>{for(var n in e||(e={}))z$.call(e,n)&&Ep(t,n,e[n]);if(Sp)for(var n of Sp(e))L$.call(e,n)&&Ep(t,n,e[n]);return t},R$=(t,e)=>A$(t,k$(e));const Ip=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:h},u]=Dt(t,["width","height","iconSize","badgeSize","gap"]),f=e.value,p=f!==void 0,g=!!e.desc,y=!!e.icon,m=`${c.colorPrimary}-badge`,x=l==="flipped"?r-a-s:a,v=y?l==="flipped"?a:s+2*a:a,b=r-a*2,_=y?r-s-3*a:b,w=a+14+18+8,$=w-a,P=g?a:(i-s)/2,O=!p&&!g?(i-14)/2:a;return E(X,R$(H$({},u),{width:r,height:i,children:[d(Mt,{children:E("radialGradient",{id:m,cx:"50%",cy:"50%",r:"50%",children:[d("stop",{offset:"0%",stopColor:c.colorPrimary}),d("stop",{offset:"100%",stopColor:it(c.colorPrimary).darken(20).toHexString()})]})}),d(xt,{"data-element-type":"shape",x:0,y:0,width:r,height:i,fill:c.colorPrimaryBg,rx:8,ry:8}),y&&E(It,{children:[d(St,{x,y:P,width:s,height:s,fill:`url(#${m})`}),d(ge,{indexes:n,x:x+(s-o)/2,y:P+(s-o)/2,size:o,fill:c.colorWhite})]}),E(ot,{flexDirection:"column",x:v,y:O,width:_,height:!p&&!g?void 0:$,alignItems:"center",justifyContent:"center",children:[d(vt,{indexes:n,width:_,alignHorizontal:l==="flipped"?"right":"left",alignVertical:"middle",fontSize:14,fill:c.colorText,children:e.label}),p&&d(ei,{indexes:n,width:_,alignHorizontal:l==="flipped"?"right":"left",alignVertical:"middle",fontSize:18,lineHeight:1,fontWeight:"bold",fill:c.colorPrimary,value:f,formatter:h})]}),g&&d(Ft,{indexes:n,x:a,y:w,width:b,alignHorizontal:l==="flipped"?"right":"left",fontSize:11,fill:c.colorTextSecondary,lineNumber:2,lineHeight:1.2,wordWrap:!0,children:e.desc})]}))};Nt("badge-card",{component:Ip,composites:["icon","label","value","desc"]});var D$=Object.defineProperty,N$=Object.defineProperties,j$=Object.getOwnPropertyDescriptors,Tp=Object.getOwnPropertySymbols,B$=Object.prototype.hasOwnProperty,F$=Object.prototype.propertyIsEnumerable,Ap=(t,e,n)=>e in t?D$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,V$=(t,e)=>{for(var n in e||(e={}))B$.call(e,n)&&Ap(t,n,e[n]);if(Tp)for(var n of Tp(e))F$.call(e,n)&&Ap(t,n,e[n]);return t},W$=(t,e)=>N$(t,j$(e));const kp=t=>{const[{indexes:e,datum:n,width:r=280,height:i=140,themeColors:o},s]=Dt(t,["width","height"]);return E(X,W$(V$({},s),{children:[d("rect",{x:0,y:0,width:r,height:i,rx:22,ry:22,fill:o.colorPrimaryBg,stroke:o.colorPrimary,"data-element-type":"shape"}),d(at,{x:r-85,y:.5,width:85,height:65,d:"M0 0H62.4495C74.9557 0 85.4549 10.8574 84.4557 23.1875V60.1875L77.8772 62.5839C64.3776 67.6876 48.51 64.6893 37.8662 53.7441L10.2361 25.3312C4.91402 19.8571 1.65356 13.1736 0.435652 6.21819L0 0Z",fill:o.colorBg,"data-element-type":"shape"}),d(vt,{indexes:e,x:20,y:24,width:200,alignHorizontal:"left",alignVertical:"middle",fill:o.colorText,children:n.label}),d(Ft,{indexes:e,x:20,y:58,width:220,height:70,fill:o.colorTextSecondary,alignHorizontal:"left",alignVertical:"top",children:n.desc}),d(ge,{indexes:e,x:r-48,y:12,width:32,height:32,fill:o.colorPrimary})]}))};Nt("candy-card-lite",{component:kp,composites:["icon","label","desc"]});var Y$=Object.defineProperty,X$=Object.defineProperties,G$=Object.getOwnPropertyDescriptors,Fo=Object.getOwnPropertySymbols,zp=Object.prototype.hasOwnProperty,Lp=Object.prototype.propertyIsEnumerable,Hp=(t,e,n)=>e in t?Y$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,q$=(t,e)=>{for(var n in e||(e={}))zp.call(e,n)&&Hp(t,n,e[n]);if(Fo)for(var n of Fo(e))Lp.call(e,n)&&Hp(t,n,e[n]);return t},U$=(t,e)=>X$(t,G$(e)),Z$=(t,e)=>{var n={};for(var r in t)zp.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Fo)for(var r of Fo(t))e.indexOf(r)<0&&Lp.call(t,r)&&(n[r]=t[r]);return n};const Wl=t=>{const e=t,{color:n="black",opacity:r=.8}=e,i=Z$(e,["color","opacity"]);return d("filter",U$(q$({id:"drop-shadow",x:"-25%",y:"-25%",width:"200%",height:"200%"},i),{children:d("feDropShadow",{dx:"4",dy:"4",stdDeviation:"4","flood-color":n,"flood-opacity":r})}))};var K$=Object.defineProperty,Q$=Object.defineProperties,J$=Object.getOwnPropertyDescriptors,Rp=Object.getOwnPropertySymbols,tP=Object.prototype.hasOwnProperty,eP=Object.prototype.propertyIsEnumerable,Dp=(t,e,n)=>e in t?K$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nP=(t,e)=>{for(var n in e||(e={}))tP.call(e,n)&&Dp(t,n,e[n]);if(Rp)for(var n of Rp(e))eP.call(e,n)&&Dp(t,n,e[n]);return t},rP=(t,e)=>Q$(t,J$(e));const Yl=t=>{const{id:e="linear-gradient",startColor:n="black",stopColor:r="white",direction:i="left-right"}=t;return E("linearGradient",rP(nP({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:[d("stop",{offset:"0%",stopColor:n}),d("stop",{offset:"100%",stopColor:r})]}))};var iP=Object.defineProperty,oP=Object.defineProperties,sP=Object.getOwnPropertyDescriptors,Np=Object.getOwnPropertySymbols,aP=Object.prototype.hasOwnProperty,lP=Object.prototype.propertyIsEnumerable,jp=(t,e,n)=>e in t?iP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,si=(t,e)=>{for(var n in e||(e={}))aP.call(e,n)&&jp(t,n,e[n]);if(Np)for(var n of Np(e))lP.call(e,n)&&jp(t,n,e[n]);return t},ai=(t,e)=>oP(t,sP(e));const Bp=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]=Dt(t,["width","height","gap","iconPadding"]),h=i/2,u=i-a*2,f=s==="flipped",p=!!e.icon,g=p?r-i-o:r-o*2,y=p?f?o:i:o,m=p?f?"right":"left":"center",x={indexes:n,width:g,alignHorizontal:m,alignVertical:"middle",fontSize:16,fontWeight:"600",fill:l.colorWhite},v=tt(d(vt,ai(si({},x),{children:e.label}))),b={indexes:n,width:g,alignHorizontal:m,alignVertical:"top",fontSize:12,lineNumber:1,fill:l.colorWhite},_=tt(e.desc?d(Ft,ai(si({},b),{children:e.desc})):null),w=4,$=v.height+w+_.height,O=(i-$)/2,T=O+v.height+w,I=f?r-i+a:a,S=a;return E(X,ai(si({},c),{children:[d(Mt,{children:d(Wl,{})}),d(xt,{x:0,y:0,width:r,height:i,fill:l.colorPrimary,rx:h,ry:h,"data-element-type":"shape"}),e.icon&&E(It,{children:[d(St,{x:I,y:S,width:u,height:u,fillOpacity:.5,fill:l.colorBg,filter:"url(#drop-shadow)"}),d(Yn,{indexes:n,x:I,y:S,size:u,fill:l.colorBg,colorBg:l.colorPrimary})]}),e.label&&d(vt,ai(si({x:y,y:O},x),{children:e.label})),e.desc&&d(Ft,ai(si({x:y,y:T},b),{children:e.desc}))]}))};Nt("capsule-item",{component:Bp,composites:["icon","label","desc"]});var cP=Object.defineProperty,hP=Object.defineProperties,dP=Object.getOwnPropertyDescriptors,Fp=Object.getOwnPropertySymbols,uP=Object.prototype.hasOwnProperty,fP=Object.prototype.propertyIsEnumerable,Vp=(t,e,n)=>e in t?cP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xl=(t,e)=>{for(var n in e||(e={}))uP.call(e,n)&&Vp(t,n,e[n]);if(Fp)for(var n of Fp(e))fP.call(e,n)&&Vp(t,n,e[n]);return t},Gl=(t,e)=>hP(t,dP(e));const Wp=t=>{const[{indexes:e,datum:n,themeColors:r,positionH:i="normal",width:o=240,height:s=o},a]=Dt(t,["width","height"]),l=Math.min(o,s),c=l*.7,h=(l-c)/2,u=c*Math.sqrt(2)/2,f=(l-u)/2,p=it(r.colorPrimary),g=Vo(p,80,.2),y=Vo(p,20,.8),m=Vo(p,75,.32),x=Vo(p,45,.4),v=p.clone().darken(5).toRgbString(),b=`${r.colorPrimary}-${i}-outer`,_=`${r.colorPrimary}-${i}-inner`,w=i==="flipped"?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"100%",y1:"0%",x2:"0%",y2:"0%"};return E(X,Gl(Xl({},a),{children:[E(Mt,{children:[E("linearGradient",Gl(Xl({id:b},w),{children:[d("stop",{offset:"0%",stopColor:g}),d("stop",{offset:"100%",stopColor:y})]})),E("linearGradient",Gl(Xl({id:_},w),{children:[d("stop",{offset:"0%",stopColor:m}),d("stop",{offset:"100%",stopColor:x})]}))]}),d(St,{width:l,height:l,fill:`url(#${b})`,"data-element-type":"shape"}),d(St,{x:h,y:h,width:c,height:c,fill:`url(#${_})`,stroke:"#FFFFFF",strokeWidth:1,"data-element-type":"shape"}),d(vt,{indexes:e,x:f,y:f,width:u,height:u,lineHeight:1.1,alignHorizontal:"center",alignVertical:"middle",fill:v,fontWeight:"500",children:n.label})]}))};Nt("circle-node",{component:Wp,composites:["label"]});function Vo(t,e,n){return it.mix(t,"#ffffff",e).setAlpha(n).toRgbString()}var pP=Object.defineProperty,gP=Object.defineProperties,mP=Object.getOwnPropertyDescriptors,Yp=Object.getOwnPropertySymbols,yP=Object.prototype.hasOwnProperty,vP=Object.prototype.propertyIsEnumerable,Xp=(t,e,n)=>e in t?pP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ql=(t,e)=>{for(var n in e||(e={}))yP.call(e,n)&&Xp(t,n,e[n]);if(Yp)for(var n of Yp(e))vP.call(e,n)&&Xp(t,n,e[n]);return t},Ul=(t,e)=>gP(t,mP(e));const Gp=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]=Dt(t,["size","strokeWidth","gap"]),h=(e=n.value)!=null?e:0,f=Math.min(Math.max(h/100,0),1),p=(i-o)/2,g=i/2,y=o/2,m=i-o,x=f>=1,v=f*360,b=xP(g,g,p,0,v),_={x:y,y,width:m,height:m};return E(X,Ul(ql({},c),{width:i,height:i+s+20,children:[d(xt,{width:i,height:i,fill:"none"}),d(St,Ul(ql({},_),{fill:"none",stroke:"#f0f0f0",strokeWidth:o,"data-element-type":"shape"})),x?d(St,Ul(ql({},_),{fill:"none",stroke:a.colorPrimary,strokeWidth:o,"data-element-type":"shape"})):d(at,{d:b,fill:"none",stroke:a.colorPrimary,strokeWidth:o,strokeLinecap:"round","data-element-type":"shape"}),d(ei,{indexes:r,x:o,y:o,width:m-o,height:m-o,fontSize:24,fontWeight:"bold",fill:a.colorPrimary,alignHorizontal:"center",alignVertical:"middle",value:h,formatter:l}),d(vt,{indexes:r,x:0,y:i+s,width:i,alignHorizontal:"center",fontSize:12,fill:a.colorTextSecondary,children:n.label})]}))};function xP(t,e,n,r,i){const o=qp(t,e,n,i),s=qp(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 qp(t,e,n,r){const i=(r-90)*Math.PI/180;return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}}Nt("circular-progress",{component:Gp,composites:["label","value"]});var bP=Object.defineProperty,_P=Object.defineProperties,wP=Object.getOwnPropertyDescriptors,Up=Object.getOwnPropertySymbols,$P=Object.prototype.hasOwnProperty,PP=Object.prototype.propertyIsEnumerable,Zp=(t,e,n)=>e in t?bP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,OP=(t,e)=>{for(var n in e||(e={}))$P.call(e,n)&&Zp(t,n,e[n]);if(Up)for(var n of Up(e))PP.call(e,n)&&Zp(t,n,e[n]);return t},CP=(t,e)=>_P(t,wP(e));const Kp=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},h]=Dt(t,["width","height","iconSize","gap"]),u=e.value,f=u!=null,p="compact-shadow",g=a==="flipped"?r-s-o:s,y=a==="flipped"?s:o+2*s,m=r-o-3*s,x=f?m*.8:m,v=f?m*.2:0;return E(X,CP(OP({},h),{children:[d(Mt,{children:d("filter",{id:p,children:d("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodOpacity:"0.15"})})}),d(xt,{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"}),d(xt,{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"}),d(ge,{indexes:n,x:g,y:(i-o)/2,size:o,fill:l.colorPrimary}),E(ot,{x:y,y:s,width:m,height:i-s*2,flexDirection:"column",justifyContent:"center",alignItems:"flex-start",children:[E(ot,{width:m,flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[d(vt,{indexes:n,width:x,alignHorizontal:"left",fontSize:12,fill:l.colorText,children:e.label}),f&&d(ei,{indexes:n,width:v,alignHorizontal:"right",fontSize:12,fontWeight:"bold",fill:l.colorPrimary,value:u,formatter:c})]}),d(Ft,{indexes:n,width:m,alignHorizontal:"left",alignVertical:"middle",fontSize:10,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]})]}))};Nt("compact-card",{component:Kp,composites:["icon","label","value","desc"]});var MP=Object.defineProperty,SP=Object.defineProperties,EP=Object.getOwnPropertyDescriptors,Qp=Object.getOwnPropertySymbols,IP=Object.prototype.hasOwnProperty,TP=Object.prototype.propertyIsEnumerable,Jp=(t,e,n)=>e in t?MP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,AP=(t,e)=>{for(var n in e||(e={}))IP.call(e,n)&&Jp(t,n,e[n]);if(Qp)for(var n of Qp(e))TP.call(e,n)&&Jp(t,n,e[n]);return t},kP=(t,e)=>SP(t,EP(e));const tg=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},h]=Dt(t,["width","height","iconSize","gap"]),u=r-o-s,f=l==="middle"?(i-o)/2:l==="flipped"?i-o:0;return E(X,kP(AP({},h),{children:[d(at,{"data-element-type":"shape",x:a==="flipped"?u+s:0,y:f,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"}),d(vt,{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})]}))};Nt("done-list",{component:tg,composites:["label"]});var zP=Object.defineProperty,LP=Object.defineProperties,HP=Object.getOwnPropertyDescriptors,eg=Object.getOwnPropertySymbols,RP=Object.prototype.hasOwnProperty,DP=Object.prototype.propertyIsEnumerable,ng=(t,e,n)=>e in t?zP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,NP=(t,e)=>{for(var n in e||(e={}))RP.call(e,n)&&ng(t,n,e[n]);if(eg)for(var n of eg(e))DP.call(e,n)&&ng(t,n,e[n]);return t},jP=(t,e)=>LP(t,HP(e));const rg=t=>{const[{indexes:e,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=Dt(t,["width"]),a=o!=="flipped",l=o==="normal"?"bottom":"top",c=d(vt,{indexes:e,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=d(Ft,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=d(Yn,{indexes:e,fill:i.colorPrimary,colorBg:i.colorWhite}),f=d(FP,{width:8,height:30,fill:i.colorPrimary,positionV:o}),p=5,g=25,y=30,m=tt(c),x=tt(h),v=tt(u),b=tt(f),_=m.height+x.height+p+b.height-v.height-g,w=v.height+g+y+b.height+p+m.height+x.height;return d(X,jP(NP({width:r,height:w},s),{children:E(ot,{flexDirection:"column",alignItems:"center",children:[a?E(It,{children:[h,c,d(Yt,{height:p}),f]}):E(It,{children:[d(Yt,{height:_}),u,d(Yt,{height:g})]}),E(X,{children:[d(BP,{width:r,height:y,fill:i.colorPrimary}),d($t,{x:r/2,y:y/2,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?E(It,{children:[d(Yt,{height:g}),u]}):E(It,{children:[f,d(Yt,{height:p}),c,h]})]})}))},BP=t=>{const{x:e=0,y:n=0,width:r=100,height:i=40,fill:o="#FF356A",size:s=10}=t;return d(We,{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"})},FP=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,h=a;return E(qt,{x:e,y:n,width:r,height:i,children:[d(St,{width:r,height:r,fill:o,y:s==="top"?0:l-a}),d(at,{d:s==="top"?`M${h},${a} L${h},${a+l}`:`M${h},0 L${h},${l-a}`,strokeWidth:c,stroke:o})]})};Nt("horizontal-icon-arrow",{component:rg,composites:["icon","label","desc","time"]});var VP=Object.defineProperty,WP=Object.defineProperties,YP=Object.getOwnPropertyDescriptors,ig=Object.getOwnPropertySymbols,XP=Object.prototype.hasOwnProperty,GP=Object.prototype.propertyIsEnumerable,og=(t,e,n)=>e in t?VP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,sg=(t,e)=>{for(var n in e||(e={}))XP.call(e,n)&&og(t,n,e[n]);if(ig)for(var n of ig(e))GP.call(e,n)&&og(t,n,e[n]);return t},ag=(t,e)=>WP(t,YP(e));const lg=t=>{const[{indexes:e,datum:n,width:r=160,themeColors:i,positionH:o="center",positionV:s="normal"},a]=Dt(t,["width"]),l=o==="normal"?"left":o==="flipped"?"right":"center",c=d(vt,{indexes:e,width:r,alignHorizontal:l,fill:i.colorPrimary,children:n.label}),h=tt(c),u=n.desc?d(Ft,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:s==="flipped"?"top":"bottom",children:n.desc}):null,f=tt(u),g=n.icon?d(Yn,{size:45,indexes:e,colorBg:i.colorBg,fill:i.colorPrimary}):null,y=tt(g),m=n.time?d($t,{width:r,height:30,alignHorizontal:"center",alignVertical:"middle",fill:i.colorPrimary,fontSize:18,fontWeight:"bold",children:n.time}):null,x=tt(m),v=18,b=E(ni,{horizontal:"center",vertical:"middle",width:r,height:v,children:[d(xt,{width:r,height:v,fill:i.colorPrimary,"data-element-type":"shape"}),d(St,{width:v+6,height:v+6,fill:i.colorBg,fillOpacity:.5,"data-element-type":"shape"}),d(St,{width:12,height:12,fill:"white","data-element-type":"shape"})]}),_=h.height+f.height,w=y.height+x.height+5,$=Math.abs(w-_),P=w>_?$:0,O=_>w?$:0;return s==="flipped"?E(ot,ag(sg({},a),{flexDirection:"column",alignItems:"center",children:[d(Yt,{height:O}),m,g,d(Yt,{height:5}),b,c,u,d(Yt,{height:P})]})):E(ot,ag(sg({},a),{flexDirection:"column",alignItems:"center",children:[d(Yt,{height:P}),c,u,b,d(Yt,{height:5}),g,m,d(Yt,{height:O})]}))};Nt("horizontal-icon-line",{component:lg,composites:["icon","label","desc"]});var qP=Object.defineProperty,UP=Object.defineProperties,ZP=Object.getOwnPropertyDescriptors,cg=Object.getOwnPropertySymbols,KP=Object.prototype.hasOwnProperty,QP=Object.prototype.propertyIsEnumerable,hg=(t,e,n)=>e in t?qP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,JP=(t,e)=>{for(var n in e||(e={}))KP.call(e,n)&&hg(t,n,e[n]);if(cg)for(var n of cg(e))QP.call(e,n)&&hg(t,n,e[n]);return t},tO=(t,e)=>UP(t,ZP(e));const dg=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:h=105},u]=Dt(t,["size","iconSize","badgeSize","gap"]),f=(e=n.value)!=null?e:0,p=`${l.colorPrimary}-icon`,g="#ff6b6b-badge";return E(X,tO(JP({},u),{width:c,height:h,children:[E(Mt,{children:[E("radialGradient",{id:p,cx:"50%",cy:"30%",r:"70%",children:[d("stop",{offset:"0%",stopColor:it(l.colorPrimary).lighten(30).toHexString()}),d("stop",{offset:"100%",stopColor:l.colorPrimary})]}),E("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"#ff6b6b"}),d("stop",{offset:"100%",stopColor:"#ee5a52"})]})]}),d(St,{x:0,y:0,width:i,height:i,fill:`url(#${p})`,"data-element-type":"shape"}),d(ge,{indexes:r,x:(i-o)/2,y:(i-o)/2,size:o,fill:l.colorPrimaryText}),d(St,{x:i-s+4,width:s,height:s,fill:`url(#${g})`}),d($t,{x:i-s+4,width:s,height:s,fontSize:10,fontWeight:"bold",fill:l.colorWhite,alignHorizontal:"center",alignVertical:"middle",children:f>99?"99+":Math.round(f)}),d(vt,{indexes:r,x:0,y:i+a,width:i,alignHorizontal:"center",fontSize:12,fill:l.colorText,children:n.label})]}))};Nt("icon-badge",{component:dg,composites:["icon","label"]});var eO=Object.defineProperty,nO=Object.defineProperties,rO=Object.getOwnPropertyDescriptors,ug=Object.getOwnPropertySymbols,iO=Object.prototype.hasOwnProperty,oO=Object.prototype.propertyIsEnumerable,fg=(t,e,n)=>e in t?eO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,sO=(t,e)=>{for(var n in e||(e={}))iO.call(e,n)&&fg(t,n,e[n]);if(ug)for(var n of ug(e))oO.call(e,n)&&fg(t,n,e[n]);return t},aO=(t,e)=>nO(t,rO(e));const pg=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:h},u]=Dt(t,["width","height","borderRadius","padding","separatorHeight","indexFontSize","labelFontSize","gap"]),f=n[0]+1,p=String(f).padStart(2,"0"),g=e.label!==void 0,y=e.desc!==void 0,m=it.mix(h.colorPrimary,h.colorWhite,40).toHexString(),x=h.colorBgElevated||h.colorWhite,v=r-2*o,b=tt(d($t,{fontSize:a,fontWeight:"bold",children:p})),_=v-b.width-c,w=g?tt(d(vt,{indexes:n,width:_,fontSize:l,fontWeight:"bold",x:a,children:e.label})):{height:0},$=y?tt(d(Ft,{indexes:n,width:v,fontSize:14,lineHeight:1.5,wordWrap:!0,children:e.desc})):{height:0},P=Math.max(b.height,w.height),O=o*2+P+(g||y?c:0)+s+(y?c:0)+$.height;return E(X,aO(sO({},u),{width:r,height:O,children:[d(xt,{x:0,y:0,width:r,height:O,rx:i,ry:i,fill:x,stroke:it(x).darken(5).toHexString(),strokeWidth:.5,"data-element-type":"shape"}),E(X,{x:o,y:o,children:[E(X,{x:0,y:0,children:[d($t,{x:0,y:0,fontSize:a,fontWeight:"bold",fill:h.colorPrimary,alignVertical:"top",children:p}),g&&d(vt,{indexes:n,x:a+c,y:0,width:_,fontSize:l,fontWeight:"bold",fill:h.colorTextSecondary,alignVertical:"top",children:e.label})]}),d(xt,{x:0,y:P+c,width:v,height:s,fill:m,"data-element-type":"shape"}),y&&d(Ft,{indexes:n,x:0,y:P+c+s+c,width:v,fontSize:14,lineHeight:1.5,wordWrap:!0,fill:h.colorTextSecondary,children:e.desc})]})]}))};Nt("indexed-card",{component:pg,composites:["label","desc"]});var lO=Object.defineProperty,cO=Object.defineProperties,hO=Object.getOwnPropertyDescriptors,gg=Object.getOwnPropertySymbols,dO=Object.prototype.hasOwnProperty,uO=Object.prototype.propertyIsEnumerable,mg=(t,e,n)=>e in t?lO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fO=(t,e)=>{for(var n in e||(e={}))dO.call(e,n)&&mg(t,n,e[n]);if(gg)for(var n of gg(e))uO.call(e,n)&&mg(t,n,e[n]);return t},pO=(t,e)=>cO(t,hO(e));const yg=t=>{const[{indexes:e,datum:n,width:r=140,iconSize:i=24,themeColors:o},s]=Dt(t,["width","iconSize"]),{label:a,desc:l}=n,c=8,h=16,u=12,f=h+u,p=r-f,g=60,y=i+44,m=h,x=g+u,v=g+h+u,b=[{x:0,y:v},{x:m,y:x},{x:m,y:v}],_=r-m-u,w=m+u,$=w+_,P=x+c/2,O=P+y,T=`M ${w} ${O} L ${w} ${P} L ${$} ${P}`,I=c/2,S=w+I,R=P+I,M=8;return E(X,pO(fO({},s),{children:[d(Ft,{indexes:e,x:f,width:p,height:g,fontSize:12,alignHorizontal:"left",alignVertical:"bottom",fill:o.colorTextSecondary,children:l}),d(We,{points:b,fill:o.colorPrimary,opacity:.9,width:h,height:h,"data-element-type":"shape"}),d(at,{d:T,stroke:o.colorPrimary,strokeWidth:c,fill:"none","data-element-type":"shape"}),d(ge,{indexes:e,x:S+_/2-i/2,y:R+M,size:i,fill:o.colorPrimary}),d(vt,{indexes:e,x:S,y:R+i+M*2,width:_,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:o.colorText,children:a})]}))};Nt("l-corner-card",{component:yg,composites:["icon","label","desc"]});var gO=Object.defineProperty,mO=Object.defineProperties,yO=Object.getOwnPropertyDescriptors,vg=Object.getOwnPropertySymbols,vO=Object.prototype.hasOwnProperty,xO=Object.prototype.propertyIsEnumerable,xg=(t,e,n)=>e in t?gO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bO=(t,e)=>{for(var n in e||(e={}))vO.call(e,n)&&xg(t,n,e[n]);if(vg)for(var n of vg(e))xO.call(e,n)&&xg(t,n,e[n]);return t},_O=(t,e)=>mO(t,yO(e));const bg=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:h},u]=Dt(t,["width","height","showStripe","showGradient","showBottomShade"]),f=(e=r.label)==null?void 0:e[0].toUpperCase(),p=(n=r.label)==null?void 0:n.toUpperCase(),g=h.colorPrimary,y=it(g),m=4,x=6,v=45,b=40,_=12,$=y.clone().darken(4).toHexString(),P=y.clone().lighten(_).toHexString(),O="rgba(255, 255, 255, 0)",T="rgba(0, 0, 0, 0.03)",I=`letter-card-${i.join("-")}`,S=`${I}-gradient`,R=`${I}-pattern`,M=`${I}-shade`,A=m+x,W=1,k=96,D=k*W,z=16,N=z*W,B=s/16,Y=D+B+N,L=(s-Y)/2,C=L+D+B;return E(X,_O(bO({},u),{width:o,height:s,children:[E(Mt,{children:[l&&E("linearGradient",{id:S,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:$}),d("stop",{offset:"100%",stopColor:P})]}),a&&E("pattern",{id:R,patternUnits:"userSpaceOnUse",width:A,height:A,patternTransform:`rotate(${v})`,children:[d("rect",{x:"0",y:"0",width:A,height:A,fill:O}),d("rect",{x:"0",y:"0",width:m,height:A,fill:T})]}),c&&E("linearGradient",{id:M,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"rgba(0,0,0,0)"}),d("stop",{offset:"100%",stopColor:"rgba(0,0,0,0.16)"})]})]}),d(xt,{x:0,y:0,width:o,height:s,fill:l?`url(#${S})`:g,rx:0,ry:0,"data-element-type":"shape"}),a&&d(xt,{x:0,y:0,width:o,height:s,fill:`url(#${R})`,rx:0,ry:0}),c&&d(xt,{x:0,y:s-b,width:o,height:b,fill:`url(#${M})`,rx:0,ry:0}),f&&d(vt,{indexes:i,x:0,y:L,width:o,fontSize:k,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"top",lineHeight:1,children:f}),d(vt,{indexes:i,x:0,y:C,width:o,fontSize:z,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"middle",lineHeight:1,children:p})]}))};Nt("letter-card",{component:bg,composites:["label"]});var wO=Object.defineProperty,$O=Object.defineProperties,PO=Object.getOwnPropertyDescriptors,_g=Object.getOwnPropertySymbols,OO=Object.prototype.hasOwnProperty,CO=Object.prototype.propertyIsEnumerable,wg=(t,e,n)=>e in t?wO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,MO=(t,e)=>{for(var n in e||(e={}))OO.call(e,n)&&wg(t,n,e[n]);if(_g)for(var n of _g(e))CO.call(e,n)&&wg(t,n,e[n]);return t},SO=(t,e)=>$O(t,PO(e));const $g=t=>{var e,n,r;const[{datum:i,indexes:o,width:s,themeColors:a,positionH:l="normal",positionV:c="center",formatter:h=W=>W||"",usePaletteColor:u=!1,showUnderline:f=!1,underlineGap:p=6,underlineExtend:g=8,underlineThickness:y=2},m]=Dt(t,["width","formatter","usePaletteColor","showUnderline","underlineGap","underlineExtend","underlineThickness"]),x=h((n=(e=i.label)!=null?e:i.desc)!=null?n:""),v=l==="flipped"?"right":l==="center"?"center":"left",b=tt(d(vt,{indexes:o,width:s,children:x})),_=s!=null?s:b.width,w=b.height,$=f?_+g*2:0,P=w+(f?p+y:0),O=f?Math.max(_,$):_,T=(r=m.height)!=null?r:P,I=c==="middle"?(T-P)/2:c==="flipped"?T-P:0,S=v==="right"?O-_:v==="center"?(O-_)/2:0,R=I,M=v==="right"?O-$:v==="center"?(O-$)/2:0,A=T;return E(X,SO(MO({},m),{width:O,height:T,children:[d(vt,{indexes:o,x:S,y:R,width:_,height:w,alignHorizontal:v,alignVertical:c==="flipped"?"bottom":c==="center"?"middle":"top",fill:u?a.colorPrimary:a.colorText,children:x}),f&&d(at,{d:`M 0 ${y/2} L ${$} ${y/2}`,x:M,y:A-y/2,width:$,height:y,stroke:a.colorPrimary,strokeWidth:y,fill:"none",strokeLinecap:"round","data-element-type":"shape"})]}))};Nt("lined-text",{component:$g,composites:["label"]});var EO=Object.defineProperty,IO=Object.defineProperties,TO=Object.getOwnPropertyDescriptors,Pg=Object.getOwnPropertySymbols,AO=Object.prototype.hasOwnProperty,kO=Object.prototype.propertyIsEnumerable,Og=(t,e,n)=>e in t?EO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zO=(t,e)=>{for(var n in e||(e={}))AO.call(e,n)&&Og(t,n,e[n]);if(Pg)for(var n of Pg(e))kO.call(e,n)&&Og(t,n,e[n]);return t},LO=(t,e)=>IO(t,TO(e));const Cg=t=>{const[{datum:e,indexes:n,width:r=300,pillWidth:i=120,pillHeight:o=36,gap:s=16,positionH:a="normal",themeColors:l},c]=Dt(t,["width","pillWidth","pillHeight","gap"]),h=!!e.desc,u=h?r:i,f=h?a==="center"?(u-i)/2:a==="flipped"?u-i:0:0,p=0,g=0,y=o+s,m=u,x=`drop-shadow-${l.colorPrimary}`,v="linear-gradient-white-top-bottom";return E(X,LO(zO({},c),{children:[E(Mt,{children:[d(Wl,{id:x,color:l.colorPrimary}),d(Yl,{id:v,startColor:"#fff",stopColor:"#ffffff33",direction:"top-bottom"})]}),d(xt,{x:f,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"}),d(xt,{x:f,y:p,width:i,height:o,fill:`url(#${v})`,opacity:l.isDarkMode?.4:.7,rx:o/2,ry:o/2}),d(vt,{indexes:n,x:f,y:p,width:i,height:o,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:l.colorText,children:e.label}),e.desc&&d(Ft,{indexes:n,x:g,y,width:m,alignHorizontal:a==="center"?"center":a==="flipped"?"right":"left",fontSize:12,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]}))};Nt("pill-badge",{component:Cg,composites:["label","desc"]});var HO=Object.defineProperty,RO=Object.defineProperties,DO=Object.getOwnPropertyDescriptors,Mg=Object.getOwnPropertySymbols,NO=Object.prototype.hasOwnProperty,jO=Object.prototype.propertyIsEnumerable,Sg=(t,e,n)=>e in t?HO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,BO=(t,e)=>{for(var n in e||(e={}))NO.call(e,n)&&Sg(t,n,e[n]);if(Mg)for(var n of Mg(e))jO.call(e,n)&&Sg(t,n,e[n]);return t},FO=(t,e)=>RO(t,DO(e));const Eg=t=>{var e;const[{indexes:n,datum:r,width:i=120,themeColors:o,positionH:s="normal",positionV:a="center",formatter:l=y=>y||"",usePaletteColor:c=!1,lineNumber:h=1},u]=Dt(t,["width","formatter","usePaletteColor","lineNumber"]),f=14,p=1.4,g=(e=u.height)!=null?e:Math.ceil(h*p*f);return d(vt,FO(BO({},u),{indexes:n,width:i,height:g,lineHeight:p,fill:c?o.colorPrimary:o.colorText,fontSize:f,fontWeight:"regular",alignHorizontal:s==="flipped"?"right":s==="center"?"center":"left",alignVertical:a==="flipped"?"bottom":a==="center"?"middle":"top",children:l(r.label||r.desc)}))};Nt("plain-text",{component:Eg,composites:["label"]});function Wo(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function VO(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ig(t){let e,n,r;t.length!==2?(e=Wo,n=(a,l)=>Wo(t(a),l),r=(a,l)=>t(a)-l):(e=t===Wo||t===VO?t:WO,n=t,r=t);function i(a,l,c=0,h=a.length){if(c<h){if(e(l,l)!==0)return h;do{const u=c+h>>>1;n(a[u],l)<0?c=u+1:h=u}while(c<h)}return c}function o(a,l,c=0,h=a.length){if(c<h){if(e(l,l)!==0)return h;do{const u=c+h>>>1;n(a[u],l)<=0?c=u+1:h=u}while(c<h)}return c}function s(a,l,c=0,h=a.length){const u=i(a,l,c,h-1);return u>c&&r(a[u-1],l)>-r(a[u],l)?u-1:u}return{left:i,center:s,right:o}}function WO(){return 0}function YO(t){return t===null?NaN:+t}const XO=Ig(Wo).right;Ig(YO).center;const GO=Math.sqrt(50),qO=Math.sqrt(10),UO=Math.sqrt(2);function Yo(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>=GO?10:o>=qO?5:o>=UO?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?Yo(t,e,n*2):[a,l,c]}function ZO(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?Yo(e,t,n):Yo(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 Zl(t,e,n){return e=+e,t=+t,n=+n,Yo(t,e,n)[2]}function KO(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?Zl(e,t,n):Zl(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}var QO={value:()=>{}};function Kl(){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 Xo(n)}function Xo(t){this._=t}function JO(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}})}Xo.prototype=Kl.prototype={constructor:Xo,on:function(t,e){var n=this._,r=JO(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=tC(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]=Tg(n[i],t.name,e);else if(e==null)for(i in n)n[i]=Tg(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 Xo(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 tC(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function Tg(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=QO,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var Ql="http://www.w3.org/1999/xhtml";const Ag={svg:"http://www.w3.org/2000/svg",xhtml:Ql,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Go(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Ag.hasOwnProperty(e)?{space:Ag[e],local:t}:t}function eC(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Ql&&e.documentElement.namespaceURI===Ql?e.createElement(t):e.createElementNS(n,t)}}function nC(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function kg(t){var e=Go(t);return(e.local?nC:eC)(e)}function rC(){}function Jl(t){return t==null?rC:function(){return this.querySelector(t)}}function iC(t){typeof t!="function"&&(t=Jl(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,h=0;h<s;++h)(l=o[h])&&(c=t.call(l,l.__data__,h,o))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new Re(r,this._parents)}function oC(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function sC(){return[]}function zg(t){return t==null?sC:function(){return this.querySelectorAll(t)}}function aC(t){return function(){return oC(t.apply(this,arguments))}}function lC(t){typeof t=="function"?t=aC(t):t=zg(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 Re(r,i)}function Lg(t){return function(){return this.matches(t)}}function Hg(t){return function(e){return e.matches(t)}}var cC=Array.prototype.find;function hC(t){return function(){return cC.call(this.children,t)}}function dC(){return this.firstElementChild}function uC(t){return this.select(t==null?dC:hC(typeof t=="function"?t:Hg(t)))}var fC=Array.prototype.filter;function pC(){return Array.from(this.children)}function gC(t){return function(){return fC.call(this.children,t)}}function mC(t){return this.selectAll(t==null?pC:gC(typeof t=="function"?t:Hg(t)))}function yC(t){typeof t!="function"&&(t=Lg(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 Re(r,this._parents)}function Rg(t){return new Array(t.length)}function vC(){return new Re(this._enter||this._groups.map(Rg),this._parents)}function qo(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}qo.prototype={constructor:qo,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 xC(t){return function(){return t}}function bC(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 qo(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function _C(t,e,n,r,i,o,s){var a,l,c=new Map,h=e.length,u=o.length,f=new Array(h),p;for(a=0;a<h;++a)(l=e[a])&&(f[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 qo(t,o[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(f[a])===l&&(i[a]=l)}function wC(t){return t.__data__}function $C(t,e){if(!arguments.length)return Array.from(this,wC);var n=e?_C:bC,r=this._parents,i=this._groups;typeof t!="function"&&(t=xC(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var h=r[c],u=i[c],f=u.length,p=PC(t.call(h,h&&h.__data__,c,r)),g=p.length,y=a[c]=new Array(g),m=s[c]=new Array(g),x=l[c]=new Array(f);n(h,u,y,m,x,p,e);for(var v=0,b=0,_,w;v<g;++v)if(_=y[v]){for(v>=b&&(b=v+1);!(w=m[b])&&++b<g;);_._next=w||null}}return s=new Re(s,r),s._enter=a,s._exit=l,s}function PC(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function OC(){return new Re(this._exit||this._groups.map(Rg),this._parents)}function CC(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 MC(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],h=r[l],u=c.length,f=a[l]=new Array(u),p,g=0;g<u;++g)(p=c[g]||h[g])&&(f[g]=p);for(;l<i;++l)a[l]=n[l];return new Re(a,this._parents)}function SC(){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 EC(t){t||(t=IC);function e(u,f){return u&&f?t(u.__data__,f.__data__):!u-!f}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,h=0;h<a;++h)(c=s[h])&&(l[h]=c);l.sort(e)}return new Re(i,this._parents).order()}function IC(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function TC(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function AC(){return Array.from(this)}function kC(){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 zC(){let t=0;for(const e of this)++t;return t}function LC(){return!this.node()}function HC(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 RC(t){return function(){this.removeAttribute(t)}}function DC(t){return function(){this.removeAttributeNS(t.space,t.local)}}function NC(t,e){return function(){this.setAttribute(t,e)}}function jC(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function BC(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function FC(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 VC(t,e){var n=Go(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?DC:RC:typeof e=="function"?n.local?FC:BC:n.local?jC:NC)(n,e))}function Dg(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function WC(t){return function(){this.style.removeProperty(t)}}function YC(t,e,n){return function(){this.style.setProperty(t,e,n)}}function XC(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function GC(t,e,n){return arguments.length>1?this.each((e==null?WC:typeof e=="function"?XC:YC)(t,e,n==null?"":n)):vr(this.node(),t)}function vr(t,e){return t.style.getPropertyValue(e)||Dg(t).getComputedStyle(t,null).getPropertyValue(e)}function qC(t){return function(){delete this[t]}}function UC(t,e){return function(){this[t]=e}}function ZC(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function KC(t,e){return arguments.length>1?this.each((e==null?qC:typeof e=="function"?ZC:UC)(t,e)):this.node()[t]}function Ng(t){return t.trim().split(/^|\s+/)}function tc(t){return t.classList||new jg(t)}function jg(t){this._node=t,this._names=Ng(t.getAttribute("class")||"")}jg.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 Bg(t,e){for(var n=tc(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Fg(t,e){for(var n=tc(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function QC(t){return function(){Bg(this,t)}}function JC(t){return function(){Fg(this,t)}}function tM(t,e){return function(){(e.apply(this,arguments)?Bg:Fg)(this,t)}}function eM(t,e){var n=Ng(t+"");if(arguments.length<2){for(var r=tc(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?tM:e?QC:JC)(n,e))}function nM(){this.textContent=""}function rM(t){return function(){this.textContent=t}}function iM(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function oM(t){return arguments.length?this.each(t==null?nM:(typeof t=="function"?iM:rM)(t)):this.node().textContent}function sM(){this.innerHTML=""}function aM(t){return function(){this.innerHTML=t}}function lM(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function cM(t){return arguments.length?this.each(t==null?sM:(typeof t=="function"?lM:aM)(t)):this.node().innerHTML}function hM(){this.nextSibling&&this.parentNode.appendChild(this)}function dM(){return this.each(hM)}function uM(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fM(){return this.each(uM)}function pM(t){var e=typeof t=="function"?t:kg(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function gM(){return null}function mM(t,e){var n=typeof t=="function"?t:kg(t),r=e==null?gM:typeof e=="function"?e:Jl(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function yM(){var t=this.parentNode;t&&t.removeChild(this)}function vM(){return this.each(yM)}function xM(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function bM(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function _M(t){return this.select(t?bM:xM)}function wM(t){return arguments.length?this.property("__data__",t):this.node().__data__}function $M(t){return function(e){t.call(this,e,this.__data__)}}function PM(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 OM(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 CM(t,e,n){return function(){var r=this.__on,i,o=$M(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 MM(t,e,n){var r=PM(t+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,h;l<c;++l)for(i=0,h=a[l];i<o;++i)if((s=r[i]).type===h.type&&s.name===h.name)return h.value}return}for(a=e?CM:OM,i=0;i<o;++i)this.each(a(r[i],e,n));return this}function Vg(t,e,n){var r=Dg(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 SM(t,e){return function(){return Vg(this,t,e)}}function EM(t,e){return function(){return Vg(this,t,e.apply(this,arguments))}}function IM(t,e){return this.each((typeof e=="function"?EM:SM)(t,e))}function*TM(){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 AM=[null];function Re(t,e){this._groups=t,this._parents=e}function li(){return new Re([[document.documentElement]],AM)}function kM(){return this}Re.prototype=li.prototype={constructor:Re,select:iC,selectAll:lC,selectChild:uC,selectChildren:mC,filter:yC,data:$C,enter:vC,exit:OC,join:CC,merge:MC,selection:kM,order:SC,sort:EC,call:TC,nodes:AC,node:kC,size:zC,empty:LC,each:HC,attr:VC,style:GC,property:KC,classed:eM,text:oM,html:cM,raise:dM,lower:fM,append:pM,insert:mM,remove:vM,clone:_M,datum:wM,on:MM,dispatch:IM,[Symbol.iterator]:TM};function ec(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Wg(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ci(){}var hi=.7,Uo=1/hi,xr="\\s*([+-]?\\d+)\\s*",di="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zM=/^#([0-9a-f]{3,8})$/,LM=new RegExp(`^rgb\\(${xr},${xr},${xr}\\)$`),HM=new RegExp(`^rgb\\(${Ze},${Ze},${Ze}\\)$`),RM=new RegExp(`^rgba\\(${xr},${xr},${xr},${di}\\)$`),DM=new RegExp(`^rgba\\(${Ze},${Ze},${Ze},${di}\\)$`),NM=new RegExp(`^hsl\\(${di},${Ze},${Ze}\\)$`),jM=new RegExp(`^hsla\\(${di},${Ze},${Ze},${di}\\)$`),Yg={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};ec(ci,Gn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Xg,formatHex:Xg,formatHex8:BM,formatHsl:FM,formatRgb:Gg,toString:Gg});function Xg(){return this.rgb().formatHex()}function BM(){return this.rgb().formatHex8()}function FM(){return Qg(this).formatHsl()}function Gg(){return this.rgb().formatRgb()}function Gn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=zM.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?qg(e):n===3?new Oe(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Zo(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Zo(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=LM.exec(t))?new Oe(e[1],e[2],e[3],1):(e=HM.exec(t))?new Oe(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=RM.exec(t))?Zo(e[1],e[2],e[3],e[4]):(e=DM.exec(t))?Zo(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=NM.exec(t))?Kg(e[1],e[2]/100,e[3]/100,1):(e=jM.exec(t))?Kg(e[1],e[2]/100,e[3]/100,e[4]):Yg.hasOwnProperty(t)?qg(Yg[t]):t==="transparent"?new Oe(NaN,NaN,NaN,0):null}function qg(t){return new Oe(t>>16&255,t>>8&255,t&255,1)}function Zo(t,e,n,r){return r<=0&&(t=e=n=NaN),new Oe(t,e,n,r)}function VM(t){return t instanceof ci||(t=Gn(t)),t?(t=t.rgb(),new Oe(t.r,t.g,t.b,t.opacity)):new Oe}function nc(t,e,n,r){return arguments.length===1?VM(t):new Oe(t,e,n,r==null?1:r)}function Oe(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}ec(Oe,nc,Wg(ci,{brighter(t){return t=t==null?Uo:Math.pow(Uo,t),new Oe(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?hi:Math.pow(hi,t),new Oe(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Oe(qn(this.r),qn(this.g),qn(this.b),Ko(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:Ug,formatHex:Ug,formatHex8:WM,formatRgb:Zg,toString:Zg}));function Ug(){return`#${Un(this.r)}${Un(this.g)}${Un(this.b)}`}function WM(){return`#${Un(this.r)}${Un(this.g)}${Un(this.b)}${Un((isNaN(this.opacity)?1:this.opacity)*255)}`}function Zg(){const t=Ko(this.opacity);return`${t===1?"rgb(":"rgba("}${qn(this.r)}, ${qn(this.g)}, ${qn(this.b)}${t===1?")":`, ${t})`}`}function Ko(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function qn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Un(t){return t=qn(t),(t<16?"0":"")+t.toString(16)}function Kg(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new De(t,e,n,r)}function Qg(t){if(t instanceof De)return new De(t.h,t.s,t.l,t.opacity);if(t instanceof ci||(t=Gn(t)),!t)return new De;if(t instanceof De)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 De(s,a,l,t.opacity)}function YM(t,e,n,r){return arguments.length===1?Qg(t):new De(t,e,n,r==null?1:r)}function De(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}ec(De,YM,Wg(ci,{brighter(t){return t=t==null?Uo:Math.pow(Uo,t),new De(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?hi:Math.pow(hi,t),new De(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 Oe(rc(t>=240?t-240:t+120,i,r),rc(t,i,r),rc(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new De(Jg(this.h),Qo(this.s),Qo(this.l),Ko(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=Ko(this.opacity);return`${t===1?"hsl(":"hsla("}${Jg(this.h)}, ${Qo(this.s)*100}%, ${Qo(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Jg(t){return t=(t||0)%360,t<0?t+360:t}function Qo(t){return Math.max(0,Math.min(1,t||0))}function rc(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 ic=t=>()=>t;function XM(t,e){return function(n){return t+n*e}}function GM(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 qM(t){return(t=+t)==1?t1:function(e,n){return n-e?GM(e,n,t):ic(isNaN(e)?n:e)}}function t1(t,e){var n=e-t;return n?XM(t,n):ic(isNaN(t)?e:t)}const Jo=(function t(e){var n=qM(e);function r(i,o){var s=n((i=nc(i)).r,(o=nc(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),c=t1(i.opacity,o.opacity);return function(h){return i.r=s(h),i.g=a(h),i.b=l(h),i.opacity=c(h),i+""}}return r.gamma=t,r})(1);function UM(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 ZM(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function KM(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]=ac(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 QM(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Ne(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function JM(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]=ac(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var oc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,sc=new RegExp(oc.source,"g");function tS(t){return function(){return t}}function eS(t){return function(e){return t(e)+""}}function e1(t,e){var n=oc.lastIndex=sc.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=oc.exec(t))&&(i=sc.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:Ne(r,i)})),n=sc.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?eS(l[0].x):tS(e):(e=l.length,function(c){for(var h=0,u;h<e;++h)a[(u=l[h]).i]=u.x(c);return a.join("")})}function ac(t,e){var n=typeof e,r;return e==null||n==="boolean"?ic(e):(n==="number"?Ne:n==="string"?(r=Gn(e))?(e=r,Jo):e1:e instanceof Gn?Jo:e instanceof Date?QM:ZM(e)?UM:Array.isArray(e)?KM:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?JM:Ne)(t,e)}function nS(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var n1=180/Math.PI,lc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function r1(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)*n1,skewX:Math.atan(l)*n1,scaleX:s,scaleY:a}}var ts;function rS(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?lc:r1(e.a,e.b,e.c,e.d,e.e,e.f)}function iS(t){return t==null||(ts||(ts=document.createElementNS("http://www.w3.org/2000/svg","g")),ts.setAttribute("transform",t),!(t=ts.transform.baseVal.consolidate()))?lc:(t=t.matrix,r1(t.a,t.b,t.c,t.d,t.e,t.f))}function i1(t,e,n,r){function i(c){return c.length?c.pop()+" ":""}function o(c,h,u,f,p,g){if(c!==u||h!==f){var y=p.push("translate(",null,e,null,n);g.push({i:y-4,x:Ne(c,u)},{i:y-2,x:Ne(h,f)})}else(u||f)&&p.push("translate("+u+e+f+n)}function s(c,h,u,f){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),f.push({i:u.push(i(u)+"rotate(",null,r)-2,x:Ne(c,h)})):h&&u.push(i(u)+"rotate("+h+r)}function a(c,h,u,f){c!==h?f.push({i:u.push(i(u)+"skewX(",null,r)-2,x:Ne(c,h)}):h&&u.push(i(u)+"skewX("+h+r)}function l(c,h,u,f,p,g){if(c!==u||h!==f){var y=p.push(i(p)+"scale(",null,",",null,")");g.push({i:y-4,x:Ne(c,u)},{i:y-2,x:Ne(h,f)})}else(u!==1||f!==1)&&p.push(i(p)+"scale("+u+","+f+")")}return function(c,h){var u=[],f=[];return c=t(c),h=t(h),o(c.translateX,c.translateY,h.translateX,h.translateY,u,f),s(c.rotate,h.rotate,u,f),a(c.skewX,h.skewX,u,f),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,f),c=h=null,function(p){for(var g=-1,y=f.length,m;++g<y;)u[(m=f[g]).i]=m.x(p);return u.join("")}}}var oS=i1(rS,"px, ","px)","deg)"),sS=i1(iS,", ",")",")"),br=0,ui=0,fi=0,o1=1e3,es,pi,ns=0,Zn=0,rs=0,gi=typeof performance=="object"&&performance.now?performance:Date,s1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function cc(){return Zn||(s1(aS),Zn=gi.now()+rs)}function aS(){Zn=0}function is(){this._call=this._time=this._next=null}is.prototype=hc.prototype={constructor:is,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?cc():+n)+(e==null?0:+e),!this._next&&pi!==this&&(pi?pi._next=this:es=this,pi=this),this._call=t,this._time=n,dc()},stop:function(){this._call&&(this._call=null,this._time=1/0,dc())}};function hc(t,e,n){var r=new is;return r.restart(t,e,n),r}function lS(){cc(),++br;for(var t=es,e;t;)(e=Zn-t._time)>=0&&t._call.call(void 0,e),t=t._next;--br}function a1(){Zn=(ns=gi.now())+rs,br=ui=0;try{lS()}finally{br=0,hS(),Zn=0}}function cS(){var t=gi.now(),e=t-ns;e>o1&&(rs-=e,ns=t)}function hS(){for(var t,e=es,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:es=n);pi=t,dc(r)}function dc(t){if(!br){ui&&(ui=clearTimeout(ui));var e=t-Zn;e>24?(t<1/0&&(ui=setTimeout(a1,t-gi.now()-rs)),fi&&(fi=clearInterval(fi))):(fi||(ns=gi.now(),fi=setInterval(cS,o1)),br=1,s1(a1))}}function l1(t,e,n){var r=new is;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var dS=Kl("start","end","cancel","interrupt"),uS=[],c1=0,h1=1,uc=2,os=3,d1=4,fc=5,ss=6;function as(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;fS(t,n,{name:e,index:r,group:i,on:dS,tween:uS,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:c1})}function pc(t,e){var n=je(t,e);if(n.state>c1)throw new Error("too late; already scheduled");return n}function Ke(t,e){var n=je(t,e);if(n.state>os)throw new Error("too late; already running");return n}function je(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function fS(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=hc(o,0,n.time);function o(c){n.state=h1,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var h,u,f,p;if(n.state!==h1)return l();for(h in r)if(p=r[h],p.name===n.name){if(p.state===os)return l1(s);p.state===d1?(p.state=ss,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[h]):+h<e&&(p.state=ss,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[h])}if(l1(function(){n.state===os&&(n.state=d1,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=uc,n.on.call("start",t,t.__data__,n.index,n.group),n.state===uc){for(n.state=os,i=new Array(f=n.tween.length),h=0,u=-1;h<f;++h)(p=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++u]=p);i.length=u+1}}function a(c){for(var h=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=fc,1),u=-1,f=i.length;++u<f;)i[u].call(t,h);n.state===fc&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=ss,n.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function pS(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>uc&&r.state<fc,r.state=ss,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function gS(t){return this.each(function(){pS(this,t)})}function mS(t,e){var n,r;return function(){var i=Ke(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 yS(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Ke(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 vS(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=je(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?mS:yS)(n,t,e))}function gc(t,e,n){var r=t._id;return t.each(function(){var i=Ke(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return je(i,r).value[e]}}function u1(t,e){var n;return(typeof e=="number"?Ne:e instanceof Gn?Jo:(n=Gn(e))?(e=n,Jo):e1)(t,e)}function xS(t){return function(){this.removeAttribute(t)}}function bS(t){return function(){this.removeAttributeNS(t.space,t.local)}}function _S(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 wS(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 $S(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 PS(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 OS(t,e){var n=Go(t),r=n==="transform"?sS:u1;return this.attrTween(t,typeof e=="function"?(n.local?PS:$S)(n,r,gc(this,"attr."+t,e)):e==null?(n.local?bS:xS)(n):(n.local?wS:_S)(n,r,e))}function CS(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function MS(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function SS(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&MS(t,o)),n}return i._value=e,i}function ES(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&CS(t,o)),n}return i._value=e,i}function IS(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=Go(t);return this.tween(n,(r.local?SS:ES)(r,e))}function TS(t,e){return function(){pc(this,t).delay=+e.apply(this,arguments)}}function AS(t,e){return e=+e,function(){pc(this,t).delay=e}}function kS(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?TS:AS)(e,t)):je(this.node(),e).delay}function zS(t,e){return function(){Ke(this,t).duration=+e.apply(this,arguments)}}function LS(t,e){return e=+e,function(){Ke(this,t).duration=e}}function HS(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?zS:LS)(e,t)):je(this.node(),e).duration}function RS(t,e){if(typeof e!="function")throw new Error;return function(){Ke(this,t).ease=e}}function DS(t){var e=this._id;return arguments.length?this.each(RS(e,t)):je(this.node(),e).ease}function NS(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Ke(this,t).ease=n}}function jS(t){if(typeof t!="function")throw new Error;return this.each(NS(this._id,t))}function BS(t){typeof t!="function"&&(t=Lg(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 hn(r,this._parents,this._name,this._id)}function FS(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],h=l.length,u=s[a]=new Array(h),f,p=0;p<h;++p)(f=l[p]||c[p])&&(u[p]=f);for(;a<r;++a)s[a]=e[a];return new hn(s,this._parents,this._name,this._id)}function VS(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 WS(t,e,n){var r,i,o=VS(e)?pc:Ke;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}function YS(t,e){var n=this._id;return arguments.length<2?je(this.node(),n).on.on(t):this.each(WS(n,t,e))}function XS(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function GS(){return this.on("end.remove",XS(this._id))}function qS(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Jl(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),h,u,f=0;f<l;++f)(h=a[f])&&(u=t.call(h,h.__data__,f,a))&&("__data__"in h&&(u.__data__=h.__data__),c[f]=u,as(c[f],e,n,f,c,je(h,n)));return new hn(o,this._parents,e,n)}function US(t){var e=this._name,n=this._id;typeof t!="function"&&(t=zg(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var f=t.call(h,h.__data__,u,l),p,g=je(h,n),y=0,m=f.length;y<m;++y)(p=f[y])&&as(p,e,n,y,f,g);o.push(f),s.push(h)}return new hn(o,s,e,n)}var ZS=li.prototype.constructor;function KS(){return new ZS(this._groups,this._parents)}function QS(t,e){var n,r,i;return function(){var o=vr(this,t),s=(this.style.removeProperty(t),vr(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}function f1(t){return function(){this.style.removeProperty(t)}}function JS(t,e,n){var r,i=n+"",o;return function(){var s=vr(this,t);return s===i?null:s===r?o:o=e(r=s,n)}}function tE(t,e,n){var r,i,o;return function(){var s=vr(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),vr(this,t))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a))}}function eE(t,e){var n,r,i,o="style."+e,s="end."+o,a;return function(){var l=Ke(this,t),c=l.on,h=l.value[o]==null?a||(a=f1(e)):void 0;(c!==n||i!==h)&&(r=(n=c).copy()).on(s,i=h),l.on=r}}function nE(t,e,n){var r=(t+="")=="transform"?oS:u1;return e==null?this.styleTween(t,QS(t,r)).on("end.style."+t,f1(t)):typeof e=="function"?this.styleTween(t,tE(t,r,gc(this,"style."+t,e))).each(eE(this._id,t)):this.styleTween(t,JS(t,r,e),n).on("end.style."+t,null)}function rE(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function iE(t,e,n){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&rE(t,s,n)),r}return o._value=e,o}function oE(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,iE(t,e,n==null?"":n))}function sE(t){return function(){this.textContent=t}}function aE(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function lE(t){return this.tween("text",typeof t=="function"?aE(gc(this,"text",t)):sE(t==null?"":t+""))}function cE(t){return function(e){this.textContent=t.call(this,e)}}function hE(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&cE(i)),e}return r._value=t,r}function dE(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,hE(t))}function uE(){for(var t=this._name,e=this._id,n=p1(),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 h=je(l,e);as(l,t,n,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new hn(r,this._parents,t,n)}function fE(){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=Ke(this,r),h=c.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),i===0&&o()})}var pE=0;function hn(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function p1(){return++pE}var dn=li.prototype;hn.prototype={constructor:hn,select:qS,selectAll:US,selectChild:dn.selectChild,selectChildren:dn.selectChildren,filter:BS,merge:FS,selection:KS,transition:uE,call:dn.call,nodes:dn.nodes,node:dn.node,size:dn.size,empty:dn.empty,each:dn.each,on:YS,attr:OS,attrTween:IS,style:nE,styleTween:oE,text:lE,textTween:dE,remove:GS,tween:vS,delay:kS,duration:HS,ease:DS,easeVarying:jS,end:fE,[Symbol.iterator]:dn[Symbol.iterator]};function gE(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var mE={time:null,delay:0,duration:250,ease:gE};function yE(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 vE(t){var e,n;t instanceof hn?(e=t._id,t=t._name):(e=p1(),(n=mE).time=cc(),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])&&as(l,t,e,c,s,n||yE(l,e));return new hn(r,this._parents,t,e)}li.prototype.interrupt=gS,li.prototype.transition=vE;const mc=Math.PI,yc=2*mc,Kn=1e-6,xE=yc-Kn;function g1(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function bE(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return g1;const n=Ci(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?g1:bE(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,h=s-e,u=a-n,f=h*h+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(f>Kn)if(!(Math.abs(u*l-c*h)>Kn)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let p=r-s,g=i-a,y=l*l+c*c,m=p*p+g*g,x=Math.sqrt(y),v=Math.sqrt(f),b=o*Math.tan((mc-Math.acos((y+f-m)/(2*x*v)))/2),_=b/v,w=b/x;Math.abs(_-1)>Kn&&this._append`L${e+_*h},${n+_*u}`,this._append`A${o},${o},0,0,${+(u*p>h*g)},${this._x1=e+w*l},${this._y1=n+w*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,h=n+l,u=1^s,f=s?i-o:o-i;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>Kn||Math.abs(this._y1-h)>Kn)&&this._append`L${c},${h}`,r&&(f<0&&(f=f%yc+yc),f>xE?this._append`A${r},${r},0,1,${u},${e-a},${n-l}A${r},${r},0,1,${u},${this._x1=c},${this._y1=h}`:f>Kn&&this._append`A${r},${r},0,${+(f>=mc)},${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 wE(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 $E(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return m1(this.cover(e,n),e,n,t)}function m1(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,h=t._y1,u,f,p,g,y,m,x,v;if(!o)return t._root=s,t;for(;o.length;)if((y=e>=(u=(a+c)/2))?a=u:c=u,(m=n>=(f=(l+h)/2))?l=f:h=f,i=o,!(o=o[x=m<<1|y]))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),(y=e>=(u=(a+c)/2))?a=u:c=u,(m=n>=(f=(l+h)/2))?l=f:h=f;while((x=m<<1|y)===(v=(g>=f)<<1|p>=u));return i[v]=o,i[x]=s,t}function PE(t){var e,n,r=t.length,i,o,s=new Array(r),a=new Array(r),l=1/0,c=1/0,h=-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>h&&(h=i),o<c&&(c=o),o>u&&(u=o));if(l>h||c>u)return this;for(this.cover(l,c).cover(h,u),n=0;n<r;++n)m1(this,s[n],a[n],t[n]);return this}function OE(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 CE(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function ME(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 we(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function SE(t,e,n){var r,i=this._x0,o=this._y0,s,a,l,c,h=this._x1,u=this._y1,f=[],p=this._root,g,y;for(p&&f.push(new we(p,i,o,h,u)),n==null?n=1/0:(i=t-n,o=e-n,h=t+n,u=e+n,n*=n);g=f.pop();)if(!(!(p=g.node)||(s=g.x0)>h||(a=g.y0)>u||(l=g.x1)<i||(c=g.y1)<o))if(p.length){var m=(s+l)/2,x=(a+c)/2;f.push(new we(p[3],m,x,l,c),new we(p[2],s,x,m,c),new we(p[1],m,a,l,x),new we(p[0],s,a,m,x)),(y=(e>=x)<<1|t>=m)&&(g=f[f.length-1],f[f.length-1]=f[f.length-1-y],f[f.length-1-y]=g)}else{var v=t-+this._x.call(null,p.data),b=e-+this._y.call(null,p.data),_=v*v+b*b;if(_<n){var w=Math.sqrt(n=_);i=t-w,o=e-w,h=t+w,u=e+w,r=p.data}}return r}function EE(t){if(isNaN(h=+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,h,u,f,p,g,y,m,x;if(!n)return this;if(n.length)for(;;){if((g=h>=(f=(s+l)/2))?s=f:l=f,(y=u>=(p=(a+c)/2))?a=p:c=p,e=n,!(n=n[m=y<<1|g]))return this;if(!n.length)break;(e[m+1&3]||e[m+2&3]||e[m+3&3])&&(r=e,x=m)}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[m]=o:delete e[m],(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 IE(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}function TE(){return this._root}function AE(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function kE(t){var e=[],n,r=this._root,i,o,s,a,l;for(r&&e.push(new we(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,h=(s+l)/2;(i=r[3])&&e.push(new we(i,c,h,a,l)),(i=r[2])&&e.push(new we(i,o,h,c,l)),(i=r[1])&&e.push(new we(i,c,s,a,h)),(i=r[0])&&e.push(new we(i,o,s,c,h))}return this}function zE(t){var e=[],n=[],r;for(this._root&&e.push(new we(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,h=(s+l)/2,u=(a+c)/2;(o=i[0])&&e.push(new we(o,s,a,h,u)),(o=i[1])&&e.push(new we(o,h,a,l,u)),(o=i[2])&&e.push(new we(o,s,u,h,c)),(o=i[3])&&e.push(new we(o,h,u,l,c))}n.push(r)}for(;r=n.pop();)t(r.node,r.x0,r.y0,r.x1,r.y1);return this}function LE(t){return t[0]}function HE(t){return arguments.length?(this._x=t,this):this._x}function RE(t){return t[1]}function DE(t){return arguments.length?(this._y=t,this):this._y}function vc(t,e,n){var r=new xc(e==null?LE:e,n==null?RE:n,NaN,NaN,NaN,NaN);return t==null?r:r.addAll(t)}function xc(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 y1(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var $e=vc.prototype=xc.prototype;$e.copy=function(){var t=new xc(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=y1(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]=y1(r));return t},$e.add=$E,$e.addAll=PE,$e.cover=OE,$e.data=CE,$e.extent=ME,$e.find=SE,$e.remove=EE,$e.removeAll=IE,$e.root=TE,$e.size=AE,$e.visit=kE,$e.visitAfter=zE,$e.x=HE,$e.y=DE;function Qn(t){return function(){return t}}function Pn(t){return(t()-.5)*1e-6}function NE(t){return t.x+t.vx}function jE(t){return t.y+t.vy}function BE(t){var e,n,r,i=1,o=1;typeof t!="function"&&(t=Qn(t==null?1:+t));function s(){for(var c,h=e.length,u,f,p,g,y,m,x=0;x<o;++x)for(u=vc(e,NE,jE).visitAfter(a),c=0;c<h;++c)f=e[c],y=n[f.index],m=y*y,p=f.x+f.vx,g=f.y+f.vy,u.visit(v);function v(b,_,w,$,P){var O=b.data,T=b.r,I=y+T;if(O){if(O.index>f.index){var S=p-O.x-O.vx,R=g-O.y-O.vy,M=S*S+R*R;M<I*I&&(S===0&&(S=Pn(r),M+=S*S),R===0&&(R=Pn(r),M+=R*R),M=(I-(M=Math.sqrt(M)))/M*i,f.vx+=(S*=M)*(I=(T*=T)/(m+T)),f.vy+=(R*=M)*I,O.vx-=S*(I=1-I),O.vy-=R*I)}return}return _>p+I||$<p-I||w>g+I||P<g-I}}function a(c){if(c.data)return c.r=n[c.data.index];for(var h=c.r=0;h<4;++h)c[h]&&c[h].r>c.r&&(c.r=c[h].r)}function l(){if(e){var c,h=e.length,u;for(n=new Array(h),c=0;c<h;++c)u=e[c],n[u.index]=+t(u,c,e)}}return s.initialize=function(c,h){e=c,r=h,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:Qn(+c),l(),s):t},s}function FE(t){return t.index}function v1(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function VE(t){var e=FE,n=u,r,i=Qn(30),o,s,a,l,c,h=1;t==null&&(t=[]);function u(m){return 1/Math.min(a[m.source.index],a[m.target.index])}function f(m){for(var x=0,v=t.length;x<h;++x)for(var b=0,_,w,$,P,O,T,I;b<v;++b)_=t[b],w=_.source,$=_.target,P=$.x+$.vx-w.x-w.vx||Pn(c),O=$.y+$.vy-w.y-w.vy||Pn(c),T=Math.sqrt(P*P+O*O),T=(T-o[b])/T*m*r[b],P*=T,O*=T,$.vx-=P*(I=l[b]),$.vy-=O*I,w.vx+=P*(I=1-I),w.vy+=O*I}function p(){if(s){var m,x=s.length,v=t.length,b=new Map(s.map((w,$)=>[e(w,$,s),w])),_;for(m=0,a=new Array(x);m<v;++m)_=t[m],_.index=m,typeof _.source!="object"&&(_.source=v1(b,_.source)),typeof _.target!="object"&&(_.target=v1(b,_.target)),a[_.source.index]=(a[_.source.index]||0)+1,a[_.target.index]=(a[_.target.index]||0)+1;for(m=0,l=new Array(v);m<v;++m)_=t[m],l[m]=a[_.source.index]/(a[_.source.index]+a[_.target.index]);r=new Array(v),g(),o=new Array(v),y()}}function g(){if(s)for(var m=0,x=t.length;m<x;++m)r[m]=+n(t[m],m,t)}function y(){if(s)for(var m=0,x=t.length;m<x;++m)o[m]=+i(t[m],m,t)}return f.initialize=function(m,x){s=m,c=x,p()},f.links=function(m){return arguments.length?(t=m,p(),f):t},f.id=function(m){return arguments.length?(e=m,f):e},f.iterations=function(m){return arguments.length?(h=+m,f):h},f.strength=function(m){return arguments.length?(n=typeof m=="function"?m:Qn(+m),g(),f):n},f.distance=function(m){return arguments.length?(i=typeof m=="function"?m:Qn(+m),y(),f):i},f}const WE=1664525,YE=1013904223,x1=4294967296;function XE(){let t=1;return()=>(t=(WE*t+YE)%x1)/x1}function GE(t){return t.x}function qE(t){return t.y}var UE=10,ZE=Math.PI*(3-Math.sqrt(5));function KE(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=new Map,l=hc(u),c=Kl("tick","end"),h=XE();t==null&&(t=[]);function u(){f(),c.call("tick",e),n<r&&(l.stop(),c.call("end",e))}function f(y){var m,x=t.length,v;y===void 0&&(y=1);for(var b=0;b<y;++b)for(n+=(o-n)*i,a.forEach(function(_){_(n)}),m=0;m<x;++m)v=t[m],v.fx==null?v.x+=v.vx*=s:(v.x=v.fx,v.vx=0),v.fy==null?v.y+=v.vy*=s:(v.y=v.fy,v.vy=0);return e}function p(){for(var y=0,m=t.length,x;y<m;++y){if(x=t[y],x.index=y,x.fx!=null&&(x.x=x.fx),x.fy!=null&&(x.y=x.fy),isNaN(x.x)||isNaN(x.y)){var v=UE*Math.sqrt(.5+y),b=y*ZE;x.x=v*Math.cos(b),x.y=v*Math.sin(b)}(isNaN(x.vx)||isNaN(x.vy))&&(x.vx=x.vy=0)}}function g(y){return y.initialize&&y.initialize(t,h),y}return p(),e={tick:f,restart:function(){return l.restart(u),e},stop:function(){return l.stop(),e},nodes:function(y){return arguments.length?(t=y,p(),a.forEach(g),e):t},alpha:function(y){return arguments.length?(n=+y,e):n},alphaMin:function(y){return arguments.length?(r=+y,e):r},alphaDecay:function(y){return arguments.length?(i=+y,e):+i},alphaTarget:function(y){return arguments.length?(o=+y,e):o},velocityDecay:function(y){return arguments.length?(s=1-y,e):1-s},randomSource:function(y){return arguments.length?(h=y,a.forEach(g),e):h},force:function(y,m){return arguments.length>1?(m==null?a.delete(y):a.set(y,g(m)),e):a.get(y)},find:function(y,m,x){var v=0,b=t.length,_,w,$,P,O;for(x==null?x=1/0:x*=x,v=0;v<b;++v)P=t[v],_=y-P.x,w=m-P.y,$=_*_+w*w,$<x&&(O=P,x=$);return O},on:function(y,m){return arguments.length>1?(c.on(y,m),e):c.on(y)}}}function QE(){var t,e,n,r,i=Qn(-30),o,s=1,a=1/0,l=.81;function c(p){var g,y=t.length,m=vc(t,GE,qE).visitAfter(u);for(r=p,g=0;g<y;++g)e=t[g],m.visit(f)}function h(){if(t){var p,g=t.length,y;for(o=new Array(g),p=0;p<g;++p)y=t[p],o[y.index]=+i(y,p,t)}}function u(p){var g=0,y,m,x=0,v,b,_;if(p.length){for(v=b=_=0;_<4;++_)(y=p[_])&&(m=Math.abs(y.value))&&(g+=y.value,x+=m,v+=m*y.x,b+=m*y.y);p.x=v/x,p.y=b/x}else{y=p,y.x=y.data.x,y.y=y.data.y;do g+=o[y.data.index];while(y=y.next)}p.value=g}function f(p,g,y,m){if(!p.value)return!0;var x=p.x-e.x,v=p.y-e.y,b=m-g,_=x*x+v*v;if(b*b/l<_)return _<a&&(x===0&&(x=Pn(n),_+=x*x),v===0&&(v=Pn(n),_+=v*v),_<s&&(_=Math.sqrt(s*_)),e.vx+=x*p.value*r/_,e.vy+=v*p.value*r/_),!0;if(p.length||_>=a)return;(p.data!==e||p.next)&&(x===0&&(x=Pn(n),_+=x*x),v===0&&(v=Pn(n),_+=v*v),_<s&&(_=Math.sqrt(s*_)));do p.data!==e&&(b=o[p.data.index]*r/_,e.vx+=x*b,e.vy+=v*b);while(p=p.next)}return c.initialize=function(p,g){t=p,n=g,h()},c.strength=function(p){return arguments.length?(i=typeof p=="function"?p:Qn(+p),h(),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 JE(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function ls(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 _r(t){return t=ls(Math.abs(t)),t?t[1]:NaN}function tI(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 eI(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var nI=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cs(t){if(!(e=nI.exec(t)))throw new Error("invalid format: "+t);var e;return new bc({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]})}cs.prototype=bc.prototype;function bc(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+""}bc.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 rI(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 b1;function iI(t,e){var n=ls(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(b1=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")+ls(t,Math.max(0,e+o-1))[0]}function _1(t,e){var n=ls(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 w1={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:JE,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)=>_1(t*100,e),r:_1,s:iI,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function $1(t){return t}var P1=Array.prototype.map,O1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function oI(t){var e=t.grouping===void 0||t.thousands===void 0?$1:tI(P1.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?$1:eI(P1.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=cs(u);var f=u.fill,p=u.align,g=u.sign,y=u.symbol,m=u.zero,x=u.width,v=u.comma,b=u.precision,_=u.trim,w=u.type;w==="n"?(v=!0,w="g"):w1[w]||(b===void 0&&(b=12),_=!0,w="g"),(m||f==="0"&&p==="=")&&(m=!0,f="0",p="=");var $=y==="$"?n:y==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",P=y==="$"?r:/[%p]/.test(w)?s:"",O=w1[w],T=/[defgprs%]/.test(w);b=b===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function I(S){var R=$,M=P,A,W,k;if(w==="c")M=O(S)+M,S="";else{S=+S;var D=S<0||1/S<0;if(S=isNaN(S)?l:O(Math.abs(S),b),_&&(S=rI(S)),D&&+S==0&&g!=="+"&&(D=!1),R=(D?g==="("?g:a:g==="-"||g==="("?"":g)+R,M=(w==="s"?O1[8+b1/3]:"")+M+(D&&g==="("?")":""),T){for(A=-1,W=S.length;++A<W;)if(k=S.charCodeAt(A),48>k||k>57){M=(k===46?i+S.slice(A+1):S.slice(A))+M,S=S.slice(0,A);break}}}v&&!m&&(S=e(S,1/0));var z=R.length+S.length+M.length,N=z<x?new Array(x-z+1).join(f):"";switch(v&&m&&(S=e(N+S,N.length?x-M.length:1/0),N=""),p){case"<":S=R+S+M+N;break;case"=":S=R+N+S+M;break;case"^":S=N.slice(0,z=N.length>>1)+R+S+M+N.slice(z);break;default:S=N+R+S+M;break}return o(S)}return I.toString=function(){return u+""},I}function h(u,f){var p=c((u=cs(u),u.type="f",u)),g=Math.max(-8,Math.min(8,Math.floor(_r(f)/3)))*3,y=Math.pow(10,-g),m=O1[8+g/3];return function(x){return p(y*x)+m}}return{format:c,formatPrefix:h}}var hs,C1,M1;sI({thousands:",",grouping:[3],currency:["$",""]});function sI(t){return hs=oI(t),C1=hs.format,M1=hs.formatPrefix,hs}function aI(t){return Math.max(0,-_r(Math.abs(t)))}function lI(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(_r(e)/3)))*3-_r(Math.abs(t)))}function cI(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,_r(e)-_r(t))+1}function hI(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 dI(){return this.eachAfter(hI)}function uI(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this}function fI(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 pI(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 gI(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r}function mI(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 yI(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function vI(t){for(var e=this,n=xI(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 xI(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 bI(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function _I(){return Array.from(this)}function wI(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function $I(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*PI(){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 _c(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=MI)):e===void 0&&(e=CI);for(var n=new mi(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 mi(s[a])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(EI)}function OI(){return _c(this).eachBefore(SI)}function CI(t){return t.children}function MI(t){return Array.isArray(t)?t[1]:null}function SI(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function EI(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function mi(t){this.data=t,this.depth=this.height=0,this.parent=null}mi.prototype=_c.prototype={constructor:mi,count:dI,each:uI,eachAfter:pI,eachBefore:fI,find:gI,sum:mI,sort:yI,path:vI,ancestors:bI,descendants:_I,leaves:wI,links:$I,copy:OI,[Symbol.iterator]:PI};function II(t,e){return t.parent===e.parent?1:2}function wc(t){var e=t.children;return e?e[0]:t.t}function $c(t){var e=t.children;return e?e[e.length-1]:t.t}function TI(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 AI(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 kI(t,e,n){return t.a.parent===e.parent?t.a:n}function ds(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}ds.prototype=Object.create(mi.prototype);function zI(t){for(var e=new ds(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 ds(o[s],s)),i.parent=n;return(e.parent=new ds(null,0)).children=[e],e}function LI(){var t=II,e=1,n=1,r=null;function i(c){var h=zI(c);if(h.eachAfter(o),h.parent.m=-h.z,h.eachBefore(s),r)c.eachBefore(l);else{var u=c,f=c,p=c;c.eachBefore(function(v){v.x<u.x&&(u=v),v.x>f.x&&(f=v),v.depth>p.depth&&(p=v)});var g=u===f?1:t(u,f)/2,y=g-u.x,m=e/(f.x+g+y),x=n/(p.depth||1);c.eachBefore(function(v){v.x=(v.x+y)*m,v.y=v.depth*x})}return c}function o(c){var h=c.children,u=c.parent.children,f=c.i?u[c.i-1]:null;if(h){AI(c);var p=(h[0].z+h[h.length-1].z)/2;f?(c.z=f.z+t(c._,f._),c.m=c.z-p):c.z=p}else f&&(c.z=f.z+t(c._,f._));c.parent.A=a(c,f,c.parent.A||u[0])}function s(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function a(c,h,u){if(h){for(var f=c,p=c,g=h,y=f.parent.children[0],m=f.m,x=p.m,v=g.m,b=y.m,_;g=$c(g),f=wc(f),g&&f;)y=wc(y),p=$c(p),p.a=c,_=g.z+v-f.z-m+t(g._,f._),_>0&&(TI(kI(g,c,u),c,_),m+=_,x+=_),v+=g.m,m+=f.m,b+=y.m,x+=p.m;g&&!$c(p)&&(p.t=g,p.m+=v-x),f&&!wc(y)&&(y.t=f,y.m+=m-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 HI(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function RI(t){return function(){return t}}function DI(t){return+t}var S1=[0,1];function wr(t){return t}function Pc(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:RI(isNaN(e)?NaN:.5)}function NI(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function jI(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=Pc(i,r),o=n(s,o)):(r=Pc(r,i),o=n(o,s)),function(a){return o(r(a))}}function BI(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]=Pc(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(a){var l=XO(t,a,1,r)-1;return o[l](i[l](a))}}function FI(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function VI(){var t=S1,e=S1,n=ac,r,i,o,s=wr,a,l,c;function h(){var f=Math.min(t.length,e.length);return s!==wr&&(s=NI(t[0],t[f-1])),a=f>2?BI:jI,l=c=null,u}function u(f){return f==null||isNaN(f=+f)?o:(l||(l=a(t.map(r),e,n)))(r(s(f)))}return u.invert=function(f){return s(i((c||(c=a(e,t.map(r),Ne)))(f)))},u.domain=function(f){return arguments.length?(t=Array.from(f,DI),h()):t.slice()},u.range=function(f){return arguments.length?(e=Array.from(f),h()):e.slice()},u.rangeRound=function(f){return e=Array.from(f),n=nS,h()},u.clamp=function(f){return arguments.length?(s=f?!0:wr,h()):s!==wr},u.interpolate=function(f){return arguments.length?(n=f,h()):n},u.unknown=function(f){return arguments.length?(o=f,u):o},function(f,p){return r=f,i=p,h()}}function WI(){return VI()(wr,wr)}function YI(t,e,n,r){var i=KO(t,e,n),o;switch(r=cs(r==null?",f":r),r.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=lI(i,s))&&(r.precision=o),M1(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=cI(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=aI(i))&&(r.precision=o-(r.type==="%")*2);break}}return C1(r)}function XI(t){var e=t.domain;return t.ticks=function(n){var r=e();return ZO(r[0],r[r.length-1],n==null?10:n)},t.tickFormat=function(n,r){var i=e();return YI(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,h=10;for(a<s&&(c=s,s=a,a=c,c=i,i=o,o=c);h-- >0;){if(c=Zl(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 yi(){var t=WI();return t.copy=function(){return FI(t,yi())},HI.apply(t,arguments),XI(t)}function Kt(t){return function(){return t}}const E1=Math.abs,ye=Math.atan2,Jn=Math.cos,GI=Math.max,Oc=Math.min,Qe=Math.sin,$r=Math.sqrt,Ce=1e-12,vi=Math.PI,us=vi/2,fs=2*vi;function qI(t){return t>1?0:t<-1?vi:Math.acos(t)}function I1(t){return t>=1?us:t<=-1?-us:Math.asin(t)}function T1(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 UI(t){return t.innerRadius}function ZI(t){return t.outerRadius}function KI(t){return t.startAngle}function QI(t){return t.endAngle}function JI(t){return t&&t.padAngle}function tT(t,e,n,r,i,o,s,a){var l=n-t,c=r-e,h=s-i,u=a-o,f=u*l-h*c;if(!(f*f<Ce))return f=(h*(e-o)-u*(t-i))/f,[t+f*l,e+f*c]}function ps(t,e,n,r,i,o,s){var a=t-n,l=e-r,c=(s?o:-o)/$r(a*a+l*l),h=c*l,u=-c*a,f=t+h,p=e+u,g=n+h,y=r+u,m=(f+g)/2,x=(p+y)/2,v=g-f,b=y-p,_=v*v+b*b,w=i-o,$=f*y-g*p,P=(b<0?-1:1)*$r(GI(0,w*w*_-$*$)),O=($*b-v*P)/_,T=(-$*v-b*P)/_,I=($*b+v*P)/_,S=(-$*v+b*P)/_,R=O-m,M=T-x,A=I-m,W=S-x;return R*R+M*M>A*A+W*W&&(O=I,T=S),{cx:O,cy:T,x01:-h,y01:-u,x11:O*(i/w-1),y11:T*(i/w-1)}}function xi(){var t=UI,e=ZI,n=Kt(0),r=null,i=KI,o=QI,s=JI,a=null,l=T1(c);function c(){var h,u,f=+t.apply(this,arguments),p=+e.apply(this,arguments),g=i.apply(this,arguments)-us,y=o.apply(this,arguments)-us,m=E1(y-g),x=y>g;if(a||(a=h=l()),p<f&&(u=p,p=f,f=u),!(p>Ce))a.moveTo(0,0);else if(m>fs-Ce)a.moveTo(p*Jn(g),p*Qe(g)),a.arc(0,0,p,g,y,!x),f>Ce&&(a.moveTo(f*Jn(y),f*Qe(y)),a.arc(0,0,f,y,g,x));else{var v=g,b=y,_=g,w=y,$=m,P=m,O=s.apply(this,arguments)/2,T=O>Ce&&(r?+r.apply(this,arguments):$r(f*f+p*p)),I=Oc(E1(p-f)/2,+n.apply(this,arguments)),S=I,R=I,M,A;if(T>Ce){var W=I1(T/f*Qe(O)),k=I1(T/p*Qe(O));($-=W*2)>Ce?(W*=x?1:-1,_+=W,w-=W):($=0,_=w=(g+y)/2),(P-=k*2)>Ce?(k*=x?1:-1,v+=k,b-=k):(P=0,v=b=(g+y)/2)}var D=p*Jn(v),z=p*Qe(v),N=f*Jn(w),B=f*Qe(w);if(I>Ce){var Y=p*Jn(b),L=p*Qe(b),C=f*Jn(_),H=f*Qe(_),F;if(m<vi)if(F=tT(D,z,C,H,Y,L,N,B)){var Q=D-F[0],V=z-F[1],q=Y-F[0],G=L-F[1],U=1/Qe(qI((Q*q+V*G)/($r(Q*Q+V*V)*$r(q*q+G*G)))/2),Z=$r(F[0]*F[0]+F[1]*F[1]);S=Oc(I,(f-Z)/(U-1)),R=Oc(I,(p-Z)/(U+1))}else S=R=0}P>Ce?R>Ce?(M=ps(C,H,D,z,p,R,x),A=ps(Y,L,N,B,p,R,x),a.moveTo(M.cx+M.x01,M.cy+M.y01),R<I?a.arc(M.cx,M.cy,R,ye(M.y01,M.x01),ye(A.y01,A.x01),!x):(a.arc(M.cx,M.cy,R,ye(M.y01,M.x01),ye(M.y11,M.x11),!x),a.arc(0,0,p,ye(M.cy+M.y11,M.cx+M.x11),ye(A.cy+A.y11,A.cx+A.x11),!x),a.arc(A.cx,A.cy,R,ye(A.y11,A.x11),ye(A.y01,A.x01),!x))):(a.moveTo(D,z),a.arc(0,0,p,v,b,!x)):a.moveTo(D,z),!(f>Ce)||!($>Ce)?a.lineTo(N,B):S>Ce?(M=ps(N,B,Y,L,f,-S,x),A=ps(D,z,C,H,f,-S,x),a.lineTo(M.cx+M.x01,M.cy+M.y01),S<I?a.arc(M.cx,M.cy,S,ye(M.y01,M.x01),ye(A.y01,A.x01),!x):(a.arc(M.cx,M.cy,S,ye(M.y01,M.x01),ye(M.y11,M.x11),!x),a.arc(0,0,f,ye(M.cy+M.y11,M.cx+M.x11),ye(A.cy+A.y11,A.cx+A.x11),x),a.arc(A.cx,A.cy,S,ye(A.y11,A.x11),ye(A.y01,A.x01),!x))):a.arc(0,0,f,w,_,x)}if(a.closePath(),h)return a=null,h+""||null}return c.centroid=function(){var h=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,u=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-vi/2;return[Jn(u)*h,Qe(u)*h]},c.innerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:Kt(+h),c):t},c.outerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:Kt(+h),c):e},c.cornerRadius=function(h){return arguments.length?(n=typeof h=="function"?h:Kt(+h),c):n},c.padRadius=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:Kt(+h),c):r},c.startAngle=function(h){return arguments.length?(i=typeof h=="function"?h:Kt(+h),c):i},c.endAngle=function(h){return arguments.length?(o=typeof h=="function"?h:Kt(+h),c):o},c.padAngle=function(h){return arguments.length?(s=typeof h=="function"?h:Kt(+h),c):s},c.context=function(h){return arguments.length?(a=h==null?null:h,c):a},c}function A1(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function k1(t){this._context=t}k1.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 z1(t){return new k1(t)}function eT(t){return t[0]}function nT(t){return t[1]}function rT(t,e){var n=Kt(!0),r=null,i=z1,o=null,s=T1(a);t=typeof t=="function"?t:t===void 0?eT:Kt(t),e=typeof e=="function"?e:e===void 0?nT:Kt(e);function a(l){var c,h=(l=A1(l)).length,u,f=!1,p;for(r==null&&(o=i(p=s())),c=0;c<=h;++c)!(c<h&&n(u=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&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:Kt(+l),a):t},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:Kt(+l),a):e},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Kt(!!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 iT(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function oT(t){return t}function sT(){var t=oT,e=iT,n=null,r=Kt(0),i=Kt(fs),o=Kt(0);function s(a){var l,c=(a=A1(a)).length,h,u,f=0,p=new Array(c),g=new Array(c),y=+r.apply(this,arguments),m=Math.min(fs,Math.max(-fs,i.apply(this,arguments)-y)),x,v=Math.min(Math.abs(m)/c,o.apply(this,arguments)),b=v*(m<0?-1:1),_;for(l=0;l<c;++l)(_=g[p[l]=l]=+t(a[l],l,a))>0&&(f+=_);for(e!=null?p.sort(function(w,$){return e(g[w],g[$])}):n!=null&&p.sort(function(w,$){return n(a[w],a[$])}),l=0,u=f?(m-c*b)/f:0;l<c;++l,y=x)h=p[l],_=g[h],x=y+(_>0?_*u:0)+b,g[h]={data:a[h],index:l,value:_,startAngle:y,endAngle:x,padAngle:v};return g}return s.value=function(a){return arguments.length?(t=typeof a=="function"?a:Kt(+a),s):t},s.sortValues=function(a){return arguments.length?(e=a,n=null,s):e},s.sort=function(a){return arguments.length?(n=a,e=null,s):n},s.startAngle=function(a){return arguments.length?(r=typeof a=="function"?a:Kt(+a),s):r},s.endAngle=function(a){return arguments.length?(i=typeof a=="function"?a:Kt(+a),s):i},s.padAngle=function(a){return arguments.length?(o=typeof a=="function"?a:Kt(+a),s):o},s}function bi(t,e,n){this.k=t,this.x=e,this.y=n}bi.prototype={constructor:bi,scale:function(t){return t===1?this:new bi(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new bi(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+")"}},bi.prototype;var aT=Object.defineProperty,lT=Object.defineProperties,cT=Object.getOwnPropertyDescriptors,L1=Object.getOwnPropertySymbols,hT=Object.prototype.hasOwnProperty,dT=Object.prototype.propertyIsEnumerable,H1=(t,e,n)=>e in t?aT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,uT=(t,e)=>{for(var n in e||(e={}))hT.call(e,n)&&H1(t,n,e[n]);if(L1)for(var n of L1(e))dT.call(e,n)&&H1(t,n,e[n]);return t},fT=(t,e)=>lT(t,cT(e));const R1=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:h="normal",themeColors:u,valueFormatter:f=W=>`${W}%`},p]=Dt(t,["width","height","iconSize","gap","progressHeight","borderRadius"]),g=e.value,y=g!=null?g:0,m=Math.max(...n.items.map(W=>{var k;return(k=W.value)!=null?k:0}),100),x=i-2*a,b=yi().domain([0,m]).range([0,x])(y),_=`${u.colorPrimary}-progress`,w=`${u.colorPrimaryBg}-progress-bg`,$=tt(d(vt,{indexes:r})),P=a,O=h==="flipped"?i-a-s:a,T=P,I=h==="flipped"?a:s+2*a,S=i-s-3*a,R=T,M=o-a-l,A=g!==void 0;return E(X,fT(uT({},p),{children:[E(Mt,{children:[E("linearGradient",{id:_,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[d("stop",{offset:"0%",stopColor:u.colorPrimary}),d("stop",{offset:"100%",stopColor:it.mix(u.colorPrimary,"#fff",20).toHexString()})]}),E("linearGradient",{id:w,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[d("stop",{offset:"0%",stopColor:u.colorPrimaryBg}),d("stop",{offset:"100%",stopColor:u.colorBg})]})]}),d(xt,{x:0,y:0,width:i,height:o,fill:u.colorBgElevated,stroke:u.colorPrimaryBg,strokeWidth:1,rx:c,ry:c,"data-element-type":"shape"}),d(ge,{indexes:r,x:O,y:T,size:s,fill:u.colorPrimary}),d(vt,{indexes:r,x:I,y:R,width:S,alignHorizontal:h==="flipped"?"right":"left",alignVertical:"top",fontSize:16,fontWeight:"medium",fill:u.colorText,children:e.label}),A&&d(ei,{indexes:r,x:I,y:R+$.height,width:S,alignHorizontal:h==="flipped"?"right":"left",alignVertical:"top",lineHeight:1,fontSize:24,fontWeight:"bold",fill:u.colorPrimary,value:y,formatter:f}),d(Ft,{indexes:r,x:I,y:R+$.height+(A?27:4),width:S,alignHorizontal:h==="flipped"?"right":"left",alignVertical:"top",fontSize:11,fill:u.colorTextSecondary,lineNumber:A?2:3,wordWrap:!0,children:e.desc}),d(xt,{x:a,y:M,width:x,height:l,fill:`url(#${w})`,rx:l/2,ry:l/2,"data-element-type":"shape"}),d(xt,{x:a,y:M,width:b,height:l,fill:`url(#${_})`,rx:l/2,ry:l/2,"data-element-type":"shape"})]}))};Nt("progress-card",{component:R1,composites:["icon","label","value","desc"]});var pT=Object.defineProperty,gT=Object.defineProperties,mT=Object.getOwnPropertyDescriptors,D1=Object.getOwnPropertySymbols,yT=Object.prototype.hasOwnProperty,vT=Object.prototype.propertyIsEnumerable,N1=(t,e,n)=>e in t?pT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xT=(t,e)=>{for(var n in e||(e={}))yT.call(e,n)&&N1(t,n,e[n]);if(D1)for(var n of D1(e))vT.call(e,n)&&N1(t,n,e[n]);return t},bT=(t,e)=>gT(t,mT(e));const j1=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},h]=Dt(t,["width","height","iconSize","circleRadius"]),u=4*s/(3*Math.PI),f=2,p=4,g=28,y=20,m=y+20,x=y,v=8,b=35,_=40,w=30,$=String(n[0]+1).padStart(2,"0"),P=a==="flipped",O=l==="flipped",T=()=>P?{diagonalStartX:r-p,diagonalStartY:O?i-b:b,diagonalEndX:r-_,diagonalEndY:O?i-p:p,topLineStartX:r-_,topLineEndX:u,topLineY:O?i-p:p}:{diagonalStartX:p,diagonalStartY:O?i-b:b,diagonalEndX:_,diagonalEndY:O?i-p:p,topLineStartX:_,topLineEndX:r-u,topLineY:O?i-p:p},I=()=>{if(P){const D=s+10,z=r-D-_;return{valueX:r-w,contentX:D,contentWidth:z,circleX:0,circleY:O?0:i,iconX:u-o/2}}else return{valueX:0,contentX:_,contentWidth:r-_-s-10,circleX:r,circleY:O?0:i,iconX:r-u-o/2}},S=T(),R=I(),M=O?u-o/2:i-u-o/2,A=tt(d(vt,{indexes:n,width:R.contentWidth,children:e.label})),W=x+A.height+v,k=()=>{const{circleX:D,circleY:z}=R;return P?O?`M ${D} ${z} L ${D} ${z+s} A ${s} ${s} 0 0 0 ${D+s} ${z} Z`:`M ${D} ${z} L ${D} ${z-s} A ${s} ${s} 0 0 1 ${D+s} ${z} Z`:O?`M ${D} ${z} L ${D} ${z+s} A ${s} ${s} 0 0 1 ${D-s} ${z} Z`:`M ${D} ${z} L ${D} ${z-s} A ${s} ${s} 0 0 0 ${D-s} ${z} Z`};return E(X,bT(xT({},h),{width:r,height:i,children:[E(qt,{children:[d(at,{d:`M ${S.diagonalStartX} ${S.diagonalStartY} L ${S.diagonalEndX} ${S.diagonalEndY}`,stroke:c.colorPrimary,strokeWidth:f,fill:"none"}),d(at,{d:`M ${S.topLineStartX} ${S.topLineY} L ${S.topLineEndX} ${S.topLineY}`,stroke:c.colorPrimary,strokeWidth:f,fill:"none"}),d(St,{x:S.diagonalStartX-p,y:S.diagonalStartY-p,width:p*2,height:p*2,fill:c.colorPrimary}),d(St,{x:S.topLineEndX-p,y:S.topLineY-p,width:p*2,height:p*2,fill:c.colorPrimary})]}),E(X,{children:[d($t,{x:R.valueX,y:m,fontSize:g,fontWeight:"bold",fill:c.colorPrimary,children:$}),d(at,{d:k(),fill:c.colorPrimary,"data-element-type":"shape"}),e.icon&&d(ge,{indexes:n,x:R.iconX,y:M,size:o,fill:c.colorWhite}),e.label&&d(vt,{indexes:n,x:R.contentX,y:x,width:R.contentWidth,fontWeight:"bold",fill:c.colorText,alignHorizontal:P?"right":"left",children:e.label}),e.desc&&d(Ft,{indexes:n,x:R.contentX,y:W,width:R.contentWidth,fill:c.colorTextSecondary,alignHorizontal:P?"right":"left",children:e.desc})]})]}))};Nt("quarter-circular",{component:j1,composites:["icon","label","desc"]});var _T=Object.defineProperty,wT=Object.defineProperties,$T=Object.getOwnPropertyDescriptors,B1=Object.getOwnPropertySymbols,PT=Object.prototype.hasOwnProperty,OT=Object.prototype.propertyIsEnumerable,F1=(t,e,n)=>e in t?_T(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,CT=(t,e)=>{for(var n in e||(e={}))PT.call(e,n)&&F1(t,n,e[n]);if(B1)for(var n of B1(e))OT.call(e,n)&&F1(t,n,e[n]);return t},MT=(t,e)=>wT(t,$T(e));const V1=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:h},u]=Dt(t,["width","height","iconSize","padding","borderRadius"]),f=r-s*2,p=s,g=s,y=l==="flipped"?r-s-o:l==="center"?(r-o)/2:p,m=g,x=m+o+8,v=tt(d(vt,{indexes:n,width:f,children:e.label})),b=l==="flipped"?r-s-f:l==="center"?s:p,_=x+v.height+4,w=b,$=a;let P="";return l==="center"&&c==="middle"?P=`
|
|
30
|
+
`.replace(/\s+/g," ").trim()}function Xf(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=ri(e,o);return Yt(e,s),R6(e,t,n),e}function L6(t,e){var n;Yt(t,((n=e.themeConfig.base)==null?void 0:n.shape)||{})}function R6(t,e,n){const r=n.themeConfig.stylize;if(!r)return t;const{type:i}=r;if(!i)return t;if(i==="rough")return T6(t,e,r);if(i==="pattern")return a6(t,e,n);if(i==="linear-gradient"||i==="radial-gradient"){const{fill:o,stroke:s}=ke(t,["fill","stroke"]);Bn(o)&&Pf(t,e,r,"fill"),Bn(s)&&Pf(t,e,r,"stroke");return}}function H6(t,e){var n;const{themeConfig:r}=e,{"font-family":i=pl}=((n=r.base)==null?void 0:n.text)||{};t.setAttribute("font-family",i)}var D6=/\s/;function N6(t){for(var e=t.length;e--&&D6.test(t.charAt(e)););return e}var j6=/^\s+/;function F6(t){return t&&t.slice(0,N6(t)+1).replace(j6,"")}var qf=NaN,B6=/^[-+]0x[0-9a-f]+$/i,W6=/^0b[01]+$/i,V6=/^0o[0-7]+$/i,Y6=parseInt;function kl(t){if(typeof t=="number")return t;if(uo(t))return qf;if(en(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=en(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=F6(t);var n=W6.test(t);return n||V6.test(t)?Y6(t.slice(2),n?2:8):B6.test(t)?qf:+t}function Uf(t){return t}var zl=Yn(tn,"WeakMap"),Zf=Object.create,X6=(function(){function t(){}return function(e){if(!en(e))return{};if(Zf)return Zf(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function G6(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 q6(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var U6=800,Z6=16,K6=Date.now;function Q6(t){var e=0,n=0;return function(){var r=K6(),i=Z6-(r-n);if(n=r,i>0){if(++e>=U6)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function J6(t){return function(){return t}}var Ro=(function(){try{var t=Yn(Object,"defineProperty");return t({},"",{}),t}catch(e){}})(),t7=Ro?function(t,e){return Ro(t,"toString",{configurable:!0,enumerable:!1,value:J6(e),writable:!0})}:Uf,e7=Q6(t7);function n7(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var r7=9007199254740991,i7=/^(?:0|[1-9]\d*)$/;function Kf(t,e){var n=typeof t;return e=e==null?r7:e,!!e&&(n=="number"||n!="symbol"&&i7.test(t))&&t>-1&&t%1==0&&t<e}function Ll(t,e,n){e=="__proto__"&&Ro?Ro(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var o7=Object.prototype,s7=o7.hasOwnProperty;function Qf(t,e,n){var r=t[e];(!(s7.call(t,e)&&fo(r,n))||n===void 0&&!(e in t))&&Ll(t,e,n)}function a7(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?Ll(n,a,l):Qf(n,a,l)}return n}var Jf=Math.max;function l7(t,e,n){return e=Jf(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Jf(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),G6(t,this,a)}}function c7(t,e){return e7(l7(t,e,Uf),t+"")}var h7=9007199254740991;function t0(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=h7}function Ho(t){return t!=null&&t0(t.length)&&!Qa(t)}function d7(t,e,n){if(!en(n))return!1;var r=typeof e;return(r=="number"?Ho(n)&&Kf(e,n.length):r=="string"&&e in n)?fo(n[e],t):!1}function u7(t){return c7(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&&d7(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 f7=Object.prototype;function Rl(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||f7;return t===n}function p7(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var g7="[object Arguments]";function e0(t){return Sn(t)&&Wn(t)==g7}var n0=Object.prototype,m7=n0.hasOwnProperty,y7=n0.propertyIsEnumerable,Hl=e0((function(){return arguments})())?e0:function(t){return Sn(t)&&m7.call(t,"callee")&&!y7.call(t,"callee")};function v7(){return!1}var r0=typeof F=="object"&&F&&!F.nodeType&&F,i0=r0&&typeof module=="object"&&module&&!module.nodeType&&module,b7=i0&&i0.exports===r0,o0=b7?tn.Buffer:void 0,x7=o0?o0.isBuffer:void 0,Dl=x7||v7,w7="[object Arguments]",_7="[object Array]",$7="[object Boolean]",P7="[object Date]",O7="[object Error]",C7="[object Function]",M7="[object Map]",S7="[object Number]",E7="[object Object]",I7="[object RegExp]",T7="[object Set]",A7="[object String]",k7="[object WeakMap]",z7="[object ArrayBuffer]",L7="[object DataView]",R7="[object Float32Array]",H7="[object Float64Array]",D7="[object Int8Array]",N7="[object Int16Array]",j7="[object Int32Array]",F7="[object Uint8Array]",B7="[object Uint8ClampedArray]",W7="[object Uint16Array]",V7="[object Uint32Array]",Zt={};Zt[R7]=Zt[H7]=Zt[D7]=Zt[N7]=Zt[j7]=Zt[F7]=Zt[B7]=Zt[W7]=Zt[V7]=!0,Zt[w7]=Zt[_7]=Zt[z7]=Zt[$7]=Zt[L7]=Zt[P7]=Zt[O7]=Zt[C7]=Zt[M7]=Zt[S7]=Zt[E7]=Zt[I7]=Zt[T7]=Zt[A7]=Zt[k7]=!1;function Y7(t){return Sn(t)&&t0(t.length)&&!!Zt[Wn(t)]}function Nl(t){return function(e){return t(e)}}var s0=typeof F=="object"&&F&&!F.nodeType&&F,li=s0&&typeof module=="object"&&module&&!module.nodeType&&module,X7=li&&li.exports===s0,jl=X7&&Ud.process,Er=(function(){try{var t=li&&li.require&&li.require("util").types;return t||jl&&jl.binding&&jl.binding("util")}catch(e){}})(),a0=Er&&Er.isTypedArray,l0=a0?Nl(a0):Y7,G7=Object.prototype,q7=G7.hasOwnProperty;function c0(t,e){var n=Cn(t),r=!n&&Hl(t),i=!n&&!r&&Dl(t),o=!n&&!r&&!i&&l0(t),s=n||r||i||o,a=s?p7(t.length,String):[],l=a.length;for(var c in t)(e||q7.call(t,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Kf(c,l)))&&a.push(c);return a}function h0(t,e){return function(n){return t(e(n))}}var U7=h0(Object.keys,Object),Z7=Object.prototype,K7=Z7.hasOwnProperty;function Q7(t){if(!Rl(t))return U7(t);var e=[];for(var n in Object(t))K7.call(t,n)&&n!="constructor"&&e.push(n);return e}function J7(t){return Ho(t)?c0(t):Q7(t)}function t9(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var e9=Object.prototype,n9=e9.hasOwnProperty;function r9(t){if(!en(t))return t9(t);var e=Rl(t),n=[];for(var r in t)r=="constructor"&&(e||!n9.call(t,r))||n.push(r);return n}function d0(t){return Ho(t)?c0(t,!0):r9(t)}function i9(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var u0=h0(Object.getPrototypeOf,Object),o9="[object Object]",s9=Function.prototype,a9=Object.prototype,f0=s9.toString,l9=a9.hasOwnProperty,c9=f0.call(Object);function h9(t){if(!Sn(t)||Wn(t)!=o9)return!1;var e=u0(t);if(e===null)return!0;var n=l9.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&f0.call(n)==c9}function d9(t,e,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),e!==void 0&&(t=t>=e?t:e)),t}function u9(t,e,n){return n===void 0&&(n=e,e=void 0),n!==void 0&&(n=kl(n),n=n===n?n:0),e!==void 0&&(e=kl(e),e=e===e?e:0),d9(kl(t),e,n)}function f9(){this.__data__=new pn,this.size=0}function p9(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function g9(t){return this.__data__.get(t)}function m9(t){return this.__data__.has(t)}var y9=200;function v9(t,e){var n=this.__data__;if(n instanceof pn){var r=n.__data__;if(!Qr||r.length<y9-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new En(r)}return n.set(t,e),this.size=n.size,this}function Zn(t){var e=this.__data__=new pn(t);this.size=e.size}Zn.prototype.clear=f9,Zn.prototype.delete=p9,Zn.prototype.get=g9,Zn.prototype.has=m9,Zn.prototype.set=v9;var p0=typeof F=="object"&&F&&!F.nodeType&&F,g0=p0&&typeof module=="object"&&module&&!module.nodeType&&module,b9=g0&&g0.exports===p0,m0=b9?tn.Buffer:void 0,y0=m0?m0.allocUnsafe:void 0;function v0(t,e){if(e)return t.slice();var n=t.length,r=y0?y0(n):new t.constructor(n);return t.copy(r),r}function x9(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function w9(){return[]}var _9=Object.prototype,$9=_9.propertyIsEnumerable,b0=Object.getOwnPropertySymbols,P9=b0?function(t){return t==null?[]:(t=Object(t),x9(b0(t),function(e){return $9.call(t,e)}))}:w9;function O9(t,e,n){var r=e(t);return Cn(t)?r:i9(r,n(t))}function C9(t){return O9(t,J7,P9)}var Fl=Yn(tn,"DataView"),Bl=Yn(tn,"Promise"),Wl=Yn(tn,"Set"),x0="[object Map]",M9="[object Object]",w0="[object Promise]",_0="[object Set]",$0="[object WeakMap]",P0="[object DataView]",S9=Vn(Fl),E9=Vn(Qr),I9=Vn(Bl),T9=Vn(Wl),A9=Vn(zl),yn=Wn;(Fl&&yn(new Fl(new ArrayBuffer(1)))!=P0||Qr&&yn(new Qr)!=x0||Bl&&yn(Bl.resolve())!=w0||Wl&&yn(new Wl)!=_0||zl&&yn(new zl)!=$0)&&(yn=function(t){var e=Wn(t),n=e==M9?t.constructor:void 0,r=n?Vn(n):"";if(r)switch(r){case S9:return P0;case E9:return x0;case I9:return w0;case T9:return _0;case A9:return $0}return e});var k9=Object.prototype,z9=k9.hasOwnProperty;function L9(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&z9.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var O0=tn.Uint8Array;function Vl(t){var e=new t.constructor(t.byteLength);return new O0(e).set(new O0(t)),e}function R9(t,e){var n=Vl(t.buffer);return new t.constructor(n,t.byteOffset,t.byteLength)}var H9=/\w*$/;function D9(t){var e=new t.constructor(t.source,H9.exec(t));return e.lastIndex=t.lastIndex,e}var C0=Mn?Mn.prototype:void 0,M0=C0?C0.valueOf:void 0;function N9(t){return M0?Object(M0.call(t)):{}}function S0(t,e){var n=e?Vl(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var j9="[object Boolean]",F9="[object Date]",B9="[object Map]",W9="[object Number]",V9="[object RegExp]",Y9="[object Set]",X9="[object String]",G9="[object Symbol]",q9="[object ArrayBuffer]",U9="[object DataView]",Z9="[object Float32Array]",K9="[object Float64Array]",Q9="[object Int8Array]",J9="[object Int16Array]",t8="[object Int32Array]",e8="[object Uint8Array]",n8="[object Uint8ClampedArray]",r8="[object Uint16Array]",i8="[object Uint32Array]";function o8(t,e,n){var r=t.constructor;switch(e){case q9:return Vl(t);case j9:case F9:return new r(+t);case U9:return R9(t);case Z9:case K9:case Q9:case J9:case t8:case e8:case n8:case r8:case i8:return S0(t,n);case B9:return new r;case W9:case X9:return new r(t);case V9:return D9(t);case Y9:return new r;case G9:return N9(t)}}function E0(t){return typeof t.constructor=="function"&&!Rl(t)?X6(u0(t)):{}}var s8="[object Map]";function a8(t){return Sn(t)&&yn(t)==s8}var I0=Er&&Er.isMap,l8=I0?Nl(I0):a8,c8="[object Set]";function h8(t){return Sn(t)&&yn(t)==c8}var T0=Er&&Er.isSet,d8=T0?Nl(T0):h8,u8=1,A0="[object Arguments]",f8="[object Array]",p8="[object Boolean]",g8="[object Date]",m8="[object Error]",k0="[object Function]",y8="[object GeneratorFunction]",v8="[object Map]",b8="[object Number]",z0="[object Object]",x8="[object RegExp]",w8="[object Set]",_8="[object String]",$8="[object Symbol]",P8="[object WeakMap]",O8="[object ArrayBuffer]",C8="[object DataView]",M8="[object Float32Array]",S8="[object Float64Array]",E8="[object Int8Array]",I8="[object Int16Array]",T8="[object Int32Array]",A8="[object Uint8Array]",k8="[object Uint8ClampedArray]",z8="[object Uint16Array]",L8="[object Uint32Array]",qt={};qt[A0]=qt[f8]=qt[O8]=qt[C8]=qt[p8]=qt[g8]=qt[M8]=qt[S8]=qt[E8]=qt[I8]=qt[T8]=qt[v8]=qt[b8]=qt[z0]=qt[x8]=qt[w8]=qt[_8]=qt[$8]=qt[A8]=qt[k8]=qt[z8]=qt[L8]=!0,qt[m8]=qt[k0]=qt[P8]=!1;function Do(t,e,n,r,i,o){var s,a=e&u8;if(s!==void 0)return s;if(!en(t))return t;var l=Cn(t);if(l)s=L9(t);else{var c=yn(t),h=c==k0||c==y8;if(Dl(t))return v0(t,a);if(c==z0||c==A0||h&&!i)s=h?{}:E0(t);else{if(!qt[c])return i?t:{};s=o8(t,c,a)}}o||(o=new Zn);var u=o.get(t);if(u)return u;o.set(t,s),d8(t)?t.forEach(function(g){s.add(Do(g,e,n,g,t,o))}):l8(t)&&t.forEach(function(g,y){s.set(y,Do(g,e,n,y,t,o))});var f=C9,p=l?void 0:f(t);return n7(p||t,function(g,y){p&&(y=g,g=t[y]),Qf(s,y,Do(g,e,n,y,t,o))}),s}var R8=1,H8=4;function L0(t){return Do(t,R8|H8)}function D8(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 N8=D8();function Yl(t,e,n){(n!==void 0&&!fo(t[e],n)||n===void 0&&!(e in t))&&Ll(t,e,n)}function j8(t){return Sn(t)&&Ho(t)}function Xl(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function F8(t){return a7(t,d0(t))}function B8(t,e,n,r,i,o,s){var a=Xl(t,n),l=Xl(e,n),c=s.get(l);if(c){Yl(t,n,c);return}var h=o?o(a,l,n+"",t,e,s):void 0,u=h===void 0;if(u){var f=Cn(l),p=!f&&Dl(l),g=!f&&!p&&l0(l);h=l,f||p||g?Cn(a)?h=a:j8(a)?h=q6(a):p?(u=!1,h=v0(l,!0)):g?(u=!1,h=S0(l,!0)):h=[]:h9(l)||Hl(l)?(h=a,Hl(a)?h=F8(a):(!en(a)||Qa(a))&&(h=E0(l))):u=!1}u&&(s.set(l,h),i(h,l,r,o,s),s.delete(l)),Yl(t,n,h)}function R0(t,e,n,r,i){t!==e&&N8(e,function(o,s){if(i||(i=new Zn),en(o))B8(t,e,s,n,R0,r,i);else{var a=r?r(Xl(t,s),o,s+"",t,e,i):void 0;a===void 0&&(a=o),Yl(t,s,a)}},d0)}var W8=Su(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),H0=u7(function(t,e,n){R0(t,e,n)});function Gl(t,e,n={}){if(!e)return null;const r=t,i=ri(r,n);Yt(r,i);const o=X8(e,r);for(const s in r.dataset)o.setAttribute(`data-${W8(s)}`,r.dataset[s]);return o}function V8(t,e,n){var r,i;const o=e.nodeName==="text"?e:null;if(!o)return null;const{data:s,themeConfig:a}=n,l=Xu(e.dataset.indexes||"0"),c=String(nu(wr(s,l),t,"")),h=Object.assign({},(r=a.base)==null?void 0:r.text,(i=a.item)==null?void 0:i[t]),u=ri(o,h);return Gl(e,e.textContent||c,u)}function Y8(t,e){var n;const r=((n=e.themeConfig.base)==null?void 0:n.text)||{};Yt(t,r),r["font-family"]&&t.setAttribute("font-family",$r(r["font-family"])),t.style.userSelect="none",t.style.pointerEvents="none"}const No=(t,e)=>t?parseFloat(t):e;function X8(t,e){const n=No(e.dataset.x,0),r=No(e.dataset.y,0),i=No(e.getAttribute("width")),o=No(e.getAttribute("height")),s=G8(e);return Object.assign(s,{x:n,y:r,width:i,height:o,"data-horizontal-align":e.dataset.horizontalAlign||"LEFT","data-vertical-align":e.dataset.verticalAlign||"TOP"}),Y_(t,s)}function G8(t){return ke(t,["font-family","font-size","font-weight","font-style","font-variant","letter-spacing","line-height","fill","stroke","stroke-width"])}const Kn=(t,e)=>{t!==e&&(e?t.replaceWith(e):t.remove())};class q8{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;U8(e,this.options),e.style.visibility="hidden";const n=new MutationObserver(r=>{r.forEach(i=>{i.addedNodes.forEach(o=>{(o===e||o.contains(e))&&(Q8(this.template,this.options),a5(this.template),n.disconnect(),e.style.visibility="")})})});return n.observe(document,{childList:!0,subtree:!0}),this.rendered=!0,e}}function U8(t,e){Z8(t,e),K8(t,e);const{themeConfig:n}=e;l5(t,n==null?void 0:n.colorBg)}function Z8(t,e){var n;const{themeConfig:r,data:i}=e;c5(t,(n=r.base)==null?void 0:n.global),t.querySelectorAll("[data-element-type]").forEach(s=>{var a,l,c,h,u,f;const p=s.id||"";if(Z_(s)){const g=Gl(s,i.title||"",Object.assign({},(a=r.base)==null?void 0:a.text,r.title));return Kn(s,g)}if(K_(s)){const g=Gl(s,i.desc||"",Object.assign({},(l=r.base)==null?void 0:l.text,r.desc));return Kn(s,g)}if(t4(s)){const g=ff(t,s,(c=i.illus)==null?void 0:c[p]);return Kn(s,g)}if(J_(s))return Array.from(s.children).forEach(g=>{Gf(t,g,e)});if(Q_(s)){const g=Gf(t,s,e);return Kn(s,g)}if(l4(s))return h5(t,s);if((h=s.dataset.elementType)!=null&&h.startsWith("item-")){const g=Xu(s.dataset.indexes||"0"),y=s.dataset.elementType.replace("item-","");if(r4(s)||i4(s)||o4(s)){const m=V8(y,s,e);return Kn(s,m)}if(s4(s)){const m=ff(t,s,(u=wr(i,g))==null?void 0:u.illus);return Kn(s,m)}if(al(s)){const m=v5(t,s,(f=wr(i,g))==null?void 0:f.icon,e);return Kn(s,m)}}if(e4(s))return Y8(s,e);if(!n4(s))return L6(s,e)}),H6(t,e)}function K8(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),Yt(t,o)}function Q8(t,e){const{padding:n=0,viewBox:r}=e;r?t.setAttribute("viewBox",r):n!==void 0&&D0(t,Qn(n))}q4(J4);function J8(t="",e){if(e.width&&e.height)return{width:e.width,height:e.height};let n=0,r=0;const{fontFamily:i=pl,fontSize:o=14,fontWeight:s="normal",lineHeight:a=1.4}=e,l=Q4(t.toString(),{fontFamily:i,fontSize:+o,fontWeight:s,lineHeight:a});return n||(n=Math.ceil(l.width*1.01)),r||(r=Math.ceil(l.height*1.01)),{width:n,height:r}}const t$=!!(typeof process!="undefined"&&process.versions&&process.versions.node);function ql(t){const e=t.getAttribute("viewBox");if(e){const[s,a,l,c]=e.split(" ").map(Number);return{x:s,y:a,width:l,height:c}}const n=t.getAttribute("width"),r=t.getAttribute("height"),i=Number(n)||0,o=Number(r)||0;return{x:0,y:0,width:i,height:o}}function Qn(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]}function D0(t,e){if(t$)e$(t,e);else if(document.contains(t))N0(t,e);else{const n=new MutationObserver(r=>{r.forEach(i=>{i.addedNodes.forEach(o=>{(o===t||o.contains(t))&&(n$(t,()=>{N0(t,e)}),n.disconnect())})})});n.observe(document,{childList:!0,subtree:!0})}}function e$(t,e){const n=ql(t),[r,i,o,s]=e;Yt(t,{viewBox:`${n.x-s} ${n.y-r} ${n.width+s+i} ${n.height+r+o}`})}function N0(t,e){const n=t.getBBox(),r=t.getBoundingClientRect(),i=r.width>0?n.width/r.width:1,o=r.height>0?n.height/r.height:1,[s,a,l,c]=e,h=s*o,u=a*i,f=l*o,p=c*i,g=n.x-p,y=n.y-h,m=n.width+p+u,b=n.height+h+f;Yt(t,{viewBox:`${g} ${y} ${m} ${b}`})}function n$(t,e){requestAnimationFrame(()=>{const n=()=>{const r=t.getBoundingClientRect();r.width>0&&r.height>0?e():requestAnimationFrame(n)};n()})}function nn(t,e){if(document.getElementById(t))return;const n=document.createElement("style");n.id=t,n.textContent=e,document.head.appendChild(n)}function r$(){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)})}var i$=Object.defineProperty,o$=Object.defineProperties,s$=Object.getOwnPropertyDescriptors,jo=Object.getOwnPropertySymbols,j0=Object.prototype.hasOwnProperty,F0=Object.prototype.propertyIsEnumerable,B0=(t,e,n)=>e in t?i$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$e=(t,e)=>{for(var n in e||(e={}))j0.call(e,n)&&B0(t,n,e[n]);if(jo)for(var n of jo(e))F0.call(e,n)&&B0(t,n,e[n]);return t},Ul=(t,e)=>o$(t,s$(e)),a$=(t,e)=>{var n={};for(var r in t)j0.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&jo)for(var r of jo(t))e.indexOf(r)<0&&F0.call(t,r)&&(n[r]=t[r]);return n};function Et(t){const e=t,{id:n,x:r=0,y:i=0,width:o,height:s,alignHorizontal:a="left",alignVertical:l="top",children:c,fontSize:h=14,fontFamily:u,fontStyle:f,fontWeight:p,textDecoration:g,letterSpacing:y,wordSpacing:m,opacity:b,fill:v="black",lineHeight:x,wordWrap:w,backgroundColor:_="none",backgroundOpacity:$=1,backgroundRadius:P=0}=e,O=a$(e,["id","x","y","width","height","alignHorizontal","alignVertical","children","fontSize","fontFamily","fontStyle","fontWeight","textDecoration","letterSpacing","wordSpacing","opacity","fill","lineHeight","wordWrap","backgroundColor","backgroundOpacity","backgroundRadius"]);let T=o,I=s,S=0,H=0;if(!T||!I){const j=J8(c,t);T||(T=j.width),I||(I=j.height)}o&&(S=a==="center"?T/2:a==="right"?T:0),s&&(H=l==="middle"?I/2:l==="bottom"?I:0);const C=Object.entries($e($e({width:T,height:I},x!==void 0&&{"line-height":x}),w!==void 0&&{"data-word-wrap":w})).reduce((j,[X,L])=>Ul($e({},j),{[X]:L}),{}),k=$e($e($e($e($e($e($e($e($e({"data-element-type":"text",width:T,height:I,x:S,y:H,"data-x":0,"data-y":0,fill:v,fontSize:h,textAnchor:a==="center"?"middle":a==="right"?"end":"start",dominantBaseline:l==="middle"?"central":l==="bottom"?"baseline":"hanging","data-horizontal-align":a.toUpperCase(),"data-vertical-align":l.toUpperCase(),children:c},C),O),u&&{fontFamily:u}),f&&{fontStyle:f}),p&&{fontWeight:p}),g&&g!=="none"&&{textDecoration:g}),y&&{letterSpacing:y}),m&&{wordSpacing:m}),b!==void 0&&b!==1&&{opacity:b}),D=$e(Ul($e({},r!==0||i!==0?{x:r,y:i,transform:`translate(${r}, ${i})`}:{}),{width:T,height:I}),n&&{id:n}),N=_&&_!=="none"?{"data-element-type":"shape",x:0,y:0,width:T,height:I,fill:_,fillOpacity:$,rx:P,ry:P}:void 0;return{type:"g",props:Ul($e({},D),{children:[...N?[{type:"rect",props:N}]:[],{type:"text",props:k}]})}}const ci=Symbol.for("@antv/infographic/Fragment");function Fo(t,e={}){return{type:t,props:e}}function l$(t={}){return Fo(ci,t)}const c$=Fo,h$=Fo;function d$(t){return!t||typeof t!="object"||Array.isArray(t)?!1:t.type===ci}function W0(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&"type"in t}function hi(t){return di(t).filter(W0)}function di(t,e=[]){var n;if(!t||typeof t=="boolean")return e;if(Array.isArray(t))t.forEach(r=>di(r,e));else if(d$(t)){const r=(n=t.props)==null?void 0:n.children;(Array.isArray(r)?r:[r]).filter(Boolean).forEach(i=>{di(i,e)})}else e.push(t);return e}function jt(t){return typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t)}const Bo=()=>({x:0,y:0,width:0,height:0});function Ir(t){if(!t||t.length===0)return Bo();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,h=s+l,u=a+c;s<e&&(e=s),a<n&&(n=a),h>r&&(r=h),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 Q(t){var e,n,r,i;if(!t)return Bo();if(Array.isArray(t)){const p=hi(t);return Jn(p)}if(typeof t!="object")return Bo();const{type:o,props:s={}}=t;if(ec(t)){const p=Z0(t);return Q(p)}if(typeof o=="function"){const p=(e=s.x)!=null?e:0,g=(n=s.y)!=null?n:0,y=s.width,m=s.height;if(jt(y)&&jt(m))return{x:p,y:g,width:y,height:m};const b=o(s);if(!b)return{x:p,y:g,width:y!=null?y:0,height:m!=null?m:0};if(Array.isArray(b)){const v=hi(b),x=Jn(v);if(jt(y)&&jt(m))return{x:p,y:g,width:y,height:m};const w=x.width!==0?x.width:y!=null?y:0,_=x.height!==0?x.height:m!=null?m:0;return{x:p+x.x,y:g+x.y,width:w,height:_}}if(W0(b)){const v=b,x=Q(v);if(u$(v,s))return x;const w=v.props&&jt(v.props.width)&&jt(v.props.height),P=V0(v).flatMap(S=>hi(S)).length>0,O=v.props&&v.props.x===s.x&&v.props.y===s.y;if(w)return{x:O?x.x:p+x.x,y:O?x.y:g+x.y,width:x.width,height:x.height};if(jt(y)&&jt(m))return P?{x:O?x.x:p,y:O?x.y:g,width:y,height:m}:{x:O?x.x:p+x.x,y:O?x.y:g+x.y,width:y,height:m};const T=x.width!==0?x.width:y!=null?y:0,I=x.height!==0?x.height:m!=null?m:0;return{x:O?x.x:p+x.x,y:O?x.y:g+x.y,width:T,height:I}}return{x:p,y:g,width:y!=null?y:0,height:m!=null?m:0}}const a=(r=s.x)!=null?r:0,l=(i=s.y)!=null?i:0,c=jt(s.width)?s.width:void 0,h=jt(s.height)?s.height:void 0;if(jt(c)&&jt(h))return{x:a,y:l,width:c,height:h};const f=V0(t).flatMap(p=>hi(p));if(f.length>0){const p=Jn(f);return{x:a+p.x,y:l+p.y,width:jt(c)?c:p.width,height:jt(h)?h:p.height}}return{x:a,y:l,width:c!=null?c:0,height:h!=null?h:0}}function Jn(t){if(!t||!Array.isArray(t)||t.length===0)return Bo();const e=[];for(const n of t){const r=hi(n);for(const i of r){const o=Q(i);o&&e.push(o)}}return Ir(e)}function u$(t,e){if(!(t!=null&&t.props)||!e)return!1;const n=t.props;if(jt(n.x)&&jt(n.y)&&jt(e.x)&&jt(e.y)&&n.x===e.x&&n.y===e.y){const r=jt(n.width)&&jt(n.height),i=jt(e.width)&&jt(e.height);if(!r&&!i)return!0}return jt(n.x)&&jt(n.y)&&jt(n.width)&&jt(n.height)&&jt(e.x)&&jt(e.y)&&jt(e.width)&&jt(e.height)?n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height:!1}function V0(t){var e;const n=(e=t.props)==null?void 0:e.children;return n?Array.isArray(n)?n:[n]:[]}function Zl(t){var e;return t==null||typeof t=="boolean"?[]:Array.isArray(t)?di(t):typeof t=="object"?di((e=t.props)==null?void 0:e.children):[t]}var f$=Object.defineProperty,Wo=Object.getOwnPropertySymbols,Y0=Object.prototype.hasOwnProperty,X0=Object.prototype.propertyIsEnumerable,G0=(t,e,n)=>e in t?f$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Kl=(t,e)=>{for(var n in e||(e={}))Y0.call(e,n)&&G0(t,n,e[n]);if(Wo)for(var n of Wo(e))X0.call(e,n)&&G0(t,n,e[n]);return t},p$=(t,e)=>{var n={};for(var r in t)Y0.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Wo)for(var r of Wo(t))e.indexOf(r)<0&&X0.call(t,r)&&(n[r]=t[r]);return n};const An=(t,e)=>{const n=t,{type:r,props:i}=n,o=p$(n,["type","props"]);return Kl({type:r,props:Kl(Kl({},i),e)},o)},q0=()=>({defs:new Map});function Ql(t){const e={"&":"&","<":"<",">":">",'"':""","'":"'"};return String(t).replace(/[&<>"']/g,n=>e[n])}const U0={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 g$(t){return U0[t]?U0[t]:t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}const Jl=new Map;function tc(t){const e=Symbol("layout");return Jl.set(e,t),r=>({type:e,props:r})}function ec(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)&&typeof t.type=="symbol"&&Jl.has(t.type)}function Z0(t,e=q0()){const n=Jl.get(t.type);if(!n)return console.warn("Layout function not found for symbol:",t.type),t;const r=Zl(t).filter(i=>typeof i=="object");return n(r,t.props,e)}var m$=Object.defineProperty,y$=Object.defineProperties,v$=Object.getOwnPropertyDescriptors,Vo=Object.getOwnPropertySymbols,K0=Object.prototype.hasOwnProperty,Q0=Object.prototype.propertyIsEnumerable,J0=(t,e,n)=>e in t?m$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,b$=(t,e)=>{for(var n in e||(e={}))K0.call(e,n)&&J0(t,n,e[n]);if(Vo)for(var n of Vo(e))Q0.call(e,n)&&J0(t,n,e[n]);return t},x$=(t,e)=>y$(t,v$(e)),tp=(t,e)=>{var n={};for(var r in t)K0.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Vo)for(var r of Vo(t))e.indexOf(r)<0&&Q0.call(t,r)&&(n[r]=t[r]);return n};function ui(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=>ui(r,e)).filter(Boolean);if(ec(t)){const r=Z0(t,e);return ui(r,e)}if(typeof t.type=="function"){const r=t.type(t.props);return ui(r,e)}const n=Zl(t).map(r=>ui(r,e)).filter(Boolean);return t.type===ci?n:t.type===da?(n.forEach(r=>{typeof r=="object"&&r.props.id&&e.defs.set(r.props.id,r)}),null):n.length?An(t,{children:n}):t}function fi(t,e){if(t==null)return"";if(typeof t=="string")return Ql(t);if(typeof t=="number")return String(t);const{type:n,props:r}=t;if(!n)return"";const i=Zl(t);if(n===ci)return i.map(l=>fi(l)).filter(Boolean).join("");if(n===da)return"";if(typeof n=="function"||ec(t))return console.warn("Unexpected unprocessed component in render:",t),"";const o=np(r),s=i.map(l=>fi(l)).filter(Boolean).join(""),a=String(n);return s?`<${a}${o}>${s}</${a}>`:`<${a}${o} />`}function ep(t,e={}){const n=q0(),r=ui(t,n);if(!r)return"";const i=Array.isArray(r)?r.map(m=>fi(m)).join(""):fi(r),o=e,{x:s,y:a,width:l,height:c,style:h}=o,u=tp(o,["x","y","width","height","style"]),f=x$(b$({},u),{xmlns:"http://www.w3.org/2000/svg"});if(!f.viewBox)if(l&&c)f.viewBox=`${s!=null?s:0} ${a!=null?a:0} ${l!=null?l:0} ${c!=null?c:0}`;else{const m=Q(r);if(m){const{x:b,y:v,width:x,height:w}=m;f.viewBox=`${b} ${v} ${x} ${w}`}}const p=np(f),g=w$(h),y=n.defs.size?`<defs>${Array.from(n.defs.values()).map(m=>fi(m)).join("")}</defs>`:"";return`<svg${p}${g}>${y}${i}</svg>`}function np(t){if(!t)return"";const e=t,{children:n}=e,r=tp(e,["children"]);return Object.entries(r).filter(([,i])=>i!=null).map(([i,o])=>{const s=g$(i),a=typeof o=="string"?Ql(String(o)):String(o);return` ${s}="${a}"`}).join("")}function w$(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="${Ql(e)}"`}var _$=Object.defineProperty,Yo=Object.getOwnPropertySymbols,rp=Object.prototype.hasOwnProperty,ip=Object.prototype.propertyIsEnumerable,op=(t,e,n)=>e in t?_$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xo=(t,e)=>{for(var n in e||(e={}))rp.call(e,n)&&op(t,n,e[n]);if(Yo)for(var n of Yo(e))ip.call(e,n)&&op(t,n,e[n]);return t},sp=(t,e)=>{var n={};for(var r in t)rp.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Yo)for(var r of Yo(t))e.indexOf(r)<0&&ip.call(t,r)&&(n[r]=t[r]);return n};const q=t=>{const e=t,{indexes:n}=e,r=sp(e,["indexes"]),i={fill:"#B9EBCA",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":kt.BtnAdd};return d(St,Xo(Xo({},i),r))},Ft=t=>{const e=t,{indexes:n}=e,r=sp(e,["indexes"]),i={fill:"#F9C0C0",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":kt.BtnRemove};return d(St,Xo(Xo({},i),r))};var $$=Object.defineProperty,P$=Object.defineProperties,O$=Object.getOwnPropertyDescriptors,ap=Object.getOwnPropertySymbols,C$=Object.prototype.hasOwnProperty,M$=Object.prototype.propertyIsEnumerable,lp=(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={}))C$.call(e,n)&&lp(t,n,e[n]);if(ap)for(var n of ap(e))M$.call(e,n)&&lp(t,n,e[n]);return t},E$=(t,e)=>P$(t,O$(e));const Ot=t=>d(Y,E$(S$({"data-element-type":kt.BtnsGroup,width:0,height:0},t),{display:"none"})),Kt=()=>d(Rt,{});var I$=Object.defineProperty,Go=Object.getOwnPropertySymbols,cp=Object.prototype.hasOwnProperty,hp=Object.prototype.propertyIsEnumerable,dp=(t,e,n)=>e in t?I$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nc=(t,e)=>{for(var n in e||(e={}))cp.call(e,n)&&dp(t,n,e[n]);if(Go)for(var n of Go(e))hp.call(e,n)&&dp(t,n,e[n]);return t},T$=(t,e)=>{var n={};for(var r in t)cp.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Go)for(var r of Go(t))e.indexOf(r)<0&&hp.call(t,r)&&(n[r]=t[r]);return n};const up=t=>{var e=t,{indexes:n}=e,r=T$(e,["indexes"]);const o=nc(nc({},{fill:"lightgray"}),r);return n?(o["data-indexes"]=n,o["data-element-type"]=kt.ItemIllus):o["data-element-type"]=kt.Illus,d(St,nc({},o))};var A$=Object.defineProperty,k$=Object.defineProperties,z$=Object.getOwnPropertyDescriptors,qo=Object.getOwnPropertySymbols,fp=Object.prototype.hasOwnProperty,pp=Object.prototype.propertyIsEnumerable,gp=(t,e,n)=>e in t?A$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mp=(t,e)=>{for(var n in e||(e={}))fp.call(e,n)&&gp(t,n,e[n]);if(qo)for(var n of qo(e))pp.call(e,n)&&gp(t,n,e[n]);return t},L$=(t,e)=>k$(t,z$(e)),R$=(t,e)=>{var n={};for(var r in t)fp.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&qo)for(var r of qo(t))e.indexOf(r)<0&&pp.call(t,r)&&(n[r]=t[r]);return n};const Xt=t=>{var e=t,{indexes:n,lineNumber:r=2,children:i}=e,o=R$(e,["indexes","lineNumber","children"]),s;if(!i)return null;const a=mp({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)),d(Et,L$(mp({},a),{"data-indexes":n,"data-element-type":kt.ItemDesc}))};var H$=Object.defineProperty,D$=Object.defineProperties,N$=Object.getOwnPropertyDescriptors,Uo=Object.getOwnPropertySymbols,yp=Object.prototype.hasOwnProperty,vp=Object.prototype.propertyIsEnumerable,bp=(t,e,n)=>e in t?H$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,pi=(t,e)=>{for(var n in e||(e={}))yp.call(e,n)&&bp(t,n,e[n]);if(Uo)for(var n of Uo(e))vp.call(e,n)&&bp(t,n,e[n]);return t},Zo=(t,e)=>D$(t,N$(e)),xp=(t,e)=>{var n={};for(var r in t)yp.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Uo)for(var r of Uo(t))e.indexOf(r)<0&&vp.call(t,r)&&(n[r]=t[r]);return n};const ve=t=>{const e=t,{indexes:n,size:r=32}=e,i=xp(e,["indexes","size"]),o=pi({fill:"lightgray",width:r,height:r},i);return d(St,Zo(pi({},o),{"data-indexes":n,"data-element-type":"item-icon"}))},tr=t=>{const e=t,{indexes:n,size:r=50,fill:i,colorBg:o="white"}=e,s=xp(e,["indexes","size","fill","colorBg"]),a=r/Math.SQRT2*.9,l=(r-a)/2,c=Zo(pi({fill:o},s),{x:l,y:l,width:a,height:a});return E(Y,Zo(pi({},s),{width:r,height:r,"data-element-type":kt.ItemIconGroup,children:[d(Lt,{width:r,height:r,fill:i,"data-element-type":"shape"}),d(St,Zo(pi({},c),{"data-indexes":n,"data-element-type":kt.ItemIcon}))]}))};var j$=Object.defineProperty,F$=Object.defineProperties,B$=Object.getOwnPropertyDescriptors,Ko=Object.getOwnPropertySymbols,wp=Object.prototype.hasOwnProperty,_p=Object.prototype.propertyIsEnumerable,$p=(t,e,n)=>e in t?j$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Pp=(t,e)=>{for(var n in e||(e={}))wp.call(e,n)&&$p(t,n,e[n]);if(Ko)for(var n of Ko(e))_p.call(e,n)&&$p(t,n,e[n]);return t},W$=(t,e)=>F$(t,B$(e)),V$=(t,e)=>{var n={};for(var r in t)wp.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ko)for(var r of Ko(t))e.indexOf(r)<0&&_p.call(t,r)&&(n[r]=t[r]);return n};const $t=t=>{var e=t,{indexes:n,children:r}=e,i=V$(e,["indexes","children"]),o;const s=Pp({fontSize:18,fontWeight:"bold",fill:"#252525",lineHeight:1.4,children:r},i);return(o=s.height)!=null||(s.height=Math.ceil(+s.lineHeight*+s.fontSize)),d(Et,W$(Pp({},s),{"data-indexes":n,"data-element-type":kt.ItemLabel}))};var Y$=Object.defineProperty,Op=Object.getOwnPropertySymbols,X$=Object.prototype.hasOwnProperty,G$=Object.prototype.propertyIsEnumerable,Cp=(t,e,n)=>e in t?Y$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,q$=(t,e)=>{for(var n in e||(e={}))X$.call(e,n)&&Cp(t,n,e[n]);if(Op)for(var n of Op(e))G$.call(e,n)&&Cp(t,n,e[n]);return t};const It=t=>d(Y,q$({"data-element-type":kt.ItemsGroup},t));var U$=Object.defineProperty,Z$=Object.defineProperties,K$=Object.getOwnPropertyDescriptors,Qo=Object.getOwnPropertySymbols,Mp=Object.prototype.hasOwnProperty,Sp=Object.prototype.propertyIsEnumerable,Ep=(t,e,n)=>e in t?U$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ip=(t,e)=>{for(var n in e||(e={}))Mp.call(e,n)&&Ep(t,n,e[n]);if(Qo)for(var n of Qo(e))Sp.call(e,n)&&Ep(t,n,e[n]);return t},Q$=(t,e)=>Z$(t,K$(e)),J$=(t,e)=>{var n={};for(var r in t)Mp.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Qo)for(var r of Qo(t))e.indexOf(r)<0&&Sp.call(t,r)&&(n[r]=t[r]);return n};const gi=t=>{var e=t,{indexes:n,value:r,formatter:i=l=>String(l)}=e,o=J$(e,["indexes","value","formatter"]),s;const a=Ip({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)),d(Et,Q$(Ip({},a),{"data-indexes":n,"data-element-type":kt.ItemValue}))};var tP=Object.defineProperty,Tp=Object.getOwnPropertySymbols,eP=Object.prototype.hasOwnProperty,nP=Object.prototype.propertyIsEnumerable,Ap=(t,e,n)=>e in t?tP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rP=(t,e)=>{for(var n in e||(e={}))eP.call(e,n)&&Ap(t,n,e[n]);if(Tp)for(var n of Tp(e))nP.call(e,n)&&Ap(t,n,e[n]);return t};const ne=t=>d(Y,rP({"data-element-type":"shapes-group"},t));var iP=Object.defineProperty,oP=Object.defineProperties,sP=Object.getOwnPropertyDescriptors,Jo=Object.getOwnPropertySymbols,kp=Object.prototype.hasOwnProperty,zp=Object.prototype.propertyIsEnumerable,Lp=(t,e,n)=>e in t?iP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ts=(t,e)=>{for(var n in e||(e={}))kp.call(e,n)&&Lp(t,n,e[n]);if(Jo)for(var n of Jo(e))zp.call(e,n)&&Lp(t,n,e[n]);return t},Rp=(t,e)=>oP(t,sP(e)),aP=(t,e)=>{var n={};for(var r in t)kp.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Jo)for(var r of Jo(t))e.indexOf(r)<0&&zp.call(t,r)&&(n[r]=t[r]);return n};const mi=tc((t,e)=>{var n=e,{horizontal:r,vertical:i}=n,o=aP(n,["horizontal","vertical"]),s,a,l,c;if(!t||t.length===0)return d(Y,ts({},o));const h=t.map(v=>Q(v)),u=Jn(t),f=(s=o.x)!=null?s:u.x,p=(a=o.y)!=null?a:u.y,g=(l=o.width)!=null?l:u.width,y=(c=o.height)!=null?c:u.height,m=t.map((v,x)=>{const w=h[x],_=ts({},v.props);if(r!==void 0)switch(r){case"left":_.x=0;break;case"center":_.x=(g-w.width)/2;break;case"right":_.x=g-w.width;break}else _.x===void 0&&(_.x=w.x-f);if(i!==void 0)switch(i){case"top":_.y=0;break;case"middle":_.y=(y-w.height)/2;break;case"bottom":_.y=y-w.height;break}else _.y===void 0&&(_.y=w.y-p);return An(v,_)}),b=Rp(ts({},o),{x:f,y:p,width:g,height:y});return d(Y,Rp(ts({},b),{children:m}))});var lP=Object.defineProperty,cP=Object.defineProperties,hP=Object.getOwnPropertyDescriptors,es=Object.getOwnPropertySymbols,Hp=Object.prototype.hasOwnProperty,Dp=Object.prototype.propertyIsEnumerable,Np=(t,e,n)=>e in t?lP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,er=(t,e)=>{for(var n in e||(e={}))Hp.call(e,n)&&Np(t,n,e[n]);if(es)for(var n of es(e))Dp.call(e,n)&&Np(t,n,e[n]);return t},jp=(t,e)=>cP(t,hP(e)),dP=(t,e)=>{var n={};for(var r in t)Hp.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&es)for(var r of es(t))e.indexOf(r)<0&&Dp.call(t,r)&&(n[r]=t[r]);return n};const lt=tc((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=dP(n,["flexDirection","justifyContent","alignItems","alignContent","flexWrap","gap"]),h,u,f,p,g,y;if(!t||t.length===0)return d(Y,er({},c));const m=r==="row"||r==="row-reverse",b=r==="row-reverse"||r==="column-reverse",v=t.map(C=>Q(C)),x=Jn(t),w=(h=c.width)!=null?h:x.width,_=(u=c.height)!=null?u:x.height,$=c.width!==void 0&&c.height!==void 0,P=[];if(a==="wrap"&&$){let C=[],A=[],B=0;for(let k=0;k<t.length;k++){const D=t[k],z=v[k],N=m?z.width:z.height,j=m?w:_;C.length===0||B+l+N<=j?(C.push(D),A.push(z),B+=(C.length>1?l:0)+N):(P.push({children:C,bounds:A}),C=[D],A=[z],B=N)}C.length>0&&P.push({children:C,bounds:A})}else P.push({children:t,bounds:v});const O=[];let T=0;const I=[];if(P.forEach(C=>{const{children:A,bounds:B}=C,k=B.reduce((L,M,R)=>{const W=m?M.width:M.height;return L+W+(R>0?l:0)},0),D=Math.max(...B.map(L=>m?L.height:L.width));I.push(D);let z=0;const N=(m?w:_)-k;if($)switch(i){case"flex-end":z=N;break;case"center":z=N/2;break;case"space-between":z=0;break;default:z=0;break}let j=l;$&&i==="space-between"&&A.length>1&&(j=N/(A.length-1)+l);let X=z;A.forEach((L,M)=>{const R=B[M],W=m?R.width:R.height,U=m?R.height:R.width;let V=T;if($)switch(o){case"flex-end":V=T+D-U;break;case"center":V=T+(D-U)/2;break;default:V=T;break}let G,Z;m?(G=b?w-X-W:X,Z=V):(G=V,Z=b?_-X-W:X);const K=An(L,{x:G,y:Z});O.push(K),X+=W+j}),T+=D+l}),P.length>1&&$){const C=I.reduce((k,D)=>k+D,0)+(P.length-1)*l,A=(m?_:w)-C;let B=0;switch(s){case"flex-end":B=A;break;case"center":B=A/2;break;case"space-between":if(P.length>1){const k=A/(P.length-1);let D=0;P.forEach((z,N)=>{const j=P.slice(0,N).reduce((L,M)=>L+M.children.length,0),X=j+z.children.length;for(let L=j;L<X;L++){const M=O[L],R=er({},M.props);m?R.y=(R.y||0)+D:R.x=(R.x||0)+D,O[L]=An(M,R)}D+=I[N]+l+(N<P.length-1?k:0)});break}break;default:B=0;break}B!==0&&s!=="space-between"&&O.forEach((k,D)=>{const z=er({},k.props);m?z.y=(z.y||0)+B:z.x=(z.x||0)+B,O[D]=An(k,z)})}if(!$&&o==="center")if(m){const C=Math.max(...v.map(A=>A.height));O.forEach((A,B)=>{const k=v[B],D=(C-k.height)/2,z=er({},A.props);z.y=(z.y||0)+D,O[B]=An(A,z)})}else{const C=Math.max(...v.map(A=>A.width));O.forEach((A,B)=>{const k=v[B],D=(C-k.width)/2,z=er({},A.props);z.x=(z.x||0)+D,O[B]=An(A,z)})}const S=Jn(O),H=jp(er({},c),{x:(f=c.x)!=null?f:x.x,y:(p=c.y)!=null?p:x.y,width:(g=c.width)!=null?g:S.width,height:(y=c.height)!=null?y:S.height});return d(Y,jp(er({},H),{children:O}))});var uP=Object.defineProperty,fP=Object.defineProperties,pP=Object.getOwnPropertyDescriptors,Fp=Object.getOwnPropertySymbols,gP=Object.prototype.hasOwnProperty,mP=Object.prototype.propertyIsEnumerable,Bp=(t,e,n)=>e in t?uP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ns=(t,e)=>{for(var n in e||(e={}))gP.call(e,n)&&Bp(t,n,e[n]);if(Fp)for(var n of Fp(e))mP.call(e,n)&&Bp(t,n,e[n]);return t},Wp=(t,e)=>fP(t,pP(e));const Vp=t=>{const{x:e=0,y:n=0,alignHorizontal:r="center",title:i,desc:o,descLineNumber:s=2,themeColors:a}=t,l=h=>{const u={fontSize:24,fill:a.colorPrimaryText,lineHeight:1.4,alignHorizontal:r};return d(Et,Wp(ns(ns({},u),h),{"data-element-type":"title",children:i}))},c=h=>{const u={fontSize:16,fill:a.colorTextSecondary,alignHorizontal:r,lineHeight:1.4,height:s*24};return d(Et,Wp(ns(ns({},u),h),{"data-element-type":"desc",children:o}))};return!i&&!o?null:E(lt,{flexDirection:"column",justifyContent:"center",alignItems:"center",x:e,y:n,gap:8,children:[i&&d(l,{}),o&&d(c,{})]})},rc=new Map;function ic(t,e){rc.set(t,e)}function Yp(t){return rc.get(t)}function yP(){return Array.from(rc.keys())}ic("dark",{colorBg:"#1F1F1F",base:{text:{fill:"#fff"}}}),ic("hand-drawn",{base:{text:{"font-family":"851tegakizatsu"}},stylize:{type:"rough"}});var vP=Object.defineProperty,bP=Object.defineProperties,xP=Object.getOwnPropertyDescriptors,Xp=Object.getOwnPropertySymbols,wP=Object.prototype.hasOwnProperty,_P=Object.prototype.propertyIsEnumerable,Gp=(t,e,n)=>e in t?vP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yi=(t,e)=>{for(var n in e||(e={}))wP.call(e,n)&&Gp(t,n,e[n]);if(Xp)for(var n of Xp(e))_P.call(e,n)&&Gp(t,n,e[n]);return t},vi=(t,e)=>bP(t,xP(e));Ht(Ld);const qp=({colorPrimary:t,colorBg:e="#ffffff",isDarkMode:n=!1})=>{const r=Je(t),i=Je(e),o=SP({primaryColor:r,bgColor:i});return EP(o,{primaryColor:r,bgColor:i,isDarkMode:n})},$P=(t,e)=>fx(vi(yi({},t),{alpha:e?.2:.1}))||"#ffffff",PP=(t,e)=>{if(e)return"#ffffff";const n=Je("#262626");return Ka(n,t)>=7?Ur(n):"#000000"},OP=t=>{const e=Gd(Je(t)),n=vi(yi({},e),{l:Math.min(1,e.l+.2)});return Ur(n)},CP=(t,e)=>{const n=Je(t),r=Je("#262626"),i=Je("#ffffff"),o=Ka(r,n);return Ka(i,n)>=3?Ur(i):o>=4.5?Ur(r):"#ffffff"},MP=(t,e)=>{const n=Gd(t);if(e){const r=vi(yi({},n),{l:Math.min(1,n.l+.1)});return rs(r,"#1f1f1f")}else{if(n.l>.95)return"#ffffff";{const r=vi(yi({},n),{l:Math.min(1,n.l+.05)});return rs(r,"#ffffff")}}},SP=({primaryColor:t,bgColor:e})=>({colorPrimary:rs(t,"#FF356A"),colorBg:rs(e,"#ffffff"),colorWhite:"#ffffff"}),EP=(t,{primaryColor:e,bgColor:n,isDarkMode:r})=>{const i=PP(n,r),o=$P(e,r);return vi(yi({},t),{isDarkMode:r,colorPrimaryBg:o,colorText:i,colorTextSecondary:OP(i),colorPrimaryText:CP(o,r),colorBgElevated:MP(n,r)})};function rs(t,e="#000000"){var n;return(n=Ur(t))!=null?n:e}const oc="#FF356A";function re(t){var e;return((e=t==null?void 0:t.themeConfig)==null?void 0:e.colorPrimary)||oc}function Up(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||oc):r.items.map((s,a)=>xo(o,[a],r.items.length)||oc)}function Ct(t,e){var n,r,i;return xo((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 be(t,e){var n;const{colorBg:r=((n=e==null?void 0:e.themeConfig)==null?void 0:n.colorBg)||"white",colorPrimary:i=e?re(e):"black"}=t;return qp({colorPrimary:i,isDarkMode:qd(r),colorBg:r})}function bi(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 IP=Object.defineProperty,Zp=Object.getOwnPropertySymbols,TP=Object.prototype.hasOwnProperty,AP=Object.prototype.propertyIsEnumerable,Kp=(t,e,n)=>e in t?IP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,kP=(t,e)=>{for(var n in e||(e={}))TP.call(e,n)&&Kp(t,n,e[n]);if(Zp)for(var n of Zp(e))AP.call(e,n)&&Kp(t,n,e[n]);return t};function Wt(t,e=[]){const n=kP({},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 is(t,e){var n;return t.length===0?()=>null:e===void 0?t[0]:(n=t[e])!=null?n:t[0]}const sc=new Map;function Vt(t,e){sc.set(t,e)}function Qp(t){return sc.get(t)}function zP(){return Array.from(sc.keys())}var LP=Object.defineProperty,RP=Object.defineProperties,HP=Object.getOwnPropertyDescriptors,Jp=Object.getOwnPropertySymbols,DP=Object.prototype.hasOwnProperty,NP=Object.prototype.propertyIsEnumerable,tg=(t,e,n)=>e in t?LP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,jP=(t,e)=>{for(var n in e||(e={}))DP.call(e,n)&&tg(t,n,e[n]);if(Jp)for(var n of Jp(e))NP.call(e,n)&&tg(t,n,e[n]);return t},FP=(t,e)=>RP(t,HP(e));const eg=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:h},u]=Wt(t,["width","height","iconSize","badgeSize","gap"]),f=e.value,p=f!==void 0,g=!!e.desc,y=!!e.icon,m=`${c.colorPrimary}-badge`,b=l==="flipped"?r-a-s:a,v=y?l==="flipped"?a:s+2*a:a,x=r-a*2,w=y?r-s-3*a:x,_=a+14+18+8,$=_-a,P=g?a:(i-s)/2,O=!p&&!g?(i-14)/2:a;return E(Y,FP(jP({},u),{width:r,height:i,children:[d(zt,{children:E("radialGradient",{id:m,cx:"50%",cy:"50%",r:"50%",children:[d("stop",{offset:"0%",stopColor:c.colorPrimary}),d("stop",{offset:"100%",stopColor:ot(c.colorPrimary).darken(20).toHexString()})]})}),d(St,{"data-element-type":"shape",x:0,y:0,width:r,height:i,fill:c.colorPrimaryBg,rx:8,ry:8}),y&&E(Rt,{children:[d(Lt,{x:b,y:P,width:s,height:s,fill:`url(#${m})`}),d(ve,{indexes:n,x:b+(s-o)/2,y:P+(s-o)/2,size:o,fill:c.colorWhite})]}),E(lt,{flexDirection:"column",x:v,y:O,width:w,height:!p&&!g?void 0:$,alignItems:"center",justifyContent:"center",children:[d($t,{indexes:n,width:w,alignHorizontal:l==="flipped"?"right":"left",alignVertical:"middle",fontSize:14,fill:c.colorText,children:e.label}),p&&d(gi,{indexes:n,width:w,alignHorizontal:l==="flipped"?"right":"left",alignVertical:"middle",fontSize:18,lineHeight:1,fontWeight:"bold",fill:c.colorPrimary,value:f,formatter:h})]}),g&&d(Xt,{indexes:n,x:a,y:_,width:x,alignHorizontal:l==="flipped"?"right":"left",fontSize:11,fill:c.colorTextSecondary,lineNumber:2,lineHeight:1.2,wordWrap:!0,children:e.desc})]}))};Vt("badge-card",{component:eg,composites:["icon","label","value","desc"]});var BP=Object.defineProperty,WP=Object.defineProperties,VP=Object.getOwnPropertyDescriptors,ng=Object.getOwnPropertySymbols,YP=Object.prototype.hasOwnProperty,XP=Object.prototype.propertyIsEnumerable,rg=(t,e,n)=>e in t?BP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,GP=(t,e)=>{for(var n in e||(e={}))YP.call(e,n)&&rg(t,n,e[n]);if(ng)for(var n of ng(e))XP.call(e,n)&&rg(t,n,e[n]);return t},qP=(t,e)=>WP(t,VP(e));const ig=t=>{const[{indexes:e,datum:n,width:r=280,height:i=140,themeColors:o},s]=Wt(t,["width","height"]);return E(Y,qP(GP({},s),{children:[d("rect",{x:0,y:0,width:r,height:i,rx:22,ry:22,fill:o.colorPrimaryBg,stroke:o.colorPrimary,"data-element-type":"shape"}),d(ht,{x:r-85,y:.5,width:85,height:65,d:"M0 0H62.4495C74.9557 0 85.4549 10.8574 84.4557 23.1875V60.1875L77.8772 62.5839C64.3776 67.6876 48.51 64.6893 37.8662 53.7441L10.2361 25.3312C4.91402 19.8571 1.65356 13.1736 0.435652 6.21819L0 0Z",fill:o.colorBg,"data-element-type":"shape"}),d($t,{indexes:e,x:20,y:24,width:200,alignHorizontal:"left",alignVertical:"middle",fill:o.colorText,children:n.label}),d(Xt,{indexes:e,x:20,y:58,width:220,height:70,fill:o.colorTextSecondary,alignHorizontal:"left",alignVertical:"top",children:n.desc}),d(ve,{indexes:e,x:r-48,y:12,width:32,height:32,fill:o.colorPrimary})]}))};Vt("candy-card-lite",{component:ig,composites:["icon","label","desc"]});var UP=Object.defineProperty,ZP=Object.defineProperties,KP=Object.getOwnPropertyDescriptors,os=Object.getOwnPropertySymbols,og=Object.prototype.hasOwnProperty,sg=Object.prototype.propertyIsEnumerable,ag=(t,e,n)=>e in t?UP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,QP=(t,e)=>{for(var n in e||(e={}))og.call(e,n)&&ag(t,n,e[n]);if(os)for(var n of os(e))sg.call(e,n)&&ag(t,n,e[n]);return t},JP=(t,e)=>ZP(t,KP(e)),tO=(t,e)=>{var n={};for(var r in t)og.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&os)for(var r of os(t))e.indexOf(r)<0&&sg.call(t,r)&&(n[r]=t[r]);return n};const ac=t=>{const e=t,{color:n="black",opacity:r=.8}=e,i=tO(e,["color","opacity"]);return d("filter",JP(QP({id:"drop-shadow",x:"-25%",y:"-25%",width:"200%",height:"200%"},i),{children:d("feDropShadow",{dx:"4",dy:"4",stdDeviation:"4","flood-color":n,"flood-opacity":r})}))};var eO=Object.defineProperty,nO=Object.defineProperties,rO=Object.getOwnPropertyDescriptors,lg=Object.getOwnPropertySymbols,iO=Object.prototype.hasOwnProperty,oO=Object.prototype.propertyIsEnumerable,cg=(t,e,n)=>e in t?eO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,sO=(t,e)=>{for(var n in e||(e={}))iO.call(e,n)&&cg(t,n,e[n]);if(lg)for(var n of lg(e))oO.call(e,n)&&cg(t,n,e[n]);return t},aO=(t,e)=>nO(t,rO(e));const lc=t=>{const{id:e="linear-gradient",startColor:n="black",stopColor:r="white",direction:i="left-right"}=t;return E("linearGradient",aO(sO({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:[d("stop",{offset:"0%",stopColor:n}),d("stop",{offset:"100%",stopColor:r})]}))};var lO=Object.defineProperty,cO=Object.defineProperties,hO=Object.getOwnPropertyDescriptors,hg=Object.getOwnPropertySymbols,dO=Object.prototype.hasOwnProperty,uO=Object.prototype.propertyIsEnumerable,dg=(t,e,n)=>e in t?lO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xi=(t,e)=>{for(var n in e||(e={}))dO.call(e,n)&&dg(t,n,e[n]);if(hg)for(var n of hg(e))uO.call(e,n)&&dg(t,n,e[n]);return t},wi=(t,e)=>cO(t,hO(e));const ug=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]=Wt(t,["width","height","gap","iconPadding"]),h=i/2,u=i-a*2,f=s==="flipped",p=!!e.icon,g=p?r-i-o:r-o*2,y=p?f?o:i:o,m=p?f?"right":"left":"center",b={indexes:n,width:g,alignHorizontal:m,alignVertical:"middle",fontSize:16,fontWeight:"600",fill:l.colorWhite},v=Q(d($t,wi(xi({},b),{children:e.label}))),x={indexes:n,width:g,alignHorizontal:m,alignVertical:"top",fontSize:12,lineNumber:1,fill:l.colorWhite},w=Q(e.desc?d(Xt,wi(xi({},x),{children:e.desc})):null),_=4,$=v.height+_+w.height,O=(i-$)/2,T=O+v.height+_,I=f?r-i+a:a,S=a;return E(Y,wi(xi({},c),{children:[d(zt,{children:d(ac,{})}),d(St,{x:0,y:0,width:r,height:i,fill:l.colorPrimary,rx:h,ry:h,"data-element-type":"shape"}),e.icon&&E(Rt,{children:[d(Lt,{x:I,y:S,width:u,height:u,fillOpacity:.5,fill:l.colorBg,filter:"url(#drop-shadow)"}),d(tr,{indexes:n,x:I,y:S,size:u,fill:l.colorBg,colorBg:l.colorPrimary})]}),e.label&&d($t,wi(xi({x:y,y:O},b),{children:e.label})),e.desc&&d(Xt,wi(xi({x:y,y:T},x),{children:e.desc}))]}))};Vt("capsule-item",{component:ug,composites:["icon","label","desc"]});var fO=Object.defineProperty,pO=Object.defineProperties,gO=Object.getOwnPropertyDescriptors,fg=Object.getOwnPropertySymbols,mO=Object.prototype.hasOwnProperty,yO=Object.prototype.propertyIsEnumerable,pg=(t,e,n)=>e in t?fO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,cc=(t,e)=>{for(var n in e||(e={}))mO.call(e,n)&&pg(t,n,e[n]);if(fg)for(var n of fg(e))yO.call(e,n)&&pg(t,n,e[n]);return t},hc=(t,e)=>pO(t,gO(e));const gg=t=>{const[{indexes:e,datum:n,themeColors:r,positionH:i="normal",width:o=240,height:s=o},a]=Wt(t,["width","height"]),l=Math.min(o,s),c=l*.7,h=(l-c)/2,u=c*Math.sqrt(2)/2,f=(l-u)/2,p=ot(r.colorPrimary),g=ss(p,80,.2),y=ss(p,20,.8),m=ss(p,75,.32),b=ss(p,45,.4),v=p.clone().darken(5).toRgbString(),x=`${r.colorPrimary}-${i}-outer`,w=`${r.colorPrimary}-${i}-inner`,_=i==="flipped"?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"100%",y1:"0%",x2:"0%",y2:"0%"};return E(Y,hc(cc({},a),{children:[E(zt,{children:[E("linearGradient",hc(cc({id:x},_),{children:[d("stop",{offset:"0%",stopColor:g}),d("stop",{offset:"100%",stopColor:y})]})),E("linearGradient",hc(cc({id:w},_),{children:[d("stop",{offset:"0%",stopColor:m}),d("stop",{offset:"100%",stopColor:b})]}))]}),d(Lt,{width:l,height:l,fill:`url(#${x})`,"data-element-type":"shape"}),d(Lt,{x:h,y:h,width:c,height:c,fill:`url(#${w})`,stroke:"#FFFFFF",strokeWidth:1,"data-element-type":"shape"}),d($t,{indexes:e,x:f,y:f,width:u,height:u,lineHeight:1.1,alignHorizontal:"center",alignVertical:"middle",fill:v,fontWeight:"500",children:n.label})]}))};Vt("circle-node",{component:gg,composites:["label"]});function ss(t,e,n){return ot.mix(t,"#ffffff",e).setAlpha(n).toRgbString()}var vO=Object.defineProperty,bO=Object.defineProperties,xO=Object.getOwnPropertyDescriptors,mg=Object.getOwnPropertySymbols,wO=Object.prototype.hasOwnProperty,_O=Object.prototype.propertyIsEnumerable,yg=(t,e,n)=>e in t?vO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dc=(t,e)=>{for(var n in e||(e={}))wO.call(e,n)&&yg(t,n,e[n]);if(mg)for(var n of mg(e))_O.call(e,n)&&yg(t,n,e[n]);return t},uc=(t,e)=>bO(t,xO(e));const vg=t=>{var e;const[{datum:n,indexes:r,size:i=120,strokeWidth:o=12,gap:s=8,themeColors:a,valueFormatter:l=_=>`${Math.round(_)}%`},c]=Wt(t,["size","strokeWidth","gap"]),h=(e=n.value)!=null?e:0,f=Math.min(Math.max(h/100,0),1),p=(i-o)/2,g=i/2,y=o/2,m=i-o,b=f>=1,v=f*360,x=$O(g,g,p,0,v),w={x:y,y,width:m,height:m};return E(Y,uc(dc({},c),{width:i,height:i+s+20,children:[d(St,{width:i,height:i,fill:"none"}),d(Lt,uc(dc({},w),{fill:"none",stroke:"#f0f0f0",strokeWidth:o,"data-element-type":"shape"})),b?d(Lt,uc(dc({},w),{fill:"none",stroke:a.colorPrimary,strokeWidth:o,"data-element-type":"shape"})):d(ht,{d:x,fill:"none",stroke:a.colorPrimary,strokeWidth:o,strokeLinecap:"round","data-element-type":"shape"}),d(gi,{indexes:r,x:o,y:o,width:m-o,height:m-o,fontSize:24,fontWeight:"bold",fill:a.colorPrimary,alignHorizontal:"center",alignVertical:"middle",value:h,formatter:l}),d($t,{indexes:r,x:0,y:i+s,width:i,alignHorizontal:"center",fontSize:12,fill:a.colorTextSecondary,children:n.label})]}))};function $O(t,e,n,r,i){const o=bg(t,e,n,i),s=bg(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 bg(t,e,n,r){const i=(r-90)*Math.PI/180;return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}}Vt("circular-progress",{component:vg,composites:["label","value"]});var PO=Object.defineProperty,OO=Object.defineProperties,CO=Object.getOwnPropertyDescriptors,xg=Object.getOwnPropertySymbols,MO=Object.prototype.hasOwnProperty,SO=Object.prototype.propertyIsEnumerable,wg=(t,e,n)=>e in t?PO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,EO=(t,e)=>{for(var n in e||(e={}))MO.call(e,n)&&wg(t,n,e[n]);if(xg)for(var n of xg(e))SO.call(e,n)&&wg(t,n,e[n]);return t},IO=(t,e)=>OO(t,CO(e));const _g=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},h]=Wt(t,["width","height","iconSize","gap"]),u=e.value,f=u!=null,p="compact-shadow",g=a==="flipped"?r-s-o:s,y=a==="flipped"?s:o+2*s,m=r-o-3*s,b=f?m*.8:m,v=f?m*.2:0;return E(Y,IO(EO({},h),{children:[d(zt,{children:d("filter",{id:p,children:d("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodOpacity:"0.15"})})}),d(St,{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"}),d(St,{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"}),d(ve,{indexes:n,x:g,y:(i-o)/2,size:o,fill:l.colorPrimary}),E(lt,{x:y,y:s,width:m,height:i-s*2,flexDirection:"column",justifyContent:"center",alignItems:"flex-start",children:[E(lt,{width:m,flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[d($t,{indexes:n,width:b,alignHorizontal:"left",fontSize:12,fill:l.colorText,children:e.label}),f&&d(gi,{indexes:n,width:v,alignHorizontal:"right",fontSize:12,fontWeight:"bold",fill:l.colorPrimary,value:u,formatter:c})]}),d(Xt,{indexes:n,width:m,alignHorizontal:"left",alignVertical:"middle",fontSize:10,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]})]}))};Vt("compact-card",{component:_g,composites:["icon","label","value","desc"]});var TO=Object.defineProperty,AO=Object.defineProperties,kO=Object.getOwnPropertyDescriptors,$g=Object.getOwnPropertySymbols,zO=Object.prototype.hasOwnProperty,LO=Object.prototype.propertyIsEnumerable,Pg=(t,e,n)=>e in t?TO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,RO=(t,e)=>{for(var n in e||(e={}))zO.call(e,n)&&Pg(t,n,e[n]);if($g)for(var n of $g(e))LO.call(e,n)&&Pg(t,n,e[n]);return t},HO=(t,e)=>AO(t,kO(e));const Og=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},h]=Wt(t,["width","height","iconSize","gap"]),u=r-o-s,f=l==="middle"?(i-o)/2:l==="flipped"?i-o:0;return E(Y,HO(RO({},h),{children:[d(ht,{"data-element-type":"shape",x:a==="flipped"?u+s:0,y:f,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"}),d($t,{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})]}))};Vt("done-list",{component:Og,composites:["label"]});var DO=Object.defineProperty,NO=Object.defineProperties,jO=Object.getOwnPropertyDescriptors,Cg=Object.getOwnPropertySymbols,FO=Object.prototype.hasOwnProperty,BO=Object.prototype.propertyIsEnumerable,Mg=(t,e,n)=>e in t?DO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,WO=(t,e)=>{for(var n in e||(e={}))FO.call(e,n)&&Mg(t,n,e[n]);if(Cg)for(var n of Cg(e))BO.call(e,n)&&Mg(t,n,e[n]);return t},VO=(t,e)=>NO(t,jO(e));const Sg=t=>{const[{indexes:e,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=Wt(t,["width"]),a=o!=="flipped",l=o==="normal"?"bottom":"top",c=d($t,{indexes:e,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=d(Xt,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=d(tr,{indexes:e,fill:i.colorPrimary,colorBg:i.colorWhite}),f=d(XO,{width:8,height:30,fill:i.colorPrimary,positionV:o}),p=5,g=25,y=30,m=Q(c),b=Q(h),v=Q(u),x=Q(f),w=m.height+b.height+p+x.height-v.height-g,_=v.height+g+y+x.height+p+m.height+b.height;return d(Y,VO(WO({width:r,height:_},s),{children:E(lt,{flexDirection:"column",alignItems:"center",children:[a?E(Rt,{children:[h,c,d(Kt,{height:p}),f]}):E(Rt,{children:[d(Kt,{height:w}),u,d(Kt,{height:g})]}),E(Y,{children:[d(YO,{width:r,height:y,fill:i.colorPrimary}),d(Et,{x:r/2,y:y/2,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?E(Rt,{children:[d(Kt,{height:g}),u]}):E(Rt,{children:[f,d(Kt,{height:p}),c,h]})]})}))},YO=t=>{const{x:e=0,y:n=0,width:r=100,height:i=40,fill:o="#FF356A",size:s=10}=t;return d(De,{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"})},XO=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,h=a;return E(ne,{x:e,y:n,width:r,height:i,children:[d(Lt,{width:r,height:r,fill:o,y:s==="top"?0:l-a}),d(ht,{d:s==="top"?`M${h},${a} L${h},${a+l}`:`M${h},0 L${h},${l-a}`,strokeWidth:c,stroke:o})]})};Vt("horizontal-icon-arrow",{component:Sg,composites:["icon","label","desc","time"]});var GO=Object.defineProperty,qO=Object.defineProperties,UO=Object.getOwnPropertyDescriptors,Eg=Object.getOwnPropertySymbols,ZO=Object.prototype.hasOwnProperty,KO=Object.prototype.propertyIsEnumerable,Ig=(t,e,n)=>e in t?GO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Tg=(t,e)=>{for(var n in e||(e={}))ZO.call(e,n)&&Ig(t,n,e[n]);if(Eg)for(var n of Eg(e))KO.call(e,n)&&Ig(t,n,e[n]);return t},Ag=(t,e)=>qO(t,UO(e));const kg=t=>{const[{indexes:e,datum:n,width:r=160,themeColors:i,positionH:o="center",positionV:s="normal"},a]=Wt(t,["width"]),l=o==="normal"?"left":o==="flipped"?"right":"center",c=d($t,{indexes:e,width:r,alignHorizontal:l,fill:i.colorPrimary,children:n.label}),h=Q(c),u=n.desc?d(Xt,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:s==="flipped"?"top":"bottom",children:n.desc}):null,f=Q(u),g=n.icon?d(tr,{size:45,indexes:e,colorBg:i.colorBg,fill:i.colorPrimary}):null,y=Q(g),m=n.time?d(Et,{width:r,height:30,alignHorizontal:"center",alignVertical:"middle",fill:i.colorPrimary,fontSize:18,fontWeight:"bold",children:n.time}):null,b=Q(m),v=18,x=E(mi,{horizontal:"center",vertical:"middle",width:r,height:v,children:[d(St,{width:r,height:v,fill:i.colorPrimary,"data-element-type":"shape"}),d(Lt,{width:v+6,height:v+6,fill:i.colorBg,fillOpacity:.5,"data-element-type":"shape"}),d(Lt,{width:12,height:12,fill:"white","data-element-type":"shape"})]}),w=h.height+f.height,_=y.height+b.height+5,$=Math.abs(_-w),P=_>w?$:0,O=w>_?$:0;return s==="flipped"?E(lt,Ag(Tg({},a),{flexDirection:"column",alignItems:"center",children:[d(Kt,{height:O}),m,g,d(Kt,{height:5}),x,c,u,d(Kt,{height:P})]})):E(lt,Ag(Tg({},a),{flexDirection:"column",alignItems:"center",children:[d(Kt,{height:P}),c,u,x,d(Kt,{height:5}),g,m,d(Kt,{height:O})]}))};Vt("horizontal-icon-line",{component:kg,composites:["icon","label","desc"]});var QO=Object.defineProperty,JO=Object.defineProperties,tC=Object.getOwnPropertyDescriptors,zg=Object.getOwnPropertySymbols,eC=Object.prototype.hasOwnProperty,nC=Object.prototype.propertyIsEnumerable,Lg=(t,e,n)=>e in t?QO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rC=(t,e)=>{for(var n in e||(e={}))eC.call(e,n)&&Lg(t,n,e[n]);if(zg)for(var n of zg(e))nC.call(e,n)&&Lg(t,n,e[n]);return t},iC=(t,e)=>JO(t,tC(e));const Rg=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:h=105},u]=Wt(t,["size","iconSize","badgeSize","gap"]),f=(e=n.value)!=null?e:0,p=`${l.colorPrimary}-icon`,g="#ff6b6b-badge";return E(Y,iC(rC({},u),{width:c,height:h,children:[E(zt,{children:[E("radialGradient",{id:p,cx:"50%",cy:"30%",r:"70%",children:[d("stop",{offset:"0%",stopColor:ot(l.colorPrimary).lighten(30).toHexString()}),d("stop",{offset:"100%",stopColor:l.colorPrimary})]}),E("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"#ff6b6b"}),d("stop",{offset:"100%",stopColor:"#ee5a52"})]})]}),d(Lt,{x:0,y:0,width:i,height:i,fill:`url(#${p})`,"data-element-type":"shape"}),d(ve,{indexes:r,x:(i-o)/2,y:(i-o)/2,size:o,fill:l.colorPrimaryText}),d(Lt,{x:i-s+4,width:s,height:s,fill:`url(#${g})`}),d(Et,{x:i-s+4,width:s,height:s,fontSize:10,fontWeight:"bold",fill:l.colorWhite,alignHorizontal:"center",alignVertical:"middle",children:f>99?"99+":Math.round(f)}),d($t,{indexes:r,x:0,y:i+a,width:i,alignHorizontal:"center",fontSize:12,fill:l.colorText,children:n.label})]}))};Vt("icon-badge",{component:Rg,composites:["icon","label"]});var oC=Object.defineProperty,sC=Object.defineProperties,aC=Object.getOwnPropertyDescriptors,Hg=Object.getOwnPropertySymbols,lC=Object.prototype.hasOwnProperty,cC=Object.prototype.propertyIsEnumerable,Dg=(t,e,n)=>e in t?oC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hC=(t,e)=>{for(var n in e||(e={}))lC.call(e,n)&&Dg(t,n,e[n]);if(Hg)for(var n of Hg(e))cC.call(e,n)&&Dg(t,n,e[n]);return t},dC=(t,e)=>sC(t,aC(e));const Ng=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:h},u]=Wt(t,["width","height","borderRadius","padding","separatorHeight","indexFontSize","labelFontSize","gap"]),f=n[0]+1,p=String(f).padStart(2,"0"),g=e.label!==void 0,y=e.desc!==void 0,m=ot.mix(h.colorPrimary,h.colorWhite,40).toHexString(),b=h.colorBgElevated||h.colorWhite,v=r-2*o,x=Q(d(Et,{fontSize:a,fontWeight:"bold",children:p})),w=v-x.width-c,_=g?Q(d($t,{indexes:n,width:w,fontSize:l,fontWeight:"bold",x:a,children:e.label})):{height:0},$=y?Q(d(Xt,{indexes:n,width:v,fontSize:14,lineHeight:1.5,wordWrap:!0,children:e.desc})):{height:0},P=Math.max(x.height,_.height),O=o*2+P+(g||y?c:0)+s+(y?c:0)+$.height;return E(Y,dC(hC({},u),{width:r,height:O,children:[d(St,{x:0,y:0,width:r,height:O,rx:i,ry:i,fill:b,stroke:ot(b).darken(5).toHexString(),strokeWidth:.5,"data-element-type":"shape"}),E(Y,{x:o,y:o,children:[E(Y,{x:0,y:0,children:[d(Et,{x:0,y:0,fontSize:a,fontWeight:"bold",fill:h.colorPrimary,alignVertical:"top",children:p}),g&&d($t,{indexes:n,x:a+c,y:0,width:w,fontSize:l,fontWeight:"bold",fill:h.colorTextSecondary,alignVertical:"top",children:e.label})]}),d(St,{x:0,y:P+c,width:v,height:s,fill:m,"data-element-type":"shape"}),y&&d(Xt,{indexes:n,x:0,y:P+c+s+c,width:v,fontSize:14,lineHeight:1.5,wordWrap:!0,fill:h.colorTextSecondary,children:e.desc})]})]}))};Vt("indexed-card",{component:Ng,composites:["label","desc"]});var uC=Object.defineProperty,fC=Object.defineProperties,pC=Object.getOwnPropertyDescriptors,jg=Object.getOwnPropertySymbols,gC=Object.prototype.hasOwnProperty,mC=Object.prototype.propertyIsEnumerable,Fg=(t,e,n)=>e in t?uC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yC=(t,e)=>{for(var n in e||(e={}))gC.call(e,n)&&Fg(t,n,e[n]);if(jg)for(var n of jg(e))mC.call(e,n)&&Fg(t,n,e[n]);return t},vC=(t,e)=>fC(t,pC(e));const Bg=t=>{const[{indexes:e,datum:n,width:r=140,iconSize:i=24,themeColors:o},s]=Wt(t,["width","iconSize"]),{label:a,desc:l}=n,c=8,h=16,u=12,f=h+u,p=r-f,g=60,y=i+44,m=h,b=g+u,v=g+h+u,x=[{x:0,y:v},{x:m,y:b},{x:m,y:v}],w=r-m-u,_=m+u,$=_+w,P=b+c/2,O=P+y,T=`M ${_} ${O} L ${_} ${P} L ${$} ${P}`,I=c/2,S=_+I,H=P+I,C=8;return E(Y,vC(yC({},s),{children:[d(Xt,{indexes:e,x:f,width:p,height:g,fontSize:12,alignHorizontal:"left",alignVertical:"bottom",fill:o.colorTextSecondary,children:l}),d(De,{points:x,fill:o.colorPrimary,opacity:.9,width:h,height:h,"data-element-type":"shape"}),d(ht,{d:T,stroke:o.colorPrimary,strokeWidth:c,fill:"none","data-element-type":"shape"}),d(ve,{indexes:e,x:S+w/2-i/2,y:H+C,size:i,fill:o.colorPrimary}),d($t,{indexes:e,x:S,y:H+i+C*2,width:w,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:o.colorText,children:a})]}))};Vt("l-corner-card",{component:Bg,composites:["icon","label","desc"]});var bC=Object.defineProperty,xC=Object.defineProperties,wC=Object.getOwnPropertyDescriptors,Wg=Object.getOwnPropertySymbols,_C=Object.prototype.hasOwnProperty,$C=Object.prototype.propertyIsEnumerable,Vg=(t,e,n)=>e in t?bC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,PC=(t,e)=>{for(var n in e||(e={}))_C.call(e,n)&&Vg(t,n,e[n]);if(Wg)for(var n of Wg(e))$C.call(e,n)&&Vg(t,n,e[n]);return t},OC=(t,e)=>xC(t,wC(e));const Yg=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:h},u]=Wt(t,["width","height","showStripe","showGradient","showBottomShade"]),f=(e=r.label)==null?void 0:e[0].toUpperCase(),p=(n=r.label)==null?void 0:n.toUpperCase(),g=h.colorPrimary,y=ot(g),m=4,b=6,v=45,x=40,w=12,$=y.clone().darken(4).toHexString(),P=y.clone().lighten(w).toHexString(),O="rgba(255, 255, 255, 0)",T="rgba(0, 0, 0, 0.03)",I=`letter-card-${i.join("-")}`,S=`${I}-gradient`,H=`${I}-pattern`,C=`${I}-shade`,A=m+b,B=1,k=96,D=k*B,z=16,N=z*B,j=s/16,X=D+j+N,L=(s-X)/2,M=L+D+j;return E(Y,OC(PC({},u),{width:o,height:s,children:[E(zt,{children:[l&&E("linearGradient",{id:S,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:$}),d("stop",{offset:"100%",stopColor:P})]}),a&&E("pattern",{id:H,patternUnits:"userSpaceOnUse",width:A,height:A,patternTransform:`rotate(${v})`,children:[d("rect",{x:"0",y:"0",width:A,height:A,fill:O}),d("rect",{x:"0",y:"0",width:m,height:A,fill:T})]}),c&&E("linearGradient",{id:C,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"rgba(0,0,0,0)"}),d("stop",{offset:"100%",stopColor:"rgba(0,0,0,0.16)"})]})]}),d(St,{x:0,y:0,width:o,height:s,fill:l?`url(#${S})`:g,rx:0,ry:0,"data-element-type":"shape"}),a&&d(St,{x:0,y:0,width:o,height:s,fill:`url(#${H})`,rx:0,ry:0}),c&&d(St,{x:0,y:s-x,width:o,height:x,fill:`url(#${C})`,rx:0,ry:0}),f&&d($t,{indexes:i,x:0,y:L,width:o,fontSize:k,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"top",lineHeight:1,children:f}),d($t,{indexes:i,x:0,y:M,width:o,fontSize:z,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"middle",lineHeight:1,children:p})]}))};Vt("letter-card",{component:Yg,composites:["label"]});var CC=Object.defineProperty,MC=Object.defineProperties,SC=Object.getOwnPropertyDescriptors,Xg=Object.getOwnPropertySymbols,EC=Object.prototype.hasOwnProperty,IC=Object.prototype.propertyIsEnumerable,Gg=(t,e,n)=>e in t?CC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,TC=(t,e)=>{for(var n in e||(e={}))EC.call(e,n)&&Gg(t,n,e[n]);if(Xg)for(var n of Xg(e))IC.call(e,n)&&Gg(t,n,e[n]);return t},AC=(t,e)=>MC(t,SC(e));const qg=t=>{var e,n,r;const[{datum:i,indexes:o,width:s,themeColors:a,positionH:l="normal",positionV:c="center",formatter:h=B=>B||"",usePaletteColor:u=!1,showUnderline:f=!1,underlineGap:p=6,underlineExtend:g=8,underlineThickness:y=2},m]=Wt(t,["width","formatter","usePaletteColor","showUnderline","underlineGap","underlineExtend","underlineThickness"]),b=h((n=(e=i.label)!=null?e:i.desc)!=null?n:""),v=l==="flipped"?"right":l==="center"?"center":"left",x=Q(d($t,{indexes:o,width:s,children:b})),w=s!=null?s:x.width,_=x.height,$=f?w+g*2:0,P=_+(f?p+y:0),O=f?Math.max(w,$):w,T=(r=m.height)!=null?r:P,I=c==="middle"?(T-P)/2:c==="flipped"?T-P:0,S=v==="right"?O-w:v==="center"?(O-w)/2:0,H=I,C=v==="right"?O-$:v==="center"?(O-$)/2:0,A=T;return E(Y,AC(TC({},m),{width:O,height:T,children:[d($t,{indexes:o,x:S,y:H,width:w,height:_,alignHorizontal:v,alignVertical:c==="flipped"?"bottom":c==="center"?"middle":"top",fill:u?a.colorPrimary:a.colorText,children:b}),f&&d(ht,{d:`M 0 ${y/2} L ${$} ${y/2}`,x:C,y:A-y/2,width:$,height:y,stroke:a.colorPrimary,strokeWidth:y,fill:"none",strokeLinecap:"round","data-element-type":"shape"})]}))};Vt("lined-text",{component:qg,composites:["label"]});var kC=Object.defineProperty,zC=Object.defineProperties,LC=Object.getOwnPropertyDescriptors,Ug=Object.getOwnPropertySymbols,RC=Object.prototype.hasOwnProperty,HC=Object.prototype.propertyIsEnumerable,Zg=(t,e,n)=>e in t?kC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,DC=(t,e)=>{for(var n in e||(e={}))RC.call(e,n)&&Zg(t,n,e[n]);if(Ug)for(var n of Ug(e))HC.call(e,n)&&Zg(t,n,e[n]);return t},NC=(t,e)=>zC(t,LC(e));const Kg=t=>{const[{datum:e,indexes:n,width:r=300,pillWidth:i=120,pillHeight:o=36,gap:s=16,positionH:a="normal",themeColors:l},c]=Wt(t,["width","pillWidth","pillHeight","gap"]),h=!!e.desc,u=h?r:i,f=h?a==="center"?(u-i)/2:a==="flipped"?u-i:0:0,p=0,g=0,y=o+s,m=u,b=`drop-shadow-${l.colorPrimary}`,v="linear-gradient-white-top-bottom";return E(Y,NC(DC({},c),{children:[E(zt,{children:[d(ac,{id:b,color:l.colorPrimary}),d(lc,{id:v,startColor:"#fff",stopColor:"#ffffff33",direction:"top-bottom"})]}),d(St,{x:f,y:p,width:i,height:o,fill:l.colorPrimaryBg,stroke:l.colorPrimary,rx:o/2,ry:o/2,filter:`url(#${b})`,"data-element-type":"shape"}),d(St,{x:f,y:p,width:i,height:o,fill:`url(#${v})`,opacity:l.isDarkMode?.4:.7,rx:o/2,ry:o/2}),d($t,{indexes:n,x:f,y:p,width:i,height:o,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:l.colorText,children:e.label}),e.desc&&d(Xt,{indexes:n,x:g,y,width:m,alignHorizontal:a==="center"?"center":a==="flipped"?"right":"left",fontSize:12,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]}))};Vt("pill-badge",{component:Kg,composites:["label","desc"]});var jC=Object.defineProperty,FC=Object.defineProperties,BC=Object.getOwnPropertyDescriptors,Qg=Object.getOwnPropertySymbols,WC=Object.prototype.hasOwnProperty,VC=Object.prototype.propertyIsEnumerable,Jg=(t,e,n)=>e in t?jC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,YC=(t,e)=>{for(var n in e||(e={}))WC.call(e,n)&&Jg(t,n,e[n]);if(Qg)for(var n of Qg(e))VC.call(e,n)&&Jg(t,n,e[n]);return t},XC=(t,e)=>FC(t,BC(e));const t1=t=>{var e;const[{indexes:n,datum:r,width:i=120,themeColors:o,positionH:s="normal",positionV:a="center",formatter:l=y=>y||"",usePaletteColor:c=!1,lineNumber:h=1},u]=Wt(t,["width","formatter","usePaletteColor","lineNumber"]),f=14,p=1.4,g=(e=u.height)!=null?e:Math.ceil(h*p*f);return d($t,XC(YC({},u),{indexes:n,width:i,height:g,lineHeight:p,fill:c?o.colorPrimary:o.colorText,fontSize:f,fontWeight:"regular",alignHorizontal:s==="flipped"?"right":s==="center"?"center":"left",alignVertical:a==="flipped"?"bottom":a==="center"?"middle":"top",children:l(r.label||r.desc)}))};Vt("plain-text",{component:t1,composites:["label"]});function as(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function GC(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function e1(t){let e,n,r;t.length!==2?(e=as,n=(a,l)=>as(t(a),l),r=(a,l)=>t(a)-l):(e=t===as||t===GC?t:qC,n=t,r=t);function i(a,l,c=0,h=a.length){if(c<h){if(e(l,l)!==0)return h;do{const u=c+h>>>1;n(a[u],l)<0?c=u+1:h=u}while(c<h)}return c}function o(a,l,c=0,h=a.length){if(c<h){if(e(l,l)!==0)return h;do{const u=c+h>>>1;n(a[u],l)<=0?c=u+1:h=u}while(c<h)}return c}function s(a,l,c=0,h=a.length){const u=i(a,l,c,h-1);return u>c&&r(a[u-1],l)>-r(a[u],l)?u-1:u}return{left:i,center:s,right:o}}function qC(){return 0}function UC(t){return t===null?NaN:+t}const ZC=e1(as).right;e1(UC).center;const KC=Math.sqrt(50),QC=Math.sqrt(10),JC=Math.sqrt(2);function ls(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>=KC?10:o>=QC?5:o>=JC?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?ls(t,e,n*2):[a,l,c]}function tM(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?ls(e,t,n):ls(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 fc(t,e,n){return e=+e,t=+t,n=+n,ls(t,e,n)[2]}function eM(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?fc(e,t,n):fc(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}var nM={value:()=>{}};function pc(){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 cs(n)}function cs(t){this._=t}function rM(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}})}cs.prototype=pc.prototype={constructor:cs,on:function(t,e){var n=this._,r=rM(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=iM(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]=n1(n[i],t.name,e);else if(e==null)for(i in n)n[i]=n1(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 cs(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 iM(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function n1(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=nM,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var gc="http://www.w3.org/1999/xhtml";const r1={svg:"http://www.w3.org/2000/svg",xhtml:gc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function hs(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),r1.hasOwnProperty(e)?{space:r1[e],local:t}:t}function oM(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===gc&&e.documentElement.namespaceURI===gc?e.createElement(t):e.createElementNS(n,t)}}function sM(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function i1(t){var e=hs(t);return(e.local?sM:oM)(e)}function aM(){}function mc(t){return t==null?aM:function(){return this.querySelector(t)}}function lM(t){typeof t!="function"&&(t=mc(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,h=0;h<s;++h)(l=o[h])&&(c=t.call(l,l.__data__,h,o))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new We(r,this._parents)}function cM(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function hM(){return[]}function o1(t){return t==null?hM:function(){return this.querySelectorAll(t)}}function dM(t){return function(){return cM(t.apply(this,arguments))}}function uM(t){typeof t=="function"?t=dM(t):t=o1(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 We(r,i)}function s1(t){return function(){return this.matches(t)}}function a1(t){return function(e){return e.matches(t)}}var fM=Array.prototype.find;function pM(t){return function(){return fM.call(this.children,t)}}function gM(){return this.firstElementChild}function mM(t){return this.select(t==null?gM:pM(typeof t=="function"?t:a1(t)))}var yM=Array.prototype.filter;function vM(){return Array.from(this.children)}function bM(t){return function(){return yM.call(this.children,t)}}function xM(t){return this.selectAll(t==null?vM:bM(typeof t=="function"?t:a1(t)))}function wM(t){typeof t!="function"&&(t=s1(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 We(r,this._parents)}function l1(t){return new Array(t.length)}function _M(){return new We(this._enter||this._groups.map(l1),this._parents)}function ds(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ds.prototype={constructor:ds,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 $M(t){return function(){return t}}function PM(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 ds(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function OM(t,e,n,r,i,o,s){var a,l,c=new Map,h=e.length,u=o.length,f=new Array(h),p;for(a=0;a<h;++a)(l=e[a])&&(f[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 ds(t,o[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(f[a])===l&&(i[a]=l)}function CM(t){return t.__data__}function MM(t,e){if(!arguments.length)return Array.from(this,CM);var n=e?OM:PM,r=this._parents,i=this._groups;typeof t!="function"&&(t=$M(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var h=r[c],u=i[c],f=u.length,p=SM(t.call(h,h&&h.__data__,c,r)),g=p.length,y=a[c]=new Array(g),m=s[c]=new Array(g),b=l[c]=new Array(f);n(h,u,y,m,b,p,e);for(var v=0,x=0,w,_;v<g;++v)if(w=y[v]){for(v>=x&&(x=v+1);!(_=m[x])&&++x<g;);w._next=_||null}}return s=new We(s,r),s._enter=a,s._exit=l,s}function SM(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function EM(){return new We(this._exit||this._groups.map(l1),this._parents)}function IM(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 TM(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],h=r[l],u=c.length,f=a[l]=new Array(u),p,g=0;g<u;++g)(p=c[g]||h[g])&&(f[g]=p);for(;l<i;++l)a[l]=n[l];return new We(a,this._parents)}function AM(){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 kM(t){t||(t=zM);function e(u,f){return u&&f?t(u.__data__,f.__data__):!u-!f}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,h=0;h<a;++h)(c=s[h])&&(l[h]=c);l.sort(e)}return new We(i,this._parents).order()}function zM(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function LM(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function RM(){return Array.from(this)}function HM(){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 DM(){let t=0;for(const e of this)++t;return t}function NM(){return!this.node()}function jM(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 FM(t){return function(){this.removeAttribute(t)}}function BM(t){return function(){this.removeAttributeNS(t.space,t.local)}}function WM(t,e){return function(){this.setAttribute(t,e)}}function VM(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function YM(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function XM(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 GM(t,e){var n=hs(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?BM:FM:typeof e=="function"?n.local?XM:YM:n.local?VM:WM)(n,e))}function c1(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function qM(t){return function(){this.style.removeProperty(t)}}function UM(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ZM(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function KM(t,e,n){return arguments.length>1?this.each((e==null?qM:typeof e=="function"?ZM:UM)(t,e,n==null?"":n)):Tr(this.node(),t)}function Tr(t,e){return t.style.getPropertyValue(e)||c1(t).getComputedStyle(t,null).getPropertyValue(e)}function QM(t){return function(){delete this[t]}}function JM(t,e){return function(){this[t]=e}}function tS(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function eS(t,e){return arguments.length>1?this.each((e==null?QM:typeof e=="function"?tS:JM)(t,e)):this.node()[t]}function h1(t){return t.trim().split(/^|\s+/)}function yc(t){return t.classList||new d1(t)}function d1(t){this._node=t,this._names=h1(t.getAttribute("class")||"")}d1.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 u1(t,e){for(var n=yc(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function f1(t,e){for(var n=yc(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function nS(t){return function(){u1(this,t)}}function rS(t){return function(){f1(this,t)}}function iS(t,e){return function(){(e.apply(this,arguments)?u1:f1)(this,t)}}function oS(t,e){var n=h1(t+"");if(arguments.length<2){for(var r=yc(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?iS:e?nS:rS)(n,e))}function sS(){this.textContent=""}function aS(t){return function(){this.textContent=t}}function lS(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function cS(t){return arguments.length?this.each(t==null?sS:(typeof t=="function"?lS:aS)(t)):this.node().textContent}function hS(){this.innerHTML=""}function dS(t){return function(){this.innerHTML=t}}function uS(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function fS(t){return arguments.length?this.each(t==null?hS:(typeof t=="function"?uS:dS)(t)):this.node().innerHTML}function pS(){this.nextSibling&&this.parentNode.appendChild(this)}function gS(){return this.each(pS)}function mS(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yS(){return this.each(mS)}function vS(t){var e=typeof t=="function"?t:i1(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function bS(){return null}function xS(t,e){var n=typeof t=="function"?t:i1(t),r=e==null?bS:typeof e=="function"?e:mc(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function wS(){var t=this.parentNode;t&&t.removeChild(this)}function _S(){return this.each(wS)}function $S(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function PS(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function OS(t){return this.select(t?PS:$S)}function CS(t){return arguments.length?this.property("__data__",t):this.node().__data__}function MS(t){return function(e){t.call(this,e,this.__data__)}}function SS(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 ES(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 IS(t,e,n){return function(){var r=this.__on,i,o=MS(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 TS(t,e,n){var r=SS(t+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,h;l<c;++l)for(i=0,h=a[l];i<o;++i)if((s=r[i]).type===h.type&&s.name===h.name)return h.value}return}for(a=e?IS:ES,i=0;i<o;++i)this.each(a(r[i],e,n));return this}function p1(t,e,n){var r=c1(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 AS(t,e){return function(){return p1(this,t,e)}}function kS(t,e){return function(){return p1(this,t,e.apply(this,arguments))}}function zS(t,e){return this.each((typeof e=="function"?kS:AS)(t,e))}function*LS(){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 RS=[null];function We(t,e){this._groups=t,this._parents=e}function _i(){return new We([[document.documentElement]],RS)}function HS(){return this}We.prototype=_i.prototype={constructor:We,select:lM,selectAll:uM,selectChild:mM,selectChildren:xM,filter:wM,data:MM,enter:_M,exit:EM,join:IM,merge:TM,selection:HS,order:AM,sort:kM,call:LM,nodes:RM,node:HM,size:DM,empty:NM,each:jM,attr:GM,style:KM,property:eS,classed:oS,text:cS,html:fS,raise:gS,lower:yS,append:vS,insert:xS,remove:_S,clone:OS,datum:CS,on:TS,dispatch:zS,[Symbol.iterator]:LS};function vc(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function g1(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function $i(){}var Pi=.7,us=1/Pi,Ar="\\s*([+-]?\\d+)\\s*",Oi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",DS=/^#([0-9a-f]{3,8})$/,NS=new RegExp(`^rgb\\(${Ar},${Ar},${Ar}\\)$`),jS=new RegExp(`^rgb\\(${rn},${rn},${rn}\\)$`),FS=new RegExp(`^rgba\\(${Ar},${Ar},${Ar},${Oi}\\)$`),BS=new RegExp(`^rgba\\(${rn},${rn},${rn},${Oi}\\)$`),WS=new RegExp(`^hsl\\(${Oi},${rn},${rn}\\)$`),VS=new RegExp(`^hsla\\(${Oi},${rn},${rn},${Oi}\\)$`),m1={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};vc($i,nr,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:y1,formatHex:y1,formatHex8:YS,formatHsl:XS,formatRgb:v1,toString:v1});function y1(){return this.rgb().formatHex()}function YS(){return this.rgb().formatHex8()}function XS(){return $1(this).formatHsl()}function v1(){return this.rgb().formatRgb()}function nr(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=DS.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?b1(e):n===3?new Me(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?fs(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?fs(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=NS.exec(t))?new Me(e[1],e[2],e[3],1):(e=jS.exec(t))?new Me(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=FS.exec(t))?fs(e[1],e[2],e[3],e[4]):(e=BS.exec(t))?fs(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=WS.exec(t))?_1(e[1],e[2]/100,e[3]/100,1):(e=VS.exec(t))?_1(e[1],e[2]/100,e[3]/100,e[4]):m1.hasOwnProperty(t)?b1(m1[t]):t==="transparent"?new Me(NaN,NaN,NaN,0):null}function b1(t){return new Me(t>>16&255,t>>8&255,t&255,1)}function fs(t,e,n,r){return r<=0&&(t=e=n=NaN),new Me(t,e,n,r)}function GS(t){return t instanceof $i||(t=nr(t)),t?(t=t.rgb(),new Me(t.r,t.g,t.b,t.opacity)):new Me}function bc(t,e,n,r){return arguments.length===1?GS(t):new Me(t,e,n,r==null?1:r)}function Me(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}vc(Me,bc,g1($i,{brighter(t){return t=t==null?us:Math.pow(us,t),new Me(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Pi:Math.pow(Pi,t),new Me(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Me(rr(this.r),rr(this.g),rr(this.b),ps(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:x1,formatHex:x1,formatHex8:qS,formatRgb:w1,toString:w1}));function x1(){return`#${ir(this.r)}${ir(this.g)}${ir(this.b)}`}function qS(){return`#${ir(this.r)}${ir(this.g)}${ir(this.b)}${ir((isNaN(this.opacity)?1:this.opacity)*255)}`}function w1(){const t=ps(this.opacity);return`${t===1?"rgb(":"rgba("}${rr(this.r)}, ${rr(this.g)}, ${rr(this.b)}${t===1?")":`, ${t})`}`}function ps(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function rr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ir(t){return t=rr(t),(t<16?"0":"")+t.toString(16)}function _1(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ve(t,e,n,r)}function $1(t){if(t instanceof Ve)return new Ve(t.h,t.s,t.l,t.opacity);if(t instanceof $i||(t=nr(t)),!t)return new Ve;if(t instanceof Ve)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 Ve(s,a,l,t.opacity)}function US(t,e,n,r){return arguments.length===1?$1(t):new Ve(t,e,n,r==null?1:r)}function Ve(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}vc(Ve,US,g1($i,{brighter(t){return t=t==null?us:Math.pow(us,t),new Ve(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Pi:Math.pow(Pi,t),new Ve(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 Me(xc(t>=240?t-240:t+120,i,r),xc(t,i,r),xc(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Ve(P1(this.h),gs(this.s),gs(this.l),ps(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=ps(this.opacity);return`${t===1?"hsl(":"hsla("}${P1(this.h)}, ${gs(this.s)*100}%, ${gs(this.l)*100}%${t===1?")":`, ${t})`}`}}));function P1(t){return t=(t||0)%360,t<0?t+360:t}function gs(t){return Math.max(0,Math.min(1,t||0))}function xc(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 wc=t=>()=>t;function ZS(t,e){return function(n){return t+n*e}}function KS(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 QS(t){return(t=+t)==1?O1:function(e,n){return n-e?KS(e,n,t):wc(isNaN(e)?n:e)}}function O1(t,e){var n=e-t;return n?ZS(t,n):wc(isNaN(t)?e:t)}const ms=(function t(e){var n=QS(e);function r(i,o){var s=n((i=bc(i)).r,(o=bc(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),c=O1(i.opacity,o.opacity);return function(h){return i.r=s(h),i.g=a(h),i.b=l(h),i.opacity=c(h),i+""}}return r.gamma=t,r})(1);function JS(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 tE(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function eE(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]=Pc(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 nE(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 rE(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]=Pc(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var _c=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$c=new RegExp(_c.source,"g");function iE(t){return function(){return t}}function oE(t){return function(e){return t(e)+""}}function C1(t,e){var n=_c.lastIndex=$c.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=_c.exec(t))&&(i=$c.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=$c.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?oE(l[0].x):iE(e):(e=l.length,function(c){for(var h=0,u;h<e;++h)a[(u=l[h]).i]=u.x(c);return a.join("")})}function Pc(t,e){var n=typeof e,r;return e==null||n==="boolean"?wc(e):(n==="number"?Ye:n==="string"?(r=nr(e))?(e=r,ms):C1:e instanceof nr?ms:e instanceof Date?nE:tE(e)?JS:Array.isArray(e)?eE:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?rE:Ye)(t,e)}function sE(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var M1=180/Math.PI,Oc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function S1(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)*M1,skewX:Math.atan(l)*M1,scaleX:s,scaleY:a}}var ys;function aE(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Oc:S1(e.a,e.b,e.c,e.d,e.e,e.f)}function lE(t){return t==null||(ys||(ys=document.createElementNS("http://www.w3.org/2000/svg","g")),ys.setAttribute("transform",t),!(t=ys.transform.baseVal.consolidate()))?Oc:(t=t.matrix,S1(t.a,t.b,t.c,t.d,t.e,t.f))}function E1(t,e,n,r){function i(c){return c.length?c.pop()+" ":""}function o(c,h,u,f,p,g){if(c!==u||h!==f){var y=p.push("translate(",null,e,null,n);g.push({i:y-4,x:Ye(c,u)},{i:y-2,x:Ye(h,f)})}else(u||f)&&p.push("translate("+u+e+f+n)}function s(c,h,u,f){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),f.push({i:u.push(i(u)+"rotate(",null,r)-2,x:Ye(c,h)})):h&&u.push(i(u)+"rotate("+h+r)}function a(c,h,u,f){c!==h?f.push({i:u.push(i(u)+"skewX(",null,r)-2,x:Ye(c,h)}):h&&u.push(i(u)+"skewX("+h+r)}function l(c,h,u,f,p,g){if(c!==u||h!==f){var y=p.push(i(p)+"scale(",null,",",null,")");g.push({i:y-4,x:Ye(c,u)},{i:y-2,x:Ye(h,f)})}else(u!==1||f!==1)&&p.push(i(p)+"scale("+u+","+f+")")}return function(c,h){var u=[],f=[];return c=t(c),h=t(h),o(c.translateX,c.translateY,h.translateX,h.translateY,u,f),s(c.rotate,h.rotate,u,f),a(c.skewX,h.skewX,u,f),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,f),c=h=null,function(p){for(var g=-1,y=f.length,m;++g<y;)u[(m=f[g]).i]=m.x(p);return u.join("")}}}var cE=E1(aE,"px, ","px)","deg)"),hE=E1(lE,", ",")",")"),kr=0,Ci=0,Mi=0,I1=1e3,vs,Si,bs=0,or=0,xs=0,Ei=typeof performance=="object"&&performance.now?performance:Date,T1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Cc(){return or||(T1(dE),or=Ei.now()+xs)}function dE(){or=0}function ws(){this._call=this._time=this._next=null}ws.prototype=Mc.prototype={constructor:ws,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Cc():+n)+(e==null?0:+e),!this._next&&Si!==this&&(Si?Si._next=this:vs=this,Si=this),this._call=t,this._time=n,Sc()},stop:function(){this._call&&(this._call=null,this._time=1/0,Sc())}};function Mc(t,e,n){var r=new ws;return r.restart(t,e,n),r}function uE(){Cc(),++kr;for(var t=vs,e;t;)(e=or-t._time)>=0&&t._call.call(void 0,e),t=t._next;--kr}function A1(){or=(bs=Ei.now())+xs,kr=Ci=0;try{uE()}finally{kr=0,pE(),or=0}}function fE(){var t=Ei.now(),e=t-bs;e>I1&&(xs-=e,bs=t)}function pE(){for(var t,e=vs,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:vs=n);Si=t,Sc(r)}function Sc(t){if(!kr){Ci&&(Ci=clearTimeout(Ci));var e=t-or;e>24?(t<1/0&&(Ci=setTimeout(A1,t-Ei.now()-xs)),Mi&&(Mi=clearInterval(Mi))):(Mi||(bs=Ei.now(),Mi=setInterval(fE,I1)),kr=1,T1(A1))}}function k1(t,e,n){var r=new ws;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var gE=pc("start","end","cancel","interrupt"),mE=[],z1=0,L1=1,Ec=2,_s=3,R1=4,Ic=5,$s=6;function Ps(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;yE(t,n,{name:e,index:r,group:i,on:gE,tween:mE,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:z1})}function Tc(t,e){var n=Xe(t,e);if(n.state>z1)throw new Error("too late; already scheduled");return n}function on(t,e){var n=Xe(t,e);if(n.state>_s)throw new Error("too late; already running");return n}function Xe(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function yE(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Mc(o,0,n.time);function o(c){n.state=L1,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var h,u,f,p;if(n.state!==L1)return l();for(h in r)if(p=r[h],p.name===n.name){if(p.state===_s)return k1(s);p.state===R1?(p.state=$s,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[h]):+h<e&&(p.state=$s,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[h])}if(k1(function(){n.state===_s&&(n.state=R1,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=Ec,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Ec){for(n.state=_s,i=new Array(f=n.tween.length),h=0,u=-1;h<f;++h)(p=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++u]=p);i.length=u+1}}function a(c){for(var h=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=Ic,1),u=-1,f=i.length;++u<f;)i[u].call(t,h);n.state===Ic&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=$s,n.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function vE(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>Ec&&r.state<Ic,r.state=$s,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function bE(t){return this.each(function(){vE(this,t)})}function xE(t,e){var n,r;return function(){var i=on(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 wE(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=on(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 _E(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=Xe(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?xE:wE)(n,t,e))}function Ac(t,e,n){var r=t._id;return t.each(function(){var i=on(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return Xe(i,r).value[e]}}function H1(t,e){var n;return(typeof e=="number"?Ye:e instanceof nr?ms:(n=nr(e))?(e=n,ms):C1)(t,e)}function $E(t){return function(){this.removeAttribute(t)}}function PE(t){return function(){this.removeAttributeNS(t.space,t.local)}}function OE(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 CE(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 ME(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 SE(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 EE(t,e){var n=hs(t),r=n==="transform"?hE:H1;return this.attrTween(t,typeof e=="function"?(n.local?SE:ME)(n,r,Ac(this,"attr."+t,e)):e==null?(n.local?PE:$E)(n):(n.local?CE:OE)(n,r,e))}function IE(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function TE(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function AE(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&TE(t,o)),n}return i._value=e,i}function kE(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&IE(t,o)),n}return i._value=e,i}function zE(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=hs(t);return this.tween(n,(r.local?AE:kE)(r,e))}function LE(t,e){return function(){Tc(this,t).delay=+e.apply(this,arguments)}}function RE(t,e){return e=+e,function(){Tc(this,t).delay=e}}function HE(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?LE:RE)(e,t)):Xe(this.node(),e).delay}function DE(t,e){return function(){on(this,t).duration=+e.apply(this,arguments)}}function NE(t,e){return e=+e,function(){on(this,t).duration=e}}function jE(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?DE:NE)(e,t)):Xe(this.node(),e).duration}function FE(t,e){if(typeof e!="function")throw new Error;return function(){on(this,t).ease=e}}function BE(t){var e=this._id;return arguments.length?this.each(FE(e,t)):Xe(this.node(),e).ease}function WE(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;on(this,t).ease=n}}function VE(t){if(typeof t!="function")throw new Error;return this.each(WE(this._id,t))}function YE(t){typeof t!="function"&&(t=s1(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 vn(r,this._parents,this._name,this._id)}function XE(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],h=l.length,u=s[a]=new Array(h),f,p=0;p<h;++p)(f=l[p]||c[p])&&(u[p]=f);for(;a<r;++a)s[a]=e[a];return new vn(s,this._parents,this._name,this._id)}function GE(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 qE(t,e,n){var r,i,o=GE(e)?Tc:on;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}function UE(t,e){var n=this._id;return arguments.length<2?Xe(this.node(),n).on.on(t):this.each(qE(n,t,e))}function ZE(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function KE(){return this.on("end.remove",ZE(this._id))}function QE(t){var e=this._name,n=this._id;typeof t!="function"&&(t=mc(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),h,u,f=0;f<l;++f)(h=a[f])&&(u=t.call(h,h.__data__,f,a))&&("__data__"in h&&(u.__data__=h.__data__),c[f]=u,Ps(c[f],e,n,f,c,Xe(h,n)));return new vn(o,this._parents,e,n)}function JE(t){var e=this._name,n=this._id;typeof t!="function"&&(t=o1(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var f=t.call(h,h.__data__,u,l),p,g=Xe(h,n),y=0,m=f.length;y<m;++y)(p=f[y])&&Ps(p,e,n,y,f,g);o.push(f),s.push(h)}return new vn(o,s,e,n)}var tI=_i.prototype.constructor;function eI(){return new tI(this._groups,this._parents)}function nI(t,e){var n,r,i;return function(){var o=Tr(this,t),s=(this.style.removeProperty(t),Tr(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}function D1(t){return function(){this.style.removeProperty(t)}}function rI(t,e,n){var r,i=n+"",o;return function(){var s=Tr(this,t);return s===i?null:s===r?o:o=e(r=s,n)}}function iI(t,e,n){var r,i,o;return function(){var s=Tr(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),Tr(this,t))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a))}}function oI(t,e){var n,r,i,o="style."+e,s="end."+o,a;return function(){var l=on(this,t),c=l.on,h=l.value[o]==null?a||(a=D1(e)):void 0;(c!==n||i!==h)&&(r=(n=c).copy()).on(s,i=h),l.on=r}}function sI(t,e,n){var r=(t+="")=="transform"?cE:H1;return e==null?this.styleTween(t,nI(t,r)).on("end.style."+t,D1(t)):typeof e=="function"?this.styleTween(t,iI(t,r,Ac(this,"style."+t,e))).each(oI(this._id,t)):this.styleTween(t,rI(t,r,e),n).on("end.style."+t,null)}function aI(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function lI(t,e,n){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&aI(t,s,n)),r}return o._value=e,o}function cI(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,lI(t,e,n==null?"":n))}function hI(t){return function(){this.textContent=t}}function dI(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function uI(t){return this.tween("text",typeof t=="function"?dI(Ac(this,"text",t)):hI(t==null?"":t+""))}function fI(t){return function(e){this.textContent=t.call(this,e)}}function pI(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&fI(i)),e}return r._value=t,r}function gI(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,pI(t))}function mI(){for(var t=this._name,e=this._id,n=N1(),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 h=Xe(l,e);Ps(l,t,n,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new vn(r,this._parents,t,n)}function yI(){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=on(this,r),h=c.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),i===0&&o()})}var vI=0;function vn(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function N1(){return++vI}var bn=_i.prototype;vn.prototype={constructor:vn,select:QE,selectAll:JE,selectChild:bn.selectChild,selectChildren:bn.selectChildren,filter:YE,merge:XE,selection:eI,transition:mI,call:bn.call,nodes:bn.nodes,node:bn.node,size:bn.size,empty:bn.empty,each:bn.each,on:UE,attr:EE,attrTween:zE,style:sI,styleTween:cI,text:uI,textTween:gI,remove:KE,tween:_E,delay:HE,duration:jE,ease:BE,easeVarying:VE,end:yI,[Symbol.iterator]:bn[Symbol.iterator]};function bI(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var xI={time:null,delay:0,duration:250,ease:bI};function wI(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 _I(t){var e,n;t instanceof vn?(e=t._id,t=t._name):(e=N1(),(n=xI).time=Cc(),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])&&Ps(l,t,e,c,s,n||wI(l,e));return new vn(r,this._parents,t,e)}_i.prototype.interrupt=bE,_i.prototype.transition=_I;const kc=Math.PI,zc=2*kc,sr=1e-6,$I=zc-sr;function j1(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function PI(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return j1;const n=Bi(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 OI{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?j1:PI(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,h=s-e,u=a-n,f=h*h+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(f>sr)if(!(Math.abs(u*l-c*h)>sr)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let p=r-s,g=i-a,y=l*l+c*c,m=p*p+g*g,b=Math.sqrt(y),v=Math.sqrt(f),x=o*Math.tan((kc-Math.acos((y+f-m)/(2*b*v)))/2),w=x/v,_=x/b;Math.abs(w-1)>sr&&this._append`L${e+w*h},${n+w*u}`,this._append`A${o},${o},0,0,${+(u*p>h*g)},${this._x1=e+_*l},${this._y1=n+_*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,h=n+l,u=1^s,f=s?i-o:o-i;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>sr||Math.abs(this._y1-h)>sr)&&this._append`L${c},${h}`,r&&(f<0&&(f=f%zc+zc),f>$I?this._append`A${r},${r},0,1,${u},${e-a},${n-l}A${r},${r},0,1,${u},${this._x1=c},${this._y1=h}`:f>sr&&this._append`A${r},${r},0,${+(f>=kc)},${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 CI(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 MI(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return F1(this.cover(e,n),e,n,t)}function F1(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,h=t._y1,u,f,p,g,y,m,b,v;if(!o)return t._root=s,t;for(;o.length;)if((y=e>=(u=(a+c)/2))?a=u:c=u,(m=n>=(f=(l+h)/2))?l=f:h=f,i=o,!(o=o[b=m<<1|y]))return i[b]=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[b]=s:t._root=s,t;do i=i?i[b]=new Array(4):t._root=new Array(4),(y=e>=(u=(a+c)/2))?a=u:c=u,(m=n>=(f=(l+h)/2))?l=f:h=f;while((b=m<<1|y)===(v=(g>=f)<<1|p>=u));return i[v]=o,i[b]=s,t}function SI(t){var e,n,r=t.length,i,o,s=new Array(r),a=new Array(r),l=1/0,c=1/0,h=-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>h&&(h=i),o<c&&(c=o),o>u&&(u=o));if(l>h||c>u)return this;for(this.cover(l,c).cover(h,u),n=0;n<r;++n)F1(this,s[n],a[n],t[n]);return this}function EI(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 II(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function TI(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 Pe(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function AI(t,e,n){var r,i=this._x0,o=this._y0,s,a,l,c,h=this._x1,u=this._y1,f=[],p=this._root,g,y;for(p&&f.push(new Pe(p,i,o,h,u)),n==null?n=1/0:(i=t-n,o=e-n,h=t+n,u=e+n,n*=n);g=f.pop();)if(!(!(p=g.node)||(s=g.x0)>h||(a=g.y0)>u||(l=g.x1)<i||(c=g.y1)<o))if(p.length){var m=(s+l)/2,b=(a+c)/2;f.push(new Pe(p[3],m,b,l,c),new Pe(p[2],s,b,m,c),new Pe(p[1],m,a,l,b),new Pe(p[0],s,a,m,b)),(y=(e>=b)<<1|t>=m)&&(g=f[f.length-1],f[f.length-1]=f[f.length-1-y],f[f.length-1-y]=g)}else{var v=t-+this._x.call(null,p.data),x=e-+this._y.call(null,p.data),w=v*v+x*x;if(w<n){var _=Math.sqrt(n=w);i=t-_,o=e-_,h=t+_,u=e+_,r=p.data}}return r}function kI(t){if(isNaN(h=+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,h,u,f,p,g,y,m,b;if(!n)return this;if(n.length)for(;;){if((g=h>=(f=(s+l)/2))?s=f:l=f,(y=u>=(p=(a+c)/2))?a=p:c=p,e=n,!(n=n[m=y<<1|g]))return this;if(!n.length)break;(e[m+1&3]||e[m+2&3]||e[m+3&3])&&(r=e,b=m)}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[m]=o:delete e[m],(n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[b]=n:this._root=n),this):(this._root=o,this)}function zI(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}function LI(){return this._root}function RI(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function HI(t){var e=[],n,r=this._root,i,o,s,a,l;for(r&&e.push(new Pe(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,h=(s+l)/2;(i=r[3])&&e.push(new Pe(i,c,h,a,l)),(i=r[2])&&e.push(new Pe(i,o,h,c,l)),(i=r[1])&&e.push(new Pe(i,c,s,a,h)),(i=r[0])&&e.push(new Pe(i,o,s,c,h))}return this}function DI(t){var e=[],n=[],r;for(this._root&&e.push(new Pe(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,h=(s+l)/2,u=(a+c)/2;(o=i[0])&&e.push(new Pe(o,s,a,h,u)),(o=i[1])&&e.push(new Pe(o,h,a,l,u)),(o=i[2])&&e.push(new Pe(o,s,u,h,c)),(o=i[3])&&e.push(new Pe(o,h,u,l,c))}n.push(r)}for(;r=n.pop();)t(r.node,r.x0,r.y0,r.x1,r.y1);return this}function NI(t){return t[0]}function jI(t){return arguments.length?(this._x=t,this):this._x}function FI(t){return t[1]}function BI(t){return arguments.length?(this._y=t,this):this._y}function Lc(t,e,n){var r=new Rc(e==null?NI:e,n==null?FI:n,NaN,NaN,NaN,NaN);return t==null?r:r.addAll(t)}function Rc(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 B1(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Oe=Lc.prototype=Rc.prototype;Oe.copy=function(){var t=new Rc(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=B1(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]=B1(r));return t},Oe.add=MI,Oe.addAll=SI,Oe.cover=EI,Oe.data=II,Oe.extent=TI,Oe.find=AI,Oe.remove=kI,Oe.removeAll=zI,Oe.root=LI,Oe.size=RI,Oe.visit=HI,Oe.visitAfter=DI,Oe.x=jI,Oe.y=BI;function ar(t){return function(){return t}}function kn(t){return(t()-.5)*1e-6}function WI(t){return t.x+t.vx}function VI(t){return t.y+t.vy}function YI(t){var e,n,r,i=1,o=1;typeof t!="function"&&(t=ar(t==null?1:+t));function s(){for(var c,h=e.length,u,f,p,g,y,m,b=0;b<o;++b)for(u=Lc(e,WI,VI).visitAfter(a),c=0;c<h;++c)f=e[c],y=n[f.index],m=y*y,p=f.x+f.vx,g=f.y+f.vy,u.visit(v);function v(x,w,_,$,P){var O=x.data,T=x.r,I=y+T;if(O){if(O.index>f.index){var S=p-O.x-O.vx,H=g-O.y-O.vy,C=S*S+H*H;C<I*I&&(S===0&&(S=kn(r),C+=S*S),H===0&&(H=kn(r),C+=H*H),C=(I-(C=Math.sqrt(C)))/C*i,f.vx+=(S*=C)*(I=(T*=T)/(m+T)),f.vy+=(H*=C)*I,O.vx-=S*(I=1-I),O.vy-=H*I)}return}return w>p+I||$<p-I||_>g+I||P<g-I}}function a(c){if(c.data)return c.r=n[c.data.index];for(var h=c.r=0;h<4;++h)c[h]&&c[h].r>c.r&&(c.r=c[h].r)}function l(){if(e){var c,h=e.length,u;for(n=new Array(h),c=0;c<h;++c)u=e[c],n[u.index]=+t(u,c,e)}}return s.initialize=function(c,h){e=c,r=h,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:ar(+c),l(),s):t},s}function XI(t){return t.index}function W1(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function GI(t){var e=XI,n=u,r,i=ar(30),o,s,a,l,c,h=1;t==null&&(t=[]);function u(m){return 1/Math.min(a[m.source.index],a[m.target.index])}function f(m){for(var b=0,v=t.length;b<h;++b)for(var x=0,w,_,$,P,O,T,I;x<v;++x)w=t[x],_=w.source,$=w.target,P=$.x+$.vx-_.x-_.vx||kn(c),O=$.y+$.vy-_.y-_.vy||kn(c),T=Math.sqrt(P*P+O*O),T=(T-o[x])/T*m*r[x],P*=T,O*=T,$.vx-=P*(I=l[x]),$.vy-=O*I,_.vx+=P*(I=1-I),_.vy+=O*I}function p(){if(s){var m,b=s.length,v=t.length,x=new Map(s.map((_,$)=>[e(_,$,s),_])),w;for(m=0,a=new Array(b);m<v;++m)w=t[m],w.index=m,typeof w.source!="object"&&(w.source=W1(x,w.source)),typeof w.target!="object"&&(w.target=W1(x,w.target)),a[w.source.index]=(a[w.source.index]||0)+1,a[w.target.index]=(a[w.target.index]||0)+1;for(m=0,l=new Array(v);m<v;++m)w=t[m],l[m]=a[w.source.index]/(a[w.source.index]+a[w.target.index]);r=new Array(v),g(),o=new Array(v),y()}}function g(){if(s)for(var m=0,b=t.length;m<b;++m)r[m]=+n(t[m],m,t)}function y(){if(s)for(var m=0,b=t.length;m<b;++m)o[m]=+i(t[m],m,t)}return f.initialize=function(m,b){s=m,c=b,p()},f.links=function(m){return arguments.length?(t=m,p(),f):t},f.id=function(m){return arguments.length?(e=m,f):e},f.iterations=function(m){return arguments.length?(h=+m,f):h},f.strength=function(m){return arguments.length?(n=typeof m=="function"?m:ar(+m),g(),f):n},f.distance=function(m){return arguments.length?(i=typeof m=="function"?m:ar(+m),y(),f):i},f}const qI=1664525,UI=1013904223,V1=4294967296;function ZI(){let t=1;return()=>(t=(qI*t+UI)%V1)/V1}function KI(t){return t.x}function QI(t){return t.y}var JI=10,tT=Math.PI*(3-Math.sqrt(5));function eT(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=new Map,l=Mc(u),c=pc("tick","end"),h=ZI();t==null&&(t=[]);function u(){f(),c.call("tick",e),n<r&&(l.stop(),c.call("end",e))}function f(y){var m,b=t.length,v;y===void 0&&(y=1);for(var x=0;x<y;++x)for(n+=(o-n)*i,a.forEach(function(w){w(n)}),m=0;m<b;++m)v=t[m],v.fx==null?v.x+=v.vx*=s:(v.x=v.fx,v.vx=0),v.fy==null?v.y+=v.vy*=s:(v.y=v.fy,v.vy=0);return e}function p(){for(var y=0,m=t.length,b;y<m;++y){if(b=t[y],b.index=y,b.fx!=null&&(b.x=b.fx),b.fy!=null&&(b.y=b.fy),isNaN(b.x)||isNaN(b.y)){var v=JI*Math.sqrt(.5+y),x=y*tT;b.x=v*Math.cos(x),b.y=v*Math.sin(x)}(isNaN(b.vx)||isNaN(b.vy))&&(b.vx=b.vy=0)}}function g(y){return y.initialize&&y.initialize(t,h),y}return p(),e={tick:f,restart:function(){return l.restart(u),e},stop:function(){return l.stop(),e},nodes:function(y){return arguments.length?(t=y,p(),a.forEach(g),e):t},alpha:function(y){return arguments.length?(n=+y,e):n},alphaMin:function(y){return arguments.length?(r=+y,e):r},alphaDecay:function(y){return arguments.length?(i=+y,e):+i},alphaTarget:function(y){return arguments.length?(o=+y,e):o},velocityDecay:function(y){return arguments.length?(s=1-y,e):1-s},randomSource:function(y){return arguments.length?(h=y,a.forEach(g),e):h},force:function(y,m){return arguments.length>1?(m==null?a.delete(y):a.set(y,g(m)),e):a.get(y)},find:function(y,m,b){var v=0,x=t.length,w,_,$,P,O;for(b==null?b=1/0:b*=b,v=0;v<x;++v)P=t[v],w=y-P.x,_=m-P.y,$=w*w+_*_,$<b&&(O=P,b=$);return O},on:function(y,m){return arguments.length>1?(c.on(y,m),e):c.on(y)}}}function nT(){var t,e,n,r,i=ar(-30),o,s=1,a=1/0,l=.81;function c(p){var g,y=t.length,m=Lc(t,KI,QI).visitAfter(u);for(r=p,g=0;g<y;++g)e=t[g],m.visit(f)}function h(){if(t){var p,g=t.length,y;for(o=new Array(g),p=0;p<g;++p)y=t[p],o[y.index]=+i(y,p,t)}}function u(p){var g=0,y,m,b=0,v,x,w;if(p.length){for(v=x=w=0;w<4;++w)(y=p[w])&&(m=Math.abs(y.value))&&(g+=y.value,b+=m,v+=m*y.x,x+=m*y.y);p.x=v/b,p.y=x/b}else{y=p,y.x=y.data.x,y.y=y.data.y;do g+=o[y.data.index];while(y=y.next)}p.value=g}function f(p,g,y,m){if(!p.value)return!0;var b=p.x-e.x,v=p.y-e.y,x=m-g,w=b*b+v*v;if(x*x/l<w)return w<a&&(b===0&&(b=kn(n),w+=b*b),v===0&&(v=kn(n),w+=v*v),w<s&&(w=Math.sqrt(s*w)),e.vx+=b*p.value*r/w,e.vy+=v*p.value*r/w),!0;if(p.length||w>=a)return;(p.data!==e||p.next)&&(b===0&&(b=kn(n),w+=b*b),v===0&&(v=kn(n),w+=v*v),w<s&&(w=Math.sqrt(s*w)));do p.data!==e&&(x=o[p.data.index]*r/w,e.vx+=b*x,e.vy+=v*x);while(p=p.next)}return c.initialize=function(p,g){t=p,n=g,h()},c.strength=function(p){return arguments.length?(i=typeof p=="function"?p:ar(+p),h(),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 rT(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Os(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 zr(t){return t=Os(Math.abs(t)),t?t[1]:NaN}function iT(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 oT(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var sT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cs(t){if(!(e=sT.exec(t)))throw new Error("invalid format: "+t);var e;return new Hc({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]})}Cs.prototype=Hc.prototype;function Hc(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+""}Hc.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 aT(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 Y1;function lT(t,e){var n=Os(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Y1=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")+Os(t,Math.max(0,e+o-1))[0]}function X1(t,e){var n=Os(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 G1={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:rT,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)=>X1(t*100,e),r:X1,s:lT,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function q1(t){return t}var U1=Array.prototype.map,Z1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function cT(t){var e=t.grouping===void 0||t.thousands===void 0?q1:iT(U1.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?q1:oT(U1.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=Cs(u);var f=u.fill,p=u.align,g=u.sign,y=u.symbol,m=u.zero,b=u.width,v=u.comma,x=u.precision,w=u.trim,_=u.type;_==="n"?(v=!0,_="g"):G1[_]||(x===void 0&&(x=12),w=!0,_="g"),(m||f==="0"&&p==="=")&&(m=!0,f="0",p="=");var $=y==="$"?n:y==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",P=y==="$"?r:/[%p]/.test(_)?s:"",O=G1[_],T=/[defgprs%]/.test(_);x=x===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function I(S){var H=$,C=P,A,B,k;if(_==="c")C=O(S)+C,S="";else{S=+S;var D=S<0||1/S<0;if(S=isNaN(S)?l:O(Math.abs(S),x),w&&(S=aT(S)),D&&+S==0&&g!=="+"&&(D=!1),H=(D?g==="("?g:a:g==="-"||g==="("?"":g)+H,C=(_==="s"?Z1[8+Y1/3]:"")+C+(D&&g==="("?")":""),T){for(A=-1,B=S.length;++A<B;)if(k=S.charCodeAt(A),48>k||k>57){C=(k===46?i+S.slice(A+1):S.slice(A))+C,S=S.slice(0,A);break}}}v&&!m&&(S=e(S,1/0));var z=H.length+S.length+C.length,N=z<b?new Array(b-z+1).join(f):"";switch(v&&m&&(S=e(N+S,N.length?b-C.length:1/0),N=""),p){case"<":S=H+S+C+N;break;case"=":S=H+N+S+C;break;case"^":S=N.slice(0,z=N.length>>1)+H+S+C+N.slice(z);break;default:S=N+H+S+C;break}return o(S)}return I.toString=function(){return u+""},I}function h(u,f){var p=c((u=Cs(u),u.type="f",u)),g=Math.max(-8,Math.min(8,Math.floor(zr(f)/3)))*3,y=Math.pow(10,-g),m=Z1[8+g/3];return function(b){return p(y*b)+m}}return{format:c,formatPrefix:h}}var Ms,K1,Q1;hT({thousands:",",grouping:[3],currency:["$",""]});function hT(t){return Ms=cT(t),K1=Ms.format,Q1=Ms.formatPrefix,Ms}function dT(t){return Math.max(0,-zr(Math.abs(t)))}function uT(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zr(e)/3)))*3-zr(Math.abs(t)))}function fT(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,zr(e)-zr(t))+1}function pT(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 gT(){return this.eachAfter(pT)}function mT(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this}function yT(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 vT(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 bT(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r}function xT(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 wT(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function _T(t){for(var e=this,n=$T(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 $T(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 PT(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function OT(){return Array.from(this)}function CT(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function MT(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*ST(){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 Dc(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=TT)):e===void 0&&(e=IT);for(var n=new Ii(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 Ii(s[a])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(kT)}function ET(){return Dc(this).eachBefore(AT)}function IT(t){return t.children}function TT(t){return Array.isArray(t)?t[1]:null}function AT(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function kT(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Ii(t){this.data=t,this.depth=this.height=0,this.parent=null}Ii.prototype=Dc.prototype={constructor:Ii,count:gT,each:mT,eachAfter:vT,eachBefore:yT,find:bT,sum:xT,sort:wT,path:_T,ancestors:PT,descendants:OT,leaves:CT,links:MT,copy:ET,[Symbol.iterator]:ST};function zT(t,e){return t.parent===e.parent?1:2}function Nc(t){var e=t.children;return e?e[0]:t.t}function jc(t){var e=t.children;return e?e[e.length-1]:t.t}function LT(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 RT(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 HT(t,e,n){return t.a.parent===e.parent?t.a:n}function Ss(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}Ss.prototype=Object.create(Ii.prototype);function DT(t){for(var e=new Ss(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 Ss(o[s],s)),i.parent=n;return(e.parent=new Ss(null,0)).children=[e],e}function NT(){var t=zT,e=1,n=1,r=null;function i(c){var h=DT(c);if(h.eachAfter(o),h.parent.m=-h.z,h.eachBefore(s),r)c.eachBefore(l);else{var u=c,f=c,p=c;c.eachBefore(function(v){v.x<u.x&&(u=v),v.x>f.x&&(f=v),v.depth>p.depth&&(p=v)});var g=u===f?1:t(u,f)/2,y=g-u.x,m=e/(f.x+g+y),b=n/(p.depth||1);c.eachBefore(function(v){v.x=(v.x+y)*m,v.y=v.depth*b})}return c}function o(c){var h=c.children,u=c.parent.children,f=c.i?u[c.i-1]:null;if(h){RT(c);var p=(h[0].z+h[h.length-1].z)/2;f?(c.z=f.z+t(c._,f._),c.m=c.z-p):c.z=p}else f&&(c.z=f.z+t(c._,f._));c.parent.A=a(c,f,c.parent.A||u[0])}function s(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function a(c,h,u){if(h){for(var f=c,p=c,g=h,y=f.parent.children[0],m=f.m,b=p.m,v=g.m,x=y.m,w;g=jc(g),f=Nc(f),g&&f;)y=Nc(y),p=jc(p),p.a=c,w=g.z+v-f.z-m+t(g._,f._),w>0&&(LT(HT(g,c,u),c,w),m+=w,b+=w),v+=g.m,m+=f.m,x+=y.m,b+=p.m;g&&!jc(p)&&(p.t=g,p.m+=v-b),f&&!Nc(y)&&(y.t=f,y.m+=m-x,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 jT(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function FT(t){return function(){return t}}function BT(t){return+t}var J1=[0,1];function Lr(t){return t}function Fc(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:FT(isNaN(e)?NaN:.5)}function WT(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function VT(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=Fc(i,r),o=n(s,o)):(r=Fc(r,i),o=n(o,s)),function(a){return o(r(a))}}function YT(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]=Fc(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(a){var l=ZC(t,a,1,r)-1;return o[l](i[l](a))}}function XT(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function GT(){var t=J1,e=J1,n=Pc,r,i,o,s=Lr,a,l,c;function h(){var f=Math.min(t.length,e.length);return s!==Lr&&(s=WT(t[0],t[f-1])),a=f>2?YT:VT,l=c=null,u}function u(f){return f==null||isNaN(f=+f)?o:(l||(l=a(t.map(r),e,n)))(r(s(f)))}return u.invert=function(f){return s(i((c||(c=a(e,t.map(r),Ye)))(f)))},u.domain=function(f){return arguments.length?(t=Array.from(f,BT),h()):t.slice()},u.range=function(f){return arguments.length?(e=Array.from(f),h()):e.slice()},u.rangeRound=function(f){return e=Array.from(f),n=sE,h()},u.clamp=function(f){return arguments.length?(s=f?!0:Lr,h()):s!==Lr},u.interpolate=function(f){return arguments.length?(n=f,h()):n},u.unknown=function(f){return arguments.length?(o=f,u):o},function(f,p){return r=f,i=p,h()}}function qT(){return GT()(Lr,Lr)}function UT(t,e,n,r){var i=eM(t,e,n),o;switch(r=Cs(r==null?",f":r),r.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=uT(i,s))&&(r.precision=o),Q1(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=fT(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=dT(i))&&(r.precision=o-(r.type==="%")*2);break}}return K1(r)}function ZT(t){var e=t.domain;return t.ticks=function(n){var r=e();return tM(r[0],r[r.length-1],n==null?10:n)},t.tickFormat=function(n,r){var i=e();return UT(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,h=10;for(a<s&&(c=s,s=a,a=c,c=i,i=o,o=c);h-- >0;){if(c=fc(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 Ti(){var t=qT();return t.copy=function(){return XT(t,Ti())},jT.apply(t,arguments),ZT(t)}function ie(t){return function(){return t}}const tm=Math.abs,xe=Math.atan2,lr=Math.cos,KT=Math.max,Bc=Math.min,sn=Math.sin,Rr=Math.sqrt,Se=1e-12,Ai=Math.PI,Es=Ai/2,Is=2*Ai;function QT(t){return t>1?0:t<-1?Ai:Math.acos(t)}function em(t){return t>=1?Es:t<=-1?-Es:Math.asin(t)}function nm(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 OI(e)}function JT(t){return t.innerRadius}function tA(t){return t.outerRadius}function eA(t){return t.startAngle}function nA(t){return t.endAngle}function rA(t){return t&&t.padAngle}function iA(t,e,n,r,i,o,s,a){var l=n-t,c=r-e,h=s-i,u=a-o,f=u*l-h*c;if(!(f*f<Se))return f=(h*(e-o)-u*(t-i))/f,[t+f*l,e+f*c]}function Ts(t,e,n,r,i,o,s){var a=t-n,l=e-r,c=(s?o:-o)/Rr(a*a+l*l),h=c*l,u=-c*a,f=t+h,p=e+u,g=n+h,y=r+u,m=(f+g)/2,b=(p+y)/2,v=g-f,x=y-p,w=v*v+x*x,_=i-o,$=f*y-g*p,P=(x<0?-1:1)*Rr(KT(0,_*_*w-$*$)),O=($*x-v*P)/w,T=(-$*v-x*P)/w,I=($*x+v*P)/w,S=(-$*v+x*P)/w,H=O-m,C=T-b,A=I-m,B=S-b;return H*H+C*C>A*A+B*B&&(O=I,T=S),{cx:O,cy:T,x01:-h,y01:-u,x11:O*(i/_-1),y11:T*(i/_-1)}}function ki(){var t=JT,e=tA,n=ie(0),r=null,i=eA,o=nA,s=rA,a=null,l=nm(c);function c(){var h,u,f=+t.apply(this,arguments),p=+e.apply(this,arguments),g=i.apply(this,arguments)-Es,y=o.apply(this,arguments)-Es,m=tm(y-g),b=y>g;if(a||(a=h=l()),p<f&&(u=p,p=f,f=u),!(p>Se))a.moveTo(0,0);else if(m>Is-Se)a.moveTo(p*lr(g),p*sn(g)),a.arc(0,0,p,g,y,!b),f>Se&&(a.moveTo(f*lr(y),f*sn(y)),a.arc(0,0,f,y,g,b));else{var v=g,x=y,w=g,_=y,$=m,P=m,O=s.apply(this,arguments)/2,T=O>Se&&(r?+r.apply(this,arguments):Rr(f*f+p*p)),I=Bc(tm(p-f)/2,+n.apply(this,arguments)),S=I,H=I,C,A;if(T>Se){var B=em(T/f*sn(O)),k=em(T/p*sn(O));($-=B*2)>Se?(B*=b?1:-1,w+=B,_-=B):($=0,w=_=(g+y)/2),(P-=k*2)>Se?(k*=b?1:-1,v+=k,x-=k):(P=0,v=x=(g+y)/2)}var D=p*lr(v),z=p*sn(v),N=f*lr(_),j=f*sn(_);if(I>Se){var X=p*lr(x),L=p*sn(x),M=f*lr(w),R=f*sn(w),W;if(m<Ai)if(W=iA(D,z,M,R,X,L,N,j)){var U=D-W[0],V=z-W[1],G=X-W[0],Z=L-W[1],K=1/sn(QT((U*G+V*Z)/(Rr(U*U+V*V)*Rr(G*G+Z*Z)))/2),nt=Rr(W[0]*W[0]+W[1]*W[1]);S=Bc(I,(f-nt)/(K-1)),H=Bc(I,(p-nt)/(K+1))}else S=H=0}P>Se?H>Se?(C=Ts(M,R,D,z,p,H,b),A=Ts(X,L,N,j,p,H,b),a.moveTo(C.cx+C.x01,C.cy+C.y01),H<I?a.arc(C.cx,C.cy,H,xe(C.y01,C.x01),xe(A.y01,A.x01),!b):(a.arc(C.cx,C.cy,H,xe(C.y01,C.x01),xe(C.y11,C.x11),!b),a.arc(0,0,p,xe(C.cy+C.y11,C.cx+C.x11),xe(A.cy+A.y11,A.cx+A.x11),!b),a.arc(A.cx,A.cy,H,xe(A.y11,A.x11),xe(A.y01,A.x01),!b))):(a.moveTo(D,z),a.arc(0,0,p,v,x,!b)):a.moveTo(D,z),!(f>Se)||!($>Se)?a.lineTo(N,j):S>Se?(C=Ts(N,j,X,L,f,-S,b),A=Ts(D,z,M,R,f,-S,b),a.lineTo(C.cx+C.x01,C.cy+C.y01),S<I?a.arc(C.cx,C.cy,S,xe(C.y01,C.x01),xe(A.y01,A.x01),!b):(a.arc(C.cx,C.cy,S,xe(C.y01,C.x01),xe(C.y11,C.x11),!b),a.arc(0,0,f,xe(C.cy+C.y11,C.cx+C.x11),xe(A.cy+A.y11,A.cx+A.x11),b),a.arc(A.cx,A.cy,S,xe(A.y11,A.x11),xe(A.y01,A.x01),!b))):a.arc(0,0,f,_,w,b)}if(a.closePath(),h)return a=null,h+""||null}return c.centroid=function(){var h=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,u=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Ai/2;return[lr(u)*h,sn(u)*h]},c.innerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:ie(+h),c):t},c.outerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:ie(+h),c):e},c.cornerRadius=function(h){return arguments.length?(n=typeof h=="function"?h:ie(+h),c):n},c.padRadius=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:ie(+h),c):r},c.startAngle=function(h){return arguments.length?(i=typeof h=="function"?h:ie(+h),c):i},c.endAngle=function(h){return arguments.length?(o=typeof h=="function"?h:ie(+h),c):o},c.padAngle=function(h){return arguments.length?(s=typeof h=="function"?h:ie(+h),c):s},c.context=function(h){return arguments.length?(a=h==null?null:h,c):a},c}function rm(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function im(t){this._context=t}im.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 om(t){return new im(t)}function oA(t){return t[0]}function sA(t){return t[1]}function aA(t,e){var n=ie(!0),r=null,i=om,o=null,s=nm(a);t=typeof t=="function"?t:t===void 0?oA:ie(t),e=typeof e=="function"?e:e===void 0?sA:ie(e);function a(l){var c,h=(l=rm(l)).length,u,f=!1,p;for(r==null&&(o=i(p=s())),c=0;c<=h;++c)!(c<h&&n(u=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&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:ie(+l),a):t},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:ie(+l),a):e},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:ie(!!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 lA(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function cA(t){return t}function hA(){var t=cA,e=lA,n=null,r=ie(0),i=ie(Is),o=ie(0);function s(a){var l,c=(a=rm(a)).length,h,u,f=0,p=new Array(c),g=new Array(c),y=+r.apply(this,arguments),m=Math.min(Is,Math.max(-Is,i.apply(this,arguments)-y)),b,v=Math.min(Math.abs(m)/c,o.apply(this,arguments)),x=v*(m<0?-1:1),w;for(l=0;l<c;++l)(w=g[p[l]=l]=+t(a[l],l,a))>0&&(f+=w);for(e!=null?p.sort(function(_,$){return e(g[_],g[$])}):n!=null&&p.sort(function(_,$){return n(a[_],a[$])}),l=0,u=f?(m-c*x)/f:0;l<c;++l,y=b)h=p[l],w=g[h],b=y+(w>0?w*u:0)+x,g[h]={data:a[h],index:l,value:w,startAngle:y,endAngle:b,padAngle:v};return g}return s.value=function(a){return arguments.length?(t=typeof a=="function"?a:ie(+a),s):t},s.sortValues=function(a){return arguments.length?(e=a,n=null,s):e},s.sort=function(a){return arguments.length?(n=a,e=null,s):n},s.startAngle=function(a){return arguments.length?(r=typeof a=="function"?a:ie(+a),s):r},s.endAngle=function(a){return arguments.length?(i=typeof a=="function"?a:ie(+a),s):i},s.padAngle=function(a){return arguments.length?(o=typeof a=="function"?a:ie(+a),s):o},s}function zi(t,e,n){this.k=t,this.x=e,this.y=n}zi.prototype={constructor:zi,scale:function(t){return t===1?this:new zi(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new zi(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+")"}},zi.prototype;var dA=Object.defineProperty,uA=Object.defineProperties,fA=Object.getOwnPropertyDescriptors,sm=Object.getOwnPropertySymbols,pA=Object.prototype.hasOwnProperty,gA=Object.prototype.propertyIsEnumerable,am=(t,e,n)=>e in t?dA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mA=(t,e)=>{for(var n in e||(e={}))pA.call(e,n)&&am(t,n,e[n]);if(sm)for(var n of sm(e))gA.call(e,n)&&am(t,n,e[n]);return t},yA=(t,e)=>uA(t,fA(e));const lm=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:h="normal",themeColors:u,valueFormatter:f=B=>`${B}%`},p]=Wt(t,["width","height","iconSize","gap","progressHeight","borderRadius"]),g=e.value,y=g!=null?g:0,m=Math.max(...n.items.map(B=>{var k;return(k=B.value)!=null?k:0}),100),b=i-2*a,x=Ti().domain([0,m]).range([0,b])(y),w=`${u.colorPrimary}-progress`,_=`${u.colorPrimaryBg}-progress-bg`,$=Q(d($t,{indexes:r})),P=a,O=h==="flipped"?i-a-s:a,T=P,I=h==="flipped"?a:s+2*a,S=i-s-3*a,H=T,C=o-a-l,A=g!==void 0;return E(Y,yA(mA({},p),{children:[E(zt,{children:[E("linearGradient",{id:w,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[d("stop",{offset:"0%",stopColor:u.colorPrimary}),d("stop",{offset:"100%",stopColor:ot.mix(u.colorPrimary,"#fff",20).toHexString()})]}),E("linearGradient",{id:_,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[d("stop",{offset:"0%",stopColor:u.colorPrimaryBg}),d("stop",{offset:"100%",stopColor:u.colorBg})]})]}),d(St,{x:0,y:0,width:i,height:o,fill:u.colorBgElevated,stroke:u.colorPrimaryBg,strokeWidth:1,rx:c,ry:c,"data-element-type":"shape"}),d(ve,{indexes:r,x:O,y:T,size:s,fill:u.colorPrimary}),d($t,{indexes:r,x:I,y:H,width:S,alignHorizontal:h==="flipped"?"right":"left",alignVertical:"top",fontSize:16,fontWeight:"medium",fill:u.colorText,children:e.label}),A&&d(gi,{indexes:r,x:I,y:H+$.height,width:S,alignHorizontal:h==="flipped"?"right":"left",alignVertical:"top",lineHeight:1,fontSize:24,fontWeight:"bold",fill:u.colorPrimary,value:y,formatter:f}),d(Xt,{indexes:r,x:I,y:H+$.height+(A?27:4),width:S,alignHorizontal:h==="flipped"?"right":"left",alignVertical:"top",fontSize:11,fill:u.colorTextSecondary,lineNumber:A?2:3,wordWrap:!0,children:e.desc}),d(St,{x:a,y:C,width:b,height:l,fill:`url(#${_})`,rx:l/2,ry:l/2,"data-element-type":"shape"}),d(St,{x:a,y:C,width:x,height:l,fill:`url(#${w})`,rx:l/2,ry:l/2,"data-element-type":"shape"})]}))};Vt("progress-card",{component:lm,composites:["icon","label","value","desc"]});var vA=Object.defineProperty,bA=Object.defineProperties,xA=Object.getOwnPropertyDescriptors,cm=Object.getOwnPropertySymbols,wA=Object.prototype.hasOwnProperty,_A=Object.prototype.propertyIsEnumerable,hm=(t,e,n)=>e in t?vA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$A=(t,e)=>{for(var n in e||(e={}))wA.call(e,n)&&hm(t,n,e[n]);if(cm)for(var n of cm(e))_A.call(e,n)&&hm(t,n,e[n]);return t},PA=(t,e)=>bA(t,xA(e));const dm=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},h]=Wt(t,["width","height","iconSize","circleRadius"]),u=4*s/(3*Math.PI),f=2,p=4,g=28,y=20,m=y+20,b=y,v=8,x=35,w=40,_=30,$=String(n[0]+1).padStart(2,"0"),P=a==="flipped",O=l==="flipped",T=()=>P?{diagonalStartX:r-p,diagonalStartY:O?i-x:x,diagonalEndX:r-w,diagonalEndY:O?i-p:p,topLineStartX:r-w,topLineEndX:u,topLineY:O?i-p:p}:{diagonalStartX:p,diagonalStartY:O?i-x:x,diagonalEndX:w,diagonalEndY:O?i-p:p,topLineStartX:w,topLineEndX:r-u,topLineY:O?i-p:p},I=()=>{if(P){const D=s+10,z=r-D-w;return{valueX:r-_,contentX:D,contentWidth:z,circleX:0,circleY:O?0:i,iconX:u-o/2}}else return{valueX:0,contentX:w,contentWidth:r-w-s-10,circleX:r,circleY:O?0:i,iconX:r-u-o/2}},S=T(),H=I(),C=O?u-o/2:i-u-o/2,A=Q(d($t,{indexes:n,width:H.contentWidth,children:e.label})),B=b+A.height+v,k=()=>{const{circleX:D,circleY:z}=H;return P?O?`M ${D} ${z} L ${D} ${z+s} A ${s} ${s} 0 0 0 ${D+s} ${z} Z`:`M ${D} ${z} L ${D} ${z-s} A ${s} ${s} 0 0 1 ${D+s} ${z} Z`:O?`M ${D} ${z} L ${D} ${z+s} A ${s} ${s} 0 0 1 ${D-s} ${z} Z`:`M ${D} ${z} L ${D} ${z-s} A ${s} ${s} 0 0 0 ${D-s} ${z} Z`};return E(Y,PA($A({},h),{width:r,height:i,children:[E(ne,{children:[d(ht,{d:`M ${S.diagonalStartX} ${S.diagonalStartY} L ${S.diagonalEndX} ${S.diagonalEndY}`,stroke:c.colorPrimary,strokeWidth:f,fill:"none"}),d(ht,{d:`M ${S.topLineStartX} ${S.topLineY} L ${S.topLineEndX} ${S.topLineY}`,stroke:c.colorPrimary,strokeWidth:f,fill:"none"}),d(Lt,{x:S.diagonalStartX-p,y:S.diagonalStartY-p,width:p*2,height:p*2,fill:c.colorPrimary}),d(Lt,{x:S.topLineEndX-p,y:S.topLineY-p,width:p*2,height:p*2,fill:c.colorPrimary})]}),E(Y,{children:[d(Et,{x:H.valueX,y:m,fontSize:g,fontWeight:"bold",fill:c.colorPrimary,children:$}),d(ht,{d:k(),fill:c.colorPrimary,"data-element-type":"shape"}),e.icon&&d(ve,{indexes:n,x:H.iconX,y:C,size:o,fill:c.colorWhite}),e.label&&d($t,{indexes:n,x:H.contentX,y:b,width:H.contentWidth,fontWeight:"bold",fill:c.colorText,alignHorizontal:P?"right":"left",children:e.label}),e.desc&&d(Xt,{indexes:n,x:H.contentX,y:B,width:H.contentWidth,fill:c.colorTextSecondary,alignHorizontal:P?"right":"left",children:e.desc})]})]}))};Vt("quarter-circular",{component:dm,composites:["icon","label","desc"]});var OA=Object.defineProperty,CA=Object.defineProperties,MA=Object.getOwnPropertyDescriptors,um=Object.getOwnPropertySymbols,SA=Object.prototype.hasOwnProperty,EA=Object.prototype.propertyIsEnumerable,fm=(t,e,n)=>e in t?OA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,IA=(t,e)=>{for(var n in e||(e={}))SA.call(e,n)&&fm(t,n,e[n]);if(um)for(var n of um(e))EA.call(e,n)&&fm(t,n,e[n]);return t},TA=(t,e)=>CA(t,MA(e));const pm=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:h},u]=Wt(t,["width","height","iconSize","padding","borderRadius"]),f=r-s*2,p=s,g=s,y=l==="flipped"?r-s-o:l==="center"?(r-o)/2:p,m=g,b=m+o+8,v=Q(d($t,{indexes:n,width:f,children:e.label})),x=l==="flipped"?r-s-f:l==="center"?s:p,w=b+v.height+4,_=x,$=a;let P="";return l==="center"&&c==="middle"?P=`
|
|
31
31
|
M ${$} 0
|
|
32
32
|
L ${r-$} 0
|
|
33
33
|
Q ${r} 0 ${r} ${$}
|
|
@@ -79,27 +79,32 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
|
|
|
79
79
|
L 0 ${$}
|
|
80
80
|
Q 0 0 ${$} 0
|
|
81
81
|
Z
|
|
82
|
-
`,E(X,MT(CT({},u),{children:[d(at,{d:P,x:0,y:0,width:r,height:i,fill:h.colorPrimary,"data-element-type":"shape"}),d(ge,{indexes:n,x:y,y:m,size:o,fill:h.colorBg}),d(vt,{indexes:n,x:b,y:x,width:f,fontSize:14,fontWeight:"bold",fill:h.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:e.label}),e.desc&&d(Ft,{indexes:n,x:w,y:_,width:f,fontSize:11,wordWrap:!0,fill:h.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:e.desc})]}))};Nt("quarter-simple-card",{component:V1,composites:["icon","label","desc"]});var ST=Object.defineProperty,ET=Object.defineProperties,IT=Object.getOwnPropertyDescriptors,W1=Object.getOwnPropertySymbols,TT=Object.prototype.hasOwnProperty,AT=Object.prototype.propertyIsEnumerable,Y1=(t,e,n)=>e in t?ST(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,kT=(t,e)=>{for(var n in e||(e={}))TT.call(e,n)&&Y1(t,n,e[n]);if(W1)for(var n of W1(e))AT.call(e,n)&&Y1(t,n,e[n]);return t},zT=(t,e)=>ET(t,IT(e));const X1=t=>{const[{datum:e,indexes:n,width:r=240,height:i=140,iconSize:o=28,gap:s=12,ribbonHeight:a=32,themeColors:l},c]=Dt(t,["width","height","iconSize","gap","ribbonHeight"]),h=`${l.colorPrimary}-ribbon`;return E(X,zT(kT({},c),{children:[d(Mt,{children:E("linearGradient",{id:h,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[d("stop",{offset:"0%",stopColor:l.colorPrimary}),d("stop",{offset:"100%",stopColor:it(l.colorPrimary).darken(15).toHexString()})]})}),E(qt,{children:[d(xt,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorPrimaryBg,strokeWidth:1,rx:8,ry:8}),d(xt,{x:0,y:0,width:r,height:a,fill:`url(#${h})`,rx:8,ry:8}),d(xt,{x:0,y:8,width:r,height:a-8,fill:`url(#${h})`}),d(at,{x:r-20,y:a,width:20,height:8,fill:it(l.colorPrimary).darken(25).toHexString(),d:"M0,0 L20,0 L15,8 L5,8 Z"})]}),d(ge,{indexes:n,x:s,y:a+s,size:o,fill:l.colorPrimary}),d(vt,{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}),d(Ft,{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}),d(ge,{indexes:n,x:r-s-8,y:s/2,size:16,fill:l.colorWhite})]}))};Nt("ribbon-card",{component:X1,composites:["icon","label","desc"]});var LT=Object.defineProperty,HT=Object.defineProperties,RT=Object.getOwnPropertyDescriptors,G1=Object.getOwnPropertySymbols,DT=Object.prototype.hasOwnProperty,NT=Object.prototype.propertyIsEnumerable,q1=(t,e,n)=>e in t?LT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,jT=(t,e)=>{for(var n in e||(e={}))DT.call(e,n)&&q1(t,n,e[n]);if(G1)for(var n of G1(e))NT.call(e,n)&&q1(t,n,e[n]);return t},BT=(t,e)=>HT(t,RT(e));const U1=t=>{const[{indexes:e,datum:n,themeColors:r,width:i=300,height:o=40,padding:s=4,positionH:a="normal"},l]=Dt(t,["width","height","borderRadius","padding"]),c=o/2,h=c,u=s,f=i-c*2,p=o-s*2;return E(X,BT(jT({},l),{children:[d(xt,{"data-element-type":"shape",width:i,height:o,rx:c,ry:c,fill:r.colorPrimaryBg,stroke:r.colorPrimary,strokeWidth:1,opacity:.8}),d(vt,{indexes:e,x:h,y:u,width:f,height:p,alignHorizontal:a==="flipped"?"right":a==="center"?"center":"left",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:r.colorText,children:n.label})]}))};Nt("rounded-rect-node",{component:U1,composites:["label"]});var FT=Object.defineProperty,VT=Object.defineProperties,WT=Object.getOwnPropertyDescriptors,Z1=Object.getOwnPropertySymbols,YT=Object.prototype.hasOwnProperty,XT=Object.prototype.propertyIsEnumerable,K1=(t,e,n)=>e in t?FT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,GT=(t,e)=>{for(var n in e||(e={}))YT.call(e,n)&&K1(t,n,e[n]);if(Z1)for(var n of Z1(e))XT.call(e,n)&&K1(t,n,e[n]);return t},qT=(t,e)=>VT(t,WT(e));const Q1=t=>{const[{indexes:e,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=Dt(t,["width"]),a=o!=="flipped",l=a?"bottom":"top",c=d(vt,{indexes:e,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=d(Ft,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=30,f=10,p=tt(c),g=tt(h),y=p.height+g.height,m=y+f+u+f+y;return d(X,qT(GT({width:r,height:m},s),{children:E(ot,{flexDirection:"column",alignItems:"center",children:[a?E(It,{children:[h,c,d(Yt,{height:f})]}):d(It,{children:d(Yt,{height:y+f})}),E(ni,{horizontal:"center",vertical:"middle",children:[d(UT,{width:r,height:u,fill:i.colorPrimary}),d($t,{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?d(It,{children:d(Yt,{height:y+f})}):E(It,{children:[d(Yt,{height:f}),c,h]})]})}))},UT=t=>{const{x:e=0,y:n=0,width:r=100,height:i=40,fill:o="#FF356A",size:s=10}=t;return d(We,{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"})};Nt("simple-horizontal-arrow",{component:Q1,composites:["label","desc","time"]});var ZT=Object.defineProperty,KT=Object.defineProperties,QT=Object.getOwnPropertyDescriptors,J1=Object.getOwnPropertySymbols,JT=Object.prototype.hasOwnProperty,tA=Object.prototype.propertyIsEnumerable,tm=(t,e,n)=>e in t?ZT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,eA=(t,e)=>{for(var n in e||(e={}))JT.call(e,n)&&tm(t,n,e[n]);if(J1)for(var n of J1(e))tA.call(e,n)&&tm(t,n,e[n]);return t},nA=(t,e)=>KT(t,QT(e));const em=t=>{const[{indexes:e,datum:n,width:r=180,illusSize:i=r,gap:o=8,themeColors:s,usePaletteColor:a=!1},l]=Dt(t,["width","illusSize","gap","usePaletteColor"]),{label:c,desc:h}=n,u=a?s.colorPrimary:s.colorText,f=d(vt,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"middle",fill:u,children:c}),p=tt(f);return E(ot,nA(eA({},l),{width:r,height:i+o+p.height+o+48,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o,children:[d(B0,{indexes:e,width:i,height:i}),f,d(Ft,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"top",fill:s.colorTextSecondary,lineNumber:3,children:h})]}))};Nt("simple-illus",{component:em,composites:["illus","label","desc"]});var rA=Object.defineProperty,iA=Object.defineProperties,oA=Object.getOwnPropertyDescriptors,nm=Object.getOwnPropertySymbols,sA=Object.prototype.hasOwnProperty,aA=Object.prototype.propertyIsEnumerable,rm=(t,e,n)=>e in t?rA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Cc=(t,e)=>{for(var n in e||(e={}))sA.call(e,n)&&rm(t,n,e[n]);if(nm)for(var n of nm(e))aA.call(e,n)&&rm(t,n,e[n]);return t},Mc=(t,e)=>iA(t,oA(e));const im=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:h="normal",usePaletteColor:u=!1,themeColors:f},p]=Dt(t,["width","height","gap","showIcon","iconSize","iconType","usePaletteColor"]),{label:g,desc:y,icon:m}=n,v=(k=>k==="normal"?"left":k==="flipped"?"right":"center")(c),b=u?f.colorPrimary:f.colorText,_=14,w=1.4,P=tt(d(vt,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"middle",fill:b,children:g})),O=s?l==="circle"?d(Yn,{indexes:e,size:a,fill:f.colorPrimary,colorBg:f.colorBg}):d(ge,{indexes:e,size:a,fill:f.colorTextSecondary}):null;if(!s||!m){const k=i?Math.max(0,i-P.height-o):void 0,D=k?k<=60?1:Math.floor(k/(w*_)):2,z=i?h==="middle"?(i-P.height-(k||0)-o)/2:h==="flipped"?i-P.height-(k||0)-o:0:0;return E(X,Mc(Cc({},p),{children:[d(vt,{indexes:e,width:r,y:z,alignHorizontal:v,alignVertical:"middle",fill:b,children:g}),d(Ft,{indexes:e,width:r,height:k,y:z+P.height+o,alignHorizontal:v,alignVertical:A(),lineNumber:D,fill:f.colorTextSecondary,children:y})]}))}if(c==="center"){const k=s&&m?a:0,D=i?Math.max(0,i-P.height-k-o*2):void 0,z=D?D<=60?1:Math.floor(D/(w*_)):2,N=P.height+(D||0)+o,B=i?h==="middle"?(i-N-k-o)/2:h==="flipped"?i-N-k-o:0:0;return d(ot,Mc(Cc({},p),{flexDirection:"column",gap:o,alignItems:"center",children:h==="flipped"?E(It,{children:[E(X,{children:[d(vt,{indexes:e,width:r,y:B,alignHorizontal:"center",alignVertical:"middle",fill:b,children:g}),d(Ft,{indexes:e,width:r,height:D,y:B+P.height+o,alignHorizontal:"center",alignVertical:"bottom",lineNumber:z,fill:f.colorTextSecondary,children:y})]}),O]}):E(It,{children:[O,E(X,{children:[d(vt,{indexes:e,width:r,y:B,alignHorizontal:"center",alignVertical:"middle",fill:b,children:g}),d(Ft,{indexes:e,width:r,height:D,y:B+P.height+o,alignHorizontal:"center",alignVertical:"top",lineNumber:z,fill:f.colorTextSecondary,children:y})]})]})}))}const T=tt(O),I=Math.max(r-T.width-o,0),S=i?Math.max(0,i-P.height-o):void 0,R=S?S<=60?1:Math.floor(S/(w*_)):2,M=i?h==="middle"?(i-P.height-(S||0)-o)/2:h==="flipped"?i-P.height-(S||0)-o:0:0;return d(ot,Mc(Cc({},p),{flexDirection:"row",gap:o,alignItems:W(h),children:c==="flipped"?E(It,{children:[E(X,{children:[d(vt,{indexes:e,width:I,y:M,alignHorizontal:"right",alignVertical:"middle",fill:b,children:g}),d(Ft,{indexes:e,width:I,height:S,y:M+P.height+o,alignHorizontal:"right",alignVertical:A(),lineNumber:R,fill:f.colorTextSecondary,children:y})]}),O]}):E(It,{children:[O,E(X,{children:[d(vt,{indexes:e,width:I,y:M,alignHorizontal:"left",alignVertical:"middle",fill:b,children:g}),d(Ft,{indexes:e,width:I,height:S,y:M+P.height+o,alignHorizontal:"left",alignVertical:A(),lineNumber:R,fill:f.colorTextSecondary,children:y})]})]})}));function A(k,D){return"top"}function W(k){return k==="normal"?"flex-start":k==="flipped"?"flex-end":"center"}};Nt("simple",{component:im,composites:["icon","label","desc"]});var lA=Object.defineProperty,cA=Object.defineProperties,hA=Object.getOwnPropertyDescriptors,om=Object.getOwnPropertySymbols,dA=Object.prototype.hasOwnProperty,uA=Object.prototype.propertyIsEnumerable,sm=(t,e,n)=>e in t?lA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fA=(t,e)=>{for(var n in e||(e={}))dA.call(e,n)&&sm(t,n,e[n]);if(om)for(var n of om(e))uA.call(e,n)&&sm(t,n,e[n]);return t},pA=(t,e)=>cA(t,hA(e));const am=t=>{const[{indexes:e,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=Dt(t,["height"]),a=o==="normal"?"right":"left",l=d(vt,{indexes:e,width:120,fill:i.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=d(Ft,{indexes:e,width:120,fill:i.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),h=o!=="flipped",u=15,f=30,p=120,g=p+u+f+u+p;return d(X,pA(fA({width:g,height:r},s),{children:E(ot,{flexDirection:"row",alignItems:"center",children:[h?E(It,{children:[E(ot,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),d(Yt,{width:u})]}):d(It,{children:d(Yt,{width:p+u})}),E(ni,{horizontal:"center",vertical:"middle",children:[d(gA,{width:f,height:r,fill:i.colorPrimary}),d($t,{width:f,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),h?d(It,{children:d(Yt,{width:p+u})}):E(It,{children:[d(Yt,{width:u}),E(ot,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},gA=t=>{const{x:e=0,y:n=0,width:r=30,height:i=100,fill:o="#FF356A",size:s=10}=t;return d(We,{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"})};Nt("simple-vertical-arrow",{component:am,composites:["label","desc"]});var mA=Object.defineProperty,yA=Object.defineProperties,vA=Object.getOwnPropertyDescriptors,lm=Object.getOwnPropertySymbols,xA=Object.prototype.hasOwnProperty,bA=Object.prototype.propertyIsEnumerable,cm=(t,e,n)=>e in t?mA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_A=(t,e)=>{for(var n in e||(e={}))xA.call(e,n)&&cm(t,n,e[n]);if(lm)for(var n of lm(e))bA.call(e,n)&&cm(t,n,e[n]);return t},wA=(t,e)=>yA(t,vA(e));const Sc=80,Ec=3,hm=t=>{const[{datum:e,indexes:n,width:r=200,gap:i=4,positionH:o="center",themeColors:s},a]=Dt(t,["width","height","gap"]),l=tt(d(vt,{indexes:n,fontSize:18,fontWeight:"bold",width:r,children:e.label})),c=e.desc?tt(d(Ft,{indexes:n,width:r,wordWrap:!0,children:e.desc})):{height:0},h=l.height+i+Ec+(e.desc?i*2+c.height:0),u=0,f=0,p=o==="center"?"center":o==="flipped"?"right":"left",g=o==="center"?(r-Sc)/2:o==="flipped"?r-Sc:0,y=f+l.height+i,m=0,x=y+Ec+i*2;return E(X,wA(_A({width:r,height:h},a),{children:[e.label&&d(vt,{indexes:n,x:u,y:f,width:r,alignHorizontal:p,fill:s.colorPrimary,fontSize:18,fontWeight:"bold",children:e.label}),e.label&&d(xt,{x:g,y,width:Sc,height:Ec,fill:s.colorPrimary,"data-element-type":"shape"}),e.desc&&d(Ft,{indexes:n,width:r,x:m,y:x,alignHorizontal:p,wordWrap:!0,fill:s.colorText,children:e.desc})]}))};Nt("underline-text",{component:hm,composites:["label","desc"]});var $A=Object.defineProperty,PA=Object.defineProperties,OA=Object.getOwnPropertyDescriptors,dm=Object.getOwnPropertySymbols,CA=Object.prototype.hasOwnProperty,MA=Object.prototype.propertyIsEnumerable,um=(t,e,n)=>e in t?$A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,SA=(t,e)=>{for(var n in e||(e={}))CA.call(e,n)&&um(t,n,e[n]);if(dm)for(var n of dm(e))MA.call(e,n)&&um(t,n,e[n]);return t},EA=(t,e)=>PA(t,OA(e));const fm=t=>{const[{indexes:e,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=Dt(t,["height"]),l=o!=="flipped"?"right":"left",c=d(vt,{indexes:e,width:120,fill:i.colorText,alignHorizontal:l,alignVertical:"middle",fontSize:14,children:n.label}),h=d(Ft,{indexes:e,width:120,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:"top",children:n.desc}),u=d(Yn,{indexes:e,fill:i.colorPrimary,colorBg:i.colorWhite}),f=d(TA,{width:30,height:8,fill:i.colorPrimary,positionH:o}),p=o!=="flipped",g=5,y=25,m=30,x=tt(c),v=tt(u),b=tt(f),_=x.width+g+b.width-v.width-y,w=Math.max(x.width+g+b.width,y+v.width)*2+m;return d(X,EA(SA({width:w,height:r},s),{children:E(ot,{flexDirection:"row",alignItems:"center",children:[p?E(It,{children:[E(ot,{flexDirection:"column",alignItems:"flex-end",children:[c,h]}),d(Yt,{width:g}),f]}):E(It,{children:[d(Yt,{width:_}),u,d(Yt,{width:y})]}),E(ni,{horizontal:"center",vertical:"middle",children:[d(IA,{width:m,height:r,fill:i.colorPrimary}),d($t,{width:m,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),p?E(It,{children:[d(Yt,{width:y}),u]}):E(It,{children:[f,d(Yt,{width:g}),E(ot,{flexDirection:"column",alignItems:"flex-start",children:[c,h]})]})]})}))},IA=t=>{const{x:e=0,y:n=0,width:r=30,height:i=100,fill:o="#FF356A",size:s=10}=t;return d(We,{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"})},TA=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,h=a;return E(X,{x:e,y:n,width:r,height:i,children:[d(St,{width:i,height:i,fill:o,x:s==="normal"?0:l-a,"data-element-type":"shape"}),d(at,{d:s==="normal"?`M${a},${h} L${a+l},${h}`:`M0,${h} L${l-a},${h}`,strokeWidth:c,stroke:o,"data-element-type":"shape"})]})};Nt("vertical-icon-arrow",{component:fm,composites:["icon","label","desc"]});const Ic=new Map;function Ot(t,e){Ic.set(t,e)}function pm(t){return Ic.get(t)}function AA(){return Array.from(Ic.keys())}const gm=t=>{var e,n,r;const{Title:i,Item:o,data:s,width:a,gap:l,barGap:c,barHeight:h=28,barAreaWidth:u,labelGap:f=16,padding:p=24,showValue:g=!0,options:y,valueFormatter:m=re=>re.toString()}=t,x=(e=u!=null?u:a)!=null?e:480,{title:v,desc:b,items:_=[],xTitle:w,yTitle:$}=s,P=i?d(i,{title:v,desc:b}):null;if(_.length===0)return d(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:P});const[O,T,I,S]=Vn(p),R=(n=_[0])!=null?n:{label:"",value:0},M=tt(d(o,{indexes:[0],datum:R,data:s})),A=M.width||140,W=M.height||h,k=Math.max(h,W),D=Math.max(12,k*.35),z=(r=c!=null?c:l)!=null?r:D,N=_.map(re=>{var te;return(te=re.value)!=null?te:0}),B=Math.max(...N,0),Y=Math.min(...N,0),L=Y<0?Y*1.1:0;let C=B>0?B*1.1:0;C===L&&(C=L+1);const H=yi().domain([L,C]).range([0,x]),F=Math.min(Math.max(H(0),0),x),Q=Math.max(2,x*.02),V=_.length*(k+z)-z,q=$?24:0,G=20,U=w?24:0,Z=O+q,J=S+A+f,st=g?80:0,nt=Math.max(8,k*.2),lt=J+x+st+T,ct=Z+V+nt+G+U+I,yt=me(y.themeConfig),dt=yt.colorText||"#666",gt=oe(y),mt=[],jt=[],Rt=[],Et=[],wt=[],Lt=[],Jt=[],ve=Z+V+nt,Ae=re=>Number.isInteger(re)?re.toString():re.toFixed(1);_.forEach((re,te)=>{var le;const fe=[te],Ut=(le=re.value)!=null?le:0,ze=Z+te*(k+z),ht=ze+(k-h)/2,Zt=Ut>=0?J+F:J+H(Ut),ee=Ut>=0?H(Ut)-F:F-H(Ut),kt=ee===0?Q:ee,xe=_t(y,[te])||yt.colorPrimary;if(mt.push(d(xt,{x:Zt,y:ht,width:kt,height:h,fill:xe,rx:6,ry:6,"data-element-type":"shape"})),g){const ce=Ut>=0?Zt+kt+8:Zt-8;jt.push(d($t,{x:ce,y:ht+h/2,alignHorizontal:Ut>=0?"left":"right",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:xe,children:m(Ut,re)}))}Rt.push(d(o,{indexes:fe,datum:re,data:s,x:S,y:ze+(k-W)/2,width:A,height:W,positionV:"middle"}))});const ue=Math.max(3,Math.min(7,Math.floor(x/80)));return H.ticks(ue).forEach(re=>{const te=J+H(re);Lt.push(d(at,{d:`M${te} ${Z} L${te} ${Z+V}`,stroke:dt,strokeOpacity:.08,"data-element-type":"shape"})),wt.push(d(at,{d:`M${te-.5} ${ve} L${te-.5} ${ve+6}`,stroke:dt,"data-element-type":"shape"})),wt.push(d($t,{x:te,y:ve+14,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fill:dt,children:Ae(re)}))}),Et.push(d(at,{d:`M${J} ${ve} L${J+x} ${ve}`,stroke:dt,"data-element-type":"shape"})),L<0&&Et.push(d(xt,{x:J+F-.5,y:Z,width:1,height:V,fill:gt,"data-element-type":"shape"})),$&&Jt.push(d($t,{x:S+A/2,y:O+q/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:dt,children:$})),w&&Jt.push(d($t,{x:J+x/2,y:ve+G+U/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:dt,children:w})),E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[P,E(X,{width:lt,height:ct,children:[d(X,{children:Lt}),d(X,{children:mt}),d(X,{children:jt}),d(X,{children:Jt}),d(X,{children:[...Et,...wt]}),d(Pt,{children:Rt})]})]})};Ot("chart-bar",{component:gm,composites:["title","item","xTitle","yTitle"]});const mm=t=>{const{Title:e,Item:n,data:r,columnGap:i=60,columnWidth:o=50,padding:s=20,showValue:a=!0,options:l,valueFormatter:c=N=>N.toString()}=t,{title:h,desc:u,items:f=[]}=r,p=e?d(e,{title:h,desc:u}):null;if(f.length===0)return d(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:p});const g=me(l.themeConfig),m=[...f.map(N=>{var B;return(B=N.value)!=null?B:0}),0].sort((N,B)=>N-B),x=m[0]<0,v=f.length*o+(f.length-1)*i,b=300,[_,w,$,P]=Vn(s),O=a?24:0,T=10,I=x&&a?O+T:T,S=v+P+w,R=b+_+$+I,M=yi().domain([m[0],m[m.length-1]]).range([b,0]),A=M(0),W=[],k=[],D=[],z=[];return f.forEach((N,B)=>{var Y;const L=[B],C=(Y=N.value)!=null?Y:0,H=P+B*(o+i),F=C>=0?M(C):A,Q=Math.abs(M(C)-A),V=_t(l,[B])||g.colorPrimary,q=`${V}-column-positive-${B}`,G=`${V}-column-negative-${B}`;z.push(E("linearGradient",{id:C>=0?q:G,x1:"0%",y1:C>=0?"0%":"100%",x2:"0%",y2:C>=0?"100%":"0%",children:[d("stop",{offset:"0%",stopColor:V}),d("stop",{offset:"100%",stopColor:it.mix(V,"#fff",40).toHexString()})]})),W.push(d(xt,{x:H,y:_+F,width:o,height:Q,fill:`url(#${C>=0?q:G})`,rx:8,ry:8,"data-element-type":"shape"})),a&&k.push(d($t,{x:H+o/2,y:C>=0?_+F-10:_+F+Q+20,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:C>=0?"bottom":"top",fill:V,children:c(C,N)}));const U=o+i,Z=_+b+I;D.push(d(n,{indexes:L,datum:N,data:r,x:H+o/2-U/2,y:Z,width:U,positionH:"center"}))}),E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,E(X,{width:S,height:R,children:[d(Mt,{children:z}),d(X,{children:W}),d(X,{children:k}),d(Pt,{children:D})]})]})};Ot("chart-column",{component:mm,composites:["title","item"]});var kA=Object.defineProperty,zA=Object.defineProperties,LA=Object.getOwnPropertyDescriptors,ym=Object.getOwnPropertySymbols,HA=Object.prototype.hasOwnProperty,RA=Object.prototype.propertyIsEnumerable,vm=(t,e,n)=>e in t?kA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xm=(t,e)=>{for(var n in e||(e={}))HA.call(e,n)&&vm(t,n,e[n]);if(ym)for(var n of ym(e))RA.call(e,n)&&vm(t,n,e[n]);return t},DA=(t,e)=>zA(t,LA(e));const bm=t=>{const{Title:e,Item:n,data:r,width:i,height:o=260,gap:s=10,padding:a=24,showValue:l=!0,options:c,valueFormatter:h=ht=>ht.toString()}=t,{title:u,desc:f,items:p=[],xTitle:g,yTitle:y}=r,m=e?d(e,{title:u,desc:f}):null;if(p.length===0)return d(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:m});const[x,v,b,_]=Vn(a),w={indexes:[0],datum:p[0],data:r,positionH:"center",positionV:"normal"},$=tt(d(n,xm({},w))),P=$.width,O=$.height,T=Math.max(28,O+14),I=44,S=y?26:0,R=g?22:0,M=P+s,A=p.length>0?(p.length-1)*M+P:0,W=i!==void 0?i:Math.max(200,A||320),k=p.length>1?Math.max(M,(W-P)/(p.length-1)):0,D=p.length>0?Math.max(P,(p.length-1)*k+P):0,z=_+I+S,N=x+S,B=z+D+v,Y=N+o+T+R+b,L=p.map(ht=>{var Zt;return(Zt=ht.value)!=null?Zt:0}),C=Math.max(...L,0),H=Math.min(...L,0),F=Math.max(Math.abs(C),Math.abs(H))*.1,Q=H<0?H-F:0;let V=C>0?C+F:1;V===Q&&(V=Q+1);const q=yi().domain([Q,V]).nice().range([o,0]),G=Math.max(0,Math.min(o,q(0))),U=V<=0?0:Q>=0?o:G,Z=oe(c),J=me(c.themeConfig),st=J.colorText||"#666",nt=[],lt=[],ct=[],yt=[],dt=[],gt=[],mt=[];q.ticks(6).forEach(ht=>{const Zt=N+q(ht);nt.push(d(at,{d:`M ${z} ${Zt} L ${z+D} ${Zt}`,width:D,height:1,stroke:st,strokeWidth:1,"data-element-type":"shape",opacity:.08})),mt.push(d($t,{x:z-8,y:Zt,alignHorizontal:"right",alignVertical:"middle",fontSize:12,fill:st,children:Number.isInteger(ht)?ht.toString():ht.toFixed(1)}))});const Rt=[],Et=[],wt=[],Lt=ht=>{if(ht.length===0)return"";if(ht.length===1){const ee=ht[0];return`M ${ee.x} ${ee.y}`}const Zt=[];Zt.push(`M ${ht[0].x} ${ht[0].y}`);for(let ee=0;ee<ht.length-1;ee++){const kt=ht[ee-1]||ht[ee],xe=ht[ee],ce=ht[ee+1],Fs=ht[ee+2]||ce,Vs=xe.x+(ce.x-kt.x)/6,UR=xe.y+(ce.y-kt.y)/6,ZR=ce.x-(Fs.x-xe.x)/6,KR=ce.y-(Fs.y-xe.y)/6;Zt.push(`C ${Vs} ${UR} ${ZR} ${KR} ${ce.x} ${ce.y}`)}return Zt.join(" ")};p.forEach((ht,Zt)=>{var ee;const kt=z+Zt*k+P/2,xe=N+q((ee=ht.value)!=null?ee:0);Et.push({x:kt,y:xe,datum:ht}),Rt.push(d(n,DA(xm({},w),{indexes:[Zt],datum:ht,x:kt-P/2,y:N+o+4})));const ce=_t(c,[Zt])||J.colorPrimary;wt.push({x:kt,color:ce})});const Jt=wt.length>0?Math.min(...wt.map(ht=>ht.x)):z,ve=wt.length>0?Math.max(...wt.map(ht=>ht.x)):z+D,Ae=Math.max(1,ve-Jt),ue=wt.map(ht=>d("stop",{offset:`${(ht.x-Jt)/Ae*100}%`,stopColor:ht.color})),En=wt.map(ht=>d("stop",{offset:`${(ht.x-Jt)/Ae*100}%`,stopColor:ht.color,stopOpacity:"0.18"}));if(wt.length>0){const ht=wt[wt.length-1].color;ue.push(d("stop",{offset:"100%",stopColor:ht})),En.push(d("stop",{offset:"100%",stopColor:ht,stopOpacity:"0.04"}))}const re=`chart-line-${hu([D,o,st,Z,wt.map(ht=>`${ht.x.toFixed(2)}-${ht.color}`).join()].join(":"))}`,te=`${re}-stroke`,le=`${re}-area`,fe=Lt(Et);ct.push(d(at,{d:fe,width:D,height:o,stroke:`url(#${te})`,strokeWidth:3,fill:"none","data-element-type":"shape"}));const Ut=fe.includes("C")?fe.slice(fe.indexOf("C")):"",ze=[`M ${Et[0].x} ${N+U}`,`L ${Et[0].x} ${Et[0].y}`,Ut,`L ${Et[Et.length-1].x} ${N+U}`,"Z"].join(" ");return ct.push(d(at,{d:ze,width:D,height:o,fill:`url(#${le})`,stroke:"none","data-element-type":"shape"})),Et.forEach((ht,Zt)=>{var ee;const kt=_t(c,[Zt])||J.colorPrimary;yt.push(d(St,{x:ht.x-6,y:ht.y-6,width:12,height:12,fill:kt,"data-element-type":"shape"})),l&&dt.push(d($t,{x:ht.x,y:ht.y-12,alignHorizontal:"center",alignVertical:"bottom",fontSize:12,fontWeight:"bold",fill:kt,children:h((ee=ht.datum.value)!=null?ee:0,ht.datum)}))}),lt.push(d(at,{d:`M ${z} ${N+U} L ${z+D} ${N+U}`,width:D,height:1,stroke:st,strokeWidth:1,"data-element-type":"shape"})),lt.push(d(at,{d:`M ${z} ${N} L ${z} ${N+o}`,width:1,height:o,stroke:st,strokeWidth:1,"data-element-type":"shape"})),g&>.push(d($t,{x:z+D/2,y:N+o+T+R/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:st,children:g})),y&>.push(d($t,{x:_+S/2,y:N+o/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:st,children:y})),E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,E(X,{width:B,height:Y,children:[E(Mt,{children:[d("linearGradient",{id:te,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:ue}),E("linearGradient",{id:le,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[En,d("stop",{offset:"100%",stopColor:Z,stopOpacity:"0.04"})]})]}),d(X,{children:nt}),d(X,{children:[...lt,...mt]}),d(X,{children:ct}),d(X,{children:yt}),d(X,{children:dt}),d(X,{children:gt}),d(Pt,{children:Rt})]})]})};Ot("chart-line",{component:bm,composites:["title","item","xTitle","yTitle"]});const _m=t=>{var e;const{Title:n,Item:r,data:i,radius:o=140,innerRadius:s=0,padding:a=30,showPercentage:l=!0,options:c}=t,{title:h,desc:u,items:f=[]}=i,p=n?d(n,{title:h,desc:u}):null,g=tt(d(K,{indexes:[0]})),y=(e=f[0])!=null?e:{label:"",value:0},m=tt(d(r,{indexes:[0],datum:y,data:i,positionH:"center",positionV:"middle"})),x=m.width||140,v=m.height||32,b=Math.max(o,60),_=1.35,w=8,$=b*_+w+x,P=b,O=a+$,T=a+P,I=O*2,S=T*2;if(f.length===0)return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,d(X,{width:I,height:S,children:d(bt,{children:d(K,{indexes:[0],x:O-g.width/2,y:T-g.height/2})})})]});const R=f.reduce((q,G)=>{var U;return q+Math.max((U=G.value)!=null?U:0,0)},0),M=oe(c),A=me(c.themeConfig),k=sT().value(q=>{var G;return Math.max((G=q.value)!=null?G:0,0)}).sort(null).startAngle(0).endAngle(Math.PI*2)(f),D=xi().innerRadius(s).outerRadius(b).cornerRadius(2),z=xi().innerRadius(b).outerRadius(b),N=xi().innerRadius(b*1.15).outerRadius(b*1.15),B=s+(b-s)*.5,Y=xi().innerRadius(B).outerRadius(B),L=xi().innerRadius(b*.85).outerRadius(b*.85),C=[],H=[],F=[],Q=[],V=[];return k.forEach(q=>{const G=q.data,U=q.index,Z=_t(c,[U])||A.colorPrimary||M,J=D(q)||"";C.push(d(at,{d:J,fill:Z,stroke:A.colorBg,strokeWidth:1,"data-element-type":"shape",width:b*2,height:b*2}));const nt=q.startAngle+(q.endAngle-q.startAngle)/2<Math.PI,lt=z.centroid(q),ct=N.centroid(q),dt=[b*_*(nt?1:-1),ct[1]];F.push(d(at,{d:`M${O+lt[0]} ${T+lt[1]} L${O+ct[0]} ${T+ct[1]} L${O+dt[0]} ${T+dt[1]}`,stroke:M,strokeOpacity:.45,strokeWidth:2,fill:"none","data-element-type":"shape"}));const gt=O+dt[0]+(nt?w:-w-x),mt=T+dt[1]-v/2;if(Q.push(d(r,{indexes:[U],datum:G,data:i,x:gt,y:mt,width:x,height:v,positionH:nt?"normal":"flipped",positionV:"middle",themeColors:me({colorPrimary:Z},c)})),l&&R>0){const Rt=Y.centroid(q),Et=Math.max(q.value,0),wt=(Et*100/R).toFixed(1),Lt=50,Jt=20;H.push(d($t,{x:O+Rt[0]-Lt/2,y:T+Rt[1]-Jt/2,width:Lt,height:Jt,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fontWeight:"bold",fill:"#ffffff","data-value":Et,"data-indexes":[U],"data-element-type":Ct.ItemValue,children:`${wt}%`}))}const jt=L.centroid(q);V.push(d(Ht,{indexes:[U],x:O+jt[0]-g.width/2,y:T+jt[1]-g.height/2}))}),k.forEach((q,G)=>{const U=(G+1)%k.length,Z=q.endAngle,J=k[U].startAngle+(U===0?Math.PI*2:0),st=(Z+J)/2,nt=b*1,lt=Math.sin(st)*nt,ct=-Math.cos(st)*nt;V.push(d(K,{indexes:[G+1],x:O+lt-g.width/2,y:T+ct-g.height/2}))}),E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[p,E(X,{width:I,height:S,children:[d(X,{x:O,y:T,children:C}),d(X,{children:F}),d(X,{children:H}),d(Pt,{children:Q}),d(bt,{children:V})]})]})};Ot("chart-pie",{component:_m,composites:["title","item"]});const wm=new Map,Tc=(t,e)=>{wm.set(t,e)},NA=t=>{var e;return t&&(e=wm.get(t))!=null?e:null};var jA=Object.defineProperty,BA=Object.defineProperties,FA=Object.getOwnPropertyDescriptors,$m=Object.getOwnPropertySymbols,VA=Object.prototype.hasOwnProperty,WA=Object.prototype.propertyIsEnumerable,Pm=(t,e,n)=>e in t?jA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Om=(t,e)=>{for(var n in e||(e={}))VA.call(e,n)&&Pm(t,n,e[n]);if($m)for(var n of $m(e))WA.call(e,n)&&Pm(t,n,e[n]);return t},Cm=(t,e)=>BA(t,FA(e));Tc("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 E(X,{x:e,y:n,width:s,height:a,children:[E(qt,{children:[d("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"}),d("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}),d("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})]}),d($t,Cm(Om({x:40,y:15},l),{children:"Pros"})),d($t,Cm(Om({x:70,y:85},l),{children:"Cons"}))]})});var YA=Object.defineProperty,XA=Object.defineProperties,GA=Object.getOwnPropertyDescriptors,Mm=Object.getOwnPropertySymbols,qA=Object.prototype.hasOwnProperty,UA=Object.prototype.propertyIsEnumerable,Sm=(t,e,n)=>e in t?YA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Em=(t,e)=>{for(var n in e||(e={}))qA.call(e,n)&&Sm(t,n,e[n]);if(Mm)for(var n of Mm(e))UA.call(e,n)&&Sm(t,n,e[n]);return t},Im=(t,e)=>XA(t,GA(e));Tc("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 E(X,{x:e,y:n,width:s,height:a,children:[E(qt,{children:[d("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}),d("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}),d("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"}),d("path",{d:"M36.1034 88.9252H28.9655V93.785H36.1034V101.85H41.4828V93.785H48.6207V88.8735H41.4828V81.1701H36.1034V88.9252Z",fill:"#404040"}),d("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}),d("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}),d("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"}),d("path",{d:"M192.414 205.905V210.816H212.069V205.905H192.414Z",fill:"#404040"})]}),d($t,Im(Em({x:153,y:77},l),{children:"PROS"})),d($t,Im(Em({x:2,y:193},l),{children:"CONS"}))]})}),Tc("vs",t=>{const{x:e,y:n,colorPrimary:r,colorBg:i}=t,o=100,s=100,a=it(r).lighten(20).toString();return E(X,{x:e,y:n,width:o,height:s,children:[E(Mt,{children:[d("filter",{id:"vs-divider-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:d("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"})}),d(Wl,{})]}),d(St,{x:0,y:0,width:o,height:s,fill:a,filter:"url(#vs-divider-glow-filter)",opacity:.6}),d(St,{x:0,y:0,width:o,height:s,fill:r,"data-element-type":"shape"}),d("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 Tm=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:h,desc:u,items:f=[]}=r,p=e?d(e,{title:h,desc:u}):null;if(f.length===0)return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,d(X,{children:d(bt,{children:d(K,{indexes:[0],x:0,y:0})})})]});const g=f[0]||{children:[]},y=f[1]||{children:[]},m=g.children||[],x=y.children||[],v=me(c.themeConfig),b=tt(d(n,{indexes:[0,0],data:r,datum:m[0]||{}})),_=tt(d(K,{indexes:[0]})),w=NA(l),$=w?tt(d(w,{x:0,y:0,colorPrimary:v.colorPrimary,colorBg:v.colorBg,colorPositive:v.colorPrimary,colorNegative:v.colorPrimary})):{width:0,height:0},P=[],O=[],T=[],I=Math.max(m.length,x.length),S=I>0?I*(b.height+i)-i:0,R=5,M=I>0?i/2+_.height/2:_.height/2,A=_.width+R,W=A+b.width+o,k=W+$.width+o,D=a?"flipped":"normal",z=a?"normal":s?"flipped":"normal";if(m.forEach((N,B)=>{const Y=M+B*(b.height+i),L=[0,B];P.push(d(n,{indexes:L,datum:N,data:r,x:A,y:Y,positionH:D,positionV:"middle"})),O.push(d(Ht,{indexes:L,x:A-_.width-R,y:Y+(b.height-_.height)/2})),B<m.length-1&&O.push(d(K,{indexes:[0,B+1],x:A+(b.width-_.width)/2,y:Y+b.height+i/2-_.height/2}))}),m.length>0){O.push(d(K,{indexes:[0,0],x:A+(b.width-_.width)/2,y:M-i/2-_.height/2}));const N=M+(m.length-1)*(b.height+i);O.push(d(K,{indexes:[0,m.length],x:A+(b.width-_.width)/2,y:N+b.height+i/2-_.height/2}))}else f.length>=1&&O.push(d(K,{indexes:[0,0],x:A+(b.width-_.width)/2,y:M-_.height/2}));if(x.forEach((N,B)=>{const Y=M+B*(b.height+i),L=[1,B];P.push(d(n,{indexes:L,datum:N,data:r,x:k,y:Y,positionH:z,positionV:"middle"})),O.push(d(Ht,{indexes:L,x:k+b.width+R,y:Y+(b.height-_.height)/2})),B<x.length-1&&O.push(d(K,{indexes:[1,B+1],x:k+(b.width-_.width)/2,y:Y+b.height+i/2-_.height/2}))}),x.length>0){O.push(d(K,{indexes:[1,0],x:k+(b.width-_.width)/2,y:M-i/2-_.height/2}));const N=M+(x.length-1)*(b.height+i);O.push(d(K,{indexes:[1,x.length],x:k+(b.width-_.width)/2,y:N+b.height+i/2-_.height/2}))}else f.length>=2&&O.push(d(K,{indexes:[1,0],x:k+(b.width-_.width)/2,y:M-_.height/2}));return f.length<2&&O.push(d(K,{indexes:[1],x:k+(b.width-_.width)/2,y:M+(S-_.height)/2})),w&&T.push(d(w,{x:W,y:M+(S-$.height)/2,colorPrimary:v.colorPrimary,colorBg:v.colorBg,colorPositive:_t(c,[0])||v.colorPrimary,colorNegative:_t(c,[1])||v.colorPrimary})),E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,E(X,{children:[d(X,{children:T}),d(Pt,{children:P}),d(bt,{children:O})]})]})};Ot("compare-binary-horizontal",{component:Tm,composites:["title","item"]});var ZA=Object.defineProperty,Am=Object.getOwnPropertySymbols,KA=Object.prototype.hasOwnProperty,QA=Object.prototype.propertyIsEnumerable,km=(t,e,n)=>e in t?ZA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zm=(t,e)=>{for(var n in e||(e={}))KA.call(e,n)&&km(t,n,e[n]);if(Am)for(var n of Am(e))QA.call(e,n)&&km(t,n,e[n]);return t};const JA={none:5,"dot-line":100,"arc-dot":20,"split-line":5},Lm=t=>{var e,n;const{Title:r,Items:i,data:o,gap:s=20,groupGap:a=0,decoration:l="none",surround:c=!0,flipRoot:h=!1,flipLeaf:u=!1,options:f}=t,[p,g]=i,{title:y,desc:m,items:x=[]}=o,v=r?d(r,{title:y,desc:m}):null,b=d(p,{indexes:[0],data:o,datum:o.items[0],themeColors:{}}),_=d(g,{indexes:[0,0],data:o,datum:((n=(e=x[0])==null?void 0:e.children)==null?void 0:n[0])||x[2]}),w=tt(b),$=tt(_),P=[],O=[],[T,I]=x,S=(T==null?void 0:T.children)||[],R=(I==null?void 0:I.children)||[],M=Math.max(w.height,S.length*($.height+s)-s,R.length*($.height+s)-s),A=JA[l]||0,W=$.width+A,k=W+w.width+a,D=(M-w.height)/2;T&&P.push(d(p,{indexes:[0],x:W,y:D,data:o,datum:T,positionH:h?"normal":"flipped"})),I&&P.push(d(p,{indexes:[1],x:k,y:D,data:o,datum:I,positionH:h?"flipped":"normal"}));const z=(N,B,Y)=>{if(l==="none")return;const[L,C]=B,H=_t(f,Y),F={x:L,y:C,width:$.width,height:$.height,side:N,color:H||"#ccc",colorBg:f.themeConfig.colorBg||"#fff"};l==="split-line"?O.push(d(tk,zm({},F))):l==="dot-line"&&O.push(d(ek,zm({},F)))};if(c){const B=(2*w.width+a+$.width)/2+A,Y=W+w.width+a/2,L=D+w.height/2;S.forEach((C,H)=>{const F=S.length*($.height+s)-s,V=(M-F)/2+H*($.height+s),G=V+$.height/2-L,U=Math.max(0,B*B-G*G),J=Y-Math.sqrt(U)-$.width/2;P.push(d(g,{indexes:[0,H],datum:C,data:o,x:J,y:V,positionH:u?"flipped":"normal"})),z("left",[J,V],[0,H])}),R.forEach((C,H)=>{const F=R.length*($.height+s)-s,V=(M-F)/2+H*($.height+s),G=V+$.height/2-L,U=Math.max(0,B*B-G*G),J=Y+Math.sqrt(U)-$.width/2;P.push(d(g,{indexes:[1,H],datum:C,data:o,x:J,y:V,positionH:u?"normal":"flipped"})),z("right",[J,V],[1,H])})}else S.forEach((N,B)=>{const Y=S.length*($.height+s)-s,C=(M-Y)/2+B*($.height+s),H=[0,B],F=0;P.push(d(g,{indexes:H,datum:N,data:o,x:F,y:C,positionH:u?"flipped":"normal"})),z("left",[F,C],H)}),R.forEach((N,B)=>{const Y=R.length*($.height+s)-s,C=(M-Y)/2+B*($.height+s),H=[1,B],F=k+w.width+A;P.push(d(g,{indexes:H,datum:N,data:o,x:F,y:C,positionH:u?"normal":"flipped"})),z("right",[F,C],H)});return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,E(X,{children:[d(Pt,{children:P}),d(X,{width:0,height:0,children:O})]})]})},tk=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 E(It,{children:[d(Mt,{children:d(Yl,{id:c,startColor:o,stopColor:s,direction:a==="left"?"left-right":"right-left"})}),d(xt,{x:e,y:l,width:r,height:1,fill:`url(#${c})`})]})},ek=t=>{const{x:e,y:n,side:r,width:i,height:o,color:s,colorBg:a}=t,l=6,c=l/3,h=l*2,u=c*2,f=5,p=r==="left"?e+i+l+f:e-l-f,g=n+o/2,y=p-c,m=g-c,x=80,v=r==="left"?x:-x,b=`dot-line-linear-gradient-${r}`;return E(X,{children:[d(Mt,{children:d(Yl,{id:b,startColor:s,stopColor:a,direction:r==="left"?"left-right":"right-left"})}),E(qt,{children:[d(St,{x:p-l,y:g-l,width:h,height:h,fill:"none",strokeWidth:1,stroke:s}),d(St,{x:y,y:m,width:u,height:u,fill:s})]}),d(xt,{x:r==="left"?p:p+v,y:g-.5,width:x,height:1,fill:`url(#${b})`})]})};Ot("compare-hierarchy-left-right",{component:Lm,composites:["title","item"]});const Hm=t=>{var e,n;const{Title:r,Items:i,data:o,gap:s=0,itemGap:a=20,columnWidth:l=280,itemPadding:c=5,showColumnBackground:h=!0,columnBackgroundAlpha:u=.08,options:f}=t,[p,g]=i,{title:y,desc:m,items:x=[]}=o,v=r?d(r,{title:y,desc:m}):null,b=Pp(f),_=[],w=[],$=l-c*2,P=tt(d(p,{indexes:[0],data:o,datum:x[0],width:l})),O=tt(d(g,{indexes:[0,0],data:o,datum:((n=(e=x[0])==null?void 0:e.children)==null?void 0:n[0])||{},width:$})),T=tt(d(K,{indexes:[0]})),I=Math.max(...x.map(R=>{var M;return((M=R.children)==null?void 0:M.length)||0}),0),S=P.height+a+I*(O.height+a);if(x.forEach((R,M)=>{const{children:A=[]}=R,W=M*(l+s),k=W,D=0;if(h){const Y=`${b[M%b.length]}${Math.round(u*255).toString(16).padStart(2,"0")}`;_.push(d(xt,{x:W,y:D,width:l,height:S,fill:Y,rx:0,ry:0,"data-element-type":"shape"}))}_.push(d(p,{indexes:[M],datum:R,data:o,x:k,y:D,width:l})),w.push(d(Ht,{indexes:[M],x:k+P.width-T.width-10,y:D+10})),M===0&&w.push(d(K,{indexes:[M],x:k+P.width/2-T.width/2,y:D-T.height-5}));const z=D+P.height+a;A.forEach((B,Y)=>{const L=z+Y*(O.height+a),C=k+c,H=[M,Y];_.push(d(g,{indexes:H,datum:B,data:o,x:C,y:L,width:$})),w.push(d(Ht,{indexes:H,x:C+O.width-T.width-10,y:L+(O.height-T.height)/2})),Y<A.length-1&&w.push(d(K,{indexes:[M,Y+1],x:C+O.width/2-T.width/2,y:L+O.height-T.height/2}))});const N=k+c;if(A.length>0){const B=z+A.length*(O.height+a);w.push(d(K,{indexes:[M,A.length],x:N+O.width/2-T.width/2,y:B-O.height/2-T.height/2}))}else w.push(d(K,{indexes:[M,0],x:N+O.width/2-T.width/2,y:z-a/2-T.height/2}))}),x.length>0){const R=x.length*(l+s);w.push(d(K,{indexes:[x.length],x:R-s/2-T.width/2,y:-T.height-5}))}return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,E(X,{children:[d(Pt,{children:_}),d(bt,{children:w})]})]})};Ot("compare-hierarchy-row",{component:Hm,composites:["title","item"]});const Ac=Object.assign,nk={getId:t=>t.id||t.name,getPreH:t=>t.preH||0,getPreV:t=>t.preV||0,getHGap:t=>t.hgap||18,getVGap:t=>t.vgap||18,getChildren:t=>t.children,getHeight:t=>t.height||36,getWidth(t){const e=t.label||" ";return t.width||18*e.split("").length}};class gs{constructor(e,n){if(this.x=0,this.y=0,this.depth=0,this.children=[],this.hgap=0,this.vgap=0,e instanceof gs||"x"in e&&"y"in e&&"children"in e){const o=e;return this.data=o.data,this.id=o.id,this.x=o.x,this.y=o.y,this.width=o.width,this.height=o.height,this.depth=o.depth,this.children=o.children,this.parent=o.parent,this.hgap=o.hgap,this.vgap=o.vgap,this.preH=o.preH,void(this.preV=o.preV)}this.data=e;const r=n.getHGap(e),i=n.getVGap(e);this.preH=n.getPreH(e),this.preV=n.getPreV(e),this.width=n.getWidth(e),this.height=n.getHeight(e),this.width+=this.preH,this.height+=this.preV,this.id=n.getId(e),this.addGap(r,i)}isRoot(){return this.depth===0}isLeaf(){return this.children.length===0}addGap(e,n){this.hgap+=e,this.vgap+=n,this.width+=2*e,this.height+=2*n}eachNode(e){let n,r=[this];for(;n=r.shift();)e(n),r=n.children.concat(r)}DFTraverse(e){this.eachNode(e)}BFTraverse(e){let n,r=[this];for(;n=r.shift();)e(n),r=r.concat(n.children)}getBoundingBox(){const e={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(n=>{e.left=Math.min(e.left,n.x),e.top=Math.min(e.top,n.y),e.width=Math.max(e.width,n.x+n.width),e.height=Math.max(e.height,n.y+n.height)}),e}translate(e=0,n=0){this.eachNode(r=>{r.x+=e,r.y+=n,r.x+=r.preH,r.y+=r.preV})}right2left(){const e=this.getBoundingBox();this.eachNode(n=>{n.x=n.x-2*(n.x-e.left)-n.width}),this.translate(e.width,0)}bottom2top(){const e=this.getBoundingBox();this.eachNode(n=>{n.y=n.y-2*(n.y-e.top)-n.height}),this.translate(0,e.height)}}function kc(t,e={},n){e=Ac({},nk,e);const r=new gs(t,e),i=[r];let o;if(!n&&!t.collapsed){for(;o=i.shift();)if(!o.data.collapsed){const s=e.getChildren(o.data),a=s?s.length:0;if(o.children=new Array(a),s&&a)for(let l=0;l<a;l++){const c=new gs(s[l],e);o.children[l]=c,i.push(c),c.parent=o,c.depth=o.depth+1}}}return r}class rk{constructor(e,n={}){this.options=n,this.rootNode=kc(e,n)}execute(){throw new Error("please override this method")}}function ik(t,e){const n=kc(t.data,e,!0),r=kc(t.data,e,!0),i=t.children.length,o=Math.round(i/2),s=e.getSide||function(a,l){return l<o?"right":"left"};for(let a=0;a<i;a++){const l=t.children[a];s(l,a)==="right"?r.children.push(l):n.children.push(l)}return n.eachNode(a=>{a.isRoot()||(a.side="left")}),r.eachNode(a=>{a.isRoot()||(a.side="right")}),{left:n,right:r}}const On=["LR","RL","TB","BT","H","V"],ok=["LR","RL","H"],sk=On[0];function ak(t,e,n){const r=e.direction||sk;if(e.isHorizontal=(o=>ok.indexOf(o)>-1)(r),On.indexOf(r)===-1)throw new TypeError(`Invalid direction: ${r}`);if(r===On[0])n(t,e);else if(r===On[1])n(t,e),t.right2left();else if(r===On[2])n(t,e);else if(r===On[3])n(t,e),t.bottom2top();else if(r===On[4]||r===On[5]){const{left:o,right:s}=ik(t,e);n(o,e),n(s,e),e.isHorizontal?o.right2left():o.bottom2top(),s.translate(o.x-s.x,o.y-s.y),t.x=o.x,t.y=s.y;const a=t.getBoundingBox();e.isHorizontal?a.top<0&&t.translate(0,-a.top):a.left<0&&t.translate(-a.left,0)}let i=e.fixedRoot;return i===void 0&&(i=!0),i&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),(function(o,s){if(s.radial){const[a,l]=s.isHorizontal?["x","y"]:["y","x"],c={x:1/0,y:1/0},h={x:-1/0,y:-1/0};let u=0;o.DFTraverse(g=>{u++;const{x:y,y:m}=g;c.x=Math.min(c.x,y),c.y=Math.min(c.y,m),h.x=Math.max(h.x,y),h.y=Math.max(h.y,m)});const f=h[l]-c[l];if(f===0)return;const p=2*Math.PI/u;o.DFTraverse(g=>{const y=g[l],m=c[l],x=g[a],v=o[a],b=(y-m)/f*(2*Math.PI-p)+p,_=x-v;g.x=Math.cos(b)*_,g.y=Math.sin(b)*_})}})(t,e),t}function Rm(t,e){let n=0;return t.children.length?t.children.forEach(r=>{n+=Rm(r,e)}):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function Dm(t){const e=t.children,n=e.length;if(n){e.forEach(a=>{Dm(a)});const r=e[0],i=e[n-1],o=i.y-r.y+i.height;let s=0;if(e.forEach(a=>{s+=a.totalHeight}),o>t.height)t.y=r.y+o/2-t.height/2;else if(e.length!==1||t.height>s){const a=t.y+(t.height-o)/2-r.y;e.forEach(l=>{l.translate(0,a)})}else t.y=(r.y+r.height/2+i.y+i.height/2)/2-t.height/2}}const lk={getSubTreeSep:()=>0};function ck(t,e={}){return e=Ac({},lk,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(n=>{n.x=n.parent.x+n.parent.width}),t.parent=void 0,Rm(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(n=>{const r=n.children,i=r.length;if(i){const o=r[0];if(o.startY=n.startY+n._subTreeSep,i===1)o.y=n.y+n.height/2-o.height/2;else{o.y=o.startY+o.totalHeight/2-o.height/2;for(let s=1;s<i;s++){const a=r[s];a.startY=r[s-1].startY+r[s-1].totalHeight,a.y=a.startY+a.totalHeight/2-a.height/2}}}}),Dm(t),t}class hk extends rk{execute(){return ak(this.rootNode,this.options,ck)}}const dk={};function uk(t,e){const n=Ac({},dk,e);return new hk(t,n).execute()}var fk=Object.defineProperty,pk=Object.defineProperties,gk=Object.getOwnPropertyDescriptors,Nm=Object.getOwnPropertySymbols,mk=Object.prototype.hasOwnProperty,yk=Object.prototype.propertyIsEnumerable,jm=(t,e,n)=>e in t?fk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,vk=(t,e)=>{for(var n in e||(e={}))mk.call(e,n)&&jm(t,n,e[n]);if(Nm)for(var n of Nm(e))yk.call(e,n)&&jm(t,n,e[n]);return t},xk=(t,e)=>pk(t,gk(e));const bk=60,_k=14,Bm=30,Fm="center",wk="curved",$k=2,Pk="node",Ok="solid",Vm=(t,e=[],n=0)=>{var r,i;const o=[...e,n];return xk(vk({},t),{_indexes:o,children:(i=(r=t.children)==null?void 0:r.map((s,a)=>Vm(s,o,a)))!=null?i:[]})},Wm=(t,e,n,r)=>{var i,o;e.push(t),(o=(i=t.data)._flatIndex)!=null||(i._flatIndex=e.length-1),r&&n.push({parent:r,child:t});const s=t.children;s==null||s.forEach(a=>Wm(a,e,n,t))},Ck=(t,e,n,r)=>{const i=Math.abs(n-t)/2,o=n>t?t+i:t-i,s=n>t?n-i:n+i;return`M ${t} ${e} C ${o} ${e} ${s} ${r} ${n} ${r}`},Mk=(t,e,n,r)=>`M ${t} ${e} L ${n} ${r}`,Sk=(t,e,n,r=Fm)=>{const i=c=>Math.max(0,Math.min(1,c)),s=(c=>c==="top"?0:c==="bottom"?1:c==="center"?.5:i(c))(r),a=t.y+t.height*s,l=e.y+e.height*s;return n==="left"?{sx:t.x,sy:a,tx:e.x+e.width,ty:l}:{sx:t.x+t.width,sy:a,tx:e.x,ty:l}},Ym=t=>{var e,n;const{Title:r,Items:i,data:o,levelGap:s=bk,nodeGap:a=_k,edgeAlign:l=Fm,colorMode:c=Pk,edgeColorMode:h=Ok,edgeType:u=wk,edgeWidth:f=$k,options:p}=t,{title:g,desc:y,items:m=[]}=o,x=r?d(r,{title:g,desc:y}):null,v=oe(p),b=tt(d(K,{indexes:[0]}));if(!m.length||!(i!=null&&i.length))return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[x,d(X,{children:d(K,{indexes:[0],x:0,y:0})})]});const _=Vm(m[0]),w=new WeakMap,$=new WeakMap,P=new WeakMap,O=(H,F)=>oi({depth:F,originalIndexes:H._indexes,flatIndex:H._flatIndex},c),T=(H,F)=>{const Q=P.get(H);if(Q)return Q;const V=O(H,F),q=_t(p,V),G=me({colorPrimary:q},p);return P.set(H,G),$.set(H,q),G},I=H=>{const F=w.get(H);if(F)return F;const Q=Math.max(H._indexes.length-1,0),V=Bo(i,Q),q=tt(d(V,{indexes:H._indexes,data:o,datum:H,positionH:"center",positionV:"middle",themeColors:T(H,Q)}));return w.set(H,q),q},S=uk(_,{direction:"H",getSide:(H,F)=>{if(!H.parent)return"right";const Q=(H.parent.children||[]).indexOf(H);return(Q>=0?Q:F)%2===0?"left":"right"},getWidth:H=>I(H).width,getHeight:H=>I(H).height,getHGap:()=>s,getVGap:()=>a}),R=[],M=[];Wm(S,R,M);const A=R.length>0?Math.min(...R.map(H=>H.x)):0,W=R.length>0?Math.min(...R.map(H=>H.y)):0,k=Bm-A,D=Bm-W,z=[],N=[],B=[],Y=[],L=new WeakMap;R.forEach(H=>{var F,Q;const V=H.data,q=I(V),G=H.x+k+((F=H.hgap)!=null?F:0),U=H.y+D+((Q=H.vgap)!=null?Q:0),Z=Bo(i,H.depth),J=H.depth===0?"center":H.side==="left"?"flipped":"normal",st=T(V,H.depth);B.push(d(Z,{indexes:V._indexes,data:o,datum:V,x:G,y:U,positionH:J,positionV:"middle",themeColors:st})),L.set(H,{x:G,y:U,width:q.width,height:q.height,centerX:G+q.width/2,centerY:U+q.height/2})}),M.forEach(H=>{var F,Q,V,q;const{parent:G,child:U}=H,Z=L.get(U),J=L.get(G);if(!Z||!J)return;const st=U.data,{sx:nt,sy:lt,tx:ct,ty:yt}=Sk(J,Z,U.side,l),dt=(F=$.get(st))!=null?F:_t(p,O(st,U.depth)),gt=(Q=$.get(G.data))!=null?Q:_t(p,O(G.data,G.depth)),mt=u==="straight"?Mk(nt,lt,ct,yt):Ck(nt,lt,ct,yt),jt=`edge-gradient-${st._indexes.join("-")}`;N.push(d(at,{d:mt,stroke:h==="gradient"?`url(#${jt})`:dt!=null?dt:v,strokeWidth:f,fill:"none"})),h==="gradient"&&z.push(E("linearGradient",{id:jt,gradientUnits:"userSpaceOnUse",x1:nt,y1:lt,x2:ct,y2:yt,children:[d("stop",{offset:"0%",stopColor:gt!=null?gt:v}),d("stop",{offset:"100%",stopColor:dt!=null?dt:v})]}));const Rt=(q=(V=st.children)==null?void 0:V.length)!=null?q:0,Et=[...st._indexes,Rt],wt=Z.x+(Z.width-b.width)/2,Lt=Z.y+Z.height+8,Jt=Lt+b.height+6;U.depth>0&&Y.push(d(Ht,{indexes:st._indexes,x:wt,y:Lt})),Y.push(d(K,{indexes:Et,x:wt,y:Jt}))});const C=L.get(S);if(C){const H=S.data,F=(n=(e=H.children)==null?void 0:e.length)!=null?n:0,Q=[...H._indexes,F],V=C.x+(C.width-b.width)/2,q=C.y+C.height+8+b.height+6;Y.push(d(K,{indexes:Q,x:V,y:q}))}return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[x,E(X,{children:[z.length>0?d(Mt,{children:z}):null,d(X,{children:N}),d(Pt,{children:B}),d(bt,{children:Y})]})]})};Ot("hierarchy-mindmap",{component:Ym,composites:["title","item"]});var Ek=Object.defineProperty,Ik=Object.defineProperties,Tk=Object.getOwnPropertyDescriptors,Xm=Object.getOwnPropertySymbols,Ak=Object.prototype.hasOwnProperty,kk=Object.prototype.propertyIsEnumerable,Gm=(t,e,n)=>e in t?Ek(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ms=(t,e)=>{for(var n in e||(e={}))Ak.call(e,n)&&Gm(t,n,e[n]);if(Xm)for(var n of Xm(e))kk.call(e,n)&&Gm(t,n,e[n]);return t},ys=(t,e)=>Ik(t,Tk(e));const qm=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:h="5,5",edgeCornerRadius:u=0,edgeOffset:f=0,edgeOrigin:p="center",edgeOriginPadding:g=20,edgeMarker:y="none",markerSize:m=12,colorMode:x="branch",options:v}=t,{title:b,desc:_}=r,w=oe(v),$=G=>{var U;const Z=[...G];return(U=Z[0])!=null&&U.children||(Z[0]=ys(ms({},Z[0]),{children:Z.slice(1)}),Z.splice(1)),Z},P=(G,U,Z,J,st)=>{const nt=U+(J-U)/2,lt=Math.min(st,Math.abs(J-U)/2,Math.abs(Z-G)/2);return lt===0?`M ${G} ${U} L ${G} ${nt} L ${Z} ${nt} L ${Z} ${J}`:`M ${G} ${U}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
82
|
+
`,E(Y,TA(IA({},u),{children:[d(ht,{d:P,x:0,y:0,width:r,height:i,fill:h.colorPrimary,"data-element-type":"shape"}),d(ve,{indexes:n,x:y,y:m,size:o,fill:h.colorBg}),d($t,{indexes:n,x,y:b,width:f,fontSize:14,fontWeight:"bold",fill:h.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:e.label}),e.desc&&d(Xt,{indexes:n,x:_,y:w,width:f,fontSize:11,wordWrap:!0,fill:h.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:e.desc})]}))};Vt("quarter-simple-card",{component:pm,composites:["icon","label","desc"]});var AA=Object.defineProperty,kA=Object.defineProperties,zA=Object.getOwnPropertyDescriptors,gm=Object.getOwnPropertySymbols,LA=Object.prototype.hasOwnProperty,RA=Object.prototype.propertyIsEnumerable,mm=(t,e,n)=>e in t?AA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,HA=(t,e)=>{for(var n in e||(e={}))LA.call(e,n)&&mm(t,n,e[n]);if(gm)for(var n of gm(e))RA.call(e,n)&&mm(t,n,e[n]);return t},DA=(t,e)=>kA(t,zA(e));const ym=t=>{const[{datum:e,indexes:n,width:r=240,height:i=140,iconSize:o=28,gap:s=12,ribbonHeight:a=32,themeColors:l},c]=Wt(t,["width","height","iconSize","gap","ribbonHeight"]),h=`${l.colorPrimary}-ribbon`;return E(Y,DA(HA({},c),{children:[d(zt,{children:E("linearGradient",{id:h,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[d("stop",{offset:"0%",stopColor:l.colorPrimary}),d("stop",{offset:"100%",stopColor:ot(l.colorPrimary).darken(15).toHexString()})]})}),E(ne,{children:[d(St,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorPrimaryBg,strokeWidth:1,rx:8,ry:8}),d(St,{x:0,y:0,width:r,height:a,fill:`url(#${h})`,rx:8,ry:8}),d(St,{x:0,y:8,width:r,height:a-8,fill:`url(#${h})`}),d(ht,{x:r-20,y:a,width:20,height:8,fill:ot(l.colorPrimary).darken(25).toHexString(),d:"M0,0 L20,0 L15,8 L5,8 Z"})]}),d(ve,{indexes:n,x:s,y:a+s,size:o,fill:l.colorPrimary}),d($t,{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}),d(Xt,{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}),d(ve,{indexes:n,x:r-s-8,y:s/2,size:16,fill:l.colorWhite})]}))};Vt("ribbon-card",{component:ym,composites:["icon","label","desc"]});var NA=Object.defineProperty,jA=Object.defineProperties,FA=Object.getOwnPropertyDescriptors,vm=Object.getOwnPropertySymbols,BA=Object.prototype.hasOwnProperty,WA=Object.prototype.propertyIsEnumerable,bm=(t,e,n)=>e in t?NA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,VA=(t,e)=>{for(var n in e||(e={}))BA.call(e,n)&&bm(t,n,e[n]);if(vm)for(var n of vm(e))WA.call(e,n)&&bm(t,n,e[n]);return t},YA=(t,e)=>jA(t,FA(e));const xm=t=>{const[{indexes:e,datum:n,themeColors:r,width:i=300,height:o=40,padding:s=4,positionH:a="normal"},l]=Wt(t,["width","height","borderRadius","padding"]),c=o/2,h=c,u=s,f=i-c*2,p=o-s*2;return E(Y,YA(VA({},l),{children:[d(St,{"data-element-type":"shape",width:i,height:o,rx:c,ry:c,fill:r.colorPrimaryBg,stroke:r.colorPrimary,strokeWidth:1,opacity:.8}),d($t,{indexes:e,x:h,y:u,width:f,height:p,alignHorizontal:a==="flipped"?"right":a==="center"?"center":"left",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:r.colorText,children:n.label})]}))};Vt("rounded-rect-node",{component:xm,composites:["label"]});var XA=Object.defineProperty,GA=Object.defineProperties,qA=Object.getOwnPropertyDescriptors,wm=Object.getOwnPropertySymbols,UA=Object.prototype.hasOwnProperty,ZA=Object.prototype.propertyIsEnumerable,_m=(t,e,n)=>e in t?XA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,KA=(t,e)=>{for(var n in e||(e={}))UA.call(e,n)&&_m(t,n,e[n]);if(wm)for(var n of wm(e))ZA.call(e,n)&&_m(t,n,e[n]);return t},QA=(t,e)=>GA(t,qA(e));const $m=t=>{const[{indexes:e,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=Wt(t,["width"]),a=o!=="flipped",l=a?"bottom":"top",c=d($t,{indexes:e,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=d(Xt,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=30,f=10,p=Q(c),g=Q(h),y=p.height+g.height,m=y+f+u+f+y;return d(Y,QA(KA({width:r,height:m},s),{children:E(lt,{flexDirection:"column",alignItems:"center",children:[a?E(Rt,{children:[h,c,d(Kt,{height:f})]}):d(Rt,{children:d(Kt,{height:y+f})}),E(mi,{horizontal:"center",vertical:"middle",children:[d(JA,{width:r,height:u,fill:i.colorPrimary}),d(Et,{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?d(Rt,{children:d(Kt,{height:y+f})}):E(Rt,{children:[d(Kt,{height:f}),c,h]})]})}))},JA=t=>{const{x:e=0,y:n=0,width:r=100,height:i=40,fill:o="#FF356A",size:s=10}=t;return d(De,{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"})};Vt("simple-horizontal-arrow",{component:$m,composites:["label","desc","time"]});var tk=Object.defineProperty,ek=Object.defineProperties,nk=Object.getOwnPropertyDescriptors,Pm=Object.getOwnPropertySymbols,rk=Object.prototype.hasOwnProperty,ik=Object.prototype.propertyIsEnumerable,Om=(t,e,n)=>e in t?tk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ok=(t,e)=>{for(var n in e||(e={}))rk.call(e,n)&&Om(t,n,e[n]);if(Pm)for(var n of Pm(e))ik.call(e,n)&&Om(t,n,e[n]);return t},sk=(t,e)=>ek(t,nk(e));const Cm=t=>{const[{indexes:e,datum:n,width:r=180,illusSize:i=r,gap:o=8,themeColors:s,usePaletteColor:a=!1},l]=Wt(t,["width","illusSize","gap","usePaletteColor"]),{label:c,desc:h}=n,u=a?s.colorPrimary:s.colorText,f=d($t,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"middle",fill:u,children:c}),p=Q(f);return E(lt,sk(ok({},l),{width:r,height:i+o+p.height+o+48,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o,children:[d(up,{indexes:e,width:i,height:i}),f,d(Xt,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"top",fill:s.colorTextSecondary,lineNumber:3,children:h})]}))};Vt("simple-illus",{component:Cm,composites:["illus","label","desc"]});var ak=Object.defineProperty,lk=Object.defineProperties,ck=Object.getOwnPropertyDescriptors,Mm=Object.getOwnPropertySymbols,hk=Object.prototype.hasOwnProperty,dk=Object.prototype.propertyIsEnumerable,Sm=(t,e,n)=>e in t?ak(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Wc=(t,e)=>{for(var n in e||(e={}))hk.call(e,n)&&Sm(t,n,e[n]);if(Mm)for(var n of Mm(e))dk.call(e,n)&&Sm(t,n,e[n]);return t},Vc=(t,e)=>lk(t,ck(e));const Em=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:h="normal",usePaletteColor:u=!1,themeColors:f},p]=Wt(t,["width","height","gap","showIcon","iconSize","iconType","usePaletteColor"]),{label:g,desc:y,icon:m}=n,v=(k=>k==="normal"?"left":k==="flipped"?"right":"center")(c),x=u?f.colorPrimary:f.colorText,w=14,_=1.4,P=Q(d($t,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"middle",fill:x,children:g})),O=s?l==="circle"?d(tr,{indexes:e,size:a,fill:f.colorPrimary,colorBg:f.colorBg}):d(ve,{indexes:e,size:a,fill:f.colorTextSecondary}):null;if(!s||!m){const k=i?Math.max(0,i-P.height-o):void 0,D=k?k<=60?1:Math.floor(k/(_*w)):2,z=i?h==="middle"?(i-P.height-(k||0)-o)/2:h==="flipped"?i-P.height-(k||0)-o:0:0;return E(Y,Vc(Wc({},p),{children:[d($t,{indexes:e,width:r,y:z,alignHorizontal:v,alignVertical:"middle",fill:x,children:g}),d(Xt,{indexes:e,width:r,height:k,y:z+P.height+o,alignHorizontal:v,alignVertical:A(),lineNumber:D,fill:f.colorTextSecondary,children:y})]}))}if(c==="center"){const k=s&&m?a:0,D=i?Math.max(0,i-P.height-k-o*2):void 0,z=D?D<=60?1:Math.floor(D/(_*w)):2,N=P.height+(D||0)+o,j=i?h==="middle"?(i-N-k-o)/2:h==="flipped"?i-N-k-o:0:0;return d(lt,Vc(Wc({},p),{flexDirection:"column",gap:o,alignItems:"center",children:h==="flipped"?E(Rt,{children:[E(Y,{children:[d($t,{indexes:e,width:r,y:j,alignHorizontal:"center",alignVertical:"middle",fill:x,children:g}),d(Xt,{indexes:e,width:r,height:D,y:j+P.height+o,alignHorizontal:"center",alignVertical:"bottom",lineNumber:z,fill:f.colorTextSecondary,children:y})]}),O]}):E(Rt,{children:[O,E(Y,{children:[d($t,{indexes:e,width:r,y:j,alignHorizontal:"center",alignVertical:"middle",fill:x,children:g}),d(Xt,{indexes:e,width:r,height:D,y:j+P.height+o,alignHorizontal:"center",alignVertical:"top",lineNumber:z,fill:f.colorTextSecondary,children:y})]})]})}))}const T=Q(O),I=Math.max(r-T.width-o,0),S=i?Math.max(0,i-P.height-o):void 0,H=S?S<=60?1:Math.floor(S/(_*w)):2,C=i?h==="middle"?(i-P.height-(S||0)-o)/2:h==="flipped"?i-P.height-(S||0)-o:0:0;return d(lt,Vc(Wc({},p),{flexDirection:"row",gap:o,alignItems:B(h),children:c==="flipped"?E(Rt,{children:[E(Y,{children:[d($t,{indexes:e,width:I,y:C,alignHorizontal:"right",alignVertical:"middle",fill:x,children:g}),d(Xt,{indexes:e,width:I,height:S,y:C+P.height+o,alignHorizontal:"right",alignVertical:A(),lineNumber:H,fill:f.colorTextSecondary,children:y})]}),O]}):E(Rt,{children:[O,E(Y,{children:[d($t,{indexes:e,width:I,y:C,alignHorizontal:"left",alignVertical:"middle",fill:x,children:g}),d(Xt,{indexes:e,width:I,height:S,y:C+P.height+o,alignHorizontal:"left",alignVertical:A(),lineNumber:H,fill:f.colorTextSecondary,children:y})]})]})}));function A(k,D){return"top"}function B(k){return k==="normal"?"flex-start":k==="flipped"?"flex-end":"center"}};Vt("simple",{component:Em,composites:["icon","label","desc"]});var uk=Object.defineProperty,fk=Object.defineProperties,pk=Object.getOwnPropertyDescriptors,Im=Object.getOwnPropertySymbols,gk=Object.prototype.hasOwnProperty,mk=Object.prototype.propertyIsEnumerable,Tm=(t,e,n)=>e in t?uk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yk=(t,e)=>{for(var n in e||(e={}))gk.call(e,n)&&Tm(t,n,e[n]);if(Im)for(var n of Im(e))mk.call(e,n)&&Tm(t,n,e[n]);return t},vk=(t,e)=>fk(t,pk(e));const Am=t=>{const[{indexes:e,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=Wt(t,["height"]),a=o==="normal"?"right":"left",l=d($t,{indexes:e,width:120,fill:i.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=d(Xt,{indexes:e,width:120,fill:i.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),h=o!=="flipped",u=15,f=30,p=120,g=p+u+f+u+p;return d(Y,vk(yk({width:g,height:r},s),{children:E(lt,{flexDirection:"row",alignItems:"center",children:[h?E(Rt,{children:[E(lt,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),d(Kt,{width:u})]}):d(Rt,{children:d(Kt,{width:p+u})}),E(mi,{horizontal:"center",vertical:"middle",children:[d(bk,{width:f,height:r,fill:i.colorPrimary}),d(Et,{width:f,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),h?d(Rt,{children:d(Kt,{width:p+u})}):E(Rt,{children:[d(Kt,{width:u}),E(lt,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},bk=t=>{const{x:e=0,y:n=0,width:r=30,height:i=100,fill:o="#FF356A",size:s=10}=t;return d(De,{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"})};Vt("simple-vertical-arrow",{component:Am,composites:["label","desc"]});var xk=Object.defineProperty,wk=Object.defineProperties,_k=Object.getOwnPropertyDescriptors,km=Object.getOwnPropertySymbols,$k=Object.prototype.hasOwnProperty,Pk=Object.prototype.propertyIsEnumerable,zm=(t,e,n)=>e in t?xk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ok=(t,e)=>{for(var n in e||(e={}))$k.call(e,n)&&zm(t,n,e[n]);if(km)for(var n of km(e))Pk.call(e,n)&&zm(t,n,e[n]);return t},Ck=(t,e)=>wk(t,_k(e));const Yc=80,Xc=3,Lm=t=>{const[{datum:e,indexes:n,width:r=200,gap:i=4,positionH:o="center",themeColors:s},a]=Wt(t,["width","height","gap"]),l=Q(d($t,{indexes:n,fontSize:18,fontWeight:"bold",width:r,children:e.label})),c=e.desc?Q(d(Xt,{indexes:n,width:r,wordWrap:!0,children:e.desc})):{height:0},h=l.height+i+Xc+(e.desc?i*2+c.height:0),u=0,f=0,p=o==="center"?"center":o==="flipped"?"right":"left",g=o==="center"?(r-Yc)/2:o==="flipped"?r-Yc:0,y=f+l.height+i,m=0,b=y+Xc+i*2;return E(Y,Ck(Ok({width:r,height:h},a),{children:[e.label&&d($t,{indexes:n,x:u,y:f,width:r,alignHorizontal:p,fill:s.colorPrimary,fontSize:18,fontWeight:"bold",children:e.label}),e.label&&d(St,{x:g,y,width:Yc,height:Xc,fill:s.colorPrimary,"data-element-type":"shape"}),e.desc&&d(Xt,{indexes:n,width:r,x:m,y:b,alignHorizontal:p,wordWrap:!0,fill:s.colorText,children:e.desc})]}))};Vt("underline-text",{component:Lm,composites:["label","desc"]});var Mk=Object.defineProperty,Sk=Object.defineProperties,Ek=Object.getOwnPropertyDescriptors,Rm=Object.getOwnPropertySymbols,Ik=Object.prototype.hasOwnProperty,Tk=Object.prototype.propertyIsEnumerable,Hm=(t,e,n)=>e in t?Mk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ak=(t,e)=>{for(var n in e||(e={}))Ik.call(e,n)&&Hm(t,n,e[n]);if(Rm)for(var n of Rm(e))Tk.call(e,n)&&Hm(t,n,e[n]);return t},kk=(t,e)=>Sk(t,Ek(e));const Dm=t=>{const[{indexes:e,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=Wt(t,["height"]),l=o!=="flipped"?"right":"left",c=d($t,{indexes:e,width:120,fill:i.colorText,alignHorizontal:l,alignVertical:"middle",fontSize:14,children:n.label}),h=d(Xt,{indexes:e,width:120,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:"top",children:n.desc}),u=d(tr,{indexes:e,fill:i.colorPrimary,colorBg:i.colorWhite}),f=d(Lk,{width:30,height:8,fill:i.colorPrimary,positionH:o}),p=o!=="flipped",g=5,y=25,m=30,b=Q(c),v=Q(u),x=Q(f),w=b.width+g+x.width-v.width-y,_=Math.max(b.width+g+x.width,y+v.width)*2+m;return d(Y,kk(Ak({width:_,height:r},s),{children:E(lt,{flexDirection:"row",alignItems:"center",children:[p?E(Rt,{children:[E(lt,{flexDirection:"column",alignItems:"flex-end",children:[c,h]}),d(Kt,{width:g}),f]}):E(Rt,{children:[d(Kt,{width:w}),u,d(Kt,{width:y})]}),E(mi,{horizontal:"center",vertical:"middle",children:[d(zk,{width:m,height:r,fill:i.colorPrimary}),d(Et,{width:m,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),p?E(Rt,{children:[d(Kt,{width:y}),u]}):E(Rt,{children:[f,d(Kt,{width:g}),E(lt,{flexDirection:"column",alignItems:"flex-start",children:[c,h]})]})]})}))},zk=t=>{const{x:e=0,y:n=0,width:r=30,height:i=100,fill:o="#FF356A",size:s=10}=t;return d(De,{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"})},Lk=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,h=a;return E(Y,{x:e,y:n,width:r,height:i,children:[d(Lt,{width:i,height:i,fill:o,x:s==="normal"?0:l-a,"data-element-type":"shape"}),d(ht,{d:s==="normal"?`M${a},${h} L${a+l},${h}`:`M0,${h} L${l-a},${h}`,strokeWidth:c,stroke:o,"data-element-type":"shape"})]})};Vt("vertical-icon-arrow",{component:Dm,composites:["icon","label","desc"]});const Gc=new Map;function Tt(t,e){Gc.set(t,e)}function Nm(t){return Gc.get(t)}function Rk(){return Array.from(Gc.keys())}const jm=t=>{var e,n,r;const{Title:i,Item:o,data:s,width:a,gap:l,barGap:c,barHeight:h=28,barAreaWidth:u,labelGap:f=16,padding:p=24,showValue:g=!0,options:y,valueFormatter:m=Ut=>Ut.toString()}=t,b=(e=u!=null?u:a)!=null?e:480,{title:v,desc:x,items:w=[],xTitle:_,yTitle:$}=s,P=i?d(i,{title:v,desc:x}):null;if(w.length===0)return d(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:P});const[O,T,I,S]=Qn(p),H=(n=w[0])!=null?n:{label:"",value:0},C=Q(d(o,{indexes:[0],datum:H,data:s})),A=C.width||140,B=C.height||h,k=Math.max(h,B),D=Math.max(12,k*.35),z=(r=c!=null?c:l)!=null?r:D,N=w.map(Ut=>{var ae;return(ae=Ut.value)!=null?ae:0}),j=Math.max(...N,0),X=Math.min(...N,0),L=X<0?X*1.1:0;let M=j>0?j*1.1:0;M===L&&(M=L+1);const R=Ti().domain([L,M]).range([0,b]),W=Math.min(Math.max(R(0),0),b),U=Math.max(2,b*.02),V=w.length*(k+z)-z,G=$?24:0,Z=20,K=_?24:0,nt=O+G,at=S+A+f,pt=g?80:0,ft=Math.max(8,k*.2),rt=at+b+pt+T,tt=nt+V+ft+Z+K+I,et=be(y.themeConfig),st=et.colorText||"#666",vt=re(y),gt=[],dt=[],ct=[],ut=[],mt=[],Pt=[],yt=[],Mt=nt+V+ft,te=Ut=>Number.isInteger(Ut)?Ut.toString():Ut.toFixed(1);w.forEach((Ut,ae)=>{var dn;const je=[ae],Nt=(dn=Ut.value)!=null?dn:0,pr=nt+ae*(k+z),bt=pr+(k-h)/2,ee=Nt>=0?at+W:at+R(Nt),At=Nt>=0?R(Nt)-W:W-R(Nt),Bt=At===0?U:At,fe=Ct(y,[ae])||et.colorPrimary;if(gt.push(d(St,{x:ee,y:bt,width:Bt,height:h,fill:fe,rx:6,ry:6,"data-element-type":"shape"})),g){const le=Nt>=0?ee+Bt+8:ee-8;dt.push(d(Et,{x:le,y:bt+h/2,alignHorizontal:Nt>=0?"left":"right",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:fe,children:m(Nt,Ut)}))}ct.push(d(o,{indexes:je,datum:Ut,data:s,x:S,y:pr+(k-B)/2,width:A,height:B,positionV:"middle"}))});const he=Math.max(3,Math.min(7,Math.floor(b/80)));return R.ticks(he).forEach(Ut=>{const ae=at+R(Ut);Pt.push(d(ht,{d:`M${ae} ${nt} L${ae} ${nt+V}`,stroke:st,strokeOpacity:.08,"data-element-type":"shape"})),mt.push(d(ht,{d:`M${ae-.5} ${Mt} L${ae-.5} ${Mt+6}`,stroke:st,"data-element-type":"shape"})),mt.push(d(Et,{x:ae,y:Mt+14,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fill:st,children:te(Ut)}))}),ut.push(d(ht,{d:`M${at} ${Mt} L${at+b} ${Mt}`,stroke:st,"data-element-type":"shape"})),L<0&&ut.push(d(St,{x:at+W-.5,y:nt,width:1,height:V,fill:vt,"data-element-type":"shape"})),$&&yt.push(d(Et,{x:S+A/2,y:O+G/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:st,children:$})),_&&yt.push(d(Et,{x:at+b/2,y:Mt+Z+K/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:st,children:_})),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[P,E(Y,{width:rt,height:tt,children:[d(Y,{children:Pt}),d(Y,{children:gt}),d(Y,{children:dt}),d(Y,{children:yt}),d(Y,{children:[...ut,...mt]}),d(It,{children:ct})]})]})};Tt("chart-bar",{component:jm,composites:["title","item","xTitle","yTitle"]});const Fm=t=>{const{Title:e,Item:n,data:r,columnGap:i=60,columnWidth:o=50,padding:s=20,showValue:a=!0,options:l,valueFormatter:c=N=>N.toString()}=t,{title:h,desc:u,items:f=[]}=r,p=e?d(e,{title:h,desc:u}):null;if(f.length===0)return d(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:p});const g=be(l.themeConfig),m=[...f.map(N=>{var j;return(j=N.value)!=null?j:0}),0].sort((N,j)=>N-j),b=m[0]<0,v=f.length*o+(f.length-1)*i,x=300,[w,_,$,P]=Qn(s),O=a?24:0,T=10,I=b&&a?O+T:T,S=v+P+_,H=x+w+$+I,C=Ti().domain([m[0],m[m.length-1]]).range([x,0]),A=C(0),B=[],k=[],D=[],z=[];return f.forEach((N,j)=>{var X;const L=[j],M=(X=N.value)!=null?X:0,R=P+j*(o+i),W=M>=0?C(M):A,U=Math.abs(C(M)-A),V=Ct(l,[j])||g.colorPrimary,G=`${V}-column-positive-${j}`,Z=`${V}-column-negative-${j}`;z.push(E("linearGradient",{id:M>=0?G:Z,x1:"0%",y1:M>=0?"0%":"100%",x2:"0%",y2:M>=0?"100%":"0%",children:[d("stop",{offset:"0%",stopColor:V}),d("stop",{offset:"100%",stopColor:ot.mix(V,"#fff",40).toHexString()})]})),B.push(d(St,{x:R,y:w+W,width:o,height:U,fill:`url(#${M>=0?G:Z})`,rx:8,ry:8,"data-element-type":"shape"})),a&&k.push(d(Et,{x:R+o/2,y:M>=0?w+W-10:w+W+U+20,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:M>=0?"bottom":"top",fill:V,children:c(M,N)}));const K=o+i,nt=w+x+I;D.push(d(n,{indexes:L,datum:N,data:r,x:R+o/2-K/2,y:nt,width:K,positionH:"center"}))}),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,E(Y,{width:S,height:H,children:[d(zt,{children:z}),d(Y,{children:B}),d(Y,{children:k}),d(It,{children:D})]})]})};Tt("chart-column",{component:Fm,composites:["title","item"]});var Hk=Object.defineProperty,Dk=Object.defineProperties,Nk=Object.getOwnPropertyDescriptors,Bm=Object.getOwnPropertySymbols,jk=Object.prototype.hasOwnProperty,Fk=Object.prototype.propertyIsEnumerable,Wm=(t,e,n)=>e in t?Hk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Vm=(t,e)=>{for(var n in e||(e={}))jk.call(e,n)&&Wm(t,n,e[n]);if(Bm)for(var n of Bm(e))Fk.call(e,n)&&Wm(t,n,e[n]);return t},Bk=(t,e)=>Dk(t,Nk(e));const Ym=t=>{const{Title:e,Item:n,data:r,width:i,height:o=260,gap:s=10,padding:a=24,showValue:l=!0,options:c,valueFormatter:h=bt=>bt.toString()}=t,{title:u,desc:f,items:p=[],xTitle:g,yTitle:y}=r,m=e?d(e,{title:u,desc:f}):null;if(p.length===0)return d(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:m});const[b,v,x,w]=Qn(a),_={indexes:[0],datum:p[0],data:r,positionH:"center",positionV:"normal"},$=Q(d(n,Vm({},_))),P=$.width,O=$.height,T=Math.max(28,O+14),I=44,S=y?26:0,H=g?22:0,C=P+s,A=p.length>0?(p.length-1)*C+P:0,B=i!==void 0?i:Math.max(200,A||320),k=p.length>1?Math.max(C,(B-P)/(p.length-1)):0,D=p.length>0?Math.max(P,(p.length-1)*k+P):0,z=w+I+S,N=b+S,j=z+D+v,X=N+o+T+H+x,L=p.map(bt=>{var ee;return(ee=bt.value)!=null?ee:0}),M=Math.max(...L,0),R=Math.min(...L,0),W=Math.max(Math.abs(M),Math.abs(R))*.1,U=R<0?R-W:0;let V=M>0?M+W:1;V===U&&(V=U+1);const G=Ti().domain([U,V]).nice().range([o,0]),Z=Math.max(0,Math.min(o,G(0))),K=V<=0?0:U>=0?o:Z,nt=re(c),at=be(c.themeConfig),pt=at.colorText||"#666",ft=[],rt=[],tt=[],et=[],st=[],vt=[],gt=[];G.ticks(6).forEach(bt=>{const ee=N+G(bt);ft.push(d(ht,{d:`M ${z} ${ee} L ${z+D} ${ee}`,width:D,height:1,stroke:pt,strokeWidth:1,"data-element-type":"shape",opacity:.08})),gt.push(d(Et,{x:z-8,y:ee,alignHorizontal:"right",alignVertical:"middle",fontSize:12,fill:pt,children:Number.isInteger(bt)?bt.toString():bt.toFixed(1)}))});const ct=[],ut=[],mt=[],Pt=bt=>{if(bt.length===0)return"";if(bt.length===1){const At=bt[0];return`M ${At.x} ${At.y}`}const ee=[];ee.push(`M ${bt[0].x} ${bt[0].y}`);for(let At=0;At<bt.length-1;At++){const Bt=bt[At-1]||bt[At],fe=bt[At],le=bt[At+1],Te=bt[At+2]||le,Re=fe.x+(le.x-Bt.x)/6,Dn=fe.y+(le.y-Bt.y)/6,la=le.x-(Te.x-fe.x)/6,wh=le.y-(Te.y-fe.y)/6;ee.push(`C ${Re} ${Dn} ${la} ${wh} ${le.x} ${le.y}`)}return ee.join(" ")};p.forEach((bt,ee)=>{var At;const Bt=z+ee*k+P/2,fe=N+G((At=bt.value)!=null?At:0);ut.push({x:Bt,y:fe,datum:bt}),ct.push(d(n,Bk(Vm({},_),{indexes:[ee],datum:bt,x:Bt-P/2,y:N+o+4})));const le=Ct(c,[ee])||at.colorPrimary;mt.push({x:Bt,color:le})});const yt=mt.length>0?Math.min(...mt.map(bt=>bt.x)):z,Mt=mt.length>0?Math.max(...mt.map(bt=>bt.x)):z+D,te=Math.max(1,Mt-yt),he=mt.map(bt=>d("stop",{offset:`${(bt.x-yt)/te*100}%`,stopColor:bt.color})),me=mt.map(bt=>d("stop",{offset:`${(bt.x-yt)/te*100}%`,stopColor:bt.color,stopOpacity:"0.18"}));if(mt.length>0){const bt=mt[mt.length-1].color;he.push(d("stop",{offset:"100%",stopColor:bt})),me.push(d("stop",{offset:"100%",stopColor:bt,stopOpacity:"0.04"}))}const Ut=`chart-line-${Lu([D,o,pt,nt,mt.map(bt=>`${bt.x.toFixed(2)}-${bt.color}`).join()].join(":"))}`,ae=`${Ut}-stroke`,dn=`${Ut}-area`,je=Pt(ut);tt.push(d(ht,{d:je,width:D,height:o,stroke:`url(#${ae})`,strokeWidth:3,fill:"none","data-element-type":"shape"}));const Nt=je.includes("C")?je.slice(je.indexOf("C")):"",pr=[`M ${ut[0].x} ${N+K}`,`L ${ut[0].x} ${ut[0].y}`,Nt,`L ${ut[ut.length-1].x} ${N+K}`,"Z"].join(" ");return tt.push(d(ht,{d:pr,width:D,height:o,fill:`url(#${dn})`,stroke:"none","data-element-type":"shape"})),ut.forEach((bt,ee)=>{var At;const Bt=Ct(c,[ee])||at.colorPrimary;et.push(d(Lt,{x:bt.x-6,y:bt.y-6,width:12,height:12,fill:Bt,"data-element-type":"shape"})),l&&st.push(d(Et,{x:bt.x,y:bt.y-12,alignHorizontal:"center",alignVertical:"bottom",fontSize:12,fontWeight:"bold",fill:Bt,children:h((At=bt.datum.value)!=null?At:0,bt.datum)}))}),rt.push(d(ht,{d:`M ${z} ${N+K} L ${z+D} ${N+K}`,width:D,height:1,stroke:pt,strokeWidth:1,"data-element-type":"shape"})),rt.push(d(ht,{d:`M ${z} ${N} L ${z} ${N+o}`,width:1,height:o,stroke:pt,strokeWidth:1,"data-element-type":"shape"})),g&&vt.push(d(Et,{x:z+D/2,y:N+o+T+H/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:pt,children:g})),y&&vt.push(d(Et,{x:w+S/2,y:N+o/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:pt,children:y})),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,E(Y,{width:j,height:X,children:[E(zt,{children:[d("linearGradient",{id:ae,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:he}),E("linearGradient",{id:dn,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[me,d("stop",{offset:"100%",stopColor:nt,stopOpacity:"0.04"})]})]}),d(Y,{children:ft}),d(Y,{children:[...rt,...gt]}),d(Y,{children:tt}),d(Y,{children:et}),d(Y,{children:st}),d(Y,{children:vt}),d(It,{children:ct})]})]})};Tt("chart-line",{component:Ym,composites:["title","item","xTitle","yTitle"]});const Xm=t=>{var e;const{Title:n,Item:r,data:i,radius:o=140,innerRadius:s=0,padding:a=30,showPercentage:l=!0,options:c}=t,{title:h,desc:u,items:f=[]}=i,p=n?d(n,{title:h,desc:u}):null,g=Q(d(q,{indexes:[0]})),y=(e=f[0])!=null?e:{label:"",value:0},m=Q(d(r,{indexes:[0],datum:y,data:i,positionH:"center",positionV:"middle"})),b=m.width||140,v=m.height||32,x=Math.max(o,60),w=1.35,_=8,$=x*w+_+b,P=x,O=a+$,T=a+P,I=O*2,S=T*2;if(f.length===0)return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,d(Y,{width:I,height:S,children:d(Ot,{children:d(q,{indexes:[0],x:O-g.width/2,y:T-g.height/2})})})]});const H=f.reduce((G,Z)=>{var K;return G+Math.max((K=Z.value)!=null?K:0,0)},0),C=re(c),A=be(c.themeConfig),k=hA().value(G=>{var Z;return Math.max((Z=G.value)!=null?Z:0,0)}).sort(null).startAngle(0).endAngle(Math.PI*2)(f),D=ki().innerRadius(s).outerRadius(x).cornerRadius(2),z=ki().innerRadius(x).outerRadius(x),N=ki().innerRadius(x*1.15).outerRadius(x*1.15),j=s+(x-s)*.5,X=ki().innerRadius(j).outerRadius(j),L=ki().innerRadius(x*.85).outerRadius(x*.85),M=[],R=[],W=[],U=[],V=[];return k.forEach(G=>{const Z=G.data,K=G.index,nt=Ct(c,[K])||A.colorPrimary||C,at=D(G)||"";M.push(d(ht,{d:at,fill:nt,stroke:A.colorBg,strokeWidth:1,"data-element-type":"shape",width:x*2,height:x*2}));const ft=G.startAngle+(G.endAngle-G.startAngle)/2<Math.PI,rt=z.centroid(G),tt=N.centroid(G),st=[x*w*(ft?1:-1),tt[1]];W.push(d(ht,{d:`M${O+rt[0]} ${T+rt[1]} L${O+tt[0]} ${T+tt[1]} L${O+st[0]} ${T+st[1]}`,stroke:C,strokeOpacity:.45,strokeWidth:2,fill:"none","data-element-type":"shape"}));const vt=O+st[0]+(ft?_:-_-b),gt=T+st[1]-v/2;if(U.push(d(r,{indexes:[K],datum:Z,data:i,x:vt,y:gt,width:b,height:v,positionH:ft?"normal":"flipped",positionV:"middle",themeColors:be({colorPrimary:nt},c)})),l&&H>0){const ct=X.centroid(G),ut=Math.max(G.value,0),mt=(ut*100/H).toFixed(1),Pt=50,yt=20;R.push(d(Et,{x:O+ct[0]-Pt/2,y:T+ct[1]-yt/2,width:Pt,height:yt,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fontWeight:"bold",fill:"#ffffff","data-value":ut,"data-indexes":[K],"data-element-type":kt.ItemValue,children:`${mt}%`}))}const dt=L.centroid(G);V.push(d(Ft,{indexes:[K],x:O+dt[0]-g.width/2,y:T+dt[1]-g.height/2}))}),k.forEach((G,Z)=>{const K=(Z+1)%k.length,nt=G.endAngle,at=k[K].startAngle+(K===0?Math.PI*2:0),pt=(nt+at)/2,ft=x*1,rt=Math.sin(pt)*ft,tt=-Math.cos(pt)*ft;V.push(d(q,{indexes:[Z+1],x:O+rt-g.width/2,y:T+tt-g.height/2}))}),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[p,E(Y,{width:I,height:S,children:[d(Y,{x:O,y:T,children:M}),d(Y,{children:W}),d(Y,{children:R}),d(It,{children:U}),d(Ot,{children:V})]})]})};Tt("chart-pie",{component:Xm,composites:["title","item"]});var Wk=Object.defineProperty,Vk=Object.defineProperties,Yk=Object.getOwnPropertyDescriptors,Gm=Object.getOwnPropertySymbols,Xk=Object.prototype.hasOwnProperty,Gk=Object.prototype.propertyIsEnumerable,qm=(t,e,n)=>e in t?Wk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Um=(t,e)=>{for(var n in e||(e={}))Xk.call(e,n)&&qm(t,n,e[n]);if(Gm)for(var n of Gm(e))Gk.call(e,n)&&qm(t,n,e[n]);return t},Zm=(t,e)=>Vk(t,Yk(e));const qk=[0,30,-30,60,-60],Uk=Math.PI*(3-Math.sqrt(5));function Km(t,e,n){const r=Math.PI/180*n,i=Math.cos(r),o=Math.sin(r);return{width:Math.abs(t*i)+Math.abs(e*o),height:Math.abs(t*o)+Math.abs(e*i)}}function Zk(t,e,n,r,i,o){const s=t-o,a=t+n+o,l=e-o,c=e+r+o;return i.some(h=>{const u=h.box.x-o,f=h.box.x+h.box.width+o,p=h.box.y-o,g=h.box.y+h.box.height+o;return!(a<=u||s>=f||c<=p||l>=g)})}function Kk(t,e,n,r,i){const o=[],s=e?qk:[0],a=Math.max(1600,t.length*28);return t.forEach((l,c)=>{const h=Math.max(l.width,l.height),u=c*Uk;let f=0,p=null;for(let g=0;g<a&&!p;g++){g===Math.floor(a*.6)&&(f=h);const y=u+g*r,m=i*Math.sqrt(g+1)+f+h*.25,b=m*Math.cos(y),v=m*Math.sin(y);for(const x of s){const w=Km(l.width,l.height,x),_=b-w.width/2,$=v-w.height/2;if(!Zk(_,$,w.width,w.height,o,n)){p=Zm(Um({},l),{angle:x,centerX:b,centerY:v,box:{x:_,y:$,width:w.width,height:w.height}});break}}}if(!p){const g=s[c%s.length],y=i*Math.sqrt(a+1)+h,m=u,b=y*Math.cos(m),v=y*Math.sin(m),x=Km(l.width,l.height,g);p=Zm(Um({},l),{angle:g,centerX:b,centerY:v,box:{x:b-x.width/2,y:v-x.height/2,width:x.width,height:x.height}})}o.push(p)}),o}const Qm=t=>{const{data:e,options:n,minFontSize:r=16,maxFontSize:i=48,enableRotate:o=!0,padding:s=6,spiralStep:a=.45,radiusStep:l=10}=t,{items:c=[]}=e,h=c.map((C,A)=>({datum:C,index:A})).filter(({datum:C})=>C.label);if(h.length===0)return d(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:d(Y,{children:d(It,{})})});const u=h.map(({datum:C})=>C.value).filter(C=>typeof C=="number"),f=u.length>0,p=f?Math.min(...u):0,g=f?Math.max(...u):0,y=f&&p===g,m=(r+i)/2,b=C=>{if(!f||y)return m;if(C==null)return r;const A=(C-p)/(g-p||1);return r+A*(i-r)},v=h.map(({datum:C,index:A})=>{const B=b(C.value),k=Q(d(Et,{fontSize:B,fontWeight:"bold",children:C.label})),D=Ct(n,[A])||re(n);return{label:C.label,value:C.value,color:D,fontSize:B,width:k.width*1.05,height:k.height}}).sort((C,A)=>A.fontSize-C.fontSize),x=Kk(v,o,s,a,l),w=Math.min(...x.map(C=>C.box.x)),_=Math.min(...x.map(C=>C.box.y)),$=Math.max(...x.map(C=>C.box.x+C.box.width)),P=Math.max(...x.map(C=>C.box.y+C.box.height)),O=-w+s,T=-_+s,I=$-w+s*2,S=P-_+s*2,H=x.map((C,A)=>{const B=C.centerX-C.width/2+O,k=C.centerY-C.height/2+T,D=C.width/2,z=C.height/2,N=`translate(${B}, ${k}) rotate(${C.angle}, ${D}, ${z})`;return d(Y,{transform:N,children:d(Et,{width:C.width,height:C.height,fontSize:C.fontSize,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:C.color,"data-indexes":A,"data-element-type":kt.ItemLabel,children:C.label})})});return d(It,{id:"infographic-container",width:I,height:S,children:H})};Tt("chart-wordcloud",{component:Qm,composites:["item"]});const Jm=new Map,qc=(t,e)=>{Jm.set(t,e)},Qk=t=>{var e;return t&&(e=Jm.get(t))!=null?e:null};var Jk=Object.defineProperty,tz=Object.defineProperties,ez=Object.getOwnPropertyDescriptors,t2=Object.getOwnPropertySymbols,nz=Object.prototype.hasOwnProperty,rz=Object.prototype.propertyIsEnumerable,e2=(t,e,n)=>e in t?Jk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,n2=(t,e)=>{for(var n in e||(e={}))nz.call(e,n)&&e2(t,n,e[n]);if(t2)for(var n of t2(e))rz.call(e,n)&&e2(t,n,e[n]);return t},r2=(t,e)=>tz(t,ez(e));qc("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 E(Y,{x:e,y:n,width:s,height:a,children:[E(ne,{children:[d("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"}),d("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}),d("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})]}),d(Et,r2(n2({x:40,y:15},l),{children:"Pros"})),d(Et,r2(n2({x:70,y:85},l),{children:"Cons"}))]})});var iz=Object.defineProperty,oz=Object.defineProperties,sz=Object.getOwnPropertyDescriptors,i2=Object.getOwnPropertySymbols,az=Object.prototype.hasOwnProperty,lz=Object.prototype.propertyIsEnumerable,o2=(t,e,n)=>e in t?iz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,s2=(t,e)=>{for(var n in e||(e={}))az.call(e,n)&&o2(t,n,e[n]);if(i2)for(var n of i2(e))lz.call(e,n)&&o2(t,n,e[n]);return t},a2=(t,e)=>oz(t,sz(e));qc("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 E(Y,{x:e,y:n,width:s,height:a,children:[E(ne,{children:[d("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}),d("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}),d("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"}),d("path",{d:"M36.1034 88.9252H28.9655V93.785H36.1034V101.85H41.4828V93.785H48.6207V88.8735H41.4828V81.1701H36.1034V88.9252Z",fill:"#404040"}),d("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}),d("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}),d("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"}),d("path",{d:"M192.414 205.905V210.816H212.069V205.905H192.414Z",fill:"#404040"})]}),d(Et,a2(s2({x:153,y:77},l),{children:"PROS"})),d(Et,a2(s2({x:2,y:193},l),{children:"CONS"}))]})}),qc("vs",t=>{const{x:e,y:n,colorPrimary:r,colorBg:i}=t,o=100,s=100,a=ot(r).lighten(20).toString();return E(Y,{x:e,y:n,width:o,height:s,children:[E(zt,{children:[d("filter",{id:"vs-divider-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:d("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"})}),d(ac,{})]}),d(Lt,{x:0,y:0,width:o,height:s,fill:a,filter:"url(#vs-divider-glow-filter)",opacity:.6}),d(Lt,{x:0,y:0,width:o,height:s,fill:r,"data-element-type":"shape"}),d("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 l2=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:h,desc:u,items:f=[]}=r,p=e?d(e,{title:h,desc:u}):null;if(f.length===0)return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,d(Y,{children:d(Ot,{children:d(q,{indexes:[0],x:0,y:0})})})]});const g=f[0]||{children:[]},y=f[1]||{children:[]},m=g.children||[],b=y.children||[],v=be(c.themeConfig),x=Q(d(n,{indexes:[0,0],data:r,datum:m[0]||{}})),w=Q(d(q,{indexes:[0]})),_=Qk(l),$=_?Q(d(_,{x:0,y:0,colorPrimary:v.colorPrimary,colorBg:v.colorBg,colorPositive:v.colorPrimary,colorNegative:v.colorPrimary})):{width:0,height:0},P=[],O=[],T=[],I=Math.max(m.length,b.length),S=I>0?I*(x.height+i)-i:0,H=5,C=I>0?i/2+w.height/2:w.height/2,A=w.width+H,B=A+x.width+o,k=B+$.width+o,D=a?"flipped":"normal",z=a?"normal":s?"flipped":"normal";if(m.forEach((N,j)=>{const X=C+j*(x.height+i),L=[0,j];P.push(d(n,{indexes:L,datum:N,data:r,x:A,y:X,positionH:D,positionV:"middle"})),O.push(d(Ft,{indexes:L,x:A-w.width-H,y:X+(x.height-w.height)/2})),j<m.length-1&&O.push(d(q,{indexes:[0,j+1],x:A+(x.width-w.width)/2,y:X+x.height+i/2-w.height/2}))}),m.length>0){O.push(d(q,{indexes:[0,0],x:A+(x.width-w.width)/2,y:C-i/2-w.height/2}));const N=C+(m.length-1)*(x.height+i);O.push(d(q,{indexes:[0,m.length],x:A+(x.width-w.width)/2,y:N+x.height+i/2-w.height/2}))}else f.length>=1&&O.push(d(q,{indexes:[0,0],x:A+(x.width-w.width)/2,y:C-w.height/2}));if(b.forEach((N,j)=>{const X=C+j*(x.height+i),L=[1,j];P.push(d(n,{indexes:L,datum:N,data:r,x:k,y:X,positionH:z,positionV:"middle"})),O.push(d(Ft,{indexes:L,x:k+x.width+H,y:X+(x.height-w.height)/2})),j<b.length-1&&O.push(d(q,{indexes:[1,j+1],x:k+(x.width-w.width)/2,y:X+x.height+i/2-w.height/2}))}),b.length>0){O.push(d(q,{indexes:[1,0],x:k+(x.width-w.width)/2,y:C-i/2-w.height/2}));const N=C+(b.length-1)*(x.height+i);O.push(d(q,{indexes:[1,b.length],x:k+(x.width-w.width)/2,y:N+x.height+i/2-w.height/2}))}else f.length>=2&&O.push(d(q,{indexes:[1,0],x:k+(x.width-w.width)/2,y:C-w.height/2}));return f.length<2&&O.push(d(q,{indexes:[1],x:k+(x.width-w.width)/2,y:C+(S-w.height)/2})),_&&T.push(d(_,{x:B,y:C+(S-$.height)/2,colorPrimary:v.colorPrimary,colorBg:v.colorBg,colorPositive:Ct(c,[0])||v.colorPrimary,colorNegative:Ct(c,[1])||v.colorPrimary})),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,E(Y,{children:[d(Y,{children:T}),d(It,{children:P}),d(Ot,{children:O})]})]})};Tt("compare-binary-horizontal",{component:l2,composites:["title","item"]});var cz=Object.defineProperty,c2=Object.getOwnPropertySymbols,hz=Object.prototype.hasOwnProperty,dz=Object.prototype.propertyIsEnumerable,h2=(t,e,n)=>e in t?cz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,d2=(t,e)=>{for(var n in e||(e={}))hz.call(e,n)&&h2(t,n,e[n]);if(c2)for(var n of c2(e))dz.call(e,n)&&h2(t,n,e[n]);return t};const uz={none:5,"dot-line":100,"arc-dot":20,"split-line":5},u2=t=>{var e,n;const{Title:r,Items:i,data:o,gap:s=20,groupGap:a=0,decoration:l="none",surround:c=!0,flipRoot:h=!1,flipLeaf:u=!1,options:f}=t,[p,g]=i,{title:y,desc:m,items:b=[]}=o,v=r?d(r,{title:y,desc:m}):null,x=d(p,{indexes:[0],data:o,datum:o.items[0],themeColors:{}}),w=d(g,{indexes:[0,0],data:o,datum:((n=(e=b[0])==null?void 0:e.children)==null?void 0:n[0])||b[2]}),_=Q(x),$=Q(w),P=[],O=[],[T,I]=b,S=(T==null?void 0:T.children)||[],H=(I==null?void 0:I.children)||[],C=Math.max(_.height,S.length*($.height+s)-s,H.length*($.height+s)-s),A=uz[l]||0,B=$.width+A,k=B+_.width+a,D=(C-_.height)/2;T&&P.push(d(p,{indexes:[0],x:B,y:D,data:o,datum:T,positionH:h?"normal":"flipped"})),I&&P.push(d(p,{indexes:[1],x:k,y:D,data:o,datum:I,positionH:h?"flipped":"normal"}));const z=(N,j,X)=>{if(l==="none")return;const[L,M]=j,R=Ct(f,X),W={x:L,y:M,width:$.width,height:$.height,side:N,color:R||"#ccc",colorBg:f.themeConfig.colorBg||"#fff"};l==="split-line"?O.push(d(fz,d2({},W))):l==="dot-line"&&O.push(d(pz,d2({},W)))};if(c){const j=(2*_.width+a+$.width)/2+A,X=B+_.width+a/2,L=D+_.height/2;S.forEach((M,R)=>{const W=S.length*($.height+s)-s,V=(C-W)/2+R*($.height+s),Z=V+$.height/2-L,K=Math.max(0,j*j-Z*Z),at=X-Math.sqrt(K)-$.width/2;P.push(d(g,{indexes:[0,R],datum:M,data:o,x:at,y:V,positionH:u?"flipped":"normal"})),z("left",[at,V],[0,R])}),H.forEach((M,R)=>{const W=H.length*($.height+s)-s,V=(C-W)/2+R*($.height+s),Z=V+$.height/2-L,K=Math.max(0,j*j-Z*Z),at=X+Math.sqrt(K)-$.width/2;P.push(d(g,{indexes:[1,R],datum:M,data:o,x:at,y:V,positionH:u?"normal":"flipped"})),z("right",[at,V],[1,R])})}else S.forEach((N,j)=>{const X=S.length*($.height+s)-s,M=(C-X)/2+j*($.height+s),R=[0,j],W=0;P.push(d(g,{indexes:R,datum:N,data:o,x:W,y:M,positionH:u?"flipped":"normal"})),z("left",[W,M],R)}),H.forEach((N,j)=>{const X=H.length*($.height+s)-s,M=(C-X)/2+j*($.height+s),R=[1,j],W=k+_.width+A;P.push(d(g,{indexes:R,datum:N,data:o,x:W,y:M,positionH:u?"normal":"flipped"})),z("right",[W,M],R)});return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,E(Y,{children:[d(It,{children:P}),d(Y,{width:0,height:0,children:O})]})]})},fz=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 E(Rt,{children:[d(zt,{children:d(lc,{id:c,startColor:o,stopColor:s,direction:a==="left"?"left-right":"right-left"})}),d(St,{x:e,y:l,width:r,height:1,fill:`url(#${c})`})]})},pz=t=>{const{x:e,y:n,side:r,width:i,height:o,color:s,colorBg:a}=t,l=6,c=l/3,h=l*2,u=c*2,f=5,p=r==="left"?e+i+l+f:e-l-f,g=n+o/2,y=p-c,m=g-c,b=80,v=r==="left"?b:-b,x=`dot-line-linear-gradient-${r}`;return E(Y,{children:[d(zt,{children:d(lc,{id:x,startColor:s,stopColor:a,direction:r==="left"?"left-right":"right-left"})}),E(ne,{children:[d(Lt,{x:p-l,y:g-l,width:h,height:h,fill:"none",strokeWidth:1,stroke:s}),d(Lt,{x:y,y:m,width:u,height:u,fill:s})]}),d(St,{x:r==="left"?p:p+v,y:g-.5,width:b,height:1,fill:`url(#${x})`})]})};Tt("compare-hierarchy-left-right",{component:u2,composites:["title","item"]});const f2=t=>{var e,n;const{Title:r,Items:i,data:o,gap:s=0,itemGap:a=20,columnWidth:l=280,itemPadding:c=5,showColumnBackground:h=!0,columnBackgroundAlpha:u=.08,options:f}=t,[p,g]=i,{title:y,desc:m,items:b=[]}=o,v=r?d(r,{title:y,desc:m}):null,x=Up(f),w=[],_=[],$=l-c*2,P=Q(d(p,{indexes:[0],data:o,datum:b[0],width:l})),O=Q(d(g,{indexes:[0,0],data:o,datum:((n=(e=b[0])==null?void 0:e.children)==null?void 0:n[0])||{},width:$})),T=Q(d(q,{indexes:[0]})),I=Math.max(...b.map(H=>{var C;return((C=H.children)==null?void 0:C.length)||0}),0),S=P.height+a+I*(O.height+a);if(b.forEach((H,C)=>{const{children:A=[]}=H,B=C*(l+s),k=B,D=0;if(h){const X=`${x[C%x.length]}${Math.round(u*255).toString(16).padStart(2,"0")}`;w.push(d(St,{x:B,y:D,width:l,height:S,fill:X,rx:0,ry:0,"data-element-type":"shape"}))}w.push(d(p,{indexes:[C],datum:H,data:o,x:k,y:D,width:l})),_.push(d(Ft,{indexes:[C],x:k+P.width-T.width-10,y:D+10})),C===0&&_.push(d(q,{indexes:[C],x:k+P.width/2-T.width/2,y:D-T.height-5}));const z=D+P.height+a;A.forEach((j,X)=>{const L=z+X*(O.height+a),M=k+c,R=[C,X];w.push(d(g,{indexes:R,datum:j,data:o,x:M,y:L,width:$})),_.push(d(Ft,{indexes:R,x:M+O.width-T.width-10,y:L+(O.height-T.height)/2})),X<A.length-1&&_.push(d(q,{indexes:[C,X+1],x:M+O.width/2-T.width/2,y:L+O.height-T.height/2}))});const N=k+c;if(A.length>0){const j=z+A.length*(O.height+a);_.push(d(q,{indexes:[C,A.length],x:N+O.width/2-T.width/2,y:j-O.height/2-T.height/2}))}else _.push(d(q,{indexes:[C,0],x:N+O.width/2-T.width/2,y:z-a/2-T.height/2}))}),b.length>0){const H=b.length*(l+s);_.push(d(q,{indexes:[b.length],x:H-s/2-T.width/2,y:-T.height-5}))}return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,E(Y,{children:[d(It,{children:w}),d(Ot,{children:_})]})]})};Tt("compare-hierarchy-row",{component:f2,composites:["title","item"]});const Uc=Object.assign,gz={getId:t=>t.id||t.name,getPreH:t=>t.preH||0,getPreV:t=>t.preV||0,getHGap:t=>t.hgap||18,getVGap:t=>t.vgap||18,getChildren:t=>t.children,getHeight:t=>t.height||36,getWidth(t){const e=t.label||" ";return t.width||18*e.split("").length}};class As{constructor(e,n){if(this.x=0,this.y=0,this.depth=0,this.children=[],this.hgap=0,this.vgap=0,e instanceof As||"x"in e&&"y"in e&&"children"in e){const o=e;return this.data=o.data,this.id=o.id,this.x=o.x,this.y=o.y,this.width=o.width,this.height=o.height,this.depth=o.depth,this.children=o.children,this.parent=o.parent,this.hgap=o.hgap,this.vgap=o.vgap,this.preH=o.preH,void(this.preV=o.preV)}this.data=e;const r=n.getHGap(e),i=n.getVGap(e);this.preH=n.getPreH(e),this.preV=n.getPreV(e),this.width=n.getWidth(e),this.height=n.getHeight(e),this.width+=this.preH,this.height+=this.preV,this.id=n.getId(e),this.addGap(r,i)}isRoot(){return this.depth===0}isLeaf(){return this.children.length===0}addGap(e,n){this.hgap+=e,this.vgap+=n,this.width+=2*e,this.height+=2*n}eachNode(e){let n,r=[this];for(;n=r.shift();)e(n),r=n.children.concat(r)}DFTraverse(e){this.eachNode(e)}BFTraverse(e){let n,r=[this];for(;n=r.shift();)e(n),r=r.concat(n.children)}getBoundingBox(){const e={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(n=>{e.left=Math.min(e.left,n.x),e.top=Math.min(e.top,n.y),e.width=Math.max(e.width,n.x+n.width),e.height=Math.max(e.height,n.y+n.height)}),e}translate(e=0,n=0){this.eachNode(r=>{r.x+=e,r.y+=n,r.x+=r.preH,r.y+=r.preV})}right2left(){const e=this.getBoundingBox();this.eachNode(n=>{n.x=n.x-2*(n.x-e.left)-n.width}),this.translate(e.width,0)}bottom2top(){const e=this.getBoundingBox();this.eachNode(n=>{n.y=n.y-2*(n.y-e.top)-n.height}),this.translate(0,e.height)}}function Zc(t,e={},n){e=Uc({},gz,e);const r=new As(t,e),i=[r];let o;if(!n&&!t.collapsed){for(;o=i.shift();)if(!o.data.collapsed){const s=e.getChildren(o.data),a=s?s.length:0;if(o.children=new Array(a),s&&a)for(let l=0;l<a;l++){const c=new As(s[l],e);o.children[l]=c,i.push(c),c.parent=o,c.depth=o.depth+1}}}return r}class mz{constructor(e,n={}){this.options=n,this.rootNode=Zc(e,n)}execute(){throw new Error("please override this method")}}function yz(t,e){const n=Zc(t.data,e,!0),r=Zc(t.data,e,!0),i=t.children.length,o=Math.round(i/2),s=e.getSide||function(a,l){return l<o?"right":"left"};for(let a=0;a<i;a++){const l=t.children[a];s(l,a)==="right"?r.children.push(l):n.children.push(l)}return n.eachNode(a=>{a.isRoot()||(a.side="left")}),r.eachNode(a=>{a.isRoot()||(a.side="right")}),{left:n,right:r}}const zn=["LR","RL","TB","BT","H","V"],vz=["LR","RL","H"],bz=zn[0];function xz(t,e,n){const r=e.direction||bz;if(e.isHorizontal=(o=>vz.indexOf(o)>-1)(r),zn.indexOf(r)===-1)throw new TypeError(`Invalid direction: ${r}`);if(r===zn[0])n(t,e);else if(r===zn[1])n(t,e),t.right2left();else if(r===zn[2])n(t,e);else if(r===zn[3])n(t,e),t.bottom2top();else if(r===zn[4]||r===zn[5]){const{left:o,right:s}=yz(t,e);n(o,e),n(s,e),e.isHorizontal?o.right2left():o.bottom2top(),s.translate(o.x-s.x,o.y-s.y),t.x=o.x,t.y=s.y;const a=t.getBoundingBox();e.isHorizontal?a.top<0&&t.translate(0,-a.top):a.left<0&&t.translate(-a.left,0)}let i=e.fixedRoot;return i===void 0&&(i=!0),i&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),(function(o,s){if(s.radial){const[a,l]=s.isHorizontal?["x","y"]:["y","x"],c={x:1/0,y:1/0},h={x:-1/0,y:-1/0};let u=0;o.DFTraverse(g=>{u++;const{x:y,y:m}=g;c.x=Math.min(c.x,y),c.y=Math.min(c.y,m),h.x=Math.max(h.x,y),h.y=Math.max(h.y,m)});const f=h[l]-c[l];if(f===0)return;const p=2*Math.PI/u;o.DFTraverse(g=>{const y=g[l],m=c[l],b=g[a],v=o[a],x=(y-m)/f*(2*Math.PI-p)+p,w=b-v;g.x=Math.cos(x)*w,g.y=Math.sin(x)*w})}})(t,e),t}function p2(t,e){let n=0;return t.children.length?t.children.forEach(r=>{n+=p2(r,e)}):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function g2(t){const e=t.children,n=e.length;if(n){e.forEach(a=>{g2(a)});const r=e[0],i=e[n-1],o=i.y-r.y+i.height;let s=0;if(e.forEach(a=>{s+=a.totalHeight}),o>t.height)t.y=r.y+o/2-t.height/2;else if(e.length!==1||t.height>s){const a=t.y+(t.height-o)/2-r.y;e.forEach(l=>{l.translate(0,a)})}else t.y=(r.y+r.height/2+i.y+i.height/2)/2-t.height/2}}const wz={getSubTreeSep:()=>0};function _z(t,e={}){return e=Uc({},wz,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(n=>{n.x=n.parent.x+n.parent.width}),t.parent=void 0,p2(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(n=>{const r=n.children,i=r.length;if(i){const o=r[0];if(o.startY=n.startY+n._subTreeSep,i===1)o.y=n.y+n.height/2-o.height/2;else{o.y=o.startY+o.totalHeight/2-o.height/2;for(let s=1;s<i;s++){const a=r[s];a.startY=r[s-1].startY+r[s-1].totalHeight,a.y=a.startY+a.totalHeight/2-a.height/2}}}}),g2(t),t}class $z extends mz{execute(){return xz(this.rootNode,this.options,_z)}}const Pz={};function Oz(t,e){const n=Uc({},Pz,e);return new $z(t,n).execute()}var Cz=Object.defineProperty,Mz=Object.defineProperties,Sz=Object.getOwnPropertyDescriptors,m2=Object.getOwnPropertySymbols,Ez=Object.prototype.hasOwnProperty,Iz=Object.prototype.propertyIsEnumerable,y2=(t,e,n)=>e in t?Cz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Tz=(t,e)=>{for(var n in e||(e={}))Ez.call(e,n)&&y2(t,n,e[n]);if(m2)for(var n of m2(e))Iz.call(e,n)&&y2(t,n,e[n]);return t},Az=(t,e)=>Mz(t,Sz(e));const kz=60,zz=14,v2=30,b2="center",Lz="curved",Rz=2,Hz="node",Dz="solid",x2=(t,e=[],n=0)=>{var r,i;const o=[...e,n];return Az(Tz({},t),{_indexes:o,children:(i=(r=t.children)==null?void 0:r.map((s,a)=>x2(s,o,a)))!=null?i:[]})},w2=(t,e,n,r)=>{var i,o;e.push(t),(o=(i=t.data)._flatIndex)!=null||(i._flatIndex=e.length-1),r&&n.push({parent:r,child:t});const s=t.children;s==null||s.forEach(a=>w2(a,e,n,t))},Nz=(t,e,n,r)=>{const i=Math.abs(n-t)/2,o=n>t?t+i:t-i,s=n>t?n-i:n+i;return`M ${t} ${e} C ${o} ${e} ${s} ${r} ${n} ${r}`},jz=(t,e,n,r)=>`M ${t} ${e} L ${n} ${r}`,Fz=(t,e,n,r=b2)=>{const i=c=>Math.max(0,Math.min(1,c)),s=(c=>c==="top"?0:c==="bottom"?1:c==="center"?.5:i(c))(r),a=t.y+t.height*s,l=e.y+e.height*s;return n==="left"?{sx:t.x,sy:a,tx:e.x+e.width,ty:l}:{sx:t.x+t.width,sy:a,tx:e.x,ty:l}},_2=t=>{var e,n;const{Title:r,Items:i,data:o,levelGap:s=kz,nodeGap:a=zz,edgeAlign:l=b2,colorMode:c=Hz,edgeColorMode:h=Dz,edgeType:u=Lz,edgeWidth:f=Rz,options:p}=t,{title:g,desc:y,items:m=[]}=o,b=r?d(r,{title:g,desc:y}):null,v=re(p),x=Q(d(q,{indexes:[0]}));if(!m.length||!(i!=null&&i.length))return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[b,d(Y,{children:d(q,{indexes:[0],x:0,y:0})})]});const w=x2(m[0]),_=new WeakMap,$=new WeakMap,P=new WeakMap,O=(R,W)=>bi({depth:W,originalIndexes:R._indexes,flatIndex:R._flatIndex},c),T=(R,W)=>{const U=P.get(R);if(U)return U;const V=O(R,W),G=Ct(p,V),Z=be({colorPrimary:G},p);return P.set(R,Z),$.set(R,G),Z},I=R=>{const W=_.get(R);if(W)return W;const U=Math.max(R._indexes.length-1,0),V=is(i,U),G=Q(d(V,{indexes:R._indexes,data:o,datum:R,positionH:"center",positionV:"middle",themeColors:T(R,U)}));return _.set(R,G),G},S=Oz(w,{direction:"H",getSide:(R,W)=>{if(!R.parent)return"right";const U=(R.parent.children||[]).indexOf(R);return(U>=0?U:W)%2===0?"left":"right"},getWidth:R=>I(R).width,getHeight:R=>I(R).height,getHGap:()=>s,getVGap:()=>a}),H=[],C=[];w2(S,H,C);const A=H.length>0?Math.min(...H.map(R=>R.x)):0,B=H.length>0?Math.min(...H.map(R=>R.y)):0,k=v2-A,D=v2-B,z=[],N=[],j=[],X=[],L=new WeakMap;H.forEach(R=>{var W,U;const V=R.data,G=I(V),Z=R.x+k+((W=R.hgap)!=null?W:0),K=R.y+D+((U=R.vgap)!=null?U:0),nt=is(i,R.depth),at=R.depth===0?"center":R.side==="left"?"flipped":"normal",pt=T(V,R.depth);j.push(d(nt,{indexes:V._indexes,data:o,datum:V,x:Z,y:K,positionH:at,positionV:"middle",themeColors:pt})),L.set(R,{x:Z,y:K,width:G.width,height:G.height,centerX:Z+G.width/2,centerY:K+G.height/2})}),C.forEach(R=>{var W,U,V,G;const{parent:Z,child:K}=R,nt=L.get(K),at=L.get(Z);if(!nt||!at)return;const pt=K.data,{sx:ft,sy:rt,tx:tt,ty:et}=Fz(at,nt,K.side,l),st=(W=$.get(pt))!=null?W:Ct(p,O(pt,K.depth)),vt=(U=$.get(Z.data))!=null?U:Ct(p,O(Z.data,Z.depth)),gt=u==="straight"?jz(ft,rt,tt,et):Nz(ft,rt,tt,et),dt=`edge-gradient-${pt._indexes.join("-")}`;N.push(d(ht,{d:gt,stroke:h==="gradient"?`url(#${dt})`:st!=null?st:v,strokeWidth:f,fill:"none"})),h==="gradient"&&z.push(E("linearGradient",{id:dt,gradientUnits:"userSpaceOnUse",x1:ft,y1:rt,x2:tt,y2:et,children:[d("stop",{offset:"0%",stopColor:vt!=null?vt:v}),d("stop",{offset:"100%",stopColor:st!=null?st:v})]}));const ct=(G=(V=pt.children)==null?void 0:V.length)!=null?G:0,ut=[...pt._indexes,ct],mt=nt.x+(nt.width-x.width)/2,Pt=nt.y+nt.height+8,yt=Pt+x.height+6;K.depth>0&&X.push(d(Ft,{indexes:pt._indexes,x:mt,y:Pt})),X.push(d(q,{indexes:ut,x:mt,y:yt}))});const M=L.get(S);if(M){const R=S.data,W=(n=(e=R.children)==null?void 0:e.length)!=null?n:0,U=[...R._indexes,W],V=M.x+(M.width-x.width)/2,G=M.y+M.height+8+x.height+6;X.push(d(q,{indexes:U,x:V,y:G}))}return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[b,E(Y,{children:[z.length>0?d(zt,{children:z}):null,d(Y,{children:N}),d(It,{children:j}),d(Ot,{children:X})]})]})};Tt("hierarchy-mindmap",{component:_2,composites:["title","item"]});var Bz=Object.defineProperty,Wz=Object.defineProperties,Vz=Object.getOwnPropertyDescriptors,$2=Object.getOwnPropertySymbols,Yz=Object.prototype.hasOwnProperty,Xz=Object.prototype.propertyIsEnumerable,P2=(t,e,n)=>e in t?Bz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ks=(t,e)=>{for(var n in e||(e={}))Yz.call(e,n)&&P2(t,n,e[n]);if($2)for(var n of $2(e))Xz.call(e,n)&&P2(t,n,e[n]);return t},zs=(t,e)=>Wz(t,Vz(e));const O2=(t,e)=>{const n=Math.max(0,e/2-1);return Math.min(t,n)},C2=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:h="5,5",edgeCornerRadius:u=0,edgeOffset:f=0,edgeOrigin:p="center",edgeOriginPadding:g=20,edgeMarker:y="none",markerSize:m=12,colorMode:b="branch",orientation:v="top-bottom",options:x}=t,w=v==="left-right"||v==="right-left",_=v==="bottom-top"||v==="right-left"?-1:1,{title:$,desc:P}=r,O=re(x),T=rt=>{var tt;const et=[...rt];return(tt=et[0])!=null&&tt.children||(et[0]=zs(ks({},et[0]),{children:et.slice(1)}),et.splice(1)),et},I=(rt,tt,et,st,vt,gt="vertical")=>{const dt=gt==="vertical",ct=dt?st-tt:et-rt,ut=dt?et-rt:st-tt,mt=ct===0?1:Math.sign(ct),Pt=ut===0?1:Math.sign(ut),yt=dt?tt+ct/2:rt+ct/2,Mt=Math.min(vt,Math.abs(ct)/2,Math.abs(ut)/2);return Mt===0?dt?`M ${rt} ${tt} L ${rt} ${yt} L ${et} ${yt} L ${et} ${st}`:`M ${rt} ${tt} L ${yt} ${tt} L ${yt} ${st} L ${et} ${st}`:dt?`M ${rt} ${tt}
|
|
83
|
+
L ${rt} ${yt-mt*Mt}
|
|
84
|
+
Q ${rt} ${yt} ${rt+Pt*Mt} ${yt}
|
|
85
|
+
L ${et-Pt*Mt} ${yt}
|
|
86
|
+
Q ${et} ${yt} ${et} ${yt+mt*Mt}
|
|
87
|
+
L ${et} ${st}`:`M ${rt} ${tt}
|
|
88
|
+
L ${yt-mt*Mt} ${tt}
|
|
89
|
+
Q ${yt} ${tt} ${yt} ${tt+Pt*Mt}
|
|
90
|
+
L ${yt} ${st-Pt*Mt}
|
|
91
|
+
Q ${yt} ${st} ${yt+mt*Mt} ${st}
|
|
92
|
+
L ${et} ${st}`},S=rt=>{const{x:tt,y:et}=rt;return w?{x:et*_,y:tt}:{x:tt,y:et*_}},H=(rt,tt,et)=>{const{x:st,y:vt}=S(rt),gt=st+et.x,dt=vt+et.y,ct=dt+tt.height/2;return{centerX:gt,centerY:ct,left:gt-tt.width/2,right:gt+tt.width/2,top:dt,bottom:dt+tt.height}},C=rt=>{var tt;if(!rt.length)return null;const et=rt[0],st=(vt,gt=[],dt=0)=>{var ct,ut;const mt=[...gt,dt];return zs(ks({},vt),{_originalIndex:mt,_depth:mt.length-1,children:(ut=(ct=vt.children)==null?void 0:ct.map((Pt,yt)=>st(Pt,mt,yt)))!=null?ut:[]})};return(tt=et.children)!=null&&tt.length?st(et):zs(ks({},et),{_originalIndex:[0],_depth:0,children:rt.slice(1).map((vt,gt)=>zs(ks({},vt),{_originalIndex:[gt+1],_depth:1}))})},A=rt=>{var tt,et;let st=0,vt=0;const gt=new Map,dt=new Map;rt.each(ct=>{dt.has(ct.depth)||dt.set(ct.depth,ct.data)});for(let ct=0;ct<rt.height+1;ct++){const ut=is(n,ct),mt=(tt=dt.get(ct))!=null?tt:{},Pt=(et=mt._originalIndex)!=null?et:Array(ct+1).fill(0),yt=Q(d(ut,{indexes:Pt,data:r,datum:mt,positionH:"center"}));gt.set(ct,yt),st=Math.max(st,yt.width),vt=Math.max(vt,yt.height)}return{levelBounds:gt,maxWidth:st,maxHeight:vt}},B=(rt,tt,et,st,vt,gt)=>{const{depth:dt,data:ct,parent:ut}=rt,mt=ct._originalIndex,Pt=is(n,dt),yt=tt.get(dt),Mt=H(rt,yt,st),te=Mt.left,he=Mt.top,me={items:[],btns:[],deco:[]},Ut=bi({depth:dt,originalIndexes:mt,flatIndex:ct._flatIndex},b),ae=Ct(x,Ut),dn=be({colorPrimary:ae},x);if(me.items.push(d(Pt,{indexes:mt,datum:ct,data:r,x:te,y:he,positionH:"center",themeColors:dn})),me.btns.push(d(Ft,{indexes:mt,x:te+(yt.width-et.width)/2,y:he+yt.height+5}),d(q,{indexes:[...mt,0],x:te+(yt.width-et.width)/2,y:he+yt.height+et.height+10})),ut){const je=tt.get(ut.depth),Nt=H(ut,je,st),pr=gt.filter(Gt=>Gt.parent===ut),bt=pr.findIndex(Gt=>Gt===rt),ee=pr.length;let At,Bt;if(p==="distributed"&&ee>1)if(w){const Gt=O2(g,je.height),Ue=Nt.top+Gt,gr=(Nt.bottom-Gt-Ue)/ee;Bt=Ue+gr*bt+gr/2,At=(_>0?Nt.right:Nt.left)+f*_}else{const Gt=O2(g,je.width),Ue=Nt.left+Gt,gr=(Nt.right-Gt-Ue)/ee;At=Ue+gr*bt+gr/2,Bt=(_>0?Nt.bottom:Nt.top)+f*_}else At=w?(_>0?Nt.right:Nt.left)+f*_:Nt.centerX,Bt=w?Nt.centerY:(_>0?Nt.bottom:Nt.top)+f*_;const fe=w?(_>0?Mt.left:Mt.right)-f*_:Mt.centerX,le=w?Mt.centerY:(_>0?Mt.top:Mt.bottom)-f*_;let Te=fe,Re=le;y==="arrow"&&(w?Te-=m*_:Re-=m*_);let Dn;if(s==="curved")if(w){const Gt=At+(Te-At)/2;Dn=`M ${At} ${Bt} C ${Gt} ${Bt}, ${Gt} ${Re}, ${Te} ${Re}`}else{const Gt=Bt+(Re-Bt)/2;Dn=`M ${At} ${Bt} C ${At} ${Gt}, ${Te} ${Gt}, ${Te} ${Re}`}else if(u>0)Dn=I(At,Bt,Te,Re,u,w?"horizontal":"vertical");else if(w){const Gt=At+(Te-At)/2;Dn=`M ${At} ${Bt} L ${Gt} ${Bt} L ${Gt} ${Re} L ${Te} ${Re}`}else{const Gt=Bt+(Re-Bt)/2;Dn=`M ${At} ${Bt} L ${At} ${Gt} L ${Te} ${Gt} L ${Te} ${Re}`}let la=O;if(a==="gradient"){const Gt=bi({depth:ut.depth,originalIndexes:ut.data._originalIndex,flatIndex:ut.data._flatIndex},b),Ue=bi({depth:dt,originalIndexes:mt,flatIndex:ct._flatIndex},b),Fi=Ct(x,Gt),gr=Ct(x,Ue),iv=`gradient-${ut.data._originalIndex.join("-")}-${mt.join("-")}`;vt.push(E("linearGradient",{id:iv,x1:At,y1:Bt,x2:Te,y2:Re,gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0%",stopColor:Fi}),d("stop",{offset:"100%",stopColor:gr})]})),la=`url(#${iv})`}const wh=c==="dashed"?h:"";if(me.deco.push(d(ht,{d:Dn,stroke:la,strokeWidth:l,strokeDasharray:wh,fill:"none"})),y==="arrow"){const Gt=a==="gradient"?Ct(x,Ut):re(x),Ue=w?[{x:fe,y:le},{x:fe-m*_,y:le-m/2},{x:fe-m*_,y:le+m/2}]:[{x:fe,y:le},{x:fe-m/2,y:le-m*_},{x:fe+m/2,y:le-m*_}];me.deco.push(d(De,{points:Ue,fill:Gt,width:m,height:m}))}if(y==="dot"){const Gt=bi({depth:ut.depth,originalIndexes:ut.data._originalIndex,flatIndex:ut.data._flatIndex},b),Ue=a==="gradient"?Ct(x,Gt):re(x);me.deco.push(d(Lt,{x:(w?_>0?Nt.right+f:Nt.left-f:At)-m,y:(w?Bt:_>0?Nt.bottom+f:Nt.top-f)-m,width:m*2,height:m*2,fill:Ue}));const Fi=a==="gradient"?Ct(x,Ut):re(x);me.deco.push(d(Lt,{x:fe-m,y:le-m,width:m*2,height:m*2,fill:Fi}))}}return me},k=(rt,tt,et)=>{const st=new Map;rt.forEach(gt=>{var dt;const ct=gt.parent?gt.parent.data._originalIndex.join("-"):"root";((dt=st.get(ct))!=null?dt:st.set(ct,[]).get(ct)).push(gt)});const vt=[];return st.forEach(gt=>{if(gt.length<=1)return;const dt=gt.slice().sort((ct,ut)=>w?S(ct).y-S(ut).y:S(ct).x-S(ut).x);if(dt.length!==0)for(let ct=0;ct<dt.length-1;ct++){const ut=S(dt[ct]),mt=S(dt[ct+1]),Pt=dt[ct].data._originalIndex.slice(0,-1),yt=dt[ct].data._originalIndex.at(-1)+1;if(w){const Mt=ut.x+et.x+(_>0?-tt.width-5:tt.width+5),te=(ut.y+mt.y)/2+et.y-tt.height/2;vt.push(d(q,{indexes:[...Pt,yt],x:Mt,y:te}))}else{const Mt=ut.y+et.y-tt.height-5,te=(ut.x+mt.x)/2+et.x-tt.width/2;vt.push(d(q,{indexes:[...Pt,yt],x:te,y:Mt}))}}}),vt},D=T(r.items),z=e?d(e,{title:$,desc:P}):null,N=Q(d(q,{indexes:[0]}));if(!D.length)return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[z,d(Y,{children:d(Ot,{children:d(q,{indexes:[0],x:-N.width/2,y:-N.height/2})})})]});const j=C(D),X=Dc(j),{levelBounds:L,maxWidth:M,maxHeight:R}=A(X),U=NT().nodeSize(w?[R+o,M+i]:[M+o,R+i]).separation(()=>1)(X).descendants(),V=U.map(rt=>S(rt)),G=Math.min(...V.map(rt=>rt.x)),Z=Math.min(...V.map(rt=>rt.y)),K={x:Math.max(0,-G+M/2),y:Math.max(0,-Z+N.height+10)},nt=[],at=[],pt=[],ft=[];return U.forEach((rt,tt)=>{rt.data._flatIndex=tt;const{x:et,y:st}=S(rt);rt.__layout={x:et,y:st}}),U.forEach(rt=>{const{items:tt,btns:et,deco:st}=B(rt,L,N,K,ft,U);nt.push(...tt),at.push(...et),pt.push(...st)}),at.push(...k(U,N,K)),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[z,E(Y,{children:[ft.length>0&&d(zt,{children:ft}),d(ne,{children:pt}),d(It,{children:nt}),d(Ot,{children:at})]})]})};Tt("hierarchy-tree",{component:C2,composites:["title","item"]});const M2=t=>{const{Title:e,Item:n,data:r,gap:i=20,width:o,zigzag:s}=t,{title:a,desc:l,items:c=[]}=r,h=Q(d(q,{indexes:[0]})),u=Q(d(n,{indexes:[0],data:r,datum:c[0]})),f=o||u.width,p=e?d(e,{title:a,desc:l}):null,g=[],y=[],m=(f-h.width)/2;if(c.forEach((b,v)=>{const x=(u.height+i)*v,w=[v];y.push(d(n,{indexes:w,datum:b,data:r,y:x,width:f,positionV:"middle",positionH:s?v%2===0?"normal":"flipped":"normal"})),g.push(d(Ft,{indexes:w,x:-h.width-10,y:x+(u.height-h.height)/2}));const _=v===0?-h.height:x-i/2-h.height/2;g.push(d(q,{indexes:w,x:m,y:_}))}),c.length>0){const v=(u.height+i)*(c.length-1)+u.height;g.push(d(q,{indexes:[c.length],x:m,y:v}))}return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,E(Y,{children:[d(It,{children:y}),d(Ot,{children:g})]})]})};Tt("list-column",{component:M2,composites:["title","item"]});const S2=t=>{const{Title:e,Item:n,data:r,columns:i=3,gap:o=24,zigzag:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?d(e,{title:a,desc:l}):null,u=Q(d(q,{indexes:[0]})),f=Q(d(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),p=[],g=[],y=f.height+o,m=f.width+o,b=new Set;return c.forEach((v,x)=>{const w=Math.floor(x/i),_=x%i,$=_*m,P=w*y,O=[x];g.push(d(n,{indexes:O,datum:v,data:r,x:$,y:P,positionH:"center",positionV:s&&x%2===0?"normal":"flipped"})),p.push(d(Ft,{indexes:O,x:$+(f.width-u.width)/2,y:P+f.height})),_<i-1&&p.push(d(q,{indexes:[x+1],x:$+f.width+(o-u.width)/2,y:P+(f.height-u.height)/2})),_===0&&!b.has(w)&&(p.push(d(q,{indexes:[x],x:$-o/2-u.width/2,y:P+(f.height-u.height)/2})),b.add(w)),(_===i-1||x===c.length-1)&&p.push(d(q,{indexes:[x+1],x:$+f.width+o/2-u.width/2,y:P+(f.height-u.height)/2}))}),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,E(Y,{children:[d(It,{children:g}),d(Ot,{children:p})]})]})};Tt("list-grid",{component:S2,composites:["title","item"]});const E2=t=>{const{Title:e,Item:n,data:r,gap:i=20,levelGap:o=20}=t,{title:s,desc:a,items:l=[]}=r,c=e?d(e,{title:s,desc:a}):null,h=Q(d(q,{indexes:[0]})),u=Q(d(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),f=[],p=[],g=Math.ceil(Math.sqrt(l.length)),y=[];let m=l.length;for(let _=0;_<g;_++){const $=Math.min(_+1,m);if(y.push($),m-=$,m<=0)break}let b=0;const v=Math.max(...y),w=(v*u.width+(v-1)*i)/2;return y.forEach((_,$)=>{const P=$*(u.height+o),O=_*u.width+(_-1)*i,T=w-O/2;for(let I=0;I<_&&b<l.length;I++){const S=T+I*(u.width+i),H=l[b],C=[b];p.push(d(n,{indexes:C,datum:H,data:r,x:S,y:P,positionH:"center"})),f.push(d(Ft,{indexes:C,x:S+(u.width-h.width)/2,y:P+u.height})),I<_-1&&f.push(d(q,{indexes:[b+1],x:S+u.width+(i-h.width)/2,y:P+(u.height-h.height)/2})),I===0&&f.push(d(q,{indexes:[b],x:S-i/2-h.width/2,y:P+(u.height-h.height)/2})),I===_-1&&f.push(d(q,{indexes:[b+1],x:S+u.width+i/2-h.width/2,y:P+(u.height-h.height)/2})),b++}}),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,E(Y,{children:[d(It,{children:p}),d(Ot,{children:f})]})]})};Tt("list-pyramid",{component:E2,composites:["title","item"]});const I2=t=>{const{Title:e,Item:n,data:r,gap:i=20,zigzag:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?d(e,{title:s,desc:a}):null,h=Q(d(q,{indexes:[0]})),u=Q(d(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),f=[],p=[],g=(u.height-h.height)/2,y=u.height;if(l.forEach((m,b)=>{const v=(u.width+i)*b,x=[b];p.push(d(n,{indexes:x,datum:m,data:r,x:v,positionH:"center",positionV:o&&b%2===0?"normal":"flipped"})),f.push(d(Ft,{indexes:x,x:v+(u.width-h.width)/2,y}));const w=b===0?-(i+h.width)/2:v-(i+h.width)/2;f.push(d(q,{indexes:x,x:w,y:g}))}),l.length>0){const b=(u.width+i)*(l.length-1)+u.width+(i-h.width)/2;f.push(d(q,{indexes:[l.length],x:b,y:g}))}return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,E(Y,{children:[d(It,{children:p}),d(Ot,{children:f})]})]})};Tt("list-row",{component:I2,composites:["title","item"]});var Gz=Object.defineProperty,T2=Object.getOwnPropertySymbols,qz=Object.prototype.hasOwnProperty,Uz=Object.prototype.propertyIsEnumerable,A2=(t,e,n)=>e in t?Gz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Zz=(t,e)=>{for(var n in e||(e={}))qz.call(e,n)&&A2(t,n,e[n]);if(T2)for(var n of T2(e))Uz.call(e,n)&&A2(t,n,e[n]);return t};const k2=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:h=[]}=n,u=be(l.themeConfig),f=Q(d(q,{indexes:[0]})),p=[],g=[],y=[],m=r+100,b=r+100,v=s-o,x=Math.abs(v-360)<.01,w=h.length>0?a*(x?h.length:h.length-1):0,_=v-w,$=h.length>0?_/h.length:0;if(h.forEach((C,A)=>{var B;const k=[A],D=o+($+a)*A,z=D+$,j=a*Math.PI*r/180/i*(180/Math.PI),X=a,L=(D+X/2)*Math.PI/180,M=(z-X/2)*Math.PI/180,R=(D+j/2)*Math.PI/180,W=(z-j/2)*Math.PI/180,U=m+r*Math.cos(L),V=b+r*Math.sin(L),G=m+r*Math.cos(M),Z=b+r*Math.sin(M),K=m+i*Math.cos(R),nt=b+i*Math.sin(R),at=m+i*Math.cos(W),pt=b+i*Math.sin(W),ft=$>180?1:0,rt=`
|
|
93
|
+
M ${U} ${V}
|
|
94
|
+
A ${r} ${r} 0 ${ft} 1 ${G} ${Z}
|
|
95
|
+
L ${at} ${pt}
|
|
96
|
+
A ${i} ${i} 0 ${ft} 0 ${K} ${nt}
|
|
92
97
|
Z
|
|
93
|
-
`.trim(),
|
|
94
|
-
M ${m} ${
|
|
95
|
-
L ${
|
|
98
|
+
`.trim(),tt=Ct(l,k);y.push(d(ht,{id:"shape-sector",d:rt,fill:tt,width:r*2+200,height:r*2+200,"data-element-type":"shape"}));const st=(D+$/2)*Math.PI/180,vt=(r+i)/2,gt=r-i,dt=$*Math.PI/180,ct=vt*dt,ut=Math.min(ct*.8,gt*.9),mt=Math.min(gt*.9,ct*.8),Pt=Q(d(e,{indexes:[0],data:n,datum:h[0],positionH:"center",width:ut,height:mt})),yt=m+vt*Math.cos(st)-Pt.width/2,Mt=b+vt*Math.sin(st)-Pt.height/2;g.push(d(e,{indexes:k,datum:C,data:n,x:yt,y:Mt,positionH:"center",width:ut,height:mt,themeColors:Zz({},be({colorBg:Ct(l,k),colorPrimary:((B=l.themeConfig)==null?void 0:B.colorBg)||"white"}))}));const te=r+10,he=m+te*Math.cos(st)-f.width/2,me=b+te*Math.sin(st)-f.height/2;if(p.push(d(Ft,{indexes:k,x:he,y:me})),x||A<h.length-1){const ae=(z+a/2)*Math.PI/180,dn=vt,je=m+dn*Math.cos(ae)-f.width/2,Nt=b+dn*Math.sin(ae)-f.height/2;p.push(d(q,{indexes:[A+1],x:je,y:Nt}))}}),h.length>0){const A=(o-a/2)*Math.PI/180,B=(r+i)/2,k=m+B*Math.cos(A)-f.width/2,D=b+B*Math.sin(A)-f.height/2;p.push(d(q,{indexes:[0],x:k,y:D}))}const P=i*.9;let O=m,T=b,I=P*1.4,S=P*1.4;if(!x){const A=(o+s)/2*Math.PI/180,B=P*.5;O=m+B*Math.cos(A),T=b+B*Math.sin(A);const k=v*Math.PI*B/180;I=Math.min(k*.8,P*1.4),S=Math.min(B*1.5,P*1.4)}let H="";if(x)H="";else{const C=o*Math.PI/180,A=s*Math.PI/180,B=m+P*Math.cos(C),k=b+P*Math.sin(C),D=m+P*Math.cos(A),z=b+P*Math.sin(A),N=v>180?1:0;H=`
|
|
99
|
+
M ${m} ${b}
|
|
100
|
+
L ${B} ${k}
|
|
96
101
|
A ${P} ${P} 0 ${N} 1 ${D} ${z}
|
|
97
102
|
Z
|
|
98
|
-
`.trim()}return E(X,{id:"infographic-container",children:[d(X,{children:y}),b?d(St,{id:"shape-center-circle",x:m-P,y:x-P,width:P*2,height:P*2,fill:u.colorPrimaryBg,fillOpacity:.5,"data-element-type":"shape"}):d(at,{id:"shape-center-sector",d:R,fill:u.colorPrimaryBg,fillOpacity:.5,width:r*2+200,height:r*2+200,"data-element-type":"shape"}),d($t,{x:O-I/2,y:T-S/2,width:I,height:S,alignHorizontal:"center",alignVertical:"middle",fontSize:24,fontWeight:"bold",fill:u.colorText,"data-element-type":Ct.Title,children:c}),d(Pt,{children:g}),d(bt,{children:p})]})};Ot("list-sector",{component:e2,composites:["title","item"]});const n2=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,h=e?d(e,{title:a,desc:l}):null,u=tt(d(K,{indexes:[0]})),f=tt(d(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),p=[],g=[],y=f.width+o;return c.forEach((m,x)=>{const v=x%i,b=Math.floor(x/i),_=v*y,w=b*(f.height+o),$=v*s,P=w+$,O=[x];g.push(d(n,{indexes:O,datum:m,data:r,x:_,y:P,positionH:"center"})),p.push(d(Ht,{indexes:O,x:_+(f.width-u.width)/2,y:P+f.height+5}))}),c.forEach((m,x)=>{const v=x%i,b=Math.floor(x/i),_=v*y,w=b*(f.height+o),$=v*s,P=w+$;if(x===0&&p.push(d(K,{indexes:[0],x:_-o/2-u.width/2,y:P+(f.height-u.height)/2})),v<i-1&&x<c.length-1){const O=Math.floor((x+1)/i);b===O&&p.push(d(K,{indexes:[x+1],x:_+f.width+(o-u.width)/2,y:P+(f.height-u.height)/2}))}(v===i-1||x===c.length-1)&&p.push(d(K,{indexes:[x+1],x:_+f.width+(o-u.width)/2,y:P+(f.height-u.height)/2}))}),c.length===0&&p.push(d(K,{indexes:[0],x:(i-1)*y/2+(f.width-u.width)/2,y:0})),E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,E(X,{children:[d(Pt,{children:g}),d(bt,{children:p})]})]})};Ot("list-waterfall",{component:n2,composites:["title","item"]});const zc={axisColor:"#D9D9D9",axisArrowSize:5,strokeWidth:1,dashArray:"4,2",defaultExtraSpacing:20},r2=t=>{const{Title:e,Item:n,data:r,quadrantWidth:i,quadrantHeight:o,showAxis:s=!0,dashedAxis:a=!0}=t,{title:l,desc:c,items:h=[]}=r,u=e?d(e,{title:l,desc:c}):null,f=Array.from({length:4},(b,_)=>h[_]),p=f[0]?tt(d(n,{indexes:[0],data:r,datum:f[0]})):{width:0,height:0},g=i!=null?i:p.width+zc.defaultExtraSpacing,y=o!=null?o:p.height+zc.defaultExtraSpacing,m=Nk(g,y,p),x=f.map((b,_)=>{if(!b)return null;const w=m[_];return d(n,{indexes:[_],datum:b,data:r,x:w.x,y:w.y,positionH:_%2?"flipped":"normal",positionV:_<2?"normal":"flipped"})}).filter(Boolean),v=Dk(g,y,s,a);return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,E(X,{width:g*2,height:y*2,children:[v,d(Pt,{children:x})]})]})};function Dk(t,e,n,r){if(!n)return[];const{axisColor:i,axisArrowSize:o,strokeWidth:s,dashArray:a}=zc,l=t,c=e,h=t*2,u=e*2,f=r?a:void 0;return[d(at,{d:`M 0 ${c} L ${h} ${c}`,stroke:i,strokeWidth:s,strokeDasharray:f,fill:"none","data-element-type":"shape"}),E(qt,{transform:`translate(${h}, ${c})`,children:[d(at,{d:`M 0 0 L ${-o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),d(at,{d:`M 0 0 L ${-o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),E(qt,{transform:`translate(0, ${c})`,children:[d(at,{d:`M 0 0 L ${o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),d(at,{d:`M 0 0 L ${o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),d(at,{d:`M ${l} 0 L ${l} ${u}`,stroke:i,strokeWidth:s,strokeDasharray:f,fill:"none","data-element-type":"shape"}),E(qt,{transform:`translate(${l}, 0)`,children:[d(at,{d:`M 0 0 L ${-o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"}),d(at,{d:`M 0 0 L ${o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"})]}),E(qt,{transform:`translate(${l}, ${u})`,children:[d(at,{d:`M 0 0 L ${-o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"}),d(at,{d:`M 0 0 L ${o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"})]})]}function Nk(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}]}Ot("quadrant",{component:r2,composites:["title","item"]});const i2=t=>{const{Title:e,Item:n,data:r,radius:i=150,startMode:o="top"}=t,{title:s,desc:a,items:l=[]}=r,c=e?d(e,{title:s,desc:a}):null,h=tt(d(K,{indexes:[0]})),u=tt(d(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),f=[],p=[];if(l.length===0)return f.push(d(K,{indexes:[0],x:-h.width/2,y:-h.height/2})),E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,d(X,{children:d(bt,{children:f})})]});const g=Math.max(u.width,u.height),y=Math.max(i,g),m=y+g/2,x=l.map(()=>{const $=u.width,P=u.height;return($+P)/2}),v=x.reduce(($,P)=>$+P,0);let b;o==="equal"?b=-Math.PI/2:b=-Math.PI/2+2*Math.PI/l.length/2;let _=b;l.forEach(($,P)=>{const O=x[P]/v*2*Math.PI,T=_+O/2;_+=O;const I=m+y*Math.cos(T)-u.width/2,S=m+y*Math.sin(T)-u.height/2;p.push(d(n,{indexes:[P],datum:$,data:r,x:I,y:S}));const R=y-Math.max(u.width,u.height)/2-20,M=m+R*Math.cos(T)-h.width/2,A=m+R*Math.sin(T)-h.height/2;f.push(d(Ht,{indexes:[P],x:M,y:A}))});const w=y-Math.max(u.width,u.height)/2-20;if(l.length>0)for(let $=0;$<l.length;$++){const P=$*2*Math.PI/l.length-Math.PI/2,O=($+1)%l.length*2*Math.PI/l.length-Math.PI/2;let T;if($===l.length-1){const R=O+2*Math.PI-P;T=P+R/2}else T=(P+O)/2;const I=m+w*Math.cos(T)-h.width/2,S=m+w*Math.sin(T)-h.height/2;f.push(d(K,{indexes:[$+1],x:I,y:S}))}return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,E(X,{children:[d(Pt,{children:p}),d(bt,{children:f})]})]})};Ot("relation-circle",{component:i2,composites:["title","item"]});const o2=t=>{const{Title:e,Item:n,data:r,spacing:i=120,showConnections:o=!0,options:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?d(e,{title:a,desc:l}):null;if(c.length===0)return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,d(X,{children:d(Pt,{})})]});const u=tt(d(n,{indexes:[0],data:r,datum:c[0],positionH:"center"}));function f(){const P=c.map((I,S)=>({id:S,data:I,isCenter:S===0,_originalIndex:[S]})),O=c.slice(1).map((I,S)=>({source:0,target:S+1})),T=KE(P).force("link",VE(O).id(I=>I.id).distance(i)).force("charge",QE().strength(-50)).force("center",wE(0,0)).force("collision",BE().radius(Math.max(u.width,u.height)/2+10));for(let I=0;I<300;++I)T.tick();return{nodes:P,links:O}}const{nodes:p,links:g}=f(),y=Math.min(...p.map(P=>{var O;return(O=P.x)!=null?O:0})),m=Math.min(...p.map(P=>{var O;return(O=P.y)!=null?O:0})),x=Math.max(0,-y+u.width/2),v=Math.max(0,-m+u.height/2),b=(P,O)=>({positionH:P<-50?"flipped":P>50?"normal":"center",positionV:O<-50?"flipped":O>50?"normal":"middle"}),_=p.map(P=>{if(P.x==null||P.y==null)return null;const O=P.x+x-u.width/2,T=P.y+v-u.height/2,{positionH:I,positionV:S}=b(P.x,P.y);return d(n,{indexes:P._originalIndex,datum:P.data,data:r,x:O,y:T,positionH:I,positionV:S},P.id)}).filter(Boolean),w=new Map(p.map(P=>[P.id,P])),$=o?g.map(P=>{const O=typeof P.source=="object"?P.source:w.get(P.source),T=typeof P.target=="object"?P.target:w.get(P.target);if(!O||!T||O.x==null||O.y==null||T.x==null||T.y==null)return null;const I=`M ${O.x+x} ${O.y+v} L ${T.x+x} ${T.y+v}`;return d(at,{d:I,stroke:oe(s),strokeWidth:2,strokeOpacity:.6})}).filter(Boolean):[];return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,E(X,{children:[d(X,{children:$}),d(Pt,{children:_})]})]})};Ot("relation-network",{component:o2,composites:["title","item"]});var jk=Object.defineProperty,Bk=Object.defineProperties,Fk=Object.getOwnPropertyDescriptors,vs=Object.getOwnPropertySymbols,s2=Object.prototype.hasOwnProperty,a2=Object.prototype.propertyIsEnumerable,l2=(t,e,n)=>e in t?jk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Vk=(t,e)=>{for(var n in e||(e={}))s2.call(e,n)&&l2(t,n,e[n]);if(vs)for(var n of vs(e))a2.call(e,n)&&l2(t,n,e[n]);return t},Wk=(t,e)=>Bk(t,Fk(e)),Yk=(t,e)=>{var n={};for(var r in t)s2.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&vs)for(var r of vs(t))e.indexOf(r)<0&&a2.call(t,r)&&(n[r]=t[r]);return n};const Lc=t=>{var e=t,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0}=e,s=Yk(e,["width","height","colorPrimary","rotation"]);const a=`gradient-arrow-stroke-${i.replace("#","")}`,l=`gradient-arrow-fill-${i.replace("#","")}`,c=Math.round(n*.515),h=Math.round(r*.275),u=Math.round(r*.875),f=[{x:0,y:h},{x:c,y:h},{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,y=`rotate(${o} ${p} ${g})`;return E(It,{children:[d(We,Wk(Vk({},s),{width:n,height:r,points:f,fill:`url(#${l})`,stroke:`url(#${a})`,transform:y,"data-element-type":"shape"})),E(Mt,{children:[E("linearGradient",{id:l,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[d("stop",{offset:"0%","stop-color":i,"stop-opacity":"0.36"}),d("stop",{offset:"100%","stop-color":i,"stop-opacity":"0"})]}),E("linearGradient",{id:a,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[d("stop",{offset:"0%","stop-color":i}),d("stop",{offset:"58%","stop-color":i,"stop-opacity":"0"})]})]})]})},Xk=({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:h=1,midShadowOffsetY:u=2,deepShadowOpacity:f=.3,midShadowOpacity:p=.5})=>E(X,{children:[d("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:f,textAnchor:s,dominantBaseline:a,transform:`translate(${l}, ${c})`,children:t}),d("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:p,textAnchor:s,dominantBaseline:a,transform:`translate(${h}, ${u})`,children:t}),d("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,textAnchor:s,dominantBaseline:a,children:t})]});var Gk=Object.defineProperty,qk=Object.defineProperties,Uk=Object.getOwnPropertyDescriptors,xs=Object.getOwnPropertySymbols,c2=Object.prototype.hasOwnProperty,h2=Object.prototype.propertyIsEnumerable,d2=(t,e,n)=>e in t?Gk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Zk=(t,e)=>{for(var n in e||(e={}))c2.call(e,n)&&d2(t,n,e[n]);if(xs)for(var n of xs(e))h2.call(e,n)&&d2(t,n,e[n]);return t},Kk=(t,e)=>qk(t,Uk(e)),Qk=(t,e)=>{var n={};for(var r in t)c2.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&xs)for(var r of xs(t))e.indexOf(r)<0&&h2.call(t,r)&&(n[r]=t[r]);return n};const Jk=t=>{var e=t,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0,strokeWidth:s=4}=e,a=Qk(e,["width","height","colorPrimary","rotation","strokeWidth"]);const l=[{x:n/2,y:0},{x:n,y:r},{x:0,y:r}],c=n/2,h=r/2,u=`rotate(${o} ${c} ${h})`;return d(We,Kk(Zk({},a),{width:n,height:r,points:l,fill:i,stroke:i,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",transform:u}))},tz=-118,u2=118,f2=240,ez=180,nz=40,rz="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",iz="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",oz="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",p2=E("filter",{id:"sequence-ascending-stairs-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[d("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),d("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"}),d("feOffset",{dx:"0",dy:"4"}),d("feGaussianBlur",{stdDeviation:"6"}),d("feComposite",{in2:"hardAlpha",operator:"out"}),d("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"}),d("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),d("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),g2=t=>{const{Title:e,Item:n,data:r,options:i,cubeWidth:o=f2}=t,{title:s,desc:a,items:l=[]}=r,c=e?d(e,{title:s,desc:a}):null;if(l.length===0)return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d(Mt,{children:p2}),c,d(X,{children:d(bt,{children:d(K,{indexes:[0],x:0,y:0})})})]});const h=tt(d(K,{indexes:[0]})),u=[],f=[],p=[],g=o/f2,y=ez*g;return l.forEach((m,x)=>{const v=[x],b=_t(i,v),_=x*(o+tz),w=(l.length-1-x)*u2,$=`cube-gradient-bottom-${x}`,P=`cube-gradient-top-${x}`,O=`cube-gradient-stroke-${x}`;p.push(E(X,{x:_,y:w,id:`cube-${x}`,width:o,height:y,filter:"url(#sequence-ascending-stairs-3d-shadow-filter)",children:[E(Mt,{children:[E("linearGradient",{id:$,x1:"0",y1:"124.5",x2:"238.9",y2:"124.5",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:b,stopOpacity:"0.8"}),d("stop",{offset:"1",stopColor:b,stopOpacity:"0.4"})]}),E("linearGradient",{id:P,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:b,stopOpacity:"0.9"}),d("stop",{offset:"1",stopColor:b,stopOpacity:"0.5"})]}),E("linearGradient",{id:O,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:b}),d("stop",{offset:"1",stopColor:b,stopOpacity:"0.7"})]})]}),E(qt,{transform:`scale(${g})`,children:[d(at,{d:rz,fill:`url(#${$})`}),d(at,{d:iz,fill:`url(#${P})`}),d(at,{d:oz,fill:`url(#${O})`})]}),d(Xk,{text:x+1,x:115,y:65,fontSize:56})]}));const T=_+o+nz,I=w+y/2;if(f.push(d(n,{indexes:v,datum:m,data:r,x:T,y:I,positionH:"normal"})),u.push(d(Ht,{indexes:v,x:_+o-h.width/2,y:w-h.height/2})),x===0&&u.push(d(K,{indexes:[0],x:_-30-h.width/2,y:w+y/2-h.height/2})),x<l.length-1){const S=(l.length-1-(x+1))*u2,R=_+o-h.width/2,M=(w+y/2+S+y/2)/2-h.height/2;u.push(d(K,{indexes:[x+1],x:R,y:M}))}else u.push(d(K,{indexes:[l.length],x:_+o+30-h.width/2,y:w+y/2-h.height/2}))}),E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[d(Mt,{children:p2}),c,E(X,{x:0,y:0,children:[d(X,{children:p}),d(Pt,{children:f}),d(bt,{children:u})]})]})};Ot("sequence-ascending-stairs-3d",{component:g2,composites:["title","item"]});const m2=t=>{const{Title:e,Item:n,data:r,hGap:i=0,vGap:o=0}=t,{title:s,desc:a,items:l=[]}=r,c=e?d(e,{title:s,desc:a}):null,h=tt(d(n,{indexes:[0],data:r,datum:l[0]})),u=[],f=[],p=l.length,g=h.width+i,y=h.height/2+o,m=h.width/2,v=0+(p-1)*y;return l.forEach((b,_)=>{const w=m+_*g,$=v-_*y,P=[_];u.push(d(n,{indexes:P,datum:b,data:r,x:w,y:$})),f.push(d(Ht,{indexes:P,x:w+h.width-30,y:$+h.height/2+10})),f.push(d(K,{indexes:P,x:w+h.width+i/2,y:$-30}))}),E(ot,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,E(X,{children:[d(Pt,{children:u}),d(bt,{children:f})]})]})};Ot("sequence-ascending-steps",{component:m2,composites:["title","item"]});const sz=20,y2=5,v2=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:h=[]}=r,u=tt(d(K,{indexes:[0]})),f=oe(i);if(!n)return E(ot,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[e?d(e,{title:l,desc:c}):null,d(X,{children:d(bt,{children:d(K,{indexes:[0],x:0,y:0})})})]});const p=h.length;if(p===0)return E(ot,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[e?d(e,{title:l,desc:c}):null,d(X,{children:d(bt,{children:d(K,{indexes:[0],x:0,y:0})})})]});const g=tt(d(n,{indexes:[0],data:r,datum:h[0]})),y=0,m=0,x=2*Math.PI/p,v=[];let b=1/0,_=1/0,w=-1/0,$=-1/0;for(let k=0;k<p;k++){const D=k*x-Math.PI/2,z=y+o*Math.cos(D),N=m+o*Math.sin(D);v.push({x:z,y:N}),b=Math.min(b,z),_=Math.min(_,N),w=Math.max(w,z),$=Math.max($,N)}const P=[];for(let k=0;k<p;k++){const D=v[k],z=v[(k+1)%p],N=Math.sqrt(Math.pow(z.x-D.x,2)+Math.pow(z.y-D.y,2)),B=Math.min(N*.5,100),Y=(D.x+z.x)/2,L=(D.y+z.y)/2;b=Math.min(b,Y-B/2),_=Math.min(_,L-B/2),w=Math.max(w,Y+B/2),$=Math.max($,L+B/2);const C=Math.atan2(L-m,Y-y),H=C<0?C+2*Math.PI:C;let F,Q;const V=H*180/Math.PI,q=B/2+sz,G=Y+Math.cos(C)*q,U=L+Math.sin(C)*q;V>=337.5||V<22.5?(F=G,Q=U-g.height/2):V>=22.5&&V<67.5?(F=G,Q=U):V>=67.5&&V<112.5?(F=G-g.width/2,Q=U):V>=112.5&&V<157.5?(F=G-g.width,Q=U):V>=157.5&&V<202.5?(F=G-g.width,Q=U-g.height/2):V>=202.5&&V<247.5?(F=G-g.width,Q=U-g.height):V>=247.5&&V<292.5?(F=G-g.width/2,Q=U-g.height):(F=G,Q=U-g.height),P.push({lineLength:N,circleBigW:B,midX:Y,midY:L,itemX:F,itemY:Q}),b=Math.min(b,F),_=Math.min(_,Q),w=Math.max(w,F+g.width+u.width+5),$=Math.max($,Q+g.height)}const O=Math.max(0,-b),T=Math.max(0,-_),I=e?d(e,{title:l,desc:c}):null,S=[],R=[],M=[],A=[],W=v.map(k=>({x:k.x+O,y:k.y+T}));for(let k=0;k<p;k++){const D=W[k],z=W[(k+1)%p],N=(k+1)%p,B=[k],{lineLength:Y,circleBigW:L,midX:C,midY:H}=P[k],F=Math.max(L-20,20),Q=Math.max(F*.4,16),V=_t(i,B)||f,q=z.x-D.x,G=z.y-D.y,U=Y,Z=q/U,J=G/U,st=y2*2+s,nt=Math.min(y2,(U-st)/2),lt=Math.max(0,D.x+Z*nt),ct=Math.max(0,D.y+J*nt),yt=Math.max(0,z.x-Z*nt),dt=Math.max(0,z.y-J*nt),mt=rT().x(ue=>Math.max(0,ue.x)).y(ue=>Math.max(0,ue.y)).curve(z1)([{x:lt,y:ct},{x:yt,y:dt}])||"",Rt=`fork-arrow-${V.replace(/[^a-zA-Z0-9]/g,"")}-${k}`,Et=`
|
|
103
|
+
`.trim()}return E(Y,{id:"infographic-container",children:[d(Y,{children:y}),x?d(Lt,{id:"shape-center-circle",x:m-P,y:b-P,width:P*2,height:P*2,fill:u.colorPrimaryBg,fillOpacity:.5,"data-element-type":"shape"}):d(ht,{id:"shape-center-sector",d:H,fill:u.colorPrimaryBg,fillOpacity:.5,width:r*2+200,height:r*2+200,"data-element-type":"shape"}),d(Et,{x:O-I/2,y:T-S/2,width:I,height:S,alignHorizontal:"center",alignVertical:"middle",fontSize:24,fontWeight:"bold",fill:u.colorText,"data-element-type":kt.Title,children:c}),d(It,{children:g}),d(Ot,{children:p})]})};Tt("list-sector",{component:k2,composites:["title","item"]});const z2=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,h=e?d(e,{title:a,desc:l}):null,u=Q(d(q,{indexes:[0]})),f=Q(d(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),p=[],g=[],y=f.width+o;return c.forEach((m,b)=>{const v=b%i,x=Math.floor(b/i),w=v*y,_=x*(f.height+o),$=v*s,P=_+$,O=[b];g.push(d(n,{indexes:O,datum:m,data:r,x:w,y:P,positionH:"center"})),p.push(d(Ft,{indexes:O,x:w+(f.width-u.width)/2,y:P+f.height+5}))}),c.forEach((m,b)=>{const v=b%i,x=Math.floor(b/i),w=v*y,_=x*(f.height+o),$=v*s,P=_+$;if(b===0&&p.push(d(q,{indexes:[0],x:w-o/2-u.width/2,y:P+(f.height-u.height)/2})),v<i-1&&b<c.length-1){const O=Math.floor((b+1)/i);x===O&&p.push(d(q,{indexes:[b+1],x:w+f.width+(o-u.width)/2,y:P+(f.height-u.height)/2}))}(v===i-1||b===c.length-1)&&p.push(d(q,{indexes:[b+1],x:w+f.width+(o-u.width)/2,y:P+(f.height-u.height)/2}))}),c.length===0&&p.push(d(q,{indexes:[0],x:(i-1)*y/2+(f.width-u.width)/2,y:0})),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,E(Y,{children:[d(It,{children:g}),d(Ot,{children:p})]})]})};Tt("list-waterfall",{component:z2,composites:["title","item"]});const Kc={axisColor:"#D9D9D9",axisArrowSize:5,strokeWidth:1,dashArray:"4,2",defaultExtraSpacing:20},L2=t=>{const{Title:e,Item:n,data:r,quadrantWidth:i,quadrantHeight:o,showAxis:s=!0,dashedAxis:a=!0}=t,{title:l,desc:c,items:h=[]}=r,u=e?d(e,{title:l,desc:c}):null,f=Array.from({length:4},(x,w)=>h[w]),p=f[0]?Q(d(n,{indexes:[0],data:r,datum:f[0]})):{width:0,height:0},g=i!=null?i:p.width+Kc.defaultExtraSpacing,y=o!=null?o:p.height+Kc.defaultExtraSpacing,m=Qz(g,y,p),b=f.map((x,w)=>{if(!x)return null;const _=m[w];return d(n,{indexes:[w],datum:x,data:r,x:_.x,y:_.y,positionH:w%2?"flipped":"normal",positionV:w<2?"normal":"flipped"})}).filter(Boolean),v=Kz(g,y,s,a);return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,E(Y,{width:g*2,height:y*2,children:[v,d(It,{children:b})]})]})};function Kz(t,e,n,r){if(!n)return[];const{axisColor:i,axisArrowSize:o,strokeWidth:s,dashArray:a}=Kc,l=t,c=e,h=t*2,u=e*2,f=r?a:void 0;return[d(ht,{d:`M 0 ${c} L ${h} ${c}`,stroke:i,strokeWidth:s,strokeDasharray:f,fill:"none","data-element-type":"shape"}),E(ne,{transform:`translate(${h}, ${c})`,children:[d(ht,{d:`M 0 0 L ${-o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),d(ht,{d:`M 0 0 L ${-o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),E(ne,{transform:`translate(0, ${c})`,children:[d(ht,{d:`M 0 0 L ${o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),d(ht,{d:`M 0 0 L ${o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),d(ht,{d:`M ${l} 0 L ${l} ${u}`,stroke:i,strokeWidth:s,strokeDasharray:f,fill:"none","data-element-type":"shape"}),E(ne,{transform:`translate(${l}, 0)`,children:[d(ht,{d:`M 0 0 L ${-o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"}),d(ht,{d:`M 0 0 L ${o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"})]}),E(ne,{transform:`translate(${l}, ${u})`,children:[d(ht,{d:`M 0 0 L ${-o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"}),d(ht,{d:`M 0 0 L ${o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"})]})]}function Qz(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}]}Tt("quadrant",{component:L2,composites:["title","item"]});const R2=t=>{const{Title:e,Item:n,data:r,radius:i=150,startMode:o="top"}=t,{title:s,desc:a,items:l=[]}=r,c=e?d(e,{title:s,desc:a}):null,h=Q(d(q,{indexes:[0]})),u=Q(d(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),f=[],p=[];if(l.length===0)return f.push(d(q,{indexes:[0],x:-h.width/2,y:-h.height/2})),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,d(Y,{children:d(Ot,{children:f})})]});const g=Math.max(u.width,u.height),y=Math.max(i,g),m=y+g/2,b=l.map(()=>{const $=u.width,P=u.height;return($+P)/2}),v=b.reduce(($,P)=>$+P,0);let x;o==="equal"?x=-Math.PI/2:x=-Math.PI/2+2*Math.PI/l.length/2;let w=x;l.forEach(($,P)=>{const O=b[P]/v*2*Math.PI,T=w+O/2;w+=O;const I=m+y*Math.cos(T)-u.width/2,S=m+y*Math.sin(T)-u.height/2;p.push(d(n,{indexes:[P],datum:$,data:r,x:I,y:S}));const H=y-Math.max(u.width,u.height)/2-20,C=m+H*Math.cos(T)-h.width/2,A=m+H*Math.sin(T)-h.height/2;f.push(d(Ft,{indexes:[P],x:C,y:A}))});const _=y-Math.max(u.width,u.height)/2-20;if(l.length>0)for(let $=0;$<l.length;$++){const P=$*2*Math.PI/l.length-Math.PI/2,O=($+1)%l.length*2*Math.PI/l.length-Math.PI/2;let T;if($===l.length-1){const H=O+2*Math.PI-P;T=P+H/2}else T=(P+O)/2;const I=m+_*Math.cos(T)-h.width/2,S=m+_*Math.sin(T)-h.height/2;f.push(d(q,{indexes:[$+1],x:I,y:S}))}return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,E(Y,{children:[d(It,{children:p}),d(Ot,{children:f})]})]})};Tt("relation-circle",{component:R2,composites:["title","item"]});const H2=t=>{const{Title:e,Item:n,data:r,spacing:i=120,showConnections:o=!0,options:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?d(e,{title:a,desc:l}):null;if(c.length===0)return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,d(Y,{children:d(It,{})})]});const u=Q(d(n,{indexes:[0],data:r,datum:c[0],positionH:"center"}));function f(){const P=c.map((I,S)=>({id:S,data:I,isCenter:S===0,_originalIndex:[S]})),O=c.slice(1).map((I,S)=>({source:0,target:S+1})),T=eT(P).force("link",GI(O).id(I=>I.id).distance(i)).force("charge",nT().strength(-50)).force("center",CI(0,0)).force("collision",YI().radius(Math.max(u.width,u.height)/2+10));for(let I=0;I<300;++I)T.tick();return{nodes:P,links:O}}const{nodes:p,links:g}=f(),y=Math.min(...p.map(P=>{var O;return(O=P.x)!=null?O:0})),m=Math.min(...p.map(P=>{var O;return(O=P.y)!=null?O:0})),b=Math.max(0,-y+u.width/2),v=Math.max(0,-m+u.height/2),x=(P,O)=>({positionH:P<-50?"flipped":P>50?"normal":"center",positionV:O<-50?"flipped":O>50?"normal":"middle"}),w=p.map(P=>{if(P.x==null||P.y==null)return null;const O=P.x+b-u.width/2,T=P.y+v-u.height/2,{positionH:I,positionV:S}=x(P.x,P.y);return d(n,{indexes:P._originalIndex,datum:P.data,data:r,x:O,y:T,positionH:I,positionV:S},P.id)}).filter(Boolean),_=new Map(p.map(P=>[P.id,P])),$=o?g.map(P=>{const O=typeof P.source=="object"?P.source:_.get(P.source),T=typeof P.target=="object"?P.target:_.get(P.target);if(!O||!T||O.x==null||O.y==null||T.x==null||T.y==null)return null;const I=`M ${O.x+b} ${O.y+v} L ${T.x+b} ${T.y+v}`;return d(ht,{d:I,stroke:re(s),strokeWidth:2,strokeOpacity:.6})}).filter(Boolean):[];return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,E(Y,{children:[d(Y,{children:$}),d(It,{children:w})]})]})};Tt("relation-network",{component:H2,composites:["title","item"]});var Jz=Object.defineProperty,tL=Object.defineProperties,eL=Object.getOwnPropertyDescriptors,Ls=Object.getOwnPropertySymbols,D2=Object.prototype.hasOwnProperty,N2=Object.prototype.propertyIsEnumerable,j2=(t,e,n)=>e in t?Jz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nL=(t,e)=>{for(var n in e||(e={}))D2.call(e,n)&&j2(t,n,e[n]);if(Ls)for(var n of Ls(e))N2.call(e,n)&&j2(t,n,e[n]);return t},rL=(t,e)=>tL(t,eL(e)),iL=(t,e)=>{var n={};for(var r in t)D2.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ls)for(var r of Ls(t))e.indexOf(r)<0&&N2.call(t,r)&&(n[r]=t[r]);return n};const Qc=t=>{var e=t,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0}=e,s=iL(e,["width","height","colorPrimary","rotation"]);const a=`gradient-arrow-stroke-${i.replace("#","")}`,l=`gradient-arrow-fill-${i.replace("#","")}`,c=Math.round(n*.515),h=Math.round(r*.275),u=Math.round(r*.875),f=[{x:0,y:h},{x:c,y:h},{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,y=`rotate(${o} ${p} ${g})`;return E(Rt,{children:[d(De,rL(nL({},s),{width:n,height:r,points:f,fill:`url(#${l})`,stroke:`url(#${a})`,transform:y,"data-element-type":"shape"})),E(zt,{children:[E("linearGradient",{id:l,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[d("stop",{offset:"0%","stop-color":i,"stop-opacity":"0.36"}),d("stop",{offset:"100%","stop-color":i,"stop-opacity":"0"})]}),E("linearGradient",{id:a,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[d("stop",{offset:"0%","stop-color":i}),d("stop",{offset:"58%","stop-color":i,"stop-opacity":"0"})]})]})]})},oL=({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:h=1,midShadowOffsetY:u=2,deepShadowOpacity:f=.3,midShadowOpacity:p=.5})=>E(Y,{children:[d("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:f,textAnchor:s,dominantBaseline:a,transform:`translate(${l}, ${c})`,children:t}),d("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:p,textAnchor:s,dominantBaseline:a,transform:`translate(${h}, ${u})`,children:t}),d("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,textAnchor:s,dominantBaseline:a,children:t})]});var sL=Object.defineProperty,aL=Object.defineProperties,lL=Object.getOwnPropertyDescriptors,Rs=Object.getOwnPropertySymbols,F2=Object.prototype.hasOwnProperty,B2=Object.prototype.propertyIsEnumerable,W2=(t,e,n)=>e in t?sL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,cL=(t,e)=>{for(var n in e||(e={}))F2.call(e,n)&&W2(t,n,e[n]);if(Rs)for(var n of Rs(e))B2.call(e,n)&&W2(t,n,e[n]);return t},hL=(t,e)=>aL(t,lL(e)),dL=(t,e)=>{var n={};for(var r in t)F2.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Rs)for(var r of Rs(t))e.indexOf(r)<0&&B2.call(t,r)&&(n[r]=t[r]);return n};const uL=t=>{var e=t,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0,strokeWidth:s=4}=e,a=dL(e,["width","height","colorPrimary","rotation","strokeWidth"]);const l=[{x:n/2,y:0},{x:n,y:r},{x:0,y:r}],c=n/2,h=r/2,u=`rotate(${o} ${c} ${h})`;return d(De,hL(cL({},a),{width:n,height:r,points:l,fill:i,stroke:i,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",transform:u}))},fL=-118,V2=118,Y2=240,pL=180,gL=40,mL="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",yL="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",vL="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",X2=E("filter",{id:"sequence-ascending-stairs-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[d("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),d("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"}),d("feOffset",{dx:"0",dy:"4"}),d("feGaussianBlur",{stdDeviation:"6"}),d("feComposite",{in2:"hardAlpha",operator:"out"}),d("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"}),d("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),d("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),G2=t=>{const{Title:e,Item:n,data:r,options:i,cubeWidth:o=Y2}=t,{title:s,desc:a,items:l=[]}=r,c=e?d(e,{title:s,desc:a}):null;if(l.length===0)return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d(zt,{children:X2}),c,d(Y,{children:d(Ot,{children:d(q,{indexes:[0],x:0,y:0})})})]});const h=Q(d(q,{indexes:[0]})),u=[],f=[],p=[],g=o/Y2,y=pL*g;return l.forEach((m,b)=>{const v=[b],x=Ct(i,v),w=b*(o+fL),_=(l.length-1-b)*V2,$=`cube-gradient-bottom-${b}`,P=`cube-gradient-top-${b}`,O=`cube-gradient-stroke-${b}`;p.push(E(Y,{x:w,y:_,id:`cube-${b}`,width:o,height:y,filter:"url(#sequence-ascending-stairs-3d-shadow-filter)",children:[E(zt,{children:[E("linearGradient",{id:$,x1:"0",y1:"124.5",x2:"238.9",y2:"124.5",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:x,stopOpacity:"0.8"}),d("stop",{offset:"1",stopColor:x,stopOpacity:"0.4"})]}),E("linearGradient",{id:P,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:x,stopOpacity:"0.9"}),d("stop",{offset:"1",stopColor:x,stopOpacity:"0.5"})]}),E("linearGradient",{id:O,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:x}),d("stop",{offset:"1",stopColor:x,stopOpacity:"0.7"})]})]}),E(ne,{transform:`scale(${g})`,children:[d(ht,{d:mL,fill:`url(#${$})`}),d(ht,{d:yL,fill:`url(#${P})`}),d(ht,{d:vL,fill:`url(#${O})`})]}),d(oL,{text:b+1,x:115,y:65,fontSize:56})]}));const T=w+o+gL,I=_+y/2;if(f.push(d(n,{indexes:v,datum:m,data:r,x:T,y:I,positionH:"normal"})),u.push(d(Ft,{indexes:v,x:w+o-h.width/2,y:_-h.height/2})),b===0&&u.push(d(q,{indexes:[0],x:w-30-h.width/2,y:_+y/2-h.height/2})),b<l.length-1){const S=(l.length-1-(b+1))*V2,H=w+o-h.width/2,C=(_+y/2+S+y/2)/2-h.height/2;u.push(d(q,{indexes:[b+1],x:H,y:C}))}else u.push(d(q,{indexes:[l.length],x:w+o+30-h.width/2,y:_+y/2-h.height/2}))}),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[d(zt,{children:X2}),c,E(Y,{x:0,y:0,children:[d(Y,{children:p}),d(It,{children:f}),d(Ot,{children:u})]})]})};Tt("sequence-ascending-stairs-3d",{component:G2,composites:["title","item"]});const q2=t=>{const{Title:e,Item:n,data:r,hGap:i=0,vGap:o=0}=t,{title:s,desc:a,items:l=[]}=r,c=e?d(e,{title:s,desc:a}):null,h=Q(d(n,{indexes:[0],data:r,datum:l[0]})),u=[],f=[],p=l.length,g=h.width+i,y=h.height/2+o,m=h.width/2,v=0+(p-1)*y;return l.forEach((x,w)=>{const _=m+w*g,$=v-w*y,P=[w];u.push(d(n,{indexes:P,datum:x,data:r,x:_,y:$})),f.push(d(Ft,{indexes:P,x:_+h.width-30,y:$+h.height/2+10})),f.push(d(q,{indexes:P,x:_+h.width+i/2,y:$-30}))}),E(lt,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,E(Y,{children:[d(It,{children:u}),d(Ot,{children:f})]})]})};Tt("sequence-ascending-steps",{component:q2,composites:["title","item"]});const bL=20,U2=5,Z2=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:h=[]}=r,u=Q(d(q,{indexes:[0]})),f=re(i);if(!n)return E(lt,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[e?d(e,{title:l,desc:c}):null,d(Y,{children:d(Ot,{children:d(q,{indexes:[0],x:0,y:0})})})]});const p=h.length;if(p===0)return E(lt,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[e?d(e,{title:l,desc:c}):null,d(Y,{children:d(Ot,{children:d(q,{indexes:[0],x:0,y:0})})})]});const g=Q(d(n,{indexes:[0],data:r,datum:h[0]})),y=0,m=0,b=2*Math.PI/p,v=[];let x=1/0,w=1/0,_=-1/0,$=-1/0;for(let k=0;k<p;k++){const D=k*b-Math.PI/2,z=y+o*Math.cos(D),N=m+o*Math.sin(D);v.push({x:z,y:N}),x=Math.min(x,z),w=Math.min(w,N),_=Math.max(_,z),$=Math.max($,N)}const P=[];for(let k=0;k<p;k++){const D=v[k],z=v[(k+1)%p],N=Math.sqrt(Math.pow(z.x-D.x,2)+Math.pow(z.y-D.y,2)),j=Math.min(N*.5,100),X=(D.x+z.x)/2,L=(D.y+z.y)/2;x=Math.min(x,X-j/2),w=Math.min(w,L-j/2),_=Math.max(_,X+j/2),$=Math.max($,L+j/2);const M=Math.atan2(L-m,X-y),R=M<0?M+2*Math.PI:M;let W,U;const V=R*180/Math.PI,G=j/2+bL,Z=X+Math.cos(M)*G,K=L+Math.sin(M)*G;V>=337.5||V<22.5?(W=Z,U=K-g.height/2):V>=22.5&&V<67.5?(W=Z,U=K):V>=67.5&&V<112.5?(W=Z-g.width/2,U=K):V>=112.5&&V<157.5?(W=Z-g.width,U=K):V>=157.5&&V<202.5?(W=Z-g.width,U=K-g.height/2):V>=202.5&&V<247.5?(W=Z-g.width,U=K-g.height):V>=247.5&&V<292.5?(W=Z-g.width/2,U=K-g.height):(W=Z,U=K-g.height),P.push({lineLength:N,circleBigW:j,midX:X,midY:L,itemX:W,itemY:U}),x=Math.min(x,W),w=Math.min(w,U),_=Math.max(_,W+g.width+u.width+5),$=Math.max($,U+g.height)}const O=Math.max(0,-x),T=Math.max(0,-w),I=e?d(e,{title:l,desc:c}):null,S=[],H=[],C=[],A=[],B=v.map(k=>({x:k.x+O,y:k.y+T}));for(let k=0;k<p;k++){const D=B[k],z=B[(k+1)%p],N=(k+1)%p,j=[k],{lineLength:X,circleBigW:L,midX:M,midY:R}=P[k],W=Math.max(L-20,20),U=Math.max(W*.4,16),V=Ct(i,j)||f,G=z.x-D.x,Z=z.y-D.y,K=X,nt=G/K,at=Z/K,pt=U2*2+s,ft=Math.min(U2,(K-pt)/2),rt=Math.max(0,D.x+nt*ft),tt=Math.max(0,D.y+at*ft),et=Math.max(0,z.x-nt*ft),st=Math.max(0,z.y-at*ft),gt=aA().x(he=>Math.max(0,he.x)).y(he=>Math.max(0,he.y)).curve(om)([{x:rt,y:tt},{x:et,y:st}])||"",ct=`fork-arrow-${V.replace(/[^a-zA-Z0-9]/g,"")}-${k}`,ut=`
|
|
99
104
|
M ${-s*.6} ${-s*.4}
|
|
100
105
|
L 0 0
|
|
101
106
|
L ${-s*.6} ${s*.4}
|
|
102
|
-
`;A.push(d("marker",{id:
|
|
107
|
+
`;A.push(d("marker",{id:ct,viewBox:`${-s} ${-s*.6} ${s*1.2} ${s*1.2}`,refX:-s*.08,refY:0,markerWidth:s,markerHeight:s,orient:"auto",markerUnits:"strokeWidth",children:d("path",{d:ut,fill:"none",stroke:V,strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"})})),C.push(d(ht,{d:gt,stroke:V,strokeWidth:a,fill:"none",markerEnd:`url(#${ct})`,strokeLinecap:"round","data-element-type":"shape"}));const mt=M+O,Pt=R+T,yt=be({colorPrimary:V},i);C.push(d(Lt,{x:Math.max(0,mt-L/2),y:Math.max(0,Pt-L/2),width:L,height:L,fill:yt.colorPrimaryBg,"data-element-type":"shape"})),C.push(d(Lt,{x:Math.max(0,mt-W/2),y:Math.max(0,Pt-W/2),width:W,height:W,fill:"#ffffff"})),C.push(d(ve,{x:Math.max(0,mt-U/2),y:Math.max(0,Pt-U/2),size:U,indexes:j,fill:V}));const Mt=Math.max(0,mt-u.width/2),te=Math.max(0,Pt-u.height/2);S.push(d(q,{indexes:[N],x:Mt,y:te}))}for(let k=0;k<p;k++){const D=[k],z=h[k],{itemX:N,itemY:j}=P[k],X=Math.max(0,N+O),L=Math.max(0,j+T);H.push(d(n,{indexes:D,datum:z,data:r,x:X,y:L}));const M=Math.max(0,X+g.width+5),R=Math.max(0,L+g.height/2-u.height/2);S.push(d(Ft,{indexes:D,x:M,y:R}))}return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[I,E(Y,{x:0,y:0,children:[d(zt,{children:A}),d(Y,{children:C}),d(It,{children:H}),d(Ot,{children:S})]})]})};Tt("sequence-circle-arrows",{component:Z2,composites:["title","item"]});const xL=100,wL=50,_L=6,$L="40",K2=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:h=38,iconSize:u=36}=t,{title:f,desc:p,items:g=[]}=r,y=e?d(e,{title:f,desc:p}):null,m=Math.max(a+xL,o+wL),b=Math.min(a,o),v=Q(d(q,{indexes:[0]}));if(g.length===0)return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y,d(Y,{children:d(Ot,{children:d(q,{indexes:[0],x:m-20,y:b-20})})})]});const x=[],w=[],_=[],$=[],P=Q(d(n,{indexes:[0],data:r,datum:g[0]})),I=(360-g.length*l)/g.length,S=(j,X,L,M,R,W)=>{const U=R*Math.PI/180,V=W*Math.PI/180,G=j+L*Math.cos(U),Z=X+L*Math.sin(U),K=j+M*Math.cos(U),nt=X+M*Math.sin(U),at=j+M*Math.cos(V),pt=X+M*Math.sin(V),ft=j+L*Math.cos(V),rt=X+L*Math.sin(V),tt=W-R<=180?"0":"1";return[`M ${G} ${Z}`,`L ${K} ${nt}`,`A ${M} ${M} 0 ${tt} 1 ${at} ${pt}`,`L ${ft} ${rt}`,`A ${L} ${L} 0 ${tt} 0 ${G} ${Z}`,"Z"].join(" ")},H=({centerX:j,outerRadius:X,angleRad:L,btnBounds:M})=>{const R=j+(X+20)*Math.cos(L)-M.width/2,W=b+(X+20)*Math.sin(L)-M.height/2;return{x:R,y:W}},C=_L,A=(s+o)/2,B=C/A*(180/Math.PI);g.forEach((j,X)=>{const L=[X],M=X*(I+l)+270,R=M+I,W=(M+R)/2,U=W*Math.PI/180,V=Ct(i,L),G=V+$L,Z=S(m,b,s,o,M,R);_.push(d(ht,{d:Z,fill:G,width:o*2,height:o*2,"data-element-type":"shape"}));const K=S(m,b,s+C,o-C,M+B,R-B);_.push(d(ht,{d:K,fill:V,width:o*2,height:o*2,"data-element-type":"shape"}));const nt=(s+o)/2,at=m+nt*Math.cos(U),pt=b+nt*Math.sin(U);$.push(d(Lt,{x:at-h,y:pt-h,width:h*2,height:h*2,fill:"#ffffff","data-element-type":"shape"})),$.push(d(Lt,{x:at-c,y:pt-c,width:c*2,height:c*2,fill:V,"data-element-type":"shape"})),j.icon&&$.push(d(ve,{x:at-u/2,y:pt-u/2,indexes:L,size:u,fill:"#fff"}));const ft=(W%360+360)%360,rt=ft>=270||ft<=90,tt=ft>=75&&ft<=105;let et,st="normal",vt="normal";tt?(et=ft,vt="normal",st="center"):rt?(ft>=270?et=-60+(ft-270)/90*60:et=ft/90*60,st="normal"):(et=120+(ft-90)/180*120,st="flipped");const gt=et*Math.PI/180,dt=m+a*Math.cos(gt)-P.width/2;let ct=b+a*Math.sin(gt)-P.height/2;tt&&(ct=b+o+P.height/2),w.push(d(n,{indexes:L,datum:j,data:r,x:dt,y:ct,positionH:st,positionV:vt}));const ut=a+40,mt=m+ut*Math.cos(gt)-v.width/2,Pt=b+ut*Math.sin(gt)-v.height/2;x.push(d(Ft,{indexes:L,x:mt,y:Pt}));const Mt=(M+I+l/2)*Math.PI/180,{x:te,y:he}=H({centerX:m,outerRadius:o,angleRad:Mt,btnBounds:v});x.push(d(q,{indexes:[X+1],x:te,y:he}))});const D=(270-l/2)*Math.PI/180,{x:z,y:N}=H({centerX:m,outerRadius:o,angleRad:D,btnBounds:v});return x.unshift(d(q,{indexes:[0],x:z,y:N})),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:70,children:[y,E(Y,{children:[d(Y,{children:_}),d(Y,{children:$}),d(It,{children:w}),d(Ot,{children:x})]})]})};Tt("sequence-circular",{component:K2,composites:["title","item"]});const Q2=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:h,items:u=[]}=r,f=e?d(e,{title:c,desc:h}):null,p=re(l),g=Q(d(q,{indexes:[0]})),y=Q(d(n,{indexes:[0],data:r,datum:u[0],positionH:"center"})),m=[],b=[],v=[],x=(o+y.height)/2,w=x;if(u.forEach((_,$)=>{const P=Math.floor($/s),O=$%s,T=P%2===1,S=(T?s-1-O:O)*(y.width+i)+w,H=P*(y.height+o),C=[$];if(b.push(d(n,{indexes:C,datum:_,data:r,x:S,y:H,positionH:"center",positionV:$%2===1?"flipped":"normal"})),m.push(d(Ft,{indexes:C,x:S+(y.width-g.width)/2,y:H+y.height+10})),$===0&&m.push(d(q,{indexes:C,x:S+(y.width-g.width)/2,y:H-g.height-10})),$<u.length-1){const A=Math.floor(($+1)/s);if(P===A)m.push(d(q,{indexes:[$+1],x:S+(y.width-g.width)/2,y:H-g.height-10}));else{const k=H+y.height/2,D=H+y.height+o+y.height/2;let z,N,j;T?(z=S,j=0,N=`M ${z} ${k} A ${x} ${x} 0 0 ${j} ${z} ${D}`):(z=S+y.width,j=1,N=`M ${z} ${k} A ${x} ${x} 0 0 ${j} ${z} ${D}`);const X=D-k,L=Ct(l,C),M=Ct(l,[$+1]),R=`gradient-arc-${$}`;v.push(E(Rt,{children:[d(zt,{children:E("linearGradient",{id:R,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:L||p}),d("stop",{offset:"100%",stopColor:M||p})]})}),d(ht,{d:N,stroke:`url(#${R})`,strokeWidth:a,fill:"none",width:w,height:X,"data-element-type":"shape"})]}));const W=T?z-x-g.width/2:z+x-g.width/2,U=H+y.height+o/2-g.height/2;m.push(d(q,{indexes:[$+1],x:W,y:U}))}}}),u.length>0){const _=u.length-1,$=Math.floor(_/s),P=_%s,I=($%2===1?s-1-P:P)*(y.width+i),S=$*(y.height+o);m.push(d(q,{indexes:[u.length],x:I+(y.width-g.width)/2,y:S+y.height+g.height+20}))}if(u.length/s>2){const _=(o+y.height)/2,$=Ct(l,[0]);v.push(d(St,{x:0,y:y.height/2-a/2,width:_,height:a,fill:$||p,"data-element-type":"shape"}))}return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,E(Y,{width:s*y.width+(s-1)*i+x*2,height:Math.ceil(u.length/s)*(y.height+o),children:[d(Y,{children:v}),d(It,{children:b}),d(Ot,{children:m})]})]})};Tt("sequence-color-snake-steps",{component:Q2,composites:["title","item"]});const Hs=(t,e)=>t===0?0:t===1?e/2:e/2+(t-1)*(e/2*3),Ds=(t,e,n)=>{if(t)return 0;const o=e===0?2:n;return n*2+o},PL=(t,e,n,r,i,o,s,a)=>{const l=Math.max(6,o*.15),c=r+(t-1)*i,h=t*l,u=100,p=c+h+u+50,g=p-u;let y=0,m=0,b=0,v=0;if(t>0){let w=1/0,_=-1/0;for(let A=0;A<t;A++){const B=A%2===0,k=Math.floor(A/2),D=Hs(k,n),N=0+Ds(B,k,n)+D;w=Math.min(w,N-n),_=Math.max(_,N+n)}const $=(w+_)/2,P=0;y=0,v=y+e.width+a+s+n,b=v-P+$;const S=y+e.width/2,H=b-S;m=b+H-e.width/2}return{canvasHeight:p,startY:g,leftItemAlignedX:y,rightItemAlignedX:m,cylinderAreaStartX:v}},OL=(t,e,n,r,i,o,s)=>{const a=t%2===0,l=Math.floor(t/2),c=Hs(l,e),h=Ds(a,l,e),u=s+h+c,f=o-t*i,p=n+t*r,g=f-p;return{x:u,y:g,height:p,bottomY:f,topY:g}},CL=(t,e,n,r,i,o,s,a,l)=>{const c=t%2===0,h=e.topY+e.height*.05;let u,f;c?(u=i,f=u+n.width+l):(u=o,f=u-l);let p;s==="top"?p=h:s==="bottom"?p=h-n.height:p=h-n.height/2,p+=a;const g=c?e.x-r:e.x+r,y=c?g-l:g+l;return{itemPos:{x:u,y:p},lineStartX:y,lineEndX:f,lineY:h}},ML=(t,e)=>{const n=ot(e),r=[];return r.push(E("linearGradient",{id:`cylinderGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:n.toRgbString(),stopOpacity:.7}),d("stop",{offset:"40%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.65}),d("stop",{offset:"70%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:.6}),d("stop",{offset:"100%",stopColor:n.clone().lighten(20).toRgbString(),stopOpacity:.55})]})),r.push(E("linearGradient",{id:`topGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:1}),d("stop",{offset:"100%",stopColor:"#fafafa",stopOpacity:1})]})),r.push(E("linearGradient",{id:`bottomGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:n.clone().darken(8).toRgbString(),stopOpacity:.75}),d("stop",{offset:"50%",stopColor:n.clone().darken(5).toRgbString(),stopOpacity:.7}),d("stop",{offset:"100%",stopColor:n.clone().darken(12).toRgbString(),stopOpacity:.65})]})),r.push(E("linearGradient",{id:`numberGradient${t}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:n.clone().darken(0).toRgbString(),stopOpacity:.9}),d("stop",{offset:"50%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.85}),d("stop",{offset:"100%",stopColor:n.clone().lighten(10).toRgbString(),stopOpacity:.8})]})),r.push(E("linearGradient",{id:`glowGradient${t}`,x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:[d("stop",{offset:"0%",stopColor:"#FFFFFF",stopOpacity:.2}),d("stop",{offset:"90%",stopColor:"#FFFFFF",stopOpacity:0})]})),r},SL=(t,e,n,r)=>{const{x:i,topY:o,bottomY:s}=e,a=[];a.push(d("ellipse",{id:`cylinder-bottom-${t}`,cx:i,cy:s,rx:n,ry:r,fill:`url(#bottomGradient${t})`,opacity:.7})),a.push(d(ht,{id:`cylinder-body-${t}`,d:`
|
|
103
108
|
M ${i-n} ${o}
|
|
104
109
|
A ${n} ${r} 0 0 0 ${i} ${o+r}
|
|
105
110
|
A ${n} ${r} 0 0 0 ${i+n} ${o}
|
|
@@ -107,13 +112,13 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
|
|
|
107
112
|
A ${n} ${r} 0 0 1 ${i} ${s+r}
|
|
108
113
|
A ${n} ${r} 0 0 1 ${i-n} ${s}
|
|
109
114
|
Z
|
|
110
|
-
`,fill:`url(#cylinderGradient${t})`,stroke:"none"})),a.push(d(
|
|
115
|
+
`,fill:`url(#cylinderGradient${t})`,stroke:"none"})),a.push(d(St,{id:`cylinder-glow-${t}`,x:i-n,y:o-r*3,width:n*2,height:r*3,fill:`url(#glowGradient${t})`})),a.push(d("ellipse",{id:`cylinder-top-${t}`,cx:i,cy:o,rx:n,ry:r,fill:`url(#topGradient${t})`}));const l=i-10,c=o-15,f=`translate(${l}, ${c}) matrix(1, 0, ${-.6}, ${.6}, 0, 0)`;return a.push(d(Et,{id:`cylinder-number-${t}`,width:50,height:50,fontFamily:"Arial Black, sans-serif",fontSize:32,fontWeight:900,fill:`url(#numberGradient${t})`,alignHorizontal:"center",alignVertical:"middle",transform:f,children:t+1})),a},EL=(t,e,n,r,i)=>{const s=[];return s.push(d("circle",{id:`decoration-dot-start-${t}`,cx:e,cy:r,r:2,fill:i})),s.push(d("line",{id:`decoration-line-${t}`,x1:e,y1:r,x2:n,y2:r,stroke:i,strokeWidth:1,opacity:.8})),s.push(d("circle",{id:`decoration-dot-end-${t}`,cx:n,cy:r,r:2,fill:i,opacity:.9})),s},IL=(t,e,n,r,i)=>{if(t===0)return null;const o=[];for(let w=0;w<t;w++){const _=w%2===0,$=Math.floor(w/2),P=Hs($,e),O=Ds(_,$,e),T=n+O+P,I=r-w*i;o.push({x:T,y:I})}const s=o[0],a=o[o.length-1],l=6,c=t>5?t*16:100,h=s.x-e-c,u=s.x+e+c,f=s.y+l+c/6,p=a.x-e-c,g=a.x+e+c,y=a.y+l-c/6,m=`
|
|
111
116
|
M ${h} ${f}
|
|
112
117
|
L ${u} ${f}
|
|
113
118
|
L ${g} ${y}
|
|
114
119
|
L ${p} ${y}
|
|
115
120
|
Z
|
|
116
|
-
`,
|
|
121
|
+
`,b=`
|
|
117
122
|
M ${u} ${f}
|
|
118
123
|
L ${u} ${f+l}
|
|
119
124
|
L ${g} ${y+l}
|
|
@@ -125,12 +130,12 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
|
|
|
125
130
|
L ${u} ${f+l}
|
|
126
131
|
L ${h} ${f+l}
|
|
127
132
|
Z
|
|
128
|
-
`;return E(X,{children:[d(Mt,{children:E(It,{children:[E("linearGradient",{id:"basePlateTopGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"#fafafa",stopOpacity:1}),d("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:.98}),d("stop",{offset:"100%",stopColor:"#ececec",stopOpacity:.95})]}),E("linearGradient",{id:"basePlateFrontGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"#e0e0e0",stopOpacity:.95}),d("stop",{offset:"50%",stopColor:"#d2d2d2",stopOpacity:.93}),d("stop",{offset:"100%",stopColor:"#c5c5c5",stopOpacity:.9})]}),E("linearGradient",{id:"basePlateSideGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"#b8b8b8",stopOpacity:.92}),d("stop",{offset:"50%",stopColor:"#c0c0c0",stopOpacity:.88}),d("stop",{offset:"100%",stopColor:"#adadad",stopOpacity:.85})]})]})}),d(at,{id:"base-plate-front",d:v,fill:"url(#basePlateFrontGradient)",stroke:"#c5c5c5",strokeWidth:.3,opacity:.92}),d(at,{id:"base-plate-side",d:x,fill:"url(#basePlateSideGradient)",stroke:"#aaaaaa",strokeWidth:.3,opacity:.88}),d(at,{id:"base-plate-top",d:m,fill:"url(#basePlateTopGradient)",stroke:"#e5e5e5",strokeWidth:.5,opacity:.93})]})},_2=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:h="top",itemVerticalOffset:u=-12,firstDecorationWidth:f=90}=t,{title:p,desc:g,items:y=[]}=r,m=e?d(e,{title:p,desc:g}):null,x=tt(d(n,{indexes:[0],data:r,datum:y[0],positionH:"center"})),v=tt(d(K,{indexes:[0]})),b=oe(i),_=10,w=Math.max(6,c*.15),$=dz(y.length,x,o,a,l,c,f,_),{startY:P,leftItemAlignedX:O,rightItemAlignedX:T,cylinderAreaStartX:I}=$,S=[],R=[];y.forEach((L,C)=>{const H=_t(i,[C])||b;S.push(...pz(C,H));const F=uz(C,o,a,l,w,P,I),Q=gz(C,F,o,s),{itemPos:V,lineStartX:q,lineEndX:G,lineY:U}=fz(C,F,x,o,O,T,h,u,_),Z=mz(C,q,G,U,H);Q.push(...Z);const J=d(n,{indexes:[C],datum:L,data:r,x:V.x,y:V.y,positionH:C%2===0?"flipped":"normal"}),st=[d(Ht,{indexes:[C],x:V.x+x.width/2-v.width/2,y:V.y+x.height+10}),d(K,{indexes:[C],x:V.x+x.width/2-v.width/2,y:V.y-v.height-10})];R[C]={cylinderNodes:Q,itemNode:J,btnNodes:st,itemX:V.x,itemY:V.y}});let M=1/0,A=1/0,W=-1/0,k=-1/0;R.forEach(L=>{const{itemX:C,itemY:H}=L;M=Math.min(M,C),A=Math.min(A,H),W=Math.max(W,C+x.width),k=Math.max(k,H+x.height)});const D=W-M,z=k-A,N=[d(Mt,{children:S})],B=[],Y=yz(y.length,o,I,P,w);Y&&N.push(Y);for(let L=y.length-1;L>=0;L--){const C=R[L];C&&(N.push(E(X,{children:[d(X,{children:C.cylinderNodes}),C.itemNode]})),B.push(...C.btnNodes))}if(y.length>0){const L=y.length%2===0,C=Math.floor(y.length/2),H=bs(C,o),F=_s(L,C,o),Q=I+F+H,V=P-y.length*w;B.push(d(K,{indexes:[y.length],x:Q,y:V-100}))}return E(ot,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,E(X,{width:D,height:z,children:[d(Pt,{children:N}),d(bt,{children:B})]})]})};Ot("sequence-cylinders-3d",{component:_2,composites:["title","item"]});const At={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},Je={SIZE:8,MAX_COUNT:40,MIN_COUNT:5,ARROW_RATIO:.6,MIN_ARROW_COUNT:3};function vz(t,e,n){return(t+e*7+n*13)%100}function xz(t){const e=Math.ceil(Math.sqrt(t*1.5)),n=Math.ceil(t/e);return{cols:e,rows:n}}function bz(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 w2({count:t,rectX:e,rectY:n,rectWidth:r,rectHeight:i,seed:o}){const s=[],a=Je.SIZE/2,{cols:l,rows:c}=xz(t),h=(r-a*2)/(l+1),u=(i-a*2)/(c+1);let f=0;for(let p=0;p<c&&f<t;p++)for(let g=0;g<l&&f<t;g++){const y=vz(o,p,g),m=y%16-8,x=y*3%12-6,v=p%2===1?h/2:0,b=e+a+(g+1)*h+v,_=n+a+(p+1)*u,{x:w,y:$}=bz(b,_,m,x,e+a,e+r-a,n+a,n+i-a);s.push({x:w,y:$,colorIndex:f}),f++}return s}function _z(t,e){if(e<=1)return Je.MAX_COUNT;const n=t/(e-1),r=Je.MAX_COUNT-Je.MIN_COUNT;return Math.round(Je.MAX_COUNT-r*n)}function wz(){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,h={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${h.x} ${h.y}L${u.x} ${u.y}`);const f={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${f.x} ${f.y}L${p.x} ${p.y}`)}return a.join("")}function $2(t,e){return t.map(n=>{const r=_t(e,[n.colorIndex]);return d(at,{d:"M4 0L8 4L4 8L0 4Z",fill:r,x:n.x,y:n.y,width:Je.SIZE,height:Je.SIZE,"data-element-type":"shape"})})}function $z(t,e,n,r,i){return E(X,{x:e,y:0,width:At.WIDTH,height:At.HEIGHT,children:[E(qt,{children:[d(at,{d:wz(),stroke:"#D9D9D9",strokeWidth:2}),d(at,{d:`M${At.LINE_X} 25V260`,stroke:"#BFBFBF",strokeWidth:2,strokeLinecap:"round"}),d(xt,{x:At.RECT_X,y:At.RECT_Y,width:At.RECT_WIDTH,height:At.RECT_HEIGHT,fill:"#FFCB0E",fillOpacity:.2})]}),d(It,{children:$2(r,i)}),d($t,{x:At.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 Pz(t,e){const n=At.RECT_Y+At.RECT_HEIGHT/2-At.ARROW_HEIGHT/2,r=Math.max(Math.round(Je.MIN_COUNT*Je.ARROW_RATIO),Je.MIN_ARROW_COUNT),i=w2({count:r,rectX:0,rectY:14,rectWidth:57,rectHeight:120,seed:999});return E(X,{x:t+At.WIDTH,y:n,children:[d(at,{d:"M0 13.9679H57.1429V0L100 74L57.1429 148V134.032H0V13.9679Z",width:At.ARROW_WIDTH,height:At.ARROW_HEIGHT,fill:"#FFCB0E",fillOpacity:.2,"data-element-type":"shape"}),d(It,{children:$2(i,e)})]})}const P2=t=>{const{Title:e,Item:n,data:r,gap:i=20,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?d(e,{title:s,desc:a}):null,h=tt(d(K,{indexes:[0]})),u=tt(d(n,{indexes:[0],data:r,datum:l[0],width:At.WIDTH,positionH:"center"})),f=[],p=[],g=[],y=At.HEIGHT+i,m=y+u.height+10;if(l.forEach((x,v)=>{const b=v*At.WIDTH,_=[v],w=_t(o,_),$=_z(v,l.length),P=w2({count:$,rectX:At.RECT_X,rectY:At.RECT_Y,rectWidth:At.RECT_WIDTH,rectHeight:At.RECT_HEIGHT,seed:v*100});f.push($z(v,b,w,P,o)),v===l.length-1&&f.push(Pz(b,o)),p.push(d(n,{indexes:_,datum:x,data:r,width:At.WIDTH,x:b+At.LINE_X-At.WIDTH/2,y,positionH:"center"})),g.push(d(Ht,{indexes:_,x:b+At.LINE_X-h.width/2,y:m})),v<l.length-1&&g.push(d(K,{indexes:[v+1],x:b+At.WIDTH-h.width/2,y:m}))}),l.length>0){g.unshift(d(K,{indexes:[0],x:-h.width/2,y:m}));const x=(l.length-1)*At.WIDTH;g.push(d(K,{indexes:[l.length],x:x+At.WIDTH-h.width/2,y:m}))}return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,E(X,{width:At.WIDTH*l.length+At.ARROW_WIDTH,height:At.HEIGHT+i+u.height,children:[d(X,{children:f}),d(Pt,{children:p}),d(bt,{children:g})]})]})};Ot("sequence-filter-mesh",{component:P2,composites:["title","item"]});const O2=t=>{const{Title:e,Item:n,data:r,gap:i=30,cardPadding:o=10,options:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?d(e,{title:a,desc:l}):null,u=oe(s),f=me({colorPrimary:u},s),p=tt(d(K,{indexes:[0]})),g=tt(d(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),y=[],m=[],x=[],v=g.width+o*2,b=g.height+o*2+30,_=8,w=6,$=Math.max(p.height+20,40),P=40;if(c.forEach((O,T)=>{const I=T%2===0,S=T*(v+i);let R;I?T%4===2?R=$:R=$+P:R=$+P+60;const M=[T],A=_t(s,M)||u;if(I){const z=A===u?f.colorPrimaryBg||"#E8F3FF":`${A}20`,N=d(xt,{x:S,y:R,width:v,height:b,fill:z,rx:20,ry:20});x.push(N)}m.push(d(n,{indexes:M,datum:O,data:r,x:S+o,y:R+o,positionH:"center",positionV:"normal"}));const W=c.length*_+(c.length-1)*w,k=S+(v-W)/2,D=R+g.height+20;for(let z=0;z<c.length;z++){const N=k+z*(_+w),B=z===T;x.push(d(St,{x:N,y:D,width:_,height:_,fill:B?A:"transparent",stroke:A,strokeWidth:2}))}y.push(d(Ht,{indexes:M,x:S+(v-p.width)/2,y:R+b+10})),T===0?y.push(d(K,{indexes:M,x:S+(v-p.width)/2,y:R-p.height-10})):y.push(d(K,{indexes:M,x:S-i/2-p.width/2,y:$-p.height-10}))}),c.length>0){const O=[],I=i/2,S=6,R=$+P,M=0-I,A=R+b/2;O.push(`M ${M} ${A-S}`),c.forEach((Q,V)=>{const q=V%2===0,G=V*(v+i);let U;q?V%4===2?U=$:U=$+P:U=$+P+60;const Z=G-I,J=G+v+I,st=U-I,nt=U+b+I,lt=U+b/2;q?(O.push(`L ${Z} ${st+35}`),O.push(`Q ${Z} ${st} ${Z+35} ${st}`),O.push(`L ${J-35} ${st}`),O.push(`Q ${J} ${st} ${J} ${st+35}`),O.push(`L ${J} ${lt-S}`)):(O.push(`L ${Z} ${lt}`),O.push(`L ${Z} ${nt-35}`),O.push(`Q ${Z} ${nt} ${Z+35} ${nt}`),O.push(`L ${J-35} ${nt}`),O.push(`Q ${J} ${nt} ${J} ${nt-35}`),O.push(`L ${J} ${lt+S}`))});const W=c.length-1,k=W%2===0,D=W*(v+i);let z;k?W%4===2?z=$:z=$+P:z=$+P+60;const N=D+v+I,B=z+b/2,Y=O.join(" "),L="gradient-zigzag-path",C=_t(s,[0])||u,H=_t(s,[c.length-1])||u,F=c.map((Q,V)=>{const q=V/(c.length-1)*100,G=_t(s,[V])||u;return d("stop",{offset:`${q}%`,stopColor:G})});x.unshift(E(It,{children:[d(Mt,{children:d("linearGradient",{id:L,x1:M,y1:A,x2:N,y2:B,gradientUnits:"userSpaceOnUse",children:F})}),d(at,{d:Y,stroke:`url(#${L})`,strokeWidth:2,fill:"none",width:(c.length-1)*(v+i)+v+I*2,height:b+120})]})),x.unshift(d(St,{x:M-S,y:A-S,width:S*2,height:S*2,fill:"transparent",stroke:C,strokeWidth:2})),x.unshift(d(St,{x:N-S,y:B-S,width:S*2,height:S*2,fill:"transparent",stroke:H,strokeWidth:2}))}if(c.length>0){const T=(c.length-1)*(v+i);y.push(d(K,{indexes:[c.length],x:T+v+(i-p.width)/2,y:$-p.height-10}))}return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,E(X,{children:[d(qt,{children:x}),d(Pt,{children:m}),d(bt,{children:y})]})]})};Ot("sequence-horizontal-zigzag",{component:O2,composites:["title","item"]});var Oz=Object.defineProperty,Cz=Object.defineProperties,Mz=Object.getOwnPropertyDescriptors,C2=Object.getOwnPropertySymbols,Sz=Object.prototype.hasOwnProperty,Ez=Object.prototype.propertyIsEnumerable,M2=(t,e,n)=>e in t?Oz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ws=(t,e)=>{for(var n in e||(e={}))Sz.call(e,n)&&M2(t,n,e[n]);if(C2)for(var n of C2(e))Ez.call(e,n)&&M2(t,n,e[n]);return t},$s=(t,e)=>Cz(t,Mz(e));function Iz(t){const{width:e,height:n,colorPrimary:r}=t,i=r,o=it.mix(r,"#000",20).toHexString(),s=it.mix(r,"#fff",50).toHexString(),a=it.mix(s,"#000",15).toHexString();function l(P,O){const I=[{position:.25,offset:.1},{position:.45,offset:-.02},{position:.6,offset:.04},{position:.75,offset:-.1}],S={x:0,y:O},R={x:P,y:O},M={x:P/2,y:0},A={x:P/2,y:O},W=O*.35,k=W/O,D={x:M.x*(1-k)+S.x*k,y:W},z={x:M.x,y:W},N={x:M.x*(1-k)+R.x*k,y:W},B=I.map(C=>{const H=D.x+(N.x-D.x)*C.position,F=W,Q=O*C.offset;return{x:H,y:F+Q,position:C.position,offset:C.offset}});B.sort((C,H)=>C.position-H.position);const Y=B.filter(C=>C.x<=z.x),L=B.filter(C=>C.x>z.x);return{leftBottom:S,rightBottom:R,peak:M,centerBottom:A,snowLineY:W,leftEdge:D,centerSnow:z,rightEdge:N,leftRipples:Y,rightRipples:L}}const{leftRipples:c,rightRipples:h,leftBottom:u,rightBottom:f,peak:p,centerBottom:g,leftEdge:y,centerSnow:m,rightEdge:x}=l(e,n),v=[p,y,...c,m],b=[p,m,...h,x],_=[y,...c,m,g,u],w=[m,...h,x,f,g],$=P=>P.map(O=>`${O.x},${O.y}`).join(" ");return E(qt,$s(ws({},t),{children:[d("polygon",{points:$(v),fill:s}),d("polygon",{points:$(b),fill:a}),d("polygon",{points:$(_),fill:i}),d("polygon",{points:$(w),fill:o})]}))}function Tz(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,h=c/6,u=(c-h)/2,f=s;return E(qt,{width:c,height:n,children:[d("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:r,clipPath:"inset(0 50% 0 0)"}),d("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:i,clipPath:"inset(0 0 0 50%)"}),d("rect",{x:u,y:f,width:h,height:a,fill:o})]})}function Az(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,h=a*.4,u=8,f=Array.from({length:u},(p,g)=>{const y=360/u*g;return d("rect",{x:l,y:c,width:s,height:a,rx:h,ry:h,fill:"#FFCB0E",transform:`rotate(${y}, ${r}, ${i})`})});return E(qt,$s(ws({},t),{children:[d("circle",{cx:r,cy:i,r:o,fill:"#FFCB0E"}),...f]}))}function kz(t){return t.type==="single"?d(qt,$s(ws({},t),{width:54,height:36,children:d("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"})})):E(qt,$s(ws({},t),{width:73,height:40,children:[d("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"}),d("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 S2=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:h,desc:u,items:f=[]}=r,p=e?d(e,{title:h,desc:u}):null,g=[],y=[],m=[],x=[],v=f.length,b=me(c.themeConfig),_=60,w={single:{width:54,height:36},double:{width:73,height:40}},$=[],P=[];let O=0,T=0;f.forEach((B,Y)=>{const L=v>1?Y/(v-1):0,H=(o+(s-o)*L)*1.6,F=Math.max(a,Math.min(l,H));$.push(F);const Q=T;P.push(Q),T+=F/2,Y===v-1&&(O=Q+F)});const I=P[0],S=P[v-1]+$[v-1],R=S-I,M=v>1?(R-i*(v-1))/v:R,A=tt(d(n,{indexes:[0],data:r,datum:f[0],width:M})),W=32,k=s+i,D=k+W+10;f.forEach((B,Y)=>{const L=[Y],C=o+(s-o)*(v>1?Y/(v-1):0),H=$[Y],F=P[Y],Q=s-C,V=_t(c,[Y])||b.colorPrimary;m.push(d(Iz,{colorPrimary:V,x:F,y:Q,width:H,height:C}));const q=I+Y*(M+i);x.push(d($t,{x:q,y:k,width:M,height:W,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:V,backgroundColor:V,backgroundOpacity:.5,backgroundRadius:4,children:String(Y+1).padStart(2,"0")})),g.push(d(n,{indexes:L,datum:B,data:r,x:q,y:D,width:M}))});const z=tt(d(K,{indexes:[0]})),N=D+A.height+10;if(f.forEach((B,Y)=>{const L=[Y],C=I+Y*(M+i);y.push(d(Ht,{indexes:L,x:C+M/2-z.width/2,y:N})),Y<f.length-1&&y.push(d(K,{indexes:[Y+1],x:C+M+i/2-z.width/2,y:N}))}),v>0){const B=I;y.unshift(d(K,{indexes:[0],x:B-i/2-z.width/2,y:N}));const Y=I+(v-1)*(M+i);y.push(d(K,{indexes:[v],x:Y+M+i/2-z.width/2,y:N})),m.push(d(Az,{x:O-_-20,y:-35,width:_,height:_}));const L=["tiny","small","medium","large"],C={tiny:27,small:48,medium:54,large:72},H={tiny:14.85,small:26.4,medium:29.7,large:39.6},F=[],Q=(q,G,U=5)=>F.some(Z=>!(q+G+U<Z.x||q>Z.x+Z.width+U));f.forEach((q,G)=>{const U=P[G],Z=$[G],st=G===v-1?3:G===0?1:2;for(let nt=0;nt<st;nt++){const lt=G*100+nt*37,ct=lt*17%L.length,yt=L[ct],dt=C[yt],gt=H[yt];let mt=0,jt=0,Rt=!1;for(;mt<20&&!Rt;){const Et=(lt*13+mt*19)%100/100,wt=U+Z*.15,Lt=U+Z*.85-gt;jt=wt+(Lt-wt)*Et,Q(jt,gt)||(Rt=!0),mt++}if(Rt){F.push({x:jt,width:gt});const Et=s-dt;m.push(d(X,{x:jt,y:Et,children:Tz(yt)}))}}});const V=Math.max(1,Math.floor(v/1.5));for(let q=0;q<V;q++){const G=q*11+v*5+1,U=G%2===0?"single":"double",Z=w[U],J=S-I-Z.width,st=I+G*7%100/100*J,nt=G*13%40;m.push(d(kz,{type:U,x:st,y:nt,width:Z.width,height:Z.height}))}}return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,E(X,{children:[d(X,{children:m}),d(X,{children:x}),d(Pt,{children:g}),d(bt,{children:y})]})]})};Ot("sequence-mountain",{component:S2,composites:["title","item"]});const Ps=t=>Math.round(t*1e10)/1e10,Hc=(t,e)=>Ps(Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))),Os=Math.PI,zz=Os*2,Lz=(t,e)=>{const n=e-t;return n>Os&&n<zz||n<0&&n>-Os?-1:1},Hz=(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),h=Lz(s,a),u=s+h*l/2;return{prev:s,next:a,main:l,vel:c,dir:h,bis:u}},Rc=Math.PI,Rz=(t,e,n)=>t.reduce((r,i)=>{const{x:o,y:s,angle:{prev:a,next:l},arc:{x:c,y:h,radius:u}}=i,f=i.angle.dir*-1,p=a+f*Rc/2,g=(f*Rc+l-a)%Rc,y=n-1,m=g/y,x=[];if(!m)return r.concat({x:o,y:s});for(let v=0;v<=y;v++)x.push({x:c+Math.cos(p+m*v)*u,y:h+Math.sin(p+m*v)*u});return r.concat(x)},[]),Dz=(t,e=0)=>{const n=t.length,r=[],i=[],o=[];t.forEach((l,c)=>{const h=t[(c-1+n)%n],u=t[(c+1)%n],f=Hc(h,l),p=Hc(h,u),g=Hc(l,u),y=Hz(h,l,u,f,p,g);y.main===0&&(y.main=Number.EPSILON,y.vel=Number.MAX_SAFE_INTEGER),y.main===Os&&(y.vel=0);const m={x:l.x,y:l.y,angle:y,offset:0,arc:{radius:e,hit:e,lim:Math.min(g/y.vel,f/y.vel,l.r||0)},in:{length:f,rest:f},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(y.main)&&(y.main=0,y.bis=y.prev||y.next,o.push(m)),typeof l.r=="number"&&(l.r===0?o.push(m):i.push(m)),r.push(m)}),o.forEach(l=>{l.angle.vel=0,l.arc.radius=0,Dc(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=Cs(i);for(;s;)Nz(s),s=Cs(i);for(s=Cs(r);s;)jz(s,e),s=Cs(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:Ps(l.angle.main),prev:l.angle.prev,next:l.angle.next,bis:l.angle.bis,dir:l.angle.dir},offset:Ps(l.offset),arc:{radius:Ps(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},Nz=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),Dc(t)},jz=(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}Dc(t)},Dc=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)},Cs=t=>t.reduce((e,n)=>n.locked?e:e?n.arc.hit<e.arc.hit?n:e:n,null),E2=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:h,items:u=[]}=r,f=e?d(e,{title:c,desc:h}):null;if(u.length===0)return d(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:f});const p=5,g=me(l.themeConfig),y=30,m=[],x=[],v=[],b=[],_=s!=null?s:o*.6,w=o-_,$=a*1.2,P=u.length*$+(u.length-1)*i;return u.forEach((O,T)=>{const I=[T],S=T===0,R=_t(l,[T])||g.colorPrimary,{points:M,topWidth:A,bottomWidth:W}=Bz(_,$,i,u.length,T),k=Dz(M,p),D=Rz(k,"AMOUNT",10),z=_/2,N=T*($+i),B=($-a)/2,Y=N+B,L=z+A/2,C=z+W/2,F=L-p,Q=w+p,V=a,q=F+Q,G=z-y/2,U=N+$/2-y/2+(S?8:0),Z=C,J=q-C,st=Y;v.push(d(xt,{x:F,y:Y,width:Q,height:V,ry:"10",fill:g.colorPrimaryBg,"data-element-type":"shape"}));const nt=`${R}-pyramid-${T}`;x.push(d(Mt,{children:E("linearGradient",{id:nt,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0","stop-color":R}),d("stop",{offset:"100%","stop-color":it.mix(R,"#fff",40).toHexString()})]})}),d(We,{points:D,fill:`url(#${nt})`,y:N,"data-element-type":"shape"})),b.push(d(ge,{indexes:I,x:G,y:U,size:y,fill:"#fff"})),m.push(d(n,{indexes:I,datum:O,data:r,x:Z,y:st,width:J,height:a,positionV:"middle"}))}),E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,E(X,{width:o,height:P,children:[d(X,{children:v}),d(X,{children:x}),d(X,{children:b}),d(Pt,{children:m}),d(bt,{})]})]})};function Bz(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,h=l/s*t;let u;if(i===0){const f={x:o,y:0},p={x:o+h/2,y:e},g={x:o-h/2,y:e};u=[f,p,g]}else{const f={x:o+c/2,y:0},p={x:o+h/2,y:e},g={x:o-h/2,y:e},y={x:o-c/2,y:0};u=[f,p,g,y]}return{points:u,topWidth:c,bottomWidth:h}}Ot("sequence-pyramid",{component:E2,composites:["title","item"]});const _i={iconSize:50,roadWidth:24,outerRadius:60,rowWidth:400,spacing:30,colorDefault:"#666666"},I2=(t,e)=>`M ${t} ${e}`,Xt=(t,e)=>`L ${t} ${e}`,Pr=(t,e,n,r)=>`A ${t} ${t} 0 0 ${e} ${n} ${r}`,Fz=(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 Vz({i:t,direction:e,x:n,y:r,color:i,data:o,itemBounds:s,item:a,Item:l,flipped:c}){const{iconSize:h}=_i,u=e==="left",f=u?n.x4-h/2:n.x3-h/2,p=r.y3-h/2,g=u?n.x6+_i.spacing:n.x1-_i.spacing-s.width,y=r.y3-s.height/2,m=u?c?"flipped":"normal":c?"normal":"flipped";return{icon:d(Yn,{indexes:[t],x:f,y:p,size:h,fill:i}),label:d($t,{width:40,x:u?f-50:f+h+10,y:p+h/2-15,fontSize:30,fill:i,alignHorizontal:u?"right":"left",children:String(t+1).padStart(2,"0")}),item:d(l,{indexes:[t],data:o,datum:a,x:g,y,positionH:m})}}function Wz({direction:t,x:e,y:n,color:r,elements:i}){const o=t==="left";i.push(d(Jk,{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 T2=t=>{const{Title:e,Item:n,data:r,spacing:i=_i.spacing,options:o,flipped:s=!1}=t,{title:a,desc:l,items:c=[]}=r,h=e?d(e,{title:a,desc:l}):null,u=tt(d(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),{roadWidth:f,outerRadius:p,rowWidth:g,colorDefault:y}=_i,m=f/2,x=p-f,v=(u.width+i)*2+g,b=u.width+i,_=b+p,w=b+g-p,P=w+x+f,O=b+g/2,T=[],I=[],S=[],R=[],M=[],A=[],W=[];for(let z=0;z<c.length;z++){const N=_t(o,[z])||y,B=z%2===0?"right":"left",Y=z===0,L=z===c.length-1,C=Fz(z,{roadWidth:f,innerRadius:x,outerRadius:p});if(B==="right"){const V=Y?[P,C.y1]:[w,C.y1],q=[_,C.y1],G=[_,C.y5],U=Y?[P,C.y2]:[w,C.y2],Z=[_,C.y2];if(T.push(Y?I2(P,C.y1+m):Xt(w,C.y1+m),Xt(_,C.y1+m),Pr(p-m,0,_,C.y4+m)),I.push(Y?I2(...V):Xt(...V),Xt(...q),Pr(p,0,...G)),S.push(Xt(...U),Xt(...Z),Pr(x,1,...Z)),L){const J=f/2;I.push(Xt(O,C.y5),Xt(O,C.y5+J),Xt(O+f,C.y5-J),Xt(O,C.y4-J),Xt(O,C.y4),Xt(_,C.y4)),T.push(Xt(O,C.y4+m))}}else{const V=[_,C.y2],q=[w,C.y2],G=[w,C.y4],U=[_,C.y1],Z=[w,C.y1];if(T.push(Xt(w,C.y1+m),Pr(p-m,1,w,C.y4+m)),I.push(Xt(...V),Xt(...q),Pr(x,1,...G)),S.push(Xt(...U),Xt(...Z),Pr(p,0,...Z)),L){const J=f/2;I.push(Xt(O,C.y4),Xt(O,C.y4-J),Xt(O-f,C.y4+J),Xt(O,C.y5+J),Xt(O,C.y5),Xt(w,C.y5)),T.push(Xt(O,C.y4+m))}}Wz({direction:B,x:{x1:b,x6:P},y:C,color:N,elements:W});const{icon:H,label:F,item:Q}=Vz({i:z,direction:B,x:{x1:b,x3:_,x4:w,x6:P},y:C,color:N,data:r,itemBounds:u,item:c[z],Item:n,flipped:s});R.push(H),M.push(F),A.push(Q)}const k=[...I,...S.reverse(),"Z"],D=c.length*(f+x*2)+f*1.5;return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,E(X,{width:v,height:u.height<=p*2?D:D+u.height-p*2,children:[d(at,{width:g,height:D,d:k.join(" "),fill:y,stroke:y,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),d(at,{d:T.join(" "),stroke:"white",fill:"none",strokeWidth:"3",strokeDasharray:"8 8",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),E(It,{children:[R,M,A,W]})]})]})};Ot("sequence-roadmap-vertical",{component:T2,composites:["title","item"]});const A2=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:h=[]}=r,u=e?d(e,{title:l,desc:c}):null,f=oe(a),p=tt(d(K,{indexes:[0]})),g=tt(d(n,{indexes:[0],data:r,datum:h[0],positionH:"center"})),y=[],m=[],x=[],v=25,b=25;if(h.forEach((_,w)=>{const $=Math.floor(w/o),P=w%o,O=$%2===1,I=(O?o-1-P:P)*(g.width+i),S=$*(g.height+s),R=[w];if(m.push(d(n,{indexes:R,datum:_,data:r,x:I,y:S,positionH:"center"})),y.push(d(Ht,{indexes:R,x:I+(g.width-p.width)/2,y:S+g.height+10})),w===0&&y.push(d(K,{indexes:R,x:I+(g.width-p.width)/2,y:S-p.height-10})),w<h.length-1){const M=Math.floor((w+1)/o),A=(w+1)%o,D=(M%2===1?o-1-A:A)*(g.width+i);if($===M){const N=O,B=N?D+g.width+(i-v)/2:I+g.width+(i-v)/2,Y=S+g.height/2-b/2;x.push(d(Lc,{x:B,y:Y,width:v,height:b,colorPrimary:f,rotation:N?180:0})),y.push(d(K,{indexes:[w+1],x:B+(v-p.width)/2,y:S-p.height-10}))}else{const N=I+g.width/2-v/2,B=S+g.height+(s-b)/2;x.push(d(Lc,{x:N,y:B,width:v,height:b,colorPrimary:f,rotation:90})),y.push(d(K,{indexes:[w+1],x:N+(v-p.width)/2,y:B+(b-p.height)/2}))}}}),h.length>0){const _=h.length-1,w=Math.floor(_/o),$=_%o,T=(w%2===1?o-1-$:$)*(g.width+i),I=w*(g.height+s);y.push(d(K,{indexes:[h.length],x:T+(g.width-p.width)/2,y:I+g.height+p.height+20}))}return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,E(X,{children:[d(X,{children:x}),d(Pt,{children:m}),d(bt,{children:y})]})]})};Ot("sequence-snake-steps",{component:A2,composites:["title","item"]});const k2=t=>{const{Title:e,Item:n,data:r,gap:i=40,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?d(e,{title:s,desc:a}):null,h=oe(o),u=tt(d(K,{indexes:[0]})),f=tt(d(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),p=[],g=[],y=[],m=25,x=25,v=Math.max(u.height+20,30);if(l.forEach((b,_)=>{const w=_*(f.width+i),$=[_];if(g.push(d(n,{indexes:$,datum:b,data:r,x:w,y:v,positionH:"center"})),p.push(d(Ht,{indexes:$,x:w+(f.width-u.width)/2,y:v+f.height+10})),_===0?p.push(d(K,{indexes:$,x:w+(f.width-u.width)/2,y:v-u.height-10})):p.push(d(K,{indexes:$,x:w-i/2-u.width/2,y:v-u.height-10})),_<l.length-1){const P=w+f.width+(i-m)/2,O=v+f.height/2-x/2;y.push(d(Lc,{x:P,y:O,width:m,height:x,colorPrimary:h}))}}),l.length>0){const b=(l.length-1)*(f.width+i);p.push(d(K,{indexes:[l.length],x:b+f.width+(i-u.width)/2,y:v-u.height-10}))}return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,E(X,{children:[d(X,{children:y}),d(Pt,{children:g}),d(bt,{children:p})]})]})};Ot("sequence-steps",{component:k2,composites:["title","item"]});const z2=t=>{const{Title:e,Item:n,data:r,gap:i=10,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?d(e,{title:s,desc:a}):null,h=oe(o),u=Pp(o),f=tt(d(K,{indexes:[0]})),p=tt(d(n,{indexes:[0],data:r,datum:l[0],positionH:"normal"})),g=[],y=[],m=[],x=10,v=x+70+10,b=v+30,_=6;if(l.length>1){const w=p.height/2+_,$=(l.length-1)*(p.height+i)+p.height/2-_,P=`M ${v} ${w} L ${v} ${$}`,O="gradient-timeline-line",T=$-w,I=l.map((S,R)=>{const A=(R*(p.height+i)+p.height/2-w)/T*100,W=_t(o,[R]);return d("stop",{offset:`${A}%`,stopColor:W||h})});m.push(E(It,{children:[d(Mt,{children:d("linearGradient",{id:O,x1:v,y1:w,x2:v,y2:$,gradientUnits:"userSpaceOnUse",children:I})}),d(at,{d:P,stroke:`url(#${O})`,strokeWidth:2,width:1,height:$-w})]}))}if(l.forEach((w,$)=>{const P=$*(p.height+i),O=P+p.height/2,T=[$];m.push(d($t,{x,y:O,width:70,fontSize:18,fontWeight:"bold",alignHorizontal:"left",alignVertical:"middle",fill:u[$%u.length],children:`STEP ${$+1}`})),y.push(d(n,{indexes:T,datum:w,data:r,x:b,y:P,positionH:"normal"})),m.push(d(St,{x:v-_,y:O-_,width:_*2,height:_*2,fill:u[$%u.length]})),g.push(d(Ht,{indexes:T,x:b-f.width-10,y:P+(p.height-f.height)/2})),$===0?g.push(d(K,{indexes:T,x:b+(p.width-f.width)/2,y:P-f.height-10})):g.push(d(K,{indexes:T,x:b+(p.width-f.width)/2,y:P-i/2-f.height/2}))}),l.length>0){const w=(l.length-1)*(p.height+i);g.push(d(K,{indexes:[l.length],x:b+(p.width-f.width)/2,y:w+p.height+10}))}return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,E(X,{children:[d(qt,{children:m}),d(Pt,{children:y}),d(bt,{children:g})]})]})};Ot("sequence-timeline",{component:z2,composites:["title","item"]});const Nc=120,jc=108,Ms=30,Yz="M4.49144e-05 34.4898C4.49144e-05 37.8786 0.848973 41.152 2.43571 44.2444C4.23516 47.7642 6.98514 51.0472 10.517 54.0009C21.331 63.047 39.4615 68.9814 59.9991 68.9814C80.5385 68.9814 98.6672 63.047 109.483 54.0009C113.013 51.0472 115.765 47.7642 117.564 44.2444C119.149 41.152 120 37.8786 120 34.4898C120 15.4407 93.1364 0 59.9991 0C26.8635 0 4.49144e-05 15.4407 4.49144e-05 34.4898Z",Xz="M4.49145e-05 34.4898V53.9991C4.49145e-05 57.3879 0.848973 60.6613 2.43571 63.7556C9.75425 78.0545 32.7562 88.4907 59.999 88.4907C87.2438 88.4907 110.246 78.0545 117.564 63.7556C119.149 60.6613 120 57.3879 120 53.9991V34.4898C120 37.8786 119.149 41.152 117.564 44.2444C115.765 47.7642 113.013 51.0472 109.483 54.0009C98.6672 63.047 80.5385 68.9814 59.999 68.9814C39.4615 68.9814 21.3309 63.047 10.5169 54.0009C6.98509 51.0472 4.23516 47.7642 2.43567 44.2444C0.848928 41.152 4.49145e-05 37.8786 4.49145e-05 34.4898Z",Gz="M0 53.9991V73.5102C0 92.5593 26.8634 108 59.999 108C93.1363 108 120 92.5593 120 73.5102V53.9991C120 57.3879 119.149 60.6613 117.564 63.7556C110.246 78.0545 87.2438 88.4907 59.999 88.4907C32.7562 88.4907 9.75425 78.0545 2.43571 63.7556C0.848973 60.6613 0 57.3879 0 53.9991Z",L2=E("filter",{id:"sequence-zigzag-pucks-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[d("feOffset",{dx:"-7",dy:"7",in:"SourceAlpha",result:"offset"}),d("feGaussianBlur",{stdDeviation:"7.5",in:"offset",result:"blurred"}),d("feColorMatrix",{in:"blurred",type:"matrix",values:`0 0 0 0 0
|
|
133
|
+
`;return E(Y,{children:[d(zt,{children:E(Rt,{children:[E("linearGradient",{id:"basePlateTopGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"#fafafa",stopOpacity:1}),d("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:.98}),d("stop",{offset:"100%",stopColor:"#ececec",stopOpacity:.95})]}),E("linearGradient",{id:"basePlateFrontGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"#e0e0e0",stopOpacity:.95}),d("stop",{offset:"50%",stopColor:"#d2d2d2",stopOpacity:.93}),d("stop",{offset:"100%",stopColor:"#c5c5c5",stopOpacity:.9})]}),E("linearGradient",{id:"basePlateSideGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"#b8b8b8",stopOpacity:.92}),d("stop",{offset:"50%",stopColor:"#c0c0c0",stopOpacity:.88}),d("stop",{offset:"100%",stopColor:"#adadad",stopOpacity:.85})]})]})}),d(ht,{id:"base-plate-front",d:v,fill:"url(#basePlateFrontGradient)",stroke:"#c5c5c5",strokeWidth:.3,opacity:.92}),d(ht,{id:"base-plate-side",d:b,fill:"url(#basePlateSideGradient)",stroke:"#aaaaaa",strokeWidth:.3,opacity:.88}),d(ht,{id:"base-plate-top",d:m,fill:"url(#basePlateTopGradient)",stroke:"#e5e5e5",strokeWidth:.5,opacity:.93})]})},J2=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:h="top",itemVerticalOffset:u=-12,firstDecorationWidth:f=90}=t,{title:p,desc:g,items:y=[]}=r,m=e?d(e,{title:p,desc:g}):null,b=Q(d(n,{indexes:[0],data:r,datum:y[0],positionH:"center"})),v=Q(d(q,{indexes:[0]})),x=re(i),w=10,_=Math.max(6,c*.15),$=PL(y.length,b,o,a,l,c,f,w),{startY:P,leftItemAlignedX:O,rightItemAlignedX:T,cylinderAreaStartX:I}=$,S=[],H=[];y.forEach((L,M)=>{const R=Ct(i,[M])||x;S.push(...ML(M,R));const W=OL(M,o,a,l,_,P,I),U=SL(M,W,o,s),{itemPos:V,lineStartX:G,lineEndX:Z,lineY:K}=CL(M,W,b,o,O,T,h,u,w),nt=EL(M,G,Z,K,R);U.push(...nt);const at=d(n,{indexes:[M],datum:L,data:r,x:V.x,y:V.y,positionH:M%2===0?"flipped":"normal"}),pt=[d(Ft,{indexes:[M],x:V.x+b.width/2-v.width/2,y:V.y+b.height+10}),d(q,{indexes:[M],x:V.x+b.width/2-v.width/2,y:V.y-v.height-10})];H[M]={cylinderNodes:U,itemNode:at,btnNodes:pt,itemX:V.x,itemY:V.y}});let C=1/0,A=1/0,B=-1/0,k=-1/0;H.forEach(L=>{const{itemX:M,itemY:R}=L;C=Math.min(C,M),A=Math.min(A,R),B=Math.max(B,M+b.width),k=Math.max(k,R+b.height)});const D=B-C,z=k-A,N=[d(zt,{children:S})],j=[],X=IL(y.length,o,I,P,_);X&&N.push(X);for(let L=y.length-1;L>=0;L--){const M=H[L];M&&(N.push(E(Y,{children:[d(Y,{children:M.cylinderNodes}),M.itemNode]})),j.push(...M.btnNodes))}if(y.length>0){const L=y.length%2===0,M=Math.floor(y.length/2),R=Hs(M,o),W=Ds(L,M,o),U=I+W+R,V=P-y.length*_;j.push(d(q,{indexes:[y.length],x:U,y:V-100}))}return E(lt,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,E(Y,{width:D,height:z,children:[d(It,{children:N}),d(Ot,{children:j})]})]})};Tt("sequence-cylinders-3d",{component:J2,composites:["title","item"]});const Dt={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},an={SIZE:8,MAX_COUNT:40,MIN_COUNT:5,ARROW_RATIO:.6,MIN_ARROW_COUNT:3};function TL(t,e,n){return(t+e*7+n*13)%100}function AL(t){const e=Math.ceil(Math.sqrt(t*1.5)),n=Math.ceil(t/e);return{cols:e,rows:n}}function kL(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 ty({count:t,rectX:e,rectY:n,rectWidth:r,rectHeight:i,seed:o}){const s=[],a=an.SIZE/2,{cols:l,rows:c}=AL(t),h=(r-a*2)/(l+1),u=(i-a*2)/(c+1);let f=0;for(let p=0;p<c&&f<t;p++)for(let g=0;g<l&&f<t;g++){const y=TL(o,p,g),m=y%16-8,b=y*3%12-6,v=p%2===1?h/2:0,x=e+a+(g+1)*h+v,w=n+a+(p+1)*u,{x:_,y:$}=kL(x,w,m,b,e+a,e+r-a,n+a,n+i-a);s.push({x:_,y:$,colorIndex:f}),f++}return s}function zL(t,e){if(e<=1)return an.MAX_COUNT;const n=t/(e-1),r=an.MAX_COUNT-an.MIN_COUNT;return Math.round(an.MAX_COUNT-r*n)}function LL(){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,h={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${h.x} ${h.y}L${u.x} ${u.y}`);const f={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${f.x} ${f.y}L${p.x} ${p.y}`)}return a.join("")}function ey(t,e){return t.map(n=>{const r=Ct(e,[n.colorIndex]);return d(ht,{d:"M4 0L8 4L4 8L0 4Z",fill:r,x:n.x,y:n.y,width:an.SIZE,height:an.SIZE,"data-element-type":"shape"})})}function RL(t,e,n,r,i){return E(Y,{x:e,y:0,width:Dt.WIDTH,height:Dt.HEIGHT,children:[E(ne,{children:[d(ht,{d:LL(),stroke:"#D9D9D9",strokeWidth:2}),d(ht,{d:`M${Dt.LINE_X} 25V260`,stroke:"#BFBFBF",strokeWidth:2,strokeLinecap:"round"}),d(St,{x:Dt.RECT_X,y:Dt.RECT_Y,width:Dt.RECT_WIDTH,height:Dt.RECT_HEIGHT,fill:"#FFCB0E",fillOpacity:.2})]}),d(Rt,{children:ey(r,i)}),d(Et,{x:Dt.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 HL(t,e){const n=Dt.RECT_Y+Dt.RECT_HEIGHT/2-Dt.ARROW_HEIGHT/2,r=Math.max(Math.round(an.MIN_COUNT*an.ARROW_RATIO),an.MIN_ARROW_COUNT),i=ty({count:r,rectX:0,rectY:14,rectWidth:57,rectHeight:120,seed:999});return E(Y,{x:t+Dt.WIDTH,y:n,children:[d(ht,{d:"M0 13.9679H57.1429V0L100 74L57.1429 148V134.032H0V13.9679Z",width:Dt.ARROW_WIDTH,height:Dt.ARROW_HEIGHT,fill:"#FFCB0E",fillOpacity:.2,"data-element-type":"shape"}),d(Rt,{children:ey(i,e)})]})}const ny=t=>{const{Title:e,Item:n,data:r,gap:i=20,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?d(e,{title:s,desc:a}):null,h=Q(d(q,{indexes:[0]})),u=Q(d(n,{indexes:[0],data:r,datum:l[0],width:Dt.WIDTH,positionH:"center"})),f=[],p=[],g=[],y=Dt.HEIGHT+i,m=y+u.height+10;if(l.forEach((b,v)=>{const x=v*Dt.WIDTH,w=[v],_=Ct(o,w),$=zL(v,l.length),P=ty({count:$,rectX:Dt.RECT_X,rectY:Dt.RECT_Y,rectWidth:Dt.RECT_WIDTH,rectHeight:Dt.RECT_HEIGHT,seed:v*100});f.push(RL(v,x,_,P,o)),v===l.length-1&&f.push(HL(x,o)),p.push(d(n,{indexes:w,datum:b,data:r,width:Dt.WIDTH,x:x+Dt.LINE_X-Dt.WIDTH/2,y,positionH:"center"})),g.push(d(Ft,{indexes:w,x:x+Dt.LINE_X-h.width/2,y:m})),v<l.length-1&&g.push(d(q,{indexes:[v+1],x:x+Dt.WIDTH-h.width/2,y:m}))}),l.length>0){g.unshift(d(q,{indexes:[0],x:-h.width/2,y:m}));const b=(l.length-1)*Dt.WIDTH;g.push(d(q,{indexes:[l.length],x:b+Dt.WIDTH-h.width/2,y:m}))}return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,E(Y,{width:Dt.WIDTH*l.length+Dt.ARROW_WIDTH,height:Dt.HEIGHT+i+u.height,children:[d(Y,{children:f}),d(It,{children:p}),d(Ot,{children:g})]})]})};Tt("sequence-filter-mesh",{component:ny,composites:["title","item"]});const ry=t=>{const{Title:e,Item:n,data:r,gap:i=30,cardPadding:o=10,options:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?d(e,{title:a,desc:l}):null,u=re(s),f=be({colorPrimary:u},s),p=Q(d(q,{indexes:[0]})),g=Q(d(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),y=[],m=[],b=[],v=g.width+o*2,x=g.height+o*2+30,w=8,_=6,$=Math.max(p.height+20,40),P=40;if(c.forEach((O,T)=>{const I=T%2===0,S=T*(v+i);let H;I?T%4===2?H=$:H=$+P:H=$+P+60;const C=[T],A=Ct(s,C)||u;if(I){const z=A===u?f.colorPrimaryBg||"#E8F3FF":`${A}20`,N=d(St,{x:S,y:H,width:v,height:x,fill:z,rx:20,ry:20});b.push(N)}m.push(d(n,{indexes:C,datum:O,data:r,x:S+o,y:H+o,positionH:"center",positionV:"normal"}));const B=c.length*w+(c.length-1)*_,k=S+(v-B)/2,D=H+g.height+20;for(let z=0;z<c.length;z++){const N=k+z*(w+_),j=z===T;b.push(d(Lt,{x:N,y:D,width:w,height:w,fill:j?A:"transparent",stroke:A,strokeWidth:2}))}y.push(d(Ft,{indexes:C,x:S+(v-p.width)/2,y:H+x+10})),T===0?y.push(d(q,{indexes:C,x:S+(v-p.width)/2,y:H-p.height-10})):y.push(d(q,{indexes:C,x:S-i/2-p.width/2,y:$-p.height-10}))}),c.length>0){const O=[],I=i/2,S=6,H=$+P,C=0-I,A=H+x/2;O.push(`M ${C} ${A-S}`),c.forEach((U,V)=>{const G=V%2===0,Z=V*(v+i);let K;G?V%4===2?K=$:K=$+P:K=$+P+60;const nt=Z-I,at=Z+v+I,pt=K-I,ft=K+x+I,rt=K+x/2;G?(O.push(`L ${nt} ${pt+35}`),O.push(`Q ${nt} ${pt} ${nt+35} ${pt}`),O.push(`L ${at-35} ${pt}`),O.push(`Q ${at} ${pt} ${at} ${pt+35}`),O.push(`L ${at} ${rt-S}`)):(O.push(`L ${nt} ${rt}`),O.push(`L ${nt} ${ft-35}`),O.push(`Q ${nt} ${ft} ${nt+35} ${ft}`),O.push(`L ${at-35} ${ft}`),O.push(`Q ${at} ${ft} ${at} ${ft-35}`),O.push(`L ${at} ${rt+S}`))});const B=c.length-1,k=B%2===0,D=B*(v+i);let z;k?B%4===2?z=$:z=$+P:z=$+P+60;const N=D+v+I,j=z+x/2,X=O.join(" "),L="gradient-zigzag-path",M=Ct(s,[0])||u,R=Ct(s,[c.length-1])||u,W=c.map((U,V)=>{const G=V/(c.length-1)*100,Z=Ct(s,[V])||u;return d("stop",{offset:`${G}%`,stopColor:Z})});b.unshift(E(Rt,{children:[d(zt,{children:d("linearGradient",{id:L,x1:C,y1:A,x2:N,y2:j,gradientUnits:"userSpaceOnUse",children:W})}),d(ht,{d:X,stroke:`url(#${L})`,strokeWidth:2,fill:"none",width:(c.length-1)*(v+i)+v+I*2,height:x+120})]})),b.unshift(d(Lt,{x:C-S,y:A-S,width:S*2,height:S*2,fill:"transparent",stroke:M,strokeWidth:2})),b.unshift(d(Lt,{x:N-S,y:j-S,width:S*2,height:S*2,fill:"transparent",stroke:R,strokeWidth:2}))}if(c.length>0){const T=(c.length-1)*(v+i);y.push(d(q,{indexes:[c.length],x:T+v+(i-p.width)/2,y:$-p.height-10}))}return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,E(Y,{children:[d(ne,{children:b}),d(It,{children:m}),d(Ot,{children:y})]})]})};Tt("sequence-horizontal-zigzag",{component:ry,composites:["title","item"]});var DL=Object.defineProperty,NL=Object.defineProperties,jL=Object.getOwnPropertyDescriptors,iy=Object.getOwnPropertySymbols,FL=Object.prototype.hasOwnProperty,BL=Object.prototype.propertyIsEnumerable,oy=(t,e,n)=>e in t?DL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ns=(t,e)=>{for(var n in e||(e={}))FL.call(e,n)&&oy(t,n,e[n]);if(iy)for(var n of iy(e))BL.call(e,n)&&oy(t,n,e[n]);return t},js=(t,e)=>NL(t,jL(e));function WL(t){const{width:e,height:n,colorPrimary:r}=t,i=r,o=ot.mix(r,"#000",20).toHexString(),s=ot.mix(r,"#fff",50).toHexString(),a=ot.mix(s,"#000",15).toHexString();function l(P,O){const I=[{position:.25,offset:.1},{position:.45,offset:-.02},{position:.6,offset:.04},{position:.75,offset:-.1}],S={x:0,y:O},H={x:P,y:O},C={x:P/2,y:0},A={x:P/2,y:O},B=O*.35,k=B/O,D={x:C.x*(1-k)+S.x*k,y:B},z={x:C.x,y:B},N={x:C.x*(1-k)+H.x*k,y:B},j=I.map(M=>{const R=D.x+(N.x-D.x)*M.position,W=B,U=O*M.offset;return{x:R,y:W+U,position:M.position,offset:M.offset}});j.sort((M,R)=>M.position-R.position);const X=j.filter(M=>M.x<=z.x),L=j.filter(M=>M.x>z.x);return{leftBottom:S,rightBottom:H,peak:C,centerBottom:A,snowLineY:B,leftEdge:D,centerSnow:z,rightEdge:N,leftRipples:X,rightRipples:L}}const{leftRipples:c,rightRipples:h,leftBottom:u,rightBottom:f,peak:p,centerBottom:g,leftEdge:y,centerSnow:m,rightEdge:b}=l(e,n),v=[p,y,...c,m],x=[p,m,...h,b],w=[y,...c,m,g,u],_=[m,...h,b,f,g],$=P=>P.map(O=>`${O.x},${O.y}`).join(" ");return E(ne,js(Ns({},t),{children:[d("polygon",{points:$(v),fill:s}),d("polygon",{points:$(x),fill:a}),d("polygon",{points:$(w),fill:i}),d("polygon",{points:$(_),fill:o})]}))}function VL(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,h=c/6,u=(c-h)/2,f=s;return E(ne,{width:c,height:n,children:[d("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:r,clipPath:"inset(0 50% 0 0)"}),d("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:i,clipPath:"inset(0 0 0 50%)"}),d("rect",{x:u,y:f,width:h,height:a,fill:o})]})}function YL(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,h=a*.4,u=8,f=Array.from({length:u},(p,g)=>{const y=360/u*g;return d("rect",{x:l,y:c,width:s,height:a,rx:h,ry:h,fill:"#FFCB0E",transform:`rotate(${y}, ${r}, ${i})`})});return E(ne,js(Ns({},t),{children:[d("circle",{cx:r,cy:i,r:o,fill:"#FFCB0E"}),...f]}))}function XL(t){return t.type==="single"?d(ne,js(Ns({},t),{width:54,height:36,children:d("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"})})):E(ne,js(Ns({},t),{width:73,height:40,children:[d("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"}),d("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 sy=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:h,desc:u,items:f=[]}=r,p=e?d(e,{title:h,desc:u}):null,g=[],y=[],m=[],b=[],v=f.length,x=be(c.themeConfig),w=60,_={single:{width:54,height:36},double:{width:73,height:40}},$=[],P=[];let O=0,T=0;f.forEach((j,X)=>{const L=v>1?X/(v-1):0,R=(o+(s-o)*L)*1.6,W=Math.max(a,Math.min(l,R));$.push(W);const U=T;P.push(U),T+=W/2,X===v-1&&(O=U+W)});const I=P[0],S=P[v-1]+$[v-1],H=S-I,C=v>1?(H-i*(v-1))/v:H,A=Q(d(n,{indexes:[0],data:r,datum:f[0],width:C})),B=32,k=s+i,D=k+B+10;f.forEach((j,X)=>{const L=[X],M=o+(s-o)*(v>1?X/(v-1):0),R=$[X],W=P[X],U=s-M,V=Ct(c,[X])||x.colorPrimary;m.push(d(WL,{colorPrimary:V,x:W,y:U,width:R,height:M}));const G=I+X*(C+i);b.push(d(Et,{x:G,y:k,width:C,height:B,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:V,backgroundColor:V,backgroundOpacity:.5,backgroundRadius:4,children:String(X+1).padStart(2,"0")})),g.push(d(n,{indexes:L,datum:j,data:r,x:G,y:D,width:C}))});const z=Q(d(q,{indexes:[0]})),N=D+A.height+10;if(f.forEach((j,X)=>{const L=[X],M=I+X*(C+i);y.push(d(Ft,{indexes:L,x:M+C/2-z.width/2,y:N})),X<f.length-1&&y.push(d(q,{indexes:[X+1],x:M+C+i/2-z.width/2,y:N}))}),v>0){const j=I;y.unshift(d(q,{indexes:[0],x:j-i/2-z.width/2,y:N}));const X=I+(v-1)*(C+i);y.push(d(q,{indexes:[v],x:X+C+i/2-z.width/2,y:N})),m.push(d(YL,{x:O-w-20,y:-35,width:w,height:w}));const L=["tiny","small","medium","large"],M={tiny:27,small:48,medium:54,large:72},R={tiny:14.85,small:26.4,medium:29.7,large:39.6},W=[],U=(G,Z,K=5)=>W.some(nt=>!(G+Z+K<nt.x||G>nt.x+nt.width+K));f.forEach((G,Z)=>{const K=P[Z],nt=$[Z],pt=Z===v-1?3:Z===0?1:2;for(let ft=0;ft<pt;ft++){const rt=Z*100+ft*37,tt=rt*17%L.length,et=L[tt],st=M[et],vt=R[et];let gt=0,dt=0,ct=!1;for(;gt<20&&!ct;){const ut=(rt*13+gt*19)%100/100,mt=K+nt*.15,Pt=K+nt*.85-vt;dt=mt+(Pt-mt)*ut,U(dt,vt)||(ct=!0),gt++}if(ct){W.push({x:dt,width:vt});const ut=s-st;m.push(d(Y,{x:dt,y:ut,children:VL(et)}))}}});const V=Math.max(1,Math.floor(v/1.5));for(let G=0;G<V;G++){const Z=G*11+v*5+1,K=Z%2===0?"single":"double",nt=_[K],at=S-I-nt.width,pt=I+Z*7%100/100*at,ft=Z*13%40;m.push(d(XL,{type:K,x:pt,y:ft,width:nt.width,height:nt.height}))}}return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,E(Y,{children:[d(Y,{children:m}),d(Y,{children:b}),d(It,{children:g}),d(Ot,{children:y})]})]})};Tt("sequence-mountain",{component:sy,composites:["title","item"]});const Fs=t=>Math.round(t*1e10)/1e10,Jc=(t,e)=>Fs(Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))),Bs=Math.PI,GL=Bs*2,qL=(t,e)=>{const n=e-t;return n>Bs&&n<GL||n<0&&n>-Bs?-1:1},UL=(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),h=qL(s,a),u=s+h*l/2;return{prev:s,next:a,main:l,vel:c,dir:h,bis:u}},th=Math.PI,ZL=(t,e,n)=>t.reduce((r,i)=>{const{x:o,y:s,angle:{prev:a,next:l},arc:{x:c,y:h,radius:u}}=i,f=i.angle.dir*-1,p=a+f*th/2,g=(f*th+l-a)%th,y=n-1,m=g/y,b=[];if(!m)return r.concat({x:o,y:s});for(let v=0;v<=y;v++)b.push({x:c+Math.cos(p+m*v)*u,y:h+Math.sin(p+m*v)*u});return r.concat(b)},[]),KL=(t,e=0)=>{const n=t.length,r=[],i=[],o=[];t.forEach((l,c)=>{const h=t[(c-1+n)%n],u=t[(c+1)%n],f=Jc(h,l),p=Jc(h,u),g=Jc(l,u),y=UL(h,l,u,f,p,g);y.main===0&&(y.main=Number.EPSILON,y.vel=Number.MAX_SAFE_INTEGER),y.main===Bs&&(y.vel=0);const m={x:l.x,y:l.y,angle:y,offset:0,arc:{radius:e,hit:e,lim:Math.min(g/y.vel,f/y.vel,l.r||0)},in:{length:f,rest:f},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(y.main)&&(y.main=0,y.bis=y.prev||y.next,o.push(m)),typeof l.r=="number"&&(l.r===0?o.push(m):i.push(m)),r.push(m)}),o.forEach(l=>{l.angle.vel=0,l.arc.radius=0,eh(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=Ws(i);for(;s;)QL(s),s=Ws(i);for(s=Ws(r);s;)JL(s,e),s=Ws(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:Fs(l.angle.main),prev:l.angle.prev,next:l.angle.next,bis:l.angle.bis,dir:l.angle.dir},offset:Fs(l.offset),arc:{radius:Fs(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},QL=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),eh(t)},JL=(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}eh(t)},eh=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)},Ws=t=>t.reduce((e,n)=>n.locked?e:e?n.arc.hit<e.arc.hit?n:e:n,null),ay=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:h,items:u=[]}=r,f=e?d(e,{title:c,desc:h}):null;if(u.length===0)return d(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:f});const p=5,g=be(l.themeConfig),y=30,m=[],b=[],v=[],x=[],w=s!=null?s:o*.6,_=o-w,$=a*1.2,P=u.length*$+(u.length-1)*i;return u.forEach((O,T)=>{const I=[T],S=T===0,H=Ct(l,[T])||g.colorPrimary,{points:C,topWidth:A,bottomWidth:B}=tR(w,$,i,u.length,T),k=KL(C,p),D=ZL(k,"AMOUNT",10),z=w/2,N=T*($+i),j=($-a)/2,X=N+j,L=z+A/2,M=z+B/2,W=L-p,U=_+p,V=a,G=W+U,Z=z-y/2,K=N+$/2-y/2+(S?8:0),nt=M,at=G-M,pt=X;v.push(d(St,{x:W,y:X,width:U,height:V,ry:"10",fill:g.colorPrimaryBg,"data-element-type":"shape"}));const ft=`${H}-pyramid-${T}`;b.push(d(zt,{children:E("linearGradient",{id:ft,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0","stop-color":H}),d("stop",{offset:"100%","stop-color":ot.mix(H,"#fff",40).toHexString()})]})}),d(De,{points:D,fill:`url(#${ft})`,y:N,"data-element-type":"shape"})),x.push(d(ve,{indexes:I,x:Z,y:K,size:y,fill:"#fff"})),m.push(d(n,{indexes:I,datum:O,data:r,x:nt,y:pt,width:at,height:a,positionV:"middle"}))}),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,E(Y,{width:o,height:P,children:[d(Y,{children:v}),d(Y,{children:b}),d(Y,{children:x}),d(It,{children:m}),d(Ot,{})]})]})};function tR(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,h=l/s*t;let u;if(i===0){const f={x:o,y:0},p={x:o+h/2,y:e},g={x:o-h/2,y:e};u=[f,p,g]}else{const f={x:o+c/2,y:0},p={x:o+h/2,y:e},g={x:o-h/2,y:e},y={x:o-c/2,y:0};u=[f,p,g,y]}return{points:u,topWidth:c,bottomWidth:h}}Tt("sequence-pyramid",{component:ay,composites:["title","item"]});const Li={iconSize:50,roadWidth:24,outerRadius:60,rowWidth:400,spacing:30,colorDefault:"#666666"},ly=(t,e)=>`M ${t} ${e}`,Qt=(t,e)=>`L ${t} ${e}`,Hr=(t,e,n,r)=>`A ${t} ${t} 0 0 ${e} ${n} ${r}`,eR=(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 nR({i:t,direction:e,x:n,y:r,color:i,data:o,itemBounds:s,item:a,Item:l,flipped:c}){const{iconSize:h}=Li,u=e==="left",f=u?n.x4-h/2:n.x3-h/2,p=r.y3-h/2,g=u?n.x6+Li.spacing:n.x1-Li.spacing-s.width,y=r.y3-s.height/2,m=u?c?"flipped":"normal":c?"normal":"flipped";return{icon:d(tr,{indexes:[t],x:f,y:p,size:h,fill:i}),label:d(Et,{width:40,x:u?f-50:f+h+10,y:p+h/2-15,fontSize:30,fill:i,alignHorizontal:u?"right":"left",children:String(t+1).padStart(2,"0")}),item:d(l,{indexes:[t],data:o,datum:a,x:g,y,positionH:m})}}function rR({direction:t,x:e,y:n,color:r,elements:i}){const o=t==="left";i.push(d(uL,{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 cy=t=>{const{Title:e,Item:n,data:r,spacing:i=Li.spacing,options:o,flipped:s=!1}=t,{title:a,desc:l,items:c=[]}=r,h=e?d(e,{title:a,desc:l}):null,u=Q(d(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),{roadWidth:f,outerRadius:p,rowWidth:g,colorDefault:y}=Li,m=f/2,b=p-f,v=(u.width+i)*2+g,x=u.width+i,w=x+p,_=x+g-p,P=_+b+f,O=x+g/2,T=[],I=[],S=[],H=[],C=[],A=[],B=[];for(let z=0;z<c.length;z++){const N=Ct(o,[z])||y,j=z%2===0?"right":"left",X=z===0,L=z===c.length-1,M=eR(z,{roadWidth:f,innerRadius:b,outerRadius:p});if(j==="right"){const V=X?[P,M.y1]:[_,M.y1],G=[w,M.y1],Z=[w,M.y5],K=X?[P,M.y2]:[_,M.y2],nt=[w,M.y2];if(T.push(X?ly(P,M.y1+m):Qt(_,M.y1+m),Qt(w,M.y1+m),Hr(p-m,0,w,M.y4+m)),I.push(X?ly(...V):Qt(...V),Qt(...G),Hr(p,0,...Z)),S.push(Qt(...K),Qt(...nt),Hr(b,1,...nt)),L){const at=f/2;I.push(Qt(O,M.y5),Qt(O,M.y5+at),Qt(O+f,M.y5-at),Qt(O,M.y4-at),Qt(O,M.y4),Qt(w,M.y4)),T.push(Qt(O,M.y4+m))}}else{const V=[w,M.y2],G=[_,M.y2],Z=[_,M.y4],K=[w,M.y1],nt=[_,M.y1];if(T.push(Qt(_,M.y1+m),Hr(p-m,1,_,M.y4+m)),I.push(Qt(...V),Qt(...G),Hr(b,1,...Z)),S.push(Qt(...K),Qt(...nt),Hr(p,0,...nt)),L){const at=f/2;I.push(Qt(O,M.y4),Qt(O,M.y4-at),Qt(O-f,M.y4+at),Qt(O,M.y5+at),Qt(O,M.y5),Qt(_,M.y5)),T.push(Qt(O,M.y4+m))}}rR({direction:j,x:{x1:x,x6:P},y:M,color:N,elements:B});const{icon:R,label:W,item:U}=nR({i:z,direction:j,x:{x1:x,x3:w,x4:_,x6:P},y:M,color:N,data:r,itemBounds:u,item:c[z],Item:n,flipped:s});H.push(R),C.push(W),A.push(U)}const k=[...I,...S.reverse(),"Z"],D=c.length*(f+b*2)+f*1.5;return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,E(Y,{width:v,height:u.height<=p*2?D:D+u.height-p*2,children:[d(ht,{width:g,height:D,d:k.join(" "),fill:y,stroke:y,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),d(ht,{d:T.join(" "),stroke:"white",fill:"none",strokeWidth:"3",strokeDasharray:"8 8",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),E(Rt,{children:[H,C,A,B]})]})]})};Tt("sequence-roadmap-vertical",{component:cy,composites:["title","item"]});const hy=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:h=[]}=r,u=e?d(e,{title:l,desc:c}):null,f=re(a),p=Q(d(q,{indexes:[0]})),g=Q(d(n,{indexes:[0],data:r,datum:h[0],positionH:"center"})),y=[],m=[],b=[],v=25,x=25;if(h.forEach((w,_)=>{const $=Math.floor(_/o),P=_%o,O=$%2===1,I=(O?o-1-P:P)*(g.width+i),S=$*(g.height+s),H=[_];if(m.push(d(n,{indexes:H,datum:w,data:r,x:I,y:S,positionH:"center"})),y.push(d(Ft,{indexes:H,x:I+(g.width-p.width)/2,y:S+g.height+10})),_===0&&y.push(d(q,{indexes:H,x:I+(g.width-p.width)/2,y:S-p.height-10})),_<h.length-1){const C=Math.floor((_+1)/o),A=(_+1)%o,D=(C%2===1?o-1-A:A)*(g.width+i);if($===C){const N=O,j=N?D+g.width+(i-v)/2:I+g.width+(i-v)/2,X=S+g.height/2-x/2;b.push(d(Qc,{x:j,y:X,width:v,height:x,colorPrimary:f,rotation:N?180:0})),y.push(d(q,{indexes:[_+1],x:j+(v-p.width)/2,y:S-p.height-10}))}else{const N=I+g.width/2-v/2,j=S+g.height+(s-x)/2;b.push(d(Qc,{x:N,y:j,width:v,height:x,colorPrimary:f,rotation:90})),y.push(d(q,{indexes:[_+1],x:N+(v-p.width)/2,y:j+(x-p.height)/2}))}}}),h.length>0){const w=h.length-1,_=Math.floor(w/o),$=w%o,T=(_%2===1?o-1-$:$)*(g.width+i),I=_*(g.height+s);y.push(d(q,{indexes:[h.length],x:T+(g.width-p.width)/2,y:I+g.height+p.height+20}))}return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,E(Y,{children:[d(Y,{children:b}),d(It,{children:m}),d(Ot,{children:y})]})]})};Tt("sequence-snake-steps",{component:hy,composites:["title","item"]});const dy=t=>{const{Title:e,Item:n,data:r,options:i,gap:o=16,perspectiveFactor:s=.2,width:a=720}=t,{title:l,desc:c,items:h=[]}=r,u=e,f=u?d(u,{title:l,desc:c}):null;if(h.length===0)return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,d(Y,{children:d(Ot,{children:d(q,{indexes:[0],x:0,y:0})})})]});const p=re(i),g=Q(d(q,{indexes:[0]})),y=Q(d(n,{indexes:[0],data:r,datum:h[0]||{},positionH:"center"})),m=12,b=Math.min(a*.1,100),v=Math.min(a*.45,Math.max(80,a-y.width-m-b)),x=Math.max(24,v*s*.35),w=56,_=w*.7,$=h.length>1?(w-_)/(h.length-1):0,P=Math.max(g.height+x+20,x+28),O=v/2,T=v+b+m,I=h.map((tt,et)=>w-$*et),S=h.map((tt,et)=>Math.max(x*(1-et*.05),x*.7)),H=[],C=[],A=h.length-1;H[A]=P,C[A]=0;for(let tt=A-1;tt>=0;tt-=1)C[tt]=C[tt+1]+S[tt]+o,H[tt]=H[tt+1]+S[tt]+I[tt+1]+o;const B=C[0]||S[0]||x,k=v*(.55+s*.1),D=v-k,z=h.map((tt,et)=>{const st=B===0?1:C[et]/B;return k+D*st}),N=z.map(tt=>{const et=O+tt/2;return Math.max(0,T-m-et)}),j=[],X=[],L=[],M=[],R=[],W=0,U=(H[0]||P)+(I[0]||w),V=U-W,G=35,K=(z[A]||k)*.8,nt=K*.65,at=(z[0]||v)*.9;R.push(d(De,{points:[{x:O,y:W},{x:O+K/2,y:W+G},{x:O+nt/2,y:W+G},{x:O+at/2,y:U},{x:O-at/2,y:U},{x:O-nt/2,y:W+G},{x:O-K/2,y:W+G}],fill:"rgba(0,0,0,0.12)",width:at,height:V,"data-element-type":"shape"}));let pt=H[A]+I[A]/2;h.forEach((tt,et)=>{const st=[et],vt=z[et],gt=S[et],dt=O-vt/2,ct=I[et],ut=H[et],mt=ut-gt,Pt=ut+ct/2,yt=Ct(i,st)||p;j.push(d(St,{x:dt,y:ut,width:vt,height:ct,fill:yt,"data-element-type":"shape"}),d(De,{points:[{x:dt,y:ut},{x:dt+vt,y:ut},{x:dt+vt-gt/2,y:mt},{x:dt+gt/2,y:mt}],fill:yt,opacity:"0.3",width:vt,height:gt,"data-element-type":"shape"}),d(Et,{x:dt,y:ut,width:vt,height:ct,fontSize:ct/2,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:"#ffffff",children:String(et+1).padStart(2,"0")}));const Mt=dt+vt,te=Pt,he=N[et],me=Mt+he;M.push(d(ht,{d:`M ${Mt} ${te} L ${me} ${te}`,stroke:yt,strokeWidth:2,fill:"none",width:he,height:2,"data-element-type":"shape"}),d(ht,{d:`M ${me} ${te} L ${me} ${te}`,stroke:yt,strokeWidth:6,strokeLinecap:"round",width:1,height:1,"data-element-type":"shape"}));const Ut=Pt-y.height/2;X.push(d(n,{indexes:st,datum:tt,data:r,x:T,y:Ut,positionV:"middle"})),L.push(d(Ft,{indexes:st,x:T+y.width+10,y:Ut+y.height/2-g.height/2})),et===0?L.push(d(q,{indexes:[0],x:T+(y.width-g.width)/2,y:Ut-g.height-12})):L.push(d(q,{indexes:st,x:T+(y.width-g.width)/2,y:(pt+Pt)/2-g.height/2})),pt=Pt});const rt=pt-y.height/2;return L.push(d(q,{indexes:[h.length],x:T+(y.width-g.width)/2,y:rt+y.height+12})),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,E(Y,{children:[d(Y,{children:R}),d(Y,{children:j}),d(Y,{children:M}),d(It,{children:X}),d(Ot,{children:L})]})]})};Tt("sequence-stairs-front",{component:dy,composites:["title","item"]});const uy=t=>{const{Title:e,Item:n,data:r,gap:i=40,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?d(e,{title:s,desc:a}):null,h=re(o),u=Q(d(q,{indexes:[0]})),f=Q(d(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),p=[],g=[],y=[],m=25,b=25,v=Math.max(u.height+20,30);if(l.forEach((x,w)=>{const _=w*(f.width+i),$=[w];if(g.push(d(n,{indexes:$,datum:x,data:r,x:_,y:v,positionH:"center"})),p.push(d(Ft,{indexes:$,x:_+(f.width-u.width)/2,y:v+f.height+10})),w===0?p.push(d(q,{indexes:$,x:_+(f.width-u.width)/2,y:v-u.height-10})):p.push(d(q,{indexes:$,x:_-i/2-u.width/2,y:v-u.height-10})),w<l.length-1){const P=_+f.width+(i-m)/2,O=v+f.height/2-b/2;y.push(d(Qc,{x:P,y:O,width:m,height:b,colorPrimary:h}))}}),l.length>0){const x=(l.length-1)*(f.width+i);p.push(d(q,{indexes:[l.length],x:x+f.width+(i-u.width)/2,y:v-u.height-10}))}return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,E(Y,{children:[d(Y,{children:y}),d(It,{children:g}),d(Ot,{children:p})]})]})};Tt("sequence-steps",{component:uy,composites:["title","item"]});const fy=t=>{const{Title:e,Item:n,data:r,gap:i=10,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?d(e,{title:s,desc:a}):null,h=re(o),u=Up(o),f=Q(d(q,{indexes:[0]})),p=Q(d(n,{indexes:[0],data:r,datum:l[0],positionH:"normal"})),g=[],y=[],m=[],b=10,v=b+70+10,x=v+30,w=6;if(l.length>1){const _=p.height/2+w,$=(l.length-1)*(p.height+i)+p.height/2-w,P=`M ${v} ${_} L ${v} ${$}`,O="gradient-timeline-line",T=$-_,I=l.map((S,H)=>{const A=(H*(p.height+i)+p.height/2-_)/T*100,B=Ct(o,[H]);return d("stop",{offset:`${A}%`,stopColor:B||h})});m.push(E(Rt,{children:[d(zt,{children:d("linearGradient",{id:O,x1:v,y1:_,x2:v,y2:$,gradientUnits:"userSpaceOnUse",children:I})}),d(ht,{d:P,stroke:`url(#${O})`,strokeWidth:2,width:1,height:$-_})]}))}if(l.forEach((_,$)=>{const P=$*(p.height+i),O=P+p.height/2,T=[$];m.push(d(Et,{x:b,y:O,width:70,fontSize:18,fontWeight:"bold",alignHorizontal:"left",alignVertical:"middle",fill:u[$%u.length],children:`STEP ${$+1}`})),y.push(d(n,{indexes:T,datum:_,data:r,x,y:P,positionH:"normal"})),m.push(d(Lt,{x:v-w,y:O-w,width:w*2,height:w*2,fill:u[$%u.length]})),g.push(d(Ft,{indexes:T,x:x-f.width-10,y:P+(p.height-f.height)/2})),$===0?g.push(d(q,{indexes:T,x:x+(p.width-f.width)/2,y:P-f.height-10})):g.push(d(q,{indexes:T,x:x+(p.width-f.width)/2,y:P-i/2-f.height/2}))}),l.length>0){const _=(l.length-1)*(p.height+i);g.push(d(q,{indexes:[l.length],x:x+(p.width-f.width)/2,y:_+p.height+10}))}return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,E(Y,{children:[d(ne,{children:m}),d(It,{children:y}),d(Ot,{children:g})]})]})};Tt("sequence-timeline",{component:fy,composites:["title","item"]});const nh=120,rh=108,Vs=30,iR="M4.49144e-05 34.4898C4.49144e-05 37.8786 0.848973 41.152 2.43571 44.2444C4.23516 47.7642 6.98514 51.0472 10.517 54.0009C21.331 63.047 39.4615 68.9814 59.9991 68.9814C80.5385 68.9814 98.6672 63.047 109.483 54.0009C113.013 51.0472 115.765 47.7642 117.564 44.2444C119.149 41.152 120 37.8786 120 34.4898C120 15.4407 93.1364 0 59.9991 0C26.8635 0 4.49144e-05 15.4407 4.49144e-05 34.4898Z",oR="M4.49145e-05 34.4898V53.9991C4.49145e-05 57.3879 0.848973 60.6613 2.43571 63.7556C9.75425 78.0545 32.7562 88.4907 59.999 88.4907C87.2438 88.4907 110.246 78.0545 117.564 63.7556C119.149 60.6613 120 57.3879 120 53.9991V34.4898C120 37.8786 119.149 41.152 117.564 44.2444C115.765 47.7642 113.013 51.0472 109.483 54.0009C98.6672 63.047 80.5385 68.9814 59.999 68.9814C39.4615 68.9814 21.3309 63.047 10.5169 54.0009C6.98509 51.0472 4.23516 47.7642 2.43567 44.2444C0.848928 41.152 4.49145e-05 37.8786 4.49145e-05 34.4898Z",sR="M0 53.9991V73.5102C0 92.5593 26.8634 108 59.999 108C93.1363 108 120 92.5593 120 73.5102V53.9991C120 57.3879 119.149 60.6613 117.564 63.7556C110.246 78.0545 87.2438 88.4907 59.999 88.4907C32.7562 88.4907 9.75425 78.0545 2.43571 63.7556C0.848973 60.6613 0 57.3879 0 53.9991Z",py=E("filter",{id:"sequence-zigzag-pucks-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[d("feOffset",{dx:"-7",dy:"7",in:"SourceAlpha",result:"offset"}),d("feGaussianBlur",{stdDeviation:"7.5",in:"offset",result:"blurred"}),d("feColorMatrix",{in:"blurred",type:"matrix",values:`0 0 0 0 0
|
|
129
134
|
0 0 0 0 0
|
|
130
135
|
0 0 0 0 0
|
|
131
|
-
0 0 0 0.3 0`,result:"shadow"}),d("feBlend",{mode:"normal",in:"SourceGraphic",in2:"shadow"})]}),H2=t=>{const{Title:e,Item:n,data:r,options:i,gap:o=80}=t,s=Nc,a=jc,{title:l,desc:c,items:h=[]}=r,u=e?d(e,{title:l,desc:c}):null,f=oe(i);if(h.length===0)return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d(Mt,{children:L2}),u,d(X,{children:d(bt,{children:d(K,{indexes:[0],x:0,y:0})})})]});const p=tt(d(n,{indexes:[0],data:r,datum:h[0],positionH:"center"})),g=tt(d(K,{indexes:[0]})),y=[],m=[],x=[];let v=-1/0;const b=p.height+Ms+a;return h.forEach((_,w)=>{const $=[w],P=_t(i,$),O=w%2===0,T=w*(s+o),I=O?0:p.height+Ms,S=`puck-gradient-middle-${w}`,R=`puck-gradient-bottom-${w}`;x.push(E(X,{x:T,y:I,id:`puck-${w}`,width:s,height:a,filter:"url(#sequence-zigzag-pucks-3d-shadow-filter)",children:[E(Mt,{children:[E("linearGradient",{id:S,x1:"115",y1:"55.9991",x2:"15.0002",y2:"55.9991",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:P||f}),d("stop",{offset:"1",stopColor:P||f,stopOpacity:"0.6"})]}),E("linearGradient",{id:R,x1:"115",y1:"72.1803",x2:"15.0002",y2:"72.1803",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:"#F4F4FB"}),d("stop",{offset:"1",stopColor:"#8E8C90"})]})]}),E(qt,{width:Nc,height:jc,children:[d(at,{d:Yz,fill:P||f}),d(at,{d:Xz,fill:`url(#${S})`}),d(at,{d:Gz,fill:`url(#${R})`}),d("rect",{fill:"transparent",y:jc,width:Nc,height:20})]}),d("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:w+1})]}));const M=T+(s-p.width)/2,A=O?I+a+Ms:I-Ms-p.height;if(v=Math.max(v,A+p.height),m.push(d(n,{indexes:$,datum:_,data:r,x:M,y:A,positionH:"center"})),y.push(d(Ht,{indexes:$,x:M+p.width-g.width/2,y:A+p.height-g.height/2})),w===0&&y.push(d(K,{indexes:[0],x:T+s/2-g.width/2-(o+s)/2,y:I+a/2-g.height/2})),w<h.length-1){const k=(w+1)%2===0?0:b,D=T+s+o/2-g.width/2,z=(I+a/2+k+a/2)/2-g.height/2;y.push(d(K,{indexes:[w+1],x:D,y:z}))}else y.push(d(K,{indexes:[h.length],x:T+s+o/2-g.width/2,y:I+a/2-g.height/2}))}),E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[d(Mt,{children:L2}),u,E(X,{x:0,y:0,children:[d(X,{children:x}),d(Pt,{children:m}),d(bt,{children:y})]})]})};Ot("sequence-zigzag-pucks-3d",{component:H2,composites:["title","item"]});const qz=240,Uz=130,Zz=105,tr=12,Kz=120,R2=50,Qz=.6,Jz="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",D2="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",N2=70+tr/2,j2=40+tr/2,B2=d("filter",{id:"sequence-zigzag-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:d("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"15",result:"blur"})}),F2=t=>{var e;const{Title:n,Item:r,data:i,options:o,dx:s=qz,dy:a=Uz,iconSize:l=30}=t,{title:c,desc:h,items:u=[]}=i,f=n?d(n,{title:c,desc:h}):null,p=oe(o);if(u.length===0)return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d(Mt,{children:B2}),f,d(X,{children:d(bt,{children:d(K,{indexes:[0],x:0,y:0})})})]});const g=tt(d(r,{indexes:[0],data:i,datum:u[0]})),y=tt(d(K,{indexes:[0]})),m=[],x=[],v=[],b=[],_=[];let w=0,$=0,P="",O=1/0,T=-1/0,I=1/0,S=1/0;const R=[];u.forEach((W,k)=>{const D=w,z=$;R.push({x:D,y:z}),O=Math.min(O,z);const N=D-N2,B=z-j2;I=Math.min(I,N),S=Math.min(S,B);const Y=k%2===0;k<u.length-1&&(w+=s,$=Y?$+a:$-a)});const M=Math.max(0,-I),A=Math.max(0,-S);if(w=0,$=0,u.forEach((W,k)=>{const D=[k],z=R[k],N=z.x+M,B=z.y+A,Y=_t(o,D),L=Math.max(0,N-N2),C=Math.max(0,B-j2),H=10,F=R2+10,{colorPrimaryBg:Q}=me({colorPrimary:Y});if(b.push(E(qt,{x:L,y:C,width:140,height:110,children:[d(St,{x:H,y:F,width:Kz,height:R2,fill:Y||p,filter:"url(#sequence-zigzag-glow-filter)",opacity:Qz}),d(at,{d:Jz,fill:Y||p}),d(at,{d:D2,fill:"#fff"}),d(at,{d:D2,fill:Q||Q})]})),W.icon){const G=Math.max(0,N-l/2-tr/2),U=Math.max(0,B-l/2-tr/2);_.push(d(ge,{x:G,y:U,size:l,indexes:D,fill:Y}))}const V=N-g.width/2-tr/2,q=Math.max(0,B+Zz-tr/2);if(T=Math.max(T,q+g.height),k===0?P=`M ${N} ${B}`:P+=` L ${N} ${B}`,x.push(d(r,{indexes:D,datum:W,data:i,x:V,y:q})),m.push(d(Ht,{indexes:D,x:Math.max(0,V+g.width-y.width/2),y:Math.max(0,q+g.height-y.height/2)})),k<u.length-1){const G=R[k+1],U=G.x+M,Z=G.y+A,J=Math.max(0,N+(U-N)/2-y.width/2),st=Math.max(0,B+(Z-B)/2-y.height/2);m.push(d(K,{indexes:[k+1],x:J,y:st}))}else m.push(d(K,{indexes:[u.length],x:Math.max(0,V+g.width+s/4),y:Math.max(0,q+g.height/2-y.height/2)}))}),P){const W=(((e=R[R.length-1])==null?void 0:e.x)||0)+M;v.push(d(at,{d:P,stroke:"#f3f2f1",strokeWidth:tr,fill:"none",width:W,height:T-Math.min(O+A,0)}))}return E(ot,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[d(Mt,{children:B2}),f,E(X,{x:0,y:0,children:[d(X,{children:[...v,...b,..._]}),d(Pt,{children:x}),d(bt,{children:m})]})]})};Ot("sequence-zigzag-steps",{component:F2,composites:["title","item"]});class Cn{init(e){Object.assign(this,e)}}class V2{constructor(e,n={}){this.clickTimer=null,this.singleClickCallback=null,this.doubleClickCallback=null,this.pointerId=null,this.startX=0,this.startY=0,this.skipClick=!1,this.dragged=!1,this.handlePointerDown=i=>{this.pointerId=i.pointerId,this.startX=i.clientX,this.startY=i.clientY,this.dragged=!1,this.skipClick=!1,window.addEventListener("pointermove",this.handlePointerMove,{passive:!0}),window.addEventListener("pointerup",this.handlePointerUp,{passive:!0}),window.addEventListener("pointercancel",this.handlePointerUp,{passive:!0})},this.handlePointerMove=i=>{if(this.pointerId===null||i.pointerId!==this.pointerId)return;const o=i.clientX-this.startX,s=i.clientY-this.startY;Math.hypot(o,s)>this.dragThreshold&&(this.skipClick=!0,this.dragged=!0)},this.handlePointerUp=i=>{this.pointerId!==null&&i.pointerId===this.pointerId&&(this.pointerId=null,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),this.dragged||(this.skipClick=!1),this.dragged=!1)};var r;this.element=e,this.delay=n.delay||300,this.dragThreshold=(r=n.dragThreshold)!=null?r:4,this.init()}init(){this.element.addEventListener("click",this.handleClick.bind(this)),this.element.addEventListener("dblclick",this.handleDoubleClick.bind(this)),this.element.addEventListener("pointerdown",this.handlePointerDown)}handleClick(e){if(this.skipClick){this.skipClick=!1;return}this.clickTimer&&clearTimeout(this.clickTimer),this.clickTimer=window.setTimeout(()=>{var n;(n=this.singleClickCallback)==null||n.call(this,e)},this.delay)}handleDoubleClick(e){var n;if(this.skipClick){this.skipClick=!1;return}this.clickTimer&&clearTimeout(this.clickTimer),(n=this.doubleClickCallback)==null||n.call(this,e)}onClick(e){return this.singleClickCallback=e,this}onDoubleClick(e){return this.doubleClickCallback=e,this}destroy(){this.clickTimer&&clearTimeout(this.clickTimer),this.element.removeEventListener("click",this.handleClick),this.element.removeEventListener("dblclick",this.handleDoubleClick),this.element.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}}function tL(t){return t.getScreenCTM()||new DOMMatrix}function eL(t){var e;return((e=t.getScreenCTM())==null?void 0:e.inverse())||new DOMMatrix}function er(t,e,n){return new DOMPoint(e,n).matrixTransform(eL(t))}function tn(t,e){const n=e.getBoundingClientRect(),i=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x,y:n.y+n.height},{x:n.x+n.width,y:n.y+n.height}].map(c=>er(t,c.x,c.y)),o=Math.min(...i.map(c=>c.x)),s=Math.max(...i.map(c=>c.x)),a=Math.min(...i.map(c=>c.y)),l=Math.max(...i.map(c=>c.y));return new DOMRect(o,a,s-o,l-a)}function W2(t,e){if(e.length===0)return t.data;const n=cr(t,e);return n.children||(n.children=[]),n.children}function nL(t,e="data.items"){return t.reduce((n,r,i)=>i===0?`${n}[${r}]`:`${n}.children[${r}]`,e)}function Y2(t){var e,n;return((n=(e=rL(t))==null?void 0:e.dataset.indexes)==null?void 0:n.split(",").map(Number))||[]}function rL(t){return _n(t)?to(t):t}function Ss(t){if(!t)return null;const e=[iL];let n=t;for(const r of e){const i=r(n);if(i){n=i;break}}return X2(n)}function X2(t){if(!t)return null;const e=[oL,sL];for(const n of e){const r=n(t);if(r)return r}return u_(t)||an(t)||_n(t)?t:null}const iL=t=>{var e;const n=r=>r?p_(r)||g_(r):!1;return n(t)?t.parentElement:n(t.parentElement)?(e=t.parentElement)==null?void 0:e.parentElement:null},oL=t=>m_(t)&&lu(t.parentElement)?t.parentElement:null,sL=t=>{const e=t.parentElement;return au(e)?e:Fa(t)?t:null};class G2{constructor(){this.extensions=new Map}register(e,n,r){if(!(r!=null&&r.override)&&this.extensions.has(e))throw new Error(`Extension "${e}" already registered`);this.extensions.set(e,n)}get(e){return this.extensions.get(e)}has(e){return this.extensions.has(e)}getAll(){return this.extensions}forEach(e){this.extensions.forEach((n,r)=>{e(n,r)})}[Symbol.iterator](){return this.extensions.entries()}unregister(e){return this.extensions.delete(e)}destroy(){this.extensions.forEach(e=>{e&&typeof e.dispose=="function"&&e.dispose()}),this.extensions.clear()}}const aL=t=>{if(!t||!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName.toLowerCase();return e==="input"||e==="textarea"||e==="select"},lL=t=>{const e=t.toLowerCase().split("+").map(r=>r.trim()).filter(Boolean),n={key:""};if(e.forEach(r=>{r==="shift"?n.shift=!0:r==="alt"||r==="option"?n.alt=!0:r==="ctrl"||r==="control"?n.ctrl=!0:r==="meta"||r==="cmd"||r==="command"?n.meta=!0:r==="mod"?n.mod=!0:n.key=r}),!n.key)throw new Error(`Invalid hotkey combo: "${t}"`);return n},cL=(t,e)=>{var n;if(t.key.toLowerCase()!==e.key)return!1;const i=(n=e.mod)!=null?n:!1,o=t.metaKey,s=t.ctrlKey,a=o||s,l=(c,h)=>c===void 0?!h:c===h;return i&&!a?!1:i?!(!l(e.shift,t.shiftKey)||!l(e.alt,t.altKey)||e.meta!==void 0&&!l(e.meta,o)||e.ctrl!==void 0&&!l(e.ctrl,s)):!(!l(e.meta,o)||!l(e.ctrl,s)||!l(e.shift,t.shiftKey)||!l(e.alt,t.altKey))};class hL{constructor(e={}){this.bindings=[],this.handleKeydown=i=>{if(i instanceof KeyboardEvent&&!i.defaultPrevented&&!aL(i.target)&&!(this.filter&&!this.filter(i))){for(const o of this.bindings)if(o.combos.some(s=>cL(i,s))){o.handler(i);break}}};const{target:n=document,filter:r}=e;this.target=n,this.filter=r,this.target.addEventListener("keydown",this.handleKeydown)}bind(e,n){const i={combos:(Array.isArray(e)?e:[e]).map(o=>lL(o)),handler:n};return this.bindings.push(i),()=>this.unbind(i)}destroy(){this.target.removeEventListener("keydown",this.handleKeydown),this.bindings=[]}unbind(e){this.bindings=this.bindings.filter(n=>n!==e)}}var dL=(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())});class q2 extends Cn{constructor(){super(...arguments),this.name="brush-select",this.shiftKey=!1,this.dragging=!1,this.dragThreshold=4,this.handleStart=e=>{this.interaction.isActive()&&e.button===0&&(this.isTextSelectionTarget(e.target)||this.hasElementAtStart(e.target)||this.interaction.executeExclusiveInteraction(this,()=>dL(this,null,function*(){return new Promise(n=>{this.completeInteraction=n;const r=this.editor.getDocument();this.startPoint=er(r,e.clientX,e.clientY),this.pointerId=e.pointerId,this.shiftKey=e.shiftKey,this.dragging=!1,window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd)})})))},this.handleMove=e=>{if(e.pointerId!==this.pointerId||!this.startPoint)return;const n=this.editor.getDocument(),r=er(n,e.clientX,e.clientY),i=r.x-this.startPoint.x,o=r.y-this.startPoint.y;if(!this.dragging){if(Math.hypot(i,o)<this.dragThreshold)return;this.dragging=!0,this.ensureBrush(),this.updateBrush(this.startPoint,r)}e.preventDefault(),e.stopPropagation(),this.updateBrush(this.startPoint,r)},this.handleEnd=e=>{var n,r;if(e.pointerId!==this.pointerId||!this.startPoint)return;window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd);let i=null;if(this.dragging){e.preventDefault(),e.stopPropagation();const l=this.editor.getDocument(),c=er(l,e.clientX,e.clientY);i=this.updateBrush(this.startPoint,c),this.clearBrush()}this.pointerId=void 0,this.startPoint=void 0,this.dragging=!1;const o=this.shiftKey;if(this.shiftKey=!1,!i){(n=this.completeInteraction)==null||n.call(this),this.completeInteraction=void 0;return}const s=this.collectSelection(i);if((r=this.completeInteraction)==null||r.call(this),this.completeInteraction=void 0,s.length===0){o||this.interaction.clearSelection();return}const a=o?"add":"replace";this.interaction.select(s,a)}}init(e){super.init(e),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.clearBrush(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart),window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd)}ensureBrush(){return this.brush?this.brush:(this.brush=this.interaction.appendTransientElement(ft("rect",{fill:"rgba(51, 132, 245, 0.08)",stroke:"#3384F5","stroke-dasharray":"4 2","stroke-width":1,"pointer-events":"none"})),this.brush)}updateBrush(e,n){if(!this.brush)return null;const r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.abs(e.x-n.x),s=Math.abs(e.y-n.y);return Bt(this.brush,{x:r,y:i,width:o,height:s}),{x:r,y:i,width:o,height:s}}clearBrush(){var e;(e=this.brush)==null||e.remove(),this.brush=void 0}collectSelection(e){const n=this.editor.getDocument(),r=Array.from(n.querySelectorAll("[data-element-type]")),i=(s,a)=>{const l=s.x+s.width,c=s.y+s.height,h=a.x+a.width,u=a.y+a.height;return!(l<a.x||h<s.x||c<a.y||u<s.y)},o=new Set;return r.reduce((s,a)=>{const l=X2(a);if(!l||o.has(l))return s;const c=tn(n,l),h={x:c.x,y:c.y,width:c.width,height:c.height};return i(e,h)&&(s.push(l),o.add(l)),s},[])}hasElementAtStart(e){var n;return e instanceof Element?Ss(e)?!0:!!((n=e.closest)!=null&&n.call(e,"[data-element-type]")):!1}isTextSelectionTarget(e){if(!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;const n=e.tagName.toLowerCase();return n==="input"||n==="textarea"}}var uL=(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())});class U2 extends Cn{constructor(){super(...arguments),this.name="click-select",this.shiftKey=!1,this.onShiftKeyDown=e=>{e.key==="Shift"&&(this.shiftKey=!0)},this.onShiftKeyUp=e=>{e.key==="Shift"&&(this.shiftKey=!1)},this.onEscKeyDown=e=>{e.key==="Escape"&&this.interaction.clearSelection()}}init(e){super.init(e);const{editor:n,interaction:r}=this;this.clickHandler=new V2(n.getDocument(),{delay:0});const i=o=>{r.isActive()&&r.executeExclusiveInteraction(this,()=>uL(this,null,function*(){const s=Ss(o.target);cu(s)||(this.shiftKey?s&&(r.isSelected(s)?r.select([s],"remove"):r.select([s],"add")):s?r.select([s],"replace"):r.clearSelection())}))};this.clickHandler.onClick(i),document.addEventListener("keydown",this.onShiftKeyDown),document.addEventListener("keyup",this.onShiftKeyUp),document.addEventListener("keydown",this.onEscKeyDown)}destroy(){var e;(e=this.clickHandler)==null||e.destroy(),document.removeEventListener("keydown",this.onShiftKeyDown),document.removeEventListener("keyup",this.onShiftKeyUp),document.removeEventListener("keydown",this.onEscKeyDown)}}var Z2=(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())});class fL{constructor(e){this.commands=e}apply(e){return Z2(this,null,function*(){for(const n of this.commands)yield n.apply(e)})}undo(e){return Z2(this,null,function*(){for(let n=this.commands.length-1;n>=0;n--)yield this.commands[n].undo(e)})}serialize(){return{type:"batch",commands:this.commands.map(e=>e.serialize())}}}var pL=Object.defineProperty,gL=Object.defineProperties,mL=Object.getOwnPropertyDescriptors,K2=Object.getOwnPropertySymbols,yL=Object.prototype.hasOwnProperty,vL=Object.prototype.propertyIsEnumerable,Q2=(t,e,n)=>e in t?pL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,wi=(t,e)=>{for(var n in e||(e={}))yL.call(e,n)&&Q2(t,n,e[n]);if(K2)for(var n of K2(e))vL.call(e,n)&&Q2(t,n,e[n]);return t},J2=(t,e)=>gL(t,mL(e)),ty=(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())});class en{constructor(e,n,r){this.element=e,this.modified=n;const i=xL(e,n);this.original=bL(i,r)}apply(e){return ty(this,null,function*(){ey(this.element,this.modified),e.updateElement(this.element,this.modified)})}undo(e){return ty(this,null,function*(){this.original&&(ey(this.element,this.original),e.updateElement(this.element,this.original))})}serialize(){return{type:"update-element",elementId:this.element.id,modified:this.modified,original:this.original}}}function ey(t,e){an(t)?su(t,e):_n(t)?N_(t,void 0,e.attributes):e.attributes&&Bt(t,e.attributes)}function xL(t,e){const n=Object.keys(e.attributes||{}),r=Se(t,n,!1),i=s=>{s&&n.forEach(a=>{a in s&&(r[a]=s[a])})},o=J2(wi({},e),{attributes:r});if(an(t)){const{attributes:s}=Ba(t);i(s)}else if(_n(t)){if(!to(t))return;i(qa(t))}return o}function bL(t,e){if(!t)return e;if(!e)return t;const n=wi(wi({},t.attributes||{}),e.attributes||{});return J2(wi(wi({},t),e),{attributes:Object.keys(n).length?n:void 0})}var _L=Object.defineProperty,ny=Object.getOwnPropertySymbols,wL=Object.prototype.hasOwnProperty,$L=Object.prototype.propertyIsEnumerable,ry=(t,e,n)=>e in t?_L(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,iy=(t,e)=>{for(var n in e||(e={}))wL.call(e,n)&&ry(t,n,e[n]);if(ny)for(var n of ny(e))$L.call(e,n)&&ry(t,n,e[n]);return t},oy=(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())});class PL{constructor(e,n){this.options=e,this.original=n}apply(e){return oy(this,null,function*(){const n=e.getOptions();this.original||(this.original=n),e.updateOptions(iy(iy({},n),this.options))})}undo(e){return oy(this,null,function*(){this.original&&e.updateOptions(this.original)})}serialize(){return{type:"update-options",options:this.options,original:this.original}}}var sy=(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())});class OL{constructor(e,n,r){this.element=e,this.originalText=r!=null?r:Na(e),this.modifiedText=n}apply(e){return sy(this,null,function*(){this.originalText!==this.modifiedText&&(ja(this.element,this.modifiedText),ay(e,this.element,this.modifiedText))})}undo(e){return sy(this,null,function*(){this.originalText!==this.modifiedText&&(ja(this.element,this.originalText),ay(e,this.element,this.originalText))})}serialize(){return{type:"update-text",elementId:this.element.id,original:this.originalText,modified:this.modifiedText}}}function ay(t,e,n){const r=Va(e);if(r.startsWith("item-")){const i=r.replace("item-",""),o=Y2(e);t.updateItemDatum(o,{[i]:n})}else t.updateData(r,n)}var CL=(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())});class ly extends Cn{constructor(){super(...arguments),this.name="dblclick-edit-text"}init(e){super.init(e);const{editor:n,commander:r,interaction:i}=e;this.clickHandler=new V2(n.getDocument()).onDoubleClick(o=>{i.isActive()&&i.executeExclusiveInteraction(this,()=>CL(this,null,function*(){const s=Ss(o.target);if(s&&an(s)){i.select([s],"replace");const a=Na(s),l=yield new Promise(c=>{const h=this.listenSelectionChange(s);SL(s,{cursorPosition:{clientX:o.clientX,clientY:o.clientY},onBlur:c,onCancel:c}),this.detachSelectionListener=h});r.execute(new OL(s,l,a))}}))})}destroy(){var e,n;(e=this.clickHandler)==null||e.destroy(),(n=this.detachSelectionListener)==null||n.call(this)}listenSelectionChange(e){const n=({next:r})=>{var i;if(!r.includes(e)){(i=this.detachSelectionListener)==null||i.call(this),this.detachSelectionListener=void 0;const o=Nn(e);o&&o.blur()}};return this.emitter.on("selection:change",n),()=>this.emitter.off("selection:change",n)}}const ML="infographic-inline-text-editor-style",Es="infographic-inline-text-editor";function SL(t,e){const n=Nn(t);n&&(IL(),new EL(n,e).start())}class EL{constructor(e,n){this.entity=e,this.options=n,this.handlePaste=r=>{r.clipboardData&&(r.preventDefault(),this.insertPlainText(r.clipboardData.getData("text/plain")))},this.handleKeydown=r=>{r.key==="Enter"&&!r.shiftKey&&(r.preventDefault(),this.insertPlainText(`
|
|
132
|
-
`))},this.handleInput=()=>{var r,i;this.normalizeSpanContent(),(i=(r=this.options)==null?void 0:r.onInput)==null||i.call(r,this.getText())},this.handleBlur=()=>{var r,i;this.entity.removeAttribute("contenteditable"),this.entity.classList.remove(
|
|
133
|
-
.${
|
|
136
|
+
0 0 0 0.3 0`,result:"shadow"}),d("feBlend",{mode:"normal",in:"SourceGraphic",in2:"shadow"})]}),gy=t=>{const{Title:e,Item:n,data:r,options:i,gap:o=80}=t,s=nh,a=rh,{title:l,desc:c,items:h=[]}=r,u=e?d(e,{title:l,desc:c}):null,f=re(i);if(h.length===0)return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d(zt,{children:py}),u,d(Y,{children:d(Ot,{children:d(q,{indexes:[0],x:0,y:0})})})]});const p=Q(d(n,{indexes:[0],data:r,datum:h[0],positionH:"center"})),g=Q(d(q,{indexes:[0]})),y=[],m=[],b=[];let v=-1/0;const x=p.height+Vs+a;return h.forEach((w,_)=>{const $=[_],P=Ct(i,$),O=_%2===0,T=_*(s+o),I=O?0:p.height+Vs,S=`puck-gradient-middle-${_}`,H=`puck-gradient-bottom-${_}`;b.push(E(Y,{x:T,y:I,id:`puck-${_}`,width:s,height:a,filter:"url(#sequence-zigzag-pucks-3d-shadow-filter)",children:[E(zt,{children:[E("linearGradient",{id:S,x1:"115",y1:"55.9991",x2:"15.0002",y2:"55.9991",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:P||f}),d("stop",{offset:"1",stopColor:P||f,stopOpacity:"0.6"})]}),E("linearGradient",{id:H,x1:"115",y1:"72.1803",x2:"15.0002",y2:"72.1803",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:"#F4F4FB"}),d("stop",{offset:"1",stopColor:"#8E8C90"})]})]}),E(ne,{width:nh,height:rh,children:[d(ht,{d:iR,fill:P||f}),d(ht,{d:oR,fill:`url(#${S})`}),d(ht,{d:sR,fill:`url(#${H})`}),d("rect",{fill:"transparent",y:rh,width:nh,height:20})]}),d("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:_+1})]}));const C=T+(s-p.width)/2,A=O?I+a+Vs:I-Vs-p.height;if(v=Math.max(v,A+p.height),m.push(d(n,{indexes:$,datum:w,data:r,x:C,y:A,positionH:"center"})),y.push(d(Ft,{indexes:$,x:C+p.width-g.width/2,y:A+p.height-g.height/2})),_===0&&y.push(d(q,{indexes:[0],x:T+s/2-g.width/2-(o+s)/2,y:I+a/2-g.height/2})),_<h.length-1){const k=(_+1)%2===0?0:x,D=T+s+o/2-g.width/2,z=(I+a/2+k+a/2)/2-g.height/2;y.push(d(q,{indexes:[_+1],x:D,y:z}))}else y.push(d(q,{indexes:[h.length],x:T+s+o/2-g.width/2,y:I+a/2-g.height/2}))}),E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[d(zt,{children:py}),u,E(Y,{x:0,y:0,children:[d(Y,{children:b}),d(It,{children:m}),d(Ot,{children:y})]})]})};Tt("sequence-zigzag-pucks-3d",{component:gy,composites:["title","item"]});const aR=240,lR=130,cR=105,cr=12,hR=120,my=50,dR=.6,uR="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",yy="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",vy=70+cr/2,by=40+cr/2,xy=d("filter",{id:"sequence-zigzag-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:d("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"15",result:"blur"})}),wy=t=>{var e;const{Title:n,Item:r,data:i,options:o,dx:s=aR,dy:a=lR,iconSize:l=30}=t,{title:c,desc:h,items:u=[]}=i,f=n?d(n,{title:c,desc:h}):null,p=re(o);if(u.length===0)return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d(zt,{children:xy}),f,d(Y,{children:d(Ot,{children:d(q,{indexes:[0],x:0,y:0})})})]});const g=Q(d(r,{indexes:[0],data:i,datum:u[0]})),y=Q(d(q,{indexes:[0]})),m=[],b=[],v=[],x=[],w=[];let _=0,$=0,P="",O=1/0,T=-1/0,I=1/0,S=1/0;const H=[];u.forEach((B,k)=>{const D=_,z=$;H.push({x:D,y:z}),O=Math.min(O,z);const N=D-vy,j=z-by;I=Math.min(I,N),S=Math.min(S,j);const X=k%2===0;k<u.length-1&&(_+=s,$=X?$+a:$-a)});const C=Math.max(0,-I),A=Math.max(0,-S);if(_=0,$=0,u.forEach((B,k)=>{const D=[k],z=H[k],N=z.x+C,j=z.y+A,X=Ct(o,D),L=Math.max(0,N-vy),M=Math.max(0,j-by),R=10,W=my+10,{colorPrimaryBg:U}=be({colorPrimary:X});if(x.push(E(ne,{x:L,y:M,width:140,height:110,children:[d(Lt,{x:R,y:W,width:hR,height:my,fill:X||p,filter:"url(#sequence-zigzag-glow-filter)",opacity:dR}),d(ht,{d:uR,fill:X||p}),d(ht,{d:yy,fill:"#fff"}),d(ht,{d:yy,fill:U||U})]})),B.icon){const Z=Math.max(0,N-l/2-cr/2),K=Math.max(0,j-l/2-cr/2);w.push(d(ve,{x:Z,y:K,size:l,indexes:D,fill:X}))}const V=N-g.width/2-cr/2,G=Math.max(0,j+cR-cr/2);if(T=Math.max(T,G+g.height),k===0?P=`M ${N} ${j}`:P+=` L ${N} ${j}`,b.push(d(r,{indexes:D,datum:B,data:i,x:V,y:G})),m.push(d(Ft,{indexes:D,x:Math.max(0,V+g.width-y.width/2),y:Math.max(0,G+g.height-y.height/2)})),k<u.length-1){const Z=H[k+1],K=Z.x+C,nt=Z.y+A,at=Math.max(0,N+(K-N)/2-y.width/2),pt=Math.max(0,j+(nt-j)/2-y.height/2);m.push(d(q,{indexes:[k+1],x:at,y:pt}))}else m.push(d(q,{indexes:[u.length],x:Math.max(0,V+g.width+s/4),y:Math.max(0,G+g.height/2-y.height/2)}))}),P){const B=(((e=H[H.length-1])==null?void 0:e.x)||0)+C;v.push(d(ht,{d:P,stroke:"#f3f2f1",strokeWidth:cr,fill:"none",width:B,height:T-Math.min(O+A,0)}))}return E(lt,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[d(zt,{children:xy}),f,E(Y,{x:0,y:0,children:[d(Y,{children:[...v,...x,...w]}),d(It,{children:b}),d(Ot,{children:m})]})]})};Tt("sequence-zigzag-steps",{component:wy,composites:["title","item"]});class Ln{init(e){Object.assign(this,e)}}class _y{constructor(e,n={}){this.clickTimer=null,this.singleClickCallback=null,this.doubleClickCallback=null,this.pointerId=null,this.startX=0,this.startY=0,this.skipClick=!1,this.dragged=!1,this.handlePointerDown=i=>{this.pointerId=i.pointerId,this.startX=i.clientX,this.startY=i.clientY,this.dragged=!1,this.skipClick=!1,window.addEventListener("pointermove",this.handlePointerMove,{passive:!0}),window.addEventListener("pointerup",this.handlePointerUp,{passive:!0}),window.addEventListener("pointercancel",this.handlePointerUp,{passive:!0})},this.handlePointerMove=i=>{if(this.pointerId===null||i.pointerId!==this.pointerId)return;const o=i.clientX-this.startX,s=i.clientY-this.startY;Math.hypot(o,s)>this.dragThreshold&&(this.skipClick=!0,this.dragged=!0)},this.handlePointerUp=i=>{this.pointerId!==null&&i.pointerId===this.pointerId&&(this.pointerId=null,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),this.dragged||(this.skipClick=!1),this.dragged=!1)};var r;this.element=e,this.delay=n.delay||300,this.dragThreshold=(r=n.dragThreshold)!=null?r:4,this.init()}init(){this.element.addEventListener("click",this.handleClick.bind(this)),this.element.addEventListener("dblclick",this.handleDoubleClick.bind(this)),this.element.addEventListener("pointerdown",this.handlePointerDown)}handleClick(e){if(this.skipClick){this.skipClick=!1;return}this.clickTimer&&clearTimeout(this.clickTimer),this.clickTimer=window.setTimeout(()=>{var n;(n=this.singleClickCallback)==null||n.call(this,e)},this.delay)}handleDoubleClick(e){var n;if(this.skipClick){this.skipClick=!1;return}this.clickTimer&&clearTimeout(this.clickTimer),(n=this.doubleClickCallback)==null||n.call(this,e)}onClick(e){return this.singleClickCallback=e,this}onDoubleClick(e){return this.doubleClickCallback=e,this}destroy(){this.clickTimer&&clearTimeout(this.clickTimer),this.element.removeEventListener("click",this.handleClick),this.element.removeEventListener("dblclick",this.handleDoubleClick),this.element.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}}function fR(t){return t.getScreenCTM()||new DOMMatrix}function pR(t){var e;return((e=t.getScreenCTM())==null?void 0:e.inverse())||new DOMMatrix}function hr(t,e,n){return new DOMPoint(e,n).matrixTransform(pR(t))}function ln(t,e){const n=e.getBoundingClientRect(),i=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x,y:n.y+n.height},{x:n.x+n.width,y:n.y+n.height}].map(c=>hr(t,c.x,c.y)),o=Math.min(...i.map(c=>c.x)),s=Math.max(...i.map(c=>c.x)),a=Math.min(...i.map(c=>c.y)),l=Math.max(...i.map(c=>c.y));return new DOMRect(o,a,s-o,l-a)}function $y(t,e){if(e.length===0)return t.data;const n=wr(t,e);return n.children||(n.children=[]),n.children}function gR(t,e="data.items"){return t.reduce((n,r,i)=>i===0?`${n}[${r}]`:`${n}.children[${r}]`,e)}function Py(t){var e,n;return((n=(e=mR(t))==null?void 0:e.dataset.indexes)==null?void 0:n.split(",").map(Number))||[]}function mR(t){return In(t)?vo(t):t}function Ys(t){if(!t)return null;const e=[yR];let n=t;for(const r of e){const i=r(n);if(i){n=i;break}}return Oy(n)}function Oy(t){if(!t)return null;const e=[vR,bR];for(const n of e){const r=n(t);if(r)return r}return a4(t)||gn(t)||In(t)?t:null}const yR=t=>{var e;const n=r=>r?c4(r)||h4(r):!1;return n(t)?t.parentElement:n(t.parentElement)?(e=t.parentElement)==null?void 0:e.parentElement:null},vR=t=>d4(t)&&ku(t.parentElement)?t.parentElement:null,bR=t=>{const e=t.parentElement;return Au(e)?e:al(t)?t:null};class Cy{constructor(){this.extensions=new Map}register(e,n,r){if(!(r!=null&&r.override)&&this.extensions.has(e))throw new Error(`Extension "${e}" already registered`);this.extensions.set(e,n)}get(e){return this.extensions.get(e)}has(e){return this.extensions.has(e)}getAll(){return this.extensions}forEach(e){this.extensions.forEach((n,r)=>{e(n,r)})}[Symbol.iterator](){return this.extensions.entries()}unregister(e){return this.extensions.delete(e)}destroy(){this.extensions.forEach(e=>{e&&typeof e.dispose=="function"&&e.dispose()}),this.extensions.clear()}}const xR=t=>{if(!t||!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName.toLowerCase();return e==="input"||e==="textarea"||e==="select"},wR=t=>{const e=t.toLowerCase().split("+").map(r=>r.trim()).filter(Boolean),n={key:""};if(e.forEach(r=>{r==="shift"?n.shift=!0:r==="alt"||r==="option"?n.alt=!0:r==="ctrl"||r==="control"?n.ctrl=!0:r==="meta"||r==="cmd"||r==="command"?n.meta=!0:r==="mod"?n.mod=!0:n.key=r}),!n.key)throw new Error(`Invalid hotkey combo: "${t}"`);return n},_R=(t,e)=>{var n;if(t.key.toLowerCase()!==e.key)return!1;const i=(n=e.mod)!=null?n:!1,o=t.metaKey,s=t.ctrlKey,a=o||s,l=(c,h)=>c===void 0?!h:c===h;return i&&!a?!1:i?!(!l(e.shift,t.shiftKey)||!l(e.alt,t.altKey)||e.meta!==void 0&&!l(e.meta,o)||e.ctrl!==void 0&&!l(e.ctrl,s)):!(!l(e.meta,o)||!l(e.ctrl,s)||!l(e.shift,t.shiftKey)||!l(e.alt,t.altKey))};class $R{constructor(e={}){this.bindings=[],this.handleKeydown=i=>{if(i instanceof KeyboardEvent&&!i.defaultPrevented&&!xR(i.target)&&!(this.filter&&!this.filter(i))){for(const o of this.bindings)if(o.combos.some(s=>_R(i,s))){o.handler(i);break}}};const{target:n=document,filter:r}=e;this.target=n,this.filter=r,this.target.addEventListener("keydown",this.handleKeydown)}bind(e,n){const i={combos:(Array.isArray(e)?e:[e]).map(o=>wR(o)),handler:n};return this.bindings.push(i),()=>this.unbind(i)}destroy(){this.target.removeEventListener("keydown",this.handleKeydown),this.bindings=[]}unbind(e){this.bindings=this.bindings.filter(n=>n!==e)}}var PR=(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())});class My extends Ln{constructor(){super(...arguments),this.name="brush-select",this.shiftKey=!1,this.dragging=!1,this.dragThreshold=4,this.handleStart=e=>{this.interaction.isActive()&&e.button===0&&(this.isTextSelectionTarget(e.target)||this.hasElementAtStart(e.target)||this.interaction.executeExclusiveInteraction(this,()=>PR(this,null,function*(){return new Promise(n=>{this.completeInteraction=n;const r=this.editor.getDocument();this.startPoint=hr(r,e.clientX,e.clientY),this.pointerId=e.pointerId,this.shiftKey=e.shiftKey,this.dragging=!1,window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd)})})))},this.handleMove=e=>{if(e.pointerId!==this.pointerId||!this.startPoint)return;const n=this.editor.getDocument(),r=hr(n,e.clientX,e.clientY),i=r.x-this.startPoint.x,o=r.y-this.startPoint.y;if(!this.dragging){if(Math.hypot(i,o)<this.dragThreshold)return;this.dragging=!0,this.ensureBrush(),this.updateBrush(this.startPoint,r)}e.preventDefault(),e.stopPropagation(),this.updateBrush(this.startPoint,r)},this.handleEnd=e=>{var n,r;if(e.pointerId!==this.pointerId||!this.startPoint)return;window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd);let i=null;if(this.dragging){e.preventDefault(),e.stopPropagation();const l=this.editor.getDocument(),c=hr(l,e.clientX,e.clientY);i=this.updateBrush(this.startPoint,c),this.clearBrush()}this.pointerId=void 0,this.startPoint=void 0,this.dragging=!1;const o=this.shiftKey;if(this.shiftKey=!1,!i){(n=this.completeInteraction)==null||n.call(this),this.completeInteraction=void 0;return}const s=this.collectSelection(i);if((r=this.completeInteraction)==null||r.call(this),this.completeInteraction=void 0,s.length===0){o||this.interaction.clearSelection();return}const a=o?"add":"replace";this.interaction.select(s,a)}}init(e){super.init(e),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.clearBrush(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart),window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd)}ensureBrush(){return this.brush?this.brush:(this.brush=this.interaction.appendTransientElement(wt("rect",{fill:"rgba(51, 132, 245, 0.08)",stroke:"#3384F5","stroke-dasharray":"4 2","stroke-width":1,"pointer-events":"none"})),this.brush)}updateBrush(e,n){if(!this.brush)return null;const r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.abs(e.x-n.x),s=Math.abs(e.y-n.y);return Yt(this.brush,{x:r,y:i,width:o,height:s}),{x:r,y:i,width:o,height:s}}clearBrush(){var e;(e=this.brush)==null||e.remove(),this.brush=void 0}collectSelection(e){const n=this.editor.getDocument(),r=Array.from(n.querySelectorAll("[data-element-type]")),i=(s,a)=>{const l=s.x+s.width,c=s.y+s.height,h=a.x+a.width,u=a.y+a.height;return!(l<a.x||h<s.x||c<a.y||u<s.y)},o=new Set;return r.reduce((s,a)=>{const l=Oy(a);if(!l||o.has(l))return s;const c=ln(n,l),h={x:c.x,y:c.y,width:c.width,height:c.height};return i(e,h)&&(s.push(l),o.add(l)),s},[])}hasElementAtStart(e){var n;return e instanceof Element?Ys(e)?!0:!!((n=e.closest)!=null&&n.call(e,"[data-element-type]")):!1}isTextSelectionTarget(e){if(!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;const n=e.tagName.toLowerCase();return n==="input"||n==="textarea"}}var OR=(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())});class Sy extends Ln{constructor(){super(...arguments),this.name="click-select",this.shiftKey=!1,this.onShiftKeyDown=e=>{e.key==="Shift"&&(this.shiftKey=!0)},this.onShiftKeyUp=e=>{e.key==="Shift"&&(this.shiftKey=!1)},this.onEscKeyDown=e=>{e.key==="Escape"&&this.interaction.clearSelection()}}init(e){super.init(e);const{editor:n,interaction:r}=this;this.clickHandler=new _y(n.getDocument(),{delay:0});const i=o=>{r.isActive()&&r.executeExclusiveInteraction(this,()=>OR(this,null,function*(){const s=Ys(o.target);zu(s)||(this.shiftKey?s&&(r.isSelected(s)?r.select([s],"remove"):r.select([s],"add")):s?r.select([s],"replace"):r.clearSelection())}))};this.clickHandler.onClick(i),document.addEventListener("keydown",this.onShiftKeyDown),document.addEventListener("keyup",this.onShiftKeyUp),document.addEventListener("keydown",this.onEscKeyDown)}destroy(){var e;(e=this.clickHandler)==null||e.destroy(),document.removeEventListener("keydown",this.onShiftKeyDown),document.removeEventListener("keyup",this.onShiftKeyUp),document.removeEventListener("keydown",this.onEscKeyDown)}}var Ey=(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())});class CR{constructor(e){this.commands=e}apply(e){return Ey(this,null,function*(){for(const n of this.commands)yield n.apply(e)})}undo(e){return Ey(this,null,function*(){for(let n=this.commands.length-1;n>=0;n--)yield this.commands[n].undo(e)})}serialize(){return{type:"batch",commands:this.commands.map(e=>e.serialize())}}}var MR=Object.defineProperty,SR=Object.defineProperties,ER=Object.getOwnPropertyDescriptors,Iy=Object.getOwnPropertySymbols,IR=Object.prototype.hasOwnProperty,TR=Object.prototype.propertyIsEnumerable,Ty=(t,e,n)=>e in t?MR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ri=(t,e)=>{for(var n in e||(e={}))IR.call(e,n)&&Ty(t,n,e[n]);if(Iy)for(var n of Iy(e))TR.call(e,n)&&Ty(t,n,e[n]);return t},Ay=(t,e)=>SR(t,ER(e)),ky=(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())});class cn{constructor(e,n,r){this.element=e,this.modified=n;const i=AR(e,n);this.original=kR(i,r)}apply(e){return ky(this,null,function*(){zy(this.element,this.modified),e.updateElement(this.element,this.modified)})}undo(e){return ky(this,null,function*(){this.original&&(zy(this.element,this.original),e.updateElement(this.element,this.original))})}serialize(){return{type:"update-element",elementId:this.element.id,modified:this.modified,original:this.original}}}function zy(t,e){gn(t)?Tu(t,e):In(t)?W4(t,void 0,e.attributes):e.attributes&&Yt(t,e.attributes)}function AR(t,e){const n=Object.keys(e.attributes||{}),r=ke(t,n,!1),i=s=>{s&&n.forEach(a=>{a in s&&(r[a]=s[a])})},o=Ay(Ri({},e),{attributes:r});if(gn(t)){const{attributes:s}=sl(t);i(s)}else if(In(t)){if(!vo(t))return;i(dl(t))}return o}function kR(t,e){if(!t)return e;if(!e)return t;const n=Ri(Ri({},t.attributes||{}),e.attributes||{});return Ay(Ri(Ri({},t),e),{attributes:Object.keys(n).length?n:void 0})}var zR=Object.defineProperty,Ly=Object.getOwnPropertySymbols,LR=Object.prototype.hasOwnProperty,RR=Object.prototype.propertyIsEnumerable,Ry=(t,e,n)=>e in t?zR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Hy=(t,e)=>{for(var n in e||(e={}))LR.call(e,n)&&Ry(t,n,e[n]);if(Ly)for(var n of Ly(e))RR.call(e,n)&&Ry(t,n,e[n]);return t},Dy=(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())});class HR{constructor(e,n){this.options=e,this.original=n}apply(e){return Dy(this,null,function*(){const n=e.getOptions();this.original||(this.original=n),e.updateOptions(Hy(Hy({},n),this.options))})}undo(e){return Dy(this,null,function*(){this.original&&e.updateOptions(this.original)})}serialize(){return{type:"update-options",options:this.options,original:this.original}}}var Ny=(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())});class DR{constructor(e,n,r){this.element=e,this.originalText=r!=null?r:il(e),this.modifiedText=n}apply(e){return Ny(this,null,function*(){this.originalText!==this.modifiedText&&(ol(this.element,this.modifiedText),jy(e,this.element,this.modifiedText))})}undo(e){return Ny(this,null,function*(){this.originalText!==this.modifiedText&&(ol(this.element,this.originalText),jy(e,this.element,this.originalText))})}serialize(){return{type:"update-text",elementId:this.element.id,original:this.originalText,modified:this.modifiedText}}}function jy(t,e,n){const r=ll(e);if(r.startsWith("item-")){const i=r.replace("item-",""),o=Py(e);t.updateItemDatum(o,{[i]:n})}else t.updateData(r,n)}var NR=(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())});class Fy extends Ln{constructor(){super(...arguments),this.name="dblclick-edit-text"}init(e){super.init(e);const{editor:n,commander:r,interaction:i}=e;this.clickHandler=new _y(n.getDocument()).onDoubleClick(o=>{i.isActive()&&i.executeExclusiveInteraction(this,()=>NR(this,null,function*(){const s=Ys(o.target);if(s&&gn(s)){i.select([s],"replace");const a=il(s),l=yield new Promise(c=>{const h=this.listenSelectionChange(s);FR(s,{cursorPosition:{clientX:o.clientX,clientY:o.clientY},onBlur:c,onCancel:c}),this.detachSelectionListener=h});r.execute(new DR(s,l,a))}}))})}destroy(){var e,n;(e=this.clickHandler)==null||e.destroy(),(n=this.detachSelectionListener)==null||n.call(this)}listenSelectionChange(e){const n=({next:r})=>{var i;if(!r.includes(e)){(i=this.detachSelectionListener)==null||i.call(this),this.detachSelectionListener=void 0;const o=qn(e);o&&o.blur()}};return this.emitter.on("selection:change",n),()=>this.emitter.off("selection:change",n)}}const jR="infographic-inline-text-editor-style",Xs="infographic-inline-text-editor";function FR(t,e){const n=qn(t);n&&(WR(),new BR(n,e).start())}class BR{constructor(e,n){this.entity=e,this.options=n,this.handlePaste=r=>{r.clipboardData&&(r.preventDefault(),this.insertPlainText(r.clipboardData.getData("text/plain")))},this.handleKeydown=r=>{r.key==="Enter"&&!r.shiftKey&&(r.preventDefault(),this.insertPlainText(`
|
|
137
|
+
`))},this.handleInput=()=>{var r,i;this.normalizeSpanContent(),(i=(r=this.options)==null?void 0:r.onInput)==null||i.call(r,this.getText())},this.handleBlur=()=>{var r,i;this.entity.removeAttribute("contenteditable"),this.entity.classList.remove(Xs),this.normalizeSpanContent(),(i=(r=this.options)==null?void 0:r.onBlur)==null||i.call(r,this.getText()),this.detachListeners()}}start(){this.entity.setAttribute("contenteditable","true"),this.entity.classList.add(Xs),this.entity.focus(),this.placeCaretAtClickPosition(),this.attachListeners()}attachListeners(){this.entity.addEventListener("paste",this.handlePaste),this.entity.addEventListener("keydown",this.handleKeydown),this.entity.addEventListener("input",this.handleInput),this.entity.addEventListener("blur",this.handleBlur,{once:!0})}detachListeners(){this.entity.removeEventListener("paste",this.handlePaste),this.entity.removeEventListener("keydown",this.handleKeydown),this.entity.removeEventListener("input",this.handleInput)}insertPlainText(e){var n,r;const i=window.getSelection();if(!i)return;i.rangeCount||this.placeCaretAtEnd();const o=i.rangeCount?i.getRangeAt(0):document.createRange();o.deleteContents();const s=document.createTextNode(e);o.insertNode(s),o.setStartAfter(s),o.setEndAfter(s),i.removeAllRanges(),i.addRange(o),this.normalizeSpanContent(),(r=(n=this.options)==null?void 0:n.onInput)==null||r.call(n,this.getText())}normalizeSpanContent(){var e;if(this.entity.childNodes.length===1&&((e=this.entity.firstChild)==null?void 0:e.nodeType)===Node.TEXT_NODE)return;const n=this.getText();this.entity.textContent=n}placeCaretAtClickPosition(){const e=window.getSelection();if(!e)return;const n=this.getRangeFromPoint();if(n){e.removeAllRanges(),e.addRange(n);return}this.placeCaretAtEnd()}getRangeFromPoint(){var e,n;const{cursorPosition:r}=this.options||{};if(!r)return null;const{clientX:i,clientY:o}=r,s=document,a=(n=(e=s.caretRangeFromPoint)==null?void 0:e.call(s,i,o))!=null?n:(()=>{var l;const c=(l=s.caretPositionFromPoint)==null?void 0:l.call(s,i,o);if(!c)return null;const h=document.createRange();return h.setStart(c.offsetNode,c.offset),h.collapse(!0),h})();return!a||!this.entity.contains(a.startContainer)?null:a}placeCaretAtEnd(){const e=window.getSelection();if(!e)return;const n=document.createRange();n.selectNodeContents(this.entity),n.collapse(!1),e.removeAllRanges(),e.addRange(n)}getText(){return this.entity.textContent||""}}function WR(){nn(jR,`
|
|
138
|
+
.${Xs} {
|
|
134
139
|
margin: 0;
|
|
135
140
|
padding: 0;
|
|
136
141
|
box-sizing: border-box;
|
|
@@ -138,11 +143,11 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
|
|
|
138
143
|
outline: none;
|
|
139
144
|
cursor: text;
|
|
140
145
|
}
|
|
141
|
-
.${
|
|
146
|
+
.${Xs}::selection {
|
|
142
147
|
background-color: #b3d4fc;
|
|
143
148
|
}
|
|
144
|
-
`)}var TL=(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())});class cy extends Cn{constructor(){super(...arguments),this.name="drag-element",this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragItems=[],this.dragging=!1,this.dragThreshold=4,this.handleStart=e=>{if(!this.interaction.isActive()||e.pointerType==="mouse"&&e.button!==0)return;const n=Ss(e.target);if(!n||cu(n))return;const r=this.editor.getDocument();this.pointerId=e.pointerId,this.startPoint=er(r,e.clientX,e.clientY),this.dragging=!1,this.startTarget=n;const i=this.interaction.isSelected(n);this.selectionForDrag=i?this.interaction.getSelection():[n],this.willReplaceSelection=!i,this.exclusiveStarted=!1,this.startBounds=this.getSelectionBounds(this.selectionForDrag),this.guideCandidates=this.collectGuideCandidates(this.selectionForDrag),window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd),window.addEventListener("pointercancel",this.handleEnd)},this.handleMove=e=>{if(e.pointerId!==this.pointerId||!this.startPoint)return;const n=this.editor.getDocument(),r=er(n,e.clientX,e.clientY),i=r.x-this.startPoint.x,o=r.y-this.startPoint.y;if(!this.dragging){if(Math.hypot(i,o)<this.dragThreshold)return;if(!this.startDrag()){this.reset();return}this.dragging=!0}const a=e.altKey?{dx:i,dy:o}:this.getSnappedDelta(i,o);e.preventDefault(),e.stopPropagation(),this.updateGuides(a),this.applyTranslation(a.dx,a.dy),this.emitGeometryChange()},this.handleEnd=e=>{if(e.pointerId!==this.pointerId||!this.startPoint)return;this.detachPointerListeners();const n=this.editor.getDocument(),r=er(n,e.clientX,e.clientY),i=r.x-this.startPoint.x,o=r.y-this.startPoint.y;if((this.dragging||Math.hypot(i,o)>=this.dragThreshold)&&this.dragItems.length&&this.exclusiveStarted){e.preventDefault(),e.stopPropagation();const a=e.altKey?{dx:i,dy:o}:this.getSnappedDelta(i,o);this.updateGuides(a),this.applyTranslation(a.dx,a.dy),this.commitTranslation(a.dx,a.dy),this.emitGeometryChange()}this.reset()}}init(e){super.init(e),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.detachPointerListeners(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart)}startDrag(){if(this.exclusiveStarted)return!0;if(!this.startTarget||(this.willReplaceSelection&&this.interaction.select([this.startTarget],"replace"),this.dragItems=this.selectionForDrag.filter(n=>an(n)).map(n=>this.createDragItem(n)).filter(Boolean),this.dragItems.length===0))return!1;let e=!1;return this.interaction.executeExclusiveInteraction(this,()=>TL(this,null,function*(){return new Promise(n=>{this.completeInteraction=n,e=!0})})),this.exclusiveStarted=e,e}applyTranslation(e,n){this.dragItems.forEach(r=>{if(r.mode==="attr"){const i=r.startX+e,o=r.startY+n,s={x:i,y:o};r.hasDataX&&(s["data-x"]=i),r.hasDataY&&(s["data-y"]=o),Bt(r.element,s)}else{const i=this.composeTransform(r.startX+e,r.startY+n,r.restTransform);Bt(r.element,{transform:i})}})}commitTranslation(e,n){if(Math.abs(e)<1e-6&&Math.abs(n)<1e-6)return;const r=this.dragItems.map(i=>{if(i.mode==="attr"){const a=i.startX+e,l=i.startY+n,c={x:a,y:l},h={};return i.hasX?h.x=i.startX:h.x=null,i.hasY?h.y=i.startY:h.y=null,i.hasDataX&&(c["data-x"]=a,h["data-x"]=i.startX),i.hasDataY&&(c["data-y"]=l,h["data-y"]=i.startY),new en(i.element,{attributes:c},{attributes:h})}const o=this.composeTransform(i.startX+e,i.startY+n,i.restTransform),s=i.originalTransform!==void 0?i.originalTransform:null;return new en(i.element,{attributes:{transform:o}},{attributes:{transform:s}})});r.length&&this.commander.executeBatch(r)}createDragItem(e){const n=this.getTransformInfo(e);if(n)return{element:e,mode:"transform",startX:n.x,startY:n.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:n.rest,originalTransform:n.original};const{x:r,y:i,hasX:o,hasY:s,hasDataX:a,hasDataY:l}=this.getAttrInfo(e);return{element:e,mode:"attr",startX:r,startY:i,hasX:o,hasY:s,hasDataX:a,hasDataY:l}}getAttrInfo(e){const n=this.editor.getDocument(),{x:r,y:i}=tn(n,e),o=Se(e,["x","y","data-x","data-y"],!1),s=o.x!==null&&o.x!==void 0,a=o.y!==null&&o.y!==void 0,l=o["data-x"]!==null&&o["data-x"]!==void 0,c=o["data-y"]!==null&&o["data-y"]!==void 0,h=(x,v)=>{const b=x!=null?Number(x):NaN;return Number.isFinite(b)?b:v},u=h(o.x,NaN),f=h(o.y,NaN),p=h(o["data-x"],NaN),g=h(o["data-y"],NaN),y=Number.isFinite(u)?u:Number.isFinite(p)?p:r,m=Number.isFinite(f)?f:Number.isFinite(g)?g:i;return{x:y,y:m,hasX:s,hasY:a,hasDataX:l,hasDataY:c}}getTransformInfo(e){const n=e.getAttribute("transform");if(n===null)return null;const r=n.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!r)return{x:0,y:0,rest:n,original:n};const i=Number(r[1])||0,o=r[2]!==void 0&&Number(r[2])||0,s=n.replace(r[0],"").trim();return{x:i,y:o,rest:s,original:n}}composeTransform(e,n,r){const i=`translate(${e}, ${n})`;return r&&r.length?`${i} ${r}`:i}emitGeometryChange(){var e;const n=(e=this.dragItems[0])==null?void 0:e.element;if(!n)return;const r=tn(this.editor.getDocument(),n);this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:n,rect:r})}detachPointerListeners(){window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd),window.removeEventListener("pointercancel",this.handleEnd)}reset(){var e;this.detachPointerListeners(),this.clearGuides(),this.pointerId=void 0,this.startPoint=void 0,this.dragItems=[],this.startTarget=void 0,this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragging=!1,this.startBounds=void 0,this.guideCandidates=void 0,(e=this.completeInteraction)==null||e.call(this),this.completeInteraction=void 0}getSelectionBounds(e){if(!e.length)return;const n=this.editor.getDocument(),r=e.map(i=>tn(n,i));return yr(r)}collectGuideCandidates(e){const n=this.editor.getDocument(),r=new Set(e),i=Array.from(n.querySelectorAll("[data-element-type]")).filter(a=>!r.has(a)),o=[],s=[];return i.forEach(a=>{const{x:l,y:c,width:h,height:u}=tn(n,a);o.push(l,l+h/2,l+h),s.push(c,c+u/2,c+u)}),{vertical:o,horizontal:s}}getSnappedDelta(e,n){if(!this.startBounds||!this.guideCandidates)return{dx:e,dy:n};const r={x:this.startBounds.x+e,y:this.startBounds.y+n,width:this.startBounds.width,height:this.startBounds.height},i=this.getSnapOffset([r.x,r.x+r.width/2,r.x+r.width],this.guideCandidates.vertical),o=this.getSnapOffset([r.y,r.y+r.height/2,r.y+r.height],this.guideCandidates.horizontal);return{dx:e+((i==null?void 0:i.offset)||0),dy:n+((o==null?void 0:o.offset)||0),snapX:i,snapY:o}}getSnapOffset(e,n,r=5){let i=null;return e.forEach(o=>{n.forEach(s=>{const a=s-o;Math.abs(a)<=r&&(!i||Math.abs(a)<Math.abs(i.offset))&&(i={offset:a,at:s})})}),i||void 0}ensureGuideLine(e){const n=e==="vertical"?this.guideVertical:this.guideHorizontal;if(n)return n;const r=this.interaction.appendTransientElement(ft("line",{stroke:"#FF7A45","stroke-width":1,"stroke-dasharray":"4 4","pointer-events":"none",visibility:"hidden"}));return e==="vertical"?this.guideVertical=r:this.guideHorizontal=r,r}updateGuides(e){const n=this.editor.getDocument(),{width:r,height:i}=n.viewBox.baseVal;if(e.snapX){const o=this.ensureGuideLine("vertical");Bt(o,{x1:e.snapX.at,y1:0,x2:e.snapX.at,y2:i,visibility:"visible"})}else this.guideVertical&&this.guideVertical.setAttribute("visibility","hidden");if(e.snapY){const o=this.ensureGuideLine("horizontal");Bt(o,{x1:0,y1:e.snapY.at,x2:r,y2:e.snapY.at,visibility:"visible"})}else this.guideHorizontal&&this.guideHorizontal.setAttribute("visibility","hidden")}clearGuides(){var e,n;(e=this.guideVertical)==null||e.remove(),(n=this.guideHorizontal)==null||n.remove(),this.guideVertical=void 0,this.guideHorizontal=void 0}}var hy=(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())});class dy extends Cn{constructor(){super(...arguments),this.name="hotkey-history",this.handleUndo=e=>hy(this,null,function*(){e.preventDefault(),yield this.commander.undo()}),this.handleRedo=e=>hy(this,null,function*(){e.preventDefault(),yield this.commander.redo()})}init(e){super.init(e),this.hotkey=new hL({filter:()=>this.interaction.isActive()}),this.hotkey.bind("mod+z",this.handleUndo),this.hotkey.bind(["mod+shift+z","mod+y"],this.handleRedo)}destroy(){var e;(e=this.hotkey)==null||e.destroy()}}var AL=Object.defineProperty,kL=Object.defineProperties,zL=Object.getOwnPropertyDescriptors,uy=Object.getOwnPropertySymbols,LL=Object.prototype.hasOwnProperty,HL=Object.prototype.propertyIsEnumerable,fy=(t,e,n)=>e in t?AL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,RL=(t,e)=>{for(var n in e||(e={}))LL.call(e,n)&&fy(t,n,e[n]);if(uy)for(var n of uy(e))HL.call(e,n)&&fy(t,n,e[n]);return t},DL=(t,e)=>kL(t,zL(e));class py extends Cn{constructor(){super(...arguments),this.name="select-highlight",this.highlightMasks=[],this.handleSelectionChanged=({next:e})=>{this.highlightSelection(e)},this.handleGeometryChanged=({target:e})=>{this.interaction.isSelected(e)&&this.highlightSelection(this.interaction.getSelection())},this.handleHistoryChanged=()=>{this.highlightSelection(this.interaction.getSelection())}}init(e){super.init(e);const{emitter:n}=e;n.on("selection:change",this.handleSelectionChanged),n.on("selection:geometrychange",this.handleGeometryChanged),n.on("history:change",this.handleHistoryChanged),this.highlightSelection(this.interaction.getSelection())}destroy(){this.clearMasks();const{emitter:e}=this;e.off("selection:change",this.handleSelectionChanged),e.off("selection:geometrychange",this.handleGeometryChanged),e.off("history:change",this.handleHistoryChanged)}highlightSelection(e){if(e.length===1&&an(e[0])){this.clearMasks();return}this.drawElementMasks(e),this.drawCombinedBoundsMask(e)}drawElementMasks(e){let n=0;for(;n<e.length;n++){const{x:r,y:i,width:o,height:s}=tn(this.editor.getDocument(),e[n]),a={x:r,y:i,width:o,height:s,fill:"none",stroke:"#3384F5","stroke-width":1,"pointer-events":"none"},l=this.highlightMasks[n];l?Bt(l,a):this.highlightMasks[n]=this.interaction.appendTransientElement(ft("rect",a))}for(;n<this.highlightMasks.length;n++)this.highlightMasks[n].remove();this.highlightMasks=this.highlightMasks.slice(0,e.length)}drawCombinedBoundsMask(e){var n;if(e.length<2){(n=this.combinedBoundsMask)==null||n.remove(),this.combinedBoundsMask=void 0;return}const r=yr(e.map(o=>tn(this.editor.getDocument(),o))),i=DL(RL({},r),{fill:"none",stroke:"#3384F5","stroke-width":2,"pointer-events":"none"});this.combinedBoundsMask?Bt(this.combinedBoundsMask,i):this.combinedBoundsMask=this.interaction.appendTransientElement(ft("rect",i))}clearMasks(){var e;this.highlightMasks.forEach(n=>n.remove()),this.highlightMasks=[],(e=this.combinedBoundsMask)==null||e.remove(),this.combinedBoundsMask=void 0}}const gy=1,NL=-5e3,jL=5e3;class my extends Cn{constructor(){super(...arguments),this.name="zoom-wheel",this.wheelListener=e=>{var n;if(!this.interaction.isActive()||!e.ctrlKey&&!e.metaKey)return;e.preventDefault();const r=e.deltaY>0?1.1:.9,o=(n=this.state.getOptions().padding)!=null?n:0,s=Vn(o),l=this.editor.getDocument().getBBox(),c=s.map(x=>l7((x===0?1:x)*r,NL,jL)),[h,u,f,p]=c,g=l.width+p+u,y=l.height+h+f;if(g<=gy||y<=gy)return;const m=new PL({padding:c});this.commander.execute(m)}}init(e){super.init(e),document.addEventListener("wheel",this.wheelListener,{passive:!1})}destroy(){document.removeEventListener("wheel",this.wheelListener)}}class Bc{init(e){Object.assign(this,e)}}const nr=({icon:t,onClick:e,activate:n=!1})=>{FL();const r=document.createElement("button");r.type="button",r.classList.add($i),n&&r.setAttribute("data-activate","true"),e&&r.addEventListener("click",e);const i=t();return r.appendChild(i),Object.assign(r,{setActivate:(s=>{s?r.setAttribute("data-activate","true"):r.removeAttribute("data-activate")}).bind(r),activate:n})},$i="infographic-edit-bar-icon-btn",BL="infographic-edit-bar-icon-btn-style";function FL(){Ue(BL,`
|
|
145
|
-
.${
|
|
149
|
+
`)}var VR=(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())});class By extends Ln{constructor(){super(...arguments),this.name="drag-element",this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragItems=[],this.dragging=!1,this.dragThreshold=4,this.handleStart=e=>{if(!this.interaction.isActive()||e.pointerType==="mouse"&&e.button!==0)return;const n=Ys(e.target);if(!n||zu(n))return;const r=this.editor.getDocument();this.pointerId=e.pointerId,this.startPoint=hr(r,e.clientX,e.clientY),this.dragging=!1,this.startTarget=n;const i=this.interaction.isSelected(n);this.selectionForDrag=i?this.interaction.getSelection():[n],this.willReplaceSelection=!i,this.exclusiveStarted=!1,this.startBounds=this.getSelectionBounds(this.selectionForDrag),this.guideCandidates=this.collectGuideCandidates(this.selectionForDrag),window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd),window.addEventListener("pointercancel",this.handleEnd)},this.handleMove=e=>{if(e.pointerId!==this.pointerId||!this.startPoint)return;const n=this.editor.getDocument(),r=hr(n,e.clientX,e.clientY),i=r.x-this.startPoint.x,o=r.y-this.startPoint.y;if(!this.dragging){if(Math.hypot(i,o)<this.dragThreshold)return;if(!this.startDrag()){this.reset();return}this.dragging=!0}const a=e.altKey?{dx:i,dy:o}:this.getSnappedDelta(i,o);e.preventDefault(),e.stopPropagation(),this.updateGuides(a),this.applyTranslation(a.dx,a.dy),this.emitGeometryChange()},this.handleEnd=e=>{if(e.pointerId!==this.pointerId||!this.startPoint)return;this.detachPointerListeners();const n=this.editor.getDocument(),r=hr(n,e.clientX,e.clientY),i=r.x-this.startPoint.x,o=r.y-this.startPoint.y;if((this.dragging||Math.hypot(i,o)>=this.dragThreshold)&&this.dragItems.length&&this.exclusiveStarted){e.preventDefault(),e.stopPropagation();const a=e.altKey?{dx:i,dy:o}:this.getSnappedDelta(i,o);this.updateGuides(a),this.applyTranslation(a.dx,a.dy),this.commitTranslation(a.dx,a.dy),this.emitGeometryChange()}this.reset()}}init(e){super.init(e),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.detachPointerListeners(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart)}startDrag(){if(this.exclusiveStarted)return!0;if(!this.startTarget||(this.willReplaceSelection&&this.interaction.select([this.startTarget],"replace"),this.dragItems=this.selectionForDrag.filter(n=>gn(n)).map(n=>this.createDragItem(n)).filter(Boolean),this.dragItems.length===0))return!1;let e=!1;return this.interaction.executeExclusiveInteraction(this,()=>VR(this,null,function*(){return new Promise(n=>{this.completeInteraction=n,e=!0})})),this.exclusiveStarted=e,e}applyTranslation(e,n){this.dragItems.forEach(r=>{if(r.mode==="attr"){const i=r.startX+e,o=r.startY+n,s={x:i,y:o};r.hasDataX&&(s["data-x"]=i),r.hasDataY&&(s["data-y"]=o),Yt(r.element,s)}else{const i=this.composeTransform(r.startX+e,r.startY+n,r.restTransform);Yt(r.element,{transform:i})}})}commitTranslation(e,n){if(Math.abs(e)<1e-6&&Math.abs(n)<1e-6)return;const r=this.dragItems.map(i=>{if(i.mode==="attr"){const a=i.startX+e,l=i.startY+n,c={x:a,y:l},h={};return i.hasX?h.x=i.startX:h.x=null,i.hasY?h.y=i.startY:h.y=null,i.hasDataX&&(c["data-x"]=a,h["data-x"]=i.startX),i.hasDataY&&(c["data-y"]=l,h["data-y"]=i.startY),new cn(i.element,{attributes:c},{attributes:h})}const o=this.composeTransform(i.startX+e,i.startY+n,i.restTransform),s=i.originalTransform!==void 0?i.originalTransform:null;return new cn(i.element,{attributes:{transform:o}},{attributes:{transform:s}})});r.length&&this.commander.executeBatch(r)}createDragItem(e){const n=this.getTransformInfo(e);if(n)return{element:e,mode:"transform",startX:n.x,startY:n.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:n.rest,originalTransform:n.original};const{x:r,y:i,hasX:o,hasY:s,hasDataX:a,hasDataY:l}=this.getAttrInfo(e);return{element:e,mode:"attr",startX:r,startY:i,hasX:o,hasY:s,hasDataX:a,hasDataY:l}}getAttrInfo(e){const n=this.editor.getDocument(),{x:r,y:i}=ln(n,e),o=ke(e,["x","y","data-x","data-y"],!1),s=o.x!==null&&o.x!==void 0,a=o.y!==null&&o.y!==void 0,l=o["data-x"]!==null&&o["data-x"]!==void 0,c=o["data-y"]!==null&&o["data-y"]!==void 0,h=(b,v)=>{const x=b!=null?Number(b):NaN;return Number.isFinite(x)?x:v},u=h(o.x,NaN),f=h(o.y,NaN),p=h(o["data-x"],NaN),g=h(o["data-y"],NaN),y=Number.isFinite(u)?u:Number.isFinite(p)?p:r,m=Number.isFinite(f)?f:Number.isFinite(g)?g:i;return{x:y,y:m,hasX:s,hasY:a,hasDataX:l,hasDataY:c}}getTransformInfo(e){const n=e.getAttribute("transform");if(n===null)return null;const r=n.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!r)return{x:0,y:0,rest:n,original:n};const i=Number(r[1])||0,o=r[2]!==void 0&&Number(r[2])||0,s=n.replace(r[0],"").trim();return{x:i,y:o,rest:s,original:n}}composeTransform(e,n,r){const i=`translate(${e}, ${n})`;return r&&r.length?`${i} ${r}`:i}emitGeometryChange(){var e;const n=(e=this.dragItems[0])==null?void 0:e.element;if(!n)return;const r=ln(this.editor.getDocument(),n);this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:n,rect:r})}detachPointerListeners(){window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd),window.removeEventListener("pointercancel",this.handleEnd)}reset(){var e;this.detachPointerListeners(),this.clearGuides(),this.pointerId=void 0,this.startPoint=void 0,this.dragItems=[],this.startTarget=void 0,this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragging=!1,this.startBounds=void 0,this.guideCandidates=void 0,(e=this.completeInteraction)==null||e.call(this),this.completeInteraction=void 0}getSelectionBounds(e){if(!e.length)return;const n=this.editor.getDocument(),r=e.map(i=>ln(n,i));return Ir(r)}collectGuideCandidates(e){const n=this.editor.getDocument(),r=new Set(e),i=Array.from(n.querySelectorAll("[data-element-type]")).filter(a=>!r.has(a)),o=[],s=[];return i.forEach(a=>{const{x:l,y:c,width:h,height:u}=ln(n,a);o.push(l,l+h/2,l+h),s.push(c,c+u/2,c+u)}),{vertical:o,horizontal:s}}getSnappedDelta(e,n){if(!this.startBounds||!this.guideCandidates)return{dx:e,dy:n};const r={x:this.startBounds.x+e,y:this.startBounds.y+n,width:this.startBounds.width,height:this.startBounds.height},i=this.getSnapOffset([r.x,r.x+r.width/2,r.x+r.width],this.guideCandidates.vertical),o=this.getSnapOffset([r.y,r.y+r.height/2,r.y+r.height],this.guideCandidates.horizontal);return{dx:e+((i==null?void 0:i.offset)||0),dy:n+((o==null?void 0:o.offset)||0),snapX:i,snapY:o}}getSnapOffset(e,n,r=5){let i=null;return e.forEach(o=>{n.forEach(s=>{const a=s-o;Math.abs(a)<=r&&(!i||Math.abs(a)<Math.abs(i.offset))&&(i={offset:a,at:s})})}),i||void 0}ensureGuideLine(e){const n=e==="vertical"?this.guideVertical:this.guideHorizontal;if(n)return n;const r=this.interaction.appendTransientElement(wt("line",{stroke:"#FF7A45","stroke-width":1,"stroke-dasharray":"4 4","pointer-events":"none",visibility:"hidden"}));return e==="vertical"?this.guideVertical=r:this.guideHorizontal=r,r}updateGuides(e){const n=this.editor.getDocument(),{width:r,height:i}=n.viewBox.baseVal;if(e.snapX){const o=this.ensureGuideLine("vertical");Yt(o,{x1:e.snapX.at,y1:0,x2:e.snapX.at,y2:i,visibility:"visible"})}else this.guideVertical&&this.guideVertical.setAttribute("visibility","hidden");if(e.snapY){const o=this.ensureGuideLine("horizontal");Yt(o,{x1:0,y1:e.snapY.at,x2:r,y2:e.snapY.at,visibility:"visible"})}else this.guideHorizontal&&this.guideHorizontal.setAttribute("visibility","hidden")}clearGuides(){var e,n;(e=this.guideVertical)==null||e.remove(),(n=this.guideHorizontal)==null||n.remove(),this.guideVertical=void 0,this.guideHorizontal=void 0}}var Wy=(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())});class Vy extends Ln{constructor(){super(...arguments),this.name="hotkey-history",this.handleUndo=e=>Wy(this,null,function*(){e.preventDefault(),yield this.commander.undo()}),this.handleRedo=e=>Wy(this,null,function*(){e.preventDefault(),yield this.commander.redo()})}init(e){super.init(e),this.hotkey=new $R({filter:()=>this.interaction.isActive()}),this.hotkey.bind("mod+z",this.handleUndo),this.hotkey.bind(["mod+shift+z","mod+y"],this.handleRedo)}destroy(){var e;(e=this.hotkey)==null||e.destroy()}}var YR=Object.defineProperty,XR=Object.defineProperties,GR=Object.getOwnPropertyDescriptors,Yy=Object.getOwnPropertySymbols,qR=Object.prototype.hasOwnProperty,UR=Object.prototype.propertyIsEnumerable,Xy=(t,e,n)=>e in t?YR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ZR=(t,e)=>{for(var n in e||(e={}))qR.call(e,n)&&Xy(t,n,e[n]);if(Yy)for(var n of Yy(e))UR.call(e,n)&&Xy(t,n,e[n]);return t},KR=(t,e)=>XR(t,GR(e));class Gy extends Ln{constructor(){super(...arguments),this.name="select-highlight",this.highlightMasks=[],this.handleSelectionChanged=({next:e})=>{this.highlightSelection(e)},this.handleGeometryChanged=({target:e})=>{this.interaction.isSelected(e)&&this.highlightSelection(this.interaction.getSelection())},this.handleHistoryChanged=()=>{this.highlightSelection(this.interaction.getSelection())}}init(e){super.init(e);const{emitter:n}=e;n.on("selection:change",this.handleSelectionChanged),n.on("selection:geometrychange",this.handleGeometryChanged),n.on("history:change",this.handleHistoryChanged),this.highlightSelection(this.interaction.getSelection())}destroy(){this.clearMasks();const{emitter:e}=this;e.off("selection:change",this.handleSelectionChanged),e.off("selection:geometrychange",this.handleGeometryChanged),e.off("history:change",this.handleHistoryChanged)}highlightSelection(e){if(e.length===1&&gn(e[0])){this.clearMasks();return}this.drawElementMasks(e),this.drawCombinedBoundsMask(e)}drawElementMasks(e){let n=0;for(;n<e.length;n++){const{x:r,y:i,width:o,height:s}=ln(this.editor.getDocument(),e[n]),a={x:r,y:i,width:o,height:s,fill:"none",stroke:"#3384F5","stroke-width":1,"pointer-events":"none"},l=this.highlightMasks[n];l?Yt(l,a):this.highlightMasks[n]=this.interaction.appendTransientElement(wt("rect",a))}for(;n<this.highlightMasks.length;n++)this.highlightMasks[n].remove();this.highlightMasks=this.highlightMasks.slice(0,e.length)}drawCombinedBoundsMask(e){var n;if(e.length<2){(n=this.combinedBoundsMask)==null||n.remove(),this.combinedBoundsMask=void 0;return}const r=Ir(e.map(o=>ln(this.editor.getDocument(),o))),i=KR(ZR({},r),{fill:"none",stroke:"#3384F5","stroke-width":2,"pointer-events":"none"});this.combinedBoundsMask?Yt(this.combinedBoundsMask,i):this.combinedBoundsMask=this.interaction.appendTransientElement(wt("rect",i))}clearMasks(){var e;this.highlightMasks.forEach(n=>n.remove()),this.highlightMasks=[],(e=this.combinedBoundsMask)==null||e.remove(),this.combinedBoundsMask=void 0}}const qy=1,QR=-5e3,JR=5e3;class Uy extends Ln{constructor(){super(...arguments),this.name="zoom-wheel",this.wheelListener=e=>{var n;if(!this.interaction.isActive()||!e.ctrlKey&&!e.metaKey)return;e.preventDefault();const r=e.deltaY>0?1.1:.9,o=(n=this.state.getOptions().padding)!=null?n:0,s=Qn(o),l=this.editor.getDocument().getBBox(),c=s.map(b=>u9((b===0?1:b)*r,QR,JR)),[h,u,f,p]=c,g=l.width+p+u,y=l.height+h+f;if(g<=qy||y<=qy)return;const m=new HR({padding:c});this.commander.execute(m)}}init(e){super.init(e),document.addEventListener("wheel",this.wheelListener,{passive:!1})}destroy(){document.removeEventListener("wheel",this.wheelListener)}}class ih{init(e){Object.assign(this,e)}}const dr=({icon:t,onClick:e,activate:n=!1})=>{eH();const r=document.createElement("button");r.type="button",r.classList.add(Hi),n&&r.setAttribute("data-activate","true"),e&&r.addEventListener("click",e);const i=t();return r.appendChild(i),Object.assign(r,{setActivate:(s=>{s?r.setAttribute("data-activate","true"):r.removeAttribute("data-activate")}).bind(r),activate:n})},Hi="infographic-edit-bar-icon-btn",tH="infographic-edit-bar-icon-btn-style";function eH(){nn(tH,`
|
|
150
|
+
.${Hi} {
|
|
146
151
|
padding: 0;
|
|
147
152
|
display: flex;
|
|
148
153
|
align-items: center;
|
|
@@ -157,28 +162,28 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
|
|
|
157
162
|
cursor: pointer;
|
|
158
163
|
transition: color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
|
|
159
164
|
}
|
|
160
|
-
.${
|
|
165
|
+
.${Hi}:hover {
|
|
161
166
|
background-color: #f5f5f5;
|
|
162
167
|
}
|
|
163
|
-
.${
|
|
168
|
+
.${Hi}:active {
|
|
164
169
|
background-color: #d9d9d9;
|
|
165
170
|
}
|
|
166
|
-
.${
|
|
171
|
+
.${Hi}[data-activate="true"] {
|
|
167
172
|
background-color: #d9d9d9;
|
|
168
173
|
}
|
|
169
|
-
`)}const
|
|
170
|
-
.${
|
|
174
|
+
`)}const hn="infographic-color-picker",Zy=`${hn}__swatches`,Gs=`${hn}__swatch`,Ky=`${hn}__controls`,qs=`${hn}__input`,Qy=`${hn}__format`,ur=`${hn}__format-switch`,oh=`${hn}__format-switch-knob`,Us=`${hn}__format-switch-label`,nH="infographic-color-picker-style",rH="#1f1f1f",iH=["#000000","#1f1f1f","#434343","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#ffffff","#1677ff","#2f54eb","#91caff","#13c2c2","#36cfc9","#52c41a","#73d13d","#fadb14","#ffd666","#fa8c16","#fa541c","#f5222d","#ff7875","#eb2f96","#ffadd2","#722ed1","#9254de","rgba(0, 0, 0, 0.65)","rgba(255, 255, 255, 0.85)"];function Jy(t){var e,n,r;if(typeof document=="undefined")throw new Error("ColorPicker can only be used in the browser.");lH();const i=document.createElement("div");i.classList.add(hn);const o=document.createElement("div");o.classList.add(Zy),i.appendChild(o);const s=document.createElement("div");s.classList.add(Ky),i.appendChild(s);const a=document.createElement("input");a.type="text",a.spellcheck=!1,a.classList.add(qs),s.appendChild(a);const l=document.createElement("div");l.classList.add(Qy),s.appendChild(l);const c=document.createElement("button");c.type="button",c.classList.add(ur),c.appendChild(r3("HEXA"));const h=document.createElement("span");h.classList.add(oh),c.appendChild(h),c.appendChild(r3("RGBA")),l.appendChild(c);let u="hexa",f=(n=(e=Di(t.value))!=null?e:Di(rH))!=null?n:{r:31,g:31,b:31,a:1};const p=[];return((r=t.swatches)!=null&&r.length?t.swatches:iH).forEach($=>{const P=Di($);if(!P)return;const O=document.createElement("button");O.type="button",O.classList.add(Gs),O.style.setProperty("--swatch-color",Zs(P,"rgba")),O.dataset.colorKey=e3(P),O.addEventListener("click",()=>{v(P)}),o.appendChild(O),p.push(O)}),c.addEventListener("click",()=>b(u==="hexa"?"rgba":"hexa")),a.addEventListener("change",m),a.addEventListener("keydown",$=>{$.key==="Enter"&&m()}),x(),Object.assign(i,{setValue:$=>{const P=Di($);if(!P){a.setAttribute("data-invalid","true");return}a.removeAttribute("data-invalid"),v(P,!1)},destroy:()=>{i.remove()}});function m(){const $=Di(a.value);if(!$){a.setAttribute("data-invalid","true");return}a.removeAttribute("data-invalid"),v($)}function b($,P){var O;u!==$&&(u=$,x(),(O=t.onChange)==null||O.call(t,Zs(f,u)))}function v($,P=!0){var O;if(sH(f,$)){x();return}f=$,x(),P&&((O=t.onChange)==null||O.call(t,Zs(f,u)))}function x(){a.value=Zs(f,u),w(),_()}function w(){const $=e3(f);p.forEach(P=>{P.dataset.colorKey===$?P.setAttribute("data-active","true"):P.removeAttribute("data-active")})}function _(){u==="rgba"?c.setAttribute("data-format","rgba"):c.setAttribute("data-format","hexa")}}function Di(t){var e;if(!t)return;const n=Je(t);if(!n||typeof n.r!="number")return;const r=n;return{r:sh(r.r),g:sh(r.g),b:sh(r.b),a:n3((e=r.alpha)!=null?e:1)}}function Zs(t,e){return e==="rgba"?oH(t):t3(t)}function t3(t){const e=Ks(t.r),n=Ks(t.g),r=Ks(t.b),i=t.a<1?Ks(Math.round(t.a*255)):"";return`#${e}${n}${r}${i}`}function oH(t){const e=aH(t.a);return`rgba(${t.r}, ${t.g}, ${t.b}, ${e})`}function e3(t){return t3(t).toLowerCase()}function sH(t,e){return t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a}function n3(t){return Number.isNaN(t)?0:Math.min(1,Math.max(0,t))}function sh(t){if(Number.isNaN(t))return 0;const e=t<=1?t*255:t;return Math.round(Math.min(255,Math.max(0,e)))}function Ks(t){return t.toString(16).padStart(2,"0")}function aH(t){const e=Math.round(n3(t)*100)/100;return e===1?"1":e===0?"0":e.toString()}function r3(t){const e=document.createElement("span");return e.textContent=t,e.classList.add(Us),e}function lH(){nn(nH,`
|
|
175
|
+
.${hn} {
|
|
171
176
|
width: 240px;
|
|
172
177
|
padding: 10px;
|
|
173
178
|
box-sizing: border-box;
|
|
174
179
|
}
|
|
175
|
-
.${
|
|
180
|
+
.${Zy} {
|
|
176
181
|
display: grid;
|
|
177
182
|
grid-template-columns: repeat(auto-fit, 26px);
|
|
178
183
|
gap: 6px;
|
|
179
184
|
margin-bottom: 10px;
|
|
180
185
|
}
|
|
181
|
-
.${
|
|
186
|
+
.${Gs} {
|
|
182
187
|
width: 24px;
|
|
183
188
|
height: 24px;
|
|
184
189
|
border-radius: 50%;
|
|
@@ -189,19 +194,19 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
|
|
|
189
194
|
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
190
195
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
191
196
|
}
|
|
192
|
-
.${
|
|
197
|
+
.${Gs}[data-active="true"] {
|
|
193
198
|
box-shadow: 0 0 0 2px #1677ff;
|
|
194
199
|
transform: translateY(-1px);
|
|
195
200
|
}
|
|
196
|
-
.${
|
|
201
|
+
.${Gs}:hover {
|
|
197
202
|
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
|
|
198
203
|
}
|
|
199
|
-
.${
|
|
204
|
+
.${Ky} {
|
|
200
205
|
display: flex;
|
|
201
206
|
align-items: center;
|
|
202
207
|
gap: 6px;
|
|
203
208
|
}
|
|
204
|
-
.${
|
|
209
|
+
.${qs} {
|
|
205
210
|
flex: 1;
|
|
206
211
|
min-width: 0;
|
|
207
212
|
height: 30px;
|
|
@@ -217,19 +222,19 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
|
|
|
217
222
|
outline: none;
|
|
218
223
|
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
|
|
219
224
|
}
|
|
220
|
-
.${
|
|
225
|
+
.${qs}:focus {
|
|
221
226
|
border-color: #1677ff;
|
|
222
227
|
background: #ffffff;
|
|
223
228
|
box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
|
|
224
229
|
}
|
|
225
|
-
.${
|
|
230
|
+
.${qs}[data-invalid="true"] {
|
|
226
231
|
border-color: #ff4d4f;
|
|
227
232
|
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.12);
|
|
228
233
|
}
|
|
229
|
-
.${
|
|
234
|
+
.${Qy} {
|
|
230
235
|
display: inline-flex;
|
|
231
236
|
}
|
|
232
|
-
.${
|
|
237
|
+
.${ur} {
|
|
233
238
|
position: relative;
|
|
234
239
|
display: grid;
|
|
235
240
|
grid-template-columns: 1fr 1fr;
|
|
@@ -244,15 +249,15 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
|
|
|
244
249
|
overflow: hidden;
|
|
245
250
|
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
|
|
246
251
|
}
|
|
247
|
-
.${
|
|
252
|
+
.${ur}:hover {
|
|
248
253
|
background: #ededed;
|
|
249
254
|
}
|
|
250
|
-
.${
|
|
255
|
+
.${ur}:focus-visible {
|
|
251
256
|
outline: none;
|
|
252
257
|
border-color: #1677ff;
|
|
253
258
|
box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
|
|
254
259
|
}
|
|
255
|
-
.${
|
|
260
|
+
.${oh} {
|
|
256
261
|
position: absolute;
|
|
257
262
|
inset: 0;
|
|
258
263
|
width: 50%;
|
|
@@ -261,10 +266,10 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
|
|
|
261
266
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
|
|
262
267
|
transition: transform 0.2s ease;
|
|
263
268
|
}
|
|
264
|
-
.${
|
|
269
|
+
.${ur}[data-format="rgba"] .${oh} {
|
|
265
270
|
transform: translateX(100%);
|
|
266
271
|
}
|
|
267
|
-
.${
|
|
272
|
+
.${Us} {
|
|
268
273
|
position: relative;
|
|
269
274
|
z-index: 1;
|
|
270
275
|
text-align: center;
|
|
@@ -272,19 +277,19 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
|
|
|
272
277
|
color: #434343;
|
|
273
278
|
user-select: none;
|
|
274
279
|
}
|
|
275
|
-
.${
|
|
276
|
-
.${
|
|
280
|
+
.${ur}[data-format="hexa"] .${Us}:first-child,
|
|
281
|
+
.${ur}[data-format="rgba"] .${Us}:last-child {
|
|
277
282
|
color: #ffffff;
|
|
278
283
|
}
|
|
279
|
-
`)}const
|
|
284
|
+
`)}const ue=(t,{viewBox:e="0 0 1024 1024",size:n="1.5em"}={})=>({fill:r="currentColor"}={})=>{const i=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="${e}" width="${n}" height="${n}" fill="${r}">
|
|
280
285
|
${t.trim()}
|
|
281
|
-
</svg>`;return document.createRange().createContextualFragment(i).firstElementChild},
|
|
282
|
-
<path d="M661.333 272.411c17.673 0 32 14.327 32 32V902c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V304.411c0-17.673 14.327-32 32-32z m-32 63.999H394.666V870h234.667V336.41zM896 101.671c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z" />`),alignRight:
|
|
283
|
-
.${
|
|
286
|
+
</svg>`;return document.createRange().createContextualFragment(i).firstElementChild},xn={fontFamily:ue('<path d="M236.992 938.688H145.088L469.312 128h85.376l324.224 810.688h-91.904l-102.4-256H339.392l-102.4 256z m136.512-341.376h276.992L512 251.072l-138.496 346.24z"></path>',{size:"1.2em"}),fontSize:ue('<path d="M479.829333 640H202.837333l-85.333333 213.333333H25.6L298.666667 170.666667h85.333333l273.066667 682.666666h-91.904l-85.333334-213.333333z m-34.133333-85.333333L341.333333 293.76 236.970667 554.666667h208.725333zM896 534.826667V512h85.333333v341.333333h-85.333333v-22.826666a170.666667 170.666667 0 1 1 0-295.68zM810.666667 768a85.333333 85.333333 0 1 0 0-170.666667 85.333333 85.333333 0 0 0 0 170.666667z"></path>',{size:"1.2em"}),align:ue('<path d="M832 96c53.02 0 96 42.98 96 96v640c0 53.02-42.98 96-96 96H192c-53.02 0-96-42.98-96-96V192c0-53.02 42.98-96 96-96z m0 64H192c-17.673 0-32 14.327-32 32v640c0 17.673 14.327 32 32 32h640c17.673 0 32-14.327 32-32V192c0-17.673-14.327-32-32-32zM725.333 672c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z"></path>'),alignTop:ue('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM512.45 91.003L512 91a32.632 32.632 0 0 1 1.653 0.042l0.134 0.008c3.447 0.189 6.75 0.924 9.82 2.12l0.198 0.078a16.118 16.118 0 0 1 0.485 0.197l0.11 0.046a31.82 31.82 0 0 1 8.546 5.315l0.12 0.105a31.066 31.066 0 0 1 1.189 1.095l0.08 0.078 0.235 0.23 0.062 0.063 128 128.055c12.494 12.5 12.49 32.761-0.01 45.255-12.374 12.37-32.356 12.489-44.877 0.362l-0.377-0.372L544 200.28v413.598c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.471l-0.004-0.53V200.278l-73.368 73.4c-12.369 12.375-32.35 12.503-44.877 0.381l-0.378-0.37c-12.374-12.37-12.502-32.352-0.38-44.878l0.37-0.378 128-128.055 0.181-0.178a31.875 31.875 0 0 1 9.5-6.47l0.105-0.046c0.116-0.051 0.233-0.101 0.35-0.15 0.054-0.024 0.11-0.047 0.165-0.07a28.198 28.198 0 0 1 0.536-0.219l0.157-0.061a31.816 31.816 0 0 1 9.356-2.103l0.113-0.007c0.147-0.01 0.294-0.02 0.442-0.027l0.028-0.001 0.39-0.019 0.144-0.005a23.911 23.911 0 0 1 0.712-0.018c0.3-0.004 0.602-0.004 0.904 0z"></path>'),alignRight:ue('<path d="M896 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H298.667c-17.673 0-32-14.327-32-32 0-17.497 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignBottom:ue('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM490.505 637.584l-0.127-0.117a32.174 32.174 0 0 1-0.633-0.596l-0.098-0.096-0.217-0.213-0.062-0.063-128-128.055c-12.494-12.499-12.49-32.76 0.01-45.254 12.374-12.37 32.356-12.489 44.877-0.362l0.377 0.371L480 536.598V123c0-17.673 14.327-32 32-32 17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v413.597l73.368-73.398c12.494-12.5 32.755-12.503 45.255-0.01 12.374 12.37 12.502 32.352 0.38 44.878l-0.37 0.377-128 128.055c-0.121 0.12-0.238 0.236-0.356 0.35l0.355-0.35a31.922 31.922 0 0 1-9.68 6.649l-0.09 0.039a29.917 29.917 0 0 1-1.241 0.514 31.816 31.816 0 0 1-9.338 2.095l-0.113 0.008c-0.147 0.01-0.294 0.019-0.442 0.027h-0.028c-0.13 0.008-0.26 0.014-0.39 0.02l-0.144 0.005a23.92 23.92 0 0 1-0.796 0.019 33.927 33.927 0 0 1-0.37 0.002h-0.13l-0.236-0.002 0.366 0.002a32.633 32.633 0 0 1-1.153-0.02l-0.129-0.006a31.108 31.108 0 0 1-0.876-0.046l-0.105-0.008a31.811 31.811 0 0 1-8.926-1.931l-0.089-0.034a21.022 21.022 0 0 1-0.362-0.138l-0.098-0.04a22.132 22.132 0 0 1-0.746-0.304l-0.219-0.093-0.209-0.092a31.812 31.812 0 0 1-8.034-5.094l-0.12-0.105-0.173-0.153-0.151-0.136-0.105-0.093z"></path>'),alignLeft:ue('<path d="M725.333 800.339c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 587.113c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM725.333 373.887c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 160.661c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignCenter:ue('<path d="M768 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H256c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM768 373.887c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H256c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignMiddle:ue('<path d="M534.246 617.448l0.377 0.371 128 127.952c12.5 12.494 12.503 32.755 0.009 45.255-12.37 12.374-32.352 12.501-44.878 0.38l-0.377-0.372-73.38-73.352V939c0 17.673-14.326 32-32 32-17.496 0-31.712-14.042-31.995-31.47l-0.004-0.53-0.001-221.314-73.374 73.348c-12.374 12.37-32.356 12.49-44.878 0.363l-0.377-0.371c-12.37-12.375-12.49-32.356-0.362-44.878l0.37-0.377 128-127.952c12.372-12.366 32.347-12.49 44.87-0.37zM896 480.508c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM511.998 54c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53-0.001 221.314 73.38-73.349c12.499-12.494 32.76-12.49 45.255 0.009 12.37 12.374 12.49 32.356 0.362 44.878l-0.37 0.377-128 127.951c-12.372 12.366-32.347 12.49-44.87 0.371l-0.377-0.37-128-127.952c-12.5-12.495-12.503-32.756-0.009-45.255 12.37-12.374 32.352-12.502 44.878-0.38l0.377 0.371 73.374 73.346V86c0-17.673 14.328-32 32-32z"></path>')},wn={align:ue('<path d="M555.188 715.059c17.673 0 32 14.327 32 32V875c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V747.059c0-17.673 14.327-32 32-32z m-32.001 63.999H203V843h320.187v-63.942zM854 416.529c17.673 0 32 14.327 32 32v127.942c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V448.529c0-17.673 14.327-32 32-32z m-32 64H203v63.941h619v-63.941zM683.25 118c17.673 0 32 14.327 32 32v127.941c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V150c0-17.673 14.327-32 32-32z m-32 64H203v63.941h448.25V182z"></path>'),alignTop:ue(`
|
|
287
|
+
<path d="M661.333 272.411c17.673 0 32 14.327 32 32V902c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V304.411c0-17.673 14.327-32 32-32z m-32 63.999H394.666V870h234.667V336.41zM896 101.671c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z" />`),alignRight:ue('<path d="M891.329 96c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32z m-170.74 234.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H123c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32 63.999H155v234.667h533.589V394.666z" />'),alignBottom:ue('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768zM661.333 91c17.673 0 32 14.327 32 32v597.589c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V123c0-17.673 14.327-32 32-32z m-32 64H394.666v533.589h234.667V155z" />'),alignLeft:ue('<path d="M133.671 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32zM902 330.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H304.411c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32.001 63.999H336.41v234.667h533.589V394.666z" />'),alignH:ue('<path d="M512.5 96c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v202.666H875c17.496 0 31.713 14.042 31.996 31.471l0.004 0.53v298.666c0 17.673-14.327 32-32 32H544.5V896c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.47l-0.004-0.53V693.333H150c-17.496 0-31.713-14.041-31.996-31.47l-0.004-0.53V362.667c0-17.673 14.327-32 32-32l330.5-0.001V128c0-17.673 14.327-32 32-32z m-32 298.666H182v234.667h298.5V394.666z m362.5 0H544.5v234.667H843V394.666z" />'),alignV:ue('<path d="M661.333 118c17.673 0 32 14.327 32 32v330.5H896c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H693.333V875c0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H362.667c-17.673 0-32-14.327-32-32l-0.001-330.5H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h202.666V150c0-17.496 14.042-31.713 31.471-31.996l0.53-0.004z m-32.001 426.5H394.665l0.001 298.5h234.667l-0.001-298.5z m0.001-362.5H394.666l-0.001 298.5h234.667l0.001-298.5z" />'),distributeH:ue('<path d="M853.333 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32z m-682.666 0c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32zM640 181.333c17.673 0 32 14.327 32 32v597.334c0 17.673-14.327 32-32 32H384c-17.673 0-32-14.327-32-32V213.333c0-17.673 14.327-32 32-32z m-32 64H416v533.333h192V245.333z" />'),distributeV:ue('<path d="M896 821.333c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM810.667 352c17.673 0 32 14.327 32 32v256c0 17.673-14.327 32-32 32H213.333c-17.673 0-32-14.327-32-32V384c0-17.673 14.327-32 32-32z m-32 64H245.334v192h533.333V416zM896 138.667c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z" />')},Qs="infographic-edit-popover",oe=`${Qs}__content`,Ge=`${Qs}__arrow`,cH="infographic-edit-popover-style";function Dr(t){var e,n,r,i,o,s,a,l;hH();const c=(e=t.placement)!=null?e:"top",h=(n=t.closeOnOutsideClick)!=null?n:!0,u=Array.isArray(t.trigger)?t.trigger:[t.trigger||"hover"],f=(r=t.mouseEnterDelay)!=null?r:50,p=(i=t.mouseLeaveDelay)!=null?i:150,g=(o=t.offset)!=null?o:8,y=8,m=7,b=typeof t.padding=="number"?`${t.padding}px`:(s=t.padding)!=null?s:"4px",v=document.createElement("div");v.classList.add(Qs);const x=(a=t.target)!=null?a:document.createElement("div");v.appendChild(x);const w=()=>{const V=typeof t.getContainer=="function"?t.getContainer():t.getContainer;return V!=null?V:document.body},_=document.createElement("div");_.classList.add(oe),ti(_,ha),_.dataset.placement=Array.isArray(c)?c[0]:c,_.setAttribute("data-open",String(!!t.open)),_.style.setProperty("--popover-gap",`${g}px`),_.style.setProperty("--popover-arrow-size",`${y}px`),_.style.setProperty("--popover-arrow-inner-size",`${m}px`);const $=w(),P=$!==v,O=document.createElement("div");O.classList.add(Ge),_.appendChild(O);const T=document.createElement("div");T.classList.add(`${oe}-body`),T.style.padding=b,_.appendChild(T),$.appendChild(_);let I=!!t.open,S=Array.isArray(c)?c:[c],H=(l=S[0])!=null?l:"top";const C=()=>{var V;const G=x.getBoundingClientRect(),Z=_.getBoundingClientRect(),K=window.scrollX||document.documentElement.scrollLeft,nt=window.scrollY||document.documentElement.scrollTop,at=document.documentElement.clientWidth,pt=document.documentElement.clientHeight;let ft=0,rt=0;const tt=gt=>{switch(gt){case"top":return{left:K+G.left+G.width/2-Z.width/2,top:nt+G.top-Z.height-g};case"bottom":return{left:K+G.left+G.width/2-Z.width/2,top:nt+G.bottom+g};case"left":return{left:K+G.left-Z.width-g,top:nt+G.top+G.height/2-Z.height/2};case"right":default:return{left:K+G.right+g,top:nt+G.top+G.height/2-Z.height/2}}},et=(gt,dt)=>gt>=K&&dt>=nt&>+Z.width<=K+at&&dt+Z.height<=nt+pt;let st=(V=S[0])!=null?V:"top",vt=tt(st);for(const gt of S){const dt=tt(gt);if(vt=dt,et(dt.left,dt.top)){st=gt;break}}H=st,_.dataset.placement=H,P&&({left:ft,top:rt}=vt,_.style.left=`${ft}px`,_.style.top=`${rt}px`,_.style.right="auto",_.style.bottom="auto",_.style.transform="translate(0, 0)")};P&&(_.style.position="absolute",window.addEventListener("resize",C),window.addEventListener("scroll",C,!0));const A=V=>{let G=V;typeof G=="function"&&(G=G()),T.innerHTML="",G instanceof HTMLElement?T.appendChild(G):T.textContent=G!=null?G:"",C()},B=V=>{var G;S=Array.isArray(V)?V:[V],H=(G=S[0])!=null?G:"top",C()},k=V=>{I=V,_.setAttribute("data-open",String(I)),I&&C(),I&&h?document.addEventListener("click",z,!0):document.removeEventListener("click",z,!0)},D=()=>k(!I),z=V=>{const G=V.target;!v.contains(G)&&(!P||!_.contains(G))&&k(!1)};let N,j;const X=u.includes("hover"),L=u.includes("click"),M=()=>{N!==void 0&&(clearTimeout(N),N=void 0),j!==void 0&&(clearTimeout(j),j=void 0)},R=()=>{X&&(M(),N=window.setTimeout(()=>k(!0),f))},W=()=>{X&&(M(),j=window.setTimeout(()=>k(!1),p))};return L&&x.addEventListener("click",D),X&&(v.addEventListener("mouseenter",R),v.addEventListener("mouseleave",W),_.addEventListener("mouseenter",R),_.addEventListener("mouseleave",W)),A(t.content),B(c),k(I),Object.assign(v,{setOpen:k,toggle:D,setContent:A,setPlacement:B,destroy:()=>{document.removeEventListener("click",z,!0),L&&x.removeEventListener("click",D),X&&(v.removeEventListener("mouseenter",R),v.removeEventListener("mouseleave",W),_.removeEventListener("mouseenter",R),_.removeEventListener("mouseleave",W),M()),P&&(window.removeEventListener("resize",C),window.removeEventListener("scroll",C,!0),_.remove()),v.remove()}})}function hH(){nn(cH,`
|
|
288
|
+
.${Qs} {
|
|
284
289
|
position: relative;
|
|
285
290
|
display: inline-flex;
|
|
286
291
|
}
|
|
287
|
-
.${
|
|
292
|
+
.${oe} {
|
|
288
293
|
position: absolute;
|
|
289
294
|
z-index: 1200;
|
|
290
295
|
padding: 0;
|
|
@@ -300,34 +305,34 @@ ${t.trim()}
|
|
|
300
305
|
pointer-events: none;
|
|
301
306
|
transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
|
|
302
307
|
}
|
|
303
|
-
.${
|
|
308
|
+
.${oe}-body {
|
|
304
309
|
padding: 4px;
|
|
305
310
|
color: #000000d9;
|
|
306
311
|
font-size: 12px;
|
|
307
312
|
line-height: 1.5;
|
|
308
313
|
}
|
|
309
|
-
.${
|
|
314
|
+
.${oe}[data-open="true"] {
|
|
310
315
|
opacity: 1;
|
|
311
316
|
visibility: visible;
|
|
312
317
|
pointer-events: auto;
|
|
313
318
|
}
|
|
314
|
-
.${
|
|
319
|
+
.${Ge} {
|
|
315
320
|
position: absolute;
|
|
316
321
|
width: 0;
|
|
317
322
|
height: 0;
|
|
318
323
|
}
|
|
319
|
-
.${
|
|
324
|
+
.${Ge}::after {
|
|
320
325
|
content: '';
|
|
321
326
|
position: absolute;
|
|
322
327
|
width: 0;
|
|
323
328
|
height: 0;
|
|
324
329
|
}
|
|
325
|
-
.${
|
|
330
|
+
.${oe}[data-placement="top"] {
|
|
326
331
|
left: 50%;
|
|
327
332
|
bottom: calc(100% + var(--popover-gap));
|
|
328
333
|
transform: translate(-50%, calc(-1 * var(--popover-gap) / 2));
|
|
329
334
|
}
|
|
330
|
-
.${
|
|
335
|
+
.${oe}[data-placement="top"] .${Ge} {
|
|
331
336
|
left: 50%;
|
|
332
337
|
bottom: calc(-1 * var(--popover-arrow-size));
|
|
333
338
|
transform: translateX(-50%);
|
|
@@ -335,7 +340,7 @@ ${t.trim()}
|
|
|
335
340
|
border-right: var(--popover-arrow-size) solid transparent;
|
|
336
341
|
border-top: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);
|
|
337
342
|
}
|
|
338
|
-
.${
|
|
343
|
+
.${oe}[data-placement="top"] .${Ge}::after {
|
|
339
344
|
left: 50%;
|
|
340
345
|
bottom: 1px;
|
|
341
346
|
transform: translateX(-50%);
|
|
@@ -343,15 +348,15 @@ ${t.trim()}
|
|
|
343
348
|
border-right: var(--popover-arrow-inner-size) solid transparent;
|
|
344
349
|
border-top: var(--popover-arrow-inner-size) solid #fff;
|
|
345
350
|
}
|
|
346
|
-
.${
|
|
351
|
+
.${oe}[data-placement="top"][data-open="true"] {
|
|
347
352
|
transform: translate(-50%, 0);
|
|
348
353
|
}
|
|
349
|
-
.${
|
|
354
|
+
.${oe}[data-placement="bottom"] {
|
|
350
355
|
left: 50%;
|
|
351
356
|
top: calc(100% + var(--popover-gap));
|
|
352
357
|
transform: translate(-50%, calc(var(--popover-gap) / 2));
|
|
353
358
|
}
|
|
354
|
-
.${
|
|
359
|
+
.${oe}[data-placement="bottom"] .${Ge} {
|
|
355
360
|
left: 50%;
|
|
356
361
|
top: calc(-1 * var(--popover-arrow-size) + 2px);
|
|
357
362
|
transform: translateX(-50%);
|
|
@@ -359,7 +364,7 @@ ${t.trim()}
|
|
|
359
364
|
border-right: var(--popover-arrow-size) solid transparent;
|
|
360
365
|
border-bottom: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);
|
|
361
366
|
}
|
|
362
|
-
.${
|
|
367
|
+
.${oe}[data-placement="bottom"] .${Ge}::after {
|
|
363
368
|
left: 50%;
|
|
364
369
|
top: 1px;
|
|
365
370
|
transform: translateX(-50%);
|
|
@@ -367,15 +372,15 @@ ${t.trim()}
|
|
|
367
372
|
border-right: var(--popover-arrow-inner-size) solid transparent;
|
|
368
373
|
border-bottom: var(--popover-arrow-inner-size) solid #fff;
|
|
369
374
|
}
|
|
370
|
-
.${
|
|
375
|
+
.${oe}[data-placement="bottom"][data-open="true"] {
|
|
371
376
|
transform: translate(-50%, 0);
|
|
372
377
|
}
|
|
373
|
-
.${
|
|
378
|
+
.${oe}[data-placement="left"] {
|
|
374
379
|
right: calc(100% + var(--popover-gap));
|
|
375
380
|
top: 50%;
|
|
376
381
|
transform: translate(calc(-1 * var(--popover-gap) / 2), -50%);
|
|
377
382
|
}
|
|
378
|
-
.${
|
|
383
|
+
.${oe}[data-placement="left"] .${Ge} {
|
|
379
384
|
right: calc(-1 * var(--popover-arrow-size) + 1px);
|
|
380
385
|
top: 50%;
|
|
381
386
|
transform: translateY(-50%);
|
|
@@ -384,7 +389,7 @@ ${t.trim()}
|
|
|
384
389
|
border-left: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);
|
|
385
390
|
border-right: 0;
|
|
386
391
|
}
|
|
387
|
-
.${
|
|
392
|
+
.${oe}[data-placement="left"] .${Ge}::after {
|
|
388
393
|
right: 1px;
|
|
389
394
|
top: 50%;
|
|
390
395
|
transform: translateY(-50%);
|
|
@@ -393,15 +398,15 @@ ${t.trim()}
|
|
|
393
398
|
border-left: var(--popover-arrow-inner-size) solid #fff;
|
|
394
399
|
border-right: 0;
|
|
395
400
|
}
|
|
396
|
-
.${
|
|
401
|
+
.${oe}[data-placement="left"][data-open="true"] {
|
|
397
402
|
transform: translate(0, -50%);
|
|
398
403
|
}
|
|
399
|
-
.${
|
|
404
|
+
.${oe}[data-placement="right"] {
|
|
400
405
|
left: calc(100% + var(--popover-gap));
|
|
401
406
|
top: 50%;
|
|
402
407
|
transform: translate(calc(var(--popover-gap) / 2), -50%);
|
|
403
408
|
}
|
|
404
|
-
.${
|
|
409
|
+
.${oe}[data-placement="right"] .${Ge} {
|
|
405
410
|
left: calc(-1 * var(--popover-arrow-size) + 1px);
|
|
406
411
|
top: 50%;
|
|
407
412
|
transform: translateY(-50%);
|
|
@@ -410,7 +415,7 @@ ${t.trim()}
|
|
|
410
415
|
border-right: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);
|
|
411
416
|
border-left: 0;
|
|
412
417
|
}
|
|
413
|
-
.${
|
|
418
|
+
.${oe}[data-placement="right"] .${Ge}::after {
|
|
414
419
|
left: 1px;
|
|
415
420
|
top: 50%;
|
|
416
421
|
transform: translateY(-50%);
|
|
@@ -418,28 +423,28 @@ ${t.trim()}
|
|
|
418
423
|
border-bottom: var(--popover-arrow-inner-size) solid transparent;
|
|
419
424
|
border-right: var(--popover-arrow-inner-size) solid #fff;
|
|
420
425
|
}
|
|
421
|
-
.${
|
|
426
|
+
.${oe}[data-placement="right"][data-open="true"] {
|
|
422
427
|
transform: translate(0, -50%);
|
|
423
428
|
}
|
|
424
|
-
`)}const
|
|
425
|
-
.${
|
|
429
|
+
`)}const ah="infographic-align-grid",i3=`${ah}--compact`,dH="infographic-align-grid-style",uH=`
|
|
430
|
+
.${ah} {
|
|
426
431
|
display: grid;
|
|
427
432
|
grid-template-columns: repeat(4, 32px);
|
|
428
433
|
grid-auto-rows: 32px;
|
|
429
434
|
gap: 2px;
|
|
430
435
|
}
|
|
431
|
-
.${
|
|
436
|
+
.${i3} {
|
|
432
437
|
grid-template-columns: repeat(3, 32px);
|
|
433
438
|
}
|
|
434
|
-
`,
|
|
435
|
-
.${
|
|
439
|
+
`,o3=[{icon:wn.alignLeft,action:"LEFT"},{icon:wn.alignH,action:"H_CENTER"},{icon:wn.alignRight,action:"RIGHT"},{icon:wn.distributeH,action:"H_DISTRIBUTE"},{icon:wn.alignTop,action:"TOP"},{icon:wn.alignV,action:"V_CENTER"},{icon:wn.alignBottom,action:"BOTTOM"},{icon:wn.distributeV,action:"V_DISTRIBUTE"}],fH=(t,e,n,r)=>{var i;nn(dH,uH);const o=(i=r==null?void 0:r.enableDistribution)!=null?i:!0,s=pH(a=>gH(t,a,n),o);return Dr({target:dr({icon:wn.align}),content:s,placement:"top",offset:12})};function pH(t,e){const n=document.createElement("div");return n.classList.add(ah),e||n.classList.add(i3),(e?o3:o3.filter(({action:i})=>i!=="H_DISTRIBUTE"&&i!=="V_DISTRIBUTE")).forEach(({icon:i,action:o})=>{const s=dr({icon:i,onClick:()=>t(o)});n.appendChild(s)}),n}function gH(t,e,n){if(!t.length)return;const r=t[0].ownerSVGElement;if(!r)return;const i=t.map(h=>vH(h,r)).filter(Boolean);if(!i.length)return;const o=i.filter(h=>h.movable);if(!o.length)return;const s=i.filter(h=>!h.movable),a=s.length?s:i,l=Ir(a.map(h=>h.bounds)),c=[];switch(e){case"LEFT":{const h=l.x;o.forEach(u=>{const f=h-u.bounds.x;Rn(c,u,f,0)});break}case"H_CENTER":{const h=l.x+l.width/2;o.forEach(u=>{const f=h-(u.bounds.x+u.bounds.width/2);Rn(c,u,f,0)});break}case"RIGHT":{const h=l.x+l.width;o.forEach(u=>{const f=h-(u.bounds.x+u.bounds.width);Rn(c,u,f,0)});break}case"TOP":{const h=l.y;o.forEach(u=>{const f=h-u.bounds.y;Rn(c,u,0,f)});break}case"V_CENTER":{const h=l.y+l.height/2;o.forEach(u=>{const f=h-(u.bounds.y+u.bounds.height/2);Rn(c,u,0,f)});break}case"BOTTOM":{const h=l.y+l.height;o.forEach(u=>{const f=h-(u.bounds.y+u.bounds.height);Rn(c,u,0,f)});break}case"H_DISTRIBUTE":{mH(i,c);break}case"V_DISTRIBUTE":{yH(i,c);break}}c.length&&n.executeBatch(c)}function mH(t,e){if(t.length<=2)return;const n=[...t].sort((i,o)=>i.bounds.x-o.bounds.x||i.bounds.y-o.bounds.y),r=s3(n);for(let i=0;i<r.length-1;i++){const o=r[i],s=r[i+1],a=n[o],l=n[s],c=n.slice(o+1,s);if(!c.length)continue;const h=l.bounds.x-(a.bounds.x+a.bounds.width),u=c.reduce((g,y)=>g+y.bounds.width,0),f=(h-u)/(c.length+1);let p=a.bounds.x+a.bounds.width+f;c.forEach(g=>{const y=p-g.bounds.x;Rn(e,g,y,0),p+=g.bounds.width+f})}}function yH(t,e){if(t.length<=2)return;const n=[...t].sort((i,o)=>i.bounds.y-o.bounds.y||i.bounds.x-o.bounds.x),r=s3(n);for(let i=0;i<r.length-1;i++){const o=r[i],s=r[i+1],a=n[o],l=n[s],c=n.slice(o+1,s);if(!c.length)continue;const h=l.bounds.y-(a.bounds.y+a.bounds.height),u=c.reduce((g,y)=>g+y.bounds.height,0),f=(h-u)/(c.length+1);let p=a.bounds.y+a.bounds.height+f;c.forEach(g=>{const y=p-g.bounds.y;Rn(e,g,0,y),p+=g.bounds.height+f})}}function s3(t){const e=new Set;return e.add(0),e.add(t.length-1),t.forEach((n,r)=>{n.movable||e.add(r)}),Array.from(e).sort((n,r)=>n-r)}function Rn(t,e,n,r){const i=bH(e,n,r);i&&t.push(i)}function vH(t,e){const n=ln(e,t),r=!In(t),i=wH(t);if(i)return{element:t,bounds:n,mode:"transform",startX:i.x,startY:i.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:i.rest,originalTransform:i.original,movable:r};const{x:o,y:s,hasX:a,hasY:l,hasDataX:c,hasDataY:h}=xH(t,n);return{element:t,bounds:n,mode:"attr",startX:o,startY:s,hasX:a,hasY:l,hasDataX:c,hasDataY:h,movable:r}}function bH(t,e,n){if(!t.movable||Math.abs(e)<1e-6&&Math.abs(n)<1e-6)return null;if(t.mode==="attr"){const o=t.startX+e,s=t.startY+n,a={x:o,y:s},l={};return l.x=t.hasX?t.startX:null,l.y=t.hasY?t.startY:null,t.hasDataX&&(a["data-x"]=o,l["data-x"]=t.startX),t.hasDataY&&(a["data-y"]=s,l["data-y"]=t.startY),new cn(t.element,{attributes:a},{attributes:l})}const r=_H(t.startX+e,t.startY+n,t.restTransform),i=t.originalTransform!==void 0?t.originalTransform:null;return new cn(t.element,{attributes:{transform:r}},{attributes:{transform:i}})}function xH(t,e){const n=ke(t,["x","y","data-x","data-y"],!1),r=n.x!==null&&n.x!==void 0,i=n.y!==null&&n.y!==void 0,o=n["data-x"]!==null&&n["data-x"]!==void 0,s=n["data-y"]!==null&&n["data-y"]!==void 0,a=(g,y)=>{const m=g!=null?Number(g):NaN;return Number.isFinite(m)?m:y},l=a(n.x,NaN),c=a(n.y,NaN),h=a(n["data-x"],NaN),u=a(n["data-y"],NaN),f=Number.isFinite(l)?l:Number.isFinite(h)?h:e.x,p=Number.isFinite(c)?c:Number.isFinite(u)?u:e.y;return{x:f,y:p,hasX:r,hasY:i,hasDataX:o,hasDataY:s}}function wH(t){var e;const n=t.getAttribute("transform");if(n===null)return null;const r=n.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!r)return{x:0,y:0,rest:{before:n.trim(),after:""},original:n};const i=Number(r[1])||0,o=r[2]!==void 0&&Number(r[2])||0,s=(e=r.index)!=null?e:0,a=n.slice(0,s).trim(),l=n.slice(s+r[0].length).trim();return{x:i,y:o,rest:{before:a,after:l},original:n}}function _H(t,e,n){const r=`translate(${t}, ${e})`;return[n==null?void 0:n.before,r,n==null?void 0:n.after].filter(o=>o&&o.length).join(" ")}var $H=Object.defineProperty,a3=Object.getOwnPropertySymbols,PH=Object.prototype.hasOwnProperty,OH=Object.prototype.propertyIsEnumerable,l3=(t,e,n)=>e in t?$H(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,CH=(t,e)=>{for(var n in e||(e={}))PH.call(e,n)&&l3(t,n,e[n]);if(a3)for(var n of a3(e))OH.call(e,n)&&l3(t,n,e[n]);return t};const c3="infographic-font-align-grid",MH="infographic-font-align-grid-style",SH=[{icon:xn.alignLeft,align:"LEFT"},{icon:xn.alignCenter,align:"CENTER"},{icon:xn.alignRight,align:"RIGHT"}],EH=[{icon:xn.alignTop,align:"TOP"},{icon:xn.alignMiddle,align:"MIDDLE"},{icon:xn.alignBottom,align:"BOTTOM"}],IH=`
|
|
440
|
+
.${c3} {
|
|
436
441
|
display: grid;
|
|
437
442
|
grid-template-columns: repeat(3, 32px);
|
|
438
443
|
grid-auto-rows: 32px;
|
|
439
444
|
gap: 2px;
|
|
440
445
|
}
|
|
441
|
-
`,
|
|
442
|
-
.${
|
|
446
|
+
`,h3=(t,e,n)=>{nn(MH,IH);const r={horizontal:e["data-horizontal-align"],vertical:e["data-vertical-align"]},i=dr({icon:xn.align}),o=TH(r,s=>{const a={};s.horizontal&&(a["data-horizontal-align"]=s.horizontal),s.vertical&&(a["data-vertical-align"]=s.vertical),Object.keys(a).length&&n.executeBatch(t.map(l=>new cn(l,{attributes:a})))});return Dr({target:i,content:o,placement:"top",offset:12})};function TH(t,e){const n=document.createElement("div");n.classList.add(c3);const r={},i=()=>{Object.entries(r).forEach(([s,a])=>{const l=s===t.horizontal||s===t.vertical;a.setActivate(l)})},o=(s,a)=>{s.forEach(({icon:l,align:c})=>{const h=dr({icon:l,onClick:()=>{t[a]!==c&&(Object.assign(t,{[a]:c}),i(),e(CH({},t)))},activate:c===t[a]});r[c]=h,n.appendChild(h)})};return o(SH,"horizontal"),o(EH,"vertical"),n}const Js="infographic-font-color-btn",AH="infographic-font-color-style",lh="#1f1f1f",d3=(t,e,n)=>{zH();const r=kH(e.fill),i=e.fill===void 0&&t.length>1,o=document.createElement("button");o.type="button",o.classList.add(Js),u3(o,r!=null?r:lh,i);const s=Jy({value:r!=null?r:lh,onChange:a=>{u3(o,a,!1),n.executeBatch(t.map(l=>new cn(l,{attributes:{fill:a}})))}});return Dr({target:o,content:s,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function kH(t){if(t)return Bn(t)?t:void 0}function u3(t,e,n){t.style.setProperty("--infographic-font-color",e),n?t.setAttribute("data-mixed","true"):t.removeAttribute("data-mixed")}function zH(){nn(AH,`
|
|
447
|
+
.${Js} {
|
|
443
448
|
position: relative;
|
|
444
449
|
width: 32px;
|
|
445
450
|
height: 32px;
|
|
@@ -449,15 +454,15 @@ ${t.trim()}
|
|
|
449
454
|
cursor: pointer;
|
|
450
455
|
transition: box-shadow 0.2s ease, border-color 0.2s ease;
|
|
451
456
|
}
|
|
452
|
-
.${
|
|
457
|
+
.${Js}::after {
|
|
453
458
|
content: '';
|
|
454
459
|
position: absolute;
|
|
455
460
|
inset: 6px;
|
|
456
461
|
border-radius: 50%;
|
|
457
|
-
background: var(--infographic-font-color, ${
|
|
462
|
+
background: var(--infographic-font-color, ${lh});
|
|
458
463
|
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
459
464
|
}
|
|
460
|
-
.${
|
|
465
|
+
.${Js}[data-mixed="true"]::after {
|
|
461
466
|
background: repeating-linear-gradient(
|
|
462
467
|
45deg,
|
|
463
468
|
#d9d9d9 0,
|
|
@@ -466,8 +471,8 @@ ${t.trim()}
|
|
|
466
471
|
#f5f5f5 12px
|
|
467
472
|
);
|
|
468
473
|
}
|
|
469
|
-
`)}const
|
|
470
|
-
.${
|
|
474
|
+
`)}const ch="infographic-font-family-list",ta=`${ch}__option`,LH="infographic-font-family-list-style",RH="默认",f3=(t,e,n)=>{DH();const r=ml(),i=p3(e["font-family"]),o=r.map(h=>({label:h.name||h.fontFamily,value:h.fontFamily}));o.some(h=>p3(h.value)===i)||o.unshift({label:RH,value:i});let s=i;const a=HH(o,s,h=>{s!==h&&(s=h,n.executeBatch(t.map(u=>new cn(u,{attributes:{"font-family":Gn(h)}}))))}),l=dr({icon:xn.fontFamily});return Dr({target:l,content:a,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function HH(t,e,n){const r=document.createElement("div");r.classList.add(ch);const i={},o=s=>{Object.entries(i).forEach(([a,l])=>{a===s?l.setAttribute("data-activate","true"):l.removeAttribute("data-activate")})};return t.forEach(({label:s,value:a})=>{const l=document.createElement("button");l.type="button",l.classList.add(ta),l.textContent=s,l.style.fontFamily=a,a===e&&l.setAttribute("data-activate","true"),l.addEventListener("click",()=>{e!==a&&(e=a,o(e),n(a))}),i[a]=l,r.appendChild(l)}),r}function p3(t){return t?Array.isArray(t)?$r(t.join(", ")):$r(String(t)):""}function DH(){nn(LH,`
|
|
475
|
+
.${ch} {
|
|
471
476
|
display: flex;
|
|
472
477
|
flex-direction: column;
|
|
473
478
|
gap: 2px;
|
|
@@ -476,7 +481,7 @@ ${t.trim()}
|
|
|
476
481
|
max-height: 220px;
|
|
477
482
|
overflow-y: auto;
|
|
478
483
|
}
|
|
479
|
-
.${
|
|
484
|
+
.${ta} {
|
|
480
485
|
width: 100%;
|
|
481
486
|
text-align: left;
|
|
482
487
|
padding: 6px 10px;
|
|
@@ -488,22 +493,22 @@ ${t.trim()}
|
|
|
488
493
|
color: #000000d9;
|
|
489
494
|
transition: background-color 0.2s ease, color 0.2s ease;
|
|
490
495
|
}
|
|
491
|
-
.${
|
|
496
|
+
.${ta}:hover {
|
|
492
497
|
background: #f5f5f5;
|
|
493
498
|
}
|
|
494
|
-
.${
|
|
499
|
+
.${ta}[data-activate="true"] {
|
|
495
500
|
background: #e6f4ff;
|
|
496
501
|
color: #0958d9;
|
|
497
502
|
}
|
|
498
|
-
`)}const
|
|
499
|
-
.${
|
|
503
|
+
`)}const g3="infographic-font-size-grid",NH="infographic-font-size-grid-style",jH=[{label:"XS",value:12},{label:"S",value:14},{label:"M",value:16},{label:"L",value:20},{label:"XL",value:24}],FH=`
|
|
504
|
+
.${g3} {
|
|
500
505
|
display: grid;
|
|
501
506
|
grid-template-columns: repeat(5, 32px);
|
|
502
507
|
grid-auto-rows: 32px;
|
|
503
508
|
gap: 2px;
|
|
504
509
|
}
|
|
505
|
-
`,
|
|
506
|
-
.${
|
|
510
|
+
`,m3=(t,e,n)=>{nn(NH,FH);const r=dr({icon:xn.fontSize}),i=VH(e["font-size"]),o=BH(i,s=>{n.executeBatch(t.map(a=>new cn(a,{attributes:{"font-size":s}})))});return Dr({target:r,content:o,placement:"top",offset:12})};function BH(t,e){const n=document.createElement("div");n.classList.add(g3);let r=t;const i={},o=()=>{Object.entries(i).forEach(([s,a])=>{const l=Number(s)===r;a.setActivate(l)})};return jH.forEach(({label:s,value:a})=>{const l=dr({icon:WH(s),onClick:()=>{r!==a&&(r=a,o(),e(a))},activate:a===r});i[String(a)]=l,n.appendChild(l)}),n}function WH(t){return()=>{const e="1.2em",n=document.createElement("span");return n.textContent=t,n.style.display="inline-flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.width=e,n.style.height=e,n.style.fontSize="12px",n}}function VH(t){if(typeof t=="number")return t;if(typeof t=="string"){const n=parseFloat(t);return Number.isFinite(n)?n:12}return 12}const ea="infographic-icon-color-btn",YH="infographic-icon-color-style",hh="#1f1f1f",y3=(t,e,n)=>{GH();const r=XH(e.fill),i=e.fill===void 0&&t.length>1,o=document.createElement("button");o.type="button",o.classList.add(ea),v3(o,r!=null?r:hh,i);const s=Jy({value:r!=null?r:hh,onChange:a=>{v3(o,a,!1),n.executeBatch(t.map(l=>new cn(l,{attributes:{fill:a}})))}});return Dr({target:o,content:s,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function XH(t){if(t)return Bn(t)?t:void 0}function v3(t,e,n){t.style.setProperty("--infographic-icon-color",e),n?t.setAttribute("data-mixed","true"):t.removeAttribute("data-mixed")}function GH(){nn(YH,`
|
|
511
|
+
.${ea} {
|
|
507
512
|
position: relative;
|
|
508
513
|
width: 32px;
|
|
509
514
|
height: 32px;
|
|
@@ -513,15 +518,15 @@ ${t.trim()}
|
|
|
513
518
|
cursor: pointer;
|
|
514
519
|
transition: box-shadow 0.2s ease, border-color 0.2s ease;
|
|
515
520
|
}
|
|
516
|
-
.${
|
|
521
|
+
.${ea}::after {
|
|
517
522
|
content: '';
|
|
518
523
|
position: absolute;
|
|
519
524
|
inset: 6px;
|
|
520
525
|
border-radius: 50%;
|
|
521
|
-
background: var(--infographic-icon-color, ${
|
|
526
|
+
background: var(--infographic-icon-color, ${hh});
|
|
522
527
|
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
523
528
|
}
|
|
524
|
-
.${
|
|
529
|
+
.${ea}[data-mixed="true"]::after {
|
|
525
530
|
background: repeating-linear-gradient(
|
|
526
531
|
45deg,
|
|
527
532
|
#d9d9d9 0,
|
|
@@ -530,8 +535,8 @@ ${t.trim()}
|
|
|
530
535
|
#f5f5f5 12px
|
|
531
536
|
);
|
|
532
537
|
}
|
|
533
|
-
`)}var LH=Object.defineProperty,jy=Object.getOwnPropertySymbols,HH=Object.prototype.hasOwnProperty,RH=Object.prototype.propertyIsEnumerable,By=(t,e,n)=>e in t?LH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,DH=(t,e)=>{for(var n in e||(e={}))HH.call(e,n)&&By(t,n,e[n]);if(jy)for(var n of jy(e))RH.call(e,n)&&By(t,n,e[n]);return t};class Fy extends Bc{constructor(e){super(),this.options=e,this.name="edit-bar",this.selection=[],this.handleSelectionChanged=({next:n})=>{if(this.selection=n,n.length===0){this.container&&Vy(this.container);return}const r=this.getOrCreateEditBar(),i=this.getEditItems(n);if(i.length===0){Vy(r);return}NH(r,i),this.placeEditBar(r,n),qc(r)},this.handleGeometryChanged=({target:n})=>{!this.selection.includes(n)||!this.container||(this.placeEditBar(this.container,this.selection),qc(this.container))},this.handleHistoryChanged=()=>{!this.container||this.selection.length===0||(this.placeEditBar(this.container,this.selection),qc(this.container))}}init(e){super.init(e);const{emitter:n}=e;n.on("selection:change",this.handleSelectionChanged),n.on("selection:geometrychange",this.handleGeometryChanged),n.on("history:change",this.handleHistoryChanged)}destroy(){var e;const{emitter:n}=this;n.off("selection:change",this.handleSelectionChanged),n.off("selection:geometrychange",this.handleGeometryChanged),n.off("history:change",this.handleHistoryChanged),(e=this.container)==null||e.remove()}getEditItems(e){let n=!1,r=!1,i=!1;for(const o of e)if(an(o)?n=!0:_n(o)?r=!0:y_(o)&&(i=!0),n&&r&&i)break;return n&&!r&&!i?e.length===1?this.getTextEditItems(e[0]):this.getTextCollectionEditItems(e):!n&&r&&!i?e.length===1?this.getIconEditItems(e):this.getIconCollectionEditItems(e):!n&&!r&&i?e.length===1?this.getGeometryEditItems(e):this.getGeometryCollectionEditItems(e):this.getElementCollectionEditItems(e)}getOrCreateEditBar(){if(this.container)return this.container;const{style:e,className:n}=this.options||{},r=document.createElement("div");Object.assign(r.style,DH({visibility:"hidden",position:"absolute",left:"0",top:"0",display:"flex",flexFlow:"row",justifyContent:"center",alignItems:"center",height:"40px",minWidth:"40px",minHeight:"40px",borderRadius:"8px",padding:"0 4px",backgroundColor:"#fff",border:"1px solid rgba(239, 240, 240, 0.9)",zIndex:"9999",boxShadow:"rgba(0, 0, 0, 0.08) 0px 1px 2px -2px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.02) 0px 4px 8px 1px"},e)),n&&r.classList.add(n),Br(r,Ys),this.container=r;const{getContainer:i}=this.options||{},o=typeof i=="function"?i():i,s=o!=null?o:document.body;return s==null||s.appendChild(r),r}getTextEditItems(e){const{attributes:n={}}=Ba(e);return[Ay,Ry,Ty,zy].map(r=>r([e],n,this.commander))}getTextCollectionEditItems(e){const n=bh(e.map(o=>Ba(o).attributes||{})),r=[Ay,Ry,Ty,zy].map(o=>o(e,n,this.commander)),i=this.getElementCollectionEditItems(e);return[...r,...i]}getIconEditItems(e){const n=qa(e[0]);return[Dy].map(r=>r(e,n,this.commander))}getIconCollectionEditItems(e){const n=bh(e.map(r=>qa(r)));return[Dy].map(r=>r(e,n,this.commander))}getGeometryEditItems(e){return[]}getGeometryCollectionEditItems(e){return[...this.getElementCollectionEditItems(e)]}getElementCollectionEditItems(e){return e.length<=1?[]:[tH(e,{},this.commander,{enableDistribution:e.length>2})]}placeEditBar(e,n){var r;if(n.length===0)return;const i=this.editor.getDocument(),o=yr(n.map(_=>tn(i,_))),a=((r=e.offsetParent)!=null?r:document.documentElement).getBoundingClientRect(),l=document.documentElement.clientHeight,c=e.getBoundingClientRect(),h=8,u=tL(i),f=new DOMPoint(o.x+o.width/2,o.y).matrixTransform(u),p=new DOMPoint(o.x+o.width/2,o.y+o.height).matrixTransform(u),g=(_,w,$)=>Math.min(Math.max(_,w),$);let y=f.x-a.left-c.width/2;y=g(y,0,Math.max(a.width-c.width,0));const m=f.y-h,x=l-p.y-h;let b=m>=c.height||m>=x?f.y-a.top-c.height-h:p.y-a.top+h;b=g(b,0,Math.max(a.height-c.height,0)),e.style.left=`${y}px`,e.style.top=`${b}px`}}function qc(t){t.style.visibility="visible"}function Vy(t){t.style.visibility="hidden"}function NH(t,e){t.innerHTML="",e.forEach(n=>{t.appendChild(n)})}var jH=Object.defineProperty,Wy=Object.getOwnPropertySymbols,BH=Object.prototype.hasOwnProperty,FH=Object.prototype.propertyIsEnumerable,Yy=(t,e,n)=>e in t?jH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,VH=(t,e)=>{for(var n in e||(e={}))BH.call(e,n)&&Yy(t,n,e[n]);if(Wy)for(var n of Wy(e))FH.call(e,n)&&Yy(t,n,e[n]);return t};const Oi=class Fe extends Bc{constructor(){super(...arguments),this.name="resize-element",this.target=null,this.handles=[],this.activeHandle=null,this.activePointerId=null,this.handleSelectionChange=({next:e})=>{const n=e.length===1?e[0]:null;n&&an(n)?(this.target=n,this.updateHandles()):(this.target=null,this.hideHandles(),this.cancelDrag())},this.handleDeactivate=()=>{this.target=null,this.hideHandles(),this.cancelDrag()},this.handleGeometryChange=({target:e})=>{if(!this.target||e!==this.target)return;const n=this.getViewportRect(this.target);this.lastViewportRect=n,this.updateHandles(n)},this.handleHistoryChange=()=>{if(!this.target)return;const e=this.getViewportRect(this.target);this.lastViewportRect=e,this.updateHandles(e)},this.handlePointerMove=e=>{if(!this.target||!this.startPointer||!this.startRect||!this.activeHandle||this.activePointerId!==null&&e.pointerId!==this.activePointerId)return;const n=this.clientToElement(this.target,e.clientX,e.clientY),r=n.x-this.startPointer.x,i=n.y-this.startPointer.y,o=this.clampRect(this.applyDelta(this.startRect,r,i,this.activeHandle),this.activeHandle);this.lastRect=o,this.applyRect(this.target,o),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange()},this.handlePointerUp=e=>{if(this.activePointerId!==null&&e.pointerId!==this.activePointerId)return;const n=this.lastRect,r=this.startAttrs,i=n&&this.startRect&&this.hasRectChanged(this.startRect,n);if(this.cancelDrag(),i&&this.target&&n&&r)this.commander.execute(new en(this.target,{attributes:n},{attributes:r})),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange();else if(this.target){const o=this.lastViewportRect||this.getViewportRect(this.target);this.updateHandles(o)}}}init(e){super.init(e);const{emitter:n}=e;n.on("selection:change",this.handleSelectionChange),n.on("selection:geometrychange",this.handleGeometryChange),n.on("history:change",this.handleHistoryChange),n.on("deactivated",this.handleDeactivate)}destroy(){this.cancelDrag(),this.removeContainer();const{emitter:e}=this;e.off("selection:change",this.handleSelectionChange),e.off("selection:geometrychange",this.handleGeometryChange),e.off("history:change",this.handleHistoryChange),e.off("deactivated",this.handleDeactivate)}ensureContainer(){if(this.container)return this.container;const e=ft("g",{"pointer-events":"none"});this.overlay=ft("rect",{fill:"rgba(51, 132, 245, 0.06)",stroke:"none","pointer-events":"none"});const n=ft("rect",{fill:"none",stroke:"#3384F5","stroke-width":1,"stroke-dasharray":"4 2","pointer-events":"none"});e.appendChild(this.overlay),e.appendChild(n),this.outline=n;const r=Fe.HANDLE_POSITIONS,i={"top-left":"nwse-resize",top:"ns-resize","top-right":"nesw-resize",right:"ew-resize","bottom-right":"nwse-resize",bottom:"ns-resize","bottom-left":"nesw-resize",left:"ew-resize"};return r.forEach((o,s)=>{const l=o==="top"||o==="right"||o==="bottom"||o==="left"?ft("line",{stroke:"transparent","stroke-width":Fe.LINE_STROKE_WIDTH}):ft("circle",{r:Fe.HANDLE_SIZE/2,fill:"#3384F5",stroke:"#fff","stroke-width":1.5});l.style.cursor=i[o],l.style.pointerEvents="all",l.addEventListener("pointerdown",c=>this.handlePointerDown(c,o)),l.addEventListener("click",c=>{c.stopPropagation(),c.preventDefault()}),e.appendChild(l),this.handles[s]=l}),this.editor.getDocument().appendChild(e),this.container=e,e}updateHandles(e){if(!this.target){this.hideHandles();return}const n=e||this.getViewportRect(this.target)||this.lastViewportRect||null;if(!n){this.hideHandles();return}this.lastViewportRect=n;const r=this.ensureContainer();r.style.display="block",this.outline.style.display="block",Bt(this.outline,n),this.overlay&&(this.overlay.style.display="block",Bt(this.overlay,n));const i=this.getHandlePoints(n);this.handles.forEach((o,s)=>{const[a,l]=i[s];if(o.tagName==="circle")Bt(o,{cx:a,cy:l});else{const c=Fe.HANDLE_POSITIONS[s],h=this.getHandleLine(n,c);Bt(o,h)}o.style.display="block"})}hideHandles(){this.container&&(this.container.style.display="none"),this.outline&&(this.outline.style.display="none"),this.overlay&&(this.overlay.style.display="none"),this.handles.forEach(e=>e.style.display="none")}removeContainer(){var e;(e=this.container)==null||e.remove(),this.container=void 0,this.outline=void 0,this.overlay=void 0,this.handles=[]}handlePointerDown(e,n){if(!this.target||e.button!==0&&e.pointerType==="mouse")return;e.stopPropagation(),e.preventDefault();const r=this.clientToElement(this.target,e.clientX,e.clientY);this.activeHandle=n,this.activePointerId=e.pointerId,this.startPointer=r;const i=this.getCurrentAttributes(this.target);this.startRect=i,this.startAttrs=VH({},i),this.lastRect=i,this.lastViewportRect=this.getViewportRect(this.target),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)}cancelDrag(){this.activeHandle=null,this.activePointerId=null,this.startPointer=void 0,this.startRect=void 0,this.startAttrs=void 0,this.lastRect=void 0,this.lastViewportRect=void 0,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}applyRect(e,n){Bt(e,{x:n.x,y:n.y,width:n.width,height:n.height})}getViewportRect(e){const{x:n,y:r,width:i,height:o}=tn(this.editor.getDocument(),e);return{x:n,y:r,width:i,height:o}}clientToElement(e,n,r){var i,o;const s=((i=e.getScreenCTM())==null?void 0:i.inverse())||((o=this.editor.getDocument().getScreenCTM())==null?void 0:o.inverse())||new DOMMatrix;return new DOMPoint(n,r).matrixTransform(s)}getCurrentAttributes(e){const n=Se(e,["x","y","width","height"],!1),r=this.getViewportRect(e),i=(o,s)=>{const a=o!==null?Number(o):NaN;return Number.isFinite(a)?a:s};return{x:i(n.x,r.x),y:i(n.y,r.y),width:i(n.width,r.width),height:i(n.height,r.height)}}getHandlePoints(e){const{x:n,y:r,width:i,height:o}=e,s=n+i/2,a=r+o/2;return[[n,r],[s,r],[n+i,r],[n+i,a],[n+i,r+o],[s,r+o],[n,r+o],[n,a]]}applyDelta(e,n,r,i){let{x:o,y:s,width:a,height:l}=e;switch(i){case"top-left":o+=n,s+=r,a-=n,l-=r;break;case"top":s+=r,l-=r;break;case"top-right":s+=r,a+=n,l-=r;break;case"right":a+=n;break;case"bottom-right":a+=n,l+=r;break;case"bottom":l+=r;break;case"bottom-left":o+=n,a-=n,l+=r;break;case"left":o+=n,a-=n;break}return{x:o,y:s,width:a,height:l}}clampRect(e,n){let{x:r,y:i,width:o,height:s}=e;if(o<Fe.MIN_SIZE){const a=Fe.MIN_SIZE-o;(n==="top-left"||n==="bottom-left"||n==="left")&&(r-=a),o=Fe.MIN_SIZE}if(s<Fe.MIN_SIZE){const a=Fe.MIN_SIZE-s;(n==="top-left"||n==="top-right"||n==="top")&&(i-=a),s=Fe.MIN_SIZE}return{x:r,y:i,width:o,height:s}}hasRectChanged(e,n){return Math.abs(e.x-n.x)>.5||Math.abs(e.y-n.y)>.5||Math.abs(e.width-n.width)>.5||Math.abs(e.height-n.height)>.5}emitSelectionGeometryChange(){this.target&&this.lastViewportRect&&this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:this.target,rect:this.lastViewportRect})}getHandleLine(e,n){const{x:r,y:i,width:o,height:s}=e;switch(n){case"top":return{x1:r,y1:i,x2:r+o,y2:i};case"right":return{x1:r+o,y1:i,x2:r+o,y2:i+s};case"bottom":return{x1:r,y1:i+s,x2:r+o,y2:i+s};case"left":default:return{x1:r,y1:i,x2:r,y2:i+s}}}};Oi.HANDLE_SIZE=10,Oi.LINE_STROKE_WIDTH=8,Oi.MIN_SIZE=1,Oi.HANDLE_POSITIONS=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"];let Xy=Oi;function Gy(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Uc={exports:{}},qy;function WH(){return qy||(qy=1,(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,h){this.fn=l,this.context=c,this.once=h||!1}function o(l,c,h,u,f){if(typeof h!="function")throw new TypeError("The listener must be a function");var p=new i(h,u||l,f),g=n?n+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],p]:l._events[g].push(p):(l._events[g]=p,l._eventsCount++),l}function s(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var c=[],h,u;if(this._eventsCount===0)return c;for(u in h=this._events)e.call(h,u)&&c.push(n?u.slice(1):u);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(h)):c},a.prototype.listeners=function(c){var h=n?n+c:c,u=this._events[h];if(!u)return[];if(u.fn)return[u.fn];for(var f=0,p=u.length,g=new Array(p);f<p;f++)g[f]=u[f].fn;return g},a.prototype.listenerCount=function(c){var h=n?n+c:c,u=this._events[h];return u?u.fn?1:u.length:0},a.prototype.emit=function(c,h,u,f,p,g){var y=n?n+c:c;if(!this._events[y])return!1;var m=this._events[y],x=arguments.length,v,b;if(m.fn){switch(m.once&&this.removeListener(c,m.fn,void 0,!0),x){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,h),!0;case 3:return m.fn.call(m.context,h,u),!0;case 4:return m.fn.call(m.context,h,u,f),!0;case 5:return m.fn.call(m.context,h,u,f,p),!0;case 6:return m.fn.call(m.context,h,u,f,p,g),!0}for(b=1,v=new Array(x-1);b<x;b++)v[b-1]=arguments[b];m.fn.apply(m.context,v)}else{var _=m.length,w;for(b=0;b<_;b++)switch(m[b].once&&this.removeListener(c,m[b].fn,void 0,!0),x){case 1:m[b].fn.call(m[b].context);break;case 2:m[b].fn.call(m[b].context,h);break;case 3:m[b].fn.call(m[b].context,h,u);break;case 4:m[b].fn.call(m[b].context,h,u,f);break;default:if(!v)for(w=1,v=new Array(x-1);w<x;w++)v[w-1]=arguments[w];m[b].fn.apply(m[b].context,v)}}return!0},a.prototype.on=function(c,h,u){return o(this,c,h,u,!1)},a.prototype.once=function(c,h,u){return o(this,c,h,u,!0)},a.prototype.removeListener=function(c,h,u,f){var p=n?n+c:c;if(!this._events[p])return this;if(!h)return s(this,p),this;var g=this._events[p];if(g.fn)g.fn===h&&(!f||g.once)&&(!u||g.context===u)&&s(this,p);else{for(var y=0,m=[],x=g.length;y<x;y++)(g[y].fn!==h||f&&!g[y].once||u&&g[y].context!==u)&&m.push(g[y]);m.length?this._events[p]=m.length===1?m[0]:m:s(this,p)}return this},a.prototype.removeAllListeners=function(c){var h;return c?(h=n?n+c:c,this._events[h]&&s(this,h)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,t.exports=a})(Uc)),Uc.exports}var YH=WH();const XH=Gy(YH);var Ns=(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())});class GH{constructor(){this.undoStack=[],this.redoStack=[]}init(e){Object.assign(this,e)}execute(e){return Ns(this,null,function*(){yield e.apply(this.state),this.undoStack.push(e),this.redoStack=[],this.emitHistoryChange("execute")})}executeBatch(e){return Ns(this,null,function*(){if(e.length===0)return;const n=new fL(e);yield this.execute(n)})}undo(){return Ns(this,null,function*(){const e=this.undoStack.pop();e&&(yield e.undo(this.state),this.redoStack.push(e),this.emitHistoryChange("undo"))})}redo(){return Ns(this,null,function*(){const e=this.redoStack.pop();e&&(yield e.apply(this.state),this.undoStack.push(e),this.emitHistoryChange("redo"))})}serialize(){return this.undoStack.map(e=>e.serialize())}clear(){this.undoStack=[],this.redoStack=[]}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}getHistorySize(){return this.undoStack.length}destroy(){this.clear()}emitHistoryChange(e){var n;(n=this.emitter)==null||n.emit("history:change",{type:"history:change",action:e})}}var Uy=(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())});class qH{constructor(){this.extensions=new G2,this.interactions=[],this.active=!1,this.running=null,this.concurrentInteractions=new Set,this.selection=new Set,this.handleClick=e=>{const n=this.editor.getDocument(),r=e.target;if(!r){this.deactivate();return}n.contains(r)||v_(r)?this.activate():this.deactivate()}}init(e){Object.assign(this,e),document.addEventListener("click",this.handleClick),this.interactions.forEach(n=>{this.extensions.register(n.name,n),n.init({emitter:this.emitter,editor:this.editor,commander:this.commander,state:this.state,interaction:this}),this.emitter.emit("interaction:registered",n)})}isActive(){return this.active}select(e,n){const r=this.getSelection(),i=[],o=[];if(n==="replace"){const l=new Set(e);r.forEach(c=>{l.has(c)||o.push(c)}),e.forEach(c=>{this.selection.has(c)||i.push(c)}),this.selection=l}else n==="add"?e.forEach(l=>{this.selection.has(l)||(this.selection.add(l),i.push(l))}):n==="remove"?e.forEach(l=>{this.selection.delete(l)&&o.push(l)}):n==="toggle"&&e.forEach(l=>{this.selection.has(l)?(this.selection.delete(l),o.push(l)):(this.selection.add(l),i.push(l))});const s=this.getSelection(),a={type:"selection:change",previous:r,next:s,added:i,removed:o,mode:n};this.emitter.emit("selection:change",a)}getSelection(){return[...this.selection]}isSelected(e){return this.selection.has(e)}clearSelection(){const e=this.getSelection();this.selection.clear();const n={type:"selection:change",previous:e,next:[],added:[],removed:e,mode:"replace"};this.emitter.emit("selection:change",n)}activate(){this.active=!0,this.emitter.emit("activated")}deactivate(){this.active=!1,this.running=null,this.clearSelection(),this.emitter.emit("deactivated")}executeExclusiveInteraction(e,n){return Uy(this,null,function*(){if(!(!this.active||this.running)){this.running=e;try{this.emitter.emit("interaction:started",e),yield n(),this.emitter.emit("interaction:ended",e)}catch(r){console.error(`Error occurred during exclusive interaction "${e.name}":`,r),this.emitter.emit("interaction:error",e,r)}finally{this.running=null}}})}executeConcurrentInteraction(e,n){return Uy(this,null,function*(){if(this.active){this.concurrentInteractions.add(e);try{this.emitter.emit("interaction:started",e),yield n(),this.emitter.emit("interaction:ended",e)}catch(r){console.error(`Error occurred during concurrent interaction "${e.name}":`,r),this.emitter.emit("interaction:error",e,r)}finally{this.concurrentInteractions.delete(e)}}})}getOrCreateTransientContainer(){const e="transient-container",n=this.editor.getDocument(),r=fr(n,e);if(r&&r.isConnected)return r;const i=ft("g");return Br(i,e),n.appendChild(i),i}appendTransientElement(e){return this.getOrCreateTransientContainer().appendChild(e),e}destroy(){this.extensions.forEach(e=>{e.destroy(),this.emitter.emit("interaction:destroyed",e)}),this.extensions.destroy(),this.active=!1,this.running=null,this.clearSelection(),document.removeEventListener("click",this.handleClick),this.getOrCreateTransientContainer().remove()}}class UH{constructor(){this.extensions=new G2}init(e,n=[]){Object.assign(this,e),n.forEach(r=>{this.registerPlugin(r)})}getPlugin(e){return this.extensions.get(e)}getPlugins(){return this.extensions.getAll()}registerPlugin(e){this.extensions.register(e.name,e);const n={emitter:this.emitter,editor:this.editor,commander:this.commander,plugin:this,state:this.state};e.init(n),this.emitter.emit("plugin:registered",e)}unregisterPlugin(e){const n=this.extensions.get(e);n&&(n.destroy(),this.extensions.unregister(e),this.emitter.emit("plugin:unregistered",n))}destroy(){this.extensions.getAll().forEach(e=>{this.unregisterPlugin(e.name),this.emitter.emit("plugin:destroyed",e)}),this.extensions.destroy()}}var ZH=Object.defineProperty,Zy=Object.getOwnPropertySymbols,KH=Object.prototype.hasOwnProperty,QH=Object.prototype.propertyIsEnumerable,Ky=(t,e,n)=>e in t?ZH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Qy=(t,e)=>{for(var n in e||(e={}))KH.call(e,n)&&Ky(t,n,e[n]);if(Zy)for(var n of Zy(e))QH.call(e,n)&&Ky(t,n,e[n]);return t};class JH{init(e){Object.assign(this,e)}addItemDatum(e,n){const r=e.slice(0,-1),i=e[e.length-1],o=Array.isArray(n)?n:[n];W2(this.options.data,r).splice(i,0,...o),this.emitter.emit("options:data:item:add",{indexes:e,datum:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"add",path:"data.items",indexes:e,value:o}]})}updateItemDatum(e,n){const r=cr(this.options.data,e);Object.assign(r,n),this.emitter.emit("options:data:item:update",{indexes:e,datum:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"data.items",indexes:e,value:n}]})}removeItemDatum(e,n=1){const r=e.slice(0,-1),i=e[e.length-1],s=W2(this.options.data,r).splice(i,n);this.emitter.emit("options:data:item:remove",{indexes:e,datum:s}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"remove",path:"data.items",indexes:e,value:s}]})}updateData(e,n){this.options.data[e]=n,this.emitter.emit("options:data:update",{key:e,value:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:`data.${e}`,value:n}]})}updateElement(e,n){this.updateBuiltInElement(e,n)}updateOptions(e){this.options=Qy(Qy({},this.options),e),this.options.padding!==void 0&&f0(this.editor.getDocument(),Vn(this.options.padding)),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"",value:e}]})}getOptions(){return this.options}updateBuiltInElement(e,n){var r,i;const{data:o}=this.options,{attributes:s={}}=n,a=Va(e),l=_n(e)||Ct.ItemLabel===a||Ct.ItemDesc===a||Ct.ItemValue===a||Ct.ItemsIllus===a,c=l?Y2(e):void 0;if(l){const h=cr(o,c),u=a.replace("item-","");h.attributes||(h.attributes={}),(r=h.attributes)[u]||(r[u]={}),Object.assign(h.attributes[u],s)}else(Ct.Title===a||Ct.Desc===a||Ct.Illus===a)&&(o.attributes||(o.attributes={}),(i=o.attributes)[a]||(i[a]={}),Object.assign(o.attributes[a],s));this.emitter.emit("options:element:update",{element:e,props:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",role:a,indexes:c,path:l?`${nL(c)}.attributes.${a.replace("item-","")}`:`data.attributes.${a}`,value:n}]})}destroy(){}}class tR{constructor(e,n,r){if(this.emitter=e,this.document=n,this.options=r,!n.isConnected)throw new Error("The provided document is not connected to the DOM.");n.style.userSelect="none";const i=new GH,o=new JH,s=new UH,a=new qH;i.init({state:o,emitter:e}),o.init({emitter:e,editor:this,commander:i,options:r}),s.init({emitter:e,editor:this,commander:i,state:o},r.plugins),a.init({emitter:e,editor:this,commander:i,state:o,interactions:r.interactions}),this.commander=i,this.state=o,this.plugin=s,this.interaction=a}getDocument(){return this.document}destroy(){this.document.style.userSelect="",this.interaction.destroy(),this.plugin.destroy(),this.commander.destroy(),this.state.destroy()}}var Zc,Jy;function eR(){if(Jy)return Zc;Jy=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;Zc=function(r,i){i=i||{};var o=1,s=1;function a(L){var C=L.match(/\n/g);C&&(o+=C.length);var H=L.lastIndexOf(`
|
|
534
|
-
`);s=~
|
|
538
|
+
`)}var qH=Object.defineProperty,b3=Object.getOwnPropertySymbols,UH=Object.prototype.hasOwnProperty,ZH=Object.prototype.propertyIsEnumerable,x3=(t,e,n)=>e in t?qH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,KH=(t,e)=>{for(var n in e||(e={}))UH.call(e,n)&&x3(t,n,e[n]);if(b3)for(var n of b3(e))ZH.call(e,n)&&x3(t,n,e[n]);return t};class w3 extends ih{constructor(e){super(),this.options=e,this.name="edit-bar",this.selection=[],this.handleSelectionChanged=({next:n})=>{if(this.selection=n,n.length===0){this.container&&_3(this.container);return}const r=this.getOrCreateEditBar(),i=this.getEditItems(n);if(i.length===0){_3(r);return}QH(r,i),this.placeEditBar(r,n),dh(r)},this.handleGeometryChanged=({target:n})=>{!this.selection.includes(n)||!this.container||(this.placeEditBar(this.container,this.selection),dh(this.container))},this.handleHistoryChanged=()=>{!this.container||this.selection.length===0||(this.placeEditBar(this.container,this.selection),dh(this.container))}}init(e){super.init(e);const{emitter:n}=e;n.on("selection:change",this.handleSelectionChanged),n.on("selection:geometrychange",this.handleGeometryChanged),n.on("history:change",this.handleHistoryChanged)}destroy(){var e;const{emitter:n}=this;n.off("selection:change",this.handleSelectionChanged),n.off("selection:geometrychange",this.handleGeometryChanged),n.off("history:change",this.handleHistoryChanged),(e=this.container)==null||e.remove()}getEditItems(e){let n=!1,r=!1,i=!1;for(const o of e)if(gn(o)?n=!0:In(o)?r=!0:u4(o)&&(i=!0),n&&r&&i)break;return n&&!r&&!i?e.length===1?this.getTextEditItems(e[0]):this.getTextCollectionEditItems(e):!n&&r&&!i?e.length===1?this.getIconEditItems(e):this.getIconCollectionEditItems(e):!n&&!r&&i?e.length===1?this.getGeometryEditItems(e):this.getGeometryCollectionEditItems(e):this.getElementCollectionEditItems(e)}getOrCreateEditBar(){if(this.container)return this.container;const{style:e,className:n}=this.options||{},r=document.createElement("div");Object.assign(r.style,KH({visibility:"hidden",position:"absolute",left:"0",top:"0",display:"flex",flexFlow:"row",justifyContent:"center",alignItems:"center",height:"40px",minWidth:"40px",minHeight:"40px",borderRadius:"8px",padding:"0 4px",backgroundColor:"#fff",border:"1px solid rgba(239, 240, 240, 0.9)",zIndex:"9999",boxShadow:"rgba(0, 0, 0, 0.08) 0px 1px 2px -2px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.02) 0px 4px 8px 1px"},e)),n&&r.classList.add(n),ti(r,ha),this.container=r;const{getContainer:i}=this.options||{},o=typeof i=="function"?i():i,s=o!=null?o:document.body;return s==null||s.appendChild(r),r}getTextEditItems(e){const{attributes:n={}}=sl(e);return[d3,m3,h3,f3].map(r=>r([e],n,this.commander))}getTextCollectionEditItems(e){const n=Vh(e.map(o=>sl(o).attributes||{})),r=[d3,m3,h3,f3].map(o=>o(e,n,this.commander)),i=this.getElementCollectionEditItems(e);return[...r,...i]}getIconEditItems(e){const n=dl(e[0]);return[y3].map(r=>r(e,n,this.commander))}getIconCollectionEditItems(e){const n=Vh(e.map(r=>dl(r)));return[y3].map(r=>r(e,n,this.commander))}getGeometryEditItems(e){return[]}getGeometryCollectionEditItems(e){return[...this.getElementCollectionEditItems(e)]}getElementCollectionEditItems(e){return e.length<=1?[]:[fH(e,{},this.commander,{enableDistribution:e.length>2})]}placeEditBar(e,n){var r;if(n.length===0)return;const i=this.editor.getDocument(),o=Ir(n.map(w=>ln(i,w))),a=((r=e.offsetParent)!=null?r:document.documentElement).getBoundingClientRect(),l=document.documentElement.clientHeight,c=e.getBoundingClientRect(),h=8,u=fR(i),f=new DOMPoint(o.x+o.width/2,o.y).matrixTransform(u),p=new DOMPoint(o.x+o.width/2,o.y+o.height).matrixTransform(u),g=(w,_,$)=>Math.min(Math.max(w,_),$);let y=f.x-a.left-c.width/2;y=g(y,0,Math.max(a.width-c.width,0));const m=f.y-h,b=l-p.y-h;let x=m>=c.height||m>=b?f.y-a.top-c.height-h:p.y-a.top+h;x=g(x,0,Math.max(a.height-c.height,0)),e.style.left=`${y}px`,e.style.top=`${x}px`}}function dh(t){t.style.visibility="visible"}function _3(t){t.style.visibility="hidden"}function QH(t,e){t.innerHTML="",e.forEach(n=>{t.appendChild(n)})}var JH=Object.defineProperty,$3=Object.getOwnPropertySymbols,tD=Object.prototype.hasOwnProperty,eD=Object.prototype.propertyIsEnumerable,P3=(t,e,n)=>e in t?JH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nD=(t,e)=>{for(var n in e||(e={}))tD.call(e,n)&&P3(t,n,e[n]);if($3)for(var n of $3(e))eD.call(e,n)&&P3(t,n,e[n]);return t};const Ni=class Ze extends ih{constructor(){super(...arguments),this.name="resize-element",this.target=null,this.handles=[],this.activeHandle=null,this.activePointerId=null,this.handleSelectionChange=({next:e})=>{const n=e.length===1?e[0]:null;n&&gn(n)?(this.target=n,this.updateHandles()):(this.target=null,this.hideHandles(),this.cancelDrag())},this.handleDeactivate=()=>{this.target=null,this.hideHandles(),this.cancelDrag()},this.handleGeometryChange=({target:e})=>{if(!this.target||e!==this.target)return;const n=this.getViewportRect(this.target);this.lastViewportRect=n,this.updateHandles(n)},this.handleHistoryChange=()=>{if(!this.target)return;const e=this.getViewportRect(this.target);this.lastViewportRect=e,this.updateHandles(e)},this.handlePointerMove=e=>{if(!this.target||!this.startPointer||!this.startRect||!this.activeHandle||this.activePointerId!==null&&e.pointerId!==this.activePointerId)return;const n=this.clientToElement(this.target,e.clientX,e.clientY),r=n.x-this.startPointer.x,i=n.y-this.startPointer.y,o=this.clampRect(this.applyDelta(this.startRect,r,i,this.activeHandle),this.activeHandle);this.lastRect=o,this.applyRect(this.target,o),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange()},this.handlePointerUp=e=>{if(this.activePointerId!==null&&e.pointerId!==this.activePointerId)return;const n=this.lastRect,r=this.startAttrs,i=n&&this.startRect&&this.hasRectChanged(this.startRect,n);if(this.cancelDrag(),i&&this.target&&n&&r)this.commander.execute(new cn(this.target,{attributes:n},{attributes:r})),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange();else if(this.target){const o=this.lastViewportRect||this.getViewportRect(this.target);this.updateHandles(o)}}}init(e){super.init(e);const{emitter:n}=e;n.on("selection:change",this.handleSelectionChange),n.on("selection:geometrychange",this.handleGeometryChange),n.on("history:change",this.handleHistoryChange),n.on("deactivated",this.handleDeactivate)}destroy(){this.cancelDrag(),this.removeContainer();const{emitter:e}=this;e.off("selection:change",this.handleSelectionChange),e.off("selection:geometrychange",this.handleGeometryChange),e.off("history:change",this.handleHistoryChange),e.off("deactivated",this.handleDeactivate)}ensureContainer(){if(this.container)return this.container;const e=wt("g",{"pointer-events":"none"});this.overlay=wt("rect",{fill:"rgba(51, 132, 245, 0.06)",stroke:"none","pointer-events":"none"});const n=wt("rect",{fill:"none",stroke:"#3384F5","stroke-width":1,"stroke-dasharray":"4 2","pointer-events":"none"});e.appendChild(this.overlay),e.appendChild(n),this.outline=n;const r=Ze.HANDLE_POSITIONS,i={"top-left":"nwse-resize",top:"ns-resize","top-right":"nesw-resize",right:"ew-resize","bottom-right":"nwse-resize",bottom:"ns-resize","bottom-left":"nesw-resize",left:"ew-resize"};return r.forEach((o,s)=>{const l=o==="top"||o==="right"||o==="bottom"||o==="left"?wt("line",{stroke:"transparent","stroke-width":Ze.LINE_STROKE_WIDTH}):wt("circle",{r:Ze.HANDLE_SIZE/2,fill:"#3384F5",stroke:"#fff","stroke-width":1.5});l.style.cursor=i[o],l.style.pointerEvents="all",l.addEventListener("pointerdown",c=>this.handlePointerDown(c,o)),l.addEventListener("click",c=>{c.stopPropagation(),c.preventDefault()}),e.appendChild(l),this.handles[s]=l}),this.editor.getDocument().appendChild(e),this.container=e,e}updateHandles(e){if(!this.target){this.hideHandles();return}const n=e||this.getViewportRect(this.target)||this.lastViewportRect||null;if(!n){this.hideHandles();return}this.lastViewportRect=n;const r=this.ensureContainer();r.style.display="block",this.outline.style.display="block",Yt(this.outline,n),this.overlay&&(this.overlay.style.display="block",Yt(this.overlay,n));const i=this.getHandlePoints(n);this.handles.forEach((o,s)=>{const[a,l]=i[s];if(o.tagName==="circle")Yt(o,{cx:a,cy:l});else{const c=Ze.HANDLE_POSITIONS[s],h=this.getHandleLine(n,c);Yt(o,h)}o.style.display="block"})}hideHandles(){this.container&&(this.container.style.display="none"),this.outline&&(this.outline.style.display="none"),this.overlay&&(this.overlay.style.display="none"),this.handles.forEach(e=>e.style.display="none")}removeContainer(){var e;(e=this.container)==null||e.remove(),this.container=void 0,this.outline=void 0,this.overlay=void 0,this.handles=[]}handlePointerDown(e,n){if(!this.target||e.button!==0&&e.pointerType==="mouse")return;e.stopPropagation(),e.preventDefault();const r=this.clientToElement(this.target,e.clientX,e.clientY);this.activeHandle=n,this.activePointerId=e.pointerId,this.startPointer=r;const i=this.getCurrentAttributes(this.target);this.startRect=i,this.startAttrs=nD({},i),this.lastRect=i,this.lastViewportRect=this.getViewportRect(this.target),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)}cancelDrag(){this.activeHandle=null,this.activePointerId=null,this.startPointer=void 0,this.startRect=void 0,this.startAttrs=void 0,this.lastRect=void 0,this.lastViewportRect=void 0,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}applyRect(e,n){Yt(e,{x:n.x,y:n.y,width:n.width,height:n.height})}getViewportRect(e){const{x:n,y:r,width:i,height:o}=ln(this.editor.getDocument(),e);return{x:n,y:r,width:i,height:o}}clientToElement(e,n,r){var i,o;const s=((i=e.getScreenCTM())==null?void 0:i.inverse())||((o=this.editor.getDocument().getScreenCTM())==null?void 0:o.inverse())||new DOMMatrix;return new DOMPoint(n,r).matrixTransform(s)}getCurrentAttributes(e){const n=ke(e,["x","y","width","height"],!1),r=this.getViewportRect(e),i=(o,s)=>{const a=o!==null?Number(o):NaN;return Number.isFinite(a)?a:s};return{x:i(n.x,r.x),y:i(n.y,r.y),width:i(n.width,r.width),height:i(n.height,r.height)}}getHandlePoints(e){const{x:n,y:r,width:i,height:o}=e,s=n+i/2,a=r+o/2;return[[n,r],[s,r],[n+i,r],[n+i,a],[n+i,r+o],[s,r+o],[n,r+o],[n,a]]}applyDelta(e,n,r,i){let{x:o,y:s,width:a,height:l}=e;switch(i){case"top-left":o+=n,s+=r,a-=n,l-=r;break;case"top":s+=r,l-=r;break;case"top-right":s+=r,a+=n,l-=r;break;case"right":a+=n;break;case"bottom-right":a+=n,l+=r;break;case"bottom":l+=r;break;case"bottom-left":o+=n,a-=n,l+=r;break;case"left":o+=n,a-=n;break}return{x:o,y:s,width:a,height:l}}clampRect(e,n){let{x:r,y:i,width:o,height:s}=e;if(o<Ze.MIN_SIZE){const a=Ze.MIN_SIZE-o;(n==="top-left"||n==="bottom-left"||n==="left")&&(r-=a),o=Ze.MIN_SIZE}if(s<Ze.MIN_SIZE){const a=Ze.MIN_SIZE-s;(n==="top-left"||n==="top-right"||n==="top")&&(i-=a),s=Ze.MIN_SIZE}return{x:r,y:i,width:o,height:s}}hasRectChanged(e,n){return Math.abs(e.x-n.x)>.5||Math.abs(e.y-n.y)>.5||Math.abs(e.width-n.width)>.5||Math.abs(e.height-n.height)>.5}emitSelectionGeometryChange(){this.target&&this.lastViewportRect&&this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:this.target,rect:this.lastViewportRect})}getHandleLine(e,n){const{x:r,y:i,width:o,height:s}=e;switch(n){case"top":return{x1:r,y1:i,x2:r+o,y2:i};case"right":return{x1:r+o,y1:i,x2:r+o,y2:i+s};case"bottom":return{x1:r,y1:i+s,x2:r+o,y2:i+s};case"left":default:return{x1:r,y1:i,x2:r,y2:i+s}}}};Ni.HANDLE_SIZE=10,Ni.LINE_STROKE_WIDTH=8,Ni.MIN_SIZE=1,Ni.HANDLE_POSITIONS=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"];let O3=Ni;function C3(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var uh={exports:{}},M3;function rD(){return M3||(M3=1,(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,h){this.fn=l,this.context=c,this.once=h||!1}function o(l,c,h,u,f){if(typeof h!="function")throw new TypeError("The listener must be a function");var p=new i(h,u||l,f),g=n?n+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],p]:l._events[g].push(p):(l._events[g]=p,l._eventsCount++),l}function s(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var c=[],h,u;if(this._eventsCount===0)return c;for(u in h=this._events)e.call(h,u)&&c.push(n?u.slice(1):u);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(h)):c},a.prototype.listeners=function(c){var h=n?n+c:c,u=this._events[h];if(!u)return[];if(u.fn)return[u.fn];for(var f=0,p=u.length,g=new Array(p);f<p;f++)g[f]=u[f].fn;return g},a.prototype.listenerCount=function(c){var h=n?n+c:c,u=this._events[h];return u?u.fn?1:u.length:0},a.prototype.emit=function(c,h,u,f,p,g){var y=n?n+c:c;if(!this._events[y])return!1;var m=this._events[y],b=arguments.length,v,x;if(m.fn){switch(m.once&&this.removeListener(c,m.fn,void 0,!0),b){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,h),!0;case 3:return m.fn.call(m.context,h,u),!0;case 4:return m.fn.call(m.context,h,u,f),!0;case 5:return m.fn.call(m.context,h,u,f,p),!0;case 6:return m.fn.call(m.context,h,u,f,p,g),!0}for(x=1,v=new Array(b-1);x<b;x++)v[x-1]=arguments[x];m.fn.apply(m.context,v)}else{var w=m.length,_;for(x=0;x<w;x++)switch(m[x].once&&this.removeListener(c,m[x].fn,void 0,!0),b){case 1:m[x].fn.call(m[x].context);break;case 2:m[x].fn.call(m[x].context,h);break;case 3:m[x].fn.call(m[x].context,h,u);break;case 4:m[x].fn.call(m[x].context,h,u,f);break;default:if(!v)for(_=1,v=new Array(b-1);_<b;_++)v[_-1]=arguments[_];m[x].fn.apply(m[x].context,v)}}return!0},a.prototype.on=function(c,h,u){return o(this,c,h,u,!1)},a.prototype.once=function(c,h,u){return o(this,c,h,u,!0)},a.prototype.removeListener=function(c,h,u,f){var p=n?n+c:c;if(!this._events[p])return this;if(!h)return s(this,p),this;var g=this._events[p];if(g.fn)g.fn===h&&(!f||g.once)&&(!u||g.context===u)&&s(this,p);else{for(var y=0,m=[],b=g.length;y<b;y++)(g[y].fn!==h||f&&!g[y].once||u&&g[y].context!==u)&&m.push(g[y]);m.length?this._events[p]=m.length===1?m[0]:m:s(this,p)}return this},a.prototype.removeAllListeners=function(c){var h;return c?(h=n?n+c:c,this._events[h]&&s(this,h)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,t.exports=a})(uh)),uh.exports}var iD=rD();const oD=C3(iD);var na=(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())});class sD{constructor(){this.undoStack=[],this.redoStack=[]}init(e){Object.assign(this,e)}execute(e){return na(this,null,function*(){yield e.apply(this.state),this.undoStack.push(e),this.redoStack=[],this.emitHistoryChange("execute")})}executeBatch(e){return na(this,null,function*(){if(e.length===0)return;const n=new CR(e);yield this.execute(n)})}undo(){return na(this,null,function*(){const e=this.undoStack.pop();e&&(yield e.undo(this.state),this.redoStack.push(e),this.emitHistoryChange("undo"))})}redo(){return na(this,null,function*(){const e=this.redoStack.pop();e&&(yield e.apply(this.state),this.undoStack.push(e),this.emitHistoryChange("redo"))})}serialize(){return this.undoStack.map(e=>e.serialize())}clear(){this.undoStack=[],this.redoStack=[]}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}getHistorySize(){return this.undoStack.length}destroy(){this.clear()}emitHistoryChange(e){var n;(n=this.emitter)==null||n.emit("history:change",{type:"history:change",action:e})}}var S3=(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())});class aD{constructor(){this.extensions=new Cy,this.interactions=[],this.active=!1,this.running=null,this.concurrentInteractions=new Set,this.selection=new Set,this.handleClick=e=>{const n=this.editor.getDocument(),r=e.target;if(!r){this.deactivate();return}n.contains(r)||f4(r)?this.activate():this.deactivate()}}init(e){Object.assign(this,e),document.addEventListener("click",this.handleClick),this.interactions.forEach(n=>{this.extensions.register(n.name,n),n.init({emitter:this.emitter,editor:this.editor,commander:this.commander,state:this.state,interaction:this}),this.emitter.emit("interaction:registered",n)})}isActive(){return this.active}select(e,n){const r=this.getSelection(),i=[],o=[];if(n==="replace"){const l=new Set(e);r.forEach(c=>{l.has(c)||o.push(c)}),e.forEach(c=>{this.selection.has(c)||i.push(c)}),this.selection=l}else n==="add"?e.forEach(l=>{this.selection.has(l)||(this.selection.add(l),i.push(l))}):n==="remove"?e.forEach(l=>{this.selection.delete(l)&&o.push(l)}):n==="toggle"&&e.forEach(l=>{this.selection.has(l)?(this.selection.delete(l),o.push(l)):(this.selection.add(l),i.push(l))});const s=this.getSelection(),a={type:"selection:change",previous:r,next:s,added:i,removed:o,mode:n};this.emitter.emit("selection:change",a)}getSelection(){return[...this.selection]}isSelected(e){return this.selection.has(e)}clearSelection(){const e=this.getSelection();this.selection.clear();const n={type:"selection:change",previous:e,next:[],added:[],removed:e,mode:"replace"};this.emitter.emit("selection:change",n)}activate(){this.active=!0,this.emitter.emit("activated")}deactivate(){this.active=!1,this.running=null,this.clearSelection(),this.emitter.emit("deactivated")}executeExclusiveInteraction(e,n){return S3(this,null,function*(){if(!(!this.active||this.running)){this.running=e;try{this.emitter.emit("interaction:started",e),yield n(),this.emitter.emit("interaction:ended",e)}catch(r){console.error(`Error occurred during exclusive interaction "${e.name}":`,r),this.emitter.emit("interaction:error",e,r)}finally{this.running=null}}})}executeConcurrentInteraction(e,n){return S3(this,null,function*(){if(this.active){this.concurrentInteractions.add(e);try{this.emitter.emit("interaction:started",e),yield n(),this.emitter.emit("interaction:ended",e)}catch(r){console.error(`Error occurred during concurrent interaction "${e.name}":`,r),this.emitter.emit("interaction:error",e,r)}finally{this.concurrentInteractions.delete(e)}}})}getOrCreateTransientContainer(){const e="transient-container",n=this.editor.getDocument(),r=Or(n,e);if(r&&r.isConnected)return r;const i=wt("g");return ti(i,e),n.appendChild(i),i}appendTransientElement(e){return this.getOrCreateTransientContainer().appendChild(e),e}destroy(){this.extensions.forEach(e=>{e.destroy(),this.emitter.emit("interaction:destroyed",e)}),this.extensions.destroy(),this.active=!1,this.running=null,this.clearSelection(),document.removeEventListener("click",this.handleClick),this.getOrCreateTransientContainer().remove()}}class lD{constructor(){this.extensions=new Cy}init(e,n=[]){Object.assign(this,e),n.forEach(r=>{this.registerPlugin(r)})}getPlugin(e){return this.extensions.get(e)}getPlugins(){return this.extensions.getAll()}registerPlugin(e){this.extensions.register(e.name,e);const n={emitter:this.emitter,editor:this.editor,commander:this.commander,plugin:this,state:this.state};e.init(n),this.emitter.emit("plugin:registered",e)}unregisterPlugin(e){const n=this.extensions.get(e);n&&(n.destroy(),this.extensions.unregister(e),this.emitter.emit("plugin:unregistered",n))}destroy(){this.extensions.getAll().forEach(e=>{this.unregisterPlugin(e.name),this.emitter.emit("plugin:destroyed",e)}),this.extensions.destroy()}}var cD=Object.defineProperty,E3=Object.getOwnPropertySymbols,hD=Object.prototype.hasOwnProperty,dD=Object.prototype.propertyIsEnumerable,I3=(t,e,n)=>e in t?cD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,T3=(t,e)=>{for(var n in e||(e={}))hD.call(e,n)&&I3(t,n,e[n]);if(E3)for(var n of E3(e))dD.call(e,n)&&I3(t,n,e[n]);return t};class uD{init(e){Object.assign(this,e)}addItemDatum(e,n){const r=e.slice(0,-1),i=e[e.length-1],o=Array.isArray(n)?n:[n];$y(this.options.data,r).splice(i,0,...o),this.emitter.emit("options:data:item:add",{indexes:e,datum:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"add",path:"data.items",indexes:e,value:o}]})}updateItemDatum(e,n){const r=wr(this.options.data,e);Object.assign(r,n),this.emitter.emit("options:data:item:update",{indexes:e,datum:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"data.items",indexes:e,value:n}]})}removeItemDatum(e,n=1){const r=e.slice(0,-1),i=e[e.length-1],s=$y(this.options.data,r).splice(i,n);this.emitter.emit("options:data:item:remove",{indexes:e,datum:s}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"remove",path:"data.items",indexes:e,value:s}]})}updateData(e,n){this.options.data[e]=n,this.emitter.emit("options:data:update",{key:e,value:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:`data.${e}`,value:n}]})}updateElement(e,n){this.updateBuiltInElement(e,n)}updateOptions(e){this.options=T3(T3({},this.options),e),this.options.padding!==void 0&&D0(this.editor.getDocument(),Qn(this.options.padding)),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"",value:e}]})}getOptions(){return this.options}updateBuiltInElement(e,n){var r,i;const{data:o}=this.options,{attributes:s={}}=n,a=ll(e),l=In(e)||kt.ItemLabel===a||kt.ItemDesc===a||kt.ItemValue===a||kt.ItemIllus===a,c=l?Py(e):void 0;if(l){const h=wr(o,c),u=a.replace("item-","");h.attributes||(h.attributes={}),(r=h.attributes)[u]||(r[u]={}),Object.assign(h.attributes[u],s)}else(kt.Title===a||kt.Desc===a||kt.Illus===a)&&(o.attributes||(o.attributes={}),(i=o.attributes)[a]||(i[a]={}),Object.assign(o.attributes[a],s));this.emitter.emit("options:element:update",{element:e,props:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",role:a,indexes:c,path:l?`${gR(c)}.attributes.${a.replace("item-","")}`:`data.attributes.${a}`,value:n}]})}destroy(){}}class fD{constructor(e,n,r){if(this.emitter=e,this.document=n,this.options=r,!n.isConnected)throw new Error("The provided document is not connected to the DOM.");n.style.userSelect="none";const i=new sD,o=new uD,s=new lD,a=new aD;i.init({state:o,emitter:e}),o.init({emitter:e,editor:this,commander:i,options:r}),s.init({emitter:e,editor:this,commander:i,state:o},r.plugins),a.init({emitter:e,editor:this,commander:i,state:o,interactions:r.interactions}),this.commander=i,this.state=o,this.plugin=s,this.interaction=a}getDocument(){return this.document}destroy(){this.document.style.userSelect="",this.interaction.destroy(),this.plugin.destroy(),this.commander.destroy(),this.state.destroy()}}var fh,A3;function pD(){if(A3)return fh;A3=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;fh=function(r,i){i=i||{};var o=1,s=1;function a(L){var M=L.match(/\n/g);M&&(o+=M.length);var R=L.lastIndexOf(`
|
|
539
|
+
`);s=~R?L.length-R:s+L.length}function l(){var L={line:o,column:s};return function(M){return M.position=new c(L),b(),M}}function c(L){this.start=L,this.end={line:o,column:s},this.source=i.source}c.prototype.content=r;var h=[];function u(L){var M=new Error(i.source+":"+o+":"+s+": "+L);if(M.reason=L,M.filename=i.source,M.line=o,M.column=s,M.source=r,i.silent)h.push(M);else throw M}function f(){var L=y();return{type:"stylesheet",stylesheet:{source:i.source,rules:L,parsingErrors:h}}}function p(){return m(/^{\s*/)}function g(){return m(/^}/)}function y(){var L,M=[];for(b(),v(M);r.length&&r.charAt(0)!="}"&&(L=j()||X());)L!==!1&&(M.push(L),v(M));return M}function m(L){var M=L.exec(r);if(M){var R=M[0];return a(R),r=r.slice(R.length),M}}function b(){m(/^\s*/)}function v(L){var M;for(L=L||[];M=x();)M!==!1&&L.push(M);return L}function x(){var L=l();if(!(r.charAt(0)!="/"||r.charAt(1)!="*")){for(var M=2;r.charAt(M)!=""&&(r.charAt(M)!="*"||r.charAt(M+1)!="/");)++M;if(M+=2,r.charAt(M-1)==="")return u("End of comment missing");var R=r.slice(2,M-2);return s+=2,a(R),r=r.slice(M),s+=2,L({type:"comment",comment:R})}}function w(){var L=m(/^([^{]+)/);if(L)return e(L[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(M){return M.replace(/,/g,"")}).split(/\s*(?![^(]*\)),\s*/).map(function(M){return M.replace(/\u200C/g,",")})}function _(){var L=l(),M=m(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(M){if(M=e(M[0]),!m(/^:\s*/))return u("property missing ':'");var R=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),W=L({type:"declaration",property:M.replace(t,""),value:R?e(R[0]).replace(t,""):""});return m(/^[;\s]*/),W}}function $(){var L=[];if(!p())return u("missing '{'");v(L);for(var M;M=_();)M!==!1&&(L.push(M),v(L));return g()?L:u("missing '}'")}function P(){for(var L,M=[],R=l();L=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)M.push(L[1]),m(/^,\s*/);if(M.length)return R({type:"keyframe",values:M,declarations:$()})}function O(){var L=l(),R=m(/^@([-\w]+)?keyframes\s*/);if(R){var M=R[1],R=m(/^([-\w]+)\s*/);if(!R)return u("@keyframes missing name");var W=R[1];if(!p())return u("@keyframes missing '{'");for(var U,V=v();U=P();)V.push(U),V=V.concat(v());return g()?L({type:"keyframes",name:W,vendor:M,keyframes:V}):u("@keyframes missing '}'")}}function T(){var L=l(),M=m(/^@supports *([^{]+)/);if(M){var R=e(M[1]);if(!p())return u("@supports missing '{'");var W=v().concat(y());return g()?L({type:"supports",supports:R,rules:W}):u("@supports missing '}'")}}function I(){var L=l(),M=m(/^@host\s*/);if(M){if(!p())return u("@host missing '{'");var R=v().concat(y());return g()?L({type:"host",rules:R}):u("@host missing '}'")}}function S(){var L=l(),M=m(/^@media *([^{]+)/);if(M){var R=e(M[1]);if(!p())return u("@media missing '{'");var W=v().concat(y());return g()?L({type:"media",media:R,rules:W}):u("@media missing '}'")}}function H(){var L=l(),M=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(M)return L({type:"custom-media",name:e(M[1]),media:e(M[2])})}function C(){var L=l(),M=m(/^@page */);if(M){var R=w()||[];if(!p())return u("@page missing '{'");for(var W=v(),U;U=_();)W.push(U),W=W.concat(v());return g()?L({type:"page",selectors:R,declarations:W}):u("@page missing '}'")}}function A(){var L=l(),M=m(/^@([-\w]+)?document *([^{]+)/);if(M){var R=e(M[1]),W=e(M[2]);if(!p())return u("@document missing '{'");var U=v().concat(y());return g()?L({type:"document",document:W,vendor:R,rules:U}):u("@document missing '}'")}}function B(){var L=l(),M=m(/^@font-face\s*/);if(M){if(!p())return u("@font-face missing '{'");for(var R=v(),W;W=_();)R.push(W),R=R.concat(v());return g()?L({type:"font-face",declarations:R}):u("@font-face missing '}'")}}var k=N("import"),D=N("charset"),z=N("namespace");function N(L){var M=new RegExp("^@"+L+"\\s*([^;]+);");return function(){var R=l(),W=m(M);if(W){var U={type:L};return U[L]=W[1].trim(),R(U)}}}function j(){if(r[0]=="@")return O()||S()||H()||T()||k()||D()||z()||A()||C()||I()||B()}function X(){var L=l(),M=w();return M?(v(),L({type:"rule",selectors:M,declarations:$()})):u("selector missing")}return n(f())};function e(r){return r?r.replace(/^\s+|\s+$/g,""):""}function n(r,i){var o=r&&typeof r.type=="string",s=o?r:i;for(var a in r){var l=r[a];Array.isArray(l)?l.forEach(function(c){n(c,s)}):l&&typeof l=="object"&&n(l,s)}return o&&Object.defineProperty(r,"parent",{configurable:!0,writable:!0,enumerable:!1,value:i||null}),r}return fh}var gD=pD();const mD=C3(gD);var Nr=(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())});const k3=new Map;function yD(t,e=!0){return Nr(this,null,function*(){const n=vD(t);if(n.size===0)return;const r=[];yield Promise.all(Array.from(n).map(i=>Nr(null,null,function*(){const o=xD(i);if(!o.length)return;const s=yield bD(i);if(!s.length)return;const a=yield Promise.all(s.map(l=>Nr(null,null,function*(){const c=_D(l),h=c["unicode-range"].replace(/\s/g,"");if(!o.find(y=>y.unicodeRange&&y.unicodeRange.replace(/\s/g,"")===h))return null;const f=o5(c["font-family"],Eu(c["font-weight"]));if(!f)return null;const p=c.src.match(/url\(["']?(.*?\.woff2)[^"']*["']?\)/);if(!(p!=null&&p[1]))return null;const g=ul(f,p[1]);if(e){const y=yield PD(g);c.src=`url(${y}) format('woff2')`}else c.src=`url(${g}) format('woff2')`;return c})));r.push(...a.filter(Boolean)||[])}))),r.length>0&&$D(t,r)})}function vD(t){const e=new Set,n=t.getAttribute("font-family");if(n){const i=Gn(n);i&&e.add(i)}const r=t.querySelectorAll("foreignObject span");for(const i of r){const o=Gn(i.style.fontFamily);o&&e.add(o)}return e}function bD(t){return Nr(this,null,function*(){const e=Ju(t),n=[];return yield Promise.allSettled(e.map(r=>Nr(null,null,function*(){var i;const o=yield fetch(r).then(s=>s.text()).then(s=>mD(s)).catch(()=>(console.error(`Failed to fetch or parse font CSS: ${r}`),null));(i=o==null?void 0:o.stylesheet)==null||i.rules.forEach(s=>{if(s.type==="font-face"){const a=wD(s);n.push(a)}})}))),n})}function xD(t){const e=[];return document.fonts.forEach(n=>{Gn(n.family)===Gn(t)&&n.status==="loaded"&&e.push(n)}),e}function wD(t){const e=t.declarations||[],n={};return e.forEach(r=>{const{property:i,value:o}=r;i&&o&&(n[i]=o)}),n}function _D(t){var e,n,r,i,o,s;return{"font-family":(e=t["font-family"])!=null?e:"",src:(n=t.src)!=null?n:"","font-style":(r=t["font-style"])!=null?r:"normal","font-display":(i=t["font-display"])!=null?i:"swap","font-weight":(o=t["font-weight"])!=null?o:"400","unicode-range":(s=t["unicode-range"])!=null?s:"U+0-FFFF"}}function $D(t,e){const n=[],r=new Set;for(const s of e){const a=[s["font-family"],s["font-weight"],s["font-style"],s["unicode-range"],s.src].join("|");r.has(a)||(r.add(a),n.push(s))}if(n.length===0)return;const i=wt("style",{type:"text/css"});i.innerHTML=n.map(s=>`
|
|
535
540
|
@font-face {
|
|
536
541
|
font-family: ${s["font-family"]};
|
|
537
542
|
src: ${s.src};
|
|
@@ -541,5 +546,5 @@ ${t.trim()}
|
|
|
541
546
|
unicode-range: ${s["unicode-range"]};
|
|
542
547
|
}
|
|
543
548
|
`.trim()).join(`
|
|
544
|
-
`);const o=t.querySelector("defs");o&&o.parentNode?o.parentNode.insertBefore(i,o.nextSibling):t.insertBefore(i,t.firstChild)}function dR(t){return Cr(this,null,function*(){const e=t3.get(t);if(e)return e;const n=yield fetch(t);if(!n.ok)throw new Error(`Failed to load font: ${t}`);const r=yield n.blob(),i=yield new Promise((o,s)=>{const a=new FileReader;a.onloadend=()=>{o(a.result)},a.onerror=s,a.readAsDataURL(r)});return t3.set(t,i),i})}var Kc=(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 uR(t){return Kc(this,arguments,function*(e,n={}){const r=yield e3(e,n),i=new XMLSerializer().serializeToString(r);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i)})}function e3(t){return Kc(this,arguments,function*(e,n={}){const{embedResources:r=!0}=n,i=e.cloneNode(!0),{width:o,height:s}=Tl(e);return Bt(i,{width:o,height:s}),yield fR(i),yield iR(i,r),gR(i),i})}function fR(t){return Kc(this,null,function*(){const e=t.querySelectorAll("use"),n=pR(t);e.forEach(r=>{const i=r.getAttribute("href");if(!i)return;if(!t.querySelector(i)){const s=document.querySelector(i);s&&n.appendChild(s.cloneNode(!0))}})})}const n3="icon-defs";function pR(t){const e=fr(t,n3);if(e)return e;const n=ft("defs");return Br(n,n3),t.prepend(n),n}function gR(t){mR(t),yR(t),vR(t),xR(t)}function mR(t){const e=fr(t,Ct.BtnsGroup);e==null||e.remove();const n=fr(t,"btn-icon-defs");n==null||n.remove()}function yR(t){const e=t.querySelector("[data-element-type=transient-container]");e==null||e.remove()}function vR(t){t.querySelectorAll("g").forEach(n=>{n.removeAttribute("x"),n.removeAttribute("y"),n.removeAttribute("width"),n.removeAttribute("height")})}function xR(t){Da(t,e=>{for(const n in e.dataset)delete e.dataset[n]})}var bR=(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 _R(t){return bR(this,arguments,function*(e,n={}){var r;const{dpr:i=(r=globalThis.devicePixelRatio)!=null?r:2}=n,o=yield e3(e),{width:s,height:a}=Tl(o);return new Promise((l,c)=>{try{const h=document.createElement("canvas");h.width=s*i,h.height=a*i;const u=h.getContext("2d");if(!u){c(new Error("Failed to get canvas context"));return}u.scale(i,i),u.imageSmoothingEnabled=!0,u.imageSmoothingQuality="high",o.setAttribute("width",String(s)),o.setAttribute("height",String(a));const f=new XMLSerializer().serializeToString(o),p="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(f),g=new Image;g.onload=function(){u.clearRect(0,0,s,a),u.drawImage(g,0,0,s,a);const y=h.toDataURL("image/png");l(y)},g.onerror=function(y){c(new Error("Image load failed: "+y))},g.src=p}catch(h){c(h)}})})}var wR=Object.defineProperty,$R=Object.defineProperties,PR=Object.getOwnPropertyDescriptors,js=Object.getOwnPropertySymbols,r3=Object.prototype.hasOwnProperty,i3=Object.prototype.propertyIsEnumerable,o3=(t,e,n)=>e in t?wR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Te=(t,e)=>{for(var n in e||(e={}))r3.call(e,n)&&o3(t,n,e[n]);if(js)for(var n of js(e))i3.call(e,n)&&o3(t,n,e[n]);return t},Bs=(t,e)=>$R(t,PR(e)),Mr=(t,e)=>{var n={};for(var r in t)r3.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&js)for(var r of js(t))e.indexOf(r)<0&&i3.call(t,r)&&(n[r]=t[r]);return n};function OR(t){const e=t,{container:n="#container",padding:r=0,template:i,design:o,theme:s,themeConfig:a}=e,l=Mr(e,["container","padding","template","design","theme","themeConfig"]),c=typeof n=="string"?document.querySelector(n)||document.createElement("div"):n,u=i?th(i)||{}:{},{design:f}=u,p=Mr(u,["design"]);return Bs(Te(Te({},p),l),{container:c,padding:Vn(r),template:i,design:CR(Te(Te({},f),o),t),theme:s,themeConfig:ER(s,u0(Te({},p==null?void 0:p.themeConfig),a))})}function Qc(t){if(typeof t=="string")return{type:t};if(!("type"in t))throw new Error("Type is required");return t}function CR(t,e){const{structure:n,title:r,item:i,items:o}=t||{},s=s3(i||(o==null?void 0:o[0]),e);return{structure:MR(n),title:SR(r,e),item:s,items:o?o.map(a=>s3(a,e)):[s]}}function MR(t){if(!t)throw new Error("Structure is required in design or template");const e=Qc(t),{type:n}=e,r=Mr(e,["type"]),i=pm(n);if(!i)throw new Error(`Structure ${n} not found`);const{component:o}=i;return Bs(Te({},i),{component:s=>o(Te(Te({},s),r))})}function SR(t,e){if(!t)return{component:null};const n=Qc(t),{type:r}=n,i=Mr(n,["type"]),{themeConfig:o}=e,s=(o==null?void 0:o.colorBg)||"#fff",a=a3(s,s);return{component:l=>xp(Te(Bs(Te({},l),{themeColors:a}),i))}}function s3(t,e){if(!t)throw new Error("Item is required in design or template");const n=Qc(t),{type:r}=n,i=Mr(n,["type"]),o=Mp(r);if(!o)throw new Error(`Item ${r} not found`);const{component:s,options:a}=o;return Bs(Te({},o),{component:l=>{var c;const{indexes:h}=l,{data:u,themeConfig:f}=e,p=(f==null?void 0:f.colorBg)||"#fff",g=l,{themeColors:y=a3(no(f==null?void 0:f.palette,h,(c=u==null?void 0:u.items)==null?void 0:c.length)||(f==null?void 0:f.colorPrimary)||"#FF356A",p)}=g,m=Mr(g,["themeColors"]);return s(Te(Te({themeColors:y},m),i))},options:a})}function ER(t,e={}){var n;const r=t?bp(t)||{}:{},i=u0({},r,e);return i.palette=e.palette||r.palette,i.stylize=(n=e.stylize)!=null?n:r.stylize,i.colorPrimary||(i.colorPrimary="#FF356A"),i.palette||(i.palette=[i.colorPrimary]),i}function a3(t,e="#fff"){return $p({colorPrimary:t,isDarkMode:Pd(e),colorBg:e})}const IR=()=>[new Fy,new Xy],TR=()=>[new ly,new q2,new U2,new cy,new dy,new my,new py],AR={padding:20,theme:"light",themeConfig:{palette:"antv"},get plugins(){return IR()},get interactions(){return TR()}};var kR=Object.defineProperty,zR=Object.defineProperties,LR=Object.getOwnPropertyDescriptors,l3=Object.getOwnPropertySymbols,HR=Object.prototype.hasOwnProperty,RR=Object.prototype.propertyIsEnumerable,c3=(t,e,n)=>e in t?kR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Sn=(t,e)=>{for(var n in e||(e={}))HR.call(e,n)&&c3(t,n,e[n]);if(l3)for(var n of l3(e))RR.call(e,n)&&c3(t,n,e[n]);return t},DR=(t,e)=>zR(t,LR(e));function NR(t,e){return DR(Sn(Sn({},t),e),{design:Sn(Sn({},t.design),e.design),themeConfig:Sn(Sn({},t.themeConfig),e.themeConfig),svg:Sn(Sn({},t.svg),e.svg)})}var jR=Object.defineProperty,BR=Object.defineProperties,FR=Object.getOwnPropertyDescriptors,h3=Object.getOwnPropertySymbols,VR=Object.prototype.hasOwnProperty,WR=Object.prototype.propertyIsEnumerable,d3=(t,e,n)=>e in t?jR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u3=(t,e)=>{for(var n in e||(e={}))VR.call(e,n)&&d3(t,n,e[n]);if(h3)for(var n of h3(e))WR.call(e,n)&&d3(t,n,e[n]);return t},YR=(t,e)=>BR(t,FR(e)),XR=(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())});class GR{constructor(e){this.rendered=!1,this.emitter=new XH,this.node=null,this.options=YR(u3({},e),{data:h0(e.data),elements:h0(e.elements||[])}),this.parsedOptions=OR(NR(AR,this.options))}getOptions(){return this.options}render(){const{container:e}=this.parsedOptions,n=this.compose(),r=new W9(this.parsedOptions,n);this.node=r.render(),e.replaceChildren(this.node),this.options.editable&&(this.editor=new tR(this.emitter,this.node,this.parsedOptions)),this.rendered=!0,this.emitter.emit("rendered",{node:this.node,options:this.options})}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,h=i.component,u=o.map(g=>g.component),f=I0(d(a,u3({data:n,Title:c,Item:h,Items:u,options:this.parsedOptions},l))),p=ur(f);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 x_({structure:n,items:r})}toDataURL(e){return XR(this,null,function*(){if(!this.node)throw new Error("Infographic is not rendered yet.");return(e==null?void 0:e.type)==="svg"?yield uR(this.node,e):yield _R(this.node,e)})}on(e,n){this.emitter.on(e,n)}off(e,n){this.emitter.off(e,n)}destroy(){var e,n;(e=this.editor)==null||e.destroy(),(n=this.node)==null||n.remove(),this.node=null,this.rendered=!1,this.emitter.emit("destroyed"),this.emitter.removeAllListeners()}}const qR=ke.version;j.AlignLayout=ni,j.BadgeCard=Ip,j.BrushSelect=q2,j.BtnAdd=K,j.BtnRemove=Ht,j.BtnsGroup=bt,j.CandyCardLite=kp,j.CapsuleItem=Bp,j.ChartBar=gm,j.ChartColumn=mm,j.ChartLine=bm,j.ChartPie=_m,j.CircleNode=Wp,j.CircularProgress=Gp,j.ClickSelect=U2,j.CompactCard=Kp,j.CompareBinaryHorizontal=Tm,j.CompareHierarchyLeftRight=Lm,j.CompareHierarchyRow=Hm,j.DblClickEditText=ly,j.Defs=Mt,j.DoneList=tg,j.DragElement=cy,j.EditBar=Fy,j.Ellipse=St,j.FlexLayout=ot,j.Fragment=Ur,j.Gap=Yt,j.Group=X,j.HierarchyMindmap=Ym,j.HierarchyTree=qm,j.HorizontalIconArrow=rg,j.HorizontalIconLine=lg,j.HotkeyHistory=dy,j.IconBadge=dg,j.Illus=B0,j.IndexedCard=pg,j.Infographic=GR,j.Interaction=Cn,j.ItemDesc=Ft,j.ItemIcon=ge,j.ItemIconCircle=Yn,j.ItemLabel=vt,j.ItemValue=ei,j.ItemsGroup=Pt,j.LCornerCard=yg,j.LabelText=Eg,j.LetterCard=bg,j.LinedText=$g,j.ListColumn=Um,j.ListGrid=Zm,j.ListPyramid=Km,j.ListRow=Qm,j.ListSector=e2,j.ListWaterfall=n2,j.Path=at,j.PillBadge=Cg,j.Plugin=Bc,j.Polygon=We,j.ProgressCard=R1,j.Quadrant=r2,j.QuarterCircular=j1,j.QuarterSimpleCard=V1,j.Rect=xt,j.RelationCircle=i2,j.RelationNetwork=o2,j.ResizeElement=Xy,j.RibbonCard=X1,j.RoundedRectNode=U1,j.SelectHighlight=py,j.SequenceAscendingStairs3d=g2,j.SequenceAscendingSteps=m2,j.SequenceCircleArrows=v2,j.SequenceCircular=x2,j.SequenceColorSnakeSteps=b2,j.SequenceFilterMesh=P2,j.SequenceHorizontalZigzag=O2,j.SequenceMountain=S2,j.SequencePyramid=E2,j.SequenceRoadmapVertical=T2,j.SequenceSnakeSteps=A2,j.SequenceSteps=k2,j.SequenceTimeline=z2,j.SequenceZigzagPucks3d=H2,j.SequenceZigzagSteps=F2,j.ShapesGroup=qt,j.SimpleHorizontalArrow=Q1,j.SimpleIllusItem=em,j.SimpleItem=im,j.SimpleVerticalArrow=am,j.Text=$t,j.Title=xp,j.UnderlineText=hm,j.VERSION=qR,j.VerticalIconArrow=fm,j.ZoomWheel=my,j.cloneElement=$n,j.createFragment=i8,j.createLayout=Rl,j.getCombinedBounds=yr,j.getElementBounds=tt,j.getElementsBounds=Wn,j.getFont=Qa,j.getFonts=Ja,j.getItem=Mp,j.getItemProps=Dt,j.getItems=I$,j.getPalette=Iu,j.getPaletteColor=no,j.getStructure=pm,j.getStructures=AA,j.getTemplate=th,j.getTemplates=g3,j.getTheme=bp,j.getThemeColors=me,j.getThemes=f$,j.jsx=Po,j.jsxDEV=s8,j.jsxs=o8,j.loadSVGResource=Wa,j.parseSVG=ur,j.registerFont=Mu,j.registerItem=Nt,j.registerPalette=el,j.registerPattern=rf,j.registerResourceLoader=M_,j.registerStructure=Ot,j.registerTemplate=Jc,j.registerTheme=Bl,j.renderSVG=I0,j.sequenceCylinders3d=_2,j.setDefaultFont=t5,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})}));
|
|
549
|
+
`);const o=t.querySelector("defs");o&&o.parentNode?o.parentNode.insertBefore(i,o.nextSibling):t.insertBefore(i,t.firstChild)}function PD(t){return Nr(this,null,function*(){const e=k3.get(t);if(e)return e;const n=yield fetch(t);if(!n.ok)throw new Error(`Failed to load font: ${t}`);const r=yield n.blob(),i=yield new Promise((o,s)=>{const a=new FileReader;a.onloadend=()=>{o(a.result)},a.onerror=s,a.readAsDataURL(r)});return k3.set(t,i),i})}var ph=(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 OD(t){return ph(this,arguments,function*(e,n={}){const r=yield z3(e,n),i=new XMLSerializer().serializeToString(r);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i)})}function z3(t){return ph(this,arguments,function*(e,n={}){const{embedResources:r=!0}=n,i=e.cloneNode(!0),{width:o,height:s}=ql(e);return Yt(i,{width:o,height:s}),yield CD(i),yield yD(i,r),SD(i),i})}function CD(t){return ph(this,null,function*(){const e=t.querySelectorAll("use"),n=MD(t);e.forEach(r=>{const i=r.getAttribute("href");if(!i)return;if(!t.querySelector(i)){const s=document.querySelector(i);s&&n.appendChild(s.cloneNode(!0))}})})}const L3="icon-defs";function MD(t){const e=Or(t,L3);if(e)return e;const n=wt("defs");return ti(n,L3),t.prepend(n),n}function SD(t){ED(t),ID(t),TD(t),AD(t)}function ED(t){const e=Or(t,kt.BtnsGroup);e==null||e.remove();const n=Or(t,"btn-icon-defs");n==null||n.remove()}function ID(t){const e=t.querySelector("[data-element-type=transient-container]");e==null||e.remove()}function TD(t){t.querySelectorAll("g").forEach(n=>{n.removeAttribute("x"),n.removeAttribute("y"),n.removeAttribute("width"),n.removeAttribute("height")})}function AD(t){rl(t,e=>{for(const n in e.dataset)delete e.dataset[n]})}var kD=(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 zD(t){return kD(this,arguments,function*(e,n={}){var r;const{dpr:i=(r=globalThis.devicePixelRatio)!=null?r:2}=n,o=yield z3(e),{width:s,height:a}=ql(o);return new Promise((l,c)=>{try{const h=document.createElement("canvas");h.width=s*i,h.height=a*i;const u=h.getContext("2d");if(!u){c(new Error("Failed to get canvas context"));return}u.scale(i,i),u.imageSmoothingEnabled=!0,u.imageSmoothingQuality="high",o.setAttribute("width",String(s)),o.setAttribute("height",String(a));const f=new XMLSerializer().serializeToString(o),p="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(f),g=new Image;g.onload=function(){u.clearRect(0,0,s,a),u.drawImage(g,0,0,s,a);const y=h.toDataURL("image/png");l(y)},g.onerror=function(y){c(new Error("Image load failed: "+y))},g.src=p}catch(h){c(h)}})})}var LD=Object.defineProperty,RD=Object.defineProperties,HD=Object.getOwnPropertyDescriptors,ra=Object.getOwnPropertySymbols,R3=Object.prototype.hasOwnProperty,H3=Object.prototype.propertyIsEnumerable,D3=(t,e,n)=>e in t?LD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,qe=(t,e)=>{for(var n in e||(e={}))R3.call(e,n)&&D3(t,n,e[n]);if(ra)for(var n of ra(e))H3.call(e,n)&&D3(t,n,e[n]);return t},ia=(t,e)=>RD(t,HD(e)),jr=(t,e)=>{var n={};for(var r in t)R3.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ra)for(var r of ra(t))e.indexOf(r)<0&&H3.call(t,r)&&(n[r]=t[r]);return n};function DD(t){const e=t,{container:n="#container",padding:r=0,template:i,design:o,theme:s,themeConfig:a}=e,l=jr(e,["container","padding","template","design","theme","themeConfig"]),c=typeof n=="string"?document.querySelector(n)||document.createElement("div"):n,h=i?$h(i):void 0,u=H0({},h==null?void 0:h.themeConfig,a),f=s||a||h!=null&&h.themeConfig?BD(s,u):void 0,p={container:c,padding:Qn(r)};if(h){const g=h,{design:y}=g,m=jr(g,["design"]);Object.assign(p,m)}if(Object.assign(p,l),i&&(p.template=i),h!=null&&h.design||o){const g=ND(qe(qe({},h==null?void 0:h.design),o),f?ia(qe({},t),{themeConfig:f}):t);ru(g)&&(p.design=g)}return s&&(p.theme=s),f&&(p.themeConfig=f),p}function gh(t){if(typeof t=="string")return{type:t};if(!("type"in t))throw new Error("Type is required");return t}function ND(t,e){const{structure:n,title:r,item:i,items:o}=t||{},s=N3(i||(o==null?void 0:o[0]),e);return{structure:jD(n),title:FD(r,e),item:s,items:o?o.map(a=>N3(a,e)):[s]}}function jD(t){if(!t)return null;const e=gh(t),{type:n}=e,r=jr(e,["type"]),i=Nm(n);if(!i)return null;const{component:o}=i;return ia(qe({},i),{component:s=>o(qe(qe({},s),r))})}function FD(t,e){if(!t)return{component:null};const n=gh(t),{type:r}=n,i=jr(n,["type"]),{themeConfig:o}=e,s=(o==null?void 0:o.colorBg)||"#fff",a=j3(s,s);return{component:l=>Vp(qe(ia(qe({},l),{themeColors:a}),i))}}function N3(t,e){if(!t)return null;const n=gh(t),{type:r}=n,i=jr(n,["type"]),o=Qp(r);if(!o)return null;const{component:s,options:a}=o;return ia(qe({},o),{component:l=>{var c;const{indexes:h}=l,{data:u,themeConfig:f}=e,p=(f==null?void 0:f.colorBg)||"#fff",g=l,{themeColors:y=j3(xo(f==null?void 0:f.palette,h,(c=u==null?void 0:u.items)==null?void 0:c.length)||(f==null?void 0:f.colorPrimary)||"#FF356A",p)}=g,m=jr(g,["themeColors"]);return s(qe(qe({themeColors:y},m),i))},options:a})}function BD(t,e={}){var n;const r=t?Yp(t)||{}:{},i=H0({},r,e);return i.palette=e.palette||r.palette,i.stylize=(n=e.stylize)!=null?n:r.stylize,i.colorPrimary||(i.colorPrimary="#FF356A"),i.palette||(i.palette=[i.colorPrimary]),i}function j3(t,e="#fff"){return qp({colorPrimary:t,isDarkMode:qd(e),colorBg:e})}function WD(t){return t===" "||t===" "}function VD(t){let e=0,n=0;for(;n<t.length;){const r=t[n];if(r===" "){e+=1,n+=1;continue}if(r===" "){e+=2,n+=1;continue}break}return{indent:e,content:t.slice(n)}}function YD(t){return t.trimEnd()}function F3(t){const e=t.trim();if(!e)return null;const n=e.match(/^([^:\s=]+)\s*[:=]\s*(.*)$/);if(n)return{key:n[1],value:n[2].trim()};const r=e.match(/^([^\s]+)\s+(.*)$/);return r?{key:r[1],value:r[2].trim()}:{key:e,value:void 0}}function mh(t,e){return{kind:"object",line:t,value:e,entries:{}}}function XD(t){return{kind:"array",line:t,items:[]}}function GD(t){const e=[],n=mh(0),r=[{indent:-1,node:n,parent:null,key:null}];return t.split(/\r?\n/).forEach((o,s)=>{const a=s+1;if(!o.trim())return;const{indent:l,content:c}=VD(o),h=YD(c);if(!h.trim())return;for(;r.length>1&&l<=r[r.length-1].indent;)r.pop();const u=r[r.length-1];let f=u.node;const p=h.trim();if(p.startsWith("-")&&(p.length===1||WD(p[1]))){if(f.kind!=="array")if(f.kind==="object"&&Object.keys(f.entries).length===0&&f.value===void 0&&u.parent&&u.key){const v=XD(f.line);if(u.parent.kind==="object")u.parent.entries[u.key]=v;else if(u.parent.kind==="array"){const x=u.parent.items.indexOf(f);x>=0&&(u.parent.items[x]=v)}u.node=v,f=v}else{e.push({path:"",line:a,code:"bad_list",message:"List item is not under an array container.",raw:p});return}const m=p.slice(1).trim(),b=mh(a,m||void 0);f.items.push(b),r.push({indent:l,node:b,parent:f});return}const g=F3(p);if(!g){e.push({path:"",line:a,code:"bad_syntax",message:"Invalid syntax line.",raw:p});return}if(f.kind!=="object"){e.push({path:"",line:a,code:"bad_syntax",message:"Key-value pair is not under an object container.",raw:p});return}const y=mh(a,g.value);f.entries[g.key]=y,r.push({indent:l,node:y,parent:f,key:g.key})}),{ast:n,errors:e}}function B3(t){return F3(t)}function yh(t,e){return{kind:"value",line:e,value:t}}function fr(t){const e=t.trim();return e==="true"?!0:e==="false"?!1:/^-?\d+(\.\d+)?$/.test(e)?parseFloat(e):e}function ji(t){if(t.kind==="value"||t.kind==="object")return t.value}function Ee(t,e,n,r,i,o){t.push({path:n,line:e.line,code:r,message:i,raw:o})}function qD(t,e="any"){let n=t.trim();if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1).trim()),!n)return[];let r;return e==="comma"?r=n.split(","):e==="space"?r=n.split(/\s+/):r=n.split(/[,\s]+/),r.map(i=>i.trim()).filter(Boolean)}function vh(t){if(t.kind==="array")return t.items.map(r=>vh(r));if(t.kind==="value"||!(Object.keys(t.entries).length>0)&&t.value!==void 0)return fr(t.value);const n={};return t.value!==void 0&&(n.value=fr(t.value)),Object.entries(t.entries).forEach(([r,i])=>{n[r]=vh(i)}),n}function UD(t,e,n,r){let i,o=null;for(const s of e.variants){const a=[],l=Ne(t,s,n,a);(o===null||a.length<o.length)&&(o=a,i=l)}return o&&r.push(...o),i}function Ne(t,e,n,r){switch(e.kind){case"union":return UD(t,e,n,r);case"string":{const i=ji(t);if(i===void 0){Ee(r,t,n,"schema_mismatch","Expected string value.");return}return i}case"number":{const i=ji(t);if(i===void 0){Ee(r,t,n,"schema_mismatch","Expected number value.");return}const s=i.trim().match(/^(-?\d+(\.\d+)?)(?:\s*(#|\/\/).*)?$/);if(!s){Ee(r,t,n,"invalid_value","Invalid number value.",i);return}return parseFloat(s[1])}case"boolean":{const i=ji(t);if(i===void 0){Ee(r,t,n,"schema_mismatch","Expected boolean value.");return}if(i!=="true"&&i!=="false"){Ee(r,t,n,"invalid_value","Invalid boolean value.",i);return}return i==="true"}case"enum":{const i=ji(t);if(i===void 0){Ee(r,t,n,"schema_mismatch","Expected enum value.");return}if(!e.values.includes(i)){Ee(r,t,n,"invalid_value","Invalid enum value.",i);return}return i}case"array":{if(t.kind==="array")return t.items.map((a,l)=>Ne(a,e.item,`${n}[${l}]`,r)).filter(a=>a!==void 0);if(t.kind==="object"&&Object.keys(t.entries).length>0){Ee(r,t,n,"schema_mismatch","Expected array value.");return}const i=ji(t);if(i===void 0){Ee(r,t,n,"schema_mismatch","Expected array value.");return}const o=i.trim();return o.startsWith("[")&&!o.endsWith("]")?void 0:qD(i,e.split).map((a,l)=>Ne(yh(a,t.line),e.item,`${n}[${l}]`,r)).filter(a=>a!==void 0)}case"object":{if(t.kind==="array"){Ee(r,t,n,"schema_mismatch","Expected object value.");return}const i={};if(t.kind==="value"){if(e.shorthandKey)return i[e.shorthandKey]=t.value,i;const o=B3(t.value);if((o==null?void 0:o.value)!==void 0){if(e.fields[o.key]){const s=Ne(yh(o.value,t.line),e.fields[o.key],`${n}.${o.key}`,r);return s!==void 0&&(i[o.key]=s),i}return e.allowUnknown?(i[o.key]=fr(o.value),i):(Ee(r,t,`${n}.${o.key}`,"unknown_key","Unknown key in object.",o.key),i)}if(e.allowUnknown)return i.value=fr(t.value),i;Ee(r,t,n,"invalid_value","Expected object value.");return}if(t.value!==void 0)if(e.shorthandKey&&i[e.shorthandKey]===void 0)i[e.shorthandKey]=t.value;else{const o=B3(t.value);if((o==null?void 0:o.value)!==void 0)if(e.fields[o.key]){const s=Ne(yh(o.value,t.line),e.fields[o.key],`${n}.${o.key}`,r);s!==void 0&&i[o.key]===void 0&&(i[o.key]=s)}else e.allowUnknown?i[o.key]=fr(o.value):Ee(r,t,`${n}.${o.key}`,"unknown_key","Unknown key in object.",o.key);else e.allowUnknown&&(i.value=fr(t.value))}return Object.entries(t.entries).forEach(([o,s])=>{const a=e.fields[o];if(!a){if(e.allowUnknown){i[o]=vh(s);return}Ee(r,s,`${n}.${o}`,"unknown_key","Unknown key in object.",o);return}const l=Ne(s,a,`${n}.${o}`,r);l!==void 0&&(i[o]=l)}),i}default:return}}const we=()=>({kind:"string"}),Hn=()=>({kind:"number"}),ZD=t=>({kind:"enum",values:t}),oa=(t,e="any")=>({kind:"array",item:t,split:e}),Ie=(t,e={})=>({kind:"object",fields:t,allowUnknown:e.allowUnknown,shorthandKey:e.shorthandKey}),bh=(...t)=>({kind:"union",variants:t}),xh=Ie({});xh.fields={label:we(),value:bh(Hn(),we()),desc:we(),icon:we(),children:oa(xh)};const W3=Ie({type:we(),colorBg:we(),colorPrimary:we(),palette:oa(we(),"any"),title:Ie({},{allowUnknown:!0}),desc:Ie({},{allowUnknown:!0}),base:Ie({global:Ie({},{allowUnknown:!0}),shape:Ie({},{allowUnknown:!0}),text:Ie({},{allowUnknown:!0})}),stylize:Ie({type:ZD(["rough","pattern"]),roughness:Hn(),bowing:Hn(),fillWeight:Hn(),hachureGap:Hn(),pattern:we(),backgroundColor:we(),foregroundColor:we(),scale:Hn()},{shorthandKey:"type"})},{shorthandKey:"type"}),sa=Ie({},{allowUnknown:!0,shorthandKey:"type"}),V3=Ie({structure:sa,item:sa,items:oa(sa),title:sa}),Y3=Ie({title:we(),desc:we(),items:oa(xh)}),X3=Ie({type:we()},{shorthandKey:"type"}),G3=Ie({template:X3,design:V3,data:Y3,theme:W3,width:bh(Hn(),we()),height:bh(Hn(),we())});var KD=Object.defineProperty,aa=Object.getOwnPropertySymbols,q3=Object.prototype.hasOwnProperty,U3=Object.prototype.propertyIsEnumerable,Z3=(t,e,n)=>e in t?KD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,QD=(t,e)=>{for(var n in e||(e={}))q3.call(e,n)&&Z3(t,n,e[n]);if(aa)for(var n of aa(e))U3.call(e,n)&&Z3(t,n,e[n]);return t},JD=(t,e)=>{var n={};for(var r in t)q3.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&aa)for(var r of aa(t))e.indexOf(r)<0&&U3.call(t,r)&&(n[r]=t[r]);return n};function tN(t,e){if(!t)return;const n=Ne(t,X3,"template",e);if(n){if(typeof n=="string")return n;if(typeof n=="object"&&typeof n.type=="string")return n.type}}function K3(t){const{ast:e,errors:n}=GD(t),r=[],i={},o=QD({},e.entries),s=e.entries.infographic;let a;s&&s.kind==="object"&&(s.value&&(a=s.value),Object.entries(s.entries).forEach(([m,b])=>{m in o||(o[m]=b)}));const l=new Set(["infographic","template","design","data","theme","width","height"]);Object.keys(o).forEach(m=>{l.has(m)||n.push({path:m,line:o[m].line,code:"unknown_key",message:"Unknown top-level key.",raw:m})});const c=o.template,h=tN(c,n);h&&(i.template=h),!i.template&&a&&(i.template=a);const u=o.design;if(u){const m=Ne(u,V3,"design",n);m&&(i.design=m)}const f=o.data;if(f){const m=Ne(f,Y3,"data",n);m&&(i.data=m)}const p=o.theme;if(p){const m=Ne(p,W3,"theme",n);if(m&&typeof m=="object"){const b=m,{type:v}=b,x=JD(b,["type"]);typeof v=="string"&&v&&(i.theme=v),Object.keys(x).length>0&&(i.themeConfig=x)}}const g=o.width;if(g){const m=Ne(g,G3.fields.width,"width",n);m!==void 0&&(i.width=m)}const y=o.height;if(y){const m=Ne(y,G3.fields.height,"height",n);m!==void 0&&(i.height=m)}return{options:i,errors:n,warnings:r,ast:e}}const eN=()=>[new w3,new O3],nN=()=>[new Fy,new My,new Sy,new By,new Vy,new Uy,new Gy],rN={padding:20,theme:"light",themeConfig:{palette:"antv"},get plugins(){return eN()},get interactions(){return nN()}};var iN=Object.defineProperty,Q3=Object.getOwnPropertySymbols,oN=Object.prototype.hasOwnProperty,sN=Object.prototype.propertyIsEnumerable,J3=(t,e,n)=>e in t?iN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_n=(t,e)=>{for(var n in e||(e={}))oN.call(e,n)&&J3(t,n,e[n]);if(Q3)for(var n of Q3(e))sN.call(e,n)&&J3(t,n,e[n]);return t};function tv(t,e){const n=_n(_n({},t),e);return(t.design||e.design)&&(n.design=_n(_n({},t.design),e.design)),(t.themeConfig||e.themeConfig)&&(n.themeConfig=_n(_n({},t.themeConfig),e.themeConfig)),(t.svg||e.svg)&&(n.svg=_n(_n({},t.svg),e.svg)),n}function aN(t){const e=_n({},t);return e.data&&(e.data=L0(e.data)),e.elements&&(e.elements=L0(e.elements)),e}function ev(t){const{design:e,data:n}=t;return!(!e||!ru(e)||!n||!Array.isArray(n.items)||n.items.length<1)}var lN=Object.defineProperty,nv=Object.getOwnPropertySymbols,cN=Object.prototype.hasOwnProperty,hN=Object.prototype.propertyIsEnumerable,rv=(t,e,n)=>e in t?lN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dN=(t,e)=>{for(var n in e||(e={}))cN.call(e,n)&&rv(t,n,e[n]);if(nv)for(var n of nv(e))hN.call(e,n)&&rv(t,n,e[n]);return t},uN=(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())});class fN{constructor(e){this.rendered=!1,this.emitter=new oD,this.node=null,this.setOptions(e)}getOptions(){return this.options}setOptions(e){const{options:n,errors:r,warnings:i}=pN(e);this.options=tv(this.options||{},n),this.parsedOptions=DD(tv(rN,this.options)),i.length&&this.emitter.emit("warning",i),r.length&&this.emitter.emit("error",r)}render(e){var n;e&&this.setOptions(e);const r=this.parsedOptions;if(!ev(r)){this.emitter.emit("error",new Error("Incomplete options"));return}const{container:i}=this.parsedOptions,o=this.compose(r),s=new q8(r,o);this.node=s.render(),i==null||i.replaceChildren(this.node),(n=this.editor)==null||n.destroy(),this.editor=void 0,this.options.editable&&(this.editor=new fD(this.emitter,this.node,r)),this.rendered=!0,this.emitter.emit("rendered",{node:this.node,options:this.options})}compose(e){const{design:n,data:r}=e,{title:i,item:o,items:s,structure:a}=n,{component:l,props:c}=a,h=i.component,u=o.component,f=s.map(y=>y.component),p=ep(d(l,dN({data:r,Title:h,Item:u,Items:f,options:e},c))),g=Pr(p);if(!g)throw new Error("Failed to parse SVG template");return g}getTypes(){const e=this.parsedOptions;if(!ev(e)){this.emitter.emit("error",new Error("Incomplete options"));return}const n=e.design,r=n.structure.composites||[],i=n.items.map(o=>o.composites||[]);return p4({structure:r,items:i})}toDataURL(e){return uN(this,null,function*(){if(!this.node)throw new Error("Infographic is not rendered yet.");return(e==null?void 0:e.type)==="svg"?yield OD(this.node,e):yield zD(this.node,e)})}on(e,n){this.emitter.on(e,n)}off(e,n){this.emitter.off(e,n)}destroy(){var e,n;(e=this.editor)==null||e.destroy(),(n=this.node)==null||n.remove(),this.node=null,this.rendered=!1,this.emitter.emit("destroyed"),this.emitter.removeAllListeners()}}function pN(t){if(typeof t=="string"){const{options:e,errors:n,warnings:r}=K3(t);return{options:e,errors:n,warnings:r}}return{options:aN(t),errors:[],warnings:[]}}const gN=He.version;F.AlignLayout=mi,F.BadgeCard=eg,F.BrushSelect=My,F.BtnAdd=q,F.BtnRemove=Ft,F.BtnsGroup=Ot,F.CandyCardLite=ig,F.CapsuleItem=ug,F.ChartBar=jm,F.ChartColumn=Fm,F.ChartLine=Ym,F.ChartPie=Xm,F.ChartWordCloud=Qm,F.CircleNode=gg,F.CircularProgress=vg,F.ClickSelect=Sy,F.CompactCard=_g,F.CompareBinaryHorizontal=l2,F.CompareHierarchyLeftRight=u2,F.CompareHierarchyRow=f2,F.DblClickEditText=Fy,F.Defs=zt,F.DoneList=Og,F.DragElement=By,F.EditBar=w3,F.Ellipse=Lt,F.FlexLayout=lt,F.Fragment=ci,F.Gap=Kt,F.Group=Y,F.HierarchyMindmap=_2,F.HierarchyTree=C2,F.HorizontalIconArrow=Sg,F.HorizontalIconLine=kg,F.HotkeyHistory=Vy,F.IconBadge=Rg,F.Illus=up,F.IndexedCard=Ng,F.Infographic=fN,F.Interaction=Ln,F.ItemDesc=Xt,F.ItemIcon=ve,F.ItemIconCircle=tr,F.ItemLabel=$t,F.ItemValue=gi,F.ItemsGroup=It,F.LCornerCard=Bg,F.LabelText=t1,F.LetterCard=Yg,F.LinedText=qg,F.ListColumn=M2,F.ListGrid=S2,F.ListPyramid=E2,F.ListRow=I2,F.ListSector=k2,F.ListWaterfall=z2,F.Path=ht,F.PillBadge=Kg,F.Plugin=ih,F.Polygon=De,F.ProgressCard=lm,F.Quadrant=L2,F.QuarterCircular=dm,F.QuarterSimpleCard=pm,F.Rect=St,F.RelationCircle=R2,F.RelationNetwork=H2,F.ResizeElement=O3,F.RibbonCard=ym,F.RoundedRectNode=xm,F.SelectHighlight=Gy,F.SequenceAscendingStairs3d=G2,F.SequenceAscendingSteps=q2,F.SequenceCircleArrows=Z2,F.SequenceCircular=K2,F.SequenceColorSnakeSteps=Q2,F.SequenceFilterMesh=ny,F.SequenceHorizontalZigzag=ry,F.SequenceMountain=sy,F.SequencePyramid=ay,F.SequenceRoadmapVertical=cy,F.SequenceSnakeSteps=hy,F.SequenceStairsFront=dy,F.SequenceSteps=uy,F.SequenceTimeline=fy,F.SequenceZigzagPucks3d=gy,F.SequenceZigzagSteps=wy,F.ShapesGroup=ne,F.SimpleHorizontalArrow=$m,F.SimpleIllusItem=Cm,F.SimpleItem=Em,F.SimpleVerticalArrow=Am,F.Text=Et,F.Title=Vp,F.UnderlineText=Lm,F.VERSION=gN,F.VerticalIconArrow=Dm,F.ZoomWheel=Uy,F.cloneElement=An,F.createFragment=l$,F.createLayout=tc,F.getCombinedBounds=Ir,F.getElementBounds=Q,F.getElementsBounds=Jn,F.getFont=gl,F.getFonts=ml,F.getItem=Qp,F.getItemProps=Wt,F.getItems=zP,F.getPalette=ef,F.getPaletteColor=xo,F.getStructure=Nm,F.getStructures=Rk,F.getTemplate=$h,F.getTemplates=av,F.getTheme=Yp,F.getThemeColors=be,F.getThemes=yP,F.jsx=Fo,F.jsxDEV=h$,F.jsxs=c$,F.loadSVGResource=Cr,F.parseSVG=Pr,F.parseSyntax=K3,F.registerFont=Qu,F.registerItem=Vt,F.registerPalette=vl,F.registerPattern=Ef,F.registerResourceLoader=C4,F.registerStructure=Tt,F.registerTemplate=_h,F.registerTheme=ic,F.renderSVG=ep,F.sequenceCylinders3d=J2,F.setDefaultFont=i5,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})}));
|
|
545
550
|
//# sourceMappingURL=infographic.min.js.map
|