vibe-splain 3.4.1 → 3.4.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.
@@ -3,8 +3,8 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>VIBE-SPLAIN — Architectural Dossier</title>
7
- <meta name="description" content="VIBE-SPLAIN Architectural Dossier — understand your codebase's structural decisions" />
6
+ <title>vibe-splain — Architectural Dossier</title>
7
+ <meta name="description" content="vibe-splain Architectural Dossier — understand your codebase's structural decisions" />
8
8
  <link rel="preconnect" href="https://fonts.googleapis.com" />
9
9
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
10
10
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet" />
@@ -48,7 +48,7 @@
48
48
  `+r[o].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=o&&0<=s);break}}}finally{f3=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?mC(t):""}function n4e(t){switch(t.tag){case 5:return mC(t.type);case 16:return mC("Lazy");case 13:return mC("Suspense");case 19:return mC("SuspenseList");case 0:case 2:case 15:return t=b3(t.type,!1),t;case 11:return t=b3(t.type.render,!1),t;case 1:return t=b3(t.type,!0),t;default:return""}}function D6(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case hf:return"Fragment";case gf:return"Portal";case E6:return"Profiler";case FP:return"StrictMode";case B6:return"Suspense";case I6:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case xae:return(t.displayName||"Context")+".Consumer";case _ae:return(t._context.displayName||"Context")+".Provider";case TP:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case LP:return e=t.displayName||null,e!==null?e:D6(t.type)||"Memo";case tp:e=t._payload,t=t._init;try{return D6(t(e))}catch{}}return null}function a4e(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return D6(e);case 8:return e===FP?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function qp(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Bae(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function r4e(t){var e=Bae(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),a=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(o){a=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function UE(t){t._valueTracker||(t._valueTracker=r4e(t))}function Iae(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Bae(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function q2(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Q6(t,e){var n=e.checked;return Va({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function dH(t,e){var n=e.defaultValue==null?"":e.defaultValue,a=e.checked!=null?e.checked:e.defaultChecked;n=qp(e.value!=null?e.value:n),t._wrapperState={initialChecked:a,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Dae(t,e){e=e.checked,e!=null&&SP(t,"checked",e,!1)}function S6(t,e){Dae(t,e);var n=qp(e.value),a=e.type;if(n!=null)a==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?F6(t,e.type,n):e.hasOwnProperty("defaultValue")&&F6(t,e.type,qp(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function pH(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var a=e.type;if(!(a!=="submit"&&a!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function F6(t,e,n){(e!=="number"||q2(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var gC=Array.isArray;function Uf(t,e,n,a){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&a&&(t[n].defaultSelected=!0)}else{for(n=""+qp(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,a&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function T6(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(Et(91));return Va({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function AH(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(Et(92));if(gC(n)){if(1<n.length)throw Error(Et(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:qp(n)}}function Qae(t,e){var n=qp(e.value),a=qp(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),a!=null&&(t.defaultValue=""+a)}function mH(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Sae(t){switch(t){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 L6(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Sae(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var HE,Fae=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,a,r){MSApp.execUnsafeLocalFunction(function(){return t(e,n,a,r)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(HE=HE||document.createElement("div"),HE.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=HE.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function j_(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var VC={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},i4e=["Webkit","ms","Moz","O"];Object.keys(VC).forEach(function(t){i4e.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),VC[e]=VC[t]})});function Tae(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||VC.hasOwnProperty(t)&&VC[t]?(""+e).trim():e+"px"}function Lae(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var a=n.indexOf("--")===0,r=Tae(n,e[n],a);n==="float"&&(n="cssFloat"),a?t.setProperty(n,r):t[n]=r}}var o4e=Va({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 R6(t,e){if(e){if(o4e[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Et(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Et(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Et(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Et(62))}}function N6(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 M6=null;function RP(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var $6=null,Hf=null,Wf=null;function gH(t){if(t=_1(t)){if(typeof $6!="function")throw Error(Et(280));var e=t.stateNode;e&&(e=HS(e),$6(t.stateNode,t.type,e))}}function Rae(t){Hf?Wf?Wf.push(t):Wf=[t]:Hf=t}function Nae(){if(Hf){var t=Hf,e=Wf;if(Wf=Hf=null,gH(t),e)for(t=0;t<e.length;t++)gH(e[t])}}function Mae(t,e){return t(e)}function $ae(){}var y3=!1;function Pae(t,e,n){if(y3)return t(e,n);y3=!0;try{return Mae(t,e,n)}finally{y3=!1,(Hf!==null||Wf!==null)&&($ae(),Nae())}}function q_(t,e){var n=t.stateNode;if(n===null)return null;var a=HS(n);if(a===null)return null;n=a[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(Et(231,e,typeof n));return n}var P6=!1;if(cd)try{var Iv={};Object.defineProperty(Iv,"passive",{get:function(){P6=!0}}),window.addEventListener("test",Iv,Iv),window.removeEventListener("test",Iv,Iv)}catch{P6=!1}function s4e(t,e,n,a,r,i,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(d){this.onError(d)}}var JC=!1,G2=null,z2=!1,O6=null,c4e={onError:function(t){JC=!0,G2=t}};function l4e(t,e,n,a,r,i,o,s,l){JC=!1,G2=null,s4e.apply(c4e,arguments)}function u4e(t,e,n,a,r,i,o,s,l){if(l4e.apply(this,arguments),JC){if(JC){var u=G2;JC=!1,G2=null}else throw Error(Et(198));z2||(z2=!0,O6=u)}}function Rg(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Oae(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function hH(t){if(Rg(t)!==t)throw Error(Et(188))}function d4e(t){var e=t.alternate;if(!e){if(e=Rg(t),e===null)throw Error(Et(188));return e!==t?null:t}for(var n=t,a=e;;){var r=n.return;if(r===null)break;var i=r.alternate;if(i===null){if(a=r.return,a!==null){n=a;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return hH(r),t;if(i===a)return hH(r),e;i=i.sibling}throw Error(Et(188))}if(n.return!==a.return)n=r,a=i;else{for(var o=!1,s=r.child;s;){if(s===n){o=!0,n=r,a=i;break}if(s===a){o=!0,a=r,n=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===n){o=!0,n=i,a=r;break}if(s===a){o=!0,a=i,n=r;break}s=s.sibling}if(!o)throw Error(Et(189))}}if(n.alternate!==a)throw Error(Et(190))}if(n.tag!==3)throw Error(Et(188));return n.stateNode.current===n?t:e}function jae(t){return t=d4e(t),t!==null?qae(t):null}function qae(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=qae(t);if(e!==null)return e;t=t.sibling}return null}var Gae=ws.unstable_scheduleCallback,fH=ws.unstable_cancelCallback,p4e=ws.unstable_shouldYield,A4e=ws.unstable_requestPaint,gr=ws.unstable_now,m4e=ws.unstable_getCurrentPriorityLevel,NP=ws.unstable_ImmediatePriority,zae=ws.unstable_UserBlockingPriority,U2=ws.unstable_NormalPriority,g4e=ws.unstable_LowPriority,Uae=ws.unstable_IdlePriority,qS=null,ql=null;function h4e(t){if(ql&&typeof ql.onCommitFiberRoot=="function")try{ql.onCommitFiberRoot(qS,t,void 0,(t.current.flags&128)===128)}catch{}}var $c=Math.clz32?Math.clz32:y4e,f4e=Math.log,b4e=Math.LN2;function y4e(t){return t>>>=0,t===0?32:31-(f4e(t)/b4e|0)|0}var WE=64,YE=4194304;function hC(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function H2(t,e){var n=t.pendingLanes;if(n===0)return 0;var a=0,r=t.suspendedLanes,i=t.pingedLanes,o=n&268435455;if(o!==0){var s=o&~r;s!==0?a=hC(s):(i&=o,i!==0&&(a=hC(i)))}else o=n&~r,o!==0?a=hC(o):i!==0&&(a=hC(i));if(a===0)return 0;if(e!==0&&e!==a&&!(e&r)&&(r=a&-a,i=e&-e,r>=i||r===16&&(i&4194240)!==0))return e;if(a&4&&(a|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=a;0<e;)n=31-$c(e),r=1<<n,a|=t[n],e&=~r;return a}function w4e(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 k4e(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,r=t.expirationTimes,i=t.pendingLanes;0<i;){var o=31-$c(i),s=1<<o,l=r[o];l===-1?(!(s&n)||s&a)&&(r[o]=w4e(s,e)):l<=e&&(t.expiredLanes|=s),i&=~s}}function j6(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Hae(){var t=WE;return WE<<=1,!(WE&4194240)&&(WE=64),t}function w3(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function v1(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-$c(e),t[e]=n}function v4e(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0<n;){var r=31-$c(n),i=1<<r;e[r]=0,a[r]=-1,t[r]=-1,n&=~i}}function MP(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-$c(n),r=1<<a;r&e|t[a]&e&&(t[a]|=e),n&=~r}}var sa=0;function Wae(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Yae,$P,Kae,Zae,Vae,q6=!1,KE=[],Ip=null,Dp=null,Qp=null,G_=new Map,z_=new Map,pp=[],C4e="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 bH(t,e){switch(t){case"focusin":case"focusout":Ip=null;break;case"dragenter":case"dragleave":Dp=null;break;case"mouseover":case"mouseout":Qp=null;break;case"pointerover":case"pointerout":G_.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":z_.delete(e.pointerId)}}function Dv(t,e,n,a,r,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:i,targetContainers:[r]},e!==null&&(e=_1(e),e!==null&&$P(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function _4e(t,e,n,a,r){switch(e){case"focusin":return Ip=Dv(Ip,t,e,n,a,r),!0;case"dragenter":return Dp=Dv(Dp,t,e,n,a,r),!0;case"mouseover":return Qp=Dv(Qp,t,e,n,a,r),!0;case"pointerover":var i=r.pointerId;return G_.set(i,Dv(G_.get(i)||null,t,e,n,a,r)),!0;case"gotpointercapture":return i=r.pointerId,z_.set(i,Dv(z_.get(i)||null,t,e,n,a,r)),!0}return!1}function Jae(t){var e=Sm(t.target);if(e!==null){var n=Rg(e);if(n!==null){if(e=n.tag,e===13){if(e=Oae(n),e!==null){t.blockedOn=e,Vae(t.priority,function(){Kae(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function kI(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=G6(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);M6=a,n.target.dispatchEvent(a),M6=null}else return e=_1(n),e!==null&&$P(e),t.blockedOn=n,!1;e.shift()}return!0}function yH(t,e,n){kI(t)&&n.delete(e)}function x4e(){q6=!1,Ip!==null&&kI(Ip)&&(Ip=null),Dp!==null&&kI(Dp)&&(Dp=null),Qp!==null&&kI(Qp)&&(Qp=null),G_.forEach(yH),z_.forEach(yH)}function Qv(t,e){t.blockedOn===e&&(t.blockedOn=null,q6||(q6=!0,ws.unstable_scheduleCallback(ws.unstable_NormalPriority,x4e)))}function U_(t){function e(r){return Qv(r,t)}if(0<KE.length){Qv(KE[0],t);for(var n=1;n<KE.length;n++){var a=KE[n];a.blockedOn===t&&(a.blockedOn=null)}}for(Ip!==null&&Qv(Ip,t),Dp!==null&&Qv(Dp,t),Qp!==null&&Qv(Qp,t),G_.forEach(e),z_.forEach(e),n=0;n<pp.length;n++)a=pp[n],a.blockedOn===t&&(a.blockedOn=null);for(;0<pp.length&&(n=pp[0],n.blockedOn===null);)Jae(n),n.blockedOn===null&&pp.shift()}var Yf=Dd.ReactCurrentBatchConfig,W2=!0;function E4e(t,e,n,a){var r=sa,i=Yf.transition;Yf.transition=null;try{sa=1,PP(t,e,n,a)}finally{sa=r,Yf.transition=i}}function B4e(t,e,n,a){var r=sa,i=Yf.transition;Yf.transition=null;try{sa=4,PP(t,e,n,a)}finally{sa=r,Yf.transition=i}}function PP(t,e,n,a){if(W2){var r=G6(t,e,n,a);if(r===null)Q3(t,e,a,Y2,n),bH(t,a);else if(_4e(r,t,e,n,a))a.stopPropagation();else if(bH(t,a),e&4&&-1<C4e.indexOf(t)){for(;r!==null;){var i=_1(r);if(i!==null&&Yae(i),i=G6(t,e,n,a),i===null&&Q3(t,e,a,Y2,n),i===r)break;r=i}r!==null&&a.stopPropagation()}else Q3(t,e,a,null,n)}}var Y2=null;function G6(t,e,n,a){if(Y2=null,t=RP(a),t=Sm(t),t!==null)if(e=Rg(t),e===null)t=null;else if(n=e.tag,n===13){if(t=Oae(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Y2=t,null}function Xae(t){switch(t){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(m4e()){case NP:return 1;case zae:return 4;case U2:case g4e:return 16;case Uae:return 536870912;default:return 16}default:return 16}}var hp=null,OP=null,vI=null;function ere(){if(vI)return vI;var t,e=OP,n=e.length,a,r="value"in hp?hp.value:hp.textContent,i=r.length;for(t=0;t<n&&e[t]===r[t];t++);var o=n-t;for(a=1;a<=o&&e[n-a]===r[i-a];a++);return vI=r.slice(t,1<a?1-a:void 0)}function CI(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ZE(){return!0}function wH(){return!1}function Is(t){function e(n,a,r,i,o){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(n=t[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ZE:wH,this.isPropagationStopped=wH,this}return Va(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ZE)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ZE)},persist:function(){},isPersistent:ZE}),e}var qk={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jP=Is(qk),C1=Va({},qk,{view:0,detail:0}),I4e=Is(C1),k3,v3,Sv,GS=Va({},C1,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qP,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Sv&&(Sv&&t.type==="mousemove"?(k3=t.screenX-Sv.screenX,v3=t.screenY-Sv.screenY):v3=k3=0,Sv=t),k3)},movementY:function(t){return"movementY"in t?t.movementY:v3}}),kH=Is(GS),D4e=Va({},GS,{dataTransfer:0}),Q4e=Is(D4e),S4e=Va({},C1,{relatedTarget:0}),C3=Is(S4e),F4e=Va({},qk,{animationName:0,elapsedTime:0,pseudoElement:0}),T4e=Is(F4e),L4e=Va({},qk,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),R4e=Is(L4e),N4e=Va({},qk,{data:0}),vH=Is(N4e),M4e={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$4e={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"},P4e={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function O4e(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=P4e[t])?!!e[t]:!1}function qP(){return O4e}var j4e=Va({},C1,{key:function(t){if(t.key){var e=M4e[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=CI(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?$4e[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qP,charCode:function(t){return t.type==="keypress"?CI(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?CI(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),q4e=Is(j4e),G4e=Va({},GS,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),CH=Is(G4e),z4e=Va({},C1,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qP}),U4e=Is(z4e),H4e=Va({},qk,{propertyName:0,elapsedTime:0,pseudoElement:0}),W4e=Is(H4e),Y4e=Va({},GS,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),K4e=Is(Y4e),Z4e=[9,13,27,32],GP=cd&&"CompositionEvent"in window,XC=null;cd&&"documentMode"in document&&(XC=document.documentMode);var V4e=cd&&"TextEvent"in window&&!XC,tre=cd&&(!GP||XC&&8<XC&&11>=XC),_H=" ",xH=!1;function nre(t,e){switch(t){case"keyup":return Z4e.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function are(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ff=!1;function J4e(t,e){switch(t){case"compositionend":return are(e);case"keypress":return e.which!==32?null:(xH=!0,_H);case"textInput":return t=e.data,t===_H&&xH?null:t;default:return null}}function X4e(t,e){if(ff)return t==="compositionend"||!GP&&nre(t,e)?(t=ere(),vI=OP=hp=null,ff=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return tre&&e.locale!=="ko"?null:e.data;default:return null}}var eFe={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 EH(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!eFe[t.type]:e==="textarea"}function rre(t,e,n,a){Rae(a),e=K2(e,"onChange"),0<e.length&&(n=new jP("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var e_=null,H_=null;function tFe(t){gre(t,0)}function zS(t){var e=wf(t);if(Iae(e))return t}function nFe(t,e){if(t==="change")return e}var ire=!1;if(cd){var _3;if(cd){var x3="oninput"in document;if(!x3){var BH=document.createElement("div");BH.setAttribute("oninput","return;"),x3=typeof BH.oninput=="function"}_3=x3}else _3=!1;ire=_3&&(!document.documentMode||9<document.documentMode)}function IH(){e_&&(e_.detachEvent("onpropertychange",ore),H_=e_=null)}function ore(t){if(t.propertyName==="value"&&zS(H_)){var e=[];rre(e,H_,t,RP(t)),Pae(tFe,e)}}function aFe(t,e,n){t==="focusin"?(IH(),e_=e,H_=n,e_.attachEvent("onpropertychange",ore)):t==="focusout"&&IH()}function rFe(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return zS(H_)}function iFe(t,e){if(t==="click")return zS(e)}function oFe(t,e){if(t==="input"||t==="change")return zS(e)}function sFe(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Vc=typeof Object.is=="function"?Object.is:sFe;function W_(t,e){if(Vc(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!x6.call(e,r)||!Vc(t[r],e[r]))return!1}return!0}function DH(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function QH(t,e){var n=DH(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=DH(n)}}function sre(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?sre(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function cre(){for(var t=window,e=q2();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=q2(t.document)}return e}function zP(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function cFe(t){var e=cre(),n=t.focusedElem,a=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&sre(n.ownerDocument.documentElement,n)){if(a!==null&&zP(n)){if(e=a.start,t=a.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=n.textContent.length,i=Math.min(a.start,r);a=a.end===void 0?i:Math.min(a.end,r),!t.extend&&i>a&&(r=a,a=i,i=r),r=QH(n,i);var o=QH(n,a);r&&o&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),i>a?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var lFe=cd&&"documentMode"in document&&11>=document.documentMode,bf=null,z6=null,t_=null,U6=!1;function SH(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;U6||bf==null||bf!==q2(a)||(a=bf,"selectionStart"in a&&zP(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),t_&&W_(t_,a)||(t_=a,a=K2(z6,"onSelect"),0<a.length&&(e=new jP("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=bf)))}function VE(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var yf={animationend:VE("Animation","AnimationEnd"),animationiteration:VE("Animation","AnimationIteration"),animationstart:VE("Animation","AnimationStart"),transitionend:VE("Transition","TransitionEnd")},E3={},lre={};cd&&(lre=document.createElement("div").style,"AnimationEvent"in window||(delete yf.animationend.animation,delete yf.animationiteration.animation,delete yf.animationstart.animation),"TransitionEvent"in window||delete yf.transitionend.transition);function US(t){if(E3[t])return E3[t];if(!yf[t])return t;var e=yf[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in lre)return E3[t]=e[n];return t}var ure=US("animationend"),dre=US("animationiteration"),pre=US("animationstart"),Are=US("transitionend"),mre=new Map,FH="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 AA(t,e){mre.set(t,e),Lg(e,[t])}for(var B3=0;B3<FH.length;B3++){var I3=FH[B3],uFe=I3.toLowerCase(),dFe=I3[0].toUpperCase()+I3.slice(1);AA(uFe,"on"+dFe)}AA(ure,"onAnimationEnd");AA(dre,"onAnimationIteration");AA(pre,"onAnimationStart");AA("dblclick","onDoubleClick");AA("focusin","onFocus");AA("focusout","onBlur");AA(Are,"onTransitionEnd");Hw("onMouseEnter",["mouseout","mouseover"]);Hw("onMouseLeave",["mouseout","mouseover"]);Hw("onPointerEnter",["pointerout","pointerover"]);Hw("onPointerLeave",["pointerout","pointerover"]);Lg("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Lg("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Lg("onBeforeInput",["compositionend","keypress","textInput","paste"]);Lg("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Lg("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Lg("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fC="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(" "),pFe=new Set("cancel close invalid load scroll toggle".split(" ").concat(fC));function TH(t,e,n){var a=t.type||"unknown-event";t.currentTarget=n,u4e(a,e,void 0,t),t.currentTarget=null}function gre(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],r=a.event;a=a.listeners;e:{var i=void 0;if(e)for(var o=a.length-1;0<=o;o--){var s=a[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&r.isPropagationStopped())break e;TH(r,s,u),i=l}else for(o=0;o<a.length;o++){if(s=a[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&r.isPropagationStopped())break e;TH(r,s,u),i=l}}}if(z2)throw t=O6,z2=!1,O6=null,t}function Ca(t,e){var n=e[Z6];n===void 0&&(n=e[Z6]=new Set);var a=t+"__bubble";n.has(a)||(hre(e,t,2,!1),n.add(a))}function D3(t,e,n){var a=0;e&&(a|=4),hre(n,t,a,e)}var JE="_reactListening"+Math.random().toString(36).slice(2);function Y_(t){if(!t[JE]){t[JE]=!0,Cae.forEach(function(n){n!=="selectionchange"&&(pFe.has(n)||D3(n,!1,t),D3(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[JE]||(e[JE]=!0,D3("selectionchange",!1,e))}}function hre(t,e,n,a){switch(Xae(e)){case 1:var r=E4e;break;case 4:r=B4e;break;default:r=PP}n=r.bind(null,e,n,t),r=void 0,!P6||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),a?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function Q3(t,e,n,a,r){var i=a;if(!(e&1)&&!(e&2)&&a!==null)e:for(;;){if(a===null)return;var o=a.tag;if(o===3||o===4){var s=a.stateNode.containerInfo;if(s===r||s.nodeType===8&&s.parentNode===r)break;if(o===4)for(o=a.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===r||l.nodeType===8&&l.parentNode===r))return;o=o.return}for(;s!==null;){if(o=Sm(s),o===null)return;if(l=o.tag,l===5||l===6){a=i=o;continue e}s=s.parentNode}}a=a.return}Pae(function(){var u=i,d=RP(n),p=[];e:{var A=mre.get(t);if(A!==void 0){var m=jP,g=t;switch(t){case"keypress":if(CI(n)===0)break e;case"keydown":case"keyup":m=q4e;break;case"focusin":g="focus",m=C3;break;case"focusout":g="blur",m=C3;break;case"beforeblur":case"afterblur":m=C3;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=kH;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Q4e;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=U4e;break;case ure:case dre:case pre:m=T4e;break;case Are:m=W4e;break;case"scroll":m=I4e;break;case"wheel":m=K4e;break;case"copy":case"cut":case"paste":m=R4e;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=CH}var h=(e&4)!==0,f=!h&&t==="scroll",b=h?A!==null?A+"Capture":null:A;h=[];for(var w=u,y;w!==null;){y=w;var v=y.stateNode;if(y.tag===5&&v!==null&&(y=v,b!==null&&(v=q_(w,b),v!=null&&h.push(K_(w,v,y)))),f)break;w=w.return}0<h.length&&(A=new m(A,g,null,n,d),p.push({event:A,listeners:h}))}}if(!(e&7)){e:{if(A=t==="mouseover"||t==="pointerover",m=t==="mouseout"||t==="pointerout",A&&n!==M6&&(g=n.relatedTarget||n.fromElement)&&(Sm(g)||g[ld]))break e;if((m||A)&&(A=d.window===d?d:(A=d.ownerDocument)?A.defaultView||A.parentWindow:window,m?(g=n.relatedTarget||n.toElement,m=u,g=g?Sm(g):null,g!==null&&(f=Rg(g),g!==f||g.tag!==5&&g.tag!==6)&&(g=null)):(m=null,g=u),m!==g)){if(h=kH,v="onMouseLeave",b="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(h=CH,v="onPointerLeave",b="onPointerEnter",w="pointer"),f=m==null?A:wf(m),y=g==null?A:wf(g),A=new h(v,w+"leave",m,n,d),A.target=f,A.relatedTarget=y,v=null,Sm(d)===u&&(h=new h(b,w+"enter",g,n,d),h.target=y,h.relatedTarget=f,v=h),f=v,m&&g)t:{for(h=m,b=g,w=0,y=h;y;y=_h(y))w++;for(y=0,v=b;v;v=_h(v))y++;for(;0<w-y;)h=_h(h),w--;for(;0<y-w;)b=_h(b),y--;for(;w--;){if(h===b||b!==null&&h===b.alternate)break t;h=_h(h),b=_h(b)}h=null}else h=null;m!==null&&LH(p,A,m,h,!1),g!==null&&f!==null&&LH(p,f,g,h,!0)}}e:{if(A=u?wf(u):window,m=A.nodeName&&A.nodeName.toLowerCase(),m==="select"||m==="input"&&A.type==="file")var _=nFe;else if(EH(A))if(ire)_=oFe;else{_=rFe;var x=aFe}else(m=A.nodeName)&&m.toLowerCase()==="input"&&(A.type==="checkbox"||A.type==="radio")&&(_=iFe);if(_&&(_=_(t,u))){rre(p,_,n,d);break e}x&&x(t,A,u),t==="focusout"&&(x=A._wrapperState)&&x.controlled&&A.type==="number"&&F6(A,"number",A.value)}switch(x=u?wf(u):window,t){case"focusin":(EH(x)||x.contentEditable==="true")&&(bf=x,z6=u,t_=null);break;case"focusout":t_=z6=bf=null;break;case"mousedown":U6=!0;break;case"contextmenu":case"mouseup":case"dragend":U6=!1,SH(p,n,d);break;case"selectionchange":if(lFe)break;case"keydown":case"keyup":SH(p,n,d)}var C;if(GP)e:{switch(t){case"compositionstart":var B="onCompositionStart";break e;case"compositionend":B="onCompositionEnd";break e;case"compositionupdate":B="onCompositionUpdate";break e}B=void 0}else ff?nre(t,n)&&(B="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(B="onCompositionStart");B&&(tre&&n.locale!=="ko"&&(ff||B!=="onCompositionStart"?B==="onCompositionEnd"&&ff&&(C=ere()):(hp=d,OP="value"in hp?hp.value:hp.textContent,ff=!0)),x=K2(u,B),0<x.length&&(B=new vH(B,t,null,n,d),p.push({event:B,listeners:x}),C?B.data=C:(C=are(n),C!==null&&(B.data=C)))),(C=V4e?J4e(t,n):X4e(t,n))&&(u=K2(u,"onBeforeInput"),0<u.length&&(d=new vH("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:u}),d.data=C))}gre(p,e)})}function K_(t,e,n){return{instance:t,listener:e,currentTarget:n}}function K2(t,e){for(var n=e+"Capture",a=[];t!==null;){var r=t,i=r.stateNode;r.tag===5&&i!==null&&(r=i,i=q_(t,n),i!=null&&a.unshift(K_(t,i,r)),i=q_(t,e),i!=null&&a.push(K_(t,i,r))),t=t.return}return a}function _h(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function LH(t,e,n,a,r){for(var i=e._reactName,o=[];n!==null&&n!==a;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===a)break;s.tag===5&&u!==null&&(s=u,r?(l=q_(n,i),l!=null&&o.unshift(K_(n,l,s))):r||(l=q_(n,i),l!=null&&o.push(K_(n,l,s)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var AFe=/\r\n?/g,mFe=/\u0000|\uFFFD/g;function RH(t){return(typeof t=="string"?t:""+t).replace(AFe,`
