From 687e7da7a889b2e774bcbbcd310f470a78806c9b Mon Sep 17 00:00:00 2001 From: bprize15 Date: Thu, 21 Nov 2024 10:50:41 -0500 Subject: [PATCH 1/2] revert changes and build frontend --- .../src/components/SearchBar/SearchBar.tsx | 44 ++++++++----------- .../{index-Bt2IFtk3.js => index-BtFrCp6B.js} | 36 +++++++-------- web/src/main/resources/static/index.html | 2 +- 3 files changed, 38 insertions(+), 44 deletions(-) rename web/src/main/resources/static/assets/{index-Bt2IFtk3.js => index-BtFrCp6B.js} (73%) diff --git a/web/src/main/javascript/src/components/SearchBar/SearchBar.tsx b/web/src/main/javascript/src/components/SearchBar/SearchBar.tsx index bb54d9e..c864d68 100644 --- a/web/src/main/javascript/src/components/SearchBar/SearchBar.tsx +++ b/web/src/main/javascript/src/components/SearchBar/SearchBar.tsx @@ -226,7 +226,7 @@ export default function SearchBar({ }} options={options} components={{ - ClearIndicator: (props) => , + ClearIndicator, Control, }} styles={{ @@ -259,31 +259,25 @@ export default function SearchBar({ ); - interface IClearIndicatorProps extends ClearIndicatorProps< - OncoTreeSearchOption, - false, - GroupBase -> { - searchResults: D3OncoTreeNode[] | undefined, - searchResultsIndex: number | undefined - } - function ClearIndicator( - {searchResults, searchResultsIndex, ...props}: IClearIndicatorProps, + props: ClearIndicatorProps< + OncoTreeSearchOption, + false, + GroupBase>, ) { const inputStyle = props.getStyles("input", { ...props, isHidden: false }); const inputColor = inputStyle.color ?? "black"; const clearIndicatorClass = css(props.getStyles("clearIndicator", props)); const resultsAndIndexDefined = - searchResults !== undefined && searchResultsIndex !== undefined; + cancerTypeResults !== undefined && cancerTypeResultsIndex !== undefined; function getResultsNumberSpan() { if (!resultsAndIndexDefined) { return undefined; } - if (searchResults.length === 0) { + if (cancerTypeResults.length === 0) { return ( {`${searchResultsIndex + 1}/${searchResults.length}`} + >{`${cancerTypeResultsIndex + 1}/${cancerTypeResults.length}`} ); } - const getPreviousResult = useCallback(() => { + const getPreviousResult = () => { if (!resultsAndIndexDefined) { return; } - let newIndex = searchResults.length - 1; + let newIndex = cancerTypeResults.length - 1; if (cancerTypeResultsIndex !== 0) { - newIndex = searchResultsIndex - 1; + newIndex = cancerTypeResultsIndex - 1; } - oncoTree?.focus(searchResults[newIndex]); + oncoTree?.focus(cancerTypeResults[newIndex]); setCancerTypeResultsIndex(newIndex); - }, [resultsAndIndexDefined, searchResults, searchResultsIndex]); + } - const getNextResult = useCallback(() => { + const getNextResult = () => { if (!resultsAndIndexDefined) { return; } @@ -327,20 +321,20 @@ export default function SearchBar({ let newIndex = 0; if ( cancerTypeResultsIndex !== - searchResults.length - 1 + cancerTypeResults.length - 1 ) { - newIndex = searchResultsIndex + 1; + newIndex = cancerTypeResultsIndex + 1; } - oncoTree?.focus(searchResults[newIndex]); + oncoTree?.focus(cancerTypeResults[newIndex]); setCancerTypeResultsIndex(newIndex); - }, [resultsAndIndexDefined, searchResults, searchResultsIndex]); + } const isMobile = 'ontouchstart' in window || navigator.maxTouchPoints > 0; return ( <> {getResultsNumberSpan()} - {resultsAndIndexDefined && searchResults.length > 0 && ( + {resultsAndIndexDefined && cancerTypeResults.length > 0 && (
>>1,F=O[V];if(0>>1;Vi(te,T))Ji(q,te)?(O[V]=q,O[J]=T,V=J):(O[V]=te,O[W]=T,V=W);else if(Ji(q,T))O[V]=q,O[J]=T,V=J;else break e}}return M}function i(O,M){var T=O.sortIndex-M.sortIndex;return T!==0?T:O.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,d=3,m=!1,v=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(O){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=O)r(u),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(u)}}function S(O){if(y=!1,g(O),!v)if(n(l)!==null)v=!0,P(b);else{var M=n(u);M!==null&&R(S,M.startTime-O)}}function b(O,M){v=!1,y&&(y=!1,p(_),_=-1),m=!0;var T=d;try{for(g(M),f=n(l);f!==null&&(!(f.expirationTime>M)||O&&!U());){var V=f.callback;if(typeof V=="function"){f.callback=null,d=f.priorityLevel;var F=V(f.expirationTime<=M);M=e.unstable_now(),typeof F=="function"?f.callback=F:f===n(l)&&r(l),g(M)}else r(l);f=n(l)}if(f!==null)var Q=!0;else{var W=n(u);W!==null&&R(S,W.startTime-M),Q=!1}return Q}finally{f=null,d=T,m=!1}}var k=!1,E=null,_=-1,N=5,L=-1;function U(){return!(e.unstable_now()-LO||125V?(O.sortIndex=T,t(u,O),n(l)===null&&O===n(u)&&(y?(p(_),_=-1):y=!0,R(S,T-V))):(O.sortIndex=F,t(l,O),v||m||(v=!0,P(b))),O},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(O){var M=d;return function(){var T=d;d=M;try{return O.apply(this,arguments)}finally{d=T}}}})(sg);lg.exports=sg;var dx=lg.exports;/** + */(function(e){function t(O,M){var T=O.length;O.push(M);e:for(;0>>1,F=O[V];if(0>>1;Vi(ne,T))eei(q,ne)?(O[V]=q,O[ee]=T,V=ee):(O[V]=ne,O[Y]=T,V=Y);else if(eei(q,T))O[V]=q,O[ee]=T,V=ee;else break e}}return M}function i(O,M){var T=O.sortIndex-M.sortIndex;return T!==0?T:O.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,d=3,m=!1,v=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(O){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=O)r(u),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(u)}}function S(O){if(y=!1,g(O),!v)if(n(l)!==null)v=!0,P(b);else{var M=n(u);M!==null&&A(S,M.startTime-O)}}function b(O,M){v=!1,y&&(y=!1,p(_),_=-1),m=!0;var T=d;try{for(g(M),f=n(l);f!==null&&(!(f.expirationTime>M)||O&&!j());){var V=f.callback;if(typeof V=="function"){f.callback=null,d=f.priorityLevel;var F=V(f.expirationTime<=M);M=e.unstable_now(),typeof F=="function"?f.callback=F:f===n(l)&&r(l),g(M)}else r(l);f=n(l)}if(f!==null)var Q=!0;else{var Y=n(u);Y!==null&&A(S,Y.startTime-M),Q=!1}return Q}finally{f=null,d=T,m=!1}}var k=!1,E=null,_=-1,N=5,L=-1;function j(){return!(e.unstable_now()-LO||125V?(O.sortIndex=T,t(u,O),n(l)===null&&O===n(u)&&(y?(p(_),_=-1):y=!0,A(S,T-V))):(O.sortIndex=F,t(l,O),v||m||(v=!0,P(b))),O},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(O){var M=d;return function(){var T=d;d=M;try{return O.apply(this,arguments)}finally{d=T}}}})(sg);lg.exports=sg;var dx=lg.exports;/** * @license React * react-dom.production.min.js * @@ -34,10 +34,10 @@ function H2(e,t){for(var n=0;ns||i[a]!==o[s]){var l=` -`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{uc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qo(e):""}function yx(e){switch(e.tag){case 5:return Qo(e.type);case 16:return Qo("Lazy");case 13:return Qo("Suspense");case 19:return Qo("SuspenseList");case 0:case 2:case 15:return e=cc(e.type,!1),e;case 11:return e=cc(e.type.render,!1),e;case 1:return e=cc(e.type,!0),e;default:return""}}function hf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Mi:return"Fragment";case Ii:return"Portal";case ff:return"Profiler";case sp:return"StrictMode";case df:return"Suspense";case pf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fg:return(e.displayName||"Context")+".Consumer";case cg:return(e._context.displayName||"Context")+".Provider";case up:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cp:return t=e.displayName||null,t!==null?t:hf(e.type)||"Memo";case Gn:t=e._payload,e=e._init;try{return hf(e(t))}catch{}}return null}function wx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hf(t);case 8:return t===sp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function pr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xx(e){var t=pg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xl(e){e._valueTracker||(e._valueTracker=xx(e))}function hg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Cs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function mf(e,t){var n=t.checked;return Oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=pr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function mg(e,t){t=t.checked,t!=null&&lp(e,"checked",t,!1)}function vf(e,t){mg(e,t);var n=pr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?gf(e,t.type,n):t.hasOwnProperty("defaultValue")&&gf(e,t.type,pr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function gf(e,t,n){(t!=="number"||Cs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qo=Array.isArray;function Hi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Sl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ba(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ua={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},Sx=["Webkit","ms","Moz","O"];Object.keys(ua).forEach(function(e){Sx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ua[t]=ua[e]})});function wg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ua.hasOwnProperty(e)&&ua[e]?(""+t).trim():t+"px"}function xg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=wg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var _x=Oe({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 xf(e,t){if(t){if(_x[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function Sf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _f=null;function fp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bf=null,Wi=null,Yi=null;function qh(e){if(e=il(e)){if(typeof bf!="function")throw Error(D(280));var t=e.stateNode;t&&(t=xu(t),bf(e.stateNode,e.type,t))}}function Sg(e){Wi?Yi?Yi.push(e):Yi=[e]:Wi=e}function _g(){if(Wi){var e=Wi,t=Yi;if(Yi=Wi=null,qh(e),t)for(e=0;e>>=0,e===0?32:31-(Lx(e)/Ax|0)|0}var _l=64,bl=4194304;function Zo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ts(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Zo(s):(o&=a,o!==0&&(r=Zo(o)))}else a=n&~i,a!==0?r=Zo(a):o!==0&&(r=Zo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function nl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kt(t),e[t]=n}function Fx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=fa),am=" ",lm=!1;function Ug(e,t){switch(e){case"keyup":return dS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ni=!1;function hS(e,t){switch(e){case"compositionend":return Bg(t);case"keypress":return t.which!==32?null:(lm=!0,am);case"textInput":return e=t.data,e===am&&lm?null:e;default:return null}}function mS(e,t){if(Ni)return e==="compositionend"||!wp&&Ug(e,t)?(e=Vg(),Zl=vp=Jn=null,Ni=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fm(n)}}function Xg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gg(){for(var e=window,t=Cs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Cs(e.document)}return t}function xp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ES(e){var t=Gg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xg(n.ownerDocument.documentElement,n)){if(r!==null&&xp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=dm(n,o);var a=dm(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Li=null,Tf=null,pa=null,If=!1;function pm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;If||Li==null||Li!==Cs(r)||(r=Li,"selectionStart"in r&&xp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),pa&&Ta(pa,r)||(pa=r,r=Ns(Tf,"onSelect"),0$i||(e.current=$f[$i],$f[$i]=null,$i--)}function me(e,t){$i++,$f[$i]=e.current,e.current=t}var hr={},tt=_r(hr),ft=_r(!1),qr=hr;function no(e,t){var n=e.type.contextTypes;if(!n)return hr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function dt(e){return e=e.childContextTypes,e!=null}function As(){ge(ft),ge(tt)}function xm(e,t,n){if(tt.current!==hr)throw Error(D(168));me(tt,t),me(ft,n)}function r1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(D(108,wx(e)||"Unknown",i));return Oe({},n,r)}function Rs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hr,qr=tt.current,me(tt,e),me(ft,ft.current),!0}function Sm(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=r1(e,t,qr),r.__reactInternalMemoizedMergedChildContext=e,ge(ft),ge(tt),me(tt,e)):ge(ft),me(ft,n)}var kn=null,Su=!1,Ec=!1;function i1(e){kn===null?kn=[e]:kn.push(e)}function $S(e){Su=!0,i1(e)}function br(){if(!Ec&&kn!==null){Ec=!0;var e=0,t=ce;try{var n=kn;for(ce=1;e>=a,i-=a,Pn=1<<32-Kt(t)+i|n<_?(N=E,E=null):N=E.sibling;var L=d(p,E,g[_],S);if(L===null){E===null&&(E=N);break}e&&E&&L.alternate===null&&t(p,E),h=o(L,h,_),k===null?b=L:k.sibling=L,k=L,E=N}if(_===g.length)return n(p,E),Se&&Mr(p,_),b;if(E===null){for(;__?(N=E,E=null):N=E.sibling;var U=d(p,E,L.value,S);if(U===null){E===null&&(E=N);break}e&&E&&U.alternate===null&&t(p,E),h=o(U,h,_),k===null?b=U:k.sibling=U,k=U,E=N}if(L.done)return n(p,E),Se&&Mr(p,_),b;if(E===null){for(;!L.done;_++,L=g.next())L=f(p,L.value,S),L!==null&&(h=o(L,h,_),k===null?b=L:k.sibling=L,k=L);return Se&&Mr(p,_),b}for(E=r(p,E);!L.done;_++,L=g.next())L=m(E,p,_,L.value,S),L!==null&&(e&&L.alternate!==null&&E.delete(L.key===null?_:L.key),h=o(L,h,_),k===null?b=L:k.sibling=L,k=L);return e&&E.forEach(function(G){return t(p,G)}),Se&&Mr(p,_),b}function w(p,h,g,S){if(typeof g=="object"&&g!==null&&g.type===Mi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case wl:e:{for(var b=g.key,k=h;k!==null;){if(k.key===b){if(b=g.type,b===Mi){if(k.tag===7){n(p,k.sibling),h=i(k,g.props.children),h.return=p,p=h;break e}}else if(k.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Gn&&Em(b)===k.type){n(p,k.sibling),h=i(k,g.props),h.ref=Bo(p,k,g),h.return=p,p=h;break e}n(p,k);break}else t(p,k);k=k.sibling}g.type===Mi?(h=Hr(g.props.children,p.mode,S,g.key),h.return=p,p=h):(S=as(g.type,g.key,g.props,null,p.mode,S),S.ref=Bo(p,h,g),S.return=p,p=S)}return a(p);case Ii:e:{for(k=g.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(p,h.sibling),h=i(h,g.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=Nc(g,p.mode,S),h.return=p,p=h}return a(p);case Gn:return k=g._init,w(p,h,k(g._payload),S)}if(qo(g))return v(p,h,g,S);if(Fo(g))return y(p,h,g,S);Il(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,g),h.return=p,p=h):(n(p,h),h=Mc(g,p.mode,S),h.return=p,p=h),a(p)):n(p,h)}return w}var io=s1(!0),u1=s1(!1),Fs=_r(null),zs=null,zi=null,Ep=null;function Cp(){Ep=zi=zs=null}function kp(e){var t=Fs.current;ge(Fs),e._currentValue=t}function zf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Gi(e,t){zs=e,Ep=zi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ut=!0),e.firstContext=null)}function zt(e){var t=e._currentValue;if(Ep!==e)if(e={context:e,memoizedValue:t,next:null},zi===null){if(zs===null)throw Error(D(308));zi=e,zs.dependencies={lanes:0,firstContext:e}}else zi=zi.next=e;return t}var Vr=null;function Op(e){Vr===null?Vr=[e]:Vr.push(e)}function c1(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Op(t)):(n.next=i.next,i.next=n),t.interleaved=n,Rn(e,r)}function Rn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kn=!1;function Pp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function f1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Rn(e,n)}return i=r.interleaved,i===null?(t.next=t,Op(r)):(t.next=i.next,i.next=t),r.interleaved=t,Rn(e,n)}function es(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pp(e,n)}}function Cm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vs(e,t,n,r){var i=e.updateQueue;Kn=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;a=0,c=u=l=null,s=o;do{var d=s.lane,m=s.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,y=s;switch(d=t,m=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){f=v.call(m,f,d);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,d=typeof v=="function"?v.call(m,f,d):v,d==null)break e;f=Oe({},f,d);break e;case 2:Kn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else m={eventTime:m,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=m,l=f):c=c.next=m,a|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ei|=a,e.lanes=a,e.memoizedState=f}}function km(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=kc.transition;kc.transition={};try{e(!1),t()}finally{ce=n,kc.transition=r}}function P1(){return Vt().memoizedState}function VS(e,t,n){var r=cr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},T1(e))I1(t,n);else if(n=c1(e,t,n,r),n!==null){var i=ot();Qt(n,e,r,i),M1(n,t,r)}}function jS(e,t,n){var r=cr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(T1(e))I1(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,qt(s,a)){var l=t.interleaved;l===null?(i.next=i,Op(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=c1(e,t,i,r),n!==null&&(i=ot(),Qt(n,e,r,i),M1(n,t,r))}}function T1(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function I1(e,t){ha=Us=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function M1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pp(e,n)}}var Bs={readContext:zt,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useInsertionEffect:qe,useLayoutEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useMutableSource:qe,useSyncExternalStore:qe,useId:qe,unstable_isNewReconciler:!1},US={readContext:zt,useCallback:function(e,t){return an().memoizedState=[e,t===void 0?null:t],e},useContext:zt,useEffect:Pm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ns(4194308,4,b1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return ns(4,2,e,t)},useMemo:function(e,t){var n=an();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=an();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=VS.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=an();return e={current:e},t.memoizedState=e},useState:Om,useDebugValue:$p,useDeferredValue:function(e){return an().memoizedState=e},useTransition:function(){var e=Om(!1),t=e[0];return e=zS.bind(null,e[1]),an().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,i=an();if(Se){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Be===null)throw Error(D(349));Jr&30||m1(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Pm(g1.bind(null,r,o,e),[e]),r.flags|=2048,Da(9,v1.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=an(),t=Be.identifierPrefix;if(Se){var n=Tn,r=Pn;n=(r&~(1<<32-Kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ra++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{uc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qo(e):""}function yx(e){switch(e.tag){case 5:return Qo(e.type);case 16:return Qo("Lazy");case 13:return Qo("Suspense");case 19:return Qo("SuspenseList");case 0:case 2:case 15:return e=cc(e.type,!1),e;case 11:return e=cc(e.type.render,!1),e;case 1:return e=cc(e.type,!0),e;default:return""}}function hf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Mi:return"Fragment";case Ii:return"Portal";case ff:return"Profiler";case sp:return"StrictMode";case df:return"Suspense";case pf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fg:return(e.displayName||"Context")+".Consumer";case cg:return(e._context.displayName||"Context")+".Provider";case up:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cp:return t=e.displayName||null,t!==null?t:hf(e.type)||"Memo";case Gn:t=e._payload,e=e._init;try{return hf(e(t))}catch{}}return null}function wx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hf(t);case 8:return t===sp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function pr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xx(e){var t=pg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xl(e){e._valueTracker||(e._valueTracker=xx(e))}function hg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Cs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function mf(e,t){var n=t.checked;return Oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=pr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function mg(e,t){t=t.checked,t!=null&&lp(e,"checked",t,!1)}function vf(e,t){mg(e,t);var n=pr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?gf(e,t.type,n):t.hasOwnProperty("defaultValue")&&gf(e,t.type,pr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function gf(e,t,n){(t!=="number"||Cs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qo=Array.isArray;function Hi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Sl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ba(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ua={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},Sx=["Webkit","ms","Moz","O"];Object.keys(ua).forEach(function(e){Sx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ua[t]=ua[e]})});function wg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ua.hasOwnProperty(e)&&ua[e]?(""+t).trim():t+"px"}function xg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=wg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var _x=Oe({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 xf(e,t){if(t){if(_x[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function Sf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _f=null;function fp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bf=null,Wi=null,Yi=null;function qh(e){if(e=il(e)){if(typeof bf!="function")throw Error(D(280));var t=e.stateNode;t&&(t=xu(t),bf(e.stateNode,e.type,t))}}function Sg(e){Wi?Yi?Yi.push(e):Yi=[e]:Wi=e}function _g(){if(Wi){var e=Wi,t=Yi;if(Yi=Wi=null,qh(e),t)for(e=0;e>>=0,e===0?32:31-(Lx(e)/Rx|0)|0}var _l=64,bl=4194304;function Zo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ts(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Zo(s):(o&=a,o!==0&&(r=Zo(o)))}else a=n&~i,a!==0?r=Zo(a):o!==0&&(r=Zo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function nl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kt(t),e[t]=n}function Fx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=fa),am=" ",lm=!1;function Ug(e,t){switch(e){case"keyup":return dS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ni=!1;function hS(e,t){switch(e){case"compositionend":return Bg(t);case"keypress":return t.which!==32?null:(lm=!0,am);case"textInput":return e=t.data,e===am&&lm?null:e;default:return null}}function mS(e,t){if(Ni)return e==="compositionend"||!wp&&Ug(e,t)?(e=Vg(),Zl=vp=Jn=null,Ni=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fm(n)}}function Xg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gg(){for(var e=window,t=Cs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Cs(e.document)}return t}function xp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ES(e){var t=Gg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xg(n.ownerDocument.documentElement,n)){if(r!==null&&xp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=dm(n,o);var a=dm(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Li=null,Tf=null,pa=null,If=!1;function pm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;If||Li==null||Li!==Cs(r)||(r=Li,"selectionStart"in r&&xp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),pa&&Ta(pa,r)||(pa=r,r=Ns(Tf,"onSelect"),0$i||(e.current=$f[$i],$f[$i]=null,$i--)}function me(e,t){$i++,$f[$i]=e.current,e.current=t}var hr={},tt=_r(hr),ft=_r(!1),qr=hr;function no(e,t){var n=e.type.contextTypes;if(!n)return hr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function dt(e){return e=e.childContextTypes,e!=null}function Rs(){ge(ft),ge(tt)}function xm(e,t,n){if(tt.current!==hr)throw Error(D(168));me(tt,t),me(ft,n)}function r1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(D(108,wx(e)||"Unknown",i));return Oe({},n,r)}function As(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hr,qr=tt.current,me(tt,e),me(ft,ft.current),!0}function Sm(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=r1(e,t,qr),r.__reactInternalMemoizedMergedChildContext=e,ge(ft),ge(tt),me(tt,e)):ge(ft),me(ft,n)}var kn=null,Su=!1,Ec=!1;function i1(e){kn===null?kn=[e]:kn.push(e)}function $S(e){Su=!0,i1(e)}function br(){if(!Ec&&kn!==null){Ec=!0;var e=0,t=ce;try{var n=kn;for(ce=1;e>=a,i-=a,Pn=1<<32-Kt(t)+i|n<_?(N=E,E=null):N=E.sibling;var L=d(p,E,g[_],S);if(L===null){E===null&&(E=N);break}e&&E&&L.alternate===null&&t(p,E),h=o(L,h,_),k===null?b=L:k.sibling=L,k=L,E=N}if(_===g.length)return n(p,E),Se&&Mr(p,_),b;if(E===null){for(;__?(N=E,E=null):N=E.sibling;var j=d(p,E,L.value,S);if(j===null){E===null&&(E=N);break}e&&E&&j.alternate===null&&t(p,E),h=o(j,h,_),k===null?b=j:k.sibling=j,k=j,E=N}if(L.done)return n(p,E),Se&&Mr(p,_),b;if(E===null){for(;!L.done;_++,L=g.next())L=f(p,L.value,S),L!==null&&(h=o(L,h,_),k===null?b=L:k.sibling=L,k=L);return Se&&Mr(p,_),b}for(E=r(p,E);!L.done;_++,L=g.next())L=m(E,p,_,L.value,S),L!==null&&(e&&L.alternate!==null&&E.delete(L.key===null?_:L.key),h=o(L,h,_),k===null?b=L:k.sibling=L,k=L);return e&&E.forEach(function(H){return t(p,H)}),Se&&Mr(p,_),b}function w(p,h,g,S){if(typeof g=="object"&&g!==null&&g.type===Mi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case wl:e:{for(var b=g.key,k=h;k!==null;){if(k.key===b){if(b=g.type,b===Mi){if(k.tag===7){n(p,k.sibling),h=i(k,g.props.children),h.return=p,p=h;break e}}else if(k.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Gn&&Em(b)===k.type){n(p,k.sibling),h=i(k,g.props),h.ref=Bo(p,k,g),h.return=p,p=h;break e}n(p,k);break}else t(p,k);k=k.sibling}g.type===Mi?(h=Hr(g.props.children,p.mode,S,g.key),h.return=p,p=h):(S=as(g.type,g.key,g.props,null,p.mode,S),S.ref=Bo(p,h,g),S.return=p,p=S)}return a(p);case Ii:e:{for(k=g.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(p,h.sibling),h=i(h,g.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=Nc(g,p.mode,S),h.return=p,p=h}return a(p);case Gn:return k=g._init,w(p,h,k(g._payload),S)}if(qo(g))return v(p,h,g,S);if(Fo(g))return y(p,h,g,S);Il(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,g),h.return=p,p=h):(n(p,h),h=Mc(g,p.mode,S),h.return=p,p=h),a(p)):n(p,h)}return w}var io=s1(!0),u1=s1(!1),Fs=_r(null),zs=null,zi=null,Ep=null;function Cp(){Ep=zi=zs=null}function kp(e){var t=Fs.current;ge(Fs),e._currentValue=t}function zf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Gi(e,t){zs=e,Ep=zi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ut=!0),e.firstContext=null)}function zt(e){var t=e._currentValue;if(Ep!==e)if(e={context:e,memoizedValue:t,next:null},zi===null){if(zs===null)throw Error(D(308));zi=e,zs.dependencies={lanes:0,firstContext:e}}else zi=zi.next=e;return t}var Vr=null;function Op(e){Vr===null?Vr=[e]:Vr.push(e)}function c1(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Op(t)):(n.next=i.next,i.next=n),t.interleaved=n,An(e,r)}function An(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kn=!1;function Pp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function f1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,An(e,n)}return i=r.interleaved,i===null?(t.next=t,Op(r)):(t.next=i.next,i.next=t),r.interleaved=t,An(e,n)}function es(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pp(e,n)}}function Cm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vs(e,t,n,r){var i=e.updateQueue;Kn=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;a=0,c=u=l=null,s=o;do{var d=s.lane,m=s.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,y=s;switch(d=t,m=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){f=v.call(m,f,d);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,d=typeof v=="function"?v.call(m,f,d):v,d==null)break e;f=Oe({},f,d);break e;case 2:Kn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else m={eventTime:m,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=m,l=f):c=c.next=m,a|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ei|=a,e.lanes=a,e.memoizedState=f}}function km(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=kc.transition;kc.transition={};try{e(!1),t()}finally{ce=n,kc.transition=r}}function P1(){return Vt().memoizedState}function VS(e,t,n){var r=cr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},T1(e))I1(t,n);else if(n=c1(e,t,n,r),n!==null){var i=ot();Qt(n,e,r,i),M1(n,t,r)}}function jS(e,t,n){var r=cr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(T1(e))I1(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,qt(s,a)){var l=t.interleaved;l===null?(i.next=i,Op(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=c1(e,t,i,r),n!==null&&(i=ot(),Qt(n,e,r,i),M1(n,t,r))}}function T1(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function I1(e,t){ha=Us=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function M1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pp(e,n)}}var Bs={readContext:zt,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useInsertionEffect:qe,useLayoutEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useMutableSource:qe,useSyncExternalStore:qe,useId:qe,unstable_isNewReconciler:!1},US={readContext:zt,useCallback:function(e,t){return an().memoizedState=[e,t===void 0?null:t],e},useContext:zt,useEffect:Pm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ns(4194308,4,b1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return ns(4,2,e,t)},useMemo:function(e,t){var n=an();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=an();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=VS.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=an();return e={current:e},t.memoizedState=e},useState:Om,useDebugValue:$p,useDeferredValue:function(e){return an().memoizedState=e},useTransition:function(){var e=Om(!1),t=e[0];return e=zS.bind(null,e[1]),an().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,i=an();if(Se){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Be===null)throw Error(D(349));Jr&30||m1(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Pm(g1.bind(null,r,o,e),[e]),r.flags|=2048,Da(9,v1.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=an(),t=Be.identifierPrefix;if(Se){var n=Tn,r=Pn;n=(r&~(1<<32-Kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Aa++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[cn]=t,e[Na]=r,j1(e,t,!1,!1),t.stateNode=e;e:{switch(a=Sf(n,r),n){case"dialog":ve("cancel",e),ve("close",e),i=r;break;case"iframe":case"object":case"embed":ve("load",e),i=r;break;case"video":case"audio":for(i=0;ilo&&(t.flags|=128,r=!0,Ho(o,!1),t.lanes=4194304)}else{if(!r)if(e=js(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ho(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Se)return Ze(t),null}else 2*Ie()-o.renderingStartTime>lo&&n!==1073741824&&(t.flags|=128,r=!0,Ho(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ie(),t.sibling=null,n=Ce.current,me(Ce,r?n&1|2:n&1),t):(Ze(t),null);case 22:case 23:return Up(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function QS(e,t){switch(_p(t),t.tag){case 1:return dt(t.type)&&As(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oo(),ge(ft),ge(tt),Mp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ip(t),null;case 13:if(ge(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));ro()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(Ce),null;case 4:return oo(),null;case 10:return kp(t.type._context),null;case 22:case 23:return Up(),null;case 24:return null;default:return null}}var Nl=!1,et=!1,qS=typeof WeakSet=="function"?WeakSet:Set,j=null;function Vi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Gf(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var zm=!1;function ZS(e,t){if(Mf=Is,e=Gg(),xp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===n&&++u===i&&(s=a),d===o&&++c===r&&(l=a),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Nf={focusedElem:e,selectionRange:n},Is=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,w=v.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:Wt(t.type,y),w);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(S){Pe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return v=zm,zm=!1,v}function ma(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Gf(t,n,o)}i=i.next}while(i!==r)}}function Eu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Kf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function H1(e){var t=e.alternate;t!==null&&(e.alternate=null,H1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cn],delete t[Na],delete t[Rf],delete t[AS],delete t[RS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function W1(e){return e.tag===5||e.tag===3||e.tag===4}function Vm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||W1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ls));else if(r!==4&&(e=e.child,e!==null))for(Qf(e,t,n),e=e.sibling;e!==null;)Qf(e,t,n),e=e.sibling}function qf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(qf(e,t,n),e=e.sibling;e!==null;)qf(e,t,n),e=e.sibling}var We=null,Yt=!1;function Yn(e,t,n){for(n=n.child;n!==null;)Y1(e,t,n),n=n.sibling}function Y1(e,t,n){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(vu,n)}catch{}switch(n.tag){case 5:et||Vi(n,t);case 6:var r=We,i=Yt;We=null,Yn(e,t,n),We=r,Yt=i,We!==null&&(Yt?(e=We,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):We.removeChild(n.stateNode));break;case 18:We!==null&&(Yt?(e=We,n=n.stateNode,e.nodeType===8?bc(e.parentNode,n):e.nodeType===1&&bc(e,n),Oa(e)):bc(We,n.stateNode));break;case 4:r=We,i=Yt,We=n.stateNode.containerInfo,Yt=!0,Yn(e,t,n),We=r,Yt=i;break;case 0:case 11:case 14:case 15:if(!et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Gf(n,t,a),i=i.next}while(i!==r)}Yn(e,t,n);break;case 1:if(!et&&(Vi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Pe(n,t,s)}Yn(e,t,n);break;case 21:Yn(e,t,n);break;case 22:n.mode&1?(et=(r=et)||n.memoizedState!==null,Yn(e,t,n),et=r):Yn(e,t,n);break;default:Yn(e,t,n)}}function jm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qS),t.forEach(function(r){var i=l_.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Bt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*e_(r/1960))-r,10e?16:e,er===null)var r=!1;else{if(e=er,er=null,Ys=0,le&6)throw Error(D(331));var i=le;for(le|=4,j=e.current;j!==null;){var o=j,a=o.child;if(j.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lIe()-Vp?Br(e,0):zp|=n),pt(e,t)}function ey(e,t){t===0&&(e.mode&1?(t=bl,bl<<=1,!(bl&130023424)&&(bl=4194304)):t=1);var n=ot();e=Rn(e,t),e!==null&&(nl(e,t,n),pt(e,n))}function a_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ey(e,n)}function l_(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),ey(e,n)}var ty;ty=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ut=!1,GS(e,t,n);ut=!!(e.flags&131072)}else ut=!1,Se&&t.flags&1048576&&o1(t,Ds,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rs(e,t),e=t.pendingProps;var i=no(t,tt.current);Gi(t,n),i=Lp(null,t,r,e,i,n);var o=Ap();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(o=!0,Rs(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Pp(t),i.updater=bu,t.stateNode=i,i._reactInternals=t,jf(t,r,e,n),t=Hf(null,t,r,!0,o,n)):(t.tag=0,Se&&o&&Sp(t),rt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=u_(r),e=Wt(r,e),i){case 0:t=Bf(null,t,r,e,n);break e;case 1:t=$m(null,t,r,e,n);break e;case 11:t=Am(null,t,r,e,n);break e;case 14:t=Rm(null,t,r,Wt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),Bf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),$m(e,t,r,i,n);case 3:e:{if(F1(t),e===null)throw Error(D(387));r=t.pendingProps,o=t.memoizedState,i=o.element,f1(e,t),Vs(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ao(Error(D(423)),t),t=Dm(e,t,r,n,i);break e}else if(r!==i){i=ao(Error(D(424)),t),t=Dm(e,t,r,n,i);break e}else for(wt=lr(t.stateNode.containerInfo.firstChild),St=t,Se=!0,Xt=null,n=u1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ro(),r===i){t=$n(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return d1(t),e===null&&Ff(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Lf(r,i)?a=null:o!==null&&Lf(r,o)&&(t.flags|=32),D1(e,t),rt(e,t,a,n),t.child;case 6:return e===null&&Ff(t),null;case 13:return z1(e,t,n);case 4:return Tp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=io(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),Am(e,t,r,i,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,me(Fs,r._currentValue),r._currentValue=a,o!==null)if(qt(o.value,a)){if(o.children===i.children&&!ft.current){t=$n(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Mn(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),zf(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(D(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),zf(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}rt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Gi(t,n),i=zt(i),r=r(i),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,i=Wt(r,t.pendingProps),i=Wt(r.type,i),Rm(e,t,r,i,n);case 15:return R1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),rs(e,t),t.tag=1,dt(r)?(e=!0,Rs(t)):e=!1,Gi(t,n),N1(t,r,i),jf(t,r,i,n),Hf(null,t,r,!0,e,n);case 19:return V1(e,t,n);case 22:return $1(e,t,n)}throw Error(D(156,t.tag))};function ny(e,t){return Tg(e,t)}function s_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,n,r){return new s_(e,t,n,r)}function Hp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function u_(e){if(typeof e=="function")return Hp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===up)return 11;if(e===cp)return 14}return 2}function fr(e,t){var n=e.alternate;return n===null?(n=Dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function as(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Hp(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Mi:return Hr(n.children,i,o,t);case sp:a=8,i|=8;break;case ff:return e=Dt(12,n,t,i|2),e.elementType=ff,e.lanes=o,e;case df:return e=Dt(13,n,t,i),e.elementType=df,e.lanes=o,e;case pf:return e=Dt(19,n,t,i),e.elementType=pf,e.lanes=o,e;case dg:return ku(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cg:a=10;break e;case fg:a=9;break e;case up:a=11;break e;case cp:a=14;break e;case Gn:a=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Dt(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Hr(e,t,n,r){return e=Dt(7,e,r,t),e.lanes=n,e}function ku(e,t,n,r){return e=Dt(22,e,r,t),e.elementType=dg,e.lanes=n,e.stateNode={isHidden:!1},e}function Mc(e,t,n){return e=Dt(6,e,null,t),e.lanes=n,e}function Nc(e,t,n){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function c_(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dc(0),this.expirationTimes=dc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Wp(e,t,n,r,i,o,a,s,l){return e=new c_(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Dt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pp(o),e}function f_(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ay)}catch(e){console.error(e)}}ay(),ag.exports=Pt;var ly=ag.exports,Km=ly;uf.createRoot=Km.createRoot,uf.hydrateRoot=Km.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Tc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Uf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var WS=typeof WeakMap=="function"?WeakMap:Map;function L1(e,t,n){n=Mn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ws||(Ws=!0,Zf=r),Uf(e,t)},n}function R1(e,t,n){n=Mn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Uf(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Uf(e,t),typeof r!="function"&&(ur===null?ur=new Set([this]):ur.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Mm(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new WS;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=o_.bind(null,e,t,n),t.then(e,e))}function Nm(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Lm(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Mn(-1,1),t.tag=2,sr(n,t,1))),n.lanes|=1),e)}var YS=Vn.ReactCurrentOwner,ut=!1;function rt(e,t,n,r){t.child=e===null?u1(t,null,n,r):io(t,e.child,n,r)}function Rm(e,t,n,r,i){n=n.render;var o=t.ref;return Gi(t,i),r=Lp(e,t,n,r,o,i),n=Rp(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$n(e,t,i)):(Se&&n&&Sp(t),t.flags|=1,rt(e,t,r,i),t.child)}function Am(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Hp(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,A1(e,t,o,r,i)):(e=as(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ta,n(a,r)&&e.ref===t.ref)return $n(e,t,i)}return t.flags|=1,e=fr(o,r),e.ref=t.ref,e.return=t,t.child=e}function A1(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ta(o,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ut=!0);else return t.lanes=e.lanes,$n(e,t,i)}return Bf(e,t,n,r,i)}function $1(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},me(ji,yt),yt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,me(ji,yt),yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,me(ji,yt),yt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,me(ji,yt),yt|=r;return rt(e,t,i,n),t.child}function D1(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bf(e,t,n,r,i){var o=dt(n)?qr:tt.current;return o=no(t,o),Gi(t,i),n=Lp(e,t,n,r,o,i),r=Rp(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$n(e,t,i)):(Se&&r&&Sp(t),t.flags|=1,rt(e,t,n,i),t.child)}function $m(e,t,n,r,i){if(dt(n)){var o=!0;As(t)}else o=!1;if(Gi(t,i),t.stateNode===null)rs(e,t),N1(t,n,r),jf(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=zt(u):(u=dt(n)?qr:tt.current,u=no(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&Im(t,a,r,u),Kn=!1;var d=t.memoizedState;a.state=d,Vs(t,r,a,i),l=t.memoizedState,s!==r||d!==l||ft.current||Kn?(typeof c=="function"&&(Vf(t,n,c,r),l=t.memoizedState),(s=Kn||Tm(t,n,s,r,d,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,f1(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Wt(t.type,s),a.props=u,f=t.pendingProps,d=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=zt(l):(l=dt(n)?qr:tt.current,l=no(t,l));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||d!==l)&&Im(t,a,r,l),Kn=!1,d=t.memoizedState,a.state=d,Vs(t,r,a,i);var v=t.memoizedState;s!==f||d!==v||ft.current||Kn?(typeof m=="function"&&(Vf(t,n,m,r),v=t.memoizedState),(u=Kn||Tm(t,n,u,r,d,v,l)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Hf(e,t,n,r,o,i)}function Hf(e,t,n,r,i,o){D1(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&Sm(t,n,!1),$n(e,t,o);r=t.stateNode,YS.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=io(t,e.child,null,o),t.child=io(t,null,s,o)):rt(e,t,s,o),t.memoizedState=r.state,i&&Sm(t,n,!0),t.child}function F1(e){var t=e.stateNode;t.pendingContext?xm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xm(e,t.context,!1),Tp(e,t.containerInfo)}function Dm(e,t,n,r,i){return ro(),bp(i),t.flags|=256,rt(e,t,n,r),t.child}var Wf={dehydrated:null,treeContext:null,retryLane:0};function Yf(e){return{baseLanes:e,cachePool:null,transitions:null}}function z1(e,t,n){var r=t.pendingProps,i=Ce.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),me(Ce,i&1),e===null)return Ff(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=ku(a,r,0,null),e=Hr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Yf(n),t.memoizedState=Wf,e):Dp(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return XS(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=fr(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=fr(s,o):(o=Hr(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Yf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Wf,r}return o=e.child,e=o.sibling,r=fr(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Dp(e,t){return t=ku({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ml(e,t,n,r){return r!==null&&bp(r),io(t,e.child,null,n),e=Dp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function XS(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Tc(Error(D(422))),Ml(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ku({mode:"visible",children:r.children},i,0,null),o=Hr(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&io(t,e.child,null,a),t.child.memoizedState=Yf(a),t.memoizedState=Wf,o);if(!(t.mode&1))return Ml(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(D(419)),r=Tc(o,r,void 0),Ml(e,t,a,r)}if(s=(a&e.childLanes)!==0,ut||s){if(r=Be,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,An(e,i),Qt(r,e,i,-1))}return Bp(),r=Tc(Error(D(421))),Ml(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=a_.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,wt=lr(i.nextSibling),St=t,Se=!0,Xt=null,e!==null&&(At[$t++]=Pn,At[$t++]=Tn,At[$t++]=Zr,Pn=e.id,Tn=e.overflow,Zr=t),t=Dp(t,r.children),t.flags|=4096,t)}function Fm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),zf(e.return,t,n)}function Ic(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function V1(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(rt(e,t,r.children,n),r=Ce.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fm(e,n,t);else if(e.tag===19)Fm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(me(Ce,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&js(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ic(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&js(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ic(t,!0,n,null,o);break;case"together":Ic(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $n(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ei|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=fr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function GS(e,t,n){switch(t.tag){case 3:F1(t),ro();break;case 5:d1(t);break;case 1:dt(t.type)&&As(t);break;case 4:Tp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;me(Fs,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(me(Ce,Ce.current&1),t.flags|=128,null):n&t.child.childLanes?z1(e,t,n):(me(Ce,Ce.current&1),e=$n(e,t,n),e!==null?e.sibling:null);me(Ce,Ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return V1(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),me(Ce,Ce.current),r)break;return null;case 22:case 23:return t.lanes=0,$1(e,t,n)}return $n(e,t,n)}var j1,Xf,U1,B1;j1=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Xf=function(){};U1=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,jr(hn.current);var o=null;switch(n){case"input":i=mf(e,i),r=mf(e,r),o=[];break;case"select":i=Oe({},i,{value:void 0}),r=Oe({},r,{value:void 0}),o=[];break;case"textarea":i=yf(e,i),r=yf(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ls)}xf(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(_a.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(_a.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ve("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};B1=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ho(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function KS(e,t,n){var r=t.pendingProps;switch(_p(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return dt(t.type)&&Rs(),Ze(t),null;case 3:return r=t.stateNode,oo(),ge(ft),ge(tt),Mp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Tl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xt!==null&&(td(Xt),Xt=null))),Xf(e,t),Ze(t),null;case 5:Ip(t);var i=jr(Ra.current);if(n=t.type,e!==null&&t.stateNode!=null)U1(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return Ze(t),null}if(e=jr(hn.current),Tl(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[cn]=t,r[Na]=o,e=(t.mode&1)!==0,n){case"dialog":ve("cancel",r),ve("close",r);break;case"iframe":case"object":case"embed":ve("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[cn]=t,e[Na]=r,j1(e,t,!1,!1),t.stateNode=e;e:{switch(a=Sf(n,r),n){case"dialog":ve("cancel",e),ve("close",e),i=r;break;case"iframe":case"object":case"embed":ve("load",e),i=r;break;case"video":case"audio":for(i=0;ilo&&(t.flags|=128,r=!0,Ho(o,!1),t.lanes=4194304)}else{if(!r)if(e=js(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ho(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Se)return Ze(t),null}else 2*Ie()-o.renderingStartTime>lo&&n!==1073741824&&(t.flags|=128,r=!0,Ho(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ie(),t.sibling=null,n=Ce.current,me(Ce,r?n&1|2:n&1),t):(Ze(t),null);case 22:case 23:return Up(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function QS(e,t){switch(_p(t),t.tag){case 1:return dt(t.type)&&Rs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oo(),ge(ft),ge(tt),Mp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ip(t),null;case 13:if(ge(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));ro()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(Ce),null;case 4:return oo(),null;case 10:return kp(t.type._context),null;case 22:case 23:return Up(),null;case 24:return null;default:return null}}var Nl=!1,et=!1,qS=typeof WeakSet=="function"?WeakSet:Set,U=null;function Vi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Gf(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var zm=!1;function ZS(e,t){if(Mf=Is,e=Gg(),xp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===n&&++u===i&&(s=a),d===o&&++c===r&&(l=a),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Nf={focusedElem:e,selectionRange:n},Is=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,w=v.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:Wt(t.type,y),w);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(S){Pe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return v=zm,zm=!1,v}function ma(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Gf(t,n,o)}i=i.next}while(i!==r)}}function Eu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Kf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function H1(e){var t=e.alternate;t!==null&&(e.alternate=null,H1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cn],delete t[Na],delete t[Af],delete t[RS],delete t[AS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function W1(e){return e.tag===5||e.tag===3||e.tag===4}function Vm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||W1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ls));else if(r!==4&&(e=e.child,e!==null))for(Qf(e,t,n),e=e.sibling;e!==null;)Qf(e,t,n),e=e.sibling}function qf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(qf(e,t,n),e=e.sibling;e!==null;)qf(e,t,n),e=e.sibling}var We=null,Yt=!1;function Yn(e,t,n){for(n=n.child;n!==null;)Y1(e,t,n),n=n.sibling}function Y1(e,t,n){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(vu,n)}catch{}switch(n.tag){case 5:et||Vi(n,t);case 6:var r=We,i=Yt;We=null,Yn(e,t,n),We=r,Yt=i,We!==null&&(Yt?(e=We,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):We.removeChild(n.stateNode));break;case 18:We!==null&&(Yt?(e=We,n=n.stateNode,e.nodeType===8?bc(e.parentNode,n):e.nodeType===1&&bc(e,n),Oa(e)):bc(We,n.stateNode));break;case 4:r=We,i=Yt,We=n.stateNode.containerInfo,Yt=!0,Yn(e,t,n),We=r,Yt=i;break;case 0:case 11:case 14:case 15:if(!et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Gf(n,t,a),i=i.next}while(i!==r)}Yn(e,t,n);break;case 1:if(!et&&(Vi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Pe(n,t,s)}Yn(e,t,n);break;case 21:Yn(e,t,n);break;case 22:n.mode&1?(et=(r=et)||n.memoizedState!==null,Yn(e,t,n),et=r):Yn(e,t,n);break;default:Yn(e,t,n)}}function jm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qS),t.forEach(function(r){var i=l_.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Bt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*e_(r/1960))-r,10e?16:e,er===null)var r=!1;else{if(e=er,er=null,Ys=0,le&6)throw Error(D(331));var i=le;for(le|=4,U=e.current;U!==null;){var o=U,a=o.child;if(U.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lIe()-Vp?Br(e,0):zp|=n),pt(e,t)}function ey(e,t){t===0&&(e.mode&1?(t=bl,bl<<=1,!(bl&130023424)&&(bl=4194304)):t=1);var n=ot();e=An(e,t),e!==null&&(nl(e,t,n),pt(e,n))}function a_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ey(e,n)}function l_(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),ey(e,n)}var ty;ty=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ut=!1,GS(e,t,n);ut=!!(e.flags&131072)}else ut=!1,Se&&t.flags&1048576&&o1(t,Ds,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rs(e,t),e=t.pendingProps;var i=no(t,tt.current);Gi(t,n),i=Lp(null,t,r,e,i,n);var o=Rp();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(o=!0,As(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Pp(t),i.updater=bu,t.stateNode=i,i._reactInternals=t,jf(t,r,e,n),t=Hf(null,t,r,!0,o,n)):(t.tag=0,Se&&o&&Sp(t),rt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=u_(r),e=Wt(r,e),i){case 0:t=Bf(null,t,r,e,n);break e;case 1:t=$m(null,t,r,e,n);break e;case 11:t=Rm(null,t,r,e,n);break e;case 14:t=Am(null,t,r,Wt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),Bf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),$m(e,t,r,i,n);case 3:e:{if(F1(t),e===null)throw Error(D(387));r=t.pendingProps,o=t.memoizedState,i=o.element,f1(e,t),Vs(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ao(Error(D(423)),t),t=Dm(e,t,r,n,i);break e}else if(r!==i){i=ao(Error(D(424)),t),t=Dm(e,t,r,n,i);break e}else for(wt=lr(t.stateNode.containerInfo.firstChild),St=t,Se=!0,Xt=null,n=u1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ro(),r===i){t=$n(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return d1(t),e===null&&Ff(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Lf(r,i)?a=null:o!==null&&Lf(r,o)&&(t.flags|=32),D1(e,t),rt(e,t,a,n),t.child;case 6:return e===null&&Ff(t),null;case 13:return z1(e,t,n);case 4:return Tp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=io(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),Rm(e,t,r,i,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,me(Fs,r._currentValue),r._currentValue=a,o!==null)if(qt(o.value,a)){if(o.children===i.children&&!ft.current){t=$n(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Mn(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),zf(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(D(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),zf(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}rt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Gi(t,n),i=zt(i),r=r(i),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,i=Wt(r,t.pendingProps),i=Wt(r.type,i),Am(e,t,r,i,n);case 15:return A1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),rs(e,t),t.tag=1,dt(r)?(e=!0,As(t)):e=!1,Gi(t,n),N1(t,r,i),jf(t,r,i,n),Hf(null,t,r,!0,e,n);case 19:return V1(e,t,n);case 22:return $1(e,t,n)}throw Error(D(156,t.tag))};function ny(e,t){return Tg(e,t)}function s_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,n,r){return new s_(e,t,n,r)}function Hp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function u_(e){if(typeof e=="function")return Hp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===up)return 11;if(e===cp)return 14}return 2}function fr(e,t){var n=e.alternate;return n===null?(n=Dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function as(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Hp(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Mi:return Hr(n.children,i,o,t);case sp:a=8,i|=8;break;case ff:return e=Dt(12,n,t,i|2),e.elementType=ff,e.lanes=o,e;case df:return e=Dt(13,n,t,i),e.elementType=df,e.lanes=o,e;case pf:return e=Dt(19,n,t,i),e.elementType=pf,e.lanes=o,e;case dg:return ku(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cg:a=10;break e;case fg:a=9;break e;case up:a=11;break e;case cp:a=14;break e;case Gn:a=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Dt(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Hr(e,t,n,r){return e=Dt(7,e,r,t),e.lanes=n,e}function ku(e,t,n,r){return e=Dt(22,e,r,t),e.elementType=dg,e.lanes=n,e.stateNode={isHidden:!1},e}function Mc(e,t,n){return e=Dt(6,e,null,t),e.lanes=n,e}function Nc(e,t,n){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function c_(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dc(0),this.expirationTimes=dc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Wp(e,t,n,r,i,o,a,s,l){return e=new c_(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Dt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pp(o),e}function f_(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ay)}catch(e){console.error(e)}}ay(),ag.exports=Pt;var ly=ag.exports,Km=ly;uf.createRoot=Km.createRoot,uf.hydrateRoot=Km.hydrateRoot;/** * @remix-run/router v1.18.0 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function sy(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function g_(){return Math.random().toString(36).substr(2,8)}function qm(e,t){return{usr:e.state,key:e.key,idx:t}}function nd(e,t,n,r){return n===void 0&&(n=null),za({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?So(t):t,{state:n,key:t&&t.key||r||g_()})}function Ks(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function So(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function y_(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=tr.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(za({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=tr.Pop;let w=c(),p=w==null?null:w-u;u=w,l&&l({action:s,location:y.location,delta:p})}function d(w,p){s=tr.Push;let h=nd(y.location,w,p);u=c()+1;let g=qm(h,u),S=y.createHref(h);try{a.pushState(g,"",S)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;i.location.assign(S)}o&&l&&l({action:s,location:y.location,delta:1})}function m(w,p){s=tr.Replace;let h=nd(y.location,w,p);u=c();let g=qm(h,u),S=y.createHref(h);a.replaceState(g,"",S),o&&l&&l({action:s,location:y.location,delta:0})}function v(w){let p=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof w=="string"?w:Ks(w);return h=h.replace(/ $/,"%20"),Re(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let y={get action(){return s},get location(){return e(i,a)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Qm,f),l=w,()=>{i.removeEventListener(Qm,f),l=null}},createHref(w){return t(i,w)},createURL:v,encodeLocation(w){let p=v(w);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:m,go(w){return a.go(w)}};return y}var Zm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Zm||(Zm={}));function w_(e,t,n){return n===void 0&&(n="/"),x_(e,t,n,!1)}function x_(e,t,n,r){let i=typeof t=="string"?So(t):t,o=Kp(i.pathname||"/",n);if(o==null)return null;let a=uy(e);S_(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Re(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=dr([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Re(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),uy(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:P_(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of cy(o.path))i(o,a,l)}),t}function cy(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=cy(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function S_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:T_(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const __=/^:[\w-]+$/,b_=3,E_=2,C_=1,k_=10,O_=-2,Jm=e=>e==="*";function P_(e,t){let n=e.split("/"),r=n.length;return n.some(Jm)&&(r+=O_),t&&(r+=E_),n.filter(i=>!Jm(i)).reduce((i,o)=>i+(__.test(o)?b_:o===""?C_:k_),r)}function T_(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function I_(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s{let{paramName:d,isOptional:m}=c;if(d==="*"){let y=s[f]||"";a=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const v=s[f];return m&&!v?u[d]=void 0:u[d]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function M_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),sy(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function N_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sy(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Kp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function L_(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?So(e):e;return{pathname:n?n.startsWith("/")?n:A_(n,t):t,search:D_(r),hash:F_(i)}}function A_(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Lc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function R_(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function fy(e,t){let n=R_(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function dy(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=So(e):(i=za({},e),Re(!i.pathname||!i.pathname.includes("?"),Lc("?","pathname","search",i)),Re(!i.pathname||!i.pathname.includes("#"),Lc("#","pathname","hash",i)),Re(!i.search||!i.search.includes("#"),Lc("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=L_(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const dr=e=>e.join("/").replace(/\/\/+/g,"/"),$_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,F_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function z_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const py=["post","put","patch","delete"];new Set(py);const V_=["get",...py];new Set(V_);/** + */function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function sy(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function g_(){return Math.random().toString(36).substr(2,8)}function qm(e,t){return{usr:e.state,key:e.key,idx:t}}function nd(e,t,n,r){return n===void 0&&(n=null),za({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?So(t):t,{state:n,key:t&&t.key||r||g_()})}function Ks(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function So(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function y_(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=tr.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(za({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=tr.Pop;let w=c(),p=w==null?null:w-u;u=w,l&&l({action:s,location:y.location,delta:p})}function d(w,p){s=tr.Push;let h=nd(y.location,w,p);u=c()+1;let g=qm(h,u),S=y.createHref(h);try{a.pushState(g,"",S)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;i.location.assign(S)}o&&l&&l({action:s,location:y.location,delta:1})}function m(w,p){s=tr.Replace;let h=nd(y.location,w,p);u=c();let g=qm(h,u),S=y.createHref(h);a.replaceState(g,"",S),o&&l&&l({action:s,location:y.location,delta:0})}function v(w){let p=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof w=="string"?w:Ks(w);return h=h.replace(/ $/,"%20"),Ae(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let y={get action(){return s},get location(){return e(i,a)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Qm,f),l=w,()=>{i.removeEventListener(Qm,f),l=null}},createHref(w){return t(i,w)},createURL:v,encodeLocation(w){let p=v(w);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:m,go(w){return a.go(w)}};return y}var Zm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Zm||(Zm={}));function w_(e,t,n){return n===void 0&&(n="/"),x_(e,t,n,!1)}function x_(e,t,n,r){let i=typeof t=="string"?So(t):t,o=Kp(i.pathname||"/",n);if(o==null)return null;let a=uy(e);S_(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Ae(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=dr([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Ae(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),uy(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:P_(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of cy(o.path))i(o,a,l)}),t}function cy(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=cy(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function S_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:T_(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const __=/^:[\w-]+$/,b_=3,E_=2,C_=1,k_=10,O_=-2,Jm=e=>e==="*";function P_(e,t){let n=e.split("/"),r=n.length;return n.some(Jm)&&(r+=O_),t&&(r+=E_),n.filter(i=>!Jm(i)).reduce((i,o)=>i+(__.test(o)?b_:o===""?C_:k_),r)}function T_(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function I_(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s{let{paramName:d,isOptional:m}=c;if(d==="*"){let y=s[f]||"";a=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const v=s[f];return m&&!v?u[d]=void 0:u[d]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function M_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),sy(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function N_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sy(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Kp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function L_(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?So(e):e;return{pathname:n?n.startsWith("/")?n:R_(n,t):t,search:D_(r),hash:F_(i)}}function R_(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Lc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function A_(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function fy(e,t){let n=A_(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function dy(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=So(e):(i=za({},e),Ae(!i.pathname||!i.pathname.includes("?"),Lc("?","pathname","search",i)),Ae(!i.pathname||!i.pathname.includes("#"),Lc("#","pathname","hash",i)),Ae(!i.search||!i.search.includes("#"),Lc("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=L_(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const dr=e=>e.join("/").replace(/\/\/+/g,"/"),$_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,F_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function z_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const py=["post","put","patch","delete"];new Set(py);const V_=["get",...py];new Set(V_);/** * React Router v6.25.1 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),x.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=dy(u,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:dr([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,a,o,e])}function vy(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(ci),{matches:i}=x.useContext(fi),{pathname:o}=Er(),a=JSON.stringify(fy(i,r.v7_relativeSplatPath));return x.useMemo(()=>dy(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function H_(e,t){return W_(e,t)}function W_(e,t,n,r){al()||Re(!1);let{navigator:i}=x.useContext(ci),{matches:o}=x.useContext(fi),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=Er(),c;if(t){var f;let w=typeof t=="string"?So(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||Re(!1),c=w}else c=u;let d=c.pathname||"/",m=d;if(l!=="/"){let w=l.replace(/^\//,"").split("/");m="/"+d.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=w_(e,{pathname:m}),y=Q_(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:dr([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:dr([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,r);return t&&y?x.createElement(Mu.Provider,{value:{location:Va({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:tr.Pop}},y):y}function Y_(){let e=eb(),t=z_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:i},n):null,null)}const X_=x.createElement(Y_,null);class G_ extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(fi.Provider,{value:this.props.routeContext},x.createElement(hy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function K_(e){let{routeContext:t,match:n,children:r}=e,i=x.useContext(Qp);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(fi.Provider,{value:t},r)}function Q_(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let c=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||Re(!1),a=a.slice(0,Math.min(a.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,f,d)=>{let m,v=!1,y=null,w=null;n&&(m=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||X_,l&&(u<0&&d===0?(v=!0,w=null):u===d&&(v=!0,w=f.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,d+1)),h=()=>{let g;return m?g=y:v?g=w:f.route.Component?g=x.createElement(f.route.Component,null):f.route.element?g=f.route.element:g=c,x.createElement(K_,{match:f,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:g})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?x.createElement(G_,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var gy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(gy||{}),Qs=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Qs||{});function q_(e){let t=x.useContext(Qp);return t||Re(!1),t}function Z_(e){let t=x.useContext(j_);return t||Re(!1),t}function J_(e){let t=x.useContext(fi);return t||Re(!1),t}function yy(e){let t=J_(),n=t.matches[t.matches.length-1];return n.route.id||Re(!1),n.route.id}function eb(){var e;let t=x.useContext(hy),n=Z_(Qs.UseRouteError),r=yy(Qs.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function tb(){let{router:e}=q_(gy.UseNavigateStable),t=yy(Qs.UseNavigateStable),n=x.useRef(!1);return my(()=>{n.current=!0}),x.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Va({fromRouteId:t},o)))},[e,t])}function ea(e){Re(!1)}function nb(e){let{basename:t="/",children:n=null,location:r,navigationType:i=tr.Pop,navigator:o,static:a=!1,future:s}=e;al()&&Re(!1);let l=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:l,navigator:o,static:a,future:Va({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=So(r));let{pathname:c="/",search:f="",hash:d="",state:m=null,key:v="default"}=r,y=x.useMemo(()=>{let w=Kp(c,l);return w==null?null:{location:{pathname:w,search:f,hash:d,state:m,key:v},navigationType:i}},[l,c,f,d,m,v,i]);return y==null?null:x.createElement(ci.Provider,{value:u},x.createElement(Mu.Provider,{children:n,value:y}))}function rb(e){let{children:t,location:n}=e;return H_(rd(t),n)}new Promise(()=>{});function rd(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,i)=>{if(!x.isValidElement(r))return;let o=[...t,i];if(r.type===x.Fragment){n.push.apply(n,rd(r.props.children,o));return}r.type!==ea&&Re(!1),!r.props.index||!r.props.children||Re(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=rd(r.props.children,o)),n.push(a)}),n}/** + */function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),x.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=dy(u,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:dr([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,a,o,e])}function vy(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(ci),{matches:i}=x.useContext(fi),{pathname:o}=Er(),a=JSON.stringify(fy(i,r.v7_relativeSplatPath));return x.useMemo(()=>dy(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function H_(e,t){return W_(e,t)}function W_(e,t,n,r){al()||Ae(!1);let{navigator:i}=x.useContext(ci),{matches:o}=x.useContext(fi),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=Er(),c;if(t){var f;let w=typeof t=="string"?So(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||Ae(!1),c=w}else c=u;let d=c.pathname||"/",m=d;if(l!=="/"){let w=l.replace(/^\//,"").split("/");m="/"+d.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=w_(e,{pathname:m}),y=Q_(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:dr([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:dr([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,r);return t&&y?x.createElement(Mu.Provider,{value:{location:Va({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:tr.Pop}},y):y}function Y_(){let e=eb(),t=z_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:i},n):null,null)}const X_=x.createElement(Y_,null);class G_ extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(fi.Provider,{value:this.props.routeContext},x.createElement(hy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function K_(e){let{routeContext:t,match:n,children:r}=e,i=x.useContext(Qp);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(fi.Provider,{value:t},r)}function Q_(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let c=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||Ae(!1),a=a.slice(0,Math.min(a.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,f,d)=>{let m,v=!1,y=null,w=null;n&&(m=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||X_,l&&(u<0&&d===0?(v=!0,w=null):u===d&&(v=!0,w=f.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,d+1)),h=()=>{let g;return m?g=y:v?g=w:f.route.Component?g=x.createElement(f.route.Component,null):f.route.element?g=f.route.element:g=c,x.createElement(K_,{match:f,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:g})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?x.createElement(G_,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var gy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(gy||{}),Qs=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Qs||{});function q_(e){let t=x.useContext(Qp);return t||Ae(!1),t}function Z_(e){let t=x.useContext(j_);return t||Ae(!1),t}function J_(e){let t=x.useContext(fi);return t||Ae(!1),t}function yy(e){let t=J_(),n=t.matches[t.matches.length-1];return n.route.id||Ae(!1),n.route.id}function eb(){var e;let t=x.useContext(hy),n=Z_(Qs.UseRouteError),r=yy(Qs.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function tb(){let{router:e}=q_(gy.UseNavigateStable),t=yy(Qs.UseNavigateStable),n=x.useRef(!1);return my(()=>{n.current=!0}),x.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Va({fromRouteId:t},o)))},[e,t])}function ea(e){Ae(!1)}function nb(e){let{basename:t="/",children:n=null,location:r,navigationType:i=tr.Pop,navigator:o,static:a=!1,future:s}=e;al()&&Ae(!1);let l=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:l,navigator:o,static:a,future:Va({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=So(r));let{pathname:c="/",search:f="",hash:d="",state:m=null,key:v="default"}=r,y=x.useMemo(()=>{let w=Kp(c,l);return w==null?null:{location:{pathname:w,search:f,hash:d,state:m,key:v},navigationType:i}},[l,c,f,d,m,v,i]);return y==null?null:x.createElement(ci.Provider,{value:u},x.createElement(Mu.Provider,{children:n,value:y}))}function rb(e){let{children:t,location:n}=e;return H_(rd(t),n)}new Promise(()=>{});function rd(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,i)=>{if(!x.isValidElement(r))return;let o=[...t,i];if(r.type===x.Fragment){n.push.apply(n,rd(r.props.children,o));return}r.type!==ea&&Ae(!1),!r.props.index||!r.props.children||Ae(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=rd(r.props.children,o)),n.push(a)}),n}/** * React Router DOM v6.25.1 * * Copyright (c) Remix Software Inc. @@ -64,7 +64,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function id(){return id=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function ob(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ab(e,t){return e.button===0&&(!t||t==="_self")&&!ob(e)}function od(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function lb(e,t){let n=od(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const sb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ub="6";try{window.__reactRouterVersion=ub}catch{}const cb="startTransition",t0=sf[cb];function fb(e){let{basename:t,children:n,future:r,window:i}=e,o=x.useRef();o.current==null&&(o.current=v_({window:i,v5Compat:!0}));let a=o.current,[s,l]=x.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},c=x.useCallback(f=>{u&&t0?t0(()=>l(f)):l(f)},[l,u]);return x.useLayoutEffect(()=>a.listen(c),[a,c]),x.createElement(nb,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const db=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_n=x.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=ib(t,sb),{basename:m}=x.useContext(ci),v,y=!1;if(typeof u=="string"&&pb.test(u)&&(v=u,db))try{let g=new URL(window.location.href),S=u.startsWith("//")?new URL(g.protocol+u):new URL(u),b=Kp(S.pathname,m);S.origin===g.origin&&b!=null?u=b+S.search+S.hash:y=!0}catch{}let w=U_(u,{relative:i}),p=hb(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:f});function h(g){r&&r(g),g.defaultPrevented||p(g)}return x.createElement("a",id({},d,{href:v||w,onClick:y||o?r:h,ref:n,target:l}))});var n0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(n0||(n0={}));var r0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(r0||(r0={}));function hb(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=qp(),u=Er(),c=vy(e,{relative:a});return x.useCallback(f=>{if(ab(f,n)){f.preventDefault();let d=r!==void 0?r:Ks(u)===Ks(c);l(e,{replace:d,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[u,l,c,r,i,n,e,o,a,s])}function Nu(e){let t=x.useRef(od(e)),n=x.useRef(!1),r=Er(),i=x.useMemo(()=>lb(r.search,n.current?null:t.current),[r.search]),o=qp(),a=x.useCallback((s,l)=>{const u=od(typeof s=="function"?s(i):s);n.current=!0,o("?"+u,l)},[o,i]);return[i,a]}function mb(e,t){let n;for(const r of e)r!=null&&(n=r)&&(n=r);return n}var vb={value:()=>{}};function Zp(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}ls.prototype=Zp.prototype={constructor:ls,on:function(e,t){var n=this._,r=gb(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),o0.hasOwnProperty(t)?{space:o0[t],local:e}:e}function wb(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ad&&t.documentElement.namespaceURI===ad?t.createElement(e):t.createElementNS(n,e)}}function xb(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Jp(e){var t=Lu(e);return(t.local?xb:wb)(t)}function Sb(){}function eh(e){return e==null?Sb:function(){return this.querySelector(e)}}function _b(e){typeof e!="function"&&(e=eh(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i=g&&(g=h+1);!(b=w[g])&&++g=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Xb(e){e||(e=Gb);function t(f,d){return f&&d?e(f.__data__,d.__data__):!f-!d}for(var n=this._groups,r=n.length,i=new Array(r),o=0;ot?1:e>=t?0:NaN}function Kb(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Qb(){return Array.from(this)}function qb(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?sE:typeof t=="function"?cE:uE)(e,t,n??"")):so(this.node(),e)}function so(e,t){return e.style.getPropertyValue(t)||by(e).getComputedStyle(e,null).getPropertyValue(t)}function dE(e){return function(){delete this[e]}}function pE(e,t){return function(){this[e]=t}}function hE(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function mE(e,t){return arguments.length>1?this.each((t==null?dE:typeof t=="function"?hE:pE)(e,t)):this.node()[e]}function Ey(e){return e.trim().split(/^|\s+/)}function th(e){return e.classList||new Cy(e)}function Cy(e){this._node=e,this._names=Ey(e.getAttribute("class")||"")}Cy.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function ky(e,t){for(var n=th(e),r=-1,i=t.length;++r=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function BE(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Rl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Rl(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=nC.exec(e))?new ct(t[1],t[2],t[3],1):(t=rC.exec(e))?new ct(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=iC.exec(e))?Rl(t[1],t[2],t[3],t[4]):(t=oC.exec(e))?Rl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=aC.exec(e))?d0(t[1],t[2]/100,t[3]/100,1):(t=lC.exec(e))?d0(t[1],t[2]/100,t[3]/100,t[4]):a0.hasOwnProperty(e)?u0(a0[e]):e==="transparent"?new ct(NaN,NaN,NaN,0):null}function u0(e){return new ct(e>>16&255,e>>8&255,e&255,1)}function Rl(e,t,n,r){return r<=0&&(e=t=n=NaN),new ct(e,t,n,r)}function cC(e){return e instanceof sl||(e=Ba(e)),e?(e=e.rgb(),new ct(e.r,e.g,e.b,e.opacity)):new ct}function ud(e,t,n,r){return arguments.length===1?cC(e):new ct(e,t,n,r??1)}function ct(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}nh(ct,ud,Iy(sl,{brighter(e){return e=e==null?Zs:Math.pow(Zs,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ja:Math.pow(ja,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ct(Wr(this.r),Wr(this.g),Wr(this.b),Js(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:c0,formatHex:c0,formatHex8:fC,formatRgb:f0,toString:f0}));function c0(){return`#${Ur(this.r)}${Ur(this.g)}${Ur(this.b)}`}function fC(){return`#${Ur(this.r)}${Ur(this.g)}${Ur(this.b)}${Ur((isNaN(this.opacity)?1:this.opacity)*255)}`}function f0(){const e=Js(this.opacity);return`${e===1?"rgb(":"rgba("}${Wr(this.r)}, ${Wr(this.g)}, ${Wr(this.b)}${e===1?")":`, ${e})`}`}function Js(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ur(e){return e=Wr(e),(e<16?"0":"")+e.toString(16)}function d0(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Gt(e,t,n,r)}function My(e){if(e instanceof Gt)return new Gt(e.h,e.s,e.l,e.opacity);if(e instanceof sl||(e=Ba(e)),!e)return new Gt;if(e instanceof Gt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n0&&l<1?0:a,new Gt(a,s,l,e.opacity)}function dC(e,t,n,r){return arguments.length===1?My(e):new Gt(e,t,n,r??1)}function Gt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}nh(Gt,dC,Iy(sl,{brighter(e){return e=e==null?Zs:Math.pow(Zs,e),new Gt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ja:Math.pow(ja,e),new Gt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ct(Ac(e>=240?e-240:e+120,i,r),Ac(e,i,r),Ac(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Gt(p0(this.h),$l(this.s),$l(this.l),Js(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Js(this.opacity);return`${e===1?"hsl(":"hsla("}${p0(this.h)}, ${$l(this.s)*100}%, ${$l(this.l)*100}%${e===1?")":`, ${e})`}`}}));function p0(e){return e=(e||0)%360,e<0?e+360:e}function $l(e){return Math.max(0,Math.min(1,e||0))}function Ac(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Ny=e=>()=>e;function pC(e,t){return function(n){return e+n*t}}function hC(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function mC(e){return(e=+e)==1?Ly:function(t,n){return n-t?hC(t,n,e):Ny(isNaN(t)?n:t)}}function Ly(e,t){var n=t-e;return n?pC(e,n):Ny(isNaN(e)?t:e)}const h0=function e(t){var n=mC(t);function r(i,o){var a=n((i=ud(i)).r,(o=ud(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),u=Ly(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return r.gamma=e,r}(1);function Qn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var cd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Rc=new RegExp(cd.source,"g");function vC(e){return function(){return e}}function gC(e){return function(t){return e(t)+""}}function yC(e,t){var n=cd.lastIndex=Rc.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=cd.exec(e))&&(i=Rc.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Qn(r,i)})),n=Rc.lastIndex;return n180?c+=360:c-u>180&&(u+=360),d.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Qn(u,c)})):c&&f.push(i(f)+"rotate("+c+r)}function s(u,c,f,d){u!==c?d.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Qn(u,c)}):c&&f.push(i(f)+"skewX("+c+r)}function l(u,c,f,d,m,v){if(u!==f||c!==d){var y=m.push(i(m)+"scale(",null,",",null,")");v.push({i:y-4,x:Qn(u,f)},{i:y-2,x:Qn(c,d)})}else(f!==1||d!==1)&&m.push(i(m)+"scale("+f+","+d+")")}return function(u,c){var f=[],d=[];return u=e(u),c=e(c),o(u.translateX,u.translateY,c.translateX,c.translateY,f,d),a(u.rotate,c.rotate,f,d),s(u.skewX,c.skewX,f,d),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,d),u=c=null,function(m){for(var v=-1,y=d.length,w;++v=0&&e._call.call(void 0,t),e=e._next;--uo}function g0(){ni=(tu=Ha.now())+Au,uo=ta=0;try{PC()}finally{uo=0,IC(),ni=0}}function TC(){var e=Ha.now(),t=e-tu;t>$y&&(Au-=t,tu=e)}function IC(){for(var e,t=eu,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:eu=n);na=e,dd(r)}function dd(e){if(!uo){ta&&(ta=clearTimeout(ta));var t=e-ni;t>24?(e<1/0&&(ta=setTimeout(g0,e-Ha.now()-Au)),Yo&&(Yo=clearInterval(Yo))):(Yo||(tu=Ha.now(),Yo=setInterval(TC,$y)),uo=1,Dy(g0))}}function y0(e,t,n){var r=new nu;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var MC=Zp("start","end","cancel","interrupt"),NC=[],zy=0,w0=1,pd=2,ss=3,x0=4,hd=5,us=6;function Ru(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;LC(e,n,{name:t,index:r,group:i,on:MC,tween:NC,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:zy})}function ih(e,t){var n=en(e,t);if(n.state>zy)throw new Error("too late; already scheduled");return n}function wn(e,t){var n=en(e,t);if(n.state>ss)throw new Error("too late; already running");return n}function en(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function LC(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Fy(o,0,n.time);function o(u){n.state=w0,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,f,d,m;if(n.state!==w0)return l();for(c in r)if(m=r[c],m.name===n.name){if(m.state===ss)return y0(a);m.state===x0?(m.state=us,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete r[c]):+cpd&&r.state=0&&(t=t.slice(0,n)),!t||t==="start"})}function u3(e,t,n){var r,i,o=s3(t)?ih:wn;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function c3(e,t){var n=this._id;return arguments.length<2?en(this.node(),n).on.on(e):this.each(u3(n,e,t))}function f3(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function d3(){return this.on("end.remove",f3(this._id))}function p3(e){var t=this._name,n=this._id;typeof e!="function"&&(e=eh(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a=0))throw new Error(`invalid digits: ${e}`);if(t>15)return By;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;iLr)if(!(Math.abs(f*l-u*c)>Lr)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-a,v=i-s,y=l*l+u*u,w=m*m+v*v,p=Math.sqrt(y),h=Math.sqrt(d),g=o*Math.tan((md-Math.acos((y+d-w)/(2*p*h)))/2),S=g/h,b=g/p;Math.abs(S-1)>Lr&&this._append`L${t+S*c},${n+S*f}`,this._append`A${o},${o},0,0,${+(f*m>c*v)},${this._x1=t+b*l},${this._y1=n+b*u}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),u=t+s,c=n+l,f=1^a,d=a?i-o:o-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Lr||Math.abs(this._y1-c)>Lr)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%vd+vd),d>F3?this._append`A${r},${r},0,1,${f},${t-s},${n-l}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:d>Lr&&this._append`A${r},${r},0,${+(d>=md)},${f},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function j3(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function U3(){return this.eachAfter(j3)}function B3(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function H3(e,t){for(var n=this,r=[n],i,o,a=-1;n=r.pop();)if(e.call(t,n,++a,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function W3(e,t){for(var n=this,r=[n],i=[],o,a,s,l=-1;n=r.pop();)if(i.push(n),o=n.children)for(a=0,s=o.length;a=0;)n+=r[i].value;t.value=n})}function G3(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function K3(e){for(var t=this,n=Q3(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Q3(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function q3(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Z3(){return Array.from(this)}function J3(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function e4(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*t4(){var e=this,t,n=[e],r,i,o;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,o=r.length;i=0;--s)i.push(o=a[s]=new Wa(a[s])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(a4)}function n4(){return ah(this).eachBefore(o4)}function r4(e){return e.children}function i4(e){return Array.isArray(e)?e[1]:null}function o4(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function a4(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Wa(e){this.data=e,this.depth=this.height=0,this.parent=null}Wa.prototype=ah.prototype={constructor:Wa,count:U3,each:B3,eachAfter:W3,eachBefore:H3,find:Y3,sum:X3,sort:G3,path:K3,ancestors:q3,descendants:Z3,leaves:J3,links:e4,copy:n4,[Symbol.iterator]:t4};function l4(e,t){return e.parent===t.parent?1:2}function $c(e){var t=e.children;return t?t[0]:e.t}function Dc(e){var t=e.children;return t?t[t.length-1]:e.t}function s4(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function u4(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function c4(e,t,n){return e.a.parent===t.parent?e.a:n}function fs(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}fs.prototype=Object.create(Wa.prototype);function f4(e){for(var t=new fs(e,0),n,r=[t],i,o,a,s;n=r.pop();)if(o=n._.children)for(n.children=new Array(s=o.length),a=s-1;a>=0;--a)r.push(i=n.children[a]=new fs(o[a],a)),i.parent=n;return(t.parent=new fs(null,0)).children=[t],t}function S0(){var e=l4,t=1,n=1,r=null;function i(u){var c=f4(u);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)u.eachBefore(l);else{var f=u,d=u,m=u;u.eachBefore(function(h){h.xd.x&&(d=h),h.depth>m.depth&&(m=h)});var v=f===d?1:e(f,d)/2,y=v-f.x,w=t/(d.x+v+y),p=n/(m.depth||1);u.eachBefore(function(h){h.x=(h.x+y)*w,h.y=h.depth*p})}return u}function o(u){var c=u.children,f=u.parent.children,d=u.i?f[u.i-1]:null;if(c){u4(u);var m=(c[0].z+c[c.length-1].z)/2;d?(u.z=d.z+e(u._,d._),u.m=u.z-m):u.z=m}else d&&(u.z=d.z+e(u._,d._));u.parent.A=s(u,d,u.parent.A||f[0])}function a(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function s(u,c,f){if(c){for(var d=u,m=u,v=c,y=d.parent.children[0],w=d.m,p=m.m,h=v.m,g=y.m,S;v=Dc(v),d=$c(d),v&&d;)y=$c(y),m=Dc(m),m.a=u,S=v.z+h-d.z-w+e(v._,d._),S>0&&(s4(c4(v,u,f),u,S),w+=S,p+=S),h+=v.m,w+=d.m,g+=y.m,p+=m.m;v&&!Dc(m)&&(m.t=v,m.m+=h-p),d&&!$c(y)&&(y.t=d,y.m+=w-g,f=u)}return f}function l(u){u.x*=t,u.y=u.depth*n}return i.separation=function(u){return arguments.length?(e=u,i):e},i.size=function(u){return arguments.length?(r=!1,t=+u[0],n=+u[1],i):r?null:[t,n]},i.nodeSize=function(u){return arguments.length?(r=!0,t=+u[0],n=+u[1],i):r?[t,n]:null},i}function _0(e){return function(){return e}}function d4(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new V3(t)}var p4=Array.prototype.slice;function h4(e){return e[0]}function m4(e){return e[1]}class v4{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function g4(e){return new v4(e,!0)}function y4(e){return e.source}function w4(e){return e.target}function x4(e){let t=y4,n=w4,r=h4,i=m4,o=null,a=null,s=d4(l);function l(){let u;const c=p4.call(arguments),f=t.apply(this,c),d=n.apply(this,c);if(o==null&&(a=e(u=s())),a.lineStart(),c[0]=f,a.point(+r.apply(this,c),+i.apply(this,c)),c[0]=d,a.point(+r.apply(this,c),+i.apply(this,c)),a.lineEnd(),u)return a=null,u+""||null}return l.source=function(u){return arguments.length?(t=u,l):t},l.target=function(u){return arguments.length?(n=u,l):n},l.x=function(u){return arguments.length?(r=typeof u=="function"?u:_0(+u),l):r},l.y=function(u){return arguments.length?(i=typeof u=="function"?u:_0(+u),l):i},l.context=function(u){return arguments.length?(u==null?o=a=null:a=e(o=u),l):o},l}function S4(){return x4(g4)}const Fl=e=>()=>e;function _4(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function In(e,t,n){this.k=e,this.x=t,this.y=n}In.prototype={constructor:In,scale:function(e){return e===1?this:new In(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new In(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var $u=new In(1,0,0);Hy.prototype=In.prototype;function Hy(e){for(;!e.__zoom;)if(!(e=e.parentNode))return $u;return e.__zoom}function Fc(e){e.stopImmediatePropagation()}function Xo(e){e.preventDefault(),e.stopImmediatePropagation()}function b4(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function E4(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function b0(){return this.__zoom||$u}function C4(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function k4(){return navigator.maxTouchPoints||"ontouchstart"in this}function O4(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function E0(){var e=b4,t=E4,n=O4,r=C4,i=k4,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,l=kC,u=Zp("start","zoom","end"),c,f,d,m=500,v=150,y=0,w=10;function p(C){C.property("__zoom",b0).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",N).on("dblclick.zoom",L).filter(i).on("touchstart.zoom",U).on("touchmove.zoom",G).on("touchend.zoom touchcancel.zoom",ne).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(C,A,P,R){var O=C.selection?C.selection():C;O.property("__zoom",b0),C!==O?b(C,A,P,R):O.interrupt().each(function(){k(this,arguments).event(R).start().zoom(null,typeof A=="function"?A.apply(this,arguments):A).end()})},p.scaleBy=function(C,A,P,R){p.scaleTo(C,function(){var O=this.__zoom.k,M=typeof A=="function"?A.apply(this,arguments):A;return O*M},P,R)},p.scaleTo=function(C,A,P,R){p.transform(C,function(){var O=t.apply(this,arguments),M=this.__zoom,T=P==null?S(O):typeof P=="function"?P.apply(this,arguments):P,V=M.invert(T),F=typeof A=="function"?A.apply(this,arguments):A;return n(g(h(M,F),T,V),O,a)},P,R)},p.translateBy=function(C,A,P,R){p.transform(C,function(){return n(this.__zoom.translate(typeof A=="function"?A.apply(this,arguments):A,typeof P=="function"?P.apply(this,arguments):P),t.apply(this,arguments),a)},null,R)},p.translateTo=function(C,A,P,R,O){p.transform(C,function(){var M=t.apply(this,arguments),T=this.__zoom,V=R==null?S(M):typeof R=="function"?R.apply(this,arguments):R;return n($u.translate(V[0],V[1]).scale(T.k).translate(typeof A=="function"?-A.apply(this,arguments):-A,typeof P=="function"?-P.apply(this,arguments):-P),M,a)},R,O)};function h(C,A){return A=Math.max(o[0],Math.min(o[1],A)),A===C.k?C:new In(A,C.x,C.y)}function g(C,A,P){var R=A[0]-P[0]*C.k,O=A[1]-P[1]*C.k;return R===C.x&&O===C.y?C:new In(C.k,R,O)}function S(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function b(C,A,P,R){C.on("start.zoom",function(){k(this,arguments).event(R).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).event(R).end()}).tween("zoom",function(){var O=this,M=arguments,T=k(O,M).event(R),V=t.apply(O,M),F=P==null?S(V):typeof P=="function"?P.apply(O,M):P,Q=Math.max(V[1][0]-V[0][0],V[1][1]-V[0][1]),W=O.__zoom,te=typeof A=="function"?A.apply(O,M):A,J=l(W.invert(F).concat(Q/W.k),te.invert(F).concat(Q/te.k));return function(q){if(q===1)q=te;else{var de=J(q),Me=Q/de[2];q=new In(Me,F[0]-de[0]*Me,F[1]-de[1]*Me)}T.zoom(null,q)}})}function k(C,A,P){return!P&&C.__zooming||new E(C,A)}function E(C,A){this.that=C,this.args=A,this.active=0,this.sourceEvent=null,this.extent=t.apply(C,A),this.taps=0}E.prototype={event:function(C){return C&&(this.sourceEvent=C),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(C,A){return this.mouse&&C!=="mouse"&&(this.mouse[1]=A.invert(this.mouse[0])),this.touch0&&C!=="touch"&&(this.touch0[1]=A.invert(this.touch0[0])),this.touch1&&C!=="touch"&&(this.touch1[1]=A.invert(this.touch1[0])),this.that.__zoom=A,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(C){var A=On(this.that).datum();u.call(C,this.that,new _4(C,{sourceEvent:this.sourceEvent,target:p,type:C,transform:this.that.__zoom,dispatch:u}),A)}};function _(C,...A){if(!e.apply(this,arguments))return;var P=k(this,A).event(C),R=this.__zoom,O=Math.max(o[0],Math.min(o[1],R.k*Math.pow(2,r.apply(this,arguments)))),M=Tr(C);if(P.wheel)(P.mouse[0][0]!==M[0]||P.mouse[0][1]!==M[1])&&(P.mouse[1]=R.invert(P.mouse[0]=M)),clearTimeout(P.wheel);else{if(R.k===O)return;P.mouse=[M,R.invert(M)],cs(this),P.start()}Xo(C),P.wheel=setTimeout(T,v),P.zoom("mouse",n(g(h(R,O),P.mouse[0],P.mouse[1]),P.extent,a));function T(){P.wheel=null,P.end()}}function N(C,...A){if(d||!e.apply(this,arguments))return;var P=C.currentTarget,R=k(this,A,!0).event(C),O=On(C.view).on("mousemove.zoom",F,!0).on("mouseup.zoom",Q,!0),M=Tr(C,P),T=C.clientX,V=C.clientY;JE(C.view),Fc(C),R.mouse=[M,this.__zoom.invert(M)],cs(this),R.start();function F(W){if(Xo(W),!R.moved){var te=W.clientX-T,J=W.clientY-V;R.moved=te*te+J*J>y}R.event(W).zoom("mouse",n(g(R.that.__zoom,R.mouse[0]=Tr(W,P),R.mouse[1]),R.extent,a))}function Q(W){O.on("mousemove.zoom mouseup.zoom",null),eC(W.view,R.moved),Xo(W),R.event(W).end()}}function L(C,...A){if(e.apply(this,arguments)){var P=this.__zoom,R=Tr(C.changedTouches?C.changedTouches[0]:C,this),O=P.invert(R),M=P.k*(C.shiftKey?.5:2),T=n(g(h(P,M),R,O),t.apply(this,A),a);Xo(C),s>0?On(this).transition().duration(s).call(b,T,R,C):On(this).call(p.transform,T,R,C)}}function U(C,...A){if(e.apply(this,arguments)){var P=C.touches,R=P.length,O=k(this,A,C.changedTouches.length===R).event(C),M,T,V,F;for(Fc(C),T=0;T{throw TypeError(e)},T4=(e,t,n)=>t in e?P4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ir=(e,t,n)=>T4(e,typeof t!="symbol"?t+"":t,n),lh=(e,t,n)=>t.has(e)||Wy("Cannot "+n),$=(e,t,n)=>(lh(e,t,"read from private field"),n?n.call(e):t.get(e)),xe=(e,t,n)=>t.has(e)?Wy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ve=(e,t,n,r)=>(lh(e,t,"write to private field"),t.set(e,n),n),zc=(e,t,n)=>(lh(e,t,"access private method"),n),I4=(e,t,n,r)=>({set _(i){Ve(e,t,i)},get _(){return $(e,t,r)}}),Ee,Ei,Ht,gt,Ci,Ar,Rr,ki,Oi,Pi,bn,En,gd,$r,yd,wd,Ti,ds,ra,ps,Dr,hs,ms,vs,gs;class Yy extends Error{constructor(t){super(`No element in DOM with ID ${t}`)}}function M4(e){let t=1/0,n=-1/0,r=1/0,i=-1/0;return ia(e,o=>{t=Math.min(t,o.y),n=Math.max(n,o.y),r=Math.min(r,o.x),i=Math.max(i,o.x)},!1),{width:n-t,height:i-r}}function N4(e){const t=[];let n=[e];for(;n.length>0;){t[t.length]=n.length;let r=[];for(const i of n)r=r.concat(i.children||[]);n=r}return t}function ia(e,t,n=!0){let r=[e];for(;r.length>0;){let i=[];for(const o of r)i=i.concat(o.children||(n?o._children:[])||[]),t(o);r=i}}function Xy(e,t){return e.data.level-t.data.level}function L4(e,t){const n=Xy(e,t);return n!==0?n:e.data.name.toLowerCase().localeCompare(t.data.name.toLowerCase())}function A4(e,t){const n=Xy(e,t);return n!==0?n:e.x-t.x}function Gy(e,t,n){let r=[];const i=t(e);i&&r.push(e);for(const o of e.children||e._children||[]){const a=Gy(o,t,n);a.length>0&&(r=r.concat(a))}return r.length>0&&(i&&r.length===1?n(e,!0):n(e,!1)),r}function Ky(e){const t=document.getElementById(e);if(!t)throw new Yy(e);return t}const R4="https://ncit.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&code=",$4="https://ncim.nci.nih.gov/ncimbrowser/ConceptReport.jsp?code=";function D4(e){const t=document.createElement("div");return t.className="oncotree-tooltip",t.appendChild(zl("Name",e.data.name)),t.appendChild(zl("Code",e.data.code)),t.appendChild(zl("Main Type",e.data.mainType??"N/A")),e.data.externalReferences.NCI&&t.appendChild(C0(e.data.externalReferences.NCI,"NCI")),e.data.externalReferences.UMLS&&t.appendChild(C0(e.data.externalReferences.UMLS,"UMLS")),t.appendChild(zl("Color",e.data.color??"N/A")),t}function zl(e,t){const n=document.createElement("div");return n.className="oncotree-tooltip-item",n.textContent=`${e}: ${t}`,n}function C0(e,t){const n=document.createElement("div"),r=document.createElement("span");r.textContent=`${t}: `,n.appendChild(r);for(let i=0;i{if(!$(this,gt))return[];$(this,vs).call(this),ia($(this,Ee),y=>{y.data.level>0&&zc(this,ra,ps).call(this,y)});const m=[],v=Gy($(this,Ee),d,(y,w)=>{m.push(y),y._children&&!w&&(y.children=y._children,y._children=void 0)});return $(this,Dr).call(this,$(this,Ee)),$(this,gt).selectAll("g.node").filter(y=>d(y)).attr("font-weight","bold").attr("fill","red"),$(this,gt).selectAll("path.link").filter(y=>m.includes(y.target)).style("stroke",y=>y.target.data.color==="Gainsboro"?"Gray":y.target.data.color).style("stroke-width","2px"),v.sort(A4),v}),Ir(this,"searchByName",d=>this.search(m=>m.data.name.toLowerCase().includes(d.toLowerCase()))),Ir(this,"focus",d=>{$(this,Ti).call(this,d)}),Ir(this,"expand",()=>{ia($(this,Ee),d=>{d._children&&(d.children=d._children,d._children=void 0)}),$(this,Dr).call(this,$(this,Ee))}),Ir(this,"collapse",()=>{ia($(this,Ee),d=>{d.data.level>0&&zc(this,ra,ps).call(this,d)}),$(this,vs).call(this),$(this,Dr).call(this,$(this,Ee)),$(this,Ti).call(this,$(this,Ee))}),Ir(this,"enterCopyJsonMode",d=>{$(this,Ht).style("cursor","copy"),$(this,gt).selectAll("g.node").attr("class","node copy").on("click",async(m,v)=>{var y,w;try{await navigator.clipboard.writeText(JSON.stringify(v.data,null,4)),(y=d==null?void 0:d.onCopySuccess)==null||y.call(d,m)}catch(p){(w=d==null?void 0:d.onCopyError)==null||w.call(d,m,p)}})}),Ir(this,"exitCopyJsonMode",()=>{$(this,Ht).style("cursor","auto"),$(this,gt).selectAll("g.node").attr("class","node").on("click",$(this,ds))}),xe(this,yd,d=>{$(this,gt).attr("transform",d.transform)}),xe(this,wd,d=>(d.children?(d._children=d.children,d.children=void 0):d._children&&(d.children=d._children,d._children=void 0),d)),xe(this,Ti,d=>{const m=Hy($(this,Ht).node()).k;let v=d.y;if(d.children){const b=d.children[Math.floor(d.children.length/2)].y;v=(v+b)/2}const y=d.x,w=$(this,En)/2,p=$(this,bn)/2,h=-v*m+w,g=-y*m+p,S=$u.translate(h,g).scale(m);$(this,Ht).transition().duration($(this,$r)).call($(this,Ar).transform,S)}),xe(this,ds,(d,m)=>{m=$(this,wd).call(this,m),$(this,Dr).call(this,m),$(this,Ti).call(this,m)}),xe(this,Dr,d=>{const m=N4($(this,Ee)),v=mb(m)*25;Ve(this,Ei,S0().size([v,$(this,En)])),$(this,Ei).call(this,$(this,Ee));const y=$(this,Ee).descendants().reverse(),w=$(this,Ee).links(),p={0:0},h={0:0};y.forEach(_=>{const N=_.data.name.length*6+50;_.depth!==0&&(Object.prototype.hasOwnProperty.call(p,_.depth)||(p[_.depth]=0,h[_.depth]=0),!_.children&&!_._children&&h[_.depth]1?(N+=p[U]+h[U-1],p[U]>0&&h[U-1]>0?N-=50:N-=0):N+=p[U];_.y=N}});const g=$(this,gt).selectAll("g.node").data(y,_=>_.id||(_.id=++I4(this,gd)._)),S=g.enter().append("g").attr("class","node").attr("transform",()=>`translate(${d.y0},${d.x0})`).on("click",$(this,ds));S.append("circle").attr("class","nodeCircle").attr("r",0).style("fill",_=>_._children?"steelblue":"#fff"),S.append("text").attr("x",_=>_.children||_._children?-10:10).attr("dy",".35em").attr("class","nodeText").attr("text-anchor",_=>_.children||_._children?"end":"start").text(_=>_.data.name).style("fill-opacity",0).on("mouseover",(_,N)=>{clearTimeout($(this,ki)),Ve(this,ki,setTimeout(()=>{Ve(this,Pi,!0),$(this,Rr).transition().duration(200).style("opacity",1).style("pointer-events","all"),$(this,Rr).html(D4(N).outerHTML).style("left",`${_.pageX-12}px`).style("top",`${_.pageY+12}px`)},300))}).on("mouseout",()=>{Ve(this,Pi,!1),clearTimeout($(this,ki)),setTimeout(()=>{!$(this,Pi)&&!$(this,Oi)&&$(this,gs).call(this)},200)}),$(this,hs).call(this,S),$(this,hs).call(this,g),g.exit().transition().duration($(this,$r)).attr("transform",()=>`translate(${d.y},${d.x})`).remove().select("text").style("fill-opacity",0);const k=$(this,gt).selectAll("path.link").data(w,_=>_.target.id),E=k.enter().insert("path","g").attr("class","link").attr("d",()=>{const _=[d.y0,d.x0];return $(this,Ci).call(this,{source:_,target:_})});$(this,ms).call(this,k),$(this,ms).call(this,E),k.exit().transition().duration($(this,$r)).attr("d",()=>{const _=[d.y,d.x];return $(this,Ci).call(this,{source:_,target:_})}).remove(),y.forEach(function(_){_.x0=_.x,_.y0=_.y})}),xe(this,hs,d=>{d.select("text").attr("x",v=>v.children||v._children?-10:10).attr("text-anchor",v=>v.children||v._children?"end":"start").text(v=>v.data.name),d.select("circle.nodeCircle").attr("r",4.5).attr("stroke",v=>v.data.color||"steelblue").style("fill",v=>v._children?v.data.color:"#fff"),d.transition().duration($(this,$r)).attr("transform",v=>`translate(${v.y},${v.x})`).select("text").style("fill-opacity",1)}),xe(this,ms,d=>{d.transition().duration($(this,$r)).attr("d",m=>$(this,Ci).call(this,{source:[m.source.y,m.source.x],target:[m.target.y,m.target.x]}))}),xe(this,vs,()=>{$(this,gt).selectAll("g.node").attr("fill","unset").attr("font-weight","normal"),$(this,gt).selectAll("path.link").style("stroke","#ccc").style("stroke-width","1px")}),xe(this,gs,()=>{$(this,Rr).style("pointer-events","none"),$(this,Rr).transition().duration(200).style("opacity",0)});var r;const i=On(`#${t}`),o=i.node();if(o===null)throw new Yy(t);o.clientHeightObject.values(d.children))),$(this,Ee).sort(L4),Ve(this,Ei,S0().size([$(this,bn),$(this,En)])),$(this,Ei).call(this,$(this,Ee)),Ve(this,Ci,S4()),Ve(this,Ar,E0().scaleExtent([.1,3]).on("zoom",$(this,yd))),Ve(this,Ht,qE("svg").attr("width","100%").attr("height","100%").attr("viewBox",[0,0,$(this,En),$(this,bn)]).call($(this,Ar))),Ve(this,gt,$(this,Ht).append("g"));let a=1;const s=E0().filter(d=>d.type==="wheel").on("zoom",d=>{const m=d.transform,v=m.k/a;a=m.k,$(this,Ar).scaleBy($(this,Ht),v)});Ve(this,Rr,i.append("div").style("position","absolute").style("opacity","0").on("mouseover",()=>{Ve(this,Oi,!0)}).on("mouseout",()=>{Ve(this,Oi,!1),clearTimeout($(this,ki)),setTimeout(()=>{!$(this,Pi)&&!$(this,Oi)&&$(this,gs).call(this)},200)}).call(s)),$(this,Ee).x0=$(this,bn)/2,$(this,Ee).y0=0,(r=$(this,Ee).children)==null||r.forEach(d=>{ia(d,m=>{zc(this,ra,ps).call(this,m)})}),$(this,Dr).call(this,$(this,Ee));const{width:l,height:u}=M4($(this,Ee)),c=$(this,En)/(l+75),f=$(this,bn)/(u+75);$(this,Ar).scaleTo($(this,Ht),Math.min(c,f)),$(this,Ti).call(this,$(this,Ee)),o.append($(this,Ht).node())}}Ee=new WeakMap;Ei=new WeakMap;Ht=new WeakMap;gt=new WeakMap;Ci=new WeakMap;Ar=new WeakMap;Rr=new WeakMap;ki=new WeakMap;Oi=new WeakMap;Pi=new WeakMap;bn=new WeakMap;En=new WeakMap;gd=new WeakMap;$r=new WeakMap;yd=new WeakMap;wd=new WeakMap;Ti=new WeakMap;ds=new WeakMap;ra=new WeakSet;ps=function(e){e.children&&(e._children=e.children,e.children=void 0)};Dr=new WeakMap;hs=new WeakMap;ms=new WeakMap;vs=new WeakMap;gs=new WeakMap;const V4=`\r + */function id(){return id=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function ob(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ab(e,t){return e.button===0&&(!t||t==="_self")&&!ob(e)}function od(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function lb(e,t){let n=od(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const sb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ub="6";try{window.__reactRouterVersion=ub}catch{}const cb="startTransition",t0=sf[cb];function fb(e){let{basename:t,children:n,future:r,window:i}=e,o=x.useRef();o.current==null&&(o.current=v_({window:i,v5Compat:!0}));let a=o.current,[s,l]=x.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},c=x.useCallback(f=>{u&&t0?t0(()=>l(f)):l(f)},[l,u]);return x.useLayoutEffect(()=>a.listen(c),[a,c]),x.createElement(nb,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const db=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_n=x.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=ib(t,sb),{basename:m}=x.useContext(ci),v,y=!1;if(typeof u=="string"&&pb.test(u)&&(v=u,db))try{let g=new URL(window.location.href),S=u.startsWith("//")?new URL(g.protocol+u):new URL(u),b=Kp(S.pathname,m);S.origin===g.origin&&b!=null?u=b+S.search+S.hash:y=!0}catch{}let w=U_(u,{relative:i}),p=hb(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:f});function h(g){r&&r(g),g.defaultPrevented||p(g)}return x.createElement("a",id({},d,{href:v||w,onClick:y||o?r:h,ref:n,target:l}))});var n0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(n0||(n0={}));var r0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(r0||(r0={}));function hb(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=qp(),u=Er(),c=vy(e,{relative:a});return x.useCallback(f=>{if(ab(f,n)){f.preventDefault();let d=r!==void 0?r:Ks(u)===Ks(c);l(e,{replace:d,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[u,l,c,r,i,n,e,o,a,s])}function Nu(e){let t=x.useRef(od(e)),n=x.useRef(!1),r=Er(),i=x.useMemo(()=>lb(r.search,n.current?null:t.current),[r.search]),o=qp(),a=x.useCallback((s,l)=>{const u=od(typeof s=="function"?s(i):s);n.current=!0,o("?"+u,l)},[o,i]);return[i,a]}function mb(e,t){let n;for(const r of e)r!=null&&(n=r)&&(n=r);return n}var vb={value:()=>{}};function Zp(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}ls.prototype=Zp.prototype={constructor:ls,on:function(e,t){var n=this._,r=gb(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),o0.hasOwnProperty(t)?{space:o0[t],local:e}:e}function wb(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ad&&t.documentElement.namespaceURI===ad?t.createElement(e):t.createElementNS(n,e)}}function xb(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Jp(e){var t=Lu(e);return(t.local?xb:wb)(t)}function Sb(){}function eh(e){return e==null?Sb:function(){return this.querySelector(e)}}function _b(e){typeof e!="function"&&(e=eh(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i=g&&(g=h+1);!(b=w[g])&&++g=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Xb(e){e||(e=Gb);function t(f,d){return f&&d?e(f.__data__,d.__data__):!f-!d}for(var n=this._groups,r=n.length,i=new Array(r),o=0;ot?1:e>=t?0:NaN}function Kb(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Qb(){return Array.from(this)}function qb(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?sE:typeof t=="function"?cE:uE)(e,t,n??"")):so(this.node(),e)}function so(e,t){return e.style.getPropertyValue(t)||by(e).getComputedStyle(e,null).getPropertyValue(t)}function dE(e){return function(){delete this[e]}}function pE(e,t){return function(){this[e]=t}}function hE(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function mE(e,t){return arguments.length>1?this.each((t==null?dE:typeof t=="function"?hE:pE)(e,t)):this.node()[e]}function Ey(e){return e.trim().split(/^|\s+/)}function th(e){return e.classList||new Cy(e)}function Cy(e){this._node=e,this._names=Ey(e.getAttribute("class")||"")}Cy.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function ky(e,t){for(var n=th(e),r=-1,i=t.length;++r=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function BE(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Al(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Al(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=nC.exec(e))?new ct(t[1],t[2],t[3],1):(t=rC.exec(e))?new ct(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=iC.exec(e))?Al(t[1],t[2],t[3],t[4]):(t=oC.exec(e))?Al(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=aC.exec(e))?d0(t[1],t[2]/100,t[3]/100,1):(t=lC.exec(e))?d0(t[1],t[2]/100,t[3]/100,t[4]):a0.hasOwnProperty(e)?u0(a0[e]):e==="transparent"?new ct(NaN,NaN,NaN,0):null}function u0(e){return new ct(e>>16&255,e>>8&255,e&255,1)}function Al(e,t,n,r){return r<=0&&(e=t=n=NaN),new ct(e,t,n,r)}function cC(e){return e instanceof sl||(e=Ba(e)),e?(e=e.rgb(),new ct(e.r,e.g,e.b,e.opacity)):new ct}function ud(e,t,n,r){return arguments.length===1?cC(e):new ct(e,t,n,r??1)}function ct(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}nh(ct,ud,Iy(sl,{brighter(e){return e=e==null?Zs:Math.pow(Zs,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ja:Math.pow(ja,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ct(Wr(this.r),Wr(this.g),Wr(this.b),Js(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:c0,formatHex:c0,formatHex8:fC,formatRgb:f0,toString:f0}));function c0(){return`#${Ur(this.r)}${Ur(this.g)}${Ur(this.b)}`}function fC(){return`#${Ur(this.r)}${Ur(this.g)}${Ur(this.b)}${Ur((isNaN(this.opacity)?1:this.opacity)*255)}`}function f0(){const e=Js(this.opacity);return`${e===1?"rgb(":"rgba("}${Wr(this.r)}, ${Wr(this.g)}, ${Wr(this.b)}${e===1?")":`, ${e})`}`}function Js(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ur(e){return e=Wr(e),(e<16?"0":"")+e.toString(16)}function d0(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Gt(e,t,n,r)}function My(e){if(e instanceof Gt)return new Gt(e.h,e.s,e.l,e.opacity);if(e instanceof sl||(e=Ba(e)),!e)return new Gt;if(e instanceof Gt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n0&&l<1?0:a,new Gt(a,s,l,e.opacity)}function dC(e,t,n,r){return arguments.length===1?My(e):new Gt(e,t,n,r??1)}function Gt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}nh(Gt,dC,Iy(sl,{brighter(e){return e=e==null?Zs:Math.pow(Zs,e),new Gt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ja:Math.pow(ja,e),new Gt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ct(Rc(e>=240?e-240:e+120,i,r),Rc(e,i,r),Rc(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Gt(p0(this.h),$l(this.s),$l(this.l),Js(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Js(this.opacity);return`${e===1?"hsl(":"hsla("}${p0(this.h)}, ${$l(this.s)*100}%, ${$l(this.l)*100}%${e===1?")":`, ${e})`}`}}));function p0(e){return e=(e||0)%360,e<0?e+360:e}function $l(e){return Math.max(0,Math.min(1,e||0))}function Rc(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Ny=e=>()=>e;function pC(e,t){return function(n){return e+n*t}}function hC(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function mC(e){return(e=+e)==1?Ly:function(t,n){return n-t?hC(t,n,e):Ny(isNaN(t)?n:t)}}function Ly(e,t){var n=t-e;return n?pC(e,n):Ny(isNaN(e)?t:e)}const h0=function e(t){var n=mC(t);function r(i,o){var a=n((i=ud(i)).r,(o=ud(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),u=Ly(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return r.gamma=e,r}(1);function Qn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var cd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ac=new RegExp(cd.source,"g");function vC(e){return function(){return e}}function gC(e){return function(t){return e(t)+""}}function yC(e,t){var n=cd.lastIndex=Ac.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=cd.exec(e))&&(i=Ac.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Qn(r,i)})),n=Ac.lastIndex;return n180?c+=360:c-u>180&&(u+=360),d.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Qn(u,c)})):c&&f.push(i(f)+"rotate("+c+r)}function s(u,c,f,d){u!==c?d.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Qn(u,c)}):c&&f.push(i(f)+"skewX("+c+r)}function l(u,c,f,d,m,v){if(u!==f||c!==d){var y=m.push(i(m)+"scale(",null,",",null,")");v.push({i:y-4,x:Qn(u,f)},{i:y-2,x:Qn(c,d)})}else(f!==1||d!==1)&&m.push(i(m)+"scale("+f+","+d+")")}return function(u,c){var f=[],d=[];return u=e(u),c=e(c),o(u.translateX,u.translateY,c.translateX,c.translateY,f,d),a(u.rotate,c.rotate,f,d),s(u.skewX,c.skewX,f,d),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,d),u=c=null,function(m){for(var v=-1,y=d.length,w;++v=0&&e._call.call(void 0,t),e=e._next;--uo}function g0(){ni=(tu=Ha.now())+Ru,uo=ta=0;try{PC()}finally{uo=0,IC(),ni=0}}function TC(){var e=Ha.now(),t=e-tu;t>$y&&(Ru-=t,tu=e)}function IC(){for(var e,t=eu,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:eu=n);na=e,dd(r)}function dd(e){if(!uo){ta&&(ta=clearTimeout(ta));var t=e-ni;t>24?(e<1/0&&(ta=setTimeout(g0,e-Ha.now()-Ru)),Yo&&(Yo=clearInterval(Yo))):(Yo||(tu=Ha.now(),Yo=setInterval(TC,$y)),uo=1,Dy(g0))}}function y0(e,t,n){var r=new nu;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var MC=Zp("start","end","cancel","interrupt"),NC=[],zy=0,w0=1,pd=2,ss=3,x0=4,hd=5,us=6;function Au(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;LC(e,n,{name:t,index:r,group:i,on:MC,tween:NC,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:zy})}function ih(e,t){var n=en(e,t);if(n.state>zy)throw new Error("too late; already scheduled");return n}function wn(e,t){var n=en(e,t);if(n.state>ss)throw new Error("too late; already running");return n}function en(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function LC(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Fy(o,0,n.time);function o(u){n.state=w0,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,f,d,m;if(n.state!==w0)return l();for(c in r)if(m=r[c],m.name===n.name){if(m.state===ss)return y0(a);m.state===x0?(m.state=us,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete r[c]):+cpd&&r.state=0&&(t=t.slice(0,n)),!t||t==="start"})}function u3(e,t,n){var r,i,o=s3(t)?ih:wn;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function c3(e,t){var n=this._id;return arguments.length<2?en(this.node(),n).on.on(e):this.each(u3(n,e,t))}function f3(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function d3(){return this.on("end.remove",f3(this._id))}function p3(e){var t=this._name,n=this._id;typeof e!="function"&&(e=eh(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a=0))throw new Error(`invalid digits: ${e}`);if(t>15)return By;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;iLr)if(!(Math.abs(f*l-u*c)>Lr)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-a,v=i-s,y=l*l+u*u,w=m*m+v*v,p=Math.sqrt(y),h=Math.sqrt(d),g=o*Math.tan((md-Math.acos((y+d-w)/(2*p*h)))/2),S=g/h,b=g/p;Math.abs(S-1)>Lr&&this._append`L${t+S*c},${n+S*f}`,this._append`A${o},${o},0,0,${+(f*m>c*v)},${this._x1=t+b*l},${this._y1=n+b*u}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),u=t+s,c=n+l,f=1^a,d=a?i-o:o-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Lr||Math.abs(this._y1-c)>Lr)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%vd+vd),d>F3?this._append`A${r},${r},0,1,${f},${t-s},${n-l}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:d>Lr&&this._append`A${r},${r},0,${+(d>=md)},${f},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function j3(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function U3(){return this.eachAfter(j3)}function B3(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function H3(e,t){for(var n=this,r=[n],i,o,a=-1;n=r.pop();)if(e.call(t,n,++a,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function W3(e,t){for(var n=this,r=[n],i=[],o,a,s,l=-1;n=r.pop();)if(i.push(n),o=n.children)for(a=0,s=o.length;a=0;)n+=r[i].value;t.value=n})}function G3(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function K3(e){for(var t=this,n=Q3(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Q3(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function q3(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Z3(){return Array.from(this)}function J3(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function e4(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*t4(){var e=this,t,n=[e],r,i,o;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,o=r.length;i=0;--s)i.push(o=a[s]=new Wa(a[s])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(a4)}function n4(){return ah(this).eachBefore(o4)}function r4(e){return e.children}function i4(e){return Array.isArray(e)?e[1]:null}function o4(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function a4(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Wa(e){this.data=e,this.depth=this.height=0,this.parent=null}Wa.prototype=ah.prototype={constructor:Wa,count:U3,each:B3,eachAfter:W3,eachBefore:H3,find:Y3,sum:X3,sort:G3,path:K3,ancestors:q3,descendants:Z3,leaves:J3,links:e4,copy:n4,[Symbol.iterator]:t4};function l4(e,t){return e.parent===t.parent?1:2}function $c(e){var t=e.children;return t?t[0]:e.t}function Dc(e){var t=e.children;return t?t[t.length-1]:e.t}function s4(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function u4(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function c4(e,t,n){return e.a.parent===t.parent?e.a:n}function fs(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}fs.prototype=Object.create(Wa.prototype);function f4(e){for(var t=new fs(e,0),n,r=[t],i,o,a,s;n=r.pop();)if(o=n._.children)for(n.children=new Array(s=o.length),a=s-1;a>=0;--a)r.push(i=n.children[a]=new fs(o[a],a)),i.parent=n;return(t.parent=new fs(null,0)).children=[t],t}function S0(){var e=l4,t=1,n=1,r=null;function i(u){var c=f4(u);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)u.eachBefore(l);else{var f=u,d=u,m=u;u.eachBefore(function(h){h.xd.x&&(d=h),h.depth>m.depth&&(m=h)});var v=f===d?1:e(f,d)/2,y=v-f.x,w=t/(d.x+v+y),p=n/(m.depth||1);u.eachBefore(function(h){h.x=(h.x+y)*w,h.y=h.depth*p})}return u}function o(u){var c=u.children,f=u.parent.children,d=u.i?f[u.i-1]:null;if(c){u4(u);var m=(c[0].z+c[c.length-1].z)/2;d?(u.z=d.z+e(u._,d._),u.m=u.z-m):u.z=m}else d&&(u.z=d.z+e(u._,d._));u.parent.A=s(u,d,u.parent.A||f[0])}function a(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function s(u,c,f){if(c){for(var d=u,m=u,v=c,y=d.parent.children[0],w=d.m,p=m.m,h=v.m,g=y.m,S;v=Dc(v),d=$c(d),v&&d;)y=$c(y),m=Dc(m),m.a=u,S=v.z+h-d.z-w+e(v._,d._),S>0&&(s4(c4(v,u,f),u,S),w+=S,p+=S),h+=v.m,w+=d.m,g+=y.m,p+=m.m;v&&!Dc(m)&&(m.t=v,m.m+=h-p),d&&!$c(y)&&(y.t=d,y.m+=w-g,f=u)}return f}function l(u){u.x*=t,u.y=u.depth*n}return i.separation=function(u){return arguments.length?(e=u,i):e},i.size=function(u){return arguments.length?(r=!1,t=+u[0],n=+u[1],i):r?null:[t,n]},i.nodeSize=function(u){return arguments.length?(r=!0,t=+u[0],n=+u[1],i):r?[t,n]:null},i}function _0(e){return function(){return e}}function d4(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new V3(t)}var p4=Array.prototype.slice;function h4(e){return e[0]}function m4(e){return e[1]}class v4{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function g4(e){return new v4(e,!0)}function y4(e){return e.source}function w4(e){return e.target}function x4(e){let t=y4,n=w4,r=h4,i=m4,o=null,a=null,s=d4(l);function l(){let u;const c=p4.call(arguments),f=t.apply(this,c),d=n.apply(this,c);if(o==null&&(a=e(u=s())),a.lineStart(),c[0]=f,a.point(+r.apply(this,c),+i.apply(this,c)),c[0]=d,a.point(+r.apply(this,c),+i.apply(this,c)),a.lineEnd(),u)return a=null,u+""||null}return l.source=function(u){return arguments.length?(t=u,l):t},l.target=function(u){return arguments.length?(n=u,l):n},l.x=function(u){return arguments.length?(r=typeof u=="function"?u:_0(+u),l):r},l.y=function(u){return arguments.length?(i=typeof u=="function"?u:_0(+u),l):i},l.context=function(u){return arguments.length?(u==null?o=a=null:a=e(o=u),l):o},l}function S4(){return x4(g4)}const Fl=e=>()=>e;function _4(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function In(e,t,n){this.k=e,this.x=t,this.y=n}In.prototype={constructor:In,scale:function(e){return e===1?this:new In(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new In(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var $u=new In(1,0,0);Hy.prototype=In.prototype;function Hy(e){for(;!e.__zoom;)if(!(e=e.parentNode))return $u;return e.__zoom}function Fc(e){e.stopImmediatePropagation()}function Xo(e){e.preventDefault(),e.stopImmediatePropagation()}function b4(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function E4(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function b0(){return this.__zoom||$u}function C4(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function k4(){return navigator.maxTouchPoints||"ontouchstart"in this}function O4(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function E0(){var e=b4,t=E4,n=O4,r=C4,i=k4,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,l=kC,u=Zp("start","zoom","end"),c,f,d,m=500,v=150,y=0,w=10;function p(C){C.property("__zoom",b0).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",N).on("dblclick.zoom",L).filter(i).on("touchstart.zoom",j).on("touchmove.zoom",H).on("touchend.zoom touchcancel.zoom",J).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(C,R,P,A){var O=C.selection?C.selection():C;O.property("__zoom",b0),C!==O?b(C,R,P,A):O.interrupt().each(function(){k(this,arguments).event(A).start().zoom(null,typeof R=="function"?R.apply(this,arguments):R).end()})},p.scaleBy=function(C,R,P,A){p.scaleTo(C,function(){var O=this.__zoom.k,M=typeof R=="function"?R.apply(this,arguments):R;return O*M},P,A)},p.scaleTo=function(C,R,P,A){p.transform(C,function(){var O=t.apply(this,arguments),M=this.__zoom,T=P==null?S(O):typeof P=="function"?P.apply(this,arguments):P,V=M.invert(T),F=typeof R=="function"?R.apply(this,arguments):R;return n(g(h(M,F),T,V),O,a)},P,A)},p.translateBy=function(C,R,P,A){p.transform(C,function(){return n(this.__zoom.translate(typeof R=="function"?R.apply(this,arguments):R,typeof P=="function"?P.apply(this,arguments):P),t.apply(this,arguments),a)},null,A)},p.translateTo=function(C,R,P,A,O){p.transform(C,function(){var M=t.apply(this,arguments),T=this.__zoom,V=A==null?S(M):typeof A=="function"?A.apply(this,arguments):A;return n($u.translate(V[0],V[1]).scale(T.k).translate(typeof R=="function"?-R.apply(this,arguments):-R,typeof P=="function"?-P.apply(this,arguments):-P),M,a)},A,O)};function h(C,R){return R=Math.max(o[0],Math.min(o[1],R)),R===C.k?C:new In(R,C.x,C.y)}function g(C,R,P){var A=R[0]-P[0]*C.k,O=R[1]-P[1]*C.k;return A===C.x&&O===C.y?C:new In(C.k,A,O)}function S(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function b(C,R,P,A){C.on("start.zoom",function(){k(this,arguments).event(A).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).event(A).end()}).tween("zoom",function(){var O=this,M=arguments,T=k(O,M).event(A),V=t.apply(O,M),F=P==null?S(V):typeof P=="function"?P.apply(O,M):P,Q=Math.max(V[1][0]-V[0][0],V[1][1]-V[0][1]),Y=O.__zoom,ne=typeof R=="function"?R.apply(O,M):R,ee=l(Y.invert(F).concat(Q/Y.k),ne.invert(F).concat(Q/ne.k));return function(q){if(q===1)q=ne;else{var de=ee(q),Me=Q/de[2];q=new In(Me,F[0]-de[0]*Me,F[1]-de[1]*Me)}T.zoom(null,q)}})}function k(C,R,P){return!P&&C.__zooming||new E(C,R)}function E(C,R){this.that=C,this.args=R,this.active=0,this.sourceEvent=null,this.extent=t.apply(C,R),this.taps=0}E.prototype={event:function(C){return C&&(this.sourceEvent=C),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(C,R){return this.mouse&&C!=="mouse"&&(this.mouse[1]=R.invert(this.mouse[0])),this.touch0&&C!=="touch"&&(this.touch0[1]=R.invert(this.touch0[0])),this.touch1&&C!=="touch"&&(this.touch1[1]=R.invert(this.touch1[0])),this.that.__zoom=R,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(C){var R=On(this.that).datum();u.call(C,this.that,new _4(C,{sourceEvent:this.sourceEvent,target:p,type:C,transform:this.that.__zoom,dispatch:u}),R)}};function _(C,...R){if(!e.apply(this,arguments))return;var P=k(this,R).event(C),A=this.__zoom,O=Math.max(o[0],Math.min(o[1],A.k*Math.pow(2,r.apply(this,arguments)))),M=Tr(C);if(P.wheel)(P.mouse[0][0]!==M[0]||P.mouse[0][1]!==M[1])&&(P.mouse[1]=A.invert(P.mouse[0]=M)),clearTimeout(P.wheel);else{if(A.k===O)return;P.mouse=[M,A.invert(M)],cs(this),P.start()}Xo(C),P.wheel=setTimeout(T,v),P.zoom("mouse",n(g(h(A,O),P.mouse[0],P.mouse[1]),P.extent,a));function T(){P.wheel=null,P.end()}}function N(C,...R){if(d||!e.apply(this,arguments))return;var P=C.currentTarget,A=k(this,R,!0).event(C),O=On(C.view).on("mousemove.zoom",F,!0).on("mouseup.zoom",Q,!0),M=Tr(C,P),T=C.clientX,V=C.clientY;JE(C.view),Fc(C),A.mouse=[M,this.__zoom.invert(M)],cs(this),A.start();function F(Y){if(Xo(Y),!A.moved){var ne=Y.clientX-T,ee=Y.clientY-V;A.moved=ne*ne+ee*ee>y}A.event(Y).zoom("mouse",n(g(A.that.__zoom,A.mouse[0]=Tr(Y,P),A.mouse[1]),A.extent,a))}function Q(Y){O.on("mousemove.zoom mouseup.zoom",null),eC(Y.view,A.moved),Xo(Y),A.event(Y).end()}}function L(C,...R){if(e.apply(this,arguments)){var P=this.__zoom,A=Tr(C.changedTouches?C.changedTouches[0]:C,this),O=P.invert(A),M=P.k*(C.shiftKey?.5:2),T=n(g(h(P,M),A,O),t.apply(this,R),a);Xo(C),s>0?On(this).transition().duration(s).call(b,T,A,C):On(this).call(p.transform,T,A,C)}}function j(C,...R){if(e.apply(this,arguments)){var P=C.touches,A=P.length,O=k(this,R,C.changedTouches.length===A).event(C),M,T,V,F;for(Fc(C),T=0;T{throw TypeError(e)},T4=(e,t,n)=>t in e?P4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ir=(e,t,n)=>T4(e,typeof t!="symbol"?t+"":t,n),lh=(e,t,n)=>t.has(e)||Wy("Cannot "+n),$=(e,t,n)=>(lh(e,t,"read from private field"),n?n.call(e):t.get(e)),xe=(e,t,n)=>t.has(e)?Wy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ve=(e,t,n,r)=>(lh(e,t,"write to private field"),t.set(e,n),n),zc=(e,t,n)=>(lh(e,t,"access private method"),n),I4=(e,t,n,r)=>({set _(i){Ve(e,t,i)},get _(){return $(e,t,r)}}),Ee,Ei,Ht,gt,Ci,Rr,Ar,ki,Oi,Pi,bn,En,gd,$r,yd,wd,Ti,ds,ra,ps,Dr,hs,ms,vs,gs;class Yy extends Error{constructor(t){super(`No element in DOM with ID ${t}`)}}function M4(e){let t=1/0,n=-1/0,r=1/0,i=-1/0;return ia(e,o=>{t=Math.min(t,o.y),n=Math.max(n,o.y),r=Math.min(r,o.x),i=Math.max(i,o.x)},!1),{width:n-t,height:i-r}}function N4(e){const t=[];let n=[e];for(;n.length>0;){t[t.length]=n.length;let r=[];for(const i of n)r=r.concat(i.children||[]);n=r}return t}function ia(e,t,n=!0){let r=[e];for(;r.length>0;){let i=[];for(const o of r)i=i.concat(o.children||(n?o._children:[])||[]),t(o);r=i}}function Xy(e,t){return e.data.level-t.data.level}function L4(e,t){const n=Xy(e,t);return n!==0?n:e.data.name.toLowerCase().localeCompare(t.data.name.toLowerCase())}function R4(e,t){const n=Xy(e,t);return n!==0?n:e.x-t.x}function Gy(e,t,n){let r=[];const i=t(e);i&&r.push(e);for(const o of e.children||e._children||[]){const a=Gy(o,t,n);a.length>0&&(r=r.concat(a))}return r.length>0&&(i&&r.length===1?n(e,!0):n(e,!1)),r}function Ky(e){const t=document.getElementById(e);if(!t)throw new Yy(e);return t}const A4="https://ncit.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&code=",$4="https://ncim.nci.nih.gov/ncimbrowser/ConceptReport.jsp?code=";function D4(e){const t=document.createElement("div");return t.className="oncotree-tooltip",t.appendChild(zl("Name",e.data.name)),t.appendChild(zl("Code",e.data.code)),t.appendChild(zl("Main Type",e.data.mainType??"N/A")),e.data.externalReferences.NCI&&t.appendChild(C0(e.data.externalReferences.NCI,"NCI")),e.data.externalReferences.UMLS&&t.appendChild(C0(e.data.externalReferences.UMLS,"UMLS")),t.appendChild(zl("Color",e.data.color??"N/A")),t}function zl(e,t){const n=document.createElement("div");return n.className="oncotree-tooltip-item",n.textContent=`${e}: ${t}`,n}function C0(e,t){const n=document.createElement("div"),r=document.createElement("span");r.textContent=`${t}: `,n.appendChild(r);for(let i=0;i{if(!$(this,gt))return[];$(this,vs).call(this),ia($(this,Ee),y=>{y.data.level>0&&zc(this,ra,ps).call(this,y)});const m=[],v=Gy($(this,Ee),d,(y,w)=>{m.push(y),y._children&&!w&&(y.children=y._children,y._children=void 0)});return $(this,Dr).call(this,$(this,Ee)),$(this,gt).selectAll("g.node").filter(y=>d(y)).attr("font-weight","bold").attr("fill","red"),$(this,gt).selectAll("path.link").filter(y=>m.includes(y.target)).style("stroke",y=>y.target.data.color==="Gainsboro"?"Gray":y.target.data.color).style("stroke-width","2px"),v.sort(R4),v}),Ir(this,"searchByName",d=>this.search(m=>m.data.name.toLowerCase().includes(d.toLowerCase()))),Ir(this,"focus",d=>{$(this,Ti).call(this,d)}),Ir(this,"expand",()=>{ia($(this,Ee),d=>{d._children&&(d.children=d._children,d._children=void 0)}),$(this,Dr).call(this,$(this,Ee))}),Ir(this,"collapse",()=>{ia($(this,Ee),d=>{d.data.level>0&&zc(this,ra,ps).call(this,d)}),$(this,vs).call(this),$(this,Dr).call(this,$(this,Ee)),$(this,Ti).call(this,$(this,Ee))}),Ir(this,"enterCopyJsonMode",d=>{$(this,Ht).style("cursor","copy"),$(this,gt).selectAll("g.node").attr("class","node copy").on("click",async(m,v)=>{var y,w;try{await navigator.clipboard.writeText(JSON.stringify(v.data,null,4)),(y=d==null?void 0:d.onCopySuccess)==null||y.call(d,m)}catch(p){(w=d==null?void 0:d.onCopyError)==null||w.call(d,m,p)}})}),Ir(this,"exitCopyJsonMode",()=>{$(this,Ht).style("cursor","auto"),$(this,gt).selectAll("g.node").attr("class","node").on("click",$(this,ds))}),xe(this,yd,d=>{$(this,gt).attr("transform",d.transform)}),xe(this,wd,d=>(d.children?(d._children=d.children,d.children=void 0):d._children&&(d.children=d._children,d._children=void 0),d)),xe(this,Ti,d=>{const m=Hy($(this,Ht).node()).k;let v=d.y;if(d.children){const b=d.children[Math.floor(d.children.length/2)].y;v=(v+b)/2}const y=d.x,w=$(this,En)/2,p=$(this,bn)/2,h=-v*m+w,g=-y*m+p,S=$u.translate(h,g).scale(m);$(this,Ht).transition().duration($(this,$r)).call($(this,Rr).transform,S)}),xe(this,ds,(d,m)=>{m=$(this,wd).call(this,m),$(this,Dr).call(this,m),$(this,Ti).call(this,m)}),xe(this,Dr,d=>{const m=N4($(this,Ee)),v=mb(m)*25;Ve(this,Ei,S0().size([v,$(this,En)])),$(this,Ei).call(this,$(this,Ee));const y=$(this,Ee).descendants().reverse(),w=$(this,Ee).links(),p={0:0},h={0:0};y.forEach(_=>{const N=_.data.name.length*6+50;_.depth!==0&&(Object.prototype.hasOwnProperty.call(p,_.depth)||(p[_.depth]=0,h[_.depth]=0),!_.children&&!_._children&&h[_.depth]1?(N+=p[j]+h[j-1],p[j]>0&&h[j-1]>0?N-=50:N-=0):N+=p[j];_.y=N}});const g=$(this,gt).selectAll("g.node").data(y,_=>_.id||(_.id=++I4(this,gd)._)),S=g.enter().append("g").attr("class","node").attr("transform",()=>`translate(${d.y0},${d.x0})`).on("click",$(this,ds));S.append("circle").attr("class","nodeCircle").attr("r",0).style("fill",_=>_._children?"steelblue":"#fff"),S.append("text").attr("x",_=>_.children||_._children?-10:10).attr("dy",".35em").attr("class","nodeText").attr("text-anchor",_=>_.children||_._children?"end":"start").text(_=>_.data.name).style("fill-opacity",0).on("mouseover",(_,N)=>{clearTimeout($(this,ki)),Ve(this,ki,setTimeout(()=>{Ve(this,Pi,!0),$(this,Ar).transition().duration(200).style("opacity",1).style("pointer-events","all"),$(this,Ar).html(D4(N).outerHTML).style("left",`${_.pageX-12}px`).style("top",`${_.pageY+12}px`)},300))}).on("mouseout",()=>{Ve(this,Pi,!1),clearTimeout($(this,ki)),setTimeout(()=>{!$(this,Pi)&&!$(this,Oi)&&$(this,gs).call(this)},200)}),$(this,hs).call(this,S),$(this,hs).call(this,g),g.exit().transition().duration($(this,$r)).attr("transform",()=>`translate(${d.y},${d.x})`).remove().select("text").style("fill-opacity",0);const k=$(this,gt).selectAll("path.link").data(w,_=>_.target.id),E=k.enter().insert("path","g").attr("class","link").attr("d",()=>{const _=[d.y0,d.x0];return $(this,Ci).call(this,{source:_,target:_})});$(this,ms).call(this,k),$(this,ms).call(this,E),k.exit().transition().duration($(this,$r)).attr("d",()=>{const _=[d.y,d.x];return $(this,Ci).call(this,{source:_,target:_})}).remove(),y.forEach(function(_){_.x0=_.x,_.y0=_.y})}),xe(this,hs,d=>{d.select("text").attr("x",v=>v.children||v._children?-10:10).attr("text-anchor",v=>v.children||v._children?"end":"start").text(v=>v.data.name),d.select("circle.nodeCircle").attr("r",4.5).attr("stroke",v=>v.data.color||"steelblue").style("fill",v=>v._children?v.data.color:"#fff"),d.transition().duration($(this,$r)).attr("transform",v=>`translate(${v.y},${v.x})`).select("text").style("fill-opacity",1)}),xe(this,ms,d=>{d.transition().duration($(this,$r)).attr("d",m=>$(this,Ci).call(this,{source:[m.source.y,m.source.x],target:[m.target.y,m.target.x]}))}),xe(this,vs,()=>{$(this,gt).selectAll("g.node").attr("fill","unset").attr("font-weight","normal"),$(this,gt).selectAll("path.link").style("stroke","#ccc").style("stroke-width","1px")}),xe(this,gs,()=>{$(this,Ar).style("pointer-events","none"),$(this,Ar).transition().duration(200).style("opacity",0)});var r;const i=On(`#${t}`),o=i.node();if(o===null)throw new Yy(t);o.clientHeightObject.values(d.children))),$(this,Ee).sort(L4),Ve(this,Ei,S0().size([$(this,bn),$(this,En)])),$(this,Ei).call(this,$(this,Ee)),Ve(this,Ci,S4()),Ve(this,Rr,E0().scaleExtent([.1,3]).on("zoom",$(this,yd))),Ve(this,Ht,qE("svg").attr("width","100%").attr("height","100%").attr("viewBox",[0,0,$(this,En),$(this,bn)]).call($(this,Rr))),Ve(this,gt,$(this,Ht).append("g"));let a=1;const s=E0().filter(d=>d.type==="wheel").on("zoom",d=>{const m=d.transform,v=m.k/a;a=m.k,$(this,Rr).scaleBy($(this,Ht),v)});Ve(this,Ar,i.append("div").style("position","absolute").style("opacity","0").on("mouseover",()=>{Ve(this,Oi,!0)}).on("mouseout",()=>{Ve(this,Oi,!1),clearTimeout($(this,ki)),setTimeout(()=>{!$(this,Pi)&&!$(this,Oi)&&$(this,gs).call(this)},200)}).call(s)),$(this,Ee).x0=$(this,bn)/2,$(this,Ee).y0=0,(r=$(this,Ee).children)==null||r.forEach(d=>{ia(d,m=>{zc(this,ra,ps).call(this,m)})}),$(this,Dr).call(this,$(this,Ee));const{width:l,height:u}=M4($(this,Ee)),c=$(this,En)/(l+75),f=$(this,bn)/(u+75);$(this,Rr).scaleTo($(this,Ht),Math.min(c,f)),$(this,Ti).call(this,$(this,Ee)),o.append($(this,Ht).node())}}Ee=new WeakMap;Ei=new WeakMap;Ht=new WeakMap;gt=new WeakMap;Ci=new WeakMap;Rr=new WeakMap;Ar=new WeakMap;ki=new WeakMap;Oi=new WeakMap;Pi=new WeakMap;bn=new WeakMap;En=new WeakMap;gd=new WeakMap;$r=new WeakMap;yd=new WeakMap;wd=new WeakMap;Ti=new WeakMap;ds=new WeakMap;ra=new WeakSet;ps=function(e){e.children&&(e._children=e.children,e.children=void 0)};Dr=new WeakMap;hs=new WeakMap;ms=new WeakMap;vs=new WeakMap;gs=new WeakMap;const V4=`\r \r \r `,j4=`\r @@ -111,19 +111,19 @@ Error generating stack: `+o.message+` -`;var Ya=(e=>(e.TOGGLE="toggle",e.EXPAND="expand",e.COLLAPSE="collapse",e.COPY_JSON="copy_json",e))(Ya||{});async function H4(e,t){const n=Ky(e),r=document.createElement("div");r.className="oncotree-toolbar-item inactive standalone",r.innerHTML=Qy.expand,r.onclick=()=>{Y4(t)},n.appendChild(r)}async function W4(e,t){const n=Ky(e),r=document.createElement("div");r.className="oncotree-toolbar-item inactive standalone",r.innerHTML=Qy.collapse,r.onclick=()=>{X4(t)},n.appendChild(r)}function Y4(e){e.expand()}function X4(e){e.collapse()}const Qy={toggle:V4,expand:j4,collapse:U4,copy_json:B4},G4="oncotree-expand-item-container",K4="oncotree-collapse-item-container";function k0({oncoTree:e,type:t}){const n=x.useRef(null),r=t===Ya.EXPAND?G4:K4;return x.useEffect(()=>{n.current&&(n.current.innerHTML="",t===Ya.EXPAND?H4(r,e):W4(r,e))},[e,r,t]),I.jsx("div",{ref:n,id:r})}const O0="oncotree-container";function Q4({oncoTreeData:e,oncoTree:t,onOncoTreeInit:n}){const r=x.useRef(null),i=x.useRef();return x.useEffect(()=>{const o=i.current!==e;if(r.current&&o){r.current.children.length>0&&(r.current.innerHTML="");const a=new z4(O0,e);n(a)}i.current=e},[e,n]),I.jsxs(I.Fragment,{children:[I.jsx("div",{style:{position:"relative",top:8,left:8},children:t&&I.jsxs("div",{style:{position:"absolute"},children:[I.jsx(k0,{oncoTree:t,type:Ya.EXPAND}),I.jsx("div",{style:{marginTop:8}}),I.jsx(k0,{oncoTree:t,type:Ya.COLLAPSE})]})}),I.jsx("div",{ref:r,id:O0,style:{height:"100%",width:"100%",display:"flex",alignItems:"center"}})]})}const q4="#004187",Z4="#f8f9fa",J4="_header_4h4fk_6",vt={primary:q4,secondary:Z4,header:J4,"header-link":"_header-link_4h4fk_16","mobile-container":"_mobile-container_4h4fk_27","mobile-links":"_mobile-links_4h4fk_38","mobile-search":"_mobile-search_4h4fk_42"},ek="/assets/oncotree_logo_no_bg-B9RSMkP7.svg";function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function tk(e,t){if(ri(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ri(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qy(e){var t=tk(e,"string");return ri(t)=="symbol"?t:t+""}function oa(e,t,n){return(t=qy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?Ye(_o,--ht):0,co--,Le===10&&(co=1,Fu--),Le}function _t(){return Le=ht2||Ga(Le)>3?"":" "}function Mk(e,t){for(;--t&&_t()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return ul(e,ys()+(t<6&&vn()==32&&_t()==32))}function bd(e){for(;_t();)switch(Le){case e:return ht;case 34:case 39:e!==34&&e!==39&&bd(Le);break;case 40:e===41&&bd(e);break;case 92:_t();break}return ht}function Nk(e,t){for(;_t()&&e+Le!==57;)if(e+Le===84&&vn()===47)break;return"/*"+ul(t,ht-1)+"*"+Du(e===47?e:_t())}function Lk(e){for(;!Ga(vn());)_t();return ul(e,ht)}function Ak(e){return ow(xs("",null,null,null,[""],e=iw(e),0,[0],e))}function xs(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,f=a,d=0,m=0,v=0,y=1,w=1,p=1,h=0,g="",S=i,b=o,k=r,E=g;w;)switch(v=h,h=_t()){case 40:if(v!=108&&Ye(E,f-1)==58){_d(E+=ue(ws(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:E+=ws(h);break;case 9:case 10:case 13:case 32:E+=Ik(v);break;case 92:E+=Mk(ys()-1,7);continue;case 47:switch(vn()){case 42:case 47:Vl(Rk(Nk(_t(),ys()),t,n),l);break;default:E+="/"}break;case 123*y:s[u++]=ln(E)*p;case 125*y:case 59:case 0:switch(h){case 0:case 125:w=0;case 59+c:p==-1&&(E=ue(E,/\f/g,"")),m>0&&ln(E)-f&&Vl(m>32?M0(E+";",r,n,f-1):M0(ue(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(Vl(k=I0(E,t,n,u,c,i,s,g,S=[],b=[],f),o),h===123)if(c===0)xs(E,t,k,k,S,o,f,s,b);else switch(d===99&&Ye(E,3)===110?100:d){case 100:case 108:case 109:case 115:xs(e,k,k,r&&Vl(I0(e,k,k,0,0,i,s,g,i,S=[],f),b),i,b,f,s,r?S:b);break;default:xs(E,k,k,k,[""],b,0,s,b)}}u=c=m=0,y=p=1,g=E="",f=a;break;case 58:f=1+ln(E),m=v;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&Tk()==125)continue}switch(E+=Du(h),h*y){case 38:p=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(ln(E)-1)*p,p=1;break;case 64:vn()===45&&(E+=ws(_t())),d=vn(),c=f=ln(g=E+=Lk(ys())),h++;break;case 45:v===45&&ln(E)==2&&(y=0)}}return o}function I0(e,t,n,r,i,o,a,s,l,u,c){for(var f=i-1,d=i===0?o:[""],m=fh(d),v=0,y=0,w=0;v0?d[p]+" "+h:ue(h,/&\f/g,d[p])))&&(l[w++]=g);return zu(e,t,n,i===0?uh:s,l,u,c)}function Rk(e,t,n){return zu(e,t,n,ew,Du(Pk()),Xa(e,2,-2),0)}function M0(e,t,n,r){return zu(e,t,n,ch,Xa(e,0,r),Xa(e,r+1,-1),r)}function qi(e,t){for(var n="",r=fh(e),i=0;i6)switch(Ye(e,t+1)){case 109:if(Ye(e,t+4)!==45)break;case 102:return ue(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+iu+(Ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_d(e,"stretch")?aw(ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ye(e,t+1)!==115)break;case 6444:switch(Ye(e,ln(e)-3-(~_d(e,"!important")&&10))){case 107:return ue(e,":",":"+se)+e;case 101:return ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(Ye(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return se+e+Je+ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Je+ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Je+ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Je+e+e}return e}var Wk=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case ch:t.return=aw(t.value,t.length);break;case tw:return qi([Go(t,{value:ue(t.value,"@","@"+se)})],i);case uh:if(t.length)return Ok(t.props,function(o){switch(kk(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qi([Go(t,{props:[ue(o,/:(read-\w+)/,":"+iu+"$1")]})],i);case"::placeholder":return qi([Go(t,{props:[ue(o,/:(plac\w+)/,":"+se+"input-$1")]}),Go(t,{props:[ue(o,/:(plac\w+)/,":"+iu+"$1")]}),Go(t,{props:[ue(o,/:(plac\w+)/,Je+"input-$1")]})],i)}return""})}},Yk=[Wk],lw=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||Yk,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),p=1;p(e.TOGGLE="toggle",e.EXPAND="expand",e.COLLAPSE="collapse",e.COPY_JSON="copy_json",e))(Ya||{});async function H4(e,t){const n=Ky(e),r=document.createElement("div");r.className="oncotree-toolbar-item inactive standalone",r.innerHTML=Qy.expand,r.onclick=()=>{Y4(t)},n.appendChild(r)}async function W4(e,t){const n=Ky(e),r=document.createElement("div");r.className="oncotree-toolbar-item inactive standalone",r.innerHTML=Qy.collapse,r.onclick=()=>{X4(t)},n.appendChild(r)}function Y4(e){e.expand()}function X4(e){e.collapse()}const Qy={toggle:V4,expand:j4,collapse:U4,copy_json:B4},G4="oncotree-expand-item-container",K4="oncotree-collapse-item-container";function k0({oncoTree:e,type:t}){const n=x.useRef(null),r=t===Ya.EXPAND?G4:K4;return x.useEffect(()=>{n.current&&(n.current.innerHTML="",t===Ya.EXPAND?H4(r,e):W4(r,e))},[e,r,t]),I.jsx("div",{ref:n,id:r})}const O0="oncotree-container";function Q4({oncoTreeData:e,oncoTree:t,onOncoTreeInit:n}){const r=x.useRef(null),i=x.useRef();return x.useEffect(()=>{const o=i.current!==e;if(r.current&&o){r.current.children.length>0&&(r.current.innerHTML="");const a=new z4(O0,e);n(a)}i.current=e},[e,n]),I.jsxs(I.Fragment,{children:[I.jsx("div",{style:{position:"relative",top:8,left:8},children:t&&I.jsxs("div",{style:{position:"absolute"},children:[I.jsx(k0,{oncoTree:t,type:Ya.EXPAND}),I.jsx("div",{style:{marginTop:8}}),I.jsx(k0,{oncoTree:t,type:Ya.COLLAPSE})]})}),I.jsx("div",{ref:r,id:O0,style:{height:"100%",width:"100%",display:"flex",alignItems:"center"}})]})}const q4="#004187",Z4="#f8f9fa",J4="_header_4h4fk_6",vt={primary:q4,secondary:Z4,header:J4,"header-link":"_header-link_4h4fk_16","mobile-container":"_mobile-container_4h4fk_27","mobile-links":"_mobile-links_4h4fk_38","mobile-search":"_mobile-search_4h4fk_42"},ek="/assets/oncotree_logo_no_bg-B9RSMkP7.svg";function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function tk(e,t){if(ri(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ri(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qy(e){var t=tk(e,"string");return ri(t)=="symbol"?t:t+""}function oa(e,t,n){return(t=qy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?Ye(_o,--ht):0,co--,Le===10&&(co=1,Fu--),Le}function _t(){return Le=ht2||Ga(Le)>3?"":" "}function Mk(e,t){for(;--t&&_t()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return ul(e,ys()+(t<6&&vn()==32&&_t()==32))}function bd(e){for(;_t();)switch(Le){case e:return ht;case 34:case 39:e!==34&&e!==39&&bd(Le);break;case 40:e===41&&bd(e);break;case 92:_t();break}return ht}function Nk(e,t){for(;_t()&&e+Le!==57;)if(e+Le===84&&vn()===47)break;return"/*"+ul(t,ht-1)+"*"+Du(e===47?e:_t())}function Lk(e){for(;!Ga(vn());)_t();return ul(e,ht)}function Rk(e){return ow(xs("",null,null,null,[""],e=iw(e),0,[0],e))}function xs(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,f=a,d=0,m=0,v=0,y=1,w=1,p=1,h=0,g="",S=i,b=o,k=r,E=g;w;)switch(v=h,h=_t()){case 40:if(v!=108&&Ye(E,f-1)==58){_d(E+=ue(ws(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:E+=ws(h);break;case 9:case 10:case 13:case 32:E+=Ik(v);break;case 92:E+=Mk(ys()-1,7);continue;case 47:switch(vn()){case 42:case 47:Vl(Ak(Nk(_t(),ys()),t,n),l);break;default:E+="/"}break;case 123*y:s[u++]=ln(E)*p;case 125*y:case 59:case 0:switch(h){case 0:case 125:w=0;case 59+c:p==-1&&(E=ue(E,/\f/g,"")),m>0&&ln(E)-f&&Vl(m>32?M0(E+";",r,n,f-1):M0(ue(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(Vl(k=I0(E,t,n,u,c,i,s,g,S=[],b=[],f),o),h===123)if(c===0)xs(E,t,k,k,S,o,f,s,b);else switch(d===99&&Ye(E,3)===110?100:d){case 100:case 108:case 109:case 115:xs(e,k,k,r&&Vl(I0(e,k,k,0,0,i,s,g,i,S=[],f),b),i,b,f,s,r?S:b);break;default:xs(E,k,k,k,[""],b,0,s,b)}}u=c=m=0,y=p=1,g=E="",f=a;break;case 58:f=1+ln(E),m=v;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&Tk()==125)continue}switch(E+=Du(h),h*y){case 38:p=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(ln(E)-1)*p,p=1;break;case 64:vn()===45&&(E+=ws(_t())),d=vn(),c=f=ln(g=E+=Lk(ys())),h++;break;case 45:v===45&&ln(E)==2&&(y=0)}}return o}function I0(e,t,n,r,i,o,a,s,l,u,c){for(var f=i-1,d=i===0?o:[""],m=fh(d),v=0,y=0,w=0;v0?d[p]+" "+h:ue(h,/&\f/g,d[p])))&&(l[w++]=g);return zu(e,t,n,i===0?uh:s,l,u,c)}function Ak(e,t,n){return zu(e,t,n,ew,Du(Pk()),Xa(e,2,-2),0)}function M0(e,t,n,r){return zu(e,t,n,ch,Xa(e,0,r),Xa(e,r+1,-1),r)}function qi(e,t){for(var n="",r=fh(e),i=0;i6)switch(Ye(e,t+1)){case 109:if(Ye(e,t+4)!==45)break;case 102:return ue(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+iu+(Ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_d(e,"stretch")?aw(ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ye(e,t+1)!==115)break;case 6444:switch(Ye(e,ln(e)-3-(~_d(e,"!important")&&10))){case 107:return ue(e,":",":"+se)+e;case 101:return ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(Ye(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return se+e+Je+ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Je+ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Je+ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Je+e+e}return e}var Wk=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case ch:t.return=aw(t.value,t.length);break;case tw:return qi([Go(t,{value:ue(t.value,"@","@"+se)})],i);case uh:if(t.length)return Ok(t.props,function(o){switch(kk(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qi([Go(t,{props:[ue(o,/:(read-\w+)/,":"+iu+"$1")]})],i);case"::placeholder":return qi([Go(t,{props:[ue(o,/:(plac\w+)/,":"+se+"input-$1")]}),Go(t,{props:[ue(o,/:(plac\w+)/,":"+iu+"$1")]}),Go(t,{props:[ue(o,/:(plac\w+)/,Je+"input-$1")]})],i)}return""})}},Yk=[Wk],lw=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||Yk,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),p=1;p=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var r5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i5=!1,o5=/[A-Z]|^ms/g,a5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hw=function(t){return t.charCodeAt(1)===45},L0=function(t){return t!=null&&typeof t!="boolean"},Vc=zk(function(e){return hw(e)?e:e.replace(o5,"-$&").toLowerCase()}),A0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(a5,function(r,i,o){return sn={name:i,styles:o,next:sn},i})}return r5[t]!==1&&!hw(t)&&typeof n=="number"&&n!==0?n+"px":n},l5="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ka(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return sn={name:i.name,styles:i.styles,next:sn},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)sn={name:a.name,styles:a.styles,next:sn},a=a.next;var s=o.styles+";";return s}return s5(e,t,n)}case"function":{if(e!==void 0){var l=sn,u=n(e);return sn=l,Ka(e,t,u)}break}}var c=n;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function s5(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i({x:e,y:e}),S5={left:"right",right:"left",bottom:"top",top:"bottom"},_5={start:"end",end:"start"};function Cd(e,t,n){return Yr(e,fo(t,n))}function cl(e,t){return typeof e=="function"?e(t):e}function ii(e){return e.split("-")[0]}function fl(e){return e.split("-")[1]}function vw(e){return e==="x"?"y":"x"}function yh(e){return e==="y"?"height":"width"}function po(e){return["top","bottom"].includes(ii(e))?"y":"x"}function wh(e){return vw(po(e))}function b5(e,t,n){n===void 0&&(n=!1);const r=fl(e),i=wh(e),o=yh(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=au(a)),[a,au(a)]}function E5(e){const t=au(e);return[kd(e),t,kd(t)]}function kd(e){return e.replace(/start|end/g,t=>_5[t])}function C5(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function k5(e,t,n,r){const i=fl(e);let o=C5(ii(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(kd)))),o}function au(e){return e.replace(/left|right|bottom|top/g,t=>S5[t])}function O5(e){return{top:0,right:0,bottom:0,left:0,...e}}function gw(e){return typeof e!="number"?O5(e):{top:e,right:e,bottom:e,left:e}}function lu(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function $0(e,t,n){let{reference:r,floating:i}=e;const o=po(t),a=wh(t),s=yh(a),l=ii(t),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[s]/2-i[s]/2;let m;switch(l){case"top":m={x:c,y:r.y-i.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-i.width,y:f};break;default:m={x:r.x,y:r.y}}switch(fl(t)){case"start":m[a]-=d*(n&&u?-1:1);break;case"end":m[a]+=d*(n&&u?-1:1);break}return m}const P5=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=$0(u,r,l),d=r,m={},v=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=cl(e,t)||{};if(u==null)return{};const f=gw(c),d={x:n,y:r},m=wh(i),v=yh(m),y=await a.getDimensions(u),w=m==="y",p=w?"top":"left",h=w?"bottom":"right",g=w?"clientHeight":"clientWidth",S=o.reference[v]+o.reference[m]-d[m]-o.floating[v],b=d[m]-o.reference[m],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let E=k?k[g]:0;(!E||!await(a.isElement==null?void 0:a.isElement(k)))&&(E=s.floating[g]||o.floating[v]);const _=S/2-b/2,N=E/2-y[v]/2-1,L=fo(f[p],N),U=fo(f[h],N),G=L,ne=E-y[v]-U,C=E/2-y[v]/2+_,A=Cd(G,C,ne),P=!l.arrow&&fl(i)!=null&&C!==A&&o.reference[v]/2-(CC<=0)){var U,G;const C=(((U=o.flip)==null?void 0:U.index)||0)+1,A=E[C];if(A)return{data:{index:C,overflows:L},reset:{placement:A}};let P=(G=L.filter(R=>R.overflows[0]<=0).sort((R,O)=>R.overflows[1]-O.overflows[1])[0])==null?void 0:G.placement;if(!P)switch(m){case"bestFit":{var ne;const R=(ne=L.filter(O=>{if(k){const M=po(O.placement);return M===h||M==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(M=>M>0).reduce((M,T)=>M+T,0)]).sort((O,M)=>O[1]-M[1])[0])==null?void 0:ne[0];R&&(P=R);break}case"initialPlacement":P=s;break}if(i!==P)return{reset:{placement:P}}}return{}}}};async function M5(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=ii(n),s=fl(n),l=po(n)==="y",u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,f=cl(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof v=="number"&&(m=s==="end"?v*-1:v),l?{x:m*c,y:d*u}:{x:d*u,y:m*c}}const N5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await M5(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},L5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:w=>{let{x:p,y:h}=w;return{x:p,y:h}}},...l}=cl(e,t),u={x:n,y:r},c=await yw(t,l),f=po(ii(i)),d=vw(f);let m=u[d],v=u[f];if(o){const w=d==="y"?"top":"left",p=d==="y"?"bottom":"right",h=m+c[w],g=m-c[p];m=Cd(h,m,g)}if(a){const w=f==="y"?"top":"left",p=f==="y"?"bottom":"right",h=v+c[w],g=v-c[p];v=Cd(h,v,g)}const y=s.fn({...t,[d]:m,[f]:v});return{...y,data:{x:y.x-n,y:y.y-r}}}}};function bo(e){return ww(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Un(e){var t;return(t=(ww(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ww(e){return e instanceof Node||e instanceof bt(e).Node}function Zt(e){return e instanceof Element||e instanceof bt(e).Element}function gn(e){return e instanceof HTMLElement||e instanceof bt(e).HTMLElement}function D0(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function dl(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Jt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function A5(e){return["table","td","th"].includes(bo(e))}function Qu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function xh(e){const t=Sh(),n=Zt(e)?Jt(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function R5(e){let t=vr(e);for(;gn(t)&&!ho(t);){if(xh(t))return t;if(Qu(t))return null;t=vr(t)}return null}function Sh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ho(e){return["html","body","#document"].includes(bo(e))}function Jt(e){return bt(e).getComputedStyle(e)}function qu(e){return Zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function vr(e){if(bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||D0(e)&&e.host||Un(e);return D0(t)?t.host:t}function xw(e){const t=vr(e);return ho(t)?e.ownerDocument?e.ownerDocument.body:e.body:gn(t)&&dl(t)?t:xw(t)}function Qa(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=xw(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=bt(i);return o?t.concat(a,a.visualViewport||[],dl(i)?i:[],a.frameElement&&n?Qa(a.frameElement):[]):t.concat(i,Qa(i,[],n))}function Sw(e){const t=Jt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=gn(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=ou(n)!==o||ou(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function _h(e){return Zt(e)?e:e.contextElement}function Zi(e){const t=_h(e);if(!gn(t))return mr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Sw(t);let a=(o?ou(n.width):n.width)/r,s=(o?ou(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const $5=mr(0);function _w(e){const t=bt(e);return!Sh()||!t.visualViewport?$5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function D5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bt(e)?!1:t}function oi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=_h(e);let a=mr(1);t&&(r?Zt(r)&&(a=Zi(r)):a=Zi(e));const s=D5(o,n,r)?_w(o):mr(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,f=i.height/a.y;if(o){const d=bt(o),m=r&&Zt(r)?bt(r):r;let v=d,y=v.frameElement;for(;y&&r&&m!==v;){const w=Zi(y),p=y.getBoundingClientRect(),h=Jt(y),g=p.left+(y.clientLeft+parseFloat(h.paddingLeft))*w.x,S=p.top+(y.clientTop+parseFloat(h.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,f*=w.y,l+=g,u+=S,v=bt(y),y=v.frameElement}}return lu({width:c,height:f,x:l,y:u})}function F5(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Un(r),s=t?Qu(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=mr(1);const c=mr(0),f=gn(r);if((f||!f&&!o)&&((bo(r)!=="body"||dl(a))&&(l=qu(r)),gn(r))){const d=oi(r);u=Zi(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function z5(e){return Array.from(e.getClientRects())}function bw(e){return oi(Un(e)).left+qu(e).scrollLeft}function V5(e){const t=Un(e),n=qu(e),r=e.ownerDocument.body,i=Yr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+bw(e);const s=-n.scrollTop;return Jt(r).direction==="rtl"&&(a+=Yr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function j5(e,t){const n=bt(e),r=Un(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const u=Sh();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function U5(e,t){const n=oi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=gn(e)?Zi(e):mr(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:a,height:s,x:l,y:u}}function F0(e,t,n){let r;if(t==="viewport")r=j5(e,n);else if(t==="document")r=V5(Un(e));else if(Zt(t))r=U5(t,n);else{const i=_w(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return lu(r)}function Ew(e,t){const n=vr(e);return n===t||!Zt(n)||ho(n)?!1:Jt(n).position==="fixed"||Ew(n,t)}function B5(e,t){const n=t.get(e);if(n)return n;let r=Qa(e,[],!1).filter(s=>Zt(s)&&bo(s)!=="body"),i=null;const o=Jt(e).position==="fixed";let a=o?vr(e):e;for(;Zt(a)&&!ho(a);){const s=Jt(a),l=xh(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||dl(a)&&!l&&Ew(e,a))?r=r.filter(c=>c!==a):i=s,a=vr(a)}return t.set(e,r),r}function H5(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Qu(t)?[]:B5(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,c)=>{const f=F0(t,c,i);return u.top=Yr(f.top,u.top),u.right=fo(f.right,u.right),u.bottom=fo(f.bottom,u.bottom),u.left=Yr(f.left,u.left),u},F0(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function W5(e){const{width:t,height:n}=Sw(e);return{width:t,height:n}}function Y5(e,t,n){const r=gn(t),i=Un(t),o=n==="fixed",a=oi(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=mr(0);if(r||!r&&!o)if((bo(t)!=="body"||dl(i))&&(s=qu(t)),r){const f=oi(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&(l.x=bw(i));const u=a.left+s.scrollLeft-l.x,c=a.top+s.scrollTop-l.y;return{x:u,y:c,width:a.width,height:a.height}}function jc(e){return Jt(e).position==="static"}function z0(e,t){return!gn(e)||Jt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Cw(e,t){const n=bt(e);if(Qu(e))return n;if(!gn(e)){let i=vr(e);for(;i&&!ho(i);){if(Zt(i)&&!jc(i))return i;i=vr(i)}return n}let r=z0(e,t);for(;r&&A5(r)&&jc(r);)r=z0(r,t);return r&&ho(r)&&jc(r)&&!xh(r)?n:r||R5(e)||n}const X5=async function(e){const t=this.getOffsetParent||Cw,n=this.getDimensions,r=await n(e.floating);return{reference:Y5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function G5(e){return Jt(e).direction==="rtl"}const K5={convertOffsetParentRelativeRectToViewportRelativeRect:F5,getDocumentElement:Un,getClippingRect:H5,getOffsetParent:Cw,getElementRects:X5,getClientRects:z5,getDimensions:W5,getScale:Zi,isElement:Zt,isRTL:G5};function Q5(e,t){let n=null,r;const i=Un(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(s||t(),!f||!d)return;const m=jl(c),v=jl(i.clientWidth-(u+f)),y=jl(i.clientHeight-(c+d)),w=jl(u),h={rootMargin:-m+"px "+-v+"px "+-y+"px "+-w+"px",threshold:Yr(0,fo(1,l))||1};let g=!0;function S(b){const k=b[0].intersectionRatio;if(k!==l){if(!g)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}g=!1}try{n=new IntersectionObserver(S,{...h,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,h)}n.observe(e)}return a(!0),o}function kw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=_h(e),c=i||o?[...u?Qa(u):[],...Qa(t)]:[];c.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const f=u&&s?Q5(u,n):null;let d=-1,m=null;a&&(m=new ResizeObserver(p=>{let[h]=p;h&&h.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var g;(g=m)==null||g.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let v,y=l?oi(e):null;l&&w();function w(){const p=oi(e);y&&(p.x!==y.x||p.y!==y.y||p.width!==y.width||p.height!==y.height)&&n(),y=p,v=requestAnimationFrame(w)}return n(),()=>{var p;c.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),f==null||f(),(p=m)==null||p.disconnect(),m=null,l&&cancelAnimationFrame(v)}}const q5=N5,Z5=L5,J5=I5,eO=T5,V0=(e,t,n)=>{const r=new Map,i={platform:K5,...n},o={...i.platform,_c:r};return P5(e,t,{...i,platform:o})};var Od=x.useLayoutEffect,tO=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],su=function(){};function nO(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function rO(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function iO(e){return Zu(e)?window.innerHeight:e.clientHeight}function Pw(e){return Zu(e)?window.pageYOffset:e.scrollTop}function uu(e,t){if(Zu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function oO(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function aO(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ul(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:su,i=Pw(e),o=t-i,a=10,s=0;function l(){s+=a;var u=aO(s,i,o,n);uu(e,u),sn.bottom?uu(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i1?n-1:0),i=1;i=v)return{placement:"bottom",maxHeight:t};if(N>=v&&!a)return o&&Ul(l,L,G),{placement:"bottom",maxHeight:t};if(!a&&N>=r||a&&E>=r){o&&Ul(l,L,G);var ne=a?E-S:N-S;return{placement:"bottom",maxHeight:ne}}if(i==="auto"||a){var C=t,A=a?k:_;return A>=r&&(C=Math.min(A-S-s,t)),{placement:"top",maxHeight:C}}if(i==="bottom")return o&&uu(l,L),{placement:"bottom",maxHeight:t};break;case"top":if(k>=v)return{placement:"top",maxHeight:t};if(_>=v&&!a)return o&&Ul(l,U,G),{placement:"top",maxHeight:t};if(!a&&_>=r||a&&k>=r){var P=t;return(!a&&_>=r||a&&k>=r)&&(P=a?k-b:_-b),o&&Ul(l,U,G),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function gO(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Iw=function(t){return t==="auto"?"bottom":t},yO=function(t,n){var r,i=t.placement,o=t.theme,a=o.borderRadius,s=o.spacing,l=o.colors;return Y((r={label:"menu"},oa(r,gO(i),"100%"),oa(r,"position","absolute"),oa(r,"width","100%"),oa(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},Mw=x.createContext(null),wO=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=x.useContext(Mw)||{},c=u.setPortalPlacement,f=x.useRef(null),d=x.useState(i),m=Nn(d,2),v=m[0],y=m[1],w=x.useState(null),p=Nn(w,2),h=p[0],g=p[1],S=l.spacing.controlHeight;return Od(function(){var b=f.current;if(b){var k=a==="fixed",E=s&&!k,_=vO({maxHeight:i,menuEl:b,minHeight:r,placement:o,shouldScroll:E,isFixedPosition:k,controlHeight:S});y(_.maxHeight),g(_.placement),c==null||c(_.placement)}},[i,o,a,s,r,c,S]),n({ref:f,placerProps:Y(Y({},t),{},{placement:h||Iw(o),maxHeight:v})})},xO=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return H("div",X({},Te(t,"menu",{menu:!0}),{ref:r},i),n)},SO=xO,_O=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return Y({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},bO=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return H("div",X({},Te(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},Nw=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return Y({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},EO=Nw,CO=Nw,kO=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=jn(t,hO);return H("div",X({},Te(Y(Y({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},OO=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=jn(t,mO);return H("div",X({},Te(Y(Y({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},PO=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},TO=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=x.useRef(null),u=x.useRef(null),c=x.useState(Iw(a)),f=Nn(c,2),d=f[0],m=f[1],v=x.useMemo(function(){return{setPortalPlacement:m}},[]),y=x.useState(null),w=Nn(y,2),p=w[0],h=w[1],g=x.useCallback(function(){if(i){var E=lO(i),_=s==="fixed"?0:window.pageYOffset,N=E[d]+_;(N!==(p==null?void 0:p.offset)||E.left!==(p==null?void 0:p.rect.left)||E.width!==(p==null?void 0:p.rect.width))&&h({offset:N,rect:E})}},[i,s,d,p==null?void 0:p.offset,p==null?void 0:p.rect.left,p==null?void 0:p.rect.width]);Od(function(){g()},[g]);var S=x.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=kw(i,l.current,g,{elementResize:"ResizeObserver"in window}))},[i,g]);Od(function(){S()},[S]);var b=x.useCallback(function(E){l.current=E,S()},[S]);if(!n&&s!=="fixed"||!p)return null;var k=H("div",X({ref:b},Te(Y(Y({},t),{},{offset:p.offset,position:s,rect:p.rect}),"menuPortal",{"menu-portal":!0}),o),r);return H(Mw.Provider,{value:v},n?ly.createPortal(k,n):k)},IO=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},MO=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return H("div",X({},Te(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},NO=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return Y({alignItems:"center",display:i&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},LO=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return H("div",X({},Te(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},AO=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},RO=function(t){var n=t.children,r=t.innerProps;return H("div",X({},Te(t,"indicatorsContainer",{indicators:!0}),r),n)},H0,$O=["size"],DO=["innerProps","isRtl","size"],FO={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Lw=function(t){var n=t.size,r=jn(t,$O);return H("svg",X({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:FO},r))},bh=function(t){return H(Lw,X({size:20},t),H("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Aw=function(t){return H(Lw,X({size:20},t),H("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Rw=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return Y({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},zO=Rw,VO=function(t){var n=t.children,r=t.innerProps;return H("div",X({},Te(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||H(Aw,null))},jO=Rw,UO=function(t){var n=t.children,r=t.innerProps;return H("div",X({},Te(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||H(bh,null))},BO=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return Y({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},HO=function(t){var n=t.innerProps;return H("span",X({},n,Te(t,"indicatorSeparator",{"indicator-separator":!0})))},WO=w5(H0||(H0=x5([` + */var He=typeof Symbol=="function"&&Symbol.for,dh=He?Symbol.for("react.element"):60103,ph=He?Symbol.for("react.portal"):60106,Vu=He?Symbol.for("react.fragment"):60107,ju=He?Symbol.for("react.strict_mode"):60108,Uu=He?Symbol.for("react.profiler"):60114,Bu=He?Symbol.for("react.provider"):60109,Hu=He?Symbol.for("react.context"):60110,hh=He?Symbol.for("react.async_mode"):60111,Wu=He?Symbol.for("react.concurrent_mode"):60111,Yu=He?Symbol.for("react.forward_ref"):60112,Xu=He?Symbol.for("react.suspense"):60113,Xk=He?Symbol.for("react.suspense_list"):60120,Gu=He?Symbol.for("react.memo"):60115,Ku=He?Symbol.for("react.lazy"):60116,Gk=He?Symbol.for("react.block"):60121,Kk=He?Symbol.for("react.fundamental"):60117,Qk=He?Symbol.for("react.responder"):60118,qk=He?Symbol.for("react.scope"):60119;function It(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case dh:switch(e=e.type,e){case hh:case Wu:case Vu:case Uu:case ju:case Xu:return e;default:switch(e=e&&e.$$typeof,e){case Hu:case Yu:case Ku:case Gu:case Bu:return e;default:return t}}case ph:return t}}}function uw(e){return It(e)===Wu}fe.AsyncMode=hh;fe.ConcurrentMode=Wu;fe.ContextConsumer=Hu;fe.ContextProvider=Bu;fe.Element=dh;fe.ForwardRef=Yu;fe.Fragment=Vu;fe.Lazy=Ku;fe.Memo=Gu;fe.Portal=ph;fe.Profiler=Uu;fe.StrictMode=ju;fe.Suspense=Xu;fe.isAsyncMode=function(e){return uw(e)||It(e)===hh};fe.isConcurrentMode=uw;fe.isContextConsumer=function(e){return It(e)===Hu};fe.isContextProvider=function(e){return It(e)===Bu};fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===dh};fe.isForwardRef=function(e){return It(e)===Yu};fe.isFragment=function(e){return It(e)===Vu};fe.isLazy=function(e){return It(e)===Ku};fe.isMemo=function(e){return It(e)===Gu};fe.isPortal=function(e){return It(e)===ph};fe.isProfiler=function(e){return It(e)===Uu};fe.isStrictMode=function(e){return It(e)===ju};fe.isSuspense=function(e){return It(e)===Xu};fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Vu||e===Wu||e===Uu||e===ju||e===Xu||e===Xk||typeof e=="object"&&e!==null&&(e.$$typeof===Ku||e.$$typeof===Gu||e.$$typeof===Bu||e.$$typeof===Hu||e.$$typeof===Yu||e.$$typeof===Kk||e.$$typeof===Qk||e.$$typeof===qk||e.$$typeof===Gk)};fe.typeOf=It;sw.exports=fe;var Zk=sw.exports,cw=Zk,Jk={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},e5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fw={};fw[cw.ForwardRef]=Jk;fw[cw.Memo]=e5;var t5=!0;function mh(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var dw=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||t5===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},pw=function(t,n,r){dw(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function n5(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var r5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i5=!1,o5=/[A-Z]|^ms/g,a5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hw=function(t){return t.charCodeAt(1)===45},L0=function(t){return t!=null&&typeof t!="boolean"},Vc=zk(function(e){return hw(e)?e:e.replace(o5,"-$&").toLowerCase()}),R0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(a5,function(r,i,o){return sn={name:i,styles:o,next:sn},i})}return r5[t]!==1&&!hw(t)&&typeof n=="number"&&n!==0?n+"px":n},l5="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ka(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return sn={name:i.name,styles:i.styles,next:sn},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)sn={name:a.name,styles:a.styles,next:sn},a=a.next;var s=o.styles+";";return s}return s5(e,t,n)}case"function":{if(e!==void 0){var l=sn,u=n(e);return sn=l,Ka(e,t,u)}break}}var c=n;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function s5(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i({x:e,y:e}),S5={left:"right",right:"left",bottom:"top",top:"bottom"},_5={start:"end",end:"start"};function Cd(e,t,n){return Yr(e,fo(t,n))}function cl(e,t){return typeof e=="function"?e(t):e}function ii(e){return e.split("-")[0]}function fl(e){return e.split("-")[1]}function vw(e){return e==="x"?"y":"x"}function yh(e){return e==="y"?"height":"width"}function po(e){return["top","bottom"].includes(ii(e))?"y":"x"}function wh(e){return vw(po(e))}function b5(e,t,n){n===void 0&&(n=!1);const r=fl(e),i=wh(e),o=yh(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=au(a)),[a,au(a)]}function E5(e){const t=au(e);return[kd(e),t,kd(t)]}function kd(e){return e.replace(/start|end/g,t=>_5[t])}function C5(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function k5(e,t,n,r){const i=fl(e);let o=C5(ii(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(kd)))),o}function au(e){return e.replace(/left|right|bottom|top/g,t=>S5[t])}function O5(e){return{top:0,right:0,bottom:0,left:0,...e}}function gw(e){return typeof e!="number"?O5(e):{top:e,right:e,bottom:e,left:e}}function lu(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function $0(e,t,n){let{reference:r,floating:i}=e;const o=po(t),a=wh(t),s=yh(a),l=ii(t),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[s]/2-i[s]/2;let m;switch(l){case"top":m={x:c,y:r.y-i.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-i.width,y:f};break;default:m={x:r.x,y:r.y}}switch(fl(t)){case"start":m[a]-=d*(n&&u?-1:1);break;case"end":m[a]+=d*(n&&u?-1:1);break}return m}const P5=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=$0(u,r,l),d=r,m={},v=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=cl(e,t)||{};if(u==null)return{};const f=gw(c),d={x:n,y:r},m=wh(i),v=yh(m),y=await a.getDimensions(u),w=m==="y",p=w?"top":"left",h=w?"bottom":"right",g=w?"clientHeight":"clientWidth",S=o.reference[v]+o.reference[m]-d[m]-o.floating[v],b=d[m]-o.reference[m],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let E=k?k[g]:0;(!E||!await(a.isElement==null?void 0:a.isElement(k)))&&(E=s.floating[g]||o.floating[v]);const _=S/2-b/2,N=E/2-y[v]/2-1,L=fo(f[p],N),j=fo(f[h],N),H=L,J=E-y[v]-j,C=E/2-y[v]/2+_,R=Cd(H,C,J),P=!l.arrow&&fl(i)!=null&&C!==R&&o.reference[v]/2-(CC<=0)){var j,H;const C=(((j=o.flip)==null?void 0:j.index)||0)+1,R=E[C];if(R)return{data:{index:C,overflows:L},reset:{placement:R}};let P=(H=L.filter(A=>A.overflows[0]<=0).sort((A,O)=>A.overflows[1]-O.overflows[1])[0])==null?void 0:H.placement;if(!P)switch(m){case"bestFit":{var J;const A=(J=L.filter(O=>{if(k){const M=po(O.placement);return M===h||M==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(M=>M>0).reduce((M,T)=>M+T,0)]).sort((O,M)=>O[1]-M[1])[0])==null?void 0:J[0];A&&(P=A);break}case"initialPlacement":P=s;break}if(i!==P)return{reset:{placement:P}}}return{}}}};async function M5(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=ii(n),s=fl(n),l=po(n)==="y",u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,f=cl(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof v=="number"&&(m=s==="end"?v*-1:v),l?{x:m*c,y:d*u}:{x:d*u,y:m*c}}const N5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await M5(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},L5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:w=>{let{x:p,y:h}=w;return{x:p,y:h}}},...l}=cl(e,t),u={x:n,y:r},c=await yw(t,l),f=po(ii(i)),d=vw(f);let m=u[d],v=u[f];if(o){const w=d==="y"?"top":"left",p=d==="y"?"bottom":"right",h=m+c[w],g=m-c[p];m=Cd(h,m,g)}if(a){const w=f==="y"?"top":"left",p=f==="y"?"bottom":"right",h=v+c[w],g=v-c[p];v=Cd(h,v,g)}const y=s.fn({...t,[d]:m,[f]:v});return{...y,data:{x:y.x-n,y:y.y-r}}}}};function bo(e){return ww(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Un(e){var t;return(t=(ww(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ww(e){return e instanceof Node||e instanceof bt(e).Node}function Zt(e){return e instanceof Element||e instanceof bt(e).Element}function gn(e){return e instanceof HTMLElement||e instanceof bt(e).HTMLElement}function D0(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function dl(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Jt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function R5(e){return["table","td","th"].includes(bo(e))}function Qu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function xh(e){const t=Sh(),n=Zt(e)?Jt(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function A5(e){let t=vr(e);for(;gn(t)&&!ho(t);){if(xh(t))return t;if(Qu(t))return null;t=vr(t)}return null}function Sh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ho(e){return["html","body","#document"].includes(bo(e))}function Jt(e){return bt(e).getComputedStyle(e)}function qu(e){return Zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function vr(e){if(bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||D0(e)&&e.host||Un(e);return D0(t)?t.host:t}function xw(e){const t=vr(e);return ho(t)?e.ownerDocument?e.ownerDocument.body:e.body:gn(t)&&dl(t)?t:xw(t)}function Qa(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=xw(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=bt(i);return o?t.concat(a,a.visualViewport||[],dl(i)?i:[],a.frameElement&&n?Qa(a.frameElement):[]):t.concat(i,Qa(i,[],n))}function Sw(e){const t=Jt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=gn(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=ou(n)!==o||ou(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function _h(e){return Zt(e)?e:e.contextElement}function Zi(e){const t=_h(e);if(!gn(t))return mr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Sw(t);let a=(o?ou(n.width):n.width)/r,s=(o?ou(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const $5=mr(0);function _w(e){const t=bt(e);return!Sh()||!t.visualViewport?$5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function D5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bt(e)?!1:t}function oi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=_h(e);let a=mr(1);t&&(r?Zt(r)&&(a=Zi(r)):a=Zi(e));const s=D5(o,n,r)?_w(o):mr(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,f=i.height/a.y;if(o){const d=bt(o),m=r&&Zt(r)?bt(r):r;let v=d,y=v.frameElement;for(;y&&r&&m!==v;){const w=Zi(y),p=y.getBoundingClientRect(),h=Jt(y),g=p.left+(y.clientLeft+parseFloat(h.paddingLeft))*w.x,S=p.top+(y.clientTop+parseFloat(h.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,f*=w.y,l+=g,u+=S,v=bt(y),y=v.frameElement}}return lu({width:c,height:f,x:l,y:u})}function F5(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Un(r),s=t?Qu(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=mr(1);const c=mr(0),f=gn(r);if((f||!f&&!o)&&((bo(r)!=="body"||dl(a))&&(l=qu(r)),gn(r))){const d=oi(r);u=Zi(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function z5(e){return Array.from(e.getClientRects())}function bw(e){return oi(Un(e)).left+qu(e).scrollLeft}function V5(e){const t=Un(e),n=qu(e),r=e.ownerDocument.body,i=Yr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+bw(e);const s=-n.scrollTop;return Jt(r).direction==="rtl"&&(a+=Yr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function j5(e,t){const n=bt(e),r=Un(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const u=Sh();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function U5(e,t){const n=oi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=gn(e)?Zi(e):mr(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:a,height:s,x:l,y:u}}function F0(e,t,n){let r;if(t==="viewport")r=j5(e,n);else if(t==="document")r=V5(Un(e));else if(Zt(t))r=U5(t,n);else{const i=_w(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return lu(r)}function Ew(e,t){const n=vr(e);return n===t||!Zt(n)||ho(n)?!1:Jt(n).position==="fixed"||Ew(n,t)}function B5(e,t){const n=t.get(e);if(n)return n;let r=Qa(e,[],!1).filter(s=>Zt(s)&&bo(s)!=="body"),i=null;const o=Jt(e).position==="fixed";let a=o?vr(e):e;for(;Zt(a)&&!ho(a);){const s=Jt(a),l=xh(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||dl(a)&&!l&&Ew(e,a))?r=r.filter(c=>c!==a):i=s,a=vr(a)}return t.set(e,r),r}function H5(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Qu(t)?[]:B5(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,c)=>{const f=F0(t,c,i);return u.top=Yr(f.top,u.top),u.right=fo(f.right,u.right),u.bottom=fo(f.bottom,u.bottom),u.left=Yr(f.left,u.left),u},F0(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function W5(e){const{width:t,height:n}=Sw(e);return{width:t,height:n}}function Y5(e,t,n){const r=gn(t),i=Un(t),o=n==="fixed",a=oi(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=mr(0);if(r||!r&&!o)if((bo(t)!=="body"||dl(i))&&(s=qu(t)),r){const f=oi(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&(l.x=bw(i));const u=a.left+s.scrollLeft-l.x,c=a.top+s.scrollTop-l.y;return{x:u,y:c,width:a.width,height:a.height}}function jc(e){return Jt(e).position==="static"}function z0(e,t){return!gn(e)||Jt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Cw(e,t){const n=bt(e);if(Qu(e))return n;if(!gn(e)){let i=vr(e);for(;i&&!ho(i);){if(Zt(i)&&!jc(i))return i;i=vr(i)}return n}let r=z0(e,t);for(;r&&R5(r)&&jc(r);)r=z0(r,t);return r&&ho(r)&&jc(r)&&!xh(r)?n:r||A5(e)||n}const X5=async function(e){const t=this.getOffsetParent||Cw,n=this.getDimensions,r=await n(e.floating);return{reference:Y5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function G5(e){return Jt(e).direction==="rtl"}const K5={convertOffsetParentRelativeRectToViewportRelativeRect:F5,getDocumentElement:Un,getClippingRect:H5,getOffsetParent:Cw,getElementRects:X5,getClientRects:z5,getDimensions:W5,getScale:Zi,isElement:Zt,isRTL:G5};function Q5(e,t){let n=null,r;const i=Un(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(s||t(),!f||!d)return;const m=jl(c),v=jl(i.clientWidth-(u+f)),y=jl(i.clientHeight-(c+d)),w=jl(u),h={rootMargin:-m+"px "+-v+"px "+-y+"px "+-w+"px",threshold:Yr(0,fo(1,l))||1};let g=!0;function S(b){const k=b[0].intersectionRatio;if(k!==l){if(!g)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}g=!1}try{n=new IntersectionObserver(S,{...h,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,h)}n.observe(e)}return a(!0),o}function kw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=_h(e),c=i||o?[...u?Qa(u):[],...Qa(t)]:[];c.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const f=u&&s?Q5(u,n):null;let d=-1,m=null;a&&(m=new ResizeObserver(p=>{let[h]=p;h&&h.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var g;(g=m)==null||g.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let v,y=l?oi(e):null;l&&w();function w(){const p=oi(e);y&&(p.x!==y.x||p.y!==y.y||p.width!==y.width||p.height!==y.height)&&n(),y=p,v=requestAnimationFrame(w)}return n(),()=>{var p;c.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),f==null||f(),(p=m)==null||p.disconnect(),m=null,l&&cancelAnimationFrame(v)}}const q5=N5,Z5=L5,J5=I5,eO=T5,V0=(e,t,n)=>{const r=new Map,i={platform:K5,...n},o={...i.platform,_c:r};return P5(e,t,{...i,platform:o})};var Od=x.useLayoutEffect,tO=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],su=function(){};function nO(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function rO(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function iO(e){return Zu(e)?window.innerHeight:e.clientHeight}function Pw(e){return Zu(e)?window.pageYOffset:e.scrollTop}function uu(e,t){if(Zu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function oO(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function aO(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ul(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:su,i=Pw(e),o=t-i,a=10,s=0;function l(){s+=a;var u=aO(s,i,o,n);uu(e,u),sn.bottom?uu(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i1?n-1:0),i=1;i=v)return{placement:"bottom",maxHeight:t};if(N>=v&&!a)return o&&Ul(l,L,H),{placement:"bottom",maxHeight:t};if(!a&&N>=r||a&&E>=r){o&&Ul(l,L,H);var J=a?E-S:N-S;return{placement:"bottom",maxHeight:J}}if(i==="auto"||a){var C=t,R=a?k:_;return R>=r&&(C=Math.min(R-S-s,t)),{placement:"top",maxHeight:C}}if(i==="bottom")return o&&uu(l,L),{placement:"bottom",maxHeight:t};break;case"top":if(k>=v)return{placement:"top",maxHeight:t};if(_>=v&&!a)return o&&Ul(l,j,H),{placement:"top",maxHeight:t};if(!a&&_>=r||a&&k>=r){var P=t;return(!a&&_>=r||a&&k>=r)&&(P=a?k-b:_-b),o&&Ul(l,j,H),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function gO(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Iw=function(t){return t==="auto"?"bottom":t},yO=function(t,n){var r,i=t.placement,o=t.theme,a=o.borderRadius,s=o.spacing,l=o.colors;return X((r={label:"menu"},oa(r,gO(i),"100%"),oa(r,"position","absolute"),oa(r,"width","100%"),oa(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},Mw=x.createContext(null),wO=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=x.useContext(Mw)||{},c=u.setPortalPlacement,f=x.useRef(null),d=x.useState(i),m=Nn(d,2),v=m[0],y=m[1],w=x.useState(null),p=Nn(w,2),h=p[0],g=p[1],S=l.spacing.controlHeight;return Od(function(){var b=f.current;if(b){var k=a==="fixed",E=s&&!k,_=vO({maxHeight:i,menuEl:b,minHeight:r,placement:o,shouldScroll:E,isFixedPosition:k,controlHeight:S});y(_.maxHeight),g(_.placement),c==null||c(_.placement)}},[i,o,a,s,r,c,S]),n({ref:f,placerProps:X(X({},t),{},{placement:h||Iw(o),maxHeight:v})})},xO=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return W("div",G({},Te(t,"menu",{menu:!0}),{ref:r},i),n)},SO=xO,_O=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return X({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},bO=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return W("div",G({},Te(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},Nw=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return X({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},EO=Nw,CO=Nw,kO=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=jn(t,hO);return W("div",G({},Te(X(X({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},OO=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=jn(t,mO);return W("div",G({},Te(X(X({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},PO=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},TO=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=x.useRef(null),u=x.useRef(null),c=x.useState(Iw(a)),f=Nn(c,2),d=f[0],m=f[1],v=x.useMemo(function(){return{setPortalPlacement:m}},[]),y=x.useState(null),w=Nn(y,2),p=w[0],h=w[1],g=x.useCallback(function(){if(i){var E=lO(i),_=s==="fixed"?0:window.pageYOffset,N=E[d]+_;(N!==(p==null?void 0:p.offset)||E.left!==(p==null?void 0:p.rect.left)||E.width!==(p==null?void 0:p.rect.width))&&h({offset:N,rect:E})}},[i,s,d,p==null?void 0:p.offset,p==null?void 0:p.rect.left,p==null?void 0:p.rect.width]);Od(function(){g()},[g]);var S=x.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=kw(i,l.current,g,{elementResize:"ResizeObserver"in window}))},[i,g]);Od(function(){S()},[S]);var b=x.useCallback(function(E){l.current=E,S()},[S]);if(!n&&s!=="fixed"||!p)return null;var k=W("div",G({ref:b},Te(X(X({},t),{},{offset:p.offset,position:s,rect:p.rect}),"menuPortal",{"menu-portal":!0}),o),r);return W(Mw.Provider,{value:v},n?ly.createPortal(k,n):k)},IO=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},MO=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return W("div",G({},Te(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},NO=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return X({alignItems:"center",display:i&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},LO=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return W("div",G({},Te(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},RO=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},AO=function(t){var n=t.children,r=t.innerProps;return W("div",G({},Te(t,"indicatorsContainer",{indicators:!0}),r),n)},H0,$O=["size"],DO=["innerProps","isRtl","size"],FO={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Lw=function(t){var n=t.size,r=jn(t,$O);return W("svg",G({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:FO},r))},bh=function(t){return W(Lw,G({size:20},t),W("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Rw=function(t){return W(Lw,G({size:20},t),W("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Aw=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return X({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},zO=Aw,VO=function(t){var n=t.children,r=t.innerProps;return W("div",G({},Te(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||W(Rw,null))},jO=Aw,UO=function(t){var n=t.children,r=t.innerProps;return W("div",G({},Te(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||W(bh,null))},BO=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return X({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},HO=function(t){var n=t.innerProps;return W("span",G({},n,Te(t,"indicatorSeparator",{"indicator-separator":!0})))},WO=w5(H0||(H0=x5([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } -`]))),YO=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,s=o.spacing.baseUnit;return Y({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},Uc=function(t){var n=t.delay,r=t.offset;return H("span",{css:gh({animation:"".concat(WO," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},XO=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=jn(t,DO);return H("div",X({},Te(Y(Y({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),H(Uc,{delay:0,offset:r}),H(Uc,{delay:160,offset:!0}),H(Uc,{delay:320,offset:!r}))},GO=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,s=o.borderRadius,l=o.spacing;return Y({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},KO=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return H("div",X({ref:o},Te(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},QO=KO,qO=["data"],ZO=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},JO=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return H("div",X({},Te(t,"group",{group:!0}),l),H(a,X({},s,{selectProps:f,theme:c,getStyles:i,getClassNames:o,cx:r}),u),H("div",null,n))},eP=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return Y({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},tP=function(t){var n=Ow(t);n.data;var r=jn(n,qO);return H("div",X({},Te(t,"groupHeading",{"group-heading":!0}),r))},nP=JO,rP=["innerRef","isDisabled","isHidden","inputClassName"],iP=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,s=o.colors;return Y(Y({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},oP),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},$w={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},oP={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Y({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},$w)},aP=function(t){return Y({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},$w)},lP=function(t){var n=t.cx,r=t.value,i=Ow(t),o=i.innerRef,a=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=jn(i,rP);return H("div",X({},Te(t,"input",{"input-container":!0}),{"data-value":r||""}),H("input",X({className:n({input:!0},l),ref:o,style:aP(s),disabled:a},u)))},sP=lP,uP=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return Y({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},cP=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return Y({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},fP=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,s=t.isFocused;return Y({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Dw=function(t){var n=t.children,r=t.innerProps;return H("div",r,n)},dP=Dw,pP=Dw;function hP(e){var t=e.children,n=e.innerProps;return H("div",X({role:"button"},n),t||H(bh,{size:14}))}var mP=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,f=r.Remove;return H(u,{data:i,innerProps:Y(Y({},Te(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},H(c,{data:i,innerProps:Y({},Te(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),H(f,{data:i,innerProps:Y(Y({},Te(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},vP=mP,gP=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return Y({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},yP=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,s=t.innerProps;return H("div",X({},Te(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},s),n)},wP=yP,xP=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return Y({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},SP=function(t){var n=t.children,r=t.innerProps;return H("div",X({},Te(t,"placeholder",{placeholder:!0}),r),n)},_P=SP,bP=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return Y({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},EP=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return H("div",X({},Te(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},CP=EP,Pd={ClearIndicator:UO,Control:QO,DropdownIndicator:VO,DownChevron:Aw,CrossIcon:bh,Group:nP,GroupHeading:tP,IndicatorsContainer:RO,IndicatorSeparator:HO,Input:sP,LoadingIndicator:XO,Menu:SO,MenuList:bO,MenuPortal:TO,LoadingMessage:OO,NoOptionsMessage:kO,MultiValue:vP,MultiValueContainer:dP,MultiValueLabel:pP,MultiValueRemove:hP,Option:wP,Placeholder:_P,SelectContainer:MO,SingleValue:CP,ValueContainer:LO},kP=function(t){return Y(Y({},Pd),t.components)},W0=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function OP(e,t){return!!(e===t||W0(e)&&W0(t))}function PP(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,f=function(y,w){return y&&y.length?"".concat(y.indexOf(w)+1," of ").concat(y.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(f(s,r),".");if(n==="menu"&&c){var d=l?" disabled":"",m="".concat(u?" selected":"").concat(d);return"".concat(a).concat(m,", ").concat(f(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},LP=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,f=l.ariaLiveMessages,d=l.getOptionLabel,m=l.inputValue,v=l.isMulti,y=l.isOptionDisabled,w=l.isSearchable,p=l.menuIsOpen,h=l.options,g=l.screenReaderStatus,S=l.tabSelectsValue,b=l.isLoading,k=l["aria-label"],E=l["aria-live"],_=x.useMemo(function(){return Y(Y({},NP),f||{})},[f]),N=x.useMemo(function(){var A="";if(n&&_.onChange){var P=n.option,R=n.options,O=n.removedValue,M=n.removedValues,T=n.value,V=function(de){return Array.isArray(de)?null:de},F=O||P||V(T),Q=F?d(F):"",W=R||M||void 0,te=W?W.map(d):[],J=Y({isDisabled:F&&y(F,s),label:Q,labels:te},n);A=_.onChange(J)}return A},[n,_,y,s,d]),L=x.useMemo(function(){var A="",P=r||i,R=!!(r&&s&&s.includes(r));if(P&&_.onFocus){var O={focused:P,label:d(P),isDisabled:y(P,s),isSelected:R,options:o,context:P===r?"menu":"value",selectValue:s,isAppleDevice:c};A=_.onFocus(O)}return A},[r,i,d,y,_,o,s,c]),U=x.useMemo(function(){var A="";if(p&&h.length&&!b&&_.onFilter){var P=g({count:o.length});A=_.onFilter({inputValue:m,resultsMessage:P})}return A},[o,m,p,_,h,g,b]),G=(n==null?void 0:n.action)==="initial-input-focus",ne=x.useMemo(function(){var A="";if(_.guidance){var P=i?"value":p?"menu":"input";A=_.guidance({"aria-label":k,context:P,isDisabled:r&&y(r,s),isMulti:v,isSearchable:w,tabSelectsValue:S,isInitialFocus:G})}return A},[k,r,i,v,y,w,p,_,s,S,G]),C=H(x.Fragment,null,H("span",{id:"aria-selection"},N),H("span",{id:"aria-focused"},L),H("span",{id:"aria-results"},U),H("span",{id:"aria-guidance"},ne));return H(x.Fragment,null,H(Y0,{id:u},G&&C),H(Y0,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!G&&C))},AP=LP,Td=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],RP=new RegExp("["+Td.map(function(e){return e.letters}).join("")+"]","g"),Fw={};for(var Bc=0;Bc-1}},zP=["innerRef"];function VP(e){var t=e.innerRef,n=jn(e,zP),r=pO(n,"onExited","in","enter","exit","appear");return H("input",X({ref:t},r,{css:gh({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var jP=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function UP(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=x.useRef(!1),s=x.useRef(!1),l=x.useRef(0),u=x.useRef(null),c=x.useCallback(function(w,p){if(u.current!==null){var h=u.current,g=h.scrollTop,S=h.scrollHeight,b=h.clientHeight,k=u.current,E=p>0,_=S-b-g,N=!1;_>p&&a.current&&(r&&r(w),a.current=!1),E&&s.current&&(o&&o(w),s.current=!1),E&&p>_?(n&&!a.current&&n(w),k.scrollTop=S,N=!0,a.current=!0):!E&&-p>g&&(i&&!s.current&&i(w),k.scrollTop=0,N=!0,s.current=!0),N&&jP(w)}},[n,r,i,o]),f=x.useCallback(function(w){c(w,w.deltaY)},[c]),d=x.useCallback(function(w){l.current=w.changedTouches[0].clientY},[]),m=x.useCallback(function(w){var p=l.current-w.changedTouches[0].clientY;c(w,p)},[c]),v=x.useCallback(function(w){if(w){var p=cO?{passive:!1}:!1;w.addEventListener("wheel",f,p),w.addEventListener("touchstart",d,p),w.addEventListener("touchmove",m,p)}},[m,d,f]),y=x.useCallback(function(w){w&&(w.removeEventListener("wheel",f,!1),w.removeEventListener("touchstart",d,!1),w.removeEventListener("touchmove",m,!1))},[m,d,f]);return x.useEffect(function(){if(t){var w=u.current;return v(w),function(){y(w)}}},[t,v,y]),function(w){u.current=w}}var G0=["boxSizing","height","overflow","paddingRight","position"],K0={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Q0(e){e.preventDefault()}function q0(e){e.stopPropagation()}function Z0(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function J0(){return"ontouchstart"in window||navigator.maxTouchPoints}var ev=!!(typeof window<"u"&&window.document&&window.document.createElement),Ko=0,Si={capture:!1,passive:!1};function BP(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=x.useRef({}),o=x.useRef(null),a=x.useCallback(function(l){if(ev){var u=document.body,c=u&&u.style;if(r&&G0.forEach(function(v){var y=c&&c[v];i.current[v]=y}),r&&Ko<1){var f=parseInt(i.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,m=window.innerWidth-d+f||0;Object.keys(K0).forEach(function(v){var y=K0[v];c&&(c[v]=y)}),c&&(c.paddingRight="".concat(m,"px"))}u&&J0()&&(u.addEventListener("touchmove",Q0,Si),l&&(l.addEventListener("touchstart",Z0,Si),l.addEventListener("touchmove",q0,Si))),Ko+=1}},[r]),s=x.useCallback(function(l){if(ev){var u=document.body,c=u&&u.style;Ko=Math.max(Ko-1,0),r&&Ko<1&&G0.forEach(function(f){var d=i.current[f];c&&(c[f]=d)}),u&&J0()&&(u.removeEventListener("touchmove",Q0,Si),l&&(l.removeEventListener("touchstart",Z0,Si),l.removeEventListener("touchmove",q0,Si)))}},[r]);return x.useEffect(function(){if(t){var l=o.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){o.current=l}}var HP=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},WP={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function YP(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=UP({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),c=BP({isEnabled:n}),f=function(m){u(m),c(m)};return H(x.Fragment,null,n&&H("div",{onClick:HP,css:WP}),t(f))}var XP={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},GP=function(t){var n=t.name,r=t.onFocus;return H("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:XP,value:"",onChange:function(){}})},KP=GP;function Eh(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function QP(){return Eh(/^iPhone/i)}function Vw(){return Eh(/^Mac/i)}function qP(){return Eh(/^iPad/i)||Vw()&&navigator.maxTouchPoints>1}function ZP(){return QP()||qP()}function JP(){return Vw()||ZP()}var e8=function(t){return t.label},t8=function(t){return t.label},n8=function(t){return t.value},r8=function(t){return!!t.isDisabled},i8={clearIndicator:jO,container:IO,control:GO,dropdownIndicator:zO,group:ZO,groupHeading:eP,indicatorsContainer:AO,indicatorSeparator:BO,input:iP,loadingIndicator:YO,loadingMessage:CO,menu:yO,menuList:_O,menuPortal:PO,multiValue:uP,multiValueLabel:cP,multiValueRemove:fP,noOptionsMessage:EO,option:gP,placeholder:xP,singleValue:bP,valueContainer:NO},o8={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},a8=4,jw=4,l8=38,s8=jw*2,u8={baseUnit:jw,controlHeight:l8,menuGutter:s8},Yc={borderRadius:a8,colors:o8,spacing:u8},c8={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:B0(),captureMenuScroll:!B0(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:FP(),formatGroupLabel:e8,getOptionLabel:t8,getOptionValue:n8,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:r8,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!sO(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function tv(e,t,n,r){var i=Hw(e,t,n),o=Ww(e,t,n),a=Bw(e,t),s=cu(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function Ss(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,s){return tv(e,a,t,s)}).filter(function(a){return rv(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=tv(e,n,t,r);return rv(e,o)?o:void 0}).filter(fO)}function Uw(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,sh(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function nv(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,sh(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function f8(e,t){return Uw(Ss(e,t))}function rv(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!Xw(e)||!o)&&Yw(e,{label:a,value:s,data:i},r)}function d8(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i-1?n:t[0]}var Xc=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},Bw=function(t,n){return t.getOptionLabel(n)},cu=function(t,n){return t.getOptionValue(n)};function Hw(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Ww(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=cu(e,t);return n.some(function(i){return cu(e,i)===r})}function Yw(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Xw=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},h8=1,Gw=function(e){ck(n,e);var t=pk(n);function n(r){var i;if(sk(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=JP(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,f=c.onChange,d=c.name;u.name=d,i.ariaOnChange(l,u),f(l,u)},i.setValue=function(l,u,c){var f=i.props,d=f.closeMenuOnSelect,m=f.isMulti,v=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:v}),d&&(i.setState({inputIsHiddenAfterUpdate:!m}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,f=u.isMulti,d=u.name,m=i.state.selectValue,v=f&&i.isOptionSelected(l,m),y=i.isOptionDisabled(l,m);if(v){var w=i.getOptionValue(l);i.setValue(m.filter(function(p){return i.getOptionValue(p)!==w}),"deselect-option",l)}else if(!y)f?i.setValue([].concat(sh(m),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:d});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,f=i.getOptionValue(l),d=c.filter(function(v){return i.getOptionValue(v)!==f}),m=Hl(u,d,d[0]||null);i.onChange(m,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(Hl(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],f=u.slice(0,u.length-1),d=Hl(l,f,f[0]||null);i.onChange(d,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Xc(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return nv(Ss(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;cm||d>m}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return Xw(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,f=u.backspaceRemovesValue,d=u.escapeClearsValue,m=u.inputValue,v=u.isClearable,y=u.isDisabled,w=u.menuIsOpen,p=u.onKeyDown,h=u.tabSelectsValue,g=u.openMenuOnFocus,S=i.state,b=S.focusedOption,k=S.focusedValue,E=S.selectValue;if(!y&&!(typeof p=="function"&&(p(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||m)return;i.focusValue("previous");break;case"ArrowRight":if(!c||m)return;i.focusValue("next");break;case"Delete":case"Backspace":if(m)return;if(k)i.removeValue(k);else{if(!f)return;c?i.popValue():v&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!w||!h||!b||g&&i.isOptionSelected(b,E))return;i.selectOption(b);break;case"Enter":if(l.keyCode===229)break;if(w){if(!b||i.isComposing)return;i.selectOption(b);break}return;case"Escape":w?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:m}),i.onMenuClose()):v&&d&&i.clearValue();break;case" ":if(m)return;if(!w){i.openMenu("first");break}if(!b)return;i.selectOption(b);break;case"ArrowUp":w?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":w?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!w)return;i.focusOption("pageup");break;case"PageDown":if(!w)return;i.focusOption("pagedown");break;case"Home":if(!w)return;i.focusOption("first");break;case"End":if(!w)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++h8),i.state.selectValue=j0(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),s=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[s],i.state.focusedOptionId=Xc(o,a[s])}return i}return uk(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&U0(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,s=o.menuIsOpen,l=this.state.isFocused;(l&&!a&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(U0(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,s=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(s[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,s=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var u=a.length-1,c=-1;if(a.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(a);a||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-o,l<0&&(l=0)):i==="pagedown"?(l=u+o,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Yc):Y(Y({},Yc),this.props.theme):Yc}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,m=f.isRtl,v=f.options,y=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:s,getValue:l,hasValue:y,isMulti:d,isRtl:m,options:v,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return Hw(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return Ww(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Yw(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,f=i.menuIsOpen,d=i.required,m=this.getComponents(),v=m.Input,y=this.state,w=y.inputIsHidden,p=y.ariaSelection,h=this.commonProps,g=s||this.getElementId("input"),S=Y(Y(Y({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(p==null?void 0:p.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?x.createElement(v,X({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:o,isHidden:w,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},S)):x.createElement(VP,X({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:su,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,s=o.MultiValueContainer,l=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,f=o.Placeholder,d=this.commonProps,m=this.props,v=m.controlShouldRenderValue,y=m.isDisabled,w=m.isMulti,p=m.inputValue,h=m.placeholder,g=this.state,S=g.selectValue,b=g.focusedValue,k=g.isFocused;if(!this.hasValue()||!v)return p?null:x.createElement(f,X({},d,{key:"placeholder",isDisabled:y,isFocused:k,innerProps:{id:this.getElementId("placeholder")}}),h);if(w)return S.map(function(_,N){var L=_===b,U="".concat(i.getOptionLabel(_),"-").concat(i.getOptionValue(_));return x.createElement(a,X({},d,{components:{Container:s,Label:l,Remove:u},isFocused:L,isDisabled:y,key:U,index:N,removeProps:{onClick:function(){return i.removeValue(_)},onTouchEnd:function(){return i.removeValue(_)},onMouseDown:function(ne){ne.preventDefault()}},data:_}),i.formatOptionLabel(_,"value"))});if(p)return null;var E=S[0];return x.createElement(c,X({},d,{data:E,isDisabled:y}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return x.createElement(o,X({},a,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!o||!u)return null;var f={"aria-hidden":"true"};return x.createElement(o,X({},a,{innerProps:f,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return x.createElement(a,X({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return x.createElement(o,X({},a,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,s=o.GroupHeading,l=o.Menu,u=o.MenuList,c=o.MenuPortal,f=o.LoadingMessage,d=o.NoOptionsMessage,m=o.Option,v=this.commonProps,y=this.state.focusedOption,w=this.props,p=w.captureMenuScroll,h=w.inputValue,g=w.isLoading,S=w.loadingMessage,b=w.minMenuHeight,k=w.maxMenuHeight,E=w.menuIsOpen,_=w.menuPlacement,N=w.menuPosition,L=w.menuPortalTarget,U=w.menuShouldBlockScroll,G=w.menuShouldScrollIntoView,ne=w.noOptionsMessage,C=w.onMenuScrollToTop,A=w.onMenuScrollToBottom;if(!E)return null;var P=function(Q,W){var te=Q.type,J=Q.data,q=Q.isDisabled,de=Q.isSelected,Me=Q.label,tn=Q.value,Hn=y===J,jt=q?void 0:function(){return i.onOptionHover(J)},Co=q?void 0:function(){return i.selectOption(J)},Ke="".concat(i.getElementId("option"),"-").concat(W),di={id:Ke,onClick:Co,onMouseMove:jt,onMouseOver:jt,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:de};return x.createElement(m,X({},v,{innerProps:di,data:J,isDisabled:q,isSelected:de,key:Ke,label:Me,type:te,value:tn,isFocused:Hn,innerRef:Hn?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(Q.data,"menu"))},R;if(this.hasOptions())R=this.getCategorizedOptions().map(function(F){if(F.type==="group"){var Q=F.data,W=F.options,te=F.index,J="".concat(i.getElementId("group"),"-").concat(te),q="".concat(J,"-heading");return x.createElement(a,X({},v,{key:J,data:Q,options:W,Heading:s,headingProps:{id:q,data:F.data},label:i.formatGroupLabel(F.data)}),F.options.map(function(de){return P(de,"".concat(te,"-").concat(de.index))}))}else if(F.type==="option")return P(F,"".concat(F.index))});else if(g){var O=S({inputValue:h});if(O===null)return null;R=x.createElement(f,v,O)}else{var M=ne({inputValue:h});if(M===null)return null;R=x.createElement(d,v,M)}var T={minMenuHeight:b,maxMenuHeight:k,menuPlacement:_,menuPosition:N,menuShouldScrollIntoView:G},V=x.createElement(wO,X({},v,T),function(F){var Q=F.ref,W=F.placerProps,te=W.placement,J=W.maxHeight;return x.createElement(l,X({},v,T,{innerRef:Q,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:g,placement:te}),x.createElement(YP,{captureEnabled:p,onTopArrive:C,onBottomArrive:A,lockEnabled:U},function(q){return x.createElement(u,X({},v,{innerRef:function(Me){i.getMenuListRef(Me),q(Me)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:i.getElementId("listbox")},isLoading:g,maxHeight:J,focusedOption:y}),R)}))});return L||N==="fixed"?x.createElement(c,X({},v,{appendTo:L,controlElement:this.controlRef,menuPlacement:_,menuPosition:N}),V):V}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,s=o.isDisabled,l=o.isMulti,u=o.name,c=o.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!s)return x.createElement(KP,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(a){var d=f.map(function(y){return i.getOptionValue(y)}).join(a);return x.createElement("input",{name:u,type:"hidden",value:d})}else{var m=f.length>0?f.map(function(y,w){return x.createElement("input",{key:"i-".concat(w),name:u,type:"hidden",value:i.getOptionValue(y)})}):x.createElement("input",{name:u,type:"hidden",value:""});return x.createElement("div",null,m)}else{var v=f[0]?this.getOptionValue(f[0]):"";return x.createElement("input",{name:u,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,s=o.focusedOption,l=o.focusedValue,u=o.isFocused,c=o.selectValue,f=this.getFocusableOptions();return x.createElement(AP,X({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,f=u.id,d=u.isDisabled,m=u.menuIsOpen,v=this.state.isFocused,y=this.commonProps=this.getCommonProps();return x.createElement(s,X({},y,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:v}),this.renderLiveRegion(),x.createElement(o,X({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:v,menuIsOpen:m}),x.createElement(l,X({},y,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),x.createElement(a,X({},y,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,f=o.prevWasFocused,d=o.instancePrefix,m=i.options,v=i.value,y=i.menuIsOpen,w=i.inputValue,p=i.isMulti,h=j0(v),g={};if(a&&(v!==a.value||m!==a.options||y!==a.menuIsOpen||w!==a.inputValue)){var S=y?f8(i,h):[],b=y?nv(Ss(i,h),"".concat(d,"-option")):[],k=s?d8(o,h):null,E=p8(o,S),_=Xc(b,E);g={selectValue:h,focusedOption:E,focusedOptionId:_,focusableOptionsWithIds:b,focusedValue:k,clearFocusValueOnUpdate:!1}}var N=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},L=u,U=c&&f;return c&&!U&&(L={value:Hl(p,h,h[0]||null),options:h,action:"initial-input-focus"},U=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(L=null),Y(Y(Y({},g),N),{},{prevProps:i,ariaSelection:L,prevWasFocused:U})}}]),n}(x.Component);Gw.defaultProps=c8;var m8=x.forwardRef(function(e,t){var n=lk(e);return x.createElement(Gw,X({ref:t},n))}),Kw=m8;const Ch="https://oncotree.mskcc.org",v8=`${Ch}/api/tumorTypes/tree`,g8=`${Ch}/api/versions`,y8=`${Ch}/swagger-ui.html`,w8="https://groups.google.com/g/oncotree-users",Id="oncotree_latest_stable",x8="oncotree_development";var je=(e=>(e.HOME="/",e.NEWS="/news",e.MAPPING="/mapping",e.ABOUT="/about",e))(je||{}),mo=(e=>(e.NAME="NAME",e.CODE="CODE",e.MAIN_TYPE="MAIN_TYPE",e))(mo||{});const Xr={NAME:{dataName:"name",displayName:"Name",searchBarPlaceHolder:"Enter cancer type"},CODE:{dataName:"code",displayName:"Code",searchBarPlaceHolder:"Enter code"},MAIN_TYPE:{dataName:"mainType",displayName:"Main Type",searchBarPlaceHolder:"Enter main type"}},Md="NAME";function Nd(e,t){let n=[e];for(;n.length>0;){const r=[];for(const i of n){t(i);for(const o of Object.values(i.children))r.push(o)}n=r}}function S8(e,t){const n=[];return t===mo.NAME?Nd(e,r=>{iv(n,{label:Qw(r),value:r.code})}):Nd(e,r=>{const i=r[Xr[t].dataName];i&&iv(n,{label:i.toString(),value:i.toString()})}),n.sort((r,i)=>r.label.toLowerCase().localeCompare(i.label.toLowerCase())),n}function Qw(e){return`${e.name} (${e.code})`}function iv(e,t){e.some(n=>n.value===t.value)||e.push(t)}function _8(e){const t={numCancerTypes:0,numTissues:0};return Nd(e,n=>{n.level>0&&t.numCancerTypes++,n.level===1&&t.numTissues++}),t}function aa(e){return Object.values(mo).includes(e)}function Wl(e){const t=window.getComputedStyle(e);return e.offsetWidth+parseFloat(t.marginLeft)+parseFloat(t.marginRight)}const b8={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},E8=b8,C8={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},k8=C8,O8={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},P8={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},T8=P8,I8={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},M8={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},N8={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},L8=N8,ov=()=>{};let kh={},qw={},Zw=null,Jw={mark:ov,measure:ov};try{typeof window<"u"&&(kh=window),typeof document<"u"&&(qw=document),typeof MutationObserver<"u"&&(Zw=MutationObserver),typeof performance<"u"&&(Jw=performance)}catch{}const{userAgent:av=""}=kh.navigator||{},gr=kh,ye=qw,lv=Zw,Yl=Jw;gr.document;const Bn=!!ye.documentElement&&!!ye.head&&typeof ye.addEventListener=="function"&&typeof ye.createElement=="function",e2=~av.indexOf("MSIE")||~av.indexOf("Trident/");var _e="classic",t2="duotone",Et="sharp",Ct="sharp-duotone",A8=[_e,t2,Et,Ct],R8={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},sv={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},$8=["kit"],D8=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,F8=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,z8={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},V8={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},j8={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},U8={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},B8={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},H8={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},n2={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},W8=["solid","regular","light","thin","duotone","brands"],r2=[1,2,3,4,5,6,7,8,9,10],Y8=r2.concat([11,12,13,14,15,16,17,18,19,20]),la={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},X8=[...Object.keys(U8),...W8,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",la.GROUP,la.SWAP_OPACITY,la.PRIMARY,la.SECONDARY].concat(r2.map(e=>"".concat(e,"x"))).concat(Y8.map(e=>"w-".concat(e))),G8={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},K8={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},Q8={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},uv={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const Fn="___FONT_AWESOME___",Ld=16,i2="fa",o2="svg-inline--fa",ai="data-fa-i2svg",Ad="data-fa-pseudo-element",q8="data-fa-pseudo-element-pending",Oh="data-prefix",Ph="data-icon",cv="fontawesome-i2svg",Z8="async",J8=["HTML","HEAD","STYLE","SCRIPT"],a2=(()=>{try{return!0}catch{return!1}})(),l2=[_e,Et,Ct];function pl(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[_e]}})}const s2={...n2};s2[_e]={...n2[_e],...sv.kit,...sv["kit-duotone"]};const Gr=pl(s2),Rd={...H8};Rd[_e]={...Rd[_e],...uv.kit,...uv["kit-duotone"]};const qa=pl(Rd),$d={...B8};$d[_e]={...$d[_e],...Q8.kit};const Kr=pl($d),Dd={...j8};Dd[_e]={...Dd[_e],...K8.kit};const e6=pl(Dd),t6=D8,u2="fa-layers-text",n6=F8,r6={...R8};pl(r6);const i6=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Gc=la,vo=new Set;Object.keys(qa[_e]).map(vo.add.bind(vo));Object.keys(qa[Et]).map(vo.add.bind(vo));Object.keys(qa[Ct]).map(vo.add.bind(vo));const o6=[...$8,...X8],wa=gr.FontAwesomeConfig||{};function a6(e){var t=ye.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function l6(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}ye&&typeof ye.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=l6(a6(n));i!=null&&(wa[r]=i)});const c2={styleDefault:"solid",familyDefault:"classic",cssPrefix:i2,replacementClass:o2,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};wa.familyPrefix&&(wa.cssPrefix=wa.familyPrefix);const go={...c2,...wa};go.autoReplaceSvg||(go.observeMutations=!1);const B={};Object.keys(c2).forEach(e=>{Object.defineProperty(B,e,{enumerable:!0,set:function(t){go[e]=t,xa.forEach(n=>n(B))},get:function(){return go[e]}})});Object.defineProperty(B,"familyPrefix",{enumerable:!0,set:function(e){go.cssPrefix=e,xa.forEach(t=>t(B))},get:function(){return go.cssPrefix}});gr.FontAwesomeConfig=B;const xa=[];function s6(e){return xa.push(e),()=>{xa.splice(xa.indexOf(e),1)}}const Xn=Ld,fn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function u6(e){if(!e||!Bn)return;const t=ye.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=ye.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return ye.head.insertBefore(t,r),e}const c6="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Za(){let e=12,t="";for(;e-- >0;)t+=c6[Math.random()*62|0];return t}function Eo(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Th(e){return e.classList?Eo(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function f2(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function f6(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(f2(e[n]),'" '),"").trim()}function Ju(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Ih(e){return e.size!==fn.size||e.x!==fn.x||e.y!==fn.y||e.rotate!==fn.rotate||e.flipX||e.flipY}function d6(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(a," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:u}}function p6(e){let{transform:t,width:n=Ld,height:r=Ld,startCentered:i=!1}=e,o="";return i&&e2?o+="translate(".concat(t.x/Xn-n/2,"em, ").concat(t.y/Xn-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/Xn,"em), calc(-50% + ").concat(t.y/Xn,"em)) "):o+="translate(".concat(t.x/Xn,"em, ").concat(t.y/Xn,"em) "),o+="scale(".concat(t.size/Xn*(t.flipX?-1:1),", ").concat(t.size/Xn*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var h6=`:root, :host { +`]))),YO=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,s=o.spacing.baseUnit;return X({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},Uc=function(t){var n=t.delay,r=t.offset;return W("span",{css:gh({animation:"".concat(WO," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},XO=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=jn(t,DO);return W("div",G({},Te(X(X({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),W(Uc,{delay:0,offset:r}),W(Uc,{delay:160,offset:!0}),W(Uc,{delay:320,offset:!r}))},GO=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,s=o.borderRadius,l=o.spacing;return X({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},KO=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return W("div",G({ref:o},Te(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},QO=KO,qO=["data"],ZO=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},JO=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return W("div",G({},Te(t,"group",{group:!0}),l),W(a,G({},s,{selectProps:f,theme:c,getStyles:i,getClassNames:o,cx:r}),u),W("div",null,n))},eP=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return X({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},tP=function(t){var n=Ow(t);n.data;var r=jn(n,qO);return W("div",G({},Te(t,"groupHeading",{"group-heading":!0}),r))},nP=JO,rP=["innerRef","isDisabled","isHidden","inputClassName"],iP=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,s=o.colors;return X(X({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},oP),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},$w={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},oP={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":X({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},$w)},aP=function(t){return X({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},$w)},lP=function(t){var n=t.cx,r=t.value,i=Ow(t),o=i.innerRef,a=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=jn(i,rP);return W("div",G({},Te(t,"input",{"input-container":!0}),{"data-value":r||""}),W("input",G({className:n({input:!0},l),ref:o,style:aP(s),disabled:a},u)))},sP=lP,uP=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return X({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},cP=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return X({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},fP=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,s=t.isFocused;return X({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Dw=function(t){var n=t.children,r=t.innerProps;return W("div",r,n)},dP=Dw,pP=Dw;function hP(e){var t=e.children,n=e.innerProps;return W("div",G({role:"button"},n),t||W(bh,{size:14}))}var mP=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,f=r.Remove;return W(u,{data:i,innerProps:X(X({},Te(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},W(c,{data:i,innerProps:X({},Te(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),W(f,{data:i,innerProps:X(X({},Te(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},vP=mP,gP=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return X({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},yP=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,s=t.innerProps;return W("div",G({},Te(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},s),n)},wP=yP,xP=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return X({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},SP=function(t){var n=t.children,r=t.innerProps;return W("div",G({},Te(t,"placeholder",{placeholder:!0}),r),n)},_P=SP,bP=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return X({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},EP=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return W("div",G({},Te(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},CP=EP,Pd={ClearIndicator:UO,Control:QO,DropdownIndicator:VO,DownChevron:Rw,CrossIcon:bh,Group:nP,GroupHeading:tP,IndicatorsContainer:AO,IndicatorSeparator:HO,Input:sP,LoadingIndicator:XO,Menu:SO,MenuList:bO,MenuPortal:TO,LoadingMessage:OO,NoOptionsMessage:kO,MultiValue:vP,MultiValueContainer:dP,MultiValueLabel:pP,MultiValueRemove:hP,Option:wP,Placeholder:_P,SelectContainer:MO,SingleValue:CP,ValueContainer:LO},kP=function(t){return X(X({},Pd),t.components)},W0=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function OP(e,t){return!!(e===t||W0(e)&&W0(t))}function PP(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,f=function(y,w){return y&&y.length?"".concat(y.indexOf(w)+1," of ").concat(y.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(f(s,r),".");if(n==="menu"&&c){var d=l?" disabled":"",m="".concat(u?" selected":"").concat(d);return"".concat(a).concat(m,", ").concat(f(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},LP=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,f=l.ariaLiveMessages,d=l.getOptionLabel,m=l.inputValue,v=l.isMulti,y=l.isOptionDisabled,w=l.isSearchable,p=l.menuIsOpen,h=l.options,g=l.screenReaderStatus,S=l.tabSelectsValue,b=l.isLoading,k=l["aria-label"],E=l["aria-live"],_=x.useMemo(function(){return X(X({},NP),f||{})},[f]),N=x.useMemo(function(){var R="";if(n&&_.onChange){var P=n.option,A=n.options,O=n.removedValue,M=n.removedValues,T=n.value,V=function(de){return Array.isArray(de)?null:de},F=O||P||V(T),Q=F?d(F):"",Y=A||M||void 0,ne=Y?Y.map(d):[],ee=X({isDisabled:F&&y(F,s),label:Q,labels:ne},n);R=_.onChange(ee)}return R},[n,_,y,s,d]),L=x.useMemo(function(){var R="",P=r||i,A=!!(r&&s&&s.includes(r));if(P&&_.onFocus){var O={focused:P,label:d(P),isDisabled:y(P,s),isSelected:A,options:o,context:P===r?"menu":"value",selectValue:s,isAppleDevice:c};R=_.onFocus(O)}return R},[r,i,d,y,_,o,s,c]),j=x.useMemo(function(){var R="";if(p&&h.length&&!b&&_.onFilter){var P=g({count:o.length});R=_.onFilter({inputValue:m,resultsMessage:P})}return R},[o,m,p,_,h,g,b]),H=(n==null?void 0:n.action)==="initial-input-focus",J=x.useMemo(function(){var R="";if(_.guidance){var P=i?"value":p?"menu":"input";R=_.guidance({"aria-label":k,context:P,isDisabled:r&&y(r,s),isMulti:v,isSearchable:w,tabSelectsValue:S,isInitialFocus:H})}return R},[k,r,i,v,y,w,p,_,s,S,H]),C=W(x.Fragment,null,W("span",{id:"aria-selection"},N),W("span",{id:"aria-focused"},L),W("span",{id:"aria-results"},j),W("span",{id:"aria-guidance"},J));return W(x.Fragment,null,W(Y0,{id:u},H&&C),W(Y0,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!H&&C))},RP=LP,Td=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],AP=new RegExp("["+Td.map(function(e){return e.letters}).join("")+"]","g"),Fw={};for(var Bc=0;Bc-1}},zP=["innerRef"];function VP(e){var t=e.innerRef,n=jn(e,zP),r=pO(n,"onExited","in","enter","exit","appear");return W("input",G({ref:t},r,{css:gh({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var jP=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function UP(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=x.useRef(!1),s=x.useRef(!1),l=x.useRef(0),u=x.useRef(null),c=x.useCallback(function(w,p){if(u.current!==null){var h=u.current,g=h.scrollTop,S=h.scrollHeight,b=h.clientHeight,k=u.current,E=p>0,_=S-b-g,N=!1;_>p&&a.current&&(r&&r(w),a.current=!1),E&&s.current&&(o&&o(w),s.current=!1),E&&p>_?(n&&!a.current&&n(w),k.scrollTop=S,N=!0,a.current=!0):!E&&-p>g&&(i&&!s.current&&i(w),k.scrollTop=0,N=!0,s.current=!0),N&&jP(w)}},[n,r,i,o]),f=x.useCallback(function(w){c(w,w.deltaY)},[c]),d=x.useCallback(function(w){l.current=w.changedTouches[0].clientY},[]),m=x.useCallback(function(w){var p=l.current-w.changedTouches[0].clientY;c(w,p)},[c]),v=x.useCallback(function(w){if(w){var p=cO?{passive:!1}:!1;w.addEventListener("wheel",f,p),w.addEventListener("touchstart",d,p),w.addEventListener("touchmove",m,p)}},[m,d,f]),y=x.useCallback(function(w){w&&(w.removeEventListener("wheel",f,!1),w.removeEventListener("touchstart",d,!1),w.removeEventListener("touchmove",m,!1))},[m,d,f]);return x.useEffect(function(){if(t){var w=u.current;return v(w),function(){y(w)}}},[t,v,y]),function(w){u.current=w}}var G0=["boxSizing","height","overflow","paddingRight","position"],K0={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Q0(e){e.preventDefault()}function q0(e){e.stopPropagation()}function Z0(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function J0(){return"ontouchstart"in window||navigator.maxTouchPoints}var ev=!!(typeof window<"u"&&window.document&&window.document.createElement),Ko=0,Si={capture:!1,passive:!1};function BP(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=x.useRef({}),o=x.useRef(null),a=x.useCallback(function(l){if(ev){var u=document.body,c=u&&u.style;if(r&&G0.forEach(function(v){var y=c&&c[v];i.current[v]=y}),r&&Ko<1){var f=parseInt(i.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,m=window.innerWidth-d+f||0;Object.keys(K0).forEach(function(v){var y=K0[v];c&&(c[v]=y)}),c&&(c.paddingRight="".concat(m,"px"))}u&&J0()&&(u.addEventListener("touchmove",Q0,Si),l&&(l.addEventListener("touchstart",Z0,Si),l.addEventListener("touchmove",q0,Si))),Ko+=1}},[r]),s=x.useCallback(function(l){if(ev){var u=document.body,c=u&&u.style;Ko=Math.max(Ko-1,0),r&&Ko<1&&G0.forEach(function(f){var d=i.current[f];c&&(c[f]=d)}),u&&J0()&&(u.removeEventListener("touchmove",Q0,Si),l&&(l.removeEventListener("touchstart",Z0,Si),l.removeEventListener("touchmove",q0,Si)))}},[r]);return x.useEffect(function(){if(t){var l=o.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){o.current=l}}var HP=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},WP={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function YP(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=UP({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),c=BP({isEnabled:n}),f=function(m){u(m),c(m)};return W(x.Fragment,null,n&&W("div",{onClick:HP,css:WP}),t(f))}var XP={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},GP=function(t){var n=t.name,r=t.onFocus;return W("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:XP,value:"",onChange:function(){}})},KP=GP;function Eh(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function QP(){return Eh(/^iPhone/i)}function Vw(){return Eh(/^Mac/i)}function qP(){return Eh(/^iPad/i)||Vw()&&navigator.maxTouchPoints>1}function ZP(){return QP()||qP()}function JP(){return Vw()||ZP()}var e8=function(t){return t.label},t8=function(t){return t.label},n8=function(t){return t.value},r8=function(t){return!!t.isDisabled},i8={clearIndicator:jO,container:IO,control:GO,dropdownIndicator:zO,group:ZO,groupHeading:eP,indicatorsContainer:RO,indicatorSeparator:BO,input:iP,loadingIndicator:YO,loadingMessage:CO,menu:yO,menuList:_O,menuPortal:PO,multiValue:uP,multiValueLabel:cP,multiValueRemove:fP,noOptionsMessage:EO,option:gP,placeholder:xP,singleValue:bP,valueContainer:NO},o8={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},a8=4,jw=4,l8=38,s8=jw*2,u8={baseUnit:jw,controlHeight:l8,menuGutter:s8},Yc={borderRadius:a8,colors:o8,spacing:u8},c8={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:B0(),captureMenuScroll:!B0(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:FP(),formatGroupLabel:e8,getOptionLabel:t8,getOptionValue:n8,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:r8,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!sO(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function tv(e,t,n,r){var i=Hw(e,t,n),o=Ww(e,t,n),a=Bw(e,t),s=cu(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function Ss(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,s){return tv(e,a,t,s)}).filter(function(a){return rv(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=tv(e,n,t,r);return rv(e,o)?o:void 0}).filter(fO)}function Uw(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,sh(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function nv(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,sh(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function f8(e,t){return Uw(Ss(e,t))}function rv(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!Xw(e)||!o)&&Yw(e,{label:a,value:s,data:i},r)}function d8(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i-1?n:t[0]}var Xc=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},Bw=function(t,n){return t.getOptionLabel(n)},cu=function(t,n){return t.getOptionValue(n)};function Hw(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Ww(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=cu(e,t);return n.some(function(i){return cu(e,i)===r})}function Yw(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Xw=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},h8=1,Gw=function(e){ck(n,e);var t=pk(n);function n(r){var i;if(sk(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=JP(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,f=c.onChange,d=c.name;u.name=d,i.ariaOnChange(l,u),f(l,u)},i.setValue=function(l,u,c){var f=i.props,d=f.closeMenuOnSelect,m=f.isMulti,v=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:v}),d&&(i.setState({inputIsHiddenAfterUpdate:!m}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,f=u.isMulti,d=u.name,m=i.state.selectValue,v=f&&i.isOptionSelected(l,m),y=i.isOptionDisabled(l,m);if(v){var w=i.getOptionValue(l);i.setValue(m.filter(function(p){return i.getOptionValue(p)!==w}),"deselect-option",l)}else if(!y)f?i.setValue([].concat(sh(m),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:d});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,f=i.getOptionValue(l),d=c.filter(function(v){return i.getOptionValue(v)!==f}),m=Hl(u,d,d[0]||null);i.onChange(m,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(Hl(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],f=u.slice(0,u.length-1),d=Hl(l,f,f[0]||null);i.onChange(d,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Xc(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return nv(Ss(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;cm||d>m}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return Xw(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,f=u.backspaceRemovesValue,d=u.escapeClearsValue,m=u.inputValue,v=u.isClearable,y=u.isDisabled,w=u.menuIsOpen,p=u.onKeyDown,h=u.tabSelectsValue,g=u.openMenuOnFocus,S=i.state,b=S.focusedOption,k=S.focusedValue,E=S.selectValue;if(!y&&!(typeof p=="function"&&(p(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||m)return;i.focusValue("previous");break;case"ArrowRight":if(!c||m)return;i.focusValue("next");break;case"Delete":case"Backspace":if(m)return;if(k)i.removeValue(k);else{if(!f)return;c?i.popValue():v&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!w||!h||!b||g&&i.isOptionSelected(b,E))return;i.selectOption(b);break;case"Enter":if(l.keyCode===229)break;if(w){if(!b||i.isComposing)return;i.selectOption(b);break}return;case"Escape":w?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:m}),i.onMenuClose()):v&&d&&i.clearValue();break;case" ":if(m)return;if(!w){i.openMenu("first");break}if(!b)return;i.selectOption(b);break;case"ArrowUp":w?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":w?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!w)return;i.focusOption("pageup");break;case"PageDown":if(!w)return;i.focusOption("pagedown");break;case"Home":if(!w)return;i.focusOption("first");break;case"End":if(!w)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++h8),i.state.selectValue=j0(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),s=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[s],i.state.focusedOptionId=Xc(o,a[s])}return i}return uk(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&U0(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,s=o.menuIsOpen,l=this.state.isFocused;(l&&!a&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(U0(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,s=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(s[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,s=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var u=a.length-1,c=-1;if(a.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(a);a||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-o,l<0&&(l=0)):i==="pagedown"?(l=u+o,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Yc):X(X({},Yc),this.props.theme):Yc}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,m=f.isRtl,v=f.options,y=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:s,getValue:l,hasValue:y,isMulti:d,isRtl:m,options:v,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return Hw(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return Ww(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Yw(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,f=i.menuIsOpen,d=i.required,m=this.getComponents(),v=m.Input,y=this.state,w=y.inputIsHidden,p=y.ariaSelection,h=this.commonProps,g=s||this.getElementId("input"),S=X(X(X({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(p==null?void 0:p.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?x.createElement(v,G({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:o,isHidden:w,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},S)):x.createElement(VP,G({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:su,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,s=o.MultiValueContainer,l=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,f=o.Placeholder,d=this.commonProps,m=this.props,v=m.controlShouldRenderValue,y=m.isDisabled,w=m.isMulti,p=m.inputValue,h=m.placeholder,g=this.state,S=g.selectValue,b=g.focusedValue,k=g.isFocused;if(!this.hasValue()||!v)return p?null:x.createElement(f,G({},d,{key:"placeholder",isDisabled:y,isFocused:k,innerProps:{id:this.getElementId("placeholder")}}),h);if(w)return S.map(function(_,N){var L=_===b,j="".concat(i.getOptionLabel(_),"-").concat(i.getOptionValue(_));return x.createElement(a,G({},d,{components:{Container:s,Label:l,Remove:u},isFocused:L,isDisabled:y,key:j,index:N,removeProps:{onClick:function(){return i.removeValue(_)},onTouchEnd:function(){return i.removeValue(_)},onMouseDown:function(J){J.preventDefault()}},data:_}),i.formatOptionLabel(_,"value"))});if(p)return null;var E=S[0];return x.createElement(c,G({},d,{data:E,isDisabled:y}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return x.createElement(o,G({},a,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!o||!u)return null;var f={"aria-hidden":"true"};return x.createElement(o,G({},a,{innerProps:f,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return x.createElement(a,G({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return x.createElement(o,G({},a,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,s=o.GroupHeading,l=o.Menu,u=o.MenuList,c=o.MenuPortal,f=o.LoadingMessage,d=o.NoOptionsMessage,m=o.Option,v=this.commonProps,y=this.state.focusedOption,w=this.props,p=w.captureMenuScroll,h=w.inputValue,g=w.isLoading,S=w.loadingMessage,b=w.minMenuHeight,k=w.maxMenuHeight,E=w.menuIsOpen,_=w.menuPlacement,N=w.menuPosition,L=w.menuPortalTarget,j=w.menuShouldBlockScroll,H=w.menuShouldScrollIntoView,J=w.noOptionsMessage,C=w.onMenuScrollToTop,R=w.onMenuScrollToBottom;if(!E)return null;var P=function(Q,Y){var ne=Q.type,ee=Q.data,q=Q.isDisabled,de=Q.isSelected,Me=Q.label,tn=Q.value,Hn=y===ee,jt=q?void 0:function(){return i.onOptionHover(ee)},Co=q?void 0:function(){return i.selectOption(ee)},Ke="".concat(i.getElementId("option"),"-").concat(Y),di={id:Ke,onClick:Co,onMouseMove:jt,onMouseOver:jt,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:de};return x.createElement(m,G({},v,{innerProps:di,data:ee,isDisabled:q,isSelected:de,key:Ke,label:Me,type:ne,value:tn,isFocused:Hn,innerRef:Hn?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(Q.data,"menu"))},A;if(this.hasOptions())A=this.getCategorizedOptions().map(function(F){if(F.type==="group"){var Q=F.data,Y=F.options,ne=F.index,ee="".concat(i.getElementId("group"),"-").concat(ne),q="".concat(ee,"-heading");return x.createElement(a,G({},v,{key:ee,data:Q,options:Y,Heading:s,headingProps:{id:q,data:F.data},label:i.formatGroupLabel(F.data)}),F.options.map(function(de){return P(de,"".concat(ne,"-").concat(de.index))}))}else if(F.type==="option")return P(F,"".concat(F.index))});else if(g){var O=S({inputValue:h});if(O===null)return null;A=x.createElement(f,v,O)}else{var M=J({inputValue:h});if(M===null)return null;A=x.createElement(d,v,M)}var T={minMenuHeight:b,maxMenuHeight:k,menuPlacement:_,menuPosition:N,menuShouldScrollIntoView:H},V=x.createElement(wO,G({},v,T),function(F){var Q=F.ref,Y=F.placerProps,ne=Y.placement,ee=Y.maxHeight;return x.createElement(l,G({},v,T,{innerRef:Q,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:g,placement:ne}),x.createElement(YP,{captureEnabled:p,onTopArrive:C,onBottomArrive:R,lockEnabled:j},function(q){return x.createElement(u,G({},v,{innerRef:function(Me){i.getMenuListRef(Me),q(Me)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:i.getElementId("listbox")},isLoading:g,maxHeight:ee,focusedOption:y}),A)}))});return L||N==="fixed"?x.createElement(c,G({},v,{appendTo:L,controlElement:this.controlRef,menuPlacement:_,menuPosition:N}),V):V}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,s=o.isDisabled,l=o.isMulti,u=o.name,c=o.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!s)return x.createElement(KP,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(a){var d=f.map(function(y){return i.getOptionValue(y)}).join(a);return x.createElement("input",{name:u,type:"hidden",value:d})}else{var m=f.length>0?f.map(function(y,w){return x.createElement("input",{key:"i-".concat(w),name:u,type:"hidden",value:i.getOptionValue(y)})}):x.createElement("input",{name:u,type:"hidden",value:""});return x.createElement("div",null,m)}else{var v=f[0]?this.getOptionValue(f[0]):"";return x.createElement("input",{name:u,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,s=o.focusedOption,l=o.focusedValue,u=o.isFocused,c=o.selectValue,f=this.getFocusableOptions();return x.createElement(RP,G({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,f=u.id,d=u.isDisabled,m=u.menuIsOpen,v=this.state.isFocused,y=this.commonProps=this.getCommonProps();return x.createElement(s,G({},y,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:v}),this.renderLiveRegion(),x.createElement(o,G({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:v,menuIsOpen:m}),x.createElement(l,G({},y,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),x.createElement(a,G({},y,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,f=o.prevWasFocused,d=o.instancePrefix,m=i.options,v=i.value,y=i.menuIsOpen,w=i.inputValue,p=i.isMulti,h=j0(v),g={};if(a&&(v!==a.value||m!==a.options||y!==a.menuIsOpen||w!==a.inputValue)){var S=y?f8(i,h):[],b=y?nv(Ss(i,h),"".concat(d,"-option")):[],k=s?d8(o,h):null,E=p8(o,S),_=Xc(b,E);g={selectValue:h,focusedOption:E,focusedOptionId:_,focusableOptionsWithIds:b,focusedValue:k,clearFocusValueOnUpdate:!1}}var N=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},L=u,j=c&&f;return c&&!j&&(L={value:Hl(p,h,h[0]||null),options:h,action:"initial-input-focus"},j=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(L=null),X(X(X({},g),N),{},{prevProps:i,ariaSelection:L,prevWasFocused:j})}}]),n}(x.Component);Gw.defaultProps=c8;var m8=x.forwardRef(function(e,t){var n=lk(e);return x.createElement(Gw,G({ref:t},n))}),Kw=m8;const Ch="https://oncotree.mskcc.org",v8=`${Ch}/api/tumorTypes/tree`,g8=`${Ch}/api/versions`,y8=`${Ch}/swagger-ui.html`,w8="https://groups.google.com/g/oncotree-users",Id="oncotree_latest_stable",x8="oncotree_development";var je=(e=>(e.HOME="/",e.NEWS="/news",e.MAPPING="/mapping",e.ABOUT="/about",e))(je||{}),mo=(e=>(e.NAME="NAME",e.CODE="CODE",e.MAIN_TYPE="MAIN_TYPE",e))(mo||{});const Xr={NAME:{dataName:"name",displayName:"Name",searchBarPlaceHolder:"Enter cancer type"},CODE:{dataName:"code",displayName:"Code",searchBarPlaceHolder:"Enter code"},MAIN_TYPE:{dataName:"mainType",displayName:"Main Type",searchBarPlaceHolder:"Enter main type"}},Md="NAME";function Nd(e,t){let n=[e];for(;n.length>0;){const r=[];for(const i of n){t(i);for(const o of Object.values(i.children))r.push(o)}n=r}}function S8(e,t){const n=[];return t===mo.NAME?Nd(e,r=>{iv(n,{label:Qw(r),value:r.code})}):Nd(e,r=>{const i=r[Xr[t].dataName];i&&iv(n,{label:i.toString(),value:i.toString()})}),n.sort((r,i)=>r.label.toLowerCase().localeCompare(i.label.toLowerCase())),n}function Qw(e){return`${e.name} (${e.code})`}function iv(e,t){e.some(n=>n.value===t.value)||e.push(t)}function _8(e){const t={numCancerTypes:0,numTissues:0};return Nd(e,n=>{n.level>0&&t.numCancerTypes++,n.level===1&&t.numTissues++}),t}function aa(e){return Object.values(mo).includes(e)}function Wl(e){const t=window.getComputedStyle(e);return e.offsetWidth+parseFloat(t.marginLeft)+parseFloat(t.marginRight)}const b8={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},E8=b8,C8={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},k8=C8,O8={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},P8={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},T8=P8,I8={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},M8={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},N8={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},L8=N8,ov=()=>{};let kh={},qw={},Zw=null,Jw={mark:ov,measure:ov};try{typeof window<"u"&&(kh=window),typeof document<"u"&&(qw=document),typeof MutationObserver<"u"&&(Zw=MutationObserver),typeof performance<"u"&&(Jw=performance)}catch{}const{userAgent:av=""}=kh.navigator||{},gr=kh,ye=qw,lv=Zw,Yl=Jw;gr.document;const Bn=!!ye.documentElement&&!!ye.head&&typeof ye.addEventListener=="function"&&typeof ye.createElement=="function",e2=~av.indexOf("MSIE")||~av.indexOf("Trident/");var _e="classic",t2="duotone",Et="sharp",Ct="sharp-duotone",R8=[_e,t2,Et,Ct],A8={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},sv={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},$8=["kit"],D8=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,F8=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,z8={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},V8={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},j8={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},U8={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},B8={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},H8={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},n2={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},W8=["solid","regular","light","thin","duotone","brands"],r2=[1,2,3,4,5,6,7,8,9,10],Y8=r2.concat([11,12,13,14,15,16,17,18,19,20]),la={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},X8=[...Object.keys(U8),...W8,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",la.GROUP,la.SWAP_OPACITY,la.PRIMARY,la.SECONDARY].concat(r2.map(e=>"".concat(e,"x"))).concat(Y8.map(e=>"w-".concat(e))),G8={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},K8={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},Q8={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},uv={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const Fn="___FONT_AWESOME___",Ld=16,i2="fa",o2="svg-inline--fa",ai="data-fa-i2svg",Rd="data-fa-pseudo-element",q8="data-fa-pseudo-element-pending",Oh="data-prefix",Ph="data-icon",cv="fontawesome-i2svg",Z8="async",J8=["HTML","HEAD","STYLE","SCRIPT"],a2=(()=>{try{return!0}catch{return!1}})(),l2=[_e,Et,Ct];function pl(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[_e]}})}const s2={...n2};s2[_e]={...n2[_e],...sv.kit,...sv["kit-duotone"]};const Gr=pl(s2),Ad={...H8};Ad[_e]={...Ad[_e],...uv.kit,...uv["kit-duotone"]};const qa=pl(Ad),$d={...B8};$d[_e]={...$d[_e],...Q8.kit};const Kr=pl($d),Dd={...j8};Dd[_e]={...Dd[_e],...K8.kit};const e6=pl(Dd),t6=D8,u2="fa-layers-text",n6=F8,r6={...A8};pl(r6);const i6=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Gc=la,vo=new Set;Object.keys(qa[_e]).map(vo.add.bind(vo));Object.keys(qa[Et]).map(vo.add.bind(vo));Object.keys(qa[Ct]).map(vo.add.bind(vo));const o6=[...$8,...X8],wa=gr.FontAwesomeConfig||{};function a6(e){var t=ye.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function l6(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}ye&&typeof ye.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=l6(a6(n));i!=null&&(wa[r]=i)});const c2={styleDefault:"solid",familyDefault:"classic",cssPrefix:i2,replacementClass:o2,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};wa.familyPrefix&&(wa.cssPrefix=wa.familyPrefix);const go={...c2,...wa};go.autoReplaceSvg||(go.observeMutations=!1);const B={};Object.keys(c2).forEach(e=>{Object.defineProperty(B,e,{enumerable:!0,set:function(t){go[e]=t,xa.forEach(n=>n(B))},get:function(){return go[e]}})});Object.defineProperty(B,"familyPrefix",{enumerable:!0,set:function(e){go.cssPrefix=e,xa.forEach(t=>t(B))},get:function(){return go.cssPrefix}});gr.FontAwesomeConfig=B;const xa=[];function s6(e){return xa.push(e),()=>{xa.splice(xa.indexOf(e),1)}}const Xn=Ld,fn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function u6(e){if(!e||!Bn)return;const t=ye.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=ye.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return ye.head.insertBefore(t,r),e}const c6="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Za(){let e=12,t="";for(;e-- >0;)t+=c6[Math.random()*62|0];return t}function Eo(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Th(e){return e.classList?Eo(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function f2(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function f6(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(f2(e[n]),'" '),"").trim()}function Ju(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Ih(e){return e.size!==fn.size||e.x!==fn.x||e.y!==fn.y||e.rotate!==fn.rotate||e.flipX||e.flipY}function d6(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(a," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:u}}function p6(e){let{transform:t,width:n=Ld,height:r=Ld,startCentered:i=!1}=e,o="";return i&&e2?o+="translate(".concat(t.x/Xn-n/2,"em, ").concat(t.y/Xn-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/Xn,"em), calc(-50% + ").concat(t.y/Xn,"em)) "):o+="translate(".concat(t.x/Xn,"em, ").concat(t.y/Xn,"em) "),o+="scale(".concat(t.size/Xn*(t.flipX?-1:1),", ").concat(t.size/Xn*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var h6=`:root, :host { --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"; --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free"; --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro"; @@ -675,16 +675,16 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { .fad.fa-inverse, .fa-duotone.fa-inverse { color: var(--fa-inverse, #fff); -}`;function d2(){const e=i2,t=o2,n=B.cssPrefix,r=B.replacementClass;let i=h6;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}let fv=!1;function Kc(){B.autoAddCss&&!fv&&(u6(d2()),fv=!0)}var m6={mixout(){return{dom:{css:d2,insertCss:Kc}}},hooks(){return{beforeDOMElementCreation(){Kc()},beforeI2svg(){Kc()}}}};const zn=gr||{};zn[Fn]||(zn[Fn]={});zn[Fn].styles||(zn[Fn].styles={});zn[Fn].hooks||(zn[Fn].hooks={});zn[Fn].shims||(zn[Fn].shims=[]);var dn=zn[Fn];const p2=[],h2=function(){ye.removeEventListener("DOMContentLoaded",h2),fu=1,p2.map(e=>e())};let fu=!1;Bn&&(fu=(ye.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ye.readyState),fu||ye.addEventListener("DOMContentLoaded",h2));function v6(e){Bn&&(fu?setTimeout(e,0):p2.push(e))}function hl(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?f2(e):"<".concat(t," ").concat(f6(n),">").concat(r.map(hl).join(""),"")}function dv(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Qc=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=n,l,u,c;for(r===void 0?(l=1,c=t[o[0]]):(l=0,c=r);l=55296&&i<=56319&&n=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function pv(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function zd(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=pv(t);typeof dn.hooks.addPack=="function"&&!r?dn.hooks.addPack(e,pv(t)):dn.styles[e]={...dn.styles[e]||{},...i},e==="fas"&&zd("fa",t)}const{styles:Fr,shims:w6}=dn,x6={[_e]:Object.values(Kr[_e]),[Et]:Object.values(Kr[Et]),[Ct]:Object.values(Kr[Ct])};let Mh=null,m2={},v2={},g2={},y2={},w2={};const S6={[_e]:Object.keys(Gr[_e]),[Et]:Object.keys(Gr[Et]),[Ct]:Object.keys(Gr[Ct])};function _6(e){return~o6.indexOf(e)}function b6(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!_6(i)?i:null}const x2=()=>{const e=r=>Qc(Fr,(i,o,a)=>(i[a]=Qc(o,r,{}),i),{});m2=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(s=>typeof s=="number").forEach(s=>{r[s.toString(16)]=o}),r)),v2=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(s=>typeof s=="string").forEach(s=>{r[s]=o}),r)),w2=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(s=>{r[s]=o}),r});const t="far"in Fr||B.autoFetchSvg,n=Qc(w6,(r,i)=>{const o=i[0];let a=i[1];const s=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:s}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:s}),r},{names:{},unicodes:{}});g2=n.names,y2=n.unicodes,Mh=ec(B.styleDefault,{family:B.familyDefault})};s6(e=>{Mh=ec(e.styleDefault,{family:B.familyDefault})});x2();function Nh(e,t){return(m2[e]||{})[t]}function E6(e,t){return(v2[e]||{})[t]}function nr(e,t){return(w2[e]||{})[t]}function S2(e){return g2[e]||{prefix:null,iconName:null}}function C6(e){const t=y2[e],n=Nh("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function yr(){return Mh}const Lh=()=>({prefix:null,iconName:null,rest:[]});function ec(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=_e}=t,r=Gr[n][e],i=qa[n][e]||qa[n][r],o=e in dn.styles?e:null;return i||o||null}const k6={[_e]:Object.keys(Kr[_e]),[Et]:Object.keys(Kr[Et]),[Ct]:Object.keys(Kr[Ct])};function tc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t,r={[_e]:"".concat(B.cssPrefix,"-").concat(_e),[Et]:"".concat(B.cssPrefix,"-").concat(Et),[Ct]:"".concat(B.cssPrefix,"-").concat(Ct)};let i=null,o=_e;const a=A8.filter(l=>l!==t2);a.forEach(l=>{(e.includes(r[l])||e.some(u=>k6[l].includes(u)))&&(o=l)});const s=e.reduce((l,u)=>{const c=b6(B.cssPrefix,u);if(Fr[u]?(u=x6[o].includes(u)?e6[o][u]:u,i=u,l.prefix=u):S6[o].indexOf(u)>-1?(i=u,l.prefix=ec(u,{family:o})):c?l.iconName=c:u!==B.replacementClass&&!a.some(f=>u===r[f])&&l.rest.push(u),!n&&l.prefix&&l.iconName){const f=i==="fa"?S2(l.iconName):{},d=nr(l.prefix,l.iconName);f.prefix&&(i=null),l.iconName=f.iconName||d||l.iconName,l.prefix=f.prefix||l.prefix,l.prefix==="far"&&!Fr.far&&Fr.fas&&!B.autoFetchSvg&&(l.prefix="fas")}return l},Lh());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&o===Et&&(Fr.fass||B.autoFetchSvg)&&(s.prefix="fass",s.iconName=nr(s.prefix,s.iconName)||s.iconName),!s.prefix&&o===Ct&&(Fr.fasds||B.autoFetchSvg)&&(s.prefix="fasds",s.iconName=nr(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||i==="fa")&&(s.prefix=yr()||"fas"),s}class O6{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r{this.definitions[o]={...this.definitions[o]||{},...i[o]},zd(o,i[o]);const a=Kr[_e][o];a&&zd(a,i[o]),x2()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:s}=r[i],l=s[2];t[o]||(t[o]={}),l.length>0&&l.forEach(u=>{typeof u=="string"&&(t[o][u]=s)}),t[o][a]=s}),t}}let hv=[],Ui={};const Ji={},P6=Object.keys(Ji);function T6(e,t){let{mixoutsTo:n}=t;return hv=e,Ui={},Object.keys(Ji).forEach(r=>{P6.indexOf(r)===-1&&delete Ji[r]}),hv.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{Ui[a]||(Ui[a]=[]),Ui[a].push(o[a])})}r.provides&&r.provides(Ji)}),n}function Vd(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i{t=a.apply(null,[t,...r])}),t}function li(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{o.apply(null,n)})}function wr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ji[e]?Ji[e].apply(null,t):void 0}function jd(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||yr();if(t)return t=nr(n,t)||t,dv(_2.definitions,n,t)||dv(dn.styles,n,t)}const _2=new O6,I6=()=>{B.autoReplaceSvg=!1,B.observeMutations=!1,li("noAuto")},M6={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Bn?(li("beforeI2svg",e),wr("pseudoElements2svg",e),wr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;B.autoReplaceSvg===!1&&(B.autoReplaceSvg=!0),B.observeMutations=!0,v6(()=>{L6({autoReplaceSvgRoot:t}),li("watch",e)})}},N6={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:nr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=ec(e[0]);return{prefix:n,iconName:nr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(B.cssPrefix,"-"))>-1||e.match(t6))){const t=tc(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||yr(),iconName:nr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=yr();return{prefix:t,iconName:nr(t,e)||e}}}},Mt={noAuto:I6,config:B,dom:M6,parse:N6,library:_2,findIconDefinition:jd,toHtml:hl},L6=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=ye}=e;(Object.keys(dn.styles).length>0||B.autoFetchSvg)&&Bn&&B.autoReplaceSvg&&Mt.dom.i2svg({node:t})};function nc(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>hl(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Bn)return;const n=ye.createElement("div");return n.innerHTML=e.html,n.children}}),e}function A6(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Ih(a)&&n.found&&!r.found){const{width:s,height:l}=n,u={x:s/l/2,y:.5};i.style=Ju({...o,"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")})}return[{tag:"svg",attributes:i,children:t}]}function R6(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(B.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...i,id:a},children:r}]}]}function Ah(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:s,maskId:l,titleId:u,extra:c,watchable:f=!1}=e,{width:d,height:m}=n.found?n:t,v=r==="fak",y=[B.replacementClass,i?"".concat(B.cssPrefix,"-").concat(i):""].filter(b=>c.classes.indexOf(b)===-1).filter(b=>b!==""||!!b).concat(c.classes).join(" ");let w={children:[],attributes:{...c.attributes,"data-prefix":r,"data-icon":i,class:y,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(m)}};const p=v&&!~c.classes.indexOf("fa-fw")?{width:"".concat(d/m*16*.0625,"em")}:{};f&&(w.attributes[ai]=""),s&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(u||Za())},children:[s]}),delete w.attributes.title);const h={...w,prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:a,styles:{...p,...c.styles}},{children:g,attributes:S}=n.found&&t.found?wr("generateAbstractMask",h)||{children:[],attributes:{}}:wr("generateAbstractIcon",h)||{children:[],attributes:{}};return h.children=g,h.attributes=S,a?R6(h):A6(h)}function mv(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,l={...a.attributes,...o?{title:o}:{},class:a.classes.join(" ")};s&&(l[ai]="");const u={...a.styles};Ih(i)&&(u.transform=p6({transform:i,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);const c=Ju(u);c.length>0&&(l.style=c);const f=[];return f.push({tag:"span",attributes:l,children:[t]}),o&&f.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),f}function $6(e){const{content:t,title:n,extra:r}=e,i={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},o=Ju(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:qc}=dn;function Ud(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(B.cssPrefix,"-").concat(Gc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(B.cssPrefix,"-").concat(Gc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(B.cssPrefix,"-").concat(Gc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const D6={found:!1,width:512,height:512};function F6(e,t){!a2&&!B.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Bd(e,t){let n=t;return t==="fa"&&B.styleDefault!==null&&(t=yr()),new Promise((r,i)=>{if(n==="fa"){const o=S2(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&qc[t]&&qc[t][e]){const o=qc[t][e];return r(Ud(o))}F6(e,t),r({...D6,icon:B.showMissingIcons&&e?wr("missingIconAbstract")||{}:{}})})}const vv=()=>{},Hd=B.measurePerformance&&Yl&&Yl.mark&&Yl.measure?Yl:{mark:vv,measure:vv},sa='FA "6.6.0"',z6=e=>(Hd.mark("".concat(sa," ").concat(e," begins")),()=>b2(e)),b2=e=>{Hd.mark("".concat(sa," ").concat(e," ends")),Hd.measure("".concat(sa," ").concat(e),"".concat(sa," ").concat(e," begins"),"".concat(sa," ").concat(e," ends"))};var Rh={begin:z6,end:b2};const _s=()=>{};function gv(e){return typeof(e.getAttribute?e.getAttribute(ai):null)=="string"}function V6(e){const t=e.getAttribute?e.getAttribute(Oh):null,n=e.getAttribute?e.getAttribute(Ph):null;return t&&n}function j6(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(B.replacementClass)}function U6(){return B.autoReplaceSvg===!0?bs.replace:bs[B.autoReplaceSvg]||bs.replace}function B6(e){return ye.createElementNS("http://www.w3.org/2000/svg",e)}function H6(e){return ye.createElement(e)}function E2(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?B6:H6}=t;if(typeof e=="string")return ye.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(E2(o,{ceFn:n}))}),r}function W6(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const bs={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(E2(n),t)}),t.getAttribute(ai)===null&&B.keepOriginalSource){let n=ye.createComment(W6(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Th(t).indexOf(B.replacementClass))return bs.replace(e);const r=new RegExp("".concat(B.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,s)=>(s===B.replacementClass||s.match(r)?a.toSvg.push(s):a.toNode.push(s),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>hl(o)).join(` -`);t.setAttribute(ai,""),t.innerHTML=i}};function yv(e){e()}function C2(e,t){const n=typeof t=="function"?t:_s;if(e.length===0)n();else{let r=yv;B.mutateApproach===Z8&&(r=gr.requestAnimationFrame||yv),r(()=>{const i=U6(),o=Rh.begin("mutate");e.map(i),o(),n()})}}let $h=!1;function k2(){$h=!0}function Wd(){$h=!1}let du=null;function wv(e){if(!lv||!B.observeMutations)return;const{treeCallback:t=_s,nodeCallback:n=_s,pseudoElementsCallback:r=_s,observeMutationsRoot:i=ye}=e;du=new lv(o=>{if($h)return;const a=yr();Eo(o).forEach(s=>{if(s.type==="childList"&&s.addedNodes.length>0&&!gv(s.addedNodes[0])&&(B.searchPseudoElements&&r(s.target),t(s.target)),s.type==="attributes"&&s.target.parentNode&&B.searchPseudoElements&&r(s.target.parentNode),s.type==="attributes"&&gv(s.target)&&~i6.indexOf(s.attributeName))if(s.attributeName==="class"&&V6(s.target)){const{prefix:l,iconName:u}=tc(Th(s.target));s.target.setAttribute(Oh,l||a),u&&s.target.setAttribute(Ph,u)}else j6(s.target)&&n(s.target)})}),Bn&&du.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Y6(){du&&du.disconnect()}function X6(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function G6(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=tc(Th(e));return i.prefix||(i.prefix=yr()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=E6(i.prefix,e.innerText)||Nh(i.prefix,Fd(e.innerText))),!i.iconName&&B.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function K6(e){const t=Eo(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return B.autoA11y&&(n?t["aria-labelledby"]="".concat(B.replacementClass,"-title-").concat(r||Za()):(t["aria-hidden"]="true",t.focusable="false")),t}function Q6(){return{iconName:null,title:null,titleId:null,prefix:null,transform:fn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function xv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=G6(e),o=K6(e),a=Vd("parseNodeAttributes",{},e);let s=t.styleParser?X6(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:fn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o},...a}}const{styles:q6}=dn;function O2(e){const t=B.autoReplaceSvg==="nest"?xv(e,{styleParser:!1}):xv(e);return~t.extra.classes.indexOf(u2)?wr("generateLayersText",e,t):wr("generateSvgReplacementMutation",e,t)}let yn=new Set;l2.map(e=>{yn.add("fa-".concat(e))});Object.keys(Gr[_e]).map(yn.add.bind(yn));Object.keys(Gr[Et]).map(yn.add.bind(yn));Object.keys(Gr[Ct]).map(yn.add.bind(yn));yn=[...yn];function Sv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Bn)return Promise.resolve();const n=ye.documentElement.classList,r=c=>n.add("".concat(cv,"-").concat(c)),i=c=>n.remove("".concat(cv,"-").concat(c)),o=B.autoFetchSvg?yn:l2.map(c=>"fa-".concat(c)).concat(Object.keys(q6));o.includes("fa")||o.push("fa");const a=[".".concat(u2,":not([").concat(ai,"])")].concat(o.map(c=>".".concat(c,":not([").concat(ai,"])"))).join(", ");if(a.length===0)return Promise.resolve();let s=[];try{s=Eo(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();const l=Rh.begin("onTree"),u=s.reduce((c,f)=>{try{const d=O2(f);d&&c.push(d)}catch(d){a2||d.name==="MissingIcon"&&console.error(d)}return c},[]);return new Promise((c,f)=>{Promise.all(u).then(d=>{C2(d,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),c()})}).catch(d=>{l(),f(d)})})}function Z6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;O2(e).then(n=>{n&&C2([n],t)})}function J6(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:jd(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:jd(i||{})),e(r,{...n,mask:i})}}const eT=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=fn,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:s=null,classes:l=[],attributes:u={},styles:c={}}=t;if(!e)return;const{prefix:f,iconName:d,icon:m}=e;return nc({type:"icon",...e},()=>(li("beforeDOMElementCreation",{iconDefinition:e,params:t}),B.autoA11y&&(a?u["aria-labelledby"]="".concat(B.replacementClass,"-title-").concat(s||Za()):(u["aria-hidden"]="true",u.focusable="false")),Ah({icons:{main:Ud(m),mask:i?Ud(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:f,iconName:d,transform:{...fn,...n},symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:u,styles:c,classes:l}})))};var tT={mixout(){return{icon:J6(eT)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Sv,e.nodeCallback=Z6,e}}},provides(e){e.i2svg=function(t){const{node:n=ye,callback:r=()=>{}}=t;return Sv(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:s,symbol:l,mask:u,maskId:c,extra:f}=n;return new Promise((d,m)=>{Promise.all([Bd(r,a),u.iconName?Bd(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(v=>{let[y,w]=v;d([t,Ah({icons:{main:y,mask:w},prefix:a,iconName:r,transform:s,symbol:l,maskId:c,title:i,titleId:o,extra:f,watchable:!0})])}).catch(m)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:a}=t;const s=Ju(a);s.length>0&&(r.style=s);let l;return Ih(o)&&(l=wr("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(l||i.icon),{children:n,attributes:r}}}},nT={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return nc({type:"layer"},()=>{li("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(B.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},rT={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return nc({type:"counter",content:e},()=>(li("beforeDOMElementCreation",{content:e,params:t}),$6({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(B.cssPrefix,"-layers-counter"),...r]}})))}}}},iT={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=fn,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return nc({type:"text",content:e},()=>(li("beforeDOMElementCreation",{content:e,params:t}),mv({content:e,transform:{...fn,...n},title:r,extra:{attributes:o,styles:a,classes:["".concat(B.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let a=null,s=null;if(e2){const l=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();a=u.width/l,s=u.height/l}return B.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,mv({content:t.innerHTML,width:a,height:s,transform:i,title:r,extra:o,watchable:!0})])}}};const oT=new RegExp('"',"ug"),_v=[1105920,1112319],bv={FontAwesome:{normal:"fas",400:"fas"},...V8,...z8,...G8},Yd=Object.keys(bv).reduce((e,t)=>(e[t.toLowerCase()]=bv[t],e),{}),aT=Object.keys(Yd).reduce((e,t)=>{const n=Yd[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function lT(e){const t=e.replace(oT,""),n=y6(t,0),r=n>=_v[0]&&n<=_v[1],i=t.length===2?t[0]===t[1]:!1;return{value:Fd(i?t[0]:t),isSecondary:r||i}}function sT(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Yd[n]||{})[i]||aT[n]}function Ev(e,t){const n="".concat(q8).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=Eo(e.children).filter(d=>d.getAttribute(Ad)===t)[0],s=gr.getComputedStyle(e,t),l=s.getPropertyValue("font-family"),u=l.match(n6),c=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!u)return e.removeChild(a),r();if(u&&f!=="none"&&f!==""){const d=s.getPropertyValue("content");let m=sT(l,c);const{value:v,isSecondary:y}=lT(d),w=u[0].startsWith("FontAwesome");let p=Nh(m,v),h=p;if(w){const g=C6(v);g.iconName&&g.prefix&&(p=g.iconName,m=g.prefix)}if(p&&!y&&(!a||a.getAttribute(Oh)!==m||a.getAttribute(Ph)!==h)){e.setAttribute(n,h),a&&e.removeChild(a);const g=Q6(),{extra:S}=g;S.attributes[Ad]=t,Bd(p,m).then(b=>{const k=Ah({...g,icons:{main:b,mask:Lh()},prefix:m,iconName:h,extra:S,watchable:!0}),E=ye.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(E,e.firstChild):e.appendChild(E),E.outerHTML=k.map(_=>hl(_)).join(` -`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function uT(e){return Promise.all([Ev(e,"::before"),Ev(e,"::after")])}function cT(e){return e.parentNode!==document.head&&!~J8.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ad)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Cv(e){if(Bn)return new Promise((t,n)=>{const r=Eo(e.querySelectorAll("*")).filter(cT).map(uT),i=Rh.begin("searchPseudoElements");k2(),Promise.all(r).then(()=>{i(),Wd(),t()}).catch(()=>{i(),Wd(),n()})})}var fT={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Cv,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=ye}=t;B.searchPseudoElements&&Cv(n)}}};let kv=!1;var dT={mixout(){return{dom:{unwatch(){k2(),kv=!0}}}},hooks(){return{bootstrap(){wv(Vd("mutationObserverCallbacks",{}))},noAuto(){Y6()},watch(e){const{observeMutationsRoot:t}=e;kv?Wd():wv(Vd("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Ov=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return n.flipX=!0,n;if(o&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(o){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var pT={mixout(){return{parse:{transform:e=>Ov(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Ov(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(r.x*32,", ").concat(r.y*32,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),c={transform:"".concat(s," ").concat(l," ").concat(u)},f={transform:"translate(".concat(o/2*-1," -256)")},d={outer:a,inner:c,path:f};return{tag:"g",attributes:{...d.outer},children:[{tag:"g",attributes:{...d.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...d.path}}]}]}}}};const Zc={x:0,y:0,width:"100%",height:"100%"};function Pv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function hT(e){return e.tag==="g"?e.children:[e]}var mT={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?tc(n.split(" ").map(i=>i.trim())):Lh();return r.prefix||(r.prefix=yr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:a,transform:s}=t;const{width:l,icon:u}=i,{width:c,icon:f}=o,d=d6({transform:s,containerWidth:c,iconWidth:l}),m={tag:"rect",attributes:{...Zc,fill:"white"}},v=u.children?{children:u.children.map(Pv)}:{},y={tag:"g",attributes:{...d.inner},children:[Pv({tag:u.tag,attributes:{...u.attributes,...d.path},...v})]},w={tag:"g",attributes:{...d.outer},children:[y]},p="mask-".concat(a||Za()),h="clip-".concat(a||Za()),g={tag:"mask",attributes:{...Zc,id:p,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[m,w]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:h},children:hT(f)},g]};return n.push(S,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(h,")"),mask:"url(#".concat(p,")"),...Zc}}),{children:n,attributes:r}}}},vT={provides(e){let t=!1;gr.matchMedia&&(t=gr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:{...r,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const o={...i,attributeName:"opacity"},a={tag:"circle",attributes:{...r,cx:"256",cy:"364",r:"28"},children:[]};return t||a.children.push({tag:"animate",attributes:{...i,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...o,values:"1;0;1;1;0;1;"}}),n.push(a),n.push({tag:"path",attributes:{...r,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...o,values:"1;0;0;0;0;1;"}}]}),t||n.push({tag:"path",attributes:{...r,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...o,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},gT={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},yT=[m6,tT,nT,rT,iT,fT,dT,pT,mT,vT,gT];T6(yT,{mixoutsTo:Mt});Mt.noAuto;Mt.config;Mt.library;Mt.dom;const Xd=Mt.parse;Mt.findIconDefinition;Mt.toHtml;const wT=Mt.icon;Mt.layer;Mt.text;Mt.counter;var P2={exports:{}},xT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ST=xT,_T=ST;function T2(){}function I2(){}I2.resetWarningCache=T2;var bT=function(){function e(r,i,o,a,s,l){if(l!==_T){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:I2,resetWarningCache:T2};return n.PropTypes=n,n};P2.exports=bT();var ET=P2.exports;const ie=ep(ET);function Tv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function un(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function kT(e,t){if(e==null)return{};var n=CT(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gd(e){return OT(e)||PT(e)||TT(e)||IT()}function OT(e){if(Array.isArray(e))return Kd(e)}function PT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function TT(e,t){if(e){if(typeof e=="string")return Kd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kd(e,t)}}function Kd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return N2(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,u){var c=t.attributes[u];switch(u){case"class":l.attrs.className=c,delete t.attributes.class;break;case"style":l.attrs.style=RT(c);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=c:l.attrs[M2(u)]=c}return l},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=kT(n,LT);return i.attrs.style=un(un({},i.attrs.style),a),e.apply(void 0,[t.tag,un(un({},i.attrs),s)].concat(Gd(r)))}var L2=!1;try{L2=!0}catch{}function $T(){if(!L2&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Iv(e){if(e&&pu(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Xd.icon)return Xd.icon(e);if(e===null)return null;if(e&&pu(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Jc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Bi({},e,t):{}}var Mv={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},xr=re.forwardRef(function(e,t){var n=un(un({},Mv),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,l=n.titleId,u=n.maskId,c=Iv(r),f=Jc("classes",[].concat(Gd(MT(n)),Gd((a||"").split(" ")))),d=Jc("transform",typeof n.transform=="string"?Xd.transform(n.transform):n.transform),m=Jc("mask",Iv(i)),v=wT(c,un(un(un(un({},f),d),m),{},{symbol:o,title:s,titleId:l,maskId:u}));if(!v)return $T("Could not find icon",c),null;var y=v.abstract,w={ref:t};return Object.keys(n).forEach(function(p){Mv.hasOwnProperty(p)||(w[p]=n[p])}),DT(y[0],w)});xr.displayName="FontAwesomeIcon";xr.propTypes={beat:ie.bool,border:ie.bool,beatFade:ie.bool,bounce:ie.bool,className:ie.string,fade:ie.bool,flash:ie.bool,mask:ie.oneOfType([ie.object,ie.array,ie.string]),maskId:ie.string,fixedWidth:ie.bool,inverse:ie.bool,flip:ie.oneOf([!0,!1,"horizontal","vertical","both"]),icon:ie.oneOfType([ie.object,ie.array,ie.string]),listItem:ie.bool,pull:ie.oneOf(["right","left"]),pulse:ie.bool,rotation:ie.oneOf([0,90,180,270]),shake:ie.bool,size:ie.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:ie.bool,spinPulse:ie.bool,spinReverse:ie.bool,symbol:ie.oneOfType([ie.bool,ie.string]),title:ie.string,titleId:ie.string,transform:ie.oneOfType([ie.string,ie.object]),swapOpacity:ie.bool};var DT=N2.bind(null,re.createElement);function Nv(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Lv(e,t,n){var r=[],i=mh(e,r,n);return r.length<2?n:i+t(r)}var FT=function(t){var n=lw(t);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var l=arguments.length,u=new Array(l),c=0;c{t==null||t.collapse(),l(""),r.delete("search"),i(r),c(void 0),d(void 0)},[t,l,r,i,c,d]);x.useEffect(()=>{aa(a)||(r.set("field",Md),i(r))},[a,r,i]);const v=x.useMemo(()=>aa(a)?S8(e,a):[],[e,a]),y=x.useMemo(()=>{let S=-1,b=-1;for(let k=0;k-1?[v[S],...v.slice(0,S),...v.slice(S+1)]:b>-1?[{label:s,value:nf},v[b],...v.slice(0,b),...v.slice(b+1)]:[{label:s,value:nf},...v]},[v,s,a]),w=x.useCallback(S=>{if(!t||!aa(a))return;const b=t.search(k=>{let E;return a===mo.NAME?E=Qw(k.data):E=k.data[Xr[a].dataName],E?E.toLowerCase().includes(S.toLowerCase()):!1});c(b),d(0),b.length>0&&t.focus(b[0])},[t,a]);x.useEffect(()=>{o&&t&&w(o)},[o,t,w]);function p(){if(!o)return null;const S=y.find(b=>b.label===o);return S||{label:o,value:nf}}const h=x.useCallback(S=>{const b=S.innerProps.onMouseDown;return S.innerProps.onMouseDown=k=>{if(!(k.target instanceof HTMLDivElement)||k.target.dataset.type===ef||k.target.dataset.type===tf)return;const E=k.target.dataset;if(!(E.type===ef||E.type===tf))return b==null?void 0:b(k)},I.jsx(Pd.Control,{...S})},[]);return I.jsx("div",{style:{width:n?"unset":400},children:I.jsx(Kw,{inputValue:s,value:p(),placeholder:aa(a)?Xr[a].searchBarPlaceHolder:Xr[Md].searchBarPlaceHolder,isClearable:!0,backspaceRemovesValue:!0,onInputChange:S=>{l(S)},onChange:S=>{S?(w(S.label),r.set("search",S.label),i(r)):m()},options:y,components:{ClearIndicator:g,Control:h},styles:{option(S,b){return b.isSelected?{...S,backgroundColor:eo.primary}:{...S,color:"black"}},control(S){return{...S,minHeight:42,minWidth:n?"unset":250}}},theme:S=>({...S,colors:{...S.colors,primary:eo.primary,neutral90:eo.white}})})});function g(S){const k=S.getStyles("input",{...S,isHidden:!1}).color??"black",E=jT(S.getStyles("clearIndicator",S)),_=u!==void 0&&f!==void 0;function N(){if(_)return u.length===0?I.jsx("span",{className:E,style:{color:Array.isArray(k)?k[0]:k},children:"0/0"}):I.jsx("span",{className:E,style:{color:Array.isArray(k)?k[0]:k},children:`${f+1}/${u.length}`})}return I.jsxs(I.Fragment,{children:[N(),_&&u.length>0&&I.jsxs("div",{style:{userSelect:"none",display:"flex"},children:[I.jsx("div",{"data-type":tf,className:E,onClick:_?()=>{let L=u.length-1;f!==0&&(L=f-1),t==null||t.focus(u[L]),d(L)}:void 0,children:I.jsx(xr,{style:{pointerEvents:"none"},icon:M8})}),I.jsx("div",{"data-type":ef,className:E,onClick:_?()=>{let L=0;f!==u.length-1&&(L=f+1),t==null||t.focus(u[L]),d(L)}:void 0,children:I.jsx(xr,{style:{pointerEvents:"none"},icon:O8})})]}),I.jsx(Pd.ClearIndicator,{...S})]})}}function A2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Qr=e=>typeof e=="string",xt=e=>typeof e=="function",Es=e=>Qr(e)||xt(e)?e:null,Qd=e=>x.isValidElement(e)||Qr(e)||xt(e)||Ja(e);function HT(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function rc(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(a){let{children:s,position:l,preventExitTransition:u,done:c,nodeRef:f,isIn:d,playToast:m}=a;const v=r?`${t}--${l}`:t,y=r?`${n}--${l}`:n,w=x.useRef(0);return x.useLayoutEffect(()=>{const p=f.current,h=v.split(" "),g=S=>{S.target===f.current&&(m(),p.removeEventListener("animationend",g),p.removeEventListener("animationcancel",g),w.current===0&&S.type!=="animationcancel"&&p.classList.remove(...h))};p.classList.add(...h),p.addEventListener("animationend",g),p.addEventListener("animationcancel",g)},[]),x.useEffect(()=>{const p=f.current,h=()=>{p.removeEventListener("animationend",h),i?HT(p,c,o):c()};d||(u?h():(w.current=1,p.className+=` ${y}`,p.addEventListener("animationend",h)))},[d]),re.createElement(re.Fragment,null,s)}}function Rv(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const it=new Map;let el=[];const qd=new Set,WT=e=>qd.forEach(t=>t(e)),R2=()=>it.size>0;function $2(e,t){var n;if(t)return!((n=it.get(t))==null||!n.isToastActive(e));let r=!1;return it.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function D2(e,t){Qd(e)&&(R2()||el.push({content:e,options:t}),it.forEach(n=>{n.buildToast(e,t)}))}function $v(e,t){it.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function YT(e){const{subscribe:t,getSnapshot:n,setProps:r}=x.useRef(function(o){const a=o.containerId||1;return{subscribe(s){const l=function(c,f,d){let m=1,v=0,y=[],w=[],p=[],h=f;const g=new Map,S=new Set,b=()=>{p=Array.from(g.values()),S.forEach(_=>_())},k=_=>{w=_==null?[]:w.filter(N=>N!==_),b()},E=_=>{const{toastId:N,onOpen:L,updateId:U,children:G}=_.props,ne=U==null;_.staleId&&g.delete(_.staleId),g.set(N,_),w=[...w,_.props.toastId].filter(C=>C!==_.staleId),b(),d(Rv(_,ne?"added":"updated")),ne&&xt(L)&&L(x.isValidElement(G)&&G.props)};return{id:c,props:h,observe:_=>(S.add(_),()=>S.delete(_)),toggle:(_,N)=>{g.forEach(L=>{N!=null&&N!==L.props.toastId||xt(L.toggle)&&L.toggle(_)})},removeToast:k,toasts:g,clearQueue:()=>{v-=y.length,y=[]},buildToast:(_,N)=>{if((F=>{let{containerId:Q,toastId:W,updateId:te}=F;const J=Q?Q!==c:c!==1,q=g.has(W)&&te==null;return J||q})(N))return;const{toastId:L,updateId:U,data:G,staleId:ne,delay:C}=N,A=()=>{k(L)},P=U==null;P&&v++;const R={...h,style:h.toastStyle,key:m++,...Object.fromEntries(Object.entries(N).filter(F=>{let[Q,W]=F;return W!=null})),toastId:L,updateId:U,data:G,closeToast:A,isIn:!1,className:Es(N.className||h.toastClassName),bodyClassName:Es(N.bodyClassName||h.bodyClassName),progressClassName:Es(N.progressClassName||h.progressClassName),autoClose:!N.isLoading&&(O=N.autoClose,M=h.autoClose,O===!1||Ja(O)&&O>0?O:M),deleteToast(){const F=g.get(L),{onClose:Q,children:W}=F.props;xt(Q)&&Q(x.isValidElement(W)&&W.props),d(Rv(F,"removed")),g.delete(L),v--,v<0&&(v=0),y.length>0?E(y.shift()):b()}};var O,M;R.closeButton=h.closeButton,N.closeButton===!1||Qd(N.closeButton)?R.closeButton=N.closeButton:N.closeButton===!0&&(R.closeButton=!Qd(h.closeButton)||h.closeButton);let T=_;x.isValidElement(_)&&!Qr(_.type)?T=x.cloneElement(_,{closeToast:A,toastProps:R,data:G}):xt(_)&&(T=_({closeToast:A,toastProps:R,data:G}));const V={content:T,props:R,staleId:ne};h.limit&&h.limit>0&&v>h.limit&&P?y.push(V):Ja(C)?setTimeout(()=>{E(V)},C):E(V)},setProps(_){h=_},setToggle:(_,N)=>{g.get(_).toggle=N},isToastActive:_=>w.some(N=>N===_),getSnapshot:()=>h.newestOnTop?p.reverse():p}}(a,o,WT);it.set(a,l);const u=l.observe(s);return el.forEach(c=>D2(c.content,c.options)),el=[],()=>{u(),it.delete(a)}},setProps(s){var l;(l=it.get(a))==null||l.setProps(s)},getSnapshot(){var s;return(s=it.get(a))==null?void 0:s.getSnapshot()}}}(e)).current;r(e);const i=x.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return i.forEach(s=>{const{position:l}=s.props;a.has(l)||a.set(l,[]),a.get(l).push(s)}),Array.from(a,s=>o(s[0],s[1]))},isToastActive:$2,count:i==null?void 0:i.length}}function XT(e){const[t,n]=x.useState(!1),[r,i]=x.useState(!1),o=x.useRef(null),a=x.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:u,onClick:c,closeOnClick:f}=e;var d,m;function v(){n(!0)}function y(){n(!1)}function w(g){const S=o.current;a.canDrag&&S&&(a.didMove=!0,t&&y(),a.delta=e.draggableDirection==="x"?g.clientX-a.start:g.clientY-a.start,a.start!==g.clientX&&(a.canCloseOnClick=!1),S.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,S.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function p(){document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",p);const g=o.current;if(a.canDrag&&a.didMove&&g){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();g.style.transition="transform 0.2s, opacity 0.2s",g.style.removeProperty("transform"),g.style.removeProperty("opacity")}}(m=it.get((d={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||m.setToggle(d.id,d.fn),x.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||y(),window.addEventListener("focus",v),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",y)}},[e.pauseOnFocusLoss]);const h={onPointerDown:function(g){if(e.draggable===!0||e.draggable===g.pointerType){a.didMove=!1,document.addEventListener("pointermove",w),document.addEventListener("pointerup",p);const S=o.current;a.canCloseOnClick=!0,a.canDrag=!0,S.style.transition="none",e.draggableDirection==="x"?(a.start=g.clientX,a.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(a.start=g.clientY,a.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(g){const{top:S,bottom:b,left:k,right:E}=o.current.getBoundingClientRect();g.nativeEvent.type!=="touchend"&&e.pauseOnHover&&g.clientX>=k&&g.clientX<=E&&g.clientY>=S&&g.clientY<=b?y():v()}};return s&&l&&(h.onMouseEnter=y,e.stacked||(h.onMouseLeave=v)),f&&(h.onClick=g=>{c&&c(g),a.canCloseOnClick&&u()}),{playToast:v,pauseToast:y,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:h}}function GT(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:s,controlledProgress:l,progress:u,rtl:c,isIn:f,theme:d}=e;const m=o||l&&u===0,v={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(v.transform=`scaleX(${u})`);const y=rr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),w=xt(a)?a({rtl:c,type:i,defaultClassName:y}):rr(y,a),p={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{f&&r()}};return re.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":m},re.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${i}`}),re.createElement("div",{role:"progressbar","aria-hidden":m?"true":"false","aria-label":"notification timer",className:w,style:v,...p}))}let KT=1;const F2=()=>""+KT++;function QT(e){return e&&(Qr(e.toastId)||Ja(e.toastId))?e.toastId:F2()}function Sa(e,t){return D2(e,t),t.toastId}function hu(e,t){return{...t,type:t&&t.type||e,toastId:QT(t)}}function Xl(e){return(t,n)=>Sa(t,hu(e,n))}function he(e,t){return Sa(e,hu("default",t))}he.loading=(e,t)=>Sa(e,hu("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),he.promise=function(e,t,n){let r,{pending:i,error:o,success:a}=t;i&&(r=Qr(i)?he.loading(i,n):he.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(c,f,d)=>{if(f==null)return void he.dismiss(r);const m={type:c,...s,...n,data:d},v=Qr(f)?{render:f}:f;return r?he.update(r,{...m,...v}):he(v.render,{...m,...v}),d},u=xt(e)?e():e;return u.then(c=>l("success",a,c)).catch(c=>l("error",o,c)),u},he.success=Xl("success"),he.info=Xl("info"),he.error=Xl("error"),he.warning=Xl("warning"),he.warn=he.warning,he.dark=(e,t)=>Sa(e,hu("default",{theme:"dark",...t})),he.dismiss=function(e){(function(t){var n;if(R2()){if(t==null||Qr(n=t)||Ja(n))it.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=it.get(t.containerId);r?r.removeToast(t.id):it.forEach(i=>{i.removeToast(t.id)})}}else el=el.filter(r=>t!=null&&r.options.toastId!==t)})(e)},he.clearWaitingQueue=function(e){e===void 0&&(e={}),it.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},he.isActive=$2,he.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=it.get(a||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:F2()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,Sa(a,o)}},he.done=e=>{he.update(e,{progress:1})},he.onChange=function(e){return qd.add(e),()=>{qd.delete(e)}},he.play=e=>$v(!0,e),he.pause=e=>$v(!1,e);const qT=typeof window<"u"?x.useLayoutEffect:x.useEffect,Gl=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return re.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},rf={info:function(e){return re.createElement(Gl,{...e},re.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return re.createElement(Gl,{...e},re.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return re.createElement(Gl,{...e},re.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return re.createElement(Gl,{...e},re.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return re.createElement("div",{className:"Toastify__spinner"})}},ZT=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=XT(e),{closeButton:a,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:f,closeToast:d,transition:m,position:v,className:y,style:w,bodyClassName:p,bodyStyle:h,progressClassName:g,progressStyle:S,updateId:b,role:k,progress:E,rtl:_,toastId:N,deleteToast:L,isIn:U,isLoading:G,closeOnClick:ne,theme:C}=e,A=rr("Toastify__toast",`Toastify__toast-theme--${C}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":ne}),P=xt(y)?y({rtl:_,position:v,type:c,defaultClassName:A}):rr(A,y),R=function(V){let{theme:F,type:Q,isLoading:W,icon:te}=V,J=null;const q={theme:F,type:Q};return te===!1||(xt(te)?J=te({...q,isLoading:W}):x.isValidElement(te)?J=x.cloneElement(te,q):W?J=rf.spinner():(de=>de in rf)(Q)&&(J=rf[Q](q))),J}(e),O=!!E||!l,M={closeToast:d,type:c,theme:C};let T=null;return a===!1||(T=xt(a)?a(M):x.isValidElement(a)?x.cloneElement(a,M):function(V){let{closeToast:F,theme:Q,ariaLabel:W="close"}=V;return re.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Q}`,type:"button",onClick:te=>{te.stopPropagation(),F(te)},"aria-label":W},re.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},re.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(M)),re.createElement(m,{isIn:U,done:L,position:v,preventExitTransition:n,nodeRef:r,playToast:o},re.createElement("div",{id:N,onClick:u,"data-in":U,className:P,...i,style:w,ref:r},re.createElement("div",{...U&&{role:k},className:xt(p)?p({type:c}):rr("Toastify__toast-body",p),style:h},R!=null&&re.createElement("div",{className:rr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!G})},R),re.createElement("div",null,s)),T,re.createElement(GT,{...b&&!O?{key:`pb-${b}`}:{},rtl:_,theme:C,delay:l,isRunning:t,isIn:U,closeToast:d,hide:f,type:c,style:S,className:g,controlledProgress:O,progress:E||0})))},ic=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},z2=rc(ic("bounce",!0));rc(ic("slide",!0));rc(ic("zoom"));rc(ic("flip"));const JT={position:"top-right",transition:z2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function eI(e){let t={...JT,...e};const n=e.stacked,[r,i]=x.useState(!0),o=x.useRef(null),{getToastToRender:a,isToastActive:s,count:l}=YT(t),{className:u,style:c,rtl:f,containerId:d}=t;function m(y){const w=rr("Toastify__toast-container",`Toastify__toast-container--${y}`,{"Toastify__toast-container--rtl":f});return xt(u)?u({position:y,rtl:f,defaultClassName:w}):rr(w,Es(u))}function v(){n&&(i(!0),he.play())}return qT(()=>{if(n){var y;const w=o.current.querySelectorAll('[data-in="true"]'),p=12,h=(y=t.position)==null?void 0:y.includes("top");let g=0,S=0;Array.from(w).reverse().forEach((b,k)=>{const E=b;E.classList.add("Toastify__toast--stacked"),k>0&&(E.dataset.collapsed=`${r}`),E.dataset.pos||(E.dataset.pos=h?"top":"bot");const _=g*(r?.2:1)+(r?0:p*k);E.style.setProperty("--y",`${h?_:-1*_}px`),E.style.setProperty("--g",`${p}`),E.style.setProperty("--s",""+(1-(r?S:0))),g+=E.offsetHeight,S+=.025})}},[r,l,n]),re.createElement("div",{ref:o,className:"Toastify",id:d,onMouseEnter:()=>{n&&(i(!1),he.pause())},onMouseLeave:v},a((y,w)=>{const p=w.length?{...c}:{...c,pointerEvents:"none"};return re.createElement("div",{className:m(y),style:p,key:`container-${y}`},w.map(h=>{let{content:g,props:S}=h;return re.createElement(ZT,{...S,stacked:n,collapseAll:v,isIn:s(S.toastId,S.containerId),style:S.style,key:`toast-${S.key}`},g)}))}))}var V2={exports:{}};/*! +}`;function d2(){const e=i2,t=o2,n=B.cssPrefix,r=B.replacementClass;let i=h6;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}let fv=!1;function Kc(){B.autoAddCss&&!fv&&(u6(d2()),fv=!0)}var m6={mixout(){return{dom:{css:d2,insertCss:Kc}}},hooks(){return{beforeDOMElementCreation(){Kc()},beforeI2svg(){Kc()}}}};const zn=gr||{};zn[Fn]||(zn[Fn]={});zn[Fn].styles||(zn[Fn].styles={});zn[Fn].hooks||(zn[Fn].hooks={});zn[Fn].shims||(zn[Fn].shims=[]);var dn=zn[Fn];const p2=[],h2=function(){ye.removeEventListener("DOMContentLoaded",h2),fu=1,p2.map(e=>e())};let fu=!1;Bn&&(fu=(ye.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ye.readyState),fu||ye.addEventListener("DOMContentLoaded",h2));function v6(e){Bn&&(fu?setTimeout(e,0):p2.push(e))}function hl(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?f2(e):"<".concat(t," ").concat(f6(n),">").concat(r.map(hl).join(""),"")}function dv(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Qc=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=n,l,u,c;for(r===void 0?(l=1,c=t[o[0]]):(l=0,c=r);l=55296&&i<=56319&&n=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function pv(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function zd(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=pv(t);typeof dn.hooks.addPack=="function"&&!r?dn.hooks.addPack(e,pv(t)):dn.styles[e]={...dn.styles[e]||{},...i},e==="fas"&&zd("fa",t)}const{styles:Fr,shims:w6}=dn,x6={[_e]:Object.values(Kr[_e]),[Et]:Object.values(Kr[Et]),[Ct]:Object.values(Kr[Ct])};let Mh=null,m2={},v2={},g2={},y2={},w2={};const S6={[_e]:Object.keys(Gr[_e]),[Et]:Object.keys(Gr[Et]),[Ct]:Object.keys(Gr[Ct])};function _6(e){return~o6.indexOf(e)}function b6(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!_6(i)?i:null}const x2=()=>{const e=r=>Qc(Fr,(i,o,a)=>(i[a]=Qc(o,r,{}),i),{});m2=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(s=>typeof s=="number").forEach(s=>{r[s.toString(16)]=o}),r)),v2=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(s=>typeof s=="string").forEach(s=>{r[s]=o}),r)),w2=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(s=>{r[s]=o}),r});const t="far"in Fr||B.autoFetchSvg,n=Qc(w6,(r,i)=>{const o=i[0];let a=i[1];const s=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:s}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:s}),r},{names:{},unicodes:{}});g2=n.names,y2=n.unicodes,Mh=ec(B.styleDefault,{family:B.familyDefault})};s6(e=>{Mh=ec(e.styleDefault,{family:B.familyDefault})});x2();function Nh(e,t){return(m2[e]||{})[t]}function E6(e,t){return(v2[e]||{})[t]}function nr(e,t){return(w2[e]||{})[t]}function S2(e){return g2[e]||{prefix:null,iconName:null}}function C6(e){const t=y2[e],n=Nh("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function yr(){return Mh}const Lh=()=>({prefix:null,iconName:null,rest:[]});function ec(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=_e}=t,r=Gr[n][e],i=qa[n][e]||qa[n][r],o=e in dn.styles?e:null;return i||o||null}const k6={[_e]:Object.keys(Kr[_e]),[Et]:Object.keys(Kr[Et]),[Ct]:Object.keys(Kr[Ct])};function tc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t,r={[_e]:"".concat(B.cssPrefix,"-").concat(_e),[Et]:"".concat(B.cssPrefix,"-").concat(Et),[Ct]:"".concat(B.cssPrefix,"-").concat(Ct)};let i=null,o=_e;const a=R8.filter(l=>l!==t2);a.forEach(l=>{(e.includes(r[l])||e.some(u=>k6[l].includes(u)))&&(o=l)});const s=e.reduce((l,u)=>{const c=b6(B.cssPrefix,u);if(Fr[u]?(u=x6[o].includes(u)?e6[o][u]:u,i=u,l.prefix=u):S6[o].indexOf(u)>-1?(i=u,l.prefix=ec(u,{family:o})):c?l.iconName=c:u!==B.replacementClass&&!a.some(f=>u===r[f])&&l.rest.push(u),!n&&l.prefix&&l.iconName){const f=i==="fa"?S2(l.iconName):{},d=nr(l.prefix,l.iconName);f.prefix&&(i=null),l.iconName=f.iconName||d||l.iconName,l.prefix=f.prefix||l.prefix,l.prefix==="far"&&!Fr.far&&Fr.fas&&!B.autoFetchSvg&&(l.prefix="fas")}return l},Lh());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&o===Et&&(Fr.fass||B.autoFetchSvg)&&(s.prefix="fass",s.iconName=nr(s.prefix,s.iconName)||s.iconName),!s.prefix&&o===Ct&&(Fr.fasds||B.autoFetchSvg)&&(s.prefix="fasds",s.iconName=nr(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||i==="fa")&&(s.prefix=yr()||"fas"),s}class O6{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r{this.definitions[o]={...this.definitions[o]||{},...i[o]},zd(o,i[o]);const a=Kr[_e][o];a&&zd(a,i[o]),x2()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:s}=r[i],l=s[2];t[o]||(t[o]={}),l.length>0&&l.forEach(u=>{typeof u=="string"&&(t[o][u]=s)}),t[o][a]=s}),t}}let hv=[],Ui={};const Ji={},P6=Object.keys(Ji);function T6(e,t){let{mixoutsTo:n}=t;return hv=e,Ui={},Object.keys(Ji).forEach(r=>{P6.indexOf(r)===-1&&delete Ji[r]}),hv.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{Ui[a]||(Ui[a]=[]),Ui[a].push(o[a])})}r.provides&&r.provides(Ji)}),n}function Vd(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i{t=a.apply(null,[t,...r])}),t}function li(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{o.apply(null,n)})}function wr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ji[e]?Ji[e].apply(null,t):void 0}function jd(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||yr();if(t)return t=nr(n,t)||t,dv(_2.definitions,n,t)||dv(dn.styles,n,t)}const _2=new O6,I6=()=>{B.autoReplaceSvg=!1,B.observeMutations=!1,li("noAuto")},M6={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Bn?(li("beforeI2svg",e),wr("pseudoElements2svg",e),wr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;B.autoReplaceSvg===!1&&(B.autoReplaceSvg=!0),B.observeMutations=!0,v6(()=>{L6({autoReplaceSvgRoot:t}),li("watch",e)})}},N6={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:nr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=ec(e[0]);return{prefix:n,iconName:nr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(B.cssPrefix,"-"))>-1||e.match(t6))){const t=tc(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||yr(),iconName:nr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=yr();return{prefix:t,iconName:nr(t,e)||e}}}},Mt={noAuto:I6,config:B,dom:M6,parse:N6,library:_2,findIconDefinition:jd,toHtml:hl},L6=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=ye}=e;(Object.keys(dn.styles).length>0||B.autoFetchSvg)&&Bn&&B.autoReplaceSvg&&Mt.dom.i2svg({node:t})};function nc(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>hl(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Bn)return;const n=ye.createElement("div");return n.innerHTML=e.html,n.children}}),e}function R6(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Ih(a)&&n.found&&!r.found){const{width:s,height:l}=n,u={x:s/l/2,y:.5};i.style=Ju({...o,"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")})}return[{tag:"svg",attributes:i,children:t}]}function A6(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(B.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...i,id:a},children:r}]}]}function Rh(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:s,maskId:l,titleId:u,extra:c,watchable:f=!1}=e,{width:d,height:m}=n.found?n:t,v=r==="fak",y=[B.replacementClass,i?"".concat(B.cssPrefix,"-").concat(i):""].filter(b=>c.classes.indexOf(b)===-1).filter(b=>b!==""||!!b).concat(c.classes).join(" ");let w={children:[],attributes:{...c.attributes,"data-prefix":r,"data-icon":i,class:y,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(m)}};const p=v&&!~c.classes.indexOf("fa-fw")?{width:"".concat(d/m*16*.0625,"em")}:{};f&&(w.attributes[ai]=""),s&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(u||Za())},children:[s]}),delete w.attributes.title);const h={...w,prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:a,styles:{...p,...c.styles}},{children:g,attributes:S}=n.found&&t.found?wr("generateAbstractMask",h)||{children:[],attributes:{}}:wr("generateAbstractIcon",h)||{children:[],attributes:{}};return h.children=g,h.attributes=S,a?A6(h):R6(h)}function mv(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,l={...a.attributes,...o?{title:o}:{},class:a.classes.join(" ")};s&&(l[ai]="");const u={...a.styles};Ih(i)&&(u.transform=p6({transform:i,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);const c=Ju(u);c.length>0&&(l.style=c);const f=[];return f.push({tag:"span",attributes:l,children:[t]}),o&&f.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),f}function $6(e){const{content:t,title:n,extra:r}=e,i={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},o=Ju(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:qc}=dn;function Ud(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(B.cssPrefix,"-").concat(Gc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(B.cssPrefix,"-").concat(Gc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(B.cssPrefix,"-").concat(Gc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const D6={found:!1,width:512,height:512};function F6(e,t){!a2&&!B.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Bd(e,t){let n=t;return t==="fa"&&B.styleDefault!==null&&(t=yr()),new Promise((r,i)=>{if(n==="fa"){const o=S2(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&qc[t]&&qc[t][e]){const o=qc[t][e];return r(Ud(o))}F6(e,t),r({...D6,icon:B.showMissingIcons&&e?wr("missingIconAbstract")||{}:{}})})}const vv=()=>{},Hd=B.measurePerformance&&Yl&&Yl.mark&&Yl.measure?Yl:{mark:vv,measure:vv},sa='FA "6.6.0"',z6=e=>(Hd.mark("".concat(sa," ").concat(e," begins")),()=>b2(e)),b2=e=>{Hd.mark("".concat(sa," ").concat(e," ends")),Hd.measure("".concat(sa," ").concat(e),"".concat(sa," ").concat(e," begins"),"".concat(sa," ").concat(e," ends"))};var Ah={begin:z6,end:b2};const _s=()=>{};function gv(e){return typeof(e.getAttribute?e.getAttribute(ai):null)=="string"}function V6(e){const t=e.getAttribute?e.getAttribute(Oh):null,n=e.getAttribute?e.getAttribute(Ph):null;return t&&n}function j6(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(B.replacementClass)}function U6(){return B.autoReplaceSvg===!0?bs.replace:bs[B.autoReplaceSvg]||bs.replace}function B6(e){return ye.createElementNS("http://www.w3.org/2000/svg",e)}function H6(e){return ye.createElement(e)}function E2(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?B6:H6}=t;if(typeof e=="string")return ye.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(E2(o,{ceFn:n}))}),r}function W6(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const bs={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(E2(n),t)}),t.getAttribute(ai)===null&&B.keepOriginalSource){let n=ye.createComment(W6(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Th(t).indexOf(B.replacementClass))return bs.replace(e);const r=new RegExp("".concat(B.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,s)=>(s===B.replacementClass||s.match(r)?a.toSvg.push(s):a.toNode.push(s),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>hl(o)).join(` +`);t.setAttribute(ai,""),t.innerHTML=i}};function yv(e){e()}function C2(e,t){const n=typeof t=="function"?t:_s;if(e.length===0)n();else{let r=yv;B.mutateApproach===Z8&&(r=gr.requestAnimationFrame||yv),r(()=>{const i=U6(),o=Ah.begin("mutate");e.map(i),o(),n()})}}let $h=!1;function k2(){$h=!0}function Wd(){$h=!1}let du=null;function wv(e){if(!lv||!B.observeMutations)return;const{treeCallback:t=_s,nodeCallback:n=_s,pseudoElementsCallback:r=_s,observeMutationsRoot:i=ye}=e;du=new lv(o=>{if($h)return;const a=yr();Eo(o).forEach(s=>{if(s.type==="childList"&&s.addedNodes.length>0&&!gv(s.addedNodes[0])&&(B.searchPseudoElements&&r(s.target),t(s.target)),s.type==="attributes"&&s.target.parentNode&&B.searchPseudoElements&&r(s.target.parentNode),s.type==="attributes"&&gv(s.target)&&~i6.indexOf(s.attributeName))if(s.attributeName==="class"&&V6(s.target)){const{prefix:l,iconName:u}=tc(Th(s.target));s.target.setAttribute(Oh,l||a),u&&s.target.setAttribute(Ph,u)}else j6(s.target)&&n(s.target)})}),Bn&&du.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Y6(){du&&du.disconnect()}function X6(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function G6(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=tc(Th(e));return i.prefix||(i.prefix=yr()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=E6(i.prefix,e.innerText)||Nh(i.prefix,Fd(e.innerText))),!i.iconName&&B.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function K6(e){const t=Eo(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return B.autoA11y&&(n?t["aria-labelledby"]="".concat(B.replacementClass,"-title-").concat(r||Za()):(t["aria-hidden"]="true",t.focusable="false")),t}function Q6(){return{iconName:null,title:null,titleId:null,prefix:null,transform:fn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function xv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=G6(e),o=K6(e),a=Vd("parseNodeAttributes",{},e);let s=t.styleParser?X6(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:fn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o},...a}}const{styles:q6}=dn;function O2(e){const t=B.autoReplaceSvg==="nest"?xv(e,{styleParser:!1}):xv(e);return~t.extra.classes.indexOf(u2)?wr("generateLayersText",e,t):wr("generateSvgReplacementMutation",e,t)}let yn=new Set;l2.map(e=>{yn.add("fa-".concat(e))});Object.keys(Gr[_e]).map(yn.add.bind(yn));Object.keys(Gr[Et]).map(yn.add.bind(yn));Object.keys(Gr[Ct]).map(yn.add.bind(yn));yn=[...yn];function Sv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Bn)return Promise.resolve();const n=ye.documentElement.classList,r=c=>n.add("".concat(cv,"-").concat(c)),i=c=>n.remove("".concat(cv,"-").concat(c)),o=B.autoFetchSvg?yn:l2.map(c=>"fa-".concat(c)).concat(Object.keys(q6));o.includes("fa")||o.push("fa");const a=[".".concat(u2,":not([").concat(ai,"])")].concat(o.map(c=>".".concat(c,":not([").concat(ai,"])"))).join(", ");if(a.length===0)return Promise.resolve();let s=[];try{s=Eo(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();const l=Ah.begin("onTree"),u=s.reduce((c,f)=>{try{const d=O2(f);d&&c.push(d)}catch(d){a2||d.name==="MissingIcon"&&console.error(d)}return c},[]);return new Promise((c,f)=>{Promise.all(u).then(d=>{C2(d,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),c()})}).catch(d=>{l(),f(d)})})}function Z6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;O2(e).then(n=>{n&&C2([n],t)})}function J6(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:jd(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:jd(i||{})),e(r,{...n,mask:i})}}const eT=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=fn,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:s=null,classes:l=[],attributes:u={},styles:c={}}=t;if(!e)return;const{prefix:f,iconName:d,icon:m}=e;return nc({type:"icon",...e},()=>(li("beforeDOMElementCreation",{iconDefinition:e,params:t}),B.autoA11y&&(a?u["aria-labelledby"]="".concat(B.replacementClass,"-title-").concat(s||Za()):(u["aria-hidden"]="true",u.focusable="false")),Rh({icons:{main:Ud(m),mask:i?Ud(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:f,iconName:d,transform:{...fn,...n},symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:u,styles:c,classes:l}})))};var tT={mixout(){return{icon:J6(eT)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Sv,e.nodeCallback=Z6,e}}},provides(e){e.i2svg=function(t){const{node:n=ye,callback:r=()=>{}}=t;return Sv(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:s,symbol:l,mask:u,maskId:c,extra:f}=n;return new Promise((d,m)=>{Promise.all([Bd(r,a),u.iconName?Bd(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(v=>{let[y,w]=v;d([t,Rh({icons:{main:y,mask:w},prefix:a,iconName:r,transform:s,symbol:l,maskId:c,title:i,titleId:o,extra:f,watchable:!0})])}).catch(m)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:a}=t;const s=Ju(a);s.length>0&&(r.style=s);let l;return Ih(o)&&(l=wr("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(l||i.icon),{children:n,attributes:r}}}},nT={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return nc({type:"layer"},()=>{li("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(B.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},rT={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return nc({type:"counter",content:e},()=>(li("beforeDOMElementCreation",{content:e,params:t}),$6({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(B.cssPrefix,"-layers-counter"),...r]}})))}}}},iT={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=fn,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return nc({type:"text",content:e},()=>(li("beforeDOMElementCreation",{content:e,params:t}),mv({content:e,transform:{...fn,...n},title:r,extra:{attributes:o,styles:a,classes:["".concat(B.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let a=null,s=null;if(e2){const l=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();a=u.width/l,s=u.height/l}return B.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,mv({content:t.innerHTML,width:a,height:s,transform:i,title:r,extra:o,watchable:!0})])}}};const oT=new RegExp('"',"ug"),_v=[1105920,1112319],bv={FontAwesome:{normal:"fas",400:"fas"},...V8,...z8,...G8},Yd=Object.keys(bv).reduce((e,t)=>(e[t.toLowerCase()]=bv[t],e),{}),aT=Object.keys(Yd).reduce((e,t)=>{const n=Yd[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function lT(e){const t=e.replace(oT,""),n=y6(t,0),r=n>=_v[0]&&n<=_v[1],i=t.length===2?t[0]===t[1]:!1;return{value:Fd(i?t[0]:t),isSecondary:r||i}}function sT(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Yd[n]||{})[i]||aT[n]}function Ev(e,t){const n="".concat(q8).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=Eo(e.children).filter(d=>d.getAttribute(Rd)===t)[0],s=gr.getComputedStyle(e,t),l=s.getPropertyValue("font-family"),u=l.match(n6),c=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!u)return e.removeChild(a),r();if(u&&f!=="none"&&f!==""){const d=s.getPropertyValue("content");let m=sT(l,c);const{value:v,isSecondary:y}=lT(d),w=u[0].startsWith("FontAwesome");let p=Nh(m,v),h=p;if(w){const g=C6(v);g.iconName&&g.prefix&&(p=g.iconName,m=g.prefix)}if(p&&!y&&(!a||a.getAttribute(Oh)!==m||a.getAttribute(Ph)!==h)){e.setAttribute(n,h),a&&e.removeChild(a);const g=Q6(),{extra:S}=g;S.attributes[Rd]=t,Bd(p,m).then(b=>{const k=Rh({...g,icons:{main:b,mask:Lh()},prefix:m,iconName:h,extra:S,watchable:!0}),E=ye.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(E,e.firstChild):e.appendChild(E),E.outerHTML=k.map(_=>hl(_)).join(` +`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function uT(e){return Promise.all([Ev(e,"::before"),Ev(e,"::after")])}function cT(e){return e.parentNode!==document.head&&!~J8.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Rd)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Cv(e){if(Bn)return new Promise((t,n)=>{const r=Eo(e.querySelectorAll("*")).filter(cT).map(uT),i=Ah.begin("searchPseudoElements");k2(),Promise.all(r).then(()=>{i(),Wd(),t()}).catch(()=>{i(),Wd(),n()})})}var fT={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Cv,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=ye}=t;B.searchPseudoElements&&Cv(n)}}};let kv=!1;var dT={mixout(){return{dom:{unwatch(){k2(),kv=!0}}}},hooks(){return{bootstrap(){wv(Vd("mutationObserverCallbacks",{}))},noAuto(){Y6()},watch(e){const{observeMutationsRoot:t}=e;kv?Wd():wv(Vd("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Ov=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return n.flipX=!0,n;if(o&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(o){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var pT={mixout(){return{parse:{transform:e=>Ov(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Ov(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(r.x*32,", ").concat(r.y*32,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),c={transform:"".concat(s," ").concat(l," ").concat(u)},f={transform:"translate(".concat(o/2*-1," -256)")},d={outer:a,inner:c,path:f};return{tag:"g",attributes:{...d.outer},children:[{tag:"g",attributes:{...d.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...d.path}}]}]}}}};const Zc={x:0,y:0,width:"100%",height:"100%"};function Pv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function hT(e){return e.tag==="g"?e.children:[e]}var mT={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?tc(n.split(" ").map(i=>i.trim())):Lh();return r.prefix||(r.prefix=yr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:a,transform:s}=t;const{width:l,icon:u}=i,{width:c,icon:f}=o,d=d6({transform:s,containerWidth:c,iconWidth:l}),m={tag:"rect",attributes:{...Zc,fill:"white"}},v=u.children?{children:u.children.map(Pv)}:{},y={tag:"g",attributes:{...d.inner},children:[Pv({tag:u.tag,attributes:{...u.attributes,...d.path},...v})]},w={tag:"g",attributes:{...d.outer},children:[y]},p="mask-".concat(a||Za()),h="clip-".concat(a||Za()),g={tag:"mask",attributes:{...Zc,id:p,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[m,w]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:h},children:hT(f)},g]};return n.push(S,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(h,")"),mask:"url(#".concat(p,")"),...Zc}}),{children:n,attributes:r}}}},vT={provides(e){let t=!1;gr.matchMedia&&(t=gr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:{...r,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const o={...i,attributeName:"opacity"},a={tag:"circle",attributes:{...r,cx:"256",cy:"364",r:"28"},children:[]};return t||a.children.push({tag:"animate",attributes:{...i,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...o,values:"1;0;1;1;0;1;"}}),n.push(a),n.push({tag:"path",attributes:{...r,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...o,values:"1;0;0;0;0;1;"}}]}),t||n.push({tag:"path",attributes:{...r,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...o,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},gT={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},yT=[m6,tT,nT,rT,iT,fT,dT,pT,mT,vT,gT];T6(yT,{mixoutsTo:Mt});Mt.noAuto;Mt.config;Mt.library;Mt.dom;const Xd=Mt.parse;Mt.findIconDefinition;Mt.toHtml;const wT=Mt.icon;Mt.layer;Mt.text;Mt.counter;var P2={exports:{}},xT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ST=xT,_T=ST;function T2(){}function I2(){}I2.resetWarningCache=T2;var bT=function(){function e(r,i,o,a,s,l){if(l!==_T){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:I2,resetWarningCache:T2};return n.PropTypes=n,n};P2.exports=bT();var ET=P2.exports;const ie=ep(ET);function Tv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function un(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function kT(e,t){if(e==null)return{};var n=CT(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gd(e){return OT(e)||PT(e)||TT(e)||IT()}function OT(e){if(Array.isArray(e))return Kd(e)}function PT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function TT(e,t){if(e){if(typeof e=="string")return Kd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kd(e,t)}}function Kd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return N2(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,u){var c=t.attributes[u];switch(u){case"class":l.attrs.className=c,delete t.attributes.class;break;case"style":l.attrs.style=AT(c);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=c:l.attrs[M2(u)]=c}return l},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=kT(n,LT);return i.attrs.style=un(un({},i.attrs.style),a),e.apply(void 0,[t.tag,un(un({},i.attrs),s)].concat(Gd(r)))}var L2=!1;try{L2=!0}catch{}function $T(){if(!L2&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Iv(e){if(e&&pu(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Xd.icon)return Xd.icon(e);if(e===null)return null;if(e&&pu(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Jc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Bi({},e,t):{}}var Mv={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},xr=re.forwardRef(function(e,t){var n=un(un({},Mv),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,l=n.titleId,u=n.maskId,c=Iv(r),f=Jc("classes",[].concat(Gd(MT(n)),Gd((a||"").split(" ")))),d=Jc("transform",typeof n.transform=="string"?Xd.transform(n.transform):n.transform),m=Jc("mask",Iv(i)),v=wT(c,un(un(un(un({},f),d),m),{},{symbol:o,title:s,titleId:l,maskId:u}));if(!v)return $T("Could not find icon",c),null;var y=v.abstract,w={ref:t};return Object.keys(n).forEach(function(p){Mv.hasOwnProperty(p)||(w[p]=n[p])}),DT(y[0],w)});xr.displayName="FontAwesomeIcon";xr.propTypes={beat:ie.bool,border:ie.bool,beatFade:ie.bool,bounce:ie.bool,className:ie.string,fade:ie.bool,flash:ie.bool,mask:ie.oneOfType([ie.object,ie.array,ie.string]),maskId:ie.string,fixedWidth:ie.bool,inverse:ie.bool,flip:ie.oneOf([!0,!1,"horizontal","vertical","both"]),icon:ie.oneOfType([ie.object,ie.array,ie.string]),listItem:ie.bool,pull:ie.oneOf(["right","left"]),pulse:ie.bool,rotation:ie.oneOf([0,90,180,270]),shake:ie.bool,size:ie.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:ie.bool,spinPulse:ie.bool,spinReverse:ie.bool,symbol:ie.oneOfType([ie.bool,ie.string]),title:ie.string,titleId:ie.string,transform:ie.oneOfType([ie.string,ie.object]),swapOpacity:ie.bool};var DT=N2.bind(null,re.createElement);function Nv(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Lv(e,t,n){var r=[],i=mh(e,r,n);return r.length<2?n:i+t(r)}var FT=function(t){var n=lw(t);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var l=arguments.length,u=new Array(l),c=0;c{t==null||t.collapse(),l(""),r.delete("search"),i(r),c(void 0),d(void 0)},[t,l,r,i,c,d]);x.useEffect(()=>{aa(a)||(r.set("field",Md),i(r))},[a,r,i]);const v=x.useMemo(()=>aa(a)?S8(e,a):[],[e,a]),y=x.useMemo(()=>{let S=-1,b=-1;for(let k=0;k-1?[v[S],...v.slice(0,S),...v.slice(S+1)]:b>-1?[{label:s,value:nf},v[b],...v.slice(0,b),...v.slice(b+1)]:[{label:s,value:nf},...v]},[v,s,a]),w=x.useCallback(S=>{if(!t||!aa(a))return;const b=t.search(k=>{let E;return a===mo.NAME?E=Qw(k.data):E=k.data[Xr[a].dataName],E?E.toLowerCase().includes(S.toLowerCase()):!1});c(b),d(0),b.length>0&&t.focus(b[0])},[t,a]);x.useEffect(()=>{o&&t&&w(o)},[o,t,w]);function p(){if(!o)return null;const S=y.find(b=>b.label===o);return S||{label:o,value:nf}}const h=x.useCallback(S=>{const b=S.innerProps.onMouseDown;return S.innerProps.onMouseDown=k=>{if(!(k.target instanceof HTMLDivElement)||k.target.dataset.type===ef||k.target.dataset.type===tf)return;const E=k.target.dataset;if(!(E.type===ef||E.type===tf))return b==null?void 0:b(k)},I.jsx(Pd.Control,{...S})},[]);return I.jsx("div",{style:{width:n?"unset":400},children:I.jsx(Kw,{inputValue:s,value:p(),placeholder:aa(a)?Xr[a].searchBarPlaceHolder:Xr[Md].searchBarPlaceHolder,isClearable:!0,backspaceRemovesValue:!0,onInputChange:S=>{l(S)},onChange:S=>{S?(w(S.label),r.set("search",S.label),i(r)):m()},options:y,components:{ClearIndicator:g,Control:h},styles:{option(S,b){return b.isSelected?{...S,backgroundColor:eo.primary}:{...S,color:"black"}},control(S){return{...S,minHeight:42,minWidth:n?"unset":250}}},theme:S=>({...S,colors:{...S.colors,primary:eo.primary,neutral90:eo.white}})})});function g(S){const k=S.getStyles("input",{...S,isHidden:!1}).color??"black",E=jT(S.getStyles("clearIndicator",S)),_=u!==void 0&&f!==void 0;function N(){if(_)return u.length===0?I.jsx("span",{className:E,style:{color:Array.isArray(k)?k[0]:k},children:"0/0"}):I.jsx("span",{className:E,style:{color:Array.isArray(k)?k[0]:k},children:`${f+1}/${u.length}`})}const L=()=>{if(!_)return;let J=u.length-1;f!==0&&(J=f-1),t==null||t.focus(u[J]),d(J)},j=()=>{if(!_)return;let J=0;f!==u.length-1&&(J=f+1),t==null||t.focus(u[J]),d(J)},H="ontouchstart"in window||navigator.maxTouchPoints>0;return I.jsxs(I.Fragment,{children:[N(),_&&u.length>0&&I.jsxs("div",{style:{userSelect:"none",display:"flex"},children:[I.jsx("div",{"data-type":tf,className:E,onClick:H?void 0:L,onTouchStart:H?L:void 0,children:I.jsx(xr,{style:{pointerEvents:"none"},icon:M8})}),I.jsx("div",{"data-type":ef,className:E,onClick:H?void 0:j,onTouchStart:H?j:void 0,children:I.jsx(xr,{style:{pointerEvents:"none"},icon:O8})})]}),I.jsx(Pd.ClearIndicator,{...S})]})}}function R2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Qr=e=>typeof e=="string",xt=e=>typeof e=="function",Es=e=>Qr(e)||xt(e)?e:null,Qd=e=>x.isValidElement(e)||Qr(e)||xt(e)||Ja(e);function HT(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function rc(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(a){let{children:s,position:l,preventExitTransition:u,done:c,nodeRef:f,isIn:d,playToast:m}=a;const v=r?`${t}--${l}`:t,y=r?`${n}--${l}`:n,w=x.useRef(0);return x.useLayoutEffect(()=>{const p=f.current,h=v.split(" "),g=S=>{S.target===f.current&&(m(),p.removeEventListener("animationend",g),p.removeEventListener("animationcancel",g),w.current===0&&S.type!=="animationcancel"&&p.classList.remove(...h))};p.classList.add(...h),p.addEventListener("animationend",g),p.addEventListener("animationcancel",g)},[]),x.useEffect(()=>{const p=f.current,h=()=>{p.removeEventListener("animationend",h),i?HT(p,c,o):c()};d||(u?h():(w.current=1,p.className+=` ${y}`,p.addEventListener("animationend",h)))},[d]),re.createElement(re.Fragment,null,s)}}function Av(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const it=new Map;let el=[];const qd=new Set,WT=e=>qd.forEach(t=>t(e)),A2=()=>it.size>0;function $2(e,t){var n;if(t)return!((n=it.get(t))==null||!n.isToastActive(e));let r=!1;return it.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function D2(e,t){Qd(e)&&(A2()||el.push({content:e,options:t}),it.forEach(n=>{n.buildToast(e,t)}))}function $v(e,t){it.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function YT(e){const{subscribe:t,getSnapshot:n,setProps:r}=x.useRef(function(o){const a=o.containerId||1;return{subscribe(s){const l=function(c,f,d){let m=1,v=0,y=[],w=[],p=[],h=f;const g=new Map,S=new Set,b=()=>{p=Array.from(g.values()),S.forEach(_=>_())},k=_=>{w=_==null?[]:w.filter(N=>N!==_),b()},E=_=>{const{toastId:N,onOpen:L,updateId:j,children:H}=_.props,J=j==null;_.staleId&&g.delete(_.staleId),g.set(N,_),w=[...w,_.props.toastId].filter(C=>C!==_.staleId),b(),d(Av(_,J?"added":"updated")),J&&xt(L)&&L(x.isValidElement(H)&&H.props)};return{id:c,props:h,observe:_=>(S.add(_),()=>S.delete(_)),toggle:(_,N)=>{g.forEach(L=>{N!=null&&N!==L.props.toastId||xt(L.toggle)&&L.toggle(_)})},removeToast:k,toasts:g,clearQueue:()=>{v-=y.length,y=[]},buildToast:(_,N)=>{if((F=>{let{containerId:Q,toastId:Y,updateId:ne}=F;const ee=Q?Q!==c:c!==1,q=g.has(Y)&&ne==null;return ee||q})(N))return;const{toastId:L,updateId:j,data:H,staleId:J,delay:C}=N,R=()=>{k(L)},P=j==null;P&&v++;const A={...h,style:h.toastStyle,key:m++,...Object.fromEntries(Object.entries(N).filter(F=>{let[Q,Y]=F;return Y!=null})),toastId:L,updateId:j,data:H,closeToast:R,isIn:!1,className:Es(N.className||h.toastClassName),bodyClassName:Es(N.bodyClassName||h.bodyClassName),progressClassName:Es(N.progressClassName||h.progressClassName),autoClose:!N.isLoading&&(O=N.autoClose,M=h.autoClose,O===!1||Ja(O)&&O>0?O:M),deleteToast(){const F=g.get(L),{onClose:Q,children:Y}=F.props;xt(Q)&&Q(x.isValidElement(Y)&&Y.props),d(Av(F,"removed")),g.delete(L),v--,v<0&&(v=0),y.length>0?E(y.shift()):b()}};var O,M;A.closeButton=h.closeButton,N.closeButton===!1||Qd(N.closeButton)?A.closeButton=N.closeButton:N.closeButton===!0&&(A.closeButton=!Qd(h.closeButton)||h.closeButton);let T=_;x.isValidElement(_)&&!Qr(_.type)?T=x.cloneElement(_,{closeToast:R,toastProps:A,data:H}):xt(_)&&(T=_({closeToast:R,toastProps:A,data:H}));const V={content:T,props:A,staleId:J};h.limit&&h.limit>0&&v>h.limit&&P?y.push(V):Ja(C)?setTimeout(()=>{E(V)},C):E(V)},setProps(_){h=_},setToggle:(_,N)=>{g.get(_).toggle=N},isToastActive:_=>w.some(N=>N===_),getSnapshot:()=>h.newestOnTop?p.reverse():p}}(a,o,WT);it.set(a,l);const u=l.observe(s);return el.forEach(c=>D2(c.content,c.options)),el=[],()=>{u(),it.delete(a)}},setProps(s){var l;(l=it.get(a))==null||l.setProps(s)},getSnapshot(){var s;return(s=it.get(a))==null?void 0:s.getSnapshot()}}}(e)).current;r(e);const i=x.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return i.forEach(s=>{const{position:l}=s.props;a.has(l)||a.set(l,[]),a.get(l).push(s)}),Array.from(a,s=>o(s[0],s[1]))},isToastActive:$2,count:i==null?void 0:i.length}}function XT(e){const[t,n]=x.useState(!1),[r,i]=x.useState(!1),o=x.useRef(null),a=x.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:u,onClick:c,closeOnClick:f}=e;var d,m;function v(){n(!0)}function y(){n(!1)}function w(g){const S=o.current;a.canDrag&&S&&(a.didMove=!0,t&&y(),a.delta=e.draggableDirection==="x"?g.clientX-a.start:g.clientY-a.start,a.start!==g.clientX&&(a.canCloseOnClick=!1),S.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,S.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function p(){document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",p);const g=o.current;if(a.canDrag&&a.didMove&&g){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();g.style.transition="transform 0.2s, opacity 0.2s",g.style.removeProperty("transform"),g.style.removeProperty("opacity")}}(m=it.get((d={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||m.setToggle(d.id,d.fn),x.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||y(),window.addEventListener("focus",v),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",y)}},[e.pauseOnFocusLoss]);const h={onPointerDown:function(g){if(e.draggable===!0||e.draggable===g.pointerType){a.didMove=!1,document.addEventListener("pointermove",w),document.addEventListener("pointerup",p);const S=o.current;a.canCloseOnClick=!0,a.canDrag=!0,S.style.transition="none",e.draggableDirection==="x"?(a.start=g.clientX,a.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(a.start=g.clientY,a.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(g){const{top:S,bottom:b,left:k,right:E}=o.current.getBoundingClientRect();g.nativeEvent.type!=="touchend"&&e.pauseOnHover&&g.clientX>=k&&g.clientX<=E&&g.clientY>=S&&g.clientY<=b?y():v()}};return s&&l&&(h.onMouseEnter=y,e.stacked||(h.onMouseLeave=v)),f&&(h.onClick=g=>{c&&c(g),a.canCloseOnClick&&u()}),{playToast:v,pauseToast:y,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:h}}function GT(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:s,controlledProgress:l,progress:u,rtl:c,isIn:f,theme:d}=e;const m=o||l&&u===0,v={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(v.transform=`scaleX(${u})`);const y=rr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),w=xt(a)?a({rtl:c,type:i,defaultClassName:y}):rr(y,a),p={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{f&&r()}};return re.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":m},re.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${i}`}),re.createElement("div",{role:"progressbar","aria-hidden":m?"true":"false","aria-label":"notification timer",className:w,style:v,...p}))}let KT=1;const F2=()=>""+KT++;function QT(e){return e&&(Qr(e.toastId)||Ja(e.toastId))?e.toastId:F2()}function Sa(e,t){return D2(e,t),t.toastId}function hu(e,t){return{...t,type:t&&t.type||e,toastId:QT(t)}}function Xl(e){return(t,n)=>Sa(t,hu(e,n))}function he(e,t){return Sa(e,hu("default",t))}he.loading=(e,t)=>Sa(e,hu("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),he.promise=function(e,t,n){let r,{pending:i,error:o,success:a}=t;i&&(r=Qr(i)?he.loading(i,n):he.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(c,f,d)=>{if(f==null)return void he.dismiss(r);const m={type:c,...s,...n,data:d},v=Qr(f)?{render:f}:f;return r?he.update(r,{...m,...v}):he(v.render,{...m,...v}),d},u=xt(e)?e():e;return u.then(c=>l("success",a,c)).catch(c=>l("error",o,c)),u},he.success=Xl("success"),he.info=Xl("info"),he.error=Xl("error"),he.warning=Xl("warning"),he.warn=he.warning,he.dark=(e,t)=>Sa(e,hu("default",{theme:"dark",...t})),he.dismiss=function(e){(function(t){var n;if(A2()){if(t==null||Qr(n=t)||Ja(n))it.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=it.get(t.containerId);r?r.removeToast(t.id):it.forEach(i=>{i.removeToast(t.id)})}}else el=el.filter(r=>t!=null&&r.options.toastId!==t)})(e)},he.clearWaitingQueue=function(e){e===void 0&&(e={}),it.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},he.isActive=$2,he.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=it.get(a||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:F2()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,Sa(a,o)}},he.done=e=>{he.update(e,{progress:1})},he.onChange=function(e){return qd.add(e),()=>{qd.delete(e)}},he.play=e=>$v(!0,e),he.pause=e=>$v(!1,e);const qT=typeof window<"u"?x.useLayoutEffect:x.useEffect,Gl=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return re.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},rf={info:function(e){return re.createElement(Gl,{...e},re.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return re.createElement(Gl,{...e},re.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return re.createElement(Gl,{...e},re.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return re.createElement(Gl,{...e},re.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return re.createElement("div",{className:"Toastify__spinner"})}},ZT=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=XT(e),{closeButton:a,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:f,closeToast:d,transition:m,position:v,className:y,style:w,bodyClassName:p,bodyStyle:h,progressClassName:g,progressStyle:S,updateId:b,role:k,progress:E,rtl:_,toastId:N,deleteToast:L,isIn:j,isLoading:H,closeOnClick:J,theme:C}=e,R=rr("Toastify__toast",`Toastify__toast-theme--${C}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":J}),P=xt(y)?y({rtl:_,position:v,type:c,defaultClassName:R}):rr(R,y),A=function(V){let{theme:F,type:Q,isLoading:Y,icon:ne}=V,ee=null;const q={theme:F,type:Q};return ne===!1||(xt(ne)?ee=ne({...q,isLoading:Y}):x.isValidElement(ne)?ee=x.cloneElement(ne,q):Y?ee=rf.spinner():(de=>de in rf)(Q)&&(ee=rf[Q](q))),ee}(e),O=!!E||!l,M={closeToast:d,type:c,theme:C};let T=null;return a===!1||(T=xt(a)?a(M):x.isValidElement(a)?x.cloneElement(a,M):function(V){let{closeToast:F,theme:Q,ariaLabel:Y="close"}=V;return re.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Q}`,type:"button",onClick:ne=>{ne.stopPropagation(),F(ne)},"aria-label":Y},re.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},re.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(M)),re.createElement(m,{isIn:j,done:L,position:v,preventExitTransition:n,nodeRef:r,playToast:o},re.createElement("div",{id:N,onClick:u,"data-in":j,className:P,...i,style:w,ref:r},re.createElement("div",{...j&&{role:k},className:xt(p)?p({type:c}):rr("Toastify__toast-body",p),style:h},A!=null&&re.createElement("div",{className:rr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!H})},A),re.createElement("div",null,s)),T,re.createElement(GT,{...b&&!O?{key:`pb-${b}`}:{},rtl:_,theme:C,delay:l,isRunning:t,isIn:j,closeToast:d,hide:f,type:c,style:S,className:g,controlledProgress:O,progress:E||0})))},ic=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},z2=rc(ic("bounce",!0));rc(ic("slide",!0));rc(ic("zoom"));rc(ic("flip"));const JT={position:"top-right",transition:z2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function eI(e){let t={...JT,...e};const n=e.stacked,[r,i]=x.useState(!0),o=x.useRef(null),{getToastToRender:a,isToastActive:s,count:l}=YT(t),{className:u,style:c,rtl:f,containerId:d}=t;function m(y){const w=rr("Toastify__toast-container",`Toastify__toast-container--${y}`,{"Toastify__toast-container--rtl":f});return xt(u)?u({position:y,rtl:f,defaultClassName:w}):rr(w,Es(u))}function v(){n&&(i(!0),he.play())}return qT(()=>{if(n){var y;const w=o.current.querySelectorAll('[data-in="true"]'),p=12,h=(y=t.position)==null?void 0:y.includes("top");let g=0,S=0;Array.from(w).reverse().forEach((b,k)=>{const E=b;E.classList.add("Toastify__toast--stacked"),k>0&&(E.dataset.collapsed=`${r}`),E.dataset.pos||(E.dataset.pos=h?"top":"bot");const _=g*(r?.2:1)+(r?0:p*k);E.style.setProperty("--y",`${h?_:-1*_}px`),E.style.setProperty("--g",`${p}`),E.style.setProperty("--s",""+(1-(r?S:0))),g+=E.offsetHeight,S+=.025})}},[r,l,n]),re.createElement("div",{ref:o,className:"Toastify",id:d,onMouseEnter:()=>{n&&(i(!1),he.pause())},onMouseLeave:v},a((y,w)=>{const p=w.length?{...c}:{...c,pointerEvents:"none"};return re.createElement("div",{className:m(y),style:p,key:`container-${y}`},w.map(h=>{let{content:g,props:S}=h;return re.createElement(ZT,{...S,stacked:n,collapseAll:v,isIn:s(S.toastId,S.containerId),style:S.style,key:`toast-${S.key}`},g)}))}))}var V2={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a"u"||Fv[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:Dv)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:Dv)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=nI),r||(r={});const{insertAt:a}=r;if(document.getElementById(t))return;const s=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=t,l.type="text/css",a==="top"&&s.firstChild?s.insertBefore(l,s.firstChild):s.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e)),Fv[n]=!0}const Vv=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:a=[q5(Number(i)),J5({fallbackAxisSideDirection:"start"}),Z5({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const l=a;return n?(l.push(eO({element:n,padding:5})),V0(e,t,{placement:r,strategy:o,middleware:l}).then(({x:u,y:c,placement:f,middlewareData:d})=>{var m,v;const y={left:`${u}px`,top:`${c}px`,border:s},{x:w,y:p}=(m=d.arrow)!==null&&m!==void 0?m:{x:0,y:0},h=(v={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&v!==void 0?v:"bottom",g=s&&{borderBottom:s,borderRight:s};let S=0;if(s){const b=`${s}`.match(/(\d+)px/);S=b!=null&&b[1]?Number(b[1]):1}return{tooltipStyles:y,tooltipArrowStyles:{left:w!=null?`${w}px`:"",top:p!=null?`${p}px`:"",right:"",bottom:"",...g,[h]:`-${4+S}px`},place:f}})):V0(e,t,{placement:"bottom",strategy:o,middleware:l}).then(({x:u,y:c,placement:f})=>({tooltipStyles:{left:`${u}px`,top:`${c}px`},tooltipArrowStyles:{},place:f}))},jv=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),Uv=(e,t,n)=>{let r=null;const i=function(...o){const a=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(a,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},Bv=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",Jd=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,o)=>Jd(i,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!Bv(e)||!Bv(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>Jd(e[i],t[i]))},iI=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},Hv=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(iI(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},oI=typeof window<"u"?x.useLayoutEffect:x.useEffect,At=e=>{e.current&&(clearTimeout(e.current),e.current=null)},aI="DEFAULT_TOOLTIP_ID",lI={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},sI=x.createContext({getTooltipData:()=>lI});function j2(e=aI){return x.useContext(sI).getTooltipData(e)}var _i={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},of={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const uI=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:a,place:s="top",offset:l=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:f="absolute",middlewares:d,wrapper:m,delayShow:v=0,delayHide:y=0,float:w=!1,hidden:p=!1,noArrow:h=!1,clickable:g=!1,closeOnEsc:S=!1,closeOnScroll:b=!1,closeOnResize:k=!1,openEvents:E,closeEvents:_,globalCloseEvents:N,imperativeModeOnly:L,style:U,position:G,afterShow:ne,afterHide:C,content:A,contentWrapperRef:P,isOpen:R,defaultIsOpen:O=!1,setIsOpen:M,activeAnchor:T,setActiveAnchor:V,border:F,opacity:Q,arrowColor:W,role:te="tooltip"})=>{var J;const q=x.useRef(null),de=x.useRef(null),Me=x.useRef(null),tn=x.useRef(null),Hn=x.useRef(null),[jt,Co]=x.useState({tooltipStyles:{},tooltipArrowStyles:{},place:s}),[Ke,di]=x.useState(!1),[Cr,kr]=x.useState(!1),[be,ko]=x.useState(null),Oo=x.useRef(!1),Po=x.useRef(null),{anchorRefs:To,setActiveAnchor:ml}=j2(t),pi=x.useRef(!1),[Wn,Io]=x.useState([]),Or=x.useRef(!1),hi=c||u.includes("click"),Mo=hi||(E==null?void 0:E.click)||(E==null?void 0:E.dblclick)||(E==null?void 0:E.mousedown),mi=E?{...E}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!E&&hi&&Object.assign(mi,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const No=_?{..._}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!_&&hi&&Object.assign(No,{mouseleave:!1,blur:!1,mouseout:!1});const Ut=N?{...N}:{escape:S||!1,scroll:b||!1,resize:k||!1,clickOutsideAnchor:Mo||!1};L&&(Object.assign(mi,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(No,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Ut,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),oI(()=>(Or.current=!0,()=>{Or.current=!1}),[]);const Ne=z=>{Or.current&&(z&&kr(!0),setTimeout(()=>{Or.current&&(M==null||M(z),R===void 0&&di(z))},10))};x.useEffect(()=>{if(R===void 0)return()=>null;R&&kr(!0);const z=setTimeout(()=>{di(R)},10);return()=>{clearTimeout(z)}},[R]),x.useEffect(()=>{if(Ke!==Oo.current)if(At(Hn),Oo.current=Ke,Ke)ne==null||ne();else{const z=(Z=>{const ee=Z.match(/^([\d.]+)(ms|s)$/);if(!ee)return 0;const[,ze,Qe]=ee;return Number(ze)*(Qe==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));Hn.current=setTimeout(()=>{kr(!1),ko(null),C==null||C()},z+25)}},[Ke]);const vl=z=>{Co(Z=>Jd(Z,z)?Z:z)},Lo=(z=v)=>{At(Me),Cr?Ne(!0):Me.current=setTimeout(()=>{Ne(!0)},z)},vi=(z=y)=>{At(tn),tn.current=setTimeout(()=>{pi.current||Ne(!1)},z)},Ao=z=>{var Z;if(!z)return;const ee=(Z=z.currentTarget)!==null&&Z!==void 0?Z:z.target;if(!(ee!=null&&ee.isConnected))return V(null),void ml({current:null});v?Lo():Ne(!0),V(ee),ml({current:ee}),At(tn)},gi=()=>{g?vi(y||100):y?vi():Ne(!1),At(Me)},yi=({x:z,y:Z})=>{var ee;const ze={getBoundingClientRect:()=>({x:z,y:Z,width:0,height:0,top:Z,left:z,right:z,bottom:Z})};Vv({place:(ee=be==null?void 0:be.place)!==null&&ee!==void 0?ee:s,offset:l,elementReference:ze,tooltipReference:q.current,tooltipArrowReference:de.current,strategy:f,middlewares:d,border:F}).then(Qe=>{vl(Qe)})},wi=z=>{if(!z)return;const Z=z,ee={x:Z.clientX,y:Z.clientY};yi(ee),Po.current=ee},Ro=z=>{var Z;if(!Ke)return;const ee=z.target;ee.isConnected&&(!((Z=q.current)===null||Z===void 0)&&Z.contains(ee)||[document.querySelector(`[id='${o}']`),...Wn].some(ze=>ze==null?void 0:ze.contains(ee))||(Ne(!1),At(Me)))},gl=Uv(Ao,50),Fe=Uv(gi,50),Nt=z=>{Fe.cancel(),gl(z)},K=()=>{gl.cancel(),Fe()},ae=x.useCallback(()=>{var z,Z;const ee=(z=be==null?void 0:be.position)!==null&&z!==void 0?z:G;ee?yi(ee):w?Po.current&&yi(Po.current):T!=null&&T.isConnected&&Vv({place:(Z=be==null?void 0:be.place)!==null&&Z!==void 0?Z:s,offset:l,elementReference:T,tooltipReference:q.current,tooltipArrowReference:de.current,strategy:f,middlewares:d,border:F}).then(ze=>{Or.current&&vl(ze)})},[Ke,T,A,U,s,be==null?void 0:be.place,l,f,G,be==null?void 0:be.position,w]);x.useEffect(()=>{var z,Z;const ee=new Set(To);Wn.forEach(pe=>{ee.add({current:pe})});const ze=document.querySelector(`[id='${o}']`);ze&&ee.add({current:ze});const Qe=()=>{Ne(!1)},nn=Hv(T),rn=Hv(q.current);Ut.scroll&&(window.addEventListener("scroll",Qe),nn==null||nn.addEventListener("scroll",Qe),rn==null||rn.addEventListener("scroll",Qe));let nt=null;Ut.resize?window.addEventListener("resize",Qe):T&&q.current&&(nt=kw(T,q.current,ae,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Lt=pe=>{pe.key==="Escape"&&Ne(!1)};Ut.escape&&window.addEventListener("keydown",Lt),Ut.clickOutsideAnchor&&window.addEventListener("click",Ro);const we=[],$o=pe=>{Ke&&(pe==null?void 0:pe.target)===T||Ao(pe)},U2=pe=>{Ke&&(pe==null?void 0:pe.target)===T&&gi()},Dh=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Fh=["click","dblclick","mousedown","mouseup"];Object.entries(mi).forEach(([pe,xn])=>{xn&&(Dh.includes(pe)?we.push({event:pe,listener:Nt}):Fh.includes(pe)&&we.push({event:pe,listener:$o}))}),Object.entries(No).forEach(([pe,xn])=>{xn&&(Dh.includes(pe)?we.push({event:pe,listener:K}):Fh.includes(pe)&&we.push({event:pe,listener:U2}))}),w&&we.push({event:"pointermove",listener:wi});const zh=()=>{pi.current=!0},Vh=()=>{pi.current=!1,gi()};return g&&!Mo&&((z=q.current)===null||z===void 0||z.addEventListener("mouseenter",zh),(Z=q.current)===null||Z===void 0||Z.addEventListener("mouseleave",Vh)),we.forEach(({event:pe,listener:xn})=>{ee.forEach(oc=>{var Do;(Do=oc.current)===null||Do===void 0||Do.addEventListener(pe,xn)})}),()=>{var pe,xn;Ut.scroll&&(window.removeEventListener("scroll",Qe),nn==null||nn.removeEventListener("scroll",Qe),rn==null||rn.removeEventListener("scroll",Qe)),Ut.resize?window.removeEventListener("resize",Qe):nt==null||nt(),Ut.clickOutsideAnchor&&window.removeEventListener("click",Ro),Ut.escape&&window.removeEventListener("keydown",Lt),g&&!Mo&&((pe=q.current)===null||pe===void 0||pe.removeEventListener("mouseenter",zh),(xn=q.current)===null||xn===void 0||xn.removeEventListener("mouseleave",Vh)),we.forEach(({event:oc,listener:Do})=>{ee.forEach(B2=>{var ac;(ac=B2.current)===null||ac===void 0||ac.removeEventListener(oc,Do)})})}},[T,ae,Cr,To,Wn,E,_,N,hi,v,y]),x.useEffect(()=>{var z,Z;let ee=(Z=(z=be==null?void 0:be.anchorSelect)!==null&&z!==void 0?z:a)!==null&&Z!==void 0?Z:"";!ee&&t&&(ee=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const ze=new MutationObserver(Qe=>{const nn=[],rn=[];Qe.forEach(nt=>{if(nt.type==="attributes"&&nt.attributeName==="data-tooltip-id"&&(nt.target.getAttribute("data-tooltip-id")===t?nn.push(nt.target):nt.oldValue===t&&rn.push(nt.target)),nt.type==="childList"){if(T){const Lt=[...nt.removedNodes].filter(we=>we.nodeType===1);if(ee)try{rn.push(...Lt.filter(we=>we.matches(ee))),rn.push(...Lt.flatMap(we=>[...we.querySelectorAll(ee)]))}catch{}Lt.some(we=>{var $o;return!!(!(($o=we==null?void 0:we.contains)===null||$o===void 0)&&$o.call(we,T))&&(kr(!1),Ne(!1),V(null),At(Me),At(tn),!0)})}if(ee)try{const Lt=[...nt.addedNodes].filter(we=>we.nodeType===1);nn.push(...Lt.filter(we=>we.matches(ee))),nn.push(...Lt.flatMap(we=>[...we.querySelectorAll(ee)]))}catch{}}}),(nn.length||rn.length)&&Io(nt=>[...nt.filter(Lt=>!rn.includes(Lt)),...nn])});return ze.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{ze.disconnect()}},[t,a,be==null?void 0:be.anchorSelect,T]),x.useEffect(()=>{ae()},[ae]),x.useEffect(()=>{if(!(P!=null&&P.current))return()=>null;const z=new ResizeObserver(()=>{setTimeout(()=>ae())});return z.observe(P.current),()=>{z.disconnect()}},[A,P==null?void 0:P.current]),x.useEffect(()=>{var z;const Z=document.querySelector(`[id='${o}']`),ee=[...Wn,Z];T&&ee.includes(T)||V((z=Wn[0])!==null&&z!==void 0?z:Z)},[o,Wn,T]),x.useEffect(()=>(O&&Ne(!0),()=>{At(Me),At(tn)}),[]),x.useEffect(()=>{var z;let Z=(z=be==null?void 0:be.anchorSelect)!==null&&z!==void 0?z:a;if(!Z&&t&&(Z=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),Z)try{const ee=Array.from(document.querySelectorAll(Z));Io(ee)}catch{Io([])}},[t,a,be==null?void 0:be.anchorSelect]),x.useEffect(()=>{Me.current&&(At(Me),Lo(v))},[v]);const mt=(J=be==null?void 0:be.content)!==null&&J!==void 0?J:A,Pr=Ke&&Object.keys(jt.tooltipStyles).length>0;return x.useImperativeHandle(e,()=>({open:z=>{if(z!=null&&z.anchorSelect)try{document.querySelector(z.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${z.anchorSelect}" is not a valid CSS selector`)}ko(z??null),z!=null&&z.delay?Lo(z.delay):Ne(!0)},close:z=>{z!=null&&z.delay?vi(z.delay):Ne(!1)},activeAnchor:T,place:jt.place,isOpen:!!(Cr&&!p&&mt&&Pr)})),Cr&&!p&&mt?re.createElement(m,{id:t,role:te,className:Zd("react-tooltip",_i.tooltip,of.tooltip,of[i],n,`react-tooltip__place-${jt.place}`,_i[Pr?"show":"closing"],Pr?"react-tooltip__show":"react-tooltip__closing",f==="fixed"&&_i.fixed,g&&_i.clickable),onTransitionEnd:z=>{At(Hn),Ke||z.propertyName!=="opacity"||(kr(!1),ko(null),C==null||C())},style:{...U,...jt.tooltipStyles,opacity:Q!==void 0&&Pr?Q:void 0},ref:q},mt,re.createElement(m,{className:Zd("react-tooltip-arrow",_i.arrow,of.arrow,r,h&&_i.noArrow),style:{...jt.tooltipArrowStyles,background:W?`linear-gradient(to right bottom, transparent 50%, ${W} 50%)`:void 0},ref:de})):null},cI=({content:e})=>re.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),fI=re.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:a,classNameArrow:s,variant:l="dark",place:u="top",offset:c=10,wrapper:f="div",children:d=null,events:m=["hover"],openOnClick:v=!1,positionStrategy:y="absolute",middlewares:w,delayShow:p=0,delayHide:h=0,float:g=!1,hidden:S=!1,noArrow:b=!1,clickable:k=!1,closeOnEsc:E=!1,closeOnScroll:_=!1,closeOnResize:N=!1,openEvents:L,closeEvents:U,globalCloseEvents:G,imperativeModeOnly:ne=!1,style:C,position:A,isOpen:P,defaultIsOpen:R=!1,disableStyleInjection:O=!1,border:M,opacity:T,arrowColor:V,setIsOpen:F,afterShow:Q,afterHide:W,role:te="tooltip"},J)=>{const[q,de]=x.useState(r),[Me,tn]=x.useState(i),[Hn,jt]=x.useState(u),[Co,Ke]=x.useState(l),[di,Cr]=x.useState(c),[kr,be]=x.useState(p),[ko,Oo]=x.useState(h),[Po,To]=x.useState(g),[ml,pi]=x.useState(S),[Wn,Io]=x.useState(f),[Or,hi]=x.useState(m),[Mo,mi]=x.useState(y),[No,Ut]=x.useState(null),[Ne,vl]=x.useState(null),Lo=x.useRef(O),{anchorRefs:vi,activeAnchor:Ao}=j2(e),gi=Fe=>Fe==null?void 0:Fe.getAttributeNames().reduce((Nt,K)=>{var ae;return K.startsWith("data-tooltip-")&&(Nt[K.replace(/^data-tooltip-/,"")]=(ae=Fe==null?void 0:Fe.getAttribute(K))!==null&&ae!==void 0?ae:null),Nt},{}),yi=Fe=>{const Nt={place:K=>{var ae;jt((ae=K)!==null&&ae!==void 0?ae:u)},content:K=>{de(K??r)},html:K=>{tn(K??i)},variant:K=>{var ae;Ke((ae=K)!==null&&ae!==void 0?ae:l)},offset:K=>{Cr(K===null?c:Number(K))},wrapper:K=>{var ae;Io((ae=K)!==null&&ae!==void 0?ae:f)},events:K=>{const ae=K==null?void 0:K.split(" ");hi(ae??m)},"position-strategy":K=>{var ae;mi((ae=K)!==null&&ae!==void 0?ae:y)},"delay-show":K=>{be(K===null?p:Number(K))},"delay-hide":K=>{Oo(K===null?h:Number(K))},float:K=>{To(K===null?g:K==="true")},hidden:K=>{pi(K===null?S:K==="true")},"class-name":K=>{Ut(K)}};Object.values(Nt).forEach(K=>K(null)),Object.entries(Fe).forEach(([K,ae])=>{var mt;(mt=Nt[K])===null||mt===void 0||mt.call(Nt,ae)})};x.useEffect(()=>{de(r)},[r]),x.useEffect(()=>{tn(i)},[i]),x.useEffect(()=>{jt(u)},[u]),x.useEffect(()=>{Ke(l)},[l]),x.useEffect(()=>{Cr(c)},[c]),x.useEffect(()=>{be(p)},[p]),x.useEffect(()=>{Oo(h)},[h]),x.useEffect(()=>{To(g)},[g]),x.useEffect(()=>{pi(S)},[S]),x.useEffect(()=>{mi(y)},[y]),x.useEffect(()=>{Lo.current!==O&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[O]),x.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:O==="core",disableBase:O}}))},[]),x.useEffect(()=>{var Fe;const Nt=new Set(vi);let K=n;if(!K&&e&&(K=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),K)try{document.querySelectorAll(K).forEach(Z=>{Nt.add({current:Z})})}catch{console.warn(`[react-tooltip] "${K}" is not a valid CSS selector`)}const ae=document.querySelector(`[id='${t}']`);if(ae&&Nt.add({current:ae}),!Nt.size)return()=>null;const mt=(Fe=Ne??ae)!==null&&Fe!==void 0?Fe:Ao.current,Pr=new MutationObserver(Z=>{Z.forEach(ee=>{var ze;if(!mt||ee.type!=="attributes"||!(!((ze=ee.attributeName)===null||ze===void 0)&&ze.startsWith("data-tooltip-")))return;const Qe=gi(mt);yi(Qe)})}),z={attributes:!0,childList:!1,subtree:!1};if(mt){const Z=gi(mt);yi(Z),Pr.observe(mt,z)}return()=>{Pr.disconnect()}},[vi,Ao,Ne,t,n]),x.useEffect(()=>{C!=null&&C.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),M&&!jv("border",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`border\`.`),C!=null&&C.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),T&&!jv("opacity",`${T}`)&&console.warn(`[react-tooltip] "${T}" is not a valid \`opacity\`.`)},[]);let wi=d;const Ro=x.useRef(null);if(o){const Fe=o({content:(Ne==null?void 0:Ne.getAttribute("data-tooltip-content"))||q||null,activeAnchor:Ne});wi=Fe?re.createElement("div",{ref:Ro,className:"react-tooltip-content-wrapper"},Fe):null}else q&&(wi=q);Me&&(wi=re.createElement(cI,{content:Me}));const gl={forwardRef:J,id:e,anchorId:t,anchorSelect:n,className:Zd(a,No),classNameArrow:s,content:wi,contentWrapperRef:Ro,place:Hn,variant:Co,offset:di,wrapper:Wn,events:Or,openOnClick:v,positionStrategy:Mo,middlewares:w,delayShow:kr,delayHide:ko,float:Po,hidden:ml,noArrow:b,clickable:k,closeOnEsc:E,closeOnScroll:_,closeOnResize:N,openEvents:L,closeEvents:U,globalCloseEvents:G,imperativeModeOnly:ne,style:C,position:A,isOpen:P,defaultIsOpen:R,border:M,opacity:T,arrowColor:V,setIsOpen:F,afterShow:Q,afterHide:W,activeAnchor:Ne,setActiveAnchor:Fe=>vl(Fe),role:te};return re.createElement(uI,{...gl})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||zv({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||zv({css:` +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a"u"||Fv[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:Dv)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:Dv)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=nI),r||(r={});const{insertAt:a}=r;if(document.getElementById(t))return;const s=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=t,l.type="text/css",a==="top"&&s.firstChild?s.insertBefore(l,s.firstChild):s.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e)),Fv[n]=!0}const Vv=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:a=[q5(Number(i)),J5({fallbackAxisSideDirection:"start"}),Z5({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const l=a;return n?(l.push(eO({element:n,padding:5})),V0(e,t,{placement:r,strategy:o,middleware:l}).then(({x:u,y:c,placement:f,middlewareData:d})=>{var m,v;const y={left:`${u}px`,top:`${c}px`,border:s},{x:w,y:p}=(m=d.arrow)!==null&&m!==void 0?m:{x:0,y:0},h=(v={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&v!==void 0?v:"bottom",g=s&&{borderBottom:s,borderRight:s};let S=0;if(s){const b=`${s}`.match(/(\d+)px/);S=b!=null&&b[1]?Number(b[1]):1}return{tooltipStyles:y,tooltipArrowStyles:{left:w!=null?`${w}px`:"",top:p!=null?`${p}px`:"",right:"",bottom:"",...g,[h]:`-${4+S}px`},place:f}})):V0(e,t,{placement:"bottom",strategy:o,middleware:l}).then(({x:u,y:c,placement:f})=>({tooltipStyles:{left:`${u}px`,top:`${c}px`},tooltipArrowStyles:{},place:f}))},jv=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),Uv=(e,t,n)=>{let r=null;const i=function(...o){const a=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(a,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},Bv=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",Jd=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,o)=>Jd(i,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!Bv(e)||!Bv(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>Jd(e[i],t[i]))},iI=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},Hv=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(iI(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},oI=typeof window<"u"?x.useLayoutEffect:x.useEffect,Rt=e=>{e.current&&(clearTimeout(e.current),e.current=null)},aI="DEFAULT_TOOLTIP_ID",lI={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},sI=x.createContext({getTooltipData:()=>lI});function j2(e=aI){return x.useContext(sI).getTooltipData(e)}var _i={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},of={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const uI=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:a,place:s="top",offset:l=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:f="absolute",middlewares:d,wrapper:m,delayShow:v=0,delayHide:y=0,float:w=!1,hidden:p=!1,noArrow:h=!1,clickable:g=!1,closeOnEsc:S=!1,closeOnScroll:b=!1,closeOnResize:k=!1,openEvents:E,closeEvents:_,globalCloseEvents:N,imperativeModeOnly:L,style:j,position:H,afterShow:J,afterHide:C,content:R,contentWrapperRef:P,isOpen:A,defaultIsOpen:O=!1,setIsOpen:M,activeAnchor:T,setActiveAnchor:V,border:F,opacity:Q,arrowColor:Y,role:ne="tooltip"})=>{var ee;const q=x.useRef(null),de=x.useRef(null),Me=x.useRef(null),tn=x.useRef(null),Hn=x.useRef(null),[jt,Co]=x.useState({tooltipStyles:{},tooltipArrowStyles:{},place:s}),[Ke,di]=x.useState(!1),[Cr,kr]=x.useState(!1),[be,ko]=x.useState(null),Oo=x.useRef(!1),Po=x.useRef(null),{anchorRefs:To,setActiveAnchor:ml}=j2(t),pi=x.useRef(!1),[Wn,Io]=x.useState([]),Or=x.useRef(!1),hi=c||u.includes("click"),Mo=hi||(E==null?void 0:E.click)||(E==null?void 0:E.dblclick)||(E==null?void 0:E.mousedown),mi=E?{...E}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!E&&hi&&Object.assign(mi,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const No=_?{..._}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!_&&hi&&Object.assign(No,{mouseleave:!1,blur:!1,mouseout:!1});const Ut=N?{...N}:{escape:S||!1,scroll:b||!1,resize:k||!1,clickOutsideAnchor:Mo||!1};L&&(Object.assign(mi,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(No,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Ut,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),oI(()=>(Or.current=!0,()=>{Or.current=!1}),[]);const Ne=z=>{Or.current&&(z&&kr(!0),setTimeout(()=>{Or.current&&(M==null||M(z),A===void 0&&di(z))},10))};x.useEffect(()=>{if(A===void 0)return()=>null;A&&kr(!0);const z=setTimeout(()=>{di(A)},10);return()=>{clearTimeout(z)}},[A]),x.useEffect(()=>{if(Ke!==Oo.current)if(Rt(Hn),Oo.current=Ke,Ke)J==null||J();else{const z=(Z=>{const te=Z.match(/^([\d.]+)(ms|s)$/);if(!te)return 0;const[,ze,Qe]=te;return Number(ze)*(Qe==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));Hn.current=setTimeout(()=>{kr(!1),ko(null),C==null||C()},z+25)}},[Ke]);const vl=z=>{Co(Z=>Jd(Z,z)?Z:z)},Lo=(z=v)=>{Rt(Me),Cr?Ne(!0):Me.current=setTimeout(()=>{Ne(!0)},z)},vi=(z=y)=>{Rt(tn),tn.current=setTimeout(()=>{pi.current||Ne(!1)},z)},Ro=z=>{var Z;if(!z)return;const te=(Z=z.currentTarget)!==null&&Z!==void 0?Z:z.target;if(!(te!=null&&te.isConnected))return V(null),void ml({current:null});v?Lo():Ne(!0),V(te),ml({current:te}),Rt(tn)},gi=()=>{g?vi(y||100):y?vi():Ne(!1),Rt(Me)},yi=({x:z,y:Z})=>{var te;const ze={getBoundingClientRect:()=>({x:z,y:Z,width:0,height:0,top:Z,left:z,right:z,bottom:Z})};Vv({place:(te=be==null?void 0:be.place)!==null&&te!==void 0?te:s,offset:l,elementReference:ze,tooltipReference:q.current,tooltipArrowReference:de.current,strategy:f,middlewares:d,border:F}).then(Qe=>{vl(Qe)})},wi=z=>{if(!z)return;const Z=z,te={x:Z.clientX,y:Z.clientY};yi(te),Po.current=te},Ao=z=>{var Z;if(!Ke)return;const te=z.target;te.isConnected&&(!((Z=q.current)===null||Z===void 0)&&Z.contains(te)||[document.querySelector(`[id='${o}']`),...Wn].some(ze=>ze==null?void 0:ze.contains(te))||(Ne(!1),Rt(Me)))},gl=Uv(Ro,50),Fe=Uv(gi,50),Nt=z=>{Fe.cancel(),gl(z)},K=()=>{gl.cancel(),Fe()},ae=x.useCallback(()=>{var z,Z;const te=(z=be==null?void 0:be.position)!==null&&z!==void 0?z:H;te?yi(te):w?Po.current&&yi(Po.current):T!=null&&T.isConnected&&Vv({place:(Z=be==null?void 0:be.place)!==null&&Z!==void 0?Z:s,offset:l,elementReference:T,tooltipReference:q.current,tooltipArrowReference:de.current,strategy:f,middlewares:d,border:F}).then(ze=>{Or.current&&vl(ze)})},[Ke,T,R,j,s,be==null?void 0:be.place,l,f,H,be==null?void 0:be.position,w]);x.useEffect(()=>{var z,Z;const te=new Set(To);Wn.forEach(pe=>{te.add({current:pe})});const ze=document.querySelector(`[id='${o}']`);ze&&te.add({current:ze});const Qe=()=>{Ne(!1)},nn=Hv(T),rn=Hv(q.current);Ut.scroll&&(window.addEventListener("scroll",Qe),nn==null||nn.addEventListener("scroll",Qe),rn==null||rn.addEventListener("scroll",Qe));let nt=null;Ut.resize?window.addEventListener("resize",Qe):T&&q.current&&(nt=kw(T,q.current,ae,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Lt=pe=>{pe.key==="Escape"&&Ne(!1)};Ut.escape&&window.addEventListener("keydown",Lt),Ut.clickOutsideAnchor&&window.addEventListener("click",Ao);const we=[],$o=pe=>{Ke&&(pe==null?void 0:pe.target)===T||Ro(pe)},U2=pe=>{Ke&&(pe==null?void 0:pe.target)===T&&gi()},Dh=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Fh=["click","dblclick","mousedown","mouseup"];Object.entries(mi).forEach(([pe,xn])=>{xn&&(Dh.includes(pe)?we.push({event:pe,listener:Nt}):Fh.includes(pe)&&we.push({event:pe,listener:$o}))}),Object.entries(No).forEach(([pe,xn])=>{xn&&(Dh.includes(pe)?we.push({event:pe,listener:K}):Fh.includes(pe)&&we.push({event:pe,listener:U2}))}),w&&we.push({event:"pointermove",listener:wi});const zh=()=>{pi.current=!0},Vh=()=>{pi.current=!1,gi()};return g&&!Mo&&((z=q.current)===null||z===void 0||z.addEventListener("mouseenter",zh),(Z=q.current)===null||Z===void 0||Z.addEventListener("mouseleave",Vh)),we.forEach(({event:pe,listener:xn})=>{te.forEach(oc=>{var Do;(Do=oc.current)===null||Do===void 0||Do.addEventListener(pe,xn)})}),()=>{var pe,xn;Ut.scroll&&(window.removeEventListener("scroll",Qe),nn==null||nn.removeEventListener("scroll",Qe),rn==null||rn.removeEventListener("scroll",Qe)),Ut.resize?window.removeEventListener("resize",Qe):nt==null||nt(),Ut.clickOutsideAnchor&&window.removeEventListener("click",Ao),Ut.escape&&window.removeEventListener("keydown",Lt),g&&!Mo&&((pe=q.current)===null||pe===void 0||pe.removeEventListener("mouseenter",zh),(xn=q.current)===null||xn===void 0||xn.removeEventListener("mouseleave",Vh)),we.forEach(({event:oc,listener:Do})=>{te.forEach(B2=>{var ac;(ac=B2.current)===null||ac===void 0||ac.removeEventListener(oc,Do)})})}},[T,ae,Cr,To,Wn,E,_,N,hi,v,y]),x.useEffect(()=>{var z,Z;let te=(Z=(z=be==null?void 0:be.anchorSelect)!==null&&z!==void 0?z:a)!==null&&Z!==void 0?Z:"";!te&&t&&(te=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const ze=new MutationObserver(Qe=>{const nn=[],rn=[];Qe.forEach(nt=>{if(nt.type==="attributes"&&nt.attributeName==="data-tooltip-id"&&(nt.target.getAttribute("data-tooltip-id")===t?nn.push(nt.target):nt.oldValue===t&&rn.push(nt.target)),nt.type==="childList"){if(T){const Lt=[...nt.removedNodes].filter(we=>we.nodeType===1);if(te)try{rn.push(...Lt.filter(we=>we.matches(te))),rn.push(...Lt.flatMap(we=>[...we.querySelectorAll(te)]))}catch{}Lt.some(we=>{var $o;return!!(!(($o=we==null?void 0:we.contains)===null||$o===void 0)&&$o.call(we,T))&&(kr(!1),Ne(!1),V(null),Rt(Me),Rt(tn),!0)})}if(te)try{const Lt=[...nt.addedNodes].filter(we=>we.nodeType===1);nn.push(...Lt.filter(we=>we.matches(te))),nn.push(...Lt.flatMap(we=>[...we.querySelectorAll(te)]))}catch{}}}),(nn.length||rn.length)&&Io(nt=>[...nt.filter(Lt=>!rn.includes(Lt)),...nn])});return ze.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{ze.disconnect()}},[t,a,be==null?void 0:be.anchorSelect,T]),x.useEffect(()=>{ae()},[ae]),x.useEffect(()=>{if(!(P!=null&&P.current))return()=>null;const z=new ResizeObserver(()=>{setTimeout(()=>ae())});return z.observe(P.current),()=>{z.disconnect()}},[R,P==null?void 0:P.current]),x.useEffect(()=>{var z;const Z=document.querySelector(`[id='${o}']`),te=[...Wn,Z];T&&te.includes(T)||V((z=Wn[0])!==null&&z!==void 0?z:Z)},[o,Wn,T]),x.useEffect(()=>(O&&Ne(!0),()=>{Rt(Me),Rt(tn)}),[]),x.useEffect(()=>{var z;let Z=(z=be==null?void 0:be.anchorSelect)!==null&&z!==void 0?z:a;if(!Z&&t&&(Z=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),Z)try{const te=Array.from(document.querySelectorAll(Z));Io(te)}catch{Io([])}},[t,a,be==null?void 0:be.anchorSelect]),x.useEffect(()=>{Me.current&&(Rt(Me),Lo(v))},[v]);const mt=(ee=be==null?void 0:be.content)!==null&&ee!==void 0?ee:R,Pr=Ke&&Object.keys(jt.tooltipStyles).length>0;return x.useImperativeHandle(e,()=>({open:z=>{if(z!=null&&z.anchorSelect)try{document.querySelector(z.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${z.anchorSelect}" is not a valid CSS selector`)}ko(z??null),z!=null&&z.delay?Lo(z.delay):Ne(!0)},close:z=>{z!=null&&z.delay?vi(z.delay):Ne(!1)},activeAnchor:T,place:jt.place,isOpen:!!(Cr&&!p&&mt&&Pr)})),Cr&&!p&&mt?re.createElement(m,{id:t,role:ne,className:Zd("react-tooltip",_i.tooltip,of.tooltip,of[i],n,`react-tooltip__place-${jt.place}`,_i[Pr?"show":"closing"],Pr?"react-tooltip__show":"react-tooltip__closing",f==="fixed"&&_i.fixed,g&&_i.clickable),onTransitionEnd:z=>{Rt(Hn),Ke||z.propertyName!=="opacity"||(kr(!1),ko(null),C==null||C())},style:{...j,...jt.tooltipStyles,opacity:Q!==void 0&&Pr?Q:void 0},ref:q},mt,re.createElement(m,{className:Zd("react-tooltip-arrow",_i.arrow,of.arrow,r,h&&_i.noArrow),style:{...jt.tooltipArrowStyles,background:Y?`linear-gradient(to right bottom, transparent 50%, ${Y} 50%)`:void 0},ref:de})):null},cI=({content:e})=>re.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),fI=re.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:a,classNameArrow:s,variant:l="dark",place:u="top",offset:c=10,wrapper:f="div",children:d=null,events:m=["hover"],openOnClick:v=!1,positionStrategy:y="absolute",middlewares:w,delayShow:p=0,delayHide:h=0,float:g=!1,hidden:S=!1,noArrow:b=!1,clickable:k=!1,closeOnEsc:E=!1,closeOnScroll:_=!1,closeOnResize:N=!1,openEvents:L,closeEvents:j,globalCloseEvents:H,imperativeModeOnly:J=!1,style:C,position:R,isOpen:P,defaultIsOpen:A=!1,disableStyleInjection:O=!1,border:M,opacity:T,arrowColor:V,setIsOpen:F,afterShow:Q,afterHide:Y,role:ne="tooltip"},ee)=>{const[q,de]=x.useState(r),[Me,tn]=x.useState(i),[Hn,jt]=x.useState(u),[Co,Ke]=x.useState(l),[di,Cr]=x.useState(c),[kr,be]=x.useState(p),[ko,Oo]=x.useState(h),[Po,To]=x.useState(g),[ml,pi]=x.useState(S),[Wn,Io]=x.useState(f),[Or,hi]=x.useState(m),[Mo,mi]=x.useState(y),[No,Ut]=x.useState(null),[Ne,vl]=x.useState(null),Lo=x.useRef(O),{anchorRefs:vi,activeAnchor:Ro}=j2(e),gi=Fe=>Fe==null?void 0:Fe.getAttributeNames().reduce((Nt,K)=>{var ae;return K.startsWith("data-tooltip-")&&(Nt[K.replace(/^data-tooltip-/,"")]=(ae=Fe==null?void 0:Fe.getAttribute(K))!==null&&ae!==void 0?ae:null),Nt},{}),yi=Fe=>{const Nt={place:K=>{var ae;jt((ae=K)!==null&&ae!==void 0?ae:u)},content:K=>{de(K??r)},html:K=>{tn(K??i)},variant:K=>{var ae;Ke((ae=K)!==null&&ae!==void 0?ae:l)},offset:K=>{Cr(K===null?c:Number(K))},wrapper:K=>{var ae;Io((ae=K)!==null&&ae!==void 0?ae:f)},events:K=>{const ae=K==null?void 0:K.split(" ");hi(ae??m)},"position-strategy":K=>{var ae;mi((ae=K)!==null&&ae!==void 0?ae:y)},"delay-show":K=>{be(K===null?p:Number(K))},"delay-hide":K=>{Oo(K===null?h:Number(K))},float:K=>{To(K===null?g:K==="true")},hidden:K=>{pi(K===null?S:K==="true")},"class-name":K=>{Ut(K)}};Object.values(Nt).forEach(K=>K(null)),Object.entries(Fe).forEach(([K,ae])=>{var mt;(mt=Nt[K])===null||mt===void 0||mt.call(Nt,ae)})};x.useEffect(()=>{de(r)},[r]),x.useEffect(()=>{tn(i)},[i]),x.useEffect(()=>{jt(u)},[u]),x.useEffect(()=>{Ke(l)},[l]),x.useEffect(()=>{Cr(c)},[c]),x.useEffect(()=>{be(p)},[p]),x.useEffect(()=>{Oo(h)},[h]),x.useEffect(()=>{To(g)},[g]),x.useEffect(()=>{pi(S)},[S]),x.useEffect(()=>{mi(y)},[y]),x.useEffect(()=>{Lo.current!==O&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[O]),x.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:O==="core",disableBase:O}}))},[]),x.useEffect(()=>{var Fe;const Nt=new Set(vi);let K=n;if(!K&&e&&(K=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),K)try{document.querySelectorAll(K).forEach(Z=>{Nt.add({current:Z})})}catch{console.warn(`[react-tooltip] "${K}" is not a valid CSS selector`)}const ae=document.querySelector(`[id='${t}']`);if(ae&&Nt.add({current:ae}),!Nt.size)return()=>null;const mt=(Fe=Ne??ae)!==null&&Fe!==void 0?Fe:Ro.current,Pr=new MutationObserver(Z=>{Z.forEach(te=>{var ze;if(!mt||te.type!=="attributes"||!(!((ze=te.attributeName)===null||ze===void 0)&&ze.startsWith("data-tooltip-")))return;const Qe=gi(mt);yi(Qe)})}),z={attributes:!0,childList:!1,subtree:!1};if(mt){const Z=gi(mt);yi(Z),Pr.observe(mt,z)}return()=>{Pr.disconnect()}},[vi,Ro,Ne,t,n]),x.useEffect(()=>{C!=null&&C.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),M&&!jv("border",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`border\`.`),C!=null&&C.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),T&&!jv("opacity",`${T}`)&&console.warn(`[react-tooltip] "${T}" is not a valid \`opacity\`.`)},[]);let wi=d;const Ao=x.useRef(null);if(o){const Fe=o({content:(Ne==null?void 0:Ne.getAttribute("data-tooltip-content"))||q||null,activeAnchor:Ne});wi=Fe?re.createElement("div",{ref:Ao,className:"react-tooltip-content-wrapper"},Fe):null}else q&&(wi=q);Me&&(wi=re.createElement(cI,{content:Me}));const gl={forwardRef:ee,id:e,anchorId:t,anchorSelect:n,className:Zd(a,No),classNameArrow:s,content:wi,contentWrapperRef:Ao,place:Hn,variant:Co,offset:di,wrapper:Wn,events:Or,openOnClick:v,positionStrategy:Mo,middlewares:w,delayShow:kr,delayHide:ko,float:Po,hidden:ml,noArrow:b,clickable:k,closeOnEsc:E,closeOnScroll:_,closeOnResize:N,openEvents:L,closeEvents:j,globalCloseEvents:H,imperativeModeOnly:J,style:C,position:R,isOpen:P,defaultIsOpen:A,border:M,opacity:T,arrowColor:V,setIsOpen:F,afterShow:Q,afterHide:Y,activeAnchor:Ne,setActiveAnchor:Fe=>vl(Fe),role:ne};return re.createElement(uI,{...gl})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||zv({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||zv({css:` .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function Wv({stats:e,onVersionChange:t,mobileView:n=!1}){const[r,i]=Nu(),o=r.get("version"),[a,s]=x.useState();x.useEffect(()=>{async function c(){try{const d=await(await fetch(g8)).json(),m=[];for(const v of d){const y={label:v.api_identifier,value:v.api_identifier,data:v};m.push(y)}s(m)}catch{he.error("Error fetching versions")}}c()},[]);function l(){if(!o)return;const c=a==null?void 0:a.find(f=>f.data.api_identifier===o);if(c)return c}x.useEffect(()=>{(!o||a&&!a.find(c=>c.value===o))&&(r.set("version",Id),i(r))},[o,a,r,i]);function u(){var c;return` Includes ${e.numCancerTypes} cancer type${e.numCancerTypes===1?"":"s"} from ${e.numTissues} tissue${e.numTissues===1?"":"s"}.

${(c=l())==null?void 0:c.data.description} - `}return I.jsxs("div",{children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[I.jsx(Kw,{placeholder:o||Id,value:l(),options:a==null?void 0:a.sort((c,f)=>(new Date(c.data.release_date).getTime()-new Date(f.data.release_date).getTime())*-1),onChange:c=>{c&&(r.set("version",c.value),r.delete("search"),i(r),t(c.data))},styles:{container(c){return n?{...c,flexGrow:1}:c},option(c,f){return f.isSelected?{...c,backgroundColor:eo.primary}:{...c,color:"black"}},control(c){return{...c,minHeight:42,minWidth:n?"100%":265}}},theme:c=>({...c,colors:{...c.colors,primary:eo.primary,neutral90:eo.white}})}),I.jsx("div",{style:{marginLeft:8},"data-tooltip-id":"version-tooltip","data-tooltip-html":u(),children:I.jsx(xr,{icon:k8})}),I.jsx(fI,{id:"version-tooltip",place:"bottom",style:{maxWidth:200,zIndex:1}})]}),o===x8&&I.jsxs("span",{style:{position:"absolute",width:"100%",color:n?"#dc3545":"#f99",marginTop:-.5,fontSize:".87rem",textOverflow:"clip"},children:[I.jsx(xr,{icon:L8,style:{marginRight:6}}),I.jsxs("span",{children:["Subject to change ",I.jsx("b",{children:"without notice"})]})]})]})}const dI="#004187",pI="#f8f9fa",Yv={primary:dI,secondary:pI,"search-by-container":"_search-by-container_hmvyf_6","search-by-options-container":"_search-by-options-container_hmvyf_15"},hI="#004187",mI="#f8f9fa",vI={primary:hI,secondary:mI,"search-bar-option":"_search-bar-option_1n7l8_6"},af=20;function Xv({mobileView:e=!1}){const[t,n]=Nu(),r=t.get("field"),[i,o]=x.useState(!1),a=x.useRef(null),s=x.useRef(null);x.useEffect(()=>{function u(c){a.current&&s.current&&!a.current.contains(c.target)&&!s.current.contains(c.target)&&i&&o(!1)}return document.addEventListener("click",u),()=>{document.removeEventListener("click",u)}},[i]);function l(){return Object.values(mo).map(u=>I.jsx("div",{className:vI["search-bar-option"],onClick:()=>{t.set("field",u),n(t),o(!1)},children:I.jsx("span",{children:Xr[u].displayName})},u))}return I.jsxs(I.Fragment,{children:[I.jsxs("div",{className:Yv["search-by-container"],ref:a,style:{marginRight:af,marginLeft:e?0:af},onClick:()=>{o(u=>!u)},onMouseDown:u=>{u.detail>1&&u.preventDefault()},children:[I.jsxs("span",{children:[!e&&"Search by ",I.jsx("b",{style:{color:e?"black":"lightblue"},children:aa(r)?Xr[r].displayName:Xr[Md].displayName})]}),I.jsx(xr,{icon:I8,style:{marginLeft:8,transition:"transform .2s ease-in-out",transform:i?"rotate(180deg)":"rotate(0deg)"}})]}),I.jsx("div",{className:Yv["search-by-options-container"],ref:s,style:{display:i?"block":"none",marginLeft:e?0:af-10},children:l()})]})}const gI={"icon-button":"_icon-button_1atlb_1"};function Gv(e){const{className:t=gI["icon-button"],size:n="xl",...r}=e;return I.jsx(xr,{...r,className:t,size:n})}const lf=30,yI=32;function wI({oncoTreeData:e,oncoTree:t,onVersionChange:n}){var k,E,_,N;const r=Er(),i=qp(),[o,a]=x.useState(!0),[s,l]=x.useState(!0),[u,c]=x.useState(!1),[f,d]=x.useState(!1),m=x.useRef(null),v=x.useRef(null),y=x.useRef(null),w=x.useRef(null),p=x.useRef(null),h=x.useRef(null),g=x.useRef(null),S=x.useRef(null),b=x.useMemo(()=>_8(e),[e]);return x.useEffect(()=>{function L(){if(!m.current||!v.current||!w.current)return;const U=Wl(m.current),G=Wl(v.current),ne=y.current?Wl(y.current):0,C=Wl(w.current);l(U{window.removeEventListener("resize",L)}},[r,l,a]),x.useEffect(()=>{s||d(!1)},[s]),x.useEffect(()=>{o||c(!1)},[o]),I.jsxs(I.Fragment,{children:[I.jsxs("div",{ref:m,className:vt.header,children:[I.jsx("img",{ref:v,src:ek,style:{height:"110%",cursor:"pointer"},onClick:()=>{i(je.HOME)}}),r.pathname===je.HOME&&I.jsxs("div",{ref:y,style:{display:"flex",flexShrink:0,alignItems:"center",visibility:o?"hidden":"unset"},children:[I.jsx(Xv,{}),I.jsx(Av,{oncoTreeData:e,oncoTree:t}),I.jsx("div",{style:{marginRight:20}}),I.jsx(Wv,{onVersionChange:n,stats:b})]}),I.jsx("div",{style:{flexGrow:1}}),I.jsxs("div",{ref:w,style:{marginLeft:lf,marginRight:lf,visibility:s?"hidden":"unset"},children:[I.jsx(_n,{className:vt["header-link"],style:{marginRight:40},to:je.HOME,children:"Home"}),I.jsx(_n,{className:vt["header-link"],style:{marginRight:40},to:je.NEWS,children:"News"}),I.jsx(_n,{className:vt["header-link"],style:{marginRight:40},to:je.MAPPING,children:"Mapping"}),I.jsx(_n,{className:vt["header-link"],to:je.ABOUT,children:"About"})]}),s&&I.jsxs("div",{style:{position:"absolute",right:lf},children:[r.pathname===je.HOME&&o&&I.jsx(Gv,{icon:T8,style:{marginRight:20},onClick:()=>{c(L=>!L),d(!1)}}),I.jsx(Gv,{icon:E8,onClick:()=>{d(L=>!L),c(!1)}})]})]}),I.jsx("div",{className:`${vt["mobile-container"]} ${vt["mobile-links"]}`,style:f?{transform:"translateY(-1px)"}:{transform:`translateY(${0-(((k=h.current)==null?void 0:k.scrollHeight)??Number.MAX_SAFE_INTEGER)}px)`,visibility:"hidden"},ref:h,children:I.jsxs("div",{style:{display:"flex",flexDirection:"column",marginLeft:yI},children:[I.jsx(_n,{className:vt["header-link"],style:{marginBottom:10},to:je.HOME,onClick:()=>{d(!1),c(!1)},children:"Home"}),I.jsx(_n,{className:vt["header-link"],style:{marginBottom:10},to:je.NEWS,onClick:()=>{d(!1),c(!1)},children:"News"}),I.jsx(_n,{className:vt["header-link"],style:{marginBottom:10},to:je.MAPPING,onClick:()=>{d(!1),c(!1)},children:"Mapping"}),I.jsx(_n,{className:vt["header-link"],to:je.ABOUT,onClick:()=>{d(!1),c(!1)},children:"About"})]})}),I.jsx("div",{className:`${vt["mobile-container"]} ${vt["mobile-search"]}`,style:u?{transform:"translateY(-1px)",width:"100%"}:{transform:`translateY(${0-(((E=p.current)==null?void 0:E.scrollHeight)??Number.MAX_SAFE_INTEGER)}px)`,visibility:"hidden"},ref:p,children:I.jsxs("div",{style:{color:"black",width:"100%",display:"flex",justifyContent:"center",paddingRight:20,paddingLeft:20},children:[I.jsxs("div",{children:[I.jsx("div",{style:{height:(_=g.current)==null?void 0:_.clientHeight,display:"flex",alignItems:"center",marginBottom:6},children:I.jsx(Xv,{mobileView:!0})}),I.jsx("div",{style:{height:(N=S.current)==null?void 0:N.clientHeight,display:"flex",alignItems:"center"},children:I.jsx("b",{style:{fontSize:".9rem"},children:"Version"})})]}),I.jsx("div",{style:{marginRight:8}}),I.jsxs("div",{style:{flexGrow:1,maxWidth:400},children:[I.jsx("div",{ref:g,style:{marginBottom:6},children:I.jsx(Av,{oncoTreeData:e,oncoTree:t,mobileView:!0})}),I.jsx("div",{ref:S,children:I.jsx(Wv,{onVersionChange:n,stats:b,mobileView:!0})})]})]})})]})}function xI(){return I.jsx("iframe",{style:{height:"100%",width:"100%"},src:"news.html"})}function SI(){return I.jsx("iframe",{style:{height:"100%",width:"100%"},src:"mapping.html"})}const _I="#004187",bI="#f8f9fa",EI="_footer_8inpe_6",bi={primary:_I,secondary:bI,footer:EI,"footer-container":"_footer-container_8inpe_16","mobile-hidden":"_mobile-hidden_8inpe_29","mobile-community-group":"_mobile-community-group_8inpe_32","mobile-citation":"_mobile-citation_8inpe_37"};function CI(){const e=Er();return I.jsx("div",{className:bi.footer,style:e.pathname!==je.HOME?{display:"none"}:void 0,children:I.jsxs("div",{className:bi["footer-container"],children:[I.jsxs("div",{className:bi["mobile-citation"],children:[I.jsxs("span",{className:bi["mobile-hidden"],children:[" ","When using OncoTree, please cite: ",I.jsx("br",{})]}),I.jsxs(_n,{style:{pointerEvents:"auto"},to:"https://ascopubs.org/doi/10.1200/CCI.20.00108",target:"_blank",children:[I.jsx("i",{children:"Kundra et al., JCO Clinical Cancer Informatics"})," 2021"]})]}),I.jsx("div",{style:{minWidth:50}}),I.jsxs("div",{style:{pointerEvents:"auto",textAlign:"center",display:"flex",alignItems:"center"},children:[I.jsx("div",{className:bi["mobile-community-group"],style:{marginRight:25},children:I.jsx("a",{href:w8,target:"_blank",style:{pointerEvents:"auto"},children:"Community Group"})}),I.jsx("a",{href:y8,className:bi["mobile-hidden"],target:"_blank",style:{pointerEvents:"auto"},children:"API"})]})]})})}function kI(){return I.jsx("iframe",{style:{height:"100%",width:"100%"},src:"about.html"})}function OI(){const e=Er(),[,t]=Nu(),[n,r]=x.useState(),[i,o]=x.useState();async function a(l){const c=await(await fetch(`${v8}/?&version=${l}`)).json(),f=Object.values(c)[0];r(f)}x.useEffect(()=>{a(Id)},[]),x.useEffect(()=>{e.pathname!==je.HOME&&t(void 0)},[e.pathname,t]);const s=x.useCallback(l=>{o(l)},[]);return n?I.jsxs("div",{className:"app-container",children:[I.jsx(wI,{oncoTree:i,oncoTreeData:n,onVersionChange:l=>{a(l.api_identifier)}}),I.jsx("div",{className:"app-content-container",children:I.jsxs(rb,{children:[I.jsx(ea,{path:je.HOME,element:I.jsx(Q4,{oncoTreeData:n,oncoTree:i,onOncoTreeInit:s})}),I.jsx(ea,{path:je.NEWS,element:I.jsx(xI,{})}),I.jsx(ea,{path:je.MAPPING,element:I.jsx(SI,{})}),I.jsx(ea,{path:je.ABOUT,element:I.jsx(kI,{})})]})}),I.jsx(CI,{}),I.jsx(eI,{position:"top-right",autoClose:1800,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"light",transition:z2})]}):I.jsx(I.Fragment,{children:"Loading..."})}uf.createRoot(document.getElementById("root")).render(I.jsx(re.StrictMode,{children:I.jsx(fb,{children:I.jsx(OI,{})})})); + `}return I.jsxs("div",{children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[I.jsx(Kw,{placeholder:o||Id,value:l(),options:a==null?void 0:a.sort((c,f)=>(new Date(c.data.release_date).getTime()-new Date(f.data.release_date).getTime())*-1),onChange:c=>{c&&(r.set("version",c.value),r.delete("search"),i(r),t(c.data))},styles:{container(c){return n?{...c,flexGrow:1}:c},option(c,f){return f.isSelected?{...c,backgroundColor:eo.primary}:{...c,color:"black"}},control(c){return{...c,minHeight:42,minWidth:n?"100%":265}}},theme:c=>({...c,colors:{...c.colors,primary:eo.primary,neutral90:eo.white}})}),I.jsx("div",{style:{marginLeft:8},"data-tooltip-id":"version-tooltip","data-tooltip-html":u(),children:I.jsx(xr,{icon:k8})}),I.jsx(fI,{id:"version-tooltip",place:"bottom",style:{maxWidth:200,zIndex:1}})]}),o===x8&&I.jsxs("span",{style:{position:"absolute",width:"100%",color:n?"#dc3545":"#f99",marginTop:-.5,fontSize:".87rem",textOverflow:"clip"},children:[I.jsx(xr,{icon:L8,style:{marginRight:6}}),I.jsxs("span",{children:["Subject to change ",I.jsx("b",{children:"without notice"})]})]})]})}const dI="#004187",pI="#f8f9fa",Yv={primary:dI,secondary:pI,"search-by-container":"_search-by-container_hmvyf_6","search-by-options-container":"_search-by-options-container_hmvyf_15"},hI="#004187",mI="#f8f9fa",vI={primary:hI,secondary:mI,"search-bar-option":"_search-bar-option_1n7l8_6"},af=20;function Xv({mobileView:e=!1}){const[t,n]=Nu(),r=t.get("field"),[i,o]=x.useState(!1),a=x.useRef(null),s=x.useRef(null);x.useEffect(()=>{function u(c){a.current&&s.current&&!a.current.contains(c.target)&&!s.current.contains(c.target)&&i&&o(!1)}return document.addEventListener("click",u),()=>{document.removeEventListener("click",u)}},[i]);function l(){return Object.values(mo).map(u=>I.jsx("div",{className:vI["search-bar-option"],onClick:()=>{t.set("field",u),n(t),o(!1)},children:I.jsx("span",{children:Xr[u].displayName})},u))}return I.jsxs(I.Fragment,{children:[I.jsxs("div",{className:Yv["search-by-container"],ref:a,style:{marginRight:af,marginLeft:e?0:af},onClick:()=>{o(u=>!u)},onMouseDown:u=>{u.detail>1&&u.preventDefault()},children:[I.jsxs("span",{children:[!e&&"Search by ",I.jsx("b",{style:{color:e?"black":"lightblue"},children:aa(r)?Xr[r].displayName:Xr[Md].displayName})]}),I.jsx(xr,{icon:I8,style:{marginLeft:8,transition:"transform .2s ease-in-out",transform:i?"rotate(180deg)":"rotate(0deg)"}})]}),I.jsx("div",{className:Yv["search-by-options-container"],ref:s,style:{display:i?"block":"none",marginLeft:e?0:af-10},children:l()})]})}const gI={"icon-button":"_icon-button_1atlb_1"};function Gv(e){const{className:t=gI["icon-button"],size:n="xl",...r}=e;return I.jsx(xr,{...r,className:t,size:n})}const lf=30,yI=32;function wI({oncoTreeData:e,oncoTree:t,onVersionChange:n}){var k,E,_,N;const r=Er(),i=qp(),[o,a]=x.useState(!0),[s,l]=x.useState(!0),[u,c]=x.useState(!1),[f,d]=x.useState(!1),m=x.useRef(null),v=x.useRef(null),y=x.useRef(null),w=x.useRef(null),p=x.useRef(null),h=x.useRef(null),g=x.useRef(null),S=x.useRef(null),b=x.useMemo(()=>_8(e),[e]);return x.useEffect(()=>{function L(){if(!m.current||!v.current||!w.current)return;const j=Wl(m.current),H=Wl(v.current),J=y.current?Wl(y.current):0,C=Wl(w.current);l(j{window.removeEventListener("resize",L)}},[r,l,a]),x.useEffect(()=>{s||d(!1)},[s]),x.useEffect(()=>{o||c(!1)},[o]),I.jsxs(I.Fragment,{children:[I.jsxs("div",{ref:m,className:vt.header,children:[I.jsx("img",{ref:v,src:ek,style:{height:"110%",cursor:"pointer"},onClick:()=>{i(je.HOME)}}),r.pathname===je.HOME&&I.jsxs("div",{ref:y,style:{display:"flex",flexShrink:0,alignItems:"center",visibility:o?"hidden":"unset",pointerEvents:o?"none":"unset"},children:[I.jsx(Xv,{}),I.jsx(Rv,{oncoTreeData:e,oncoTree:t}),I.jsx("div",{style:{marginRight:20}}),I.jsx(Wv,{onVersionChange:n,stats:b})]}),I.jsx("div",{style:{flexGrow:1}}),I.jsxs("div",{ref:w,style:{marginLeft:lf,marginRight:lf,visibility:s?"hidden":"unset"},children:[I.jsx(_n,{className:vt["header-link"],style:{marginRight:40},to:je.HOME,children:"Home"}),I.jsx(_n,{className:vt["header-link"],style:{marginRight:40},to:je.NEWS,children:"News"}),I.jsx(_n,{className:vt["header-link"],style:{marginRight:40},to:je.MAPPING,children:"Mapping"}),I.jsx(_n,{className:vt["header-link"],to:je.ABOUT,children:"About"})]}),s&&I.jsxs("div",{style:{position:"absolute",right:lf},children:[r.pathname===je.HOME&&o&&I.jsx(Gv,{icon:T8,style:{marginRight:20},onClick:()=>{c(L=>!L),d(!1)}}),I.jsx(Gv,{icon:E8,onClick:()=>{d(L=>!L),c(!1)}})]})]}),I.jsx("div",{className:`${vt["mobile-container"]} ${vt["mobile-links"]}`,style:f?{transform:"translateY(-1px)"}:{transform:`translateY(${0-(((k=h.current)==null?void 0:k.scrollHeight)??Number.MAX_SAFE_INTEGER)}px)`,visibility:"hidden"},ref:h,children:I.jsxs("div",{style:{display:"flex",flexDirection:"column",marginLeft:yI},children:[I.jsx(_n,{className:vt["header-link"],style:{marginBottom:10},to:je.HOME,onClick:()=>{d(!1),c(!1)},children:"Home"}),I.jsx(_n,{className:vt["header-link"],style:{marginBottom:10},to:je.NEWS,onClick:()=>{d(!1),c(!1)},children:"News"}),I.jsx(_n,{className:vt["header-link"],style:{marginBottom:10},to:je.MAPPING,onClick:()=>{d(!1),c(!1)},children:"Mapping"}),I.jsx(_n,{className:vt["header-link"],to:je.ABOUT,onClick:()=>{d(!1),c(!1)},children:"About"})]})}),I.jsx("div",{className:`${vt["mobile-container"]} ${vt["mobile-search"]}`,style:u?{transform:"translateY(-1px)",width:"100%"}:{transform:`translateY(${0-(((E=p.current)==null?void 0:E.scrollHeight)??Number.MAX_SAFE_INTEGER)}px)`,visibility:"hidden"},ref:p,children:I.jsxs("div",{style:{color:"black",width:"100%",display:"flex",justifyContent:"center",paddingRight:20,paddingLeft:20},children:[I.jsxs("div",{children:[I.jsx("div",{style:{height:(_=g.current)==null?void 0:_.clientHeight,display:"flex",alignItems:"center",marginBottom:6},children:I.jsx(Xv,{mobileView:!0})}),I.jsx("div",{style:{height:(N=S.current)==null?void 0:N.clientHeight,display:"flex",alignItems:"center"},children:I.jsx("b",{style:{fontSize:".9rem"},children:"Version"})})]}),I.jsx("div",{style:{marginRight:8}}),I.jsxs("div",{style:{flexGrow:1,maxWidth:400},children:[I.jsx("div",{ref:g,style:{marginBottom:6},children:I.jsx(Rv,{oncoTreeData:e,oncoTree:t,mobileView:!0})}),I.jsx("div",{ref:S,children:I.jsx(Wv,{onVersionChange:n,stats:b,mobileView:!0})})]})]})})]})}function xI(){return I.jsx("iframe",{style:{height:"100%",width:"100%"},src:"news.html"})}function SI(){return I.jsx("iframe",{style:{height:"100%",width:"100%"},src:"mapping.html"})}const _I="#004187",bI="#f8f9fa",EI="_footer_8inpe_6",bi={primary:_I,secondary:bI,footer:EI,"footer-container":"_footer-container_8inpe_16","mobile-hidden":"_mobile-hidden_8inpe_29","mobile-community-group":"_mobile-community-group_8inpe_32","mobile-citation":"_mobile-citation_8inpe_37"};function CI(){const e=Er();return I.jsx("div",{className:bi.footer,style:e.pathname!==je.HOME?{display:"none"}:void 0,children:I.jsxs("div",{className:bi["footer-container"],children:[I.jsxs("div",{className:bi["mobile-citation"],children:[I.jsxs("span",{className:bi["mobile-hidden"],children:[" ","When using OncoTree, please cite: ",I.jsx("br",{})]}),I.jsxs(_n,{style:{pointerEvents:"auto"},to:"https://ascopubs.org/doi/10.1200/CCI.20.00108",target:"_blank",children:[I.jsx("i",{children:"Kundra et al., JCO Clinical Cancer Informatics"})," 2021"]})]}),I.jsx("div",{style:{minWidth:50}}),I.jsxs("div",{style:{pointerEvents:"auto",textAlign:"center",display:"flex",alignItems:"center"},children:[I.jsx("div",{className:bi["mobile-community-group"],style:{marginRight:25},children:I.jsx("a",{href:w8,target:"_blank",style:{pointerEvents:"auto"},children:"Community Group"})}),I.jsx("a",{href:y8,className:bi["mobile-hidden"],target:"_blank",style:{pointerEvents:"auto"},children:"API"})]})]})})}function kI(){return I.jsx("iframe",{style:{height:"100%",width:"100%"},src:"about.html"})}function OI(){const e=Er(),[,t]=Nu(),[n,r]=x.useState(),[i,o]=x.useState();async function a(l){const c=await(await fetch(`${v8}/?&version=${l}`)).json(),f=Object.values(c)[0];r(f)}x.useEffect(()=>{a(Id)},[]),x.useEffect(()=>{e.pathname!==je.HOME&&t(void 0)},[e.pathname,t]);const s=x.useCallback(l=>{o(l)},[]);return n?I.jsxs("div",{className:"app-container",children:[I.jsx(wI,{oncoTree:i,oncoTreeData:n,onVersionChange:l=>{a(l.api_identifier)}}),I.jsx("div",{className:"app-content-container",children:I.jsxs(rb,{children:[I.jsx(ea,{path:je.HOME,element:I.jsx(Q4,{oncoTreeData:n,oncoTree:i,onOncoTreeInit:s})}),I.jsx(ea,{path:je.NEWS,element:I.jsx(xI,{})}),I.jsx(ea,{path:je.MAPPING,element:I.jsx(SI,{})}),I.jsx(ea,{path:je.ABOUT,element:I.jsx(kI,{})})]})}),I.jsx(CI,{}),I.jsx(eI,{position:"top-right",autoClose:1800,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"light",transition:z2})]}):I.jsx(I.Fragment,{children:"Loading..."})}uf.createRoot(document.getElementById("root")).render(I.jsx(re.StrictMode,{children:I.jsx(fb,{children:I.jsx(OI,{})})})); diff --git a/web/src/main/resources/static/index.html b/web/src/main/resources/static/index.html index de583a9..aab81b3 100644 --- a/web/src/main/resources/static/index.html +++ b/web/src/main/resources/static/index.html @@ -5,7 +5,7 @@ OncoTree - + From 6aa247bbd83985f6f6ec81d8fa54ddf46de097c7 Mon Sep 17 00:00:00 2001 From: bprize15 Date: Thu, 21 Nov 2024 10:52:57 -0500 Subject: [PATCH 2/2] fix styling --- .../main/javascript/src/components/SearchBar/SearchBar.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/src/main/javascript/src/components/SearchBar/SearchBar.tsx b/web/src/main/javascript/src/components/SearchBar/SearchBar.tsx index c864d68..ff6ae85 100644 --- a/web/src/main/javascript/src/components/SearchBar/SearchBar.tsx +++ b/web/src/main/javascript/src/components/SearchBar/SearchBar.tsx @@ -261,9 +261,10 @@ export default function SearchBar({ function ClearIndicator( props: ClearIndicatorProps< - OncoTreeSearchOption, - false, - GroupBase>, + OncoTreeSearchOption, + false, + GroupBase + >, ) { const inputStyle = props.getStyles("input", { ...props, isHidden: false }); const inputColor = inputStyle.color ?? "black";