rasa-pro 3.14.0.dev3__py3-none-any.whl → 3.14.0.dev4__py3-none-any.whl
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.
Potentially problematic release.
This version of rasa-pro might be problematic. Click here for more details.
- rasa/agents/constants.py +8 -0
- rasa/agents/core/agent_protocol.py +1 -2
- rasa/agents/protocol/a2a/a2a_agent.py +628 -17
- rasa/agents/protocol/mcp/mcp_base_agent.py +4 -2
- rasa/core/actions/action.py +13 -8
- rasa/core/available_agents.py +3 -0
- rasa/core/channels/development_inspector.py +3 -3
- rasa/core/channels/hangouts.py +2 -2
- rasa/core/channels/inspector/dist/assets/{arc-2e78c586.js → arc-63212852.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{blockDiagram-38ab4fdb-806b712e.js → blockDiagram-38ab4fdb-eecf6b13.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{c4Diagram-3d4e48cf-0745efa9.js → c4Diagram-3d4e48cf-8f798a9a.js} +1 -1
- rasa/core/channels/inspector/dist/assets/channel-0cd70adf.js +1 -0
- rasa/core/channels/inspector/dist/assets/{classDiagram-70f12bd4-7bd1082b.js → classDiagram-70f12bd4-df71a04c.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{classDiagram-v2-f2320105-d937ba49.js → classDiagram-v2-f2320105-9b275968.js} +1 -1
- rasa/core/channels/inspector/dist/assets/clone-a0f9c4ed.js +1 -0
- rasa/core/channels/inspector/dist/assets/{createText-2e5e7dd3-a2a564ca.js → createText-2e5e7dd3-1c669cad.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{edges-e0da2a9e-b5256940.js → edges-e0da2a9e-b1553799.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{erDiagram-9861fffd-e6883ad2.js → erDiagram-9861fffd-112388d6.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{flowDb-956e92f1-e576fc02.js → flowDb-956e92f1-fdebec47.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{flowDiagram-66a62f08-2e298d01.js → flowDiagram-66a62f08-6280ede1.js} +1 -1
- rasa/core/channels/inspector/dist/assets/flowDiagram-v2-96b9c2cf-de9cc4aa.js +1 -0
- rasa/core/channels/inspector/dist/assets/{flowchart-elk-definition-4a651766-dd7b150a.js → flowchart-elk-definition-4a651766-e1dc03e5.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{ganttDiagram-c361ad54-5b79575c.js → ganttDiagram-c361ad54-83f68c51.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{gitGraphDiagram-72cf32ee-3016f40a.js → gitGraphDiagram-72cf32ee-22f8666f.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{graph-3e19170f.js → graph-ca9e6217.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{index-3862675e-eb9c86de.js → index-3862675e-c5ceb692.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{index-1bd9135e.js → index-3e293924.js} +3 -3
- rasa/core/channels/inspector/dist/assets/{infoDiagram-f8f76790-b4280e4d.js → infoDiagram-f8f76790-faa9999b.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{journeyDiagram-49397b02-556091f8.js → journeyDiagram-49397b02-c4dda8d9.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{layout-08436411.js → layout-d4307784.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{line-683c4f3b.js → line-0567aaa7.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{linear-cee6d791.js → linear-c11b95cf.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{mindmap-definition-fc14e90a-a0bf0b1a.js → mindmap-definition-fc14e90a-0c7d3ca9.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{pieDiagram-8a3498a8-3730d5c4.js → pieDiagram-8a3498a8-34b433fa.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{quadrantDiagram-120e2f19-12a20fed.js → quadrantDiagram-120e2f19-4cab816e.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{requirementDiagram-deff3bca-b9732102.js → requirementDiagram-deff3bca-8c22fa9e.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{sankeyDiagram-04a897e0-a2e72776.js → sankeyDiagram-04a897e0-70ce9e8e.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{sequenceDiagram-704730f1-8b7a76bb.js → sequenceDiagram-704730f1-fbcd7fc9.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{stateDiagram-587899a1-e65853ac.js → stateDiagram-587899a1-45f05ea6.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{stateDiagram-v2-d93cdb3a-6f58a44b.js → stateDiagram-v2-d93cdb3a-beab1ea6.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{styles-6aaf32cf-df25b934.js → styles-6aaf32cf-2f29dbd5.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{styles-9a916d00-88357141.js → styles-9a916d00-951eac83.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{styles-c10674c1-d600174d.js → styles-c10674c1-897fbfdd.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{svgDrawCommon-08f97a94-4adc3e0b.js → svgDrawCommon-08f97a94-d667fac1.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{timeline-definition-85554ec2-42816fa1.js → timeline-definition-85554ec2-e3205144.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{xychartDiagram-e933f94c-621eb66a.js → xychartDiagram-e933f94c-4abeb0e2.js} +1 -1
- rasa/core/channels/inspector/dist/index.html +1 -1
- rasa/core/channels/inspector/src/components/DialogueStack.tsx +1 -1
- rasa/core/channels/studio_chat.py +6 -6
- rasa/core/channels/voice_stream/genesys.py +1 -1
- rasa/core/policies/flows/flow_executor.py +42 -1
- rasa/core/policies/intentless_policy.py +1 -1
- rasa/core/policies/unexpected_intent_policy.py +1 -0
- rasa/core/processor.py +12 -14
- rasa/core/tracker_stores/tracker_store.py +3 -7
- rasa/core/train.py +1 -1
- rasa/core/training/interactive.py +16 -16
- rasa/core/training/story_conflict.py +5 -5
- rasa/dialogue_understanding/generator/llm_command_generator.py +1 -1
- rasa/dialogue_understanding/generator/multi_step/multi_step_llm_command_generator.py +1 -1
- rasa/e2e_test/e2e_test_runner.py +7 -2
- rasa/engine/caching.py +2 -2
- rasa/engine/recipes/default_components.py +10 -18
- rasa/graph_components/validators/default_recipe_validator.py +134 -134
- rasa/hooks.py +5 -5
- rasa/llm_fine_tuning/utils.py +2 -2
- rasa/model_manager/warm_rasa_process.py +1 -1
- rasa/nlu/extractors/extractor.py +2 -1
- rasa/plugin.py +8 -8
- rasa/privacy/privacy_manager.py +11 -2
- rasa/server.py +4 -2
- rasa/shared/core/events.py +9 -1
- rasa/shared/core/flows/yaml_flows_io.py +1 -1
- rasa/shared/core/slots.py +2 -2
- rasa/shared/core/trackers.py +5 -2
- rasa/shared/exceptions.py +4 -0
- rasa/shared/utils/yaml.py +3 -1
- rasa/tracing/instrumentation/instrumentation.py +8 -8
- rasa/tracing/instrumentation/intentless_policy_instrumentation.py +4 -4
- rasa/utils/log_utils.py +1 -1
- rasa/utils/ml_utils.py +1 -1
- rasa/utils/tensorflow/rasa_layers.py +1 -1
- rasa/utils/train_utils.py +15 -15
- rasa/validator.py +16 -14
- rasa/version.py +1 -1
- {rasa_pro-3.14.0.dev3.dist-info → rasa_pro-3.14.0.dev4.dist-info}/METADATA +12 -15
- {rasa_pro-3.14.0.dev3.dist-info → rasa_pro-3.14.0.dev4.dist-info}/RECORD +90 -90
- rasa/core/channels/inspector/dist/assets/channel-c436ca7c.js +0 -1
- rasa/core/channels/inspector/dist/assets/clone-50dd656b.js +0 -1
- rasa/core/channels/inspector/dist/assets/flowDiagram-v2-96b9c2cf-2b2aeaf8.js +0 -1
- {rasa_pro-3.14.0.dev3.dist-info → rasa_pro-3.14.0.dev4.dist-info}/NOTICE +0 -0
- {rasa_pro-3.14.0.dev3.dist-info → rasa_pro-3.14.0.dev4.dist-info}/WHEEL +0 -0
- {rasa_pro-3.14.0.dev3.dist-info → rasa_pro-3.14.0.dev4.dist-info}/entry_points.txt +0 -0
|
@@ -400,7 +400,7 @@ Error generating stack: `+i.message+`
|
|
|
400
400
|
100% {
|
|
401
401
|
opacity: 1;
|
|
402
402
|
}
|
|
403
|
-
`,nve={global:{body:e=>({bg:ar("neutral.300","neutral.300")(e),color:ar("neutral.900","neutral.900")(e),fontFamily:e.fonts.body,fontSize:e.rasaFontSizes.md,letterSpacing:"0.025rem"}),".pulse":{animation:`${rve} 2s infinite`}}};const ive={body:"Lato, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",heading:"Lato, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",mono:'"IBM Plex Mono", "Courier New", Courier, monospace'},ove={xs:"0.5rem",sm:"0.813rem",md:"0.875rem",lg:"1rem",xl:"1.5rem"},ave={normal:400,bold:700},sve={defaultProps:{variant:"solidRasa"},baseStyle:()=>({letterSpacing:"wide"}),sizes:{md:({theme:e})=>({fontSize:e.rasaFontSizes.md,borderRadius:e.rasaRadii.normal})},variants:{solidRasa:e=>{const{theme:t}=e;return{...t.components.Button.variants.solid(e),backgroundColor:ar(t.colors.rasaPurple[800],t.colors.rasaPurple[800])(e)}}}},lve={baseStyle:{fontWeight:"bold",letterSpacing:"wide"},sizes:{sm:({theme:e})=>({fontSize:e.rasaFontSizes.sm,lineHeight:"short",margin:0}),md:({theme:e})=>({fontSize:e.rasaFontSizes.md,margin:0}),lg:({theme:e})=>({fontSize:e.rasaFontSizes.lg,margin:0}),xl:({theme:e})=>({fontSize:e.rasaFontSizes.xl,lineHeight:"100%",margin:0})},defaultProps:{size:"md"}},uve={baseStyle:e=>({field:{"::-webkit-calendar-picker-indicator":{display:"none"},":disabled":{cursor:"not-allowed",opacity:"1 !important",backgroundColor:ar(e.theme.colors.neutral[300],e.theme.colors.neutral[300])(e)}}}),sizes:{md:({theme:e})=>({field:{fontSize:e.rasaFontSizes.md}})}},cve={baseStyle:e=>({color:ar("rasaPurple.700","rasaPurple.700")(e),fontWeight:"bold",textDecoration:"underline"})},fve={baseStyle:e=>({table:{thead:{bgColor:ar("neutral.50","neutral.50")(e),position:"sticky",top:0,zIndex:e.theme.zIndices.docked},th:{color:ar("neutral.900","neutral.900")(e),fontSize:e.theme.rasaFontSizes.md,py:e.theme.rasaSpace[.5],pl:0,pr:e.theme.rasaSpace[.5],border:"none",textTransform:"none"},tr:{td:{borderColor:e.theme.colors.neutral[400]},_last:{td:{borderBottom:"none"}}},td:{py:e.theme.rasaSpace[.5],pl:0,pr:e.theme.rasaSpace[.5],bgColor:ar("neutral.50","neutral.50")(e)}}})},dve={baseStyle:e=>{const{theme:t}=e;return{dialog:{borderRadius:t.rasaRadii.large,fontSize:t.rasaFontSizes.md,width:"75%",height:"85%",margin:"auto"},dialogContainer:{zIndex:t.zIndices.modal,"> section":{maxW:"100%"}},overlay:{zIndex:t.zIndices.modalOverlay},header:{borderBottom:"1px solid",borderColor:ar("neutral.300","neutral.300")(e),px:t.rasaSpace[2],pt:t.rasaSpace[2],pb:t.rasaSpace[1.5],pr:t.rasaSpace[3],lineHeight:1,fontSize:t.rasaFontSizes.lg},body:{px:t.rasaSpace[2],py:t.rasaSpace[1.5],overflow:"auto"},closeButton:{right:t.rasaSpace[1],top:t.rasaSpace[1]}}}},hve={baseStyle:({theme:e})=>({letterSpacing:"wide",borderRadius:e.rasaRadii.normal,padding:e.rasaSpace[.5],textAlign:"center",bgColor:e.colors.neutral[800],"--tooltip-bg":e.colors.neutral[800]})},Ave={initialColorMode:"light",useSystemColorMode:!1},pve=bae({config:Ave,components:{Button:sve,Heading:lve,Input:uve,Link:cve,Modal:dve,Table:fve,Tooltip:hve},styles:nve,fonts:ive,breakpoints:Zge,colors:jy,rasaFontSizes:ove,rasaFontWeights:ave,rasaRadii:Kge,rasaSpace:eve,rasaShadows:Jge,rasaSizes:$ge,zIndices:tve},wae({colorScheme:"rasaPurple"})),$s=()=>rb(),mve=e=>he.jsxs(Qi,{as:"svg",...e,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"51",fill:"none",viewBox:"0 0 41 51",children:[he.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M34.041 10.59V7.508H21.385v12.847h3.037v-3.867h6.582v3.854h3.037v-9.763.013zm-3.037 2.827h-6.582V10.59h6.582v2.826zM19.36 29.74V35.52H6.956v-3.083h9.366V30.64H6.956v-7.965H19.36v3.083H9.994v1.798h9.366v2.184zM34.041 25.75v-3.084H21.385v12.847h3.037v-3.867h6.582V35.5h3.037v-9.764.013zm-3.037 2.826h-6.582v-2.827h6.582v2.827z",clipRule:"evenodd"}),he.jsx("path",{fill:"#fff",d:"M36.826 4.689v33.578h-5.248v5.724l-9.487-5.318-.744-.417H4.179V4.69h32.654-.007zm3.298-3.34H.881v40.258h19.618l14.368 8.054v-8.054h5.25V1.349h.007z"}),he.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M15.287 15.464l3.888-1.436.185-.074V7.515H6.956v.257l-.028 12.59h3.038V17.43l2.278-.838 3.417 3.77h3.752l-4.126-4.897zM9.97 14.15v-3.55h6.351V11.8l-6.351 2.348z",clipRule:"evenodd"})]}),gve=e=>he.jsxs(Qi,{as:"svg",...e,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"51",fill:"none",viewBox:"0 0 41 51",children:[he.jsx("path",{fill:"#7622D2",fillRule:"evenodd",d:"M34.041 10.59V7.508H21.385v12.847h3.037v-3.867h6.582v3.854h3.037v-9.763.013zm-3.037 2.827h-6.582V10.59h6.582v2.826zM19.36 29.74V35.52H6.956v-3.083h9.366V30.64H6.956v-7.965H19.36v3.083H9.994v1.798h9.366v2.184zM34.041 25.75v-3.084H21.385v12.847h3.037v-3.867h6.582V35.5h3.037v-9.764.013zm-3.037 2.826h-6.582v-2.827h6.582v2.827z",clipRule:"evenodd"}),he.jsx("path",{fill:"#7622D2",d:"M36.826 4.689v33.578h-5.248v5.724l-9.487-5.318-.744-.417H4.179V4.69h32.654-.007zm3.298-3.34H.881v40.258h19.618l14.368 8.054v-8.054h5.25V1.349h.007z"}),he.jsx("path",{fill:"#7622D2",fillRule:"evenodd",d:"M15.287 15.464l3.888-1.436.185-.074V7.515H6.956v.257l-.028 12.59h3.038V17.43l2.278-.838 3.417 3.77h3.752l-4.126-4.897zM9.97 14.15v-3.55h6.351V11.8l-6.351 2.348z",clipRule:"evenodd"})]}),vve=({sx:e,isRecruitmentVisible:t,...n})=>{const{rasaSpace:r}=$s(),o={...e,color:t?"black":"neutral.50",bg:t?"white":void 0,bgGradient:t?void 0:"linear(to-b, #4E61E1, #7622D2)"},i={flexGrow:0,color:t?"#0000EE":"neutral.50",textDecoration:"underline",_hover:{color:t?"link.visited":"neutral.400"}};return he.jsxs(ko,{sx:o,...n,children:[he.jsxs(Qi,{children:[he.jsx(ub,{as:"h1",size:"xl",mb:r[1],children:"Rasa Inspector"}),he.jsx(Ui,{as:"span",children:"New to the Inspector?"}),he.jsx(P_,{sx:i,href:"https://rasa.com/docs/rasa-pro/production/inspect-assistant/",target:"_blank",ml:r[.25],children:"Browse the docs"})]}),t?he.jsx(gve,{sx:{flexShrink:0,marginLeft:"auto"}}):he.jsx(mve,{sx:{flexShrink:0,marginLeft:"auto"}})]})};function wS(e){return Array.isArray(e)}function xS(e){return e!==null&&typeof e=="object"&&(e.constructor===void 0||e.constructor.name==="Object")}function yve(e,t){return JSON.stringify(e)===JSON.stringify(t)}function IX(e){return e.slice(0,e.length-1)}function bve(e){return e[e.length-1]}function NX(e){return typeof e=="object"&&e!==null}function k6(e){if(wS(e)){const t=e.slice();return Object.getOwnPropertySymbols(e).forEach(n=>{t[n]=e[n]}),t}else if(xS(e)){const t={...e};return Object.getOwnPropertySymbols(e).forEach(n=>{t[n]=e[n]}),t}else return e}function E6(e,t,n){if(e[t]===n)return e;{const r=k6(e);return r[t]=n,r}}function Og(e,t){let n=e,r=0;for(;r<t.length;)xS(n)?n=n[t[r]]:wS(n)?n=n[parseInt(t[r])]:n=void 0,r++;return n}function pb(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t.length===0)return n;const o=t[0],i=pb(e?e[o]:void 0,t.slice(1),n,r);if(xS(e)||wS(e))return E6(e,o,i);if(r){const a=wve.test(o)?[]:{};return a[o]=i,a}else throw new Error("Path does not exist")}const wve=/^\d+$/;function RX(e,t,n){if(t.length===0)return n(e);if(!NX(e))throw new Error("Path doesn't exist");const r=t[0],o=RX(e[r],t.slice(1),n);return E6(e,r,o)}function T6(e,t){if(t.length===0)return e;if(!NX(e))throw new Error("Path does not exist");if(t.length===1){const o=t[0];if(o in e){const i=k6(e);return wS(i)&&i.splice(parseInt(o),1),xS(i)&&delete i[o],i}else return e}const n=t[0],r=T6(e[n],t.slice(1));return E6(e,n,r)}function O6(e,t,n){const r=t.slice(0,t.length-1),o=t[t.length-1];return RX(e,r,i=>{if(!Array.isArray(i))throw new TypeError("Array expected at path "+JSON.stringify(r));const a=k6(i);return a.splice(parseInt(o),0,n),a})}function FX(e,t){return e===void 0?!1:t.length===0?!0:e===null?!1:FX(e[t[0]],t.slice(1))}function zX(e){const t=e.split("/");return t.shift(),t.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function rE(e){return e.map(xve).join("")}function xve(e){return"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")}function jX(e,t,n){let r=e;for(let o=0;o<t.length;o++){Bve(t[o]);let i=t[o];if(n&&n.before){const l=n.before(r,i);if(l!==void 0){if(l.document!==void 0&&(r=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(i=l.operation)}}const a=r,s=Lve(r,i.path);if(i.op==="add")r=kve(r,s,i.value);else if(i.op==="remove")r=Sve(r,s);else if(i.op==="replace")r=Cve(r,s,i.value);else if(i.op==="copy")r=Eve(r,s,pD(i.from));else if(i.op==="move")r=Tve(r,s,pD(i.from));else if(i.op==="test")Ove(r,s,i.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(i));if(n&&n.after){const l=n.after(r,i,a);l!==void 0&&(r=l)}}return r}function Cve(e,t,n){return pb(e,t,n)}function Sve(e,t){return T6(e,t)}function kve(e,t,n){return P6(e,t)?O6(e,t,n):pb(e,t,n)}function Eve(e,t,n){const r=Og(e,n);if(P6(e,t))return O6(e,t,r);{const o=Og(e,n);return pb(e,t,o)}}function Tve(e,t,n){const r=Og(e,n),o=T6(e,n);return P6(o,t)?O6(o,t,r):pb(o,t,r)}function Ove(e,t,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${rE(t)}")`);if(!FX(e,t))throw new Error(`Test failed: path not found (path: "${rE(t)}")`);const r=Og(e,t);if(!yve(r,n))throw new Error(`Test failed, value differs (path: "${rE(t)}")`)}function P6(e,t){if(t.length===0)return!1;const n=Og(e,IX(t));return Array.isArray(n)}function Pve(e,t){if(bve(t)!=="-")return t;const n=IX(t),r=Og(e,n);return n.concat(r.length)}function Bve(e){if(!["add","remove","replace","copy","move","test"].includes(e.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(e.op));if(typeof e.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(e));if((e.op==="copy"||e.op==="move")&&typeof e.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(e))}function Lve(e,t){return Pve(e,zX(t))}function pD(e){return zX(e)}const HX=e=>{if(!e)return!1;const t=e.length;return t>10&&t<89},Mve=(e,t)=>{let n=e.map(i=>({...i,ended:!1})),r=[],o=[];for(const i of t)if(i.event==="restart")r=[],n=[];else if(i.event==="stack"){let a=JSON.parse(i.update||"");r=jX(r,a);for(const s of r){if(!s.flow_id||n.find(u=>u.frame_id===s.frame_id))continue;const l=o.find(u=>u.frame_id===s.frame_id);if(l){l.step_id=s.step_id;continue}o.push({...s,ended:!0})}}return o=o.filter(i=>i.flow_id!=="pattern_collect_information"),[...o,...n]},v5=e=>{let t=[],n={};for(const r of e)if(r.event==="restart")t=[],n={};else if(r.event==="stack"){let o=JSON.parse(r.update||"");if(t=jX(t,o),t.length>0){let i=t[t.length-1];if(!i.flow_id)continue;(!n[i.flow_id]||i.step_id==="START")&&(n[i.flow_id]=[]),n[i.flow_id].includes(i.step_id)||n[i.flow_id].push(i.step_id)}}return n},Dve=(e,t,n)=>{e!=null&&e.isUserSelected||(e=void 0);const r=t.find(o=>o.frame_id===(e==null?void 0:e.stack.frame_id));if(!r||r.ended){if(!t)return;const o=t.slice().reverse().find(i=>{var a;return!((a=i.flow_id)!=null&&a.startsWith("pattern_"))&&!i.ended})||t.slice().reverse().find(i=>!i.ended)||t[t.length-1];return o!==void 0?{stack:o,isUserSelected:!1,activatedSteps:v5(n)[o.flow_id]||[]}:void 0}else return e&&(e.activatedSteps=v5(n)[e.stack.flow_id]||[],e.stack=r),e};function mD({stack:e,highlighted:t,selectable:n,onItemClick:r}){const o={_hover:{cursor:"pointer"}},i={td:{bg:So("warning.50","warning.50")},_last:{td:{border:"none"}}},a=e.agent_id??e.step_id;return he.jsxs(O1,{sx:t?i:n?o:void 0,onClick:()=>r==null?void 0:r(e),children:[he.jsx(Eg,{children:he.jsx(Tg,{label:`${e.flow_id} (${e.frame_id})`,hasArrow:!0,children:he.jsx(Ui,{noOfLines:1,children:e.step_id})})}),he.jsx(Eg,{children:HX(a)?he.jsx(Tg,{label:`${a} ${e.agent_id&&`(${e.step_id})`}`,hasArrow:!0,children:he.jsx(Ui,{noOfLines:1,children:a})}):he.jsx(Ui,{noOfLines:1,children:a})})]})}const Ive=({sx:e,stack:t,active:n,onItemClick:r,...o})=>{const{rasaSpace:i}=$s(),a={...e,pr:0,pb:0,flexDirection:"column"},s={height:"100%",overflow:"auto",pr:i[1],pb:i[.5]};return he.jsxs(ko,{sx:a,...o,children:[he.jsxs(ko,{children:[he.jsx(ub,{size:"lg",mb:i[.5],children:"History"}),he.jsxs(Ui,{ml:i[.25],children:["(",t.length," flows)"]})]}),he.jsx(Qi,{sx:s,children:he.jsxs(dS,{width:"100%",layout:"fixed",children:[he.jsx(oX,{children:he.jsxs(O1,{children:[he.jsx(z3,{children:"Flow"}),he.jsx(z3,{width:"40%",children:"Step ID"})]})}),he.jsxs(g6,{children:[t.length>0&&[...t].reverse().map(l=>he.jsx(mD,{stack:l,highlighted:l.frame_id==(n==null?void 0:n.frame_id),onItemClick:r,selectable:!0})),t.length===0&&he.jsx(mD,{stack:{frame_id:"-",flow_id:"-",step_id:"-",ended:!1}})]})]})})]})};function Nve(e,t){if(e==null)return{};var n=YH(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function y5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rve(e){if(Array.isArray(e))return y5(e)}function Fve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zve(e,t){if(e){if(typeof e=="string")return y5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y5(e,t)}}function jve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
403
|
+
`,nve={global:{body:e=>({bg:ar("neutral.300","neutral.300")(e),color:ar("neutral.900","neutral.900")(e),fontFamily:e.fonts.body,fontSize:e.rasaFontSizes.md,letterSpacing:"0.025rem"}),".pulse":{animation:`${rve} 2s infinite`}}};const ive={body:"Lato, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",heading:"Lato, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",mono:'"IBM Plex Mono", "Courier New", Courier, monospace'},ove={xs:"0.5rem",sm:"0.813rem",md:"0.875rem",lg:"1rem",xl:"1.5rem"},ave={normal:400,bold:700},sve={defaultProps:{variant:"solidRasa"},baseStyle:()=>({letterSpacing:"wide"}),sizes:{md:({theme:e})=>({fontSize:e.rasaFontSizes.md,borderRadius:e.rasaRadii.normal})},variants:{solidRasa:e=>{const{theme:t}=e;return{...t.components.Button.variants.solid(e),backgroundColor:ar(t.colors.rasaPurple[800],t.colors.rasaPurple[800])(e)}}}},lve={baseStyle:{fontWeight:"bold",letterSpacing:"wide"},sizes:{sm:({theme:e})=>({fontSize:e.rasaFontSizes.sm,lineHeight:"short",margin:0}),md:({theme:e})=>({fontSize:e.rasaFontSizes.md,margin:0}),lg:({theme:e})=>({fontSize:e.rasaFontSizes.lg,margin:0}),xl:({theme:e})=>({fontSize:e.rasaFontSizes.xl,lineHeight:"100%",margin:0})},defaultProps:{size:"md"}},uve={baseStyle:e=>({field:{"::-webkit-calendar-picker-indicator":{display:"none"},":disabled":{cursor:"not-allowed",opacity:"1 !important",backgroundColor:ar(e.theme.colors.neutral[300],e.theme.colors.neutral[300])(e)}}}),sizes:{md:({theme:e})=>({field:{fontSize:e.rasaFontSizes.md}})}},cve={baseStyle:e=>({color:ar("rasaPurple.700","rasaPurple.700")(e),fontWeight:"bold",textDecoration:"underline"})},fve={baseStyle:e=>({table:{thead:{bgColor:ar("neutral.50","neutral.50")(e),position:"sticky",top:0,zIndex:e.theme.zIndices.docked},th:{color:ar("neutral.900","neutral.900")(e),fontSize:e.theme.rasaFontSizes.md,py:e.theme.rasaSpace[.5],pl:0,pr:e.theme.rasaSpace[.5],border:"none",textTransform:"none"},tr:{td:{borderColor:e.theme.colors.neutral[400]},_last:{td:{borderBottom:"none"}}},td:{py:e.theme.rasaSpace[.5],pl:0,pr:e.theme.rasaSpace[.5],bgColor:ar("neutral.50","neutral.50")(e)}}})},dve={baseStyle:e=>{const{theme:t}=e;return{dialog:{borderRadius:t.rasaRadii.large,fontSize:t.rasaFontSizes.md,width:"75%",height:"85%",margin:"auto"},dialogContainer:{zIndex:t.zIndices.modal,"> section":{maxW:"100%"}},overlay:{zIndex:t.zIndices.modalOverlay},header:{borderBottom:"1px solid",borderColor:ar("neutral.300","neutral.300")(e),px:t.rasaSpace[2],pt:t.rasaSpace[2],pb:t.rasaSpace[1.5],pr:t.rasaSpace[3],lineHeight:1,fontSize:t.rasaFontSizes.lg},body:{px:t.rasaSpace[2],py:t.rasaSpace[1.5],overflow:"auto"},closeButton:{right:t.rasaSpace[1],top:t.rasaSpace[1]}}}},hve={baseStyle:({theme:e})=>({letterSpacing:"wide",borderRadius:e.rasaRadii.normal,padding:e.rasaSpace[.5],textAlign:"center",bgColor:e.colors.neutral[800],"--tooltip-bg":e.colors.neutral[800]})},Ave={initialColorMode:"light",useSystemColorMode:!1},pve=bae({config:Ave,components:{Button:sve,Heading:lve,Input:uve,Link:cve,Modal:dve,Table:fve,Tooltip:hve},styles:nve,fonts:ive,breakpoints:Zge,colors:jy,rasaFontSizes:ove,rasaFontWeights:ave,rasaRadii:Kge,rasaSpace:eve,rasaShadows:Jge,rasaSizes:$ge,zIndices:tve},wae({colorScheme:"rasaPurple"})),$s=()=>rb(),mve=e=>he.jsxs(Qi,{as:"svg",...e,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"51",fill:"none",viewBox:"0 0 41 51",children:[he.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M34.041 10.59V7.508H21.385v12.847h3.037v-3.867h6.582v3.854h3.037v-9.763.013zm-3.037 2.827h-6.582V10.59h6.582v2.826zM19.36 29.74V35.52H6.956v-3.083h9.366V30.64H6.956v-7.965H19.36v3.083H9.994v1.798h9.366v2.184zM34.041 25.75v-3.084H21.385v12.847h3.037v-3.867h6.582V35.5h3.037v-9.764.013zm-3.037 2.826h-6.582v-2.827h6.582v2.827z",clipRule:"evenodd"}),he.jsx("path",{fill:"#fff",d:"M36.826 4.689v33.578h-5.248v5.724l-9.487-5.318-.744-.417H4.179V4.69h32.654-.007zm3.298-3.34H.881v40.258h19.618l14.368 8.054v-8.054h5.25V1.349h.007z"}),he.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M15.287 15.464l3.888-1.436.185-.074V7.515H6.956v.257l-.028 12.59h3.038V17.43l2.278-.838 3.417 3.77h3.752l-4.126-4.897zM9.97 14.15v-3.55h6.351V11.8l-6.351 2.348z",clipRule:"evenodd"})]}),gve=e=>he.jsxs(Qi,{as:"svg",...e,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"51",fill:"none",viewBox:"0 0 41 51",children:[he.jsx("path",{fill:"#7622D2",fillRule:"evenodd",d:"M34.041 10.59V7.508H21.385v12.847h3.037v-3.867h6.582v3.854h3.037v-9.763.013zm-3.037 2.827h-6.582V10.59h6.582v2.826zM19.36 29.74V35.52H6.956v-3.083h9.366V30.64H6.956v-7.965H19.36v3.083H9.994v1.798h9.366v2.184zM34.041 25.75v-3.084H21.385v12.847h3.037v-3.867h6.582V35.5h3.037v-9.764.013zm-3.037 2.826h-6.582v-2.827h6.582v2.827z",clipRule:"evenodd"}),he.jsx("path",{fill:"#7622D2",d:"M36.826 4.689v33.578h-5.248v5.724l-9.487-5.318-.744-.417H4.179V4.69h32.654-.007zm3.298-3.34H.881v40.258h19.618l14.368 8.054v-8.054h5.25V1.349h.007z"}),he.jsx("path",{fill:"#7622D2",fillRule:"evenodd",d:"M15.287 15.464l3.888-1.436.185-.074V7.515H6.956v.257l-.028 12.59h3.038V17.43l2.278-.838 3.417 3.77h3.752l-4.126-4.897zM9.97 14.15v-3.55h6.351V11.8l-6.351 2.348z",clipRule:"evenodd"})]}),vve=({sx:e,isRecruitmentVisible:t,...n})=>{const{rasaSpace:r}=$s(),o={...e,color:t?"black":"neutral.50",bg:t?"white":void 0,bgGradient:t?void 0:"linear(to-b, #4E61E1, #7622D2)"},i={flexGrow:0,color:t?"#0000EE":"neutral.50",textDecoration:"underline",_hover:{color:t?"link.visited":"neutral.400"}};return he.jsxs(ko,{sx:o,...n,children:[he.jsxs(Qi,{children:[he.jsx(ub,{as:"h1",size:"xl",mb:r[1],children:"Rasa Inspector"}),he.jsx(Ui,{as:"span",children:"New to the Inspector?"}),he.jsx(P_,{sx:i,href:"https://rasa.com/docs/rasa-pro/production/inspect-assistant/",target:"_blank",ml:r[.25],children:"Browse the docs"})]}),t?he.jsx(gve,{sx:{flexShrink:0,marginLeft:"auto"}}):he.jsx(mve,{sx:{flexShrink:0,marginLeft:"auto"}})]})};function wS(e){return Array.isArray(e)}function xS(e){return e!==null&&typeof e=="object"&&(e.constructor===void 0||e.constructor.name==="Object")}function yve(e,t){return JSON.stringify(e)===JSON.stringify(t)}function IX(e){return e.slice(0,e.length-1)}function bve(e){return e[e.length-1]}function NX(e){return typeof e=="object"&&e!==null}function k6(e){if(wS(e)){const t=e.slice();return Object.getOwnPropertySymbols(e).forEach(n=>{t[n]=e[n]}),t}else if(xS(e)){const t={...e};return Object.getOwnPropertySymbols(e).forEach(n=>{t[n]=e[n]}),t}else return e}function E6(e,t,n){if(e[t]===n)return e;{const r=k6(e);return r[t]=n,r}}function Og(e,t){let n=e,r=0;for(;r<t.length;)xS(n)?n=n[t[r]]:wS(n)?n=n[parseInt(t[r])]:n=void 0,r++;return n}function pb(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t.length===0)return n;const o=t[0],i=pb(e?e[o]:void 0,t.slice(1),n,r);if(xS(e)||wS(e))return E6(e,o,i);if(r){const a=wve.test(o)?[]:{};return a[o]=i,a}else throw new Error("Path does not exist")}const wve=/^\d+$/;function RX(e,t,n){if(t.length===0)return n(e);if(!NX(e))throw new Error("Path doesn't exist");const r=t[0],o=RX(e[r],t.slice(1),n);return E6(e,r,o)}function T6(e,t){if(t.length===0)return e;if(!NX(e))throw new Error("Path does not exist");if(t.length===1){const o=t[0];if(o in e){const i=k6(e);return wS(i)&&i.splice(parseInt(o),1),xS(i)&&delete i[o],i}else return e}const n=t[0],r=T6(e[n],t.slice(1));return E6(e,n,r)}function O6(e,t,n){const r=t.slice(0,t.length-1),o=t[t.length-1];return RX(e,r,i=>{if(!Array.isArray(i))throw new TypeError("Array expected at path "+JSON.stringify(r));const a=k6(i);return a.splice(parseInt(o),0,n),a})}function FX(e,t){return e===void 0?!1:t.length===0?!0:e===null?!1:FX(e[t[0]],t.slice(1))}function zX(e){const t=e.split("/");return t.shift(),t.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function rE(e){return e.map(xve).join("")}function xve(e){return"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")}function jX(e,t,n){let r=e;for(let o=0;o<t.length;o++){Bve(t[o]);let i=t[o];if(n&&n.before){const l=n.before(r,i);if(l!==void 0){if(l.document!==void 0&&(r=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(i=l.operation)}}const a=r,s=Lve(r,i.path);if(i.op==="add")r=kve(r,s,i.value);else if(i.op==="remove")r=Sve(r,s);else if(i.op==="replace")r=Cve(r,s,i.value);else if(i.op==="copy")r=Eve(r,s,pD(i.from));else if(i.op==="move")r=Tve(r,s,pD(i.from));else if(i.op==="test")Ove(r,s,i.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(i));if(n&&n.after){const l=n.after(r,i,a);l!==void 0&&(r=l)}}return r}function Cve(e,t,n){return pb(e,t,n)}function Sve(e,t){return T6(e,t)}function kve(e,t,n){return P6(e,t)?O6(e,t,n):pb(e,t,n)}function Eve(e,t,n){const r=Og(e,n);if(P6(e,t))return O6(e,t,r);{const o=Og(e,n);return pb(e,t,o)}}function Tve(e,t,n){const r=Og(e,n),o=T6(e,n);return P6(o,t)?O6(o,t,r):pb(o,t,r)}function Ove(e,t,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${rE(t)}")`);if(!FX(e,t))throw new Error(`Test failed: path not found (path: "${rE(t)}")`);const r=Og(e,t);if(!yve(r,n))throw new Error(`Test failed, value differs (path: "${rE(t)}")`)}function P6(e,t){if(t.length===0)return!1;const n=Og(e,IX(t));return Array.isArray(n)}function Pve(e,t){if(bve(t)!=="-")return t;const n=IX(t),r=Og(e,n);return n.concat(r.length)}function Bve(e){if(!["add","remove","replace","copy","move","test"].includes(e.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(e.op));if(typeof e.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(e));if((e.op==="copy"||e.op==="move")&&typeof e.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(e))}function Lve(e,t){return Pve(e,zX(t))}function pD(e){return zX(e)}const HX=e=>{if(!e)return!1;const t=e.length;return t>10&&t<89},Mve=(e,t)=>{let n=e.map(i=>({...i,ended:!1})),r=[],o=[];for(const i of t)if(i.event==="restart")r=[],n=[];else if(i.event==="stack"){let a=JSON.parse(i.update||"");r=jX(r,a);for(const s of r){if(!s.flow_id||n.find(u=>u.frame_id===s.frame_id))continue;const l=o.find(u=>u.frame_id===s.frame_id);if(l){l.step_id=s.step_id;continue}o.push({...s,ended:!0})}}return o=o.filter(i=>i.flow_id!=="pattern_collect_information"),[...o,...n]},v5=e=>{let t=[],n={};for(const r of e)if(r.event==="restart")t=[],n={};else if(r.event==="stack"){let o=JSON.parse(r.update||"");if(t=jX(t,o),t.length>0){let i=t[t.length-1];if(!i.flow_id)continue;(!n[i.flow_id]||i.step_id==="START")&&(n[i.flow_id]=[]),n[i.flow_id].includes(i.step_id)||n[i.flow_id].push(i.step_id)}}return n},Dve=(e,t,n)=>{e!=null&&e.isUserSelected||(e=void 0);const r=t.find(o=>o.frame_id===(e==null?void 0:e.stack.frame_id));if(!r||r.ended){if(!t)return;const o=t.slice().reverse().find(i=>{var a;return!((a=i.flow_id)!=null&&a.startsWith("pattern_"))&&!i.ended})||t.slice().reverse().find(i=>!i.ended)||t[t.length-1];return o!==void 0?{stack:o,isUserSelected:!1,activatedSteps:v5(n)[o.flow_id]||[]}:void 0}else return e&&(e.activatedSteps=v5(n)[e.stack.flow_id]||[],e.stack=r),e};function mD({stack:e,highlighted:t,selectable:n,onItemClick:r}){const o={_hover:{cursor:"pointer"}},i={td:{bg:So("warning.50","warning.50")},_last:{td:{border:"none"}}},a=e.agent_id??e.step_id;return he.jsxs(O1,{sx:t?i:n?o:void 0,onClick:()=>r==null?void 0:r(e),children:[he.jsx(Eg,{children:he.jsx(Tg,{label:`${e.flow_id} (${e.frame_id})`,hasArrow:!0,children:he.jsx(Ui,{noOfLines:1,children:e.flow_id})})}),he.jsx(Eg,{children:HX(a)?he.jsx(Tg,{label:`${a} ${e.agent_id&&`(${e.step_id})`}`,hasArrow:!0,children:he.jsx(Ui,{noOfLines:1,children:a})}):he.jsx(Ui,{noOfLines:1,children:a})})]})}const Ive=({sx:e,stack:t,active:n,onItemClick:r,...o})=>{const{rasaSpace:i}=$s(),a={...e,pr:0,pb:0,flexDirection:"column"},s={height:"100%",overflow:"auto",pr:i[1],pb:i[.5]};return he.jsxs(ko,{sx:a,...o,children:[he.jsxs(ko,{children:[he.jsx(ub,{size:"lg",mb:i[.5],children:"History"}),he.jsxs(Ui,{ml:i[.25],children:["(",t.length," flows)"]})]}),he.jsx(Qi,{sx:s,children:he.jsxs(dS,{width:"100%",layout:"fixed",children:[he.jsx(oX,{children:he.jsxs(O1,{children:[he.jsx(z3,{children:"Flow"}),he.jsx(z3,{width:"40%",children:"Step ID"})]})}),he.jsxs(g6,{children:[t.length>0&&[...t].reverse().map(l=>he.jsx(mD,{stack:l,highlighted:l.frame_id==(n==null?void 0:n.frame_id),onItemClick:r,selectable:!0})),t.length===0&&he.jsx(mD,{stack:{frame_id:"-",flow_id:"-",step_id:"-",ended:!1}})]})]})})]})};function Nve(e,t){if(e==null)return{};var n=YH(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function y5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rve(e){if(Array.isArray(e))return y5(e)}function Fve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zve(e,t){if(e){if(typeof e=="string")return y5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y5(e,t)}}function jve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
404
404
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hve(e){return Rve(e)||Fve(e)||zve(e)||jve()}function gD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function qm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gD(Object(n),!0).forEach(function(r){t6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ve(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var nE={};function Xve(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return nE[t]||(nE[t]=_ve(e)),nE[t]}function Vve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(i){return i!=="token"}),o=Xve(r);return o.reduce(function(i,a){return qm(qm({},i),n[a])},t)}function vD(e){return e.join(" ")}function qve(e,t){var n=0;return function(r){return n+=1,r.map(function(o,i){return _X({node:o,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(i)})})}}function _X(e){var t=e.node,n=e.stylesheet,r=e.style,o=r===void 0?{}:r,i=e.useInlineStyles,a=e.key,s=t.properties,l=t.type,u=t.tagName,c=t.value;if(l==="text")return c;if(u){var f=qve(n,i),h;if(!i)h=qm(qm({},s),{},{className:vD(s.className)});else{var A=Object.keys(n).reduce(function(w,C){return C.split(".").forEach(function(k){w.includes(k)||w.push(k)}),w},[]),p=s.className&&s.className.includes("token")?["token"]:[],g=s.className&&p.concat(s.className.filter(function(w){return!A.includes(w)}));h=qm(qm({},s),{},{className:vD(g)||void 0,style:Vve(s.className,Object.assign({},s.style,o),n)})}var b=f(t.children);return sa.createElement(u,yd({key:a},h),b)}}const Wve=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var Uve=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function yD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function du(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yD(Object(n),!0).forEach(function(r){t6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Qve=/\n/g;function Gve(e){return e.match(Qve)}function Yve(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(o,i){var a=i+n;return sa.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(a):r},"".concat(a,`
|
|
405
405
|
`))})}function Zve(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,o=r===void 0?{float:"left",paddingRight:"10px"}:r,i=e.numberStyle,a=i===void 0?{}:i,s=e.startingLineNumber;return sa.createElement("code",{style:Object.assign({},n,o)},Yve({lines:t.replace(/\n$/,"").split(`
|
|
406
406
|
`),style:a,startingLineNumber:s}))}function Kve(e){return"".concat(e.toString().length,".25em")}function XX(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function VX(e,t,n){var r={display:"inline-block",minWidth:Kve(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},o=typeof e=="function"?e(t):e,i=du(du({},r),o);return i}function xx(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,o=e.largestLineNumber,i=e.showInlineLineNumbers,a=e.lineProps,s=a===void 0?{}:a,l=e.className,u=l===void 0?[]:l,c=e.showLineNumbers,f=e.wrapLongLines,h=typeof s=="function"?s(n):s;if(h.className=u,n&&i){var A=VX(r,n,o);t.unshift(XX(n,A))}return f&c&&(h.style=du(du({},h.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:h,children:t}}function qX(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r<e.length;r++){var o=e[r];if(o.type==="text")n.push(xx({children:[o],className:Hve(new Set(t))}));else if(o.children){var i=t.concat(o.properties.className);qX(o.children,i).forEach(function(a){return n.push(a)})}}return n}function Jve(e,t,n,r,o,i,a,s,l){var u,c=qX(e.value),f=[],h=-1,A=0;function p(P,L){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return xx({children:P,lineNumber:L,lineNumberStyle:s,largestLineNumber:a,showInlineLineNumbers:o,lineProps:n,className:B,showLineNumbers:r,wrapLongLines:l})}function g(P,L){if(r&&L&&o){var B=VX(s,L,a);P.unshift(XX(L,B))}return P}function b(P,L){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||B.length>0?p(P,L,B):g(P,L)}for(var w=function(){var L=c[A],B=L.children[0].value,M=Gve(B);if(M){var z=B.split(`
|
|
@@ -456,7 +456,7 @@ ${f}"]:::collect
|
|
|
456
456
|
</div>
|
|
457
457
|
`:`<div>${r}</div>`).join("").replace(_5,(r,o)=>n.renderToString(o,{throwOnError:!0,displayMode:!0,output:TI()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},$6={getRows:FSe,sanitizeText:H1,sanitizeTextOrArray:HSe,hasBreaks:_Se,splitBreaks:XSe,lineBreakRegex:wb,removeScript:yq,getUrl:qSe,evaluate:wq,getMax:WSe,getMin:USe},ca=(e,t)=>t?Ve(e,{s:-40,l:10}):Ve(e,{s:-40,l:-10}),FS="#ffffff",zS="#f2f2f2";let ZSe=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var t,n,r,o,i,a,s,l,u,c,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Ve(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Ve(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ca(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ca(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ca(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ca(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||zt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zt(this.tertiaryColor),this.lineColor=this.lineColor||zt(this.background),this.arrowheadColor=this.arrowheadColor||zt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?br(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||br(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zt(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||hr(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ve(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ve(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ve(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ve(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ve(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ve(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Ve(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ve(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ve(this.primaryColor,{h:330}),this.darkMode)for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScale"+A]=br(this["cScale"+A],75);else for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScale"+A]=br(this["cScale"+A],25);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||zt(this["cScale"+A]);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this.darkMode?this["cScalePeer"+A]=this["cScalePeer"+A]||hr(this["cScale"+A],10):this["cScalePeer"+A]=this["cScalePeer"+A]||br(this["cScale"+A],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;const h=this.darkMode?-4:-1;for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||Ve(this.mainBkg,{h:180,s:-15,l:h*(5+A*3)}),this["surfacePeer"+A]=this["surfacePeer"+A]||Ve(this.mainBkg,{h:180,s:-15,l:h*(8+A*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Ve(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Ve(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Ve(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Ve(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Ve(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Ve(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ve(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ve(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Ve(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Ve(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ve(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ve(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ve(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Ve(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Ve(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ve(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ve(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ve(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ve(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ve(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ve(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||vb(this.quadrant1Fill)?hr(this.quadrant1Fill):br(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?br(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ve(this.primaryColor,{h:-30}),this.git4=this.git4||Ve(this.primaryColor,{h:-60}),this.git5=this.git5||Ve(this.primaryColor,{h:-90}),this.git6=this.git6||Ve(this.primaryColor,{h:60}),this.git7=this.git7||Ve(this.primaryColor,{h:120}),this.darkMode?(this.git0=hr(this.git0,25),this.git1=hr(this.git1,25),this.git2=hr(this.git2,25),this.git3=hr(this.git3,25),this.git4=hr(this.git4,25),this.git5=hr(this.git5,25),this.git6=hr(this.git6,25),this.git7=hr(this.git7,25)):(this.git0=br(this.git0,25),this.git1=br(this.git1,25),this.git2=br(this.git2,25),this.git3=br(this.git3,25),this.git4=br(this.git4,25),this.git5=br(this.git5,25),this.git6=br(this.git6,25),this.git7=br(this.git7,25)),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||FS,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||zS}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const KSe=e=>{const t=new ZSe;return t.calculate(e),t};let JSe=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=hr(this.primaryColor,16),this.tertiaryColor=Ve(this.primaryColor,{h:-160}),this.primaryBorderColor=zt(this.background),this.secondaryBorderColor=ca(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ca(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.tertiaryColor),this.lineColor=zt(this.background),this.textColor=zt(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=hr(zt("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=_y(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=br("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=br(this.sectionBkgColor,10),this.taskBorderColor=_y(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=_y(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,n,r,o,i,a,s,l,u,c,f;this.secondBkg=hr(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=hr(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=hr(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ve(this.primaryColor,{h:64}),this.fillType3=Ve(this.secondaryColor,{h:64}),this.fillType4=Ve(this.primaryColor,{h:-64}),this.fillType5=Ve(this.secondaryColor,{h:-64}),this.fillType6=Ve(this.primaryColor,{h:128}),this.fillType7=Ve(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ve(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ve(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ve(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ve(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ve(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ve(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ve(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ve(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ve(this.primaryColor,{h:330});for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||zt(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScalePeer"+h]=this["cScalePeer"+h]||hr(this["cScale"+h],10);for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||Ve(this.mainBkg,{h:30,s:-30,l:-(-10+h*4)}),this["surfacePeer"+h]=this["surfacePeer"+h]||Ve(this.mainBkg,{h:30,s:-30,l:-(-7+h*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["pie"+h]=this["cScale"+h];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ve(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ve(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ve(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ve(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ve(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ve(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||vb(this.quadrant1Fill)?hr(this.quadrant1Fill):br(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?br(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=hr(this.secondaryColor,20),this.git1=hr(this.pie2||this.secondaryColor,20),this.git2=hr(this.pie3||this.tertiaryColor,20),this.git3=hr(this.pie4||Ve(this.primaryColor,{h:-30}),20),this.git4=hr(this.pie5||Ve(this.primaryColor,{h:-60}),20),this.git5=hr(this.pie6||Ve(this.primaryColor,{h:-90}),10),this.git6=hr(this.pie7||Ve(this.primaryColor,{h:60}),10),this.git7=hr(this.pie8||Ve(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||zt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||zt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hr(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||hr(this.background,2)}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const $Se=e=>{const t=new JSe;return t.calculate(e),t};let eke=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Ve(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Ve(this.primaryColor,{h:-160}),this.primaryBorderColor=ca(this.primaryColor,this.darkMode),this.secondaryBorderColor=ca(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ca(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.tertiaryColor),this.lineColor=zt(this.background),this.textColor=zt(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=_y(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,n,r,o,i,a,s,l,u,c,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ve(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ve(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ve(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ve(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ve(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ve(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ve(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ve(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ve(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||br(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||br(this.tertiaryColor,40);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=br(this["cScale"+h],10),this["cScalePeer"+h]=this["cScalePeer"+h]||br(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||Ve(this["cScale"+h],{h:180});for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||Ve(this.mainBkg,{h:30,l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||Ve(this.mainBkg,{h:30,l:-(7+h*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||zt(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||zt(this.labelTextColor);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=hr(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ve(this.primaryColor,{h:64}),this.fillType3=Ve(this.secondaryColor,{h:64}),this.fillType4=Ve(this.primaryColor,{h:-64}),this.fillType5=Ve(this.secondaryColor,{h:-64}),this.fillType6=Ve(this.primaryColor,{h:128}),this.fillType7=Ve(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||Ve(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||Ve(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ve(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Ve(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||Ve(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||Ve(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||Ve(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||Ve(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||Ve(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||Ve(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ve(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ve(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ve(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ve(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ve(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ve(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||vb(this.quadrant1Fill)?hr(this.quadrant1Fill):br(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ve(this.primaryColor,{h:-30}),this.git4=this.git4||Ve(this.primaryColor,{h:-60}),this.git5=this.git5||Ve(this.primaryColor,{h:-90}),this.git6=this.git6||Ve(this.primaryColor,{h:60}),this.git7=this.git7||Ve(this.primaryColor,{h:120}),this.darkMode?(this.git0=hr(this.git0,25),this.git1=hr(this.git1,25),this.git2=hr(this.git2,25),this.git3=hr(this.git3,25),this.git4=hr(this.git4,25),this.git5=hr(this.git5,25),this.git6=hr(this.git6,25),this.git7=hr(this.git7,25)):(this.git0=br(this.git0,25),this.git1=br(this.git1,25),this.git2=br(this.git2,25),this.git3=br(this.git3,25),this.git4=br(this.git4,25),this.git5=br(this.git5,25),this.git6=br(this.git6,25),this.git7=br(this.git7,25)),this.gitInv0=this.gitInv0||br(zt(this.git0),25),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||zt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||zt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||FS,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||zS}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const tke=e=>{const t=new eke;return t.calculate(e),t};let rke=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=hr("#cde498",10),this.primaryBorderColor=ca(this.primaryColor,this.darkMode),this.secondaryBorderColor=ca(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ca(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.primaryColor),this.lineColor=zt(this.background),this.textColor=zt(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,n,r,o,i,a,s,l,u,c,f;this.actorBorder=br(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ve(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ve(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ve(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ve(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ve(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ve(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ve(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ve(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ve(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||br(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||br(this.tertiaryColor,40);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=br(this["cScale"+h],10),this["cScalePeer"+h]=this["cScalePeer"+h]||br(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||Ve(this["cScale"+h],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||Ve(this.mainBkg,{h:30,s:-30,l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||Ve(this.mainBkg,{h:30,s:-30,l:-(8+h*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ve(this.primaryColor,{h:64}),this.fillType3=Ve(this.secondaryColor,{h:64}),this.fillType4=Ve(this.primaryColor,{h:-64}),this.fillType5=Ve(this.secondaryColor,{h:-64}),this.fillType6=Ve(this.primaryColor,{h:128}),this.fillType7=Ve(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ve(this.primaryColor,{l:-30}),this.pie5=this.pie5||Ve(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Ve(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||Ve(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ve(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ve(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ve(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||Ve(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||Ve(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ve(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ve(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ve(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ve(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ve(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ve(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||vb(this.quadrant1Fill)?hr(this.quadrant1Fill):br(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ve(this.primaryColor,{h:-30}),this.git4=this.git4||Ve(this.primaryColor,{h:-60}),this.git5=this.git5||Ve(this.primaryColor,{h:-90}),this.git6=this.git6||Ve(this.primaryColor,{h:60}),this.git7=this.git7||Ve(this.primaryColor,{h:120}),this.darkMode?(this.git0=hr(this.git0,25),this.git1=hr(this.git1,25),this.git2=hr(this.git2,25),this.git3=hr(this.git3,25),this.git4=hr(this.git4,25),this.git5=hr(this.git5,25),this.git6=hr(this.git6,25),this.git7=hr(this.git7,25)):(this.git0=br(this.git0,25),this.git1=br(this.git1,25),this.git2=br(this.git2,25),this.git3=br(this.git3,25),this.git4=br(this.git4,25),this.git5=br(this.git5,25),this.git6=br(this.git6,25),this.git7=br(this.git7,25)),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||zt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||zt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||FS,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||zS}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const nke=e=>{const t=new rke;return t.calculate(e),t};class ike{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=hr(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Ve(this.primaryColor,{h:-160}),this.primaryBorderColor=ca(this.primaryColor,this.darkMode),this.secondaryBorderColor=ca(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ca(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.tertiaryColor),this.lineColor=zt(this.background),this.textColor=zt(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,n,r,o,i,a,s,l,u,c,f;this.secondBkg=hr(this.contrast,55),this.border2=this.contrast,this.actorBorder=hr(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||zt(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this.darkMode?this["cScalePeer"+h]=this["cScalePeer"+h]||hr(this["cScale"+h],10):this["cScalePeer"+h]=this["cScalePeer"+h]||br(this["cScale"+h],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||Ve(this.mainBkg,{l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||Ve(this.mainBkg,{l:-(8+h*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=hr(this.contrast,30),this.sectionBkgColor2=hr(this.contrast,30),this.taskBorderColor=br(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=hr(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=br(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ve(this.primaryColor,{h:64}),this.fillType3=Ve(this.secondaryColor,{h:64}),this.fillType4=Ve(this.primaryColor,{h:-64}),this.fillType5=Ve(this.secondaryColor,{h:-64}),this.fillType6=Ve(this.primaryColor,{h:128}),this.fillType7=Ve(this.secondaryColor,{h:128});for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["pie"+h]=this["cScale"+h];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ve(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ve(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ve(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ve(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ve(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ve(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||vb(this.quadrant1Fill)?hr(this.quadrant1Fill):br(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=br(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||Ve(this.primaryColor,{h:-30}),this.git4=this.pie5||Ve(this.primaryColor,{h:-60}),this.git5=this.pie6||Ve(this.primaryColor,{h:-90}),this.git6=this.pie7||Ve(this.primaryColor,{h:60}),this.git7=this.pie8||Ve(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||FS,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||zS}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}}const oke=e=>{const t=new ike;return t.calculate(e),t},Dc={base:{getThemeVariables:KSe},dark:{getThemeVariables:$Se},default:{getThemeVariables:tke},forest:{getThemeVariables:nke},neutral:{getThemeVariables:oke}},pc={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},xq={...pc,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Dc.default.getThemeVariables(),sequence:{...pc.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...pc.gantt,tickInterval:void 0,useWidth:void 0},c4:{...pc.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...pc.pie,useWidth:984},xyChart:{...pc.xyChart,useWidth:void 0},requirement:{...pc.requirement,useWidth:void 0},gitGraph:{...pc.gitGraph,useMaxWidth:!1},sankey:{...pc.sankey,useMaxWidth:!1}},Cq=(e,t="")=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:typeof e[r]=="object"&&e[r]!==null?[...n,t+r,...Cq(e[r],"")]:[...n,t+r],[]),ake=new Set(Cq(xq,"")),ske=xq,tC=e=>{if(gr.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>tC(t));return}for(const t of Object.keys(e)){if(gr.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!ake.has(t)||e[t]==null){gr.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){gr.debug("sanitizing object",t),tC(e[t]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const r of n)t.includes(r)&&(gr.debug("sanitizing css option",t),e[t]=lke(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const n=e.themeVariables[t];n!=null&&n.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}gr.debug("After sanitization",e)}},lke=e=>{let t=0,n=0;for(const r of e){if(t<n)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?t++:r==="}"&&n++}return t!==n?"{ /* ERROR: Unbalanced CSS */ }":e},Sq=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Vy=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,uke=/\s*%%.*\n/gm;class kq extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}}const Dg={},jS=function(e,t){e=e.replace(Sq,"").replace(Vy,"").replace(uke,`
|
|
458
458
|
`);for(const[n,{detector:r}]of Object.entries(Dg))if(r(e,t))return n;throw new kq(`No diagram type detected matching given configuration for text: ${e}`)},Eq=(...e)=>{for(const{id:t,detector:n,loader:r}of e)Tq(t,n,r)},Tq=(e,t,n)=>{Dg[e]?gr.error(`Detector with key ${e} already exists`):Dg[e]={detector:t,loader:n},gr.debug(`Detector with key ${e} added${n?" with loader":""}`)},cke=e=>Dg[e].loader,X5=(e,t,{depth:n=2,clobber:r=!1}={})=>{const o={depth:n,clobber:r};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(i=>X5(e,i,o)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(i=>{e.includes(i)||e.push(i)}),e):e===void 0||n<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(i=>{typeof t[i]=="object"&&(e[i]===void 0||typeof e[i]=="object")?(e[i]===void 0&&(e[i]=Array.isArray(t[i])?[]:{}),e[i]=X5(e[i],t[i],{depth:n-1,clobber:r})):(r||typeof e[i]!="object"&&typeof t[i]!="object")&&(e[i]=t[i])}),e)},Xo=X5,fke="",dke={curveBasis:$we,curveBasisClosed:e2e,curveBasisOpen:t2e,curveBumpX:Kwe,curveBumpY:Jwe,curveBundle:r2e,curveCardinalClosed:i2e,curveCardinalOpen:o2e,curveCardinal:n2e,curveCatmullRomClosed:s2e,curveCatmullRomOpen:l2e,curveCatmullRom:a2e,curveLinear:Zwe,curveLinearClosed:u2e,curveMonotoneX:c2e,curveMonotoneY:f2e,curveNatural:d2e,curveStep:h2e,curveStepAfter:p2e,curveStepBefore:A2e},hke=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ake=function(e,t){const n=Oq(e,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(n)){const a=n.map(s=>s.args);tC(a),r=Xo(r,[...a])}else r=n.args;if(!r)return;let o=jS(e,t);const i="config";return r[i]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),r[o]=r[i],delete r[i]),r},Oq=function(e,t=null){try{const n=new RegExp(`[%]{2}(?![{]${hke.source})(?=[}][%]{2}).*
|
|
459
|
-
`,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),gr.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let r;const o=[];for(;(r=Vy.exec(e))!==null;)if(r.index===Vy.lastIndex&&Vy.lastIndex++,r&&!t||t&&r[1]&&r[1].match(t)||t&&r[2]&&r[2].match(t)){const i=r[1]?r[1]:r[2],a=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;o.push({type:i,args:a})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(n){return gr.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},pke=function(e){return e.replace(Vy,"")},mke=function(e,t){for(const[n,r]of t.entries())if(r.match(e))return n;return-1};function gke(e,t){if(!e)return t;const n=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return dke[n]??t}function vke(e,t){const n=e.trim();if(n)return t.securityLevel!=="loose"?aV.sanitizeUrl(n):n}const yke=(e,...t)=>{const n=e.split("."),r=n.length-1,o=n[r];let i=window;for(let a=0;a<r;a++)if(i=i[n[a]],!i){gr.error(`Function name: ${e} not found in window`);return}i[o](...t)};function Pq(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function bke(e){let t,n=0;e.forEach(o=>{n+=Pq(o,t),t=o});const r=n/2;return eO(e,r)}function wke(e){return e.length===1?e[0]:bke(e)}const PI=(e,t=2)=>{const n=Math.pow(10,t);return Math.round(e*n)/n},eO=(e,t)=>{let n,r=t;for(const o of e){if(n){const i=Pq(o,n);if(i<r)r-=i;else{const a=r/i;if(a<=0)return n;if(a>=1)return{x:o.x,y:o.y};if(a>0&&a<1)return{x:PI((1-a)*n.x+a*o.x,5),y:PI((1-a)*n.y+a*o.y,5)}}}n=o}throw new Error("Could not find a suitable point for the given distance")},xke=(e,t,n)=>{gr.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());const o=eO(t,25),i=e?10:5,a=Math.atan2(t[0].y-o.y,t[0].x-o.x),s={x:0,y:0};return s.x=Math.sin(a)*i+(t[0].x+o.x)/2,s.y=-Math.cos(a)*i+(t[0].y+o.y)/2,s};function Cke(e,t,n){const r=structuredClone(n);gr.info("our points",r),t!=="start_left"&&t!=="start_right"&&r.reverse();const o=25+e,i=eO(r,o),a=10+e*.5,s=Math.atan2(r[0].y-i.y,r[0].x-i.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(s+Math.PI)*a+(r[0].x+i.x)/2,l.y=-Math.cos(s+Math.PI)*a+(r[0].y+i.y)/2):t==="end_right"?(l.x=Math.sin(s-Math.PI)*a+(r[0].x+i.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(r[0].y+i.y)/2-5):t==="end_left"?(l.x=Math.sin(s)*a+(r[0].x+i.x)/2-5,l.y=-Math.cos(s)*a+(r[0].y+i.y)/2-5):(l.x=Math.sin(s)*a+(r[0].x+i.x)/2,l.y=-Math.cos(s)*a+(r[0].y+i.y)/2),l}function Ske(e){let t="",n="";for(const r of e)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}let BI=0;const kke=()=>(BI++,"id-"+Math.random().toString(36).substr(2,12)+"-"+BI);function Eke(e){let t="";const n="0123456789abcdef",r=n.length;for(let o=0;o<e;o++)t+=n.charAt(Math.floor(Math.random()*r));return t}const Tke=e=>Eke(e.length),Oke=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Pke=function(e,t){const n=t.text.replace($6.lineBreakRegex," "),[,r]=rO(t.fontSize),o=e.append("text");o.attr("x",t.x),o.attr("y",t.y),o.style("text-anchor",t.anchor),o.style("font-family",t.fontFamily),o.style("font-size",r),o.style("font-weight",t.fontWeight),o.attr("fill",t.fill),t.class!==void 0&&o.attr("class",t.class);const i=o.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.attr("fill",t.fill),i.text(n),o},Bke=yb((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),$6.lineBreakRegex.test(e)))return e;const r=e.split(" "),o=[];let i="";return r.forEach((a,s)=>{const l=rC(`${a} `,n),u=rC(i,n);if(l>t){const{hyphenatedStrings:h,remainingWord:A}=Lke(a,t,"-",n);o.push(i,...h),i=A}else u+l>=t?(o.push(i),i=a):i=[i,a].filter(Boolean).join(" ");s+1===r.length&&o.push(i)}),o.filter(a=>a!=="").join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),Lke=yb((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const o=[...e],i=[];let a="";return o.forEach((s,l)=>{const u=`${a}${s}`;if(rC(u,r)>=t){const f=l+1,h=o.length===f,A=`${u}${n}`;i.push(h?u:A),a=""}else a=u}),{hyphenatedStrings:i,remainingWord:a}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Mke(e,t){return tO(e,t).height}function rC(e,t){return tO(e,t).width}const tO=yb((e,t)=>{const{fontSize:n=12,fontFamily:r="Arial",fontWeight:o=400}=t;if(!e)return{width:0,height:0};const[,i]=rO(n),a=["sans-serif",r],s=e.split($6.lineBreakRegex),l=[],u=js("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const c=u.append("svg");for(const h of a){let A=0;const p={width:0,height:0,lineHeight:0};for(const g of s){const b=Oke();b.text=g||fke;const w=Pke(c,b).style("font-size",i).style("font-weight",o).style("font-family",h),C=(w._groups||w)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");p.width=Math.round(Math.max(p.width,C.width)),A=Math.round(C.height),p.height+=A,p.lineHeight=Math.round(Math.max(p.lineHeight,A))}l.push(p)}c.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`);class Dke{constructor(t=!1,n){this.count=0,this.count=n?n.length:0,this.next=t?()=>this.count++:()=>Date.now()}}let M2;const Ike=function(e){return M2=M2||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),M2.innerHTML=e,unescape(M2.textContent)};function Bq(e){return"str"in e}const Nke=(e,t,n,r)=>{var o;if(!r)return;const i=(o=e.node())==null?void 0:o.getBBox();i&&e.append("text").text(r).attr("x",i.x+i.width/2).attr("y",-n).attr("class",t)},rO=e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]};function Lq(e,t){return $Ce({},e,t)}const qy={assignWithDepth:Xo,wrapLabel:Bke,calculateTextHeight:Mke,calculateTextWidth:rC,calculateTextDimensions:tO,cleanAndMerge:Lq,detectInit:Ake,detectDirective:Oq,isSubstringInArray:mke,interpolateToCurve:gke,calcLabelPosition:wke,calcCardinalityPosition:xke,calcTerminalLabelPosition:Cke,formatUrl:vke,getStylesFromArray:Ske,generateId:kke,random:Tke,runFunc:yke,entityDecode:Ike,insertTitle:Nke,parseFontSize:rO,InitIDGenerator:Dke},Rke=function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),t=t.replace(/#\w+;/g,function(n){const r=n.substring(1,n.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),t},Fke=function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},LI="10.9.3",Ig=Object.freeze(ske);let La=Xo({},Ig),Mq,Ng=[],Wy=Xo({},Ig);const HS=(e,t)=>{let n=Xo({},e),r={};for(const o of t)Nq(o),r=Xo(r,o);if(n=Xo(n,r),r.theme&&r.theme in Dc){const o=Xo({},Mq),i=Xo(o.themeVariables||{},r.themeVariables);n.theme&&n.theme in Dc&&(n.themeVariables=Dc[n.theme].getThemeVariables(i))}return Wy=n,Rq(Wy),Wy},zke=e=>(La=Xo({},Ig),La=Xo(La,e),e.theme&&Dc[e.theme]&&(La.themeVariables=Dc[e.theme].getThemeVariables(e.themeVariables)),HS(La,Ng),La),jke=e=>{Mq=Xo({},e)},Hke=e=>(La=Xo(La,e),HS(La,Ng),La),Dq=()=>Xo({},La),Iq=e=>(Rq(e),Xo(Wy,e),Du()),Du=()=>Xo({},Wy),Nq=e=>{e&&(["secure",...La.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(gr.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&Nq(e[t])}))},_ke=e=>{tC(e),e.fontFamily&&(!e.themeVariables||!e.themeVariables.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),Ng.push(e),HS(La,Ng)},nC=(e=La)=>{Ng=[],HS(e,Ng)},Xke={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},MI={},Vke=e=>{MI[e]||(gr.warn(Xke[e]),MI[e]=!0)},Rq=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Vke("LAZY_LOAD_DEPRECATED")},Fq="c4",qke=e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),Wke=async()=>{const{diagram:e}=await si(()=>import("./c4Diagram-3d4e48cf-0745efa9.js"),["./c4Diagram-3d4e48cf-0745efa9.js","./svgDrawCommon-08f97a94-4adc3e0b.js"],import.meta.url);return{id:Fq,diagram:e}},Uke={id:Fq,detector:qke,loader:Wke},Qke=Uke,zq="flowchart",Gke=(e,t)=>{var n,r;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},Yke=async()=>{const{diagram:e}=await si(()=>import("./flowDiagram-66a62f08-2e298d01.js"),["./flowDiagram-66a62f08-2e298d01.js","./flowDb-956e92f1-e576fc02.js","./graph-3e19170f.js","./layout-08436411.js","./styles-c10674c1-d600174d.js","./index-3862675e-eb9c86de.js","./clone-50dd656b.js","./edges-e0da2a9e-b5256940.js","./createText-2e5e7dd3-a2a564ca.js","./line-683c4f3b.js","./array-9f3ba611.js","./path-53f90ab3.js","./channel-c436ca7c.js"],import.meta.url);return{id:zq,diagram:e}},Zke={id:zq,detector:Gke,loader:Yke},Kke=Zke,jq="flowchart-v2",Jke=(e,t)=>{var n,r,o;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"||((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((o=t==null?void 0:t.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},$ke=async()=>{const{diagram:e}=await si(()=>import("./flowDiagram-v2-96b9c2cf-2b2aeaf8.js"),["./flowDiagram-v2-96b9c2cf-2b2aeaf8.js","./flowDb-956e92f1-e576fc02.js","./styles-c10674c1-d600174d.js","./graph-3e19170f.js","./index-3862675e-eb9c86de.js","./layout-08436411.js","./clone-50dd656b.js","./edges-e0da2a9e-b5256940.js","./createText-2e5e7dd3-a2a564ca.js","./line-683c4f3b.js","./array-9f3ba611.js","./path-53f90ab3.js","./channel-c436ca7c.js"],import.meta.url);return{id:jq,diagram:e}},e7e={id:jq,detector:Jke,loader:$ke},t7e=e7e,Hq="er",r7e=e=>/^\s*erDiagram/.test(e),n7e=async()=>{const{diagram:e}=await si(()=>import("./erDiagram-9861fffd-e6883ad2.js"),["./erDiagram-9861fffd-e6883ad2.js","./graph-3e19170f.js","./layout-08436411.js","./line-683c4f3b.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Hq,diagram:e}},i7e={id:Hq,detector:r7e,loader:n7e},o7e=i7e,_q="gitGraph",a7e=e=>/^\s*gitGraph/.test(e),s7e=async()=>{const{diagram:e}=await si(()=>import("./gitGraphDiagram-72cf32ee-3016f40a.js"),[],import.meta.url);return{id:_q,diagram:e}},l7e={id:_q,detector:a7e,loader:s7e},u7e=l7e,Xq="gantt",c7e=e=>/^\s*gantt/.test(e),f7e=async()=>{const{diagram:e}=await si(()=>import("./ganttDiagram-c361ad54-5b79575c.js"),["./ganttDiagram-c361ad54-5b79575c.js","./linear-cee6d791.js","./init-77b53fdd.js"],import.meta.url);return{id:Xq,diagram:e}},d7e={id:Xq,detector:c7e,loader:f7e},h7e=d7e,Vq="info",A7e=e=>/^\s*info/.test(e),p7e=async()=>{const{diagram:e}=await si(()=>import("./infoDiagram-f8f76790-b4280e4d.js"),[],import.meta.url);return{id:Vq,diagram:e}},m7e={id:Vq,detector:A7e,loader:p7e},qq="pie",g7e=e=>/^\s*pie/.test(e),v7e=async()=>{const{diagram:e}=await si(()=>import("./pieDiagram-8a3498a8-3730d5c4.js"),["./pieDiagram-8a3498a8-3730d5c4.js","./arc-2e78c586.js","./path-53f90ab3.js","./ordinal-ba9b4969.js","./init-77b53fdd.js","./array-9f3ba611.js"],import.meta.url);return{id:qq,diagram:e}},y7e={id:qq,detector:g7e,loader:v7e},Wq="quadrantChart",b7e=e=>/^\s*quadrantChart/.test(e),w7e=async()=>{const{diagram:e}=await si(()=>import("./quadrantDiagram-120e2f19-12a20fed.js"),["./quadrantDiagram-120e2f19-12a20fed.js","./linear-cee6d791.js","./init-77b53fdd.js"],import.meta.url);return{id:Wq,diagram:e}},x7e={id:Wq,detector:b7e,loader:w7e},C7e=x7e,Uq="xychart",S7e=e=>/^\s*xychart-beta/.test(e),k7e=async()=>{const{diagram:e}=await si(()=>import("./xychartDiagram-e933f94c-621eb66a.js"),["./xychartDiagram-e933f94c-621eb66a.js","./createText-2e5e7dd3-a2a564ca.js","./init-77b53fdd.js","./ordinal-ba9b4969.js","./linear-cee6d791.js","./line-683c4f3b.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Uq,diagram:e}},E7e={id:Uq,detector:S7e,loader:k7e},T7e=E7e,Qq="requirement",O7e=e=>/^\s*requirement(Diagram)?/.test(e),P7e=async()=>{const{diagram:e}=await si(()=>import("./requirementDiagram-deff3bca-b9732102.js"),["./requirementDiagram-deff3bca-b9732102.js","./graph-3e19170f.js","./layout-08436411.js","./line-683c4f3b.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Qq,diagram:e}},B7e={id:Qq,detector:O7e,loader:P7e},L7e=B7e,Gq="sequence",M7e=e=>/^\s*sequenceDiagram/.test(e),D7e=async()=>{const{diagram:e}=await si(()=>import("./sequenceDiagram-704730f1-8b7a76bb.js"),["./sequenceDiagram-704730f1-8b7a76bb.js","./svgDrawCommon-08f97a94-4adc3e0b.js"],import.meta.url);return{id:Gq,diagram:e}},I7e={id:Gq,detector:M7e,loader:D7e},N7e=I7e,Yq="class",R7e=(e,t)=>{var n;return((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},F7e=async()=>{const{diagram:e}=await si(()=>import("./classDiagram-70f12bd4-7bd1082b.js"),["./classDiagram-70f12bd4-7bd1082b.js","./styles-9a916d00-88357141.js","./graph-3e19170f.js","./layout-08436411.js","./line-683c4f3b.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Yq,diagram:e}},z7e={id:Yq,detector:R7e,loader:F7e},j7e=z7e,Zq="classDiagram",H7e=(e,t)=>{var n;return/^\s*classDiagram/.test(e)&&((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},_7e=async()=>{const{diagram:e}=await si(()=>import("./classDiagram-v2-f2320105-d937ba49.js"),["./classDiagram-v2-f2320105-d937ba49.js","./styles-9a916d00-88357141.js","./graph-3e19170f.js","./index-3862675e-eb9c86de.js","./layout-08436411.js","./clone-50dd656b.js","./edges-e0da2a9e-b5256940.js","./createText-2e5e7dd3-a2a564ca.js","./line-683c4f3b.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Zq,diagram:e}},X7e={id:Zq,detector:H7e,loader:_7e},V7e=X7e,Kq="state",q7e=(e,t)=>{var n;return((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},W7e=async()=>{const{diagram:e}=await si(()=>import("./stateDiagram-587899a1-e65853ac.js"),["./stateDiagram-587899a1-e65853ac.js","./styles-6aaf32cf-df25b934.js","./graph-3e19170f.js","./layout-08436411.js","./line-683c4f3b.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Kq,diagram:e}},U7e={id:Kq,detector:q7e,loader:W7e},Q7e=U7e,Jq="stateDiagram",G7e=(e,t)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},Y7e=async()=>{const{diagram:e}=await si(()=>import("./stateDiagram-v2-d93cdb3a-6f58a44b.js"),["./stateDiagram-v2-d93cdb3a-6f58a44b.js","./styles-6aaf32cf-df25b934.js","./graph-3e19170f.js","./index-3862675e-eb9c86de.js","./layout-08436411.js","./clone-50dd656b.js","./edges-e0da2a9e-b5256940.js","./createText-2e5e7dd3-a2a564ca.js","./line-683c4f3b.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Jq,diagram:e}},Z7e={id:Jq,detector:G7e,loader:Y7e},K7e=Z7e,$q="journey",J7e=e=>/^\s*journey/.test(e),$7e=async()=>{const{diagram:e}=await si(()=>import("./journeyDiagram-49397b02-556091f8.js"),["./journeyDiagram-49397b02-556091f8.js","./svgDrawCommon-08f97a94-4adc3e0b.js","./arc-2e78c586.js","./path-53f90ab3.js"],import.meta.url);return{id:$q,diagram:e}},eEe={id:$q,detector:J7e,loader:$7e},tEe=eEe,rEe=function(e,t){for(let n of t)e.attr(n[0],n[1])},nEe=function(e,t,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${t}px;`)):(r.set("height",e),r.set("width",t)),r},eW=function(e,t,n,r){const o=nEe(t,n,r);rEe(e,o)},iEe=function(e,t,n,r){const o=t.node().getBBox(),i=o.width,a=o.height;gr.info(`SVG bounds: ${i}x${a}`,o);let s=0,l=0;gr.info(`Graph bounds: ${s}x${l}`,e),s=i+n*2,l=a+n*2,gr.info(`Calculated bounds: ${s}x${l}`),eW(t,l,s,r);const u=`${o.x-n} ${o.y-n} ${o.width+2*n} ${o.height+2*n}`;t.attr("viewBox",u)},Ix={},oEe=(e,t,n)=>{let r="";return e in Ix&&Ix[e]?r=Ix[e](n):gr.warn(`No theme found for ${e}`),` & {
|
|
459
|
+
`,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),gr.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let r;const o=[];for(;(r=Vy.exec(e))!==null;)if(r.index===Vy.lastIndex&&Vy.lastIndex++,r&&!t||t&&r[1]&&r[1].match(t)||t&&r[2]&&r[2].match(t)){const i=r[1]?r[1]:r[2],a=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;o.push({type:i,args:a})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(n){return gr.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},pke=function(e){return e.replace(Vy,"")},mke=function(e,t){for(const[n,r]of t.entries())if(r.match(e))return n;return-1};function gke(e,t){if(!e)return t;const n=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return dke[n]??t}function vke(e,t){const n=e.trim();if(n)return t.securityLevel!=="loose"?aV.sanitizeUrl(n):n}const yke=(e,...t)=>{const n=e.split("."),r=n.length-1,o=n[r];let i=window;for(let a=0;a<r;a++)if(i=i[n[a]],!i){gr.error(`Function name: ${e} not found in window`);return}i[o](...t)};function Pq(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function bke(e){let t,n=0;e.forEach(o=>{n+=Pq(o,t),t=o});const r=n/2;return eO(e,r)}function wke(e){return e.length===1?e[0]:bke(e)}const PI=(e,t=2)=>{const n=Math.pow(10,t);return Math.round(e*n)/n},eO=(e,t)=>{let n,r=t;for(const o of e){if(n){const i=Pq(o,n);if(i<r)r-=i;else{const a=r/i;if(a<=0)return n;if(a>=1)return{x:o.x,y:o.y};if(a>0&&a<1)return{x:PI((1-a)*n.x+a*o.x,5),y:PI((1-a)*n.y+a*o.y,5)}}}n=o}throw new Error("Could not find a suitable point for the given distance")},xke=(e,t,n)=>{gr.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());const o=eO(t,25),i=e?10:5,a=Math.atan2(t[0].y-o.y,t[0].x-o.x),s={x:0,y:0};return s.x=Math.sin(a)*i+(t[0].x+o.x)/2,s.y=-Math.cos(a)*i+(t[0].y+o.y)/2,s};function Cke(e,t,n){const r=structuredClone(n);gr.info("our points",r),t!=="start_left"&&t!=="start_right"&&r.reverse();const o=25+e,i=eO(r,o),a=10+e*.5,s=Math.atan2(r[0].y-i.y,r[0].x-i.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(s+Math.PI)*a+(r[0].x+i.x)/2,l.y=-Math.cos(s+Math.PI)*a+(r[0].y+i.y)/2):t==="end_right"?(l.x=Math.sin(s-Math.PI)*a+(r[0].x+i.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(r[0].y+i.y)/2-5):t==="end_left"?(l.x=Math.sin(s)*a+(r[0].x+i.x)/2-5,l.y=-Math.cos(s)*a+(r[0].y+i.y)/2-5):(l.x=Math.sin(s)*a+(r[0].x+i.x)/2,l.y=-Math.cos(s)*a+(r[0].y+i.y)/2),l}function Ske(e){let t="",n="";for(const r of e)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}let BI=0;const kke=()=>(BI++,"id-"+Math.random().toString(36).substr(2,12)+"-"+BI);function Eke(e){let t="";const n="0123456789abcdef",r=n.length;for(let o=0;o<e;o++)t+=n.charAt(Math.floor(Math.random()*r));return t}const Tke=e=>Eke(e.length),Oke=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Pke=function(e,t){const n=t.text.replace($6.lineBreakRegex," "),[,r]=rO(t.fontSize),o=e.append("text");o.attr("x",t.x),o.attr("y",t.y),o.style("text-anchor",t.anchor),o.style("font-family",t.fontFamily),o.style("font-size",r),o.style("font-weight",t.fontWeight),o.attr("fill",t.fill),t.class!==void 0&&o.attr("class",t.class);const i=o.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.attr("fill",t.fill),i.text(n),o},Bke=yb((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),$6.lineBreakRegex.test(e)))return e;const r=e.split(" "),o=[];let i="";return r.forEach((a,s)=>{const l=rC(`${a} `,n),u=rC(i,n);if(l>t){const{hyphenatedStrings:h,remainingWord:A}=Lke(a,t,"-",n);o.push(i,...h),i=A}else u+l>=t?(o.push(i),i=a):i=[i,a].filter(Boolean).join(" ");s+1===r.length&&o.push(i)}),o.filter(a=>a!=="").join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),Lke=yb((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const o=[...e],i=[];let a="";return o.forEach((s,l)=>{const u=`${a}${s}`;if(rC(u,r)>=t){const f=l+1,h=o.length===f,A=`${u}${n}`;i.push(h?u:A),a=""}else a=u}),{hyphenatedStrings:i,remainingWord:a}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Mke(e,t){return tO(e,t).height}function rC(e,t){return tO(e,t).width}const tO=yb((e,t)=>{const{fontSize:n=12,fontFamily:r="Arial",fontWeight:o=400}=t;if(!e)return{width:0,height:0};const[,i]=rO(n),a=["sans-serif",r],s=e.split($6.lineBreakRegex),l=[],u=js("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const c=u.append("svg");for(const h of a){let A=0;const p={width:0,height:0,lineHeight:0};for(const g of s){const b=Oke();b.text=g||fke;const w=Pke(c,b).style("font-size",i).style("font-weight",o).style("font-family",h),C=(w._groups||w)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");p.width=Math.round(Math.max(p.width,C.width)),A=Math.round(C.height),p.height+=A,p.lineHeight=Math.round(Math.max(p.lineHeight,A))}l.push(p)}c.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`);class Dke{constructor(t=!1,n){this.count=0,this.count=n?n.length:0,this.next=t?()=>this.count++:()=>Date.now()}}let M2;const Ike=function(e){return M2=M2||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),M2.innerHTML=e,unescape(M2.textContent)};function Bq(e){return"str"in e}const Nke=(e,t,n,r)=>{var o;if(!r)return;const i=(o=e.node())==null?void 0:o.getBBox();i&&e.append("text").text(r).attr("x",i.x+i.width/2).attr("y",-n).attr("class",t)},rO=e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]};function Lq(e,t){return $Ce({},e,t)}const qy={assignWithDepth:Xo,wrapLabel:Bke,calculateTextHeight:Mke,calculateTextWidth:rC,calculateTextDimensions:tO,cleanAndMerge:Lq,detectInit:Ake,detectDirective:Oq,isSubstringInArray:mke,interpolateToCurve:gke,calcLabelPosition:wke,calcCardinalityPosition:xke,calcTerminalLabelPosition:Cke,formatUrl:vke,getStylesFromArray:Ske,generateId:kke,random:Tke,runFunc:yke,entityDecode:Ike,insertTitle:Nke,parseFontSize:rO,InitIDGenerator:Dke},Rke=function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),t=t.replace(/#\w+;/g,function(n){const r=n.substring(1,n.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),t},Fke=function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},LI="10.9.3",Ig=Object.freeze(ske);let La=Xo({},Ig),Mq,Ng=[],Wy=Xo({},Ig);const HS=(e,t)=>{let n=Xo({},e),r={};for(const o of t)Nq(o),r=Xo(r,o);if(n=Xo(n,r),r.theme&&r.theme in Dc){const o=Xo({},Mq),i=Xo(o.themeVariables||{},r.themeVariables);n.theme&&n.theme in Dc&&(n.themeVariables=Dc[n.theme].getThemeVariables(i))}return Wy=n,Rq(Wy),Wy},zke=e=>(La=Xo({},Ig),La=Xo(La,e),e.theme&&Dc[e.theme]&&(La.themeVariables=Dc[e.theme].getThemeVariables(e.themeVariables)),HS(La,Ng),La),jke=e=>{Mq=Xo({},e)},Hke=e=>(La=Xo(La,e),HS(La,Ng),La),Dq=()=>Xo({},La),Iq=e=>(Rq(e),Xo(Wy,e),Du()),Du=()=>Xo({},Wy),Nq=e=>{e&&(["secure",...La.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(gr.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&Nq(e[t])}))},_ke=e=>{tC(e),e.fontFamily&&(!e.themeVariables||!e.themeVariables.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),Ng.push(e),HS(La,Ng)},nC=(e=La)=>{Ng=[],HS(e,Ng)},Xke={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},MI={},Vke=e=>{MI[e]||(gr.warn(Xke[e]),MI[e]=!0)},Rq=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Vke("LAZY_LOAD_DEPRECATED")},Fq="c4",qke=e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),Wke=async()=>{const{diagram:e}=await si(()=>import("./c4Diagram-3d4e48cf-8f798a9a.js"),["./c4Diagram-3d4e48cf-8f798a9a.js","./svgDrawCommon-08f97a94-d667fac1.js"],import.meta.url);return{id:Fq,diagram:e}},Uke={id:Fq,detector:qke,loader:Wke},Qke=Uke,zq="flowchart",Gke=(e,t)=>{var n,r;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},Yke=async()=>{const{diagram:e}=await si(()=>import("./flowDiagram-66a62f08-6280ede1.js"),["./flowDiagram-66a62f08-6280ede1.js","./flowDb-956e92f1-fdebec47.js","./graph-ca9e6217.js","./layout-d4307784.js","./styles-c10674c1-897fbfdd.js","./index-3862675e-c5ceb692.js","./clone-a0f9c4ed.js","./edges-e0da2a9e-b1553799.js","./createText-2e5e7dd3-1c669cad.js","./line-0567aaa7.js","./array-9f3ba611.js","./path-53f90ab3.js","./channel-0cd70adf.js"],import.meta.url);return{id:zq,diagram:e}},Zke={id:zq,detector:Gke,loader:Yke},Kke=Zke,jq="flowchart-v2",Jke=(e,t)=>{var n,r,o;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"||((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((o=t==null?void 0:t.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},$ke=async()=>{const{diagram:e}=await si(()=>import("./flowDiagram-v2-96b9c2cf-de9cc4aa.js"),["./flowDiagram-v2-96b9c2cf-de9cc4aa.js","./flowDb-956e92f1-fdebec47.js","./styles-c10674c1-897fbfdd.js","./graph-ca9e6217.js","./index-3862675e-c5ceb692.js","./layout-d4307784.js","./clone-a0f9c4ed.js","./edges-e0da2a9e-b1553799.js","./createText-2e5e7dd3-1c669cad.js","./line-0567aaa7.js","./array-9f3ba611.js","./path-53f90ab3.js","./channel-0cd70adf.js"],import.meta.url);return{id:jq,diagram:e}},e7e={id:jq,detector:Jke,loader:$ke},t7e=e7e,Hq="er",r7e=e=>/^\s*erDiagram/.test(e),n7e=async()=>{const{diagram:e}=await si(()=>import("./erDiagram-9861fffd-112388d6.js"),["./erDiagram-9861fffd-112388d6.js","./graph-ca9e6217.js","./layout-d4307784.js","./line-0567aaa7.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Hq,diagram:e}},i7e={id:Hq,detector:r7e,loader:n7e},o7e=i7e,_q="gitGraph",a7e=e=>/^\s*gitGraph/.test(e),s7e=async()=>{const{diagram:e}=await si(()=>import("./gitGraphDiagram-72cf32ee-22f8666f.js"),[],import.meta.url);return{id:_q,diagram:e}},l7e={id:_q,detector:a7e,loader:s7e},u7e=l7e,Xq="gantt",c7e=e=>/^\s*gantt/.test(e),f7e=async()=>{const{diagram:e}=await si(()=>import("./ganttDiagram-c361ad54-83f68c51.js"),["./ganttDiagram-c361ad54-83f68c51.js","./linear-c11b95cf.js","./init-77b53fdd.js"],import.meta.url);return{id:Xq,diagram:e}},d7e={id:Xq,detector:c7e,loader:f7e},h7e=d7e,Vq="info",A7e=e=>/^\s*info/.test(e),p7e=async()=>{const{diagram:e}=await si(()=>import("./infoDiagram-f8f76790-faa9999b.js"),[],import.meta.url);return{id:Vq,diagram:e}},m7e={id:Vq,detector:A7e,loader:p7e},qq="pie",g7e=e=>/^\s*pie/.test(e),v7e=async()=>{const{diagram:e}=await si(()=>import("./pieDiagram-8a3498a8-34b433fa.js"),["./pieDiagram-8a3498a8-34b433fa.js","./arc-63212852.js","./path-53f90ab3.js","./ordinal-ba9b4969.js","./init-77b53fdd.js","./array-9f3ba611.js"],import.meta.url);return{id:qq,diagram:e}},y7e={id:qq,detector:g7e,loader:v7e},Wq="quadrantChart",b7e=e=>/^\s*quadrantChart/.test(e),w7e=async()=>{const{diagram:e}=await si(()=>import("./quadrantDiagram-120e2f19-4cab816e.js"),["./quadrantDiagram-120e2f19-4cab816e.js","./linear-c11b95cf.js","./init-77b53fdd.js"],import.meta.url);return{id:Wq,diagram:e}},x7e={id:Wq,detector:b7e,loader:w7e},C7e=x7e,Uq="xychart",S7e=e=>/^\s*xychart-beta/.test(e),k7e=async()=>{const{diagram:e}=await si(()=>import("./xychartDiagram-e933f94c-4abeb0e2.js"),["./xychartDiagram-e933f94c-4abeb0e2.js","./createText-2e5e7dd3-1c669cad.js","./init-77b53fdd.js","./ordinal-ba9b4969.js","./linear-c11b95cf.js","./line-0567aaa7.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Uq,diagram:e}},E7e={id:Uq,detector:S7e,loader:k7e},T7e=E7e,Qq="requirement",O7e=e=>/^\s*requirement(Diagram)?/.test(e),P7e=async()=>{const{diagram:e}=await si(()=>import("./requirementDiagram-deff3bca-8c22fa9e.js"),["./requirementDiagram-deff3bca-8c22fa9e.js","./graph-ca9e6217.js","./layout-d4307784.js","./line-0567aaa7.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Qq,diagram:e}},B7e={id:Qq,detector:O7e,loader:P7e},L7e=B7e,Gq="sequence",M7e=e=>/^\s*sequenceDiagram/.test(e),D7e=async()=>{const{diagram:e}=await si(()=>import("./sequenceDiagram-704730f1-fbcd7fc9.js"),["./sequenceDiagram-704730f1-fbcd7fc9.js","./svgDrawCommon-08f97a94-d667fac1.js"],import.meta.url);return{id:Gq,diagram:e}},I7e={id:Gq,detector:M7e,loader:D7e},N7e=I7e,Yq="class",R7e=(e,t)=>{var n;return((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},F7e=async()=>{const{diagram:e}=await si(()=>import("./classDiagram-70f12bd4-df71a04c.js"),["./classDiagram-70f12bd4-df71a04c.js","./styles-9a916d00-951eac83.js","./graph-ca9e6217.js","./layout-d4307784.js","./line-0567aaa7.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Yq,diagram:e}},z7e={id:Yq,detector:R7e,loader:F7e},j7e=z7e,Zq="classDiagram",H7e=(e,t)=>{var n;return/^\s*classDiagram/.test(e)&&((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},_7e=async()=>{const{diagram:e}=await si(()=>import("./classDiagram-v2-f2320105-9b275968.js"),["./classDiagram-v2-f2320105-9b275968.js","./styles-9a916d00-951eac83.js","./graph-ca9e6217.js","./index-3862675e-c5ceb692.js","./layout-d4307784.js","./clone-a0f9c4ed.js","./edges-e0da2a9e-b1553799.js","./createText-2e5e7dd3-1c669cad.js","./line-0567aaa7.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Zq,diagram:e}},X7e={id:Zq,detector:H7e,loader:_7e},V7e=X7e,Kq="state",q7e=(e,t)=>{var n;return((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},W7e=async()=>{const{diagram:e}=await si(()=>import("./stateDiagram-587899a1-45f05ea6.js"),["./stateDiagram-587899a1-45f05ea6.js","./styles-6aaf32cf-2f29dbd5.js","./graph-ca9e6217.js","./layout-d4307784.js","./line-0567aaa7.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Kq,diagram:e}},U7e={id:Kq,detector:q7e,loader:W7e},Q7e=U7e,Jq="stateDiagram",G7e=(e,t)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},Y7e=async()=>{const{diagram:e}=await si(()=>import("./stateDiagram-v2-d93cdb3a-beab1ea6.js"),["./stateDiagram-v2-d93cdb3a-beab1ea6.js","./styles-6aaf32cf-2f29dbd5.js","./graph-ca9e6217.js","./index-3862675e-c5ceb692.js","./layout-d4307784.js","./clone-a0f9c4ed.js","./edges-e0da2a9e-b1553799.js","./createText-2e5e7dd3-1c669cad.js","./line-0567aaa7.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Jq,diagram:e}},Z7e={id:Jq,detector:G7e,loader:Y7e},K7e=Z7e,$q="journey",J7e=e=>/^\s*journey/.test(e),$7e=async()=>{const{diagram:e}=await si(()=>import("./journeyDiagram-49397b02-c4dda8d9.js"),["./journeyDiagram-49397b02-c4dda8d9.js","./svgDrawCommon-08f97a94-d667fac1.js","./arc-63212852.js","./path-53f90ab3.js"],import.meta.url);return{id:$q,diagram:e}},eEe={id:$q,detector:J7e,loader:$7e},tEe=eEe,rEe=function(e,t){for(let n of t)e.attr(n[0],n[1])},nEe=function(e,t,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${t}px;`)):(r.set("height",e),r.set("width",t)),r},eW=function(e,t,n,r){const o=nEe(t,n,r);rEe(e,o)},iEe=function(e,t,n,r){const o=t.node().getBBox(),i=o.width,a=o.height;gr.info(`SVG bounds: ${i}x${a}`,o);let s=0,l=0;gr.info(`Graph bounds: ${s}x${l}`,e),s=i+n*2,l=a+n*2,gr.info(`Calculated bounds: ${s}x${l}`),eW(t,l,s,r);const u=`${o.x-n} ${o.y-n} ${o.width+2*n} ${o.height+2*n}`;t.attr("viewBox",u)},Ix={},oEe=(e,t,n)=>{let r="";return e in Ix&&Ix[e]?r=Ix[e](n):gr.warn(`No theme found for ${e}`),` & {
|
|
460
460
|
font-family: ${n.fontFamily};
|
|
461
461
|
font-size: ${n.fontSize};
|
|
462
462
|
fill: ${n.textColor}
|
|
@@ -507,7 +507,7 @@ ${f}"]:::collect
|
|
|
507
507
|
${t}
|
|
508
508
|
`},aEe=(e,t)=>{t!==void 0&&(Ix[e]=t)},sEe=oEe;let nO="",iO="",oO="";const aO=e=>H1(e,Du()),lEe=()=>{nO="",oO="",iO=""},uEe=e=>{nO=aO(e).replace(/^\s+/g,"")},cEe=()=>nO,fEe=e=>{oO=aO(e).replace(/\n\s+/g,`
|
|
509
509
|
`)},dEe=()=>oO,hEe=e=>{iO=aO(e)},AEe=()=>iO,pEe=Object.freeze(Object.defineProperty({__proto__:null,clear:lEe,getAccDescription:dEe,getAccTitle:cEe,getDiagramTitle:AEe,setAccDescription:fEe,setAccTitle:uEe,setDiagramTitle:hEe},Symbol.toStringTag,{value:"Module"})),mEe=gr,gEe=J6,sO=Du,Z8e=Iq,K8e=Ig,vEe=e=>H1(e,sO()),yEe=iEe,bEe=()=>pEe,iC={},oC=(e,t,n)=>{var r;if(iC[e])throw new Error(`Diagram ${e} already registered.`);iC[e]=t,n&&Tq(e,n),aEe(e,t.styles),(r=t.injectUtils)==null||r.call(t,mEe,gEe,sO,vEe,yEe,bEe(),()=>{})},lO=e=>{if(e in iC)return iC[e];throw new wEe(e)};class wEe extends Error{constructor(t){super(`Diagram ${t} not found.`)}}const xEe=e=>{var t;const{securityLevel:n}=sO();let r=js("body");if(n==="sandbox"){const a=((t=js(`#i${e}`).node())==null?void 0:t.contentDocument)??document;r=js(a.body)}return r.select(`#${e}`)},CEe=(e,t,n)=>{gr.debug(`rendering svg for syntax error
|
|
510
|
-
`);const r=xEe(t),o=r.append("g");r.attr("viewBox","0 0 2412 512"),eW(r,100,512,!0),o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},tW={draw:CEe},SEe=tW,kEe={db:{},renderer:tW,parser:{parser:{yy:{}},parse:()=>{}}},EEe=kEe,rW="flowchart-elk",TEe=(e,t)=>{var n;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk")},OEe=async()=>{const{diagram:e}=await si(()=>import("./flowchart-elk-definition-4a651766-
|
|
510
|
+
`);const r=xEe(t),o=r.append("g");r.attr("viewBox","0 0 2412 512"),eW(r,100,512,!0),o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},tW={draw:CEe},SEe=tW,kEe={db:{},renderer:tW,parser:{parser:{yy:{}},parse:()=>{}}},EEe=kEe,rW="flowchart-elk",TEe=(e,t)=>{var n;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk")},OEe=async()=>{const{diagram:e}=await si(()=>import("./flowchart-elk-definition-4a651766-e1dc03e5.js"),["./flowchart-elk-definition-4a651766-e1dc03e5.js","./flowDb-956e92f1-fdebec47.js","./edges-e0da2a9e-b1553799.js","./createText-2e5e7dd3-1c669cad.js","./line-0567aaa7.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:rW,diagram:e}},PEe={id:rW,detector:TEe,loader:OEe},BEe=PEe,nW="timeline",LEe=e=>/^\s*timeline/.test(e),MEe=async()=>{const{diagram:e}=await si(()=>import("./timeline-definition-85554ec2-e3205144.js"),["./timeline-definition-85554ec2-e3205144.js","./arc-63212852.js","./path-53f90ab3.js"],import.meta.url);return{id:nW,diagram:e}},DEe={id:nW,detector:LEe,loader:MEe},IEe=DEe,iW="mindmap",NEe=e=>/^\s*mindmap/.test(e),REe=async()=>{const{diagram:e}=await si(()=>import("./mindmap-definition-fc14e90a-0c7d3ca9.js"),["./mindmap-definition-fc14e90a-0c7d3ca9.js","./createText-2e5e7dd3-1c669cad.js"],import.meta.url);return{id:iW,diagram:e}},FEe={id:iW,detector:NEe,loader:REe},zEe=FEe,oW="sankey",jEe=e=>/^\s*sankey-beta/.test(e),HEe=async()=>{const{diagram:e}=await si(()=>import("./sankeyDiagram-04a897e0-70ce9e8e.js"),["./sankeyDiagram-04a897e0-70ce9e8e.js","./ordinal-ba9b4969.js","./init-77b53fdd.js","./Tableau10-1b767f5e.js"],import.meta.url);return{id:oW,diagram:e}},_Ee={id:oW,detector:jEe,loader:HEe},XEe=_Ee,aW="block",VEe=e=>/^\s*block-beta/.test(e),qEe=async()=>{const{diagram:e}=await si(()=>import("./blockDiagram-38ab4fdb-eecf6b13.js"),["./blockDiagram-38ab4fdb-eecf6b13.js","./clone-a0f9c4ed.js","./graph-ca9e6217.js","./edges-e0da2a9e-b1553799.js","./createText-2e5e7dd3-1c669cad.js","./line-0567aaa7.js","./array-9f3ba611.js","./path-53f90ab3.js","./ordinal-ba9b4969.js","./init-77b53fdd.js","./Tableau10-1b767f5e.js","./channel-0cd70adf.js"],import.meta.url);return{id:aW,diagram:e}},WEe={id:aW,detector:VEe,loader:qEe},UEe=WEe;let DI=!1;const uO=()=>{DI||(DI=!0,oC("error",EEe,e=>e.toLowerCase().trim()==="error"),oC("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},e=>e.toLowerCase().trimStart().startsWith("---")),Eq(Qke,V7e,j7e,o7e,h7e,m7e,y7e,L7e,N7e,BEe,t7e,Kke,zEe,IEe,u7e,K7e,Q7e,tEe,C7e,XEe,T7e,UEe))};class sW{constructor(t,n={}){this.text=t,this.metadata=n,this.type="graph",this.text=Rke(t),this.text+=`
|
|
511
511
|
`;const r=Du();try{this.type=jS(t,r)}catch(i){this.type="error",this.detectError=i}const o=lO(this.type);gr.debug("Type "+this.type),this.db=o.db,this.renderer=o.renderer,this.parser=o.parser,this.parser.parser.yy=this.db,this.init=o.init,this.parse()}parse(){var t,n,r,o,i;if(this.detectError)throw this.detectError;(n=(t=this.db).clear)==null||n.call(t);const a=Du();(r=this.init)==null||r.call(this,a),this.metadata.title&&((i=(o=this.db).setDiagramTitle)==null||i.call(o,this.metadata.title)),this.parser.parse(this.text)}async render(t,n){await this.renderer.draw(this.text,t,n,this)}getParser(){return this.parser}getType(){return this.type}}const QEe=async(e,t={})=>{const n=jS(e,Du());try{lO(n)}catch{const o=cke(n);if(!o)throw new kq(`Diagram ${n} not found.`);const{id:i,diagram:a}=await o();oC(i,a)}return new sW(e,t)};let II=[];const GEe=()=>{II.forEach(e=>{e()}),II=[]},YEe="graphics-document document";function ZEe(e,t){e.attr("role",YEe),t!==""&&e.attr("aria-roledescription",t)}function KEe(e,t,n,r){if(e.insert!==void 0){if(n){const o=`chart-desc-${r}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(n)}if(t){const o=`chart-title-${r}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}const JEe=e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function lW(e){return typeof e>"u"||e===null}function $Ee(e){return typeof e=="object"&&e!==null}function e9e(e){return Array.isArray(e)?e:lW(e)?[]:[e]}function t9e(e,t){var n,r,o,i;if(t)for(i=Object.keys(t),n=0,r=i.length;n<r;n+=1)o=i[n],e[o]=t[o];return e}function r9e(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function n9e(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var i9e=lW,o9e=$Ee,a9e=e9e,s9e=r9e,l9e=n9e,u9e=t9e,la={isNothing:i9e,isObject:o9e,toArray:a9e,repeat:s9e,isNegativeZero:l9e,extend:u9e};function uW(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
512
512
|
|
|
513
513
|
`+e.mark.snippet),r+" "+n):r}function _1(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=uW(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}_1.prototype=Object.create(Error.prototype);_1.prototype.constructor=_1;_1.prototype.toString=function(t){return this.name+": "+uW(this,t)};var Sc=_1;function wE(e,t,n,r,o){var i="",a="",s=Math.floor(o/2)-1;return r-t>s&&(i=" ... ",t=r-s+i.length),n-r>s&&(a=" ...",n=r+s-a.length),{str:i+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+i.length}}function xE(e,t){return la.repeat(" ",t-e.length)+e}function c9e(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],o=[],i,a=-1;i=n.exec(e.buffer);)o.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var s="",l,u,c=Math.min(e.line+t.linesAfter,o.length).toString().length,f=t.maxLength-(t.indent+c+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)u=wE(e.buffer,r[a-l],o[a-l],e.position-(r[a]-r[a-l]),f),s=la.repeat(" ",t.indent)+xE((e.line-l+1).toString(),c)+" | "+u.str+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{l as Y,U as D,i as M}from"./index-
|
|
1
|
+
import{l as Y,U as D,i as M}from"./index-3e293924.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
|
|
2
2
|
`+o.showPosition()+`
|
|
3
3
|
Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],_.$=r[r.length-c],_._$={first_line:i[i.length-(c||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(c||1)].first_column,last_column:i[i.length-1].last_column},z&&(_._$.range=[i[i.length-(c||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(_,[P,L,v,p.yy,h[1],r,i].concat(R)),typeof w<"u")return w;c&&(n=n.slice(0,-1*c*2),r=r.slice(0,-1*c),i=i.slice(0,-1*c)),n.push(this.productions_[h[1]][0]),r.push(_.$),i.push(_._$),F=d[n[n.length-2]][n[n.length-1]],n.push(F);break;case 3:return!0}}return!0}},k=function(){var u={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as C,C as yt,D as ft,s as dt,g as pt,b as gt,a as mt,E as xt,h as W,i as kt}from"./index-
|
|
1
|
+
import{c as C,C as yt,D as ft,s as dt,g as pt,b as gt,a as mt,E as xt,h as W,i as kt}from"./index-3e293924.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-08f97a94-d667fac1.js";import{a as Q}from"./arc-63212852.js";import"./path-53f90ab3.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,O,I={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`:
|
|
2
2
|
`+x.showPosition()+`
|
|
3
3
|
Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":q="Parse error on line "+(R+1)+": Unexpected "+(_==J?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(q,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:Y,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),d.push(x.yytext),o.push(x.yylloc),a.push(b[1]),_=null,Z=x.yyleng,k=x.yytext,R=x.yylineno,Y=x.yylloc;break;case 2:if($=this.productions_[b[1]][1],I.$=d[d.length-$],I._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},ht&&(I._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),O=this.performAction.apply(I,[k,Z,R,S.yy,b[1],d,o].concat(ct)),typeof O<"u")return O;$&&(a=a.slice(0,-1*$*2),d=d.slice(0,-1*$),o=o.slice(0,-1*$)),a.push(this.productions_[b[1]][0]),d.push(I.$),o.push(I._$),K=w[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|