49
49
  `).replace(mFe,"")}function XE(t,e,n){if(e=RH(e),RH(t)!==e&&n)throw Error(Et(425))}function Z2(){}var H6=null,W6=null;function Y6(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var K6=typeof setTimeout=="function"?setTimeout:void 0,gFe=typeof clearTimeout=="function"?clearTimeout:void 0,NH=typeof Promise=="function"?Promise:void 0,hFe=typeof queueMicrotask=="function"?queueMicrotask:typeof NH<"u"?function(t){return NH.resolve(null).then(t).catch(fFe)}:K6;function fFe(t){setTimeout(function(){throw t})}function S3(t,e){var n=e,a=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(a===0){t.removeChild(r),U_(e);return}a--}else n!=="$"&&n!=="$?"&&n!=="$!"||a++;n=r}while(n);U_(e)}function Sp(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function MH(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Gk=Math.random().toString(36).slice(2),Fl="__reactFiber$"+Gk,Z_="__reactProps$"+Gk,ld="__reactContainer$"+Gk,Z6="__reactEvents$"+Gk,bFe="__reactListeners$"+Gk,yFe="__reactHandles$"+Gk;function Sm(t){var e=t[Fl];if(e)return e;for(var n=t.parentNode;n;){if(e=n[ld]||n[Fl]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=MH(t);t!==null;){if(n=t[Fl])return n;t=MH(t)}return e}t=n,n=t.parentNode}return null}function _1(t){return t=t[Fl]||t[ld],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function wf(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(Et(33))}function HS(t){return t[Z_]||null}var V6=[],kf=-1;function mA(t){return{current:t}}function Ba(t){0>kf||(t.current=V6[kf],V6[kf]=null,kf--)}function ya(t,e){kf++,V6[kf]=t.current,t.current=e}var Gp={},Ui=mA(Gp),Wo=mA(!1),ag=Gp;function Ww(t,e){var n=t.type.contextTypes;if(!n)return Gp;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===e)return a.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in n)r[i]=e[i];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function Yo(t){return t=t.childContextTypes,t!=null}function V2(){Ba(Wo),Ba(Ui)}function $H(t,e,n){if(Ui.current!==Gp)throw Error(Et(168));ya(Ui,e),ya(Wo,n)}function fre(t,e,n){var a=t.stateNode;if(e=e.childContextTypes,typeof a.getChildContext!="function")return n;a=a.getChildContext();for(var r in a)if(!(r in e))throw Error(Et(108,a4e(t)||"Unknown",r));return Va({},n,a)}function J2(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Gp,ag=Ui.current,ya(Ui,t),ya(Wo,Wo.current),!0}function PH(t,e,n){var a=t.stateNode;if(!a)throw Error(Et(169));n?(t=fre(t,e,ag),a.__reactInternalMemoizedMergedChildContext=t,Ba(Wo),Ba(Ui),ya(Ui,t)):Ba(Wo),ya(Wo,n)}var $u=null,WS=!1,F3=!1;function bre(t){$u===null?$u=[t]:$u.push(t)}function wFe(t){WS=!0,bre(t)}function gA(){if(!F3&&$u!==null){F3=!0;var t=0,e=sa;try{var n=$u;for(sa=1;t<n.length;t++){var a=n[t];do a=a(!0);while(a!==null)}$u=null,WS=!1}catch(r){throw $u!==null&&($u=$u.slice(t+1)),Gae(NP,gA),r}finally{sa=e,F3=!1}}return null}var vf=[],Cf=0,X2=null,eD=0,Ks=[],Zs=0,rg=null,Uu=1,Hu="";function VA(t,e){vf[Cf++]=eD,vf[Cf++]=X2,X2=t,eD=e}function yre(t,e,n){Ks[Zs++]=Uu,Ks[Zs++]=Hu,Ks[Zs++]=rg,rg=t;var a=Uu;t=Hu;var r=32-$c(a)-1;a&=~(1<<r),n+=1;var i=32-$c(e)+r;if(30<i){var o=r-r%5;i=(a&(1<<o)-1).toString(32),a>>=o,r-=o,Uu=1<<32-$c(e)+r|n<<r|a,Hu=i+t}else Uu=1<<i|n<<r|a,Hu=t}function UP(t){t.return!==null&&(VA(t,1),yre(t,1,0))}function HP(t){for(;t===X2;)X2=vf[--Cf],vf[Cf]=null,eD=vf[--Cf],vf[Cf]=null;for(;t===rg;)rg=Ks[--Zs],Ks[Zs]=null,Hu=Ks[--Zs],Ks[Zs]=null,Uu=Ks[--Zs],Ks[Zs]=null}var gs=null,As=null,Ra=!1,Qc=null;function wre(t,e){var n=nc(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function OH(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,gs=t,As=Sp(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,gs=t,As=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=rg!==null?{id:Uu,overflow:Hu}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=nc(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,gs=t,As=null,!0):!1;default:return!1}}function J6(t){return(t.mode&1)!==0&&(t.flags&128)===0}function X6(t){if(Ra){var e=As;if(e){var n=e;if(!OH(t,e)){if(J6(t))throw Error(Et(418));e=Sp(n.nextSibling);var a=gs;e&&OH(t,e)?wre(a,n):(t.flags=t.flags&-4097|2,Ra=!1,gs=t)}}else{if(J6(t))throw Error(Et(418));t.flags=t.flags&-4097|2,Ra=!1,gs=t}}}function jH(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;gs=t}function eB(t){if(t!==gs)return!1;if(!Ra)return jH(t),Ra=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Y6(t.type,t.memoizedProps)),e&&(e=As)){if(J6(t))throw kre(),Error(Et(418));for(;e;)wre(t,e),e=Sp(e.nextSibling)}if(jH(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Et(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){As=Sp(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}As=null}}else As=gs?Sp(t.stateNode.nextSibling):null;return!0}function kre(){for(var t=As;t;)t=Sp(t.nextSibling)}function Yw(){As=gs=null,Ra=!1}function WP(t){Qc===null?Qc=[t]:Qc.push(t)}var kFe=Dd.ReactCurrentBatchConfig;function Fv(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Et(309));var a=n.stateNode}if(!a)throw Error(Et(147,t));var r=a,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(o){var s=r.refs;o===null?delete s[i]:s[i]=o},e._stringRef=i,e)}if(typeof t!="string")throw Error(Et(284));if(!n._owner)throw Error(Et(290,t))}return t}function tB(t,e){throw t=Object.prototype.toString.call(e),Error(Et(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function qH(t){var e=t._init;return e(t._payload)}function vre(t){function e(b,w){if(t){var y=b.deletions;y===null?(b.deletions=[w],b.flags|=16):y.push(w)}}function n(b,w){if(!t)return null;for(;w!==null;)e(b,w),w=w.sibling;return null}function a(b,w){for(b=new Map;w!==null;)w.key!==null?b.set(w.key,w):b.set(w.index,w),w=w.sibling;return b}function r(b,w){return b=Rp(b,w),b.index=0,b.sibling=null,b}function i(b,w,y){return b.index=y,t?(y=b.alternate,y!==null?(y=y.index,y<w?(b.flags|=2,w):y):(b.flags|=2,w)):(b.flags|=1048576,w)}function o(b){return t&&b.alternate===null&&(b.flags|=2),b}function s(b,w,y,v){return w===null||w.tag!==6?(w=P3(y,b.mode,v),w.return=b,w):(w=r(w,y),w.return=b,w)}function l(b,w,y,v){var _=y.type;return _===hf?d(b,w,y.props.children,v,y.key):w!==null&&(w.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===tp&&qH(_)===w.type)?(v=r(w,y.props),v.ref=Fv(b,w,y),v.return=b,v):(v=QI(y.type,y.key,y.props,null,b.mode,v),v.ref=Fv(b,w,y),v.return=b,v)}function u(b,w,y,v){return w===null||w.tag!==4||w.stateNode.containerInfo!==y.containerInfo||w.stateNode.implementation!==y.implementation?(w=O3(y,b.mode,v),w.return=b,w):(w=r(w,y.children||[]),w.return=b,w)}function d(b,w,y,v,_){return w===null||w.tag!==7?(w=Wm(y,b.mode,v,_),w.return=b,w):(w=r(w,y),w.return=b,w)}function p(b,w,y){if(typeof w=="string"&&w!==""||typeof w=="number")return w=P3(""+w,b.mode,y),w.return=b,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case zE:return y=QI(w.type,w.key,w.props,null,b.mode,y),y.ref=Fv(b,null,w),y.return=b,y;case gf:return w=O3(w,b.mode,y),w.return=b,w;case tp:var v=w._init;return p(b,v(w._payload),y)}if(gC(w)||Bv(w))return w=Wm(w,b.mode,y,null),w.return=b,w;tB(b,w)}return null}function A(b,w,y,v){var _=w!==null?w.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return _!==null?null:s(b,w,""+y,v);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case zE:return y.key===_?l(b,w,y,v):null;case gf:return y.key===_?u(b,w,y,v):null;case tp:return _=y._init,A(b,w,_(y._payload),v)}if(gC(y)||Bv(y))return _!==null?null:d(b,w,y,v,null);tB(b,y)}return null}function m(b,w,y,v,_){if(typeof v=="string"&&v!==""||typeof v=="number")return b=b.get(y)||null,s(w,b,""+v,_);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case zE:return b=b.get(v.key===null?y:v.key)||null,l(w,b,v,_);case gf:return b=b.get(v.key===null?y:v.key)||null,u(w,b,v,_);case tp:var x=v._init;return m(b,w,y,x(v._payload),_)}if(gC(v)||Bv(v))return b=b.get(y)||null,d(w,b,v,_,null);tB(w,v)}return null}function g(b,w,y,v){for(var _=null,x=null,C=w,B=w=0,D=null;C!==null&&B<y.length;B++){C.index>B?(D=C,C=null):D=C.sibling;var T=A(b,C,y[B],v);if(T===null){C===null&&(C=D);break}t&&C&&T.alternate===null&&e(b,C),w=i(T,w,B),x===null?_=T:x.sibling=T,x=T,C=D}if(B===y.length)return n(b,C),Ra&&VA(b,B),_;if(C===null){for(;B<y.length;B++)C=p(b,y[B],v),C!==null&&(w=i(C,w,B),x===null?_=C:x.sibling=C,x=C);return Ra&&VA(b,B),_}for(C=a(b,C);B<y.length;B++)D=m(C,b,B,y[B],v),D!==null&&(t&&D.alternate!==null&&C.delete(D.key===null?B:D.key),w=i(D,w,B),x===null?_=D:x.sibling=D,x=D);return t&&C.forEach(function(F){return e(b,F)}),Ra&&VA(b,B),_}function h(b,w,y,v){var _=Bv(y);if(typeof _!="function")throw Error(Et(150));if(y=_.call(y),y==null)throw Error(Et(151));for(var x=_=null,C=w,B=w=0,D=null,T=y.next();C!==null&&!T.done;B++,T=y.next()){C.index>B?(D=C,C=null):D=C.sibling;var F=A(b,C,T.value,v);if(F===null){C===null&&(C=D);break}t&&C&&F.alternate===null&&e(b,C),w=i(F,w,B),x===null?_=F:x.sibling=F,x=F,C=D}if(T.done)return n(b,C),Ra&&VA(b,B),_;if(C===null){for(;!T.done;B++,T=y.next())T=p(b,T.value,v),T!==null&&(w=i(T,w,B),x===null?_=T:x.sibling=T,x=T);return Ra&&VA(b,B),_}for(C=a(b,C);!T.done;B++,T=y.next())T=m(C,b,B,T.value,v),T!==null&&(t&&T.alternate!==null&&C.delete(T.key===null?B:T.key),w=i(T,w,B),x===null?_=T:x.sibling=T,x=T);return t&&C.forEach(function(O){return e(b,O)}),Ra&&VA(b,B),_}function f(b,w,y,v){if(typeof y=="object"&&y!==null&&y.type===hf&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case zE:e:{for(var _=y.key,x=w;x!==null;){if(x.key===_){if(_=y.type,_===hf){if(x.tag===7){n(b,x.sibling),w=r(x,y.props.children),w.return=b,b=w;break e}}else if(x.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===tp&&qH(_)===x.type){n(b,x.sibling),w=r(x,y.props),w.ref=Fv(b,x,y),w.return=b,b=w;break e}n(b,x);break}else e(b,x);x=x.sibling}y.type===hf?(w=Wm(y.props.children,b.mode,v,y.key),w.return=b,b=w):(v=QI(y.type,y.key,y.props,null,b.mode,v),v.ref=Fv(b,w,y),v.return=b,b=v)}return o(b);case gf:e:{for(x=y.key;w!==null;){if(w.key===x)if(w.tag===4&&w.stateNode.containerInfo===y.containerInfo&&w.stateNode.implementation===y.implementation){n(b,w.sibling),w=r(w,y.children||[]),w.return=b,b=w;break e}else{n(b,w);break}else e(b,w);w=w.sibling}w=O3(y,b.mode,v),w.return=b,b=w}return o(b);case tp:return x=y._init,f(b,w,x(y._payload),v)}if(gC(y))return g(b,w,y,v);if(Bv(y))return h(b,w,y,v);tB(b,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,w!==null&&w.tag===6?(n(b,w.sibling),w=r(w,y),w.return=b,b=w):(n(b,w),w=P3(y,b.mode,v),w.return=b,b=w),o(b)):n(b,w)}return f}var Kw=vre(!0),Cre=vre(!1),tD=mA(null),nD=null,_f=null,YP=null;function KP(){YP=_f=nD=null}function ZP(t){var e=tD.current;Ba(tD),t._currentValue=e}function eR(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function Kf(t,e){nD=t,YP=_f=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Uo=!0),t.firstContext=null)}function uc(t){var e=t._currentValue;if(YP!==t)if(t={context:t,memoizedValue:e,next:null},_f===null){if(nD===null)throw Error(Et(308));_f=t,nD.dependencies={lanes:0,firstContext:t}}else _f=_f.next=t;return e}var Fm=null;function VP(t){Fm===null?Fm=[t]:Fm.push(t)}function _re(t,e,n,a){var r=e.interleaved;return r===null?(n.next=n,VP(e)):(n.next=r.next,r.next=n),e.interleaved=n,ud(t,a)}function ud(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var np=!1;function JP(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xre(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function nd(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Fp(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,qn&2){var r=a.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),a.pending=e,ud(t,n)}return r=a.interleaved,r===null?(e.next=e,VP(a)):(e.next=r.next,r.next=e),a.interleaved=e,ud(t,n)}function _I(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,MP(t,n)}}function GH(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?r=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?r=i=e:i=i.next=e}else r=i=e;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:a.shared,effects:a.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function aD(t,e,n,a){var r=t.updateQueue;np=!1;var i=r.firstBaseUpdate,o=r.lastBaseUpdate,s=r.shared.pending;if(s!==null){r.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var d=t.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==o&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l))}if(i!==null){var p=r.baseState;o=0,d=u=l=null,s=i;do{var A=s.lane,m=s.eventTime;if((a&A)===A){d!==null&&(d=d.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=t,h=s;switch(A=e,m=n,h.tag){case 1:if(g=h.payload,typeof g=="function"){p=g.call(m,p,A);break e}p=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=h.payload,A=typeof g=="function"?g.call(m,p,A):g,A==null)break e;p=Va({},p,A);break e;case 2:np=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,A=r.effects,A===null?r.effects=[s]:A.push(s))}else m={eventTime:m,lane:A,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=m,l=p):d=d.next=m,o|=A;if(s=s.next,s===null){if(s=r.shared.pending,s===null)break;A=s,s=A.next,A.next=null,r.lastBaseUpdate=A,r.shared.pending=null}}while(!0);if(d===null&&(l=p),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=d,e=r.shared.interleaved,e!==null){r=e;do o|=r.lane,r=r.next;while(r!==e)}else i===null&&(r.shared.lanes=0);og|=o,t.lanes=o,t.memoizedState=p}}function zH(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var a=t[e],r=a.callback;if(r!==null){if(a.callback=null,a=n,typeof r!="function")throw Error(Et(191,r));r.call(a)}}}var x1={},Gl=mA(x1),V_=mA(x1),J_=mA(x1);function Tm(t){if(t===x1)throw Error(Et(174));return t}function XP(t,e){switch(ya(J_,e),ya(V_,t),ya(Gl,x1),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:L6(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=L6(e,t)}Ba(Gl),ya(Gl,e)}function Zw(){Ba(Gl),Ba(V_),Ba(J_)}function Ere(t){Tm(J_.current);var e=Tm(Gl.current),n=L6(e,t.type);e!==n&&(ya(V_,t),ya(Gl,n))}function e7(t){V_.current===t&&(Ba(Gl),Ba(V_))}var Ha=mA(0);function rD(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var T3=[];function t7(){for(var t=0;t<T3.length;t++)T3[t]._workInProgressVersionPrimary=null;T3.length=0}var xI=Dd.ReactCurrentDispatcher,L3=Dd.ReactCurrentBatchConfig,ig=0,Ka=null,$r=null,ti=null,iD=!1,n_=!1,X_=0,vFe=0;function Qi(){throw Error(Et(321))}function n7(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Vc(t[n],e[n]))return!1;return!0}function a7(t,e,n,a,r,i){if(ig=i,Ka=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,xI.current=t===null||t.memoizedState===null?EFe:BFe,t=n(a,r),n_){i=0;do{if(n_=!1,X_=0,25<=i)throw Error(Et(301));i+=1,ti=$r=null,e.updateQueue=null,xI.current=IFe,t=n(a,r)}while(n_)}if(xI.current=oD,e=$r!==null&&$r.next!==null,ig=0,ti=$r=Ka=null,iD=!1,e)throw Error(Et(300));return t}function r7(){var t=X_!==0;return X_=0,t}function vl(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ti===null?Ka.memoizedState=ti=t:ti=ti.next=t,ti}function dc(){if($r===null){var t=Ka.alternate;t=t!==null?t.memoizedState:null}else t=$r.next;var e=ti===null?Ka.memoizedState:ti.next;if(e!==null)ti=e,$r=t;else{if(t===null)throw Error(Et(310));$r=t,t={memoizedState:$r.memoizedState,baseState:$r.baseState,baseQueue:$r.baseQueue,queue:$r.queue,next:null},ti===null?Ka.memoizedState=ti=t:ti=ti.next=t}return ti}function ex(t,e){return typeof e=="function"?e(t):e}function R3(t){var e=dc(),n=e.queue;if(n===null)throw Error(Et(311));n.lastRenderedReducer=t;var a=$r,r=a.baseQueue,i=n.pending;if(i!==null){if(r!==null){var o=r.next;r.next=i.next,i.next=o}a.baseQueue=r=i,n.pending=null}if(r!==null){i=r.next,a=a.baseState;var s=o=null,l=null,u=i;do{var d=u.lane;if((ig&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),a=u.hasEagerState?u.eagerState:t(a,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=p,o=a):l=l.next=p,Ka.lanes|=d,og|=d}u=u.next}while(u!==null&&u!==i);l===null?o=a:l.next=s,Vc(a,e.memoizedState)||(Uo=!0),e.memoizedState=a,e.baseState=o,e.baseQueue=l,n.lastRenderedState=a}if(t=n.interleaved,t!==null){r=t;do i=r.lane,Ka.lanes|=i,og|=i,r=r.next;while(r!==t)}else r===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function N3(t){var e=dc(),n=e.queue;if(n===null)throw Error(Et(311));n.lastRenderedReducer=t;var a=n.dispatch,r=n.pending,i=e.memoizedState;if(r!==null){n.pending=null;var o=r=r.next;do i=t(i,o.action),o=o.next;while(o!==r);Vc(i,e.memoizedState)||(Uo=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,a]}function Bre(){}function Ire(t,e){var n=Ka,a=dc(),r=e(),i=!Vc(a.memoizedState,r);if(i&&(a.memoizedState=r,Uo=!0),a=a.queue,i7(Sre.bind(null,n,a,t),[t]),a.getSnapshot!==e||i||ti!==null&&ti.memoizedState.tag&1){if(n.flags|=2048,tx(9,Qre.bind(null,n,a,r,e),void 0,null),ii===null)throw Error(Et(349));ig&30||Dre(n,e,r)}return r}function Dre(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Ka.updateQueue,e===null?(e={lastEffect:null,stores:null},Ka.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Qre(t,e,n,a){e.value=n,e.getSnapshot=a,Fre(e)&&Tre(t)}function Sre(t,e,n){return n(function(){Fre(e)&&Tre(t)})}function Fre(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Vc(t,n)}catch{return!0}}function Tre(t){var e=ud(t,1);e!==null&&Pc(e,t,1,-1)}function UH(t){var e=vl();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ex,lastRenderedState:t},e.queue=t,t=t.dispatch=xFe.bind(null,Ka,t),[e.memoizedState,t]}function tx(t,e,n,a){return t={tag:t,create:e,destroy:n,deps:a,next:null},e=Ka.updateQueue,e===null?(e={lastEffect:null,stores:null},Ka.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t)),t}function Lre(){return dc().memoizedState}function EI(t,e,n,a){var r=vl();Ka.flags|=t,r.memoizedState=tx(1|e,n,void 0,a===void 0?null:a)}function YS(t,e,n,a){var r=dc();a=a===void 0?null:a;var i=void 0;if($r!==null){var o=$r.memoizedState;if(i=o.destroy,a!==null&&n7(a,o.deps)){r.memoizedState=tx(e,n,i,a);return}}Ka.flags|=t,r.memoizedState=tx(1|e,n,i,a)}function HH(t,e){return EI(8390656,8,t,e)}function i7(t,e){return YS(2048,8,t,e)}function Rre(t,e){return YS(4,2,t,e)}function Nre(t,e){return YS(4,4,t,e)}function Mre(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function $re(t,e,n){return n=n!=null?n.concat([t]):null,YS(4,4,Mre.bind(null,e,t),n)}function o7(){}function Pre(t,e){var n=dc();e=e===void 0?null:e;var a=n.memoizedState;return a!==null&&e!==null&&n7(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function Ore(t,e){var n=dc();e=e===void 0?null:e;var a=n.memoizedState;return a!==null&&e!==null&&n7(e,a[1])?a[0]:(t=t(),n.memoizedState=[t,e],t)}function jre(t,e,n){return ig&21?(Vc(n,e)||(n=Hae(),Ka.lanes|=n,og|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Uo=!0),t.memoizedState=n)}function CFe(t,e){var n=sa;sa=n!==0&&4>n?n:4,t(!0);var a=L3.transition;L3.transition={};try{t(!1),e()}finally{sa=n,L3.transition=a}}function qre(){return dc().memoizedState}function _Fe(t,e,n){var a=Lp(t);if(n={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null},Gre(t))zre(e,n);else if(n=_re(t,e,n,a),n!==null){var r=go();Pc(n,t,a,r),Ure(n,e,a)}}function xFe(t,e,n){var a=Lp(t),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gre(t))zre(e,r);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,n);if(r.hasEagerState=!0,r.eagerState=s,Vc(s,o)){var l=e.interleaved;l===null?(r.next=r,VP(e)):(r.next=l.next,l.next=r),e.interleaved=r;return}}catch{}finally{}n=_re(t,e,r,a),n!==null&&(r=go(),Pc(n,t,a,r),Ure(n,e,a))}}function Gre(t){var e=t.alternate;return t===Ka||e!==null&&e===Ka}function zre(t,e){n_=iD=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Ure(t,e,n){if(n&4194240){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,MP(t,n)}}var oD={readContext:uc,useCallback:Qi,useContext:Qi,useEffect:Qi,useImperativeHandle:Qi,useInsertionEffect:Qi,useLayoutEffect:Qi,useMemo:Qi,useReducer:Qi,useRef:Qi,useState:Qi,useDebugValue:Qi,useDeferredValue:Qi,useTransition:Qi,useMutableSource:Qi,useSyncExternalStore:Qi,useId:Qi,unstable_isNewReconciler:!1},EFe={readContext:uc,useCallback:function(t,e){return vl().memoizedState=[t,e===void 0?null:e],t},useContext:uc,useEffect:HH,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,EI(4194308,4,Mre.bind(null,e,t),n)},useLayoutEffect:function(t,e){return EI(4194308,4,t,e)},useInsertionEffect:function(t,e){return EI(4,2,t,e)},useMemo:function(t,e){var n=vl();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var a=vl();return e=n!==void 0?n(e):e,a.memoizedState=a.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},a.queue=t,t=t.dispatch=_Fe.bind(null,Ka,t),[a.memoizedState,t]},useRef:function(t){var e=vl();return t={current:t},e.memoizedState=t},useState:UH,useDebugValue:o7,useDeferredValue:function(t){return vl().memoizedState=t},useTransition:function(){var t=UH(!1),e=t[0];return t=CFe.bind(null,t[1]),vl().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var a=Ka,r=vl();if(Ra){if(n===void 0)throw Error(Et(407));n=n()}else{if(n=e(),ii===null)throw Error(Et(349));ig&30||Dre(a,e,n)}r.memoizedState=n;var i={value:n,getSnapshot:e};return r.queue=i,HH(Sre.bind(null,a,i,t),[t]),a.flags|=2048,tx(9,Qre.bind(null,a,i,n,e),void 0,null),n},useId:function(){var t=vl(),e=ii.identifierPrefix;if(Ra){var n=Hu,a=Uu;n=(a&~(1<<32-$c(a)-1)).toString(32)+n,e=":"+e+"R"+n,n=X_++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=vFe++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},BFe={readContext:uc,useCallback:Pre,useContext:uc,useEffect:i7,useImperativeHandle:$re,useInsertionEffect:Rre,useLayoutEffect:Nre,useMemo:Ore,useReducer:R3,useRef:Lre,useState:function(){return R3(ex)},useDebugValue:o7,useDeferredValue:function(t){var e=dc();return jre(e,$r.memoizedState,t)},useTransition:function(){var t=R3(ex)[0],e=dc().memoizedState;return[t,e]},useMutableSource:Bre,useSyncExternalStore:Ire,useId:qre,unstable_isNewReconciler:!1},IFe={readContext:uc,useCallback:Pre,useContext:uc,useEffect:i7,useImperativeHandle:$re,useInsertionEffect:Rre,useLayoutEffect:Nre,useMemo:Ore,useReducer:N3,useRef:Lre,useState:function(){return N3(ex)},useDebugValue:o7,useDeferredValue:function(t){var e=dc();return $r===null?e.memoizedState=t:jre(e,$r.memoizedState,t)},useTransition:function(){var t=N3(ex)[0],e=dc().memoizedState;return[t,e]},useMutableSource:Bre,useSyncExternalStore:Ire,useId:qre,unstable_isNewReconciler:!1};function xc(t,e){if(t&&t.defaultProps){e=Va({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function tR(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:Va({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var KS={isMounted:function(t){return(t=t._reactInternals)?Rg(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var a=go(),r=Lp(t),i=nd(a,r);i.payload=e,n!=null&&(i.callback=n),e=Fp(t,i,r),e!==null&&(Pc(e,t,r,a),_I(e,t,r))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=go(),r=Lp(t),i=nd(a,r);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=Fp(t,i,r),e!==null&&(Pc(e,t,r,a),_I(e,t,r))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=go(),a=Lp(t),r=nd(n,a);r.tag=2,e!=null&&(r.callback=e),e=Fp(t,r,a),e!==null&&(Pc(e,t,a,n),_I(e,t,a))}};function WH(t,e,n,a,r,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,i,o):e.prototype&&e.prototype.isPureReactComponent?!W_(n,a)||!W_(r,i):!0}function Hre(t,e,n){var a=!1,r=Gp,i=e.contextType;return typeof i=="object"&&i!==null?i=uc(i):(r=Yo(e)?ag:Ui.current,a=e.contextTypes,i=(a=a!=null)?Ww(t,r):Gp),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=KS,t.stateNode=e,e._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=i),e}function YH(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&KS.enqueueReplaceState(e,e.state,null)}function nR(t,e,n,a){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs={},JP(t);var i=e.contextType;typeof i=="object"&&i!==null?r.context=uc(i):(i=Yo(e)?ag:Ui.current,r.context=Ww(t,i)),r.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(tR(t,e,i,n),r.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(e=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),e!==r.state&&KS.enqueueReplaceState(r,r.state,null),aD(t,n,r,a),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308)}function Vw(t,e){try{var n="",a=e;do n+=n4e(a),a=a.return;while(a);var r=n}catch(i){r=`
50
50
  Error generating stack: `+i.message+`
