api-tests-coverage 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard/assets/_basePickBy-DK6M9Uvz.js +1 -0
- package/dist/dashboard/assets/_baseUniq-BPCxdwlX.js +1 -0
- package/dist/dashboard/assets/arc-225azWF8.js +1 -0
- package/dist/dashboard/assets/architectureDiagram-VXUJARFQ-BW9j-2rE.js +36 -0
- package/dist/dashboard/assets/blockDiagram-VD42YOAC-CcWyVh_8.js +122 -0
- package/dist/dashboard/assets/c4Diagram-YG6GDRKO-Bq0y8Ms0.js +10 -0
- package/dist/dashboard/assets/channel-CPmdNASe.js +1 -0
- package/dist/dashboard/assets/chunk-4BX2VUAB-BrlBx_h4.js +1 -0
- package/dist/dashboard/assets/chunk-55IACEB6-BTGWaOkw.js +1 -0
- package/dist/dashboard/assets/chunk-B4BG7PRW-B-3Me5OV.js +165 -0
- package/dist/dashboard/assets/chunk-DI55MBZ5-BLZCyXU3.js +220 -0
- package/dist/dashboard/assets/chunk-FMBD7UC4-Bm9KRQE1.js +15 -0
- package/dist/dashboard/assets/chunk-QN33PNHL-DtWoo2Hn.js +1 -0
- package/dist/dashboard/assets/chunk-QZHKN3VN-DfaeFdsW.js +1 -0
- package/dist/dashboard/assets/chunk-TZMSLE5B-CM7Di7Gz.js +1 -0
- package/dist/dashboard/assets/classDiagram-2ON5EDUG-DTSnWk0q.js +1 -0
- package/dist/dashboard/assets/classDiagram-v2-WZHVMYZB-DTSnWk0q.js +1 -0
- package/dist/dashboard/assets/clone-DiFVAewv.js +1 -0
- package/dist/dashboard/assets/cose-bilkent-S5V4N54A-CI6S9tNC.js +1 -0
- package/dist/dashboard/assets/cytoscape.esm-CyJtwmzi.js +331 -0
- package/dist/dashboard/assets/dagre-6UL2VRFP-CD25jMwx.js +4 -0
- package/dist/dashboard/assets/diagram-PSM6KHXK-B2ziHyX_.js +24 -0
- package/dist/dashboard/assets/diagram-QEK2KX5R-DpPMBb2T.js +43 -0
- package/dist/dashboard/assets/diagram-S2PKOQOG-BplBVLaZ.js +24 -0
- package/dist/dashboard/assets/erDiagram-Q2GNP2WA-C6Kdrqa_.js +60 -0
- package/dist/dashboard/assets/flowDiagram-NV44I4VS-CBo4bgv8.js +162 -0
- package/dist/dashboard/assets/ganttDiagram-JELNMOA3-DL8oIX3C.js +267 -0
- package/dist/dashboard/assets/gitGraphDiagram-V2S2FVAM-5oPGxe6l.js +65 -0
- package/dist/dashboard/assets/graph-DWVIsnRu.js +1 -0
- package/dist/dashboard/assets/index-B2mS1bcV.js +522 -0
- package/dist/dashboard/assets/index-DBTGeaha.css +1 -0
- package/dist/dashboard/assets/infoDiagram-HS3SLOUP-D-bnjqH3.js +2 -0
- package/dist/dashboard/assets/journeyDiagram-XKPGCS4Q-DkT7QyWQ.js +139 -0
- package/dist/dashboard/assets/kanban-definition-3W4ZIXB7-CSO8OAdK.js +89 -0
- package/dist/dashboard/assets/katex-O9d3_IXG.js +261 -0
- package/dist/dashboard/assets/layout-BRUlIe_x.js +1 -0
- package/dist/dashboard/assets/mindmap-definition-VGOIOE7T-DabWpbNO.js +68 -0
- package/dist/dashboard/assets/pieDiagram-ADFJNKIX-x6W4JfPL.js +30 -0
- package/dist/dashboard/assets/quadrantDiagram-AYHSOK5B-Cs_QHGFN.js +7 -0
- package/dist/dashboard/assets/requirementDiagram-UZGBJVZJ-Y6IeHRvx.js +64 -0
- package/dist/dashboard/assets/sankeyDiagram-TZEHDZUN-CZT51ITh.js +10 -0
- package/dist/dashboard/assets/sequenceDiagram-WL72ISMW-DyAQKRQ-.js +145 -0
- package/dist/dashboard/assets/stateDiagram-FKZM4ZOC-DeadfBBo.js +1 -0
- package/dist/dashboard/assets/stateDiagram-v2-4FDKWEC3-D58eQQQS.js +1 -0
- package/dist/dashboard/assets/timeline-definition-IT6M3QCI-DYmeeClO.js +61 -0
- package/dist/dashboard/assets/treemap-GDKQZRPO-CKPSdFAX.js +162 -0
- package/dist/dashboard/assets/xychartDiagram-PRI3JC2R-Ch7ZZyVX.js +7 -0
- package/dist/dashboard/dist/assets/_basePickBy-DK6M9Uvz.js +1 -0
- package/dist/dashboard/dist/assets/_basePickBy-P9JMLvtQ.js +1 -0
- package/dist/dashboard/dist/assets/_baseUniq-BLr5OOl5.js +1 -0
- package/dist/dashboard/dist/assets/_baseUniq-BPCxdwlX.js +1 -0
- package/dist/dashboard/dist/assets/arc-225azWF8.js +1 -0
- package/dist/dashboard/dist/assets/arc-FwwTLzl4.js +1 -0
- package/dist/dashboard/dist/assets/architectureDiagram-VXUJARFQ-BW9j-2rE.js +36 -0
- package/dist/dashboard/dist/assets/architectureDiagram-VXUJARFQ-C7QAcrIt.js +36 -0
- package/dist/dashboard/dist/assets/blockDiagram-VD42YOAC-BYvjSDpK.js +122 -0
- package/dist/dashboard/dist/assets/blockDiagram-VD42YOAC-CcWyVh_8.js +122 -0
- package/dist/dashboard/dist/assets/c4Diagram-YG6GDRKO-Bq0y8Ms0.js +10 -0
- package/dist/dashboard/dist/assets/c4Diagram-YG6GDRKO-dUTtO4_k.js +10 -0
- package/dist/dashboard/dist/assets/channel-CPmdNASe.js +1 -0
- package/dist/dashboard/dist/assets/channel-DRY_ja-e.js +1 -0
- package/dist/dashboard/dist/assets/chunk-4BX2VUAB-BrlBx_h4.js +1 -0
- package/dist/dashboard/dist/assets/chunk-4BX2VUAB-NmyQ9Lvf.js +1 -0
- package/dist/dashboard/dist/assets/chunk-55IACEB6-BTGWaOkw.js +1 -0
- package/dist/dashboard/dist/assets/chunk-55IACEB6-GAN8BMbh.js +1 -0
- package/dist/dashboard/dist/assets/chunk-B4BG7PRW-B-3Me5OV.js +165 -0
- package/dist/dashboard/dist/assets/chunk-B4BG7PRW-CKtaL90X.js +165 -0
- package/dist/dashboard/dist/assets/chunk-DI55MBZ5-BLZCyXU3.js +220 -0
- package/dist/dashboard/dist/assets/chunk-DI55MBZ5-GokZ0alw.js +220 -0
- package/dist/dashboard/dist/assets/chunk-FMBD7UC4-Bm9KRQE1.js +15 -0
- package/dist/dashboard/dist/assets/chunk-FMBD7UC4-D8tBTVUA.js +15 -0
- package/dist/dashboard/dist/assets/chunk-QN33PNHL-C59bvcTc.js +1 -0
- package/dist/dashboard/dist/assets/chunk-QN33PNHL-DtWoo2Hn.js +1 -0
- package/dist/dashboard/dist/assets/chunk-QZHKN3VN-DfaeFdsW.js +1 -0
- package/dist/dashboard/dist/assets/chunk-QZHKN3VN-E7ncuJVt.js +1 -0
- package/dist/dashboard/dist/assets/chunk-TZMSLE5B-BcLpi7P1.js +1 -0
- package/dist/dashboard/dist/assets/chunk-TZMSLE5B-CM7Di7Gz.js +1 -0
- package/dist/dashboard/dist/assets/classDiagram-2ON5EDUG-DTSnWk0q.js +1 -0
- package/dist/dashboard/dist/assets/classDiagram-2ON5EDUG-Dy8_C5lE.js +1 -0
- package/dist/dashboard/dist/assets/classDiagram-v2-WZHVMYZB-DTSnWk0q.js +1 -0
- package/dist/dashboard/dist/assets/classDiagram-v2-WZHVMYZB-Dy8_C5lE.js +1 -0
- package/dist/dashboard/dist/assets/clone-B0_qHCw2.js +1 -0
- package/dist/dashboard/dist/assets/clone-DiFVAewv.js +1 -0
- package/dist/dashboard/dist/assets/cose-bilkent-S5V4N54A-BYK-qqpA.js +1 -0
- package/dist/dashboard/dist/assets/cose-bilkent-S5V4N54A-CI6S9tNC.js +1 -0
- package/dist/dashboard/dist/assets/cytoscape.esm-CyJtwmzi.js +331 -0
- package/dist/dashboard/dist/assets/dagre-6UL2VRFP-CD25jMwx.js +4 -0
- package/dist/dashboard/dist/assets/dagre-6UL2VRFP-CNIXE38x.js +4 -0
- package/dist/dashboard/dist/assets/diagram-PSM6KHXK-B2ziHyX_.js +24 -0
- package/dist/dashboard/dist/assets/diagram-PSM6KHXK-Dza_WM04.js +24 -0
- package/dist/dashboard/dist/assets/diagram-QEK2KX5R-175MJwNN.js +43 -0
- package/dist/dashboard/dist/assets/diagram-QEK2KX5R-DpPMBb2T.js +43 -0
- package/dist/dashboard/dist/assets/diagram-S2PKOQOG-BplBVLaZ.js +24 -0
- package/dist/dashboard/dist/assets/diagram-S2PKOQOG-DpUYqpiH.js +24 -0
- package/dist/dashboard/dist/assets/erDiagram-Q2GNP2WA-C6Kdrqa_.js +60 -0
- package/dist/dashboard/dist/assets/erDiagram-Q2GNP2WA-YGhaTIGv.js +60 -0
- package/dist/dashboard/dist/assets/flowDiagram-NV44I4VS-CBo4bgv8.js +162 -0
- package/dist/dashboard/dist/assets/flowDiagram-NV44I4VS-D9XX51TY.js +162 -0
- package/dist/dashboard/dist/assets/ganttDiagram-JELNMOA3-BnlL2FL1.js +267 -0
- package/dist/dashboard/dist/assets/ganttDiagram-JELNMOA3-DL8oIX3C.js +267 -0
- package/dist/dashboard/dist/assets/gitGraphDiagram-V2S2FVAM-5oPGxe6l.js +65 -0
- package/dist/dashboard/dist/assets/gitGraphDiagram-V2S2FVAM-IqGQHaKk.js +65 -0
- package/dist/dashboard/dist/assets/graph-DOoKbdQ6.js +1 -0
- package/dist/dashboard/dist/assets/graph-DWVIsnRu.js +1 -0
- package/dist/dashboard/dist/assets/index-B2mS1bcV.js +522 -0
- package/dist/dashboard/dist/assets/index-CTnNA-vP.js +522 -0
- package/dist/dashboard/dist/assets/index-DBTGeaha.css +1 -0
- package/dist/dashboard/dist/assets/infoDiagram-HS3SLOUP-D-PYXUrg.js +2 -0
- package/dist/dashboard/dist/assets/infoDiagram-HS3SLOUP-D-bnjqH3.js +2 -0
- package/dist/dashboard/dist/assets/journeyDiagram-XKPGCS4Q-DIxnZShx.js +139 -0
- package/dist/dashboard/dist/assets/journeyDiagram-XKPGCS4Q-DkT7QyWQ.js +139 -0
- package/dist/dashboard/dist/assets/kanban-definition-3W4ZIXB7-CSO8OAdK.js +89 -0
- package/dist/dashboard/dist/assets/kanban-definition-3W4ZIXB7-DIQJ-dLy.js +89 -0
- package/dist/dashboard/dist/assets/katex-O9d3_IXG.js +261 -0
- package/dist/dashboard/dist/assets/layout-BRUlIe_x.js +1 -0
- package/dist/dashboard/dist/assets/layout-Dx_sC6cU.js +1 -0
- package/dist/dashboard/dist/assets/mindmap-definition-VGOIOE7T-BWOv2jfH.js +68 -0
- package/dist/dashboard/dist/assets/mindmap-definition-VGOIOE7T-DabWpbNO.js +68 -0
- package/dist/dashboard/dist/assets/pieDiagram-ADFJNKIX-B-ZMfN-z.js +30 -0
- package/dist/dashboard/dist/assets/pieDiagram-ADFJNKIX-x6W4JfPL.js +30 -0
- package/dist/dashboard/dist/assets/quadrantDiagram-AYHSOK5B-Cs_QHGFN.js +7 -0
- package/dist/dashboard/dist/assets/quadrantDiagram-AYHSOK5B-lHEZJOJ6.js +7 -0
- package/dist/dashboard/dist/assets/requirementDiagram-UZGBJVZJ-Dmgv7ZrT.js +64 -0
- package/dist/dashboard/dist/assets/requirementDiagram-UZGBJVZJ-Y6IeHRvx.js +64 -0
- package/dist/dashboard/dist/assets/sankeyDiagram-TZEHDZUN-CZT51ITh.js +10 -0
- package/dist/dashboard/dist/assets/sankeyDiagram-TZEHDZUN-DYnsmtzq.js +10 -0
- package/dist/dashboard/dist/assets/sequenceDiagram-WL72ISMW-Cp0y_3Co.js +145 -0
- package/dist/dashboard/dist/assets/sequenceDiagram-WL72ISMW-DyAQKRQ-.js +145 -0
- package/dist/dashboard/dist/assets/stateDiagram-FKZM4ZOC-CmJ3FBc_.js +1 -0
- package/dist/dashboard/dist/assets/stateDiagram-FKZM4ZOC-DeadfBBo.js +1 -0
- package/dist/dashboard/dist/assets/stateDiagram-v2-4FDKWEC3-D58eQQQS.js +1 -0
- package/dist/dashboard/dist/assets/stateDiagram-v2-4FDKWEC3-DBJHmcPu.js +1 -0
- package/dist/dashboard/dist/assets/timeline-definition-IT6M3QCI-CnYcftUT.js +61 -0
- package/dist/dashboard/dist/assets/timeline-definition-IT6M3QCI-DYmeeClO.js +61 -0
- package/dist/dashboard/dist/assets/treemap-GDKQZRPO-B-4BtJ8O.js +162 -0
- package/dist/dashboard/dist/assets/treemap-GDKQZRPO-CKPSdFAX.js +162 -0
- package/dist/dashboard/dist/assets/xychartDiagram-PRI3JC2R-Ch7ZZyVX.js +7 -0
- package/dist/dashboard/dist/assets/xychartDiagram-PRI3JC2R-jiOJ2YB4.js +7 -0
- package/dist/dashboard/dist/index.html +14 -0
- package/dist/dashboard/dist/reports/business-coverage.json +201 -0
- package/dist/dashboard/dist/reports/coverage-intelligence.json +728 -0
- package/dist/dashboard/dist/reports/coverage-summary.json +763 -0
- package/dist/dashboard/dist/reports/endpoint-coverage.json +336 -0
- package/dist/dashboard/dist/reports/error-coverage.json +367 -0
- package/dist/dashboard/dist/reports/missing-tests-recommendations.json +285 -0
- package/dist/dashboard/dist/reports/risk-prioritization.json +312 -0
- package/dist/dashboard/dist/reports/security-coverage.json +299 -0
- package/dist/dashboard/dist/vite.svg +1 -0
- package/dist/dashboard/index.html +14 -0
- package/dist/dashboard/reports/business-coverage.json +201 -0
- package/dist/dashboard/reports/coverage-intelligence.json +728 -0
- package/dist/dashboard/reports/coverage-summary.json +763 -0
- package/dist/dashboard/reports/endpoint-coverage.json +336 -0
- package/dist/dashboard/reports/error-coverage.json +367 -0
- package/dist/dashboard/reports/missing-tests-recommendations.json +285 -0
- package/dist/dashboard/reports/risk-prioritization.json +312 -0
- package/dist/dashboard/reports/security-coverage.json +299 -0
- package/dist/dashboard/vite.svg +1 -0
- package/dist/src/index.js +74 -4
- package/dist/src/serveDashboard.d.ts +30 -0
- package/dist/src/serveDashboard.d.ts.map +1 -0
- package/dist/src/serveDashboard.js +191 -0
- package/package.json +3 -2
|
@@ -0,0 +1,522 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-6UL2VRFP-CNIXE38x.js","assets/graph-DOoKbdQ6.js","assets/_baseUniq-BLr5OOl5.js","assets/layout-Dx_sC6cU.js","assets/_basePickBy-P9JMLvtQ.js","assets/clone-B0_qHCw2.js","assets/cose-bilkent-S5V4N54A-BYK-qqpA.js","assets/cytoscape.esm-CyJtwmzi.js","assets/c4Diagram-YG6GDRKO-dUTtO4_k.js","assets/chunk-TZMSLE5B-BcLpi7P1.js","assets/flowDiagram-NV44I4VS-D9XX51TY.js","assets/chunk-FMBD7UC4-D8tBTVUA.js","assets/chunk-55IACEB6-GAN8BMbh.js","assets/chunk-QN33PNHL-C59bvcTc.js","assets/channel-DRY_ja-e.js","assets/erDiagram-Q2GNP2WA-YGhaTIGv.js","assets/gitGraphDiagram-V2S2FVAM-IqGQHaKk.js","assets/chunk-4BX2VUAB-NmyQ9Lvf.js","assets/chunk-QZHKN3VN-E7ncuJVt.js","assets/treemap-GDKQZRPO-B-4BtJ8O.js","assets/infoDiagram-HS3SLOUP-D-PYXUrg.js","assets/pieDiagram-ADFJNKIX-B-ZMfN-z.js","assets/arc-FwwTLzl4.js","assets/requirementDiagram-UZGBJVZJ-Dmgv7ZrT.js","assets/sequenceDiagram-WL72ISMW-Cp0y_3Co.js","assets/classDiagram-2ON5EDUG-Dy8_C5lE.js","assets/chunk-B4BG7PRW-CKtaL90X.js","assets/classDiagram-v2-WZHVMYZB-Dy8_C5lE.js","assets/stateDiagram-FKZM4ZOC-CmJ3FBc_.js","assets/chunk-DI55MBZ5-GokZ0alw.js","assets/stateDiagram-v2-4FDKWEC3-DBJHmcPu.js","assets/journeyDiagram-XKPGCS4Q-DIxnZShx.js","assets/timeline-definition-IT6M3QCI-CnYcftUT.js","assets/mindmap-definition-VGOIOE7T-BWOv2jfH.js","assets/kanban-definition-3W4ZIXB7-DIQJ-dLy.js","assets/diagram-S2PKOQOG-DpUYqpiH.js","assets/diagram-QEK2KX5R-175MJwNN.js","assets/blockDiagram-VD42YOAC-BYvjSDpK.js","assets/architectureDiagram-VXUJARFQ-C7QAcrIt.js","assets/diagram-PSM6KHXK-Dza_WM04.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var qW=Object.defineProperty;var VW=(e,t,r)=>t in e?qW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var He=(e,t,r)=>VW(e,typeof t!="symbol"?t+"":t,r);function YW(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var cf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function aTe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var PL={exports:{}},Cm={},AL={exports:{}},$e={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var eh=Symbol.for("react.element"),KW=Symbol.for("react.portal"),GW=Symbol.for("react.fragment"),XW=Symbol.for("react.strict_mode"),ZW=Symbol.for("react.profiler"),QW=Symbol.for("react.provider"),JW=Symbol.for("react.context"),e9=Symbol.for("react.forward_ref"),t9=Symbol.for("react.suspense"),r9=Symbol.for("react.memo"),n9=Symbol.for("react.lazy"),o_=Symbol.iterator;function i9(e){return e===null||typeof e!="object"?null:(e=o_&&e[o_]||e["@@iterator"],typeof e=="function"?e:null)}var OL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ML=Object.assign,LL={};function wc(e,t,r){this.props=e,this.context=t,this.refs=LL,this.updater=r||OL}wc.prototype.isReactComponent={};wc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};wc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function IL(){}IL.prototype=wc.prototype;function s1(e,t,r){this.props=e,this.context=t,this.refs=LL,this.updater=r||OL}var c1=s1.prototype=new IL;c1.constructor=s1;ML(c1,wc.prototype);c1.isPureReactComponent=!0;var l_=Array.isArray,$L=Object.prototype.hasOwnProperty,u1={current:null},DL={key:!0,ref:!0,__self:!0,__source:!0};function NL(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)$L.call(t,n)&&!DL.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)i[n]===void 0&&(i[n]=l[n]);return{$$typeof:eh,type:e,key:a,ref:o,props:i,_owner:u1.current}}function a9(e,t){return{$$typeof:eh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function f1(e){return typeof e=="object"&&e!==null&&e.$$typeof===eh}function o9(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var s_=/\/+/g;function Mv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?o9(""+e.key):t.toString(36)}function Ud(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case eh:case KW:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+Mv(o,0):n,l_(i)?(r="",e!=null&&(r=e.replace(s_,"$&/")+"/"),Ud(i,t,r,"",function(c){return c})):i!=null&&(f1(i)&&(i=a9(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(s_,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",l_(e))for(var l=0;l<e.length;l++){a=e[l];var s=n+Mv(a,l);o+=Ud(a,t,r,s,i)}else if(s=i9(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=n+Mv(a,l++),o+=Ud(a,t,r,s,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Gh(e,t,r){if(e==null)return e;var n=[],i=0;return Ud(e,n,"","",function(a){return t.call(r,a,i++)}),n}function l9(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Hr={current:null},qd={transition:null},s9={ReactCurrentDispatcher:Hr,ReactCurrentBatchConfig:qd,ReactCurrentOwner:u1};function jL(){throw Error("act(...) is not supported in production builds of React.")}$e.Children={map:Gh,forEach:function(e,t,r){Gh(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Gh(e,function(){t++}),t},toArray:function(e){return Gh(e,function(t){return t})||[]},only:function(e){if(!f1(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$e.Component=wc;$e.Fragment=GW;$e.Profiler=ZW;$e.PureComponent=s1;$e.StrictMode=XW;$e.Suspense=t9;$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=s9;$e.act=jL;$e.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=ML({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=u1.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)$L.call(t,s)&&!DL.hasOwnProperty(s)&&(n[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];n.children=l}return{$$typeof:eh,type:e.type,key:i,ref:a,props:n,_owner:o}};$e.createContext=function(e){return e={$$typeof:JW,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:QW,_context:e},e.Consumer=e};$e.createElement=NL;$e.createFactory=function(e){var t=NL.bind(null,e);return t.type=e,t};$e.createRef=function(){return{current:null}};$e.forwardRef=function(e){return{$$typeof:e9,render:e}};$e.isValidElement=f1;$e.lazy=function(e){return{$$typeof:n9,_payload:{_status:-1,_result:e},_init:l9}};$e.memo=function(e,t){return{$$typeof:r9,type:e,compare:t===void 0?null:t}};$e.startTransition=function(e){var t=qd.transition;qd.transition={};try{e()}finally{qd.transition=t}};$e.unstable_act=jL;$e.useCallback=function(e,t){return Hr.current.useCallback(e,t)};$e.useContext=function(e){return Hr.current.useContext(e)};$e.useDebugValue=function(){};$e.useDeferredValue=function(e){return Hr.current.useDeferredValue(e)};$e.useEffect=function(e,t){return Hr.current.useEffect(e,t)};$e.useId=function(){return Hr.current.useId()};$e.useImperativeHandle=function(e,t,r){return Hr.current.useImperativeHandle(e,t,r)};$e.useInsertionEffect=function(e,t){return Hr.current.useInsertionEffect(e,t)};$e.useLayoutEffect=function(e,t){return Hr.current.useLayoutEffect(e,t)};$e.useMemo=function(e,t){return Hr.current.useMemo(e,t)};$e.useReducer=function(e,t,r){return Hr.current.useReducer(e,t,r)};$e.useRef=function(e){return Hr.current.useRef(e)};$e.useState=function(e){return Hr.current.useState(e)};$e.useSyncExternalStore=function(e,t,r){return Hr.current.useSyncExternalStore(e,t,r)};$e.useTransition=function(){return Hr.current.useTransition()};$e.version="18.3.1";AL.exports=$e;var x=AL.exports;const c9=Yn(x),u9=YW({__proto__:null,default:c9},[x]);/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-jsx-runtime.production.min.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var f9=x,h9=Symbol.for("react.element"),d9=Symbol.for("react.fragment"),p9=Object.prototype.hasOwnProperty,g9=f9.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m9={key:!0,ref:!0,__self:!0,__source:!0};function RL(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)p9.call(t,n)&&!m9.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:h9,type:e,key:a,ref:o,props:i,_owner:g9.current}}Cm.Fragment=d9;Cm.jsx=RL;Cm.jsxs=RL;PL.exports=Cm;var E=PL.exports,BL={exports:{}},En={},FL={exports:{}},zL={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.min.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/(function(e){function t(L,W){var T=L.length;L.push(W);e:for(;0<T;){var V=T-1>>>1,J=L[V];if(0<i(J,W))L[V]=W,L[T]=J,T=V;else break e}}function r(L){return L.length===0?null:L[0]}function n(L){if(L.length===0)return null;var W=L[0],T=L.pop();if(T!==W){L[0]=T;e:for(var V=0,J=L.length,O=J>>>1;V<O;){var ue=2*(V+1)-1,ye=L[ue],te=ue+1,de=L[te];if(0>i(ye,T))te<J&&0>i(de,ye)?(L[V]=de,L[te]=T,V=te):(L[V]=ye,L[ue]=T,V=ue);else if(te<J&&0>i(de,T))L[V]=de,L[te]=T,V=te;else break e}}return W}function i(L,W){var T=L.sortIndex-W.sortIndex;return T!==0?T:L.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],c=[],u=1,f=null,h=3,d=!1,p=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(L){for(var W=r(c);W!==null;){if(W.callback===null)n(c);else if(W.startTime<=L)n(c),W.sortIndex=W.expirationTime,t(s,W);else break;W=r(c)}}function S(L){if(g=!1,b(L),!p)if(r(s)!==null)p=!0,j(C);else{var W=r(c);W!==null&&B(S,W.startTime-L)}}function C(L,W){p=!1,g&&(g=!1,m(P),P=-1),d=!0;var T=h;try{for(b(W),f=r(s);f!==null&&(!(f.expirationTime>W)||L&&!A());){var V=f.callback;if(typeof V=="function"){f.callback=null,h=f.priorityLevel;var J=V(f.expirationTime<=W);W=e.unstable_now(),typeof J=="function"?f.callback=J:f===r(s)&&n(s),b(W)}else n(s);f=r(s)}if(f!==null)var O=!0;else{var ue=r(c);ue!==null&&B(S,ue.startTime-W),O=!1}return O}finally{f=null,h=T,d=!1}}var w=!1,_=null,P=-1,I=5,$=-1;function A(){return!(e.unstable_now()-$<I)}function M(){if(_!==null){var L=e.unstable_now();$=L;var W=!0;try{W=_(!0,L)}finally{W?F():(w=!1,_=null)}}else w=!1}var F;if(typeof v=="function")F=function(){v(M)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,D=N.port2;N.port1.onmessage=M,F=function(){D.postMessage(null)}}else F=function(){y(M,0)};function j(L){_=L,w||(w=!0,F())}function B(L,W){P=y(function(){L(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){p||d||(p=!0,j(C))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(s)},e.unstable_next=function(L){switch(h){case 1:case 2:case 3:var W=3;break;default:W=h}var T=h;h=W;try{return L()}finally{h=T}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,W){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var T=h;h=L;try{return W()}finally{h=T}},e.unstable_scheduleCallback=function(L,W,T){var V=e.unstable_now();switch(typeof T=="object"&&T!==null?(T=T.delay,T=typeof T=="number"&&0<T?V+T:V):T=V,L){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=T+J,L={id:u++,callback:W,priorityLevel:L,startTime:T,expirationTime:J,sortIndex:-1},T>V?(L.sortIndex=T,t(c,L),r(s)===null&&L===r(c)&&(g?(m(P),P=-1):g=!0,B(S,T-V))):(L.sortIndex=J,t(s,L),p||d||(p=!0,j(C))),L},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(L){var W=h;return function(){var T=h;h=W;try{return L.apply(this,arguments)}finally{h=T}}}})(zL);FL.exports=zL;var y9=FL.exports;/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var v9=x,kn=y9;function G(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var WL=new Set,uf={};function Fl(e,t){Gs(e,t),Gs(e+"Capture",t)}function Gs(e,t){for(uf[e]=t,e=0;e<t.length;e++)WL.add(t[e])}var ba=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ox=Object.prototype.hasOwnProperty,x9=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c_={},u_={};function b9(e){return ox.call(u_,e)?!0:ox.call(c_,e)?!1:x9.test(e)?u_[e]=!0:(c_[e]=!0,!1)}function w9(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function k9(e,t,r,n){if(t===null||typeof t>"u"||w9(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ur(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var fr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fr[e]=new Ur(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fr[t]=new Ur(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fr[e]=new Ur(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fr[e]=new Ur(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){fr[e]=new Ur(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fr[e]=new Ur(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fr[e]=new Ur(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fr[e]=new Ur(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fr[e]=new Ur(e,5,!1,e.toLowerCase(),null,!1,!1)});var h1=/[\-:]([a-z])/g;function d1(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(h1,d1);fr[t]=new Ur(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(h1,d1);fr[t]=new Ur(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(h1,d1);fr[t]=new Ur(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fr[e]=new Ur(e,1,!1,e.toLowerCase(),null,!1,!1)});fr.xlinkHref=new Ur("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fr[e]=new Ur(e,1,!1,e.toLowerCase(),null,!0,!0)});function p1(e,t,r,n){var i=fr.hasOwnProperty(t)?fr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(k9(t,r,i,n)&&(r=null),n||i===null?b9(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var $a=v9.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xh=Symbol.for("react.element"),ds=Symbol.for("react.portal"),ps=Symbol.for("react.fragment"),g1=Symbol.for("react.strict_mode"),lx=Symbol.for("react.profiler"),HL=Symbol.for("react.provider"),UL=Symbol.for("react.context"),m1=Symbol.for("react.forward_ref"),sx=Symbol.for("react.suspense"),cx=Symbol.for("react.suspense_list"),y1=Symbol.for("react.memo"),Va=Symbol.for("react.lazy"),qL=Symbol.for("react.offscreen"),f_=Symbol.iterator;function Kc(e){return e===null||typeof e!="object"?null:(e=f_&&e[f_]||e["@@iterator"],typeof e=="function"?e:null)}var vt=Object.assign,Lv;function Eu(e){if(Lv===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Lv=t&&t[1]||""}return`
|
|
35
|
+
`+Lv+e}var Iv=!1;function $v(e,t){if(!e||Iv)return"";Iv=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
|
36
|
+
`),a=n.stack.split(`
|
|
37
|
+
`),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==a[l]){var s=`
|
|
38
|
+
`+i[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{Iv=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Eu(e):""}function S9(e){switch(e.tag){case 5:return Eu(e.type);case 16:return Eu("Lazy");case 13:return Eu("Suspense");case 19:return Eu("SuspenseList");case 0:case 2:case 15:return e=$v(e.type,!1),e;case 11:return e=$v(e.type.render,!1),e;case 1:return e=$v(e.type,!0),e;default:return""}}function ux(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ps:return"Fragment";case ds:return"Portal";case lx:return"Profiler";case g1:return"StrictMode";case sx:return"Suspense";case cx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case UL:return(e.displayName||"Context")+".Consumer";case HL:return(e._context.displayName||"Context")+".Provider";case m1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case y1:return t=e.displayName||null,t!==null?t:ux(e.type)||"Memo";case Va:t=e._payload,e=e._init;try{return ux(e(t))}catch{}}return null}function C9(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ux(t);case 8:return t===g1?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function go(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function VL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _9(e){var t=VL(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zh(e){e._valueTracker||(e._valueTracker=_9(e))}function YL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=VL(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ep(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function fx(e,t){var r=t.checked;return vt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function h_(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=go(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function KL(e,t){t=t.checked,t!=null&&p1(e,"checked",t,!1)}function hx(e,t){KL(e,t);var r=go(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?dx(e,t.type,r):t.hasOwnProperty("defaultValue")&&dx(e,t.type,go(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function d_(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function dx(e,t,r){(t!=="number"||Ep(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Tu=Array.isArray;function As(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+go(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function px(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(G(91));return vt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function p_(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(G(92));if(Tu(r)){if(1<r.length)throw Error(G(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:go(r)}}function GL(e,t){var r=go(t.value),n=go(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function g_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function XL(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function gx(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?XL(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Qh,ZL=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Qh=Qh||document.createElement("div"),Qh.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Qh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ff(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Wu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},E9=["Webkit","ms","Moz","O"];Object.keys(Wu).forEach(function(e){E9.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wu[t]=Wu[e]})});function QL(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Wu.hasOwnProperty(e)&&Wu[e]?(""+t).trim():t+"px"}function JL(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=QL(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var T9=vt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mx(e,t){if(t){if(T9[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(G(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(G(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(G(61))}if(t.style!=null&&typeof t.style!="object")throw Error(G(62))}}function yx(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vx=null;function v1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xx=null,Os=null,Ms=null;function m_(e){if(e=nh(e)){if(typeof xx!="function")throw Error(G(280));var t=e.stateNode;t&&(t=Am(t),xx(e.stateNode,e.type,t))}}function eI(e){Os?Ms?Ms.push(e):Ms=[e]:Os=e}function tI(){if(Os){var e=Os,t=Ms;if(Ms=Os=null,m_(e),t)for(e=0;e<t.length;e++)m_(t[e])}}function rI(e,t){return e(t)}function nI(){}var Dv=!1;function iI(e,t,r){if(Dv)return e(t,r);Dv=!0;try{return rI(e,t,r)}finally{Dv=!1,(Os!==null||Ms!==null)&&(nI(),tI())}}function hf(e,t){var r=e.stateNode;if(r===null)return null;var n=Am(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(G(231,t,typeof r));return r}var bx=!1;if(ba)try{var Gc={};Object.defineProperty(Gc,"passive",{get:function(){bx=!0}}),window.addEventListener("test",Gc,Gc),window.removeEventListener("test",Gc,Gc)}catch{bx=!1}function P9(e,t,r,n,i,a,o,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var Hu=!1,Tp=null,Pp=!1,wx=null,A9={onError:function(e){Hu=!0,Tp=e}};function O9(e,t,r,n,i,a,o,l,s){Hu=!1,Tp=null,P9.apply(A9,arguments)}function M9(e,t,r,n,i,a,o,l,s){if(O9.apply(this,arguments),Hu){if(Hu){var c=Tp;Hu=!1,Tp=null}else throw Error(G(198));Pp||(Pp=!0,wx=c)}}function zl(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function aI(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y_(e){if(zl(e)!==e)throw Error(G(188))}function L9(e){var t=e.alternate;if(!t){if(t=zl(e),t===null)throw Error(G(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return y_(i),e;if(a===n)return y_(i),t;a=a.sibling}throw Error(G(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,l=i.child;l;){if(l===r){o=!0,r=i,n=a;break}if(l===n){o=!0,n=i,r=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===r){o=!0,r=a,n=i;break}if(l===n){o=!0,n=a,r=i;break}l=l.sibling}if(!o)throw Error(G(189))}}if(r.alternate!==n)throw Error(G(190))}if(r.tag!==3)throw Error(G(188));return r.stateNode.current===r?e:t}function oI(e){return e=L9(e),e!==null?lI(e):null}function lI(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=lI(e);if(t!==null)return t;e=e.sibling}return null}var sI=kn.unstable_scheduleCallback,v_=kn.unstable_cancelCallback,I9=kn.unstable_shouldYield,$9=kn.unstable_requestPaint,Et=kn.unstable_now,D9=kn.unstable_getCurrentPriorityLevel,x1=kn.unstable_ImmediatePriority,cI=kn.unstable_UserBlockingPriority,Ap=kn.unstable_NormalPriority,N9=kn.unstable_LowPriority,uI=kn.unstable_IdlePriority,_m=null,Fi=null;function j9(e){if(Fi&&typeof Fi.onCommitFiberRoot=="function")try{Fi.onCommitFiberRoot(_m,e,void 0,(e.current.flags&128)===128)}catch{}}var ui=Math.clz32?Math.clz32:F9,R9=Math.log,B9=Math.LN2;function F9(e){return e>>>=0,e===0?32:31-(R9(e)/B9|0)|0}var Jh=64,ed=4194304;function Pu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Op(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var l=o&~i;l!==0?n=Pu(l):(a&=o,a!==0&&(n=Pu(a)))}else o=r&~i,o!==0?n=Pu(o):a!==0&&(n=Pu(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-ui(t),i=1<<r,n|=e[r],t&=~i;return n}function z9(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function W9(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ui(a),l=1<<o,s=i[o];s===-1?(!(l&r)||l&n)&&(i[o]=z9(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}function kx(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function fI(){var e=Jh;return Jh<<=1,!(Jh&4194240)&&(Jh=64),e}function Nv(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function th(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ui(t),e[t]=r}function H9(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-ui(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function b1(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ui(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Ge=0;function hI(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var dI,w1,pI,gI,mI,Sx=!1,td=[],no=null,io=null,ao=null,df=new Map,pf=new Map,Xa=[],U9="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function x_(e,t){switch(e){case"focusin":case"focusout":no=null;break;case"dragenter":case"dragleave":io=null;break;case"mouseover":case"mouseout":ao=null;break;case"pointerover":case"pointerout":df.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pf.delete(t.pointerId)}}function Xc(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},t!==null&&(t=nh(t),t!==null&&w1(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function q9(e,t,r,n,i){switch(t){case"focusin":return no=Xc(no,e,t,r,n,i),!0;case"dragenter":return io=Xc(io,e,t,r,n,i),!0;case"mouseover":return ao=Xc(ao,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return df.set(a,Xc(df.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,pf.set(a,Xc(pf.get(a)||null,e,t,r,n,i)),!0}return!1}function yI(e){var t=Jo(e.target);if(t!==null){var r=zl(t);if(r!==null){if(t=r.tag,t===13){if(t=aI(r),t!==null){e.blockedOn=t,mI(e.priority,function(){pI(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Cx(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);vx=n,r.target.dispatchEvent(n),vx=null}else return t=nh(r),t!==null&&w1(t),e.blockedOn=r,!1;t.shift()}return!0}function b_(e,t,r){Vd(e)&&r.delete(t)}function V9(){Sx=!1,no!==null&&Vd(no)&&(no=null),io!==null&&Vd(io)&&(io=null),ao!==null&&Vd(ao)&&(ao=null),df.forEach(b_),pf.forEach(b_)}function Zc(e,t){e.blockedOn===t&&(e.blockedOn=null,Sx||(Sx=!0,kn.unstable_scheduleCallback(kn.unstable_NormalPriority,V9)))}function gf(e){function t(i){return Zc(i,e)}if(0<td.length){Zc(td[0],e);for(var r=1;r<td.length;r++){var n=td[r];n.blockedOn===e&&(n.blockedOn=null)}}for(no!==null&&Zc(no,e),io!==null&&Zc(io,e),ao!==null&&Zc(ao,e),df.forEach(t),pf.forEach(t),r=0;r<Xa.length;r++)n=Xa[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Xa.length&&(r=Xa[0],r.blockedOn===null);)yI(r),r.blockedOn===null&&Xa.shift()}var Ls=$a.ReactCurrentBatchConfig,Mp=!0;function Y9(e,t,r,n){var i=Ge,a=Ls.transition;Ls.transition=null;try{Ge=1,k1(e,t,r,n)}finally{Ge=i,Ls.transition=a}}function K9(e,t,r,n){var i=Ge,a=Ls.transition;Ls.transition=null;try{Ge=4,k1(e,t,r,n)}finally{Ge=i,Ls.transition=a}}function k1(e,t,r,n){if(Mp){var i=Cx(e,t,r,n);if(i===null)Vv(e,t,n,Lp,r),x_(e,n);else if(q9(i,e,t,r,n))n.stopPropagation();else if(x_(e,n),t&4&&-1<U9.indexOf(e)){for(;i!==null;){var a=nh(i);if(a!==null&&dI(a),a=Cx(e,t,r,n),a===null&&Vv(e,t,n,Lp,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else Vv(e,t,n,null,r)}}var Lp=null;function Cx(e,t,r,n){if(Lp=null,e=v1(n),e=Jo(e),e!==null)if(t=zl(e),t===null)e=null;else if(r=t.tag,r===13){if(e=aI(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Lp=e,null}function vI(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(D9()){case x1:return 1;case cI:return 4;case Ap:case N9:return 16;case uI:return 536870912;default:return 16}default:return 16}}var Ja=null,S1=null,Yd=null;function xI(){if(Yd)return Yd;var e,t=S1,r=t.length,n,i="value"in Ja?Ja.value:Ja.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return Yd=i.slice(e,1<n?1-n:void 0)}function Kd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function rd(){return!0}function w_(){return!1}function Tn(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?rd:w_,this.isPropagationStopped=w_,this}return vt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=rd)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=rd)},persist:function(){},isPersistent:rd}),t}var kc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},C1=Tn(kc),rh=vt({},kc,{view:0,detail:0}),G9=Tn(rh),jv,Rv,Qc,Em=vt({},rh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_1,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qc&&(Qc&&e.type==="mousemove"?(jv=e.screenX-Qc.screenX,Rv=e.screenY-Qc.screenY):Rv=jv=0,Qc=e),jv)},movementY:function(e){return"movementY"in e?e.movementY:Rv}}),k_=Tn(Em),X9=vt({},Em,{dataTransfer:0}),Z9=Tn(X9),Q9=vt({},rh,{relatedTarget:0}),Bv=Tn(Q9),J9=vt({},kc,{animationName:0,elapsedTime:0,pseudoElement:0}),eH=Tn(J9),tH=vt({},kc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rH=Tn(tH),nH=vt({},kc,{data:0}),S_=Tn(nH),iH={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},aH={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},oH={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lH(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=oH[e])?!!t[e]:!1}function _1(){return lH}var sH=vt({},rh,{key:function(e){if(e.key){var t=iH[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Kd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?aH[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_1,charCode:function(e){return e.type==="keypress"?Kd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Kd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cH=Tn(sH),uH=vt({},Em,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),C_=Tn(uH),fH=vt({},rh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_1}),hH=Tn(fH),dH=vt({},kc,{propertyName:0,elapsedTime:0,pseudoElement:0}),pH=Tn(dH),gH=vt({},Em,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),mH=Tn(gH),yH=[9,13,27,32],E1=ba&&"CompositionEvent"in window,Uu=null;ba&&"documentMode"in document&&(Uu=document.documentMode);var vH=ba&&"TextEvent"in window&&!Uu,bI=ba&&(!E1||Uu&&8<Uu&&11>=Uu),__=" ",E_=!1;function wI(e,t){switch(e){case"keyup":return yH.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kI(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gs=!1;function xH(e,t){switch(e){case"compositionend":return kI(t);case"keypress":return t.which!==32?null:(E_=!0,__);case"textInput":return e=t.data,e===__&&E_?null:e;default:return null}}function bH(e,t){if(gs)return e==="compositionend"||!E1&&wI(e,t)?(e=xI(),Yd=S1=Ja=null,gs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return bI&&t.locale!=="ko"?null:t.data;default:return null}}var wH={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function T_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wH[e.type]:t==="textarea"}function SI(e,t,r,n){eI(n),t=Ip(t,"onChange"),0<t.length&&(r=new C1("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var qu=null,mf=null;function kH(e){$I(e,0)}function Tm(e){var t=vs(e);if(YL(t))return e}function SH(e,t){if(e==="change")return t}var CI=!1;if(ba){var Fv;if(ba){var zv="oninput"in document;if(!zv){var P_=document.createElement("div");P_.setAttribute("oninput","return;"),zv=typeof P_.oninput=="function"}Fv=zv}else Fv=!1;CI=Fv&&(!document.documentMode||9<document.documentMode)}function A_(){qu&&(qu.detachEvent("onpropertychange",_I),mf=qu=null)}function _I(e){if(e.propertyName==="value"&&Tm(mf)){var t=[];SI(t,mf,e,v1(e)),iI(kH,t)}}function CH(e,t,r){e==="focusin"?(A_(),qu=t,mf=r,qu.attachEvent("onpropertychange",_I)):e==="focusout"&&A_()}function _H(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Tm(mf)}function EH(e,t){if(e==="click")return Tm(t)}function TH(e,t){if(e==="input"||e==="change")return Tm(t)}function PH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gi=typeof Object.is=="function"?Object.is:PH;function yf(e,t){if(gi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!ox.call(t,i)||!gi(e[i],t[i]))return!1}return!0}function O_(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function M_(e,t){var r=O_(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=O_(r)}}function EI(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?EI(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function TI(){for(var e=window,t=Ep();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ep(e.document)}return t}function T1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function AH(e){var t=TI(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&EI(r.ownerDocument.documentElement,r)){if(n!==null&&T1(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=M_(r,a);var o=M_(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var OH=ba&&"documentMode"in document&&11>=document.documentMode,ms=null,_x=null,Vu=null,Ex=!1;function L_(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ex||ms==null||ms!==Ep(n)||(n=ms,"selectionStart"in n&&T1(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Vu&&yf(Vu,n)||(Vu=n,n=Ip(_x,"onSelect"),0<n.length&&(t=new C1("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=ms)))}function nd(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ys={animationend:nd("Animation","AnimationEnd"),animationiteration:nd("Animation","AnimationIteration"),animationstart:nd("Animation","AnimationStart"),transitionend:nd("Transition","TransitionEnd")},Wv={},PI={};ba&&(PI=document.createElement("div").style,"AnimationEvent"in window||(delete ys.animationend.animation,delete ys.animationiteration.animation,delete ys.animationstart.animation),"TransitionEvent"in window||delete ys.transitionend.transition);function Pm(e){if(Wv[e])return Wv[e];if(!ys[e])return e;var t=ys[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in PI)return Wv[e]=t[r];return e}var AI=Pm("animationend"),OI=Pm("animationiteration"),MI=Pm("animationstart"),LI=Pm("transitionend"),II=new Map,I_="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function _o(e,t){II.set(e,t),Fl(t,[e])}for(var Hv=0;Hv<I_.length;Hv++){var Uv=I_[Hv],MH=Uv.toLowerCase(),LH=Uv[0].toUpperCase()+Uv.slice(1);_o(MH,"on"+LH)}_o(AI,"onAnimationEnd");_o(OI,"onAnimationIteration");_o(MI,"onAnimationStart");_o("dblclick","onDoubleClick");_o("focusin","onFocus");_o("focusout","onBlur");_o(LI,"onTransitionEnd");Gs("onMouseEnter",["mouseout","mouseover"]);Gs("onMouseLeave",["mouseout","mouseover"]);Gs("onPointerEnter",["pointerout","pointerover"]);Gs("onPointerLeave",["pointerout","pointerover"]);Fl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Au="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),IH=new Set("cancel close invalid load scroll toggle".split(" ").concat(Au));function $_(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,M9(n,t,void 0,e),e.currentTarget=null}function $I(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;$_(i,l,c),a=s}else for(o=0;o<n.length;o++){if(l=n[o],s=l.instance,c=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;$_(i,l,c),a=s}}}if(Pp)throw e=wx,Pp=!1,wx=null,e}function it(e,t){var r=t[Mx];r===void 0&&(r=t[Mx]=new Set);var n=e+"__bubble";r.has(n)||(DI(t,e,2,!1),r.add(n))}function qv(e,t,r){var n=0;t&&(n|=4),DI(r,e,n,t)}var id="_reactListening"+Math.random().toString(36).slice(2);function vf(e){if(!e[id]){e[id]=!0,WL.forEach(function(r){r!=="selectionchange"&&(IH.has(r)||qv(r,!1,e),qv(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[id]||(t[id]=!0,qv("selectionchange",!1,t))}}function DI(e,t,r,n){switch(vI(t)){case 1:var i=Y9;break;case 4:i=K9;break;default:i=k1}r=i.bind(null,t,r,e),i=void 0,!bx||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Vv(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;l!==null;){if(o=Jo(l),o===null)return;if(s=o.tag,s===5||s===6){n=a=o;continue e}l=l.parentNode}}n=n.return}iI(function(){var c=a,u=v1(r),f=[];e:{var h=II.get(e);if(h!==void 0){var d=C1,p=e;switch(e){case"keypress":if(Kd(r)===0)break e;case"keydown":case"keyup":d=cH;break;case"focusin":p="focus",d=Bv;break;case"focusout":p="blur",d=Bv;break;case"beforeblur":case"afterblur":d=Bv;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=k_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=Z9;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=hH;break;case AI:case OI:case MI:d=eH;break;case LI:d=pH;break;case"scroll":d=G9;break;case"wheel":d=mH;break;case"copy":case"cut":case"paste":d=rH;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=C_}var g=(t&4)!==0,y=!g&&e==="scroll",m=g?h!==null?h+"Capture":null:h;g=[];for(var v=c,b;v!==null;){b=v;var S=b.stateNode;if(b.tag===5&&S!==null&&(b=S,m!==null&&(S=hf(v,m),S!=null&&g.push(xf(v,S,b)))),y)break;v=v.return}0<g.length&&(h=new d(h,p,null,r,u),f.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",h&&r!==vx&&(p=r.relatedTarget||r.fromElement)&&(Jo(p)||p[wa]))break e;if((d||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,d?(p=r.relatedTarget||r.toElement,d=c,p=p?Jo(p):null,p!==null&&(y=zl(p),p!==y||p.tag!==5&&p.tag!==6)&&(p=null)):(d=null,p=c),d!==p)){if(g=k_,S="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(g=C_,S="onPointerLeave",m="onPointerEnter",v="pointer"),y=d==null?h:vs(d),b=p==null?h:vs(p),h=new g(S,v+"leave",d,r,u),h.target=y,h.relatedTarget=b,S=null,Jo(u)===c&&(g=new g(m,v+"enter",p,r,u),g.target=b,g.relatedTarget=y,S=g),y=S,d&&p)t:{for(g=d,m=p,v=0,b=g;b;b=ns(b))v++;for(b=0,S=m;S;S=ns(S))b++;for(;0<v-b;)g=ns(g),v--;for(;0<b-v;)m=ns(m),b--;for(;v--;){if(g===m||m!==null&&g===m.alternate)break t;g=ns(g),m=ns(m)}g=null}else g=null;d!==null&&D_(f,h,d,g,!1),p!==null&&y!==null&&D_(f,y,p,g,!0)}}e:{if(h=c?vs(c):window,d=h.nodeName&&h.nodeName.toLowerCase(),d==="select"||d==="input"&&h.type==="file")var C=SH;else if(T_(h))if(CI)C=TH;else{C=_H;var w=CH}else(d=h.nodeName)&&d.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=EH);if(C&&(C=C(e,c))){SI(f,C,r,u);break e}w&&w(e,h,c),e==="focusout"&&(w=h._wrapperState)&&w.controlled&&h.type==="number"&&dx(h,"number",h.value)}switch(w=c?vs(c):window,e){case"focusin":(T_(w)||w.contentEditable==="true")&&(ms=w,_x=c,Vu=null);break;case"focusout":Vu=_x=ms=null;break;case"mousedown":Ex=!0;break;case"contextmenu":case"mouseup":case"dragend":Ex=!1,L_(f,r,u);break;case"selectionchange":if(OH)break;case"keydown":case"keyup":L_(f,r,u)}var _;if(E1)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else gs?wI(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(bI&&r.locale!=="ko"&&(gs||P!=="onCompositionStart"?P==="onCompositionEnd"&&gs&&(_=xI()):(Ja=u,S1="value"in Ja?Ja.value:Ja.textContent,gs=!0)),w=Ip(c,P),0<w.length&&(P=new S_(P,e,null,r,u),f.push({event:P,listeners:w}),_?P.data=_:(_=kI(r),_!==null&&(P.data=_)))),(_=vH?xH(e,r):bH(e,r))&&(c=Ip(c,"onBeforeInput"),0<c.length&&(u=new S_("onBeforeInput","beforeinput",null,r,u),f.push({event:u,listeners:c}),u.data=_))}$I(f,t)})}function xf(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ip(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=hf(e,r),a!=null&&n.unshift(xf(e,a,i)),a=hf(e,t),a!=null&&n.push(xf(e,a,i))),e=e.return}return n}function ns(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function D_(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var l=r,s=l.alternate,c=l.stateNode;if(s!==null&&s===n)break;l.tag===5&&c!==null&&(l=c,i?(s=hf(r,a),s!=null&&o.unshift(xf(r,s,l))):i||(s=hf(r,a),s!=null&&o.push(xf(r,s,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var $H=/\r\n?/g,DH=/\u0000|\uFFFD/g;function N_(e){return(typeof e=="string"?e:""+e).replace($H,`
|
|
39
|
+
`).replace(DH,"")}function ad(e,t,r){if(t=N_(t),N_(e)!==t&&r)throw Error(G(425))}function $p(){}var Tx=null,Px=null;function Ax(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ox=typeof setTimeout=="function"?setTimeout:void 0,NH=typeof clearTimeout=="function"?clearTimeout:void 0,j_=typeof Promise=="function"?Promise:void 0,jH=typeof queueMicrotask=="function"?queueMicrotask:typeof j_<"u"?function(e){return j_.resolve(null).then(e).catch(RH)}:Ox;function RH(e){setTimeout(function(){throw e})}function Yv(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),gf(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);gf(t)}function oo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function R_(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Sc=Math.random().toString(36).slice(2),Ni="__reactFiber$"+Sc,bf="__reactProps$"+Sc,wa="__reactContainer$"+Sc,Mx="__reactEvents$"+Sc,BH="__reactListeners$"+Sc,FH="__reactHandles$"+Sc;function Jo(e){var t=e[Ni];if(t)return t;for(var r=e.parentNode;r;){if(t=r[wa]||r[Ni]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=R_(e);e!==null;){if(r=e[Ni])return r;e=R_(e)}return t}e=r,r=e.parentNode}return null}function nh(e){return e=e[Ni]||e[wa],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function vs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(G(33))}function Am(e){return e[bf]||null}var Lx=[],xs=-1;function Eo(e){return{current:e}}function lt(e){0>xs||(e.current=Lx[xs],Lx[xs]=null,xs--)}function rt(e,t){xs++,Lx[xs]=e.current,e.current=t}var mo={},Er=Eo(mo),nn=Eo(!1),ml=mo;function Xs(e,t){var r=e.type.contextTypes;if(!r)return mo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function an(e){return e=e.childContextTypes,e!=null}function Dp(){lt(nn),lt(Er)}function B_(e,t,r){if(Er.current!==mo)throw Error(G(168));rt(Er,t),rt(nn,r)}function NI(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(G(108,C9(e)||"Unknown",i));return vt({},r,n)}function Np(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mo,ml=Er.current,rt(Er,e),rt(nn,nn.current),!0}function F_(e,t,r){var n=e.stateNode;if(!n)throw Error(G(169));r?(e=NI(e,t,ml),n.__reactInternalMemoizedMergedChildContext=e,lt(nn),lt(Er),rt(Er,e)):lt(nn),rt(nn,r)}var sa=null,Om=!1,Kv=!1;function jI(e){sa===null?sa=[e]:sa.push(e)}function zH(e){Om=!0,jI(e)}function To(){if(!Kv&&sa!==null){Kv=!0;var e=0,t=Ge;try{var r=sa;for(Ge=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}sa=null,Om=!1}catch(i){throw sa!==null&&(sa=sa.slice(e+1)),sI(x1,To),i}finally{Ge=t,Kv=!1}}return null}var bs=[],ws=0,jp=null,Rp=0,In=[],$n=0,yl=null,fa=1,ha="";function qo(e,t){bs[ws++]=Rp,bs[ws++]=jp,jp=e,Rp=t}function RI(e,t,r){In[$n++]=fa,In[$n++]=ha,In[$n++]=yl,yl=e;var n=fa;e=ha;var i=32-ui(n)-1;n&=~(1<<i),r+=1;var a=32-ui(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,fa=1<<32-ui(t)+i|r<<i|n,ha=a+e}else fa=1<<a|r<<i|n,ha=e}function P1(e){e.return!==null&&(qo(e,1),RI(e,1,0))}function A1(e){for(;e===jp;)jp=bs[--ws],bs[ws]=null,Rp=bs[--ws],bs[ws]=null;for(;e===yl;)yl=In[--$n],In[$n]=null,ha=In[--$n],In[$n]=null,fa=In[--$n],In[$n]=null}var xn=null,mn=null,dt=!1,ri=null;function BI(e,t){var r=Nn(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function z_(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,xn=e,mn=oo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xn=e,mn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=yl!==null?{id:fa,overflow:ha}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Nn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,xn=e,mn=null,!0):!1;default:return!1}}function Ix(e){return(e.mode&1)!==0&&(e.flags&128)===0}function $x(e){if(dt){var t=mn;if(t){var r=t;if(!z_(e,t)){if(Ix(e))throw Error(G(418));t=oo(r.nextSibling);var n=xn;t&&z_(e,t)?BI(n,r):(e.flags=e.flags&-4097|2,dt=!1,xn=e)}}else{if(Ix(e))throw Error(G(418));e.flags=e.flags&-4097|2,dt=!1,xn=e}}}function W_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xn=e}function od(e){if(e!==xn)return!1;if(!dt)return W_(e),dt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ax(e.type,e.memoizedProps)),t&&(t=mn)){if(Ix(e))throw FI(),Error(G(418));for(;t;)BI(e,t),t=oo(t.nextSibling)}if(W_(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(G(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){mn=oo(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}mn=null}}else mn=xn?oo(e.stateNode.nextSibling):null;return!0}function FI(){for(var e=mn;e;)e=oo(e.nextSibling)}function Zs(){mn=xn=null,dt=!1}function O1(e){ri===null?ri=[e]:ri.push(e)}var WH=$a.ReactCurrentBatchConfig;function Jc(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(G(309));var n=r.stateNode}if(!n)throw Error(G(147,e));var i=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var l=i.refs;o===null?delete l[a]:l[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(G(284));if(!r._owner)throw Error(G(290,e))}return e}function ld(e,t){throw e=Object.prototype.toString.call(t),Error(G(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function H_(e){var t=e._init;return t(e._payload)}function zI(e){function t(m,v){if(e){var b=m.deletions;b===null?(m.deletions=[v],m.flags|=16):b.push(v)}}function r(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function n(m,v){for(m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function i(m,v){return m=uo(m,v),m.index=0,m.sibling=null,m}function a(m,v,b){return m.index=b,e?(b=m.alternate,b!==null?(b=b.index,b<v?(m.flags|=2,v):b):(m.flags|=2,v)):(m.flags|=1048576,v)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,v,b,S){return v===null||v.tag!==6?(v=t0(b,m.mode,S),v.return=m,v):(v=i(v,b),v.return=m,v)}function s(m,v,b,S){var C=b.type;return C===ps?u(m,v,b.props.children,S,b.key):v!==null&&(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Va&&H_(C)===v.type)?(S=i(v,b.props),S.ref=Jc(m,v,b),S.return=m,S):(S=tp(b.type,b.key,b.props,null,m.mode,S),S.ref=Jc(m,v,b),S.return=m,S)}function c(m,v,b,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==b.containerInfo||v.stateNode.implementation!==b.implementation?(v=r0(b,m.mode,S),v.return=m,v):(v=i(v,b.children||[]),v.return=m,v)}function u(m,v,b,S,C){return v===null||v.tag!==7?(v=fl(b,m.mode,S,C),v.return=m,v):(v=i(v,b),v.return=m,v)}function f(m,v,b){if(typeof v=="string"&&v!==""||typeof v=="number")return v=t0(""+v,m.mode,b),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Xh:return b=tp(v.type,v.key,v.props,null,m.mode,b),b.ref=Jc(m,null,v),b.return=m,b;case ds:return v=r0(v,m.mode,b),v.return=m,v;case Va:var S=v._init;return f(m,S(v._payload),b)}if(Tu(v)||Kc(v))return v=fl(v,m.mode,b,null),v.return=m,v;ld(m,v)}return null}function h(m,v,b,S){var C=v!==null?v.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return C!==null?null:l(m,v,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Xh:return b.key===C?s(m,v,b,S):null;case ds:return b.key===C?c(m,v,b,S):null;case Va:return C=b._init,h(m,v,C(b._payload),S)}if(Tu(b)||Kc(b))return C!==null?null:u(m,v,b,S,null);ld(m,b)}return null}function d(m,v,b,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(b)||null,l(v,m,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Xh:return m=m.get(S.key===null?b:S.key)||null,s(v,m,S,C);case ds:return m=m.get(S.key===null?b:S.key)||null,c(v,m,S,C);case Va:var w=S._init;return d(m,v,b,w(S._payload),C)}if(Tu(S)||Kc(S))return m=m.get(b)||null,u(v,m,S,C,null);ld(v,S)}return null}function p(m,v,b,S){for(var C=null,w=null,_=v,P=v=0,I=null;_!==null&&P<b.length;P++){_.index>P?(I=_,_=null):I=_.sibling;var $=h(m,_,b[P],S);if($===null){_===null&&(_=I);break}e&&_&&$.alternate===null&&t(m,_),v=a($,v,P),w===null?C=$:w.sibling=$,w=$,_=I}if(P===b.length)return r(m,_),dt&&qo(m,P),C;if(_===null){for(;P<b.length;P++)_=f(m,b[P],S),_!==null&&(v=a(_,v,P),w===null?C=_:w.sibling=_,w=_);return dt&&qo(m,P),C}for(_=n(m,_);P<b.length;P++)I=d(_,m,P,b[P],S),I!==null&&(e&&I.alternate!==null&&_.delete(I.key===null?P:I.key),v=a(I,v,P),w===null?C=I:w.sibling=I,w=I);return e&&_.forEach(function(A){return t(m,A)}),dt&&qo(m,P),C}function g(m,v,b,S){var C=Kc(b);if(typeof C!="function")throw Error(G(150));if(b=C.call(b),b==null)throw Error(G(151));for(var w=C=null,_=v,P=v=0,I=null,$=b.next();_!==null&&!$.done;P++,$=b.next()){_.index>P?(I=_,_=null):I=_.sibling;var A=h(m,_,$.value,S);if(A===null){_===null&&(_=I);break}e&&_&&A.alternate===null&&t(m,_),v=a(A,v,P),w===null?C=A:w.sibling=A,w=A,_=I}if($.done)return r(m,_),dt&&qo(m,P),C;if(_===null){for(;!$.done;P++,$=b.next())$=f(m,$.value,S),$!==null&&(v=a($,v,P),w===null?C=$:w.sibling=$,w=$);return dt&&qo(m,P),C}for(_=n(m,_);!$.done;P++,$=b.next())$=d(_,m,P,$.value,S),$!==null&&(e&&$.alternate!==null&&_.delete($.key===null?P:$.key),v=a($,v,P),w===null?C=$:w.sibling=$,w=$);return e&&_.forEach(function(M){return t(m,M)}),dt&&qo(m,P),C}function y(m,v,b,S){if(typeof b=="object"&&b!==null&&b.type===ps&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Xh:e:{for(var C=b.key,w=v;w!==null;){if(w.key===C){if(C=b.type,C===ps){if(w.tag===7){r(m,w.sibling),v=i(w,b.props.children),v.return=m,m=v;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Va&&H_(C)===w.type){r(m,w.sibling),v=i(w,b.props),v.ref=Jc(m,w,b),v.return=m,m=v;break e}r(m,w);break}else t(m,w);w=w.sibling}b.type===ps?(v=fl(b.props.children,m.mode,S,b.key),v.return=m,m=v):(S=tp(b.type,b.key,b.props,null,m.mode,S),S.ref=Jc(m,v,b),S.return=m,m=S)}return o(m);case ds:e:{for(w=b.key;v!==null;){if(v.key===w)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){r(m,v.sibling),v=i(v,b.children||[]),v.return=m,m=v;break e}else{r(m,v);break}else t(m,v);v=v.sibling}v=r0(b,m.mode,S),v.return=m,m=v}return o(m);case Va:return w=b._init,y(m,v,w(b._payload),S)}if(Tu(b))return p(m,v,b,S);if(Kc(b))return g(m,v,b,S);ld(m,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,v!==null&&v.tag===6?(r(m,v.sibling),v=i(v,b),v.return=m,m=v):(r(m,v),v=t0(b,m.mode,S),v.return=m,m=v),o(m)):r(m,v)}return y}var Qs=zI(!0),WI=zI(!1),Bp=Eo(null),Fp=null,ks=null,M1=null;function L1(){M1=ks=Fp=null}function I1(e){var t=Bp.current;lt(Bp),e._currentValue=t}function Dx(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Is(e,t){Fp=e,M1=ks=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(en=!0),e.firstContext=null)}function Bn(e){var t=e._currentValue;if(M1!==e)if(e={context:e,memoizedValue:t,next:null},ks===null){if(Fp===null)throw Error(G(308));ks=e,Fp.dependencies={lanes:0,firstContext:e}}else ks=ks.next=e;return t}var el=null;function $1(e){el===null?el=[e]:el.push(e)}function HI(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,$1(t)):(r.next=i.next,i.next=r),t.interleaved=r,ka(e,n)}function ka(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Ya=!1;function D1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function UI(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ga(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lo(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ne&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,ka(e,r)}return i=n.interleaved,i===null?(t.next=t,$1(n)):(t.next=i.next,i.next=t),n.interleaved=t,ka(e,r)}function Gd(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,b1(e,r)}}function U_(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function zp(e,t,r,n){var i=e.updateQueue;Ya=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,c=s.next;s.next=null,o===null?a=c:o.next=c,o=s;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==o&&(l===null?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(a!==null){var f=i.baseState;o=0,u=c=s=null,l=a;do{var h=l.lane,d=l.eventTime;if((n&h)===h){u!==null&&(u=u.next={eventTime:d,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var p=e,g=l;switch(h=t,d=r,g.tag){case 1:if(p=g.payload,typeof p=="function"){f=p.call(d,f,h);break e}f=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,h=typeof p=="function"?p.call(d,f,h):p,h==null)break e;f=vt({},f,h);break e;case 2:Ya=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[l]:h.push(l))}else d={eventTime:d,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(c=u=d,s=f):u=u.next=d,o|=h;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;h=l,l=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(u===null&&(s=f),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);xl|=o,e.lanes=o,e.memoizedState=f}}function q_(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(G(191,i));i.call(n)}}}var ih={},zi=Eo(ih),wf=Eo(ih),kf=Eo(ih);function tl(e){if(e===ih)throw Error(G(174));return e}function N1(e,t){switch(rt(kf,t),rt(wf,e),rt(zi,ih),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:gx(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=gx(t,e)}lt(zi),rt(zi,t)}function Js(){lt(zi),lt(wf),lt(kf)}function qI(e){tl(kf.current);var t=tl(zi.current),r=gx(t,e.type);t!==r&&(rt(wf,e),rt(zi,r))}function j1(e){wf.current===e&&(lt(zi),lt(wf))}var gt=Eo(0);function Wp(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gv=[];function R1(){for(var e=0;e<Gv.length;e++)Gv[e]._workInProgressVersionPrimary=null;Gv.length=0}var Xd=$a.ReactCurrentDispatcher,Xv=$a.ReactCurrentBatchConfig,vl=0,mt=null,Bt=null,Qt=null,Hp=!1,Yu=!1,Sf=0,HH=0;function pr(){throw Error(G(321))}function B1(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!gi(e[r],t[r]))return!1;return!0}function F1(e,t,r,n,i,a){if(vl=a,mt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xd.current=e===null||e.memoizedState===null?YH:KH,e=r(n,i),Yu){a=0;do{if(Yu=!1,Sf=0,25<=a)throw Error(G(301));a+=1,Qt=Bt=null,t.updateQueue=null,Xd.current=GH,e=r(n,i)}while(Yu)}if(Xd.current=Up,t=Bt!==null&&Bt.next!==null,vl=0,Qt=Bt=mt=null,Hp=!1,t)throw Error(G(300));return e}function z1(){var e=Sf!==0;return Sf=0,e}function Li(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?mt.memoizedState=Qt=e:Qt=Qt.next=e,Qt}function Fn(){if(Bt===null){var e=mt.alternate;e=e!==null?e.memoizedState:null}else e=Bt.next;var t=Qt===null?mt.memoizedState:Qt.next;if(t!==null)Qt=t,Bt=e;else{if(e===null)throw Error(G(310));Bt=e,e={memoizedState:Bt.memoizedState,baseState:Bt.baseState,baseQueue:Bt.baseQueue,queue:Bt.queue,next:null},Qt===null?mt.memoizedState=Qt=e:Qt=Qt.next=e}return Qt}function Cf(e,t){return typeof t=="function"?t(e):t}function Zv(e){var t=Fn(),r=t.queue;if(r===null)throw Error(G(311));r.lastRenderedReducer=e;var n=Bt,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var l=o=null,s=null,c=a;do{var u=c.lane;if((vl&u)===u)s!==null&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var f={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};s===null?(l=s=f,o=n):s=s.next=f,mt.lanes|=u,xl|=u}c=c.next}while(c!==null&&c!==a);s===null?o=n:s.next=l,gi(n,t.memoizedState)||(en=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do a=i.lane,mt.lanes|=a,xl|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Qv(e){var t=Fn(),r=t.queue;if(r===null)throw Error(G(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);gi(a,t.memoizedState)||(en=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function VI(){}function YI(e,t){var r=mt,n=Fn(),i=t(),a=!gi(n.memoizedState,i);if(a&&(n.memoizedState=i,en=!0),n=n.queue,W1(XI.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||Qt!==null&&Qt.memoizedState.tag&1){if(r.flags|=2048,_f(9,GI.bind(null,r,n,i,t),void 0,null),tr===null)throw Error(G(349));vl&30||KI(r,t,i)}return i}function KI(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=mt.updateQueue,t===null?(t={lastEffect:null,stores:null},mt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function GI(e,t,r,n){t.value=r,t.getSnapshot=n,ZI(t)&&QI(e)}function XI(e,t,r){return r(function(){ZI(t)&&QI(e)})}function ZI(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!gi(e,r)}catch{return!0}}function QI(e){var t=ka(e,1);t!==null&&fi(t,e,1,-1)}function V_(e){var t=Li();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Cf,lastRenderedState:e},t.queue=e,e=e.dispatch=VH.bind(null,mt,e),[t.memoizedState,e]}function _f(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=mt.updateQueue,t===null?(t={lastEffect:null,stores:null},mt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function JI(){return Fn().memoizedState}function Zd(e,t,r,n){var i=Li();mt.flags|=e,i.memoizedState=_f(1|t,r,void 0,n===void 0?null:n)}function Mm(e,t,r,n){var i=Fn();n=n===void 0?null:n;var a=void 0;if(Bt!==null){var o=Bt.memoizedState;if(a=o.destroy,n!==null&&B1(n,o.deps)){i.memoizedState=_f(t,r,a,n);return}}mt.flags|=e,i.memoizedState=_f(1|t,r,a,n)}function Y_(e,t){return Zd(8390656,8,e,t)}function W1(e,t){return Mm(2048,8,e,t)}function e$(e,t){return Mm(4,2,e,t)}function t$(e,t){return Mm(4,4,e,t)}function r$(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function n$(e,t,r){return r=r!=null?r.concat([e]):null,Mm(4,4,r$.bind(null,t,e),r)}function H1(){}function i$(e,t){var r=Fn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&B1(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function a$(e,t){var r=Fn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&B1(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function o$(e,t,r){return vl&21?(gi(r,t)||(r=fI(),mt.lanes|=r,xl|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,en=!0),e.memoizedState=r)}function UH(e,t){var r=Ge;Ge=r!==0&&4>r?r:4,e(!0);var n=Xv.transition;Xv.transition={};try{e(!1),t()}finally{Ge=r,Xv.transition=n}}function l$(){return Fn().memoizedState}function qH(e,t,r){var n=co(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},s$(e))c$(t,r);else if(r=HI(e,t,r,n),r!==null){var i=Br();fi(r,e,n,i),u$(r,t,n)}}function VH(e,t,r){var n=co(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(s$(e))c$(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,l=a(o,r);if(i.hasEagerState=!0,i.eagerState=l,gi(l,o)){var s=t.interleaved;s===null?(i.next=i,$1(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}r=HI(e,t,i,n),r!==null&&(i=Br(),fi(r,e,n,i),u$(r,t,n))}}function s$(e){var t=e.alternate;return e===mt||t!==null&&t===mt}function c$(e,t){Yu=Hp=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function u$(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,b1(e,r)}}var Up={readContext:Bn,useCallback:pr,useContext:pr,useEffect:pr,useImperativeHandle:pr,useInsertionEffect:pr,useLayoutEffect:pr,useMemo:pr,useReducer:pr,useRef:pr,useState:pr,useDebugValue:pr,useDeferredValue:pr,useTransition:pr,useMutableSource:pr,useSyncExternalStore:pr,useId:pr,unstable_isNewReconciler:!1},YH={readContext:Bn,useCallback:function(e,t){return Li().memoizedState=[e,t===void 0?null:t],e},useContext:Bn,useEffect:Y_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Zd(4194308,4,r$.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Zd(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zd(4,2,e,t)},useMemo:function(e,t){var r=Li();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Li();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=qH.bind(null,mt,e),[n.memoizedState,e]},useRef:function(e){var t=Li();return e={current:e},t.memoizedState=e},useState:V_,useDebugValue:H1,useDeferredValue:function(e){return Li().memoizedState=e},useTransition:function(){var e=V_(!1),t=e[0];return e=UH.bind(null,e[1]),Li().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=mt,i=Li();if(dt){if(r===void 0)throw Error(G(407));r=r()}else{if(r=t(),tr===null)throw Error(G(349));vl&30||KI(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Y_(XI.bind(null,n,a,e),[e]),n.flags|=2048,_f(9,GI.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Li(),t=tr.identifierPrefix;if(dt){var r=ha,n=fa;r=(n&~(1<<32-ui(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Sf++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=HH++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},KH={readContext:Bn,useCallback:i$,useContext:Bn,useEffect:W1,useImperativeHandle:n$,useInsertionEffect:e$,useLayoutEffect:t$,useMemo:a$,useReducer:Zv,useRef:JI,useState:function(){return Zv(Cf)},useDebugValue:H1,useDeferredValue:function(e){var t=Fn();return o$(t,Bt.memoizedState,e)},useTransition:function(){var e=Zv(Cf)[0],t=Fn().memoizedState;return[e,t]},useMutableSource:VI,useSyncExternalStore:YI,useId:l$,unstable_isNewReconciler:!1},GH={readContext:Bn,useCallback:i$,useContext:Bn,useEffect:W1,useImperativeHandle:n$,useInsertionEffect:e$,useLayoutEffect:t$,useMemo:a$,useReducer:Qv,useRef:JI,useState:function(){return Qv(Cf)},useDebugValue:H1,useDeferredValue:function(e){var t=Fn();return Bt===null?t.memoizedState=e:o$(t,Bt.memoizedState,e)},useTransition:function(){var e=Qv(Cf)[0],t=Fn().memoizedState;return[e,t]},useMutableSource:VI,useSyncExternalStore:YI,useId:l$,unstable_isNewReconciler:!1};function ei(e,t){if(e&&e.defaultProps){t=vt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Nx(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:vt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Lm={isMounted:function(e){return(e=e._reactInternals)?zl(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Br(),i=co(e),a=ga(n,i);a.payload=t,r!=null&&(a.callback=r),t=lo(e,a,i),t!==null&&(fi(t,e,i,n),Gd(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Br(),i=co(e),a=ga(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=lo(e,a,i),t!==null&&(fi(t,e,i,n),Gd(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Br(),n=co(e),i=ga(r,n);i.tag=2,t!=null&&(i.callback=t),t=lo(e,i,n),t!==null&&(fi(t,e,n,r),Gd(t,e,n))}};function K_(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!yf(r,n)||!yf(i,a):!0}function f$(e,t,r){var n=!1,i=mo,a=t.contextType;return typeof a=="object"&&a!==null?a=Bn(a):(i=an(t)?ml:Er.current,n=t.contextTypes,a=(n=n!=null)?Xs(e,i):mo),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Lm,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function G_(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Lm.enqueueReplaceState(t,t.state,null)}function jx(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},D1(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Bn(a):(a=an(t)?ml:Er.current,i.context=Xs(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Nx(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Lm.enqueueReplaceState(i,i.state,null),zp(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ec(e,t){try{var r="",n=t;do r+=S9(n),n=n.return;while(n);var i=r}catch(a){i=`
|
|
40
|
+
Error generating stack: `+a.message+`
|
|
41
|
+
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function Jv(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Rx(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var XH=typeof WeakMap=="function"?WeakMap:Map;function h$(e,t,r){r=ga(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Vp||(Vp=!0,Kx=n),Rx(e,t)},r}function d$(e,t,r){r=ga(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){Rx(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){Rx(e,t),typeof n!="function"&&(so===null?so=new Set([this]):so.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function X_(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new XH;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=u7.bind(null,e,t,r),t.then(e,e))}function Z_(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Q_(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=ga(-1,1),t.tag=2,lo(r,t,1))),r.lanes|=1),e)}var ZH=$a.ReactCurrentOwner,en=!1;function Ir(e,t,r,n){t.child=e===null?WI(t,null,r,n):Qs(t,e.child,r,n)}function J_(e,t,r,n,i){r=r.render;var a=t.ref;return Is(t,i),n=F1(e,t,r,n,a,i),r=z1(),e!==null&&!en?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sa(e,t,i)):(dt&&r&&P1(t),t.flags|=1,Ir(e,t,n,i),t.child)}function eE(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!Z1(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,p$(e,t,a,n,i)):(e=tp(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:yf,r(o,n)&&e.ref===t.ref)return Sa(e,t,i)}return t.flags|=1,e=uo(a,n),e.ref=t.ref,e.return=t,t.child=e}function p$(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(yf(a,n)&&e.ref===t.ref)if(en=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(en=!0);else return t.lanes=e.lanes,Sa(e,t,i)}return Bx(e,t,r,n,i)}function g$(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},rt(Cs,pn),pn|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,rt(Cs,pn),pn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,rt(Cs,pn),pn|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,rt(Cs,pn),pn|=n;return Ir(e,t,i,r),t.child}function m$(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Bx(e,t,r,n,i){var a=an(r)?ml:Er.current;return a=Xs(t,a),Is(t,i),r=F1(e,t,r,n,a,i),n=z1(),e!==null&&!en?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sa(e,t,i)):(dt&&n&&P1(t),t.flags|=1,Ir(e,t,r,i),t.child)}function tE(e,t,r,n,i){if(an(r)){var a=!0;Np(t)}else a=!1;if(Is(t,i),t.stateNode===null)Qd(e,t),f$(t,r,n),jx(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=Bn(c):(c=an(r)?ml:Er.current,c=Xs(t,c));var u=r.getDerivedStateFromProps,f=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||s!==c)&&G_(t,o,n,c),Ya=!1;var h=t.memoizedState;o.state=h,zp(t,n,o,i),s=t.memoizedState,l!==n||h!==s||nn.current||Ya?(typeof u=="function"&&(Nx(t,r,u,n),s=t.memoizedState),(l=Ya||K_(t,r,l,n,h,s,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=s),o.props=n,o.state=s,o.context=c,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,UI(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:ei(t.type,l),o.props=c,f=t.pendingProps,h=o.context,s=r.contextType,typeof s=="object"&&s!==null?s=Bn(s):(s=an(r)?ml:Er.current,s=Xs(t,s));var d=r.getDerivedStateFromProps;(u=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||h!==s)&&G_(t,o,n,s),Ya=!1,h=t.memoizedState,o.state=h,zp(t,n,o,i);var p=t.memoizedState;l!==f||h!==p||nn.current||Ya?(typeof d=="function"&&(Nx(t,r,d,n),p=t.memoizedState),(c=Ya||K_(t,r,c,n,h,p,s)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,p,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,p,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),o.props=n,o.state=p,o.context=s,n=c):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Fx(e,t,r,n,a,i)}function Fx(e,t,r,n,i,a){m$(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&F_(t,r,!1),Sa(e,t,a);n=t.stateNode,ZH.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Qs(t,e.child,null,a),t.child=Qs(t,null,l,a)):Ir(e,t,l,a),t.memoizedState=n.state,i&&F_(t,r,!0),t.child}function y$(e){var t=e.stateNode;t.pendingContext?B_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&B_(e,t.context,!1),N1(e,t.containerInfo)}function rE(e,t,r,n,i){return Zs(),O1(i),t.flags|=256,Ir(e,t,r,n),t.child}var zx={dehydrated:null,treeContext:null,retryLane:0};function Wx(e){return{baseLanes:e,cachePool:null,transitions:null}}function v$(e,t,r){var n=t.pendingProps,i=gt.current,a=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),rt(gt,i&1),e===null)return $x(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Dm(o,n,0,null),e=fl(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Wx(r),t.memoizedState=zx,e):U1(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return QH(e,t,o,n,l,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,l=i.sibling;var s={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=s,t.deletions=null):(n=uo(i,s),n.subtreeFlags=i.subtreeFlags&14680064),l!==null?a=uo(l,a):(a=fl(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?Wx(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=zx,n}return a=e.child,e=a.sibling,n=uo(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function U1(e,t){return t=Dm({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function sd(e,t,r,n){return n!==null&&O1(n),Qs(t,e.child,null,r),e=U1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function QH(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=Jv(Error(G(422))),sd(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Dm({mode:"visible",children:n.children},i,0,null),a=fl(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&Qs(t,e.child,null,o),t.child.memoizedState=Wx(o),t.memoizedState=zx,a);if(!(t.mode&1))return sd(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var l=n.dgst;return n=l,a=Error(G(419)),n=Jv(a,n,void 0),sd(e,t,o,n)}if(l=(o&e.childLanes)!==0,en||l){if(n=tr,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,ka(e,i),fi(n,e,i,-1))}return X1(),n=Jv(Error(G(421))),sd(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=f7.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,mn=oo(i.nextSibling),xn=t,dt=!0,ri=null,e!==null&&(In[$n++]=fa,In[$n++]=ha,In[$n++]=yl,fa=e.id,ha=e.overflow,yl=t),t=U1(t,n.children),t.flags|=4096,t)}function nE(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Dx(e.return,t,r)}function e0(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function x$(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Ir(e,t,n.children,r),n=gt.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nE(e,r,t);else if(e.tag===19)nE(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(rt(gt,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Wp(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),e0(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Wp(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}e0(t,!0,r,null,a);break;case"together":e0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Sa(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),xl|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(G(153));if(t.child!==null){for(e=t.child,r=uo(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=uo(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function JH(e,t,r){switch(t.tag){case 3:y$(t),Zs();break;case 5:qI(t);break;case 1:an(t.type)&&Np(t);break;case 4:N1(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;rt(Bp,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(rt(gt,gt.current&1),t.flags|=128,null):r&t.child.childLanes?v$(e,t,r):(rt(gt,gt.current&1),e=Sa(e,t,r),e!==null?e.sibling:null);rt(gt,gt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return x$(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),rt(gt,gt.current),n)break;return null;case 22:case 23:return t.lanes=0,g$(e,t,r)}return Sa(e,t,r)}var b$,Hx,w$,k$;b$=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Hx=function(){};w$=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,tl(zi.current);var a=null;switch(r){case"input":i=fx(e,i),n=fx(e,n),a=[];break;case"select":i=vt({},i,{value:void 0}),n=vt({},n,{value:void 0}),a=[];break;case"textarea":i=px(e,i),n=px(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=$p)}mx(r,n);var o;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(uf.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var s=n[c];if(l=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(r||(r={}),r[o]=s[o])}else r||(a||(a=[]),a.push(c,r)),r=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(uf.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&it("scroll",e),a||l===s||(a=[])):(a=a||[]).push(c,s))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};k$=function(e,t,r,n){r!==n&&(t.flags|=4)};function eu(e,t){if(!dt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function gr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function e7(e,t,r){var n=t.pendingProps;switch(A1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gr(t),null;case 1:return an(t.type)&&Dp(),gr(t),null;case 3:return n=t.stateNode,Js(),lt(nn),lt(Er),R1(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(od(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ri!==null&&(Zx(ri),ri=null))),Hx(e,t),gr(t),null;case 5:j1(t);var i=tl(kf.current);if(r=t.type,e!==null&&t.stateNode!=null)w$(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(G(166));return gr(t),null}if(e=tl(zi.current),od(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Ni]=t,n[bf]=a,e=(t.mode&1)!==0,r){case"dialog":it("cancel",n),it("close",n);break;case"iframe":case"object":case"embed":it("load",n);break;case"video":case"audio":for(i=0;i<Au.length;i++)it(Au[i],n);break;case"source":it("error",n);break;case"img":case"image":case"link":it("error",n),it("load",n);break;case"details":it("toggle",n);break;case"input":h_(n,a),it("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},it("invalid",n);break;case"textarea":p_(n,a),it("invalid",n)}mx(r,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="children"?typeof l=="string"?n.textContent!==l&&(a.suppressHydrationWarning!==!0&&ad(n.textContent,l,e),i=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&ad(n.textContent,l,e),i=["children",""+l]):uf.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&it("scroll",n)}switch(r){case"input":Zh(n),d_(n,a,!0);break;case"textarea":Zh(n),g_(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=$p)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=XL(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Ni]=t,e[bf]=n,b$(e,t,!1,!1),t.stateNode=e;e:{switch(o=yx(r,n),r){case"dialog":it("cancel",e),it("close",e),i=n;break;case"iframe":case"object":case"embed":it("load",e),i=n;break;case"video":case"audio":for(i=0;i<Au.length;i++)it(Au[i],e);i=n;break;case"source":it("error",e),i=n;break;case"img":case"image":case"link":it("error",e),it("load",e),i=n;break;case"details":it("toggle",e),i=n;break;case"input":h_(e,n),i=fx(e,n),it("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=vt({},n,{value:void 0}),it("invalid",e);break;case"textarea":p_(e,n),i=px(e,n),it("invalid",e);break;default:i=n}mx(r,i),l=i;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?JL(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&ZL(e,s)):a==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&ff(e,s):typeof s=="number"&&ff(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(uf.hasOwnProperty(a)?s!=null&&a==="onScroll"&&it("scroll",e):s!=null&&p1(e,a,s,o))}switch(r){case"input":Zh(e),d_(e,n,!1);break;case"textarea":Zh(e),g_(e);break;case"option":n.value!=null&&e.setAttribute("value",""+go(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?As(e,!!n.multiple,a,!1):n.defaultValue!=null&&As(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=$p)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return gr(t),null;case 6:if(e&&t.stateNode!=null)k$(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(G(166));if(r=tl(kf.current),tl(zi.current),od(t)){if(n=t.stateNode,r=t.memoizedProps,n[Ni]=t,(a=n.nodeValue!==r)&&(e=xn,e!==null))switch(e.tag){case 3:ad(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ad(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ni]=t,t.stateNode=n}return gr(t),null;case 13:if(lt(gt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(dt&&mn!==null&&t.mode&1&&!(t.flags&128))FI(),Zs(),t.flags|=98560,a=!1;else if(a=od(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(G(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(G(317));a[Ni]=t}else Zs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gr(t),a=!1}else ri!==null&&(Zx(ri),ri=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||gt.current&1?Ht===0&&(Ht=3):X1())),t.updateQueue!==null&&(t.flags|=4),gr(t),null);case 4:return Js(),Hx(e,t),e===null&&vf(t.stateNode.containerInfo),gr(t),null;case 10:return I1(t.type._context),gr(t),null;case 17:return an(t.type)&&Dp(),gr(t),null;case 19:if(lt(gt),a=t.memoizedState,a===null)return gr(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)eu(a,!1);else{if(Ht!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Wp(e),o!==null){for(t.flags|=128,eu(a,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return rt(gt,gt.current&1|2),t.child}e=e.sibling}a.tail!==null&&Et()>tc&&(t.flags|=128,n=!0,eu(a,!1),t.lanes=4194304)}else{if(!n)if(e=Wp(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),eu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!dt)return gr(t),null}else 2*Et()-a.renderingStartTime>tc&&r!==1073741824&&(t.flags|=128,n=!0,eu(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Et(),t.sibling=null,r=gt.current,rt(gt,n?r&1|2:r&1),t):(gr(t),null);case 22:case 23:return G1(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?pn&1073741824&&(gr(t),t.subtreeFlags&6&&(t.flags|=8192)):gr(t),null;case 24:return null;case 25:return null}throw Error(G(156,t.tag))}function t7(e,t){switch(A1(t),t.tag){case 1:return an(t.type)&&Dp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Js(),lt(nn),lt(Er),R1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return j1(t),null;case 13:if(lt(gt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(G(340));Zs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return lt(gt),null;case 4:return Js(),null;case 10:return I1(t.type._context),null;case 22:case 23:return G1(),null;case 24:return null;default:return null}}var cd=!1,br=!1,r7=typeof WeakSet=="function"?WeakSet:Set,ae=null;function Ss(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){St(e,t,n)}else r.current=null}function Ux(e,t,r){try{r()}catch(n){St(e,t,n)}}var iE=!1;function n7(e,t){if(Tx=Mp,e=TI(),T1(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,l=-1,s=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var d;f!==r||i!==0&&f.nodeType!==3||(l=o+i),f!==a||n!==0&&f.nodeType!==3||(s=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(d=f.firstChild)!==null;)h=f,f=d;for(;;){if(f===e)break t;if(h===r&&++c===i&&(l=o),h===a&&++u===n&&(s=o),(d=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=d}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(Px={focusedElem:e,selectionRange:r},Mp=!1,ae=t;ae!==null;)if(t=ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ae=e;else for(;ae!==null;){t=ae;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,y=p.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:ei(t.type,g),y);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(G(163))}}catch(S){St(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ae=e;break}ae=t.return}return p=iE,iE=!1,p}function Ku(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Ux(t,r,a)}i=i.next}while(i!==n)}}function Im(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function qx(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function S$(e){var t=e.alternate;t!==null&&(e.alternate=null,S$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ni],delete t[bf],delete t[Mx],delete t[BH],delete t[FH])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function C$(e){return e.tag===5||e.tag===3||e.tag===4}function aE(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||C$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vx(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=$p));else if(n!==4&&(e=e.child,e!==null))for(Vx(e,t,r),e=e.sibling;e!==null;)Vx(e,t,r),e=e.sibling}function Yx(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Yx(e,t,r),e=e.sibling;e!==null;)Yx(e,t,r),e=e.sibling}var lr=null,ti=!1;function Ha(e,t,r){for(r=r.child;r!==null;)_$(e,t,r),r=r.sibling}function _$(e,t,r){if(Fi&&typeof Fi.onCommitFiberUnmount=="function")try{Fi.onCommitFiberUnmount(_m,r)}catch{}switch(r.tag){case 5:br||Ss(r,t);case 6:var n=lr,i=ti;lr=null,Ha(e,t,r),lr=n,ti=i,lr!==null&&(ti?(e=lr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):lr.removeChild(r.stateNode));break;case 18:lr!==null&&(ti?(e=lr,r=r.stateNode,e.nodeType===8?Yv(e.parentNode,r):e.nodeType===1&&Yv(e,r),gf(e)):Yv(lr,r.stateNode));break;case 4:n=lr,i=ti,lr=r.stateNode.containerInfo,ti=!0,Ha(e,t,r),lr=n,ti=i;break;case 0:case 11:case 14:case 15:if(!br&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Ux(r,t,o),i=i.next}while(i!==n)}Ha(e,t,r);break;case 1:if(!br&&(Ss(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){St(r,t,l)}Ha(e,t,r);break;case 21:Ha(e,t,r);break;case 22:r.mode&1?(br=(n=br)||r.memoizedState!==null,Ha(e,t,r),br=n):Ha(e,t,r);break;default:Ha(e,t,r)}}function oE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new r7),t.forEach(function(n){var i=h7.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Qn(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:lr=l.stateNode,ti=!1;break e;case 3:lr=l.stateNode.containerInfo,ti=!0;break e;case 4:lr=l.stateNode.containerInfo,ti=!0;break e}l=l.return}if(lr===null)throw Error(G(160));_$(a,o,i),lr=null,ti=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(c){St(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)E$(t,e),t=t.sibling}function E$(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Qn(t,e),Ci(e),n&4){try{Ku(3,e,e.return),Im(3,e)}catch(g){St(e,e.return,g)}try{Ku(5,e,e.return)}catch(g){St(e,e.return,g)}}break;case 1:Qn(t,e),Ci(e),n&512&&r!==null&&Ss(r,r.return);break;case 5:if(Qn(t,e),Ci(e),n&512&&r!==null&&Ss(r,r.return),e.flags&32){var i=e.stateNode;try{ff(i,"")}catch(g){St(e,e.return,g)}}if(n&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=r!==null?r.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&KL(i,a),yx(l,o);var c=yx(l,a);for(o=0;o<s.length;o+=2){var u=s[o],f=s[o+1];u==="style"?JL(i,f):u==="dangerouslySetInnerHTML"?ZL(i,f):u==="children"?ff(i,f):p1(i,u,f,c)}switch(l){case"input":hx(i,a);break;case"textarea":GL(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var d=a.value;d!=null?As(i,!!a.multiple,d,!1):h!==!!a.multiple&&(a.defaultValue!=null?As(i,!!a.multiple,a.defaultValue,!0):As(i,!!a.multiple,a.multiple?[]:"",!1))}i[bf]=a}catch(g){St(e,e.return,g)}}break;case 6:if(Qn(t,e),Ci(e),n&4){if(e.stateNode===null)throw Error(G(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){St(e,e.return,g)}}break;case 3:if(Qn(t,e),Ci(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{gf(t.containerInfo)}catch(g){St(e,e.return,g)}break;case 4:Qn(t,e),Ci(e);break;case 13:Qn(t,e),Ci(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(Y1=Et())),n&4&&oE(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(br=(c=br)||u,Qn(t,e),br=c):Qn(t,e),Ci(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(ae=e,u=e.child;u!==null;){for(f=ae=u;ae!==null;){switch(h=ae,d=h.child,h.tag){case 0:case 11:case 14:case 15:Ku(4,h,h.return);break;case 1:Ss(h,h.return);var p=h.stateNode;if(typeof p.componentWillUnmount=="function"){n=h,r=h.return;try{t=n,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(g){St(n,r,g)}}break;case 5:Ss(h,h.return);break;case 22:if(h.memoizedState!==null){sE(f);continue}}d!==null?(d.return=h,ae=d):sE(f)}u=u.sibling}e:for(u=null,f=e;;){if(f.tag===5){if(u===null){u=f;try{i=f.stateNode,c?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=f.stateNode,s=f.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=QL("display",o))}catch(g){St(e,e.return,g)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(g){St(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;u===f&&(u=null),f=f.return}u===f&&(u=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Qn(t,e),Ci(e),n&4&&oE(e);break;case 21:break;default:Qn(t,e),Ci(e)}}function Ci(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(C$(r)){var n=r;break e}r=r.return}throw Error(G(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(ff(i,""),n.flags&=-33);var a=aE(e);Yx(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,l=aE(e);Vx(e,l,o);break;default:throw Error(G(161))}}catch(s){St(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function i7(e,t,r){ae=e,T$(e)}function T$(e,t,r){for(var n=(e.mode&1)!==0;ae!==null;){var i=ae,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||cd;if(!o){var l=i.alternate,s=l!==null&&l.memoizedState!==null||br;l=cd;var c=br;if(cd=o,(br=s)&&!c)for(ae=i;ae!==null;)o=ae,s=o.child,o.tag===22&&o.memoizedState!==null?cE(i):s!==null?(s.return=o,ae=s):cE(i);for(;a!==null;)ae=a,T$(a),a=a.sibling;ae=i,cd=l,br=c}lE(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,ae=a):lE(e)}}function lE(e){for(;ae!==null;){var t=ae;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:br||Im(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!br)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:ei(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&q_(t,a,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}q_(t,o,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var f=u.dehydrated;f!==null&&gf(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(G(163))}br||t.flags&512&&qx(t)}catch(h){St(t,t.return,h)}}if(t===e){ae=null;break}if(r=t.sibling,r!==null){r.return=t.return,ae=r;break}ae=t.return}}function sE(e){for(;ae!==null;){var t=ae;if(t===e){ae=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ae=r;break}ae=t.return}}function cE(e){for(;ae!==null;){var t=ae;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Im(4,t)}catch(s){St(t,r,s)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(s){St(t,i,s)}}var a=t.return;try{qx(t)}catch(s){St(t,a,s)}break;case 5:var o=t.return;try{qx(t)}catch(s){St(t,o,s)}}}catch(s){St(t,t.return,s)}if(t===e){ae=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ae=l;break}ae=t.return}}var a7=Math.ceil,qp=$a.ReactCurrentDispatcher,q1=$a.ReactCurrentOwner,Rn=$a.ReactCurrentBatchConfig,Ne=0,tr=null,Dt=null,ur=0,pn=0,Cs=Eo(0),Ht=0,Ef=null,xl=0,$m=0,V1=0,Gu=null,Zr=null,Y1=0,tc=1/0,la=null,Vp=!1,Kx=null,so=null,ud=!1,eo=null,Yp=0,Xu=0,Gx=null,Jd=-1,ep=0;function Br(){return Ne&6?Et():Jd!==-1?Jd:Jd=Et()}function co(e){return e.mode&1?Ne&2&&ur!==0?ur&-ur:WH.transition!==null?(ep===0&&(ep=fI()),ep):(e=Ge,e!==0||(e=window.event,e=e===void 0?16:vI(e.type)),e):1}function fi(e,t,r,n){if(50<Xu)throw Xu=0,Gx=null,Error(G(185));th(e,r,n),(!(Ne&2)||e!==tr)&&(e===tr&&(!(Ne&2)&&($m|=r),Ht===4&&Za(e,ur)),on(e,n),r===1&&Ne===0&&!(t.mode&1)&&(tc=Et()+500,Om&&To()))}function on(e,t){var r=e.callbackNode;W9(e,t);var n=Op(e,e===tr?ur:0);if(n===0)r!==null&&v_(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&v_(r),t===1)e.tag===0?zH(uE.bind(null,e)):jI(uE.bind(null,e)),jH(function(){!(Ne&6)&&To()}),r=null;else{switch(hI(n)){case 1:r=x1;break;case 4:r=cI;break;case 16:r=Ap;break;case 536870912:r=uI;break;default:r=Ap}r=D$(r,P$.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function P$(e,t){if(Jd=-1,ep=0,Ne&6)throw Error(G(327));var r=e.callbackNode;if($s()&&e.callbackNode!==r)return null;var n=Op(e,e===tr?ur:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Kp(e,n);else{t=n;var i=Ne;Ne|=2;var a=O$();(tr!==e||ur!==t)&&(la=null,tc=Et()+500,ul(e,t));do try{s7();break}catch(l){A$(e,l)}while(!0);L1(),qp.current=a,Ne=i,Dt!==null?t=0:(tr=null,ur=0,t=Ht)}if(t!==0){if(t===2&&(i=kx(e),i!==0&&(n=i,t=Xx(e,i))),t===1)throw r=Ef,ul(e,0),Za(e,n),on(e,Et()),r;if(t===6)Za(e,n);else{if(i=e.current.alternate,!(n&30)&&!o7(i)&&(t=Kp(e,n),t===2&&(a=kx(e),a!==0&&(n=a,t=Xx(e,a))),t===1))throw r=Ef,ul(e,0),Za(e,n),on(e,Et()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(G(345));case 2:Vo(e,Zr,la);break;case 3:if(Za(e,n),(n&130023424)===n&&(t=Y1+500-Et(),10<t)){if(Op(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Br(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ox(Vo.bind(null,e,Zr,la),t);break}Vo(e,Zr,la);break;case 4:if(Za(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-ui(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=Et()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*a7(n/1960))-n,10<n){e.timeoutHandle=Ox(Vo.bind(null,e,Zr,la),n);break}Vo(e,Zr,la);break;case 5:Vo(e,Zr,la);break;default:throw Error(G(329))}}}return on(e,Et()),e.callbackNode===r?P$.bind(null,e):null}function Xx(e,t){var r=Gu;return e.current.memoizedState.isDehydrated&&(ul(e,t).flags|=256),e=Kp(e,t),e!==2&&(t=Zr,Zr=r,t!==null&&Zx(t)),e}function Zx(e){Zr===null?Zr=e:Zr.push.apply(Zr,e)}function o7(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!gi(a(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Za(e,t){for(t&=~V1,t&=~$m,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ui(t),n=1<<r;e[r]=-1,t&=~n}}function uE(e){if(Ne&6)throw Error(G(327));$s();var t=Op(e,0);if(!(t&1))return on(e,Et()),null;var r=Kp(e,t);if(e.tag!==0&&r===2){var n=kx(e);n!==0&&(t=n,r=Xx(e,n))}if(r===1)throw r=Ef,ul(e,0),Za(e,t),on(e,Et()),r;if(r===6)throw Error(G(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vo(e,Zr,la),on(e,Et()),null}function K1(e,t){var r=Ne;Ne|=1;try{return e(t)}finally{Ne=r,Ne===0&&(tc=Et()+500,Om&&To())}}function bl(e){eo!==null&&eo.tag===0&&!(Ne&6)&&$s();var t=Ne;Ne|=1;var r=Rn.transition,n=Ge;try{if(Rn.transition=null,Ge=1,e)return e()}finally{Ge=n,Rn.transition=r,Ne=t,!(Ne&6)&&To()}}function G1(){pn=Cs.current,lt(Cs)}function ul(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,NH(r)),Dt!==null)for(r=Dt.return;r!==null;){var n=r;switch(A1(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Dp();break;case 3:Js(),lt(nn),lt(Er),R1();break;case 5:j1(n);break;case 4:Js();break;case 13:lt(gt);break;case 19:lt(gt);break;case 10:I1(n.type._context);break;case 22:case 23:G1()}r=r.return}if(tr=e,Dt=e=uo(e.current,null),ur=pn=t,Ht=0,Ef=null,V1=$m=xl=0,Zr=Gu=null,el!==null){for(t=0;t<el.length;t++)if(r=el[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var o=a.next;a.next=i,n.next=o}r.pending=n}el=null}return e}function A$(e,t){do{var r=Dt;try{if(L1(),Xd.current=Up,Hp){for(var n=mt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Hp=!1}if(vl=0,Qt=Bt=mt=null,Yu=!1,Sf=0,q1.current=null,r===null||r.return===null){Ht=1,Ef=t,Dt=null;break}e:{var a=e,o=r.return,l=r,s=t;if(t=ur,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s,u=l,f=u.tag;if(!(u.mode&1)&&(f===0||f===11||f===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var d=Z_(o);if(d!==null){d.flags&=-257,Q_(d,o,l,a,t),d.mode&1&&X_(a,c,t),t=d,s=c;var p=t.updateQueue;if(p===null){var g=new Set;g.add(s),t.updateQueue=g}else p.add(s);break e}else{if(!(t&1)){X_(a,c,t),X1();break e}s=Error(G(426))}}else if(dt&&l.mode&1){var y=Z_(o);if(y!==null){!(y.flags&65536)&&(y.flags|=256),Q_(y,o,l,a,t),O1(ec(s,l));break e}}a=s=ec(s,l),Ht!==4&&(Ht=2),Gu===null?Gu=[a]:Gu.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var m=h$(a,s,t);U_(a,m);break e;case 1:l=s;var v=a.type,b=a.stateNode;if(!(a.flags&128)&&(typeof v.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(so===null||!so.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=d$(a,l,t);U_(a,S);break e}}a=a.return}while(a!==null)}L$(r)}catch(C){t=C,Dt===r&&r!==null&&(Dt=r=r.return);continue}break}while(!0)}function O$(){var e=qp.current;return qp.current=Up,e===null?Up:e}function X1(){(Ht===0||Ht===3||Ht===2)&&(Ht=4),tr===null||!(xl&268435455)&&!($m&268435455)||Za(tr,ur)}function Kp(e,t){var r=Ne;Ne|=2;var n=O$();(tr!==e||ur!==t)&&(la=null,ul(e,t));do try{l7();break}catch(i){A$(e,i)}while(!0);if(L1(),Ne=r,qp.current=n,Dt!==null)throw Error(G(261));return tr=null,ur=0,Ht}function l7(){for(;Dt!==null;)M$(Dt)}function s7(){for(;Dt!==null&&!I9();)M$(Dt)}function M$(e){var t=$$(e.alternate,e,pn);e.memoizedProps=e.pendingProps,t===null?L$(e):Dt=t,q1.current=null}function L$(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=t7(r,t),r!==null){r.flags&=32767,Dt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ht=6,Dt=null;return}}else if(r=e7(r,t,pn),r!==null){Dt=r;return}if(t=t.sibling,t!==null){Dt=t;return}Dt=t=e}while(t!==null);Ht===0&&(Ht=5)}function Vo(e,t,r){var n=Ge,i=Rn.transition;try{Rn.transition=null,Ge=1,c7(e,t,r,n)}finally{Rn.transition=i,Ge=n}return null}function c7(e,t,r,n){do $s();while(eo!==null);if(Ne&6)throw Error(G(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(G(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(H9(e,a),e===tr&&(Dt=tr=null,ur=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||ud||(ud=!0,D$(Ap,function(){return $s(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=Rn.transition,Rn.transition=null;var o=Ge;Ge=1;var l=Ne;Ne|=4,q1.current=null,n7(e,r),E$(r,e),AH(Px),Mp=!!Tx,Px=Tx=null,e.current=r,i7(r),$9(),Ne=l,Ge=o,Rn.transition=a}else e.current=r;if(ud&&(ud=!1,eo=e,Yp=i),a=e.pendingLanes,a===0&&(so=null),j9(r.stateNode),on(e,Et()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Vp)throw Vp=!1,e=Kx,Kx=null,e;return Yp&1&&e.tag!==0&&$s(),a=e.pendingLanes,a&1?e===Gx?Xu++:(Xu=0,Gx=e):Xu=0,To(),null}function $s(){if(eo!==null){var e=hI(Yp),t=Rn.transition,r=Ge;try{if(Rn.transition=null,Ge=16>e?16:e,eo===null)var n=!1;else{if(e=eo,eo=null,Yp=0,Ne&6)throw Error(G(331));var i=Ne;for(Ne|=4,ae=e.current;ae!==null;){var a=ae,o=a.child;if(ae.flags&16){var l=a.deletions;if(l!==null){for(var s=0;s<l.length;s++){var c=l[s];for(ae=c;ae!==null;){var u=ae;switch(u.tag){case 0:case 11:case 15:Ku(8,u,a)}var f=u.child;if(f!==null)f.return=u,ae=f;else for(;ae!==null;){u=ae;var h=u.sibling,d=u.return;if(S$(u),u===c){ae=null;break}if(h!==null){h.return=d,ae=h;break}ae=d}}}var p=a.alternate;if(p!==null){var g=p.child;if(g!==null){p.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(g!==null)}}ae=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,ae=o;else e:for(;ae!==null;){if(a=ae,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Ku(9,a,a.return)}var m=a.sibling;if(m!==null){m.return=a.return,ae=m;break e}ae=a.return}}var v=e.current;for(ae=v;ae!==null;){o=ae;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,ae=b;else e:for(o=v;ae!==null;){if(l=ae,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Im(9,l)}}catch(C){St(l,l.return,C)}if(l===o){ae=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,ae=S;break e}ae=l.return}}if(Ne=i,To(),Fi&&typeof Fi.onPostCommitFiberRoot=="function")try{Fi.onPostCommitFiberRoot(_m,e)}catch{}n=!0}return n}finally{Ge=r,Rn.transition=t}}return!1}function fE(e,t,r){t=ec(r,t),t=h$(e,t,1),e=lo(e,t,1),t=Br(),e!==null&&(th(e,1,t),on(e,t))}function St(e,t,r){if(e.tag===3)fE(e,e,r);else for(;t!==null;){if(t.tag===3){fE(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(so===null||!so.has(n))){e=ec(r,e),e=d$(t,e,1),t=lo(t,e,1),e=Br(),t!==null&&(th(t,1,e),on(t,e));break}}t=t.return}}function u7(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Br(),e.pingedLanes|=e.suspendedLanes&r,tr===e&&(ur&r)===r&&(Ht===4||Ht===3&&(ur&130023424)===ur&&500>Et()-Y1?ul(e,0):V1|=r),on(e,t)}function I$(e,t){t===0&&(e.mode&1?(t=ed,ed<<=1,!(ed&130023424)&&(ed=4194304)):t=1);var r=Br();e=ka(e,t),e!==null&&(th(e,t,r),on(e,r))}function f7(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),I$(e,r)}function h7(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(G(314))}n!==null&&n.delete(t),I$(e,r)}var $$;$$=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||nn.current)en=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return en=!1,JH(e,t,r);en=!!(e.flags&131072)}else en=!1,dt&&t.flags&1048576&&RI(t,Rp,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Qd(e,t),e=t.pendingProps;var i=Xs(t,Er.current);Is(t,r),i=F1(null,t,n,e,i,r);var a=z1();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,an(n)?(a=!0,Np(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,D1(t),i.updater=Lm,t.stateNode=i,i._reactInternals=t,jx(t,n,e,r),t=Fx(null,t,n,!0,a,r)):(t.tag=0,dt&&a&&P1(t),Ir(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Qd(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=p7(n),e=ei(n,e),i){case 0:t=Bx(null,t,n,e,r);break e;case 1:t=tE(null,t,n,e,r);break e;case 11:t=J_(null,t,n,e,r);break e;case 14:t=eE(null,t,n,ei(n.type,e),r);break e}throw Error(G(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:ei(n,i),Bx(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:ei(n,i),tE(e,t,n,i,r);case 3:e:{if(y$(t),e===null)throw Error(G(387));n=t.pendingProps,a=t.memoizedState,i=a.element,UI(e,t),zp(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=ec(Error(G(423)),t),t=rE(e,t,n,r,i);break e}else if(n!==i){i=ec(Error(G(424)),t),t=rE(e,t,n,r,i);break e}else for(mn=oo(t.stateNode.containerInfo.firstChild),xn=t,dt=!0,ri=null,r=WI(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Zs(),n===i){t=Sa(e,t,r);break e}Ir(e,t,n,r)}t=t.child}return t;case 5:return qI(t),e===null&&$x(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Ax(n,i)?o=null:a!==null&&Ax(n,a)&&(t.flags|=32),m$(e,t),Ir(e,t,o,r),t.child;case 6:return e===null&&$x(t),null;case 13:return v$(e,t,r);case 4:return N1(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Qs(t,null,n,r):Ir(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:ei(n,i),J_(e,t,n,i,r);case 7:return Ir(e,t,t.pendingProps,r),t.child;case 8:return Ir(e,t,t.pendingProps.children,r),t.child;case 12:return Ir(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,rt(Bp,n._currentValue),n._currentValue=o,a!==null)if(gi(a.value,o)){if(a.children===i.children&&!nn.current){t=Sa(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(a.tag===1){s=ga(-1,r&-r),s.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?s.next=s:(s.next=u.next,u.next=s),c.pending=s}}a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Dx(a.return,r,t),l.lanes|=r;break}s=s.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(G(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Dx(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Ir(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Is(t,r),i=Bn(i),n=n(i),t.flags|=1,Ir(e,t,n,r),t.child;case 14:return n=t.type,i=ei(n,t.pendingProps),i=ei(n.type,i),eE(e,t,n,i,r);case 15:return p$(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:ei(n,i),Qd(e,t),t.tag=1,an(n)?(e=!0,Np(t)):e=!1,Is(t,r),f$(t,n,i),jx(t,n,i,r),Fx(null,t,n,!0,e,r);case 19:return x$(e,t,r);case 22:return g$(e,t,r)}throw Error(G(156,t.tag))};function D$(e,t){return sI(e,t)}function d7(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(e,t,r,n){return new d7(e,t,r,n)}function Z1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function p7(e){if(typeof e=="function")return Z1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===m1)return 11;if(e===y1)return 14}return 2}function uo(e,t){var r=e.alternate;return r===null?(r=Nn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function tp(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")Z1(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ps:return fl(r.children,i,a,t);case g1:o=8,i|=8;break;case lx:return e=Nn(12,r,t,i|2),e.elementType=lx,e.lanes=a,e;case sx:return e=Nn(13,r,t,i),e.elementType=sx,e.lanes=a,e;case cx:return e=Nn(19,r,t,i),e.elementType=cx,e.lanes=a,e;case qL:return Dm(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case HL:o=10;break e;case UL:o=9;break e;case m1:o=11;break e;case y1:o=14;break e;case Va:o=16,n=null;break e}throw Error(G(130,e==null?e:typeof e,""))}return t=Nn(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function fl(e,t,r,n){return e=Nn(7,e,n,t),e.lanes=r,e}function Dm(e,t,r,n){return e=Nn(22,e,n,t),e.elementType=qL,e.lanes=r,e.stateNode={isHidden:!1},e}function t0(e,t,r){return e=Nn(6,e,null,t),e.lanes=r,e}function r0(e,t,r){return t=Nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function g7(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nv(0),this.expirationTimes=Nv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nv(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Q1(e,t,r,n,i,a,o,l,s){return e=new g7(e,t,r,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Nn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},D1(a),e}function m7(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ds,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function N$(e){if(!e)return mo;e=e._reactInternals;e:{if(zl(e)!==e||e.tag!==1)throw Error(G(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(an(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(G(171))}if(e.tag===1){var r=e.type;if(an(r))return NI(e,r,t)}return t}function j$(e,t,r,n,i,a,o,l,s){return e=Q1(r,n,!0,e,i,a,o,l,s),e.context=N$(null),r=e.current,n=Br(),i=co(r),a=ga(n,i),a.callback=t??null,lo(r,a,i),e.current.lanes=i,th(e,i,n),on(e,n),e}function Nm(e,t,r,n){var i=t.current,a=Br(),o=co(i);return r=N$(r),t.context===null?t.context=r:t.pendingContext=r,t=ga(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=lo(i,t,o),e!==null&&(fi(e,i,o,a),Gd(e,i,o)),o}function Gp(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function hE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function J1(e,t){hE(e,t),(e=e.alternate)&&hE(e,t)}function y7(){return null}var R$=typeof reportError=="function"?reportError:function(e){console.error(e)};function ek(e){this._internalRoot=e}jm.prototype.render=ek.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(G(409));Nm(e,t,null,null)};jm.prototype.unmount=ek.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bl(function(){Nm(null,e,null,null)}),t[wa]=null}};function jm(e){this._internalRoot=e}jm.prototype.unstable_scheduleHydration=function(e){if(e){var t=gI();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Xa.length&&t!==0&&t<Xa[r].priority;r++);Xa.splice(r,0,e),r===0&&yI(e)}};function tk(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Rm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function dE(){}function v7(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var c=Gp(o);a.call(c)}}var o=j$(t,n,e,0,null,!1,!1,"",dE);return e._reactRootContainer=o,e[wa]=o.current,vf(e.nodeType===8?e.parentNode:e),bl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var l=n;n=function(){var c=Gp(s);l.call(c)}}var s=Q1(e,0,!1,null,null,!1,!1,"",dE);return e._reactRootContainer=s,e[wa]=s.current,vf(e.nodeType===8?e.parentNode:e),bl(function(){Nm(t,s,r,n)}),s}function Bm(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var l=i;i=function(){var s=Gp(o);l.call(s)}}Nm(t,o,e,i)}else o=v7(r,t,e,i,n);return Gp(o)}dI=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Pu(t.pendingLanes);r!==0&&(b1(t,r|1),on(t,Et()),!(Ne&6)&&(tc=Et()+500,To()))}break;case 13:bl(function(){var n=ka(e,1);if(n!==null){var i=Br();fi(n,e,1,i)}}),J1(e,1)}};w1=function(e){if(e.tag===13){var t=ka(e,134217728);if(t!==null){var r=Br();fi(t,e,134217728,r)}J1(e,134217728)}};pI=function(e){if(e.tag===13){var t=co(e),r=ka(e,t);if(r!==null){var n=Br();fi(r,e,t,n)}J1(e,t)}};gI=function(){return Ge};mI=function(e,t){var r=Ge;try{return Ge=e,t()}finally{Ge=r}};xx=function(e,t,r){switch(t){case"input":if(hx(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Am(n);if(!i)throw Error(G(90));YL(n),hx(n,i)}}}break;case"textarea":GL(e,r);break;case"select":t=r.value,t!=null&&As(e,!!r.multiple,t,!1)}};rI=K1;nI=bl;var x7={usingClientEntryPoint:!1,Events:[nh,vs,Am,eI,tI,K1]},tu={findFiberByHostInstance:Jo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},b7={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$a.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=oI(e),e===null?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||y7,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fd.isDisabled&&fd.supportsFiber)try{_m=fd.inject(b7),Fi=fd}catch{}}En.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x7;En.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!tk(t))throw Error(G(200));return m7(e,t,null,r)};En.createRoot=function(e,t){if(!tk(e))throw Error(G(299));var r=!1,n="",i=R$;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Q1(e,1,!1,null,null,r,!1,n,i),e[wa]=t.current,vf(e.nodeType===8?e.parentNode:e),new ek(t)};En.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(G(188)):(e=Object.keys(e).join(","),Error(G(268,e)));return e=oI(t),e=e===null?null:e.stateNode,e};En.flushSync=function(e){return bl(e)};En.hydrate=function(e,t,r){if(!Rm(t))throw Error(G(200));return Bm(null,e,t,!0,r)};En.hydrateRoot=function(e,t,r){if(!tk(e))throw Error(G(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=R$;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=j$(t,null,e,1,r??null,i,!1,a,o),e[wa]=t.current,vf(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new jm(t)};En.render=function(e,t,r){if(!Rm(t))throw Error(G(200));return Bm(null,e,t,!1,r)};En.unmountComponentAtNode=function(e){if(!Rm(e))throw Error(G(40));return e._reactRootContainer?(bl(function(){Bm(null,null,e,!1,function(){e._reactRootContainer=null,e[wa]=null})}),!0):!1};En.unstable_batchedUpdates=K1;En.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Rm(r))throw Error(G(200));if(e==null||e._reactInternals===void 0)throw Error(G(38));return Bm(e,t,r,!1,n)};En.version="18.3.1-next-f1338f8080-20240426";function B$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(B$)}catch(e){console.error(e)}}B$(),BL.exports=En;var Fm=BL.exports,F$,pE=Fm;F$=pE.createRoot,pE.hydrateRoot;/**
|
|
42
|
+
* react-router v7.13.1
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Remix Software Inc.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
48
|
+
*
|
|
49
|
+
* @license MIT
|
|
50
|
+
*/var gE="popstate";function mE(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function w7(e={}){function t(n,i){var c;let a=(c=i.state)==null?void 0:c.masked,{pathname:o,search:l,hash:s}=a||n.location;return Qx("",{pathname:o,search:l,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default",a?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}function r(n,i){return typeof i=="string"?i:Tf(i)}return S7(t,r,null,e)}function yt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ui(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function k7(){return Math.random().toString(36).substring(2,10)}function yE(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Qx(e,t,r=null,n,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Cc(t):t,state:r,key:t&&t.key||n||k7(),unstable_mask:i}}function Tf({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Cc(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function S7(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,l="POP",s=null,c=u();c==null&&(c=0,o.replaceState({...o.state,idx:c},""));function u(){return(o.state||{idx:null}).idx}function f(){l="POP";let y=u(),m=y==null?null:y-c;c=y,s&&s({action:l,location:g.location,delta:m})}function h(y,m){l="PUSH";let v=mE(y)?y:Qx(g.location,y,m);c=u()+1;let b=yE(v,c),S=g.createHref(v.unstable_mask||v);try{o.pushState(b,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(S)}a&&s&&s({action:l,location:g.location,delta:1})}function d(y,m){l="REPLACE";let v=mE(y)?y:Qx(g.location,y,m);c=u();let b=yE(v,c),S=g.createHref(v.unstable_mask||v);o.replaceState(b,"",S),a&&s&&s({action:l,location:g.location,delta:0})}function p(y){return C7(y)}let g={get action(){return l},get location(){return e(i,o)},listen(y){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(gE,f),s=y,()=>{i.removeEventListener(gE,f),s=null}},createHref(y){return t(i,y)},createURL:p,encodeLocation(y){let m=p(y);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:d,go(y){return o.go(y)}};return g}function C7(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),yt(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:Tf(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function z$(e,t,r="/"){return _7(e,t,r,!1)}function _7(e,t,r,n){let i=typeof t=="string"?Cc(t):t,a=Ca(i.pathname||"/",r);if(a==null)return null;let o=W$(e);E7(o);let l=null;for(let s=0;l==null&&s<o.length;++s){let c=j7(a);l=D7(o[s],c,n)}return l}function W$(e,t=[],r=[],n="",i=!1){let a=(o,l,s=i,c)=>{let u={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(n)&&s)return;yt(u.relativePath.startsWith(n),`Absolute route path "${u.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(n.length)}let f=Wi([n,u.relativePath]),h=r.concat(u);o.children&&o.children.length>0&&(yt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),W$(o.children,t,h,f,s)),!(o.path==null&&!o.index)&&t.push({path:f,score:I7(f,o.index),routesMeta:h})};return e.forEach((o,l)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,l);else for(let c of H$(o.path))a(o,l,!0,c)}),t}function H$(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=H$(n.join("/")),l=[];return l.push(...o.map(s=>s===""?a:[a,s].join("/"))),i&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function E7(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:$7(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var T7=/^:[\w-]+$/,P7=3,A7=2,O7=1,M7=10,L7=-2,vE=e=>e==="*";function I7(e,t){let r=e.split("/"),n=r.length;return r.some(vE)&&(n+=L7),t&&(n+=A7),r.filter(i=>!vE(i)).reduce((i,a)=>i+(T7.test(a)?P7:a===""?O7:M7),n)}function $7(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function D7(e,t,r=!1){let{routesMeta:n}=e,i={},a="/",o=[];for(let l=0;l<n.length;++l){let s=n[l],c=l===n.length-1,u=a==="/"?t:t.slice(a.length)||"/",f=Xp({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},u),h=s.route;if(!f&&c&&r&&!n[n.length-1].route.index&&(f=Xp({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!f)return null;Object.assign(i,f.params),o.push({params:i,pathname:Wi([a,f.pathname]),pathnameBase:z7(Wi([a,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(a=Wi([a,f.pathnameBase]))}return o}function Xp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=N7(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:n.reduce((c,{paramName:u,isOptional:f},h)=>{if(u==="*"){let p=l[h]||"";o=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}const d=l[h];return f&&!d?c[u]=void 0:c[u]=(d||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function N7(e,t=!1,r=!0){Ui(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s,c,u)=>{if(n.push({paramName:l,isOptional:s!=null}),s){let f=u.charAt(c+o.length);return f&&f!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function j7(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ui(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ca(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var R7=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function B7(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Cc(e):e,a;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?a=xE(r.substring(1),"/"):a=xE(r,t)):a=t,{pathname:a,search:W7(n),hash:H7(i)}}function xE(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function n0(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function F7(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function U$(e){let t=F7(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function rk(e,t,r,n=!1){let i;typeof e=="string"?i=Cc(e):(i={...e},yt(!i.pathname||!i.pathname.includes("?"),n0("?","pathname","search",i)),yt(!i.pathname||!i.pathname.includes("#"),n0("#","pathname","hash",i)),yt(!i.search||!i.search.includes("#"),n0("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,l;if(o==null)l=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}l=f>=0?t[f]:"/"}let s=B7(i,l),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(c||u)&&(s.pathname+="/"),s}var Wi=e=>e.join("/").replace(/\/\/+/g,"/"),z7=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),W7=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,H7=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,U7=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function q7(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function V7(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var q$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function V$(e,t){let r=e;if(typeof r!="string"||!R7.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,i=!1;if(q$)try{let a=new URL(window.location.href),o=r.startsWith("//")?new URL(a.protocol+r):new URL(r),l=Ca(o.pathname,t);o.origin===a.origin&&l!=null?r=l+o.search+o.hash:i=!0}catch{Ui(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:i,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Y$=["POST","PUT","PATCH","DELETE"];new Set(Y$);var Y7=["GET",...Y$];new Set(Y7);var _c=x.createContext(null);_c.displayName="DataRouter";var zm=x.createContext(null);zm.displayName="DataRouterState";var K7=x.createContext(!1),K$=x.createContext({isTransitioning:!1});K$.displayName="ViewTransition";var G7=x.createContext(new Map);G7.displayName="Fetchers";var X7=x.createContext(null);X7.displayName="Await";var Kn=x.createContext(null);Kn.displayName="Navigation";var ah=x.createContext(null);ah.displayName="Location";var Da=x.createContext({outlet:null,matches:[],isDataRoute:!1});Da.displayName="Route";var nk=x.createContext(null);nk.displayName="RouteError";var G$="REACT_ROUTER_ERROR",Z7="REDIRECT",Q7="ROUTE_ERROR_RESPONSE";function J7(e){if(e.startsWith(`${G$}:${Z7}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function eU(e){if(e.startsWith(`${G$}:${Q7}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new U7(t.status,t.statusText,t.data)}catch{}}function tU(e,{relative:t}={}){yt(oh(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=x.useContext(Kn),{hash:i,pathname:a,search:o}=lh(e,{relative:t}),l=a;return r!=="/"&&(l=a==="/"?r:Wi([r,a])),n.createHref({pathname:l,search:o,hash:i})}function oh(){return x.useContext(ah)!=null}function Po(){return yt(oh(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(ah).location}var X$="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Z$(e){x.useContext(Kn).static||x.useLayoutEffect(e)}function rU(){let{isDataRoute:e}=x.useContext(Da);return e?gU():nU()}function nU(){yt(oh(),"useNavigate() may be used only in the context of a <Router> component.");let e=x.useContext(_c),{basename:t,navigator:r}=x.useContext(Kn),{matches:n}=x.useContext(Da),{pathname:i}=Po(),a=JSON.stringify(U$(n)),o=x.useRef(!1);return Z$(()=>{o.current=!0}),x.useCallback((s,c={})=>{if(Ui(o.current,X$),!o.current)return;if(typeof s=="number"){r.go(s);return}let u=rk(s,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Wi([t,u.pathname])),(c.replace?r.replace:r.push)(u,c.state,c)},[t,r,a,i,e])}x.createContext(null);function lh(e,{relative:t}={}){let{matches:r}=x.useContext(Da),{pathname:n}=Po(),i=JSON.stringify(U$(r));return x.useMemo(()=>rk(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function iU(e,t){return Q$(e,t)}function Q$(e,t,r){var y;yt(oh(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=x.useContext(Kn),{matches:i}=x.useContext(Da),a=i[i.length-1],o=a?a.params:{},l=a?a.pathname:"/",s=a?a.pathnameBase:"/",c=a&&a.route;{let m=c&&c.path||"";eD(l,!c||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
51
|
+
|
|
52
|
+
Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let u=Po(),f;if(t){let m=typeof t=="string"?Cc(t):t;yt(s==="/"||((y=m.pathname)==null?void 0:y.startsWith(s)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${m.pathname}" was given in the \`location\` prop.`),f=m}else f=u;let h=f.pathname||"/",d=h;if(s!=="/"){let m=s.replace(/^\//,"").split("/");d="/"+h.replace(/^\//,"").split("/").slice(m.length).join("/")}let p=z$(e,{pathname:d});Ui(c||p!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),Ui(p==null||p[p.length-1].route.element!==void 0||p[p.length-1].route.Component!==void 0||p[p.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=cU(p&&p.map(m=>Object.assign({},m,{params:Object.assign({},o,m.params),pathname:Wi([s,n.encodeLocation?n.encodeLocation(m.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?s:Wi([s,n.encodeLocation?n.encodeLocation(m.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),i,r);return t&&g?x.createElement(ah.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...f},navigationType:"POP"}},g):g}function aU(){let e=pU(),t=q7(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:a},"ErrorBoundary")," or"," ",x.createElement("code",{style:a},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),r?x.createElement("pre",{style:i},r):null,o)}var oU=x.createElement(aU,null),J$=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=eU(e.digest);r&&(e=r)}let t=e!==void 0?x.createElement(Da.Provider,{value:this.props.routeContext},x.createElement(nk.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?x.createElement(lU,{error:e},t):t}};J$.contextType=K7;var i0=new WeakMap;function lU({children:e,error:t}){let{basename:r}=x.useContext(Kn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=J7(t.digest);if(n){let i=i0.get(t);if(i)throw i;let a=V$(n.location,r);if(q$&&!i0.get(t))if(a.isExternal||n.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:n.replace}));throw i0.set(t,o),o}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function sU({routeContext:e,match:t,children:r}){let n=x.useContext(_c);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),x.createElement(Da.Provider,{value:e},r)}function cU(e,t=[],r){let n=r==null?void 0:r.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let u=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);yt(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let o=!1,l=-1;if(r&&n){o=n.renderFallback;for(let u=0;u<i.length;u++){let f=i[u];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(l=u),f.route.id){let{loaderData:h,errors:d}=n,p=f.route.loader&&!h.hasOwnProperty(f.route.id)&&(!d||d[f.route.id]===void 0);if(f.route.lazy||p){r.isStatic&&(o=!0),l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}}let s=r==null?void 0:r.onError,c=n&&s?(u,f)=>{var h,d;s(u,{location:n.location,params:((d=(h=n.matches)==null?void 0:h[0])==null?void 0:d.params)??{},unstable_pattern:V7(n.matches),errorInfo:f})}:void 0;return i.reduceRight((u,f,h)=>{let d,p=!1,g=null,y=null;n&&(d=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||oU,o&&(l<0&&h===0?(eD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,y=null):l===h&&(p=!0,y=f.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,h+1)),v=()=>{let b;return d?b=g:p?b=y:f.route.Component?b=x.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=u,x.createElement(sU,{match:f,routeContext:{outlet:u,matches:m,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?x.createElement(J$,{location:n.location,revalidation:n.revalidation,component:g,error:d,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:c}):v()},null)}function ik(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function uU(e){let t=x.useContext(_c);return yt(t,ik(e)),t}function fU(e){let t=x.useContext(zm);return yt(t,ik(e)),t}function hU(e){let t=x.useContext(Da);return yt(t,ik(e)),t}function ak(e){let t=hU(e),r=t.matches[t.matches.length-1];return yt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function dU(){return ak("useRouteId")}function pU(){var n;let e=x.useContext(nk),t=fU("useRouteError"),r=ak("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function gU(){let{router:e}=uU("useNavigate"),t=ak("useNavigate"),r=x.useRef(!1);return Z$(()=>{r.current=!0}),x.useCallback(async(i,a={})=>{Ui(r.current,X$),r.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var bE={};function eD(e,t,r){!t&&!bE[e]&&(bE[e]=!0,Ui(!1,r))}x.memo(mU);function mU({routes:e,future:t,state:r,isStatic:n,onError:i}){return Q$(e,void 0,{state:r,isStatic:n,onError:i})}function Jn(e){yt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function yU({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:a=!1,unstable_useTransitions:o}){yt(!oh(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),s=x.useMemo(()=>({basename:l,navigator:i,static:a,unstable_useTransitions:o,future:{}}),[l,i,a,o]);typeof r=="string"&&(r=Cc(r));let{pathname:c="/",search:u="",hash:f="",state:h=null,key:d="default",unstable_mask:p}=r,g=x.useMemo(()=>{let y=Ca(c,l);return y==null?null:{location:{pathname:y,search:u,hash:f,state:h,key:d,unstable_mask:p},navigationType:n}},[l,c,u,f,h,d,n,p]);return Ui(g!=null,`<Router basename="${l}"> is not able to match the URL "${c}${u}${f}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:x.createElement(Kn.Provider,{value:s},x.createElement(ah.Provider,{children:t,value:g}))}function vU({children:e,location:t}){return iU(Jx(e),t)}function Jx(e,t=[]){let r=[];return x.Children.forEach(e,(n,i)=>{if(!x.isValidElement(n))return;let a=[...t,i];if(n.type===x.Fragment){r.push.apply(r,Jx(n.props.children,a));return}yt(n.type===Jn,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),yt(!n.props.index||!n.props.children,"An index route cannot have child routes.");let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=Jx(n.props.children,a)),r.push(o)}),r}var rp="get",np="application/x-www-form-urlencoded";function Wm(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function xU(e){return Wm(e)&&e.tagName.toLowerCase()==="button"}function bU(e){return Wm(e)&&e.tagName.toLowerCase()==="form"}function wU(e){return Wm(e)&&e.tagName.toLowerCase()==="input"}function kU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function SU(e,t){return e.button===0&&(!t||t==="_self")&&!kU(e)}var hd=null;function CU(){if(hd===null)try{new FormData(document.createElement("form"),0),hd=!1}catch{hd=!0}return hd}var _U=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function a0(e){return e!=null&&!_U.has(e)?(Ui(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${np}"`),null):e}function EU(e,t){let r,n,i,a,o;if(bU(e)){let l=e.getAttribute("action");n=l?Ca(l,t):null,r=e.getAttribute("method")||rp,i=a0(e.getAttribute("enctype"))||np,a=new FormData(e)}else if(xU(e)||wU(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(n=s?Ca(s,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||rp,i=a0(e.getAttribute("formenctype"))||a0(l.getAttribute("enctype"))||np,a=new FormData(l,e),!CU()){let{name:c,type:u,value:f}=e;if(u==="image"){let h=c?`${c}.`:"";a.append(`${h}x`,"0"),a.append(`${h}y`,"0")}else c&&a.append(c,f)}}else{if(Wm(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=rp,n=null,i=np,o=e}return a&&i==="text/plain"&&(o=a,a=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ok(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function TU(e,t,r,n){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${n}`:i.pathname=`${i.pathname}.${n}`:i.pathname==="/"?i.pathname=`_root.${n}`:t&&Ca(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${n}`,i}async function PU(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function AU(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function OU(e,t,r){let n=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let o=await PU(a,r);return o.links?o.links():[]}return[]}));return $U(n.flat(1).filter(AU).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function wE(e,t,r,n,i,a){let o=(s,c)=>r[c]?s.route.id!==r[c].route.id:!0,l=(s,c)=>{var u;return r[c].pathname!==s.pathname||((u=r[c].route.path)==null?void 0:u.endsWith("*"))&&r[c].params["*"]!==s.params["*"]};return a==="assets"?t.filter((s,c)=>o(s,c)||l(s,c)):a==="data"?t.filter((s,c)=>{var f;let u=n.routes[s.route.id];if(!u||!u.hasLoader)return!1;if(o(s,c)||l(s,c))return!0;if(s.route.shouldRevalidate){let h=s.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((f=r[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function MU(e,t,{includeHydrateFallback:r}={}){return LU(e.map(n=>{let i=t.routes[n.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function LU(e){return[...new Set(e)]}function IU(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function $U(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let a=JSON.stringify(IU(i));return r.has(a)||(r.add(a),n.push({key:a,link:i})),n},[])}function tD(){let e=x.useContext(_c);return ok(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function DU(){let e=x.useContext(zm);return ok(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var lk=x.createContext(void 0);lk.displayName="FrameworkContext";function rD(){let e=x.useContext(lk);return ok(e,"You must render this element inside a <HydratedRouter> element"),e}function NU(e,t){let r=x.useContext(lk),[n,i]=x.useState(!1),[a,o]=x.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:c,onMouseLeave:u,onTouchStart:f}=t,h=x.useRef(null);x.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let g=m=>{m.forEach(v=>{o(v.isIntersecting)})},y=new IntersectionObserver(g,{threshold:.5});return h.current&&y.observe(h.current),()=>{y.disconnect()}}},[e]),x.useEffect(()=>{if(n){let g=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(g)}}},[n]);let d=()=>{i(!0)},p=()=>{i(!1),o(!1)};return r?e!=="intent"?[a,h,{}]:[a,h,{onFocus:ru(l,d),onBlur:ru(s,p),onMouseEnter:ru(c,d),onMouseLeave:ru(u,p),onTouchStart:ru(f,d)}]:[!1,h,{}]}function ru(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function jU({page:e,...t}){let{router:r}=tD(),n=x.useMemo(()=>z$(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?x.createElement(BU,{page:e,matches:n,...t}):null}function RU(e){let{manifest:t,routeModules:r}=rD(),[n,i]=x.useState([]);return x.useEffect(()=>{let a=!1;return OU(e,t,r).then(o=>{a||i(o)}),()=>{a=!0}},[e,t,r]),n}function BU({page:e,matches:t,...r}){let n=Po(),{future:i,manifest:a,routeModules:o}=rD(),{basename:l}=tD(),{loaderData:s,matches:c}=DU(),u=x.useMemo(()=>wE(e,t,c,a,n,"data"),[e,t,c,a,n]),f=x.useMemo(()=>wE(e,t,c,a,n,"assets"),[e,t,c,a,n]),h=x.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let g=new Set,y=!1;if(t.forEach(v=>{var S;let b=a.routes[v.route.id];!b||!b.hasLoader||(!u.some(C=>C.route.id===v.route.id)&&v.route.id in s&&((S=o[v.route.id])!=null&&S.shouldRevalidate)||b.hasClientLoader?y=!0:g.add(v.route.id))}),g.size===0)return[];let m=TU(e,l,i.unstable_trailingSlashAwareDataRequests,"data");return y&&g.size>0&&m.searchParams.set("_routes",t.filter(v=>g.has(v.route.id)).map(v=>v.route.id).join(",")),[m.pathname+m.search]},[l,i.unstable_trailingSlashAwareDataRequests,s,n,a,u,t,e,o]),d=x.useMemo(()=>MU(f,a),[f,a]),p=RU(f);return x.createElement(x.Fragment,null,h.map(g=>x.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})),d.map(g=>x.createElement("link",{key:g,rel:"modulepreload",href:g,...r})),p.map(({key:g,link:y})=>x.createElement("link",{key:g,nonce:r.nonce,...y,crossOrigin:y.crossOrigin??r.crossOrigin})))}function FU(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var zU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zU&&(window.__reactRouterVersion="7.13.1")}catch{}function WU({basename:e,children:t,unstable_useTransitions:r,window:n}){let i=x.useRef();i.current==null&&(i.current=w7({window:n,v5Compat:!0}));let a=i.current,[o,l]=x.useState({action:a.action,location:a.location}),s=x.useCallback(c=>{r===!1?l(c):x.startTransition(()=>l(c))},[r]);return x.useLayoutEffect(()=>a.listen(s),[a,s]),x.createElement(yU,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,unstable_useTransitions:r})}var nD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sk=x.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:a,replace:o,unstable_mask:l,state:s,target:c,to:u,preventScrollReset:f,viewTransition:h,unstable_defaultShouldRevalidate:d,...p},g){let{basename:y,navigator:m,unstable_useTransitions:v}=x.useContext(Kn),b=typeof u=="string"&&nD.test(u),S=V$(u,y);u=S.to;let C=tU(u,{relative:i}),w=Po(),_=null;if(l){let D=rk(l,[],w.unstable_mask?w.unstable_mask.pathname:"/",!0);y!=="/"&&(D.pathname=D.pathname==="/"?y:Wi([y,D.pathname])),_=m.createHref(D)}let[P,I,$]=NU(n,p),A=qU(u,{replace:o,unstable_mask:l,state:s,target:c,preventScrollReset:f,relative:i,viewTransition:h,unstable_defaultShouldRevalidate:d,unstable_useTransitions:v});function M(D){t&&t(D),D.defaultPrevented||A(D)}let F=!(S.isExternal||a),N=x.createElement("a",{...p,...$,href:(F?_:void 0)||S.absoluteURL||C,onClick:F?M:t,ref:FU(g,I),target:c,"data-discover":!b&&r==="render"?"true":void 0});return P&&!b?x.createElement(x.Fragment,null,N,x.createElement(jU,{page:C})):N});sk.displayName="Link";var iD=x.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:a,to:o,viewTransition:l,children:s,...c},u){let f=lh(o,{relative:c.relative}),h=Po(),d=x.useContext(zm),{navigator:p,basename:g}=x.useContext(Kn),y=d!=null&&XU(f)&&l===!0,m=p.encodeLocation?p.encodeLocation(f).pathname:f.pathname,v=h.pathname,b=d&&d.navigation&&d.navigation.location?d.navigation.location.pathname:null;r||(v=v.toLowerCase(),b=b?b.toLowerCase():null,m=m.toLowerCase()),b&&g&&(b=Ca(b,g)||b);const S=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let C=v===m||!i&&v.startsWith(m)&&v.charAt(S)==="/",w=b!=null&&(b===m||!i&&b.startsWith(m)&&b.charAt(m.length)==="/"),_={isActive:C,isPending:w,isTransitioning:y},P=C?t:void 0,I;typeof n=="function"?I=n(_):I=[n,C?"active":null,w?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let $=typeof a=="function"?a(_):a;return x.createElement(sk,{...c,"aria-current":P,className:I,ref:u,style:$,to:o,viewTransition:l},typeof s=="function"?s(_):s)});iD.displayName="NavLink";var HU=x.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:a,method:o=rp,action:l,onSubmit:s,relative:c,preventScrollReset:u,viewTransition:f,unstable_defaultShouldRevalidate:h,...d},p)=>{let{unstable_useTransitions:g}=x.useContext(Kn),y=KU(),m=GU(l,{relative:c}),v=o.toLowerCase()==="get"?"get":"post",b=typeof l=="string"&&nD.test(l),S=C=>{if(s&&s(C),C.defaultPrevented)return;C.preventDefault();let w=C.nativeEvent.submitter,_=(w==null?void 0:w.getAttribute("formmethod"))||o,P=()=>y(w||C.currentTarget,{fetcherKey:t,method:_,navigate:r,replace:i,state:a,relative:c,preventScrollReset:u,viewTransition:f,unstable_defaultShouldRevalidate:h});g&&r!==!1?x.startTransition(()=>P()):P()};return x.createElement("form",{ref:p,method:v,action:m,onSubmit:n?s:S,...d,"data-discover":!b&&e==="render"?"true":void 0})});HU.displayName="Form";function UU(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function aD(e){let t=x.useContext(_c);return yt(t,UU(e)),t}function qU(e,{target:t,replace:r,unstable_mask:n,state:i,preventScrollReset:a,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:s,unstable_useTransitions:c}={}){let u=rU(),f=Po(),h=lh(e,{relative:o});return x.useCallback(d=>{if(SU(d,t)){d.preventDefault();let p=r!==void 0?r:Tf(f)===Tf(h),g=()=>u(e,{replace:p,unstable_mask:n,state:i,preventScrollReset:a,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:s});c?x.startTransition(()=>g()):g()}},[f,u,h,r,n,i,t,e,a,o,l,s,c])}var VU=0,YU=()=>`__${String(++VU)}__`;function KU(){let{router:e}=aD("useSubmit"),{basename:t}=x.useContext(Kn),r=dU(),n=e.fetch,i=e.navigate;return x.useCallback(async(a,o={})=>{let{action:l,method:s,encType:c,formData:u,body:f}=EU(a,t);if(o.navigate===!1){let h=o.fetcherKey||YU();await n(h,r,o.action||l,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:u,body:f,formMethod:o.method||s,formEncType:o.encType||c,flushSync:o.flushSync})}else await i(o.action||l,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:u,body:f,formMethod:o.method||s,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,i,t,r])}function GU(e,{relative:t}={}){let{basename:r}=x.useContext(Kn),n=x.useContext(Da);yt(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),a={...lh(e||".",{relative:t})},o=Po();if(e==null){a.search=o.search;let l=new URLSearchParams(a.search),s=l.getAll("index");if(s.some(u=>u==="")){l.delete("index"),s.filter(f=>f).forEach(f=>l.append("index",f));let u=l.toString();a.search=u?`?${u}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Wi([r,a.pathname])),Tf(a)}function XU(e,{relative:t}={}){let r=x.useContext(K$);yt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=aD("useViewTransitionState"),i=lh(e,{relative:t});if(!r.isTransitioning)return!1;let a=Ca(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=Ca(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Xp(i.pathname,o)!=null||Xp(i.pathname,a)!=null}const oD=x.createContext(void 0);function ZU(e,t,r){if(typeof e.id=="string")return{id:e.id,covered:!!e.covered,tests:e.tests??e.matchedTests,steps:e.steps,coveredSteps:e.coveredSteps,threshold:e.threshold};switch(t){case"endpoint":{const n=e.endpoint??{},i=e.matchedTests??[];return{id:`${n.method??""} ${n.path??""}`.trim()||`endpoint-${r}`,covered:!!e.covered,tests:i}}case"business":{const n=e.matchedTests??[];return{id:e.name||e.id||`rule-${r}`,covered:!!e.covered,tests:n}}case"error":{const n=e.endpoint??{},i=e.errorCodes??[],a=i.length?` (${i.join(", ")})`:"";return{id:`${n.method??""} ${n.path??""}${a}`.trim()||`error-${r}`,covered:!!e.covered,tests:[]}}case"security":{const n=e.control??{},i=e.matchedTests??[];return{id:n.id||`security-${r}`,covered:!!e.covered,tests:i}}default:return{id:e.id||e.name||`${t}-${r}`,covered:!!e.covered,tests:e.tests??e.matchedTests,steps:e.steps,coveredSteps:e.coveredSteps,threshold:e.threshold}}}function QU(e,t){return Array.isArray(e)?{items:e.map((r,n)=>ZU(r,t,n))}:e&&typeof e=="object"&&"items"in e?e:{items:[]}}function kE(e){if(!e.details)return e;const t={};for(const[r,n]of Object.entries(e.details))t[r]=QU(n,r);return{...e,details:t}}function JU({children:e}){const[t,r]=x.useState(null),[n,i]=x.useState("coverage-summary.json"),[a,o]=x.useState(!0),[l,s]=x.useState(null),[c,u]=x.useState([]);x.useEffect(()=>{fetch("/reports/coverage-summary.json").then(d=>{if(!d.ok)throw new Error(`HTTP ${d.status}: ${d.statusText}`);return d.json()}).then(d=>{const p=kE(d);r(p),u([{name:"coverage-summary.json",report:p}]),o(!1)}).catch(d=>{s(d instanceof Error?d.message:String(d)),o(!1)})},[]);function f(d){o(!0),s(null);const p=new FileReader;p.onload=g=>{var y;try{const m=JSON.parse((y=g.target)==null?void 0:y.result),v=kE(m);r(v),i(d.name),u(b=>b.find(C=>C.name===d.name)?b:[...b,{name:d.name,report:v}]),o(!1)}catch{s("Failed to parse JSON file. Please ensure it is a valid coverage report."),o(!1)}},p.onerror=()=>{s("Failed to read file."),o(!1)},p.readAsText(d)}function h(d,p){u(g=>g.find(m=>m.name===d)?g:[...g,{name:d,report:p}])}return E.jsx(oD.Provider,{value:{report:t,reportName:n,loading:a,error:l,loadFromFile:f,historicalReports:c,addHistoricalReport:h},children:e})}function yi(){const e=x.useContext(oD);if(!e)throw new Error("useCoverage must be used within CoverageProvider");return e}const lD=x.createContext(void 0);function eq(e,t){try{const r=localStorage.getItem(e);return r===null?t:r==="true"}catch{return t}}function tq({children:e}){const[t,r]=x.useState(()=>eq("showAiSummaries",!0));function n(){r(i=>{const a=!i;try{localStorage.setItem("showAiSummaries",String(a))}catch{}return a})}return E.jsx(lD.Provider,{value:{showAiSummaries:t,toggleAiSummaries:n},children:e})}function Hm(){const e=x.useContext(lD);if(!e)throw new Error("useSettings must be used within SettingsProvider");return e}const rq={endpoint:["coverage-gap-analysis","uncovered-endpoint"],parameter:["parameter-coverage","missing-boundary-test","high-risk-parameter-gap"],business:["business-coverage","missing-business-rule-test"],integration:["integration-flow","missing-flow-step-test"],security:["security-coverage","security-scan","missing-auth-test","security-finding-unprotected"],error:["error-coverage","error-scenario-gap"],performance:["performance-resilience","performance-risk"],compatibility:["compatibility","compatibility-risk"]};function sD(e,t){const r=rq[t]??[];return e.filter(n=>{var i;return r.includes(n.source)||r.includes(n.category)||((i=n.tags)==null?void 0:i.some(a=>r.includes(a)))})}function nq(e,t,r){const n=new Set(sD(t,r).map(i=>i.id));return e.filter(i=>i.linkedFindingIds.some(a=>n.has(a)))}function cD(e){return e>=75?"Critical":e>=50?"High":e>=25?"Moderate":"Low"}const uD=x.createContext(void 0);function iq({children:e}){const[t,r]=x.useState(null),[n,i]=x.useState(!0),[a,o]=x.useState(null);x.useEffect(()=>{fetch("/reports/coverage-intelligence.json").then(c=>{if(!c.ok)throw new Error(`HTTP ${c.status}`);return c.json()}).then(c=>{r(c),i(!1)}).catch(()=>{i(!1),o("not-available")})},[]);function l(c){return t?sD(t.findings,c):[]}function s(c){return t?nq(t.recommendations,t.findings,c):[]}return E.jsx(uD.Provider,{value:{report:t,loading:n,error:a,findingsFor:l,recommendationsFor:s},children:e})}function Ao(){const e=x.useContext(uD);if(!e)throw new Error("useIntelligence must be used within IntelligenceProvider");return e}const aq=[{to:"/",label:"📊 Overview"},{to:"/endpoints",label:"🔗 Endpoints"},{to:"/parameters",label:"🔧 Parameters"},{to:"/business-rules",label:"📋 Business Rules"},{to:"/integration-flows",label:"🔄 Integration Flows"},{to:"/security",label:"🔒 Security"},{to:"/error-handling",label:"⚠️ Error Handling"},{to:"/performance",label:"⚡ Performance"},{to:"/intelligence",label:"🧠 Intelligence"},{to:"/trends",label:"📈 Trends"}];function oq(){return E.jsxs("nav",{className:"w-64 min-h-screen bg-gray-900 dark:bg-gray-950 text-white flex flex-col py-6 px-3 shrink-0",children:[E.jsx("div",{className:"text-lg font-bold mb-8 px-3 text-blue-400",children:"API Coverage"}),E.jsx("ul",{className:"flex flex-col gap-1",children:aq.map(({to:e,label:t})=>E.jsx("li",{children:E.jsx(iD,{to:e,end:e==="/",className:({isActive:r})=>`block px-3 py-2 rounded-lg text-sm font-medium transition-colors ${r?"bg-blue-600 text-white":"text-gray-300 hover:bg-gray-700 hover:text-white"}`,children:t})},e))})]})}function lq(){const[e,t]=x.useState(()=>typeof window<"u"?localStorage.getItem("theme")==="dark":!1);return x.useEffect(()=>{const r=document.documentElement;e?(r.classList.add("dark"),localStorage.setItem("theme","dark")):(r.classList.remove("dark"),localStorage.setItem("theme","light"))},[e]),E.jsx("button",{"data-testid":"theme-toggle",onClick:()=>t(r=>!r),className:"px-3 py-1 rounded-lg border border-gray-300 dark:border-gray-600 text-sm font-medium bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-600 transition-colors","aria-label":e?"Switch to light mode":"Switch to dark mode",children:e?"☀️ Light":"🌙 Dark"})}function sq(){const{reportName:e,report:t}=yi(),{showAiSummaries:r,toggleAiSummaries:n}=Hm();return E.jsxs("header",{className:"bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 px-6 py-3 flex items-center justify-between shrink-0",children:[E.jsxs("div",{children:[E.jsx("span",{className:"text-sm font-semibold text-gray-800 dark:text-gray-100",children:e}),t&&E.jsxs("span",{className:"ml-3 text-xs text-gray-500 dark:text-gray-400",children:["Generated: ",new Date(t.generatedAt).toLocaleString()]})]}),E.jsxs("div",{className:"flex items-center gap-3",children:[E.jsxs("button",{type:"button",onClick:n,"aria-pressed":r,title:"Toggle AI-friendly summaries",className:`text-xs px-3 py-1.5 rounded-lg border transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 ${r?"bg-blue-100 dark:bg-blue-900/30 border-blue-300 dark:border-blue-700 text-blue-700 dark:text-blue-300":"bg-gray-100 dark:bg-gray-700 border-gray-300 dark:border-gray-600 text-gray-500 dark:text-gray-400"}`,"data-testid":"ai-summaries-toggle",children:["🤖 AI summaries ",r?"on":"off"]}),E.jsx(lq,{})]})]})}const _s={endpoint:80,parameter:70,business:60,integration:50,security:60,error:50,performance:75,resilience:50};function fD(e,t){return e>=t?{label:"✅ Pass",color:"text-green-600 dark:text-green-400"}:e>=t-10?{label:"⚠️ Warning",color:"text-yellow-600 dark:text-yellow-400"}:{label:"❌ Fail",color:"text-red-600 dark:text-red-400"}}function cq({summary:e}){const t=e.filter(n=>{const i=_s[n.type]??50;return n.coveragePercent<i}),r=e.filter(n=>{const i=_s[n.type]??50;return n.coveragePercent>=i-10&&n.coveragePercent<i});return t.length===0&&r.length===0?E.jsx("div",{className:"mb-4 p-3 rounded-lg bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 text-green-700 dark:text-green-300 text-sm font-medium",children:"✅ All quality gates passed"}):E.jsxs("div",{className:"mb-4 flex flex-col gap-2",children:[t.length>0&&E.jsxs("div",{className:"p-3 rounded-lg bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm",children:[E.jsx("span",{className:"font-semibold",children:"❌ Quality gate failures: "}),t.map(n=>{const i=_s[n.type]??50,{label:a}=fD(n.coveragePercent,i);return E.jsxs("span",{className:"mr-2",children:[n.type," (",n.coveragePercent,"% / ",i,"%) ",a]},n.type)})]}),r.length>0&&E.jsxs("div",{className:"p-3 rounded-lg bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 text-yellow-700 dark:text-yellow-300 text-sm",children:[E.jsx("span",{className:"font-semibold",children:"⚠️ Quality gate warnings: "}),r.map(n=>{const i=_s[n.type]??50;return E.jsxs("span",{className:"mr-2",children:[n.type," (",n.coveragePercent,"% / ",i,"%)"]},n.type)})]})]})}function SE(){const{loadFromFile:e}=yi(),t=x.useRef(null);function r(n){var a;const i=(a=n.target.files)==null?void 0:a[0];i&&e(i),t.current&&(t.current.value="")}return E.jsxs("div",{children:[E.jsx("input",{ref:t,type:"file",accept:".json",onChange:r,className:"hidden",id:"file-upload","aria-label":"Upload coverage report"}),E.jsx("label",{htmlFor:"file-upload",className:"cursor-pointer inline-flex items-center px-4 py-2 rounded-lg border border-blue-400 bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300 text-sm font-medium hover:bg-blue-100 dark:hover:bg-blue-800/30 transition-colors",children:"📂 Load Report"})]})}function uq(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const fq=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hq=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,dq={};function CE(e,t){return(dq.jsx?hq:fq).test(e)}const pq=/[ \t\n\f\r]/g;function gq(e){return typeof e=="object"?e.type==="text"?_E(e.value):!1:_E(e)}function _E(e){return e.replace(pq,"")===""}class sh{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}sh.prototype.normal={};sh.prototype.property={};sh.prototype.space=void 0;function hD(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new sh(r,n,t)}function eb(e){return e.toLowerCase()}class sn{constructor(t,r){this.attribute=r,this.property=t}}sn.prototype.attribute="";sn.prototype.booleanish=!1;sn.prototype.boolean=!1;sn.prototype.commaOrSpaceSeparated=!1;sn.prototype.commaSeparated=!1;sn.prototype.defined=!1;sn.prototype.mustUseProperty=!1;sn.prototype.number=!1;sn.prototype.overloadedBoolean=!1;sn.prototype.property="";sn.prototype.spaceSeparated=!1;sn.prototype.space=void 0;let mq=0;const Pe=Wl(),It=Wl(),tb=Wl(),Z=Wl(),et=Wl(),Ds=Wl(),hn=Wl();function Wl(){return 2**++mq}const rb=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:It,commaOrSpaceSeparated:hn,commaSeparated:Ds,number:Z,overloadedBoolean:tb,spaceSeparated:et},Symbol.toStringTag,{value:"Module"})),o0=Object.keys(rb);class ck extends sn{constructor(t,r,n,i){let a=-1;if(super(t,r),EE(this,"space",i),typeof n=="number")for(;++a<o0.length;){const o=o0[a];EE(this,o0[a],(n&rb[o])===rb[o])}}}ck.prototype.defined=!0;function EE(e,t,r){r&&(e[t]=r)}function Ec(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new ck(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[eb(n)]=n,r[eb(a.attribute)]=n}return new sh(t,r,e.space)}const dD=Ec({properties:{ariaActiveDescendant:null,ariaAtomic:It,ariaAutoComplete:null,ariaBusy:It,ariaChecked:It,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:et,ariaCurrent:null,ariaDescribedBy:et,ariaDetails:null,ariaDisabled:It,ariaDropEffect:et,ariaErrorMessage:null,ariaExpanded:It,ariaFlowTo:et,ariaGrabbed:It,ariaHasPopup:null,ariaHidden:It,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:et,ariaLevel:Z,ariaLive:null,ariaModal:It,ariaMultiLine:It,ariaMultiSelectable:It,ariaOrientation:null,ariaOwns:et,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:It,ariaReadOnly:It,ariaRelevant:null,ariaRequired:It,ariaRoleDescription:et,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:It,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function pD(e,t){return t in e?e[t]:t}function gD(e,t){return pD(e,t.toLowerCase())}const yq=Ec({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ds,acceptCharset:et,accessKey:et,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:et,autoFocus:Pe,autoPlay:Pe,blocking:et,capture:null,charSet:null,checked:Pe,cite:null,className:et,cols:Z,colSpan:null,content:null,contentEditable:It,controls:Pe,controlsList:et,coords:Z|Ds,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:tb,draggable:It,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:et,height:Z,hidden:tb,high:Z,href:null,hrefLang:null,htmlFor:et,httpEquiv:et,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:et,itemRef:et,itemScope:Pe,itemType:et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pe,optimum:Z,pattern:null,ping:et,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:et,required:Pe,reversed:Pe,rows:Z,rowSpan:Z,sandbox:et,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:It,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:It,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:et,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:It,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Pe,disableRemotePlayback:Pe,prefix:null,property:null,results:Z,security:null,unselectable:null},space:"html",transform:gD}),vq=Ec({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:hn,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:et,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ds,g2:Ds,glyphName:Ds,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hn,rev:hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hn,requiredFeatures:hn,requiredFonts:hn,requiredFormats:hn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:hn,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pD}),mD=Ec({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),yD=Ec({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gD}),vD=Ec({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),xq={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},bq=/[A-Z]/g,TE=/-[a-z]/g,wq=/^data[-\w.:]+$/i;function kq(e,t){const r=eb(t);let n=t,i=sn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&wq.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(TE,Cq);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!TE.test(a)){let o=a.replace(bq,Sq);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=ck}return new i(n,t)}function Sq(e){return"-"+e.toLowerCase()}function Cq(e){return e.charAt(1).toUpperCase()}const _q=hD([dD,yq,mD,yD,vD],"html"),uk=hD([dD,vq,mD,yD,vD],"svg");function Eq(e){return e.join(" ").trim()}var fk={},PE=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Tq=/\n/g,Pq=/^\s*/,Aq=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Oq=/^:\s*/,Mq=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Lq=/^[;\s]*/,Iq=/^\s+|\s+$/g,$q=`
|
|
53
|
+
`,AE="/",OE="*",Qo="",Dq="comment",Nq="declaration";function jq(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(p){var g=p.match(Tq);g&&(r+=g.length);var y=p.lastIndexOf($q);n=~y?p.length-y:n+p.length}function a(){var p={line:r,column:n};return function(g){return g.position=new o(p),c(),g}}function o(p){this.start=p,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function l(p){var g=new Error(t.source+":"+r+":"+n+": "+p);if(g.reason=p,g.filename=t.source,g.line=r,g.column=n,g.source=e,!t.silent)throw g}function s(p){var g=p.exec(e);if(g){var y=g[0];return i(y),e=e.slice(y.length),g}}function c(){s(Pq)}function u(p){var g;for(p=p||[];g=f();)g!==!1&&p.push(g);return p}function f(){var p=a();if(!(AE!=e.charAt(0)||OE!=e.charAt(1))){for(var g=2;Qo!=e.charAt(g)&&(OE!=e.charAt(g)||AE!=e.charAt(g+1));)++g;if(g+=2,Qo===e.charAt(g-1))return l("End of comment missing");var y=e.slice(2,g-2);return n+=2,i(y),e=e.slice(g),n+=2,p({type:Dq,comment:y})}}function h(){var p=a(),g=s(Aq);if(g){if(f(),!s(Oq))return l("property missing ':'");var y=s(Mq),m=p({type:Nq,property:ME(g[0].replace(PE,Qo)),value:y?ME(y[0].replace(PE,Qo)):Qo});return s(Lq),m}}function d(){var p=[];u(p);for(var g;g=h();)g!==!1&&(p.push(g),u(p));return p}return c(),d()}function ME(e){return e?e.replace(Iq,Qo):Qo}var Rq=jq,Bq=cf&&cf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fk,"__esModule",{value:!0});fk.default=zq;const Fq=Bq(Rq);function zq(e,t){let r=null;if(!e||typeof e!="string")return r;const n=(0,Fq.default)(e),i=typeof t=="function";return n.forEach(a=>{if(a.type!=="declaration")return;const{property:o,value:l}=a;i?t(o,l,a):l&&(r=r||{},r[o]=l)}),r}var Um={};Object.defineProperty(Um,"__esModule",{value:!0});Um.camelCase=void 0;var Wq=/^--[a-zA-Z0-9_-]+$/,Hq=/-([a-z])/g,Uq=/^[^-]+$/,qq=/^-(webkit|moz|ms|o|khtml)-/,Vq=/^-(ms)-/,Yq=function(e){return!e||Uq.test(e)||Wq.test(e)},Kq=function(e,t){return t.toUpperCase()},LE=function(e,t){return"".concat(t,"-")},Gq=function(e,t){return t===void 0&&(t={}),Yq(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Vq,LE):e=e.replace(qq,LE),e.replace(Hq,Kq))};Um.camelCase=Gq;var Xq=cf&&cf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Zq=Xq(fk),Qq=Um;function nb(e,t){var r={};return!e||typeof e!="string"||(0,Zq.default)(e,function(n,i){n&&i&&(r[(0,Qq.camelCase)(n,t)]=i)}),r}nb.default=nb;var Jq=nb;const eV=Yn(Jq),xD=bD("end"),hk=bD("start");function bD(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function tV(e){const t=hk(e),r=xD(e);if(t&&r)return{start:t,end:r}}function Zu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?IE(e.position):"start"in e||"end"in e?IE(e):"line"in e||"column"in e?ib(e):""}function ib(e){return $E(e&&e.line)+":"+$E(e&&e.column)}function IE(e){return ib(e&&e.start)+"-"+ib(e&&e.end)}function $E(e){return e&&typeof e=="number"?e:1}class Pr extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const s=n.indexOf(":");s===-1?a.ruleId=n:(a.source=n.slice(0,s),a.ruleId=n.slice(s+1))}if(!a.place&&a.ancestors&&a.ancestors){const s=a.ancestors[a.ancestors.length-1];s&&(a.place=s.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=Zu(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Pr.prototype.file="";Pr.prototype.name="";Pr.prototype.reason="";Pr.prototype.message="";Pr.prototype.stack="";Pr.prototype.column=void 0;Pr.prototype.line=void 0;Pr.prototype.ancestors=void 0;Pr.prototype.cause=void 0;Pr.prototype.fatal=void 0;Pr.prototype.place=void 0;Pr.prototype.ruleId=void 0;Pr.prototype.source=void 0;const dk={}.hasOwnProperty,rV=new Map,nV=/[A-Z]/g,iV=new Set(["table","tbody","thead","tfoot","tr"]),aV=new Set(["td","th"]),wD="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function oV(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=pV(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=dV(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?uk:_q,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=kD(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function kD(e,t,r){if(t.type==="element")return lV(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return sV(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return uV(e,t,r);if(t.type==="mdxjsEsm")return cV(e,t);if(t.type==="root")return fV(e,t,r);if(t.type==="text")return hV(e,t)}function lV(e,t,r){const n=e.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=uk,e.schema=i),e.ancestors.push(t);const a=CD(e,t.tagName,!1),o=gV(e,t);let l=gk(e,t);return iV.has(t.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!gq(s):!0})),SD(e,o,a,t),pk(o,l),e.ancestors.pop(),e.schema=n,e.create(t,a,o,r)}function sV(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Pf(e,t.position)}function cV(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Pf(e,t.position)}function uV(e,t,r){const n=e.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=uk,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:CD(e,t.name,!0),o=mV(e,t),l=gk(e,t);return SD(e,o,a,t),pk(o,l),e.ancestors.pop(),e.schema=n,e.create(t,a,o,r)}function fV(e,t,r){const n={};return pk(n,gk(e,t)),e.create(t,e.Fragment,n,r)}function hV(e,t){return t.value}function SD(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function pk(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function dV(e,t,r){return n;function n(i,a,o,l){const c=Array.isArray(o.children)?r:t;return l?c(a,o,l):c(a,o)}}function pV(e,t){return r;function r(n,i,a,o){const l=Array.isArray(a.children),s=hk(n);return t(i,a,o,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function gV(e,t){const r={};let n,i;for(i in t.properties)if(i!=="children"&&dk.call(t.properties,i)){const a=yV(e,i,t.properties[i]);if(a){const[o,l]=a;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&aV.has(t.tagName)?n=l:r[o]=l}}if(n){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function mV(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];a.type;const o=a.expression;o.type;const l=o.properties[0];l.type,Object.assign(r,e.evaluater.evaluateExpression(l.argument))}else Pf(e,t.position);else{const i=n.name;let a;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const l=n.value.data.estree.body[0];l.type,a=e.evaluater.evaluateExpression(l.expression)}else Pf(e,t.position);else a=n.value===null?!0:n.value;r[i]=a}return r}function gk(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:rV;for(;++n<t.children.length;){const a=t.children[n];let o;if(e.passKeys){const s=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(s){const c=i.get(s)||0;o=s+"-"+c,i.set(s,c+1)}}const l=kD(e,a,o);l!==void 0&&r.push(l)}return r}function yV(e,t,r){const n=kq(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?uq(r):Eq(r)),n.property==="style"){let i=typeof r=="object"?r:vV(e,String(r));return e.stylePropertyNameCase==="css"&&(i=xV(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&n.space?xq[n.property]||n.property:n.attribute,r]}}function vV(e,t){try{return eV(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,i=new Pr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=wD+"#cannot-parse-style-attribute",i}}function CD(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,o;for(;++a<i.length;){const l=CE(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(a&&l.type==="Literal"),optional:!1}:l}n=o}else n=CE(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const i=n.value;return dk.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(n);Pf(e)}function Pf(e,t){const r=new Pr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=wD+"#cannot-handle-mdx-estrees-without-createevaluater",r}function xV(e){const t={};let r;for(r in e)dk.call(e,r)&&(t[bV(r)]=e[r]);return t}function bV(e){let t=e.replace(nV,wV);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function wV(e){return"-"+e.toLowerCase()}const l0={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},kV={};function SV(e,t){const r=kV,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return _D(e,n,i)}function _D(e,t,r){if(CV(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return DE(e.children,t,r)}return Array.isArray(e)?DE(e,t,r):""}function DE(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=_D(e[i],t,r);return n.join("")}function CV(e){return!!(e&&typeof e=="object")}const NE=document.createElement("i");function mk(e){const t="&"+e+";";NE.innerHTML=t;const r=NE.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function qi(e,t,r,n){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Dn(e,t){return e.length>0?(qi(e,e.length,0,t),e):t}const jE={}.hasOwnProperty;function _V(e){const t={};let r=-1;for(;++r<e.length;)EV(t,e[r]);return t}function EV(e,t){let r;for(r in t){const i=(jE.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let o;if(a)for(o in a){jE.call(i,o)||(i[o]=[]);const l=a[o];TV(i[o],Array.isArray(l)?l:l?[l]:[])}}}function TV(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);qi(e,0,0,n)}function ED(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Ns(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ji=Oo(/[A-Za-z]/),yn=Oo(/[\dA-Za-z]/),PV=Oo(/[#-'*+\--9=?A-Z^-~]/);function ab(e){return e!==null&&(e<32||e===127)}const ob=Oo(/\d/),AV=Oo(/[\dA-Fa-f]/),OV=Oo(/[!-/:-@[-`{-~]/);function Ee(e){return e!==null&&e<-2}function ln(e){return e!==null&&(e<0||e===32)}function ze(e){return e===-2||e===-1||e===32}const MV=Oo(new RegExp("\\p{P}|\\p{S}","u")),LV=Oo(/\s/);function Oo(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Tc(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(a===37&&yn(e.charCodeAt(r+1))&&yn(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const l=e.charCodeAt(r+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function nt(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(s){return ze(s)?(e.enter(r),l(s)):t(s)}function l(s){return ze(s)&&a++<i?(e.consume(s),l):(e.exit(r),t(s))}}const IV={tokenize:$V};function $V(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),nt(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),a(l)}function a(l){const s=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=s),r=s,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return Ee(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),o)}}const DV={tokenize:NV},RE={tokenize:jV};function NV(e){const t=this,r=[];let n=0,i,a,o;return l;function l(b){if(n<r.length){const S=r[n];return t.containerState=S[1],e.attempt(S[0].continuation,s,c)(b)}return c(b)}function s(b){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();const S=t.events.length;let C=S,w;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){w=t.events[C][1].end;break}m(n);let _=S;for(;_<t.events.length;)t.events[_][1].end={...w},_++;return qi(t.events,C+1,0,t.events.slice(S)),t.events.length=_,c(b)}return l(b)}function c(b){if(n===r.length){if(!i)return h(b);if(i.currentConstruct&&i.currentConstruct.concrete)return p(b);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(RE,u,f)(b)}function u(b){return i&&v(),m(n),h(b)}function f(b){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,p(b)}function h(b){return t.containerState={},e.attempt(RE,d,p)(b)}function d(b){return n++,r.push([t.currentConstruct,t.containerState]),h(b)}function p(b){if(b===null){i&&v(),m(0),e.consume(b);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),g(b)}function g(b){if(b===null){y(e.exit("chunkFlow"),!0),m(0),e.consume(b);return}return Ee(b)?(e.consume(b),y(e.exit("chunkFlow")),n=0,t.interrupt=void 0,l):(e.consume(b),g)}function y(b,S){const C=t.sliceStream(b);if(S&&C.push(null),b.previous=a,a&&(a.next=b),a=b,i.defineSkip(b.start),i.write(C),t.parser.lazy[b.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<o&&(!i.events[w][1].end||i.events[w][1].end.offset>o))return;const _=t.events.length;let P=_,I,$;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(I){$=t.events[P][1].end;break}I=!0}for(m(n),w=_;w<t.events.length;)t.events[w][1].end={...$},w++;qi(t.events,P+1,0,t.events.slice(_)),t.events.length=w}}function m(b){let S=r.length;for(;S-- >b;){const C=r[S];t.containerState=C[1],C[0].exit.call(t,e)}r.length=b}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function jV(e,t,r){return nt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function BE(e){if(e===null||ln(e)||LV(e))return 1;if(MV(e))return 2}function yk(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const lb={name:"attention",resolveAll:RV,tokenize:BV};function RV(e,t){let r=-1,n,i,a,o,l,s,c,u;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f={...e[n][1].end},h={...e[r][1].start};FE(f,-s),FE(h,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},l={type:s>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:h},a={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[n][1].end={...o.start},e[r][1].start={...l.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=Dn(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=Dn(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=Dn(c,yk(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),c=Dn(c,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(u=2,c=Dn(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):u=0,qi(e,n-1,r-n+3,c),r=n+c.length-u-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function BV(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=BE(n);let a;return o;function o(s){return a=s,e.enter("attentionSequence"),l(s)}function l(s){if(s===a)return e.consume(s),l;const c=e.exit("attentionSequence"),u=BE(s),f=!u||u===2&&i||r.includes(s),h=!i||i===2&&u||r.includes(n);return c._open=!!(a===42?f:f&&(i||!h)),c._close=!!(a===42?h:h&&(u||!f)),t(s)}}function FE(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const FV={name:"autolink",tokenize:zV};function zV(e,t,r){let n=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(d){return ji(d)?(e.consume(d),o):d===64?r(d):c(d)}function o(d){return d===43||d===45||d===46||yn(d)?(n=1,l(d)):c(d)}function l(d){return d===58?(e.consume(d),n=0,s):(d===43||d===45||d===46||yn(d))&&n++<32?(e.consume(d),l):(n=0,c(d))}function s(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||ab(d)?r(d):(e.consume(d),s)}function c(d){return d===64?(e.consume(d),u):PV(d)?(e.consume(d),c):r(d)}function u(d){return yn(d)?f(d):r(d)}function f(d){return d===46?(e.consume(d),n=0,u):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):h(d)}function h(d){if((d===45||yn(d))&&n++<63){const p=d===45?h:f;return e.consume(d),p}return r(d)}}const qm={partial:!0,tokenize:WV};function WV(e,t,r){return n;function n(a){return ze(a)?nt(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Ee(a)?t(a):r(a)}}const TD={continuation:{tokenize:UV},exit:qV,name:"blockQuote",tokenize:HV};function HV(e,t,r){const n=this;return i;function i(o){if(o===62){const l=n.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return r(o)}function a(o){return ze(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function UV(e,t,r){const n=this;return i;function i(o){return ze(o)?nt(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(TD,t,r)(o)}}function qV(e){e.exit("blockQuote")}const PD={name:"characterEscape",tokenize:VV};function VV(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return OV(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const AD={name:"characterReference",tokenize:YV};function YV(e,t,r){const n=this;let i=0,a,o;return l;function l(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=yn,u(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=AV,u):(e.enter("characterReferenceValue"),a=7,o=ob,u(f))}function u(f){if(f===59&&i){const h=e.exit("characterReferenceValue");return o===yn&&!mk(n.sliceSerialize(h))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<a?(e.consume(f),u):r(f)}}const zE={partial:!0,tokenize:GV},WE={concrete:!0,name:"codeFenced",tokenize:KV};function KV(e,t,r){const n=this,i={partial:!0,tokenize:C};let a=0,o=0,l;return s;function s(w){return c(w)}function c(w){const _=n.events[n.events.length-1];return a=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,l=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(w)}function u(w){return w===l?(o++,e.consume(w),u):o<3?r(w):(e.exit("codeFencedFenceSequence"),ze(w)?nt(e,f,"whitespace")(w):f(w))}function f(w){return w===null||Ee(w)?(e.exit("codeFencedFence"),n.interrupt?t(w):e.check(zE,g,S)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||Ee(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(w)):ze(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),nt(e,d,"whitespace")(w)):w===96&&w===l?r(w):(e.consume(w),h)}function d(w){return w===null||Ee(w)?f(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||Ee(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(w)):w===96&&w===l?r(w):(e.consume(w),p)}function g(w){return e.attempt(i,S,y)(w)}function y(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m}function m(w){return a>0&&ze(w)?nt(e,v,"linePrefix",a+1)(w):v(w)}function v(w){return w===null||Ee(w)?e.check(zE,g,S)(w):(e.enter("codeFlowValue"),b(w))}function b(w){return w===null||Ee(w)?(e.exit("codeFlowValue"),v(w)):(e.consume(w),b)}function S(w){return e.exit("codeFenced"),t(w)}function C(w,_,P){let I=0;return $;function $(D){return w.enter("lineEnding"),w.consume(D),w.exit("lineEnding"),A}function A(D){return w.enter("codeFencedFence"),ze(D)?nt(w,M,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):M(D)}function M(D){return D===l?(w.enter("codeFencedFenceSequence"),F(D)):P(D)}function F(D){return D===l?(I++,w.consume(D),F):I>=o?(w.exit("codeFencedFenceSequence"),ze(D)?nt(w,N,"whitespace")(D):N(D)):P(D)}function N(D){return D===null||Ee(D)?(w.exit("codeFencedFence"),_(D)):P(D)}}}function GV(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const s0={name:"codeIndented",tokenize:ZV},XV={partial:!0,tokenize:QV};function ZV(e,t,r){const n=this;return i;function i(c){return e.enter("codeIndented"),nt(e,a,"linePrefix",5)(c)}function a(c){const u=n.events[n.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):r(c)}function o(c){return c===null?s(c):Ee(c)?e.attempt(XV,o,s)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||Ee(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),l)}function s(c){return e.exit("codeIndented"),t(c)}}function QV(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):nt(e,a,"linePrefix",5)(o)}function a(o){const l=n.events[n.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):Ee(o)?i(o):r(o)}}const JV={name:"codeText",previous:tY,resolve:eY,tokenize:rY};function eY(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function tY(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function rY(e,t,r){let n=0,i,a;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),l(f)}function l(f){return f===96?(e.consume(f),n++,l):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(a=e.enter("codeTextSequence"),i=0,u(f)):Ee(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||Ee(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),c)}function u(f){return f===96?(e.consume(f),i++,u):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",c(f))}}class nY{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&nu(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),nu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),nu(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);nu(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);nu(this.left,r.reverse())}}}function nu(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function OD(e){const t={};let r=-1,n,i,a,o,l,s,c;const u=new nY(e);for(;++r<u.length;){for(;r in t;)r=t[r];if(n=u.get(r),r&&n[1].type==="chunkFlow"&&u.get(r-1)[1].type==="listItemPrefix"&&(s=n[1]._tokenizer.events,a=0,a<s.length&&s[a][1].type==="lineEndingBlank"&&(a+=2),a<s.length&&s[a][1].type==="content"))for(;++a<s.length&&s[a][1].type!=="content";)s[a][1].type==="chunkText"&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,iY(u,r)),r=t[r],c=!0);else if(n[1]._container){for(a=r,i=void 0;a--;)if(o=u.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(n[1].end={...u.get(i)[1].start},l=u.slice(i,r),l.unshift(n),u.splice(i,r-i+1,l))}}return qi(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function iY(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const a=[];let o=r._tokenizer;o||(o=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,s=[],c={};let u,f,h=-1,d=r,p=0,g=0;const y=[g];for(;d;){for(;e.get(++i)[1]!==d;);a.push(i),d._tokenizer||(u=n.sliceStream(d),d.next||u.push(null),f&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=r;++h<l.length;)l[h][0]==="exit"&&l[h-1][0]==="enter"&&l[h][1].type===l[h-1][1].type&&l[h][1].start.line!==l[h][1].end.line&&(g=h+1,y.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),h=y.length;h--;){const m=l.slice(y[h],y[h+1]),v=a.pop();s.push([v,v+m.length-1]),e.splice(v,2,m)}for(s.reverse(),h=-1;++h<s.length;)c[p+s[h][0]]=p+s[h][1],p+=s[h][1]-s[h][0]-1;return c}const aY={resolve:lY,tokenize:sY},oY={partial:!0,tokenize:cY};function lY(e){return OD(e),e}function sY(e,t){let r;return n;function n(l){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?a(l):Ee(l)?e.check(oY,o,a)(l):(e.consume(l),i)}function a(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function o(l){return e.consume(l),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function cY(e,t,r){const n=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),nt(e,a,"linePrefix")}function a(o){if(o===null||Ee(o))return r(o);const l=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function MD(e,t,r,n,i,a,o,l,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return f;function f(m){return m===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(m),e.exit(a),h):m===null||m===32||m===41||ab(m)?r(m):(e.enter(n),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(m))}function h(m){return m===62?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===62?(e.exit("chunkString"),e.exit(l),h(m)):m===null||m===60||Ee(m)?r(m):(e.consume(m),m===92?p:d)}function p(m){return m===60||m===62||m===92?(e.consume(m),d):d(m)}function g(m){return!u&&(m===null||m===41||ln(m))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(n),t(m)):u<c&&m===40?(e.consume(m),u++,g):m===41?(e.consume(m),u--,g):m===null||m===32||m===40||ab(m)?r(m):(e.consume(m),m===92?y:g)}function y(m){return m===40||m===41||m===92?(e.consume(m),g):g(m)}}function LD(e,t,r,n,i,a){const o=this;let l=0,s;return c;function c(d){return e.enter(n),e.enter(i),e.consume(d),e.exit(i),e.enter(a),u}function u(d){return l>999||d===null||d===91||d===93&&!s||d===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):d===93?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):Ee(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||Ee(d)||l++>999?(e.exit("chunkString"),u(d)):(e.consume(d),s||(s=!ze(d)),d===92?h:f)}function h(d){return d===91||d===92||d===93?(e.consume(d),l++,f):f(d)}}function ID(e,t,r,n,i,a){let o;return l;function l(h){return h===34||h===39||h===40?(e.enter(n),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,s):r(h)}function s(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):(e.enter(a),c(h))}function c(h){return h===o?(e.exit(a),s(o)):h===null?r(h):Ee(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),nt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(h){return h===o||h===null||Ee(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?f:u)}function f(h){return h===o||h===92?(e.consume(h),u):u(h)}}function Qu(e,t){let r;return n;function n(i){return Ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):ze(i)?nt(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const uY={name:"definition",tokenize:hY},fY={partial:!0,tokenize:dY};function hY(e,t,r){const n=this;let i;return a;function a(d){return e.enter("definition"),o(d)}function o(d){return LD.call(n,e,l,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function l(d){return i=Ns(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),s):r(d)}function s(d){return ln(d)?Qu(e,c)(d):c(d)}function c(d){return MD(e,u,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function u(d){return e.attempt(fY,f,f)(d)}function f(d){return ze(d)?nt(e,h,"whitespace")(d):h(d)}function h(d){return d===null||Ee(d)?(e.exit("definition"),n.parser.defined.push(i),t(d)):r(d)}}function dY(e,t,r){return n;function n(l){return ln(l)?Qu(e,i)(l):r(l)}function i(l){return ID(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return ze(l)?nt(e,o,"whitespace")(l):o(l)}function o(l){return l===null||Ee(l)?t(l):r(l)}}const pY={name:"hardBreakEscape",tokenize:gY};function gY(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ee(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const mY={name:"headingAtx",resolve:yY,tokenize:vY};function yY(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},qi(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function vY(e,t,r){let n=0;return i;function i(u){return e.enter("atxHeading"),a(u)}function a(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&n++<6?(e.consume(u),o):u===null||ln(u)?(e.exit("atxHeadingSequence"),l(u)):r(u)}function l(u){return u===35?(e.enter("atxHeadingSequence"),s(u)):u===null||Ee(u)?(e.exit("atxHeading"),t(u)):ze(u)?nt(e,l,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function s(u){return u===35?(e.consume(u),s):(e.exit("atxHeadingSequence"),l(u))}function c(u){return u===null||u===35||ln(u)?(e.exit("atxHeadingText"),l(u)):(e.consume(u),c)}}const xY=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],HE=["pre","script","style","textarea"],bY={concrete:!0,name:"htmlFlow",resolveTo:SY,tokenize:CY},wY={partial:!0,tokenize:EY},kY={partial:!0,tokenize:_Y};function SY(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function CY(e,t,r){const n=this;let i,a,o,l,s;return c;function c(O){return u(O)}function u(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),f}function f(O){return O===33?(e.consume(O),h):O===47?(e.consume(O),a=!0,g):O===63?(e.consume(O),i=3,n.interrupt?t:T):ji(O)?(e.consume(O),o=String.fromCharCode(O),y):r(O)}function h(O){return O===45?(e.consume(O),i=2,d):O===91?(e.consume(O),i=5,l=0,p):ji(O)?(e.consume(O),i=4,n.interrupt?t:T):r(O)}function d(O){return O===45?(e.consume(O),n.interrupt?t:T):r(O)}function p(O){const ue="CDATA[";return O===ue.charCodeAt(l++)?(e.consume(O),l===ue.length?n.interrupt?t:M:p):r(O)}function g(O){return ji(O)?(e.consume(O),o=String.fromCharCode(O),y):r(O)}function y(O){if(O===null||O===47||O===62||ln(O)){const ue=O===47,ye=o.toLowerCase();return!ue&&!a&&HE.includes(ye)?(i=1,n.interrupt?t(O):M(O)):xY.includes(o.toLowerCase())?(i=6,ue?(e.consume(O),m):n.interrupt?t(O):M(O)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(O):a?v(O):b(O))}return O===45||yn(O)?(e.consume(O),o+=String.fromCharCode(O),y):r(O)}function m(O){return O===62?(e.consume(O),n.interrupt?t:M):r(O)}function v(O){return ze(O)?(e.consume(O),v):$(O)}function b(O){return O===47?(e.consume(O),$):O===58||O===95||ji(O)?(e.consume(O),S):ze(O)?(e.consume(O),b):$(O)}function S(O){return O===45||O===46||O===58||O===95||yn(O)?(e.consume(O),S):C(O)}function C(O){return O===61?(e.consume(O),w):ze(O)?(e.consume(O),C):b(O)}function w(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(e.consume(O),s=O,_):ze(O)?(e.consume(O),w):P(O)}function _(O){return O===s?(e.consume(O),s=null,I):O===null||Ee(O)?r(O):(e.consume(O),_)}function P(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||ln(O)?C(O):(e.consume(O),P)}function I(O){return O===47||O===62||ze(O)?b(O):r(O)}function $(O){return O===62?(e.consume(O),A):r(O)}function A(O){return O===null||Ee(O)?M(O):ze(O)?(e.consume(O),A):r(O)}function M(O){return O===45&&i===2?(e.consume(O),j):O===60&&i===1?(e.consume(O),B):O===62&&i===4?(e.consume(O),V):O===63&&i===3?(e.consume(O),T):O===93&&i===5?(e.consume(O),W):Ee(O)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(wY,J,F)(O)):O===null||Ee(O)?(e.exit("htmlFlowData"),F(O)):(e.consume(O),M)}function F(O){return e.check(kY,N,J)(O)}function N(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),D}function D(O){return O===null||Ee(O)?F(O):(e.enter("htmlFlowData"),M(O))}function j(O){return O===45?(e.consume(O),T):M(O)}function B(O){return O===47?(e.consume(O),o="",L):M(O)}function L(O){if(O===62){const ue=o.toLowerCase();return HE.includes(ue)?(e.consume(O),V):M(O)}return ji(O)&&o.length<8?(e.consume(O),o+=String.fromCharCode(O),L):M(O)}function W(O){return O===93?(e.consume(O),T):M(O)}function T(O){return O===62?(e.consume(O),V):O===45&&i===2?(e.consume(O),T):M(O)}function V(O){return O===null||Ee(O)?(e.exit("htmlFlowData"),J(O)):(e.consume(O),V)}function J(O){return e.exit("htmlFlow"),t(O)}}function _Y(e,t,r){const n=this;return i;function i(o){return Ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function EY(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(qm,t,r)}}const TY={name:"htmlText",tokenize:PY};function PY(e,t,r){const n=this;let i,a,o;return l;function l(T){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(T),s}function s(T){return T===33?(e.consume(T),c):T===47?(e.consume(T),C):T===63?(e.consume(T),b):ji(T)?(e.consume(T),P):r(T)}function c(T){return T===45?(e.consume(T),u):T===91?(e.consume(T),a=0,p):ji(T)?(e.consume(T),v):r(T)}function u(T){return T===45?(e.consume(T),d):r(T)}function f(T){return T===null?r(T):T===45?(e.consume(T),h):Ee(T)?(o=f,B(T)):(e.consume(T),f)}function h(T){return T===45?(e.consume(T),d):f(T)}function d(T){return T===62?j(T):T===45?h(T):f(T)}function p(T){const V="CDATA[";return T===V.charCodeAt(a++)?(e.consume(T),a===V.length?g:p):r(T)}function g(T){return T===null?r(T):T===93?(e.consume(T),y):Ee(T)?(o=g,B(T)):(e.consume(T),g)}function y(T){return T===93?(e.consume(T),m):g(T)}function m(T){return T===62?j(T):T===93?(e.consume(T),m):g(T)}function v(T){return T===null||T===62?j(T):Ee(T)?(o=v,B(T)):(e.consume(T),v)}function b(T){return T===null?r(T):T===63?(e.consume(T),S):Ee(T)?(o=b,B(T)):(e.consume(T),b)}function S(T){return T===62?j(T):b(T)}function C(T){return ji(T)?(e.consume(T),w):r(T)}function w(T){return T===45||yn(T)?(e.consume(T),w):_(T)}function _(T){return Ee(T)?(o=_,B(T)):ze(T)?(e.consume(T),_):j(T)}function P(T){return T===45||yn(T)?(e.consume(T),P):T===47||T===62||ln(T)?I(T):r(T)}function I(T){return T===47?(e.consume(T),j):T===58||T===95||ji(T)?(e.consume(T),$):Ee(T)?(o=I,B(T)):ze(T)?(e.consume(T),I):j(T)}function $(T){return T===45||T===46||T===58||T===95||yn(T)?(e.consume(T),$):A(T)}function A(T){return T===61?(e.consume(T),M):Ee(T)?(o=A,B(T)):ze(T)?(e.consume(T),A):I(T)}function M(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(e.consume(T),i=T,F):Ee(T)?(o=M,B(T)):ze(T)?(e.consume(T),M):(e.consume(T),N)}function F(T){return T===i?(e.consume(T),i=void 0,D):T===null?r(T):Ee(T)?(o=F,B(T)):(e.consume(T),F)}function N(T){return T===null||T===34||T===39||T===60||T===61||T===96?r(T):T===47||T===62||ln(T)?I(T):(e.consume(T),N)}function D(T){return T===47||T===62||ln(T)?I(T):r(T)}function j(T){return T===62?(e.consume(T),e.exit("htmlTextData"),e.exit("htmlText"),t):r(T)}function B(T){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),L}function L(T){return ze(T)?nt(e,W,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):W(T)}function W(T){return e.enter("htmlTextData"),o(T)}}const vk={name:"labelEnd",resolveAll:LY,resolveTo:IY,tokenize:$Y},AY={tokenize:DY},OY={tokenize:NY},MY={tokenize:jY};function LY(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&qi(e,0,e.length,r),e}function IY(e,t){let r=e.length,n=0,i,a,o,l;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(o=r);const s={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[a+n+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",s,t],["enter",c,t]],l=Dn(l,e.slice(a+1,a+n+3)),l=Dn(l,[["enter",u,t]]),l=Dn(l,yk(t.parser.constructs.insideSpan.null,e.slice(a+n+4,o-3),t)),l=Dn(l,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),l=Dn(l,e.slice(o+1)),l=Dn(l,[["exit",s,t]]),qi(e,a,e.length,l),e}function $Y(e,t,r){const n=this;let i=n.events.length,a,o;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return l;function l(h){return a?a._inactive?f(h):(o=n.parser.defined.includes(Ns(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),s):r(h)}function s(h){return h===40?e.attempt(AY,u,o?u:f)(h):h===91?e.attempt(OY,u,o?c:f)(h):o?u(h):f(h)}function c(h){return e.attempt(MY,u,f)(h)}function u(h){return t(h)}function f(h){return a._balanced=!0,r(h)}}function DY(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return ln(f)?Qu(e,a)(f):a(f)}function a(f){return f===41?u(f):MD(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return ln(f)?Qu(e,s)(f):u(f)}function l(f){return r(f)}function s(f){return f===34||f===39||f===40?ID(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function c(f){return ln(f)?Qu(e,u)(f):u(f)}function u(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function NY(e,t,r){const n=this;return i;function i(l){return LD.call(n,e,a,o,"reference","referenceMarker","referenceString")(l)}function a(l){return n.parser.defined.includes(Ns(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(l):r(l)}function o(l){return r(l)}}function jY(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const RY={name:"labelStartImage",resolveAll:vk.resolveAll,tokenize:BY};function BY(e,t,r){const n=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):r(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(l):t(l)}}const FY={name:"labelStartLink",resolveAll:vk.resolveAll,tokenize:zY};function zY(e,t,r){const n=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const c0={name:"lineEnding",tokenize:WY};function WY(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),nt(e,t,"linePrefix")}}const ip={name:"thematicBreak",tokenize:HY};function HY(e,t,r){let n=0,i;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,l(c)}function l(c){return c===i?(e.enter("thematicBreakSequence"),s(c)):n>=3&&(c===null||Ee(c))?(e.exit("thematicBreak"),t(c)):r(c)}function s(c){return c===i?(e.consume(c),n++,s):(e.exit("thematicBreakSequence"),ze(c)?nt(e,l,"whitespace")(c):l(c))}}const Xr={continuation:{tokenize:YY},exit:GY,name:"list",tokenize:VY},UY={partial:!0,tokenize:XY},qY={partial:!0,tokenize:KY};function VY(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(d){const p=n.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||d===n.containerState.marker:ob(d)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(ip,r,c)(d):c(d);if(!n.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(d)}return r(d)}function s(d){return ob(d)&&++o<10?(e.consume(d),s):(!n.interrupt||o<2)&&(n.containerState.marker?d===n.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),c(d)):r(d)}function c(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||d,e.check(qm,n.interrupt?r:u,e.attempt(UY,h,f))}function u(d){return n.containerState.initialBlankLine=!0,a++,h(d)}function f(d){return ze(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),h):r(d)}function h(d){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function YY(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(qm,i,a);function i(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,nt(e,t,"listItemIndent",n.containerState.size+1)(l)}function a(l){return n.containerState.furtherBlankLines||!ze(l)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(l)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(qY,t,o)(l))}function o(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,nt(e,e.attempt(Xr,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function KY(e,t,r){const n=this;return nt(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function GY(e){e.exit(this.containerState.type)}function XY(e,t,r){const n=this;return nt(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=n.events[n.events.length-1];return!ze(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const UE={name:"setextUnderline",resolveTo:ZY,tokenize:QY};function ZY(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=o,e.push(["exit",o,t]),e}function QY(e,t,r){const n=this;let i;return a;function a(c){let u=n.events.length,f;for(;u--;)if(n.events[u][1].type!=="lineEnding"&&n.events[u][1].type!=="linePrefix"&&n.events[u][1].type!=="content"){f=n.events[u][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):r(c)}function o(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===i?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),ze(c)?nt(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||Ee(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}const JY={tokenize:eK};function eK(e){const t=this,r=e.attempt(qm,n,e.attempt(this.parser.constructs.flowInitial,i,nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(aY,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const tK={resolveAll:DD()},rK=$D("string"),nK=$D("text");function $D(e){return{resolveAll:DD(e==="text"?iK:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,l);return o;function o(u){return c(u)?a(u):l(u)}function l(u){if(u===null){r.consume(u);return}return r.enter("data"),r.consume(u),s}function s(u){return c(u)?(r.exit("data"),a(u)):(r.consume(u),s)}function c(u){if(u===null)return!0;const f=i[u];let h=-1;if(f)for(;++h<f.length;){const d=f[h];if(!d.previous||d.previous.call(n,n.previous))return!0}return!1}}}function DD(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function iK(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,o=-1,l=0,s;for(;a--;){const c=i[a];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(c===-2)s=!0,l++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(l=0),l){const c={type:r===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:n.start._bufferIndex+o,_index:n.start._index+a,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}const aK={42:Xr,43:Xr,45:Xr,48:Xr,49:Xr,50:Xr,51:Xr,52:Xr,53:Xr,54:Xr,55:Xr,56:Xr,57:Xr,62:TD},oK={91:uY},lK={[-2]:s0,[-1]:s0,32:s0},sK={35:mY,42:ip,45:[UE,ip],60:bY,61:UE,95:ip,96:WE,126:WE},cK={38:AD,92:PD},uK={[-5]:c0,[-4]:c0,[-3]:c0,33:RY,38:AD,42:lb,60:[FV,TY],91:FY,92:[pY,PD],93:vk,95:lb,96:JV},fK={null:[lb,tK]},hK={null:[42,95]},dK={null:[]},pK=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:hK,contentInitial:oK,disable:dK,document:aK,flow:sK,flowInitial:lK,insideSpan:fK,string:cK,text:uK},Symbol.toStringTag,{value:"Module"}));function gK(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let o=[],l=[];const s={attempt:_(C),check:_(w),consume:v,enter:b,exit:S,interrupt:_(w,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:p,parser:e,previous:null,sliceSerialize:h,sliceStream:d,write:f};let u=t.tokenize.call(c,s);return t.resolveAll&&a.push(t),c;function f(A){return o=Dn(o,A),y(),o[o.length-1]!==null?[]:(P(t,0),c.events=yk(a,c.events,c),c.events)}function h(A,M){return yK(d(A),M)}function d(A){return mK(o,A)}function p(){const{_bufferIndex:A,_index:M,line:F,column:N,offset:D}=n;return{_bufferIndex:A,_index:M,line:F,column:N,offset:D}}function g(A){i[A.line]=A.column,$()}function y(){let A;for(;n._index<o.length;){const M=o[n._index];if(typeof M=="string")for(A=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===A&&n._bufferIndex<M.length;)m(M.charCodeAt(n._bufferIndex));else m(M)}}function m(A){u=u(A)}function v(A){Ee(A)?(n.line++,n.column=1,n.offset+=A===-3?2:1,$()):A!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=A}function b(A,M){const F=M||{};return F.type=A,F.start=p(),c.events.push(["enter",F,c]),l.push(F),F}function S(A){const M=l.pop();return M.end=p(),c.events.push(["exit",M,c]),M}function C(A,M){P(A,M.from)}function w(A,M){M.restore()}function _(A,M){return F;function F(N,D,j){let B,L,W,T;return Array.isArray(N)?J(N):"tokenize"in N?J([N]):V(N);function V(te){return de;function de(Te){const U=Te!==null&&te[Te],ne=Te!==null&&te.null,me=[...Array.isArray(U)?U:U?[U]:[],...Array.isArray(ne)?ne:ne?[ne]:[]];return J(me)(Te)}}function J(te){return B=te,L=0,te.length===0?j:O(te[L])}function O(te){return de;function de(Te){return T=I(),W=te,te.partial||(c.currentConstruct=te),te.name&&c.parser.constructs.disable.null.includes(te.name)?ye():te.tokenize.call(M?Object.assign(Object.create(c),M):c,s,ue,ye)(Te)}}function ue(te){return A(W,T),D}function ye(te){return T.restore(),++L<B.length?O(B[L]):j}}}function P(A,M){A.resolveAll&&!a.includes(A)&&a.push(A),A.resolve&&qi(c.events,M,c.events.length-M,A.resolve(c.events.slice(M),c)),A.resolveTo&&(c.events=A.resolveTo(c.events,c))}function I(){const A=p(),M=c.previous,F=c.currentConstruct,N=c.events.length,D=Array.from(l);return{from:N,restore:j};function j(){n=A,c.previous=M,c.currentConstruct=F,c.events.length=N,l=D,$()}}function $(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function mK(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(n,a)];else{if(o=e.slice(r,i),n>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function yK(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
|
54
|
+
`;break}case-3:{o=`\r
|
|
55
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,n.push(o)}return n.join("")}function vK(e){const n={constructs:_V([pK,...(e||{}).extensions||[]]),content:i(IV),defined:[],document:i(DV),flow:i(JY),lazy:{},string:i(rK),text:i(nK)};return n;function i(a){return o;function o(l){return gK(n,a,l)}}}function xK(e){for(;!OD(e););return e}const qE=/[\0\t\n\r]/g;function bK(){let e=1,t="",r=!0,n;return i;function i(a,o,l){const s=[];let c,u,f,h,d;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),f=0,t="",r&&(a.charCodeAt(0)===65279&&f++,r=void 0);f<a.length;){if(qE.lastIndex=f,c=qE.exec(a),h=c&&c.index!==void 0?c.index:a.length,d=a.charCodeAt(h),!c){t=a.slice(f);break}if(d===10&&f===h&&n)s.push(-3),n=void 0;else switch(n&&(s.push(-5),n=void 0),f<h&&(s.push(a.slice(f,h)),e+=h-f),d){case 0:{s.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,s.push(-2);e++<u;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:n=!0,e=1}f=h+1}return l&&(n&&s.push(-5),t&&s.push(t),s.push(null)),s}}const wK=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function kK(e){return e.replace(wK,SK)}function SK(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return ED(r.slice(a?2:1),a?16:10)}return mk(r)||e}const ND={}.hasOwnProperty;function CK(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),_K(r)(xK(vK(r).document().write(bK()(e,t,!0))))}function _K(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Ro),autolinkProtocol:I,autolinkEmail:I,atxHeading:a(st),blockQuote:a(ne),characterEscape:I,characterReference:I,codeFenced:a(me),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(me,o),codeText:a(K,o),codeTextData:I,data:I,codeFlowValue:I,definition:a(Ye),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Le),hardBreakEscape:a(Ot),hardBreakTrailing:a(Ot),htmlFlow:a(Vr,o),htmlFlowData:I,htmlText:a(Vr,o),htmlTextData:I,image:a(Zn),label:o,link:a(Ro),listItem:a(qh),listItemValue:h,listOrdered:a(Bo,f),listUnordered:a(Bo),paragraph:a(Vh),reference:O,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(st),strong:a(Tv),thematicBreak:a(Fo)},exit:{atxHeading:s(),atxHeadingSequence:C,autolink:s(),autolinkEmail:U,autolinkProtocol:Te,blockQuote:s(),characterEscapeValue:$,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:te,characterReference:de,codeFenced:s(y),codeFencedFence:g,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:$,codeIndented:s(m),codeText:s(D),codeTextData:$,data:$,definition:s(),definitionDestinationString:S,definitionLabelString:v,definitionTitleString:b,emphasis:s(),hardBreakEscape:s(M),hardBreakTrailing:s(M),htmlFlow:s(F),htmlFlowData:$,htmlText:s(N),htmlTextData:$,image:s(B),label:W,labelText:L,lineEnding:A,link:s(j),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ue,resourceDestinationString:T,resourceTitleString:V,resource:J,setextHeading:s(P),setextHeadingLineSequence:_,setextHeadingText:w,strong:s(),thematicBreak:s()}};jD(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(q){let Q={type:"root",children:[]};const Ce={stack:[Q],tokenStack:[],config:t,enter:l,exit:c,buffer:o,resume:u,data:r},Oe=[];let We=-1;for(;++We<q.length;)if(q[We][1].type==="listOrdered"||q[We][1].type==="listUnordered")if(q[We][0]==="enter")Oe.push(We);else{const Or=Oe.pop();We=i(q,Or,We)}for(We=-1;++We<q.length;){const Or=t[q[We][0]];ND.call(Or,q[We][1].type)&&Or[q[We][1].type].call(Object.assign({sliceSerialize:q[We][2].sliceSerialize},Ce),q[We][1])}if(Ce.tokenStack.length>0){const Or=Ce.tokenStack[Ce.tokenStack.length-1];(Or[1]||VE).call(Ce,void 0,Or[0])}for(Q.position={start:Ua(q.length>0?q[0][1].start:{line:1,column:1,offset:0}),end:Ua(q.length>0?q[q.length-2][1].end:{line:1,column:1,offset:0})},We=-1;++We<t.transforms.length;)Q=t.transforms[We](Q)||Q;return Q}function i(q,Q,Ce){let Oe=Q-1,We=-1,Or=!1,bi,Yr,wi,Mr;for(;++Oe<=Ce;){const Mt=q[Oe];switch(Mt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Mt[0]==="enter"?We++:We--,Mr=void 0;break}case"lineEndingBlank":{Mt[0]==="enter"&&(bi&&!Mr&&!We&&!wi&&(wi=Oe),Mr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Mr=void 0}if(!We&&Mt[0]==="enter"&&Mt[1].type==="listItemPrefix"||We===-1&&Mt[0]==="exit"&&(Mt[1].type==="listUnordered"||Mt[1].type==="listOrdered")){if(bi){let ki=Oe;for(Yr=void 0;ki--;){const un=q[ki];if(un[1].type==="lineEnding"||un[1].type==="lineEndingBlank"){if(un[0]==="exit")continue;Yr&&(q[Yr][1].type="lineEndingBlank",Or=!0),un[1].type="lineEnding",Yr=ki}else if(!(un[1].type==="linePrefix"||un[1].type==="blockQuotePrefix"||un[1].type==="blockQuotePrefixWhitespace"||un[1].type==="blockQuoteMarker"||un[1].type==="listItemIndent"))break}wi&&(!Yr||wi<Yr)&&(bi._spread=!0),bi.end=Object.assign({},Yr?q[Yr][1].start:Mt[1].end),q.splice(Yr||Oe,0,["exit",bi,Mt[2]]),Oe++,Ce++}if(Mt[1].type==="listItemPrefix"){const ki={type:"listItem",_spread:!1,start:Object.assign({},Mt[1].start),end:void 0};bi=ki,q.splice(Oe,0,["enter",ki,Mt[2]]),Oe++,Ce++,wi=void 0,Mr=!0}}}return q[Q][1]._spread=Or,Ce}function a(q,Q){return Ce;function Ce(Oe){l.call(this,q(Oe),Oe),Q&&Q.call(this,Oe)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(q,Q,Ce){this.stack[this.stack.length-1].children.push(q),this.stack.push(q),this.tokenStack.push([Q,Ce||void 0]),q.position={start:Ua(Q.start),end:void 0}}function s(q){return Q;function Q(Ce){q&&q.call(this,Ce),c.call(this,Ce)}}function c(q,Q){const Ce=this.stack.pop(),Oe=this.tokenStack.pop();if(Oe)Oe[0].type!==q.type&&(Q?Q.call(this,q,Oe[0]):(Oe[1]||VE).call(this,q,Oe[0]));else throw new Error("Cannot close `"+q.type+"` ("+Zu({start:q.start,end:q.end})+"): it’s not open");Ce.position.end=Ua(q.end)}function u(){return SV(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(q){if(this.data.expectingFirstListItemValue){const Q=this.stack[this.stack.length-2];Q.start=Number.parseInt(this.sliceSerialize(q),10),this.data.expectingFirstListItemValue=void 0}}function d(){const q=this.resume(),Q=this.stack[this.stack.length-1];Q.lang=q}function p(){const q=this.resume(),Q=this.stack[this.stack.length-1];Q.meta=q}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const q=this.resume(),Q=this.stack[this.stack.length-1];Q.value=q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const q=this.resume(),Q=this.stack[this.stack.length-1];Q.value=q.replace(/(\r?\n|\r)$/g,"")}function v(q){const Q=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=Q,Ce.identifier=Ns(this.sliceSerialize(q)).toLowerCase()}function b(){const q=this.resume(),Q=this.stack[this.stack.length-1];Q.title=q}function S(){const q=this.resume(),Q=this.stack[this.stack.length-1];Q.url=q}function C(q){const Q=this.stack[this.stack.length-1];if(!Q.depth){const Ce=this.sliceSerialize(q).length;Q.depth=Ce}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function _(q){const Q=this.stack[this.stack.length-1];Q.depth=this.sliceSerialize(q).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function I(q){const Ce=this.stack[this.stack.length-1].children;let Oe=Ce[Ce.length-1];(!Oe||Oe.type!=="text")&&(Oe=Vc(),Oe.position={start:Ua(q.start),end:void 0},Ce.push(Oe)),this.stack.push(Oe)}function $(q){const Q=this.stack.pop();Q.value+=this.sliceSerialize(q),Q.position.end=Ua(q.end)}function A(q){const Q=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=Q.children[Q.children.length-1];Ce.position.end=Ua(q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Q.type)&&(I.call(this,q),$.call(this,q))}function M(){this.data.atHardBreak=!0}function F(){const q=this.resume(),Q=this.stack[this.stack.length-1];Q.value=q}function N(){const q=this.resume(),Q=this.stack[this.stack.length-1];Q.value=q}function D(){const q=this.resume(),Q=this.stack[this.stack.length-1];Q.value=q}function j(){const q=this.stack[this.stack.length-1];if(this.data.inReference){const Q=this.data.referenceType||"shortcut";q.type+="Reference",q.referenceType=Q,delete q.url,delete q.title}else delete q.identifier,delete q.label;this.data.referenceType=void 0}function B(){const q=this.stack[this.stack.length-1];if(this.data.inReference){const Q=this.data.referenceType||"shortcut";q.type+="Reference",q.referenceType=Q,delete q.url,delete q.title}else delete q.identifier,delete q.label;this.data.referenceType=void 0}function L(q){const Q=this.sliceSerialize(q),Ce=this.stack[this.stack.length-2];Ce.label=kK(Q),Ce.identifier=Ns(Q).toLowerCase()}function W(){const q=this.stack[this.stack.length-1],Q=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const Oe=q.children;Ce.children=Oe}else Ce.alt=Q}function T(){const q=this.resume(),Q=this.stack[this.stack.length-1];Q.url=q}function V(){const q=this.resume(),Q=this.stack[this.stack.length-1];Q.title=q}function J(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function ue(q){const Q=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=Q,Ce.identifier=Ns(this.sliceSerialize(q)).toLowerCase(),this.data.referenceType="full"}function ye(q){this.data.characterReferenceType=q.type}function te(q){const Q=this.sliceSerialize(q),Ce=this.data.characterReferenceType;let Oe;Ce?(Oe=ED(Q,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Oe=mk(Q);const We=this.stack[this.stack.length-1];We.value+=Oe}function de(q){const Q=this.stack.pop();Q.position.end=Ua(q.end)}function Te(q){$.call(this,q);const Q=this.stack[this.stack.length-1];Q.url=this.sliceSerialize(q)}function U(q){$.call(this,q);const Q=this.stack[this.stack.length-1];Q.url="mailto:"+this.sliceSerialize(q)}function ne(){return{type:"blockquote",children:[]}}function me(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function Ye(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Le(){return{type:"emphasis",children:[]}}function st(){return{type:"heading",depth:0,children:[]}}function Ot(){return{type:"break"}}function Vr(){return{type:"html",value:""}}function Zn(){return{type:"image",title:null,url:"",alt:null}}function Ro(){return{type:"link",title:null,url:"",children:[]}}function Bo(q){return{type:"list",ordered:q.type==="listOrdered",start:null,spread:q._spread,children:[]}}function qh(q){return{type:"listItem",spread:q._spread,checked:null,children:[]}}function Vh(){return{type:"paragraph",children:[]}}function Tv(){return{type:"strong",children:[]}}function Vc(){return{type:"text",value:""}}function Fo(){return{type:"thematicBreak"}}}function Ua(e){return{line:e.line,column:e.column,offset:e.offset}}function jD(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?jD(e,n):EK(e,n)}}function EK(e,t){let r;for(r in t)if(ND.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function VE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Zu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Zu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Zu({start:t.start,end:t.end})+") is still open")}function TK(e){const t=this;t.parser=r;function r(n){return CK(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function PK(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function AK(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
56
|
+
`}]}function OK(e,t){const r=t.value?t.value+`
|
|
57
|
+
`:"",n={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(n.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function MK(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function LK(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function IK(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=Tc(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let o,l=e.footnoteCounts.get(n);l===void 0?(l=0,e.footnoteOrder.push(n),o=e.footnoteOrder.length):o=a+1,l+=1,e.footnoteCounts.set(n,l);const s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)}function $K(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function DK(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function RD(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=n:i.push({type:"text",value:n}),i}function NK(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return RD(e,t);const i={src:Tc(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function jK(e,t){const r={src:Tc(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function RK(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function BK(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return RD(e,t);const i={href:Tc(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function FK(e,t){const r={href:Tc(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zK(e,t,r){const n=e.all(t),i=r?WK(r):BD(t),a={},o=[];if(typeof t.checked=="boolean"){const u=n[0];let f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<n.length;){const u=n[l];(i||l!==0||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`
|
|
58
|
+
`}),u.type==="element"&&u.tagName==="p"&&!i?o.push(...u.children):o.push(u)}const s=n[n.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
|
|
59
|
+
`});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)}function WK(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=BD(r[n])}return t}function BD(e){const t=e.spread;return t??e.children.length>1}function HK(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){const o=n[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)}function UK(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function qK(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function VK(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function YK(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],o),i.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},l=hk(t.children[1]),s=xD(t.children[t.children.length-1]);l&&s&&(o.position={start:l,end:s}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function KK(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,l=o?o.length:t.children.length;let s=-1;const c=[];for(;++s<l;){const f=t.children[s],h={},d=o?o[s]:void 0;d&&(h.align=d);let p={type:"element",tagName:a,properties:h,children:[]};f&&(p.children=e.all(f),e.patch(f,p),p=e.applyData(f,p)),c.push(p)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)}function GK(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const YE=9,KE=32;function XK(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(GE(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(GE(t.slice(i),i>0,!1)),a.join("")}function GE(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===YE||a===KE;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===YE||a===KE;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function ZK(e,t){const r={type:"text",value:XK(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function QK(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const JK={blockquote:PK,break:AK,code:OK,delete:MK,emphasis:LK,footnoteReference:IK,heading:$K,html:DK,imageReference:NK,image:jK,inlineCode:RK,linkReference:BK,link:FK,listItem:zK,list:HK,paragraph:UK,root:qK,strong:VK,table:YK,tableCell:GK,tableRow:KK,text:ZK,thematicBreak:QK,toml:dd,yaml:dd,definition:dd,footnoteDefinition:dd};function dd(){}const FD=-1,Vm=0,Ju=1,Zp=2,xk=3,bk=4,wk=5,kk=6,zD=7,WD=8,XE=typeof self=="object"?self:globalThis,eG=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Vm:case FD:return r(o,i);case Ju:{const l=r([],i);for(const s of o)l.push(n(s));return l}case Zp:{const l=r({},i);for(const[s,c]of o)l[n(s)]=n(c);return l}case xk:return r(new Date(o),i);case bk:{const{source:l,flags:s}=o;return r(new RegExp(l,s),i)}case wk:{const l=r(new Map,i);for(const[s,c]of o)l.set(n(s),n(c));return l}case kk:{const l=r(new Set,i);for(const s of o)l.add(n(s));return l}case zD:{const{name:l,message:s}=o;return r(new XE[l](s),i)}case WD:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return r(new DataView(l),o)}}return r(new XE[a](o),i)};return n},ZE=e=>eG(new Map,e)(0),is="",{toString:tG}={},{keys:rG}=Object,iu=e=>{const t=typeof e;if(t!=="object"||!e)return[Vm,t];const r=tG.call(e).slice(8,-1);switch(r){case"Array":return[Ju,is];case"Object":return[Zp,is];case"Date":return[xk,is];case"RegExp":return[bk,is];case"Map":return[wk,is];case"Set":return[kk,is];case"DataView":return[Ju,r]}return r.includes("Array")?[Ju,r]:r.includes("Error")?[zD,r]:[Zp,r]},pd=([e,t])=>e===Vm&&(t==="function"||t==="symbol"),nG=(e,t,r,n)=>{const i=(o,l)=>{const s=n.push(o)-1;return r.set(l,s),s},a=o=>{if(r.has(o))return r.get(o);let[l,s]=iu(o);switch(l){case Vm:{let u=o;switch(s){case"bigint":l=WD,u=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);u=null;break;case"undefined":return i([FD],o)}return i([l,u],o)}case Ju:{if(s){let h=o;return s==="DataView"?h=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(h=new Uint8Array(o)),i([s,[...h]],o)}const u=[],f=i([l,u],o);for(const h of o)u.push(a(h));return f}case Zp:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const u=[],f=i([l,u],o);for(const h of rG(o))(e||!pd(iu(o[h])))&&u.push([a(h),a(o[h])]);return f}case xk:return i([l,o.toISOString()],o);case bk:{const{source:u,flags:f}=o;return i([l,{source:u,flags:f}],o)}case wk:{const u=[],f=i([l,u],o);for(const[h,d]of o)(e||!(pd(iu(h))||pd(iu(d))))&&u.push([a(h),a(d)]);return f}case kk:{const u=[],f=i([l,u],o);for(const h of o)(e||!pd(iu(h)))&&u.push(a(h));return f}}const{message:c}=o;return i([l,{name:s,message:c}],o)};return a},QE=(e,{json:t,lossy:r}={})=>{const n=[];return nG(!(t||r),!!t,new Map,n)(e),n},Qp=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ZE(QE(e,t)):structuredClone(e):(e,t)=>ZE(QE(e,t));function iG(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function aG(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function oG(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||iG,n=e.options.footnoteBackLabel||aG,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[s]);if(!c)continue;const u=e.all(c),f=String(c.identifier).toUpperCase(),h=Tc(f.toLowerCase());let d=0;const p=[],g=e.footnoteCounts.get(f);for(;g!==void 0&&++d<=g;){p.length>0&&p.push({type:"text",value:" "});let v=typeof r=="string"?r:r(s,d);typeof v=="string"&&(v={type:"text",value:v}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(s,d),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const y=u[u.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const v=y.children[y.children.length-1];v&&v.type==="text"?v.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...p)}else u.push(...p);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(u,!0)};e.patch(c,m),l.push(m)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Qp(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
60
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
|
|
61
|
+
`}]}}const HD=function(e){if(e==null)return uG;if(typeof e=="function")return Ym(e);if(typeof e=="object")return Array.isArray(e)?lG(e):sG(e);if(typeof e=="string")return cG(e);throw new Error("Expected function, string, or object as test")};function lG(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=HD(e[r]);return Ym(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function sG(e){const t=e;return Ym(r);function r(n){const i=n;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function cG(e){return Ym(t);function t(r){return r&&r.type===e}}function Ym(e){return t;function t(r,n,i){return!!(fG(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function uG(){return!0}function fG(e){return e!==null&&typeof e=="object"&&"type"in e}const UD=[],hG=!0,JE=!1,dG="skip";function pG(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const a=HD(i),o=n?-1:1;l(e,void 0,[])();function l(s,c,u){const f=s&&typeof s=="object"?s:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(s.type+(d?"<"+d+">":""))+")"})}return h;function h(){let d=UD,p,g,y;if((!t||a(s,c,u[u.length-1]||void 0))&&(d=gG(r(s,u)),d[0]===JE))return d;if("children"in s&&s.children){const m=s;if(m.children&&d[0]!==dG)for(g=(n?m.children.length:-1)+o,y=u.concat(m);g>-1&&g<m.children.length;){const v=m.children[g];if(p=l(v,g,y)(),p[0]===JE)return p;g=typeof p[1]=="number"?p[1]:g+o}}return d}}}function gG(e){return Array.isArray(e)?e:typeof e=="number"?[hG,e]:e==null?UD:[e]}function qD(e,t,r,n){let i,a,o;typeof t=="function"&&typeof r!="function"?(a=void 0,o=t,i=r):(a=t,o=r,i=n),pG(e,a,l,i);function l(s,c){const u=c[c.length-1],f=u?u.children.indexOf(s):void 0;return o(s,f,u)}}const sb={}.hasOwnProperty,mG={};function yG(e,t){const r=t||mG,n=new Map,i=new Map,a=new Map,o={...JK,...r.handlers},l={all:c,applyData:xG,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:s,options:r,patch:vG,wrap:wG};return qD(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const f=u.type==="definition"?n:i,h=String(u.identifier).toUpperCase();f.has(h)||f.set(h,u)}}),l;function s(u,f){const h=u.type,d=l.handlers[h];if(sb.call(l.handlers,h)&&d)return d(l,u,f);if(l.options.passThrough&&l.options.passThrough.includes(h)){if("children"in u){const{children:g,...y}=u,m=Qp(y);return m.children=l.all(u),m}return Qp(u)}return(l.options.unknownHandler||bG)(l,u,f)}function c(u){const f=[];if("children"in u){const h=u.children;let d=-1;for(;++d<h.length;){const p=l.one(h[d],u);if(p){if(d&&h[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=eT(p.value)),!Array.isArray(p)&&p.type==="element")){const g=p.children[0];g&&g.type==="text"&&(g.value=eT(g.value))}Array.isArray(p)?f.push(...p):f.push(p)}}}return f}}function vG(e,t){e.position&&(t.position=tV(e))}function xG(e,t){let r=t;if(e&&e.data){const n=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const o="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:o}}r.type==="element"&&a&&Object.assign(r.properties,Qp(a)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function bG(e,t){const r=t.data||{},n="value"in t&&!(sb.call(r,"hProperties")||sb.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wG(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
|
|
62
|
+
`});++n<e.length;)n&&r.push({type:"text",value:`
|
|
63
|
+
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
64
|
+
`}),r}function eT(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function tT(e,t){const r=yG(e,t),n=r.one(e,void 0),i=oG(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
|
|
65
|
+
`},i),a}function kG(e,t){return e&&"run"in e?async function(r,n){const i=tT(r,{file:n,...t});await e.run(i,n)}:function(r,n){return tT(r,{file:n,...e||t})}}function rT(e){if(e)throw e}var ap=Object.prototype.hasOwnProperty,VD=Object.prototype.toString,nT=Object.defineProperty,iT=Object.getOwnPropertyDescriptor,aT=function(t){return typeof Array.isArray=="function"?Array.isArray(t):VD.call(t)==="[object Array]"},oT=function(t){if(!t||VD.call(t)!=="[object Object]")return!1;var r=ap.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&ap.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||ap.call(t,i)},lT=function(t,r){nT&&r.name==="__proto__"?nT(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},sT=function(t,r){if(r==="__proto__")if(ap.call(t,r)){if(iT)return iT(t,r).value}else return;return t[r]},SG=function e(){var t,r,n,i,a,o,l=arguments[0],s=1,c=arguments.length,u=!1;for(typeof l=="boolean"&&(u=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s<c;++s)if(t=arguments[s],t!=null)for(r in t)n=sT(l,r),i=sT(t,r),l!==i&&(u&&i&&(oT(i)||(a=aT(i)))?(a?(a=!1,o=n&&aT(n)?n:[]):o=n&&oT(n)?n:{},lT(l,{name:r,newValue:e(u,o,i)})):typeof i<"u"&&lT(l,{name:r,newValue:i}));return l};const u0=Yn(SG);function cb(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function CG(){const e=[],t={run:r,use:n};return t;function r(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...i);function l(s,...c){const u=e[++a];let f=-1;if(s){o(s);return}for(;++f<i.length;)(c[f]===null||c[f]===void 0)&&(c[f]=i[f]);i=c,u?_G(u,l)(...c):o(null,...c)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function _G(e,t){let r;return n;function n(...o){const l=e.length>o.length;let s;l&&o.push(i);try{s=e.apply(this,o)}catch(c){const u=c;if(l&&r)throw u;return i(u)}l||(s&&s.then&&typeof s.then=="function"?s.then(a,i):s instanceof Error?i(s):a(s))}function i(o,...l){r||(r=!0,t(o,...l))}function a(o){i(null,o)}}const Ii={basename:EG,dirname:TG,extname:PG,join:AG,sep:"/"};function EG(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ch(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else o<0&&(a=!0,o=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(n=i):(l=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function TG(e){if(ch(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function PG(e){ch(e);let t=e.length,r=-1,n=0,i=-1,a=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),l===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function AG(...e){let t=-1,r;for(;++t<e.length;)ch(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":OG(r)}function OG(e){ch(e);const t=e.codePointAt(0)===47;let r=MG(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function MG(e,t){let r="",n=0,i=-1,a=0,o=-1,l,s;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(s=r.lastIndexOf("/"),s!==r.length-1){s<0?(r="",n=0):(r=r.slice(0,s),n=r.length-1-r.lastIndexOf("/")),i=o,a=0;continue}}else if(r.length>0){r="",n=0,i=o,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),n=o-i-1;i=o,a=0}else l===46&&a>-1?a++:a=-1}return r}function ch(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const LG={cwd:IG};function IG(){return"/"}function ub(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function $G(e){if(typeof e=="string")e=new URL(e);else if(!ub(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return DG(e)}function DG(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const f0=["history","path","basename","stem","extname","dirname"];class YD{constructor(t){let r;t?ub(t)?r={path:t}:typeof t=="string"||NG(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":LG.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<f0.length;){const a=f0[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)f0.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?Ii.basename(this.path):void 0}set basename(t){d0(t,"basename"),h0(t,"basename"),this.path=Ii.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ii.dirname(this.path):void 0}set dirname(t){cT(this.basename,"dirname"),this.path=Ii.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ii.extname(this.path):void 0}set extname(t){if(h0(t,"extname"),cT(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ii.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ub(t)&&(t=$G(t)),d0(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ii.basename(this.path,this.extname):void 0}set stem(t){d0(t,"stem"),h0(t,"stem"),this.path=Ii.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new Pr(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function h0(e,t){if(e&&e.includes(Ii.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ii.sep+"`")}function d0(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function cT(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function NG(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const jG=function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,n),a},RG={}.hasOwnProperty;class Sk extends jG{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=CG()}copy(){const t=new Sk;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(u0(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(m0("data",this.frozen),this.namespace[t]=r,this):RG.call(this.namespace,t)&&this.namespace[t]||void 0:t?(m0("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=gd(t),n=this.parser||this.Parser;return p0("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),p0("process",this.parser||this.Parser),g0("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,o){const l=gd(t),s=n.parse(l);n.run(s,l,function(u,f,h){if(u||!f||!h)return c(u);const d=f,p=n.stringify(d,h);zG(p)?h.value=p:h.result=p,c(u,h)});function c(u,f){u||!f?o(u):a?a(f):r(void 0,f)}}}processSync(t){let r=!1,n;return this.freeze(),p0("processSync",this.parser||this.Parser),g0("processSync",this.compiler||this.Compiler),this.process(t,i),fT("processSync","process",r),n;function i(a,o){r=!0,rT(a),n=o}}run(t,r,n){uT(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(o,l){const s=gd(r);i.run(t,s,c);function c(u,f,h){const d=f||t;u?l(u):o?o(d):n(void 0,d,h)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),fT("runSync","run",n),i;function a(o,l){rT(o),i=l,n=!0}}stringify(t,r){this.freeze();const n=gd(r),i=this.compiler||this.Compiler;return g0("stringify",i),uT(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(m0("use",this.frozen),t!=null)if(typeof t=="function")s(t,r);else if(typeof t=="object")Array.isArray(t)?l(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")s(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...f]=c;s(u,f)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(c.plugins),c.settings&&(i.settings=u0(!0,i.settings,c.settings))}function l(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const f=c[u];a(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function s(c,u){let f=-1,h=-1;for(;++f<n.length;)if(n[f][0]===c){h=f;break}if(h===-1)n.push([c,...u]);else if(u.length>0){let[d,...p]=u;const g=n[h][1];cb(g)&&cb(d)&&(d=u0(!0,g,d)),n[h]=[c,d,...p]}}}}const BG=new Sk().freeze();function p0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function g0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function m0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function uT(e){if(!cb(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function fT(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function gd(e){return FG(e)?e:new YD(e)}function FG(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function zG(e){return typeof e=="string"||WG(e)}function WG(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const HG="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",hT=[],dT={allowDangerousHtml:!0},UG=/^(https?|ircs?|mailto|xmpp)$/i,qG=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function VG(e){const t=YG(e),r=KG(e);return GG(t.runSync(t.parse(r),r),e)}function YG(e){const t=e.rehypePlugins||hT,r=e.remarkPlugins||hT,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...dT}:dT;return BG().use(TK).use(r).use(kG,n).use(t)}function KG(e){const t=e.children||"",r=new YD;return typeof t=="string"&&(r.value=t),r}function GG(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,l=t.unwrapDisallowed,s=t.urlTransform||XG;for(const u of qG)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+HG+u.id,void 0);return qD(e,c),oV(e,{Fragment:E.Fragment,components:i,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function c(u,f,h){if(u.type==="raw"&&h&&typeof f=="number")return o?h.children.splice(f,1):h.children[f]={type:"text",value:u.value},f;if(u.type==="element"){let d;for(d in l0)if(Object.hasOwn(l0,d)&&Object.hasOwn(u.properties,d)){const p=u.properties[d],g=l0[d];(g===null||g.includes(u.tagName))&&(u.properties[d]=s(String(p||""),d,u))}}if(u.type==="element"){let d=r?!r.includes(u.tagName):a?a.includes(u.tagName):!1;if(!d&&n&&typeof f=="number"&&(d=!n(u,f,h)),d&&h&&typeof f=="number")return l&&u.children?h.children.splice(f,1,...u.children):h.children.splice(f,1),f}}}function XG(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||n!==-1&&t>n||UG.test(e.slice(0,t))?e:""}function uh({markdown:e,mcpData:t,title:r}){const[n,i]=x.useState(!1),a="ai-summary-panel-content",o=r??(t?"MCP AI Analysis":"AI-friendly analysis"),l=t==null?void 0:t.isFallback,s=t!=null&&t.confidence?` · Confidence: ${t.confidence}`:"",c=l?" (fallback mode)":"";return E.jsxs("div",{className:"mb-6 rounded-xl border border-blue-200 dark:border-blue-800 bg-blue-50 dark:bg-blue-900/20","data-testid":"ai-summary-panel",children:[E.jsxs("button",{type:"button","aria-expanded":n,"aria-controls":a,onClick:()=>i(u=>!u),className:"w-full flex items-center justify-between px-4 py-3 text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 rounded-xl",children:[E.jsxs("span",{className:"text-sm font-semibold text-blue-700 dark:text-blue-300 flex items-center gap-2",children:[E.jsx("span",{"aria-hidden":"true",children:"🤖"}),o,(c||s)&&E.jsxs("span",{className:"font-normal text-xs text-blue-500 dark:text-blue-400",children:[c,s]})]}),E.jsx("span",{"aria-hidden":"true",className:`text-blue-600 dark:text-blue-400 transition-transform duration-200 ${n?"rotate-180":""}`,children:"▼"})]}),n&&E.jsx("div",{id:a,role:"region","aria-label":o,className:"px-4 pb-4 text-gray-800 dark:text-gray-200",children:t?E.jsx(ZG,{data:t}):e?E.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:E.jsx(VG,{children:e})}):null})]})}function ZG({data:e}){var t,r,n,i,a;return E.jsxs("div",{className:"space-y-4 text-sm","data-testid":"mcp-analysis-content",children:[e.summary&&E.jsxs("div",{children:[E.jsx("p",{className:"font-semibold text-blue-800 dark:text-blue-200 mb-1",children:"Summary"}),E.jsx("p",{children:e.summary})]}),(((t=e.keyFindings)==null?void 0:t.length)??0)>0&&E.jsx(au,{title:"Key Findings",items:e.keyFindings,icon:"🔍"}),(((r=e.topRisks)==null?void 0:r.length)??0)>0&&E.jsx(au,{title:"Top Risks",items:e.topRisks,icon:"⚠️"}),(((n=e.missingCoverageAreas)==null?void 0:n.length)??0)>0&&E.jsx(au,{title:"Missing Coverage Areas",items:e.missingCoverageAreas,icon:"📋"}),(((i=e.likelyRootCauses)==null?void 0:i.length)??0)>0&&E.jsx(au,{title:"Likely Root Causes",items:e.likelyRootCauses,icon:"🔎"}),(((a=e.recommendedActions)==null?void 0:a.length)??0)>0&&E.jsx(au,{title:"Recommended Actions",items:e.recommendedActions,icon:"✅"})]})}function au({title:e,items:t,icon:r}){return E.jsxs("div",{children:[E.jsxs("p",{className:"font-semibold text-blue-800 dark:text-blue-200 mb-1",children:[E.jsx("span",{"aria-hidden":"true",children:r})," ",e]}),E.jsx("ul",{className:"list-disc list-inside space-y-0.5 text-gray-700 dark:text-gray-300",children:t.map((n,i)=>E.jsx("li",{children:n},i))})]})}function KD(e){const t="inline-block px-2 py-0.5 rounded text-xs font-semibold";switch(e){case"CRITICAL":return`${t} bg-red-100 text-red-800 dark:bg-red-900/40 dark:text-red-300`;case"HIGH":return`${t} bg-orange-100 text-orange-800 dark:bg-orange-900/40 dark:text-orange-300`;case"MEDIUM":return`${t} bg-yellow-100 text-yellow-800 dark:bg-yellow-900/40 dark:text-yellow-300`;default:return`${t} bg-blue-100 text-blue-800 dark:bg-blue-900/40 dark:text-blue-300`}}function GD(e){const t="inline-block px-2 py-0.5 rounded text-xs font-bold";switch(e){case"P0":return`${t} bg-red-600 text-white`;case"P1":return`${t} bg-orange-500 text-white`;case"P2":return`${t} bg-yellow-500 text-white`;default:return`${t} bg-gray-400 text-white`}}function XD(e){return e>=75?"text-red-600 dark:text-red-400 font-bold":e>=50?"text-orange-600 dark:text-orange-400 font-semibold":e>=25?"text-yellow-600 dark:text-yellow-400":"text-gray-500"}function QG(e){return e?`${e.method??""} ${e.path??""}`.trim():"—"}function JG(e,t,r){return r==="asc"?e-t:t-e}function eX({filters:e,setFilters:t,languages:r,frameworks:n,scanners:i,categories:a}){const o=(c,u)=>t({...e,[u]:c}),l="rounded border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 text-xs";return E.jsxs("div",{className:"flex flex-wrap gap-2 mb-3","data-testid":"intelligence-filters",children:[E.jsxs("select",{value:e.priority,onChange:c=>o(c.target.value,"priority"),className:l,children:[E.jsx("option",{value:"all",children:"All Priorities"}),E.jsx("option",{value:"P0",children:"P0"}),E.jsx("option",{value:"P1",children:"P1"}),E.jsx("option",{value:"P2",children:"P2"}),E.jsx("option",{value:"P3",children:"P3"})]}),E.jsxs("select",{value:e.riskBandFilter,onChange:c=>o(c.target.value,"riskBandFilter"),className:l,children:[E.jsx("option",{value:"all",children:"All Risk Bands"}),E.jsx("option",{value:"Critical",children:"Critical"}),E.jsx("option",{value:"High",children:"High"}),E.jsx("option",{value:"Moderate",children:"Moderate"}),E.jsx("option",{value:"Low",children:"Low"})]}),E.jsxs("select",{value:e.severity,onChange:c=>o(c.target.value,"severity"),className:l,children:[E.jsx("option",{value:"all",children:"All Severities"}),E.jsx("option",{value:"CRITICAL",children:"Critical"}),E.jsx("option",{value:"HIGH",children:"High"}),E.jsx("option",{value:"MEDIUM",children:"Medium"}),E.jsx("option",{value:"LOW",children:"Low"})]}),a.length>0&&E.jsxs("select",{value:e.category,onChange:c=>o(c.target.value,"category"),className:l,"data-testid":"category-filter",children:[E.jsx("option",{value:"all",children:"All Categories"}),a.map(c=>E.jsx("option",{value:c,children:c},c))]}),r.length>0&&E.jsxs("select",{value:e.language,onChange:c=>o(c.target.value,"language"),className:l,children:[E.jsx("option",{value:"all",children:"All Languages"}),r.map(c=>E.jsx("option",{value:c,children:c},c))]}),n.length>0&&E.jsxs("select",{value:e.framework,onChange:c=>o(c.target.value,"framework"),className:l,children:[E.jsx("option",{value:"all",children:"All Frameworks"}),n.map(c=>E.jsx("option",{value:c,children:c},c))]}),i.length>0&&E.jsxs("select",{value:e.scanner,onChange:c=>o(c.target.value,"scanner"),className:l,children:[E.jsx("option",{value:"all",children:"All Scanners"}),i.map(c=>E.jsx("option",{value:c,children:c},c))]}),E.jsx("input",{type:"search",value:e.endpoint,onChange:c=>o(c.target.value,"endpoint"),placeholder:"Filter by endpoint...",className:"rounded border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 text-xs placeholder-gray-400 dark:placeholder-gray-500","data-testid":"endpoint-filter"})]})}function tX({rec:e,findings:t,onFindingClick:r}){var i;const n=t.filter(a=>e.linkedFindingIds.includes(a.id));return E.jsxs("div",{className:"flex flex-wrap items-start gap-2 px-3 py-2 rounded hover:bg-gray-50 dark:hover:bg-gray-800 border-b border-gray-100 dark:border-gray-700 last:border-0",children:[E.jsx("span",{className:GD(e.priority),children:e.priority}),E.jsxs("div",{className:"flex-1 min-w-0",children:[E.jsx("div",{className:"text-xs font-medium text-gray-900 dark:text-gray-100 leading-tight",children:e.title}),((i=e.endpoint)==null?void 0:i.path)&&E.jsxs("code",{className:"text-xs text-gray-500 dark:text-gray-400",children:[e.endpoint.method," ",e.endpoint.path]})]}),E.jsxs("span",{className:`text-xs font-semibold ${XD(e.riskScore)}`,children:[e.riskScore," ",E.jsxs("span",{className:"text-xs font-normal",children:["(",cD(e.riskScore),")"]})]}),E.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:e.recommendedTestType}),E.jsx("div",{className:"flex flex-wrap gap-1",children:n.map(a=>E.jsx("button",{onClick:()=>r(a),className:"text-xs px-1.5 py-0.5 rounded bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 hover:bg-blue-200 dark:hover:bg-blue-900/50 transition-colors",title:a.title,children:a.category},a.id))})]})}function rX({finding:e,recommendations:t,onClose:r}){var i;const n=t.filter(a=>a.linkedFindingIds.includes(e.id));return E.jsxs("div",{className:"fixed inset-0 z-50 flex justify-end","data-testid":"finding-drawer",children:[E.jsx("div",{className:"absolute inset-0 bg-black/40",onClick:r}),E.jsx("div",{className:"relative w-full max-w-lg bg-white dark:bg-gray-900 shadow-2xl overflow-y-auto",children:E.jsxs("div",{className:"p-6",children:[E.jsxs("div",{className:"flex items-start justify-between mb-4",children:[E.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white pr-8 leading-tight",children:e.title}),E.jsx("button",{onClick:r,className:"text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 text-xl leading-none",children:"✕"})]}),E.jsxs("div",{className:"space-y-3 text-sm",children:[E.jsxs("div",{className:"flex gap-2",children:[E.jsx("span",{className:KD(e.severity),children:e.severity}),E.jsx("span",{className:"text-gray-500 dark:text-gray-400",children:e.category}),E.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:e.source})]}),E.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:e.description}),((i=e.endpoint)==null?void 0:i.path)&&E.jsxs("div",{children:[E.jsx("span",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide",children:"Endpoint"}),E.jsx("code",{className:"block mt-1 px-2 py-1 bg-gray-100 dark:bg-gray-800 rounded text-xs",children:QG(e.endpoint)})]}),e.missingTestTypes&&e.missingTestTypes.length>0&&E.jsxs("div",{children:[E.jsx("span",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide",children:"Missing Test Types"}),E.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:e.missingTestTypes.map(a=>E.jsx("span",{className:"px-1.5 py-0.5 rounded bg-yellow-100 dark:bg-yellow-900/30 text-yellow-800 dark:text-yellow-300 text-xs",children:a},a))})]}),e.frameworkHints&&e.frameworkHints.length>0&&E.jsxs("div",{children:[E.jsx("span",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide",children:"Framework Hints"}),E.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:e.frameworkHints.map(a=>E.jsx("span",{className:"px-1.5 py-0.5 rounded bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 text-xs",children:a},a))})]}),e.relatedScanners&&e.relatedScanners.length>0&&E.jsxs("div",{children:[E.jsx("span",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide",children:"Scanner Findings"}),E.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:e.relatedScanners.map(a=>E.jsx("span",{className:"px-1.5 py-0.5 rounded bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-300 text-xs",children:a},a))})]}),n.length>0&&E.jsxs("div",{children:[E.jsx("span",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide",children:"Linked Recommendations"}),E.jsx("div",{className:"mt-2 space-y-2",children:n.map(a=>E.jsxs("div",{className:"p-2 rounded bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800",children:[E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("span",{className:GD(a.priority),children:a.priority}),E.jsxs("span",{className:`text-xs font-semibold ${XD(a.riskScore)}`,children:["Score: ",a.riskScore]})]}),E.jsx("p",{className:"mt-1 text-xs text-gray-700 dark:text-gray-300",children:a.title})]},a.id))})]})]})]})})]})}function wl({coverageType:e,findings:t,recommendations:r,alwaysShow:n=!1}){const[i,a]=x.useState({priority:"all",riskBandFilter:"all",language:"all",framework:"all",severity:"all",scanner:"all",category:"all",endpoint:""}),[o,l]=x.useState(null),s=x.useMemo(()=>[...new Set(r.flatMap(g=>g.likelyLanguage?[g.likelyLanguage]:[]))],[r]),c=x.useMemo(()=>[...new Set(r.flatMap(g=>g.likelyFramework?[g.likelyFramework]:[]))],[r]),u=x.useMemo(()=>[...new Set(t.flatMap(g=>g.relatedScanners??[]))],[t]),f=x.useMemo(()=>[...new Set(t.map(g=>g.category))],[t]),h=x.useMemo(()=>r.filter(g=>{var y,m;return!(i.priority!=="all"&&g.priority!==i.priority||i.riskBandFilter!=="all"&&cD(g.riskScore)!==i.riskBandFilter||i.language!=="all"&&g.likelyLanguage!==i.language||i.framework!=="all"&&g.likelyFramework!==i.framework||i.endpoint&&!(((m=(y=g.endpoint)==null?void 0:y.path)==null?void 0:m.toLowerCase())??"").includes(i.endpoint.toLowerCase()))}).sort((g,y)=>JG(g.riskScore,y.riskScore,"desc")),[r,i]),d=x.useMemo(()=>t.filter(g=>{var y,m;return!(i.severity!=="all"&&g.severity!==i.severity||i.scanner!=="all"&&!(g.relatedScanners??[]).includes(i.scanner)||i.category!=="all"&&g.category!==i.category||i.endpoint&&!(((m=(y=g.endpoint)==null?void 0:y.path)==null?void 0:m.toLowerCase())??"").includes(i.endpoint.toLowerCase()))}),[t,i]),p=x.useMemo(()=>{if(r.length===0&&t.length===0)return null;const g=[`## Coverage Intelligence — ${e}`,"",`**Findings:** ${t.length} | **Recommendations:** ${r.length}`,""];return h.length>0&&(g.push("### Top Recommendations",""),h.slice(0,5).forEach(y=>{g.push(`- **[${y.priority}]** ${y.title} (Risk: ${y.riskScore})`)})),g.join(`
|
|
66
|
+
`)},[e,t.length,r.length,h]);return!n&&t.length===0&&r.length===0?null:E.jsxs("div",{className:"mt-6 border border-blue-200 dark:border-blue-800 rounded-xl overflow-hidden","data-testid":"intelligence-section",children:[E.jsx("div",{className:"bg-blue-50 dark:bg-blue-900/20 px-4 py-3 flex items-center justify-between",children:E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("span",{className:"text-blue-600 dark:text-blue-400 font-bold text-sm",children:"🧠 Coverage Intelligence"}),r.length>0&&E.jsxs("span",{className:"bg-blue-600 text-white text-xs px-2 py-0.5 rounded-full",children:[r.length," recommendation",r.length!==1?"s":""]}),t.filter(g=>g.severity==="CRITICAL"||g.severity==="HIGH").length>0&&E.jsxs("span",{className:"bg-red-600 text-white text-xs px-2 py-0.5 rounded-full",children:[t.filter(g=>g.severity==="CRITICAL"||g.severity==="HIGH").length," high-risk"]})]})}),E.jsxs("div",{className:"p-4 bg-white dark:bg-gray-900",children:[p&&E.jsx(uh,{markdown:p}),E.jsx(eX,{filters:i,setFilters:a,languages:s,frameworks:c,scanners:u,categories:f}),h.length>0?E.jsxs("div",{className:"mb-4",children:[E.jsx("h3",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2",children:"Missing Test Recommendations"}),E.jsx("div",{className:"w-full text-xs rounded border border-gray-200 dark:border-gray-700 overflow-hidden",children:h.map(g=>E.jsx(tX,{rec:g,findings:d,onFindingClick:l},g.id))})]}):E.jsx("div",{className:"text-xs text-gray-400 dark:text-gray-500 italic py-2",children:"No recommendations match the current filters."}),d.length>0&&E.jsxs("div",{children:[E.jsxs("h3",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2",children:["Functional Findings (",d.length,")"]}),E.jsx("div",{className:"space-y-1",children:d.map(g=>{var y;return E.jsxs("button",{onClick:()=>l(g),className:"w-full text-left flex items-start gap-2 px-3 py-2 rounded hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",children:[E.jsx("span",{className:KD(g.severity),children:g.severity}),E.jsx("span",{className:"text-xs text-gray-700 dark:text-gray-300 flex-1 leading-tight",children:g.title}),((y=g.endpoint)==null?void 0:y.path)&&E.jsxs("code",{className:"text-xs text-gray-400 dark:text-gray-500 shrink-0",children:[g.endpoint.method," ",g.endpoint.path]})]},g.id)})})]})]}),o&&E.jsx(rX,{finding:o,recommendations:r,onClose:()=>l(null)})]})}function ZD(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=ZD(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function je(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=ZD(e))&&(n&&(n+=" "),n+=t);return n}var nX=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function Ck(e){if(typeof e!="string")return!1;var t=nX;return t.includes(e)}var iX=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],aX=new Set(iX);function QD(e){return typeof e!="string"?!1:aX.has(e)}function JD(e){return typeof e=="string"&&e.startsWith("data-")}function Sn(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(QD(r)||JD(r))&&(t[r]=e[r]);return t}function kl(e){if(e==null)return null;if(x.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Sn(t)}return typeof e=="object"&&!Array.isArray(e)?Sn(e):null}function Tr(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(QD(r)||JD(r)||Ck(r))&&(t[r]=e[r]);return t}function oX(e){return e==null?null:x.isValidElement(e)?Tr(e.props):typeof e=="object"&&!Array.isArray(e)?Tr(e):null}var lX=["children","width","height","viewBox","className","style","title","desc"];function fb(){return fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fb.apply(null,arguments)}function sX(e,t){if(e==null)return{};var r,n,i=cX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function cX(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var _k=x.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:l,title:s,desc:c}=e,u=sX(e,lX),f=a||{width:n,height:i,x:0,y:0},h=je("recharts-surface",o);return x.createElement("svg",fb({},Tr(u),{className:h,width:n,height:i,style:l,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),x.createElement("title",null,s),x.createElement("desc",null,c),r)}),uX=["children","className"];function hb(){return hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hb.apply(null,arguments)}function fX(e,t){if(e==null)return{};var r,n,i=hX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function hX(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ut=x.forwardRef((e,t)=>{var{children:r,className:n}=e,i=fX(e,uX),a=je("recharts-layer",n);return x.createElement("g",hb({className:a},Tr(i),{ref:t}),r)}),eN=x.createContext(null),dX=()=>x.useContext(eN);function tt(e){return function(){return e}}const oTe=Math.abs,lTe=Math.atan2,tN=Math.cos,sTe=Math.max,cTe=Math.min,Jp=Math.sin,vi=Math.sqrt,pT=1e-12,rc=Math.PI,gT=rc/2,Km=2*rc;function uTe(e){return e>1?0:e<-1?rc:Math.acos(e)}function fTe(e){return e>=1?gT:e<=-1?-gT:Math.asin(e)}const db=Math.PI,pb=2*db,Yo=1e-6,pX=pb-Yo;function rN(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function gX(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return rN;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class mX{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?rN:gX(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,s=n-t,c=i-r,u=o-t,f=l-r,h=u*u+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Yo)if(!(Math.abs(f*s-c*u)>Yo)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=n-o,p=i-l,g=s*s+c*c,y=d*d+p*p,m=Math.sqrt(g),v=Math.sqrt(h),b=a*Math.tan((db-Math.acos((g+h-y)/(2*m*v)))/2),S=b/v,C=b/m;Math.abs(S-1)>Yo&&this._append`L${t+S*u},${r+S*f}`,this._append`A${a},${a},0,0,${+(f*d>u*p)},${this._x1=t+C*s},${this._y1=r+C*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),s=n*Math.sin(i),c=t+l,u=r+s,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Yo||Math.abs(this._y1-u)>Yo)&&this._append`L${c},${u}`,n&&(h<0&&(h=h%pb+pb),h>pX?this._append`A${n},${n},0,1,${f},${t-l},${r-s}A${n},${n},0,1,${f},${this._x1=c},${this._y1=u}`:h>Yo&&this._append`A${n},${n},0,${+(h>=db)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Ek(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new mX(t)}function Tk(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function nN(e){this._context=e}nN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Sl(e){return new nN(e)}function iN(e){return e[0]}function aN(e){return e[1]}function Pk(e,t){var r=tt(!0),n=null,i=Sl,a=null,o=Ek(l);e=typeof e=="function"?e:e===void 0?iN:tt(e),t=typeof t=="function"?t:t===void 0?aN:tt(t);function l(s){var c,u=(s=Tk(s)).length,f,h=!1,d;for(n==null&&(a=i(d=o())),c=0;c<=u;++c)!(c<u&&r(f=s[c],c,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,c,s),+t(f,c,s));if(d)return a=null,d+""||null}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:tt(+s),l):e},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:tt(+s),l):t},l.defined=function(s){return arguments.length?(r=typeof s=="function"?s:tt(!!s),l):r},l.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),l):i},l.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),l):n},l}function md(e,t,r){var n=null,i=tt(!0),a=null,o=Sl,l=null,s=Ek(c);e=typeof e=="function"?e:e===void 0?iN:tt(+e),t=typeof t=="function"?t:tt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?aN:tt(+r);function c(f){var h,d,p,g=(f=Tk(f)).length,y,m=!1,v,b=new Array(g),S=new Array(g);for(a==null&&(l=o(v=s())),h=0;h<=g;++h){if(!(h<g&&i(y=f[h],h,f))===m)if(m=!m)d=h,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),p=h-1;p>=d;--p)l.point(b[p],S[p]);l.lineEnd(),l.areaEnd()}m&&(b[h]=+e(y,h,f),S[h]=+t(y,h,f),l.point(n?+n(y,h,f):b[h],r?+r(y,h,f):S[h]))}if(v)return l=null,v+""||null}function u(){return Pk().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:tt(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:tt(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:tt(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:tt(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:tt(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:tt(+f),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:tt(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(l=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=l=null:l=o(a=f),c):a},c}class oN{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Ak(e){return new oN(e,!0)}function Ok(e){return new oN(e,!1)}const Mk={draw(e,t){const r=vi(t/rc);e.moveTo(r,0),e.arc(0,0,r,0,Km)}},yX={draw(e,t){const r=vi(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},lN=vi(1/3),vX=lN*2,xX={draw(e,t){const r=vi(t/vX),n=r*lN;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},bX={draw(e,t){const r=vi(t),n=-r/2;e.rect(n,n,r,r)}},wX=.8908130915292852,sN=Jp(rc/10)/Jp(7*rc/10),kX=Jp(Km/10)*sN,SX=-tN(Km/10)*sN,CX={draw(e,t){const r=vi(t*wX),n=kX*r,i=SX*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Km*a/5,l=tN(o),s=Jp(o);e.lineTo(s*r,-l*r),e.lineTo(l*n-s*i,s*n+l*i)}e.closePath()}},y0=vi(3),_X={draw(e,t){const r=-vi(t/(y0*3));e.moveTo(0,r*2),e.lineTo(-y0*r,-r),e.lineTo(y0*r,-r),e.closePath()}},Pn=-.5,An=vi(3)/2,gb=1/vi(12),EX=(gb/2+1)*3,TX={draw(e,t){const r=vi(t/EX),n=r/2,i=r*gb,a=n,o=r*gb+r,l=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,s),e.lineTo(Pn*n-An*i,An*n+Pn*i),e.lineTo(Pn*a-An*o,An*a+Pn*o),e.lineTo(Pn*l-An*s,An*l+Pn*s),e.lineTo(Pn*n+An*i,Pn*i-An*n),e.lineTo(Pn*a+An*o,Pn*o-An*a),e.lineTo(Pn*l+An*s,Pn*s-An*l),e.closePath()}};function PX(e,t){let r=null,n=Ek(i);e=typeof e=="function"?e:tt(e||Mk),t=typeof t=="function"?t:tt(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:tt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:tt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function yo(){}function eg(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Gm(e){this._context=e}Gm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:eg(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:eg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ef(e){return new Gm(e)}function cN(e){this._context=e}cN.prototype={areaStart:yo,areaEnd:yo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:eg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function uN(e){return new cN(e)}function fN(e){this._context=e}fN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:eg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hN(e){return new fN(e)}function dN(e,t){this._basis=new Gm(e),this._beta=t}dN.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n=e[0],i=t[0],a=e[r]-n,o=t[r]-i,l=-1,s;++l<=r;)s=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(n+s*a),this._beta*t[l]+(1-this._beta)*(i+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const AX=function e(t){function r(n){return t===1?new Gm(n):new dN(n,t)}return r.beta=function(n){return e(+n)},r}(.85);function tg(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function Lk(e,t){this._context=e,this._k=(1-t)/6}Lk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:tg(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:tg(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pN=function e(t){function r(n){return new Lk(n,t)}return r.tension=function(n){return e(+n)},r}(0);function Ik(e,t){this._context=e,this._k=(1-t)/6}Ik.prototype={areaStart:yo,areaEnd:yo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:tg(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const OX=function e(t){function r(n){return new Ik(n,t)}return r.tension=function(n){return e(+n)},r}(0);function $k(e,t){this._context=e,this._k=(1-t)/6}$k.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tg(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const MX=function e(t){function r(n){return new $k(n,t)}return r.tension=function(n){return e(+n)},r}(0);function Dk(e,t,r){var n=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>pT){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>pT){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-r*e._l12_2a)/u}e._context.bezierCurveTo(n,i,a,o,e._x2,e._y2)}function gN(e,t){this._context=e,this._alpha=t}gN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Dk(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const mN=function e(t){function r(n){return t?new gN(n,t):new Lk(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function yN(e,t){this._context=e,this._alpha=t}yN.prototype={areaStart:yo,areaEnd:yo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Dk(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const LX=function e(t){function r(n){return t?new yN(n,t):new Ik(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function vN(e,t){this._context=e,this._alpha=t}vN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Dk(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const IX=function e(t){function r(n){return t?new vN(n,t):new $k(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function xN(e){this._context=e}xN.prototype={areaStart:yo,areaEnd:yo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function bN(e){return new xN(e)}function mT(e){return e<0?-1:1}function yT(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(mT(a)+mT(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function vT(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function v0(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function rg(e){this._context=e}rg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:v0(this,this._t0,vT(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,v0(this,vT(this,r=yT(this,e,t)),r);break;default:v0(this,this._t0,r=yT(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function wN(e){this._context=new kN(e)}(wN.prototype=Object.create(rg.prototype)).point=function(e,t){rg.prototype.point.call(this,t,e)};function kN(e){this._context=e}kN.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Nk(e){return new rg(e)}function jk(e){return new wN(e)}function SN(e){this._context=e}SN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=xT(e),i=xT(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function xT(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Rk(e){return new SN(e)}function Xm(e,t){this._context=e,this._t=t}Xm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Bk(e){return new Xm(e,.5)}function Fk(e){return new Xm(e,0)}function zk(e){return new Xm(e,1)}function Cl(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,l=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function mb(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function $X(e,t){return e[t]}function DX(e){const t=[];return t.key=e,t}function NX(){var e=tt([]),t=mb,r=Cl,n=$X;function i(a){var o=Array.from(e.apply(this,arguments),DX),l,s=o.length,c=-1,u;for(const f of a)for(l=0,++c;l<s;++l)(o[l][c]=[0,+n(f,o[l].key,c,a)]).data=f;for(l=0,u=Tk(t(o));l<s;++l)o[u[l]].index=l;return r(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:tt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:tt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?mb:typeof a=="function"?a:tt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Cl,i):r},i}function jX(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Cl(e,t)}}function RX(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,l=0;o<i;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}Cl(e,t)}}function BX(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var l=0,s=0,c=0;l<o;++l){for(var u=e[t[l]],f=u[n][1]||0,h=u[n-1][1]||0,d=(f-h)/2,p=0;p<l;++p){var g=e[t[p]],y=g[n][1]||0,m=g[n-1][1]||0;d+=y-m}s+=f,c+=d*f}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,Cl(e,t)}}var Zm={},CN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(CN);var Wk={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(Wk);var Qm={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){var n;return typeof r=="string"||typeof r=="symbol"?r:Object.is((n=r==null?void 0:r.valueOf)==null?void 0:n.call(r),-0)?"-0":String(r)}e.toKey=t})(Qm);var Jm={},_N={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t})(_N);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_N,r=Qm;function n(i){if(Array.isArray(i))return i.map(r.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const a=[],o=i.length;if(o===0)return a;let l=0,s="",c="",u=!1;for(i.charCodeAt(0)===46&&(a.push(""),l++);l<o;){const f=i[l];c?f==="\\"&&l+1<o?(l++,s+=i[l]):f===c?c="":s+=f:u?f==='"'||f==="'"?c=f:f==="]"?(u=!1,a.push(s),s=""):s+=f:f==="["?(u=!0,s&&(a.push(s),s="")):f==="."?s&&(a.push(s),s=""):s+=f,l++}return s&&a.push(s),a}e.toPath=n})(Jm);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=CN,r=Wk,n=Qm,i=Jm;function a(l,s,c){if(l==null)return c;switch(typeof s){case"string":{if(t.isUnsafeProperty(s))return c;const u=l[s];return u===void 0?r.isDeepKey(s)?a(l,i.toPath(s),c):c:u}case"number":case"symbol":{typeof s=="number"&&(s=n.toKey(s));const u=l[s];return u===void 0?c:u}default:{if(Array.isArray(s))return o(l,s,c);if(Object.is(s==null?void 0:s.valueOf(),-0)?s="-0":s=String(s),t.isUnsafeProperty(s))return c;const u=l[s];return u===void 0?c:u}}}function o(l,s,c){if(s.length===0)return c;let u=l;for(let f=0;f<s.length;f++){if(u==null||t.isUnsafeProperty(s[f]))return c;u=u[s[f]]}return u===void 0?c:u}e.get=a})(Zm);var FX=Zm.get;const _l=Yn(FX);var zX=4;function to(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zX,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function kt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((i,a,o)=>{var l=r[o-1];return typeof l=="string"?i+l+a:l!==void 0?i+to(l)+a:i+a},"")}var er=e=>e===0?0:e>0?1:-1,Vi=e=>typeof e=="number"&&e!=+e,El=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,oe=e=>(typeof e=="number"||e instanceof Number)&&!Vi(e),zn=e=>oe(e)||typeof e=="string",WX=0,Af=e=>{var t=++WX;return"".concat(e||"").concat(t)},kr=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!oe(t)&&typeof t!="string")return n;var a;if(El(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Vi(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},EN=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function ht(e,t,r){return oe(e)&&oe(t)?to(e+r*(t-e)):t}function TN(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):_l(n,t))===r)}var xt=e=>e===null||typeof e>"u",fh=e=>xt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function tn(e){return e!=null}function Hl(){}var HX=["type","size","sizeType"];function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yb.apply(null,arguments)}function bT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bT(Object(r),!0).forEach(function(n){UX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UX(e,t,r){return(t=qX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qX(e){var t=VX(e,"string");return typeof t=="symbol"?t:t+""}function VX(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YX(e,t){if(e==null)return{};var r,n,i=KX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function KX(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var PN={symbolCircle:Mk,symbolCross:yX,symbolDiamond:xX,symbolSquare:bX,symbolStar:CX,symbolTriangle:_X,symbolWye:TX},GX=Math.PI/180,XX=e=>{var t="symbol".concat(fh(e));return PN[t]||Mk},ZX=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*GX;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},QX=(e,t)=>{PN["symbol".concat(fh(e))]=t},Hk=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=YX(e,HX),a=wT(wT({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var l=()=>{var h=XX(o),d=PX().type(h).size(ZX(r,n,o)),p=d();if(p!==null)return p},{className:s,cx:c,cy:u}=a,f=Tr(a);return oe(c)&&oe(u)&&oe(r)?x.createElement("path",yb({},f,{className:je("recharts-symbols",s),transform:"translate(".concat(c,", ").concat(u,")"),d:l()})):null};Hk.registerSymbol=QX;var AN=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Uk=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(x.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{Ck(i)&&(n[i]=a=>r[i](r,a))}),n},JX=(e,t,r)=>n=>(e(t,r,n),null),hh=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];Ck(i)&&typeof a=="function"&&(n||(n={}),n[i]=JX(a,t,r))}),n};function kT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function eZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kT(Object(r),!0).forEach(function(n){tZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tZ(e,t,r){return(t=rZ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rZ(e){var t=nZ(e,"string");return typeof t=="symbol"?t:t+""}function nZ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function At(e,t){var r=eZ({},e),n=t,i=Object.keys(t),a=i.reduce((o,l)=>(o[l]===void 0&&n[l]!==void 0&&(o[l]=n[l]),o),r);return a}function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ng.apply(null,arguments)}function ST(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ST(Object(r),!0).forEach(function(n){aZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ST(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aZ(e,t,r){return(t=oZ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oZ(e){var t=lZ(e,"string");return typeof t=="symbol"?t:t+""}function lZ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ln=32,sZ={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function cZ(e){var{data:t,iconType:r,inactiveColor:n}=e,i=Ln/2,a=Ln/6,o=Ln/3,l=t.inactive?n:t.color,s=r??t.type;if(s==="none")return null;if(s==="plainline"){var c;return x.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:(c=t.payload)===null||c===void 0?void 0:c.strokeDasharray,x1:0,y1:i,x2:Ln,y2:i,className:"recharts-legend-icon"})}if(s==="line")return x.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(o,`
|
|
67
|
+
A`).concat(a,",").concat(a,",0,1,1,").concat(2*o,",").concat(i,`
|
|
68
|
+
H`).concat(Ln,"M").concat(2*o,",").concat(i,`
|
|
69
|
+
A`).concat(a,",").concat(a,",0,1,1,").concat(o,",").concat(i),className:"recharts-legend-icon"});if(s==="rect")return x.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Ln/8,"h").concat(Ln,"v").concat(Ln*3/4,"h").concat(-Ln,"z"),className:"recharts-legend-icon"});if(x.isValidElement(t.legendIcon)){var u=iZ({},t);return delete u.legendIcon,x.cloneElement(t.legendIcon,u)}return x.createElement(Hk,{fill:l,cx:i,cy:i,size:Ln,sizeType:"diameter",type:s})}function uZ(e){var{payload:t,iconSize:r,layout:n,formatter:i,inactiveColor:a,iconType:o}=e,l={x:0,y:0,width:Ln,height:Ln},s={display:n==="horizontal"?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((u,f)=>{var h=u.formatter||i,d=je({"recharts-legend-item":!0,["legend-item-".concat(f)]:!0,inactive:u.inactive});if(u.type==="none")return null;var p=u.inactive?a:u.color,g=h?h(u.value,u,f):u.value;return x.createElement("li",ng({className:d,style:s,key:"legend-item-".concat(f)},hh(e,u,f)),x.createElement(_k,{width:r,height:r,viewBox:l,style:c,"aria-label":"".concat(g," legend icon")},x.createElement(cZ,{data:u,iconType:o,inactiveColor:a})),x.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},g))})}var fZ=e=>{var t=At(e,sZ),{payload:r,layout:n,align:i}=t;if(!r||!r.length)return null;var a={padding:0,margin:0,textAlign:n==="horizontal"?i:"left"};return x.createElement("ul",{className:"recharts-default-legend",style:a},x.createElement(uZ,ng({},t,{payload:r})))},ON={},MN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const i=new Map;for(let a=0;a<r.length;a++){const o=r[a],l=n(o,a,r);i.has(l)||i.set(l,o)}return Array.from(i.values())}e.uniqBy=t})(MN);var LN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return function(...i){return r.apply(this,i.slice(0,n))}}e.ary=t})(LN);var qk={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(qk);var IN={},ey={},$N={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})($N);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$N;function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(ey);var DN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(DN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ey,r=DN;function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n})(IN);var NN={},jN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zm;function r(n){return function(i){return t.get(i,n)}}e.property=r})(jN);var RN={},Vk={},BN={},Yk={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(Yk);var Kk={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(Kk);var Gk={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.isEqualsSameValueZero=t})(Gk);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Yk,r=Kk,n=Gk;function i(u,f,h){return typeof h!="function"?i(u,f,()=>{}):a(u,f,function d(p,g,y,m,v,b){const S=h(p,g,y,m,v,b);return S!==void 0?!!S:a(p,g,d,b)},new Map)}function a(u,f,h,d){if(f===u)return!0;switch(typeof f){case"object":return o(u,f,h,d);case"function":return Object.keys(f).length>0?a(u,{...f},h,d):n.isEqualsSameValueZero(u,f);default:return t.isObject(u)?typeof f=="string"?f==="":!0:n.isEqualsSameValueZero(u,f)}}function o(u,f,h,d){if(f==null)return!0;if(Array.isArray(f))return s(u,f,h,d);if(f instanceof Map)return l(u,f,h,d);if(f instanceof Set)return c(u,f,h,d);const p=Object.keys(f);if(u==null||r.isPrimitive(u))return p.length===0;if(p.length===0)return!0;if(d!=null&&d.has(f))return d.get(f)===u;d==null||d.set(f,u);try{for(let g=0;g<p.length;g++){const y=p[g];if(!r.isPrimitive(u)&&!(y in u)||f[y]===void 0&&u[y]!==void 0||f[y]===null&&u[y]!==null||!h(u[y],f[y],y,u,f,d))return!1}return!0}finally{d==null||d.delete(f)}}function l(u,f,h,d){if(f.size===0)return!0;if(!(u instanceof Map))return!1;for(const[p,g]of f.entries()){const y=u.get(p);if(h(y,g,p,u,f,d)===!1)return!1}return!0}function s(u,f,h,d){if(f.length===0)return!0;if(!Array.isArray(u))return!1;const p=new Set;for(let g=0;g<f.length;g++){const y=f[g];let m=!1;for(let v=0;v<u.length;v++){if(p.has(v))continue;const b=u[v];let S=!1;if(h(b,y,g,u,f,d)&&(S=!0),S){p.add(v),m=!0;break}}if(!m)return!1}return!0}function c(u,f,h,d){return f.size===0?!0:u instanceof Set?s([...u],[...f],h,d):!1}e.isMatchWith=i,e.isSetMatch=c})(BN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=BN;function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r})(Vk);var FN={},Xk={},zN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(zN);var ty={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(ty);var Zk={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",i="[object Boolean]",a="[object Arguments]",o="[object Symbol]",l="[object Date]",s="[object Map]",c="[object Set]",u="[object Array]",f="[object Function]",h="[object ArrayBuffer]",d="[object Object]",p="[object Error]",g="[object DataView]",y="[object Uint8Array]",m="[object Uint8ClampedArray]",v="[object Uint16Array]",b="[object Uint32Array]",S="[object BigUint64Array]",C="[object Int8Array]",w="[object Int16Array]",_="[object Int32Array]",P="[object BigInt64Array]",I="[object Float32Array]",$="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=h,e.arrayTag=u,e.bigInt64ArrayTag=P,e.bigUint64ArrayTag=S,e.booleanTag=i,e.dataViewTag=g,e.dateTag=l,e.errorTag=p,e.float32ArrayTag=I,e.float64ArrayTag=$,e.functionTag=f,e.int16ArrayTag=w,e.int32ArrayTag=_,e.int8ArrayTag=C,e.mapTag=s,e.numberTag=n,e.objectTag=d,e.regexpTag=t,e.setTag=c,e.stringTag=r,e.symbolTag=o,e.uint16ArrayTag=v,e.uint32ArrayTag=b,e.uint8ArrayTag=y,e.uint8ClampedArrayTag=m})(Zk);var WN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(WN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zN,r=ty,n=Zk,i=Kk,a=WN;function o(u,f){return l(u,void 0,u,new Map,f)}function l(u,f,h,d=new Map,p=void 0){const g=p==null?void 0:p(u,f,h,d);if(g!==void 0)return g;if(i.isPrimitive(u))return u;if(d.has(u))return d.get(u);if(Array.isArray(u)){const y=new Array(u.length);d.set(u,y);for(let m=0;m<u.length;m++)y[m]=l(u[m],m,h,d,p);return Object.hasOwn(u,"index")&&(y.index=u.index),Object.hasOwn(u,"input")&&(y.input=u.input),y}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const y=new RegExp(u.source,u.flags);return y.lastIndex=u.lastIndex,y}if(u instanceof Map){const y=new Map;d.set(u,y);for(const[m,v]of u)y.set(m,l(v,m,h,d,p));return y}if(u instanceof Set){const y=new Set;d.set(u,y);for(const m of u)y.add(l(m,void 0,h,d,p));return y}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(a.isTypedArray(u)){const y=new(Object.getPrototypeOf(u)).constructor(u.length);d.set(u,y);for(let m=0;m<u.length;m++)y[m]=l(u[m],m,h,d,p);return y}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const y=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return d.set(u,y),s(y,u,h,d,p),y}if(typeof File<"u"&&u instanceof File){const y=new File([u],u.name,{type:u.type});return d.set(u,y),s(y,u,h,d,p),y}if(typeof Blob<"u"&&u instanceof Blob){const y=new Blob([u],{type:u.type});return d.set(u,y),s(y,u,h,d,p),y}if(u instanceof Error){const y=structuredClone(u);return d.set(u,y),y.message=u.message,y.name=u.name,y.stack=u.stack,y.cause=u.cause,y.constructor=u.constructor,s(y,u,h,d,p),y}if(u instanceof Boolean){const y=new Boolean(u.valueOf());return d.set(u,y),s(y,u,h,d,p),y}if(u instanceof Number){const y=new Number(u.valueOf());return d.set(u,y),s(y,u,h,d,p),y}if(u instanceof String){const y=new String(u.valueOf());return d.set(u,y),s(y,u,h,d,p),y}if(typeof u=="object"&&c(u)){const y=Object.create(Object.getPrototypeOf(u));return d.set(u,y),s(y,u,h,d,p),y}return u}function s(u,f,h=u,d,p){const g=[...Object.keys(f),...t.getSymbols(f)];for(let y=0;y<g.length;y++){const m=g[y],v=Object.getOwnPropertyDescriptor(u,m);(v==null||v.writable)&&(u[m]=l(f[m],m,h,d,p))}}function c(u){switch(r.getTag(u)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=o,e.cloneDeepWithImpl=l,e.copyProperties=s})(Xk);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xk;function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(FN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vk,r=FN;function n(i){return i=r.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=n})(RN);var HN={},UN={},qN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xk,r=ty,n=Zk;function i(a,o){return t.cloneDeepWith(a,(l,s,c,u)=>{const f=o==null?void 0:o(l,s,c,u);if(f!==void 0)return f;if(typeof a=="object"){if(r.getTag(a)===n.objectTag&&typeof a.constructor!="function"){const h={};return u.set(a,h),t.copyProperties(h,a,c,u),h}switch(Object.prototype.toString.call(a)){case n.numberTag:case n.stringTag:case n.booleanTag:{const h=new a.constructor(a==null?void 0:a.valueOf());return t.copyProperties(h,a),h}case n.argumentsTag:{const h={};return t.copyProperties(h,a),h.length=a.length,h[Symbol.iterator]=a[Symbol.iterator],h}default:return}}})}e.cloneDeepWith=i})(qN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qN;function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(UN);var VN={},Qk={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(Qk);var YN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ty;function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(YN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wk,r=Qk,n=YN,i=Jm;function a(o,l){let s;if(Array.isArray(l)?s=l:typeof l=="string"&&t.isDeepKey(l)&&(o==null?void 0:o[l])==null?s=i.toPath(l):s=[l],s.length===0)return!1;let c=o;for(let u=0;u<s.length;u++){const f=s[u];if((c==null||!Object.hasOwn(c,f))&&!((Array.isArray(c)||n.isArguments(c))&&r.isIndex(f)&&f<c.length))return!1;c=c[f]}return!0}e.has=a})(VN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vk,r=Qm,n=UN,i=Zm,a=VN;function o(l,s){switch(typeof l){case"object":{Object.is(l==null?void 0:l.valueOf(),-0)&&(l="-0");break}case"number":{l=r.toKey(l);break}}return s=n.cloneDeep(s),function(c){const u=i.get(c,l);return u===void 0?a.has(c,l):s===void 0?u===void 0:t.isMatch(u,s)}}e.matchesProperty=o})(HN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qk,r=jN,n=RN,i=HN;function a(o){if(o==null)return t.identity;switch(typeof o){case"function":return o;case"object":return Array.isArray(o)&&o.length===2?i.matchesProperty(o[0],o[1]):n.matches(o);case"string":case"symbol":case"number":return r.property(o)}}e.iteratee=a})(NN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=MN,r=LN,n=qk,i=IN,a=NN;function o(l,s=n.identity){return i.isArrayLikeObject(l)?t.uniqBy(Array.from(l),r.ary(a.iteratee(s),1)):[]}e.uniqBy=o})(ON);var hZ=ON.uniqBy;const CT=Yn(hZ);function KN(e,t,r){return t===!0?CT(e,r):typeof t=="function"?CT(e,t):e}var GN={exports:{}},XN={},ZN={exports:{}},QN={};/**
|
|
70
|
+
* @license React
|
|
71
|
+
* use-sync-external-store-shim.production.js
|
|
72
|
+
*
|
|
73
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the MIT license found in the
|
|
76
|
+
* LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/var nc=x;function dZ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pZ=typeof Object.is=="function"?Object.is:dZ,gZ=nc.useState,mZ=nc.useEffect,yZ=nc.useLayoutEffect,vZ=nc.useDebugValue;function xZ(e,t){var r=t(),n=gZ({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return yZ(function(){i.value=r,i.getSnapshot=t,x0(i)&&a({inst:i})},[e,r,t]),mZ(function(){return x0(i)&&a({inst:i}),e(function(){x0(i)&&a({inst:i})})},[e]),vZ(r),r}function x0(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!pZ(e,r)}catch{return!0}}function bZ(e,t){return t()}var wZ=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?bZ:xZ;QN.useSyncExternalStore=nc.useSyncExternalStore!==void 0?nc.useSyncExternalStore:wZ;ZN.exports=QN;var kZ=ZN.exports;/**
|
|
78
|
+
* @license React
|
|
79
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
80
|
+
*
|
|
81
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the MIT license found in the
|
|
84
|
+
* LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/var ry=x,SZ=kZ;function CZ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _Z=typeof Object.is=="function"?Object.is:CZ,EZ=SZ.useSyncExternalStore,TZ=ry.useRef,PZ=ry.useEffect,AZ=ry.useMemo,OZ=ry.useDebugValue;XN.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=TZ(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=AZ(function(){function s(d){if(!c){if(c=!0,u=d,d=n(d),i!==void 0&&o.hasValue){var p=o.value;if(i(p,d))return f=p}return f=d}if(p=f,_Z(u,d))return p;var g=n(d);return i!==void 0&&i(p,g)?(u=d,p):(u=d,f=g)}var c=!1,u,f,h=r===void 0?null:r;return[function(){return s(t())},h===null?void 0:function(){return s(h())}]},[t,r,n,i]);var l=EZ(e,a[0],a[1]);return PZ(function(){o.hasValue=!0,o.value=l},[l]),OZ(l),l};GN.exports=XN;var MZ=GN.exports,Jk=x.createContext(null),LZ=e=>e,Qe=()=>{var e=x.useContext(Jk);return e?e.store.dispatch:LZ},op=()=>{},IZ=()=>op,$Z=(e,t)=>e===t;function ie(e){var t=x.useContext(Jk),r=x.useMemo(()=>t?n=>{if(n!=null)return e(n)}:op,[t,e]);return MZ.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:IZ,t?t.store.getState:op,t?t.store.getState:op,r,$Z)}function DZ(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function NZ(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function jZ(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var _T=e=>Array.isArray(e)?e:[e];function RZ(e){const t=Array.isArray(e[0])?e[0]:e;return jZ(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function BZ(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var FZ=class{constructor(e){this.value=e}deref(){return this.value}},zZ=typeof WeakRef<"u"?WeakRef:FZ,WZ=0,ET=1;function yd(){return{s:WZ,v:void 0,o:null,p:null}}function JN(e,t={}){let r=yd();const{resultEqualityCheck:n}=t;let i,a=0;function o(){var f;let l=r;const{length:s}=arguments;for(let h=0,d=s;h<d;h++){const p=arguments[h];if(typeof p=="function"||typeof p=="object"&&p!==null){let g=l.o;g===null&&(l.o=g=new WeakMap);const y=g.get(p);y===void 0?(l=yd(),g.set(p,l)):l=y}else{let g=l.p;g===null&&(l.p=g=new Map);const y=g.get(p);y===void 0?(l=yd(),g.set(p,l)):l=y}}const c=l;let u;if(l.s===ET)u=l.v;else if(u=e.apply(null,arguments),a++,n){const h=((f=i==null?void 0:i.deref)==null?void 0:f.call(i))??i;h!=null&&n(h,u)&&(u=h,a!==0&&a--),i=typeof u=="object"&&u!==null||typeof u=="function"?new zZ(u):u}return c.s=ET,c.v=u,u}return o.clearCache=()=>{r=yd(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function HZ(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,l,s={},c=i.pop();typeof c=="object"&&(s=c,c=i.pop()),DZ(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...r,...s},{memoize:f,memoizeOptions:h=[],argsMemoize:d=JN,argsMemoizeOptions:p=[]}=u,g=_T(h),y=_T(p),m=RZ(i),v=f(function(){return a++,c.apply(null,arguments)},...g),b=d(function(){o++;const C=BZ(m,arguments);return l=v.apply(null,C),l},...y);return Object.assign(b,{resultFunc:c,memoizedResultFunc:v,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>l,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:d})};return Object.assign(n,{withTypes:()=>n}),n}var H=HZ(JN),UZ=Object.assign((e,t=H)=>{NZ(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,l,s)=>(o[r[s]]=l,o),{}))},{withTypes:()=>UZ}),ej={},tj={},rj={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const o=t(n),l=t(i);if(o===l&&o===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?l-o:o-l}return 0};e.compareValues=r})(rj);var nj={},eS={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(eS);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eS,r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i})(nj);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rj,r=nj,n=Jm;function i(a,o,l,s){if(a==null)return[];l=s?void 0:l,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(l)||(l=l==null?[]:[l]),l=l.map(d=>String(d));const c=(d,p)=>{let g=d;for(let y=0;y<p.length&&g!=null;++y)g=g[p[y]];return g},u=(d,p)=>p==null||d==null?p:typeof d=="object"&&"key"in d?Object.hasOwn(p,d.key)?p[d.key]:c(p,d.path):typeof d=="function"?d(p):Array.isArray(d)?c(p,d):typeof p=="object"?p[d]:p,f=o.map(d=>(Array.isArray(d)&&d.length===1&&(d=d[0]),d==null||typeof d=="function"||Array.isArray(d)||r.isKey(d)?d:{key:d,path:n.toPath(d)}));return a.map(d=>({original:d,criteria:f.map(p=>u(p,d))})).slice().sort((d,p)=>{for(let g=0;g<f.length;g++){const y=t.compareValues(d.criteria[g],p.criteria[g],l[g]);if(y!==0)return y}return 0}).map(d=>d.original)}e.orderBy=i})(tj);var ij={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(l,s)=>{for(let c=0;c<l.length;c++){const u=l[c];Array.isArray(u)&&s<a?o(u,s+1):i.push(u)}};return o(r,0),i}e.flatten=t})(ij);var tS={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qk,r=ey,n=Yk,i=Gk;function a(o,l,s){return n.isObject(s)&&(typeof l=="number"&&r.isArrayLike(s)&&t.isIndex(l)&&l<s.length||typeof l=="string"&&l in s)?i.isEqualsSameValueZero(s[l],o):!1}e.isIterateeCall=a})(tS);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tj,r=ij,n=tS;function i(a,...o){const l=o.length;return l>1&&n.isIterateeCall(a,o[0],o[1])?o=[]:l>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,r.flatten(o),["asc"])}e.sortBy=i})(ej);var qZ=ej.sortBy;const ny=Yn(qZ);var aj=e=>e.legend.settings,VZ=e=>e.legend.size,YZ=e=>e.legend.payload,KZ=H([YZ,aj],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?ny(n,r):n});function GZ(){return ie(KZ)}var vd=1;function oj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=x.useState({height:0,left:0,top:0,width:0}),n=x.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>vd||Math.abs(o.left-t.left)>vd||Math.abs(o.top-t.top)>vd||Math.abs(o.width-t.width)>vd)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function or(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var XZ=typeof Symbol=="function"&&Symbol.observable||"@@observable",TT=XZ,b0=()=>Math.random().toString(36).substring(7).split("").join("."),ZZ={INIT:`@@redux/INIT${b0()}`,REPLACE:`@@redux/REPLACE${b0()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${b0()}`},ig=ZZ;function rS(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function lj(e,t,r){if(typeof e!="function")throw new Error(or(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(or(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(or(1));return r(lj)(e,t)}let n=e,i=t,a=new Map,o=a,l=0,s=!1;function c(){o===a&&(o=new Map,a.forEach((y,m)=>{o.set(m,y)}))}function u(){if(s)throw new Error(or(3));return i}function f(y){if(typeof y!="function")throw new Error(or(4));if(s)throw new Error(or(5));let m=!0;c();const v=l++;return o.set(v,y),function(){if(m){if(s)throw new Error(or(6));m=!1,c(),o.delete(v),a=null}}}function h(y){if(!rS(y))throw new Error(or(7));if(typeof y.type>"u")throw new Error(or(8));if(typeof y.type!="string")throw new Error(or(17));if(s)throw new Error(or(9));try{s=!0,i=n(i,y)}finally{s=!1}return(a=o).forEach(v=>{v()}),y}function d(y){if(typeof y!="function")throw new Error(or(10));n=y,h({type:ig.REPLACE})}function p(){const y=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(or(11));function v(){const S=m;S.next&&S.next(u())}return v(),{unsubscribe:y(v)}},[TT](){return this}}}return h({type:ig.INIT}),{dispatch:h,subscribe:f,getState:u,replaceReducer:d,[TT]:p}}function QZ(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:ig.INIT})>"u")throw new Error(or(12));if(typeof r(void 0,{type:ig.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(or(13))})}function sj(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{QZ(r)}catch(a){i=a}return function(o={},l){if(i)throw i;let s=!1;const c={};for(let u=0;u<n.length;u++){const f=n[u],h=r[f],d=o[f],p=h(d,l);if(typeof p>"u")throw l&&l.type,new Error(or(14));c[f]=p,s=s||p!==d}return s=s||n.length!==Object.keys(o).length,s?c:o}}function ag(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function JZ(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(or(15))};const o={getState:i.getState,dispatch:(s,...c)=>a(s,...c)},l=e.map(s=>s(o));return a=ag(...l)(i.dispatch),{...i,dispatch:a}}}function cj(e){return rS(e)&&"type"in e&&typeof e.type=="string"}var uj=Symbol.for("immer-nothing"),PT=Symbol.for("immer-draftable"),Fr=Symbol.for("immer-state");function oi(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var vn=Object,ic=vn.getPrototypeOf,og="constructor",iy="prototype",vb="configurable",lg="enumerable",lp="writable",Of="value",_a=e=>!!e&&!!e[Fr];function mi(e){var t;return e?fj(e)||oy(e)||!!e[PT]||!!((t=e[og])!=null&&t[PT])||ly(e)||sy(e):!1}var eQ=vn[iy][og].toString(),AT=new WeakMap;function fj(e){if(!e||!nS(e))return!1;const t=ic(e);if(t===null||t===vn[iy])return!0;const r=vn.hasOwnProperty.call(t,og)&&t[og];if(r===Object)return!0;if(!us(r))return!1;let n=AT.get(r);return n===void 0&&(n=Function.toString.call(r),AT.set(r,n)),n===eQ}function ay(e,t,r=!0){dh(e)===0?(r?Reflect.ownKeys(e):vn.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function dh(e){const t=e[Fr];return t?t.type_:oy(e)?1:ly(e)?2:sy(e)?3:0}var OT=(e,t,r=dh(e))=>r===2?e.has(t):vn[iy].hasOwnProperty.call(e,t),xb=(e,t,r=dh(e))=>r===2?e.get(t):e[t],sg=(e,t,r,n=dh(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function tQ(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var oy=Array.isArray,ly=e=>e instanceof Map,sy=e=>e instanceof Set,nS=e=>typeof e=="object",us=e=>typeof e=="function",w0=e=>typeof e=="boolean";function rQ(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var ca=e=>e.copy_||e.base_,iS=e=>e.modified_?e.copy_:e.base_;function bb(e,t){if(ly(e))return new Map(e);if(sy(e))return new Set(e);if(oy(e))return Array[iy].slice.call(e);const r=fj(e);if(t===!0||t==="class_only"&&!r){const n=vn.getOwnPropertyDescriptors(e);delete n[Fr];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],l=n[o];l[lp]===!1&&(l[lp]=!0,l[vb]=!0),(l.get||l.set)&&(n[o]={[vb]:!0,[lp]:!0,[lg]:l[lg],[Of]:e[o]})}return vn.create(ic(e),n)}else{const n=ic(e);if(n!==null&&r)return{...e};const i=vn.create(n);return vn.assign(i,e)}}function aS(e,t=!1){return cy(e)||_a(e)||!mi(e)||(dh(e)>1&&vn.defineProperties(e,{set:xd,add:xd,clear:xd,delete:xd}),vn.freeze(e),t&&ay(e,(r,n)=>{aS(n,!0)},!1)),e}function nQ(){oi(2)}var xd={[Of]:nQ};function cy(e){return e===null||!nS(e)?!0:vn.isFrozen(e)}var cg="MapSet",wb="Patches",MT="ArrayMethods",hj={};function Tl(e){const t=hj[e];return t||oi(0,e),t}var LT=e=>!!hj[e],Mf,dj=()=>Mf,iQ=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:LT(cg)?Tl(cg):void 0,arrayMethodsPlugin_:LT(MT)?Tl(MT):void 0});function IT(e,t){t&&(e.patchPlugin_=Tl(wb),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function kb(e){Sb(e),e.drafts_.forEach(aQ),e.drafts_=null}function Sb(e){e===Mf&&(Mf=e.parent_)}var $T=e=>Mf=iQ(Mf,e);function aQ(e){const t=e[Fr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function DT(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[Fr].modified_&&(kb(t),oi(4)),mi(e)&&(e=NT(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[Fr].base_,e,t)}else e=NT(t,r);return oQ(t,e,!0),kb(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==uj?e:void 0}function NT(e,t){if(cy(t))return t;const r=t[Fr];if(!r)return ug(t,e.handledSet_,e);if(!uy(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);mj(r,e)}return r.copy_}function oQ(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&aS(t,r)}function pj(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var uy=(e,t)=>e.scope_===t,lQ=[];function gj(e,t,r,n){const i=ca(e),a=e.type_;if(n!==void 0&&xb(i,n,a)===t){sg(i,n,r,a);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;ay(i,(s,c)=>{if(_a(c)){const u=l.get(c)||[];u.push(s),l.set(c,u)}})}const o=e.draftLocations_.get(t)??lQ;for(const l of o)sg(i,l,r,a)}function sQ(e,t,r){e.callbacks_.push(function(i){var l;const a=t;if(!a||!uy(a,i))return;(l=i.mapSetPlugin_)==null||l.fixSetContents(a);const o=iS(a);gj(e,a.draft_??a,o,r),mj(a,i)})}function mj(e,t){var n;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((n=e.assigned_)==null?void 0:n.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const a=i.getPath(e);a&&i.generatePatches_(e,a,t)}pj(e)}}function cQ(e,t,r){const{scope_:n}=e;if(_a(r)){const i=r[Fr];uy(i,n)&&i.callbacks_.push(function(){sp(e);const o=iS(i);gj(e,r,o,t)})}else mi(r)&&e.callbacks_.push(function(){const a=ca(e);e.type_===3?a.has(r)&&ug(r,n.handledSet_,n):xb(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ug(xb(e.copy_,t,e.type_),n.handledSet_,n)})}function ug(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||_a(e)||t.has(e)||!mi(e)||cy(e)||(t.add(e),ay(e,(n,i)=>{if(_a(i)){const a=i[Fr];if(uy(a,r)){const o=iS(a);sg(e,n,o,e.type_),pj(a)}}else mi(i)&&ug(i,t,r)})),e}function uQ(e,t){const r=oy(e),n={type_:r?1:0,scope_:t?t.scope_:dj(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,a=fg;r&&(i=[n],a=Lf);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=o,[l,n]}var fg={get(e,t){if(t===Fr)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r!=null&&r.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=ca(e);if(!OT(i,t,e.type_))return fQ(e,i,t);const a=i[t];if(e.finalized_||!mi(a)||n&&e.operationMethod&&(r!=null&&r.isMutatingArrayMethod(e.operationMethod))&&rQ(t))return a;if(a===k0(e.base_,t)){sp(e);const o=e.type_===1?+t:t,l=_b(e.scope_,a,e,o);return e.copy_[o]=l}return a},has(e,t){return t in ca(e)},ownKeys(e){return Reflect.ownKeys(ca(e))},set(e,t,r){const n=yj(ca(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=k0(ca(e),t),a=i==null?void 0:i[Fr];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(tQ(r,i)&&(r!==void 0||OT(e.base_,t,e.type_)))return!0;sp(e),Cb(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),cQ(e,t,r)),!0},deleteProperty(e,t){return sp(e),k0(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Cb(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=ca(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[lp]:!0,[vb]:e.type_!==1||t!=="length",[lg]:n[lg],[Of]:r[t]}},defineProperty(){oi(11)},getPrototypeOf(e){return ic(e.base_)},setPrototypeOf(){oi(12)}},Lf={};for(let e in fg){let t=fg[e];Lf[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Lf.deleteProperty=function(e,t){return Lf.set.call(this,e,t,void 0)};Lf.set=function(e,t,r){return fg.set.call(this,e[0],t,r,e[0])};function k0(e,t){const r=e[Fr];return(r?ca(r):e)[t]}function fQ(e,t,r){var i;const n=yj(t,r);return n?Of in n?n[Of]:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function yj(e,t){if(!(t in e))return;let r=ic(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ic(r)}}function Cb(e){e.modified_||(e.modified_=!0,e.parent_&&Cb(e.parent_))}function sp(e){e.copy_||(e.assigned_=new Map,e.copy_=bb(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var hQ=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(us(r)&&!us(n)){const o=n;n=r;const l=this;return function(c=o,...u){return l.produce(c,f=>n.call(this,f,...u))}}us(n)||oi(6),i!==void 0&&!us(i)&&oi(7);let a;if(mi(r)){const o=$T(this),l=_b(o,r,void 0);let s=!0;try{a=n(l),s=!1}finally{s?kb(o):Sb(o)}return IT(o,i),DT(a,o)}else if(!r||!nS(r)){if(a=n(r),a===void 0&&(a=r),a===uj&&(a=void 0),this.autoFreeze_&&aS(a,!0),i){const o=[],l=[];Tl(wb).generateReplacementPatches_(r,a,{patches_:o,inversePatches_:l}),i(o,l)}return a}else oi(1,r)},this.produceWithPatches=(r,n)=>{if(us(r))return(l,...s)=>this.produceWithPatches(l,c=>r(c,...s));let i,a;return[this.produce(r,n,(l,s)=>{i=l,a=s}),i,a]},w0(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),w0(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),w0(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){mi(t)||oi(8),_a(t)&&(t=hi(t));const r=$T(this),n=_b(r,t,void 0);return n[Fr].isManual_=!0,Sb(r),n}finishDraft(t,r){const n=t&&t[Fr];(!n||!n.isManual_)&&oi(9);const{scope_:i}=n;return IT(i,r),DT(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const a=r[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(r=r.slice(n+1));const i=Tl(wb).applyPatches_;return _a(t)?i(t,r):this.produce(t,a=>i(a,r))}};function _b(e,t,r,n){const[i,a]=ly(t)?Tl(cg).proxyMap_(t,r):sy(t)?Tl(cg).proxySet_(t,r):uQ(t,r);return((r==null?void 0:r.scope_)??dj()).drafts_.push(i),a.callbacks_=(r==null?void 0:r.callbacks_)??[],a.key_=n,r&&n!==void 0?sQ(r,a,n):a.callbacks_.push(function(s){var u;(u=s.mapSetPlugin_)==null||u.fixSetContents(a);const{patchPlugin_:c}=s;a.modified_&&c&&c.generatePatches_(a,[],s)}),i}function hi(e){return _a(e)||oi(10,e),vj(e)}function vj(e){if(!mi(e)||cy(e))return e;const t=e[Fr];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=bb(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=bb(e,!0);return ay(r,(i,a)=>{sg(r,i,vj(a))},n),t&&(t.finalized_=!1),r}var dQ=new hQ,xj=dQ.produce;function bj(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var pQ=bj(),gQ=bj,mQ=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ag:ag.apply(null,arguments)};function Wn(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(bn(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>cj(n)&&n.type===e,r}var wj=class Ou extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ou.prototype)}static get[Symbol.species](){return Ou}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ou(...t[0].concat(this)):new Ou(...t.concat(this))}};function jT(e){return mi(e)?xj(e,()=>{}):e}function bd(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function yQ(e){return typeof e=="boolean"}var vQ=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new wj;return r&&(yQ(r)?o.push(pQ):o.push(gQ(r.extraArgument))),o},kj="RTK_autoBatch",ft=()=>e=>({payload:e,meta:{[kj]:!0}}),RT=e=>t=>{setTimeout(t,e)},Sj=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const l=new Set,s=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:RT(10):e.type==="callback"?e.queueNotification:RT(e.timeout),c=()=>{o=!1,a&&(a=!1,l.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const f=()=>i&&u(),h=n.subscribe(f);return l.add(u),()=>{h(),l.delete(u)}},dispatch(u){var f;try{return i=!((f=u==null?void 0:u.meta)!=null&&f[kj]),a=!i,a&&(o||(o=!0,s(c))),n.dispatch(u)}finally{i=!0}}})},xQ=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new wj(e);return n&&i.push(Sj(typeof n=="object"?n:void 0)),i};function bQ(e){const t=vQ(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(rS(r))l=sj(r);else throw new Error(bn(1));let s;typeof n=="function"?s=n(t):s=t();let c=ag;i&&(c=mQ({trace:!1,...typeof i=="object"&&i}));const u=JZ(...s),f=xQ(u);let h=typeof o=="function"?o(f):f();const d=c(...h);return lj(l,a,d)}function Cj(e){const t={},r=[];let n;const i={addCase(a,o){const l=typeof a=="string"?a:a.type;if(!l)throw new Error(bn(28));if(l in t)throw new Error(bn(29));return t[l]=o,i},addAsyncThunk(a,o){return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function wQ(e){return typeof e=="function"}function kQ(e,t){let[r,n,i]=Cj(t),a;if(wQ(e))a=()=>jT(e());else{const l=jT(e);a=()=>l}function o(l=a(),s){let c=[r[s.type],...n.filter(({matcher:u})=>u(s)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,f)=>{if(f)if(_a(u)){const d=f(u,s);return d===void 0?u:d}else{if(mi(u))return xj(u,h=>f(h,s));{const h=f(u,s);if(h===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return u},l)}return o.getInitialState=a,o}var SQ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",CQ=(e=21)=>{let t="",r=e;for(;r--;)t+=SQ[Math.random()*64|0];return t},_Q=Symbol.for("rtk-slice-createasyncthunk");function EQ(e,t){return`${e}/${t}`}function TQ({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[_Q];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(bn(11));const l=(typeof i.reducers=="function"?i.reducers(AQ()):i.reducers)||{},s=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(S,C){const w=typeof S=="string"?S:S.type;if(!w)throw new Error(bn(12));if(w in c.sliceCaseReducersByType)throw new Error(bn(13));return c.sliceCaseReducersByType[w]=C,u},addMatcher(S,C){return c.sliceMatchers.push({matcher:S,reducer:C}),u},exposeAction(S,C){return c.actionCreators[S]=C,u},exposeCaseReducer(S,C){return c.sliceCaseReducersByName[S]=C,u}};s.forEach(S=>{const C=l[S],w={reducerName:S,type:EQ(a,S),createNotation:typeof i.reducers=="function"};MQ(C)?IQ(w,C,u,t):OQ(w,C,u)});function f(){const[S={},C=[],w=void 0]=typeof i.extraReducers=="function"?Cj(i.extraReducers):[i.extraReducers],_={...S,...c.sliceCaseReducersByType};return kQ(i.initialState,P=>{for(let I in _)P.addCase(I,_[I]);for(let I of c.sliceMatchers)P.addMatcher(I.matcher,I.reducer);for(let I of C)P.addMatcher(I.matcher,I.reducer);w&&P.addDefaultCase(w)})}const h=S=>S,d=new Map,p=new WeakMap;let g;function y(S,C){return g||(g=f()),g(S,C)}function m(){return g||(g=f()),g.getInitialState()}function v(S,C=!1){function w(P){let I=P[S];return typeof I>"u"&&C&&(I=bd(p,w,m)),I}function _(P=h){const I=bd(d,C,()=>new WeakMap);return bd(I,P,()=>{const $={};for(const[A,M]of Object.entries(i.selectors??{}))$[A]=PQ(M,P,()=>bd(p,P,m),C);return $})}return{reducerPath:S,getSelectors:_,get selectors(){return _(w)},selectSlice:w}}const b={name:a,reducer:y,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:m,...v(o),injectInto(S,{reducerPath:C,...w}={}){const _=C??o;return S.inject({reducerPath:_,reducer:y},w),{...b,...v(_,!0)}}};return b}}function PQ(e,t,r,n){function i(a,...o){let l=t(a);return typeof l>"u"&&n&&(l=r()),e(l,...o)}return i.unwrapped=e,i}var cn=TQ();function AQ(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function OQ({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!LQ(n))throw new Error(bn(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Wn(e,o):Wn(e))}function MQ(e){return e._reducerDefinitionType==="asyncThunk"}function LQ(e){return e._reducerDefinitionType==="reducerWithPrepare"}function IQ({type:e,reducerName:t},r,n,i){if(!i)throw new Error(bn(18));const{payloadCreator:a,fulfilled:o,pending:l,rejected:s,settled:c,options:u}=r,f=i(e,a,u);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),l&&n.addCase(f.pending,l),s&&n.addCase(f.rejected,s),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:o||wd,pending:l||wd,rejected:s||wd,settled:c||wd})}function wd(){}var $Q="task",_j="listener",Ej="completed",oS="cancelled",DQ=`task-${oS}`,NQ=`task-${Ej}`,Eb=`${_j}-${oS}`,jQ=`${_j}-${Ej}`,fy=class{constructor(e){He(this,"name","TaskAbortError");He(this,"message");this.code=e,this.message=`${$Q} ${oS} (reason: ${e})`}},lS=(e,t)=>{if(typeof e!="function")throw new TypeError(bn(32))},hg=()=>{},Tj=(e,t=hg)=>(e.catch(t),e),Pj=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),hl=e=>{if(e.aborted)throw new fy(e.reason)};function Aj(e,t){let r=hg;return new Promise((n,i)=>{const a=()=>i(new fy(e.reason));if(e.aborted){a();return}r=Pj(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=hg})}var RQ=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof fy?"cancelled":"rejected",error:r}}finally{t==null||t()}},dg=e=>t=>Tj(Aj(e,t).then(r=>(hl(e),r))),Oj=e=>{const t=dg(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:js}=Object,BT={},hy="listenerMiddleware",BQ=(e,t)=>{const r=n=>Pj(e,()=>n.abort(e.reason));return(n,i)=>{lS(n);const a=new AbortController;r(a);const o=RQ(async()=>{hl(e),hl(a.signal);const l=await n({pause:dg(a.signal),delay:Oj(a.signal),signal:a.signal});return hl(a.signal),l},()=>a.abort(NQ));return i!=null&&i.autoJoin&&t.push(o.catch(hg)),{result:dg(e)(o),cancel(){a.abort(DQ)}}}},FQ=(e,t)=>{const r=async(n,i)=>{hl(t);let a=()=>{};const l=[new Promise((s,c)=>{let u=e({predicate:n,effect:(f,h)=>{h.unsubscribe(),s([f,h.getState(),h.getOriginalState()])}});a=()=>{u(),c()}})];i!=null&&l.push(new Promise(s=>setTimeout(s,i,null)));try{const s=await Aj(t,Promise.race(l));return hl(t),s}finally{a()}};return(n,i)=>Tj(r(n,i))},Mj=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Wn(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(bn(21));return lS(a),{predicate:i,type:t,effect:a}},Lj=js(e=>{const{type:t,predicate:r,effect:n}=Mj(e);return{id:CQ(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(bn(22))}}},{withTypes:()=>Lj}),FT=(e,t)=>{const{type:r,effect:n,predicate:i}=Mj(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},Tb=e=>{e.pending.forEach(t=>{t.abort(Eb)})},zQ=(e,t)=>()=>{for(const r of t.keys())Tb(r);e.clear()},zT=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Ij=js(Wn(`${hy}/add`),{withTypes:()=>Ij}),WQ=Wn(`${hy}/removeAll`),$j=js(Wn(`${hy}/remove`),{withTypes:()=>$j}),HQ=(...e)=>{console.error(`${hy}/error`,...e)},ph=(e={})=>{const t=new Map,r=new Map,n=d=>{const p=r.get(d)??0;r.set(d,p+1)},i=d=>{const p=r.get(d)??1;p===1?r.delete(d):r.set(d,p-1)},{extra:a,onError:o=HQ}=e;lS(o);const l=d=>(d.unsubscribe=()=>t.delete(d.id),t.set(d.id,d),p=>{d.unsubscribe(),p!=null&&p.cancelActive&&Tb(d)}),s=d=>{const p=FT(t,d)??Lj(d);return l(p)};js(s,{withTypes:()=>s});const c=d=>{const p=FT(t,d);return p&&(p.unsubscribe(),d.cancelActive&&Tb(p)),!!p};js(c,{withTypes:()=>c});const u=async(d,p,g,y)=>{const m=new AbortController,v=FQ(s,m.signal),b=[];try{d.pending.add(m),n(d),await Promise.resolve(d.effect(p,js({},g,{getOriginalState:y,condition:(S,C)=>v(S,C).then(Boolean),take:v,delay:Oj(m.signal),pause:dg(m.signal),extra:a,signal:m.signal,fork:BQ(m.signal,b),unsubscribe:d.unsubscribe,subscribe:()=>{t.set(d.id,d)},cancelActiveListeners:()=>{d.pending.forEach((S,C,w)=>{S!==m&&(S.abort(Eb),w.delete(S))})},cancel:()=>{m.abort(Eb),d.pending.delete(m)},throwIfCancelled:()=>{hl(m.signal)}})))}catch(S){S instanceof fy||zT(o,S,{raisedBy:"effect"})}finally{await Promise.all(b),m.abort(jQ),i(d),d.pending.delete(m)}},f=zQ(t,r);return{middleware:d=>p=>g=>{if(!cj(g))return p(g);if(Ij.match(g))return s(g.payload);if(WQ.match(g)){f();return}if($j.match(g))return c(g.payload);let y=d.getState();const m=()=>{if(y===BT)throw new Error(bn(23));return y};let v;try{if(v=p(g),t.size>0){const b=d.getState(),S=Array.from(t.values());for(const C of S){let w=!1;try{w=C.predicate(g,b,y)}catch(_){w=!1,zT(o,_,{raisedBy:"predicate"})}w&&u(C,g,d,m)}}}finally{y=BT}return v},startListening:s,stopListening:c,clearListeners:f}};function bn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var UQ={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Dj=cn({name:"chartLayout",initialState:UQ,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:qQ,setLayout:VQ,setChartSize:YQ,setScale:KQ}=Dj.actions,GQ=Dj.reducer;function Nj(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function Ae(e){return Number.isFinite(e)}function Yi(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function WT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Es(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WT(Object(r),!0).forEach(function(n){XQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XQ(e,t,r){return(t=ZQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZQ(e){var t=QQ(e,"string");return typeof t=="symbol"?t:t+""}function QQ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xe(e,t,r){return xt(e)||xt(t)?r:zn(t)?_l(e,t,r):typeof t=="function"?t(e):r}var JQ=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:l}=t;if((l==="vertical"||l==="horizontal"&&o==="middle")&&a!=="center"&&oe(e[a]))return Es(Es({},e),{},{[a]:e[a]+(n||0)});if((l==="horizontal"||l==="vertical"&&a==="center")&&o!=="middle"&&oe(e[o]))return Es(Es({},e),{},{[o]:e[o]+(i||0)})}return e},Na=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",jj=(e,t,r,n)=>{if(n)return e.map(l=>l.coordinate);var i,a,o=e.map(l=>(l.coordinate===t&&(i=!0),l.coordinate===r&&(a=!0),l.coordinate));return i||o.push(t),a||o.push(r),o},Rj=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:l,isCategorical:s,categoricalDomain:c,tickCount:u,ticks:f,niceTicks:h,axisType:d}=e;if(!o)return null;var p=l==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,g=i==="category"&&o.bandwidth?o.bandwidth()/p:0;if(g=d==="angleAxis"&&a&&a.length>=2?er(a[0]-a[1])*2*g:g,f||h){var y=(f||h||[]).map((m,v)=>{var b=n?n.indexOf(m):m,S=o.map(b);return Ae(S)?{coordinate:S+g,value:m,offset:g,index:v}:null}).filter(tn);return y}return s&&c?c.map((m,v)=>{var b=o.map(m);return Ae(b)?{coordinate:b+g,value:m,index:v,offset:g}:null}).filter(tn):o.ticks&&u!=null?o.ticks(u).map((m,v)=>{var b=o.map(m);return Ae(b)?{coordinate:b+g,value:m,index:v,offset:g}:null}).filter(tn):o.domain().map((m,v)=>{var b=o.map(m);return Ae(b)?{coordinate:b+g,value:n?n[m]:m,index:v,offset:g}:null}).filter(tn)},eJ=(e,t)=>{if(!t||t.length!==2||!oe(t[0])||!oe(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!oe(e[0])||e[0]<r)&&(i[0]=r),(!oe(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},tJ=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0,l=0;l<r;++l){var s=e[l],c=s==null?void 0:s[i];if(c!=null){var u=c[1],f=c[0],h=Vi(u)?f:u;h>=0?(c[0]=a,a+=h,c[1]=a):(c[0]=o,o+=h,c[1]=o)}}}},rJ=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0;o<r;++o){var l=e[o],s=l==null?void 0:l[i];if(s!=null){var c=Vi(s[1])?s[0]:s[1];c>=0?(s[0]=a,a+=c,s[1]=a):(s[0]=0,s[1]=0)}}}},nJ={sign:tJ,expand:jX,none:Cl,silhouette:RX,wiggle:BX,positive:rJ},iJ=(e,t,r)=>{var n,i=(n=nJ[r])!==null&&n!==void 0?n:Cl,a=NX().keys(t).value((l,s)=>Number(Xe(l,s,0))).order(mb).offset(i),o=a(e);return o.forEach((l,s)=>{l.forEach((c,u)=>{var f=Xe(e[u],t[s],0);Array.isArray(f)&&f.length===2&&oe(f[0])&&oe(f[1])&&(c[0]=f[0],c[1]=f[1])})}),o};function aJ(e){return e==null?void 0:String(e)}function HT(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!xt(i[t.dataKey])){var l=TN(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var s=Xe(i,xt(o)?t.dataKey:o),c=t.scale.map(s);return oe(c)?c:null}var UT=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var l=Xe(a,t.dataKey,t.scale.domain()[o]);if(xt(l))return null;var s=t.scale.map(l);return oe(s)?s-i/2+n:null},oJ=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},lJ=e=>{var t=e.flat(2).filter(oe);return[Math.min(...t),Math.max(...t)]},sJ=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],cJ=(e,t,r)=>{if(e!=null)return sJ(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,l=o.reduce((s,c)=>{var u=Nj(c,t,r),f=lJ(u);return!Ae(f[0])||!Ae(f[1])?s:[Math.min(s[0],f[0]),Math.max(s[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],n[0]),Math.max(l[1],n[1])]},[1/0,-1/0]))},qT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,VT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ac=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=ny(t,u=>u.coordinate),a=1/0,o=1,l=i.length;o<l;o++){var s=i[o],c=i[o-1];a=Math.min(((s==null?void 0:s.coordinate)||0)-((c==null?void 0:c.coordinate)||0),a)}return a===1/0?0:a}return r?void 0:0};function YT(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return Es(Es({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Pc(e,t){if(e)return String(e);if(typeof t=="string")return t}var uJ=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},fJ=(e,t)=>t==="centric"?e.angle:e.radius,ja=e=>e.layout.width,Ra=e=>e.layout.height,hJ=e=>e.layout.scale,Bj=e=>e.layout.margin,dy=H(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),py=H(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Fj="data-recharts-item-index",zj="data-recharts-item-id",gh=60;function KT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KT(Object(r),!0).forEach(function(n){dJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dJ(e,t,r){return(t=pJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pJ(e){var t=gJ(e,"string");return typeof t=="symbol"?t:t+""}function gJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mJ=e=>e.brush.height;function yJ(e){var t=py(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:gh;return r+i}return r},0)}function vJ(e){var t=py(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:gh;return r+i}return r},0)}function xJ(e){var t=dy(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function bJ(e){var t=dy(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Vt=H([ja,Ra,Bj,mJ,yJ,vJ,xJ,bJ,aj,VZ],(e,t,r,n,i,a,o,l,s,c)=>{var u={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+l},h=kd(kd({},f),u),d=h.bottom;h.bottom+=n,h=JQ(h,s,c);var p=e-h.left-h.right,g=t-h.top-h.bottom;return kd(kd({brushBottom:d},h),{},{width:Math.max(p,0),height:Math.max(g,0)})}),wJ=H(Vt,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),sS=H(ja,Ra,(e,t)=>({x:0,y:0,width:e,height:t})),kJ=x.createContext(null),hr=()=>x.useContext(kJ)!=null,gy=e=>e.brush,my=H([gy,Vt,Bj],(e,t,r)=>({height:e.height,x:oe(e.x)?e.x:t.left,y:oe(e.y)?e.y:t.top+t.height+t.brushBottom-((r==null?void 0:r.bottom)||0),width:oe(e.width)?e.width:t.width})),Wj={},Hj={},Uj={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,l=null;const s=a!=null&&a.includes("leading"),c=a==null||a.includes("trailing"),u=()=>{l!==null&&(r.apply(o,l),o=void 0,l=null)},f=()=>{c&&u(),g()};let h=null;const d=()=>{h!=null&&clearTimeout(h),h=setTimeout(()=>{h=null,f()},n)},p=()=>{h!==null&&(clearTimeout(h),h=null)},g=()=>{p(),o=void 0,l=null},y=()=>{u()},m=function(...v){if(i!=null&&i.aborted)return;o=this,l=v;const b=h==null;d(),s&&b&&u()};return m.schedule=d,m.cancel=g,m.flush=y,i==null||i.addEventListener("abort",g,{once:!0}),m}e.debounce=t})(Uj);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Uj;function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:l=!0,maxWait:s}=a,c=Array(2);o&&(c[0]="leading"),l&&(c[1]="trailing");let u,f=null;const h=t.debounce(function(...g){u=n.apply(this,g),f=null},i,{edges:c}),d=function(...g){return s!=null&&(f===null&&(f=Date.now()),Date.now()-f>=s)?(u=n.apply(this,g),f=Date.now(),h.cancel(),h.schedule(),u):(h.apply(this,g),u)},p=()=>(h.flush(),u);return d.cancel=h.cancel,d.flush=p,d}e.debounce=r})(Hj);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Hj;function r(n,i=0,a={}){const{leading:o=!0,trailing:l=!0}=a;return t.debounce(n,i,{leading:o,maxWait:i,trailing:l})}e.throttle=r})(Wj);var SJ=Wj.throttle;const CJ=Yn(SJ);var pg=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,()=>i[o++]))}},Ri={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},qj=(e,t,r)=>{var{width:n=Ri.width,height:i=Ri.height,aspect:a,maxHeight:o}=r,l=El(n)?e:Number(n),s=El(i)?t:Number(i);return a&&a>0&&(l?s=l/a:s&&(l=s*a),o&&s!=null&&s>o&&(s=o)),{calculatedWidth:l,calculatedHeight:s}},_J={width:0,height:0,overflow:"visible"},EJ={width:0,overflowX:"visible"},TJ={height:0,overflowY:"visible"},PJ={},AJ=e=>{var{width:t,height:r}=e,n=El(t),i=El(r);return n&&i?_J:n?EJ:i?TJ:PJ};function OJ(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i=Ri.width,a=Ri.height):i===void 0?i=n&&n>0?void 0:Ri.width:a===void 0&&(a=n&&n>0?void 0:Ri.height),{width:i,height:a}}function Pb(){return Pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pb.apply(null,arguments)}function GT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GT(Object(r),!0).forEach(function(n){MJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MJ(e,t,r){return(t=LJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LJ(e){var t=IJ(e,"string");return typeof t=="symbol"?t:t+""}function IJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vj=x.createContext(Ri.initialDimension);function $J(e){return Yi(e.width)&&Yi(e.height)}function Yj(e){var{children:t,width:r,height:n}=e,i=x.useMemo(()=>({width:r,height:n}),[r,n]);return $J(i)?x.createElement(Vj.Provider,{value:i},t):null}var cS=()=>x.useContext(Vj),DJ=x.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=Ri.initialDimension,width:i,height:a,minWidth:o=Ri.minWidth,minHeight:l,maxHeight:s,children:c,debounce:u=Ri.debounce,id:f,className:h,onResize:d,style:p={}}=e,g=x.useRef(null),y=x.useRef();y.current=d,x.useImperativeHandle(t,()=>g.current);var[m,v]=x.useState({containerWidth:n.width,containerHeight:n.height}),b=x.useCallback((P,I)=>{v($=>{var A=Math.round(P),M=Math.round(I);return $.containerWidth===A&&$.containerHeight===M?$:{containerWidth:A,containerHeight:M}})},[]);x.useEffect(()=>{if(g.current==null||typeof ResizeObserver>"u")return Hl;var P=M=>{var F,N=M[0];if(N!=null){var{width:D,height:j}=N.contentRect;b(D,j),(F=y.current)===null||F===void 0||F.call(y,D,j)}};u>0&&(P=CJ(P,u,{trailing:!0,leading:!1}));var I=new ResizeObserver(P),{width:$,height:A}=g.current.getBoundingClientRect();return b($,A),I.observe(g.current),()=>{I.disconnect()}},[b,u]);var{containerWidth:S,containerHeight:C}=m;pg(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:w,calculatedHeight:_}=qj(S,C,{width:i,height:a,aspect:r,maxHeight:s});return pg(w!=null&&w>0||_!=null&&_>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
86
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
87
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
88
|
+
height and width.`,w,_,i,a,o,l,r),x.createElement("div",{id:f?"".concat(f):void 0,className:je("recharts-responsive-container",h),style:XT(XT({},p),{},{width:i,height:a,minWidth:o,minHeight:l,maxHeight:s}),ref:g},x.createElement("div",{style:AJ({width:i,height:a})},x.createElement(Yj,{width:w,height:_},c)))}),uS=x.forwardRef((e,t)=>{var r=cS();if(Yi(r.width)&&Yi(r.height))return e.children;var{width:n,height:i}=OJ({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=qj(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return oe(a)&&oe(o)?x.createElement(Yj,{width:a,height:o},e.children):x.createElement(DJ,Pb({},e,{width:n,height:i,ref:t}))});function fS(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var mh=()=>{var e,t=hr(),r=ie(wJ),n=ie(my),i=(e=ie(gy))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},NJ={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Kj=()=>{var e;return(e=ie(Vt))!==null&&e!==void 0?e:NJ},hS=()=>ie(ja),dS=()=>ie(Ra),jJ=()=>ie(e=>e.layout.margin),Fe=e=>e.layout.layoutType,Ul=()=>ie(Fe),Gj=()=>{var e=Ul();if(e==="horizontal"||e==="vertical")return e},Xj=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},RJ=()=>{var e=Ul();return e!==void 0},yh=e=>{var t=Qe(),r=hr(),{width:n,height:i}=e,a=cS(),o=n,l=i;return a&&(o=a.width>0?a.width:n,l=a.height>0?a.height:i),x.useEffect(()=>{!r&&Yi(o)&&Yi(l)&&t(YQ({width:o,height:l}))},[t,r,o,l]),null},Zj=Symbol.for("immer-nothing"),ZT=Symbol.for("immer-draftable"),Cn=Symbol.for("immer-state");function li(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var If=Object.getPrototypeOf;function oc(e){return!!e&&!!e[Cn]}function Pl(e){var t;return e?Qj(e)||Array.isArray(e)||!!e[ZT]||!!((t=e.constructor)!=null&&t[ZT])||vh(e)||vy(e):!1}var BJ=Object.prototype.constructor.toString(),QT=new WeakMap;function Qj(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=QT.get(r);return n===void 0&&(n=Function.toString.call(r),QT.set(r,n)),n===BJ}function gg(e,t,r=!0){yy(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function yy(e){const t=e[Cn];return t?t.type_:Array.isArray(e)?1:vh(e)?2:vy(e)?3:0}function Ab(e,t){return yy(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Jj(e,t,r){const n=yy(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function FJ(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function vh(e){return e instanceof Map}function vy(e){return e instanceof Set}function Ko(e){return e.copy_||e.base_}function Ob(e,t){if(vh(e))return new Map(e);if(vy(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Qj(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Cn];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],l=n[o];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(n[o]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[o]})}return Object.create(If(e),n)}else{const n=If(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function pS(e,t=!1){return xy(e)||oc(e)||!Pl(e)||(yy(e)>1&&Object.defineProperties(e,{set:Sd,add:Sd,clear:Sd,delete:Sd}),Object.freeze(e),t&&Object.values(e).forEach(r=>pS(r,!0))),e}function zJ(){li(2)}var Sd={value:zJ};function xy(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var WJ={};function Al(e){const t=WJ[e];return t||li(0,e),t}var $f;function eR(){return $f}function HJ(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function JT(e,t){t&&(Al("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Mb(e){Lb(e),e.drafts_.forEach(UJ),e.drafts_=null}function Lb(e){e===$f&&($f=e.parent_)}function eP(e){return $f=HJ($f,e)}function UJ(e){const t=e[Cn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function tP(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Cn].modified_&&(Mb(t),li(4)),Pl(e)&&(e=mg(t,e),t.parent_||yg(t,e)),t.patches_&&Al("Patches").generateReplacementPatches_(r[Cn].base_,e,t.patches_,t.inversePatches_)):e=mg(t,r,[]),Mb(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Zj?e:void 0}function mg(e,t,r){if(xy(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[Cn];if(!i)return gg(t,(a,o)=>rP(e,i,t,a,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return yg(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let o=a,l=!1;i.type_===3&&(o=new Set(a),a.clear(),l=!0),gg(o,(s,c)=>rP(e,i,a,s,c,r,l),n),yg(e,a,!1),r&&e.patches_&&Al("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function rP(e,t,r,n,i,a,o){if(i==null||typeof i!="object"&&!o)return;const l=xy(i);if(!(l&&!o)){if(oc(i)){const s=a&&t&&t.type_!==3&&!Ab(t.assigned_,n)?a.concat(n):void 0,c=mg(e,i,s);if(Jj(r,n,c),oc(c))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Pl(i)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&l)return;mg(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(vh(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&yg(e,i)}}}function yg(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&pS(t,r)}function qJ(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:eR(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=gS;r&&(i=[n],a=Df);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=o,l}var gS={get(e,t){if(t===Cn)return e;const r=Ko(e);if(!Ab(r,t))return VJ(e,r,t);const n=r[t];return e.finalized_||!Pl(n)?n:n===S0(e.base_,t)?(C0(e),e.copy_[t]=$b(n,e)):n},has(e,t){return t in Ko(e)},ownKeys(e){return Reflect.ownKeys(Ko(e))},set(e,t,r){const n=tR(Ko(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=S0(Ko(e),t),a=i==null?void 0:i[Cn];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(FJ(r,i)&&(r!==void 0||Ab(e.base_,t)))return!0;C0(e),Ib(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return S0(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,C0(e),Ib(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ko(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){li(11)},getPrototypeOf(e){return If(e.base_)},setPrototypeOf(){li(12)}},Df={};gg(gS,(e,t)=>{Df[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Df.deleteProperty=function(e,t){return Df.set.call(this,e,t,void 0)};Df.set=function(e,t,r){return gS.set.call(this,e[0],t,r,e[0])};function S0(e,t){const r=e[Cn];return(r?Ko(r):e)[t]}function VJ(e,t,r){var i;const n=tR(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function tR(e,t){if(!(t in e))return;let r=If(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=If(r)}}function Ib(e){e.modified_||(e.modified_=!0,e.parent_&&Ib(e.parent_))}function C0(e){e.copy_||(e.copy_=Ob(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var YJ=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(s=a,...c){return o.produce(s,u=>r.call(this,u,...c))}}typeof r!="function"&&li(6),n!==void 0&&typeof n!="function"&&li(7);let i;if(Pl(t)){const a=eP(this),o=$b(t,void 0);let l=!0;try{i=r(o),l=!1}finally{l?Mb(a):Lb(a)}return JT(a,n),tP(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Zj&&(i=void 0),this.autoFreeze_&&pS(i,!0),n){const a=[],o=[];Al("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else li(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...l)=>this.produceWithPatches(o,s=>t(s,...l));let n,i;return[this.produce(t,r,(o,l)=>{n=o,i=l}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Pl(e)||li(8),oc(e)&&(e=KJ(e));const t=eP(this),r=$b(e,void 0);return r[Cn].isManual_=!0,Lb(t),r}finishDraft(e,t){const r=e&&e[Cn];(!r||!r.isManual_)&&li(9);const{scope_:n}=r;return JT(n,t),tP(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Al("Patches").applyPatches_;return oc(e)?n(e,t):this.produce(e,i=>n(i,t))}};function $b(e,t){const r=vh(e)?Al("MapSet").proxyMap_(e,t):vy(e)?Al("MapSet").proxySet_(e,t):qJ(e,t);return(t?t.scope_:eR()).drafts_.push(r),r}function KJ(e){return oc(e)||li(10,e),rR(e)}function rR(e){if(!Pl(e)||xy(e))return e;const t=e[Cn];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Ob(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Ob(e,!0);return gg(r,(i,a)=>{Jj(r,i,rR(a))},n),t&&(t.finalized_=!1),r}var GJ=new YJ;GJ.produce;var XJ={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},nR=cn({name:"legend",initialState:XJ,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:ft()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=hi(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:ft()},removeLegendPayload:{reducer(e,t){var r=hi(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:ft()}}}),{setLegendSize:nP,setLegendSettings:ZJ,addLegendPayload:iR,replaceLegendPayload:aR,removeLegendPayload:oR}=nR.actions,QJ=nR.reducer,JJ=["contextPayload"];function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Db.apply(null,arguments)}function iP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iP(Object(r),!0).forEach(function(n){eee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eee(e,t,r){return(t=tee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tee(e){var t=ree(e,"string");return typeof t=="symbol"?t:t+""}function ree(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nee(e,t){if(e==null)return{};var r,n,i=iee(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function iee(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function aee(e){return e.value}function oee(e){var{contextPayload:t}=e,r=nee(e,JJ),n=KN(t,e.payloadUniqBy,aee),i=lc(lc({},r),{},{payload:n});return x.isValidElement(e.content)?x.cloneElement(e.content,i):typeof e.content=="function"?x.createElement(e.content,i):x.createElement(fZ,i)}function lee(e,t,r,n,i,a){var{layout:o,align:l,verticalAlign:s}=t,c,u;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(l==="center"&&o==="vertical"?c={left:((n||0)-a.width)/2}:c=l==="right"?{right:r&&r.right||0}:{left:r&&r.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(s==="middle"?u={top:((i||0)-a.height)/2}:u=s==="bottom"?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),lc(lc({},c),u)}function see(e){var t=Qe();return x.useEffect(()=>{t(ZJ(e))},[t,e]),null}function cee(e){var t=Qe();return x.useEffect(()=>(t(nP(e)),()=>{t(nP({width:0,height:0}))}),[t,e]),null}function uee(e,t,r,n){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:r||n}:null}var fee={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function by(e){var t=At(e,fee),r=GZ(),n=dX(),i=jJ(),{width:a,height:o,wrapperStyle:l,portal:s}=t,[c,u]=oj([r]),f=hS(),h=dS();if(f==null||h==null)return null;var d=f-((i==null?void 0:i.left)||0)-((i==null?void 0:i.right)||0),p=uee(t.layout,o,a,d),g=s?l:lc(lc({position:"absolute",width:(p==null?void 0:p.width)||a||"auto",height:(p==null?void 0:p.height)||o||"auto"},lee(l,t,i,f,h,c)),l),y=s??n;if(y==null||r==null)return null;var m=x.createElement("div",{className:"recharts-legend-wrapper",style:g,ref:u},x.createElement(see,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!s&&x.createElement(cee,{width:c.width,height:c.height}),x.createElement(oee,Db({},t,p,{margin:i,chartWidth:f,chartHeight:h,contextPayload:r})));return Fm.createPortal(m,y)}by.displayName="Legend";function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nb.apply(null,arguments)}function aP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ou(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aP(Object(r),!0).forEach(function(n){hee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hee(e,t,r){return(t=dee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dee(e){var t=pee(e,"string");return typeof t=="symbol"?t:t+""}function pee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gee(e){return Array.isArray(e)&&zn(e[0])&&zn(e[1])?e.join(" ~ "):e}var as={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1},mee=e=>{var{separator:t=as.separator,contentStyle:r,itemStyle:n,labelStyle:i=as.labelStyle,payload:a,formatter:o,itemSorter:l,wrapperClassName:s,labelClassName:c,label:u,labelFormatter:f,accessibilityLayer:h=as.accessibilityLayer}=e,d=()=>{if(a&&a.length){var C={padding:0,margin:0},w=(l?ny(a,l):a).map((_,P)=>{if(_.type==="none")return null;var I=_.formatter||o||gee,{value:$,name:A}=_,M=$,F=A;if(I){var N=I($,A,_,P,a);if(Array.isArray(N))[M,F]=N;else if(N!=null)M=N;else return null}var D=ou(ou({},as.itemStyle),{},{color:_.color||as.itemStyle.color},n);return x.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(P),style:D},zn(F)?x.createElement("span",{className:"recharts-tooltip-item-name"},F):null,zn(F)?x.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,x.createElement("span",{className:"recharts-tooltip-item-value"},M),x.createElement("span",{className:"recharts-tooltip-item-unit"},_.unit||""))});return x.createElement("ul",{className:"recharts-tooltip-item-list",style:C},w)}return null},p=ou(ou({},as.contentStyle),r),g=ou({margin:0},i),y=!xt(u),m=y?u:"",v=je("recharts-default-tooltip",s),b=je("recharts-tooltip-label",c);y&&f&&a!==void 0&&a!==null&&(m=f(u,a));var S=h?{role:"status","aria-live":"assertive"}:{};return x.createElement("div",Nb({className:v,style:p},S),x.createElement("p",{className:b,style:g},x.isValidElement(m)?m:"".concat(m)),d())},lu="recharts-tooltip-wrapper",yee={visibility:"hidden"};function vee(e){var{coordinate:t,translateX:r,translateY:n}=e;return je(lu,{["".concat(lu,"-right")]:oe(r)&&t&&oe(t.x)&&r>=t.x,["".concat(lu,"-left")]:oe(r)&&t&&oe(t.x)&&r<t.x,["".concat(lu,"-bottom")]:oe(n)&&t&&oe(t.y)&&n>=t.y,["".concat(lu,"-top")]:oe(n)&&t&&oe(t.y)&&n<t.y})}function oP(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:a,reverseDirection:o,tooltipDimension:l,viewBox:s,viewBoxDimension:c}=e;if(a&&oe(a[n]))return a[n];var u=r[n]-l-(i>0?i:0),f=r[n]+i;if(t[n])return o[n]?u:f;var h=s[n];if(h==null)return 0;if(o[n]){var d=u,p=h;return d<p?Math.max(f,h):Math.max(u,h)}if(c==null)return 0;var g=f+l,y=h+c;return g>y?Math.max(u,h):Math.max(f,h)}function xee(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function bee(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:i,position:a,reverseDirection:o,tooltipBox:l,useTranslate3d:s,viewBox:c}=e,u,f,h;return l.height>0&&l.width>0&&r?(f=oP({allowEscapeViewBox:t,coordinate:r,key:"x",offset:i,position:a,reverseDirection:o,tooltipDimension:l.width,viewBox:c,viewBoxDimension:c.width}),h=oP({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:a,reverseDirection:o,tooltipDimension:l.height,viewBox:c,viewBoxDimension:c.height}),u=xee({translateX:f,translateY:h,useTranslate3d:s})):u=yee,{cssProperties:u,cssClasses:vee({translateX:f,translateY:h,coordinate:r})}}function lP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lP(Object(r),!0).forEach(function(n){jb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jb(e,t,r){return(t=wee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wee(e){var t=kee(e,"string");return typeof t=="symbol"?t:t+""}function kee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class See extends x.PureComponent{constructor(){super(...arguments),jb(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),jb(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:i,children:a,coordinate:o,hasPayload:l,isAnimationActive:s,offset:c,position:u,reverseDirection:f,useTranslate3d:h,viewBox:d,wrapperStyle:p,lastBoundingBox:g,innerRef:y,hasPortalFromProps:m}=this.props,v=typeof c=="number"?c:c.x,b=typeof c=="number"?c:c.y,{cssClasses:S,cssProperties:C}=bee({allowEscapeViewBox:r,coordinate:o,offsetLeft:v,offsetTop:b,position:u,reverseDirection:f,tooltipBox:{height:g.height,width:g.width},useTranslate3d:h,viewBox:d}),w=m?{}:Cd(Cd({transition:s&&t?"transform ".concat(n,"ms ").concat(i):void 0},C),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&l?"visible":"hidden",position:"absolute",top:0,left:0}),_=Cd(Cd({},w),{},{visibility:!this.state.dismissed&&t&&l?"visible":"hidden"},p);return x.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:S,style:_,ref:y},a)}}var lR=()=>{var e;return(e=ie(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function Rb(){return Rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rb.apply(null,arguments)}function sP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sP(Object(r),!0).forEach(function(n){Cee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cee(e,t,r){return(t=_ee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _ee(e){var t=Eee(e,"string");return typeof t=="symbol"?t:t+""}function Eee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uP={curveBasisClosed:uN,curveBasisOpen:hN,curveBasis:ef,curveBumpX:Ak,curveBumpY:Ok,curveLinearClosed:bN,curveLinear:Sl,curveMonotoneX:Nk,curveMonotoneY:jk,curveNatural:Rk,curveStep:Bk,curveStepAfter:zk,curveStepBefore:Fk},vg=e=>Ae(e.x)&&Ae(e.y),fP=e=>e.base!=null&&vg(e.base)&&vg(e),su=e=>e.x,cu=e=>e.y,Tee=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(fh(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=uP["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return uP[r]||Sl},hP={connectNulls:!1,type:"linear"},Pee=e=>{var{type:t=hP.type,points:r=[],baseLine:n,layout:i,connectNulls:a=hP.connectNulls}=e,o=Tee(t,i),l=a?r.filter(vg):r;if(Array.isArray(n)){var s,c=r.map((p,g)=>cP(cP({},p),{},{base:n[g]}));i==="vertical"?s=md().y(cu).x1(su).x0(p=>p.base.x):s=md().x(su).y1(cu).y0(p=>p.base.y);var u=s.defined(fP).curve(o),f=a?c.filter(fP):c;return u(f)}var h;i==="vertical"&&oe(n)?h=md().y(cu).x1(su).x0(n):oe(n)?h=md().x(su).y1(cu).y0(n):h=Pk().x(su).y(cu);var d=h.defined(vg).curve(o);return d(l)},mS=e=>{var{className:t,points:r,path:n,pathRef:i}=e,a=Ul();if((!r||!r.length)&&!n)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},l=r&&r.length?Pee(o):n;return x.createElement("path",Rb({},Sn(e),Uk(e),{className:je("recharts-curve",t),d:l===null?void 0:l,ref:i}))},Aee=["x","y","top","left","width","height","className"];function Bb(){return Bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bb.apply(null,arguments)}function dP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dP(Object(r),!0).forEach(function(n){Mee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mee(e,t,r){return(t=Lee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lee(e){var t=Iee(e,"string");return typeof t=="symbol"?t:t+""}function Iee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $ee(e,t){if(e==null)return{};var r,n,i=Dee(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Dee(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Nee=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),jee=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:l}=e,s=$ee(e,Aee),c=Oee({x:t,y:r,top:n,left:i,width:a,height:o},s);return!oe(t)||!oe(r)||!oe(a)||!oe(o)||!oe(n)||!oe(i)?null:x.createElement("path",Bb({},Tr(c),{className:je("recharts-cross",l),d:Nee(t,r,a,o,n,i)}))};function Ree(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function pP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pP(Object(r),!0).forEach(function(n){Bee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bee(e,t,r){return(t=Fee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fee(e){var t=zee(e,"string");return typeof t=="symbol"?t:t+""}function zee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wee=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),sR=(e,t,r)=>e.map(n=>"".concat(Wee(n)," ").concat(t,"ms ").concat(r)).join(","),Hee=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),Nf=(e,t)=>Object.keys(t).reduce((r,n)=>gP(gP({},r),{},{[n]:e(n,t[n])}),{});function mP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mP(Object(r),!0).forEach(function(n){Uee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uee(e,t,r){return(t=qee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qee(e){var t=Vee(e,"string");return typeof t=="symbol"?t:t+""}function Vee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xg=(e,t,r)=>e+(t-e)*r,Fb=e=>{var{from:t,to:r}=e;return t!==r},cR=(e,t,r)=>{var n=Nf((i,a)=>{if(Fb(a)){var[o,l]=e(a.from,a.to,a.velocity);return Ft(Ft({},a),{},{from:o,velocity:l})}return a},t);return r<1?Nf((i,a)=>Fb(a)&&n[i]!=null?Ft(Ft({},a),{},{velocity:xg(a.velocity,n[i].velocity,r),from:xg(a.from,n[i].from,r)}):a,t):cR(e,n,r-1)};function Yee(e,t,r,n,i,a){var o,l=n.reduce((h,d)=>Ft(Ft({},h),{},{[d]:{from:e[d],velocity:0,to:t[d]}}),{}),s=()=>Nf((h,d)=>d.from,l),c=()=>!Object.values(l).filter(Fb).length,u=null,f=h=>{o||(o=h);var d=h-o,p=d/r.dt;l=cR(r,l,p),i(Ft(Ft(Ft({},e),t),s())),o=h,c()||(u=a.setTimeout(f))};return()=>(u=a.setTimeout(f),()=>{var h;(h=u)===null||h===void 0||h()})}function Kee(e,t,r,n,i,a,o){var l=null,s=i.reduce((f,h)=>{var d=e[h],p=t[h];return d==null||p==null?f:Ft(Ft({},f),{},{[h]:[d,p]})},{}),c,u=f=>{c||(c=f);var h=(f-c)/n,d=Nf((g,y)=>xg(...y,r(h)),s);if(a(Ft(Ft(Ft({},e),t),d)),h<1)l=o.setTimeout(u);else{var p=Nf((g,y)=>xg(...y,r(1)),s);a(Ft(Ft(Ft({},e),t),p))}};return()=>(l=o.setTimeout(u),()=>{var f;(f=l)===null||f===void 0||f()})}const Gee=(e,t,r,n,i,a)=>{var o=Hee(e,t);return r==null?()=>(i(Ft(Ft({},e),t)),()=>{}):r.isStepper===!0?Yee(e,t,r,o,i,a):Kee(e,t,r,n,o,i,a)};var bg=1e-4,uR=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],fR=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),yP=(e,t)=>r=>{var n=uR(e,t);return fR(n,r)},Xee=(e,t)=>r=>{var n=uR(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return fR(i,r)},Zee=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var i=n.map(a=>parseFloat(a));return[i[0],i[1],i[2],i[3]]},Qee=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=Zee(r[0]);if(i)return i}}return r.length===4?r:[0,0,1,1]},Jee=(e,t,r,n)=>{var i=yP(e,r),a=yP(t,n),o=Xee(e,r),l=c=>c>1?1:c<0?0:c,s=c=>{for(var u=c>1?1:c,f=u,h=0;h<8;++h){var d=i(f)-u,p=o(f);if(Math.abs(d-u)<bg||p<bg)return a(f);f=l(f-d/p)}return a(f)};return s.isStepper=!1,s},vP=function(){return Jee(...Qee(...arguments))},ete=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,l,s)=>{var c=-(o-l)*r,u=s*n,f=s+(c-u)*i/1e3,h=s*i/1e3+o;return Math.abs(h-l)<bg&&Math.abs(f)<bg?[l,0]:[h,f]};return a.isStepper=!0,a.dt=i,a},tte=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return vP(e);case"spring":return ete();default:if(e.split("(")[0]==="cubic-bezier")return vP(e)}return typeof e=="function"?e:null};function rte(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var l=o,[s,...c]=l;if(typeof s=="number"){i=e.setTimeout(a.bind(null,c),s);return}a(s),i=e.setTimeout(a.bind(null,c));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class nte{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function ite(){return rte(new nte)}var ate=x.createContext(ite);function ote(e,t){var r=x.useContext(ate);return x.useMemo(()=>t??r(e),[e,t,r])}var lte=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),wy={isSsr:lte()},ste={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},xP={t:0},_0={t:1};function xh(e){var t=At(e,ste),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:l,onAnimationStart:s,children:c}=t,u=r==="auto"?!wy.isSsr:r,f=ote(t.animationId,t.animationManager),[h,d]=x.useState(u?xP:_0),p=x.useRef(null);return x.useEffect(()=>{u||d(_0)},[u]),x.useEffect(()=>{if(!u||!n)return Hl;var g=Gee(xP,_0,tte(a),i,d,f.getTimeoutController()),y=()=>{p.current=g()};return f.start([s,o,y,i,l]),()=>{f.stop(),p.current&&p.current(),l()}},[u,n,i,a,o,s,l,f]),c(h.t)}function bh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=x.useRef(Af(t)),n=x.useRef(e);return n.current!==e&&(r.current=Af(t),n.current=e),r.current}var cte=["radius"],ute=["radius"],bP,wP,kP,SP,CP,_P,EP,TP,PP,AP;function OP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function MP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OP(Object(r),!0).forEach(function(n){fte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fte(e,t,r){return(t=hte(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hte(e){var t=dte(e,"string");return typeof t=="symbol"?t:t+""}function dte(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wg(){return wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wg.apply(null,arguments)}function LP(e,t){if(e==null)return{};var r,n,i=pte(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function pte(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function _i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var IP=(e,t,r,n,i)=>{var a=to(r),o=to(n),l=Math.min(Math.abs(a)/2,Math.abs(o)/2),s=o>=0?1:-1,c=a>=0?1:-1,u=o>=0&&a>=0||o<0&&a<0?1:0,f;if(l>0&&Array.isArray(i)){for(var h=[0,0,0,0],d=0,p=4;d<p;d++){var g,y=(g=i[d])!==null&&g!==void 0?g:0;h[d]=y>l?l:y}f=kt(bP||(bP=_i(["M",",",""])),e,t+s*h[0]),h[0]>0&&(f+=kt(wP||(wP=_i(["A ",",",",0,0,",",",",",""])),h[0],h[0],u,e+c*h[0],t)),f+=kt(kP||(kP=_i(["L ",",",""])),e+r-c*h[1],t),h[1]>0&&(f+=kt(SP||(SP=_i(["A ",",",",0,0,",`,
|
|
89
|
+
`,",",""])),h[1],h[1],u,e+r,t+s*h[1])),f+=kt(CP||(CP=_i(["L ",",",""])),e+r,t+n-s*h[2]),h[2]>0&&(f+=kt(_P||(_P=_i(["A ",",",",0,0,",`,
|
|
90
|
+
`,",",""])),h[2],h[2],u,e+r-c*h[2],t+n)),f+=kt(EP||(EP=_i(["L ",",",""])),e+c*h[3],t+n),h[3]>0&&(f+=kt(TP||(TP=_i(["A ",",",",0,0,",`,
|
|
91
|
+
`,",",""])),h[3],h[3],u,e,t+n-s*h[3])),f+="Z"}else if(l>0&&i===+i&&i>0){var m=Math.min(l,i);f=kt(PP||(PP=_i(["M ",",",`
|
|
92
|
+
A `,",",",0,0,",",",",",`
|
|
93
|
+
L `,",",`
|
|
94
|
+
A `,",",",0,0,",",",",",`
|
|
95
|
+
L `,",",`
|
|
96
|
+
A `,",",",0,0,",",",",",`
|
|
97
|
+
L `,",",`
|
|
98
|
+
A `,",",",0,0,",",",","," Z"])),e,t+s*m,m,m,u,e+c*m,t,e+r-c*m,t,m,m,u,e+r,t+s*m,e+r,t+n-s*m,m,m,u,e+r-c*m,t+n,e+c*m,t+n,m,m,u,e,t+n-s*m)}else f=kt(AP||(AP=_i(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return f},$P={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},hR=e=>{var t=At(e,$P),r=x.useRef(null),[n,i]=x.useState(-1);x.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var B=r.current.getTotalLength();B&&i(B)}catch{}},[]);var{x:a,y:o,width:l,height:s,radius:c,className:u}=t,{animationEasing:f,animationDuration:h,animationBegin:d,isAnimationActive:p,isUpdateAnimationActive:g}=t,y=x.useRef(l),m=x.useRef(s),v=x.useRef(a),b=x.useRef(o),S=x.useMemo(()=>({x:a,y:o,width:l,height:s,radius:c}),[a,o,l,s,c]),C=bh(S,"rectangle-");if(a!==+a||o!==+o||l!==+l||s!==+s||l===0||s===0)return null;var w=je("recharts-rectangle",u);if(!g){var _=Tr(t),{radius:P}=_,I=LP(_,cte);return x.createElement("path",wg({},I,{x:to(a),y:to(o),width:to(l),height:to(s),radius:typeof c=="number"?c:void 0,className:w,d:IP(a,o,l,s,c)}))}var $=y.current,A=m.current,M=v.current,F=b.current,N="0px ".concat(n===-1?1:n,"px"),D="".concat(n,"px 0px"),j=sR(["strokeDasharray"],h,typeof f=="string"?f:$P.animationEasing);return x.createElement(xh,{animationId:C,key:C,canBegin:n>0,duration:h,easing:f,isActive:g,begin:d},B=>{var L=ht($,l,B),W=ht(A,s,B),T=ht(M,a,B),V=ht(F,o,B);r.current&&(y.current=L,m.current=W,v.current=T,b.current=V);var J;p?B>0?J={transition:j,strokeDasharray:D}:J={strokeDasharray:N}:J={strokeDasharray:D};var O=Tr(t),{radius:ue}=O,ye=LP(O,ute);return x.createElement("path",wg({},ye,{radius:typeof c=="number"?c:void 0,className:w,d:IP(T,V,L,W,c),ref:r,style:MP(MP({},J),t.style)}))})};function DP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function NP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DP(Object(r),!0).forEach(function(n){gte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gte(e,t,r){return(t=mte(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mte(e){var t=yte(e,"string");return typeof t=="symbol"?t:t+""}function yte(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kg=Math.PI/180,vte=e=>e*180/Math.PI,Nt=(e,t,r,n)=>({x:e+Math.cos(-kg*n)*r,y:t+Math.sin(-kg*n)*r}),dR=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},xte=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},bte=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=xte({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var l=(r-i)/o,s=Math.acos(l);return n>a&&(s=2*Math.PI-s),{radius:o,angle:vte(s),angleInRadian:s}},wte=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},kte=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return e+o*360},Ste=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:i,angle:a}=bte({x:r,y:n},t),{innerRadius:o,outerRadius:l}=t;if(i<o||i>l||i===0)return null;var{startAngle:s,endAngle:c}=wte(t),u=a,f;if(s<=c){for(;u>c;)u-=360;for(;u<s;)u+=360;f=u>=s&&u<=c}else{for(;u>s;)u-=360;for(;u<c;)u+=360;f=u>=c&&u<=s}return f?NP(NP({},t),{},{radius:i,angle:kte(u,t)}):null};function pR(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,o=Nt(t,r,n,i),l=Nt(t,r,n,a);return{points:[o,l],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}var jP,RP,BP,FP,zP,WP,HP;function zb(){return zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zb.apply(null,arguments)}function rl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Cte=(e,t)=>{var r=er(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},_d=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:l,cornerIsExternal:s}=e,c=l*(o?1:-1)+n,u=Math.asin(l/c)/kg,f=s?i:i+a*u,h=Nt(t,r,c,f),d=Nt(t,r,n,f),p=s?i-a*u:i,g=Nt(t,r,c*Math.cos(u*kg),p);return{center:h,circleTangency:d,lineTangency:g,theta:u}},gR=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,l=Cte(a,o),s=a+l,c=Nt(t,r,i,a),u=Nt(t,r,i,s),f=kt(jP||(jP=rl(["M ",",",`
|
|
99
|
+
A `,",",`,0,
|
|
100
|
+
`,",",`,
|
|
101
|
+
`,",",`
|
|
102
|
+
`])),c.x,c.y,i,i,+(Math.abs(l)>180),+(a>s),u.x,u.y);if(n>0){var h=Nt(t,r,n,a),d=Nt(t,r,n,s);f+=kt(RP||(RP=rl(["L ",",",`
|
|
103
|
+
A `,",",`,0,
|
|
104
|
+
`,",",`,
|
|
105
|
+
`,","," Z"])),d.x,d.y,n,n,+(Math.abs(l)>180),+(a<=s),h.x,h.y)}else f+=kt(BP||(BP=rl(["L ",","," Z"])),t,r);return f},_te=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:l,startAngle:s,endAngle:c}=e,u=er(c-s),{circleTangency:f,lineTangency:h,theta:d}=_d({cx:t,cy:r,radius:i,angle:s,sign:u,cornerRadius:a,cornerIsExternal:l}),{circleTangency:p,lineTangency:g,theta:y}=_d({cx:t,cy:r,radius:i,angle:c,sign:-u,cornerRadius:a,cornerIsExternal:l}),m=l?Math.abs(s-c):Math.abs(s-c)-d-y;if(m<0)return o?kt(FP||(FP=rl(["M ",",",`
|
|
106
|
+
a`,",",",0,0,1,",`,0
|
|
107
|
+
a`,",",",0,0,1,",`,0
|
|
108
|
+
`])),h.x,h.y,a,a,a*2,a,a,-a*2):gR({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:s,endAngle:c});var v=kt(zP||(zP=rl(["M ",",",`
|
|
109
|
+
A`,",",",0,0,",",",",",`
|
|
110
|
+
A`,",",",0,",",",",",",",`
|
|
111
|
+
A`,",",",0,0,",",",",",`
|
|
112
|
+
`])),h.x,h.y,a,a,+(u<0),f.x,f.y,i,i,+(m>180),+(u<0),p.x,p.y,a,a,+(u<0),g.x,g.y);if(n>0){var{circleTangency:b,lineTangency:S,theta:C}=_d({cx:t,cy:r,radius:n,angle:s,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),{circleTangency:w,lineTangency:_,theta:P}=_d({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),I=l?Math.abs(s-c):Math.abs(s-c)-C-P;if(I<0&&a===0)return"".concat(v,"L").concat(t,",").concat(r,"Z");v+=kt(WP||(WP=rl(["L",",",`
|
|
113
|
+
A`,",",",0,0,",",",",",`
|
|
114
|
+
A`,",",",0,",",",",",",",`
|
|
115
|
+
A`,",",",0,0,",",",",","Z"])),_.x,_.y,a,a,+(u<0),w.x,w.y,n,n,+(I>180),+(u>0),b.x,b.y,a,a,+(u<0),S.x,S.y)}else v+=kt(HP||(HP=rl(["L",",","Z"])),t,r);return v},Ete={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},mR=e=>{var t=At(e,Ete),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:l,cornerIsExternal:s,startAngle:c,endAngle:u,className:f}=t;if(a<i||c===u)return null;var h=je("recharts-sector",f),d=a-i,p=kr(o,d,0,!0),g;return p>0&&Math.abs(c-u)<360?g=_te({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(p,d/2),forceCornerRadius:l,cornerIsExternal:s,startAngle:c,endAngle:u}):g=gR({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:u}),x.createElement("path",zb({},Tr(t),{className:h,d:g}))};function Tte(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(AN(t)){if(e==="centric"){var{cx:n,cy:i,innerRadius:a,outerRadius:o,angle:l}=t,s=Nt(n,i,a,l),c=Nt(n,i,o,l);return[{x:s.x,y:s.y},{x:c.x,y:c.y}]}return pR(t)}}var yR={},vR={},xR={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eS;function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(xR);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xR;function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(vR);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tS,r=vR;function n(i,a,o){o&&typeof o!="number"&&t.isIterateeCall(i,a,o)&&(a=o=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),o=o===void 0?i<a?1:-1:r.toFinite(o);const l=Math.max(Math.ceil((a-i)/(o||1)),0),s=new Array(l);for(let c=0;c<l;c++)s[c]=i,i+=o;return s}e.range=n})(yR);var Pte=yR.range;const bR=Yn(Pte);function fo(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ate(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function yS(e){let t,r,n;e.length!==2?(t=fo,r=(l,s)=>fo(e(l),s),n=(l,s)=>e(l)-s):(t=e===fo||e===Ate?e:Ote,r=e,n=e);function i(l,s,c=0,u=l.length){if(c<u){if(t(s,s)!==0)return u;do{const f=c+u>>>1;r(l[f],s)<0?c=f+1:u=f}while(c<u)}return c}function a(l,s,c=0,u=l.length){if(c<u){if(t(s,s)!==0)return u;do{const f=c+u>>>1;r(l[f],s)<=0?c=f+1:u=f}while(c<u)}return c}function o(l,s,c=0,u=l.length){const f=i(l,s,c,u-1);return f>c&&n(l[f-1],s)>-n(l[f],s)?f-1:f}return{left:i,center:o,right:a}}function Ote(){return 0}function wR(e){return e===null?NaN:+e}function*Mte(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Lte=yS(fo),wh=Lte.right;yS(wR).center;class UP extends Map{constructor(t,r=Dte){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(qP(this,t))}has(t){return super.has(qP(this,t))}set(t,r){return super.set(Ite(this,t),r)}delete(t){return super.delete($te(this,t))}}function qP({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Ite({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function $te({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Dte(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Nte(e=fo){if(e===fo)return kR;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function kR(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const jte=Math.sqrt(50),Rte=Math.sqrt(10),Bte=Math.sqrt(2);function Sg(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=jte?10:a>=Rte?5:a>=Bte?2:1;let l,s,c;return i<0?(c=Math.pow(10,-i)/o,l=Math.round(e*c),s=Math.round(t*c),l/c<e&&++l,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,l=Math.round(e/c),s=Math.round(t/c),l*c<e&&++l,s*c>t&&--s),s<l&&.5<=r&&r<2?Sg(e,t,r*2):[l,s,c]}function Wb(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Sg(t,e,r):Sg(e,t,r);if(!(a>=i))return[];const l=a-i+1,s=new Array(l);if(n)if(o<0)for(let c=0;c<l;++c)s[c]=(a-c)/-o;else for(let c=0;c<l;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<l;++c)s[c]=(i+c)/-o;else for(let c=0;c<l;++c)s[c]=(i+c)*o;return s}function Hb(e,t,r){return t=+t,e=+e,r=+r,Sg(e,t,r)[2]}function Ub(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Hb(t,e,r):Hb(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function VP(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function YP(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function SR(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?kR:Nte(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,u=Math.log(s),f=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*f*(s-f)/s)*(c-s/2<0?-1:1),d=Math.max(r,Math.floor(t-c*f/s+h)),p=Math.min(n,Math.floor(t+(s-c)*f/s+h));SR(e,t,d,p,i)}const a=e[t];let o=r,l=n;for(uu(e,r,t),i(e[n],a)>0&&uu(e,r,n);o<l;){for(uu(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[r],a)===0?uu(e,r,l):(++l,uu(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function uu(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Fte(e,t,r){if(e=Float64Array.from(Mte(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return YP(e);if(t>=1)return VP(e);var n,i=(n-1)*t,a=Math.floor(i),o=VP(SR(e,a).subarray(0,a+1)),l=YP(e.subarray(a+1));return o+(l-o)*(i-a)}}function zte(e,t,r=wR){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),l=+r(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function Wte(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Gn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ba(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const qb=Symbol("implicit");function vS(){var e=new UP,t=[],r=[],n=qb;function i(a){let o=e.get(a);if(o===void 0){if(n!==qb)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new UP;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return vS(t,r).unknown(n)},Gn.apply(i,arguments),i}function xS(){var e=vS().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,l=!1,s=0,c=0,u=.5;delete e.unknown;function f(){var h=t().length,d=i<n,p=d?i:n,g=d?n:i;a=(g-p)/Math.max(1,h-s+c*2),l&&(a=Math.floor(a)),p+=(g-p-a*(h-s))*u,o=a*(1-s),l&&(p=Math.round(p),o=Math.round(o));var y=Wte(h).map(function(m){return p+a*m});return r(d?y.reverse():y)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(l=!!h,f()):l},e.padding=function(h){return arguments.length?(s=Math.min(1,c=+h),f()):s},e.paddingInner=function(h){return arguments.length?(s=Math.min(1,h),f()):s},e.paddingOuter=function(h){return arguments.length?(c=+h,f()):c},e.align=function(h){return arguments.length?(u=Math.max(0,Math.min(1,h)),f()):u},e.copy=function(){return xS(t(),[n,i]).round(l).paddingInner(s).paddingOuter(c).align(u)},Gn.apply(f(),arguments)}function CR(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return CR(t())},e}function Hte(){return CR(xS.apply(null,arguments).paddingInner(1))}function bS(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function _R(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function kh(){}var jf=.7,Cg=1/jf,Rs="\\s*([+-]?\\d+)\\s*",Rf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ute=/^#([0-9a-f]{3,8})$/,qte=new RegExp(`^rgb\\(${Rs},${Rs},${Rs}\\)$`),Vte=new RegExp(`^rgb\\(${Hi},${Hi},${Hi}\\)$`),Yte=new RegExp(`^rgba\\(${Rs},${Rs},${Rs},${Rf}\\)$`),Kte=new RegExp(`^rgba\\(${Hi},${Hi},${Hi},${Rf}\\)$`),Gte=new RegExp(`^hsl\\(${Rf},${Hi},${Hi}\\)$`),Xte=new RegExp(`^hsla\\(${Rf},${Hi},${Hi},${Rf}\\)$`),KP={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};bS(kh,Ol,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:GP,formatHex:GP,formatHex8:Zte,formatHsl:Qte,formatRgb:XP,toString:XP});function GP(){return this.rgb().formatHex()}function Zte(){return this.rgb().formatHex8()}function Qte(){return ER(this).formatHsl()}function XP(){return this.rgb().formatRgb()}function Ol(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ute.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ZP(t):r===3?new rn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ed(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ed(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=qte.exec(e))?new rn(t[1],t[2],t[3],1):(t=Vte.exec(e))?new rn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Yte.exec(e))?Ed(t[1],t[2],t[3],t[4]):(t=Kte.exec(e))?Ed(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Gte.exec(e))?eA(t[1],t[2]/100,t[3]/100,1):(t=Xte.exec(e))?eA(t[1],t[2]/100,t[3]/100,t[4]):KP.hasOwnProperty(e)?ZP(KP[e]):e==="transparent"?new rn(NaN,NaN,NaN,0):null}function ZP(e){return new rn(e>>16&255,e>>8&255,e&255,1)}function Ed(e,t,r,n){return n<=0&&(e=t=r=NaN),new rn(e,t,r,n)}function Jte(e){return e instanceof kh||(e=Ol(e)),e?(e=e.rgb(),new rn(e.r,e.g,e.b,e.opacity)):new rn}function Vb(e,t,r,n){return arguments.length===1?Jte(e):new rn(e,t,r,n??1)}function rn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}bS(rn,Vb,_R(kh,{brighter(e){return e=e==null?Cg:Math.pow(Cg,e),new rn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?jf:Math.pow(jf,e),new rn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new rn(dl(this.r),dl(this.g),dl(this.b),_g(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:QP,formatHex:QP,formatHex8:ere,formatRgb:JP,toString:JP}));function QP(){return`#${nl(this.r)}${nl(this.g)}${nl(this.b)}`}function ere(){return`#${nl(this.r)}${nl(this.g)}${nl(this.b)}${nl((isNaN(this.opacity)?1:this.opacity)*255)}`}function JP(){const e=_g(this.opacity);return`${e===1?"rgb(":"rgba("}${dl(this.r)}, ${dl(this.g)}, ${dl(this.b)}${e===1?")":`, ${e})`}`}function _g(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function dl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nl(e){return e=dl(e),(e<16?"0":"")+e.toString(16)}function eA(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new si(e,t,r,n)}function ER(e){if(e instanceof si)return new si(e.h,e.s,e.l,e.opacity);if(e instanceof kh||(e=Ol(e)),!e)return new si;if(e instanceof si)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(r-n)/l+(r<n)*6:r===a?o=(n-t)/l+2:o=(t-r)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new si(o,l,s,e.opacity)}function tre(e,t,r,n){return arguments.length===1?ER(e):new si(e,t,r,n??1)}function si(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}bS(si,tre,_R(kh,{brighter(e){return e=e==null?Cg:Math.pow(Cg,e),new si(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?jf:Math.pow(jf,e),new si(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new rn(E0(e>=240?e-240:e+120,i,n),E0(e,i,n),E0(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new si(tA(this.h),Td(this.s),Td(this.l),_g(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=_g(this.opacity);return`${e===1?"hsl(":"hsla("}${tA(this.h)}, ${Td(this.s)*100}%, ${Td(this.l)*100}%${e===1?")":`, ${e})`}`}}));function tA(e){return e=(e||0)%360,e<0?e+360:e}function Td(e){return Math.max(0,Math.min(1,e||0))}function E0(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const ky=e=>()=>e;function TR(e,t){return function(r){return e+r*t}}function rre(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function dTe(e,t){var r=t-e;return r?TR(e,r>180||r<-180?r-360*Math.round(r/360):r):ky(isNaN(e)?t:e)}function nre(e){return(e=+e)==1?PR:function(t,r){return r-t?rre(t,r,e):ky(isNaN(t)?r:t)}}function PR(e,t){var r=t-e;return r?TR(e,r):ky(isNaN(e)?t:e)}const Eg=function e(t){var r=nre(t);function n(i,a){var o=r((i=Vb(i)).r,(a=Vb(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),c=PR(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=l(u),i.b=s(u),i.opacity=c(u),i+""}}return n.gamma=e,n}(1);function ire(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function are(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ore(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Ac(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(l){for(o=0;o<n;++o)a[o]=i[o](l);return a}}function lre(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ni(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function sre(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Ac(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Yb=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,T0=new RegExp(Yb.source,"g");function cre(e){return function(){return e}}function ure(e){return function(t){return e(t)+""}}function AR(e,t){var r=Yb.lastIndex=T0.lastIndex=0,n,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(n=Yb.exec(e))&&(i=T0.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:ni(n,i)})),r=T0.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?ure(s[0].x):cre(t):(t=s.length,function(c){for(var u=0,f;u<t;++u)l[(f=s[u]).i]=f.x(c);return l.join("")})}function Ac(e,t){var r=typeof t,n;return t==null||r==="boolean"?ky(t):(r==="number"?ni:r==="string"?(n=Ol(t))?(t=n,Eg):AR:t instanceof Ol?Eg:t instanceof Date?lre:are(t)?ire:Array.isArray(t)?ore:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?sre:ni)(e,t)}function wS(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var rA=180/Math.PI,Kb={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function OR(e,t,r,n,i,a){var o,l,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,s/=l),e*n<t*r&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*rA,skewX:Math.atan(s)*rA,scaleX:o,scaleY:l}}var Pd;function fre(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Kb:OR(t.a,t.b,t.c,t.d,t.e,t.f)}function hre(e){return e==null||(Pd||(Pd=document.createElementNS("http://www.w3.org/2000/svg","g")),Pd.setAttribute("transform",e),!(e=Pd.transform.baseVal.consolidate()))?Kb:(e=e.matrix,OR(e.a,e.b,e.c,e.d,e.e,e.f))}function MR(e,t,r,n){function i(c){return c.length?c.pop()+" ":""}function a(c,u,f,h,d,p){if(c!==f||u!==h){var g=d.push("translate(",null,t,null,r);p.push({i:g-4,x:ni(c,f)},{i:g-2,x:ni(u,h)})}else(f||h)&&d.push("translate("+f+t+h+r)}function o(c,u,f,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:ni(c,u)})):u&&f.push(i(f)+"rotate("+u+n)}function l(c,u,f,h){c!==u?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:ni(c,u)}):u&&f.push(i(f)+"skewX("+u+n)}function s(c,u,f,h,d,p){if(c!==f||u!==h){var g=d.push(i(d)+"scale(",null,",",null,")");p.push({i:g-4,x:ni(c,f)},{i:g-2,x:ni(u,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(c,u){var f=[],h=[];return c=e(c),u=e(u),a(c.translateX,c.translateY,u.translateX,u.translateY,f,h),o(c.rotate,u.rotate,f,h),l(c.skewX,u.skewX,f,h),s(c.scaleX,c.scaleY,u.scaleX,u.scaleY,f,h),c=u=null,function(d){for(var p=-1,g=h.length,y;++p<g;)f[(y=h[p]).i]=y.x(d);return f.join("")}}}var dre=MR(fre,"px, ","px)","deg)"),pre=MR(hre,", ",")",")");function gre(e,t){t===void 0&&(t=e,e=Ac);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[l](o-l)}}function mre(e){return function(){return e}}function Tg(e){return+e}var nA=[0,1];function Dr(e){return e}function Gb(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:mre(isNaN(t)?NaN:.5)}function yre(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function vre(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Gb(i,n),a=r(o,a)):(n=Gb(n,i),a=r(a,o)),function(l){return a(n(l))}}function xre(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Gb(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(l){var s=wh(e,l,1,n)-1;return a[s](i[s](l))}}function Sh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Sy(){var e=nA,t=nA,r=Ac,n,i,a,o=Dr,l,s,c;function u(){var h=Math.min(e.length,t.length);return o!==Dr&&(o=yre(e[0],e[h-1])),l=h>2?xre:vre,s=c=null,f}function f(h){return h==null||isNaN(h=+h)?a:(s||(s=l(e.map(n),t,r)))(n(o(h)))}return f.invert=function(h){return o(i((c||(c=l(t,e.map(n),ni)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Tg),u()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),r=wS,u()},f.clamp=function(h){return arguments.length?(o=h?!0:Dr,u()):o!==Dr},f.interpolate=function(h){return arguments.length?(r=h,u()):r},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,d){return n=h,i=d,u()}}function kS(){return Sy()(Dr,Dr)}function bre(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Pg(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function sc(e){return e=Pg(Math.abs(e)),e?e[1]:NaN}function wre(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),a.push(r.substring(i-=l,i+l)),!((s+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function kre(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Sre=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bf(e){if(!(t=Sre.exec(e)))throw new Error("invalid format: "+e);var t;return new SS({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Bf.prototype=SS.prototype;function SS(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}SS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Cre(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Ag;function _re(e,t){var r=Pg(e,t);if(!r)return Ag=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Ag=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Pg(e,Math.max(0,t+a-1))[0]}function iA(e,t){var r=Pg(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const aA={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:bre,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>iA(e*100,t),r:iA,s:_re,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function oA(e){return e}var lA=Array.prototype.map,sA=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ere(e){var t=e.grouping===void 0||e.thousands===void 0?oA:wre(lA.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?oA:kre(lA.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(f,h){f=Bf(f);var d=f.fill,p=f.align,g=f.sign,y=f.symbol,m=f.zero,v=f.width,b=f.comma,S=f.precision,C=f.trim,w=f.type;w==="n"?(b=!0,w="g"):aA[w]||(S===void 0&&(S=12),C=!0,w="g"),(m||d==="0"&&p==="=")&&(m=!0,d="0",p="=");var _=(h&&h.prefix!==void 0?h.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),P=(y==="$"?n:/[%p]/.test(w)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),I=aA[w],$=/[defgprs%]/.test(w);S=S===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function A(M){var F=_,N=P,D,j,B;if(w==="c")N=I(M)+N,M="";else{M=+M;var L=M<0||1/M<0;if(M=isNaN(M)?s:I(Math.abs(M),S),C&&(M=Cre(M)),L&&+M==0&&g!=="+"&&(L=!1),F=(L?g==="("?g:l:g==="-"||g==="("?"":g)+F,N=(w==="s"&&!isNaN(M)&&Ag!==void 0?sA[8+Ag/3]:"")+N+(L&&g==="("?")":""),$){for(D=-1,j=M.length;++D<j;)if(B=M.charCodeAt(D),48>B||B>57){N=(B===46?i+M.slice(D+1):M.slice(D))+N,M=M.slice(0,D);break}}}b&&!m&&(M=t(M,1/0));var W=F.length+M.length+N.length,T=W<v?new Array(v-W+1).join(d):"";switch(b&&m&&(M=t(T+M,T.length?v-N.length:1/0),T=""),p){case"<":M=F+M+N+T;break;case"=":M=F+T+M+N;break;case"^":M=T.slice(0,W=T.length>>1)+F+M+N+T.slice(W);break;default:M=T+F+M+N;break}return a(M)}return A.toString=function(){return f+""},A}function u(f,h){var d=Math.max(-8,Math.min(8,Math.floor(sc(h)/3)))*3,p=Math.pow(10,-d),g=c((f=Bf(f),f.type="f",f),{suffix:sA[8+d/3]});return function(y){return g(p*y)}}return{format:c,formatPrefix:u}}var Ad,CS,LR;Tre({thousands:",",grouping:[3],currency:["$",""]});function Tre(e){return Ad=Ere(e),CS=Ad.format,LR=Ad.formatPrefix,Ad}function Pre(e){return Math.max(0,-sc(Math.abs(e)))}function Are(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(sc(t)/3)))*3-sc(Math.abs(e)))}function Ore(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,sc(t)-sc(e))+1}function IR(e,t,r,n){var i=Ub(e,t,r),a;switch(n=Bf(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Are(i,o))&&(n.precision=a),LR(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Ore(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Pre(i))&&(n.precision=a-(n.type==="%")*2);break}}return CS(n)}function Mo(e){var t=e.domain;return e.ticks=function(r){var n=t();return Wb(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return IR(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],l=n[a],s,c,u=10;for(l<o&&(c=o,o=l,l=c,c=i,i=a,a=c);u-- >0;){if(c=Hb(o,l,r),c===s)return n[i]=o,n[a]=l,t(n);if(c>0)o=Math.floor(o/c)*c,l=Math.ceil(l/c)*c;else if(c<0)o=Math.ceil(o*c)/c,l=Math.floor(l*c)/c;else break;s=c}return e},e}function $R(){var e=kS();return e.copy=function(){return Sh(e,$R())},Gn.apply(e,arguments),Mo(e)}function DR(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Tg),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return DR(e).unknown(t)},e=arguments.length?Array.from(e,Tg):[0,1],Mo(r)}function NR(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function cA(e){return Math.log(e)}function uA(e){return Math.exp(e)}function Mre(e){return-Math.log(-e)}function Lre(e){return-Math.exp(-e)}function Ire(e){return isFinite(e)?+("1e"+e):e<0?0:e}function $re(e){return e===10?Ire:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Dre(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function fA(e){return(t,r)=>-e(-t,r)}function _S(e){const t=e(cA,uA),r=t.domain;let n=10,i,a;function o(){return i=Dre(n),a=$re(n),r()[0]<0?(i=fA(i),a=fA(a),e(Mre,Lre)):e(cA,uA),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const s=r();let c=s[0],u=s[s.length-1];const f=u<c;f&&([c,u]=[u,c]);let h=i(c),d=i(u),p,g;const y=l==null?10:+l;let m=[];if(!(n%1)&&d-h<y){if(h=Math.floor(h),d=Math.ceil(d),c>0){for(;h<=d;++h)for(p=1;p<n;++p)if(g=h<0?p/a(-h):p*a(h),!(g<c)){if(g>u)break;m.push(g)}}else for(;h<=d;++h)for(p=n-1;p>=1;--p)if(g=h>0?p/a(-h):p*a(h),!(g<c)){if(g>u)break;m.push(g)}m.length*2<y&&(m=Wb(c,u,y))}else m=Wb(h,d,Math.min(d-h,y)).map(a);return f?m.reverse():m},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=Bf(s)).precision==null&&(s.trim=!0),s=CS(s)),l===1/0)return s;const c=Math.max(1,n*l/t.ticks().length);return u=>{let f=u/a(Math.round(i(u)));return f*n<n-.5&&(f*=n),f<=c?s(u):""}},t.nice=()=>r(NR(r(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function jR(){const e=_S(Sy()).domain([1,10]);return e.copy=()=>Sh(e,jR()).base(e.base()),Gn.apply(e,arguments),e}function hA(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function dA(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ES(e){var t=1,r=e(hA(t),dA(t));return r.constant=function(n){return arguments.length?e(hA(t=+n),dA(t)):t},Mo(r)}function RR(){var e=ES(Sy());return e.copy=function(){return Sh(e,RR()).constant(e.constant())},Gn.apply(e,arguments)}function pA(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Nre(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function jre(e){return e<0?-e*e:e*e}function TS(e){var t=e(Dr,Dr),r=1;function n(){return r===1?e(Dr,Dr):r===.5?e(Nre,jre):e(pA(r),pA(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Mo(t)}function PS(){var e=TS(Sy());return e.copy=function(){return Sh(e,PS()).exponent(e.exponent())},Gn.apply(e,arguments),e}function Rre(){return PS.apply(null,arguments).exponent(.5)}function gA(e){return Math.sign(e)*e*e}function Bre(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function BR(){var e=kS(),t=[0,1],r=!1,n;function i(a){var o=Bre(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(gA(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Tg)).map(gA)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return BR(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Gn.apply(i,arguments),Mo(i)}function FR(){var e=[],t=[],r=[],n;function i(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o<l;)r[o-1]=zte(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?n:t[wh(r,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(fo),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return FR().domain(e).range(t).unknown(n)},Gn.apply(a,arguments)}function zR(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[wh(n,s,0,r)]:a}function l(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,l()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,l()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return zR().domain([e,t]).range(i).unknown(a)},Gn.apply(Mo(o),arguments)}function WR(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[wh(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return WR().domain(e).range(t).unknown(r)},Gn.apply(i,arguments)}const P0=new Date,A0=new Date;function Yt(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const s=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;let c;do s.push(c=new Date(+a)),t(a,l),e(a);while(c<a&&a<o);return s},i.filter=a=>Yt(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(P0.setTime(+a),A0.setTime(+o),e(P0),e(A0),Math.floor(r(P0,A0))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Og=Yt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Og.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Yt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Og);Og.range;const da=1e3,jn=da*60,pa=jn*60,Ea=pa*24,AS=Ea*7,mA=Ea*30,O0=Ea*365,il=Yt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*da)},(e,t)=>(t-e)/da,e=>e.getUTCSeconds());il.range;const OS=Yt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*da)},(e,t)=>{e.setTime(+e+t*jn)},(e,t)=>(t-e)/jn,e=>e.getMinutes());OS.range;const MS=Yt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*jn)},(e,t)=>(t-e)/jn,e=>e.getUTCMinutes());MS.range;const LS=Yt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*da-e.getMinutes()*jn)},(e,t)=>{e.setTime(+e+t*pa)},(e,t)=>(t-e)/pa,e=>e.getHours());LS.range;const IS=Yt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*pa)},(e,t)=>(t-e)/pa,e=>e.getUTCHours());IS.range;const Ch=Yt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*jn)/Ea,e=>e.getDate()-1);Ch.range;const Cy=Yt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ea,e=>e.getUTCDate()-1);Cy.range;const HR=Yt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ea,e=>Math.floor(e/Ea));HR.range;function ql(e){return Yt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*jn)/AS)}const _y=ql(0),Mg=ql(1),Fre=ql(2),zre=ql(3),cc=ql(4),Wre=ql(5),Hre=ql(6);_y.range;Mg.range;Fre.range;zre.range;cc.range;Wre.range;Hre.range;function Vl(e){return Yt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/AS)}const Ey=Vl(0),Lg=Vl(1),Ure=Vl(2),qre=Vl(3),uc=Vl(4),Vre=Vl(5),Yre=Vl(6);Ey.range;Lg.range;Ure.range;qre.range;uc.range;Vre.range;Yre.range;const $S=Yt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());$S.range;const DS=Yt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());DS.range;const Ta=Yt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ta.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Ta.range;const Pa=Yt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Pa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Pa.range;function UR(e,t,r,n,i,a){const o=[[il,1,da],[il,5,5*da],[il,15,15*da],[il,30,30*da],[a,1,jn],[a,5,5*jn],[a,15,15*jn],[a,30,30*jn],[i,1,pa],[i,3,3*pa],[i,6,6*pa],[i,12,12*pa],[n,1,Ea],[n,2,2*Ea],[r,1,AS],[t,1,mA],[t,3,3*mA],[e,1,O0]];function l(c,u,f){const h=u<c;h&&([c,u]=[u,c]);const d=f&&typeof f.range=="function"?f:s(c,u,f),p=d?d.range(c,+u+1):[];return h?p.reverse():p}function s(c,u,f){const h=Math.abs(u-c)/f,d=yS(([,,y])=>y).right(o,h);if(d===o.length)return e.every(Ub(c/O0,u/O0,f));if(d===0)return Og.every(Math.max(Ub(c,u,f),1));const[p,g]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return p.every(g)}return[l,s]}const[Kre,Gre]=UR(Pa,DS,Ey,HR,IS,MS),[Xre,Zre]=UR(Ta,$S,_y,Ch,LS,OS);function M0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function L0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function fu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Qre(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,c=hu(i),u=du(i),f=hu(a),h=du(a),d=hu(o),p=du(o),g=hu(l),y=du(l),m=hu(s),v=du(s),b={a:B,A:L,b:W,B:T,c:null,d:kA,e:kA,f:wne,g:Mne,G:Ine,H:vne,I:xne,j:bne,L:qR,m:kne,M:Sne,p:V,q:J,Q:_A,s:EA,S:Cne,u:_ne,U:Ene,V:Tne,w:Pne,W:Ane,x:null,X:null,y:One,Y:Lne,Z:$ne,"%":CA},S={a:O,A:ue,b:ye,B:te,c:null,d:SA,e:SA,f:Rne,g:Kne,G:Xne,H:Dne,I:Nne,j:jne,L:YR,m:Bne,M:Fne,p:de,q:Te,Q:_A,s:EA,S:zne,u:Wne,U:Hne,V:Une,w:qne,W:Vne,x:null,X:null,y:Yne,Y:Gne,Z:Zne,"%":CA},C={a:$,A,b:M,B:F,c:N,d:bA,e:bA,f:pne,g:xA,G:vA,H:wA,I:wA,j:une,L:dne,m:cne,M:fne,p:I,q:sne,Q:mne,s:yne,S:hne,u:nne,U:ine,V:ane,w:rne,W:one,x:D,X:j,y:xA,Y:vA,Z:lne,"%":gne};b.x=w(r,b),b.X=w(n,b),b.c=w(t,b),S.x=w(r,S),S.X=w(n,S),S.c=w(t,S);function w(U,ne){return function(me){var K=[],Ye=-1,Le=0,st=U.length,Ot,Vr,Zn;for(me instanceof Date||(me=new Date(+me));++Ye<st;)U.charCodeAt(Ye)===37&&(K.push(U.slice(Le,Ye)),(Vr=yA[Ot=U.charAt(++Ye)])!=null?Ot=U.charAt(++Ye):Vr=Ot==="e"?" ":"0",(Zn=ne[Ot])&&(Ot=Zn(me,Vr)),K.push(Ot),Le=Ye+1);return K.push(U.slice(Le,Ye)),K.join("")}}function _(U,ne){return function(me){var K=fu(1900,void 0,1),Ye=P(K,U,me+="",0),Le,st;if(Ye!=me.length)return null;if("Q"in K)return new Date(K.Q);if("s"in K)return new Date(K.s*1e3+("L"in K?K.L:0));if(ne&&!("Z"in K)&&(K.Z=0),"p"in K&&(K.H=K.H%12+K.p*12),K.m===void 0&&(K.m="q"in K?K.q:0),"V"in K){if(K.V<1||K.V>53)return null;"w"in K||(K.w=1),"Z"in K?(Le=L0(fu(K.y,0,1)),st=Le.getUTCDay(),Le=st>4||st===0?Lg.ceil(Le):Lg(Le),Le=Cy.offset(Le,(K.V-1)*7),K.y=Le.getUTCFullYear(),K.m=Le.getUTCMonth(),K.d=Le.getUTCDate()+(K.w+6)%7):(Le=M0(fu(K.y,0,1)),st=Le.getDay(),Le=st>4||st===0?Mg.ceil(Le):Mg(Le),Le=Ch.offset(Le,(K.V-1)*7),K.y=Le.getFullYear(),K.m=Le.getMonth(),K.d=Le.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),st="Z"in K?L0(fu(K.y,0,1)).getUTCDay():M0(fu(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(st+5)%7:K.w+K.U*7-(st+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,L0(K)):M0(K)}}function P(U,ne,me,K){for(var Ye=0,Le=ne.length,st=me.length,Ot,Vr;Ye<Le;){if(K>=st)return-1;if(Ot=ne.charCodeAt(Ye++),Ot===37){if(Ot=ne.charAt(Ye++),Vr=C[Ot in yA?ne.charAt(Ye++):Ot],!Vr||(K=Vr(U,me,K))<0)return-1}else if(Ot!=me.charCodeAt(K++))return-1}return K}function I(U,ne,me){var K=c.exec(ne.slice(me));return K?(U.p=u.get(K[0].toLowerCase()),me+K[0].length):-1}function $(U,ne,me){var K=d.exec(ne.slice(me));return K?(U.w=p.get(K[0].toLowerCase()),me+K[0].length):-1}function A(U,ne,me){var K=f.exec(ne.slice(me));return K?(U.w=h.get(K[0].toLowerCase()),me+K[0].length):-1}function M(U,ne,me){var K=m.exec(ne.slice(me));return K?(U.m=v.get(K[0].toLowerCase()),me+K[0].length):-1}function F(U,ne,me){var K=g.exec(ne.slice(me));return K?(U.m=y.get(K[0].toLowerCase()),me+K[0].length):-1}function N(U,ne,me){return P(U,t,ne,me)}function D(U,ne,me){return P(U,r,ne,me)}function j(U,ne,me){return P(U,n,ne,me)}function B(U){return o[U.getDay()]}function L(U){return a[U.getDay()]}function W(U){return s[U.getMonth()]}function T(U){return l[U.getMonth()]}function V(U){return i[+(U.getHours()>=12)]}function J(U){return 1+~~(U.getMonth()/3)}function O(U){return o[U.getUTCDay()]}function ue(U){return a[U.getUTCDay()]}function ye(U){return s[U.getUTCMonth()]}function te(U){return l[U.getUTCMonth()]}function de(U){return i[+(U.getUTCHours()>=12)]}function Te(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var ne=w(U+="",b);return ne.toString=function(){return U},ne},parse:function(U){var ne=_(U+="",!1);return ne.toString=function(){return U},ne},utcFormat:function(U){var ne=w(U+="",S);return ne.toString=function(){return U},ne},utcParse:function(U){var ne=_(U+="",!0);return ne.toString=function(){return U},ne}}}var yA={"-":"",_:" ",0:"0"},rr=/^\s*\d+/,Jre=/^%/,ene=/[\\^$*+?|[\]().{}]/g;function Re(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function tne(e){return e.replace(ene,"\\$&")}function hu(e){return new RegExp("^(?:"+e.map(tne).join("|")+")","i")}function du(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function rne(e,t,r){var n=rr.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function nne(e,t,r){var n=rr.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function ine(e,t,r){var n=rr.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function ane(e,t,r){var n=rr.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function one(e,t,r){var n=rr.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function vA(e,t,r){var n=rr.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function xA(e,t,r){var n=rr.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function lne(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function sne(e,t,r){var n=rr.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function cne(e,t,r){var n=rr.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function bA(e,t,r){var n=rr.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function une(e,t,r){var n=rr.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function wA(e,t,r){var n=rr.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function fne(e,t,r){var n=rr.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function hne(e,t,r){var n=rr.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function dne(e,t,r){var n=rr.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function pne(e,t,r){var n=rr.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function gne(e,t,r){var n=Jre.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function mne(e,t,r){var n=rr.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function yne(e,t,r){var n=rr.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function kA(e,t){return Re(e.getDate(),t,2)}function vne(e,t){return Re(e.getHours(),t,2)}function xne(e,t){return Re(e.getHours()%12||12,t,2)}function bne(e,t){return Re(1+Ch.count(Ta(e),e),t,3)}function qR(e,t){return Re(e.getMilliseconds(),t,3)}function wne(e,t){return qR(e,t)+"000"}function kne(e,t){return Re(e.getMonth()+1,t,2)}function Sne(e,t){return Re(e.getMinutes(),t,2)}function Cne(e,t){return Re(e.getSeconds(),t,2)}function _ne(e){var t=e.getDay();return t===0?7:t}function Ene(e,t){return Re(_y.count(Ta(e)-1,e),t,2)}function VR(e){var t=e.getDay();return t>=4||t===0?cc(e):cc.ceil(e)}function Tne(e,t){return e=VR(e),Re(cc.count(Ta(e),e)+(Ta(e).getDay()===4),t,2)}function Pne(e){return e.getDay()}function Ane(e,t){return Re(Mg.count(Ta(e)-1,e),t,2)}function One(e,t){return Re(e.getFullYear()%100,t,2)}function Mne(e,t){return e=VR(e),Re(e.getFullYear()%100,t,2)}function Lne(e,t){return Re(e.getFullYear()%1e4,t,4)}function Ine(e,t){var r=e.getDay();return e=r>=4||r===0?cc(e):cc.ceil(e),Re(e.getFullYear()%1e4,t,4)}function $ne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Re(t/60|0,"0",2)+Re(t%60,"0",2)}function SA(e,t){return Re(e.getUTCDate(),t,2)}function Dne(e,t){return Re(e.getUTCHours(),t,2)}function Nne(e,t){return Re(e.getUTCHours()%12||12,t,2)}function jne(e,t){return Re(1+Cy.count(Pa(e),e),t,3)}function YR(e,t){return Re(e.getUTCMilliseconds(),t,3)}function Rne(e,t){return YR(e,t)+"000"}function Bne(e,t){return Re(e.getUTCMonth()+1,t,2)}function Fne(e,t){return Re(e.getUTCMinutes(),t,2)}function zne(e,t){return Re(e.getUTCSeconds(),t,2)}function Wne(e){var t=e.getUTCDay();return t===0?7:t}function Hne(e,t){return Re(Ey.count(Pa(e)-1,e),t,2)}function KR(e){var t=e.getUTCDay();return t>=4||t===0?uc(e):uc.ceil(e)}function Une(e,t){return e=KR(e),Re(uc.count(Pa(e),e)+(Pa(e).getUTCDay()===4),t,2)}function qne(e){return e.getUTCDay()}function Vne(e,t){return Re(Lg.count(Pa(e)-1,e),t,2)}function Yne(e,t){return Re(e.getUTCFullYear()%100,t,2)}function Kne(e,t){return e=KR(e),Re(e.getUTCFullYear()%100,t,2)}function Gne(e,t){return Re(e.getUTCFullYear()%1e4,t,4)}function Xne(e,t){var r=e.getUTCDay();return e=r>=4||r===0?uc(e):uc.ceil(e),Re(e.getUTCFullYear()%1e4,t,4)}function Zne(){return"+0000"}function CA(){return"%"}function _A(e){return+e}function EA(e){return Math.floor(+e/1e3)}var os,GR,XR;Qne({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Qne(e){return os=Qre(e),GR=os.format,os.parse,XR=os.utcFormat,os.utcParse,os}function Jne(e){return new Date(e)}function eie(e){return e instanceof Date?+e:+new Date(+e)}function NS(e,t,r,n,i,a,o,l,s,c){var u=kS(),f=u.invert,h=u.domain,d=c(".%L"),p=c(":%S"),g=c("%I:%M"),y=c("%I %p"),m=c("%a %d"),v=c("%b %d"),b=c("%B"),S=c("%Y");function C(w){return(s(w)<w?d:l(w)<w?p:o(w)<w?g:a(w)<w?y:n(w)<w?i(w)<w?m:v:r(w)<w?b:S)(w)}return u.invert=function(w){return new Date(f(w))},u.domain=function(w){return arguments.length?h(Array.from(w,eie)):h().map(Jne)},u.ticks=function(w){var _=h();return e(_[0],_[_.length-1],w??10)},u.tickFormat=function(w,_){return _==null?C:c(_)},u.nice=function(w){var _=h();return(!w||typeof w.range!="function")&&(w=t(_[0],_[_.length-1],w??10)),w?h(NR(_,w)):u},u.copy=function(){return Sh(u,NS(e,t,r,n,i,a,o,l,s,c))},u}function tie(){return Gn.apply(NS(Xre,Zre,Ta,$S,_y,Ch,LS,OS,il,GR).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function rie(){return Gn.apply(NS(Kre,Gre,Pa,DS,Ey,Cy,IS,MS,il,XR).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ty(){var e=0,t=1,r,n,i,a,o=Dr,l=!1,s;function c(f){return f==null||isNaN(f=+f)?s:o(i===0?.5:(f=(a(f)-r)*i,l?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(l=!!f,c):l},c.interpolator=function(f){return arguments.length?(o=f,c):o};function u(f){return function(h){var d,p;return arguments.length?([d,p]=h,o=f(d,p),c):[o(0),o(1)]}}return c.range=u(Ac),c.rangeRound=u(wS),c.unknown=function(f){return arguments.length?(s=f,c):s},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),c}}function Lo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ZR(){var e=Mo(Ty()(Dr));return e.copy=function(){return Lo(e,ZR())},Ba.apply(e,arguments)}function QR(){var e=_S(Ty()).domain([1,10]);return e.copy=function(){return Lo(e,QR()).base(e.base())},Ba.apply(e,arguments)}function JR(){var e=ES(Ty());return e.copy=function(){return Lo(e,JR()).constant(e.constant())},Ba.apply(e,arguments)}function jS(){var e=TS(Ty());return e.copy=function(){return Lo(e,jS()).exponent(e.exponent())},Ba.apply(e,arguments)}function nie(){return jS.apply(null,arguments).exponent(.5)}function eB(){var e=[],t=Dr;function r(n){if(n!=null&&!isNaN(n=+n))return t((wh(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(fo),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>Fte(e,a/n))},r.copy=function(){return eB(t).domain(e)},Ba.apply(r,arguments)}function Py(){var e=0,t=.5,r=1,n=1,i,a,o,l,s,c=Dr,u,f=!1,h;function d(g){return isNaN(g=+g)?h:(g=.5+((g=+u(g))-a)*(n*g<n*a?l:s),c(f?Math.max(0,Math.min(1,g)):g))}d.domain=function(g){return arguments.length?([e,t,r]=g,i=u(e=+e),a=u(t=+t),o=u(r=+r),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,d):[e,t,r]},d.clamp=function(g){return arguments.length?(f=!!g,d):f},d.interpolator=function(g){return arguments.length?(c=g,d):c};function p(g){return function(y){var m,v,b;return arguments.length?([m,v,b]=y,c=gre(g,[m,v,b]),d):[c(0),c(.5),c(1)]}}return d.range=p(Ac),d.rangeRound=p(wS),d.unknown=function(g){return arguments.length?(h=g,d):h},function(g){return u=g,i=g(e),a=g(t),o=g(r),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,d}}function tB(){var e=Mo(Py()(Dr));return e.copy=function(){return Lo(e,tB())},Ba.apply(e,arguments)}function rB(){var e=_S(Py()).domain([.1,1,10]);return e.copy=function(){return Lo(e,rB()).base(e.base())},Ba.apply(e,arguments)}function nB(){var e=ES(Py());return e.copy=function(){return Lo(e,nB()).constant(e.constant())},Ba.apply(e,arguments)}function RS(){var e=TS(Py());return e.copy=function(){return Lo(e,RS()).exponent(e.exponent())},Ba.apply(e,arguments)}function iie(){return RS.apply(null,arguments).exponent(.5)}const Mu=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:xS,scaleDiverging:tB,scaleDivergingLog:rB,scaleDivergingPow:RS,scaleDivergingSqrt:iie,scaleDivergingSymlog:nB,scaleIdentity:DR,scaleImplicit:qb,scaleLinear:$R,scaleLog:jR,scaleOrdinal:vS,scalePoint:Hte,scalePow:PS,scaleQuantile:FR,scaleQuantize:zR,scaleRadial:BR,scaleSequential:ZR,scaleSequentialLog:QR,scaleSequentialPow:jS,scaleSequentialQuantile:eB,scaleSequentialSqrt:nie,scaleSequentialSymlog:JR,scaleSqrt:Rre,scaleSymlog:RR,scaleThreshold:WR,scaleTime:tie,scaleUtc:rie,tickFormat:IR},Symbol.toStringTag,{value:"Module"}));var Fa=e=>e.chartData,Ay=H([Fa],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),BS=(e,t,r,n)=>n?Ay(e):Fa(e),aie=(e,t,r)=>r?Ay(e):Fa(e);function Aa(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(Ae(t)&&Ae(r))return!0}return!1}function TA(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function iB(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(Ae(r))i=r;else if(typeof r=="function")return;if(Ae(n))a=n;else if(typeof n=="function")return;var o=[i,a];if(Aa(o))return o}}function oie(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Aa(n))return TA(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,l;if(i==="auto")t!=null&&(o=Math.min(...t));else if(oe(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t==null?void 0:t[0]))}catch{}else if(typeof i=="string"&&qT.test(i)){var s=qT.exec(i);if(s==null||s[1]==null||t==null)o=void 0;else{var c=+s[1];o=t[0]-c}}else o=t==null?void 0:t[0];if(a==="auto")t!=null&&(l=Math.max(...t));else if(oe(a))l=a;else if(typeof a=="function")try{t!=null&&(l=a(t==null?void 0:t[1]))}catch{}else if(typeof a=="string"&&VT.test(a)){var u=VT.exec(a);if(u==null||u[1]==null||t==null)l=void 0;else{var f=+u[1];l=t[1]+f}}else l=t==null?void 0:t[1];var h=[o,l];if(Aa(h))return t==null?h:TA(h,t,r)}}}var Oc=1e9,lie={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},zS,pt=!0,Hn="[DecimalError] ",pl=Hn+"Invalid argument: ",FS=Hn+"Exponent out of range: ",Mc=Math.floor,Go=Math.pow,sie=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,gn,Zt=1e7,ot=7,aB=9007199254740991,Ig=Mc(aB/ot),le={};le.absoluteValue=le.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};le.comparedTo=le.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};le.decimalPlaces=le.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ot;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};le.dividedBy=le.div=function(e){return ma(this,new this.constructor(e))};le.dividedToIntegerBy=le.idiv=function(e){var t=this,r=t.constructor;return Ze(ma(t,new r(e),0,1),r.precision)};le.equals=le.eq=function(e){return!this.cmp(e)};le.exponent=function(){return jt(this)};le.greaterThan=le.gt=function(e){return this.cmp(e)>0};le.greaterThanOrEqualTo=le.gte=function(e){return this.cmp(e)>=0};le.isInteger=le.isint=function(){return this.e>this.d.length-2};le.isNegative=le.isneg=function(){return this.s<0};le.isPositive=le.ispos=function(){return this.s>0};le.isZero=function(){return this.s===0};le.lessThan=le.lt=function(e){return this.cmp(e)<0};le.lessThanOrEqualTo=le.lte=function(e){return this.cmp(e)<1};le.logarithm=le.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(gn))throw Error(Hn+"NaN");if(r.s<1)throw Error(Hn+(r.s?"NaN":"-Infinity"));return r.eq(gn)?new n(0):(pt=!1,t=ma(Ff(r,a),Ff(e,a),a),pt=!0,Ze(t,i))};le.minus=le.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?sB(t,e):oB(t,(e.s=-e.s,e))};le.modulo=le.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Hn+"NaN");return r.s?(pt=!1,t=ma(r,e,0,1).times(e),pt=!0,r.minus(t)):Ze(new n(r),i)};le.naturalExponential=le.exp=function(){return lB(this)};le.naturalLogarithm=le.ln=function(){return Ff(this)};le.negated=le.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};le.plus=le.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oB(t,e):sB(t,(e.s=-e.s,e))};le.precision=le.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(pl+e);if(t=jt(i)+1,n=i.d.length-1,r=n*ot+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};le.squareRoot=le.sqrt=function(){var e,t,r,n,i,a,o,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(Hn+"NaN")}for(e=jt(l),pt=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Bi(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Mc((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(ma(l,a,o+2)).times(.5),Bi(a.d).slice(0,o)===(t=Bi(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ze(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if(t!="9999")break;o+=4}return pt=!0,Ze(n,r)};le.times=le.mul=function(e){var t,r,n,i,a,o,l,s,c,u=this,f=u.constructor,h=u.d,d=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,r=u.e+e.e,s=h.length,c=d.length,s<c&&(a=h,h=d,d=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)l=a[i]+d[n]*h[i-n-1]+t,a[i--]=l%Zt|0,t=l/Zt|0;a[i]=(a[i]+t)%Zt|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,pt?Ze(e,f.precision):e};le.toDecimalPlaces=le.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Ki(e,0,Oc),t===void 0?t=n.rounding:Ki(t,0,8),Ze(r,e+jt(r)+1,t))};le.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Ml(n,!0):(Ki(e,0,Oc),t===void 0?t=i.rounding:Ki(t,0,8),n=Ze(new i(n),e+1,t),r=Ml(n,!0,e+1)),r};le.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Ml(i):(Ki(e,0,Oc),t===void 0?t=a.rounding:Ki(t,0,8),n=Ze(new a(i),e+jt(i)+1,t),r=Ml(n.abs(),!1,e+jt(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};le.toInteger=le.toint=function(){var e=this,t=e.constructor;return Ze(new t(e),jt(e)+1,t.rounding)};le.toNumber=function(){return+this};le.toPower=le.pow=function(e){var t,r,n,i,a,o,l=this,s=l.constructor,c=12,u=+(e=new s(e));if(!e.s)return new s(gn);if(l=new s(l),!l.s){if(e.s<1)throw Error(Hn+"Infinity");return l}if(l.eq(gn))return l;if(n=s.precision,e.eq(gn))return Ze(l,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=l.s,o){if((r=u<0?-u:u)<=aB){for(i=new s(gn),t=Math.ceil(n/ot+4),pt=!1;r%2&&(i=i.times(l),AA(i.d,t)),r=Mc(r/2),r!==0;)l=l.times(l),AA(l.d,t);return pt=!0,e.s<0?new s(gn).div(i):Ze(i,n)}}else if(a<0)throw Error(Hn+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,pt=!1,i=e.times(Ff(l,n+c)),pt=!0,i=lB(i),i.s=a,i};le.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=jt(i),n=Ml(i,r<=a.toExpNeg||r>=a.toExpPos)):(Ki(e,1,Oc),t===void 0?t=a.rounding:Ki(t,0,8),i=Ze(new a(i),e,t),r=jt(i),n=Ml(i,e<=r||r<=a.toExpNeg,e)),n};le.toSignificantDigits=le.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Ki(e,1,Oc),t===void 0?t=n.rounding:Ki(t,0,8)),Ze(new n(r),e,t)};le.toString=le.valueOf=le.val=le.toJSON=le[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=jt(e),r=e.constructor;return Ml(e,t<=r.toExpNeg||t>=r.toExpPos)};function oB(e,t){var r,n,i,a,o,l,s,c,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),pt?Ze(t,f):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,l=c.length):(n=c,i=o,l=s.length),o=Math.ceil(f/ot),l=o>l?o+1:l+1,a>l&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(l=s.length,a=c.length,l-a<0&&(a=l,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/Zt|0,s[a]%=Zt;for(r&&(s.unshift(r),++i),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=i,pt?Ze(t,f):t}function Ki(e,t,r){if(e!==~~e||e<t||e>r)throw Error(pl+e)}function Bi(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=ot-n.length,r&&(a+=Ka(r)),a+=n;o=e[t],n=o+"",r=ot-n.length,r&&(a+=Ka(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var ma=function(){function e(n,i){var a,o=0,l=n.length;for(n=n.slice();l--;)a=n[l]*i+o,n[l]=a%Zt|0,o=a/Zt|0;return o&&n.unshift(o),n}function t(n,i,a,o){var l,s;if(a!=o)s=a>o?1:-1;else for(l=s=0;l<a;l++)if(n[l]!=i[l]){s=n[l]>i[l]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Zt+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var l,s,c,u,f,h,d,p,g,y,m,v,b,S,C,w,_,P,I=n.constructor,$=n.s==i.s?1:-1,A=n.d,M=i.d;if(!n.s)return new I(n);if(!i.s)throw Error(Hn+"Division by zero");for(s=n.e-i.e,_=M.length,C=A.length,d=new I($),p=d.d=[],c=0;M[c]==(A[c]||0);)++c;if(M[c]>(A[c]||0)&&--s,a==null?v=a=I.precision:o?v=a+(jt(n)-jt(i))+1:v=a,v<0)return new I(0);if(v=v/ot+2|0,c=0,_==1)for(u=0,M=M[0],v++;(c<C||u)&&v--;c++)b=u*Zt+(A[c]||0),p[c]=b/M|0,u=b%M|0;else{for(u=Zt/(M[0]+1)|0,u>1&&(M=e(M,u),A=e(A,u),_=M.length,C=A.length),S=_,g=A.slice(0,_),y=g.length;y<_;)g[y++]=0;P=M.slice(),P.unshift(0),w=M[0],M[1]>=Zt/2&&++w;do u=0,l=t(M,g,_,y),l<0?(m=g[0],_!=y&&(m=m*Zt+(g[1]||0)),u=m/w|0,u>1?(u>=Zt&&(u=Zt-1),f=e(M,u),h=f.length,y=g.length,l=t(f,g,h,y),l==1&&(u--,r(f,_<h?P:M,h))):(u==0&&(l=u=1),f=M.slice()),h=f.length,h<y&&f.unshift(0),r(g,f,y),l==-1&&(y=g.length,l=t(M,g,_,y),l<1&&(u++,r(g,_<y?P:M,y))),y=g.length):l===0&&(u++,g=[0]),p[c++]=u,l&&g[0]?g[y++]=A[S]||0:(g=[A[S]],y=1);while((S++<C||g[0]!==void 0)&&v--)}return p[0]||p.shift(),d.e=s,Ze(d,o?a+jt(d)+1:a)}}();function lB(e,t){var r,n,i,a,o,l,s=0,c=0,u=e.constructor,f=u.precision;if(jt(e)>16)throw Error(FS+jt(e));if(!e.s)return new u(gn);for(pt=!1,l=f,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Go(2,c))/Math.LN10*2+5|0,l+=n,r=i=a=new u(gn),u.precision=l;;){if(i=Ze(i.times(e),l),r=r.times(++s),o=a.plus(ma(i,r,l)),Bi(o.d).slice(0,l)===Bi(a.d).slice(0,l)){for(;c--;)a=Ze(a.times(a),l);return u.precision=f,t==null?(pt=!0,Ze(a,f)):a}a=o}}function jt(e){for(var t=e.e*ot,r=e.d[0];r>=10;r/=10)t++;return t}function I0(e,t,r){if(t>e.LN10.sd())throw pt=!0,r&&(e.precision=r),Error(Hn+"LN10 precision limit exceeded");return Ze(new e(e.LN10),t)}function Ka(e){for(var t="";e--;)t+="0";return t}function Ff(e,t){var r,n,i,a,o,l,s,c,u,f=1,h=10,d=e,p=d.d,g=d.constructor,y=g.precision;if(d.s<1)throw Error(Hn+(d.s?"NaN":"-Infinity"));if(d.eq(gn))return new g(0);if(t==null?(pt=!1,c=y):c=t,d.eq(10))return t==null&&(pt=!0),I0(g,c);if(c+=h,g.precision=c,r=Bi(p),n=r.charAt(0),a=jt(d),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)d=d.times(e),r=Bi(d.d),n=r.charAt(0),f++;a=jt(d),n>1?(d=new g("0."+r),a++):d=new g(n+"."+r.slice(1))}else return s=I0(g,c+2,y).times(a+""),d=Ff(new g(n+"."+r.slice(1)),c-h).plus(s),g.precision=y,t==null?(pt=!0,Ze(d,y)):d;for(l=o=d=ma(d.minus(gn),d.plus(gn),c),u=Ze(d.times(d),c),i=3;;){if(o=Ze(o.times(u),c),s=l.plus(ma(o,new g(i),c)),Bi(s.d).slice(0,c)===Bi(l.d).slice(0,c))return l=l.times(2),a!==0&&(l=l.plus(I0(g,c+2,y).times(a+""))),l=ma(l,new g(f),c),g.precision=y,t==null?(pt=!0,Ze(l,y)):l;l=s,i+=2}}function PA(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Mc(r/ot),e.d=[],n=(r+1)%ot,r<0&&(n+=ot),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ot;n<i;)e.d.push(+t.slice(n,n+=ot));t=t.slice(n),n=ot-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),pt&&(e.e>Ig||e.e<-Ig))throw Error(FS+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ze(e,t,r){var n,i,a,o,l,s,c,u,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ot,i=t,c=f[u=0];else{if(u=Math.ceil((n+1)/ot),a=f.length,u>=a)return e;for(c=a=f[u],o=1;a>=10;a/=10)o++;n%=ot,i=n-ot+o}if(r!==void 0&&(a=Go(10,o-i-1),l=c/a%10|0,s=t<0||f[u+1]!==void 0||c%a,s=r<4?(l||s)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||s||r==6&&(n>0?i>0?c/Go(10,o-i):0:f[u-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return s?(a=jt(e),f.length=1,t=t-a-1,f[0]=Go(10,(ot-t%ot)%ot),e.e=Mc(-t/ot)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=u,a=1,u--):(f.length=u+1,a=Go(10,ot-n),f[u]=i>0?(c/Go(10,o-i)%Go(10,i)|0)*a:0),s)for(;;)if(u==0){(f[0]+=a)==Zt&&(f[0]=1,++e.e);break}else{if(f[u]+=a,f[u]!=Zt)break;f[u--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(pt&&(e.e>Ig||e.e<-Ig))throw Error(FS+jt(e));return e}function sB(e,t){var r,n,i,a,o,l,s,c,u,f,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),pt?Ze(t,d):t;if(s=e.d,f=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(u=o<0,u?(r=s,o=-o,l=f.length):(r=f,n=c,l=s.length),i=Math.max(Math.ceil(d/ot),l)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,l=f.length,u=i<l,u&&(l=i),i=0;i<l;i++)if(s[i]!=f[i]){u=s[i]<f[i];break}o=0}for(u&&(r=s,s=f,f=r,t.s=-t.s),l=s.length,i=f.length-l;i>0;--i)s[l++]=0;for(i=f.length;i>o;){if(s[--i]<f[i]){for(a=i;a&&s[--a]===0;)s[a]=Zt-1;--s[a],s[i]+=Zt}s[i]-=f[i]}for(;s[--l]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,pt?Ze(t,d):t):new h(0)}function Ml(e,t,r){var n,i=jt(e),a=Bi(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Ka(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Ka(-i-1)+a,r&&(n=r-o)>0&&(a+=Ka(n))):i>=o?(a+=Ka(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Ka(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Ka(n))),e.s<0?"-"+a:a}function AA(e,t){if(e.length>t)return e.length=t,!0}function cB(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(pl+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return PA(o,a.toString())}else if(typeof a!="string")throw Error(pl+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,sie.test(a))PA(o,a);else throw Error(pl+a)}if(i.prototype=le,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=cB,i.config=i.set=cie,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function cie(e){if(!e||typeof e!="object")throw Error(Hn+"Object expected");var t,r,n,i=["precision",1,Oc,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Mc(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(pl+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(pl+r+": "+n);return this}var zS=cB(lie);gn=new zS(1);const Ke=zS;function uB(e){var t;return e===0?t=1:t=Math.floor(new Ke(e).abs().log(10).toNumber())+1,t}function fB(e,t,r){for(var n=new Ke(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var hB=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},dB=(e,t,r)=>{if(e.lte(0))return new Ke(0);var n=uB(e.toNumber()),i=new Ke(10).pow(n),a=e.div(i),o=n!==1?.05:.1,l=new Ke(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=l.mul(i);return t?new Ke(s.toNumber()):new Ke(Math.ceil(s.toNumber()))},uie=(e,t,r)=>{var n=new Ke(1),i=new Ke(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ke(10).pow(uB(e)-1),i=new Ke(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ke(Math.floor(e)))}else e===0?i=new Ke(Math.floor((t-1)/2)):r||(i=new Ke(Math.floor(e)));for(var o=Math.floor((t-1)/2),l=[],s=0;s<t;s++)l.push(i.add(new Ke(s-o).mul(n)).toNumber());return l},pB=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new Ke(0),tickMin:new Ke(0),tickMax:new Ke(0)};var o=dB(new Ke(r).sub(t).div(n-1),i,a),l;t<=0&&r>=0?l=new Ke(0):(l=new Ke(t).add(r).div(2),l=l.sub(new Ke(l).mod(o)));var s=Math.ceil(l.sub(t).div(o).toNumber()),c=Math.ceil(new Ke(r).sub(l).div(o).toNumber()),u=s+c+1;return u>n?pB(t,r,n,i,a+1):(u<n&&(c=r>0?c+(n-u):c,s=r>0?s:s+(n-u)),{step:o,tickMin:l.sub(new Ke(s).mul(o)),tickMax:l.add(new Ke(c).mul(o))})},fie=function(t){var[r,n]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),[l,s]=hB([r,n]);if(l===-1/0||s===1/0){var c=s===1/0?[l,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),s];return r>n?c.reverse():c}if(l===s)return uie(l,i,a);var{step:u,tickMin:f,tickMax:h}=pB(l,s,o,a,0),d=fB(f,h.add(new Ke(.1).mul(u)),u);return r>n?d.reverse():d},hie=function(t,r){var[n,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,l]=hB([n,i]);if(o===-1/0||l===1/0)return[n,i];if(o===l)return[o];var s=Math.max(r,2),c=dB(new Ke(l).sub(o).div(s-1),a,0),u=[...fB(new Ke(o),new Ke(l),c),l];return a===!1&&(u=u.map(f=>Math.round(f))),n>i?u.reverse():u},gB=e=>e.rootProps.maxBarSize,die=e=>e.rootProps.barGap,mB=e=>e.rootProps.barCategoryGap,pie=e=>e.rootProps.barSize,_h=e=>e.rootProps.stackOffset,yB=e=>e.rootProps.reverseStackOrder,WS=e=>e.options.chartName,HS=e=>e.rootProps.syncId,vB=e=>e.rootProps.syncMethod,US=e=>e.options.eventEmitter,Pt={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Wo={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Ei={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},Oy=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function My(e,t,r){if(r!=="auto")return r;if(e!=null)return Na(e,t)?"category":"number"}function OA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $g(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OA(Object(r),!0).forEach(function(n){gie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gie(e,t,r){return(t=mie(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mie(e){var t=yie(e,"string");return typeof t=="symbol"?t:t+""}function yie(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var MA={allowDataOverflow:Wo.allowDataOverflow,allowDecimals:Wo.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Wo.angleAxisId,includeHidden:!1,name:void 0,reversed:Wo.reversed,scale:Wo.scale,tick:Wo.tick,tickCount:void 0,ticks:void 0,type:Wo.type,unit:void 0},LA={allowDataOverflow:Ei.allowDataOverflow,allowDecimals:Ei.allowDecimals,allowDuplicatedCategory:Ei.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ei.radiusAxisId,includeHidden:Ei.includeHidden,name:void 0,reversed:Ei.reversed,scale:Ei.scale,tick:Ei.tick,tickCount:Ei.tickCount,ticks:void 0,type:Ei.type,unit:void 0},vie=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},qS=H([vie,Xj],(e,t)=>{var r;if(e!=null)return e;var n=(r=My(t,"angleAxis",MA.type))!==null&&r!==void 0?r:"category";return $g($g({},MA),{},{type:n})}),xie=(e,t)=>e.polarAxis.radiusAxis[t],VS=H([xie,Xj],(e,t)=>{var r;if(e!=null)return e;var n=(r=My(t,"radiusAxis",LA.type))!==null&&r!==void 0?r:"category";return $g($g({},LA),{},{type:n})}),Ly=e=>e.polarOptions,YS=H([ja,Ra,Vt],dR),xB=H([Ly,YS],(e,t)=>{if(e!=null)return kr(e.innerRadius,t,0)}),bB=H([Ly,YS],(e,t)=>{if(e!=null)return kr(e.outerRadius,t,t*.8)}),bie=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},wB=H([Ly],bie);H([qS,wB],Oy);var kB=H([YS,xB,bB],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});H([VS,kB],Oy);var SB=H([Fe,Ly,xB,bB,ja,Ra],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:l,startAngle:s,endAngle:c}=t;return{cx:kr(o,i,i/2),cy:kr(l,a,a/2),innerRadius:r,outerRadius:n,startAngle:s,endAngle:c,clockWise:!1}}}),bt=(e,t)=>t,Eh=(e,t,r)=>r;function KS(e){return e==null?void 0:e.id}function CB(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(l=>{var s,c=(s=l.data)!==null&&s!==void 0?s:n;if(!(c==null||c.length===0)){var u=KS(l);c.forEach((f,h)=>{var d=a==null||i?h:String(Xe(f,a,null)),p=Xe(f,l.dataKey,0),g;o.has(d)?g=o.get(d):g={},Object.assign(g,{[u]:p}),o.set(d,g)})}}),Array.from(o.values())}function Iy(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var $y=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Dy(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function wie(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var nr=e=>{var t=Fe(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Lc=e=>e.tooltip.settings.axisId;function kie(e){if(e in Mu)return Mu[e]();var t="scale".concat(fh(e));if(t in Mu)return Mu[t]()}function IA(e){var t=e.ticks,r=e.bandwidth,n=e.range(),i=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:function(a){function o(){return a.apply(this,arguments)}return o.toString=function(){return a.toString()},o}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(a){var o=i[0],l=i[1];return o<=l?a>=o&&a<=l:a>=l&&a<=o},bandwidth:r?()=>r.call(e):void 0,ticks:t?a=>t.call(e,a):void 0,map:(a,o)=>{var l=e(a);if(l!=null){if(e.bandwidth&&o!==null&&o!==void 0&&o.position){var s=e.bandwidth();switch(o.position){case"middle":l+=s/2;break;case"end":l+=s;break}}return l}}}}function $A(e,t,r){if(typeof e=="function")return IA(e.copy().domain(t).range(r));if(e!=null){var n=kie(e);if(n!=null)return n.domain(t).range(r),IA(n)}}var _B=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Aa(t)){for(var r,n,i=0;i<t.length;i++){var a=t[i];Ae(a)&&((r===void 0||a<r)&&(r=a),(n===void 0||a>n)&&(n=a))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};function DA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DA(Object(r),!0).forEach(function(n){Sie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sie(e,t,r){return(t=Cie(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cie(e){var t=_ie(e,"string");return typeof t=="symbol"?t:t+""}function _ie(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xb=[0,"auto"],Gt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},EB=(e,t)=>e.cartesianAxis.xAxis[t],Zi=(e,t)=>{var r=EB(e,t);return r??Gt},Xt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Xb,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:gh},TB=(e,t)=>e.cartesianAxis.yAxis[t],Qi=(e,t)=>{var r=TB(e,t);return r??Xt},Eie={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},GS=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??Eie},_t=(e,t,r)=>{switch(t){case"xAxis":return Zi(e,r);case"yAxis":return Qi(e,r);case"zAxis":return GS(e,r);case"angleAxis":return qS(e,r);case"radiusAxis":return VS(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Tie=(e,t,r)=>{switch(t){case"xAxis":return Zi(e,r);case"yAxis":return Qi(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Ic=(e,t,r)=>{switch(t){case"xAxis":return Zi(e,r);case"yAxis":return Qi(e,r);case"angleAxis":return qS(e,r);case"radiusAxis":return VS(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},PB=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function XS(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Ny=e=>e.graphicalItems.cartesianItems,Pie=H([bt,Eh],XS),ZS=(e,t,r)=>e.filter(r).filter(n=>(t==null?void 0:t.includeHidden)===!0?!0:!n.hide),Th=H([Ny,_t,Pie],ZS,{memoizeOptions:{resultEqualityCheck:Dy}}),AB=H([Th],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Iy)),OB=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Aie=H([Th],OB),QS=e=>e.map(t=>t.data).filter(Boolean).flat(1),Oie=H([Th],QS,{memoizeOptions:{resultEqualityCheck:Dy}}),JS=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},eC=H([Oie,BS],JS),tC=(e,t,r)=>(t==null?void 0:t.dataKey)!=null?e.map(n=>({value:Xe(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:Xe(i,n)}))):e.map(n=>({value:n})),jy=H([eC,_t,Th],tC);function MB(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function cp(e){if(zn(e)||e instanceof Date){var t=Number(e);if(Ae(t))return t}}function NA(e){if(Array.isArray(e)){var t=[cp(e[0]),cp(e[1])];return Aa(t)?t:void 0}var r=cp(e);if(r!=null)return[r,r]}function Oa(e){return e.map(cp).filter(tn)}function Mie(e,t,r){return!r||typeof t!="number"||Vi(t)?[]:r.length?Oa(r.flatMap(n=>{var i=Xe(e,n.dataKey),a,o;if(Array.isArray(i)?[a,o]=i:a=o=i,!(!Ae(a)||!Ae(o)))return[t-a,t+o]})):[]}var Kt=e=>{var t=nr(e),r=Lc(e);return Ic(e,t,r)},Ph=H([Kt],e=>e==null?void 0:e.dataKey),Lie=H([AB,BS,Kt],CB),LB=(e,t,r,n)=>{var i={},a=t.reduce((o,l)=>{if(l.stackId==null)return o;var s=o[l.stackId];return s==null&&(s=[]),s.push(l),o[l.stackId]=s,o},i);return Object.fromEntries(Object.entries(a).map(o=>{var[l,s]=o,c=n?[...s].reverse():s,u=c.map(KS);return[l,{stackedData:iJ(e,u,r),graphicalItems:c}]}))},Zb=H([Lie,AB,_h,yB],LB),IB=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(n==null&&r!=="zAxis"){var o=cJ(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},Iie=H([_t],e=>e.allowDataOverflow),rC=e=>{var t;if(e==null||!("domain"in e))return Xb;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=Oa(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:Xb},nC=H([_t],rC),iC=H([nC,Iie],iB),$ie=H([Zb,Fa,bt,iC],IB,{memoizeOptions:{resultEqualityCheck:$y}}),Ry=e=>e.errorBars,Die=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>MB(r,n)),Ng=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),o=Math.min(...a),l=Math.max(...a);return[o,l]}},aC=(e,t,r,n,i)=>{var a,o;if(r.length>0&&e.forEach(l=>{r.forEach(s=>{var c,u,f=(c=n[s.id])===null||c===void 0?void 0:c.filter(m=>MB(i,m)),h=Xe(l,(u=t.dataKey)!==null&&u!==void 0?u:s.dataKey),d=Mie(l,h,f);if(d.length>=2){var p=Math.min(...d),g=Math.max(...d);(a==null||p<a)&&(a=p),(o==null||g>o)&&(o=g)}var y=NA(h);y!=null&&(a=a==null?y[0]:Math.min(a,y[0]),o=o==null?y[1]:Math.max(o,y[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(l=>{var s=NA(Xe(l,t.dataKey));s!=null&&(a=a==null?s[0]:Math.min(a,s[0]),o=o==null?s[1]:Math.max(o,s[1]))}),Ae(a)&&Ae(o))return[a,o]},Nie=H([eC,_t,Aie,Ry,bt],aC,{memoizeOptions:{resultEqualityCheck:$y}});function jie(e){var{value:t}=e;if(zn(t)||t instanceof Date)return t}var Rie=(e,t,r)=>{var n=e.map(jie).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&EN(n))?bR(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},$B=e=>e.referenceElements.dots,$c=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),Bie=H([$B,bt,Eh],$c),DB=e=>e.referenceElements.areas,Fie=H([DB,bt,Eh],$c),NB=e=>e.referenceElements.lines,zie=H([NB,bt,Eh],$c),jB=(e,t)=>{if(e!=null){var r=Oa(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},Wie=H(Bie,bt,jB),RB=(e,t)=>{if(e!=null){var r=Oa(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},Hie=H([Fie,bt],RB);function Uie(e){var t;if(e.x!=null)return Oa([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Oa(r)}function qie(e){var t;if(e.y!=null)return Oa([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Oa(r)}var BB=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?Uie(n):qie(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},Vie=H([zie,bt],BB),Yie=H(Wie,Vie,Hie,(e,t,r)=>Ng(e,r,t)),oC=(e,t,r,n,i,a,o,l)=>{if(r!=null)return r;var s=o==="vertical"&&l==="xAxis"||o==="horizontal"&&l==="yAxis",c=s?Ng(n,a,i):Ng(a,i);return oie(t,c,e.allowDataOverflow)},Kie=H([_t,nC,iC,$ie,Nie,Yie,Fe,bt],oC,{memoizeOptions:{resultEqualityCheck:$y}}),Gie=[0,1],lC=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:l,type:s}=e,c=Na(t,a);if(c&&l==null){var u;return bR(0,(u=r==null?void 0:r.length)!==null&&u!==void 0?u:0)}return s==="category"?Rie(n,e,c):i==="expand"?Gie:o}},sC=H([_t,Fe,eC,jy,_h,bt,Kie],lC);function Xie(e){return e in Mu}var FB=(e,t,r)=>{if(e!=null){var{scale:n,type:i}=e;if(n==="auto")return i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof n=="string"){var a="scale".concat(fh(n));return Xie(a)?a:"point"}}},Io=H([_t,PB,WS],FB);function cC(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?$A(e.scale,r,n):$A(t,r,n)}var uC=(e,t,r)=>{var n=rC(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Aa(e))return fie(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Aa(e))return hie(e,t.tickCount,t.allowDecimals)}},fC=H([sC,Ic,Io],uC),hC=(e,t,r,n)=>{if(n!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&Aa(t)&&Array.isArray(r)&&r.length>0){var i,a,o=t[0],l=(i=r[0])!==null&&i!==void 0?i:0,s=t[1],c=(a=r[r.length-1])!==null&&a!==void 0?a:0;return[Math.min(o,l),Math.max(s,c)]}return t},Zie=H([_t,sC,fC,bt],hC),Qie=H(jy,_t,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Oa(e.map(f=>f.value))).sort((f,h)=>f-h),i=n[0],a=n[n.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var l=0;l<n.length-1;l++){var s=n[l],c=n[l+1];if(!(s==null||c==null)){var u=c-s;r=Math.min(r,u)}}return r/o}}),zB=H(Qie,Fe,mB,Vt,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!Ae(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=kr(r,e*a),l=e*a/2;return l-o-(l-o)/a*o}return 0}),Jie=(e,t,r)=>{var n=Zi(e,t);return n==null||typeof n.padding!="string"?0:zB(e,"xAxis",t,r,n.padding)},eae=(e,t,r)=>{var n=Qi(e,t);return n==null||typeof n.padding!="string"?0:zB(e,"yAxis",t,r,n.padding)},tae=H(Zi,Jie,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),rae=H(Qi,eae,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),nae=H([Vt,tae,my,gy,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),iae=H([Vt,Fe,rae,my,gy,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Ah=(e,t,r,n)=>{var i;switch(t){case"xAxis":return nae(e,r,n);case"yAxis":return iae(e,r,n);case"zAxis":return(i=GS(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return wB(e);case"radiusAxis":return kB(e,r);default:return}},WB=H([_t,Ah],Oy),aae=H([Io,Zie],_B),fc=H([_t,Io,aae,WB],cC);H([Th,Ry,bt],Die);function HB(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var By=(e,t)=>t,Fy=(e,t,r)=>r,oae=H(dy,By,Fy,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(HB)),lae=H(py,By,Fy,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(HB)),UB=(e,t)=>({width:e.width,height:t.height}),sae=(e,t)=>{var r=typeof t.width=="number"?t.width:gh;return{width:r,height:e.height}},qB=H(Vt,Zi,UB),cae=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},uae=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},fae=H(Ra,Vt,oae,By,Fy,(e,t,r,n,i)=>{var a={},o;return r.forEach(l=>{var s=UB(t,l);o==null&&(o=cae(t,n,e));var c=n==="top"&&!i||n==="bottom"&&i;a[l.id]=o-Number(c)*s.height,o+=(c?-1:1)*s.height}),a}),hae=H(ja,Vt,lae,By,Fy,(e,t,r,n,i)=>{var a={},o;return r.forEach(l=>{var s=sae(t,l);o==null&&(o=uae(t,n,e));var c=n==="left"&&!i||n==="right"&&i;a[l.id]=o-Number(c)*s.width,o+=(c?-1:1)*s.width}),a}),dae=(e,t)=>{var r=Zi(e,t);if(r!=null)return fae(e,r.orientation,r.mirror)},pae=H([Vt,Zi,dae,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r==null?void 0:r[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),gae=(e,t)=>{var r=Qi(e,t);if(r!=null)return hae(e,r.orientation,r.mirror)},mae=H([Vt,Qi,gae,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r==null?void 0:r[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),VB=H(Vt,Qi,(e,t)=>{var r=typeof t.width=="number"?t.width:gh;return{width:r,height:e.height}}),jA=(e,t,r)=>{switch(t){case"xAxis":return qB(e,r).width;case"yAxis":return VB(e,r).height;default:return}},YB=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,l=Na(e,n),s=t.map(c=>c.value);if(o&&l&&a==="category"&&i&&EN(s))return s}},dC=H([Fe,jy,_t,bt],YB),KB=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=Na(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(l=>l.value)}},pC=H([Fe,jy,Ic,bt],KB),RA=H([Fe,Tie,Io,fc,dC,pC,Ah,fC,bt],(e,t,r,n,i,a,o,l,s)=>{if(t!=null){var c=Na(e,s);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:s,categoricalDomain:a,duplicateDomain:i,isCategorical:c,niceTicks:l,range:o,realScaleType:r,scale:n}}}),yae=(e,t,r,n,i,a,o,l,s)=>{if(!(t==null||n==null)){var c=Na(e,s),{type:u,ticks:f,tickCount:h}=t,d=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,p=u==="category"&&n.bandwidth?n.bandwidth()/d:0;p=s==="angleAxis"&&a!=null&&a.length>=2?er(a[0]-a[1])*2*p:p;var g=f||i;return g?g.map((y,m)=>{var v=o?o.indexOf(y):y,b=n.map(v);return Ae(b)?{index:m,coordinate:b+p,value:y,offset:p}:null}).filter(tn):c&&l?l.map((y,m)=>{var v=n.map(y);return Ae(v)?{coordinate:v+p,value:y,index:m,offset:p}:null}).filter(tn):n.ticks?n.ticks(h).map((y,m)=>{var v=n.map(y);return Ae(v)?{coordinate:v+p,value:y,index:m,offset:p}:null}).filter(tn):n.domain().map((y,m)=>{var v=n.map(y);return Ae(v)?{coordinate:v+p,value:o?o[y]:y,index:m,offset:p}:null}).filter(tn)}},GB=H([Fe,Ic,Io,fc,fC,Ah,dC,pC,bt],yae),vae=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var l=Na(e,o),{tickCount:s}=t,c=0;return c=o==="angleAxis"&&(n==null?void 0:n.length)>=2?er(n[0]-n[1])*2*c:c,l&&a?a.map((u,f)=>{var h=r.map(u);return Ae(h)?{coordinate:h+c,value:u,index:f,offset:c}:null}).filter(tn):r.ticks?r.ticks(s).map((u,f)=>{var h=r.map(u);return Ae(h)?{coordinate:h+c,value:u,index:f,offset:c}:null}).filter(tn):r.domain().map((u,f)=>{var h=r.map(u);return Ae(h)?{coordinate:h+c,value:i?i[u]:u,index:f,offset:c}:null}).filter(tn)}},vo=H([Fe,Ic,fc,Ah,dC,pC,bt],vae),xo=H(_t,fc,(e,t)=>{if(!(e==null||t==null))return Dg(Dg({},e),{},{scale:t})}),xae=H([_t,Io,sC,WB],cC);H((e,t,r)=>GS(e,r),xae,(e,t)=>{if(!(e==null||t==null))return Dg(Dg({},e),{},{scale:t})});var bae=H([Fe,dy,py],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),XB=e=>e.options.defaultTooltipEventType,ZB=e=>e.options.validateTooltipEventTypes;function QB(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function gC(e,t){var r=XB(e),n=ZB(e);return QB(t,r,n)}function wae(e){return ie(t=>gC(t,e))}var JB=(e,t)=>{var r,n=Number(t);if(!(Vi(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},kae=e=>e.tooltip.settings,Qa={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Sae={itemInteraction:{click:Qa,hover:Qa},axisInteraction:{click:Qa,hover:Qa},keyboardInteraction:Qa,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},eF=cn({name:"tooltip",initialState:Sae,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:ft()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=hi(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:ft()},removeTooltipEntrySettings:{reducer(e,t){var r=hi(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:ft()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Cae,replaceTooltipEntrySettings:_ae,removeTooltipEntrySettings:Eae,setTooltipSettingsState:Tae,setActiveMouseOverItemIndex:tF,mouseLeaveItem:Pae,mouseLeaveChart:rF,setActiveClickItemIndex:Aae,setMouseOverAxisIndex:nF,setMouseClickAxisIndex:Oae,setSyncInteraction:Qb,setKeyboardInteraction:Jb}=eF.actions,Mae=eF.reducer;function BA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Od(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BA(Object(r),!0).forEach(function(n){Lae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lae(e,t,r){return(t=Iae(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iae(e){var t=$ae(e,"string");return typeof t=="symbol"?t:t+""}function $ae(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dae(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Nae(e){return e.index!=null}var iF=(e,t,r,n)=>{if(t==null)return Qa;var i=Dae(e,t,r);if(i==null)return Qa;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(Nae(i)){if(a)return Od(Od({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Od(Od({},Qa),{},{coordinate:i.coordinate})};function jae(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function Rae(e,t){var r=jae(e),n=t[0],i=t[1];if(r===void 0)return!1;var a=Math.min(n,i),o=Math.max(n,i);return r>=a&&r<=o}function Bae(e,t,r){if(r==null||t==null)return!0;var n=Xe(e,t);return n==null||!Aa(r)?!0:Rae(n,r)}var mC=(e,t,r,n)=>{var i=e==null?void 0:e.index;if(i==null)return null;var a=Number(i);if(!Ae(a))return i;var o=0,l=1/0;t.length>0&&(l=t.length-1);var s=Math.max(o,Math.min(a,l)),c=t[s];return c==null||Bae(c,r,n)?String(s):null},aF=(e,t,r,n,i,a,o)=>{if(a!=null){var l=o[0],s=l==null?void 0:l.getPosition(a);if(s!=null)return s;var c=i==null?void 0:i[Number(a)];if(c)switch(r){case"horizontal":return{x:c.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:c.coordinate}}}},oF=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(r==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,i==null&&n!=null){var a=e.tooltipItemPayloads[0];return a!=null?[a]:[]}return e.tooltipItemPayloads.filter(o=>{var l;return((l=o.settings)===null||l===void 0?void 0:l.graphicalItemId)===i})},lF=e=>e.options.tooltipPayloadSearcher,Dc=e=>e.tooltip;function FA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FA(Object(r),!0).forEach(function(n){Fae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fae(e,t,r){return(t=zae(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zae(e){var t=Wae(e,"string");return typeof t=="symbol"?t:t+""}function Wae(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hae(e,t){return e??t}var sF=(e,t,r,n,i,a,o)=>{if(!(t==null||a==null)){var{chartData:l,computedData:s,dataStartIndex:c,dataEndIndex:u}=r,f=[];return e.reduce((h,d)=>{var p,{dataDefinedOnItem:g,settings:y}=d,m=Hae(g,l),v=Array.isArray(m)?Nj(m,c,u):m,b=(p=y==null?void 0:y.dataKey)!==null&&p!==void 0?p:n,S=y==null?void 0:y.nameKey,C;if(n&&Array.isArray(v)&&!Array.isArray(v[0])&&o==="axis"?C=TN(v,n,i):C=a(v,t,s,S),Array.isArray(C))C.forEach(_=>{var P=zA(zA({},y),{},{name:_.name,unit:_.unit,color:void 0,fill:void 0});h.push(YT({tooltipEntrySettings:P,dataKey:_.dataKey,payload:_.payload,value:Xe(_.payload,_.dataKey),name:_.name}))});else{var w;h.push(YT({tooltipEntrySettings:y,dataKey:b,payload:C,value:Xe(C,b),name:(w=Xe(C,S))!==null&&w!==void 0?w:y==null?void 0:y.name}))}return h},f)}},yC=H([Kt,PB,WS],FB),Uae=H([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),qae=H([nr,Lc],XS),Nc=H([Uae,Kt,qae],ZS,{memoizeOptions:{resultEqualityCheck:Dy}}),Vae=H([Nc],e=>e.filter(Iy)),Yae=H([Nc],QS,{memoizeOptions:{resultEqualityCheck:Dy}}),jc=H([Yae,Fa],JS),Kae=H([Vae,Fa,Kt],CB),vC=H([jc,Kt,Nc],tC),cF=H([Kt],rC),Gae=H([Kt],e=>e.allowDataOverflow),uF=H([cF,Gae],iB),Xae=H([Nc],e=>e.filter(Iy)),Zae=H([Kae,Xae,_h,yB],LB),Qae=H([Zae,Fa,nr,uF],IB),Jae=H([Nc],OB),eoe=H([jc,Kt,Jae,Ry,nr],aC,{memoizeOptions:{resultEqualityCheck:$y}}),toe=H([$B,nr,Lc],$c),roe=H([toe,nr],jB),noe=H([DB,nr,Lc],$c),ioe=H([noe,nr],RB),aoe=H([NB,nr,Lc],$c),ooe=H([aoe,nr],BB),loe=H([roe,ooe,ioe],Ng),soe=H([Kt,cF,uF,Qae,eoe,loe,Fe,nr],oC),Oh=H([Kt,Fe,jc,vC,_h,nr,soe],lC),coe=H([Oh,Kt,yC],uC),uoe=H([Kt,Oh,coe,nr],hC),fF=e=>{var t=nr(e),r=Lc(e),n=!1;return Ah(e,t,r,n)},hF=H([Kt,fF],Oy),dF=H([Kt,yC,uoe,hF],cC),foe=H([Fe,vC,Kt,nr],YB),hoe=H([Fe,vC,Kt,nr],KB),doe=(e,t,r,n,i,a,o,l)=>{if(t){var{type:s}=t,c=Na(e,l);if(n){var u=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=s==="category"&&n.bandwidth?n.bandwidth()/u:0;return f=l==="angleAxis"&&i!=null&&(i==null?void 0:i.length)>=2?er(i[0]-i[1])*2*f:f,c&&o?o.map((h,d)=>{var p=n.map(h);return Ae(p)?{coordinate:p+f,value:h,index:d,offset:f}:null}).filter(tn):n.domain().map((h,d)=>{var p=n.map(h);return Ae(p)?{coordinate:p+f,value:a?a[h]:h,index:d,offset:f}:null}).filter(tn)}}},za=H([Fe,Kt,yC,dF,fF,foe,hoe,nr],doe),xC=H([XB,ZB,kae],(e,t,r)=>QB(r.shared,e,t)),pF=e=>e.tooltip.settings.trigger,bC=e=>e.tooltip.settings.defaultIndex,Mh=H([Dc,xC,pF,bC],iF),bo=H([Mh,jc,Ph,Oh],mC),gF=H([za,bo],JB),wC=H([Mh],e=>{if(e)return e.dataKey}),poe=H([Mh],e=>{if(e)return e.graphicalItemId}),mF=H([Dc,xC,pF,bC],oF),goe=H([ja,Ra,Fe,Vt,za,bC,mF],aF),moe=H([Mh,goe],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),yoe=H([Mh],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),voe=H([mF,bo,Fa,Ph,gF,lF,xC],sF),xoe=H([voe],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function WA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function HA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WA(Object(r),!0).forEach(function(n){boe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function boe(e,t,r){return(t=woe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function woe(e){var t=koe(e,"string");return typeof t=="symbol"?t:t+""}function koe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Soe=()=>ie(Kt),Coe=()=>{var e=Soe(),t=ie(za),r=ie(dF);return ac(!e||!r?void 0:HA(HA({},e),{},{scale:r}),t)};function UA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ls(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UA(Object(r),!0).forEach(function(n){_oe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _oe(e,t,r){return(t=Eoe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eoe(e){var t=Toe(e,"string");return typeof t=="symbol"?t:t+""}function Toe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Poe=(e,t,r,n)=>{var i=t.find(a=>a&&a.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.chartY};if(e==="vertical")return{x:n.chartX,y:i.coordinate}}return{x:0,y:0}},Aoe=(e,t,r,n)=>{var i=t.find(c=>c&&c.index===r);if(i){if(e==="centric"){var a=i.coordinate,{radius:o}=n;return ls(ls(ls({},n),Nt(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var l=i.coordinate,{angle:s}=n;return ls(ls(ls({},n),Nt(n.cx,n.cy,l,s)),{},{angle:s,radius:l})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function Ooe(e,t){var{chartX:r,chartY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var yF=(e,t,r,n,i)=>{var a,o=(a=t==null?void 0:t.length)!==null&&a!==void 0?a:0;if(o<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l<o;l++){var s,c,u,f,h,d=l>0?(s=r[l-1])===null||s===void 0?void 0:s.coordinate:(c=r[o-1])===null||c===void 0?void 0:c.coordinate,p=(u=r[l])===null||u===void 0?void 0:u.coordinate,g=l>=o-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(h=r[l+1])===null||h===void 0?void 0:h.coordinate,y=void 0;if(!(d==null||p==null||g==null))if(er(p-d)!==er(g-p)){var m=[];if(er(g-p)===er(i[1]-i[0])){y=g;var v=p+i[1]-i[0];m[0]=Math.min(v,(v+d)/2),m[1]=Math.max(v,(v+d)/2)}else{y=d;var b=g+i[1]-i[0];m[0]=Math.min(p,(b+p)/2),m[1]=Math.max(p,(b+p)/2)}var S=[Math.min(p,(y+p)/2),Math.max(p,(y+p)/2)];if(e>S[0]&&e<=S[1]||e>=m[0]&&e<=m[1]){var C;return(C=r[l])===null||C===void 0?void 0:C.index}}else{var w=Math.min(d,g),_=Math.max(d,g);if(e>(w+p)/2&&e<=(_+p)/2){var P;return(P=r[l])===null||P===void 0?void 0:P.index}}}else if(t)for(var I=0;I<o;I++){var $=t[I];if($!=null){var A=t[I+1],M=t[I-1];if(I===0&&A!=null&&e<=($.coordinate+A.coordinate)/2||I===o-1&&M!=null&&e>($.coordinate+M.coordinate)/2||I>0&&I<o-1&&M!=null&&A!=null&&e>($.coordinate+M.coordinate)/2&&e<=($.coordinate+A.coordinate)/2)return $.index}}return-1},Moe=()=>ie(WS),kC=(e,t)=>t,vF=(e,t,r)=>r,SC=(e,t,r,n)=>n,Loe=H(za,e=>ny(e,t=>t.coordinate)),CC=H([Dc,kC,vF,SC],iF),_C=H([CC,jc,Ph,Oh],mC),Ioe=(e,t,r)=>{if(t!=null){var n=Dc(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},xF=H([Dc,kC,vF,SC],oF),jg=H([ja,Ra,Fe,Vt,za,SC,xF],aF),$oe=H([CC,jg],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),bF=H([za,_C],JB),Doe=H([xF,_C,Fa,Ph,bF,lF,kC],sF),Noe=H([CC,_C],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),joe=(e,t,r,n,i,a,o)=>{if(!(!e||!r||!n||!i)&&Ooe(e,o)){var l=uJ(e,t),s=yF(l,a,i,r,n),c=Poe(t,i,s,e);return{activeIndex:String(s),activeCoordinate:c}}},Roe=(e,t,r,n,i,a,o)=>{if(!(!e||!n||!i||!a||!r)){var l=Ste(e,r);if(l){var s=fJ(l,t),c=yF(s,o,a,n,i),u=Aoe(t,a,c,l);return{activeIndex:String(c),activeCoordinate:u}}}},Boe=(e,t,r,n,i,a,o,l)=>{if(!(!e||!t||!n||!i||!a))return t==="horizontal"||t==="vertical"?joe(e,t,n,i,a,o,l):Roe(e,t,r,n,i,a,o)},Foe=H(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),zoe=H(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(Pt)),r=Array.from(new Set(t));return r.sort((n,i)=>n-i)},{memoizeOptions:{resultEqualityCheck:wie}});function qA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qA(Object(r),!0).forEach(function(n){Woe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Woe(e,t,r){return(t=Hoe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hoe(e){var t=Uoe(e,"string");return typeof t=="symbol"?t:t+""}function Uoe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qoe={},Voe={zIndexMap:Object.values(Pt).reduce((e,t)=>VA(VA({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),qoe)},Yoe=new Set(Object.values(Pt));function Koe(e){return Yoe.has(e)}var wF=cn({name:"zIndex",initialState:Voe,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:ft()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!Koe(r)&&delete e.zIndexMap[r])},prepare:ft()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:i?void 0:n,panoramaElement:i?n:void 0}},prepare:ft()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:ft()}}}),{registerZIndexPortal:Goe,unregisterZIndexPortal:Xoe,registerZIndexPortalElement:Zoe,unregisterZIndexPortalElement:Qoe}=wF.actions,Joe=wF.reducer;function qr(e){var{zIndex:t,children:r}=e,n=RJ(),i=n&&t!==void 0&&t!==0,a=hr(),o=Qe();x.useLayoutEffect(()=>i?(o(Goe({zIndex:t})),()=>{o(Xoe({zIndex:t}))}):Hl,[o,t,i]);var l=ie(s=>Foe(s,t,a));return i?l?Fm.createPortal(r,l):null:r}function ew(){return ew=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ew.apply(null,arguments)}function YA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Md(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YA(Object(r),!0).forEach(function(n){ele(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ele(e,t,r){return(t=tle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tle(e){var t=rle(e,"string");return typeof t=="symbol"?t:t+""}function rle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nle(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return x.isValidElement(t)?x.cloneElement(t,n):x.createElement(r,n)}function ile(e){var t,{coordinate:r,payload:n,index:i,offset:a,tooltipAxisBandSize:o,layout:l,cursor:s,tooltipEventType:c,chartName:u}=e,f=r,h=n,d=i;if(!s||!f||u!=="ScatterChart"&&c!=="axis")return null;var p,g,y;if(u==="ScatterChart")p=f,g=jee,y=Pt.cursorLine;else if(u==="BarChart")p=Ree(l,f,a,o),g=hR,y=Pt.cursorRectangle;else if(l==="radial"&&AN(f)){var{cx:m,cy:v,radius:b,startAngle:S,endAngle:C}=pR(f);p={cx:m,cy:v,startAngle:S,endAngle:C,innerRadius:b,outerRadius:b},g=mR,y=Pt.cursorLine}else p={points:Tte(l,f,a)},g=mS,y=Pt.cursorLine;var w=typeof s=="object"&&"className"in s?s.className:void 0,_=Md(Md(Md(Md({stroke:"#ccc",pointerEvents:"none"},a),p),kl(s)),{},{payload:h,payloadIndex:d,className:je("recharts-tooltip-cursor",w)});return x.createElement(qr,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:y},x.createElement(nle,{cursor:s,cursorComp:g,cursorProps:_}))}function ale(e){var t=Coe(),r=Kj(),n=Ul(),i=Moe();return t==null||r==null||n==null||i==null?null:x.createElement(ile,ew({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var kF=x.createContext(null),ole=()=>x.useContext(kF),SF={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,u){this.fn=s,this.context=c,this.once=u||!1}function a(s,c,u,f,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var d=new i(u,f||s,h),p=r?r+c:c;return s._events[p]?s._events[p].fn?s._events[p]=[s._events[p],d]:s._events[p].push(d):(s._events[p]=d,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)t.call(u,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},l.prototype.listeners=function(c){var u=r?r+c:c,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,d=f.length,p=new Array(d);h<d;h++)p[h]=f[h].fn;return p},l.prototype.listenerCount=function(c){var u=r?r+c:c,f=this._events[u];return f?f.fn?1:f.length:0},l.prototype.emit=function(c,u,f,h,d,p){var g=r?r+c:c;if(!this._events[g])return!1;var y=this._events[g],m=arguments.length,v,b;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),m){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,u),!0;case 3:return y.fn.call(y.context,u,f),!0;case 4:return y.fn.call(y.context,u,f,h),!0;case 5:return y.fn.call(y.context,u,f,h,d),!0;case 6:return y.fn.call(y.context,u,f,h,d,p),!0}for(b=1,v=new Array(m-1);b<m;b++)v[b-1]=arguments[b];y.fn.apply(y.context,v)}else{var S=y.length,C;for(b=0;b<S;b++)switch(y[b].once&&this.removeListener(c,y[b].fn,void 0,!0),m){case 1:y[b].fn.call(y[b].context);break;case 2:y[b].fn.call(y[b].context,u);break;case 3:y[b].fn.call(y[b].context,u,f);break;case 4:y[b].fn.call(y[b].context,u,f,h);break;default:if(!v)for(C=1,v=new Array(m-1);C<m;C++)v[C-1]=arguments[C];y[b].fn.apply(y[b].context,v)}}return!0},l.prototype.on=function(c,u,f){return a(this,c,u,f,!1)},l.prototype.once=function(c,u,f){return a(this,c,u,f,!0)},l.prototype.removeListener=function(c,u,f,h){var d=r?r+c:c;if(!this._events[d])return this;if(!u)return o(this,d),this;var p=this._events[d];if(p.fn)p.fn===u&&(!h||p.once)&&(!f||p.context===f)&&o(this,d);else{for(var g=0,y=[],m=p.length;g<m;g++)(p[g].fn!==u||h&&!p[g].once||f&&p[g].context!==f)&&y.push(p[g]);y.length?this._events[d]=y.length===1?y[0]:y:o(this,d)}return this},l.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&o(this,u)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l})(SF);var lle=SF.exports;const sle=Yn(lle);var zf=new sle,tw="recharts.syncEvent.tooltip",KA="recharts.syncEvent.brush",EC=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!Vi(r))return e[r]}},cle={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},CF=cn({name:"options",initialState:cle,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),ule=CF.reducer,{createEventEmitter:fle}=CF.actions;function hle(e){return e.tooltip.syncInteraction}var dle={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},_F=cn({name:"chartData",initialState:dle,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:GA,setDataStartEndIndexes:ple,setComputedData:pTe}=_F.actions,gle=_F.reducer,mle=["x","y"];function XA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ss(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XA(Object(r),!0).forEach(function(n){yle(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yle(e,t,r){return(t=vle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vle(e){var t=xle(e,"string");return typeof t=="symbol"?t:t+""}function xle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ble(e,t){if(e==null)return{};var r,n,i=wle(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function wle(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function kle(){var e=ie(HS),t=ie(US),r=Qe(),n=ie(vB),i=ie(za),a=Ul(),o=mh(),l=ie(s=>s.rootProps.className);x.useEffect(()=>{if(e==null)return Hl;var s=(c,u,f)=>{if(t!==f&&e===c){if(n==="index"){var h;if(o&&u!==null&&u!==void 0&&(h=u.payload)!==null&&h!==void 0&&h.coordinate&&u.payload.sourceViewBox){var d=u.payload.coordinate,{x:p,y:g}=d,y=ble(d,mle),{x:m,y:v,width:b,height:S}=u.payload.sourceViewBox,C=ss(ss({},y),{},{x:o.x+(b?(p-m)/b:0)*o.width,y:o.y+(S?(g-v)/S:0)*o.height});r(ss(ss({},u),{},{payload:ss(ss({},u.payload),{},{coordinate:C})}))}else r(u);return}if(i!=null){var w;if(typeof n=="function"){var _={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},P=n(i,_);w=i[P]}else n==="value"&&(w=i.find(j=>String(j.value)===u.payload.label));var{coordinate:I}=u.payload;if(w==null||u.payload.active===!1||I==null||o==null){r(Qb({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:$,y:A}=I,M=Math.min($,o.x+o.width),F=Math.min(A,o.y+o.height),N={x:a==="horizontal"?w.coordinate:M,y:a==="horizontal"?F:w.coordinate},D=Qb({active:u.payload.active,coordinate:N,dataKey:u.payload.dataKey,index:String(w.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:u.payload.graphicalItemId});r(D)}}};return zf.on(tw,s),()=>{zf.off(tw,s)}},[l,r,t,e,n,i,a,o])}function Sle(){var e=ie(HS),t=ie(US),r=Qe();x.useEffect(()=>{if(e==null)return Hl;var n=(i,a,o)=>{t!==o&&e===i&&r(ple(a))};return zf.on(KA,n),()=>{zf.off(KA,n)}},[r,t,e])}function Cle(){var e=Qe();x.useEffect(()=>{e(fle())},[e]),kle(),Sle()}function _le(e,t,r,n,i,a){var o=ie(d=>Ioe(d,e,t)),l=ie(US),s=ie(HS),c=ie(vB),u=ie(hle),f=u==null?void 0:u.active,h=mh();x.useEffect(()=>{if(!f&&s!=null&&l!=null){var d=Qb({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:h,graphicalItemId:void 0});zf.emit(tw,s,d,l)}},[f,r,o,i,n,l,s,c,a,h])}function ZA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZA(Object(r),!0).forEach(function(n){Ele(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ele(e,t,r){return(t=Tle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tle(e){var t=Ple(e,"string");return typeof t=="symbol"?t:t+""}function Ple(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ale(e){return e.dataKey}function Ole(e,t){return x.isValidElement(e)?x.cloneElement(e,t):typeof e=="function"?x.createElement(e,t):x.createElement(mee,t)}var JA=[],Mle={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function TC(e){var t,r,n=At(e,Mle),{active:i,allowEscapeViewBox:a,animationDuration:o,animationEasing:l,content:s,filterNull:c,isAnimationActive:u,offset:f,payloadUniqBy:h,position:d,reverseDirection:p,useTranslate3d:g,wrapperStyle:y,cursor:m,shared:v,trigger:b,defaultIndex:S,portal:C,axisId:w}=n,_=Qe(),P=typeof S=="number"?String(S):S;x.useEffect(()=>{_(Tae({shared:v,trigger:b,axisId:w,active:i,defaultIndex:P}))},[_,v,b,w,i,P]);var I=mh(),$=lR(),A=wae(v),{activeIndex:M,isActive:F}=(t=ie(de=>Noe(de,A,b,P)))!==null&&t!==void 0?t:{},N=ie(de=>Doe(de,A,b,P)),D=ie(de=>bF(de,A,b,P)),j=ie(de=>$oe(de,A,b,P)),B=N,L=ole(),W=(r=i??F)!==null&&r!==void 0?r:!1,[T,V]=oj([B,W]),J=A==="axis"?D:void 0;_le(A,b,j,J,M,W);var O=C??L;if(O==null||I==null||A==null)return null;var ue=B??JA;W||(ue=JA),c&&ue.length&&(ue=KN(ue.filter(de=>de.value!=null&&(de.hide!==!0||n.includeHidden)),h,Ale));var ye=ue.length>0,te=x.createElement(See,{allowEscapeViewBox:a,animationDuration:o,animationEasing:l,isAnimationActive:u,active:W,coordinate:j,hasPayload:ye,offset:f,position:d,reverseDirection:p,useTranslate3d:g,viewBox:I,wrapperStyle:y,lastBoundingBox:T,innerRef:V,hasPortalFromProps:!!C},Ole(s,QA(QA({},n),{},{payload:ue,label:J,active:W,activeIndex:M,coordinate:j,accessibilityLayer:$})));return x.createElement(x.Fragment,null,Fm.createPortal(te,O),W&&x.createElement(ale,{cursor:m,tooltipEventType:A,coordinate:j,payload:ue,index:M}))}var Lh=e=>null;Lh.displayName="Cell";function Lle(e,t,r){return(t=Ile(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ile(e){var t=$le(e,"string");return typeof t=="symbol"?t:t+""}function $le(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Dle{constructor(t){Lle(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function eO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nle(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eO(Object(r),!0).forEach(function(n){jle(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jle(e,t,r){return(t=Rle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rle(e){var t=Ble(e,"string");return typeof t=="symbol"?t:t+""}function Ble(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fle={cacheSize:2e3,enableCache:!0},EF=Nle({},Fle),tO=new Dle(EF.cacheSize),zle={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},rO="recharts_measurement_span";function Wle(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",o=t.letterSpacing||"",l=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(o,"|").concat(l)}var nO=(e,t)=>{try{var r=document.getElementById(rO);r||(r=document.createElement("span"),r.setAttribute("id",rO),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,zle,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},tf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||wy.isSsr)return{width:0,height:0};if(!EF.enableCache)return nO(t,r);var n=Wle(t,r),i=tO.get(n);if(i)return i;var a=nO(t,r);return tO.set(n,a),a},TF;function Hle(e,t,r){return(t=Ule(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ule(e){var t=qle(e,"string");return typeof t=="symbol"?t:t+""}function qle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,aO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Vle=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Yle=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Kle={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Gle=["cm","mm","pt","pc","in","Q","px"];function Xle(e){return Gle.includes(e)}var Ts="NaN";function Zle(e,t){return e*Kle[t]}class cr{static parse(t){var r,[,n,i]=(r=Yle.exec(t))!==null&&r!==void 0?r:[];return n==null?cr.NaN:new cr(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,Vi(t)&&(this.unit=""),r!==""&&!Vle.test(r)&&(this.num=NaN,this.unit=""),Xle(r)&&(this.num=Zle(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new cr(NaN,""):new cr(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new cr(NaN,""):new cr(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new cr(NaN,""):new cr(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new cr(NaN,""):new cr(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Vi(this.num)}}TF=cr;Hle(cr,"NaN",new TF(NaN,""));function PF(e){if(e==null||e.includes(Ts))return Ts;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=iO.exec(t))!==null&&r!==void 0?r:[],o=cr.parse(n??""),l=cr.parse(a??""),s=i==="*"?o.multiply(l):o.divide(l);if(s.isNaN())return Ts;t=t.replace(iO,s.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,f,h]=(c=aO.exec(t))!==null&&c!==void 0?c:[],d=cr.parse(u??""),p=cr.parse(h??""),g=f==="+"?d.add(p):d.subtract(p);if(g.isNaN())return Ts;t=t.replace(aO,g.toString())}return t}var oO=/\(([^()]*)\)/;function Qle(e){for(var t=e,r;(r=oO.exec(t))!=null;){var[,n]=r;t=t.replace(oO,PF(n))}return t}function Jle(e){var t=e.replace(/\s+/g,"");return t=Qle(t),t=PF(t),t}function ese(e){try{return Jle(e)}catch{return Ts}}function $0(e){var t=ese(e.slice(5,-1));return t===Ts?"":t}var tse=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],rse=["dx","dy","angle","className","breakAll"];function rw(){return rw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rw.apply(null,arguments)}function lO(e,t){if(e==null)return{};var r,n,i=nse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function nse(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var AF=/[ \f\n\r\t\v\u2028\u2029]+/,OF=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];xt(t)||(r?i=t.toString().split(""):i=t.toString().split(AF));var a=i.map(l=>({word:l,width:tf(l,n).width})),o=r?0:tf(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}};function ise(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var MF=(e,t,r,n)=>e.reduce((i,a)=>{var{word:o,width:l}=a,s=i[i.length-1];if(s&&l!=null&&(t==null||n||s.width+l+r<Number(t)))s.words.push(o),s.width+=l+r;else{var c={words:[o],width:l};i.push(c)}return i},[]),LF=e=>e.reduce((t,r)=>t.width>r.width?t:r),ase="…",sO=(e,t,r,n,i,a,o,l)=>{var s=e.slice(0,t),c=OF({breakAll:r,style:n,children:s+ase});if(!c)return[!1,[]];var u=MF(c.wordsWithComputedWidth,a,o,l),f=u.length>i||LF(u).width>Number(a);return[f,u]},ose=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:l,breakAll:s}=e,c=oe(a),u=String(o),f=MF(t,n,r,i);if(!c||i)return f;var h=f.length>a||LF(f).width>Number(n);if(!h)return f;for(var d=0,p=u.length-1,g=0,y;d<=p&&g<=u.length-1;){var m=Math.floor((d+p)/2),v=m-1,[b,S]=sO(u,v,s,l,a,n,r,i),[C]=sO(u,m,s,l,a,n,r,i);if(!b&&!C&&(d=m+1),b&&C&&(p=m-1),!b&&C){y=S;break}g++}return y||f},cO=e=>{var t=xt(e)?[]:e.toString().split(AF);return[{words:t,width:void 0}]},lse=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!wy.isSsr){var l,s,c=OF({breakAll:a,children:n,style:i});if(c){var{wordsWithComputedWidth:u,spaceWidth:f}=c;l=u,s=f}else return cO(n);return ose({breakAll:a,children:n,maxLines:o,style:i},l,s,t,!!r)}return cO(n)},IF="#808080",sse={angle:0,breakAll:!1,capHeight:"0.71em",fill:IF,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},zy=x.forwardRef((e,t)=>{var r=At(e,sse),{x:n,y:i,lineHeight:a,capHeight:o,fill:l,scaleToFit:s,textAnchor:c,verticalAnchor:u}=r,f=lO(r,tse),h=x.useMemo(()=>lse({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:s,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,s,f.style,f.width]),{dx:d,dy:p,angle:g,className:y,breakAll:m}=f,v=lO(f,rse);if(!zn(n)||!zn(i)||h.length===0)return null;var b=Number(n)+(oe(d)?d:0),S=Number(i)+(oe(p)?p:0);if(!Ae(b)||!Ae(S))return null;var C;switch(u){case"start":C=$0("calc(".concat(o,")"));break;case"middle":C=$0("calc(".concat((h.length-1)/2," * -").concat(a," + (").concat(o," / 2))"));break;default:C=$0("calc(".concat(h.length-1," * -").concat(a,")"));break}var w=[],_=h[0];if(s&&_!=null){var P=_.width,{width:I}=f;w.push("scale(".concat(oe(I)&&oe(P)?I/P:1,")"))}return g&&w.push("rotate(".concat(g,", ").concat(b,", ").concat(S,")")),w.length&&(v.transform=w.join(" ")),x.createElement("text",rw({},Tr(v),{ref:t,x:b,y:S,className:je("recharts-text",y),textAnchor:c,fill:l.includes("url")?IF:l}),h.map(($,A)=>{var M=$.words.join(m?"":" ");return x.createElement("tspan",{x:b,dy:A===0?C:a,key:"".concat(M,"-").concat(A)},M)}))});zy.displayName="Text";function uO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ti(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uO(Object(r),!0).forEach(function(n){cse(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cse(e,t,r){return(t=use(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function use(e){var t=fse(e,"string");return typeof t=="symbol"?t:t+""}function fse(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hse=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:a,y:o,height:l,upperWidth:s,lowerWidth:c}=fS(t),u=a,f=a+(s-c)/2,h=(u+f)/2,d=(s+c)/2,p=u+s/2,g=l>=0?1:-1,y=g*n,m=g>0?"end":"start",v=g>0?"start":"end",b=s>=0?1:-1,S=b*n,C=b>0?"end":"start",w=b>0?"start":"end",_=i;if(r==="top"){var P={x:u+s/2,y:o-y,horizontalAnchor:"middle",verticalAnchor:m};return _&&(P.height=Math.max(o-_.y,0),P.width=s),P}if(r==="bottom"){var I={x:f+c/2,y:o+l+y,horizontalAnchor:"middle",verticalAnchor:v};return _&&(I.height=Math.max(_.y+_.height-(o+l),0),I.width=c),I}if(r==="left"){var $={x:h-S,y:o+l/2,horizontalAnchor:C,verticalAnchor:"middle"};return _&&($.width=Math.max($.x-_.x,0),$.height=l),$}if(r==="right"){var A={x:h+d+S,y:o+l/2,horizontalAnchor:w,verticalAnchor:"middle"};return _&&(A.width=Math.max(_.x+_.width-A.x,0),A.height=l),A}var M=_?{width:d,height:l}:{};return r==="insideLeft"?Ti({x:h+S,y:o+l/2,horizontalAnchor:w,verticalAnchor:"middle"},M):r==="insideRight"?Ti({x:h+d-S,y:o+l/2,horizontalAnchor:C,verticalAnchor:"middle"},M):r==="insideTop"?Ti({x:u+s/2,y:o+y,horizontalAnchor:"middle",verticalAnchor:v},M):r==="insideBottom"?Ti({x:f+c/2,y:o+l-y,horizontalAnchor:"middle",verticalAnchor:m},M):r==="insideTopLeft"?Ti({x:u+S,y:o+y,horizontalAnchor:w,verticalAnchor:v},M):r==="insideTopRight"?Ti({x:u+s-S,y:o+y,horizontalAnchor:C,verticalAnchor:v},M):r==="insideBottomLeft"?Ti({x:f+S,y:o+l-y,horizontalAnchor:w,verticalAnchor:m},M):r==="insideBottomRight"?Ti({x:f+c-S,y:o+l-y,horizontalAnchor:C,verticalAnchor:m},M):r&&typeof r=="object"&&(oe(r.x)||El(r.x))&&(oe(r.y)||El(r.y))?Ti({x:a+kr(r.x,d),y:o+kr(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},M):Ti({x:p,y:o+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},M)},dse=["labelRef"],pse=["content"];function fO(e,t){if(e==null)return{};var r,n,i=gse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function gse(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function hO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hO(Object(r),!0).forEach(function(n){mse(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mse(e,t,r){return(t=yse(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yse(e){var t=vse(e,"string");return typeof t=="symbol"?t:t+""}function vse(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ua.apply(null,arguments)}var $F=x.createContext(null),DF=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o,children:l}=e,s=x.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o}),[t,r,n,i,a,o]);return x.createElement($F.Provider,{value:s},l)},NF=()=>{var e=x.useContext($F),t=mh();return e||(t?fS(t):void 0)},xse=x.createContext(null),bse=()=>{var e=x.useContext(xse),t=ie(SB);return e||t},wse=e=>{var{value:t,formatter:r}=e,n=xt(e.children)?t:e.children;return typeof r=="function"?r(n):n},PC=e=>e!=null&&typeof e=="function",kse=(e,t)=>{var r=er(t-e),n=Math.min(Math.abs(t-e),360);return r*n},Sse=(e,t,r,n,i)=>{var{offset:a,className:o}=e,{cx:l,cy:s,innerRadius:c,outerRadius:u,startAngle:f,endAngle:h,clockWise:d}=i,p=(c+u)/2,g=kse(f,h),y=g>=0?1:-1,m,v;switch(t){case"insideStart":m=f+y*a,v=d;break;case"insideEnd":m=h-y*a,v=!d;break;case"end":m=h+y*a,v=d;break;default:throw new Error("Unsupported position ".concat(t))}v=g<=0?v:!v;var b=Nt(l,s,p,m),S=Nt(l,s,p,m+(v?1:-1)*359),C="M".concat(b.x,",").concat(b.y,`
|
|
116
|
+
A`).concat(p,",").concat(p,",0,1,").concat(v?0:1,`,
|
|
117
|
+
`).concat(S.x,",").concat(S.y),w=xt(e.id)?Af("recharts-radial-line-"):e.id;return x.createElement("text",ua({},n,{dominantBaseline:"central",className:je("recharts-radial-bar-label",o)}),x.createElement("defs",null,x.createElement("path",{id:w,d:C})),x.createElement("textPath",{xlinkHref:"#".concat(w)},r))},Cse=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:l,endAngle:s}=e,c=(l+s)/2;if(r==="outside"){var{x:u,y:f}=Nt(n,i,o+t,c);return{x:u,y:f,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var h=(a+o)/2,{x:d,y:p}=Nt(n,i,h,c);return{x:d,y:p,textAnchor:"middle",verticalAnchor:"middle"}},up=e=>e!=null&&"cx"in e&&oe(e.cx),_se={angle:0,offset:5,zIndex:Pt.label,position:"middle",textBreakAll:!1};function Ese(e){if(!up(e))return e;var{cx:t,cy:r,outerRadius:n}=e,i=n*2;return{x:t-n,y:r-n,width:i,upperWidth:i,lowerWidth:i,height:i}}function Ga(e){var t=At(e,_se),{viewBox:r,parentViewBox:n,position:i,value:a,children:o,content:l,className:s="",textBreakAll:c,labelRef:u}=t,f=bse(),h=NF(),d=i==="center"?h:f??h,p,g,y;r==null?p=d:up(r)?p=r:p=fS(r);var m=Ese(p);if(!p||xt(a)&&xt(o)&&!x.isValidElement(l)&&typeof l!="function")return null;var v=Lu(Lu({},t),{},{viewBox:p});if(x.isValidElement(l)){var{labelRef:b}=v,S=fO(v,dse);return x.cloneElement(l,S)}if(typeof l=="function"){var{content:C}=v,w=fO(v,pse);if(g=x.createElement(l,w),x.isValidElement(g))return g}else g=wse(t);var _=Tr(t);if(up(p)){if(i==="insideStart"||i==="insideEnd"||i==="end")return Sse(t,i,g,_,p);y=Cse(p,t.offset,t.position)}else{if(!m)return null;var P=hse({viewBox:m,position:i,offset:t.offset,parentViewBox:up(n)?void 0:n});y=Lu(Lu({x:P.x,y:P.y,textAnchor:P.horizontalAnchor,verticalAnchor:P.verticalAnchor},P.width!==void 0?{width:P.width}:{}),P.height!==void 0?{height:P.height}:{})}return x.createElement(qr,{zIndex:t.zIndex},x.createElement(zy,ua({ref:u,className:je("recharts-label",s)},_,y,{textAnchor:ise(_.textAnchor)?_.textAnchor:y.textAnchor,breakAll:c}),g))}Ga.displayName="Label";var Tse=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?x.createElement(Ga,ua({key:"label-implicit"},n)):zn(e)?x.createElement(Ga,ua({key:"label-implicit",value:e},n)):x.isValidElement(e)?e.type===Ga?x.cloneElement(e,Lu({key:"label-implicit"},n)):x.createElement(Ga,ua({key:"label-implicit",content:e},n)):PC(e)?x.createElement(Ga,ua({key:"label-implicit",content:e},n)):e&&typeof e=="object"?x.createElement(Ga,ua({},e,{key:"label-implicit"},n)):null};function jF(e){var{label:t,labelRef:r}=e,n=NF();return Tse(t,n,r)||null}var RF={},BF={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(BF);var FF={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(FF);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=BF,r=FF,n=ey;function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i})(RF);var Pse=RF.last;const Ase=Yn(Pse);var Ose=["valueAccessor"],Mse=["dataKey","clockWise","id","textBreakAll","zIndex"];function Rg(){return Rg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rg.apply(null,arguments)}function dO(e,t){if(e==null)return{};var r,n,i=Lse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Lse(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ise=e=>Array.isArray(e.value)?Ase(e.value):e.value,zF=x.createContext(void 0),WF=zF.Provider,HF=x.createContext(void 0),$se=HF.Provider;function Dse(){return x.useContext(zF)}function Nse(){return x.useContext(HF)}function fp(e){var{valueAccessor:t=Ise}=e,r=dO(e,Ose),{dataKey:n,clockWise:i,id:a,textBreakAll:o,zIndex:l}=r,s=dO(r,Mse),c=Dse(),u=Nse(),f=c||u;return!f||!f.length?null:x.createElement(qr,{zIndex:l??Pt.label},x.createElement(Ut,{className:"recharts-label-list"},f.map((h,d)=>{var p,g=xt(n)?t(h,d):Xe(h.payload,n),y=xt(a)?{}:{id:"".concat(a,"-").concat(d)};return x.createElement(Ga,Rg({key:"label-".concat(d)},Tr(h),s,y,{fill:(p=r.fill)!==null&&p!==void 0?p:h.fill,parentViewBox:h.parentViewBox,value:g,textBreakAll:o,viewBox:h.viewBox,index:d,zIndex:0}))})))}fp.displayName="LabelList";function AC(e){var{label:t}=e;return t?t===!0?x.createElement(fp,{key:"labelList-implicit"}):x.isValidElement(t)||PC(t)?x.createElement(fp,{key:"labelList-implicit",content:t}):typeof t=="object"?x.createElement(fp,Rg({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function nw(){return nw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nw.apply(null,arguments)}var UF=e=>{var{cx:t,cy:r,r:n,className:i}=e,a=je("recharts-dot",i);return oe(t)&&oe(r)&&oe(n)?x.createElement("circle",nw({},Sn(e),Uk(e),{className:a,cx:t,cy:r,r:n})):null},qF=e=>e.graphicalItems.polarItems,jse=H([bt,Eh],XS),Wy=H([qF,_t,jse],ZS),Rse=H([Wy],QS),Hy=H([Rse,Ay],JS),Bse=H([Hy,_t,Wy],tC);H([Hy,_t,Wy],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(i=>{var a,o=Xe(n,(a=t.dataKey)!==null&&a!==void 0?a:i.dataKey);return{value:o,errorDomain:[]}})).filter(Boolean):(t==null?void 0:t.dataKey)!=null?e.map(n=>({value:Xe(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]})));var pO=()=>{},Fse=H([Hy,_t,Wy,Ry,bt],aC),zse=H([_t,nC,iC,pO,Fse,pO,Fe,bt],oC),VF=H([_t,Fe,Hy,Bse,_h,bt,zse],lC),Wse=H([VF,Ic,Io],uC),Hse=H([_t,VF,Wse,bt],hC);H([Io,Hse],_B);var Use={radiusAxis:{},angleAxis:{}},YF=cn({name:"polarAxis",initialState:Use,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:gTe,removeRadiusAxis:mTe,addAngleAxis:yTe,removeAngleAxis:vTe}=YF.actions,qse=YF.reducer;function KF(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}function gO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gO(Object(r),!0).forEach(function(n){Vse(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vse(e,t,r){return(t=Yse(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yse(e){var t=Kse(e,"string");return typeof t=="symbol"?t:t+""}function Kse(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gse=(e,t)=>t,OC=H([qF,Gse],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),Xse=[],MC=(e,t,r)=>(r==null?void 0:r.length)===0?Xse:r,GF=H([Ay,OC,MC],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var i;if((t==null?void 0:t.data)!=null&&t.data.length>0?i=t.data:i=n,(!i||!i.length)&&r!=null&&(i=r.map(a=>mO(mO({},t.presentationProps),a.props))),i!=null)return i}}),Zse=H([GF,OC,MC],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,i)=>{var a,o=Xe(n,t.nameKey,t.name),l;return r!=null&&(a=r[i])!==null&&a!==void 0&&(a=a.props)!==null&&a!==void 0&&a.fill?l=r[i].props.fill:typeof n=="object"&&n!=null&&"fill"in n?l=n.fill:l=t.fill,{value:Pc(o,t.dataKey),color:l,payload:n,type:t.legendType}})}),Qse=H([GF,OC,MC,Vt],(e,t,r,n)=>{if(!(t==null||e==null))return Zce({offset:n,pieSettings:t,displayedData:e,cells:r})}),XF={exports:{}},Je={};/**
|
|
118
|
+
* @license React
|
|
119
|
+
* react-is.production.js
|
|
120
|
+
*
|
|
121
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the MIT license found in the
|
|
124
|
+
* LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/var LC=Symbol.for("react.transitional.element"),IC=Symbol.for("react.portal"),Uy=Symbol.for("react.fragment"),qy=Symbol.for("react.strict_mode"),Vy=Symbol.for("react.profiler"),Yy=Symbol.for("react.consumer"),Ky=Symbol.for("react.context"),Gy=Symbol.for("react.forward_ref"),Xy=Symbol.for("react.suspense"),Zy=Symbol.for("react.suspense_list"),Qy=Symbol.for("react.memo"),Jy=Symbol.for("react.lazy"),Jse=Symbol.for("react.view_transition"),ece=Symbol.for("react.client.reference");function Xn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case LC:switch(e=e.type,e){case Uy:case Vy:case qy:case Xy:case Zy:case Jse:return e;default:switch(e=e&&e.$$typeof,e){case Ky:case Gy:case Jy:case Qy:return e;case Yy:return e;default:return t}}case IC:return t}}}Je.ContextConsumer=Yy;Je.ContextProvider=Ky;Je.Element=LC;Je.ForwardRef=Gy;Je.Fragment=Uy;Je.Lazy=Jy;Je.Memo=Qy;Je.Portal=IC;Je.Profiler=Vy;Je.StrictMode=qy;Je.Suspense=Xy;Je.SuspenseList=Zy;Je.isContextConsumer=function(e){return Xn(e)===Yy};Je.isContextProvider=function(e){return Xn(e)===Ky};Je.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===LC};Je.isForwardRef=function(e){return Xn(e)===Gy};Je.isFragment=function(e){return Xn(e)===Uy};Je.isLazy=function(e){return Xn(e)===Jy};Je.isMemo=function(e){return Xn(e)===Qy};Je.isPortal=function(e){return Xn(e)===IC};Je.isProfiler=function(e){return Xn(e)===Vy};Je.isStrictMode=function(e){return Xn(e)===qy};Je.isSuspense=function(e){return Xn(e)===Xy};Je.isSuspenseList=function(e){return Xn(e)===Zy};Je.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Uy||e===Vy||e===qy||e===Xy||e===Zy||typeof e=="object"&&e!==null&&(e.$$typeof===Jy||e.$$typeof===Qy||e.$$typeof===Ky||e.$$typeof===Yy||e.$$typeof===Gy||e.$$typeof===ece||e.getModuleId!==void 0)};Je.typeOf=Xn;XF.exports=Je;var tce=XF.exports,yO=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",vO=null,D0=null,ZF=e=>{if(e===vO&&Array.isArray(D0))return D0;var t=[];return x.Children.forEach(e,r=>{xt(r)||(tce.isFragment(r)?t=t.concat(ZF(r.props.children)):t.push(r))}),D0=t,vO=e,t};function $C(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>yO(i)):n=[yO(t)],ZF(e).forEach(i=>{var a=_l(i,"type.displayName")||_l(i,"type.name");a&&n.indexOf(a)!==-1&&r.push(i)}),r}var QF=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,JF={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){var i;if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const a=r[Symbol.toStringTag];return a==null||!((i=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag))!=null&&i.writable)?!1:r.toString()===`[object ${a}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(JF);var rce=JF.isPlainObject;const nce=Yn(rce);var xO,bO,wO,kO,SO;function CO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(r),!0).forEach(function(n){ice(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ice(e,t,r){return(t=ace(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ace(e){var t=oce(e,"string");return typeof t=="symbol"?t:t+""}function oce(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bg(){return Bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bg.apply(null,arguments)}function pu(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var EO=(e,t,r,n,i)=>{var a=r-n,o;return o=kt(xO||(xO=pu(["M ",",",""])),e,t),o+=kt(bO||(bO=pu(["L ",",",""])),e+r,t),o+=kt(wO||(wO=pu(["L ",",",""])),e+r-a/2,t+i),o+=kt(kO||(kO=pu(["L ",",",""])),e+r-a/2-n,t+i),o+=kt(SO||(SO=pu(["L ",","," Z"])),e,t),o},lce={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sce=e=>{var t=At(e,lce),{x:r,y:n,upperWidth:i,lowerWidth:a,height:o,className:l}=t,{animationEasing:s,animationDuration:c,animationBegin:u,isUpdateAnimationActive:f}=t,h=x.useRef(null),[d,p]=x.useState(-1),g=x.useRef(i),y=x.useRef(a),m=x.useRef(o),v=x.useRef(r),b=x.useRef(n),S=bh(e,"trapezoid-");if(x.useEffect(()=>{if(h.current&&h.current.getTotalLength)try{var N=h.current.getTotalLength();N&&p(N)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var C=je("recharts-trapezoid",l);if(!f)return x.createElement("g",null,x.createElement("path",Bg({},Tr(t),{className:C,d:EO(r,n,i,a,o)})));var w=g.current,_=y.current,P=m.current,I=v.current,$=b.current,A="0px ".concat(d===-1?1:d,"px"),M="".concat(d,"px 0px"),F=sR(["strokeDasharray"],c,s);return x.createElement(xh,{animationId:S,key:S,canBegin:d>0,duration:c,easing:s,isActive:f,begin:u},N=>{var D=ht(w,i,N),j=ht(_,a,N),B=ht(P,o,N),L=ht(I,r,N),W=ht($,n,N);h.current&&(g.current=D,y.current=j,m.current=B,v.current=L,b.current=W);var T=N>0?{transition:F,strokeDasharray:M}:{strokeDasharray:A};return x.createElement("path",Bg({},Tr(t),{className:C,d:EO(L,W,D,j,B),ref:h,style:_O(_O({},T),t.style)}))})},cce=["option","shapeType","activeClassName"];function uce(e,t){if(e==null)return{};var r,n,i=fce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function fce(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function TO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(r),!0).forEach(function(n){hce(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hce(e,t,r){return(t=dce(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dce(e){var t=pce(e,"string");return typeof t=="symbol"?t:t+""}function pce(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gce(e,t){return Fg(Fg({},t),e)}function mce(e,t){return e==="symbols"}function PO(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return x.createElement(hR,r);case"trapezoid":return x.createElement(sce,r);case"sector":return x.createElement(mR,r);case"symbols":if(mce(t))return x.createElement(Hk,r);break;case"curve":return x.createElement(mS,r);default:return null}}function yce(e){return x.isValidElement(e)?e.props:e}function DC(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape"}=e,i=uce(e,cce),a;if(x.isValidElement(t))a=x.cloneElement(t,Fg(Fg({},i),yce(t)));else if(typeof t=="function")a=t(i,i.index);else if(nce(t)&&typeof t!="boolean"){var o=gce(t,i);a=x.createElement(PO,{shapeType:r,elementProps:o})}else{var l=i;a=x.createElement(PO,{shapeType:r,elementProps:l})}return i.isActive?x.createElement(Ut,{className:n},a):a}var NC=(e,t,r)=>{var n=Qe();return(i,a)=>o=>{e==null||e(i,a,o),n(tF({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},jC=e=>{var t=Qe();return(r,n)=>i=>{e==null||e(r,n,i),t(Pae())}},RC=(e,t,r)=>{var n=Qe();return(i,a)=>o=>{e==null||e(i,a,o),n(Aae({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};function BC(e){var{tooltipEntrySettings:t}=e,r=Qe(),n=hr(),i=x.useRef(null);return x.useLayoutEffect(()=>{n||(i.current===null?r(Cae(t)):i.current!==t&&r(_ae({prev:i.current,next:t})),i.current=t)},[t,r,n]),x.useLayoutEffect(()=>()=>{i.current&&(r(Eae(i.current)),i.current=null)},[r]),null}function e3(e){var{legendPayload:t}=e,r=Qe(),n=hr(),i=x.useRef(null);return x.useLayoutEffect(()=>{n||(i.current===null?r(iR(t)):i.current!==t&&r(aR({prev:i.current,next:t})),i.current=t)},[r,n,t]),x.useLayoutEffect(()=>()=>{i.current&&(r(oR(i.current)),i.current=null)},[r]),null}function vce(e){var{legendPayload:t}=e,r=Qe(),n=ie(Fe),i=x.useRef(null);return x.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(i.current===null?r(iR(t)):i.current!==t&&r(aR({prev:i.current,next:t})),i.current=t)},[r,n,t]),x.useLayoutEffect(()=>()=>{i.current&&(r(oR(i.current)),i.current=null)},[r]),null}var N0,xce=()=>{var[e]=x.useState(()=>Af("uid-"));return e},bce=(N0=u9.useId)!==null&&N0!==void 0?N0:xce;function wce(e,t){var r=bce();return t||(e?"".concat(e,"-").concat(r):r)}var kce=x.createContext(void 0),FC=e=>{var{id:t,type:r,children:n}=e,i=wce("recharts-".concat(r),t);return x.createElement(kce.Provider,{value:i},n(i))},Sce={cartesianItems:[],polarItems:[]},t3=cn({name:"graphicalItems",initialState:Sce,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ft()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=hi(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:ft()},removeCartesianGraphicalItem:{reducer(e,t){var r=hi(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:ft()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:ft()},removePolarGraphicalItem:{reducer(e,t){var r=hi(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:ft()}}}),{addCartesianGraphicalItem:Cce,replaceCartesianGraphicalItem:_ce,removeCartesianGraphicalItem:Ece,addPolarGraphicalItem:Tce,removePolarGraphicalItem:Pce}=t3.actions,Ace=t3.reducer,Oce=e=>{var t=Qe(),r=x.useRef(null);return x.useLayoutEffect(()=>{r.current===null?t(Cce(e)):r.current!==e&&t(_ce({prev:r.current,next:e})),r.current=e},[t,e]),x.useLayoutEffect(()=>()=>{r.current&&(t(Ece(r.current)),r.current=null)},[t]),null},r3=x.memo(Oce);function Mce(e){var t=Qe();return x.useLayoutEffect(()=>(t(Tce(e)),()=>{t(Pce(e))}),[t,e]),null}var Lce=["key"],Ice=["onMouseEnter","onClick","onMouseLeave"],$ce=["id"],Dce=["id"];function AO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AO(Object(r),!0).forEach(function(n){Nce(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nce(e,t,r){return(t=jce(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jce(e){var t=Rce(e,"string");return typeof t=="symbol"?t:t+""}function Rce(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wo.apply(null,arguments)}function ev(e,t){if(e==null)return{};var r,n,i=Bce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Bce(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Fce(e){var t=x.useMemo(()=>$C(e.children,Lh),[e.children]),r=ie(n=>Zse(n,e.id,t));return r==null?null:x.createElement(vce,{legendPayload:r})}var zce=x.memo(e=>{var{dataKey:t,nameKey:r,sectors:n,stroke:i,strokeWidth:a,fill:o,name:l,hide:s,tooltipType:c,id:u}=e,f={dataDefinedOnItem:n.map(h=>h.tooltipPayload),getPosition:h=>{var d;return(d=n[Number(h)])===null||d===void 0?void 0:d.tooltipPosition},settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:r,name:Pc(l,t),hide:s,type:c,color:o,unit:"",graphicalItemId:u}};return x.createElement(BC,{tooltipEntrySettings:f})}),Wce=(e,t)=>e>t?"start":e<t?"end":"middle",Hce=(e,t,r)=>kr(typeof t=="function"?t(e):t,r,r*.8),Uce=(e,t,r)=>{var{top:n,left:i,width:a,height:o}=t,l=dR(a,o),s=i+kr(e.cx,a,a/2),c=n+kr(e.cy,o,o/2),u=kr(e.innerRadius,l,0),f=Hce(r,e.outerRadius,l),h=e.maxRadius||Math.sqrt(a*a+o*o)/2;return{cx:s,cy:c,innerRadius:u,outerRadius:f,maxRadius:h}},qce=(e,t)=>{var r=er(t-e),n=Math.min(Math.abs(t-e),360);return r*n},Vce=(e,t)=>{if(x.isValidElement(e))return x.cloneElement(e,t);if(typeof e=="function")return e(t);var r=je("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:n}=t,i=ev(t,Lce);return x.createElement(mS,wo({},i,{type:"linear",className:r}))},Yce=(e,t,r)=>{if(x.isValidElement(e))return x.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),x.isValidElement(n)))return n;var i=je("recharts-pie-label-text",KF(e));return x.createElement(zy,wo({},t,{alignmentBaseline:"middle",className:i}),n)};function Kce(e){var{sectors:t,props:r,showLabels:n}=e,{label:i,labelLine:a,dataKey:o}=r;if(!n||!i||!t)return null;var l=Sn(r),s=kl(i),c=kl(a),u=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,f=t.map((h,d)=>{var p=(h.startAngle+h.endAngle)/2,g=Nt(h.cx,h.cy,h.outerRadius+u,p),y=Ct(Ct(Ct(Ct({},l),h),{},{stroke:"none"},s),{},{index:d,textAnchor:Wce(g.x,h.cx)},g),m=Ct(Ct(Ct(Ct({},l),h),{},{fill:"none",stroke:h.fill},c),{},{index:d,points:[Nt(h.cx,h.cy,h.outerRadius,p),g],key:"line"});return x.createElement(qr,{zIndex:Pt.label,key:"label-".concat(h.startAngle,"-").concat(h.endAngle,"-").concat(h.midAngle,"-").concat(d)},x.createElement(Ut,null,a&&Vce(a,m),Yce(i,y,Xe(h,o))))});return x.createElement(Ut,{className:"recharts-pie-labels"},f)}function Gce(e){var{sectors:t,props:r,showLabels:n}=e,{label:i}=r;return typeof i=="object"&&i!=null&&"position"in i?x.createElement(AC,{label:i}):x.createElement(Kce,{sectors:t,props:r,showLabels:n})}function Xce(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:i,shape:a,id:o}=e,l=ie(bo),s=ie(wC),c=ie(poe),{onMouseEnter:u,onClick:f,onMouseLeave:h}=i,d=ev(i,Ice),p=NC(u,i.dataKey,o),g=jC(h),y=RC(f,i.dataKey,o);return t==null||t.length===0?null:x.createElement(x.Fragment,null,t.map((m,v)=>{if((m==null?void 0:m.startAngle)===0&&(m==null?void 0:m.endAngle)===0&&t.length!==1)return null;var b=c==null||c===o,S=String(v)===l&&(s==null||i.dataKey===s)&&b,C=l?n:null,w=r&&S?r:C,_=Ct(Ct({},m),{},{stroke:m.stroke,tabIndex:-1,[Fj]:v,[zj]:o});return x.createElement(Ut,wo({key:"sector-".concat(m==null?void 0:m.startAngle,"-").concat(m==null?void 0:m.endAngle,"-").concat(m.midAngle,"-").concat(v),tabIndex:-1,className:"recharts-pie-sector"},hh(d,m,v),{onMouseEnter:p(m,v),onMouseLeave:g(m,v),onClick:y(m,v)}),x.createElement(DC,wo({option:a??w,index:v,shapeType:"sector",isActive:S},_)))}))}function Zce(e){var t,{pieSettings:r,displayedData:n,cells:i,offset:a}=e,{cornerRadius:o,startAngle:l,endAngle:s,dataKey:c,nameKey:u,tooltipType:f}=r,h=Math.abs(r.minAngle),d=qce(l,s),p=Math.abs(d),g=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,y=n.filter(w=>Xe(w,c,0)!==0).length,m=(p>=360?y:y-1)*g,v=p-y*h-m,b=n.reduce((w,_)=>{var P=Xe(_,c,0);return w+(oe(P)?P:0)},0),S;if(b>0){var C;S=n.map((w,_)=>{var P=Xe(w,c,0),I=Xe(w,u,_),$=Uce(r,a,w),A=(oe(P)?P:0)/b,M,F=Ct(Ct({},w),i&&i[_]&&i[_].props);_?M=C.endAngle+er(d)*g*(P!==0?1:0):M=l;var N=M+er(d)*((P!==0?h:0)+A*v),D=(M+N)/2,j=($.innerRadius+$.outerRadius)/2,B=[{name:I,value:P,payload:F,dataKey:c,type:f,graphicalItemId:r.id}],L=Nt($.cx,$.cy,j,D);return C=Ct(Ct(Ct(Ct({},r.presentationProps),{},{percent:A,cornerRadius:typeof o=="string"?parseFloat(o):o,name:I,tooltipPayload:B,midAngle:D,middleRadius:j,tooltipPosition:L},F),$),{},{value:P,dataKey:c,startAngle:M,endAngle:N,payload:F,paddingAngle:er(d)*g}),C})}return S}function Qce(e){var{showLabels:t,sectors:r,children:n}=e,i=x.useMemo(()=>!t||!r?[]:r.map(a=>({value:a.value,payload:a.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:a.cx,cy:a.cy,innerRadius:a.innerRadius,outerRadius:a.outerRadius,startAngle:a.startAngle,endAngle:a.endAngle,clockWise:!1},fill:a.fill})),[r,t]);return x.createElement($se,{value:t?i:void 0},n)}function Jce(e){var{props:t,previousSectorsRef:r,id:n}=e,{sectors:i,isAnimationActive:a,animationBegin:o,animationDuration:l,animationEasing:s,activeShape:c,inactiveShape:u,onAnimationStart:f,onAnimationEnd:h}=t,d=bh(t,"recharts-pie-"),p=r.current,[g,y]=x.useState(!1),m=x.useCallback(()=>{typeof h=="function"&&h(),y(!1)},[h]),v=x.useCallback(()=>{typeof f=="function"&&f(),y(!0)},[f]);return x.createElement(Qce,{showLabels:!g,sectors:i},x.createElement(xh,{animationId:d,begin:o,duration:l,isActive:a,easing:s,onAnimationStart:v,onAnimationEnd:m,key:d},b=>{var S,C=[],w=i&&i[0],_=(S=w==null?void 0:w.startAngle)!==null&&S!==void 0?S:0;return i==null||i.forEach((P,I)=>{var $=p&&p[I],A=I>0?_l(P,"paddingAngle",0):0;if($){var M=ht($.endAngle-$.startAngle,P.endAngle-P.startAngle,b),F=Ct(Ct({},P),{},{startAngle:_+A,endAngle:_+M+A});C.push(F),_=F.endAngle}else{var{endAngle:N,startAngle:D}=P,j=ht(0,N-D,b),B=Ct(Ct({},P),{},{startAngle:_+A,endAngle:_+j+A});C.push(B),_=B.endAngle}}),r.current=C,x.createElement(Ut,null,x.createElement(Xce,{sectors:C,activeShape:c,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:n}))}),x.createElement(Gce,{showLabels:!g,sectors:i,props:t}),t.children)}var eue={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:Pt.area};function tue(e){var{id:t}=e,r=ev(e,$ce),{hide:n,className:i,rootTabIndex:a}=e,o=x.useMemo(()=>$C(e.children,Lh),[e.children]),l=ie(u=>Qse(u,t,o)),s=x.useRef(null),c=je("recharts-pie",i);return n||l==null?(s.current=null,x.createElement(Ut,{tabIndex:a,className:c})):x.createElement(qr,{zIndex:e.zIndex},x.createElement(zce,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:l,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),x.createElement(Ut,{tabIndex:a,className:c},x.createElement(Jce,{props:Ct(Ct({},r),{},{sectors:l}),previousSectorsRef:s,id:t})))}function n3(e){var t=At(e,eue),{id:r}=t,n=ev(t,Dce),i=Sn(n);return x.createElement(FC,{id:r,type:"pie"},a=>x.createElement(x.Fragment,null,x.createElement(Mce,{type:"pie",id:a,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),x.createElement(Fce,wo({},n,{id:a})),x.createElement(tue,wo({},n,{id:a}))))}n3.displayName="Pie";var rue=["points"];function OO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function j0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OO(Object(r),!0).forEach(function(n){nue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nue(e,t,r){return(t=iue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iue(e){var t=aue(e,"string");return typeof t=="symbol"?t:t+""}function aue(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zg(){return zg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zg.apply(null,arguments)}function oue(e,t){if(e==null)return{};var r,n,i=lue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function lue(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function sue(e){var{option:t,dotProps:r,className:n}=e;if(x.isValidElement(t))return x.cloneElement(t,r);if(typeof t=="function")return t(r);var i=je(n,typeof t!="boolean"?t.className:""),a=r??{},{points:o}=a,l=oue(a,rue);return x.createElement(UF,zg({},l,{className:i}))}function cue(e,t){return e==null?!1:t?!0:e.length===1}function uue(e){var{points:t,dot:r,className:n,dotClassName:i,dataKey:a,baseProps:o,needClip:l,clipPathId:s,zIndex:c=Pt.scatter}=e;if(!cue(t,r))return null;var u=QF(r),f=oX(r),h=t.map((p,g)=>{var y,m,v=j0(j0(j0({r:3},o),f),{},{index:g,cx:(y=p.x)!==null&&y!==void 0?y:void 0,cy:(m=p.y)!==null&&m!==void 0?m:void 0,dataKey:a,value:p.value,payload:p.payload,points:t});return x.createElement(sue,{key:"dot-".concat(g),option:r,dotProps:v,className:i})}),d={};return l&&s!=null&&(d.clipPath="url(#clipPath-".concat(u?"":"dots-").concat(s,")")),x.createElement(qr,{zIndex:c},x.createElement(Ut,zg({className:n},d),h))}function MO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function LO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MO(Object(r),!0).forEach(function(n){fue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fue(e,t,r){return(t=hue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hue(e){var t=due(e,"string");return typeof t=="symbol"?t:t+""}function due(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i3=0,pue={xAxis:{},yAxis:{},zAxis:{}},a3=cn({name:"cartesianAxis",initialState:pue,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:ft()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.xAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:ft()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:ft()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:ft()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.yAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:ft()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:ft()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:ft()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.zAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:ft()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:ft()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var a,o=i.widthHistory||[];if(o.length===3&&o[0]===o[2]&&n===o[1]&&n!==i.width&&Math.abs(n-((a=o[0])!==null&&a!==void 0?a:0))<=1)return;var l=[...o,n].slice(-3);e.yAxis[r]=LO(LO({},i),{},{width:n,widthHistory:l})}}}}),{addXAxis:gue,replaceXAxis:mue,removeXAxis:yue,addYAxis:vue,replaceYAxis:xue,removeYAxis:bue,addZAxis:xTe,replaceZAxis:bTe,removeZAxis:wTe,updateYAxisWidth:wue}=a3.actions,kue=a3.reducer,Sue=H([Vt],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),Cue=H([Sue,ja,Ra],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),zC=()=>ie(Cue),_ue=()=>ie(xoe);function IO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function R0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IO(Object(r),!0).forEach(function(n){Eue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Eue(e,t,r){return(t=Tue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tue(e){var t=Pue(e,"string");return typeof t=="symbol"?t:t+""}function Pue(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Aue=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:a,clipPath:o}=e;if(i===!1||t.x==null||t.y==null)return null;var l={index:r,dataKey:a,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},s=R0(R0(R0({},l),kl(i)),Uk(i)),c;return x.isValidElement(i)?c=x.cloneElement(i,s):typeof i=="function"?c=i(s):c=x.createElement(UF,s),x.createElement(Ut,{className:"recharts-active-dot",clipPath:o},c)};function Oue(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i,clipPath:a,zIndex:o=Pt.activeDot}=e,l=ie(bo),s=_ue();if(t==null||s==null)return null;var c=t.find(u=>s.includes(u.payload));return xt(c)?null:x.createElement(qr,{zIndex:o},x.createElement(Aue,{point:c,childIndex:Number(l),mainColor:r,dataKey:i,activeDot:n,clipPath:a}))}var $O=(e,t,r)=>{var n=r??e;if(!xt(n))return kr(n,t,0)},Mue=(e,t,r)=>{var n={},i=e.filter(Iy),a=e.filter(c=>c.stackId==null),o=i.reduce((c,u)=>{var f=c[u.stackId];return f==null&&(f=[]),f.push(u),c[u.stackId]=f,c},n),l=Object.entries(o).map(c=>{var u,[f,h]=c,d=h.map(g=>g.dataKey),p=$O(t,r,(u=h[0])===null||u===void 0?void 0:u.barSize);return{stackId:f,dataKeys:d,barSize:p}}),s=a.map(c=>{var u=[c.dataKey].filter(h=>h!=null),f=$O(t,r,c.barSize);return{stackId:void 0,dataKeys:u,barSize:f}});return[...l,...s]};function DO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ld(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DO(Object(r),!0).forEach(function(n){Lue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lue(e,t,r){return(t=Iue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iue(e){var t=$ue(e,"string");return typeof t=="symbol"?t:t+""}function $ue(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Due(e,t,r,n,i){var a,o=n.length;if(!(o<1)){var l=kr(e,r,0,!0),s,c=[];if(Ae((a=n[0])===null||a===void 0?void 0:a.barSize)){var u=!1,f=r/o,h=n.reduce((v,b)=>v+(b.barSize||0),0);h+=(o-1)*l,h>=r&&(h-=(o-1)*l,l=0),h>=r&&f>0&&(u=!0,f*=.9,h=o*f);var d=(r-h)/2>>0,p={offset:d-l,size:0};s=n.reduce((v,b)=>{var S,C={stackId:b.stackId,dataKeys:b.dataKeys,position:{offset:p.offset+p.size+l,size:u?f:(S=b.barSize)!==null&&S!==void 0?S:0}},w=[...v,C];return p=C.position,w},c)}else{var g=kr(t,r,0,!0);r-2*g-(o-1)*l<=0&&(l=0);var y=(r-2*g-(o-1)*l)/o;y>1&&(y>>=0);var m=Ae(i)?Math.min(y,i):y;s=n.reduce((v,b,S)=>[...v,{stackId:b.stackId,dataKeys:b.dataKeys,position:{offset:g+(y+l)*S+(y-m)/2,size:m}}],c)}return s}}var Nue=(e,t,r,n,i,a,o)=>{var l=xt(o)?t:o,s=Due(r,n,i!==a?i:a,e,l);return i!==a&&s!=null&&(s=s.map(c=>Ld(Ld({},c),{},{position:Ld(Ld({},c.position),{},{offset:c.position.offset-i/2})}))),s},jue=(e,t)=>{var r=KS(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var i=e[n];if(i){var{stackedData:a}=i;if(a)return a.find(o=>o.key===r)}}}},Rue=(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}};function Bue(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&Ae(e.zIndex)?e.zIndex:t}var o3=e=>{var{chartData:t}=e,r=Qe(),n=hr();return x.useEffect(()=>n?()=>{}:(r(GA(t)),()=>{r(GA(void 0))}),[t,r,n]),null},NO={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},l3=cn({name:"brush",initialState:NO,reducers:{setBrushSettings(e,t){return t.payload==null?NO:t.payload}}}),{setBrushSettings:kTe}=l3.actions,Fue=l3.reducer,zue=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return{x:Math.min(r,i),y:Math.min(n,a),width:Math.abs(i-r),height:Math.abs(a-n)}},Wue=e=>{var{x1:t,y1:r,x2:n,y2:i}=e;return zue({x:t,y:r},{x:n,y:i})};function Hue(e){return(e%180+180)%180}var Uue=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Hue(i),o=a*Math.PI/180,l=Math.atan(n/r),s=o>l&&o<Math.PI-l?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},que={dots:[],areas:[],lines:[]},s3=cn({name:"referenceElements",initialState:que,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=hi(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=hi(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=hi(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:STe,removeDot:CTe,addArea:_Te,removeArea:ETe,addLine:Vue,removeLine:Yue}=s3.actions,Kue=s3.reducer,c3=x.createContext(void 0),Gue=e=>{var{children:t}=e,[r]=x.useState("".concat(Af("recharts"),"-clip")),n=zC();if(n==null)return null;var{x:i,y:a,width:o,height:l}=n;return x.createElement(c3.Provider,{value:r},x.createElement("defs",null,x.createElement("clipPath",{id:r},x.createElement("rect",{x:i,y:a,height:l,width:o}))),t)},Xue=()=>x.useContext(c3);class Zue{constructor(t){var{x:r,y:n}=t;this.xAxisScale=r,this.yAxisScale=n}map(t,r){var n,i,{position:a}=r;return{x:(n=this.xAxisScale.map(t.x,{position:a}))!==null&&n!==void 0?n:0,y:(i=this.yAxisScale.map(t.y,{position:a}))!==null&&i!==void 0?i:0}}mapWithFallback(t,r){var n,i,{position:a,fallback:o}=r,l,s;return o==="rangeMin"?l=this.yAxisScale.rangeMin():o==="rangeMax"?l=this.yAxisScale.rangeMax():l=0,o==="rangeMin"?s=this.xAxisScale.rangeMin():o==="rangeMax"?s=this.xAxisScale.rangeMax():s=0,{x:(n=this.xAxisScale.map(t.x,{position:a}))!==null&&n!==void 0?n:s,y:(i=this.yAxisScale.map(t.y,{position:a}))!==null&&i!==void 0?i:l}}isInRange(t){var{x:r,y:n}=t,i=r==null||this.xAxisScale.isInRange(r),a=n==null||this.yAxisScale.isInRange(n);return i&&a}}function jO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function RO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jO(Object(r),!0).forEach(function(n){Que(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Que(e,t,r){return(t=Jue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jue(e){var t=efe(e,"string");return typeof t=="symbol"?t:t+""}function efe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wg.apply(null,arguments)}var tfe=(e,t)=>{var r;if(x.isValidElement(e))r=x.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{if(!Ae(t.x1)||!Ae(t.y1)||!Ae(t.x2)||!Ae(t.y2))return null;r=x.createElement("line",Wg({},t,{className:"recharts-reference-line-line"}))}return r},rfe=(e,t,r,n,i,a)=>{var{x:o,width:l}=a,s=i.map(e,{position:r});if(!Ae(s)||t==="discard"&&!i.isInRange(s))return null;var c=[{x:o+l,y:s},{x:o,y:s}];return n==="left"?c.reverse():c},nfe=(e,t,r,n,i,a)=>{var{y:o,height:l}=a,s=i.map(e,{position:r});if(!Ae(s)||t==="discard"&&!i.isInRange(s))return null;var c=[{x:s,y:o+l},{x:s,y:o}];return n==="top"?c.reverse():c},ife=(e,t,r,n)=>{var i=[n.mapWithFallback(e[0],{position:r,fallback:"rangeMin"}),n.mapWithFallback(e[1],{position:r,fallback:"rangeMax"})];return t==="discard"&&i.some(a=>!n.isInRange(a))?null:i},afe=(e,t,r,n,i,a,o)=>{var{x:l,y:s,segment:c,ifOverflow:u}=o,f=zn(l),h=zn(s);return h?rfe(s,u,n,a,t,r):f?nfe(l,u,n,i,e,r):c!=null&&c.length===2?ife(c,u,n,new Zue({x:e,y:t})):null};function ofe(e){var t=Qe();return x.useEffect(()=>(t(Vue(e)),()=>{t(Yue(e))})),null}function lfe(e){var{xAxisId:t,yAxisId:r,shape:n,className:i,ifOverflow:a}=e,o=hr(),l=Xue(),s=ie(_=>Zi(_,t)),c=ie(_=>Qi(_,r)),u=ie(_=>fc(_,"xAxis",t,o)),f=ie(_=>fc(_,"yAxis",r,o)),h=mh();if(!l||!h||s==null||c==null||u==null||f==null)return null;var d=afe(u,f,h,e.position,s.orientation,c.orientation,e);if(!d)return null;var p=d[0],g=d[1];if(p==null||g==null)return null;var{x:y,y:m}=p,{x:v,y:b}=g,S=a==="hidden"?"url(#".concat(l,")"):void 0,C=RO(RO({clipPath:S},Tr(e)),{},{x1:y,y1:m,x2:v,y2:b}),w=Wue({x1:y,y1:m,x2:v,y2:b});return x.createElement(qr,{zIndex:e.zIndex},x.createElement(Ut,{className:je("recharts-reference-line",i)},tfe(n,C),x.createElement(DF,Wg({},w,{lowerWidth:w.width,upperWidth:w.width}),x.createElement(jF,{label:e.label}),e.children)))}var sfe={ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",label:!1,stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle",zIndex:Pt.line};function u3(e){var t=At(e,sfe);return x.createElement(x.Fragment,null,x.createElement(ofe,{yAxisId:t.yAxisId,xAxisId:t.xAxisId,ifOverflow:t.ifOverflow,x:t.x,y:t.y,segment:t.segment}),x.createElement(lfe,t))}u3.displayName="ReferenceLine";function f3(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;n<e.length;n+=t){var i=e[n];i!==void 0&&r.push(i)}return r}function cfe(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Uue(n,r)}function ufe(e,t,r){var n=r==="width",{x:i,y:a,width:o,height:l}=e;return t===1?{start:n?i:a,end:n?i+o:a+l}:{start:n?i+o:a+l,end:n?i:a}}function Wf(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function ffe(e,t){return f3(e,t+1)}function hfe(e,t,r,n,i){for(var a=(n||[]).slice(),{start:o,end:l}=t,s=0,c=1,u=o,f=function(){var p=n==null?void 0:n[s];if(p===void 0)return{v:f3(n,c)};var g=s,y,m=()=>(y===void 0&&(y=r(p,g)),y),v=p.coordinate,b=s===0||Wf(e,v,m,u,l);b||(s=0,u=o,c+=1),b&&(u=v+e*(m()/2+i),s+=c)},h;c<=a.length;)if(h=f(),h)return h.v;return[]}function dfe(e,t,r,n,i){var a=(n||[]).slice(),o=a.length;if(o===0)return[];for(var{start:l,end:s}=t,c=1;c<=o;c++){for(var u=(o-1)%c,f=l,h=!0,d=function(){var S=n[g];if(S==null)return 0;var C=g,w,_=()=>(w===void 0&&(w=r(S,C)),w),P=S.coordinate,I=g===u||Wf(e,P,_,f,s);if(!I)return h=!1,1;I&&(f=P+e*(_()/2+i))},p,g=u;g<o&&(p=d(),!(p!==0&&p===1));g+=c);if(h){for(var y=[],m=u;m<o;m+=c){var v=n[m];v!=null&&y.push(v)}return y}}return[]}function BO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BO(Object(r),!0).forEach(function(n){pfe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pfe(e,t,r){return(t=gfe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gfe(e){var t=mfe(e,"string");return typeof t=="symbol"?t:t+""}function mfe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yfe(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,{start:l}=t,{end:s}=t,c=function(h){var d=a[h];if(d==null)return 1;var p=d,g,y=()=>(g===void 0&&(g=r(d,h)),g);if(h===o-1){var m=e*(p.coordinate+e*y()/2-s);a[h]=p=xr(xr({},p),{},{tickCoord:m>0?p.coordinate-m*e:p.coordinate})}else a[h]=p=xr(xr({},p),{},{tickCoord:p.coordinate});if(p.tickCoord!=null){var v=Wf(e,p.tickCoord,y,l,s);v&&(s=p.tickCoord-e*(y()/2+i),a[h]=xr(xr({},p),{},{isShow:!0}))}},u=o-1;u>=0;u--)c(u);return a}function vfe(e,t,r,n,i,a){var o=(n||[]).slice(),l=o.length,{start:s,end:c}=t;if(a){var u=n[l-1];if(u!=null){var f=r(u,l-1),h=e*(u.coordinate+e*f/2-c);if(o[l-1]=u=xr(xr({},u),{},{tickCoord:h>0?u.coordinate-h*e:u.coordinate}),u.tickCoord!=null){var d=Wf(e,u.tickCoord,()=>f,s,c);d&&(c=u.tickCoord-e*(f/2+i),o[l-1]=xr(xr({},u),{},{isShow:!0}))}}}for(var p=a?l-1:l,g=function(v){var b=o[v];if(b==null)return 1;var S=b,C,w=()=>(C===void 0&&(C=r(b,v)),C);if(v===0){var _=e*(S.coordinate-e*w()/2-s);o[v]=S=xr(xr({},S),{},{tickCoord:_<0?S.coordinate-_*e:S.coordinate})}else o[v]=S=xr(xr({},S),{},{tickCoord:S.coordinate});if(S.tickCoord!=null){var P=Wf(e,S.tickCoord,w,s,c);P&&(s=S.tickCoord+e*(w()/2+i),o[v]=xr(xr({},S),{},{isShow:!0}))}},y=0;y<p;y++)g(y);return o}function WC(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:o,orientation:l,interval:s,tickFormatter:c,unit:u,angle:f}=e;if(!i||!i.length||!n)return[];if(oe(s)||wy.isSsr){var h;return(h=ffe(i,oe(s)?s:0))!==null&&h!==void 0?h:[]}var d=[],p=l==="top"||l==="bottom"?"width":"height",g=u&&p==="width"?tf(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=(C,w)=>{var _=typeof c=="function"?c(C.value,w):C.value;return p==="width"?cfe(tf(_,{fontSize:t,letterSpacing:r}),g,f):tf(_,{fontSize:t,letterSpacing:r})[p]},m=i[0],v=i[1],b=i.length>=2&&m!=null&&v!=null?er(v.coordinate-m.coordinate):1,S=ufe(a,b,p);return s==="equidistantPreserveStart"?hfe(b,S,y,i,o):s==="equidistantPreserveEnd"?dfe(b,S,y,i,o):(s==="preserveStart"||s==="preserveStartEnd"?d=vfe(b,S,y,i,o,s==="preserveStartEnd"):d=yfe(b,S,y,i,o),d.filter(C=>C.isShow))}var xfe=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){Array.from(t).forEach(u=>{if(u){var f=u.getBoundingClientRect();f.width>o&&(o=f.width)}});var l=r?r.getBoundingClientRect().width:0,s=i+a,c=o+s+l+(r?n:0);return Math.round(c)}return 0},bfe=["axisLine","width","height","className","hide","ticks","axisType"];function wfe(e,t){if(e==null)return{};var r,n,i=kfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function kfe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ll.apply(null,arguments)}function FO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FO(Object(r),!0).forEach(function(n){Sfe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sfe(e,t,r){return(t=Cfe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cfe(e){var t=_fe(e,"string");return typeof t=="symbol"?t:t+""}function _fe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ya={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:Pt.axis};function Efe(e){var{x:t,y:r,width:n,height:i,orientation:a,mirror:o,axisLine:l,otherSvgProps:s}=e;if(!l)return null;var c=wt(wt(wt({},s),Sn(l)),{},{fill:"none"});if(a==="top"||a==="bottom"){var u=+(a==="top"&&!o||a==="bottom"&&o);c=wt(wt({},c),{},{x1:t,y1:r+u*i,x2:t+n,y2:r+u*i})}else{var f=+(a==="left"&&!o||a==="right"&&o);c=wt(wt({},c),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return x.createElement("line",Ll({},c,{className:je("recharts-cartesian-axis-line",_l(l,"className"))}))}function Tfe(e,t,r,n,i,a,o,l,s){var c,u,f,h,d,p,g=l?-1:1,y=e.tickSize||o,m=oe(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":c=u=e.coordinate,h=r+ +!l*i,f=h-g*y,p=f-g*s,d=m;break;case"left":f=h=e.coordinate,u=t+ +!l*n,c=u-g*y,d=c-g*s,p=m;break;case"right":f=h=e.coordinate,u=t+ +l*n,c=u+g*y,d=c+g*s,p=m;break;default:c=u=e.coordinate,h=r+ +l*i,f=h+g*y,p=f+g*s,d=m;break}return{line:{x1:c,y1:f,x2:u,y2:h},tick:{x:d,y:p}}}function Pfe(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function Afe(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function Ofe(e){var{option:t,tickProps:r,value:n}=e,i,a=je(r.className,"recharts-cartesian-axis-tick-value");if(x.isValidElement(t))i=x.cloneElement(t,wt(wt({},r),{},{className:a}));else if(typeof t=="function")i=t(wt(wt({},r),{},{className:a}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=je(o,KF(t))),i=x.createElement(zy,Ll({},r,{className:o}),n)}return i}var Mfe=x.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:i,stroke:a,tickFormatter:o,unit:l,padding:s,tickTextProps:c,orientation:u,mirror:f,x:h,y:d,width:p,height:g,tickSize:y,tickMargin:m,fontSize:v,letterSpacing:b,getTicksConfig:S,events:C,axisType:w}=e,_=WC(wt(wt({},S),{},{ticks:r}),v,b),P=Pfe(u,f),I=Afe(u,f),$=Sn(S),A=kl(n),M={};typeof i=="object"&&(M=i);var F=wt(wt({},$),{},{fill:"none"},M),N=_.map(B=>wt({entry:B},Tfe(B,h,d,p,g,u,y,f,m))),D=N.map(B=>{var{entry:L,line:W}=B;return x.createElement(Ut,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(L.value,"-").concat(L.coordinate,"-").concat(L.tickCoord)},i&&x.createElement("line",Ll({},F,W,{className:je("recharts-cartesian-axis-tick-line",_l(i,"className"))})))}),j=N.map((B,L)=>{var W,T,{entry:V,tick:J}=B,O=wt(wt(wt(wt({verticalAnchor:I},$),{},{textAnchor:P,stroke:"none",fill:a},J),{},{index:L,payload:V,visibleTicksCount:_.length,tickFormatter:o,padding:s},c),{},{angle:(W=(T=c==null?void 0:c.angle)!==null&&T!==void 0?T:$.angle)!==null&&W!==void 0?W:0}),ue=wt(wt({},O),A);return x.createElement(Ut,Ll({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(V.value,"-").concat(V.coordinate,"-").concat(V.tickCoord)},hh(C,V,L)),n&&x.createElement(Ofe,{option:n,tickProps:ue,value:"".concat(typeof o=="function"?o(V.value,L):V.value).concat(l||"")}))});return x.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(w,"-ticks")},j.length>0&&x.createElement(qr,{zIndex:Pt.label},x.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(w,"-tick-labels"),ref:t},j)),D.length>0&&x.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(w,"-tick-lines")},D))}),Lfe=x.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:o,ticks:l,axisType:s}=e,c=wfe(e,bfe),[u,f]=x.useState(""),[h,d]=x.useState(""),p=x.useRef(null);x.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var y;return xfe({ticks:p.current,label:(y=e.labelRef)===null||y===void 0?void 0:y.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var g=x.useCallback(y=>{if(y){var m=y.getElementsByClassName("recharts-cartesian-axis-tick-value");p.current=m;var v=m[0];if(v){var b=window.getComputedStyle(v),S=b.fontSize,C=b.letterSpacing;(S!==u||C!==h)&&(f(S),d(C))}}},[u,h]);return o||n!=null&&n<=0||i!=null&&i<=0?null:x.createElement(qr,{zIndex:e.zIndex},x.createElement(Ut,{className:je("recharts-cartesian-axis",a)},x.createElement(Efe,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Sn(e)}),x.createElement(Mfe,{ref:g,axisType:s,events:c,fontSize:u,getTicksConfig:e,height:e.height,letterSpacing:h,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:l,unit:e.unit,width:e.width,x:e.x,y:e.y}),x.createElement(DF,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},x.createElement(jF,{label:e.label,labelRef:e.labelRef}),e.children)))}),HC=x.forwardRef((e,t)=>{var r=At(e,ya);return x.createElement(Lfe,Ll({},r,{ref:t}))});HC.displayName="CartesianAxis";var Ife=["x1","y1","x2","y2","key"],$fe=["offset"],Dfe=["xAxisId","yAxisId"],Nfe=["xAxisId","yAxisId"];function zO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zO(Object(r),!0).forEach(function(n){jfe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jfe(e,t,r){return(t=Rfe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rfe(e){var t=Bfe(e,"string");return typeof t=="symbol"?t:t+""}function Bfe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},al.apply(null,arguments)}function Hg(e,t){if(e==null)return{};var r,n,i=Ffe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ffe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var zfe=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:a,height:o,ry:l}=e;return x.createElement("rect",{x:n,y:i,ry:l,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function h3(e){var{option:t,lineItemProps:r}=e,n;if(x.isValidElement(t))n=x.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var i,{x1:a,y1:o,x2:l,y2:s,key:c}=r,u=Hg(r,Ife),f=(i=Sn(u))!==null&&i!==void 0?i:{},{offset:h}=f,d=Hg(f,$fe);n=x.createElement("line",al({},d,{x1:a,y1:o,x2:l,y2:s,fill:"none",key:c}))}return n}function Wfe(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,l=Hg(e,Dfe),s=i.map((c,u)=>{var f=wr(wr({},l),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(u),index:u});return x.createElement(h3,{key:"line-".concat(u),option:n,lineItemProps:f})});return x.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function Hfe(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,l=Hg(e,Nfe),s=i.map((c,u)=>{var f=wr(wr({},l),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(u),index:u});return x.createElement(h3,{option:n,lineItemProps:f,key:"line-".concat(u)})});return x.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function Ufe(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:o,horizontalPoints:l,horizontal:s=!0}=e;if(!s||!t||!t.length||l==null)return null;var c=l.map(f=>Math.round(f+i-i)).sort((f,h)=>f-h);i!==c[0]&&c.unshift(0);var u=c.map((f,h)=>{var d=c[h+1],p=d==null,g=p?i+o-f:d-f;if(g<=0)return null;var y=h%t.length;return x.createElement("rect",{key:"react-".concat(h),y:f,x:n,height:g,width:a,stroke:"none",fill:t[y],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return x.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function qfe(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:o,height:l,verticalPoints:s}=e;if(!t||!r||!r.length)return null;var c=s.map(f=>Math.round(f+i-i)).sort((f,h)=>f-h);i!==c[0]&&c.unshift(0);var u=c.map((f,h)=>{var d=c[h+1],p=d==null,g=p?i+o-f:d-f;if(g<=0)return null;var y=h%r.length;return x.createElement("rect",{key:"react-".concat(h),x:f,y:a,width:g,height:l,stroke:"none",fill:r[y],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return x.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var Vfe=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return jj(WC(wr(wr(wr({},ya),r),{},{ticks:Rj(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},Yfe=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return jj(WC(wr(wr(wr({},ya),r),{},{ticks:Rj(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},Kfe={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Pt.grid};function UC(e){var t=hS(),r=dS(),n=Kj(),i=wr(wr({},At(e,Kfe)),{},{x:oe(e.x)?e.x:n.left,y:oe(e.y)?e.y:n.top,width:oe(e.width)?e.width:n.width,height:oe(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:o,x:l,y:s,width:c,height:u,syncWithTicks:f,horizontalValues:h,verticalValues:d}=i,p=hr(),g=ie(I=>RA(I,"xAxis",a,p)),y=ie(I=>RA(I,"yAxis",o,p));if(!Yi(c)||!Yi(u)||!oe(l)||!oe(s))return null;var m=i.verticalCoordinatesGenerator||Vfe,v=i.horizontalCoordinatesGenerator||Yfe,{horizontalPoints:b,verticalPoints:S}=i;if((!b||!b.length)&&typeof v=="function"){var C=h&&h.length,w=v({yAxis:y?wr(wr({},y),{},{ticks:C?h:y.ticks}):void 0,width:t??c,height:r??u,offset:n},C?!0:f);pg(Array.isArray(w),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof w,"]")),Array.isArray(w)&&(b=w)}if((!S||!S.length)&&typeof m=="function"){var _=d&&d.length,P=m({xAxis:g?wr(wr({},g),{},{ticks:_?d:g.ticks}):void 0,width:t??c,height:r??u,offset:n},_?!0:f);pg(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(S=P)}return x.createElement(qr,{zIndex:i.zIndex},x.createElement("g",{className:"recharts-cartesian-grid"},x.createElement(zfe,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),x.createElement(Ufe,al({},i,{horizontalPoints:b})),x.createElement(qfe,al({},i,{verticalPoints:S})),x.createElement(Wfe,al({},i,{offset:n,horizontalPoints:b,xAxis:g,yAxis:y})),x.createElement(Hfe,al({},i,{offset:n,verticalPoints:S,xAxis:g,yAxis:y}))))}UC.displayName="CartesianGrid";var Gfe={},d3=cn({name:"errorBars",initialState:Gfe,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(a=>a.dataKey===n.dataKey&&a.direction===n.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:TTe,replaceErrorBar:PTe,removeErrorBar:ATe}=d3.actions,Xfe=d3.reducer,Zfe=["children"];function Qfe(e,t){if(e==null)return{};var r,n,i=Jfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Jfe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ehe={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},the=x.createContext(ehe);function p3(e){var{children:t}=e,r=Qfe(e,Zfe);return x.createElement(the.Provider,{value:r},t)}function qC(e,t){var r,n,i=ie(c=>Zi(c,e)),a=ie(c=>Qi(c,t)),o=(r=i==null?void 0:i.allowDataOverflow)!==null&&r!==void 0?r:Gt.allowDataOverflow,l=(n=a==null?void 0:a.allowDataOverflow)!==null&&n!==void 0?n:Xt.allowDataOverflow,s=o||l;return{needClip:s,needClipX:o,needClipY:l}}function g3(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=zC(),{needClipX:a,needClipY:o,needClip:l}=qC(t,r);if(!l||!i)return null;var{x:s,y:c,width:u,height:f}=i;return x.createElement("clipPath",{id:"clipPath-".concat(n)},x.createElement("rect",{x:a?s:s-u/2,y:o?c:c-f/2,width:a?u:u*2,height:o?f:f*2}))}var m3=(e,t,r,n)=>xo(e,"xAxis",t,n),y3=(e,t,r,n)=>vo(e,"xAxis",t,n),v3=(e,t,r,n)=>xo(e,"yAxis",r,n),x3=(e,t,r,n)=>vo(e,"yAxis",r,n),rhe=H([Fe,m3,v3,y3,x3],(e,t,r,n,i)=>Na(e,"xAxis")?ac(t,n,!1):ac(r,i,!1)),nhe=(e,t,r,n,i)=>i;function ihe(e){return e.type==="line"}var ahe=H([Ny,nhe],(e,t)=>e.filter(ihe).find(r=>r.id===t)),ohe=H([Fe,m3,v3,y3,x3,ahe,rhe,BS],(e,t,r,n,i,a,o,l)=>{var{chartData:s,dataStartIndex:c,dataEndIndex:u}=l;if(!(a==null||t==null||r==null||n==null||i==null||n.length===0||i.length===0||o==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:f,data:h}=a,d;if(h!=null&&h.length>0?d=h:d=s==null?void 0:s.slice(c,u+1),d!=null)return Zhe({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:f,bandSize:o,displayedData:d})}});function lhe(e){var t=kl(e),r=3,n=2;if(t!=null){var{r:i,strokeWidth:a}=t,o=Number(i),l=Number(a);return(Number.isNaN(o)||o<0)&&(o=r),(Number.isNaN(l)||l<0)&&(l=n),{r:o,strokeWidth:l}}return{r,strokeWidth:n}}var she={};/**
|
|
126
|
+
* @license React
|
|
127
|
+
* use-sync-external-store-with-selector.production.js
|
|
128
|
+
*
|
|
129
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
130
|
+
*
|
|
131
|
+
* This source code is licensed under the MIT license found in the
|
|
132
|
+
* LICENSE file in the root directory of this source tree.
|
|
133
|
+
*/var Ih=x;function che(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var uhe=typeof Object.is=="function"?Object.is:che,fhe=Ih.useSyncExternalStore,hhe=Ih.useRef,dhe=Ih.useEffect,phe=Ih.useMemo,ghe=Ih.useDebugValue;she.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=hhe(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=phe(function(){function s(d){if(!c){if(c=!0,u=d,d=n(d),i!==void 0&&o.hasValue){var p=o.value;if(i(p,d))return f=p}return f=d}if(p=f,uhe(u,d))return p;var g=n(d);return i!==void 0&&i(p,g)?(u=d,p):(u=d,f=g)}var c=!1,u,f,h=r===void 0?null:r;return[function(){return s(t())},h===null?void 0:function(){return s(h())}]},[t,r,n,i]);var l=fhe(e,a[0],a[1]);return dhe(function(){o.hasValue=!0,o.value=l},[l]),ghe(l),l};function mhe(e){e()}function yhe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){mhe(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var WO={notify(){},get:()=>[]};function vhe(e,t){let r,n=WO,i=0,a=!1;function o(g){u();const y=n.subscribe(g);let m=!1;return()=>{m||(m=!0,y(),f())}}function l(){n.notify()}function s(){p.onStateChange&&p.onStateChange()}function c(){return a}function u(){i++,r||(r=e.subscribe(s),n=yhe())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=WO)}function h(){a||(a=!0,u())}function d(){a&&(a=!1,f())}const p={addNestedSub:o,notifyNestedSubs:l,handleChangeWrapper:s,isSubscribed:c,trySubscribe:h,tryUnsubscribe:d,getListeners:()=>n};return p}var xhe=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bhe=xhe(),whe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",khe=whe(),She=()=>bhe||khe?x.useLayoutEffect:x.useEffect,Che=She();function HO(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function _he(e,t){if(HO(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!HO(e[r[i]],t[r[i]]))return!1;return!0}var B0=Symbol.for("react-redux-context"),F0=typeof globalThis<"u"?globalThis:{};function Ehe(){if(!x.createContext)return{};const e=F0[B0]??(F0[B0]=new Map);let t=e.get(x.createContext);return t||(t=x.createContext(null),e.set(x.createContext,t)),t}var The=Ehe();function Phe(e){const{children:t,context:r,serverState:n,store:i}=e,a=x.useMemo(()=>{const s=vhe(i);return{store:i,subscription:s,getServerState:n?()=>n:void 0}},[i,n]),o=x.useMemo(()=>i.getState(),[i]);Che(()=>{const{subscription:s}=a;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==i.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[a,o]);const l=r||The;return x.createElement(l.Provider,{value:a},t)}var Ahe=Phe,Ohe=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function Mhe(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function tv(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(Ohe.has(n)){if(e[n]==null&&t[n]==null)continue;if(!_he(e[n],t[n]))return!1}else if(!Mhe(e[n],t[n]))return!1;return!0}var Lhe=["id"],Ihe=["type","layout","connectNulls","needClip","shape"],$he=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function Hf(){return Hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hf.apply(null,arguments)}function UO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(r),!0).forEach(function(n){Dhe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dhe(e,t,r){return(t=Nhe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nhe(e){var t=jhe(e,"string");return typeof t=="symbol"?t:t+""}function jhe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VC(e,t){if(e==null)return{};var r,n,i=Rhe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Rhe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Bhe=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Pc(r,t),payload:e}]},Fhe=x.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:l,unit:s,tooltipType:c,id:u}=e,f={dataDefinedOnItem:r,getPosition:Hl,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Pc(o,t),hide:l,type:c,color:n,unit:s,graphicalItemId:u}};return x.createElement(BC,{tooltipEntrySettings:f})}),b3=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function zhe(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],i=0;i<t;++i)n=[...n,...r];return n}var Whe=(e,t,r)=>{var n=r.reduce((d,p)=>d+p);if(!n)return b3(t,e);for(var i=Math.floor(e/n),a=e%n,o=t-e,l=[],s=0,c=0;s<r.length;c+=(u=r[s])!==null&&u!==void 0?u:0,++s){var u,f=r[s];if(f!=null&&c+f>a){l=[...r.slice(0,s),a-c];break}}var h=l.length%2===0?[0,o]:[o];return[...zhe(r,i),...l,...h].map(d=>"".concat(d,"px")).join(", ")};function Hhe(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:a,needClip:o}=n,{id:l}=n,s=VC(n,Lhe),c=Sn(s);return x.createElement(uue,{points:r,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:a,baseProps:c,needClip:o,clipPathId:t})}function Uhe(e){var{showLabels:t,children:r,points:n}=e,i=x.useMemo(()=>n==null?void 0:n.map(a=>{var o,l,s={x:(o=a.x)!==null&&o!==void 0?o:0,y:(l=a.y)!==null&&l!==void 0?l:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Di(Di({},s),{},{value:a.value,payload:a.payload,viewBox:s,parentViewBox:void 0,fill:void 0})}),[n]);return x.createElement(WF,{value:t?i:void 0},r)}function qO(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:a}=e,{type:o,layout:l,connectNulls:s,needClip:c,shape:u}=a,f=VC(a,Ihe),h=Di(Di({},Tr(f)),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:n,type:o,layout:l,connectNulls:s,strokeDasharray:i??a.strokeDasharray});return x.createElement(x.Fragment,null,(n==null?void 0:n.length)>1&&x.createElement(DC,Hf({shapeType:"curve",option:u},h,{pathRef:r})),x.createElement(Hhe,{points:n,clipPathId:t,props:a}))}function qhe(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function Vhe(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:l,isAnimationActive:s,animationBegin:c,animationDuration:u,animationEasing:f,animateNewValues:h,width:d,height:p,onAnimationEnd:g,onAnimationStart:y}=r,m=i.current,v=bh(o,"recharts-line-"),b=x.useRef(v),[S,C]=x.useState(!1),w=!S,_=x.useCallback(()=>{typeof g=="function"&&g(),C(!1)},[g]),P=x.useCallback(()=>{typeof y=="function"&&y(),C(!0)},[y]),I=qhe(n.current),$=x.useRef(0);b.current!==v&&($.current=a.current,b.current=v);var A=$.current;return x.createElement(Uhe,{points:o,showLabels:w},r.children,x.createElement(xh,{animationId:v,begin:c,duration:u,isActive:s,easing:f,onAnimationEnd:_,onAnimationStart:P,key:v},M=>{var F=ht(A,I+A,M),N=Math.min(F,I),D;if(s)if(l){var j="".concat(l).split(/[,\s]+/gim).map(W=>parseFloat(W));D=Whe(N,I,j)}else D=b3(I,N);else D=l==null?void 0:String(l);if(M>0&&I>0&&(i.current=o,a.current=Math.max(a.current,N)),m){var B=m.length/o.length,L=M===1?o:o.map((W,T)=>{var V=Math.floor(T*B);if(m[V]){var J=m[V];return Di(Di({},W),{},{x:ht(J.x,W.x,M),y:ht(J.y,W.y,M)})}return h?Di(Di({},W),{},{x:ht(d*2,W.x,M),y:ht(p/2,W.y,M)}):Di(Di({},W),{},{x:W.x,y:W.y})});return i.current=L,x.createElement(qO,{props:r,points:L,clipPathId:t,pathRef:n,strokeDasharray:D})}return x.createElement(qO,{props:r,points:o,clipPathId:t,pathRef:n,strokeDasharray:D})}),x.createElement(AC,{label:r.label}))}function Yhe(e){var{clipPathId:t,props:r}=e,n=x.useRef(null),i=x.useRef(0),a=x.useRef(null);return x.createElement(Vhe,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:i,pathRef:a})}var Khe=(e,t)=>{var r,n;return{x:(r=e.x)!==null&&r!==void 0?r:void 0,y:(n=e.y)!==null&&n!==void 0?n:void 0,value:e.value,errorVal:Xe(e.payload,t)}};class Ghe extends x.Component{render(){var{hide:t,dot:r,points:n,className:i,xAxisId:a,yAxisId:o,top:l,left:s,width:c,height:u,id:f,needClip:h,zIndex:d}=this.props;if(t)return null;var p=je("recharts-line",i),g=f,{r:y,strokeWidth:m}=lhe(r),v=QF(r),b=y*2+m,S=h?"url(#clipPath-".concat(v?"":"dots-").concat(g,")"):void 0;return x.createElement(qr,{zIndex:d},x.createElement(Ut,{className:p},h&&x.createElement("defs",null,x.createElement(g3,{clipPathId:g,xAxisId:a,yAxisId:o}),!v&&x.createElement("clipPath",{id:"clipPath-dots-".concat(g)},x.createElement("rect",{x:s-b/2,y:l-b/2,width:c+b,height:u+b}))),x.createElement(p3,{xAxisId:a,yAxisId:o,data:n,dataPointFormatter:Khe,errorBarOffset:0},x.createElement(Yhe,{props:this.props,clipPathId:g}))),x.createElement(Oue,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:S}))}}var w3={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:Pt.line,type:"linear"};function Xhe(e){var t=At(e,w3),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:l,dot:s,hide:c,isAnimationActive:u,label:f,legendType:h,xAxisId:d,yAxisId:p,id:g}=t,y=VC(t,$he),{needClip:m}=qC(d,p),v=zC(),b=Ul(),S=hr(),C=ie($=>ohe($,d,p,S,g));if(b!=="horizontal"&&b!=="vertical"||C==null||v==null)return null;var{height:w,width:_,x:P,y:I}=v;return x.createElement(Ghe,Hf({},y,{id:g,connectNulls:l,dot:s,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:u,hide:c,label:f,legendType:h,xAxisId:d,yAxisId:p,points:C,layout:b,height:w,width:_,left:P,top:I,needClip:m}))}function Zhe(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:l,displayedData:s}=e;return s.map((c,u)=>{var f=Xe(c,o);if(t==="horizontal"){var h=HT({axis:r,ticks:i,bandSize:l,entry:c,index:u}),d=xt(f)?null:n.scale.map(f);return{x:h,y:d??null,value:f,payload:c}}var p=xt(f)?null:r.scale.map(f),g=HT({axis:n,ticks:a,bandSize:l,entry:c,index:u});return p==null||g==null?null:{x:p,y:g,value:f,payload:c}}).filter(Boolean)}function Qhe(e){var t=At(e,w3),r=hr();return x.createElement(FC,{id:t.id,type:"line"},n=>x.createElement(x.Fragment,null,x.createElement(e3,{legendPayload:Bhe(t)}),x.createElement(Fhe,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:n}),x.createElement(r3,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),x.createElement(Xhe,Hf({},t,{id:n}))))}var k3=x.memo(Qhe,tv);k3.displayName="Line";function Yl(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||n===void 0?void 0:n.xAxisId)!==null&&r!==void 0?r:i3}function Kl(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||n===void 0?void 0:n.yAxisId)!==null&&r!==void 0?r:i3}var Jhe="Invariant failed";function ede(e,t){throw new Error(Jhe)}function iw(){return iw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iw.apply(null,arguments)}function Ug(e){return x.createElement(DC,iw({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var tde=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,i)=>{if(oe(t))return t;var a=oe(n)||xt(n);return a?t(n,i):(a||ede(),r)}},rde=(e,t,r)=>r,nde=(e,t)=>t,$h=H([Ny,nde],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),ide=H([$h],e=>e==null?void 0:e.maxBarSize),ade=(e,t,r,n)=>n,ode=H([Fe,Ny,Yl,Kl,rde],(e,t,r,n,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===r:a.yAxisId===n).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),lde=(e,t,r)=>{var n=Fe(e),i=Yl(e,t),a=Kl(e,t);if(!(i==null||a==null))return n==="horizontal"?Zb(e,"yAxis",a,r):Zb(e,"xAxis",i,r)},sde=(e,t)=>{var r=Fe(e),n=Yl(e,t),i=Kl(e,t);if(!(n==null||i==null))return r==="horizontal"?jA(e,"xAxis",n):jA(e,"yAxis",i)},cde=H([ode,pie,sde],Mue),ude=(e,t,r)=>{var n,i,a=$h(e,t);if(a==null)return 0;var o=Yl(e,t),l=Kl(e,t);if(o==null||l==null)return 0;var s=Fe(e),c=gB(e),{maxBarSize:u}=a,f=xt(u)?c:u,h,d;return s==="horizontal"?(h=xo(e,"xAxis",o,r),d=vo(e,"xAxis",o,r)):(h=xo(e,"yAxis",l,r),d=vo(e,"yAxis",l,r)),(n=(i=ac(h,d,!0))!==null&&i!==void 0?i:f)!==null&&n!==void 0?n:0},S3=(e,t,r)=>{var n=Fe(e),i=Yl(e,t),a=Kl(e,t);if(!(i==null||a==null)){var o,l;return n==="horizontal"?(o=xo(e,"xAxis",i,r),l=vo(e,"xAxis",i,r)):(o=xo(e,"yAxis",a,r),l=vo(e,"yAxis",a,r)),ac(o,l)}},fde=H([cde,gB,die,mB,ude,S3,ide],Nue),hde=(e,t,r)=>{var n=Yl(e,t);if(n!=null)return xo(e,"xAxis",n,r)},dde=(e,t,r)=>{var n=Kl(e,t);if(n!=null)return xo(e,"yAxis",n,r)},pde=(e,t,r)=>{var n=Yl(e,t);if(n!=null)return vo(e,"xAxis",n,r)},gde=(e,t,r)=>{var n=Kl(e,t);if(n!=null)return vo(e,"yAxis",n,r)},mde=H([fde,$h],Rue),yde=H([lde,$h],jue),vde=H([Vt,sS,hde,dde,pde,gde,mde,Fe,aie,S3,yde,$h,ade],(e,t,r,n,i,a,o,l,s,c,u,f,h)=>{var{chartData:d,dataStartIndex:p,dataEndIndex:g}=s;if(!(f==null||o==null||t==null||l!=="horizontal"&&l!=="vertical"||r==null||n==null||i==null||a==null||c==null)){var{data:y}=f,m;if(y!=null&&y.length>0?m=y:m=d==null?void 0:d.slice(p,g+1),m!=null)return Vde({layout:l,barSettings:f,pos:o,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,stackedData:u,displayedData:m,offset:e,cells:h,dataStartIndex:p})}}),xde=["index"];function aw(){return aw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aw.apply(null,arguments)}function bde(e,t){if(e==null)return{};var r,n,i=wde(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function wde(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var C3=x.createContext(void 0),kde=e=>{var t=x.useContext(C3);if(t!=null)return t.stackId;if(e!=null)return aJ(e)},Sde=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),Cde=e=>{var t=x.useContext(C3);if(t!=null){var{stackId:r}=t;return"url(#".concat(Sde(r,e),")")}},_3=e=>{var{index:t}=e,r=bde(e,xde),n=Cde(t);return x.createElement(Ut,aw({className:"recharts-bar-stack-layer",clipPath:n},r))},_de=["onMouseEnter","onMouseLeave","onClick"],Ede=["value","background","tooltipPosition"],Tde=["id"],Pde=["onMouseEnter","onClick","onMouseLeave"];function Ma(){return Ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ma.apply(null,arguments)}function VO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VO(Object(r),!0).forEach(function(n){Ade(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ade(e,t,r){return(t=Ode(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ode(e){var t=Mde(e,"string");return typeof t=="symbol"?t:t+""}function Mde(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qg(e,t){if(e==null)return{};var r,n,i=Lde(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Lde(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ide=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Pc(r,t),payload:e}]},$de=x.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:a,hide:o,unit:l,tooltipType:s,id:c}=e,u={dataDefinedOnItem:void 0,getPosition:Hl,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:Pc(a,t),hide:o,type:s,color:i,unit:l,graphicalItemId:c}};return x.createElement(BC,{tooltipEntrySettings:u})});function Dde(e){var t=ie(bo),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:l,onClick:s}=a,c=qg(a,_de),u=NC(o,n,a.id),f=jC(l),h=RC(s,n,a.id);if(!i||r==null)return null;var d=kl(i);return x.createElement(qr,{zIndex:Bue(i,Pt.barBackground)},r.map((p,g)=>{var{value:y,background:m,tooltipPosition:v}=p,b=qg(p,Ede);if(!m)return null;var S=u(p,g),C=f(p,g),w=h(p,g),_=$r($r($r($r($r({option:i,isActive:String(g)===t},b),{},{fill:"#eee"},m),d),hh(c,p,g)),{},{onMouseEnter:S,onMouseLeave:C,onClick:w,dataKey:n,index:g,className:"recharts-bar-background-rectangle"});return x.createElement(Ug,Ma({key:"background-bar-".concat(g)},_))}))}function Nde(e){var{showLabels:t,children:r,rects:n}=e,i=n==null?void 0:n.map(a=>{var o={x:a.x,y:a.y,width:a.width,lowerWidth:a.width,upperWidth:a.width,height:a.height};return $r($r({},o),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:o,fill:a.fill})});return x.createElement(WF,{value:t?i:void 0},r)}function jde(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:a,dataKey:o}=e,l=ie(bo),s=ie(wC),c=r&&String(a)===l&&(s==null||o===s),u=c?r:t;return c?x.createElement(qr,{zIndex:Pt.activeBar},x.createElement(_3,{index:a},x.createElement(Ug,Ma({},n,{name:String(n.name)},i,{isActive:c,option:u,index:a,dataKey:o})))):x.createElement(Ug,Ma({},n,{name:String(n.name)},i,{isActive:c,option:u,index:a,dataKey:o}))}function Rde(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return x.createElement(Ug,Ma({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:a}))}function Bde(e){var t,{data:r,props:n}=e,i=(t=Sn(n))!==null&&t!==void 0?t:{},{id:a}=i,o=qg(i,Tde),{shape:l,dataKey:s,activeBar:c}=n,{onMouseEnter:u,onClick:f,onMouseLeave:h}=n,d=qg(n,Pde),p=NC(u,s,a),g=jC(h),y=RC(f,s,a);return r?x.createElement(x.Fragment,null,r.map((m,v)=>x.createElement(_3,Ma({index:v,key:"rectangle-".concat(m==null?void 0:m.x,"-").concat(m==null?void 0:m.y,"-").concat(m==null?void 0:m.value,"-").concat(v),className:"recharts-bar-rectangle"},hh(d,m,v),{onMouseEnter:p(m,v),onMouseLeave:g(m,v),onClick:y(m,v)}),c?x.createElement(jde,{shape:l,activeBar:c,baseProps:o,entry:m,index:v,dataKey:s}):x.createElement(Rde,{shape:l,baseProps:o,entry:m,index:v,dataKey:s})))):null}function Fde(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:l,animationEasing:s,onAnimationEnd:c,onAnimationStart:u}=t,f=r.current,h=bh(t,"recharts-bar-"),[d,p]=x.useState(!1),g=!d,y=x.useCallback(()=>{typeof c=="function"&&c(),p(!1)},[c]),m=x.useCallback(()=>{typeof u=="function"&&u(),p(!0)},[u]);return x.createElement(Nde,{showLabels:g,rects:n},x.createElement(xh,{animationId:h,begin:o,duration:l,isActive:a,easing:s,onAnimationEnd:y,onAnimationStart:m,key:h},v=>{var b=v===1?n:n==null?void 0:n.map((S,C)=>{var w=f&&f[C];if(w)return $r($r({},S),{},{x:ht(w.x,S.x,v),y:ht(w.y,S.y,v),width:ht(w.width,S.width,v),height:ht(w.height,S.height,v)});if(i==="horizontal"){var _=ht(0,S.height,v),P=ht(S.stackedBarStart,S.y,v);return $r($r({},S),{},{y:P,height:_})}var I=ht(0,S.width,v),$=ht(S.stackedBarStart,S.x,v);return $r($r({},S),{},{width:I,x:$})});return v>0&&(r.current=b??null),b==null?null:x.createElement(Ut,null,x.createElement(Bde,{props:t,data:b}))}),x.createElement(AC,{label:t.label}),t.children)}function zde(e){var t=x.useRef(null);return x.createElement(Fde,{previousRectanglesRef:t,props:e})}var E3=0,Wde=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:Xe(e,t)}};class Hde extends x.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:i,xAxisId:a,yAxisId:o,needClip:l,background:s,id:c}=this.props;if(t||r==null)return null;var u=je("recharts-bar",i),f=c;return x.createElement(Ut,{className:u,id:c},l&&x.createElement("defs",null,x.createElement(g3,{clipPathId:f,xAxisId:a,yAxisId:o})),x.createElement(Ut,{className:"recharts-bar-rectangles",clipPath:l?"url(#clipPath-".concat(f,")"):void 0},x.createElement(Dde,{data:r,dataKey:n,background:s,allOtherBarProps:this.props}),x.createElement(zde,this.props)))}}var Ude={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:E3,xAxisId:0,yAxisId:0,zIndex:Pt.bar};function qde(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:l,animationDuration:s,animationEasing:c,isAnimationActive:u}=e,{needClip:f}=qC(t,r),h=Ul(),d=hr(),p=$C(e.children,Lh),g=ie(v=>vde(v,e.id,d,p));if(h!=="vertical"&&h!=="horizontal")return null;var y,m=g==null?void 0:g[0];return m==null||m.height==null||m.width==null?y=0:y=h==="vertical"?m.height/2:m.width/2,x.createElement(p3,{xAxisId:t,yAxisId:r,data:g,dataPointFormatter:Wde,errorBarOffset:y},x.createElement(Hde,Ma({},e,{layout:h,needClip:f,data:g,xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:l,animationDuration:s,animationEasing:c,isAnimationActive:u})))}function Vde(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:i,bandSize:a,xAxis:o,yAxis:l,xAxisTicks:s,yAxisTicks:c,stackedData:u,displayedData:f,offset:h,cells:d,parentViewBox:p,dataStartIndex:g}=e,y=t==="horizontal"?l:o,m=u?y.scale.domain():null,v=oJ({numericAxis:y}),b=y.scale.map(v);return f.map((S,C)=>{var w,_,P,I,$,A;if(u){var M=u[C+g];if(M==null)return null;w=eJ(M,m)}else w=Xe(S,r),Array.isArray(w)||(w=[v,w]);var F=tde(n,E3)(w[1],C);if(t==="horizontal"){var N,D=l.scale.map(w[0]),j=l.scale.map(w[1]);if(D==null||j==null)return null;_=UT({axis:o,ticks:s,bandSize:a,offset:i.offset,entry:S,index:C}),P=(N=j??D)!==null&&N!==void 0?N:void 0,I=i.size;var B=D-j;if($=Vi(B)?0:B,A={x:_,y:h.top,width:I,height:h.height},Math.abs(F)>0&&Math.abs($)<Math.abs(F)){var L=er($||F)*(Math.abs(F)-Math.abs($));P-=L,$+=L}}else{var W=o.scale.map(w[0]),T=o.scale.map(w[1]);if(W==null||T==null)return null;if(_=W,P=UT({axis:l,ticks:c,bandSize:a,offset:i.offset,entry:S,index:C}),I=T-W,$=i.size,A={x:h.left,y:P,width:h.width,height:$},Math.abs(F)>0&&Math.abs(I)<Math.abs(F)){var V=er(I||F)*(Math.abs(F)-Math.abs(I));I+=V}}if(_==null||P==null||I==null||$==null)return null;var J=$r($r({},S),{},{stackedBarStart:b,x:_,y:P,width:I,height:$,value:u?w:w[1],payload:S,background:A,tooltipPosition:{x:_+I/2,y:P+$/2},parentViewBox:p},d&&d[C]&&d[C].props);return J}).filter(Boolean)}function Yde(e){var t=At(e,Ude),r=kde(t.stackId),n=hr();return x.createElement(FC,{id:t.id,type:"bar"},i=>x.createElement(x.Fragment,null,x.createElement(e3,{legendPayload:Ide(t)}),x.createElement($de,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:i}),x.createElement(r3,{type:"bar",id:i,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:r,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n}),x.createElement(qr,{zIndex:t.zIndex},x.createElement(qde,Ma({},t,{id:i})))))}var ow=x.memo(Yde,tv);ow.displayName="Bar";var Kde=["domain","range"],Gde=["domain","range"];function YO(e,t){if(e==null)return{};var r,n,i=Xde(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Xde(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function KO(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function T3(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=YO(e,Kde),{domain:a,range:o}=t,l=YO(t,Gde);return!KO(r,a)||!KO(n,o)?!1:tv(i,l)}var Zde=["type"],Qde=["dangerouslySetInnerHTML","ticks","scale"],Jde=["id","scale"];function lw(){return lw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lw.apply(null,arguments)}function GO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GO(Object(r),!0).forEach(function(n){epe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function epe(e,t,r){return(t=tpe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tpe(e){var t=rpe(e,"string");return typeof t=="symbol"?t:t+""}function rpe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sw(e,t){if(e==null)return{};var r,n,i=npe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function npe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ipe(e){var t=Qe(),r=x.useRef(null),n=Gj(),{type:i}=e,a=sw(e,Zde),o=My(n,"xAxis",i),l=x.useMemo(()=>{if(o!=null)return XO(XO({},a),{},{type:o})},[a,o]);return x.useLayoutEffect(()=>{l!=null&&(r.current===null?t(gue(l)):r.current!==l&&t(mue({prev:r.current,next:l})),r.current=l)},[l,t]),x.useLayoutEffect(()=>()=>{r.current&&(t(yue(r.current)),r.current=null)},[t]),null}var ape=e=>{var{xAxisId:t,className:r}=e,n=ie(sS),i=hr(),a="xAxis",o=ie(m=>GB(m,a,t,i)),l=ie(m=>qB(m,t)),s=ie(m=>pae(m,t)),c=ie(m=>EB(m,t));if(l==null||s==null||c==null)return null;var{dangerouslySetInnerHTML:u,ticks:f,scale:h}=e,d=sw(e,Qde),{id:p,scale:g}=c,y=sw(c,Jde);return x.createElement(HC,lw({},d,y,{x:s.x,y:s.y,width:l.width,height:l.height,className:je("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:o,axisType:a}))},ope={allowDataOverflow:Gt.allowDataOverflow,allowDecimals:Gt.allowDecimals,allowDuplicatedCategory:Gt.allowDuplicatedCategory,angle:Gt.angle,axisLine:ya.axisLine,height:Gt.height,hide:!1,includeHidden:Gt.includeHidden,interval:Gt.interval,label:!1,minTickGap:Gt.minTickGap,mirror:Gt.mirror,orientation:Gt.orientation,padding:Gt.padding,reversed:Gt.reversed,scale:Gt.scale,tick:Gt.tick,tickCount:Gt.tickCount,tickLine:ya.tickLine,tickSize:ya.tickSize,type:Gt.type,xAxisId:0},lpe=e=>{var t=At(e,ope);return x.createElement(x.Fragment,null,x.createElement(ipe,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),x.createElement(ape,t))},YC=x.memo(lpe,T3);YC.displayName="XAxis";var spe=["type"],cpe=["dangerouslySetInnerHTML","ticks","scale"],upe=["id","scale"];function cw(){return cw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cw.apply(null,arguments)}function ZO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(r),!0).forEach(function(n){fpe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fpe(e,t,r){return(t=hpe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hpe(e){var t=dpe(e,"string");return typeof t=="symbol"?t:t+""}function dpe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uw(e,t){if(e==null)return{};var r,n,i=ppe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ppe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function gpe(e){var t=Qe(),r=x.useRef(null),n=Gj(),{type:i}=e,a=uw(e,spe),o=My(n,"yAxis",i),l=x.useMemo(()=>{if(o!=null)return QO(QO({},a),{},{type:o})},[o,a]);return x.useLayoutEffect(()=>{l!=null&&(r.current===null?t(vue(l)):r.current!==l&&t(xue({prev:r.current,next:l})),r.current=l)},[l,t]),x.useLayoutEffect(()=>()=>{r.current&&(t(bue(r.current)),r.current=null)},[t]),null}function mpe(e){var{yAxisId:t,className:r,width:n,label:i}=e,a=x.useRef(null),o=x.useRef(null),l=ie(sS),s=hr(),c=Qe(),u="yAxis",f=ie(w=>VB(w,t)),h=ie(w=>mae(w,t)),d=ie(w=>GB(w,u,t,s)),p=ie(w=>TB(w,t));if(x.useLayoutEffect(()=>{if(!(n!=="auto"||!f||PC(i)||x.isValidElement(i)||p==null)){var w=a.current;if(w){var _=w.getCalculatedWidth();Math.round(f.width)!==Math.round(_)&&c(wue({id:t,width:_}))}}},[d,f,c,i,t,n,p]),f==null||h==null||p==null)return null;var{dangerouslySetInnerHTML:g,ticks:y,scale:m}=e,v=uw(e,cpe),{id:b,scale:S}=p,C=uw(p,upe);return x.createElement(HC,cw({},v,C,{ref:a,labelRef:o,x:h.x,y:h.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:f.width,height:f.height,className:je("recharts-".concat(u," ").concat(u),r),viewBox:l,ticks:d,axisType:u}))}var ype={allowDataOverflow:Xt.allowDataOverflow,allowDecimals:Xt.allowDecimals,allowDuplicatedCategory:Xt.allowDuplicatedCategory,angle:Xt.angle,axisLine:ya.axisLine,hide:!1,includeHidden:Xt.includeHidden,interval:Xt.interval,label:!1,minTickGap:Xt.minTickGap,mirror:Xt.mirror,orientation:Xt.orientation,padding:Xt.padding,reversed:Xt.reversed,scale:Xt.scale,tick:Xt.tick,tickCount:Xt.tickCount,tickLine:ya.tickLine,tickSize:ya.tickSize,type:Xt.type,width:Xt.width,yAxisId:0},vpe=e=>{var t=At(e,ype);return x.createElement(x.Fragment,null,x.createElement(gpe,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),x.createElement(mpe,t))},KC=x.memo(vpe,T3);KC.displayName="YAxis";var xpe=(e,t)=>t,GC=H([xpe,Fe,SB,nr,hF,za,Loe,Vt],Boe),XC=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},P3=Wn("mouseClick"),A3=ph();A3.startListening({actionCreator:P3,effect:(e,t)=>{var r=e.payload,n=GC(t.getState(),XC(r));(n==null?void 0:n.activeIndex)!=null&&t.dispatch(Oae({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var fw=Wn("mouseMove"),O3=ph(),Id=null;O3.startListening({actionCreator:fw,effect:(e,t)=>{var r=e.payload;Id!==null&&cancelAnimationFrame(Id);var n=XC(r);Id=requestAnimationFrame(()=>{var i=t.getState(),a=gC(i,i.tooltip.settings.shared);if(a==="axis"){var o=GC(i,n);(o==null?void 0:o.activeIndex)!=null?t.dispatch(nF({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(rF())}Id=null})}});function bpe(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var JO={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},M3=cn({name:"rootProps",initialState:JO,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:JO.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),wpe=M3.reducer,{updateOptions:kpe}=M3.actions,Spe=null,Cpe={updatePolarOptions:(e,t)=>t.payload},L3=cn({name:"polarOptions",initialState:Spe,reducers:Cpe}),{updatePolarOptions:_pe}=L3.actions,Epe=L3.reducer,I3=Wn("keyDown"),$3=Wn("focus"),ZC=ph();ZC.startListening({actionCreator:I3,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=mC(i,jc(r),Ph(r),Oh(r)),l=o==null?-1:Number(o);if(!(!Number.isFinite(l)||l<0)){var s=za(r);if(a==="Enter"){var c=jg(r,"axis","hover",String(i.index));t.dispatch(Jb({active:!i.active,activeIndex:i.index,activeCoordinate:c}));return}var u=bae(r),f=u==="left-to-right"?1:-1,h=a==="ArrowRight"?1:-1,d=l+h*f;if(!(s==null||d>=s.length||d<0)){var p=jg(r,"axis","hover",String(d));t.dispatch(Jb({active:!0,activeIndex:d.toString(),activeCoordinate:p}))}}}}}});ZC.startListening({actionCreator:$3,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=jg(r,"axis","hover",String(a));t.dispatch(Jb({active:!0,activeIndex:a,activeCoordinate:o}))}}}});var Mn=Wn("externalEvent"),D3=ph(),z0=new Map;D3.startListening({actionCreator:Mn,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var i=n.type,a=z0.get(i);a!==void 0&&cancelAnimationFrame(a);var o=requestAnimationFrame(()=>{try{var l=t.getState(),s={activeCoordinate:moe(l),activeDataKey:wC(l),activeIndex:bo(l),activeLabel:gF(l),activeTooltipIndex:bo(l),isTooltipActive:yoe(l)};r(s,n)}finally{z0.delete(i)}});z0.set(i,o)}}});var Tpe=H([Dc],e=>e.tooltipItemPayloads),Ppe=H([Tpe,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var n=e.find(a=>a.settings.graphicalItemId===r);if(n!=null){var{getPosition:i}=n;if(i!=null)return i(t)}}}),N3=Wn("touchMove"),j3=ph();j3.startListening({actionCreator:N3,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),i=gC(n,n.tooltip.settings.shared);if(i==="axis"){var a=r.touches[0];if(a==null)return;var o=GC(n,XC({clientX:a.clientX,clientY:a.clientY,currentTarget:r.currentTarget}));(o==null?void 0:o.activeIndex)!=null&&t.dispatch(nF({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if(i==="item"){var l,s=r.touches[0];if(document.elementFromPoint==null||s==null)return;var c=document.elementFromPoint(s.clientX,s.clientY);if(!c||!c.getAttribute)return;var u=c.getAttribute(Fj),f=(l=c.getAttribute(zj))!==null&&l!==void 0?l:void 0,h=Nc(n).find(g=>g.id===f);if(u==null||h==null||f==null)return;var{dataKey:d}=h,p=Ppe(n,u,f);t.dispatch(tF({activeDataKey:d,activeIndex:u,activeCoordinate:p,activeGraphicalItemId:f}))}}}});var Ape=sj({brush:Fue,cartesianAxis:kue,chartData:gle,errorBars:Xfe,graphicalItems:Ace,layout:GQ,legend:QJ,options:ule,polarAxis:qse,polarOptions:Epe,referenceElements:Kue,rootProps:wpe,tooltip:Mae,zIndex:Joe}),Ope=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return bQ({reducer:Ape,preloadedState:t,middleware:n=>{var i;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([A3.middleware,O3.middleware,ZC.middleware,D3.middleware,j3.middleware])},enhancers:n=>{var i=n;return typeof n=="function"&&(i=n()),i.concat(Sj({type:"raf"}))},devTools:{serialize:{replacer:bpe},name:"recharts-".concat(r)}})};function R3(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=hr(),a=x.useRef(null);if(i)return r;a.current==null&&(a.current=Ope(t,n));var o=Jk;return x.createElement(Ahe,{context:o,store:a.current},r)}function Mpe(e){var{layout:t,margin:r}=e,n=Qe(),i=hr();return x.useEffect(()=>{i||(n(VQ(t)),n(qQ(r)))},[n,i,t,r]),null}var B3=x.memo(Mpe,tv);function F3(e){var t=Qe();return x.useEffect(()=>{t(kpe(e))},[t,e]),null}function eM(e){var{zIndex:t,isPanorama:r}=e,n=x.useRef(null),i=Qe();return x.useLayoutEffect(()=>(n.current&&i(Zoe({zIndex:t,element:n.current,isPanorama:r})),()=>{i(Qoe({zIndex:t,isPanorama:r}))}),[i,t,r]),x.createElement("g",{tabIndex:-1,ref:n})}function tM(e){var{children:t,isPanorama:r}=e,n=ie(zoe);if(!n||n.length===0)return t;var i=n.filter(o=>o<0),a=n.filter(o=>o>0);return x.createElement(x.Fragment,null,i.map(o=>x.createElement(eM,{key:o,zIndex:o,isPanorama:r})),t,a.map(o=>x.createElement(eM,{key:o,zIndex:o,isPanorama:r})))}var Lpe=["children"];function Ipe(e,t){if(e==null)return{};var r,n,i=$pe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function $pe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Vg(){return Vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vg.apply(null,arguments)}var Dpe={width:"100%",height:"100%",display:"block"},Npe=x.forwardRef((e,t)=>{var r=hS(),n=dS(),i=lR();if(!Yi(r)||!Yi(n))return null;var{children:a,otherAttributes:o,title:l,desc:s}=e,c,u;return o!=null&&(typeof o.tabIndex=="number"?c=o.tabIndex:c=i?0:void 0,typeof o.role=="string"?u=o.role:u=i?"application":void 0),x.createElement(_k,Vg({},o,{title:l,desc:s,role:u,tabIndex:c,width:r,height:n,style:Dpe,ref:t}),a)}),jpe=e=>{var{children:t}=e,r=ie(my);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return x.createElement(_k,{width:n,height:i,x:o,y:a},t)},rM=x.forwardRef((e,t)=>{var{children:r}=e,n=Ipe(e,Lpe),i=hr();return i?x.createElement(jpe,null,x.createElement(tM,{isPanorama:!0},r)):x.createElement(Npe,Vg({ref:t},n),x.createElement(tM,{isPanorama:!1},r))});function Rpe(){var e=Qe(),[t,r]=x.useState(null),n=ie(hJ);return x.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;Ae(a)&&a!==n&&e(KQ(a))}},[t,e,n]),r}function nM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bpe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nM(Object(r),!0).forEach(function(n){Fpe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fpe(e,t,r){return(t=zpe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zpe(e){var t=Wpe(e,"string");return typeof t=="symbol"?t:t+""}function Wpe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ho(){return ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ho.apply(null,arguments)}var Hpe=()=>(Cle(),null);function Yg(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Upe=x.forwardRef((e,t)=>{var r,n,i=x.useRef(null),[a,o]=x.useState({containerWidth:Yg((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Yg((n=e.style)===null||n===void 0?void 0:n.height)}),l=x.useCallback((c,u)=>{o(f=>{var h=Math.round(c),d=Math.round(u);return f.containerWidth===h&&f.containerHeight===d?f:{containerWidth:h,containerHeight:d}})},[]),s=x.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null&&typeof ResizeObserver<"u"){var{width:u,height:f}=c.getBoundingClientRect();l(u,f);var h=p=>{var g=p[0];if(g!=null){var{width:y,height:m}=g.contentRect;l(y,m)}},d=new ResizeObserver(h);d.observe(c),i.current=d}},[t,l]);return x.useEffect(()=>()=>{var c=i.current;c!=null&&c.disconnect()},[l]),x.createElement(x.Fragment,null,x.createElement(yh,{width:a.containerWidth,height:a.containerHeight}),x.createElement("div",ho({ref:s},e)))}),qpe=x.forwardRef((e,t)=>{var{width:r,height:n}=e,[i,a]=x.useState({containerWidth:Yg(r),containerHeight:Yg(n)}),o=x.useCallback((s,c)=>{a(u=>{var f=Math.round(s),h=Math.round(c);return u.containerWidth===f&&u.containerHeight===h?u:{containerWidth:f,containerHeight:h}})},[]),l=x.useCallback(s=>{if(typeof t=="function"&&t(s),s!=null){var{width:c,height:u}=s.getBoundingClientRect();o(c,u)}},[t,o]);return x.createElement(x.Fragment,null,x.createElement(yh,{width:i.containerWidth,height:i.containerHeight}),x.createElement("div",ho({ref:l},e)))}),Vpe=x.forwardRef((e,t)=>{var{width:r,height:n}=e;return x.createElement(x.Fragment,null,x.createElement(yh,{width:r,height:n}),x.createElement("div",ho({ref:t},e)))}),Ype=x.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?x.createElement(qpe,ho({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?x.createElement(Vpe,ho({},e,{width:r,height:n,ref:t})):x.createElement(x.Fragment,null,x.createElement(yh,{width:r,height:n}),x.createElement("div",ho({ref:t},e)))});function Kpe(e){return e?Upe:Ype}var Gpe=x.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:l,onMouseDown:s,onMouseEnter:c,onMouseLeave:u,onMouseMove:f,onMouseUp:h,onTouchEnd:d,onTouchMove:p,onTouchStart:g,style:y,width:m,responsive:v,dispatchTouchEvents:b=!0}=e,S=x.useRef(null),C=Qe(),[w,_]=x.useState(null),[P,I]=x.useState(null),$=Rpe(),A=cS(),M=(A==null?void 0:A.width)>0?A.width:m,F=(A==null?void 0:A.height)>0?A.height:i,N=x.useCallback(U=>{$(U),typeof t=="function"&&t(U),_(U),I(U),U!=null&&(S.current=U)},[$,t,_,I]),D=x.useCallback(U=>{C(P3(U)),C(Mn({handler:a,reactEvent:U}))},[C,a]),j=x.useCallback(U=>{C(fw(U)),C(Mn({handler:c,reactEvent:U}))},[C,c]),B=x.useCallback(U=>{C(rF()),C(Mn({handler:u,reactEvent:U}))},[C,u]),L=x.useCallback(U=>{C(fw(U)),C(Mn({handler:f,reactEvent:U}))},[C,f]),W=x.useCallback(()=>{C($3())},[C]),T=x.useCallback(U=>{C(I3(U.key))},[C]),V=x.useCallback(U=>{C(Mn({handler:o,reactEvent:U}))},[C,o]),J=x.useCallback(U=>{C(Mn({handler:l,reactEvent:U}))},[C,l]),O=x.useCallback(U=>{C(Mn({handler:s,reactEvent:U}))},[C,s]),ue=x.useCallback(U=>{C(Mn({handler:h,reactEvent:U}))},[C,h]),ye=x.useCallback(U=>{C(Mn({handler:g,reactEvent:U}))},[C,g]),te=x.useCallback(U=>{b&&C(N3(U)),C(Mn({handler:p,reactEvent:U}))},[C,b,p]),de=x.useCallback(U=>{C(Mn({handler:d,reactEvent:U}))},[C,d]),Te=Kpe(v);return x.createElement(kF.Provider,{value:w},x.createElement(eN.Provider,{value:P},x.createElement(Te,{width:M??(y==null?void 0:y.width),height:F??(y==null?void 0:y.height),className:je("recharts-wrapper",n),style:Bpe({position:"relative",cursor:"default",width:M,height:F},y),onClick:D,onContextMenu:V,onDoubleClick:J,onFocus:W,onKeyDown:T,onMouseDown:O,onMouseEnter:j,onMouseLeave:B,onMouseMove:L,onMouseUp:ue,onTouchEnd:de,onTouchMove:te,onTouchStart:ye,ref:N},x.createElement(Hpe,null),r)))}),Xpe=["width","height","responsive","children","className","style","compact","title","desc"];function Zpe(e,t){if(e==null)return{};var r,n,i=Qpe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Qpe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var z3=x.forwardRef((e,t)=>{var{width:r,height:n,responsive:i,children:a,className:o,style:l,compact:s,title:c,desc:u}=e,f=Zpe(e,Xpe),h=Sn(f);return s?x.createElement(x.Fragment,null,x.createElement(yh,{width:r,height:n}),x.createElement(rM,{otherAttributes:h,title:c,desc:u},a)):x.createElement(Gpe,{className:o,style:l,width:r,height:n,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},x.createElement(rM,{otherAttributes:h,title:c,desc:u,ref:t},x.createElement(Gue,null,a)))});function hw(){return hw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hw.apply(null,arguments)}var Jpe={top:5,right:5,bottom:5,left:5},ege={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:Jpe,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},W3=x.forwardRef(function(t,r){var n,i=At(t.categoricalChartProps,ege),{chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:l,tooltipPayloadSearcher:s,categoricalChartProps:c}=t,u={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:l,tooltipPayloadSearcher:s,eventEmitter:void 0};return x.createElement(R3,{preloadedState:{options:u},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:a},x.createElement(o3,{chartData:c.data}),x.createElement(B3,{layout:i.layout,margin:i.margin}),x.createElement(F3,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),x.createElement(z3,hw({},i,{ref:r})))}),tge=["axis"],rge=x.forwardRef((e,t)=>x.createElement(W3,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:tge,tooltipPayloadSearcher:EC,categoricalChartProps:e,ref:t})),nge=["axis","item"],ige=x.forwardRef((e,t)=>x.createElement(W3,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:nge,tooltipPayloadSearcher:EC,categoricalChartProps:e,ref:t}));function age(e){var t=Qe();return x.useEffect(()=>{t(_pe(e))},[t,e]),null}var oge=["layout"];function dw(){return dw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dw.apply(null,arguments)}function lge(e,t){if(e==null)return{};var r,n,i=sge(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function sge(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var cge={top:5,right:5,bottom:5,left:5},H3={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:cge,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},uge=x.forwardRef(function(t,r){var n,i=At(t.categoricalChartProps,H3),{layout:a}=i,o=lge(i,oge),{chartName:l,defaultTooltipEventType:s,validateTooltipEventTypes:c,tooltipPayloadSearcher:u}=t,f={chartName:l,defaultTooltipEventType:s,validateTooltipEventTypes:c,tooltipPayloadSearcher:u,eventEmitter:void 0};return x.createElement(R3,{preloadedState:{options:f},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:l},x.createElement(o3,{chartData:i.data}),x.createElement(B3,{layout:a,margin:i.margin}),x.createElement(F3,{baseValue:void 0,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),x.createElement(age,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),x.createElement(z3,dw({},o,{ref:r})))});function iM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function aM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iM(Object(r),!0).forEach(function(n){fge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fge(e,t,r){return(t=hge(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hge(e){var t=dge(e,"string");return typeof t=="symbol"?t:t+""}function dge(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pge=["item"],gge=aM(aM({},H3),{},{layout:"centric",startAngle:0,endAngle:360}),mge=x.forwardRef((e,t)=>{var r=At(e,gge);return x.createElement(uge,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:pge,tooltipPayloadSearcher:EC,categoricalChartProps:r,ref:t})});function yge(e){return e>=75?"text-red-600 dark:text-red-400":e>=50?"text-orange-600 dark:text-orange-400":e>=25?"text-yellow-600 dark:text-yellow-400":"text-gray-500"}function vge(){const{report:e,loading:t,error:r}=yi(),{report:n,loading:i}=Ao();if(t)return E.jsx("div",{className:"flex items-center justify-center h-64 text-gray-500 dark:text-gray-400",children:"Loading report…"});if(r)return E.jsxs("div",{className:"p-6",children:[E.jsxs("div",{className:"p-4 rounded-lg bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300",children:[E.jsx("p",{className:"font-semibold",children:"Failed to load report"}),E.jsx("p",{className:"text-sm mt-1",children:r})]}),E.jsx("div",{className:"mt-4",children:E.jsx(SE,{})})]});if(!e)return null;const a=e.summary.map(o=>({name:o.type,Coverage:o.coveragePercent,Threshold:_s[o.type]??50}));return E.jsxs("div",{className:"p-6",children:[E.jsxs("div",{className:"flex items-center justify-between mb-6",children:[E.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:"Overview"}),E.jsx(SE,{})]}),E.jsx(cq,{summary:e.summary}),!i&&n&&n.summary.totalRecommendations>0&&E.jsx("div",{className:"mb-6 p-4 rounded-xl border border-blue-200 dark:border-blue-800 bg-blue-50 dark:bg-blue-900/20",children:E.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[E.jsxs("div",{children:[E.jsx("p",{className:"font-semibold text-blue-800 dark:text-blue-300 flex items-center gap-2",children:"🧠 Coverage Intelligence"}),E.jsxs("p",{className:"text-sm text-blue-700 dark:text-blue-400 mt-1",children:[n.summary.totalFindings," findings · ",n.summary.totalRecommendations," recommendations ·"," ",E.jsxs("span",{className:yge(n.summary.maxRiskScore),children:["Max risk: ",n.summary.maxRiskScore]}),(n.summary.recommendationsByPriority.P0??0)>0&&E.jsxs("span",{className:"ml-2 font-bold text-red-600 dark:text-red-400",children:["⚠️ ",n.summary.recommendationsByPriority.P0," P0 action",n.summary.recommendationsByPriority.P0!==1?"s":""," required"]})]})]}),E.jsx(sk,{to:"/intelligence",className:"text-sm px-3 py-1.5 rounded-lg bg-blue-600 text-white hover:bg-blue-700 transition-colors",children:"View Intelligence →"})]})}),E.jsx("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden mb-8",children:E.jsxs("table",{className:"w-full text-sm","data-testid":"summary-table",children:[E.jsx("thead",{children:E.jsxs("tr",{className:"bg-gray-50 dark:bg-gray-700",children:[E.jsx("th",{className:"px-4 py-3 text-left font-semibold text-gray-700 dark:text-gray-200",children:"Coverage Type"}),E.jsx("th",{className:"px-4 py-3 text-right font-semibold text-gray-700 dark:text-gray-200",children:"Total Items"}),E.jsx("th",{className:"px-4 py-3 text-right font-semibold text-gray-700 dark:text-gray-200",children:"Covered Items"}),E.jsx("th",{className:"px-4 py-3 text-right font-semibold text-gray-700 dark:text-gray-200",children:"Coverage %"}),E.jsx("th",{className:"px-4 py-3 text-right font-semibold text-gray-700 dark:text-gray-200",children:"Threshold"}),E.jsx("th",{className:"px-4 py-3 text-center font-semibold text-gray-700 dark:text-gray-200",children:"Status"})]})}),E.jsx("tbody",{children:e.summary.map((o,l)=>{const s=_s[o.type]??50,{label:c,color:u}=fD(o.coveragePercent,s);return E.jsxs("tr",{className:l%2===0?"bg-white dark:bg-gray-800":"bg-gray-50 dark:bg-gray-750",children:[E.jsx("td",{className:"px-4 py-3 font-medium capitalize text-gray-800 dark:text-gray-100",children:o.type}),E.jsx("td",{className:"px-4 py-3 text-right text-gray-600 dark:text-gray-300",children:o.totalItems}),E.jsx("td",{className:"px-4 py-3 text-right text-gray-600 dark:text-gray-300",children:o.coveredItems}),E.jsx("td",{className:"px-4 py-3 text-right",children:E.jsxs("span",{className:`font-semibold ${o.coveragePercent>=s?"text-green-600 dark:text-green-400":o.coveragePercent>=s-10?"text-yellow-600 dark:text-yellow-400":"text-red-600 dark:text-red-400"}`,children:[o.coveragePercent,"%"]})}),E.jsxs("td",{className:"px-4 py-3 text-right text-gray-600 dark:text-gray-300",children:[s,"%"]}),E.jsx("td",{className:`px-4 py-3 text-center font-medium ${u}`,children:c})]},o.type)})})]})}),E.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700 p-6 mb-8",children:[E.jsx("h2",{className:"text-lg font-semibold text-gray-800 dark:text-gray-100 mb-4",children:"Coverage by Type"}),E.jsx(uS,{width:"100%",height:320,children:E.jsxs(ige,{data:a,margin:{top:10,right:20,bottom:10,left:0},children:[E.jsx(UC,{strokeDasharray:"3 3",stroke:"#e5e7eb"}),E.jsx(YC,{dataKey:"name",tick:{fontSize:12}}),E.jsx(KC,{domain:[0,100],tickFormatter:o=>`${o}%`,tick:{fontSize:12}}),E.jsx(TC,{formatter:o=>`${o}%`}),E.jsx(by,{}),E.jsx(u3,{y:80,stroke:"#f59e0b",strokeDasharray:"4 4",label:{value:"Threshold",position:"insideTopRight",fontSize:11}}),E.jsx(ow,{dataKey:"Coverage",fill:"#3b82f6",radius:[4,4,0,0]}),E.jsx(ow,{dataKey:"Threshold",fill:"#f59e0b",opacity:.4,radius:[4,4,0,0]})]})})]}),!i&&n&&E.jsx(wl,{coverageType:"overview",findings:n.findings.slice(0,10),recommendations:n.recommendations.slice(0,10)})]})}const oM=["#22c55e","#ef4444"];function QC({covered:e,total:t}){const r=t-e,n=[{name:"Covered",value:e},{name:"Uncovered",value:r}];return E.jsx(uS,{width:"100%",height:220,children:E.jsxs(mge,{children:[E.jsx(n3,{data:n,cx:"50%",cy:"50%",outerRadius:80,dataKey:"value",label:!0,children:n.map((i,a)=>E.jsx(Lh,{fill:oM[a%oM.length]},`cell-${a}`))}),E.jsx(TC,{}),E.jsx(by,{})]})})}const xge=[{key:"id",label:"Item"},{key:"covered",label:"Covered"}];function Dh({title:e,section:t,columns:r=xge,renderRow:n,aiSummary:i,coverageType:a,intelligenceFindings:o=[],intelligenceRecommendations:l=[]}){const[s,c]=x.useState(""),{showAiSummaries:u}=Hm();if(!t)return E.jsxs("div",{className:"p-6",children:[E.jsxs("div",{className:"text-gray-500 dark:text-gray-400 mb-4",children:["No data available for ",e,". Load a report that includes this section."]}),a&&(o.length>0||l.length>0)&&E.jsx(wl,{coverageType:a,findings:o,recommendations:l,alwaysShow:!0})]});const f=t.items,h=f.filter(p=>String(p.id??"").toLowerCase().includes(s.toLowerCase())),d=f.filter(p=>p.covered===!0).length;return E.jsxs("div",{className:"p-6",children:[E.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-6",children:e}),u&&i&&E.jsx(uh,{markdown:i}),E.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8",children:[E.jsxs("div",{className:"lg:col-span-2 bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700 p-4",children:[E.jsx("div",{className:"mb-3",children:E.jsx("input",{type:"text",placeholder:"Search…",value:s,onChange:p=>c(p.target.value),className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-800 dark:text-gray-100 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search items"})}),E.jsx("div",{className:"overflow-x-auto",children:E.jsxs("table",{className:"w-full text-sm",children:[E.jsx("thead",{children:E.jsx("tr",{className:"bg-gray-50 dark:bg-gray-700",children:r.map(p=>E.jsx("th",{className:"px-3 py-2 text-left font-semibold text-gray-700 dark:text-gray-200",children:p.label},p.key))})}),E.jsx("tbody",{children:h.length===0?E.jsx("tr",{children:E.jsx("td",{colSpan:r.length,className:"px-3 py-4 text-center text-gray-400 dark:text-gray-500",children:"No results found."})}):h.map((p,g)=>n?n(p,g):E.jsx("tr",{className:g%2===0?"bg-white dark:bg-gray-800":"bg-gray-50 dark:bg-gray-750",children:r.map(y=>{var m;return E.jsx("td",{className:"px-3 py-2 text-gray-700 dark:text-gray-300",children:y.key==="covered"?E.jsx("span",{className:p[y.key]?"text-green-600 dark:text-green-400 font-medium":"text-red-600 dark:text-red-400 font-medium",children:p[y.key]?"✅ Yes":"❌ No"}):y.key==="tests"?E.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:((m=p[y.key])==null?void 0:m.join(", "))||"-"}):String(p[y.key]??"-")},y.key)})},String(p.id)))})]})})]}),E.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700 p-4",children:[E.jsx("h2",{className:"text-base font-semibold text-gray-800 dark:text-gray-100 mb-2",children:"Coverage Distribution"}),E.jsx(QC,{covered:d,total:f.length}),E.jsxs("p",{className:"text-sm text-center text-gray-500 dark:text-gray-400 mt-2",children:[d," / ",f.length," covered"]})]})]}),a&&E.jsx(wl,{coverageType:a,findings:o,recommendations:l})]})}function Rc(e){if(!e||e.items.length===0)return 0;const t=e.items.filter(r=>r.covered).length;return Math.round(t/e.items.length*100)}function Bc(e){return e?e.items.filter(t=>!t.covered):[]}function Gl(e){return e.length===0?"- _None — all items are covered!_":e.map(t=>`- \`${t.id}\``).join(`
|
|
134
|
+
`)}function bge(e){var o;const t=(o=e.details)==null?void 0:o.endpoint;if(!t)return`### Endpoints
|
|
135
|
+
|
|
136
|
+
_No endpoint data available._`;const r=t.items.length,n=t.items.filter(l=>l.covered).length,i=Rc(t),a=Bc(t);return`### Endpoints Coverage Summary
|
|
137
|
+
|
|
138
|
+
#### What was analysed
|
|
139
|
+
- Analysed **${r}** endpoint(s) from the OpenAPI specification.
|
|
140
|
+
|
|
141
|
+
#### Key Metrics
|
|
142
|
+
| Metric | Value |
|
|
143
|
+
|--------|-------|
|
|
144
|
+
| Total Endpoints | ${r} |
|
|
145
|
+
| Covered | ${n} |
|
|
146
|
+
| Uncovered | ${r-n} |
|
|
147
|
+
| Coverage | ${i}% |
|
|
148
|
+
|
|
149
|
+
#### Coverage Gaps
|
|
150
|
+
${Gl(a)}
|
|
151
|
+
`}function wge(e){var o;const t=(o=e.details)==null?void 0:o.parameter;if(!t)return`### Parameters
|
|
152
|
+
|
|
153
|
+
_No parameter data available._`;const r=t.items.length,n=t.items.filter(l=>l.covered).length,i=Rc(t),a=Bc(t);return`### Parameter Coverage Summary
|
|
154
|
+
|
|
155
|
+
#### What was analysed
|
|
156
|
+
- Analysed **${r}** parameter category/categories.
|
|
157
|
+
|
|
158
|
+
#### Key Metrics
|
|
159
|
+
| Metric | Value |
|
|
160
|
+
|--------|-------|
|
|
161
|
+
| Total Parameters | ${r} |
|
|
162
|
+
| Covered | ${n} |
|
|
163
|
+
| Uncovered | ${r-n} |
|
|
164
|
+
| Coverage | ${i}% |
|
|
165
|
+
|
|
166
|
+
#### Coverage Gaps
|
|
167
|
+
${Gl(a)}
|
|
168
|
+
`}function kge(e){var o;const t=(o=e.details)==null?void 0:o.business;if(!t)return`### Business Rules
|
|
169
|
+
|
|
170
|
+
_No business rules data available._`;const r=t.items.length,n=t.items.filter(l=>l.covered).length,i=Rc(t),a=Bc(t);return`### Business Rules Coverage Summary
|
|
171
|
+
|
|
172
|
+
#### What was analysed
|
|
173
|
+
- Analysed **${r}** business rule(s) extracted from test descriptions and annotations.
|
|
174
|
+
|
|
175
|
+
#### Key Metrics
|
|
176
|
+
| Metric | Value |
|
|
177
|
+
|--------|-------|
|
|
178
|
+
| Total Rules | ${r} |
|
|
179
|
+
| Covered | ${n} |
|
|
180
|
+
| Uncovered | ${r-n} |
|
|
181
|
+
| Coverage | ${i}% |
|
|
182
|
+
|
|
183
|
+
#### Coverage Gaps
|
|
184
|
+
${Gl(a)}
|
|
185
|
+
`}function U3(e){if(e.length===0)return"";const t=["graph TD"];e.forEach(r=>{const n=r.id.replace(/[^a-zA-Z0-9]/g,"_"),i=r.covered?"covered":"uncovered";t.push(` ${n}["${r.id}"]`),t.push(` class ${n} ${i}`)});for(let r=0;r<e.length-1;r++){const n=e[r].id.replace(/[^a-zA-Z0-9]/g,"_"),i=e[r+1].id.replace(/[^a-zA-Z0-9]/g,"_");t.push(` ${n} --> ${i}`)}return t.push(" classDef covered fill:#22c55e,color:#fff,stroke:#16a34a"),t.push(" classDef uncovered fill:#ef4444,color:#fff,stroke:#dc2626"),t.join(`
|
|
186
|
+
`)}function Sge(e){var s;const t=(s=e.details)==null?void 0:s.integration;if(!t)return`### Integration Flows
|
|
187
|
+
|
|
188
|
+
_No integration flows data available._`;const r=t.items,n=r.length,i=r.filter(c=>c.covered).length,a=Rc(t),o=Bc(t),l=U3(r);return`### Integration Flows Coverage Summary
|
|
189
|
+
|
|
190
|
+
#### What was analysed
|
|
191
|
+
- Analysed **${n}** integration flow(s). See the Mermaid diagram below for a visual representation.
|
|
192
|
+
|
|
193
|
+
#### Key Metrics
|
|
194
|
+
| Metric | Value |
|
|
195
|
+
|--------|-------|
|
|
196
|
+
| Total Flows | ${n} |
|
|
197
|
+
| Covered | ${i} |
|
|
198
|
+
| Uncovered | ${n-i} |
|
|
199
|
+
| Coverage | ${a}% |
|
|
200
|
+
|
|
201
|
+
#### Coverage Gaps
|
|
202
|
+
${Gl(o)}
|
|
203
|
+
|
|
204
|
+
#### Flow Diagram
|
|
205
|
+
The diagram below shows covered (green) and uncovered (red) flows:
|
|
206
|
+
|
|
207
|
+
\`\`\`mermaid
|
|
208
|
+
${l}
|
|
209
|
+
\`\`\`
|
|
210
|
+
`}function Cge(e){var o;const t=(o=e.details)==null?void 0:o.security;if(!t)return`### Security
|
|
211
|
+
|
|
212
|
+
_No security data available._`;const r=t.items.length,n=t.items.filter(l=>l.covered).length,i=Rc(t),a=Bc(t);return`### Security Coverage Summary
|
|
213
|
+
|
|
214
|
+
#### What was analysed
|
|
215
|
+
- Analysed **${r}** security check(s) including authentication, authorisation, and input validation scenarios.
|
|
216
|
+
|
|
217
|
+
#### Key Metrics
|
|
218
|
+
| Metric | Value |
|
|
219
|
+
|--------|-------|
|
|
220
|
+
| Total Checks | ${r} |
|
|
221
|
+
| Covered | ${n} |
|
|
222
|
+
| Uncovered | ${r-n} |
|
|
223
|
+
| Coverage | ${i}% |
|
|
224
|
+
|
|
225
|
+
#### Coverage Gaps
|
|
226
|
+
${Gl(a)}
|
|
227
|
+
`}function _ge(e){var o;const t=(o=e.details)==null?void 0:o.error;if(!t)return`### Error Handling
|
|
228
|
+
|
|
229
|
+
_No error handling data available._`;const r=t.items.length,n=t.items.filter(l=>l.covered).length,i=Rc(t),a=Bc(t);return`### Error Handling Coverage Summary
|
|
230
|
+
|
|
231
|
+
#### What was analysed
|
|
232
|
+
- Analysed **${r}** error scenario(s) such as 4xx/5xx responses and edge-case inputs.
|
|
233
|
+
|
|
234
|
+
#### Key Metrics
|
|
235
|
+
| Metric | Value |
|
|
236
|
+
|--------|-------|
|
|
237
|
+
| Total Scenarios | ${r} |
|
|
238
|
+
| Covered | ${n} |
|
|
239
|
+
| Uncovered | ${r-n} |
|
|
240
|
+
| Coverage | ${i}% |
|
|
241
|
+
|
|
242
|
+
#### Coverage Gaps
|
|
243
|
+
${Gl(a)}
|
|
244
|
+
`}function Ege(e){var u,f;const t=(u=e.details)==null?void 0:u.performance,r=(f=e.details)==null?void 0:f.resilience,n=(t==null?void 0:t.items)??[],i=(r==null?void 0:r.items)??[],a=[...n,...i];if(a.length===0)return`### Performance & Resilience
|
|
245
|
+
|
|
246
|
+
_No performance/resilience data available._`;const o=a.length,l=a.filter(h=>h.covered).length,s=o>0?Math.round(l/o*100):0,c=a.filter(h=>!h.covered);return`### Performance & Resilience Coverage Summary
|
|
247
|
+
|
|
248
|
+
#### What was analysed
|
|
249
|
+
- Analysed **${n.length}** performance metric(s) and **${i.length}** resilience scenario(s).
|
|
250
|
+
|
|
251
|
+
#### Key Metrics
|
|
252
|
+
| Metric | Value |
|
|
253
|
+
|--------|-------|
|
|
254
|
+
| Total Items | ${o} |
|
|
255
|
+
| Covered | ${l} |
|
|
256
|
+
| Uncovered | ${o-l} |
|
|
257
|
+
| Coverage | ${s}% |
|
|
258
|
+
|
|
259
|
+
#### Coverage Gaps
|
|
260
|
+
${Gl(c)}
|
|
261
|
+
`}const Tge=[{key:"id",label:"Endpoint"},{key:"covered",label:"Covered"},{key:"tests",label:"Tests"}];function Pge(){var i;const{report:e}=yi(),{findingsFor:t,recommendationsFor:r}=Ao(),n=e?bge(e):void 0;return E.jsx(Dh,{title:"Endpoints",section:(i=e==null?void 0:e.details)==null?void 0:i.endpoint,columns:Tge,aiSummary:n,coverageType:"endpoint",intelligenceFindings:t("endpoint"),intelligenceRecommendations:r("endpoint")})}const Age=[{key:"id",label:"Parameter"},{key:"covered",label:"Covered"},{key:"tests",label:"Tests"}];function Oge(){var i;const{report:e}=yi(),{findingsFor:t,recommendationsFor:r}=Ao(),n=e?wge(e):void 0;return E.jsx(Dh,{title:"Parameters",section:(i=e==null?void 0:e.details)==null?void 0:i.parameter,columns:Age,aiSummary:n,coverageType:"parameter",intelligenceFindings:t("parameter"),intelligenceRecommendations:r("parameter")})}function Mge(){var h;const{report:e}=yi(),{showAiSummaries:t}=Hm(),{findingsFor:r,recommendationsFor:n}=Ao(),[i,a]=x.useState(""),[o,l]=x.useState(null),s=(h=e==null?void 0:e.details)==null?void 0:h.business;if(!s)return E.jsxs("div",{className:"p-6",children:[E.jsx("div",{className:"text-gray-500 dark:text-gray-400 mb-4",children:"No business rules data available."}),E.jsx(wl,{coverageType:"business",findings:r("business"),recommendations:n("business"),alwaysShow:!0})]});const c=s.items,u=c.filter(d=>d.id.toLowerCase().includes(i.toLowerCase())),f=c.filter(d=>d.covered).length;return E.jsxs("div",{className:"p-6",children:[E.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-6",children:"Business Rules"}),t&&e&&E.jsx(uh,{markdown:kge(e)}),E.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[E.jsxs("div",{className:"lg:col-span-2",children:[E.jsx("input",{type:"text",placeholder:"Search rules…",value:i,onChange:d=>a(d.target.value),className:"mb-3 w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-800 dark:text-gray-100 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),E.jsx("div",{className:"flex flex-col gap-2",children:u.map(d=>E.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl border border-gray-200 dark:border-gray-700 shadow-sm overflow-hidden",children:[E.jsxs("button",{className:"w-full flex items-center justify-between px-4 py-3 text-left",onClick:()=>l(o===d.id?null:d.id),children:[E.jsxs("span",{className:"font-medium text-gray-800 dark:text-gray-100 text-sm",children:[d.covered?"✅":"❌"," ",d.id]}),E.jsx("span",{className:"text-gray-400 dark:text-gray-500 text-xs",children:o===d.id?"▲":"▼"})]}),o===d.id&&E.jsxs("div",{className:"px-4 pb-3 text-sm text-gray-600 dark:text-gray-300",children:[E.jsxs("p",{children:[E.jsx("span",{className:"font-medium",children:"Status: "}),d.covered?E.jsx("span",{className:"text-green-600 dark:text-green-400",children:"Covered"}):E.jsx("span",{className:"text-red-600 dark:text-red-400",children:"Not covered"})]}),d.tests&&d.tests.length>0&&E.jsxs("p",{className:"mt-1",children:[E.jsx("span",{className:"font-medium",children:"Tests: "}),d.tests.join(", ")]})]})]},d.id))})]}),E.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700 p-4",children:[E.jsx("h2",{className:"text-base font-semibold text-gray-800 dark:text-gray-100 mb-2",children:"Coverage Distribution"}),E.jsx(QC,{covered:f,total:c.length}),E.jsxs("p",{className:"text-sm text-center text-gray-500 dark:text-gray-400 mt-2",children:[f," / ",c.length," covered"]})]})]}),E.jsx(wl,{coverageType:"business",findings:r("business"),recommendations:n("business")})]})}const Lge="modulepreload",Ige=function(e){return"/"+e},lM={},Ve=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(r.map(s=>{if(s=Ige(s),s in lM)return;lM[s]=!0;const c=s.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Lge,c||(f.as="script"),f.crossOrigin="",f.href=s,l&&f.setAttribute("nonce",l),document.head.appendChild(f),c)return new Promise((h,d)=>{f.addEventListener("load",h),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${s}`)))})}))}function a(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})};var sM={name:"mermaid",version:"11.12.3",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.23",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},q3={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(cf,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",o="second",l="minute",s="hour",c="day",u="week",f="month",h="quarter",d="year",p="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var D=["th","st","nd","rd"],j=N%100;return"["+N+(D[(j-20)%10]||D[j]||D[0])+"]"}},b=function(N,D,j){var B=String(N);return!B||B.length>=D?N:""+Array(D+1-B.length).join(j)+N},S={s:b,z:function(N){var D=-N.utcOffset(),j=Math.abs(D),B=Math.floor(j/60),L=j%60;return(D<=0?"+":"-")+b(B,2,"0")+":"+b(L,2,"0")},m:function N(D,j){if(D.date()<j.date())return-N(j,D);var B=12*(j.year()-D.year())+(j.month()-D.month()),L=D.clone().add(B,f),W=j-L<0,T=D.clone().add(B+(W?-1:1),f);return+(-(B+(j-L)/(W?L-T:T-L))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:d,w:u,d:c,D:p,h:s,m:l,s:o,ms:a,Q:h}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},C="en",w={};w[C]=v;var _="$isDayjsObject",P=function(N){return N instanceof M||!(!N||!N[_])},I=function N(D,j,B){var L;if(!D)return C;if(typeof D=="string"){var W=D.toLowerCase();w[W]&&(L=W),j&&(w[W]=j,L=W);var T=D.split("-");if(!L&&T.length>1)return N(T[0])}else{var V=D.name;w[V]=D,L=V}return!B&&L&&(C=L),L||!B&&C},$=function(N,D){if(P(N))return N.clone();var j=typeof D=="object"?D:{};return j.date=N,j.args=arguments,new M(j)},A=S;A.l=I,A.i=P,A.w=function(N,D){return $(N,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var M=function(){function N(j){this.$L=I(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[_]=!0}var D=N.prototype;return D.parse=function(j){this.$d=function(B){var L=B.date,W=B.utc;if(L===null)return new Date(NaN);if(A.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var T=L.match(y);if(T){var V=T[2]-1||0,J=(T[7]||"0").substring(0,3);return W?new Date(Date.UTC(T[1],V,T[3]||1,T[4]||0,T[5]||0,T[6]||0,J)):new Date(T[1],V,T[3]||1,T[4]||0,T[5]||0,T[6]||0,J)}}return new Date(L)}(j),this.init()},D.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},D.$utils=function(){return A},D.isValid=function(){return this.$d.toString()!==g},D.isSame=function(j,B){var L=$(j);return this.startOf(B)<=L&&L<=this.endOf(B)},D.isAfter=function(j,B){return $(j)<this.startOf(B)},D.isBefore=function(j,B){return this.endOf(B)<$(j)},D.$g=function(j,B,L){return A.u(j)?this[B]:this.set(L,j)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(j,B){var L=this,W=!!A.u(B)||B,T=A.p(j),V=function(U,ne){var me=A.w(L.$u?Date.UTC(L.$y,ne,U):new Date(L.$y,ne,U),L);return W?me:me.endOf(c)},J=function(U,ne){return A.w(L.toDate()[U].apply(L.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(ne)),L)},O=this.$W,ue=this.$M,ye=this.$D,te="set"+(this.$u?"UTC":"");switch(T){case d:return W?V(1,0):V(31,11);case f:return W?V(1,ue):V(0,ue+1);case u:var de=this.$locale().weekStart||0,Te=(O<de?O+7:O)-de;return V(W?ye-Te:ye+(6-Te),ue);case c:case p:return J(te+"Hours",0);case s:return J(te+"Minutes",1);case l:return J(te+"Seconds",2);case o:return J(te+"Milliseconds",3);default:return this.clone()}},D.endOf=function(j){return this.startOf(j,!1)},D.$set=function(j,B){var L,W=A.p(j),T="set"+(this.$u?"UTC":""),V=(L={},L[c]=T+"Date",L[p]=T+"Date",L[f]=T+"Month",L[d]=T+"FullYear",L[s]=T+"Hours",L[l]=T+"Minutes",L[o]=T+"Seconds",L[a]=T+"Milliseconds",L)[W],J=W===c?this.$D+(B-this.$W):B;if(W===f||W===d){var O=this.clone().set(p,1);O.$d[V](J),O.init(),this.$d=O.set(p,Math.min(this.$D,O.daysInMonth())).$d}else V&&this.$d[V](J);return this.init(),this},D.set=function(j,B){return this.clone().$set(j,B)},D.get=function(j){return this[A.p(j)]()},D.add=function(j,B){var L,W=this;j=Number(j);var T=A.p(B),V=function(ue){var ye=$(W);return A.w(ye.date(ye.date()+Math.round(ue*j)),W)};if(T===f)return this.set(f,this.$M+j);if(T===d)return this.set(d,this.$y+j);if(T===c)return V(1);if(T===u)return V(7);var J=(L={},L[l]=n,L[s]=i,L[o]=r,L)[T]||1,O=this.$d.getTime()+j*J;return A.w(O,this)},D.subtract=function(j,B){return this.add(-1*j,B)},D.format=function(j){var B=this,L=this.$locale();if(!this.isValid())return L.invalidDate||g;var W=j||"YYYY-MM-DDTHH:mm:ssZ",T=A.z(this),V=this.$H,J=this.$m,O=this.$M,ue=L.weekdays,ye=L.months,te=L.meridiem,de=function(ne,me,K,Ye){return ne&&(ne[me]||ne(B,W))||K[me].slice(0,Ye)},Te=function(ne){return A.s(V%12||12,ne,"0")},U=te||function(ne,me,K){var Ye=ne<12?"AM":"PM";return K?Ye.toLowerCase():Ye};return W.replace(m,function(ne,me){return me||function(K){switch(K){case"YY":return String(B.$y).slice(-2);case"YYYY":return A.s(B.$y,4,"0");case"M":return O+1;case"MM":return A.s(O+1,2,"0");case"MMM":return de(L.monthsShort,O,ye,3);case"MMMM":return de(ye,O);case"D":return B.$D;case"DD":return A.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return de(L.weekdaysMin,B.$W,ue,2);case"ddd":return de(L.weekdaysShort,B.$W,ue,3);case"dddd":return ue[B.$W];case"H":return String(V);case"HH":return A.s(V,2,"0");case"h":return Te(1);case"hh":return Te(2);case"a":return U(V,J,!0);case"A":return U(V,J,!1);case"m":return String(J);case"mm":return A.s(J,2,"0");case"s":return String(B.$s);case"ss":return A.s(B.$s,2,"0");case"SSS":return A.s(B.$ms,3,"0");case"Z":return T}return null}(ne)||T.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(j,B,L){var W,T=this,V=A.p(B),J=$(j),O=(J.utcOffset()-this.utcOffset())*n,ue=this-J,ye=function(){return A.m(T,J)};switch(V){case d:W=ye()/12;break;case f:W=ye();break;case h:W=ye()/3;break;case u:W=(ue-O)/6048e5;break;case c:W=(ue-O)/864e5;break;case s:W=ue/i;break;case l:W=ue/n;break;case o:W=ue/r;break;default:W=ue}return L?W:A.a(W)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return w[this.$L]},D.locale=function(j,B){if(!j)return this.$L;var L=this.clone(),W=I(j,B,!0);return W&&(L.$L=W),L},D.clone=function(){return A.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},N}(),F=M.prototype;return $.prototype=F,[["$ms",a],["$s",o],["$m",l],["$H",s],["$W",c],["$M",f],["$y",d],["$D",p]].forEach(function(N){F[N[1]]=function(D){return this.$g(D,N[0],N[1])}}),$.extend=function(N,D){return N.$i||(N(D,M,$),N.$i=!0),$},$.locale=I,$.isDayjs=P,$.unix=function(N){return $(1e3*N)},$.en=w[C],$.Ls=w,$.p={},$})})(q3);var $ge=q3.exports;const Dge=Yn($ge);var V3=Object.defineProperty,k=(e,t)=>V3(e,"name",{value:t,configurable:!0}),Nge=(e,t)=>{for(var r in t)V3(e,r,{get:t[r],enumerable:!0})},na={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Y={trace:k((...e)=>{},"trace"),debug:k((...e)=>{},"debug"),info:k((...e)=>{},"info"),warn:k((...e)=>{},"warn"),error:k((...e)=>{},"error"),fatal:k((...e)=>{},"fatal")},JC=k(function(e="fatal"){let t=na.fatal;typeof e=="string"?e.toLowerCase()in na&&(t=na[e]):typeof e=="number"&&(t=e),Y.trace=()=>{},Y.debug=()=>{},Y.info=()=>{},Y.warn=()=>{},Y.error=()=>{},Y.fatal=()=>{},t<=na.fatal&&(Y.fatal=console.error?console.error.bind(console,On("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",On("FATAL"))),t<=na.error&&(Y.error=console.error?console.error.bind(console,On("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",On("ERROR"))),t<=na.warn&&(Y.warn=console.warn?console.warn.bind(console,On("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",On("WARN"))),t<=na.info&&(Y.info=console.info?console.info.bind(console,On("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",On("INFO"))),t<=na.debug&&(Y.debug=console.debug?console.debug.bind(console,On("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",On("DEBUG"))),t<=na.trace&&(Y.trace=console.debug?console.debug.bind(console,On("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",On("TRACE")))},"setLogLevel"),On=k(e=>`%c${Dge().format("ss.SSS")} : ${e} : `,"format");const hp={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},n)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const i=r<.5?r*(1+t):r+t-r*t,a=2*r-i;switch(n){case"r":return hp.hue2rgb(a,i,e+1/3)*255;case"g":return hp.hue2rgb(a,i,e)*255;case"b":return hp.hue2rgb(a,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},n)=>{e/=255,t/=255,r/=255;const i=Math.max(e,t,r),a=Math.min(e,t,r),o=(i+a)/2;if(n==="l")return o*100;if(i===a)return 0;const l=i-a,s=o>.5?l/(2-i-a):l/(i+a);if(n==="s")return s*100;switch(i){case e:return((t-r)/l+(t<r?6:0))*60;case t:return((r-e)/l+2)*60;case r:return((e-t)/l+4)*60;default:return-1}}},jge={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},Rge={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},_e={channel:hp,lang:jge,unit:Rge},qa={};for(let e=0;e<=255;e++)qa[e]=_e.unit.dec2hex(e);const mr={ALL:0,RGB:1,HSL:2};class Bge{constructor(){this.type=mr.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=mr.ALL}is(t){return this.type===t}}class Fge{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new Bge}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=mr.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:n,l:i}=t;r===void 0&&(t.h=_e.channel.rgb2hsl(t,"h")),n===void 0&&(t.s=_e.channel.rgb2hsl(t,"s")),i===void 0&&(t.l=_e.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:n,b:i}=t;r===void 0&&(t.r=_e.channel.hsl2rgb(t,"r")),n===void 0&&(t.g=_e.channel.hsl2rgb(t,"g")),i===void 0&&(t.b=_e.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(mr.HSL)&&r!==void 0?r:(this._ensureHSL(),_e.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(mr.HSL)&&r!==void 0?r:(this._ensureHSL(),_e.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(mr.HSL)&&r!==void 0?r:(this._ensureHSL(),_e.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(mr.RGB)&&r!==void 0?r:(this._ensureRGB(),_e.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(mr.RGB)&&r!==void 0?r:(this._ensureRGB(),_e.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(mr.RGB)&&r!==void 0?r:(this._ensureRGB(),_e.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(mr.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(mr.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(mr.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(mr.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(mr.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(mr.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const rv=new Fge({r:0,g:0,b:0,a:0},"transparent"),Bs={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Bs.re);if(!t)return;const r=t[1],n=parseInt(r,16),i=r.length,a=i%4===0,o=i>4,l=o?1:17,s=o?8:4,c=a?0:-1,u=o?255:15;return rv.set({r:(n>>s*(c+3)&u)*l,g:(n>>s*(c+2)&u)*l,b:(n>>s*(c+1)&u)*l,a:a?(n&u)*l/255:1},e)},stringify:e=>{const{r:t,g:r,b:n,a:i}=e;return i<1?`#${qa[Math.round(t)]}${qa[Math.round(r)]}${qa[Math.round(n)]}${qa[Math.round(i*255)]}`:`#${qa[Math.round(t)]}${qa[Math.round(r)]}${qa[Math.round(n)]}`}},ol={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(ol.hueRe);if(t){const[,r,n]=t;switch(n){case"grad":return _e.channel.clamp.h(parseFloat(r)*.9);case"rad":return _e.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return _e.channel.clamp.h(parseFloat(r)*360)}}return _e.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(ol.re);if(!r)return;const[,n,i,a,o,l]=r;return rv.set({h:ol._hue2deg(n),s:_e.channel.clamp.s(parseFloat(i)),l:_e.channel.clamp.l(parseFloat(a)),a:o?_e.channel.clamp.a(l?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:r,l:n,a:i}=e;return i<1?`hsla(${_e.lang.round(t)}, ${_e.lang.round(r)}%, ${_e.lang.round(n)}%, ${i})`:`hsl(${_e.lang.round(t)}, ${_e.lang.round(r)}%, ${_e.lang.round(n)}%)`}},rf={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=rf.colors[e];if(t)return Bs.parse(t)},stringify:e=>{const t=Bs.stringify(e);for(const r in rf.colors)if(rf.colors[r]===t)return r}},Iu={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(Iu.re);if(!r)return;const[,n,i,a,o,l,s,c,u]=r;return rv.set({r:_e.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:_e.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:_e.channel.clamp.b(s?parseFloat(l)*2.55:parseFloat(l)),a:c?_e.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:n,a:i}=e;return i<1?`rgba(${_e.lang.round(t)}, ${_e.lang.round(r)}, ${_e.lang.round(n)}, ${_e.lang.round(i)})`:`rgb(${_e.lang.round(t)}, ${_e.lang.round(r)}, ${_e.lang.round(n)})`}},Gi={format:{keyword:rf,hex:Bs,rgb:Iu,rgba:Iu,hsl:ol,hsla:ol},parse:e=>{if(typeof e!="string")return e;const t=Bs.parse(e)||Iu.parse(e)||ol.parse(e)||rf.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(mr.HSL)||e.data.r===void 0?ol.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Iu.stringify(e):Bs.stringify(e)},Y3=(e,t)=>{const r=Gi.parse(e);for(const n in t)r[n]=_e.channel.clamp[n](t[n]);return Gi.stringify(r)},nf=(e,t,r=0,n=1)=>{if(typeof e!="number")return Y3(e,{a:t});const i=rv.set({r:_e.channel.clamp.r(e),g:_e.channel.clamp.g(t),b:_e.channel.clamp.b(r),a:_e.channel.clamp.a(n)});return Gi.stringify(i)},zge=e=>{const{r:t,g:r,b:n}=Gi.parse(e),i=.2126*_e.channel.toLinear(t)+.7152*_e.channel.toLinear(r)+.0722*_e.channel.toLinear(n);return _e.lang.round(i)},Wge=e=>zge(e)>=.5,Nh=e=>!Wge(e),K3=(e,t,r)=>{const n=Gi.parse(e),i=n[t],a=_e.channel.clamp[t](i+r);return i!==a&&(n[t]=a),Gi.stringify(n)},se=(e,t)=>K3(e,"l",t),be=(e,t)=>K3(e,"l",-t),z=(e,t)=>{const r=Gi.parse(e),n={};for(const i in t)t[i]&&(n[i]=r[i]+t[i]);return Y3(e,n)},Hge=(e,t,r=50)=>{const{r:n,g:i,b:a,a:o}=Gi.parse(e),{r:l,g:s,b:c,a:u}=Gi.parse(t),f=r/100,h=f*2-1,d=o-u,g=((h*d===-1?h:(h+d)/(1+h*d))+1)/2,y=1-g,m=n*g+l*y,v=i*g+s*y,b=a*g+c*y,S=o*f+u*(1-f);return nf(m,v,b,S)},ee=(e,t=100)=>{const r=Gi.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Hge(r,e,t)};/*! @license DOMPurify 3.3.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.2/LICENSE */const{entries:G3,setPrototypeOf:cM,isFrozen:Uge,getPrototypeOf:qge,getOwnPropertyDescriptor:Vge}=Object;let{freeze:zr,seal:Un,create:dp}=Object,{apply:pw,construct:gw}=typeof Reflect<"u"&&Reflect;zr||(zr=function(t){return t});Un||(Un=function(t){return t});pw||(pw=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return t.apply(r,i)});gw||(gw=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new t(...n)});const $d=Wr(Array.prototype.forEach),Yge=Wr(Array.prototype.lastIndexOf),uM=Wr(Array.prototype.pop),gu=Wr(Array.prototype.push),Kge=Wr(Array.prototype.splice),pp=Wr(String.prototype.toLowerCase),W0=Wr(String.prototype.toString),H0=Wr(String.prototype.match),mu=Wr(String.prototype.replace),Gge=Wr(String.prototype.indexOf),Xge=Wr(String.prototype.trim),dn=Wr(Object.prototype.hasOwnProperty),Lr=Wr(RegExp.prototype.test),yu=Zge(TypeError);function Wr(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return pw(e,t,n)}}function Zge(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return gw(e,r)}}function Me(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pp;cM&&cM(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const a=r(i);a!==i&&(Uge(t)||(t[n]=a),i=a)}e[i]=!0}return e}function Qge(e){for(let t=0;t<e.length;t++)dn(e,t)||(e[t]=null);return e}function Ai(e){const t=dp(null);for(const[r,n]of G3(e))dn(e,r)&&(Array.isArray(n)?t[r]=Qge(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Ai(n):t[r]=n);return t}function vu(e,t){for(;e!==null;){const n=Vge(e,t);if(n){if(n.get)return Wr(n.get);if(typeof n.value=="function")return Wr(n.value)}e=qge(e)}function r(){return null}return r}const fM=zr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U0=zr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),q0=zr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Jge=zr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),V0=zr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),eme=zr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),hM=zr(["#text"]),dM=zr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Y0=zr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),pM=zr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dd=zr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tme=Un(/\{\{[\w\W]*|[\w\W]*\}\}/gm),rme=Un(/<%[\w\W]*|[\w\W]*%>/gm),nme=Un(/\$\{[\w\W]*/gm),ime=Un(/^data-[\-\w.\u00B7-\uFFFF]+$/),ame=Un(/^aria-[\-\w]+$/),X3=Un(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ome=Un(/^(?:\w+script|data):/i),lme=Un(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z3=Un(/^html$/i),sme=Un(/^[a-z][.\w]*(-[.\w]+)+$/i);var gM=Object.freeze({__proto__:null,ARIA_ATTR:ame,ATTR_WHITESPACE:lme,CUSTOM_ELEMENT:sme,DATA_ATTR:ime,DOCTYPE_NAME:Z3,ERB_EXPR:rme,IS_ALLOWED_URI:X3,IS_SCRIPT_OR_DATA:ome,MUSTACHE_EXPR:tme,TMPLIT_EXPR:nme});const xu={element:1,text:3,progressingInstruction:7,comment:8,document:9},cme=function(){return typeof window>"u"?null:window},ume=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},mM=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Q3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cme();const t=xe=>Q3(xe);if(t.version="3.3.2",t.removed=[],!e||!e.document||e.document.nodeType!==xu.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:l,Element:s,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:d}=e,p=s.prototype,g=vu(p,"cloneNode"),y=vu(p,"remove"),m=vu(p,"nextSibling"),v=vu(p,"childNodes"),b=vu(p,"parentNode");if(typeof o=="function"){const xe=r.createElement("template");xe.content&&xe.content.ownerDocument&&(r=xe.content.ownerDocument)}let S,C="";const{implementation:w,createNodeIterator:_,createDocumentFragment:P,getElementsByTagName:I}=r,{importNode:$}=n;let A=mM();t.isSupported=typeof G3=="function"&&typeof b=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:F,TMPLIT_EXPR:N,DATA_ATTR:D,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:L,CUSTOM_ELEMENT:W}=gM;let{IS_ALLOWED_URI:T}=gM,V=null;const J=Me({},[...fM,...U0,...q0,...V0,...hM]);let O=null;const ue=Me({},[...dM,...Y0,...pM,...Dd]);let ye=Object.seal(dp(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),te=null,de=null;const Te=Object.seal(dp(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let U=!0,ne=!0,me=!1,K=!0,Ye=!1,Le=!0,st=!1,Ot=!1,Vr=!1,Zn=!1,Ro=!1,Bo=!1,qh=!0,Vh=!1;const Tv="user-content-";let Vc=!0,Fo=!1,q={},Q=null;const Ce=Me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Oe=null;const We=Me({},["audio","video","img","source","image","track"]);let Or=null;const bi=Me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yr="http://www.w3.org/1998/Math/MathML",wi="http://www.w3.org/2000/svg",Mr="http://www.w3.org/1999/xhtml";let Mt=Mr,ki=!1,un=null;const RW=Me({},[Yr,wi,Mr],W0);let Yh=Me({},["mi","mo","mn","ms","mtext"]),Kh=Me({},["annotation-xml"]);const BW=Me({},["title","style","font","a","script"]);let Yc=null;const FW=["application/xhtml+xml","text/html"],zW="text/html";let Rt=null,ts=null;const WW=r.createElement("form"),K2=function(R){return R instanceof RegExp||R instanceof Function},Pv=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ts&&ts===R)){if((!R||typeof R!="object")&&(R={}),R=Ai(R),Yc=FW.indexOf(R.PARSER_MEDIA_TYPE)===-1?zW:R.PARSER_MEDIA_TYPE,Rt=Yc==="application/xhtml+xml"?W0:pp,V=dn(R,"ALLOWED_TAGS")?Me({},R.ALLOWED_TAGS,Rt):J,O=dn(R,"ALLOWED_ATTR")?Me({},R.ALLOWED_ATTR,Rt):ue,un=dn(R,"ALLOWED_NAMESPACES")?Me({},R.ALLOWED_NAMESPACES,W0):RW,Or=dn(R,"ADD_URI_SAFE_ATTR")?Me(Ai(bi),R.ADD_URI_SAFE_ATTR,Rt):bi,Oe=dn(R,"ADD_DATA_URI_TAGS")?Me(Ai(We),R.ADD_DATA_URI_TAGS,Rt):We,Q=dn(R,"FORBID_CONTENTS")?Me({},R.FORBID_CONTENTS,Rt):Ce,te=dn(R,"FORBID_TAGS")?Me({},R.FORBID_TAGS,Rt):Ai({}),de=dn(R,"FORBID_ATTR")?Me({},R.FORBID_ATTR,Rt):Ai({}),q=dn(R,"USE_PROFILES")?R.USE_PROFILES:!1,U=R.ALLOW_ARIA_ATTR!==!1,ne=R.ALLOW_DATA_ATTR!==!1,me=R.ALLOW_UNKNOWN_PROTOCOLS||!1,K=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ye=R.SAFE_FOR_TEMPLATES||!1,Le=R.SAFE_FOR_XML!==!1,st=R.WHOLE_DOCUMENT||!1,Zn=R.RETURN_DOM||!1,Ro=R.RETURN_DOM_FRAGMENT||!1,Bo=R.RETURN_TRUSTED_TYPE||!1,Vr=R.FORCE_BODY||!1,qh=R.SANITIZE_DOM!==!1,Vh=R.SANITIZE_NAMED_PROPS||!1,Vc=R.KEEP_CONTENT!==!1,Fo=R.IN_PLACE||!1,T=R.ALLOWED_URI_REGEXP||X3,Mt=R.NAMESPACE||Mr,Yh=R.MATHML_TEXT_INTEGRATION_POINTS||Yh,Kh=R.HTML_INTEGRATION_POINTS||Kh,ye=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&K2(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&K2(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ye.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ye&&(ne=!1),Ro&&(Zn=!0),q&&(V=Me({},hM),O=dp(null),q.html===!0&&(Me(V,fM),Me(O,dM)),q.svg===!0&&(Me(V,U0),Me(O,Y0),Me(O,Dd)),q.svgFilters===!0&&(Me(V,q0),Me(O,Y0),Me(O,Dd)),q.mathMl===!0&&(Me(V,V0),Me(O,pM),Me(O,Dd))),dn(R,"ADD_TAGS")||(Te.tagCheck=null),dn(R,"ADD_ATTR")||(Te.attributeCheck=null),R.ADD_TAGS&&(typeof R.ADD_TAGS=="function"?Te.tagCheck=R.ADD_TAGS:(V===J&&(V=Ai(V)),Me(V,R.ADD_TAGS,Rt))),R.ADD_ATTR&&(typeof R.ADD_ATTR=="function"?Te.attributeCheck=R.ADD_ATTR:(O===ue&&(O=Ai(O)),Me(O,R.ADD_ATTR,Rt))),R.ADD_URI_SAFE_ATTR&&Me(Or,R.ADD_URI_SAFE_ATTR,Rt),R.FORBID_CONTENTS&&(Q===Ce&&(Q=Ai(Q)),Me(Q,R.FORBID_CONTENTS,Rt)),R.ADD_FORBID_CONTENTS&&(Q===Ce&&(Q=Ai(Q)),Me(Q,R.ADD_FORBID_CONTENTS,Rt)),Vc&&(V["#text"]=!0),st&&Me(V,["html","head","body"]),V.table&&(Me(V,["tbody"]),delete te.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw yu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw yu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=R.TRUSTED_TYPES_POLICY,C=S.createHTML("")}else S===void 0&&(S=ume(d,i)),S!==null&&typeof C=="string"&&(C=S.createHTML(""));zr&&zr(R),ts=R}},G2=Me({},[...U0,...q0,...Jge]),X2=Me({},[...V0,...eme]),HW=function(R){let X=b(R);(!X||!X.tagName)&&(X={namespaceURI:Mt,tagName:"template"});const ge=pp(R.tagName),ct=pp(X.tagName);return un[R.namespaceURI]?R.namespaceURI===wi?X.namespaceURI===Mr?ge==="svg":X.namespaceURI===Yr?ge==="svg"&&(ct==="annotation-xml"||Yh[ct]):!!G2[ge]:R.namespaceURI===Yr?X.namespaceURI===Mr?ge==="math":X.namespaceURI===wi?ge==="math"&&Kh[ct]:!!X2[ge]:R.namespaceURI===Mr?X.namespaceURI===wi&&!Kh[ct]||X.namespaceURI===Yr&&!Yh[ct]?!1:!X2[ge]&&(BW[ge]||!G2[ge]):!!(Yc==="application/xhtml+xml"&&un[R.namespaceURI]):!1},Si=function(R){gu(t.removed,{element:R});try{b(R).removeChild(R)}catch{y(R)}},zo=function(R,X){try{gu(t.removed,{attribute:X.getAttributeNode(R),from:X})}catch{gu(t.removed,{attribute:null,from:X})}if(X.removeAttribute(R),R==="is")if(Zn||Ro)try{Si(X)}catch{}else try{X.setAttribute(R,"")}catch{}},Z2=function(R){let X=null,ge=null;if(Vr)R="<remove></remove>"+R;else{const Lt=H0(R,/^[\r\n\t ]+/);ge=Lt&&Lt[0]}Yc==="application/xhtml+xml"&&Mt===Mr&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const ct=S?S.createHTML(R):R;if(Mt===Mr)try{X=new h().parseFromString(ct,Yc)}catch{}if(!X||!X.documentElement){X=w.createDocument(Mt,"template",null);try{X.documentElement.innerHTML=ki?C:ct}catch{}}const dr=X.body||X.documentElement;return R&&ge&&dr.insertBefore(r.createTextNode(ge),dr.childNodes[0]||null),Mt===Mr?I.call(X,st?"html":"body")[0]:st?X.documentElement:dr},Q2=function(R){return _.call(R.ownerDocument||R,R,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Av=function(R){return R instanceof f&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof u)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},J2=function(R){return typeof l=="function"&&R instanceof l};function ta(xe,R,X){$d(xe,ge=>{ge.call(t,R,X,ts)})}const e_=function(R){let X=null;if(ta(A.beforeSanitizeElements,R,null),Av(R))return Si(R),!0;const ge=Rt(R.nodeName);if(ta(A.uponSanitizeElement,R,{tagName:ge,allowedTags:V}),Le&&R.hasChildNodes()&&!J2(R.firstElementChild)&&Lr(/<[/\w!]/g,R.innerHTML)&&Lr(/<[/\w!]/g,R.textContent)||R.nodeType===xu.progressingInstruction||Le&&R.nodeType===xu.comment&&Lr(/<[/\w]/g,R.data))return Si(R),!0;if(!(Te.tagCheck instanceof Function&&Te.tagCheck(ge))&&(!V[ge]||te[ge])){if(!te[ge]&&r_(ge)&&(ye.tagNameCheck instanceof RegExp&&Lr(ye.tagNameCheck,ge)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(ge)))return!1;if(Vc&&!Q[ge]){const ct=b(R)||R.parentNode,dr=v(R)||R.childNodes;if(dr&&ct){const Lt=dr.length;for(let Kr=Lt-1;Kr>=0;--Kr){const ra=g(dr[Kr],!0);ra.__removalCount=(R.__removalCount||0)+1,ct.insertBefore(ra,m(R))}}}return Si(R),!0}return R instanceof s&&!HW(R)||(ge==="noscript"||ge==="noembed"||ge==="noframes")&&Lr(/<\/no(script|embed|frames)/i,R.innerHTML)?(Si(R),!0):(Ye&&R.nodeType===xu.text&&(X=R.textContent,$d([M,F,N],ct=>{X=mu(X,ct," ")}),R.textContent!==X&&(gu(t.removed,{element:R.cloneNode()}),R.textContent=X)),ta(A.afterSanitizeElements,R,null),!1)},t_=function(R,X,ge){if(de[X]||qh&&(X==="id"||X==="name")&&(ge in r||ge in WW))return!1;if(!(ne&&!de[X]&&Lr(D,X))){if(!(U&&Lr(j,X))){if(!(Te.attributeCheck instanceof Function&&Te.attributeCheck(X,R))){if(!O[X]||de[X]){if(!(r_(R)&&(ye.tagNameCheck instanceof RegExp&&Lr(ye.tagNameCheck,R)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(R))&&(ye.attributeNameCheck instanceof RegExp&&Lr(ye.attributeNameCheck,X)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(X,R))||X==="is"&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&Lr(ye.tagNameCheck,ge)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(ge))))return!1}else if(!Or[X]){if(!Lr(T,mu(ge,L,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&R!=="script"&&Gge(ge,"data:")===0&&Oe[R])){if(!(me&&!Lr(B,mu(ge,L,"")))){if(ge)return!1}}}}}}}return!0},r_=function(R){return R!=="annotation-xml"&&H0(R,W)},n_=function(R){ta(A.beforeSanitizeAttributes,R,null);const{attributes:X}=R;if(!X||Av(R))return;const ge={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:O,forceKeepAttr:void 0};let ct=X.length;for(;ct--;){const dr=X[ct],{name:Lt,namespaceURI:Kr,value:ra}=dr,rs=Rt(Lt),Ov=ra;let ir=Lt==="value"?Ov:Xge(Ov);if(ge.attrName=rs,ge.attrValue=ir,ge.keepAttr=!0,ge.forceKeepAttr=void 0,ta(A.uponSanitizeAttribute,R,ge),ir=ge.attrValue,Vh&&(rs==="id"||rs==="name")&&(zo(Lt,R),ir=Tv+ir),Le&&Lr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ir)){zo(Lt,R);continue}if(rs==="attributename"&&H0(ir,"href")){zo(Lt,R);continue}if(ge.forceKeepAttr)continue;if(!ge.keepAttr){zo(Lt,R);continue}if(!K&&Lr(/\/>/i,ir)){zo(Lt,R);continue}Ye&&$d([M,F,N],a_=>{ir=mu(ir,a_," ")});const i_=Rt(R.nodeName);if(!t_(i_,rs,ir)){zo(Lt,R);continue}if(S&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!Kr)switch(d.getAttributeType(i_,rs)){case"TrustedHTML":{ir=S.createHTML(ir);break}case"TrustedScriptURL":{ir=S.createScriptURL(ir);break}}if(ir!==Ov)try{Kr?R.setAttributeNS(Kr,Lt,ir):R.setAttribute(Lt,ir),Av(R)?Si(R):uM(t.removed)}catch{zo(Lt,R)}}ta(A.afterSanitizeAttributes,R,null)},UW=function xe(R){let X=null;const ge=Q2(R);for(ta(A.beforeSanitizeShadowDOM,R,null);X=ge.nextNode();)ta(A.uponSanitizeShadowNode,X,null),e_(X),n_(X),X.content instanceof a&&xe(X.content);ta(A.afterSanitizeShadowDOM,R,null)};return t.sanitize=function(xe){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,ge=null,ct=null,dr=null;if(ki=!xe,ki&&(xe="<!-->"),typeof xe!="string"&&!J2(xe))if(typeof xe.toString=="function"){if(xe=xe.toString(),typeof xe!="string")throw yu("dirty is not a string, aborting")}else throw yu("toString is not a function");if(!t.isSupported)return xe;if(Ot||Pv(R),t.removed=[],typeof xe=="string"&&(Fo=!1),Fo){if(xe.nodeName){const ra=Rt(xe.nodeName);if(!V[ra]||te[ra])throw yu("root node is forbidden and cannot be sanitized in-place")}}else if(xe instanceof l)X=Z2("<!---->"),ge=X.ownerDocument.importNode(xe,!0),ge.nodeType===xu.element&&ge.nodeName==="BODY"||ge.nodeName==="HTML"?X=ge:X.appendChild(ge);else{if(!Zn&&!Ye&&!st&&xe.indexOf("<")===-1)return S&&Bo?S.createHTML(xe):xe;if(X=Z2(xe),!X)return Zn?null:Bo?C:""}X&&Vr&&Si(X.firstChild);const Lt=Q2(Fo?xe:X);for(;ct=Lt.nextNode();)e_(ct),n_(ct),ct.content instanceof a&&UW(ct.content);if(Fo)return xe;if(Zn){if(Ro)for(dr=P.call(X.ownerDocument);X.firstChild;)dr.appendChild(X.firstChild);else dr=X;return(O.shadowroot||O.shadowrootmode)&&(dr=$.call(n,dr,!0)),dr}let Kr=st?X.outerHTML:X.innerHTML;return st&&V["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Lr(Z3,X.ownerDocument.doctype.name)&&(Kr="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
|
|
262
|
+
`+Kr),Ye&&$d([M,F,N],ra=>{Kr=mu(Kr,ra," ")}),S&&Bo?S.createHTML(Kr):Kr},t.setConfig=function(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pv(xe),Ot=!0},t.clearConfig=function(){ts=null,Ot=!1},t.isValidAttribute=function(xe,R,X){ts||Pv({});const ge=Rt(xe),ct=Rt(R);return t_(ge,ct,X)},t.addHook=function(xe,R){typeof R=="function"&&gu(A[xe],R)},t.removeHook=function(xe,R){if(R!==void 0){const X=Yge(A[xe],R);return X===-1?void 0:Kge(A[xe],X,1)[0]}return uM(A[xe])},t.removeHooks=function(xe){A[xe]=[]},t.removeAllHooks=function(){A=mM()},t}var hc=Q3(),J3=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,af=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,fme=/\s*%%.*\n/gm,zs,e5=(zs=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},k(zs,"UnknownDiagramError"),zs),Il={},e2=k(function(e,t){e=e.replace(J3,"").replace(af,"").replace(fme,`
|
|
263
|
+
`);for(const[r,{detector:n}]of Object.entries(Il))if(n(e,t))return r;throw new e5(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),mw=k((...e)=>{for(const{id:t,detector:r,loader:n}of e)t5(t,r,n)},"registerLazyLoadedDiagrams"),t5=k((e,t,r)=>{Il[e]&&Y.warn(`Detector with key ${e} already exists. Overwriting.`),Il[e]={detector:t,loader:r},Y.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),hme=k(e=>Il[e].loader,"getDiagramLoader"),yw=k((e,t,{depth:r=2,clobber:n=!1}={})=>{const i={depth:r,clobber:n};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>yw(e,a,i)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=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(a=>{typeof t[a]=="object"&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=yw(e[a],t[a],{depth:r-1,clobber:n})):(n||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),zt=yw,nv="#ffffff",iv="#f2f2f2",Nr=k((e,t)=>t?z(e,{s:-40,l:10}):z(e,{s:-40,l:-10}),"mkBorder"),Ws,dme=(Ws=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 r,n,i,a,o,l,s,c,u,f,h,d,p,g,y,m,v,b,S,C,w;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Nr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Nr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Nr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ee(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ee(this.tertiaryColor),this.lineColor=this.lineColor||ee(this.background),this.arrowheadColor=this.arrowheadColor||ee(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?be(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||this.actorBorder,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||be(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ee(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||se(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.vertLineColor=this.vertLineColor||"navy",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.darkMode?(this.rowOdd=this.rowOdd||be(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||be(this.mainBkg,10)):(this.rowOdd=this.rowOdd||se(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||se(this.mainBkg,5)),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||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330}),this.darkMode)for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScale"+_]=be(this["cScale"+_],75);else for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScale"+_]=be(this["cScale"+_],25);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleInv"+_]=this["cScaleInv"+_]||ee(this["cScale"+_]);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this.darkMode?this["cScalePeer"+_]=this["cScalePeer"+_]||se(this["cScale"+_],10):this["cScalePeer"+_]=this["cScalePeer"+_]||be(this["cScale"+_],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleLabel"+_]=this["cScaleLabel"+_]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let _=0;_<5;_++)this["surface"+_]=this["surface"+_]||z(this.mainBkg,{h:180,s:-15,l:t*(5+_*3)}),this["surfacePeer"+_]=this["surfacePeer"+_]||z(this.mainBkg,{h:180,s:-15,l:t*(8+_*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||z(this.primaryColor,{h:64}),this.fillType3=this.fillType3||z(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||z(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||z(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||z(this.primaryColor,{h:128}),this.fillType7=this.fillType7||z(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||z(this.primaryColor,{l:-10}),this.pie5=this.pie5||z(this.secondaryColor,{l:-10}),this.pie6=this.pie6||z(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||z(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||z(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||z(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||z(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||z(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||z(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.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((l=this.radar)==null?void 0:l.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((s=this.radar)==null?void 0:s.graticuleStrokeWidth)||1,graticuleOpacity:((c=this.radar)==null?void 0:c.graticuleOpacity)||.3,legendBoxSize:((u=this.radar)==null?void 0:u.legendBoxSize)||12,legendFontSize:((f=this.radar)==null?void 0:f.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Nh(this.quadrant1Fill)?se(this.quadrant1Fill):be(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:((h=this.xyChart)==null?void 0:h.backgroundColor)||this.background,titleColor:((d=this.xyChart)==null?void 0:d.titleColor)||this.primaryTextColor,xAxisTitleColor:((p=this.xyChart)==null?void 0:p.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((g=this.xyChart)==null?void 0:g.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((m=this.xyChart)==null?void 0:m.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((v=this.xyChart)==null?void 0:v.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((b=this.xyChart)==null?void 0:b.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((S=this.xyChart)==null?void 0:S.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((C=this.xyChart)==null?void 0:C.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((w=this.xyChart)==null?void 0:w.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?be(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||z(this.primaryColor,{h:-30}),this.git4=this.git4||z(this.primaryColor,{h:-60}),this.git5=this.git5||z(this.primaryColor,{h:-90}),this.git6=this.git6||z(this.primaryColor,{h:60}),this.git7=this.git7||z(this.primaryColor,{h:120}),this.darkMode?(this.git0=se(this.git0,25),this.git1=se(this.git1,25),this.git2=se(this.git2,25),this.git3=se(this.git3,25),this.git4=se(this.git4,25),this.git5=se(this.git5,25),this.git6=se(this.git6,25),this.git7=se(this.git7,25)):(this.git0=be(this.git0,25),this.git1=be(this.git1,25),this.git2=be(this.git2,25),this.git3=be(this.git3,25),this.git4=be(this.git4,25),this.git5=be(this.git5,25),this.git6=be(this.git6,25),this.git7=be(this.git7,25)),this.gitInv0=this.gitInv0||ee(this.git0),this.gitInv1=this.gitInv1||ee(this.git1),this.gitInv2=this.gitInv2||ee(this.git2),this.gitInv3=this.gitInv3||ee(this.git3),this.gitInv4=this.gitInv4||ee(this.git4),this.gitInv5=this.gitInv5||ee(this.git5),this.gitInv6=this.gitInv6||ee(this.git6),this.gitInv7=this.gitInv7||ee(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||nv,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||iv}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},k(Ws,"Theme"),Ws),pme=k(e=>{const t=new dme;return t.calculate(e),t},"getThemeVariables"),Hs,gme=(Hs=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=se(this.primaryColor,16),this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=ee(this.background),this.secondaryBorderColor=Nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Nr(this.tertiaryColor,this.darkMode),this.primaryTextColor=ee(this.primaryColor),this.secondaryTextColor=ee(this.secondaryColor),this.tertiaryTextColor=ee(this.tertiaryColor),this.lineColor=ee(this.background),this.textColor=ee(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=se(ee("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=nf(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=be("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=be(this.sectionBkgColor,10),this.taskBorderColor=nf(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=nf(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.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||se(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||be(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,r,n,i,a,o,l,s,c,u,f,h,d,p,g,y,m,v,b,S,C;this.secondBkg=se(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=se(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,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=se(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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=z(this.primaryColor,{h:64}),this.fillType3=z(this.secondaryColor,{h:64}),this.fillType4=z(this.primaryColor,{h:-64}),this.fillType5=z(this.secondaryColor,{h:-64}),this.fillType6=z(this.primaryColor,{h:128}),this.fillType7=z(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||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330});for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||ee(this["cScale"+w]);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScalePeer"+w]=this["cScalePeer"+w]||se(this["cScale"+w],10);for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||z(this.mainBkg,{h:30,s:-30,l:-(-10+w*4)}),this["surfacePeer"+w]=this["surfacePeer"+w]||z(this.mainBkg,{h:30,s:-30,l:-(-7+w*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||this.scaleLabelColor;for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["pie"+w]=this["cScale"+w];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||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Nh(this.quadrant1Fill)?se(this.quadrant1Fill):be(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:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((s=this.xyChart)==null?void 0:s.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((h=this.radar)==null?void 0:h.axisColor)||this.lineColor,axisStrokeWidth:((d=this.radar)==null?void 0:d.axisStrokeWidth)||2,axisLabelFontSize:((p=this.radar)==null?void 0:p.axisLabelFontSize)||12,curveOpacity:((g=this.radar)==null?void 0:g.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((m=this.radar)==null?void 0:m.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((v=this.radar)==null?void 0:v.graticuleStrokeWidth)||1,graticuleOpacity:((b=this.radar)==null?void 0:b.graticuleOpacity)||.3,legendBoxSize:((S=this.radar)==null?void 0:S.legendBoxSize)||12,legendFontSize:((C=this.radar)==null?void 0:C.legendFontSize)||12},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?be(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=se(this.secondaryColor,20),this.git1=se(this.pie2||this.secondaryColor,20),this.git2=se(this.pie3||this.tertiaryColor,20),this.git3=se(this.pie4||z(this.primaryColor,{h:-30}),20),this.git4=se(this.pie5||z(this.primaryColor,{h:-60}),20),this.git5=se(this.pie6||z(this.primaryColor,{h:-90}),10),this.git6=se(this.pie7||z(this.primaryColor,{h:60}),10),this.git7=se(this.pie8||z(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||ee(this.git0),this.gitInv1=this.gitInv1||ee(this.git1),this.gitInv2=this.gitInv2||ee(this.git2),this.gitInv3=this.gitInv3||ee(this.git3),this.gitInv4=this.gitInv4||ee(this.git4),this.gitInv5=this.gitInv5||ee(this.git5),this.gitInv6=this.gitInv6||ee(this.git6),this.gitInv7=this.gitInv7||ee(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ee(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ee(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||se(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||se(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},k(Hs,"Theme"),Hs),mme=k(e=>{const t=new gme;return t.calculate(e),t},"getThemeVariables"),Us,yme=(Us=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=z(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=Nr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Nr(this.tertiaryColor,this.darkMode),this.primaryTextColor=ee(this.primaryColor),this.secondaryTextColor=ee(this.secondaryColor),this.tertiaryTextColor=ee(this.tertiaryColor),this.lineColor=ee(this.background),this.textColor=ee(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="rgba(232,232,232, 0.8)",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="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="#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.vertLineColor="calculated",this.sectionBkgColor=nf(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.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,r,n,i,a,o,l,s,c,u,f,h,d,p,g,y,m,v,b,S,C;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||be(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||be(this.tertiaryColor,40);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScale"+w]=be(this["cScale"+w],10),this["cScalePeer"+w]=this["cScalePeer"+w]||be(this["cScale"+w],25);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||z(this["cScale"+w],{h:180});for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||z(this.mainBkg,{h:30,l:-(5+w*5)}),this["surfacePeer"+w]=this["surfacePeer"+w]||z(this.mainBkg,{h:30,l:-(7+w*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||ee(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||ee(this.labelTextColor);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||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=se(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.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||se(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||se(this.primaryColor,1),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=z(this.primaryColor,{h:64}),this.fillType3=z(this.secondaryColor,{h:64}),this.fillType4=z(this.primaryColor,{h:-64}),this.fillType5=z(this.secondaryColor,{h:-64}),this.fillType6=z(this.primaryColor,{h:128}),this.fillType7=z(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||z(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||z(this.primaryColor,{l:-10}),this.pie5=this.pie5||z(this.secondaryColor,{l:-30}),this.pie6=this.pie6||z(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||z(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||z(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||z(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||z(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||z(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||z(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||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Nh(this.quadrant1Fill)?se(this.quadrant1Fill):be(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.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((s=this.radar)==null?void 0:s.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.legendFontSize)||12},this.xyChart={backgroundColor:((f=this.xyChart)==null?void 0:f.backgroundColor)||this.background,titleColor:((h=this.xyChart)==null?void 0:h.titleColor)||this.primaryTextColor,xAxisTitleColor:((d=this.xyChart)==null?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((p=this.xyChart)==null?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((g=this.xyChart)==null?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((m=this.xyChart)==null?void 0:m.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((v=this.xyChart)==null?void 0:v.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((b=this.xyChart)==null?void 0:b.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((S=this.xyChart)==null?void 0:S.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.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||z(this.primaryColor,{h:-30}),this.git4=this.git4||z(this.primaryColor,{h:-60}),this.git5=this.git5||z(this.primaryColor,{h:-90}),this.git6=this.git6||z(this.primaryColor,{h:60}),this.git7=this.git7||z(this.primaryColor,{h:120}),this.darkMode?(this.git0=se(this.git0,25),this.git1=se(this.git1,25),this.git2=se(this.git2,25),this.git3=se(this.git3,25),this.git4=se(this.git4,25),this.git5=se(this.git5,25),this.git6=se(this.git6,25),this.git7=se(this.git7,25)):(this.git0=be(this.git0,25),this.git1=be(this.git1,25),this.git2=be(this.git2,25),this.git3=be(this.git3,25),this.git4=be(this.git4,25),this.git5=be(this.git5,25),this.git6=be(this.git6,25),this.git7=be(this.git7,25)),this.gitInv0=this.gitInv0||be(ee(this.git0),25),this.gitInv1=this.gitInv1||ee(this.git1),this.gitInv2=this.gitInv2||ee(this.git2),this.gitInv3=this.gitInv3||ee(this.git3),this.gitInv4=this.gitInv4||ee(this.git4),this.gitInv5=this.gitInv5||ee(this.git5),this.gitInv6=this.gitInv6||ee(this.git6),this.gitInv7=this.gitInv7||ee(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ee(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ee(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||nv,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||iv}calculate(t){if(Object.keys(this).forEach(n=>{this[n]==="calculated"&&(this[n]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},k(Us,"Theme"),Us),vme=k(e=>{const t=new yme;return t.calculate(e),t},"getThemeVariables"),qs,xme=(qs=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=se("#cde498",10),this.primaryBorderColor=Nr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Nr(this.tertiaryColor,this.darkMode),this.primaryTextColor=ee(this.primaryColor),this.secondaryTextColor=ee(this.secondaryColor),this.tertiaryTextColor=ee(this.primaryColor),this.lineColor=ee(this.background),this.textColor=ee(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="calculated",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.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,n,i,a,o,l,s,c,u,f,h,d,p,g,y,m,v,b,S,C;this.actorBorder=be(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.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||z(this.primaryColor,{h:210}),this.cScale9=this.cScale9||z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||z(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||be(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||be(this.tertiaryColor,40);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScale"+w]=be(this["cScale"+w],10),this["cScalePeer"+w]=this["cScalePeer"+w]||be(this["cScale"+w],25);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||z(this["cScale"+w],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||this.scaleLabelColor;for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||z(this.mainBkg,{h:30,s:-30,l:-(5+w*5)}),this["surfacePeer"+w]=this["surfacePeer"+w]||z(this.mainBkg,{h:30,s:-30,l:-(8+w*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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||se(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||se(this.mainBkg,20),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=z(this.primaryColor,{h:64}),this.fillType3=z(this.secondaryColor,{h:64}),this.fillType4=z(this.primaryColor,{h:-64}),this.fillType5=z(this.secondaryColor,{h:-64}),this.fillType6=z(this.primaryColor,{h:128}),this.fillType7=z(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||z(this.primaryColor,{l:-30}),this.pie5=this.pie5||z(this.secondaryColor,{l:-30}),this.pie6=this.pie6||z(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||z(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||z(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||z(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||z(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||z(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||z(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||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Nh(this.quadrant1Fill)?se(this.quadrant1Fill):be(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.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((s=this.radar)==null?void 0:s.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.legendFontSize)||12},this.xyChart={backgroundColor:((f=this.xyChart)==null?void 0:f.backgroundColor)||this.background,titleColor:((h=this.xyChart)==null?void 0:h.titleColor)||this.primaryTextColor,xAxisTitleColor:((d=this.xyChart)==null?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((p=this.xyChart)==null?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((g=this.xyChart)==null?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((m=this.xyChart)==null?void 0:m.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((v=this.xyChart)==null?void 0:v.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((b=this.xyChart)==null?void 0:b.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((S=this.xyChart)==null?void 0:S.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.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||z(this.primaryColor,{h:-30}),this.git4=this.git4||z(this.primaryColor,{h:-60}),this.git5=this.git5||z(this.primaryColor,{h:-90}),this.git6=this.git6||z(this.primaryColor,{h:60}),this.git7=this.git7||z(this.primaryColor,{h:120}),this.darkMode?(this.git0=se(this.git0,25),this.git1=se(this.git1,25),this.git2=se(this.git2,25),this.git3=se(this.git3,25),this.git4=se(this.git4,25),this.git5=se(this.git5,25),this.git6=se(this.git6,25),this.git7=se(this.git7,25)):(this.git0=be(this.git0,25),this.git1=be(this.git1,25),this.git2=be(this.git2,25),this.git3=be(this.git3,25),this.git4=be(this.git4,25),this.git5=be(this.git5,25),this.git6=be(this.git6,25),this.git7=be(this.git7,25)),this.gitInv0=this.gitInv0||ee(this.git0),this.gitInv1=this.gitInv1||ee(this.git1),this.gitInv2=this.gitInv2||ee(this.git2),this.gitInv3=this.gitInv3||ee(this.git3),this.gitInv4=this.gitInv4||ee(this.git4),this.gitInv5=this.gitInv5||ee(this.git5),this.gitInv6=this.gitInv6||ee(this.git6),this.gitInv7=this.gitInv7||ee(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ee(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ee(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||nv,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||iv}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},k(qs,"Theme"),qs),bme=k(e=>{const t=new xme;return t.calculate(e),t},"getThemeVariables"),Vs,wme=(Vs=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=se(this.contrast,55),this.background="#ffffff",this.tertiaryColor=z(this.primaryColor,{h:-160}),this.primaryBorderColor=Nr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Nr(this.tertiaryColor,this.darkMode),this.primaryTextColor=ee(this.primaryColor),this.secondaryTextColor=ee(this.secondaryColor),this.tertiaryTextColor=ee(this.tertiaryColor),this.lineColor=ee(this.background),this.textColor=ee(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=this.actorBorder,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.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||se(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,n,i,a,o,l,s,c,u,f,h,d,p,g,y,m,v,b,S,C;this.secondBkg=se(this.contrast,55),this.border2=this.contrast,this.actorBorder=se(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,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 w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||ee(this["cScale"+w]);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this.darkMode?this["cScalePeer"+w]=this["cScalePeer"+w]||se(this["cScale"+w],10):this["cScalePeer"+w]=this["cScalePeer"+w]||be(this["cScale"+w],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||this.scaleLabelColor;for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||z(this.mainBkg,{l:-(5+w*5)}),this["surfacePeer"+w]=this["surfacePeer"+w]||z(this.mainBkg,{l:-(8+w*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=se(this.contrast,30),this.sectionBkgColor2=se(this.contrast,30),this.taskBorderColor=be(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=se(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=be(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=z(this.primaryColor,{h:64}),this.fillType3=z(this.secondaryColor,{h:64}),this.fillType4=z(this.primaryColor,{h:-64}),this.fillType5=z(this.secondaryColor,{h:-64}),this.fillType6=z(this.primaryColor,{h:128}),this.fillType7=z(this.secondaryColor,{h:128});for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["pie"+w]=this["cScale"+w];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||z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Nh(this.quadrant1Fill)?se(this.quadrant1Fill):be(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:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((s=this.xyChart)==null?void 0:s.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((h=this.radar)==null?void 0:h.axisColor)||this.lineColor,axisStrokeWidth:((d=this.radar)==null?void 0:d.axisStrokeWidth)||2,axisLabelFontSize:((p=this.radar)==null?void 0:p.axisLabelFontSize)||12,curveOpacity:((g=this.radar)==null?void 0:g.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((m=this.radar)==null?void 0:m.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((v=this.radar)==null?void 0:v.graticuleStrokeWidth)||1,graticuleOpacity:((b=this.radar)==null?void 0:b.graticuleOpacity)||.3,legendBoxSize:((S=this.radar)==null?void 0:S.legendBoxSize)||12,legendFontSize:((C=this.radar)==null?void 0:C.legendFontSize)||12},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=be(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||z(this.primaryColor,{h:-30}),this.git4=this.pie5||z(this.primaryColor,{h:-60}),this.git5=this.pie6||z(this.primaryColor,{h:-90}),this.git6=this.pie7||z(this.primaryColor,{h:60}),this.git7=this.pie8||z(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||ee(this.git0),this.gitInv1=this.gitInv1||ee(this.git1),this.gitInv2=this.gitInv2||ee(this.git2),this.gitInv3=this.gitInv3||ee(this.git3),this.gitInv4=this.gitInv4||ee(this.git4),this.gitInv5=this.gitInv5||ee(this.git5),this.gitInv6=this.gitInv6||ee(this.git6),this.gitInv7=this.gitInv7||ee(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||nv,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||iv}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},k(Vs,"Theme"),Vs),kme=k(e=>{const t=new wme;return t.calculate(e),t},"getThemeVariables"),va={base:{getThemeVariables:pme},dark:{getThemeVariables:mme},default:{getThemeVariables:vme},forest:{getThemeVariables:bme},neutral:{getThemeVariables:kme}},Pi={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,inheritDir:!1},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,maxLabelWidth:360,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"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!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,nodeSpacing:140,rankSpacing:80,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,showDataLabel:!1,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,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},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},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",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","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},r5={...Pi,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:va.default.getThemeVariables(),sequence:{...Pi.sequence,messageFont:k(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:k(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:k(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Pi.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Pi.c4,useWidth:void 0,personFont:k(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Pi.flowchart,inheritDir:!1},external_personFont:k(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:k(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:k(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:k(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:k(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:k(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:k(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:k(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:k(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:k(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:k(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:k(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:k(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:k(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:k(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:k(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:k(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:k(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:k(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:k(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:k(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Pi.pie,useWidth:984},xyChart:{...Pi.xyChart,useWidth:void 0},requirement:{...Pi.requirement,useWidth:void 0},packet:{...Pi.packet},radar:{...Pi.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},n5=k((e,t="")=>Object.keys(e).reduce((r,n)=>Array.isArray(e[n])?r:typeof e[n]=="object"&&e[n]!==null?[...r,t+n,...n5(e[n],"")]:[...r,t+n],[]),"keyify"),Sme=new Set(n5(r5,"")),i5=r5,Kg=k(e=>{if(Y.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Kg(t));return}for(const t of Object.keys(e)){if(Y.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!Sme.has(t)||e[t]==null){Y.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){Y.debug("sanitizing object",t),Kg(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)t.includes(n)&&(Y.debug("sanitizing css option",t),e[t]=Cme(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}Y.debug("After sanitization",e)}},"sanitizeDirective"),Cme=k(e=>{let t=0,r=0;for(const n of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";n==="{"?t++:n==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),dc=Object.freeze(i5),Qr=zt({},dc),Gg,$l=[],of=zt({},dc),av=k((e,t)=>{let r=zt({},e),n={};for(const i of t)l5(i),n=zt(n,i);if(r=zt(r,n),n.theme&&n.theme in va){const i=zt({},Gg),a=zt(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in va&&(r.themeVariables=va[r.theme].getThemeVariables(a))}return of=r,s5(of),of},"updateCurrentConfig"),_me=k(e=>(Qr=zt({},dc),Qr=zt(Qr,e),e.theme&&va[e.theme]&&(Qr.themeVariables=va[e.theme].getThemeVariables(e.themeVariables)),av(Qr,$l),Qr),"setSiteConfig"),Eme=k(e=>{Gg=zt({},e)},"saveConfigFromInitialize"),Tme=k(e=>(Qr=zt(Qr,e),av(Qr,$l),Qr),"updateSiteConfig"),a5=k(()=>zt({},Qr),"getSiteConfig"),o5=k(e=>(s5(e),zt(of,e),Sr()),"setConfig"),Sr=k(()=>zt({},of),"getConfig"),l5=k(e=>{e&&(["secure",...Qr.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(Y.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"&&l5(e[t])}))},"sanitize"),Pme=k(e=>{var t;Kg(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),$l.push(e),av(Qr,$l)},"addDirective"),Xg=k((e=Qr)=>{$l=[],av(e,$l)},"reset"),Ame={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},yM={},Ome=k(e=>{yM[e]||(Y.warn(Ame[e]),yM[e]=!0)},"issueWarning"),s5=k(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Ome("LAZY_LOAD_DEPRECATED")},"checkConfig"),OTe=k(()=>{let e={};Gg&&(e=zt(e,Gg));for(const t of $l)e=zt(e,t);return e},"getUserDefinedConfig"),jh=/<br\s*\/?>/gi,Mme=k(e=>e?f5(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Lme=(()=>{let e=!1;return()=>{e||(c5(),e=!0)}})();function c5(){const e="data-temp-href-target";hc.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),hc.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}k(c5,"setupDompurifyHooks");var u5=k(e=>(Lme(),hc.sanitize(e)),"removeScript"),vM=k((e,t)=>{var r;if(((r=t.flowchart)==null?void 0:r.htmlLabels)!==!1){const n=t.securityLevel;n==="antiscript"||n==="strict"?e=u5(e):n!=="loose"&&(e=f5(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=Nme(e))}return e},"sanitizeMore"),qn=k((e,t)=>e&&(t.dompurifyConfig?e=hc.sanitize(vM(e,t),t.dompurifyConfig).toString():e=hc.sanitize(vM(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),Ime=k((e,t)=>typeof e=="string"?qn(e,t):e.flat().map(r=>qn(r,t)),"sanitizeTextOrArray"),$me=k(e=>jh.test(e),"hasBreaks"),Dme=k(e=>e.split(jh),"splitBreaks"),Nme=k(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),f5=k(e=>e.replace(jh,"#br#"),"breakToPlaceholder"),jme=k(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),qt=k(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Rme=k(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),Bme=k(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),xM=k(function(e){const t=e.split(/(,)/),r=[];for(let n=0;n<t.length;n++){let i=t[n];if(i===","&&n>0&&n+1<t.length){const a=t[n-1],o=t[n+1];Fme(a,o)&&(i=a+","+o,n++,r.pop())}r.push(zme(i))}return r.join("")},"parseGenericTypes"),vw=k((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),Fme=k((e,t)=>{const r=vw(e,"~"),n=vw(t,"~");return r===1&&n===1},"shouldCombineSets"),zme=k(e=>{const t=vw(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const n=[...e];let i=n.indexOf("~"),a=n.lastIndexOf("~");for(;i!==-1&&a!==-1&&i!==a;)n[i]="<",n[a]=">",i=n.indexOf("~"),a=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),bM=k(()=>window.MathMLElement!==void 0,"isMathMLSupported"),xw=/\$\$(.*)\$\$/g,pc=k(e=>{var t;return(((t=e.match(xw))==null?void 0:t.length)??0)>0},"hasKatex"),MTe=k(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await t2(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const n=document.querySelector("body");n==null||n.insertAdjacentElement("beforeend",r);const i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),Wme=k(async(e,t)=>{if(!pc(e))return e;if(!(bM()||t.legacyMathML||t.forceLegacyMathML))return e.replace(xw,"MathML is unsupported in this environment.");{const{default:r}=await Ve(async()=>{const{default:i}=await import("./katex-O9d3_IXG.js");return{default:i}},[]),n=t.forceLegacyMathML||!bM()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(jh).map(i=>pc(i)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${i}</div>`:`<div>${i}</div>`).join("").replace(xw,(i,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),t2=k(async(e,t)=>qn(await Wme(e,t),t),"renderKatexSanitized"),Fc={getRows:Mme,sanitizeText:qn,sanitizeTextOrArray:Ime,hasBreaks:$me,splitBreaks:Dme,lineBreakRegex:jh,removeScript:u5,getUrl:jme,evaluate:qt,getMax:Rme,getMin:Bme},Hme=k(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),Ume=k(function(e,t,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${t}px;`)):(n.set("height",e),n.set("width",t)),n},"calculateSvgSizeAttrs"),h5=k(function(e,t,r,n){const i=Ume(t,r,n);Hme(e,i)},"configureSvgSize"),qme=k(function(e,t,r,n){const i=t.node().getBBox(),a=i.width,o=i.height;Y.info(`SVG bounds: ${a}x${o}`,i);let l=0,s=0;Y.info(`Graph bounds: ${l}x${s}`,e),l=a+r*2,s=o+r*2,Y.info(`Calculated bounds: ${l}x${s}`),h5(t,s,l,n);const c=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),gp={},Vme=k((e,t,r)=>{let n="";return e in gp&&gp[e]?n=gp[e](r):Y.warn(`No theme found for ${e}`),` & {
|
|
264
|
+
font-family: ${r.fontFamily};
|
|
265
|
+
font-size: ${r.fontSize};
|
|
266
|
+
fill: ${r.textColor}
|
|
267
|
+
}
|
|
268
|
+
@keyframes edge-animation-frame {
|
|
269
|
+
from {
|
|
270
|
+
stroke-dashoffset: 0;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
@keyframes dash {
|
|
274
|
+
to {
|
|
275
|
+
stroke-dashoffset: 0;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
& .edge-animation-slow {
|
|
279
|
+
stroke-dasharray: 9,5 !important;
|
|
280
|
+
stroke-dashoffset: 900;
|
|
281
|
+
animation: dash 50s linear infinite;
|
|
282
|
+
stroke-linecap: round;
|
|
283
|
+
}
|
|
284
|
+
& .edge-animation-fast {
|
|
285
|
+
stroke-dasharray: 9,5 !important;
|
|
286
|
+
stroke-dashoffset: 900;
|
|
287
|
+
animation: dash 20s linear infinite;
|
|
288
|
+
stroke-linecap: round;
|
|
289
|
+
}
|
|
290
|
+
/* Classes common for multiple diagrams */
|
|
291
|
+
|
|
292
|
+
& .error-icon {
|
|
293
|
+
fill: ${r.errorBkgColor};
|
|
294
|
+
}
|
|
295
|
+
& .error-text {
|
|
296
|
+
fill: ${r.errorTextColor};
|
|
297
|
+
stroke: ${r.errorTextColor};
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
& .edge-thickness-normal {
|
|
301
|
+
stroke-width: 1px;
|
|
302
|
+
}
|
|
303
|
+
& .edge-thickness-thick {
|
|
304
|
+
stroke-width: 3.5px
|
|
305
|
+
}
|
|
306
|
+
& .edge-pattern-solid {
|
|
307
|
+
stroke-dasharray: 0;
|
|
308
|
+
}
|
|
309
|
+
& .edge-thickness-invisible {
|
|
310
|
+
stroke-width: 0;
|
|
311
|
+
fill: none;
|
|
312
|
+
}
|
|
313
|
+
& .edge-pattern-dashed{
|
|
314
|
+
stroke-dasharray: 3;
|
|
315
|
+
}
|
|
316
|
+
.edge-pattern-dotted {
|
|
317
|
+
stroke-dasharray: 2;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
& .marker {
|
|
321
|
+
fill: ${r.lineColor};
|
|
322
|
+
stroke: ${r.lineColor};
|
|
323
|
+
}
|
|
324
|
+
& .marker.cross {
|
|
325
|
+
stroke: ${r.lineColor};
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
& svg {
|
|
329
|
+
font-family: ${r.fontFamily};
|
|
330
|
+
font-size: ${r.fontSize};
|
|
331
|
+
}
|
|
332
|
+
& p {
|
|
333
|
+
margin: 0
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
${n}
|
|
337
|
+
|
|
338
|
+
${t}
|
|
339
|
+
`},"getStyles"),Yme=k((e,t)=>{t!==void 0&&(gp[e]=t)},"addStylesForDiagram"),Kme=Vme,d5={};Nge(d5,{clear:()=>Gme,getAccDescription:()=>Jme,getAccTitle:()=>Zme,getDiagramTitle:()=>tye,setAccDescription:()=>Qme,setAccTitle:()=>Xme,setDiagramTitle:()=>eye});var r2="",n2="",i2="",a2=k(e=>qn(e,Sr()),"sanitizeText"),Gme=k(()=>{r2="",i2="",n2=""},"clear"),Xme=k(e=>{r2=a2(e).replace(/^\s+/g,"")},"setAccTitle"),Zme=k(()=>r2,"getAccTitle"),Qme=k(e=>{i2=a2(e).replace(/\n\s+/g,`
|
|
340
|
+
`)},"setAccDescription"),Jme=k(()=>i2,"getAccDescription"),eye=k(e=>{n2=a2(e)},"setDiagramTitle"),tye=k(()=>n2,"getDiagramTitle"),wM=Y,rye=JC,Ue=Sr,LTe=o5,ITe=dc,o2=k(e=>qn(e,Ue()),"sanitizeText"),nye=qme,iye=k(()=>d5,"getCommonDb"),Zg={},Qg=k((e,t,r)=>{var n;Zg[e]&&wM.warn(`Diagram with id ${e} already registered. Overwriting.`),Zg[e]=t,r&&t5(e,r),Yme(e,t.styles),(n=t.injectUtils)==null||n.call(t,wM,rye,Ue,o2,nye,iye(),()=>{})},"registerDiagram"),bw=k(e=>{if(e in Zg)return Zg[e];throw new aye(e)},"getDiagram"),Ys,aye=(Ys=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},k(Ys,"DiagramNotFoundError"),Ys),oye={value:()=>{}};function p5(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new mp(r)}function mp(e){this._=e}function lye(e,t){return e.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}mp.prototype=p5.prototype={constructor:mp,on:function(e,t){var r=this._,n=lye(e+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a<o;)if((i=(e=n[a]).type)&&(i=sye(r[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=n[a]).type)r[i]=kM(r[i],e.name,t);else if(t==null)for(i in r)r[i]=kM(r[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new mp(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,i=a.length;n<i;++n)a[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,a=n.length;i<a;++i)n[i].value.apply(t,r)}};function sye(e,t){for(var r=0,n=e.length,i;r<n;++r)if((i=e[r]).name===t)return i.value}function kM(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=oye,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var ww="http://www.w3.org/1999/xhtml";const SM={svg:"http://www.w3.org/2000/svg",xhtml:ww,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ov(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),SM.hasOwnProperty(t)?{space:SM[t],local:e}:e}function cye(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ww&&t.documentElement.namespaceURI===ww?t.createElement(e):t.createElementNS(r,e)}}function uye(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function g5(e){var t=ov(e);return(t.local?uye:cye)(t)}function fye(){}function l2(e){return e==null?fye:function(){return this.querySelector(e)}}function hye(e){typeof e!="function"&&(e=l2(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,l=n[i]=new Array(o),s,c,u=0;u<o;++u)(s=a[u])&&(c=e.call(s,s.__data__,u,a))&&("__data__"in s&&(c.__data__=s.__data__),l[u]=c);return new _n(n,this._parents)}function dye(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function pye(){return[]}function m5(e){return e==null?pye:function(){return this.querySelectorAll(e)}}function gye(e){return function(){return dye(e.apply(this,arguments))}}function mye(e){typeof e=="function"?e=gye(e):e=m5(e);for(var t=this._groups,r=t.length,n=[],i=[],a=0;a<r;++a)for(var o=t[a],l=o.length,s,c=0;c<l;++c)(s=o[c])&&(n.push(e.call(s,s.__data__,c,o)),i.push(s));return new _n(n,i)}function y5(e){return function(){return this.matches(e)}}function v5(e){return function(t){return t.matches(e)}}var yye=Array.prototype.find;function vye(e){return function(){return yye.call(this.children,e)}}function xye(){return this.firstElementChild}function bye(e){return this.select(e==null?xye:vye(typeof e=="function"?e:v5(e)))}var wye=Array.prototype.filter;function kye(){return Array.from(this.children)}function Sye(e){return function(){return wye.call(this.children,e)}}function Cye(e){return this.selectAll(e==null?kye:Sye(typeof e=="function"?e:v5(e)))}function _ye(e){typeof e!="function"&&(e=y5(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,l=n[i]=[],s,c=0;c<o;++c)(s=a[c])&&e.call(s,s.__data__,c,a)&&l.push(s);return new _n(n,this._parents)}function x5(e){return new Array(e.length)}function Eye(){return new _n(this._enter||this._groups.map(x5),this._parents)}function Jg(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Jg.prototype={constructor:Jg,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Tye(e){return function(){return e}}function Pye(e,t,r,n,i,a){for(var o=0,l,s=t.length,c=a.length;o<c;++o)(l=t[o])?(l.__data__=a[o],n[o]=l):r[o]=new Jg(e,a[o]);for(;o<s;++o)(l=t[o])&&(i[o]=l)}function Aye(e,t,r,n,i,a,o){var l,s,c=new Map,u=t.length,f=a.length,h=new Array(u),d;for(l=0;l<u;++l)(s=t[l])&&(h[l]=d=o.call(s,s.__data__,l,t)+"",c.has(d)?i[l]=s:c.set(d,s));for(l=0;l<f;++l)d=o.call(e,a[l],l,a)+"",(s=c.get(d))?(n[l]=s,s.__data__=a[l],c.delete(d)):r[l]=new Jg(e,a[l]);for(l=0;l<u;++l)(s=t[l])&&c.get(h[l])===s&&(i[l]=s)}function Oye(e){return e.__data__}function Mye(e,t){if(!arguments.length)return Array.from(this,Oye);var r=t?Aye:Pye,n=this._parents,i=this._groups;typeof e!="function"&&(e=Tye(e));for(var a=i.length,o=new Array(a),l=new Array(a),s=new Array(a),c=0;c<a;++c){var u=n[c],f=i[c],h=f.length,d=Lye(e.call(u,u&&u.__data__,c,n)),p=d.length,g=l[c]=new Array(p),y=o[c]=new Array(p),m=s[c]=new Array(h);r(u,f,g,y,m,d,t);for(var v=0,b=0,S,C;v<p;++v)if(S=g[v]){for(v>=b&&(b=v+1);!(C=y[b])&&++b<p;);S._next=C||null}}return o=new _n(o,n),o._enter=l,o._exit=s,o}function Lye(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Iye(){return new _n(this._exit||this._groups.map(x5),this._parents)}function $ye(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function Dye(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,o=Math.min(i,a),l=new Array(i),s=0;s<o;++s)for(var c=r[s],u=n[s],f=c.length,h=l[s]=new Array(f),d,p=0;p<f;++p)(d=c[p]||u[p])&&(h[p]=d);for(;s<i;++s)l[s]=r[s];return new _n(l,this._parents)}function Nye(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n=e[t],i=n.length-1,a=n[i],o;--i>=0;)(o=n[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function jye(e){e||(e=Rye);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var o=r[a],l=o.length,s=i[a]=new Array(l),c,u=0;u<l;++u)(c=o[u])&&(s[u]=c);s.sort(t)}return new _n(i,this._parents).order()}function Rye(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Bye(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Fye(){return Array.from(this)}function zye(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length;i<a;++i){var o=n[i];if(o)return o}return null}function Wye(){let e=0;for(const t of this)++e;return e}function Hye(){return!this.node()}function Uye(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length,l;a<o;++a)(l=i[a])&&e.call(l,l.__data__,a,i);return this}function qye(e){return function(){this.removeAttribute(e)}}function Vye(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Yye(e,t){return function(){this.setAttribute(e,t)}}function Kye(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Gye(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Xye(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Zye(e,t){var r=ov(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?Vye:qye:typeof t=="function"?r.local?Xye:Gye:r.local?Kye:Yye)(r,t))}function b5(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Qye(e){return function(){this.style.removeProperty(e)}}function Jye(e,t,r){return function(){this.style.setProperty(e,t,r)}}function eve(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function tve(e,t,r){return arguments.length>1?this.each((t==null?Qye:typeof t=="function"?eve:Jye)(e,t,r??"")):gc(this.node(),e)}function gc(e,t){return e.style.getPropertyValue(t)||b5(e).getComputedStyle(e,null).getPropertyValue(t)}function rve(e){return function(){delete this[e]}}function nve(e,t){return function(){this[e]=t}}function ive(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function ave(e,t){return arguments.length>1?this.each((t==null?rve:typeof t=="function"?ive:nve)(e,t)):this.node()[e]}function w5(e){return e.trim().split(/^|\s+/)}function s2(e){return e.classList||new k5(e)}function k5(e){this._node=e,this._names=w5(e.getAttribute("class")||"")}k5.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function S5(e,t){for(var r=s2(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function C5(e,t){for(var r=s2(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function ove(e){return function(){S5(this,e)}}function lve(e){return function(){C5(this,e)}}function sve(e,t){return function(){(t.apply(this,arguments)?S5:C5)(this,e)}}function cve(e,t){var r=w5(e+"");if(arguments.length<2){for(var n=s2(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof t=="function"?sve:t?ove:lve)(r,t))}function uve(){this.textContent=""}function fve(e){return function(){this.textContent=e}}function hve(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function dve(e){return arguments.length?this.each(e==null?uve:(typeof e=="function"?hve:fve)(e)):this.node().textContent}function pve(){this.innerHTML=""}function gve(e){return function(){this.innerHTML=e}}function mve(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function yve(e){return arguments.length?this.each(e==null?pve:(typeof e=="function"?mve:gve)(e)):this.node().innerHTML}function vve(){this.nextSibling&&this.parentNode.appendChild(this)}function xve(){return this.each(vve)}function bve(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wve(){return this.each(bve)}function kve(e){var t=typeof e=="function"?e:g5(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Sve(){return null}function Cve(e,t){var r=typeof e=="function"?e:g5(e),n=t==null?Sve:typeof t=="function"?t:l2(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function _ve(){var e=this.parentNode;e&&e.removeChild(this)}function Eve(){return this.each(_ve)}function Tve(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Pve(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ave(e){return this.select(e?Pve:Tve)}function Ove(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Mve(e){return function(t){e.call(this,t,this.__data__)}}function Lve(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function Ive(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r<i;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++n]=a;++n?t.length=n:delete this.__on}}}function $ve(e,t,r){return function(){var n=this.__on,i,a=Mve(t);if(n){for(var o=0,l=n.length;o<l;++o)if((i=n[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=t;return}}this.addEventListener(e.type,a,r),i={type:e.type,name:e.name,value:t,listener:a,options:r},n?n.push(i):this.__on=[i]}}function Dve(e,t,r){var n=Lve(e+""),i,a=n.length,o;if(arguments.length<2){var l=this.node().__on;if(l){for(var s=0,c=l.length,u;s<c;++s)for(i=0,u=l[s];i<a;++i)if((o=n[i]).type===u.type&&o.name===u.name)return u.value}return}for(l=t?$ve:Ive,i=0;i<a;++i)this.each(l(n[i],t,r));return this}function _5(e,t,r){var n=b5(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Nve(e,t){return function(){return _5(this,e,t)}}function jve(e,t){return function(){return _5(this,e,t.apply(this,arguments))}}function Rve(e,t){return this.each((typeof t=="function"?jve:Nve)(e,t))}function*Bve(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length,o;i<a;++i)(o=n[i])&&(yield o)}var E5=[null];function _n(e,t){this._groups=e,this._parents=t}function Rh(){return new _n([[document.documentElement]],E5)}function Fve(){return this}_n.prototype=Rh.prototype={constructor:_n,select:hye,selectAll:mye,selectChild:bye,selectChildren:Cye,filter:_ye,data:Mye,enter:Eye,exit:Iye,join:$ye,merge:Dye,selection:Fve,order:Nye,sort:jye,call:Bye,nodes:Fye,node:zye,size:Wye,empty:Hye,each:Uye,attr:Zye,style:tve,property:ave,classed:cve,text:dve,html:yve,raise:xve,lower:wve,append:kve,insert:Cve,remove:Eve,clone:Ave,datum:Ove,on:Dve,dispatch:Rve,[Symbol.iterator]:Bve};function De(e){return typeof e=="string"?new _n([[document.querySelector(e)]],[document.documentElement]):new _n([[e]],E5)}var mc=0,$u=0,bu=0,T5=1e3,em,Du,tm=0,Dl=0,lv=0,Uf=typeof performance=="object"&&performance.now?performance:Date,P5=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function c2(){return Dl||(P5(zve),Dl=Uf.now()+lv)}function zve(){Dl=0}function rm(){this._call=this._time=this._next=null}rm.prototype=A5.prototype={constructor:rm,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?c2():+r)+(t==null?0:+t),!this._next&&Du!==this&&(Du?Du._next=this:em=this,Du=this),this._call=e,this._time=r,kw()},stop:function(){this._call&&(this._call=null,this._time=1/0,kw())}};function A5(e,t,r){var n=new rm;return n.restart(e,t,r),n}function Wve(){c2(),++mc;for(var e=em,t;e;)(t=Dl-e._time)>=0&&e._call.call(void 0,t),e=e._next;--mc}function CM(){Dl=(tm=Uf.now())+lv,mc=$u=0;try{Wve()}finally{mc=0,Uve(),Dl=0}}function Hve(){var e=Uf.now(),t=e-tm;t>T5&&(lv-=t,tm=e)}function Uve(){for(var e,t=em,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:em=r);Du=e,kw(n)}function kw(e){if(!mc){$u&&($u=clearTimeout($u));var t=e-Dl;t>24?(e<1/0&&($u=setTimeout(CM,e-Uf.now()-lv)),bu&&(bu=clearInterval(bu))):(bu||(tm=Uf.now(),bu=setInterval(Hve,T5)),mc=1,P5(CM))}}function _M(e,t,r){var n=new rm;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var qve=p5("start","end","cancel","interrupt"),Vve=[],O5=0,EM=1,Sw=2,yp=3,TM=4,Cw=5,vp=6;function sv(e,t,r,n,i,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;Yve(e,r,{name:t,index:n,group:i,on:qve,tween:Vve,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:O5})}function u2(e,t){var r=xi(e,t);if(r.state>O5)throw new Error("too late; already scheduled");return r}function Ji(e,t){var r=xi(e,t);if(r.state>yp)throw new Error("too late; already running");return r}function xi(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Yve(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=A5(a,0,r.time);function a(c){r.state=EM,r.timer.restart(o,r.delay,r.time),r.delay<=c&&o(c-r.delay)}function o(c){var u,f,h,d;if(r.state!==EM)return s();for(u in n)if(d=n[u],d.name===r.name){if(d.state===yp)return _M(o);d.state===TM?(d.state=vp,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete n[u]):+u<t&&(d.state=vp,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete n[u])}if(_M(function(){r.state===yp&&(r.state=TM,r.timer.restart(l,r.delay,r.time),l(c))}),r.state=Sw,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Sw){for(r.state=yp,i=new Array(h=r.tween.length),u=0,f=-1;u<h;++u)(d=r.tween[u].value.call(e,e.__data__,r.index,r.group))&&(i[++f]=d);i.length=f+1}}function l(c){for(var u=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(s),r.state=Cw,1),f=-1,h=i.length;++f<h;)i[f].call(e,u);r.state===Cw&&(r.on.call("end",e,e.__data__,r.index,r.group),s())}function s(){r.state=vp,r.timer.stop(),delete n[t];for(var c in n)return;delete e.__transition}}function Kve(e,t){var r=e.__transition,n,i,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((n=r[o]).name!==t){a=!1;continue}i=n.state>Sw&&n.state<Cw,n.state=vp,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]}a&&delete e.__transition}}function Gve(e){return this.each(function(){Kve(this,e)})}function Xve(e,t){var r,n;return function(){var i=Ji(this,e),a=i.tween;if(a!==r){n=r=a;for(var o=0,l=n.length;o<l;++o)if(n[o].name===t){n=n.slice(),n.splice(o,1);break}}i.tween=n}}function Zve(e,t,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=Ji(this,e),o=a.tween;if(o!==n){i=(n=o).slice();for(var l={name:t,value:r},s=0,c=i.length;s<c;++s)if(i[s].name===t){i[s]=l;break}s===c&&i.push(l)}a.tween=i}}function Qve(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=xi(this.node(),r).tween,i=0,a=n.length,o;i<a;++i)if((o=n[i]).name===e)return o.value;return null}return this.each((t==null?Xve:Zve)(r,e,t))}function f2(e,t,r){var n=e._id;return e.each(function(){var i=Ji(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return xi(i,n).value[t]}}function M5(e,t){var r;return(typeof t=="number"?ni:t instanceof Ol?Eg:(r=Ol(t))?(t=r,Eg):AR)(e,t)}function Jve(e){return function(){this.removeAttribute(e)}}function e0e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function t0e(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===n?a:a=t(n=o,r)}}function r0e(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===n?a:a=t(n=o,r)}}function n0e(e,t,r){var n,i,a;return function(){var o,l=r(this),s;return l==null?void this.removeAttribute(e):(o=this.getAttribute(e),s=l+"",o===s?null:o===n&&s===i?a:(i=s,a=t(n=o,l)))}}function i0e(e,t,r){var n,i,a;return function(){var o,l=r(this),s;return l==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),s=l+"",o===s?null:o===n&&s===i?a:(i=s,a=t(n=o,l)))}}function a0e(e,t){var r=ov(e),n=r==="transform"?pre:M5;return this.attrTween(e,typeof t=="function"?(r.local?i0e:n0e)(r,n,f2(this,"attr."+e,t)):t==null?(r.local?e0e:Jve)(r):(r.local?r0e:t0e)(r,n,t))}function o0e(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function l0e(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function s0e(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&l0e(e,a)),r}return i._value=t,i}function c0e(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&o0e(e,a)),r}return i._value=t,i}function u0e(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=ov(e);return this.tween(r,(n.local?s0e:c0e)(n,t))}function f0e(e,t){return function(){u2(this,e).delay=+t.apply(this,arguments)}}function h0e(e,t){return t=+t,function(){u2(this,e).delay=t}}function d0e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?f0e:h0e)(t,e)):xi(this.node(),t).delay}function p0e(e,t){return function(){Ji(this,e).duration=+t.apply(this,arguments)}}function g0e(e,t){return t=+t,function(){Ji(this,e).duration=t}}function m0e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?p0e:g0e)(t,e)):xi(this.node(),t).duration}function y0e(e,t){if(typeof t!="function")throw new Error;return function(){Ji(this,e).ease=t}}function v0e(e){var t=this._id;return arguments.length?this.each(y0e(t,e)):xi(this.node(),t).ease}function x0e(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Ji(this,e).ease=r}}function b0e(e){if(typeof e!="function")throw new Error;return this.each(x0e(this._id,e))}function w0e(e){typeof e!="function"&&(e=y5(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,l=n[i]=[],s,c=0;c<o;++c)(s=a[c])&&e.call(s,s.__data__,c,a)&&l.push(s);return new La(n,this._parents,this._name,this._id)}function k0e(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,a=Math.min(n,i),o=new Array(n),l=0;l<a;++l)for(var s=t[l],c=r[l],u=s.length,f=o[l]=new Array(u),h,d=0;d<u;++d)(h=s[d]||c[d])&&(f[d]=h);for(;l<n;++l)o[l]=t[l];return new La(o,this._parents,this._name,this._id)}function S0e(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function C0e(e,t,r){var n,i,a=S0e(t)?u2:Ji;return function(){var o=a(this,e),l=o.on;l!==n&&(i=(n=l).copy()).on(t,r),o.on=i}}function _0e(e,t){var r=this._id;return arguments.length<2?xi(this.node(),r).on.on(e):this.each(C0e(r,e,t))}function E0e(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function T0e(){return this.on("end.remove",E0e(this._id))}function P0e(e){var t=this._name,r=this._id;typeof e!="function"&&(e=l2(e));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o<i;++o)for(var l=n[o],s=l.length,c=a[o]=new Array(s),u,f,h=0;h<s;++h)(u=l[h])&&(f=e.call(u,u.__data__,h,l))&&("__data__"in u&&(f.__data__=u.__data__),c[h]=f,sv(c[h],t,r,h,c,xi(u,r)));return new La(a,this._parents,t,r)}function A0e(e){var t=this._name,r=this._id;typeof e!="function"&&(e=m5(e));for(var n=this._groups,i=n.length,a=[],o=[],l=0;l<i;++l)for(var s=n[l],c=s.length,u,f=0;f<c;++f)if(u=s[f]){for(var h=e.call(u,u.__data__,f,s),d,p=xi(u,r),g=0,y=h.length;g<y;++g)(d=h[g])&&sv(d,t,r,g,h,p);a.push(h),o.push(u)}return new La(a,o,t,r)}var O0e=Rh.prototype.constructor;function M0e(){return new O0e(this._groups,this._parents)}function L0e(e,t){var r,n,i;return function(){var a=gc(this,e),o=(this.style.removeProperty(e),gc(this,e));return a===o?null:a===r&&o===n?i:i=t(r=a,n=o)}}function L5(e){return function(){this.style.removeProperty(e)}}function I0e(e,t,r){var n,i=r+"",a;return function(){var o=gc(this,e);return o===i?null:o===n?a:a=t(n=o,r)}}function $0e(e,t,r){var n,i,a;return function(){var o=gc(this,e),l=r(this),s=l+"";return l==null&&(s=l=(this.style.removeProperty(e),gc(this,e))),o===s?null:o===n&&s===i?a:(i=s,a=t(n=o,l))}}function D0e(e,t){var r,n,i,a="style."+t,o="end."+a,l;return function(){var s=Ji(this,e),c=s.on,u=s.value[a]==null?l||(l=L5(t)):void 0;(c!==r||i!==u)&&(n=(r=c).copy()).on(o,i=u),s.on=n}}function N0e(e,t,r){var n=(e+="")=="transform"?dre:M5;return t==null?this.styleTween(e,L0e(e,n)).on("end.style."+e,L5(e)):typeof t=="function"?this.styleTween(e,$0e(e,n,f2(this,"style."+e,t))).each(D0e(this._id,e)):this.styleTween(e,I0e(e,n,t),r).on("end.style."+e,null)}function j0e(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function R0e(e,t,r){var n,i;function a(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&j0e(e,o,r)),n}return a._value=t,a}function B0e(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,R0e(e,t,r??""))}function F0e(e){return function(){this.textContent=e}}function z0e(e){return function(){var t=e(this);this.textContent=t??""}}function W0e(e){return this.tween("text",typeof e=="function"?z0e(f2(this,"text",e)):F0e(e==null?"":e+""))}function H0e(e){return function(t){this.textContent=e.call(this,t)}}function U0e(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&H0e(i)),t}return n._value=e,n}function q0e(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,U0e(e))}function V0e(){for(var e=this._name,t=this._id,r=I5(),n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],l=o.length,s,c=0;c<l;++c)if(s=o[c]){var u=xi(s,t);sv(s,e,r,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new La(n,this._parents,e,r)}function Y0e(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(a,o){var l={value:o},s={value:function(){--i===0&&a()}};r.each(function(){var c=Ji(this,n),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(s)),c.on=t}),i===0&&a()})}var K0e=0;function La(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function I5(){return++K0e}var ia=Rh.prototype;La.prototype={constructor:La,select:P0e,selectAll:A0e,selectChild:ia.selectChild,selectChildren:ia.selectChildren,filter:w0e,merge:k0e,selection:M0e,transition:V0e,call:ia.call,nodes:ia.nodes,node:ia.node,size:ia.size,empty:ia.empty,each:ia.each,on:_0e,attr:a0e,attrTween:u0e,style:N0e,styleTween:B0e,text:W0e,textTween:q0e,remove:T0e,tween:Qve,delay:d0e,duration:m0e,ease:v0e,easeVarying:b0e,end:Y0e,[Symbol.iterator]:ia[Symbol.iterator]};function G0e(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var X0e={time:null,delay:0,duration:250,ease:G0e};function Z0e(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function Q0e(e){var t,r;e instanceof La?(t=e._id,e=e._name):(t=I5(),(r=X0e).time=c2(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],l=o.length,s,c=0;c<l;++c)(s=o[c])&&sv(s,e,t,c,o,r||Z0e(s,t));return new La(n,this._parents,e,t)}Rh.prototype.interrupt=Gve;Rh.prototype.transition=Q0e;function Nu(e,t,r){this.k=e,this.x=t,this.y=r}Nu.prototype={constructor:Nu,scale:function(e){return e===1?this:new Nu(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Nu(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Nu.prototype;var J0e=k(e=>{var i;const{securityLevel:t}=Ue();let r=De("body");if(t==="sandbox"){const o=((i=De(`#i${e}`).node())==null?void 0:i.contentDocument)??document;r=De(o.body)}return r.select(`#${e}`)},"selectSvgElement");function h2(e){return typeof e>"u"||e===null}k(h2,"isNothing");function $5(e){return typeof e=="object"&&e!==null}k($5,"isObject");function D5(e){return Array.isArray(e)?e:h2(e)?[]:[e]}k(D5,"toArray");function N5(e,t){var r,n,i,a;if(t)for(a=Object.keys(t),r=0,n=a.length;r<n;r+=1)i=a[r],e[i]=t[i];return e}k(N5,"extend");function j5(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}k(j5,"repeat");function R5(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}k(R5,"isNegativeZero");var exe=h2,txe=$5,rxe=D5,nxe=j5,ixe=R5,axe=N5,Wt={isNothing:exe,isObject:txe,toArray:rxe,repeat:nxe,isNegativeZero:ixe,extend:axe};function d2(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
341
|
+
|
|
342
|
+
`+e.mark.snippet),n+" "+r):n}k(d2,"formatError");function yc(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=d2(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}k(yc,"YAMLException$1");yc.prototype=Object.create(Error.prototype);yc.prototype.constructor=yc;yc.prototype.toString=k(function(t){return this.name+": "+d2(this,t)},"toString");var Jr=yc;function xp(e,t,r,n,i){var a="",o="",l=Math.floor(i/2)-1;return n-t>l&&(a=" ... ",t=n-l+a.length),r-n>l&&(o=" ...",r=n+l-o.length),{str:a+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+a.length}}k(xp,"getLine");function bp(e,t){return Wt.repeat(" ",t-e.length)+e}k(bp,"padStart");function B5(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 r=/\r?\n|\r|\0/g,n=[0],i=[],a,o=-1;a=r.exec(e.buffer);)i.push(a.index),n.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var l="",s,c,u=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+u+3);for(s=1;s<=t.linesBefore&&!(o-s<0);s++)c=xp(e.buffer,n[o-s],i[o-s],e.position-(n[o]-n[o-s]),f),l=Wt.repeat(" ",t.indent)+bp((e.line-s+1).toString(),u)+" | "+c.str+`
|
|
343
|
+
`+l;for(c=xp(e.buffer,n[o],i[o],e.position,f),l+=Wt.repeat(" ",t.indent)+bp((e.line+1).toString(),u)+" | "+c.str+`
|
|
344
|
+
`,l+=Wt.repeat("-",t.indent+u+3+c.pos)+`^
|
|
345
|
+
`,s=1;s<=t.linesAfter&&!(o+s>=i.length);s++)c=xp(e.buffer,n[o+s],i[o+s],e.position-(n[o]-n[o+s]),f),l+=Wt.repeat(" ",t.indent)+bp((e.line+s+1).toString(),u)+" | "+c.str+`
|
|
346
|
+
`;return l.replace(/\n$/,"")}k(B5,"makeSnippet");var oxe=B5,lxe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],sxe=["scalar","sequence","mapping"];function F5(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}k(F5,"compileStyleAliases");function z5(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(lxe.indexOf(r)===-1)throw new Jr('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=F5(t.styleAliases||null),sxe.indexOf(this.kind)===-1)throw new Jr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}k(z5,"Type$1");var Cr=z5;function _w(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(a,o){a.tag===n.tag&&a.kind===n.kind&&a.multi===n.multi&&(i=o)}),r[i]=n}),r}k(_w,"compileList");function W5(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(k(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}k(W5,"compileMap");function nm(e){return this.extend(e)}k(nm,"Schema$1");nm.prototype.extend=k(function(t){var r=[],n=[];if(t instanceof Cr)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Jr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof Cr))throw new Jr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Jr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new Jr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(a){if(!(a instanceof Cr))throw new Jr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(nm.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=_w(i,"implicit"),i.compiledExplicit=_w(i,"explicit"),i.compiledTypeMap=W5(i.compiledImplicit,i.compiledExplicit),i},"extend");var cxe=nm,uxe=new Cr("tag:yaml.org,2002:str",{kind:"scalar",construct:k(function(e){return e!==null?e:""},"construct")}),fxe=new Cr("tag:yaml.org,2002:seq",{kind:"sequence",construct:k(function(e){return e!==null?e:[]},"construct")}),hxe=new Cr("tag:yaml.org,2002:map",{kind:"mapping",construct:k(function(e){return e!==null?e:{}},"construct")}),dxe=new cxe({explicit:[uxe,fxe,hxe]});function H5(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}k(H5,"resolveYamlNull");function U5(){return null}k(U5,"constructYamlNull");function q5(e){return e===null}k(q5,"isNull");var pxe=new Cr("tag:yaml.org,2002:null",{kind:"scalar",resolve:H5,construct:U5,predicate:q5,represent:{canonical:k(function(){return"~"},"canonical"),lowercase:k(function(){return"null"},"lowercase"),uppercase:k(function(){return"NULL"},"uppercase"),camelcase:k(function(){return"Null"},"camelcase"),empty:k(function(){return""},"empty")},defaultStyle:"lowercase"});function V5(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}k(V5,"resolveYamlBoolean");function Y5(e){return e==="true"||e==="True"||e==="TRUE"}k(Y5,"constructYamlBoolean");function K5(e){return Object.prototype.toString.call(e)==="[object Boolean]"}k(K5,"isBoolean");var gxe=new Cr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:V5,construct:Y5,predicate:K5,represent:{lowercase:k(function(e){return e?"true":"false"},"lowercase"),uppercase:k(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:k(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function G5(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}k(G5,"isHexCode");function X5(e){return 48<=e&&e<=55}k(X5,"isOctCode");function Z5(e){return 48<=e&&e<=57}k(Z5,"isDecCode");function Q5(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!G5(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!X5(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!Z5(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}k(Q5,"resolveYamlInteger");function J5(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}k(J5,"constructYamlInteger");function e4(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Wt.isNegativeZero(e)}k(e4,"isInteger");var mxe=new Cr("tag:yaml.org,2002:int",{kind:"scalar",resolve:Q5,construct:J5,predicate:e4,represent:{binary:k(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:k(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:k(function(e){return e.toString(10)},"decimal"),hexadecimal:k(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),yxe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function t4(e){return!(e===null||!yxe.test(e)||e[e.length-1]==="_")}k(t4,"resolveYamlFloat");function r4(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}k(r4,"constructYamlFloat");var vxe=/^[-+]?[0-9]+e/;function n4(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Wt.isNegativeZero(e))return"-0.0";return r=e.toString(10),vxe.test(r)?r.replace("e",".e"):r}k(n4,"representYamlFloat");function i4(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Wt.isNegativeZero(e))}k(i4,"isFloat");var xxe=new Cr("tag:yaml.org,2002:float",{kind:"scalar",resolve:t4,construct:r4,predicate:i4,represent:n4,defaultStyle:"lowercase"}),a4=dxe.extend({implicit:[pxe,gxe,mxe,xxe]}),bxe=a4,o4=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),l4=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function s4(e){return e===null?!1:o4.exec(e)!==null||l4.exec(e)!==null}k(s4,"resolveYamlTimestamp");function c4(e){var t,r,n,i,a,o,l,s=0,c=null,u,f,h;if(t=o4.exec(e),t===null&&(t=l4.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(a=+t[4],o=+t[5],l=+t[6],t[7]){for(s=t[7].slice(0,3);s.length<3;)s+="0";s=+s}return t[9]&&(u=+t[10],f=+(t[11]||0),c=(u*60+f)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,i,a,o,l,s)),c&&h.setTime(h.getTime()-c),h}k(c4,"constructYamlTimestamp");function u4(e){return e.toISOString()}k(u4,"representYamlTimestamp");var wxe=new Cr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:s4,construct:c4,instanceOf:Date,represent:u4});function f4(e){return e==="<<"||e===null}k(f4,"resolveYamlMerge");var kxe=new Cr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:f4}),p2=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
347
|
+
\r`;function h4(e){if(e===null)return!1;var t,r,n=0,i=e.length,a=p2;for(r=0;r<i;r++)if(t=a.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}k(h4,"resolveYamlBinary");function d4(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,a=p2,o=0,l=[];for(t=0;t<i;t++)t%4===0&&t&&(l.push(o>>16&255),l.push(o>>8&255),l.push(o&255)),o=o<<6|a.indexOf(n.charAt(t));return r=i%4*6,r===0?(l.push(o>>16&255),l.push(o>>8&255),l.push(o&255)):r===18?(l.push(o>>10&255),l.push(o>>2&255)):r===12&&l.push(o>>4&255),new Uint8Array(l)}k(d4,"constructYamlBinary");function p4(e){var t="",r=0,n,i,a=e.length,o=p2;for(n=0;n<a;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=a%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}k(p4,"representYamlBinary");function g4(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}k(g4,"isBinary");var Sxe=new Cr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:h4,construct:d4,predicate:g4,represent:p4}),Cxe=Object.prototype.hasOwnProperty,_xe=Object.prototype.toString;function m4(e){if(e===null)return!0;var t=[],r,n,i,a,o,l=e;for(r=0,n=l.length;r<n;r+=1){if(i=l[r],o=!1,_xe.call(i)!=="[object Object]")return!1;for(a in i)if(Cxe.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}k(m4,"resolveYamlOmap");function y4(e){return e!==null?e:[]}k(y4,"constructYamlOmap");var Exe=new Cr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:m4,construct:y4}),Txe=Object.prototype.toString;function v4(e){if(e===null)return!0;var t,r,n,i,a,o=e;for(a=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],Txe.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;a[t]=[i[0],n[i[0]]]}return!0}k(v4,"resolveYamlPairs");function x4(e){if(e===null)return[];var t,r,n,i,a,o=e;for(a=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),a[t]=[i[0],n[i[0]]];return a}k(x4,"constructYamlPairs");var Pxe=new Cr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:v4,construct:x4}),Axe=Object.prototype.hasOwnProperty;function b4(e){if(e===null)return!0;var t,r=e;for(t in r)if(Axe.call(r,t)&&r[t]!==null)return!1;return!0}k(b4,"resolveYamlSet");function w4(e){return e!==null?e:{}}k(w4,"constructYamlSet");var Oxe=new Cr("tag:yaml.org,2002:set",{kind:"mapping",resolve:b4,construct:w4}),k4=bxe.extend({implicit:[wxe,kxe],explicit:[Sxe,Exe,Pxe,Oxe]}),ko=Object.prototype.hasOwnProperty,im=1,S4=2,C4=3,am=4,K0=1,Mxe=2,PM=3,Lxe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ixe=/[\x85\u2028\u2029]/,$xe=/[,\[\]\{\}]/,_4=/^(?:!|!!|![a-z\-]+!)$/i,E4=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ew(e){return Object.prototype.toString.call(e)}k(Ew,"_class");function di(e){return e===10||e===13}k(di,"is_EOL");function po(e){return e===9||e===32}k(po,"is_WHITE_SPACE");function jr(e){return e===9||e===32||e===10||e===13}k(jr,"is_WS_OR_EOL");function ll(e){return e===44||e===91||e===93||e===123||e===125}k(ll,"is_FLOW_INDICATOR");function T4(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}k(T4,"fromHexCode");function P4(e){return e===120?2:e===117?4:e===85?8:0}k(P4,"escapedHexLen");function A4(e){return 48<=e&&e<=57?e-48:-1}k(A4,"fromDecimalCode");function Tw(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
348
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}k(Tw,"simpleEscapeSequence");function O4(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}k(O4,"charFromCodepoint");var M4=new Array(256),L4=new Array(256);for(Ho=0;Ho<256;Ho++)M4[Ho]=Tw(Ho)?1:0,L4[Ho]=Tw(Ho);var Ho;function I4(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||k4,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}k(I4,"State$1");function g2(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=oxe(r),new Jr(t,r)}k(g2,"generateError");function ve(e,t){throw g2(e,t)}k(ve,"throwError");function qf(e,t){e.onWarning&&e.onWarning.call(null,g2(e,t))}k(qf,"throwWarning");var AM={YAML:k(function(t,r,n){var i,a,o;t.version!==null&&ve(t,"duplication of %YAML directive"),n.length!==1&&ve(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ve(t,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),o=parseInt(i[2],10),a!==1&&ve(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&qf(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:k(function(t,r,n){var i,a;n.length!==2&&ve(t,"TAG directive accepts exactly two arguments"),i=n[0],a=n[1],_4.test(i)||ve(t,"ill-formed tag handle (first argument) of the TAG directive"),ko.call(t.tagMap,i)&&ve(t,'there is a previously declared suffix for "'+i+'" tag handle'),E4.test(a)||ve(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ve(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a},"handleTagDirective")};function xa(e,t,r,n){var i,a,o,l;if(t<r){if(l=e.input.slice(t,r),n)for(i=0,a=l.length;i<a;i+=1)o=l.charCodeAt(i),o===9||32<=o&&o<=1114111||ve(e,"expected valid JSON character");else Lxe.test(l)&&ve(e,"the stream contains non-printable characters");e.result+=l}}k(xa,"captureSegment");function Pw(e,t,r,n){var i,a,o,l;for(Wt.isObject(r)||ve(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,l=i.length;o<l;o+=1)a=i[o],ko.call(t,a)||(t[a]=r[a],n[a]=!0)}k(Pw,"mergeMappings");function sl(e,t,r,n,i,a,o,l,s){var c,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,u=i.length;c<u;c+=1)Array.isArray(i[c])&&ve(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Ew(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&Ew(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,u=a.length;c<u;c+=1)Pw(e,t,a[c],r);else Pw(e,t,a,r);else!e.json&&!ko.call(r,i)&&ko.call(t,i)&&(e.line=o||e.line,e.lineStart=l||e.lineStart,e.position=s||e.position,ve(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[i]=a,delete r[i];return t}k(sl,"storeMappingPair");function cv(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ve(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}k(cv,"readLineBreak");function Tt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;po(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(di(i))for(cv(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&qf(e,"deficient indentation"),n}k(Tt,"skipSeparationSpace");function Bh(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||jr(r)))}k(Bh,"testDocumentSeparator");function uv(e,t){t===1?e.result+=" ":t>1&&(e.result+=Wt.repeat(`
|
|
349
|
+
`,t-1))}k(uv,"writeFoldedLines");function $4(e,t,r){var n,i,a,o,l,s,c,u,f=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),jr(d)||ll(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),jr(i)||r&&ll(i)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,l=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),jr(i)||r&&ll(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),jr(n))break}else{if(e.position===e.lineStart&&Bh(e)||r&&ll(d))break;if(di(d))if(s=e.line,c=e.lineStart,u=e.lineIndent,Tt(e,!1,-1),e.lineIndent>=t){l=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=s,e.lineStart=c,e.lineIndent=u;break}}l&&(xa(e,a,o,!1),uv(e,e.line-s),a=o=e.position,l=!1),po(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return xa(e,a,o,!1),e.result?!0:(e.kind=f,e.result=h,!1)}k($4,"readPlainScalar");function D4(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(xa(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else di(r)?(xa(e,n,i,!0),uv(e,Tt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Bh(e)?ve(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ve(e,"unexpected end of the stream within a single quoted scalar")}k(D4,"readSingleQuotedScalar");function N4(e,t){var r,n,i,a,o,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return xa(e,r,e.position,!0),e.position++,!0;if(l===92){if(xa(e,r,e.position,!0),l=e.input.charCodeAt(++e.position),di(l))Tt(e,!1,t);else if(l<256&&M4[l])e.result+=L4[l],e.position++;else if((o=P4(l))>0){for(i=o,a=0;i>0;i--)l=e.input.charCodeAt(++e.position),(o=T4(l))>=0?a=(a<<4)+o:ve(e,"expected hexadecimal character");e.result+=O4(a),e.position++}else ve(e,"unknown escape sequence");r=n=e.position}else di(l)?(xa(e,r,n,!0),uv(e,Tt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Bh(e)?ve(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ve(e,"unexpected end of the stream within a double quoted scalar")}k(N4,"readDoubleQuotedScalar");function j4(e,t){var r=!0,n,i,a,o=e.tag,l,s=e.anchor,c,u,f,h,d,p=Object.create(null),g,y,m,v;if(v=e.input.charCodeAt(e.position),v===91)u=93,d=!1,l=[];else if(v===123)u=125,d=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),v=e.input.charCodeAt(++e.position);v!==0;){if(Tt(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=s,e.kind=d?"mapping":"sequence",e.result=l,!0;r?v===44&&ve(e,"expected the node content, but found ','"):ve(e,"missed comma between flow collection entries"),y=g=m=null,f=h=!1,v===63&&(c=e.input.charCodeAt(e.position+1),jr(c)&&(f=h=!0,e.position++,Tt(e,!0,t))),n=e.line,i=e.lineStart,a=e.position,Nl(e,t,im,!1,!0),y=e.tag,g=e.result,Tt(e,!0,t),v=e.input.charCodeAt(e.position),(h||e.line===n)&&v===58&&(f=!0,v=e.input.charCodeAt(++e.position),Tt(e,!0,t),Nl(e,t,im,!1,!0),m=e.result),d?sl(e,l,p,y,g,m,n,i,a):f?l.push(sl(e,null,p,y,g,m,n,i,a)):l.push(g),Tt(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}ve(e,"unexpected end of the stream within a flow collection")}k(j4,"readFlowCollection");function R4(e,t){var r,n,i=K0,a=!1,o=!1,l=t,s=0,c=!1,u,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)K0===i?i=f===43?PM:Mxe:ve(e,"repeat of a chomping mode identifier");else if((u=A4(f))>=0)u===0?ve(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ve(e,"repeat of an indentation width identifier"):(l=t+u-1,o=!0);else break;if(po(f)){do f=e.input.charCodeAt(++e.position);while(po(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!di(f)&&f!==0)}for(;f!==0;){for(cv(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<l)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>l&&(l=e.lineIndent),di(f)){s++;continue}if(e.lineIndent<l){i===PM?e.result+=Wt.repeat(`
|
|
350
|
+
`,a?1+s:s):i===K0&&a&&(e.result+=`
|
|
351
|
+
`);break}for(n?po(f)?(c=!0,e.result+=Wt.repeat(`
|
|
352
|
+
`,a?1+s:s)):c?(c=!1,e.result+=Wt.repeat(`
|
|
353
|
+
`,s+1)):s===0?a&&(e.result+=" "):e.result+=Wt.repeat(`
|
|
354
|
+
`,s):e.result+=Wt.repeat(`
|
|
355
|
+
`,a?1+s:s),a=!0,o=!0,s=0,r=e.position;!di(f)&&f!==0;)f=e.input.charCodeAt(++e.position);xa(e,r,e.position,!1)}return!0}k(R4,"readBlockScalar");function Aw(e,t){var r,n=e.tag,i=e.anchor,a=[],o,l=!1,s;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),s=e.input.charCodeAt(e.position);s!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ve(e,"tab characters must not be used in indentation")),!(s!==45||(o=e.input.charCodeAt(e.position+1),!jr(o))));){if(l=!0,e.position++,Tt(e,!0,-1)&&e.lineIndent<=t){a.push(null),s=e.input.charCodeAt(e.position);continue}if(r=e.line,Nl(e,t,C4,!1,!0),a.push(e.result),Tt(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&s!==0)ve(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return l?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=a,!0):!1}k(Aw,"readBlockSequence");function B4(e,t,r){var n,i,a,o,l,s,c=e.tag,u=e.anchor,f={},h=Object.create(null),d=null,p=null,g=null,y=!1,m=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),v=e.input.charCodeAt(e.position);v!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ve(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),a=e.line,(v===63||v===58)&&jr(n))v===63?(y&&(sl(e,f,h,d,p,null,o,l,s),d=p=g=null),m=!0,y=!0,i=!0):y?(y=!1,i=!0):ve(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=n;else{if(o=e.line,l=e.lineStart,s=e.position,!Nl(e,r,S4,!1,!0))break;if(e.line===a){for(v=e.input.charCodeAt(e.position);po(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),jr(v)||ve(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(sl(e,f,h,d,p,null,o,l,s),d=p=g=null),m=!0,y=!1,i=!1,d=e.tag,p=e.result;else if(m)ve(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(m)ve(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(y&&(o=e.line,l=e.lineStart,s=e.position),Nl(e,t,am,!0,i)&&(y?p=e.result:g=e.result),y||(sl(e,f,h,d,p,g,o,l,s),d=p=g=null),Tt(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)ve(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&sl(e,f,h,d,p,null,o,l,s),m&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=f),m}k(B4,"readBlockMapping");function F4(e){var t,r=!1,n=!1,i,a,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ve(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ve(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!jr(o);)o===33&&(n?ve(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),_4.test(i)||ve(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),$xe.test(a)&&ve(e,"tag suffix cannot contain flow indicator characters")}a&&!E4.test(a)&&ve(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{ve(e,"tag name is malformed: "+a)}return r?e.tag=a:ko.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i==="!"?e.tag="!"+a:i==="!!"?e.tag="tag:yaml.org,2002:"+a:ve(e,'undeclared tag handle "'+i+'"'),!0}k(F4,"readTagProperty");function z4(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ve(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!jr(r)&&!ll(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ve(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}k(z4,"readAnchorProperty");function W4(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!jr(n)&&!ll(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ve(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ko.call(e.anchorMap,r)||ve(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Tt(e,!0,-1),!0}k(W4,"readAlias");function Nl(e,t,r,n,i){var a,o,l,s=1,c=!1,u=!1,f,h,d,p,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=l=am===r||C4===r,n&&Tt(e,!0,-1)&&(c=!0,e.lineIndent>t?s=1:e.lineIndent===t?s=0:e.lineIndent<t&&(s=-1)),s===1)for(;F4(e)||z4(e);)Tt(e,!0,-1)?(c=!0,l=a,e.lineIndent>t?s=1:e.lineIndent===t?s=0:e.lineIndent<t&&(s=-1)):l=!1;if(l&&(l=c||i),(s===1||am===r)&&(im===r||S4===r?g=t:g=t+1,y=e.position-e.lineStart,s===1?l&&(Aw(e,y)||B4(e,y,g))||j4(e,g)?u=!0:(o&&R4(e,g)||D4(e,g)||N4(e,g)?u=!0:W4(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&ve(e,"alias node should not have any properties")):$4(e,g,im===r)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):s===0&&(u=l&&Aw(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ve(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,h=e.implicitTypes.length;f<h;f+=1)if(p=e.implicitTypes[f],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ko.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],f=0,h=d.length;f<h;f+=1)if(e.tag.slice(0,d[f].tag.length)===d[f].tag){p=d[f];break}p||ve(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&ve(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ve(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}k(Nl,"composeNode");function H4(e){var t=e.position,r,n,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Tt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!jr(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ve(e,"directive name must not be less than one character in length");o!==0;){for(;po(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!di(o));break}if(di(o))break;for(r=e.position;o!==0&&!jr(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&cv(e),ko.call(AM,n)?AM[n](e,n,i):qf(e,'unknown document directive "'+n+'"')}if(Tt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Tt(e,!0,-1)):a&&ve(e,"directives end mark is expected"),Nl(e,e.lineIndent-1,am,!1,!0),Tt(e,!0,-1),e.checkLineBreaks&&Ixe.test(e.input.slice(t,e.position))&&qf(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Bh(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Tt(e,!0,-1));return}if(e.position<e.length-1)ve(e,"end of the stream or a document separator is expected");else return}k(H4,"readDocument");function m2(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
356
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new I4(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ve(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)H4(r);return r.documents}k(m2,"loadDocuments");function Dxe(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=m2(e,r);if(typeof t!="function")return n;for(var i=0,a=n.length;i<a;i+=1)t(n[i])}k(Dxe,"loadAll$1");function U4(e,t){var r=m2(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Jr("expected a single document in the stream, but found more")}}k(U4,"load$1");var Nxe=U4,jxe={load:Nxe},q4=Object.prototype.toString,V4=Object.prototype.hasOwnProperty,y2=65279,Rxe=9,Vf=10,Bxe=13,Fxe=32,zxe=33,Wxe=34,Ow=35,Hxe=37,Uxe=38,qxe=39,Vxe=42,Y4=44,Yxe=45,om=58,Kxe=61,Gxe=62,Xxe=63,Zxe=64,K4=91,G4=93,Qxe=96,X4=123,Jxe=124,Z4=125,Ar={};Ar[0]="\\0";Ar[7]="\\a";Ar[8]="\\b";Ar[9]="\\t";Ar[10]="\\n";Ar[11]="\\v";Ar[12]="\\f";Ar[13]="\\r";Ar[27]="\\e";Ar[34]='\\"';Ar[92]="\\\\";Ar[133]="\\N";Ar[160]="\\_";Ar[8232]="\\L";Ar[8233]="\\P";var ebe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],tbe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Q4(e,t){var r,n,i,a,o,l,s;if(t===null)return{};for(r={},n=Object.keys(t),i=0,a=n.length;i<a;i+=1)o=n[i],l=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),s=e.compiledTypeMap.fallback[o],s&&V4.call(s.styleAliases,l)&&(l=s.styleAliases[l]),r[o]=l;return r}k(Q4,"compileStyleMap");function J4(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Jr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Wt.repeat("0",n-t.length)+t}k(J4,"encodeHex");var rbe=1,Yf=2;function ez(e){this.schema=e.schema||k4,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Wt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Q4(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Yf:rbe,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}k(ez,"State");function Mw(e,t){for(var r=Wt.repeat(" ",t),n=0,i=-1,a="",o,l=e.length;n<l;)i=e.indexOf(`
|
|
357
|
+
`,n),i===-1?(o=e.slice(n),n=l):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
|
|
358
|
+
`&&(a+=r),a+=o;return a}k(Mw,"indentString");function lm(e,t){return`
|
|
359
|
+
`+Wt.repeat(" ",e.indent*t)}k(lm,"generateNextLine");function tz(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}k(tz,"testImplicitResolving");function Kf(e){return e===Fxe||e===Rxe}k(Kf,"isWhitespace");function vc(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==y2||65536<=e&&e<=1114111}k(vc,"isPrintable");function Lw(e){return vc(e)&&e!==y2&&e!==Bxe&&e!==Vf}k(Lw,"isNsCharOrWhitespace");function Iw(e,t,r){var n=Lw(e),i=n&&!Kf(e);return(r?n:n&&e!==Y4&&e!==K4&&e!==G4&&e!==X4&&e!==Z4)&&e!==Ow&&!(t===om&&!i)||Lw(t)&&!Kf(t)&&e===Ow||t===om&&i}k(Iw,"isPlainSafe");function rz(e){return vc(e)&&e!==y2&&!Kf(e)&&e!==Yxe&&e!==Xxe&&e!==om&&e!==Y4&&e!==K4&&e!==G4&&e!==X4&&e!==Z4&&e!==Ow&&e!==Uxe&&e!==Vxe&&e!==zxe&&e!==Jxe&&e!==Kxe&&e!==Gxe&&e!==qxe&&e!==Wxe&&e!==Hxe&&e!==Zxe&&e!==Qxe}k(rz,"isPlainSafeFirst");function nz(e){return!Kf(e)&&e!==om}k(nz,"isPlainSafeLast");function Ps(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}k(Ps,"codePointAt");function v2(e){var t=/^\n* /;return t.test(e)}k(v2,"needIndentIndicator");var iz=1,$w=2,az=3,oz=4,fs=5;function lz(e,t,r,n,i,a,o,l){var s,c=0,u=null,f=!1,h=!1,d=n!==-1,p=-1,g=rz(Ps(e,0))&&nz(Ps(e,e.length-1));if(t||o)for(s=0;s<e.length;c>=65536?s+=2:s++){if(c=Ps(e,s),!vc(c))return fs;g=g&&Iw(c,u,l),u=c}else{for(s=0;s<e.length;c>=65536?s+=2:s++){if(c=Ps(e,s),c===Vf)f=!0,d&&(h=h||s-p-1>n&&e[p+1]!==" ",p=s);else if(!vc(c))return fs;g=g&&Iw(c,u,l),u=c}h=h||d&&s-p-1>n&&e[p+1]!==" "}return!f&&!h?g&&!o&&!i(e)?iz:a===Yf?fs:$w:r>9&&v2(e)?fs:o?a===Yf?fs:$w:h?oz:az}k(lz,"chooseScalarStyle");function sz(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===Yf?'""':"''";if(!e.noCompatMode&&(ebe.indexOf(t)!==-1||tbe.test(t)))return e.quotingType===Yf?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),l=n||e.flowLevel>-1&&r>=e.flowLevel;function s(c){return tz(e,c)}switch(k(s,"testAmbiguity"),lz(t,l,e.indent,o,s,e.quotingType,e.forceQuotes&&!n,i)){case iz:return t;case $w:return"'"+t.replace(/'/g,"''")+"'";case az:return"|"+Dw(t,e.indent)+Nw(Mw(t,a));case oz:return">"+Dw(t,e.indent)+Nw(Mw(cz(t,o),a));case fs:return'"'+uz(t)+'"';default:throw new Jr("impossible error: invalid scalar style")}}()}k(sz,"writeScalar");function Dw(e,t){var r=v2(e)?String(t):"",n=e[e.length-1]===`
|
|
360
|
+
`,i=n&&(e[e.length-2]===`
|
|
361
|
+
`||e===`
|
|
362
|
+
`),a=i?"+":n?"":"-";return r+a+`
|
|
363
|
+
`}k(Dw,"blockHeader");function Nw(e){return e[e.length-1]===`
|
|
364
|
+
`?e.slice(0,-1):e}k(Nw,"dropEndingNewline");function cz(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
|
|
365
|
+
`);return c=c!==-1?c:e.length,r.lastIndex=c,jw(e.slice(0,c),t)}(),i=e[0]===`
|
|
366
|
+
`||e[0]===" ",a,o;o=r.exec(e);){var l=o[1],s=o[2];a=s[0]===" ",n+=l+(!i&&!a&&s!==""?`
|
|
367
|
+
`:"")+jw(s,t),i=a}return n}k(cz,"foldString");function jw(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,a,o=0,l=0,s="";n=r.exec(e);)l=n.index,l-i>t&&(a=o>i?o:l,s+=`
|
|
368
|
+
`+e.slice(i,a),i=a+1),o=l;return s+=`
|
|
369
|
+
`,e.length-i>t&&o>i?s+=e.slice(i,o)+`
|
|
370
|
+
`+e.slice(o+1):s+=e.slice(i),s.slice(1)}k(jw,"foldLine");function uz(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=Ps(e,i),n=Ar[r],!n&&vc(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||J4(r);return t}k(uz,"escapeString");function fz(e,t,r){var n="",i=e.tag,a,o,l;for(a=0,o=r.length;a<o;a+=1)l=r[a],e.replacer&&(l=e.replacer.call(r,String(a),l)),(Xi(e,t,l,!1,!1)||typeof l>"u"&&Xi(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}k(fz,"writeFlowSequence");function Rw(e,t,r,n){var i="",a=e.tag,o,l,s;for(o=0,l=r.length;o<l;o+=1)s=r[o],e.replacer&&(s=e.replacer.call(r,String(o),s)),(Xi(e,t+1,s,!0,!0,!1,!0)||typeof s>"u"&&Xi(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=lm(e,t)),e.dump&&Vf===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=a,e.dump=i||"[]"}k(Rw,"writeBlockSequence");function hz(e,t,r){var n="",i=e.tag,a=Object.keys(r),o,l,s,c,u;for(o=0,l=a.length;o<l;o+=1)u="",n!==""&&(u+=", "),e.condenseFlow&&(u+='"'),s=a[o],c=r[s],e.replacer&&(c=e.replacer.call(r,s,c)),Xi(e,t,s,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Xi(e,t,c,!1,!1)&&(u+=e.dump,n+=u));e.tag=i,e.dump="{"+n+"}"}k(hz,"writeFlowMapping");function dz(e,t,r,n){var i="",a=e.tag,o=Object.keys(r),l,s,c,u,f,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Jr("sortKeys must be a boolean or a function");for(l=0,s=o.length;l<s;l+=1)h="",(!n||i!=="")&&(h+=lm(e,t)),c=o[l],u=r[c],e.replacer&&(u=e.replacer.call(r,c,u)),Xi(e,t+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Vf===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,f&&(h+=lm(e,t)),Xi(e,t+1,u,!0,f)&&(e.dump&&Vf===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=a,e.dump=i||"{}"}k(dz,"writeBlockMapping");function Bw(e,t,r){var n,i,a,o,l,s;for(i=r?e.explicitTypes:e.implicitTypes,a=0,o=i.length;a<o;a+=1)if(l=i[a],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof t=="object"&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(r?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){if(s=e.styleMap[l.tag]||l.defaultStyle,q4.call(l.represent)==="[object Function]")n=l.represent(t,s);else if(V4.call(l.represent,s))n=l.represent[s](t,s);else throw new Jr("!<"+l.tag+'> tag resolver accepts not "'+s+'" style');e.dump=n}return!0}return!1}k(Bw,"detectType");function Xi(e,t,r,n,i,a,o){e.tag=null,e.dump=r,Bw(e,r,!1)||Bw(e,r,!0);var l=q4.call(e.dump),s=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var u=l==="[object Object]"||l==="[object Array]",f,h;if(u&&(f=e.duplicates.indexOf(r),h=f!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(u&&h&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),l==="[object Object]")n&&Object.keys(e.dump).length!==0?(dz(e,t,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(hz(e,t,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if(l==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Rw(e,t-1,e.dump,i):Rw(e,t,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(fz(e,t,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&sz(e,e.dump,t,a,s);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Jr("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}k(Xi,"writeNode");function pz(e,t){var r=[],n=[],i,a;for(sm(e,r,n),i=0,a=n.length;i<a;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(a)}k(pz,"getDuplicateReferences");function sm(e,t,r){var n,i,a;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)sm(e[i],t,r);else for(n=Object.keys(e),i=0,a=n.length;i<a;i+=1)sm(e[n[i]],t,r)}k(sm,"inspectNode");function nbe(e,t){t=t||{};var r=new ez(t);r.noRefs||pz(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Xi(r,0,n,!0,!0)?r.dump+`
|
|
371
|
+
`:""}k(nbe,"dump$1");function ibe(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}k(ibe,"renamed");var abe=a4,obe=jxe.load;/*! Bundled license information:
|
|
372
|
+
|
|
373
|
+
js-yaml/dist/js-yaml.mjs:
|
|
374
|
+
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
|
375
|
+
*/var vr={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},OM={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function ju(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=ut(e),t=ut(t);const[r,n]=[e.x,e.y],[i,a]=[t.x,t.y],o=i-r,l=a-n;return{angle:Math.atan(l/o),deltaX:o,deltaY:l}}k(ju,"calculateDeltaAndAngle");var ut=k(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),lbe=k(e=>({x:k(function(t,r,n){let i=0;const a=ut(n[0]).x<ut(n[n.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(vr,e.arrowTypeStart)){const{angle:d,deltaX:p}=ju(n[0],n[1]);i=vr[e.arrowTypeStart]*Math.cos(d)*(p>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(vr,e.arrowTypeEnd)){const{angle:d,deltaX:p}=ju(n[n.length-1],n[n.length-2]);i=vr[e.arrowTypeEnd]*Math.cos(d)*(p>=0?1:-1)}const o=Math.abs(ut(t).x-ut(n[n.length-1]).x),l=Math.abs(ut(t).y-ut(n[n.length-1]).y),s=Math.abs(ut(t).x-ut(n[0]).x),c=Math.abs(ut(t).y-ut(n[0]).y),u=vr[e.arrowTypeStart],f=vr[e.arrowTypeEnd],h=1;if(o<f&&o>0&&l<f){let d=f+h-o;d*=a==="right"?-1:1,i-=d}if(s<u&&s>0&&c<u){let d=u+h-s;d*=a==="right"?-1:1,i+=d}return ut(t).x+i},"x"),y:k(function(t,r,n){let i=0;const a=ut(n[0]).y<ut(n[n.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(vr,e.arrowTypeStart)){const{angle:d,deltaY:p}=ju(n[0],n[1]);i=vr[e.arrowTypeStart]*Math.abs(Math.sin(d))*(p>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(vr,e.arrowTypeEnd)){const{angle:d,deltaY:p}=ju(n[n.length-1],n[n.length-2]);i=vr[e.arrowTypeEnd]*Math.abs(Math.sin(d))*(p>=0?1:-1)}const o=Math.abs(ut(t).y-ut(n[n.length-1]).y),l=Math.abs(ut(t).x-ut(n[n.length-1]).x),s=Math.abs(ut(t).y-ut(n[0]).y),c=Math.abs(ut(t).x-ut(n[0]).x),u=vr[e.arrowTypeStart],f=vr[e.arrowTypeEnd],h=1;if(o<f&&o>0&&l<f){let d=f+h-o;d*=a==="up"?-1:1,i-=d}if(s<u&&s>0&&c<u){let d=u+h-s;d*=a==="up"?-1:1,i+=d}return ut(t).y+i},"y")}),"getLineFunctionsWithOffset"),x2=k(({flowchart:e})=>{var i,a;const t=((i=e==null?void 0:e.subGraphTitleMargin)==null?void 0:i.top)??0,r=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,n=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:n}},"getSubGraphTitleMargins"),sbe=k(e=>{const{handDrawnSeed:t}=Ue();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),zc=k(e=>{const t=cbe([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),cbe=k(e=>{const t=new Map;return e.forEach(r=>{const[n,i]=r.split(":");t.set(n.trim(),i==null?void 0:i.trim())}),t},"styles2Map"),gz=k(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),he=k(e=>{const{stylesArray:t}=zc(e),r=[],n=[],i=[],a=[];return t.forEach(o=>{const l=o[0];gz(l)?r.push(o.join(":")+" !important"):(n.push(o.join(":")+" !important"),l.includes("stroke")&&i.push(o.join(":")+" !important"),l==="fill"&&a.push(o.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:a}},"styles2String"),fe=k((e,t)=>{var s;const{themeVariables:r,handDrawnSeed:n}=Ue(),{nodeBorder:i,mainBkg:a}=r,{stylesMap:o}=zc(e);return Object.assign({roughness:.7,fill:o.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||i,seed:n,strokeWidth:((s=o.get("stroke-width"))==null?void 0:s.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:ube(o.get("stroke-dasharray"))},t)},"userNodeOverrides"),ube=k(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const i=isNaN(t[0])?0:t[0];return[i,i]}const r=isNaN(t[0])?0:t[0],n=isNaN(t[1])?0:t[1];return[r,n]},"getStrokeDashArray"),mz={},Jt={};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.BLANK_URL=Jt.relativeFirstCharacters=Jt.whitespaceEscapeCharsRegex=Jt.urlSchemeRegex=Jt.ctrlCharactersRegex=Jt.htmlCtrlEntityRegex=Jt.htmlEntitiesRegex=Jt.invalidProtocolRegex=void 0;Jt.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;Jt.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;Jt.htmlCtrlEntityRegex=/&(newline|tab);/gi;Jt.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;Jt.urlSchemeRegex=/^.+(:|:)/gim;Jt.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;Jt.relativeFirstCharacters=[".","/"];Jt.BLANK_URL="about:blank";Object.defineProperty(mz,"__esModule",{value:!0});var fbe=mz.sanitizeUrl=gbe,yr=Jt;function hbe(e){return yr.relativeFirstCharacters.indexOf(e[0])>-1}function dbe(e){var t=e.replace(yr.ctrlCharactersRegex,"");return t.replace(yr.htmlEntitiesRegex,function(r,n){return String.fromCharCode(n)})}function pbe(e){return URL.canParse(e)}function MM(e){try{return decodeURIComponent(e)}catch{return e}}function gbe(e){if(!e)return yr.BLANK_URL;var t,r=MM(e.trim());do r=dbe(r).replace(yr.htmlCtrlEntityRegex,"").replace(yr.ctrlCharactersRegex,"").replace(yr.whitespaceEscapeCharsRegex,"").trim(),r=MM(r),t=r.match(yr.ctrlCharactersRegex)||r.match(yr.htmlEntitiesRegex)||r.match(yr.htmlCtrlEntityRegex)||r.match(yr.whitespaceEscapeCharsRegex);while(t&&t.length>0);var n=r;if(!n)return yr.BLANK_URL;if(hbe(n))return n;var i=n.trimStart(),a=i.match(yr.urlSchemeRegex);if(!a)return n;var o=a[0].toLowerCase().trim();if(yr.invalidProtocolRegex.test(o))return yr.BLANK_URL;var l=i.replace(/\\/g,"/");if(o==="mailto:"||o.includes("://"))return l;if(o==="http:"||o==="https:"){if(!pbe(l))return yr.BLANK_URL;var s=new URL(l);return s.protocol=s.protocol.toLowerCase(),s.hostname=s.hostname.toLowerCase(),s.toString()}return l}var yz=typeof global=="object"&&global&&global.Object===Object&&global,mbe=typeof self=="object"&&self&&self.Object===Object&&self,ea=yz||mbe||Function("return this")(),cm=ea.Symbol,vz=Object.prototype,ybe=vz.hasOwnProperty,vbe=vz.toString,wu=cm?cm.toStringTag:void 0;function xbe(e){var t=ybe.call(e,wu),r=e[wu];try{e[wu]=void 0;var n=!0}catch{}var i=vbe.call(e);return n&&(t?e[wu]=r:delete e[wu]),i}var bbe=Object.prototype,wbe=bbe.toString;function kbe(e){return wbe.call(e)}var Sbe="[object Null]",Cbe="[object Undefined]",LM=cm?cm.toStringTag:void 0;function Wc(e){return e==null?e===void 0?Cbe:Sbe:LM&&LM in Object(e)?xbe(e):kbe(e)}function Xl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _be="[object AsyncFunction]",Ebe="[object Function]",Tbe="[object GeneratorFunction]",Pbe="[object Proxy]";function b2(e){if(!Xl(e))return!1;var t=Wc(e);return t==Ebe||t==Tbe||t==_be||t==Pbe}var G0=ea["__core-js_shared__"],IM=function(){var e=/[^.]+$/.exec(G0&&G0.keys&&G0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Abe(e){return!!IM&&IM in e}var Obe=Function.prototype,Mbe=Obe.toString;function Zl(e){if(e!=null){try{return Mbe.call(e)}catch{}try{return e+""}catch{}}return""}var Lbe=/[\\^$.*+?()[\]{}|]/g,Ibe=/^\[object .+?Constructor\]$/,$be=Function.prototype,Dbe=Object.prototype,Nbe=$be.toString,jbe=Dbe.hasOwnProperty,Rbe=RegExp("^"+Nbe.call(jbe).replace(Lbe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bbe(e){if(!Xl(e)||Abe(e))return!1;var t=b2(e)?Rbe:Ibe;return t.test(Zl(e))}function Fbe(e,t){return e==null?void 0:e[t]}function Ql(e,t){var r=Fbe(e,t);return Bbe(r)?r:void 0}var Gf=Ql(Object,"create");function zbe(){this.__data__=Gf?Gf(null):{},this.size=0}function Wbe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Hbe="__lodash_hash_undefined__",Ube=Object.prototype,qbe=Ube.hasOwnProperty;function Vbe(e){var t=this.__data__;if(Gf){var r=t[e];return r===Hbe?void 0:r}return qbe.call(t,e)?t[e]:void 0}var Ybe=Object.prototype,Kbe=Ybe.hasOwnProperty;function Gbe(e){var t=this.__data__;return Gf?t[e]!==void 0:Kbe.call(t,e)}var Xbe="__lodash_hash_undefined__";function Zbe(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Gf&&t===void 0?Xbe:t,this}function jl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}jl.prototype.clear=zbe;jl.prototype.delete=Wbe;jl.prototype.get=Vbe;jl.prototype.has=Gbe;jl.prototype.set=Zbe;function Qbe(){this.__data__=[],this.size=0}function fv(e,t){return e===t||e!==e&&t!==t}function hv(e,t){for(var r=e.length;r--;)if(fv(e[r][0],t))return r;return-1}var Jbe=Array.prototype,ewe=Jbe.splice;function twe(e){var t=this.__data__,r=hv(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ewe.call(t,r,1),--this.size,!0}function rwe(e){var t=this.__data__,r=hv(t,e);return r<0?void 0:t[r][1]}function nwe(e){return hv(this.__data__,e)>-1}function iwe(e,t){var r=this.__data__,n=hv(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Wa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Wa.prototype.clear=Qbe;Wa.prototype.delete=twe;Wa.prototype.get=rwe;Wa.prototype.has=nwe;Wa.prototype.set=iwe;var Xf=Ql(ea,"Map");function awe(){this.size=0,this.__data__={hash:new jl,map:new(Xf||Wa),string:new jl}}function owe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function dv(e,t){var r=e.__data__;return owe(t)?r[typeof t=="string"?"string":"hash"]:r.map}function lwe(e){var t=dv(this,e).delete(e);return this.size-=t?1:0,t}function swe(e){return dv(this,e).get(e)}function cwe(e){return dv(this,e).has(e)}function uwe(e,t){var r=dv(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function $o(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$o.prototype.clear=awe;$o.prototype.delete=lwe;$o.prototype.get=swe;$o.prototype.has=cwe;$o.prototype.set=uwe;var fwe="Expected a function";function Fh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(fwe);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Fh.Cache||$o),r}Fh.Cache=$o;function hwe(){this.__data__=new Wa,this.size=0}function dwe(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function pwe(e){return this.__data__.get(e)}function gwe(e){return this.__data__.has(e)}var mwe=200;function ywe(e,t){var r=this.__data__;if(r instanceof Wa){var n=r.__data__;if(!Xf||n.length<mwe-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new $o(n)}return r.set(e,t),this.size=r.size,this}function Hc(e){var t=this.__data__=new Wa(e);this.size=t.size}Hc.prototype.clear=hwe;Hc.prototype.delete=dwe;Hc.prototype.get=pwe;Hc.prototype.has=gwe;Hc.prototype.set=ywe;var um=function(){try{var e=Ql(Object,"defineProperty");return e({},"",{}),e}catch{}}();function w2(e,t,r){t=="__proto__"&&um?um(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Fw(e,t,r){(r!==void 0&&!fv(e[t],r)||r===void 0&&!(t in e))&&w2(e,t,r)}function vwe(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),l=o.length;l--;){var s=o[++i];if(r(a[s],s,a)===!1)break}return t}}var xwe=vwe(),xz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$M=xz&&typeof module=="object"&&module&&!module.nodeType&&module,bwe=$M&&$M.exports===xz,DM=bwe?ea.Buffer:void 0,NM=DM?DM.allocUnsafe:void 0;function wwe(e,t){if(t)return e.slice();var r=e.length,n=NM?NM(r):new e.constructor(r);return e.copy(n),n}var jM=ea.Uint8Array;function kwe(e){var t=new e.constructor(e.byteLength);return new jM(t).set(new jM(e)),t}function Swe(e,t){var r=t?kwe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Cwe(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var RM=Object.create,_we=function(){function e(){}return function(t){if(!Xl(t))return{};if(RM)return RM(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function bz(e,t){return function(r){return e(t(r))}}var wz=bz(Object.getPrototypeOf,Object),Ewe=Object.prototype;function pv(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ewe;return e===r}function Twe(e){return typeof e.constructor=="function"&&!pv(e)?_we(wz(e)):{}}function zh(e){return e!=null&&typeof e=="object"}var Pwe="[object Arguments]";function BM(e){return zh(e)&&Wc(e)==Pwe}var kz=Object.prototype,Awe=kz.hasOwnProperty,Owe=kz.propertyIsEnumerable,fm=BM(function(){return arguments}())?BM:function(e){return zh(e)&&Awe.call(e,"callee")&&!Owe.call(e,"callee")},hm=Array.isArray,Mwe=9007199254740991;function Sz(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Mwe}function gv(e){return e!=null&&Sz(e.length)&&!b2(e)}function Lwe(e){return zh(e)&&gv(e)}function Iwe(){return!1}var Cz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,FM=Cz&&typeof module=="object"&&module&&!module.nodeType&&module,$we=FM&&FM.exports===Cz,zM=$we?ea.Buffer:void 0,Dwe=zM?zM.isBuffer:void 0,k2=Dwe||Iwe,Nwe="[object Object]",jwe=Function.prototype,Rwe=Object.prototype,_z=jwe.toString,Bwe=Rwe.hasOwnProperty,Fwe=_z.call(Object);function zwe(e){if(!zh(e)||Wc(e)!=Nwe)return!1;var t=wz(e);if(t===null)return!0;var r=Bwe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&_z.call(r)==Fwe}var Wwe="[object Arguments]",Hwe="[object Array]",Uwe="[object Boolean]",qwe="[object Date]",Vwe="[object Error]",Ywe="[object Function]",Kwe="[object Map]",Gwe="[object Number]",Xwe="[object Object]",Zwe="[object RegExp]",Qwe="[object Set]",Jwe="[object String]",e1e="[object WeakMap]",t1e="[object ArrayBuffer]",r1e="[object DataView]",n1e="[object Float32Array]",i1e="[object Float64Array]",a1e="[object Int8Array]",o1e="[object Int16Array]",l1e="[object Int32Array]",s1e="[object Uint8Array]",c1e="[object Uint8ClampedArray]",u1e="[object Uint16Array]",f1e="[object Uint32Array]",at={};at[n1e]=at[i1e]=at[a1e]=at[o1e]=at[l1e]=at[s1e]=at[c1e]=at[u1e]=at[f1e]=!0;at[Wwe]=at[Hwe]=at[t1e]=at[Uwe]=at[r1e]=at[qwe]=at[Vwe]=at[Ywe]=at[Kwe]=at[Gwe]=at[Xwe]=at[Zwe]=at[Qwe]=at[Jwe]=at[e1e]=!1;function h1e(e){return zh(e)&&Sz(e.length)&&!!at[Wc(e)]}function d1e(e){return function(t){return e(t)}}var Ez=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lf=Ez&&typeof module=="object"&&module&&!module.nodeType&&module,p1e=lf&&lf.exports===Ez,X0=p1e&&yz.process,WM=function(){try{var e=lf&&lf.require&&lf.require("util").types;return e||X0&&X0.binding&&X0.binding("util")}catch{}}(),HM=WM&&WM.isTypedArray,S2=HM?d1e(HM):h1e;function zw(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var g1e=Object.prototype,m1e=g1e.hasOwnProperty;function y1e(e,t,r){var n=e[t];(!(m1e.call(e,t)&&fv(n,r))||r===void 0&&!(t in e))&&w2(e,t,r)}function v1e(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var l=t[a],s=void 0;s===void 0&&(s=e[l]),i?w2(r,l,s):y1e(r,l,s)}return r}function x1e(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var b1e=9007199254740991,w1e=/^(?:0|[1-9]\d*)$/;function Tz(e,t){var r=typeof e;return t=t??b1e,!!t&&(r=="number"||r!="symbol"&&w1e.test(e))&&e>-1&&e%1==0&&e<t}var k1e=Object.prototype,S1e=k1e.hasOwnProperty;function C1e(e,t){var r=hm(e),n=!r&&fm(e),i=!r&&!n&&k2(e),a=!r&&!n&&!i&&S2(e),o=r||n||i||a,l=o?x1e(e.length,String):[],s=l.length;for(var c in e)(t||S1e.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Tz(c,s)))&&l.push(c);return l}function _1e(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var E1e=Object.prototype,T1e=E1e.hasOwnProperty;function P1e(e){if(!Xl(e))return _1e(e);var t=pv(e),r=[];for(var n in e)n=="constructor"&&(t||!T1e.call(e,n))||r.push(n);return r}function Pz(e){return gv(e)?C1e(e,!0):P1e(e)}function A1e(e){return v1e(e,Pz(e))}function O1e(e,t,r,n,i,a,o){var l=zw(e,r),s=zw(t,r),c=o.get(s);if(c){Fw(e,r,c);return}var u=a?a(l,s,r+"",e,t,o):void 0,f=u===void 0;if(f){var h=hm(s),d=!h&&k2(s),p=!h&&!d&&S2(s);u=s,h||d||p?hm(l)?u=l:Lwe(l)?u=Cwe(l):d?(f=!1,u=wwe(s,!0)):p?(f=!1,u=Swe(s,!0)):u=[]:zwe(s)||fm(s)?(u=l,fm(l)?u=A1e(l):(!Xl(l)||b2(l))&&(u=Twe(s))):f=!1}f&&(o.set(s,u),i(u,s,n,a,o),o.delete(s)),Fw(e,r,u)}function Az(e,t,r,n,i){e!==t&&xwe(t,function(a,o){if(i||(i=new Hc),Xl(a))O1e(e,t,o,r,Az,n,i);else{var l=n?n(zw(e,o),a,o+"",e,t,i):void 0;l===void 0&&(l=a),Fw(e,o,l)}},Pz)}function Oz(e){return e}function M1e(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var UM=Math.max;function L1e(e,t,r){return t=UM(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=UM(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=r(o),M1e(e,this,l)}}function I1e(e){return function(){return e}}var $1e=um?function(e,t){return um(e,"toString",{configurable:!0,enumerable:!1,value:I1e(t),writable:!0})}:Oz,D1e=800,N1e=16,j1e=Date.now;function R1e(e){var t=0,r=0;return function(){var n=j1e(),i=N1e-(n-r);if(r=n,i>0){if(++t>=D1e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var B1e=R1e($1e);function F1e(e,t){return B1e(L1e(e,t,Oz),e+"")}function z1e(e,t,r){if(!Xl(r))return!1;var n=typeof t;return(n=="number"?gv(r)&&Tz(t,r.length):n=="string"&&t in r)?fv(r[t],e):!1}function W1e(e){return F1e(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&z1e(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var l=r[n];l&&e(t,l,n,a)}return t})}var H1e=W1e(function(e,t,r){Az(e,t,r)}),U1e="",q1e={curveBasis:ef,curveBasisClosed:uN,curveBasisOpen:hN,curveBumpX:Ak,curveBumpY:Ok,curveBundle:AX,curveCardinalClosed:OX,curveCardinalOpen:MX,curveCardinal:pN,curveCatmullRomClosed:LX,curveCatmullRomOpen:IX,curveCatmullRom:mN,curveLinear:Sl,curveLinearClosed:bN,curveMonotoneX:Nk,curveMonotoneY:jk,curveNatural:Rk,curveStep:Bk,curveStepAfter:zk,curveStepBefore:Fk},V1e=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Y1e=k(function(e,t){const r=Mz(e,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const o=r.map(l=>l.args);Kg(o),n=zt(n,[...o])}else n=r.args;if(!n)return;let i=e2(e,t);const a="config";return n[a]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[a],delete n[a]),n},"detectInit"),Mz=k(function(e,t=null){var r,n;try{const i=new RegExp(`[%]{2}(?![{]${V1e.source})(?=[}][%]{2}).*
|
|
376
|
+
`,"ig");e=e.trim().replace(i,"").replace(/'/gm,'"'),Y.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let a;const o=[];for(;(a=af.exec(e))!==null;)if(a.index===af.lastIndex&&af.lastIndex++,a&&!t||t&&((r=a[1])!=null&&r.match(t))||t&&((n=a[2])!=null&&n.match(t))){const l=a[1]?a[1]:a[2],s=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:l,args:s})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(i){return Y.error(`ERROR: ${i.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),K1e=k(function(e){return e.replace(af,"")},"removeDirectives"),G1e=k(function(e,t){for(const[r,n]of t.entries())if(n.match(e))return r;return-1},"isSubstringInArray");function C2(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return q1e[r]??t}k(C2,"interpolateToCurve");function Lz(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?fbe(r):r}k(Lz,"formatUrl");var X1e=k((e,...t)=>{const r=e.split("."),n=r.length-1,i=r[n];let a=window;for(let o=0;o<n;o++)if(a=a[r[o]],!a){Y.error(`Function name: ${e} not found in window`);return}a[i](...t)},"runFunc");function _2(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}k(_2,"distance");function Iz(e){let t,r=0;e.forEach(i=>{r+=_2(i,t),t=i});const n=r/2;return E2(e,n)}k(Iz,"traverseEdge");function $z(e){return e.length===1?e[0]:Iz(e)}k($z,"calcLabelPosition");var qM=k((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),E2=k((e,t)=>{let r,n=t;for(const i of e){if(r){const a=_2(i,r);if(a===0)return r;if(a<n)n-=a;else{const o=n/a;if(o<=0)return r;if(o>=1)return{x:i.x,y:i.y};if(o>0&&o<1)return{x:qM((1-o)*r.x+o*i.x,5),y:qM((1-o)*r.y+o*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Z1e=k((e,t,r)=>{Y.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const i=E2(t,25),a=e?10:5,o=Math.atan2(t[0].y-i.y,t[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(o)*a+(t[0].x+i.x)/2,l.y=-Math.cos(o)*a+(t[0].y+i.y)/2,l},"calcCardinalityPosition");function Dz(e,t,r){const n=structuredClone(r);Y.info("our points",n),t!=="start_left"&&t!=="start_right"&&n.reverse();const i=25+e,a=E2(n,i),o=10+e*.5,l=Math.atan2(n[0].y-a.y,n[0].x-a.x),s={x:0,y:0};return t==="start_left"?(s.x=Math.sin(l+Math.PI)*o+(n[0].x+a.x)/2,s.y=-Math.cos(l+Math.PI)*o+(n[0].y+a.y)/2):t==="end_right"?(s.x=Math.sin(l-Math.PI)*o+(n[0].x+a.x)/2-5,s.y=-Math.cos(l-Math.PI)*o+(n[0].y+a.y)/2-5):t==="end_left"?(s.x=Math.sin(l)*o+(n[0].x+a.x)/2-5,s.y=-Math.cos(l)*o+(n[0].y+a.y)/2-5):(s.x=Math.sin(l)*o+(n[0].x+a.x)/2,s.y=-Math.cos(l)*o+(n[0].y+a.y)/2),s}k(Dz,"calcTerminalLabelPosition");function Nz(e){let t="",r="";for(const n of e)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":t=t+n+";");return{style:t,labelStyle:r}}k(Nz,"getStylesFromArray");var VM=0,Q1e=k(()=>(VM++,"id-"+Math.random().toString(36).substr(2,12)+"-"+VM),"generateId");function jz(e){let t="";const r="0123456789abcdef",n=r.length;for(let i=0;i<e;i++)t+=r.charAt(Math.floor(Math.random()*n));return t}k(jz,"makeRandomHex");var J1e=k(e=>jz(e.length),"random"),eke=k(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:""}},"getTextObj"),tke=k(function(e,t){const r=t.text.replace(Fc.lineBreakRegex," "),[,n]=mv(t.fontSize),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",n),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),t.class!==void 0&&i.attr("class",t.class);const a=i.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(r),i},"drawSimpleText"),rke=Fh((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Fc.lineBreakRegex.test(e)))return e;const n=e.split(" ").filter(Boolean),i=[];let a="";return n.forEach((o,l)=>{const s=Ia(`${o} `,r),c=Ia(a,r);if(s>t){const{hyphenatedStrings:h,remainingWord:d}=nke(o,t,"-",r);i.push(a,...h),a=d}else c+s>=t?(i.push(a),a=o):a=[a,o].filter(Boolean).join(" ");l+1===n.length&&i.push(a)}),i.filter(o=>o!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),nke=Fh((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const i=[...e],a=[];let o="";return i.forEach((l,s)=>{const c=`${o}${l}`;if(Ia(c,n)>=t){const f=s+1,h=i.length===f,d=`${c}${r}`;a.push(h?c:d),o=""}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function Rz(e,t){return T2(e,t).height}k(Rz,"calculateTextHeight");function Ia(e,t){return T2(e,t).width}k(Ia,"calculateTextWidth");var T2=Fh((e,t)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=t;if(!e)return{width:0,height:0};const[,a]=mv(r),o=["sans-serif",n],l=e.split(Fc.lineBreakRegex),s=[],c=De("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of o){let d=0;const p={width:0,height:0,lineHeight:0};for(const g of l){const y=eke();y.text=g||U1e;const m=tke(u,y).style("font-size",a).style("font-weight",i).style("font-family",h),v=(m._groups||m)[0][0].getBBox();if(v.width===0&&v.height===0)throw new Error("svg element not in render tree");p.width=Math.round(Math.max(p.width,v.width)),d=Math.round(v.height),p.height+=d,p.lineHeight=Math.round(Math.max(p.lineHeight,d))}s.push(p)}u.remove();const f=isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1;return s[f]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Ks,ike=(Ks=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},k(Ks,"InitIDGenerator"),Ks),Nd,ake=k(function(e){return Nd=Nd||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Nd.innerHTML=e,unescape(Nd.textContent)},"entityDecode");function P2(e){return"str"in e}k(P2,"isDetailedError");var oke=k((e,t,r,n)=>{var a;if(!n)return;const i=(a=e.node())==null?void 0:a.getBBox();i&&e.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",t)},"insertTitle"),mv=k(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]},"parseFontSize");function A2(e,t){return H1e({},e,t)}k(A2,"cleanAndMerge");var ci={assignWithDepth:zt,wrapLabel:rke,calculateTextHeight:Rz,calculateTextWidth:Ia,calculateTextDimensions:T2,cleanAndMerge:A2,detectInit:Y1e,detectDirective:Mz,isSubstringInArray:G1e,interpolateToCurve:C2,calcLabelPosition:$z,calcCardinalityPosition:Z1e,calcTerminalLabelPosition:Dz,formatUrl:Lz,getStylesFromArray:Nz,generateId:Q1e,random:J1e,runFunc:X1e,entityDecode:ake,insertTitle:oke,isLabelCoordinateInPath:Bz,parseFontSize:mv,InitIDGenerator:ike},lke=k(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"fl°°"+n+"¶ß":"fl°"+n+"¶ß"}),t},"encodeEntities"),Jl=k(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),$Te=k((e,t,{counter:r=0,prefix:n,suffix:i},a)=>a||`${n?`${n}_`:""}${e}_${t}_${r}${i?`_${i}`:""}`,"getEdgeId");function _r(e){return e??null}k(_r,"handleUndefinedAttr");function Bz(e,t){const r=Math.round(e.x),n=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return i.includes(r.toString())||i.includes(n.toString())}k(Bz,"isLabelCoordinateInPath");const ske=Object.freeze({left:0,top:0,width:16,height:16}),dm=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Fz=Object.freeze({...ske,...dm}),cke=Object.freeze({...Fz,body:"",hidden:!1}),uke=Object.freeze({width:null,height:null}),fke=Object.freeze({...uke,...dm}),hke=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const l=i.pop(),s=i.pop(),c={provider:i.length>0?i[0]:n,prefix:s,name:l};return Z0(c)?c:null}const a=i[0],o=a.split("-");if(o.length>1){const l={provider:n,prefix:o.shift(),name:o.join("-")};return Z0(l)?l:null}if(r&&n===""){const l={provider:n,prefix:"",name:a};return Z0(l,r)?l:null}return null},Z0=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function dke(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function YM(e,t){const r=dke(e,t);for(const n in cke)n in dm?n in e&&!(n in r)&&(r[n]=dm[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function pke(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function a(o){if(r[o])return i[o]=[];if(!(o in i)){i[o]=null;const l=n[o]&&n[o].parent,s=l&&a(l);s&&(i[o]=[l].concat(s))}return i[o]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(a),i}function KM(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let a={};function o(l){a=YM(n[l]||i[l],a)}return o(t),r.forEach(o),YM(e,a)}function gke(e,t){if(e.icons[t])return KM(e,t,[]);const r=pke(e,[t])[t];return r?KM(e,t,r):null}const mke=/(-?[0-9.]*[0-9]+[0-9.]*)/g,yke=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function GM(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(mke);if(n===null||!n.length)return e;const i=[];let a=n.shift(),o=yke.test(a);for(;;){if(o){const l=parseFloat(a);isNaN(l)?i.push(a):i.push(Math.ceil(l*t*r)/r)}else i.push(a);if(a=n.shift(),a===void 0)return i.join("");o=!o}}function vke(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const i=e.indexOf(">",n),a=e.indexOf("</"+t);if(i===-1||a===-1)break;const o=e.indexOf(">",a);if(o===-1)break;r+=e.slice(i+1,a).trim(),e=e.slice(0,n).trim()+e.slice(o+1)}return{defs:r,content:e}}function xke(e,t){return e?"<defs>"+e+"</defs>"+t:t}function bke(e,t,r){const n=vke(e);return xke(n.defs,t+n.content+r)}const wke=e=>e==="unset"||e==="undefined"||e==="none";function kke(e,t){const r={...Fz,...e},n={...fke,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,n].forEach(g=>{const y=[],m=g.hFlip,v=g.vFlip;let b=g.rotate;m?v?b+=2:(y.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),y.push("scale(-1 1)"),i.top=i.left=0):v&&(y.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),y.push("scale(1 -1)"),i.top=i.left=0);let S;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:S=i.height/2+i.top,y.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:y.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:S=i.width/2+i.left,y.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}b%2===1&&(i.left!==i.top&&(S=i.left,i.left=i.top,i.top=S),i.width!==i.height&&(S=i.width,i.width=i.height,i.height=S)),y.length&&(a=bke(a,'<g transform="'+y.join(" ")+'">',"</g>"))});const o=n.width,l=n.height,s=i.width,c=i.height;let u,f;o===null?(f=l===null?"1em":l==="auto"?c:l,u=GM(f,s/c)):(u=o==="auto"?s:o,f=l===null?GM(u,c/s):l==="auto"?c:l);const h={},d=(g,y)=>{wke(y)||(h[g]=y.toString())};d("width",u),d("height",f);const p=[i.left,i.top,s,c];return h.viewBox=p.join(" "),{attributes:h,viewBox:p,body:a}}const Ske=/\sid="(\S+)"/g,XM=new Map;function Cke(e){e=e.replace(/[0-9]+$/,"")||"a";const t=XM.get(e)||0;return XM.set(e,t+1),t?`${e}${t}`:e}function _ke(e){const t=[];let r;for(;r=Ske.exec(e);)t.push(r[1]);if(!t.length)return e;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(i=>{const a=Cke(i),o=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+a+n+"$3")}),e=e.replace(new RegExp(n,"g"),""),e}function Eke(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function O2(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var es=O2();function zz(e){es=e}var sf={exec:()=>null};function Be(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(i,a)=>{let o=typeof a=="string"?a:a.source;return o=o.replace(Rr.caret,"$1"),r=r.replace(i,o),n},getRegex:()=>new RegExp(r,t)};return n}var Tke=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Rr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Pke=/^(?:[ \t]*(?:\n|$))+/,Ake=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Oke=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Wh=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Mke=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,M2=/(?:[*+-]|\d{1,9}[.)])/,Wz=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Hz=Be(Wz).replace(/bull/g,M2).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Lke=Be(Wz).replace(/bull/g,M2).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),L2=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ike=/^[^\n]+/,I2=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,$ke=Be(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",I2).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Dke=Be(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,M2).getRegex(),yv="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$2=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Nke=Be("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",$2).replace("tag",yv).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Uz=Be(L2).replace("hr",Wh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yv).getRegex(),jke=Be(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Uz).getRegex(),D2={blockquote:jke,code:Ake,def:$ke,fences:Oke,heading:Mke,hr:Wh,html:Nke,lheading:Hz,list:Dke,newline:Pke,paragraph:Uz,table:sf,text:Ike},ZM=Be("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Wh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yv).getRegex(),Rke={...D2,lheading:Lke,table:ZM,paragraph:Be(L2).replace("hr",Wh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ZM).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yv).getRegex()},Bke={...D2,html:Be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$2).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:sf,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Be(L2).replace("hr",Wh).replace("heading",` *#{1,6} *[^
|
|
377
|
+
]`).replace("lheading",Hz).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Fke=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,zke=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,qz=/^( {2,}|\\)\n(?!\s*$)/,Wke=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,vv=/[\p{P}\p{S}]/u,N2=/[\s\p{P}\p{S}]/u,Vz=/[^\s\p{P}\p{S}]/u,Hke=Be(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,N2).getRegex(),Yz=/(?!~)[\p{P}\p{S}]/u,Uke=/(?!~)[\s\p{P}\p{S}]/u,qke=/(?:[^\s\p{P}\p{S}]|~)/u,Vke=Be(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Tke?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Kz=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Yke=Be(Kz,"u").replace(/punct/g,vv).getRegex(),Kke=Be(Kz,"u").replace(/punct/g,Yz).getRegex(),Gz="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Gke=Be(Gz,"gu").replace(/notPunctSpace/g,Vz).replace(/punctSpace/g,N2).replace(/punct/g,vv).getRegex(),Xke=Be(Gz,"gu").replace(/notPunctSpace/g,qke).replace(/punctSpace/g,Uke).replace(/punct/g,Yz).getRegex(),Zke=Be("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Vz).replace(/punctSpace/g,N2).replace(/punct/g,vv).getRegex(),Qke=Be(/\\(punct)/,"gu").replace(/punct/g,vv).getRegex(),Jke=Be(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),eSe=Be($2).replace("(?:-->|$)","-->").getRegex(),tSe=Be("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",eSe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),pm=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,rSe=Be(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",pm).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Xz=Be(/^!?\[(label)\]\[(ref)\]/).replace("label",pm).replace("ref",I2).getRegex(),Zz=Be(/^!?\[(ref)\](?:\[\])?/).replace("ref",I2).getRegex(),nSe=Be("reflink|nolink(?!\\()","g").replace("reflink",Xz).replace("nolink",Zz).getRegex(),QM=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,j2={_backpedal:sf,anyPunctuation:Qke,autolink:Jke,blockSkip:Vke,br:qz,code:zke,del:sf,emStrongLDelim:Yke,emStrongRDelimAst:Gke,emStrongRDelimUnd:Zke,escape:Fke,link:rSe,nolink:Zz,punctuation:Hke,reflink:Xz,reflinkSearch:nSe,tag:tSe,text:Wke,url:sf},iSe={...j2,link:Be(/^!?\[(label)\]\((.*?)\)/).replace("label",pm).getRegex(),reflink:Be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pm).getRegex()},Ww={...j2,emStrongRDelimAst:Xke,emStrongLDelim:Kke,url:Be(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",QM).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Be(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",QM).getRegex()},aSe={...Ww,br:Be(qz).replace("{2,}","*").getRegex(),text:Be(Ww.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},jd={normal:D2,gfm:Rke,pedantic:Bke},ku={normal:j2,gfm:Ww,breaks:aSe,pedantic:iSe},oSe={"&":"&","<":"<",">":">",'"':""","'":"'"},JM=e=>oSe[e];function Oi(e,t){if(t){if(Rr.escapeTest.test(e))return e.replace(Rr.escapeReplace,JM)}else if(Rr.escapeTestNoEncode.test(e))return e.replace(Rr.escapeReplaceNoEncode,JM);return e}function eL(e){try{e=encodeURI(e).replace(Rr.percentDecode,"%")}catch{return null}return e}function tL(e,t){var a;let r=e.replace(Rr.findPipe,(o,l,s)=>{let c=!1,u=l;for(;--u>=0&&s[u]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Rr.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!((a=n.at(-1))!=null&&a.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Rr.slashPipe,"|");return n}function Su(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function lSe(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function rL(e,t,r,n,i){let a=t.href,o=t.title||null,l=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let s={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:o,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,s}function sSe(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
|
|
378
|
+
`).map(a=>{let o=a.match(r.other.beginningSpace);if(o===null)return a;let[l]=o;return l.length>=i.length?a.slice(i.length):a}).join(`
|
|
379
|
+
`)}var gm=class{constructor(t){He(this,"options");He(this,"rules");He(this,"lexer");this.options=t||es}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Su(n,`
|
|
380
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=sSe(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let i=Su(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Su(r[0],`
|
|
381
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=Su(r[0],`
|
|
382
|
+
`).split(`
|
|
383
|
+
`),i="",a="",o=[];for(;n.length>0;){let l=!1,s=[],c;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))s.push(n[c]),l=!0;else if(!l)s.push(n[c]);else break;n=n.slice(c);let u=s.join(`
|
|
384
|
+
`),f=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
385
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|
386
|
+
${u}`:u,a=a?`${a}
|
|
387
|
+
${f}`:f;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,o,!0),this.lexer.state.top=h,n.length===0)break;let d=o.at(-1);if((d==null?void 0:d.type)==="code")break;if((d==null?void 0:d.type)==="blockquote"){let p=d,g=p.raw+`
|
|
388
|
+
`+n.join(`
|
|
389
|
+
`),y=this.blockquote(g);o[o.length-1]=y,i=i.substring(0,i.length-p.raw.length)+y.raw,a=a.substring(0,a.length-p.text.length)+y.text;break}else if((d==null?void 0:d.type)==="list"){let p=d,g=p.raw+`
|
|
390
|
+
`+n.join(`
|
|
391
|
+
`),y=this.list(g);o[o.length-1]=y,i=i.substring(0,i.length-d.raw.length)+y.raw,a=a.substring(0,a.length-p.raw.length)+y.raw,n=g.substring(o.at(-1).raw.length).split(`
|
|
392
|
+
`);continue}}return{type:"blockquote",raw:i,tokens:o,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),i=n.length>1,a={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let o=this.rules.other.listItemRegex(n),l=!1;for(;t;){let c=!1,u="",f="";if(!(r=o.exec(t))||this.rules.block.hr.test(t))break;u=r[0],t=t.substring(u.length);let h=r[2].split(`
|
|
393
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,v=>" ".repeat(3*v.length)),d=t.split(`
|
|
394
|
+
`,1)[0],p=!h.trim(),g=0;if(this.options.pedantic?(g=2,f=h.trimStart()):p?g=r[1].length+1:(g=r[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,f=h.slice(g),g+=r[1].length),p&&this.rules.other.blankLine.test(d)&&(u+=d+`
|
|
395
|
+
`,t=t.substring(d.length+1),c=!0),!c){let v=this.rules.other.nextBulletRegex(g),b=this.rules.other.hrRegex(g),S=this.rules.other.fencesBeginRegex(g),C=this.rules.other.headingBeginRegex(g),w=this.rules.other.htmlBeginRegex(g);for(;t;){let _=t.split(`
|
|
396
|
+
`,1)[0],P;if(d=_,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),P=d):P=d.replace(this.rules.other.tabCharGlobal," "),S.test(d)||C.test(d)||w.test(d)||v.test(d)||b.test(d))break;if(P.search(this.rules.other.nonSpaceChar)>=g||!d.trim())f+=`
|
|
397
|
+
`+P.slice(g);else{if(p||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||S.test(h)||C.test(h)||b.test(h))break;f+=`
|
|
398
|
+
`+d}!p&&!d.trim()&&(p=!0),u+=_+`
|
|
399
|
+
`,t=t.substring(_.length+1),h=P.slice(g)}}a.loose||(l?a.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(l=!0));let y=null,m;this.options.gfm&&(y=this.rules.other.listIsTask.exec(f),y&&(m=y[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:u,task:!!y,checked:m,loose:!1,text:f,tokens:[]}),a.raw+=u}let s=a.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let c=0;c<a.items.length;c++)if(this.lexer.state.top=!1,a.items[c].tokens=this.lexer.blockTokens(a.items[c].text,[]),!a.loose){let u=a.items[c].tokens.filter(h=>h.type==="space"),f=u.length>0&&u.some(h=>this.rules.other.anyLine.test(h.raw));a.loose=f}if(a.loose)for(let c=0;c<a.items.length;c++)a.items[c].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:a}}}table(t){var l;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=tL(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(l=r[3])!=null&&l.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
400
|
+
`):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let s of i)this.rules.other.tableAlignRight.test(s)?o.align.push("right"):this.rules.other.tableAlignCenter.test(s)?o.align.push("center"):this.rules.other.tableAlignLeft.test(s)?o.align.push("left"):o.align.push(null);for(let s=0;s<n.length;s++)o.header.push({text:n[s],tokens:this.lexer.inline(n[s]),header:!0,align:o.align[s]});for(let s of a)o.rows.push(tL(s,o.header.length).map((c,u)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:o.align[u]})));return o}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
|
|
401
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let o=Su(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{let o=lSe(r[2],"()");if(o===-2)return;if(o>-1){let l=(r[0].indexOf("!")===0?5:4)+r[1].length+o;r[2]=r[2].substring(0,o),r[0]=r[0].substring(0,l).trim(),r[3]=""}}let i=r[2],a="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(i);o&&(i=o[1],a=o[3])}else a=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),rL(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[i.toLowerCase()];if(!a){let o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return rL(n,a,n[0],this.lexer,this.rules)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let a=[...i[0]].length-1,o,l,s=a,c=0,u=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,r=r.slice(-1*t.length+a);(i=u.exec(r))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(l=[...o].length,i[3]||i[4]){s+=l;continue}else if((i[5]||i[6])&&a%3&&!((a+l)%3)){c+=l;continue}if(s-=l,s>0)continue;l=Math.min(l,l+s+c);let f=[...i[0]][0].length,h=t.slice(0,a+i.index+f+l);if(Math.min(a,l)%2){let p=h.slice(1,-1);return{type:"em",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}let d=h.slice(2,-2);return{type:"strong",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,i;return r[2]==="@"?(n=r[1],i="mailto:"+n):(n=r[1],i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let r;if(r=this.rules.inline.url.exec(t)){let i,a;if(r[2]==="@")i=r[0],a="mailto:"+i;else{let o;do o=r[0],r[0]=((n=this.rules.inline._backpedal.exec(r[0]))==null?void 0:n[0])??"";while(o!==r[0]);i=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},ii=class Hw{constructor(t){He(this,"tokens");He(this,"options");He(this,"state");He(this,"tokenizer");He(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||es,this.options.tokenizer=this.options.tokenizer||new gm,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Rr,block:jd.normal,inline:ku.normal};this.options.pedantic?(r.block=jd.pedantic,r.inline=ku.pedantic):this.options.gfm&&(r.block=jd.gfm,this.options.breaks?r.inline=ku.breaks:r.inline=ku.gfm),this.tokenizer.rules=r}static get rules(){return{block:jd,inline:ku}}static lex(t,r){return new Hw(r).lex(t)}static lexInline(t,r){return new Hw(r).inlineTokens(t)}lex(t){t=t.replace(Rr.carriageReturn,`
|
|
402
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var i,a,o;for(this.options.pedantic&&(t=t.replace(Rr.tabCharGlobal," ").replace(Rr.spaceLine,""));t;){let l;if((a=(i=this.options.extensions)==null?void 0:i.block)!=null&&a.some(c=>(l=c.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);let c=r.at(-1);l.raw.length===1&&c!==void 0?c.raw+=`
|
|
403
|
+
`:r.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
404
|
+
`)?"":`
|
|
405
|
+
`)+l.raw,c.text+=`
|
|
406
|
+
`+l.text,this.inlineQueue.at(-1).src=c.text):r.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
407
|
+
`)?"":`
|
|
408
|
+
`)+l.raw,c.text+=`
|
|
409
|
+
`+l.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},r.push(l));continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),r.push(l);continue}let s=t;if((o=this.options.extensions)!=null&&o.startBlock){let c=1/0,u=t.slice(1),f;this.options.extensions.startBlock.forEach(h=>{f=h.call({lexer:this},u),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(s=t.substring(0,c+1))}if(this.state.top&&(l=this.tokenizer.paragraph(s))){let c=r.at(-1);n&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
|
|
410
|
+
`)?"":`
|
|
411
|
+
`)+l.raw,c.text+=`
|
|
412
|
+
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(l),n=s.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
413
|
+
`)?"":`
|
|
414
|
+
`)+l.raw,c.text+=`
|
|
415
|
+
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(l);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var s,c,u,f,h;let n=t,i=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)d.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)a=i[2]?i[2].length:0,n=n.slice(0,i.index+a)+"["+"a".repeat(i[0].length-a-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((c=(s=this.options.hooks)==null?void 0:s.emStrongMask)==null?void 0:c.call({lexer:this},n))??n;let o=!1,l="";for(;t;){o||(l=""),o=!1;let d;if((f=(u=this.options.extensions)==null?void 0:u.inline)!=null&&f.some(g=>(d=g.call({lexer:this},t,r))?(t=t.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let g=r.at(-1);d.type==="text"&&(g==null?void 0:g.type)==="text"?(g.raw+=d.raw,g.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,n,l)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),r.push(d);continue}let p=t;if((h=this.options.extensions)!=null&&h.startInline){let g=1/0,y=t.slice(1),m;this.options.extensions.startInline.forEach(v=>{m=v.call({lexer:this},y),typeof m=="number"&&m>=0&&(g=Math.min(g,m))}),g<1/0&&g>=0&&(p=t.substring(0,g+1))}if(d=this.tokenizer.inlineText(p)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(l=d.raw.slice(-1)),o=!0;let g=r.at(-1);(g==null?void 0:g.type)==="text"?(g.raw+=d.raw,g.text+=d.text):r.push(d);continue}if(t){let g="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return r}},mm=class{constructor(t){He(this,"options");He(this,"parser");this.options=t||es}space(t){return""}code({text:t,lang:r,escaped:n}){var o;let i=(o=(r||"").match(Rr.notSpaceStart))==null?void 0:o[0],a=t.replace(Rr.endingNewline,"")+`
|
|
416
|
+
`;return i?'<pre><code class="language-'+Oi(i)+'">'+(n?a:Oi(a,!0))+`</code></pre>
|
|
417
|
+
`:"<pre><code>"+(n?a:Oi(a,!0))+`</code></pre>
|
|
418
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
419
|
+
${this.parser.parse(t)}</blockquote>
|
|
420
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
421
|
+
`}hr(t){return`<hr>
|
|
422
|
+
`}list(t){let r=t.ordered,n=t.start,i="";for(let l=0;l<t.items.length;l++){let s=t.items[l];i+=this.listitem(s)}let a=r?"ol":"ul",o=r&&n!==1?' start="'+n+'"':"";return"<"+a+o+`>
|
|
423
|
+
`+i+"</"+a+`>
|
|
424
|
+
`}listitem(t){var n;let r="";if(t.task){let i=this.checkbox({checked:!!t.checked});t.loose?((n=t.tokens[0])==null?void 0:n.type)==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+Oi(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
|
425
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
426
|
+
`}table(t){let r="",n="";for(let a=0;a<t.header.length;a++)n+=this.tablecell(t.header[a]);r+=this.tablerow({text:n});let i="";for(let a=0;a<t.rows.length;a++){let o=t.rows[a];n="";for(let l=0;l<o.length;l++)n+=this.tablecell(o[l]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
427
|
+
<thead>
|
|
428
|
+
`+r+`</thead>
|
|
429
|
+
`+i+`</table>
|
|
430
|
+
`}tablerow({text:t}){return`<tr>
|
|
431
|
+
${t}</tr>
|
|
432
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
|
|
433
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Oi(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:n}){let i=this.parser.parseInline(n),a=eL(t);if(a===null)return i;t=a;let o='<a href="'+t+'"';return r&&(o+=' title="'+Oi(r)+'"'),o+=">"+i+"</a>",o}image({href:t,title:r,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let a=eL(t);if(a===null)return Oi(n);t=a;let o=`<img src="${t}" alt="${n}"`;return r&&(o+=` title="${Oi(r)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Oi(t.text)}},R2=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},ai=class Uw{constructor(t){He(this,"options");He(this,"renderer");He(this,"textRenderer");this.options=t||es,this.options.renderer=this.options.renderer||new mm,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new R2}static parse(t,r){return new Uw(r).parse(t)}static parseInline(t,r){return new Uw(r).parseInline(t)}parse(t,r=!0){var i,a;let n="";for(let o=0;o<t.length;o++){let l=t[o];if((a=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&a[l.type]){let c=l,u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){n+=u||"";continue}}let s=l;switch(s.type){case"space":{n+=this.renderer.space(s);continue}case"hr":{n+=this.renderer.hr(s);continue}case"heading":{n+=this.renderer.heading(s);continue}case"code":{n+=this.renderer.code(s);continue}case"table":{n+=this.renderer.table(s);continue}case"blockquote":{n+=this.renderer.blockquote(s);continue}case"list":{n+=this.renderer.list(s);continue}case"html":{n+=this.renderer.html(s);continue}case"def":{n+=this.renderer.def(s);continue}case"paragraph":{n+=this.renderer.paragraph(s);continue}case"text":{let c=s,u=this.renderer.text(c);for(;o+1<t.length&&t[o+1].type==="text";)c=t[++o],u+=`
|
|
434
|
+
`+this.renderer.text(c);r?n+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):n+=u;continue}default:{let c='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}parseInline(t,r=this.renderer){var i,a;let n="";for(let o=0;o<t.length;o++){let l=t[o];if((a=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&a[l.type]){let c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){n+=c||"";continue}}let s=l;switch(s.type){case"escape":{n+=r.text(s);break}case"html":{n+=r.html(s);break}case"link":{n+=r.link(s);break}case"image":{n+=r.image(s);break}case"strong":{n+=r.strong(s);break}case"em":{n+=r.em(s);break}case"codespan":{n+=r.codespan(s);break}case"br":{n+=r.br(s);break}case"del":{n+=r.del(s);break}case"text":{n+=r.text(s);break}default:{let c='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}},Hd,Ru=(Hd=class{constructor(t){He(this,"options");He(this,"block");this.options=t||es}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?ii.lex:ii.lexInline}provideParser(){return this.block?ai.parse:ai.parseInline}},He(Hd,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),He(Hd,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Hd),cSe=class{constructor(...t){He(this,"defaults",O2());He(this,"options",this.setOptions);He(this,"parse",this.parseMarkdown(!0));He(this,"parseInline",this.parseMarkdown(!1));He(this,"Parser",ai);He(this,"Renderer",mm);He(this,"TextRenderer",R2);He(this,"Lexer",ii);He(this,"Tokenizer",gm);He(this,"Hooks",Ru);this.use(...t)}walkTokens(t,r){var i,a;let n=[];for(let o of t)switch(n=n.concat(r.call(this,o)),o.type){case"table":{let l=o;for(let s of l.header)n=n.concat(this.walkTokens(s.tokens,r));for(let s of l.rows)for(let c of s)n=n.concat(this.walkTokens(c.tokens,r));break}case"list":{let l=o;n=n.concat(this.walkTokens(l.items,r));break}default:{let l=o;(a=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&a[l.type]?this.defaults.extensions.childTokens[l.type].forEach(s=>{let c=l[s].flat(1/0);n=n.concat(this.walkTokens(c,r))}):l.tokens&&(n=n.concat(this.walkTokens(l.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let o=r.renderers[a.name];o?r.renderers[a.name]=function(...l){let s=a.renderer.apply(this,l);return s===!1&&(s=o.apply(this,l)),s}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=r[a.level];o?o.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){let a=this.defaults.renderer||new mm(this.defaults);for(let o in n.renderer){if(!(o in a))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let l=o,s=n.renderer[l],c=a[l];a[l]=(...u)=>{let f=s.apply(a,u);return f===!1&&(f=c.apply(a,u)),f||""}}i.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new gm(this.defaults);for(let o in n.tokenizer){if(!(o in a))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let l=o,s=n.tokenizer[l],c=a[l];a[l]=(...u)=>{let f=s.apply(a,u);return f===!1&&(f=c.apply(a,u)),f}}i.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new Ru;for(let o in n.hooks){if(!(o in a))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let l=o,s=n.hooks[l],c=a[l];Ru.passThroughHooks.has(o)?a[l]=u=>{if(this.defaults.async&&Ru.passThroughHooksRespectAsync.has(o))return(async()=>{let h=await s.call(a,u);return c.call(a,h)})();let f=s.call(a,u);return c.call(a,f)}:a[l]=(...u)=>{if(this.defaults.async)return(async()=>{let h=await s.apply(a,u);return h===!1&&(h=await c.apply(a,u)),h})();let f=s.apply(a,u);return f===!1&&(f=c.apply(a,u)),f}}i.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,o=n.walkTokens;i.walkTokens=function(l){let s=[];return s.push(o.call(this,l)),a&&(s=s.concat(a.call(this,l))),s}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return ii.lex(t,r??this.defaults)}parser(t,r){return ai.parse(t,r??this.defaults)}parseMarkdown(t){return(r,n)=>{let i={...n},a={...this.defaults,...i},o=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&i.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let l=a.hooks?await a.hooks.preprocess(r):r,s=await(a.hooks?await a.hooks.provideLexer():t?ii.lex:ii.lexInline)(l,a),c=a.hooks?await a.hooks.processAllTokens(s):s;a.walkTokens&&await Promise.all(this.walkTokens(c,a.walkTokens));let u=await(a.hooks?await a.hooks.provideParser():t?ai.parse:ai.parseInline)(c,a);return a.hooks?await a.hooks.postprocess(u):u})().catch(o);try{a.hooks&&(r=a.hooks.preprocess(r));let l=(a.hooks?a.hooks.provideLexer():t?ii.lex:ii.lexInline)(r,a);a.hooks&&(l=a.hooks.processAllTokens(l)),a.walkTokens&&this.walkTokens(l,a.walkTokens);let s=(a.hooks?a.hooks.provideParser():t?ai.parse:ai.parseInline)(l,a);return a.hooks&&(s=a.hooks.postprocess(s)),s}catch(l){return o(l)}}}onError(t,r){return n=>{if(n.message+=`
|
|
435
|
+
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+Oi(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},Rl=new cSe;function qe(e,t){return Rl.parse(e,t)}qe.options=qe.setOptions=function(e){return Rl.setOptions(e),qe.defaults=Rl.defaults,zz(qe.defaults),qe};qe.getDefaults=O2;qe.defaults=es;qe.use=function(...e){return Rl.use(...e),qe.defaults=Rl.defaults,zz(qe.defaults),qe};qe.walkTokens=function(e,t){return Rl.walkTokens(e,t)};qe.parseInline=Rl.parseInline;qe.Parser=ai;qe.parser=ai.parse;qe.Renderer=mm;qe.TextRenderer=R2;qe.Lexer=ii;qe.lexer=ii.lex;qe.Tokenizer=gm;qe.Hooks=Ru;qe.parse=qe;qe.options;qe.setOptions;qe.use;qe.walkTokens;qe.parseInline;ai.parse;ii.lex;function Qz(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(l,s){var c=s.match(/\n([\t ]+|(?!\s).)/g);return c?l.concat(c.map(function(u){var f,h;return(h=(f=u.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):l},[]);if(i.length){var a=new RegExp(`
|
|
436
|
+
[ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(l){return l.replace(a,`
|
|
437
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var o=n[0];return t.forEach(function(l,s){var c=o.match(/(?:^|\n)( *)$/),u=c?c[1]:"",f=l;typeof l=="string"&&l.includes(`
|
|
438
|
+
`)&&(f=String(l).split(`
|
|
439
|
+
`).map(function(h,d){return d===0?h:""+u+h}).join(`
|
|
440
|
+
`)),o+=f+n[s+1]}),o}var uSe={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},qw=new Map,Jz=new Map,fSe=k(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(Y.debug("Registering icon pack:",t.name),"loader"in t)Jz.set(t.name,t.loader);else if("icons"in t)qw.set(t.name,t.icons);else throw Y.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),e6=k(async(e,t)=>{const r=hke(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const n=r.prefix||t;if(!n)throw new Error(`Icon name must contain a prefix: ${e}`);let i=qw.get(n);if(!i){const o=Jz.get(n);if(!o)throw new Error(`Icon set not found: ${r.prefix}`);try{i={...await o(),prefix:n},qw.set(n,i)}catch(l){throw Y.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=gke(i,r.name);if(!a)throw new Error(`Icon not found: ${e}`);return a},"getRegisteredIconData"),hSe=k(async e=>{try{return await e6(e),!0}catch{return!1}},"isIconAvailable"),Hh=k(async(e,t,r)=>{let n;try{n=await e6(e,t==null?void 0:t.fallbackPrefix)}catch(o){Y.error(o),n=uSe}const i=kke(n,t),a=Eke(_ke(i.body),{...i.attributes,...r});return qn(a,Sr())},"getIconSVG");function t6(e,{markdownAutoWrap:t}){const n=e.replace(/<br\/>/g,`
|
|
441
|
+
`).replace(/\n{2,}/g,`
|
|
442
|
+
`),i=Qz(n);return t===!1?i.replace(/ /g," "):i}k(t6,"preprocessMarkdown");function r6(e,t={}){const r=t6(e,t),n=qe.lexer(r),i=[[]];let a=0;function o(l,s="normal"){l.type==="text"?l.text.split(`
|
|
443
|
+
`).forEach((u,f)=>{f!==0&&(a++,i.push([])),u.split(" ").forEach(h=>{h=h.replace(/'/g,"'"),h&&i[a].push({content:h,type:s})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(c=>{o(c,l.type)}):l.type==="html"&&i[a].push({content:l.text,type:"normal"})}return k(o,"processNode"),n.forEach(l=>{var s;l.type==="paragraph"?(s=l.tokens)==null||s.forEach(c=>{o(c)}):l.type==="html"?i[a].push({content:l.text,type:"normal"}):i[a].push({content:l.raw,type:"normal"})}),i}k(r6,"markdownToLines");function n6(e,{markdownAutoWrap:t}={}){const r=qe.lexer(e);function n(i){var a,o,l;return i.type==="text"?t===!1?i.text.replace(/\n */g,"<br/>").replace(/ /g," "):i.text.replace(/\n */g,"<br/>"):i.type==="strong"?`<strong>${(a=i.tokens)==null?void 0:a.map(n).join("")}</strong>`:i.type==="em"?`<em>${(o=i.tokens)==null?void 0:o.map(n).join("")}</em>`:i.type==="paragraph"?`<p>${(l=i.tokens)==null?void 0:l.map(n).join("")}</p>`:i.type==="space"?"":i.type==="html"?`${i.text}`:i.type==="escape"?i.text:(Y.warn(`Unsupported markdown: ${i.type}`),i.raw)}return k(n,"output"),r.map(n).join("")}k(n6,"markdownToHTML");function i6(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}k(i6,"splitTextToChars");function a6(e,t){const r=i6(t.content);return B2(e,[],r,t.type)}k(a6,"splitWordToFitWidth");function B2(e,t,r,n){if(r.length===0)return[{content:t.join(""),type:n},{content:"",type:n}];const[i,...a]=r,o=[...t,i];return e([{content:o.join(""),type:n}])?B2(e,o,a,n):(t.length===0&&i&&(t.push(i),r.shift()),[{content:t.join(""),type:n},{content:r.join(""),type:n}])}k(B2,"splitWordToFitWidthRecursion");function o6(e,t){if(e.some(({content:r})=>r.includes(`
|
|
444
|
+
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return ym(e,t)}k(o6,"splitLineToFitWidth");function ym(e,t,r=[],n=[]){if(e.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let i="";e[0].content===" "&&(i=" ",e.shift());const a=e.shift()??{content:" ",type:"normal"},o=[...n];if(i!==""&&o.push({content:i,type:"normal"}),o.push(a),t(o))return ym(e,t,r,o);if(n.length>0)r.push(n),e.unshift(a);else if(a.content){const[l,s]=a6(t,a);r.push([l]),s.content&&e.unshift(s)}return ym(e,t,r)}k(ym,"splitLineToFitWidthRecursion");function Vw(e,t){t&&e.attr("style",t)}k(Vw,"applyStyle");async function l6(e,t,r,n,i=!1,a=Sr()){const o=e.append("foreignObject");o.attr("width",`${10*r}px`),o.attr("height",`${10*r}px`);const l=o.append("xhtml:div"),s=pc(t.label)?await t2(t.label.replace(Fc.lineBreakRegex,`
|
|
445
|
+
`),a):qn(t.label,a),c=t.isNode?"nodeLabel":"edgeLabel",u=l.append("span");u.html(s),Vw(u,t.labelStyle),u.attr("class",`${c} ${n}`),Vw(l,t.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),l.style("max-width",r+"px"),l.style("text-align","center"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&l.attr("class","labelBkg");let f=l.node().getBoundingClientRect();return f.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),f=l.node().getBoundingClientRect()),o.node()}k(l6,"addHtmlSpan");function xv(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}k(xv,"createTspan");function s6(e,t,r){const n=e.append("text"),i=xv(n,1,t);bv(i,r);const a=i.node().getComputedTextLength();return n.remove(),a}k(s6,"computeWidthOfText");function dSe(e,t,r){var o;const n=e.append("text"),i=xv(n,1,t);bv(i,[{content:r,type:"normal"}]);const a=(o=i.node())==null?void 0:o.getBoundingClientRect();return a&&n.remove(),a}k(dSe,"computeDimensionOfText");function c6(e,t,r,n=!1){const a=t.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1");let s=0;for(const c of r){const u=k(h=>s6(a,1.1,h)<=e,"checkWidth"),f=u(c)?[c]:o6(c,u);for(const h of f){const d=xv(l,s,1.1);bv(d,h),s++}}if(n){const c=l.node().getBBox(),u=2;return o.attr("x",c.x-u).attr("y",c.y-u).attr("width",c.width+2*u).attr("height",c.height+2*u),a.node()}else return l.node()}k(c6,"createFormattedText");function bv(e,t){e.text(""),t.forEach((r,n)=>{const i=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(r.content):i.text(" "+r.content)})}k(bv,"updateTextContentAndStyles");async function u6(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(i,a,o)=>(r.push((async()=>{const l=`${a}:${o}`;return await hSe(l)?await Hh(l,void 0,{class:"label-icon"}):`<i class='${qn(i,t).replace(":"," ")}'></i>`})()),i));const n=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>n.shift()??"")}k(u6,"replaceIconSubstring");var Do=k(async(e,t="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,isNode:o=!0,width:l=200,addSvgBackground:s=!1}={},c)=>{if(Y.debug("XYZ createText",t,r,n,i,a,o,"addSvgBackground: ",s),a){const u=n6(t,c),f=await u6(Jl(u),c),h=t.replace(/\\\\/g,"\\"),d={isNode:o,label:pc(t)?h:f,labelStyle:r.replace("fill:","color:")};return await l6(e,d,l,i,s,c)}else{const u=t.replace(/<br\s*\/?>/g,"<br/>"),f=r6(u.replace("<br>","<br/>"),c),h=c6(l,e,f,t?s:!1);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const d=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");De(h).attr("style",d)}else{const d=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");De(h).select("rect").attr("style",d.replace(/background:/g,"fill:"));const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");De(h).select("text").attr("style",p)}return h}},"createText");function Q0(e,t,r){if(e&&e.length){const[n,i]=t,a=Math.PI/180*r,o=Math.cos(a),l=Math.sin(a);for(const s of e){const[c,u]=s;s[0]=(c-n)*o-(u-i)*l+n,s[1]=(c-n)*l+(u-i)*o+i}}}function pSe(e,t){return e[0]===t[0]&&e[1]===t[1]}function gSe(e,t,r,n=1){const i=r,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,l=[0,0];if(i)for(const c of o)Q0(c,l,i);const s=function(c,u,f){const h=[];for(const v of c){const b=[...v];pSe(b[0],b[b.length-1])||b.push([b[0][0],b[0][1]]),b.length>2&&h.push(b)}const d=[];u=Math.max(u,.1);const p=[];for(const v of h)for(let b=0;b<v.length-1;b++){const S=v[b],C=v[b+1];if(S[1]!==C[1]){const w=Math.min(S[1],C[1]);p.push({ymin:w,ymax:Math.max(S[1],C[1]),x:w===S[1]?S[0]:C[0],islope:(C[0]-S[0])/(C[1]-S[1])})}}if(p.sort((v,b)=>v.ymin<b.ymin?-1:v.ymin>b.ymin?1:v.x<b.x?-1:v.x>b.x?1:v.ymax===b.ymax?0:(v.ymax-b.ymax)/Math.abs(v.ymax-b.ymax)),!p.length)return d;let g=[],y=p[0].ymin,m=0;for(;g.length||p.length;){if(p.length){let v=-1;for(let b=0;b<p.length&&!(p[b].ymin>y);b++)v=b;p.splice(0,v+1).forEach(b=>{g.push({s:y,edge:b})})}if(g=g.filter(v=>!(v.edge.ymax<=y)),g.sort((v,b)=>v.edge.x===b.edge.x?0:(v.edge.x-b.edge.x)/Math.abs(v.edge.x-b.edge.x)),(f!==1||m%u==0)&&g.length>1)for(let v=0;v<g.length;v+=2){const b=v+1;if(b>=g.length)break;const S=g[v].edge,C=g[b].edge;d.push([[Math.round(S.x),y],[Math.round(C.x),y]])}y+=f,g.forEach(v=>{v.edge.x=v.edge.x+f*v.edge.islope}),m++}return d}(o,a,n);if(i){for(const c of o)Q0(c,l,-i);(function(c,u,f){const h=[];c.forEach(d=>h.push(...d)),Q0(h,u,f)})(s,l,-i)}return s}function Uh(e,t){var r;const n=t.hachureAngle+90;let i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let a=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=i),gSe(e,i,n,a||1)}class F2{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const n=Uh(t,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(t,r){const n=[];for(const i of t)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],r));return n}}function wv(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class mSe extends F2{fillPolygons(t,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);const i=Uh(t,Object.assign({},r,{hachureGap:n})),a=Math.PI/180*r.hachureAngle,o=[],l=.5*n*Math.cos(a),s=.5*n*Math.sin(a);for(const[c,u]of i)wv([c,u])&&o.push([[c[0]-l,c[1]+s],[...u]],[[c[0]+l,c[1]-s],[...u]]);return{type:"fillSketch",ops:this.renderLines(o,r)}}}class ySe extends F2{fillPolygons(t,r){const n=this._fillPolygons(t,r),i=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(t,i);return n.ops=n.ops.concat(a.ops),n}}class vSe{constructor(t){this.helper=t}fillPolygons(t,r){const n=Uh(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(t,r){const n=[];let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const o=i/4;for(const l of t){const s=wv(l),c=s/i,u=Math.ceil(c)-1,f=s-u*i,h=(l[0][0]+l[1][0])/2-i/4,d=Math.min(l[0][1],l[1][1]);for(let p=0;p<u;p++){const g=d+f+p*i,y=h-o+2*Math.random()*o,m=g-o+2*Math.random()*o,v=this.helper.ellipse(y,m,a,a,r);n.push(...v.ops)}}return{type:"fillSketch",ops:n}}}class xSe{constructor(t){this.helper=t}fillPolygons(t,r){const n=Uh(t,r);return{type:"fillSketch",ops:this.dashedLine(n,r)}}dashedLine(t,r){const n=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,i=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,a=[];return t.forEach(o=>{const l=wv(o),s=Math.floor(l/(n+i)),c=(l+i-s*(n+i))/2;let u=o[0],f=o[1];u[0]>f[0]&&(u=o[1],f=o[0]);const h=Math.atan((f[1]-u[1])/(f[0]-u[0]));for(let d=0;d<s;d++){const p=d*(n+i),g=p+n,y=[u[0]+p*Math.cos(h)+c*Math.cos(h),u[1]+p*Math.sin(h)+c*Math.sin(h)],m=[u[0]+g*Math.cos(h)+c*Math.cos(h),u[1]+g*Math.sin(h)+c*Math.sin(h)];a.push(...this.helper.doubleLineOps(y[0],y[1],m[0],m[1],r))}}),a}}class bSe{constructor(t){this.helper=t}fillPolygons(t,r){const n=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,i=r.zigzagOffset<0?n:r.zigzagOffset,a=Uh(t,r=Object.assign({},r,{hachureGap:n+i}));return{type:"fillSketch",ops:this.zigzagLines(a,i,r)}}zigzagLines(t,r,n){const i=[];return t.forEach(a=>{const o=wv(a),l=Math.round(o/(2*r));let s=a[0],c=a[1];s[0]>c[0]&&(s=a[1],c=a[0]);const u=Math.atan((c[1]-s[1])/(c[0]-s[0]));for(let f=0;f<l;f++){const h=2*f*r,d=2*(f+1)*r,p=Math.sqrt(2*Math.pow(r,2)),g=[s[0]+h*Math.cos(u),s[1]+h*Math.sin(u)],y=[s[0]+d*Math.cos(u),s[1]+d*Math.sin(u)],m=[g[0]+p*Math.cos(u+Math.PI/4),g[1]+p*Math.sin(u+Math.PI/4)];i.push(...this.helper.doubleLineOps(g[0],g[1],m[0],m[1],n),...this.helper.doubleLineOps(m[0],m[1],y[0],y[1],n))}}),i}}const Gr={};class wSe{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const kSe=0,J0=1,nL=2,Rd={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function ex(e,t){return e.type===t}function z2(e){const t=[],r=function(o){const l=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:kSe,text:RegExp.$1},o=o.substr(RegExp.$1.length);else{if(!o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:J0,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return l[l.length]={type:nL,text:""},l}(e);let n="BOD",i=0,a=r[i];for(;!ex(a,nL);){let o=0;const l=[];if(n==="BOD"){if(a.text!=="M"&&a.text!=="m")return z2("M0,0"+e);i++,o=Rd[a.text],n=a.text}else ex(a,J0)?o=Rd[n]:(i++,o=Rd[a.text],n=a.text);if(!(i+o<r.length))throw new Error("Path data ended short");for(let s=i;s<i+o;s++){const c=r[s];if(!ex(c,J0))throw new Error("Param not a number: "+n+","+c.text);l[l.length]=+c.text}if(typeof Rd[n]!="number")throw new Error("Bad segment: "+n);{const s={key:n,data:l};t.push(s),i+=o,a=r[i],n==="M"&&(n="L"),n==="m"&&(n="l")}}return t}function f6(e){let t=0,r=0,n=0,i=0;const a=[];for(const{key:o,data:l}of e)switch(o){case"M":a.push({key:"M",data:[...l]}),[t,r]=l,[n,i]=l;break;case"m":t+=l[0],r+=l[1],a.push({key:"M",data:[t,r]}),n=t,i=r;break;case"L":a.push({key:"L",data:[...l]}),[t,r]=l;break;case"l":t+=l[0],r+=l[1],a.push({key:"L",data:[t,r]});break;case"C":a.push({key:"C",data:[...l]}),t=l[4],r=l[5];break;case"c":{const s=l.map((c,u)=>u%2?c+r:c+t);a.push({key:"C",data:s}),t=s[4],r=s[5];break}case"Q":a.push({key:"Q",data:[...l]}),t=l[2],r=l[3];break;case"q":{const s=l.map((c,u)=>u%2?c+r:c+t);a.push({key:"Q",data:s}),t=s[2],r=s[3];break}case"A":a.push({key:"A",data:[...l]}),t=l[5],r=l[6];break;case"a":t+=l[5],r+=l[6],a.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],t,r]});break;case"H":a.push({key:"H",data:[...l]}),t=l[0];break;case"h":t+=l[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...l]}),r=l[0];break;case"v":r+=l[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...l]}),t=l[2],r=l[3];break;case"s":{const s=l.map((c,u)=>u%2?c+r:c+t);a.push({key:"S",data:s}),t=s[2],r=s[3];break}case"T":a.push({key:"T",data:[...l]}),t=l[0],r=l[1];break;case"t":t+=l[0],r+=l[1],a.push({key:"T",data:[t,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=n,r=i}return a}function h6(e){const t=[];let r="",n=0,i=0,a=0,o=0,l=0,s=0;for(const{key:c,data:u}of e){switch(c){case"M":t.push({key:"M",data:[...u]}),[n,i]=u,[a,o]=u;break;case"C":t.push({key:"C",data:[...u]}),n=u[4],i=u[5],l=u[2],s=u[3];break;case"L":t.push({key:"L",data:[...u]}),[n,i]=u;break;case"H":n=u[0],t.push({key:"L",data:[n,i]});break;case"V":i=u[0],t.push({key:"L",data:[n,i]});break;case"S":{let f=0,h=0;r==="C"||r==="S"?(f=n+(n-l),h=i+(i-s)):(f=n,h=i),t.push({key:"C",data:[f,h,...u]}),l=u[0],s=u[1],n=u[2],i=u[3];break}case"T":{const[f,h]=u;let d=0,p=0;r==="Q"||r==="T"?(d=n+(n-l),p=i+(i-s)):(d=n,p=i);const g=n+2*(d-n)/3,y=i+2*(p-i)/3,m=f+2*(d-f)/3,v=h+2*(p-h)/3;t.push({key:"C",data:[g,y,m,v,f,h]}),l=d,s=p,n=f,i=h;break}case"Q":{const[f,h,d,p]=u,g=n+2*(f-n)/3,y=i+2*(h-i)/3,m=d+2*(f-d)/3,v=p+2*(h-p)/3;t.push({key:"C",data:[g,y,m,v,d,p]}),l=f,s=h,n=d,i=p;break}case"A":{const f=Math.abs(u[0]),h=Math.abs(u[1]),d=u[2],p=u[3],g=u[4],y=u[5],m=u[6];f===0||h===0?(t.push({key:"C",data:[n,i,y,m,y,m]}),n=y,i=m):(n!==y||i!==m)&&(d6(n,i,y,m,f,h,d,p,g).forEach(function(v){t.push({key:"C",data:v})}),n=y,i=m);break}case"Z":t.push({key:"Z",data:[]}),n=a,i=o}r=c}return t}function Cu(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function d6(e,t,r,n,i,a,o,l,s,c){const u=(f=o,Math.PI*f/180);var f;let h=[],d=0,p=0,g=0,y=0;if(c)[d,p,g,y]=c;else{[e,t]=Cu(e,t,-u),[r,n]=Cu(r,n,-u);const F=(e-r)/2,N=(t-n)/2;let D=F*F/(i*i)+N*N/(a*a);D>1&&(D=Math.sqrt(D),i*=D,a*=D);const j=i*i,B=a*a,L=j*B-j*N*N-B*F*F,W=j*N*N+B*F*F,T=(l===s?-1:1)*Math.sqrt(Math.abs(L/W));g=T*i*N/a+(e+r)/2,y=T*-a*F/i+(t+n)/2,d=Math.asin(parseFloat(((t-y)/a).toFixed(9))),p=Math.asin(parseFloat(((n-y)/a).toFixed(9))),e<g&&(d=Math.PI-d),r<g&&(p=Math.PI-p),d<0&&(d=2*Math.PI+d),p<0&&(p=2*Math.PI+p),s&&d>p&&(d-=2*Math.PI),!s&&p>d&&(p-=2*Math.PI)}let m=p-d;if(Math.abs(m)>120*Math.PI/180){const F=p,N=r,D=n;p=s&&p>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,h=d6(r=g+i*Math.cos(p),n=y+a*Math.sin(p),N,D,i,a,o,0,s,[p,F,g,y])}m=p-d;const v=Math.cos(d),b=Math.sin(d),S=Math.cos(p),C=Math.sin(p),w=Math.tan(m/4),_=4/3*i*w,P=4/3*a*w,I=[e,t],$=[e+_*b,t-P*v],A=[r+_*C,n-P*S],M=[r,n];if($[0]=2*I[0]-$[0],$[1]=2*I[1]-$[1],c)return[$,A,M].concat(h);{h=[$,A,M].concat(h);const F=[];for(let N=0;N<h.length;N+=3){const D=Cu(h[N][0],h[N][1],u),j=Cu(h[N+1][0],h[N+1][1],u),B=Cu(h[N+2][0],h[N+2][1],u);F.push([D[0],D[1],j[0],j[1],B[0],B[1]])}return F}}const SSe={randOffset:function(e,t){return Se(e,t)},randOffsetWithRange:function(e,t,r){return vm(e,t,r)},ellipse:function(e,t,r,n,i){const a=g6(r,n,i);return Yw(e,t,i,a).opset},doubleLineOps:function(e,t,r,n,i){return So(e,t,r,n,i,!0)}};function p6(e,t,r,n,i){return{type:"path",ops:So(e,t,r,n,i)}}function wp(e,t,r){const n=(e||[]).length;if(n>2){const i=[];for(let a=0;a<n-1;a++)i.push(...So(e[a][0],e[a][1],e[a+1][0],e[a+1][1],r));return t&&i.push(...So(e[n-1][0],e[n-1][1],e[0][0],e[0][1],r)),{type:"path",ops:i}}return n===2?p6(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function CSe(e,t,r,n,i){return function(a,o){return wp(a,!0,o)}([[e,t],[e+r,t],[e+r,t+n],[e,t+n]],i)}function iL(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,n=Bd(r[0],1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:Bd(r[0],1.5*(1+.22*t.roughness),lL(t));for(let a=1;a<r.length;a++){const o=r[a];if(o.length){const l=Bd(o,1*(1+.2*t.roughness),t),s=t.disableMultiStroke?[]:Bd(o,1.5*(1+.22*t.roughness),lL(t));for(const c of l)c.op!=="move"&&n.push(c);for(const c of s)c.op!=="move"&&i.push(c)}}return{type:"path",ops:n.concat(i)}}return{type:"path",ops:[]}}function g6(e,t,r){const n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),i=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),a=2*Math.PI/i;let o=Math.abs(e/2),l=Math.abs(t/2);const s=1-r.curveFitting;return o+=Se(o*s,r),l+=Se(l*s,r),{increment:a,rx:o,ry:l}}function Yw(e,t,r,n){const[i,a]=sL(n.increment,e,t,n.rx,n.ry,1,n.increment*vm(.1,vm(.4,1,r),r),r);let o=xm(i,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[l]=sL(n.increment,e,t,n.rx,n.ry,1.5,0,r),s=xm(l,null,r);o=o.concat(s)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function aL(e,t,r,n,i,a,o,l,s){const c=e,u=t;let f=Math.abs(r/2),h=Math.abs(n/2);f+=Se(.01*f,s),h+=Se(.01*h,s);let d=i,p=a;for(;d<0;)d+=2*Math.PI,p+=2*Math.PI;p-d>2*Math.PI&&(d=0,p=2*Math.PI);const g=2*Math.PI/s.curveStepCount,y=Math.min(g/2,(p-d)/2),m=cL(y,c,u,f,h,d,p,1,s);if(!s.disableMultiStroke){const v=cL(y,c,u,f,h,d,p,1.5,s);m.push(...v)}return o&&(l?m.push(...So(c,u,c+f*Math.cos(d),u+h*Math.sin(d),s),...So(c,u,c+f*Math.cos(p),u+h*Math.sin(p),s)):m.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+f*Math.cos(d),u+h*Math.sin(d)]})),{type:"path",ops:m}}function oL(e,t){const r=h6(f6(z2(e))),n=[];let i=[0,0],a=[0,0];for(const{key:o,data:l}of r)switch(o){case"M":a=[l[0],l[1]],i=[l[0],l[1]];break;case"L":n.push(...So(a[0],a[1],l[0],l[1],t)),a=[l[0],l[1]];break;case"C":{const[s,c,u,f,h,d]=l;n.push(..._Se(s,c,u,f,h,d,a,t)),a=[h,d];break}case"Z":n.push(...So(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:"path",ops:n}}function tx(e,t){const r=[];for(const n of e)if(n.length){const i=t.maxRandomnessOffset||0,a=n.length;if(a>2){r.push({op:"move",data:[n[0][0]+Se(i,t),n[0][1]+Se(i,t)]});for(let o=1;o<a;o++)r.push({op:"lineTo",data:[n[o][0]+Se(i,t),n[o][1]+Se(i,t)]})}}return{type:"fillPath",ops:r}}function cs(e,t){return function(r,n){let i=r.fillStyle||"hachure";if(!Gr[i])switch(i){case"zigzag":Gr[i]||(Gr[i]=new mSe(n));break;case"cross-hatch":Gr[i]||(Gr[i]=new ySe(n));break;case"dots":Gr[i]||(Gr[i]=new vSe(n));break;case"dashed":Gr[i]||(Gr[i]=new xSe(n));break;case"zigzag-line":Gr[i]||(Gr[i]=new bSe(n));break;default:i="hachure",Gr[i]||(Gr[i]=new F2(n))}return Gr[i]}(t,SSe).fillPolygons(e,t)}function lL(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function m6(e){return e.randomizer||(e.randomizer=new wSe(e.seed||0)),e.randomizer.next()}function vm(e,t,r,n=1){return r.roughness*n*(m6(r)*(t-e)+e)}function Se(e,t,r=1){return vm(-e,e,t,r)}function So(e,t,r,n,i,a=!1){const o=a?i.disableMultiStrokeFill:i.disableMultiStroke,l=Kw(e,t,r,n,i,!0,!1);if(o)return l;const s=Kw(e,t,r,n,i,!0,!0);return l.concat(s)}function Kw(e,t,r,n,i,a,o){const l=Math.pow(e-r,2)+Math.pow(t-n,2),s=Math.sqrt(l);let c=1;c=s<200?1:s>500?.4:-.0016668*s+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>l&&(u=s/10);const f=u/2,h=.2+.2*m6(i);let d=i.bowing*i.maxRandomnessOffset*(n-t)/200,p=i.bowing*i.maxRandomnessOffset*(e-r)/200;d=Se(d,i,c),p=Se(p,i,c);const g=[],y=()=>Se(f,i,c),m=()=>Se(u,i,c),v=i.preserveVertices;return o?g.push({op:"move",data:[e+(v?0:y()),t+(v?0:y())]}):g.push({op:"move",data:[e+(v?0:Se(u,i,c)),t+(v?0:Se(u,i,c))]}),o?g.push({op:"bcurveTo",data:[d+e+(r-e)*h+y(),p+t+(n-t)*h+y(),d+e+2*(r-e)*h+y(),p+t+2*(n-t)*h+y(),r+(v?0:y()),n+(v?0:y())]}):g.push({op:"bcurveTo",data:[d+e+(r-e)*h+m(),p+t+(n-t)*h+m(),d+e+2*(r-e)*h+m(),p+t+2*(n-t)*h+m(),r+(v?0:m()),n+(v?0:m())]}),g}function Bd(e,t,r){if(!e.length)return[];const n=[];n.push([e[0][0]+Se(t,r),e[0][1]+Se(t,r)]),n.push([e[0][0]+Se(t,r),e[0][1]+Se(t,r)]);for(let i=1;i<e.length;i++)n.push([e[i][0]+Se(t,r),e[i][1]+Se(t,r)]),i===e.length-1&&n.push([e[i][0]+Se(t,r),e[i][1]+Se(t,r)]);return xm(n,null,r)}function xm(e,t,r){const n=e.length,i=[];if(n>3){const a=[],o=1-r.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let l=1;l+2<n;l++){const s=e[l];a[0]=[s[0],s[1]],a[1]=[s[0]+(o*e[l+1][0]-o*e[l-1][0])/6,s[1]+(o*e[l+1][1]-o*e[l-1][1])/6],a[2]=[e[l+1][0]+(o*e[l][0]-o*e[l+2][0])/6,e[l+1][1]+(o*e[l][1]-o*e[l+2][1])/6],a[3]=[e[l+1][0],e[l+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}}else n===3?(i.push({op:"move",data:[e[1][0],e[1][1]]}),i.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):n===2&&i.push(...Kw(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return i}function sL(e,t,r,n,i,a,o,l){const s=[],c=[];if(l.roughness===0){e/=4,c.push([t+n*Math.cos(-e),r+i*Math.sin(-e)]);for(let u=0;u<=2*Math.PI;u+=e){const f=[t+n*Math.cos(u),r+i*Math.sin(u)];s.push(f),c.push(f)}c.push([t+n*Math.cos(0),r+i*Math.sin(0)]),c.push([t+n*Math.cos(e),r+i*Math.sin(e)])}else{const u=Se(.5,l)-Math.PI/2;c.push([Se(a,l)+t+.9*n*Math.cos(u-e),Se(a,l)+r+.9*i*Math.sin(u-e)]);const f=2*Math.PI+u-.01;for(let h=u;h<f;h+=e){const d=[Se(a,l)+t+n*Math.cos(h),Se(a,l)+r+i*Math.sin(h)];s.push(d),c.push(d)}c.push([Se(a,l)+t+n*Math.cos(u+2*Math.PI+.5*o),Se(a,l)+r+i*Math.sin(u+2*Math.PI+.5*o)]),c.push([Se(a,l)+t+.98*n*Math.cos(u+o),Se(a,l)+r+.98*i*Math.sin(u+o)]),c.push([Se(a,l)+t+.9*n*Math.cos(u+.5*o),Se(a,l)+r+.9*i*Math.sin(u+.5*o)])}return[c,s]}function cL(e,t,r,n,i,a,o,l,s){const c=a+Se(.1,s),u=[];u.push([Se(l,s)+t+.9*n*Math.cos(c-e),Se(l,s)+r+.9*i*Math.sin(c-e)]);for(let f=c;f<=o;f+=e)u.push([Se(l,s)+t+n*Math.cos(f),Se(l,s)+r+i*Math.sin(f)]);return u.push([t+n*Math.cos(o),r+i*Math.sin(o)]),u.push([t+n*Math.cos(o),r+i*Math.sin(o)]),xm(u,null,s)}function _Se(e,t,r,n,i,a,o,l){const s=[],c=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+.3];let u=[0,0];const f=l.disableMultiStroke?1:2,h=l.preserveVertices;for(let d=0;d<f;d++)d===0?s.push({op:"move",data:[o[0],o[1]]}):s.push({op:"move",data:[o[0]+(h?0:Se(c[0],l)),o[1]+(h?0:Se(c[0],l))]}),u=h?[i,a]:[i+Se(c[d],l),a+Se(c[d],l)],s.push({op:"bcurveTo",data:[e+Se(c[d],l),t+Se(c[d],l),r+Se(c[d],l),n+Se(c[d],l),u[0],u[1]]});return s}function _u(e){return[...e]}function uL(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const n=[];if(r===3)n.push(_u(e[0]),_u(e[1]),_u(e[2]),_u(e[2]));else{const i=[];i.push(e[0],e[0]);for(let l=1;l<e.length;l++)i.push(e[l]),l===e.length-1&&i.push(e[l]);const a=[],o=1-t;n.push(_u(i[0]));for(let l=1;l+2<i.length;l++){const s=i[l];a[0]=[s[0],s[1]],a[1]=[s[0]+(o*i[l+1][0]-o*i[l-1][0])/6,s[1]+(o*i[l+1][1]-o*i[l-1][1])/6],a[2]=[i[l+1][0]+(o*i[l][0]-o*i[l+2][0])/6,i[l+1][1]+(o*i[l][1]-o*i[l+2][1])/6],a[3]=[i[l+1][0],i[l+1][1]],n.push(a[1],a[2],a[3])}}return n}function kp(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function ESe(e,t,r){const n=kp(t,r);if(n===0)return kp(e,t);let i=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/n;return i=Math.max(0,Math.min(1,i)),kp(e,Xo(t,r,i))}function Xo(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function Gw(e,t,r,n){const i=n||[];if(function(l,s){const c=l[s+0],u=l[s+1],f=l[s+2],h=l[s+3];let d=3*u[0]-2*c[0]-h[0];d*=d;let p=3*u[1]-2*c[1]-h[1];p*=p;let g=3*f[0]-2*h[0]-c[0];g*=g;let y=3*f[1]-2*h[1]-c[1];return y*=y,d<g&&(d=g),p<y&&(p=y),d+p}(e,t)<r){const l=e[t+0];i.length?(a=i[i.length-1],o=l,Math.sqrt(kp(a,o))>1&&i.push(l)):i.push(l),i.push(e[t+3])}else{const s=e[t+0],c=e[t+1],u=e[t+2],f=e[t+3],h=Xo(s,c,.5),d=Xo(c,u,.5),p=Xo(u,f,.5),g=Xo(h,d,.5),y=Xo(d,p,.5),m=Xo(g,y,.5);Gw([s,h,g,m],0,r,i),Gw([m,y,p,f],0,r,i)}var a,o;return i}function TSe(e,t){return bm(e,0,e.length,t)}function bm(e,t,r,n,i){const a=i||[],o=e[t],l=e[r-1];let s=0,c=1;for(let u=t+1;u<r-1;++u){const f=ESe(e[u],o,l);f>s&&(s=f,c=u)}return Math.sqrt(s)>n?(bm(e,t,c+1,n,a),bm(e,c,r,n,a)):(a.length||a.push(o),a.push(l)),a}function rx(e,t=.15,r){const n=[],i=(e.length-1)/3;for(let a=0;a<i;a++)Gw(e,3*a,t,n);return r&&r>0?bm(n,0,n.length,r):n}const fn="none";class wm{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,n){return{shape:t,sets:r||[],options:n||this.defaultOptions}}line(t,r,n,i,a){const o=this._o(a);return this._d("line",[p6(t,r,n,i,o)],o)}rectangle(t,r,n,i,a){const o=this._o(a),l=[],s=CSe(t,r,n,i,o);if(o.fill){const c=[[t,r],[t+n,r],[t+n,r+i],[t,r+i]];o.fillStyle==="solid"?l.push(tx([c],o)):l.push(cs([c],o))}return o.stroke!==fn&&l.push(s),this._d("rectangle",l,o)}ellipse(t,r,n,i,a){const o=this._o(a),l=[],s=g6(n,i,o),c=Yw(t,r,o,s);if(o.fill)if(o.fillStyle==="solid"){const u=Yw(t,r,o,s).opset;u.type="fillPath",l.push(u)}else l.push(cs([c.estimatedPoints],o));return o.stroke!==fn&&l.push(c.opset),this._d("ellipse",l,o)}circle(t,r,n,i){const a=this.ellipse(t,r,n,n,i);return a.shape="circle",a}linearPath(t,r){const n=this._o(r);return this._d("linearPath",[wp(t,!1,n)],n)}arc(t,r,n,i,a,o,l=!1,s){const c=this._o(s),u=[],f=aL(t,r,n,i,a,o,l,!0,c);if(l&&c.fill)if(c.fillStyle==="solid"){const h=Object.assign({},c);h.disableMultiStroke=!0;const d=aL(t,r,n,i,a,o,!0,!1,h);d.type="fillPath",u.push(d)}else u.push(function(h,d,p,g,y,m,v){const b=h,S=d;let C=Math.abs(p/2),w=Math.abs(g/2);C+=Se(.01*C,v),w+=Se(.01*w,v);let _=y,P=m;for(;_<0;)_+=2*Math.PI,P+=2*Math.PI;P-_>2*Math.PI&&(_=0,P=2*Math.PI);const I=(P-_)/v.curveStepCount,$=[];for(let A=_;A<=P;A+=I)$.push([b+C*Math.cos(A),S+w*Math.sin(A)]);return $.push([b+C*Math.cos(P),S+w*Math.sin(P)]),$.push([b,S]),cs([$],v)}(t,r,n,i,a,o,c));return c.stroke!==fn&&u.push(f),this._d("arc",u,c)}curve(t,r){const n=this._o(r),i=[],a=iL(t,n);if(n.fill&&n.fill!==fn)if(n.fillStyle==="solid"){const o=iL(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],l=t;if(l.length){const s=typeof l[0][0]=="number"?[l]:l;for(const c of s)c.length<3?o.push(...c):c.length===3?o.push(...rx(uL([c[0],c[0],c[1],c[2]]),10,(1+n.roughness)/2)):o.push(...rx(uL(c),10,(1+n.roughness)/2))}o.length&&i.push(cs([o],n))}return n.stroke!==fn&&i.push(a),this._d("curve",i,n)}polygon(t,r){const n=this._o(r),i=[],a=wp(t,!0,n);return n.fill&&(n.fillStyle==="solid"?i.push(tx([t],n)):i.push(cs([t],n))),n.stroke!==fn&&i.push(a),this._d("polygon",i,n)}path(t,r){const n=this._o(r),i=[];if(!t)return this._d("path",i,n);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=n.fill&&n.fill!=="transparent"&&n.fill!==fn,o=n.stroke!==fn,l=!!(n.simplification&&n.simplification<1),s=function(u,f,h){const d=h6(f6(z2(u))),p=[];let g=[],y=[0,0],m=[];const v=()=>{m.length>=4&&g.push(...rx(m,f)),m=[]},b=()=>{v(),g.length&&(p.push(g),g=[])};for(const{key:C,data:w}of d)switch(C){case"M":b(),y=[w[0],w[1]],g.push(y);break;case"L":v(),g.push([w[0],w[1]]);break;case"C":if(!m.length){const _=g.length?g[g.length-1]:y;m.push([_[0],_[1]])}m.push([w[0],w[1]]),m.push([w[2],w[3]]),m.push([w[4],w[5]]);break;case"Z":v(),g.push([y[0],y[1]])}if(b(),!h)return p;const S=[];for(const C of p){const w=TSe(C,h);w.length&&S.push(w)}return S}(t,1,l?4-4*(n.simplification||1):(1+n.roughness)/2),c=oL(t,n);if(a)if(n.fillStyle==="solid")if(s.length===1){const u=oL(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(u.ops)})}else i.push(tx(s,n));else i.push(cs(s,n));return o&&(l?s.forEach(u=>{i.push(wp(u,!1,n))}):i.push(c)),this._d("path",i,n)}opsToPath(t,r){let n="";for(const i of t.ops){const a=typeof r=="number"&&r>=0?i.data.map(o=>+o.toFixed(r)):i.data;switch(i.op){case"move":n+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":n+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":n+=`L${a[0]} ${a[1]} `}}return n.trim()}toPaths(t){const r=t.sets||[],n=t.options||this.defaultOptions,i=[];for(const a of r){let o=null;switch(a.type){case"path":o={d:this.opsToPath(a),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:fn};break;case"fillPath":o={d:this.opsToPath(a),stroke:fn,strokeWidth:0,fill:n.fill||fn};break;case"fillSketch":o=this.fillSketch(a,n)}o&&i.push(o)}return i}fillSketch(t,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||fn,strokeWidth:n,fill:fn}}_mergedShape(t){return t.filter((r,n)=>n===0||r.op!=="move")}}class PSe{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new wm(r)}draw(t){const r=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(const o of r)switch(o.type){case"path":i.save(),i.strokeStyle=n.stroke==="none"?"transparent":n.stroke,i.lineWidth=n.strokeWidth,n.strokeLineDash&&i.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(i.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(i,o,a),i.restore();break;case"fillPath":{i.save(),i.fillStyle=n.fill||"";const l=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,o,a,l),i.restore();break}case"fillSketch":this.fillSketch(i,o,n)}}fillSketch(t,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2),t.save(),n.fillLineDash&&t.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(t.lineDashOffset=n.fillLineDashOffset),t.strokeStyle=n.fill||"",t.lineWidth=i,this._drawToContext(t,r,n.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,n,i="nonzero"){t.beginPath();for(const a of r.ops){const o=typeof n=="number"&&n>=0?a.data.map(l=>+l.toFixed(n)):a.data;switch(a.op){case"move":t.moveTo(o[0],o[1]);break;case"bcurveTo":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":t.lineTo(o[0],o[1])}}r.type==="fillPath"?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,n,i,a){const o=this.gen.line(t,r,n,i,a);return this.draw(o),o}rectangle(t,r,n,i,a){const o=this.gen.rectangle(t,r,n,i,a);return this.draw(o),o}ellipse(t,r,n,i,a){const o=this.gen.ellipse(t,r,n,i,a);return this.draw(o),o}circle(t,r,n,i){const a=this.gen.circle(t,r,n,i);return this.draw(a),a}linearPath(t,r){const n=this.gen.linearPath(t,r);return this.draw(n),n}polygon(t,r){const n=this.gen.polygon(t,r);return this.draw(n),n}arc(t,r,n,i,a,o,l=!1,s){const c=this.gen.arc(t,r,n,i,a,o,l,s);return this.draw(c),c}curve(t,r){const n=this.gen.curve(t,r);return this.draw(n),n}path(t,r){const n=this.gen.path(t,r);return this.draw(n),n}}const Fd="http://www.w3.org/2000/svg";class ASe{constructor(t,r){this.svg=t,this.gen=new wm(r)}draw(t){const r=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,a=i.createElementNS(Fd,"g"),o=t.options.fixedDecimalPlaceDigits;for(const l of r){let s=null;switch(l.type){case"path":s=i.createElementNS(Fd,"path"),s.setAttribute("d",this.opsToPath(l,o)),s.setAttribute("stroke",n.stroke),s.setAttribute("stroke-width",n.strokeWidth+""),s.setAttribute("fill","none"),n.strokeLineDash&&s.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&s.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":s=i.createElementNS(Fd,"path"),s.setAttribute("d",this.opsToPath(l,o)),s.setAttribute("stroke","none"),s.setAttribute("stroke-width","0"),s.setAttribute("fill",n.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||s.setAttribute("fill-rule","evenodd");break;case"fillSketch":s=this.fillSketch(i,l,n)}s&&a.appendChild(s)}return a}fillSketch(t,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);const a=t.createElementNS(Fd,"path");return a.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),a.setAttribute("stroke",n.fill||""),a.setAttribute("stroke-width",i+""),a.setAttribute("fill","none"),n.fillLineDash&&a.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,n,i,a){const o=this.gen.line(t,r,n,i,a);return this.draw(o)}rectangle(t,r,n,i,a){const o=this.gen.rectangle(t,r,n,i,a);return this.draw(o)}ellipse(t,r,n,i,a){const o=this.gen.ellipse(t,r,n,i,a);return this.draw(o)}circle(t,r,n,i){const a=this.gen.circle(t,r,n,i);return this.draw(a)}linearPath(t,r){const n=this.gen.linearPath(t,r);return this.draw(n)}polygon(t,r){const n=this.gen.polygon(t,r);return this.draw(n)}arc(t,r,n,i,a,o,l=!1,s){const c=this.gen.arc(t,r,n,i,a,o,l,s);return this.draw(c)}curve(t,r){const n=this.gen.curve(t,r);return this.draw(n)}path(t,r){const n=this.gen.path(t,r);return this.draw(n)}}var ce={canvas:(e,t)=>new PSe(e,t),svg:(e,t)=>new ASe(e,t),generator:e=>new wm(e),newSeed:()=>wm.newSeed()},ke=k(async(e,t,r)=>{var f,h;let n;const i=t.useHtmlLabels||qt((f=Ue())==null?void 0:f.htmlLabels);r?n=r:n="node default";const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=a.insert("g").attr("class","label").attr("style",_r(t.labelStyle));let l;t.label===void 0?l="":l=typeof t.label=="string"?t.label:t.label[0];const s=await Do(o,qn(Jl(l),Ue()),{useHtmlLabels:i,width:t.width||((h=Ue().flowchart)==null?void 0:h.wrappingWidth),cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let c=s.getBBox();const u=((t==null?void 0:t.padding)??0)/2;if(i){const d=s.children[0],p=De(s),g=d.getElementsByTagName("img");if(g){const y=l.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...g].map(m=>new Promise(v=>{function b(){if(m.style.display="flex",m.style.flexDirection="column",y){const S=Ue().fontSize?Ue().fontSize:window.getComputedStyle(document.body).fontSize,C=5,[w=i5.fontSize]=mv(S),_=w*C+"px";m.style.minWidth=_,m.style.maxWidth=_}else m.style.width="100%";v(m)}k(b,"setupImage"),setTimeout(()=>{m.complete&&b()}),m.addEventListener("error",b),m.addEventListener("load",b)})))}c=d.getBoundingClientRect(),p.attr("width",c.width),p.attr("height",c.height)}return i?o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):o.attr("transform","translate(0, "+-c.height/2+")"),t.centerLabel&&o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:a,bbox:c,halfPadding:u,label:o}},"labelHelper"),nx=k(async(e,t,r)=>{var s,c,u,f,h,d;const n=r.useHtmlLabels||qt((c=(s=Ue())==null?void 0:s.flowchart)==null?void 0:c.htmlLabels),i=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await Do(i,qn(Jl(t),Ue()),{useHtmlLabels:n,width:r.width||((f=(u=Ue())==null?void 0:u.flowchart)==null?void 0:f.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let o=a.getBBox();const l=r.padding/2;if(qt((d=(h=Ue())==null?void 0:h.flowchart)==null?void 0:d.htmlLabels)){const p=a.children[0],g=De(a);o=p.getBoundingClientRect(),g.attr("width",o.width),g.attr("height",o.height)}return n?i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):i.attr("transform","translate(0, "+-o.height/2+")"),r.centerLabel&&i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:e,bbox:o,halfPadding:l,label:i}},"insertLabel"),pe=k((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),we=k((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function Ie(e){const t=e.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}k(Ie,"createPathFromPoints");function Co(e,t,r,n,i,a){const o=[],s=r-e,c=n-t,u=s/a,f=2*Math.PI/u,h=t+c/2;for(let d=0;d<=50;d++){const p=d/50,g=e+p*s,y=h+i*Math.sin(f*(g-e));o.push({x:g,y})}return o}k(Co,"generateFullSineWavePoints");function Zf(e,t,r,n,i,a){const o=[],l=i*Math.PI/180,u=(a*Math.PI/180-l)/(n-1);for(let f=0;f<n;f++){const h=l+f*u,d=e+r*Math.cos(h),p=t+r*Math.sin(h);o.push({x:-d,y:-p})}return o}k(Zf,"generateCirclePoints");var OSe=k((e,t)=>{var r=e.x,n=e.y,i=t.x-r,a=t.y-n,o=e.width/2,l=e.height/2,s,c;return Math.abs(a)*o>Math.abs(i)*l?(a<0&&(l=-l),s=a===0?0:l*i/a,c=l):(i<0&&(o=-o),s=o,c=i===0?0:o*a/i),{x:r+s,y:n+c}},"intersectRect"),Uc=OSe;function y6(e,t){t&&e.attr("style",t)}k(y6,"applyStyle");async function v6(e){const t=De(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),n=Ue();let i=e.label;e.label&&pc(e.label)&&(i=await t2(e.label.replace(Fc.lineBreakRegex,`
|
|
446
|
+
`),n));const o='<span class="'+(e.isNode?"nodeLabel":"edgeLabel")+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+i+"</span>";return r.html(qn(o,n)),y6(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}k(v6,"addHtmlLabel");var MSe=k(async(e,t,r,n)=>{let i=e||"";if(typeof i=="object"&&(i=i[0]),qt(Ue().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"<br />"),Y.info("vertexText"+i);const a={isNode:n,label:Jl(i).replace(/fa[blrs]?:fa-[\w-]+/g,l=>`<i class='${l.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")};return await v6(a)}else{const a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",t.replace("color:","fill:"));let o=[];typeof i=="string"?o=i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?o=i:o=[];for(const l of o){const s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.setAttribute("dy","1em"),s.setAttribute("x","0"),r?s.setAttribute("class","title-row"):s.setAttribute("class","row"),s.textContent=l.trim(),a.appendChild(s)}return a}},"createLabel"),cl=MSe,No=k((e,t,r,n,i)=>["M",e+i,t,"H",e+r-i,"A",i,i,0,0,1,e+r,t+i,"V",t+n-i,"A",i,i,0,0,1,e+r-i,t+n,"H",e+i,"A",i,i,0,0,1,e,t+n-i,"V",t+i,"A",i,i,0,0,1,e+i,t,"Z"].join(" "),"createRoundedRectPathD"),x6=k(async(e,t)=>{Y.info("Creating subgraph rect for ",t.id,t);const r=Ue(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:o}=n,{labelStyles:l,nodeStyles:s,borderStyles:c,backgroundStyles:u}=he(t),f=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),h=qt(r.flowchart.htmlLabels),d=f.insert("g").attr("class","cluster-label "),p=await Do(d,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0});let g=p.getBBox();if(qt(r.flowchart.htmlLabels)){const _=p.children[0],P=De(p);g=_.getBoundingClientRect(),P.attr("width",g.width),P.attr("height",g.height)}const y=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.width<=g.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const m=t.height,v=t.x-y/2,b=t.y-m/2;Y.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){const _=ce.svg(f),P=fe(t,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:i}),I=_.path(No(v,b,y,m,0),P);S=f.insert(()=>(Y.debug("Rough node insert CXC",I),I),":first-child"),S.select("path:nth-child(2)").attr("style",c.join(";")),S.select("path").attr("style",u.join(";").replace("fill","stroke"))}else S=f.insert("rect",":first-child"),S.attr("style",s).attr("rx",t.rx).attr("ry",t.ry).attr("x",v).attr("y",b).attr("width",y).attr("height",m);const{subGraphTitleTopMargin:C}=x2(r);if(d.attr("transform",`translate(${t.x-g.width/2}, ${t.y-t.height/2+C})`),l){const _=d.select("span");_&&_.attr("style",l)}const w=S.node().getBBox();return t.offsetX=0,t.width=w.width,t.height=w.height,t.offsetY=g.height-t.padding/2,t.intersect=function(_){return Uc(t,_)},{cluster:f,labelBBox:g}},"rect"),LSe=k((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.id),n=r.insert("rect",":first-child"),i=0*t.padding,a=i/2;n.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const o=n.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(l){return Uc(t,l)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),ISe=k(async(e,t)=>{const r=Ue(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:a,compositeBackground:o,compositeTitleBackground:l,nodeBorder:s}=n,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),u=c.insert("g",":first-child"),f=c.insert("g").attr("class","cluster-label");let h=c.append("rect");const d=f.node().appendChild(await cl(t.label,t.labelStyle,void 0,!0));let p=d.getBBox();if(qt(r.flowchart.htmlLabels)){const I=d.children[0],$=De(d);p=I.getBoundingClientRect(),$.attr("width",p.width),$.attr("height",p.height)}const g=0*t.padding,y=g/2,m=(t.width<=p.width+t.padding?p.width+t.padding:t.width)+g;t.width<=p.width+t.padding?t.diff=(m-t.width)/2-t.padding:t.diff=-t.padding;const v=t.height+g,b=t.height+g-p.height-6,S=t.x-m/2,C=t.y-v/2;t.width=m;const w=t.y-t.height/2-y+p.height+2;let _;if(t.look==="handDrawn"){const I=t.cssClasses.includes("statediagram-cluster-alt"),$=ce.svg(c),A=t.rx||t.ry?$.path(No(S,C,m,v,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:s,seed:i}):$.rectangle(S,C,m,v,{seed:i});_=c.insert(()=>A,":first-child");const M=$.rectangle(S,w,m,b,{fill:I?a:o,fillStyle:I?"hachure":"solid",stroke:s,seed:i});_=c.insert(()=>A,":first-child"),h=c.insert(()=>M)}else _=u.insert("rect",":first-child"),_.attr("class","outer").attr("x",S).attr("y",C).attr("width",m).attr("height",v).attr("data-look",t.look),h.attr("class","inner").attr("x",S).attr("y",w).attr("width",m).attr("height",b);f.attr("transform",`translate(${t.x-p.width/2}, ${C+1-(qt(r.flowchart.htmlLabels)?0:3)})`);const P=_.node().getBBox();return t.height=P.height,t.offsetX=0,t.offsetY=p.height-t.padding/2,t.labelBBox=p,t.intersect=function(I){return Uc(t,I)},{cluster:c,labelBBox:p}},"roundedWithTitle"),$Se=k(async(e,t)=>{Y.info("Creating subgraph rect for ",t.id,t);const r=Ue(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:o}=n,{labelStyles:l,nodeStyles:s,borderStyles:c,backgroundStyles:u}=he(t),f=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),h=qt(r.flowchart.htmlLabels),d=f.insert("g").attr("class","cluster-label "),p=await Do(d,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0,width:t.width});let g=p.getBBox();if(qt(r.flowchart.htmlLabels)){const _=p.children[0],P=De(p);g=_.getBoundingClientRect(),P.attr("width",g.width),P.attr("height",g.height)}const y=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.width<=g.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const m=t.height,v=t.x-y/2,b=t.y-m/2;Y.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){const _=ce.svg(f),P=fe(t,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:i}),I=_.path(No(v,b,y,m,t.rx),P);S=f.insert(()=>(Y.debug("Rough node insert CXC",I),I),":first-child"),S.select("path:nth-child(2)").attr("style",c.join(";")),S.select("path").attr("style",u.join(";").replace("fill","stroke"))}else S=f.insert("rect",":first-child"),S.attr("style",s).attr("rx",t.rx).attr("ry",t.ry).attr("x",v).attr("y",b).attr("width",y).attr("height",m);const{subGraphTitleTopMargin:C}=x2(r);if(d.attr("transform",`translate(${t.x-g.width/2}, ${t.y-t.height/2+C})`),l){const _=d.select("span");_&&_.attr("style",l)}const w=S.node().getBBox();return t.offsetX=0,t.width=w.width,t.height=w.height,t.offsetY=g.height-t.padding/2,t.intersect=function(_){return Uc(t,_)},{cluster:f,labelBBox:g}},"kanbanSection"),DSe=k((e,t)=>{const r=Ue(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:a}=n,o=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),l=o.insert("g",":first-child"),s=0*t.padding,c=t.width+s;t.diff=-t.padding;const u=t.height+s,f=t.x-c/2,h=t.y-u/2;t.width=c;let d;if(t.look==="handDrawn"){const y=ce.svg(o).rectangle(f,h,c,u,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:i});d=o.insert(()=>y,":first-child")}else d=l.insert("rect",":first-child"),d.attr("class","divider").attr("x",f).attr("y",h).attr("width",c).attr("height",u).attr("data-look",t.look);const p=d.node().getBBox();return t.height=p.height,t.offsetX=0,t.offsetY=0,t.intersect=function(g){return Uc(t,g)},{cluster:o,labelBBox:{}}},"divider"),NSe=x6,jSe={rect:x6,squareRect:NSe,roundedWithTitle:ISe,noteGroup:LSe,divider:DSe,kanbanSection:$Se},b6=new Map,RSe=k(async(e,t)=>{const r=t.shape||"rect",n=await jSe[r](e,t);return b6.set(t.id,n),n},"insertCluster"),FTe=k(()=>{b6=new Map},"clear");function w6(e,t){return e.intersect(t)}k(w6,"intersectNode");var BSe=w6;function k6(e,t,r,n){var i=e.x,a=e.y,o=i-n.x,l=a-n.y,s=Math.sqrt(t*t*l*l+r*r*o*o),c=Math.abs(t*r*o/s);n.x<i&&(c=-c);var u=Math.abs(t*r*l/s);return n.y<a&&(u=-u),{x:i+c,y:a+u}}k(k6,"intersectEllipse");var S6=k6;function C6(e,t,r){return S6(e,t,t,r)}k(C6,"intersectCircle");var FSe=C6;function _6(e,t,r,n){{const i=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,l=i*r.x+a*r.y+o,s=i*n.x+a*n.y+o,c=1e-6;if(l!==0&&s!==0&&Xw(l,s))return;const u=n.y-r.y,f=r.x-n.x,h=n.x*r.y-r.x*n.y,d=u*e.x+f*e.y+h,p=u*t.x+f*t.y+h;if(Math.abs(d)<c&&Math.abs(p)<c&&Xw(d,p))return;const g=i*f-u*a;if(g===0)return;const y=Math.abs(g/2);let m=a*h-f*o;const v=m<0?(m-y)/g:(m+y)/g;m=u*o-i*h;const b=m<0?(m-y)/g:(m+y)/g;return{x:v,y:b}}}k(_6,"intersectLine");function Xw(e,t){return e*t>0}k(Xw,"sameSign");var zSe=_6;function E6(e,t,r){let n=e.x,i=e.y,a=[],o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(u){o=Math.min(o,u.x),l=Math.min(l,u.y)}):(o=Math.min(o,t.x),l=Math.min(l,t.y));let s=n-e.width/2-o,c=i-e.height/2-l;for(let u=0;u<t.length;u++){let f=t[u],h=t[u<t.length-1?u+1:0],d=zSe(e,r,{x:s+f.x,y:c+f.y},{x:s+h.x,y:c+h.y});d&&a.push(d)}return a.length?(a.length>1&&a.sort(function(u,f){let h=u.x-r.x,d=u.y-r.y,p=Math.sqrt(h*h+d*d),g=f.x-r.x,y=f.y-r.y,m=Math.sqrt(g*g+y*y);return p<m?-1:p===m?0:1}),a[0]):e}k(E6,"intersectPolygon");var WSe=E6,re={node:BSe,circle:FSe,ellipse:S6,polygon:WSe,rect:Uc};function T6(e,t){const{labelStyles:r}=he(t);t.labelStyle=r;const n=we(t);let i=n;n||(i="anchor");const a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),o=1,{cssStyles:l}=t,s=ce.svg(a),c=fe(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const u=s.circle(0,0,o*2,c),f=a.insert(()=>u,":first-child");return f.attr("class","anchor").attr("style",_r(l)),pe(t,f),t.intersect=function(h){return Y.info("Circle intersect",t,o,h),re.circle(t,o,h)},a}k(T6,"anchor");function Zw(e,t,r,n,i,a,o){const s=(e+r)/2,c=(t+n)/2,u=Math.atan2(n-t,r-e),f=(r-e)/2,h=(n-t)/2,d=f/i,p=h/a,g=Math.sqrt(d**2+p**2);if(g>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-g**2),m=s+y*a*Math.sin(u)*(o?-1:1),v=c-y*i*Math.cos(u)*(o?-1:1),b=Math.atan2((t-v)/a,(e-m)/i);let C=Math.atan2((n-v)/a,(r-m)/i)-b;o&&C<0&&(C+=2*Math.PI),!o&&C>0&&(C-=2*Math.PI);const w=[];for(let _=0;_<20;_++){const P=_/19,I=b+P*C,$=m+i*Math.cos(I),A=v+a*Math.sin(I);w.push({x:$,y:A})}return w}k(Zw,"generateArcPoints");async function P6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=a.width+t.padding+20,l=a.height+t.padding,s=l/2,c=s/(2.5+l/50),{cssStyles:u}=t,f=[{x:o/2,y:-l/2},{x:-o/2,y:-l/2},...Zw(-o/2,-l/2,-o/2,l/2,c,s,!1),{x:o/2,y:l/2},...Zw(o/2,l/2,o/2,-l/2,c,s,!0)],h=ce.svg(i),d=fe(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=Ie(f),g=h.path(p,d),y=i.insert(()=>g,":first-child");return y.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",u),n&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",n),y.attr("transform",`translate(${c/2}, 0)`),pe(t,y),t.intersect=function(m){return re.polygon(t,f,m)},i}k(P6,"bowTieRect");function jo(e,t,r,n){return e.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}k(jo,"insertPolygonShape");async function A6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=a.height+t.padding,l=12,s=a.width+t.padding+l,c=0,u=s,f=-o,h=0,d=[{x:c+l,y:f},{x:u,y:f},{x:u,y:h},{x:c,y:h},{x:c,y:f+l},{x:c+l,y:f}];let p;const{cssStyles:g}=t;if(t.look==="handDrawn"){const y=ce.svg(i),m=fe(t,{}),v=Ie(d),b=y.path(v,m);p=i.insert(()=>b,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),g&&p.attr("style",g)}else p=jo(i,s,o,d);return n&&p.attr("style",n),pe(t,p),t.intersect=function(y){return re.polygon(t,d,y)},i}k(A6,"card");function O6(e,t){const{nodeStyles:r}=he(t);t.label="";const n=e.insert("g").attr("class",we(t)).attr("id",t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],l=ce.svg(n),s=fe(t,{});t.look!=="handDrawn"&&(s.roughness=0,s.fillStyle="solid");const c=Ie(o),u=l.path(c,s),f=n.insert(()=>u,":first-child");return i&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",i),r&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(h){return re.polygon(t,o,h)},n}k(O6,"choice");async function W2(e,t,r){const{labelStyles:n,nodeStyles:i}=he(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,halfPadding:l}=await ke(e,t,we(t)),s=(r==null?void 0:r.padding)??l,c=o.width/2+s;let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const h=ce.svg(a),d=fe(t,{}),p=h.circle(0,0,c*2,d);u=a.insert(()=>p,":first-child"),u.attr("class","basic label-container").attr("style",_r(f))}else u=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0);return pe(t,u),t.calcIntersect=function(h,d){const p=h.width/2;return re.circle(h,p,d)},t.intersect=function(h){return Y.info("Circle intersect",t,c,h),re.circle(t,c,h)},a}k(W2,"circle");function M6(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=e*2,i={x:n/2*t,y:n/2*r},a={x:-(n/2)*t,y:n/2*r},o={x:-(n/2)*t,y:-(n/2)*r},l={x:n/2*t,y:-(n/2)*r};return`M ${a.x},${a.y} L ${l.x},${l.y}
|
|
447
|
+
M ${i.x},${i.y} L ${o.x},${o.y}`}k(M6,"createLine");function L6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r,t.label="";const i=e.insert("g").attr("class",we(t)).attr("id",t.domId??t.id),a=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:o}=t,l=ce.svg(i),s=fe(t,{});t.look!=="handDrawn"&&(s.roughness=0,s.fillStyle="solid");const c=l.circle(0,0,a*2,s),u=M6(a),f=l.path(u,s),h=i.insert(()=>c,":first-child");return h.insert(()=>f),o&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",o),n&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",n),pe(t,h),t.intersect=function(d){return Y.info("crossedCircle intersect",t,{radius:a,point:d}),re.circle(t,a,d)},i}k(L6,"crossedCircle");function aa(e,t,r,n=100,i=0,a=180){const o=[],l=i*Math.PI/180,u=(a*Math.PI/180-l)/(n-1);for(let f=0;f<n;f++){const h=l+f*u,d=e+r*Math.cos(h),p=t+r*Math.sin(h);o.push({x:-d,y:-p})}return o}k(aa,"generateCirclePoints");async function I6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=a.width+(t.padding??0),s=a.height+(t.padding??0),c=Math.max(5,s*.1),{cssStyles:u}=t,f=[...aa(l/2,-s/2,c,30,-90,0),{x:-l/2-c,y:c},...aa(l/2+c*2,-c,c,20,-180,-270),...aa(l/2+c*2,c,c,20,-90,-180),{x:-l/2-c,y:-s/2},...aa(l/2,s/2,c,20,0,90)],h=[{x:l/2,y:-s/2-c},{x:-l/2,y:-s/2-c},...aa(l/2,-s/2,c,20,-90,0),{x:-l/2-c,y:-c},...aa(l/2+l*.1,-c,c,20,-180,-270),...aa(l/2+l*.1,c,c,20,-90,-180),{x:-l/2-c,y:s/2},...aa(l/2,s/2,c,20,0,90),{x:-l/2,y:s/2+c},{x:l/2,y:s/2+c}],d=ce.svg(i),p=fe(t,{fill:"none"});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const y=Ie(f).replace("Z",""),m=d.path(y,p),v=Ie(h),b=d.path(v,{...p}),S=i.insert("g",":first-child");return S.insert(()=>b,":first-child").attr("stroke-opacity",0),S.insert(()=>m,":first-child"),S.attr("class","text"),u&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",u),n&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",n),S.attr("transform",`translate(${c}, 0)`),o.attr("transform",`translate(${-l/2+c-(a.x-(a.left??0))},${-s/2+(t.padding??0)/2-(a.y-(a.top??0))})`),pe(t,S),t.intersect=function(C){return re.polygon(t,h,C)},i}k(I6,"curlyBraceLeft");function oa(e,t,r,n=100,i=0,a=180){const o=[],l=i*Math.PI/180,u=(a*Math.PI/180-l)/(n-1);for(let f=0;f<n;f++){const h=l+f*u,d=e+r*Math.cos(h),p=t+r*Math.sin(h);o.push({x:d,y:p})}return o}k(oa,"generateCirclePoints");async function $6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=a.width+(t.padding??0),s=a.height+(t.padding??0),c=Math.max(5,s*.1),{cssStyles:u}=t,f=[...oa(l/2,-s/2,c,20,-90,0),{x:l/2+c,y:-c},...oa(l/2+c*2,-c,c,20,-180,-270),...oa(l/2+c*2,c,c,20,-90,-180),{x:l/2+c,y:s/2},...oa(l/2,s/2,c,20,0,90)],h=[{x:-l/2,y:-s/2-c},{x:l/2,y:-s/2-c},...oa(l/2,-s/2,c,20,-90,0),{x:l/2+c,y:-c},...oa(l/2+c*2,-c,c,20,-180,-270),...oa(l/2+c*2,c,c,20,-90,-180),{x:l/2+c,y:s/2},...oa(l/2,s/2,c,20,0,90),{x:l/2,y:s/2+c},{x:-l/2,y:s/2+c}],d=ce.svg(i),p=fe(t,{fill:"none"});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const y=Ie(f).replace("Z",""),m=d.path(y,p),v=Ie(h),b=d.path(v,{...p}),S=i.insert("g",":first-child");return S.insert(()=>b,":first-child").attr("stroke-opacity",0),S.insert(()=>m,":first-child"),S.attr("class","text"),u&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",u),n&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",n),S.attr("transform",`translate(${-c}, 0)`),o.attr("transform",`translate(${-l/2+(t.padding??0)/2-(a.x-(a.left??0))},${-s/2+(t.padding??0)/2-(a.y-(a.top??0))})`),pe(t,S),t.intersect=function(C){return re.polygon(t,h,C)},i}k($6,"curlyBraceRight");function ar(e,t,r,n=100,i=0,a=180){const o=[],l=i*Math.PI/180,u=(a*Math.PI/180-l)/(n-1);for(let f=0;f<n;f++){const h=l+f*u,d=e+r*Math.cos(h),p=t+r*Math.sin(h);o.push({x:-d,y:-p})}return o}k(ar,"generateCirclePoints");async function D6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=a.width+(t.padding??0),s=a.height+(t.padding??0),c=Math.max(5,s*.1),{cssStyles:u}=t,f=[...ar(l/2,-s/2,c,30,-90,0),{x:-l/2-c,y:c},...ar(l/2+c*2,-c,c,20,-180,-270),...ar(l/2+c*2,c,c,20,-90,-180),{x:-l/2-c,y:-s/2},...ar(l/2,s/2,c,20,0,90)],h=[...ar(-l/2+c+c/2,-s/2,c,20,-90,-180),{x:l/2-c/2,y:c},...ar(-l/2-c/2,-c,c,20,0,90),...ar(-l/2-c/2,c,c,20,-90,0),{x:l/2-c/2,y:-c},...ar(-l/2+c+c/2,s/2,c,30,-180,-270)],d=[{x:l/2,y:-s/2-c},{x:-l/2,y:-s/2-c},...ar(l/2,-s/2,c,20,-90,0),{x:-l/2-c,y:-c},...ar(l/2+c*2,-c,c,20,-180,-270),...ar(l/2+c*2,c,c,20,-90,-180),{x:-l/2-c,y:s/2},...ar(l/2,s/2,c,20,0,90),{x:-l/2,y:s/2+c},{x:l/2-c-c/2,y:s/2+c},...ar(-l/2+c+c/2,-s/2,c,20,-90,-180),{x:l/2-c/2,y:c},...ar(-l/2-c/2,-c,c,20,0,90),...ar(-l/2-c/2,c,c,20,-90,0),{x:l/2-c/2,y:-c},...ar(-l/2+c+c/2,s/2,c,30,-180,-270)],p=ce.svg(i),g=fe(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=Ie(f).replace("Z",""),v=p.path(m,g),S=Ie(h).replace("Z",""),C=p.path(S,g),w=Ie(d),_=p.path(w,{...g}),P=i.insert("g",":first-child");return P.insert(()=>_,":first-child").attr("stroke-opacity",0),P.insert(()=>v,":first-child"),P.insert(()=>C,":first-child"),P.attr("class","text"),u&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",u),n&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",n),P.attr("transform",`translate(${c-c/4}, 0)`),o.attr("transform",`translate(${-l/2+(t.padding??0)/2-(a.x-(a.left??0))},${-s/2+(t.padding??0)/2-(a.y-(a.top??0))})`),pe(t,P),t.intersect=function(I){return re.polygon(t,d,I)},i}k(D6,"curlyBraces");async function N6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=80,l=20,s=Math.max(o,(a.width+(t.padding??0)*2)*1.25,(t==null?void 0:t.width)??0),c=Math.max(l,a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=c/2,{cssStyles:f}=t,h=ce.svg(i),d=fe(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=s,g=c,y=p-u,m=g/4,v=[{x:y,y:0},{x:m,y:0},{x:0,y:g/2},{x:m,y:g},{x:y,y:g},...Zf(-y,-g/2,u,50,270,90)],b=Ie(v),S=h.path(b,d),C=i.insert(()=>S,":first-child");return C.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",f),n&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",n),C.attr("transform",`translate(${-s/2}, ${-c/2})`),pe(t,C),t.intersect=function(w){return re.polygon(t,v,w)},i}k(N6,"curvedTrapezoid");var HSe=k((e,t,r,n,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),USe=k((e,t,r,n,i,a)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),qSe=k((e,t,r,n,i,a)=>[`M${e-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function j6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=Math.max(a.width+t.padding,t.width??0),s=l/2,c=s/(2.5+l/50),u=Math.max(a.height+c+t.padding,t.height??0);let f;const{cssStyles:h}=t;if(t.look==="handDrawn"){const d=ce.svg(i),p=USe(0,0,l,u,s,c),g=qSe(0,c,l,u,s,c),y=d.path(p,fe(t,{})),m=d.path(g,fe(t,{fill:"none"}));f=i.insert(()=>m,":first-child"),f=i.insert(()=>y,":first-child"),f.attr("class","basic label-container"),h&&f.attr("style",h)}else{const d=HSe(0,0,l,u,s,c);f=i.insert("path",":first-child").attr("d",d).attr("class","basic label-container").attr("style",_r(h)).attr("style",n)}return f.attr("label-offset-y",c),f.attr("transform",`translate(${-l/2}, ${-(u/2+c)})`),pe(t,f),o.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+(t.padding??0)/1.5-(a.y-(a.top??0))})`),t.intersect=function(d){const p=re.rect(t,d),g=p.x-(t.x??0);if(s!=0&&(Math.abs(g)<(t.width??0)/2||Math.abs(g)==(t.width??0)/2&&Math.abs(p.y-(t.y??0))>(t.height??0)/2-c)){let y=c*c*(1-g*g/(s*s));y>0&&(y=Math.sqrt(y)),y=c-y,d.y-(t.y??0)>0&&(y=-y),p.y+=y}return p},i}k(j6,"cylinder");async function R6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=a.width+t.padding,s=a.height+t.padding,c=s*.2,u=-l/2,f=-s/2-c/2,{cssStyles:h}=t,d=ce.svg(i),p=fe(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:u,y:f+c},{x:-u,y:f+c},{x:-u,y:-f},{x:u,y:-f},{x:u,y:f},{x:-u,y:f},{x:-u,y:f+c}],y=d.polygon(g.map(v=>[v.x,v.y]),p),m=i.insert(()=>y,":first-child");return m.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",h),n&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",n),o.attr("transform",`translate(${u+(t.padding??0)/2-(a.x-(a.left??0))}, ${f+c+(t.padding??0)/2-(a.y-(a.top??0))})`),pe(t,m),t.intersect=function(v){return re.rect(t,v)},i}k(R6,"dividedRectangle");async function B6(e,t){var h,d;const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,halfPadding:o}=await ke(e,t,we(t)),s=a.width/2+o+5,c=a.width/2+o;let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const p=ce.svg(i),g=fe(t,{roughness:.2,strokeWidth:2.5}),y=fe(t,{roughness:.2,strokeWidth:1.5}),m=p.circle(0,0,s*2,g),v=p.circle(0,0,c*2,y);u=i.insert("g",":first-child"),u.attr("class",_r(t.cssClasses)).attr("style",_r(f)),(h=u.node())==null||h.appendChild(m),(d=u.node())==null||d.appendChild(v)}else{u=i.insert("g",":first-child");const p=u.insert("circle",":first-child"),g=u.insert("circle");u.attr("class","basic label-container").attr("style",n),p.attr("class","outer-circle").attr("style",n).attr("r",s).attr("cx",0).attr("cy",0),g.attr("class","inner-circle").attr("style",n).attr("r",c).attr("cx",0).attr("cy",0)}return pe(t,u),t.intersect=function(p){return Y.info("DoubleCircle intersect",t,s,p),re.circle(t,s,p)},i}k(B6,"doublecircle");function F6(e,t,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=he(t);t.label="",t.labelStyle=n;const a=e.insert("g").attr("class",we(t)).attr("id",t.domId??t.id),o=7,{cssStyles:l}=t,s=ce.svg(a),{nodeBorder:c}=r,u=fe(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(u.roughness=0);const f=s.circle(0,0,o*2,u),h=a.insert(()=>f,":first-child");return h.selectAll("path").attr("style",`fill: ${c} !important;`),l&&l.length>0&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",l),i&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",i),pe(t,h),t.intersect=function(d){return Y.info("filledCircle intersect",t,{radius:o,point:d}),re.circle(t,o,d)},a}k(F6,"filledCircle");async function z6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=a.width+(t.padding??0),s=l+a.height,c=l+a.height,u=[{x:0,y:-s},{x:c,y:-s},{x:c/2,y:0}],{cssStyles:f}=t,h=ce.svg(i),d=fe(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=Ie(u),g=h.path(p,d),y=i.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${s/2})`);return f&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",f),n&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",n),t.width=l,t.height=s,pe(t,y),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-s/2+(t.padding??0)/2+(a.y-(a.top??0))})`),t.intersect=function(m){return Y.info("Triangle intersect",t,u,m),re.polygon(t,u,m)},i}k(z6,"flippedTriangle");function W6(e,t,{dir:r,config:{state:n,themeVariables:i}}){const{nodeStyles:a}=he(t);t.label="";const o=e.insert("g").attr("class",we(t)).attr("id",t.domId??t.id),{cssStyles:l}=t;let s=Math.max(70,(t==null?void 0:t.width)??0),c=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(s=Math.max(10,(t==null?void 0:t.width)??0),c=Math.max(70,(t==null?void 0:t.height)??0));const u=-1*s/2,f=-1*c/2,h=ce.svg(o),d=fe(t,{stroke:i.lineColor,fill:i.lineColor});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=h.rectangle(u,f,s,c,d),g=o.insert(()=>p,":first-child");l&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",l),a&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",a),pe(t,g);const y=(n==null?void 0:n.padding)??0;return t.width&&t.height&&(t.width+=y/2||0,t.height+=y/2||0),t.intersect=function(m){return re.rect(t,m)},o}k(W6,"forkJoin");async function H6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const i=80,a=50,{shapeSvg:o,bbox:l}=await ke(e,t,we(t)),s=Math.max(i,l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a,l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=c/2,{cssStyles:f}=t,h=ce.svg(o),d=fe(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=[{x:-s/2,y:-c/2},{x:s/2-u,y:-c/2},...Zf(-s/2+u,0,u,50,90,270),{x:s/2-u,y:c/2},{x:-s/2,y:c/2}],g=Ie(p),y=h.path(g,d),m=o.insert(()=>y,":first-child");return m.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",f),n&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",n),pe(t,m),t.intersect=function(v){return Y.info("Pill intersect",t,{radius:u,point:v}),re.polygon(t,p,v)},o}k(H6,"halfRoundedRectangle");async function U6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=a.height+(t.padding??0),l=a.width+(t.padding??0)*2.5,{cssStyles:s}=t,c=ce.svg(i),u=fe(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let f=l/2;const h=f/6;f=f+h;const d=o/2,p=d/2,g=f-p,y=[{x:-g,y:-d},{x:0,y:-d},{x:g,y:-d},{x:f,y:0},{x:g,y:d},{x:0,y:d},{x:-g,y:d},{x:-f,y:0}],m=Ie(y),v=c.path(m,u),b=i.insert(()=>v,":first-child");return b.attr("class","basic label-container"),s&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",s),n&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),t.width=l,t.height=o,pe(t,b),t.intersect=function(S){return re.polygon(t,y,S)},i}k(U6,"hexagon");async function q6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.label="",t.labelStyle=r;const{shapeSvg:i}=await ke(e,t,we(t)),a=Math.max(30,(t==null?void 0:t.width)??0),o=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:l}=t,s=ce.svg(i),c=fe(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const u=[{x:0,y:0},{x:a,y:0},{x:0,y:o},{x:a,y:o}],f=Ie(u),h=s.path(f,c),d=i.insert(()=>h,":first-child");return d.attr("class","basic label-container"),l&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",l),n&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",n),d.attr("transform",`translate(${-a/2}, ${-o/2})`),pe(t,d),t.intersect=function(p){return Y.info("Pill intersect",t,{points:u}),re.polygon(t,u,p)},i}k(q6,"hourglass");async function V6(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=he(t);t.labelStyle=i;const a=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(a,o),s=n==null?void 0:n.wrappingWidth;t.width=Math.max(l,s??0);const{shapeSvg:c,bbox:u,label:f}=await ke(e,t,"icon-shape default"),h=t.pos==="t",d=l,p=l,{nodeBorder:g}=r,{stylesMap:y}=zc(t),m=-p/2,v=-d/2,b=t.label?8:0,S=ce.svg(c),C=fe(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const w=S.rectangle(m,v,p,d,C),_=Math.max(p,u.width),P=d+u.height+b,I=S.rectangle(-_/2,-P/2,_,P,{...C,fill:"transparent",stroke:"none"}),$=c.insert(()=>w,":first-child"),A=c.insert(()=>I);if(t.icon){const M=c.append("g");M.html(`<g>${await Hh(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const F=M.node().getBBox(),N=F.width,D=F.height,j=F.x,B=F.y;M.attr("transform",`translate(${-N/2-j},${h?u.height/2+b/2-D/2-B:-u.height/2-b/2-D/2-B})`),M.attr("style",`color: ${y.get("stroke")??g};`)}return f.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${h?-P/2:P/2-u.height})`),$.attr("transform",`translate(0,${h?u.height/2+b/2:-u.height/2-b/2})`),pe(t,A),t.intersect=function(M){if(Y.info("iconSquare intersect",t,M),!t.label)return re.rect(t,M);const F=t.x??0,N=t.y??0,D=t.height??0;let j=[];return h?j=[{x:F-u.width/2,y:N-D/2},{x:F+u.width/2,y:N-D/2},{x:F+u.width/2,y:N-D/2+u.height+b},{x:F+p/2,y:N-D/2+u.height+b},{x:F+p/2,y:N+D/2},{x:F-p/2,y:N+D/2},{x:F-p/2,y:N-D/2+u.height+b},{x:F-u.width/2,y:N-D/2+u.height+b}]:j=[{x:F-p/2,y:N-D/2},{x:F+p/2,y:N-D/2},{x:F+p/2,y:N-D/2+d},{x:F+u.width/2,y:N-D/2+d},{x:F+u.width/2/2,y:N+D/2},{x:F-u.width/2,y:N+D/2},{x:F-u.width/2,y:N-D/2+d},{x:F-p/2,y:N-D/2+d}],re.polygon(t,j,M)},c}k(V6,"icon");async function Y6(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=he(t);t.labelStyle=i;const a=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(a,o),s=n==null?void 0:n.wrappingWidth;t.width=Math.max(l,s??0);const{shapeSvg:c,bbox:u,label:f}=await ke(e,t,"icon-shape default"),h=20,d=t.label?8:0,p=t.pos==="t",{nodeBorder:g,mainBkg:y}=r,{stylesMap:m}=zc(t),v=ce.svg(c),b=fe(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const S=m.get("fill");b.stroke=S??y;const C=c.append("g");t.icon&&C.html(`<g>${await Hh(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const w=C.node().getBBox(),_=w.width,P=w.height,I=w.x,$=w.y,A=Math.max(_,P)*Math.SQRT2+h*2,M=v.circle(0,0,A,b),F=Math.max(A,u.width),N=A+u.height+d,D=v.rectangle(-F/2,-N/2,F,N,{...b,fill:"transparent",stroke:"none"}),j=c.insert(()=>M,":first-child"),B=c.insert(()=>D);return C.attr("transform",`translate(${-_/2-I},${p?u.height/2+d/2-P/2-$:-u.height/2-d/2-P/2-$})`),C.attr("style",`color: ${m.get("stroke")??g};`),f.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${p?-N/2:N/2-u.height})`),j.attr("transform",`translate(0,${p?u.height/2+d/2:-u.height/2-d/2})`),pe(t,B),t.intersect=function(L){return Y.info("iconSquare intersect",t,L),re.rect(t,L)},c}k(Y6,"iconCircle");async function K6(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=he(t);t.labelStyle=i;const a=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(a,o),s=n==null?void 0:n.wrappingWidth;t.width=Math.max(l,s??0);const{shapeSvg:c,bbox:u,halfPadding:f,label:h}=await ke(e,t,"icon-shape default"),d=t.pos==="t",p=l+f*2,g=l+f*2,{nodeBorder:y,mainBkg:m}=r,{stylesMap:v}=zc(t),b=-g/2,S=-p/2,C=t.label?8:0,w=ce.svg(c),_=fe(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const P=v.get("fill");_.stroke=P??m;const I=w.path(No(b,S,g,p,5),_),$=Math.max(g,u.width),A=p+u.height+C,M=w.rectangle(-$/2,-A/2,$,A,{..._,fill:"transparent",stroke:"none"}),F=c.insert(()=>I,":first-child").attr("class","icon-shape2"),N=c.insert(()=>M);if(t.icon){const D=c.append("g");D.html(`<g>${await Hh(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const j=D.node().getBBox(),B=j.width,L=j.height,W=j.x,T=j.y;D.attr("transform",`translate(${-B/2-W},${d?u.height/2+C/2-L/2-T:-u.height/2-C/2-L/2-T})`),D.attr("style",`color: ${v.get("stroke")??y};`)}return h.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${d?-A/2:A/2-u.height})`),F.attr("transform",`translate(0,${d?u.height/2+C/2:-u.height/2-C/2})`),pe(t,N),t.intersect=function(D){if(Y.info("iconSquare intersect",t,D),!t.label)return re.rect(t,D);const j=t.x??0,B=t.y??0,L=t.height??0;let W=[];return d?W=[{x:j-u.width/2,y:B-L/2},{x:j+u.width/2,y:B-L/2},{x:j+u.width/2,y:B-L/2+u.height+C},{x:j+g/2,y:B-L/2+u.height+C},{x:j+g/2,y:B+L/2},{x:j-g/2,y:B+L/2},{x:j-g/2,y:B-L/2+u.height+C},{x:j-u.width/2,y:B-L/2+u.height+C}]:W=[{x:j-g/2,y:B-L/2},{x:j+g/2,y:B-L/2},{x:j+g/2,y:B-L/2+p},{x:j+u.width/2,y:B-L/2+p},{x:j+u.width/2/2,y:B+L/2},{x:j-u.width/2,y:B+L/2},{x:j-u.width/2,y:B-L/2+p},{x:j-g/2,y:B-L/2+p}],re.polygon(t,W,D)},c}k(K6,"iconRounded");async function G6(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=he(t);t.labelStyle=i;const a=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(a,o),s=n==null?void 0:n.wrappingWidth;t.width=Math.max(l,s??0);const{shapeSvg:c,bbox:u,halfPadding:f,label:h}=await ke(e,t,"icon-shape default"),d=t.pos==="t",p=l+f*2,g=l+f*2,{nodeBorder:y,mainBkg:m}=r,{stylesMap:v}=zc(t),b=-g/2,S=-p/2,C=t.label?8:0,w=ce.svg(c),_=fe(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const P=v.get("fill");_.stroke=P??m;const I=w.path(No(b,S,g,p,.1),_),$=Math.max(g,u.width),A=p+u.height+C,M=w.rectangle(-$/2,-A/2,$,A,{..._,fill:"transparent",stroke:"none"}),F=c.insert(()=>I,":first-child"),N=c.insert(()=>M);if(t.icon){const D=c.append("g");D.html(`<g>${await Hh(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const j=D.node().getBBox(),B=j.width,L=j.height,W=j.x,T=j.y;D.attr("transform",`translate(${-B/2-W},${d?u.height/2+C/2-L/2-T:-u.height/2-C/2-L/2-T})`),D.attr("style",`color: ${v.get("stroke")??y};`)}return h.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${d?-A/2:A/2-u.height})`),F.attr("transform",`translate(0,${d?u.height/2+C/2:-u.height/2-C/2})`),pe(t,N),t.intersect=function(D){if(Y.info("iconSquare intersect",t,D),!t.label)return re.rect(t,D);const j=t.x??0,B=t.y??0,L=t.height??0;let W=[];return d?W=[{x:j-u.width/2,y:B-L/2},{x:j+u.width/2,y:B-L/2},{x:j+u.width/2,y:B-L/2+u.height+C},{x:j+g/2,y:B-L/2+u.height+C},{x:j+g/2,y:B+L/2},{x:j-g/2,y:B+L/2},{x:j-g/2,y:B-L/2+u.height+C},{x:j-u.width/2,y:B-L/2+u.height+C}]:W=[{x:j-g/2,y:B-L/2},{x:j+g/2,y:B-L/2},{x:j+g/2,y:B-L/2+p},{x:j+u.width/2,y:B-L/2+p},{x:j+u.width/2/2,y:B+L/2},{x:j-u.width/2,y:B+L/2},{x:j-u.width/2,y:B-L/2+p},{x:j-g/2,y:B-L/2+p}],re.polygon(t,W,D)},c}k(G6,"iconSquare");async function X6(e,t,{config:{flowchart:r}}){const n=new Image;n.src=(t==null?void 0:t.img)??"",await n.decode();const i=Number(n.naturalWidth.toString().replace("px","")),a=Number(n.naturalHeight.toString().replace("px",""));t.imageAspectRatio=i/a;const{labelStyles:o}=he(t);t.labelStyle=o;const l=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const s=Math.max(t.label?l??0:0,(t==null?void 0:t.assetWidth)??i),c=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:s,u=t.constraint==="on"?c/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??a;t.width=Math.max(c,l??0);const{shapeSvg:f,bbox:h,label:d}=await ke(e,t,"image-shape default"),p=t.pos==="t",g=-c/2,y=-u/2,m=t.label?8:0,v=ce.svg(f),b=fe(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const S=v.rectangle(g,y,c,u,b),C=Math.max(c,h.width),w=u+h.height+m,_=v.rectangle(-C/2,-w/2,C,w,{...b,fill:"none",stroke:"none"}),P=f.insert(()=>S,":first-child"),I=f.insert(()=>_);if(t.img){const $=f.append("image");$.attr("href",t.img),$.attr("width",c),$.attr("height",u),$.attr("preserveAspectRatio","none"),$.attr("transform",`translate(${-c/2},${p?w/2-u:-w/2})`)}return d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${p?-u/2-h.height/2-m/2:u/2-h.height/2+m/2})`),P.attr("transform",`translate(0,${p?h.height/2+m/2:-h.height/2-m/2})`),pe(t,I),t.intersect=function($){if(Y.info("iconSquare intersect",t,$),!t.label)return re.rect(t,$);const A=t.x??0,M=t.y??0,F=t.height??0;let N=[];return p?N=[{x:A-h.width/2,y:M-F/2},{x:A+h.width/2,y:M-F/2},{x:A+h.width/2,y:M-F/2+h.height+m},{x:A+c/2,y:M-F/2+h.height+m},{x:A+c/2,y:M+F/2},{x:A-c/2,y:M+F/2},{x:A-c/2,y:M-F/2+h.height+m},{x:A-h.width/2,y:M-F/2+h.height+m}]:N=[{x:A-c/2,y:M-F/2},{x:A+c/2,y:M-F/2},{x:A+c/2,y:M-F/2+u},{x:A+h.width/2,y:M-F/2+u},{x:A+h.width/2/2,y:M+F/2},{x:A-h.width/2,y:M+F/2},{x:A-h.width/2,y:M-F/2+u},{x:A-c/2,y:M-F/2+u}],re.polygon(t,N,$)},f}k(X6,"imageSquare");async function Z6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),s=[{x:0,y:0},{x:o,y:0},{x:o+3*l/6,y:-l},{x:-3*l/6,y:-l}];let c;const{cssStyles:u}=t;if(t.look==="handDrawn"){const f=ce.svg(i),h=fe(t,{}),d=Ie(s),p=f.path(d,h);c=i.insert(()=>p,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),u&&c.attr("style",u)}else c=jo(i,o,l,s);return n&&c.attr("style",n),t.width=o,t.height=l,pe(t,c),t.intersect=function(f){return re.polygon(t,s,f)},i}k(Z6,"inv_trapezoid");async function kv(e,t,r){const{labelStyles:n,nodeStyles:i}=he(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await ke(e,t,we(t)),l=Math.max(o.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),s=Math.max(o.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),c=-l/2,u=-s/2;let f,{rx:h,ry:d}=t;const{cssStyles:p}=t;if(r!=null&&r.rx&&r.ry&&(h=r.rx,d=r.ry),t.look==="handDrawn"){const g=ce.svg(a),y=fe(t,{}),m=h||d?g.path(No(c,u,l,s,h||0),y):g.rectangle(c,u,l,s,y);f=a.insert(()=>m,":first-child"),f.attr("class","basic label-container").attr("style",_r(p))}else f=a.insert("rect",":first-child"),f.attr("class","basic label-container").attr("style",i).attr("rx",_r(h)).attr("ry",_r(d)).attr("x",c).attr("y",u).attr("width",l).attr("height",s);return pe(t,f),t.calcIntersect=function(g,y){return re.rect(g,y)},t.intersect=function(g){return re.rect(t,g)},a}k(kv,"drawRect");async function Q6(e,t){const{shapeSvg:r,bbox:n,label:i}=await ke(e,t,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),pe(t,a),t.intersect=function(s){return re.rect(t,s)},r}k(Q6,"labelRect");async function J6(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=Math.max(a.width+(t.padding??0),(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0),(t==null?void 0:t.height)??0),s=[{x:0,y:0},{x:o+3*l/6,y:0},{x:o,y:-l},{x:-(3*l)/6,y:-l}];let c;const{cssStyles:u}=t;if(t.look==="handDrawn"){const f=ce.svg(i),h=fe(t,{}),d=Ie(s),p=f.path(d,h);c=i.insert(()=>p,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),u&&c.attr("style",u)}else c=jo(i,o,l,s);return n&&c.attr("style",n),t.width=o,t.height=l,pe(t,c),t.intersect=function(f){return re.polygon(t,s,f)},i}k(J6,"lean_left");async function e8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=Math.max(a.width+(t.padding??0),(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0),(t==null?void 0:t.height)??0),s=[{x:-3*l/6,y:0},{x:o,y:0},{x:o+3*l/6,y:-l},{x:0,y:-l}];let c;const{cssStyles:u}=t;if(t.look==="handDrawn"){const f=ce.svg(i),h=fe(t,{}),d=Ie(s),p=f.path(d,h);c=i.insert(()=>p,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),u&&c.attr("style",u)}else c=jo(i,o,l,s);return n&&c.attr("style",n),t.width=o,t.height=l,pe(t,c),t.intersect=function(f){return re.polygon(t,s,f)},i}k(e8,"lean_right");function t8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.label="",t.labelStyle=r;const i=e.insert("g").attr("class",we(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,o=Math.max(35,(t==null?void 0:t.width)??0),l=Math.max(35,(t==null?void 0:t.height)??0),s=7,c=[{x:o,y:0},{x:0,y:l+s/2},{x:o-2*s,y:l+s/2},{x:0,y:2*l},{x:o,y:l-s/2},{x:2*s,y:l-s/2}],u=ce.svg(i),f=fe(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const h=Ie(c),d=u.path(h,f),p=i.insert(()=>d,":first-child");return a&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",a),n&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",n),p.attr("transform",`translate(-${o/2},${-l})`),pe(t,p),t.intersect=function(g){return Y.info("lightningBolt intersect",t,g),re.polygon(t,c,g)},i}k(t8,"lightningBolt");var VSe=k((e,t,r,n,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),YSe=k((e,t,r,n,i,a,o)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),KSe=k((e,t,r,n,i,a)=>[`M${e-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function r8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=Math.max(a.width+(t.padding??0),t.width??0),s=l/2,c=s/(2.5+l/50),u=Math.max(a.height+c+(t.padding??0),t.height??0),f=u*.1;let h;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=ce.svg(i),g=YSe(0,0,l,u,s,c,f),y=KSe(0,c,l,u,s,c),m=fe(t,{}),v=p.path(g,m),b=p.path(y,m);i.insert(()=>b,":first-child").attr("class","line"),h=i.insert(()=>v,":first-child"),h.attr("class","basic label-container"),d&&h.attr("style",d)}else{const p=VSe(0,0,l,u,s,c,f);h=i.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",_r(d)).attr("style",n)}return h.attr("label-offset-y",c),h.attr("transform",`translate(${-l/2}, ${-(u/2+c)})`),pe(t,h),o.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+c-(a.y-(a.top??0))})`),t.intersect=function(p){const g=re.rect(t,p),y=g.x-(t.x??0);if(s!=0&&(Math.abs(y)<(t.width??0)/2||Math.abs(y)==(t.width??0)/2&&Math.abs(g.y-(t.y??0))>(t.height??0)/2-c)){let m=c*c*(1-y*y/(s*s));m>0&&(m=Math.sqrt(m)),m=c-m,p.y-(t.y??0)>0&&(m=-m),g.y+=m}return g},i}k(r8,"linedCylinder");async function n8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=s/4,u=s+c,{cssStyles:f}=t,h=ce.svg(i),d=fe(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=[{x:-l/2-l/2*.1,y:-u/2},{x:-l/2-l/2*.1,y:u/2},...Co(-l/2-l/2*.1,u/2,l/2+l/2*.1,u/2,c,.8),{x:l/2+l/2*.1,y:-u/2},{x:-l/2-l/2*.1,y:-u/2},{x:-l/2,y:-u/2},{x:-l/2,y:u/2*1.1},{x:-l/2,y:-u/2}],g=h.polygon(p.map(m=>[m.x,m.y]),d),y=i.insert(()=>g,":first-child");return y.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",n),y.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-l/2+(t.padding??0)+l/2*.1/2-(a.x-(a.left??0))},${-s/2+(t.padding??0)-c/2-(a.y-(a.top??0))})`),pe(t,y),t.intersect=function(m){return re.polygon(t,p,m)},i}k(n8,"linedWaveEdgedRect");async function i8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=5,u=-l/2,f=-s/2,{cssStyles:h}=t,d=ce.svg(i),p=fe(t,{}),g=[{x:u-c,y:f+c},{x:u-c,y:f+s+c},{x:u+l-c,y:f+s+c},{x:u+l-c,y:f+s},{x:u+l,y:f+s},{x:u+l,y:f+s-c},{x:u+l+c,y:f+s-c},{x:u+l+c,y:f-c},{x:u+c,y:f-c},{x:u+c,y:f},{x:u,y:f},{x:u,y:f+c}],y=[{x:u,y:f+c},{x:u+l-c,y:f+c},{x:u+l-c,y:f+s},{x:u+l,y:f+s},{x:u+l,y:f},{x:u,y:f}];t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=Ie(g),v=d.path(m,p),b=Ie(y),S=d.path(b,{...p,fill:"none"}),C=i.insert(()=>S,":first-child");return C.insert(()=>v,":first-child"),C.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",h),n&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",n),o.attr("transform",`translate(${-(a.width/2)-c-(a.x-(a.left??0))}, ${-(a.height/2)+c-(a.y-(a.top??0))})`),pe(t,C),t.intersect=function(w){return re.polygon(t,g,w)},i}k(i8,"multiRect");async function a8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=s/4,u=s+c,f=-l/2,h=-u/2,d=5,{cssStyles:p}=t,g=Co(f-d,h+u+d,f+l-d,h+u+d,c,.8),y=g==null?void 0:g[g.length-1],m=[{x:f-d,y:h+d},{x:f-d,y:h+u+d},...g,{x:f+l-d,y:y.y-d},{x:f+l,y:y.y-d},{x:f+l,y:y.y-2*d},{x:f+l+d,y:y.y-2*d},{x:f+l+d,y:h-d},{x:f+d,y:h-d},{x:f+d,y:h},{x:f,y:h},{x:f,y:h+d}],v=[{x:f,y:h+d},{x:f+l-d,y:h+d},{x:f+l-d,y:y.y-d},{x:f+l,y:y.y-d},{x:f+l,y:h},{x:f,y:h}],b=ce.svg(i),S=fe(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const C=Ie(m),w=b.path(C,S),_=Ie(v),P=b.path(_,S),I=i.insert(()=>w,":first-child");return I.insert(()=>P),I.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",n),I.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-(a.width/2)-d-(a.x-(a.left??0))}, ${-(a.height/2)+d-c/2-(a.y-(a.top??0))})`),pe(t,I),t.intersect=function($){return re.polygon(t,m,$)},i}k(a8,"multiWaveEdgedRectangle");async function o8(e,t,{config:{themeVariables:r}}){var v;const{labelStyles:n,nodeStyles:i}=he(t);t.labelStyle=n,t.useHtmlLabels||((v=Sr().flowchart)==null?void 0:v.htmlLabels)!==!1||(t.centerLabel=!0);const{shapeSvg:o,bbox:l,label:s}=await ke(e,t,we(t)),c=Math.max(l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),f=-c/2,h=-u/2,{cssStyles:d}=t,p=ce.svg(o),g=fe(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=p.rectangle(f,h,c,u,g),m=o.insert(()=>y,":first-child");return m.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",i),s.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),pe(t,m),t.intersect=function(b){return re.rect(t,b)},o}k(o8,"note");var GSe=k((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function l8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=a.width+t.padding,l=a.height+t.padding,s=o+l,c=.5,u=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];let f;const{cssStyles:h}=t;if(t.look==="handDrawn"){const d=ce.svg(i),p=fe(t,{}),g=GSe(0,0,s),y=d.path(g,p);f=i.insert(()=>y,":first-child").attr("transform",`translate(${-s/2+c}, ${s/2})`),h&&f.attr("style",h)}else f=jo(i,s,s,u),f.attr("transform",`translate(${-s/2+c}, ${s/2})`);return n&&f.attr("style",n),pe(t,f),t.calcIntersect=function(d,p){const g=d.width,y=[{x:g/2,y:0},{x:g,y:-g/2},{x:g/2,y:-g},{x:0,y:-g/2}],m=re.polygon(d,y,p);return{x:m.x-.5,y:m.y-.5}},t.intersect=function(d){return this.calcIntersect(t,d)},i}k(l8,"question");async function s8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=Math.max(a.width+(t.padding??0),(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0),(t==null?void 0:t.height)??0),c=-l/2,u=-s/2,f=u/2,h=[{x:c+f,y:u},{x:c,y:0},{x:c+f,y:-u},{x:-c,y:-u},{x:-c,y:u}],{cssStyles:d}=t,p=ce.svg(i),g=fe(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=Ie(h),m=p.path(y,g),v=i.insert(()=>m,":first-child");return v.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(${-f/2},0)`),o.attr("transform",`translate(${-f/2-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),pe(t,v),t.intersect=function(b){return re.polygon(t,h,b)},i}k(s8,"rect_left_inv_arrow");async function c8(e,t){var P,I;const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;let i;t.cssClasses?i="node "+t.cssClasses:i="node default";const a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),o=a.insert("g"),l=a.insert("g").attr("class","label").attr("style",n),s=t.description,c=t.label,u=l.node().appendChild(await cl(c,t.labelStyle,!0,!0));let f={width:0,height:0};if(qt((I=(P=Ue())==null?void 0:P.flowchart)==null?void 0:I.htmlLabels)){const $=u.children[0],A=De(u);f=$.getBoundingClientRect(),A.attr("width",f.width),A.attr("height",f.height)}Y.info("Text 2",s);const h=s||[],d=u.getBBox(),p=l.node().appendChild(await cl(h.join?h.join("<br/>"):h,t.labelStyle,!0,!0)),g=p.children[0],y=De(p);f=g.getBoundingClientRect(),y.attr("width",f.width),y.attr("height",f.height);const m=(t.padding||0)/2;De(p).attr("transform","translate( "+(f.width>d.width?0:(d.width-f.width)/2)+", "+(d.height+m+5)+")"),De(u).attr("transform","translate( "+(f.width<d.width?0:-(d.width-f.width)/2)+", 0)"),f=l.node().getBBox(),l.attr("transform","translate("+-f.width/2+", "+(-f.height/2-m+3)+")");const v=f.width+(t.padding||0),b=f.height+(t.padding||0),S=-f.width/2-m,C=-f.height/2-m;let w,_;if(t.look==="handDrawn"){const $=ce.svg(a),A=fe(t,{}),M=$.path(No(S,C,v,b,t.rx||0),A),F=$.line(-f.width/2-m,-f.height/2-m+d.height+m,f.width/2+m,-f.height/2-m+d.height+m,A);_=a.insert(()=>(Y.debug("Rough node insert CXC",M),F),":first-child"),w=a.insert(()=>(Y.debug("Rough node insert CXC",M),M),":first-child")}else w=o.insert("rect",":first-child"),_=o.insert("line"),w.attr("class","outer title-state").attr("style",n).attr("x",-f.width/2-m).attr("y",-f.height/2-m).attr("width",f.width+(t.padding||0)).attr("height",f.height+(t.padding||0)),_.attr("class","divider").attr("x1",-f.width/2-m).attr("x2",f.width/2+m).attr("y1",-f.height/2-m+d.height+m).attr("y2",-f.height/2-m+d.height+m);return pe(t,w),t.intersect=function($){return re.rect(t,$)},a}k(c8,"rectWithTitle");function Bu(e,t,r,n,i,a,o){const s=(e+r)/2,c=(t+n)/2,u=Math.atan2(n-t,r-e),f=(r-e)/2,h=(n-t)/2,d=f/i,p=h/a,g=Math.sqrt(d**2+p**2);if(g>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-g**2),m=s+y*a*Math.sin(u)*(o?-1:1),v=c-y*i*Math.cos(u)*(o?-1:1),b=Math.atan2((t-v)/a,(e-m)/i);let C=Math.atan2((n-v)/a,(r-m)/i)-b;o&&C<0&&(C+=2*Math.PI),!o&&C>0&&(C-=2*Math.PI);const w=[];for(let _=0;_<20;_++){const P=_/19,I=b+P*C,$=m+i*Math.cos(I),A=v+a*Math.sin(I);w.push({x:$,y:A})}return w}k(Bu,"generateArcPoints");async function u8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=(t==null?void 0:t.padding)??0,l=(t==null?void 0:t.padding)??0,s=(t!=null&&t.width?t==null?void 0:t.width:a.width)+o*2,c=(t!=null&&t.height?t==null?void 0:t.height:a.height)+l*2,u=t.radius||5,f=t.taper||5,{cssStyles:h}=t,d=ce.svg(i),p=fe(t,{});t.stroke&&(p.stroke=t.stroke),t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-s/2+f,y:-c/2},{x:s/2-f,y:-c/2},...Bu(s/2-f,-c/2,s/2,-c/2+f,u,u,!0),{x:s/2,y:-c/2+f},{x:s/2,y:c/2-f},...Bu(s/2,c/2-f,s/2-f,c/2,u,u,!0),{x:s/2-f,y:c/2},{x:-s/2+f,y:c/2},...Bu(-s/2+f,c/2,-s/2,c/2-f,u,u,!0),{x:-s/2,y:c/2-f},{x:-s/2,y:-c/2+f},...Bu(-s/2,-c/2+f,-s/2+f,-c/2,u,u,!0)],y=Ie(g),m=d.path(y,p),v=i.insert(()=>m,":first-child");return v.attr("class","basic label-container outer-path"),h&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",h),n&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",n),pe(t,v),t.intersect=function(b){return re.polygon(t,g,b)},i}k(u8,"roundedRect");async function f8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=(t==null?void 0:t.padding)??0,s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=-a.width/2-l,f=-a.height/2-l,{cssStyles:h}=t,d=ce.svg(i),p=fe(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:u,y:f},{x:u+s+8,y:f},{x:u+s+8,y:f+c},{x:u-8,y:f+c},{x:u-8,y:f},{x:u,y:f},{x:u,y:f+c}],y=d.polygon(g.map(v=>[v.x,v.y]),p),m=i.insert(()=>y,":first-child");return m.attr("class","basic label-container").attr("style",_r(h)),n&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",n),h&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",n),o.attr("transform",`translate(${-s/2+4+(t.padding??0)-(a.x-(a.left??0))},${-c/2+(t.padding??0)-(a.y-(a.top??0))})`),pe(t,m),t.intersect=function(v){return re.rect(t,v)},i}k(f8,"shadedProcess");async function h8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=-l/2,u=-s/2,{cssStyles:f}=t,h=ce.svg(i),d=fe(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=[{x:c,y:u},{x:c,y:u+s},{x:c+l,y:u+s},{x:c+l,y:u-s/2}],g=Ie(p),y=h.path(g,d),m=i.insert(()=>y,":first-child");return m.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",f),n&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",n),m.attr("transform",`translate(0, ${s/4})`),o.attr("transform",`translate(${-l/2+(t.padding??0)-(a.x-(a.left??0))}, ${-s/4+(t.padding??0)-(a.y-(a.top??0))})`),pe(t,m),t.intersect=function(v){return re.polygon(t,p,v)},i}k(h8,"slopedRect");async function d8(e,t){const r={rx:0,ry:0,labelPaddingX:t.labelPaddingX??((t==null?void 0:t.padding)||0)*2,labelPaddingY:((t==null?void 0:t.padding)||0)*1};return kv(e,t,r)}k(d8,"squareRect");async function p8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=a.height+t.padding,l=a.width+o/4+t.padding,s=o/2,{cssStyles:c}=t,u=ce.svg(i),f=fe(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const h=[{x:-l/2+s,y:-o/2},{x:l/2-s,y:-o/2},...Zf(-l/2+s,0,s,50,90,270),{x:l/2-s,y:o/2},...Zf(l/2-s,0,s,50,270,450)],d=Ie(h),p=u.path(d,f),g=i.insert(()=>p,":first-child");return g.attr("class","basic label-container outer-path"),c&&t.look!=="handDrawn"&&g.selectChildren("path").attr("style",c),n&&t.look!=="handDrawn"&&g.selectChildren("path").attr("style",n),pe(t,g),t.intersect=function(y){return re.polygon(t,h,y)},i}k(p8,"stadium");async function g8(e,t){return kv(e,t,{rx:5,ry:5})}k(g8,"state");function m8(e,t,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=he(t);t.labelStyle=n;const{cssStyles:a}=t,{lineColor:o,stateBorder:l,nodeBorder:s}=r,c=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),u=ce.svg(c),f=fe(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const h=u.circle(0,0,14,{...f,stroke:o,strokeWidth:2}),d=l??s,p=u.circle(0,0,5,{...f,fill:d,stroke:d,strokeWidth:2,fillStyle:"solid"}),g=c.insert(()=>h,":first-child");return g.insert(()=>p),a&&g.selectAll("path").attr("style",a),i&&g.selectAll("path").attr("style",i),pe(t,g),t.intersect=function(y){return re.circle(t,7,y)},c}k(m8,"stateEnd");function y8(e,t,{config:{themeVariables:r}}){const{lineColor:n}=r,i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a;if(t.look==="handDrawn"){const l=ce.svg(i).circle(0,0,14,sbe(n));a=i.insert(()=>l),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else a=i.insert("circle",":first-child"),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return pe(t,a),t.intersect=function(o){return re.circle(t,7,o)},i}k(y8,"stateStart");async function v8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=((t==null?void 0:t.padding)||0)/2,l=a.width+t.padding,s=a.height+t.padding,c=-a.width/2-o,u=-a.height/2-o,f=[{x:0,y:0},{x:l,y:0},{x:l,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-s},{x:-8,y:-s},{x:-8,y:0}];if(t.look==="handDrawn"){const h=ce.svg(i),d=fe(t,{}),p=h.rectangle(c-8,u,l+16,s,d),g=h.line(c,u,c,u+s,d),y=h.line(c+l,u,c+l,u+s,d);i.insert(()=>g,":first-child"),i.insert(()=>y,":first-child");const m=i.insert(()=>p,":first-child"),{cssStyles:v}=t;m.attr("class","basic label-container").attr("style",_r(v)),pe(t,m)}else{const h=jo(i,l,s,f);n&&h.attr("style",n),pe(t,h)}return t.intersect=function(h){return re.polygon(t,f,h)},i}k(v8,"subroutine");async function x8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),s=-o/2,c=-l/2,u=.2*l,f=.2*l,{cssStyles:h}=t,d=ce.svg(i),p=fe(t,{}),g=[{x:s-u/2,y:c},{x:s+o+u/2,y:c},{x:s+o+u/2,y:c+l},{x:s-u/2,y:c+l}],y=[{x:s+o-u/2,y:c+l},{x:s+o+u/2,y:c+l},{x:s+o+u/2,y:c+l-f}];t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=Ie(g),v=d.path(m,p),b=Ie(y),S=d.path(b,{...p,fillStyle:"solid"}),C=i.insert(()=>S,":first-child");return C.insert(()=>v,":first-child"),C.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",h),n&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",n),pe(t,C),t.intersect=function(w){return re.polygon(t,g,w)},i}k(x8,"taggedRect");async function b8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=s/4,u=.2*l,f=.2*s,h=s+c,{cssStyles:d}=t,p=ce.svg(i),g=fe(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=[{x:-l/2-l/2*.1,y:h/2},...Co(-l/2-l/2*.1,h/2,l/2+l/2*.1,h/2,c,.8),{x:l/2+l/2*.1,y:-h/2},{x:-l/2-l/2*.1,y:-h/2}],m=-l/2+l/2*.1,v=-h/2-f*.4,b=[{x:m+l-u,y:(v+s)*1.4},{x:m+l,y:v+s-f},{x:m+l,y:(v+s)*.9},...Co(m+l,(v+s)*1.3,m+l-u,(v+s)*1.5,-s*.03,.5)],S=Ie(y),C=p.path(S,g),w=Ie(b),_=p.path(w,{...g,fillStyle:"solid"}),P=i.insert(()=>_,":first-child");return P.insert(()=>C,":first-child"),P.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",n),P.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-l/2+(t.padding??0)-(a.x-(a.left??0))},${-s/2+(t.padding??0)-c/2-(a.y-(a.top??0))})`),pe(t,P),t.intersect=function(I){return re.polygon(t,y,I)},i}k(b8,"taggedWaveEdgedRectangle");async function w8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=Math.max(a.width+t.padding,(t==null?void 0:t.width)||0),l=Math.max(a.height+t.padding,(t==null?void 0:t.height)||0),s=-o/2,c=-l/2,u=i.insert("rect",":first-child");return u.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",s).attr("y",c).attr("width",o).attr("height",l),pe(t,u),t.intersect=function(f){return re.rect(t,f)},i}k(w8,"text");var XSe=k((e,t,r,n,i,a)=>`M${e},${t}
|
|
448
|
+
a${i},${a} 0,0,1 0,${-n}
|
|
449
|
+
l${r},0
|
|
450
|
+
a${i},${a} 0,0,1 0,${n}
|
|
451
|
+
M${r},${-n}
|
|
452
|
+
a${i},${a} 0,0,0 0,${n}
|
|
453
|
+
l${-r},0`,"createCylinderPathD"),ZSe=k((e,t,r,n,i,a)=>[`M${e},${t}`,`M${e+r},${t}`,`a${i},${a} 0,0,0 0,${-n}`,`l${-r},0`,`a${i},${a} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),QSe=k((e,t,r,n,i,a)=>[`M${e+r/2},${-n/2}`,`a${i},${a} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD");async function k8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o,halfPadding:l}=await ke(e,t,we(t)),s=t.look==="neo"?l*2:l,c=a.height+s,u=c/2,f=u/(2.5+c/50),h=a.width+f+s,{cssStyles:d}=t;let p;if(t.look==="handDrawn"){const g=ce.svg(i),y=ZSe(0,0,h,c,f,u),m=QSe(0,0,h,c,f,u),v=g.path(y,fe(t,{})),b=g.path(m,fe(t,{fill:"none"}));p=i.insert(()=>b,":first-child"),p=i.insert(()=>v,":first-child"),p.attr("class","basic label-container"),d&&p.attr("style",d)}else{const g=XSe(0,0,h,c,f,u);p=i.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",_r(d)).attr("style",n),p.attr("class","basic label-container"),d&&p.selectAll("path").attr("style",d),n&&p.selectAll("path").attr("style",n)}return p.attr("label-offset-x",f),p.attr("transform",`translate(${-h/2}, ${c/2} )`),o.attr("transform",`translate(${-(a.width/2)-f-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),pe(t,p),t.intersect=function(g){const y=re.rect(t,g),m=y.y-(t.y??0);if(u!=0&&(Math.abs(m)<(t.height??0)/2||Math.abs(m)==(t.height??0)/2&&Math.abs(y.x-(t.x??0))>(t.width??0)/2-f)){let v=f*f*(1-m*m/(u*u));v!=0&&(v=Math.sqrt(Math.abs(v))),v=f-v,g.x-(t.x??0)>0&&(v=-v),y.x+=v}return y},i}k(k8,"tiltedCylinder");async function S8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=a.width+t.padding,l=a.height+t.padding,s=[{x:-3*l/6,y:0},{x:o+3*l/6,y:0},{x:o,y:-l},{x:0,y:-l}];let c;const{cssStyles:u}=t;if(t.look==="handDrawn"){const f=ce.svg(i),h=fe(t,{}),d=Ie(s),p=f.path(d,h);c=i.insert(()=>p,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),u&&c.attr("style",u)}else c=jo(i,o,l,s);return n&&c.attr("style",n),t.width=o,t.height=l,pe(t,c),t.intersect=function(f){return re.polygon(t,s,f)},i}k(S8,"trapezoid");async function C8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=60,l=20,s=Math.max(o,a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(l,a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),{cssStyles:u}=t,f=ce.svg(i),h=fe(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const d=[{x:-s/2*.8,y:-c/2},{x:s/2*.8,y:-c/2},{x:s/2,y:-c/2*.6},{x:s/2,y:c/2},{x:-s/2,y:c/2},{x:-s/2,y:-c/2*.6}],p=Ie(d),g=f.path(p,h),y=i.insert(()=>g,":first-child");return y.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",u),n&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",n),pe(t,y),t.intersect=function(m){return re.polygon(t,d,m)},i}k(C8,"trapezoidalPentagon");async function _8(e,t){var v;const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=qt((v=Ue().flowchart)==null?void 0:v.htmlLabels),s=a.width+(t.padding??0),c=s+a.height,u=s+a.height,f=[{x:0,y:0},{x:u,y:0},{x:u/2,y:-c}],{cssStyles:h}=t,d=ce.svg(i),p=fe(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=Ie(f),y=d.path(g,p),m=i.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return h&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",h),n&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",n),t.width=s,t.height=c,pe(t,m),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${c/2-(a.height+(t.padding??0)/(l?2:1)-(a.y-(a.top??0)))})`),t.intersect=function(b){return Y.info("Triangle intersect",t,f,b),re.polygon(t,f,b)},i}k(_8,"triangle");async function E8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=s/8,u=s+c,{cssStyles:f}=t,d=70-l,p=d>0?d/2:0,g=ce.svg(i),y=fe(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const m=[{x:-l/2-p,y:u/2},...Co(-l/2-p,u/2,l/2+p,u/2,c,.8),{x:l/2+p,y:-u/2},{x:-l/2-p,y:-u/2}],v=Ie(m),b=g.path(v,y),S=i.insert(()=>b,":first-child");return S.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",n),S.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-l/2+(t.padding??0)-(a.x-(a.left??0))},${-s/2+(t.padding??0)-c-(a.y-(a.top??0))})`),pe(t,S),t.intersect=function(C){return re.polygon(t,m,C)},i}k(E8,"waveEdgedRectangle");async function T8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a}=await ke(e,t,we(t)),o=100,l=50,s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=s/c;let f=s,h=c;f>h*u?h=f/u:f=h*u,f=Math.max(f,o),h=Math.max(h,l);const d=Math.min(h*.2,h/4),p=h+d*2,{cssStyles:g}=t,y=ce.svg(i),m=fe(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const v=[{x:-f/2,y:p/2},...Co(-f/2,p/2,f/2,p/2,d,1),{x:f/2,y:-p/2},...Co(f/2,-p/2,-f/2,-p/2,d,-1)],b=Ie(v),S=y.path(b,m),C=i.insert(()=>S,":first-child");return C.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",g),n&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",n),pe(t,C),t.intersect=function(w){return re.polygon(t,v,w)},i}k(T8,"waveRectangle");async function P8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await ke(e,t,we(t)),l=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=5,u=-l/2,f=-s/2,{cssStyles:h}=t,d=ce.svg(i),p=fe(t,{}),g=[{x:u-c,y:f-c},{x:u-c,y:f+s},{x:u+l,y:f+s},{x:u+l,y:f-c}],y=`M${u-c},${f-c} L${u+l},${f-c} L${u+l},${f+s} L${u-c},${f+s} L${u-c},${f-c}
|
|
454
|
+
M${u-c},${f} L${u+l},${f}
|
|
455
|
+
M${u},${f-c} L${u},${f+s}`;t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=d.path(y,p),v=i.insert(()=>m,":first-child");return v.attr("transform",`translate(${c/2}, ${c/2})`),v.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",h),n&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",n),o.attr("transform",`translate(${-(a.width/2)+c/2-(a.x-(a.left??0))}, ${-(a.height/2)+c/2-(a.y-(a.top??0))})`),pe(t,v),t.intersect=function(b){return re.polygon(t,g,b)},i}k(P8,"windowPane");async function H2(e,t){var J,O,ue,ye;const r=t;if(r.alias&&(t.label=r.alias),t.look==="handDrawn"){const{themeVariables:te}=Sr(),{background:de}=te,Te={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${de}`]};await H2(e,Te)}const n=Sr();t.useHtmlLabels=n.htmlLabels;let i=((J=n.er)==null?void 0:J.diagramPadding)??10,a=((O=n.er)==null?void 0:O.entityPadding)??6;const{cssStyles:o}=t,{labelStyles:l,nodeStyles:s}=he(t);if(r.attributes.length===0&&t.label){const te={rx:0,ry:0,labelPaddingX:i,labelPaddingY:i*1.5};Ia(t.label,n)+te.labelPaddingX*2<n.er.minEntityWidth&&(t.width=n.er.minEntityWidth);const de=await kv(e,t,te);if(!qt(n.htmlLabels)){const Te=de.select("text"),U=(ue=Te.node())==null?void 0:ue.getBBox();Te.attr("transform",`translate(${-U.width/2}, 0)`)}return de}n.htmlLabels||(i*=1.25,a*=1.25);let c=we(t);c||(c="node default");const u=e.insert("g").attr("class",c).attr("id",t.domId||t.id),f=await hs(u,t.label??"",n,0,0,["name"],l);f.height+=a;let h=0;const d=[],p=[];let g=0,y=0,m=0,v=0,b=!0,S=!0;for(const te of r.attributes){const de=await hs(u,te.type,n,0,h,["attribute-type"],l);g=Math.max(g,de.width+i);const Te=await hs(u,te.name,n,0,h,["attribute-name"],l);y=Math.max(y,Te.width+i);const U=await hs(u,te.keys.join(),n,0,h,["attribute-keys"],l);m=Math.max(m,U.width+i);const ne=await hs(u,te.comment,n,0,h,["attribute-comment"],l);v=Math.max(v,ne.width+i);const me=Math.max(de.height,Te.height,U.height,ne.height)+a;p.push({yOffset:h,rowHeight:me}),h+=me}let C=4;m<=i&&(b=!1,m=0,C--),v<=i&&(S=!1,v=0,C--);const w=u.node().getBBox();if(f.width+i*2-(g+y+m+v)>0){const te=f.width+i*2-(g+y+m+v);g+=te/C,y+=te/C,m>0&&(m+=te/C),v>0&&(v+=te/C)}const _=g+y+m+v,P=ce.svg(u),I=fe(t,{});t.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let $=0;p.length>0&&($=p.reduce((te,de)=>te+((de==null?void 0:de.rowHeight)??0),0));const A=Math.max(w.width+i*2,(t==null?void 0:t.width)||0,_),M=Math.max(($??0)+f.height,(t==null?void 0:t.height)||0),F=-A/2,N=-M/2;u.selectAll("g:not(:first-child)").each((te,de,Te)=>{const U=De(Te[de]),ne=U.attr("transform");let me=0,K=0;if(ne){const Le=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ne);Le&&(me=parseFloat(Le[1]),K=parseFloat(Le[2]),U.attr("class").includes("attribute-name")?me+=g:U.attr("class").includes("attribute-keys")?me+=g+y:U.attr("class").includes("attribute-comment")&&(me+=g+y+m))}U.attr("transform",`translate(${F+i/2+me}, ${K+N+f.height+a/2})`)}),u.select(".name").attr("transform","translate("+-f.width/2+", "+(N+a/2)+")");const D=P.rectangle(F,N,A,M,I),j=u.insert(()=>D,":first-child").attr("style",o.join("")),{themeVariables:B}=Sr(),{rowEven:L,rowOdd:W,nodeBorder:T}=B;d.push(0);for(const[te,de]of p.entries()){const U=(te+1)%2===0&&de.yOffset!==0,ne=P.rectangle(F,f.height+N+(de==null?void 0:de.yOffset),A,de==null?void 0:de.rowHeight,{...I,fill:U?L:W,stroke:T});u.insert(()=>ne,"g.label").attr("style",o.join("")).attr("class",`row-rect-${U?"even":"odd"}`)}let V=P.line(F,f.height+N,A+F,f.height+N,I);u.insert(()=>V).attr("class","divider"),V=P.line(g+F,f.height+N,g+F,M+N,I),u.insert(()=>V).attr("class","divider"),b&&(V=P.line(g+y+F,f.height+N,g+y+F,M+N,I),u.insert(()=>V).attr("class","divider")),S&&(V=P.line(g+y+m+F,f.height+N,g+y+m+F,M+N,I),u.insert(()=>V).attr("class","divider"));for(const te of d)V=P.line(F,f.height+N+te,A+F,f.height+N+te,I),u.insert(()=>V).attr("class","divider");if(pe(t,j),s&&t.look!=="handDrawn"){const te=s.split(";"),de=(ye=te==null?void 0:te.filter(Te=>Te.includes("stroke")))==null?void 0:ye.map(Te=>`${Te}`).join("; ");u.selectAll("path").attr("style",de??""),u.selectAll(".row-rect-even path").attr("style",s)}return t.intersect=function(te){return re.rect(t,te)},u}k(H2,"erBox");async function hs(e,t,r,n=0,i=0,a=[],o=""){const l=e.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${n}, ${i})`).attr("style",o);t!==xM(t)&&(t=xM(t),t=t.replaceAll("<","<").replaceAll(">",">"));const s=l.node().appendChild(await Do(l,t,{width:Ia(t,r)+100,style:o,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let u=s.children[0];for(u.textContent=u.textContent.replaceAll("<","<").replaceAll(">",">");u.childNodes[0];)u=u.childNodes[0],u.textContent=u.textContent.replaceAll("<","<").replaceAll(">",">")}let c=s.getBBox();if(qt(r.htmlLabels)){const u=s.children[0];u.style.textAlign="start";const f=De(s);c=u.getBoundingClientRect(),f.attr("width",c.width),f.attr("height",c.height)}return c}k(hs,"addText");async function A8(e,t,r,n,i=r.class.padding??12){const a=n?0:3,o=e.insert("g").attr("class",we(t)).attr("id",t.domId||t.id);let l=null,s=null,c=null,u=null,f=0,h=0,d=0;if(l=o.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const v=t.annotations[0];await Fu(l,{text:`«${v}»`},0),f=l.node().getBBox().height}s=o.insert("g").attr("class","label-group text"),await Fu(s,t,0,["font-weight: bolder"]);const p=s.node().getBBox();h=p.height,c=o.insert("g").attr("class","members-group text");let g=0;for(const v of t.members){const b=await Fu(c,v,g,[v.parseClassifier()]);g+=b+a}d=c.node().getBBox().height,d<=0&&(d=i/2),u=o.insert("g").attr("class","methods-group text");let y=0;for(const v of t.methods){const b=await Fu(u,v,y,[v.parseClassifier()]);y+=b+a}let m=o.node().getBBox();if(l!==null){const v=l.node().getBBox();l.attr("transform",`translate(${-v.width/2})`)}return s.attr("transform",`translate(${-p.width/2}, ${f})`),m=o.node().getBBox(),c.attr("transform",`translate(0, ${f+h+i*2})`),m=o.node().getBBox(),u.attr("transform",`translate(0, ${f+h+(d?d+i*4:i*2)})`),m=o.node().getBBox(),{shapeSvg:o,bbox:m}}k(A8,"textHelper");async function Fu(e,t,r,n=[]){const i=e.insert("g").attr("class","label").attr("style",n.join("; ")),a=Sr();let o="useHtmlLabels"in t?t.useHtmlLabels:qt(a.htmlLabels)??!0,l="";"text"in t?l=t.text:l=t.label,!o&&l.startsWith("\\")&&(l=l.substring(1)),pc(l)&&(o=!0);const s=await Do(i,o2(Jl(l)),{width:Ia(l,a)+50,classes:"markdown-node-label",useHtmlLabels:o},a);let c,u=1;if(o){const f=s.children[0],h=De(s);u=f.innerHTML.split("<br>").length,f.innerHTML.includes("</math>")&&(u+=f.innerHTML.split("<mrow>").length-1);const d=f.getElementsByTagName("img");if(d){const p=l.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...d].map(g=>new Promise(y=>{function m(){var v;if(g.style.display="flex",g.style.flexDirection="column",p){const b=((v=a.fontSize)==null?void 0:v.toString())??window.getComputedStyle(document.body).fontSize,C=parseInt(b,10)*5+"px";g.style.minWidth=C,g.style.maxWidth=C}else g.style.width="100%";y(g)}k(m,"setupImage"),setTimeout(()=>{g.complete&&m()}),g.addEventListener("error",m),g.addEventListener("load",m)})))}c=f.getBoundingClientRect(),h.attr("width",c.width),h.attr("height",c.height)}else{n.includes("font-weight: bolder")&&De(s).selectAll("tspan").attr("font-weight",""),u=s.children.length;const f=s.children[0];(s.textContent===""||s.textContent.includes(">"))&&(f.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" "&&(f.textContent=f.textContent[0]+" "+f.textContent.substring(1))),f.textContent==="undefined"&&(f.textContent=""),c=s.getBBox()}return i.attr("transform","translate(0,"+(-c.height/(2*u)+r)+")"),c.height}k(Fu,"addText");async function O8(e,t){var I,$;const r=Ue(),n=r.class.padding??12,i=n,a=t.useHtmlLabels??qt(r.htmlLabels)??!0,o=t;o.annotations=o.annotations??[],o.members=o.members??[],o.methods=o.methods??[];const{shapeSvg:l,bbox:s}=await A8(e,t,r,a,i),{labelStyles:c,nodeStyles:u}=he(t);t.labelStyle=c,t.cssStyles=o.styles||"";const f=((I=o.styles)==null?void 0:I.join(";"))||u||"";t.cssStyles||(t.cssStyles=f.replaceAll("!important","").split(";"));const h=o.members.length===0&&o.methods.length===0&&!(($=r.class)!=null&&$.hideEmptyMembersBox),d=ce.svg(l),p=fe(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=s.width;let y=s.height;o.members.length===0&&o.methods.length===0?y+=i:o.members.length>0&&o.methods.length===0&&(y+=i*2);const m=-g/2,v=-y/2,b=d.rectangle(m-n,v-n-(h?n:o.members.length===0&&o.methods.length===0?-n/2:0),g+2*n,y+2*n+(h?n*2:o.members.length===0&&o.methods.length===0?-n:0),p),S=l.insert(()=>b,":first-child");S.attr("class","basic label-container");const C=S.node().getBBox();l.selectAll(".text").each((A,M,F)=>{var W;const N=De(F[M]),D=N.attr("transform");let j=0;if(D){const V=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(D);V&&(j=parseFloat(V[2]))}let B=j+v+n-(h?n:o.members.length===0&&o.methods.length===0?-n/2:0);a||(B-=4);let L=m;(N.attr("class").includes("label-group")||N.attr("class").includes("annotation-group"))&&(L=-((W=N.node())==null?void 0:W.getBBox().width)/2||0,l.selectAll("text").each(function(T,V,J){window.getComputedStyle(J[V]).textAnchor==="middle"&&(L=0)})),N.attr("transform",`translate(${L}, ${B})`)});const w=l.select(".annotation-group").node().getBBox().height-(h?n/2:0)||0,_=l.select(".label-group").node().getBBox().height-(h?n/2:0)||0,P=l.select(".members-group").node().getBBox().height-(h?n/2:0)||0;if(o.members.length>0||o.methods.length>0||h){const A=d.line(C.x,w+_+v+n,C.x+C.width,w+_+v+n,p);l.insert(()=>A).attr("class","divider").attr("style",f)}if(h||o.members.length>0||o.methods.length>0){const A=d.line(C.x,w+_+P+v+i*2+n,C.x+C.width,w+_+P+v+n+i*2,p);l.insert(()=>A).attr("class","divider").attr("style",f)}if(o.look!=="handDrawn"&&l.selectAll("path").attr("style",f),S.select(":nth-child(2)").attr("style",f),l.selectAll(".divider").select("path").attr("style",f),t.labelStyle?l.selectAll("span").attr("style",t.labelStyle):l.selectAll("span").attr("style",f),!a){const A=RegExp(/color\s*:\s*([^;]*)/),M=A.exec(f);if(M){const F=M[0].replace("color","fill");l.selectAll("tspan").attr("style",F)}else if(c){const F=A.exec(c);if(F){const N=F[0].replace("color","fill");l.selectAll("tspan").attr("style",N)}}}return pe(t,S),t.intersect=function(A){return re.rect(t,A)},l}k(O8,"classBox");async function M8(e,t){var w,_;const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const i=t,a=t,o=20,l=20,s="verifyMethod"in t,c=we(t),u=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let f;s?f=await Mi(u,`<<${i.type}>>`,0,t.labelStyle):f=await Mi(u,"<<Element>>",0,t.labelStyle);let h=f;const d=await Mi(u,i.name,h,t.labelStyle+"; font-weight: bold;");if(h+=d+l,s){const P=await Mi(u,`${i.requirementId?`ID: ${i.requirementId}`:""}`,h,t.labelStyle);h+=P;const I=await Mi(u,`${i.text?`Text: ${i.text}`:""}`,h,t.labelStyle);h+=I;const $=await Mi(u,`${i.risk?`Risk: ${i.risk}`:""}`,h,t.labelStyle);h+=$,await Mi(u,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:""}`,h,t.labelStyle)}else{const P=await Mi(u,`${a.type?`Type: ${a.type}`:""}`,h,t.labelStyle);h+=P,await Mi(u,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,h,t.labelStyle)}const p=(((w=u.node())==null?void 0:w.getBBox().width)??200)+o,g=(((_=u.node())==null?void 0:_.getBBox().height)??200)+o,y=-p/2,m=-g/2,v=ce.svg(u),b=fe(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const S=v.rectangle(y,m,p,g,b),C=u.insert(()=>S,":first-child");if(C.attr("class","basic label-container").attr("style",n),u.selectAll(".label").each((P,I,$)=>{const A=De($[I]),M=A.attr("transform");let F=0,N=0;if(M){const L=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(M);L&&(F=parseFloat(L[1]),N=parseFloat(L[2]))}const D=N-g/2;let j=y+o/2;(I===0||I===1)&&(j=F),A.attr("transform",`translate(${j}, ${D+o})`)}),h>f+d+l){const P=v.line(y,m+f+d+l,y+p,m+f+d+l,b);u.insert(()=>P).attr("style",n)}return pe(t,C),t.intersect=function(P){return re.rect(t,P)},u}k(M8,"requirementBox");async function Mi(e,t,r,n=""){if(t==="")return 0;const i=e.insert("g").attr("class","label").attr("style",n),a=Ue(),o=a.htmlLabels??!0,l=await Do(i,o2(Jl(t)),{width:Ia(t,a)+50,classes:"markdown-node-label",useHtmlLabels:o,style:n},a);let s;if(o){const c=l.children[0],u=De(l);s=c.getBoundingClientRect(),u.attr("width",s.width),u.attr("height",s.height)}else{const c=l.children[0];for(const u of c.children)u.textContent=u.textContent.replaceAll(">",">").replaceAll("<","<"),n&&u.setAttribute("style",n);s=l.getBBox(),s.height+=6}return i.attr("transform",`translate(${-s.width/2},${-s.height/2+r})`),s.height}k(Mi,"addText");var JSe=k(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function L8(e,t,{config:r}){var M,F;const{labelStyles:n,nodeStyles:i}=he(t);t.labelStyle=n||"";const a=10,o=t.width;t.width=(t.width??200)-10;const{shapeSvg:l,bbox:s,label:c}=await ke(e,t,we(t)),u=t.padding||10;let f="",h;"ticket"in t&&t.ticket&&((M=r==null?void 0:r.kanban)!=null&&M.ticketBaseUrl)&&(f=(F=r==null?void 0:r.kanban)==null?void 0:F.ticketBaseUrl.replace("#TICKET#",t.ticket),h=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",f).attr("target","_blank"));const d={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let p,g;h?{label:p,bbox:g}=await nx(h,"ticket"in t&&t.ticket||"",d):{label:p,bbox:g}=await nx(l,"ticket"in t&&t.ticket||"",d);const{label:y,bbox:m}=await nx(l,"assigned"in t&&t.assigned||"",d);t.width=o;const v=10,b=(t==null?void 0:t.width)||0,S=Math.max(g.height,m.height)/2,C=Math.max(s.height+v*2,(t==null?void 0:t.height)||0)+S,w=-b/2,_=-C/2;c.attr("transform","translate("+(u-b/2)+", "+(-S-s.height/2)+")"),p.attr("transform","translate("+(u-b/2)+", "+(-S+s.height/2)+")"),y.attr("transform","translate("+(u+b/2-m.width-2*a)+", "+(-S+s.height/2)+")");let P;const{rx:I,ry:$}=t,{cssStyles:A}=t;if(t.look==="handDrawn"){const N=ce.svg(l),D=fe(t,{}),j=I||$?N.path(No(w,_,b,C,I||0),D):N.rectangle(w,_,b,C,D);P=l.insert(()=>j,":first-child"),P.attr("class","basic label-container").attr("style",A||null)}else{P=l.insert("rect",":first-child"),P.attr("class","basic label-container __APA__").attr("style",i).attr("rx",I??5).attr("ry",$??5).attr("x",w).attr("y",_).attr("width",b).attr("height",C);const N="priority"in t&&t.priority;if(N){const D=l.append("line"),j=w+2,B=_+Math.floor((I??0)/2),L=_+C-Math.floor((I??0)/2);D.attr("x1",j).attr("y1",B).attr("x2",j).attr("y2",L).attr("stroke-width","4").attr("stroke",JSe(N))}}return pe(t,P),t.height=C,t.intersect=function(N){return re.rect(t,N)},l}k(L8,"kanbanItem");async function I8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,halfPadding:o,label:l}=await ke(e,t,we(t)),s=a.width+10*o,c=a.height+8*o,u=.15*s,{cssStyles:f}=t,h=a.width+20,d=a.height+20,p=Math.max(s,h),g=Math.max(c,d);l.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let y;const m=`M0 0
|
|
456
|
+
a${u},${u} 1 0,0 ${p*.25},${-1*g*.1}
|
|
457
|
+
a${u},${u} 1 0,0 ${p*.25},0
|
|
458
|
+
a${u},${u} 1 0,0 ${p*.25},0
|
|
459
|
+
a${u},${u} 1 0,0 ${p*.25},${g*.1}
|
|
460
|
+
|
|
461
|
+
a${u},${u} 1 0,0 ${p*.15},${g*.33}
|
|
462
|
+
a${u*.8},${u*.8} 1 0,0 0,${g*.34}
|
|
463
|
+
a${u},${u} 1 0,0 ${-1*p*.15},${g*.33}
|
|
464
|
+
|
|
465
|
+
a${u},${u} 1 0,0 ${-1*p*.25},${g*.15}
|
|
466
|
+
a${u},${u} 1 0,0 ${-1*p*.25},0
|
|
467
|
+
a${u},${u} 1 0,0 ${-1*p*.25},0
|
|
468
|
+
a${u},${u} 1 0,0 ${-1*p*.25},${-1*g*.15}
|
|
469
|
+
|
|
470
|
+
a${u},${u} 1 0,0 ${-1*p*.1},${-1*g*.33}
|
|
471
|
+
a${u*.8},${u*.8} 1 0,0 0,${-1*g*.34}
|
|
472
|
+
a${u},${u} 1 0,0 ${p*.1},${-1*g*.33}
|
|
473
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const v=ce.svg(i),b=fe(t,{}),S=v.path(m,b);y=i.insert(()=>S,":first-child"),y.attr("class","basic label-container").attr("style",_r(f))}else y=i.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",m);return y.attr("transform",`translate(${-p/2}, ${-g/2})`),pe(t,y),t.calcIntersect=function(v,b){return re.rect(v,b)},t.intersect=function(v){return Y.info("Bang intersect",t,v),re.rect(t,v)},i}k(I8,"bang");async function $8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,halfPadding:o,label:l}=await ke(e,t,we(t)),s=a.width+2*o,c=a.height+2*o,u=.15*s,f=.25*s,h=.35*s,d=.2*s,{cssStyles:p}=t;let g;const y=`M0 0
|
|
474
|
+
a${u},${u} 0 0,1 ${s*.25},${-1*s*.1}
|
|
475
|
+
a${h},${h} 1 0,1 ${s*.4},${-1*s*.1}
|
|
476
|
+
a${f},${f} 1 0,1 ${s*.35},${s*.2}
|
|
477
|
+
|
|
478
|
+
a${u},${u} 1 0,1 ${s*.15},${c*.35}
|
|
479
|
+
a${d},${d} 1 0,1 ${-1*s*.15},${c*.65}
|
|
480
|
+
|
|
481
|
+
a${f},${u} 1 0,1 ${-1*s*.25},${s*.15}
|
|
482
|
+
a${h},${h} 1 0,1 ${-1*s*.5},0
|
|
483
|
+
a${u},${u} 1 0,1 ${-1*s*.25},${-1*s*.15}
|
|
484
|
+
|
|
485
|
+
a${u},${u} 1 0,1 ${-1*s*.1},${-1*c*.35}
|
|
486
|
+
a${d},${d} 1 0,1 ${s*.1},${-1*c*.65}
|
|
487
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const m=ce.svg(i),v=fe(t,{}),b=m.path(y,v);g=i.insert(()=>b,":first-child"),g.attr("class","basic label-container").attr("style",_r(p))}else g=i.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",y);return l.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),g.attr("transform",`translate(${-s/2}, ${-c/2})`),pe(t,g),t.calcIntersect=function(m,v){return re.rect(m,v)},t.intersect=function(m){return Y.info("Cloud intersect",t,m),re.rect(t,m)},i}k($8,"cloud");async function D8(e,t){const{labelStyles:r,nodeStyles:n}=he(t);t.labelStyle=r;const{shapeSvg:i,bbox:a,halfPadding:o,label:l}=await ke(e,t,we(t)),s=a.width+8*o,c=a.height+2*o,u=5,f=`
|
|
488
|
+
M${-s/2} ${c/2-u}
|
|
489
|
+
v${-c+2*u}
|
|
490
|
+
q0,-${u} ${u},-${u}
|
|
491
|
+
h${s-2*u}
|
|
492
|
+
q${u},0 ${u},${u}
|
|
493
|
+
v${c-2*u}
|
|
494
|
+
q0,${u} -${u},${u}
|
|
495
|
+
h${-s+2*u}
|
|
496
|
+
q-${u},0 -${u},-${u}
|
|
497
|
+
Z
|
|
498
|
+
`,h=i.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",n).attr("d",f);return i.append("line").attr("class","node-line-").attr("x1",-s/2).attr("y1",c/2).attr("x2",s/2).attr("y2",c/2),l.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>l.node()),pe(t,h),t.calcIntersect=function(d,p){return re.rect(d,p)},t.intersect=function(d){return re.rect(t,d)},i}k(D8,"defaultMindmapNode");async function N8(e,t){const r={padding:t.padding??0};return W2(e,t,r)}k(N8,"mindmapCircle");var eCe=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:d8},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:u8},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:p8},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:v8},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:j6},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:W2},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:I8},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:$8},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:l8},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:U6},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:e8},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:J6},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:S8},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:Z6},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:B6},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:w8},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:A6},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:f8},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:y8},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:m8},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:W6},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:q6},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:I6},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:$6},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:D6},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:t8},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:E8},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:H6},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:k8},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:r8},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:N6},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:R6},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:_8},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:P8},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:F6},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:C8},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:z6},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:h8},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:a8},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:i8},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:P6},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:L6},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:b8},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:x8},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:T8},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:s8},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:n8}],tCe=k(()=>{const t=[...Object.entries({state:g8,choice:O6,note:o8,rectWithTitle:c8,labelRect:Q6,iconSquare:G6,iconCircle:Y6,icon:V6,iconRounded:K6,imageSquare:X6,anchor:T6,kanbanItem:L8,mindmapCircle:N8,defaultMindmapNode:D8,classBox:O8,erBox:H2,requirementBox:M8}),...eCe.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(i=>[i,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),j8=tCe();function rCe(e){return e in j8}k(rCe,"isValidShape");var Sv=new Map;async function R8(e,t,r){let n,i;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const a=t.shape?j8[t.shape]:void 0;if(!a)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;r.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),i=await a(n,t,r)}else i=await a(e,t,r),n=i;return t.tooltip&&i.attr("title",t.tooltip),Sv.set(t.id,n),t.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}k(R8,"insertNode");var zTe=k((e,t)=>{Sv.set(t.id,e)},"setNodeElem"),WTe=k(()=>{Sv.clear()},"clear"),HTe=k(e=>{const t=Sv.get(e.id);Y.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,n=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),n},"positionNode"),nCe=k((e,t,r,n,i,a)=>{t.arrowTypeStart&&fL(e,"start",t.arrowTypeStart,r,n,i,a),t.arrowTypeEnd&&fL(e,"end",t.arrowTypeEnd,r,n,i,a)},"addEdgeMarkers"),iCe={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},fL=k((e,t,r,n,i,a,o)=>{var f;const l=iCe[r];if(!l){Y.warn(`Unknown arrow type: ${r}`);return}const s=l.type,u=`${i}_${a}-${s}${t==="start"?"Start":"End"}`;if(o&&o.trim()!==""){const h=o.replace(/[^\dA-Za-z]/g,"_"),d=`${u}_${h}`;if(!document.getElementById(d)){const p=document.getElementById(u);if(p){const g=p.cloneNode(!0);g.id=d,g.querySelectorAll("path, circle, line").forEach(m=>{m.setAttribute("stroke",o),l.fill&&m.setAttribute("fill",o)}),(f=p.parentNode)==null||f.appendChild(g)}}e.attr(`marker-${t}`,`url(${n}#${d})`)}else e.attr(`marker-${t}`,`url(${n}#${u})`)},"addEdgeMarker"),km=new Map,sr=new Map,UTe=k(()=>{km.clear(),sr.clear()},"clear"),zd=k(e=>e?e.reduce((r,n)=>r+";"+n,""):"","getLabelStyles"),aCe=k(async(e,t)=>{let r=qt(Ue().flowchart.htmlLabels);const{labelStyles:n}=he(t);t.labelStyle=n;const i=await Do(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0,isNode:!1});Y.info("abc82",t,t.labelType);const a=e.insert("g").attr("class","edgeLabel"),o=a.insert("g").attr("class","label").attr("data-id",t.id);o.node().appendChild(i);let l=i.getBBox();if(r){const c=i.children[0],u=De(i);l=c.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}o.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),km.set(t.id,a),t.width=l.width,t.height=l.height;let s;if(t.startLabelLeft){const c=await cl(t.startLabelLeft,zd(t.labelStyle)),u=e.insert("g").attr("class","edgeTerminals"),f=u.insert("g").attr("class","inner");s=f.node().appendChild(c);const h=c.getBBox();f.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),sr.get(t.id)||sr.set(t.id,{}),sr.get(t.id).startLeft=u,zu(s,t.startLabelLeft)}if(t.startLabelRight){const c=await cl(t.startLabelRight,zd(t.labelStyle)),u=e.insert("g").attr("class","edgeTerminals"),f=u.insert("g").attr("class","inner");s=u.node().appendChild(c),f.node().appendChild(c);const h=c.getBBox();f.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),sr.get(t.id)||sr.set(t.id,{}),sr.get(t.id).startRight=u,zu(s,t.startLabelRight)}if(t.endLabelLeft){const c=await cl(t.endLabelLeft,zd(t.labelStyle)),u=e.insert("g").attr("class","edgeTerminals"),f=u.insert("g").attr("class","inner");s=f.node().appendChild(c);const h=c.getBBox();f.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),u.node().appendChild(c),sr.get(t.id)||sr.set(t.id,{}),sr.get(t.id).endLeft=u,zu(s,t.endLabelLeft)}if(t.endLabelRight){const c=await cl(t.endLabelRight,zd(t.labelStyle)),u=e.insert("g").attr("class","edgeTerminals"),f=u.insert("g").attr("class","inner");s=f.node().appendChild(c);const h=c.getBBox();f.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),u.node().appendChild(c),sr.get(t.id)||sr.set(t.id,{}),sr.get(t.id).endRight=u,zu(s,t.endLabelRight)}return i},"insertEdgeLabel");function zu(e,t){Ue().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}k(zu,"setTerminalWidth");var oCe=k((e,t)=>{Y.debug("Moving label abc88 ",e.id,e.label,km.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const n=Ue(),{subGraphTitleTotalMargin:i}=x2(n);if(e.label){const a=km.get(e.id);let o=e.x,l=e.y;if(r){const s=ci.calcLabelPosition(r);Y.debug("Moving label "+e.label+" from (",o,",",l,") to (",s.x,",",s.y,") abc88"),t.updatedPath&&(o=s.x,l=s.y)}a.attr("transform",`translate(${o}, ${l+i/2})`)}if(e.startLabelLeft){const a=sr.get(e.id).startLeft;let o=e.x,l=e.y;if(r){const s=ci.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=s.x,l=s.y}a.attr("transform",`translate(${o}, ${l})`)}if(e.startLabelRight){const a=sr.get(e.id).startRight;let o=e.x,l=e.y;if(r){const s=ci.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);o=s.x,l=s.y}a.attr("transform",`translate(${o}, ${l})`)}if(e.endLabelLeft){const a=sr.get(e.id).endLeft;let o=e.x,l=e.y;if(r){const s=ci.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=s.x,l=s.y}a.attr("transform",`translate(${o}, ${l})`)}if(e.endLabelRight){const a=sr.get(e.id).endRight;let o=e.x,l=e.y;if(r){const s=ci.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=s.x,l=s.y}a.attr("transform",`translate(${o}, ${l})`)}},"positionEdgeLabel"),lCe=k((e,t)=>{const r=e.x,n=e.y,i=Math.abs(t.x-r),a=Math.abs(t.y-n),o=e.width/2,l=e.height/2;return i>=o||a>=l},"outsideNode"),sCe=k((e,t,r)=>{Y.debug(`intersection calc abc89:
|
|
499
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
500
|
+
insidePoint : ${JSON.stringify(r)}
|
|
501
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const n=e.x,i=e.y,a=Math.abs(n-r.x),o=e.width/2;let l=r.x<t.x?o-a:o+a;const s=e.height/2,c=Math.abs(t.y-r.y),u=Math.abs(t.x-r.x);if(Math.abs(i-t.y)*o>Math.abs(n-t.x)*s){let f=r.y<t.y?t.y-s-i:i-s-t.y;l=u*f/c;const h={x:r.x<t.x?r.x+l:r.x-u+l,y:r.y<t.y?r.y+c-f:r.y-c+f};return l===0&&(h.x=t.x,h.y=t.y),u===0&&(h.x=t.x),c===0&&(h.y=t.y),Y.debug(`abc89 top/bottom calc, Q ${c}, q ${f}, R ${u}, r ${l}`,h),h}else{r.x<t.x?l=t.x-o-n:l=n-o-t.x;let f=c*l/u,h=r.x<t.x?r.x+u-l:r.x-u+l,d=r.y<t.y?r.y+f:r.y-f;return Y.debug(`sides calc abc89, Q ${c}, q ${f}, R ${u}, r ${l}`,{_x:h,_y:d}),l===0&&(h=t.x,d=t.y),u===0&&(h=t.x),c===0&&(d=t.y),{x:h,y:d}}},"intersection"),hL=k((e,t)=>{Y.warn("abc88 cutPathAtIntersect",e,t);let r=[],n=e[0],i=!1;return e.forEach(a=>{if(Y.info("abc88 checking point",a,t),!lCe(t,a)&&!i){const o=sCe(t,n,a);Y.debug("abc88 inside",a,n,o),Y.debug("abc88 intersection",o,t);let l=!1;r.forEach(s=>{l=l||s.x===o.x&&s.y===o.y}),r.some(s=>s.x===o.x&&s.y===o.y)?Y.warn("abc88 no intersect",o,r):r.push(o),i=!0}else Y.warn("abc88 outside",a,n),n=a,i||r.push(a)}),Y.debug("returning points",r),r},"cutPathAtIntersect");function B8(e){const t=[],r=[];for(let n=1;n<e.length-1;n++){const i=e[n-1],a=e[n],o=e[n+1];(i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),r.push(n))}return{cornerPoints:t,cornerPointPositions:r}}k(B8,"extractCornerPoints");var dL=k(function(e,t,r){const n=t.x-e.x,i=t.y-e.y,a=Math.sqrt(n*n+i*i),o=r/a;return{x:t.x-o*n,y:t.y-o*i}},"findAdjacentPoint"),cCe=k(function(e){const{cornerPointPositions:t}=B8(e),r=[];for(let n=0;n<e.length;n++)if(t.includes(n)){const i=e[n-1],a=e[n+1],o=e[n],l=dL(i,o,5),s=dL(a,o,5),c=s.x-l.x,u=s.y-l.y;r.push(l);const f=Math.sqrt(2)*2;let h={x:o.x,y:o.y};if(Math.abs(a.x-i.x)>10&&Math.abs(a.y-i.y)>=10){Y.debug("Corner point fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));const d=5;o.x===l.x?h={x:c<0?l.x-d+f:l.x+d-f,y:u<0?l.y-f:l.y+f}:h={x:c<0?l.x-f:l.x+f,y:u<0?l.y-d+f:l.y+d-f}}else Y.debug("Corner point skipping fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));r.push(h,s)}else r.push(e[n]);return r},"fixCorners"),uCe=k((e,t,r)=>{const n=e-t-r,i=2,a=2,o=i+a,l=Math.floor(n/o),s=Array(l).fill(`${i} ${a}`).join(" ");return`0 ${t} ${s} ${r}`},"generateDashArray"),fCe=k(function(e,t,r,n,i,a,o,l=!1){var N;const{handDrawnSeed:s}=Ue();let c=t.points,u=!1;const f=i;var h=a;const d=[];for(const D in t.cssCompiledStyles)gz(D)||d.push(t.cssCompiledStyles[D]);Y.debug("UIO intersect check",t.points,h.x,f.x),h.intersect&&f.intersect&&!l&&(c=c.slice(1,t.points.length-1),c.unshift(f.intersect(c[0])),Y.debug("Last point UIO",t.start,"-->",t.end,c[c.length-1],h,h.intersect(c[c.length-1])),c.push(h.intersect(c[c.length-1])));const p=btoa(JSON.stringify(c));t.toCluster&&(Y.info("to cluster abc88",r.get(t.toCluster)),c=hL(t.points,r.get(t.toCluster).node),u=!0),t.fromCluster&&(Y.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(c,null,2)),c=hL(c.reverse(),r.get(t.fromCluster).node).reverse(),u=!0);let g=c.filter(D=>!Number.isNaN(D.y));g=cCe(g);let y=ef;switch(y=Sl,t.curve){case"linear":y=Sl;break;case"basis":y=ef;break;case"cardinal":y=pN;break;case"bumpX":y=Ak;break;case"bumpY":y=Ok;break;case"catmullRom":y=mN;break;case"monotoneX":y=Nk;break;case"monotoneY":y=jk;break;case"natural":y=Rk;break;case"step":y=Bk;break;case"stepAfter":y=zk;break;case"stepBefore":y=Fk;break;default:y=ef}const{x:m,y:v}=lbe(t),b=Pk().x(m).y(v).curve(y);let S;switch(t.thickness){case"normal":S="edge-thickness-normal";break;case"thick":S="edge-thickness-thick";break;case"invisible":S="edge-thickness-invisible";break;default:S="edge-thickness-normal"}switch(t.pattern){case"solid":S+=" edge-pattern-solid";break;case"dotted":S+=" edge-pattern-dotted";break;case"dashed":S+=" edge-pattern-dashed";break;default:S+=" edge-pattern-solid"}let C,w=t.curve==="rounded"?F8(z8(g,t),5):b(g);const _=Array.isArray(t.style)?t.style:[t.style];let P=_.find(D=>D==null?void 0:D.startsWith("stroke:")),I=!1;if(t.look==="handDrawn"){const D=ce.svg(e);Object.assign([],g);const j=D.path(w,{roughness:.3,seed:s});S+=" transition",C=De(j).select("path").attr("id",t.id).attr("class"," "+S+(t.classes?" "+t.classes:"")).attr("style",_?_.reduce((L,W)=>L+";"+W,""):"");let B=C.attr("d");C.attr("d",B),e.node().appendChild(C.node())}else{const D=d.join(";"),j=_?_.reduce((O,ue)=>O+ue+";",""):"";let B="";t.animate&&(B=" edge-animation-fast"),t.animation&&(B=" edge-animation-"+t.animation);const L=(D?D+";"+j+";":j)+";"+(_?_.reduce((O,ue)=>O+";"+ue,""):"");C=e.append("path").attr("d",w).attr("id",t.id).attr("class"," "+S+(t.classes?" "+t.classes:"")+(B??"")).attr("style",L),P=(N=L.match(/stroke:([^;]+)/))==null?void 0:N[1],I=t.animate===!0||!!t.animation||D.includes("animation");const W=C.node(),T=typeof W.getTotalLength=="function"?W.getTotalLength():0,V=OM[t.arrowTypeStart]||0,J=OM[t.arrowTypeEnd]||0;if(t.look==="neo"&&!I){const ue=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?uCe(T,V,J):`0 ${V} ${T-V-J} ${J}`}; stroke-dashoffset: 0;`;C.attr("style",ue+C.attr("style"))}}C.attr("data-edge",!0),C.attr("data-et","edge"),C.attr("data-id",t.id),C.attr("data-points",p),t.showPoints&&g.forEach(D=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",D.x).attr("cy",D.y)});let $="";(Ue().flowchart.arrowMarkerAbsolute||Ue().state.arrowMarkerAbsolute)&&($=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,$=$.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),Y.info("arrowTypeStart",t.arrowTypeStart),Y.info("arrowTypeEnd",t.arrowTypeEnd),nCe(C,t,$,o,n,P);const A=Math.floor(c.length/2),M=c[A];ci.isLabelCoordinateInPath(M,C.attr("d"))||(u=!0);let F={};return u&&(F.updatedPath=c),F.originalPath=t.points,F},"insertEdge");function F8(e,t){if(e.length<2)return"";let r="";const n=e.length,i=1e-5;for(let a=0;a<n;a++){const o=e[a],l=e[a-1],s=e[a+1];if(a===0)r+=`M${o.x},${o.y}`;else if(a===n-1)r+=`L${o.x},${o.y}`;else{const c=o.x-l.x,u=o.y-l.y,f=s.x-o.x,h=s.y-o.y,d=Math.hypot(c,u),p=Math.hypot(f,h);if(d<i||p<i){r+=`L${o.x},${o.y}`;continue}const g=c/d,y=u/d,m=f/p,v=h/p,b=g*m+y*v,S=Math.max(-1,Math.min(1,b)),C=Math.acos(S);if(C<i||Math.abs(Math.PI-C)<i){r+=`L${o.x},${o.y}`;continue}const w=Math.min(t/Math.sin(C/2),d/2,p/2),_=o.x-g*w,P=o.y-y*w,I=o.x+m*w,$=o.y+v*w;r+=`L${_},${P}`,r+=`Q${o.x},${o.y} ${I},${$}`}}return r}k(F8,"generateRoundedPath");function Qw(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,n=t.y-e.y;return{angle:Math.atan2(n,r),deltaX:r,deltaY:n}}k(Qw,"calculateDeltaAndAngle");function z8(e,t){const r=e.map(i=>({...i}));if(e.length>=2&&vr[t.arrowTypeStart]){const i=vr[t.arrowTypeStart],a=e[0],o=e[1],{angle:l}=Qw(a,o),s=i*Math.cos(l),c=i*Math.sin(l);r[0].x=a.x+s,r[0].y=a.y+c}const n=e.length;if(n>=2&&vr[t.arrowTypeEnd]){const i=vr[t.arrowTypeEnd],a=e[n-1],o=e[n-2],{angle:l}=Qw(o,a),s=i*Math.cos(l),c=i*Math.sin(l);r[n-1].x=a.x-s,r[n-1].y=a.y-c}return r}k(z8,"applyMarkerOffsetsToPoints");var hCe=k((e,t,r,n)=>{t.forEach(i=>{PCe[i](e,r,n)})},"insertMarkers"),dCe=k((e,t,r)=>{Y.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),pCe=k((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),gCe=k((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),mCe=k((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),yCe=k((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),vCe=k((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),xCe=k((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),bCe=k((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),wCe=k((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),kCe=k((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),SCe=k((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),CCe=k((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),_Ce=k((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),ECe=k((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
502
|
+
L20,10
|
|
503
|
+
M20,10
|
|
504
|
+
L0,20`)},"requirement_arrow"),TCe=k((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),PCe={extension:dCe,composition:pCe,aggregation:gCe,dependency:mCe,lollipop:yCe,point:vCe,circle:xCe,cross:bCe,barb:wCe,only_one:kCe,zero_or_one:SCe,one_or_more:CCe,zero_or_more:_Ce,requirement_arrow:ECe,requirement_contains:TCe},ACe=hCe,OCe={common:Fc,getConfig:Sr,insertCluster:RSe,insertEdge:fCe,insertEdgeLabel:aCe,insertMarkers:ACe,insertNode:R8,interpolateToCurve:C2,labelHelper:ke,log:Y,positionEdgeLabel:oCe},Qf={},W8=k(e=>{for(const t of e)Qf[t.name]=t},"registerLayoutLoaders"),MCe=k(()=>{W8([{name:"dagre",loader:k(async()=>await Ve(()=>import("./dagre-6UL2VRFP-CNIXE38x.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")},{name:"cose-bilkent",loader:k(async()=>await Ve(()=>import("./cose-bilkent-S5V4N54A-BYK-qqpA.js"),__vite__mapDeps([6,7])),"loader")}])},"registerDefaultLayoutLoaders");MCe();var qTe=k(async(e,t)=>{if(!(e.layoutAlgorithm in Qf))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=Qf[e.layoutAlgorithm];return(await r.loader()).render(e,t,OCe,{algorithm:r.algorithm})},"render"),VTe=k((e="",{fallback:t="dagre"}={})=>{if(e in Qf)return e;if(t in Qf)return Y.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),H8="comm",U8="rule",q8="decl",LCe="@import",ICe="@namespace",$Ce="@keyframes",DCe="@layer",V8=Math.abs,U2=String.fromCharCode;function Y8(e){return e.trim()}function Sp(e,t,r){return e.replace(t,r)}function NCe(e,t,r){return e.indexOf(t,r)}function Fs(e,t){return e.charCodeAt(t)|0}function xc(e,t,r){return e.slice(t,r)}function $i(e){return e.length}function jCe(e){return e.length}function Wd(e,t){return t.push(e),e}var Cv=1,bc=1,K8=0,Vn=0,$t=0,qc="";function q2(e,t,r,n,i,a,o,l){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:Cv,column:bc,length:o,return:"",siblings:l}}function RCe(){return $t}function BCe(){return $t=Vn>0?Fs(qc,--Vn):0,bc--,$t===10&&(bc=1,Cv--),$t}function pi(){return $t=Vn<K8?Fs(qc,Vn++):0,bc++,$t===10&&(bc=1,Cv++),$t}function ro(){return Fs(qc,Vn)}function Cp(){return Vn}function _v(e,t){return xc(qc,e,t)}function Jf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function FCe(e){return Cv=bc=1,K8=$i(qc=e),Vn=0,[]}function zCe(e){return qc="",e}function ix(e){return Y8(_v(Vn-1,Jw(e===91?e+2:e===40?e+1:e)))}function WCe(e){for(;($t=ro())&&$t<33;)pi();return Jf(e)>2||Jf($t)>3?"":" "}function HCe(e,t){for(;--t&&pi()&&!($t<48||$t>102||$t>57&&$t<65||$t>70&&$t<97););return _v(e,Cp()+(t<6&&ro()==32&&pi()==32))}function Jw(e){for(;pi();)switch($t){case e:return Vn;case 34:case 39:e!==34&&e!==39&&Jw($t);break;case 40:e===41&&Jw(e);break;case 92:pi();break}return Vn}function UCe(e,t){for(;pi()&&e+$t!==57;)if(e+$t===84&&ro()===47)break;return"/*"+_v(t,Vn-1)+"*"+U2(e===47?e:pi())}function qCe(e){for(;!Jf(ro());)pi();return _v(e,Vn)}function VCe(e){return zCe(_p("",null,null,null,[""],e=FCe(e),0,[0],e))}function _p(e,t,r,n,i,a,o,l,s){for(var c=0,u=0,f=o,h=0,d=0,p=0,g=1,y=1,m=1,v=0,b="",S=i,C=a,w=n,_=b;y;)switch(p=v,v=pi()){case 40:if(p!=108&&Fs(_,f-1)==58){NCe(_+=Sp(ix(v),"&","&\f"),"&\f",V8(c?l[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:_+=ix(v);break;case 9:case 10:case 13:case 32:_+=WCe(p);break;case 92:_+=HCe(Cp()-1,7);continue;case 47:switch(ro()){case 42:case 47:Wd(YCe(UCe(pi(),Cp()),t,r,s),s),(Jf(p||1)==5||Jf(ro()||1)==5)&&$i(_)&&xc(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*g:l[c++]=$i(_)*m;case 125*g:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+u:m==-1&&(_=Sp(_,/\f/g,"")),d>0&&($i(_)-f||g===0&&p===47)&&Wd(d>32?gL(_+";",n,r,f-1,s):gL(Sp(_," ","")+";",n,r,f-2,s),s);break;case 59:_+=";";default:if(Wd(w=pL(_,t,r,c,u,i,l,b,S=[],C=[],f,a),a),v===123)if(u===0)_p(_,t,w,w,S,a,f,l,C);else{switch(h){case 99:if(Fs(_,3)===110)break;case 108:if(Fs(_,2)===97)break;default:u=0;case 100:case 109:case 115:}u?_p(e,w,w,n&&Wd(pL(e,w,w,0,0,i,l,b,i,S=[],f,C),C),i,C,f,l,n?S:C):_p(_,w,w,w,[""],C,0,l,C)}}c=u=d=0,g=m=1,b=_="",f=o;break;case 58:f=1+$i(_),d=p;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&BCe()==125)continue}switch(_+=U2(v),v*g){case 38:m=u>0?1:(_+="\f",-1);break;case 44:l[c++]=($i(_)-1)*m,m=1;break;case 64:ro()===45&&(_+=ix(pi())),h=ro(),u=f=$i(b=_+=qCe(Cp())),v++;break;case 45:p===45&&$i(_)==2&&(g=0)}}return a}function pL(e,t,r,n,i,a,o,l,s,c,u,f){for(var h=i-1,d=i===0?a:[""],p=jCe(d),g=0,y=0,m=0;g<n;++g)for(var v=0,b=xc(e,h+1,h=V8(y=o[g])),S=e;v<p;++v)(S=Y8(y>0?d[v]+" "+b:Sp(b,/&\f/g,d[v])))&&(s[m++]=S);return q2(e,t,r,i===0?U8:l,s,c,u,f)}function YCe(e,t,r,n){return q2(e,t,r,H8,U2(RCe()),xc(e,2,-2),0,n)}function gL(e,t,r,n,i){return q2(e,t,r,q8,xc(e,0,n),xc(e,n+1,-1),n,i)}function e1(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function KCe(e,t,r,n){switch(e.type){case DCe:if(e.children.length)break;case LCe:case ICe:case q8:return e.return=e.return||e.value;case H8:return"";case $Ce:return e.return=e.value+"{"+e1(e.children,n)+"}";case U8:if(!$i(e.value=e.props.join(",")))return""}return $i(r=e1(e.children,n))?e.return=e.value+"{"+r+"}":""}var GCe=bz(Object.keys,Object),XCe=Object.prototype,ZCe=XCe.hasOwnProperty;function QCe(e){if(!pv(e))return GCe(e);var t=[];for(var r in Object(e))ZCe.call(e,r)&&r!="constructor"&&t.push(r);return t}var t1=Ql(ea,"DataView"),r1=Ql(ea,"Promise"),n1=Ql(ea,"Set"),i1=Ql(ea,"WeakMap"),mL="[object Map]",JCe="[object Object]",yL="[object Promise]",vL="[object Set]",xL="[object WeakMap]",bL="[object DataView]",e2e=Zl(t1),t2e=Zl(Xf),r2e=Zl(r1),n2e=Zl(n1),i2e=Zl(i1),Zo=Wc;(t1&&Zo(new t1(new ArrayBuffer(1)))!=bL||Xf&&Zo(new Xf)!=mL||r1&&Zo(r1.resolve())!=yL||n1&&Zo(new n1)!=vL||i1&&Zo(new i1)!=xL)&&(Zo=function(e){var t=Wc(e),r=t==JCe?e.constructor:void 0,n=r?Zl(r):"";if(n)switch(n){case e2e:return bL;case t2e:return mL;case r2e:return yL;case n2e:return vL;case i2e:return xL}return t});var a2e="[object Map]",o2e="[object Set]",l2e=Object.prototype,s2e=l2e.hasOwnProperty;function wL(e){if(e==null)return!0;if(gv(e)&&(hm(e)||typeof e=="string"||typeof e.splice=="function"||k2(e)||S2(e)||fm(e)))return!e.length;var t=Zo(e);if(t==a2e||t==o2e)return!e.size;if(pv(e))return!QCe(e).length;for(var r in e)if(s2e.call(e,r))return!1;return!0}var G8="c4",c2e=k(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),u2e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./c4Diagram-YG6GDRKO-dUTtO4_k.js");return{diagram:t}},__vite__mapDeps([8,9]));return{id:G8,diagram:e}},"loader"),f2e={id:G8,detector:c2e,loader:u2e},h2e=f2e,X8="flowchart",d2e=k((e,t)=>{var r,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),p2e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-D9XX51TY.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]));return{id:X8,diagram:e}},"loader"),g2e={id:X8,detector:d2e,loader:p2e},m2e=g2e,Z8="flowchart-v2",y2e=k((e,t)=>{var r,n,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),v2e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-D9XX51TY.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]));return{id:Z8,diagram:e}},"loader"),x2e={id:Z8,detector:y2e,loader:v2e},b2e=x2e,Q8="er",w2e=k(e=>/^\s*erDiagram/.test(e),"detector"),k2e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./erDiagram-Q2GNP2WA-YGhaTIGv.js");return{diagram:t}},__vite__mapDeps([15,12,13,14]));return{id:Q8,diagram:e}},"loader"),S2e={id:Q8,detector:w2e,loader:k2e},C2e=S2e,J8="gitGraph",_2e=k(e=>/^\s*gitGraph/.test(e),"detector"),E2e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./gitGraphDiagram-V2S2FVAM-IqGQHaKk.js");return{diagram:t}},__vite__mapDeps([16,17,18,19,2,4,5]));return{id:J8,diagram:e}},"loader"),T2e={id:J8,detector:_2e,loader:E2e},P2e=T2e,eW="gantt",A2e=k(e=>/^\s*gantt/.test(e),"detector"),O2e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./ganttDiagram-JELNMOA3-BnlL2FL1.js");return{diagram:t}},[]);return{id:eW,diagram:e}},"loader"),M2e={id:eW,detector:A2e,loader:O2e},L2e=M2e,tW="info",I2e=k(e=>/^\s*info/.test(e),"detector"),$2e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./infoDiagram-HS3SLOUP-D-PYXUrg.js");return{diagram:t}},__vite__mapDeps([20,19,2,4,5]));return{id:tW,diagram:e}},"loader"),D2e={id:tW,detector:I2e,loader:$2e},rW="pie",N2e=k(e=>/^\s*pie/.test(e),"detector"),j2e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./pieDiagram-ADFJNKIX-B-ZMfN-z.js");return{diagram:t}},__vite__mapDeps([21,17,19,2,4,5,22]));return{id:rW,diagram:e}},"loader"),R2e={id:rW,detector:N2e,loader:j2e},nW="quadrantChart",B2e=k(e=>/^\s*quadrantChart/.test(e),"detector"),F2e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./quadrantDiagram-AYHSOK5B-lHEZJOJ6.js");return{diagram:t}},[]);return{id:nW,diagram:e}},"loader"),z2e={id:nW,detector:B2e,loader:F2e},W2e=z2e,iW="xychart",H2e=k(e=>/^\s*xychart(-beta)?/.test(e),"detector"),U2e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./xychartDiagram-PRI3JC2R-jiOJ2YB4.js");return{diagram:t}},[]);return{id:iW,diagram:e}},"loader"),q2e={id:iW,detector:H2e,loader:U2e},V2e=q2e,aW="requirement",Y2e=k(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),K2e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./requirementDiagram-UZGBJVZJ-Dmgv7ZrT.js");return{diagram:t}},__vite__mapDeps([23,12,13]));return{id:aW,diagram:e}},"loader"),G2e={id:aW,detector:Y2e,loader:K2e},X2e=G2e,oW="sequence",Z2e=k(e=>/^\s*sequenceDiagram/.test(e),"detector"),Q2e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./sequenceDiagram-WL72ISMW-Cp0y_3Co.js");return{diagram:t}},__vite__mapDeps([24,9,18]));return{id:oW,diagram:e}},"loader"),J2e={id:oW,detector:Z2e,loader:Q2e},e_e=J2e,lW="class",t_e=k((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),r_e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./classDiagram-2ON5EDUG-Dy8_C5lE.js");return{diagram:t}},__vite__mapDeps([25,26,11,12,13]));return{id:lW,diagram:e}},"loader"),n_e={id:lW,detector:t_e,loader:r_e},i_e=n_e,sW="classDiagram",a_e=k((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),o_e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./classDiagram-v2-WZHVMYZB-Dy8_C5lE.js");return{diagram:t}},__vite__mapDeps([27,26,11,12,13]));return{id:sW,diagram:e}},"loader"),l_e={id:sW,detector:a_e,loader:o_e},s_e=l_e,cW="state",c_e=k((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),u_e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./stateDiagram-FKZM4ZOC-CmJ3FBc_.js");return{diagram:t}},__vite__mapDeps([28,29,12,13,1,2,3,4]));return{id:cW,diagram:e}},"loader"),f_e={id:cW,detector:c_e,loader:u_e},h_e=f_e,uW="stateDiagram",d_e=k((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),p_e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./stateDiagram-v2-4FDKWEC3-DBJHmcPu.js");return{diagram:t}},__vite__mapDeps([30,29,12,13]));return{id:uW,diagram:e}},"loader"),g_e={id:uW,detector:d_e,loader:p_e},m_e=g_e,fW="journey",y_e=k(e=>/^\s*journey/.test(e),"detector"),v_e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./journeyDiagram-XKPGCS4Q-DIxnZShx.js");return{diagram:t}},__vite__mapDeps([31,9,11,22]));return{id:fW,diagram:e}},"loader"),x_e={id:fW,detector:y_e,loader:v_e},b_e=x_e,w_e=k((e,t,r)=>{Y.debug(`rendering svg for syntax error
|
|
505
|
+
`);const n=J0e(t),i=n.append("g");n.attr("viewBox","0 0 2412 512"),h5(n,100,512,!0),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),hW={draw:w_e},k_e=hW,S_e={db:{},renderer:hW,parser:{parse:k(()=>{},"parse")}},C_e=S_e,dW="flowchart-elk",__e=k((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),E_e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-D9XX51TY.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]));return{id:dW,diagram:e}},"loader"),T_e={id:dW,detector:__e,loader:E_e},P_e=T_e,pW="timeline",A_e=k(e=>/^\s*timeline/.test(e),"detector"),O_e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./timeline-definition-IT6M3QCI-CnYcftUT.js");return{diagram:t}},__vite__mapDeps([32,22]));return{id:pW,diagram:e}},"loader"),M_e={id:pW,detector:A_e,loader:O_e},L_e=M_e,gW="mindmap",I_e=k(e=>/^\s*mindmap/.test(e),"detector"),$_e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./mindmap-definition-VGOIOE7T-BWOv2jfH.js");return{diagram:t}},__vite__mapDeps([33,12,13]));return{id:gW,diagram:e}},"loader"),D_e={id:gW,detector:I_e,loader:$_e},N_e=D_e,mW="kanban",j_e=k(e=>/^\s*kanban/.test(e),"detector"),R_e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./kanban-definition-3W4ZIXB7-DIQJ-dLy.js");return{diagram:t}},__vite__mapDeps([34,11]));return{id:mW,diagram:e}},"loader"),B_e={id:mW,detector:j_e,loader:R_e},F_e=B_e,yW="sankey",z_e=k(e=>/^\s*sankey(-beta)?/.test(e),"detector"),W_e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./sankeyDiagram-TZEHDZUN-DYnsmtzq.js");return{diagram:t}},[]);return{id:yW,diagram:e}},"loader"),H_e={id:yW,detector:z_e,loader:W_e},U_e=H_e,vW="packet",q_e=k(e=>/^\s*packet(-beta)?/.test(e),"detector"),V_e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./diagram-S2PKOQOG-DpUYqpiH.js");return{diagram:t}},__vite__mapDeps([35,17,19,2,4,5]));return{id:vW,diagram:e}},"loader"),Y_e={id:vW,detector:q_e,loader:V_e},xW="radar",K_e=k(e=>/^\s*radar-beta/.test(e),"detector"),G_e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./diagram-QEK2KX5R-175MJwNN.js");return{diagram:t}},__vite__mapDeps([36,17,19,2,4,5]));return{id:xW,diagram:e}},"loader"),X_e={id:xW,detector:K_e,loader:G_e},bW="block",Z_e=k(e=>/^\s*block(-beta)?/.test(e),"detector"),Q_e=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./blockDiagram-VD42YOAC-BYvjSDpK.js");return{diagram:t}},__vite__mapDeps([37,11,5,2,1,14]));return{id:bW,diagram:e}},"loader"),J_e={id:bW,detector:Z_e,loader:Q_e},eEe=J_e,wW="architecture",tEe=k(e=>/^\s*architecture/.test(e),"detector"),rEe=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./architectureDiagram-VXUJARFQ-C7QAcrIt.js");return{diagram:t}},__vite__mapDeps([38,17,19,2,4,5,7]));return{id:wW,diagram:e}},"loader"),nEe={id:wW,detector:tEe,loader:rEe},iEe=nEe,kW="treemap",aEe=k(e=>/^\s*treemap/.test(e),"detector"),oEe=k(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./diagram-PSM6KHXK-Dza_WM04.js");return{diagram:t}},__vite__mapDeps([39,13,17,19,2,4,5]));return{id:kW,diagram:e}},"loader"),lEe={id:kW,detector:aEe,loader:oEe},kL=!1,Ev=k(()=>{kL||(kL=!0,Qg("error",C_e,e=>e.toLowerCase().trim()==="error"),Qg("---",{db:{clear:k(()=>{},"clear")},styles:{},renderer:{draw:k(()=>{},"draw")},parser:{parse:k(()=>{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")},"parse")},init:k(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),mw(P_e,N_e,iEe),mw(h2e,F_e,s_e,i_e,C2e,L2e,D2e,R2e,X2e,e_e,b2e,m2e,L_e,P2e,m_e,h_e,b_e,W2e,U_e,Y_e,V2e,eEe,X_e,lEe))},"addDiagrams"),sEe=k(async()=>{Y.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Il).map(async([r,{detector:n,loader:i}])=>{if(i)try{bw(r)}catch{try{const{diagram:a,id:o}=await i();Qg(o,a,n)}catch(a){throw Y.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Il[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){Y.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Y.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),cEe="graphics-document document";function SW(e,t){e.attr("role",cEe),t!==""&&e.attr("aria-roledescription",t)}k(SW,"setA11yDiagramInfo");function CW(e,t,r,n){if(e.insert!==void 0){if(r){const i=`chart-desc-${n}`;e.attr("aria-describedby",i),e.insert("desc",":first-child").attr("id",i).text(r)}if(t){const i=`chart-title-${n}`;e.attr("aria-labelledby",i),e.insert("title",":first-child").attr("id",i).text(t)}}}k(CW,"addSVGa11yTitleDescription");var gl,a1=(gl=class{constructor(t,r,n,i,a){this.type=t,this.text=r,this.db=n,this.parser=i,this.renderer=a}static async fromText(t,r={}){var c,u;const n=Sr(),i=e2(t,n);t=lke(t)+`
|
|
506
|
+
`;try{bw(i)}catch{const f=hme(i);if(!f)throw new e5(`Diagram ${i} not found.`);const{id:h,diagram:d}=await f();Qg(h,d)}const{db:a,parser:o,renderer:l,init:s}=bw(i);return o.parser&&(o.parser.yy=a),(c=a.clear)==null||c.call(a),s==null||s(n),r.title&&((u=a.setDiagramTitle)==null||u.call(a,r.title)),await o.parse(t),new gl(i,t,a,o,l)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},k(gl,"Diagram"),gl),SL=[],uEe=k(()=>{SL.forEach(e=>{e()}),SL=[]},"attachFunctions"),fEe=k(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function _W(e){const t=e.match(J3);if(!t)return{text:e,metadata:{}};let r=obe(t[1],{schema:abe})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:e.slice(t[0].length),metadata:n}}k(_W,"extractFrontMatter");var hEe=k(e=>e.replace(/\r\n?/g,`
|
|
507
|
+
`).replace(/<(\w+)([^>]*)>/g,(t,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),dEe=k(e=>{const{text:t,metadata:r}=_W(e),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:t}},"processFrontmatter"),pEe=k(e=>{const t=ci.detectInit(e)??{},r=ci.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:n})=>n==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:K1e(e),directive:t}},"processDirectives");function V2(e){const t=hEe(e),r=dEe(t),n=pEe(r.text),i=A2(r.config,n.directive);return e=fEe(n.text),{code:e,title:r.title,config:i}}k(V2,"preprocessDiagram");function EW(e){const t=new TextEncoder().encode(e),r=Array.from(t,n=>String.fromCodePoint(n)).join("");return btoa(r)}k(EW,"toBase64");var gEe=5e4,mEe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",yEe="sandbox",vEe="loose",xEe="http://www.w3.org/2000/svg",bEe="http://www.w3.org/1999/xlink",wEe="http://www.w3.org/1999/xhtml",kEe="100%",SEe="100%",CEe="border:0;margin:0;",_Ee="margin:0",EEe="allow-top-navigation-by-user-activation allow-popups",TEe='The "iframe" tag is not supported by your browser.',PEe=["foreignobject"],AEe=["dominant-baseline"];function Y2(e){const t=V2(e);return Xg(),Pme(t.config??{}),t}k(Y2,"processAndSetConfigs");async function TW(e,t){Ev();try{const{code:r,config:n}=Y2(e);return{diagramType:(await AW(r)).type,config:n}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}k(TW,"parse");var CL=k((e,t,r=[])=>`
|
|
508
|
+
.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),OEe=k((e,t=new Map)=>{var n;let r="";if(e.themeCSS!==void 0&&(r+=`
|
|
509
|
+
${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
|
|
510
|
+
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
|
|
511
|
+
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const l=e.htmlLabels??((n=e.flowchart)==null?void 0:n.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(s=>{wL(s.styles)||l.forEach(c=>{r+=CL(s.id,c,s.styles)}),wL(s.textStyles)||(r+=CL(s.id,"tspan",((s==null?void 0:s.textStyles)||[]).map(c=>c.replace("color","fill"))))})}return r},"createCssStyles"),MEe=k((e,t,r,n)=>{const i=OEe(e,r),a=Kme(t,i,e.themeVariables);return e1(VCe(`${n}{${a}}`),KCe)},"createUserStyles"),LEe=k((e="",t,r)=>{let n=e;return!r&&!t&&(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=Jl(n),n=n.replace(/<br>/g,"<br/>"),n},"cleanUpSvgCode"),IEe=k((e="",t)=>{var i,a;const r=(a=(i=t==null?void 0:t.viewBox)==null?void 0:i.baseVal)!=null&&a.height?t.viewBox.baseVal.height+"px":SEe,n=EW(`<body style="${_Ee}">${e}</body>`);return`<iframe style="width:${kEe};height:${r};${CEe}" src="data:text/html;charset=UTF-8;base64,${n}" sandbox="${EEe}">
|
|
512
|
+
${TEe}
|
|
513
|
+
</iframe>`},"putIntoIFrame"),_L=k((e,t,r,n,i)=>{const a=e.append("div");a.attr("id",r),n&&a.attr("style",n);const o=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",xEe);return i&&o.attr("xmlns:xlink",i),o.append("g"),e},"appendDivSvgG");function o1(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}k(o1,"sandboxedIframe");var $Ee=k((e,t,r,n)=>{var i,a,o;(i=e.getElementById(t))==null||i.remove(),(a=e.getElementById(r))==null||a.remove(),(o=e.getElementById(n))==null||o.remove()},"removeExistingElements"),DEe=k(async function(e,t,r){var M,F,N,D,j,B;Ev();const n=Y2(t);t=n.code;const i=Sr();Y.debug(i),t.length>((i==null?void 0:i.maxTextSize)??gEe)&&(t=mEe);const a="#"+e,o="i"+e,l="#"+o,s="d"+e,c="#"+s,u=k(()=>{const W=De(h?l:c).node();W&&"remove"in W&&W.remove()},"removeTempElements");let f=De("body");const h=i.securityLevel===yEe,d=i.securityLevel===vEe,p=i.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),h){const L=o1(De(r),o);f=De(L.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=De(r);_L(f,e,s,`font-family: ${p}`,bEe)}else{if($Ee(document,e,s,o),h){const L=o1(De("body"),o);f=De(L.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=De("body");_L(f,e,s)}let g,y;try{g=await a1.fromText(t,{title:n.title})}catch(L){if(i.suppressErrorRendering)throw u(),L;g=await a1.fromText("error"),y=L}const m=f.select(c).node(),v=g.type,b=m.firstChild,S=b.firstChild,C=(F=(M=g.renderer).getClasses)==null?void 0:F.call(M,t,g),w=MEe(i,v,C,a),_=document.createElement("style");_.innerHTML=w,b.insertBefore(_,S);try{await g.renderer.draw(t,e,sM.version,g)}catch(L){throw i.suppressErrorRendering?u():k_e.draw(t,e,sM.version),L}const P=f.select(`${c} svg`),I=(D=(N=g.db).getAccTitle)==null?void 0:D.call(N),$=(B=(j=g.db).getAccDescription)==null?void 0:B.call(j);OW(v,P,I,$),f.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",wEe);let A=f.select(c).node().innerHTML;if(Y.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),A=LEe(A,h,qt(i.arrowMarkerAbsolute)),h){const L=f.select(c+" svg").node();A=IEe(A,L)}else d||(A=hc.sanitize(A,{ADD_TAGS:PEe,ADD_ATTR:AEe,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(uEe(),y)throw y;return u(),{diagramType:v,svg:A,bindFunctions:g.db.bindFunctions}},"render");function PW(e={}){var n;const t=zt({},e);t!=null&&t.fontFamily&&!((n=t.themeVariables)!=null&&n.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Eme(t),t!=null&&t.theme&&t.theme in va?t.themeVariables=va[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=va.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?_me(t):a5();JC(r.logLevel),Ev()}k(PW,"initialize");var AW=k((e,t={})=>{const{code:r}=V2(e);return a1.fromText(r,t)},"getDiagramFromText");function OW(e,t,r,n){SW(t,e),CW(t,r,n,t.attr("id"))}k(OW,"addA11yInfo");var Bl=Object.freeze({render:DEe,parse:TW,getDiagramFromText:AW,initialize:PW,getConfig:Sr,setConfig:o5,getSiteConfig:a5,updateSiteConfig:Tme,reset:k(()=>{Xg()},"reset"),globalReset:k(()=>{Xg(dc)},"globalReset"),defaultConfig:dc});JC(Sr().logLevel);Xg(Sr());var NEe=k((e,t,r)=>{Y.warn(e),P2(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),MW=k(async function(e={querySelector:".mermaid"}){try{await jEe(e)}catch(t){if(P2(t)&&Y.error(t.str),wn.parseError&&wn.parseError(t),!e.suppressErrors)throw Y.error("Use the suppressErrors option to suppress these errors"),t}},"run"),jEe=k(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const n=Bl.getConfig();Y.debug(`${e?"":"No "}Callback function found`);let i;if(r)i=r;else if(t)i=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");Y.debug(`Found ${i.length} diagrams`),(n==null?void 0:n.startOnLoad)!==void 0&&(Y.debug("Start On Load: "+(n==null?void 0:n.startOnLoad)),Bl.updateSiteConfig({startOnLoad:n==null?void 0:n.startOnLoad}));const a=new ci.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let o;const l=[];for(const s of Array.from(i)){if(Y.info("Rendering diagram: "+s.id),s.getAttribute("data-processed"))continue;s.setAttribute("data-processed","true");const c=`mermaid-${a.next()}`;o=s.innerHTML,o=Qz(ci.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const u=ci.detectInit(o);u&&Y.debug("Detected early reinit: ",u);try{const{svg:f,bindFunctions:h}=await DW(c,o,s);s.innerHTML=f,e&&await e(c),h&&h(s)}catch(f){NEe(f,l,wn.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),LW=k(function(e){Bl.initialize(e)},"initialize"),REe=k(async function(e,t,r){Y.warn("mermaid.init is deprecated. Please use run instead."),e&&LW(e);const n={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?n.querySelector=t:t&&(t instanceof HTMLElement?n.nodes=[t]:n.nodes=t),await MW(n)},"init"),BEe=k(async(e,{lazyLoad:t=!0}={})=>{Ev(),mw(...e),t===!1&&await sEe()},"registerExternalDiagrams"),IW=k(function(){if(wn.startOnLoad){const{startOnLoad:e}=Bl.getConfig();e&&wn.run().catch(t=>Y.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",IW,!1);var FEe=k(function(e){wn.parseError=e},"setParseErrorHandler"),Sm=[],ax=!1,$W=k(async()=>{if(!ax){for(ax=!0;Sm.length>0;){const e=Sm.shift();if(e)try{await e()}catch(t){Y.error("Error executing queue",t)}}ax=!1}},"executeQueue"),zEe=k(async(e,t)=>new Promise((r,n)=>{const i=k(()=>new Promise((a,o)=>{Bl.parse(e,t).then(l=>{a(l),r(l)},l=>{var s;Y.error("Error parsing",l),(s=wn.parseError)==null||s.call(wn,l),o(l),n(l)})}),"performCall");Sm.push(i),$W().catch(n)}),"parse"),DW=k((e,t,r)=>new Promise((n,i)=>{const a=k(()=>new Promise((o,l)=>{Bl.render(e,t,r).then(s=>{o(s),n(s)},s=>{var c;Y.error("Error parsing",s),(c=wn.parseError)==null||c.call(wn,s),l(s),i(s)})}),"performCall");Sm.push(a),$W().catch(i)}),"render"),WEe=k(()=>Object.keys(Il).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),wn={startOnLoad:!0,mermaidAPI:Bl,parse:zEe,render:DW,init:REe,run:MW,registerExternalDiagrams:BEe,registerLayoutLoaders:W8,initialize:LW,parseError:void 0,contentLoaded:IW,setParseErrorHandler:FEe,detectType:e2,registerIconPacks:fSe,getRegisteredDiagramsMetadata:WEe},EL=wn;/*! Check if previously processed *//*!
|
|
514
|
+
* Wait for document loaded before starting the execution
|
|
515
|
+
*/let HEe=0;function UEe({chart:e}){const t=x.useRef(null),r=x.useRef(null);return r.current===null&&(r.current=`mermaid-diagram-${++HEe}`),x.useEffect(()=>{if(!t.current||!e)return;const n=document.documentElement.classList.contains("dark");EL.initialize({startOnLoad:!1,theme:n?"dark":"default"});const i=r.current;EL.render(i,e).then(({svg:a})=>{t.current&&(t.current.innerHTML=a)}).catch(a=>{t.current&&(t.current.innerHTML=`<pre class="text-xs text-red-500">Diagram error: ${String(a)}</pre>`)})},[e]),E.jsx("div",{ref:t,"data-testid":"mermaid-diagram",className:"overflow-x-auto p-4 bg-white dark:bg-gray-800 rounded-xl border border-gray-200 dark:border-gray-700","aria-label":"Flow diagram"})}function qEe(){var f;const{report:e}=yi(),{showAiSummaries:t}=Hm(),{findingsFor:r,recommendationsFor:n}=Ao(),[i,a]=x.useState(""),o=(f=e==null?void 0:e.details)==null?void 0:f.integration;if(!o)return E.jsxs("div",{className:"p-6",children:[E.jsx("div",{className:"text-gray-500 dark:text-gray-400 mb-4",children:"No integration flows data available."}),E.jsx(wl,{coverageType:"integration",findings:r("integration"),recommendations:n("integration"),alwaysShow:!0})]});const l=o.items,s=l.filter(h=>h.id.toLowerCase().includes(i.toLowerCase())),c=l.filter(h=>h.covered).length,u=U3(l);return E.jsxs("div",{className:"p-6",children:[E.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-6",children:"Integration Flows"}),t&&e&&E.jsx(uh,{markdown:Sge(e)}),E.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[E.jsxs("div",{className:"lg:col-span-2",children:[E.jsx("input",{type:"text",placeholder:"Search flows…",value:i,onChange:h=>a(h.target.value),className:"mb-3 w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-800 dark:text-gray-100 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),E.jsx("div",{className:"flex flex-col gap-3",children:s.map(h=>{const d=h.steps&&h.steps>0?Math.round((h.coveredSteps??0)/h.steps*100):0;return E.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl border border-gray-200 dark:border-gray-700 shadow-sm p-4",children:[E.jsxs("div",{className:"flex items-center justify-between mb-2",children:[E.jsxs("span",{className:"font-medium text-gray-800 dark:text-gray-100 text-sm",children:[h.covered?"✅":"❌"," ",h.id]}),h.steps&&E.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:[h.coveredSteps??0,"/",h.steps," steps"]})]}),h.steps&&E.jsx("div",{className:"w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2",children:E.jsx("div",{className:`h-2 rounded-full transition-all ${d===100?"bg-green-500":d>0?"bg-yellow-500":"bg-red-500"}`,style:{width:`${d}%`}})}),h.tests&&h.tests.length>0&&E.jsxs("p",{className:"mt-2 text-xs text-gray-500 dark:text-gray-400",children:["Tests: ",h.tests.join(", ")]})]},h.id)})}),u&&E.jsxs("div",{className:"mt-6",children:[E.jsx("h2",{className:"text-base font-semibold text-gray-800 dark:text-gray-100 mb-3",children:"Flow Diagram"}),E.jsx(UEe,{chart:u})]})]}),E.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700 p-4",children:[E.jsx("h2",{className:"text-base font-semibold text-gray-800 dark:text-gray-100 mb-2",children:"Coverage Distribution"}),E.jsx(QC,{covered:c,total:l.length}),E.jsxs("p",{className:"text-sm text-center text-gray-500 dark:text-gray-400 mt-2",children:[c," / ",l.length," covered"]})]})]}),E.jsx(wl,{coverageType:"integration",findings:r("integration"),recommendations:n("integration")})]})}const VEe=[{key:"id",label:"Security Check"},{key:"covered",label:"Covered"},{key:"tests",label:"Tests"}];function YEe(){var i;const{report:e}=yi(),{findingsFor:t,recommendationsFor:r}=Ao(),n=e?Cge(e):void 0;return E.jsx(Dh,{title:"Security",section:(i=e==null?void 0:e.details)==null?void 0:i.security,columns:VEe,aiSummary:n,coverageType:"security",intelligenceFindings:t("security"),intelligenceRecommendations:r("security")})}const KEe=[{key:"id",label:"Error Scenario"},{key:"covered",label:"Covered"},{key:"tests",label:"Tests"}];function GEe(){var i;const{report:e}=yi(),{findingsFor:t,recommendationsFor:r}=Ao(),n=e?_ge(e):void 0;return E.jsx(Dh,{title:"Error Handling",section:(i=e==null?void 0:e.details)==null?void 0:i.error,columns:KEe,aiSummary:n,coverageType:"error",intelligenceFindings:t("error"),intelligenceRecommendations:r("error")})}const XEe=[{key:"id",label:"Metric"},{key:"threshold",label:"Threshold"},{key:"covered",label:"Tested"},{key:"tests",label:"Tests"}];function ZEe(){var a,o,l,s;const{report:e}=yi(),{findingsFor:t,recommendationsFor:r}=Ao(),n=e?Ege(e):void 0,i={items:[...((o=(a=e==null?void 0:e.details)==null?void 0:a.performance)==null?void 0:o.items)??[],...((s=(l=e==null?void 0:e.details)==null?void 0:l.resilience)==null?void 0:s.items)??[]]};return E.jsx(Dh,{title:"Performance & Resilience",section:i.items.length>0?i:void 0,columns:XEe,aiSummary:n,coverageType:"performance",intelligenceFindings:t("performance"),intelligenceRecommendations:r("performance")})}const TL=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#f97316","#84cc16"];function QEe(){const{historicalReports:e,addHistoricalReport:t}=yi(),r=x.useRef(null);function n(o){var c;const l=(c=o.target.files)==null?void 0:c[0];if(!l)return;const s=new FileReader;s.onload=u=>{var f;try{const h=JSON.parse((f=u.target)==null?void 0:f.result);t(l.name,h)}catch{alert("Failed to parse JSON file.")}},s.readAsText(l),r.current&&(r.current.value="")}const i=e.length>0?e[0].report.summary.map(o=>o.type):[],a=e.map(o=>{const l={name:o.name.replace(".json","").slice(0,20)};return o.report.summary.forEach(s=>{l[s.type]=s.coveragePercent}),l});return E.jsxs("div",{className:"p-6",children:[E.jsxs("div",{className:"flex items-center justify-between mb-6",children:[E.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:"Coverage Trends"}),E.jsxs("div",{children:[E.jsx("input",{ref:r,type:"file",accept:".json",onChange:n,className:"hidden",id:"trends-upload"}),E.jsx("label",{htmlFor:"trends-upload",className:"cursor-pointer inline-flex items-center px-4 py-2 rounded-lg border border-blue-400 bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300 text-sm font-medium hover:bg-blue-100 dark:hover:bg-blue-800/30 transition-colors",children:"📂 Add Historical Report"})]})]}),e.length<2?E.jsxs("div",{className:"p-4 rounded-lg bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 text-yellow-700 dark:text-yellow-300 text-sm",children:["Load at least 2 reports to see trends. Currently loaded: ",e.length,"."]}):E.jsx("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700 p-6",children:E.jsx(uS,{width:"100%",height:380,children:E.jsxs(rge,{data:a,margin:{top:10,right:20,bottom:10,left:0},children:[E.jsx(UC,{strokeDasharray:"3 3",stroke:"#e5e7eb"}),E.jsx(YC,{dataKey:"name",tick:{fontSize:12}}),E.jsx(KC,{domain:[0,100],tickFormatter:o=>`${o}%`,tick:{fontSize:12}}),E.jsx(TC,{formatter:o=>`${o}%`}),E.jsx(by,{}),i.map((o,l)=>E.jsx(k3,{type:"monotone",dataKey:o,stroke:TL[l%TL.length],strokeWidth:2,dot:{r:4}},o))]})})}),E.jsxs("div",{className:"mt-6 bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700 p-4",children:[E.jsx("h2",{className:"text-base font-semibold text-gray-800 dark:text-gray-100 mb-3",children:"Loaded Reports"}),E.jsx("ul",{className:"text-sm text-gray-600 dark:text-gray-300 space-y-1",children:e.map(o=>E.jsxs("li",{className:"flex items-center gap-2",children:[E.jsx("span",{className:"text-green-500",children:"✓"}),E.jsx("span",{children:o.name}),E.jsxs("span",{className:"text-gray-400 dark:text-gray-500 text-xs",children:["(",new Date(o.report.generatedAt).toLocaleDateString(),")"]})]},o.name))})]})]})}function NW(e){switch(e){case"CRITICAL":return"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400";case"HIGH":return"bg-orange-100 text-orange-800 dark:bg-orange-900/30 dark:text-orange-400";case"MEDIUM":return"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400";default:return"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400"}}function JEe(e){switch(e){case"P0":return"bg-red-600 text-white";case"P1":return"bg-orange-500 text-white";case"P2":return"bg-yellow-500 text-white";default:return"bg-gray-400 text-white"}}function jW(e){return e>=75?"text-red-600 dark:text-red-400 font-bold":e>=50?"text-orange-600 dark:text-orange-400 font-semibold":e>=25?"text-yellow-600 dark:text-yellow-400":"text-gray-500 dark:text-gray-400"}function l1(e){return e>=75?"Critical":e>=50?"High":e>=25?"Moderate":"Low"}function Uo({label:e,value:t,color:r}){return E.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-4 flex flex-col gap-1",children:[E.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400 uppercase tracking-wide",children:e}),E.jsx("span",{className:`text-2xl font-bold ${r??"text-gray-900 dark:text-white"}`,children:t})]})}function eTe({finding:e}){var n;const[t,r]=x.useState(!1);return E.jsxs("tr",{className:"border-b border-gray-100 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-750 cursor-pointer",onClick:()=>r(!t),children:[E.jsx("td",{className:"px-4 py-2",children:E.jsx("span",{className:`inline-block px-2 py-0.5 rounded text-xs font-semibold ${NW(e.severity)}`,children:e.severity})}),E.jsx("td",{className:"px-4 py-2 text-sm text-gray-900 dark:text-gray-100",children:e.title}),E.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 dark:text-gray-400",children:e.category}),E.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 dark:text-gray-400",children:e.endpoint?`${e.endpoint.method??""} ${e.endpoint.path??""}`.trim():"—"}),t&&E.jsxs("td",{colSpan:4,className:"px-4 py-2 bg-gray-50 dark:bg-gray-750 text-sm text-gray-700 dark:text-gray-300",children:[e.description,(n=e.missingTestTypes)!=null&&n.length?E.jsxs("div",{className:"mt-1",children:[E.jsx("span",{className:"font-medium",children:"Missing tests: "}),e.missingTestTypes.join(", ")]}):null]})]})}function tTe({rec:e,allFindings:t}){var a;const[r,n]=x.useState(!1),i=t.filter(o=>e.linkedFindingIds.includes(o.id));return E.jsx("div",{className:"bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-4",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("span",{className:`shrink-0 inline-block px-2 py-1 rounded text-xs font-bold ${JEe(e.priority)}`,children:e.priority}),E.jsxs("div",{className:"flex-1 min-w-0",children:[E.jsx("p",{className:"text-sm font-semibold text-gray-900 dark:text-white leading-tight",children:e.title}),E.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:e.rationale}),E.jsxs("div",{className:"mt-2 flex flex-wrap gap-2 text-xs",children:[E.jsxs("span",{className:`font-semibold ${jW(e.riskScore)}`,children:["Risk: ",e.riskScore," (",l1(e.riskScore),")"]}),((a=e.endpoint)==null?void 0:a.path)&&E.jsxs("span",{className:"font-mono bg-gray-100 dark:bg-gray-700 px-1 rounded",children:[e.endpoint.method??""," ",e.endpoint.path]}),e.likelyLanguage&&E.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["🌐 ",e.likelyLanguage]}),e.likelyFramework&&E.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["🧰 ",e.likelyFramework]}),E.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["📎 ",e.recommendedTestType]}),i.length>0&&E.jsxs("button",{onClick:()=>n(!r),className:"text-blue-600 dark:text-blue-400 underline cursor-pointer",children:[i.length," finding",i.length!==1?"s":""]})]}),r&&i.length>0&&E.jsx("div",{className:"mt-3 border-t border-gray-100 dark:border-gray-700 pt-3 space-y-2",children:i.map(o=>{var l;return E.jsxs("div",{className:"text-xs text-gray-700 dark:text-gray-300",children:[E.jsx("span",{className:`inline-block px-1.5 py-0.5 rounded text-xs font-semibold mr-2 ${NW(o.severity)}`,children:o.severity}),E.jsx("span",{className:"font-medium",children:o.title}),((l=o.endpoint)==null?void 0:l.path)&&E.jsxs("span",{className:"ml-2 font-mono text-gray-500 dark:text-gray-400",children:[o.endpoint.method??""," ",o.endpoint.path]}),o.description&&E.jsx("p",{className:"mt-1 text-gray-500 dark:text-gray-400 pl-2",children:o.description})]},o.id)})})]})]})})}function rTe(){const[e,t]=x.useState(null),[r,n]=x.useState(!0),[i,a]=x.useState(null),[o,l]=x.useState("all"),[s,c]=x.useState("all"),[u,f]=x.useState("all"),[h,d]=x.useState("all"),[p,g]=x.useState("");if(x.useEffect(()=>{fetch("/reports/coverage-intelligence.json").then(_=>{if(!_.ok)throw new Error(`HTTP ${_.status}`);return _.json()}).then(_=>{t(_),n(!1)}).catch(_=>{a(_.message),n(!1)})},[]),r)return E.jsx("div",{className:"flex items-center justify-center h-64 text-gray-500 dark:text-gray-400",children:"Loading intelligence report…"});if(i||!e)return E.jsx("div",{className:"p-6",children:E.jsxs("div",{className:"p-4 rounded-lg bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-700 text-yellow-800 dark:text-yellow-300",children:[E.jsx("p",{className:"font-semibold",children:"Coverage Intelligence report not available"}),E.jsxs("p",{className:"text-sm mt-1",children:["Run ",E.jsx("code",{className:"font-mono bg-yellow-100 dark:bg-yellow-900/40 px-1 rounded",children:"api-coverage coverage-intelligence"})," to generate this report."]}),i&&E.jsx("p",{className:"text-xs mt-1 text-yellow-600 dark:text-yellow-400",children:i})]})});const{summary:y,findings:m,recommendations:v}=e,b=v.filter(_=>{var P,I;return!(o!=="all"&&_.priority!==o||s!=="all"&&l1(_.riskScore)!==s||p&&!`${((P=_.endpoint)==null?void 0:P.method)??""} ${((I=_.endpoint)==null?void 0:I.path)??""}`.toLowerCase().includes(p.toLowerCase()))}).sort((_,P)=>P.riskScore-_.riskScore),S=m.filter(_=>!(u!=="all"&&_.category!==u||h!=="all"&&_.severity!==h)),C=[...new Set(m.map(_=>_.category))],w=e?`# Coverage Intelligence
|
|
516
|
+
|
|
517
|
+
**Findings:** ${y.totalFindings} | **Recommendations:** ${y.totalRecommendations} | **Max Risk:** ${y.maxRiskScore} | **P0:** ${y.recommendationsByPriority.P0??0}
|
|
518
|
+
|
|
519
|
+
`+(y.topRiskAreas.length?`## Top Risk Areas
|
|
520
|
+
${y.topRiskAreas.map(_=>`- ${_}`).join(`
|
|
521
|
+
`)}
|
|
522
|
+
`:""):void 0;return E.jsxs("div",{"data-testid":"intelligence-section",className:"p-6 space-y-6",children:[E.jsxs("div",{children:[E.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:"Coverage Intelligence"}),E.jsxs("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1",children:["Project: ",E.jsx("span",{className:"font-medium",children:e.projectName})," ·"," ","Generated: ",new Date(e.generatedAt).toLocaleString()]})]}),E.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:[E.jsx(Uo,{label:"Total Findings",value:y.totalFindings,color:y.totalFindings>0?"text-orange-600 dark:text-orange-400":"text-green-600 dark:text-green-400"}),E.jsx(Uo,{label:"Recommendations",value:y.totalRecommendations,color:"text-blue-600 dark:text-blue-400"}),E.jsx(Uo,{label:"Max Risk Score",value:`${y.maxRiskScore} (${l1(y.maxRiskScore)})`,color:jW(y.maxRiskScore)}),E.jsx(Uo,{label:"P0 Actions",value:y.recommendationsByPriority.P0??0,color:(y.recommendationsByPriority.P0??0)>0?"text-red-600 dark:text-red-400":"text-green-600 dark:text-green-400"}),E.jsx(Uo,{label:"Critical Uncovered",value:y.criticalUncoveredItems,color:y.criticalUncoveredItems>0?"text-red-600 dark:text-red-400":"text-gray-500"}),E.jsx(Uo,{label:"Unprotected Security",value:y.unprotectedSecurityFindings,color:y.unprotectedSecurityFindings>0?"text-red-600 dark:text-red-400":"text-gray-500"}),E.jsx(Uo,{label:"Avg Risk Score",value:y.avgRiskScore})]}),w&&E.jsx(uh,{markdown:w}),E.jsxs("section",{children:[E.jsxs("div",{className:"flex items-center justify-between mb-3 flex-wrap gap-2",children:[E.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Missing Test Recommendations"}),E.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[E.jsx("input",{type:"text","data-testid":"endpoint-filter",value:p,onChange:_=>g(_.target.value),placeholder:"Filter by endpoint…",className:"rounded border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 text-xs"}),E.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-300",children:o==="all"?"All Priorities":`Priority: ${o}`}),E.jsxs("select",{value:o,onChange:_=>l(_.target.value),className:"rounded border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 text-xs",children:[E.jsx("option",{value:"all",children:"All"}),E.jsx("option",{value:"P0",children:"P0"}),E.jsx("option",{value:"P1",children:"P1"}),E.jsx("option",{value:"P2",children:"P2"}),E.jsx("option",{value:"P3",children:"P3"})]}),E.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-300",children:s==="all"?"All Risk Bands":`Band: ${s}`}),E.jsxs("select",{value:s,onChange:_=>c(_.target.value),className:"rounded border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 text-xs",children:[E.jsx("option",{value:"all",children:"All"}),E.jsx("option",{value:"Critical",children:"Critical"}),E.jsx("option",{value:"High",children:"High"}),E.jsx("option",{value:"Moderate",children:"Moderate"}),E.jsx("option",{value:"Low",children:"Low"})]})]})]}),b.length===0?E.jsx("div",{className:"text-sm text-gray-500 dark:text-gray-400 italic py-4",children:"No recommendations match the current filters."}):E.jsx("div",{className:"grid gap-3",children:b.map(_=>E.jsx(tTe,{rec:_,allFindings:m},_.id))})]}),E.jsxs("section",{children:[E.jsxs("div",{className:"flex items-center justify-between mb-3",children:[E.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Functional Findings"}),E.jsxs("div",{className:"flex gap-2 text-sm",children:[E.jsxs("select",{value:h,onChange:_=>d(_.target.value),className:"rounded border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 text-xs",children:[E.jsx("option",{value:"all",children:"All Severities"}),E.jsx("option",{value:"CRITICAL",children:"Critical"}),E.jsx("option",{value:"HIGH",children:"High"}),E.jsx("option",{value:"MEDIUM",children:"Medium"}),E.jsx("option",{value:"LOW",children:"Low"})]}),E.jsxs("select",{value:u,onChange:_=>f(_.target.value),className:"rounded border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-2 py-1 text-xs",children:[E.jsx("option",{value:"all",children:"All Categories"}),C.map(_=>E.jsx("option",{value:_,children:_},_))]})]})]}),S.length===0?E.jsx("div",{className:"text-sm text-gray-500 dark:text-gray-400 italic py-4",children:"No findings match the current filters."}):E.jsx("div",{className:"overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700",children:E.jsxs("table",{className:"w-full text-sm",children:[E.jsx("thead",{className:"bg-gray-50 dark:bg-gray-800",children:E.jsxs("tr",{children:[E.jsx("th",{className:"px-4 py-2 text-left text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase",children:"Severity"}),E.jsx("th",{className:"px-4 py-2 text-left text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase",children:"Title"}),E.jsx("th",{className:"px-4 py-2 text-left text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase",children:"Category"}),E.jsx("th",{className:"px-4 py-2 text-left text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase",children:"Endpoint"})]})}),E.jsx("tbody",{className:"divide-y divide-gray-100 dark:divide-gray-700 bg-white dark:bg-gray-900",children:S.map(_=>E.jsx(eTe,{finding:_},_.id))})]})})]}),y.topRiskAreas.length>0&&E.jsxs("section",{children:[E.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-3",children:"Top Risk Areas"}),E.jsx("ul",{className:"space-y-1",children:y.topRiskAreas.map((_,P)=>E.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-700 dark:text-gray-300",children:[E.jsx("span",{className:"text-red-500 mt-0.5",children:"🔴"}),E.jsx("span",{children:_})]},P))})]})]})}function nTe(){return E.jsx(WU,{children:E.jsx(tq,{children:E.jsx(JU,{children:E.jsx(iq,{children:E.jsxs("div",{className:"flex min-h-screen bg-gray-100 dark:bg-gray-900",children:[E.jsx(oq,{}),E.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[E.jsx(sq,{}),E.jsx("main",{className:"flex-1 overflow-auto",children:E.jsxs(vU,{children:[E.jsx(Jn,{path:"/",element:E.jsx(vge,{})}),E.jsx(Jn,{path:"/endpoints",element:E.jsx(Pge,{})}),E.jsx(Jn,{path:"/parameters",element:E.jsx(Oge,{})}),E.jsx(Jn,{path:"/business-rules",element:E.jsx(Mge,{})}),E.jsx(Jn,{path:"/integration-flows",element:E.jsx(qEe,{})}),E.jsx(Jn,{path:"/security",element:E.jsx(YEe,{})}),E.jsx(Jn,{path:"/error-handling",element:E.jsx(GEe,{})}),E.jsx(Jn,{path:"/performance",element:E.jsx(ZEe,{})}),E.jsx(Jn,{path:"/trends",element:E.jsx(QEe,{})}),E.jsx(Jn,{path:"/intelligence",element:E.jsx(rTe,{})})]})})]})]})})})})})}F$(document.getElementById("root")).render(E.jsx(x.StrictMode,{children:E.jsx(nTe,{})}));export{Nh as $,nf as A,Nge as B,nye as C,A2 as D,i5 as E,Sr as F,J1e as G,J0e as H,sM as I,abe as J,$R as K,vme as L,xS as M,dSe as N,Pk as O,pc as P,MTe as Q,mv as R,jme as S,t2 as T,xM as U,ef as V,Q1e as W,jh as X,qme as Y,U1e as Z,k as _,Zme as a,GR as a$,se as a0,be as a1,d5 as a2,Ek as a3,gT as a4,pT as a5,Km as a6,tN as a7,Jp as a8,cTe as a9,fCe as aA,oCe as aB,aCe as aC,F1e as aD,Lwe as aE,I1e as aF,b2 as aG,wL as aH,Tk as aI,vS as aJ,OTe as aK,cf as aL,Yn as aM,Hh as aN,fSe as aO,uSe as aP,rn as aQ,Jte as aR,bS as aS,_R as aT,kh as aU,PR as aV,dTe as aW,tie as aX,YP as aY,VP as aZ,Dge as a_,oTe as aa,rc as ab,vi as ac,lTe as ad,tt as ae,fTe as af,uTe as ag,sTe as ah,RSe as ai,R8 as aj,HTe as ak,lbe as al,qt as am,Do as an,x2 as ao,u6 as ap,Jl as aq,Nz as ar,_e as as,Gi as at,ACe as au,WTe as av,UTe as aw,FTe as ax,pe as ay,zTe as az,Xme as b,$S as b0,_y as b1,Hre as b2,Wre as b3,cc as b4,zre as b5,Fre as b6,Mg as b7,Ch as b8,LS as b9,Fh as bA,fm as bB,v1e as bC,wz as bD,kwe as bE,Swe as bF,Zo as bG,WM as bH,Cwe as bI,k2 as bJ,wwe as bK,Twe as bL,Hc as bM,$o as bN,jM as bO,S2 as bP,Sz as bQ,n1 as bR,W1e as bS,pv as bT,aTe as bU,Ve as bV,OS as ba,il as bb,Og as bc,Xl as bd,z1e as be,Pz as bf,fv as bg,gv as bh,hm as bi,Oz as bj,Tz as bk,y1e as bl,CS as bm,he as bn,gz as bo,B1e as bp,L1e as bq,xwe as br,w2 as bs,d1e as bt,H1e as bu,zh as bv,Wc as bw,cm as bx,C1e as by,QCe as bz,Ue as c,De as d,h5 as e,zt as f,Jme as g,Ia as h,qn as i,fbe as j,Fc as k,Y as l,Rz as m,LTe as n,VTe as o,eye as p,tye as q,qTe as r,Qme as s,obe as t,ci as u,rCe as v,rke as w,$Te as x,Gme as y,ITe as z};
|