51
- `+i.stack}return{value:t,source:e,stack:r,digest:null}}function M3(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function aR(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var DFe=typeof WeakMap=="function"?WeakMap:Map;function Wre(t,e,n){n=nd(-1,n),n.tag=3,n.payload={element:null};var a=e.value;return n.callback=function(){cD||(cD=!0,AR=a),aR(t,e)},n}function Yre(t,e,n){n=nd(-1,n),n.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var r=e.value;n.payload=function(){return a(r)},n.callback=function(){aR(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){aR(t,e),typeof a!="function"&&(Tp===null?Tp=new Set([this]):Tp.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function KH(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new DFe;var r=new Set;a.set(e,r)}else r=a.get(e),r===void 0&&(r=new Set,a.set(e,r));r.has(n)||(r.add(n),t=GFe.bind(null,t,e,n),e.then(t,t))}function ZH(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function VH(t,e,n,a,r){return t.mode&1?(t.flags|=65536,t.lanes=r,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=nd(-1,1),e.tag=2,Fp(n,e,1))),n.lanes|=1),t)}var QFe=Dd.ReactCurrentOwner,Uo=!1;function ao(t,e,n,a){e.child=t===null?Cre(e,null,n,a):Kw(e,t.child,n,a)}function JH(t,e,n,a,r){n=n.render;var i=e.ref;return Kf(e,r),a=a7(t,e,n,a,i,r),n=r7(),t!==null&&!Uo?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,dd(t,e,r)):(Ra&&n&&UP(e),e.flags|=1,ao(t,e,a,r),e.child)}function XH(t,e,n,a,r){if(t===null){var i=n.type;return typeof i=="function"&&!m7(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=i,Kre(t,e,i,a,r)):(t=QI(n.type,null,a,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&r)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:W_,n(o,a)&&t.ref===e.ref)return dd(t,e,r)}return e.flags|=1,t=Rp(i,a),t.ref=e.ref,t.return=e,e.child=t}function Kre(t,e,n,a,r){if(t!==null){var i=t.memoizedProps;if(W_(i,a)&&t.ref===e.ref)if(Uo=!1,e.pendingProps=a=i,(t.lanes&r)!==0)t.flags&131072&&(Uo=!0);else return e.lanes=t.lanes,dd(t,e,r)}return rR(t,e,n,a,r)}function Zre(t,e,n){var a=e.pendingProps,r=a.children,i=t!==null?t.memoizedState:null;if(a.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ya(Ef,us),us|=n;else{if(!(n&1073741824))return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ya(Ef,us),us|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=i!==null?i.baseLanes:n,ya(Ef,us),us|=a}else i!==null?(a=i.baseLanes|n,e.memoizedState=null):a=n,ya(Ef,us),us|=a;return ao(t,e,r,n),e.child}function Vre(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function rR(t,e,n,a,r){var i=Yo(n)?ag:Ui.current;return i=Ww(e,i),Kf(e,r),n=a7(t,e,n,a,i,r),a=r7(),t!==null&&!Uo?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,dd(t,e,r)):(Ra&&a&&UP(e),e.flags|=1,ao(t,e,n,r),e.child)}function eW(t,e,n,a,r){if(Yo(n)){var i=!0;J2(e)}else i=!1;if(Kf(e,r),e.stateNode===null)BI(t,e),Hre(e,n,a),nR(e,n,a,r),a=!0;else if(t===null){var o=e.stateNode,s=e.memoizedProps;o.props=s;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=uc(u):(u=Yo(n)?ag:Ui.current,u=Ww(e,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==a||l!==u)&&YH(e,o,a,u),np=!1;var A=e.memoizedState;o.state=A,aD(e,a,o,r),l=e.memoizedState,s!==a||A!==l||Wo.current||np?(typeof d=="function"&&(tR(e,n,d,a),l=e.memoizedState),(s=np||WH(e,n,s,a,A,l,u))?(p||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"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=l),o.props=a,o.state=l,o.context=u,a=s):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{o=e.stateNode,xre(t,e),s=e.memoizedProps,u=e.type===e.elementType?s:xc(e.type,s),o.props=u,p=e.pendingProps,A=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=uc(l):(l=Yo(n)?ag:Ui.current,l=Ww(e,l));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==p||A!==l)&&YH(e,o,a,l),np=!1,A=e.memoizedState,o.state=A,aD(e,a,o,r);var g=e.memoizedState;s!==p||A!==g||Wo.current||np?(typeof m=="function"&&(tR(e,n,m,a),g=e.memoizedState),(u=np||WH(e,n,u,a,A,g,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,g,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,g,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=g),o.props=a,o.state=g,o.context=l,a=u):(typeof o.componentDidUpdate!="function"||s===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),a=!1)}return iR(t,e,n,a,i,r)}function iR(t,e,n,a,r,i){Vre(t,e);var o=(e.flags&128)!==0;if(!a&&!o)return r&&PH(e,n,!1),dd(t,e,i);a=e.stateNode,QFe.current=e;var s=o&&typeof n.getDerivedStateFromError!="function"?null:a.render();return e.flags|=1,t!==null&&o?(e.child=Kw(e,t.child,null,i),e.child=Kw(e,null,s,i)):ao(t,e,s,i),e.memoizedState=a.state,r&&PH(e,n,!0),e.child}function Jre(t){var e=t.stateNode;e.pendingContext?$H(t,e.pendingContext,e.pendingContext!==e.context):e.context&&$H(t,e.context,!1),XP(t,e.containerInfo)}function tW(t,e,n,a,r){return Yw(),WP(r),e.flags|=256,ao(t,e,n,a),e.child}var oR={dehydrated:null,treeContext:null,retryLane:0};function sR(t){return{baseLanes:t,cachePool:null,transitions:null}}function Xre(t,e,n){var a=e.pendingProps,r=Ha.current,i=!1,o=(e.flags&128)!==0,s;if((s=o)||(s=t!==null&&t.memoizedState===null?!1:(r&2)!==0),s?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(r|=1),ya(Ha,r&1),t===null)return X6(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=a.children,t=a.fallback,i?(a=e.mode,i=e.child,o={mode:"hidden",children:o},!(a&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=JS(o,a,0,null),t=Wm(t,a,n,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=sR(n),e.memoizedState=oR,t):s7(e,o));if(r=t.memoizedState,r!==null&&(s=r.dehydrated,s!==null))return SFe(t,e,o,a,s,r,n);if(i){i=a.fallback,o=e.mode,r=t.child,s=r.sibling;var l={mode:"hidden",children:a.children};return!(o&1)&&e.child!==r?(a=e.child,a.childLanes=0,a.pendingProps=l,e.deletions=null):(a=Rp(r,l),a.subtreeFlags=r.subtreeFlags&14680064),s!==null?i=Rp(s,i):(i=Wm(i,o,n,null),i.flags|=2),i.return=e,a.return=e,a.sibling=i,e.child=a,a=i,i=e.child,o=t.child.memoizedState,o=o===null?sR(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=t.childLanes&~n,e.memoizedState=oR,a}return i=t.child,t=i.sibling,a=Rp(i,{mode:"visible",children:a.children}),!(e.mode&1)&&(a.lanes=n),a.return=e,a.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=a,e.memoizedState=null,a}function s7(t,e){return e=JS({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function nB(t,e,n,a){return a!==null&&WP(a),Kw(e,t.child,null,n),t=s7(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function SFe(t,e,n,a,r,i,o){if(n)return e.flags&256?(e.flags&=-257,a=M3(Error(Et(422))),nB(t,e,o,a)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=a.fallback,r=e.mode,a=JS({mode:"visible",children:a.children},r,0,null),i=Wm(i,r,o,null),i.flags|=2,a.return=e,i.return=e,a.sibling=i,e.child=a,e.mode&1&&Kw(e,t.child,null,o),e.child.memoizedState=sR(o),e.memoizedState=oR,i);if(!(e.mode&1))return nB(t,e,o,null);if(r.data==="$!"){if(a=r.nextSibling&&r.nextSibling.dataset,a)var s=a.dgst;return a=s,i=Error(Et(419)),a=M3(i,a,void 0),nB(t,e,o,a)}if(s=(o&t.childLanes)!==0,Uo||s){if(a=ii,a!==null){switch(o&-o){case 4:r=2;break;case 16:r=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:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(a.suspendedLanes|o)?0:r,r!==0&&r!==i.retryLane&&(i.retryLane=r,ud(t,r),Pc(a,t,r,-1))}return A7(),a=M3(Error(Et(421))),nB(t,e,o,a)}return r.data==="$?"?(e.flags|=128,e.child=t.child,e=zFe.bind(null,t),r._reactRetry=e,null):(t=i.treeContext,As=Sp(r.nextSibling),gs=e,Ra=!0,Qc=null,t!==null&&(Ks[Zs++]=Uu,Ks[Zs++]=Hu,Ks[Zs++]=rg,Uu=t.id,Hu=t.overflow,rg=e),e=s7(e,a.children),e.flags|=4096,e)}function nW(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),eR(t.return,e,n)}function $3(t,e,n,a,r){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=r)}function eie(t,e,n){var a=e.pendingProps,r=a.revealOrder,i=a.tail;if(ao(t,e,a.children,n),a=Ha.current,a&2)a=a&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&nW(t,n,e);else if(t.tag===19)nW(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}if(ya(Ha,a),!(e.mode&1))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&rD(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),$3(e,!1,r,n,i);break;case"backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&rD(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}$3(e,!0,n,null,i);break;case"together":$3(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function BI(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function dd(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),og|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(Et(153));if(e.child!==null){for(t=e.child,n=Rp(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Rp(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function FFe(t,e,n){switch(e.tag){case 3:Jre(e),Yw();break;case 5:Ere(e);break;case 1:Yo(e.type)&&J2(e);break;case 4:XP(e,e.stateNode.containerInfo);break;case 10:var a=e.type._context,r=e.memoizedProps.value;ya(tD,a._currentValue),a._currentValue=r;break;case 13:if(a=e.memoizedState,a!==null)return a.dehydrated!==null?(ya(Ha,Ha.current&1),e.flags|=128,null):n&e.child.childLanes?Xre(t,e,n):(ya(Ha,Ha.current&1),t=dd(t,e,n),t!==null?t.sibling:null);ya(Ha,Ha.current&1);break;case 19:if(a=(n&e.childLanes)!==0,t.flags&128){if(a)return eie(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ya(Ha,Ha.current),a)break;return null;case 22:case 23:return e.lanes=0,Zre(t,e,n)}return dd(t,e,n)}var tie,cR,nie,aie;tie=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};cR=function(){};nie=function(t,e,n,a){var r=t.memoizedProps;if(r!==a){t=e.stateNode,Tm(Gl.current);var i=null;switch(n){case"input":r=Q6(t,r),a=Q6(t,a),i=[];break;case"select":r=Va({},r,{value:void 0}),a=Va({},a,{value:void 0}),i=[];break;case"textarea":r=T6(t,r),a=T6(t,a),i=[];break;default:typeof r.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=Z2)}R6(n,a);var o;n=null;for(u in r)if(!a.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var s=r[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(O_.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in a){var l=a[u];if(s=r!=null?r[u]:void 0,a.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(O_.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ca("scroll",t),i||s===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(e.updateQueue=u)&&(e.flags|=4)}};aie=function(t,e,n,a){n!==a&&(e.flags|=4)};function Tv(t,e){if(!Ra)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Si(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&14680064,a|=r.flags&14680064,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function TFe(t,e,n){var a=e.pendingProps;switch(HP(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Si(e),null;case 1:return Yo(e.type)&&V2(),Si(e),null;case 3:return a=e.stateNode,Zw(),Ba(Wo),Ba(Ui),t7(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(eB(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Qc!==null&&(hR(Qc),Qc=null))),cR(t,e),Si(e),null;case 5:e7(e);var r=Tm(J_.current);if(n=e.type,t!==null&&e.stateNode!=null)nie(t,e,n,a,r),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!a){if(e.stateNode===null)throw Error(Et(166));return Si(e),null}if(t=Tm(Gl.current),eB(e)){a=e.stateNode,n=e.type;var i=e.memoizedProps;switch(a[Fl]=e,a[Z_]=i,t=(e.mode&1)!==0,n){case"dialog":Ca("cancel",a),Ca("close",a);break;case"iframe":case"object":case"embed":Ca("load",a);break;case"video":case"audio":for(r=0;r<fC.length;r++)Ca(fC[r],a);break;case"source":Ca("error",a);break;case"img":case"image":case"link":Ca("error",a),Ca("load",a);break;case"details":Ca("toggle",a);break;case"input":dH(a,i),Ca("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!i.multiple},Ca("invalid",a);break;case"textarea":AH(a,i),Ca("invalid",a)}R6(n,i),r=null;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];o==="children"?typeof s=="string"?a.textContent!==s&&(i.suppressHydrationWarning!==!0&&XE(a.textContent,s,t),r=["children",s]):typeof s=="number"&&a.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&XE(a.textContent,s,t),r=["children",""+s]):O_.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Ca("scroll",a)}switch(n){case"input":UE(a),pH(a,i,!0);break;case"textarea":UE(a),mH(a);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(a.onclick=Z2)}a=r,e.updateQueue=a,a!==null&&(e.flags|=4)}else{o=r.nodeType===9?r:r.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Sae(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=o.createElement(n,{is:a.is}):(t=o.createElement(n),n==="select"&&(o=t,a.multiple?o.multiple=!0:a.size&&(o.size=a.size))):t=o.createElementNS(t,n),t[Fl]=e,t[Z_]=a,tie(t,e,!1,!1),e.stateNode=t;e:{switch(o=N6(n,a),n){case"dialog":Ca("cancel",t),Ca("close",t),r=a;break;case"iframe":case"object":case"embed":Ca("load",t),r=a;break;case"video":case"audio":for(r=0;r<fC.length;r++)Ca(fC[r],t);r=a;break;case"source":Ca("error",t),r=a;break;case"img":case"image":case"link":Ca("error",t),Ca("load",t),r=a;break;case"details":Ca("toggle",t),r=a;break;case"input":dH(t,a),r=Q6(t,a),Ca("invalid",t);break;case"option":r=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},r=Va({},a,{value:void 0}),Ca("invalid",t);break;case"textarea":AH(t,a),r=T6(t,a),Ca("invalid",t);break;default:r=a}R6(n,r),s=r;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?Lae(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Fae(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&j_(t,l):typeof l=="number"&&j_(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(O_.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Ca("scroll",t):l!=null&&SP(t,i,l,o))}switch(n){case"input":UE(t),pH(t,a,!1);break;case"textarea":UE(t),mH(t);break;case"option":a.value!=null&&t.setAttribute("value",""+qp(a.value));break;case"select":t.multiple=!!a.multiple,i=a.value,i!=null?Uf(t,!!a.multiple,i,!1):a.defaultValue!=null&&Uf(t,!!a.multiple,a.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=Z2)}switch(n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Si(e),null;case 6:if(t&&e.stateNode!=null)aie(t,e,t.memoizedProps,a);else{if(typeof a!="string"&&e.stateNode===null)throw Error(Et(166));if(n=Tm(J_.current),Tm(Gl.current),eB(e)){if(a=e.stateNode,n=e.memoizedProps,a[Fl]=e,(i=a.nodeValue!==n)&&(t=gs,t!==null))switch(t.tag){case 3:XE(a.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&XE(a.nodeValue,n,(t.mode&1)!==0)}i&&(e.flags|=4)}else a=(n.nodeType===9?n:n.ownerDocument).createTextNode(a),a[Fl]=e,e.stateNode=a}return Si(e),null;case 13:if(Ba(Ha),a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Ra&&As!==null&&e.mode&1&&!(e.flags&128))kre(),Yw(),e.flags|=98560,i=!1;else if(i=eB(e),a!==null&&a.dehydrated!==null){if(t===null){if(!i)throw Error(Et(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Et(317));i[Fl]=e}else Yw(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Si(e),i=!1}else Qc!==null&&(hR(Qc),Qc=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(e.child.flags|=8192,e.mode&1&&(t===null||Ha.current&1?zr===0&&(zr=3):A7())),e.updateQueue!==null&&(e.flags|=4),Si(e),null);case 4:return Zw(),cR(t,e),t===null&&Y_(e.stateNode.containerInfo),Si(e),null;case 10:return ZP(e.type._context),Si(e),null;case 17:return Yo(e.type)&&V2(),Si(e),null;case 19:if(Ba(Ha),i=e.memoizedState,i===null)return Si(e),null;if(a=(e.flags&128)!==0,o=i.rendering,o===null)if(a)Tv(i,!1);else{if(zr!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=rD(t),o!==null){for(e.flags|=128,Tv(i,!1),a=o.updateQueue,a!==null&&(e.updateQueue=a,e.flags|=4),e.subtreeFlags=0,a=n,n=e.child;n!==null;)i=n,t=a,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,t=o.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return ya(Ha,Ha.current&1|2),e.child}t=t.sibling}i.tail!==null&&gr()>Jw&&(e.flags|=128,a=!0,Tv(i,!1),e.lanes=4194304)}else{if(!a)if(t=rD(o),t!==null){if(e.flags|=128,a=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Tv(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ra)return Si(e),null}else 2*gr()-i.renderingStartTime>Jw&&n!==1073741824&&(e.flags|=128,a=!0,Tv(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(n=i.last,n!==null?n.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=gr(),e.sibling=null,n=Ha.current,ya(Ha,a?n&1|2:n&1),e):(Si(e),null);case 22:case 23:return p7(),a=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(e.flags|=8192),a&&e.mode&1?us&1073741824&&(Si(e),e.subtreeFlags&6&&(e.flags|=8192)):Si(e),null;case 24:return null;case 25:return null}throw Error(Et(156,e.tag))}function LFe(t,e){switch(HP(e),e.tag){case 1:return Yo(e.type)&&V2(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Zw(),Ba(Wo),Ba(Ui),t7(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return e7(e),null;case 13:if(Ba(Ha),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Et(340));Yw()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ba(Ha),null;case 4:return Zw(),null;case 10:return ZP(e.type._context),null;case 22:case 23:return p7(),null;case 24:return null;default:return null}}var aB=!1,ji=!1,RFe=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function xf(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(a){rr(t,e,a)}else n.current=null}function lR(t,e,n){try{n()}catch(a){rr(t,e,a)}}var aW=!1;function NFe(t,e){if(H6=W2,t=cre(),zP(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,d=0,p=t,A=null;t:for(;;){for(var m;p!==n||r!==0&&p.nodeType!==3||(s=o+r),p!==i||a!==0&&p.nodeType!==3||(l=o+a),p.nodeType===3&&(o+=p.nodeValue.length),(m=p.firstChild)!==null;)A=p,p=m;for(;;){if(p===t)break t;if(A===n&&++u===r&&(s=o),A===i&&++d===a&&(l=o),(m=p.nextSibling)!==null)break;p=A,A=p.parentNode}p=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(W6={focusedElem:t,selectionRange:n},W2=!1,Pt=e;Pt!==null;)if(e=Pt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Pt=t;else for(;Pt!==null;){e=Pt;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var h=g.memoizedProps,f=g.memoizedState,b=e.stateNode,w=b.getSnapshotBeforeUpdate(e.elementType===e.type?h:xc(e.type,h),f);b.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Et(163))}}catch(v){rr(e,e.return,v)}if(t=e.sibling,t!==null){t.return=e.return,Pt=t;break}Pt=e.return}return g=aW,aW=!1,g}function a_(t,e,n){var a=e.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var r=a=a.next;do{if((r.tag&t)===t){var i=r.destroy;r.destroy=void 0,i!==void 0&&lR(e,n,i)}r=r.next}while(r!==a)}}function ZS(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var a=n.create;n.destroy=a()}n=n.next}while(n!==e)}}function uR(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function rie(t){var e=t.alternate;e!==null&&(t.alternate=null,rie(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Fl],delete e[Z_],delete e[Z6],delete e[bFe],delete e[yFe])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function iie(t){return t.tag===5||t.tag===3||t.tag===4}function rW(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||iie(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function dR(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Z2));else if(a!==4&&(t=t.child,t!==null))for(dR(t,e,n),t=t.sibling;t!==null;)dR(t,e,n),t=t.sibling}function pR(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(pR(t,e,n),t=t.sibling;t!==null;)pR(t,e,n),t=t.sibling}var bi=null,Ic=!1;function Hd(t,e,n){for(n=n.child;n!==null;)oie(t,e,n),n=n.sibling}function oie(t,e,n){if(ql&&typeof ql.onCommitFiberUnmount=="function")try{ql.onCommitFiberUnmount(qS,n)}catch{}switch(n.tag){case 5:ji||xf(n,e);case 6:var a=bi,r=Ic;bi=null,Hd(t,e,n),bi=a,Ic=r,bi!==null&&(Ic?(t=bi,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):bi.removeChild(n.stateNode));break;case 18:bi!==null&&(Ic?(t=bi,n=n.stateNode,t.nodeType===8?S3(t.parentNode,n):t.nodeType===1&&S3(t,n),U_(t)):S3(bi,n.stateNode));break;case 4:a=bi,r=Ic,bi=n.stateNode.containerInfo,Ic=!0,Hd(t,e,n),bi=a,Ic=r;break;case 0:case 11:case 14:case 15:if(!ji&&(a=n.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){r=a=a.next;do{var i=r,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&lR(n,e,o),r=r.next}while(r!==a)}Hd(t,e,n);break;case 1:if(!ji&&(xf(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=n.memoizedProps,a.state=n.memoizedState,a.componentWillUnmount()}catch(s){rr(n,e,s)}Hd(t,e,n);break;case 21:Hd(t,e,n);break;case 22:n.mode&1?(ji=(a=ji)||n.memoizedState!==null,Hd(t,e,n),ji=a):Hd(t,e,n);break;default:Hd(t,e,n)}}function iW(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new RFe),e.forEach(function(a){var r=UFe.bind(null,t,a);n.has(a)||(n.add(a),a.then(r,r))})}}function kc(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a];try{var i=t,o=e,s=o;e:for(;s!==null;){switch(s.tag){case 5:bi=s.stateNode,Ic=!1;break e;case 3:bi=s.stateNode.containerInfo,Ic=!0;break e;case 4:bi=s.stateNode.containerInfo,Ic=!0;break e}s=s.return}if(bi===null)throw Error(Et(160));oie(i,o,r),bi=null,Ic=!1;var l=r.alternate;l!==null&&(l.return=null),r.return=null}catch(u){rr(r,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)sie(e,t),e=e.sibling}function sie(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(kc(e,t),ll(t),a&4){try{a_(3,t,t.return),ZS(3,t)}catch(h){rr(t,t.return,h)}try{a_(5,t,t.return)}catch(h){rr(t,t.return,h)}}break;case 1:kc(e,t),ll(t),a&512&&n!==null&&xf(n,n.return);break;case 5:if(kc(e,t),ll(t),a&512&&n!==null&&xf(n,n.return),t.flags&32){var r=t.stateNode;try{j_(r,"")}catch(h){rr(t,t.return,h)}}if(a&4&&(r=t.stateNode,r!=null)){var i=t.memoizedProps,o=n!==null?n.memoizedProps:i,s=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&Dae(r,i),N6(s,o);var u=N6(s,i);for(o=0;o<l.length;o+=2){var d=l[o],p=l[o+1];d==="style"?Lae(r,p):d==="dangerouslySetInnerHTML"?Fae(r,p):d==="children"?j_(r,p):SP(r,d,p,u)}switch(s){case"input":S6(r,i);break;case"textarea":Qae(r,i);break;case"select":var A=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Uf(r,!!i.multiple,m,!1):A!==!!i.multiple&&(i.defaultValue!=null?Uf(r,!!i.multiple,i.defaultValue,!0):Uf(r,!!i.multiple,i.multiple?[]:"",!1))}r[Z_]=i}catch(h){rr(t,t.return,h)}}break;case 6:if(kc(e,t),ll(t),a&4){if(t.stateNode===null)throw Error(Et(162));r=t.stateNode,i=t.memoizedProps;try{r.nodeValue=i}catch(h){rr(t,t.return,h)}}break;case 3:if(kc(e,t),ll(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{U_(e.containerInfo)}catch(h){rr(t,t.return,h)}break;case 4:kc(e,t),ll(t);break;case 13:kc(e,t),ll(t),r=t.child,r.flags&8192&&(i=r.memoizedState!==null,r.stateNode.isHidden=i,!i||r.alternate!==null&&r.alternate.memoizedState!==null||(u7=gr())),a&4&&iW(t);break;case 22:if(d=n!==null&&n.memoizedState!==null,t.mode&1?(ji=(u=ji)||d,kc(e,t),ji=u):kc(e,t),ll(t),a&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!d&&t.mode&1)for(Pt=t,d=t.child;d!==null;){for(p=Pt=d;Pt!==null;){switch(A=Pt,m=A.child,A.tag){case 0:case 11:case 14:case 15:a_(4,A,A.return);break;case 1:xf(A,A.return);var g=A.stateNode;if(typeof g.componentWillUnmount=="function"){a=A,n=A.return;try{e=a,g.props=e.memoizedProps,g.state=e.memoizedState,g.componentWillUnmount()}catch(h){rr(a,n,h)}}break;case 5:xf(A,A.return);break;case 22:if(A.memoizedState!==null){sW(p);continue}}m!==null?(m.return=A,Pt=m):sW(p)}d=d.sibling}e:for(d=null,p=t;;){if(p.tag===5){if(d===null){d=p;try{r=p.stateNode,u?(i=r.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=p.stateNode,l=p.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=Tae("display",o))}catch(h){rr(t,t.return,h)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(h){rr(t,t.return,h)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===t)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:kc(e,t),ll(t),a&4&&iW(t);break;case 21:break;default:kc(e,t),ll(t)}}function ll(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(iie(n)){var a=n;break e}n=n.return}throw Error(Et(160))}switch(a.tag){case 5:var r=a.stateNode;a.flags&32&&(j_(r,""),a.flags&=-33);var i=rW(t);pR(t,i,r);break;case 3:case 4:var o=a.stateNode.containerInfo,s=rW(t);dR(t,s,o);break;default:throw Error(Et(161))}}catch(l){rr(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function MFe(t,e,n){Pt=t,cie(t)}function cie(t,e,n){for(var a=(t.mode&1)!==0;Pt!==null;){var r=Pt,i=r.child;if(r.tag===22&&a){var o=r.memoizedState!==null||aB;if(!o){var s=r.alternate,l=s!==null&&s.memoizedState!==null||ji;s=aB;var u=ji;if(aB=o,(ji=l)&&!u)for(Pt=r;Pt!==null;)o=Pt,l=o.child,o.tag===22&&o.memoizedState!==null?cW(r):l!==null?(l.return=o,Pt=l):cW(r);for(;i!==null;)Pt=i,cie(i),i=i.sibling;Pt=r,aB=s,ji=u}oW(t)}else r.subtreeFlags&8772&&i!==null?(i.return=r,Pt=i):oW(t)}}function oW(t){for(;Pt!==null;){var e=Pt;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:ji||ZS(5,e);break;case 1:var a=e.stateNode;if(e.flags&4&&!ji)if(n===null)a.componentDidMount();else{var r=e.elementType===e.type?n.memoizedProps:xc(e.type,n.memoizedProps);a.componentDidUpdate(r,n.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&zH(e,i,a);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}zH(e,o,n)}break;case 5:var s=e.stateNode;if(n===null&&e.flags&4){n=s;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&U_(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Et(163))}ji||e.flags&512&&uR(e)}catch(A){rr(e,e.return,A)}}if(e===t){Pt=null;break}if(n=e.sibling,n!==null){n.return=e.return,Pt=n;break}Pt=e.return}}function sW(t){for(;Pt!==null;){var e=Pt;if(e===t){Pt=null;break}var n=e.sibling;if(n!==null){n.return=e.return,Pt=n;break}Pt=e.return}}function cW(t){for(;Pt!==null;){var e=Pt;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{ZS(4,e)}catch(l){rr(e,n,l)}break;case 1:var a=e.stateNode;if(typeof a.componentDidMount=="function"){var r=e.return;try{a.componentDidMount()}catch(l){rr(e,r,l)}}var i=e.return;try{uR(e)}catch(l){rr(e,i,l)}break;case 5:var o=e.return;try{uR(e)}catch(l){rr(e,o,l)}}}catch(l){rr(e,e.return,l)}if(e===t){Pt=null;break}var s=e.sibling;if(s!==null){s.return=e.return,Pt=s;break}Pt=e.return}}var $Fe=Math.ceil,sD=Dd.ReactCurrentDispatcher,c7=Dd.ReactCurrentOwner,cc=Dd.ReactCurrentBatchConfig,qn=0,ii=null,_r=null,vi=0,us=0,Ef=mA(0),zr=0,nx=null,og=0,VS=0,l7=0,r_=null,Po=null,u7=0,Jw=1/0,Lu=null,cD=!1,AR=null,Tp=null,rB=!1,fp=null,lD=0,i_=0,mR=null,II=-1,DI=0;function go(){return qn&6?gr():II!==-1?II:II=gr()}function Lp(t){return t.mode&1?qn&2&&vi!==0?vi&-vi:kFe.transition!==null?(DI===0&&(DI=Hae()),DI):(t=sa,t!==0||(t=window.event,t=t===void 0?16:Xae(t.type)),t):1}function Pc(t,e,n,a){if(50<i_)throw i_=0,mR=null,Error(Et(185));v1(t,n,a),(!(qn&2)||t!==ii)&&(t===ii&&(!(qn&2)&&(VS|=n),zr===4&&Ap(t,vi)),Ko(t,a),n===1&&qn===0&&!(e.mode&1)&&(Jw=gr()+500,WS&&gA()))}function Ko(t,e){var n=t.callbackNode;k4e(t,e);var a=H2(t,t===ii?vi:0);if(a===0)n!==null&&fH(n),t.callbackNode=null,t.callbackPriority=0;else if(e=a&-a,t.callbackPriority!==e){if(n!=null&&fH(n),e===1)t.tag===0?wFe(lW.bind(null,t)):bre(lW.bind(null,t)),hFe(function(){!(qn&6)&&gA()}),n=null;else{switch(Wae(a)){case 1:n=NP;break;case 4:n=zae;break;case 16:n=U2;break;case 536870912:n=Uae;break;default:n=U2}n=hie(n,lie.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function lie(t,e){if(II=-1,DI=0,qn&6)throw Error(Et(327));var n=t.callbackNode;if(Zf()&&t.callbackNode!==n)return null;var a=H2(t,t===ii?vi:0);if(a===0)return null;if(a&30||a&t.expiredLanes||e)e=uD(t,a);else{e=a;var r=qn;qn|=2;var i=die();(ii!==t||vi!==e)&&(Lu=null,Jw=gr()+500,Hm(t,e));do try{jFe();break}catch(s){uie(t,s)}while(!0);KP(),sD.current=i,qn=r,_r!==null?e=0:(ii=null,vi=0,e=zr)}if(e!==0){if(e===2&&(r=j6(t),r!==0&&(a=r,e=gR(t,r))),e===1)throw n=nx,Hm(t,0),Ap(t,a),Ko(t,gr()),n;if(e===6)Ap(t,a);else{if(r=t.current.alternate,!(a&30)&&!PFe(r)&&(e=uD(t,a),e===2&&(i=j6(t),i!==0&&(a=i,e=gR(t,i))),e===1))throw n=nx,Hm(t,0),Ap(t,a),Ko(t,gr()),n;switch(t.finishedWork=r,t.finishedLanes=a,e){case 0:case 1:throw Error(Et(345));case 2:JA(t,Po,Lu);break;case 3:if(Ap(t,a),(a&130023424)===a&&(e=u7+500-gr(),10<e)){if(H2(t,0)!==0)break;if(r=t.suspendedLanes,(r&a)!==a){go(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=K6(JA.bind(null,t,Po,Lu),e);break}JA(t,Po,Lu);break;case 4:if(Ap(t,a),(a&4194240)===a)break;for(e=t.eventTimes,r=-1;0<a;){var o=31-$c(a);i=1<<o,o=e[o],o>r&&(r=o),a&=~i}if(a=r,a=gr()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*$Fe(a/1960))-a,10<a){t.timeoutHandle=K6(JA.bind(null,t,Po,Lu),a);break}JA(t,Po,Lu);break;case 5:JA(t,Po,Lu);break;default:throw Error(Et(329))}}}return Ko(t,gr()),t.callbackNode===n?lie.bind(null,t):null}function gR(t,e){var n=r_;return t.current.memoizedState.isDehydrated&&(Hm(t,e).flags|=256),t=uD(t,e),t!==2&&(e=Po,Po=n,e!==null&&hR(e)),t}function hR(t){Po===null?Po=t:Po.push.apply(Po,t)}function PFe(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var a=0;a<n.length;a++){var r=n[a],i=r.getSnapshot;r=r.value;try{if(!Vc(i(),r))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ap(t,e){for(e&=~l7,e&=~VS,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-$c(e),a=1<<n;t[n]=-1,e&=~a}}function lW(t){if(qn&6)throw Error(Et(327));Zf();var e=H2(t,0);if(!(e&1))return Ko(t,gr()),null;var n=uD(t,e);if(t.tag!==0&&n===2){var a=j6(t);a!==0&&(e=a,n=gR(t,a))}if(n===1)throw n=nx,Hm(t,0),Ap(t,e),Ko(t,gr()),n;if(n===6)throw Error(Et(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,JA(t,Po,Lu),Ko(t,gr()),null}function d7(t,e){var n=qn;qn|=1;try{return t(e)}finally{qn=n,qn===0&&(Jw=gr()+500,WS&&gA())}}function sg(t){fp!==null&&fp.tag===0&&!(qn&6)&&Zf();var e=qn;qn|=1;var n=cc.transition,a=sa;try{if(cc.transition=null,sa=1,t)return t()}finally{sa=a,cc.transition=n,qn=e,!(qn&6)&&gA()}}function p7(){us=Ef.current,Ba(Ef)}function Hm(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,gFe(n)),_r!==null)for(n=_r.return;n!==null;){var a=n;switch(HP(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&V2();break;case 3:Zw(),Ba(Wo),Ba(Ui),t7();break;case 5:e7(a);break;case 4:Zw();break;case 13:Ba(Ha);break;case 19:Ba(Ha);break;case 10:ZP(a.type._context);break;case 22:case 23:p7()}n=n.return}if(ii=t,_r=t=Rp(t.current,null),vi=us=e,zr=0,nx=null,l7=VS=og=0,Po=r_=null,Fm!==null){for(e=0;e<Fm.length;e++)if(n=Fm[e],a=n.interleaved,a!==null){n.interleaved=null;var r=a.next,i=n.pending;if(i!==null){var o=i.next;i.next=r,a.next=o}n.pending=a}Fm=null}return t}function uie(t,e){do{var n=_r;try{if(KP(),xI.current=oD,iD){for(var a=Ka.memoizedState;a!==null;){var r=a.queue;r!==null&&(r.pending=null),a=a.next}iD=!1}if(ig=0,ti=$r=Ka=null,n_=!1,X_=0,c7.current=null,n===null||n.return===null){zr=1,nx=e,_r=null;break}e:{var i=t,o=n.return,s=n,l=e;if(e=vi,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=s,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===15)){var A=d.alternate;A?(d.updateQueue=A.updateQueue,d.memoizedState=A.memoizedState,d.lanes=A.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=ZH(o);if(m!==null){m.flags&=-257,VH(m,o,s,i,e),m.mode&1&&KH(i,u,e),e=m,l=u;var g=e.updateQueue;if(g===null){var h=new Set;h.add(l),e.updateQueue=h}else g.add(l);break e}else{if(!(e&1)){KH(i,u,e),A7();break e}l=Error(Et(426))}}else if(Ra&&s.mode&1){var f=ZH(o);if(f!==null){!(f.flags&65536)&&(f.flags|=256),VH(f,o,s,i,e),WP(Vw(l,s));break e}}i=l=Vw(l,s),zr!==4&&(zr=2),r_===null?r_=[i]:r_.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var b=Wre(i,l,e);GH(i,b);break e;case 1:s=l;var w=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof w.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Tp===null||!Tp.has(y)))){i.flags|=65536,e&=-e,i.lanes|=e;var v=Yre(i,s,e);GH(i,v);break e}}i=i.return}while(i!==null)}Aie(n)}catch(_){e=_,_r===n&&n!==null&&(_r=n=n.return);continue}break}while(!0)}function die(){var t=sD.current;return sD.current=oD,t===null?oD:t}function A7(){(zr===0||zr===3||zr===2)&&(zr=4),ii===null||!(og&268435455)&&!(VS&268435455)||Ap(ii,vi)}function uD(t,e){var n=qn;qn|=2;var a=die();(ii!==t||vi!==e)&&(Lu=null,Hm(t,e));do try{OFe();break}catch(r){uie(t,r)}while(!0);if(KP(),qn=n,sD.current=a,_r!==null)throw Error(Et(261));return ii=null,vi=0,zr}function OFe(){for(;_r!==null;)pie(_r)}function jFe(){for(;_r!==null&&!p4e();)pie(_r)}function pie(t){var e=gie(t.alternate,t,us);t.memoizedProps=t.pendingProps,e===null?Aie(t):_r=e,c7.current=null}function Aie(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=LFe(n,e),n!==null){n.flags&=32767,_r=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{zr=6,_r=null;return}}else if(n=TFe(n,e,us),n!==null){_r=n;return}if(e=e.sibling,e!==null){_r=e;return}_r=e=t}while(e!==null);zr===0&&(zr=5)}function JA(t,e,n){var a=sa,r=cc.transition;try{cc.transition=null,sa=1,qFe(t,e,n,a)}finally{cc.transition=r,sa=a}return null}function qFe(t,e,n,a){do Zf();while(fp!==null);if(qn&6)throw Error(Et(327));n=t.finishedWork;var r=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(Et(177));t.callbackNode=null,t.callbackPriority=0;var i=n.lanes|n.childLanes;if(v4e(t,i),t===ii&&(_r=ii=null,vi=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||rB||(rB=!0,hie(U2,function(){return Zf(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=cc.transition,cc.transition=null;var o=sa;sa=1;var s=qn;qn|=4,c7.current=null,NFe(t,n),sie(n,t),cFe(W6),W2=!!H6,W6=H6=null,t.current=n,MFe(n),A4e(),qn=s,sa=o,cc.transition=i}else t.current=n;if(rB&&(rB=!1,fp=t,lD=r),i=t.pendingLanes,i===0&&(Tp=null),h4e(n.stateNode),Ko(t,gr()),e!==null)for(a=t.onRecoverableError,n=0;n<e.length;n++)r=e[n],a(r.value,{componentStack:r.stack,digest:r.digest});if(cD)throw cD=!1,t=AR,AR=null,t;return lD&1&&t.tag!==0&&Zf(),i=t.pendingLanes,i&1?t===mR?i_++:(i_=0,mR=t):i_=0,gA(),null}function Zf(){if(fp!==null){var t=Wae(lD),e=cc.transition,n=sa;try{if(cc.transition=null,sa=16>t?16:t,fp===null)var a=!1;else{if(t=fp,fp=null,lD=0,qn&6)throw Error(Et(331));var r=qn;for(qn|=4,Pt=t.current;Pt!==null;){var i=Pt,o=i.child;if(Pt.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(Pt=u;Pt!==null;){var d=Pt;switch(d.tag){case 0:case 11:case 15:a_(8,d,i)}var p=d.child;if(p!==null)p.return=d,Pt=p;else for(;Pt!==null;){d=Pt;var A=d.sibling,m=d.return;if(rie(d),d===u){Pt=null;break}if(A!==null){A.return=m,Pt=A;break}Pt=m}}}var g=i.alternate;if(g!==null){var h=g.child;if(h!==null){g.child=null;do{var f=h.sibling;h.sibling=null,h=f}while(h!==null)}}Pt=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,Pt=o;else e:for(;Pt!==null;){if(i=Pt,i.flags&2048)switch(i.tag){case 0:case 11:case 15:a_(9,i,i.return)}var b=i.sibling;if(b!==null){b.return=i.return,Pt=b;break e}Pt=i.return}}var w=t.current;for(Pt=w;Pt!==null;){o=Pt;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,Pt=y;else e:for(o=w;Pt!==null;){if(s=Pt,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:ZS(9,s)}}catch(_){rr(s,s.return,_)}if(s===o){Pt=null;break e}var v=s.sibling;if(v!==null){v.return=s.return,Pt=v;break e}Pt=s.return}}if(qn=r,gA(),ql&&typeof ql.onPostCommitFiberRoot=="function")try{ql.onPostCommitFiberRoot(qS,t)}catch{}a=!0}return a}finally{sa=n,cc.transition=e}}return!1}function uW(t,e,n){e=Vw(n,e),e=Wre(t,e,1),t=Fp(t,e,1),e=go(),t!==null&&(v1(t,1,e),Ko(t,e))}function rr(t,e,n){if(t.tag===3)uW(t,t,n);else for(;e!==null;){if(e.tag===3){uW(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Tp===null||!Tp.has(a))){t=Vw(n,t),t=Yre(e,t,1),e=Fp(e,t,1),t=go(),e!==null&&(v1(e,1,t),Ko(e,t));break}}e=e.return}}function GFe(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),e=go(),t.pingedLanes|=t.suspendedLanes&n,ii===t&&(vi&n)===n&&(zr===4||zr===3&&(vi&130023424)===vi&&500>gr()-u7?Hm(t,0):l7|=n),Ko(t,e)}function mie(t,e){e===0&&(t.mode&1?(e=YE,YE<<=1,!(YE&130023424)&&(YE=4194304)):e=1);var n=go();t=ud(t,e),t!==null&&(v1(t,e,n),Ko(t,n))}function zFe(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),mie(t,n)}function UFe(t,e){var n=0;switch(t.tag){case 13:var a=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(Et(314))}a!==null&&a.delete(e),mie(t,n)}var gie;gie=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Wo.current)Uo=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Uo=!1,FFe(t,e,n);Uo=!!(t.flags&131072)}else Uo=!1,Ra&&e.flags&1048576&&yre(e,eD,e.index);switch(e.lanes=0,e.tag){case 2:var a=e.type;BI(t,e),t=e.pendingProps;var r=Ww(e,Ui.current);Kf(e,n),r=a7(null,e,a,t,r,n);var i=r7();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Yo(a)?(i=!0,J2(e)):i=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,JP(e),r.updater=KS,e.stateNode=r,r._reactInternals=e,nR(e,a,t,n),e=iR(null,e,a,!0,i,n)):(e.tag=0,Ra&&i&&UP(e),ao(null,e,r,n),e=e.child),e;case 16:a=e.elementType;e:{switch(BI(t,e),t=e.pendingProps,r=a._init,a=r(a._payload),e.type=a,r=e.tag=WFe(a),t=xc(a,t),r){case 0:e=rR(null,e,a,t,n);break e;case 1:e=eW(null,e,a,t,n);break e;case 11:e=JH(null,e,a,t,n);break e;case 14:e=XH(null,e,a,xc(a.type,t),n);break e}throw Error(Et(306,a,""))}return e;case 0:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:xc(a,r),rR(t,e,a,r,n);case 1:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:xc(a,r),eW(t,e,a,r,n);case 3:e:{if(Jre(e),t===null)throw Error(Et(387));a=e.pendingProps,i=e.memoizedState,r=i.element,xre(t,e),aD(e,a,null,n);var o=e.memoizedState;if(a=o.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){r=Vw(Error(Et(423)),e),e=tW(t,e,a,n,r);break e}else if(a!==r){r=Vw(Error(Et(424)),e),e=tW(t,e,a,n,r);break e}else for(As=Sp(e.stateNode.containerInfo.firstChild),gs=e,Ra=!0,Qc=null,n=Cre(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yw(),a===r){e=dd(t,e,n);break e}ao(t,e,a,n)}e=e.child}return e;case 5:return Ere(e),t===null&&X6(e),a=e.type,r=e.pendingProps,i=t!==null?t.memoizedProps:null,o=r.children,Y6(a,r)?o=null:i!==null&&Y6(a,i)&&(e.flags|=32),Vre(t,e),ao(t,e,o,n),e.child;case 6:return t===null&&X6(e),null;case 13:return Xre(t,e,n);case 4:return XP(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Kw(e,null,a,n):ao(t,e,a,n),e.child;case 11:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:xc(a,r),JH(t,e,a,r,n);case 7:return ao(t,e,e.pendingProps,n),e.child;case 8:return ao(t,e,e.pendingProps.children,n),e.child;case 12:return ao(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(a=e.type._context,r=e.pendingProps,i=e.memoizedProps,o=r.value,ya(tD,a._currentValue),a._currentValue=o,i!==null)if(Vc(i.value,o)){if(i.children===r.children&&!Wo.current){e=dd(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===a){if(i.tag===1){l=nd(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),eR(i.return,n,e),s.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(Et(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),eR(o,n,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ao(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,a=e.pendingProps.children,Kf(e,n),r=uc(r),a=a(r),e.flags|=1,ao(t,e,a,n),e.child;case 14:return a=e.type,r=xc(a,e.pendingProps),r=xc(a.type,r),XH(t,e,a,r,n);case 15:return Kre(t,e,e.type,e.pendingProps,n);case 17:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:xc(a,r),BI(t,e),e.tag=1,Yo(a)?(t=!0,J2(e)):t=!1,Kf(e,n),Hre(e,a,r),nR(e,a,r,n),iR(null,e,a,!0,t,n);case 19:return eie(t,e,n);case 22:return Zre(t,e,n)}throw Error(Et(156,e.tag))};function hie(t,e){return Gae(t,e)}function HFe(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nc(t,e,n,a){return new HFe(t,e,n,a)}function m7(t){return t=t.prototype,!(!t||!t.isReactComponent)}function WFe(t){if(typeof t=="function")return m7(t)?1:0;if(t!=null){if(t=t.$$typeof,t===TP)return 11;if(t===LP)return 14}return 2}function Rp(t,e){var n=t.alternate;return n===null?(n=nc(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function QI(t,e,n,a,r,i){var o=2;if(a=t,typeof t=="function")m7(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case hf:return Wm(n.children,r,i,e);case FP:o=8,r|=8;break;case E6:return t=nc(12,n,e,r|2),t.elementType=E6,t.lanes=i,t;case B6:return t=nc(13,n,e,r),t.elementType=B6,t.lanes=i,t;case I6:return t=nc(19,n,e,r),t.elementType=I6,t.lanes=i,t;case Eae:return JS(n,r,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _ae:o=10;break e;case xae:o=9;break e;case TP:o=11;break e;case LP:o=14;break e;case tp:o=16,a=null;break e}throw Error(Et(130,t==null?t:typeof t,""))}return e=nc(o,n,e,r),e.elementType=t,e.type=a,e.lanes=i,e}function Wm(t,e,n,a){return t=nc(7,t,a,e),t.lanes=n,t}function JS(t,e,n,a){return t=nc(22,t,a,e),t.elementType=Eae,t.lanes=n,t.stateNode={isHidden:!1},t}function P3(t,e,n){return t=nc(6,t,null,e),t.lanes=n,t}function O3(t,e,n){return e=nc(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function YFe(t,e,n,a,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=w3(0),this.expirationTimes=w3(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=w3(0),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function g7(t,e,n,a,r,i,o,s,l){return t=new YFe(t,e,n,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=nc(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},JP(i),t}function KFe(t,e,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gf,key:a==null?null:""+a,children:t,containerInfo:e,implementation:n}}function fie(t){if(!t)return Gp;t=t._reactInternals;e:{if(Rg(t)!==t||t.tag!==1)throw Error(Et(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Yo(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(Et(171))}if(t.tag===1){var n=t.type;if(Yo(n))return fre(t,n,e)}return e}function bie(t,e,n,a,r,i,o,s,l){return t=g7(n,a,!0,t,r,i,o,s,l),t.context=fie(null),n=t.current,a=go(),r=Lp(n),i=nd(a,r),i.callback=e??null,Fp(n,i,r),t.current.lanes=r,v1(t,r,a),Ko(t,a),t}function XS(t,e,n,a){var r=e.current,i=go(),o=Lp(r);return n=fie(n),e.context===null?e.context=n:e.pendingContext=n,e=nd(i,o),e.payload={element:t},a=a===void 0?null:a,a!==null&&(e.callback=a),t=Fp(r,e,o),t!==null&&(Pc(t,r,o,i),_I(t,r,o)),o}function dD(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function dW(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function h7(t,e){dW(t,e),(t=t.alternate)&&dW(t,e)}function ZFe(){return null}var yie=typeof reportError=="function"?reportError:function(t){console.error(t)};function f7(t){this._internalRoot=t}e4.prototype.render=f7.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(Et(409));XS(t,e,null,null)};e4.prototype.unmount=f7.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;sg(function(){XS(null,t,null,null)}),e[ld]=null}};function e4(t){this._internalRoot=t}e4.prototype.unstable_scheduleHydration=function(t){if(t){var e=Zae();t={blockedOn:null,target:t,priority:e};for(var n=0;n<pp.length&&e!==0&&e<pp[n].priority;n++);pp.splice(n,0,t),n===0&&Jae(t)}};function b7(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function t4(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function pW(){}function VFe(t,e,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var u=dD(o);i.call(u)}}var o=bie(e,a,t,0,null,!1,!1,"",pW);return t._reactRootContainer=o,t[ld]=o.current,Y_(t.nodeType===8?t.parentNode:t),sg(),o}for(;r=t.lastChild;)t.removeChild(r);if(typeof a=="function"){var s=a;a=function(){var u=dD(l);s.call(u)}}var l=g7(t,0,!1,null,null,!1,!1,"",pW);return t._reactRootContainer=l,t[ld]=l.current,Y_(t.nodeType===8?t.parentNode:t),sg(function(){XS(e,l,n,a)}),l}function n4(t,e,n,a,r){var i=n._reactRootContainer;if(i){var o=i;if(typeof r=="function"){var s=r;r=function(){var l=dD(o);s.call(l)}}XS(e,o,t,r)}else o=VFe(n,e,t,r,a);return dD(o)}Yae=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=hC(e.pendingLanes);n!==0&&(MP(e,n|1),Ko(e,gr()),!(qn&6)&&(Jw=gr()+500,gA()))}break;case 13:sg(function(){var a=ud(t,1);if(a!==null){var r=go();Pc(a,t,1,r)}}),h7(t,1)}};$P=function(t){if(t.tag===13){var e=ud(t,134217728);if(e!==null){var n=go();Pc(e,t,134217728,n)}h7(t,134217728)}};Kae=function(t){if(t.tag===13){var e=Lp(t),n=ud(t,e);if(n!==null){var a=go();Pc(n,t,e,a)}h7(t,e)}};Zae=function(){return sa};Vae=function(t,e){var n=sa;try{return sa=t,e()}finally{sa=n}};$6=function(t,e,n){switch(e){case"input":if(S6(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var r=HS(a);if(!r)throw Error(Et(90));Iae(a),S6(a,r)}}}break;case"textarea":Qae(t,n);break;case"select":e=n.value,e!=null&&Uf(t,!!n.multiple,e,!1)}};Mae=d7;$ae=sg;var JFe={usingClientEntryPoint:!1,Events:[_1,wf,HS,Rae,Nae,d7]},Lv={findFiberByHostInstance:Sm,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},XFe={bundleType:Lv.bundleType,version:Lv.version,rendererPackageName:Lv.rendererPackageName,rendererConfig:Lv.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dd.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=jae(t),t===null?null:t.stateNode},findFiberByHostInstance:Lv.findFiberByHostInstance||ZFe,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 iB=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iB.isDisabled&&iB.supportsFiber)try{qS=iB.inject(XFe),ql=iB}catch{}}Bs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JFe;Bs.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b7(e))throw Error(Et(200));return KFe(t,e,null,n)};Bs.createRoot=function(t,e){if(!b7(t))throw Error(Et(299));var n=!1,a="",r=yie;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onRecoverableError!==void 0&&(r=e.onRecoverableError)),e=g7(t,1,!1,null,null,n,!1,a,r),t[ld]=e.current,Y_(t.nodeType===8?t.parentNode:t),new f7(e)};Bs.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(Et(188)):(t=Object.keys(t).join(","),Error(Et(268,t)));return t=jae(e),t=t===null?null:t.stateNode,t};Bs.flushSync=function(t){return sg(t)};Bs.hydrate=function(t,e,n){if(!t4(e))throw Error(Et(200));return n4(null,t,e,!0,n)};Bs.hydrateRoot=function(t,e,n){if(!b7(t))throw Error(Et(405));var a=n!=null&&n.hydratedSources||null,r=!1,i="",o=yie;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=bie(e,null,t,1,n??null,r,!1,i,o),t[ld]=e.current,Y_(t),a)for(t=0;t<a.length;t++)n=a[t],r=n._getVersion,r=r(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,r]:e.mutableSourceEagerHydrationData.push(n,r);return new e4(e)};Bs.render=function(t,e,n){if(!t4(e))throw Error(Et(200));return n4(null,t,e,!1,n)};Bs.unmountComponentAtNode=function(t){if(!t4(t))throw Error(Et(40));return t._reactRootContainer?(sg(function(){n4(null,null,t,!1,function(){t._reactRootContainer=null,t[ld]=null})}),!0):!1};Bs.unstable_batchedUpdates=d7;Bs.unstable_renderSubtreeIntoContainer=function(t,e,n,a){if(!t4(n))throw Error(Et(200));if(t==null||t._reactInternals===void 0)throw Error(Et(38));return n4(t,e,n,!1,a)};Bs.version="18.3.1-next-f1338f8080-20240426";function wie(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wie)}catch(t){console.error(t)}}wie(),wae.exports=Bs;var kie=wae.exports,AW=kie;_6.createRoot=AW.createRoot,_6.hydrateRoot=AW.hydrateRoot;function eTe(t){const e=new Date(t),a=new Date().getTime()-e.getTime(),r=Math.floor(a/6e4),i=Math.floor(r/60),o=Math.floor(i/24);return r<1?"just now":r<60?`${r} minute${r===1?"":"s"} ago`:i<24?`${i} hour${i===1?"":"s"} ago`:`${o} day${o===1?"":"s"} ago`}function tTe({dossier:t}){return tt.jsxs("header",{className:"header",children:[tt.jsxs("div",{className:"header-left",children:[tt.jsxs("div",{className:"wordmark",children:[tt.jsx("span",{className:"wordmark-glyph",children:"◈"}),"VIBE-SPLAIN"]}),tt.jsx("div",{className:"project-path",children:t.projectRoot})]}),tt.jsxs("div",{className:"header-center",children:["Analyzed ",eTe(t.scannedAt)]}),tt.jsxs("div",{className:"header-right",children:[t.stalePaths.length>0&&tt.jsxs("span",{className:"stale-badge",children:["⚠ ",t.stalePaths.length," STALE"]}),tt.jsx("button",{className:"refresh-btn",onClick:()=>window.location.reload(),children:"↺ Refresh"})]})]})}function nTe({pillars:t,wildCount:e,activePillar:n,onSelect:a}){return tt.jsxs("div",{className:"tab-bar",children:[t.map(r=>tt.jsxs("button",{className:`tab ${n===r.name?"active":""}`,onClick:()=>a(r.name),children:[r.name,tt.jsx("span",{className:"tab-count",children:r.cardCount})]},r.name)),e>0&&tt.jsxs("button",{className:`tab wild ${n==="Wild Discoveries"?"active":""}`,onClick:()=>a("Wild Discoveries"),children:["⚡ Wild Discoveries",tt.jsx("span",{className:"tab-count",children:e})]})]})}const aTe="modulepreload",rTe=function(t,e){return new URL(t,e).href},mW={},me=function(e,n,a){let r=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));r=Promise.allSettled(n.map(u=>{if(u=rTe(u,a),u in mW)return;mW[u]=!0;const d=u.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(!!a)for(let g=o.length-1;g>=0;g--){const h=o[g];if(h.href===u&&(!d||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${p}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":aTe,d||(m.as="script"),m.crossOrigin="",m.href=u,l&&m.setAttribute("nonce",l),document.head.appendChild(m),d)return new Promise((g,h)=>{m.addEventListener("load",g),m.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return r.then(o=>{for(const s of o||[])s.status==="rejected"&&i(s.reason);return e().catch(i)})};var vie={exports:{}};(function(t,e){(function(n,a){t.exports=a()})(al,function(){var n=1e3,a=6e4,r=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",d="week",p="month",A="quarter",m="year",g="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|YYYY|YY|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,w={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(I){var Q=["th","st","nd","rd"],N=I%100;return"["+I+(Q[(N-20)%10]||Q[N]||Q[0])+"]"}},y=function(I,Q,N){var R=String(I);return!R||R.length>=Q?I:""+Array(Q+1-R.length).join(N)+I},v={s:y,z:function(I){var Q=-I.utcOffset(),N=Math.abs(Q),R=Math.floor(N/60),S=N%60;return(Q<=0?"+":"-")+y(R,2,"0")+":"+y(S,2,"0")},m:function I(Q,N){if(Q.date()<N.date())return-I(N,Q);var R=12*(N.year()-Q.year())+(N.month()-Q.month()),S=Q.clone().add(R,p),L=N-S<0,M=Q.clone().add(R+(L?-1:1),p);return+(-(R+(N-S)/(L?S-M:M-S))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:p,y:m,w:d,d:u,D:g,h:l,m:s,s:o,ms:i,Q:A}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},_="en",x={};x[_]=w;var C="$isDayjsObject",B=function(I){return I instanceof O||!(!I||!I[C])},D=function I(Q,N,R){var S;if(!Q)return _;if(typeof Q=="string"){var L=Q.toLowerCase();x[L]&&(S=L),N&&(x[L]=N,S=L);var M=Q.split("-");if(!S&&M.length>1)return I(M[0])}else{var $=Q.name;x[$]=Q,S=$}return!R&&S&&(_=S),S||!R&&_},T=function(I,Q){if(B(I))return I.clone();var N=typeof Q=="object"?Q:{};return N.date=I,N.args=arguments,new O(N)},F=v;F.l=D,F.i=B,F.w=function(I,Q){return T(I,{locale:Q.$L,utc:Q.$u,x:Q.$x,$offset:Q.$offset})};var O=function(){function I(N){this.$L=D(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[C]=!0}var Q=I.prototype;return Q.parse=function(N){this.$d=function(R){var S=R.date,L=R.utc;if(S===null)return new Date(NaN);if(F.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var M=S.match(f);if(M){var $=M[2]-1||0,j=(M[7]||"0").substring(0,3);return L?new Date(Date.UTC(M[1],$,M[3]||1,M[4]||0,M[5]||0,M[6]||0,j)):new Date(M[1],$,M[3]||1,M[4]||0,M[5]||0,M[6]||0,j)}}return new Date(S)}(N),this.init()},Q.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},Q.$utils=function(){return F},Q.isValid=function(){return this.$d.toString()!==h},Q.isSame=function(N,R){var S=T(N);return this.startOf(R)<=S&&S<=this.endOf(R)},Q.isAfter=function(N,R){return T(N)<this.startOf(R)},Q.isBefore=function(N,R){return this.endOf(R)<T(N)},Q.$g=function(N,R,S){return F.u(N)?this[R]:this.set(S,N)},Q.unix=function(){return Math.floor(this.valueOf()/1e3)},Q.valueOf=function(){return this.$d.getTime()},Q.startOf=function(N,R){var S=this,L=!!F.u(R)||R,M=F.p(N),$=function(V,X){var ee=F.w(S.$u?Date.UTC(S.$y,X,V):new Date(S.$y,X,V),S);return L?ee:ee.endOf(u)},j=function(V,X){return F.w(S.toDate()[V].apply(S.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(X)),S)},q=this.$W,U=this.$M,z=this.$D,J="set"+(this.$u?"UTC":"");switch(M){case m:return L?$(1,0):$(31,11);case p:return L?$(1,U):$(0,U+1);case d:var W=this.$locale().weekStart||0,se=(q<W?q+7:q)-W;return $(L?z-se:z+(6-se),U);case u:case g:return j(J+"Hours",0);case l:return j(J+"Minutes",1);case s:return j(J+"Seconds",2);case o:return j(J+"Milliseconds",3);default:return this.clone()}},Q.endOf=function(N){return this.startOf(N,!1)},Q.$set=function(N,R){var S,L=F.p(N),M="set"+(this.$u?"UTC":""),$=(S={},S[u]=M+"Date",S[g]=M+"Date",S[p]=M+"Month",S[m]=M+"FullYear",S[l]=M+"Hours",S[s]=M+"Minutes",S[o]=M+"Seconds",S[i]=M+"Milliseconds",S)[L],j=L===u?this.$D+(R-this.$W):R;if(L===p||L===m){var q=this.clone().set(g,1);q.$d[$](j),q.init(),this.$d=q.set(g,Math.min(this.$D,q.daysInMonth())).$d}else $&&this.$d[$](j);return this.init(),this},Q.set=function(N,R){return this.clone().$set(N,R)},Q.get=function(N){return this[F.p(N)]()},Q.add=function(N,R){var S,L=this;N=Number(N);var M=F.p(R),$=function(U){var z=T(L);return F.w(z.date(z.date()+Math.round(U*N)),L)};if(M===p)return this.set(p,this.$M+N);if(M===m)return this.set(m,this.$y+N);if(M===u)return $(1);if(M===d)return $(7);var j=(S={},S[s]=a,S[l]=r,S[o]=n,S)[M]||1,q=this.$d.getTime()+N*j;return F.w(q,this)},Q.subtract=function(N,R){return this.add(-1*N,R)},Q.format=function(N){var R=this,S=this.$locale();if(!this.isValid())return S.invalidDate||h;var L=N||"YYYY-MM-DDTHH:mm:ssZ",M=F.z(this),$=this.$H,j=this.$m,q=this.$M,U=S.weekdays,z=S.months,J=S.meridiem,W=function(X,ee,te,ce){return X&&(X[ee]||X(R,L))||te[ee].slice(0,ce)},se=function(X){return F.s($%12||12,X,"0")},V=J||function(X,ee,te){var ce=X<12?"AM":"PM";return te?ce.toLowerCase():ce};return L.replace(b,function(X,ee){return ee||function(te){switch(te){case"YY":return String(R.$y).slice(-2);case"YYYY":return F.s(R.$y,4,"0");case"M":return q+1;case"MM":return F.s(q+1,2,"0");case"MMM":return W(S.monthsShort,q,z,3);case"MMMM":return W(z,q);case"D":return R.$D;case"DD":return F.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return W(S.weekdaysMin,R.$W,U,2);case"ddd":return W(S.weekdaysShort,R.$W,U,3);case"dddd":return U[R.$W];case"H":return String($);case"HH":return F.s($,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return V($,j,!0);case"A":return V($,j,!1);case"m":return String(j);case"mm":return F.s(j,2,"0");case"s":return String(R.$s);case"ss":return F.s(R.$s,2,"0");case"SSS":return F.s(R.$ms,3,"0");case"Z":return M}return null}(X)||M.replace(":","")})},Q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Q.diff=function(N,R,S){var L,M=this,$=F.p(R),j=T(N),q=(j.utcOffset()-this.utcOffset())*a,U=this-j,z=function(){return F.m(M,j)};switch($){case m:L=z()/12;break;case p:L=z();break;case A:L=z()/3;break;case d:L=(U-q)/6048e5;break;case u:L=(U-q)/864e5;break;case l:L=U/r;break;case s:L=U/a;break;case o:L=U/n;break;default:L=U}return S?L:F.a(L)},Q.daysInMonth=function(){return this.endOf(p).$D},Q.$locale=function(){return x[this.$L]},Q.locale=function(N,R){if(!N)return this.$L;var S=this.clone(),L=D(N,R,!0);return L&&(S.$L=L),S},Q.clone=function(){return F.w(this.$d,this)},Q.toDate=function(){return new Date(this.valueOf())},Q.toJSON=function(){return this.isValid()?this.toISOString():null},Q.toISOString=function(){return this.$d.toISOString()},Q.toString=function(){return this.$d.toUTCString()},I}(),P=O.prototype;return T.prototype=P,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",p],["$y",m],["$D",g]].forEach(function(I){P[I[1]]=function(Q){return this.$g(Q,I[0],I[1])}}),T.extend=function(I,Q){return I.$i||(I(Q,O,T),I.$i=!0),T},T.locale=D,T.isDayjs=B,T.unix=function(I){return T(1e3*I)},T.en=x[_],T.Ls=x,T.p={},T})})(vie);var iTe=vie.exports;const ri=pA(iTe);var Cie=Object.defineProperty,k=(t,e)=>Cie(t,"name",{value:e,configurable:!0}),a4=(t,e)=>{for(var n in e)Cie(t,n,{get:e[n],enumerable:!0})},wu={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ne={trace:k((...t)=>{},"trace"),debug:k((...t)=>{},"debug"),info:k((...t)=>{},"info"),warn:k((...t)=>{},"warn"),error:k((...t)=>{},"error"),fatal:k((...t)=>{},"fatal")},y7=k(function(t="fatal"){let e=wu.fatal;typeof t=="string"?t.toLowerCase()in wu&&(e=wu[t]):typeof t=="number"&&(e=t),ne.trace=()=>{},ne.debug=()=>{},ne.info=()=>{},ne.warn=()=>{},ne.error=()=>{},ne.fatal=()=>{},e<=wu.fatal&&(ne.fatal=console.error?console.error.bind(console,qs("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",qs("FATAL"))),e<=wu.error&&(ne.error=console.error?console.error.bind(console,qs("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",qs("ERROR"))),e<=wu.warn&&(ne.warn=console.warn?console.warn.bind(console,qs("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",qs("WARN"))),e<=wu.info&&(ne.info=console.info?console.info.bind(console,qs("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",qs("INFO"))),e<=wu.debug&&(ne.debug=console.debug?console.debug.bind(console,qs("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",qs("DEBUG"))),e<=wu.trace&&(ne.trace=console.debug?console.debug.bind(console,qs("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",qs("TRACE")))},"setLogLevel"),qs=k(t=>`%c${ri().format("ss.SSS")} : ${t} : `,"format");const SI={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},a)=>{if(!e)return n*2.55;t/=360,e/=100,n/=100;const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r;switch(a){case"r":return SI.hue2rgb(i,r,t+1/3)*255;case"g":return SI.hue2rgb(i,r,t)*255;case"b":return SI.hue2rgb(i,r,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:n},a)=>{t/=255,e/=255,n/=255;const r=Math.max(t,e,n),i=Math.min(t,e,n),o=(r+i)/2;if(a==="l")return o*100;if(r===i)return 0;const s=r-i,l=o>.5?s/(2-r-i):s/(r+i);if(a==="s")return l*100;switch(r){case t:return((e-n)/s+(e<n?6:0))*60;case e:return((n-t)/s+2)*60;case n:return((t-e)/s+4)*60;default:return-1}}},oTe={clamp:(t,e,n)=>e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},sTe={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},gn={channel:SI,lang:oTe,unit:sTe},Xd={};for(let t=0;t<=255;t++)Xd[t]=gn.unit.dec2hex(t);const Ri={ALL:0,RGB:1,HSL:2};let cTe=class{constructor(){this.type=Ri.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Ri.ALL}is(e){return this.type===e}};class lTe{constructor(e,n){this.color=n,this.changed=!1,this.data=e,this.type=new cTe}set(e,n){return this.color=n,this.changed=!1,this.data=e,this.type.type=Ri.ALL,this}_ensureHSL(){const e=this.data,{h:n,s:a,l:r}=e;n===void 0&&(e.h=gn.channel.rgb2hsl(e,"h")),a===void 0&&(e.s=gn.channel.rgb2hsl(e,"s")),r===void 0&&(e.l=gn.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:n,g:a,b:r}=e;n===void 0&&(e.r=gn.channel.hsl2rgb(e,"r")),a===void 0&&(e.g=gn.channel.hsl2rgb(e,"g")),r===void 0&&(e.b=gn.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,n=e.r;return!this.type.is(Ri.HSL)&&n!==void 0?n:(this._ensureHSL(),gn.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,n=e.g;return!this.type.is(Ri.HSL)&&n!==void 0?n:(this._ensureHSL(),gn.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,n=e.b;return!this.type.is(Ri.HSL)&&n!==void 0?n:(this._ensureHSL(),gn.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,n=e.h;return!this.type.is(Ri.RGB)&&n!==void 0?n:(this._ensureRGB(),gn.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,n=e.s;return!this.type.is(Ri.RGB)&&n!==void 0?n:(this._ensureRGB(),gn.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,n=e.l;return!this.type.is(Ri.RGB)&&n!==void 0?n:(this._ensureRGB(),gn.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Ri.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Ri.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Ri.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Ri.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Ri.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Ri.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const r4=new lTe({r:0,g:0,b:0,a:0},"transparent"),Vf={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Vf.re);if(!e)return;const n=e[1],a=parseInt(n,16),r=n.length,i=r%4===0,o=r>4,s=o?1:17,l=o?8:4,u=i?0:-1,d=o?255:15;return r4.set({r:(a>>l*(u+3)&d)*s,g:(a>>l*(u+2)&d)*s,b:(a>>l*(u+1)&d)*s,a:i?(a&d)*s/255:1},t)},stringify:t=>{const{r:e,g:n,b:a,a:r}=t;return r<1?`#${Xd[Math.round(e)]}${Xd[Math.round(n)]}${Xd[Math.round(a)]}${Xd[Math.round(r*255)]}`:`#${Xd[Math.round(e)]}${Xd[Math.round(n)]}${Xd[Math.round(a)]}`}},Lm={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:t=>{const e=t.match(Lm.hueRe);if(e){const[,n,a]=e;switch(a){case"grad":return gn.channel.clamp.h(parseFloat(n)*.9);case"rad":return gn.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return gn.channel.clamp.h(parseFloat(n)*360)}}return gn.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const n=t.match(Lm.re);if(!n)return;const[,a,r,i,o,s]=n;return r4.set({h:Lm._hue2deg(a),s:gn.channel.clamp.s(parseFloat(r)),l:gn.channel.clamp.l(parseFloat(i)),a:o?gn.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:n,l:a,a:r}=t;return r<1?`hsla(${gn.lang.round(e)}, ${gn.lang.round(n)}%, ${gn.lang.round(a)}%, ${r})`:`hsl(${gn.lang.round(e)}, ${gn.lang.round(n)}%, ${gn.lang.round(a)}%)`}},o_={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:t=>{t=t.toLowerCase();const e=o_.colors[t];if(e)return Vf.parse(e)},stringify:t=>{const e=Vf.stringify(t);for(const n in o_.colors)if(o_.colors[n]===e)return n}},bC={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:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const n=t.match(bC.re);if(!n)return;const[,a,r,i,o,s,l,u,d]=n;return r4.set({r:gn.channel.clamp.r(r?parseFloat(a)*2.55:parseFloat(a)),g:gn.channel.clamp.g(o?parseFloat(i)*2.55:parseFloat(i)),b:gn.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:u?gn.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:n,b:a,a:r}=t;return r<1?`rgba(${gn.lang.round(e)}, ${gn.lang.round(n)}, ${gn.lang.round(a)}, ${gn.lang.round(r)})`:`rgb(${gn.lang.round(e)}, ${gn.lang.round(n)}, ${gn.lang.round(a)})`}},Jc={format:{keyword:o_,hex:Vf,rgb:bC,rgba:bC,hsl:Lm,hsla:Lm},parse:t=>{if(typeof t!="string")return t;const e=Vf.parse(t)||bC.parse(t)||Lm.parse(t)||o_.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(Ri.HSL)||t.data.r===void 0?Lm.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?bC.stringify(t):Vf.stringify(t)},_ie=(t,e)=>{const n=Jc.parse(t);for(const a in e)n[a]=gn.channel.clamp[a](e[a]);return Jc.stringify(n)},Oc=(t,e,n=0,a=1)=>{if(typeof t!="number")return _ie(t,{a:e});const r=r4.set({r:gn.channel.clamp.r(t),g:gn.channel.clamp.g(e),b:gn.channel.clamp.b(n),a:gn.channel.clamp.a(a)});return Jc.stringify(r)},w7=(t,e)=>gn.lang.round(Jc.parse(t)[e]),uTe=t=>{const{r:e,g:n,b:a}=Jc.parse(t),r=.2126*gn.channel.toLinear(e)+.7152*gn.channel.toLinear(n)+.0722*gn.channel.toLinear(a);return gn.lang.round(r)},dTe=t=>uTe(t)>=.5,Bo=t=>!dTe(t),k7=(t,e,n)=>{const a=Jc.parse(t),r=a[e],i=gn.channel.clamp[e](r+n);return r!==i&&(a[e]=i),Jc.stringify(a)},Xe=(t,e)=>k7(t,"l",e),et=(t,e)=>k7(t,"l",-e),gW=(t,e)=>k7(t,"a",-e),re=(t,e)=>{const n=Jc.parse(t),a={};for(const r in e)e[r]&&(a[r]=n[r]+e[r]);return _ie(t,a)},pTe=(t,e,n=50)=>{const{r:a,g:r,b:i,a:o}=Jc.parse(t),{r:s,g:l,b:u,a:d}=Jc.parse(e),p=n/100,A=p*2-1,m=o-d,h=((A*m===-1?A:(A+m)/(1+A*m))+1)/2,f=1-h,b=a*h+s*f,w=r*h+l*f,y=i*h+u*f,v=o*p+d*(1-p);return Oc(b,w,y,v)},Ge=(t,e=100)=>{const n=Jc.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,pTe(n,t,e)};/*! @license DOMPurify 3.4.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.9/LICENSE */function hW(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}function ATe(t){if(Array.isArray(t))return t}function mTe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a,r,i,o,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(a=i.call(n)).done)&&(s.push(a.value),s.length!==e);l=!0);}catch(d){u=!0,r=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw r}}return s}}function gTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
51
+ `+i.stack}return{value:t,source:e,stack:r,digest:null}}function M3(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function aR(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var DFe=typeof WeakMap=="function"?WeakMap:Map;function Wre(t,e,n){n=nd(-1,n),n.tag=3,n.payload={element:null};var a=e.value;return n.callback=function(){cD||(cD=!0,AR=a),aR(t,e)},n}function Yre(t,e,n){n=nd(-1,n),n.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var r=e.value;n.payload=function(){return a(r)},n.callback=function(){aR(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){aR(t,e),typeof a!="function"&&(Tp===null?Tp=new Set([this]):Tp.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function KH(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new DFe;var r=new Set;a.set(e,r)}else r=a.get(e),r===void 0&&(r=new Set,a.set(e,r));r.has(n)||(r.add(n),t=GFe.bind(null,t,e,n),e.then(t,t))}function ZH(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function VH(t,e,n,a,r){return t.mode&1?(t.flags|=65536,t.lanes=r,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=nd(-1,1),e.tag=2,Fp(n,e,1))),n.lanes|=1),t)}var QFe=Dd.ReactCurrentOwner,Uo=!1;function ao(t,e,n,a){e.child=t===null?Cre(e,null,n,a):Kw(e,t.child,n,a)}function JH(t,e,n,a,r){n=n.render;var i=e.ref;return Kf(e,r),a=a7(t,e,n,a,i,r),n=r7(),t!==null&&!Uo?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,dd(t,e,r)):(Ra&&n&&UP(e),e.flags|=1,ao(t,e,a,r),e.child)}function XH(t,e,n,a,r){if(t===null){var i=n.type;return typeof i=="function"&&!m7(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=i,Kre(t,e,i,a,r)):(t=QI(n.type,null,a,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&r)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:W_,n(o,a)&&t.ref===e.ref)return dd(t,e,r)}return e.flags|=1,t=Rp(i,a),t.ref=e.ref,t.return=e,e.child=t}function Kre(t,e,n,a,r){if(t!==null){var i=t.memoizedProps;if(W_(i,a)&&t.ref===e.ref)if(Uo=!1,e.pendingProps=a=i,(t.lanes&r)!==0)t.flags&131072&&(Uo=!0);else return e.lanes=t.lanes,dd(t,e,r)}return rR(t,e,n,a,r)}function Zre(t,e,n){var a=e.pendingProps,r=a.children,i=t!==null?t.memoizedState:null;if(a.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ya(Ef,us),us|=n;else{if(!(n&1073741824))return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ya(Ef,us),us|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=i!==null?i.baseLanes:n,ya(Ef,us),us|=a}else i!==null?(a=i.baseLanes|n,e.memoizedState=null):a=n,ya(Ef,us),us|=a;return ao(t,e,r,n),e.child}function Vre(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function rR(t,e,n,a,r){var i=Yo(n)?ag:Ui.current;return i=Ww(e,i),Kf(e,r),n=a7(t,e,n,a,i,r),a=r7(),t!==null&&!Uo?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,dd(t,e,r)):(Ra&&a&&UP(e),e.flags|=1,ao(t,e,n,r),e.child)}function eW(t,e,n,a,r){if(Yo(n)){var i=!0;J2(e)}else i=!1;if(Kf(e,r),e.stateNode===null)BI(t,e),Hre(e,n,a),nR(e,n,a,r),a=!0;else if(t===null){var o=e.stateNode,s=e.memoizedProps;o.props=s;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=uc(u):(u=Yo(n)?ag:Ui.current,u=Ww(e,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==a||l!==u)&&YH(e,o,a,u),np=!1;var A=e.memoizedState;o.state=A,aD(e,a,o,r),l=e.memoizedState,s!==a||A!==l||Wo.current||np?(typeof d=="function"&&(tR(e,n,d,a),l=e.memoizedState),(s=np||WH(e,n,s,a,A,l,u))?(p||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"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=l),o.props=a,o.state=l,o.context=u,a=s):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{o=e.stateNode,xre(t,e),s=e.memoizedProps,u=e.type===e.elementType?s:xc(e.type,s),o.props=u,p=e.pendingProps,A=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=uc(l):(l=Yo(n)?ag:Ui.current,l=Ww(e,l));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==p||A!==l)&&YH(e,o,a,l),np=!1,A=e.memoizedState,o.state=A,aD(e,a,o,r);var g=e.memoizedState;s!==p||A!==g||Wo.current||np?(typeof m=="function"&&(tR(e,n,m,a),g=e.memoizedState),(u=np||WH(e,n,u,a,A,g,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,g,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,g,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=g),o.props=a,o.state=g,o.context=l,a=u):(typeof o.componentDidUpdate!="function"||s===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),a=!1)}return iR(t,e,n,a,i,r)}function iR(t,e,n,a,r,i){Vre(t,e);var o=(e.flags&128)!==0;if(!a&&!o)return r&&PH(e,n,!1),dd(t,e,i);a=e.stateNode,QFe.current=e;var s=o&&typeof n.getDerivedStateFromError!="function"?null:a.render();return e.flags|=1,t!==null&&o?(e.child=Kw(e,t.child,null,i),e.child=Kw(e,null,s,i)):ao(t,e,s,i),e.memoizedState=a.state,r&&PH(e,n,!0),e.child}function Jre(t){var e=t.stateNode;e.pendingContext?$H(t,e.pendingContext,e.pendingContext!==e.context):e.context&&$H(t,e.context,!1),XP(t,e.containerInfo)}function tW(t,e,n,a,r){return Yw(),WP(r),e.flags|=256,ao(t,e,n,a),e.child}var oR={dehydrated:null,treeContext:null,retryLane:0};function sR(t){return{baseLanes:t,cachePool:null,transitions:null}}function Xre(t,e,n){var a=e.pendingProps,r=Ha.current,i=!1,o=(e.flags&128)!==0,s;if((s=o)||(s=t!==null&&t.memoizedState===null?!1:(r&2)!==0),s?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(r|=1),ya(Ha,r&1),t===null)return X6(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=a.children,t=a.fallback,i?(a=e.mode,i=e.child,o={mode:"hidden",children:o},!(a&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=JS(o,a,0,null),t=Wm(t,a,n,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=sR(n),e.memoizedState=oR,t):s7(e,o));if(r=t.memoizedState,r!==null&&(s=r.dehydrated,s!==null))return SFe(t,e,o,a,s,r,n);if(i){i=a.fallback,o=e.mode,r=t.child,s=r.sibling;var l={mode:"hidden",children:a.children};return!(o&1)&&e.child!==r?(a=e.child,a.childLanes=0,a.pendingProps=l,e.deletions=null):(a=Rp(r,l),a.subtreeFlags=r.subtreeFlags&14680064),s!==null?i=Rp(s,i):(i=Wm(i,o,n,null),i.flags|=2),i.return=e,a.return=e,a.sibling=i,e.child=a,a=i,i=e.child,o=t.child.memoizedState,o=o===null?sR(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=t.childLanes&~n,e.memoizedState=oR,a}return i=t.child,t=i.sibling,a=Rp(i,{mode:"visible",children:a.children}),!(e.mode&1)&&(a.lanes=n),a.return=e,a.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=a,e.memoizedState=null,a}function s7(t,e){return e=JS({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function nB(t,e,n,a){return a!==null&&WP(a),Kw(e,t.child,null,n),t=s7(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function SFe(t,e,n,a,r,i,o){if(n)return e.flags&256?(e.flags&=-257,a=M3(Error(Et(422))),nB(t,e,o,a)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=a.fallback,r=e.mode,a=JS({mode:"visible",children:a.children},r,0,null),i=Wm(i,r,o,null),i.flags|=2,a.return=e,i.return=e,a.sibling=i,e.child=a,e.mode&1&&Kw(e,t.child,null,o),e.child.memoizedState=sR(o),e.memoizedState=oR,i);if(!(e.mode&1))return nB(t,e,o,null);if(r.data==="$!"){if(a=r.nextSibling&&r.nextSibling.dataset,a)var s=a.dgst;return a=s,i=Error(Et(419)),a=M3(i,a,void 0),nB(t,e,o,a)}if(s=(o&t.childLanes)!==0,Uo||s){if(a=ii,a!==null){switch(o&-o){case 4:r=2;break;case 16:r=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:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(a.suspendedLanes|o)?0:r,r!==0&&r!==i.retryLane&&(i.retryLane=r,ud(t,r),Pc(a,t,r,-1))}return A7(),a=M3(Error(Et(421))),nB(t,e,o,a)}return r.data==="$?"?(e.flags|=128,e.child=t.child,e=zFe.bind(null,t),r._reactRetry=e,null):(t=i.treeContext,As=Sp(r.nextSibling),gs=e,Ra=!0,Qc=null,t!==null&&(Ks[Zs++]=Uu,Ks[Zs++]=Hu,Ks[Zs++]=rg,Uu=t.id,Hu=t.overflow,rg=e),e=s7(e,a.children),e.flags|=4096,e)}function nW(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),eR(t.return,e,n)}function $3(t,e,n,a,r){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=r)}function eie(t,e,n){var a=e.pendingProps,r=a.revealOrder,i=a.tail;if(ao(t,e,a.children,n),a=Ha.current,a&2)a=a&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&nW(t,n,e);else if(t.tag===19)nW(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}if(ya(Ha,a),!(e.mode&1))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&rD(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),$3(e,!1,r,n,i);break;case"backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&rD(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}$3(e,!0,n,null,i);break;case"together":$3(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function BI(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function dd(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),og|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(Et(153));if(e.child!==null){for(t=e.child,n=Rp(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Rp(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function FFe(t,e,n){switch(e.tag){case 3:Jre(e),Yw();break;case 5:Ere(e);break;case 1:Yo(e.type)&&J2(e);break;case 4:XP(e,e.stateNode.containerInfo);break;case 10:var a=e.type._context,r=e.memoizedProps.value;ya(tD,a._currentValue),a._currentValue=r;break;case 13:if(a=e.memoizedState,a!==null)return a.dehydrated!==null?(ya(Ha,Ha.current&1),e.flags|=128,null):n&e.child.childLanes?Xre(t,e,n):(ya(Ha,Ha.current&1),t=dd(t,e,n),t!==null?t.sibling:null);ya(Ha,Ha.current&1);break;case 19:if(a=(n&e.childLanes)!==0,t.flags&128){if(a)return eie(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ya(Ha,Ha.current),a)break;return null;case 22:case 23:return e.lanes=0,Zre(t,e,n)}return dd(t,e,n)}var tie,cR,nie,aie;tie=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};cR=function(){};nie=function(t,e,n,a){var r=t.memoizedProps;if(r!==a){t=e.stateNode,Tm(Gl.current);var i=null;switch(n){case"input":r=Q6(t,r),a=Q6(t,a),i=[];break;case"select":r=Va({},r,{value:void 0}),a=Va({},a,{value:void 0}),i=[];break;case"textarea":r=T6(t,r),a=T6(t,a),i=[];break;default:typeof r.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=Z2)}R6(n,a);var o;n=null;for(u in r)if(!a.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var s=r[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(O_.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in a){var l=a[u];if(s=r!=null?r[u]:void 0,a.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(O_.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ca("scroll",t),i||s===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(e.updateQueue=u)&&(e.flags|=4)}};aie=function(t,e,n,a){n!==a&&(e.flags|=4)};function Tv(t,e){if(!Ra)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Si(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&14680064,a|=r.flags&14680064,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function TFe(t,e,n){var a=e.pendingProps;switch(HP(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Si(e),null;case 1:return Yo(e.type)&&V2(),Si(e),null;case 3:return a=e.stateNode,Zw(),Ba(Wo),Ba(Ui),t7(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(eB(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Qc!==null&&(hR(Qc),Qc=null))),cR(t,e),Si(e),null;case 5:e7(e);var r=Tm(J_.current);if(n=e.type,t!==null&&e.stateNode!=null)nie(t,e,n,a,r),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!a){if(e.stateNode===null)throw Error(Et(166));return Si(e),null}if(t=Tm(Gl.current),eB(e)){a=e.stateNode,n=e.type;var i=e.memoizedProps;switch(a[Fl]=e,a[Z_]=i,t=(e.mode&1)!==0,n){case"dialog":Ca("cancel",a),Ca("close",a);break;case"iframe":case"object":case"embed":Ca("load",a);break;case"video":case"audio":for(r=0;r<fC.length;r++)Ca(fC[r],a);break;case"source":Ca("error",a);break;case"img":case"image":case"link":Ca("error",a),Ca("load",a);break;case"details":Ca("toggle",a);break;case"input":dH(a,i),Ca("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!i.multiple},Ca("invalid",a);break;case"textarea":AH(a,i),Ca("invalid",a)}R6(n,i),r=null;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];o==="children"?typeof s=="string"?a.textContent!==s&&(i.suppressHydrationWarning!==!0&&XE(a.textContent,s,t),r=["children",s]):typeof s=="number"&&a.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&XE(a.textContent,s,t),r=["children",""+s]):O_.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Ca("scroll",a)}switch(n){case"input":UE(a),pH(a,i,!0);break;case"textarea":UE(a),mH(a);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(a.onclick=Z2)}a=r,e.updateQueue=a,a!==null&&(e.flags|=4)}else{o=r.nodeType===9?r:r.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Sae(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=o.createElement(n,{is:a.is}):(t=o.createElement(n),n==="select"&&(o=t,a.multiple?o.multiple=!0:a.size&&(o.size=a.size))):t=o.createElementNS(t,n),t[Fl]=e,t[Z_]=a,tie(t,e,!1,!1),e.stateNode=t;e:{switch(o=N6(n,a),n){case"dialog":Ca("cancel",t),Ca("close",t),r=a;break;case"iframe":case"object":case"embed":Ca("load",t),r=a;break;case"video":case"audio":for(r=0;r<fC.length;r++)Ca(fC[r],t);r=a;break;case"source":Ca("error",t),r=a;break;case"img":case"image":case"link":Ca("error",t),Ca("load",t),r=a;break;case"details":Ca("toggle",t),r=a;break;case"input":dH(t,a),r=Q6(t,a),Ca("invalid",t);break;case"option":r=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},r=Va({},a,{value:void 0}),Ca("invalid",t);break;case"textarea":AH(t,a),r=T6(t,a),Ca("invalid",t);break;default:r=a}R6(n,r),s=r;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?Lae(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Fae(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&j_(t,l):typeof l=="number"&&j_(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(O_.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Ca("scroll",t):l!=null&&SP(t,i,l,o))}switch(n){case"input":UE(t),pH(t,a,!1);break;case"textarea":UE(t),mH(t);break;case"option":a.value!=null&&t.setAttribute("value",""+qp(a.value));break;case"select":t.multiple=!!a.multiple,i=a.value,i!=null?Uf(t,!!a.multiple,i,!1):a.defaultValue!=null&&Uf(t,!!a.multiple,a.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=Z2)}switch(n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Si(e),null;case 6:if(t&&e.stateNode!=null)aie(t,e,t.memoizedProps,a);else{if(typeof a!="string"&&e.stateNode===null)throw Error(Et(166));if(n=Tm(J_.current),Tm(Gl.current),eB(e)){if(a=e.stateNode,n=e.memoizedProps,a[Fl]=e,(i=a.nodeValue!==n)&&(t=gs,t!==null))switch(t.tag){case 3:XE(a.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&XE(a.nodeValue,n,(t.mode&1)!==0)}i&&(e.flags|=4)}else a=(n.nodeType===9?n:n.ownerDocument).createTextNode(a),a[Fl]=e,e.stateNode=a}return Si(e),null;case 13:if(Ba(Ha),a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Ra&&As!==null&&e.mode&1&&!(e.flags&128))kre(),Yw(),e.flags|=98560,i=!1;else if(i=eB(e),a!==null&&a.dehydrated!==null){if(t===null){if(!i)throw Error(Et(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Et(317));i[Fl]=e}else Yw(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Si(e),i=!1}else Qc!==null&&(hR(Qc),Qc=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(e.child.flags|=8192,e.mode&1&&(t===null||Ha.current&1?zr===0&&(zr=3):A7())),e.updateQueue!==null&&(e.flags|=4),Si(e),null);case 4:return Zw(),cR(t,e),t===null&&Y_(e.stateNode.containerInfo),Si(e),null;case 10:return ZP(e.type._context),Si(e),null;case 17:return Yo(e.type)&&V2(),Si(e),null;case 19:if(Ba(Ha),i=e.memoizedState,i===null)return Si(e),null;if(a=(e.flags&128)!==0,o=i.rendering,o===null)if(a)Tv(i,!1);else{if(zr!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=rD(t),o!==null){for(e.flags|=128,Tv(i,!1),a=o.updateQueue,a!==null&&(e.updateQueue=a,e.flags|=4),e.subtreeFlags=0,a=n,n=e.child;n!==null;)i=n,t=a,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,t=o.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return ya(Ha,Ha.current&1|2),e.child}t=t.sibling}i.tail!==null&&gr()>Jw&&(e.flags|=128,a=!0,Tv(i,!1),e.lanes=4194304)}else{if(!a)if(t=rD(o),t!==null){if(e.flags|=128,a=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Tv(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ra)return Si(e),null}else 2*gr()-i.renderingStartTime>Jw&&n!==1073741824&&(e.flags|=128,a=!0,Tv(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(n=i.last,n!==null?n.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=gr(),e.sibling=null,n=Ha.current,ya(Ha,a?n&1|2:n&1),e):(Si(e),null);case 22:case 23:return p7(),a=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(e.flags|=8192),a&&e.mode&1?us&1073741824&&(Si(e),e.subtreeFlags&6&&(e.flags|=8192)):Si(e),null;case 24:return null;case 25:return null}throw Error(Et(156,e.tag))}function LFe(t,e){switch(HP(e),e.tag){case 1:return Yo(e.type)&&V2(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Zw(),Ba(Wo),Ba(Ui),t7(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return e7(e),null;case 13:if(Ba(Ha),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Et(340));Yw()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ba(Ha),null;case 4:return Zw(),null;case 10:return ZP(e.type._context),null;case 22:case 23:return p7(),null;case 24:return null;default:return null}}var aB=!1,ji=!1,RFe=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function xf(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(a){rr(t,e,a)}else n.current=null}function lR(t,e,n){try{n()}catch(a){rr(t,e,a)}}var aW=!1;function NFe(t,e){if(H6=W2,t=cre(),zP(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,d=0,p=t,A=null;t:for(;;){for(var m;p!==n||r!==0&&p.nodeType!==3||(s=o+r),p!==i||a!==0&&p.nodeType!==3||(l=o+a),p.nodeType===3&&(o+=p.nodeValue.length),(m=p.firstChild)!==null;)A=p,p=m;for(;;){if(p===t)break t;if(A===n&&++u===r&&(s=o),A===i&&++d===a&&(l=o),(m=p.nextSibling)!==null)break;p=A,A=p.parentNode}p=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(W6={focusedElem:t,selectionRange:n},W2=!1,Pt=e;Pt!==null;)if(e=Pt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Pt=t;else for(;Pt!==null;){e=Pt;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var h=g.memoizedProps,f=g.memoizedState,b=e.stateNode,w=b.getSnapshotBeforeUpdate(e.elementType===e.type?h:xc(e.type,h),f);b.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Et(163))}}catch(v){rr(e,e.return,v)}if(t=e.sibling,t!==null){t.return=e.return,Pt=t;break}Pt=e.return}return g=aW,aW=!1,g}function a_(t,e,n){var a=e.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var r=a=a.next;do{if((r.tag&t)===t){var i=r.destroy;r.destroy=void 0,i!==void 0&&lR(e,n,i)}r=r.next}while(r!==a)}}function ZS(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var a=n.create;n.destroy=a()}n=n.next}while(n!==e)}}function uR(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function rie(t){var e=t.alternate;e!==null&&(t.alternate=null,rie(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Fl],delete e[Z_],delete e[Z6],delete e[bFe],delete e[yFe])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function iie(t){return t.tag===5||t.tag===3||t.tag===4}function rW(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||iie(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function dR(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Z2));else if(a!==4&&(t=t.child,t!==null))for(dR(t,e,n),t=t.sibling;t!==null;)dR(t,e,n),t=t.sibling}function pR(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(pR(t,e,n),t=t.sibling;t!==null;)pR(t,e,n),t=t.sibling}var bi=null,Ic=!1;function Hd(t,e,n){for(n=n.child;n!==null;)oie(t,e,n),n=n.sibling}function oie(t,e,n){if(ql&&typeof ql.onCommitFiberUnmount=="function")try{ql.onCommitFiberUnmount(qS,n)}catch{}switch(n.tag){case 5:ji||xf(n,e);case 6:var a=bi,r=Ic;bi=null,Hd(t,e,n),bi=a,Ic=r,bi!==null&&(Ic?(t=bi,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):bi.removeChild(n.stateNode));break;case 18:bi!==null&&(Ic?(t=bi,n=n.stateNode,t.nodeType===8?S3(t.parentNode,n):t.nodeType===1&&S3(t,n),U_(t)):S3(bi,n.stateNode));break;case 4:a=bi,r=Ic,bi=n.stateNode.containerInfo,Ic=!0,Hd(t,e,n),bi=a,Ic=r;break;case 0:case 11:case 14:case 15:if(!ji&&(a=n.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){r=a=a.next;do{var i=r,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&lR(n,e,o),r=r.next}while(r!==a)}Hd(t,e,n);break;case 1:if(!ji&&(xf(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=n.memoizedProps,a.state=n.memoizedState,a.componentWillUnmount()}catch(s){rr(n,e,s)}Hd(t,e,n);break;case 21:Hd(t,e,n);break;case 22:n.mode&1?(ji=(a=ji)||n.memoizedState!==null,Hd(t,e,n),ji=a):Hd(t,e,n);break;default:Hd(t,e,n)}}function iW(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new RFe),e.forEach(function(a){var r=UFe.bind(null,t,a);n.has(a)||(n.add(a),a.then(r,r))})}}function kc(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a];try{var i=t,o=e,s=o;e:for(;s!==null;){switch(s.tag){case 5:bi=s.stateNode,Ic=!1;break e;case 3:bi=s.stateNode.containerInfo,Ic=!0;break e;case 4:bi=s.stateNode.containerInfo,Ic=!0;break e}s=s.return}if(bi===null)throw Error(Et(160));oie(i,o,r),bi=null,Ic=!1;var l=r.alternate;l!==null&&(l.return=null),r.return=null}catch(u){rr(r,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)sie(e,t),e=e.sibling}function sie(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(kc(e,t),ll(t),a&4){try{a_(3,t,t.return),ZS(3,t)}catch(h){rr(t,t.return,h)}try{a_(5,t,t.return)}catch(h){rr(t,t.return,h)}}break;case 1:kc(e,t),ll(t),a&512&&n!==null&&xf(n,n.return);break;case 5:if(kc(e,t),ll(t),a&512&&n!==null&&xf(n,n.return),t.flags&32){var r=t.stateNode;try{j_(r,"")}catch(h){rr(t,t.return,h)}}if(a&4&&(r=t.stateNode,r!=null)){var i=t.memoizedProps,o=n!==null?n.memoizedProps:i,s=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&Dae(r,i),N6(s,o);var u=N6(s,i);for(o=0;o<l.length;o+=2){var d=l[o],p=l[o+1];d==="style"?Lae(r,p):d==="dangerouslySetInnerHTML"?Fae(r,p):d==="children"?j_(r,p):SP(r,d,p,u)}switch(s){case"input":S6(r,i);break;case"textarea":Qae(r,i);break;case"select":var A=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Uf(r,!!i.multiple,m,!1):A!==!!i.multiple&&(i.defaultValue!=null?Uf(r,!!i.multiple,i.defaultValue,!0):Uf(r,!!i.multiple,i.multiple?[]:"",!1))}r[Z_]=i}catch(h){rr(t,t.return,h)}}break;case 6:if(kc(e,t),ll(t),a&4){if(t.stateNode===null)throw Error(Et(162));r=t.stateNode,i=t.memoizedProps;try{r.nodeValue=i}catch(h){rr(t,t.return,h)}}break;case 3:if(kc(e,t),ll(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{U_(e.containerInfo)}catch(h){rr(t,t.return,h)}break;case 4:kc(e,t),ll(t);break;case 13:kc(e,t),ll(t),r=t.child,r.flags&8192&&(i=r.memoizedState!==null,r.stateNode.isHidden=i,!i||r.alternate!==null&&r.alternate.memoizedState!==null||(u7=gr())),a&4&&iW(t);break;case 22:if(d=n!==null&&n.memoizedState!==null,t.mode&1?(ji=(u=ji)||d,kc(e,t),ji=u):kc(e,t),ll(t),a&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!d&&t.mode&1)for(Pt=t,d=t.child;d!==null;){for(p=Pt=d;Pt!==null;){switch(A=Pt,m=A.child,A.tag){case 0:case 11:case 14:case 15:a_(4,A,A.return);break;case 1:xf(A,A.return);var g=A.stateNode;if(typeof g.componentWillUnmount=="function"){a=A,n=A.return;try{e=a,g.props=e.memoizedProps,g.state=e.memoizedState,g.componentWillUnmount()}catch(h){rr(a,n,h)}}break;case 5:xf(A,A.return);break;case 22:if(A.memoizedState!==null){sW(p);continue}}m!==null?(m.return=A,Pt=m):sW(p)}d=d.sibling}e:for(d=null,p=t;;){if(p.tag===5){if(d===null){d=p;try{r=p.stateNode,u?(i=r.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=p.stateNode,l=p.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=Tae("display",o))}catch(h){rr(t,t.return,h)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(h){rr(t,t.return,h)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===t)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:kc(e,t),ll(t),a&4&&iW(t);break;case 21:break;default:kc(e,t),ll(t)}}function ll(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(iie(n)){var a=n;break e}n=n.return}throw Error(Et(160))}switch(a.tag){case 5:var r=a.stateNode;a.flags&32&&(j_(r,""),a.flags&=-33);var i=rW(t);pR(t,i,r);break;case 3:case 4:var o=a.stateNode.containerInfo,s=rW(t);dR(t,s,o);break;default:throw Error(Et(161))}}catch(l){rr(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function MFe(t,e,n){Pt=t,cie(t)}function cie(t,e,n){for(var a=(t.mode&1)!==0;Pt!==null;){var r=Pt,i=r.child;if(r.tag===22&&a){var o=r.memoizedState!==null||aB;if(!o){var s=r.alternate,l=s!==null&&s.memoizedState!==null||ji;s=aB;var u=ji;if(aB=o,(ji=l)&&!u)for(Pt=r;Pt!==null;)o=Pt,l=o.child,o.tag===22&&o.memoizedState!==null?cW(r):l!==null?(l.return=o,Pt=l):cW(r);for(;i!==null;)Pt=i,cie(i),i=i.sibling;Pt=r,aB=s,ji=u}oW(t)}else r.subtreeFlags&8772&&i!==null?(i.return=r,Pt=i):oW(t)}}function oW(t){for(;Pt!==null;){var e=Pt;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:ji||ZS(5,e);break;case 1:var a=e.stateNode;if(e.flags&4&&!ji)if(n===null)a.componentDidMount();else{var r=e.elementType===e.type?n.memoizedProps:xc(e.type,n.memoizedProps);a.componentDidUpdate(r,n.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&zH(e,i,a);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}zH(e,o,n)}break;case 5:var s=e.stateNode;if(n===null&&e.flags&4){n=s;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&U_(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Et(163))}ji||e.flags&512&&uR(e)}catch(A){rr(e,e.return,A)}}if(e===t){Pt=null;break}if(n=e.sibling,n!==null){n.return=e.return,Pt=n;break}Pt=e.return}}function sW(t){for(;Pt!==null;){var e=Pt;if(e===t){Pt=null;break}var n=e.sibling;if(n!==null){n.return=e.return,Pt=n;break}Pt=e.return}}function cW(t){for(;Pt!==null;){var e=Pt;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{ZS(4,e)}catch(l){rr(e,n,l)}break;case 1:var a=e.stateNode;if(typeof a.componentDidMount=="function"){var r=e.return;try{a.componentDidMount()}catch(l){rr(e,r,l)}}var i=e.return;try{uR(e)}catch(l){rr(e,i,l)}break;case 5:var o=e.return;try{uR(e)}catch(l){rr(e,o,l)}}}catch(l){rr(e,e.return,l)}if(e===t){Pt=null;break}var s=e.sibling;if(s!==null){s.return=e.return,Pt=s;break}Pt=e.return}}var $Fe=Math.ceil,sD=Dd.ReactCurrentDispatcher,c7=Dd.ReactCurrentOwner,cc=Dd.ReactCurrentBatchConfig,qn=0,ii=null,_r=null,vi=0,us=0,Ef=mA(0),zr=0,nx=null,og=0,VS=0,l7=0,r_=null,Po=null,u7=0,Jw=1/0,Lu=null,cD=!1,AR=null,Tp=null,rB=!1,fp=null,lD=0,i_=0,mR=null,II=-1,DI=0;function go(){return qn&6?gr():II!==-1?II:II=gr()}function Lp(t){return t.mode&1?qn&2&&vi!==0?vi&-vi:kFe.transition!==null?(DI===0&&(DI=Hae()),DI):(t=sa,t!==0||(t=window.event,t=t===void 0?16:Xae(t.type)),t):1}function Pc(t,e,n,a){if(50<i_)throw i_=0,mR=null,Error(Et(185));v1(t,n,a),(!(qn&2)||t!==ii)&&(t===ii&&(!(qn&2)&&(VS|=n),zr===4&&Ap(t,vi)),Ko(t,a),n===1&&qn===0&&!(e.mode&1)&&(Jw=gr()+500,WS&&gA()))}function Ko(t,e){var n=t.callbackNode;k4e(t,e);var a=H2(t,t===ii?vi:0);if(a===0)n!==null&&fH(n),t.callbackNode=null,t.callbackPriority=0;else if(e=a&-a,t.callbackPriority!==e){if(n!=null&&fH(n),e===1)t.tag===0?wFe(lW.bind(null,t)):bre(lW.bind(null,t)),hFe(function(){!(qn&6)&&gA()}),n=null;else{switch(Wae(a)){case 1:n=NP;break;case 4:n=zae;break;case 16:n=U2;break;case 536870912:n=Uae;break;default:n=U2}n=hie(n,lie.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function lie(t,e){if(II=-1,DI=0,qn&6)throw Error(Et(327));var n=t.callbackNode;if(Zf()&&t.callbackNode!==n)return null;var a=H2(t,t===ii?vi:0);if(a===0)return null;if(a&30||a&t.expiredLanes||e)e=uD(t,a);else{e=a;var r=qn;qn|=2;var i=die();(ii!==t||vi!==e)&&(Lu=null,Jw=gr()+500,Hm(t,e));do try{jFe();break}catch(s){uie(t,s)}while(!0);KP(),sD.current=i,qn=r,_r!==null?e=0:(ii=null,vi=0,e=zr)}if(e!==0){if(e===2&&(r=j6(t),r!==0&&(a=r,e=gR(t,r))),e===1)throw n=nx,Hm(t,0),Ap(t,a),Ko(t,gr()),n;if(e===6)Ap(t,a);else{if(r=t.current.alternate,!(a&30)&&!PFe(r)&&(e=uD(t,a),e===2&&(i=j6(t),i!==0&&(a=i,e=gR(t,i))),e===1))throw n=nx,Hm(t,0),Ap(t,a),Ko(t,gr()),n;switch(t.finishedWork=r,t.finishedLanes=a,e){case 0:case 1:throw Error(Et(345));case 2:JA(t,Po,Lu);break;case 3:if(Ap(t,a),(a&130023424)===a&&(e=u7+500-gr(),10<e)){if(H2(t,0)!==0)break;if(r=t.suspendedLanes,(r&a)!==a){go(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=K6(JA.bind(null,t,Po,Lu),e);break}JA(t,Po,Lu);break;case 4:if(Ap(t,a),(a&4194240)===a)break;for(e=t.eventTimes,r=-1;0<a;){var o=31-$c(a);i=1<<o,o=e[o],o>r&&(r=o),a&=~i}if(a=r,a=gr()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*$Fe(a/1960))-a,10<a){t.timeoutHandle=K6(JA.bind(null,t,Po,Lu),a);break}JA(t,Po,Lu);break;case 5:JA(t,Po,Lu);break;default:throw Error(Et(329))}}}return Ko(t,gr()),t.callbackNode===n?lie.bind(null,t):null}function gR(t,e){var n=r_;return t.current.memoizedState.isDehydrated&&(Hm(t,e).flags|=256),t=uD(t,e),t!==2&&(e=Po,Po=n,e!==null&&hR(e)),t}function hR(t){Po===null?Po=t:Po.push.apply(Po,t)}function PFe(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var a=0;a<n.length;a++){var r=n[a],i=r.getSnapshot;r=r.value;try{if(!Vc(i(),r))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ap(t,e){for(e&=~l7,e&=~VS,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-$c(e),a=1<<n;t[n]=-1,e&=~a}}function lW(t){if(qn&6)throw Error(Et(327));Zf();var e=H2(t,0);if(!(e&1))return Ko(t,gr()),null;var n=uD(t,e);if(t.tag!==0&&n===2){var a=j6(t);a!==0&&(e=a,n=gR(t,a))}if(n===1)throw n=nx,Hm(t,0),Ap(t,e),Ko(t,gr()),n;if(n===6)throw Error(Et(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,JA(t,Po,Lu),Ko(t,gr()),null}function d7(t,e){var n=qn;qn|=1;try{return t(e)}finally{qn=n,qn===0&&(Jw=gr()+500,WS&&gA())}}function sg(t){fp!==null&&fp.tag===0&&!(qn&6)&&Zf();var e=qn;qn|=1;var n=cc.transition,a=sa;try{if(cc.transition=null,sa=1,t)return t()}finally{sa=a,cc.transition=n,qn=e,!(qn&6)&&gA()}}function p7(){us=Ef.current,Ba(Ef)}function Hm(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,gFe(n)),_r!==null)for(n=_r.return;n!==null;){var a=n;switch(HP(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&V2();break;case 3:Zw(),Ba(Wo),Ba(Ui),t7();break;case 5:e7(a);break;case 4:Zw();break;case 13:Ba(Ha);break;case 19:Ba(Ha);break;case 10:ZP(a.type._context);break;case 22:case 23:p7()}n=n.return}if(ii=t,_r=t=Rp(t.current,null),vi=us=e,zr=0,nx=null,l7=VS=og=0,Po=r_=null,Fm!==null){for(e=0;e<Fm.length;e++)if(n=Fm[e],a=n.interleaved,a!==null){n.interleaved=null;var r=a.next,i=n.pending;if(i!==null){var o=i.next;i.next=r,a.next=o}n.pending=a}Fm=null}return t}function uie(t,e){do{var n=_r;try{if(KP(),xI.current=oD,iD){for(var a=Ka.memoizedState;a!==null;){var r=a.queue;r!==null&&(r.pending=null),a=a.next}iD=!1}if(ig=0,ti=$r=Ka=null,n_=!1,X_=0,c7.current=null,n===null||n.return===null){zr=1,nx=e,_r=null;break}e:{var i=t,o=n.return,s=n,l=e;if(e=vi,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=s,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===15)){var A=d.alternate;A?(d.updateQueue=A.updateQueue,d.memoizedState=A.memoizedState,d.lanes=A.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=ZH(o);if(m!==null){m.flags&=-257,VH(m,o,s,i,e),m.mode&1&&KH(i,u,e),e=m,l=u;var g=e.updateQueue;if(g===null){var h=new Set;h.add(l),e.updateQueue=h}else g.add(l);break e}else{if(!(e&1)){KH(i,u,e),A7();break e}l=Error(Et(426))}}else if(Ra&&s.mode&1){var f=ZH(o);if(f!==null){!(f.flags&65536)&&(f.flags|=256),VH(f,o,s,i,e),WP(Vw(l,s));break e}}i=l=Vw(l,s),zr!==4&&(zr=2),r_===null?r_=[i]:r_.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var b=Wre(i,l,e);GH(i,b);break e;case 1:s=l;var w=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof w.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Tp===null||!Tp.has(y)))){i.flags|=65536,e&=-e,i.lanes|=e;var v=Yre(i,s,e);GH(i,v);break e}}i=i.return}while(i!==null)}Aie(n)}catch(_){e=_,_r===n&&n!==null&&(_r=n=n.return);continue}break}while(!0)}function die(){var t=sD.current;return sD.current=oD,t===null?oD:t}function A7(){(zr===0||zr===3||zr===2)&&(zr=4),ii===null||!(og&268435455)&&!(VS&268435455)||Ap(ii,vi)}function uD(t,e){var n=qn;qn|=2;var a=die();(ii!==t||vi!==e)&&(Lu=null,Hm(t,e));do try{OFe();break}catch(r){uie(t,r)}while(!0);if(KP(),qn=n,sD.current=a,_r!==null)throw Error(Et(261));return ii=null,vi=0,zr}function OFe(){for(;_r!==null;)pie(_r)}function jFe(){for(;_r!==null&&!p4e();)pie(_r)}function pie(t){var e=gie(t.alternate,t,us);t.memoizedProps=t.pendingProps,e===null?Aie(t):_r=e,c7.current=null}function Aie(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=LFe(n,e),n!==null){n.flags&=32767,_r=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{zr=6,_r=null;return}}else if(n=TFe(n,e,us),n!==null){_r=n;return}if(e=e.sibling,e!==null){_r=e;return}_r=e=t}while(e!==null);zr===0&&(zr=5)}function JA(t,e,n){var a=sa,r=cc.transition;try{cc.transition=null,sa=1,qFe(t,e,n,a)}finally{cc.transition=r,sa=a}return null}function qFe(t,e,n,a){do Zf();while(fp!==null);if(qn&6)throw Error(Et(327));n=t.finishedWork;var r=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(Et(177));t.callbackNode=null,t.callbackPriority=0;var i=n.lanes|n.childLanes;if(v4e(t,i),t===ii&&(_r=ii=null,vi=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||rB||(rB=!0,hie(U2,function(){return Zf(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=cc.transition,cc.transition=null;var o=sa;sa=1;var s=qn;qn|=4,c7.current=null,NFe(t,n),sie(n,t),cFe(W6),W2=!!H6,W6=H6=null,t.current=n,MFe(n),A4e(),qn=s,sa=o,cc.transition=i}else t.current=n;if(rB&&(rB=!1,fp=t,lD=r),i=t.pendingLanes,i===0&&(Tp=null),h4e(n.stateNode),Ko(t,gr()),e!==null)for(a=t.onRecoverableError,n=0;n<e.length;n++)r=e[n],a(r.value,{componentStack:r.stack,digest:r.digest});if(cD)throw cD=!1,t=AR,AR=null,t;return lD&1&&t.tag!==0&&Zf(),i=t.pendingLanes,i&1?t===mR?i_++:(i_=0,mR=t):i_=0,gA(),null}function Zf(){if(fp!==null){var t=Wae(lD),e=cc.transition,n=sa;try{if(cc.transition=null,sa=16>t?16:t,fp===null)var a=!1;else{if(t=fp,fp=null,lD=0,qn&6)throw Error(Et(331));var r=qn;for(qn|=4,Pt=t.current;Pt!==null;){var i=Pt,o=i.child;if(Pt.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(Pt=u;Pt!==null;){var d=Pt;switch(d.tag){case 0:case 11:case 15:a_(8,d,i)}var p=d.child;if(p!==null)p.return=d,Pt=p;else for(;Pt!==null;){d=Pt;var A=d.sibling,m=d.return;if(rie(d),d===u){Pt=null;break}if(A!==null){A.return=m,Pt=A;break}Pt=m}}}var g=i.alternate;if(g!==null){var h=g.child;if(h!==null){g.child=null;do{var f=h.sibling;h.sibling=null,h=f}while(h!==null)}}Pt=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,Pt=o;else e:for(;Pt!==null;){if(i=Pt,i.flags&2048)switch(i.tag){case 0:case 11:case 15:a_(9,i,i.return)}var b=i.sibling;if(b!==null){b.return=i.return,Pt=b;break e}Pt=i.return}}var w=t.current;for(Pt=w;Pt!==null;){o=Pt;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,Pt=y;else e:for(o=w;Pt!==null;){if(s=Pt,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:ZS(9,s)}}catch(_){rr(s,s.return,_)}if(s===o){Pt=null;break e}var v=s.sibling;if(v!==null){v.return=s.return,Pt=v;break e}Pt=s.return}}if(qn=r,gA(),ql&&typeof ql.onPostCommitFiberRoot=="function")try{ql.onPostCommitFiberRoot(qS,t)}catch{}a=!0}return a}finally{sa=n,cc.transition=e}}return!1}function uW(t,e,n){e=Vw(n,e),e=Wre(t,e,1),t=Fp(t,e,1),e=go(),t!==null&&(v1(t,1,e),Ko(t,e))}function rr(t,e,n){if(t.tag===3)uW(t,t,n);else for(;e!==null;){if(e.tag===3){uW(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Tp===null||!Tp.has(a))){t=Vw(n,t),t=Yre(e,t,1),e=Fp(e,t,1),t=go(),e!==null&&(v1(e,1,t),Ko(e,t));break}}e=e.return}}function GFe(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),e=go(),t.pingedLanes|=t.suspendedLanes&n,ii===t&&(vi&n)===n&&(zr===4||zr===3&&(vi&130023424)===vi&&500>gr()-u7?Hm(t,0):l7|=n),Ko(t,e)}function mie(t,e){e===0&&(t.mode&1?(e=YE,YE<<=1,!(YE&130023424)&&(YE=4194304)):e=1);var n=go();t=ud(t,e),t!==null&&(v1(t,e,n),Ko(t,n))}function zFe(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),mie(t,n)}function UFe(t,e){var n=0;switch(t.tag){case 13:var a=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(Et(314))}a!==null&&a.delete(e),mie(t,n)}var gie;gie=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Wo.current)Uo=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Uo=!1,FFe(t,e,n);Uo=!!(t.flags&131072)}else Uo=!1,Ra&&e.flags&1048576&&yre(e,eD,e.index);switch(e.lanes=0,e.tag){case 2:var a=e.type;BI(t,e),t=e.pendingProps;var r=Ww(e,Ui.current);Kf(e,n),r=a7(null,e,a,t,r,n);var i=r7();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Yo(a)?(i=!0,J2(e)):i=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,JP(e),r.updater=KS,e.stateNode=r,r._reactInternals=e,nR(e,a,t,n),e=iR(null,e,a,!0,i,n)):(e.tag=0,Ra&&i&&UP(e),ao(null,e,r,n),e=e.child),e;case 16:a=e.elementType;e:{switch(BI(t,e),t=e.pendingProps,r=a._init,a=r(a._payload),e.type=a,r=e.tag=WFe(a),t=xc(a,t),r){case 0:e=rR(null,e,a,t,n);break e;case 1:e=eW(null,e,a,t,n);break e;case 11:e=JH(null,e,a,t,n);break e;case 14:e=XH(null,e,a,xc(a.type,t),n);break e}throw Error(Et(306,a,""))}return e;case 0:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:xc(a,r),rR(t,e,a,r,n);case 1:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:xc(a,r),eW(t,e,a,r,n);case 3:e:{if(Jre(e),t===null)throw Error(Et(387));a=e.pendingProps,i=e.memoizedState,r=i.element,xre(t,e),aD(e,a,null,n);var o=e.memoizedState;if(a=o.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){r=Vw(Error(Et(423)),e),e=tW(t,e,a,n,r);break e}else if(a!==r){r=Vw(Error(Et(424)),e),e=tW(t,e,a,n,r);break e}else for(As=Sp(e.stateNode.containerInfo.firstChild),gs=e,Ra=!0,Qc=null,n=Cre(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yw(),a===r){e=dd(t,e,n);break e}ao(t,e,a,n)}e=e.child}return e;case 5:return Ere(e),t===null&&X6(e),a=e.type,r=e.pendingProps,i=t!==null?t.memoizedProps:null,o=r.children,Y6(a,r)?o=null:i!==null&&Y6(a,i)&&(e.flags|=32),Vre(t,e),ao(t,e,o,n),e.child;case 6:return t===null&&X6(e),null;case 13:return Xre(t,e,n);case 4:return XP(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Kw(e,null,a,n):ao(t,e,a,n),e.child;case 11:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:xc(a,r),JH(t,e,a,r,n);case 7:return ao(t,e,e.pendingProps,n),e.child;case 8:return ao(t,e,e.pendingProps.children,n),e.child;case 12:return ao(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(a=e.type._context,r=e.pendingProps,i=e.memoizedProps,o=r.value,ya(tD,a._currentValue),a._currentValue=o,i!==null)if(Vc(i.value,o)){if(i.children===r.children&&!Wo.current){e=dd(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===a){if(i.tag===1){l=nd(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),eR(i.return,n,e),s.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(Et(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),eR(o,n,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ao(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,a=e.pendingProps.children,Kf(e,n),r=uc(r),a=a(r),e.flags|=1,ao(t,e,a,n),e.child;case 14:return a=e.type,r=xc(a,e.pendingProps),r=xc(a.type,r),XH(t,e,a,r,n);case 15:return Kre(t,e,e.type,e.pendingProps,n);case 17:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:xc(a,r),BI(t,e),e.tag=1,Yo(a)?(t=!0,J2(e)):t=!1,Kf(e,n),Hre(e,a,r),nR(e,a,r,n),iR(null,e,a,!0,t,n);case 19:return eie(t,e,n);case 22:return Zre(t,e,n)}throw Error(Et(156,e.tag))};function hie(t,e){return Gae(t,e)}function HFe(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nc(t,e,n,a){return new HFe(t,e,n,a)}function m7(t){return t=t.prototype,!(!t||!t.isReactComponent)}function WFe(t){if(typeof t=="function")return m7(t)?1:0;if(t!=null){if(t=t.$$typeof,t===TP)return 11;if(t===LP)return 14}return 2}function Rp(t,e){var n=t.alternate;return n===null?(n=nc(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function QI(t,e,n,a,r,i){var o=2;if(a=t,typeof t=="function")m7(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case hf:return Wm(n.children,r,i,e);case FP:o=8,r|=8;break;case E6:return t=nc(12,n,e,r|2),t.elementType=E6,t.lanes=i,t;case B6:return t=nc(13,n,e,r),t.elementType=B6,t.lanes=i,t;case I6:return t=nc(19,n,e,r),t.elementType=I6,t.lanes=i,t;case Eae:return JS(n,r,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _ae:o=10;break e;case xae:o=9;break e;case TP:o=11;break e;case LP:o=14;break e;case tp:o=16,a=null;break e}throw Error(Et(130,t==null?t:typeof t,""))}return e=nc(o,n,e,r),e.elementType=t,e.type=a,e.lanes=i,e}function Wm(t,e,n,a){return t=nc(7,t,a,e),t.lanes=n,t}function JS(t,e,n,a){return t=nc(22,t,a,e),t.elementType=Eae,t.lanes=n,t.stateNode={isHidden:!1},t}function P3(t,e,n){return t=nc(6,t,null,e),t.lanes=n,t}function O3(t,e,n){return e=nc(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function YFe(t,e,n,a,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=w3(0),this.expirationTimes=w3(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=w3(0),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function g7(t,e,n,a,r,i,o,s,l){return t=new YFe(t,e,n,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=nc(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},JP(i),t}function KFe(t,e,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gf,key:a==null?null:""+a,children:t,containerInfo:e,implementation:n}}function fie(t){if(!t)return Gp;t=t._reactInternals;e:{if(Rg(t)!==t||t.tag!==1)throw Error(Et(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Yo(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(Et(171))}if(t.tag===1){var n=t.type;if(Yo(n))return fre(t,n,e)}return e}function bie(t,e,n,a,r,i,o,s,l){return t=g7(n,a,!0,t,r,i,o,s,l),t.context=fie(null),n=t.current,a=go(),r=Lp(n),i=nd(a,r),i.callback=e??null,Fp(n,i,r),t.current.lanes=r,v1(t,r,a),Ko(t,a),t}function XS(t,e,n,a){var r=e.current,i=go(),o=Lp(r);return n=fie(n),e.context===null?e.context=n:e.pendingContext=n,e=nd(i,o),e.payload={element:t},a=a===void 0?null:a,a!==null&&(e.callback=a),t=Fp(r,e,o),t!==null&&(Pc(t,r,o,i),_I(t,r,o)),o}function dD(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function dW(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function h7(t,e){dW(t,e),(t=t.alternate)&&dW(t,e)}function ZFe(){return null}var yie=typeof reportError=="function"?reportError:function(t){console.error(t)};function f7(t){this._internalRoot=t}e4.prototype.render=f7.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(Et(409));XS(t,e,null,null)};e4.prototype.unmount=f7.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;sg(function(){XS(null,t,null,null)}),e[ld]=null}};function e4(t){this._internalRoot=t}e4.prototype.unstable_scheduleHydration=function(t){if(t){var e=Zae();t={blockedOn:null,target:t,priority:e};for(var n=0;n<pp.length&&e!==0&&e<pp[n].priority;n++);pp.splice(n,0,t),n===0&&Jae(t)}};function b7(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function t4(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function pW(){}function VFe(t,e,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var u=dD(o);i.call(u)}}var o=bie(e,a,t,0,null,!1,!1,"",pW);return t._reactRootContainer=o,t[ld]=o.current,Y_(t.nodeType===8?t.parentNode:t),sg(),o}for(;r=t.lastChild;)t.removeChild(r);if(typeof a=="function"){var s=a;a=function(){var u=dD(l);s.call(u)}}var l=g7(t,0,!1,null,null,!1,!1,"",pW);return t._reactRootContainer=l,t[ld]=l.current,Y_(t.nodeType===8?t.parentNode:t),sg(function(){XS(e,l,n,a)}),l}function n4(t,e,n,a,r){var i=n._reactRootContainer;if(i){var o=i;if(typeof r=="function"){var s=r;r=function(){var l=dD(o);s.call(l)}}XS(e,o,t,r)}else o=VFe(n,e,t,r,a);return dD(o)}Yae=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=hC(e.pendingLanes);n!==0&&(MP(e,n|1),Ko(e,gr()),!(qn&6)&&(Jw=gr()+500,gA()))}break;case 13:sg(function(){var a=ud(t,1);if(a!==null){var r=go();Pc(a,t,1,r)}}),h7(t,1)}};$P=function(t){if(t.tag===13){var e=ud(t,134217728);if(e!==null){var n=go();Pc(e,t,134217728,n)}h7(t,134217728)}};Kae=function(t){if(t.tag===13){var e=Lp(t),n=ud(t,e);if(n!==null){var a=go();Pc(n,t,e,a)}h7(t,e)}};Zae=function(){return sa};Vae=function(t,e){var n=sa;try{return sa=t,e()}finally{sa=n}};$6=function(t,e,n){switch(e){case"input":if(S6(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var r=HS(a);if(!r)throw Error(Et(90));Iae(a),S6(a,r)}}}break;case"textarea":Qae(t,n);break;case"select":e=n.value,e!=null&&Uf(t,!!n.multiple,e,!1)}};Mae=d7;$ae=sg;var JFe={usingClientEntryPoint:!1,Events:[_1,wf,HS,Rae,Nae,d7]},Lv={findFiberByHostInstance:Sm,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},XFe={bundleType:Lv.bundleType,version:Lv.version,rendererPackageName:Lv.rendererPackageName,rendererConfig:Lv.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dd.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=jae(t),t===null?null:t.stateNode},findFiberByHostInstance:Lv.findFiberByHostInstance||ZFe,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 iB=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iB.isDisabled&&iB.supportsFiber)try{qS=iB.inject(XFe),ql=iB}catch{}}Bs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JFe;Bs.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b7(e))throw Error(Et(200));return KFe(t,e,null,n)};Bs.createRoot=function(t,e){if(!b7(t))throw Error(Et(299));var n=!1,a="",r=yie;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onRecoverableError!==void 0&&(r=e.onRecoverableError)),e=g7(t,1,!1,null,null,n,!1,a,r),t[ld]=e.current,Y_(t.nodeType===8?t.parentNode:t),new f7(e)};Bs.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(Et(188)):(t=Object.keys(t).join(","),Error(Et(268,t)));return t=jae(e),t=t===null?null:t.stateNode,t};Bs.flushSync=function(t){return sg(t)};Bs.hydrate=function(t,e,n){if(!t4(e))throw Error(Et(200));return n4(null,t,e,!0,n)};Bs.hydrateRoot=function(t,e,n){if(!b7(t))throw Error(Et(405));var a=n!=null&&n.hydratedSources||null,r=!1,i="",o=yie;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=bie(e,null,t,1,n??null,r,!1,i,o),t[ld]=e.current,Y_(t),a)for(t=0;t<a.length;t++)n=a[t],r=n._getVersion,r=r(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,r]:e.mutableSourceEagerHydrationData.push(n,r);return new e4(e)};Bs.render=function(t,e,n){if(!t4(e))throw Error(Et(200));return n4(null,t,e,!1,n)};Bs.unmountComponentAtNode=function(t){if(!t4(t))throw Error(Et(40));return t._reactRootContainer?(sg(function(){n4(null,null,t,!1,function(){t._reactRootContainer=null,t[ld]=null})}),!0):!1};Bs.unstable_batchedUpdates=d7;Bs.unstable_renderSubtreeIntoContainer=function(t,e,n,a){if(!t4(n))throw Error(Et(200));if(t==null||t._reactInternals===void 0)throw Error(Et(38));return n4(t,e,n,!1,a)};Bs.version="18.3.1-next-f1338f8080-20240426";function wie(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wie)}catch(t){console.error(t)}}wie(),wae.exports=Bs;var kie=wae.exports,AW=kie;_6.createRoot=AW.createRoot,_6.hydrateRoot=AW.hydrateRoot;function eTe(t){const e=new Date(t),a=new Date().getTime()-e.getTime(),r=Math.floor(a/6e4),i=Math.floor(r/60),o=Math.floor(i/24);return r<1?"just now":r<60?`${r} minute${r===1?"":"s"} ago`:i<24?`${i} hour${i===1?"":"s"} ago`:`${o} day${o===1?"":"s"} ago`}function tTe({dossier:t}){return tt.jsxs("header",{className:"header",children:[tt.jsxs("div",{className:"header-left",children:[tt.jsxs("div",{className:"wordmark",children:[tt.jsx("span",{className:"wordmark-glyph",children:"◈"}),"vibe-splain"]}),tt.jsx("div",{className:"project-path",children:t.projectRoot})]}),tt.jsxs("div",{className:"header-center",children:["Analyzed ",eTe(t.scannedAt)]}),tt.jsxs("div",{className:"header-right",children:[t.stalePaths.length>0&&tt.jsxs("span",{className:"stale-badge",children:["⚠ ",t.stalePaths.length," STALE"]}),tt.jsx("button",{className:"refresh-btn",onClick:()=>window.location.reload(),children:"↺ Refresh"})]})]})}function nTe({pillars:t,wildCount:e,activePillar:n,onSelect:a}){return tt.jsxs("div",{className:"tab-bar",children:[t.map(r=>tt.jsxs("button",{className:`tab ${n===r.name?"active":""}`,onClick:()=>a(r.name),children:[r.name,tt.jsx("span",{className:"tab-count",children:r.cardCount})]},r.name)),e>0&&tt.jsxs("button",{className:`tab wild ${n==="Wild Discoveries"?"active":""}`,onClick:()=>a("Wild Discoveries"),children:["⚡ Wild Discoveries",tt.jsx("span",{className:"tab-count",children:e})]})]})}const aTe="modulepreload",rTe=function(t,e){return new URL(t,e).href},mW={},me=function(e,n,a){let r=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));r=Promise.allSettled(n.map(u=>{if(u=rTe(u,a),u in mW)return;mW[u]=!0;const d=u.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(!!a)for(let g=o.length-1;g>=0;g--){const h=o[g];if(h.href===u&&(!d||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${p}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":aTe,d||(m.as="script"),m.crossOrigin="",m.href=u,l&&m.setAttribute("nonce",l),document.head.appendChild(m),d)return new Promise((g,h)=>{m.addEventListener("load",g),m.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return r.then(o=>{for(const s of o||[])s.status==="rejected"&&i(s.reason);return e().catch(i)})};var vie={exports:{}};(function(t,e){(function(n,a){t.exports=a()})(al,function(){var n=1e3,a=6e4,r=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",d="week",p="month",A="quarter",m="year",g="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|YYYY|YY|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,w={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(I){var Q=["th","st","nd","rd"],N=I%100;return"["+I+(Q[(N-20)%10]||Q[N]||Q[0])+"]"}},y=function(I,Q,N){var R=String(I);return!R||R.length>=Q?I:""+Array(Q+1-R.length).join(N)+I},v={s:y,z:function(I){var Q=-I.utcOffset(),N=Math.abs(Q),R=Math.floor(N/60),S=N%60;return(Q<=0?"+":"-")+y(R,2,"0")+":"+y(S,2,"0")},m:function I(Q,N){if(Q.date()<N.date())return-I(N,Q);var R=12*(N.year()-Q.year())+(N.month()-Q.month()),S=Q.clone().add(R,p),L=N-S<0,M=Q.clone().add(R+(L?-1:1),p);return+(-(R+(N-S)/(L?S-M:M-S))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:p,y:m,w:d,d:u,D:g,h:l,m:s,s:o,ms:i,Q:A}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},_="en",x={};x[_]=w;var C="$isDayjsObject",B=function(I){return I instanceof O||!(!I||!I[C])},D=function I(Q,N,R){var S;if(!Q)return _;if(typeof Q=="string"){var L=Q.toLowerCase();x[L]&&(S=L),N&&(x[L]=N,S=L);var M=Q.split("-");if(!S&&M.length>1)return I(M[0])}else{var $=Q.name;x[$]=Q,S=$}return!R&&S&&(_=S),S||!R&&_},T=function(I,Q){if(B(I))return I.clone();var N=typeof Q=="object"?Q:{};return N.date=I,N.args=arguments,new O(N)},F=v;F.l=D,F.i=B,F.w=function(I,Q){return T(I,{locale:Q.$L,utc:Q.$u,x:Q.$x,$offset:Q.$offset})};var O=function(){function I(N){this.$L=D(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[C]=!0}var Q=I.prototype;return Q.parse=function(N){this.$d=function(R){var S=R.date,L=R.utc;if(S===null)return new Date(NaN);if(F.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var M=S.match(f);if(M){var $=M[2]-1||0,j=(M[7]||"0").substring(0,3);return L?new Date(Date.UTC(M[1],$,M[3]||1,M[4]||0,M[5]||0,M[6]||0,j)):new Date(M[1],$,M[3]||1,M[4]||0,M[5]||0,M[6]||0,j)}}return new Date(S)}(N),this.init()},Q.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},Q.$utils=function(){return F},Q.isValid=function(){return this.$d.toString()!==h},Q.isSame=function(N,R){var S=T(N);return this.startOf(R)<=S&&S<=this.endOf(R)},Q.isAfter=function(N,R){return T(N)<this.startOf(R)},Q.isBefore=function(N,R){return this.endOf(R)<T(N)},Q.$g=function(N,R,S){return F.u(N)?this[R]:this.set(S,N)},Q.unix=function(){return Math.floor(this.valueOf()/1e3)},Q.valueOf=function(){return this.$d.getTime()},Q.startOf=function(N,R){var S=this,L=!!F.u(R)||R,M=F.p(N),$=function(V,X){var ee=F.w(S.$u?Date.UTC(S.$y,X,V):new Date(S.$y,X,V),S);return L?ee:ee.endOf(u)},j=function(V,X){return F.w(S.toDate()[V].apply(S.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(X)),S)},q=this.$W,U=this.$M,z=this.$D,J="set"+(this.$u?"UTC":"");switch(M){case m:return L?$(1,0):$(31,11);case p:return L?$(1,U):$(0,U+1);case d:var W=this.$locale().weekStart||0,se=(q<W?q+7:q)-W;return $(L?z-se:z+(6-se),U);case u:case g:return j(J+"Hours",0);case l:return j(J+"Minutes",1);case s:return j(J+"Seconds",2);case o:return j(J+"Milliseconds",3);default:return this.clone()}},Q.endOf=function(N){return this.startOf(N,!1)},Q.$set=function(N,R){var S,L=F.p(N),M="set"+(this.$u?"UTC":""),$=(S={},S[u]=M+"Date",S[g]=M+"Date",S[p]=M+"Month",S[m]=M+"FullYear",S[l]=M+"Hours",S[s]=M+"Minutes",S[o]=M+"Seconds",S[i]=M+"Milliseconds",S)[L],j=L===u?this.$D+(R-this.$W):R;if(L===p||L===m){var q=this.clone().set(g,1);q.$d[$](j),q.init(),this.$d=q.set(g,Math.min(this.$D,q.daysInMonth())).$d}else $&&this.$d[$](j);return this.init(),this},Q.set=function(N,R){return this.clone().$set(N,R)},Q.get=function(N){return this[F.p(N)]()},Q.add=function(N,R){var S,L=this;N=Number(N);var M=F.p(R),$=function(U){var z=T(L);return F.w(z.date(z.date()+Math.round(U*N)),L)};if(M===p)return this.set(p,this.$M+N);if(M===m)return this.set(m,this.$y+N);if(M===u)return $(1);if(M===d)return $(7);var j=(S={},S[s]=a,S[l]=r,S[o]=n,S)[M]||1,q=this.$d.getTime()+N*j;return F.w(q,this)},Q.subtract=function(N,R){return this.add(-1*N,R)},Q.format=function(N){var R=this,S=this.$locale();if(!this.isValid())return S.invalidDate||h;var L=N||"YYYY-MM-DDTHH:mm:ssZ",M=F.z(this),$=this.$H,j=this.$m,q=this.$M,U=S.weekdays,z=S.months,J=S.meridiem,W=function(X,ee,te,ce){return X&&(X[ee]||X(R,L))||te[ee].slice(0,ce)},se=function(X){return F.s($%12||12,X,"0")},V=J||function(X,ee,te){var ce=X<12?"AM":"PM";return te?ce.toLowerCase():ce};return L.replace(b,function(X,ee){return ee||function(te){switch(te){case"YY":return String(R.$y).slice(-2);case"YYYY":return F.s(R.$y,4,"0");case"M":return q+1;case"MM":return F.s(q+1,2,"0");case"MMM":return W(S.monthsShort,q,z,3);case"MMMM":return W(z,q);case"D":return R.$D;case"DD":return F.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return W(S.weekdaysMin,R.$W,U,2);case"ddd":return W(S.weekdaysShort,R.$W,U,3);case"dddd":return U[R.$W];case"H":return String($);case"HH":return F.s($,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return V($,j,!0);case"A":return V($,j,!1);case"m":return String(j);case"mm":return F.s(j,2,"0");case"s":return String(R.$s);case"ss":return F.s(R.$s,2,"0");case"SSS":return F.s(R.$ms,3,"0");case"Z":return M}return null}(X)||M.replace(":","")})},Q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Q.diff=function(N,R,S){var L,M=this,$=F.p(R),j=T(N),q=(j.utcOffset()-this.utcOffset())*a,U=this-j,z=function(){return F.m(M,j)};switch($){case m:L=z()/12;break;case p:L=z();break;case A:L=z()/3;break;case d:L=(U-q)/6048e5;break;case u:L=(U-q)/864e5;break;case l:L=U/r;break;case s:L=U/a;break;case o:L=U/n;break;default:L=U}return S?L:F.a(L)},Q.daysInMonth=function(){return this.endOf(p).$D},Q.$locale=function(){return x[this.$L]},Q.locale=function(N,R){if(!N)return this.$L;var S=this.clone(),L=D(N,R,!0);return L&&(S.$L=L),S},Q.clone=function(){return F.w(this.$d,this)},Q.toDate=function(){return new Date(this.valueOf())},Q.toJSON=function(){return this.isValid()?this.toISOString():null},Q.toISOString=function(){return this.$d.toISOString()},Q.toString=function(){return this.$d.toUTCString()},I}(),P=O.prototype;return T.prototype=P,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",p],["$y",m],["$D",g]].forEach(function(I){P[I[1]]=function(Q){return this.$g(Q,I[0],I[1])}}),T.extend=function(I,Q){return I.$i||(I(Q,O,T),I.$i=!0),T},T.locale=D,T.isDayjs=B,T.unix=function(I){return T(1e3*I)},T.en=x[_],T.Ls=x,T.p={},T})})(vie);var iTe=vie.exports;const ri=pA(iTe);var Cie=Object.defineProperty,k=(t,e)=>Cie(t,"name",{value:e,configurable:!0}),a4=(t,e)=>{for(var n in e)Cie(t,n,{get:e[n],enumerable:!0})},wu={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ne={trace:k((...t)=>{},"trace"),debug:k((...t)=>{},"debug"),info:k((...t)=>{},"info"),warn:k((...t)=>{},"warn"),error:k((...t)=>{},"error"),fatal:k((...t)=>{},"fatal")},y7=k(function(t="fatal"){let e=wu.fatal;typeof t=="string"?t.toLowerCase()in wu&&(e=wu[t]):typeof t=="number"&&(e=t),ne.trace=()=>{},ne.debug=()=>{},ne.info=()=>{},ne.warn=()=>{},ne.error=()=>{},ne.fatal=()=>{},e<=wu.fatal&&(ne.fatal=console.error?console.error.bind(console,qs("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",qs("FATAL"))),e<=wu.error&&(ne.error=console.error?console.error.bind(console,qs("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",qs("ERROR"))),e<=wu.warn&&(ne.warn=console.warn?console.warn.bind(console,qs("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",qs("WARN"))),e<=wu.info&&(ne.info=console.info?console.info.bind(console,qs("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",qs("INFO"))),e<=wu.debug&&(ne.debug=console.debug?console.debug.bind(console,qs("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",qs("DEBUG"))),e<=wu.trace&&(ne.trace=console.debug?console.debug.bind(console,qs("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",qs("TRACE")))},"setLogLevel"),qs=k(t=>`%c${ri().format("ss.SSS")} : ${t} : `,"format");const SI={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},a)=>{if(!e)return n*2.55;t/=360,e/=100,n/=100;const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r;switch(a){case"r":return SI.hue2rgb(i,r,t+1/3)*255;case"g":return SI.hue2rgb(i,r,t)*255;case"b":return SI.hue2rgb(i,r,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:n},a)=>{t/=255,e/=255,n/=255;const r=Math.max(t,e,n),i=Math.min(t,e,n),o=(r+i)/2;if(a==="l")return o*100;if(r===i)return 0;const s=r-i,l=o>.5?s/(2-r-i):s/(r+i);if(a==="s")return l*100;switch(r){case t:return((e-n)/s+(e<n?6:0))*60;case e:return((n-t)/s+2)*60;case n:return((t-e)/s+4)*60;default:return-1}}},oTe={clamp:(t,e,n)=>e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},sTe={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},gn={channel:SI,lang:oTe,unit:sTe},Xd={};for(let t=0;t<=255;t++)Xd[t]=gn.unit.dec2hex(t);const Ri={ALL:0,RGB:1,HSL:2};let cTe=class{constructor(){this.type=Ri.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Ri.ALL}is(e){return this.type===e}};class lTe{constructor(e,n){this.color=n,this.changed=!1,this.data=e,this.type=new cTe}set(e,n){return this.color=n,this.changed=!1,this.data=e,this.type.type=Ri.ALL,this}_ensureHSL(){const e=this.data,{h:n,s:a,l:r}=e;n===void 0&&(e.h=gn.channel.rgb2hsl(e,"h")),a===void 0&&(e.s=gn.channel.rgb2hsl(e,"s")),r===void 0&&(e.l=gn.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:n,g:a,b:r}=e;n===void 0&&(e.r=gn.channel.hsl2rgb(e,"r")),a===void 0&&(e.g=gn.channel.hsl2rgb(e,"g")),r===void 0&&(e.b=gn.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,n=e.r;return!this.type.is(Ri.HSL)&&n!==void 0?n:(this._ensureHSL(),gn.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,n=e.g;return!this.type.is(Ri.HSL)&&n!==void 0?n:(this._ensureHSL(),gn.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,n=e.b;return!this.type.is(Ri.HSL)&&n!==void 0?n:(this._ensureHSL(),gn.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,n=e.h;return!this.type.is(Ri.RGB)&&n!==void 0?n:(this._ensureRGB(),gn.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,n=e.s;return!this.type.is(Ri.RGB)&&n!==void 0?n:(this._ensureRGB(),gn.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,n=e.l;return!this.type.is(Ri.RGB)&&n!==void 0?n:(this._ensureRGB(),gn.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Ri.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Ri.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Ri.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Ri.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Ri.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Ri.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const r4=new lTe({r:0,g:0,b:0,a:0},"transparent"),Vf={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Vf.re);if(!e)return;const n=e[1],a=parseInt(n,16),r=n.length,i=r%4===0,o=r>4,s=o?1:17,l=o?8:4,u=i?0:-1,d=o?255:15;return r4.set({r:(a>>l*(u+3)&d)*s,g:(a>>l*(u+2)&d)*s,b:(a>>l*(u+1)&d)*s,a:i?(a&d)*s/255:1},t)},stringify:t=>{const{r:e,g:n,b:a,a:r}=t;return r<1?`#${Xd[Math.round(e)]}${Xd[Math.round(n)]}${Xd[Math.round(a)]}${Xd[Math.round(r*255)]}`:`#${Xd[Math.round(e)]}${Xd[Math.round(n)]}${Xd[Math.round(a)]}`}},Lm={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:t=>{const e=t.match(Lm.hueRe);if(e){const[,n,a]=e;switch(a){case"grad":return gn.channel.clamp.h(parseFloat(n)*.9);case"rad":return gn.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return gn.channel.clamp.h(parseFloat(n)*360)}}return gn.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const n=t.match(Lm.re);if(!n)return;const[,a,r,i,o,s]=n;return r4.set({h:Lm._hue2deg(a),s:gn.channel.clamp.s(parseFloat(r)),l:gn.channel.clamp.l(parseFloat(i)),a:o?gn.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:n,l:a,a:r}=t;return r<1?`hsla(${gn.lang.round(e)}, ${gn.lang.round(n)}%, ${gn.lang.round(a)}%, ${r})`:`hsl(${gn.lang.round(e)}, ${gn.lang.round(n)}%, ${gn.lang.round(a)}%)`}},o_={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:t=>{t=t.toLowerCase();const e=o_.colors[t];if(e)return Vf.parse(e)},stringify:t=>{const e=Vf.stringify(t);for(const n in o_.colors)if(o_.colors[n]===e)return n}},bC={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:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const n=t.match(bC.re);if(!n)return;const[,a,r,i,o,s,l,u,d]=n;return r4.set({r:gn.channel.clamp.r(r?parseFloat(a)*2.55:parseFloat(a)),g:gn.channel.clamp.g(o?parseFloat(i)*2.55:parseFloat(i)),b:gn.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:u?gn.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:n,b:a,a:r}=t;return r<1?`rgba(${gn.lang.round(e)}, ${gn.lang.round(n)}, ${gn.lang.round(a)}, ${gn.lang.round(r)})`:`rgb(${gn.lang.round(e)}, ${gn.lang.round(n)}, ${gn.lang.round(a)})`}},Jc={format:{keyword:o_,hex:Vf,rgb:bC,rgba:bC,hsl:Lm,hsla:Lm},parse:t=>{if(typeof t!="string")return t;const e=Vf.parse(t)||bC.parse(t)||Lm.parse(t)||o_.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(Ri.HSL)||t.data.r===void 0?Lm.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?bC.stringify(t):Vf.stringify(t)},_ie=(t,e)=>{const n=Jc.parse(t);for(const a in e)n[a]=gn.channel.clamp[a](e[a]);return Jc.stringify(n)},Oc=(t,e,n=0,a=1)=>{if(typeof t!="number")return _ie(t,{a:e});const r=r4.set({r:gn.channel.clamp.r(t),g:gn.channel.clamp.g(e),b:gn.channel.clamp.b(n),a:gn.channel.clamp.a(a)});return Jc.stringify(r)},w7=(t,e)=>gn.lang.round(Jc.parse(t)[e]),uTe=t=>{const{r:e,g:n,b:a}=Jc.parse(t),r=.2126*gn.channel.toLinear(e)+.7152*gn.channel.toLinear(n)+.0722*gn.channel.toLinear(a);return gn.lang.round(r)},dTe=t=>uTe(t)>=.5,Bo=t=>!dTe(t),k7=(t,e,n)=>{const a=Jc.parse(t),r=a[e],i=gn.channel.clamp[e](r+n);return r!==i&&(a[e]=i),Jc.stringify(a)},Xe=(t,e)=>k7(t,"l",e),et=(t,e)=>k7(t,"l",-e),gW=(t,e)=>k7(t,"a",-e),re=(t,e)=>{const n=Jc.parse(t),a={};for(const r in e)e[r]&&(a[r]=n[r]+e[r]);return _ie(t,a)},pTe=(t,e,n=50)=>{const{r:a,g:r,b:i,a:o}=Jc.parse(t),{r:s,g:l,b:u,a:d}=Jc.parse(e),p=n/100,A=p*2-1,m=o-d,h=((A*m===-1?A:(A+m)/(1+A*m))+1)/2,f=1-h,b=a*h+s*f,w=r*h+l*f,y=i*h+u*f,v=o*p+d*(1-p);return Oc(b,w,y,v)},Ge=(t,e=100)=>{const n=Jc.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,pTe(n,t,e)};/*! @license DOMPurify 3.4.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.9/LICENSE */function hW(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}function ATe(t){if(Array.isArray(t))return t}function mTe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a,r,i,o,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(a=i.call(n)).done)&&(s.push(a.value),s.length!==e);l=!0);}catch(d){u=!0,r=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw r}}return s}}function gTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
52
52
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hTe(t,e){return ATe(t)||mTe(t,e)||fTe(t,e)||gTe()}function fTe(t,e){if(t){if(typeof t=="string")return hW(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hW(t,e):void 0}}const xie=Object.entries,fW=Object.setPrototypeOf,bTe=Object.isFrozen,yTe=Object.getPrototypeOf,wTe=Object.getOwnPropertyDescriptor;let yo=Object.freeze,pc=Object.seal,Wh=Object.create,Eie=typeof Reflect<"u"&&Reflect,fR=Eie.apply,bR=Eie.construct;yo||(yo=function(e){return e});pc||(pc=function(e){return e});fR||(fR=function(e,n){for(var a=arguments.length,r=new Array(a>2?a-2:0),i=2;i<a;i++)r[i-2]=arguments[i];return e.apply(n,r)});bR||(bR=function(e){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return new e(...a)});const ku=Dr(Array.prototype.forEach),kTe=Dr(Array.prototype.lastIndexOf),bW=Dr(Array.prototype.pop),xh=Dr(Array.prototype.push),vTe=Dr(Array.prototype.splice),to=Array.isArray,yC=Dr(String.prototype.toLowerCase),j3=Dr(String.prototype.toString),yW=Dr(String.prototype.match),Eh=Dr(String.prototype.replace),wW=Dr(String.prototype.indexOf),CTe=Dr(String.prototype.trim),_Te=Dr(Number.prototype.toString),xTe=Dr(Boolean.prototype.toString),kW=typeof BigInt>"u"?null:Dr(BigInt.prototype.toString),vW=typeof Symbol>"u"?null:Dr(Symbol.prototype.toString),ar=Dr(Object.prototype.hasOwnProperty),Rv=Dr(Object.prototype.toString),pi=Dr(RegExp.prototype.test),NA=ETe(TypeError);function Dr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return fR(t,e,a)}}function ETe(t){return function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return bR(t,n)}}function En(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:yC;if(fW&&fW(t,null),!to(e))return t;let a=e.length;for(;a--;){let r=e[a];if(typeof r=="string"){const i=n(r);i!==r&&(bTe(e)||(e[a]=i),r=i)}t[r]=!0}return t}function BTe(t){for(let e=0;e<t.length;e++)ar(t,e)||(t[e]=null);return t}function Ti(t){const e=Wh(null);for(const a of xie(t)){var n=hTe(a,2);const r=n[0],i=n[1];ar(t,r)&&(to(i)?e[r]=BTe(i):i&&typeof i=="object"&&i.constructor===Object?e[r]=Ti(i):e[r]=i)}return e}function ITe(t){switch(typeof t){case"string":return t;case"number":return _Te(t);case"boolean":return xTe(t);case"bigint":return kW?kW(t):"0";case"symbol":return vW?vW(t):"Symbol()";case"undefined":return Rv(t);case"function":case"object":{if(t===null)return Rv(t);const e=t,n=gl(e,"toString");if(typeof n=="function"){const a=n(e);return typeof a=="string"?a:Rv(a)}return Rv(t)}default:return Rv(t)}}function gl(t,e){for(;t!==null;){const a=wTe(t,e);if(a){if(a.get)return Dr(a.get);if(typeof a.value=="function")return Dr(a.value)}t=yTe(t)}function n(){return null}return n}function DTe(t){try{return pi(t,""),!0}catch{return!1}}const CW=yo(["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"]),q3=yo(["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"]),G3=yo(["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"]),QTe=yo(["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"]),z3=yo(["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"]),STe=yo(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_W=yo(["#text"]),xW=yo(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),U3=yo(["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"]),EW=yo(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),oB=yo(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),FTe=pc(/{{[\w\W]*|^[\w\W]*}}/g),TTe=pc(/<%[\w\W]*|^[\w\W]*%>/g),LTe=pc(/\${[\w\W]*/g),RTe=pc(/^data-[\-\w.\u00B7-\uFFFF]+$/),NTe=pc(/^aria-[\-\w]+$/),BW=pc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),MTe=pc(/^(?:\w+script|data):/i),$Te=pc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),PTe=pc(/^html$/i),OTe=pc(/^[a-z][.\w]*(-[.\w]+)+$/i),ul={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},jTe=function(){return typeof window>"u"?null:window},qTe=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let a=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(a=n.getAttribute(r));const i="dompurify"+(a?"#"+a:"");try{return e.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},IW=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Bie(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jTe();const e=de=>Bie(de);if(e.version="3.4.9",e.removed=[],!t||!t.document||t.document.nodeType!==ul.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const a=n,r=a.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,o=t.Node,s=t.Element,l=t.NodeFilter,u=t.NamedNodeMap;u===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,p=t.trustedTypes,A=s.prototype,m=gl(A,"cloneNode"),g=gl(A,"remove"),h=gl(A,"nextSibling"),f=gl(A,"childNodes"),b=gl(A,"parentNode"),w=gl(A,"shadowRoot"),y=gl(A,"attributes"),v=o&&o.prototype?gl(o.prototype,"nodeType"):null,_=o&&o.prototype?gl(o.prototype,"nodeName"):null;if(typeof i=="function"){const de=n.createElement("template");de.content&&de.content.ownerDocument&&(n=de.content.ownerDocument)}let x,C="",B,D=!1,T=0;const F=function(){if(T>0)throw NA('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},O=function(Ie){F(),T++;try{return x.createHTML(Ie)}finally{T--}},P=function(Ie){F(),T++;try{return x.createScriptURL(Ie)}finally{T--}},I=function(){return D||(B=qTe(p,r),D=!0),B},Q=n,N=Q.implementation,R=Q.createNodeIterator,S=Q.createDocumentFragment,L=Q.getElementsByTagName,M=a.importNode;let $=IW();e.isSupported=typeof xie=="function"&&typeof b=="function"&&N&&N.createHTMLDocument!==void 0;const j=FTe,q=TTe,U=LTe,z=RTe,J=NTe,W=MTe,se=$Te,V=OTe;let X=BW,ee=null;const te=En({},[...CW,...q3,...G3,...z3,..._W]);let ce=null;const ue=En({},[...xW,...U3,...EW,...oB]);let Ee=Object.seal(Wh(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}})),Be=null,Re=null;const we=Object.seal(Wh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let he=!0,Ne=!0,ye=!1,Ue=!0,ke=!1,$e=!0,He=!1,Ve=!1,Ye=!1,ze=!1,Ce=!1,_e=!1,H=!0,oe=!1;const Y="user-content-";let pe=!0,Z=!1,Te={},ge=null;const Pe=En({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Qe=null;const Me=En({},["audio","video","img","source","image","track"]);let xe=null;const qe=En({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),De="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",fe="http://www.w3.org/1999/xhtml";let it=fe,ve=!1,bt=null;const pt=En({},[De,Je,fe],j3);let at=En({},["mi","mo","mn","ms","mtext"]),vt=En({},["annotation-xml"]);const At=En({},["title","style","font","a","script"]);let st=null;const ae=["application/xhtml+xml","text/html"],yt="text/html";let nt=null,ot=null;const ft=n.createElement("form"),_n=function(Ie){return Ie instanceof RegExp||Ie instanceof Function},be=function(){let Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ot&&ot===Ie)return;(!Ie||typeof Ie!="object")&&(Ie={}),Ie=Ti(Ie),st=ae.indexOf(Ie.PARSER_MEDIA_TYPE)===-1?yt:Ie.PARSER_MEDIA_TYPE,nt=st==="application/xhtml+xml"?j3:yC,ee=ar(Ie,"ALLOWED_TAGS")&&to(Ie.ALLOWED_TAGS)?En({},Ie.ALLOWED_TAGS,nt):te,ce=ar(Ie,"ALLOWED_ATTR")&&to(Ie.ALLOWED_ATTR)?En({},Ie.ALLOWED_ATTR,nt):ue,bt=ar(Ie,"ALLOWED_NAMESPACES")&&to(Ie.ALLOWED_NAMESPACES)?En({},Ie.ALLOWED_NAMESPACES,j3):pt,xe=ar(Ie,"ADD_URI_SAFE_ATTR")&&to(Ie.ADD_URI_SAFE_ATTR)?En(Ti(qe),Ie.ADD_URI_SAFE_ATTR,nt):qe,Qe=ar(Ie,"ADD_DATA_URI_TAGS")&&to(Ie.ADD_DATA_URI_TAGS)?En(Ti(Me),Ie.ADD_DATA_URI_TAGS,nt):Me,ge=ar(Ie,"FORBID_CONTENTS")&&to(Ie.FORBID_CONTENTS)?En({},Ie.FORBID_CONTENTS,nt):Pe,Be=ar(Ie,"FORBID_TAGS")&&to(Ie.FORBID_TAGS)?En({},Ie.FORBID_TAGS,nt):Ti({}),Re=ar(Ie,"FORBID_ATTR")&&to(Ie.FORBID_ATTR)?En({},Ie.FORBID_ATTR,nt):Ti({}),Te=ar(Ie,"USE_PROFILES")?Ie.USE_PROFILES&&typeof Ie.USE_PROFILES=="object"?Ti(Ie.USE_PROFILES):Ie.USE_PROFILES:!1,he=Ie.ALLOW_ARIA_ATTR!==!1,Ne=Ie.ALLOW_DATA_ATTR!==!1,ye=Ie.ALLOW_UNKNOWN_PROTOCOLS||!1,Ue=Ie.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ke=Ie.SAFE_FOR_TEMPLATES||!1,$e=Ie.SAFE_FOR_XML!==!1,He=Ie.WHOLE_DOCUMENT||!1,ze=Ie.RETURN_DOM||!1,Ce=Ie.RETURN_DOM_FRAGMENT||!1,_e=Ie.RETURN_TRUSTED_TYPE||!1,Ye=Ie.FORCE_BODY||!1,H=Ie.SANITIZE_DOM!==!1,oe=Ie.SANITIZE_NAMED_PROPS||!1,pe=Ie.KEEP_CONTENT!==!1,Z=Ie.IN_PLACE||!1,X=DTe(Ie.ALLOWED_URI_REGEXP)?Ie.ALLOWED_URI_REGEXP:BW,it=typeof Ie.NAMESPACE=="string"?Ie.NAMESPACE:fe,at=ar(Ie,"MATHML_TEXT_INTEGRATION_POINTS")&&Ie.MATHML_TEXT_INTEGRATION_POINTS&&typeof Ie.MATHML_TEXT_INTEGRATION_POINTS=="object"?Ti(Ie.MATHML_TEXT_INTEGRATION_POINTS):En({},["mi","mo","mn","ms","mtext"]),vt=ar(Ie,"HTML_INTEGRATION_POINTS")&&Ie.HTML_INTEGRATION_POINTS&&typeof Ie.HTML_INTEGRATION_POINTS=="object"?Ti(Ie.HTML_INTEGRATION_POINTS):En({},["annotation-xml"]);const le=ar(Ie,"CUSTOM_ELEMENT_HANDLING")&&Ie.CUSTOM_ELEMENT_HANDLING&&typeof Ie.CUSTOM_ELEMENT_HANDLING=="object"?Ti(Ie.CUSTOM_ELEMENT_HANDLING):Wh(null);if(Ee=Wh(null),ar(le,"tagNameCheck")&&_n(le.tagNameCheck)&&(Ee.tagNameCheck=le.tagNameCheck),ar(le,"attributeNameCheck")&&_n(le.attributeNameCheck)&&(Ee.attributeNameCheck=le.attributeNameCheck),ar(le,"allowCustomizedBuiltInElements")&&typeof le.allowCustomizedBuiltInElements=="boolean"&&(Ee.allowCustomizedBuiltInElements=le.allowCustomizedBuiltInElements),ke&&(Ne=!1),Ce&&(ze=!0),Te&&(ee=En({},_W),ce=Wh(null),Te.html===!0&&(En(ee,CW),En(ce,xW)),Te.svg===!0&&(En(ee,q3),En(ce,U3),En(ce,oB)),Te.svgFilters===!0&&(En(ee,G3),En(ce,U3),En(ce,oB)),Te.mathMl===!0&&(En(ee,z3),En(ce,EW),En(ce,oB))),we.tagCheck=null,we.attributeCheck=null,ar(Ie,"ADD_TAGS")&&(typeof Ie.ADD_TAGS=="function"?we.tagCheck=Ie.ADD_TAGS:to(Ie.ADD_TAGS)&&(ee===te&&(ee=Ti(ee)),En(ee,Ie.ADD_TAGS,nt))),ar(Ie,"ADD_ATTR")&&(typeof Ie.ADD_ATTR=="function"?we.attributeCheck=Ie.ADD_ATTR:to(Ie.ADD_ATTR)&&(ce===ue&&(ce=Ti(ce)),En(ce,Ie.ADD_ATTR,nt))),ar(Ie,"ADD_URI_SAFE_ATTR")&&to(Ie.ADD_URI_SAFE_ATTR)&&En(xe,Ie.ADD_URI_SAFE_ATTR,nt),ar(Ie,"FORBID_CONTENTS")&&to(Ie.FORBID_CONTENTS)&&(ge===Pe&&(ge=Ti(ge)),En(ge,Ie.FORBID_CONTENTS,nt)),ar(Ie,"ADD_FORBID_CONTENTS")&&to(Ie.ADD_FORBID_CONTENTS)&&(ge===Pe&&(ge=Ti(ge)),En(ge,Ie.ADD_FORBID_CONTENTS,nt)),pe&&(ee["#text"]=!0),He&&En(ee,["html","head","body"]),ee.table&&(En(ee,["tbody"]),delete Be.tbody),Ie.TRUSTED_TYPES_POLICY){if(typeof Ie.TRUSTED_TYPES_POLICY.createHTML!="function")throw NA('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ie.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw NA('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ut=x;x=Ie.TRUSTED_TYPES_POLICY;try{C=O("")}catch(on){throw x=ut,on}}else Ie.TRUSTED_TYPES_POLICY===null?(x=void 0,C=""):(x===void 0&&(x=I()),x&&typeof C=="string"&&(C=O("")));($.uponSanitizeElement.length>0||$.uponSanitizeAttribute.length>0)&&ee===te&&(ee=Ti(ee)),$.uponSanitizeAttribute.length>0&&ce===ue&&(ce=Ti(ce)),yo&&yo(Ie),ot=Ie},Ke=En({},[...q3,...G3,...QTe]),rt=En({},[...z3,...STe]),Ct=function(Ie){let le=b(Ie);(!le||!le.tagName)&&(le={namespaceURI:it,tagName:"template"});const ut=yC(Ie.tagName),on=yC(le.tagName);return bt[Ie.namespaceURI]?Ie.namespaceURI===Je?le.namespaceURI===fe?ut==="svg":le.namespaceURI===De?ut==="svg"&&(on==="annotation-xml"||at[on]):!!Ke[ut]:Ie.namespaceURI===De?le.namespaceURI===fe?ut==="math":le.namespaceURI===Je?ut==="math"&&vt[on]:!!rt[ut]:Ie.namespaceURI===fe?le.namespaceURI===Je&&!vt[on]||le.namespaceURI===De&&!at[on]?!1:!rt[ut]&&(At[ut]||!Ke[ut]):!!(st==="application/xhtml+xml"&&bt[Ie.namespaceURI]):!1},Dt=function(Ie){xh(e.removed,{element:Ie});try{b(Ie).removeChild(Ie)}catch{if(g(Ie),!b(Ie))throw NA("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},en=function(Ie){const le=f?f(Ie):Ie.childNodes;if(le){const on=[];ku(le,fn=>{xh(on,fn)}),ku(on,fn=>{try{g(fn)}catch{}})}const ut=y?y(Ie):null;if(ut)for(let on=ut.length-1;on>=0;--on){const fn=ut[on],xn=fn&&fn.name;if(typeof xn=="string")try{Ie.removeAttribute(xn)}catch{}}},qt=function(Ie,le){try{xh(e.removed,{attribute:le.getAttributeNode(Ie),from:le})}catch{xh(e.removed,{attribute:null,from:le})}if(le.removeAttribute(Ie),Ie==="is")if(ze||Ce)try{Dt(le)}catch{}else try{le.setAttribute(Ie,"")}catch{}},yn=function(Ie){const le=y?y(Ie):Ie.attributes;if(le)for(let ut=le.length-1;ut>=0;--ut){const on=le[ut],fn=on&&on.name;if(!(typeof fn!="string"||ce[nt(fn)]))try{Ie.removeAttribute(fn)}catch{}}},Xt=function(Ie){const le=[Ie];for(;le.length>0;){const ut=le.pop();(v?v(ut):ut.nodeType)===ul.element&&yn(ut);const fn=f?f(ut):ut.childNodes;if(fn)for(let xn=fn.length-1;xn>=0;--xn)le.push(fn[xn])}},hn=function(Ie){let le=null,ut=null;if(Ye)Ie="<remove></remove>"+Ie;else{const xn=yW(Ie,/^[\r\n\t ]+/);ut=xn&&xn[0]}st==="application/xhtml+xml"&&it===fe&&(Ie='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ie+"</body></html>");const on=x?O(Ie):Ie;if(it===fe)try{le=new d().parseFromString(on,st)}catch{}if(!le||!le.documentElement){le=N.createDocument(it,"template",null);try{le.documentElement.innerHTML=ve?C:on}catch{}}const fn=le.body||le.documentElement;return Ie&&ut&&fn.insertBefore(n.createTextNode(ut),fn.childNodes[0]||null),it===fe?L.call(le,He?"html":"body")[0]:He?le.documentElement:fn},Ut=function(Ie){return R.call(Ie.ownerDocument||Ie,Ie,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Nn=function(Ie){var le,ut;Ie.normalize();const on=R.call(Ie.ownerDocument||Ie,Ie,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let fn=on.nextNode();for(;fn;){let ur=fn.data;ku([j,q,U],wn=>{ur=Eh(ur,wn," ")}),fn.data=ur,fn=on.nextNode()}const xn=(le=(ut=Ie.querySelectorAll)===null||ut===void 0?void 0:ut.call(Ie,"template"))!==null&&le!==void 0?le:[];ku(Array.from(xn),ur=>{Qn(ur.content)&&Nn(ur.content)})},da=function(Ie){const le=_?_(Ie):null;return typeof le!="string"||nt(le)!=="form"?!1:typeof Ie.nodeName!="string"||typeof Ie.textContent!="string"||typeof Ie.removeChild!="function"||Ie.attributes!==y(Ie)||typeof Ie.removeAttribute!="function"||typeof Ie.setAttribute!="function"||typeof Ie.namespaceURI!="string"||typeof Ie.insertBefore!="function"||typeof Ie.hasChildNodes!="function"||Ie.nodeType!==v(Ie)||Ie.childNodes!==f(Ie)},Qn=function(Ie){if(!v||typeof Ie!="object"||Ie===null)return!1;try{return v(Ie)===ul.documentFragment}catch{return!1}},Jr=function(Ie){if(!v||typeof Ie!="object"||Ie===null)return!1;try{return typeof v(Ie)=="number"}catch{return!1}};function Tr(de,Ie,le){ku(de,ut=>{ut.call(e,Ie,le,ot)})}const Fo=function(Ie){let le=null;if(Tr($.beforeSanitizeElements,Ie,null),da(Ie))return Dt(Ie),!0;const ut=nt(_?_(Ie):Ie.nodeName);if(Tr($.uponSanitizeElement,Ie,{tagName:ut,allowedTags:ee}),$e&&Ie.hasChildNodes()&&!Jr(Ie.firstElementChild)&&pi(/<[/\w!]/g,Ie.innerHTML)&&pi(/<[/\w!]/g,Ie.textContent)||$e&&Ie.namespaceURI===fe&&ut==="style"&&Jr(Ie.firstElementChild)||Ie.nodeType===ul.progressingInstruction||$e&&Ie.nodeType===ul.comment&&pi(/<[/\w]/g,Ie.data))return Dt(Ie),!0;if(Be[ut]||!(we.tagCheck instanceof Function&&we.tagCheck(ut))&&!ee[ut]){if(!Be[ut]&&dt(ut)&&(Ee.tagNameCheck instanceof RegExp&&pi(Ee.tagNameCheck,ut)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(ut)))return!1;if(pe&&!ge[ut]){const fn=b(Ie),xn=f(Ie);if(xn&&fn){const ur=xn.length;for(let wn=ur-1;wn>=0;--wn){const ia=Z?xn[wn]:m(xn[wn],!0);fn.insertBefore(ia,h(Ie))}}}return Dt(Ie),!0}return(v?v(Ie):Ie.nodeType)===ul.element&&!Ct(Ie)||(ut==="noscript"||ut==="noembed"||ut==="noframes")&&pi(/<\/no(script|embed|frames)/i,Ie.innerHTML)?(Dt(Ie),!0):(ke&&Ie.nodeType===ul.text&&(le=Ie.textContent,ku([j,q,U],fn=>{le=Eh(le,fn," ")}),Ie.textContent!==le&&(xh(e.removed,{element:Ie.cloneNode()}),Ie.textContent=le)),Tr($.afterSanitizeElements,Ie,null),!1)},di=function(Ie,le,ut){if(Re[le]||H&&(le==="id"||le==="name")&&(ut in n||ut in ft))return!1;const on=ce[le]||we.attributeCheck instanceof Function&&we.attributeCheck(le,Ie);if(!(Ne&&!Re[le]&&pi(z,le))){if(!(he&&pi(J,le))){if(!on||Re[le]){if(!(dt(Ie)&&(Ee.tagNameCheck instanceof RegExp&&pi(Ee.tagNameCheck,Ie)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(Ie))&&(Ee.attributeNameCheck instanceof RegExp&&pi(Ee.attributeNameCheck,le)||Ee.attributeNameCheck instanceof Function&&Ee.attributeNameCheck(le,Ie))||le==="is"&&Ee.allowCustomizedBuiltInElements&&(Ee.tagNameCheck instanceof RegExp&&pi(Ee.tagNameCheck,ut)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(ut))))return!1}else if(!xe[le]){if(!pi(X,Eh(ut,se,""))){if(!((le==="src"||le==="xlink:href"||le==="href")&&Ie!=="script"&&wW(ut,"data:")===0&&Qe[Ie])){if(!(ye&&!pi(W,Eh(ut,se,"")))){if(ut)return!1}}}}}}return!0},Tt=En({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),dt=function(Ie){return!Tt[yC(Ie)]&&pi(V,Ie)},St=function(Ie){Tr($.beforeSanitizeAttributes,Ie,null);const le=Ie.attributes;if(!le||da(Ie))return;const ut={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce,forceKeepAttr:void 0};let on=le.length;for(;on--;){const fn=le[on],xn=fn.name,ur=fn.namespaceURI,wn=fn.value,ia=nt(xn),Os=wn;let er=xn==="value"?Os:CTe(Os);if(ut.attrName=ia,ut.attrValue=er,ut.keepAttr=!0,ut.forceKeepAttr=void 0,Tr($.uponSanitizeAttribute,Ie,ut),er=ut.attrValue,oe&&(ia==="id"||ia==="name")&&wW(er,Y)!==0&&(qt(xn,Ie),er=Y+er),$e&&pi(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,er)){qt(xn,Ie);continue}if(ia==="attributename"&&yW(er,"href")){qt(xn,Ie);continue}if(ut.forceKeepAttr)continue;if(!ut.keepAttr){qt(xn,Ie);continue}if(!Ue&&pi(/\/>/i,er)){qt(xn,Ie);continue}ke&&ku([j,q,U],PE=>{er=Eh(er,PE," ")});const $E=nt(Ie.nodeName);if(!di($E,ia,er)){qt(xn,Ie);continue}if(x&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!ur)switch(p.getAttributeType($E,ia)){case"TrustedHTML":{er=O(er);break}case"TrustedScriptURL":{er=P(er);break}}if(er!==Os)try{ur?Ie.setAttributeNS(ur,xn,er):Ie.setAttribute(xn,er),da(Ie)?Dt(Ie):bW(e.removed)}catch{qt(xn,Ie)}}Tr($.afterSanitizeAttributes,Ie,null)},ht=function(Ie){let le=null;const ut=Ut(Ie);for(Tr($.beforeSanitizeShadowDOM,Ie,null);le=ut.nextNode();)if(Tr($.uponSanitizeShadowNode,le,null),Fo(le),St(le),Qn(le.content)&&ht(le.content),(v?v(le):le.nodeType)===ul.element){const fn=w?w(le):le.shadowRoot;Qn(fn)&&(An(fn),ht(fn))}Tr($.afterSanitizeShadowDOM,Ie,null)},An=function(Ie){const le=[{node:Ie,shadow:null}];for(;le.length>0;){const ut=le.pop();if(ut.shadow){ht(ut.shadow);continue}const on=ut.node,xn=(v?v(on):on.nodeType)===ul.element,ur=f?f(on):on.childNodes;if(ur)for(let wn=ur.length-1;wn>=0;--wn)le.push({node:ur[wn],shadow:null});if(xn){const wn=_?_(on):null;if(typeof wn=="string"&&nt(wn)==="template"){const ia=on.content;Qn(ia)&&le.push({node:ia,shadow:null})}}if(xn){const wn=w?w(on):on.shadowRoot;Qn(wn)&&le.push({node:null,shadow:wn},{node:wn,shadow:null})}}};return e.sanitize=function(de){let Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},le=null,ut=null,on=null,fn=null;if(ve=!de,ve&&(de="\x3C!-->"),typeof de!="string"&&!Jr(de)&&(de=ITe(de),typeof de!="string"))throw NA("dirty is not a string, aborting");if(!e.isSupported)return de;Ve||be(Ie),e.removed=[];const xn=Z&&typeof de!="string"&&Jr(de);if(xn){const ia=_?_(de):de.nodeName;if(typeof ia=="string"){const Os=nt(ia);if(!ee[Os]||Be[Os])throw NA("root node is forbidden and cannot be sanitized in-place")}if(da(de))throw NA("root node is clobbered and cannot be sanitized in-place");try{An(de)}catch(Os){throw en(de),Os}}else if(Jr(de))le=hn("\x3C!---->"),ut=le.ownerDocument.importNode(de,!0),ut.nodeType===ul.element&&ut.nodeName==="BODY"||ut.nodeName==="HTML"?le=ut:le.appendChild(ut),An(ut);else{if(!ze&&!ke&&!He&&de.indexOf("<")===-1)return x&&_e?O(de):de;if(le=hn(de),!le)return ze?null:_e?C:""}le&&Ye&&Dt(le.firstChild);const ur=Ut(xn?de:le);try{for(;on=ur.nextNode();)Fo(on),St(on),Qn(on.content)&&ht(on.content)}catch(ia){throw xn&&en(de),ia}if(xn)return ku(e.removed,ia=>{ia.element&&Xt(ia.element)}),ke&&Nn(de),de;if(ze){if(ke&&Nn(le),Ce)for(fn=S.call(le.ownerDocument);le.firstChild;)fn.appendChild(le.firstChild);else fn=le;return(ce.shadowroot||ce.shadowrootmode)&&(fn=M.call(a,fn,!0)),fn}let wn=He?le.outerHTML:le.innerHTML;return He&&ee["!doctype"]&&le.ownerDocument&&le.ownerDocument.doctype&&le.ownerDocument.doctype.name&&pi(PTe,le.ownerDocument.doctype.name)&&(wn="<!DOCTYPE "+le.ownerDocument.doctype.name+`>
53
53
  `+wn),ke&&ku([j,q,U],ia=>{wn=Eh(wn,ia," ")}),x&&_e?O(wn):wn},e.setConfig=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};be(de),Ve=!0},e.clearConfig=function(){ot=null,Ve=!1,x=B,C=""},e.isValidAttribute=function(de,Ie,le){ot||be({});const ut=nt(de),on=nt(Ie);return di(ut,on,le)},e.addHook=function(de,Ie){typeof Ie=="function"&&xh($[de],Ie)},e.removeHook=function(de,Ie){if(Ie!==void 0){const le=kTe($[de],Ie);return le===-1?void 0:vTe($[de],le,1)[0]}return bW($[de])},e.removeHooks=function(de){$[de]=[]},e.removeAllHooks=function(){$=IW()},e}var zp=Bie(),Iie=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,s_=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,GTe=/\s*%%.*\n/gm,yb,Die=(yb=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},k(yb,"UnknownDiagramError"),yb),cg={},v7=k(function(t,e){t=t.replace(Iie,"").replace(s_,"").replace(GTe,`
54
54
  `);for(const[n,{detector:a}]of Object.entries(cg))if(a(t,e))return n;throw new Die(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),yR=k((...t)=>{for(const{id:e,detector:n,loader:a}of t)Qie(e,n,a)},"registerLazyLoadedDiagrams"),Qie=k((t,e,n)=>{cg[t]&&ne.warn(`Detector with key ${t} already exists. Overwriting.`),cg[t]={detector:e,loader:n},ne.debug(`Detector with key ${t} added${n?" with loader":""}`)},"addDetector"),zTe=k(t=>cg[t].loader,"getDiagramLoader"),wR=k((t,e,{depth:n=2,clobber:a=!1}={})=>{const r={depth:n,clobber:a};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(i=>wR(t,i,r)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(i=>{t.includes(i)||t.push(i)}),t):t===void 0||n<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(i=>{typeof e[i]=="object"&&e[i]!==null&&(t[i]===void 0||typeof t[i]=="object")?(t[i]===void 0&&(t[i]=Array.isArray(e[i])?[]:{}),t[i]=wR(t[i],e[i],{depth:n-1,clobber:a})):(a||typeof t[i]!="object"&&typeof e[i]!="object")&&(t[i]=e[i])}),t)},"assignWithDepth"),hr=wR,tu="#ffffff",nu="#f2f2f2",pn=k((t,e)=>e?re(t,{s:-40,l:10}):re(t,{s:-40,l:-10}),"mkBorder"),wb,UTe=(wb=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var n,a,r,i,o,s,l,u,d,p,A,m,g,h,f,b,w,y,v,_,x,C,B,D,T,F,O,P,I,Q,N,R,S,L;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||re(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||re(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pn(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pn(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pn(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ge(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ge(this.tertiaryColor),this.lineColor=this.lineColor||Ge(this.background),this.arrowheadColor=this.arrowheadColor||Ge(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?et(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||et(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ge(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||Xe(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.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||et(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||et(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Xe(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Xe(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||re(this.primaryColor,{h:30}),this.cScale4=this.cScale4||re(this.primaryColor,{h:60}),this.cScale5=this.cScale5||re(this.primaryColor,{h:90}),this.cScale6=this.cScale6||re(this.primaryColor,{h:120}),this.cScale7=this.cScale7||re(this.primaryColor,{h:150}),this.cScale8=this.cScale8||re(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||re(this.primaryColor,{h:270}),this.cScale10=this.cScale10||re(this.primaryColor,{h:300}),this.cScale11=this.cScale11||re(this.primaryColor,{h:330}),this.darkMode)for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScale"+M]=et(this["cScale"+M],75);else for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScale"+M]=et(this["cScale"+M],25);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleInv"+M]=this["cScaleInv"+M]||Ge(this["cScale"+M]);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this.darkMode?this["cScalePeer"+M]=this["cScalePeer"+M]||Xe(this["cScale"+M],10):this["cScalePeer"+M]=this["cScalePeer"+M]||et(this["cScale"+M],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleLabel"+M]=this["cScaleLabel"+M]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let M=0;M<5;M++)this["surface"+M]=this["surface"+M]||re(this.mainBkg,{h:180,s:-15,l:e*(5+M*3)}),this["surfacePeer"+M]=this["surfacePeer"+M]||re(this.mainBkg,{h:180,s:-15,l:e*(8+M*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||re(this.primaryColor,{h:64}),this.fillType3=this.fillType3||re(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||re(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||re(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||re(this.primaryColor,{h:128}),this.fillType7=this.fillType7||re(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||re(this.primaryColor,{l:-10}),this.pie5=this.pie5||re(this.secondaryColor,{l:-10}),this.pie6=this.pie6||re(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||re(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||re(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||re(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||re(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||re(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||re(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.venn1=this.venn1??re(this.primaryColor,{l:-30}),this.venn2=this.venn2??re(this.secondaryColor,{l:-30}),this.venn3=this.venn3??re(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??re(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??re(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??re(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??re(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??re(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:((n=this.radar)==null?void 0:n.axisColor)||this.lineColor,axisStrokeWidth:((a=this.radar)==null?void 0:a.axisStrokeWidth)||2,axisLabelFontSize:((r=this.radar)==null?void 0:r.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((u=this.radar)==null?void 0:u.graticuleOpacity)||.3,legendBoxSize:((d=this.radar)==null?void 0:d.legendBoxSize)||12,legendFontSize:((p=this.radar)==null?void 0:p.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((A=this.wardley)==null?void 0:A.backgroundColor)||this.background,axisColor:((m=this.wardley)==null?void 0:m.axisColor)||this.lineColor,axisTextColor:((g=this.wardley)==null?void 0:g.axisTextColor)||this.primaryTextColor,gridColor:((h=this.wardley)==null?void 0:h.gridColor)||this.gridColor,componentFill:((f=this.wardley)==null?void 0:f.componentFill)||this.background,componentStroke:((b=this.wardley)==null?void 0:b.componentStroke)||this.lineColor,componentLabelColor:((w=this.wardley)==null?void 0:w.componentLabelColor)||this.primaryTextColor,linkStroke:((y=this.wardley)==null?void 0:y.linkStroke)||this.lineColor,evolutionStroke:((v=this.wardley)==null?void 0:v.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((_=this.wardley)==null?void 0:_.annotationStroke)||this.lineColor,annotationTextColor:((x=this.wardley)==null?void 0:x.annotationTextColor)||this.primaryTextColor,annotationFill:((C=this.wardley)==null?void 0:C.annotationFill)||this.background},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||re(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||re(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||re(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||re(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||re(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||re(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Bo(this.quadrant1Fill)?Xe(this.quadrant1Fill):et(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:((B=this.xyChart)==null?void 0:B.backgroundColor)||this.background,titleColor:((D=this.xyChart)==null?void 0:D.titleColor)||this.primaryTextColor,dataLabelColor:((T=this.xyChart)==null?void 0:T.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((F=this.xyChart)==null?void 0:F.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((O=this.xyChart)==null?void 0:O.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((P=this.xyChart)==null?void 0:P.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((I=this.xyChart)==null?void 0:I.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((Q=this.xyChart)==null?void 0:Q.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((N=this.xyChart)==null?void 0:N.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((R=this.xyChart)==null?void 0:R.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((S=this.xyChart)==null?void 0:S.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((L=this.xyChart)==null?void 0:L.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?et(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||re(this.primaryColor,{h:-30}),this.git4=this.git4||re(this.primaryColor,{h:-60}),this.git5=this.git5||re(this.primaryColor,{h:-90}),this.git6=this.git6||re(this.primaryColor,{h:60}),this.git7=this.git7||re(this.primaryColor,{h:120}),this.darkMode?(this.git0=Xe(this.git0,25),this.git1=Xe(this.git1,25),this.git2=Xe(this.git2,25),this.git3=Xe(this.git3,25),this.git4=Xe(this.git4,25),this.git5=Xe(this.git5,25),this.git6=Xe(this.git6,25),this.git7=Xe(this.git7,25)):(this.git0=et(this.git0,25),this.git1=et(this.git1,25),this.git2=et(this.git2,25),this.git3=et(this.git3,25),this.git4=et(this.git4,25),this.git5=et(this.git5,25),this.git6=et(this.git6,25),this.git7=et(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tu,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nu,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(a=>{this[a]=e[a]}),this.updateColors(),n.forEach(a=>{this[a]=e[a]})}},k(wb,"Theme"),wb),HTe=k(t=>{const e=new UTe;return e.calculate(t),e},"getThemeVariables"),kb,WTe=(kb=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Xe(this.primaryColor,16),this.tertiaryColor=re(this.primaryColor,{h:-160}),this.primaryBorderColor=Ge(this.background),this.secondaryBorderColor=pn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ge(this.primaryColor),this.secondaryTextColor=Ge(this.secondaryColor),this.tertiaryTextColor=Ge(this.tertiaryColor),this.lineColor=Ge(this.background),this.textColor=Ge(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Xe(Ge("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Oc(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.radius=5,this.strokeWidth=1,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.clusterBkg="#302F3D",this.sectionBkgColor=et("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=et(this.sectionBkgColor,10),this.taskBorderColor=Oc(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Oc(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||Xe(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||et(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var e,n,a,r,i,o,s,l,u,d,p,A,m,g,h,f,b,w,y,v,_,x,C,B,D,T,F,O,P,I,Q,N,R,S;this.secondBkg=Xe(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=Xe(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=Xe(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=Ge(this.doneTaskBkgColor),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=re(this.primaryColor,{h:64}),this.fillType3=re(this.secondaryColor,{h:64}),this.fillType4=re(this.primaryColor,{h:-64}),this.fillType5=re(this.secondaryColor,{h:-64}),this.fillType6=re(this.primaryColor,{h:128}),this.fillType7=re(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||re(this.primaryColor,{h:30}),this.cScale4=this.cScale4||re(this.primaryColor,{h:60}),this.cScale5=this.cScale5||re(this.primaryColor,{h:90}),this.cScale6=this.cScale6||re(this.primaryColor,{h:120}),this.cScale7=this.cScale7||re(this.primaryColor,{h:150}),this.cScale8=this.cScale8||re(this.primaryColor,{h:210}),this.cScale9=this.cScale9||re(this.primaryColor,{h:270}),this.cScale10=this.cScale10||re(this.primaryColor,{h:300}),this.cScale11=this.cScale11||re(this.primaryColor,{h:330});for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleInv"+L]=this["cScaleInv"+L]||Ge(this["cScale"+L]);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScalePeer"+L]=this["cScalePeer"+L]||Xe(this["cScale"+L],10);for(let L=0;L<5;L++)this["surface"+L]=this["surface"+L]||re(this.mainBkg,{h:30,s:-30,l:-(-10+L*4)}),this["surfacePeer"+L]=this["surfacePeer"+L]||re(this.mainBkg,{h:30,s:-30,l:-(-7+L*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleLabel"+L]=this["cScaleLabel"+L]||this.scaleLabelColor;for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["pie"+L]=this["cScale"+L];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,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";for(let L=0;L<8;L++)this["venn"+(L+1)]=this["venn"+(L+1)]??Xe(this["cScale"+L],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||re(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||re(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||re(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||re(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||re(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||re(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Bo(this.quadrant1Fill)?Xe(this.quadrant1Fill):et(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:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,dataLabelColor:((a=this.xyChart)==null?void 0:a.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((A=this.xyChart)==null?void 0:A.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:((m=this.radar)==null?void 0:m.axisColor)||this.lineColor,axisStrokeWidth:((g=this.radar)==null?void 0:g.axisStrokeWidth)||2,axisLabelFontSize:((h=this.radar)==null?void 0:h.axisLabelFontSize)||12,curveOpacity:((f=this.radar)==null?void 0:f.curveOpacity)||.5,curveStrokeWidth:((b=this.radar)==null?void 0:b.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((y=this.radar)==null?void 0:y.graticuleStrokeWidth)||1,graticuleOpacity:((v=this.radar)==null?void 0:v.graticuleOpacity)||.3,legendBoxSize:((_=this.radar)==null?void 0:_.legendBoxSize)||12,legendFontSize:((x=this.radar)==null?void 0:x.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:((C=this.wardley)==null?void 0:C.backgroundColor)||this.background,axisColor:((B=this.wardley)==null?void 0:B.axisColor)||this.lineColor,axisTextColor:((D=this.wardley)==null?void 0:D.axisTextColor)||this.primaryTextColor,gridColor:((T=this.wardley)==null?void 0:T.gridColor)||this.gridColor,componentFill:((F=this.wardley)==null?void 0:F.componentFill)||this.mainBkg,componentStroke:((O=this.wardley)==null?void 0:O.componentStroke)||this.lineColor,componentLabelColor:((P=this.wardley)==null?void 0:P.componentLabelColor)||this.primaryTextColor,linkStroke:((I=this.wardley)==null?void 0:I.linkStroke)||this.lineColor,evolutionStroke:((Q=this.wardley)==null?void 0:Q.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((N=this.wardley)==null?void 0:N.annotationStroke)||this.lineColor,annotationTextColor:((R=this.wardley)==null?void 0:R.annotationTextColor)||this.primaryTextColor,annotationFill:((S=this.wardley)==null?void 0:S.annotationFill)||this.mainBkg},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?et(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Xe(this.secondaryColor,20),this.git1=Xe(this.pie2||this.secondaryColor,20),this.git2=Xe(this.pie3||this.tertiaryColor,20),this.git3=Xe(this.pie4||re(this.primaryColor,{h:-30}),20),this.git4=Xe(this.pie5||re(this.primaryColor,{h:-60}),20),this.git5=Xe(this.pie6||re(this.primaryColor,{h:-90}),10),this.git6=Xe(this.pie7||re(this.primaryColor,{h:60}),10),this.git7=Xe(this.pie8||re(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ge(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ge(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.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||Xe("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||Xe("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||Xe("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||Xe("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||Xe(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||Xe(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Xe(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xe(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(a=>{this[a]=e[a]}),this.updateColors(),n.forEach(a=>{this[a]=e[a]})}},k(kb,"Theme"),kb),YTe=k(t=>{const e=new WTe;return e.calculate(t),e},"getThemeVariables"),vb,KTe=(vb=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=re(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=re(this.primaryColor,{h:-160}),this.primaryBorderColor=pn(this.primaryColor,this.darkMode),this.secondaryBorderColor=pn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ge(this.primaryColor),this.secondaryTextColor=Ge(this.secondaryColor),this.tertiaryTextColor=Ge(this.tertiaryColor),this.lineColor=Ge(this.background),this.textColor=Ge(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=pn(this.primaryColor,this.darkMode),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.radius=5,this.strokeWidth=1,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.clusterBkg="#FBFBFF",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=Oc(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.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",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.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var e,n,a,r,i,o,s,l,u,d,p,A,m,g,h,f,b,w,y,v,_,x,C,B,D,T,F,O,P,I,Q,N,R,S;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||re(this.primaryColor,{h:30}),this.cScale4=this.cScale4||re(this.primaryColor,{h:60}),this.cScale5=this.cScale5||re(this.primaryColor,{h:90}),this.cScale6=this.cScale6||re(this.primaryColor,{h:120}),this.cScale7=this.cScale7||re(this.primaryColor,{h:150}),this.cScale8=this.cScale8||re(this.primaryColor,{h:210}),this.cScale9=this.cScale9||re(this.primaryColor,{h:270}),this.cScale10=this.cScale10||re(this.primaryColor,{h:300}),this.cScale11=this.cScale11||re(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||et(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||et(this.tertiaryColor,40);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScale"+L]=et(this["cScale"+L],10),this["cScalePeer"+L]=this["cScalePeer"+L]||et(this["cScale"+L],25);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleInv"+L]=this["cScaleInv"+L]||re(this["cScale"+L],{h:180});for(let L=0;L<5;L++)this["surface"+L]=this["surface"+L]||re(this.mainBkg,{h:30,l:-(5+L*5)}),this["surfacePeer"+L]=this["surfacePeer"+L]||re(this.mainBkg,{h:30,l:-(7+L*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||Ge(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Ge(this.labelTextColor);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleLabel"+L]=this["cScaleLabel"+L]||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=this.border1,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||Xe(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Xe(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=re(this.primaryColor,{h:64}),this.fillType3=re(this.secondaryColor,{h:64}),this.fillType4=re(this.primaryColor,{h:-64}),this.fillType5=re(this.secondaryColor,{h:-64}),this.fillType6=re(this.primaryColor,{h:128}),this.fillType7=re(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||re(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||re(this.primaryColor,{l:-10}),this.pie5=this.pie5||re(this.secondaryColor,{l:-30}),this.pie6=this.pie6||re(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||re(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||re(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||re(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||re(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||re(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||re(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.venn1=this.venn1??re(this.primaryColor,{l:-30}),this.venn2=this.venn2??re(this.secondaryColor,{l:-30}),this.venn3=this.venn3??re(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??re(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??re(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??re(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??re(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??re(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||re(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||re(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||re(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||re(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||re(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||re(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Bo(this.quadrant1Fill)?Xe(this.quadrant1Fill):et(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:((e=this.radar)==null?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((a=this.radar)==null?void 0:a.axisLabelFontSize)||12,curveOpacity:((r=this.radar)==null?void 0:r.curveOpacity)||.5,curveStrokeWidth:((i=this.radar)==null?void 0:i.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((s=this.radar)==null?void 0:s.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((u=this.radar)==null?void 0:u.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((p=this.wardley)==null?void 0:p.backgroundColor)||this.background,axisColor:((A=this.wardley)==null?void 0:A.axisColor)||this.lineColor,axisTextColor:((m=this.wardley)==null?void 0:m.axisTextColor)||this.primaryTextColor,gridColor:((g=this.wardley)==null?void 0:g.gridColor)||this.gridColor,componentFill:((h=this.wardley)==null?void 0:h.componentFill)||this.background,componentStroke:((f=this.wardley)==null?void 0:f.componentStroke)||this.lineColor,componentLabelColor:((b=this.wardley)==null?void 0:b.componentLabelColor)||this.primaryTextColor,linkStroke:((w=this.wardley)==null?void 0:w.linkStroke)||this.lineColor,evolutionStroke:((y=this.wardley)==null?void 0:y.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((v=this.wardley)==null?void 0:v.annotationStroke)||this.lineColor,annotationTextColor:((_=this.wardley)==null?void 0:_.annotationTextColor)||this.primaryTextColor,annotationFill:((x=this.wardley)==null?void 0:x.annotationFill)||this.background},this.xyChart={backgroundColor:((C=this.xyChart)==null?void 0:C.backgroundColor)||this.background,titleColor:((B=this.xyChart)==null?void 0:B.titleColor)||this.primaryTextColor,dataLabelColor:((D=this.xyChart)==null?void 0:D.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((T=this.xyChart)==null?void 0:T.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((F=this.xyChart)==null?void 0:F.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((O=this.xyChart)==null?void 0:O.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((P=this.xyChart)==null?void 0:P.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((I=this.xyChart)==null?void 0:I.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((Q=this.xyChart)==null?void 0:Q.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((N=this.xyChart)==null?void 0:N.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((R=this.xyChart)==null?void 0:R.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((S=this.xyChart)==null?void 0:S.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||re(this.primaryColor,{h:-30}),this.git4=this.git4||re(this.primaryColor,{h:-60}),this.git5=this.git5||re(this.primaryColor,{h:-90}),this.git6=this.git6||re(this.primaryColor,{h:60}),this.git7=this.git7||re(this.primaryColor,{h:120}),this.darkMode?(this.git0=Xe(this.git0,25),this.git1=Xe(this.git1,25),this.git2=Xe(this.git2,25),this.git3=Xe(this.git3,25),this.git4=Xe(this.git4,25),this.git5=Xe(this.git5,25),this.git6=Xe(this.git6,25),this.git7=Xe(this.git7,25)):(this.git0=et(this.git0,25),this.git1=et(this.git1,25),this.git2=et(this.git2,25),this.git3=et(this.git3,25),this.git4=et(this.git4,25),this.git5=et(this.git5,25),this.git6=et(this.git6,25),this.git7=et(this.git7,25)),this.gitInv0=this.gitInv0||et(Ge(this.git0),25),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ge(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ge(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tu,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nu}calculate(e){if(Object.keys(this).forEach(a=>{this[a]==="calculated"&&(this[a]=void 0)}),typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(a=>{this[a]=e[a]}),this.updateColors(),n.forEach(a=>{this[a]=e[a]})}},k(vb,"Theme"),vb),zk=k(t=>{const e=new KTe;return e.calculate(t),e},"getThemeVariables"),Cb,ZTe=(Cb=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=Xe("#cde498",10),this.primaryBorderColor=pn(this.primaryColor,this.darkMode),this.secondaryBorderColor=pn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ge(this.primaryColor),this.secondaryTextColor=Ge(this.secondaryColor),this.tertiaryTextColor=Ge(this.primaryColor),this.lineColor=Ge(this.background),this.textColor=Ge(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,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.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var e,n,a,r,i,o,s,l,u,d,p,A,m,g,h,f,b,w,y,v,_,x,C,B,D,T,F,O,P,I,Q,N,R,S;this.actorBorder=et(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||re(this.primaryColor,{h:30}),this.cScale4=this.cScale4||re(this.primaryColor,{h:60}),this.cScale5=this.cScale5||re(this.primaryColor,{h:90}),this.cScale6=this.cScale6||re(this.primaryColor,{h:120}),this.cScale7=this.cScale7||re(this.primaryColor,{h:150}),this.cScale8=this.cScale8||re(this.primaryColor,{h:210}),this.cScale9=this.cScale9||re(this.primaryColor,{h:270}),this.cScale10=this.cScale10||re(this.primaryColor,{h:300}),this.cScale11=this.cScale11||re(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||et(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||et(this.tertiaryColor,40);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScale"+L]=et(this["cScale"+L],10),this["cScalePeer"+L]=this["cScalePeer"+L]||et(this["cScale"+L],25);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleInv"+L]=this["cScaleInv"+L]||re(this["cScale"+L],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleLabel"+L]=this["cScaleLabel"+L]||this.scaleLabelColor;for(let L=0;L<5;L++)this["surface"+L]=this["surface"+L]||re(this.mainBkg,{h:30,s:-30,l:-(5+L*5)}),this["surfacePeer"+L]=this["surfacePeer"+L]||re(this.mainBkg,{h:30,s:-30,l:-(8+L*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||Xe(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Xe(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=re(this.primaryColor,{h:64}),this.fillType3=re(this.secondaryColor,{h:64}),this.fillType4=re(this.primaryColor,{h:-64}),this.fillType5=re(this.secondaryColor,{h:-64}),this.fillType6=re(this.primaryColor,{h:128}),this.fillType7=re(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||re(this.primaryColor,{l:-30}),this.pie5=this.pie5||re(this.secondaryColor,{l:-30}),this.pie6=this.pie6||re(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||re(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||re(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||re(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||re(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||re(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||re(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.venn1=this.venn1??re(this.primaryColor,{l:-30}),this.venn2=this.venn2??re(this.secondaryColor,{l:-30}),this.venn3=this.venn3??re(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??re(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??re(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??re(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??re(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??re(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||re(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||re(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||re(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||re(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||re(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||re(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Bo(this.quadrant1Fill)?Xe(this.quadrant1Fill):et(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:((e=this.radar)==null?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((a=this.radar)==null?void 0:a.axisLabelFontSize)||12,curveOpacity:((r=this.radar)==null?void 0:r.curveOpacity)||.5,curveStrokeWidth:((i=this.radar)==null?void 0:i.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((s=this.radar)==null?void 0:s.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((u=this.radar)==null?void 0:u.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((p=this.wardley)==null?void 0:p.backgroundColor)||this.background,axisColor:((A=this.wardley)==null?void 0:A.axisColor)||this.lineColor,axisTextColor:((m=this.wardley)==null?void 0:m.axisTextColor)||this.primaryTextColor,gridColor:((g=this.wardley)==null?void 0:g.gridColor)||this.gridColor,componentFill:((h=this.wardley)==null?void 0:h.componentFill)||this.background,componentStroke:((f=this.wardley)==null?void 0:f.componentStroke)||this.lineColor,componentLabelColor:((b=this.wardley)==null?void 0:b.componentLabelColor)||this.primaryTextColor,linkStroke:((w=this.wardley)==null?void 0:w.linkStroke)||this.lineColor,evolutionStroke:((y=this.wardley)==null?void 0:y.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((v=this.wardley)==null?void 0:v.annotationStroke)||this.lineColor,annotationTextColor:((_=this.wardley)==null?void 0:_.annotationTextColor)||this.primaryTextColor,annotationFill:((x=this.wardley)==null?void 0:x.annotationFill)||this.background},this.xyChart={backgroundColor:((C=this.xyChart)==null?void 0:C.backgroundColor)||this.background,titleColor:((B=this.xyChart)==null?void 0:B.titleColor)||this.primaryTextColor,dataLabelColor:((D=this.xyChart)==null?void 0:D.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((T=this.xyChart)==null?void 0:T.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((F=this.xyChart)==null?void 0:F.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((O=this.xyChart)==null?void 0:O.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((P=this.xyChart)==null?void 0:P.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((I=this.xyChart)==null?void 0:I.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((Q=this.xyChart)==null?void 0:Q.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((N=this.xyChart)==null?void 0:N.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((R=this.xyChart)==null?void 0:R.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((S=this.xyChart)==null?void 0:S.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||re(this.primaryColor,{h:-30}),this.git4=this.git4||re(this.primaryColor,{h:-60}),this.git5=this.git5||re(this.primaryColor,{h:-90}),this.git6=this.git6||re(this.primaryColor,{h:60}),this.git7=this.git7||re(this.primaryColor,{h:120}),this.darkMode?(this.git0=Xe(this.git0,25),this.git1=Xe(this.git1,25),this.git2=Xe(this.git2,25),this.git3=Xe(this.git3,25),this.git4=Xe(this.git4,25),this.git5=Xe(this.git5,25),this.git6=Xe(this.git6,25),this.git7=Xe(this.git7,25)):(this.git0=et(this.git0,25),this.git1=et(this.git1,25),this.git2=et(this.git2,25),this.git3=et(this.git3,25),this.git4=et(this.git4,25),this.git5=et(this.git5,25),this.git6=et(this.git6,25),this.git7=et(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ge(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ge(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tu,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nu}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(a=>{this[a]=e[a]}),this.updateColors(),n.forEach(a=>{this[a]=e[a]})}},k(Cb,"Theme"),Cb),VTe=k(t=>{const e=new ZTe;return e.calculate(t),e},"getThemeVariables"),_b,JTe=(_b=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Xe(this.contrast,55),this.background="#ffffff",this.tertiaryColor=re(this.primaryColor,{h:-160}),this.primaryBorderColor=pn(this.primaryColor,this.darkMode),this.secondaryBorderColor=pn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ge(this.primaryColor),this.secondaryTextColor=Ge(this.secondaryColor),this.tertiaryTextColor=Ge(this.tertiaryColor),this.lineColor=Ge(this.background),this.textColor=Ge(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.radius=5,this.strokeWidth=1,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.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||Xe(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var e,n,a,r,i,o,s,l,u,d,p,A,m,g,h,f,b,w,y,v,_,x,C,B,D,T,F,O,P,I,Q,N,R,S;this.secondBkg=Xe(this.contrast,55),this.border2=this.contrast,this.actorBorder=Xe(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 L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleInv"+L]=this["cScaleInv"+L]||Ge(this["cScale"+L]);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this.darkMode?this["cScalePeer"+L]=this["cScalePeer"+L]||Xe(this["cScale"+L],10):this["cScalePeer"+L]=this["cScalePeer"+L]||et(this["cScale"+L],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleLabel"+L]=this["cScaleLabel"+L]||this.scaleLabelColor;for(let L=0;L<5;L++)this["surface"+L]=this["surface"+L]||re(this.mainBkg,{l:-(5+L*5)}),this["surfacePeer"+L]=this["surfacePeer"+L]||re(this.mainBkg,{l:-(8+L*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=Xe(this.contrast,30),this.sectionBkgColor2=Xe(this.contrast,30),this.taskBorderColor=et(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=Xe(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=et(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=re(this.primaryColor,{h:64}),this.fillType3=re(this.secondaryColor,{h:64}),this.fillType4=re(this.primaryColor,{h:-64}),this.fillType5=re(this.secondaryColor,{h:-64}),this.fillType6=re(this.primaryColor,{h:128}),this.fillType7=re(this.secondaryColor,{h:128});for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["pie"+L]=this["cScale"+L];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";for(let L=0;L<8;L++)this["venn"+(L+1)]=this["venn"+(L+1)]??this["cScale"+L];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||re(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||re(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||re(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||re(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||re(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||re(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Bo(this.quadrant1Fill)?Xe(this.quadrant1Fill):et(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:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,dataLabelColor:((a=this.xyChart)==null?void 0:a.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((A=this.xyChart)==null?void 0:A.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((m=this.radar)==null?void 0:m.axisColor)||this.lineColor,axisStrokeWidth:((g=this.radar)==null?void 0:g.axisStrokeWidth)||2,axisLabelFontSize:((h=this.radar)==null?void 0:h.axisLabelFontSize)||12,curveOpacity:((f=this.radar)==null?void 0:f.curveOpacity)||.5,curveStrokeWidth:((b=this.radar)==null?void 0:b.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((y=this.radar)==null?void 0:y.graticuleStrokeWidth)||1,graticuleOpacity:((v=this.radar)==null?void 0:v.graticuleOpacity)||.3,legendBoxSize:((_=this.radar)==null?void 0:_.legendBoxSize)||12,legendFontSize:((x=this.radar)==null?void 0:x.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((C=this.wardley)==null?void 0:C.backgroundColor)||this.background,axisColor:((B=this.wardley)==null?void 0:B.axisColor)||this.lineColor,axisTextColor:((D=this.wardley)==null?void 0:D.axisTextColor)||this.primaryTextColor,gridColor:((T=this.wardley)==null?void 0:T.gridColor)||this.gridColor,componentFill:((F=this.wardley)==null?void 0:F.componentFill)||this.background,componentStroke:((O=this.wardley)==null?void 0:O.componentStroke)||this.lineColor,componentLabelColor:((P=this.wardley)==null?void 0:P.componentLabelColor)||this.primaryTextColor,linkStroke:((I=this.wardley)==null?void 0:I.linkStroke)||this.lineColor,evolutionStroke:((Q=this.wardley)==null?void 0:Q.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((N=this.wardley)==null?void 0:N.annotationStroke)||this.lineColor,annotationTextColor:((R=this.wardley)==null?void 0:R.annotationTextColor)||this.primaryTextColor,annotationFill:((S=this.wardley)==null?void 0:S.annotationFill)||this.background},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=et(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||re(this.primaryColor,{h:-30}),this.git4=this.pie5||re(this.primaryColor,{h:-60}),this.git5=this.pie6||re(this.primaryColor,{h:-90}),this.git6=this.pie7||re(this.primaryColor,{h:60}),this.git7=this.pie8||re(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tu,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nu}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(a=>{this[a]=e[a]}),this.updateColors(),n.forEach(a=>{this[a]=e[a]})}},k(_b,"Theme"),_b),XTe=k(t=>{const e=new JTe;return e.calculate(t),e},"getThemeVariables"),xb,e3e=(xb=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=pn(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var i,o,s,l,u,d,p,A,m,g,h;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||re(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||re(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pn(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pn(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pn(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ge(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ge(this.tertiaryColor),this.lineColor=this.lineColor||Ge(this.background),this.arrowheadColor=this.arrowheadColor||Ge(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?et(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||et(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ge(this.lineColor);const e="#ECECFE",n="#E9E9F1",a=re(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||a,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||n,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||Xe(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",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||e,this.cScale1=this.cScale1||n,this.cScale2=this.cScale2||a,this.cScale3=this.cScale3||re(e,{h:30}),this.cScale4=this.cScale4||re(e,{h:60}),this.cScale5=this.cScale5||re(e,{h:90}),this.cScale6=this.cScale6||re(e,{h:120}),this.cScale7=this.cScale7||re(e,{h:150}),this.cScale8=this.cScale8||re(e,{h:210,l:150}),this.cScale9=this.cScale9||re(e,{h:270}),this.cScale10=this.cScale10||re(e,{h:300}),this.cScale11=this.cScale11||re(e,{h:330}),this.darkMode)for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=et(this["cScale"+f],75);else for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=et(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||Ge(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||Xe(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||et(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;const r=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||re(this.mainBkg,{h:180,s:-15,l:r*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||re(this.mainBkg,{h:180,s:-15,l:r*(8+f*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||n,this.fillType2=this.fillType2||re(e,{h:64}),this.fillType3=this.fillType3||re(n,{h:64}),this.fillType4=this.fillType4||re(e,{h:-64}),this.fillType5=this.fillType5||re(n,{h:-64}),this.fillType6=this.fillType6||re(e,{h:128}),this.fillType7=this.fillType7||re(n,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||n,this.pie3=this.pie3||a,this.pie4=this.pie4||re(e,{l:-10}),this.pie5=this.pie5||re(n,{l:-10}),this.pie6=this.pie6||re(a,{l:-10}),this.pie7=this.pie7||re(e,{h:60,l:-10}),this.pie8=this.pie8||re(e,{h:-60,l:-10}),this.pie9=this.pie9||re(e,{h:120,l:0}),this.pie10=this.pie10||re(e,{h:60,l:-20}),this.pie11=this.pie11||re(e,{h:-60,l:-20}),this.pie12=this.pie12||re(e,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||e,this.quadrant2Fill=this.quadrant2Fill||re(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||re(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||re(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||re(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||re(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||re(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Bo(this.quadrant1Fill)?Xe(this.quadrant1Fill):et(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:((i=this.xyChart)==null?void 0:i.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((s=this.xyChart)==null?void 0:s.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((p=this.xyChart)==null?void 0:p.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((A=this.xyChart)==null?void 0:A.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((m=this.xyChart)==null?void 0:m.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((g=this.xyChart)==null?void 0:g.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,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?et(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||e,this.git1=this.git1||n,this.git2=this.git2||a,this.git3=this.git3||re(e,{h:-30}),this.git4=this.git4||re(e,{h:-60}),this.git5=this.git5||re(e,{h:-90}),this.git6=this.git6||re(e,{h:60}),this.git7=this.git7||re(e,{h:120}),this.darkMode?(this.git0=Xe(this.git0,25),this.git1=Xe(this.git1,25),this.git2=Xe(this.git2,25),this.git3=Xe(this.git3,25),this.git4=Xe(this.git4,25),this.git5=Xe(this.git5,25),this.git6=Xe(this.git6,25),this.git7=Xe(this.git7,25)):(this.git0=et(this.git0,25),this.git1=et(this.git1,25),this.git2=et(this.git2,25),this.git3=et(this.git3,25),this.git4=et(this.git4,25),this.git5=et(this.git5,25),this.git6=et(this.git6,25),this.git7=et(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(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||tu,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nu}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(a=>{this[a]=e[a]}),this.updateColors(),n.forEach(a=>{this[a]=e[a]})}},k(xb,"Theme"),xb),t3e=k(t=>{const e=new e3e;return e.calculate(t),e},"getThemeVariables"),Eb,n3e=(Eb=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Xe(this.primaryColor,16),this.tertiaryColor=re(this.primaryColor,{h:-160}),this.primaryBorderColor=Ge(this.background),this.secondaryBorderColor=pn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ge(this.primaryColor),this.secondaryTextColor=Ge(this.secondaryColor),this.tertiaryTextColor=Ge(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Xe(Ge("#323D47"),10),this.border1="#ccc",this.border2=Oc(255,255,255,.25),this.arrowheadColor=Ge(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var n,a,r,i,o,s,l,u,d,p,A;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||re(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||re(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pn(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pn(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pn(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ge(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ge(this.tertiaryColor),this.lineColor=this.lineColor||Ge(this.background),this.arrowheadColor=this.arrowheadColor||Ge(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.border1,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?et(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||et(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ge(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||Xe(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||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",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||re(this.primaryColor,{h:30}),this.cScale4=this.cScale4||re(this.primaryColor,{h:60}),this.cScale5=this.cScale5||re(this.primaryColor,{h:90}),this.cScale6=this.cScale6||re(this.primaryColor,{h:120}),this.cScale7=this.cScale7||re(this.primaryColor,{h:150}),this.cScale8=this.cScale8||re(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||re(this.primaryColor,{h:270}),this.cScale10=this.cScale10||re(this.primaryColor,{h:300}),this.cScale11=this.cScale11||re(this.primaryColor,{h:330}),this.darkMode)for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=et(this["cScale"+m],75);else for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=et(this["cScale"+m],25);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||Ge(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||Xe(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||et(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=this["cScaleLabel"+m]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||re(this.mainBkg,{h:180,s:-15,l:e*(5+m*3)}),this["surfacePeer"+m]=this["surfacePeer"+m]||re(this.mainBkg,{h:180,s:-15,l:e*(8+m*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||re(this.primaryColor,{h:64}),this.fillType3=this.fillType3||re(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||re(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||re(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||re(this.primaryColor,{h:128}),this.fillType7=this.fillType7||re(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||re(this.primaryColor,{l:-10}),this.pie5=this.pie5||re(this.secondaryColor,{l:-10}),this.pie6=this.pie6||re(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||re(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||re(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||re(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||re(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||re(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||re(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||re(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||re(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||re(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||re(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||re(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||re(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Bo(this.quadrant1Fill)?Xe(this.quadrant1Fill):et(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:((n=this.xyChart)==null?void 0:n.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((A=this.xyChart)==null?void 0:A.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?et(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=Xe(this.git0,25),this.git1=Xe(this.git1,25),this.git2=Xe(this.git2,25),this.git3=Xe(this.git3,25),this.git4=Xe(this.git4,25),this.git5=Xe(this.git5,25),this.git6=Xe(this.git6,25),this.git7=Xe(this.git7,25)):(this.git0=et(this.git0,25),this.git1=et(this.git1,25),this.git2=et(this.git2,25),this.git3=et(this.git3,25),this.git4=et(this.git4,25),this.git5=et(this.git5,25),this.git6=et(this.git6,25),this.git7=et(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(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||tu,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nu}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(a=>{this[a]=e[a]}),this.updateColors(),n.forEach(a=>{this[a]=e[a]})}},k(Eb,"Theme"),Eb),a3e=k(t=>{const e=new n3e;return e.calculate(t),e},"getThemeVariables"),Bb,r3e=(Bb=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=pn("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var i,o,s,l,u,d,p,A,m,g,h;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||re(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||re(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pn(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pn(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pn(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Ge(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ge(this.tertiaryColor),this.lineColor=this.lineColor||Ge(this.background),this.arrowheadColor=this.arrowheadColor||Ge(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?et(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,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||et(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ge(this.lineColor);const e="#ECECFE",n="#E9E9F1",a=re(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||a,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||n,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||Xe(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,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.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=this.mainBkg;if(this.darkMode)for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=et(this["cScale"+f],75);else for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=et(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||Ge(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||Xe(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||et(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;const r=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||re(this.mainBkg,{h:180,s:-15,l:r*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||re(this.mainBkg,{h:180,s:-15,l:r*(8+f*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||n,this.fillType2=this.fillType2||re(e,{h:64}),this.fillType3=this.fillType3||re(n,{h:64}),this.fillType4=this.fillType4||re(e,{h:-64}),this.fillType5=this.fillType5||re(n,{h:-64}),this.fillType6=this.fillType6||re(e,{h:128}),this.fillType7=this.fillType7||re(n,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||n,this.pie3=this.pie3||a,this.pie4=this.pie4||re(e,{l:-10}),this.pie5=this.pie5||re(n,{l:-10}),this.pie6=this.pie6||re(a,{l:-10}),this.pie7=this.pie7||re(e,{h:60,l:-10}),this.pie8=this.pie8||re(e,{h:-60,l:-10}),this.pie9=this.pie9||re(e,{h:120,l:0}),this.pie10=this.pie10||re(e,{h:60,l:-20}),this.pie11=this.pie11||re(e,{h:-60,l:-20}),this.pie12=this.pie12||re(e,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||e,this.quadrant2Fill=this.quadrant2Fill||re(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||re(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||re(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||re(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||re(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||re(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Bo(this.quadrant1Fill)?Xe(this.quadrant1Fill):et(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:((i=this.xyChart)==null?void 0:i.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((s=this.xyChart)==null?void 0:s.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((p=this.xyChart)==null?void 0:p.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((A=this.xyChart)==null?void 0:A.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((m=this.xyChart)==null?void 0:m.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((g=this.xyChart)==null?void 0:g.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,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?et(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||e,this.git1=this.git1||n,this.git2=this.git2||a,this.git3=this.git3||re(e,{h:-30}),this.git4=this.git4||re(e,{h:-60}),this.git5=this.git5||re(e,{h:-90}),this.git6=this.git6||re(e,{h:60}),this.git7=this.git7||re(e,{h:120}),this.darkMode?(this.git0=Xe(this.git0,25),this.git1=Xe(this.git1,25),this.git2=Xe(this.git2,25),this.git3=Xe(this.git3,25),this.git4=Xe(this.git4,25),this.git5=Xe(this.git5,25),this.git6=Xe(this.git6,25),this.git7=Xe(this.git7,25)):(this.git0=et(this.git0,25),this.git1=et(this.git1,25),this.git2=et(this.git2,25),this.git3=et(this.git3,25),this.git4=et(this.git4,25),this.git5=et(this.git5,25),this.git6=et(this.git6,25),this.git7=et(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tu,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nu}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(a=>{this[a]=e[a]}),this.updateColors(),n.forEach(a=>{this[a]=e[a]})}},k(Bb,"Theme"),Bb),i3e=k(t=>{const e=new r3e;return e.calculate(t),e},"getThemeVariables"),Ib,o3e=(Ib=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Xe(this.primaryColor,16),this.tertiaryColor=re(this.primaryColor,{h:-160}),this.primaryBorderColor=Ge(this.background),this.secondaryBorderColor=pn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ge(this.primaryColor),this.secondaryTextColor=Ge(this.secondaryColor),this.tertiaryTextColor=Ge(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Xe(Ge("#323D47"),10),this.border1="#ccc",this.border2=Oc(255,255,255,.25),this.arrowheadColor=Ge(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var n,a,r,i,o,s,l,u,d,p,A;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||re(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||re(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pn(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pn(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pn(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Ge(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ge(this.tertiaryColor),this.lineColor=this.lineColor||Ge(this.background),this.arrowheadColor=this.arrowheadColor||Ge(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.border1,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?et(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",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||et(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ge(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||Xe(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,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.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||re(this.primaryColor,{h:30}),this.cScale4=this.cScale4||re(this.primaryColor,{h:60}),this.cScale5=this.cScale5||re(this.primaryColor,{h:90}),this.cScale6=this.cScale6||re(this.primaryColor,{h:120}),this.cScale7=this.cScale7||re(this.primaryColor,{h:150}),this.cScale8=this.cScale8||re(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||re(this.primaryColor,{h:270}),this.cScale10=this.cScale10||re(this.primaryColor,{h:300}),this.cScale11=this.cScale11||re(this.primaryColor,{h:330}),this.darkMode)for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=et(this["cScale"+m],75);else for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=et(this["cScale"+m],25);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||Ge(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||Xe(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||et(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=this["cScaleLabel"+m]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||re(this.mainBkg,{h:180,s:-15,l:e*(5+m*3)}),this["surfacePeer"+m]=this["surfacePeer"+m]||re(this.mainBkg,{h:180,s:-15,l:e*(8+m*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||re(this.primaryColor,{h:64}),this.fillType3=this.fillType3||re(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||re(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||re(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||re(this.primaryColor,{h:128}),this.fillType7=this.fillType7||re(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||re(this.primaryColor,{l:-10}),this.pie5=this.pie5||re(this.secondaryColor,{l:-10}),this.pie6=this.pie6||re(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||re(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||re(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||re(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||re(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||re(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||re(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||re(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||re(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||re(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||re(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||re(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||re(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Bo(this.quadrant1Fill)?Xe(this.quadrant1Fill):et(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:((n=this.xyChart)==null?void 0:n.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((A=this.xyChart)==null?void 0:A.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?et(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||re(this.primaryColor,{h:-30}),this.git4=this.git4||re(this.primaryColor,{h:-60}),this.git5=this.git5||re(this.primaryColor,{h:-90}),this.git6=this.git6||re(this.primaryColor,{h:60}),this.git7=this.git7||re(this.primaryColor,{h:120}),this.darkMode?(this.git0=Xe(this.git0,25),this.git1=Xe(this.git1,25),this.git2=Xe(this.git2,25),this.git3=Xe(this.git3,25),this.git4=Xe(this.git4,25),this.git5=Xe(this.git5,25),this.git6=Xe(this.git6,25),this.git7=Xe(this.git7,25)):(this.git0=et(this.git0,25),this.git1=et(this.git1,25),this.git2=et(this.git2,25),this.git3=et(this.git3,25),this.git4=et(this.git4,25),this.git5=et(this.git5,25),this.git6=et(this.git6,25),this.git7=et(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tu,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nu}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(a=>{this[a]=e[a]}),this.updateColors(),n.forEach(a=>{this[a]=e[a]})}},k(Ib,"Theme"),Ib),s3e=k(t=>{const e=new o3e;return e.calculate(t),e},"getThemeVariables"),Db,c3e=(Db=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=pn(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var i,o,s,l,u,d,p,A,m,g,h;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||re(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||re(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pn(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pn(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pn(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Ge(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ge(this.tertiaryColor),this.lineColor=this.lineColor||Ge(this.background),this.arrowheadColor=this.arrowheadColor||Ge(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?et(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||et(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ge(this.lineColor);const e="#ECECFE",n="#E9E9F1",a=re(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||a,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||n,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||Xe(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",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||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||Ge(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||Xe(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||et(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;const r=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||re(this.mainBkg,{h:180,s:-15,l:r*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||re(this.mainBkg,{h:180,s:-15,l:r*(8+f*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||n,this.fillType2=this.fillType2||re(e,{h:64}),this.fillType3=this.fillType3||re(n,{h:64}),this.fillType4=this.fillType4||re(e,{h:-64}),this.fillType5=this.fillType5||re(n,{h:-64}),this.fillType6=this.fillType6||re(e,{h:128}),this.fillType7=this.fillType7||re(n,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||n,this.pie3=this.pie3||a,this.pie4=this.pie4||re(e,{l:-10}),this.pie5=this.pie5||re(n,{l:-10}),this.pie6=this.pie6||re(a,{l:-10}),this.pie7=this.pie7||re(e,{h:60,l:-10}),this.pie8=this.pie8||re(e,{h:-60,l:-10}),this.pie9=this.pie9||re(e,{h:120,l:0}),this.pie10=this.pie10||re(e,{h:60,l:-20}),this.pie11=this.pie11||re(e,{h:-60,l:-20}),this.pie12=this.pie12||re(e,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||e,this.quadrant2Fill=this.quadrant2Fill||re(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||re(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||re(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||re(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||re(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||re(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Bo(this.quadrant1Fill)?Xe(this.quadrant1Fill):et(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:((i=this.xyChart)==null?void 0:i.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((s=this.xyChart)==null?void 0:s.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((p=this.xyChart)==null?void 0:p.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((A=this.xyChart)==null?void 0:A.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((m=this.xyChart)==null?void 0:m.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((g=this.xyChart)==null?void 0:g.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,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?et(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||e,this.git1=this.git1||n,this.git2=this.git2||a,this.git3=this.git3||re(e,{h:-30}),this.git4=this.git4||re(e,{h:-60}),this.git5=this.git5||re(e,{h:-90}),this.git6=this.git6||re(e,{h:60}),this.git7=this.git7||re(e,{h:120}),this.darkMode?(this.git0=Xe(this.git0,25),this.git1=Xe(this.git1,25),this.git2=Xe(this.git2,25),this.git3=Xe(this.git3,25),this.git4=Xe(this.git4,25),this.git5=Xe(this.git5,25),this.git6=Xe(this.git6,25),this.git7=Xe(this.git7,25)):(this.git0=et(this.git0,25),this.git1=et(this.git1,25),this.git2=et(this.git2,25),this.git3=et(this.git3,25),this.git4=et(this.git4,25),this.git5=et(this.git5,25),this.git6=et(this.git6,25),this.git7=et(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tu,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nu}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(a=>{this[a]=e[a]}),this.updateColors(),n.forEach(a=>{this[a]=e[a]})}},k(Db,"Theme"),Db),l3e=k(t=>{const e=new c3e;return e.calculate(t),e},"getThemeVariables"),Qb,u3e=(Qb=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Xe(this.primaryColor,16),this.tertiaryColor=re(this.primaryColor,{h:-160}),this.primaryBorderColor=Ge(this.background),this.secondaryBorderColor=pn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ge(this.primaryColor),this.secondaryTextColor=Ge(this.secondaryColor),this.tertiaryTextColor=Ge(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Xe(Ge("#323D47"),10),this.border1="#ccc",this.border2=Oc(255,255,255,.25),this.arrowheadColor=Ge(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var n,a,r,i,o,s,l,u,d,p,A;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||re(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||re(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pn(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pn(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pn(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Ge(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ge(this.tertiaryColor),this.lineColor=this.lineColor||Ge(this.background),this.arrowheadColor=this.arrowheadColor||Ge(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.border1,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?et(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",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||et(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ge(this.lineColor),this.rootLabelColor="#FFFFFF",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||Xe(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",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||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||Ge(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||Xe(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||et(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=et(this["cScale"+m],75);const e=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||re(this.mainBkg,{h:180,s:-15,l:e*(5+m*3)}),this["surfacePeer"+m]=this["surfacePeer"+m]||re(this.mainBkg,{h:180,s:-15,l:e*(8+m*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||re(this.primaryColor,{h:64}),this.fillType3=this.fillType3||re(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||re(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||re(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||re(this.primaryColor,{h:128}),this.fillType7=this.fillType7||re(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||re(this.primaryColor,{l:-10}),this.pie5=this.pie5||re(this.secondaryColor,{l:-10}),this.pie6=this.pie6||re(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||re(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||re(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||re(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||re(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||re(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||re(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||re(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||re(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||re(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||re(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||re(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||re(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Bo(this.quadrant1Fill)?Xe(this.quadrant1Fill):et(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:((n=this.xyChart)==null?void 0:n.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((A=this.xyChart)==null?void 0:A.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?et(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||re(this.primaryColor,{h:-30}),this.git4=this.git4||re(this.primaryColor,{h:-60}),this.git5=this.git5||re(this.primaryColor,{h:-90}),this.git6=this.git6||re(this.primaryColor,{h:60}),this.git7=this.git7||re(this.primaryColor,{h:120}),this.darkMode?(this.git0=Xe(this.git0,25),this.git1=Xe(this.git1,25),this.git2=Xe(this.git2,25),this.git3=Xe(this.git3,25),this.git4=Xe(this.git4,25),this.git5=Xe(this.git5,25),this.git6=Xe(this.git6,25),this.git7=Xe(this.git7,25)):(this.git0=et(this.git0,25),this.git1=et(this.git1,25),this.git2=et(this.git2,25),this.git3=et(this.git3,25),this.git4=et(this.git4,25),this.git5=et(this.git5,25),this.git6=et(this.git6,25),this.git7=et(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tu,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nu}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(a=>{this[a]=e[a]}),this.updateColors(),n.forEach(a=>{this[a]=e[a]})}},k(Qb,"Theme"),Qb),d3e=k(t=>{const e=new u3e;return e.calculate(t),e},"getThemeVariables"),ad={base:{getThemeVariables:HTe},dark:{getThemeVariables:YTe},default:{getThemeVariables:zk},forest:{getThemeVariables:VTe},neutral:{getThemeVariables:XTe},neo:{getThemeVariables:t3e},"neo-dark":{getThemeVariables:a3e},redux:{getThemeVariables:i3e},"redux-dark":{getThemeVariables:s3e},"redux-color":{getThemeVariables:l3e},"redux-dark-color":{getThemeVariables:d3e}},Vi={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,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,hierarchicalNamespaces:!0},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,showDataLabelOutsideBar:!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"},ishikawa:{useMaxWidth:!0,diagramPadding:20},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:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},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},Sie={...Vi,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:ad.default.getThemeVariables(),sequence:{...Vi.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,hierarchicalNamespaces:!0},gantt:{...Vi.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Vi.c4,useWidth:void 0,personFont:k(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Vi.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:{...Vi.pie,useWidth:984},xyChart:{...Vi.xyChart,useWidth:void 0},requirement:{...Vi.requirement,useWidth:void 0},packet:{...Vi.packet},eventmodeling:{...Vi.eventmodeling},treeView:{...Vi.treeView,useWidth:void 0},radar:{...Vi.radar},ishikawa:{...Vi.ishikawa},sankey:{...Vi.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...Vi.venn}},Fie=k((t,e="")=>Object.keys(t).reduce((n,a)=>Array.isArray(t[a])?n:typeof t[a]=="object"&&t[a]!==null?[...n,e+a,...Fie(t[a],"")]:[...n,e+a],[]),"keyify"),p3e=new Set(Fie(Sie,"")),Fn=Sie,pD=k(t=>{if(ne.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>pD(e));return}for(const e of Object.keys(t)){if(ne.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!p3e.has(e)||t[e]==null){ne.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){if(e==="nodeColors"){const a=/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i;for(const r of Object.keys(t[e]))(typeof t[e][r]!="string"||!a.test(t[e][r]))&&(ne.debug("sanitize deleting invalid color:",r,t[e][r]),delete t[e][r])}else ne.debug("sanitizing object",e),pD(t[e]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const a of n)e.includes(a)&&(ne.debug("sanitizing css option",e),t[e]=Tie(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const n=t.themeVariables[e];n!=null&&n.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}ne.debug("After sanitization",t)}},"sanitizeDirective"),Tie=k(t=>{let e=0,n=0;for(const a of t){if(e<n)return"{ /* ERROR: Unbalanced CSS */ }";a==="{"?e++:a==="}"&&n++}return e!==n?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),Xw=Object.freeze(Fn),Qd=k(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Oo=hr({},Xw),AD,lg=[],c_=hr({},Xw),i4=k((t,e)=>{let n=hr({},t),a={};for(const r of e)Nie(r),a=hr(a,r);if(n=hr(n,a),a.theme&&a.theme in ad){const r=hr({},AD),i=hr(r.themeVariables||{},a.themeVariables);n.theme&&n.theme in ad&&(n.themeVariables=ad[n.theme].getThemeVariables(i))}return c_=n,$ie(c_),c_},"updateCurrentConfig"),A3e=k(t=>(Oo=hr({},Xw),Oo=hr(Oo,t),t.theme&&ad[t.theme]&&(Oo.themeVariables=ad[t.theme].getThemeVariables(t.themeVariables)),i4(Oo,lg),Oo),"setSiteConfig"),m3e=k(t=>{AD=hr({},t)},"saveConfigFromInitialize"),g3e=k(t=>(Oo=hr(Oo,t),i4(Oo,lg),Oo),"updateSiteConfig"),Lie=k(()=>hr({},Oo),"getSiteConfig"),Rie=k(t=>($ie(t),hr(c_,t),Vt()),"setConfig"),Vt=k(()=>hr({},c_),"getConfig"),Nie=k(t=>{t&&(["secure",...Oo.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(ne.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Nie(t[e])}))},"sanitize"),h3e=k(t=>{var e;pD(t),t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),lg.push(t),i4(Oo,lg)},"addDirective"),mD=k((t=Oo)=>{lg=[],i4(t,lg)},"reset"),f3e={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},DW={},Mie=k(t=>{DW[t]||(ne.warn(f3e[t]),DW[t]=!0)},"issueWarning"),$ie=k(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Mie("LAZY_LOAD_DEPRECATED")},"checkConfig"),b3e=k(()=>{let t={};AD&&(t=hr(t,AD));for(const e of lg)t=hr(t,e);return t},"getUserDefinedConfig"),ta=k(t=>{var e,n;return((e=t.flowchart)==null?void 0:e.htmlLabels)!=null&&Mie("FLOWCHART_HTML_LABELS_DEPRECATED"),Qd(t.htmlLabels??((n=t.flowchart)==null?void 0:n.htmlLabels)??!0)},"getEffectiveHtmlLabels"),Uk=/<br\s*\/?>/gi,y3e=k(t=>t?jie(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),w3e=(()=>{let t=!1;return()=>{t||(Pie(),t=!0)}})();function Pie(){const t="data-temp-href-target";zp.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),zp.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}k(Pie,"setupDompurifyHooks");var Oie=k(t=>(w3e(),zp.sanitize(t)),"removeScript"),QW=k((t,e)=>{if(ta(e)){const n=e.securityLevel;n==="antiscript"||n==="strict"||n==="sandbox"?t=Oie(t):n!=="loose"&&(t=jie(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=_3e(t))}return t},"sanitizeMore"),$n=k((t,e)=>t&&(e.dompurifyConfig?t=zp.sanitize(QW(t,e),e.dompurifyConfig).toString():t=zp.sanitize(QW(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),k3e=k((t,e)=>typeof t=="string"?$n(t,e):t.flat().map(n=>$n(n,e)),"sanitizeTextOrArray"),v3e=k(t=>Uk.test(t),"hasBreaks"),C3e=k(t=>t.split(Uk),"splitBreaks"),_3e=k(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),jie=k(t=>t.replace(Uk,"#br#"),"breakToPlaceholder"),o4=k(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),x3e=k(function(...t){const e=t.filter(n=>!isNaN(n));return Math.max(...e)},"getMax"),E3e=k(function(...t){const e=t.filter(n=>!isNaN(n));return Math.min(...e)},"getMin"),ap=k(function(t){const e=t.split(/(,)/),n=[];for(let a=0;a<e.length;a++){let r=e[a];if(r===","&&a>0&&a+1<e.length){const i=e[a-1],o=e[a+1];B3e(i,o)&&(r=i+","+o,a++,n.pop())}n.push(I3e(r))}return n.join("")},"parseGenericTypes"),kR=k((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),B3e=k((t,e)=>{const n=kR(t,"~"),a=kR(e,"~");return n===1&&a===1},"shouldCombineSets"),I3e=k(t=>{const e=kR(t,"~");let n=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),n=!0);const a=[...t];let r=a.indexOf("~"),i=a.lastIndexOf("~");for(;r!==-1&&i!==-1&&r!==i;)a[r]="<",a[i]=">",r=a.indexOf("~"),i=a.lastIndexOf("~");return n&&a.unshift("~"),a.join("")},"processSet"),SW=k(()=>window.MathMLElement!==void 0,"isMathMLSupported"),vR=/\$\$(.*)\$\$/g,yr=k(t=>{var e;return(((e=t.match(vR))==null?void 0:e.length)??0)>0},"hasKatex"),E1=k(async(t,e)=>{const n=document.createElement("div");n.innerHTML=await s4(t,e),n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0";const a=document.querySelector("body");a==null||a.insertAdjacentElement("beforeend",n);const r={width:n.clientWidth,height:n.clientHeight};return n.remove(),r},"calculateMathMLDimensions"),D3e=k(async(t,e)=>{if(!yr(t))return t;if(!(SW()||e.legacyMathML||e.forceLegacyMathML))return t.replace(vR,"MathML is unsupported in this environment.");{const{default:n}=await me(async()=>{const{default:r}=await Promise.resolve().then(()=>nUe);return{default:r}},void 0,import.meta.url),a=e.forceLegacyMathML||!SW()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(Uk).map(r=>yr(r)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${r}</div>`:`<div>${r}</div>`).join("").replace(vR,(r,i)=>n.renderToString(i,{throwOnError:!0,displayMode:!0,output:a}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),s4=k(async(t,e)=>$n(await D3e(t,e),e),"renderKatexSanitized"),kt={getRows:y3e,sanitizeText:$n,sanitizeTextOrArray:k3e,hasBreaks:v3e,splitBreaks:C3e,lineBreakRegex:Uk,removeScript:Oie,getUrl:o4,evaluate:Qd,getMax:x3e,getMin:E3e},Q3e=k(function(t,e){for(let n of e)t.attr(n[0],n[1])},"d3Attrs"),S3e=k(function(t,e,n){let a=new Map;return n?(a.set("width","100%"),a.set("style",`max-width: ${e}px;`)):(a.set("height",t),a.set("width",e)),a},"calculateSvgSizeAttrs"),Sr=k(function(t,e,n,a){const r=S3e(e,n,a);Q3e(t,r)},"configureSvgSize"),Hk=k(function(t,e,n,a){const r=e.node().getBBox(),i=r.width,o=r.height;ne.info(`SVG bounds: ${i}x${o}`,r);let s=0,l=0;ne.info(`Graph bounds: ${s}x${l}`,t),s=i+n*2,l=o+n*2,ne.info(`Calculated bounds: ${s}x${l}`),Sr(e,l,s,a);const u=`${r.x-n} ${r.y-n} ${r.width+2*n} ${r.height+2*n}`;e.attr("viewBox",u)},"setupGraphViewbox"),FI={};function CR(t){return[...t.cssRules].map(e=>e.cssText).join(`